@arcgis/core 5.2.0-next.128 → 5.2.0-next.129

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 (300) hide show
  1. package/applications/Components/imageryUtils.js +1 -1
  2. package/arcade/batchExec.js +1 -1
  3. package/arcade/geometry/adapters/dehydrated.js +1 -1
  4. package/assets/esri/core/workers/RemoteClient.js +1 -1
  5. package/assets/esri/core/workers/chunks/06da350b4ea25732f52b.js +1 -0
  6. package/assets/esri/core/workers/chunks/{67dcf9b873cb037b2647.js → 081c9ccaa5884c730a91.js} +1 -1
  7. package/assets/esri/core/workers/chunks/094102031cc77b20db74.js +1 -0
  8. package/assets/esri/core/workers/chunks/0b85c844af97b2fb0ba8.js +1 -0
  9. package/assets/esri/core/workers/chunks/{86d7a3ae672a51b75fcc.js → 0d44f793d3b0d33153ac.js} +1 -1
  10. package/assets/esri/core/workers/chunks/0de140199161fcd15a0c.js +1 -0
  11. package/assets/esri/core/workers/chunks/0deceece4b465f653f58.js +1 -0
  12. package/assets/esri/core/workers/chunks/111dc5653daa7f3e1001.js +1 -0
  13. package/assets/esri/core/workers/chunks/139e3da8ea081e21539e.js +1 -0
  14. package/assets/esri/core/workers/chunks/142bedebd37d747f84ba.js +1 -0
  15. package/assets/esri/core/workers/chunks/15dc28b4fa5b5110472b.js +1 -0
  16. package/assets/esri/core/workers/chunks/{dd02cc18ebebb90778c6.js → 17e2bfc7468c23e43bef.js} +1 -1
  17. package/assets/esri/core/workers/chunks/196d33f4d8e3a256ad94.js +1 -0
  18. package/assets/esri/core/workers/chunks/1a02c68de65a67ab6a67.js +1 -0
  19. package/assets/esri/core/workers/chunks/{4165eb86471ea3bbf364.js → 1aecf7106a21320e054e.js} +1 -1
  20. package/assets/esri/core/workers/chunks/1bc03b8065cbbbb06c87.js +1 -0
  21. package/assets/esri/core/workers/chunks/1beb32170d659bc43977.js +1 -0
  22. package/assets/esri/core/workers/chunks/20ee32fee219afbcfee3.js +1 -0
  23. package/assets/esri/core/workers/chunks/{9467744cb7d094a5067a.js → 21d2f5324db0b199060c.js} +1 -1
  24. package/assets/esri/core/workers/chunks/22abb9a74f6594f9db2a.js +1 -0
  25. package/assets/esri/core/workers/chunks/237795866c075880531b.js +1 -0
  26. package/assets/esri/core/workers/chunks/25e4da9c6837ab0fa585.js +1 -0
  27. package/assets/esri/core/workers/chunks/2a5fde737dc99627142e.js +1 -0
  28. package/assets/esri/core/workers/chunks/3412050ae63ff7dcaf36.js +1 -0
  29. package/assets/esri/core/workers/chunks/35316724c8d3cc39cf80.js +1 -0
  30. package/assets/esri/core/workers/chunks/354cc6cd2a56937f1747.js +1 -0
  31. package/assets/esri/core/workers/chunks/365ae479765ca9e47de4.js +1 -0
  32. package/assets/esri/core/workers/chunks/{8190fcb1dd10ad20feed.js → 36ef86701883a20dd6f6.js} +1 -1
  33. package/assets/esri/core/workers/chunks/3759e272a1d43534a190.js +1 -0
  34. package/assets/esri/core/workers/chunks/397ddcf0b8e858a17b70.js +1 -0
  35. package/assets/esri/core/workers/chunks/3a7a558e30b5cb81c801.js +1 -0
  36. package/assets/esri/core/workers/chunks/3c9405d310a1b08c901e.js +1 -0
  37. package/assets/esri/core/workers/chunks/{e10fe4c77b8dc4492092.js → 3ce53562926b05e71af5.js} +1 -1
  38. package/assets/esri/core/workers/chunks/3d174a84b785fc633a5a.js +1 -0
  39. package/assets/esri/core/workers/chunks/3d67fed3e53993c38b58.js +1 -0
  40. package/assets/esri/core/workers/chunks/42bdeeff55fb1a3f735f.js +1 -0
  41. package/assets/esri/core/workers/chunks/48f1532520b76fa7f0c2.js +1 -0
  42. package/assets/esri/core/workers/chunks/{00d9e41deecf5828975c.js → 4adc3822ed9f498f5653.js} +1 -1
  43. package/assets/esri/core/workers/chunks/{d5f0fed415b5b155d57c.js → 51741ef8225d470716fe.js} +1 -1
  44. package/assets/esri/core/workers/chunks/5191e481d0e19a7f3888.js +1 -0
  45. package/assets/esri/core/workers/chunks/{7fcee3a1b900ddc9a5e3.js → 540acf6abdee9dbd453e.js} +1 -1
  46. package/assets/esri/core/workers/chunks/{d9b63cf111035b05cd2e.js → 5484b89adc53430226d5.js} +1 -1
  47. package/assets/esri/core/workers/chunks/55361b50ecfc98db2ffb.js +1 -0
  48. package/assets/esri/core/workers/chunks/58da7c41c1bcef2f4141.js +1 -0
  49. package/assets/esri/core/workers/chunks/5979bbefb09d132c008f.js +1 -0
  50. package/assets/esri/core/workers/chunks/{84db05e872dbf35c80a2.js → 5982c6a8459c1237b298.js} +1 -1
  51. package/assets/esri/core/workers/chunks/{0a20f84b5f004a77a9f9.js → 5abfc4f447b01d6bf287.js} +1 -1
  52. package/assets/esri/core/workers/chunks/{4c0dba437de0969a5b63.js → 5b9f88194433410bad5b.js} +1 -1
  53. package/assets/esri/core/workers/chunks/5f794f4e0113d5dd50ba.js +1 -0
  54. package/assets/esri/core/workers/chunks/62a30692e2a7612bafc1.js +1 -0
  55. package/assets/esri/core/workers/chunks/62aa7daad4ca7332854e.js +1 -0
  56. package/assets/esri/core/workers/chunks/66926c3686d5ef2d4692.js +29 -0
  57. package/assets/esri/core/workers/chunks/6994ba168465b77a36af.js +1 -0
  58. package/assets/esri/core/workers/chunks/6d0c6fda9100fe89f3cb.js +1 -0
  59. package/assets/esri/core/workers/chunks/72a898894438f177cd62.js +1 -0
  60. package/assets/esri/core/workers/chunks/78d4455237120103f639.js +1 -0
  61. package/assets/esri/core/workers/chunks/7fccf53aa751cd9dae57.js +1 -0
  62. package/assets/esri/core/workers/chunks/{6267a1fe1603daa399b4.js → 81327e10200065a0ccef.js} +1 -1
  63. package/assets/esri/core/workers/chunks/84a3fbe5d85a357f4e82.js +1 -0
  64. package/assets/esri/core/workers/chunks/862479729f2d036f606b.js +1 -0
  65. package/assets/esri/core/workers/chunks/8a9aa6db11d0f643961c.js +1 -0
  66. package/assets/esri/core/workers/chunks/8dfea65341991e13ab71.js +1 -0
  67. package/assets/esri/core/workers/chunks/8e92925043dc49ed1018.js +1 -0
  68. package/assets/esri/core/workers/chunks/8f0b2b0ca239b01f44d0.js +1 -0
  69. package/assets/esri/core/workers/chunks/93a89168c18db88f60e7.js +1 -0
  70. package/assets/esri/core/workers/chunks/991c854a4459c82d4d93.js +1 -0
  71. package/assets/esri/core/workers/chunks/{f90cad9f007a11154c0d.js → 9b080d07699b56f06c5f.js} +1 -1
  72. package/assets/esri/core/workers/chunks/9cd69aa3880838a834f8.js +1 -0
  73. package/assets/esri/core/workers/chunks/{2ca49fb4590cc34a02bd.js → 9d87f38b16dda1ff7978.js} +1 -1
  74. package/assets/esri/core/workers/chunks/9fd1e5a2c0a261ed2a33.js +1 -0
  75. package/assets/esri/core/workers/chunks/a189e520da39919cdcca.js +1 -0
  76. package/assets/esri/core/workers/chunks/a3a5cb664bdb1db190dd.js +1 -0
  77. package/assets/esri/core/workers/chunks/a63c456ecf018ec06778.js +1 -0
  78. package/assets/esri/core/workers/chunks/{842f993fa60b410cb613.js → a8322a978e33c7349fdf.js} +1 -1
  79. package/assets/esri/core/workers/chunks/{f479b4a4cee4bb2e046c.js → aa96eea0899757ab38c7.js} +1 -1
  80. package/assets/esri/core/workers/chunks/ab0b2a76247dfd56b92d.js +1 -0
  81. package/assets/esri/core/workers/chunks/ab7337b076d152a8eb9e.js +1 -0
  82. package/assets/esri/core/workers/chunks/ac0de274853a42d518a1.js +1 -0
  83. package/assets/esri/core/workers/chunks/ad372e399e20d5a3262d.js +1 -0
  84. package/assets/esri/core/workers/chunks/ae75b3e5320d03dff64c.js +1 -0
  85. package/assets/esri/core/workers/chunks/ae98530d5816306216b3.js +1 -0
  86. package/assets/esri/core/workers/chunks/afc94c4b9bc007fe310f.js +1 -0
  87. package/assets/esri/core/workers/chunks/afe54923339e957b71b9.js +1 -0
  88. package/assets/esri/core/workers/chunks/bbcac00362fef5e3956d.js +1 -0
  89. package/assets/esri/core/workers/chunks/{1302bf9718747cd9fdd9.js → bcee161dd1c4781d1998.js} +1 -1
  90. package/assets/esri/core/workers/chunks/{d1f54b0079fb71a15612.js → bd231bc0624eb889ac14.js} +1 -1
  91. package/assets/esri/core/workers/chunks/c0075715fbe7bec10fc3.js +1 -0
  92. package/assets/esri/core/workers/chunks/c4e1e864fb8c119b2520.js +1 -0
  93. package/assets/esri/core/workers/chunks/c93cedf9e53da5aaa35b.js +1 -0
  94. package/assets/esri/core/workers/chunks/{2d592c935571de80a2e2.js → c9690810b198a97bc16d.js} +1 -1
  95. package/assets/esri/core/workers/chunks/cada517cc25fa37f778c.js +1 -0
  96. package/assets/esri/core/workers/chunks/cd1821bf601949674e02.js +1 -0
  97. package/assets/esri/core/workers/chunks/{1b42d163ef22e3565bb7.js → cf7b7e54cd87422ca62a.js} +1 -1
  98. package/assets/esri/core/workers/chunks/d195c57fc6de3560653d.js +1 -0
  99. package/assets/esri/core/workers/chunks/d7f830a06ded11f2fc80.js +1 -0
  100. package/assets/esri/core/workers/chunks/d877783815afd21dbe98.js +1 -0
  101. package/assets/esri/core/workers/chunks/db5181fcea96cc2ede3e.js +1 -0
  102. package/assets/esri/core/workers/chunks/{6e8187a77846239ed112.js → de28a86775235bd5d3c4.js} +2 -2
  103. package/assets/esri/core/workers/chunks/df6992416cba9539f1ed.js +1 -0
  104. package/assets/esri/core/workers/chunks/e4005d95a396e1af9ac2.js +1 -0
  105. package/assets/esri/core/workers/chunks/{668ec0bdfb2095e90c9e.js → e495697860f7207da4c7.js} +1 -1
  106. package/assets/esri/core/workers/chunks/f163502c513205c892e7.js +1 -0
  107. package/assets/esri/core/workers/chunks/f287ec0fcb611f82ebb0.js +1 -0
  108. package/assets/esri/core/workers/chunks/{37ae52c71bf9c70fbb92.js → f2d45d15d0ba2537a4eb.js} +1 -1
  109. package/assets/esri/core/workers/chunks/{d507d7d7a7282fc38e8d.js → f652d1db26fbdea1a79b.js} +1 -1
  110. package/assets/esri/core/workers/chunks/f6b38ed75baae198c19b.js +1 -0
  111. package/assets/esri/core/workers/chunks/{168b45c5d8233f23793e.js → f6cfc901267a229de7a1.js} +2 -2
  112. package/assets/esri/core/workers/chunks/f6d04d14323b926f1025.js +1 -0
  113. package/assets/esri/core/workers/chunks/f7ab606be37373312ebe.js +1 -0
  114. package/assets/esri/core/workers/chunks/{3b7dff15a0058ea29886.js → f92178ac6dc9abff304f.js} +1 -1
  115. package/assets/esri/core/workers/chunks/fc39593febef74a036f1.js +1 -0
  116. package/assets/esri/libs/librust-parquet/pkg/parquet_bg.wasm +0 -0
  117. package/assets/esri/themes/base/widgets/_BatchAttributeForm.scss +7 -0
  118. package/assets/esri/themes/dark/main.css +1 -1
  119. package/assets/esri/themes/light/main.css +1 -1
  120. package/assets/esri/themes/light/view.css +1 -1
  121. package/assets/esri/views/interactive/tooltip/t9n/messages.ar.json +1 -1
  122. package/assets/esri/views/interactive/tooltip/t9n/messages.bg.json +1 -1
  123. package/assets/esri/views/interactive/tooltip/t9n/messages.bs.json +1 -1
  124. package/assets/esri/views/interactive/tooltip/t9n/messages.ca.json +1 -1
  125. package/assets/esri/views/interactive/tooltip/t9n/messages.cs.json +1 -1
  126. package/assets/esri/views/interactive/tooltip/t9n/messages.da.json +1 -1
  127. package/assets/esri/views/interactive/tooltip/t9n/messages.de.json +1 -1
  128. package/assets/esri/views/interactive/tooltip/t9n/messages.el.json +1 -1
  129. package/assets/esri/views/interactive/tooltip/t9n/messages.es.json +1 -1
  130. package/assets/esri/views/interactive/tooltip/t9n/messages.et.json +1 -1
  131. package/assets/esri/views/interactive/tooltip/t9n/messages.fi.json +1 -1
  132. package/assets/esri/views/interactive/tooltip/t9n/messages.fr.json +1 -1
  133. package/assets/esri/views/interactive/tooltip/t9n/messages.he.json +1 -1
  134. package/assets/esri/views/interactive/tooltip/t9n/messages.hr.json +1 -1
  135. package/assets/esri/views/interactive/tooltip/t9n/messages.hu.json +1 -1
  136. package/assets/esri/views/interactive/tooltip/t9n/messages.id.json +1 -1
  137. package/assets/esri/views/interactive/tooltip/t9n/messages.it.json +1 -1
  138. package/assets/esri/views/interactive/tooltip/t9n/messages.ja.json +1 -1
  139. package/assets/esri/views/interactive/tooltip/t9n/messages.ko.json +1 -1
  140. package/assets/esri/views/interactive/tooltip/t9n/messages.lt.json +1 -1
  141. package/assets/esri/views/interactive/tooltip/t9n/messages.lv.json +1 -1
  142. package/assets/esri/views/interactive/tooltip/t9n/messages.nl.json +1 -1
  143. package/assets/esri/views/interactive/tooltip/t9n/messages.no.json +1 -1
  144. package/assets/esri/views/interactive/tooltip/t9n/messages.pl.json +1 -1
  145. package/assets/esri/views/interactive/tooltip/t9n/messages.pt-BR.json +1 -1
  146. package/assets/esri/views/interactive/tooltip/t9n/messages.pt-PT.json +1 -1
  147. package/assets/esri/views/interactive/tooltip/t9n/messages.ro.json +1 -1
  148. package/assets/esri/views/interactive/tooltip/t9n/messages.ru.json +1 -1
  149. package/assets/esri/views/interactive/tooltip/t9n/messages.sk.json +1 -1
  150. package/assets/esri/views/interactive/tooltip/t9n/messages.sl.json +1 -1
  151. package/assets/esri/views/interactive/tooltip/t9n/messages.sr.json +1 -1
  152. package/assets/esri/views/interactive/tooltip/t9n/messages.sv.json +1 -1
  153. package/assets/esri/views/interactive/tooltip/t9n/messages.th.json +1 -1
  154. package/assets/esri/views/interactive/tooltip/t9n/messages.tr.json +1 -1
  155. package/assets/esri/views/interactive/tooltip/t9n/messages.uk.json +1 -1
  156. package/assets/esri/views/interactive/tooltip/t9n/messages.vi.json +1 -1
  157. package/assets/esri/views/interactive/tooltip/t9n/messages.zh-CN.json +1 -1
  158. package/assets/esri/views/interactive/tooltip/t9n/messages.zh-HK.json +1 -1
  159. package/assets/esri/views/interactive/tooltip/t9n/messages.zh-TW.json +1 -1
  160. package/chunks/batchExec.js +2 -0
  161. package/config.js +1 -1
  162. package/geometry/support/intersects.js +1 -1
  163. package/geometry/support/intersectsBase.js +1 -1
  164. package/kernel.js +1 -1
  165. package/layers/GeospatialPDFLayer.js +1 -1
  166. package/layers/ImageryTileLayer.js +1 -1
  167. package/layers/graphics/hydrateGeometryJSON.js +2 -0
  168. package/layers/graphics/hydratedFeatures.js +1 -1
  169. package/layers/graphics/hydratedSpatialReference.js +2 -0
  170. package/layers/raster/datasets/DBFParser.js +1 -1
  171. package/layers/raster/datasets/ImageAuxRaster.js +1 -1
  172. package/layers/raster/datasets/TIFFRaster.js +1 -1
  173. package/layers/raster/formats/JpgPlus.js +1 -1
  174. package/layers/raster/formats/RasterCodec.js +1 -1
  175. package/layers/raster/formats/Raw.js +1 -1
  176. package/layers/support/arcadeUtils.js +1 -1
  177. package/package.json +3 -3
  178. package/popup/FeatureContent.js +1 -1
  179. package/popup/FeatureContentCollection.d.ts +2 -0
  180. package/popup/FeatureContentCollection.js +1 -1
  181. package/popup/support/featureUtils.js +1 -1
  182. package/rest/imageService.js +1 -1
  183. package/support/arcadeUtils.js +1 -1
  184. package/support/loadArcade.js +1 -1
  185. package/support/revision.js +1 -1
  186. package/symbols/cim/cimAnalyzer.js +1 -1
  187. package/views/2d/engine/vectorTiles/GeometryUtils.js +1 -1
  188. package/views/2d/engine/vectorTiles/TileManager.js +1 -1
  189. package/views/2d/engine/vectorTiles/VectorTileFeatureIndex.js +1 -1
  190. package/views/2d/engine/vectorTiles/decluttering/SymbolRepository.js +1 -1
  191. package/views/2d/engine/vectorTiles/decluttering/util.js +1 -1
  192. package/views/2d/engine/vectorTiles/style/StyleLayer.js +1 -1
  193. package/views/2d/layerViewModuleImportUtils.js +1 -1
  194. package/views/2d/layers/GeospatialPDFLayerView2D.js +1 -1
  195. package/views/2d/layers/VectorTileLayerView2D.js +1 -1
  196. package/views/2d/layers/features/schema/processor/MatcherSchema.js +1 -1
  197. package/views/2d/layers/graphics/GraphicStore.js +1 -1
  198. package/views/2d/layers/imagery/BaseImageryTileSubView2D.js +1 -1
  199. package/views/2d/layers/imagery/ImageryTileView2D.js +1 -1
  200. package/views/2d/support/hitTestUtils.js +1 -1
  201. package/views/3d/interactive/Manipulator3D.js +1 -1
  202. package/views/3d/layers/GeospatialPDFLayerView3D.js +1 -1
  203. package/views/3d/terrain/TileCompositor.js +1 -1
  204. package/views/DOMContainer.d.ts +18 -8
  205. package/views/VideoView.d.ts +38 -0
  206. package/views/VideoView.js +1 -1
  207. package/views/View.d.ts +20 -2
  208. package/views/View.js +1 -1
  209. package/views/input/types.d.ts +19 -6
  210. package/views/interactive/dragEventPipeline.js +1 -1
  211. package/views/layers/ImageryTileLayerView.js +1 -1
  212. package/widgets/Search/SearchViewModel.js +1 -1
  213. package/widgets/Search/support/layerSearchUtils.js +1 -1
  214. package/assets/esri/core/workers/chunks/025da54eef112d7e8f66.js +0 -1
  215. package/assets/esri/core/workers/chunks/02f94f9d704f03ddb5c6.js +0 -1
  216. package/assets/esri/core/workers/chunks/038d2b80d96237c25b6f.js +0 -1
  217. package/assets/esri/core/workers/chunks/04d4cd66485b622403d0.js +0 -1
  218. package/assets/esri/core/workers/chunks/05afa8c2b5929ce0545a.js +0 -1
  219. package/assets/esri/core/workers/chunks/09676cfa99b90fe0cc63.js +0 -1
  220. package/assets/esri/core/workers/chunks/0aadee0437fa061e4ff5.js +0 -1
  221. package/assets/esri/core/workers/chunks/0ccd4200c5a2a5de6e16.js +0 -1
  222. package/assets/esri/core/workers/chunks/1262918b2161d79851c0.js +0 -1
  223. package/assets/esri/core/workers/chunks/1406a884241809b62bff.js +0 -1
  224. package/assets/esri/core/workers/chunks/1c33aa349beea9a3792f.js +0 -1
  225. package/assets/esri/core/workers/chunks/1f135269aea3931e11b2.js +0 -1
  226. package/assets/esri/core/workers/chunks/24014f3701c31ee74bc2.js +0 -1
  227. package/assets/esri/core/workers/chunks/25a2e02677a74834c8b5.js +0 -1
  228. package/assets/esri/core/workers/chunks/2afce71e8b6ae86e0792.js +0 -1
  229. package/assets/esri/core/workers/chunks/2c7bb5c9751524687002.js +0 -1
  230. package/assets/esri/core/workers/chunks/2ebad7e588b26e74cefe.js +0 -1
  231. package/assets/esri/core/workers/chunks/319434415d2c0561bc59.js +0 -1
  232. package/assets/esri/core/workers/chunks/39d71e83261bff46f6bf.js +0 -1
  233. package/assets/esri/core/workers/chunks/3aceedec9abfb2fdfa18.js +0 -1
  234. package/assets/esri/core/workers/chunks/3c6ee445e49da0076ac1.js +0 -1
  235. package/assets/esri/core/workers/chunks/3f045f09ac95e7f22a97.js +0 -1
  236. package/assets/esri/core/workers/chunks/4327d2c39a660bd89da7.js +0 -1
  237. package/assets/esri/core/workers/chunks/462fd57af8ed7921d6ba.js +0 -1
  238. package/assets/esri/core/workers/chunks/474d9541d387b31ad275.js +0 -1
  239. package/assets/esri/core/workers/chunks/48a2f68e06a2e90b77d0.js +0 -1
  240. package/assets/esri/core/workers/chunks/4a73f73f1698fad2df20.js +0 -1
  241. package/assets/esri/core/workers/chunks/4f464047c6f6c9486efd.js +0 -1
  242. package/assets/esri/core/workers/chunks/500f6d6f0ffa235cae85.js +0 -1
  243. package/assets/esri/core/workers/chunks/526cc64ae46dec3fbeda.js +0 -1
  244. package/assets/esri/core/workers/chunks/550d4df0732352fa48b5.js +0 -1
  245. package/assets/esri/core/workers/chunks/581285e4d7bbe1b7c27a.js +0 -1
  246. package/assets/esri/core/workers/chunks/58fb92775d668cfd295c.js +0 -1
  247. package/assets/esri/core/workers/chunks/5adf2792416b22cd602f.js +0 -1
  248. package/assets/esri/core/workers/chunks/5aee7739afb5160d4ace.js +0 -1
  249. package/assets/esri/core/workers/chunks/6006bd8a5ed945fa2776.js +0 -1
  250. package/assets/esri/core/workers/chunks/606cca69eaea84bfcdc6.js +0 -1
  251. package/assets/esri/core/workers/chunks/64ee22134fda2f09c094.js +0 -1
  252. package/assets/esri/core/workers/chunks/66ef6c034455abd61f39.js +0 -1
  253. package/assets/esri/core/workers/chunks/67678054342178b601cf.js +0 -1
  254. package/assets/esri/core/workers/chunks/67fd2cdb2e6834bfa710.js +0 -1
  255. package/assets/esri/core/workers/chunks/6c82cbcd504c711a7450.js +0 -1
  256. package/assets/esri/core/workers/chunks/75294f515c7f8393181c.js +0 -1
  257. package/assets/esri/core/workers/chunks/75879ae88fd87b089a87.js +0 -1
  258. package/assets/esri/core/workers/chunks/761ea719ec1b4d562db2.js +0 -1
  259. package/assets/esri/core/workers/chunks/78085f804969c9282700.js +0 -1
  260. package/assets/esri/core/workers/chunks/7d6da4e89aa951e6523f.js +0 -1
  261. package/assets/esri/core/workers/chunks/80f16f5f15518013f7d0.js +0 -1
  262. package/assets/esri/core/workers/chunks/8465e2c7221125fd3cc4.js +0 -1
  263. package/assets/esri/core/workers/chunks/87aaed3dfa903bdf853c.js +0 -1
  264. package/assets/esri/core/workers/chunks/892dc038d569cffd26dc.js +0 -1
  265. package/assets/esri/core/workers/chunks/8a842cde240aef12e417.js +0 -1
  266. package/assets/esri/core/workers/chunks/8f1c5f5e70d4b33d021d.js +0 -1
  267. package/assets/esri/core/workers/chunks/9020bd7a0e488d55ef14.js +0 -1
  268. package/assets/esri/core/workers/chunks/92509dd25996c6390a31.js +0 -1
  269. package/assets/esri/core/workers/chunks/9ccc2c8f7416943cc373.js +0 -29
  270. package/assets/esri/core/workers/chunks/9d6a96e4c7ccedcb0c13.js +0 -1
  271. package/assets/esri/core/workers/chunks/9ec04faad97be55309b8.js +0 -1
  272. package/assets/esri/core/workers/chunks/a08385ebf1715414c1a6.js +0 -1
  273. package/assets/esri/core/workers/chunks/a3a33ffa34f4d645ddfe.js +0 -1
  274. package/assets/esri/core/workers/chunks/b396c4b4bb144200acc7.js +0 -1
  275. package/assets/esri/core/workers/chunks/b9c834e3c0701e9b14a2.js +0 -1
  276. package/assets/esri/core/workers/chunks/bbfb80a6983574007ce5.js +0 -1
  277. package/assets/esri/core/workers/chunks/bcf2e5cf6b9c6d0442bb.js +0 -1
  278. package/assets/esri/core/workers/chunks/c35e9dee87937f483a3d.js +0 -1
  279. package/assets/esri/core/workers/chunks/c5b733c3a5b2680042a2.js +0 -1
  280. package/assets/esri/core/workers/chunks/cbeba973ef5593ffbba3.js +0 -1
  281. package/assets/esri/core/workers/chunks/ccaeabc3be07f3c96f50.js +0 -1
  282. package/assets/esri/core/workers/chunks/d25fb32a233d2128afbe.js +0 -1
  283. package/assets/esri/core/workers/chunks/d5ef269ab0ee3744b05d.js +0 -1
  284. package/assets/esri/core/workers/chunks/d94a2b3b2ef49af9c2e3.js +0 -1
  285. package/assets/esri/core/workers/chunks/dc92710a8fdfb9135e55.js +0 -1
  286. package/assets/esri/core/workers/chunks/dd4ecf81250cc001d040.js +0 -1
  287. package/assets/esri/core/workers/chunks/e0894a308c84d5c158b0.js +0 -1
  288. package/assets/esri/core/workers/chunks/e4016ae9cb8f16e3efc3.js +0 -1
  289. package/assets/esri/core/workers/chunks/e6a4cef0af9be30ffe3d.js +0 -1
  290. package/assets/esri/core/workers/chunks/eaa7cb3ffa8c11706a09.js +0 -1
  291. package/assets/esri/core/workers/chunks/ed31ec586b754241474d.js +0 -1
  292. package/assets/esri/core/workers/chunks/ef6e52f9b656751eebaf.js +0 -1
  293. package/assets/esri/core/workers/chunks/f2fca9a3a40170996ea2.js +0 -1
  294. package/assets/esri/core/workers/chunks/f5d06cd6d30a5f742f73.js +0 -1
  295. package/assets/esri/core/workers/chunks/f71ec8a260405ed07958.js +0 -1
  296. package/assets/esri/core/workers/chunks/f91cab9904020cf25d50.js +0 -1
  297. package/assets/esri/core/workers/chunks/fb11ff3f2eae5f072560.js +0 -1
  298. package/assets/esri/core/workers/chunks/ff0e9f8d323eb1729650.js +0 -1
  299. /package/assets/esri/core/workers/chunks/{6e8187a77846239ed112.js.LICENSE.txt → de28a86775235bd5d3c4.js.LICENSE.txt} +0 -0
  300. /package/assets/esri/core/workers/chunks/{168b45c5d8233f23793e.js.LICENSE.txt → f6cfc901267a229de7a1.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5189],{19334(e,t,r){r.d(t,{e:()=>n});var i=r(54639),o=r(14112);class s{constructor(e){this._geometry=e}toJsonGeometry(){return this._geometry.toJSON()}toAccessorGeometry(e){return this._geometry}toGxGeometry(e){return e.fromAccessorGeometry(this._geometry)}}function n(e){if(null==e)return null;switch(e.type){case"point":if((0,o.e6)(e))return null;break;case"polygon":if((0,o.Wq)(e))return null;break;case"polyline":if((0,o.IY)(e))return null;break;case"multipoint":if((0,o.DG)(e))return null;break;case"extent":if((0,o.As)(e))return null;break;default:return null}const t=i.R.of(e.type,e.spatialReference,e.hasZ,e.hasM,new s(e));return t.asAccessorGeometry(),t}},36983(e,t,r){r.d(t,{R:()=>u,p:()=>p});var i=r(54639),o=r(14112),s=r(16930),n=r(60408),a=r(65864);class l{constructor(e){this._geometry=e}toJsonGeometry(){return this._geometry}toAccessorGeometry(e){const t=(0,a.rS)(this._geometry);return t.spatialReference=e,t}toGxGeometry(e){return e.fromJsonGeometry(this._geometry)}}function u(e,t){if(null==e||"object"!=typeof e)return null;let r=t;if("spatialReference"in e&&(e.spatialReference instanceof s.A?r=e.spatialReference:"object"==typeof e.spatialReference&&null!=e.spatialReference&&(r=new s.A,r.read(e.spatialReference))),null==r)throw new Error("Spatial reference required");return(0,n.fT)(e)?p("point",e,r):(0,n.Rg)(e)?p("polyline",e,r):(0,n.Bi)(e)?p("polygon",e,r):(0,n.U9)(e)?p("multipoint",e,r):(0,n.ZC)(e)?p("extent",e,r):null}function p(e,t,r){if(null==t)return null;let s=!1,n=!1;switch(e){case"point":if((0,o.e6)(t))return null;s=void 0!==t.z,n=void 0!==t.m;break;case"polygon":if((0,o.Wq)(t))return null;s=!0===t.hasZ,n=!0===t.hasM;break;case"polyline":if((0,o.IY)(t))return null;s=!0===t.hasZ,n=!0===t.hasM;break;case"multipoint":if((0,o.DG)(t))return null;s=!0===t.hasZ,n=!0===t.hasM;break;case"extent":if((0,o.As)(t))return null;s=null!=t.zmin&&null!=t.zmax,n=null!=t.mmin&&null!=t.mmax;break;default:throw new Error("Unsupported geometry type: "+t.type)}return i.R.of(e,r,s,n,new l(t))}},14112(e,t,r){function i(e){return"NaN"===e.x||null===e.x||isNaN(e.x)}function o(e){if(0===(e.curveRings??e.rings).length)return!0;for(const t of e.curveRings??e.rings)if(t.length>0)return!1;return!0}function s(e){if(0===(e.curvePaths??e.paths).length)return!0;for(const t of e.curvePaths??e.paths)if(t.length>0)return!1;return!0}function n(e){return 0===e.points.length}function a(e){return"NaN"===e.xmin||null===e.xmin||isNaN(e.xmin)}r.d(t,{As:()=>a,DG:()=>n,IY:()=>s,Wq:()=>o,e6:()=>i})},69052(e,t,r){r.d(t,{hr:()=>o});var i=r(34727);class o{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,r=!1){return s(this.range,this.min,this.max,e,t,r)}clamp(e,t=0){return(0,i.qE)(e-t,this.min,this.max)+t}monotonic(e,t,r){return e<t?t:t+n(this.range,e-t,r)}minimalMonotonic(e,t,r){return s(this.range,e,e+this.range,t,r)}center(e,t,r){return t=this.monotonic(e,t,r),this.normalize((e+t)/2,r)}diff(e,t,r){return this.monotonic(e,t,r)-e}shortestSignedDiff(e,t){e=this.normalize(e);const r=(t=this.normalize(t))-e,i=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(r)<Math.abs(i)?r:i}contains(e,t,r){return t=this.minimalMonotonic(e,t),(r=this.minimalMonotonic(e,r))>e&&r<t}}function s(e,t,r,i,o=0,s=!1){return(i-=o)<t?i+=n(e,t-i):i>r&&(i-=n(e,i-r)),s&&i===r&&(i=t),i+o}function n(e,t,r=0){return Math.ceil((t-r)/e)*e+r}const a=new o(0,2*Math.PI),l=(new o(-Math.PI,Math.PI),new o(0,360));r.d(t,["ie",0,l,"uC",0,a])},6797(e,t,r){r.d(t,{Ui:()=>y});var i=r(69622),o=r(7762),s=r(88620);const n=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function a(e){return e instanceof i.A}function l(e){return e instanceof o.A?Object.keys(e.items):a(e)?(0,s.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof o.A?e.items[t]:e[t]}function p(e){return e?e.declaredClass:null}function c(e,t){const r=e.diff;if(r&&"function"==typeof r)return r(e,t);const i=l(e),o=l(t);if(0===i.length&&0===o.length)return;if(!i.length||!o.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const s=o.filter(e=>!i.includes(e)),y=i.filter(e=>!o.includes(e)),d=i.filter(r=>o.includes(r)&&u(e,r)!==u(t,r)).concat(s,y).sort(),m=p(e);if(m&&n.has(m)&&d.length)return{type:"complete",oldValue:e,newValue:t};let g;const h=a(e)&&a(t);for(const i of d){const o=u(e,i),s=u(t,i);let n;if((h||"function"!=typeof o&&"function"!=typeof s)&&o!==s&&(null!=o||null!=s)){if(r&&r[i]&&"function"==typeof r[i])n=r[i]?.(o,s);else if(o instanceof Date&&s instanceof Date){if(o.getTime()===s.getTime())continue;n={type:"complete",oldValue:o,newValue:s}}else n="object"==typeof o&&"object"==typeof s&&p(o)===p(s)?c(o,s):{type:"complete",oldValue:o,newValue:s};null!=n&&(null!=g?g.diff[i]=n:g={type:"partial",diff:{[i]:n}})}}return g}function y(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&p(e)!==p(t)?{type:"complete",oldValue:e,newValue:t}:c(e,t)}},46130(e,t,r){r.d(t,{v:()=>o});var i=r(76553);function o(e){e?.writtenProperties&&e.writtenProperties.forEach(({target:e,propName:t,newOrigin:r})=>{(0,i.H)(e)&&r&&e.originOf(t)!==r&&e.updateOrigin(t,r)})}},18370(e,t,r){r.d(t,{z:()=>o});class i{constructor(e){this._import=e,this.module=null,this._promise=null}getImportPromise(){return null==this._promise&&(this._promise=this._import().then(async e=>(this.module=e,e))),this._promise}}function o(e){return new i(e)}},76553(e,t,r){function i(e){return e&&"getAtOrigin"in e&&"originOf"in e}r.d(t,{H:()=>i})},52039(e,t,r){r.d(t,{O7:()=>y,el:()=>u});var i=r(69052),o=(r(49186),r(18370)),s=r(17676),n=(r(5443),r(39829)),a=(r(82799),r(16930)),l=(r(80754),r(21325));async function u(e,t,r){Array.isArray(e)||(e=[e]),null!=t&&"object"==typeof t&&"authMode"in t&&(r=t);let i=null;for(const t of e)i??=t?.spatialReference;if(!i)return e;const o=(0,l.Vp)(i);if(!o)return e;if(1===e.length&&"extent"===e[0]?.type){const t=e[0].clone().normalizeAsSingleGeometry(o);return["xmin"in t?t:new n.A(t)]}const[a,u]=o.valid;let y=!1;for(const t of e){if(!t)continue;if("point"===t.type){y||=t.x>=u,y||=t.x<=a;continue}const{extent:e}=t;if(null==e){y=!0;break}y||=e.xmin>=u,y||=e.xmin<=a,y||=e.xmax>=u,y||=e.xmax<=a}if(!y)return e;const[{foldInto360Range:d},m]=await(0,s.qr)(Promise.all([p.getImportPromise(),c.getImportPromise()]),r),g=m.fromSpatialReference(i);return e.map(e=>{if(null==e||"mesh"===e.type)return e;const t=m.fromGeometry(e),r=m.toGeometry(d(t,g),i);return"extent"===e.type&&1===r?.rings.length?r.extent:r})}const p=(0,o.z)(()=>r.e(4144).then(()=>r(4144)).then(e=>e.load().then(()=>e))),c=(0,o.z)(()=>Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(1550)]).then(()=>r(78125)));function y(e,t,r){const i=(0,l.Vp)(r);if(null==i)return e;const[o,s]=i.valid,n=2*s;let a=0,u=0;t>s?a=Math.ceil(Math.abs(t-s)/n):t<o&&(a=-Math.ceil(Math.abs(t-o)/n)),e>s?u=Math.ceil(Math.abs(e-s)/n):e<o&&(u=-Math.ceil(Math.abs(e-o)/n));let p=e+(a-u)*n;const c=p-t;return c>s?p-=n:c<o&&(p+=n),p}function d(e){const t=(0,l.Vp)(e);if(null==t)return null;const[r,o]=t.valid;return new i.hr(r,o)}const m=d(a.A.WGS84);d(a.A.WebMercator),r.d(t,["Y_",0,m])},80754(e,t,r){r.d(t,{kS:()=>u,kd:()=>l});var i=r(82799),o=r(16930),s=r(60408),n=r(52006);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new i.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:o.A.WebMercator}),minus180Line:new i.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:o.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new i.A({paths:[[[180,-180],[180,180]]],spatialReference:o.A.WGS84}),minus180Line:new i.A({paths:[[[-180,-180],[-180,180]]],spatialReference:o.A.WGS84})}};function l(e,t){return Math.ceil((e-t)/(2*t))}function u(e,t){if((0,n.Ed)(e))for(const r of function(e){return(0,s.Bi)(e)?e.curveRings:e.curvePaths}(e))for(const e of r){if((0,n.aO)(e)){const[r,i]=e.c;r[0]+=t,i[0]+=t;continue}if((0,n.FG)(e)){const[r,i]=e.a;r[0]+=t,i[0]+=t;continue}if((0,n.n1)(e)){const[r,i,o]=e.b;r[0]+=t,i[0]+=t,o[0]+=t;continue}e[0]+=t}for(const r of function(e){return(0,s.Bi)(e)?e.rings:e.paths}(e))for(const e of r)e[0]+=t;return e}r.d(t,["j7",0,a])},39622(e,t,r){r.r(t),r.d(t,{default:()=>Et});var i=r(32198),o=r(92602),s=r(52106),n=r(37838),a=r(4576),l=r(7762),u=r(49186),p=r(53966),c=r(25728),y=r(93637),d=r(17676),m=r(36708),g=r(86211),h=r(84952),f=r(91429),b=r(46130),v=r(5443),C=r(48526),w=r(99917),T=r(16930),S=r(21325),M=r(4146),A=r(63074),I=r(34287),L=r(8303),O=r(25036),N=r(60694),Z=r(25482),D=r(53930),j=r(33910);let B=class extends Z.o{constructor(e){super(e),this.break=new D.A({color:[255,255,255],size:12,outline:{color:[0,122,194],width:3}}),this.first=new D.A({color:[0,255,0],size:20,outline:{color:[255,255,255],width:4}}),this.unlocated=new D.A({color:[255,0,0],size:12,outline:{color:[255,255,255],width:3}}),this.last=new D.A({color:[255,0,0],size:20,outline:{color:[255,255,255],width:4}}),this.middle=new D.A({color:[51,51,51],size:12,outline:{color:[0,122,194],width:3}}),this.waypoint=new D.A({color:[255,255,255],size:12,outline:{color:[0,122,194],width:3}})}};(0,i.Cg)([(0,f.MZ)({types:j.wC})],B.prototype,"break",void 0),(0,i.Cg)([(0,f.MZ)({types:j.wC})],B.prototype,"first",void 0),(0,i.Cg)([(0,f.MZ)({types:j.wC})],B.prototype,"unlocated",void 0),(0,i.Cg)([(0,f.MZ)({types:j.wC})],B.prototype,"last",void 0),(0,i.Cg)([(0,f.MZ)({types:j.wC})],B.prototype,"middle",void 0),(0,i.Cg)([(0,f.MZ)({types:j.wC})],B.prototype,"waypoint",void 0),B=(0,i.Cg)([(0,f.$K)("esri.layers.support.RouteStopSymbols")],B);var F=r(94985),E=r(31593);let P=class extends Z.o{constructor(e){super(e),this.directionLines=new E.A({color:[0,122,194],width:6}),this.directionPoints=new D.A({color:[255,255,255],size:6,outline:{color:[0,122,194],width:2}}),this.pointBarriers=new D.A({style:"x",size:10,outline:{color:[255,0,0],width:3}}),this.polygonBarriers=new F.A({color:[255,170,0,.6],outline:{width:7.5,color:[255,0,0,.6]}}),this.polylineBarriers=new E.A({width:7.5,color:[255,85,0,.7]}),this.routeInfo=new E.A({width:8,color:[20,89,127]}),this.stops=new B}};(0,i.Cg)([(0,f.MZ)({types:j.Y7})],P.prototype,"directionLines",void 0),(0,i.Cg)([(0,f.MZ)({types:j.wC})],P.prototype,"directionPoints",void 0),(0,i.Cg)([(0,f.MZ)({types:j.wC})],P.prototype,"pointBarriers",void 0),(0,i.Cg)([(0,f.MZ)({types:j.Ac})],P.prototype,"polygonBarriers",void 0),(0,i.Cg)([(0,f.MZ)({types:j.Y7})],P.prototype,"polylineBarriers",void 0),(0,i.Cg)([(0,f.MZ)({types:j.Y7})],P.prototype,"routeInfo",void 0),(0,i.Cg)([(0,f.MZ)({type:B})],P.prototype,"stops",void 0),P=(0,i.Cg)([(0,f.$K)("esri.layers.support.RouteSymbols")],P);var R=r(20655),x=r(80812),J=r(10407),_=r(65494),G=r(56507),U=r(2272),k=r(2073),W=r(93223);let V=class extends Z.o{constructor(e){super(e),this.dataType=null,this.name=null,this.parameterNames=null,this.restrictionUsageParameterName=null,this.timeNeutralAttributeName=null,this.trafficSupport=null,this.units=null,this.usageType=null}};(0,i.Cg)([(0,f.MZ)({type:String})],V.prototype,"dataType",void 0),(0,i.Cg)([(0,W.e)(k.et,{ignoreUnknown:!1})],V.prototype,"name",void 0),(0,i.Cg)([(0,f.MZ)({type:[String]})],V.prototype,"parameterNames",void 0),(0,i.Cg)([(0,f.MZ)({type:String})],V.prototype,"restrictionUsageParameterName",void 0),(0,i.Cg)([(0,W.e)(k.Mm,{ignoreUnknown:!1})],V.prototype,"timeNeutralAttributeName",void 0),(0,i.Cg)([(0,f.MZ)({type:String})],V.prototype,"trafficSupport",void 0),(0,i.Cg)([(0,W.e)(k.dn)],V.prototype,"units",void 0),(0,i.Cg)([(0,W.e)(k.WU)],V.prototype,"usageType",void 0),V=(0,i.Cg)([(0,f.$K)("esri.rest.support.NetworkAttribute")],V);const $=V;let K=class extends Z.o{constructor(e){super(e),this.buildTime=null,this.name=null,this.networkAttributes=null,this.networkSources=null,this.state=null}};(0,i.Cg)([(0,f.MZ)({type:Number})],K.prototype,"buildTime",void 0),(0,i.Cg)([(0,f.MZ)({type:String})],K.prototype,"name",void 0),(0,i.Cg)([(0,f.MZ)({type:[$]})],K.prototype,"networkAttributes",void 0),(0,i.Cg)([(0,f.MZ)()],K.prototype,"networkSources",void 0),(0,i.Cg)([(0,f.MZ)({type:String})],K.prototype,"state",void 0),K=(0,i.Cg)([(0,f.$K)("esri.rest.support.NetworkDataset")],K);const q=K;var z=r(69540),H=r(36005),Y=r(43937);let Q=class extends((0,z.OU)(Z.o)){constructor(e){super(e),this.attributeParameterValues=null,this.description=null,this.distanceAttributeName=null,this.id=null,this.impedanceAttributeName=null,this.name=null,this.restrictionAttributeNames=null,this.simplificationTolerance=null,this.simplificationToleranceUnits=null,this.timeAttributeName=null,this.type=null,this.useHierarchy=null,this.uturnAtJunctions=null}readId(e,t){return t.id??t.itemId??null}readRestrictionAttributes(e,t){const{restrictionAttributeNames:r}=t;return null==r?null:r.map(e=>k.OC.fromJSON(e))}writeRestrictionAttributes(e,t,r){null!=e&&(t[r]=e.map(e=>k.OC.toJSON(e)))}};(0,i.Cg)([(0,f.MZ)({type:[Object],json:{write:!0}})],Q.prototype,"attributeParameterValues",void 0),(0,i.Cg)([(0,f.MZ)({type:String,json:{write:!0}})],Q.prototype,"description",void 0),(0,i.Cg)([(0,W.e)(k.dd,{ignoreUnknown:!1})],Q.prototype,"distanceAttributeName",void 0),(0,i.Cg)([(0,f.MZ)({type:String,json:{write:!0}})],Q.prototype,"id",void 0),(0,i.Cg)([(0,H.w)("id",["id","itemId"])],Q.prototype,"readId",null),(0,i.Cg)([(0,W.e)(k.et,{ignoreUnknown:!1})],Q.prototype,"impedanceAttributeName",void 0),(0,i.Cg)([(0,f.MZ)({type:String,json:{write:!0}})],Q.prototype,"name",void 0),(0,i.Cg)([(0,f.MZ)({type:[String],json:{write:!0}})],Q.prototype,"restrictionAttributeNames",void 0),(0,i.Cg)([(0,H.w)("restrictionAttributeNames")],Q.prototype,"readRestrictionAttributes",null),(0,i.Cg)([(0,Y.K)("restrictionAttributeNames")],Q.prototype,"writeRestrictionAttributes",null),(0,i.Cg)([(0,f.MZ)({type:Number,json:{write:{allowNull:!0}}})],Q.prototype,"simplificationTolerance",void 0),(0,i.Cg)([(0,W.e)(k.hY)],Q.prototype,"simplificationToleranceUnits",void 0),(0,i.Cg)([(0,W.e)(k.Mm,{ignoreUnknown:!1})],Q.prototype,"timeAttributeName",void 0),(0,i.Cg)([(0,W.e)(k.ow)],Q.prototype,"type",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],Q.prototype,"useHierarchy",void 0),(0,i.Cg)([(0,W.e)(k.hE)],Q.prototype,"uturnAtJunctions",void 0),Q=(0,i.Cg)([(0,f.$K)("esri.rest.support.TravelMode")],Q);let X=class extends Z.o{constructor(e){super(e),this.accumulateAttributeNames=null,this.attributeParameterValues=null,this.currentVersion=null,this.defaultTravelMode=null,this.directionsLanguage=null,this.directionsLengthUnits=null,this.directionsSupportedLanguages=null,this.directionsTimeAttribute=null,this.hasZ=null,this.impedance=null,this.networkDataset=null,this.supportedTravelModes=null}readAccumulateAttributes(e){return null==e?null:e.map(e=>k.et.fromJSON(e))}writeAccumulateAttributes(e,t,r){e?.length&&(t[r]=e.map(e=>k.et.toJSON(e)))}get capabilities(){return{supportsNow:(this.currentVersion??10)>=10.81}}readDefaultTravelMode(e,t){const r=t.supportedTravelModes?.find(({id:e})=>e===t.defaultTravelMode)??t.supportedTravelModes?.find(({itemId:e})=>e===t.defaultTravelMode);return r?Q.fromJSON(r):null}};function ee(e,t,r,i){i[r]=[t.length,t.length+e.length],e.forEach(e=>{t.push(e.geometry)})}async function te(e,t,r){if(!e)throw new u.A("network-service:missing-url","Url to Network service is missing");const i=(0,U.jV)({f:"json",token:t},r),{data:o}=await(0,G.A)(e,i),s=o.currentVersion>=10.4?async function(e,t,r){try{const i=(0,U.jV)({f:"json",token:t},r),o=(0,h.UC)(e)+"/retrieveTravelModes",{data:{supportedTravelModes:s,defaultTravelMode:n}}=await(0,G.A)(o,i);return{supportedTravelModes:s,defaultTravelMode:n}}catch(e){throw new u.A("network-service:retrieveTravelModes","Could not get to the NAServer's retrieveTravelModes.",{error:e})}}(e,t,r):async function(e,t){const r=(0,U.jV)({f:"json"},t),{data:i}=await(0,G.A)(e.replace(/\/rest\/.*$/i,"/info"),r);if(!i?.owningSystemUrl)return{supportedTravelModes:[],defaultTravelMode:null};const{owningSystemUrl:o}=i,s=(0,h.UC)(o)+"/sharing/rest/portals/self",{data:n}=await(0,G.A)(s,r),a=(0,y.wc)("helperServices.routingUtilities.url",n);if(!a)return{supportedTravelModes:[],defaultTravelMode:null};const l=(0,U.Dl)(o),u=/\/solve$/i.test(l.path)?"Route":/\/solveclosestfacility$/i.test(l.path)?"ClosestFacility":"ServiceAreas",p=(0,U.jV)({f:"json",serviceName:u},t),c=(0,h.UC)(a)+"/GetTravelModes/execute",d=await(0,G.A)(c,p),m=[];let g=null;if(d?.data?.results?.length){const e=d.data.results;for(const t of e)if("supportedTravelModes"===t.paramName){if(t.value?.features)for(const{attributes:e}of t.value.features)if(e){const t=JSON.parse(e.TravelMode);m.push(t)}}else"defaultTravelMode"===t.paramName&&(g=t.value)}return{supportedTravelModes:m,defaultTravelMode:g}}(e,r),{defaultTravelMode:n,supportedTravelModes:a}=await s;return o.defaultTravelMode=n,o.supportedTravelModes=a,X.fromJSON(o)}(0,i.Cg)([(0,f.MZ)()],X.prototype,"accumulateAttributeNames",void 0),(0,i.Cg)([(0,H.w)("accumulateAttributeNames")],X.prototype,"readAccumulateAttributes",null),(0,i.Cg)([(0,Y.K)("accumulateAttributeNames")],X.prototype,"writeAccumulateAttributes",null),(0,i.Cg)([(0,f.MZ)()],X.prototype,"attributeParameterValues",void 0),(0,i.Cg)([(0,f.MZ)()],X.prototype,"capabilities",null),(0,i.Cg)([(0,f.MZ)()],X.prototype,"currentVersion",void 0),(0,i.Cg)([(0,f.MZ)()],X.prototype,"defaultTravelMode",void 0),(0,i.Cg)([(0,H.w)("defaultTravelMode",["defaultTravelMode","supportedTravelModes"])],X.prototype,"readDefaultTravelMode",null),(0,i.Cg)([(0,f.MZ)()],X.prototype,"directionsLanguage",void 0),(0,i.Cg)([(0,W.e)(k.Z7)],X.prototype,"directionsLengthUnits",void 0),(0,i.Cg)([(0,f.MZ)()],X.prototype,"directionsSupportedLanguages",void 0),(0,i.Cg)([(0,W.e)(k.Mm,{ignoreUnknown:!1})],X.prototype,"directionsTimeAttribute",void 0),(0,i.Cg)([(0,f.MZ)()],X.prototype,"hasZ",void 0),(0,i.Cg)([(0,W.e)(k.et,{ignoreUnknown:!1})],X.prototype,"impedance",void 0),(0,i.Cg)([(0,f.MZ)({type:q})],X.prototype,"networkDataset",void 0),(0,i.Cg)([(0,f.MZ)({type:[Q]})],X.prototype,"supportedTravelModes",void 0),X=(0,i.Cg)([(0,f.$K)("esri.rest.support.NetworkServiceDescription")],X);var re=r(16649),ie=r(52039);function oe(e,t){if(null==e)return null;const r={},i=new RegExp(`^${t}`,"i");for(const o of Object.keys(e))if(i.test(o)){const i=o.slice(t.length);r[k.et.fromJSON(i)]=e[o]}return r}function se(e,t,r){if(null!=e){t.attributes||(t.attributes={});for(const i in e){const o=k.et.toJSON(i);t.attributes[`${r}${o}`]=e[i]}}}function ne(e){const t={};for(const r of Object.keys(e)){const i=r;t[k.et.fromJSON(i)]=e[r]}return t}function ae(e){const t={};for(const r of Object.keys(e)){const i=r;t[k.et.toJSON(i)]=e[r]}return t}function le(e,t){return null==e||null==t?null:Math.round((e-t)/6e4)}function ue(e){const t=e.toJSON(),r=t;return r.accumulateAttributeNames&&=t.accumulateAttributeNames?.join(),r.attributeParameterValues&&=JSON.stringify(t.attributeParameterValues),r.barriers&&=JSON.stringify(t.barriers),r.locateSettings&&=JSON.stringify(t.locateSettings),r.outSR&&=t.outSR?.wkid,r.overrides&&=JSON.stringify(t.overrides),r.polygonBarriers&&=JSON.stringify(t.polygonBarriers),r.polylineBarriers&&=JSON.stringify(t.polylineBarriers),r.restrictionAttributeNames&&=t.restrictionAttributeNames?.join(),r.stops&&=JSON.stringify(t.stops),r.travelMode&&=JSON.stringify(t.travelMode),r}var pe=r(22671),ce=r(66552),ye=r(37807);const de=new ce.J({0:"informative",1:"process-definition",2:"process-start",3:"process-stop",50:"warning",100:"error",101:"empty",200:"abort"});let me=class extends ye.A{constructor(e){super(e),this.type=null}};(0,i.Cg)([(0,f.MZ)({type:String,json:{read:de.read,write:de.write}})],me.prototype,"type",void 0),me=(0,i.Cg)([(0,f.$K)("esri.rest.support.NAMessage")],me);const ge=me;var he=r(82799),fe=r(86738);let be=class extends Z.o{constructor(e){super(e)}};(0,i.Cg)([(0,f.MZ)({json:{read:{source:"string"}}})],be.prototype,"text",void 0),(0,i.Cg)([(0,W.e)(k.Ec,{name:"stringType"})],be.prototype,"type",void 0),be=(0,i.Cg)([(0,f.$K)("esri.rest.support.DirectionsString")],be);const ve=be;let Ce=class extends Z.o{constructor(e){super(e),this.arriveTime=null,this.arriveTimeOffset=null,this.geometry=null,this.strings=null}readArriveTimeOffset(e,t){return le(t.ETA,t.arriveTimeUTC)}readGeometry(e,t){return fe.A.fromJSON(t.point)}};(0,i.Cg)([(0,f.MZ)({type:Date,json:{read:{source:"arriveTimeUTC"}}})],Ce.prototype,"arriveTime",void 0),(0,i.Cg)([(0,f.MZ)()],Ce.prototype,"arriveTimeOffset",void 0),(0,i.Cg)([(0,H.w)("arriveTimeOffset",["arriveTimeUTC","ETA"])],Ce.prototype,"readArriveTimeOffset",null),(0,i.Cg)([(0,f.MZ)({type:fe.A})],Ce.prototype,"geometry",void 0),(0,i.Cg)([(0,H.w)("geometry",["point"])],Ce.prototype,"readGeometry",null),(0,i.Cg)([(0,f.MZ)({type:[ve]})],Ce.prototype,"strings",void 0),Ce=(0,i.Cg)([(0,f.$K)("esri.rest.support.DirectionsEvent")],Ce);const we=Ce;let Te=class extends s.A{constructor(e){super(e),this.events=null,this.geometry=null,this.strings=null}set attributes(e){super.attributes=e}readGeometry(e,t){const r=function(e){if(null==e||""===e)return null;let t=0,r=0,i=0,o=0;const s=[];let n,a,l,u,p,c,y,d,m=0,g=0,h=0;if(p=e.match(/((\+|-)[^+\-|]+|\|)/g),p||(p=[]),0===parseInt(p[m],32)){m=2;const e=parseInt(p[m],32);m++,c=parseInt(p[m],32),m++,1&e&&(g=p.indexOf("|")+1,y=parseInt(p[g],32),g++),2&e&&(h=p.indexOf("|",g)+1,d=parseInt(p[h],32),h++)}else c=parseInt(p[m],32),m++;for(;m<p.length&&"|"!==p[m];){n=parseInt(p[m],32)+t,m++,t=n,a=parseInt(p[m],32)+r,m++,r=a;const e=[n/c,a/c];g&&(u=parseInt(p[g],32)+i,g++,i=u,e.push(u/y)),h&&(l=parseInt(p[h],32)+o,h++,o=l,e.push(l/d)),s.push(e)}return{paths:[s],hasZ:g>0,hasM:h>0}}(t.compressedGeometry);return null!=r?he.A.fromJSON(r):null}};(0,i.Cg)([(0,f.MZ)({type:[we]})],Te.prototype,"events",void 0),(0,i.Cg)([(0,f.MZ)({types:{base:null,key:"type",typeMap:{polygon:he.A},defaultKeyValue:"polygon"}})],Te.prototype,"geometry",void 0),(0,i.Cg)([(0,H.w)("geometry",["compressedGeometry"])],Te.prototype,"readGeometry",null),(0,i.Cg)([(0,f.MZ)({type:[ve]})],Te.prototype,"strings",void 0),Te=(0,i.Cg)([(0,f.$K)("esri.rest.support.DirectionsFeature")],Te);const Se=Te;let Me=class extends pe.A{constructor(e){super(e),this.extent=null,this.features=[],this.geometryType="polyline",this.routeId=null,this.routeName=null,this.totalDriveTime=null,this.totalLength=null,this.totalTime=null}readFeatures(e,t){if(!e)return[];const r=t.summary.envelope.spatialReference??t.spatialReference,i=r&&T.A.fromJSON(r);return e.map(e=>{const t=Se.fromJSON(e);if(null!=t.geometry&&(t.geometry.spatialReference=i),null!=t.events)for(const e of t.events)null!=e.geometry&&(e.geometry.spatialReference=i);return t})}get mergedGeometry(){return this.features?function(e,t){if(0===e.length)return new he.A({spatialReference:t});const r=[];for(const t of e)for(const e of t.paths)r.push(...e);const i=[];r.forEach((e,t)=>{0!==t&&e[0]===r[t-1][0]&&e[1]===r[t-1][1]||i.push(e)});const{hasM:o,hasZ:s}=e[0];return new he.A({hasM:o,hasZ:s,paths:[i],spatialReference:t})}(this.features.map(({geometry:e})=>e),this.extent.spatialReference):null}get strings(){return this.features.flatMap(({strings:e})=>e).filter(a.Ru)}};(0,i.Cg)([(0,f.MZ)({type:v.A,json:{read:{source:"summary.envelope"}}})],Me.prototype,"extent",void 0),(0,i.Cg)([(0,f.MZ)({nonNullable:!0})],Me.prototype,"features",void 0),(0,i.Cg)([(0,H.w)("features")],Me.prototype,"readFeatures",null),(0,i.Cg)([(0,f.MZ)()],Me.prototype,"geometryType",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],Me.prototype,"mergedGeometry",null),(0,i.Cg)([(0,f.MZ)()],Me.prototype,"routeId",void 0),(0,i.Cg)([(0,f.MZ)()],Me.prototype,"routeName",void 0),(0,i.Cg)([(0,f.MZ)({value:null,readOnly:!0})],Me.prototype,"strings",null),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"summary.totalDriveTime"}}})],Me.prototype,"totalDriveTime",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"summary.totalLength"}}})],Me.prototype,"totalLength",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"summary.totalTime"}}})],Me.prototype,"totalTime",void 0),Me=(0,i.Cg)([(0,f.$K)("esri.rest.support.DirectionsFeatureSet")],Me);const Ae=Me;let Ie=class extends Z.o{constructor(e){super(e),this.directionLines=null,this.directionPoints=null,this.directions=null,this.route=null,this.routeName=null,this.stops=null,this.traversedEdges=null,this.traversedJunctions=null,this.traversedTurns=null}};(0,i.Cg)([(0,f.MZ)({type:pe.A,json:{write:!0}})],Ie.prototype,"directionLines",void 0),(0,i.Cg)([(0,f.MZ)({type:pe.A,json:{write:!0}})],Ie.prototype,"directionPoints",void 0),(0,i.Cg)([(0,f.MZ)({type:Ae,json:{write:!0}})],Ie.prototype,"directions",void 0),(0,i.Cg)([(0,f.MZ)({type:s.A,json:{write:!0}})],Ie.prototype,"route",void 0),(0,i.Cg)([(0,f.MZ)({type:String,json:{write:!0}})],Ie.prototype,"routeName",void 0),(0,i.Cg)([(0,f.MZ)({type:[s.A],json:{write:!0}})],Ie.prototype,"stops",void 0),(0,i.Cg)([(0,f.MZ)({type:pe.A,json:{write:!0}})],Ie.prototype,"traversedEdges",void 0),(0,i.Cg)([(0,f.MZ)({type:pe.A,json:{write:!0}})],Ie.prototype,"traversedJunctions",void 0),(0,i.Cg)([(0,f.MZ)({type:pe.A,json:{write:!0}})],Ie.prototype,"traversedTurns",void 0),Ie=(0,i.Cg)([(0,f.$K)("esri.rest.support.RouteResult")],Ie);const Le=Ie;function Oe(e){return e?pe.A.fromJSON(e).features.filter(a.Ru):[]}let Ne=class extends Z.o{constructor(e){super(e),this.checksum=null,this.messages=null,this.pointBarriers=null,this.polylineBarriers=null,this.polygonBarriers=null,this.routeResults=null}readPointBarriers(e,t){return Oe(t.barriers)}readPolylineBarriers(e){return Oe(e)}readPolygonBarriers(e){return Oe(e)}};function Ze(e){return e instanceof pe.A}async function De(e,t,r){const i=[],o=[],s={},n={},a=(0,U.Dl)(e),{path:l}=a;Ze(t.stops)&&ee(t.stops.features,o,"stops.features",s),Ze(t.pointBarriers)&&ee(t.pointBarriers.features,o,"pointBarriers.features",s),Ze(t.polylineBarriers)&&ee(t.polylineBarriers.features,o,"polylineBarriers.features",s),Ze(t.polygonBarriers)&&ee(t.polygonBarriers.features,o,"polygonBarriers.features",s);const u=await(0,ie.el)(o);for(const e in s){const t=s[e];i.push(e),n[e]=u.slice(t[0],t[1])}if(function(e,t){for(let r=0;r<t.length;r++){const i=e[t[r]];if(i&&i.length)for(const e of i)if(null!=e&&e.hasZ)return!0}return!1}(n,i)){let e=null;try{e=await te(l,t.apiKey,r)}catch{}e&&!e.hasZ&&function(e,t){for(let r=0;r<t.length;r++){const i=e[t[r]];if(i&&i.length)for(const e of i)e.z=void 0}p.A.getLogger("esri.rest.networkService").warnOnce("The remote Network Analysis service is powered by a network dataset which is not Z-aware.\nZ-coordinates of the input geometry are ignored.")}(n,i)}for(const e in n)n[e].forEach((r,i)=>{(0,re.Jt)(t,e)[i].geometry=r});const c={...r,query:{...a.query,...ue(t),f:"json"}},y=l.endsWith("/solve")?l:`${l}/solve`,{data:d}=await(0,G.A)(y,c);return function(e){const{barriers:t,checksum:r,directionLines:i,directionPoints:o,directions:s,messages:n,polygonBarriers:a,polylineBarriers:l,routes:u,stops:p,traversedEdges:c,traversedJunctions:y,traversedTurns:d}=e,m=e=>{const t=h.find(t=>t.routeName===e);if(null!=t)return t;const r={routeId:h.length+1,routeName:e};return h.push(r),r},g=e=>{const t=h.find(t=>t.routeId===e);if(null!=t)return t;const r={routeId:e,routeName:null};return h.push(r),r},h=[];u?.features.forEach((e,t)=>{e.geometry.spatialReference=u.spatialReference??void 0;const r=e.attributes.Name,i=t+1;h.push({routeId:i,routeName:r,route:e})}),s?.forEach(e=>{const{routeName:t}=e;m(t).directions=e});const f=p?.features.every(e=>null==e.attributes.RouteName)&&h.length>0?h[0].routeName:null;return p?.features.forEach(e=>{e.geometry&&(e.geometry.spatialReference??=p.spatialReference??void 0);const t=f??e.attributes.RouteName,r=m(t);r.stops??=[],r.stops.push(e)}),i?.features.forEach(e=>{const t=e.attributes.RouteID,r=g(t),{geometryType:o,spatialReference:s}=i;r.directionLines??={features:[],geometryType:o,spatialReference:s},r.directionLines.features.push(e)}),o?.features.forEach(e=>{const t=e.attributes.RouteID,r=g(t),{geometryType:i,spatialReference:s}=o;r.directionPoints??={features:[],geometryType:i,spatialReference:s},r.directionPoints.features.push(e)}),c?.features.forEach(e=>{const t=e.attributes.RouteID,r=g(t),{geometryType:i,spatialReference:o}=c;r.traversedEdges??={features:[],geometryType:i,spatialReference:o},r.traversedEdges.features.push(e)}),y?.features.forEach(e=>{const t=e.attributes.RouteID,r=g(t),{geometryType:i,spatialReference:o}=y;r.traversedJunctions??={features:[],geometryType:i,spatialReference:o},r.traversedJunctions.features.push(e)}),d?.features.forEach(e=>{const t=e.attributes.RouteID,r=g(t);r.traversedTurns??={features:[]},r.traversedTurns.features.push(e)}),Ne.fromJSON({barriers:t,checksum:r,messages:n,polygonBarriers:a,polylineBarriers:l,routeResults:h})}(d)}var je;(0,i.Cg)([(0,f.MZ)({type:String})],Ne.prototype,"checksum",void 0),(0,i.Cg)([(0,f.MZ)({type:[ge]})],Ne.prototype,"messages",void 0),(0,i.Cg)([(0,f.MZ)({type:[s.A]})],Ne.prototype,"pointBarriers",void 0),(0,i.Cg)([(0,H.w)("pointBarriers",["barriers"])],Ne.prototype,"readPointBarriers",null),(0,i.Cg)([(0,f.MZ)({type:[s.A]})],Ne.prototype,"polylineBarriers",void 0),(0,i.Cg)([(0,H.w)("polylineBarriers")],Ne.prototype,"readPolylineBarriers",null),(0,i.Cg)([(0,f.MZ)({type:[s.A]})],Ne.prototype,"polygonBarriers",void 0),(0,i.Cg)([(0,H.w)("polygonBarriers")],Ne.prototype,"readPolygonBarriers",null),(0,i.Cg)([(0,f.MZ)({type:[Le]})],Ne.prototype,"routeResults",void 0),Ne=(0,i.Cg)([(0,f.$K)("esri.rest.support.RouteSolveResult")],Ne);let Be=class extends((0,z.OU)(Z.o)){static{je=this}constructor(e){super(e),this.directionLineType=null,this.directionPointId=null,this.distance=null,this.duration=null,this.fromLevel=null,this.geometry=null,this.objectId=null,this.popupTemplate=null,this.symbol=null,this.toLevel=null,this.type="direction-line"}static{this.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID",editable:!1,nullable:!1},{name:"DirectionLineType",alias:"Line Type",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"DirectionPointID",alias:"Direction Point ID",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"FromLevel",alias:"From Level",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"Meters",alias:"Meters",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"Minutes",alias:"Minutes",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"ToLevel",alias:"To Level",type:"esriFieldTypeInteger",editable:!0,nullable:!0}]}static fromGraphic(e){return new je({directionLineType:k.gD.fromJSON(e.attributes.DirectionLineType),directionPointId:e.attributes.DirectionPointID,distance:e.attributes.Meters,duration:e.attributes.Minutes,fromLevel:e.attributes.FromLevel??null,geometry:e.geometry,objectId:e.attributes.ObjectID??e.attributes.__OBJECTID,popupTemplate:e.popupTemplate,symbol:e.symbol,toLevel:e.attributes.ToLevel??null})}toGraphic(){const e={ObjectID:this.objectId,DirectionLineType:this.directionLineType?k.gD.toJSON(this.directionLineType):null,DirectionPointID:this.directionPointId,Meters:this.distance,Minutes:this.duration};return null!=this.fromLevel&&(e.FromLevel=this.fromLevel),null!=this.toLevel&&(e.ToLevel=this.toLevel),new s.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};var Fe;(0,i.Cg)([(0,f.MZ)({type:k.gD.apiValues,json:{read:{source:"attributes.DirectionLineType",reader:k.gD.read}}})],Be.prototype,"directionLineType",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.DirectionPointID"}}})],Be.prototype,"directionPointId",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.Meters"}}})],Be.prototype,"distance",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.Minutes"}}})],Be.prototype,"duration",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.FromLevel"}}})],Be.prototype,"fromLevel",void 0),(0,i.Cg)([(0,f.MZ)({type:he.A})],Be.prototype,"geometry",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.ObjectID"}}})],Be.prototype,"objectId",void 0),(0,i.Cg)([(0,f.MZ)({type:n.A})],Be.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,f.MZ)({types:j.Es})],Be.prototype,"symbol",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.ToLevel"}}})],Be.prototype,"toLevel",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Be.prototype,"type",void 0),Be=je=(0,i.Cg)([(0,f.$K)("esri.rest.support.DirectionLine")],Be);let Ee=class extends((0,z.OU)(Z.o)){static{Fe=this}constructor(e){super(e),this.alternateName=null,this.arrivalTime=null,this.arrivalTimeOffset=null,this.azimuth=null,this.branchName=null,this.directionPointType=null,this.displayText=null,this.exitName=null,this.geometry=null,this.intersectingName=null,this.level=null,this.name=null,this.objectId=null,this.popupTemplate=null,this.sequence=null,this.shortVoiceInstruction=null,this.stopId=null,this.symbol=null,this.towardName=null,this.type="direction-point",this.voiceInstruction=null}readArrivalTime(e,t){return null!=t.attributes.ArrivalTime?new Date(t.attributes.ArrivalTime):null}static{this.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID",editable:!1,nullable:!1},{name:"AlternateName",alias:"Alternate Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:2048},{name:"ArrivalTime",alias:"Arrival Time",type:"esriFieldTypeDate",editable:!0,nullable:!0,length:36},{name:"ArrivalUTCOffset",alias:"Arrival Time Offset",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"Azimuth",alias:"Azimuth",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"BranchName",alias:"Branch Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:2048},{name:"DirectionPointType",alias:"Directions Point Type",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"DisplayText",alias:"Display Text",type:"esriFieldTypeString",editable:!0,nullable:!0,length:2048},{name:"ExitName",alias:"Exit Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:2048},{name:"IntersectingName",alias:"Intersecting Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:2048},{name:"Level",alias:"Level",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"Name",alias:"Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:2048},{name:"Sequence",alias:"Sequence",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"ShortVoiceInstruction",alias:"Short Voice Instruction",type:"esriFieldTypeString",editable:!0,nullable:!0,length:2048},{name:"StopID",alias:"Stop ID",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"TowardName",alias:"Toward Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:2048},{name:"VoiceInstruction",alias:"Voice Instruction",type:"esriFieldTypeString",editable:!0,nullable:!0,length:2048}]}static fromGraphic(e){return new Fe({alternateName:e.attributes.AlternateName??null,arrivalTime:null!=e.attributes.ArrivalTime?new Date(e.attributes.ArrivalTime):null,arrivalTimeOffset:e.attributes.ArrivalUTCOffset??null,azimuth:e.attributes.Azimuth??null,branchName:e.attributes.BranchName??null,directionPointType:k._6.fromJSON(e.attributes.DirectionPointType),displayText:e.attributes.DisplayText??null,exitName:e.attributes.ExitName??null,geometry:e.geometry,intersectingName:e.attributes.IntersectingName??null,level:e.attributes.Level??null,name:e.attributes.Name??null,objectId:e.attributes.ObjectID??e.attributes.__OBJECTID,popupTemplate:e.popupTemplate,sequence:e.attributes.Sequence,shortVoiceInstruction:e.attributes.ShortVoiceInstruction??null,stopId:e.attributes.StopID??null,symbol:e.symbol,towardName:e.attributes.TowardName??null,voiceInstruction:e.attributes.VoiceInstruction??null})}toGraphic(){const e={ObjectID:this.objectId,DirectionPointType:this.directionPointType?k._6.toJSON(this.directionPointType):null,Sequence:this.sequence,StopID:this.stopId};return null!=this.alternateName&&(e.AlternateName=this.alternateName),null!=this.arrivalTime&&(e.ArrivalTime=this.arrivalTime.getTime()),null!=this.arrivalTimeOffset&&(e.ArrivalUTCOffset=this.arrivalTimeOffset),null!=this.azimuth&&(e.Azimuth=this.azimuth),null!=this.branchName&&(e.BranchName=this.branchName),null!=this.displayText&&(e.DisplayText=this.displayText),null!=this.exitName&&(e.ExitName=this.exitName),null!=this.intersectingName&&(e.IntersectingName=this.intersectingName),null!=this.level&&(e.Level=this.level),null!=this.name&&(e.Name=this.name),null!=this.shortVoiceInstruction&&(e.ShortVoiceInstruction=this.shortVoiceInstruction),null!=this.towardName&&(e.TowardName=this.towardName),null!=this.voiceInstruction&&(e.VoiceInstruction=this.voiceInstruction),new s.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};var Pe;(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.AlternateName"}}})],Ee.prototype,"alternateName",void 0),(0,i.Cg)([(0,f.MZ)({type:Date})],Ee.prototype,"arrivalTime",void 0),(0,i.Cg)([(0,H.w)("arrivalTime",["attributes.ArrivalTime"])],Ee.prototype,"readArrivalTime",null),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.ArrivalUTCOffset"}}})],Ee.prototype,"arrivalTimeOffset",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.Azimuth"}}})],Ee.prototype,"azimuth",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.BranchName"}}})],Ee.prototype,"branchName",void 0),(0,i.Cg)([(0,f.MZ)({type:k._6.apiValues,json:{read:{source:"attributes.DirectionPointType",reader:k._6.read}}})],Ee.prototype,"directionPointType",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.DisplayText"}}})],Ee.prototype,"displayText",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.ExitName"}}})],Ee.prototype,"exitName",void 0),(0,i.Cg)([(0,f.MZ)({type:fe.A})],Ee.prototype,"geometry",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.IntersectingName"}}})],Ee.prototype,"intersectingName",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.Level"}}})],Ee.prototype,"level",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.Name"}}})],Ee.prototype,"name",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.ObjectID"}}})],Ee.prototype,"objectId",void 0),(0,i.Cg)([(0,f.MZ)({type:n.A})],Ee.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.Sequence"}}})],Ee.prototype,"sequence",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.ShortVoiceInstruction"}}})],Ee.prototype,"shortVoiceInstruction",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.StopID"}}})],Ee.prototype,"stopId",void 0),(0,i.Cg)([(0,f.MZ)({types:j.Es})],Ee.prototype,"symbol",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.TowardName"}}})],Ee.prototype,"towardName",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Ee.prototype,"type",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.VoiceInstruction"}}})],Ee.prototype,"voiceInstruction",void 0),Ee=Fe=(0,i.Cg)([(0,f.$K)("esri.rest.support.DirectionPoint")],Ee);let Re=class extends((0,z.OU)(Z.o)){static{Pe=this}constructor(e){super(e),this.addedCost=null,this.barrierType=null,this.costs=null,this.curbApproach=null,this.fullEdge=null,this.name=null,this.objectId=null,this.popupTemplate=null,this.positionAlong=null,this.sideOfEdge=null,this.sourceId=null,this.sourceOid=null,this.status=null,this.symbol=null,this.type="point-barrier"}readCosts(e,t){return oe(t.attributes,"Attr_")}writeCosts(e,t){se(e,t,"Attr_")}set geometry(e){this._get("geometry")&&(this._set("positionAlong",null),this._set("sideOfEdge",null),this._set("sourceId",null),this._set("sourceOid",null),this._set("status",null)),this._set("geometry",e)}static{this.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID",editable:!1,nullable:!1},{name:"AddedCost",alias:"Added Cost",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"BarrierType",alias:"Barrier Type",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"Costs",alias:"Costs",type:"esriFieldTypeString",editable:!0,nullable:!0,length:1048576},{name:"CurbApproach",alias:"Curb Approach",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"FullEdge",alias:"Full Edge",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"Name",alias:"Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:255},{name:"Status",alias:"Status",type:"esriFieldTypeInteger",editable:!0,nullable:!0}]}static fromGraphic(e){return new Pe({addedCost:e.attributes.AddedCost??null,barrierType:null!=e.attributes.BarrierType?k.iM.fromJSON(e.attributes.BarrierType):null,costs:null!=e.attributes.Costs?ne(JSON.parse(e.attributes.Costs)):null,curbApproach:null!=e.attributes.CurbApproach?k.JJ.fromJSON(e.attributes.CurbApproach):null,fullEdge:null!=e.attributes.FullEdge?k.fe.fromJSON(e.attributes.FullEdge):null,geometry:e.geometry,name:e.attributes.Name??null,objectId:e.attributes.ObjectID??e.attributes.__OBJECTID,popupTemplate:e.popupTemplate,status:null!=e.attributes.Status?k.$r.fromJSON(e.attributes.Status):null,symbol:e.symbol})}toGraphic(){const e={ObjectID:this.objectId,AddedCost:this.addedCost,BarrierType:this.barrierType?k.iM.toJSON(this.barrierType):null,Costs:this.costs?JSON.stringify(ae(this.costs)):null,CurbApproach:this.curbApproach?k.JJ.toJSON(this.curbApproach):null,FullEdge:this.fullEdge?k.fe.toJSON(this.fullEdge):null,Name:this.name,Status:this.status?k.$r.toJSON(this.status):null};return new s.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};(0,i.Cg)([(0,f.MZ)()],Re.prototype,"addedCost",void 0),(0,i.Cg)([(0,f.MZ)({type:k.iM.apiValues,json:{name:"attributes.BarrierType",read:{reader:k.iM.read},write:{writer:k.iM.write}}})],Re.prototype,"barrierType",void 0),(0,i.Cg)([(0,f.MZ)()],Re.prototype,"costs",void 0),(0,i.Cg)([(0,H.w)("costs",["attributes"])],Re.prototype,"readCosts",null),(0,i.Cg)([(0,Y.K)("costs")],Re.prototype,"writeCosts",null),(0,i.Cg)([(0,f.MZ)({type:k.JJ.apiValues,json:{read:{source:"attributes.CurbApproach",reader:k.JJ.read}}})],Re.prototype,"curbApproach",void 0),(0,i.Cg)([(0,f.MZ)({type:k.fe.apiValues,json:{name:"attributes.FullEdge",read:{reader:k.fe.read},write:{writer:k.fe.write}}})],Re.prototype,"fullEdge",void 0),(0,i.Cg)([(0,f.MZ)({type:fe.A,json:{write:!0},value:null})],Re.prototype,"geometry",null),(0,i.Cg)([(0,f.MZ)({json:{name:"attributes.Name"}})],Re.prototype,"name",void 0),(0,i.Cg)([(0,f.MZ)({json:{name:"attributes.ObjectID"}})],Re.prototype,"objectId",void 0),(0,i.Cg)([(0,f.MZ)({type:n.A})],Re.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,f.MZ)({json:{name:"attributes.PosAlong"}})],Re.prototype,"positionAlong",void 0),(0,i.Cg)([(0,f.MZ)({type:k.mt.apiValues,json:{name:"attributes.SideOfEdge",read:{reader:k.mt.read},write:{writer:k.mt.write}}})],Re.prototype,"sideOfEdge",void 0),(0,i.Cg)([(0,f.MZ)({json:{name:"attributes.SourceID"}})],Re.prototype,"sourceId",void 0),(0,i.Cg)([(0,f.MZ)({json:{name:"attributes.SourceOID"}})],Re.prototype,"sourceOid",void 0),(0,i.Cg)([(0,f.MZ)({type:k.$r.apiValues,json:{read:{source:"attributes.Status",reader:k.$r.read}}})],Re.prototype,"status",void 0),(0,i.Cg)([(0,f.MZ)({types:j.Es})],Re.prototype,"symbol",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Re.prototype,"type",void 0),Re=Pe=(0,i.Cg)([(0,f.$K)("esri.rest.support.PointBarrier")],Re);var xe,Je=r(39829);let _e=class extends((0,z.OU)(Z.o)){static{xe=this}constructor(e){super(e),this.barrierType=null,this.costs=null,this.geometry=null,this.name=null,this.objectId=null,this.popupTemplate=null,this.scaleFactor=null,this.symbol=null,this.type="polygon-barrier"}readCosts(e,t){return oe(t.attributes,"Attr_")}writeCosts(e,t){se(e,t,"Attr_")}static{this.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID",editable:!1,nullable:!1},{name:"BarrierType",alias:"Barrier Type",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"Costs",alias:"Costs",type:"esriFieldTypeString",editable:!0,nullable:!0,length:1048576},{name:"Name",alias:"Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:255},{name:"ScaleFactor",alias:"Scale Factor",type:"esriFieldTypeDouble",editable:!0,nullable:!0}]}static fromGraphic(e){return new xe({barrierType:null!=e.attributes.BarrierType?k.iM.fromJSON(e.attributes.BarrierType):null,costs:null!=e.attributes.Costs?ne(JSON.parse(e.attributes.Costs)):null,geometry:e.geometry,name:e.attributes.Name??null,objectId:e.attributes.ObjectID??e.attributes.__OBJECTID,popupTemplate:e.popupTemplate,scaleFactor:e.attributes.ScaleFactor??null,symbol:e.symbol})}toGraphic(){const e={ObjectID:this.objectId,BarrierType:this.barrierType?k.iM.toJSON(this.barrierType):null,Costs:this.costs?JSON.stringify(ae(this.costs)):null,Name:this.name??null,ScaleFactor:this.scaleFactor??null};return new s.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};var Ge;(0,i.Cg)([(0,f.MZ)({type:k.iM.apiValues,json:{name:"attributes.BarrierType",read:{reader:k.iM.read},write:{writer:k.iM.write}}})],_e.prototype,"barrierType",void 0),(0,i.Cg)([(0,f.MZ)()],_e.prototype,"costs",void 0),(0,i.Cg)([(0,H.w)("costs",["attributes"])],_e.prototype,"readCosts",null),(0,i.Cg)([(0,Y.K)("costs")],_e.prototype,"writeCosts",null),(0,i.Cg)([(0,f.MZ)({type:Je.A,json:{write:!0}})],_e.prototype,"geometry",void 0),(0,i.Cg)([(0,f.MZ)({json:{name:"attributes.Name"}})],_e.prototype,"name",void 0),(0,i.Cg)([(0,f.MZ)({json:{name:"attributes.ObjectID"}})],_e.prototype,"objectId",void 0),(0,i.Cg)([(0,f.MZ)({type:n.A})],_e.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,f.MZ)()],_e.prototype,"scaleFactor",void 0),(0,i.Cg)([(0,f.MZ)({types:j.Es})],_e.prototype,"symbol",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],_e.prototype,"type",void 0),_e=xe=(0,i.Cg)([(0,f.$K)("esri.rest.support.PolygonBarrier")],_e);let Ue=class extends((0,z.OU)(Z.o)){static{Ge=this}constructor(e){super(e),this.barrierType=null,this.costs=null,this.geometry=null,this.name=null,this.objectId=null,this.popupTemplate=null,this.scaleFactor=null,this.symbol=null,this.type="polyline-barrier"}readCosts(e,t){return oe(t.attributes,"Attr_")}static{this.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID",editable:!1,nullable:!1},{name:"BarrierType",alias:"Barrier Type",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"Costs",alias:"Costs",type:"esriFieldTypeString",editable:!0,nullable:!0,length:1048576},{name:"Name",alias:"Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:255},{name:"ScaleFactor",alias:"Scale Factor",type:"esriFieldTypeDouble",editable:!0,nullable:!0}]}static fromGraphic(e){return new Ge({barrierType:null!=e.attributes.BarrierType?k.iM.fromJSON(e.attributes.BarrierType):null,costs:null!=e.attributes.Costs?ne(JSON.parse(e.attributes.Costs)):null,geometry:e.geometry,name:e.attributes.Name??null,objectId:e.attributes.ObjectID??e.attributes.__OBJECTID,popupTemplate:e.popupTemplate,scaleFactor:e.attributes.ScaleFactor??null,symbol:e.symbol})}toGraphic(){const e={ObjectID:this.objectId,BarrierType:this.barrierType?k.iM.toJSON(this.barrierType):null,Costs:this.costs?JSON.stringify(ae(this.costs)):null,Name:this.name,ScaleFactor:this.scaleFactor};return new s.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};(0,i.Cg)([(0,f.MZ)({type:k.iM.apiValues,json:{read:{source:"attributes.BarrierType",reader:k.iM.read}}})],Ue.prototype,"barrierType",void 0),(0,i.Cg)([(0,f.MZ)()],Ue.prototype,"costs",void 0),(0,i.Cg)([(0,H.w)("costs",["attributes"])],Ue.prototype,"readCosts",null),(0,i.Cg)([(0,f.MZ)({type:he.A,json:{write:!0}})],Ue.prototype,"geometry",void 0),(0,i.Cg)([(0,f.MZ)({json:{name:"attributes.Name"}})],Ue.prototype,"name",void 0),(0,i.Cg)([(0,f.MZ)({json:{name:"attributes.ObjectID"}})],Ue.prototype,"objectId",void 0),(0,i.Cg)([(0,f.MZ)({type:n.A})],Ue.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,f.MZ)()],Ue.prototype,"scaleFactor",void 0),(0,i.Cg)([(0,f.MZ)({types:j.Es})],Ue.prototype,"symbol",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Ue.prototype,"type",void 0),Ue=Ge=(0,i.Cg)([(0,f.$K)("esri.rest.support.PolylineBarrier")],Ue);let ke=class extends Z.o{constructor(e){super(e),this.accumulateAttributes=null,this.directionsLanguage=null,this.findBestSequence=null,this.preserveFirstStop=null,this.preserveLastStop=null,this.startTimeIsUTC=null,this.timeWindowsAreUTC=null,this.travelMode=null}readAccumulateAttributes(e){return null==e?null:e.map(e=>k.et.fromJSON(e))}writeAccumulateAttributes(e,t,r){e?.length&&(t[r]=e.map(e=>k.et.toJSON(e)))}};var We;(0,i.Cg)([(0,f.MZ)({type:[String],json:{name:"accumulateAttributeNames",write:!0}})],ke.prototype,"accumulateAttributes",void 0),(0,i.Cg)([(0,H.w)("accumulateAttributes")],ke.prototype,"readAccumulateAttributes",null),(0,i.Cg)([(0,Y.K)("accumulateAttributes")],ke.prototype,"writeAccumulateAttributes",null),(0,i.Cg)([(0,f.MZ)({type:String,json:{write:!0}})],ke.prototype,"directionsLanguage",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],ke.prototype,"findBestSequence",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],ke.prototype,"preserveFirstStop",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],ke.prototype,"preserveLastStop",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],ke.prototype,"startTimeIsUTC",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],ke.prototype,"timeWindowsAreUTC",void 0),(0,i.Cg)([(0,f.MZ)({type:Q,json:{write:!0}})],ke.prototype,"travelMode",void 0),ke=(0,i.Cg)([(0,f.$K)("esri.rest.support.RouteSettings")],ke);let Ve=class extends((0,z.OU)(Z.o)){static{We=this}constructor(e){super(e),this.analysisSettings=null,this.endTime=null,this.endTimeOffset=null,this.firstStopId=null,this.geometry=null,this.lastStopId=null,this.messages=null,this.name=null,this.objectId=null,this.popupTemplate=null,this.startTime=null,this.startTimeOffset=null,this.stopCount=null,this.symbol=null,this.totalCosts=null,this.totalDistance=null,this.totalDuration=null,this.totalLateDuration=null,this.totalViolations=null,this.totalWait=null,this.totalWaitDuration=null,this.type="route-info",this.version="1.0.0"}readEndTime(e,t){return null!=t.attributes.EndTimeUTC?new Date(t.attributes.EndTimeUTC):null}readEndTimeOffset(e,t){return le(t.attributes.EndTime,t.attributes.EndTimeUTC)}readStartTime(e,t){return null!=t.attributes.StartTimeUTC?new Date(t.attributes.StartTimeUTC):null}readStartTimeOffset(e,t){return le(t.attributes.StartTime,t.attributes.StartTimeUTC)}readTotalCosts(e,t){return oe(t.attributes,"Total_")}readTotalViolations(e,t){return oe(t.attributes,"TotalViolation_")}readTotalWait(e,t){return oe(t.attributes,"TotalWait_")}static{this.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID",editable:!1,nullable:!1},{name:"AnalysisSettings",alias:"Analysis Settings",type:"esriFieldTypeString",editable:!0,nullable:!0,length:1048576},{name:"EndTime",alias:"End Time",type:"esriFieldTypeDate",editable:!0,nullable:!0,length:36},{name:"EndUTCOffset",alias:"End Time Offset",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"Messages",alias:"Messages",type:"esriFieldTypeString",editable:!0,nullable:!0,length:1048576},{name:"RouteName",alias:"Route Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:1024},{name:"StartTime",alias:"Start Time",type:"esriFieldTypeDate",editable:!0,nullable:!0,length:36},{name:"StartUTCOffset",alias:"Start Time Offset",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"TotalCosts",alias:"Total Costs",type:"esriFieldTypeString",editable:!0,nullable:!0,length:1048576},{name:"TotalLateMinutes",alias:"Total Late Minutes",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"TotalMeters",alias:"Total Meters",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"TotalMinutes",alias:"Total Minutes",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"TotalWaitMinutes",alias:"Total Wait Minutes",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"Version",alias:"Version",type:"esriFieldTypeString",editable:!0,nullable:!0,length:16}]}static fromGraphic(e){return new We({analysisSettings:null!=e.attributes.AnalysisSettings?ke.fromJSON(JSON.parse(e.attributes.AnalysisSettings)):null,endTime:null!=e.attributes.EndTime?new Date(e.attributes.EndTime):null,endTimeOffset:e.attributes.EndUTCOffset??null,geometry:e.geometry,messages:null!=e.attributes.Messages?JSON.parse(e.attributes.Messages):null,name:e.attributes.RouteName,objectId:e.attributes.ObjectID??e.attributes.__OBJECTID,popupTemplate:e.popupTemplate,startTime:null!=e.attributes.StartTime?new Date(e.attributes.StartTime):null,startTimeOffset:e.attributes.StartUTCOffset??null,symbol:e.symbol,totalCosts:null!=e.attributes.TotalCosts?ne(JSON.parse(e.attributes.TotalCosts)):null,totalDistance:e.attributes.TotalMeters??null,totalDuration:e.attributes.TotalMinutes??null,totalLateDuration:e.attributes.TotalLateMinutes??null,totalWaitDuration:e.attributes.TotalWaitMinutes??null,version:e.attributes.Version})}toGraphic(){const e={ObjectID:this.objectId,AnalysisSettings:this.analysisSettings?JSON.stringify(this.analysisSettings.toJSON()):null,EndTime:this.endTime?.getTime()??null,EndUTCOffset:this.endTimeOffset,Messages:this.messages?JSON.stringify(this.messages):null,RouteName:this.name,StartTime:this.startTime?.getTime()??null,StartUTCOffset:this.startTimeOffset,TotalCosts:this.totalCosts?JSON.stringify(ae(this.totalCosts)):null,TotalLateMinutes:this.totalLateDuration,TotalMeters:this.totalDistance,TotalMinutes:this.totalDuration,TotalWaitMinutes:this.totalWaitDuration,Version:this.version};return new s.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};(0,i.Cg)([(0,f.MZ)()],Ve.prototype,"analysisSettings",void 0),(0,i.Cg)([(0,f.MZ)({type:Date})],Ve.prototype,"endTime",void 0),(0,i.Cg)([(0,H.w)("endTime",["attributes.EndTimeUTC"])],Ve.prototype,"readEndTime",null),(0,i.Cg)([(0,f.MZ)()],Ve.prototype,"endTimeOffset",void 0),(0,i.Cg)([(0,H.w)("endTimeOffset",["attributes.EndTime","attributes.EndTimeUTC"])],Ve.prototype,"readEndTimeOffset",null),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.FirstStopID"}}})],Ve.prototype,"firstStopId",void 0),(0,i.Cg)([(0,f.MZ)({type:he.A})],Ve.prototype,"geometry",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.LastStopID"}}})],Ve.prototype,"lastStopId",void 0),(0,i.Cg)([(0,f.MZ)()],Ve.prototype,"messages",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.Name"}}})],Ve.prototype,"name",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.ObjectID"}}})],Ve.prototype,"objectId",void 0),(0,i.Cg)([(0,f.MZ)({type:n.A})],Ve.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,f.MZ)({type:Date})],Ve.prototype,"startTime",void 0),(0,i.Cg)([(0,H.w)("startTime",["attributes.StartTimeUTC"])],Ve.prototype,"readStartTime",null),(0,i.Cg)([(0,f.MZ)()],Ve.prototype,"startTimeOffset",void 0),(0,i.Cg)([(0,H.w)("startTimeOffset",["attributes.StartTime","attributes.StartTimeUTC"])],Ve.prototype,"readStartTimeOffset",null),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.StopCount"}}})],Ve.prototype,"stopCount",void 0),(0,i.Cg)([(0,f.MZ)({types:j.Es})],Ve.prototype,"symbol",void 0),(0,i.Cg)([(0,f.MZ)()],Ve.prototype,"totalCosts",void 0),(0,i.Cg)([(0,H.w)("totalCosts",["attributes"])],Ve.prototype,"readTotalCosts",null),(0,i.Cg)([(0,f.MZ)()],Ve.prototype,"totalDistance",void 0),(0,i.Cg)([(0,f.MZ)()],Ve.prototype,"totalDuration",void 0),(0,i.Cg)([(0,f.MZ)()],Ve.prototype,"totalLateDuration",void 0),(0,i.Cg)([(0,f.MZ)()],Ve.prototype,"totalViolations",void 0),(0,i.Cg)([(0,H.w)("totalViolations",["attributes"])],Ve.prototype,"readTotalViolations",null),(0,i.Cg)([(0,f.MZ)()],Ve.prototype,"totalWait",void 0),(0,i.Cg)([(0,H.w)("totalWait",["attributes"])],Ve.prototype,"readTotalWait",null),(0,i.Cg)([(0,f.MZ)()],Ve.prototype,"totalWaitDuration",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Ve.prototype,"type",void 0),(0,i.Cg)([(0,f.MZ)()],Ve.prototype,"version",void 0),Ve=We=(0,i.Cg)([(0,f.$K)("esri.rest.support.RouteInfo")],Ve);var $e=r(78888);const Ke={type:String,json:{read:{source:"token"},write:{target:"token"}}};var qe=r(65864),ze=r(50498);let He=class extends((0,z.OU)(Z.o)){constructor(e){super(e),this.doNotLocateOnRestrictedElements=null,this.geometry=null,this.geometryType=null,this.name=null,this.spatialRelationship=null,this.type="layer",this.where=null}};(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],He.prototype,"doNotLocateOnRestrictedElements",void 0),(0,i.Cg)([(0,f.MZ)({types:ze.yR,json:{read:qe.rS,write:!0}})],He.prototype,"geometry",void 0),(0,i.Cg)([(0,W.e)(k.Vj)],He.prototype,"geometryType",void 0),(0,i.Cg)([(0,f.MZ)({type:String,json:{name:"layerName",write:!0}})],He.prototype,"name",void 0),(0,i.Cg)([(0,W.e)(k.vS,{name:"spatialRel"})],He.prototype,"spatialRelationship",void 0),(0,i.Cg)([(0,f.MZ)({type:String,json:{write:!0}})],He.prototype,"type",void 0),(0,i.Cg)([(0,f.MZ)({type:String,json:{write:!0}})],He.prototype,"where",void 0),He=(0,i.Cg)([(0,f.$K)("esri.rest.support.DataLayer")],He);var Ye=r(10107),Qe=r(64108);let Xe=class extends((0,z.OU)(Z.o)){constructor(e){super(e),this.name=null,this.where=null}};(0,i.Cg)([(0,Ye.MZ)({json:{write:!0}})],Xe.prototype,"name",void 0),(0,i.Cg)([(0,Ye.MZ)({json:{write:!0}})],Xe.prototype,"where",void 0),Xe=(0,i.Cg)([(0,Qe.$)("esri.rest.support.LocateSettingSource")],Xe);const et=Xe;let tt=class extends((0,z.OU)(Z.o)){constructor(e){super(e),this.allowAutoRelocate=null,this.sources=null}};(0,i.Cg)([(0,Ye.MZ)({type:Boolean,json:{write:!0}})],tt.prototype,"allowAutoRelocate",void 0),(0,i.Cg)([(0,Ye.MZ)({type:[et],json:{write:!0}})],tt.prototype,"sources",void 0),tt=(0,i.Cg)([(0,Qe.$)("esri.rest.support.LocateSettingBase")],tt);const rt=tt;let it=class extends rt{constructor(e){super(e),this.tolerance=null,this.toleranceUnits=null}};(0,i.Cg)([(0,Ye.MZ)({type:Number,json:{write:!0}})],it.prototype,"tolerance",void 0),(0,i.Cg)([(0,W.e)(k.Y8)],it.prototype,"toleranceUnits",void 0),it=(0,i.Cg)([(0,Qe.$)("esri.rest.support.LocateSetting")],it);const ot=it;let st=class extends((0,z.OU)(Z.o)){constructor(e){super(e),this.stops=null,this.pointBarriers=null,this.polylineBarriers=null,this.polygonBarriers=null}};(0,i.Cg)([(0,Ye.MZ)({type:ot,json:{write:!0}})],st.prototype,"stops",void 0),(0,i.Cg)([(0,Ye.MZ)({type:ot,json:{name:"barriers",write:!0}})],st.prototype,"pointBarriers",void 0),(0,i.Cg)([(0,Ye.MZ)({type:rt,json:{write:!0}})],st.prototype,"polylineBarriers",void 0),(0,i.Cg)([(0,Ye.MZ)({type:rt,json:{write:!0}})],st.prototype,"polygonBarriers",void 0),st=(0,i.Cg)([(0,Qe.$)("esri.rest.support.LocateSettingsOverrides")],st);const nt=st;let at=class extends((0,z.OU)(Z.o)){constructor(e){super(e),this.default=null,this.overrides=null}};(0,i.Cg)([(0,Ye.MZ)({type:ot,json:{write:!0}})],at.prototype,"default",void 0),(0,i.Cg)([(0,Ye.MZ)({type:nt,json:{write:!0}})],at.prototype,"overrides",void 0),at=(0,i.Cg)([(0,Qe.$)("esri.rest.support.LocateSettings")],at);const lt=at;var ut;let pt=class extends pe.A{static{ut=this}constructor(e){super(e),this.doNotLocateOnRestrictedElements=null}clone(){return new ut({doNotLocateOnRestrictedElements:this.doNotLocateOnRestrictedElements,...this.cloneProperties()})}};(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],pt.prototype,"doNotLocateOnRestrictedElements",void 0),pt=ut=(0,i.Cg)([(0,f.$K)("esri.rest.support.NetworkFeatureSet")],pt);let ct=class extends((0,z.OU)(Z.o)){constructor(e){super(e),this.doNotLocateOnRestrictedElements=null,this.url=null}};var yt;(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],ct.prototype,"doNotLocateOnRestrictedElements",void 0),(0,i.Cg)([(0,f.MZ)({type:String,json:{write:!0}})],ct.prototype,"url",void 0),ct=(0,i.Cg)([(0,f.$K)("esri.rest.support.NetworkUrl")],ct);let dt=class extends((0,z.OU)(Z.o)){static{yt=this}constructor(e){super(e),this.accumulateAttributes=null,this.apiKey=null,this.attributeParameterValues=null,this.checksum=null,this.directionsLanguage=null,this.directionsLengthUnits=null,this.directionsOutputType=null,this.directionsStyleName=null,this.directionsTimeAttribute=null,this.findBestSequence=null,this.geometryPrecision=null,this.geometryPrecisionM=null,this.geometryPrecisionZ=null,this.ignoreInvalidLocations=null,this.impedanceAttribute=null,this.locateSettings=null,this.outputGeometryPrecision=null,this.outputGeometryPrecisionUnits=null,this.outputLines="true-shape",this.outSpatialReference=null,this.overrides=null,this.pointBarriers=null,this.polygonBarriers=null,this.polylineBarriers=null,this.preserveFirstStop=null,this.preserveLastStop=null,this.preserveObjectID=null,this.restrictionAttributes=null,this.restrictUTurns=null,this.returnBarriers=!1,this.returnDirections=!1,this.returnEmptyResults=null,this.returnPolygonBarriers=!1,this.returnPolylineBarriers=!1,this.returnRoutes=!0,this.returnStops=!1,this.returnTraversedEdges=null,this.returnTraversedJunctions=null,this.returnTraversedTurns=null,this.returnZ=!0,this.startTime=null,this.startTimeIsUTC=!0,this.stops=null,this.timeWindowsAreUTC=null,this.travelMode=null,this.useHierarchy=null,this.useTimeWindows=null}static from(e){return(0,$e.PZ)(yt,e)}readAccumulateAttributes(e){return null==e?null:e.map(e=>k.et.fromJSON(e))}writeAccumulateAttributes(e,t,r){e?.length&&(t[r]=e.map(e=>k.et.toJSON(e)))}writePointBarriers(e,t,r){mt(e,t,r)}writePolygonBarrier(e,t,r){mt(e,t,r)}writePolylineBarrier(e,t,r){mt(e,t,r)}readRestrictionAttributes(e){return null==e?null:e.map(e=>k.OC.fromJSON(e))}writeRestrictionAttributes(e,t,r){e?.length&&(t[r]=e.map(e=>k.OC.toJSON(e)))}readStartTime(e,t){const{startTime:r}=t;return null==r?null:"now"===r?"now":new Date(r)}writeStartTime(e,t){null!=e&&(t.startTime="now"===e?"now":e.getTime())}readStops(e,t){return function(e){return function(e){return e&&"type"in e}(e)?He.fromJSON(e):function(e){return e&&"url"in e}(e)?ct.fromJSON(e):function(e){return e&&"features"in e&&"doNotLocateOnRestrictedElements"in e}(e)?pt.fromJSON(e):function(e){return e&&"features"in e}(e)?pe.A.fromJSON(e):null}(t.stops)}writeStops(e,t,r){mt(e,t,r)}};function mt(e,t,r){null!=e&&(t[r]=l.A.isCollection(e)?{features:e.toArray().map(e=>e.toJSON())}:e.toJSON())}var gt;(0,i.Cg)([(0,f.MZ)({type:[String],json:{name:"accumulateAttributeNames",write:!0}})],dt.prototype,"accumulateAttributes",void 0),(0,i.Cg)([(0,H.w)("accumulateAttributes")],dt.prototype,"readAccumulateAttributes",null),(0,i.Cg)([(0,Y.K)("accumulateAttributes")],dt.prototype,"writeAccumulateAttributes",null),(0,i.Cg)([(0,f.MZ)(Ke)],dt.prototype,"apiKey",void 0),(0,i.Cg)([(0,f.MZ)({json:{write:!0}})],dt.prototype,"attributeParameterValues",void 0),(0,i.Cg)([(0,f.MZ)({type:String,json:{write:!0}})],dt.prototype,"checksum",void 0),(0,i.Cg)([(0,f.MZ)({type:String,json:{write:!0}})],dt.prototype,"directionsLanguage",void 0),(0,i.Cg)([(0,W.e)(k.Z7)],dt.prototype,"directionsLengthUnits",void 0),(0,i.Cg)([(0,W.e)(k.aJ)],dt.prototype,"directionsOutputType",void 0),(0,i.Cg)([(0,W.e)(k.$n)],dt.prototype,"directionsStyleName",void 0),(0,i.Cg)([(0,W.e)(k.Mm,{name:"directionsTimeAttributeName",ignoreUnknown:!1})],dt.prototype,"directionsTimeAttribute",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],dt.prototype,"findBestSequence",void 0),(0,i.Cg)([(0,f.MZ)({type:Number,json:{write:!0}})],dt.prototype,"geometryPrecision",void 0),(0,i.Cg)([(0,f.MZ)({type:Number,json:{write:!0}})],dt.prototype,"geometryPrecisionM",void 0),(0,i.Cg)([(0,f.MZ)({type:Number,json:{write:!0}})],dt.prototype,"geometryPrecisionZ",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],dt.prototype,"ignoreInvalidLocations",void 0),(0,i.Cg)([(0,W.e)(k.et,{name:"impedanceAttributeName",ignoreUnknown:!1})],dt.prototype,"impedanceAttribute",void 0),(0,i.Cg)([(0,f.MZ)({type:lt,json:{write:!0}})],dt.prototype,"locateSettings",void 0),(0,i.Cg)([(0,f.MZ)({type:Number,json:{write:!0}})],dt.prototype,"outputGeometryPrecision",void 0),(0,i.Cg)([(0,W.e)(k.hY)],dt.prototype,"outputGeometryPrecisionUnits",void 0),(0,i.Cg)([(0,W.e)(k.Sr)],dt.prototype,"outputLines",void 0),(0,i.Cg)([(0,f.MZ)({type:T.A,json:{name:"outSR",write:!0}})],dt.prototype,"outSpatialReference",void 0),(0,i.Cg)([(0,f.MZ)({json:{write:!0}})],dt.prototype,"overrides",void 0),(0,i.Cg)([(0,f.MZ)({json:{name:"barriers",write:!0}})],dt.prototype,"pointBarriers",void 0),(0,i.Cg)([(0,Y.K)("pointBarriers")],dt.prototype,"writePointBarriers",null),(0,i.Cg)([(0,f.MZ)({json:{write:!0}})],dt.prototype,"polygonBarriers",void 0),(0,i.Cg)([(0,Y.K)("polygonBarriers")],dt.prototype,"writePolygonBarrier",null),(0,i.Cg)([(0,f.MZ)({json:{write:!0}})],dt.prototype,"polylineBarriers",void 0),(0,i.Cg)([(0,Y.K)("polylineBarriers")],dt.prototype,"writePolylineBarrier",null),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],dt.prototype,"preserveFirstStop",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],dt.prototype,"preserveLastStop",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],dt.prototype,"preserveObjectID",void 0),(0,i.Cg)([(0,f.MZ)({type:[String],json:{name:"restrictionAttributeNames",write:!0}})],dt.prototype,"restrictionAttributes",void 0),(0,i.Cg)([(0,H.w)("restrictionAttributes")],dt.prototype,"readRestrictionAttributes",null),(0,i.Cg)([(0,Y.K)("restrictionAttributes")],dt.prototype,"writeRestrictionAttributes",null),(0,i.Cg)([(0,W.e)(k.hE)],dt.prototype,"restrictUTurns",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],dt.prototype,"returnBarriers",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],dt.prototype,"returnDirections",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],dt.prototype,"returnEmptyResults",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],dt.prototype,"returnPolygonBarriers",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],dt.prototype,"returnPolylineBarriers",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],dt.prototype,"returnRoutes",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],dt.prototype,"returnStops",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],dt.prototype,"returnTraversedEdges",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],dt.prototype,"returnTraversedJunctions",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],dt.prototype,"returnTraversedTurns",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],dt.prototype,"returnZ",void 0),(0,i.Cg)([(0,f.MZ)({json:{write:!0}})],dt.prototype,"startTime",void 0),(0,i.Cg)([(0,H.w)("startTime")],dt.prototype,"readStartTime",null),(0,i.Cg)([(0,Y.K)("startTime")],dt.prototype,"writeStartTime",null),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],dt.prototype,"startTimeIsUTC",void 0),(0,i.Cg)([(0,f.MZ)({json:{write:!0}})],dt.prototype,"stops",void 0),(0,i.Cg)([(0,H.w)("stops")],dt.prototype,"readStops",null),(0,i.Cg)([(0,Y.K)("stops")],dt.prototype,"writeStops",null),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],dt.prototype,"timeWindowsAreUTC",void 0),(0,i.Cg)([(0,f.MZ)({type:Q,json:{write:!0}})],dt.prototype,"travelMode",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],dt.prototype,"useHierarchy",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],dt.prototype,"useTimeWindows",void 0),dt=yt=(0,i.Cg)([(0,f.$K)("esri.rest.support.RouteParameters")],dt);let ht=class extends((0,z.OU)(Z.o)){static{gt=this}constructor(e){super(e),this.arriveCurbApproach=null,this.arriveTime=null,this.arriveTimeOffset=null,this.bearing=null,this.bearingTol=null,this.cumulativeCosts=null,this.cumulativeDistance=null,this.cumulativeDuration=null,this.curbApproach=null,this.departCurbApproach=null,this.departTime=null,this.departTimeOffset=null,this.distanceToNetworkInMeters=null,this.lateDuration=null,this.locationType=null,this.name=null,this.navLatency=null,this.objectId=null,this.popupTemplate=null,this.positionAlong=null,this.routeName=null,this.serviceCosts=null,this.serviceDistance=null,this.serviceDuration=null,this.sequence=null,this.sideOfEdge=null,this.snapX=null,this.snapY=null,this.snapZ=null,this.sourceId=null,this.sourceOid=null,this.status=null,this.symbol=null,this.timeWindowEnd=null,this.timeWindowEndOffset=null,this.timeWindowStart=null,this.timeWindowStartOffset=null,this.type="stop",this.violations=null,this.waitDuration=null,this.wait=null}readArriveTimeOffset(e,t){return le(t.attributes.ArriveTime,t.attributes.ArriveTimeUTC)}readCumulativeCosts(e,t){return oe(t.attributes,"Cumul_")}readDepartTimeOffset(e,t){return le(t.attributes.DepartTime,t.attributes.DepartTimeUTC)}set geometry(e){this._get("geometry")&&(this._set("positionAlong",null),this._set("sideOfEdge",null),this._set("sourceId",null),this._set("sourceOid",null),this._set("status",null)),this._set("geometry",e)}readServiceCosts(e,t){return oe(t.attributes,"Attr_")}writeServiceCosts(e,t){se(e,t,"Attr_")}writeTimeWindowEnd(e,t){null!=e&&(t.attributes||(t.attributes={}),t.attributes.TimeWindowEnd=e.getTime())}writeTimeWindowStart(e,t){null!=e&&(t.attributes||(t.attributes={}),t.attributes.TimeWindowStart=e.getTime())}readViolations(e,t){return oe(t.attributes,"Violation_")}readWait(e,t){return oe(t.attributes,"Wait_")}static{this.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID",editable:!1,nullable:!1},{name:"ArrivalCurbApproach",alias:"Arrival Curb Approach",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"ArrivalTime",alias:"Arrival Time",type:"esriFieldTypeDate",editable:!0,nullable:!0,length:36},{name:"ArrivalUTCOffset",alias:"Arrival Time Offset",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"CumulativeCosts",alias:"Cumulative Costs",type:"esriFieldTypeString",editable:!0,nullable:!0,length:1048576},{name:"CumulativeMeters",alias:"Cumulative Meters",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"CumulativeMinutes",alias:"Cumulative Minutes",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"CurbApproach",alias:"Curb Approach",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"DepartureCurbApproach",alias:"Departure Curb Approach",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"DepartureTime",alias:"Departure Time",type:"esriFieldTypeDate",editable:!0,nullable:!0,length:36},{name:"DepartureUTCOffset",alias:"Departure Time Offset",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"LateMinutes",alias:"Minutes Late",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"LocationType",alias:"Location Type",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"Name",alias:"Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:255},{name:"RouteName",alias:"Route Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:255},{name:"Sequence",alias:"Sequence",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"ServiceCosts",alias:"Service Costs",type:"esriFieldTypeString",editable:!0,nullable:!0,length:1048576},{name:"ServiceMeters",alias:"Service Meters",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"ServiceMinutes",alias:"Service Minutes",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"Status",alias:"Status",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"TimeWindowEnd",alias:"Time Window End",type:"esriFieldTypeDate",editable:!0,nullable:!0,length:36},{name:"TimeWindowEndUTCOffset",alias:"Time Window End Offset",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"TimeWindowStart",alias:"Time Window Start",type:"esriFieldTypeDate",editable:!0,nullable:!0,length:36},{name:"TimeWindowStartUTCOffset",alias:"Time Window Start Offset",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"WaitMinutes",alias:"Minutes Wait",type:"esriFieldTypeDouble",editable:!0,nullable:!0}]}static fromGraphic(e){return new gt({arriveCurbApproach:null!=e.attributes.ArrivalCurbApproach?k.JJ.fromJSON(e.attributes.ArrivalCurbApproach):null,arriveTime:null!=e.attributes.ArrivalTime?new Date(e.attributes.ArrivalTime):null,arriveTimeOffset:e.attributes.ArrivalUTCOffset,cumulativeCosts:null!=e.attributes.CumulativeCosts?ne(JSON.parse(e.attributes.CumulativeCosts)):null,cumulativeDistance:e.attributes.CumulativeMeters??null,cumulativeDuration:e.attributes.CumulativeMinutes??null,curbApproach:null!=e.attributes.CurbApproach?k.JJ.fromJSON(e.attributes.CurbApproach):null,departCurbApproach:null!=e.attributes.DepartureCurbApproach?k.JJ.fromJSON(e.attributes.DepartureCurbApproach):null,departTime:null!=e.attributes.DepartureTime?new Date(e.attributes.DepartureTime):null,departTimeOffset:e.attributes.DepartureUTCOffset??null,geometry:e.geometry,lateDuration:e.attributes.LateMinutes??null,locationType:null!=e.attributes.LocationType?k.EM.fromJSON(e.attributes.LocationType):null,name:e.attributes.Name,objectId:e.attributes.ObjectID??e.attributes.__OBJECTID,popupTemplate:e.popupTemplate,routeName:e.attributes.RouteName,sequence:e.attributes.Sequence??null,serviceCosts:null!=e.attributes.ServiceCosts?ne(JSON.parse(e.attributes.ServiceCosts)):null,serviceDistance:e.attributes.ServiceMeters??null,serviceDuration:e.attributes.ServiceMinutes??null,status:null!=e.attributes.Status?k.$r.fromJSON(e.attributes.Status):null,symbol:e.symbol,timeWindowEnd:null!=e.attributes.TimeWindowEnd?new Date(e.attributes.TimeWindowEnd):null,timeWindowEndOffset:e.attributes.TimeWindowEndUTCOffset??null,timeWindowStart:null!=e.attributes.TimeWindowStart?new Date(e.attributes.TimeWindowStart):null,timeWindowStartOffset:e.attributes.TimeWindowStartUTCOffset??null,waitDuration:e.attributes.WaitMinutes??null})}toGraphic(){const e={ObjectID:this.objectId,ArrivalCurbApproach:this.arriveCurbApproach?k.JJ.toJSON(this.arriveCurbApproach):null,ArrivalTime:this.arriveTime?.getTime()??null,ArrivalUTCOffset:this.arriveTimeOffset,CumulativeCosts:this.cumulativeCosts?JSON.stringify(ae(this.cumulativeCosts)):null,CumulativeMeters:this.cumulativeDistance,CumulativeMinutes:this.cumulativeDuration,CurbApproach:this.curbApproach?k.JJ.toJSON(this.curbApproach):null,DepartureCurbApproach:this.departCurbApproach?k.JJ.toJSON(this.departCurbApproach):null,DepartureTime:this.departTime?.getTime()??null,DepartureUTCOffset:this.departTimeOffset,LateMinutes:this.lateDuration,LocationType:this.locationType?k.EM.toJSON(this.locationType):null,Name:this.name,RouteName:this.routeName,Sequence:this.sequence,ServiceCosts:this.serviceCosts?JSON.stringify(ae(this.serviceCosts)):null,ServiceMeters:this.serviceDistance,ServiceMinutes:this.serviceDuration,Status:this.status?k.$r.toJSON(this.status):null,TimeWindowEnd:this.timeWindowEnd?.getTime()??null,TimeWindowEndUTCOffset:this.timeWindowEndOffset??this.arriveTimeOffset,TimeWindowStart:this.timeWindowStart?.getTime()??null,TimeWindowStartUTCOffset:this.timeWindowStartOffset??this.arriveTimeOffset,WaitMinutes:this.waitDuration};return new s.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};function ft(e){if(!e.length)return;const t=e.toArray(),r=t.map(({objectId:e})=>e).filter(e=>null!=e);let i=Math.max(...r,0);for(const e of t)e.objectId??=++i}function bt(e,t){return e.length===t.length&&vt(e)&&vt(t)}function vt(e){return e.every(({objectId:e})=>null!=e)}function Ct(e,t){return!!e.length||!!t.length}function wt(e){return e.length?e:null}function Tt(e){switch(e){case"esriGeometryPoint":return{type:"esriSMS",style:"esriSMSCircle",size:12,color:[0,0,0,0],outline:Tt("esriGeometryPolyline")};case"esriGeometryPolyline":return{type:"esriSLS",style:"esriSLSSolid",width:1,color:[0,0,0,0]};case"esriGeometryPolygon":return{type:"esriSFS",style:"esriSFSNull",outline:Tt("esriGeometryPolyline")}}}function St(e){return"layers"in e}async function Mt(e){const t=T.A.WGS84;return await(0,w.initializeProjection)(e.spatialReference,t),(0,w.project)(e,t)}function At(e,t){if(t&&e?.length&&!e.every(({symbol:e})=>!!e))for(const r of e)r.symbol=t}function It(e,t){switch(t){case"seconds":return e/60;case"hours":return 60*e;case"days":return 60*e*24;default:return e}}function Lt(e,t){return"decimal-degrees"===t||"points"===t||"unknown"===t?e:(0,g.oU)(e,t,"meters")}(0,i.Cg)([(0,f.MZ)({type:k.JJ.apiValues,json:{read:{source:"attributes.ArrivalCurbApproach",reader:k.JJ.read}}})],ht.prototype,"arriveCurbApproach",void 0),(0,i.Cg)([(0,f.MZ)({type:Date,json:{read:{source:"attributes.ArriveTimeUTC"}}})],ht.prototype,"arriveTime",void 0),(0,i.Cg)([(0,f.MZ)()],ht.prototype,"arriveTimeOffset",void 0),(0,i.Cg)([(0,H.w)("arriveTimeOffset",["attributes.ArriveTime","attributes.ArriveTimeUTC"])],ht.prototype,"readArriveTimeOffset",null),(0,i.Cg)([(0,f.MZ)({json:{name:"attributes.Bearing",read:!1,write:!0}})],ht.prototype,"bearing",void 0),(0,i.Cg)([(0,f.MZ)({json:{name:"attributes.BearingTol",read:!1,write:!0}})],ht.prototype,"bearingTol",void 0),(0,i.Cg)([(0,f.MZ)()],ht.prototype,"cumulativeCosts",void 0),(0,i.Cg)([(0,H.w)("cumulativeCosts",["attributes"])],ht.prototype,"readCumulativeCosts",null),(0,i.Cg)([(0,f.MZ)()],ht.prototype,"cumulativeDistance",void 0),(0,i.Cg)([(0,f.MZ)()],ht.prototype,"cumulativeDuration",void 0),(0,i.Cg)([(0,f.MZ)({type:k.JJ.apiValues,json:{name:"attributes.CurbApproach",read:{reader:k.JJ.read},write:{writer:k.JJ.write}}})],ht.prototype,"curbApproach",void 0),(0,i.Cg)([(0,f.MZ)({type:k.JJ.apiValues,json:{read:{source:"attributes.DepartCurbApproach",reader:k.JJ.read}}})],ht.prototype,"departCurbApproach",void 0),(0,i.Cg)([(0,f.MZ)({type:Date,json:{read:{source:"attributes.DepartTimeUTC"}}})],ht.prototype,"departTime",void 0),(0,i.Cg)([(0,f.MZ)()],ht.prototype,"departTimeOffset",void 0),(0,i.Cg)([(0,H.w)("departTimeOffset",["attributes.DepartTime","attributes.DepartTimeUTC"])],ht.prototype,"readDepartTimeOffset",null),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.DistanceToNetworkInMeters"}}})],ht.prototype,"distanceToNetworkInMeters",void 0),(0,i.Cg)([(0,f.MZ)({type:fe.A,json:{write:!0},value:null})],ht.prototype,"geometry",null),(0,i.Cg)([(0,f.MZ)()],ht.prototype,"lateDuration",void 0),(0,i.Cg)([(0,f.MZ)({type:k.EM.apiValues,json:{name:"attributes.LocationType",read:{reader:k.EM.read},write:{writer:k.EM.write}}})],ht.prototype,"locationType",void 0),(0,i.Cg)([(0,f.MZ)({json:{name:"attributes.Name"}})],ht.prototype,"name",void 0),(0,i.Cg)([(0,f.MZ)({json:{name:"attributes.NavLatency",read:!1,write:!0}})],ht.prototype,"navLatency",void 0),(0,i.Cg)([(0,f.MZ)({json:{name:"attributes.ObjectID"}})],ht.prototype,"objectId",void 0),(0,i.Cg)([(0,f.MZ)({type:n.A})],ht.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,f.MZ)({json:{name:"attributes.PosAlong"}})],ht.prototype,"positionAlong",void 0),(0,i.Cg)([(0,f.MZ)({json:{name:"attributes.RouteName"}})],ht.prototype,"routeName",void 0),(0,i.Cg)([(0,f.MZ)()],ht.prototype,"serviceCosts",void 0),(0,i.Cg)([(0,H.w)("serviceCosts",["attributes"])],ht.prototype,"readServiceCosts",null),(0,i.Cg)([(0,Y.K)("serviceCosts")],ht.prototype,"writeServiceCosts",null),(0,i.Cg)([(0,f.MZ)()],ht.prototype,"serviceDistance",void 0),(0,i.Cg)([(0,f.MZ)()],ht.prototype,"serviceDuration",void 0),(0,i.Cg)([(0,f.MZ)({json:{name:"attributes.Sequence"}})],ht.prototype,"sequence",void 0),(0,i.Cg)([(0,f.MZ)({type:k.mt.apiValues,json:{name:"attributes.SideOfEdge",read:{reader:k.mt.read},write:{writer:k.mt.write}}})],ht.prototype,"sideOfEdge",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.SnapX"}}})],ht.prototype,"snapX",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.SnapY"}}})],ht.prototype,"snapY",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.SnapZ"}}})],ht.prototype,"snapZ",void 0),(0,i.Cg)([(0,f.MZ)({json:{name:"attributes.SourceID"}})],ht.prototype,"sourceId",void 0),(0,i.Cg)([(0,f.MZ)({json:{name:"attributes.SourceOID"}})],ht.prototype,"sourceOid",void 0),(0,i.Cg)([(0,f.MZ)({type:k.$r.apiValues,json:{name:"attributes.Status",read:{reader:k.$r.read},write:{writer:k.$r.write}}})],ht.prototype,"status",void 0),(0,i.Cg)([(0,f.MZ)({types:j.Es})],ht.prototype,"symbol",void 0),(0,i.Cg)([(0,f.MZ)({type:Date,json:{name:"attributes.TimeWindowEnd"}})],ht.prototype,"timeWindowEnd",void 0),(0,i.Cg)([(0,Y.K)("timeWindowEnd")],ht.prototype,"writeTimeWindowEnd",null),(0,i.Cg)([(0,f.MZ)()],ht.prototype,"timeWindowEndOffset",void 0),(0,i.Cg)([(0,f.MZ)({type:Date,json:{name:"attributes.TimeWindowStart"}})],ht.prototype,"timeWindowStart",void 0),(0,i.Cg)([(0,Y.K)("timeWindowStart")],ht.prototype,"writeTimeWindowStart",null),(0,i.Cg)([(0,f.MZ)()],ht.prototype,"timeWindowStartOffset",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],ht.prototype,"type",void 0),(0,i.Cg)([(0,f.MZ)()],ht.prototype,"violations",void 0),(0,i.Cg)([(0,H.w)("violations",["attributes"])],ht.prototype,"readViolations",null),(0,i.Cg)([(0,f.MZ)()],ht.prototype,"waitDuration",void 0),(0,i.Cg)([(0,f.MZ)()],ht.prototype,"wait",void 0),(0,i.Cg)([(0,H.w)("wait",["attributes"])],ht.prototype,"readWait",null),ht=gt=(0,i.Cg)([(0,f.$K)("esri.rest.support.Stop")],ht);const Ot=l.A.ofType(Be),Nt=l.A.ofType(Ee),Zt=l.A.ofType(Re),Dt=l.A.ofType(_e),jt=l.A.ofType(Ue),Bt=l.A.ofType(ht);let Ft=class extends((0,A.dM)((0,O.j)((0,I.q)((0,L.A)((0,c.M)(M.A)))))){constructor(e){super(e),this._cachedServiceDescription=null,this._featureCollection=null,this._type="Feature Collection",this.checksum=null,this.defaultSymbols=new P,this.directionLines=null,this.directionPoints=null,this.featureCollectionType="route",this.legendEnabled=!1,this.maxScale=0,this.minScale=0,this.pointBarriers=new Zt,this.polygonBarriers=new Dt,this.polylineBarriers=new jt,this.routeInfo=null,this.spatialReference=T.A.WGS84,this.stops=new Bt,this.type="route"}initialize(){const e=()=>{this._setStopSymbol(this.stops)},t=()=>{At(this.pointBarriers,this.defaultSymbols.pointBarriers)},r=()=>{At(this.polylineBarriers,this.defaultSymbols.polylineBarriers)},i=()=>{At(this.polygonBarriers,this.defaultSymbols.polygonBarriers)};this.addHandles([(0,m.on)(()=>this.stops,"change",e,{sync:!0,onListenerAdd:e}),(0,m.on)(()=>this.pointBarriers,"change",t,{sync:!0,onListenerAdd:t}),(0,m.on)(()=>this.polylineBarriers,"change",r,{sync:!0,onListenerAdd:r}),(0,m.on)(()=>this.polygonBarriers,"change",i,{sync:!0,onListenerAdd:i})])}writeFeatureCollectionWebmap(e,t,r,i){const o=[this._writePolygonBarriers(),this._writePolylineBarriers(),this._writePointBarriers(),this._writeRouteInfo(),this._writeDirectionLines(),this._writeDirectionPoints(),this._writeStops()].filter(e=>!!e),s=o.map((e,t)=>t),n="web-map"===i.origin?"featureCollection.layers":"layers";(0,y.sM)(n,o,t),t.opacity=this.opacity,t.visibility=this.visible,t.visibleLayers=s}readDirectionLines(e,t){return this._getNetworkFeatures(t,"DirectionLines",e=>Be.fromGraphic(e))}readDirectionPoints(e,t){return this._getNetworkFeatures(t,"DirectionPoints",e=>Ee.fromGraphic(e))}get fullExtent(){const e=new v.A({xmin:-180,ymin:-90,xmax:180,ymax:90,spatialReference:T.A.WGS84});if(null!=this.routeInfo?.geometry)return this.routeInfo.geometry.extent??e;if(null==this.stops)return e;const t=this.stops.filter(e=>null!=e.geometry);if(t.length<2)return e;const{spatialReference:r}=t.at(0).geometry;if(null==r)return e;const i=t.toArray().map(e=>{const t=e.geometry;return[t.x,t.y]});return new C.A({points:i,spatialReference:r}).extent}readMaxScale(e,t){const r=St(t)?t.layers:t.featureCollection?.layers,i=r?.find(e=>null!=e.layerDefinition.maxScale);return i?.layerDefinition.maxScale??0}readMinScale(e,t){const r=St(t)?t.layers:t.featureCollection?.layers,i=r?.find(e=>null!=e.layerDefinition.minScale);return i?.layerDefinition.minScale??0}readPointBarriers(e,t){return this._getNetworkFeatures(t,"Barriers",e=>Re.fromGraphic(e))}readPolygonBarriers(e,t){return this._getNetworkFeatures(t,"PolygonBarriers",e=>_e.fromGraphic(e))}readPolylineBarriers(e,t){return this._getNetworkFeatures(t,"PolylineBarriers",e=>Ue.fromGraphic(e))}readRouteInfo(e,t){return this._getNetworkFeatures(t,"RouteInfo",e=>Ve.fromGraphic(e)).at(0)??null}readSpatialReference(e,t){const r=St(t)?t.layers:t.featureCollection?.layers;if(!r?.length)return T.A.WGS84;const{layerDefinition:i,featureSet:o}=r[0],s=o.features[0],n=s?.geometry?.spatialReference??o.spatialReference??i.spatialReference??i.extent.spatialReference??S.KK;return T.A.fromJSON(n)}readStops(e,t){return this._getNetworkFeatures(t,"Stops",e=>ht.fromGraphic(e),e=>this._setStopSymbol(e))}get title(){return this.routeInfo?.name??"Route"}set title(e){this._overrideIfSome("title",e)}get url(){return o.A.routeServiceUrl}set url(e){null!=e?this._set("url",(0,N.Jf)(e,p.A.getLogger(this))):this._set("url",o.A.routeServiceUrl)}load(e){return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Feature Collection"]},e)),Promise.resolve(this)}removeAll(){this.removeResult(),this.pointBarriers.removeAll(),this.polygonBarriers.removeAll(),this.polylineBarriers.removeAll(),this.stops.removeAll()}removeResult(){null!=this.directionLines&&(this.directionLines.removeAll(),this._set("directionLines",null)),null!=this.directionPoints&&(this.directionPoints.removeAll(),this._set("directionPoints",null)),null!=this.routeInfo&&this._set("routeInfo",null)}async save(){await this.load();const{fullExtent:e,portalItem:t}=this;if(!t)throw new u.A("routelayer:portal-item-not-set","save() requires to the layer to have a portal item");if(!t.id)throw new u.A("routelayer:portal-item-not-saved","Please use saveAs() first to save the routelayer");if("Feature Collection"!==t.type)throw new u.A("routelayer:portal-item-wrong-type",'Portal item needs to have type "Feature Collection"');if(!this.routeInfo)throw new u.A("routelayer:route-unsolved","save() requires a solved route");const{portal:r}=t;await r.signIn(),r.user||await t.reload();const{itemUrl:i,itemControl:o}=t;if("admin"!==o&&"update"!==o)throw new u.A("routelayer:insufficient-permissions","To save this layer, you need to be the owner or an administrator of your organization");const s={messages:[],origin:"portal-item",portal:r,url:i?(0,h.An)(i):void 0,writtenProperties:[]},n=this.write(void 0,s);return t.extent=await Mt(e),t.title=this.title,await t.update({data:n}),t}async saveAs(e,t={}){if(await this.load(),null==this.routeInfo)throw new u.A("routelayer:route-unsolved","saveAs() requires a solved route");const r=x.default.from(e).clone();r.extent??=await Mt(this.fullExtent),r.id=null,r.portal??=R.A.getDefault(),r.title??=this.title,r.type="Feature Collection",r.typeKeywords=["Data","Feature Collection",J.mm.MULTI_LAYER,"Route Layer"];const{portal:i}=r,o={messages:[],origin:"portal-item",portal:i,url:null,writtenProperties:[]};await i.signIn();const s=t?.folder,n=this.write(void 0,o);return await i.user.addItem({item:r,folder:s,data:n}),this.portalItem=r,(0,b.v)(o),o.portalItem=r,r}async solve(e,t){ft(this.stops),ft(this.pointBarriers),ft(this.polylineBarriers),ft(this.polygonBarriers);const r=e?.stops??this.stops,i=e?.pointBarriers??wt(this.pointBarriers),o=e?.polylineBarriers??wt(this.polylineBarriers),s=e?.polygonBarriers??wt(this.polygonBarriers);if(null==r)throw new u.A("routelayer:undefined-stops","the route layer must have stops defined in the route parameters.");if((function(e){return"esri.rest.support.FeatureSet"===e.declaredClass}(r)||function(e){return"esri.rest.support.NetworkFeatureSet"===e.declaredClass}(r))&&r.features.length<2||l.A.isCollection(r)&&r.length<2)throw new u.A("routelayer:insufficent-stops","the route layer must have two or more stops to solve a route.");if(l.A.isCollection(r))for(const e of r)e.routeName=null;const n=e?.apiKey,{checksum:a,url:p}=this,c=await this._getServiceDescription(p,n,t),y=e?.travelMode??c.defaultTravelMode,m=e?.accumulateAttributes??[];y&&(m.push(y.distanceAttributeName),y.timeAttributeName&&m.push(y.timeAttributeName));const g={accumulateAttributes:m,checksum:a,directionsOutputType:"featuresets",ignoreInvalidLocations:!0,pointBarriers:i,polylineBarriers:o,polygonBarriers:s,preserveObjectID:!0,returnBarriers:!!i,returnDirections:!0,returnPolygonBarriers:!!s,returnPolylineBarriers:!!o,returnRoutes:!0,returnStops:!0,stops:r},h=dt.from(e??{});let f;h.set(g);try{f=await De(p,h,t)}catch(e){throw(0,d.zf)(e)?e:new u.A("routelayer:failed-route-request","the routing request failed",{error:e})}const b=this._toRouteLayerSolution(f);return this._isOverridden("title")||(this.title=b.routeInfo.name??"Route"),this._populatePortalFields(b,c,h),b}update(e){const{checksum:t,directionLines:r,directionPoints:i,pointBarriers:o,polygonBarriers:s,polylineBarriers:n,routeInfo:a,stops:l}=e;bt(l,this.stops)?function(e,t){for(const r of e){const e=t.find(e=>e.objectId===r.objectId);e&&(e.arriveCurbApproach=r.arriveCurbApproach,e.arriveTime=r.arriveTime,e.arriveTimeOffset=r.arriveTimeOffset,e.cumulativeCosts=r.cumulativeCosts,e.cumulativeDistance=r.cumulativeDistance,e.cumulativeDuration=r.cumulativeDuration,e.curbApproach=r.curbApproach,e.departCurbApproach=r.departCurbApproach,e.departTime=r.departTime,e.departTimeOffset=r.departTimeOffset,e.distanceToNetworkInMeters=r.distanceToNetworkInMeters,e.geometry=r.geometry,e.lateDuration=r.lateDuration,e.name=r.name,e.navLatency=r.navLatency,e.positionAlong=r.positionAlong,e.routeName=r.routeName,e.serviceCosts=r.serviceCosts,e.serviceDistance=r.serviceDistance,e.serviceDuration=r.serviceDuration,e.sequence=r.sequence,e.sideOfEdge=r.sideOfEdge,e.snapX=r.snapX,e.snapY=r.snapY,e.snapZ=r.snapZ,e.sourceId=r.sourceId,e.sourceOid=r.sourceOid,e.status=r.status,e.symbol=r.symbol,e.timeWindowEnd=r.timeWindowEnd,e.timeWindowStart=r.timeWindowStart,e.violations=r.violations,e.waitDuration=r.waitDuration,e.wait=r.wait)}}(l,this.stops):this.set({stops:l}),Ct(o,this.pointBarriers)&&(bt(o,this.pointBarriers)?function(e,t){for(const r of e){const e=t.find(e=>e.objectId===r.objectId);e&&(e.addedCost=r.addedCost,e.barrierType=r.barrierType,e.costs=r.costs,e.curbApproach=r.curbApproach,e.fullEdge=r.fullEdge,e.geometry=r.geometry,e.name=r.name,e.sideOfEdge=r.sideOfEdge,e.sourceId=r.sourceId,e.sourceOid=r.sourceOid,e.status=r.status,e.symbol=r.symbol)}}(o,this.pointBarriers):this.set({pointBarriers:o})),Ct(n,this.polylineBarriers)&&(bt(n,this.polylineBarriers)?function(e,t){for(const r of e){const e=t.find(e=>e.objectId===r.objectId);e&&(e.barrierType=r.barrierType,e.costs=r.costs,e.geometry=r.geometry,e.name=r.name,e.scaleFactor=r.scaleFactor,e.symbol=r.symbol)}}(n,this.polylineBarriers):this.set({polylineBarriers:n})),Ct(s,this.polygonBarriers)&&(bt(s,this.polygonBarriers)?function(e,t){for(const r of e){const e=t.find(e=>e.objectId===r.objectId);e&&(e.barrierType=r.barrierType,e.costs=r.costs,e.geometry=r.geometry,e.name=r.name,e.scaleFactor=r.scaleFactor,e.symbol=r.symbol)}}(s,this.polygonBarriers):this.set({polygonBarriers:s})),this.set({checksum:t}),this._set("directionLines",r),this._set("directionPoints",i),this._set("routeInfo",a),a.geometry&&(this.spatialReference=a.geometry.spatialReference)}_getNetworkFeatures(e,t,r,i){const o=St(e)?e.layers:e.featureCollection?.layers,a=o?.find(e=>e.layerDefinition.name===t);if(null==a)return new l.A;const{layerDefinition:u,popupInfo:p,featureSet:c}=a,y=u.drawingInfo.renderer,{features:d}=c,m=c.spatialReference??u.spatialReference??u.extent.spatialReference??S.KK,g=y&&(0,_.L)(y),h=T.A.fromJSON(m),f=d.map(e=>{const i=s.A.fromJSON(e);i.geometry&&e.geometry&&null==e.geometry.spatialReference&&(i.geometry.spatialReference=h);const o=r(i);return o.symbol??=g?.getSymbol(i)??this._getNetworkSymbol(t),o.popupTemplate??=p&&n.A.fromJSON(p),o});return i&&f.some(({symbol:e})=>!e)&&i(f),new l.A(f)}_getNetworkSymbol(e){switch(e){case"Barriers":return this.defaultSymbols.pointBarriers;case"DirectionPoints":return this.defaultSymbols.directionPoints;case"DirectionLines":return this.defaultSymbols.directionLines;case"PolylineBarriers":return this.defaultSymbols.polylineBarriers;case"PolygonBarriers":return this.defaultSymbols.polygonBarriers;case"RouteInfo":return this.defaultSymbols.routeInfo;case"Stops":return null}}async _getServiceDescription(e,t,r){if(null!=this._cachedServiceDescription&&this._cachedServiceDescription.url===e)return this._cachedServiceDescription.serviceDescription;const i=await te(e,t,r);return this._cachedServiceDescription={serviceDescription:i,url:e},i}_setStopSymbol(e){const t=l.A.isCollection(e)?e.toArray():e;if(!t||!t.length||!this.defaultSymbols.stops||t.every(({symbol:e})=>!!e))return;const{first:r,last:i,middle:o,unlocated:s,waypoint:n,break:u}=this.defaultSymbols.stops,p=t.map(({sequence:e})=>e).filter(a.Ru),c=t.length===p.length;if(!this.routeInfo&&!c||1===t.length)return void t.forEach((e,s)=>{switch(s){case 0:e.symbol=r;break;case t.length-1:e.symbol=i;break;default:e.symbol=o}});const y=Math.min(...p),d=Math.max(...p);for(const e of t)e.sequence!==y?e.sequence!==d?this.routeInfo&&"ok"!==e.status&&"not-located-on-closest"!==e.status?e.symbol=s:"waypoint"!==e.locationType?"break"!==e.locationType?e.symbol=o:e.symbol=u:e.symbol=n:e.symbol=i:e.symbol=r}_toRouteLayerSolution(e){const{checksum:t,routeResults:r}=e,i=r[0].stops?.map(e=>ht.fromJSON(e.toJSON()));this._setStopSymbol(i);const o=new Bt(i),s=new Dt(e.polygonBarriers?.map(e=>_e.fromJSON(e.toJSON())));At(s,this.defaultSymbols.polygonBarriers);const n=new jt(e.polylineBarriers?.map(e=>Ue.fromJSON(e.toJSON())));At(n,this.defaultSymbols.polylineBarriers);const a=new Zt(e.pointBarriers?.map(e=>Re.fromJSON(e.toJSON())));At(a,this.defaultSymbols.pointBarriers);const l=r[0].route?.toJSON(),u=Ve.fromJSON(l);u.symbol=this.defaultSymbols.routeInfo;const p=new Nt(r[0].directionPoints?.features.map(e=>Ee.fromJSON(e.toJSON())));At(p,this.defaultSymbols.directionPoints);const c=new Ot(r[0].directionLines?.features.map(e=>Be.fromJSON(e.toJSON())));return At(c,this.defaultSymbols.directionLines),{checksum:t,directionLines:c,directionPoints:p,pointBarriers:a,polygonBarriers:s,polylineBarriers:n,routeInfo:u,stops:o}}_writeDirectionLines(){return this._writeNetworkFeatures(this.directionLines,this.defaultSymbols.directionLines,"esriGeometryPolyline",Be.fields,"DirectionLines","Direction Lines")}_writeDirectionPoints(){return this._writeNetworkFeatures(this.directionPoints,this.defaultSymbols.directionPoints,"esriGeometryPoint",Ee.fields,"DirectionPoints","Direction Points")}_writeNetworkFeatures(e,t,r,i,o,s){if(!e?.length)return null;const n=this.spatialReference.toJSON(),{fullExtent:a,maxScale:l,minScale:u}=this;return{featureSet:{features:e.toArray().map(e=>function(e){const{attributes:t,geometry:r,popupTemplate:i,symbol:o}=e.toGraphic().toJSON();return{attributes:t,geometry:r,popupInfo:i,symbol:o}}(e)),geometryType:r,spatialReference:n},layerDefinition:{capabilities:"Query,Update,Editing",drawingInfo:{renderer:{type:"simple",symbol:t?.toJSON()??Tt(r)}},extent:a.toJSON(),fields:i,geometryType:r,hasM:!1,hasZ:!1,maxScale:l,minScale:u,name:o,objectIdField:"ObjectID",spatialReference:n,title:s,type:"Feature Layer",typeIdField:""}}}_writePointBarriers(){return this._writeNetworkFeatures(this.pointBarriers,this.defaultSymbols.pointBarriers,"esriGeometryPoint",Re.fields,"Barriers","Point Barriers")}_writePolygonBarriers(){return this._writeNetworkFeatures(this.polygonBarriers,this.defaultSymbols.polygonBarriers,"esriGeometryPolygon",_e.fields,"PolygonBarriers","Polygon Barriers")}_writePolylineBarriers(){return this._writeNetworkFeatures(this.polylineBarriers,this.defaultSymbols.polylineBarriers,"esriGeometryPolyline",Ue.fields,"PolylineBarriers","Line Barriers")}_writeRouteInfo(){return this._writeNetworkFeatures(null!=this.routeInfo?new l.A([this.routeInfo]):null,this.defaultSymbols.routeInfo,"esriGeometryPolyline",Ve.fields,"RouteInfo","Route Details")}_writeStops(){const e=this._writeNetworkFeatures(this.stops,null,"esriGeometryPoint",ht.fields,"Stops","Stops");if(null==e)return null;const{stops:t}=this.defaultSymbols,r=t?.first?.toJSON(),i=t?.middle?.toJSON(),o=t?.last?.toJSON();return e.layerDefinition.drawingInfo.renderer={type:"uniqueValue",field1:"Sequence",defaultSymbol:i,uniqueValueInfos:[{value:"1",symbol:r,label:"First Stop"},{value:`${this.stops.length}`,symbol:o,label:"Last Stop"}]},e}_populatePortalFields(e,t,r){const i=t.networkDataset?.networkAttributes,o=i?.filter(({usageType:e})=>"cost"===e)??[],s=r.travelMode??t.defaultTravelMode;if(null==s)return void p.A.getLogger(this).warn("route-layer:missing-travel-mode","The routing service must have a default travel mode or one must be specified in the route parameter.");const{timeAttributeName:n,distanceAttributeName:a}=s,l=o.find(({name:e})=>e===n),c=o.find(({name:e})=>e===a),y=r.travelMode?.impedanceAttributeName??r.impedanceAttribute??t.impedance,d=l?.units,m=c?.units;if(!d||!m)throw new u.A("routelayer:unknown-impedance-units","the units of either the distance or time impedance are unknown");const g=r.directionsLanguage??t.directionsLanguage,h=r.accumulateAttributes??t.accumulateAttributeNames??[],f=new Set(o.filter(({name:e})=>e===n||e===a||e===y||null!=e&&h.includes(e)).map(({name:e})=>e)),b=e=>{for(const t in e)f.has(t)||delete e[t]};for(const t of e.pointBarriers)null!=t.costs&&(t.addedCost=t.costs[y]??0,b(t.costs));for(const t of e.polygonBarriers)null!=t.costs&&(t.scaleFactor=t.costs[y]??1,b(t.costs));for(const t of e.polylineBarriers)null!=t.costs&&(t.scaleFactor=t.costs[y]??1,b(t.costs));const{routeInfo:v}=e,{findBestSequence:C,preserveFirstStop:w,preserveLastStop:T,startTimeIsUTC:S,timeWindowsAreUTC:M}=r;v.analysisSettings=new ke({accumulateAttributes:h,directionsLanguage:g,findBestSequence:C,preserveFirstStop:w,preserveLastStop:T,startTimeIsUTC:S,timeWindowsAreUTC:M,travelMode:s}),v.totalDuration=It(v.totalCosts?.[n]??0,d),v.totalDistance=Lt(v.totalCosts?.[a]??0,m),v.totalLateDuration=It(v.totalViolations?.[n]??0,d),v.totalWaitDuration=It(v.totalWait?.[n]??0,d),null!=v.totalCosts&&b(v.totalCosts),null!=v.totalViolations&&b(v.totalViolations),null!=v.totalWait&&b(v.totalWait);for(const t of e.stops)null!=t.serviceCosts&&(t.serviceDuration=It(t.serviceCosts[n]??0,d),t.serviceDistance=Lt(t.serviceCosts[a]??0,m),b(t.serviceCosts)),null!=t.cumulativeCosts&&(t.cumulativeDuration=It(t.cumulativeCosts[n]??0,d),t.cumulativeDistance=Lt(t.cumulativeCosts[a]??0,m),b(t.cumulativeCosts)),null!=t.violations&&(t.lateDuration=It(t.violations[n]??0,d),b(t.violations)),null!=t.wait&&(t.waitDuration=It(t.wait[n]??0,d),b(t.wait))}};(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1,origins:{"portal-item":{write:{allowNull:!0,ignoreOrigin:!0}},"web-map":{write:{overridePolicy(){return{allowNull:!0,ignoreOrigin:null==this.portalItem}}}}}}})],Ft.prototype,"_featureCollection",void 0),(0,i.Cg)([(0,Y.K)(["web-map","portal-item"],"_featureCollection")],Ft.prototype,"writeFeatureCollectionWebmap",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1,origins:{"web-map":{write:{target:"type",overridePolicy(){return{ignoreOrigin:null!=this.portalItem}}}}}}})],Ft.prototype,"_type",void 0),(0,i.Cg)([(0,f.MZ)({type:String})],Ft.prototype,"checksum",void 0),(0,i.Cg)([(0,f.MZ)({nonNullable:!0,type:P})],Ft.prototype,"defaultSymbols",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],Ft.prototype,"directionLines",void 0),(0,i.Cg)([(0,H.w)(["web-map","portal-item"],"directionLines",["layers","featureCollection.layers"])],Ft.prototype,"readDirectionLines",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],Ft.prototype,"directionPoints",void 0),(0,i.Cg)([(0,H.w)(["web-map","portal-item"],"directionPoints",["layers","featureCollection.layers"])],Ft.prototype,"readDirectionPoints",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1,origins:{"web-map":{write:{ignoreOrigin:!0}}}}})],Ft.prototype,"featureCollectionType",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],Ft.prototype,"fullExtent",null),(0,i.Cg)([(0,f.MZ)({json:{origins:{"web-map":{name:"featureCollection.showLegend"}},write:!0}})],Ft.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,f.MZ)({type:["show","hide"]})],Ft.prototype,"listMode",void 0),(0,i.Cg)([(0,f.MZ)({type:Number,nonNullable:!0,json:{write:!1}})],Ft.prototype,"maxScale",void 0),(0,i.Cg)([(0,H.w)(["web-map","portal-item"],"maxScale",["layers","featureCollection.layers"])],Ft.prototype,"readMaxScale",null),(0,i.Cg)([(0,f.MZ)({type:Number,nonNullable:!0,json:{write:!1}})],Ft.prototype,"minScale",void 0),(0,i.Cg)([(0,H.w)(["web-map","portal-item"],"minScale",["layers","featureCollection.layers"])],Ft.prototype,"readMinScale",null),(0,i.Cg)([(0,f.MZ)({type:["ArcGISFeatureLayer"],value:"ArcGISFeatureLayer"})],Ft.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,f.MZ)({nonNullable:!0,type:l.A.ofType(Re)})],Ft.prototype,"pointBarriers",void 0),(0,i.Cg)([(0,H.w)(["web-map","portal-item"],"pointBarriers",["layers","featureCollection.layers"])],Ft.prototype,"readPointBarriers",null),(0,i.Cg)([(0,f.MZ)({nonNullable:!0,type:l.A.ofType(_e)})],Ft.prototype,"polygonBarriers",void 0),(0,i.Cg)([(0,H.w)(["web-map","portal-item"],"polygonBarriers",["layers","featureCollection.layers"])],Ft.prototype,"readPolygonBarriers",null),(0,i.Cg)([(0,f.MZ)({nonNullable:!0,type:l.A.ofType(Ue)})],Ft.prototype,"polylineBarriers",void 0),(0,i.Cg)([(0,H.w)(["web-map","portal-item"],"polylineBarriers",["layers","featureCollection.layers"])],Ft.prototype,"readPolylineBarriers",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],Ft.prototype,"routeInfo",void 0),(0,i.Cg)([(0,H.w)(["web-map","portal-item"],"routeInfo",["layers","featureCollection.layers"])],Ft.prototype,"readRouteInfo",null),(0,i.Cg)([(0,f.MZ)({type:T.A})],Ft.prototype,"spatialReference",void 0),(0,i.Cg)([(0,H.w)(["web-map","portal-item"],"spatialReference",["layers","featureCollection.layers"])],Ft.prototype,"readSpatialReference",null),(0,i.Cg)([(0,f.MZ)({nonNullable:!0,type:l.A.ofType(ht)})],Ft.prototype,"stops",void 0),(0,i.Cg)([(0,H.w)(["web-map","portal-item"],"stops",["layers","featureCollection.layers"])],Ft.prototype,"readStops",null),(0,i.Cg)([(0,f.MZ)()],Ft.prototype,"title",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Ft.prototype,"type",void 0),(0,i.Cg)([(0,f.MZ)()],Ft.prototype,"url",null),Ft=(0,i.Cg)([(0,f.$K)("esri.layers.RouteLayer")],Ft);const Et=Ft},76369(e,t,r){r.d(t,{LF:()=>T,M9:()=>S});var i=r(49186),o=r(93637),s=r(40876),n=r(59247),a=r(27865);class l extends SyntaxError{constructor(e,t,r,i){super(e),this.expected=t,this.found=r,this.location=i,this.name="SyntaxError"}format(e){let t="Error: "+this.message;if(this.location){let r=null;const i=e.find(e=>e.source===this.location.source);i&&(r=i.text.split(/\r\n|\n|\r/g));const o=this.location.start,s=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(o):o,n=this.location.source+":"+s.line+":"+s.column;if(r){const e=this.location.end,i="".padEnd(s.line.toString().length," "),a=r[o.line-1],l=(o.line===e.line?e.column:a.length+1)-o.column||1;t+="\n --\x3e "+n+"\n"+i+" |\n"+s.line+" | "+a+"\n"+i+" | "+"".padEnd(o.column-1," ")+"".padEnd(l,"^")}else t+="\n at "+n}return t}static buildMessage(e,t){function r(e){return e.codePointAt(0).toString(16).toUpperCase()}const i=Object.prototype.hasOwnProperty.call(RegExp.prototype,"unicode")?new RegExp("[\\p{C}\\p{Mn}\\p{Mc}]","gu"):null;function o(e){return i?e.replace(i,e=>"\\u{"+r(e)+"}"):e}function s(e){return o(e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,e=>"\\x0"+r(e)).replace(/[\x10-\x1F\x7F-\x9F]/g,e=>"\\x"+r(e)))}function n(e){return o(e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,e=>"\\x0"+r(e)).replace(/[\x10-\x1F\x7F-\x9F]/g,e=>"\\x"+r(e)))}const a={literal:e=>'"'+s(e.text)+'"',class(e){const t=e.parts.map(e=>Array.isArray(e)?n(e[0])+"-"+n(e[1]):n(e));return"["+(e.inverted?"^":"")+t.join("")+"]"+(e.unicode?"u":"")},any:()=>"any character",end:()=>"end of input",other:e=>e.description};function l(e){return a[e.type](e)}return"Expected "+function(e){const t=e.map(l);if(t.sort(),t.length>0){let e=1;for(let r=1;r<t.length;r++)t[r-1]!==t[r]&&(t[e]=t[r],e++);t.length=e}switch(t.length){case 1:return t[0];case 2:return t[0]+" or "+t[1];default:return t.slice(0,-1).join(", ")+", or "+t[t.length-1]}}(e)+" but "+function(e){return e?'"'+s(e)+'"':"end of input"}(t)+" found."}}function u(e){if(!e||0===e.length)return null;if("string"==typeof e){const t=p(e);return t&&0!==t.length?t:null}const t=e.map(e=>{if(!Number.isFinite(e.scale)||e.scale<=0)throw new i.A("effect:invalid-scale","scale must be finite and greater than 0",{stop:e});return{scale:e.scale,effects:p(e.value)}});t.sort((e,t)=>t.effects.length-e.effects.length);for(let e=0;e<t.length-1;e++){if(!(0,a.mj)(t[e].effects,t[e+1].effects))throw new i.A("effect:interpolation-impossible","Cannot interpolate by scale between 2 lists of mixed effects",{a:t[e].effects,b:t[e+1].effects});(0,a.O9)(t[e].effects,t[e+1].effects)}return t.sort((e,t)=>t.scale-e.scale),t}function p(e){let t;if(!e)return[];try{t=function(e,t){const r={},i=(t=void 0!==t?t:{}).grammarSource,o={start:we};let s=we;const n="none",a=")",u=",",p="(",c="%",y="px",d="cm",m="mm",g="in",h="pt",f="pc",b="deg",v="rad",C="grad",w="turn",T="#",S=".",M="e",A=/^[ \t\n\r]/,I=/^[a-z\-]/,L=/^[0-9a-fA-F]/,O=/^[+\-]/,N=/^[0-9]/,Z=fe("none"),D=ge("none",!1),j=ge(")",!1),B=ge(",",!1),F=he([" ","\t","\n","\r"],!1,!1,!1),E=fe("function"),P=ge("(",!1),R=fe("identifier"),x=he([["a","z"],"-"],!1,!1,!1),J=fe("percentage"),_=ge("%",!1),G=fe("length"),U=ge("px",!1),k=ge("cm",!1),W=ge("mm",!1),V=ge("in",!1),$=ge("pt",!1),K=ge("pc",!1),q=fe("angle"),z=ge("deg",!1),H=ge("rad",!1),Y=ge("grad",!1),Q=ge("turn",!1),X=fe("number"),ee=fe("color"),te=ge("#",!1),re=he([["0","9"],["a","f"],["A","F"]],!1,!1,!1),ie=he(["+","-"],!1,!1,!1),oe=he([["0","9"]],!1,!1,!1),se=ge(".",!1),ne=ge("e",!1);let ae=0|t.peg$currPos,le=ae;const ue=[{line:1,column:1}];let pe,ce=ae,ye=t.peg$maxFailExpected||[],de=0|t.peg$silentFails;if(t.startRule){if(!(t.startRule in o))throw new Error("Can't start parsing from rule \""+t.startRule+'".');s=o[t.startRule]}function me(){return e.substring(le,ae)}function ge(e,t){return{type:"literal",text:e,ignoreCase:t}}function he(e,t,r,i){return{type:"class",parts:e,inverted:t,ignoreCase:r,unicode:i}}function fe(e){return{type:"other",description:e}}function be(t){let r,i=ue[t];if(i)return i;if(t>=ue.length)r=ue.length-1;else for(r=t;!ue[--r];);for(i=ue[r],i={line:i.line,column:i.column};r<t;)10===e.charCodeAt(r)?(i.line++,i.column=1):i.column++,r++;return ue[t]=i,i}function ve(e,t,r){const o=be(e),s=be(t);return{source:i,start:{offset:e,line:o.line,column:o.column},end:{offset:t,line:s.line,column:s.column}}}function Ce(e){ae<ce||(ae>ce&&(ce=ae,ye=[]),ye.push(e))}function we(){let e;return e=Te(),e===r&&(e=function(){let e,t;if(e=[],t=Se(),t!==r)for(;t!==r;)e.push(t),t=Se();else e=r;return e}()),e}function Te(){let t,i;return de++,t=ae,Ae(),e.substr(ae,4)===n?(i=n,ae+=4):(i=r,0===de&&Ce(D)),i!==r?(Ae(),le=t,t=[]):(ae=t,t=r),de--,t===r&&0===de&&Ce(Z),t}function Se(){let t,i,o,s;return t=ae,Ae(),i=function(){let t,i,o;return de++,t=ae,i=Ie(),i!==r?(40===e.charCodeAt(ae)?(o=p,ae++):(o=r,0===de&&Ce(P)),o!==r?(le=t,t=i):(ae=t,t=r)):(ae=t,t=r),de--,t===r&&(i=r,0===de&&Ce(E)),t}(),i!==r?(Ae(),o=function(){let t,i,o,s,n,a,l,p;if(t=ae,i=Me(),i!==r){for(o=[],s=ae,n=Ae(),44===e.charCodeAt(ae)?(a=u,ae++):(a=r,0===de&&Ce(B)),a===r&&(a=null),l=Ae(),p=Me(),p!==r?(n=[n,a,l,p],s=n):(ae=s,s=r);s!==r;)o.push(s),s=ae,n=Ae(),44===e.charCodeAt(ae)?(a=u,ae++):(a=r,0===de&&Ce(B)),a===r&&(a=null),l=Ae(),p=Me(),p!==r?(n=[n,a,l,p],s=n):(ae=s,s=r);le=t,t=function(e,t){return t.length>0?function(e,t){return[e].concat(function(e){return e.map(function(e){return e[3]})}(t))}(e,t):[e]}(i,o)}else ae=t,t=r;return t}(),o===r&&(o=null),Ae(),41===e.charCodeAt(ae)?(s=a,ae++):(s=r,0===de&&Ce(j)),s!==r?(Ae(),le=t,t=function(e,t){return{type:"function",name:e,parameters:t||[]}}(i,o)):(ae=t,t=r)):(ae=t,t=r),t}function Me(){let e,t;return e=ae,t=Le(),t===r&&(t=Oe(),t===r&&(t=Ne(),t===r&&(t=function(){let e,t;return de++,e=ae,Ae(),t=De(),t!==r?(le=e,e=function(e){return{value:e,unit:null}}(t)):(ae=e,e=r),de--,e===r&&0===de&&Ce(X),e}()))),t!==r&&(le=e,t=function(e){return{type:"quantity",value:e.value,unit:e.unit}}(t)),e=t,e===r&&(e=ae,t=Ze(),t!==r&&(le=e,t=function(e){return{type:"color",colorType:e.type,value:e.value}}(t)),e=t),e}function Ae(){let t,i;for(de++,t=[],i=e.charAt(ae),A.test(i)?ae++:(i=r,0===de&&Ce(F));i!==r;)t.push(i),i=e.charAt(ae),A.test(i)?ae++:(i=r,0===de&&Ce(F));return de--,t}function Ie(){let t,i,o;if(de++,t=ae,i=[],o=e.charAt(ae),I.test(o)?ae++:(o=r,0===de&&Ce(x)),o!==r)for(;o!==r;)i.push(o),o=e.charAt(ae),I.test(o)?ae++:(o=r,0===de&&Ce(x));else i=r;return i!==r&&(le=t,i=me()),t=i,de--,t===r&&(i=r,0===de&&Ce(R)),t}function Le(){let t,i,o;return de++,t=ae,Ae(),i=De(),i!==r?(37===e.charCodeAt(ae)?(o=c,ae++):(o=r,0===de&&Ce(_)),o!==r?(le=t,t=function(e){return{value:e,unit:"%"}}(i)):(ae=t,t=r)):(ae=t,t=r),de--,t===r&&0===de&&Ce(J),t}function Oe(){let t,i,o;return de++,t=ae,Ae(),i=De(),i!==r?(e.substr(ae,2)===y?(o=y,ae+=2):(o=r,0===de&&Ce(U)),o!==r?(le=t,t=function(e){return{value:e,unit:"px"}}(i)):(ae=t,t=r)):(ae=t,t=r),t===r&&(t=ae,Ae(),i=De(),i!==r?(e.substr(ae,2)===d?(o=d,ae+=2):(o=r,0===de&&Ce(k)),o!==r?(le=t,t=function(e){return{value:e,unit:"cm"}}(i)):(ae=t,t=r)):(ae=t,t=r),t===r&&(t=ae,Ae(),i=De(),i!==r?(e.substr(ae,2)===m?(o=m,ae+=2):(o=r,0===de&&Ce(W)),o!==r?(le=t,t=function(e){return{value:e,unit:"mm"}}(i)):(ae=t,t=r)):(ae=t,t=r),t===r&&(t=ae,Ae(),i=De(),i!==r?(e.substr(ae,2)===g?(o=g,ae+=2):(o=r,0===de&&Ce(V)),o!==r?(le=t,t=function(e){return{value:e,unit:"in"}}(i)):(ae=t,t=r)):(ae=t,t=r),t===r&&(t=ae,Ae(),i=De(),i!==r?(e.substr(ae,2)===h?(o=h,ae+=2):(o=r,0===de&&Ce($)),o!==r?(le=t,t=function(e){return{value:e,unit:"pt"}}(i)):(ae=t,t=r)):(ae=t,t=r),t===r&&(t=ae,Ae(),i=De(),i!==r?(e.substr(ae,2)===f?(o=f,ae+=2):(o=r,0===de&&Ce(K)),o!==r?(le=t,t=function(e){return{value:e,unit:"pc"}}(i)):(ae=t,t=r)):(ae=t,t=r)))))),de--,t===r&&0===de&&Ce(G),t}function Ne(){let t,i,o;return de++,t=ae,i=De(),i!==r?(e.substr(ae,3)===b?(o=b,ae+=3):(o=r,0===de&&Ce(z)),o!==r?(le=t,t=function(e){return{value:e,unit:"deg"}}(i)):(ae=t,t=r)):(ae=t,t=r),t===r&&(t=ae,i=De(),i!==r?(e.substr(ae,3)===v?(o=v,ae+=3):(o=r,0===de&&Ce(H)),o!==r?(le=t,t=function(e){return{value:e,unit:"rad"}}(i)):(ae=t,t=r)):(ae=t,t=r),t===r&&(t=ae,i=De(),i!==r?(e.substr(ae,4)===C?(o=C,ae+=4):(o=r,0===de&&Ce(Y)),o!==r?(le=t,t=function(e){return{value:e,unit:"grad"}}(i)):(ae=t,t=r)):(ae=t,t=r),t===r&&(t=ae,i=De(),i!==r?(e.substr(ae,4)===w?(o=w,ae+=4):(o=r,0===de&&Ce(Q)),o!==r?(le=t,t=function(e){return{value:e,unit:"turn"}}(i)):(ae=t,t=r)):(ae=t,t=r)))),de--,t===r&&(i=r,0===de&&Ce(q)),t}function Ze(){let t,i,o,s;if(de++,t=ae,35===e.charCodeAt(ae)?(i=T,ae++):(i=r,0===de&&Ce(te)),i!==r){if(o=[],s=e.charAt(ae),L.test(s)?ae++:(s=r,0===de&&Ce(re)),s!==r)for(;s!==r;)o.push(s),s=e.charAt(ae),L.test(s)?ae++:(s=r,0===de&&Ce(re));else o=r;o!==r?(le=t,t={type:"hex",value:me()}):(ae=t,t=r)}else ae=t,t=r;return t===r&&(t=ae,i=Se(),i!==r&&(le=t,i=function(e){return{type:"function",value:e}}(i)),t=i,t===r&&(t=ae,i=Ie(),i!==r&&(le=t,i={type:"named",value:me()}),t=i)),de--,t===r&&(i=r,0===de&&Ce(ee)),t}function De(){let t,i,o,s,n,a,l,u;for(t=ae,i=e.charAt(ae),O.test(i)?ae++:(i=r,0===de&&Ce(ie)),i===r&&(i=null),o=ae,s=[],n=e.charAt(ae),N.test(n)?ae++:(n=r,0===de&&Ce(oe));n!==r;)s.push(n),n=e.charAt(ae),N.test(n)?ae++:(n=r,0===de&&Ce(oe));if(46===e.charCodeAt(ae)?(n=S,ae++):(n=r,0===de&&Ce(se)),n!==r){if(a=[],l=e.charAt(ae),N.test(l)?ae++:(l=r,0===de&&Ce(oe)),l!==r)for(;l!==r;)a.push(l),l=e.charAt(ae),N.test(l)?ae++:(l=r,0===de&&Ce(oe));else a=r;a!==r?(s=[s,n,a],o=s):(ae=o,o=r)}else ae=o,o=r;if(o===r)if(o=[],s=e.charAt(ae),N.test(s)?ae++:(s=r,0===de&&Ce(oe)),s!==r)for(;s!==r;)o.push(s),s=e.charAt(ae),N.test(s)?ae++:(s=r,0===de&&Ce(oe));else o=r;if(o!==r){if(s=ae,101===e.charCodeAt(ae)?(n=M,ae++):(n=r,0===de&&Ce(ne)),n!==r){if(a=e.charAt(ae),O.test(a)?ae++:(a=r,0===de&&Ce(ie)),a===r&&(a=null),l=[],u=e.charAt(ae),N.test(u)?ae++:(u=r,0===de&&Ce(oe)),u!==r)for(;u!==r;)l.push(u),u=e.charAt(ae),N.test(u)?ae++:(u=r,0===de&&Ce(oe));else l=r;l!==r?(n=[n,a,l],s=n):(ae=s,s=r)}else ae=s,s=r;s===r&&(s=null),le=t,t=parseFloat(me())}else ae=t,t=r;return t}pe=s();const je=pe!==r&&ae===e.length;function Be(){throw pe!==r&&ae<e.length&&Ce({type:"end"}),function(e,t,r){return new l(l.buildMessage(e,t),e,t,r)}(ye,ce<e.length?function(t=ae){const r=e.codePointAt(t);return void 0===r?"":String.fromCodePoint(r)}(ce):null,ce<e.length?ve(ce,ce+1):ve(ce,ce))}return t.peg$library?{peg$result:pe,peg$currPos:ae,peg$FAILED:r,peg$maxFailExpected:ye,peg$maxFailPos:ce,peg$success:je,peg$throw:je?void 0:Be}:je?pe:void Be()}(e)}catch(t){throw new i.A("effect:invalid-syntax","Invalid effect syntax",{value:e,error:t})}return t.map(e=>function(e){try{switch(e.name){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":return function(e){let t=1;return c(e.parameters,1),1===e.parameters.length&&(t=h(e.parameters[0])),new n.yG(e.name,t)}(e);case"opacity":return function(e){let t=1;return c(e.parameters,1),1===e.parameters.length&&(t=h(e.parameters[0])),new n.jm(t)}(e);case"hue-rotate":return function(e){let t=0;return c(e.parameters,1),1===e.parameters.length&&(t=function(e){return function(e){if("quantity"!==e.type||!(0===e.value&&null===e.unit||e.unit&&null!=m[e.unit]))throw new i.A("effect:type-error",`Expected <angle>, Actual: ${y(e)}`,{term:e})}(e),e.value*m[e.unit]||0}(e.parameters[0])),new n.Nd(t)}(e);case"blur":return function(e){let t=0;return c(e.parameters,1),1===e.parameters.length&&(t=f(e.parameters[0]),d(t,e.parameters[0])),new n.Fk(t)}(e);case"drop-shadow":return function(e){const t=[];let r=null;for(const o of e.parameters)if("color"===o.type){if(t.length&&Object.freeze(t),r)throw new i.A("effect:type-error","Accepts only one color",{});r=b(o)}else{const e=f(o);if(Object.isFrozen(t))throw new i.A("effect:type-error","<length> parameters not consecutive",{lengths:t});t.push(e),3===t.length&&d(e,o)}if(t.length<2||t.length>3)throw new i.A("effect:type-error",`Expected <length>{2,3}, Actual: <length>{${t.length}}`,{lengths:t});return new n.$b(t[0],t[1],t[2]||0,r||v("black"))}(e);case"bloom":return function(e){let t=1,r=0,i=0;return c(e.parameters,3),e.parameters[0]&&(t=h(e.parameters[0])),e.parameters[1]&&(r=f(e.parameters[1]),d(r,e.parameters[1])),e.parameters[2]&&(i=h(e.parameters[2])),new n.bv(t,r,i)}(e)}}catch(t){throw t.details.filter=e,t}throw new i.A("effect:unknown-effect",`Effect '${e.name}' is not supported`,{effect:e})}(e))}function c(e,t){if(e.length>t)throw new i.A("effect:type-error",`Function supports up to ${t} parameters, Actual: ${e.length}`,{parameters:e})}function y(e){if("color"===e.type)return"<color>";if(e.unit){if(e.unit in g)return"<length>";if(e.unit in m)return"<angle>";if("%"===e.unit)return"<percentage>"}return"<double>"}function d(e,t){if(e<0)throw new i.A("effect:type-error",`Negative values are not allowed, Actual: ${e}`,{term:t})}const m={deg:1,grad:.9,rad:180/Math.PI,turn:360},g={px:1,cm:96/2.54,mm:96/2.54/10,in:96,pc:16,pt:96/72};function h(e){!function(e){if("quantity"!==e.type||null!==e.unit&&"%"!==e.unit)throw new i.A("effect:type-error",`Expected <double> or <percentage>, Actual: ${y(e)}`,{term:e})}(e);const t=e.value;return d(t,e),"%"===e.unit?.01*t:t}function f(e){return function(e){if("quantity"!==e.type||!(0===e.value&&null===e.unit||e.unit&&null!=g[e.unit]))throw new i.A("effect:type-error",`Expected <length>, Actual: ${y(e)}`,{term:e})}(e),e.value*g[e.unit]||0}function b(e){switch(e.colorType){case"hex":return(0,s.j5)(e.value);case"named":return v(e.value);case"function":return function(e){if(c(e.parameters,4),C.test(e.name))return[h(e.parameters[0]),h(e.parameters[1]),h(e.parameters[2]),e.parameters[3]?h(e.parameters[3]):1];if(w.test(e.name))return(0,s.ay)(function(e){return function(e){if("quantity"!==e.type||null!==e.unit)throw new i.A("effect:type-error",`Expected <double>, Actual: ${y(e)}`,{term:e})}(e),d(e.value,e),e.value}(e.parameters[0]),h(e.parameters[1]),h(e.parameters[2]),e.parameters[3]?h(e.parameters[3]):1);throw new i.A("effect:syntax-error",`Invalid color function '${e.name}'`,{colorFunction:e})}(e.value)}}function v(e){if(!(0,s.V6)(e))throw new i.A("effect:unknown-color",`color '${e}' isn't valid`,{namedColor:e});return(0,s.c4)(e)}const C=/^rgba?/i,w=/^hsla?/i;function T(e,t,r){try{return function(e){if(!e||0===e.length)return null;if(function(e){const t=e[0];return!!t&&"scale"in t}(e)){const t=[];for(const r of e)t.push({scale:r.scale,value:M(r.value)});return t}return M(e)}(e)}catch(e){r?.messages?.push(e)}return null}function S(e,t,r,i){try{const i=function(e){const t=u(e);return t?(0,a.dw)(t)?t.map(e=>e.toJSON()):t.map(({scale:e,effects:t})=>({scale:e,value:t.map(e=>e.toJSON())})):null}(e);(0,o.sM)(r,i,t)}catch(e){i.messages&&i.messages.push(e)}}function M(e){if(!e?.length)return"";const t=[];for(const r of e){let e=[];switch(r.type){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":case"opacity":e=[A(r,"amount")];break;case"blur":e=[A(r,"radius","pt")];break;case"hue-rotate":e=[A(r,"angle","deg")];break;case"drop-shadow":e=[A(r,"xoffset","pt"),A(r,"yoffset","pt"),A(r,"blurRadius","pt"),I(r,"color")];break;case"bloom":e=[A(r,"strength"),A(r,"radius","pt"),A(r,"threshold")]}const i=`${r.type}(${e.filter(Boolean).join(" ")})`;u(i),t.push(i)}return t.join(" ")}function A(e,t,r){if(null==e[t])throw new i.A("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});return r?e[t]+r:""+e[t]}function I(e,t){if(null==e[t])throw new i.A("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});const r=e[t];return`rgba(${r[0]||0}, ${r[1]||0}, ${r[2]||0}, ${r[3]/255||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":{const r=[];for(const i of t.fieldNames)r.push(e.attributes[i]??null);return JSON.stringify(r)}}}function o(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const r=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(r)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}r.d(t,{W:()=>i,r:()=>o})},63074(e,t,r){var i=r(32198),o=r(91429),s=r(89317),n=r(76369);const a={type:["average","color-burn","color-dodge","color","darken","destination-atop","destination-in","destination-out","destination-over","difference","exclusion","hard-light","hue","invert","lighten","lighter","luminosity","minus","multiply","normal","overlay","plus","reflect","saturation","screen","soft-light","source-atop","source-in","source-out","vivid-light","xor"],nonNullable:!0,json:{read:!1,write:!1,origins:{"web-map":{read:!0,write:{layerContainerTypes:s.K}},"portal-item":{read:!0,write:{layerContainerTypes:s.K}}}}},l={read:{reader:n.LF},write:{allowNull:!0,writer:n.M9,layerContainerTypes:s.K}},u={json:{read:!1,write:!1,origins:{"web-map":l,"portal-item":l}}};r.d(t,["LF",0,u,"dM",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.blendMode="normal",this.effect=null}};return(0,i.Cg)([(0,o.MZ)(a)],r.prototype,"blendMode",void 0),(0,i.Cg)([(0,o.MZ)(u)],r.prototype,"effect",void 0),r=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.BlendLayer")],r),r},"sU",0,a])},34287(e,t,r){var i=r(32198),o=r(49186),s=r(84952),n=r(91429),a=r(78888),l=r(89317),u=r(45917),p=r(49422),c=r(10873),y=r(6345),d=r(79677),m=r(59923),g=r(36005),h=r(43937);r.d(t,["q",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.persistenceEnabled=!0,this.title=null}readId(e,t,r){return"Group Layer"===r?.portalItem?.type?void 0:e}writeListMode(e,t,r,i){(i&&"ground"===i.layerContainerType||e&&(0,p.R)(this,r,{},i))&&(t[r]=e)}writeOperationalLayerType(e,t,r){e&&(t[r]=e)}writeTitle(e,t){t.title=e??"Layer"}readVisibilityTimeExtent(e){return e?d.A.fromArray(e):null}writeVisibilityTimeExtent(e,t,r,i){e&&"tables"!==i.layerContainerType&&(e.isEmpty?i?.messages&&i.messages.push(new o.A("layer:invalid-visibilityTimeExtent","visibilityTimeExtent cannot be empty")):t[r]=e.toArray())}read(e,t){t&&(t.layer=this),(0,u.t)(this,e,t=>super.read(e,t),t)}write(e,t){if(!this.persistenceEnabled&&!t?.ignorePersistenceEnabled)return null;if(t?.origin&&!(0,y.Bu)(t,this.operationalLayerType,this.type))return(0,m.U4)(t,this),null;const r=super.write(e,{...t,layer:this}),i=!!t&&!!t.messages&&!!t.messages.filter(e=>e instanceof o.A&&"web-document-write:property-required"===e.name).length;return(0,s.w8)(r?.url)?(t?.messages?.push(new o.A("layer:invalid-url",`Layer (${this.title}, ${this.id}) of type '${this.declaredClass}' using a Blob URL cannot be written to web scenes and web maps`,{layer:this})),null):!this.url&&i?null:r}beforeSave(){}};return(0,i.Cg)([(0,n.MZ)({type:String,json:{write:{ignoreOrigin:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0}},"portal-item":{write:!1}}}})],r.prototype,"id",void 0),(0,i.Cg)([(0,g.w)("id",["id"])],r.prototype,"readId",null),(0,i.Cg)([(0,n.MZ)(c.C1)],r.prototype,"listMode",void 0),(0,i.Cg)([(0,h.K)("listMode")],r.prototype,"writeListMode",null),(0,i.Cg)([(0,n.MZ)({type:String,readOnly:!0,json:{read:!1,write:{target:"layerType",ignoreOrigin:!0},origins:{"portal-item":{write:!1},"web-scene":{name:"layerType",read:!1,write:{enabled:!0,ignoreOrigin:!0,layerContainerTypes:l.K,isRequired:!0}}}}})],r.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,h.K)("operationalLayerType")],r.prototype,"writeOperationalLayerType",null),(0,i.Cg)([(0,n.MZ)(c.ke)],r.prototype,"opacity",void 0),(0,i.Cg)([(0,n.MZ)({type:Boolean,readOnly:!1})],r.prototype,"persistenceEnabled",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:{ignoreOrigin:!0,writerEnsuresNonNull:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}},"portal-item":{write:!1}}},value:"Layer"})],r.prototype,"title",void 0),(0,i.Cg)([(0,h.K)("title"),(0,h.K)(["web-scene"],"title")],r.prototype,"writeTitle",null),(0,i.Cg)([(0,n.MZ)({type:d.A,json:{origins:{"web-scene":{write:{layerContainerTypes:l.K}}}}})],r.prototype,"visibilityTimeExtent",void 0),(0,i.Cg)([(0,g.w)("visibilityTimeExtent")],r.prototype,"readVisibilityTimeExtent",null),(0,i.Cg)([(0,h.K)(["portal-item","web-map","web-scene"],"visibilityTimeExtent",{visibilityTimeExtent:{type:[[a.jz,a.Uv]]}})],r.prototype,"writeVisibilityTimeExtent",null),(0,i.Cg)([(0,n.MZ)({type:Boolean,json:{name:"visibility",write:{layerContainerTypes:l.K}}})],r.prototype,"visible",void 0),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.OperationalLayer")],r),r}])},8303(e,t,r){var i=r(32198),o=r(92602),s=r(70333),n=r(56507),a=r(60999),l=r(49186),u=r(36563),p=r(53966),c=r(97768),y=r(17676),d=r(84952),m=r(91429),g=r(77548),h=r(20655),f=r(80812),b=r(41318),v=r(10407),C=r(36005),w=r(43937);const T={credential:null,user:null};r.d(t,["A",0,e=>{const t=e;let S=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,c.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 f.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:i}=await r.e(1204).then(()=>r(41204));return(0,y.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,y.zf)(e)||p.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async reloadFromPortal(e,t){if(!this.loaded||!this.portalItem?.id)return!1;const i=t?.signal?null:new AbortController;try{const{reload:o}=await r.e(1204).then(()=>r(41204));return i&&this.addHandles((0,u.rE)(i),"reloadFromPortal"),await o({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,y.zf)(e)||p.A.getLogger(this).warn(`Failed to reload layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}finally{i&&this.removeHandles("reloadFromPortal")}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,y.QP)(e),!0)))}async setUserPrivileges(e,t){if(!o.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:o}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",o)}catch(e){(0,y.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=!s.id?.findCredential(this.url),o=e===r.id;if(o&&r.portal.user)return this._getUserPrivileges(r,i);let n,a;if(o)n=r.portal.url;else try{n=await(0,g.wI)(this.url,t)}catch(e){(0,y.QP)(e)}if(!n||!(0,d.b8)(n,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;a=await(s.id?.getCredential(`${n}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,y.QP)(e)}const l=!0,u=!1,p=!1;if(!a)return{features:{edit:l,fullEdit:u},content:{updateItem:p}};try{if(o?await r.reload():(r=new f.default({id:e,portal:{url:n}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,i)}catch(e){(0,y.QP)(e)}return{features:{edit:l,fullEdit:u},content:{updateItem:p}}}_getUserPrivileges(e,t){const r=(0,v.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,y.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const r=T.credential===t?T.user:await this._fetchEditingUser(e);return T.credential=t,T.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=s.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,o=h.A.getDefault();if(o&&o.loaded&&(0,d.S8)(o.restUrl)===(0,d.S8)(i))return o.user;const l=`${i}/community/self`,u=null!=e?e.signal:null,p=await(0,a.Ke)((0,n.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return p.ok?b.A.fromJSON(p.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||h.A.getDefault());return r&&i&&!(0,d.ut)(i.restUrl,r.restUrl)?(t.messages&&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,m.MZ)({type:f.default})],S.prototype,"portalItem",null),(0,i.Cg)([(0,C.w)("web-document","portalItem",["itemId"])],S.prototype,"readPortalItem",null),(0,i.Cg)([(0,w.K)("web-document","portalItem",{itemId:{type:String}})],S.prototype,"writePortalItem",null),(0,i.Cg)([(0,m.MZ)({clonable:!1})],S.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,m.MZ)({type:Boolean,readOnly:!0})],S.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,m.MZ)({type:Boolean,readOnly:!0})],S.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,m.MZ)({type:Boolean,readOnly:!0})],S.prototype,"userHasUpdateItemPrivileges",void 0),S=(0,i.Cg)([(0,m.$K)("esri.layers.mixins.PortalLayer")],S),S}])},25036(e,t,r){var i=r(32198),o=r(91429);r.d(t,["j",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;void 0!==t?.effectiveScaleRange&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,i.Cg)([(0,o.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"minScale",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"maxScale",void 0),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],r.prototype,"effectiveScaleRange",null),r=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.ScaleRangeLayer")],r),r}])},6345(e,t,r){r.d(t,{Bu:()=>v,VH:()=>b});var i=r(44208);const o={ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BingMapsAerial:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",OpenStreetMap:"OpenStreetMapLayer",VectorTileLayer:"VectorTileLayer",WCS:"WCSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},s={ArcGISAnnotationLayer:"AnnotationFeatureLayer",ArcGISDimensionLayer:"DimensionFeatureLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISStreamLayer:"StreamLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",ArcGISVideoLayer:"VideoLayer",BingMapsAerial:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",CatalogLayer:"CatalogLayer",CSV:"CSVLayer",GeoJSON:"GeoJSONLayer",GeoRSS:"GeoRSSLayer",GroupLayer:"GroupLayer",KML:"KMLLayer",KnowledgeGraphLayer:"KnowledgeGraphLayer",MediaLayer:"MediaLayer",OGCFeatureLayer:"OGCFeatureLayer",OrientedImageryLayer:"OrientedImageryLayer",get ParquetLayer(){return(0,i.A)("parquetlayer-persistence-enabled")?"ParquetLayer":"UnsupportedLayer"},SubtypeGroupLayer:"SubtypeGroupLayer",VectorTileLayer:"VectorTileLayer",WCS:"WCSLayer",WFS:"WFSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},n={ArcGISFeatureLayer:"FeatureLayer",SubtypeGroupTable:"SubtypeGroupLayer"},a={ArcGISImageServiceLayer:"UnsupportedLayer",ArcGISMapServiceLayer:"UnsupportedLayer",ArcGISSceneServiceLayer:"SceneLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",OpenStreetMap:"OpenStreetMapLayer",VectorTileLayer:"VectorTileLayer",WCS:"UnsupportedLayer",WMS:"UnsupportedLayer",WebTiledLayer:"WebTileLayer"},l={IntegratedMesh3DTilesLayer:"IntegratedMesh3DTilesLayer"},u={ArcGISTiledElevationServiceLayer:"ElevationLayer",RasterDataElevationLayer:"UnsupportedLayer"},p={ArcGISDimensionLayer:"DimensionLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISSceneServiceLayer:"SceneLayer",ArcGISTiledElevationServiceLayer:"ElevationLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BuildingSceneLayer:"BuildingSceneLayer",CSV:"CSVLayer",CatalogLayer:"CatalogLayer",GaussianSplatLayer:"GaussianSplatLayer",GeoJSON:"GeoJSONLayer",GroupLayer:"GroupLayer",IntegratedMesh3DTilesLayer:"IntegratedMesh3DTilesLayer",IntegratedMeshLayer:"IntegratedMeshLayer",KML:"KMLLayer",LineOfSightLayer:"LineOfSightLayer",MediaLayer:"MediaLayer",OGCFeatureLayer:"OGCFeatureLayer",Object3DTilesLayer:"UnsupportedLayer",OrientedImageryLayer:"OrientedImageryLayer",PointCloudLayer:"PointCloudLayer",RasterDataLayer:"UnsupportedLayer",VectorTileLayer:"VectorTileLayer",ViewshedLayer:"ViewshedLayer",Voxel:"VoxelLayer",WCS:"WCSLayer",WFS:"WFSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},c={ArcGISFeatureLayer:"FeatureLayer"},y={...s,LinkChartLayer:"LinkChartLayer"},d=o,m=n,g={ArcGISAnnotationLayer:"AnnotationFeatureLayer",ArcGISDimensionLayer:"DimensionFeatureLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISSceneServiceLayer:"SceneLayer",ArcGISStreamLayer:"StreamLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",BuildingSceneLayer:"BuildingSceneLayer",IntegratedMesh3DTilesLayer:"IntegratedMesh3DTilesLayer",IntegratedMeshLayer:"IntegratedMeshLayer",MediaLayer:"MediaLayer",OrientedImageryLayer:"OrientedImageryLayer",PointCloudLayer:"PointCloudLayer",SubtypeGroupLayer:"SubtypeGroupLayer",WCS:"WCSLayer"},h=n;function f(e){switch(e.origin){case"web-scene":switch(e.layerContainerType){case"basemap-base-layers":return a;case"basemap-ground-layers":return l;case"ground":return u;case"tables":return c;default:return p}case"link-chart":switch(e.layerContainerType){case"basemap-base-layers":return d;case"tables":return m;default:return y}default:switch(e.layerContainerType){case"basemap-base-layers":return o;case"tables":return n;case"ground":case"basemap-ground-layers":return;default:return s}}}function b(e,t){if(!t)return"UnknownLayer";if("DefaultTileLayer"===t){let t="UnknownLayer";if("web-scene"===e.origin)switch(e.layerContainerType){case"operational-layers":case"basemap-base-layers":t="TileLayer";break;case"ground":t="ElevationLayer"}else switch(e.layerContainerType){case"basemap-base-layers":case"operational-layers":t="TileLayer"}return t}return f(e)?.[t]??"UnknownLayer"}function v(e,t,r){if(!e?.origin)return!1;switch(e.origin){case"web-map":case"link-chart":if("operational-layers"===e.layerContainerType&&"ArcGISDimensionLayer"===t&&"dimension-feature"!==r)return!1;break;case"web-scene":if("operational-layers"===e.layerContainerType)switch(t){case"ArcGISDimensionLayer":if("dimension"!==r)return!1;break;case"ArcGISTiledElevationServiceLayer":return!1}break;case"portal-item":if("ArcGISDimensionLayer"===t&&"dimension-feature"!==r)return!1}const i=function(e){if("portal-item"===e.origin)switch(e.layerContainerType){case"basemap-base-layers":case"ground":case"basemap-ground-layers":return;case"tables":return h;default:return g}return f(e)}(e)?.[t];return null!=i&&"UnknownLayer"!==i&&"UnsupportedLayer"!==i}},10407(e,t,r){r.d(t,{It:()=>d,LG:()=>n,OM:()=>u,Sm:()=>p,Y:()=>a,bK:()=>l,sQ:()=>c});var i=r(99917),o=r(16930),s=r(28735);function n(e,t){if(!a(e,t)){const r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function a(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return a(e,y.HOSTED_SERVICE)}function u(e,t){const r=e.typeKeywords;if(r){const e=r.indexOf(t);e>-1&&r.splice(e,1)}}function p(e,t,r){r?n(e,t):u(e,t)}async function c(e){const t=e.clone().normalize();let r;if(t.length>1)for(const e of t)r?e.width>r.width&&(r=e):r=e;else r=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,s.ci)(e);const r=o.A.WGS84;return await(0,i.initializeProjection)(t,r),(0,i.project)(e,r)}(r)}const y={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 d(e){const{portal:t,isOrgItem:r,itemControl:i}=e,o=t.user?.privileges;let s=!o||o.includes("features:user:edit"),n=!!r&&!!o?.includes("features:user:fullEdit");const a="update"===i||"admin"===i;return a?n=s=!0:n&&(s=!0),{features:{edit:s,fullEdit:n},content:{updateItem:a}}}r.d(t,["mm",0,y])},96576(e,t,r){r.d(t,{A:()=>c});var i,o=r(32198),s=r(4718),n=r(91429),a=r(92438),l=r(63988),u=r(49849),p=r(93223);let c=i=class extends((0,l.h)(a.A)){constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.type="simple"}async collectRequiredFields(e,t){await Promise.all([this.collectSymbolFields(e,t),this.collectVVRequiredFields(e,t)])}async collectSymbolFields(e,t){await Promise.all(this.symbols.map(r=>r.collectRequiredFields(e,t)))}getSymbol(e,t){return this.symbol}async getSymbolAsync(e,t){return this.symbol}get symbols(){return this.symbol?[this.symbol]:[]}get arcadeRequired(){return this.arcadeRequiredForVisualVariables}clone(){return new i({description:this.description,label:this.label,symbol:(0,s.o8)(this.symbol),visualVariables:(0,s.o8)(this.visualVariables),authoringInfo:(0,s.o8)(this.authoringInfo)})}};(0,o.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],c.prototype,"description",void 0),(0,o.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,o.Cg)([(0,n.MZ)(u.Wp)],c.prototype,"symbol",void 0),(0,o.Cg)([(0,p.e)({simple:"simple"})],c.prototype,"type",void 0),c=i=(0,o.Cg)([(0,n.$K)("esri.renderers.SimpleRenderer")],c)},65494(e,t,r){r.d(t,{L:()=>l,r:()=>n});var i=r(90360),o=r(41214),s=r(59923);function n(e,t){return l(e,null,t)}const a=(0,i.C)({types:o.Hg});function l(e,t,r){return e?e&&(e.styleName||e.styleUrl)&&"uniqueValue"!==e.type?((0,s.Yc)(r,"warning","renderer",`Only UniqueValueRenderer can be referenced from a web style, but found '${e.type}'`,{definition:e}),null):a(e,t,r):null}},2272(e,t,r){r.d(t,{Dl:()=>u,gf:()=>c,jV:()=>l,lF:()=>p});var i=r(92602),o=r(70333),s=r(4718),n=r(84952),a=r(926);function l(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,n.An)(e):(0,s.o8)(e)}function p(e,t,r){const i={};for(const o in e){if("declaredClass"===o)continue;const s=e[o];if(null!=s&&"function"!=typeof s)if(Array.isArray(s))i[o]=s.map(e=>p(e));else if("object"==typeof s)if(s.toJSON){const e=s.toJSON(r?.[o]);i[o]=t?e:JSON.stringify(e)}else i[o]=t?s:JSON.stringify(s);else i[o]=s}return i}async function c(e,t,s){const n=function(e,t){return e?t&&(0,a.Qc)(e)?t:(0,a.getApiKey)(e)??o.id?.findCredential(e)?.token:null}(e,t);if(n)return n;!o.id&&i.A.request.useIdentity&&await Promise.all([r.e(6361),r.e(8971),r.e(7715)]).then(()=>r(50148));const l=await o.id.getCredential(e,s);return l?.token}},93470(e,t,r){const i=[252,146,31,255],o={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},s={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i};r.d(t,["Cb",0,o,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,i,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,s])}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9953],{10382(e,t,r){r.d(t,{A:()=>c});var s=r(36563),n=(r(44208),r(17676)),o=r(9775),i=r(72457),a=r(52268),l=r(61322);class c{constructor(){this._clients=new Array,this._ongoingJobsQueue=new o.A,this._ongoingLowPriorityJobsQueue=new o.A,this._onClientConnectedCallbacks=new Set,this._clientOpenOptions=null,this._portSource=null,this._onClose=null,this._isProvisioningClient=!1,this._isClosed=!1}destroy(){this.close()}[Symbol.dispose](){this.destroy()}get closed(){return this._isClosed}async open(e,t,r){this._isClosed=!1,this._clientOpenOptions=t,this._portSource=e[Symbol.iterator](),this._onClose=r,this._clients.length=0,await this._tryAllocateNewClient()}broadcast(e,t,r){return this._clients.map(s=>s.invoke(e,t,r))}close(){if(this._isClosed)return;let e;for(this._isClosed=!0;e=this._ongoingJobsQueue.pop();)e.resolver.reject((0,n.NK)(`Worker closing, aborting job calling '${e.methodName}'`));for(;e=this._ongoingLowPriorityJobsQueue.pop();)e.resolver.reject((0,n.NK)(`Worker closing, aborting job calling '${e.methodName}'`));for(const e of this._clients)e.close();this._clients.length=0,this._onClose?.(),this._onClose=null,this._portSource?.return?.(),this._portSource=null,this._onClientConnectedCallbacks.clear(),(0,i.h)(this)}invoke(e,t,r){return this.apply(e,[t],r)}apply(e,t,r){const s=Promise.withResolvers();return(1===r?.jobPriority?this._ongoingLowPriorityJobsQueue:this._ongoingJobsQueue).push({methodName:e,data:t,invokeOptions:r,resolver:s}),this._provisionClientIfNeeded(),this._signalClientsJobAdded(),s.promise}createInvokeProxy(e){return(0,a.L)(this,e)}on(e,t){return(0,s.vE)(this._clients.map(r=>r.on(e,t)))}onClientConnected(e){this._onClientConnectedCallbacks.add(e);for(const t of this._clients)t&&e(t);return(0,s.hA)(()=>{this._onClientConnectedCallbacks.delete(e)})}openPorts(){return this._clients.map(e=>e.openPort())}get test(){}async _addClient(e,t){const r=await e;if((0,n.G4)(t)||this._isClosed)throw(0,n.NK)();const s=new l.default(r,t,this._ongoingJobsQueue,this._ongoingLowPriorityJobsQueue);this._clients.push(s);for(const e of this._onClientConnectedCallbacks)e(s);s.jobAdded()}_signalClientsJobAdded(){for(const e of this._clients)e.jobAdded()}_provisionClientIfNeeded(){const e=this._ongoingJobsQueue.length>0||this._ongoingLowPriorityJobsQueue.length>0,t=this._clients.some(e=>e&&!e.isBusy());e&&!t&&(0,n.QZ)(this._tryAllocateNewClient())}async _tryAllocateNewClient(){const e=this._clientOpenOptions;if(!this._portSource||this._isClosed||!e||this._isProvisioningClient)return;const t=this._portSource.next();if(t.done)this._portSource=null;else{this._isProvisioningClient=!0;try{await this._addClient(t.value,e)}finally{this._isProvisioningClient=!1}}}}},72457(e,t,r){r.d(t,{h:()=>o,k:()=>n});const s=new FinalizationRegistry(e=>{e.close()});function n(e,t){s.register(e,t,t)}function o(e){s.unregister(e)}},29953(e,t,r){r.d(t,{ho:()=>z,N1:()=>F});var s=r(49186),n=r(36563),o=r(44208),i=r(91869),a=r(17676),l=r(10382),c=r(72457),u=r(61322),d=r(53966),h=r(97768),f=r(56507),g=r(84952);const p={async request(e,t){const r=e.options,s=r.responseType;r.signal=t?.signal,r.responseType="native"===s||"native-request-init"===s?"native-request-init":s&&["blob","json","text"].includes(s)&&(0,g.sC)(e.url)?.after?s:"array-buffer";const n=await(0,f.A)(e.url,r),o={data:n.data,httpStatus:n.httpStatus,ssl:n.ssl};switch(n.requestOptions?.responseType){case"native-request-init":return delete o.data.signal,o;case"blob":o.data=await o.data.arrayBuffer();break;case"json":o.data=(new TextEncoder).encode(JSON.stringify(o.data)).buffer;break;case"text":o.data=(new TextEncoder).encode(o.data).buffer}return{result:o,transferList:[o.data]}}};var m=r(8341),y=r(2741),w=r(92602),b=r(79783),_=r(70333);r(87811);const k={};var v=r(26390);class A{constructor(){const e=document.createDocumentFragment();["addEventListener","dispatchEvent","removeEventListener"].forEach(t=>{this[t]=(...r)=>e[t](...r)})}}class C{constructor(){this._dispatcher=new A,this._workerPostMessage({type:m.Go.HANDSHAKE})}terminate(){}get onmessage(){return this._onmessageHandler}set onmessage(e){this._onmessageHandler&&this.removeEventListener("message",this._onmessageHandler),this._onmessageHandler=e,e&&this.addEventListener("message",e)}get onmessageerror(){return this._onmessageerrorHandler}set onmessageerror(e){this._onmessageerrorHandler&&this.removeEventListener("messageerror",this._onmessageerrorHandler),this._onmessageerrorHandler=e,e&&this.addEventListener("messageerror",e)}get onerror(){return this._onerrorHandler}set onerror(e){this._onerrorHandler&&this.removeEventListener("error",this._onerrorHandler),this._onerrorHandler=e,e&&this.addEventListener("error",e)}postMessage(e){(0,v.d)(()=>{this._workerMessageHandler(new MessageEvent("message",{data:e}))})}dispatchEvent(e){return this._dispatcher.dispatchEvent(e)}addEventListener(e,t,r){this._dispatcher.addEventListener(e,t,r)}removeEventListener(e,t,r){this._dispatcher.removeEventListener(e,t,r)}_workerPostMessage(e){(0,v.d)(()=>{this.dispatchEvent(new MessageEvent("message",{data:e}))})}async _workerMessageHandler(e){const t=(0,m.VI)(e);if(t&&t.type===m.Go.OPEN){const{modulePath:e,jobId:r}=t;let s=await u.default.loadWorker(e);s||(s=await(import(e)));const n=u.default.connect(s);this._workerPostMessage({type:m.Go.OPENED,jobId:r,data:n})}}}var P=r(18357);const E=()=>d.A.getLogger("esri.core.workers.workerFactory"),{HANDSHAKE:x}=m.Go;let N,L;const O="Failed to create Worker. Fallback to execute module in main thread";async function M(e){return new Promise(t=>{function r(n){const o=(0,m.VI)(n);o&&o.type===x&&(e.removeEventListener("message",r),e.removeEventListener("error",s),t(e))}function s(t){t.preventDefault(),e.removeEventListener("message",r),e.removeEventListener("error",s),E().warn("Failed to create Worker. Fallback to execute module in main thread",t),(e=new C).addEventListener("message",r),e.addEventListener("error",s)}e.addEventListener("message",r),e.addEventListener("error",s)})}let S=0;const{ABORT:I,INVOKE:j,OPEN:J,OPENED:R,RESPONSE:U}=m.Go;class q{static async create(e){const t=await async function(){if(!(0,o.A)("esri-workers"))return M(new C);if(!N&&!L)try{const e='"use strict";let globalId=0;const outgoing=new Map,configuration={CONFIGURATION};self.esriConfig=configuration.esriConfig;const workerPath=self.esriConfig.workers.workerPath,HANDSHAKE=0,OPEN=1,OPENED=2,RESPONSE=3,INVOKE=4,ABORT=5;function createAbortError(){const e=new Error("Aborted");return e.name="AbortError",e}function receiveMessage(e){return e&&e.data?"string"==typeof e.data?JSON.parse(e.data):e.data:null}self.invokeStaticMessage=(e,o,r)=>{const t=r&&r.signal,n=globalId++;let s=null;return new Promise((r,i)=>{if(t){if(t.aborted)return i(createAbortError());s=()=>{outgoing.get(n)&&(outgoing.delete(n),self.postMessage({type:5,jobId:n}),i(createAbortError()))},t.addEventListener("abort",s)}outgoing.set(n,{resolve:r,reject:i}),self.postMessage({type:4,jobId:n,methodName:e,abortable:null!=t,data:o})}).finally(()=>{t&&t.removeEventListener("abort",s)})};let workerRevisionChecked=!1;function checkWorkerRevision(e){if(!workerRevisionChecked&&e.kernelInfo){workerRevisionChecked=!0;const{revision:o,fullVersion:r}=configuration.kernelInfo,{revision:t,fullVersion:n,version:s}=e.kernelInfo;esriConfig.assetsPath!==esriConfig.defaultAssetsPath&&o!==t&&console.warn(`Version mismatch detected between ArcGIS Maps SDK for JavaScript modules and assets. For more information visit https://esriurl.com/using-local-assets.\nModules version: ${r}\nAssets version: ${n??s}\nAssets path: ${esriConfig.assetsPath}`)}}function messageHandler(e){const o=receiveMessage(e);if(!o)return;const r=o.jobId;switch(o.type){case 1:let t;function n(e){const o=t.connect(e);self.postMessage({type:2,jobId:r,data:o},[o])}"function"==typeof define&&define.amd?require([workerPath],e=>{t=e.default||e,checkWorkerRevision(t),t.loadWorker(o.modulePath).then(e=>e||new Promise(e=>{require([o.modulePath],e)})).then(n)}):"System"in self&&"function"==typeof System.import?System.import(workerPath).then(e=>(t=e.default,checkWorkerRevision(t),t.loadWorker(o.modulePath))).then(e=>e||System.import(o.modulePath)).then(n):esriConfig.workers.useDynamicImport?import(workerPath).then(e=>{t=e.default||e,checkWorkerRevision(t),t.loadWorker(o.modulePath).then(e=>e||import(o.modulePath)).then(n)}):(self.RemoteClient||importScripts(workerPath),t=self.RemoteClient.default||self.RemoteClient,checkWorkerRevision(t),t.loadWorker(o.modulePath).then(n));break;case 3:if(outgoing.has(r)){const s=outgoing.get(r);outgoing.delete(r),o.error?s.reject(JSON.parse(o.error)):s.resolve(o.data)}}}self.dojoConfig=configuration.loaderConfig,esriConfig.workers.loaderUrl&&(self.importScripts(esriConfig.workers.loaderUrl),"function"==typeof require&&"function"==typeof require.config&&require.config(configuration.loaderConfig)),self.addEventListener("message",messageHandler),self.postMessage({type:0});'.split("{CONFIGURATION}").join(function(){let e;if(null!=w.A.default){const t={...w.A};delete t.default,e=JSON.parse(JSON.stringify(t))}else e=JSON.parse(JSON.stringify(w.A));e.assetsPath=(0,g.s2)(e.assetsPath),e.defaultAssetsPath=e.defaultAssetsPath?(0,g.s2)(e.defaultAssetsPath):void 0,e.request.interceptors=[],e.log.interceptors=[],e.locale=(0,b.JK)(),e.has={"esri-csp-restrictions":(0,o.A)("esri-csp-restrictions"),"esri-2d-debug":!1,"esri-2d-update-debug":(0,o.A)("esri-2d-update-debug"),"esri-2d-annotation-dimension-debug":(0,o.A)("esri-2d-annotation-dimension-debug"),"esri-2d-log-updating":!1,"esri-2d-complex-shaping":(0,o.A)("esri-2d-complex-shaping"),"esri-2d-force-complex-shaping":(0,o.A)("esri-2d-force-complex-shaping"),"esri-2d-stabilize-glyphs":(0,o.A)("esri-2d-stabilize-glyphs"),"featurelayer-pbf":(0,o.A)("featurelayer-pbf"),"featurelayer-simplify-thresholds":(0,o.A)("featurelayer-simplify-thresholds"),"featurelayer-simplify-payload-size-factors":(0,o.A)("featurelayer-simplify-payload-size-factors"),"featurelayer-simplify-mobile-factor":(0,o.A)("featurelayer-simplify-mobile-factor"),"featurelayer-query-max-depth":(0,o.A)("featurelayer-query-max-depth"),"featurelayer-query-max-page-size":(0,o.A)("featurelayer-query-max-page-size"),"featurelayer-query-tile-max-features":(0,o.A)("featurelayer-query-tile-max-features"),"featurelayer-query-tile-concurrency":(0,o.A)("featurelayer-query-tile-concurrency"),"featurelayer-query-pausing-enabled":(0,o.A)("featurelayer-query-pausing-enabled"),"featurelayer-snapshot-concurrency":(0,o.A)("featurelayer-snapshot-concurrency"),"featurelayer-snapshot-enabled":(0,o.A)("featurelayer-snapshot-enabled"),"featurelayer-pixel-buffering-enabled":(0,o.A)("featurelayer-pixel-buffering-enabled"),"parquetlayer-full-query-feature-count":(0,o.A)("parquetlayer-full-query-feature-count"),"parquetlayer-cache-enabled":(0,o.A)("parquetlayer-cache-enabled"),"parquetlayer-legacy-field-overrides-enabled":(0,o.A)("parquetlayer-legacy-field-overrides-enabled"),"esri-atomics":(0,o.A)("esri-atomics"),"esri-shared-array-buffer":(0,o.A)("esri-shared-array-buffer"),"esri-tiles-debug":(0,o.A)("esri-tiles-debug"),"esri-workers-arraybuffer-transfer":(0,o.A)("esri-workers-arraybuffer-transfer"),"feature-polyline-generalization-factor":(0,o.A)("feature-polyline-generalization-factor"),"host-webworker":1},e.workers.loaderUrl&&(e.workers.loaderUrl=(0,g.s2)(e.workers.loaderUrl)),e.workers.workerPath?e.workers.workerPath=(0,g.s2)(e.workers.workerPath):e.workers.workerPath=(0,g.s2)((0,y.s)("esri/core/workers/RemoteClient.js")),e.workers.useDynamicImport=(0,o.A)("esri-esbuild-build");const t=w.A.workers.loaderConfig,r=function(e){const t={async:e.async,isDebug:e.isDebug,locale:e.locale,baseUrl:e.baseUrl,has:{...e.has},map:{...e.map},packages:e.packages?.slice()||[],paths:{...k.paths,...e.paths}};return e.hasOwnProperty("async")||(t.async=!0),e.hasOwnProperty("isDebug")||(t.isDebug=!1),e.baseUrl||(t.baseUrl=k.baseUrl),t}({baseUrl:t?.baseUrl,locale:(0,b.JK)(),has:{"csp-restrictions":1,"dojo-test-sniff":0,"host-webworker":1,...t?.has},map:{...t?.map},paths:{...t?.paths},packages:t?.packages||[]}),s={buildDate:P.$,fullVersion:_.ol,revision:P.Q};return JSON.stringify({esriConfig:e,loaderConfig:r,kernelInfo:s})}());N=URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}catch(e){L=e||{}}let e;if(N)try{e=new Worker(N,{name:"esri-worker-"+S++})}catch(t){E().warn(O,L),e=new C}else E().warn(O,L),e=new C;return M(e)}();return new q(t,e)}constructor(e,t){this._outJobs=new Map,this._inJobs=new Map,this.worker=e,this.id=t,e.addEventListener("message",this._onMessage.bind(this)),e.addEventListener("error",e=>{e.preventDefault(),d.A.getLogger("esri.core.workers.WorkerOwner").error(e)})}terminate(){this.worker.terminate()}async open(e,t={}){const{signal:r}=t,s=(0,m.Jc)();return new Promise((t,n)=>{const o={resolve:t,reject:n,abortHandle:(0,a.NY)(r,()=>{this._outJobs.delete(s),this._post({type:I,jobId:s})})};this._outJobs.set(s,o),this._post({type:J,jobId:s,modulePath:e})})}_onMessage(e){const t=(0,m.VI)(e);if(t)switch(t.type){case R:this._onOpenedMessage(t);break;case U:this._onResponseMessage(t);break;case I:this._onAbortMessage(t);break;case j:this._onInvokeMessage(t)}}_onAbortMessage(e){const t=this._inJobs,r=e.jobId,s=t.get(r);s&&(s.controller&&s.controller.abort(),t.delete(r))}_onInvokeMessage(e){const{methodName:t,jobId:r,data:s,abortable:n}=e,o=n?new AbortController:null,i=this._inJobs,l=p[t];let c;try{if("function"!=typeof l)throw new TypeError(`${t} is not a function`);c=l.call(null,s,{signal:o?o.signal:null})}catch(e){return void this._post({type:U,jobId:r,error:(0,m.mF)(e)})}(0,a.$X)(c)?(i.set(r,{controller:o,promise:c}),c.then(e=>{i.has(r)&&(i.delete(r),this._post({type:U,jobId:r},e))},e=>{i.has(r)&&(i.delete(r),e||(e={message:"Error encountered at method"+t}),(0,a.zf)(e)||this._post({type:U,jobId:r,error:(0,m.mF)(e||{message:`Error encountered at method ${t}`})}))})):this._post({type:U,jobId:r},c)}_onOpenedMessage(e){const{jobId:t,data:r}=e,s=this._outJobs.get(t);s&&(this._outJobs.delete(t),(0,h.xt)(s.abortHandle),s.resolve(r))}_onResponseMessage(e){const{jobId:t,error:r,data:n}=e,o=this._outJobs.get(t);o&&(this._outJobs.delete(t),(0,h.xt)(o.abortHandle),r?o.reject(s.A.fromJSON(JSON.parse(r))):o.resolve(n))}_post(e,t,r){return(0,m.u1)(this.worker,e,t,r)}}const $=[],H=new Map;let W=function(){const e=(0,o.A)("min-workers-pool-size")??2,t=(0,o.A)("max-workers-pool-size")??8,r=(0,o.A)("host-browser")&&void 0!==navigator.hardwareConcurrency?navigator.hardwareConcurrency-1:t;return Math.min(Math.max(e,r),t)}(),D=0;async function F(e,t={},r){const s=new l.A,{registryTarget:n,...o}=t;return await s.open(e,o,r),n&&(0,c.k)(n,s),s}async function z(e,t={}){if("string"!=typeof e)throw new s.A("workers:undefined-module","modulePath is missing");let r=t.strategy||"distributed";(0,o.A)("host-webworker")&&!(0,o.A)("esri-workers")&&(r="local");const l=(0,i.tE)(H,e,()=>new Q(e));return"local"===r?async function({modulePath:e},t){let r=await u.default.loadWorker(e);r||(r=await(import(e))),(0,a.Te)(t.signal);const s=t.client||r,n=u.default.connect(r,t.schedule);return await F([n],{...t,client:s})}(l,t):async function(e,t){await async function(){if(K)return K;T=new AbortController;const e=[];for(let t=0;t<W;t++){const r=q.create(t).then(e=>($[t]=e,e));e.push(r)}return K=Promise.all(e),K}(),(0,a.Te)(t.signal);const r=[];return F(function*(e,t,r,s){const n=new Set;for(let o=0;o<t;o++){const t=e.getNextProxyId(e=>!n.has(e));if(null==t)break;n.add(t),s.push(e.useProxy(t)),yield $[t].open(e.modulePath,{signal:r})}}(e,"dedicated"===t.strategy?1:t.maxNumWorkers&&t.maxNumWorkers>0?Math.min(t.maxNumWorkers,W):W,t.signal,r),t,()=>(0,n.vE)(r).remove())}(l,t)}let T,K=null;class Q{constructor(e){this.modulePath=e,this._proxyUseCount=new Map}useProxy(e){return this._proxyUseCount.set(e,this._getProxyUseCount(e)+1),{remove:()=>this._unuseProxy(e)}}getNextProxyId(e){const t=Array.from(this._proxyUseCount.keys());let r;const s=D;D=(D+1)%W;for(let n=0;n<t.length;n++){const o=t[(s+n)%t.length];if(e(o)&&(t.length===W&&(r??=o),0===this._getProxyUseCount(o)))return o}if(null!=r)return r;for(let t=0;t<W;t++){const r=(t+s)%W;if(e(r)&&!this._proxyUseCount.has(r))return r}}_unuseProxy(e){this._proxyUseCount.set(e,Math.max(0,this._getProxyUseCount(e)-1))}_getProxyUseCount(e){return this._proxyUseCount.get(e)??0}}},79783(e,t,r){r.d(t,{ud:()=>k,JK:()=>v,oQ:()=>A,V2:()=>P});var s=r(2741),n=r(97770),o=r(73444),i=r(10838),a=r(18047),l=r(53966),c=r(93637),u=r(799);const d=()=>l.A.getLogger("esri.intl.substitute");function h(e,t){switch(t.type){case"date":return(0,n.Yq)(e,t.intlOptions);case"number":return(0,a.ZV)(e,t.intlOptions);default:return d().warn("missing format descriptor for key {key}"),g(e)}}function f(e,t){switch(t.toLowerCase()){case"dateformat":return(0,n.Yq)(e);case"numberformat":return(0,a.ZV)(e);default:return d().warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?(0,n.Yq)(e):/^numberformat/i.test(t)?(0,a.ZV)(e):g(e)}}function g(e){switch(typeof e){case"string":return e;case"number":return(0,a.ZV)(e);case"boolean":return""+e;default:return e instanceof Date?(0,n.Yq)(e):""}}var p=r(56507),m=r(49186);const y={"esri/t9n/basemaps":"esri/support/basemaps/t9n/basemaps","esri/t9n/common":"esri/common/t9n/common","esri/widgets/support/t9n/ColorPicker":"esri/widgets/support/ColorPicker/t9n/ColorPicker","esri/widgets/support/t9n/timezone":"esri/widgets/support/TimezonePicker/t9n/timezone","esri/widgets/support/t9n/uriUtils":"esri/widgets/support/uriUtils/t9n/uriUtils"};async function w(e){if(null!=_.fetchBundleAsset)return _.fetchBundleAsset(e);const t=await(0,p.A)(e,{responseType:"text"});return JSON.parse(t.data)}class b{constructor({base:e="",pattern:t,location:r=new URL(window.location.href)}){let s;s="string"==typeof r?e=>new URL(e,new URL(r,window.location.href)).href:r instanceof URL?e=>new URL(e,r).href:r,this.pattern="string"==typeof t?new RegExp(`^${t}`):t,this.getAssetUrl=s,e=e?e.endsWith("/")?e:e+"/":"",this.matcher=new RegExp(`^${e}(?:(.*)\\/)?(.*)$`)}fetchMessageBundle(e,t){return async function(e,t,r,s){const n=y[r]??r,o=t.exec(n);if(!o)throw new m.A("esri-intl:invalid-bundle",`Bundle id "${r}" is not compatible with the pattern "${t}"`);const a=o[1]?`${o[1]}/`:"",l=o[2],c=(0,i.xO)(s),u=n.startsWith("esri/"),d=`${a}${l}.json`,h=c?`${a}${l}_${c}.json`:d,f=u?`${a}messages.en.json`:d,g=u?`${a}messages.${c??"en"}.json`:h,p=[...new Set(u?[g,h,f,d]:[g,f])];for(const[t,s]of p.entries())try{return await w(e(s))}catch(e){if(t===p.length-1)throw new m.A("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:e})}throw new m.A("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`)}(this.getAssetUrl,this.matcher,e,t)}}const _={},k=i.ud,v=o.JK,A=o.oQ,C=i.ao,P=function(e,t,r={}){const{format:s={}}=r;return(0,u.HC)(e,e=>function(e,t,r){let s,n;const o=e.indexOf(":");if(-1===o?s=e.trim():(s=e.slice(0,o).trim(),n=e.slice(o+1).trim()),!s)return"";const i=(0,c.wc)(s,t);if(null==i)return"";const a=(n?r?.[n]:null)??r?.[s];return a?h(i,a):n?f(i,n):g(i)}(e,t,s))};var E;C((E={pattern:"esri/",location:s.s},new b(E)))},10838(e,t,r){r.d(t,{ao:()=>d,ud:()=>h,xO:()=>f});var s=r(49186),n=r(36563),o=r(73444);const i={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:"no",nl:!0,no:!0,nn:"no",pl:!0,pt:"pt-BR","pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,zh:"zh-CN","zh-CN":!0,"zh-HK":!0,"zh-TW":!0};function a(e){if(function(e){return e in i}(e)){const t=i[e];return!0===t?e:t}return null}const l=[],c=new Map;function u(e){for(const t of c.keys())g(e.pattern,t)&&c.delete(t)}function d(e){return l.includes(e)||(u(e),l.unshift(e)),(0,n.hA)(()=>{const t=l.indexOf(e);t>-1&&(l.splice(t,1),u(e))})}async function h(e){const t=(0,o.JK)();c.has(e)||c.set(e,async function(e,t){const r=[];for(const s of l)if(g(s.pattern,e))try{return await s.fetchMessageBundle(e,t)}catch(e){r.push(e)}if(r.length)throw new s.A("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:r});throw new s.A("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}(e,t));const r=c.get(e);return r&&await p.add(r),r}function f(e){const t=(0,o.lR)(e);return t?a(e)??a(t):null}function g(e,t){return"string"==typeof e?t.startsWith(e):e.test(t)}(0,o.Ml)(()=>{c.clear()});const p=new class{constructor(){this._numLoading=0,this._dfd=null}async waitForAll(){this._dfd&&await this._dfd.promise}add(e){return this._increase(),e.then(()=>this._decrease(),()=>this._decrease()),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=Promise.withResolvers())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},18047(e,t,r){r.d(t,{Up:()=>l,ZV:()=>c,yx:()=>a});var s=r(73444);const n={ar:"ar-u-nu-latn",bs:"sr-Latn-CS",nn:"no-NN"};let o=new WeakMap,i={};function a(e={}){const t={};return null!=e.digitSeparator&&(t.useGrouping=e.digitSeparator),null!=e.places&&(t.minimumFractionDigits=t.maximumFractionDigits=e.places),t}function l(e){const{minimumFractionDigits:t,maximumFractionDigits:r,useGrouping:s}=e;return{minimumFractionDigits:t,maximumFractionDigits:r,useGrouping:"auto"===s?"auto":"always"===s}}function c(e,t){return Object.is(e,-0)&&(e=0),function(e){const t=e||i;if(!o.has(t)){const r=(0,s.lR)(),i=r&&n[r]||(0,s.QC)();o.set(t,new Intl.NumberFormat(i,e))}return o.get(t)}(t).format(e)}(0,s.Ml)(()=>{o=new WeakMap,i={}}),new Map}}]);