@arcgis/core 6.0.0-next.57 → 6.0.0-next.58

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 (629) hide show
  1. package/WebLinkChart.d.ts +0 -12
  2. package/WebLinkChart.js +1 -1
  3. package/applications/Components/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
  4. package/applications/WebEditor/sketchUtils.js +1 -1
  5. package/arcade/arcadeCompiler.js +5 -5
  6. package/arcade/containerUtils.js +1 -1
  7. package/arcade/featureset/actions/Adapted.js +1 -1
  8. package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
  9. package/arcade/featureset/sources/FeatureLayerMemory.js +1 -1
  10. package/arcade/featureset/support/shared.js +1 -1
  11. package/arcade/featureset/support/sqlUtils.js +1 -1
  12. package/assets/esri/core/workers/RemoteClient.js +1 -1
  13. package/assets/esri/core/workers/chunks/075e6c60e741482e673f.js +1 -0
  14. package/assets/esri/core/workers/chunks/076c2098570ee885d117.js +1 -0
  15. package/assets/esri/core/workers/chunks/091ce6b3de590e1d9ff6.js +1 -0
  16. package/assets/esri/core/workers/chunks/099dec4103f6e7556eb0.js +1 -0
  17. package/assets/esri/core/workers/chunks/{77267e0807cbbc00496d.js → 0be55d9bab7c3510a7f2.js} +1 -1
  18. package/assets/esri/core/workers/chunks/{da69e8cd52aa77aa4c2c.js → 0fc1facd26c9ef96e081.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{f97dc99afe3375fc8e16.js → 1179a3574c580f7ce390.js} +1 -1
  20. package/assets/esri/core/workers/chunks/129140104be2620c0382.js +1 -0
  21. package/assets/esri/core/workers/chunks/1295fcf866e7347b2d53.js +1 -0
  22. package/assets/esri/core/workers/chunks/16219f0c56d6f6213c24.js +1 -0
  23. package/assets/esri/core/workers/chunks/185b317eec95f3370970.js +1 -0
  24. package/assets/esri/core/workers/chunks/1bdef2e142e78341fec0.js +1 -0
  25. package/assets/esri/core/workers/chunks/1ce0bf4ff14af8a68a5c.js +1 -0
  26. package/assets/esri/core/workers/chunks/1f1515313baeecc095a2.js +1 -0
  27. package/assets/esri/core/workers/chunks/1f710c91a82f6fd3d0f6.js +1 -0
  28. package/assets/esri/core/workers/chunks/{1894c39dabc78e7a5af8.js → 1fad7a7211bb8c9b58e3.js} +1 -1
  29. package/assets/esri/core/workers/chunks/24374aaa6fb3e12960d1.js +1 -0
  30. package/assets/esri/core/workers/chunks/24aa7b81814b4e519b01.js +1 -0
  31. package/assets/esri/core/workers/chunks/294097140e349e073b7e.js +1 -0
  32. package/assets/esri/core/workers/chunks/{c8c79d21dfce5695a089.js → 2b69fdf51b6f0b2abb75.js} +1 -1
  33. package/assets/esri/core/workers/chunks/2ba9b3b4d49eb2740a42.js +1 -0
  34. package/assets/esri/core/workers/chunks/2eb3297014f063fb4bc9.js +1 -0
  35. package/assets/esri/core/workers/chunks/2eb3cec44ce7587980a4.js +1 -0
  36. package/assets/esri/core/workers/chunks/2ee3cd6b2e5274932d31.js +1 -0
  37. package/assets/esri/core/workers/chunks/31df02c6f5b04a143ae6.js +1 -0
  38. package/assets/esri/core/workers/chunks/32d5aae2e0953420216a.js +1 -0
  39. package/assets/esri/core/workers/chunks/3a1510650ce8de7edec8.js +1 -0
  40. package/assets/esri/core/workers/chunks/3b0933cea2a902a26bb7.js +1 -0
  41. package/assets/esri/core/workers/chunks/3d96676b94e8ecb6a4d1.js +1 -0
  42. package/assets/esri/core/workers/chunks/3edfd8ecf000b00a4a92.js +1 -0
  43. package/assets/esri/core/workers/chunks/{f053cbfe671bd14c7d5b.js → 419d8116d8e7faccfed5.js} +1 -1
  44. package/assets/esri/core/workers/chunks/41d57b45cc2361305af3.js +1 -0
  45. package/assets/esri/core/workers/chunks/42ee1f8732e644371ea9.js +1 -0
  46. package/assets/esri/core/workers/chunks/4309f3e72c6332e01d75.js +1 -0
  47. package/assets/esri/core/workers/chunks/44ca7a56fb28227fdcbf.js +1 -0
  48. package/assets/esri/core/workers/chunks/4537f0866e903d2e9bb9.js +1 -0
  49. package/assets/esri/core/workers/chunks/49f61832e0d3b24e1608.js +1 -0
  50. package/assets/esri/core/workers/chunks/4a45505fb9a40b503672.js +29 -0
  51. package/assets/esri/core/workers/chunks/4b456c1f26d70392f7d4.js +1 -0
  52. package/assets/esri/core/workers/chunks/{28fae7da8cc4ae7a83e4.js → 4c510b1caffeec80dc6b.js} +1 -1
  53. package/assets/esri/core/workers/chunks/4ce5c9b658ba79a0b668.js +1 -0
  54. package/assets/esri/core/workers/chunks/{41694ee8990e799da225.js → 4d8f23b2e6721fb5b289.js} +1 -1
  55. package/assets/esri/core/workers/chunks/4fb8708666a614df583d.js +1 -0
  56. package/assets/esri/core/workers/chunks/4feec96a312dcc137911.js +1 -0
  57. package/assets/esri/core/workers/chunks/52ad9306fd40d488376d.js +1 -0
  58. package/assets/esri/core/workers/chunks/5375bdf46b602b19fa86.js +1 -0
  59. package/assets/esri/core/workers/chunks/549a8e7313f75ea3f85b.js +1 -0
  60. package/assets/esri/core/workers/chunks/55f97942c58455f47975.js +1 -0
  61. package/assets/esri/core/workers/chunks/566d72534d694c318e30.js +1 -0
  62. package/assets/esri/core/workers/chunks/5ce00674305e5716d27b.js +1 -0
  63. package/assets/esri/core/workers/chunks/5e032d209df500fad321.js +1 -0
  64. package/assets/esri/core/workers/chunks/{be0133fa63c5d6545a7f.js → 5e4de4ddd3bdc74100e0.js} +33 -32
  65. package/assets/esri/core/workers/chunks/5ea8cdc28a81744913cd.js +1 -0
  66. package/assets/esri/core/workers/chunks/61565d4674cf77cbf1dd.js +1 -0
  67. package/assets/esri/core/workers/chunks/{d296c9561f6a6aeff973.js → 68b8dff748f1ef588653.js} +1 -1
  68. package/assets/esri/core/workers/chunks/690041373d03d02a3044.js +1 -0
  69. package/assets/esri/core/workers/chunks/{6d99e7e1aa007a6f1039.js → 69316db52d7bed746879.js} +1 -1
  70. package/assets/esri/core/workers/chunks/69384a9703abee1903c5.js +1 -0
  71. package/assets/esri/core/workers/chunks/6992a7728451c5a7b673.js +1 -0
  72. package/assets/esri/core/workers/chunks/69e5efe1acbdaddee90d.js +1 -0
  73. package/assets/esri/core/workers/chunks/6b2e09e43f449020d5ad.js +1 -0
  74. package/assets/esri/core/workers/chunks/6b5f8bf8b3480910666d.js +1 -0
  75. package/assets/esri/core/workers/chunks/70fe8b90f174ec64db2e.js +1 -0
  76. package/assets/esri/core/workers/chunks/720356fc6d5e18008471.js +1 -0
  77. package/assets/esri/core/workers/chunks/{3869ea1be105eaad4a38.js → 7328aca34c95fd0fc752.js} +1 -1
  78. package/assets/esri/core/workers/chunks/789567124c4a15235952.js +1 -0
  79. package/assets/esri/core/workers/chunks/{a24dc5350af001db417a.js → 7affab0d0692bdb76036.js} +1 -1
  80. package/assets/esri/core/workers/chunks/{b6e628b5d2643af4c19b.js → 7b4063f45b45ad8a7289.js} +1 -1
  81. package/assets/esri/core/workers/chunks/7c22d3669087f38c92b9.js +1 -0
  82. package/assets/esri/core/workers/chunks/7cb7bdc30f970eb9ff7f.js +1 -0
  83. package/assets/esri/core/workers/chunks/7d71cf65bbc1b3308856.js +1 -0
  84. package/assets/esri/core/workers/chunks/81cdb9705f7eee9e792f.js +1 -0
  85. package/assets/esri/core/workers/chunks/821003fe1be30d5d29aa.js +1 -0
  86. package/assets/esri/core/workers/chunks/822b9c1e172c835b9624.js +1 -0
  87. package/assets/esri/core/workers/chunks/{a7dfca326883384d2751.js → 823228f1fa6ba4e8bff2.js} +1 -1
  88. package/assets/esri/core/workers/chunks/84021d57822f374217ef.js +1 -0
  89. package/assets/esri/core/workers/chunks/847ec6b337cfb2e4a15b.js +1 -0
  90. package/assets/esri/core/workers/chunks/84f41ddd7366bfbf5b25.js +1 -0
  91. package/assets/esri/core/workers/chunks/{c6e7c95391a54978402b.js → 893363ee500fc1288781.js} +1 -1
  92. package/assets/esri/core/workers/chunks/8b0cdbbf5c81283eae13.js +1 -0
  93. package/assets/esri/core/workers/chunks/{7850e306d7cd12653b23.js → 90de2f93b0ba1eb337fd.js} +1 -1
  94. package/assets/esri/core/workers/chunks/91b0035e3eae9e452fbc.js +1 -0
  95. package/assets/esri/core/workers/chunks/93262d3616ac0cc4b532.js +1 -0
  96. package/assets/esri/core/workers/chunks/9748a0db6451336d51ef.js +1 -0
  97. package/assets/esri/core/workers/chunks/{69a09c6acb5ae03c67f6.js → 985ce51da8ae4984a4db.js} +1 -1
  98. package/assets/esri/core/workers/chunks/9bbff9230298b1bac46a.js +1 -0
  99. package/assets/esri/core/workers/chunks/9cae59db5b9cb37baea9.js +1 -0
  100. package/assets/esri/core/workers/chunks/{ed2626a895ca1d4a7216.js → 9dbb9e74754392b066a8.js} +1 -1
  101. package/assets/esri/core/workers/chunks/9dd3863b9d7c1a5ea20a.js +1 -0
  102. package/assets/esri/core/workers/chunks/9e62cfcb4e0188d51294.js +1 -0
  103. package/assets/esri/core/workers/chunks/a2a3edec2ee31273d609.js +1 -0
  104. package/assets/esri/core/workers/chunks/{d0e8d0f8b4e4cc13e837.js → a301aa62a03d3618eba9.js} +1 -1
  105. package/assets/esri/core/workers/chunks/a39d595fc11afedc1875.js +1 -0
  106. package/assets/esri/core/workers/chunks/a57b506c538e2186909d.js +1 -0
  107. package/assets/esri/core/workers/chunks/a722114f01e66a608cec.js +1 -0
  108. package/assets/esri/core/workers/chunks/{5bda285f6ecf725676b3.js → a7b4821fd3080cf2756f.js} +1 -1
  109. package/assets/esri/core/workers/chunks/a8d91c2654c5012400b4.js +1 -0
  110. package/assets/esri/core/workers/chunks/aa70d98e6bcbd06a8461.js +1 -0
  111. package/assets/esri/core/workers/chunks/add538f52c7bcfd154da.js +1 -0
  112. package/assets/esri/core/workers/chunks/ae0b0a562f0ab57e1883.js +1 -0
  113. package/assets/esri/core/workers/chunks/b2c3652c8ce9597dcf89.js +1 -0
  114. package/assets/esri/core/workers/chunks/b725d944ecd5da02fd9e.js +1 -0
  115. package/assets/esri/core/workers/chunks/b7fbbbeabaa5bfcdeabc.js +1 -0
  116. package/assets/esri/core/workers/chunks/{70ead4c231cba4084cf4.js → b856ef3a949ca06a4af5.js} +1 -1
  117. package/assets/esri/core/workers/chunks/{ae2cd50c2b938b39417b.js → b8b4f68305a4f654fa75.js} +1 -1
  118. package/assets/esri/core/workers/chunks/{97107e64407fa6825620.js → ba324fd300b6e6a584ae.js} +1 -1
  119. package/assets/esri/core/workers/chunks/bc40b96080346b91e507.js +1 -0
  120. package/assets/esri/core/workers/chunks/c5ca8245113576b35acc.js +1 -0
  121. package/assets/esri/core/workers/chunks/{c7a0c4ca37ebd1d98cf1.js → c629a676b707138e7a1c.js} +1 -1
  122. package/assets/esri/core/workers/chunks/c8a1aa90ec6d455ff82d.js +1 -0
  123. package/assets/esri/core/workers/chunks/c8dd8b67100177109619.js +1 -0
  124. package/assets/esri/core/workers/chunks/c8eb8744f1ed9d1897dc.js +1 -0
  125. package/assets/esri/core/workers/chunks/ccc89208aad7206aabd9.js +1 -0
  126. package/assets/esri/core/workers/chunks/cebd6732fe573f79849c.js +1 -0
  127. package/assets/esri/core/workers/chunks/{c5ddf8b347c31fe772a3.js → d45769f8a02abe5d2917.js} +1 -1
  128. package/assets/esri/core/workers/chunks/d4b62e78bb27272a5f83.js +1 -0
  129. package/assets/esri/core/workers/chunks/d52b2a591e5e6abaa133.js +1 -0
  130. package/assets/esri/core/workers/chunks/{0978e12dd6a1cbc50b80.js → d572b125bed40a4d02b1.js} +1 -1
  131. package/assets/esri/core/workers/chunks/d65206fea850b1fc0712.js +1 -0
  132. package/assets/esri/core/workers/chunks/d6a42c936ead00ab7ad4.js +1 -0
  133. package/assets/esri/core/workers/chunks/d77887edc10d5be39ac9.js +1 -0
  134. package/assets/esri/core/workers/chunks/d7b9c16fe73f50a41099.js +1 -0
  135. package/assets/esri/core/workers/chunks/{7b6fd287e7043ad50f4e.js → d9bf0be2323e9df55834.js} +1 -1
  136. package/assets/esri/core/workers/chunks/dab98890d77a6b0b2741.js +1 -0
  137. package/assets/esri/core/workers/chunks/e2ac387e154d68fd10ca.js +1 -0
  138. package/assets/esri/core/workers/chunks/e39259ff441fb67cd3e4.js +1 -0
  139. package/assets/esri/core/workers/chunks/e3c152eeaa1c95f0f2d2.js +1 -0
  140. package/assets/esri/core/workers/chunks/e4ae0fad312467f218df.js +1 -0
  141. package/assets/esri/core/workers/chunks/e50cc686db878d0a9399.js +1 -0
  142. package/assets/esri/core/workers/chunks/e7cd5eeb15d3783f803d.js +1 -0
  143. package/assets/esri/core/workers/chunks/e8042584e422044ca1d1.js +1 -0
  144. package/assets/esri/core/workers/chunks/e89640667b71c1bb4ee3.js +1 -0
  145. package/assets/esri/core/workers/chunks/e9649aa2d0fdd28d91ac.js +1 -0
  146. package/assets/esri/core/workers/chunks/ee31801144602ce816d3.js +1 -0
  147. package/assets/esri/core/workers/chunks/eff8a1a880e0eb1a6814.js +1 -0
  148. package/assets/esri/core/workers/chunks/f2b7c61462f530d812c4.js +1 -0
  149. package/assets/esri/core/workers/chunks/f56404d401dfbce29473.js +1 -0
  150. package/assets/esri/core/workers/chunks/f87416f2aa791cd1bebe.js +1 -0
  151. package/assets/esri/core/workers/chunks/{f3744b12a5d0d8ca8621.js → fa65aafac2b99478c32a.js} +1 -1
  152. package/assets/esri/core/workers/chunks/fb14a0c8d2edf868838c.js +1 -0
  153. package/assets/esri/core/workers/chunks/fb8a24aa04bd2fa43241.js +1 -0
  154. package/assets/esri/core/workers/chunks/fbb27d2cef962f725180.js +1 -0
  155. package/assets/esri/core/workers/chunks/{3c6e7dcb79d13e8aecc5.js → fc965ace82bef4c6111b.js} +1 -1
  156. package/assets/esri/core/workers/chunks/{5954f02c3901b28d8e73.js → fd9382e5207b6da74b91.js} +1 -1
  157. package/assets/esri/core/workers/chunks/fdb370546be4ad552959.js +1 -0
  158. package/assets/esri/core/workers/chunks/fefac70ebe29dff54b4c.js +1 -0
  159. package/chunks/BlurEmission.glsl.js +4 -17
  160. package/chunks/Bufferer-CclWhXVb.js +1 -1
  161. package/chunks/ColorMaterial.glsl.js +1 -1
  162. package/chunks/Component.glsl.js +1 -1
  163. package/chunks/EmissionComposite.glsl.js +2 -2
  164. package/chunks/Envelope.js +1 -1
  165. package/chunks/Envelope2D.js +1 -1
  166. package/chunks/Fog.glsl.js +3 -3
  167. package/chunks/GeodeticDistanceCalculator-zRp89-dW.js +1 -1
  168. package/chunks/ImageMaterial.glsl.js +1 -1
  169. package/chunks/LineMarker.glsl.js +2 -2
  170. package/chunks/MultiPathImpl.js +1 -1
  171. package/chunks/OperatorGeodesicBuffer.js +1 -1
  172. package/chunks/OperatorGeodeticArea.js +1 -1
  173. package/chunks/OperatorShapePreservingProject.js +1 -1
  174. package/chunks/Point2D.js +1 -1
  175. package/chunks/RealisticAtmosphere.glsl.js +7 -9
  176. package/chunks/RealisticAtmosphereCompositing.glsl.js +6 -10
  177. package/chunks/RibbonLine.glsl.js +2 -2
  178. package/chunks/Terrain.glsl.js +27 -27
  179. package/chunks/UPCPointRenderer.glsl.js +100 -0
  180. package/chunks/UnitFactory.js +1 -1
  181. package/chunks/Water.glsl.js +24 -24
  182. package/chunks/arcade.js +1 -1
  183. package/chunks/arcgis-knowledge-client-core-simd.js +4 -4
  184. package/chunks/arcgis-knowledge-client-core.js +4 -4
  185. package/chunks/array.js +1 -1
  186. package/chunks/basis_encoder.js +3 -3
  187. package/chunks/basis_transcoder.js +2 -2
  188. package/chunks/draco_mesh_decoder.js +2 -2
  189. package/chunks/dxt_encoder.js +3 -3
  190. package/chunks/i3s.js +2 -2
  191. package/chunks/languageUtils.js +1 -1
  192. package/chunks/lclayout.js +3 -3
  193. package/chunks/lerc-wasm.js +1 -1
  194. package/chunks/lyr3DWorker.js +2 -2
  195. package/chunks/pe.js +1 -1
  196. package/chunks/projector.js +1 -1
  197. package/chunks/qb3-wasm.js +1 -1
  198. package/chunks/vxlLayer.js +2 -2
  199. package/colorUtils.js +1 -1
  200. package/config.js +1 -1
  201. package/core/AsyncUpdate.js +1 -1
  202. package/core/Clonable.js +1 -1
  203. package/core/Identifiable.js +1 -1
  204. package/core/Loadable.js +1 -1
  205. package/core/MultiOriginJSONSupport.js +1 -1
  206. package/core/NumericIdentifiable.js +1 -1
  207. package/core/Promise.js +1 -1
  208. package/core/ReadOnlyMultiOriginJSONSupport.js +1 -1
  209. package/core/accessorSupport/metadata.js +1 -1
  210. package/core/accessorSupport/trackingUtils.js +1 -1
  211. package/core/asyncUtils.js +1 -1
  212. package/core/handleUtils.js +1 -1
  213. package/core/mapCollectionUtils.js +1 -1
  214. package/core/reactiveUtils.js +1 -1
  215. package/core/sql/SqlTimestampOffset.js +1 -1
  216. package/core/sql/WhereClause.js +1 -1
  217. package/core/sql/WhereGrammar.js +1 -1
  218. package/core/sql/writeUtils.js +1 -1
  219. package/core/sql.js +1 -1
  220. package/core/urlUtils.js +1 -1
  221. package/core/workers/workers.js +1 -1
  222. package/geohash/GeohashCell.js +1 -1
  223. package/geohash/GeohashTree.js +1 -1
  224. package/geometry/coordinateConversion/CoordinateConversionModel.d.ts +11 -56
  225. package/geometry/coordinateConversion/support/Conversion.d.ts +5 -17
  226. package/geometry/coordinateConversion/support/Format.d.ts +6 -30
  227. package/geometry/coordinateConversion/types.d.ts +15 -15
  228. package/geometry/operators/reshapeOperator.js +1 -1
  229. package/geometry/support/MeshMaterial.js +1 -1
  230. package/geometry/support/MeshMaterialMetallicRoughness.js +1 -1
  231. package/geometry/support/meshUtils/elevationSampler.js +1 -1
  232. package/graphic/AggregateGraphicOrigin.js +1 -1
  233. package/graphic/AnnotationFeatureGraphicOrigin.js +1 -1
  234. package/graphic/BuildingGraphicOrigin.js +1 -1
  235. package/graphic/CSVGraphicOrigin.js +1 -1
  236. package/graphic/CatalogGraphicOrigin.js +1 -1
  237. package/graphic/DimensionFeatureGraphicOrigin.js +1 -1
  238. package/graphic/FeatureGraphicOrigin.js +1 -1
  239. package/graphic/GeoJSONGraphicOrigin.js +1 -1
  240. package/graphic/GeoRSSGraphicOrigin.js +1 -1
  241. package/graphic/ImageryGraphicOrigin.js +1 -1
  242. package/graphic/ImageryTileGraphicOrigin.js +1 -1
  243. package/graphic/KMLGraphicOrigin.js +1 -1
  244. package/graphic/KnowledgeGraphGraphicOrigin.js +1 -1
  245. package/graphic/LinkChartGraphicOrigin.js +1 -1
  246. package/graphic/MapImageGraphicOrigin.js +1 -1
  247. package/graphic/MapNotesGraphicOrigin.js +1 -1
  248. package/graphic/OGCFeatureGraphicOrigin.js +1 -1
  249. package/graphic/OrientedImageryGraphicOrigin.js +1 -1
  250. package/graphic/ParquetGraphicOrigin.js +1 -1
  251. package/graphic/PointCloudGraphicOrigin.js +1 -1
  252. package/graphic/SceneGraphicOrigin.js +1 -1
  253. package/graphic/SketchGraphicOrigin.js +1 -1
  254. package/graphic/StreamGraphicOrigin.js +1 -1
  255. package/graphic/SubtypeGroupGraphicOrigin.js +1 -1
  256. package/graphic/TileGraphicOrigin.js +1 -1
  257. package/graphic/TrackGraphicOrigin.js +1 -1
  258. package/graphic/VectorTileGraphicOrigin.js +1 -1
  259. package/graphic/VoxelGraphicOrigin.js +1 -1
  260. package/graphic/WCSGraphicOrigin.js +1 -1
  261. package/graphic/WFSGraphicOrigin.js +1 -1
  262. package/graphic/getLayerViewLayer.js +2 -0
  263. package/identity/IdentityManagerBase.js +1 -1
  264. package/kernel.js +1 -1
  265. package/layers/ElevationLayer.js +1 -1
  266. package/layers/LinkChartLayer.d.ts +1 -1
  267. package/layers/LinkChartLayer.js +1 -1
  268. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  269. package/layers/PointCloudLayer.js +3 -3
  270. package/layers/VectorTileLayer.d.ts +17 -10
  271. package/layers/VoxelWasmPerSceneView.js +1 -1
  272. package/layers/WMTSLayer.js +1 -1
  273. package/layers/knowledgeGraph/KnowledgeGraphSublayerBase.js +1 -1
  274. package/layers/mixins/APIKeyMixin.js +1 -1
  275. package/layers/mixins/ArcGISCachedService.js +1 -1
  276. package/layers/mixins/ArcGISImageService.js +1 -1
  277. package/layers/mixins/ArcGISMapService.js +1 -1
  278. package/layers/mixins/ArcGISService.js +1 -1
  279. package/layers/mixins/BlendLayer.js +1 -1
  280. package/layers/mixins/CustomParametersMixin.js +1 -1
  281. package/layers/mixins/DataElementMixin.js +1 -1
  282. package/layers/mixins/DataSeriesLayer.js +1 -1
  283. package/layers/mixins/DisplayFilteredLayer.js +1 -1
  284. package/layers/mixins/EditBusLayer.js +1 -1
  285. package/layers/mixins/FeatureEffectLayer.js +1 -1
  286. package/layers/mixins/FeatureLayerBase.js +1 -1
  287. package/layers/mixins/FeatureReductionLayer.js +1 -1
  288. package/layers/mixins/HeightModelInfoMixin.js +1 -1
  289. package/layers/mixins/OperationalLayer.js +1 -1
  290. package/layers/mixins/OrderedLayer.js +1 -1
  291. package/layers/mixins/PortalLayer.js +1 -1
  292. package/layers/mixins/PublishableLayer.js +1 -1
  293. package/layers/mixins/RasterJobHandlerMixin.js +1 -1
  294. package/layers/mixins/RasterPresetRendererMixin.js +1 -1
  295. package/layers/mixins/RefreshableLayer.js +1 -1
  296. package/layers/mixins/ReloadableLayer.js +1 -1
  297. package/layers/mixins/ScaleRangeLayer.js +1 -1
  298. package/layers/mixins/SceneService.js +1 -1
  299. package/layers/mixins/SublayersOwner.js +1 -1
  300. package/layers/mixins/TemporalLayer.js +1 -1
  301. package/layers/mixins/TrackableLayer.js +1 -1
  302. package/layers/orientedImagery/transformations/utils.js +1 -1
  303. package/layers/raster/datasets/TIFFRaster.js +1 -1
  304. package/layers/raster/datasets/pixelReader.js +1 -1
  305. package/layers/raster/datasets/xmlUtilities.js +1 -1
  306. package/layers/raster/formats/Lerc.js +1 -1
  307. package/layers/raster/formats/Qb3.js +1 -1
  308. package/layers/raster/formats/TiffDecoder.js +1 -1
  309. package/layers/raster/formats/blosc.js +1 -1
  310. package/layers/raster/formats/tiffParser.js +1 -1
  311. package/layers/raster/formats/tiffSpatialReferenceUtils.js +2 -0
  312. package/layers/raster/formats/tiffTag.js +1 -1
  313. package/layers/raster/functions/colormaps.js +1 -1
  314. package/layers/support/TitleCreator.js +1 -1
  315. package/layers/support/WMTSSublayer.js +1 -1
  316. package/layers/support/geospatialPDFUtils.js +1 -1
  317. package/layers/support/imageUtils.js +1 -1
  318. package/layers/support/labelUtils.js +1 -1
  319. package/layers/support/tiles3DUtils.js +1 -1
  320. package/layers/video/VideoController.js +14 -14
  321. package/legend/ActiveLayerInfo.js +1 -1
  322. package/legend/support/sizeRampUtils.js +1 -1
  323. package/libs/basisu/BasisUEncoder.js +1 -1
  324. package/libs/basisu/BasisUTranscoder.js +1 -1
  325. package/libs/dracoMeshDecoder/dracoMeshDecoder.js +1 -1
  326. package/libs/dxtEncoder/DXTEncoder.js +1 -1
  327. package/libs/i3s/I3SModule.js +1 -1
  328. package/libs/librust-parquet/loadParquetModule.js +1 -1
  329. package/libs/librust-text/loadTextModule.js +1 -1
  330. package/libs/linkchartlayout/LinkChartLayout.js +1 -1
  331. package/libs/maquette-advanced-projector/projector.js +1 -1
  332. package/package.json +2 -2
  333. package/popup/FeaturesModel.d.ts +6 -0
  334. package/popup/FeaturesModel.js +1 -1
  335. package/portal/PortalUser.js +1 -1
  336. package/renderers/mixins/VisualVariablesMixin.js +1 -1
  337. package/renderers/visualVariables/VisualVariableFactory.js +1 -1
  338. package/rest/identify.js +1 -1
  339. package/rest/knowledgeGraph/wasmInterface/knowledgeWasmAccess.js +1 -1
  340. package/rest/layerSources/utils.js +1 -1
  341. package/rest/networks/validateNetworkTopology.js +1 -1
  342. package/rest/support/CameraInfoMixin.js +1 -1
  343. package/rest/support/NormalizationBinParametersMixin.js +1 -1
  344. package/rest/support/generateRendererUtils.js +1 -1
  345. package/smartMapping/raster/renderers/vectorField.js +1 -1
  346. package/smartMapping/renderers/type.js +1 -1
  347. package/smartMapping/support/adapters/FeatureLayerAdapter.js +1 -1
  348. package/smartMapping/support/adapters/FeatureLayerBinningAdapter.js +1 -1
  349. package/smartMapping/symbology/color.js +1 -1
  350. package/smartMapping/symbology/support/Theme.js +1 -1
  351. package/support/BasemapStyle.js +1 -1
  352. package/support/LayersMixin.js +1 -1
  353. package/support/TablesMixin.js +1 -1
  354. package/support/actions/ActionBase.d.ts +14 -2
  355. package/support/actions/ActionBase.js +1 -1
  356. package/support/actions/ActionButton.js +1 -1
  357. package/support/actions/ActionToggle.js +1 -1
  358. package/support/loadArcade.js +1 -1
  359. package/views/2d/engine/flow/styles/Imagery.js +1 -1
  360. package/views/2d/engine/flow/utils.js +1 -1
  361. package/views/2d/engine/vectorTiles/TextShaping.js +1 -1
  362. package/views/2d/engine/vectorTiles/TileHandler3D.js +1 -1
  363. package/views/2d/engine/vectorTiles/buckets/SymbolBucket.js +1 -1
  364. package/views/2d/engine/vectorTiles/shaders/VTLMaterial.js +1 -1
  365. package/views/2d/engine/webgl/GlyphWorker.js +1 -1
  366. package/views/2d/engine/webgl/cpuMapped/CpuMeshData.js +1 -1
  367. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/AFeatureShader.js +1 -1
  368. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/bitmapUtils.js +1 -1
  369. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/surface.js +1 -1
  370. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/utils.js +1 -1
  371. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
  372. package/views/2d/layerViewModuleImportUtils.js +1 -1
  373. package/views/2d/layers/BitmapTileLayerView2D.js +1 -1
  374. package/views/2d/layers/ImageryLayerView2D.js +1 -1
  375. package/views/2d/layers/LayerView2D.js +1 -1
  376. package/views/2d/layers/MapImageLayerView2D.js +1 -1
  377. package/views/2d/layers/TileLayerView2D.js +1 -1
  378. package/views/2d/layers/features/FeatureContainer.js +1 -1
  379. package/views/2d/layers/features/layerAdapters/AnnotationLayerAdapter.js +1 -1
  380. package/views/2d/layers/features/support/AttributeStore.js +1 -1
  381. package/views/2d/layers/features/support/DisplayIdGenerator.js +1 -1
  382. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  383. package/views/2d/layers/support/visualVariableSimpleUtils.js +1 -1
  384. package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
  385. package/views/3d/layerViewModuleImportUtils.js +1 -1
  386. package/views/3d/layers/BuildingSublayerView3D.js +1 -1
  387. package/views/3d/layers/DynamicLayerView3D.js +1 -1
  388. package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
  389. package/views/3d/layers/FeatureLikeLayerViewBase3D.js +1 -1
  390. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  391. package/views/3d/layers/I3SMeshView3D.js +1 -1
  392. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  393. package/views/3d/layers/LayerView3D.js +1 -1
  394. package/views/3d/layers/Lyr3DWorker.js +1 -1
  395. package/views/3d/layers/PointCloudIntersector.js +2 -0
  396. package/views/3d/layers/PointCloudLayerView3D.js +1 -1
  397. package/views/3d/layers/SceneLayerWorker.js +1 -1
  398. package/views/3d/layers/TiledLayerView3D.js +1 -1
  399. package/views/3d/layers/UPCPointRenderer.js +2 -0
  400. package/views/3d/layers/UPCPointRendererNode.js +2 -0
  401. package/views/3d/layers/UpdatablePointCloudLayerView3D.js +2 -0
  402. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  403. package/views/3d/layers/i3s/PointCloudHighlights.js +1 -1
  404. package/views/3d/layers/i3s/PointCloudNodeHighlights.js +2 -0
  405. package/views/3d/layers/i3s/PointCloudRenderer.js +1 -1
  406. package/views/3d/layers/i3s/PointCloudRendererNode.js +1 -1
  407. package/views/3d/layers/support/DefinitionExpressionSceneLayerView.js +1 -1
  408. package/views/3d/layers/support/GraphicsProcessorLayerView3D.js +1 -1
  409. package/views/3d/layers/support/PopupSceneLayerView.js +1 -1
  410. package/views/3d/layers/support/TemporalSceneLayerView.js +1 -1
  411. package/views/3d/layers/support/Tiles3DLayerViewRegistration.js +1 -1
  412. package/views/3d/state/utils/groundNavigationUtils.js +1 -1
  413. package/views/3d/support/QualityProfile.js +1 -1
  414. package/views/3d/support/QualitySettings.js +1 -1
  415. package/views/3d/support/cameraUtils.js +1 -1
  416. package/views/3d/support/engineContent/sdfPrimitives.js +1 -1
  417. package/views/3d/support/flow/FlowSubViewTiles3D.js +1 -1
  418. package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
  419. package/views/3d/terrain/TerrainRenderer.js +1 -1
  420. package/views/3d/webgl/RenderNode.js +1 -1
  421. package/views/3d/webgl-engine/collections/Component/DepthRange.js +1 -1
  422. package/views/3d/webgl-engine/collections/Component/Material/ComponentData.glsl.js +9 -9
  423. package/views/3d/webgl-engine/collections/Component/RenderSubmitSystem.js +1 -1
  424. package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
  425. package/views/3d/webgl-engine/core/shaderLibrary/attributes/RibbonVertexPosition.glsl.js +19 -19
  426. package/views/3d/webgl-engine/core/shaderLibrary/outputEmission.glsl.js +5 -0
  427. package/views/3d/webgl-engine/core/shaderLibrary/{util/CloudsParallaxShading.glsl.js → renderClouds.glsl.js} +5 -4
  428. package/views/3d/webgl-engine/core/shaderLibrary/shading/evaluateSceneLightingFragment.glsl.js +2 -2
  429. package/views/3d/webgl-engine/core/shaderLibrary/shading/forwardLocalUp.glsl.js +1 -5
  430. package/views/3d/webgl-engine/core/shaderLibrary/shading/readShadow.glsl.js +7 -7
  431. package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +1 -1
  432. package/views/3d/webgl-engine/core/shaderLibrary/terrain/blendLayers.glsl.js +9 -9
  433. package/views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js +1 -1
  434. package/views/3d/webgl-engine/core/shaderModules/glsl.js +1 -1
  435. package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechniqueRepository.js +1 -1
  436. package/views/3d/webgl-engine/effects/RenderNodes.js +1 -1
  437. package/views/3d/webgl-engine/effects/RenderPluginManager.js +1 -1
  438. package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphere.glsl.js +1 -1
  439. package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphere.js +1 -1
  440. package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphereCompositing.glsl.js +1 -1
  441. package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphereConfiguration.js +1 -1
  442. package/views/3d/webgl-engine/effects/fog/Fog.js +1 -1
  443. package/views/3d/webgl-engine/effects/glow/applyEmissiveGlow.glsl.js +30 -53
  444. package/views/3d/webgl-engine/lib/EmissionComposite.glsl.js +1 -1
  445. package/views/3d/webgl-engine/lib/EmissionComposite.js +1 -1
  446. package/views/3d/webgl-engine/lib/GaussianSplatShadows.js +1 -1
  447. package/views/3d/webgl-engine/lib/PathGeometry.js +1 -1
  448. package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
  449. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  450. package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
  451. package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
  452. package/views/3d/webgl-engine/materials/HUDMaterialBaseInstance.js +1 -1
  453. package/views/3d/webgl-engine/materials/LineCalloutMaterialBaseInstance.js +1 -1
  454. package/views/3d/webgl-engine/materials/Water.glsl.js +1 -1
  455. package/views/3d/webgl-engine/materials/getWaterColor.glsl.js +15 -15
  456. package/views/3d/webgl-engine/materials/renderers/BufferCache.js +1 -1
  457. package/views/3d/webgl-engine/shaders/OutputColorHighlightOLID.glsl.js +12 -14
  458. package/views/3d/webgl-engine/shaders/Terrain.glsl.js +1 -1
  459. package/views/3d/webgl-engine/shaders/TerrainTechniqueConfiguration.js +1 -1
  460. package/views/3d/webgl-engine/shaders/UPCPointRenderer.glsl.js +2 -0
  461. package/views/3d/webgl-engine/shaders/UPCPointRendererTechnique.js +2 -0
  462. package/views/3d/webgl-engine/shaders/UPCPointRendererTechniqueConfiguration.js +2 -0
  463. package/views/BreakpointsOwner.js +1 -1
  464. package/views/DOMContainer.js +1 -1
  465. package/views/PopupView.js +1 -1
  466. package/views/View.d.ts +27 -1
  467. package/views/View.js +1 -1
  468. package/views/Viewport2DBaseMixin.js +1 -1
  469. package/views/Viewport2DMixin.js +1 -1
  470. package/views/animation/pointToPoint/Animation.js +1 -1
  471. package/views/interactive/Tooltip.d.ts +1 -1
  472. package/views/interactive/Tooltip.js +1 -1
  473. package/views/interactive/tooltip/components/TooltipEditableField.js +1 -1
  474. package/views/interactive/tooltip/content/TooltipContent.js +1 -1
  475. package/views/interactive/tooltip/infos/DynamicTooltipInfo.js +1 -1
  476. package/views/interactive/tooltip/infos/TooltipInfoWithCoordinates.js +1 -1
  477. package/views/layers/MapImageLayerView.js +1 -1
  478. package/views/layers/PointCloudLayerView.js +1 -1
  479. package/views/layers/RefreshableLayerView.js +1 -1
  480. package/views/layers/WMSLayerView.js +1 -1
  481. package/views/overlay/ViewOverlay.js +1 -1
  482. package/views/support/flow/utils.js +1 -1
  483. package/views/support/screenshotUtils.js +1 -1
  484. package/views/types.d.ts +15 -0
  485. package/views/webgl/AllocationTracer.js +1 -1
  486. package/views/webgl/InstanceCounter.js +1 -1
  487. package/views/webgl/RenderingContext.js +1 -1
  488. package/views/webgl/ShaderBuilder.js +23 -23
  489. package/views/webgl/ShaderTranspiler.js +1 -1
  490. package/views/webgl/capabilities/DisjointTimerQuery.js +1 -1
  491. package/views/webgl/capabilities.js +1 -1
  492. package/widgets/CoordinateConversion/CoordinateConversionViewModel.d.ts +1 -1
  493. package/widgets/CoordinateConversion/support/Conversion.d.ts +1 -0
  494. package/widgets/CoordinateConversion/support/Format.d.ts +1 -0
  495. package/widgets/Editor/EditorViewModel.js +1 -1
  496. package/widgets/Editor/workflowUtils.js +1 -1
  497. package/widgets/Feature/support/FeatureContentMixin.js +1 -1
  498. package/widgets/FeatureTable/support/EditableColumnTemplateMixin.js +1 -1
  499. package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
  500. package/widgets/Legend/support/sizeRampUtils.js +1 -1
  501. package/widgets/OrientedImageryViewer/adapters/sketch/DataCaptureAdapter.js +1 -1
  502. package/widgets/OrientedImageryViewer/mixins/DrawHandlerMixin.js +1 -1
  503. package/widgets/OrientedImageryViewer/mixins/ImageMeasurementMixin.js +1 -1
  504. package/widgets/OrientedImageryViewer/mixins/SketchHandlerMixin.js +1 -1
  505. package/widgets/OrientedImageryViewer/mixins/TriangulatedImageMeasurementMixin.js +1 -1
  506. package/widgets/OrientedImageryViewer/mixins/TriangulatedSketchHandlerMixin.js +1 -1
  507. package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
  508. package/widgets/Sketch/support/ResponsiveToolbar/ToolbarGroupBase.js +1 -1
  509. package/widgets/smartMapping/support/utils.js +1 -1
  510. package/widgets/support/AnalysisViewModelMixin.js +1 -1
  511. package/widgets/support/AnchorElementViewModel.js +1 -1
  512. package/widgets/support/GoTo.js +1 -1
  513. package/widgets/support/InteractiveToolViewModelMixin.js +1 -1
  514. package/assets/esri/core/workers/chunks/0329fa3aa3403f1c243b.js +0 -1
  515. package/assets/esri/core/workers/chunks/04f09e1afda92cbe09f5.js +0 -1
  516. package/assets/esri/core/workers/chunks/0a97b1974367382cfdf5.js +0 -1
  517. package/assets/esri/core/workers/chunks/0b74d353f80974ff6fea.js +0 -1
  518. package/assets/esri/core/workers/chunks/0e100855bb3832a68e4b.js +0 -1
  519. package/assets/esri/core/workers/chunks/0ede8ba757fd0976d485.js +0 -1
  520. package/assets/esri/core/workers/chunks/0f39576806866cff777d.js +0 -1
  521. package/assets/esri/core/workers/chunks/0fea695721a818955abf.js +0 -1
  522. package/assets/esri/core/workers/chunks/10499abb7678e95d9f05.js +0 -1
  523. package/assets/esri/core/workers/chunks/110f78d5e78732750097.js +0 -1
  524. package/assets/esri/core/workers/chunks/1507297550c3cd1268e2.js +0 -1
  525. package/assets/esri/core/workers/chunks/21aa29039a95debd7f44.js +0 -1
  526. package/assets/esri/core/workers/chunks/29b74a3ff03d3c8b65dc.js +0 -1
  527. package/assets/esri/core/workers/chunks/2a84c9a81ec2bed3d4e5.js +0 -1
  528. package/assets/esri/core/workers/chunks/2ad6db80a508285a3e5d.js +0 -1
  529. package/assets/esri/core/workers/chunks/2b87d5b8931305b11ff6.js +0 -1
  530. package/assets/esri/core/workers/chunks/2f07dc632e51fddb2d48.js +0 -1
  531. package/assets/esri/core/workers/chunks/2f9adf0b809ce8797ebf.js +0 -1
  532. package/assets/esri/core/workers/chunks/3169d639ab54bf508e2c.js +0 -1
  533. package/assets/esri/core/workers/chunks/3354f1fa90f8ce4c8fde.js +0 -1
  534. package/assets/esri/core/workers/chunks/3809a8b3f31bb811d964.js +0 -1
  535. package/assets/esri/core/workers/chunks/38bba952c38af5a150e7.js +0 -1
  536. package/assets/esri/core/workers/chunks/3982409149571a827390.js +0 -1
  537. package/assets/esri/core/workers/chunks/3aea09191b737dc1de70.js +0 -1
  538. package/assets/esri/core/workers/chunks/3b11e4d2e69b7aea1d65.js +0 -1
  539. package/assets/esri/core/workers/chunks/3c1651e9e8d2e83d22df.js +0 -1
  540. package/assets/esri/core/workers/chunks/3df6631895d0a7109e00.js +0 -1
  541. package/assets/esri/core/workers/chunks/3e8d70039800f2395d66.js +0 -1
  542. package/assets/esri/core/workers/chunks/3f8d66d8447036f122ae.js +0 -1
  543. package/assets/esri/core/workers/chunks/420c6a14107a77ddad36.js +0 -1
  544. package/assets/esri/core/workers/chunks/421b8244d01736d82e7a.js +0 -1
  545. package/assets/esri/core/workers/chunks/457bd1bd37c67b61efe8.js +0 -1
  546. package/assets/esri/core/workers/chunks/48b60ff59afbae865de1.js +0 -1
  547. package/assets/esri/core/workers/chunks/4953314fd9afd52b6eec.js +0 -1
  548. package/assets/esri/core/workers/chunks/4cf8bddc3e0619e34424.js +0 -1
  549. package/assets/esri/core/workers/chunks/4d0bb5e4a1d789cc0d75.js +0 -1
  550. package/assets/esri/core/workers/chunks/4d8539674fc2e4fea03c.js +0 -1
  551. package/assets/esri/core/workers/chunks/5060be52a380fc4920f8.js +0 -1
  552. package/assets/esri/core/workers/chunks/5082cdc3e91e1c6d1070.js +0 -1
  553. package/assets/esri/core/workers/chunks/52ded087d19a93e29d93.js +0 -1
  554. package/assets/esri/core/workers/chunks/53bbb9aa6e4e4a0a8121.js +0 -1
  555. package/assets/esri/core/workers/chunks/54d3cb7d95d948998591.js +0 -1
  556. package/assets/esri/core/workers/chunks/560ebf5524ade7d1f85b.js +0 -1
  557. package/assets/esri/core/workers/chunks/5d75fcaded78f76efd3e.js +0 -1
  558. package/assets/esri/core/workers/chunks/5f7505ada0991cfbdd84.js +0 -1
  559. package/assets/esri/core/workers/chunks/601d668e70c5d72fe58c.js +0 -1
  560. package/assets/esri/core/workers/chunks/6737b2a4a70bbdafaf67.js +0 -1
  561. package/assets/esri/core/workers/chunks/6a339a47e765b9937dd7.js +0 -1
  562. package/assets/esri/core/workers/chunks/6c21964eb7c25c8b1e9a.js +0 -1
  563. package/assets/esri/core/workers/chunks/6fd10891506925560443.js +0 -29
  564. package/assets/esri/core/workers/chunks/71a05edd6f7f3197e621.js +0 -1
  565. package/assets/esri/core/workers/chunks/72b7e7b518c88b7569dd.js +0 -1
  566. package/assets/esri/core/workers/chunks/73918ca7fdf41272d941.js +0 -1
  567. package/assets/esri/core/workers/chunks/75274ac3ddf7c45f47d7.js +0 -1
  568. package/assets/esri/core/workers/chunks/7673217a688d739141e2.js +0 -1
  569. package/assets/esri/core/workers/chunks/76869c14dd7ffaae7eff.js +0 -1
  570. package/assets/esri/core/workers/chunks/7b156905d168bf973518.js +0 -1
  571. package/assets/esri/core/workers/chunks/7baa49055bc31618b56e.js +0 -1
  572. package/assets/esri/core/workers/chunks/7bd5a074d9f4ba137649.js +0 -1
  573. package/assets/esri/core/workers/chunks/7c13d7754fc914a87817.js +0 -1
  574. package/assets/esri/core/workers/chunks/7dc2e714234b2cee8701.js +0 -1
  575. package/assets/esri/core/workers/chunks/80d1267606383ae537f2.js +0 -1
  576. package/assets/esri/core/workers/chunks/835e0315661003caa71f.js +0 -1
  577. package/assets/esri/core/workers/chunks/8570e3df90fb76a8741a.js +0 -1
  578. package/assets/esri/core/workers/chunks/86578c191d76062157ec.js +0 -1
  579. package/assets/esri/core/workers/chunks/87d6e99d83db9a8cda7c.js +0 -1
  580. package/assets/esri/core/workers/chunks/8c9934d30655dd2c48da.js +0 -1
  581. package/assets/esri/core/workers/chunks/9117c9b720c9ba6e7a6e.js +0 -1
  582. package/assets/esri/core/workers/chunks/939fb9a8c301ace07186.js +0 -1
  583. package/assets/esri/core/workers/chunks/94a38c9b3d086b37242f.js +0 -1
  584. package/assets/esri/core/workers/chunks/98e1751f888975532afc.js +0 -1
  585. package/assets/esri/core/workers/chunks/9d61f10f2bef15b5811d.js +0 -1
  586. package/assets/esri/core/workers/chunks/9dcf5be203f8b1e47d9d.js +0 -1
  587. package/assets/esri/core/workers/chunks/9e372af03d62fa5ad10e.js +0 -1
  588. package/assets/esri/core/workers/chunks/9eb00bb8dab995c2dcb3.js +0 -1
  589. package/assets/esri/core/workers/chunks/9ed81757937fe08363ed.js +0 -1
  590. package/assets/esri/core/workers/chunks/9fe07947cf4ec44014e8.js +0 -1
  591. package/assets/esri/core/workers/chunks/a1d265614d038eb603f7.js +0 -1
  592. package/assets/esri/core/workers/chunks/a3d02885d6962b49eee4.js +0 -1
  593. package/assets/esri/core/workers/chunks/a66d6298236d59a615db.js +0 -1
  594. package/assets/esri/core/workers/chunks/a710c7a0584d9e45a469.js +0 -1
  595. package/assets/esri/core/workers/chunks/ab784764ddf9d7f693a1.js +0 -1
  596. package/assets/esri/core/workers/chunks/ace210d313ce53f3ae10.js +0 -1
  597. package/assets/esri/core/workers/chunks/b7426e5f290573cb9689.js +0 -1
  598. package/assets/esri/core/workers/chunks/b88e1084097a93a89f61.js +0 -1
  599. package/assets/esri/core/workers/chunks/baa5aa0670b23db86b50.js +0 -1
  600. package/assets/esri/core/workers/chunks/c0867890a84b4c98e0ba.js +0 -1
  601. package/assets/esri/core/workers/chunks/c1a551c4aa77f123d091.js +0 -1
  602. package/assets/esri/core/workers/chunks/c58f859dec9d6675dbd6.js +0 -1
  603. package/assets/esri/core/workers/chunks/c7425fb5e804f0f9d4dd.js +0 -1
  604. package/assets/esri/core/workers/chunks/c85184baccb4004bf42b.js +0 -1
  605. package/assets/esri/core/workers/chunks/ccf4b5fdcdace533bcb7.js +0 -1
  606. package/assets/esri/core/workers/chunks/d5bb6f479c0cdfc21d8a.js +0 -1
  607. package/assets/esri/core/workers/chunks/d689e7c685dd9a444d19.js +0 -1
  608. package/assets/esri/core/workers/chunks/d8b84d21144a58b6b911.js +0 -1
  609. package/assets/esri/core/workers/chunks/d8ffb1502def5c85740b.js +0 -1
  610. package/assets/esri/core/workers/chunks/db96d1d9f6d1a4d7fd2a.js +0 -1
  611. package/assets/esri/core/workers/chunks/de35baceeb815e6befd5.js +0 -1
  612. package/assets/esri/core/workers/chunks/e0341def2d81e679a200.js +0 -1
  613. package/assets/esri/core/workers/chunks/e164198dbb87ee202ba1.js +0 -1
  614. package/assets/esri/core/workers/chunks/e4eb6fdf5115bed48856.js +0 -1
  615. package/assets/esri/core/workers/chunks/e566102c7ed7a8ebf89e.js +0 -1
  616. package/assets/esri/core/workers/chunks/e59271f8b142a7602b7a.js +0 -1
  617. package/assets/esri/core/workers/chunks/eef3fa804e456beac4c1.js +0 -1
  618. package/assets/esri/core/workers/chunks/f319b59228b64e7f9008.js +0 -1
  619. package/assets/esri/core/workers/chunks/f42adcea81390fb21c66.js +0 -1
  620. package/assets/esri/core/workers/chunks/f4fcf87da4495584223d.js +0 -1
  621. package/assets/esri/core/workers/chunks/f52d081bbde5c95265cf.js +0 -1
  622. package/assets/esri/core/workers/chunks/f7ab4bf14ec8e986ef7c.js +0 -1
  623. package/assets/esri/core/workers/chunks/f92c92c0fd1b5b33ca21.js +0 -1
  624. package/assets/esri/core/workers/chunks/f989588dfdbb69056491.js +0 -1
  625. package/assets/esri/core/workers/chunks/fbd5f3b81cd9f061824d.js +0 -1
  626. package/assets/esri/core/workers/chunks/fc5b920f9756e11c2f88.js +0 -1
  627. package/assets/esri/core/workers/chunks/fdcc5fe4630a4ccf58de.js +0 -1
  628. package/assets/esri/core/workers/chunks/ff0a0819bba5e8264c47.js +0 -1
  629. package/assets/esri/core/workers/chunks/ff225735eba7f9130e19.js +0 -1
@@ -1 +0,0 @@
1
- "use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[5005],{54639(e,t,r){r.d(t,{R:()=>i,b:()=>n});class i{static{this._nextId=0}constructor(e,t,r,i,s){this.type=e,this.spatialReference=t,this.hasZ=r,this.hasM=i,this._geometry=s,this.arcadeDeclaredClass="esri.arcade.Geometry",this._json=null,this._gx=null,this._accessor=null,this._id=null}static of(e,t,r,s,n){return new i(e,t,r,s,n)}clone(e=!0){let t=new i(this.type,e?this.spatialReference:this.spatialReference.clone(),this.hasZ,this.hasM,this._geometry);return t._json=this._json,t._gx=this._gx,t._accessor=e?this._accessor:null,t}get id(){return this._id??=i._nextId++}set id(e){this._id??=e}asJsonGeometry(){return this._json??=this._geometry.toJsonGeometry(),this._json}asGxGeometry(e){return this._gx??=this._geometry.toGxGeometry(e),this._gx}asAccessorGeometry(){return this._accessor??=this._geometry.toAccessorGeometry(this.spatialReference),this._accessor}asJsonLikeGeometry(){return null==this._json?null==this._accessor?this.asJsonGeometry():this._accessor:this._json}castAsJson(){switch(this.type){case"point":{let{x:e,y:t,z:r,m:i}=this.asJsonLikeGeometry(),s={x:e,y:t,spatialReference:this.spatialReference.toJSON()};return this.hasZ&&(s.z=r??0),this.hasM&&(s.m=i??NaN),s}case"multipoint":{let{points:e}=this.asJsonLikeGeometry(),t={points:e,spatialReference:this.spatialReference.toJSON()};return this.hasZ&&(t.hasZ=!0),this.hasM&&(t.hasM=!0),t}case"polyline":{let{paths:e=[],curvePaths:t}=this.asJsonLikeGeometry(),r={paths:e,spatialReference:this.spatialReference.toJSON()};return null!=t&&(r.curvePaths=t),this.hasZ&&(r.hasZ=!0),this.hasM&&(r.hasM=!0),r}case"polygon":{let{rings:e=[],curveRings:t}=this.asJsonLikeGeometry(),r={rings:e,spatialReference:this.spatialReference.toJSON()};return null!=t&&(r.curveRings=t),this.hasZ&&(r.hasZ=!0),this.hasM&&(r.hasM=!0),r}case"extent":{let{xmin:e,ymin:t,xmax:r,ymax:i,zmin:s,zmax:n,mmin:a,mmax:o}=this.asJsonLikeGeometry(),h={xmin:e,ymin:t,xmax:r,ymax:i,spatialReference:this.spatialReference.toJSON()};return this.hasZ&&(h.zmin=s??0,h.zmax=n??0),this.hasM&&(h.mmin=a??NaN,h.mmax=o??NaN),h}default:throw this.type,Error(`Unsupported geometry type: ${this.type}`)}}castAsJsonAsync(){return Promise.resolve(this.castAsJson())}}const s="_arcadeGxJson";function n(e){let t=e.cache[s];if(null!=t)return t;let r=e.toJSON();return null!=e.wkt2&&(r.wkt2=e.wkt2),(r.latestVcsWkid||r.vcsWkid)&&(delete r.latestVcsWkid,delete r.vcsWkid),e.cache[s]=r}},69540(e,t,r){var i=r(32198),s=r(56372),n=r(64108),a=r(88620),o=(r(44208),r(4718)),h=(r(53966),r(97768));const l=Symbol("ClonableMixin"),u=e=>{var t;let r=e,s=class extends r{constructor(){super(...arguments),this[t]=!0}static{t=l}clone(e){let t=(0,a.oY)(this);(0,h.Lw)(t,"unable to clone instance of non-accessor class");let r=t.metadata,i=t.store,s={},n=new Map;for(let t in r){let a=r[t],h=i?.originOf(t),l=a.clonable;if(a.readOnly||!1===l||7!==h&&0!==h&&5!==h&&4!==h)continue;let u=this[t],d=null;if("function"==typeof l)d=l(u,e);else if("reference"===l)d=u;else if(d=(0,o.TU)(u,e),null!=u&&null==d)continue;0===h?n.set(t,d):s[t]=d}let l=new(Object.getPrototypeOf(this).constructor)(s);if(n.size){let e=(0,a.oY)(l)?.store;if(e)for(let[t,r]of n)e.set(t,r,0)}return l}};return s=(0,i.Cg)([(0,n.$K)("esri.core.Clonable")],s),s},d=u(s.A);r.d(t,["OU",0,u,"Pw",0,d])},9775(e,t,r){r.d(t,{A:()=>n});var i=r(62788),s=r(95488);class n{constructor(e=e=>e.values().next().value){this._peeker=e,this._observable=new s.I,this._items=new Set}get length(){return(0,i.gc)(this._observable),this._items.size}clear(){0!==this.length&&(this._items.clear(),this._observable.notify())}last(){if(0===this.length)return;let e;for(e of this._items);return e}peek(){if(0!==this.length)return this._peeker(this._items)}push(e){this.contains(e)||(this._items.add(e),this._observable.notify())}contains(e){return(0,i.gc)(this._observable),this._items.has(e)}pop(){if(0===this.length)return;let e=this.peek();return this._items.delete(e),this._observable.notify(),e}popLast(){if(0===this.length)return;let e=this.last();return this._items.delete(e),this._observable.notify(),e}remove(e){this.contains(e)&&(this._items.delete(e),this._observable.notify())}filter(e){let t=this.length;return this._items.forEach(t=>{e(t)||this._items.delete(t)}),t!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){(0,i.gc)(this._observable),yield*this._items}}},48163(e,t,r){function i(){return[0,0]}function s(e){return[e[0],e[1]]}function n(e,t){return[e,t]}function a(){return n(1,1)}function o(){return n(-1,-1)}function h(){return n(1,0)}function l(){return n(0,1)}r.d(t,{IA:()=>d,Un:()=>u,fA:()=>n,o8:()=>s,vt:()=>i});const u=a(),d=o(),c=h(),f=l();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:d,ONES:u,UNIT_X:c,UNIT_Y:f,ZEROS:[0,0],clone:s,create:i,freeze:function(e,t){return[e,t]},fromArray:function(e,t=[0,0]){let r=Math.min(2,e.length);for(let i=0;i<r;++i)t[i]=e[i];return t},fromValues:n,negativeOnes:o,ones:a,unitX:h,unitY:l,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},87992(e,t,r){r.d(t,{JR:()=>S,ME:()=>I,MY:()=>F,NO:()=>v,Nh:()=>b,V2:()=>N,_s:()=>O,e6:()=>Z,gh:()=>M,jm:()=>T,tr:()=>Y,uX:()=>p});var i=r(32198),s=(r(69397),r(92722)),n=r(16930),a=r(19419),o=r(513),h=r(50954),l=r(79567),u=r(52006),d=r(49663),c=r(46068),f=r(60408),m=r(21325);class p{constructor({type:e,spatialReference:t,vertexCount:r,vertexXY:i,vertexZ:s,vertexM:n,partCount:a,partOffsets:o,partFlags:h,segmentFlags:l,segmentIndices:u,segmentParams:d,segmentCountArc:c,segmentCountBezier:f}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=e,this.spatialReference=t,this.vertexCount=r,this.vertexXY=i,this.vertexZ=s,this.vertexM=n,this.partCount=a,this.partOffsets=o,this.partFlags=h,this.segmentFlags=l,this.segmentIndices=u,this.segmentParams=d,this.segmentCountArc=c,this.segmentCountBezier=f}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){let{segmentCount:e,segmentCountArc:t,segmentCountBezier:r}=this;return e&&e-t-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return this.segmentCountArc+this.segmentCountBezier>0}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function e(e){return e?64+e.byteLength:0}return e(this.vertexXY)+e(this.vertexZ)+e(this.vertexM)+e(this.partOffsets)+e(this.partFlags)+e(this.segmentFlags)+e(this.segmentIndices)+e(this.segmentParams)}clone(){let{type:e,vertexCount:t,partCount:r,hasZ:i,hasM:s,segmentCountArc:n,segmentCountBezier:a}=this,o=N(e,t,r,i,s,this.hasCurves(),n,a);o.spatialReference=this.spatialReference;let{vertexXY:h,vertexZ:l,vertexM:u}=this;if(o.vertexXY.set(h.subarray(0,2*t),0),o.vertexZ?.set(l.subarray(0,t),0),o.vertexM?.set(u.subarray(0,t),0),this.isMultipart()){let{partOffsets:e,partFlags:t}=this;o.partFlags.set(t.subarray(0,r+1)),o.partOffsets.set(e.subarray(0,r+1))}if(this.hasCurves()){let{segmentFlags:e,segmentIndices:r,segmentParams:i,segmentParamCount:s}=this;o.segmentFlags.set(e.subarray(0,t),0),o.segmentIndices.set(r.subarray(0,t),0),o.segmentParams.set(i.subarray(0,s),0)}return o}equals(e){return this.equalsWithinTolerance(e,0)}equalsWithinTolerance(e,t){if(null==e)return!1;if(this===e)return!0;if(!(0,m.aI)(this.spatialReference,e.spatialReference)||this.vertexCount!==e.vertexCount||this.partCount!==e.partCount||this.hasZ!==e.hasZ||this.hasM!==e.hasM||this.hasCurves()!==e.hasCurves()||this.segmentCountArc!==e.segmentCountArc||this.segmentCountBezier!==e.segmentCountBezier)return!1;let r=0===t?(e,t)=>e!==t||isNaN(e)!==isNaN(t):(e,r)=>Math.abs(e-r)>t||isNaN(e)!==isNaN(r);for(let t=0;t<this.vertexCount;++t)if(r(this.vertexXY[2*t],e.vertexXY[2*t])||r(this.vertexXY[2*t+1],e.vertexXY[2*t+1]))return!1;if(this.hasZ)for(let t=0;t<this.vertexCount;++t)if(r(this.vertexZ[t],e.vertexZ[t]))return!1;if(this.hasM)for(let t=0;t<this.vertexCount;++t)if(r(this.vertexM[t],e.vertexM[t]))return!1;for(let t=0;t<this.partCount;++t)if(this.partFlags[t]!==e.partFlags[t]||this.partOffsets[t]!==e.partOffsets[t])return!1;if(this.hasCurves()){for(let t=0;t<this.vertexCount;++t)if(this.segmentFlags[t]!==e.segmentFlags[t]||this.segmentIndices[t]!==e.segmentIndices[t])return!1;for(let t=0;t<this.segmentParamCount;++t)if(r(this.segmentParams[t],e.segmentParams[t]))return!1}return!0}get parts(){return this.isMultipart()?new g(this):[][Symbol.iterator]()}}class g{constructor(e){this.geometry=e,this.value=new _(e)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class _{constructor(e){this.geometry=e,this.index=-1,this._readVertex=w(e),this._segments=new y(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){let e=this.geometry.partOffsets;return e[this.index+1]-e[this.index]}}class y{constructor(e){this._part=e,this._partStart=0,this._partEnd=0,this.value=new x(e.geometry)}get _partIsClosed(){return!!(1&this._part.geometry.partFlags?.[this._part.index])}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;let e=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=e&&this._partIsClosed?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){let{index:e}=this._part,t=this._part.geometry.partOffsets;this._partStart=t[e],this._partEnd=t[e+1]-(this._partIsClosed?1:2),this.value.indexOfStartVertex=this._partStart-1}}class x{constructor(e){this.geometry=e,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=w(e)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){let e=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===e)return this.end;let t=this.geometry.segmentParams,r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===e){let e=t[r++],i=t[r++],s=t[r++],n=t[r++];return{b:[this.end,[e,i],[s,n]]}}let i=t[r++],s=t[r++],n=t[r++],a=t[r++],o=t[r++],h=t[r++];r++,r++;let l=t[r++],u=t[r++];if(!(4&i)&&1===n)return{c:[this.end,[l,u]]};let d=2&i?0:1,c=1&i?0:1;return{a:[this.end,[o,h],d,c,a,s,n]}}}function v(e,t){let r={stack:[],error:void 0,hasError:!1};try{return t??=(0,a.Ie)(),(0,i.mS)(r,new C(e,["vertexZ","vertexM","spatialReference"]),!1),(0,a.bx)(t,function(e){let t,{vertexCount:r,vertexXY:s,vertexZ:n,vertexM:o}=e,h=P(e);if(e.hasCurves()){let r={stack:[],error:void 0,hasError:!1};try{(0,i.mS)(r,new C(e,["vertexZ","vertexM"]),!1);let s=(0,a.Ie)();for(let t of e.parts){let e=t.startVertex;for(let{curve:r}of t.segments)(0,l.e)(s,e,r),e=(0,u.yP)(r)}let[n,o,d,c]=s;t={xmin:n,ymin:o,xmax:d,ymax:c,spatialReference:h}}catch(e){r.error=e,r.hasError=!0}finally{(0,i.hk)(r)}}else{let e,i,n,a;e=i=1/0,n=a=-1/0;for(let t=0;t<r;++t){let r=s[2*t],o=s[2*t+1];e=Math.min(e,r),n=Math.max(n,r),i=Math.min(i,o),a=Math.max(a,o)}t={xmin:e,ymin:i,xmax:n,ymax:a,spatialReference:h}}if(n){let e=1/0,r=-1/0;for(let t of n)e=Math.min(e,t),r=Math.max(r,t);t.zmin=e,t.zmax=r}if(o){let e=1/0,r=-1/0;for(let t of o)e=Math.min(e,t),r=Math.max(r,t);t.mmin=e,t.mmax=r}return t}(e)),t}catch(e){r.error=e,r.hasError=!0}finally{(0,i.hk)(r)}}function I(e){let t,r,i;if((0,f.fT)(e)){i="point";let{x:s,y:n,z:a,m:o}=e,h=[s,n];null!=a&&h.push(a),null!=o&&h.push(o),r=[[h]],t=1}else(0,f.U9)(e)?(i="multipoint",r=[e.points],t=e.points.length):(0,f.Rg)(e)?(i="polyline",r=e.curvePaths??e.paths,t=r.reduce((e,t)=>e+t.length,0)):(i="polygon",r=e.curveRings??e.rings,t=r.reduce((e,t)=>(0===t.length||(e+=t.length,A(t[0],(0,u.yP)(t.at(-1)))&&--e),e),0));let s=N(i,t,i.includes("point")?0:r.length,(0,f.Pv)(e),(0,f.W0)(e),(0,u.Ed)(e)),{hasZ:n,hasM:a,vertexXY:o,vertexZ:h,vertexM:l}=s;function d(e){o[2*m]=e[0],o[2*m+1]=e[1],n&&(h[m]=e[2]),a&&(l[m]=e[c]),++m}s.spatialReference=e.spatialReference??void 0;let c=s.hasZ?3:2,m=0;if(!s.isMultipart()){if(!n&&!a){for(let[e,t]of r[0])o[2*m]=e,o[2*m+1]=t,++m;return s}for(let e of r[0])d(e);return s}let p="polygon"===i,{partOffsets:g}=s,_=0;if(!(0,u.Ed)(e)){for(let e of r){if(g[_++]=m,0===e.length)continue;let t=e.length;if(p&&A(e[0],e.at(-1))&&--t,n||a)for(let r=0;r<t;++r)d(e[r]);else for(let r=0;r<t;++r){let[t,i]=e[r];o[2*m]=t,o[2*m+1]=i,++m}}return g[_]=m,s}function y(e){let t=x+e;if(t<=(s.segmentParams?.length??0))return;let r=t*B;r=20*Math.ceil(r/20);let i=s.segmentParams;s.segmentParams=new Float64Array(r),null!=i&&s.segmentParams.set(i)}let x=0;for(let e of r){if(s.partOffsets[_++]=m,0===e.length)continue;let t=e[0],r=t;for(let t=1;t<e.length;++t){let i=e[t];d(r);let n=m-1;(0,u.wY)(i)?(y(10),++s.segmentCountArc,x=O(r,i,s,n,x),r=i.a[0]):(0,u.DA)(i)?(y(10),++s.segmentCountArc,x=R(r,i,s,n,x),r=i.a[0]):(0,u.aO)(i)?(y(10),++s.segmentCountArc,x=Z(r,i,s,n,x),r=i.c[0]):(0,u.n1)(i)?(y(4),++s.segmentCountBezier,x=Y(0,i,s,n,x),r=i.b[0]):r=i}p&&A(t,r)||d(r)}return s.partOffsets[_]=m,s}function M(e){let t=w(e),{vertexCount:r,partCount:i,hasZ:s,hasM:n}=e,a=P(e),o=0;if(!e.isMultipart()){if("point"===e.type){let[t,r]=e.vertexXY;return{x:t,y:r,z:e.vertexZ?.[0],m:e.vertexM?.[0],spatialReference:a}}let i=[];for(;o<r;)i.push(t(o++));return{points:i,spatialReference:a,hasZ:s,hasM:n}}if(!e.hasCurves()){let r=[];for(let s=0;s<i;++s){let i=!!(1&e.partFlags[s]),n=e.partOffsets[s+1],a=[];for(;o<n;)a.push(t(o++));i&&a.length>0&&a.push([...a[0]]),r.push(a)}return"polygon"===e.type?{rings:r,hasZ:s,hasM:n,spatialReference:a}:{paths:r,hasZ:s,hasM:n,spatialReference:a}}let h=[];for(let{segments:t,startVertex:r}of e.parts){let e=[r];for(let{curve:r}of t)e.push(r);h.push(e)}return"polygon"===e.type?{rings:[],curveRings:h,hasZ:s,hasM:n,spatialReference:a}:{paths:[],curvePaths:h,hasZ:s,hasM:n,spatialReference:a}}function b(e,{lengths:t,coords:r,hasZ:i,hasM:s},n){let a=e.includes("point")?0:t.length,o="polygon"===e,h="point"===e?1:t.reduce((e,t)=>e+t,0)-(o?a:0);i??=!1,s??=!1;let l=N(e,h,a,i,s,!1,0,0);if(l.spatialReference=n??void 0,!l.isMultipart()){for(let e=0,t=0;e<h;++e)l.vertexXY[2*e]=r[t++],l.vertexXY[2*e+1]=r[t++],i&&(l.vertexZ[e]=r[t++]),s&&(l.vertexM[e]=r[t++]);return l}let u=2+Number(i)+Number(s),d=0,c=0;l.partOffsets[0]=0;for(let e of t){let t=l.partOffsets[c],n=t+e-Number(o);l.partOffsets[++c]=n;for(let e=t;e<n;++e)l.vertexXY[2*e]=r[d++],l.vertexXY[2*e+1]=r[d++],i&&(l.vertexZ[e]=r[d++]),s&&(l.vertexM[e]=r[d++]);o&&(d+=u)}return l}function S({type:e,vertexCount:t,vertexXY:r,vertexZ:i,vertexM:n,partCount:a,partOffsets:o,partFlags:h,hasZ:l,hasM:u}){let d=new s.A([],[],l,u);a=Math.max(a,1);let c=0;for(let e=0;e<a;++e){let s=o?.[e+1]??t,a=d.coords.length;for(let e=c;e<s;++e)d.coords.push(r[2*e],r[2*e+1]),l&&d.coords.push(i[e]),u&&d.coords.push(n[e]);if(h&&1&h[e]){let e=c;d.coords.push(r[2*e],r[2*e+1]),l&&d.coords.push(i[e]),u&&d.coords.push(n[e])}d.lengths.push((d.coords.length-a)/d.stride),c=s}return"point"===e&&(d.lengths.length=0),d}function T(...e){let t=new Set;for(let r of e){if(!r)continue;let e=[r.vertexXY,r.vertexZ,r.vertexM,r.partOffsets,r.partFlags,r.segmentFlags,r.segmentIndices,r.segmentParams];for(let r of e){let e=r?.buffer;e&&t.add(e)}}return Array.from(t)}function F(e,t){return"getSpatialReference"in e&&(t=function(e){if(null==e)return;let t=e.getText()||void 0,r=e.isCustomWkid()?0:e.getOldID();if(r<=0)return{wkt:t};let i=e.getLatestID();(i<=0||i===r)&&(i=void 0);let s=e.getVCS();if(null==s)return{wkid:r,latestWkid:i,wkt:t};let n=s.isCustomWkid()?0:s.getOldID();if(n<=0)return{wkt:t};let a=e.getLatestVerticalID();return(a<=0||a===n)&&(a=void 0),{wkid:r,wkt:t,latestWkid:i,vcsWkid:n,latestVcsWkid:a}}(e.getSpatialReference()),e=e.getGeometry()),new p({...e.toFlatGeometry(),spatialReference:t})}class C{constructor(e,t){this.target=e,this.keys=t,this.oldValues=t.map(t=>e[t]);for(let r of t)e[r]=void 0}[Symbol.dispose](){this.keys.map((e,t)=>{this.target[e]=this.oldValues[t]})}}function P({spatialReference:e}){return e instanceof n.A?e.toJSON():e}function w({vertexXY:e,vertexZ:t,vertexM:r}){return t?r?i=>[e[2*i],e[2*i+1],t[i],r[i]]:r=>[e[2*r],e[2*r+1],t[r]]:r?t=>[e[2*t],e[2*t+1],r[t]]:t=>[e[2*t],e[2*t+1]]}function A(e,t){return e.every((e,r)=>e===t[r])}function N(e,t,r,i,s,n,a,o){a??=0,o??=0;let h=new p({type:e,vertexCount:t,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:a,segmentCountBezier:o}),l=2*Float64Array.BYTES_PER_ELEMENT*t;i&&(l+=Float64Array.BYTES_PER_ELEMENT*t),s&&(l+=Float64Array.BYTES_PER_ELEMENT*t),h.isMultipart()&&(l+=(r+1)*Int32Array.BYTES_PER_ELEMENT,l+=(r+1)*Int8Array.BYTES_PER_ELEMENT),n&&(l+=t*Int8Array.BYTES_PER_ELEMENT,l+=t*Int32Array.BYTES_PER_ELEMENT,l+=h.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);let u=new ArrayBuffer(l),d=0;return h.vertexXY=new Float64Array(u,d,2*t),d+=h.vertexXY.byteLength,i&&(h.vertexZ=new Float64Array(u,d,t),d+=h.vertexZ.byteLength),s&&(h.vertexM=new Float64Array(u,d,t),d+=h.vertexM.byteLength),n&&(h.segmentParams=new Float64Array(u,d,h.segmentParamCount),d+=h.segmentParams.byteLength,h.segmentIndices=new Int32Array(u,d,t),h.segmentIndices.fill(G),d+=h.segmentIndices.byteLength),h.isMultipart()&&(h.partOffsets=new Int32Array(u,d,r+1),d+=h.partOffsets.byteLength,h.partFlags=new Int8Array(u,d,r+1),d+=h.partFlags.byteLength,"polygon"===h.type&&h.partFlags.subarray(0,r).fill(1)),n&&(h.segmentFlags=new Int8Array(u,d,t),h.segmentFlags.fill(1),d+=h.segmentFlags.byteLength),h}function O(e,t,{segmentFlags:r,segmentIndices:i,segmentParams:s},n,a){r[n]=4,i[n]=a;let[o,[h,l],u,d,f,m,p]=t.a,g=4;d||(g|=1),u||(g|=2);let _=(0,c.SW)(e,t),[y,x]=(0,c.Uk)(_,.5);return s[a++]=g,s[a++]=m,s[a++]=p,s[a++]=f,s[a++]=h,s[a++]=l,s[a++]=_.u2-_.u1,s[a++]=_.u1,s[a++]=y,s[a++]=x,a}function R(e,t,{segmentFlags:r,segmentIndices:i,segmentParams:s},n,a){r[n]=4,i[n]=a;let h=(0,d.io)(e,t);return z(h,4,...(0,o.mq)(h,.5),s,a)}function Z(e,t,{segmentFlags:r,segmentIndices:i,segmentParams:s},n,a){return r[n]=4,i[n]=a,z((0,h.pM)(e,t),0,...t.c[1],s,a)}function z(e,t,r,i,s,n){let{cx:a,cy:o,thetaStart:h,thetaEnd:l,radius:u}=e;return h>l||(t|=1),Math.abs(l-h)<=Math.PI||(t|=2),s[n++]=t,s[n++]=u,s[n++]=1,s[n++]=0,s[n++]=a,s[n++]=o,s[n++]=l-h,s[n++]=h,s[n++]=r,s[n++]=i,n}function Y(e,{b:[t,[r,i],[s,n]]},{segmentFlags:a,segmentIndices:o,segmentParams:h},l,u){return a[l]=2,o[l]=u,h[u++]=r,h[u++]=i,h[u++]=s,h[u++]=n,u}const B=1.61803,G=-1},36745(e,t,r){r.d(t,{z:()=>o});var i=r(4718),s=r(92722),n=r(51118),a=r(60408);class o{static fromOptimized(e,t,r=1){return(new h).initialize(e,t,r)}static fromJSON(e){let[t,r]=u(e),i=(0,a.Pv)(e),s=(0,a.W0)(e);return(new d).initialize(t,r,i,s,1)}static fromOptimizedCIM(e,t,r=1){return(new c).initialize(e,t,r)}static fromJSONCIM(e,t=1){let[r,i]=u(e),s=(0,a.Pv)(e),n=(0,a.W0)(e);return(new f).initialize(r,i,s,n,t)}static fromFeatureSetReader(e){let t=e.readGeometryForDisplay(),r=e.geometryType;return t&&r?this.fromOptimized(t,r):null}static fromFeatureSetReaderCIM(e){let t=e.readGeometryForDisplay(),r=e.geometryType;return t&&r?this.fromOptimizedCIM(t,r):null}static createEmptyOptimized(e,t=!1,r=!1,i=1){return(new c).initialize(new s.A([],[],t,r),e,i)}static createEmptyJSON(e,t=!1,r=!1){return(new d).initialize([],e,t,r,1)}static createEmptyOptimizedCIM(e,t=!1,r=!1,i=1){return(new c).initialize(new s.A([],[],t,r),e,i)}static createEmptyJSONCIM(e,t=!1,r=!1,i=1){return(new f).initialize([],e,t,r,i)}asJSON(){let e=(0,n.x)(this),{hasZ:t,hasM:r}=this;return"esriGeometryEnvelope"===this.geometryType?{xmin:e[0][0][0],ymin:e[0][0][1],xmax:e[0][2][0],ymax:e[0][2][1]}:"esriGeometryMultipoint"===this.geometryType?{points:e.flat(),hasZ:t,hasM:r}:"esriGeometryPoint"===this.geometryType?{x:e[0][0][0],y:e[0][0][1],z:t?e[0][0][2]:void 0,m:r?e[0][0][t?3:2]:void 0}:"esriGeometryPolygon"===this.geometryType?{rings:e,hasZ:t,hasM:r}:{paths:e,hasZ:t,hasM:r}}getCurrentRingArea(){if(this.pathSize<3)return 0;let e,t,r=0;if(this.seekPathStart(),!this.nextPoint())return 0;e=this.x,t=this.y;let i=e,s=t;for(;this.nextPoint();)r+=(e-this.x)*(t+this.y),e=this.x,t=this.y;return r+=(e-i)*(t+s),-.5*r}invertY(){this.yFactor*=-1}}class h extends o{constructor(){super(...arguments),this._end=-1}get hasZ(){return this._geometry?.hasZ}get hasM(){return this._geometry?.hasM}initialize(e,t,r){return this.geometryType=t,this._stride=e.stride,this._geometry=e,this._pathIndex=-1,this._pathOffset=0,this._pointOffset=-this._stride,this._end=-1,this.yFactor=r,this}reset(){this.initialize(this._geometry,this.geometryType,this.yFactor)}seekPath(e){if(e>=0&&e<this.totalSize){if(this._pathIndex<e)for(;this._pathIndex<e&&this.nextPath(););else if(this._pathIndex>e)for(;this._pathIndex>e&&this.prevPath(););return!0}return!1}seekPathStart(){this._pointOffset=this._pathOffset-this._stride}seekPathEnd(){this._pointOffset=this._end}seekInPath(e){let t=this._pathOffset+e*this._stride;return t>=0&&t<this._end&&(this._pointOffset=t,!0)}nextPoint(){return(this._pointOffset+=this._stride)<this._end}prevPoint(){return(this._pointOffset-=this._stride)>=this._pathOffset}nextPath(){return!(this.pathIndex>=this.totalSize-1||(this._pathIndex>=0&&(this._pathOffset+=this._stride*this.pathSize),this._pathIndex++,this._pointOffset=this._pathOffset-this._stride,this._end=this._pointOffset+this._stride+this._stride*this.pathSize,0))}prevPath(){return!(this.pathIndex<=0||(this._pathIndex--,this._end=this._pathOffset,this._pathOffset-=this._stride*this.pathSize,this._pointOffset=this._pathOffset-this._stride,0))}getCurrentPath(){let e=this._end,t=this._geometry.coords,r=this._pathOffset;return(new h).initialize(new s.A([this.pathSize],t.slice(r,e),this.hasZ,this.hasM),this.geometryType,this.yFactor)}pathLength(){let e=this._end,t=this._stride,r=this._geometry.coords,i=0;for(let s=this._pathOffset+t;s<e;s+=t){let e=r[s-t],n=r[s-t+1],a=r[s]-e,o=r[s+1]-n;i+=Math.sqrt(a*a+o*o)}return i}startPath(){this._geometry.lengths.push(0)}pushPath(e){this.startPath(),this.pushPoints(e)}pushPoint(e){for(let t=0;t<this._stride;++t)this._geometry.coords.push(e[t]);this._geometry.lengths[this.totalSize-1]++}pushXY(e,t){this._geometry.coords.push(e,t),this._geometry.lengths[this.totalSize-1]++}pushPoints(e){for(let t of e)for(let e=0;e<this._stride;++e)this._geometry.coords.push(t[e]);this._geometry.lengths[this.totalSize-1]+=e.length}pushCursor(e){let t=e.asOptimized();this._geometry.coords.push(...t.coords),this._geometry.lengths.push(...t.lengths)}asOptimized(){let e=this._geometry.clone();if(1!==this.yFactor)for(let t=1;t<e.coords.length;t+=this._stride)e.coords[t]*=this.yFactor;return"esriGeometryPoint"===this.geometryType&&(e.lengths.length=0),e}isClosed(){let e=this._geometry.coords,t=this._pathOffset,r=this._end-this._stride;for(let i=0;i<this._stride;i++)if(e[t+i]!==e[r+i])return!1;return!0}clone(){return(new h).initialize(this._geometry.clone(),this.geometryType,this.yFactor)}get totalPoints(){return this._geometry.isPoint?1:this._geometry.lengths.reduce((e,t)=>e+t)}get pathSize(){let{lengths:e}=this._geometry;return this._geometry.isPoint?1:this._pathIndex<0||this._pathIndex>e.length-1?0:e[this._pathIndex]}get totalSize(){return this._geometry.isPoint?1:this._geometry.lengths.length}get x(){return this._geometry.coords[this._pointOffset]}set x(e){this._geometry.coords[this._pointOffset]=e}get y(){return this.yFactor*this._geometry.coords[this._pointOffset+1]}set y(e){this._geometry.coords[this._pointOffset+1]=this.yFactor*e}get z(){return this._geometry.coords[this._pointOffset+2]}set z(e){this._geometry.coords[this._pointOffset+2]=e}get m(){let e=this.hasZ?3:2;return this._geometry.coords[this._pointOffset+e]}set m(e){this._geometry.coords[this._pointOffset+3]=e}get pathIndex(){return this._pathIndex}get _coordIndex(){return this._pointOffset/this._stride}}function l(e){let t=[e.x,e.y];return e.z&&t.push(e.z),e.m&&t.push(e.m),t}function u(e){return(0,a.Bi)(e)?[e.rings,"esriGeometryPolygon"]:(0,a.Rg)(e)?[e.paths,"esriGeometryPolyline"]:(0,a.U9)(e)?[[e.points],"esriGeometryMultipoint"]:(0,a.ZC)(e)?[[[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]]],"esriGeometryEnvelope"]:(0,a.fT)(e)?[[[l(e)]],"esriGeometryPoint"]:[[],"esriGeometryPolyline"]}class d extends o{initialize(e,t,r,i,s){return this._paths=e,this.geometryType=t,this.hasZ=r,this.hasM=i,this._pathIndex=this._pointIndex=-1,this.yFactor=s,this._mIndex=this.hasZ?3:2,this}reset(){this._pathIndex=this._pointIndex=-1}seekPath(e){return this._pathIndex=e,this._pointIndex=-1,e>=0&&e<this.totalSize&&(this._currentPath=this._paths[e],!0)}seekPathStart(){this._pointIndex=-1}seekPathEnd(){this._pointIndex=this._currentPath.length}seekInPath(e){return e>=0&&e<this._currentPath.length&&(this._pointIndex=e,this._currentPoint=this._currentPath[this._pointIndex],!0)}nextPoint(){return this._currentPoint=this._currentPath[++this._pointIndex],this._pointIndex<this._currentPath.length}prevPoint(){return this._currentPoint=this._currentPath[--this._pointIndex],this._pointIndex>=0}nextPath(){return this._pointIndex=-1,this._currentPath=this._paths[++this._pathIndex],this._pathIndex<this.totalSize}prevPath(){return this.pathIndex>0&&(this._pointIndex=-1,this._pathIndex--,this._currentPath=this._paths[this._pathIndex],!0)}pathLength(){let e=this._currentPath.length,t=this._currentPath,r=0;for(let i=1;i<e;i++){let e=t[i-1],s=t[i],n=e[0],a=e[1],o=s[0]-n,h=s[1]-a;r+=Math.sqrt(o*o+h*h)}return r}startPath(){this._paths.push([])}getCurrentPath(){return(new d).initialize([this._currentPath],this.geometryType,this.hasZ,this.hasM,this.yFactor)}pushPath(e){this._paths.push(e)}pushPoint(e){this._paths[this.totalSize-1].push(e)}pushXY(e,t){this._paths[this.totalSize-1].push([e,t])}pushPoints(e){this._paths[this.totalSize-1].push(...e)}pushCursor(e){let t=(0,n.x)(e);for(let e of t)this.pushPath(e)}asOptimized(){let{hasZ:e,hasM:t}=this,r=new s.A([],[],e,t),{coords:i,lengths:n}=r;if("esriGeometryPoint"===this.geometryType)i.push(...this._paths[0][0]),n.length=0;else for(let r of this._paths){for(let s of r)i.push(s[0]),i.push(s[1]*this.yFactor),e&&i.push(s[2]),t&&i.push(s[this._mIndex]);n.push(r.length)}return r}isClosed(){let e=this._currentPath[0],t=this._currentPath[this._currentPath.length-1];for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}clone(){return(new d).initialize((0,i.o8)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}get totalPoints(){return this._paths.map(e=>e.length).reduce((e,t)=>e+t)}get pathSize(){return this._pathIndex<0||this._pathIndex>this.totalSize-1?-1:this._paths[this._pathIndex].length}get totalSize(){return this._paths.length}get x(){return this._currentPoint[0]}set x(e){this._currentPoint[0]=e}get y(){return this.yFactor*this._currentPoint[1]}set y(e){this._currentPoint[1]=this.yFactor*e}get z(){return this._currentPoint[2]}set z(e){this._currentPoint[2]=e}get m(){return this._currentPoint[this._mIndex]}set m(e){this._currentPoint[this._mIndex]=e}get pathIndex(){return this._pathIndex}}class c extends h{initialize(e,t,r){return super.initialize(e,t,r),this._controlPoints||=this._controlPoints=Array(this.totalSize).fill(void 0).map(e=>new Set),this}startPath(){super.startPath(),this._controlPoints.push(new Set)}clone(){let e=(new c).initialize(this._geometry.clone(),this.geometryType,this.yFactor);return e._controlPoints=this._controlPoints,e}setControlPoint(){this._controlPoints[this.pathIndex].add(this._coordIndex)}getControlPoint(){return this._controlPoints[this.pathIndex].has(this._coordIndex)}setControlPointAt(e){this._controlPoints[this.pathIndex].add(e)}getControlPointAt(e){return this._controlPoints[this.pathIndex].has(e)}}class f extends d{initialize(e,t,r,i,s){return super.initialize(e,t,r,i,s)}clone(){return(new f).initialize((0,i.o8)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}setControlPoint(){this._paths[this.pathIndex][this._pointIndex][4]=1}getControlPoint(){return 1===this._paths[this.pathIndex][this._pointIndex][4]}setControlPointAt(e){this._paths[this.pathIndex][e][4]=1}getControlPointAt(e){return 1===this._paths[this.pathIndex][e][4]}}},48526(e,t,r){var i,s=r(32198),n=r(91429),a=r(4576),o=r(4718),h=r(5443),l=r(91075),u=r(86738),d=r(16930),c=r(90634),f=r(47610),m=r(56993),p=r(43937);let g=i=class extends l.A{constructor(e){super(function(e){if(!e)return;let{points:t,hasM:r,hasZ:i,spatialReference:s}=e;switch(t??=[],t?.at(0)?.length){case 4:i??=!0,r??=!0;break;case 3:i??=!0!==r,r??=!i;break;default:i??=!1,r??=!1}return s??=d.A.WGS84,{...e,hasM:r,hasZ:i,points:t,spatialReference:s}}(e)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){let e=(0,c.ge)(this);return e?new h.A({...e,spatialReference:this.spatialReference}):null}writePoints(e,t){t.points=(0,o.o8)(this.points)}clone(){let{points:e,spatialReference:t,hasM:r,hasZ:s}=this;return new i({points:(0,o.o8)(e),spatialReference:t.clone(),hasM:r,hasZ:s})}equals(e){if(this===e)return!0;if(null==e)return!1;let t=this.spatialReference,r=e.spatialReference;return!(null!=t!=(null!=r)||null!=t&&null!=r&&!t.equals(r))&&(0,a.aI)(this.points,e.points,f.v6)}addPoint(e){return(0,m.h)(this,e),Array.isArray(e)?this.points.push(e):this.points.push(e.toArray()),this.notifyChange("points"),this}getPoint(e){if(!this._validateInputs(e))return null;let t=this.points[e],r={x:t[0],y:t[1],spatialReference:this.spatialReference},i=2;return this.hasZ&&(r.z=t[2],i=3),this.hasM&&(r.m=t[i]),new u.A(r)}removePoint(e){if(!this._validateInputs(e))return null;let[t,r,i,s]=this.points.splice(e,1)[0],n=new u.A({x:t,y:r,z:i,m:s,spatialReference:this.spatialReference});return this.notifyChange("points"),n}setPoint(e,t){return this._validateInputs(e)&&((0,m.h)(this,t),Array.isArray(t)||(t=t.toArray()),this.points[e]=t,this.notifyChange("points")),this}toJSON(e){return this.write({},e)}_validateInputs(e){return null!=e&&e>=0&&e<this.points.length}};(0,s.Cg)([(0,n.MZ)({readOnly:!0})],g.prototype,"cache",null),(0,s.Cg)([(0,n.MZ)({readOnly:!0})],g.prototype,"extent",null),(0,s.Cg)([(0,n.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],g.prototype,"points",void 0),(0,s.Cg)([(0,p.K)("points")],g.prototype,"writePoints",null),g=i=(0,s.Cg)([(0,n.$K)("esri.geometry.Multipoint")],g);const _=g;g.prototype.toJSON.isDefaultToJSON=!0,r.d(t,["A",0,_])},82799(e,t,r){var i,s=r(32198),n=r(91429),a=r(4718),o=r(5443),h=r(91075),l=r(86738),u=r(16930),d=r(90634),c=r(56993),f=r(43937);let m=i=class extends h.A{constructor(e){super(function(e){if(!e)return;let{paths:t,hasM:r,hasZ:i,spatialReference:s}=e;switch(t??=[],function(e){return"number"==typeof e[0]?.[0]}(t)&&(t=[t]),t[0]?.[0]?.length){case 4:i??=!0,r??=!0;break;case 3:i??=!0!==r,r??=!i;break;default:i??=!1,r??=!1}return s??=u.A.WGS84,{...e,hasM:r,hasZ:i,paths:t,spatialReference:s}}(e)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(e,t){t.curvePaths=(0,a.o8)(e)}get extent(){let e=(0,d.Z3)(this),{spatialReference:t}=this;return e?new o.A({...e,spatialReference:t}):null}writePaths(e,t){t.paths=(0,a.o8)(this.paths)}addPath(e){if(!e)return;let t=this.paths,r=t.length;if(function(e){return!Array.isArray(e[0])}(e)){let i=[];for(let t=0,r=e.length;t<r;t++)i[t]=e[t].toArray();t[r]=i}else t[r]=e.slice();return this.notifyChange("paths"),this}clone(){let e=new i;return e.spatialReference=this.spatialReference,e.paths=(0,a.o8)(this.paths),e.curvePaths=(0,a.o8)(this.curvePaths),e.hasZ=this.hasZ,e.hasM=this.hasM,e}getPoint(e,t){if(!this._validateInputs(e,t))return null;let r=this.paths[e][t],i=this.hasZ,s=this.hasM;return i&&!s?new l.A({x:r[0],y:r[1],z:r[2],spatialReference:this.spatialReference}):s&&!i?new l.A({x:r[0],y:r[1],m:r[2],spatialReference:this.spatialReference}):i&&s?new l.A({x:r[0],y:r[1],z:r[2],m:r[3],spatialReference:this.spatialReference}):new l.A({x:r[0],y:r[1],spatialReference:this.spatialReference})}insertPoint(e,t,r){return this._validateInputs(e,t,!0)&&((0,c.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[e].splice(t,0,r),this.notifyChange("paths")),this}removePath(e){if(!this._validateInputs(e,null))return null;let t=this.paths.splice(e,1)[0],r=this.spatialReference,i=t.map(e=>new l.A({x:e[0],y:e[1],z:e[2],m:e[3],spatialReference:r}));return this.notifyChange("paths"),i}removePoint(e,t){if(!this._validateInputs(e,t))return null;let[r,i,s,n]=this.paths[e].splice(t,1)[0],a=new l.A({x:r,y:i,z:s,m:n,spatialReference:this.spatialReference});return this.notifyChange("paths"),a}setPoint(e,t,r){return this._validateInputs(e,t)&&((0,c.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[e][t]=r,this.notifyChange("paths")),this}_validateInputs(e,t,r=!1){if(null==e||e<0||e>=this.paths.length)return!1;if(null!=t){let i=this.paths[e];if(r&&(t<0||t>i.length)||!r&&(t<0||t>=i.length))return!1}return!0}toJSON(e){return this.write({},e)}};(0,s.Cg)([(0,n.MZ)({readOnly:!0})],m.prototype,"cache",null),(0,s.Cg)([(0,n.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],m.prototype,"curvePaths",void 0),(0,s.Cg)([(0,f.K)("curvePaths")],m.prototype,"writeCurvePaths",null),(0,s.Cg)([(0,n.MZ)({readOnly:!0})],m.prototype,"extent",null),(0,s.Cg)([(0,n.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],m.prototype,"paths",void 0),(0,s.Cg)([(0,f.K)("paths")],m.prototype,"writePaths",null),m=i=(0,s.Cg)([(0,n.$K)("esri.geometry.Polyline")],m);const p=m;m.prototype.toJSON.isDefaultToJSON=!0,r.d(t,["A",0,p])},60408(e,t,r){function i(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function s(e){return void 0!==e.points}function n(e){return void 0!==e.x&&void 0!==e.y}function a(e){return void 0!==e.paths||void 0!==e.curvePaths}function o(e){return void 0!==e.rings||void 0!==e.curveRings}function h(e){return"object"==typeof e&&"vertexAttributes"in e}function l(e){return e?n(e)?"esriGeometryPoint":a(e)?"esriGeometryPolyline":o(e)?"esriGeometryPolygon":i(e)?"esriGeometryEnvelope":s(e)?"esriGeometryMultipoint":null:null}function u(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function d(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}r.d(t,{$B:()=>l,Bi:()=>o,Pv:()=>u,Rg:()=>a,U9:()=>s,W0:()=>d,ZC:()=>i,fT:()=>n,uW:()=>h})},65864(e,t,r){r.d(t,{rS:()=>u,xD:()=>c});var i=r(5443),s=r(91075),n=r(48526),a=r(86738),o=r(39829),h=r(82799),l=r(60408);function u(e){return null==e?null:e instanceof s.A?e:(0,l.fT)(e)?a.A.fromJSON(e):(0,l.Rg)(e)?h.A.fromJSON(e):(0,l.Bi)(e)?o.A.fromJSON(e):(0,l.U9)(e)?n.A.fromJSON(e):(0,l.ZC)(e)?i.A.fromJSON(e):null}const d={esriGeometryPoint:a.A,esriGeometryPolyline:h.A,esriGeometryPolygon:o.A,esriGeometryEnvelope:i.A,esriGeometryMultipoint:n.A,esriGeometryMultiPatch:o.A};function c(e){return e&&d[e]||null}},78957(e,t,r){r.d(t,{d:()=>u,R:()=>I});class i{constructor(e=s){this._data=[],this._compare=e}get size(){return this._data.length}enqueue(e){if(null==e)return;let{_data:t,_compare:r}=this;t.push(e);let i=t.length-1>>>0,s=t[i];for(;i>0;){let e=i-1>>1,n=t[e];if(!(r(n,s)<=0))break;t[e]=s,t[i]=n,i=e}}dequeue(){let{_data:e,_compare:t}=this,r=e[0],i=e.pop();if(0===e.length)return r;e[0]=i;let s,n,a=0,o=e.length,h=e[0],l=null;for(;;){let r=2*a+1,i=2*a+2;if(l=null,r<o&&(s=e[r],t(s,h)>0&&(l=r)),i<o&&(n=e[i],(null===l&&t(n,h)<=0||null!==l&&t(n,s)<=0)&&(l=i)),null===l)break;e[a]=e[l],e[l]=h,a=l}return r}}const s=(e,t)=>e<t?-1:+(e>t);var n=r(19419),a=r(537),o=r(12359),h=r(95108),l=r(12176);function u(e){if(0===e.totalSize)return null;let t=(0,a.z8)(e);if(!t)return null;let r=4*(Math.abs(t[0])+Math.abs(t[2])+Math.abs(t[1])+Math.abs(t[3])+1)*222045e-19,i=0,s=0;e.reset();for(let t=0;e.nextPath();t++){let r=e.getCurrentRingArea();r>s&&(s=r,i=t)}if(e.seekPath(i),0===e.pathSize)return null;e.seekPathStart();let h=(0,a.B$)(e);if(Math.abs(s)<=2*r*r)return[(h[0]+h[2])/2,(h[1]+h[3])/2];e.seekPathStart();let l=(0,o.w2)(e,(0,n.vt)());if(null===l)return null;if(e.totalPoints<4)return l;let u=[[NaN,NaN],[NaN,NaN],[NaN,NaN],[NaN,NaN]],m=[NaN,NaN,NaN,NaN],p=[NaN,NaN,NaN,NaN],g=!1,v=c(l,e,!0);0===v.distance&&(g=!0,u[0][0]=l[0],u[0][1]=l[1],v=c(l,e,!1)),m[0]=v.distance,p[0]=0;let I=[NaN,NaN],M=!1,b=.25,S=-1,T=NaN;do{if(T=NaN,u[1]=f(e,_(h[0],h[2],b),0,t),!isNaN(u[1][0])&&!isNaN(u[1][1])&&(v=c(u[1],e,!1),T=v.distance),!isNaN(T)&&T>r&&d(u[1],e))M=!0,m[1]=T,p[1]=y(u[1],l);else if(!isNaN(T)&&T>S&&(S=T,I[0]=u[1][0],I[1]=u[1][1]),b-=.01,b<.1){if(!(S>=0))break;M=!0,m[1]=S,u[1][0]=I[0],u[1][1]=I[1],p[1]=y(u[1],l)}}while(!M);M=!1,b=.5,S=-1;let F=.01,C=1;do{if(T=NaN,u[2]=f(e,_(h[0],h[2],b),0,t),!isNaN(u[2][0])&&!isNaN(u[2][1])&&(v=c(u[2],e,!1),T=v.distance),!isNaN(T)&&T>r&&d(u[2],e))M=!0,m[2]=T,p[2]=y(u[2],l);else if(!isNaN(T)&&T>S)S=T,I[0]=u[2][0],I[1]=u[2][1];else if(T>S&&(S=T,I[0]=u[2][0],I[1]=u[2][1]),b=.5+F*C,F+=.01,C*=-1,b<.3||b>.7){if(!(S>=0))break;M=!0,m[2]=S,u[2][0]=I[0],u[2][1]=I[1],p[2]=y(u[2],l)}}while(!M);M=!1,b=.75,S=-1;do{if(T=NaN,u[3]=f(e,_(h[0],h[2],b),0,t),!isNaN(u[3][0])&&!isNaN(u[3][1])&&(v=c(u[3],e,!1),T=v.distance),!isNaN(T)&&T>r&&d(u[3],e))M=!0,m[3]=T,p[3]=y(u[3],l);else if(T>S&&(S=T,I[0]=u[3][0],I[1]=u[3][1]),b+=.01,b>.9){if(!(S>=0))break;M=!0,m[3]=S,u[3][0]=I[0],u[3][1]=I[1],p[3]=y(u[3],l)}}while(!M);let P,w=[0,1,2,3],A=+!g;for(let e=A;e<4;e++)for(let e=A;e<3;e++){let t=p[e],r=p[e+1];x(t,r)>0&&(P=w[e],w[e]=w[e+1],w[e+1]=P,p[e]=r,p[e+1]=t)}let N=A,O=0,R=0;for(let e=A;e<4;e++){switch(e){case 0:R=2*m[w[e]];break;case 1:R=1.66666666*m[w[e]];break;case 2:R=1.33333333*m[w[e]];break;case 3:R=m[w[e]]}R>O&&(O=R,N=w[e])}return u[N]}function d(e,t){let r,i,s,n,a=0;for(t.reset();t.nextPath()&&t.nextPoint();)for(r=t.x,i=t.y;t.nextPoint();r=s,i=n)s=t.x,n=t.y,i>e[1]!=n>e[1]&&((s-r)*(e[1]-i)-(n-i)*(e[0]-r)>0?a++:a--);return 0!==a}function c(e,t,r){if(r&&d(e,t))return{coord:e,distance:0};let i=1/0,s=0,n=0,a=[0,0],o=[0,0],l=[0,0];for(t.reset();t.nextPath()&&t.nextPoint();)if(!(t.pathSize<2))for(a[0]=t.x,a[1]=t.y;t.nextPoint();a=o){o=[t.x,t.y],(0,h.gR)(l,e,a,o);let r=y(e,l);r<i&&(i=r,s=l[0],n=l[1])}return{coord:[s,n],distance:Math.sqrt(i)}}function f(e,t,r,i){let s=[t,0],a=1/0,o=1/0,h=!1,u=!1,d=[[t,i[1]-1],[t,i[3]+1]],c=[0,0],f=[0,0],g=[0,0],_=[[0,0],[0,0]],y=(0,n.vt)();for(e.reset();e.nextPath()&&e.nextPoint();)if(!(e.pathSize<2))for(_[0][0]=e.x,_[0][1]=e.y;e.nextPoint();_[0][0]=_[1][0],_[0][1]=_[1][1]){if(_[1][0]=e.x,_[1][1]=e.y,null===m(y,_)||(f[0]=d[0][0],f[1]=d[0][1],g[0]=d[1][0],g[1]=d[1][1],0===p(y,f,g))||!(0,l.Ql)(d[0],d[1],_[0],_[1],c))continue;let t=c[1];a>o?t<a&&(a=t,h=!0):t<o&&(o=t,u=!0)}return h&&u?s[1]=(a+o)/2:s[0]=s[1]=NaN,s}function m(e,t){if(t.length<2)return null;e||=(0,n.vt)();let[r,i]=t[0],[s,a]=t[1];return e[0]=Math.min(r,s),e[1]=Math.min(i,a),e[2]=Math.max(r,s),e[3]=Math.max(i,a),e}function p(e,t,r){let i=g(t,e),s=g(r,e),n=e[0],a=e[1],o=e[2],h=e[3];if(i&s)return 0;if(!(i|s))return 4;let l=!!i|(s?2:0);do{let l=r[0]-t[0],u=r[1]-t[1];if(l>u)3&i?(1&i?(t[1]+=u*(n-t[0])/l,t[0]=n):(t[1]+=u*(o-t[0])/l,t[0]=o),i=g(t,e)):3&s?(1&s?(r[1]+=u*(n-r[0])/l,r[0]=n):(r[1]+=u*(o-r[0])/l,r[0]=o),s=g(r,e)):i?(4&i?(t[0]+=l*(a-t[1])/u,t[1]=a):(t[0]+=l*(h-t[1])/u,t[1]=h),i=g(t,e)):(4&s?(r[0]+=l*(a-r[1])/u,r[1]=a):(r[0]+=l*(h-r[1])/u,r[1]=h),s=g(r,e));else if(12&i?(4&i?(t[0]+=l*(a-t[1])/u,t[1]=a):(t[0]+=l*(h-t[1])/u,t[1]=h),i=g(t,e)):12&s?(4&s?(r[0]+=l*(a-r[1])/u,r[1]=a):(r[0]+=l*(h-r[1])/u,r[1]=h),s=g(r,e)):i?(1&i?(t[1]+=u*(n-t[0])/l,t[0]=n):(t[1]+=u*(o-t[0])/l,t[0]=o),i=g(t,e)):(1&s?(r[1]+=u*(n-r[0])/l,r[0]=n):(r[1]+=u*(o-r[0])/l,r[0]=o),s=g(r,e)),i&s)return 0}while(i|s);return l}function g(e,t){return+(e[0]<t[0])|(e[0]>t[2])<<1|(e[1]<t[1])<<2|(e[1]>t[3])<<3}function _(e,t,r){return e+(t-e)*r}function y(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}function x(e,t){if(e<t)return-1;if(e>t)return 1;if(e===t)return 0;let r=isNaN(e),i=isNaN(t);return r<i?-1:+(r>i)}class v{constructor(e,t,r,i){this.x=e,this.y=t,this.cellSize=r,this.distancefromCellCenter=(0,h.Xf)(e,t,i),this.maxDistanceToPolygon=this.distancefromCellCenter+this.cellSize*Math.SQRT2}}function I(e){if(!e.nextPath()||!e.pathSize)return null;let t=(0,a.B$)(e),r=t[2]-t[0],s=t[3]-t[1];if(0===r||0===s)return[t[0]+r/2,t[1]+s/2];let n=Math.max(Math.min(r,s)/100,1),h=new i((e,t)=>t.maxDistanceToPolygon-e.maxDistanceToPolygon),l=Math.min(r,s),u=l/2,d=0,c=0;for(d=t[0];d<t[2];d+=l)for(c=t[1];c<t[3];c+=l)h.enqueue(new v(d+u,c+u,u,e));e.reset(),e.nextPath();let f=(0,o.IK)(e);if(null===f)return null;let m,p=new v(f[0],f[1],0,e);for(;h.size>0;)m=h.dequeue(),m.distancefromCellCenter>p.distancefromCellCenter&&(p=m),m.maxDistanceToPolygon-p.distancefromCellCenter<=n||(u=m.cellSize/2,h.enqueue(new v(m.x-u,m.y-u,u,e)),h.enqueue(new v(m.x+u,m.y-u,u,e)),h.enqueue(new v(m.x-u,m.y+u,u,e)),h.enqueue(new v(m.x+u,m.y+u,u,e)));return[p.x,p.y]}},97770(e,t,r){r.d(t,{Ey:()=>A,F8:()=>w,J2:()=>T,Yq:()=>C,_m:()=>F,_v:()=>v,iS:()=>P,wj:()=>N});var i=r(34747),s=r(66552),n=r(98623),a=r(73444);const o={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},h={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},l={timeZone:"UTC"},u={year:"numeric",month:"numeric",day:"numeric"},d={year:"numeric",month:"long",day:"numeric"},c={year:"numeric",month:"short",day:"numeric"},f={year:"numeric",month:"long",weekday:"long",day:"numeric"},m={hour:"numeric",minute:"numeric"},p={...m,second:"numeric"},g={hourCycle:"h23"},_={...m,...g},y={...p,...g},x={"short-date":u,"short-date-short-time":{...u,...m},"short-date-short-time-24":{...u,..._},"short-date-long-time":{...u,...p},"short-date-long-time-24":{...u,...y},"short-date-le":u,"short-date-le-short-time":{...u,...m},"short-date-le-short-time-24":{...u,..._},"short-date-le-long-time":{...u,...p},"short-date-le-long-time-24":{...u,...y},"long-month-day-year":d,"long-month-day-year-short-time":{...d,...m},"long-month-day-year-short-time-24":{...d,..._},"long-month-day-year-long-time":{...d,...p},"long-month-day-year-long-time-24":{...d,...y},"day-short-month-year":c,"day-short-month-year-short-time":{...c,...m},"day-short-month-year-short-time-24":{...c,..._},"day-short-month-year-long-time":{...c,...p},"day-short-month-year-long-time-24":{...c,...y},"long-date":f,"long-date-short-time":{...f,...m},"long-date-short-time-24":{...f,..._},"long-date-long-time":{...f,...p},"long-date-long-time-24":{...f,...y},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":m,"long-time":p},v=(0,s.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),I={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"};function M(){let e=(0,a.lR)();return(e&&I[e])??(0,a.QC)()}"mart"!==new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)).find(({type:e})=>"month"===e)?.value.toLowerCase()&&(I.bs="sr-Latn-CS");let b=new WeakMap;const S=x["short-date-short-time"];function T(e){return x[e]}function F(e){let{dateStyle:t,timeStyle:r,hour12:i,year:s,month:n}=e,a={};return t?a.dateStyle=t:s&&(a.year=s,a.month=n||void 0),r&&!a.year&&(a.timeStyle=r,a.hour12="auto"===i?void 0:"always"===i),a}function C(e,t=S){return function(e){let t=b.get(e);if(!t){let r=M(),i=N(e.timeZone??"system"),s={...e,timeZone:i};t=new Intl.DateTimeFormat(r,s),b.set(e,t)}return t}(t).format(e)}function P(e,t=S){return C(new Date(e),{...t,...l,...h})}function w(e,t=S){return C(new Date(`1970-01-01T${e}Z`),{...t,...l,...o})}function A(e,t=S){let r=i.c9.fromISO(e,{setZone:!0});if(!r.isValid)return e;if(t.timeZone)return C(r.toJSDate(),t);let s=0===r.offset?"UTC":t.timeZone,n={...t,timeZone:s};return r.toLocaleString(n,{locale:M()})}function N(e){switch(e){case"system":return n.N;case n.L:return"UTC";default:return e}}(0,a.Ml)(()=>{b=new WeakMap})},73444(e,t,r){r.d(t,{JK:()=>h,Ml:()=>g,QC:()=>d,lR:()=>u,oQ:()=>m});var i=r(36563);let s;r(44208);const n=globalThis.esriConfig?.locale,a=globalThis.document?.documentElement;function o(){let e=a?.getAttribute("lang"),t=globalThis.navigator?.language;return n??e??t??"en"}function h(){return void 0===s&&(s=o()),s}const l=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function u(e=h()){return c(e)?.language}function d(e=h()){let t=c(e);return t?.language&&t?.extlang?e.replace(`${t.language}-`,""):e}function c(e=h()){return l.exec(e)?.groups}const f=[];function m(e){return f.push(e),(0,i.hA)(()=>{f.splice(f.indexOf(e),1)})}new Map;const p=[];function g(e){return p.push(e),(0,i.hA)(()=>p.splice(p.indexOf(e),1))}function _(){let e=o();s!==e&&([...p].forEach(t=>t(e)),s=e,[...f].forEach(t=>t(e)))}globalThis.addEventListener?.("languagechange",_),a&&new MutationObserver(()=>{_()}).observe(a,{attributeFilter:["lang"]})},95466(e,t,r){r.d(t,{A:()=>l});var i=r(49186),s=r(53966),n=r(12195),a=r(98623),o=r(56400),h=r(30524);class l{static fromJSON(e){return new l(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new l(e.fields??[],d(e))}static fromLayerJSON(e){return new l(e.fields??[],d(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;let r=[];for(let e of this.fields){let t=e?.name,i=(0,h.GZ)(t);if(t&&i){let s=(0,h.NF)(t);this._fieldsMap.set(t,e),this._fieldsMap.set(s,e),this._normalizedFieldsMap.set(i,e),r.push(`${s}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,h.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,h.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),!(0,h.te)(e)&&!(0,h.Xz)(e)&&(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}r.sort(),this.uid=r.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(let e of this.fields)(0,h.te)(e)||(0,h.Xz)(e)||e.nullable||void 0!==(0,h.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){return(0,h.Vb)({fieldName:e,fieldsMap:this._fieldsMap,normalizedFieldsMap:this._normalizedFieldsMap})}getTimeZone(e){let t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(s.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new i.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),"UTC"):u.has(t.type)?a.L:null:null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,h.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,n.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}const u=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function d(e){let t=new Map;if(!e.fields)return t;let r=!0===e.datesInUnknownTimezone,{timeInfo:i,editFieldsInfo:s}=e,n=(i?"startField"in i?i.startField:i.startTimeField:"")??"",l=(i?"endField"in i?i.endField:i.endTimeField:"")??"",d=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,o.ZS)(e.dateFieldsTimeReference):null,c=s?function(e){return"timeZone"in e}(s)?s.timeZone??d:s.dateFieldsTimeReference?(0,o.ZS)(s.dateFieldsTimeReference):d??"UTC":null,f=i?function(e){return"timeZone"in e}(i)?i.timeZone??d:i.timeReference?(0,o.ZS)(i.timeReference):d:null,m=new Map([[(0,h.NF)(s?.creationDateField??""),c],[(0,h.NF)(s?.editDateField??""),c],[(0,h.NF)(n),f],[(0,h.NF)(l),f]]);for(let{name:i,type:s}of e.fields)if(u.has(s))t.set(i,a.L);else if("date"!==s&&"esriFieldTypeDate"!==s)t.set(i,null);else if(r)t.set(i,a.L);else{let e=m.get((0,h.NF)(i??""))??d;t.set(i,e)}return t}},50115(e,t,r){r.d(t,{OP:()=>a,V4:()=>s,rZ:()=>n}),r(44208);var i=r(53966);function s(e,t,r){if(null==e)return null;let s=t.readArcadeFeature();t.contextTimeZone=r.$view?.timeZone;try{return e.evaluate(s,r)}catch(e){return i.A.getLogger("esri.views.2d.support.arcadeOnDemand").warn("Feature arcade evaluation failed:",e),null}}function n(e){return null==e||e===1/0||e===-1/0||"number"==typeof e&&isNaN(e)}function a(e,t,r,i){if(null==e)return i??null;let s=t.readArcadeFeature();t.contextTimeZone=r.$view?.timeZone;let a=e.evaluate(s,r);return n(a)?i??null:a}},63664(e,t,r){r.d(t,{B:()=>i});class i{constructor(e){this._statistics=e}get statistics(){return this._statistics}}},38976(e,t,r){r.d(t,{n:()=>i});class i{constructor(e){this.options=e}get hash(){return this.options.hash}}},92029(e,t,r){r.d(t,{o:()=>n}),r(69397);var i=r(50115);const s=Math.PI/180;class n{static create(e){return new n(e.map(e=>function(e){switch(e.statisticType){case"min":return new o(e);case"max":return new h(e);case"avg":return new u(e);case"avg_angle":return new d(e);case"sum":case"count":return new l(e);case"mode":return new c(e)}}(e)))}constructor(e){this._statistics=e}static get estimatedMemory(){return 160}values(){return this._statistics.values()}insert(e,t){for(let r of this._statistics)r.insert(e,t)}merge(e){for(let t=0;t<this._statistics.length;t++){let r=this._statistics[t],i=e._statistics[t];if(r.field.name!==i.field.name)throw Error("InternalError: Tried to merge incompatible statistics");r.merge(i)}}clone(){return new n(this._statistics.map(e=>e.clone()))}}class a{constructor(e){this.field=e}insert(e,t){if(!this.field.computed)return;let r=this.field.computed.read(e,t);(0,i.rZ)(r)||this._insertValue(r)}}class o extends a{constructor(){super(...arguments),this.type="min",this.value=Number.MAX_VALUE}_insertValue(e){this.value=Math.min(this.value,e)}merge(e){this.value=Math.min(this.value,e.value)}clone(){let e=new o(this.field);return e.value=this.value,e}}class h extends a{constructor(){super(...arguments),this.type="max",this.value=Number.MIN_VALUE}_insertValue(e){this.value=Math.max(this.value,e)}merge(e){this.value=Math.max(this.value,e.value)}clone(){let e=new h(this.field);return e.value=this.value,e}}class l extends a{constructor(){super(...arguments),this.type="sum",this.value=0}_insertValue(e){this.value+=e}merge(e){this.value+=e.value}clone(){let e=new l(this.field);return e.value=this.value,e}}class u extends a{constructor(){super(...arguments),this.type="avg",this._total=0,this._count=0}get value(){return this._total/this._count}_insertValue(e){this._total+=e,this._count+=1}merge(e){this._total+=e._total,this._count+=e._count}clone(){let e=new u(this.field);return e._total=this._total,e._count=this._count,e}}class d extends a{constructor(){super(...arguments),this.type="avg_angle",this._x=0,this._y=0,this._count=0}get value(){let e=this._x/this._count,t=this._y/this._count;return 180/Math.PI*Math.atan2(t,e)}_insertValue(e){this._x+=Math.cos(e*s),this._y+=Math.sin(e*s),this._count+=1}merge(e){this._x+=e._x,this._y+=e._y,this._count+=e._count}clone(){let e=new d(this.field);return e._x=this._x,e._y=this._y,e._count=this._count,e}}class c extends a{constructor(){super(...arguments),this._frequencies=new Map}get value(){let e,t=0;for(let[r,i]of this._frequencies.entries())i>t&&(t=i,e=r);return e}_insertValue(e){let t=this._frequencies.get(e);null==t?this._frequencies.set(e,1):this._frequencies.set(e,t+1)}merge(e){for(let[t,r]of e._frequencies.entries()){let e=this._frequencies.get(t);null==e?this._frequencies.set(t,r):this._frequencies.set(t,e+r)}}clone(){let e=new c(this.field);return e._frequencies=new Map(this._frequencies),e}}},75538(e,t,r){r.d(t,{L:()=>o});var i=r(90708),s=r(92722),n=r(63664),a=r(92029);class o extends n.B{static createId(e,t){return`${e}.${t}`}static create(e,t,r,i){return new o(e,t,a.o.create(r),i)}constructor(e,t,r,i){super(r),this.gridX=e,this.gridY=t,this._worldUnitsPerCell=i,this._count=0,this._xWorldTotal=0,this._yWorldTotal=0,this._objectIds=[new Set]}get id(){return o.createId(this.gridX,this.gridY)}get containedObjectIds(){return this._objectIds}get count(){return this._count}get firstObjectId(){return this._objectIds[0].values().next().value}get centroidXWorld(){return this._xWorldTotal/this._count}get centroidYWorld(){return this._yWorldTotal/this._count}get usedMemory(){return 48}clone(){let e=new o(this.gridX,this.gridY,this._statistics.clone(),this._worldUnitsPerCell);return e._count=this._count,e._xWorldTotal=this._xWorldTotal,e._yWorldTotal=this._yWorldTotal,e._firstFeatureAttributes=this._firstFeatureAttributes,e._objectIds=this._objectIds.map(e=>new Set(e)),e}insert(e,t){let r=0,i=0;if("esriGeometryPoint"===e.geometryType)r=e.readXWorldSpace(),i=e.readYWorldSpace();else{let t=e.readCentroidWorldSpace();if(null==t)return;[r,i]=t.coords}this._firstFeatureAttributes=0===this._count?e.readAttributes():null,this._count+=1,this._xWorldTotal+=r,this._yWorldTotal+=i,this._statistics.insert(e,t),this._objectIds[0].add(e.getObjectId())}merge(e){0!==e._count&&(this._count+=e._count,this._firstFeatureAttributes=e._firstFeatureAttributes,this._xWorldTotal+=e._xWorldTotal,this._yWorldTotal+=e._yWorldTotal,this._statistics.merge(e._statistics),this._objectIds.push(...e._objectIds))}getCentroidX(e){return null==e?this.centroidXWorld:(0,i.IE)(e,this.centroidXWorld)}getCentroidY(e){return null==e?this.centroidYWorld:(0,i.B2)(e,this.centroidYWorld)}getGeometry(e,t){let r=this.gridX*this._worldUnitsPerCell,n=this.gridY*this._worldUnitsPerCell,a=new s.A([4],[r,n,r+this._worldUnitsPerCell,n,r+this._worldUnitsPerCell,n+this._worldUnitsPerCell,r,n+this._worldUnitsPerCell]);return null==t?a:(0,i.Nl)(a,"esriGeometryPolygon",t)}getCentroid(e){let t=new s.A([],[this.centroidXWorld,this.centroidYWorld]);return null==e?t:(0,i.Nl)(t,"esriGeometryPoint",e)}getGeometricCentroid(e,t){let r=this.gridX*this._worldUnitsPerCell+.5*this._worldUnitsPerCell,n=this.gridY*this._worldUnitsPerCell+.5*this._worldUnitsPerCell,a=new s.A([],[r,n]);return null==t?a:(0,i.Nl)(a,"esriGeometryPoint",t)}getAttributes(){let e={aggregateId:this.id};for(let t of this._statistics.values())e[t.field.name]=t.value;return null==this._firstFeatureAttributes?e:{...e,...this._firstFeatureAttributes}}}},24506(e,t,r){r.d(t,{H:()=>u,p:()=>l});var i=r(91869),s=r(86211),n=r(9012),a=r(38976),o=r(75538);class h{static createId(e,t){return`${e}.${t}`}constructor(e,t){this.gridX=e,this.gridY=t,this._indices=[],this.id=h.createId(e,t)}push(e){this._indices.push(e)}}function l(e,t){return 39.37*(0,s.GA)(e)*96/t}class u extends a.n{constructor(e,t){super(e),this._reader=t,this._cells=new Map,this._pixelsPerMapUnit=l(e.inner.spatialReference,e.inner.scale),this._insert(this._reader)}get _worldUnitsPerCell(){return+this.options.inner.cellSize/this._pixelsPerMapUnit}get usedMemory(){return 0}put(e,t){let{arcadeContextInfo:r,scale:s,fields:a}=this.options.inner,h=(0,n.N)(s,r);this._cells.forEach(r=>{let s=null;for(let n of r._indices){this._reader.setIndex(n);let l=this._reader.getObjectId();t.has(l)||(s??=(0,i.tE)(e,r.id,()=>o.L.create(r.gridX,r.gridY,a,this._worldUnitsPerCell)),s.insert(this._reader,h),t.add(l))}})}putBounded(e,t,r,s){let{arcadeContextInfo:a,scale:h,cellSize:l,fields:u}=this.options.inner,d=(0,n.N)(h,a),[c,f,m,p]=[r.xmin,r.ymin,r.xmax,r.ymax],g=Math.floor(c*this._pixelsPerMapUnit/l),_=Math.floor(f*this._pixelsPerMapUnit/l),y=Math.ceil(m*this._pixelsPerMapUnit/l),x=Math.ceil(p*this._pixelsPerMapUnit/l);for(let r=_;r<=x;r++)for(let s=g;s<=y;s++){let n=o.L.createId(s,r),a=this._cells.get(n);if(!a)continue;let h=null;for(let n of a._indices){this._reader.setIndex(n);let l=this._reader.getObjectId();t.has(l)||(h??=(0,i.tE)(e,a.id,()=>o.L.create(s,r,u,this._worldUnitsPerCell)),h.insert(this._reader,d),t.add(l))}}}_insert(e){let{featureFilter:t,sqlOptions:r,cellSize:i}=this.options.inner,s=e=>{let t=0,r=0;if("esriGeometryPoint"===e.geometryType)t=e.readXWorldSpace(),r=e.readYWorldSpace();else{let i=e.readCentroidWorldSpace();if(null==i)return;[t,r]=i.coords}let s=t*this._pixelsPerMapUnit,n=r*this._pixelsPerMapUnit,a=Math.floor(s/i),o=Math.floor(n/i);this._getCellOrCreate(a,o).push(e.getIndex())};if(null!==t)t.forEachMatch(e,r,s);else{let t=e.getCursor();for(;t.next();)s(t)}}_getCellOrCreate(e,t){let r=h.createId(e,t),i=this._cells.get(r);return i||(i=new h(e,t),this._cells.set(r,i)),i}}},35258(e,t,r){r.d(t,{i:()=>n});var i=r(16930),s=r(95466);class n{static minimal(e,t,r=[],i=!1,a=!1){return new n({geometryType:e,hasZ:i,hasM:a,fieldsIndex:new s.A(r).toJSON(),featureIdInfo:{type:"object-id",fieldName:t},subtypes:null,subtypeField:null,types:null,globalIdField:null,spatialReference:null,outSpatialReference:null,attributeSpatialReference:null,timeInfo:null,timeReferenceUnknownClient:null,dateFieldsTimeZone:null,typeIdField:null,layerType:void 0})}static createFeature(e){return new n(e)}constructor(e){let t;this._options=e,this._fieldsIndex=s.A.fromJSON(e.fieldsIndex),e.spatialReference&&(this._spatialReference=e.spatialReference instanceof i.A?e.spatialReference:i.A.fromJSON(e.spatialReference)),e.outSpatialReference&&(this._outSpatialReference=e.outSpatialReference instanceof i.A?e.outSpatialReference:i.A.fromJSON(e.outSpatialReference)),e.attributeSpatialReference&&(this._attributeSpatialReference=e.attributeSpatialReference instanceof i.A?e.attributeSpatialReference:i.A.fromJSON(e.attributeSpatialReference)),"object-id"===e.featureIdInfo.type&&(t=e.featureIdInfo.fieldName),this._arcadeSchema={fields:this.fieldsIndex.fields,fieldsIndex:this.fieldsIndex,geometryType:this.geometryType,objectIdField:t,globalIdField:this._options.globalIdField,spatialReference:this._spatialReference,timeInfo:this._options.timeInfo,typeIdField:this._options.typeIdField??void 0,types:this._options.types??void 0,subtypeField:this._options.subtypeField,subtypes:this._options.subtypes??void 0,datesInUnknownTimezone:this._options.timeReferenceUnknownClient??void 0,dateFieldsTimeZone:this._options.dateFieldsTimeZone??void 0}}get fieldsIndex(){return this._fieldsIndex}get geometryType(){return"esriGeometryMultiPatch"===this._options.geometryType?"esriGeometryPolygon":this._options.geometryType}get hasZ(){return this._options.hasZ}get hasM(){return this._options.hasM}get serviceGeometryType(){return this._options.geometryType}get subtypeField(){return this._options.subtypeField}get timeInfo(){return this._options.timeInfo}get featureIdInfo(){return this._options.featureIdInfo}get globalIdField(){return this._options.globalIdField}get arcadeSchema(){return this._arcadeSchema}get spatialReference(){return this._spatialReference}get outSpatialReference(){return this._outSpatialReference}get attributeSpatialReference(){return this._attributeSpatialReference}get timeReferenceUnknownClient(){return this._options.timeReferenceUnknownClient}get layerType(){return this._options.layerType}weakCloneWithAdditionalFields(e){let t=this._fieldsIndex.toJSON();return t.fields.push(...e),new n({fieldsIndex:t,geometryType:this.geometryType,hasZ:this.hasZ,hasM:this.hasM,globalIdField:this.globalIdField,featureIdInfo:this.featureIdInfo,spatialReference:this.spatialReference,attributeSpatialReference:this.attributeSpatialReference,outSpatialReference:this.outSpatialReference,subtypeField:this.subtypeField,subtypes:this._options.subtypes,timeInfo:this.timeInfo,timeReferenceUnknownClient:this.timeReferenceUnknownClient,dateFieldsTimeZone:this._options.dateFieldsTimeZone,typeIdField:this._options.typeIdField,types:this._options.types,layerType:this._options.layerType})}weakCloneWithResolvedSpatialReference(){return new n({fieldsIndex:this._fieldsIndex.toJSON(),geometryType:this.geometryType,hasZ:this.hasZ,hasM:this.hasM,globalIdField:this.globalIdField,featureIdInfo:this.featureIdInfo,spatialReference:this.outSpatialReference,outSpatialReference:this.outSpatialReference,attributeSpatialReference:this.attributeSpatialReference,subtypeField:this.subtypeField,subtypes:this._options.subtypes,timeInfo:this.timeInfo,timeReferenceUnknownClient:this.timeReferenceUnknownClient,dateFieldsTimeZone:this._options.dateFieldsTimeZone,typeIdField:this._options.typeIdField,types:this._options.types,layerType:this._options.layerType})}}},97633(e,t,r){r.d(t,{P:()=>s}),r(69397);var i=r(73250);class s{constructor(e){this._valid=i.y.create(e),this._data=Array(e)}get usedMemory(){let e=this._valid.usedMemory;if(this._data.length>0){let t="string"==typeof this._data[0]?64:16;e+=this._data.length*t}return e}has(e){return this._valid.has(e)}set(e,t){this._valid.set(e),this._data[e]=t}get(e){return this._data[e]}}},5508(e,t,r){r.d(t,{Y:()=>ge,e:()=>_e});var i=r(66131),s=r(87992),n=r(65864),a=r(90708),o=r(92722),h=r(54639);class l{constructor(e,t,r,i){this._geometry=e,this._type=t,this._hasZ=r,this._hasM=i}toJsonGeometry(){return(0,a.zv)(o.A.fromJSON(this._geometry),function(e){switch(e){case"point":return"esriGeometryPoint";case"multipoint":return"esriGeometryMultipoint";case"polyline":return"esriGeometryPolyline";case"polygon":return"esriGeometryPolygon";case"extent":return"esriGeometryEnvelope";default:throw Error(`Unexpected type: ${e}`)}}(this._type),this._hasZ,this._hasM)}toAccessorGeometry(e){let t=this.toJsonGeometry();return t.spatialReference=e,(0,n.rS)(t)}toGxGeometry(e){return e.fromFlatGeometry((0,s.Nh)(this._type,this._geometry,null))}}var u=r(44208),d=r(11006);function c(e,t){if(!(this instanceof c))return new c(e,t);this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this.toBBox=t:this._initFormat(t)),this.clear()}function f(e,t,r){if(!r)return t.indexOf(e);for(var i=0;i<t.length;i++)if(r(e,t[i]))return i;return-1}function m(e,t){p(e,0,e.children.length,t,e)}function p(e,t,r,i,s){s||=T(null),s.minX=1/0,s.minY=1/0,s.maxX=-1/0,s.maxY=-1/0;for(var n,a=t;a<r;a++)n=e.children[a],g(s,e.leaf?i(n):n);return s}function g(e,t){return e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY),e}function _(e,t){return e.minX-t.minX}function y(e,t){return e.minY-t.minY}function x(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function v(e){return e.maxX-e.minX+(e.maxY-e.minY)}function I(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function M(e,t){var r=Math.max(e.minX,t.minX),i=Math.max(e.minY,t.minY),s=Math.min(e.maxX,t.maxX),n=Math.min(e.maxY,t.maxY);return Math.max(0,s-r)*Math.max(0,n-i)}function b(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function S(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function T(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function F(e,t,r,i,s){for(var n,a=[t,r];a.length;)(r=a.pop())-(t=a.pop())<=i||(n=t+Math.ceil((r-t)/i/2)*i,(0,d.q)(e,n,t,r,s),a.push(t,n,n,r))}c.prototype={all:function(){return this._all(this.data,[])},search:function(e){var t=this.data,r=[],i=this.toBBox;if(!S(e,t))return r;for(var s,n,a,o,h=[];t;){for(s=0,n=t.children.length;s<n;s++)a=t.children[s],S(e,o=t.leaf?i(a):a)&&(t.leaf?r.push(a):b(e,o)?this._all(a,r):h.push(a));t=h.pop()}return r},collides:function(e){var t=this.data,r=this.toBBox;if(!S(e,t))return!1;for(var i,s,n,a,o=[];t;){for(i=0,s=t.children.length;i<s;i++)if(n=t.children[i],S(e,a=t.leaf?r(n):n)){if(t.leaf||b(e,a))return!0;o.push(n)}t=o.pop()}return!1},load:function(e){if(!e||!e.length)return this;if(e.length<this._minEntries){for(var t=0,r=e.length;t<r;t++)this.insert(e[t]);return this}var i=this._build(e.slice(),0,e.length-1,0);if(this.data.children.length)if(this.data.height===i.height)this._splitRoot(this.data,i);else{if(this.data.height<i.height){var s=this.data;this.data=i,i=s}this._insert(i,this.data.height-i.height-1,!0)}else this.data=i;return this},insert:function(e){return null!=e&&this._insert(e,this.data.height-1),this},clear:function(){return this.data=T([]),this},remove:function(e,t){if(null==e)return this;for(var r,i,s,n,a=this.data,o=this.toBBox(e),h=[],l=[];a||h.length;){if(a||(a=h.pop(),i=h[h.length-1],r=l.pop(),n=!0),a.leaf&&-1!==(s=f(e,a.children,t)))return a.children.splice(s,1),h.push(a),this._condense(h),this;n||a.leaf||!b(a,o)?i?(r++,a=i.children[r],n=!1):a=null:(h.push(a),l.push(r),r=0,i=a,a=a.children[0])}return this},toBBox:function(e){return e},compareMinX:_,compareMinY:y,toJSON:function(){return this.data},fromJSON:function(e){return this.data=e,this},_all:function(e,t){for(var r=[];e;)e.leaf?t.push.apply(t,e.children):r.push.apply(r,e.children),e=r.pop();return t},_build:function(e,t,r,i){var s,n=r-t+1,a=this._maxEntries;if(n<=a)return m(s=T(e.slice(t,r+1)),this.toBBox),s;i||(i=Math.ceil(Math.log(n)/Math.log(a)),a=Math.ceil(n/a**(i-1))),(s=T([])).leaf=!1,s.height=i;var o,h,l,u,d=Math.ceil(n/a),c=d*Math.ceil(Math.sqrt(a));for(F(e,t,r,c,this.compareMinX),o=t;o<=r;o+=c)for(F(e,o,l=Math.min(o+c-1,r),d,this.compareMinY),h=o;h<=l;h+=d)u=Math.min(h+d-1,l),s.children.push(this._build(e,h,u,i-1));return m(s,this.toBBox),s},_chooseSubtree:function(e,t,r,i){for(var s,n,a,o,h,l,u,d;i.push(t),!t.leaf&&i.length-1!==r;){for(u=d=1/0,s=0,n=t.children.length;s<n;s++)h=x(a=t.children[s]),(l=I(e,a)-h)<d?(d=l,u=h<u?h:u,o=a):l===d&&h<u&&(u=h,o=a);t=o||t.children[0]}return t},_insert:function(e,t,r){var i=this.toBBox,s=r?e:i(e),n=[],a=this._chooseSubtree(s,this.data,t,n);for(a.children.push(e),g(a,s);t>=0&&n[t].children.length>this._maxEntries;)this._split(n,t),t--;this._adjustParentBBoxes(s,n,t)},_split:function(e,t){var r=e[t],i=r.children.length,s=this._minEntries;this._chooseSplitAxis(r,s,i);var n=this._chooseSplitIndex(r,s,i),a=T(r.children.splice(n,r.children.length-n));a.height=r.height,a.leaf=r.leaf,m(r,this.toBBox),m(a,this.toBBox),t?e[t-1].children.push(a):this._splitRoot(r,a)},_splitRoot:function(e,t){this.data=T([e,t]),this.data.height=e.height+1,this.data.leaf=!1,m(this.data,this.toBBox)},_chooseSplitIndex:function(e,t,r){var i,s,n,a,o,h,l,u=h=1/0;for(i=t;i<=r-t;i++)a=M(s=p(e,0,i,this.toBBox),n=p(e,i,r,this.toBBox)),o=x(s)+x(n),a<u?(u=a,l=i,h=o<h?o:h):a===u&&o<h&&(h=o,l=i);return l},_chooseSplitAxis:function(e,t,r){var i=e.leaf?this.compareMinX:_,s=e.leaf?this.compareMinY:y;this._allDistMargin(e,t,r,i)<this._allDistMargin(e,t,r,s)&&e.children.sort(i)},_allDistMargin:function(e,t,r,i){e.children.sort(i);for(var s,n=this.toBBox,a=p(e,0,t,n),o=p(e,r-t,r,n),h=v(a)+v(o),l=t;l<r-t;l++)s=e.children[l],g(a,e.leaf?n(s):s),h+=v(a);for(l=r-t-1;l>=t;l--)s=e.children[l],g(o,e.leaf?n(s):s),h+=v(o);return h},_adjustParentBBoxes:function(e,t,r){for(var i=r;i>=0;i--)g(t[i],e)},_condense:function(e){for(var t,r=e.length-1;r>=0;r--)0===e[r].children.length?r>0?(t=e[r-1].children).splice(t.indexOf(e[r]),1):this.clear():m(e[r],this.toBBox)},_initFormat:function(e){var t=["return a"," - b",";"];this.compareMinX=Function("a","b",t.join(e[0])),this.compareMinY=Function("a","b",t.join(e[1])),this.toBBox=Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}};var C=r(69397),P=r(44729),w=r(15032),A=r(36745),N=r(70328),O=r(78957),R=r(62577),Z=r(62815),z=r(27647),Y=r(43334),B=r(98623),G=r(91869),D=r(16930),E=r(31464),X=r(63664),W=r(92029),k=(r(37585),r(48163)),L=r(34727),j=r(39829),J=r(19419),U=r(79258);function V(e,t,r,i){if(i.isWebMercator){let i=(0,L.KJ)(e/U.$O.radius),s=i-360*Math.floor((i+180)/360),n=[0,0];return q(n,0,(0,L.KJ)(Math.PI/2-2*Math.atan(Math.exp(-t/U.$O.radius))),s,r),n}let s=(0,E.Cv)({x:e,y:t},i,D.A.WGS84);if(!s)return null;let n=[0,0];return q(n,0,s.y,s.x,r),n}function q(e,t,r,i,s){s%2&&(s+=1);let n=0,a=0,o=-90,h=90,l=-180,u=180;for(let e=0;e<s/2;e++){for(let t=0;t<5;t++){let r=(l+u)/2,s=+(i>r);n|=s<<29-(t+5*e),l=(1-s)*l+s*r,u=(1-s)*r+s*u}for(let t=0;t<5;t++){let i=(o+h)/2,s=+(r>i);a|=s<<29-(t+5*e),o=(1-s)*o+s*i,h=(1-s)*i+s*h}}e[2*t]=n,e[2*t+1]=a}(0,k.vt)(),(0,k.vt)();class Q extends X.B{static create(e,t,r,i){let s=W.o.create(e),n=Array(32);for(let e=0;e<n.length;e++)n[e]=null;return new Q(s,t,r,i,n)}constructor(e,t,r,i,s){super(e),this.xNode=t,this.yNode=r,this.depth=i,this.children=s,this._objectIds=[new Set],this._count=0,this._xWorldTotal=0,this._yWorldTotal=0,this._xGeohashTotal=0,this._yGeohashTotal=0,this.next=null}static get estimatedMemory(){let e=0;return e+=64,e+=512,e+=W.o.estimatedMemory,e}get id(){return`${this.xNode}.${this.yNode}`}get containedObjectIds(){return this._objectIds}get count(){return this._count}clone(){let e=new Q(this._statistics.clone(),this.xNode,this.yNode,this.depth,this.children);return e._count=this._count,e._xWorldTotal=this._xWorldTotal,e._yWorldTotal=this._yWorldTotal,e._xGeohashTotal=this._xGeohashTotal,e._yGeohashTotal=this._yGeohashTotal,e.next=this.next,e._objectIds=this._objectIds.map(e=>new Set(e)),e}insert(e,t,r,i){let s=0,n=0;if("esriGeometryPoint"===e.geometryType)s=e.readXWorldSpace(),n=e.readYWorldSpace();else{let t=e.readCentroidWorldSpace();if(null==t)return;[s,n]=t.coords}let a=V(s,n,t,r);a&&(this._count+=1,this._xWorldTotal+=s,this._yWorldTotal+=n,this._xGeohashTotal+=a[0],this._yGeohashTotal+=a[1],this._statistics.insert(e,i),this._objectIds[0].add(e.getObjectId()))}merge(e){0!==e._count&&(this._count+=e._count,this._xWorldTotal+=e._xWorldTotal,this._yWorldTotal+=e._yWorldTotal,this._xGeohashTotal+=e._xWorldTotal,this._yGeohashTotal+=e._yWorldTotal,this._statistics.merge(e._statistics),this._objectIds.push(...e._objectIds))}getCentroid(e){throw Error("getCentroid not supported for GeohashNode")}getGeometry(e,t){let[r,i,s,n]=this._getLngLatBounds(),o=(0,E.Cv)({rings:[[[r,i],[r,n],[s,n],[s,i],[r,i]]]},D.A.WGS84,e),h=(0,a.Ye)(o);return null==t?h:(0,a.Nl)(h,"esriGeometryPolygon",t,!1,!1)}getGeometricCentroid(e,t){let[r,i,s,n]=this._getLngLatBounds(),o={x:(r+s)/2,y:(i+n)/2},h=(0,E.Cv)(o,D.A.WGS84,e),l=(0,a.qN)(h);return null==t?l:(0,a.Nl)(l,"esriGeometryPoint",t,!1,!1)}getAttributes(){let e={aggregateId:this.id};for(let t of this._statistics.values())e[t.field.name]=t.value;return e.aggregateCount=this._count,e}find(e,t,r,i,s,n){if(i>=r)return this;let a=1-i%2,o=3*a+2*(1-a),h=2*a+3*(1-a),l=30-s-o,u=30-n-h,d=((e&7*a+3*(1-a)<<l)>>l)+((t&3*a+7*(1-a)<<u)>>u)*(8*a+4*(1-a)),c=this.children[d];return null==c?null:c.find(e,t,r,i+1,s+o,n+h)}_getLngLatBounds(){let e=this.depth,t=Math.ceil(e/2),r=Math.floor(e/2),i=30-(3*t+2*r),s=30-(2*t+3*r);return function(e,t){let r=-90,i=90,s=-180,n=180;for(let a=0;a<t;a++){let t=Math.ceil((a+1)/2),o=Math.floor((a+1)/2),h=1-a%2,l=30-(3*t+2*o),u=30-(2*t+3*o),d=2*h+3*(1-h),c=(7*h+3*(1-h)<<l&e.geohashX)>>l,f=(3*h+7*(1-h)<<u&e.geohashY)>>u;for(let e=3*h+2*(1-h)-1;e>=0;e--){let t=(s+n)/2,r=c&1<<e?1:0;s=(1-r)*s+r*t,n=(1-r)*t+r*n}for(let e=d-1;e>=0;e--){let t=(r+i)/2,s=f&1<<e?1:0;r=(1-s)*r+s*t,i=(1-s)*t+s*i}}return[s,r,n,i]}({geohashX:this.xNode<<i,geohashY:this.yNode<<s},this.depth)}}class ${static create(e,t,r){let i=Array(32);for(let e=0;e<i.length;e++)i[e]=null;return new $(e,t,r,i)}constructor(e,t,r,i){this.xNode=e,this.yNode=t,this.depth=r,this.children=i,this.indices=[],this.next=null}static get estimatedMemory(){let e=0;return e+=64,e+=512,e+=64,640}get id(){return`${this.xNode}.${this.yNode}`}get count(){return this.indices.length}insert(e){this.indices.push(e)}find(e,t,r,i,s,n){if(i>=r)return this;let a=1-i%2,o=3*a+2*(1-a),h=2*a+3*(1-a),l=30-s-o,u=30-n-h,d=((e&7*a+3*(1-a)<<l)>>l)+((t&3*a+7*(1-a)<<u)>>u)*(8*a+4*(1-a)),c=this.children[d];return null==c?null:c.find(e,t,r,i+1,s+o,n+h)}}class K{constructor(){this._size=0,this._depth=0,this._root=$.create(0,0,0)}destroy(){}get size(){return this._size}get depth(){return this._depth}get usedMemory(){return this._size*$.estimatedMemory}find(e,t,r){return this._root.find(e,t,r,0,0,0)}insert(e,t,r,i){let s=this._root,n=0,a=0,o=0;for(;null!==s;){if(s.insert(e.getIndex()),n>=i)return;let h=Math.ceil((n+1)/2),l=Math.floor((n+1)/2),u=1-n%2,d=30-(3*h+2*l),c=30-(2*h+3*l),f=(t&7*u+3*(1-u)<<d)>>d,m=(r&3*u+7*(1-u)<<c)>>c,p=f+m*(8*u+4*(1-u));a=a<<3*u+2*(1-u)|f,o=o<<2*u+3*(1-u)|m,s.children[p]??(s.children[p]=$.create(a,o,n+1),this._depth=Math.max(this._depth,n+1),this._size+=1),n+=1,s=s.children[p]}}forEachInBounds(e,t){let{geohashBounds:r,level:i}=e,s=this._root;for(;null!==s;){let e=s.depth,n=s.xNode,a=s.yNode;if(e>=i){t(s),s=s.next;continue}let o=Math.ceil((e+1)/2),h=Math.floor((e+1)/2),l=1-e%2,u=30-(3*o+2*h),d=30-(2*o+3*h),c=~((1<<u)-1),f=~((1<<d)-1),m=(r.xLL&c)>>u,p=(r.yLL&f)>>d,g=(r.xTR&c)>>u,_=(r.yTR&f)>>d,y=n<<3*l+2*(1-l),x=a<<2*l+3*(1-l),v=y+8*l+4*(1-l),I=x+4*l+8*(1-l),M=Math.max(y,m),b=Math.max(x,p),S=Math.min(v,g),T=Math.min(I,_),F=null,C=null;for(let e=b;e<=T;e++)for(let t=M;t<=S;t++){let r=t-y+(e-x)*(8*l+4*(1-l)),i=s.children[r];i&&(F||(F=i,F.next=s.next),C&&(C.next=i),C=i,i.next=s.next)}s=F||s.next}}}var H=r(9012),ee=r(38976);class te extends ee.n{constructor(e,t){super(e),this._reader=t,this._tree=new K,this._insert(this._reader)}get usedMemory(){return this._tree.usedMemory}putBounded(e,t,r,i){let{arcadeContextInfo:s,scale:n,geohashLevel:o,spatialReference:h,fields:l}=this.options.inner,u=(0,H.N)(n,s),d=function(e,t,r,i){let s=[e.xmin,e.ymin,e.xmax,e.ymax],n=j.A.fromExtent((0,J.w1)(s,i)),o=(0,E.Cv)(n,i,D.A.WGS84,{extendedParams:{densificationStep:64*t}});if(!o)return null;let h=(0,a.Ye)(o,!1,!1),l=h.coords.filter((e,t)=>!(t%2)),u=h.coords.filter((e,t)=>t%2),d=Math.min(...l),c=Math.min(...u),f=Math.max(...l),m=Math.max(...u),p=V(d,c,r,D.A.WGS84),g=V(f,m,r,D.A.WGS84);return p&&g?{bounds:s,geohashBounds:{xLL:p[0],yLL:p[1],xTR:g[0],yTR:g[1]},level:r}:null}(r,i,o,h);null!=d&&this._tree.forEachInBounds(d,r=>{let i=null;for(let s of r.indices){this._reader.setIndex(s);let n=this._reader.getObjectId();t.has(n)||(i??=(0,G.tE)(e,r.id,()=>Q.create(l,r.xNode,r.yNode,r.depth)),i.insert(this._reader,o,h,u),t.add(n))}})}_insert(e){let{featureFilter:t,sqlOptions:r,geohashLevel:i,spatialReference:s}=this.options.inner,n=e=>{let t=0,r=0;if("esriGeometryPoint"===e.geometryType)t=e.readXWorldSpace(),r=e.readYWorldSpace();else{let i=e.readCentroidWorldSpace();if(null==i)return;[t,r]=i.coords}let n=V(t,r,i,s);n&&this._tree.insert(e,n[0],n[1],i)};if(null!==t)t.forEachMatch(e,r,n);else{let t=e.getCursor();for(;t.next();)n(t)}}}var re=r(24506),ie=r(97633);const se=(0,u.A)("featurelayer-simplify-thresholds")??[.5,.5,.5,.5],ne=se[0],ae=se[1],oe=se[2],he=se[3],le=(0,u.A)("featurelayer-simplify-payload-size-factors")??[1,2,4],ue=le[0],de=le[1],ce=le[2],fe=(0,u.A)("featurelayer-simplify-mobile-factor")??2,me=(0,u.A)("esri-mobile"),pe=4294967295;class ge{constructor(e){this.metadata=e,this.type="FeatureSetReader",this._overrides=null,this._postQueryFilteredIds=new Set,this._joined=[],this._objectIdToIndex=null,this._boundsBuffer=[],this._aggregateCache={},this._deleted=new Set,this._caches=new Map,this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}destroy(){}[Symbol.dispose](){this.destroy()}get geometryDensity(){return{sampleCount:0,densePairCount:0}}getAreaSimplificationThreshold(e,t){let r=1,i=me?fe:1;t>4e6?r=ce*i:t>1e6?r=de*i:t>5e5?r=ue*i:t>1e5&&(r=i);let s=0;return e>4e3?s=he*r:e>2e3?s=oe*r:e>100?s=ae:e>15&&(s=ne),s}getBounds(e){!function(e,t){if(!(e.length>t))for(;e.length<=t;)e.push(0)}(this._boundsBuffer,4*this.getIndex()+4);let t=this.getBoundsXMin();if(t===pe||!isFinite(t))return!1;if(0===this.getBoundsXMin()){let t=this.readGeometryWorldSpace();if(t?.isPoint&&0===t.coords[0]&&0===t.coords[1])return(0,N.BI)(e,0,0,0,0),!0;if(!t)return this.setBoundsXMin(pe),!1;let r=1/0,i=1/0,s=-1/0,n=-1/0;return t.forEachVertex((e,t)=>{r=Math.min(r,e),i=Math.min(i,t),s=Math.max(s,e),n=Math.max(n,t)}),this.setBoundsXMin(r),this.setBoundsYMin(i),this.setBoundsXMax(s),this.setBoundsYMax(n),(0,N.BI)(e,r,i,s,n),!0}let r=this.getBoundsXMin(),i=this.getBoundsYMin(),s=this.getBoundsXMax(),n=this.getBoundsYMax();return(0,N.BI)(e,r,i,s,n),!0}getBoundsXMin(){return this._boundsBuffer[4*this.getIndex()]}setBoundsXMin(e){this._boundsBuffer[4*this.getIndex()]=e}getBoundsYMin(){return this._boundsBuffer[4*this.getIndex()+1]}setBoundsYMin(e){this._boundsBuffer[4*this.getIndex()+1]=e}getBoundsXMax(){return this._boundsBuffer[4*this.getIndex()+2]}setBoundsXMax(e){this._boundsBuffer[4*this.getIndex()+2]=e}getBoundsYMax(){return this._boundsBuffer[4*this.getIndex()+3]}setBoundsYMax(e){this._boundsBuffer[4*this.getIndex()+3]=e}readAttributeAsTimestamp(e){let t=this.readAttribute(e);return"string"==typeof t?new Date(t).getTime():"number"==typeof t||null==t?t:null}readAttribute(e,t=!1){let r=this._readAttribute(e,t);if(void 0!==r)return r;for(let r of this._joined){r.setIndex(this.getIndex());let i=r._readAttribute(e,t);if(void 0!==i)return i}}readAttributes(){let e=this._readAttributes();for(let t of this._joined){t.setIndex(this.getIndex());let r=t._readAttributes();for(let t of Object.keys(r))e[t]=r[t]}return e}joinAttributes(e){this._joined.push(e)}registerOverrides(e){this._overrides=e}withoutOverrides(){let e=this.copy();return e._overrides=null,e._aggregateCache={},e}readOptimizedFeatureWorldSpace(){let e=this.readGeometryWorldSpace(),t=this.readAttributes(),r=this.readCentroidWorldSpace();return new Y.Om(e,t,r,this.getObjectId(),this.getDisplayId())}readLegacyFeatureForDisplay(){let e=this.readCentroidForDisplay();return{attributes:this.readAttributes(),geometry:this.readLegacyGeometryForDisplay(),centroid:(e&&{x:e.coords[0],y:e.coords[1]})??null}}readLegacyFeatureWorldSpace(){let e=this.readCentroidWorldSpace();return{attributes:this.readAttributes(),geometry:this._readLegacyGeometryWorldSpace(),centroid:(e&&{x:e.coords[0],y:e.coords[1]})??null}}readLegacyGeometryForDisplay(){let e=this.readGeometryForDisplay();return(0,a.zv)(e,this.geometryType,!1,!1)}readXForDisplay(){return this._readX()}readYForDisplay(){return this._readY()}readXWorldSpace(){let e=this._readX(),t=this.getInTransform();return null==t?e:e*t.scale[0]+t.translate[0]}readYWorldSpace(){let e=this._readY(),t=this.getInTransform();return null==t?e:t.translate[1]-e*t.scale[1]}readGeometryForDisplay(){let e=this._readGeometryDeltaDecoded(!0);if(!e){let e=this._createDeltaQuantizedGeometryFromServerCentroid();return e?e.deltaDecode():null}return e}readGeometryForDisplayTransformed(e){let t=this.readGeometryForDisplay();if(t&&"esriGeometryPolyline"===this.metadata.geometryType&&(t=(0,a.kz)(t,this.metadata.geometryType,e.scale[0])),t&&=(0,a.Nl)(t,this.metadata.geometryType,e,t.hasZ,t.hasM,!0),!t){let t=this.readCentroidForDisplay();if(!t)return null;let r=(0,R.IE)(e,t.coords[0]),i=(0,R.B2)(e,t.coords[1]);return this._createDeltaQuantizedExtrudedGeometry(r,i).deltaDecode()}return t}_transformToWorldSpace(e){if(!e)return null;e=e.clone();let t=this.getInTransform();t&&(0,a.aQ)(e,t);let r=(0,Z.d)(this.metadata.spatialReference,this.metadata.outSpatialReference);if(e.hasZ&&1!==r){let{stride:t,coords:i}=e;for(let e=2;e<i.length;e+=t)i[e]*=r}return e}readGeometryWorldSpace(){let e=this._readGeometry();return e||=this._createDeltaQuantizedGeometryFromServerCentroid(),this._transformToWorldSpace(e)}readCentroidForDisplay(){let e=this.readGeometryForDisplay();return e?this._computeDisplayCentroid(e):this._readServerCentroid()}readCentroidWorldSpace(){let e=this.readGeometryForDisplay(),t=e?this._computeDisplayCentroid(e):this._readServerCentroid();return this._transformToWorldSpace(t)}setCache(e){let t=this._caches.get(e);t??(t=new ie.P(this.getSize()),this._caches.set(e,t)),this._activeCache=t}setCachedValue(e){this._activeCache.set(this.getIndex(),e)}hasCachedValue(){return this._activeCache.has(this.getIndex())}getCachedValue(){return this._activeCache.get(this.getIndex())}delete(){this._deleted.add(this.getObjectId())}getByReferenceVertexCount(){return null}get underlyingMemory(){let e=0;e+=(0,C.Qf)(this._boundsBuffer),e+=16*(this._spatialIndex?.all().length??0),e+=this._aggregateCache.gridIndex?.usedMemory??0,e+=this._aggregateCache.geohashIndex?.usedMemory??0;for(let t of this._caches.values())e+=t.usedMemory;return e}getDisplayTransform(){return null}queryFeaturesInBounds(e){let t={minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]};return _e.from(this,this.getSpatialIndex().search(t))}getSpatialIndex(){if(this._spatialIndex)return this._spatialIndex;let e=[],t=this.copy(),r=(0,N.vt)();for(let i=0;i<this.getSize();i++)t.setIndex(i),t.getBounds(r)&&e.push(t.getIndex());let i=c(9,e=>(t.setIndex(e),{minX:t.getBoundsXMin(),minY:t.getBoundsYMin(),maxX:t.getBoundsXMax(),maxY:t.getBoundsYMax()}));return i.load(e),this._spatialIndex=i,i}getGridIndex(e){return e.hash!==this._aggregateCache.gridIndex?.hash&&(this._aggregateCache.gridIndex=new re.H(e,this.copy())),this._aggregateCache.gridIndex}getGeohashIndex(e){return e.hash!==this._aggregateCache.geohashIndex?.hash&&(this._aggregateCache.geohashIndex=new te(e,this.copy())),this._aggregateCache.geohashIndex}invalidateAggregateIndices(){this._aggregateCache.gridIndex=void 0,this._aggregateCache.geohashIndex=void 0}_readGeometryDeltaDecoded(e){let t=this._readGeometry(e);if("esriGeometryPoint"===this.geometryType||!t)return t;let r=this.getInTransform();if(!t||!r)return t;let i=r.scale[2]??1,s=r.translate[2]??0,n=r.scale[3]??1,a=r.translate[3]??0,{hasZ:o,hasM:h,stride:l,size:u,coords:d}=t,c=o&&(1!==i||0!==s),f=h&&(1!==n||0!==a);if(c||f){let e=o?3:2;for(let t=0,r=l*u;t<r;t+=l)c&&(d[t+2]=i*d[t+2]+s),f&&(d[t+e]=n*d[t+e]+a)}return t.deltaDecode()}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this.fields.has(e)||this._joined.some(t=>t.hasField(e))}geometry(){let e,t=this.readGeometryWorldSpace();if(null==t)return null;switch(this.geometryType){case"esriGeometryPoint":e="point";break;case"esriGeometryMultipoint":e="multipoint";break;case"esriGeometryPolyline":e="polyline";break;case"esriGeometryPolygon":e="polygon";break;default:throw Error(`Unexpected geometry type: ${this.geometryType}`)}return function(e,t,r){let i=t.hasZ??!1,s=t.hasM??!1;return h.R.of(e,r,i,s,new l(t,e,i,s))}(e,{lengths:t.lengths,coords:t.coords,hasZ:this.hasZ,hasM:this.hasM},this.metadata.outSpatialReference)}autocastArcadeDate(e,t){return t&&t instanceof Date?this.isUnknownDateTimeField(e)?i.lY.unknownDateJSToArcadeDate(t):i.lY.dateJSAndZoneToArcadeDate(t,this.contextTimeZone??"system"):t}isUnknownDateTimeField(e){return this.metadata.fieldsIndex.getTimeZone(e)===B.L}field(e){let t=this.fields.get(e);if(t)switch(t.type){case"date-only":case"esriFieldTypeDateOnly":return P.n.fromReader(this.readAttribute(e,!1));case"time-only":case"esriFieldTypeTimeOnly":return w.k.fromReader(this.readAttribute(e,!1));case"esriFieldTypeTimestampOffset":case"timestamp-offset":return i.lY.fromReaderAsTimeStampOffset(this.readAttribute(e,!1));case"date":case"esriFieldTypeDate":return this.autocastArcadeDate(e,this.readAttribute(e,!0));default:return this.readAttribute(e,!1)}for(let r of this._joined)if(r.setIndex(this.getIndex()),t=r.fields.get(e),t)switch(t.type){case"date-only":case"esriFieldTypeDateOnly":return P.n.fromReader(r._readAttribute(e,!1));case"time-only":case"esriFieldTypeTimeOnly":return w.k.fromReader(r._readAttribute(e,!1));case"esriFieldTypeTimestampOffset":case"timestamp-offset":return i.lY.fromReaderAsTimeStampOffset(r._readAttribute(e,!1));case"date":case"esriFieldTypeDate":return this.autocastArcadeDate(e,r._readAttribute(e,!0));default:return this.readAttribute(e,!1)}throw Error(`Field ${e} does not exist`)}setField(e,t){throw Error("Unable to update feature attribute values, feature is readonly")}keys(){return this.fields.fields.map(e=>e.name)}isEmpty(){return this.fields.fields.length<=0&&null==this.geometry()}castToText(e=!1){if(!e)return JSON.stringify(this.readLegacyFeatureForDisplay());let t=this.readLegacyFeatureForDisplay();if(!t)return JSON.stringify(null);let r={geometry:t.geometry,attributes:{...t.attributes}};for(let e in r.attributes){let t=r.attributes[e];t instanceof Date&&(r.attributes[e]=t.getTime())}return JSON.stringify(r)}gdbVersion(){return null}fullSchema(){return this.metadata.arcadeSchema}castAsJson(){return{attributes:this._readAttributes(),geometry:this.geometry()?.castAsJson()??null}}castAsJsonAsync(){return Promise.resolve(this.castAsJson())}applyPostQueryFilter(e){if(this._postQueryFilteredIds.clear(),!e)return;let t=new Set;e.forEachMatch(this,{currentUser:null},e=>{t.add(e.getObjectId())});let r=[],i=this.getCursor();for(;i.next();)t.has(i.getObjectId())||r.push(i.getObjectId());for(let e of r)this._postQueryFilteredIds.add(e)}_getExists(){let e=this.getObjectId();return!this._deleted.has(e)&&(this._overrides?!this._overrides.hasOverride(e):!this._postQueryFilteredIds.has(e))}_computeDisplayCentroid(e){if(null==this.getInTransform())return(0,z.Q)(e);let t=A.z.fromOptimized(e,this.geometryType);t.yFactor*=-1;let r=(0,O.d)(t);return r?isNaN(r[0])||isNaN(r[1])?(0,z.Q)(e):(r[1]*=-1,new o.A([],r)):null}copyInto(e){e._joined=this._joined,e._overrides=this._overrides,e._objectIdToIndex=this._objectIdToIndex,e._boundsBuffer=this._boundsBuffer,e._spatialIndex=this._spatialIndex,e._aggregateCache=this._aggregateCache,e._activeCache=this._activeCache,e._caches=this._caches,e._contextTimeZone=this._contextTimeZone,e._postQueryFilteredIds=this._postQueryFilteredIds,e._deleted=this._deleted}_readLegacyGeometryWorldSpace(){let e=this.readGeometryWorldSpace();return(0,a.zv)(e,this.geometryType,!1,!1)}_createDeltaQuantizedGeometryFromServerCentroid(){let e=this._readServerCentroid();if(!e)return null;let[t,r]=e.coords;return this._createDeltaQuantizedExtrudedGeometry(t,r)}_createDeltaQuantizedExtrudedGeometry(e,t){return"esriGeometryPolyline"===this.geometryType?this._createDeltaQuantizedExtrudedLine(e,t):this._createDeltaQuantizedExtrudedQuad(e,t)}_createDeltaQuantizedExtrudedQuad(e,t){return new o.A([5],[e-1,t,1,-1,1,1,-1,1,-1,-1])}_createDeltaQuantizedExtrudedLine(e,t){return new o.A([2],[e-1,t+1,1,-1])}}class _e extends ge{static from(e,t){if(e instanceof this){let r=new Set(t),i=e._indices.filter(e=>r.has(e)),s=e.copy();return s._indices=i,s._currentIndex=-1,s}return new _e(e.copy(),t)}constructor(e,t){super(e.metadata),this._currentIndex=-1,this._displayTransform=null,this._reader=e,this._indices=t}setTransformForDisplay(e){let t=this._reader.getInTransform();if(null==t)return void(this._displayTransform=(0,R.Q1)(e));let r=(0,R.Q1)(t),i=(0,R.Q1)(e),[s,n]=r.scale,[a,o]=r.translate,[h,l]=i.scale,[u,d]=i.translate,c=s/h,f=n/l,m=(a-u)/h,p=(o-d)/l;this._displayTransform={originPosition:"lowerLeft",scale:[1/c,1/f,1,1],translate:[-m/c,-p/f,0,0]}}getInTransform(){return this._reader.getInTransform()}getDisplayTransform(){return this._displayTransform}get fields(){return this._reader.fields}get hasNext(){return this._currentIndex+1<this._indices.length}getSize(){return this._indices.length}getCursor(){return this.copy()}copy(){let e=new _e(this._reader.copy(),this._indices);return e._currentIndex=this._currentIndex,e._displayTransform=this._displayTransform,e._processorAttributes=this._processorAttributes,e}getSpatialIndex(){return this._reader.getSpatialIndex()}getGridIndex(e){throw Error("Cannot request a grid index from an indirect feature set reader.")}getGeohashIndex(e){throw Error("Cannot request a geohash index from an indirect feature set reader.")}get contextTimeZone(){return this._reader.contextTimeZone}set contextTimeZone(e){this._reader.contextTimeZone=e}get usedMemory(){return 32+this._reader.usedMemory}setProcessorAttributes(e){this._processorAttributes=Object.assign(this._processorAttributes??{},e)}_nextIndex(){return++this._currentIndex<this._indices.length&&(this._reader.setIndex(this._indices[this._currentIndex]),!0)}next(){for(;this._nextIndex()&&!this._reader._getExists(););return this._currentIndex<this._indices.length}readXForDisplay(){return this._displayTransform?(0,R.IE)(this._displayTransform,this._reader.readXForDisplay()):this._reader.readXForDisplay()}readYForDisplay(){return this._displayTransform?(0,R.B2)(this._displayTransform,this._reader.readYForDisplay()):this._reader.readYForDisplay()}readGeometryForDisplay(){return this._displayTransform?this._reader.readGeometryForDisplayTransformed(this._displayTransform):this._reader.readGeometryForDisplay()}readCentroidForDisplay(){let e=this._reader.readCentroidForDisplay()?.clone();if(e){let[t,r]=e.coords;this._displayTransform&&(e.coords[0]=(0,R.IE)(this._displayTransform,t),e.coords[1]=(0,R.B2)(this._displayTransform,r))}return e}get geometryType(){return this._reader.geometryType}get hasFeatures(){return this._reader.hasFeatures}get exceededTransferLimit(){return this._reader.exceededTransferLimit}get hasZ(){return this._reader.hasZ}get hasM(){return this._reader.hasM}readAttribute(e,t=!1){let r=this._reader.readAttribute(e,t);return null==r&&this._processorAttributes?this._processorAttributes[e]:r}readAttributes(){return{...this._processorAttributes,...this._reader.readAttributes()}}joinAttributes(e){return this._reader.joinAttributes(e)}getBounds(e){return this._reader.getBounds(e)}getBoundsXMin(){return this._reader.getBoundsXMin()}setBoundsXMin(e){this._reader.setBoundsXMin(e)}getBoundsYMin(){return this._reader.getBoundsYMin()}setBoundsYMin(e){this._reader.setBoundsYMin(e)}getBoundsXMax(){return this._reader.getBoundsXMax()}setBoundsXMax(e){this._reader.setBoundsXMax(e)}getBoundsYMax(){return this._reader.getBoundsYMax()}setBoundsYMax(e){this._reader.setBoundsYMax(e)}getAttributeHash(){return this._reader.getAttributeHash()}getObjectId(){return this._reader.getObjectId()}getDisplayId(){return this._reader.getDisplayId()}setDisplayId(e){return this._reader.setDisplayId(e)}setIndex(e){return this._reader.setIndex(e)}getIndex(){return this._reader.getIndex()}readXWorldSpace(){return this._reader.readXWorldSpace()}readYWorldSpace(){return this._reader.readYWorldSpace()}_readX(){return this._reader.readXForDisplay()}_readY(){return this._reader.readYForDisplay()}_readServerCentroid(){return this._reader._readServerCentroid()}readLegacyFeatureForDisplay(){let e=this.readCentroidForDisplay();return{attributes:this.readAttributes(),geometry:this.readLegacyGeometryForDisplay(),centroid:(e&&{x:e.coords[0],y:e.coords[1]})??null}}readLegacyGeometryForDisplay(){let e=this.readGeometryForDisplay();return(0,a.zv)(e,this.geometryType,!1,!1)}readGeometryArea(){return this._displayTransform?this._reader.readGeometryForDisplayTransformed(this._displayTransform)?.area()??0:this._reader.readGeometryArea()}readGeometryWorldSpace(){return this._reader.readGeometryWorldSpace()}_readGeometry(){return this._reader._readGeometry()}get geometryDensity(){return this._reader.geometryDensity}_readAttribute(e,t){throw Error("Error: Should not be called. Underlying _reader should be used instead")}_readAttributes(){throw Error("Error: Should not be called. Underlying _reader should be used instead")}readArcadeFeature(){return this._reader.readArcadeFeature()}geometry(){return this._reader.geometry()}field(e){return this._reader.field(e)}hasField(e){return this._reader.hasField(e)}setField(e,t){return this._reader.setField(e,t)}keys(){return this._reader.keys()}castToText(e=!1){return this._reader.castToText(e)}}},8446(e,t,r){r.d(t,{K:()=>d});var i=r(44208),s=r(90708),n=r(43334),a=r(95466),o=r(5508);const h=(0,i.A)("featurelayer-snapping-density-sample-interval"),l=(0,i.A)("featurelayer-snapping-density-max-vertices-per-feature"),u=(0,i.A)("featurelayer-snapping-density-max-distance")**2;class d extends o.Y{static fromFeatures(e,t){let{geometryType:r,hasZ:i,hasM:n,featureIdInfo:a}=t,o=(0,s.Di)([],e,r,i,n,a);for(let t=0;t<o.length;t++)o[t].displayId=e[t].displayId;return d.fromOptimizedFeatures(o,t)}static fromFeatureSet(e,t){let r=(0,s.q3)(e,t.featureIdInfo);return d.fromOptimizedFeatureSet(r,t)}static fromOptimizedFeatureSet(e,t){let r=d.fromOptimizedFeatures(e.features,t,e.transform);return r._exceededTransferLimit=e.exceededTransferLimit,r._fieldsIndex=new a.A(e.fields),r}static fromOptimizedFeatures(e,t,r){let i=new d(e,t);return i._fieldsIndex=t.fieldsIndex,i._transform=r,r&&("esriGeometryPolyline"===i.geometryType||"esriGeometryPolygon"===i.geometryType)&&(i._geometryDensity=function(e){let t={sampleCount:0,densePairCount:0};for(let r=0;r<e.length;r+=h){let i=e[r].geometry;if(!i)continue;let{coords:s,lengths:n,stride:a}=i,o=Math.min(n[0]??0,l);for(let e=1;e<o;e++){let r=e*a;t.sampleCount++;let i=s[r],n=s[r+1];i*i+n*n<=u&&t.densePairCount++}}return t}(e)),i}static empty(e){return new d([],e)}constructor(e,t){super(t),this._geometryDensity={sampleCount:0,densePairCount:0},this._featureIndex=-1,this._exceededTransferLimit=!1,this._fieldsIndex=null,this._hasZ=!1,this._hasM=!1,this._geometryType=t.geometryType,this._hasZ=t.hasZ,this._hasM=t.hasM,this._features=e}get fields(){return this._fieldsIndex}get geometryType(){return this._geometryType}get hasFeatures(){return!!this._features.length}get hasNext(){return this._featureIndex+1<this._features.length}get exceededTransferLimit(){return this._exceededTransferLimit}get hasZ(){return this._hasZ}get hasM(){return this._hasM}get geometryDensity(){return this._geometryDensity}get _current(){return this._features[this._featureIndex]}get usedMemory(){return this._current.usedMemory}getSize(){return this._features.length}getCursor(){return this.copy()}getInTransform(){return this._transform}getAttributeHash(){let e="";for(let t in this._current.attributes)e+=this._current.attributes[t];return e}getIndex(){return this._featureIndex}setIndex(e){this._featureIndex=e}getObjectId(){return this._current?.objectId}getDisplayId(){return this._current.displayId}setDisplayId(e){this._current.displayId=e}getByReferenceVertexCount(){return this._current.vertexCount}copy(){let e=new d(this._features,this.metadata);return this.copyInto(e),e}next(){for(;++this._featureIndex<this._features.length&&!this._getExists(););return this._featureIndex<this._features.length}readGeometryArea(){return(0,n.N3)(this._current)?(0,s.Rk)(this._current.geometry,2):0}_readX(){return(0,n.N3)(this._current)?this._current.geometry.coords[0]:0}_readY(){return(0,n.N3)(this._current)?this._current.geometry.coords[1]:0}_readGeometry(){return(0,n.N3)(this._current)?this._current.geometry??null:null}_readServerCentroid(){return this._current.centroid}_readAttribute(e,t){if(!this._fieldsIndex){let t=this._current.attributes[e];if(void 0!==t)return t;let r=e.toLowerCase();for(let e in this._current.attributes)if(e.toLowerCase()===r)return this._current.attributes[e];return}let r=this._fieldsIndex.get(e);if(!r)return;let i=this._current.attributes[r.name];return null==i?i:t&&this.fields.isDateField(e)?new Date(i):i}_readAttributes(){return this._current.attributes}copyInto(e){super.copyInto(e),e._featureIndex=this._featureIndex,e._transform=this._transform,e._fieldsIndex=this._fieldsIndex,e._geometryDensity=this._geometryDensity}}},73250(e,t,r){r.d(t,{y:()=>s});var i=r(69397);class s{static fromBuffer(e,t){return new s(e,t)}static create(e,t=4294967295){let r=new Uint32Array(Math.ceil(e/32));return new s(r,t)}constructor(e,t){this._mask=0,this._buf=e,this._mask=t}_getIndex(e){return Math.floor(e/32)}get usedMemory(){return(0,i.Qf)(this._buf)}has(e){let t=this._mask&e;return!!(this._buf[this._getIndex(t)]&1<<t%32)}hasRange(e,t){let r=e,i=t;for(;r%32&&r!==i;){if(this.has(r))return!0;r++}for(;i%32&&r!==i;){if(this.has(r))return!0;i--}if(r===i)return!1;for(let e=r/32;e!==i/32;e++)if(this._buf[e])return!0;return!1}set(e){let t=this._mask&e,r=this._getIndex(t),i=1<<t%32;this._buf[r]|=i}setRange(e,t){let r=e,i=t;for(;r%32&&r!==i;)this.set(r++);for(;i%32&&r!==i;)this.set(i--);if(r!==i)for(let e=r/32;e!==i/32;e++)this._buf[e]=4294967295}unset(e){let t=this._mask&e,r=this._getIndex(t),i=1<<t%32;this._buf[r]&=4294967295^i}resize(e){let t=this._buf,r=new Uint32Array(Math.ceil(e/32));r.set(t),this._buf=r}or(e){for(let t=0;t<this._buf.length;t++)this._buf[t]|=e._buf[t];return this}and(e){for(let t=0;t<this._buf.length;t++)this._buf[t]&=e._buf[t];return this}xor(e){for(let t=0;t<this._buf.length;t++)this._buf[t]^=e._buf[t];return this}ior(e){for(let t=0;t<this._buf.length;t++)this._buf[t]|=~e._buf[t];return this}iand(e){for(let t=0;t<this._buf.length;t++)this._buf[t]&=~e._buf[t];return this}ixor(e){for(let t=0;t<this._buf.length;t++)this._buf[t]^=~e._buf[t];return this}any(){for(let e=0;e<this._buf.length;e++)if(this._buf[e])return!0;return!1}copy(e){for(let t=0;t<this._buf.length;t++)this._buf[t]=e._buf[t];return this}clone(){return new s(this._buf.slice(),this._mask)}clear(){for(let e=0;e<this._buf.length;e++)this._buf[e]=0;return this}forEachSet(e){for(let t=0;t<this._buf.length;t++){let r=this._buf[t],i=32*t;if(r)for(;r;)1&r&&e(i),r>>>=1,i++}}countSet(){let e=0;return this.forEachSet(t=>{e++}),e}}},9012(e,t,r){function i(e,{timeZone:t,timeExtent:r}){return{$view:{scale:e,timeZone:t,timeProperties:{currentStart:r?.start,currentEnd:r?.end}}}}r.d(t,{N:()=>i})}}]);
@@ -1 +0,0 @@
1
- "use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[1560,8801],{52106(e,t,r){r.d(t,{A:()=>M});var i,s,o=r(32198),n=r(91429),l=r(69540),a=r(51447),u=r(25482),p=r(53966),d=r(36708),c=r(12195),y=r(24326),h=r(65864),g=r(50498),f=r(55156),m=r(60950),v=r(54339),b=r(40124),w=r(94128),S=r(33910);const C=Symbol("meshGeometryHandles");function x(e){if(null==e)return null;let t={};for(let r in e){let i=e[r];i&&(t[r]=i.toJSON())}return 0===Object.keys(t).length?null:t}let M=class extends((0,l.OU)(u.o)){static{i=w.Z}static{s=this}constructor(e){super(e),this[i]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperties(this,{uid:{value:(0,y.c)(),configurable:!0},_lastMeshTransform:{value:{},configurable:!0,writable:!0,enumerable:!1}}),arguments.length>1&&(0,a.eF)(p.A.getLogger(this),"Graphic",{version:"4.30"})}set aggregateGeometries(e){let t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){let t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){let t=this._get("geometry");t!==e&&(this._set("geometry",e),this._watchMeshGeometryChanges(),this._notifyLayer("geometry",t,e))}set popupTemplate(e){let t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){let t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){let t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new s({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;let t=(0,m.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;let r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(let t of[r,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){let r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){let e=(0,f.I)(this.origin);if(e)return(0,v.r)(this,e);let t=this.sourceLayer??this.layer;return t?(0,v.r)(this,t):null}getGlobalId(){let e=(0,f.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);let t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){let e={aggregateGeometries:x(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,c.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){let{geometry:t}=this;if("mesh"===t?.type){let r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,i){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;let s={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(s.action=i),"attributes"===e&&(s.attributeName=i),this.layer.graphicChanged(s)}_watchMeshGeometryChanges(){this.removeHandles(C);let e=this.geometry;"mesh"===e?.type&&this.addHandles([(0,d.z7)(()=>e.vertexSpace.origin?{localMatrix:e.transform?.localMatrix,origin:e.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{(this._lastMeshTransform.localMatrix!==e||this._lastMeshTransform.origin!==t)&&(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,d.z7)(()=>({vertexAttributes:e.vertexAttributes}),()=>{e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",e,e)},{equals:(e,t)=>e===t,sync:!0})],C)}};(0,o.Cg)([(0,n.MZ)({value:null,json:{read:function(e){if(!e)return null;let t={};for(let r in e){let i=(0,h.rS)(e[r]);i&&(t[r]=i)}return 0===Object.keys(t).length?null:t}}})],M.prototype,"aggregateGeometries",null),(0,o.Cg)([(0,n.MZ)({value:null})],M.prototype,"attributes",null),(0,o.Cg)([(0,n.MZ)({value:null,types:g.yR,json:{read:h.rS}})],M.prototype,"geometry",null),(0,o.Cg)([(0,n.MZ)()],M.prototype,"distance",void 0),(0,o.Cg)([(0,n.MZ)({type:Boolean})],M.prototype,"isAggregate",void 0),(0,o.Cg)([(0,n.MZ)({clonable:!1})],M.prototype,"layer",void 0),(0,o.Cg)([(0,n.MZ)({clonable:"reference"})],M.prototype,"origin",void 0),(0,o.Cg)([(0,n.MZ)({type:b.A,value:null})],M.prototype,"popupTemplate",null),(0,o.Cg)([(0,n.MZ)({clonable:"reference"})],M.prototype,"sourceLayer",void 0),(0,o.Cg)([(0,n.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],M.prototype,"statisticsAggregatedIds",void 0),(0,o.Cg)([(0,n.MZ)({value:null,types:S.Es})],M.prototype,"symbol",null),(0,o.Cg)([(0,n.MZ)({clonable:!1,json:{read:!1,write:!1}})],M.prototype,"_version",void 0),(0,o.Cg)([(0,n.MZ)({type:Boolean,value:!0})],M.prototype,"visible",null),M=s=(0,o.Cg)([(0,n.$K)("esri.Graphic")],M)},46140(e,t,r){r.d(t,{A:()=>s});var i=r(49186);class s{constructor(e,t,r=""){this.major=e,this.minor=t,this._context=r}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}toString(){return`${this.major}.${this.minor}`}validate(e){if(this.major!==e.major){let t=this._context&&this._context+":",r=this._context&&this._context+" ";throw new i.A(t+"unsupported-version",`Required major ${r}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new s(this.major,this.minor,this._context)}static parse(e,t=""){let[r,o]=e.split(".",2),n=/^\s*\d+\s*$/;if(!r?.match||!n.test(r)){let r=t&&t+":";throw new i.A(r+"invalid-version","Expected major version to be a number, but got '${version}'",{version:e})}if(!o?.match||!n.test(o)){let r=t&&t+":";throw new i.A(r+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:e})}return new s(parseInt(r,10),parseInt(o,10),t)}}},6797(e,t,r){r.d(t,{Ui:()=>c});var i=r(56372),s=r(7762),o=r(88620);const n=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function l(e){return e instanceof i.A}function a(e){return e instanceof s.A?Object.keys(e.items):l(e)?(0,o.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof s.A?e.items[t]:e[t]}function p(e){return e?e.declaredClass:null}function d(e,t){let r=e.diff;if(r&&"function"==typeof r)return r(e,t);let i=a(e),s=a(t);if(0===i.length&&0===s.length)return;if(!i.length||!s.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};let o=s.filter(e=>!i.includes(e)),c=i.filter(e=>!s.includes(e)),y=i.filter(r=>s.includes(r)&&u(e,r)!==u(t,r)).concat(o,c).sort(),h=p(e);if(h&&n.has(h)&&y.length)return{type:"complete",oldValue:e,newValue:t};let g,f=l(e)&&l(t);for(let i of y){let s,o=u(e,i),n=u(t,i);if((f||"function"!=typeof o&&"function"!=typeof n)&&o!==n&&(null!=o||null!=n)){if(r&&r[i]&&"function"==typeof r[i])s=r[i]?.(o,n);else if(o instanceof Date&&n instanceof Date){if(o.getTime()===n.getTime())continue;s={type:"complete",oldValue:o,newValue:n}}else s="object"==typeof o&&"object"==typeof n&&p(o)===p(n)?d(o,n):{type:"complete",oldValue:o,newValue:n};null!=s&&(null==g?g={type:"partial",diff:{[i]:s}}:g.diff[i]=s)}}return g}function c(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&p(e)!==p(t)?{type:"complete",oldValue:e,newValue:t}:d(e,t)}},83027(e,t,r){const i=r(29953).ho;r.d(t,["h",0,i])},55156(e,t,r){r.d(t,{I:()=>s});const i=Symbol("idFieldsProviderSymbol");function s(e){return(t=e)&&i in t?e[i]:void 0;var t}r.d(t,["e",0,i])},15481(e,t,r){r.r(t),r.d(t,{default:()=>se});var i=r(32198),s=r(91429),o=r(25728),n=r(17676),l=r(84952),a=r(5443),u=r(16930),p=r(50498),d=r(41910),c=r(55156),y=r(60950),h=r(89808),g=r(99959);const f=Symbol("isGeoJSONGraphicOrigin");var m;class v extends g.A{get[(m=f,y.ym)](){return this.layer}get[c.e](){return this.layer}get[h.Q](){return this.layer}get[d.e7](){return this.layer}constructor(e){super(),this[m]=!0,this.type="geojson",this.layer=e}get id(){return this.layer.id}}var b=r(40124),w=r(41214),S=r(97552),C=r(30291),x=r(79677),M=r(10184),I=r(56400),A=r(49186),F=r(92474),P=r(53966),T=r(83027),O=r(39829),E=r(22671),Z=r(64714),_=r(59288);let j=class extends F.x_{constructor(){super(...arguments),this.type="geojson",this.refresh=(0,n.sg)(async e=>{await this.load();let{extent:t,timeExtent:r}=await this._connection.invoke("refresh",e);return this.sourceJSON.extent=t,r&&(this.sourceJSON.timeInfo.timeExtent=[r.start,r.end]),{dataChanged:!0,updates:{extent:this.sourceJSON.extent,timeInfo:this.sourceJSON.timeInfo}}})}load(e){let t=null==e?null:e.signal;return this.addResolvingPromise(this._startWorker(t)),Promise.resolve(this)}destroy(){this._connection?.close(),this._connection=null}applyEdits(e){return this.load().then(()=>this._applyEdits(e))}openPorts(){return this.load().then(()=>this._connection.openPorts())}queryFeatures(e,t={}){return this.load(t).then(()=>{let r=(0,_.$)(e,this.layer.timeInfo,this.sourceJSON.timeInfo,this.layer.fieldsIndex);return this._connection.invoke("queryFeatures",r.toJSON(),t)}).then(e=>E.A.fromJSON(e))}queryFeaturesJSON(e,t={}){return this.load(t).then(()=>{let r=(0,_.$)(e,this.layer.timeInfo,this.sourceJSON.timeInfo,this.layer.fieldsIndex);return this._connection.invoke("queryFeatures",r.toJSON(),t)})}queryFeatureCount(e,t={}){return this.load(t).then(()=>{let r=(0,_.$)(e,this.layer.timeInfo,this.sourceJSON.timeInfo,this.layer.fieldsIndex);return this._connection.invoke("queryFeatureCount",r.toJSON(),t)})}queryObjectIds(e,t={}){return this.load(t).then(()=>{let r=(0,_.$)(e,this.layer.timeInfo,this.sourceJSON.timeInfo,this.layer.fieldsIndex);return this._connection.invoke("queryObjectIds",r.toJSON(),t)})}queryExtent(e,t={}){return this.load(t).then(()=>{let r=(0,_.$)(e,this.layer.timeInfo,this.sourceJSON.timeInfo,this.layer.fieldsIndex);return this._connection.invoke("queryExtent",r.toJSON(),t)}).then(e=>({count:e.count,extent:a.A.fromJSON(e.extent)}))}querySnapping(e,t={}){return this.load(t).then(()=>this._connection.invoke("querySnapping",e,t))}async queryAttributeBins(e,t={}){await this.load();let r=(0,_.$)(e,this.layer.timeInfo,this.sourceJSON.timeInfo,this.layer.fieldsIndex);return this._connection.invoke("queryAttributeBins",r.toJSON(),t)}_applyEdits(e){if(!this._connection)throw new A.A("geojson-layer-source:edit-failure","Memory source not loaded");let t=this.layer.objectIdField,r=[],i=[],s=[];if(e.addFeatures)for(let t of e.addFeatures)r.push(this._serializeFeature(t));if(e.deleteFeatures)for(let r of e.deleteFeatures)"objectId"in r&&null!=r.objectId?i.push(r.objectId):"attributes"in r&&null!=r.attributes[t]&&i.push(r.attributes[t]);if(e.updateFeatures)for(let t of e.updateFeatures)s.push(this._serializeFeature(t));return this._connection.invoke("applyEdits",{adds:r,updates:s,deletes:i}).then(({extent:e,timeExtent:t,featureEditResults:r})=>(this.sourceJSON.extent=e,t&&(this.sourceJSON.timeInfo.timeExtent=[t.start,t.end]),this._createEditsResult(r)))}_createEditsResult(e){return{addFeatureResults:e.addResults?e.addResults.map(this._createFeatureEditResult,this):[],updateFeatureResults:e.updateResults?e.updateResults.map(this._createFeatureEditResult,this):[],deleteFeatureResults:e.deleteResults?e.deleteResults.map(this._createFeatureEditResult,this):[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]}}_createFeatureEditResult(e){let t=!0===e.success?null:e.error||{code:void 0,description:""};return{objectId:e.objectId,globalId:e.globalId,error:t?new A.A("geojson-layer-source:edit-failure",t.description,{code:t.code}):null}}_serializeFeature(e){let{attributes:t}=e,r=this._geometryForSerialization(e);return r?{geometry:r.toJSON(),attributes:t}:{attributes:t}}_geometryForSerialization(e){let{geometry:t}=e;return null==t?null:"mesh"===t.type||"extent"===t.type?O.A.fromExtent(t.extent):t}async _startWorker(e){this._connection=await(0,T.h)("GeoJSONSourceWorker",{strategy:"dedicated",signal:e,registryTarget:this});let{fields:t,spatialReference:r,hasZ:i,geometryType:s,objectIdField:o,url:n,timeInfo:l,customParameters:a}=this.layer,u="defaults"===this.layer.originOf("spatialReference"),d={url:n,customParameters:a,fields:t&&t.map(e=>e.toJSON()),geometryType:p.gy.toJSON(s),hasZ:i,objectIdField:o,timeInfo:l?l.toJSON():null,spatialReference:u?null:r&&r.toJSON()},c=await this._connection.invoke("load",d,{signal:e});for(let e of c.warnings)P.A.getLogger(this.layer).warn("#load()",`${e.message} (title: '${this.layer.title||"no title"}', id: '${this.layer.id??"no id"}')`,{warning:e});c.featureErrors.length&&P.A.getLogger(this.layer).warn("#load()",`Encountered ${c.featureErrors.length} validation errors while loading features. (title: '${this.layer.title||"no title"}', id: '${this.layer.id??"no id"}')`,{errors:c.featureErrors}),this.sourceJSON=c.layerDefinition,this.capabilities=(0,Z.f)(this.sourceJSON.hasZ,!0,!this.sourceJSON.geometryType)}};(0,i.Cg)([(0,s.MZ)()],j.prototype,"capabilities",void 0),(0,i.Cg)([(0,s.MZ)()],j.prototype,"type",void 0),(0,i.Cg)([(0,s.MZ)({constructOnly:!0})],j.prototype,"layer",void 0),(0,i.Cg)([(0,s.MZ)()],j.prototype,"sourceJSON",void 0),j=(0,i.Cg)([(0,s.$K)("esri.layers.graphics.sources.GeoJSONSource")],j);var L=r(4146),N=r(63074),R=r(69208),$=r(6455),J=r(87718),z=r(56658),D=r(34287),G=r(32756),q=r(8303),B=r(54310),k=r(25036),U=r(82935),H=r(63396),Q=r(10873),V=r(15426),K=r(29005),W=r(20437),Y=r(17036),X=r(30524),ee=r(46499),te=r(39383);const re=(0,Y.p)();let ie=class extends((0,G.fY)((0,$.FJ)((0,R.d)((0,z.J)((0,J.F)((0,N.dM)((0,U.e)((0,H.d)((0,k.j)((0,B.J)((0,D.q)((0,q.A)((0,o.M)(L.A)))))))))))))){constructor(e){super(e),this.timeInfo=null,this.attributeTableTemplate=null,this.copyright=null,this.dateFieldsTimeZone=null,this.definitionExpression=null,this.displayField=null,this.editingEnabled=!1,this.elevationInfo=null,this.fields=null,this.fieldsIndex=null,this.fullExtent=null,this.geometryType=null,this.graphicOrigin=new v(this),this.hasZ=void 0,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.objectIdField=null,this.operationalLayerType="GeoJSON",this.outFields=null,this.popupEnabled=!0,this.popupTemplate=null,this.screenSizePerspectiveEnabled=!0,this.source=new j({layer:this}),this.spatialReference=u.A.WGS84,this.templates=null,this.title="GeoJSON",this.type="geojson"}destroy(){this.source?.destroy()}load(e){let t=this.loadFromPortal({supportedTypes:["GeoJson"],supportsData:!1},e).catch(n.QP).then(()=>this.source.load(e)).then(()=>{this.read(this.source.sourceJSON,{origin:"service",url:this.parsedUrl}),(0,X.yp)(this.renderer,this.fieldsIndex),(0,X.sv)(this.timeInfo,this.fieldsIndex)});return this.addResolvingPromise(t),Promise.resolve(this)}get portalItem(){return super.portalItem}set portalItem(e){super.portalItem=e}get capabilities(){return this.source?this.source.capabilities:null}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("capabilities"),(this._get("createQueryVersion")||0)+1}get defaultPopupTemplate(){return this.createPopupTemplate()}get isTable(){return this.loaded&&null==this.geometryType}get parsedUrl(){return(0,l.An)(this.url)}set renderer(e){(0,X.yp)(e,this.fieldsIndex),this._set("renderer",e)}set url(e){if(!e)return void this._set("url",e);let t=(0,l.An)(e);this._set("url",t.path),t.query&&(this.customParameters={...this.customParameters,...t.query})}async applyEdits(e,t){let{applyEdits:i}=await r.e(8628).then(()=>r(78628));await this.load();let s=await i(this,this.source,e,t);return this.read({extent:this.source.sourceJSON.extent,timeInfo:this.source.sourceJSON.timeInfo},{origin:"service",ignoreDefaults:!0}),s}createPopupTemplate(e){return(0,C.tn)(this,e)}createQuery(){let e=new S.A,t=this.capabilities?.data;e.returnGeometry=!0,t&&t.supportsZ&&(e.returnZ=!0),e.outFields=["*"],e.where=this.definitionExpression||"1=1";let{timeOffset:r,timeExtent:i}=this;return e.timeExtent=null!=r&&null!=i?i.offset(-r.value,r.unit):i||null,e}getFieldDomain(e,t){return this.getField(e)?.domain}getField(e){return this.fieldsIndex.get(e)}queryFeatures(e,t){return this.load().then(()=>this.source.queryFeatures(S.A.from(e)||this.createQuery(),t)).then(e=>{if(e?.features)for(let t of e.features)t.layer=t.sourceLayer=this,t.origin=this.graphicOrigin;return e})}queryObjectIds(e,t){return this.load().then(()=>this.source.queryObjectIds(S.A.from(e)||this.createQuery(),t))}queryFeatureCount(e,t){return this.load().then(()=>this.source.queryFeatureCount(S.A.from(e)||this.createQuery(),t))}queryExtent(e,t){return this.load().then(()=>this.source.queryExtent(S.A.from(e)||this.createQuery(),t))}async queryAttributeBins(e,t){let{source:i,capabilities:s}=await this.load();(0,V.ZJ)(e,s,"GeoJSONLayer");let o=await r.e(4575).then(()=>r(14575)),n=await i.queryAttributeBins(o.default.from(e),t);if(n.features)for(let e of n.features)e.layer=e.sourceLayer=this;return n}read(e,t){super.read(e,t),"service"===t?.origin&&["objectIdField","fields","timeInfo"].forEach(e=>this.revertToOrigin(e,"service"))}async hasDataChanged(){try{let{dataChanged:e,updates:t}=await this.source.refresh(this.customParameters);return null!=t&&this.read(t,{origin:"service",url:this.parsedUrl,ignoreDefaults:!0}),e}catch{}return!1}};(0,i.Cg)([(0,s.MZ)({type:x.A})],ie.prototype,"timeExtent",void 0),(0,i.Cg)([(0,s.MZ)({type:M.A})],ie.prototype,"timeOffset",void 0),(0,i.Cg)([(0,s.MZ)((0,Q.U$)({alwaysWriteNonItemOrigin:!0}))],ie.prototype,"timeInfo",void 0),(0,i.Cg)([(0,s.MZ)(Q.zQ)],ie.prototype,"attributeTableTemplate",void 0),(0,i.Cg)([(0,s.MZ)({readOnly:!0,json:{read:!1,write:!1}})],ie.prototype,"capabilities",null),(0,i.Cg)([(0,s.MZ)({type:String})],ie.prototype,"copyright",void 0),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],ie.prototype,"createQueryVersion",null),(0,i.Cg)([(0,s.MZ)((0,I.P6)("dateFieldsTimeReference"))],ie.prototype,"dateFieldsTimeZone",void 0),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],ie.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,s.MZ)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],ie.prototype,"definitionExpression",void 0),(0,i.Cg)([(0,s.MZ)({type:String})],ie.prototype,"displayField",void 0),(0,i.Cg)([(0,s.MZ)({type:Boolean})],ie.prototype,"editingEnabled",void 0),(0,i.Cg)([(0,s.MZ)(Q.Yj)],ie.prototype,"elevationInfo",void 0),(0,i.Cg)([(0,s.MZ)({type:[W.A],json:{name:"layerDefinition.fields",write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"fields"}}}})],ie.prototype,"fields",void 0),(0,i.Cg)([(0,s.MZ)(re.fieldsIndex)],ie.prototype,"fieldsIndex",void 0),(0,i.Cg)([(0,s.MZ)({type:a.A,json:{name:"extent"}})],ie.prototype,"fullExtent",void 0),(0,i.Cg)([(0,s.MZ)({type:["point","polygon","polyline","multipoint"],json:{read:{reader:p.gy.read}}})],ie.prototype,"geometryType",void 0),(0,i.Cg)([(0,s.MZ)({readOnly:!0,clonable:!1})],ie.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,s.MZ)({type:Boolean})],ie.prototype,"hasZ",void 0),(0,i.Cg)([(0,s.MZ)(Q.id)],ie.prototype,"id",void 0),(0,i.Cg)([(0,s.MZ)({type:Boolean,readOnly:!0})],ie.prototype,"isTable",null),(0,i.Cg)([(0,s.MZ)(Q.kF)],ie.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,s.MZ)({type:[ee.A],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:te.w},write:!0}})],ie.prototype,"labelingInfo",void 0),(0,i.Cg)([(0,s.MZ)(Q.fV)],ie.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,s.MZ)({type:["show","hide"]})],ie.prototype,"listMode",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{name:"layerDefinition.objectIdField",write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"objectIdField"}}}})],ie.prototype,"objectIdField",void 0),(0,i.Cg)([(0,s.MZ)(Q.ke)],ie.prototype,"opacity",void 0),(0,i.Cg)([(0,s.MZ)({type:["GeoJSON"]})],ie.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,s.MZ)(re.outFields)],ie.prototype,"outFields",void 0),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],ie.prototype,"parsedUrl",null),(0,i.Cg)([(0,s.MZ)(Q.M6)],ie.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,s.MZ)({type:b.A,json:{name:"popupInfo",write:!0}})],ie.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,s.MZ)({types:w.Hg,json:{name:"layerDefinition.drawingInfo.renderer",write:!0,origins:{service:{name:"drawingInfo.renderer"},"web-scene":{types:w.XJ}}}})],ie.prototype,"renderer",null),(0,i.Cg)([(0,s.MZ)(Q.PY)],ie.prototype,"screenSizePerspectiveEnabled",void 0),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],ie.prototype,"source",void 0),(0,i.Cg)([(0,s.MZ)({type:u.A})],ie.prototype,"spatialReference",void 0),(0,i.Cg)([(0,s.MZ)({type:[K.A]})],ie.prototype,"templates",void 0),(0,i.Cg)([(0,s.MZ)()],ie.prototype,"title",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!1},readOnly:!0})],ie.prototype,"type",void 0),(0,i.Cg)([(0,s.MZ)(Q.OZ)],ie.prototype,"url",null),ie=(0,i.Cg)([(0,s.$K)("esri.layers.GeoJSONLayer")],ie);const se=ie},99352(e,t,r){r.d(t,["F",0,{supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!0,supportedSpatialAggregationStatistics:{envelope:!0,centroid:!0,convexHull:!0},supportsStatisticsAggregatedIds:!0,supportsCentroid:!0,supportsCentroidOnDegeneratedQuantizedGeometry:!0,supportsCacheHint:!0,supportsCurrentUser:!1,supportsDegeneratedQuantizedGeometry:!1,supportsDistance:!0,supportsOutDistance:!1,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsPaginationOnAggregatedQueries:!1,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!0,supportsReturnMesh:!1,supportsReturnExceededLimitGeometries:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByAnonymous:!0,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsFormatPBFWithCurves:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,maxUniqueIDCount:void 0,relativeTimeBinWindow:0,standardMaxRecordCount:void 0,standardMaxRecordCountNoGeometry:void 0,tileMaxRecordCount:void 0,supportsTrueCurve:!1},"P",0,{supportsDate:!0,supportsFixedInterval:!0,supportsAutoInterval:!0,supportsFixedBoundaries:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsSnapToData:!1,supportsReturnFullIntervalBin:!1,supportsFirstDayOfWeek:!1,supportsNormalization:!0,supportedStatistics:{count:!0,sum:!0,avg:!0,var:!0,stddev:!0,min:!0,max:!0,percentileContinuous:!0,percentileDiscrete:!0,envelope:!0,centroid:!0,convexHull:!0},supportedNormalizationTypes:{field:!0,log:!0,naturalLog:!0,percentOfTotal:!0,squareRoot:!0}}])},54339(e,t,r){function i(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{let r=[];for(let i of t.fieldNames)r.push(e.attributes[i]??null);return JSON.stringify(r)}}}function s(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];let r=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(r)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}r.d(t,{W:()=>i,r:()=>s})},64714(e,t,r){r.d(t,{F0:()=>l,Vx:()=>p,e2:()=>c,f:()=>g});var i=r(44208),s=r(4718),o=r(93470),n=r(99352);function l(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?o.Cb:"esriGeometryPolyline"===e?o.yM:o.WR}}}const a=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let u=1;function p(e,t){if((0,i.A)("esri-csp-restrictions"))return()=>t?{[t]:null,...e}:{...e};try{let r="";t&&(r+=`this${d(t)} = null;`);for(let t in e)r+=`this${d(t)} = ${JSON.stringify(e[t])};`;let i=Function(`\n return class AttributesClass$${u++} {\n constructor() {\n ${r};\n }\n }\n `)();return()=>new i}catch{return()=>t?{[t]:null,...e}:{...e}}}function d(e){return a.test(e)?`.${e}`:`[${JSON.stringify(e)}]`}function c(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,s.o8)(e)}}]}const y={...n.F,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!1,supportsDistance:!1,supportsExtent:!1,supportsQuantization:!1,supportsQueryGeometry:!1,supportsDisjointSpatialRelationship:!1},h={...n.P,supportedStatistics:{...n.P.supportedStatistics,envelope:!1,centroid:!1,convexHull:!1}};function g(e,t,r=!1){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:r?y:n.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:r?h:n.P,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:t,supportsTrueCurveUpdateByTrueCurveClientsOnly:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},59288(e,t,r){r.d(t,{$:()=>n});var i=r(2991),s=r(96184),o=r(36003);function n(e,t,r,n){if(!e.timeExtent||!t&&!r)return e;let l=e.clone();if(t&&r){if(!(0,o.L)(t,s.A.fromJSON(r))){let r=(0,i.RZ)(e.timeExtent,t,n,e.where);r&&(l.where=r,l.timeExtent=void 0)}return l}return!t&&r?(l.timeExtent=void 0,l):(t&&!r&&(l.where=(0,i.RZ)(e.timeExtent,t,n,e.where),l.timeExtent=void 0),l)}},69208(e,t,r){var i=r(32198),s=r(91429);r.d(t,["d",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,i.Cg)([(0,s.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],r.prototype,"customParameters",void 0),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.CustomParametersMixin")],r),r}])},32756(e,t,r){r.d(t,{Rr:()=>l});var i=r(32198),s=r(91429),o=r(93637),n=r(91880);function l(e,t,r){if(!e)return null;let i=e.find(e=>!!e.field);if(!i)return null;let s=new n.A;return s.read(i,r),[s]}const a={type:[n.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:l},write:{writer:function(e,t,r,i){let s=e.find(e=>!!e.field);s&&(0,o.sM)(r,[s.toJSON()],t)}}}};r.d(t,["fY",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,i.Cg)([(0,s.MZ)(a)],r.prototype,"orderBy",void 0),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.OrderedLayer")],r),r},"ne",0,a])},8303(e,t,r){var i=r(32198),s=r(92602),o=r(91429),n=r(60999),l=r(49186),a=r(36563),u=r(53966),p=r(97768),d=r(17676),c=r(84952),y=r(70333),h=r(20655),g=r(80812),f=r(41318),m=r(10407),v=r(78888),b=r(26121),w=r(77548),S=r(36005),C=r(43937);const x={credential:null,user:null};r.d(t,["A",0,e=>{let t=e,M=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){super.destroy(),this.portalItem=(0,p.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new g.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{let{load:i}=await r.e(1204).then(()=>r(41204));return(0,d.Te)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,d.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async reloadFromPortal(e,t){if(!this.loaded||!this.portalItem?.id)return!1;let i=t?.signal?null:new AbortController;try{let{reload:s}=await r.e(1204).then(()=>r(41204));return i&&this.addHandles((0,a.rE)(i),"reloadFromPortal"),await s({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t?.signal?t:{signal:i.signal})}catch(e){throw(0,d.zf)(e)||u.A.getLogger(this).warn(`Failed to reload layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}finally{i&&this.removeHandles("reloadFromPortal")}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,d.QP)(e),!0)))}async setUserPrivileges(e,t){if(!s.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{let{features:{edit:r,fullEdit:i},content:{updateItem:s}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",s)}catch(e){(0,d.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);let i,s,o=!y.id?.findCredential(this.url),n=e===r.id;if(n&&r.portal.user)return this._getUserPrivileges(r,o);if(n)i=r.portal.url;else try{i=await(0,w.wI)(this.url,t)}catch(e){(0,d.QP)(e)}if(!i||!(0,c.b8)(i,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{let e=null==t?null:t.signal;s=await(y.id?.getCredential(`${i}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,d.QP)(e)}if(!s)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(n?await r.reload():(r=new g.default({id:e,portal:{url:i}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,o)}catch(e){(0,d.QP)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}_getUserPrivileges(e,t){let r=(0,m.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,d.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){let t=this.url?y.id?.findCredential(this.url):null;if(!t)return!0;let r=x.credential===t?x.user:await this._fetchEditingUser(e);return x.credential=t,x.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){let t=this.portalItem?.portal?.user;if(t)return t;let r=y.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;let i=`${r.owningSystemUrl}/sharing/rest`,s=h.A.getDefault();if(s&&s.loaded&&(0,c.S8)(s.restUrl)===(0,c.S8)(i))return s.user;let o=`${i}/community/self`,l=null==e?null:e.signal,a=await(0,n.Ke)((0,v.A)(o,{authMode:"no-prompt",query:{f:"json"},signal:l}));return a.ok?f.A.fromJSON(a.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){return(0,b.wN)(this.portalItem,t)?(t?.messages?.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i.Cg)([(0,o.MZ)({type:g.default})],M.prototype,"portalItem",null),(0,i.Cg)([(0,S.w)("web-document","portalItem",["itemId"])],M.prototype,"readPortalItem",null),(0,i.Cg)([(0,C.K)("web-document","portalItem",{itemId:{type:String}})],M.prototype,"writePortalItem",null),(0,i.Cg)([(0,o.MZ)({clonable:!1})],M.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasUpdateItemPrivileges",void 0),M=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.PortalLayer")],M),M}])},82935(e,t,r){var i=r(32198),s=r(91429),o=r(73133),n=r(79677),l=r(10184),a=r(30524),u=r(96184),p=r(36005);const d={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"}}};r.d(t,["B",0,d,"e",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){let r=t.timeInfo.exportOptions;if(!r)return null;let i=r.timeOffset,s=o.j.fromJSON(r.timeOffsetUnits);return i&&s?new l.A({value:i,unit:s}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,a.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i.Cg)([(0,s.MZ)({type:n.A,json:{write:!1}})],r.prototype,"timeExtent",void 0),(0,i.Cg)([(0,s.MZ)({type:l.A})],r.prototype,"timeOffset",void 0),(0,i.Cg)([(0,p.w)("service","timeOffset",["timeInfo.exportOptions"])],r.prototype,"readOffset",null),(0,i.Cg)([(0,s.MZ)({value:null,type:u.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],r.prototype,"timeInfo",null),(0,i.Cg)([(0,s.MZ)(d)],r.prototype,"useViewTime",void 0),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.TemporalLayer")],r),r}])},63396(e,t,r){r.d(t,{d:()=>x});var i=r(32198),s=r(91429),o=r(41910),n=r(60950),l=r(99959);class a extends l.A{constructor(e){super(),this.type="track",this.trackInfoProvider=e}get id(){return this.trackInfoProvider.id}get[n.ym](){return this.trackInfoProvider.trackInfo}get[o.e7](){return this.trackInfoProvider}}var u=r(69540),p=r(25482),d=r(93637),c=r(40124),y=r(96576),h=r(59868),g=r(10184),f=r(50820),m=r(10873),v=r(41214),b=r(46499);let w=class extends((0,u.OU)(p.o)){constructor(e){super(e),this.labelingInfo=null,this.labelsVisible=!0,this.renderer=null,this.visible=!0}};(0,i.Cg)([(0,s.MZ)({type:[b.A],json:{write:!0}})],w.prototype,"labelingInfo",void 0),(0,i.Cg)([(0,s.MZ)(m.kF)],w.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,s.MZ)({types:v.Hg,json:{write:!0}})],w.prototype,"renderer",void 0),(0,i.Cg)([(0,s.MZ)({type:Boolean,json:{write:!0}})],w.prototype,"visible",void 0),w=(0,i.Cg)([(0,s.$K)("esri.layers.support.TrackPartInfo")],w);var S=r(43937);let C=class extends((0,u.OU)(p.o)){constructor(e){super(e),this.enabled=!0,this.fields=[],this.latestObservations=new w({renderer:new y.A({symbol:h.UK.clone()})}),this.maxDisplayDuration=null,this.maxDisplayObservationsPerTrack=0,this.popupEnabled=!0,this.popupTemplate=null,this.previousObservations=new w({renderer:new y.A({symbol:h.UK.clone()})}),this.trackLines=new w({renderer:new y.A({symbol:h.A7.clone()})}),this.timeField="startTimeField"}writeFields(e,t,r){let i=e.filter(e=>"avg_angle"!==e.statisticType).map(e=>e.toJSON());(0,d.sM)(r,i,t)}};(0,i.Cg)([(0,s.MZ)({type:Boolean,json:{write:!0}})],C.prototype,"enabled",void 0),(0,i.Cg)([(0,s.MZ)({type:[f.A],json:{write:!0}})],C.prototype,"fields",void 0),(0,i.Cg)([(0,S.K)("fields")],C.prototype,"writeFields",null),(0,i.Cg)([(0,s.MZ)({type:w,json:{write:!0}})],C.prototype,"latestObservations",void 0),(0,i.Cg)([(0,s.MZ)({type:g.A,json:{write:!0}})],C.prototype,"maxDisplayDuration",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],C.prototype,"maxDisplayObservationsPerTrack",void 0),(0,i.Cg)([(0,s.MZ)(m.M6)],C.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,s.MZ)({type:c.A,json:{name:"popupInfo",write:!0}})],C.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,s.MZ)({type:w,json:{write:!0}})],C.prototype,"previousObservations",void 0),(0,i.Cg)([(0,s.MZ)({type:w,json:{write:!0}})],C.prototype,"trackLines",void 0),(0,i.Cg)([(0,s.MZ)({type:["timeReceived","startTimeField","endTimeField"],json:{read:!0,write:!0}})],C.prototype,"timeField",void 0),C=(0,i.Cg)([(0,s.$K)("esri.layers.support.TrackInfo")],C);const x=e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.trackGraphicOrigin=new a(this),this.trackInfo=null}};return(0,i.Cg)([(0,s.MZ)({readOnly:!0,clonable:!1})],r.prototype,"trackGraphicOrigin",void 0),(0,i.Cg)([(0,s.MZ)({type:C})],r.prototype,"trackInfo",void 0),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.TrackableLayer")],r),r}},29005(e,t,r){r.d(t,{A:()=>u});var i=r(32198),s=r(91429),o=r(69540),n=r(66552),l=r(25482);const a=new n.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,o.OU)(l.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"description",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:a.read,write:a.write}})],u.prototype,"drawingTool",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"prototype",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"thumbnail",void 0),u=(0,i.Cg)([(0,s.$K)("esri.layers.support.FeatureTemplate")],u)},46499(e,t,r){var i,s,o=r(32198),n=r(91429),l=r(90360),a=(r(44208),r(66552)),u=r(25482),p=r(4718),d=r(90629),c=r(59868),y=r(73838),h=r(33910),g=r(73913),f=r(32730),m=r(77548),v=r(36005),b=r(43937);const w=new a.J({esriServerPointLabelPlacementAboveCenter:"above-center",esriServerPointLabelPlacementAboveLeft:"above-left",esriServerPointLabelPlacementAboveRight:"above-right",esriServerPointLabelPlacementBelowCenter:"below-center",esriServerPointLabelPlacementBelowLeft:"below-left",esriServerPointLabelPlacementBelowRight:"below-right",esriServerPointLabelPlacementCenterCenter:"center-center",esriServerPointLabelPlacementCenterLeft:"center-left",esriServerPointLabelPlacementCenterRight:"center-right",esriServerLinePlacementAboveAfter:"above-after",esriServerLinePlacementAboveAlong:"above-along",esriServerLinePlacementAboveBefore:"above-before",esriServerLinePlacementAboveStart:"above-start",esriServerLinePlacementAboveEnd:"above-end",esriServerLinePlacementBelowAfter:"below-after",esriServerLinePlacementBelowAlong:"below-along",esriServerLinePlacementBelowBefore:"below-before",esriServerLinePlacementBelowStart:"below-start",esriServerLinePlacementBelowEnd:"below-end",esriServerLinePlacementCenterAfter:"center-after",esriServerLinePlacementCenterAlong:"center-along",esriServerLinePlacementCenterBefore:"center-before",esriServerLinePlacementCenterStart:"center-start",esriServerLinePlacementCenterEnd:"center-end",esriServerPolygonPlacementAlwaysHorizontal:"always-horizontal"},{ignoreUnknown:!0});function S(e,t,r){return{enabled:!(0,m.TU)(r?.layer)}}function C(e){return!e||"service"!==e.origin&&"map-image"!==e.layer?.type}function x(e){return!!function(e){return"map-image"===e?.type}(e)&&!!e.capabilities?.exportMap?.supportsArcadeExpressionForLabeling}let M=class extends u.o{static{i=f.vK}static{s=this}static evaluateWhere(e,t){let r=(e,t,r)=>{switch(t){case"=":return e==r;case"<>":return e!=r;case">":return e>r;case">=":return e>=r;case"<":return e<r;case"<=":return e<=r}return!1};try{if(null==e)return!0;let i=e.split(" ");if(3===i.length)return r(t[i[0]],i[1],i[2]);if(7===i.length){let e=r(t[i[0]],i[1],i[2]),s=i[3],o=r(t[i[4]],i[5],i[6]);switch(s){case"AND":return e&&o;case"OR":return e||o}}return!1}catch{}}constructor(e){super(e),this[i]=!0,this.type="label",this.name=null,this.allowOverrun=!1,this.deconflictionStrategy="static",this.labelExpression=null,this.labelExpressionInfo=null,this.labelPlacement=null,this.offsetDistance=0,this.labelPosition="curved",this.maxScale=0,this.minScale=0,this.repeatLabel=!0,this.symbol=c.Hk,this.useCodedValues=void 0,this.where=null}readLabelExpression(e,t){let r=t.labelExpressionInfo;if(!r||!r.value&&!r.expression)return e}writeLabelExpression(e,t,r){if(this.labelExpressionInfo)if(null!=this.labelExpressionInfo.value)e=(0,f.D3)(this.labelExpressionInfo.value);else if(null!=this.labelExpressionInfo.expression){let t=(0,f.tH)(this.labelExpressionInfo.expression);t&&(e="["+t+"]")}null!=e&&(t[r]=e)}writeLabelExpressionInfo(e,t,r,i){if(null==e&&null!=this.labelExpression&&C(i))e=new g.A({expression:this.getLabelExpressionArcade()});else if(!e)return;let s=e.toJSON(i);s.expression&&(t[r]=s)}writeMaxScale(e,t){(e||this.minScale)&&(t.maxScale=e)}writeMinScale(e,t){(e||this.maxScale)&&(t.minScale=e)}get repeatLabelDistance(){return this._get("repeatLabelDistance")}set repeatLabelDistance(e){this._set("repeatLabelDistance",e)}getLabelExpression(){return(0,f.XJ)(this)}getLabelExpressionArcade(){return(0,f.BI)(this)}getLabelExpressionSingleField(){return(0,f.rU)(this)}hash(){return JSON.stringify(this)}clone(){return new s({allowOverrun:this.allowOverrun,deconflictionStrategy:this.deconflictionStrategy,labelExpression:this.labelExpression,labelExpressionInfo:(0,p.o8)(this.labelExpressionInfo),labelPosition:this.labelPosition,labelPlacement:this.labelPlacement,offsetDistance:this.offsetDistance,maxScale:this.maxScale,minScale:this.minScale,name:this.name,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,symbol:(0,p.o8)(this.symbol),where:this.where,useCodedValues:this.useCodedValues})}};(0,o.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],M.prototype,"name",void 0),(0,o.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1},"portal-item":{default:!1,write:{overridePolicy:S}}}}})],M.prototype,"allowOverrun",void 0),(0,o.Cg)([(0,n.MZ)({type:String,json:{write:!0,default:"static",origins:{"web-scene":{write:!1},"portal-item":{default:"static",write:{overridePolicy:S}}}}})],M.prototype,"deconflictionStrategy",void 0),(0,o.Cg)([(0,n.MZ)({type:String,json:{write:{overridePolicy(e,t,r){return this.labelExpressionInfo&&"service"===r?.origin&&x(r.layer)?{enabled:!1}:{allowNull:!0}}}}})],M.prototype,"labelExpression",void 0),(0,o.Cg)([(0,v.w)("labelExpression")],M.prototype,"readLabelExpression",null),(0,o.Cg)([(0,b.K)("labelExpression")],M.prototype,"writeLabelExpression",null),(0,o.Cg)([(0,n.MZ)({type:g.A,json:{write:{overridePolicy:(e,t,r)=>function(e){return C(e)||x(e?.layer)}(r)?{allowNull:!0}:{enabled:!1}}}})],M.prototype,"labelExpressionInfo",void 0),(0,o.Cg)([(0,b.K)("labelExpressionInfo")],M.prototype,"writeLabelExpressionInfo",null),(0,o.Cg)([(0,n.MZ)({type:w.apiValues,json:{type:w.jsonValues,read:w.read,write:w.write}})],M.prototype,"labelPlacement",void 0),(0,o.Cg)([(0,n.MZ)({type:Number,json:{read:!0,write:!0,default:0,origins:{"web-scene":{write:!1}}}})],M.prototype,"offsetDistance",void 0),(0,o.Cg)([(0,n.MZ)({type:["curved","parallel"],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],M.prototype,"labelPosition",void 0),(0,o.Cg)([(0,n.MZ)({type:Number})],M.prototype,"maxScale",void 0),(0,o.Cg)([(0,b.K)("maxScale")],M.prototype,"writeMaxScale",null),(0,o.Cg)([(0,n.MZ)({type:Number})],M.prototype,"minScale",void 0),(0,o.Cg)([(0,b.K)("minScale")],M.prototype,"writeMinScale",null),(0,o.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:S}}}}})],M.prototype,"repeatLabel",void 0),(0,o.Cg)([(0,n.MZ)({type:Number,cast:d.cr,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:S}}}}})],M.prototype,"repeatLabelDistance",null),(0,o.Cg)([(0,n.MZ)({types:h.em,json:{types:h.em,origins:{"portal-item":{types:h.em,read:{reader:(0,l.C)({types:h.em})},default:null},"web-scene":{types:h.Rv,read:{reader:(0,l.C)({types:h.Rv})},write:y.oO,default:null}},write:y.oO,default:null}})],M.prototype,"symbol",void 0),(0,o.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0}})],M.prototype,"useCodedValues",void 0),(0,o.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],M.prototype,"where",void 0),M=s=(0,o.Cg)([(0,n.$K)("esri.layers.support.LabelClass")],M);const I=M;r.d(t,["A",0,I])},73913(e,t,r){var i,s=r(32198),o=r(91429),n=r(25482),l=r(32730),a=r(36005),u=r(43937);let p=class extends n.o{static{i=this}constructor(e){super(e),this.name=null,this.expression=null,this.title=null,this.value=null}readExpression(e,t){return t.value?(0,l.mX)(t.value):e}writeExpression(e,t,r){null!=this.value&&(e=(0,l.mX)(this.value)),null!=e&&(t[r]=e)}clone(){return new i({name:this.name,expression:this.expression,title:this.title,value:this.value})}};(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],p.prototype,"name",void 0),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:{writerEnsuresNonNull:!0}}})],p.prototype,"expression",void 0),(0,s.Cg)([(0,a.w)("expression",["expression","value"])],p.prototype,"readExpression",null),(0,s.Cg)([(0,u.K)("expression")],p.prototype,"writeExpression",null),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],p.prototype,"title",void 0),(0,s.Cg)([(0,o.MZ)({json:{read:!1,write:!1}})],p.prototype,"value",void 0),p=i=(0,s.Cg)([(0,o.$K)("esri.layers.support.LabelExpressionInfo")],p);const d=p;r.d(t,["A",0,d])},91880(e,t,r){r.d(t,{A:()=>u});var i,s=r(32198),o=r(91429),n=r(66552),l=r(25482);const a=new n.J({asc:"ascending",desc:"descending"});let u=class extends l.o{static{i=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],u.prototype,"valueExpression",void 0),(0,s.Cg)([(0,o.MZ)({type:a.apiValues,json:{type:a.jsonValues,read:a.read,write:a.write}})],u.prototype,"order",void 0),u=i=(0,s.Cg)([(0,o.$K)("esri.layers.support.OrderByInfo")],u)},41560(e,t,r){r.d(t,{Ch:()=>n,mW:()=>o});var i=r(34727),s=r(39516);function o(e,t){return{...t,filterMode:e.mode}}function n(e,t,r){let o=function(e){if("manual"===u(e))return null;let t=[-1/0,1/0];for(let{minScale:r,maxScale:i}of e.filters)t[0]=Math.max(t[0],p(r)),t[1]=Math.min(t[1],d(i));return t}(e);if(o&&((0,i.gg)(t,o[0])||(0,i.ZH)(r,o[1])))return"";let n=Array.from(l(e,t,r)),a=function(e,t,r){if(0===e.length)return!0;let s=p(e.at(0)?.minScale),o=d(e.at(-1)?.maxScale);if((0,i.ZH)(s,t)||(0,i.gg)(o,r))return!0;for(let t=0;t<e.length-1;t++){let r=e[t],s=e[t+1];if((0,i.ZH)(p(s.minScale),d(r.maxScale)))return!0}return!1}(n,t,r)?"1=1":n.map(e=>e.where||"1=1").reduce((e,t)=>(0,s.IW)(e,t),"");return a&&"1=1"!==a?a:""}function*l(e,t,r){if("manual"===u(e)){let t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(let i of e.filters)a(i.minScale,i.maxScale,t,r)&&(yield i)}}function a(e,t,r,s){return e=p(e),r=p(r),t=d(t),!(!(0,i.Sp)(r,e)&&(s??r)>e||(0,i.Hx)(t,r)||void 0!==s&&(0,i.Sp)(s,e))}function u(e){return"mode"in e?e.mode:e.filterMode}function p(e){return e||1/0}function d(e){return e||0}},17036(e,t,r){r.d(t,{p:()=>a});var i=r(44208),s=r(53966),o=r(20437),n=r(95466),l=r(30524);function a(){return{fields:{type:[o.A],value:null,set:function(e){if(e&&(0,i.A)("big-integer-warning-enabled")){let t=e.filter(e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8);if(t.length){let e=t.map(e=>`'${e.name}'`).join(", ");s.A.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${2**53-1} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return n.A.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){let e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(let t of e)this.fieldsIndex?.has(t)||s.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e});return(0,l.DB)(this.fieldsIndex,e)}}}}},39383(e,t,r){r.d(t,{w:()=>a,z:()=>d});var i=r(49186),s=r(53966),o=r(46499);const n=()=>s.A.getLogger("esri.layers.support.labelingInfo"),l=/\[([^[\]]+)\]/gi;function a(e,t,r){return e?e.map(e=>{let i=new o.A;if(i.read(e,r),i.labelExpression){let e=t.fields||t.layerDefinition?.fields||this.fields;i.labelExpression=i.labelExpression.replaceAll(l,(t,r)=>`[${function(e,t){if(!t)return e;let r=e.toLowerCase();for(let e=0;e<t.length;e++){let i=t[e].name;if(i.toLowerCase()===r)return i}return e}(r,e)}]`)}return i}):null}const u=["above-right","above-center","above-left","center-center","center-left","center-right","below-center","below-left","below-right"],p={esriGeometryPoint:u,esriGeometryMultiPatch:["always-horizontal"],esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along","above-along","below-along"],esriGeometryMultipoint:u,esriGeometryEnvelope:null};function d(e,t){let r=[];for(let s of e){let e=s.labelPlacement,o=p[t];if(!s.symbol)return n().warn("No ILabelClass symbol specified."),[];if(!o)return n().error(new i.A("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),[];if(o.includes(e))r.push(s);else{let i=o[0];e&&n().warn(`Found invalid label placement type ${e} for ${t}. Defaulting to ${i}`);let l=s.clone();l.labelPlacement=i,r.push(l)}}return r}},36003(e,t,r){function i(e,t){let r=e.startField===t.startField||!e.startField&&!t.startField,i=e.endField===t.endField||!e.endField&&!t.endField;return r&&i}r.d(t,{L:()=>i})},73681(e,t,r){r.d(t,{n:()=>a});var i=r(49186),s=r(53966),o=r(46140),n=r(95466),l=r(55674);class a{static async from(e,t,r){let n=e.dictionary_version?o.A.parse(e.dictionary_version):null,p=new Set(e.itemsNames),d={};if(t)for(let e in t)d[e]=t[e];if(e.authoringInfo.configuration)for(let t of e.authoringInfo.configuration)d.hasOwnProperty(t.name)||(d[t.name]=t.value);let c=new Set(e.authoringInfo.symbol);for(let e of Object.keys(r))c.delete(e);c.size&&s.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:c});let y=await(0,l.xR)(e.expression,null,d);if(!y)throw new i.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");let h=!n||!n.greaterEqual(4,0);h&&s.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:n});let g=new u(r,h);return new a(h,p,y,g)}constructor(e,t,r,i){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=r,this._reader=i}get itemNames(){return this._itemNames}evaluate(e,t,r,i){try{return this._reader.bind(e,r,i),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){s.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new n.A(e);let t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new n.A(t)}}class u extends l.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){let t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);let t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},22671(e,t,r){r.d(t,{A:()=>v});var i,s=r(32198),o=r(91429),n=r(66552),l=r(25482),a=r(4718),u=r(16930),p=r(60408),d=r(65864),c=r(50498),y=r(52106),h=r(20437),g=r(36005),f=r(43937);const m=new n.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=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,y.A)}writeGeometryType(e,t,r,i){if(e)return void m.write(e,t,r,i);let{features:s}=this;if(s)for(let e of s)if(null!=e?.geometry)return void m.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;let r=!!e.spatialReference,i=(0,d.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=u.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());let{features:r}=this;if(r)for(let e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,a.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){let t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){let i=t.features[r];i.geometry&&=(e?.[r])?.toJSON()||i.geometry}return t}quantize(e){let{scale:[t,r],translate:[i,s]}=e,o=this.features,n=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((s-e)/r));for(let e=0,t=o.length;e<t;e++)n?.(o[e].geometry)||(o.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){let{geometryType:e,features:t,transform:r}=this;if(!r)return this;let{translate:[i,s],scale:[o,n]}=r,l=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){let{translate:[,,e],scale:[,,t]}=r;l=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){let{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}let u=this._getHydrationFunction(e,e=>e*o+i,e=>s-e*n,l,a);for(let{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){let i=u.A.fromJSON(t.spatialReference),s=[];for(let t=0;t<e.length;t++){let o=e[t],n=r.fromJSON(o),l=o.geometry?.spatialReference;null!=n.geometry&&!l&&(n.geometry.spatialReference=i);let a=o.aggregateGeometries,u=n.aggregateGeometries;if(a&&null!=u)for(let e in u){let t=u[e],r=a[e]?.spatialReference;null!=t&&!r&&(t.spatialReference=i)}s.push(n)}return s}_quantizePoints(e,t,r){let i,s,o=[];for(let n=0,l=e.length;n<l;n++){let l=e[n];if(n>0){let e=t(l[0]),n=r(l[1]);(e!==i||n!==s)&&(o.push([e-i,n-s]),i=e,s=n)}else i=t(l[0]),s=r(l[1]),o.push([i,s])}return o.length>0?o:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{let i=(0,p.Bi)(e)?e.rings:e.paths,s=[];for(let e=0,o=i.length;e<o;e++){let o=i[e],n=this._quantizePoints(o,t,r);n&&s.push(n)}return s.length>0?((0,p.Bi)(e)?e.rings=s:e.paths=s,e):null}:"multipoint"===e?e=>{let i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,s){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{let o,n,l=(0,p.Bi)(e)?e.rings:e.paths;for(let e=0,i=l.length;e<i;e++){let i=l[e];for(let e=0,s=i.length;e<s;e++){let s=i[e];e>0?(o+=s[0],n+=s[1]):(o=s[0],n=s[1]),s[0]=t(o),s[1]=r(n)}}if(i&&s)for(let e=0,t=l.length;e<t;e++){let t=l[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2]),r[3]=s(r[3])}}else if(i)for(let e=0,t=l.length;e<t;e++){let t=l[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2])}}else if(s)for(let e=0,t=l.length;e<t;e++){let t=l[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=s(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),s&&null!=e.mmax&&null!=e.mmin&&(e.mmax=s(e.mmax),e.mmin=s(e.mmin))}:"multipoint"===e?e=>{let o,n,l=e.points;for(let e=0,i=l.length;e<i;e++){let i=l[e];e>0?(o+=i[0],n+=i[1]):(o=i[0],n=i[1]),i[0]=t(o),i[1]=r(n)}if(i&&s)for(let e=0,t=l.length;e<t;e++){let t=l[e];t[2]=i(t[2]),t[3]=s(t[3])}else if(i)for(let e=0,t=l.length;e<t;e++){let t=l[e];t[2]=i(t[2])}else if(s)for(let e=0,t=l.length;e<t;e++){let t=l[e];t[2]=s(t[2])}}:null}};(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,s.Cg)([(0,o.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,s.Cg)([(0,o.MZ)({type:[y.A],json:{write:!0}})],v.prototype,"features",void 0),(0,s.Cg)([(0,g.w)("features")],v.prototype,"readFeatures",null),(0,s.Cg)([(0,o.MZ)({type:[h.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,s.Cg)([(0,o.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:m.read}}})],v.prototype,"geometryType",void 0),(0,s.Cg)([(0,f.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,s.Cg)([(0,o.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,s.Cg)([(0,o.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,s.Cg)([(0,o.MZ)({types:c.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,s.Cg)([(0,g.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,s.Cg)([(0,o.MZ)({type:u.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,s.Cg)([(0,f.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,s.Cg)([(0,o.MZ)({json:{write:!0}})],v.prototype,"transform",void 0),v=i=(0,s.Cg)([(0,o.$K)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0},41366(e,t,r){var i=r(32198),s=r(91429),o=r(66552),n=r(53966),l=r(93223);const a=(0,o.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",p="field";r.d(t,["K",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType"),t=!!this.normalizationField,r=null!=this.normalizationTotal;return t||r?(e=t&&p||r&&u||null,t&&r&&n.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):(e===p||e===u)&&(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,i.Cg)([(0,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)(a,{name:"parameters.normalizationType"})],r.prototype,"normalizationType",null),r=(0,i.Cg)([(0,s.$K)("esri.rest.support.NormalizationBinParametersMixin")],r),r},"Q",0,a])},2991(e,t,r){r.d(t,{G9:()=>u,RZ:()=>a});var i=r(39516);const s="=",o=">=",n="<=";function l(e,t,r,s){let o=s.get(e)?.type,n=s.getTimeZone(e);return`${(0,i.iA)(e)} ${t} ${(0,i.YG)(r,{type:"date"},{type:o,timeZone:n})}`}function a(e,t,r,a){if(!t||!r)return;let{startField:u,endField:p}=t,{start:d,end:c}=e;if(!d&&!c||!u&&!p)return;let y=u??p,h=p??u;if(y&&h){if(d&&c){if(d.getTime()===c.getTime())return(0,i.mA)(a,l(y,s,d,r));if(!u||!p){let e=l(y,o,d,r),t=l(y,n,c,r);return(0,i.mA)(a,(0,i.mA)(e,t))}let e=l(u,o,d,r),t=l(p,n,c,r);return(0,i.mA)(a,(0,i.mA)(e,t))}if(d)return(0,i.mA)(a,l(y,o,d,r));if(c)return(0,i.mA)(a,l(h,n,c,r))}}function u(e){let{start:t,end:r}=e;if(t||r){if(!t&&r)return`null,${r.getTime()}`;if(!r&&t)return`${t.getTime()},null`;if(r&&t)return t.getTime()===r.getTime()?`${t.getTime()}`:`${t.getTime()},${r.getTime()}`}}},93470(e,t,r){const i=[252,146,31,255],s={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},o={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i};r.d(t,["Cb",0,s,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,i,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,o])},26121(e,t,r){r.d(t,{I6:()=>p,ci:()=>u,dL:()=>a,wN:()=>d});var i=r(49186),s=r(84952),o=r(77548),n=r(20655),l=r(59923);async function a(e){let t=[];for(let r of e.allLayers)if("beforeSave"in r&&"function"==typeof r.beforeSave){let e=r.beforeSave();e&&t.push(e)}await Promise.allSettled(t)}function u(e,t,r){let s=(e.messages??[]).filter(({type:e})=>"error"===e).map(({name:e,message:t,details:r})=>new i.A(e,t,r));if(e.blockedRelativeUrls&&(s=s.concat(e.blockedRelativeUrls.map(e=>(0,l.GL)("url",`Relative url '${e}' is not supported`)))),r){let{ignoreUnsupported:e,supplementalUnsupportedErrors:t=[],requiredPropertyChecksDisabled:i}=r;e&&(s=s.filter(({name:e})=>!(l.MG.has(e)||t.includes(e)))),i&&(s=s.filter(e=>"web-document-write:property-required"!==e.name))}if(s.length>0)throw new i.A(t.errorName,"Failed to save due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:s})}function p(e){return(0,o.qd)(e).some(e=>!!e.charts?.length)}function d(e,t){let r=t?.portal,i=e?.id&&(e.portal||n.A.getDefault());return!!r&&!!i&&!(0,s.ut)(i.restUrl,r.restUrl)}}}]);
@@ -1 +0,0 @@
1
- "use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[6874],{66344(e,t,i){i.d(t,{q:()=>o});const r=!!(0,i(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class s{get size(){return this._size}constructor(e=10485760,t=.3){this._maxSize=e,this._maxClientSizeRatio=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._clients=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._clients.clear(),this._db.clear()}register(e){this._clients.set(e.id.slice(0,-1),e)}deregister(e){this.clear(e),this._sizeLimits.delete(e),this._clients.delete(e.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,-1),this._checkSize()}get _maxClientSize(){return this._maxSize*this._maxClientSizeRatio}getSize(e,t){return this._db.get(e.id+t)?.size??0}put(e,t,i,s,a){t=e.id+t;let o=this._db.get(t);if(o&&(this._size-=o.size,e.size-=o.size,this._db.delete(t),o.entry!==i&&this._notifyRemove(t,o.entry,o.size,0)),s>this._maxSize)return void this._notifyRemove(t,i,s,0);if(void 0===i)return void console.warn("Refusing to cache undefined entry ");if(!s||s<0)return r||console.warn(`Refusing to cache entry with size ${s} for key ${t}`),void this._notifyRemove(t,i,0,0);let n=1+Math.max(a,-4)- -3;this._db.set(t,new l(i,s,n)),this._size+=s,e.size+=s,this._checkSize()}updateSize(e,t){t=e.id+t;let i=this._db.get(t);if(!i)return;this._size-=i.size,e.size-=i.size;let r=i.entry.usedMemory;for(;r>this._maxSize;){let e=this._notifyRemove(t,i.entry,r,1);if(!(null!=e&&e>0))return void this._db.delete(t);r=e}i.size=r,this._size+=r,e.size+=r,this._checkSize()}pop(e,t){t=e.id+t;let i=this._db.get(t);if(i)return this._size-=i.size,e.size-=i.size,this._db.delete(t),++this._hit,i.entry;++this._miss}get(e,t){t=e.id+t;let i=this._db.get(t);if(void 0!==i)return this._db.delete(t),i.lives=i.lifetime,this._db.set(t,i),++this._hit,i.entry;++this._miss}peek(e,t){let i=this._db.get(e.id+t);return i?++this._hit:++this._miss,i?.entry}get performanceInfo(){let e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},i=[];this._db.forEach((e,r)=>{let s=e.lifetime;i[s]=(i[s]||0)+e.size,this._clients.forEach(i=>{let{id:s,name:l}=i;if(r.startsWith(s)){let i=t[l]||0;t[l]=i+e.size}})});let r={};this._clients.forEach(e=>{let i=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){let s=t[i]||0;t[i]=s,r[i]=Math.round(100*e.hitRate)+"%"}else r[i]="0%"});let s=Object.keys(t);s.sort((e,i)=>t[i]-t[e]),s.forEach(i=>e[i]=Math.round(t[i]/2**20)+"MB / "+r[i]);for(let t=i.length-1;t>=0;--t){let r=i[t];r&&(e["Priority "+(t+-3-1)]=Math.round(r/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._clients.forEach(e=>e.resetHitRate())}clear(e){let t=e.id;this._db.forEach((e,i)=>{i.startsWith(t)&&(this._size-=e.size,this._db.delete(i),this._notifyRemove(i,e.entry,e.size,0))}),e.size=0}clearAll(){this._db.forEach((e,t)=>this._notifyRemove(t,e.entry,e.size,0)),this._clients.forEach(e=>e.size=0),this._size=0,this._db.clear()}*values(e){for(let[t,i]of this._db)t.startsWith(e.id)&&(yield i.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,i,r){let s=(0,this._clients.get(e.split(a)[0])?.removeFunc)?.(t,r,i);return"number"==typeof s?s:null}_checkSize(){this._sizeLimits.forEach((e,t)=>this._checkSizeLimits(e,t)),this._clients.forEach(e=>this._checkSizeLimits(this._maxClientSize,e)),this._checkSizeLimits(this.maxSize)}setMaxClientSize(e,t){null==t||t<=0?this._sizeLimits.delete(e):this._sizeLimits.set(e,t)}_checkSizeLimits(e,t){let i=t??this;if(i.size<=e)return;let r=t?.id,s=!0;for(;s;){s=!1;for(let[l,o]of this._db)if(0===o.lifetime&&(!r||l.startsWith(r))){let r=t??this._clients.get(l.split(a)[0]);if(this._purgeItem(l,o,r),i.size<=.9*e)return;s||=this._db.has(l)}}for(let[s,l]of this._db)if(!r||s.startsWith(r)){let r=t??this._clients.get(s.split(a)[0]);if(this._purgeItem(s,l,r),i.size<=.9*e)return}}_purgeItem(e,t,i){if(this._db.delete(e),t.lives<=1){this._size-=t.size,i&&(i.size-=t.size);let r=this._notifyRemove(e,t.entry,t.size,1);null!=r&&r>0&&(this._size+=r,i&&(i.size+=r),t.lives=t.lifetime,t.size=r,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}new s(0);class l{constructor(e,t,i){this.entry=e,this.size=t,this.lifetime=i,this.lives=i}}const a=":";class o{constructor(e,t){this.removeFunc=t,this.id=":",this.name="",this.size=0,this._storage=new s(e,1),this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(e,t,i=1){this._storage.put(this,e,t,i,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}},60999(e,t,i){i.d(t,{DZ:()=>f,Ke:()=>p,QA:()=>g,Tj:()=>u,UT:()=>y,aD:()=>v,jJ:()=>h});var r=i(32198),s=i(56372),l=i(10107),a=i(64108),o=i(97768),n=i(17676);function h(e,t,i){return(0,n.Lx)(e.map((e,r)=>t.apply(i,[e,r])))}async function u(e,t,i){return(await(0,n.Lx)(e.map((e,r)=>t.apply(i,[e,r])))).map(e=>e.value)}function c(e){return{ok:!0,value:e}}function d(e){return{ok:!1,error:e}}async function p(e){if(null==e)return{ok:!1,error:Error("no promise provided")};try{return c(await e)}catch(e){return d(e)}}async function f(e){try{return c(await e)}catch(e){return(0,n.QP)(e),d(e)}}function g(e){if(!0===e.ok)return e.value;throw e.error}function y(e,t){return new m(e,t)}let m=class extends s.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super(),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,o.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;let{signal:i}=this._abortController;this.promise=e(i),this.promise.then(e=>{this._result=c(e),this._cleanup()},e=>{this._result=d(e),this._cleanup()}),this._abortHandle=(0,n.u7)(t,this.abort)}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,o.xt)(this._abortHandle),this._abortController=null}};(0,r.Cg)([(0,l.MZ)()],m.prototype,"value",null),(0,r.Cg)([(0,l.MZ)()],m.prototype,"error",null),(0,r.Cg)([(0,l.MZ)()],m.prototype,"finished",null),(0,r.Cg)([(0,l.MZ)()],m.prototype,"promise",void 0),(0,r.Cg)([(0,l.MZ)()],m.prototype,"_result",void 0),m=(0,r.Cg)([(0,a.$K)("esri.core.asyncUtils.ReactiveTask")],m);class v{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});let t=await e;return{[Symbol.dispose]:t}}async run(e){let t={stack:[],error:void 0,hasError:!1};try{return(0,r.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,r.hk)(t)}}}},69397(e,t,i){i.d(t,{JY:()=>p,Qf:()=>n,Qh:()=>a,lM:()=>l,ro:()=>h,rq:()=>u});var r=i(44208),s=i(34275);function l(e){if(!e)return 0;let t=c;for(let i in e)e.hasOwnProperty(i)&&(t+=o(e[i],!1));return t}function a(e){if(!e)return 0;if(Array.isArray(e))return function(e){let t=d;for(let i of e)t+=o(i);return t}(e);if(ArrayBuffer.isView(e)&&"length"in e&&"number"==typeof e.length&&e.length>0)return e.byteLength+f;let t=c;for(let i in e)e.hasOwnProperty(i)&&(t+=o(e[i]));return t}function o(e,t=!0){switch(typeof e){case"object":return t?a(e):c;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function n(...e){return e.reduce((e,t)=>e+h(t),0)}function h(e,t=16){return e?(0,s.iu)(e)?e.byteLength+f:Array.isArray(e)?u(e,t):0:0}function u(e,t){return d+e.length*t}const c=32,d=16,p=(0,r.A)("ios")||!(0,r.A)("chrome")&&!(0,r.A)("opr")?8:4,f=145},83027(e,t,i){const r=i(29953).ho;i.d(t,["h",0,r])},35982(e,t,i){i.d(t,{B:()=>u});var r=i(4576),s=i(71511),l=i(36563),a=i(53966),o=i(97768),n=i(17676),h=i(83027);class u{constructor(e,t,i,r,s={}){this._mainMethod=t,this._transferLists=i,this._listeners=[],this._onClientConnectedHandle=null,this._destroyed=!1,this._promise=(0,h.h)(e,{...s,schedule:r}).then(e=>{null!=this._thread||this._destroyed?e.close():(this._thread=e,this._promise=null,this._onClientConnectedHandle=this._thread.onClientConnected(e=>{s.hasInitialize&&e.invoke("initialize",{}).catch(()=>{});for(let t of this._listeners)this._connectListenerToClient(t,e);this._onClientConnected(e)}))}),this._promise.catch(t=>a.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${e} worker: ${t}`))}on(e,t){let i=new c(e,t);return this._listeners.push(i),this._connectListener(i),(0,l.hA)(()=>{(0,r.TF)(this._listeners,i),i.destroy()})}[Symbol.dispose](){this.destroy()}destroy(){this._onClientConnectedHandle=(0,o.xt)(this._onClientConnectedHandle),this._thread&&=(this._thread.close(),null),this._promise=null;for(let e of this._listeners)e.destroy();this._listeners.length=0,this._transferLists={},this._destroyed=!0}invoke(e,t,i){return this.invokeMethod(this._mainMethod,e,t,i)}invokeMethod(e,t,i,r){return this._invokeMethod(e,[t],i,r)}invokeMethodWithArgs(e,t,i,r){return this._invokeMethod(e,t,i,r)}_invokeMethod(e,t,i,r){if(this._thread){let s=this._transferLists[e],l=s?s(...t):[];return this._thread.apply(e,t,{transferList:l,signal:i,jobPriority:r})}return this._promise?this._promise.then(()=>((0,n.Te)(i),this._invokeMethod(e,t,i,r))):Promise.reject((0,n.NK)())}broadcast(e,t){return this._thread?Promise.all(this._thread.broadcast(t,e)).then(d):this._promise?this._promise.then(()=>this.broadcast(e,t)):Promise.reject((0,n.NK)())}get promise(){return this._promise}_onClientConnected(e){}_connectListener(e){this._thread&&e.add(this._thread.on(e.eventName,e.callback))}_connectListenerToClient(e,t){e.add(t.on(e.eventName,e.callback))}}class c{constructor(e,t){this.eventName=e,this.callback=t,this._handles=new s.A}add(e){this._handles.add(e)}destroy(){this._handles.destroy()}}function d(){}},54239(e,t,i){i.d(t,{A:()=>m});var r,s=i(32198),l=i(91429),a=i(4576),o=i(66552),n=i(25482),h=i(86211),u=i(67076),c=i(97348),d=i(43937),p=i(36005);const f=(0,o.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),g=f.jsonValues.slice();(0,a.Xy)(g,"orthometric");const y=(0,o.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let m=r=class extends n.o{constructor(e){super(e),this.origin=0,this.associatedSpatialReference=null,this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}read(e,t){super.read(e,t),("service"===t?.origin||"web-scene"===t?.origin)&&(this.origin="service"===t.origin?2:1,this.associatedSpatialReference=null)}writeHeightModel(e,t,i){return f.write(e,t,i)}readHeightModel(e,t,i){return f.read(e)||(i?.messages&&i.messages.push(function(e,t){return new u.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:i})),null)}readHeightUnit(e,t,i){return y.read(e)||(i?.messages&&i.messages.push(v(e,{context:i})),null)}readHeightUnitService(e,t,i){return(0,h.LA)(e)||y.read(e)||(i?.messages&&i.messages.push(v(e,{context:i})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new r({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS,origin:this.origin,associatedSpatialReference:this.associatedSpatialReference})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static fromSpatialReference(e){let{latestVcsWkid:t,vcsWkid:i}=e;if(!i)return null;let s=(null==t?null:c.B.get(t))??c.B.get(i);return s?new r({heightModel:0===s.type?"gravity-related-height":"ellipsoidal",heightUnit:(0,h.LA)(s.unit.name),vertCRS:s.datum,origin:3,associatedSpatialReference:e}):null}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;let t=new r;return t.read(e,{origin:"web-scene"}),t}};function v(e,t){return new u.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,s.Cg)([(0,l.MZ)()],m.prototype,"origin",void 0),(0,s.Cg)([(0,l.MZ)()],m.prototype,"associatedSpatialReference",void 0),(0,s.Cg)([(0,l.MZ)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g,default:"ellipsoidal",write:{isRequired:!0,alwaysWriteDefaults:!0}}}}})],m.prototype,"heightModel",void 0),(0,s.Cg)([(0,d.K)("web-scene","heightModel")],m.prototype,"writeHeightModel",null),(0,s.Cg)([(0,p.w)(["web-scene","service"],"heightModel")],m.prototype,"readHeightModel",null),(0,s.Cg)([(0,l.MZ)({type:y.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:y.jsonValues,write:{writer:y.write,isRequired:!0}}}}})],m.prototype,"heightUnit",void 0),(0,s.Cg)([(0,p.w)("web-scene","heightUnit")],m.prototype,"readHeightUnit",null),(0,s.Cg)([(0,p.w)("service","heightUnit")],m.prototype,"readHeightUnitService",null),(0,s.Cg)([(0,l.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],m.prototype,"vertCRS",void 0),(0,s.Cg)([(0,p.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],m.prototype,"readVertCRS",null),m=r=(0,s.Cg)([(0,l.$K)("esri.geometry.HeightModelInfo")],m)},38732(e,t,i){i.r(t),i.d(t,{default:()=>S});var r=i(32198),s=i(91429),l=i(49186),a=i(97768),o=i(25728),n=i(17676),h=i(84952),u=i(78888),c=i(4146),d=i(89186),p=i(18768),f=i(85707),g=i(34287),y=i(8303),m=i(10873),v=i(87378),_=i(35982);class w extends _.B{constructor(e=null){super("LercWorker","_decode",{_decode:e=>[e.buffer]},e,{strategy:"dedicated"}),this.schedule=e,this.ref=0}decode(e,t,i){return e&&0!==e.byteLength?this.invoke({buffer:e,options:t},i):Promise.resolve(null)}release(){--this.ref<=0&&(b.forEach((e,t)=>{e===this&&b.delete(t)}),this.destroy())}}const b=new Map;var C=i(36005);let M=class extends((0,f.a)((0,d.f)((0,p.b)((0,g.q)((0,y.A)((0,o.M)(c.A))))))){constructor(e){super(e),this.capabilities={operations:{supportsTileMap:!1}},this.copyright=null,this.path=null,this.minScale=void 0,this.maxScale=void 0,this.opacity=1,this.operationalLayerType="ArcGISTiledElevationServiceLayer",this.sourceJSON=null,this.type="elevation",this.url=null,this.version=null,this._lercDecoder=function(e=null){let t=b.get(e);return t||(null==e?(t=new w,b.set(null,t)):(t=new w(t=>e.immediate.schedule(t)),b.set(e,t))),++t.ref,t}()}destroy(){this._lercDecoder=(0,a.Gz)(this._lercDecoder)}readCapabilities(e,t){let i=t.capabilities&&t.capabilities.split(",").map(e=>e.toLowerCase().trim());return i?{operations:{supportsTileMap:i.includes("tilemap")}}:{operations:{supportsTileMap:!1}}}get memoizedElevationQueryDependencies(){return[this.loadStatus,this.tileInfo,this.fullExtent,this.spatialReference]}readVersion(e,t){let i=t.currentVersion;return i||=9.3,i}load(e){let t=null==e?null:e.signal;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"],supportsData:!1,validateItem:e=>{if(e.typeKeywords)for(let t=0;t<e.typeKeywords.length;t++)if("elevation 3d layer"===e.typeKeywords[t].toLowerCase())return!0;throw new l.A("portal:invalid-layer-item-type","Invalid layer item type '${type}', expected '${expectedType}' ",{type:"Image Service",expectedType:"Image Service Elevation 3D Layer"})}},e).catch(n.QP).then(()=>this._fetchImageService(t))),Promise.resolve(this)}async fetchTile(e,t,i,r){let s=r?.signal,a={responseType:"array-buffer",signal:s,useQueue:r?.useQueue,priority:r?.priority},o={noDataValue:r?.noDataValue};await this.load(),await this._fetchTileAvailability(e,t,i,r);let n=await(0,u.A)(this.getTileUrl(e,t,i),a),h=await this._lercDecoder.decode(n.data,o,s);if(!h)throw new l.A("elevation-layer:tile-decode-failed","Failed to decode elevation tile data.");return new v.A({values:h.pixelData,width:h.width,height:h.height,noDataValue:h.noDataValue})}getTileUrl(e,t,i){let r=!this.capabilities.operations.supportsTileMap&&this.supportsBlankTile,s=(0,h.x0)({...this.parsedUrl.query,blankTile:!r&&null});return`${this.parsedUrl.path}/tile/${e}/${t}/${i}${s?"?"+s:""}`}async queryElevation(e,t){let{query:r}=await i.e(4943).then(()=>i(54943));return(0,n.Te)(t),r(this,e,t)}async queryElevationForGround(e,t){let{queryElevationFromTiles:r}=await i.e(4943).then(()=>i(54943));return r(this,e,t)}async createElevationSampler(e,t){let{createSampler:r}=await i.e(4943).then(()=>i(54943));return(0,n.Te)(t),r(this,e,t)}_fetchTileAvailability(e,t,i,r){return this.tilemapCache?this.tilemapCache.fetchAvailability(e,t,i,r):Promise.resolve("unknown")}async _fetchImageService(e){if(this.sourceJSON)return this.sourceJSON;let t={query:{f:"json",...this.parsedUrl.query},responseType:"json",signal:e},i=await(0,u.A)(this.parsedUrl.path,t);i.ssl&&(this.url=this.url?.replace(/^http:/i,"https:")),this.sourceJSON=i.data,this.read(i.data,{origin:"service",url:this.parsedUrl})}get hasOverriddenFetchTile(){return!this.fetchTile[A]}};(0,r.Cg)([(0,s.MZ)({readOnly:!0})],M.prototype,"capabilities",void 0),(0,r.Cg)([(0,C.w)("service","capabilities",["capabilities"])],M.prototype,"readCapabilities",null),(0,r.Cg)([(0,s.MZ)({json:{read:{source:"copyrightText"}}})],M.prototype,"copyright",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],M.prototype,"path",void 0),(0,r.Cg)([(0,s.MZ)({type:["show","hide"]})],M.prototype,"listMode",void 0),(0,r.Cg)([(0,s.MZ)({json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}},readOnly:!0})],M.prototype,"minScale",void 0),(0,r.Cg)([(0,s.MZ)({json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}},readOnly:!0})],M.prototype,"maxScale",void 0),(0,r.Cg)([(0,s.MZ)({json:{read:!1,write:!1,origins:{"web-document":{read:!1,write:!1}}}})],M.prototype,"opacity",void 0),(0,r.Cg)([(0,s.MZ)({type:["ArcGISTiledElevationServiceLayer"]})],M.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,s.MZ)()],M.prototype,"sourceJSON",void 0),(0,r.Cg)([(0,s.MZ)({json:{read:!1},value:"elevation",readOnly:!0})],M.prototype,"type",void 0),(0,r.Cg)([(0,s.MZ)()],M.prototype,"memoizedElevationQueryDependencies",null),(0,r.Cg)([(0,s.MZ)(m.OZ)],M.prototype,"url",void 0),(0,r.Cg)([(0,s.MZ)()],M.prototype,"version",void 0),(0,r.Cg)([(0,C.w)("version",["currentVersion"])],M.prototype,"readVersion",null),M=(0,r.Cg)([(0,s.$K)("esri.layers.ElevationLayer")],M);const A=Symbol("default-fetch-tile");M.prototype.fetchTile[A]=!0;const S=M},89186(e,t,i){var r=i(32198),s=i(91429),l=i(16930),a=i(87045),o=i(65509),n=i(25943),h=i(36005);i.d(t,["f",0,e=>{let t=e,i=class extends t{constructor(){super(...arguments),this.copyright=null,this.minScale=0,this.maxScale=0,this.spatialReference=null,this.tileInfo=null,this.tilemapCache=null}destroy(){this.tilemapCache?.destroy?.()}readMinScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}readMaxScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}get supportsBlankTile(){return this.version>=10.2}readTilemapCache(e,t,i){let r=t.capabilities?.toLowerCase().includes("tilemap"),{minLOD:s,maxLOD:l,minScale:h,maxScale:u}=t;if(null==s&&null==l&&(0!==h||0!==u)){let e=e=>Math.round(1e4*e)/1e4;h=e(h||t.tileInfo.lods[0].scale),u=e(u||t.tileInfo.lods[t.tileInfo.lods.length-1].scale);for(let i of t.tileInfo.lods){let t=e(i.scale);s=t>=h?i.level:s,l=t>=u?i.level:l}}if(r)return new n.d({layer:this,minLOD:s,maxLOD:l});if(t.tileInfo){let e=new a.A;return e.read(t.tileInfo,i),new o.A(e,s,l)}return null}};return(0,r.Cg)([(0,s.MZ)({json:{read:{source:"copyrightText"}}})],i.prototype,"copyright",void 0),(0,r.Cg)([(0,s.MZ)()],i.prototype,"minScale",void 0),(0,r.Cg)([(0,h.w)("service","minScale")],i.prototype,"readMinScale",null),(0,r.Cg)([(0,s.MZ)()],i.prototype,"maxScale",void 0),(0,r.Cg)([(0,h.w)("service","maxScale")],i.prototype,"readMaxScale",null),(0,r.Cg)([(0,s.MZ)({type:l.A})],i.prototype,"spatialReference",void 0),(0,r.Cg)([(0,s.MZ)({readOnly:!0})],i.prototype,"supportsBlankTile",null),(0,r.Cg)([(0,s.MZ)({type:a.A})],i.prototype,"tileInfo",void 0),(0,r.Cg)([(0,s.MZ)()],i.prototype,"tilemapCache",void 0),(0,r.Cg)([(0,h.w)("service","tilemapCache",["capabilities","tileInfo"])],i.prototype,"readTilemapCache",null),(0,r.Cg)([(0,s.MZ)()],i.prototype,"version",void 0),i=(0,r.Cg)([(0,s.$K)("esri.layers.mixins.ArcGISCachedService")],i),i}])},18768(e,t,i){var r=i(32198),s=i(91429),l=i(53966),a=i(60694);i.d(t,["b",0,e=>{let t=e,i=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){let e=(0,a.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,a.Jf)(e,l.A.getLogger(this)))}};return(0,r.Cg)([(0,s.MZ)()],i.prototype,"title",null),(0,r.Cg)([(0,s.MZ)({type:String})],i.prototype,"url",null),i=(0,r.Cg)([(0,s.$K)("esri.layers.mixins.ArcGISService")],i),i}])},85707(e,t,i){var r=i(32198),s=i(91429),l=i(54239);i.d(t,["a",0,e=>{let t=e,i=class extends t{constructor(){super(...arguments),this.heightModelInfo=null}read(e,t){super.read(e,t),"service"===t?.origin&&2===this.heightModelInfo?.origin&&(this.heightModelInfo.associatedSpatialReference=this.getAtOrigin("spatialReference","service"))}};return(0,r.Cg)([(0,s.MZ)({readOnly:!0,type:l.A})],i.prototype,"heightModelInfo",void 0),i=(0,r.Cg)([(0,s.$K)("esri.layers.mixins.HeightModelInfoMixin")],i),i}])},8303(e,t,i){var r=i(32198),s=i(92602),l=i(91429),a=i(60999),o=i(49186),n=i(36563),h=i(53966),u=i(97768),c=i(17676),d=i(84952),p=i(70333),f=i(20655),g=i(80812),y=i(41318),m=i(10407),v=i(78888),_=i(26121),w=i(77548),b=i(36005),C=i(43937);const M={credential:null,user:null};i.d(t,["A",0,e=>{let t=e,A=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){super.destroy(),this.portalItem=(0,u.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,i){if(t.itemId)return new g.default({id:t.itemId,portal:i?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{let{load:r}=await i.e(1204).then(()=>i(41204));return(0,c.Te)(t),await r({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,c.zf)(e)||h.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async reloadFromPortal(e,t){if(!this.loaded||!this.portalItem?.id)return!1;let r=t?.signal?null:new AbortController;try{let{reload:s}=await i.e(1204).then(()=>i(41204));return r&&this.addHandles((0,n.rE)(r),"reloadFromPortal"),await s({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t?.signal?t:{signal:r.signal})}catch(e){throw(0,c.zf)(e)||h.A.getLogger(this).warn(`Failed to reload layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}finally{r&&this.removeHandles("reloadFromPortal")}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,c.QP)(e),!0)))}async setUserPrivileges(e,t){if(!s.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{let{features:{edit:i,fullEdit:r},content:{updateItem:s}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",i),this._set("userHasFullEditingPrivileges",r),this._set("userHasUpdateItemPrivileges",s)}catch(e){(0,c.QP)(e)}}async _fetchUserPrivileges(e,t){let i=this.portalItem;if(!e||!i||!i.loaded||i.sourceUrl)return this._fetchFallbackUserPrivileges(t);let r,s,l=!p.id?.findCredential(this.url),a=e===i.id;if(a&&i.portal.user)return this._getUserPrivileges(i,l);if(a)r=i.portal.url;else try{r=await(0,w.wI)(this.url,t)}catch(e){(0,c.QP)(e)}if(!r||!(0,d.b8)(r,i.portal.url))return this._fetchFallbackUserPrivileges(t);try{let e=null==t?null:t.signal;s=await(p.id?.getCredential(`${r}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,c.QP)(e)}if(!s)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(a?await i.reload():(i=new g.default({id:e,portal:{url:r}}),await i.load(t)),i.portal.user)return this._getUserPrivileges(i,l)}catch(e){(0,c.QP)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}_getUserPrivileges(e,t){let i=(0,m.It)(e);return t&&(i.features.edit=!0),i}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,c.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){let t=this.url?p.id?.findCredential(this.url):null;if(!t)return!0;let i=M.credential===t?M.user:await this._fetchEditingUser(e);return M.credential=t,M.user=i,null==i?.privileges||i.privileges.includes("features:user:edit")}async _fetchEditingUser(e){let t=this.portalItem?.portal?.user;if(t)return t;let i=p.id?.findServerInfo(this.url??"");if(!i?.owningSystemUrl)return null;let r=`${i.owningSystemUrl}/sharing/rest`,s=f.A.getDefault();if(s&&s.loaded&&(0,d.S8)(s.restUrl)===(0,d.S8)(r))return s.user;let l=`${r}/community/self`,o=null==e?null:e.signal,n=await(0,a.Ke)((0,v.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:o}));return n.ok?y.A.fromJSON(n.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){return(0,_.wN)(this.portalItem,t)?(t?.messages?.push(new o.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,r.Cg)([(0,l.MZ)({type:g.default})],A.prototype,"portalItem",null),(0,r.Cg)([(0,b.w)("web-document","portalItem",["itemId"])],A.prototype,"readPortalItem",null),(0,r.Cg)([(0,C.K)("web-document","portalItem",{itemId:{type:String}})],A.prototype,"writePortalItem",null),(0,r.Cg)([(0,l.MZ)({clonable:!1})],A.prototype,"resourceReferences",void 0),(0,r.Cg)([(0,l.MZ)({type:Boolean,readOnly:!0})],A.prototype,"userHasEditingPrivileges",void 0),(0,r.Cg)([(0,l.MZ)({type:Boolean,readOnly:!0})],A.prototype,"userHasFullEditingPrivileges",void 0),(0,r.Cg)([(0,l.MZ)({type:Boolean,readOnly:!0})],A.prototype,"userHasUpdateItemPrivileges",void 0),A=(0,r.Cg)([(0,l.$K)("esri.layers.mixins.PortalLayer")],A),A}])},87378(e,t,i){i.d(t,{A:()=>o});var r,s=i(56507),l=i(34275);const a=Symbol("ElevationTileDataClass");class o{static{r=a}constructor({values:e,width:t,height:i,noDataValue:s}){this[r]=!0,this._hasNoDataValues=null,this._minValue=null,this._maxValue=null,this.values=(0,l.vZ)(e)?e:new Float32Array(e),this.width=t,this.height=i,this.noDataValue=s}get hasNoDataValues(){if(null==this._hasNoDataValues){let e=this.noDataValue;this._hasNoDataValues=this.values.includes(e)}return this._hasNoDataValues}get minValue(){return this._ensureBounds(),this._minValue}get maxValue(){return this._ensureBounds(),this._maxValue}get usedMemory(){return this.values.byteLength+256}_ensureBounds(){if(null!=this._minValue)return;let{noDataValue:e,values:t}=this,i=1/0,r=-1/0,s=!0;for(let l of t)l===e?this._hasNoDataValues=!0:(i=l<i?l:i,r=l>r?l:r,s=!1);s?(this._minValue=0,this._maxValue=0):(this._minValue=i,this._maxValue=r>-3e38?r:0)}static{this.from=(0,s.qf)(o)}}},91806(e,t,i){i.d(t,{A:()=>n});var r,s=i(32198),l=i(91429),a=i(56507),o=i(25482);let n=class extends o.o{static{r=this}constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new r({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,s.Cg)([(0,l.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],n.prototype,"cols",void 0),(0,s.Cg)([(0,l.MZ)({type:a.jz,json:{write:!0}})],n.prototype,"level",void 0),(0,s.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],n.prototype,"levelValue",void 0),(0,s.Cg)([(0,l.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],n.prototype,"origin",void 0),(0,s.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],n.prototype,"resolution",void 0),(0,s.Cg)([(0,l.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],n.prototype,"rows",void 0),(0,s.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],n.prototype,"scale",void 0),n=r=(0,s.Cg)([(0,l.$K)("esri.layers.support.LOD")],n)},87045(e,t,i){i.d(t,{A:()=>_});var r,s=i(32198),l=i(91429),a=i(56507),o=i(66552),n=i(25482),h=i(86211),u=i(86738),c=i(16930),d=i(21325),p=i(28735),f=i(91806),g=i(72802),y=i(36005),m=i(43937);const v=new o.J({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",JPEGPlus:"jpgplus",pbf:"pbf"});let _=class extends n.o{static{r=this}static create(e={}){let{resolutionFactor:t=1,scales:i,size:s=256,spatialReference:l=c.A.WebMercator,numLODs:a=24}=e;if(!(0,d.fn)(l)){let e=[];if(i)for(let t=0;t<i.length;t++){let r=i[t];e.push(new f.A({level:t,scale:r,resolution:r}))}else{let t=5e-4;for(let i=a-1;i>=0;i--)e.unshift(new f.A({level:i,scale:t,resolution:t})),t*=2}return new r({dpi:96,lods:e,origin:new u.A({x:0,y:0,spatialReference:l}),size:[s,s],spatialReference:l})}let o=(0,d.Vp)(l),n=e.origin?new u.A({x:e.origin.x,y:e.origin.y,spatialReference:l}):o?new u.A({x:o.origin[0],y:o.origin[1],spatialReference:l}):new u.A({x:0,y:0,spatialReference:l}),p=1/(39.37*(0,h.GA)(l)*96),g=[];if(i)for(let e=0;e<i.length;e++){let t=i[e],r=t*p;g.push(new f.A({level:e,scale:t,resolution:r}))}else{let e=(0,d.EA)(l)?512/s*591657527.5917094:256/s*591657527.591555,i=Math.ceil(a/t);g.push(new f.A({level:0,scale:e,resolution:e*p}));for(let r=1;r<i;r++){let i=e/2**t,s=i*p;g.push(new f.A({level:r,scale:i,resolution:s})),e=i}}return new r({dpi:96,lods:g,origin:n,size:[s,s],spatialReference:l})}constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){let{spatialReference:e,origin:t}=this;if(e&&t){let i=(0,d.Vp)(e);return e.isWrappable&&!!i&&Math.abs(i.origin[0]-t.x)<=i.dx}return!1}readOrigin(e,t){return u.A.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,i=0,r=[],s=this._levelToLOD={};e&&(t=-1/0,i=1/0,e.forEach(e=>{r.push(e.scale),t=e.scale>t?e.scale:t,i=e.scale<i?e.scale:i,s[e.level]=e})),this._set("scales",r),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){let t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];let i=Math.floor(e),r=i+1;return t[i]/(t[i]/t[r])**(e-i)}scaleToZoom(e){let t=this.scales,i=t.length-1,r=0;for(;r<i;r++){let i=t[r],s=t[r+1];if(i<=e)return r;if(s===e)return r+1;if(i>e&&s<e)return r+Math.log(i/e)/Math.log(i/s)}return r}tileAt(e,t,i,r){let s,l,a=this.lodAt(e);if(!a)return null;if("number"==typeof t)s=t,l=i;else if((0,d.aI)(t.spatialReference,this.spatialReference))s=t.x,l=t.y,r=i;else{let e=(0,p.y)(t,this.spatialReference);if(null==e)return null;s=e.x,l=e.y,r=i}let o=a.resolution*this.size[0],n=a.resolution*this.size[1];return r??=new g.U(0,0,0),r.level=e,r.row=Math.floor((this.origin.y-l)/n+.001),r.col=Math.floor((s-this.origin.x)/o+.001),this.updateTileInfo(r),r}updateTileInfo(e,t=0){if(!("extent"in e))return!1;let i=this.lodAt(e.level);if(!i&&1===t){let t=this.lods[this.lods.length-1];t.level<e.level&&(i=t)}if(!i)return!1;let r=e.level-i.level,s=i.resolution*this.size[0]/2**r,l=i.resolution*this.size[1]/2**r;return e.extent[0]=this.origin.x+e.col*s,e.extent[1]=this.origin.y-(e.row+1)*l,e.extent[2]=e.extent[0]+s,e.extent[3]=e.extent[1]+l,!0}upsampleTile(e){let t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){let i=this.lodAt(t.level);if(null==i)return null;let{resolution:r}=i,s=r*this.size[0],l=r*this.size[1];return e[0]=this.origin.x+t.col*s,e[1]=this.origin.y-(t.row+1)*l,e[2]=e[0]+s,e[3]=e[1]+l,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return r.fromJSON(this.write({}))}getCompatibleForVTL(e){if(this.size[0]!==this.size[1]||256===this.size[0]&&512===e)return null;let t=(512===this.size[0]&&256===e?-1:0)+ +!!this.spatialReference.isGeographic;if(this.size[0]===e&&0===t)return this;let i=[],s=this.lods.length-t;for(let e=0;e<s;e++){let r=e+t,{scale:s,resolution:l}=r>=0?this.lods[r]:{scale:2*this.lods[0].scale,resolution:2*this.lods[0].resolution};i.push(new f.A({level:e,scale:s,resolution:l}))}return new r({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:i})}_initializeUpsampleLevels(){let e=this.lods;this._upsampleLevels=[];let t=null;for(let i=0;i<e.length;i++){let r=e[i];this._upsampleLevels[r.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/r.resolution:0},t=r}}};(0,s.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],_.prototype,"compressionQuality",void 0),(0,s.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],_.prototype,"dpi",void 0),(0,s.Cg)([(0,l.MZ)({type:String,json:{read:v.read,write:v.write,origins:{"web-scene":{read:!1,write:!1}}}})],_.prototype,"format",void 0),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],_.prototype,"isWrappable",null),(0,s.Cg)([(0,l.MZ)({type:u.A,json:{write:!0}})],_.prototype,"origin",void 0),(0,s.Cg)([(0,y.w)("origin")],_.prototype,"readOrigin",null),(0,s.Cg)([(0,l.MZ)({type:[f.A],value:null,json:{write:!0}})],_.prototype,"lods",null),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],_.prototype,"scales",void 0),(0,s.Cg)([(0,l.MZ)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],_.prototype,"size",void 0),(0,s.Cg)([(0,y.w)("size",["rows","cols"])],_.prototype,"readSize",null),(0,s.Cg)([(0,m.K)("size",{cols:{type:a.jz},rows:{type:a.jz}})],_.prototype,"writeSize",null),(0,s.Cg)([(0,l.MZ)({type:c.A,json:{write:!0}})],_.prototype,"spatialReference",void 0),_=r=(0,s.Cg)([(0,l.$K)("esri.layers.support.TileInfo")],_)},65509(e,t,i){i.d(t,{A:()=>l});var r=i(49186),s=i(17676);class l{constructor(e,t=0,i=e.lods[e.lods.length-1].level){this.tileInfo=e,this.minLOD=t,this.maxLOD=i,e.lodAt(t)||(this.minLOD=e.lods[0].level),e.lodAt(i)||(this.maxLOD=e.lods[e.lods.length-1].level)}get effectiveMinLOD(){return this.minLOD??this.tileInfo.lods[0].level}get effectiveMaxLOD(){return this.maxLOD??this.tileInfo.lods[this.tileInfo.lods.length-1].level}getAvailability(e,t,i){let r=this.tileInfo?.lodAt(e);return!r||e<this.minLOD||e>this.maxLOD?"unavailable":r.cols&&r.rows?i>=r.cols[0]&&i<=r.cols[1]&&t>=r.rows[0]&&t<=r.rows[1]?"unknown":"unavailable":"unknown"}async fetchAvailability(e,t,i,l){await(0,s.NO)(l);let a=this.getAvailability(e,t,i);if("unavailable"===a)throw new r.A("tile-map:tile-unavailable","Tile is not available",{level:e,row:t,col:i});return a}async fetchAvailabilityUpsample(e,t,i,r,l){await(0,s.NO)(l),r.level=e,r.row=t,r.col=i;let a=this.tileInfo;return a.updateTileInfo(r),this.fetchAvailability(e,t,i,l).catch(e=>{if((0,s.zf)(e))throw e;if(a.upsampleTile(r))return this.fetchAvailabilityUpsample(r.level,r.row,r.col,r,l);throw e})}}},72802(e,t,i){i.d(t,{U:()=>s});var r=i(19419);class s{constructor(e,t,i,s=(0,r.vt)()){this._level=e,this._row=t,this._col=i,this.extent=s}get id(){return this._id??=`${this.level}/${this.row}/${this.col}`,this._id}get level(){return this._level}set level(e){this._level=e,this._id=null}get row(){return this._row}set row(e){this._row=e,this._id=null}get col(){return this._col}set col(e){this._col=e,this._id=null}toJSON(){return{level:this._level,row:this._row,col:this._col,extent:this.extent}}static fromJSON(e){return new s(e.level,e.row,e.col,e.extent)}}},25943(e,t,i){i.d(t,{d:()=>C});var r,s=i(32198),l=i(56372),a=i(91429),o=i(49186),n=i(36563),h=(i(44208),i(66344)),u=i(15142),c=i(17676),d=i(36708),p=i(76030),f=i(84952),g=i(78888),y=i(72802),m=i(4718),v=i(69397);class _{constructor(e){!function(e){if(!e?.location)throw new o.A("tilemap:missing-location","Location missing from tilemap response");if(!1===e.valid)throw new o.A("tilemap:invalid","Tilemap response was marked as invalid");if(!e.data)throw new o.A("tilemap:missing-data","Data missing from tilemap response");if(!Array.isArray(e.data))throw new o.A("tilemap:data-mismatch","Data must be an array of numbers");if(e.data.length!==e.location.width*e.location.height)throw new o.A("tilemap:data-mismatch","Number of data items does not match width/height of tilemap")}(e);let{location:t,data:i}=e;this.location=Object.freeze((0,m.o8)(t));let r=this.location.width,s=this.location.height,l=!0,a=!0,n=function(e,t=!1){return e<=1024?t?Array(e).fill(0):Array(e):new Uint32Array(e)}(Math.ceil(r*s/32)),h=0;for(let e=0;e<i.length;e++){let t=e%32;i[e]?(a=!1,n[h]|=1<<t):l=!1,31===t&&++h}a?(this._availability="unavailable",this.byteSize=40):l?(this._availability="available",this.byteSize=40):(this._availability=n,this.byteSize=40+(0,v.Qf)(n))}getAvailability(e,t){if("unavailable"===this._availability||"available"===this._availability)return this._availability;let i=(e-this.location.top)*this.location.width+(t-this.location.left),r=i%32,s=i>>5,l=this._availability;return s<0||s>l.length?"unknown":l[s]&1<<r?"available":"unavailable"}static fromDefinition(e,t){let i=e.service.request||g.A,{row:r,col:s,width:l,height:a}=e,n={query:{f:"json"}};return t=t?{...n,...t}:n,i(function(e){let t;if(e.service.tileServers?.length){let i=e.service.tileServers;t=`${i&&i.length?i[e.row%i.length]:e.service.url}/tilemap/${e.level}/${e.row}/${e.col}/${e.width}/${e.height}`}else t=`${e.service.url}/tilemap/${e.level}/${e.row}/${e.col}/${e.width}/${e.height}`;let i=e.service.query;return i&&(t=`${t}?${i}`),t}(e),t).then(e=>e.data).catch(e=>{if(422===e?.details?.httpStatus)return{location:{top:r,left:s,width:l,height:a},valid:!0,data:Array(l*a).fill(0)};throw e}).then(e=>{if(e.location&&(e.location.top!==r||e.location.left!==s||e.location.width!==l||e.location.height!==a))throw new o.A("tilemap:location-mismatch","Tilemap response for different location than requested",{response:e,definition:{top:r,left:s,width:l,height:a}});return _.fromJSON(e)})}static fromJSON(e){return Object.freeze(new _(e))}}function w(e){return`${e.level}/${e.row}/${e.col}/${e.width}/${e.height}`}function b(e,t,i){return new o.A("tile-map:tile-unavailable","Tile is not available",{level:e,row:t,col:i})}let C=class extends l.A{static{r=this}constructor(e){super(e),this._pendingTilemapRequests={},this.request=g.A,this.size=32,this._prefetchingEnabled=!0}initialize(){this._tilemapCache=new h.q(2097152),this.addHandles((0,d.wB)(()=>{let{layer:e}=this;return[e?.parsedUrl,e?.tileServers,e?.apiKey,e?.customParameters]},()=>this._initializeTilemapDefinition(),d.Vh))}get effectiveMinLOD(){return this.minLOD??this.layer.tileInfo.lods[0].level}get effectiveMaxLOD(){return this.maxLOD??this.layer.tileInfo.lods[this.layer.tileInfo.lods.length-1].level}getAvailability(e,t,i){if(!this.layer.tileInfo.lodAt(e)||e<this.effectiveMinLOD||e>this.effectiveMaxLOD)return"unavailable";let r=this._tilemapFromCache(e,t,i,this._tmpTilemapDefinition);return r?r.getAvailability(t,i):"unknown"}fetchAvailability(e,t,i,r){return!this.layer.tileInfo.lodAt(e)||e<this.effectiveMinLOD||e>this.effectiveMaxLOD?Promise.reject(b(e,t,i)):this._fetchTilemap(e,t,i,r).catch(e=>e).then(r=>{if(r instanceof _){let s=r.getAvailability(t,i);if("unavailable"===s)throw b(e,t,i);return s}if((0,c.zf)(r))throw r;return"unknown"})}fetchAvailabilityUpsample(e,t,i,r,s){r.level=e,r.row=t,r.col=i;let l=this.layer.tileInfo;l.updateTileInfo(r);let a=this.fetchAvailability(e,t,i,s).catch(e=>{if((0,c.zf)(e))throw e;if(l.upsampleTile(r))return this.fetchAvailabilityUpsample(r.level,r.row,r.col,r,s);throw e});return this._fetchAvailabilityUpsamplePrefetch(e,t,i,s,a),a}async _fetchAvailabilityUpsamplePrefetch(e,t,i,s,l){if(!this._prefetchingEnabled)return;let a=`prefetch-${e}-${t}-${i}`;if(this.hasHandles(a))return;let o=new AbortController;l.then(()=>o.abort(),()=>o.abort());let h=!1,u=(0,n.hA)(()=>{h||(h=!0,o.abort())});if(this.addHandles(u,a),await(0,p.md)(10,o.signal).catch(()=>{}),h||(h=!0,this.removeHandles(a)),(0,c.G4)(o))return;let d=new y.U(e,t,i),f={...s,signal:o.signal},g=this.layer.tileInfo;for(let e=0;r._prefetches.length<r._maxPrefetch&&g.upsampleTile(d);++e){let e=this.fetchAvailability(d.level,d.row,d.col,f);r._prefetches.push(e);let t=()=>{r._prefetches.removeUnordered(e)};e.then(t,t)}}static{this._maxPrefetch=4}static{this._prefetches=new u.A({initialSize:r._maxPrefetch})}static cleanupTilemapCache(){this._prefetches.prune()}_fetchTilemap(e,t,i,r){if(!this.layer.tileInfo.lodAt(e)||e<this.effectiveMinLOD||e>this.effectiveMaxLOD)return Promise.reject(new o.A("tilemap-cache:level-unavailable",`Level ${e} is unavailable in the service`));let s=this._tmpTilemapDefinition,l=this._tilemapFromCache(e,t,i,s);if(l)return Promise.resolve(l);let a=r?.signal;return r={...r,signal:null},new Promise((e,t)=>{(0,c.u7)(a,()=>t((0,c.NK)()));let i=w(s),l=this._pendingTilemapRequests[i];if(!l){l=_.fromDefinition(s,r).then(e=>(this._tilemapCache.put(i,e,e.byteSize),e));let e=()=>{delete this._pendingTilemapRequests[i]};this._pendingTilemapRequests[i]=l,l.then(e,e)}l.then(e,t)})}_initializeTilemapDefinition(){if(!this.layer.parsedUrl)return;let{parsedUrl:e,apiKey:t,customParameters:i}=this.layer;this._tilemapCache.clear(),this._tmpTilemapDefinition={service:{url:e.path,query:(0,f.x0)({...e.query,...i,token:t??e.query?.token}),tileServers:this.layer.tileServers,request:this.request},width:this.size,height:this.size,level:0,row:0,col:0}}_tilemapFromCache(e,t,i,r){r.level=e,r.row=t-t%this.size,r.col=i-i%this.size;let s=w(r);return this._tilemapCache.get(s)}get test(){}};(0,s.Cg)([(0,a.MZ)({constructOnly:!0})],C.prototype,"layer",void 0),(0,s.Cg)([(0,a.MZ)({constructOnly:!0})],C.prototype,"minLOD",void 0),(0,s.Cg)([(0,a.MZ)({constructOnly:!0})],C.prototype,"maxLOD",void 0),(0,s.Cg)([(0,a.MZ)({constructOnly:!0})],C.prototype,"request",void 0),(0,s.Cg)([(0,a.MZ)({constructOnly:!0})],C.prototype,"size",void 0),C=r=(0,s.Cg)([(0,a.$K)("esri.layers.support.TilemapCache")],C)},10407(e,t,i){i.d(t,{It:()=>p,LG:()=>a,OM:()=>h,Sm:()=>u,Y:()=>o,bK:()=>n,mm:()=>d,sQ:()=>c});var r=i(99917),s=i(16930),l=i(28735);function a(e,t){if(!o(e,t)){let i=e.typeKeywords;i?i.push(t):e.typeKeywords=[t]}}function o(e,t){return!!e.typeKeywords?.includes(t)}function n(e){return o(e,d.HOSTED_SERVICE)}function h(e,t){let i=e.typeKeywords;if(i){let e=i.indexOf(t);e>-1&&i.splice(e,1)}}function u(e,t,i){i?a(e,t):h(e,t)}async function c(e){let t,i=e.clone().normalize();if(i.length>1)for(let e of i)t?e.width>t.width&&(t=e):t=e;else t=i[0];return async function(e){let t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,l.ci)(e);let i=s.A.WGS84;return await(0,r.initializeProjection)(t,i),(0,r.project)(e,i)}(t)}const d={CHARTS:"Charts",CATALOG_LAYER:"CatalogLayer",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",PARCEL_FABRIC:"ParcelFabric",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery",UTILITY_NETWORK:"UtilityNetwork"};function p(e){let{portal:t,isOrgItem:i,itemControl:r}=e,s=t.user?.privileges,l=!s||s.includes("features:user:edit"),a=!!i&&!!s?.includes("features:user:fullEdit"),o="update"===r||"admin"===r;return o?a=l=!0:a&&(l=!0),{features:{edit:l,fullEdit:a},content:{updateItem:o}}}},78553(e,t,i){i.d(t,{D:()=>l,p:()=>s});var r=i(56507);function s(e){let t=(0,r.Vr)(100*(1-e));return Math.max(0,Math.min(t,100))}function l(e){let t=1-e/100;return Math.max(0,Math.min(t,1))}},26121(e,t,i){i.d(t,{I6:()=>u,ci:()=>h,dL:()=>n,wN:()=>c});var r=i(49186),s=i(84952),l=i(77548),a=i(20655),o=i(59923);async function n(e){let t=[];for(let i of e.allLayers)if("beforeSave"in i&&"function"==typeof i.beforeSave){let e=i.beforeSave();e&&t.push(e)}await Promise.allSettled(t)}function h(e,t,i){let s=(e.messages??[]).filter(({type:e})=>"error"===e).map(({name:e,message:t,details:i})=>new r.A(e,t,i));if(e.blockedRelativeUrls&&(s=s.concat(e.blockedRelativeUrls.map(e=>(0,o.GL)("url",`Relative url '${e}' is not supported`)))),i){let{ignoreUnsupported:e,supplementalUnsupportedErrors:t=[],requiredPropertyChecksDisabled:r}=i;e&&(s=s.filter(({name:e})=>!(o.MG.has(e)||t.includes(e)))),r&&(s=s.filter(e=>"web-document-write:property-required"!==e.name))}if(s.length>0)throw new r.A(t.errorName,"Failed to save due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:s})}function u(e){return(0,l.qd)(e).some(e=>!!e.charts?.length)}function c(e,t){let i=t?.portal,r=e?.id&&(e.portal||a.A.getDefault());return!!i&&!!r&&!(0,s.ut)(r.restUrl,i.restUrl)}}}]);