@arcgis/core 5.2.0-next.166 → 5.2.0-next.168

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 (245) hide show
  1. package/Map.d.ts +6 -0
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/057f245d70e57a1bcb46.js +1 -0
  4. package/assets/esri/core/workers/chunks/{1419bf346978b81b08cc.js → 094eb9677cdebfaa9e1b.js} +1 -1
  5. package/assets/esri/core/workers/chunks/0d52e1b6d38f2670658c.js +1 -0
  6. package/assets/esri/core/workers/chunks/0f7455dbe8c2ee464194.js +1 -0
  7. package/assets/esri/core/workers/chunks/10878932826ddb60fac4.js +1 -0
  8. package/assets/esri/core/workers/chunks/144bad0c2415c345736a.js +1 -0
  9. package/assets/esri/core/workers/chunks/{3dddae78286d05eb10fc.js → 181b58bbbbfe4557ab5d.js} +1 -1
  10. package/assets/esri/core/workers/chunks/1a614bac5db42c6263f8.js +1 -0
  11. package/assets/esri/core/workers/chunks/{99a0a434ea2162166754.js → 2095f220dc2b8f8f62db.js} +1 -1
  12. package/assets/esri/core/workers/chunks/{5daa9429808ca31279f2.js → 216a239142dfe1306c6c.js} +1 -1
  13. package/assets/esri/core/workers/chunks/25c3be410d1c03f8f39d.js +1 -0
  14. package/assets/esri/core/workers/chunks/294276ed397023dcda44.js +1 -0
  15. package/assets/esri/core/workers/chunks/2a2a4650dd9b953d317c.js +1 -0
  16. package/assets/esri/core/workers/chunks/2b6684d057d9ad17ac13.js +1 -0
  17. package/assets/esri/core/workers/chunks/{ad96132bc89671e595f3.js → 2d3e0e4442dbc6ec6def.js} +1 -1
  18. package/assets/esri/core/workers/chunks/2d83ba260dd6bbe38206.js +1 -0
  19. package/assets/esri/core/workers/chunks/{69d5f8ef78b9b8b3d33d.js → 3286cf2afeb7f48564d9.js} +1 -1
  20. package/assets/esri/core/workers/chunks/3321cb0d4cb68b2ec8bf.js +1 -0
  21. package/assets/esri/core/workers/chunks/{e99c8c71c757bb161d87.js → 3636c2ac9b77950776d6.js} +1 -1
  22. package/assets/esri/core/workers/chunks/367b2f25cfe37847a48d.js +1 -0
  23. package/assets/esri/core/workers/chunks/379ef56f6b32494832a6.js +1 -0
  24. package/assets/esri/core/workers/chunks/3c881b1adc8a5dea9a90.js +1 -0
  25. package/assets/esri/core/workers/chunks/{6a2562cc00727155fc01.js → 4024becaf4012c1f15a7.js} +1 -1
  26. package/assets/esri/core/workers/chunks/435ad7e6ed326da2b969.js +1 -0
  27. package/assets/esri/core/workers/chunks/4419732baf3459a80e6d.js +1 -0
  28. package/assets/esri/core/workers/chunks/46f0510846a309a390ca.js +1 -0
  29. package/assets/esri/core/workers/chunks/4e17665dd9048c300d87.js +1 -0
  30. package/assets/esri/core/workers/chunks/509a74e9334f31b931d4.js +1 -0
  31. package/assets/esri/core/workers/chunks/50e8943d2c0b96fab2c1.js +1 -0
  32. package/assets/esri/core/workers/chunks/5396b6e99a0546a25d19.js +1 -0
  33. package/assets/esri/core/workers/chunks/561c48cb4d49b150765b.js +1 -0
  34. package/assets/esri/core/workers/chunks/{d90a3bfd45b5ed4092e0.js → 590fe0f56bc4c33a50e7.js} +1 -1
  35. package/assets/esri/core/workers/chunks/5d42f0898bf30ae940ea.js +1 -0
  36. package/assets/esri/core/workers/chunks/5f1cb79aec9c4a9b7ddc.js +29 -0
  37. package/assets/esri/core/workers/chunks/{5d2f043ebe1051326c56.js → 63b5418a1c3fe0a97a86.js} +1 -1
  38. package/assets/esri/core/workers/chunks/63c3a573dfe703056f8f.js +1 -0
  39. package/assets/esri/core/workers/chunks/673c61c964524150d9bc.js +1 -0
  40. package/assets/esri/core/workers/chunks/692f0093c444fcc752b5.js +1 -0
  41. package/assets/esri/core/workers/chunks/69627b2634da64dd885f.js +1 -0
  42. package/assets/esri/core/workers/chunks/{e6d10136bc08aef255ff.js → 712559f121f76c4e71ab.js} +1 -1
  43. package/assets/esri/core/workers/chunks/71a51795f715332fb4fe.js +1 -0
  44. package/assets/esri/core/workers/chunks/735c1dffc3439bdba3cc.js +1 -0
  45. package/assets/esri/core/workers/chunks/7862abd24fb5c3b12e6b.js +1 -0
  46. package/assets/esri/core/workers/chunks/{44d5508042cacdfcac47.js → 7d2be06dfbd92c8b9484.js} +1 -1
  47. package/assets/esri/core/workers/chunks/7f5b887a753bb67c8486.js +1 -0
  48. package/assets/esri/core/workers/chunks/822f83d7c09ef0a9bbdf.js +1 -0
  49. package/assets/esri/core/workers/chunks/849f446c718e892f39ce.js +1 -0
  50. package/assets/esri/core/workers/chunks/{76196c414e48834f7b92.js → 8f008eedb11685ee2048.js} +1 -1
  51. package/assets/esri/core/workers/chunks/98760040f0c9d47c718d.js +1 -0
  52. package/assets/esri/core/workers/chunks/{4b99b4cf729881e616bc.js → 98d1efb6f2439c6344cf.js} +1 -1
  53. package/assets/esri/core/workers/chunks/{18f20fd43ec9ce03cef1.js → 9e04703ee5f5ec47db43.js} +1 -1
  54. package/assets/esri/core/workers/chunks/9e0b0262dec496451762.js +1 -0
  55. package/assets/esri/core/workers/chunks/{23fd4de56de352f63e2d.js → a2196a49f89d57a0a1c7.js} +1 -1
  56. package/assets/esri/core/workers/chunks/{89c8b0f684c1f27d149e.js → a2f0894218e665780a21.js} +1 -1
  57. package/assets/esri/core/workers/chunks/a79cae328e866272754a.js +1 -0
  58. package/assets/esri/core/workers/chunks/a85cdafbaf1848bb924b.js +1 -0
  59. package/assets/esri/core/workers/chunks/b01688ccc29d33bfc82d.js +1 -0
  60. package/assets/esri/core/workers/chunks/b0a612d8ffa5c46d7db4.js +1 -0
  61. package/assets/esri/core/workers/chunks/b5eff28cf482d920b9ea.js +1 -0
  62. package/assets/esri/core/workers/chunks/b70885deebc6106597ad.js +1 -0
  63. package/assets/esri/core/workers/chunks/bedaa5e64ed81803829a.js +1 -0
  64. package/assets/esri/core/workers/chunks/c0a956d57fa28fd31052.js +1 -0
  65. package/assets/esri/core/workers/chunks/{a88f346786b04bd194dc.js → c0b38f8c808d434af5f6.js} +1 -1
  66. package/assets/esri/core/workers/chunks/c1cf3edce15f09648eb4.js +1 -0
  67. package/assets/esri/core/workers/chunks/c249a91dd23104723fab.js +1 -0
  68. package/assets/esri/core/workers/chunks/c45edd0a7d57263bb7d6.js +1 -0
  69. package/assets/esri/core/workers/chunks/c4bbe4707e90b7cd0379.js +1 -0
  70. package/assets/esri/core/workers/chunks/c52466eb1f3c33ae1f5a.js +1 -0
  71. package/assets/esri/core/workers/chunks/c570b90995c65bbb2e14.js +1 -0
  72. package/assets/esri/core/workers/chunks/c576bef77e34920af188.js +1 -0
  73. package/assets/esri/core/workers/chunks/c7699edd14497d174445.js +1 -0
  74. package/assets/esri/core/workers/chunks/c80a3b039e510c118399.js +1 -0
  75. package/assets/esri/core/workers/chunks/{196979cc6a765be3c5cd.js → c88a70f68c8ce8c30e9b.js} +1 -1
  76. package/assets/esri/core/workers/chunks/c9feffb9884cfed52c4b.js +1 -0
  77. package/assets/esri/core/workers/chunks/caaf6306cc73f618d27d.js +1 -0
  78. package/assets/esri/core/workers/chunks/{b704f489d0f072a0bfcd.js → ccd19c490ca24db6ffb1.js} +1 -1
  79. package/assets/esri/core/workers/chunks/cdacc3e42f01c3b852d6.js +1 -0
  80. package/assets/esri/core/workers/chunks/d1d6154b4af1c9cc497b.js +1 -0
  81. package/assets/esri/core/workers/chunks/d20dcd4ce4b0111d924f.js +1 -0
  82. package/assets/esri/core/workers/chunks/{784a2fba3e18286958d1.js → d56fdf5ce5ff53dc0e69.js} +1 -1
  83. package/assets/esri/core/workers/chunks/d7cf32a8c6060a208f06.js +1 -0
  84. package/assets/esri/core/workers/chunks/daae21cf77864f3293ef.js +1 -0
  85. package/assets/esri/core/workers/chunks/dd08dff19a2ffd36f284.js +1 -0
  86. package/assets/esri/core/workers/chunks/de3f140058aa0b907b65.js +1 -0
  87. package/assets/esri/core/workers/chunks/df375d1b0dab5ecbd1be.js +1 -0
  88. package/assets/esri/core/workers/chunks/{e2775b4b753306dc8477.js → df7603ef7d2a7cbeaaa2.js} +1 -1
  89. package/assets/esri/core/workers/chunks/e9cdb0b0f074583edebd.js +1 -0
  90. package/assets/esri/core/workers/chunks/eaab787a5f2445be5e5a.js +1 -0
  91. package/assets/esri/core/workers/chunks/edd36a1fc80b1d29907e.js +1 -0
  92. package/assets/esri/core/workers/chunks/{444e5f214abce3d607cd.js → eeb068c265bd3a22a8c1.js} +1 -1
  93. package/assets/esri/core/workers/chunks/f2cfee8a761ae91f7a3e.js +1 -0
  94. package/assets/esri/core/workers/chunks/f3fdf75843ade0ca591e.js +1 -0
  95. package/assets/esri/core/workers/chunks/f5cc78291b53931b91e8.js +1 -0
  96. package/assets/esri/core/workers/chunks/f9dc38761b314d33890f.js +1 -0
  97. package/assets/esri/core/workers/chunks/feb6e041dd0aa1c59c31.js +1 -0
  98. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ar.json +1 -1
  99. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.bg.json +1 -1
  100. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.bs.json +1 -1
  101. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ca.json +1 -1
  102. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.cs.json +1 -1
  103. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.da.json +1 -1
  104. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.de.json +1 -1
  105. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.el.json +1 -1
  106. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.es.json +1 -1
  107. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.et.json +1 -1
  108. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.fi.json +1 -1
  109. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.fr.json +1 -1
  110. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.he.json +1 -1
  111. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.hr.json +1 -1
  112. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.hu.json +1 -1
  113. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.id.json +1 -1
  114. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.it.json +1 -1
  115. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ja.json +1 -1
  116. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ko.json +1 -1
  117. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.lt.json +1 -1
  118. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.lv.json +1 -1
  119. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.nl.json +1 -1
  120. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.no.json +1 -1
  121. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pl.json +1 -1
  122. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pt-BR.json +1 -1
  123. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pt-PT.json +1 -1
  124. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ro.json +1 -1
  125. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ru.json +1 -1
  126. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sk.json +1 -1
  127. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sl.json +1 -1
  128. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sr.json +1 -1
  129. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sv.json +1 -1
  130. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.th.json +1 -1
  131. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.tr.json +1 -1
  132. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.uk.json +1 -1
  133. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.vi.json +1 -1
  134. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-CN.json +1 -1
  135. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-HK.json +1 -1
  136. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-TW.json +1 -1
  137. package/config.js +1 -1
  138. package/core/workers/workers.js +2 -2
  139. package/core/workers.d.ts +1 -1
  140. package/graphic/MapNotesGraphicOrigin.d.ts +1 -0
  141. package/kernel.js +1 -1
  142. package/layers/ElevationLayer.d.ts +6 -2
  143. package/layers/VectorTileLayer.d.ts +10 -1
  144. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  145. package/layers/orientedImagery/core/coverageUtils.js +1 -1
  146. package/layers/orientedImagery/transformations/imageToWorld.js +1 -1
  147. package/layers/orientedImagery/transformations/rectifyMapPoint.js +1 -1
  148. package/layers/orientedImagery/transformations/rotationUtils.js +2 -0
  149. package/layers/orientedImagery/transformations/utils.js +1 -1
  150. package/package.json +2 -2
  151. package/support/BasemapStyle.d.ts +2 -2
  152. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriterVertexPack.js +1 -1
  153. package/widgets/OrientedImageryViewer/ImageMeasurementWorker.js +1 -1
  154. package/widgets/OrientedImageryViewer/adapters/sketch/MeasurementAdapter.js +1 -1
  155. package/widgets/OrientedImageryViewer/adapters/view/SceneViewAdapter.js +1 -1
  156. package/widgets/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
  157. package/widgets/OrientedImageryViewer/imageMeasurementWorkerUtils.js +2 -0
  158. package/widgets/OrientedImageryViewer/services/ImageMeasurementService.js +1 -1
  159. package/widgets/OrientedImageryViewer/services/SuperimposeService.js +1 -1
  160. package/widgets/OrientedImageryViewer/support/superimposeUtils.js +1 -1
  161. package/widgets/OrientedImageryViewer.js +2 -2
  162. package/assets/esri/core/workers/chunks/010f57ec7fdbedf78d02.js +0 -1
  163. package/assets/esri/core/workers/chunks/02e10f44edf911832c2a.js +0 -1
  164. package/assets/esri/core/workers/chunks/07f7177bfaf9de73bc25.js +0 -1
  165. package/assets/esri/core/workers/chunks/090adefe20412e8a5084.js +0 -1
  166. package/assets/esri/core/workers/chunks/0d9c4c6c571ce26d356b.js +0 -1
  167. package/assets/esri/core/workers/chunks/1201b8c5852830836eac.js +0 -1
  168. package/assets/esri/core/workers/chunks/151e5799ede763a03ee2.js +0 -1
  169. package/assets/esri/core/workers/chunks/168a523bdc3653081f8a.js +0 -1
  170. package/assets/esri/core/workers/chunks/175c268e64ccd01f8c25.js +0 -1
  171. package/assets/esri/core/workers/chunks/18787aa685524b958561.js +0 -1
  172. package/assets/esri/core/workers/chunks/1e1c45f75020d5e05dc3.js +0 -1
  173. package/assets/esri/core/workers/chunks/28104681ba161967039f.js +0 -1
  174. package/assets/esri/core/workers/chunks/2a36fe3f3f257a779a1b.js +0 -1
  175. package/assets/esri/core/workers/chunks/30af63b3b750142faadb.js +0 -1
  176. package/assets/esri/core/workers/chunks/3f946c13ad97fbed867b.js +0 -1
  177. package/assets/esri/core/workers/chunks/40d803584eeade4df433.js +0 -1
  178. package/assets/esri/core/workers/chunks/41773d858e212468db88.js +0 -1
  179. package/assets/esri/core/workers/chunks/426b4eb500fdfe9df325.js +0 -1
  180. package/assets/esri/core/workers/chunks/45367aa8e5c5d574de94.js +0 -1
  181. package/assets/esri/core/workers/chunks/47d074136a7f8e551a9a.js +0 -1
  182. package/assets/esri/core/workers/chunks/4932773663469919d10a.js +0 -1
  183. package/assets/esri/core/workers/chunks/49b967d89d2841cea675.js +0 -1
  184. package/assets/esri/core/workers/chunks/4a6b92ecbb1f1c55cc43.js +0 -1
  185. package/assets/esri/core/workers/chunks/4cb751dc8d00bdaeb04c.js +0 -1
  186. package/assets/esri/core/workers/chunks/4d3d7ec407ee5cd5f036.js +0 -1
  187. package/assets/esri/core/workers/chunks/4fd0d9688df6fcc0d0b8.js +0 -1
  188. package/assets/esri/core/workers/chunks/53ff68d4f9e365fc15cd.js +0 -1
  189. package/assets/esri/core/workers/chunks/548b8f74a6883e364931.js +0 -1
  190. package/assets/esri/core/workers/chunks/5af8fb4ec2c72697e35b.js +0 -1
  191. package/assets/esri/core/workers/chunks/5d76f4d97beee494bbbf.js +0 -1
  192. package/assets/esri/core/workers/chunks/5dc604e3691f36f03959.js +0 -1
  193. package/assets/esri/core/workers/chunks/611e3cdf67283c11576f.js +0 -1
  194. package/assets/esri/core/workers/chunks/61552b4b8111a8624d84.js +0 -1
  195. package/assets/esri/core/workers/chunks/6299be5e7e26bf3c6859.js +0 -1
  196. package/assets/esri/core/workers/chunks/632fdf1d95ad69109427.js +0 -1
  197. package/assets/esri/core/workers/chunks/652faf4359ac072c5dde.js +0 -1
  198. package/assets/esri/core/workers/chunks/6b9961261241fdce0e94.js +0 -1
  199. package/assets/esri/core/workers/chunks/710b8251a59884aee31e.js +0 -1
  200. package/assets/esri/core/workers/chunks/7159d9c36869cd82599e.js +0 -29
  201. package/assets/esri/core/workers/chunks/7393f63043a1da3d05a6.js +0 -1
  202. package/assets/esri/core/workers/chunks/7449568eb2305bf2d650.js +0 -1
  203. package/assets/esri/core/workers/chunks/771dd92cb3e6a3427f66.js +0 -1
  204. package/assets/esri/core/workers/chunks/7748c2886d0122b40eeb.js +0 -1
  205. package/assets/esri/core/workers/chunks/78c4e43cfa1eda06b4d9.js +0 -1
  206. package/assets/esri/core/workers/chunks/7e0f04a5038e2a4f6e4b.js +0 -1
  207. package/assets/esri/core/workers/chunks/7f0f9dddc44b1f1600f0.js +0 -1
  208. package/assets/esri/core/workers/chunks/7f16ae01ccd9b6114d1c.js +0 -1
  209. package/assets/esri/core/workers/chunks/82a022cc21364c9a8539.js +0 -1
  210. package/assets/esri/core/workers/chunks/8924e2f3b7d03afb3a6a.js +0 -1
  211. package/assets/esri/core/workers/chunks/90153b5230b3a4985c14.js +0 -1
  212. package/assets/esri/core/workers/chunks/9189dfe19a2a2ccd5173.js +0 -1
  213. package/assets/esri/core/workers/chunks/9215b59c5ccecf9add58.js +0 -1
  214. package/assets/esri/core/workers/chunks/943a0f140813ee4ab04a.js +0 -1
  215. package/assets/esri/core/workers/chunks/967b4992b400517ee712.js +0 -1
  216. package/assets/esri/core/workers/chunks/9dd1fc56eb1ea6eb705e.js +0 -1
  217. package/assets/esri/core/workers/chunks/a163c6005aba3378edaa.js +0 -1
  218. package/assets/esri/core/workers/chunks/a53823cf03dbdce1aecd.js +0 -1
  219. package/assets/esri/core/workers/chunks/a62c12925303ff802c3d.js +0 -1
  220. package/assets/esri/core/workers/chunks/acb265a22be5e12f38e5.js +0 -1
  221. package/assets/esri/core/workers/chunks/acdfd275dbf8533a67f3.js +0 -1
  222. package/assets/esri/core/workers/chunks/ace802483484519658f3.js +0 -1
  223. package/assets/esri/core/workers/chunks/b3007aedbf731dacaff1.js +0 -1
  224. package/assets/esri/core/workers/chunks/b4334713bacdfe40ce3d.js +0 -1
  225. package/assets/esri/core/workers/chunks/b83cef2d3f528726d492.js +0 -1
  226. package/assets/esri/core/workers/chunks/be97a629e2ae4d13ceb3.js +0 -1
  227. package/assets/esri/core/workers/chunks/c337fc0e6dc69c233e6d.js +0 -1
  228. package/assets/esri/core/workers/chunks/c47d095434d09b5f10c6.js +0 -1
  229. package/assets/esri/core/workers/chunks/c4b7111dcedd9d6e1c2a.js +0 -1
  230. package/assets/esri/core/workers/chunks/c5d85be6e16bc895e7fb.js +0 -1
  231. package/assets/esri/core/workers/chunks/c8d6bb5cca49926a0214.js +0 -1
  232. package/assets/esri/core/workers/chunks/cb4be68cc5085d421615.js +0 -1
  233. package/assets/esri/core/workers/chunks/cb4db5489388559d6bd9.js +0 -1
  234. package/assets/esri/core/workers/chunks/cc794bb94ebc1cb66024.js +0 -1
  235. package/assets/esri/core/workers/chunks/cc94bf05b235e65291fc.js +0 -1
  236. package/assets/esri/core/workers/chunks/d4af9faa5d901274fad2.js +0 -1
  237. package/assets/esri/core/workers/chunks/d77c68e0fc3b259bf4f9.js +0 -1
  238. package/assets/esri/core/workers/chunks/daf9b691817e83a11f3c.js +0 -1
  239. package/assets/esri/core/workers/chunks/de0f335f702ae85a1df3.js +0 -1
  240. package/assets/esri/core/workers/chunks/e11159e3dc3353b27c57.js +0 -1
  241. package/assets/esri/core/workers/chunks/f8379cd45f750f28a3d8.js +0 -1
  242. package/assets/esri/core/workers/chunks/f905f1a1aa4c123cbe83.js +0 -1
  243. package/assets/esri/core/workers/chunks/fd4635410b27bcedb752.js +0 -1
  244. package/assets/esri/core/workers/chunks/fda83bcb8e40e8044c24.js +0 -1
  245. package/assets/esri/core/workers/chunks/feb4f8c807bb0dca488f.js +0 -1
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9301],{99301(e,t,r){r.r(t),r.d(t,{applyTextFormattingHTML:()=>ee,createFieldInfoMap:()=>B,findRelatedLayer:()=>de,findUtilityNetwork:()=>pe,fixTokens:()=>z,formatAttributes:()=>re,formatEditInfo:()=>W,formatValueToFieldInfo:()=>P,getAllFieldInfos:()=>K,getConfigurableFieldsContainer:()=>A,getFieldFormat:()=>U,getFieldInfo:()=>_,getFieldInfoLabel:()=>E,getFixedFieldName:()=>R,getFixedFieldNames:()=>M,getPopupLayer:()=>v,getSourceLayer:()=>Z,graphicCallback:()=>q,htmlEntities:()=>X,isAssociatedFeatureSupportedLayer:()=>Q,isExpressionField:()=>x,isFeatureSupportedLayer:()=>H,isGraphicForRelatableFeatureSupportedLayer:()=>Y,isRelatableFeatureSupportedLayer:()=>G,isRelatableLayer:()=>J,isRelatedField:()=>le,preLayerQueryCallback:()=>fe,preRequestCallback:()=>se,querySourceLayer:()=>ne,queryUpdatedFeature:()=>ie,shouldOpenInNewTab:()=>k,substituteAttributes:()=>$,substituteFieldsInLinksAndAttributes:()=>D});var n=r(53966),i=r(799),l=r(77548),a=r(97770),o=r(18047),u=r(15426),f=r(39663),s=r(30524),d=r(4560),p=r(43668),y=r(56400);const c=()=>n.A.getLogger("esri.popup.support.featureUtils"),m=/href=(""|'')/gi,g=/(\{([^{\r\n]+)\})/g,h=/'/g,b=/^\s*expression\//i,I=/(\n)/gi,F=/[\u00A0-\u9999<>&]/gim,T=/href\s*=\s*(?:"([^"]+)"|'([^']+)')/gi,w=/^(?:mailto:|tel:)/,C="relationships/",N=(0,a.J2)("short-date-short-time");function Z(e){if(null!=e)return(e.sourceLayer||e.layer)??void 0}const L=new Set(["building","knowledge-graph","link-chart","map-image","map-notes","subtype-group","tile"]);function v(e){let t=e?.origin;return(null==t?void 0:L.has(t.type??"")?t.sublayer:t.layer)??e?.layer}async function q({type:e,value:t,event:r}){try{return"function"==typeof t?t(r):await t}catch(n){return void c().error("error",`An error occurred when calling the "${e}" function`,{error:n,graphic:r.graphic,value:t})}}function k(e=""){if(e)return!w.test(e.trim().toLowerCase())}function x(e){return!!e&&b.test(e)}function A(e){let{fieldInfo:t,graphic:r,layer:n}=e;return function({fieldInfo:e,graphic:t}){return!(!e?.fieldName||x(e.fieldName)||le(e.fieldName)||t?.popupTemplate)}({fieldInfo:t,graphic:r})?(0,l.p2)(n,{graphic:r}):null}function E({expressionInfos:e,fieldInfo:t,graphic:r,isContentFieldInfos:n,layer:i}){if(!t?.fieldName)return null;let l=function(e,t){if(!t||!x(t)||!e)return;let r=t.replace(b,"").toLowerCase();return e.find(({name:e})=>e.toLowerCase()===r)}(e,t.fieldName);if(l)return l.title||null;let a=A({fieldInfo:t,graphic:r,layer:i});if(a){let e=a.getFieldAlias(t.fieldName);return n?t.label||e||t.fieldName:e||t.fieldName}return t.label||t.fieldName}function U(e){let{configurableFieldsContainer:t,fieldInfo:r,isContentFieldInfos:n}=e;if(!r?.fieldName)return null;let i=t.popupTemplate||t.fieldConfigurations?t.getFieldConfiguration(r.fieldName)?.fieldFormat:(0,f.iu)(r,t.getField(r.fieldName));return n&&r.fieldFormat||i}function R(e,t){let r=j(t,e);return r?r.name:e}function M(e,t){return e&&e.map(e=>R(e,t))}function j(e,t){return e&&"function"==typeof e.getField&&t?e.getField(t)??null:null}function S(e){return`${e}`.trim()}function D({attributes:e,globalAttributes:t,layer:r,text:n,expressionAttributes:i,fieldInfoMap:l}){return n?$({formattedAttributes:t,template:O(n,{...t,...i,...e},r),fieldInfoMap:l}):""}function $({formattedAttributes:e,template:t,fieldInfoMap:r}){return S(function(e){return e.replaceAll(m,"")}((0,i.HC)((0,i.HC)(t,e=>function(e,t){return`{${t.get(e.toLowerCase())?.fieldName||e}}`}(e,r)),e)))}function z(e,t){return e.replaceAll(g,(e,r,n)=>{let i=j(t,n);return i?`{${i.name}}`:r})}function O(e,t,r){let n=z(e,r);return n&&n.replaceAll(T,(e,r,n)=>function(e,t,r){let n=(t=S(t))&&!t.startsWith("{");return(0,i.HC)(e,function(e,t=!1){let r={...e};return Object.keys(r).forEach(e=>function(e,t,r=!1){let n=t[e];"string"==typeof n&&(t[e]=(r?encodeURIComponent(n):n).replaceAll(h,"%27"))}(e,r,t)),r}(r,n||!1))}(e,r||n,t))}function H(e){return"object"==typeof e&&!!e&&"fieldsIndex"in e&&"geometryType"in e&&"getField"in e&&"load"in e&&"loaded"in e&&"objectIdField"in e&&"spatialReference"in e&&"type"in e&&("feature"===e.type||"scene"===e.type||"subtype-group"===e.type||"subtype-sublayer"===e.type||"sublayer"===e.type)&&"when"in e}function J(e){return"object"==typeof e&&!!e&&"createQuery"in e&&"queryFeatureCount"in e&&"queryObjectIds"in e&&"queryRelatedFeatures"in e&&"queryRelatedFeaturesCount"in e&&"relationships"in e}function G(e){return H(e)&&J(e)}function Q(e){return!(!(e&&"object"==typeof e&&"createQuery"in e&&"getField"in e&&"queryFeatureCount"in e&&"queryFeatures"in e&&"queryObjectIds"in e&&"capabilities"in e&&"fields"in e&&"fieldsIndex"in e&&"type"in e)||"feature"!==e.type&&"subtype-group"!==e.type&&"subtype-sublayer"!==e.type&&"sublayer"!==e.type||!("when"in e))&&("subtype-sublayer"===e.type&&"parent"in e&&e.parent&&"object"==typeof e.parent?"globalIdField"in e.parent:"globalIdField"in e)}function Y(e){return!(!e||"object"!=typeof e)&&G(function(e){let t=(r=e.origin)&&"layer"in r?r.layer:void 0;var r;return(0,l.F2)(t)?t=t.findSublayerForFeature(e):((0,l.Qz)(t)||(0,l.cM)(t))&&(0,l.UC)(e.sourceLayer)&&(t=e.sourceLayer),t??e.sourceLayer??e.layer}(e))}function P(e,t){let{fieldInfos:r,fieldName:n,graphic:i,isContentFieldInfos:l,layer:a,preventPlacesFormatting:u,timeZone:f}=t,p=_(r,n),y=A({fieldInfo:p,graphic:i,layer:a}),c=j(y||a,n),m=y?null:p?.format,g=y?U({configurableFieldsContainer:y,fieldInfo:p,isContentFieldInfos:l}):null,h="number"===g?.type;if(p&&!(0,s.JL)(n)){let t=c?.type,r="date-time"===g?.type,n=m?.dateFormat;if("date"===t||"date-only"===t||"time-only"===t||"timestamp-offset"===t||r||n)return(0,d.i0)(e,{format:r?void 0:n,fieldFormat:r?g:void 0,fieldType:t,timeZoneOptions:{layerTimeZone:a&&"preferredTimeZone"in a?a.preferredTimeZone:null,viewTimeZone:f,datesInUnknownTimezone:!(!a||!("datesInUnknownTimezone"in a)||!a.datesInUnknownTimezone)}})}if("string"==typeof e&&(0,s.JL)(n)&&m)return function(e,t){return e=e.trim(),/\d{2}-\d{2}/.test(e)?e:e.includes(",")?V(e,",",", ",t):e.includes(";")?V(e,";","; ",t):e.includes(" ")?V(e," "," ",t):(0,o.ZV)(Number(e),(0,o.yx)(t))}(e,m);if(e=function(e,t){let r="number"===t?.fieldFormat?.type||t?.format&&null==t.format.dateFormat&&(null!=t.format.places||null!=t.format.digitSeparator);if("string"==typeof e&&r){let t=Number(e);if(!isNaN(t))return t}return e}(e,{format:h?void 0:m,fieldFormat:h?g:void 0}),"string"==typeof e||null==e||null==m&&null==g)return ee(e);let b=h?(0,o.Up)(g):m?(0,o.yx)(m):void 0;return u?(0,o.ZV)(e,{...b,minimumFractionDigits:0,maximumFractionDigits:20}):(0,o.ZV)(e,b)}function V(e,t,r,n){return e.trim().split(t).map(e=>(0,o.ZV)(Number(e),(0,o.yx)(n))).join(r)}function _(e,t){if(e?.length&&t)return e.find(e=>e.fieldName?.toLowerCase()===t.toLowerCase())}function W(e,t,r,n){let{creatorField:i,creationDateField:l,editorField:o,editDateField:u}=e;if(!t)return;let f=(0,y.hv)(n&&"preferredTimeZone"in n?n.preferredTimeZone:null,!(!n||!("datesInUnknownTimezone"in n)||!n.datesInUnknownTimezone),r,N,"date"),s={...N,...f},d=t[u];if("number"==typeof d){let e=t[o];return{type:"edit",date:(0,a.Yq)(d,s),user:e}}let p=t[l];if("number"==typeof p){let e=t[i];return{type:"create",date:(0,a.Yq)(p,s),user:e}}return null}function B(e,t){let r=new Map;if(!e)return r;for(let n of e){if(!n.fieldName)continue;let e=R(n.fieldName,t);n.fieldName=e,r.set(e.toLowerCase(),n)}return r}function K(e){let t=[];if(!e)return t;let{fieldInfos:r,content:n}=e;return r&&t.push(...r),!n||!Array.isArray(n)||n.forEach(e=>{if("fields"===e.type){let r=e?.fieldInfos;r&&t.push(...r)}}),t}function X(e){return e.replaceAll(F,e=>`&#${e.charCodeAt(0)};`)}function ee(e){return"string"==typeof e?e.replaceAll(I,'<br class="esri-text-new-line" />'):e}function te(e){let{fieldInfoMap:t,fieldInfos:r,fieldName:n,graphic:i,isContentFieldInfos:l,layer:a,timeZone:o,value:f}=e;if(null==f)return"";let p=function({fieldName:e,value:t,graphic:r,layer:n}){if(le(e)||!n||"function"!=typeof n.getFieldDomain)return null;let i=r&&n.getFieldDomain(e,{feature:r});return i&&"coded-value"===i.type?i.getName(t):null}({fieldName:n,value:f,graphic:i,layer:a});if(p)return p;let y=a?.types&&(0,u.uU)(a.types)?function({fieldName:e,graphic:t,layer:r}){if(le(e)||!r||"function"!=typeof r.getFeatureType)return null;let{typeIdField:n}=r;if(!n||e!==n)return null;let i=r.getFeatureType(t);return i?i.name:null}({fieldName:n,graphic:i,layer:a}):null;if(y)return y;if(t.get(n.toLowerCase()))return P(f,{fieldInfos:r||Array.from(t.values()),fieldName:n,graphic:i,isContentFieldInfos:l,layer:a,timeZone:o});let c=a?.fieldsIndex?.get(n);return c&&((0,d.fs)(c)||(0,s.OH)(c))?(0,d.i0)(f,{fieldType:c.type,timeZoneOptions:{layerTimeZone:a&&"preferredTimeZone"in a?a.preferredTimeZone:null,viewTimeZone:o,datesInUnknownTimezone:!(!a||!("datesInUnknownTimezone"in a)||!a.datesInUnknownTimezone)}}):ee(f)}function re({attributes:e,fieldInfoMap:t,fieldInfos:r,graphic:n,isContentFieldInfos:i,layer:l,relatedInfos:a,timeZone:o}){let u={};return a?.forEach(e=>function({attributes:e,relatedInfo:t,fieldInfoMap:r,fieldInfos:n,layer:i,timeZone:l}){e&&t&&(t.relatedFeatures?.forEach(a=>ae({attributes:e,graphic:a,relatedInfo:t,fieldInfoMap:r,fieldInfos:n,layer:i,timeZone:l})),t.relatedStatsFeatures?.forEach(a=>ae({attributes:e,graphic:a,relatedInfo:t,fieldInfoMap:r,fieldInfos:n,layer:i,timeZone:l})))}({attributes:u,relatedInfo:e,fieldInfoMap:t,fieldInfos:r,layer:l,timeZone:o})),e&&Object.keys(e).forEach(a=>{let f=e[a];u[a]=te({fieldInfoMap:t,fieldInfos:r,fieldName:a,graphic:n,isContentFieldInfos:i,layer:l,timeZone:o,value:f})}),u}async function ne(e,t){let{layer:r,graphic:n,outFields:i,objectIds:a,returnGeometry:o,spatialReference:u}=e,f=a[0];if("number"!=typeof f&&"string"!=typeof f){let e={layer:r,graphic:n,objectId:f,requiredFields:i};return c().warn("Could not query required fields for the specified feature. The feature's ID is invalid.",e),null}if(!(0,l.BR)(r)?.operations?.supportsQuery){let e={layer:r,graphic:n,requiredFields:i,returnGeometry:o};return c().warn("The specified layer cannot be queried. The following fields will not be available.",e),null}let s=r.createQuery();return s.objectIds=a,s.outFields=i?.length?i:[r.objectIdField],s.returnGeometry=!!o,s.returnZ=!!o,s.returnM=!!o,s.outSpatialReference=u,(await r.queryFeatures(s,t)).features[0]}async function ie({graphic:e,popupTemplate:t,layer:r,spatialReference:n},i){if(!r||!t||("function"==typeof r.load&&await r.load(i),!e.attributes))return;let l=r.objectIdField,a=e.attributes[l];if(null==a)return;let o=[a],u=new Set(await t.getRequiredFields(r.fieldsIndex));null!=r.timeInfo?.trackIdField&&!u.has(r.timeInfo.trackIdField)&&await async function(e){if(!e.expressionInfos?.length)return!1;let{arcadeUtils:{requiresTrack:t}}=await(0,p.l)();return t(e)}(t)&&u.add(r.timeInfo.trackIdField);let f=(0,s.Kl)(e,u),d=f?[]:u.has(l)?[...u]:[...u,l],y=t.returnGeometry||await async function(e){if(!e.expressionInfos?.length)return!1;let{arcadeUtils:{hasGeometryFunctions:t}}=await(0,p.l)();return t(e)}(t);if(f&&!y)return;let c=await ne({layer:r,graphic:e,outFields:d,objectIds:o,returnGeometry:y,spatialReference:n},i);c&&(c.geometry&&(e.geometry=c.geometry),c.attributes&&(e.attributes={...e.attributes,...c.attributes}))}function le(e=""){return!!e&&e.includes(C)}function ae({attributes:e,graphic:t,relatedInfo:r,fieldInfos:n,fieldInfoMap:i,layer:l,timeZone:a}){e&&t&&r&&Object.keys(t.attributes).forEach(o=>{let u=function(e){return e?`${C}${e.layerId}/${e.fieldName}`:""}({layerId:r.relation.id.toString(),fieldName:o}),f=t.attributes[o];e[u]=te({fieldName:u,fieldInfos:n,fieldInfoMap:i,layer:l,value:f,graphic:t,timeZone:a})})}const oe=e=>{if(!e)return!1;let t=e.toUpperCase();return t.includes("CURRENT_TIMESTAMP")||t.includes("CURRENT_DATE")||t.includes("CURRENT_TIME")},ue=({layer:e,method:t,query:r,definitionExpression:n})=>{if(!e.capabilities?.query?.supportsCacheHint||"attachments"===t)return;let i=null==r.where?null:r.where,l=null==r.geometry?null:r.geometry;e.capabilities.query.supportsCacheHint&&!oe(n)&&!oe(i)&&"extent"!==l?.type&&"tile"!==r.resultType&&(r.cacheHint=!0)},fe=({query:e,layer:t,method:r})=>{ue({layer:t,method:r,query:e,definitionExpression:`${t.definitionExpression} ${t.serviceDefinitionExpression??""}`})},se=({queryPayload:e,layer:t,method:r})=>{ue({layer:t,method:r,query:e,definitionExpression:`${t.definitionExpression} ${t.serviceDefinitionExpression??""}`})};function de(e,t,r){return e&&t&&r?"sublayer"===t.type?ce({layers:t.layer?.allSublayers,map:e,relatedLayer:t,relationship:r})||ce({layers:t.layer?.subtables,map:e,relatedLayer:t,relationship:r}):ce({layers:e.allLayers,map:e,relatedLayer:t,relationship:r})||ce({layers:e.allTables,map:e,relatedLayer:t,relationship:r}):null}function pe(e,t){return e&&"utilityNetworks"in e&&t?e.utilityNetworks?.find(e=>e.isUtilityLayer(t)):null}function ye(e,t){return e?.allTables.find(e=>"feature"===e.type&&e.layerId===t.id&&e.url===t.layer?.url)}function ce({map:e,relationship:t,relationship:{relatedTableId:r},relatedLayer:n,layers:i}){if(!i)return null;for(let l of i){if("map-image"===l.type){let r=ce({layers:l.sublayers,map:e,relatedLayer:n,relationship:t})||ce({layers:l.subtables,map:e,relatedLayer:n,relationship:t});if(r)return r;continue}if(!G(l))continue;if("sublayer"===n.type){if(l!==n&&l.id===r)return l.isTable?ye(e,l):l;continue}let i="scene"===n.type&&n.associatedLayer?n.associatedLayer.url:n.url;if(!i)return null;if("sublayer"!==l.type){if(l!==n&&l.url===i&&l.layerId===r)return l}else if(l!==n&&l.layer?.url===i&&l.id===r)return l.isTable?ye(e,l):l}return null}},4560(e,t,r){r.d(t,{i0:()=>f,j4:()=>u,fs:()=>o});var n=r(97770),i=r(30524);r(7762),r(84952),r(27865),r(43281),r(98623);var l=r(56400);let a;function o(e){return(0,i.vE)(e)||(0,i.zD)(e)||(0,i.Ah)(e)}async function u(e,t){return e?(a||=new(await Promise.all([r.e(9696),r.e(2867)]).then(()=>r(44123)).then(e=>e.WhereClauseCache))(50,500),a.get(e,t)):null}function f(e,t){let r,i,{format:a,fieldFormat:o,timeZoneOptions:u,fieldType:f}=t??{},s=o?(0,n._m)(o):null;if(u&&({timeZone:r,timeZoneName:i}=(0,l.hv)(u.layerTimeZone,u.datesInUnknownTimezone,u.viewTimeZone,s||(0,n.J2)(a||"short-date-short-time"),f)),"string"==typeof e&&isNaN(Date.parse("time-only"===f?`1970-01-01T${e}Z`:e)))return e;switch(f){case"date-only":{let t=s||(0,n.J2)(a||"short-date");return"string"==typeof e?(0,n.iS)(e,{...t}):(0,n.Yq)(e,{...t,timeZone:"UTC"})}case"time-only":{let t=s||(0,n.J2)(a||"short-time");return"string"==typeof e?(0,n.F8)(e,t):(0,n.Yq)(e,{...t,timeZone:"UTC"})}case"timestamp-offset":{let t=a||s||u?s||(0,n.J2)(a||"short-date-short-time"):void 0,l=t?{...t,timeZone:r,timeZoneName:i}:void 0;return"string"==typeof e?(0,n.Ey)(e,l):(0,n.Yq)(e,l)}default:{let t=a||s||u?s||(0,n.J2)(a||"short-date-short-time"):void 0;return(0,n.Yq)("string"==typeof e?new Date(e):e,t?{...t,timeZone:r,timeZoneName:i}:void 0)}}}new Set(["integer","small-integer"])}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9301],{99301(e,t,r){r.r(t),r.d(t,{applyTextFormattingHTML:()=>ee,createFieldInfoMap:()=>B,findRelatedLayer:()=>de,findUtilityNetwork:()=>pe,fixTokens:()=>z,formatAttributes:()=>re,formatEditInfo:()=>W,formatValueToFieldInfo:()=>P,getAllFieldInfos:()=>K,getConfigurableFieldsContainer:()=>A,getFieldFormat:()=>U,getFieldInfo:()=>_,getFieldInfoLabel:()=>E,getFixedFieldName:()=>R,getFixedFieldNames:()=>M,getPopupLayer:()=>v,getSourceLayer:()=>Z,graphicCallback:()=>q,htmlEntities:()=>X,isAssociatedFeatureSupportedLayer:()=>Q,isExpressionField:()=>x,isFeatureSupportedLayer:()=>H,isGraphicForRelatableFeatureSupportedLayer:()=>Y,isRelatableFeatureSupportedLayer:()=>G,isRelatableLayer:()=>J,isRelatedField:()=>le,preLayerQueryCallback:()=>fe,preRequestCallback:()=>se,querySourceLayer:()=>ne,queryUpdatedFeature:()=>ie,shouldOpenInNewTab:()=>k,substituteAttributes:()=>$,substituteFieldsInLinksAndAttributes:()=>D});var n=r(53966),i=r(799),l=r(77548),a=r(97770),o=r(18047),u=r(15426),f=r(39663),s=r(30524),d=r(4560),p=r(43668),y=r(56400);const c=()=>n.A.getLogger("esri.popup.support.featureUtils"),m=/href=(""|'')/gi,g=/(\{([^{\r\n]+)\})/g,h=/'/g,b=/^\s*expression\//i,I=/(\n)/gi,F=/[\u00A0-\u9999<>&]/gim,T=/href\s*=\s*(?:"([^"]+)"|'([^']+)')/gi,w=/^(?:mailto:|tel:)/,C="relationships/",N=(0,a.J2)("short-date-short-time");function Z(e){if(null!=e)return(e.sourceLayer||e.layer)??void 0}const L=new Set(["building","knowledge-graph","link-chart","map-image","map-notes","subtype-group","tile"]);function v(e){let t=e?.origin;return(null==t?void 0:L.has(t.type??"")?t.sublayer:t.layer)??e?.layer}async function q({type:e,value:t,event:r}){try{return"function"==typeof t?t(r):await t}catch(n){return void c().error("error",`An error occurred when calling the "${e}" function`,{error:n,graphic:r.graphic,value:t})}}function k(e=""){if(e)return!w.test(e.trim().toLowerCase())}function x(e){return!!e&&b.test(e)}function A(e){let{fieldInfo:t,graphic:r,layer:n}=e;return function({fieldInfo:e,graphic:t}){return!(!e?.fieldName||x(e.fieldName)||le(e.fieldName)||t?.popupTemplate)}({fieldInfo:t,graphic:r})?(0,l.p2)(n,{graphic:r}):null}function E({expressionInfos:e,fieldInfo:t,graphic:r,isContentFieldInfos:n,layer:i}){if(!t?.fieldName)return null;let l=function(e,t){if(!t||!x(t)||!e)return;let r=t.replace(b,"").toLowerCase();return e.find(({name:e})=>e.toLowerCase()===r)}(e,t.fieldName);if(l)return l.title||null;let a=A({fieldInfo:t,graphic:r,layer:i});if(a){let e=a.getFieldAlias(t.fieldName);return n?t.label||e||t.fieldName:e||t.fieldName}return t.label||t.fieldName}function U(e){let{configurableFieldsContainer:t,fieldInfo:r,isContentFieldInfos:n}=e;if(!r?.fieldName)return null;let i=t.popupTemplate||t.fieldConfigurations?t.getFieldConfiguration(r.fieldName)?.fieldFormat:(0,f.iu)(r,t.getField(r.fieldName));return n&&r.fieldFormat||i}function R(e,t){let r=j(t,e);return r?r.name:e}function M(e,t){return e&&e.map(e=>R(e,t))}function j(e,t){return e&&"function"==typeof e.getField&&t?e.getField(t)??null:null}function S(e){return`${e}`.trim()}function D({attributes:e,globalAttributes:t,layer:r,text:n,expressionAttributes:i,fieldInfoMap:l}){return n?$({formattedAttributes:t,template:O(n,{...t,...i,...e},r),fieldInfoMap:l}):""}function $({formattedAttributes:e,template:t,fieldInfoMap:r}){return S(function(e){return e.replaceAll(m,"")}((0,i.HC)((0,i.HC)(t,e=>function(e,t){return`{${t.get(e.toLowerCase())?.fieldName||e}}`}(e,r)),e)))}function z(e,t){return e.replaceAll(g,(e,r,n)=>{let i=j(t,n);return i?`{${i.name}}`:r})}function O(e,t,r){let n=z(e,r);return n&&n.replaceAll(T,(e,r,n)=>function(e,t,r){let n=(t=S(t))&&!t.startsWith("{");return(0,i.HC)(e,function(e,t=!1){let r={...e};return Object.keys(r).forEach(e=>function(e,t,r=!1){let n=t[e];"string"==typeof n&&(t[e]=(r?encodeURIComponent(n):n).replaceAll(h,"%27"))}(e,r,t)),r}(r,n||!1))}(e,r||n,t))}function H(e){return"object"==typeof e&&!!e&&"fieldsIndex"in e&&"geometryType"in e&&"getField"in e&&"load"in e&&"loaded"in e&&"objectIdField"in e&&"spatialReference"in e&&"type"in e&&("feature"===e.type||"scene"===e.type||"subtype-group"===e.type||"subtype-sublayer"===e.type||"sublayer"===e.type)&&"when"in e}function J(e){return"object"==typeof e&&!!e&&"createQuery"in e&&"queryFeatureCount"in e&&"queryObjectIds"in e&&"queryRelatedFeatures"in e&&"queryRelatedFeaturesCount"in e&&"relationships"in e}function G(e){return H(e)&&J(e)}function Q(e){return!(!(e&&"object"==typeof e&&"createQuery"in e&&"getField"in e&&"queryFeatureCount"in e&&"queryFeatures"in e&&"queryObjectIds"in e&&"capabilities"in e&&"fields"in e&&"fieldsIndex"in e&&"type"in e)||"feature"!==e.type&&"subtype-group"!==e.type&&"subtype-sublayer"!==e.type&&"sublayer"!==e.type||!("when"in e))&&("subtype-sublayer"===e.type&&"parent"in e&&e.parent&&"object"==typeof e.parent?"globalIdField"in e.parent:"globalIdField"in e)}function Y(e){return!(!e||"object"!=typeof e)&&G(function(e){let t=(r=e.origin)&&"layer"in r?r.layer:void 0;var r;return(0,l.F2)(t)?t=t.findSublayerForFeature(e):((0,l.Qz)(t)||(0,l.cM)(t))&&(0,l.UC)(e.sourceLayer)&&(t=e.sourceLayer),t??e.sourceLayer??e.layer}(e))}function P(e,t){let{fieldInfos:r,fieldName:n,graphic:i,isContentFieldInfos:l,layer:a,preventPlacesFormatting:u,timeZone:f}=t,p=_(r,n),y=A({fieldInfo:p,graphic:i,layer:a}),c=j(y||a,n),m=y?null:p?.format,g=y?U({configurableFieldsContainer:y,fieldInfo:p,isContentFieldInfos:l}):null,h="number"===g?.type;if(p&&!(0,s.JL)(n)){let t=c?.type,r="date-time"===g?.type,n=m?.dateFormat;if("date"===t||"date-only"===t||"time-only"===t||"timestamp-offset"===t||r||n)return(0,d.i0)(e,{format:r?void 0:n,fieldFormat:r?g:void 0,fieldType:t,timeZoneOptions:{layerTimeZone:a&&"preferredTimeZone"in a?a.preferredTimeZone:null,viewTimeZone:f,datesInUnknownTimezone:!(!a||!("datesInUnknownTimezone"in a)||!a.datesInUnknownTimezone)}})}if("string"==typeof e&&(0,s.JL)(n)&&m)return function(e,t){return e=e.trim(),/\d{2}-\d{2}/.test(e)?e:e.includes(",")?V(e,",",", ",t):e.includes(";")?V(e,";","; ",t):e.includes(" ")?V(e," "," ",t):(0,o.ZV)(Number(e),(0,o.yx)(t))}(e,m);if(e=function(e,t){let r="number"===t?.fieldFormat?.type||t?.format&&null==t.format.dateFormat&&(null!=t.format.places||null!=t.format.digitSeparator);if("string"==typeof e&&r){let t=Number(e);if(!isNaN(t))return t}return e}(e,{format:h?void 0:m,fieldFormat:h?g:void 0}),"string"==typeof e||null==e||null==m&&null==g)return ee(e);let b=h?(0,o.Up)(g):m?(0,o.yx)(m):void 0;return u?(0,o.ZV)(e,{...b,minimumFractionDigits:0,maximumFractionDigits:20}):(0,o.ZV)(e,b)}function V(e,t,r,n){return e.trim().split(t).map(e=>(0,o.ZV)(Number(e),(0,o.yx)(n))).join(r)}function _(e,t){if(e?.length&&t)return e.find(e=>e.fieldName?.toLowerCase()===t.toLowerCase())}function W(e,t,r,n){let{creatorField:i,creationDateField:l,editorField:o,editDateField:u}=e;if(!t)return;let f=(0,y.hv)(n&&"preferredTimeZone"in n?n.preferredTimeZone:null,!(!n||!("datesInUnknownTimezone"in n)||!n.datesInUnknownTimezone),r,N,"date"),s={...N,...f},d=t[u];if("number"==typeof d){let e=t[o];return{type:"edit",date:(0,a.Yq)(d,s),user:e}}let p=t[l];if("number"==typeof p){let e=t[i];return{type:"create",date:(0,a.Yq)(p,s),user:e}}return null}function B(e,t){let r=new Map;if(!e)return r;for(let n of e){if(!n.fieldName)continue;let e=R(n.fieldName,t);n.fieldName=e,r.set(e.toLowerCase(),n)}return r}function K(e){let t=[];if(!e)return t;let{fieldInfos:r,content:n}=e;return r&&t.push(...r),!n||!Array.isArray(n)||n.forEach(e=>{if("fields"===e.type){let r=e?.fieldInfos;r&&t.push(...r)}}),t}function X(e){return e.replaceAll(F,e=>`&#${e.charCodeAt(0)};`)}function ee(e){return"string"==typeof e?e.replaceAll(I,'<br class="esri-text-new-line" />'):e}function te(e){let{fieldInfoMap:t,fieldInfos:r,fieldName:n,graphic:i,isContentFieldInfos:l,layer:a,timeZone:o,value:f}=e;if(null==f)return"";let p=function({fieldName:e,value:t,graphic:r,layer:n}){if(le(e)||!n||"function"!=typeof n.getFieldDomain)return null;let i=r&&n.getFieldDomain(e,{feature:r});return i&&"coded-value"===i.type?i.getName(t):null}({fieldName:n,value:f,graphic:i,layer:a});if(p)return p;let y=a?.types&&(0,u.uU)(a.types)?function({fieldName:e,graphic:t,layer:r}){if(le(e)||!r||"function"!=typeof r.getFeatureType)return null;let{typeIdField:n}=r;if(!n||e!==n)return null;let i=r.getFeatureType(t);return i?i.name:null}({fieldName:n,graphic:i,layer:a}):null;if(y)return y;if(t.get(n.toLowerCase()))return P(f,{fieldInfos:r||Array.from(t.values()),fieldName:n,graphic:i,isContentFieldInfos:l,layer:a,timeZone:o});let c=a?.fieldsIndex?.get(n);return c&&((0,d.fs)(c)||(0,s.OH)(c))?(0,d.i0)(f,{fieldType:c.type,timeZoneOptions:{layerTimeZone:a&&"preferredTimeZone"in a?a.preferredTimeZone:null,viewTimeZone:o,datesInUnknownTimezone:!(!a||!("datesInUnknownTimezone"in a)||!a.datesInUnknownTimezone)}}):ee(f)}function re({attributes:e,fieldInfoMap:t,fieldInfos:r,graphic:n,isContentFieldInfos:i,layer:l,relatedInfos:a,timeZone:o}){let u={};return a?.forEach(e=>function({attributes:e,relatedInfo:t,fieldInfoMap:r,fieldInfos:n,layer:i,timeZone:l}){e&&t&&(t.relatedFeatures?.forEach(a=>ae({attributes:e,graphic:a,relatedInfo:t,fieldInfoMap:r,fieldInfos:n,layer:i,timeZone:l})),t.relatedStatsFeatures?.forEach(a=>ae({attributes:e,graphic:a,relatedInfo:t,fieldInfoMap:r,fieldInfos:n,layer:i,timeZone:l})))}({attributes:u,relatedInfo:e,fieldInfoMap:t,fieldInfos:r,layer:l,timeZone:o})),e&&Object.keys(e).forEach(a=>{let f=e[a];u[a]=te({fieldInfoMap:t,fieldInfos:r,fieldName:a,graphic:n,isContentFieldInfos:i,layer:l,timeZone:o,value:f})}),u}async function ne(e,t){let{layer:r,graphic:n,outFields:i,objectIds:a,returnGeometry:o,spatialReference:u}=e,f=a[0];if("number"!=typeof f&&"string"!=typeof f){let e={layer:r,graphic:n,objectId:f,requiredFields:i};return c().warn("Could not query required fields for the specified feature. The feature's ID is invalid.",e),null}if(!(0,l.BR)(r)?.operations?.supportsQuery){let e={layer:r,graphic:n,requiredFields:i,returnGeometry:o};return c().warn("The specified layer cannot be queried. The following fields will not be available.",e),null}let s=r.createQuery();return s.objectIds=a,s.outFields=i?.length?i:[r.objectIdField],s.returnGeometry=!!o,s.returnZ=!!o,s.returnM=!!o,s.outSpatialReference=u,(await r.queryFeatures(s,t)).features[0]}async function ie({graphic:e,popupTemplate:t,layer:r,spatialReference:n},i){if(!r||!t||("function"==typeof r.load&&await r.load(i),!e.attributes))return;let l=r.objectIdField,a=e.attributes[l];if(null==a)return;let o=[a],u=new Set(await t.getRequiredFields(r.fieldsIndex));null!=r.timeInfo?.trackIdField&&!u.has(r.timeInfo.trackIdField)&&await async function(e){if(!e.expressionInfos?.length)return!1;let{arcadeUtils:{requiresTrack:t}}=await(0,p.l)();return t(e)}(t)&&u.add(r.timeInfo.trackIdField);let f=(0,s.Kl)(e,u),d=f?[]:u.has(l)?[...u]:[...u,l],y=t.returnGeometry||await async function(e){if(!e.expressionInfos?.length)return!1;let{arcadeUtils:{hasGeometryFunctions:t}}=await(0,p.l)();return t(e)}(t);if(f&&!y)return;let c=await ne({layer:r,graphic:e,outFields:d,objectIds:o,returnGeometry:y,spatialReference:n},i);c&&(c.geometry&&(e.geometry=c.geometry),c.attributes&&(e.attributes={...e.attributes,...c.attributes}))}function le(e=""){return!!e&&e.includes(C)}function ae({attributes:e,graphic:t,relatedInfo:r,fieldInfos:n,fieldInfoMap:i,layer:l,timeZone:a}){e&&t&&r&&Object.keys(t.attributes).forEach(o=>{let u=function(e){return e?`${C}${e.layerId}/${e.fieldName}`:""}({layerId:r.relation.id.toString(),fieldName:o}),f=t.attributes[o];e[u]=te({fieldName:u,fieldInfos:n,fieldInfoMap:i,layer:l,value:f,graphic:t,timeZone:a})})}const oe=e=>{if(!e)return!1;let t=e.toUpperCase();return t.includes("CURRENT_TIMESTAMP")||t.includes("CURRENT_DATE")||t.includes("CURRENT_TIME")},ue=({layer:e,method:t,query:r,definitionExpression:n})=>{if(!e.capabilities?.query?.supportsCacheHint||"attachments"===t)return;let i=null==r.where?null:r.where,l=null==r.geometry?null:r.geometry;e.capabilities.query.supportsCacheHint&&!oe(n)&&!oe(i)&&"extent"!==l?.type&&"tile"!==r.resultType&&(r.cacheHint=!0)},fe=({query:e,layer:t,method:r})=>{ue({layer:t,method:r,query:e,definitionExpression:`${t.definitionExpression} ${t.serviceDefinitionExpression??""}`})},se=({queryPayload:e,layer:t,method:r})=>{ue({layer:t,method:r,query:e,definitionExpression:`${t.definitionExpression} ${t.serviceDefinitionExpression??""}`})};function de(e,t,r){return e&&t&&r?"sublayer"===t.type?ce({layers:t.layer?.allSublayers,map:e,relatedLayer:t,relationship:r})||ce({layers:t.layer?.subtables,map:e,relatedLayer:t,relationship:r}):ce({layers:e.allLayers,map:e,relatedLayer:t,relationship:r})||ce({layers:e.allTables,map:e,relatedLayer:t,relationship:r}):null}function pe(e,t){return e&&"utilityNetworks"in e&&t?e.utilityNetworks?.find(e=>e.isUtilityLayer(t)):null}function ye(e,t){return e?.allTables.find(e=>"feature"===e.type&&e.layerId===t.id&&e.url===t.layer?.url)}function ce({map:e,relationship:t,relationship:{relatedTableId:r},relatedLayer:n,layers:i}){if(!i)return null;for(let l of i){if("map-image"===l.type){let r=ce({layers:l.sublayers,map:e,relatedLayer:n,relationship:t})||ce({layers:l.subtables,map:e,relatedLayer:n,relationship:t});if(r)return r;continue}if(!G(l))continue;if("sublayer"===n.type){if(l!==n&&l.id===r)return l.isTable?ye(e,l):l;continue}let i="scene"===n.type&&n.associatedLayer?n.associatedLayer.url:n.url;if(!i)return null;if("sublayer"!==l.type){if(l!==n&&l.url===i&&l.layerId===r)return l}else if(l!==n&&l.layer?.url===i&&l.id===r)return l.isTable?ye(e,l):l}return null}},4560(e,t,r){r.d(t,{i0:()=>f,j4:()=>u,fs:()=>o});var n=r(97770),i=r(30524);r(7762),r(84952),r(27865),r(43281),r(98623);var l=r(56400);let a;function o(e){return(0,i.vE)(e)||(0,i.zD)(e)||(0,i.Ah)(e)}async function u(e,t){return e?(a||=new(await Promise.all([r.e(9696),r.e(4123)]).then(()=>r(44123)).then(e=>e.WhereClauseCache))(50,500),a.get(e,t)):null}function f(e,t){let r,i,{format:a,fieldFormat:o,timeZoneOptions:u,fieldType:f}=t??{},s=o?(0,n._m)(o):null;if(u&&({timeZone:r,timeZoneName:i}=(0,l.hv)(u.layerTimeZone,u.datesInUnknownTimezone,u.viewTimeZone,s||(0,n.J2)(a||"short-date-short-time"),f)),"string"==typeof e&&isNaN(Date.parse("time-only"===f?`1970-01-01T${e}Z`:e)))return e;switch(f){case"date-only":{let t=s||(0,n.J2)(a||"short-date");return"string"==typeof e?(0,n.iS)(e,{...t}):(0,n.Yq)(e,{...t,timeZone:"UTC"})}case"time-only":{let t=s||(0,n.J2)(a||"short-time");return"string"==typeof e?(0,n.F8)(e,t):(0,n.Yq)(e,{...t,timeZone:"UTC"})}case"timestamp-offset":{let t=a||s||u?s||(0,n.J2)(a||"short-date-short-time"):void 0,l=t?{...t,timeZone:r,timeZoneName:i}:void 0;return"string"==typeof e?(0,n.Ey)(e,l):(0,n.Yq)(e,l)}default:{let t=a||s||u?s||(0,n.J2)(a||"short-date-short-time"):void 0;return(0,n.Yq)("string"==typeof e?new Date(e):e,t?{...t,timeZone:r,timeZoneName:i}:void 0)}}}new Set(["integer","small-integer"])}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1938,4123],{66344(e,t,i){i.d(t,{q:()=>l});const s=!!(0,i(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class h{get size(){return this._size}constructor(e=10485760,t=.3){this._maxSize=e,this._maxClientSizeRatio=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._clients=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._clients.clear(),this._db.clear()}register(e){this._clients.set(e.id.slice(0,-1),e)}deregister(e){this.clear(e),this._sizeLimits.delete(e),this._clients.delete(e.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,-1),this._checkSize()}get _maxClientSize(){return this._maxSize*this._maxClientSizeRatio}getSize(e,t){return this._db.get(e.id+t)?.size??0}put(e,t,i,h,n){t=e.id+t;let l=this._db.get(t);if(l&&(this._size-=l.size,e.size-=l.size,this._db.delete(t),l.entry!==i&&this._notifyRemove(t,l.entry,l.size,0)),h>this._maxSize)return void this._notifyRemove(t,i,h,0);if(void 0===i)return void console.warn("Refusing to cache undefined entry ");if(!h||h<0)return s||console.warn(`Refusing to cache entry with size ${h} for key ${t}`),void this._notifyRemove(t,i,0,0);let a=1+Math.max(n,-4)- -3;this._db.set(t,new r(i,h,a)),this._size+=h,e.size+=h,this._checkSize()}updateSize(e,t){t=e.id+t;let i=this._db.get(t);if(!i)return;this._size-=i.size,e.size-=i.size;let s=i.entry.usedMemory;for(;s>this._maxSize;){let e=this._notifyRemove(t,i.entry,s,1);if(!(null!=e&&e>0))return void this._db.delete(t);s=e}i.size=s,this._size+=s,e.size+=s,this._checkSize()}pop(e,t){t=e.id+t;let i=this._db.get(t);if(i)return this._size-=i.size,e.size-=i.size,this._db.delete(t),++this._hit,i.entry;++this._miss}get(e,t){t=e.id+t;let i=this._db.get(t);if(void 0!==i)return this._db.delete(t),i.lives=i.lifetime,this._db.set(t,i),++this._hit,i.entry;++this._miss}peek(e,t){let i=this._db.get(e.id+t);return i?++this._hit:++this._miss,i?.entry}get performanceInfo(){let e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},i=[];this._db.forEach((e,s)=>{let h=e.lifetime;i[h]=(i[h]||0)+e.size,this._clients.forEach(i=>{let{id:h,name:r}=i;if(s.startsWith(h)){let i=t[r]||0;t[r]=i+e.size}})});let s={};this._clients.forEach(e=>{let i=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){let h=t[i]||0;t[i]=h,s[i]=Math.round(100*e.hitRate)+"%"}else s[i]="0%"});let h=Object.keys(t);h.sort((e,i)=>t[i]-t[e]),h.forEach(i=>e[i]=Math.round(t[i]/2**20)+"MB / "+s[i]);for(let t=i.length-1;t>=0;--t){let s=i[t];s&&(e["Priority "+(t+-3-1)]=Math.round(s/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._clients.forEach(e=>e.resetHitRate())}clear(e){let t=e.id;this._db.forEach((e,i)=>{i.startsWith(t)&&(this._size-=e.size,this._db.delete(i),this._notifyRemove(i,e.entry,e.size,0))}),e.size=0}clearAll(){this._db.forEach((e,t)=>this._notifyRemove(t,e.entry,e.size,0)),this._clients.forEach(e=>e.size=0),this._size=0,this._db.clear()}*values(e){for(let[t,i]of this._db)t.startsWith(e.id)&&(yield i.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,i,s){let h=this._clients.get(e.split(n)[0])?.removeFunc,r=h?.(t,s,i);return"number"==typeof r?r:null}_checkSize(){this._sizeLimits.forEach((e,t)=>this._checkSizeLimits(e,t)),this._clients.forEach(e=>this._checkSizeLimits(this._maxClientSize,e)),this._checkSizeLimits(this.maxSize)}setMaxClientSize(e,t){null==t||t<=0?this._sizeLimits.delete(e):this._sizeLimits.set(e,t)}_checkSizeLimits(e,t){let i=t??this;if(i.size<=e)return;let s=t?.id,h=!0;for(;h;){h=!1;for(let[r,l]of this._db)if(0===l.lifetime&&(!s||r.startsWith(s))){let s=t??this._clients.get(r.split(n)[0]);if(this._purgeItem(r,l,s),i.size<=.9*e)return;h||=this._db.has(r)}}for(let[h,r]of this._db)if(!s||h.startsWith(s)){let s=t??this._clients.get(h.split(n)[0]);if(this._purgeItem(h,r,s),i.size<=.9*e)return}}_purgeItem(e,t,i){if(this._db.delete(e),t.lives<=1){this._size-=t.size,i&&(i.size-=t.size);let s=this._notifyRemove(e,t.entry,t.size,1);null!=s&&s>0&&(this._size+=s,i&&(i.size+=s),t.lives=t.lifetime,t.size=s,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}new h(0);class r{constructor(e,t,i){this.entry=e,this.size=t,this.lifetime=i,this.lives=i}}const n=":";class l{constructor(e,t){this.removeFunc=t,this.id="",this.name="",this.size=0,this._storage=new h(e,1),this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(e,t,i=1){this._storage.put(this,e,t,i,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}},44123(e,t,i){i.d(t,{WhereClauseCache:()=>r});var s=i(66344),h=i(89696);class r{constructor(e,t){this._cache=new s.q(e),this._invalidCache=new s.q(t)}get(e,t){let i=`${t?.uid}:${e}`,s=this._cache.get(i);if(s)return s;if(null!=this._invalidCache.get(i))return null;try{let s=h.A.create(e,{fieldsIndex:t});return this._cache.put(i,s),s}catch(e){return this._invalidCache.put(i,e),null}}getError(e,t){let i=`${t?.uid}:${e}`;return this._invalidCache.get(i)??null}}},73444(e,t,i){i.d(t,{JK:()=>a,Ml:()=>g,QC:()=>c,lR:()=>_,oQ:()=>z});var s=i(36563);let h;i(44208);const r=globalThis.esriConfig?.locale,n=globalThis.document?.documentElement;function l(){let e=n?.getAttribute("lang"),t=globalThis.navigator?.language;return r??e??t??"en"}function a(){return void 0===h&&(h=l()),h}const o=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function _(e=a()){return u(e)?.language}function c(e=a()){let t=u(e);return t?.language&&t?.extlang?e.replace(`${t.language}-`,""):e}function u(e=a()){return o.exec(e)?.groups}const d=[];function z(e){return d.push(e),(0,s.hA)(()=>{d.splice(d.indexOf(e),1)})}new Map;const f=[];function g(e){return f.push(e),(0,s.hA)(()=>f.splice(f.indexOf(e),1))}function m(){let e=l();h!==e&&([...f].forEach(t=>t(e)),h=e,[...d].forEach(t=>t(e)))}globalThis.addEventListener?.("languagechange",m),n&&new MutationObserver(()=>{m()}).observe(n,{attributeFilter:["lang"]})}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1948,2990],{61691(e,t,r){r.d(t,{G:()=>s});class s{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}},76061(e,t,r){r.d(t,{S:()=>n});var s=r(61691);class n extends s.G{m_aGeoms;m_iGeom=-1;constructor(e){super(),this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){let e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},87992(e,t,r){r.d(t,{JR:()=>O,ME:()=>M,MY:()=>F,NO:()=>C,Nh:()=>_,V2:()=>A,_s:()=>Y,e6:()=>V,gh:()=>E,jm:()=>S,tr:()=>X,uX:()=>p});var s=r(32198),n=r(16930),a=r(19419),i=r(60408),o=r(21325),l=r(513),h=r(50954),u=r(79567),g=r(52006),m=r(49663),f=r(46068),x=r(92722);class p{constructor({type:e,spatialReference:t,vertexCount:r,vertexXY:s,vertexZ:n,vertexM:a,partCount:i,partOffsets:o,partFlags:l,segmentFlags:h,segmentIndices:u,segmentParams:g,segmentCountArc:m,segmentCountBezier:f}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=e,this.spatialReference=t,this.vertexCount=r,this.vertexXY=s,this.vertexZ=n,this.vertexM=a,this.partCount=i,this.partOffsets=o,this.partFlags=l,this.segmentFlags=h,this.segmentIndices=u,this.segmentParams=g,this.segmentCountArc=m,this.segmentCountBezier=f}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){let{segmentCount:e,segmentCountArc:t,segmentCountBezier:r}=this;return e&&e-t-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return this.segmentCountArc+this.segmentCountBezier>0}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function e(e){return e?64+e.byteLength:0}return e(this.vertexXY)+e(this.vertexZ)+e(this.vertexM)+e(this.partOffsets)+e(this.partFlags)+e(this.segmentFlags)+e(this.segmentIndices)+e(this.segmentParams)}clone(){let{type:e,vertexCount:t,partCount:r,hasZ:s,hasM:n,segmentCountArc:a,segmentCountBezier:i}=this,o=A(e,t,r,s,n,this.hasCurves(),a,i);o.spatialReference=this.spatialReference;let{vertexXY:l,vertexZ:h,vertexM:u}=this;if(o.vertexXY.set(l.subarray(0,2*t),0),o.vertexZ?.set(h.subarray(0,t),0),o.vertexM?.set(u.subarray(0,t),0),this.isMultipart()){let{partOffsets:e,partFlags:t}=this;o.partFlags.set(t.subarray(0,r+1)),o.partOffsets.set(e.subarray(0,r+1))}if(this.hasCurves()){let{segmentFlags:e,segmentIndices:r,segmentParams:s,segmentParamCount:n}=this;o.segmentFlags.set(e.subarray(0,t),0),o.segmentIndices.set(r.subarray(0,t),0),o.segmentParams.set(s.subarray(0,n),0)}return o}equals(e){return this.equalsWithinTolerance(e,0)}equalsWithinTolerance(e,t){if(null==e)return!1;if(this===e)return!0;if(!(0,o.aI)(this.spatialReference,e.spatialReference)||this.vertexCount!==e.vertexCount||this.partCount!==e.partCount||this.hasZ!==e.hasZ||this.hasM!==e.hasM||this.hasCurves()!==e.hasCurves()||this.segmentCountArc!==e.segmentCountArc||this.segmentCountBezier!==e.segmentCountBezier)return!1;let r=0===t?(e,t)=>e!==t||isNaN(e)!==isNaN(t):(e,r)=>Math.abs(e-r)>t||isNaN(e)!==isNaN(r);for(let t=0;t<this.vertexCount;++t)if(r(this.vertexXY[2*t],e.vertexXY[2*t])||r(this.vertexXY[2*t+1],e.vertexXY[2*t+1]))return!1;if(this.hasZ)for(let t=0;t<this.vertexCount;++t)if(r(this.vertexZ[t],e.vertexZ[t]))return!1;if(this.hasM)for(let t=0;t<this.vertexCount;++t)if(r(this.vertexM[t],e.vertexM[t]))return!1;for(let t=0;t<this.partCount;++t)if(this.partFlags[t]!==e.partFlags[t]||this.partOffsets[t]!==e.partOffsets[t])return!1;if(this.hasCurves()){for(let t=0;t<this.vertexCount;++t)if(this.segmentFlags[t]!==e.segmentFlags[t]||this.segmentIndices[t]!==e.segmentIndices[t])return!1;for(let t=0;t<this.segmentParamCount;++t)if(r(this.segmentParams[t],e.segmentParams[t]))return!1}return!0}get parts(){return this.isMultipart()?new c(this):[][Symbol.iterator]()}}class c{constructor(e){this.geometry=e,this.value=new d(e)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class d{constructor(e){this.geometry=e,this.index=-1,this._readVertex=Z(e),this._segments=new v(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){let e=this.geometry.partOffsets;return e[this.index+1]-e[this.index]}}class v{constructor(e){this._part=e,this._partStart=0,this._partEnd=0,this.value=new y(e.geometry)}get _partIsClosed(){return!!(1&this._part.geometry.partFlags?.[this._part.index])}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;let e=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=e&&this._partIsClosed?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){let{index:e}=this._part,t=this._part.geometry.partOffsets;this._partStart=t[e],this._partEnd=t[e+1]-(this._partIsClosed?1:2),this.value.indexOfStartVertex=this._partStart-1}}class y{constructor(e){this.geometry=e,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=Z(e)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){let e=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===e)return this.end;let t=this.geometry.segmentParams,r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===e){let e=t[r++],s=t[r++],n=t[r++],a=t[r++];return{b:[this.end,[e,s],[n,a]]}}let s=t[r++],n=t[r++],a=t[r++],i=t[r++],o=t[r++],l=t[r++];r++,r++;let h=t[r++],u=t[r++];if(!(4&s)&&1===a)return{c:[this.end,[h,u]]};let g=2&s?0:1,m=1&s?0:1;return{a:[this.end,[o,l],g,m,i,n,a]}}}function C(e,t){let r={stack:[],error:void 0,hasError:!1};try{return t??=(0,a.Ie)(),(0,s.mS)(r,new P(e,["vertexZ","vertexM","spatialReference"]),!1),(0,a.bx)(t,function(e){let t,{vertexCount:r,vertexXY:n,vertexZ:i,vertexM:o}=e,l=R(e);if(e.hasCurves()){let r={stack:[],error:void 0,hasError:!1};try{(0,s.mS)(r,new P(e,["vertexZ","vertexM"]),!1);let n=(0,a.Ie)();for(let t of e.parts){let e=t.startVertex;for(let{curve:r}of t.segments)(0,u.e)(n,e,r),e=(0,g.yP)(r)}let[i,o,h,m]=n;t={xmin:i,ymin:o,xmax:h,ymax:m,spatialReference:l}}catch(e){r.error=e,r.hasError=!0}finally{(0,s.hk)(r)}}else{let e,s,a,i;e=s=1/0,a=i=-1/0;for(let t=0;t<r;++t){let r=n[2*t],o=n[2*t+1];e=Math.min(e,r),a=Math.max(a,r),s=Math.min(s,o),i=Math.max(i,o)}t={xmin:e,ymin:s,xmax:a,ymax:i,spatialReference:l}}if(i){let e=1/0,r=-1/0;for(let t of i)e=Math.min(e,t),r=Math.max(r,t);t.zmin=e,t.zmax=r}if(o){let e=1/0,r=-1/0;for(let t of o)e=Math.min(e,t),r=Math.max(r,t);t.mmin=e,t.mmax=r}return t}(e)),t}catch(e){r.error=e,r.hasError=!0}finally{(0,s.hk)(r)}}function M(e){let t,r,s;if((0,i.fT)(e)){s="point";let{x:n,y:a,z:i,m:o}=e,l=[n,a];null!=i&&l.push(i),null!=o&&l.push(o),r=[[l]],t=1}else(0,i.U9)(e)?(s="multipoint",r=[e.points],t=e.points.length):(0,i.Rg)(e)?(s="polyline",r=e.curvePaths??e.paths,t=r.reduce((e,t)=>e+t.length,0)):(s="polygon",r=e.curveRings??e.rings,t=r.reduce((e,t)=>(0===t.length||(e+=t.length,I(t[0],(0,g.yP)(t.at(-1)))&&--e),e),0));let n=A(s,t,s.includes("point")?0:r.length,(0,i.Pv)(e),(0,i.W0)(e),(0,g.Ed)(e)),{hasZ:a,hasM:o,vertexXY:l,vertexZ:h,vertexM:u}=n;function m(e){l[2*x]=e[0],l[2*x+1]=e[1],a&&(h[x]=e[2]),o&&(u[x]=e[f]),++x}n.spatialReference=e.spatialReference??void 0;let f=n.hasZ?3:2,x=0;if(!n.isMultipart()){if(!a&&!o){for(let[e,t]of r[0])l[2*x]=e,l[2*x+1]=t,++x;return n}for(let e of r[0])m(e);return n}let p="polygon"===s,{partOffsets:c}=n,d=0;if(!(0,g.Ed)(e)){for(let e of r){if(c[d++]=x,0===e.length)continue;let t=e.length;if(p&&I(e[0],e.at(-1))&&--t,a||o)for(let r=0;r<t;++r)m(e[r]);else for(let r=0;r<t;++r){let[t,s]=e[r];l[2*x]=t,l[2*x+1]=s,++x}}return c[d]=x,n}function v(e){let t=y+e;if(t<=(n.segmentParams?.length??0))return;let r=t*k;r=20*Math.ceil(r/20);let s=n.segmentParams;n.segmentParams=new Float64Array(r),null!=s&&n.segmentParams.set(s)}let y=0;for(let e of r){if(n.partOffsets[d++]=x,0===e.length)continue;let t=e[0],r=t;for(let t=1;t<e.length;++t){let s=e[t];m(r);let a=x-1;(0,g.wY)(s)?(v(10),++n.segmentCountArc,y=Y(r,s,n,a,y),r=s.a[0]):(0,g.DA)(s)?(v(10),++n.segmentCountArc,y=b(r,s,n,a,y),r=s.a[0]):(0,g.aO)(s)?(v(10),++n.segmentCountArc,y=V(r,s,n,a,y),r=s.c[0]):(0,g.n1)(s)?(v(4),++n.segmentCountBezier,y=X(0,s,n,a,y),r=s.b[0]):r=s}p&&I(t,r)||m(r)}return n.partOffsets[d]=x,n}function E(e){let t=Z(e),{vertexCount:r,partCount:s,hasZ:n,hasM:a}=e,i=R(e),o=0;if(!e.isMultipart()){if("point"===e.type){let[t,r]=e.vertexXY;return{x:t,y:r,z:e.vertexZ?.[0],m:e.vertexM?.[0],spatialReference:i}}let s=[];for(;o<r;)s.push(t(o++));return{points:s,spatialReference:i,hasZ:n,hasM:a}}if(!e.hasCurves()){let r=[];for(let n=0;n<s;++n){let s=!!(1&e.partFlags[n]),a=e.partOffsets[n+1],i=[];for(;o<a;)i.push(t(o++));s&&i.length>0&&i.push([...i[0]]),r.push(i)}return"polygon"===e.type?{rings:r,hasZ:n,hasM:a,spatialReference:i}:{paths:r,hasZ:n,hasM:a,spatialReference:i}}let l=[];for(let{segments:t,startVertex:r}of e.parts){let e=[r];for(let{curve:r}of t)e.push(r);l.push(e)}return"polygon"===e.type?{rings:[],curveRings:l,hasZ:n,hasM:a,spatialReference:i}:{paths:[],curvePaths:l,hasZ:n,hasM:a,spatialReference:i}}function _(e,{lengths:t,coords:r,hasZ:s,hasM:n},a){let i=e.includes("point")?0:t.length,o="polygon"===e,l="point"===e?1:t.reduce((e,t)=>e+t,0)-(o?i:0);s??=!1,n??=!1;let h=A(e,l,i,s,n,!1,0,0);if(h.spatialReference=a??void 0,!h.isMultipart()){for(let e=0,t=0;e<l;++e)h.vertexXY[2*e]=r[t++],h.vertexXY[2*e+1]=r[t++],s&&(h.vertexZ[e]=r[t++]),n&&(h.vertexM[e]=r[t++]);return h}let u=2+Number(s)+Number(n),g=0,m=0;h.partOffsets[0]=0;for(let e of t){let t=h.partOffsets[m],a=t+e-Number(o);h.partOffsets[++m]=a;for(let e=t;e<a;++e)h.vertexXY[2*e]=r[g++],h.vertexXY[2*e+1]=r[g++],s&&(h.vertexZ[e]=r[g++]),n&&(h.vertexM[e]=r[g++]);o&&(g+=u)}return h}function O({type:e,vertexCount:t,vertexXY:r,vertexZ:s,vertexM:n,partCount:a,partOffsets:i,partFlags:o,hasZ:l,hasM:h}){let u=new x.A([],[],l,h);a=Math.max(a,1);let g=0;for(let e=0;e<a;++e){let a=i?.[e+1]??t,m=u.coords.length;for(let e=g;e<a;++e)u.coords.push(r[2*e],r[2*e+1]),l&&u.coords.push(s[e]),h&&u.coords.push(n[e]);if(o&&1&o[e]){let e=g;u.coords.push(r[2*e],r[2*e+1]),l&&u.coords.push(s[e]),h&&u.coords.push(n[e])}u.lengths.push((u.coords.length-m)/u.stride),g=a}return"point"===e&&(u.lengths.length=0),u}function S(...e){let t=new Set;for(let r of e){if(!r)continue;let e=[r.vertexXY,r.vertexZ,r.vertexM,r.partOffsets,r.partFlags,r.segmentFlags,r.segmentIndices,r.segmentParams];for(let r of e){let e=r?.buffer;e&&t.add(e)}}return Array.from(t)}function F(e,t){return"getSpatialReference"in e&&(t=function(e){if(null==e)return;let t=e.getText()||void 0,r=e.isCustomWkid()?0:e.getOldID();if(r<=0)return{wkt:t};let s=e.getLatestID();(s<=0||s===r)&&(s=void 0);let n=e.getVCS();if(null==n)return{wkid:r,latestWkid:s,wkt:t};let a=n.isCustomWkid()?0:n.getOldID();if(a<=0)return{wkt:t};let i=e.getLatestVerticalID();return(i<=0||i===a)&&(i=void 0),{wkid:r,wkt:t,latestWkid:s,vcsWkid:a,latestVcsWkid:i}}(e.getSpatialReference()),e=e.getGeometry()),new p({...e.toFlatGeometry(),spatialReference:t})}class P{constructor(e,t){this.target=e,this.keys=t,this.oldValues=t.map(t=>e[t]);for(let r of t)e[r]=void 0}[Symbol.dispose](){this.keys.map((e,t)=>{this.target[e]=this.oldValues[t]})}}function R({spatialReference:e}){return e instanceof n.A?e.toJSON():e}function Z({vertexXY:e,vertexZ:t,vertexM:r}){return t?r?s=>[e[2*s],e[2*s+1],t[s],r[s]]:r=>[e[2*r],e[2*r+1],t[r]]:r?t=>[e[2*t],e[2*t+1],r[t]]:t=>[e[2*t],e[2*t+1]]}function I(e,t){return e.every((e,r)=>e===t[r])}function A(e,t,r,s,n,a,i,o){i??=0,o??=0;let l=new p({type:e,vertexCount:t,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:i,segmentCountBezier:o}),h=2*Float64Array.BYTES_PER_ELEMENT*t;s&&(h+=Float64Array.BYTES_PER_ELEMENT*t),n&&(h+=Float64Array.BYTES_PER_ELEMENT*t),l.isMultipart()&&(h+=(r+1)*Int32Array.BYTES_PER_ELEMENT,h+=(r+1)*Int8Array.BYTES_PER_ELEMENT),a&&(h+=t*Int8Array.BYTES_PER_ELEMENT,h+=t*Int32Array.BYTES_PER_ELEMENT,h+=l.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);let u=new ArrayBuffer(h),g=0;return l.vertexXY=new Float64Array(u,g,2*t),g+=l.vertexXY.byteLength,s&&(l.vertexZ=new Float64Array(u,g,t),g+=l.vertexZ.byteLength),n&&(l.vertexM=new Float64Array(u,g,t),g+=l.vertexM.byteLength),a&&(l.segmentParams=new Float64Array(u,g,l.segmentParamCount),g+=l.segmentParams.byteLength,l.segmentIndices=new Int32Array(u,g,t),l.segmentIndices.fill(N),g+=l.segmentIndices.byteLength),l.isMultipart()&&(l.partOffsets=new Int32Array(u,g,r+1),g+=l.partOffsets.byteLength,l.partFlags=new Int8Array(u,g,r+1),g+=l.partFlags.byteLength,"polygon"===l.type&&l.partFlags.subarray(0,r).fill(1)),a&&(l.segmentFlags=new Int8Array(u,g,t),l.segmentFlags.fill(1),g+=l.segmentFlags.byteLength),l}function Y(e,t,{segmentFlags:r,segmentIndices:s,segmentParams:n},a,i){r[a]=4,s[a]=i;let[o,[l,h],u,g,m,x,p]=t.a,c=4;g||(c|=1),u||(c|=2);let d=(0,f.SW)(e,t),[v,y]=(0,f.Uk)(d,.5);return n[i++]=c,n[i++]=x,n[i++]=p,n[i++]=m,n[i++]=l,n[i++]=h,n[i++]=d.u2-d.u1,n[i++]=d.u1,n[i++]=v,n[i++]=y,i}function b(e,t,{segmentFlags:r,segmentIndices:s,segmentParams:n},a,i){r[a]=4,s[a]=i;let o=(0,m.io)(e,t);return w(o,4,...(0,l.mq)(o,.5),n,i)}function V(e,t,{segmentFlags:r,segmentIndices:s,segmentParams:n},a,i){return r[a]=4,s[a]=i,w((0,h.pM)(e,t),0,...t.c[1],n,i)}function w(e,t,r,s,n,a){let{cx:i,cy:o,thetaStart:l,thetaEnd:h,radius:u}=e;return l>h||(t|=1),Math.abs(h-l)<=Math.PI||(t|=2),n[a++]=t,n[a++]=u,n[a++]=1,n[a++]=0,n[a++]=i,n[a++]=o,n[a++]=h-l,n[a++]=l,n[a++]=r,n[a++]=s,a}function X(e,{b:[t,[r,s],[n,a]]},{segmentFlags:i,segmentIndices:o,segmentParams:l},h,u){return i[h]=2,o[h]=u,l[u++]=r,l[u++]=s,l[u++]=n,l[u++]=a,u}const k=1.61803,N=-1},5764(e,t,r){r.d(t,{fz:()=>a,g7:()=>n});const s=new(r(39117).x);function n(e,t,r){return s.execute(e,t,r,null)}function a(){return s.supportsCurves()}},51508(e,t,r){r.d(t,{containsExecute:()=>a});var s=r(5764),n=(r(85036),r(83299));function a(e,t){let r=(0,n.fromGeometry)(e);return(0,s.g7)(r.getGeometry(),(0,n.fromGeometryToGXGeometry)(t),r.getSpatialReference())}},85036(e,t,r){r.d(t,{Q:()=>a});var s=r(51447),n=r(53966);function a(e,t,r){(0,s.io)(n.A.getLogger(`esri.geometry.operators.${e}`),`${t} is deprecated. Refactor using @arcgis/codemod or manually replace usages with ${r} instead.`,{replacement:r,warnOnce:!0})}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1948,2990],{61691(e,t,r){r.d(t,{G:()=>s});class s{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}},76061(e,t,r){r.d(t,{S:()=>n});var s=r(61691);class n extends s.G{m_aGeoms;m_iGeom=-1;constructor(e){super(),this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){let e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},87992(e,t,r){r.d(t,{JR:()=>O,ME:()=>M,MY:()=>F,NO:()=>C,Nh:()=>_,V2:()=>A,_s:()=>Y,e6:()=>V,gh:()=>E,jm:()=>S,tr:()=>X,uX:()=>p});var s=r(32198),n=r(16930),a=r(19419),i=r(60408),o=r(21325),l=r(513),h=r(50954),u=r(79567),g=r(52006),m=r(49663),f=r(46068),x=r(92722);class p{constructor({type:e,spatialReference:t,vertexCount:r,vertexXY:s,vertexZ:n,vertexM:a,partCount:i,partOffsets:o,partFlags:l,segmentFlags:h,segmentIndices:u,segmentParams:g,segmentCountArc:m,segmentCountBezier:f}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=e,this.spatialReference=t,this.vertexCount=r,this.vertexXY=s,this.vertexZ=n,this.vertexM=a,this.partCount=i,this.partOffsets=o,this.partFlags=l,this.segmentFlags=h,this.segmentIndices=u,this.segmentParams=g,this.segmentCountArc=m,this.segmentCountBezier=f}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){let{segmentCount:e,segmentCountArc:t,segmentCountBezier:r}=this;return e&&e-t-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return this.segmentCountArc+this.segmentCountBezier>0}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function e(e){return e?64+e.byteLength:0}return e(this.vertexXY)+e(this.vertexZ)+e(this.vertexM)+e(this.partOffsets)+e(this.partFlags)+e(this.segmentFlags)+e(this.segmentIndices)+e(this.segmentParams)}clone(){let{type:e,vertexCount:t,partCount:r,hasZ:s,hasM:n,segmentCountArc:a,segmentCountBezier:i}=this,o=A(e,t,r,s,n,this.hasCurves(),a,i);o.spatialReference=this.spatialReference;let{vertexXY:l,vertexZ:h,vertexM:u}=this;if(o.vertexXY.set(l.subarray(0,2*t),0),o.vertexZ?.set(h.subarray(0,t),0),o.vertexM?.set(u.subarray(0,t),0),this.isMultipart()){let{partOffsets:e,partFlags:t}=this;o.partFlags.set(t.subarray(0,r+1)),o.partOffsets.set(e.subarray(0,r+1))}if(this.hasCurves()){let{segmentFlags:e,segmentIndices:r,segmentParams:s,segmentParamCount:n}=this;o.segmentFlags.set(e.subarray(0,t),0),o.segmentIndices.set(r.subarray(0,t),0),o.segmentParams.set(s.subarray(0,n),0)}return o}equals(e){return this.equalsWithinTolerance(e,0)}equalsWithinTolerance(e,t){if(null==e)return!1;if(this===e)return!0;if(!(0,o.aI)(this.spatialReference,e.spatialReference)||this.vertexCount!==e.vertexCount||this.partCount!==e.partCount||this.hasZ!==e.hasZ||this.hasM!==e.hasM||this.hasCurves()!==e.hasCurves()||this.segmentCountArc!==e.segmentCountArc||this.segmentCountBezier!==e.segmentCountBezier)return!1;let r=0===t?(e,t)=>e!==t||isNaN(e)!==isNaN(t):(e,r)=>Math.abs(e-r)>t||isNaN(e)!==isNaN(r);for(let t=0;t<this.vertexCount;++t)if(r(this.vertexXY[2*t],e.vertexXY[2*t])||r(this.vertexXY[2*t+1],e.vertexXY[2*t+1]))return!1;if(this.hasZ)for(let t=0;t<this.vertexCount;++t)if(r(this.vertexZ[t],e.vertexZ[t]))return!1;if(this.hasM)for(let t=0;t<this.vertexCount;++t)if(r(this.vertexM[t],e.vertexM[t]))return!1;for(let t=0;t<this.partCount;++t)if(this.partFlags[t]!==e.partFlags[t]||this.partOffsets[t]!==e.partOffsets[t])return!1;if(this.hasCurves()){for(let t=0;t<this.vertexCount;++t)if(this.segmentFlags[t]!==e.segmentFlags[t]||this.segmentIndices[t]!==e.segmentIndices[t])return!1;for(let t=0;t<this.segmentParamCount;++t)if(r(this.segmentParams[t],e.segmentParams[t]))return!1}return!0}get parts(){return this.isMultipart()?new c(this):[][Symbol.iterator]()}}class c{constructor(e){this.geometry=e,this.value=new d(e)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class d{constructor(e){this.geometry=e,this.index=-1,this._readVertex=Z(e),this._segments=new v(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){let e=this.geometry.partOffsets;return e[this.index+1]-e[this.index]}}class v{constructor(e){this._part=e,this._partStart=0,this._partEnd=0,this.value=new y(e.geometry)}get _partIsClosed(){return!!(1&this._part.geometry.partFlags?.[this._part.index])}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;let e=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=e&&this._partIsClosed?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){let{index:e}=this._part,t=this._part.geometry.partOffsets;this._partStart=t[e],this._partEnd=t[e+1]-(this._partIsClosed?1:2),this.value.indexOfStartVertex=this._partStart-1}}class y{constructor(e){this.geometry=e,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=Z(e)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){let e=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===e)return this.end;let t=this.geometry.segmentParams,r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===e){let e=t[r++],s=t[r++],n=t[r++],a=t[r++];return{b:[this.end,[e,s],[n,a]]}}let s=t[r++],n=t[r++],a=t[r++],i=t[r++],o=t[r++],l=t[r++];r++,r++;let h=t[r++],u=t[r++];if(!(4&s)&&1===a)return{c:[this.end,[h,u]]};let g=2&s?0:1,m=1&s?0:1;return{a:[this.end,[o,l],g,m,i,n,a]}}}function C(e,t){let r={stack:[],error:void 0,hasError:!1};try{return t??=(0,a.Ie)(),(0,s.mS)(r,new P(e,["vertexZ","vertexM","spatialReference"]),!1),(0,a.bx)(t,function(e){let t,{vertexCount:r,vertexXY:n,vertexZ:i,vertexM:o}=e,l=R(e);if(e.hasCurves()){let r={stack:[],error:void 0,hasError:!1};try{(0,s.mS)(r,new P(e,["vertexZ","vertexM"]),!1);let n=(0,a.Ie)();for(let t of e.parts){let e=t.startVertex;for(let{curve:r}of t.segments)(0,u.e)(n,e,r),e=(0,g.yP)(r)}let[i,o,h,m]=n;t={xmin:i,ymin:o,xmax:h,ymax:m,spatialReference:l}}catch(e){r.error=e,r.hasError=!0}finally{(0,s.hk)(r)}}else{let e,s,a,i;e=s=1/0,a=i=-1/0;for(let t=0;t<r;++t){let r=n[2*t],o=n[2*t+1];e=Math.min(e,r),a=Math.max(a,r),s=Math.min(s,o),i=Math.max(i,o)}t={xmin:e,ymin:s,xmax:a,ymax:i,spatialReference:l}}if(i){let e=1/0,r=-1/0;for(let t of i)e=Math.min(e,t),r=Math.max(r,t);t.zmin=e,t.zmax=r}if(o){let e=1/0,r=-1/0;for(let t of o)e=Math.min(e,t),r=Math.max(r,t);t.mmin=e,t.mmax=r}return t}(e)),t}catch(e){r.error=e,r.hasError=!0}finally{(0,s.hk)(r)}}function M(e){let t,r,s;if((0,i.fT)(e)){s="point";let{x:n,y:a,z:i,m:o}=e,l=[n,a];null!=i&&l.push(i),null!=o&&l.push(o),r=[[l]],t=1}else(0,i.U9)(e)?(s="multipoint",r=[e.points],t=e.points.length):(0,i.Rg)(e)?(s="polyline",r=e.curvePaths??e.paths,t=r.reduce((e,t)=>e+t.length,0)):(s="polygon",r=e.curveRings??e.rings,t=r.reduce((e,t)=>(0===t.length||(e+=t.length,I(t[0],(0,g.yP)(t.at(-1)))&&--e),e),0));let n=A(s,t,s.includes("point")?0:r.length,(0,i.Pv)(e),(0,i.W0)(e),(0,g.Ed)(e)),{hasZ:a,hasM:o,vertexXY:l,vertexZ:h,vertexM:u}=n;function m(e){l[2*x]=e[0],l[2*x+1]=e[1],a&&(h[x]=e[2]),o&&(u[x]=e[f]),++x}n.spatialReference=e.spatialReference??void 0;let f=n.hasZ?3:2,x=0;if(!n.isMultipart()){if(!a&&!o){for(let[e,t]of r[0])l[2*x]=e,l[2*x+1]=t,++x;return n}for(let e of r[0])m(e);return n}let p="polygon"===s,{partOffsets:c}=n,d=0;if(!(0,g.Ed)(e)){for(let e of r){if(c[d++]=x,0===e.length)continue;let t=e.length;if(p&&I(e[0],e.at(-1))&&--t,a||o)for(let r=0;r<t;++r)m(e[r]);else for(let r=0;r<t;++r){let[t,s]=e[r];l[2*x]=t,l[2*x+1]=s,++x}}return c[d]=x,n}function v(e){let t=y+e;if(t<=(n.segmentParams?.length??0))return;let r=t*k;r=20*Math.ceil(r/20);let s=n.segmentParams;n.segmentParams=new Float64Array(r),null!=s&&n.segmentParams.set(s)}let y=0;for(let e of r){if(n.partOffsets[d++]=x,0===e.length)continue;let t=e[0],r=t;for(let t=1;t<e.length;++t){let s=e[t];m(r);let a=x-1;(0,g.wY)(s)?(v(10),++n.segmentCountArc,y=Y(r,s,n,a,y),r=s.a[0]):(0,g.DA)(s)?(v(10),++n.segmentCountArc,y=b(r,s,n,a,y),r=s.a[0]):(0,g.aO)(s)?(v(10),++n.segmentCountArc,y=V(r,s,n,a,y),r=s.c[0]):(0,g.n1)(s)?(v(4),++n.segmentCountBezier,y=X(0,s,n,a,y),r=s.b[0]):r=s}p&&I(t,r)||m(r)}return n.partOffsets[d]=x,n}function E(e){let t=Z(e),{vertexCount:r,partCount:s,hasZ:n,hasM:a}=e,i=R(e),o=0;if(!e.isMultipart()){if("point"===e.type){let[t,r]=e.vertexXY;return{x:t,y:r,z:e.vertexZ?.[0],m:e.vertexM?.[0],spatialReference:i}}let s=[];for(;o<r;)s.push(t(o++));return{points:s,spatialReference:i,hasZ:n,hasM:a}}if(!e.hasCurves()){let r=[];for(let n=0;n<s;++n){let s=!!(1&e.partFlags[n]),a=e.partOffsets[n+1],i=[];for(;o<a;)i.push(t(o++));s&&i.length>0&&i.push([...i[0]]),r.push(i)}return"polygon"===e.type?{rings:r,hasZ:n,hasM:a,spatialReference:i}:{paths:r,hasZ:n,hasM:a,spatialReference:i}}let l=[];for(let{segments:t,startVertex:r}of e.parts){let e=[r];for(let{curve:r}of t)e.push(r);l.push(e)}return"polygon"===e.type?{rings:[],curveRings:l,hasZ:n,hasM:a,spatialReference:i}:{paths:[],curvePaths:l,hasZ:n,hasM:a,spatialReference:i}}function _(e,{lengths:t,coords:r,hasZ:s,hasM:n},a){let i=e.includes("point")?0:t.length,o="polygon"===e,l="point"===e?1:t.reduce((e,t)=>e+t,0)-(o?i:0);s??=!1,n??=!1;let h=A(e,l,i,s,n,!1,0,0);if(h.spatialReference=a??void 0,!h.isMultipart()){for(let e=0,t=0;e<l;++e)h.vertexXY[2*e]=r[t++],h.vertexXY[2*e+1]=r[t++],s&&(h.vertexZ[e]=r[t++]),n&&(h.vertexM[e]=r[t++]);return h}let u=2+Number(s)+Number(n),g=0,m=0;h.partOffsets[0]=0;for(let e of t){let t=h.partOffsets[m],a=t+e-Number(o);h.partOffsets[++m]=a;for(let e=t;e<a;++e)h.vertexXY[2*e]=r[g++],h.vertexXY[2*e+1]=r[g++],s&&(h.vertexZ[e]=r[g++]),n&&(h.vertexM[e]=r[g++]);o&&(g+=u)}return h}function O({type:e,vertexCount:t,vertexXY:r,vertexZ:s,vertexM:n,partCount:a,partOffsets:i,partFlags:o,hasZ:l,hasM:h}){let u=new x.A([],[],l,h);a=Math.max(a,1);let g=0;for(let e=0;e<a;++e){let a=i?.[e+1]??t,m=u.coords.length;for(let e=g;e<a;++e)u.coords.push(r[2*e],r[2*e+1]),l&&u.coords.push(s[e]),h&&u.coords.push(n[e]);if(o&&1&o[e]){let e=g;u.coords.push(r[2*e],r[2*e+1]),l&&u.coords.push(s[e]),h&&u.coords.push(n[e])}u.lengths.push((u.coords.length-m)/u.stride),g=a}return"point"===e&&(u.lengths.length=0),u}function S(...e){let t=new Set;for(let r of e){if(!r)continue;let e=[r.vertexXY,r.vertexZ,r.vertexM,r.partOffsets,r.partFlags,r.segmentFlags,r.segmentIndices,r.segmentParams];for(let r of e){let e=r?.buffer;e&&t.add(e)}}return Array.from(t)}function F(e,t){return"getSpatialReference"in e&&(t=function(e){if(null==e)return;let t=e.getText()||void 0,r=e.isCustomWkid()?0:e.getOldID();if(r<=0)return{wkt:t};let s=e.getLatestID();(s<=0||s===r)&&(s=void 0);let n=e.getVCS();if(null==n)return{wkid:r,latestWkid:s,wkt:t};let a=n.isCustomWkid()?0:n.getOldID();if(a<=0)return{wkt:t};let i=e.getLatestVerticalID();return(i<=0||i===a)&&(i=void 0),{wkid:r,wkt:t,latestWkid:s,vcsWkid:a,latestVcsWkid:i}}(e.getSpatialReference()),e=e.getGeometry()),new p({...e.toFlatGeometry(),spatialReference:t})}class P{constructor(e,t){this.target=e,this.keys=t,this.oldValues=t.map(t=>e[t]);for(let r of t)e[r]=void 0}[Symbol.dispose](){this.keys.map((e,t)=>{this.target[e]=this.oldValues[t]})}}function R({spatialReference:e}){return e instanceof n.A?e.toJSON():e}function Z({vertexXY:e,vertexZ:t,vertexM:r}){return t?r?s=>[e[2*s],e[2*s+1],t[s],r[s]]:r=>[e[2*r],e[2*r+1],t[r]]:r?t=>[e[2*t],e[2*t+1],r[t]]:t=>[e[2*t],e[2*t+1]]}function I(e,t){return e.every((e,r)=>e===t[r])}function A(e,t,r,s,n,a,i,o){i??=0,o??=0;let l=new p({type:e,vertexCount:t,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:i,segmentCountBezier:o}),h=2*Float64Array.BYTES_PER_ELEMENT*t;s&&(h+=Float64Array.BYTES_PER_ELEMENT*t),n&&(h+=Float64Array.BYTES_PER_ELEMENT*t),l.isMultipart()&&(h+=(r+1)*Int32Array.BYTES_PER_ELEMENT,h+=(r+1)*Int8Array.BYTES_PER_ELEMENT),a&&(h+=t*Int8Array.BYTES_PER_ELEMENT,h+=t*Int32Array.BYTES_PER_ELEMENT,h+=l.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);let u=new ArrayBuffer(h),g=0;return l.vertexXY=new Float64Array(u,g,2*t),g+=l.vertexXY.byteLength,s&&(l.vertexZ=new Float64Array(u,g,t),g+=l.vertexZ.byteLength),n&&(l.vertexM=new Float64Array(u,g,t),g+=l.vertexM.byteLength),a&&(l.segmentParams=new Float64Array(u,g,l.segmentParamCount),g+=l.segmentParams.byteLength,l.segmentIndices=new Int32Array(u,g,t),l.segmentIndices.fill(N),g+=l.segmentIndices.byteLength),l.isMultipart()&&(l.partOffsets=new Int32Array(u,g,r+1),g+=l.partOffsets.byteLength,l.partFlags=new Int8Array(u,g,r+1),g+=l.partFlags.byteLength,"polygon"===l.type&&l.partFlags.subarray(0,r).fill(1)),a&&(l.segmentFlags=new Int8Array(u,g,t),l.segmentFlags.fill(1),g+=l.segmentFlags.byteLength),l}function Y(e,t,{segmentFlags:r,segmentIndices:s,segmentParams:n},a,i){r[a]=4,s[a]=i;let[o,[l,h],u,g,m,x,p]=t.a,c=4;g||(c|=1),u||(c|=2);let d=(0,f.SW)(e,t),[v,y]=(0,f.Uk)(d,.5);return n[i++]=c,n[i++]=x,n[i++]=p,n[i++]=m,n[i++]=l,n[i++]=h,n[i++]=d.u2-d.u1,n[i++]=d.u1,n[i++]=v,n[i++]=y,i}function b(e,t,{segmentFlags:r,segmentIndices:s,segmentParams:n},a,i){r[a]=4,s[a]=i;let o=(0,m.io)(e,t);return w(o,4,...(0,l.mq)(o,.5),n,i)}function V(e,t,{segmentFlags:r,segmentIndices:s,segmentParams:n},a,i){return r[a]=4,s[a]=i,w((0,h.pM)(e,t),0,...t.c[1],n,i)}function w(e,t,r,s,n,a){let{cx:i,cy:o,thetaStart:l,thetaEnd:h,radius:u}=e;return l>h||(t|=1),Math.abs(h-l)<=Math.PI||(t|=2),n[a++]=t,n[a++]=u,n[a++]=1,n[a++]=0,n[a++]=i,n[a++]=o,n[a++]=h-l,n[a++]=l,n[a++]=r,n[a++]=s,a}function X(e,{b:[t,[r,s],[n,a]]},{segmentFlags:i,segmentIndices:o,segmentParams:l},h,u){return i[h]=2,o[h]=u,l[u++]=r,l[u++]=s,l[u++]=n,l[u++]=a,u}const k=1.61803,N=-1},5764(e,t,r){r.d(t,{fz:()=>a,g7:()=>n});const s=new(r(39117).x);function n(e,t,r){return s.execute(e,t,r,null)}function a(){return s.supportsCurves()}},29127(e,t,r){r.d(t,{containsExecute:()=>a});var s=r(5764),n=(r(85036),r(83299));function a(e,t){let r=(0,n.fromGeometry)(e);return(0,s.g7)(r.getGeometry(),(0,n.fromGeometryToGXGeometry)(t),r.getSpatialReference())}},85036(e,t,r){r.d(t,{Q:()=>a});var s=r(51447),n=r(53966);function a(e,t,r){(0,s.io)(n.A.getLogger(`esri.geometry.operators.${e}`),`${t} is deprecated. Refactor using @arcgis/codemod or manually replace usages with ${r} instead.`,{replacement:r,warnOnce:!0})}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9616],{32198(t,e,n){function r(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var u=t.length-1;u>=0;u--)(i=t[u])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function i(t,e,n){if(null!=e){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object expected.");var r,i;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=e[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=e[Symbol.dispose],n&&(i=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");i&&(r=function(){try{i.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:e,dispose:r,async:n})}else n&&t.stack.push({async:!0});return e}n.d(e,{Cg:()=>r,hk:()=>a,mS:()=>i}),Object.create,Object.create;var o="function"==typeof SuppressedError?SuppressedError:function(t,e,n){var r=new Error(n);return r.name="SuppressedError",r.error=t,r.suppressed=e,r};function a(t){function e(e){t.error=t.hasError?new o(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}var n,r=0;return function i(){for(;n=t.stack.pop();)try{if(!n.async&&1===r)return r=0,t.stack.push(n),Promise.resolve().then(i);if(n.dispose){var o=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(o).then(i,function(t){return e(t),i()})}else r|=1}catch(t){e(t)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}},69052(t,e,n){n.d(e,{hr:()=>i});var r=n(34727);class i{constructor(t,e){this.min=t,this.max=e,this.range=e-t}normalize(t,e=0,n=!1){return o(this.range,this.min,this.max,t,e,n)}clamp(t,e=0){return(0,r.qE)(t-e,this.min,this.max)+e}monotonic(t,e,n){return t<e?e:e+a(this.range,t-e,n)}minimalMonotonic(t,e,n){return o(this.range,t,t+this.range,e,n)}center(t,e,n){return e=this.monotonic(t,e,n),this.normalize((t+e)/2,n)}diff(t,e,n){return this.monotonic(t,e,n)-t}shortestSignedDiff(t,e){t=this.normalize(t);let n=(e=this.normalize(e))-t,r=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(n)<Math.abs(r)?n:r}contains(t,e,n){return e=this.minimalMonotonic(t,e),(n=this.minimalMonotonic(t,n))>t&&n<e}}function o(t,e,n,r,i=0,o=!1){return(r-=i)<e?r+=a(t,e-r):r>n&&(r-=a(t,r-n)),o&&r===n&&(r=e),r+i}function a(t,e,n=0){return Math.ceil((e-n)/t)*t+n}const u=new i(0,2*Math.PI),l=(new i(-Math.PI,Math.PI),new i(0,360));n.d(e,["ie",0,l,"uC",0,u])},34727(t,e,n){n.d(e,{$8:()=>E,Cc:()=>u,Hx:()=>M,Io:()=>v,KJ:()=>h,OS:()=>D,Sp:()=>m,XM:()=>f,YN:()=>c,ZH:()=>p,b6:()=>S,cU:()=>i,gg:()=>d,hs:()=>l,kU:()=>s,mP:()=>a,or:()=>P,pF:()=>A,qE:()=>o});const r=new Float32Array(1);function i(t){--t;for(let e=1;e<32;e<<=1)t|=t>>e;return t+1}function o(t,e,n){return Math.min(Math.max(t,e),n)}function a(t,e){return 0===e?0:Math.ceil(t/e)*e}function u(t,e,n){return t+(e-t)*n}function l(t,e,n,r,i){return u(r,i,(t-e)/(n-e))}function s(t){return t*Math.PI/180}function h(t){return 180*t/Math.PI}function f(t){return Math.acos(o(t,-1,1))}function c(t){return Math.asin(o(t,-1,1))}function m(t,e,n=1e-6){return t===e||!(!Number.isFinite(t)||!Number.isFinite(e))&&(t>e?t-e:e-t)<=n}function d(t,e,n=1e-6){return!m(t,e,n)&&t>e}function p(t,e,n=1e-6){return!m(t,e,n)&&t<e}function M(t,e,n=1e-6){return m(t,e,n)||t>e}const g=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));function y(t){return g.setFloat64(0,t),g.getBigInt64(0)}const w=1000000n,x=b(1);function b(t){let e=y(t=Math.abs(t)),n=function(t){return g.setBigInt64(0,t),g.getFloat64(0)}(e<=w?w:e-w);return Math.abs(t-n)}function v(t,e,n=x){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;if(null!=n&&b(Math.min(Math.abs(t),Math.abs(e)))<n)return Math.abs(t-e)<=n;let r=y(t),i=y(e);return!(r<0!=i<0||(r<i?i-r:r-i)>w)}function S(t,e,n=1e-6){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;let r=Math.abs(t-e),i=Math.abs(t),o=Math.abs(e);if(0===t||0===e||i<1e-12&&o<1e-12){if(r>.01*n)return!1}else if(r/(i+o)>n)return!1;return!0}function E(t){return F(Math.max(-k,Math.min(t,k)))}function F(t){return r[0]=t,r[0]}function P(t){let e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],n=t[3]*t[3]+t[4]*t[4]+t[5]*t[5],r=t[6]*t[6]+t[7]*t[7]+t[8]*t[8];return!(m(e,1)&&m(n,1)&&m(r,1))}function D(t,e){return(t%e+e)%e}const k=F(34028234663852886e22);function A(t,e,n){if(void 0===n||0==+n)return Math[t](e);if(e=+e,n=+n,isNaN(e)||"number"!=typeof n||n%1!=0)return NaN;let r=e.toString().split("e");return r=(e=Math[t](+(r[0]+"e"+(r[1]?+r[1]-n:-n)))).toString().split("e"),+(r[0]+"e"+(r[1]?+r[1]+n:n))}n.d(e,["pq",0,k])},19419(t,e,n){n.d(e,{$9:()=>S,C:()=>o,DC:()=>d,HY:()=>v,IO:()=>f,Ie:()=>F,Rj:()=>b,Uc:()=>x,VL:()=>p,VY:()=>u,Wc:()=>g,aI:()=>D,bx:()=>c,fA:()=>a,fT:()=>m,gR:()=>E,gX:()=>y,ib:()=>w,nw:()=>h,pJ:()=>k,tK:()=>s,uJ:()=>M,vt:()=>i,w1:()=>l}),n(34727);var r=n(5443);function i(t=j){return[t[0],t[1],t[2],t[3]]}function o(t,e){return t!==e&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3]),t}function a(t,e,n,r,o=i()){return o[0]=t,o[1]=e,o[2]=n,o[3]=r,o}function u(t,e=i()){return e[0]=t.xmin,e[1]=t.ymin,e[2]=t.xmax,e[3]=t.ymax,e}function l(t,e,n=new r.A){return n.xmin=t[0],n.ymin=t[1],n.xmax=t[2],n.ymax=t[3],n.spatialReference=e,n}function s(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])}function h(t,e){e<t[0]&&(t[0]=e),e>t[2]&&(t[2]=e)}function f(t,e){e<t[1]&&(t[1]=e),e>t[3]&&(t[3]=e)}function c(t,{xmin:e,ymin:n,xmax:r,ymax:i}){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],n),t[2]=Math.max(t[2],r),t[3]=Math.max(t[3],i)}function m(t,e,n){if(null!=e)if("length"in e)P(e)?(n[0]=Math.min(t[0],e[0]),n[1]=Math.min(t[1],e[1]),n[2]=Math.max(t[2],e[2]),n[3]=Math.max(t[3],e[3])):(2===e.length||3===e.length)&&(n[0]=Math.min(t[0],e[0]),n[1]=Math.min(t[1],e[1]),n[2]=Math.max(t[2],e[0]),n[3]=Math.max(t[3],e[1]));else switch(e.type){case"extent":n[0]=Math.min(t[0],e.xmin),n[1]=Math.min(t[1],e.ymin),n[2]=Math.max(t[2],e.xmax),n[3]=Math.max(t[3],e.ymax);break;case"point":n[0]=Math.min(t[0],e.x),n[1]=Math.min(t[1],e.y),n[2]=Math.max(t[2],e.x),n[3]=Math.max(t[3],e.y)}else o(n,t)}function d(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[2]),t[3]=Math.max(t[3],e[3])}function p(t){return null==t||t[0]>=t[2]?0:t[2]-t[0]}function M(t){return null==t||t[1]>=t[3]?0:t[3]-t[1]}function g(t){return p(t)*M(t)}function y(t,e=[0,0]){return e[0]=(t[0]+t[2])/2,e[1]=(t[1]+t[3])/2,e}function w(t){let e=p(t),n=M(t);return Math.sqrt(e*e+n*n)}function x(t,e){return b(t,e[0],e[1])}function b(t,e,n){return e>=t[0]&&n>=t[1]&&e<=t[2]&&n<=t[3]}function v(t,e){return Math.max(e[0],t[0])<=Math.min(e[2],t[2])&&Math.max(e[1],t[1])<=Math.min(e[3],t[3])}function S(t,e,n){return Math.max(e[0],t[0])-n<=Math.min(e[2],t[2])&&Math.max(e[1],t[1])-n<=Math.min(e[3],t[3])}function E(t,e){return e[0]>=t[0]&&e[2]<=t[2]&&e[1]>=t[1]&&e[3]<=t[3]}function F(t){return t?o(t,A):i(A)}function P(t){return null!=t&&4===t.length}function D(t,e){return P(t)&&P(e)?t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]:null==t&&null==e||t===e}function k(t,e){if(4!==e.length||t[0]===t[2]||t[1]===t[3])return!1;for(let n=0;n<e.length;n++){let r=e[n],i=e[(n+1)%e.length];if(r[0]!==t[0]&&r[0]!==t[2]||r[1]!==t[1]&&r[1]!==t[3])return!1;let o=r[1]===i[1]&&r[0]!==i[0],a=r[0]===i[0]&&r[1]!==i[1];if(!o&&!a)return!1}return!0}const A=[1/0,1/0,-1/0,-1/0],j=[0,0,0,0];n.d(e,["qv",0,A])},49616(t,e,n){n.r(e),n.d(e,{default:()=>h});var r=n(32198),i=n(91429),o=n(19419),a=n(69052);n(21325);var u=n(97441);function l(t,e,n){let[r,i]=n.modelSize,l=null,s=new Map;e.forEach(e=>{s.set(e.lij,(0,u.DE)(t,e))});let h=(t,e,n)=>(0,o.Rj)(t.extent,e,n);return(u,f)=>{let c=Math.round(u),m=Math.round(f);if(!t.wrapAround&&(c<0||c>=r||m<0||m>=i))return[0,0];let[d,p]=function(t,e,n,r){let{extent:i,modelSize:u,valid:l}=t,[s,h,f]=i,c=function(t,e,n){if(null!=n&&t>e){let[r,i]=n;return i-t+(e-r)}return e-t}(s,f,l),m=e/u[0]*c+s;return null!=l&&r&&(m=new a.hr(l[0],l[1]).normalize(m)),[m,(u[1]-n)/u[1]*(0,o.uJ)(i)+h]}(n,u,f,!0);if(!function(t,e,n){let{extent:r,valid:i}=t,[o,a,u,l]=r;return!(n<a||n>l)&&(null!=i&&o>u?e>=u||e<=o:e>=o&&e<=u)}(n,d,p))return[0,0];if(null==l||!h(l,d,p)){l=null;for(let[t,n]of e)if(h(n,d,p)){l=n;break}}if(null==l?.data)return[0,0];let M=s.get(l.lij);if(null==M)return[0,0];let{width:g,height:y,extent:w}=l;return M((d-w[0])/(0,o.VL)(w)*g,y-(p-w[1])/(0,o.uJ)(w)*y)}}let s=class{constructor(){this._tileData=new Map}async generateStreamlines(t){let{flowData:e,flowExtentInfo:n,needsMagnitude:r,simulationSettings:i,startPositions:o}=t,a=f((0,u.DE)(i,e),i,n.modelSize,r,o);return{result:{streamlines:a},transferList:a?.map(t=>t.vertices.buffer)}}async generateTiledStreamlines(t){let{flowDataTiles:e,flowExtentInfo:n,needsMagnitude:r,reset:i,simulationSettings:o,startPositions:a}=t;this._updateTileData(e,i);let u=f(l(o,this._tileData,n),o,n.modelSize,r,a);return{result:{streamlines:u},transferList:u?.map(t=>t.vertices.buffer)??[]}}_updateTileData(t,e){if(e)for(let e of this._tileData.keys())t.has(e)||this._tileData.delete(e);t.forEach((t,e)=>{"delete"===t.type?this._tileData.delete(e):"on-worker"!==t.type&&"invalid"!==t.type&&this._tileData.set(e,t.data)})}};s=(0,r.Cg)([(0,i.$K)("esri.views.3d.support.flow.FlowWorker")],s);const h=s;function f(t,e,n,r,i){if(null==t)return;let o=(0,u.S1)(e,t,n[0],n[1],{positions:i}),a=[],l=function(t){return t?4:3}(r);for(let{vertices:t,stage:e}of o){let n=new Float32Array(t.length*l);for(let e=0;e<t.length;e++)n[e*l]=t[e].x,n[e*l+1]=t[e].y,n[e*l+2]=t[e].time,r&&(n[e*l+3]=t[e].speed);a.push({vertices:n,stage:e,hasMagnitude:r})}return a}},97441(t,e,n){n.d(e,{DE:()=>l,S1:()=>a,dF:()=>u}),n(44208),n(53966);var r=n(34727),i=n(87811),o=n(78659);function a(t,e,n,r,o){if(t.density<=0)return[];let{positions:a}=o,u=[],l=new i.A,f=1/Math.max(t.lineCollisionWidth,1),c=Math.round(n*f),m=Math.round(r*f),d=new Int32Array(c*m);for(let t=0;t<d.length;t++)d[t]=-1;let p={raster:d,width:c,height:m,resolutionFactor:f},M={},g=t.lineSpacing/Math.sqrt(t.density),y=Math.floor(r/g),w=Math.floor(n/g);for(let t=0;t<y;t++){let e=t*g;for(let n=0;n<w;n++){let r=n*g;M[`${n}-${t}`]={x:r,y:e,positions:[]}}}for(let{x:t,y:e}of a){let n=M[`${Math.floor(t/g)}-${Math.floor(e/g)}`];n&&n.positions.push([t,e])}let x=[];for(let t in M){let e=M[t];if(0===e.positions.length)x.push({x:e.x+g/2,y:e.y+g/2,sort:.66+.33*l.getFloat(),stage:0});else{let[t]=e.positions.splice(0,1);x.push({x:t[0],y:t[1],sort:.33*l.getFloat(),stage:1});for(let[t,n]of e.positions)x.push({x:t,y:n,sort:.33+.33*l.getFloat(),stage:2})}}x.sort((t,e)=>t.sort-e.sort);for(let{x:i,y:o,stage:a}of x){if(u.length>=t.maxNumberOfStreamlines)break;let f=t.onlyForwardTracing?s(1,t,e,i,o,[n,r],u.length,p):h(t,e,i,o,[n,r],u.length,l,p);f.length<2||u.push({stage:a,vertices:f})}return u}function u(t){for(let e=0;e<t.mask.length;e++)0===t.mask[e]&&(t.data[2*e]=0,t.data[2*e+1]=0)}function l(t,e){let n=function(t,e,n,r){if(0===r)return t;let i=Math.round(3*r),o=Array(2*i+1),a=0;for(let t=-i;t<=i;t++){let e=Math.exp(-t*t/(r*r));o[t+i]=e,a+=e}for(let t=-i;t<=i;t++)o[t+i]/=a;let u=new Float32Array(t.length);for(let r=0;r<n;r++)for(let n=0;n<e;n++){let a=0,l=0;for(let u=-i;u<=i;u++){if(n+u<0||n+u>=e)continue;let s=o[u+i];a+=s*t[2*(r*e+(n+u))],l+=s*t[2*(r*e+(n+u))+1]}u[2*(r*e+n)]=a,u[2*(r*e+n)+1]=l}let l=new Float32Array(t.length);for(let t=0;t<e;t++)for(let r=0;r<n;r++){let a=0,s=0;for(let l=-i;l<=i;l++){if(r+l<0||r+l>=n)continue;let h=o[l+i];a+=h*u[2*((r+l)*e+t)],s+=h*u[2*((r+l)*e+t)+1]}l[2*(r*e+t)]=a,l[2*(r*e+t)+1]=s}return l}(e.data,e.width,e.height,t.smoothing);return t.interpolate?(t,r)=>{let i=Math.floor(t),o=Math.floor(r);if(i<0||i>=e.width||o<0||o>=e.height)return[0,0];let a=t-i,u=r-o,l=i,s=o,h=i<e.width-1?i+1:i,f=o<e.height-1?o+1:o,c=n[2*(s*e.width+l)],m=n[2*(s*e.width+h)],d=n[2*(f*e.width+l)],p=n[2*(f*e.width+h)],M=n[2*(s*e.width+l)+1],g=n[2*(s*e.width+h)+1];return[(c*(1-u)+d*u)*(1-a)+(m*(1-u)+p*u)*a,(M*(1-u)+n[2*(f*e.width+l)+1]*u)*(1-a)+(g*(1-u)+n[2*(f*e.width+h)+1]*u)*a]}:(t,r)=>{let i=Math.round(t),o=Math.round(r);return i<0||i>=e.width||o<0||o>=e.height?[0,0]:[n[2*(o*e.width+i)],n[2*(o*e.width+i)+1]]}}function s(t,e,n,i,a,u,l,s){let h=[],{raster:f,width:c,height:m,resolutionFactor:d}=s,p=i,M=a,g=(0,o.Kp)(0),[y,w]=n(p,M);y*=e.velocityScale,w*=e.velocityScale;let x,b,v=Math.sqrt(y*y+w*w);h.push({x:p,y:M,time:g,speed:v});for(let i=0;i<e.verticesPerLine;i++){let[i,a]=n(p,M);i*=e.velocityScale,a*=e.velocityScale;let s=Math.sqrt(i*i+a*a);if(s<e.minSpeedThreshold)return h;let y=t*i/s,w=t*a/s;p+=y*e.segmentLength,M+=w*e.segmentLength,e.wrapAround&&(p=(0,r.OS)(p,u[0]));let v=t*e.segmentLength/s;if(g=(0,o.Kp)(g+v),Math.acos(y*x+w*b)>e.maxTurnAngle)return h;if(e.collisions){let t=Math.round(p*d),n=Math.round(M*d);if(e.wrapAround&&(t=(0,r.OS)(t,c)),t<0||t>c-1||n<0||n>m-1)return h;let i=f[n*c+t];if(-1!==i&&i!==l)return h;f[n*c+t]=l}h.push({x:p,y:M,time:g,speed:s}),x=y,b=w}return h}function h(t,e,n,r,i,o,a,u){let l=Math.round((.2+.6*a.getFloat())*t.verticesPerLine),h=t.verticesPerLine-l,f=s(-1,{...t,verticesPerLine:h},e,n,r,i,o,u),c=s(1,{...t,verticesPerLine:l},e,n,r,i,o,u),m=f.reverse();return m.splice(-1,1),m.concat(c)}n(5443),n(21325)}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7235],{32198(t,e,n){function r(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var u=t.length-1;u>=0;u--)(i=t[u])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function i(t,e,n){if(null!=e){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object expected.");var r,i;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=e[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=e[Symbol.dispose],n&&(i=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");i&&(r=function(){try{i.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:e,dispose:r,async:n})}else n&&t.stack.push({async:!0});return e}n.d(e,{Cg:()=>r,hk:()=>a,mS:()=>i}),Object.create,Object.create;var o="function"==typeof SuppressedError?SuppressedError:function(t,e,n){var r=new Error(n);return r.name="SuppressedError",r.error=t,r.suppressed=e,r};function a(t){function e(e){t.error=t.hasError?new o(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}var n,r=0;return function i(){for(;n=t.stack.pop();)try{if(!n.async&&1===r)return r=0,t.stack.push(n),Promise.resolve().then(i);if(n.dispose){var o=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(o).then(i,function(t){return e(t),i()})}else r|=1}catch(t){e(t)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}},69052(t,e,n){n.d(e,{hr:()=>i});var r=n(34727);class i{constructor(t,e){this.min=t,this.max=e,this.range=e-t}normalize(t,e=0,n=!1){return o(this.range,this.min,this.max,t,e,n)}clamp(t,e=0){return(0,r.qE)(t-e,this.min,this.max)+e}monotonic(t,e,n){return t<e?e:e+a(this.range,t-e,n)}minimalMonotonic(t,e,n){return o(this.range,t,t+this.range,e,n)}center(t,e,n){return e=this.monotonic(t,e,n),this.normalize((t+e)/2,n)}diff(t,e,n){return this.monotonic(t,e,n)-t}shortestSignedDiff(t,e){t=this.normalize(t);let n=(e=this.normalize(e))-t,r=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(n)<Math.abs(r)?n:r}contains(t,e,n){return e=this.minimalMonotonic(t,e),(n=this.minimalMonotonic(t,n))>t&&n<e}}function o(t,e,n,r,i=0,o=!1){return(r-=i)<e?r+=a(t,e-r):r>n&&(r-=a(t,r-n)),o&&r===n&&(r=e),r+i}function a(t,e,n=0){return Math.ceil((e-n)/t)*t+n}const u=new i(0,2*Math.PI),l=(new i(-Math.PI,Math.PI),new i(0,360));n.d(e,["ie",0,l,"uC",0,u])},34727(t,e,n){n.d(e,{$8:()=>E,Cc:()=>u,Hx:()=>M,Io:()=>v,KJ:()=>h,OS:()=>D,Sp:()=>m,XM:()=>f,YN:()=>c,ZH:()=>p,b6:()=>S,cU:()=>i,gg:()=>d,hs:()=>l,kU:()=>s,mP:()=>a,or:()=>P,pF:()=>A,qE:()=>o});const r=new Float32Array(1);function i(t){--t;for(let e=1;e<32;e<<=1)t|=t>>e;return t+1}function o(t,e,n){return Math.min(Math.max(t,e),n)}function a(t,e){return 0===e?0:Math.ceil(t/e)*e}function u(t,e,n){return t+(e-t)*n}function l(t,e,n,r,i){return u(r,i,(t-e)/(n-e))}function s(t){return t*Math.PI/180}function h(t){return 180*t/Math.PI}function f(t){return Math.acos(o(t,-1,1))}function c(t){return Math.asin(o(t,-1,1))}function m(t,e,n=1e-6){return t===e||!(!Number.isFinite(t)||!Number.isFinite(e))&&(t>e?t-e:e-t)<=n}function d(t,e,n=1e-6){return!m(t,e,n)&&t>e}function p(t,e,n=1e-6){return!m(t,e,n)&&t<e}function M(t,e,n=1e-6){return m(t,e,n)||t>e}const g=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));function y(t){return g.setFloat64(0,t),g.getBigInt64(0)}const w=1000000n,x=b(1);function b(t){let e=y(t=Math.abs(t)),n=function(t){return g.setBigInt64(0,t),g.getFloat64(0)}(e<=w?w:e-w);return Math.abs(t-n)}function v(t,e,n=x){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;if(null!=n&&b(Math.min(Math.abs(t),Math.abs(e)))<n)return Math.abs(t-e)<=n;let r=y(t),i=y(e);return!(r<0!=i<0||(r<i?i-r:r-i)>w)}function S(t,e,n=1e-6){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;let r=Math.abs(t-e),i=Math.abs(t),o=Math.abs(e);if(0===t||0===e||i<1e-12&&o<1e-12){if(r>.01*n)return!1}else if(r/(i+o)>n)return!1;return!0}function E(t){return F(Math.max(-k,Math.min(t,k)))}function F(t){return r[0]=t,r[0]}function P(t){let e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],n=t[3]*t[3]+t[4]*t[4]+t[5]*t[5],r=t[6]*t[6]+t[7]*t[7]+t[8]*t[8];return!(m(e,1)&&m(n,1)&&m(r,1))}function D(t,e){return(t%e+e)%e}const k=F(34028234663852886e22);function A(t,e,n){if(void 0===n||0==+n)return Math[t](e);if(e=+e,n=+n,isNaN(e)||"number"!=typeof n||n%1!=0)return NaN;let r=e.toString().split("e");return r=(e=Math[t](+(r[0]+"e"+(r[1]?+r[1]-n:-n)))).toString().split("e"),+(r[0]+"e"+(r[1]?+r[1]+n:n))}n.d(e,["pq",0,k])},19419(t,e,n){n.d(e,{$9:()=>S,C:()=>o,DC:()=>d,HY:()=>v,IO:()=>f,Ie:()=>F,Rj:()=>b,Uc:()=>x,VL:()=>p,VY:()=>u,Wc:()=>g,aI:()=>D,bx:()=>c,fA:()=>a,fT:()=>m,gR:()=>E,gX:()=>y,ib:()=>w,nw:()=>h,pJ:()=>k,tK:()=>s,uJ:()=>M,vt:()=>i,w1:()=>l}),n(34727);var r=n(5443);function i(t=j){return[t[0],t[1],t[2],t[3]]}function o(t,e){return t!==e&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3]),t}function a(t,e,n,r,o=i()){return o[0]=t,o[1]=e,o[2]=n,o[3]=r,o}function u(t,e=i()){return e[0]=t.xmin,e[1]=t.ymin,e[2]=t.xmax,e[3]=t.ymax,e}function l(t,e,n=new r.A){return n.xmin=t[0],n.ymin=t[1],n.xmax=t[2],n.ymax=t[3],n.spatialReference=e,n}function s(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])}function h(t,e){e<t[0]&&(t[0]=e),e>t[2]&&(t[2]=e)}function f(t,e){e<t[1]&&(t[1]=e),e>t[3]&&(t[3]=e)}function c(t,{xmin:e,ymin:n,xmax:r,ymax:i}){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],n),t[2]=Math.max(t[2],r),t[3]=Math.max(t[3],i)}function m(t,e,n){if(null!=e)if("length"in e)P(e)?(n[0]=Math.min(t[0],e[0]),n[1]=Math.min(t[1],e[1]),n[2]=Math.max(t[2],e[2]),n[3]=Math.max(t[3],e[3])):(2===e.length||3===e.length)&&(n[0]=Math.min(t[0],e[0]),n[1]=Math.min(t[1],e[1]),n[2]=Math.max(t[2],e[0]),n[3]=Math.max(t[3],e[1]));else switch(e.type){case"extent":n[0]=Math.min(t[0],e.xmin),n[1]=Math.min(t[1],e.ymin),n[2]=Math.max(t[2],e.xmax),n[3]=Math.max(t[3],e.ymax);break;case"point":n[0]=Math.min(t[0],e.x),n[1]=Math.min(t[1],e.y),n[2]=Math.max(t[2],e.x),n[3]=Math.max(t[3],e.y)}else o(n,t)}function d(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[2]),t[3]=Math.max(t[3],e[3])}function p(t){return null==t||t[0]>=t[2]?0:t[2]-t[0]}function M(t){return null==t||t[1]>=t[3]?0:t[3]-t[1]}function g(t){return p(t)*M(t)}function y(t,e=[0,0]){return e[0]=(t[0]+t[2])/2,e[1]=(t[1]+t[3])/2,e}function w(t){let e=p(t),n=M(t);return Math.sqrt(e*e+n*n)}function x(t,e){return b(t,e[0],e[1])}function b(t,e,n){return e>=t[0]&&n>=t[1]&&e<=t[2]&&n<=t[3]}function v(t,e){return Math.max(e[0],t[0])<=Math.min(e[2],t[2])&&Math.max(e[1],t[1])<=Math.min(e[3],t[3])}function S(t,e,n){return Math.max(e[0],t[0])-n<=Math.min(e[2],t[2])&&Math.max(e[1],t[1])-n<=Math.min(e[3],t[3])}function E(t,e){return e[0]>=t[0]&&e[2]<=t[2]&&e[1]>=t[1]&&e[3]<=t[3]}function F(t){return t?o(t,A):i(A)}function P(t){return null!=t&&4===t.length}function D(t,e){return P(t)&&P(e)?t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]:null==t&&null==e||t===e}function k(t,e){if(4!==e.length||t[0]===t[2]||t[1]===t[3])return!1;for(let n=0;n<e.length;n++){let r=e[n],i=e[(n+1)%e.length];if(r[0]!==t[0]&&r[0]!==t[2]||r[1]!==t[1]&&r[1]!==t[3])return!1;let o=r[1]===i[1]&&r[0]!==i[0],a=r[0]===i[0]&&r[1]!==i[1];if(!o&&!a)return!1}return!0}const A=[1/0,1/0,-1/0,-1/0],j=[0,0,0,0];n.d(e,["qv",0,A])},49616(t,e,n){n.r(e),n.d(e,{default:()=>h});var r=n(32198),i=n(91429),o=n(19419),a=n(69052);n(21325);var u=n(97441);function l(t,e,n){let[r,i]=n.modelSize,l=null,s=new Map;e.forEach(e=>{s.set(e.lij,(0,u.DE)(t,e))});let h=(t,e,n)=>(0,o.Rj)(t.extent,e,n);return(u,f)=>{let c=Math.round(u),m=Math.round(f);if(!t.wrapAround&&(c<0||c>=r||m<0||m>=i))return[0,0];let[d,p]=function(t,e,n,r){let{extent:i,modelSize:u,valid:l}=t,[s,h,f]=i,c=function(t,e,n){if(null!=n&&t>e){let[r,i]=n;return i-t+(e-r)}return e-t}(s,f,l),m=e/u[0]*c+s;return null!=l&&r&&(m=new a.hr(l[0],l[1]).normalize(m)),[m,(u[1]-n)/u[1]*(0,o.uJ)(i)+h]}(n,u,f,!0);if(!function(t,e,n){let{extent:r,valid:i}=t,[o,a,u,l]=r;return!(n<a||n>l)&&(null!=i&&o>u?e>=u||e<=o:e>=o&&e<=u)}(n,d,p))return[0,0];if(null==l||!h(l,d,p)){l=null;for(let[t,n]of e)if(h(n,d,p)){l=n;break}}if(null==l?.data)return[0,0];let M=s.get(l.lij);if(null==M)return[0,0];let{width:g,height:y,extent:w}=l;return M((d-w[0])/(0,o.VL)(w)*g,y-(p-w[1])/(0,o.uJ)(w)*y)}}let s=class{constructor(){this._tileData=new Map}async generateStreamlines(t){let{flowData:e,flowExtentInfo:n,needsMagnitude:r,simulationSettings:i,startPositions:o}=t,a=f((0,u.DE)(i,e),i,n.modelSize,r,o);return{result:{streamlines:a},transferList:a?.map(t=>t.vertices.buffer)}}async generateTiledStreamlines(t){let{flowDataTiles:e,flowExtentInfo:n,needsMagnitude:r,reset:i,simulationSettings:o,startPositions:a}=t;this._updateTileData(e,i);let u=f(l(o,this._tileData,n),o,n.modelSize,r,a);return{result:{streamlines:u},transferList:u?.map(t=>t.vertices.buffer)??[]}}_updateTileData(t,e){if(e)for(let e of this._tileData.keys())t.has(e)||this._tileData.delete(e);t.forEach((t,e)=>{"delete"===t.type?this._tileData.delete(e):"on-worker"!==t.type&&"invalid"!==t.type&&this._tileData.set(e,t.data)})}};s=(0,r.Cg)([(0,i.$K)("esri.views.3d.support.flow.FlowWorker")],s);const h=s;function f(t,e,n,r,i){if(null==t)return;let o=(0,u.S1)(e,t,n[0],n[1],{positions:i}),a=[],l=function(t){return t?4:3}(r);for(let{vertices:t,stage:e}of o){let n=new Float32Array(t.length*l);for(let e=0;e<t.length;e++)n[e*l]=t[e].x,n[e*l+1]=t[e].y,n[e*l+2]=t[e].time,r&&(n[e*l+3]=t[e].speed);a.push({vertices:n,stage:e,hasMagnitude:r})}return a}},97441(t,e,n){n.d(e,{DE:()=>l,S1:()=>a,dF:()=>u}),n(44208),n(53966);var r=n(34727),i=n(87811),o=n(78659);function a(t,e,n,r,o){if(t.density<=0)return[];let{positions:a}=o,u=[],l=new i.A,f=1/Math.max(t.lineCollisionWidth,1),c=Math.round(n*f),m=Math.round(r*f),d=new Int32Array(c*m);for(let t=0;t<d.length;t++)d[t]=-1;let p={raster:d,width:c,height:m,resolutionFactor:f},M={},g=t.lineSpacing/Math.sqrt(t.density),y=Math.floor(r/g),w=Math.floor(n/g);for(let t=0;t<y;t++){let e=t*g;for(let n=0;n<w;n++){let r=n*g;M[`${n}-${t}`]={x:r,y:e,positions:[]}}}for(let{x:t,y:e}of a){let n=M[`${Math.floor(t/g)}-${Math.floor(e/g)}`];n&&n.positions.push([t,e])}let x=[];for(let t in M){let e=M[t];if(0===e.positions.length)x.push({x:e.x+g/2,y:e.y+g/2,sort:.66+.33*l.getFloat(),stage:0});else{let[t]=e.positions.splice(0,1);x.push({x:t[0],y:t[1],sort:.33*l.getFloat(),stage:1});for(let[t,n]of e.positions)x.push({x:t,y:n,sort:.33+.33*l.getFloat(),stage:2})}}x.sort((t,e)=>t.sort-e.sort);for(let{x:i,y:o,stage:a}of x){if(u.length>=t.maxNumberOfStreamlines)break;let f=t.onlyForwardTracing?s(1,t,e,i,o,[n,r],u.length,p):h(t,e,i,o,[n,r],u.length,l,p);f.length<2||u.push({stage:a,vertices:f})}return u}function u(t){for(let e=0;e<t.mask.length;e++)0===t.mask[e]&&(t.data[2*e]=0,t.data[2*e+1]=0)}function l(t,e){let n=function(t,e,n,r){if(0===r)return t;let i=Math.round(3*r),o=Array(2*i+1),a=0;for(let t=-i;t<=i;t++){let e=Math.exp(-t*t/(r*r));o[t+i]=e,a+=e}for(let t=-i;t<=i;t++)o[t+i]/=a;let u=new Float32Array(t.length);for(let r=0;r<n;r++)for(let n=0;n<e;n++){let a=0,l=0;for(let u=-i;u<=i;u++){if(n+u<0||n+u>=e)continue;let s=o[u+i];a+=s*t[2*(r*e+(n+u))],l+=s*t[2*(r*e+(n+u))+1]}u[2*(r*e+n)]=a,u[2*(r*e+n)+1]=l}let l=new Float32Array(t.length);for(let t=0;t<e;t++)for(let r=0;r<n;r++){let a=0,s=0;for(let l=-i;l<=i;l++){if(r+l<0||r+l>=n)continue;let h=o[l+i];a+=h*u[2*((r+l)*e+t)],s+=h*u[2*((r+l)*e+t)+1]}l[2*(r*e+t)]=a,l[2*(r*e+t)+1]=s}return l}(e.data,e.width,e.height,t.smoothing);return t.interpolate?(t,r)=>{let i=Math.floor(t),o=Math.floor(r);if(i<0||i>=e.width||o<0||o>=e.height)return[0,0];let a=t-i,u=r-o,l=i,s=o,h=i<e.width-1?i+1:i,f=o<e.height-1?o+1:o,c=n[2*(s*e.width+l)],m=n[2*(s*e.width+h)],d=n[2*(f*e.width+l)],p=n[2*(f*e.width+h)],M=n[2*(s*e.width+l)+1],g=n[2*(s*e.width+h)+1];return[(c*(1-u)+d*u)*(1-a)+(m*(1-u)+p*u)*a,(M*(1-u)+n[2*(f*e.width+l)+1]*u)*(1-a)+(g*(1-u)+n[2*(f*e.width+h)+1]*u)*a]}:(t,r)=>{let i=Math.round(t),o=Math.round(r);return i<0||i>=e.width||o<0||o>=e.height?[0,0]:[n[2*(o*e.width+i)],n[2*(o*e.width+i)+1]]}}function s(t,e,n,i,a,u,l,s){let h=[],{raster:f,width:c,height:m,resolutionFactor:d}=s,p=i,M=a,g=(0,o.Kp)(0),[y,w]=n(p,M);y*=e.velocityScale,w*=e.velocityScale;let x,b,v=Math.sqrt(y*y+w*w);h.push({x:p,y:M,time:g,speed:v});for(let i=0;i<e.verticesPerLine;i++){let[i,a]=n(p,M);i*=e.velocityScale,a*=e.velocityScale;let s=Math.sqrt(i*i+a*a);if(s<e.minSpeedThreshold)return h;let y=t*i/s,w=t*a/s;p+=y*e.segmentLength,M+=w*e.segmentLength,e.wrapAround&&(p=(0,r.OS)(p,u[0]));let v=t*e.segmentLength/s;if(g=(0,o.Kp)(g+v),Math.acos(y*x+w*b)>e.maxTurnAngle)return h;if(e.collisions){let t=Math.round(p*d),n=Math.round(M*d);if(e.wrapAround&&(t=(0,r.OS)(t,c)),t<0||t>c-1||n<0||n>m-1)return h;let i=f[n*c+t];if(-1!==i&&i!==l)return h;f[n*c+t]=l}h.push({x:p,y:M,time:g,speed:s}),x=y,b=w}return h}function h(t,e,n,r,i,o,a,u){let l=Math.round((.2+.6*a.getFloat())*t.verticesPerLine),h=t.verticesPerLine-l,f=s(-1,{...t,verticesPerLine:h},e,n,r,i,o,u),c=s(1,{...t,verticesPerLine:l},e,n,r,i,o,u),m=f.reverse();return m.splice(-1,1),m.concat(c)}n(5443),n(21325)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[521],{20521(e,t,i){i.r(t),i.d(t,{default:()=>Ae});var n=i(32198),r=i(40124),a=i(69540),s=i(49186),o=i(25728),l=i(17676),u=i(36708),p=i(91429),d=i(41910),m=i(60950),c=i(89808),g=i(99959);const f=Symbol("isWCSGraphicOrigin");var h;class v extends g.A{get[(h=f,m.ym)](){return this.layer}get[c.Q](){return this.layer}get[d.e7](){return this.layer}constructor(e){super(),this[h]=!0,this.type="wcs",this.layer=e}get id(){return this.layer.id}}var y=i(4146),b=i(63074),w=i(69208),x=i(34287),C=i(8303),I=i(72545),S=i(54310),D=i(25036),A=i(82935),T=i(82806),L=i(53966),M=i(5443),V=i(38458),N=i(56507),R=i(330);function P(e){return e.endsWith("?")?e.slice(0,-1):e}function $(e){return e.filter(({coverageSubType:e})=>null==e||""===e||/^rectified(grid|dataset)/i.test(e))}function E(e){let t={};for(let i=0;i<e.childNodes.length;i++){let n=e.childNodes[i];if(1!==n.nodeType)continue;let r=(0,R.vv)(n).toLowerCase();switch(r){case"title":case"abstract":t[r]=(0,R.mX)(n);break;case"identifier":t.id=(0,R.mX)(n);break;case"wgs84boundingbox":{let e=(0,R.pN)(n,"LowerCorner"),i=(0,R.pN)(n,"UpperCorner");t.lonLatEnvelope=new M.A({xmin:e[0],ymin:e[1],xmax:i[0],ymax:i[1],spatialReference:{wkid:4326}})}break;case"coveragesummary":t.coverageSummaries=t.coverageSummaries||[],t.coverageSummaries.push(E(n))}}return t}function O(e,t){if(e.coverageSummaries)for(let i=0;i<e.coverageSummaries.length;i++)e.coverageSummaries[i].abstract=e.coverageSummaries[i].abstract||e.abstract,e.coverageSummaries[i].lonLatEnvelope=e.coverageSummaries[i].lonLatEnvelope||e.lonLatEnvelope,e.coverageSummaries[i].title=e.coverageSummaries[i].title||e.title,O(e.coverageSummaries[i],t);null!=e.id&&t.push(e)}function X(e){let t=(0,R.V6)(e.querySelector("Operation[name=GetCapabilities]"),"Get")?.getAttribute("xlink:href")||"",i=(0,R.V6)(e.querySelector("Operation[name=DescribeCoverage]"),"Get")?.getAttribute("xlink:href")||"",n=(0,R.V6)(e.querySelector("Operation[name=GetCoverage]"),"Get")?.getAttribute("xlink:href")||"";return{getCapabilities:P(t),describeCoverage:P(i),getCoverage:P(n)}}function k(e,t=null){let i=null;i="string"==typeof e?(new DOMParser).parseFromString(e,"text/xml"):e;let n=i.documentElement.getAttribute("version");"1.0"===n?n="1.0.0":"1.1"===n&&(n="1.1.0");let r,a=n||t||"1.0.0",o=a.slice(0,3);if("2.0"===o)r=function(e){let t=(0,R.V6)(e,"ServiceIdentification"),i=(0,R.mX)(t,"Title"),n=(0,R.Dy)(t,"ServiceTypeVersion"),r=(0,R.Dy)(t,"Profile"),a=X((0,R.V6)(e,"OperationsMetadata")),s=(0,R.IC)(e,"Contents/CoverageSummary"),o=[];for(let e=0;e<s.length;e++){let t,i=s[e],n=(0,R.mX)(i,"CoverageId"),r=(0,R.V6)(i,"WGS84BoundingBox");if(r){let e=(0,R.pN)(r,"LowerCorner"),i=(0,R.pN)(r,"UpperCorner");t=new M.A({xmin:e[0],ymin:e[1],xmax:i[0],ymax:i[1],spatialReference:{wkid:4326}})}let a=(0,R.mX)(i,"CoverageSubtype")||"RectifiedGridCoverage";o.push({id:n,lonLatEnvelope:t,coverageSubType:a})}let l=(0,R.V6)(e,"ServiceMetadata");return{name:i,supportedVersions:n,supportedFormats:(0,R.Dy)(l,"formatSupported"),supportedInterpolations:(0,R.Dy)(l,"interpolationSupported").concat((0,R.Dy)(l,"InterpolationSupported")),onlineResources:a,profiles:r,coverages:o,gridCoverages:$(o),version:"2.0.1"}}(i);else if("1.1"===o)r=function(e){let t=(0,R.mX)(e,"ServiceIdentification/Title"),i=(0,R.Dy)(e,"ServiceIdentification/ServiceTypeVersion"),n=X((0,R.V6)(e,"OperationsMetadata")),r=[],a=(0,R.V6)(e,"Contents");for(let e=0;e<a.childNodes.length;e++){let t=a.childNodes[e];1===t.nodeType&&(0,R.g7)(t,"CoverageSummary")&&O(E(t),r)}let s=(0,R.Dy)(a,"SupportedFormat");return{name:t,onlineResources:n,coverages:r,gridCoverages:$(r),supportedVersions:i,supportedFormats:s,version:"1.1.0"}}(i);else{if("1.0"!==o)throw new s.A("wcsraster:parsecapabilities","the capabilities version is not supported");r=function(e){let t=(0,R.mX)(e,"Service/name"),i=(0,R.V6)(e,"Capability"),n=(0,R.V6)(i,"GetCapabilities/Get/OnlineResource")?.getAttribute("xlink:href")??"",r=(0,R.V6)(i,"DescribeCoverage/Get/OnlineResource")?.getAttribute("xlink:href")??"",a=(0,R.V6)(i,"GetCoverage/Get/OnlineResource")?.getAttribute("xlink:href")??"",s={getCapabilities:P(n),describeCoverage:P(r),getCoverage:P(a)},o=(0,R.IC)(e,"CoverageOfferingBrief"),l=[];for(let e=0;e<o.length;e++){let t=o[e],i=(0,R.mX)(t,"name"),n=(0,R.IC)(t,"pos"),r=(0,R.pN)(n[0]),a=(0,R.pN)(n[1]),s=new M.A({xmin:r[0],ymin:r[1],xmax:a[0],ymax:a[1],spatialReference:{wkid:4326}});l.push({id:i,lonLatEnvelope:s})}return{name:t,onlineResources:s,coverages:l,gridCoverages:$(l),supportedVersions:["1.0.0"],version:"1.0.0"}}(i)}return r.version=a,r}var F=i(39829),G=i(4366),W=i(87186);function _(e){e.variables.forEach(e=>e.dimensions.forEach(e=>e.values??=(0,G.Xg)(e)))}function j(e){return{requestResponseCRSs:(0,R.Dy)(e,"requestResponseCRSs").map(e=>e.split(":")[1]),nativeCRSs:(0,R.Dy)(e,"nativeCRSs").map(e=>e.split(":")[1])}}function B(e,t){let i=(0,R.Dy)(e,"1.0.0"===t?"interpolationMethod":"InterpolationMethod"),n="1.0.0"===t?e.getAttribute("default"):(0,R.mX)(e,"InterpolationMethods/Default");return null==n?i:[n].concat(i.filter(e=>e.toLowerCase()!==n.toLowerCase()))}function Z(e){return null==e?["nearest"]:e.map(e=>{let t=e.toLowerCase();return t.includes("nearest")?"nearest":t.includes("linear")?"bilinear":t.includes("cubic")?"cubic":null}).filter(e=>!!e)}function q(e){let t=(0,R.IC)(e,"pos"),i=(0,R.pN)(t[0]),n=(0,R.pN)(t[1]);return new M.A({xmin:i[0],ymin:i[1],xmax:n[0],ymax:n[1],spatialReference:{wkid:4326}})}function U(e,t){let i=(0,R.Dy)(e,t);return i?.length&&""!==i[0]&&!isNaN(Number(i[0]))?i.map(e=>Number(e)):null}function z(e){let t=(0,R.pN)(e,"MinimumValue"),i=(0,R.pN)(e,"MaximumValue");return t.length&&i.length?t.map((e,t)=>({min:e,max:i[t],avg:-1,stddev:-1})):null}function H(e){return null==e?null:e.every(t=>t===e[0])?e[0]:e}function Y(e){let t=[],i=(0,R.IC)(e,"RangeSet"),n=[];for(let e=0;e<i.length;e++){let r=(0,R.mX)(i[e],"name"),a=(0,R.mX)(i[e],"label"),s=[],o=U(i[e],"nullValues/singleValue"),l=(0,R.IC)(i[e],"AxisDescription");for(let e=0;e<l.length;e++){let t=(0,R.mX)(l[e],"name"),i=(0,R.mX)(l[e],"label"),r=(0,R.Dy)(l[e],"singleValue");if(0===r.length){let t=(0,R.mX)(l[e],"min"),i=(0,R.mX)(l[e],"max"),n=Number((0,R.mX)(l[e],"res"))||1;if(null!==t&&null!==i)for(let e=parseInt(t,10);e<=parseInt(i,10);e+=n)r.push(e.toString())}"band"===t.toLowerCase()&&(n=r),s.push({name:t,label:i,values:r})}t.push({name:r,label:a,nullValues:o,axis:s})}return{rangeSet:t,bandNames:n}}function K(e=null){if(!e)return{resolution:null,units:null};let t,i,n,r=e.toUpperCase(),a=["Years","Months","Days","Hours","Minutes","Seconds"];return r.includes("PT")?(r=r.slice(2),n=["H","M","S"].findIndex(e=>r.includes(e)),t=a[3+n],i=parseFloat(r.slice(0,-1))):(r=r.slice(1),n=["Y","M","D"].findIndex(e=>r.includes(e)),n>-1&&(t=a[n]),i=parseFloat(r.slice(0,-1))),{resolution:i,units:t}}function Q(e){let t=(0,R.IC)(e,"timeposition");if(t.length>0){let e=[];for(let i=0;i<t.length;i++)e.push(new Date((0,R.mX)(t[i])));return{begin:e[0],end:e[e.length-1],values:e}}let i=(0,R.V6)(e,"timePeriod")||(0,R.V6)(e,"TimePeriod");return i?{begin:new Date((0,R.mX)(i,"beginPosition")||(0,R.mX)(i,"BeginPosition")),end:new Date((0,R.mX)(i,"endPosition")||(0,R.mX)(i,"EndPosition")),...K((0,R.mX)(i,"timeResolution")||(0,R.mX)(i,"TimeResolution"))}:null}function J(e){let t=(0,R.V6)(e,"spatialDomain"),i=(0,R.V6)(t,"Envelope")||(0,R.V6)(t,"EnvelopeWithTimePeriod"),n=i.getAttribute("srsName").split(":"),r=n[n.length-1],a=(0,R.IC)(i,"pos"),s=(0,R.pN)(a[0]),o=(0,R.pN)(a[1]),l=parseInt(r,10),u=isNaN(l)?null:{wkid:l},p=new M.A({xmin:s[0],ymin:s[1],xmax:o[0],ymax:o[1],spatialReference:u}),d=(0,R.V6)(t,"RectifiedGrid"),m=(0,R.mX)(d,"low").split(" "),c=(0,R.mX)(d,"high").split(" "),g=parseInt(c[0],10)-parseInt(m[0],10)+1,f=parseInt(c[1],10)-parseInt(m[1],10)+1,h=(0,R.pN)(t,"origin/pos"),v=(0,R.IC)(t,"offsetVector"),y={envelope:p,columns:g,rows:f,offset:{x:parseFloat((0,R.mX)(v[0]).split(" ")[0]),y:parseFloat((0,R.mX)(v[1]).split(" ")[1])},origin:{x:h[0],y:h[1]}},b=(0,R.V6)(e,"temporalDomain")||(0,R.V6)(e,"TemporalDomain");return{spatialDomain:y,temporalDomain:b?Q(b):null}}function ee(e,t){let i,n=[],r=(0,R.IC)(e,"Field"),a=[];for(let e=0;e<r.length;e++){let s=(0,R.mX)(r[e],"Identifier"),o=(0,R.mX)(r[e],"Description"),l=(0,R.mX)(r[e],"Definition"),u=(0,R.mX)(r[e],"Abstract"),p=(0,R.mX)(r[e],"Title"),d=U(r[e],"NullValue"),m=(0,R.V6)(r[e],"AllowedValues"),c=m?z(m):null,g=B(r[e],"1.1.0"),f=[],h=(0,R.IC)(r[e],"Axis");for(let e=0;e<h.length;e++){let n=h[e].getAttribute("identifier"),r=(0,R.mX)(h[e],"UOM"),s=(0,R.mX)(h[e],"DataType"),o=(0,R.Dy)(h[e],"Key");(!t||n.toLowerCase().includes("band"))&&(a=o,i=d),f.push({identifier:n,uom:r,dataType:s,values:o,bandNoDataValues:i})}n.push({identifier:s,description:o,definition:l,abstract:u,title:p,supportedInterpolations:g,axis:f,nullValues:d,statistics:c})}return{rangeSet:n,bandNames:a,bandNoDataValues:i,statistics:n[0].statistics}}function te(e){let t,i,n,r,a=(0,R.V6)(e,"SpatialDomain"),s=(0,R.V6)(a,"GridCRS"),o=(0,R.mX)(s,"GridBaseCRS"),l=(0,R.mX)(s,"GridOrigin")?.split(" ").map(e=>parseFloat(e))??[0,0],u=(0,R.pN)(s,"GridOffsets"),p=(0,R.IC)(a,"BoundingBox");for(let e=0;e<p.length;e++){let a=p[e].getAttribute("crs")?.toLowerCase();if(null!=a)if(a.includes("imagecrs")){let n=(0,R.pN)(p[e],"LowerCorner"),r=(0,R.pN)(p[e],"UpperCorner");t=r[0]-n[0]+1,i=r[1]-n[1]+1}else if(a.indexOf("epsg")>0){let t=a.split(":");n=parseInt(t[t.length-1],10);let i=(0,R.pN)(p[e],"LowerCorner"),s=(0,R.pN)(p[e],"UpperCorner");r=new M.A({xmin:i[0],ymin:i[1],xmax:s[0],ymax:s[1],spatialReference:{wkid:n}})}}let d=t>i,m=r.xmax-r.xmin>r.ymax-r.ymin,c=!1;(0,V.m)(n)&&(d===m?c=!1:(c=!0,r=new M.A({xmin:r.ymin,ymin:r.xmin,xmax:r.ymax,ymax:r.xmax,spatialReference:{wkid:n}})));let g={columns:t,rows:i,origin:{x:l[0],y:l[1]},offset:{x:u[0],y:u[u.length-1]},gridBaseCRS:o,envelope:r,useEPSGAxis:c},f=(0,R.V6)(e,"temporalDomain")||(0,R.V6)(e,"TemporalDomain");return{spatialDomain:g,temporalDomain:f?Q(f):null}}function ie(e){let t,i=(0,R.V6)(e,"Envelope")||(0,R.V6)(e,"EnvelopeWithTimePeriod"),n=i.getAttribute("srsName"),r=n.slice(n.lastIndexOf("/")+1),a=i.getAttribute("axisLabels").split(" ").map(e=>e.trim()).filter(e=>""!==e.trim()),s=(0,R.pN)(i,"lowerCorner"),o=(0,R.pN)(i,"upperCorner"),l=!["y","lat","latitude","north","nor","n","b"].includes(a[0].toLowerCase()),u=parseInt(r,10),p=isNaN(u)?null:{wkid:u};t=l?new M.A({xmin:s[0],ymin:s[1],xmax:o[0],ymax:o[1],spatialReference:p}):new M.A({xmin:s[1],ymin:s[0],xmax:o[1],ymax:o[0],spatialReference:p});let d,m,c={mins:s,maxs:o},g=i.getAttribute("uomLabels").trim().split(" ");if((0,R.g7)(i,"EnvelopeWithTimePeriod")){d=new Date((0,R.mX)(e,"beginPosition")||(0,R.mX)(e,"BeginPosition")),m=new Date((0,R.mX)(e,"endPosition")||(0,R.mX)(e,"EndPosition"));let t=g?.findIndex(e=>"oledatetime"===e?.toLowerCase());t>-1&&(g[t]="ISO8601")}return{envelope:t,axisLabels:a,uomLabels:g.length?g:null,envelopeAllDims:c,beginPosition:d,endPosition:m,isEastFirst:l}}function ne(e,t){let i,n=[],r=(0,R.IC)(e,"DataRecord"),a=[],s=[];for(let e=0;e<r.length;e++){let o=(0,R.IC)(r[e],"field"),l=[];for(let e=0;e<o.length;e++){let n=o[e].getAttribute("name"),r=(0,R.mX)(o[e],"description")||"",u=(0,R.V6)(o[e],"uom")?.getAttribute("code")||"",p=(0,R.pN)(o[e],"interval"),d=U(o[e],"nilValue")?.[0];(!t||n.toLowerCase().includes("band"))&&(a.push(n),p?.length&&(i||=[],i.push({min:p[0],max:p[1],avg:-1,stddev:-1})),s.push(d)),l.push({name:n,description:r,uom:u,allowedValues:p,nilValue:d})}n.push(l)}return s.some(e=>null!=e)||(s=null),{rangeType:n,bandNames:a,bandStats:i,bandNoDataValues:s}}function re(e){let t=1,i="";return Math.abs(e-1/24)<1/24*.01?i="Hours":Math.abs(e-1)<.01?i="Days":e<1?(t=Math.round(24*e),i="Hours"):e>27.99&&e<31.01||Math.round(e/30)<12?i="Months":e>364.99&&e<366.01&&(i="Years"),{interval:t,intervalUnit:i}}function ae(e,t){let i=(0,R.V6)(e,"RectifiedGrid"),n=(0,R.pN)(i,"low"),r=(0,R.pN)(i,"high"),a=[];for(let e=0;e<n.length;e++)a.push(r[e]-n[e]+1);let s=(0,R.mX)(i,"axisLabels").split(" "),o=(0,R.pN)(i,"origin/pos"),l=(0,R.IC)(i,"offsetVector"),u=[];for(let e=0;e<l.length;e++){let t=(0,R.pN)(l[e]),i=t.findIndex(e=>0!==e);u[i]=t[i]}let p,d,m,c=!1;return t?.length&&s?.length&&(c=[...t].sort((e,t)=>e<t?-1:1).join(",")===[...s].sort((e,t)=>e<t?-1:1).join(",")),["y","lat","latitude","north","nor","n","b"].includes((c?s:t)[0].toLowerCase())?(p=a[1],d=a[0],m={y:Math.abs(u[0]),x:Math.abs(u[1])}):(p=a[0],d=a[1],m={x:Math.abs(u[0]),y:Math.abs(u[1])}),{columns:p,rows:d,origin:o,offset:u,resolution:m,gridSamples:a,axisLabels:s,hasSameAxisLabelsAsBoundedBy:c}}function se(e){let t=(0,R.V6)(e,"EarthObservation");if(!t)return null;let i=(0,R.V6)(t,"phenomenonTime"),n=i?Q(i):null,r=(0,R.V6)(t,"phenomenonTime"),a=r?Q(r):null,s=(0,R.mX)(t,"featureOfInterest/Footprint/multiExtentOf/MultiSurface/surfaceMembers/Polygon/exterior/LinearRing/posList"),o=null;if(s){let e=s.split(" ").map(e=>e.trim()).filter(e=>null!=e&&""!==e).map(Number);if(e.length){let t=[];for(let i=0;i<e.length/2;i+=2)t.push(e[i],e[i+1]);o=new F.A({rings:[[t]]})}}return{observation:{phenomenonTime:n,resultTime:a,footprint:o,identifier:(0,R.mX)(e,"metaDataProperty/EarthObservationMetaData/identifier"),acquisitionType:(0,R.mX)(e,"metaDataProperty/EarthObservationMetaData/acquisitionType"),status:(0,R.mX)(e,"metaDataProperty/EarthObservationMetaData/status")}}}async function oe(e,t){let{coverageIds:i,version:n,customParameters:r,signal:a}=t,o=n.slice(0,3),u={service:"WCS",request:"DescribeCoverage",version:n,["1.0"===o?"coverage":"1.1"===o?"identifiers":"coverageId"]:i.join(","),...r};try{let{data:t}=await(0,N.A)(e,{query:u,responseType:"xml",signal:a});return function(e,t){let i=null;if(i="string"==typeof e?(new DOMParser).parseFromString(e,"text/xml"):e,"1.0.0"===t)return(0,R.IC)(i,"CoverageOffering").map(e=>function(e){let t,i={version:"1.0"},n=[];for(let r=0;r<e.childNodes.length;r++){let a=e.childNodes[r];if(1===a.nodeType)if((0,R.g7)(a,"description"))i.description=(0,R.mX)(a);else if((0,R.g7)(a,"name"))i.name=(0,R.mX)(a);else if((0,R.g7)(a,"label"))i.label=(0,R.mX)(a);else if((0,R.g7)(a,"supportedFormats"))i.supportedFormats=(0,R.Dy)(a,"formats");else if((0,R.g7)(a,"supportedCRSs"))i.supportedCRSs=j(a);else if((0,R.g7)(a,"supportedInterpolations"))i.supportedInterpolations=B(a,"1.0.0");else if((0,R.g7)(a,"lonLatEnvelope"))i.lonLatEnvelope=q(a);else if((0,R.g7)(a,"rangeSet")){let e=Y(a);i.rangeSet=e.rangeSet,n=e.bandNames;let r=e.rangeSet[0].nullValues;r?.length&&(t=H(r))}else(0,R.g7)(a,"domainSet")&&(i.domainSet=J(a))}let r=Z(i.supportedInterpolations),{name:a,description:s,label:o,lonLatEnvelope:l,supportedFormats:u}=i,{spatialDomain:p}=i.domainSet,d={x:Math.abs(p.offset.x),y:Math.abs(p.offset.y)},m=function(e){if(!e.temporalDomain)return null;let{begin:t,end:i,values:n,units:r,resolution:a}=e.temporalDomain,s={variables:[{name:"default",description:"",dimensions:[{name:"StdTime",description:"",unit:"ISO8601",values:n?.map(e=>e.getTime()),hasRegularIntervals:!n,interval:a,intervalUnit:r,extent:[t.getTime(),i.getTime()]}]}]};return _(s),s}(i.domainSet),c=new W.A({width:p.columns,height:p.rows,pixelSize:d,pixelType:"unknown",extent:p.envelope,spatialReference:p.envelope.spatialReference,bandCount:n.length||1,noDataValue:t,multidimensionalInfo:m});return{id:a,title:i.name,description:s||o,lonLatEnvelope:l,rasterInfo:c,bandNames:n,supportedFormats:u,supportedInterpolations:r,coverageDescription:i,version:"1.0.0",useEPSGAxis:!1}}(e));let n=(0,R.IC)(i,"CoverageDescription");return"1.1.0"===t||"1.1.1"===t||"1.1.2"===t?n.map(e=>function(e,t){let i,n,r=[],a=[],s={supportedFormats:r,supportedCRSs:a,version:"1.1"},o=[];for(let t=0;t<e.childNodes.length;t++){let l=e.childNodes[t];if(1!==l.nodeType)continue;let u=(0,R.vv)(l).toLowerCase();switch(u){case"title":case"abstract":case"identifier":s[u]=(0,R.mX)(l);break;case"supportedformat":{let e=(0,R.mX)(l);r.includes(e)||r.push(e)}break;case"supportedcrs":{let e=(0,R.mX)(l);a.includes(e)||a.push(e)}break;case"range":{let e=ee(l,!!s.domain?.temporalDomain);s.range=e.rangeSet,o=e.bandNames;let{bandNoDataValues:t}=e;t?.length&&(i=H(t)),n=e.statistics}break;case"domain":s.domain=te(l)}}let l=Z(s.range[0].supportedInterpolations),{identifier:u,abstract:p,title:d,domain:m,range:c}=s,g={x:Math.abs(m.spatialDomain.offset.x),y:Math.abs(m.spatialDomain.offset.y)},f=function(e,t){if(!t.temporalDomain)return null;let i=e.filter(e=>!e.identifier.toLowerCase().includes("field_1")&&!e.axis.some(e=>e.identifier.includes("band"))),n=[];if(i.length&&i.forEach(e=>{let t=e.axis.map(e=>{let t=e.values.map(t=>"ISO8601"===e.uom?(t=t.trim()).toLowerCase().includes("z")?new Date(t).getTime():new Date(t+"Z").getTime():parseFloat(t.trim())),i=[Math.min.apply(null,t),Math.max.apply(null,t)];return{name:e.identifier.trim(),description:"",field:e.identifier.trim(),unit:e.uom?e.uom.trim():"",hasRegularIntervals:!1,values:t,extent:i}});n.push({name:e.identifier.trim(),description:e.description?.trim()??"",unit:"",dimensions:t,statistics:e.statistics})}),t.temporalDomain){let{begin:e,end:i,values:r,units:a,resolution:s}=t.temporalDomain;n.some(e=>e.dimensions.some(e=>"stdtime"===e.name.toLowerCase()))||n.forEach(t=>{t.dimensions.push({name:"StdTime",description:"",unit:"ISO8601",values:r?.map(e=>e.getTime()),hasRegularIntervals:!r,interval:s,intervalUnit:a,extent:[e.getTime(),i.getTime()]})})}if(n.length){let e={variables:n};return _(e),e}return null}(c,m);f&&(i=c[0].nullValues,1===i?.length&&(i=i[0]));let h=new W.A({width:m.spatialDomain.columns,height:m.spatialDomain.rows,pixelSize:g,pixelType:"unknown",extent:m.spatialDomain.envelope,spatialReference:m.spatialDomain.envelope.spatialReference,bandCount:o.length||1,noDataValue:i,statistics:n,multidimensionalInfo:f});return{id:u,title:s.title,description:p||d,bandNames:o,rasterInfo:h,supportedFormats:r,supportedInterpolations:l,coverageDescription:s,version:t,useEPSGAxis:m.spatialDomain.useEPSGAxis}}(e,t)):n.map(e=>function(e){let t,i,n={version:"2.0"},r=[];for(let a=0;a<e.childNodes.length;a++){let s=e.childNodes[a];if(1===s.nodeType)if((0,R.g7)(s,"coverageId"))n.coverageId=(0,R.mX)(s);else if((0,R.g7)(s,"ServiceParameters"))n.serviceParameters={supportedFormats:(0,R.Dy)(s,"nativeFormat")};else if((0,R.g7)(s,"boundedBy"))n.boundedBy=ie(s);else if((0,R.g7)(s,"rangeType")){let e=ne(s,n.boundedBy?.axisLabels.length>2||n.domainSet?.axisLabels.length>2);n.rangeType=e.rangeType,r=e.bandNames,t=e.bandStats;let{bandNoDataValues:a}=e;a?.length&&(i=H(a))}else if((0,R.g7)(s,"domainSet"))n.domainSet=ae(s,n.boundedBy?.axisLabels);else if((0,R.g7)(s,"metadata")){let e=(0,R.V6)(s,"EOMetadata");n.eoMetadata=e?se(e):null}}let{coverageId:a,boundedBy:s,domainSet:o,rangeType:l,serviceParameters:u}=n,p=function(e,t,i){if(i.axisLabels.length<=2)return null;let n=[];for(let t=0;t<e.length;t++){let i=e[t];for(let e=0;e<i.length;e++)i[e].name.toLowerCase().includes("band")||n.push(i[e])}let r=[];if(n.length){let e=[];for(let n=2;n<i.axisLabels.length;n++){let r,a,s=t.uomLabels?.[n]?.trim()??"",o=i.axisLabels[n].toLowerCase().includes("time")||"iso8601"===s.toLowerCase()||"oledatetime"===s.toLowerCase();if(o){let e=re(i.offset[n]);r=e.interval,a=e.intervalUnit}else r=i.offset[n],a=s;let l=[];o?(l.push((0,G.$E)(t.envelopeAllDims.mins[n])),l.push((0,G.$E)(t.envelopeAllDims.maxs[n]))):(l.push(t.envelopeAllDims.mins[n]),l.push(t.envelopeAllDims.maxs[n])),e.push({name:i.axisLabels[n].trim(),description:i.axisLabels[n].trim(),unit:o?"ISO8601":s,hasRegularIntervals:!0,extent:l,interval:r,intervalUnit:a})}if(n.forEach(t=>{let{allowedValues:i}=t,n=2===i?.length?[{min:i[0],max:i[1],avg:-1,stddev:-1}]:null;r.push({name:t.name.trim(),description:t.description?.trim()??"",unit:t.uom.trim(),statistics:n,dimensions:[...e]})}),r.length){let e={variables:r};return _(e),e}}return null}(l,s,o);return!t&&p&&(t=p?.variables[0].statistics),null!=p&&(i=l[0][0].nilValue),{id:a,title:a,description:a,bandNames:r,rasterInfo:new W.A({width:o.columns,height:o.rows,pixelSize:o.resolution,pixelType:"unknown",extent:s.envelope,spatialReference:s.envelope.spatialReference,bandCount:r.length||1,statistics:t,noDataValue:i,multidimensionalInfo:p}),supportedFormats:u.supportedFormats,coverageDescription:n,version:"2.0.1",useEPSGAxis:!1}}(e))}(t,n)}catch(e){throw(0,l.zf)(e)?e:new s.A("wcslayer:open","wcs coverage description is not valid or supported")}}var le=i(49859);function ue(e,t,i=0){let n="--"+t.boundary,r=[];for(let e=0;e<n.length;e++)r.push(n.charCodeAt(e));let a=[],s="\n--"+t.boundary+"--";for(let e=0;e<s.length;e++)a.push(s.charCodeAt(e));let o=[10],l=[13,10],u=[],p=r.length,d=new Uint8Array(e,i),m=d.length-p,c=0,g=0;for(let e=0;e<m;e++){for(g=0;g<p&&d[e+g]===r[g];g++);if(g!==p)continue;let i=!1;if(c){let n=pe(d.subarray(c,e),t);u.push(n),i=!!n.isValidImage}if(e+=p-1,d[e+1]===o[0]?e+=1:d[e+1]===l[0]&&d[e+2]===l[1]&&(e+=2),c=e+1,i)break}let f=a.length;for(let e=d.length-f-10;e<d.length-f;e++){for(g=0;g<f&&d[e+g]===a[g];g++);if(g===f){u.push(pe(d.subarray(c,e),t));break}}return u}function pe(e,t){let i=String.fromCharCode.apply(null,e.subarray(0,Math.min(300,e.length))).split("\n"),n=Math.min(i.length,7),r={contentDisposition:"inline"},a=0;for(let s=0;s<n;s++)if(i[s].length<4)a=a+i[s].length+1;else if("content"===i[s].slice(0,7).toLowerCase()){a=a+i[s].length+1;let e=i[s].indexOf(":");if(-1===e)continue;let t=i[s].slice(0,e).trim(),n=i[s].slice(e+1).trim();switch(t.toLowerCase()){case"content-type":r.contentType=n;break;case"content-description":r.contentDescription=n;break;case"content-transfer-encoding":r.contentTransferEncoding=n;break;case"content-id":r.contentID=n;break;case"content-disposition":r.contentDisposition=n;break;case"content-location":r.contentLocation=n}}else{if(r.contentDisposition.toLowerCase().includes("inline")&&i[s].length>=4&&r.contentType?.toLowerCase().includes("image")){let t=!0,i=e.subarray(a,e.length);if(r.contentType.toLowerCase().indexOf("tif")>0){if("base64"===r.contentTransferEncoding){let e="",t=i;for(let i=0;i<t.length;i+=65535){let n=t.subarray(i,i+65535>t.length-1?t.length-1:i+65535);e+=String.fromCharCode.apply(null,n)}let n=atob(e);i=new Uint8Array(n.length);for(let e=0;e<i.length;e++)i[e]=n.charCodeAt(e)}t=73===i[0]&&73===i[1]||77===i[0]&&77===i[1]}if(t){let t=i.buffer;"base64"!==r.contentTransferEncoding&&(t=new ArrayBuffer(e.length-a),i=new Uint8Array(t),i.set(e.subarray(a,e.length))),r.contentData=t,r.isValidImage=!0}break}if((""===t.start||r.contentID===t.start)&&r.contentType){if(r.contentType.includes("text")||r.contentType.includes("xml")){r.contentData=String.fromCharCode.apply(null,e.subarray(a,e.length));break}r.contentData=e.subarray(a,e.length)}}return r}var de=i(96381),me=i(47520),ce=i(45617);const ge=["nearest neighbor","bilinear","bicubic"],fe=["nearest","linear","cubic"],he="response is not a supported multipart/related mediaType with inline tiff, switching to compatibility mode",ve=new Set(["1.0.0","1.1.0","1.1.1","1.1.2","2.0.1"]);let ye=class extends le.A{constructor(){super(...arguments),this.datasetFormat="WCSServer",this.tileType="Raster"}get rasterId(){return`${this.url}-${this.coverageId}-${this.version}`}async fetchRawTile(e,t,i,n={}){if(this.isBlockOutside(e,t,i))return null;let{nativePixelSize:r,spatialReference:a}=this.rasterInfo,o=2**e,l=r.x*o,u=r.y*o,{blockWidth:p,blockHeight:d}=this.getBlockWidthHeight(e),{origin:m}=this.rasterInfo.storageInfo.tileInfo,c=this.getTileExtent({x:l,y:u},t,i,m,a,[p,d]),g=this.rasterInfo.extent,f=c.xmax>g.xmax,h=c.ymin<g.ymin,v=f||h,y=c,b=p,w=d;if(v&&(y=c.clone().intersection(g),null!=y&&(f&&(b=Math.floor((y.xmax-y.xmin)/l),y.xmax=y.xmin+l*b),h&&(w=Math.floor((y.ymax-y.ymin)/u),y.ymin=y.ymax-u*w))),null==y||b<=1||w<=1)return null;let x=await this._getCoverage(y,b,w,o,n);if(!x)return null;let C,{coverageDescription:I}=this.coverageInfo,{noDataValue:S,multidimensionalInfo:D}=this.rasterInfo,{multidimensionalDefinition:A}=n;if(null!=D&&null!=A&&A.length){let e=A[0].variableName;"2.0"===I.version?C=I.rangeType[0].find(t=>t.name===e)?.nilValue:"1.1"===I.version&&(C=I.range.find(t=>t.identifier===e)?.nullValues)}let T=C??S,M=await this.decodePixelBlock(x,{width:b,height:w,planes:null,pixelType:null,tiffNoDataValue:Array.isArray(T)?T[0]:T,matchAllNoData:!0},{signal:n.signal});if(null==M)return null;if(M&&(M.width!==b||M.height!==w)){let e=`The tiff coverage response has unexpected width: ${M.width}, height: ${M.height}, expecting width: ${b}, height: ${w}`;throw L.A.getLogger(this).error("wcsraster-fetch",e),new s.A("wcsraster-fetch",e)}return v?(0,me.$Q)(M,{x:0,y:0},{width:d,height:d}):M}async _open(e){let{customFetchParameters:t}=this.ioConfig,i=e?.signal,n=await async function(e,t){let{version:i,customParameters:n,signal:r}=t??{},a=i?.startsWith("1.0")?"version":"acceptVersions",o={service:"WCS",request:"GetCapabilities",[a]:i,...n};try{let{data:i}=await(0,N.A)(e,{query:o,responseType:"xml",signal:r});return!t?.version&&!function(e){let t=null;t="string"==typeof e?(new DOMParser).parseFromString(e,"text/xml"):e;let i=t.documentElement.getAttribute("version")?.slice(0,3);return null!=i&&i<"2.1"}(i)&&(o[a]="2.0.1",({data:i}=await(0,N.A)(e,{query:o,responseType:"xml",signal:r}))),k(i)}catch(e){throw(0,l.zf)(e)?e:new s.A("wcslayer:open","wcs capabilities is not valid or supported")}}(this.url,{version:t?.version??this.version,customParameters:t,signal:i});if(this.capabilities=n,!this.version){let e=n.version.slice(0,3);"2.0"===e||"1.1"===e||"1.0"===e?this.version=n.version:(e=n.supportedVersions.find(e=>"2.0.1"===e)||n.supportedVersions.find(e=>e.startsWith("2.0"))||n.supportedVersions.find(e=>e.startsWith("1.1"))||n.supportedVersions.find(e=>e.startsWith("1.0"))||"1.0.0",this.version=e)}let{version:r}=this;if(!ve.has(r))throw new s.A("wcsraster-open",`unsupported WCS version ${r}`);let{gridCoverages:a}=n;if(!a.length)throw new s.A("wcsraster-open","cannot find rectified grid coverages");this.coverageId??=a[0].id;let{coverageId:o}=this,u=a.find(e=>e.id===o);if(null==u)throw new s.A("wcsraster-open",`the coverageId ${o} does not exist in capabilities`);let p=await oe(this.url,{coverageIds:[o],version:r,customParameters:t,signal:i});if(this.coverageInfo=p[0],r.startsWith("2.0")){let{coverageInfo:e}=this;e.lonLatEnvelope=u.lonLatEnvelope,e.supportedInterpolations=Z(n.supportedInterpolations),this._patchDimensionValues201(o,i)}this.datasetName=this.coverageInfo.title;let{rasterInfo:d}=this.coverageInfo;if(this.createRemoteDatasetStorageInfo(d,512,512),this._set("rasterInfo",d),null==d.spatialReference)throw new s.A("wcsraster-open",`coverage without spatial reference is not supported: ${o}`);let{pixelType:m,bandCount:c}=await this._getPixelTypeAndBandCount(i);d.pixelType=m,1===d.bandCount&&c>1&&(d.bandCount=c),this.updateTileInfo()}async _patchDimensionValues201(e,t){let{coverageInfo:i}=this,n=i.rasterInfo.multidimensionalInfo?.variables,r=ve.has("1.1.2")?"1.1.2":ve.has("1.1.1")?"1.1.1":ve.has("1.1.0")?"1.1.0":null,{customFetchParameters:a}=this.ioConfig;if(n&&r)try{let i=this.url.includes("/ImageServer/"),s=e.length>8&&e.startsWith("Coverage")&&i?e.slice(8):e,o=(await oe(this.url,{coverageIds:[s??e],version:r,customParameters:a,signal:t}).catch(()=>{if(s)return oe(this.url,{coverageIds:[e],version:r,customParameters:a,signal:t})}))?.[0].rasterInfo.multidimensionalInfo?.variables;if(o)for(let e of n){let t=o.find(({name:t})=>t===e.name);if(t?.dimensions?.length)for(let n=e.dimensions.length-1;n>=0;n--){let r=e.dimensions[n],a=t.dimensions.find(({name:e})=>e===r.name);a?a.values&&a.extent?.join(",")===r.extent?.join(",")&&(e.dimensions[n]={...r,values:a.values}):i&&e.dimensions.splice(n,1)}}}catch{}}async _getPixelTypeAndBandCount(e){let{pixelSize:t,extent:i,multidimensionalInfo:n}=this.rasterInfo,r=i.center,a=new M.A({xmin:r.x-t.x,xmax:r.x+t.x,ymin:r.y-t.y,ymax:r.y+t.y,spatialReference:i.spatialReference}),o=[];if(null!=n){let e=n.variables[0];o=[],e.dimensions.forEach(t=>{o.push(new ce.A({variableName:e.name,dimensionName:t.name,values:t.hasRegularIntervals?t.extent?.[0]:t.values?.[0],isSlice:!0}))})}let l,{coverageDescription:u}=this.coverageInfo,p={interpolation:"nearest",multidimensionalDefinition:o,signal:e},{version:d}=u,{ioConfig:m}=this,c="2.0"===d&&null==m.allowAnyMediaType||"1.1"===d&&null==m.use2GridOffsets;try{l=await this._getCoverage(a,2,2,1,p,!0)}catch(e){if(!c)throw e;if("1.1"===d){if(!e.details?.isResolutionMismatch)throw e;m.use2GridOffsets=!0}}if(!l&&c&&("2.0"===d&&(m.allowAnyMediaType=!0),l=await this._getCoverage(a,2,2,1,p),l&&L.A.getLogger(this).warn("wcsraster:getcoverage",he)),!l)throw new s.A("wcsraster-open","unable to determine pixel type");let g=await this.decodePixelBlock(l,{width:2,height:2,planes:null,pixelType:null},{signal:p.signal});if(null==g)throw new s.A("wcsraster-open","unable to determine pixel type");return{pixelType:g.pixelType,bandCount:g.getPlaneCount()??0}}async _getCoverage(e,t,i,n,r,a=!1){let{coverageDescription:o}=this.coverageInfo,{version:l}=o,u="2.0"===l?this._getCoverage201Parameters(e,t,i,n,r,o):"1.1"===l?this._getCoverage110Parameters(e,t,i,r,o):this._getCoverage100Parameters(e,t,i,r),p="2.0"===l?await this.request(this._constructWCS201Url(u),{signal:r.signal,responseType:"array-buffer"}):await this.request(this.url,{query:u,signal:r.signal,responseType:"array-buffer"});if("1.0"===l)return p.data;if("2.0"===l&&!1!==this.ioConfig.allowAnyMediaType&&"tiff"===(0,de.g)(p.data))return a&&(this.ioConfig.allowAnyMediaType=!0,L.A.getLogger(this).warn("wcsraster:getcoverage",he)),p.data;let d=function(e){let t=function(e){let t=e.getHeader?.("Content-Type")?.split(";");if(!t||!(t[0].trim()??"").startsWith("multipart/"))return null;let i={boundary:"",start:"",type:""};for(let e=1;e<t.length;e++){let n=t[e].indexOf("=");if(n>0){let r=t[e].slice(0,n).trim(),a=t[e].slice(n+1).trim();i[r]=a.startsWith('"')?a.slice(1,-1):a}}return i}(e);return t?{isMultipart:!0,data:t.boundary?ue(e.data,t,0):null}:{isMultipart:!1,data:null}}(p);if(d.isMultipart&&d.data){let e=d.data.find(e=>e.isValidImage);return a&&"base64"===e?.contentTransferEncoding&&L.A.getLogger(this).warn("wcsraster:getcoverage","response is base64 encoded which may impact layer display performance"),e?.contentData}let m=new Uint8Array(p.data,0,Math.min(p.data.byteLength,2e3)),c=String.fromCharCode.apply(null,m).toLowerCase().includes("exception"),g=c&&String.fromCharCode.apply(null,m).includes("A non-zero RESX/RESY or WIDTH/HEIGHT is required but neither was provided");throw c?new s.A("wcsraster:getcoverage","server returns an exception",{isResolutionMismatch:g}):new s.A("wcsraster:getcoverage","response is not a supported multipart mediaType with inline tiff")}_getInterpolationIndex(e){return e&&this.coverageInfo.supportedInterpolations?.includes(e)&&"nearest"!==e?"bilinear"===e?1:"cubic"===e?2:0:0}_getCoverage100Parameters(e,t,i,n){let r,a=`${e.xmin},${e.ymin},${e.xmax},${e.ymax}`,s=e.spatialReference.wkid,o=(this.coverageInfo.supportedFormats||[]).find(e=>e.toLowerCase().includes("tiff"))||"GEOTIFF",{bandIds:l,interpolation:u}=n,p=this._getInterpolationIndex(u),d=l?l.map(e=>this.coverageInfo.bandNames[e]):null,m=ge[p],{multidimensionalDefinition:c}=n;if(null!=c&&null!=this.rasterInfo.multidimensionalInfo){let e=c.find(e=>"StdTime"===e.dimensionName)?.values;e&&e.length>0&&(Array.isArray(e[0])&&(e=e[0]),r=e.map(e=>be(e)).join(","))}return{service:"WCS",request:"GetCoverage",version:this.version,coverage:this.coverageId,format:o,crs:`EPSG:${s}`,bbox:a,width:t,height:i,time:r,interpolation:m,band:d?.join(",")}}_getCoverage110Parameters(e,t,i,n,r){let a,{multidimensionalDefinition:s,bandIds:o,interpolation:l}=n,u=e.spatialReference.wkid,p=`urn:ogc:def:crs:EPSG::${u}`,d=(this.coverageInfo.supportedFormats||[]).find(e=>e.toLowerCase().includes("tiff"))||"image/tiff",m=this._getInterpolationIndex(l),c=fe[m],g=null==l||0===this.coverageInfo.supportedInterpolations?.indexOf(l),f=r.domain.spatialDomain,h=f.origin.x<=f.envelope.xmin&&f.origin.y<=f.envelope.ymin,v=e.width/t,y=e.height/i*(h?1:-1),b=h?[e.xmin,e.ymin]:[e.xmin,e.ymax],w=f.useEPSGAxis&&(0,V.m)(u),x=w?`${b[1]},${b[0]}`:`${b[0]},${b[1]}`,C=this.ioConfig.use2GridOffsets,I=w?C?`${y},${v}`:`${y},0,0,${v}`:C?`${v},${y}`:`${v},0,0,${y}`,S=v/2,D=e.xmin+S,A=e.xmax-S,T=Math.abs(y)/2,L=e.ymin+T,M=e.ymax-T,N=w?`${L},${D},${M},${A},${p}`:`${D},${L},${A},${M},${p}`,R=r.range.find(e=>e.axis.some(e=>e.identifier.toLowerCase().includes("band"))),P=R&&c&&o?g?`${R.identifier}[${R.axis[0].identifier}[${o.join(",")}]]`:`${R.identifier}:${c}[${R.axis[0].identifier}[${o.join(",")}]]`:null;if(null!=s&&s.length)for(let e=0;e<s.length;e++){let t=s[e].values,i=s[e].dimensionName?.toLowerCase(),n=s[e].variableName?.toLowerCase(),o=r.range.find(e=>e.identifier.toLowerCase()===n);if(t.length>0)if(Array.isArray(t[0])&&(t=t[0]),"stdtime"===i)a=t.map(e=>be(e)).join(",");else if(o){let e=o.axis.find(e=>e.identifier.toLowerCase()===i);e&&(P=g?o.identifier+"["+e.identifier+"["+t.join(",")+"]]":o.identifier+":"+c+"["+e.identifier+"["+t.join(",")+"]]")}e===s.length-1&&o&&!P&&(P=g?o.identifier:o.identifier+":"+c)}return{service:"WCS",request:"GetCoverage",version:this.version,identifier:this.coverageId,format:d,crs:`EPSG:${u}`,boundingbox:N,gridCS:"urn:ogc:def:cs:OGC:0.0:Grid2dSquareCS",gridType:"urn:ogc:def:method:WCS:1.1:2dGridIn2dCrs",gridOrigin:x,gridOffsets:I,gridBaseCRS:p,timeSequence:a,rangeSubset:P}}_getCoverage201Parameters(e,t,i,n,r,a){let{multidimensionalDefinition:s,interpolation:o}=r,l=this._getInterpolationIndex(o),u=null,{supportedInterpolations:p}=this.capabilities;if(p?.length)switch(l){case 0:u=p.find(e=>e.toLowerCase().includes("nearest"));break;case 1:u=p.find(e=>e.toLowerCase().includes("linear"));break;case 2:u=p.find(e=>e.toLowerCase().includes("cubic")||e.toLowerCase().includes("quadratic"))}let d=(this.coverageInfo.supportedFormats||[]).find(e=>e.toLowerCase().includes("tiff"))||"image/tiff",{bandNames:m}=this.coverageInfo,{boundedBy:c,domainSet:g,rangeType:f}=a,h=+!c.isEastFirst,v=1-h,{axisLabels:y}=c,b=y[h],w=y[v],x=`http://www.opengis.net/def/crs/EPSG/0/${e.spatialReference.wkid}`,C=x,I=[];I.push(`${b}(${e.xmin},${e.xmax})`),I.push(`${w}(${e.ymin},${e.ymax})`);let S=[];if(y.length>2)for(let e=2;e<y.length;e++){let t=g.origin[e];if(y[e].toLowerCase().includes("time")){let i=t.toString();c.uomLabels?.[e].toLowerCase().includes("ole")&&(S.push(y[e]),i=be(t,!0)),I.push(y[e]+",http://www.opengis.net("+i+")")}else I.push(y[e]+",http://www.opengis.net("+t+")")}let D=null;if(null!=s&&s.length){let e=[];f.forEach(t=>t.forEach(t=>e.push(t.name)));let t=[];for(let i=0;i<s.length;i++){let n=y.find(e=>e===s[i].dimensionName),r=e.find(e=>e===s[i].variableName);if(t.includes(r)||t.push(r),n){let e=s[i].values;if(e.length>0){Array.isArray(e[0])&&(e=e[0]);let t="";t=n.toLowerCase().includes("time")?e.map(e=>be(e)).join(","):e.join(",");let i=I.findIndex(e=>e.startsWith(n+",http://www.opengis.net"));-1===i&&I.push(n+",http://www.opengis.net("+t+")"),-1!==i&&!I[i].includes("("+t+")")&&I.splice(i,1,n+",http://www.opengis.net("+t+")")}}}t.length&&(D=t.join(","))}else m?.length>=2&&(D=(r.bandIds?r.bandIds.map(e=>m[e]):m).join(","));let A=I.join("&subset="),T=!a.domainSet.hasSameAxisLabelsAsBoundedBy&&!1!==this.ioConfig.allowScaleFactor,L=T?null:`${b}(${t}),${w}(${i})`,M=T?1/n:null;return{service:"WCS",request:"GetCoverage",version:this.version,coverageId:this.coverageId,rangesubset:D,interpolation:u,scaleSize:L,scaleFactor:M,subset:A,format:d,mediaType:this.ioConfig.allowAnyMediaType?null:"multipart/related",outputcrs:x,subsettingcrs:C}}_constructWCS201Url(e){let t={...this.ioConfig.customFetchParameters,...e},i=[];return Object.keys(t).forEach(e=>{let n=t[e];if(null!=n){if("subset"!==e)return void i.push(`${e}=${encodeURIComponent(n)}`);"string"==typeof n&&n.split("&subset=").forEach(e=>{e&&i.push(`subset=${encodeURIComponent(e)}`)})}}),`${encodeURI(this.url)}?${i.join("&")}`}};function be(e,t=!1){return(t?new Date((0,G.$E)(e)):new Date(e)).toISOString()}(0,n.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],ye.prototype,"datasetFormat",void 0),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],ye.prototype,"tileType",void 0),(0,n.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],ye.prototype,"version",void 0),(0,n.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],ye.prototype,"coverageId",void 0),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],ye.prototype,"rasterId",null),ye=(0,n.Cg)([(0,p.$K)("esri.layers.raster.datasets.WCSRaster")],ye);var we=i(10873),xe=i(20437),Ce=i(74797),Ie=i(30291);const Se=new Set(["milliseconds","seconds","minutes","hours","days","weeks","months","years","decades","centuries"]);let De=class extends((0,b.dM)((0,D.j)((0,x.q)((0,C.A)((0,w.d)((0,T.b)((0,I.G)((0,A.e)((0,S.J)((0,o.M)((0,a.OU)(y.A)))))))))))){constructor(...e){super(...e),this.charts=null,this.coverageId=null,this.version=null,this.isReference=null,this.graphicOrigin=new v(this),this.legendEnabled=!0,this.noData=0,this.operationalLayerType="WCS",this.type="wcs",this.popupEnabled=!0,this.popupTemplate=null,this.fields=null,this._debouncedSaveOperations=(0,l.sg)(async(e,t,n)=>{let{save:r,saveAs:a}=await i.e(9838).then(()=>i(59838));switch(e){case 0:return r(this,t);case 1:return a(this,n,t)}})}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){let t=null==e?null:e.signal;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["WCS"]},e).catch(l.QP).then(()=>this._openRaster(t))),Promise.resolve(this)}get renderer(){return super.renderer}set renderer(e){super.renderer=e}get coverageInfo(){return this.raster.coverageInfo}get defaultPopupTemplate(){return this.createPopupTemplate()}get rasterFields(){let e=[(0,Ce.rZ)("Pixel Value")],t=(this.raster?.rasterInfo??this.serviceRasterInfo)?.multidimensionalInfo;if(t){let i=(0,Ce.AL)(t);e.push(...i)}return e}createPopupTemplate(e){return(0,Ie.tn)({fields:this.rasterFields,title:this.title},e)}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}async _openRaster(e){let t=new ye({url:this.url,version:this.version,coverageId:this.coverageId,ioConfig:{sampling:"closest",...this.ioConfig,customFetchParameters:this.customParameters}});if(await t.open({signal:e}),!t.rasterInfo)throw t.destroy(),new s.A("wcs-layer:load","cannot load resources on "+this.url);let{rasterInfo:i}=t;i.noDataValue??=this.noData,this._set("serviceRasterInfo",i),this._set("spatialReference",i.spatialReference),this.title??this.setAtOrigin("title",t.datasetName,"service"),this.coverageId??this.setAtOrigin("coverageId",t.coverageInfo.id,"service"),null==this.version&&t.version&&this.setAtOrigin("version",t.version,"service"),this.setAtOrigin("tileInfo",t.rasterInfo.storageInfo.tileInfo,"service");let{multidimensionalInfo:n}=i;if(null!=n){let e=n.variables[0].dimensions.find(({name:e})=>"StdTime"===e);if(e){let t=e.extent?.[0]??e.values[0];Array.isArray(t)&&(t=t[0]);let i=e.extent?.[1]??e.values[e.values.length-1];Array.isArray(i)&&(i=i[1]);let n=Se.has(e.intervalUnit?.toLowerCase())?e.intervalUnit?.toLowerCase():null;this.set("timeInfo",{startField:"StdTime",fullTimeExtent:{start:t,end:i},timeZone:null,interval:n?{value:e.interval,unit:n}:null})}}this.raster=t,this._configDefaultSettings(),this.addHandles((0,u.wB)(()=>this.customParameters,e=>this.raster.ioConfig.customFetchParameters=e))}};(0,n.Cg)([(0,p.MZ)({json:{origins:{"web-scene":{write:!1}},write:!0}})],De.prototype,"charts",void 0),(0,n.Cg)([(0,p.MZ)({type:String,nonNullable:!0,json:{name:"wcsInfo.coverageId",write:{isRequired:!0,ignoreOrigin:!0}}})],De.prototype,"coverageId",void 0),(0,n.Cg)([(0,p.MZ)()],De.prototype,"coverageInfo",null),(0,n.Cg)([(0,p.MZ)({type:["1.0.0","1.1.0","1.1.1","1.1.2","2.0.1"],nonNullable:!0,json:{name:"wcsInfo.version",write:{isRequired:!0,ignoreOrigin:!0}}})],De.prototype,"version",void 0),(0,n.Cg)([(0,p.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],De.prototype,"isReference",void 0),(0,n.Cg)([(0,p.MZ)({json:{read:!0,write:!0}})],De.prototype,"blendMode",void 0),(0,n.Cg)([(0,p.MZ)({readOnly:!0,clonable:!1})],De.prototype,"graphicOrigin",void 0),(0,n.Cg)([(0,p.MZ)(we.fV)],De.prototype,"legendEnabled",void 0),(0,n.Cg)([(0,p.MZ)({type:["show","hide"]})],De.prototype,"listMode",void 0),(0,n.Cg)([(0,p.MZ)()],De.prototype,"noData",void 0),(0,n.Cg)([(0,p.MZ)({type:["WCS"]})],De.prototype,"operationalLayerType",void 0),(0,n.Cg)([(0,p.MZ)()],De.prototype,"raster",void 0),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],De.prototype,"type",void 0),(0,n.Cg)([(0,p.MZ)(we.M6)],De.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,p.MZ)({type:r.A,json:{name:"popupInfo",write:!0}})],De.prototype,"popupTemplate",void 0),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],De.prototype,"defaultPopupTemplate",null),(0,n.Cg)([(0,p.MZ)({readOnly:!0,type:[xe.A]})],De.prototype,"fields",void 0),(0,n.Cg)([(0,p.MZ)({readOnly:!0,type:[xe.A]})],De.prototype,"rasterFields",null),De=(0,n.Cg)([(0,p.$K)("esri.layers.WCSLayer")],De);const Ae=De},38458(e,t,i){i.d(t,{m:()=>r});const n=[[3819,3819],[3821,3824],[3889,3889],[3906,3906],[4001,4025],[4027,4036],[4039,4047],[4052,4055],[4074,4075],[4080,4081],[4120,4176],[4178,4185],[4188,4216],[4218,4289],[4291,4304],[4306,4319],[4322,4326],[4463,4463],[4470,4470],[4475,4475],[4483,4483],[4490,4490],[4555,4558],[4600,4646],[4657,4765],[4801,4811],[4813,4821],[4823,4824],[4901,4904],[5013,5013],[5132,5132],[5228,5229],[5233,5233],[5246,5246],[5252,5252],[5264,5264],[5324,5340],[5354,5354],[5360,5360],[5365,5365],[5370,5373],[5381,5381],[5393,5393],[5451,5451],[5464,5464],[5467,5467],[5489,5489],[5524,5524],[5527,5527],[5546,5546],[2044,2045],[2081,2083],[2085,2086],[2093,2093],[2096,2098],[2105,2132],[2169,2170],[2176,2180],[2193,2193],[2200,2200],[2206,2212],[2319,2319],[2320,2462],[2523,2549],[2551,2735],[2738,2758],[2935,2941],[2953,2953],[3006,3030],[3034,3035],[3038,3051],[3058,3059],[3068,3068],[3114,3118],[3126,3138],[3150,3151],[3300,3301],[3328,3335],[3346,3346],[3350,3352],[3366,3366],[3389,3390],[3416,3417],[3833,3841],[3844,3850],[3854,3854],[3873,3885],[3907,3910],[4026,4026],[4037,4038],[4417,4417],[4434,4434],[4491,4554],[4839,4839],[5048,5048],[5105,5130],[5253,5259],[5269,5275],[5343,5349],[5479,5482],[5518,5519],[5520,5520],[20004,20032],[20064,20092],[21413,21423],[21473,21483],[21896,21899],[22171,22177],[22181,22187],[22191,22197],[25884,25884],[27205,27232],[27391,27398],[27492,27492],[28402,28432],[28462,28492],[30161,30179],[30800,30800],[31251,31259],[31275,31279],[31281,31290],[31466,31700]];function r(e){return null!=e&&n.some(([t,i])=>e>=t&&e<=i)}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3642],{69540(e,t,i){var n=i(32198),r=i(69622),s=(i(44208),i(4718)),o=(i(53966),i(97768)),a=i(88620),l=i(64108);const u=Symbol("ClonableMixin"),h=e=>{var t;let i=e,r=class extends i{constructor(){super(...arguments),this[t]=!0}static{t=u}clone(e){let t=(0,a.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");let i=t.metadata,n=t.store,r={},l=new Map;for(let t in i){let o=i[t],a=n?.originOf(t),u=o.clonable;if(o.readOnly||!1===u||7!==a&&0!==a&&5!==a&&4!==a)continue;let h=this[t],d=null;if("function"==typeof u)d=u(h,e);else if("reference"===u)d=h;else if(d=(0,s.TU)(h,e),null!=h&&null==d)continue;0===a?l.set(t,d):r[t]=d}let u=new(0,Object.getPrototypeOf(this).constructor)(r);if(l.size){let e=(0,a.oY)(u)?.store;if(e)for(let[t,i]of l)e.set(t,i,0)}return u}};return r=(0,n.Cg)([(0,l.$)("esri.core.Clonable")],r),r},d=h(r.A);i.d(t,["OU",0,h,"Pw",0,d])},66344(e,t,i){i.d(t,{q:()=>a});const n=!!(0,i(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class r{get size(){return this._size}constructor(e=10485760,t=.3){this._maxSize=e,this._maxClientSizeRatio=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._clients=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._clients.clear(),this._db.clear()}register(e){this._clients.set(e.id.slice(0,-1),e)}deregister(e){this.clear(e),this._sizeLimits.delete(e),this._clients.delete(e.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,-1),this._checkSize()}get _maxClientSize(){return this._maxSize*this._maxClientSizeRatio}getSize(e,t){return this._db.get(e.id+t)?.size??0}put(e,t,i,r,o){t=e.id+t;let a=this._db.get(t);if(a&&(this._size-=a.size,e.size-=a.size,this._db.delete(t),a.entry!==i&&this._notifyRemove(t,a.entry,a.size,0)),r>this._maxSize)return void this._notifyRemove(t,i,r,0);if(void 0===i)return void console.warn("Refusing to cache undefined entry ");if(!r||r<0)return n||console.warn(`Refusing to cache entry with size ${r} for key ${t}`),void this._notifyRemove(t,i,0,0);let l=1+Math.max(o,-4)- -3;this._db.set(t,new s(i,r,l)),this._size+=r,e.size+=r,this._checkSize()}updateSize(e,t){t=e.id+t;let i=this._db.get(t);if(!i)return;this._size-=i.size,e.size-=i.size;let n=i.entry.usedMemory;for(;n>this._maxSize;){let e=this._notifyRemove(t,i.entry,n,1);if(!(null!=e&&e>0))return void this._db.delete(t);n=e}i.size=n,this._size+=n,e.size+=n,this._checkSize()}pop(e,t){t=e.id+t;let i=this._db.get(t);if(i)return this._size-=i.size,e.size-=i.size,this._db.delete(t),++this._hit,i.entry;++this._miss}get(e,t){t=e.id+t;let i=this._db.get(t);if(void 0!==i)return this._db.delete(t),i.lives=i.lifetime,this._db.set(t,i),++this._hit,i.entry;++this._miss}peek(e,t){let i=this._db.get(e.id+t);return i?++this._hit:++this._miss,i?.entry}get performanceInfo(){let e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},i=[];this._db.forEach((e,n)=>{let r=e.lifetime;i[r]=(i[r]||0)+e.size,this._clients.forEach(i=>{let{id:r,name:s}=i;if(n.startsWith(r)){let i=t[s]||0;t[s]=i+e.size}})});let n={};this._clients.forEach(e=>{let i=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){let r=t[i]||0;t[i]=r,n[i]=Math.round(100*e.hitRate)+"%"}else n[i]="0%"});let r=Object.keys(t);r.sort((e,i)=>t[i]-t[e]),r.forEach(i=>e[i]=Math.round(t[i]/2**20)+"MB / "+n[i]);for(let t=i.length-1;t>=0;--t){let n=i[t];n&&(e["Priority "+(t+-3-1)]=Math.round(n/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._clients.forEach(e=>e.resetHitRate())}clear(e){let t=e.id;this._db.forEach((e,i)=>{i.startsWith(t)&&(this._size-=e.size,this._db.delete(i),this._notifyRemove(i,e.entry,e.size,0))}),e.size=0}clearAll(){this._db.forEach((e,t)=>this._notifyRemove(t,e.entry,e.size,0)),this._clients.forEach(e=>e.size=0),this._size=0,this._db.clear()}*values(e){for(let[t,i]of this._db)t.startsWith(e.id)&&(yield i.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,i,n){let r=this._clients.get(e.split(o)[0])?.removeFunc,s=r?.(t,n,i);return"number"==typeof s?s:null}_checkSize(){this._sizeLimits.forEach((e,t)=>this._checkSizeLimits(e,t)),this._clients.forEach(e=>this._checkSizeLimits(this._maxClientSize,e)),this._checkSizeLimits(this.maxSize)}setMaxClientSize(e,t){null==t||t<=0?this._sizeLimits.delete(e):this._sizeLimits.set(e,t)}_checkSizeLimits(e,t){let i=t??this;if(i.size<=e)return;let n=t?.id,r=!0;for(;r;){r=!1;for(let[s,a]of this._db)if(0===a.lifetime&&(!n||s.startsWith(n))){let n=t??this._clients.get(s.split(o)[0]);if(this._purgeItem(s,a,n),i.size<=.9*e)return;r||=this._db.has(s)}}for(let[r,s]of this._db)if(!n||r.startsWith(n)){let n=t??this._clients.get(r.split(o)[0]);if(this._purgeItem(r,s,n),i.size<=.9*e)return}}_purgeItem(e,t,i){if(this._db.delete(e),t.lives<=1){this._size-=t.size,i&&(i.size-=t.size);let n=this._notifyRemove(e,t.entry,t.size,1);null!=n&&n>0&&(this._size+=n,i&&(i.size+=n),t.lives=t.lifetime,t.size=n,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}new r(0);class s{constructor(e,t,i){this.entry=e,this.size=t,this.lifetime=i,this.lives=i}}const o=":";class a{constructor(e,t){this.removeFunc=t,this.id="",this.name="",this.size=0,this._storage=new r(e,1),this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(e,t,i=1){this._storage.put(this,e,t,i,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}},60999(e,t,i){i.d(t,{DZ:()=>f,Ke:()=>m,QA:()=>p,Tj:()=>h,UT:()=>y,aD:()=>_,jJ:()=>u});var n=i(32198),r=i(69622),s=i(97768),o=i(17676),a=i(10107),l=i(64108);function u(e,t,i){return(0,o.Lx)(e.map((e,n)=>t.apply(i,[e,n])))}async function h(e,t,i){return(await(0,o.Lx)(e.map((e,n)=>t.apply(i,[e,n])))).map(e=>e.value)}function d(e){return{ok:!0,value:e}}function c(e){return{ok:!1,error:e}}async function m(e){if(null==e)return{ok:!1,error:Error("no promise provided")};try{return d(await e)}catch(e){return c(e)}}async function f(e){try{return d(await e)}catch(e){return(0,o.QP)(e),c(e)}}function p(e){if(!0===e.ok)return e.value;throw e.error}function y(e,t){return new g(e,t)}let g=class extends r.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,s.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;let{signal:i}=this._abortController;this.promise=e(i),this.promise.then(e=>{this._result=d(e),this._cleanup()},e=>{this._result=c(e),this._cleanup()}),this._abortHandle=(0,o.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,s.xt)(this._abortHandle),this._abortController=null}};(0,n.Cg)([(0,a.MZ)()],g.prototype,"value",null),(0,n.Cg)([(0,a.MZ)()],g.prototype,"error",null),(0,n.Cg)([(0,a.MZ)()],g.prototype,"finished",null),(0,n.Cg)([(0,a.MZ)()],g.prototype,"promise",void 0),(0,n.Cg)([(0,a.MZ)()],g.prototype,"_result",void 0),g=(0,n.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],g);class _{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});let t=await e;return{[Symbol.dispose]:t}}async run(e){let t={stack:[],error:void 0,hasError:!1};try{return(0,n.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,n.hk)(t)}}}},67482(e,t,i){function n(e){return null!==r(e)}function r(e){return function(e){let t=s.exec(e);if(!t?.groups)return null;let i=t.groups,n=+i.year,r=i.month-1,o=+i.day,a=+(i.hours??"0"),l=+(i.minutes??"0"),u=+(i.seconds??"0");if(a>23||l>59||u>59)return null;let h,d=i.ms??"0",c=d?+d.padEnd(3,"0").slice(0,3):0;if(i.isUTC||!i.offsetSign)h=Date.UTC(n,r,o,a,l,u,c);else{let e=+i.offsetHours,t=+i.offsetMinutes;h=6e4*("+"===i.offsetSign?-1:1)*(60*e+t)+Date.UTC(n,r,o,a,l,u,c)}return Number.isNaN(h)?null:h}(e)??function(e){let t=new Date(e),i=t.getTime();return Number.isNaN(i)?null:e.toLowerCase()===t.toUTCString().toLowerCase()?i:null}(e)??function(e){if(!o.test(e))return null;let t=new Date(e);return Number.isNaN(t.getTime())?null:t.getTime()-6e4*t.getTimezoneOffset()}(e)}i.d(t,{C:()=>n,_:()=>r});const s=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,o=/^((\d{1,2}[/-]\d{1,2}[/-]\d{4})|(\d{4}[/-]\d{1,2}[/-]\d{1,2}))( \d{1,2}:\d{1,2}:\d{1,2}( ((AM)|(PM)))?)?$/i},9093(e,t,i){function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function r(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}i.d(t,{o8:()=>r,vt:()=>n});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:r,create:n,fromValues:function(e,t,i,n,r,s,o,a,l,u,h,d,c,m,f,p){return[e,t,i,n,r,s,o,a,l,u,h,d,c,m,f,p]}},Symbol.toStringTag,{value:"Module"})),i.d(t,["zK",0,s])},35522(e,t,i){i.d(t,{$A:()=>I,Bw:()=>s,C:()=>o,Cc:()=>F,DI:()=>x,Io:()=>_,Ln:()=>g,Om:()=>w,Qr:()=>d,Re:()=>u,S8:()=>v,T9:()=>p,WQ:()=>l,Z0:()=>T,_S:()=>m,aI:()=>P,ei:()=>A,fw:()=>z,gL:()=>C,hG:()=>M,hZ:()=>a,hs:()=>y,jk:()=>f,lw:()=>h,m3:()=>b,oW:()=>D,t2:()=>R,tn:()=>c,ze:()=>S});var n=i(51850),r=i(34304);function s(e){let t=e[0],i=e[1],n=e[2];return Math.sqrt(t*t+i*i+n*n)}function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(e,t,i,n){return e[0]=t,e[1]=i,e[2]=n,e}function l(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e[2]=t[2]+i[2],e}function u(e,t,i){return e[0]=t[0]-i[0],e[1]=t[1]-i[1],e[2]=t[2]-i[2],e}function h(e,t,i){return e[0]=t[0]*i[0],e[1]=t[1]*i[1],e[2]=t[2]*i[2],e}function d(e,t,i){return e[0]=t[0]/i[0],e[1]=t[1]/i[1],e[2]=t[2]/i[2],e}function c(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function m(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function f(e,t,i){return e[0]=Math.min(t[0],i[0]),e[1]=Math.min(t[1],i[1]),e[2]=Math.min(t[2],i[2]),e}function p(e,t,i){return e[0]=Math.max(t[0],i[0]),e[1]=Math.max(t[1],i[1]),e[2]=Math.max(t[2],i[2]),e}function y(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e}function g(e,t,i,n){return e[0]=t[0]+i[0]*n,e[1]=t[1]+i[1]*n,e[2]=t[2]+i[2]*n,e}function _(e,t){let i=t[0]-e[0],n=t[1]-e[1],r=t[2]-e[2];return Math.sqrt(i*i+n*n+r*r)}function M(e,t){let i=t[0]-e[0],n=t[1]-e[1],r=t[2]-e[2];return i*i+n*n+r*r}function b(e){let t=e[0],i=e[1],n=e[2];return t*t+i*i+n*n}function S(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function x(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function v(e,t=e){let i=t[0],n=t[1],r=t[2],s=i*i+n*n+r*r;return s>0&&(s=1/Math.sqrt(s),e[0]=t[0]*s,e[1]=t[1]*s,e[2]=t[2]*s),e}function w(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function I(e,t,i){let n=t[0],r=t[1],s=t[2],o=i[0],a=i[1],l=i[2];return e[0]=r*l-s*a,e[1]=s*o-n*l,e[2]=n*a-r*o,e}function F(e,t,i,n){let r=t[0],s=t[1],o=t[2];return e[0]=r+n*(i[0]-r),e[1]=s+n*(i[1]-s),e[2]=o+n*(i[2]-o),e}function T(e,t,i){let n=t[0],r=t[1],s=t[2];return e[0]=i[0]*n+i[4]*r+i[8]*s+i[12],e[1]=i[1]*n+i[5]*r+i[9]*s+i[13],e[2]=i[2]*n+i[6]*r+i[10]*s+i[14],e}function A(e,t,i){let n=t[0],r=t[1],s=t[2];return e[0]=n*i[0]+r*i[3]+s*i[6],e[1]=n*i[1]+r*i[4]+s*i[7],e[2]=n*i[2]+r*i[5]+s*i[8],e}function C(e,t,i){return z(e,t,i[0],i[1],i[2],i[3])}function z(e,t,i,n,r,s){let o=t[0],a=t[1],l=t[2],u=n*l-r*a,h=r*o-i*l,d=i*a-n*o,c=n*d-r*h,m=r*u-i*d,f=i*h-n*u,p=2*s;return e[0]=o+u*p+2*c,e[1]=a+h*p+2*m,e[2]=l+d*p+2*f,e}const B=(0,n.vt)(),E=(0,n.vt)();function R(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function P(e,t){if(e===t)return!0;let i=e[0],n=e[1],s=e[2],o=t[0],a=t[1],l=t[2],u=(0,r.FD)();return Math.abs(i-o)<=u*Math.max(1,Math.abs(i),Math.abs(o))&&Math.abs(n-a)<=u*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(s-l)<=u*Math.max(1,Math.abs(s),Math.abs(l))}function D(e,t,i){let n=i[0]-t[0],r=i[1]-t[1],s=i[2]-t[2],o=n*n+r*r+s*s;return o>0?(o=1/Math.sqrt(o),e[0]=n*o,e[1]=r*o,e[2]=s*o,e):(e[0]=0,e[1]=0,e[2]=0,e)}const O=u,q=h,N=d,Z=_,j=M,L=s,k=b;Object.freeze(Object.defineProperty({__proto__:null,abs:c,add:l,angle:function(e,t){v(B,e),v(E,t);let i=w(B,E);return i>1?0:i<-1?Math.PI:Math.acos(i)},bezier:function(e,t,i,n,r,s){let o=1-s,a=o*o,l=s*s,u=a*o,h=3*s*a,d=3*l*o,c=l*s;return e[0]=t[0]*u+i[0]*h+n[0]*d+r[0]*c,e[1]=t[1]*u+i[1]*h+n[1]*d+r[1]*c,e[2]=t[2]*u+i[2]*h+n[2]*d+r[2]*c,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,i=1){return e[0]=Math.min(Math.max(e[0],t),i),e[1]=Math.min(Math.max(e[1],t),i),e[2]=Math.min(Math.max(e[2],t),i),e},copy:o,cross:I,crossAndNormalize:function(e,t,i){let n=t[0],r=t[1],s=t[2],o=i[0],a=i[1],l=i[2],u=r*l-s*a,h=s*o-n*l,d=n*a-r*o,c=Math.sqrt(u*u+h*h+d*d);return e[0]=u/c,e[1]=h/c,e[2]=d/c,e},direction:D,dist:Z,distance:_,div:N,divide:d,dot:w,equals:P,exactEquals:R,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,i,n,r,s){let o=s*s,a=o*(2*s-3)+1,l=o*(s-2)+s,u=o*(s-1),h=o*(3-2*s);return e[0]=t[0]*a+i[0]*l+n[0]*u+r[0]*h,e[1]=t[1]*a+i[1]*l+n[1]*u+r[1]*h,e[2]=t[2]*a+i[2]*l+n[2]*u+r[2]*h,e},inverse:x,len:L,length:s,lerp:F,max:p,min:f,mul:q,multiply:h,negate:S,normalize:v,random:function(e,t=1){let i=r.Ov,n=2*i()*Math.PI,s=2*i()-1,o=Math.sqrt(1-s*s)*t;return e[0]=Math.cos(n)*o,e[1]=Math.sin(n)*o,e[2]=s*t,e},rotateX:function(e,t,i,n){let r=[],s=[];return r[0]=t[0]-i[0],r[1]=t[1]-i[1],r[2]=t[2]-i[2],s[0]=r[0],s[1]=r[1]*Math.cos(n)-r[2]*Math.sin(n),s[2]=r[1]*Math.sin(n)+r[2]*Math.cos(n),e[0]=s[0]+i[0],e[1]=s[1]+i[1],e[2]=s[2]+i[2],e},rotateY:function(e,t,i,n){let r=[],s=[];return r[0]=t[0]-i[0],r[1]=t[1]-i[1],r[2]=t[2]-i[2],s[0]=r[2]*Math.sin(n)+r[0]*Math.cos(n),s[1]=r[1],s[2]=r[2]*Math.cos(n)-r[0]*Math.sin(n),e[0]=s[0]+i[0],e[1]=s[1]+i[1],e[2]=s[2]+i[2],e},rotateZ:function(e,t,i,n){let r=[],s=[];return r[0]=t[0]-i[0],r[1]=t[1]-i[1],r[2]=t[2]-i[2],s[0]=r[0]*Math.cos(n)-r[1]*Math.sin(n),s[1]=r[0]*Math.sin(n)+r[1]*Math.cos(n),s[2]=r[2],e[0]=s[0]+i[0],e[1]=s[1]+i[1],e[2]=s[2]+i[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:y,scaleAndAdd:g,scaleTo:function(e,t){return y(e,e,t/L(e))},set:a,sign:m,sqrDist:j,sqrLen:k,squaredDistance:M,squaredLength:b,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:O,subtract:u,transformMat3:A,transformMat4:T,transformMat4Z:function(e,t){return t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]},transformQuat:C,transformQuatValues:z},Symbol.toStringTag,{value:"Module"})),i.d(t,["Il",0,L,"jb",0,O,"lo",0,j,"uE",0,k])},75503(e,t,i){i.d(t,{wq:()=>a});var n=i(4576),r=i(21818),s=(i(44208),i(15142)),o=i(11006);class a{constructor(e=9,t){this._compareMinX=c,this._compareMinY=m,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),S.prune(),x.prune(),v.prune(),w.prune()}all(e){l(this._data,e)}search(e,t){let i=this._data,n=this._toBBox;if(M(e,i))for(S.clear();i;){for(let r=0,s=i.children.length;r<s;r++){let s=i.children[r],o=i.leaf?n(s):s;M(e,o)&&(i.leaf?t(s):_(e,o)?l(s,t):S.push(s))}i=S.pop()}}collides(e){let t=this._data,i=this._toBBox;if(!M(e,t))return!1;for(S.clear();t;){for(let n=0,r=t.children.length;n<r;n++){let r=t.children[n],s=t.leaf?i(r):r;if(M(e,s)){if(t.leaf||_(e,s))return!0;S.push(r)}}t=S.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,i=e.length;t<i;t++)this.insert(e[t]);return this}let t=this._build(e.slice(),0,e.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){let e=this._data;this._data=t,t=e}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(e){return e&&this._insert(e,this._data.height-1),this}clear(){return this._data=new T([]),this}remove(e){if(!e)return this;let t,i=this._data,s=null,o=0,a=!1,l=this._toBBox(e);for(v.clear(),w.clear();i||v.length>0;){if(i||(i=v.pop(),s=v.data[v.length-1],o=w.pop()??0,a=!0),i.leaf&&(t=(0,n.qh)(i.children,(0,r.z)(e),i.children.length,i.indexHint),-1!==t))return i.children.splice(t,1),v.push(i),this._condense(v),this;a||i.leaf||!_(i,l)?s?(o++,i=s.children[o],a=!1):i=null:(v.push(i),w.push(o),o=0,s=i,i=i.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_build(e,t,i,n){let r=i-t+1,s=this._maxEntries;if(r<=s){let n=new T(e.slice(t,i+1));return u(n,this._toBBox),n}n||(n=Math.ceil(Math.log(r)/Math.log(s)),s=Math.ceil(r/s**(n-1)));let o=new A([]);o.height=n;let a=Math.ceil(r/s),l=a*Math.ceil(Math.sqrt(s));b(e,t,i,l,this._compareMinX);for(let r=t;r<=i;r+=l){let t=Math.min(r+l-1,i);b(e,r,t,a,this._compareMinY);for(let i=r;i<=t;i+=a){let r=Math.min(i+a-1,t);o.children.push(this._build(e,i,r,n-1))}}return u(o,this._toBBox),o}_insert(e,t,i){let n=this._toBBox,r=i?e:n(e);v.clear();let s=function(e,t,i,n){for(;n.push(t),!0!==t.leaf&&n.length-1!==i;){let i,n=1/0,r=1/0;for(let s=0,o=t.children.length;s<o;s++){let o=t.children[s],a=f(o),l=y(e,o)-a;l<r?(r=l,n=a<n?a:n,i=o):l===r&&a<n&&(n=a,i=o)}t=i||t.children[0]}return t}(r,this._data,t,v);for(s.children.push(e),d(s,r);t>=0&&v.data[t].children.length>this._maxEntries;)this._split(v,t),t--;!function(e,t,i){for(let n=i;n>=0;n--)d(t.data[n],e)}(r,v,t)}_split(e,t){let i=e.data[t],n=i.children.length,r=this._minEntries;this._chooseSplitAxis(i,r,n);let s=this._chooseSplitIndex(i,r,n);if(!s)return;let o=i.children.splice(s,i.children.length-s),a=i.leaf?new T(o):new A(o);a.height=i.height,u(i,this._toBBox),u(a,this._toBBox),t?e.data[t-1].children.push(a):this._splitRoot(i,a)}_splitRoot(e,t){this._data=new A([e,t]),this._data.height=e.height+1,u(this._data,this._toBBox)}_chooseSplitIndex(e,t,i){let n,r,s;n=r=1/0;for(let o=t;o<=i-t;o++){let t=h(e,0,o,this._toBBox),a=h(e,o,i,this._toBBox),l=g(t,a),u=f(t)+f(a);l<n?(n=l,s=o,r=u<r?u:r):l===n&&u<r&&(r=u,s=o)}return s}_chooseSplitAxis(e,t,i){let n=e.leaf?this._compareMinX:c,r=e.leaf?this._compareMinY:m;this._allDistMargin(e,t,i,n)<this._allDistMargin(e,t,i,r)&&e.children.sort(n)}_allDistMargin(e,t,i,n){e.children.sort(n);let r=this._toBBox,s=h(e,0,t,r),o=h(e,i-t,i,r),a=p(s)+p(o);for(let n=t;n<i-t;n++){let t=e.children[n];d(s,e.leaf?r(t):t),a+=p(s)}for(let n=i-t-1;n>=t;n--){let t=e.children[n];d(o,e.leaf?r(t):t),a+=p(o)}return a}_condense(e){for(let t=e.length-1;t>=0;t--){let i=e.data[t];if(0===i.children.length)if(t>0){let r=e.data[t-1],s=r.children;s.splice((0,n.qh)(s,i,s.length,r.indexHint),1)}else this.clear();else u(i,this._toBBox)}}_initFormat(e){let t=["return a"," - b",";"];this._compareMinX=Function("a","b",t.join(e[0])),this._compareMinY=Function("a","b",t.join(e[1])),this._toBBox=Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function l(e,t){let i=e;for(x.clear();i;){if(!0===i.leaf)for(let e of i.children)t((0,r.z)(e));else x.pushArray(i.children);i=x.pop()??null}}function u(e,t){h(e,0,e.children.length,t,e)}function h(e,t,i,n,r){r||=new T([]),r.minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(let s,o=t;o<i;o++)s=e.children[o],d(r,e.leaf?n(s):s);return r}function d(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function c(e,t){return e.minX-t.minX}function m(e,t){return e.minY-t.minY}function f(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function p(e){return e.maxX-e.minX+(e.maxY-e.minY)}function y(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function g(e,t){let i=Math.max(e.minX,t.minX),n=Math.max(e.minY,t.minY),r=Math.min(e.maxX,t.maxX),s=Math.min(e.maxY,t.maxY);return Math.max(0,r-i)*Math.max(0,s-n)}function _(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function M(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function b(e,t,i,n,r){let s=[t,i];for(;s.length;){let t=s.pop(),i=s.pop();if(t-i<=n)continue;let a=i+Math.ceil((t-i)/n/2)*n;(0,o.q)(e,a,i,t,r),s.push(i,a,a,t)}}const S=new s.A,x=new s.A,v=new s.A,w=new s.A({deallocator:void 0});class I{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class F extends I{constructor(){super(...arguments),this.height=1,this.indexHint=new n.vW}}class T extends F{constructor(e){super(),this.children=e,this.leaf=!0}}class A extends F{constructor(e){super(),this.children=e,this.leaf=!1}}},69397(e,t,i){i.d(t,{Qf:()=>a,Qh:()=>s,lM:()=>r});var n=i(34275);function r(e){if(!e)return 0;let t=u;for(let i in e)e.hasOwnProperty(i)&&(t+=o(e[i],!1));return t}function s(e){if(!e)return 0;if("number"==typeof e[0])return a(e);if(Array.isArray(e))return function(e){let t=e.length;if(0===t||"number"==typeof e[0])return l(e,8);let i=h;for(let n=0;n<t;n++)i+=o(e[n]);return i}(e);let t=u;for(let i in e)e.hasOwnProperty(i)&&(t+=o(e[i]));return t}function o(e,t=!0){switch(typeof e){case"object":return t?s(e):u;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function a(...e){return e.reduce((e,t)=>e+(t?(0,n.iu)(t)?t.byteLength+d:Array.isArray(t)?l(t,16):0:0),0)}function l(e,t){return h+e.length*t}const u=32,h=16,d=145},36708(e,t,i){i.d(t,{C_:()=>c,on:()=>d,wB:()=>l,z7:()=>u});var n=i(37955),r=i(36563),s=i(97768),o=i(17676),a=i(14012);function l(e,t,i={}){return h(e,t,i,m)}function u(e,t,i={}){return h(e,t,i,f)}function h(e,t,i={},n){let r=null,o=i.once?(e,i)=>{n(e)&&((0,s.xt)(r),t(e,i))}:(e,i)=>{n(e)&&t(e,i)};if(r=(0,a.Cn)(e,o,i.sync,i.equals),i.initial){let t=e();o(t,t)}return r}function d(e,t,i,o={}){let a=null,u=null,h=null;function d(){a&&u&&(u.remove(),o.onListenerRemove?.(a),a=null,u=null)}function c(e){o.once&&o.once&&(0,s.xt)(h),i(e)}let m=l(e,(e,i)=>{d(),(0,n.wb)(e)&&(a=e,u=(0,n.on)(e,t,c),o.onListenerAdd?.(e))},{sync:o.sync,initial:!0});return h=(0,r.hA)(()=>{m.remove(),d()}),h}function c(e,t){return function(e,t,i){if((0,o.G4)(i))return Promise.reject((0,o.NK)());let n=e();if(t?.(n))return Promise.resolve(n);let a=null;function l(){a=(0,s.xt)(a)}return new Promise((n,s)=>{a=(0,r.vE)([(0,o.u7)(i,()=>{l(),s((0,o.NK)())}),h(e,e=>{l(),n(e)},{sync:!1,once:!0},t??m)])})}(e,f,t)}function m(e){return!0}function f(e){return!!e}i(80559),i.d(t,["OH",0,{sync:!0},"Vh",0,{initial:!0},"pc",0,{sync:!0,initial:!0}])},44794(e,t,i){i.d(t,{v:()=>a});var n=i(4718),r=i(62788),s=i(95488);class o{constructor(e,t){this._observable=new s.I,this._value=e,this._equalityFunction=t}get value(){return(0,r.gc)(this._observable),this._value}set value(e){this._equalityFunction(e,this._value)||(this._value=e,this._observable.notify())}mutate(e){e(this._value),this._observable.notify()}}function a(e,t=n.gh){return new o(e,t)}},88930(e,t,i){i.d(t,{S1:()=>a,VW:()=>l,lL:()=>u,rb:()=>h,t:()=>d});var n=i(97770),r=(i(98623),i(34747));const s=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,o={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function a(e,t,i,s="system"){if("unknown"===i)return e;let o=new r.oh((0,n.wj)(s)),a=r.c9.fromJSDate(e,{zone:o}),l="decades"===i||"centuries"===i?"year":function(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}(i);return"decades"===i&&(t*=10),"centuries"===i&&(t*=100),a.plus({[l]:t}).toJSDate()}function l(e,t,i="milliseconds"){let n=e.getTime(),r=d(t,i,"milliseconds");return new Date(n+r)}function u(e,t,i="system"){let{unit:s}=t,o=Math.max(1,Math.trunc(t.value)),a=new r.oh((0,n.wj)(i)),l=r.c9.fromJSDate(e,{zone:a}),u=e=>e-e%o;switch(s){case"milliseconds":return l.startOf("second").plus({millisecond:u(l.millisecond)}).toJSDate();case"seconds":return l.startOf("minute").plus({second:u(l.second)}).toJSDate();case"minutes":return l.startOf("hour").plus({minute:u(l.minute)}).toJSDate();case"hours":return l.startOf("day").plus({hour:u(l.hour)}).toJSDate();case"days":return l.startOf("month").plus({day:u(l.day-1)}).toJSDate();case"weeks":{let e=l.startOf("year").startOf("week"),t=Math.floor(l.diff(e,"weeks").weeks);return e.plus({week:u(t)}).toJSDate()}case"months":return l.startOf("year").plus({month:u(l.month-1)}).toJSDate();case"years":case"decades":case"centuries":{let e=l.startOf("year"),t=("decades"===s?10:"centuries"===s?100:1)*o,i=e.year-e.year%t;return e.set({year:i}).toJSDate()}case"unknown":return e}}function h(e){let t=s.exec(e);if(!t)return null;let{hh:i,mm:n,ss:r,ms:a}=t.groups;return Number(i)*o.hours+Number(n)*o.minutes+Number(r||0)*o.seconds+Number(a||0)}function d(e,t,i){return 0===e?0:e*o[t]/o[i]}},48526(e,t,i){i.d(t,{A:()=>y});var n,r=i(32198),s=i(4576),o=i(4718),a=i(91429),l=i(5443),u=i(91075),h=i(86738),d=i(16930),c=i(90634),m=i(47610),f=i(56993),p=i(43937);let y=n=class extends u.A{constructor(e){super(function(e){if(!e)return;let{points:t,hasM:i,hasZ:n,spatialReference:r}=e;switch(t??=[],t?.at(0)?.length){case 4:n??=!0,i??=!0;break;case 3:n??=!0!==i,i??=!n;break;default:n??=!1,i??=!1}return r??=d.A.WGS84,{...e,hasM:i,hasZ:n,points:t,spatialReference:r}}(e)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){let e=(0,c.ge)(this);return e?new l.A({...e,spatialReference:this.spatialReference}):null}writePoints(e,t){t.points=(0,o.o8)(this.points)}clone(){let{points:e,spatialReference:t,hasM:i,hasZ:r}=this;return new n({points:(0,o.o8)(e),spatialReference:t.clone(),hasM:i,hasZ:r})}equals(e){if(this===e)return!0;if(null==e)return!1;let t=this.spatialReference,i=e.spatialReference;return!(null!=t!=(null!=i)||null!=t&&null!=i&&!t.equals(i))&&(0,s.aI)(this.points,e.points,m.v6)}addPoint(e){return(0,f.h)(this,e),Array.isArray(e)?this.points.push(e):this.points.push(e.toArray()),this.notifyChange("points"),this}getPoint(e){if(!this._validateInputs(e))return null;let t=this.points[e],i={x:t[0],y:t[1],spatialReference:this.spatialReference},n=2;return this.hasZ&&(i.z=t[2],n=3),this.hasM&&(i.m=t[n]),new h.A(i)}removePoint(e){if(!this._validateInputs(e))return null;let t=new h.A(this.points.splice(e,1)[0],this.spatialReference);return this.notifyChange("points"),t}setPoint(e,t){return this._validateInputs(e)?((0,f.h)(this,t),Array.isArray(t)||(t=t.toArray()),this.points[e]=t,this.notifyChange("points"),this):this}toJSON(e){return this.write({},e)}_validateInputs(e){return null!=e&&e>=0&&e<this.points.length}};(0,r.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"cache",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"extent",null),(0,r.Cg)([(0,a.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],y.prototype,"points",void 0),(0,r.Cg)([(0,p.K)("points")],y.prototype,"writePoints",null),y=n=(0,r.Cg)([(0,a.$K)("esri.geometry.Multipoint")],y),y.prototype.toJSON.isDefaultToJSON=!0},82799(e,t,i){i.d(t,{A:()=>f});var n,r=i(32198),s=i(4718),o=i(91429),a=i(5443),l=i(91075),u=i(86738),h=i(16930),d=i(90634),c=i(56993),m=i(43937);let f=n=class extends l.A{constructor(e){super(function(e){if(!e)return;let{paths:t,hasM:i,hasZ:n,spatialReference:r}=e;switch(t??=[],function(e){return"number"==typeof e[0]?.[0]}(t)&&(t=[t]),t[0]?.[0]?.length){case 4:n??=!0,i??=!0;break;case 3:n??=!0!==i,i??=!n;break;default:n??=!1,i??=!1}return r??=h.A.WGS84,{...e,hasM:i,hasZ:n,paths:t,spatialReference:r}}(e)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(e,t){t.curvePaths=(0,s.o8)(e)}get extent(){let e=(0,d.Z3)(this),{spatialReference:t}=this;return e?new a.A({...e,spatialReference:t}):null}writePaths(e,t){t.paths=(0,s.o8)(this.paths)}addPath(e){if(!e)return;let t=this.paths,i=t.length;if(function(e){return!Array.isArray(e[0])}(e)){let n=[];for(let t=0,i=e.length;t<i;t++)n[t]=e[t].toArray();t[i]=n}else t[i]=e.slice();return this.notifyChange("paths"),this}clone(){let e=new n;return e.spatialReference=this.spatialReference,e.paths=(0,s.o8)(this.paths),e.curvePaths=(0,s.o8)(this.curvePaths),e.hasZ=this.hasZ,e.hasM=this.hasM,e}getPoint(e,t){if(!this._validateInputs(e,t))return null;let i=this.paths[e][t],n=this.hasZ,r=this.hasM;return n&&!r?new u.A(i[0],i[1],i[2],void 0,this.spatialReference):r&&!n?new u.A(i[0],i[1],void 0,i[2],this.spatialReference):n&&r?new u.A(i[0],i[1],i[2],i[3],this.spatialReference):new u.A(i[0],i[1],this.spatialReference)}insertPoint(e,t,i){return this._validateInputs(e,t,!0)?((0,c.h)(this,i),Array.isArray(i)||(i=i.toArray()),this.paths[e].splice(t,0,i),this.notifyChange("paths"),this):this}removePath(e){if(!this._validateInputs(e,null))return null;let t=this.paths.splice(e,1)[0],i=this.spatialReference,n=t.map(e=>new u.A(e,i));return this.notifyChange("paths"),n}removePoint(e,t){if(!this._validateInputs(e,t))return null;let i=new u.A(this.paths[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("paths"),i}setPoint(e,t,i){return this._validateInputs(e,t)?((0,c.h)(this,i),Array.isArray(i)||(i=i.toArray()),this.paths[e][t]=i,this.notifyChange("paths"),this):this}_validateInputs(e,t,i=!1){if(null==e||e<0||e>=this.paths.length)return!1;if(null!=t){let n=this.paths[e];if(i&&(t<0||t>n.length)||!i&&(t<0||t>=n.length))return!1}return!0}toJSON(e){return this.write({},e)}};(0,r.Cg)([(0,o.MZ)({readOnly:!0})],f.prototype,"cache",null),(0,r.Cg)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],f.prototype,"curvePaths",void 0),(0,r.Cg)([(0,m.K)("curvePaths")],f.prototype,"writeCurvePaths",null),(0,r.Cg)([(0,o.MZ)({readOnly:!0})],f.prototype,"extent",null),(0,r.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],f.prototype,"paths",void 0),(0,r.Cg)([(0,m.K)("paths")],f.prototype,"writePaths",null),f=n=(0,r.Cg)([(0,o.$K)("esri.geometry.Polyline")],f),f.prototype.toJSON.isDefaultToJSON=!0},4197(e,t,i){i.d(t,{Vj:()=>h,cj:()=>u,jh:()=>s,l5:()=>a,yH:()=>l});var n=i(34275),r=i(9093);function s(e){return e<=1024?Array(e).fill(0):new Float64Array(e)}function o(e){return((0,n.iu)(e)?e.byteLength/8:e.length)<=1024?Array.from(e):new Float64Array(e)}function a(e,t,i){return Array.isArray(e)?e.slice(t,t+i):e.subarray(t,t+i)}function l(e,t){if(0===t.length)return o(e);if(0===e.length)return o(t);let i=s(e.length+t.length);for(let t=0;t<e.length;++t)i[t]=e[t];for(let n=0;n<t.length;++n)i[e.length+n]=t[n];return i}function u(e){return[...e]}function h(e){let t=(0,r.vt)();for(let i=0;i<16;++i)t[i]=e[i];return t}},70328(e,t,i){i.d(t,{BI:()=>T,C:()=>o,DC:()=>c,Ej:()=>M,Ie:()=>I,Jt:()=>F,Lu:()=>S,Ne:()=>x,RF:()=>d,TF:()=>g,VL:()=>f,aI:()=>C,fA:()=>a,gE:()=>u,gX:()=>_,hZ:()=>w,iT:()=>m,is:()=>A,pg:()=>b,uJ:()=>y,vI:()=>v,vY:()=>l,vt:()=>s,w1:()=>h,yr:()=>p}),i(35522);var n=i(5443),r=(i(19419),i(4197));function s(e=B){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t){for(let i=0;i<6;i++)e[i]=t[i];return e}function a(e,t,i,n,r,o,a=s()){return a[0]=e,a[1]=t,a[2]=i,a[3]=n,a[4]=r,a[5]=o,a}function l(e,t=s()){return function(e,t,i,n=s()){return w(n,z),function(e,t,i=0,n=t.length/3){let r=e[0],s=e[1],o=e[2],a=e[3],l=e[4],u=e[5];for(let e=0;e<n;e++)r=Math.min(r,t[i+3*e]),s=Math.min(s,t[i+3*e+1]),o=Math.min(o,t[i+3*e+2]),a=Math.max(a,t[i+3*e]),l=Math.max(l,t[i+3*e+1]),u=Math.max(u,t[i+3*e+2]);e[0]=r,e[1]=s,e[2]=o,e[3]=a,e[4]=l,e[5]=u}(n,e,t,i),n}(e,0,e.length/3,t)}function u(e,t=(0,r.jh)(24)){let[i,n,s,o,a,l]=e;return t[0]=i,t[1]=n,t[2]=s,t[3]=i,t[4]=n,t[5]=l,t[6]=i,t[7]=a,t[8]=s,t[9]=i,t[10]=a,t[11]=l,t[12]=o,t[13]=n,t[14]=s,t[15]=o,t[16]=n,t[17]=l,t[18]=o,t[19]=a,t[20]=s,t[21]=o,t[22]=a,t[23]=l,t}function h(e,t){return isFinite(e[2])||isFinite(e[5])?new n.A({xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}):new n.A({xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function d(e,t,i=e){i[0]=Math.min(e[0],t[0]),i[1]=Math.min(e[1],t[1]),i[2]=Math.min(e[2],t[2]),i[3]=Math.max(e[3],t[3]),i[4]=Math.max(e[4],t[4]),i[5]=Math.max(e[5],t[5])}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function m(e,[t,i,n]){!function(e,t,i,n){e[0]=Math.min(e[0],t),e[1]=Math.min(e[1],i),e[2]=Math.min(e[2],n),e[3]=Math.max(e[3],t),e[4]=Math.max(e[4],i),e[5]=Math.max(e[5],n)}(e,t,i,n)}function f(e){return e[0]>=e[3]?0:e[3]-e[0]}function p(e){return e[1]>=e[4]?0:e[4]-e[1]}function y(e){return e[2]>=e[5]?0:e[5]-e[2]}function g(e){let t=f(e),i=y(e),n=p(e);return t*t+i*i+n*n}function _(e,t=[0,0,0]){return t[0]=e[0]+f(e)/2,t[1]=e[1]+p(e)/2,t[2]=e[2]+y(e)/2,t}function M(e,t=[0,0,0]){return t[0]=f(e),t[1]=p(e),t[2]=y(e),t}function b(e,t){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function S(e,t){return t[0]=e[3],t[1]=e[4],t[2]=e[5],t}function x(e,t,i=e){return i[0]=t[0],i[1]=t[1],i[2]=t[2],i!==e&&(i[3]=e[3],i[4]=e[4],i[5]=e[5]),i}function v(e,t,i=e){return i[3]=t[0],i[4]=t[1],i[5]=t[2],i!==e&&(i[0]=e[0],i[1]=e[1],i[2]=e[2]),e}function w(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function I(e){return e?w(e,z):s(z)}function F(e,t){return e[0]=t[0],e[1]=t[1],e[2]=-1/0,e[3]=t[2],e[4]=t[3],e[5]=1/0,e}function T(e,t,i,n,r){return e[0]=t,e[1]=i,e[2]=-1/0,e[3]=n,e[4]=r,e[5]=1/0,e}function A(e){return 6===e.length}function C(e,t,i){if(null==e||null==t)return e===t;if(!A(e)||!A(t))return!1;if(i){for(let n=0;n<e.length;n++)if(!i(e[n],t[n]))return!1}else for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}const z=[1/0,1/0,1/0,-1/0,-1/0,-1/0],B=[0,0,0,0,0,0];s(),i.d(t,["qv",0,z,"v_",0,B])},46329(e,t,i){i.d(t,{y:()=>d});var n=i(49186),r=i(4305),s=i(513),o=i(50954),a=i(52006),l=i(49663),u=i(46068),h=i(59803);function d(e,t,i){if((0,a.Xq)(t))return(0,h.T)(e,t,i);if((0,a.n1)(t)){let s=(0,r.m_)(e,t,i)[0];if(null==s)throw new n.A("closestPointOnCurve:unexpected-error","Failed to find close point on bezier curve");return s}if((0,a.aO)(t)){let n=(0,o.pM)(e,t);return(0,s.fM)(n,i)}if((0,a.DA)(t)){let n=(0,l.io)(e,t);return(0,s.fM)(n,i)}let d=(0,u.SW)(e,t);return(0,u.pb)(d,i)}},60408(e,t,i){function n(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function r(e){return void 0!==e.points}function s(e){return void 0!==e.x&&void 0!==e.y}function o(e){return void 0!==e.paths||void 0!==e.curvePaths}function a(e){return void 0!==e.rings||void 0!==e.curveRings}function l(e){return"object"==typeof e&&"vertexAttributes"in e}function u(e){return e?s(e)?"esriGeometryPoint":o(e)?"esriGeometryPolyline":a(e)?"esriGeometryPolygon":n(e)?"esriGeometryEnvelope":r(e)?"esriGeometryMultipoint":null:null}function h(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function d(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}i.d(t,{$B:()=>u,Bi:()=>a,Pv:()=>h,Rg:()=>o,U9:()=>r,W0:()=>d,ZC:()=>n,fT:()=>s,uW:()=>l})},65864(e,t,i){i.d(t,{rS:()=>h,xD:()=>c});var n=i(5443),r=i(91075),s=i(48526),o=i(86738),a=i(39829),l=i(82799),u=i(60408);function h(e){return null==e?null:e instanceof r.A?e:(0,u.fT)(e)?o.A.fromJSON(e):(0,u.Rg)(e)?l.A.fromJSON(e):(0,u.Bi)(e)?a.A.fromJSON(e):(0,u.U9)(e)?s.A.fromJSON(e):(0,u.ZC)(e)?n.A.fromJSON(e):null}const d={esriGeometryPoint:o.A,esriGeometryPolyline:l.A,esriGeometryPolygon:a.A,esriGeometryEnvelope:n.A,esriGeometryMultipoint:s.A,esriGeometryMultiPatch:a.A};function c(e){return e&&d[e]||null}},97770(e,t,i){i.d(t,{Ey:()=>z,F8:()=>C,J2:()=>I,Yq:()=>T,_m:()=>F,iS:()=>A,wj:()=>B});var n=i(66552),r=i(73444),s=i(98623),o=i(34747);const a={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},l={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},u={timeZone:"UTC"},h={year:"numeric",month:"numeric",day:"numeric"},d={year:"numeric",month:"long",day:"numeric"},c={year:"numeric",month:"short",day:"numeric"},m={year:"numeric",month:"long",weekday:"long",day:"numeric"},f={hour:"numeric",minute:"numeric"},p={...f,second:"numeric"},y={hourCycle:"h23"},g={...f,...y},_={...p,...y},M={"short-date":h,"short-date-short-time":{...h,...f},"short-date-short-time-24":{...h,...g},"short-date-long-time":{...h,...p},"short-date-long-time-24":{...h,..._},"short-date-le":h,"short-date-le-short-time":{...h,...f},"short-date-le-short-time-24":{...h,...g},"short-date-le-long-time":{...h,...p},"short-date-le-long-time-24":{...h,..._},"long-month-day-year":d,"long-month-day-year-short-time":{...d,...f},"long-month-day-year-short-time-24":{...d,...g},"long-month-day-year-long-time":{...d,...p},"long-month-day-year-long-time-24":{...d,..._},"day-short-month-year":c,"day-short-month-year-short-time":{...c,...f},"day-short-month-year-short-time-24":{...c,...g},"day-short-month-year-long-time":{...c,...p},"day-short-month-year-long-time-24":{...c,..._},"long-date":m,"long-date-short-time":{...m,...f},"long-date-short-time-24":{...m,...g},"long-date-long-time":{...m,...p},"long-date-long-time-24":{...m,..._},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":f,"long-time":p},b=(0,n.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),S={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"};function x(){let e=(0,r.lR)();return(e&&S[e])??(0,r.QC)()}"mart"!==new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)).find(({type:e})=>"month"===e)?.value.toLowerCase()&&(S.bs="sr-Latn-CS");let v=new WeakMap;const w=M["short-date-short-time"];function I(e){return M[e]}function F(e){let{dateStyle:t,timeStyle:i,hour12:n,year:r,month:s}=e,o={};return t?o.dateStyle=t:r&&(o.year=r,o.month=s||void 0),i&&!o.year&&(o.timeStyle=i,o.hour12="auto"===n?void 0:"always"===n),o}function T(e,t=w){return function(e){let t=v.get(e);if(!t){let i=x(),n=B(e.timeZone??"system"),r={...e,timeZone:n};t=new Intl.DateTimeFormat(i,r),v.set(e,t)}return t}(t).format(e)}function A(e,t=w){return T(new Date(e),{...t,...u,...l})}function C(e,t=w){return T(new Date(`1970-01-01T${e}Z`),{...t,...u,...a})}function z(e,t=w){let i=o.c9.fromISO(e,{setZone:!0});if(!i.isValid)return e;if(t.timeZone)return T(i.toJSDate(),t);let n=0===i.offset?"UTC":t.timeZone,r={...t,timeZone:n};return i.toLocaleString(r,{locale:x()})}function B(e){switch(e){case"system":return s.N;case s.L:return"UTC";default:return e}}(0,r.Ml)(()=>{v=new WeakMap}),i.d(t,["_v",0,b])},73444(e,t,i){i.d(t,{JK:()=>l,Ml:()=>y,QC:()=>d,lR:()=>h,oQ:()=>f});var n=i(36563);let r;i(44208);const s=globalThis.esriConfig?.locale,o=globalThis.document?.documentElement;function a(){let e=o?.getAttribute("lang"),t=globalThis.navigator?.language;return s??e??t??"en"}function l(){return void 0===r&&(r=a()),r}const u=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function h(e=l()){return c(e)?.language}function d(e=l()){let t=c(e);return t?.language&&t?.extlang?e.replace(`${t.language}-`,""):e}function c(e=l()){return u.exec(e)?.groups}const m=[];function f(e){return m.push(e),(0,n.hA)(()=>{m.splice(m.indexOf(e),1)})}new Map;const p=[];function y(e){return p.push(e),(0,n.hA)(()=>p.splice(p.indexOf(e),1))}function g(){let e=a();r!==e&&([...p].forEach(t=>t(e)),r=e,[...m].forEach(t=>t(e)))}globalThis.addEventListener?.("languagechange",g),o&&new MutationObserver(()=>{g()}).observe(o,{attributeFilter:["lang"]})},6518(e,t,i){i.d(t,{F:()=>a});var n=i(44208),r=i(75503),s=i(19419);const o={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new r.wq(9,(0,n.A)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){let e=Array(this._idByBounds.size),t=0;this._idByBounds.forEach((i,n)=>{e[t++]=n}),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter(e=>this._idByBounds.has(e))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;let e=(0,s.Ie)();for(let t of this._boundsById.values())t&&(e[0]=Math.min(t[0],e[0]),e[1]=Math.min(t[1],e[1]),e[2]=Math.max(t[2],e[2]),e[3]=Math.max(t[3],e[3]));return e}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){let t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,i){(function(e){o.minX=e[0],o.minY=e[1],o.maxX=e[2],o.maxY=e[3]})(t),e.search(o,i)}(this._index,e,e=>t(this._idByBounds.get(e)))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){let t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},83221(e,t,i){i.d(t,{A:()=>f});var n=i(4576),r=i(49186),s=i(65529),o=i(53966),a=i(70328),l=i(19419),u=i(90708),h=i(6518),d=i(51441),c=i(37730);const m=(0,a.vt)();class f{constructor(e){this.geometryInfo=e,this._boundsStore=new h.F,this._featuresById=new Map,this._usedMemory=0,this.events=new s.bk,this.featureAdapter=c.T}get usedMemory(){return this._usedMemory}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let e=0;return this._featuresById.forEach(t=>{null!=t.geometry&&t.geometry.coords&&(e+=t.geometry.coords.length)}),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(e){if(null==this.fullBounds)return null;let[t,i,n,r]=this.fullBounds;return{xmin:t,ymin:i,xmax:n,ymax:r,spatialReference:(0,d.ag)(e)}}add(e){this._add(e),this._emitChanged()}addMany(e){for(let t of e)this._add(t);this._emitChanged()}upsertMany(e){let t=e.map(e=>this._upsert(e));return this._emitChanged(),t.filter(n.Ru)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged(),this._usedMemory=0}removeById(e){let t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(let t of e){let e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t){for(let i of e){let e=this._boundsStore.get(i.objectId);e&&t((0,a.Jt)(m,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach(t=>e(t))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,e=>{t(this._featuresById.get(e))})}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;let t=e.objectId;if(null==t)return void o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new r.A("featurestore:invalid-feature","feature id is missing",{feature:e}));let i,n=this._featuresById.get(t);if(n?(e.displayId=n.displayId,i=this._boundsStore.get(t),this._boundsStore.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(n)??0):null!=this.onFeatureAdd&&this.onFeatureAdd(e),!e.geometry?.coords?.length)return this._boundsStore.set(t,null),void this._featuresById.set(t,e);i=(0,u.jQ)(i??(0,l.vt)(),e.geometry),null!=i&&this._boundsStore.set(t,i),this._featuresById.set(t,e),this._usedMemory+=this.estimateFeatureUsedMemory?.(e)??0}_upsert(e){let t=e?.objectId;if(null==t)return o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new r.A("featurestore:invalid-feature","feature id is missing",{feature:e})),null;let i=this._featuresById.get(t);if(!i)return this._add(e),e;this._usedMemory-=this.estimateFeatureUsedMemory?.(i)??0;let{geometry:n,attributes:s}=e;for(let e in s)i.attributes[e]=s[e];return n&&(i.geometry=n,this._boundsStore.set(t,(0,u.jQ)((0,l.vt)(),n)??null)),this._usedMemory+=this.estimateFeatureUsedMemory?.(i)??0,i}_remove(e){null!=this.onFeatureRemove&&this.onFeatureRemove(e);let t=e.objectId;return this._boundsStore.delete(t),this._featuresById.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(e)??0,e}}},37730(e,t,i){var n=i(43334);const r={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t,i)=>new n.Om(t,e.attributes,null,e.objectId,e.displayId,e.distance,e.vertexCount),getGeometry:e=>e.geometry,getCentroid:(e,t)=>e.ensureCentroid(t)};i.d(t,["T",0,r])},71202(e,t,i){i.r(t),i.d(t,{default:()=>b});var n=i(56507),r=i(60999),s=i(49186),o=i(53966),a=i(17676),l=i(60408),u=i(21325),h=i(90708),d=i(83221),c=i(31464),m=i(75752),f=i(85113),p=i(64714),y=i(82832),g=i(95466),_=i(98453),M=i(30524);i(98623);class b{constructor(){this._featureIdInfo=null,this._queryEngine=null,this._snapshotFeatures=async e=>{let t=await this._fetch(e);return this._createFeatures(t)}}destroy(){this._queryEngine?.destroy(),this._queryEngine=this._createDefaultAttributes=null}async load(e,t={}){this._loadOptions={url:e.url,customParameters:e.customParameters};let i=[],[n]=await Promise.all([e.url?this._fetch(t?.signal):null,this._checkProjection(e.spatialReference)]),r=(0,f.BM)(n,{geometryType:e.geometryType}),o=e.fields||r.fields||[],a=null==e.hasZ?r.hasZ:e.hasZ,l=r.geometryType,h=!l,c=e.objectIdField||r.objectIdFieldName||"__OBJECTID",b=e.spatialReference||u.KK,S=e.timeInfo;o===r.fields&&r.unknownFields.length>0&&i.push({name:"geojson-layer:unknown-field-types",message:"Some fields types couldn't be inferred from the features and were dropped",details:{unknownFields:r.unknownFields}});let x=new g.A(o),v=x.dateFields.length>0,w=x.get(c);w?("esriFieldTypeString"!==w.type&&(w.type="esriFieldTypeOID"),w.editable=!1,w.nullable=!1,c=w.name):(w={alias:c,name:c,type:"string"===r.objectIdFieldType?"esriFieldTypeString":"esriFieldTypeOID",editable:!1,nullable:!1},o.unshift(w));let I={};for(let e of o){if(e.name??=e.alias,e.alias??=e.name,!e.name)throw new s.A("geojson-layer:invalid-field-name","field name is missing",{field:e});if(!_.m.jsonValues.includes(e.type))throw new s.A("geojson-layer:invalid-field-type",`invalid type for field "${e.name}"`,{field:e});if(e.name!==w.name){let t=(0,M.lD)(e);void 0!==t&&(I[e.name]=t)}e.length??=(0,M._b)(e)}if(S){if(S.startTimeField){let e=x.get(S.startTimeField);e?(S.startTimeField=e.name,e.type="esriFieldTypeDate",v=!0):S.startTimeField=null}if(S.endTimeField){let e=x.get(S.endTimeField);e?(S.endTimeField=e.name,e.type="esriFieldTypeDate",v=!0):S.endTimeField=null}if(S.trackIdField){let e=x.get(S.trackIdField);e?S.trackIdField=e.name:(S.trackIdField=null,i.push({name:"geojson-layer:invalid-timeInfo-trackIdField",message:"trackIdField is missing",details:{timeInfo:S}}))}!S.startTimeField&&!S.endTimeField&&(i.push({name:"geojson-layer:invalid-timeInfo",message:"startTimeField and endTimeField are missing",details:{timeInfo:S}}),S=null)}let F=l?(0,p.F0)(l):void 0,T=v?{timeZoneIANA:"UTC"}:null,A={warnings:i,featureErrors:[],layerDefinition:{...h?y.Xn:y.CI,drawingInfo:F??void 0,templates:(0,p.e2)(I),extent:void 0,geometryType:l,objectIdField:c,fields:o,hasZ:!!a,timeInfo:S,dateFieldsTimeReference:T}};this._featureIdInfo={type:"object-id",fieldName:c},this._queryEngine=new m.do({fieldsIndex:g.A.fromLayerJSON({fields:o,timeInfo:S,dateFieldsTimeReference:T}),geometryType:l,hasM:!1,hasZ:a,featureIdInfo:this._featureIdInfo,spatialReference:b,timeInfo:S,featureStore:new d.A({geometryType:l,hasM:!1,hasZ:a})});let C=this._queryEngine.fieldsIndex.requiredFields.indexOf(w);C>-1&&this._queryEngine.fieldsIndex.requiredFields.splice(C,1),this._createDefaultAttributes=(0,p.Vx)(I,c);let z=this._createFeatures(n);this._objectIdGenerator=this._createObjectIdGenerator(this._queryEngine,z);let B=this._normalizeFeatures(z,A.featureErrors);this._queryEngine.featureStore.addMany(B);let{fullExtent:E,timeExtent:R}=await this._queryEngine.fetchRecomputedExtents();if(A.layerDefinition.extent=E,R){let{start:e,end:t}=R;A.layerDefinition.timeInfo.timeExtent=[e,t]}return A}async applyEdits(e){let{spatialReference:t,geometryType:i}=this._queryEngine;return await Promise.all([(0,y.$1)(t,i),(0,c.Nk)(e.adds,t),(0,c.Nk)(e.updates,t)]),await this._waitSnapshotComplete(),this._applyEdits(e)}async queryFeatures(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQuery(e,t.signal)}async queryFeatureCount(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForCount(e,t.signal)}async queryObjectIds(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForIds(e,t.signal)}async queryExtent(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForExtent(e,t.signal)}async querySnapping(e,t={}){return await this._waitSnapshotComplete(),await this._queryEngine.executeQueryForSnapping(e,t.signal)}async queryAttributeBins(e,t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeAttributeBinsQuery(e,t.signal)}async refresh(e){this._loadOptions.customParameters=e,this._snapshotTask?.abort(),this._snapshotTask=(0,r.UT)(this._snapshotFeatures),this._snapshotTask.promise.then(e=>{this._queryEngine.featureStore.clear(),this._objectIdGenerator=this._createObjectIdGenerator(this._queryEngine,e);let t=this._normalizeFeatures(e);t&&this._queryEngine.featureStore.addMany(t)},e=>{this._queryEngine.featureStore.clear(),(0,a.zf)(e)||o.A.getLogger("esri.layers.GeoJSONLayer").error(new s.A("geojson-layer:refresh","An error occurred during refresh",{error:e}))}),await this._waitSnapshotComplete();let{fullExtent:t,timeExtent:i}=await this._queryEngine.fetchRecomputedExtents();return{extent:t,timeExtent:i}}_createFeatures(e){if(null==e)return[];let{geometryType:t,hasZ:i}=this._queryEngine,n=this._featureIdInfo.fieldName,r=(0,f.bd)(e,{geometryType:t,hasZ:i,objectIdField:n});if(!(0,u.aI)(this._queryEngine.spatialReference,u.KK))for(let e of r)null!=e.geometry&&(e.geometry=(0,h.Ux)((0,c.Cv)((0,h.zv)(e.geometry,this._queryEngine.geometryType,this._queryEngine.hasZ,!1),u.KK,this._queryEngine.spatialReference)));return r}async _waitSnapshotComplete(){if(this._snapshotTask&&!this._snapshotTask.finished){try{await this._snapshotTask.promise}catch{}return this._waitSnapshotComplete()}}async _fetch(e){let{url:t,customParameters:i}=this._loadOptions,r=(await(0,n.A)(t??"",{responseType:"json",query:{...i},signal:e})).data;return(0,f.sO)(r),r}_normalizeFeatures(e,t){let{fieldsIndex:i}=this._queryEngine,n=[],r=this._featureIdInfo.fieldName;for(let s of e){let e=this._createDefaultAttributes(),o=(0,y.MB)(i,e,s.attributes,!0);o?t?.push(o):(this._assignObjectId(e,s.attributes,!0),s.attributes=e,s.objectId=e[r],n.push(s))}return n}async _applyEdits(e){let{adds:t,updates:i,deletes:n}=e,r={addResults:[],deleteResults:[],updateResults:[],uidToObjectId:{}};if(t?.length&&this._applyAddEdits(r,t),i?.length&&this._applyUpdateEdits(r,i),n?.length){for(let e of n)r.deleteResults.push((0,y.bP)(e));this._queryEngine.featureStore.removeManyById(n)}let{fullExtent:s,timeExtent:o}=await this._queryEngine.fetchRecomputedExtents();return{extent:s,timeExtent:o,featureEditResults:r}}_applyAddEdits(e,t){let{addResults:i}=e,{geometryType:n,hasM:r,hasZ:s,spatialReference:o,featureStore:a,fieldsIndex:u}=this._queryEngine,d=this._featureIdInfo.fieldName,m=[];for(let r of t){if(r.geometry&&n!==(0,l.$B)(r.geometry)){i.push((0,y.Yx)("Incorrect geometry type."));continue}let t=this._createDefaultAttributes(),s=(0,y.MB)(u,t,r.attributes);if(s)i.push(s);else{if(this._assignObjectId(t,r.attributes),r.attributes=t,null!=r.uid){let t=r.attributes[d];e.uidToObjectId[r.uid]=t}if(null!=r.geometry){let e=r.geometry.spatialReference??o;r.geometry=(0,c.Cv)((0,y.CR)(r.geometry,e),e,o)}m.push(r),i.push((0,y.bP)(r.attributes[d]))}}a.addMany((0,h.Di)([],m,n,s,r,this._featureIdInfo))}_applyUpdateEdits({updateResults:e},t){let{geometryType:i,hasM:n,hasZ:r,spatialReference:s,featureStore:o,fieldsIndex:a}=this._queryEngine,u=this._featureIdInfo.fieldName;for(let d of t){let{attributes:t,geometry:m}=d,f=t?.[u];if(null==f){e.push((0,y.Yx)(`Identifier field ${u} missing`));continue}if(!o.has(f)){e.push((0,y.Yx)(`Feature with object id ${f} missing`));continue}let p=(0,h.oN)(o.getFeature(f),i,r,n);if(null!=m){if(i!==(0,l.$B)(m)){e.push((0,y.Yx)("Incorrect geometry type."));continue}let t=m.spatialReference??s;p.geometry=(0,c.Cv)((0,y.CR)(m,t),t,s)}if(t){let i=(0,y.MB)(a,p.attributes,t);if(i){e.push(i);continue}}o.add((0,h.E2)(p,i,r,n,this._featureIdInfo)),e.push((0,y.bP)(f))}}_createObjectIdGenerator(e,t){let i=this._featureIdInfo.fieldName,n=e.fieldsIndex.get(i);if("esriFieldTypeString"===n.type)return()=>n.name+"-"+Date.now().toString(16);let r=-1/0;for(let e of t)e.objectId&&(r=Math.max(r,e.objectId));return r=Math.max(0,r)+1,()=>r++}_assignObjectId(e,t,i=!1){let n=this._featureIdInfo.fieldName;e[n]=i&&n in t?t[n]:this._objectIdGenerator()}async _checkProjection(e){try{await(0,c.Nk)(u.KK,e)}catch{throw new s.A("geojson-layer","Projection not supported")}}}},85113(e,t,i){i.d(t,{BM:()=>I,bd:()=>F,sO:()=>w,xD:()=>d});var n=i(67482),r=i(49186),s=i(21325),o=i(90708),a=i(43334),l=i(92722),u=i(30524);const h={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function d(e){return h[e]}function*c(e){switch(e.type){case"Feature":yield e;break;case"FeatureCollection":for(let t of e.features)t&&(yield t)}}function*m(e){if(e)switch(e.type){case"Point":yield e.coordinates;break;case"LineString":case"MultiPoint":yield*e.coordinates;break;case"MultiLineString":case"Polygon":for(let t of e.coordinates)yield*t;break;case"MultiPolygon":for(let t of e.coordinates)for(let e of t)yield*e}}function f(e){for(let t of e)if(t.length>2)return!0;return!1}function p(e){let t=0;for(let i=0;i<e.length;i++){let n=e[i],r=e[(i+1)%e.length];t+=n[0]*r[1]-r[0]*n[1]}return t<=0}function y(e){let t=e[0],i=e[e.length-1];(t[0]!==i[0]||t[1]!==i[1]||t[2]!==i[2])&&e.push(t)}function g(e,t){let{coordinates:i,type:n}=e,r=t.hasZ??!1;switch(n){case"Point":return new l.A([],[...i],r,!1);case"LineString":return(0,o.Ap)({paths:[i],hasZ:!0},r,!1);case"MultiLineString":return(0,o.Ap)({paths:i,hasZ:!0},r,!1);case"MultiPoint":return(0,o.PR)({points:i,hasZ:!0},r,!1);case"Polygon":case"MultiPolygon":{let e=new l.A([],[],r,!1);for(let t of"Polygon"===n?[i]:i){_(e,t[0],r);for(let i=1;i<t.length;i++)M(e,t[i],r)}return e}}}function _(e,t,i){y(t),function(e){return!p(e)}(t)?S(e,t,i):b(e,t,i)}function M(e,t,i){y(t),function(e){return p(e)}(t)?S(e,t,i):b(e,t,i)}function b(e,t,i){for(let n of t)x(e,n,i);e.lengths.push(t.length)}function S(e,t,i){for(let n=t.length-1;n>=0;n--)x(e,t[n],i);e.lengths.push(t.length)}function x(e,[t,i,n],r){e.coords.push(t,i),r&&e.coords.push(n||0)}function v(e){switch(typeof e){case"string":return(0,n.C)(e)?"esriFieldTypeDate":"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function w(e,t=4326){if(!e)throw new r.A("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==e.type&&"FeatureCollection"!==e.type)throw new r.A("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:e});let{crs:i}=e;if(!i)return;let n="string"==typeof i?i:"name"===i.type?i.properties.name:"EPSG"===i.type?i.properties.code:null,o=(0,s.oT)({wkid:t})?RegExp(".*(CRS84H?|4326)$","i"):RegExp(`.*(${t})$`,"i");if(!n||!o.test(n))throw new r.A("geojson:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:i})}function I(e,t={}){let i,n=[],r=new Set,s=new Set,o=!1,a=null,l=!1,{geometryType:h=null}=t;for(let t of c(e)){let{geometry:e,properties:c,id:p}=t;if((!e||(h||=d(e.type),d(e.type)===h))&&(o||=f(m(e)),l||(l=null!=p,l&&(i=typeof p,c&&(a=Object.keys(c).filter(e=>c[e]===p)))),c&&a&&l&&null!=p&&(a.length>1?a=a.filter(e=>c[e]===p):1===a.length&&(a=c[a[0]]===p?a:[])),c))for(let e in c){if(r.has(e))continue;let t=v(c[e]);if("unknown"===t){s.add(e);continue}s.delete(e),r.add(e);let i=(0,u.rS)(e);i&&n.push({name:i,alias:e,type:t})}}let p=(0,u.rS)(1===a?.length&&a[0]||null)??void 0;if(p)for(let e of n)if(e.name===p&&(0,u.WA)(e)){e.type="esriFieldTypeOID";break}return{fields:n,geometryType:h,hasZ:o,objectIdFieldName:p,objectIdFieldType:i,unknownFields:Array.from(s)}}function F(e,t){return Array.from(function*(e,t={}){let{geometryType:i,objectIdField:n}=t;for(let r of e){let{geometry:e,properties:s,id:o}=r;if(e&&d(e.type)!==i)continue;let l,u=s||{};n&&(l=u[n],null!=o&&!l&&(u[n]=l=o)),yield new a.Om(e&&g(e,t),u,null,l)}}(c(e),t))}},64714(e,t,i){i.d(t,{F0:()=>a,Vx:()=>h,e2:()=>c,f:()=>p});var n=i(44208),r=i(4718),s=i(99352),o=i(93470);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?o.Cb:"esriGeometryPolyline"===e?o.yM:o.WR}}}const l=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let u=1;function h(e,t){if((0,n.A)("esri-csp-restrictions"))return()=>t?{[t]:null,...e}:{...e};try{let i="";t&&(i+=`this${d(t)} = null;`);for(let t in e)i+=`this${d(t)} = ${JSON.stringify(e[t])};`;let n=Function(`\n return class AttributesClass$${u++} {\n constructor() {\n ${i};\n }\n }\n `)();return()=>new n}catch{return()=>t?{[t]:null,...e}:{...e}}}function d(e){return l.test(e)?`.${e}`:`[${JSON.stringify(e)}]`}function c(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,r.o8)(e)}}]}const m={...s.F,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!1,supportsDistance:!1,supportsExtent:!1,supportsQuantization:!1,supportsQueryGeometry:!1,supportsDisjointSpatialRelationship:!1},f={...s.P,supportedStatistics:{...s.P.supportedStatistics,envelope:!1,centroid:!1,convexHull:!1}};function p(e,t,i=!1){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:i?m:s.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:i?f:s.P,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:t,supportsTrueCurveUpdateByTrueCurveClientsOnly:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},82832(e,t,i){i.d(t,{$1:()=>_,CR:()=>g,MB:()=>f,Yx:()=>h,bP:()=>c});var n=i(67482),r=i(18370),s=i(60408),o=i(21325),a=i(30524);class l{constructor(e){this.description=e,this.code=null}}class u{constructor(e){this.globalId=null,this.objectId=null,this.success=!1,this.uniqueId=null,this.error=new l(e)}}function h(e){return new u(e)}class d{constructor(e){this.globalId=null,this.success=!0,this.objectId=this.uniqueId=e}}function c(e){return new d(e)}const m=new Set;function f(e,t,i,n=!1){m.clear();for(let r in i){let s=e.get(r);if(!s)continue;let o=p(s,i[r]);if(m.add(s.name),s&&(n||s.editable)){let e=(0,a.CJ)(s,o);if(e)return h((0,a.uo)(e,s,o));t[s.name]=o}}for(let t of e.requiredFields??[])if(!m.has(t.name))return h(`missing required field "${t.name}"`);return null}function p(e,t){let i=t;return(0,a.WA)(e)&&"string"==typeof t?i=(0,a.XT)(t):(0,a.yM)(e)&&null!=t&&"string"!=typeof t?i=String(t):(0,a.vE)(e)&&"string"==typeof t&&(i=(0,n._)(t)),(0,a.WX)(i)}const y=(0,r.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(3456)]).then(()=>i(3637)));function g(e,t){if(!(0,s.Bi)(e)&&!(0,s.Rg)(e)||!(0,o.fn)(t))return e;let i=y.module;if(null==i)throw TypeError("simplify operator not loaded");return i.simplifyExecute({...e,spatialReference:t})??e}async function _(e,t){(0,o.fn)(e)&&("esriGeometryPolygon"===t||"esriGeometryPolyline"===t)&&await y.getImportPromise()}const M={supportsAutoIntervalBin:!0,supportsFixedIntervalBin:!0,supportsFixedBoundariesBin:!0,supportsDateBin:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsNormalization:!0,supportedStatisticTypes:["COUNT","SUM","AVG","VAR","STDDEV","MIN","MAX","PERCENTILE_CONT","PERCENTILE_DISC","CentroidAggregate","EnvelopeAggregate","ConvexHullAggregate"],supportedNormalizationTypes:["field","log","naturalLog","percentOfTotal","squareRoot"]},b={hasAttachments:!1,capabilities:"query, editing, create, delete, update",useStandardizedQueries:!0,supportsCoordinatesQuantization:!0,supportsReturningQueryGeometry:!0,advancedQueryCapabilities:{supportsQueryAttachments:!1,supportsQueryAttachmentsCountOnly:!1,supportsQueryAttachmentOrderByFields:!1,supportsQueryAttachmentWithTypeWildcard:!1,supportsQueryBins:!0,supportsQueryPivot:!1,supportsSpatialAggregationStatistics:!0,supportedSpatialAggregationStatistics:["EnvelopeAggregate","CentroidAggregate","ConvexHullAggregate"],supportsStatistics:!0,supportsPercentileStatistics:!0,supportsReturningGeometryCentroid:!0,supportsQueryWithDistance:!0,supportsOutDistance:!1,supportsDistinct:!0,supportsReturningQueryExtent:!0,supportsReturningGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQueryWithResultType:!0,supportsSqlExpression:!0,supportsDisjointSpatialRel:!0,supportsQueryWithCacheHint:!0},queryBinsCapabilities:M},S={...b,supportsCoordinatesQuantization:!1,supportsReturningQueryGeometry:!1,advancedQueryCapabilities:{...b.advancedQueryCapabilities,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:[],supportsReturningGeometryCentroid:!1,supportsQueryWithDistance:!1,supportsReturningQueryExtent:!1,supportsDisjointSpatialRel:!1},queryBinsCapabilities:{...M,supportedStatisticTypes:M.supportedStatisticTypes.filter(e=>"EnvelopeAggregate"!==e&&"CentroidAggregate"!==e&&"ConvexHullAggregate"!==e)}};i.d(t,["CI",0,b,"Xn",0,S])},95466(e,t,i){i.d(t,{A:()=>u});var n=i(49186),r=i(53966),s=i(12195),o=i(30524),a=i(98623),l=i(56400);class u{static fromJSON(e){return new u(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new u(e.fields??[],d(e))}static fromLayerJSON(e){return new u(e.fields??[],d(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;let i=[];for(let e of this.fields){let t=e?.name,n=(0,o.GZ)(t);if(t&&n){let r=(0,o.NF)(t);this._fieldsMap.set(t,e),this._fieldsMap.set(r,e),this._normalizedFieldsMap.set(n,e),i.push(`${r}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,o.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,o.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),!(0,o.te)(e)&&!(0,o.Xz)(e)&&(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}i.sort(),this.uid=i.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(let e of this.fields)!(0,o.te)(e)&&!(0,o.Xz)(e)&&!e.nullable&&void 0===(0,o.lD)(e)&&this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){return(0,o.Vb)({fieldName:e,fieldsMap:this._fieldsMap,normalizedFieldsMap:this._normalizedFieldsMap})}getTimeZone(e){let t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(r.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new n.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),"UTC"):h.has(t.type)?a.L:null:null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,o.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,s.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}const h=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function d(e){let t=new Map;if(!e.fields)return t;let i=!0===e.datesInUnknownTimezone,{timeInfo:n,editFieldsInfo:r}=e,s=(n?"startField"in n?n.startField:n.startTimeField:"")??"",u=(n?"endField"in n?n.endField:n.endTimeField:"")??"",d=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,l.ZS)(e.dateFieldsTimeReference):null,c=r?function(e){return"timeZone"in e}(r)?r.timeZone??d:r.dateFieldsTimeReference?(0,l.ZS)(r.dateFieldsTimeReference):d??"UTC":null,m=n?function(e){return"timeZone"in e}(n)?n.timeZone??d:n.timeReference?(0,l.ZS)(n.timeReference):d:null,f=new Map([[(0,o.NF)(r?.creationDateField??""),c],[(0,o.NF)(r?.editDateField??""),c],[(0,o.NF)(s),m],[(0,o.NF)(u),m]]);for(let{name:n,type:r}of e.fields)if(h.has(r))t.set(n,a.L);else if("date"!==r&&"esriFieldTypeDate"!==r)t.set(n,null);else if(i)t.set(n,a.L);else{let e=f.get((0,o.NF)(n??""))??d;t.set(n,e)}return t}},98453(e,t,i){const n=new(i(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"});i.d(t,["m",0,n])},93470(e,t,i){const n=[252,146,31,255],r={type:"esriSMS",style:"esriSMSCircle",size:6,color:n,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},s={type:"esriSLS",style:"esriSLSSolid",width:.75,color:n};i.d(t,["Cb",0,r,"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,n,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,s])}}]);