@arcgis/core 5.2.0-next.86 → 5.2.0-next.88

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 (691) hide show
  1. package/arcade/Dictionary.js +1 -1
  2. package/arcade/Feature.js +1 -1
  3. package/arcade/ImmutablePointArray.js +1 -1
  4. package/arcade/arcadeAsyncRuntime.js +1 -1
  5. package/arcade/arcadeCompiler.js +1 -1
  6. package/arcade/arcadeRuntime.js +1 -1
  7. package/arcade/containerUtils.js +1 -1
  8. package/arcade/debug.js +1 -1
  9. package/arcade/deepClone.js +1 -1
  10. package/arcade/featureset/actions/SpatialFilter.js +1 -1
  11. package/arcade/featureset/support/FeatureSet.js +1 -1
  12. package/arcade/functions/centroid.js +1 -1
  13. package/arcade/functions/date.js +1 -1
  14. package/arcade/functions/feature.js +1 -1
  15. package/arcade/functions/featuresetbase.js +1 -1
  16. package/arcade/functions/featuresetgeom.js +1 -1
  17. package/arcade/functions/featuresetstats.js +1 -1
  18. package/arcade/functions/featuresetstring.js +1 -1
  19. package/arcade/functions/fieldStats.js +1 -1
  20. package/arcade/functions/geomasync.js +1 -1
  21. package/arcade/functions/geometry.js +1 -1
  22. package/arcade/functions/geomsync.js +1 -1
  23. package/arcade/functions/knowledgegraph.js +1 -1
  24. package/arcade/functions/maths.js +1 -1
  25. package/arcade/functions/stats.js +1 -1
  26. package/arcade/functions/string.js +1 -1
  27. package/arcade/functions/track.js +1 -1
  28. package/arcade/geometry/adapters/accessor.js +2 -0
  29. package/arcade/geometry/adapters/dehydrated.js +2 -0
  30. package/arcade/geometry/adapters/gx.js +2 -0
  31. package/arcade/geometry/adapters/json.js +2 -0
  32. package/arcade/geometry/adapters/optimized.js +2 -0
  33. package/arcade/geometry/adapters/tuple.js +2 -0
  34. package/arcade/geometry/adapters/utils.js +2 -0
  35. package/arcade/geometry/arrayOfPointsConversions.js +2 -0
  36. package/arcade/geometry/constructors.js +1 -1
  37. package/arcade/geometry/functions.js +1 -1
  38. package/arcade/geometry/isSelfIntersecting.js +2 -0
  39. package/arcade/geometry/nearestCoordinate.js +2 -0
  40. package/arcade/geometry/nearestVertex.js +1 -1
  41. package/arcade/geometry/operators.js +1 -1
  42. package/arcade/geometry/operatorsWorker.js +1 -1
  43. package/arcade/geometry/rotate.js +1 -1
  44. package/arcade/geometry.js +2 -0
  45. package/arcade/languageUtils.js +1 -1
  46. package/arcade.js +1 -1
  47. package/arcgisGlobal.d.ts +1 -0
  48. package/assets/esri/core/workers/RemoteClient.js +1 -1
  49. package/assets/esri/core/workers/chunks/{0b8c9657975388f1e4c8.js → 00181785a180e934bf7c.js} +1 -1
  50. package/assets/esri/core/workers/chunks/{01e648b258efa6408070.js → 0336f4f8498a22347720.js} +1 -1
  51. package/assets/esri/core/workers/chunks/0439d4f4dfd6e78be97e.js +1 -0
  52. package/assets/esri/core/workers/chunks/05393b23ab24126d4236.js +1 -0
  53. package/assets/esri/core/workers/chunks/08263c07d92c48806834.js +1 -0
  54. package/assets/esri/core/workers/chunks/09e01fd1c199be0c8e03.js +1 -0
  55. package/assets/esri/core/workers/chunks/{12d6d73ca1fa55640a4f.js → 0b4a7209b99227a842ad.js} +1 -1
  56. package/assets/esri/core/workers/chunks/{073224c6ac77dc9e97af.js → 0b7860a3f18d252b774a.js} +1 -1
  57. package/assets/esri/core/workers/chunks/0d95f72e1c07ab867d21.js +1 -0
  58. package/assets/esri/core/workers/chunks/0dbbac7a2378728571a7.js +1 -0
  59. package/assets/esri/core/workers/chunks/0f15468ffefd3e9a17b8.js +29 -0
  60. package/assets/esri/core/workers/chunks/{3aeb934ebdab1d8c4608.js → 12a3b55195ce3244259d.js} +1 -1
  61. package/assets/esri/core/workers/chunks/13e92f6a9573a2818fb7.js +1 -0
  62. package/assets/esri/core/workers/chunks/19aa4072764937743bd8.js +1 -0
  63. package/assets/esri/core/workers/chunks/19e93d4d37018e3ee849.js +1 -0
  64. package/assets/esri/core/workers/chunks/{911f3a1b8dd4bc5c9782.js → 1bf5c0a4bc5a960a3fa2.js} +1 -1
  65. package/assets/esri/core/workers/chunks/1c378d489c5402888f76.js +1 -0
  66. package/assets/esri/core/workers/chunks/1d1e8d8b1fcf2d9f3dfc.js +1 -0
  67. package/assets/esri/core/workers/chunks/{e5c8f9fef88ca33624e9.js → 1e087fb13b7b0a5d6fec.js} +1 -1
  68. package/assets/esri/core/workers/chunks/1e192ac0533a5c0b5a7a.js +1 -0
  69. package/assets/esri/core/workers/chunks/1f9d6180a96d557838e9.js +1 -0
  70. package/assets/esri/core/workers/chunks/1fe077f57a087c0e9119.js +1 -0
  71. package/assets/esri/core/workers/chunks/212222b64039d436b9a6.js +1 -0
  72. package/assets/esri/core/workers/chunks/22c94f9a69b2157f8dbd.js +1 -0
  73. package/assets/esri/core/workers/chunks/25a2e02677a74834c8b5.js +1 -0
  74. package/assets/esri/core/workers/chunks/26ecc841396e5e719b6a.js +1 -0
  75. package/assets/esri/core/workers/chunks/{fcf7299e2ee904ab9882.js → 2724900f7992a79fc442.js} +1 -1
  76. package/assets/esri/core/workers/chunks/27c0bed59626c7f64125.js +1 -0
  77. package/assets/esri/core/workers/chunks/2bc3e7f394386fa75447.js +1 -0
  78. package/assets/esri/core/workers/chunks/2c9783e3b44986e86797.js +1 -0
  79. package/assets/esri/core/workers/chunks/2ceb07b125c84b51f02a.js +1 -0
  80. package/assets/esri/core/workers/chunks/2cf2f2842c19be84ab4d.js +1 -0
  81. package/assets/esri/core/workers/chunks/2d07d5a9ec67c39ef10c.js +1 -0
  82. package/assets/esri/core/workers/chunks/{a7c715648a07ed70b122.js → 2ec44ebc48beeba11201.js} +1 -1
  83. package/assets/esri/core/workers/chunks/2f2d699b072472fa710e.js +1 -0
  84. package/assets/esri/core/workers/chunks/2f3bbc1f7d4abbbeec2f.js +1 -0
  85. package/assets/esri/core/workers/chunks/304a36e862947fdb05c0.js +1 -0
  86. package/assets/esri/core/workers/chunks/30af0f7c4cfa541c9efd.js +1 -0
  87. package/assets/esri/core/workers/chunks/32f11b4aeae1ef00e466.js +1 -0
  88. package/assets/esri/core/workers/chunks/35d3e60d15294f268992.js +1 -0
  89. package/assets/esri/core/workers/chunks/37a2be4380796f14fe4e.js +1 -0
  90. package/assets/esri/core/workers/chunks/37adb55d9f83faad1712.js +1 -0
  91. package/assets/esri/core/workers/chunks/3869dca884d7ca6488f5.js +1 -0
  92. package/assets/esri/core/workers/chunks/3a9c6f58a1a065c14017.js +1 -0
  93. package/assets/esri/core/workers/chunks/3b552afffaa78bf4fe18.js +1 -0
  94. package/assets/esri/core/workers/chunks/{fe06cc2f90b2d551e4c1.js → 3bbd2d4a19c3b7ad82e4.js} +1 -1
  95. package/assets/esri/core/workers/chunks/3de07326da4c47cd2aab.js +1 -0
  96. package/assets/esri/core/workers/chunks/3f5234120d3a14186c1c.js +1 -0
  97. package/assets/esri/core/workers/chunks/414093fa4957d17bf551.js +1 -0
  98. package/assets/esri/core/workers/chunks/{dbd6bbd3e834ff9d220e.js → 41cf6163758d28fb1968.js} +1 -1
  99. package/assets/esri/core/workers/chunks/466bb1b69aabaeabad6a.js +1 -0
  100. package/assets/esri/core/workers/chunks/47e60b2acec18ef37b6c.js +1 -0
  101. package/assets/esri/core/workers/chunks/4849849fc8330d05a8e6.js +1 -0
  102. package/assets/esri/core/workers/chunks/497c5a9c95e9a89ac217.js +1 -0
  103. package/assets/esri/core/workers/chunks/49d36e54644dc2966128.js +1 -0
  104. package/assets/esri/core/workers/chunks/4aefe6fd4d725a107758.js +1 -0
  105. package/assets/esri/core/workers/chunks/4b6f433022a6822706cb.js +1 -0
  106. package/assets/esri/core/workers/chunks/4d4ebb4e4d83c1123b63.js +1 -0
  107. package/assets/esri/core/workers/chunks/4ee99e654dad6f09abee.js +1 -0
  108. package/assets/esri/core/workers/chunks/4f0804429d8989aa4c51.js +1 -0
  109. package/assets/esri/core/workers/chunks/50525b617ef78086d3c7.js +1 -0
  110. package/assets/esri/core/workers/chunks/5235b9c21ac4156c2375.js +1 -0
  111. package/assets/esri/core/workers/chunks/52422500ca3d6cf2e596.js +1 -0
  112. package/assets/esri/core/workers/chunks/527b87fddf33bb5d519e.js +1 -0
  113. package/assets/esri/core/workers/chunks/55572cefc752b755cf0a.js +1 -0
  114. package/assets/esri/core/workers/chunks/{a4bae2396fae48b57047.js → 595edbc1e9bba47d5676.js} +1 -1
  115. package/assets/esri/core/workers/chunks/59cf23cc8f91b5bea31a.js +1 -0
  116. package/assets/esri/core/workers/chunks/5af16937904c06fb06f6.js +1 -0
  117. package/assets/esri/core/workers/chunks/5d7a5aa608ed6192b016.js +1 -0
  118. package/assets/esri/core/workers/chunks/5d9c92c4e60a4696fdad.js +1 -0
  119. package/assets/esri/core/workers/chunks/5ed7bc9e6cb7cdee92e2.js +1 -0
  120. package/assets/esri/core/workers/chunks/{272c8ccdbd3dcc14e99b.js → 5ed89c862eee1345e3af.js} +1 -1
  121. package/assets/esri/core/workers/chunks/5fbd7d8d8896a224fff3.js +1 -0
  122. package/assets/esri/core/workers/chunks/64ce2d060ae7cdd412cf.js +1 -0
  123. package/assets/esri/core/workers/chunks/65f4ca7201e7267bfc81.js +1 -0
  124. package/assets/esri/core/workers/chunks/67efdd296007a809586c.js +1 -0
  125. package/assets/esri/core/workers/chunks/691434d4c6a38e63d819.js +1 -0
  126. package/assets/esri/core/workers/chunks/{ba67aaa08e4f11e1140a.js → 696cb3bf167327d5b0b9.js} +1 -1
  127. package/assets/esri/core/workers/chunks/69700ed16727ed0c4e3a.js +1 -0
  128. package/assets/esri/core/workers/chunks/6a2d890640b2cd6c5ccb.js +1 -0
  129. package/assets/esri/core/workers/chunks/6a4f007f87d9f2a6fbc4.js +1 -0
  130. package/assets/esri/core/workers/chunks/{7343a44a2382a1d68497.js → 6b9dbf43c0659e55c539.js} +1 -1
  131. package/assets/esri/core/workers/chunks/6de5c6af62776e1b9776.js +1 -0
  132. package/assets/esri/core/workers/chunks/70dc25f721c0ac5f3660.js +1 -0
  133. package/assets/esri/core/workers/chunks/71308dca3fd05687e7bd.js +1 -0
  134. package/assets/esri/core/workers/chunks/75bddfe2be64379db8fd.js +1 -0
  135. package/assets/esri/core/workers/chunks/78085f804969c9282700.js +1 -0
  136. package/assets/esri/core/workers/chunks/7aa9b61ca9b66f30449f.js +1 -0
  137. package/assets/esri/core/workers/chunks/7c1f989ee3d13dfe7ebd.js +1 -0
  138. package/assets/esri/core/workers/chunks/7c56446184abcd14678b.js +1 -0
  139. package/assets/esri/core/workers/chunks/7ce9c84f90e9dd1deb38.js +1 -0
  140. package/assets/esri/core/workers/chunks/7f55a150e4da02786311.js +1 -0
  141. package/assets/esri/core/workers/chunks/7fc3231768ce79e375ae.js +1 -0
  142. package/assets/esri/core/workers/chunks/7febb434f2de2436435f.js +1 -0
  143. package/assets/esri/core/workers/chunks/847b02d188ece9b563ad.js +1 -0
  144. package/assets/esri/core/workers/chunks/903c7bd079888f65fef1.js +1 -0
  145. package/assets/esri/core/workers/chunks/{bdafd4f03585351cecc3.js → 909a85cb6e0e9a3c8567.js} +1 -1
  146. package/assets/esri/core/workers/chunks/9226205850e35b7fc610.js +1 -0
  147. package/assets/esri/core/workers/chunks/922c24b9bb68f4201b03.js +1 -0
  148. package/assets/esri/core/workers/chunks/9407db0584c730591161.js +1 -0
  149. package/assets/esri/core/workers/chunks/9474c913e53f69679197.js +1 -0
  150. package/assets/esri/core/workers/chunks/94ddfe165ac25aef8229.js +1 -0
  151. package/assets/esri/core/workers/chunks/{75a2c43311f5f9058f62.js → 94f62ff81cc6fb83e73f.js} +1 -1
  152. package/assets/esri/core/workers/chunks/95ccac3734ac70387b03.js +1 -0
  153. package/assets/esri/core/workers/chunks/97c7dfd29ad4c2966cb4.js +1 -0
  154. package/assets/esri/core/workers/chunks/{1354b8442c2c501238f1.js → 986c5024f22bbfc49aba.js} +1 -1
  155. package/assets/esri/core/workers/chunks/9b81bd62a2c72f592db1.js +1 -0
  156. package/assets/esri/core/workers/chunks/{62596065747abce1964d.js → 9b8e33985310f281f084.js} +1 -1
  157. package/assets/esri/core/workers/chunks/9c7fc1c97125ea2a7b7e.js +1 -0
  158. package/assets/esri/core/workers/chunks/9e2b3754a76e0dd4a94a.js +1 -0
  159. package/assets/esri/core/workers/chunks/9eb3e6800f5034f1593f.js +1 -0
  160. package/assets/esri/core/workers/chunks/a0300fac6a06e7d89a52.js +1 -0
  161. package/assets/esri/core/workers/chunks/a03e7333e3328036f478.js +1 -0
  162. package/assets/esri/core/workers/chunks/a0565137027c83108953.js +1 -0
  163. package/assets/esri/core/workers/chunks/a3b403f8acb90af19adb.js +1 -0
  164. package/assets/esri/core/workers/chunks/a4596f028758649da099.js +1 -0
  165. package/assets/esri/core/workers/chunks/a46ac0be9aabc4cfedc7.js +1 -0
  166. package/assets/esri/core/workers/chunks/a4a22149077c7780481c.js +1 -0
  167. package/assets/esri/core/workers/chunks/a6ab627e965fe7e5bd52.js +1 -0
  168. package/assets/esri/core/workers/chunks/a7954ad55a241af9064f.js +1 -0
  169. package/assets/esri/core/workers/chunks/a8b878c12cb1a6ea012b.js +1 -0
  170. package/assets/esri/core/workers/chunks/{ec0803cfa5051c4d300d.js → aa0ef4493a7e9bed159f.js} +1 -1
  171. package/assets/esri/core/workers/chunks/aa8ab28e0c1ae3b55ac0.js +1 -0
  172. package/assets/esri/core/workers/chunks/ab9927a32350063cb5f0.js +1 -0
  173. package/assets/esri/core/workers/chunks/adc2620cbe735532004d.js +1 -0
  174. package/assets/esri/core/workers/chunks/add834f867900a7091d2.js +1 -0
  175. package/assets/esri/core/workers/chunks/{bbf4c2ee4d56bb0f1a81.js → afa6b74d9ca9ed0154af.js} +1 -1
  176. package/assets/esri/core/workers/chunks/b0e25ccb5a1e57a82628.js +1 -0
  177. package/assets/esri/core/workers/chunks/b17a9853250ab626d58d.js +1 -0
  178. package/assets/esri/core/workers/chunks/b19cff0e43fab2632660.js +1 -0
  179. package/assets/esri/core/workers/chunks/b2e2234fdf8e05bc3312.js +1 -0
  180. package/assets/esri/core/workers/chunks/b6063d1755def00d4889.js +1 -0
  181. package/assets/esri/core/workers/chunks/{7c3d46201b11a45f79d0.js → b6f67302d0d5d57add66.js} +74 -107
  182. package/assets/esri/core/workers/chunks/bb56ab53c5a10c9518a6.js +1 -0
  183. package/assets/esri/core/workers/chunks/bd2602195e265f8fdb15.js +1 -0
  184. package/assets/esri/core/workers/chunks/{f762f0f6c83748d8e328.js → bee411f08e2a9499f8f5.js} +1 -1
  185. package/assets/esri/core/workers/chunks/bf357afbabaa8dec4d75.js +1 -0
  186. package/assets/esri/core/workers/chunks/bf7875fda48b15271a10.js +1 -0
  187. package/assets/esri/core/workers/chunks/bfa59005a9b191d18546.js +1 -0
  188. package/assets/esri/core/workers/chunks/bfb8fc6b940bd5510e29.js +1 -0
  189. package/assets/esri/core/workers/chunks/{b311658b8a223efe35d6.js → c0e073a77484b0dfd383.js} +1 -1
  190. package/assets/esri/core/workers/chunks/c13aa45ccd5efb662f88.js +1 -0
  191. package/assets/esri/core/workers/chunks/c176df477bbbbc9c6922.js +1 -0
  192. package/assets/esri/core/workers/chunks/c35553d07ad169910742.js +1 -0
  193. package/assets/esri/core/workers/chunks/c4f582dec07895d3bb93.js +1 -0
  194. package/assets/esri/core/workers/chunks/c4fef90cf08bbe4f0bb5.js +1 -0
  195. package/assets/esri/core/workers/chunks/c5c2fed38e0ccf84f1fa.js +1 -0
  196. package/assets/esri/core/workers/chunks/c80277a313205853a857.js +1 -0
  197. package/assets/esri/core/workers/chunks/c91042f8bf886056a29c.js +1 -0
  198. package/assets/esri/core/workers/chunks/ca204c110438f7315790.js +1 -0
  199. package/assets/esri/core/workers/chunks/ca36d85a47179d95f2fc.js +1 -0
  200. package/assets/esri/core/workers/chunks/cb6fb04fe5c8d90d4196.js +1 -0
  201. package/assets/esri/core/workers/chunks/ccaeabc3be07f3c96f50.js +1 -0
  202. package/assets/esri/core/workers/chunks/{85f459297b0214141d43.js → cd02a6078443b8f63927.js} +1 -1
  203. package/assets/esri/core/workers/chunks/{e64ccdb8328eb6514e59.js → cd8b3c2fc27c239f9954.js} +1 -1
  204. package/assets/esri/core/workers/chunks/{3a36c132ceddef3d15c8.js → cdbcc4cd9145dd93db49.js} +1 -1
  205. package/assets/esri/core/workers/chunks/{e90feee1756a2209f93f.js → ce9fe1a89b474f9e7ee7.js} +1 -1
  206. package/assets/esri/core/workers/chunks/d04a01dc1b4947478264.js +1 -0
  207. package/assets/esri/core/workers/chunks/d0cf9ff48f051adbd455.js +1 -0
  208. package/assets/esri/core/workers/chunks/d119671a32a050517cca.js +1 -0
  209. package/assets/esri/core/workers/chunks/d26be8313526ecea9c68.js +1 -0
  210. package/assets/esri/core/workers/chunks/d270b49c037085503016.js +1 -0
  211. package/assets/esri/core/workers/chunks/{f5eee6e548bb24b5a003.js → d30a7fc8dab4ebb8893b.js} +1 -1
  212. package/assets/esri/core/workers/chunks/d344c3fd9f6b113bbcd7.js +1 -0
  213. package/assets/esri/core/workers/chunks/d36bbda9b7261534568f.js +1 -0
  214. package/assets/esri/core/workers/chunks/d4b0012ae1d3b8a9ba01.js +1 -0
  215. package/assets/esri/core/workers/chunks/d6b87134e0d120c68d2f.js +1 -0
  216. package/assets/esri/core/workers/chunks/d6f7aa280f1bd201d4ef.js +1 -0
  217. package/assets/esri/core/workers/chunks/da9aacdb0b4a04f42fb8.js +1 -0
  218. package/assets/esri/core/workers/chunks/daf7b647bd960d8bad56.js +1 -0
  219. package/assets/esri/core/workers/chunks/{10ac92dcd3738ec23dfb.js → db04c1bad40d068306ba.js} +1 -1
  220. package/assets/esri/core/workers/chunks/{3427f0c026301bcf7272.js → db180f8d25471cfa48af.js} +1 -1
  221. package/assets/esri/core/workers/chunks/db4c9a9103e979292948.js +1 -0
  222. package/assets/esri/core/workers/chunks/dceaa6b68eee090073b1.js +1 -0
  223. package/assets/esri/core/workers/chunks/ddf284648a73b6993737.js +1 -0
  224. package/assets/esri/core/workers/chunks/dfbe0efe453587ec5eb2.js +1 -0
  225. package/assets/esri/core/workers/chunks/e1682e94cc714197ebb4.js +1 -0
  226. package/assets/esri/core/workers/chunks/e2576c37cf13dc421f69.js +1 -0
  227. package/assets/esri/core/workers/chunks/e32a14770e036fce79d9.js +1 -0
  228. package/assets/esri/core/workers/chunks/e370a3337b3c90240e73.js +1 -0
  229. package/assets/esri/core/workers/chunks/e39bccc000c768120a32.js +1 -0
  230. package/assets/esri/core/workers/chunks/e40e08029325f43452d0.js +1 -0
  231. package/assets/esri/core/workers/chunks/{0d7d54e74b5639a0be6e.js → e707534a700a2de687ca.js} +1 -1
  232. package/assets/esri/core/workers/chunks/e823c9ccb7bc348d8824.js +1 -0
  233. package/assets/esri/core/workers/chunks/e88eee4c2fc4229c2a8b.js +1 -0
  234. package/assets/esri/core/workers/chunks/e9f29019aa78f07ace66.js +1 -0
  235. package/assets/esri/core/workers/chunks/ea75c23c44452f45a949.js +1 -0
  236. package/assets/esri/core/workers/chunks/ea91c57a0b31f3f65ee5.js +1 -0
  237. package/assets/esri/core/workers/chunks/eacf216dcd6397c7bd7f.js +1 -0
  238. package/assets/esri/core/workers/chunks/ee77999df3785468b2b6.js +1 -0
  239. package/assets/esri/core/workers/chunks/ef851a2cff76fd211c07.js +1 -0
  240. package/assets/esri/core/workers/chunks/eff359210893239ecec3.js +1 -0
  241. package/assets/esri/core/workers/chunks/f106cc7f559856f69b9f.js +1 -0
  242. package/assets/esri/core/workers/chunks/f210cd8afb86b6eaf7a2.js +1 -0
  243. package/assets/esri/core/workers/chunks/f247f3c5148fa0237a7c.js +1 -0
  244. package/assets/esri/core/workers/chunks/f250a7aa571889c5ad4b.js +1 -0
  245. package/assets/esri/core/workers/chunks/{a26dc2647a15b830390e.js → f253875feb11883deb84.js} +1 -1
  246. package/assets/esri/core/workers/chunks/f31330d628d7e741bf5b.js +1 -0
  247. package/assets/esri/core/workers/chunks/f3d57c5b9dffd12e45b4.js +1 -0
  248. package/assets/esri/core/workers/chunks/f43ae1c2f89e1c4396cc.js +1 -0
  249. package/assets/esri/core/workers/chunks/f60ed579981913d44675.js +1 -0
  250. package/assets/esri/core/workers/chunks/{147d1e7e2852a4197e5f.js → f665fb4c5633e0a459d8.js} +1 -1
  251. package/assets/esri/core/workers/chunks/f66e597e524b26e61cd3.js +1 -0
  252. package/assets/esri/core/workers/chunks/{bec140a69cfdb0519680.js → f74c7cbe4bd12f73ae90.js} +1 -1
  253. package/assets/esri/core/workers/chunks/{e6f6b38eda34708d61c5.js → f7f2102b16d201e5f531.js} +1 -1
  254. package/assets/esri/core/workers/chunks/f82ae237452b97cfc024.js +1 -0
  255. package/assets/esri/core/workers/chunks/f8f7b86bbd62106bc3d4.js +1 -0
  256. package/assets/esri/core/workers/chunks/f9a4387f850d85c44ca5.js +1 -0
  257. package/assets/esri/core/workers/chunks/fbc7576ed12964059da6.js +1 -0
  258. package/assets/esri/core/workers/chunks/fc4a5996fc03f6c32030.js +1 -0
  259. package/assets/esri/core/workers/chunks/fdd0e6d9927d3c43b0d3.js +1 -0
  260. package/assets/esri/core/workers/chunks/fddcb8be714ad18ad0c8.js +1 -0
  261. package/assets/esri/core/workers/chunks/{baa46edd87e97f922128.js → ffe749d790320dddfa74.js} +1 -1
  262. package/assets/esri/themes/base/widgets/_BuildingDisciplinesTree.scss +1 -1
  263. package/assets/esri/themes/base/widgets/_Daylight.scss +2 -2
  264. package/assets/esri/themes/base/widgets/_Editor.scss +1 -1
  265. package/assets/esri/themes/base/widgets/_Sketch.scss +1 -1
  266. package/assets/esri/themes/base/widgets/_SketchTooltipControls.scss +1 -1
  267. package/assets/esri/themes/base/widgets/_Slider.scss +1 -1
  268. package/assets/esri/themes/base/widgets/_SnappingControls.scss +1 -1
  269. package/assets/esri/themes/base/widgets/_TimezonePicker.scss +1 -1
  270. package/chunks/Bufferer-CclWhXVb.js +1 -1
  271. package/chunks/Distance2DCalculator-DjIp2uQi.js +1 -1
  272. package/chunks/EmissionComposite.glsl.js +2 -2
  273. package/chunks/Envelope.js +1 -1
  274. package/chunks/GeodeticDistanceCalculator-zRp89-dW.js +1 -1
  275. package/chunks/GeodeticUtils.js +1 -1
  276. package/chunks/GeographicTransformation.js +1 -1
  277. package/chunks/Geometry.js +1 -1
  278. package/chunks/GlobalIllumination.glsl.js +69 -102
  279. package/chunks/GlowComposite.glsl.js +9 -7
  280. package/chunks/MultiPathImpl.js +1 -1
  281. package/chunks/OperatorCentroid2D.js +1 -1
  282. package/chunks/OperatorContains.js +2 -0
  283. package/chunks/OperatorCrosses.js +1 -1
  284. package/chunks/OperatorCut.js +1 -1
  285. package/chunks/OperatorDisjoint.js +2 -0
  286. package/chunks/OperatorDistance.js +2 -0
  287. package/chunks/OperatorEquals.js +2 -0
  288. package/chunks/OperatorGeodesicBuffer.js +1 -1
  289. package/chunks/OperatorGeodeticArea.js +1 -1
  290. package/chunks/OperatorGeodeticDensifyByLength.js +1 -1
  291. package/chunks/OperatorGeodeticLength.js +1 -1
  292. package/chunks/OperatorGraphicBuffer.js +1 -1
  293. package/chunks/OperatorIntegrate.js +1 -1
  294. package/chunks/OperatorIntersects.js +1 -1
  295. package/chunks/OperatorMultiPartToSinglePart.js +1 -1
  296. package/chunks/OperatorOverlaps.js +1 -1
  297. package/chunks/OperatorProximity.js +1 -1
  298. package/chunks/OperatorProximityGeodesic.js +1 -1
  299. package/chunks/OperatorRelate.js +2 -0
  300. package/chunks/OperatorShapePreservingLength.js +1 -1
  301. package/chunks/OperatorShapePreservingProject.js +1 -1
  302. package/chunks/OperatorSimplifyOGC.js +1 -1
  303. package/chunks/OperatorTouches.js +1 -1
  304. package/chunks/OperatorWithin.js +1 -1
  305. package/chunks/Point2D.js +1 -1
  306. package/chunks/ProjectionTransformation.js +1 -1
  307. package/chunks/RibbonLine.glsl.js +202 -141
  308. package/chunks/SideCalculator2D-DX0718xq.js +1 -1
  309. package/chunks/UnitFactory.js +1 -1
  310. package/chunks/aiServices.js +1 -1
  311. package/chunks/array.js +1 -1
  312. package/chunks/languageUtils.js +1 -1
  313. package/config.js +1 -1
  314. package/core/libs/gl-matrix-2/math/vec3.js +1 -1
  315. package/core/sql/TimeOnly.js +1 -1
  316. package/core/units.js +1 -1
  317. package/editing/sharedTemplates/executor/builders/bufferLineToPolygon.js +1 -1
  318. package/editing/sharedTemplates/executor/builders/bufferPointToPolygon.js +1 -1
  319. package/editing/sharedTemplates/executor/builders/bufferPolygonToPolygon.js +1 -1
  320. package/editing/sharedTemplates/executor/builders/pointAtIntersectionVerticesOfLine.js +1 -1
  321. package/editing/sharedTemplates/executor/builders/support/offsetUtils.js +1 -1
  322. package/form/elements/inputs/inputUtils.js +1 -1
  323. package/geometry/operators/areaOperator.js +1 -1
  324. package/geometry/operators/bufferOperator.js +1 -1
  325. package/geometry/operators/centroidOperator.js +1 -1
  326. package/geometry/operators/clipOperator.js +1 -1
  327. package/geometry/operators/containsOperator.js +1 -1
  328. package/geometry/operators/convexHullOperator.js +1 -1
  329. package/geometry/operators/crossesOperator.js +1 -1
  330. package/geometry/operators/cutOperator.js +1 -1
  331. package/geometry/operators/densifyOperator.js +1 -1
  332. package/geometry/operators/differenceOperator.js +1 -1
  333. package/geometry/operators/disjointOperator.js +1 -1
  334. package/geometry/operators/distanceOperator.js +1 -1
  335. package/geometry/operators/equalsOperator.js +1 -1
  336. package/geometry/operators/generalizeOperator.js +1 -1
  337. package/geometry/operators/geodesicBufferOperator.js +1 -1
  338. package/geometry/operators/geodeticAreaOperator.js +1 -1
  339. package/geometry/operators/geodeticDensifyOperator.js +1 -1
  340. package/geometry/operators/geodeticDistanceOperator.js +1 -1
  341. package/geometry/operators/geodeticLengthOperator.js +1 -1
  342. package/geometry/operators/gx/operatorAutoComplete.js +1 -1
  343. package/geometry/operators/gx/operatorBuffer.js +1 -1
  344. package/geometry/operators/gx/operatorDifference.js +1 -1
  345. package/geometry/operators/gx/operatorIntersection.js +1 -1
  346. package/geometry/operators/gx/operatorLabelPoint.js +1 -1
  347. package/geometry/operators/gx/operatorLinesToPolygons.js +1 -1
  348. package/geometry/operators/gx/operatorPolygonOverlay.js +1 -1
  349. package/geometry/operators/gx/operatorSimplify.js +1 -1
  350. package/geometry/operators/gx/operatorSymmetricDifference.js +1 -1
  351. package/geometry/operators/gx/operatorUnion.js +1 -1
  352. package/geometry/operators/intersectionOperator.js +1 -1
  353. package/geometry/operators/intersectsOperator.js +1 -1
  354. package/geometry/operators/json/containsOperator.js +1 -1
  355. package/geometry/operators/json/crossesOperator.js +1 -1
  356. package/geometry/operators/json/disjointOperator.js +1 -1
  357. package/geometry/operators/json/intersectsOperator.js +1 -1
  358. package/geometry/operators/json/overlapsOperator.js +1 -1
  359. package/geometry/operators/json/touchesOperator.js +1 -1
  360. package/geometry/operators/json/unionOperator.js +1 -1
  361. package/geometry/operators/json/withinOperator.js +1 -1
  362. package/geometry/operators/labelPointOperator.js +1 -1
  363. package/geometry/operators/lengthOperator.js +1 -1
  364. package/geometry/operators/multiPartToSinglePartOperator.js +1 -1
  365. package/geometry/operators/offsetOperator.js +1 -1
  366. package/geometry/operators/overlapsOperator.js +1 -1
  367. package/geometry/operators/projectOperator.d.ts +1 -1
  368. package/geometry/operators/proximityOperator.js +1 -1
  369. package/geometry/operators/relateOperator.js +1 -1
  370. package/geometry/operators/reshapeOperator.js +1 -1
  371. package/geometry/operators/shapePreservingProjectOperator.d.ts +15 -1
  372. package/geometry/operators/simplifyOGCOperator.js +1 -1
  373. package/geometry/operators/simplifyOperator.js +1 -1
  374. package/geometry/operators/support/GeographicTransformation.d.ts +4 -3
  375. package/geometry/operators/support/GeographicTransformationStep.d.ts +2 -1
  376. package/geometry/operators/support/apiConverter.js +1 -1
  377. package/geometry/operators/support/geographicTransformationUtils.d.ts +22 -15
  378. package/geometry/operators/support/jsonConverter.js +1 -1
  379. package/geometry/operators/support/projectionTransformation.js +1 -1
  380. package/geometry/operators/symmetricDifferenceOperator.js +1 -1
  381. package/geometry/operators/touchesOperator.js +1 -1
  382. package/geometry/operators/types.d.ts +2 -1
  383. package/geometry/operators/unionOperator.js +1 -1
  384. package/geometry/operators/withinOperator.js +1 -1
  385. package/geometry/support/convexPolyhedron.js +2 -0
  386. package/geometry/support/curves/circleUtils.js +1 -1
  387. package/geometry/support/curves/ellipticArc7Utils.js +1 -1
  388. package/geometry/support/frustum.js +1 -1
  389. package/geometry/support/webMercatorUtils.js +1 -1
  390. package/kernel.js +1 -1
  391. package/layers/LinkChartLayer.js +1 -1
  392. package/layers/VectorTileLayer.js +1 -1
  393. package/layers/graphics/hydratedFeatures.js +1 -1
  394. package/layers/mixins/DataSeriesLayer.js +1 -1
  395. package/layers/support/csvUtils.js +1 -1
  396. package/layers/support/fieldUtils.js +1 -1
  397. package/layers/support/mediaUtils.js +1 -1
  398. package/layers/video/VideoController.js +1 -1
  399. package/package.json +4 -4
  400. package/popup/FeatureContentCollection.js +1 -1
  401. package/support/ArcadeExpression.js +1 -1
  402. package/support/actions/ActionBase.d.ts +1 -1
  403. package/support/arcadeUtils.js +1 -1
  404. package/support/loadArcade.js +1 -1
  405. package/support/revision.js +1 -1
  406. package/support/tests/serviceMockDependencies.js +1 -1
  407. package/views/2d/analysis/AreaMeasurement/AreaMeasurementController.js +1 -1
  408. package/views/2d/analysis/DistanceMeasurement/DistanceMeasurementController.js +1 -1
  409. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
  410. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  411. package/views/2d/layers/support/RouteLayerWaypointVisualization.js +1 -1
  412. package/views/3d/analysis/LineOfSight/LineOfSightConfiguration.js +1 -1
  413. package/views/3d/analysis/LineOfSight/LineOfSightManipulators.js +1 -1
  414. package/views/3d/analysis/LineOfSight/LineOfSightVisualization.js +1 -1
  415. package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
  416. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementController.js +1 -1
  417. package/views/3d/input/SceneInputManager.js +1 -1
  418. package/views/3d/input/handlers/RopePullNavigation.js +2 -0
  419. package/views/3d/layers/TiledLayerView3D.js +1 -1
  420. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  421. package/views/3d/layers/graphics/Graphics3DLineCalloutSymbolLayer.js +1 -1
  422. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  423. package/views/3d/layers/graphics/featureExpressionInfoUtils.js +1 -1
  424. package/views/3d/layers/graphics/polygonUtils.js +1 -1
  425. package/views/3d/layers/i3s/I3SNode.js +1 -1
  426. package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
  427. package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
  428. package/views/3d/layers/support/HeatmapFeatureProcessor.js +1 -1
  429. package/views/3d/state/controllers/RopePullController.js +2 -0
  430. package/views/3d/state/utils/navigationUtils.js +1 -1
  431. package/views/3d/state/utils/ropePullUtils.js +2 -0
  432. package/views/3d/support/ElevationAgnosticVisibility.js +2 -0
  433. package/views/3d/support/engineContent/line.js +1 -1
  434. package/views/3d/support/sphericalTileUtils.js +2 -0
  435. package/views/3d/terrain/PlanarPatch.js +1 -1
  436. package/views/3d/terrain/SphericalPatch.js +1 -1
  437. package/views/3d/terrain/Tile.js +1 -1
  438. package/views/3d/webgl-engine/core/shaderLibrary/util/GaussianSplatCovariance.glsl.js +9 -3
  439. package/views/3d/webgl-engine/core/shaderLibrary/util/GaussianSplatEvaluation.glsl.js +5 -8
  440. package/views/3d/webgl-engine/effects/RenderPluginManager.js +1 -1
  441. package/views/3d/webgl-engine/lib/Geometry.js +1 -1
  442. package/views/3d/webgl-engine/lib/GeometryUtil.js +1 -1
  443. package/views/3d/webgl-engine/lib/GridLocalOriginFactory.js +1 -1
  444. package/views/3d/webgl-engine/lib/Material.js +1 -1
  445. package/views/3d/webgl-engine/lib/PathGeometry.js +1 -1
  446. package/views/3d/webgl-engine/lib/RayIntersections.js +1 -1
  447. package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
  448. package/views/3d/webgl-engine/lib/screenPolygonTriangleIntersections.js +1 -1
  449. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  450. package/views/3d/webgl-engine/materials/HeatmapDensityMaterial.js +1 -1
  451. package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
  452. package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
  453. package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
  454. package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
  455. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  456. package/views/3d/webgl-engine/shaders/GaussianSplatPass.glsl.js +39 -51
  457. package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
  458. package/views/SelectionManager.js +1 -1
  459. package/views/draw/DrawTool.js +1 -1
  460. package/views/draw/support/createUtils.js +1 -1
  461. package/views/popupAdapter.js +1 -1
  462. package/views/support/GeometryWorker.js +1 -1
  463. package/views/support/selectionUtils.js +1 -1
  464. package/widgets/AreaMeasurement2D/AreaMeasurement2DTool.js +1 -1
  465. package/widgets/BatchAttributeForm/expressions/ArcadeExecutorProvider.js +1 -1
  466. package/widgets/BatchAttributeForm/templates/FieldElementTemplate.js +1 -1
  467. package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
  468. package/widgets/BatchAttributeForm/templates/support/hashElementTemplate.js +1 -1
  469. package/widgets/DistanceMeasurement2D/DistanceMeasurement2DTool.js +1 -1
  470. package/widgets/OrientedImageryViewer/adapters/view/MapViewAdapter.js +1 -1
  471. package/widgets/OrientedImageryViewer/components/ImageViewerViewModel.js +1 -1
  472. package/widgets/OrientedImageryViewer/components/OrientedImageryVideoViewModel.js +1 -1
  473. package/widgets/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
  474. package/widgets/OrientedImageryViewer/support/panConstraint.js +1 -1
  475. package/widgets/OrientedImageryViewer/support/superimposeUtils.js +1 -1
  476. package/widgets/OrientedImageryViewer/videoViewerUtils.js +1 -1
  477. package/widgets/UtilityNetworkTrace/support/GeometryHandler.js +1 -1
  478. package/widgets/support/SelectionList/selectionListUtils.d.ts +58 -0
  479. package/widgets/support/SelectionToolbar/SelectionToolbarViewModel.js +1 -1
  480. package/widgets/support/Selector2D/selectorUtils.js +1 -1
  481. package/arcade/kernel.js +0 -2
  482. package/assets/esri/core/workers/chunks/01b7babaefe6500fd6eb.js +0 -1
  483. package/assets/esri/core/workers/chunks/05acc17cb66fa6c08845.js +0 -1
  484. package/assets/esri/core/workers/chunks/06e109e92de7fa0956e3.js +0 -1
  485. package/assets/esri/core/workers/chunks/0775d1e3034d5e7ef7bc.js +0 -1
  486. package/assets/esri/core/workers/chunks/09a0a1e794ddff65aa08.js +0 -1
  487. package/assets/esri/core/workers/chunks/0e57d33bd202d0972207.js +0 -1
  488. package/assets/esri/core/workers/chunks/11224af8b037ccbf252c.js +0 -1
  489. package/assets/esri/core/workers/chunks/151bac9e519a3b821baf.js +0 -1
  490. package/assets/esri/core/workers/chunks/156f85ac1885464f0072.js +0 -1
  491. package/assets/esri/core/workers/chunks/17a10916114754f1f216.js +0 -1
  492. package/assets/esri/core/workers/chunks/180eebd8b7badc2840c9.js +0 -1
  493. package/assets/esri/core/workers/chunks/19cb8963d5ec2246357b.js +0 -1
  494. package/assets/esri/core/workers/chunks/19d4ecee1c161ac0f33c.js +0 -1
  495. package/assets/esri/core/workers/chunks/19ece9f5313f53384cac.js +0 -1
  496. package/assets/esri/core/workers/chunks/1b4e050a3884fc6fa6cf.js +0 -1
  497. package/assets/esri/core/workers/chunks/1d770e8f0fe57d937daa.js +0 -1
  498. package/assets/esri/core/workers/chunks/1dd22b8df6a52277c64b.js +0 -1
  499. package/assets/esri/core/workers/chunks/1ede298ab815e9ad625c.js +0 -1
  500. package/assets/esri/core/workers/chunks/208bc524bd1e0d3aab79.js +0 -1
  501. package/assets/esri/core/workers/chunks/20a4ae83542c7d39cf0f.js +0 -1
  502. package/assets/esri/core/workers/chunks/21071ab3d7b2771406ae.js +0 -1
  503. package/assets/esri/core/workers/chunks/21bfa89363104f041101.js +0 -1
  504. package/assets/esri/core/workers/chunks/21d0a4d6639d32278f11.js +0 -1
  505. package/assets/esri/core/workers/chunks/22a75fdc6ba60213a870.js +0 -1
  506. package/assets/esri/core/workers/chunks/22e004ed97e06536ecef.js +0 -1
  507. package/assets/esri/core/workers/chunks/23942712a3f6290e0fdb.js +0 -1
  508. package/assets/esri/core/workers/chunks/242287de82586d42f0a4.js +0 -1
  509. package/assets/esri/core/workers/chunks/25cb5086eaa412f6820b.js +0 -1
  510. package/assets/esri/core/workers/chunks/26c8ed0aef59ed6d5267.js +0 -1
  511. package/assets/esri/core/workers/chunks/2742d62fceaf0736aef0.js +0 -1
  512. package/assets/esri/core/workers/chunks/276eba546dc8774076ee.js +0 -1
  513. package/assets/esri/core/workers/chunks/28e02b213da9e682d3dc.js +0 -29
  514. package/assets/esri/core/workers/chunks/2d8195231cb16247f198.js +0 -1
  515. package/assets/esri/core/workers/chunks/2db1227ecd421728630d.js +0 -1
  516. package/assets/esri/core/workers/chunks/2ddc9c9ff6ec243d85e2.js +0 -1
  517. package/assets/esri/core/workers/chunks/2e712154ebb895d96ba1.js +0 -1
  518. package/assets/esri/core/workers/chunks/2f2df51d4976ae65edae.js +0 -1
  519. package/assets/esri/core/workers/chunks/2f652b330a9978a68e83.js +0 -1
  520. package/assets/esri/core/workers/chunks/32d31fd4cffdf5a80acb.js +0 -1
  521. package/assets/esri/core/workers/chunks/33aaa5a49e396a0aca47.js +0 -1
  522. package/assets/esri/core/workers/chunks/33d6ca59eeb88e739c81.js +0 -1
  523. package/assets/esri/core/workers/chunks/35622088727e120c93b9.js +0 -1
  524. package/assets/esri/core/workers/chunks/3714cc26f446c4d9cc2c.js +0 -1
  525. package/assets/esri/core/workers/chunks/3722d40d161d60370936.js +0 -1
  526. package/assets/esri/core/workers/chunks/3ac4cfeb1af12a9dc27d.js +0 -1
  527. package/assets/esri/core/workers/chunks/3bf37fd3280f4891c76b.js +0 -1
  528. package/assets/esri/core/workers/chunks/3cecf627827f5d9213a9.js +0 -1
  529. package/assets/esri/core/workers/chunks/3d18a10a1ecfabe92db3.js +0 -1
  530. package/assets/esri/core/workers/chunks/3da39efc5f68f15c105f.js +0 -1
  531. package/assets/esri/core/workers/chunks/3fbd4c7e25440c4713f2.js +0 -1
  532. package/assets/esri/core/workers/chunks/407dba2be21255eb47fc.js +0 -1
  533. package/assets/esri/core/workers/chunks/40ec85b7813a396ee490.js +0 -1
  534. package/assets/esri/core/workers/chunks/44b1a4e8a65221ad3808.js +0 -1
  535. package/assets/esri/core/workers/chunks/49e37f653b81f9e4f7cc.js +0 -1
  536. package/assets/esri/core/workers/chunks/4b4221a869b3f0d517fa.js +0 -1
  537. package/assets/esri/core/workers/chunks/4b86bcde5992eb752ab0.js +0 -1
  538. package/assets/esri/core/workers/chunks/4b9095e2bd060efd47c4.js +0 -1
  539. package/assets/esri/core/workers/chunks/4ec306e5c11808b96e07.js +0 -1
  540. package/assets/esri/core/workers/chunks/5084de4d0d4961b63ab7.js +0 -1
  541. package/assets/esri/core/workers/chunks/51a8a47aac1d8d22ba9d.js +0 -1
  542. package/assets/esri/core/workers/chunks/5324e4feb78203204c0c.js +0 -1
  543. package/assets/esri/core/workers/chunks/58d10928959ae1e2e8d9.js +0 -1
  544. package/assets/esri/core/workers/chunks/5903dceb172897e5675b.js +0 -1
  545. package/assets/esri/core/workers/chunks/597a8e3d9e458298fdd3.js +0 -1
  546. package/assets/esri/core/workers/chunks/5a006ff759fad9fc25cb.js +0 -1
  547. package/assets/esri/core/workers/chunks/5e5a05abcb41915802f6.js +0 -1
  548. package/assets/esri/core/workers/chunks/60be6de19c5659091d8f.js +0 -1
  549. package/assets/esri/core/workers/chunks/61a38237e163b39520e5.js +0 -1
  550. package/assets/esri/core/workers/chunks/61fcdba6f2097378dce5.js +0 -1
  551. package/assets/esri/core/workers/chunks/62f37d1075390a177ae9.js +0 -1
  552. package/assets/esri/core/workers/chunks/65eff0ae773505495f21.js +0 -1
  553. package/assets/esri/core/workers/chunks/67452ba9e87962b9e01e.js +0 -1
  554. package/assets/esri/core/workers/chunks/68195277046861ed39a7.js +0 -1
  555. package/assets/esri/core/workers/chunks/6a2a4da3a1cd64ff576f.js +0 -1
  556. package/assets/esri/core/workers/chunks/6af1680771fd8ae8c7dc.js +0 -1
  557. package/assets/esri/core/workers/chunks/6c367de583e0e657ca3a.js +0 -1
  558. package/assets/esri/core/workers/chunks/6d2021a0f0c9a3c6a0e6.js +0 -1
  559. package/assets/esri/core/workers/chunks/6db4a4f9a9ce7cc738d0.js +0 -1
  560. package/assets/esri/core/workers/chunks/724260e36efea90585f4.js +0 -1
  561. package/assets/esri/core/workers/chunks/73cb944b87ffce33bb49.js +0 -1
  562. package/assets/esri/core/workers/chunks/74ae1222787389d5fcaa.js +0 -1
  563. package/assets/esri/core/workers/chunks/74bfaa98da6c5d375f05.js +0 -1
  564. package/assets/esri/core/workers/chunks/7a68a16f7fea712b9fd6.js +0 -1
  565. package/assets/esri/core/workers/chunks/7d8e59ad438fb34b476d.js +0 -1
  566. package/assets/esri/core/workers/chunks/7eb94fc75926bc739233.js +0 -1
  567. package/assets/esri/core/workers/chunks/80795118467fb31ea4ed.js +0 -1
  568. package/assets/esri/core/workers/chunks/852649460d664b0a1a1d.js +0 -1
  569. package/assets/esri/core/workers/chunks/85c538bf1209f0da1f8e.js +0 -1
  570. package/assets/esri/core/workers/chunks/86de2d1f13915ab7a51d.js +0 -1
  571. package/assets/esri/core/workers/chunks/8db3fd97e8eccd3ba1db.js +0 -1
  572. package/assets/esri/core/workers/chunks/8e225dd0319672103561.js +0 -1
  573. package/assets/esri/core/workers/chunks/8e79a84e224d05204e7d.js +0 -1
  574. package/assets/esri/core/workers/chunks/8e9aff66a2d4e2cc102b.js +0 -1
  575. package/assets/esri/core/workers/chunks/917318f8e186f466dc52.js +0 -1
  576. package/assets/esri/core/workers/chunks/9267f6a65c2245696eac.js +0 -1
  577. package/assets/esri/core/workers/chunks/958e161634b5bfd50625.js +0 -1
  578. package/assets/esri/core/workers/chunks/99881d0a6c2490a16268.js +0 -1
  579. package/assets/esri/core/workers/chunks/99980c944acb8ff88d6a.js +0 -1
  580. package/assets/esri/core/workers/chunks/9b5e890fb0ab29f3a3f1.js +0 -1
  581. package/assets/esri/core/workers/chunks/9c227785f4454d3966ea.js +0 -1
  582. package/assets/esri/core/workers/chunks/9d61d9136f3d00aab530.js +0 -1
  583. package/assets/esri/core/workers/chunks/9df2685583393a87df2d.js +0 -1
  584. package/assets/esri/core/workers/chunks/9e840a71906c4deef776.js +0 -1
  585. package/assets/esri/core/workers/chunks/a03f4605bde69bfb6d41.js +0 -1
  586. package/assets/esri/core/workers/chunks/a0da026a06de379b8f39.js +0 -1
  587. package/assets/esri/core/workers/chunks/a327843cee2057ee76c0.js +0 -1
  588. package/assets/esri/core/workers/chunks/a557347fb313df6fcc79.js +0 -1
  589. package/assets/esri/core/workers/chunks/a8da0728a12fc46dca23.js +0 -1
  590. package/assets/esri/core/workers/chunks/a9ea28e0f22cfe3ccf92.js +0 -1
  591. package/assets/esri/core/workers/chunks/aae92f23b38ae22dd8bf.js +0 -1
  592. package/assets/esri/core/workers/chunks/ad29b77843a7d93d9f8a.js +0 -1
  593. package/assets/esri/core/workers/chunks/ad3714da9c90d7471385.js +0 -1
  594. package/assets/esri/core/workers/chunks/b015b8c7a073dbc4a3ad.js +0 -1
  595. package/assets/esri/core/workers/chunks/b047f9e9ba26037657ed.js +0 -1
  596. package/assets/esri/core/workers/chunks/b1323800119bd5c1759b.js +0 -1
  597. package/assets/esri/core/workers/chunks/b18c35f25da18a3219d7.js +0 -1
  598. package/assets/esri/core/workers/chunks/b1f68ee65cce457d7b5b.js +0 -1
  599. package/assets/esri/core/workers/chunks/b2d6fd436981c890152f.js +0 -1
  600. package/assets/esri/core/workers/chunks/b4b4fe06364bea9b0750.js +0 -1
  601. package/assets/esri/core/workers/chunks/b661aae7e3ce955a783e.js +0 -1
  602. package/assets/esri/core/workers/chunks/b66ebe53bd879aa9de57.js +0 -1
  603. package/assets/esri/core/workers/chunks/b812f817c465c64e8c63.js +0 -1
  604. package/assets/esri/core/workers/chunks/b8ca80134abfcc692244.js +0 -1
  605. package/assets/esri/core/workers/chunks/b94b36581842749863f0.js +0 -1
  606. package/assets/esri/core/workers/chunks/bbdf10d76d852072c878.js +0 -1
  607. package/assets/esri/core/workers/chunks/bbeb61d9302323bae9fb.js +0 -1
  608. package/assets/esri/core/workers/chunks/bbfd2b4af8e498b61af9.js +0 -1
  609. package/assets/esri/core/workers/chunks/bc6e488f5fbd50f9f3d0.js +0 -1
  610. package/assets/esri/core/workers/chunks/bddd5aa7a14cd45ff91c.js +0 -1
  611. package/assets/esri/core/workers/chunks/be31c2cb97f664a54306.js +0 -1
  612. package/assets/esri/core/workers/chunks/be4319827db91aa71bf5.js +0 -1
  613. package/assets/esri/core/workers/chunks/bef32acf368b4d5aba37.js +0 -1
  614. package/assets/esri/core/workers/chunks/c1568bcd3f04014152e1.js +0 -1
  615. package/assets/esri/core/workers/chunks/c229325f41f10fe7f732.js +0 -1
  616. package/assets/esri/core/workers/chunks/c229a4eedda468c914a9.js +0 -1
  617. package/assets/esri/core/workers/chunks/c308d8f419ba63c583e6.js +0 -1
  618. package/assets/esri/core/workers/chunks/c6ef0636073e28350c91.js +0 -1
  619. package/assets/esri/core/workers/chunks/c71368cd64f240da1743.js +0 -1
  620. package/assets/esri/core/workers/chunks/ca6652c6304ad0e37e8f.js +0 -1
  621. package/assets/esri/core/workers/chunks/cb2f27e5d465124b9868.js +0 -1
  622. package/assets/esri/core/workers/chunks/cee2f7f3b3f84688e49d.js +0 -1
  623. package/assets/esri/core/workers/chunks/d0942860a53b02371e94.js +0 -1
  624. package/assets/esri/core/workers/chunks/d09491b340af3b779505.js +0 -1
  625. package/assets/esri/core/workers/chunks/d13eeff678972a245d5d.js +0 -1
  626. package/assets/esri/core/workers/chunks/d3d7b4cd28a0dc2720d4.js +0 -1
  627. package/assets/esri/core/workers/chunks/d3ea7ac6fe71c95faa75.js +0 -1
  628. package/assets/esri/core/workers/chunks/d41e4498aaf4970f48b0.js +0 -1
  629. package/assets/esri/core/workers/chunks/d4d2a0d882fef463e7bc.js +0 -1
  630. package/assets/esri/core/workers/chunks/d7c8725ffb175cec5f8a.js +0 -1
  631. package/assets/esri/core/workers/chunks/d96fa373dcb621c2a869.js +0 -1
  632. package/assets/esri/core/workers/chunks/da233362b06b6db375f1.js +0 -1
  633. package/assets/esri/core/workers/chunks/da45d9576b8d66131623.js +0 -1
  634. package/assets/esri/core/workers/chunks/dbc8f15a6be835f4897d.js +0 -1
  635. package/assets/esri/core/workers/chunks/e00d0036974aaec7d876.js +0 -1
  636. package/assets/esri/core/workers/chunks/e0c75ae3a211a8da10f7.js +0 -1
  637. package/assets/esri/core/workers/chunks/e557043f90c051e93925.js +0 -1
  638. package/assets/esri/core/workers/chunks/e5cbed6f19c743915c8e.js +0 -1
  639. package/assets/esri/core/workers/chunks/e5ecd93bd32e99bc99d1.js +0 -1
  640. package/assets/esri/core/workers/chunks/e76662562e03eef52ba4.js +0 -1
  641. package/assets/esri/core/workers/chunks/eb8c4f194bb66a27d418.js +0 -1
  642. package/assets/esri/core/workers/chunks/ebd8c77df5df63bd3efe.js +0 -1
  643. package/assets/esri/core/workers/chunks/ed5e9718c4dcad1156f7.js +0 -1
  644. package/assets/esri/core/workers/chunks/f14347f5d63f5d102617.js +0 -1
  645. package/assets/esri/core/workers/chunks/f1d0208c6b09c1c4b248.js +0 -1
  646. package/assets/esri/core/workers/chunks/f3680b71d496839de72c.js +0 -1
  647. package/assets/esri/core/workers/chunks/f3c0280b6c87f2383a60.js +0 -1
  648. package/assets/esri/core/workers/chunks/f42c4dcb8f413ca1c6fd.js +0 -1
  649. package/assets/esri/core/workers/chunks/f5773321487ec248fa3b.js +0 -1
  650. package/assets/esri/core/workers/chunks/f76911f71540b058a881.js +0 -1
  651. package/assets/esri/core/workers/chunks/fa29b5064d6626cfc019.js +0 -1
  652. package/assets/esri/core/workers/chunks/fa882d0f4a9826533421.js +0 -1
  653. package/assets/esri/core/workers/chunks/fb2d43608006f588e3cb.js +0 -1
  654. package/assets/esri/core/workers/chunks/fc1aeea22f8c9d63864a.js +0 -1
  655. package/assets/esri/core/workers/chunks/fc3c03cfa3d6bf3b37dc.js +0 -1
  656. package/assets/esri/core/workers/chunks/ff07d351553deb70b889.js +0 -1
  657. package/assets/esri/core/workers/chunks/ffee66699f5d26569baf.js +0 -1
  658. package/chunks/OperatorDefinitions.js +0 -2
  659. package/chunks/areaOperator.js +0 -2
  660. package/chunks/bufferOperator.js +0 -2
  661. package/chunks/centroidOperator.js +0 -2
  662. package/chunks/clipOperator.js +0 -2
  663. package/chunks/containsOperator.js +0 -2
  664. package/chunks/convexHullOperator.js +0 -2
  665. package/chunks/crossesOperator.js +0 -2
  666. package/chunks/cutOperator.js +0 -2
  667. package/chunks/densifyOperator.js +0 -2
  668. package/chunks/differenceOperator.js +0 -2
  669. package/chunks/disjointOperator.js +0 -2
  670. package/chunks/distanceOperator.js +0 -2
  671. package/chunks/equalsOperator.js +0 -2
  672. package/chunks/generalizeOperator.js +0 -2
  673. package/chunks/geodesicBufferOperator.js +0 -2
  674. package/chunks/geodeticAreaOperator.js +0 -2
  675. package/chunks/geodeticDensifyOperator.js +0 -2
  676. package/chunks/geodeticDistanceOperator.js +0 -2
  677. package/chunks/geodeticLengthOperator.js +0 -2
  678. package/chunks/intersectionOperator.js +0 -2
  679. package/chunks/intersectsOperator.js +0 -2
  680. package/chunks/labelPointOperator.js +0 -2
  681. package/chunks/lengthOperator.js +0 -2
  682. package/chunks/multiPartToSinglePartOperator.js +0 -2
  683. package/chunks/offsetOperator.js +0 -2
  684. package/chunks/overlapsOperator.js +0 -2
  685. package/chunks/proximityOperator.js +0 -2
  686. package/chunks/relateOperator.js +0 -2
  687. package/chunks/simplifyOperator.js +0 -2
  688. package/chunks/symmetricDifferenceOperator.js +0 -2
  689. package/chunks/touchesOperator.js +0 -2
  690. package/chunks/unionOperator.js +0 -2
  691. package/chunks/withinOperator.js +0 -2
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1948,4862,7992,9397],{32198(e,t,r){function n(e,t,r,n){var s,o=arguments.length,i=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,r,i):s(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}function s(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n,s;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(s=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");s&&(n=function(){try{s.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}r.d(t,{Cg:()=>n,hk:()=>i,mS:()=>s}),Object.create,Object.create;var o="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function i(e){function t(t){e.error=e.hasError?new o(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var r,n=0;return function s(){for(;r=e.stack.pop();)try{if(!r.async&&1===n)return n=0,e.stack.push(r),Promise.resolve().then(s);if(r.dispose){var o=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(o).then(s,function(e){return t(e),s()})}else n|=1}catch(e){t(e)}if(1===n)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}},1123(e,t,r){r.r(t),r.d(t,{invokeGeometryOp:()=>i});var n=r(83299);function s(e,t){let r;return{loaded:!1,load:()=>r??=t().then(t=>{o[e]={loaded:!0,execute:t}})}}const o={disjoint:s("disjoint",async()=>{const{OperatorDisjoint:e}=await r.e(7029).then(r.bind(r,97029)),t=new e;return(e,r,s)=>t.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s),null)}),intersects:s("intersects",async()=>{const{OperatorIntersects:e}=await r.e(31).then(r.bind(r,70031)),t=new e;return(e,r,s)=>t.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s),null)}),touches:s("touches",async()=>{const{OperatorTouches:e}=await r.e(6810).then(r.bind(r,46810)),t=new e;return(e,r,s)=>t.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s),null)}),crosses:s("crosses",async()=>{const{OperatorCrosses:e}=await r.e(9821).then(r.bind(r,29821)),t=new e;return(e,r,s)=>t.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s),null)}),within:s("within",async()=>{const{OperatorWithin:e}=await r.e(2802).then(r.bind(r,22802)),t=new e;return(e,r,s)=>t.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s),null)}),contains:s("contains",async()=>{const{OperatorContains:e}=await r.e(892).then(r.bind(r,70892)),t=new e;return(e,r,s)=>t.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s),null)}),overlaps:s("overlaps",async()=>{const{OperatorOverlaps:e}=await r.e(5181).then(r.bind(r,85181)),t=new e;return(e,r,s)=>t.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s),null)}),equals:s("equals",async()=>{const{OperatorEquals:e}=await r.e(468).then(r.bind(r,70468)),t=new e;return(e,r,s)=>t.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s),null)}),relate:s("relate",async()=>{const{OperatorRelate:e}=await r.e(9672).then(r.bind(r,39672)),t=new e;return(e,r,s,o)=>t.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s),o,null)}),intersection:s("intersection",async()=>{const{execute:e}=await r.e(1327).then(r.bind(r,33708));return(t,r,s)=>(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s)),null)}),union:s("union",async()=>{const{executeMany:e}=await r.e(8298).then(r.bind(r,28298));return(t,r)=>(0,n.toGeometry)(e(t.map(e=>(0,n.fromGeometryToGXGeometry)(e)),(0,n.fromSpatialReference)(r)),null)}),difference:s("difference",async()=>{const{execute:e}=await r.e(9074).then(r.bind(r,49074));return(t,r,s)=>(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s)),null)}),symmetricDifference:s("symmetricDifference",async()=>{const{execute:e}=await r.e(8613).then(r.bind(r,68613));return(t,r,s)=>(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s)),null)}),clip:s("clip",async()=>{const{execute:e}=await r.e(6027).then(r.bind(r,96027));return(t,r,s)=>(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromGeometryToGXGeometry)(r).asEnvelope2D(),(0,n.fromSpatialReference)(s)),null)}),cut:s("cut",async()=>{const{execute:e}=await r.e(756).then(r.bind(r,90756));return(t,r,s)=>e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s)).map(e=>(0,n.toGeometry)(e,null)).filter(e=>null!=e)}),area:s("area",async()=>{const{convertFromSpatialReferenceUnit:e,toAreaUnit:t}=await r.e(547).then(r.bind(r,40547));return(r,s,o)=>{const i=(0,n.fromGeometryToGXGeometry)(r).calculateArea2D();return e(s,t(o),i)}}),geodeticArea:s("geodeticArea",async()=>{const{load:e,execute:t}=await r.e(6742).then(r.bind(r,86742)),{convert:s,squareMeters:o,toAreaUnit:i}=await r.e(547).then(r.bind(r,40547));return await e(),(e,r,a,c)=>{const u=t((0,n.fromGeometryToGXGeometry)(e),(0,n.fromSpatialReference)(r),c);return s(o,i(a),u)}}),length:s("length",async()=>{const{convertFromSpatialReferenceUnit:e,toLengthUnit:t}=await r.e(547).then(r.bind(r,40547));return(r,s,o)=>{const i=(0,n.fromGeometryToGXGeometry)(r).calculateLength2D();return e(s,t(o),i)}}),geodeticLength:s("geodeticLength",async()=>{const{load:e,execute:t}=await r.e(5223).then(r.bind(r,35223)),{convert:s,meters:o,toLengthUnit:i}=await r.e(547).then(r.bind(r,40547));return await e(),(e,r,a,c)=>{const u=t((0,n.fromGeometryToGXGeometry)(e),(0,n.fromSpatialReference)(r),c);return s(o,i(a),u)}}),distance:s("distance",async()=>{const{OperatorDistance:e}=await r.e(2994).then(r.bind(r,22994)),{convertFromSpatialReferenceUnit:t,toLengthUnit:s}=await r.e(547).then(r.bind(r,40547)),o=new e;return(e,r,i,a)=>{const c=o.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),null);return t(i,s(a),c)}}),geodeticDistance:s("geodeticDistance",async()=>{const{load:e,execute:t}=await r.e(9716).then(r.bind(r,29716)),{convert:s,meters:o,toLengthUnit:i}=await r.e(547).then(r.bind(r,40547));return await e(),(e,r,a,c,u)=>{const l=t((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(a),u);return s(o,i(c),l)}}),densify:s("densify",async()=>{const{execute:e}=await r.e(1735).then(r.bind(r,91735)),{convertToSpatialReferenceUnit:t,toLengthUnit:s}=await r.e(547).then(r.bind(r,40547));return(r,o,i,a)=>(i=t(s(a),o,i),(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(r),i,0,0),null))}),geodeticDensify:s("geodeticDensify",async()=>{const{load:e,execute:t}=await r.e(7085).then(r.bind(r,77085)),{convert:s,meters:o,toLengthUnit:i}=await r.e(547).then(r.bind(r,40547));return await e(),(e,r,a,c,u)=>(a=s(i(c),o,a),(0,n.toGeometry)(t((0,n.fromGeometryToGXGeometry)(e),a,(0,n.fromSpatialReference)(r),u),null))}),generalize:s("generalize",async()=>{const{execute:e}=await r.e(787).then(r.bind(r,70787)),{convertToSpatialReferenceUnit:t,toLengthUnit:s}=await r.e(547).then(r.bind(r,40547));return(r,o,i,a,c)=>(i=t(s(a),o,i),(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(r),i,c),null))}),buffer:s("buffer",async()=>{const{execute:e}=await Promise.all([r.e(6870),r.e(5227)]).then(r.bind(r,15227)),{convertToSpatialReferenceUnit:t,toLengthUnit:s}=await r.e(547).then(r.bind(r,40547));return(r,o,i,a)=>(i=t(s(a),o,i),(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(o),i),null))}),geodesicBuffer:s("geodesicBuffer",async()=>{const{load:e,execute:t}=await r.e(4988).then(r.bind(r,24988)),{convert:s,meters:o,toLengthUnit:i}=await r.e(547).then(r.bind(r,40547));return await e(),(e,r,a,c,u)=>(a=s(i(c),o,a),(0,n.toGeometry)(t((0,n.fromGeometryToGXGeometry)(e),(0,n.fromSpatialReference)(r),u,a,NaN),null))}),offset:s("offset",async()=>{const{execute:e}=await Promise.all([r.e(6870),r.e(6070)]).then(r.bind(r,66070)),{convertToSpatialReferenceUnit:t,toLengthUnit:s}=await r.e(547).then(r.bind(r,40547));return(r,o,i,a,c,u,l)=>(i=t(s(a),o,i),(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(o),i,c,u,l),null))}),rotate:s("rotate",async()=>{const{executeRotate:e}=await r.e(4791).then(r.bind(r,64791));return(t,r,s,o)=>(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(t),r,s,o),null)}),centroid:s("centroid",async()=>{const{OperatorCentroid2D:e}=await r.e(9447).then(r.bind(r,9447)),t=new e;return e=>{const r=t.execute((0,n.fromGeometryToGXGeometry)(e),null);return r.isNAN()?null:{x:r.x,y:r.y}}}),labelPoint:s("labelPoint",async()=>{const{execute:e}=await r.e(4945).then(r.bind(r,54945));return t=>(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(t)),null)}),multiPartToSinglePart:s("multiPartToSinglePart",async()=>{const{executeMany:e}=await r.e(3193).then(r.bind(r,33193));return(t,r)=>e([(0,n.fromGeometryToGXGeometry)(t)],(0,n.fromSpatialReference)(r)).map(e=>(0,n.toGeometry)(e,null)).filter(e=>null!=e)}),isSelfIntersecting:s("isSelfIntersecting",async()=>{const{executeIsSelfIntersecting:e}=await r.e(3755).then(r.bind(r,83755));return(t,r)=>e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromSpatialReference)(r))}),isSimple:s("isSimple",async()=>{const{isSimpleAsFeature:e}=await r.e(1150).then(r.bind(r,81150));return(t,r)=>e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromSpatialReference)(r),!1)}),simplify:s("simplify",async()=>{const{execute:e}=await r.e(1150).then(r.bind(r,81150));return(t,r)=>(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromSpatialReference)(r),!1),null)}),convexHull:s("convexHull",async()=>{const{execute:e}=await r.e(1577).then(r.bind(r,91577));return t=>(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(t)),null)}),getNearestCoordinate:s("getNearestCoordinate",async()=>{const{executeNearestCoordinate:e}=await r.e(6556).then(r.bind(r,6556));return(t,r)=>{const s=e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromGeometryToGXGeometry)(r));return null==s?null:{...s,coordinate:(0,n.toGeometry)(s.coordinate,null)}}}),getNearestVertex:s("getNearestVertex",async()=>{const{executeNearestVertex:e}=await r.e(4064).then(r.bind(r,64064));return(t,r)=>{const s=e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromGeometryToGXGeometry)(r));return null==s?null:{...s,coordinate:(0,n.toGeometry)(s.coordinate,null)}}})};function i(e,t){const r=o[e];return r.loaded?r.execute.apply(void 0,t):r.load().then(()=>i(e,t))}},61691(e,t,r){r.d(t,{G:()=>n});class n{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}},76061(e,t,r){r.d(t,{S:()=>s});var n=r(61691);class s extends n.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){const 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}}},69397(e,t,r){r.d(t,{Qf:()=>a,Qh:()=>o,lM:()=>s});var n=r(34275);function s(e){if(!e)return 0;let t=u;for(const r in e)e.hasOwnProperty(r)&&(t+=i(e[r],!1));return t}function o(e){if(!e)return 0;if("number"==typeof e[0])return a(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return c(e,8);let r=l;for(let n=0;n<t;n++)r+=i(e[n]);return r}(e);let t=u;for(const r in e)e.hasOwnProperty(r)&&(t+=i(e[r]));return t}function i(e,t=!0){switch(typeof e){case"object":return t?o(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+m:Array.isArray(t)?c(t,16):0:0),0)}function c(e,t){return l+e.length*t}const u=32,l=16,m=145},87992(e,t,r){r.d(t,{JR:()=>T,ME:()=>w,MY:()=>M,NO:()=>v,Nh:()=>S,V2:()=>O,_s:()=>P,e6:()=>_,gh:()=>b,tr:()=>F,uX:()=>g});var n=r(32198),s=r(16930),o=r(19419),i=r(60408),a=r(21325),c=r(513),u=r(50954),l=r(79567),m=r(52006),h=r(49663),f=r(46068),y=r(92722);class g{constructor({type:e,spatialReference:t,vertexCount:r,vertexXY:n,vertexZ:s,vertexM:o,partCount:i,partOffsets:a,partFlags:c,segmentFlags:u,segmentIndices:l,segmentParams:m,segmentCountArc:h,segmentCountBezier:f}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=e,this.spatialReference=t,this.vertexCount=r,this.vertexXY=n,this.vertexZ=s,this.vertexM=o,this.partCount=i,this.partOffsets=a,this.partFlags=c,this.segmentFlags=u,this.segmentIndices=l,this.segmentParams=m,this.segmentCountArc=h,this.segmentCountBezier=f}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{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(){const{type:e,vertexCount:t,partCount:r,hasZ:n,hasM:s,segmentCountArc:o,segmentCountBezier:i}=this,a=O(e,t,r,n,s,this.hasCurves(),o,i);a.spatialReference=this.spatialReference;const{vertexXY:c,vertexZ:u,vertexM:l}=this;if(a.vertexXY.set(c.subarray(0,2*t),0),a.vertexZ?.set(u.subarray(0,t),0),a.vertexM?.set(l.subarray(0,t),0),this.isMultipart()){const{partOffsets:e,partFlags:t}=this;a.partFlags.set(t.subarray(0,r+1)),a.partOffsets.set(e.subarray(0,r+1))}if(this.hasCurves()){const{segmentFlags:e,segmentIndices:r,segmentParams:n,segmentParamCount:s}=this;a.segmentFlags.set(e.subarray(0,t),0),a.segmentIndices.set(r.subarray(0,t),0),a.segmentParams.set(n.subarray(0,s),0)}return a}equals(e){return this.equalsWithinTolerance(e,0)}equalsWithinTolerance(e,t){if(null==e)return!1;if(this===e)return!0;if(!(0,a.aI)(this.spatialReference,e.spatialReference))return!1;if(this.vertexCount!==e.vertexCount||this.partCount!==e.partCount)return!1;if(this.hasZ!==e.hasZ||this.hasM!==e.hasM)return!1;if(this.hasCurves()!==e.hasCurves()||this.segmentCountArc!==e.segmentCountArc||this.segmentCountBezier!==e.segmentCountBezier)return!1;const 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 d(this):[][Symbol.iterator]()}}class d{constructor(e){this.geometry=e,this.value=new p(e)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class p{constructor(e){this.geometry=e,this.index=-1,this._readVertex=E(e),this._segments=new x(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const e=this.geometry.partOffsets;return e[this.index+1]-e[this.index]}}class x{constructor(e){this._part=e,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===e.geometry.type,this.value=new G(e.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const e=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=e&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:e}=this._part,t=this._part.geometry.partOffsets;this._partStart=t[e],this._partEnd=t[e+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class G{constructor(e){this.geometry=e,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=E(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(){const e=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===e)return this.end;const t=this.geometry.segmentParams;let r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===e){const e=t[r++],n=t[r++],s=t[r++],o=t[r++];return{b:[this.end,[e,n],[s,o]]}}const n=t[r++],s=t[r++],o=t[r++],i=t[r++],a=t[r++],c=t[r++];r++,r++;const u=t[r++],l=t[r++];if(!Boolean(4&n)&&1===o)return{c:[this.end,[u,l]]};const m=2&n?0:1,h=1&n?0:1;return{a:[this.end,[a,c],m,h,i,s,o]}}}function v(e,t){const r={stack:[],error:void 0,hasError:!1};try{return t??=(0,o.Ie)(),(0,n.mS)(r,new C(e,["vertexZ","vertexM","spatialReference"]),!1),(0,o.bx)(t,function(e){let t;const{vertexCount:r,vertexXY:s,vertexZ:i,vertexM:a}=e,c=X(e);if(e.hasCurves()){const r={stack:[],error:void 0,hasError:!1};try{(0,n.mS)(r,new C(e,["vertexZ","vertexM"]),!1);const s=(0,o.Ie)();for(const t of e.parts){let e=t.startVertex;for(const{curve:r}of t.segments)(0,l.e)(s,e,r),e=(0,m.yP)(r)}const[i,a,u,h]=s;t={xmin:i,ymin:a,xmax:u,ymax:h,spatialReference:c}}catch(e){r.error=e,r.hasError=!0}finally{(0,n.hk)(r)}}else{let e,n,o,i;e=n=1/0,o=i=-1/0;for(let t=0;t<r;++t){const r=s[2*t],a=s[2*t+1];e=Math.min(e,r),o=Math.max(o,r),n=Math.min(n,a),i=Math.max(i,a)}t={xmin:e,ymin:n,xmax:o,ymax:i,spatialReference:c}}if(i){let e=1/0,r=-1/0;for(const t of i)e=Math.min(e,t),r=Math.max(r,t);t.zmin=e,t.zmax=r}if(a){let e=1/0,r=-1/0;for(const t of a)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,n.hk)(r)}}function w(e){let t,r,n;if((0,i.fT)(e)){n="point";const{x:s,y:o,z:i,m:a}=e,c=[s,o];null!=i&&c.push(i),null!=a&&c.push(a),r=[[c]],t=1}else(0,i.U9)(e)?(n="multipoint",r=[e.points],t=e.points.length):(0,i.Rg)(e)?(n="polyline",r=e.curvePaths??e.paths,t=r.reduce((e,t)=>e+t.length,0)):(n="polygon",r=e.curveRings??e.rings,t=r.reduce((e,t)=>(0===t.length||(e+=t.length,R(t[0],(0,m.yP)(t.at(-1)))&&--e),e),0));const s=O(n,t,n.includes("point")?0:r.length,(0,i.Pv)(e),(0,i.W0)(e),(0,m.Ed)(e)),{hasZ:o,hasM:a,vertexXY:c,vertexZ:u,vertexM:l}=s;function h(e){c[2*y]=e[0],c[2*y+1]=e[1],o&&(u[y]=e[2]),a&&(l[y]=e[f]),++y}s.spatialReference=e.spatialReference??void 0;const f=s.hasZ?3:2;let y=0;if(!s.isMultipart()){if(!o&&!a){for(const[e,t]of r[0])c[2*y]=e,c[2*y+1]=t,++y;return s}for(const e of r[0])h(e);return s}const g="polygon"===n,{partOffsets:d}=s;let p=0;if(!(0,m.Ed)(e)){for(const e of r){if(d[p++]=y,0===e.length)continue;let t=e.length;if(g&&R(e[0],e.at(-1))&&--t,o||a)for(let r=0;r<t;++r)h(e[r]);else for(let r=0;r<t;++r){const[t,n]=e[r];c[2*y]=t,c[2*y+1]=n,++y}}return d[p]=y,s}function x(e){const t=G+e;if(t<=(s.segmentParams?.length??0))return;let r=t*I;r=20*Math.ceil(r/20);const n=s.segmentParams;s.segmentParams=new Float64Array(r),null!=n&&s.segmentParams.set(n)}let G=0;for(const e of r){if(s.partOffsets[p++]=y,0===e.length)continue;const t=e[0];let r=t;for(let t=1;t<e.length;++t){const n=e[t];h(r);const o=y-1;(0,m.wY)(n)?(x(10),++s.segmentCountArc,G=P(r,n,s,o,G),r=n.a[0]):(0,m.DA)(n)?(x(10),++s.segmentCountArc,G=A(r,n,s,o,G),r=n.a[0]):(0,m.aO)(n)?(x(10),++s.segmentCountArc,G=_(r,n,s,o,G),r=n.c[0]):(0,m.n1)(n)?(x(4),++s.segmentCountBezier,G=F(0,n,s,o,G),r=n.b[0]):r=n}g&&R(t,r)||h(r)}return s.partOffsets[p]=y,s}function b(e){const t=E(e),{vertexCount:r,partCount:n,hasZ:s,hasM:o}=e,i=X(e);if("point"===e.type){const[t,r]=e.vertexXY,n=e.vertexZ?.[0],s=e.vertexM?.[0];return{x:t,y:r,z:n,m:s,spatialReference:i}}let a=0;if("multipoint"===e.type){const e=[];for(;a<r;)e.push(t(a++));return{points:e,spatialReference:i,hasZ:s,hasM:o}}const c="polygon"===e.type;if(!e.hasCurves()){const r=new Array;for(let s=0;s<n;++s){const n=e.partOffsets[s+1],o=new Array;for(;a<n;)o.push(t(a++));c&&o.length>0&&o.push(o[0]),r.push(o)}return c?{rings:r,hasZ:s,hasM:o,spatialReference:i}:{paths:r,hasZ:s,hasM:o,spatialReference:i}}const u=new Array;for(const{segments:t,startVertex:r}of e.parts){const e=[r];for(const{curve:r}of t)e.push(r);u.push(e)}return c?{rings:[],curveRings:u,hasZ:s,hasM:o,spatialReference:i}:{paths:[],curvePaths:u,hasZ:s,hasM:o,spatialReference:i}}function S(e,{lengths:t,coords:r,hasZ:n,hasM:s},o){const i=e.includes("point")?0:t.length,a="polygon"===e,c="point"===e?1:t.reduce((e,t)=>e+t,0)-(a?i:0);n??=!1,s??=!1;const u=O(e,c,i,n,s,!1,0,0);if(u.spatialReference=o??void 0,!u.isMultipart()){for(let e=0,t=0;e<c;++e)u.vertexXY[2*e]=r[t++],u.vertexXY[2*e+1]=r[t++],n&&(u.vertexZ[e]=r[t++]),s&&(u.vertexM[e]=r[t++]);return u}const l=2+Number(n)+Number(s);let m=0,h=0;u.partOffsets[0]=0;for(const e of t){const t=u.partOffsets[h],o=t+e-Number(a);u.partOffsets[++h]=o;for(let e=t;e<o;++e)u.vertexXY[2*e]=r[m++],u.vertexXY[2*e+1]=r[m++],n&&(u.vertexZ[e]=r[m++]),s&&(u.vertexM[e]=r[m++]);a&&(m+=l)}return u}function T({type:e,vertexCount:t,vertexXY:r,vertexZ:n,vertexM:s,partCount:o,partOffsets:i,hasZ:a,hasM:c}){const u=new y.A([],[],a,c);o=Math.max(o,1);const l="polygon"===e;let m=0;for(let e=0;e<o;++e){const o=i?.[e+1]??t,h=u.coords.length;for(let e=m;e<o;++e)u.coords.push(r[2*e],r[2*e+1]),a&&u.coords.push(n[e]),c&&u.coords.push(s[e]);if(l){const e=m;u.coords.push(r[2*e],r[2*e+1]),a&&u.coords.push(n[e]),c&&u.coords.push(s[e])}u.lengths.push((u.coords.length-h)/u.stride),m=o}return"point"===e&&(u.lengths.length=0),u}function M(e,t){return"getSpatialReference"in e&&(t=function(e){if(null==e)return;const t=e.getText()||void 0,r=e.isCustomWkid()?0:e.getOldID();if(r<=0)return{wkt:t};let n=e.getLatestID();(n<=0||n===r)&&(n=void 0);const s=e.getVCS();if(null==s)return{wkid:r,latestWkid:n,wkt:t};const o=s.isCustomWkid()?0:s.getOldID();if(o<=0)return{wkt:t};let i=e.getLatestVerticalID();return(i<=0||i===o)&&(i=void 0),{wkid:r,wkt:t,latestWkid:n,vcsWkid:o,latestVcsWkid:i}}(e.getSpatialReference()),e=e.getGeometry()),new g({...e.toFlatGeometry(),spatialReference:t})}class C{constructor(e,t){this.target=e,this.keys=t,this.oldValues=t.map(t=>e[t]);for(const r of t)e[r]=void 0}[Symbol.dispose](){this.keys.map((e,t)=>{this.target[e]=this.oldValues[t]})}}function X({spatialReference:e}){return e instanceof s.A?e.toJSON():e}function E({vertexXY:e,vertexZ:t,vertexM:r}){return t?r?n=>[e[2*n],e[2*n+1],t[n],r[n]]: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 R(e,t){return e.every((e,r)=>e===t[r])}function O(e,t,r,n,s,o,i,a){i??=0,a??=0;const c=new g({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:a});let u=2*Float64Array.BYTES_PER_ELEMENT*t;n&&(u+=Float64Array.BYTES_PER_ELEMENT*t),s&&(u+=Float64Array.BYTES_PER_ELEMENT*t),c.isMultipart()&&(u+=(r+1)*Int32Array.BYTES_PER_ELEMENT,u+=(r+1)*Int8Array.BYTES_PER_ELEMENT),o&&(u+=t*Int8Array.BYTES_PER_ELEMENT,u+=t*Int32Array.BYTES_PER_ELEMENT,u+=c.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const l=new ArrayBuffer(u);let m=0;return c.vertexXY=new Float64Array(l,m,2*t),m+=c.vertexXY.byteLength,n&&(c.vertexZ=new Float64Array(l,m,t),m+=c.vertexZ.byteLength),s&&(c.vertexM=new Float64Array(l,m,t),m+=c.vertexM.byteLength),o&&(c.segmentParams=new Float64Array(l,m,c.segmentParamCount),m+=c.segmentParams.byteLength,c.segmentIndices=new Int32Array(l,m,t),c.segmentIndices.fill(V),m+=c.segmentIndices.byteLength),c.isMultipart()&&(c.partOffsets=new Int32Array(l,m,r+1),m+=c.partOffsets.byteLength,c.partFlags=new Int8Array(l,m,r+1),m+=c.partFlags.byteLength,"polygon"===c.type&&c.partFlags.subarray(0,r).fill(1)),o&&(c.segmentFlags=new Int8Array(l,m,t),c.segmentFlags.fill(1),m+=c.segmentFlags.byteLength),c}function P(e,t,{segmentFlags:r,segmentIndices:n,segmentParams:s},o,i){r[o]=4,n[o]=i;const[a,[c,u],l,m,h,y,g]=t.a;let d=4;m||(d|=1),l||(d|=2);const p=(0,f.SW)(e,t),[x,G]=(0,f.Uk)(p,.5);return s[i++]=d,s[i++]=y,s[i++]=g,s[i++]=h,s[i++]=c,s[i++]=u,s[i++]=p.u2-p.u1,s[i++]=p.u1,s[i++]=x,s[i++]=G,i}function A(e,t,{segmentFlags:r,segmentIndices:n,segmentParams:s},o,i){r[o]=4,n[o]=i;const a=(0,h.io)(e,t);return Z(a,4,...(0,c.mq)(a,.5),s,i)}function _(e,t,{segmentFlags:r,segmentIndices:n,segmentParams:s},o,i){return r[o]=4,n[o]=i,Z((0,u.pM)(e,t),0,...t.c[1],s,i)}function Z(e,t,r,n,s,o){const{cx:i,cy:a,thetaStart:c,thetaEnd:u,radius:l}=e;return c>u||(t|=1),Math.abs(u-c)<=Math.PI||(t|=2),s[o++]=t,s[o++]=l,s[o++]=1,s[o++]=0,s[o++]=i,s[o++]=a,s[o++]=u-c,s[o++]=c,s[o++]=r,s[o++]=n,o}function F(e,{b:[t,[r,n],[s,o]]},{segmentFlags:i,segmentIndices:a,segmentParams:c},u,l){return i[u]=2,a[u]=l,c[l++]=r,c[l++]=n,c[l++]=s,c[l++]=o,l}const I=1.61803,V=-1},60408(e,t,r){function n(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function s(e){return void 0!==e.points}function o(e){return void 0!==e.x&&void 0!==e.y}function i(e){return void 0!==e.paths||void 0!==e.curvePaths}function a(e){return void 0!==e.rings||void 0!==e.curveRings}function c(e){return"object"==typeof e&&"vertexAttributes"in e}function u(e){return e?o(e)?"esriGeometryPoint":i(e)?"esriGeometryPolyline":a(e)?"esriGeometryPolygon":n(e)?"esriGeometryEnvelope":s(e)?"esriGeometryMultipoint":null:null}function l(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function m(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}r.d(t,{$B:()=>u,Bi:()=>a,Pv:()=>l,Rg:()=>i,U9:()=>s,W0:()=>m,ZC:()=>n,fT:()=>o,uW:()=>c})},92722(e,t,r){r.d(t,{A:()=>s});var n=r(69397);class s{constructor(e=[],t=[],r=!1,n=!1){this.lengths=e??[],this.coords=t??[],this.hasZ=r,this.hasM=n}static fromJSON({lengths:e,coords:t,hasZ:r,hasM:n}){return new s(e,t,r||!1,n||!1)}static fromRect([e,t,r,n]){const o=r-e,i=n-t;return new s([5],[e,t,o,0,0,i,-o,0,0,-i])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((e,t)=>e+t,0)}get usedMemory(){return 64+(0,n.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let e=0,t=0;for(const r of this.lengths){if(r<3)continue;const{stride:n}=this;let s=this.coords[n*t],o=this.coords[n*t+1];for(let i=1;i<r;i+=1){const r=n*(t+i),a=this.coords[r],c=this.coords[r+1];e+=-.5*(a-s)*(c+o),s=a,o=c}t+=r}return e}forEachVertex(e){let t=0;if(this.isPoint)return e(this.coords[0],this.coords[1]);const{stride:r}=this;for(const n of this.lengths){for(let s=0;s<n;s++){const n=r*(t+s);e(this.coords[n],this.coords[n+1])}t+=n}}deltaDecode(){const e=this.clone(),{coords:t,lengths:r}=e;let n=0;const{stride:s}=this;for(const e of r){for(let r=1;r<e;r++){const e=s*(n+r);t[e]+=t[e-s],t[e+1]+=t[e+1-s]}n+=e}return e}clone(e){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const t=Array.from(this.lengths),{stride:r,size:n}=this,o=this.coords.slice(0,n*r);return e?(e.set(o),new s(t,e,this.hasZ,this.hasM)):new s(t,Array.from(o),this.hasZ,this.hasM)}justXY(){const{stride:e,size:t}=this;if(2===e)return this;const r=new Array(t*e);for(let t=0,n=0;t<r.length;t+=e)r[n++]=this.coords[t],r[n++]=this.coords[t+1];return new s(this.lengths,r,!1,!1)}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1086,8768],{80200(e,t,r){r.d(t,{d:()=>c});const i={Base64:0,Hex:1,String:2,Raw:3};function s(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function n(e,t,r,i,n,o){return s(function(e,t){return e<<t|e>>>32-t}(s(s(t,e),s(i,o)),n),r)}function o(e,t,r,i,s,o,a){return n(t&r|~t&i,e,t,s,o,a)}function a(e,t,r,i,s,o,a){return n(t&i|r&~i,e,t,s,o,a)}function l(e,t,r,i,s,o,a){return n(t^r^i,e,t,s,o,a)}function u(e,t,r,i,s,o,a){return n(r^(t|~i),e,t,s,o,a)}function d(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let r=1732584193,i=-271733879,n=-1732584194,d=271733878;for(let t=0;t<e.length;t+=16){const c=r,p=i,h=n,y=d;r=o(r,i,n,d,e[t],7,-680876936),d=o(d,r,i,n,e[t+1],12,-389564586),n=o(n,d,r,i,e[t+2],17,606105819),i=o(i,n,d,r,e[t+3],22,-1044525330),r=o(r,i,n,d,e[t+4],7,-176418897),d=o(d,r,i,n,e[t+5],12,1200080426),n=o(n,d,r,i,e[t+6],17,-1473231341),i=o(i,n,d,r,e[t+7],22,-45705983),r=o(r,i,n,d,e[t+8],7,1770035416),d=o(d,r,i,n,e[t+9],12,-1958414417),n=o(n,d,r,i,e[t+10],17,-42063),i=o(i,n,d,r,e[t+11],22,-1990404162),r=o(r,i,n,d,e[t+12],7,1804603682),d=o(d,r,i,n,e[t+13],12,-40341101),n=o(n,d,r,i,e[t+14],17,-1502002290),i=o(i,n,d,r,e[t+15],22,1236535329),r=a(r,i,n,d,e[t+1],5,-165796510),d=a(d,r,i,n,e[t+6],9,-1069501632),n=a(n,d,r,i,e[t+11],14,643717713),i=a(i,n,d,r,e[t],20,-373897302),r=a(r,i,n,d,e[t+5],5,-701558691),d=a(d,r,i,n,e[t+10],9,38016083),n=a(n,d,r,i,e[t+15],14,-660478335),i=a(i,n,d,r,e[t+4],20,-405537848),r=a(r,i,n,d,e[t+9],5,568446438),d=a(d,r,i,n,e[t+14],9,-1019803690),n=a(n,d,r,i,e[t+3],14,-187363961),i=a(i,n,d,r,e[t+8],20,1163531501),r=a(r,i,n,d,e[t+13],5,-1444681467),d=a(d,r,i,n,e[t+2],9,-51403784),n=a(n,d,r,i,e[t+7],14,1735328473),i=a(i,n,d,r,e[t+12],20,-1926607734),r=l(r,i,n,d,e[t+5],4,-378558),d=l(d,r,i,n,e[t+8],11,-2022574463),n=l(n,d,r,i,e[t+11],16,1839030562),i=l(i,n,d,r,e[t+14],23,-35309556),r=l(r,i,n,d,e[t+1],4,-1530992060),d=l(d,r,i,n,e[t+4],11,1272893353),n=l(n,d,r,i,e[t+7],16,-155497632),i=l(i,n,d,r,e[t+10],23,-1094730640),r=l(r,i,n,d,e[t+13],4,681279174),d=l(d,r,i,n,e[t],11,-358537222),n=l(n,d,r,i,e[t+3],16,-722521979),i=l(i,n,d,r,e[t+6],23,76029189),r=l(r,i,n,d,e[t+9],4,-640364487),d=l(d,r,i,n,e[t+12],11,-421815835),n=l(n,d,r,i,e[t+15],16,530742520),i=l(i,n,d,r,e[t+2],23,-995338651),r=u(r,i,n,d,e[t],6,-198630844),d=u(d,r,i,n,e[t+7],10,1126891415),n=u(n,d,r,i,e[t+14],15,-1416354905),i=u(i,n,d,r,e[t+5],21,-57434055),r=u(r,i,n,d,e[t+12],6,1700485571),d=u(d,r,i,n,e[t+3],10,-1894986606),n=u(n,d,r,i,e[t+10],15,-1051523),i=u(i,n,d,r,e[t+1],21,-2054922799),r=u(r,i,n,d,e[t+8],6,1873313359),d=u(d,r,i,n,e[t+15],10,-30611744),n=u(n,d,r,i,e[t+6],15,-1560198380),i=u(i,n,d,r,e[t+13],21,1309151649),r=u(r,i,n,d,e[t+4],6,-145523070),d=u(d,r,i,n,e[t+11],10,-1120210379),n=u(n,d,r,i,e[t+2],15,718787259),i=u(i,n,d,r,e[t+9],21,-343485551),r=s(r,c),i=s(i,p),n=s(n,h),d=s(d,y)}return[r,i,n,d]}function c(e,t=i.Hex){const r=t||i.Base64,s=d(function(e){const t=[];for(let r=0,i=8*e.length;r<i;r+=8)t[r>>5]|=(255&e.charCodeAt(r/8))<<r%32;return t}(e),8*e.length);switch(r){case i.Raw:return s;case i.Hex:return function(e){const t="0123456789abcdef",r=[];for(let i=0,s=4*e.length;i<s;i++)r.push(t.charAt(e[i>>2]>>i%4*8+4&15)+t.charAt(e[i>>2]>>i%4*8&15));return r.join("")}(s);case i.String:return function(e){const t=[];for(let r=0,i=32*e.length;r<i;r+=8)t.push(String.fromCharCode(e[r>>5]>>>r%32&255));return t.join("")}(s);case i.Base64:return function(e){const t=[];for(let r=0,i=4*e.length;r<i;r+=3){const i=(e[r>>2]>>r%4*8&255)<<16|(e[r+1>>2]>>(r+1)%4*8&255)<<8|e[r+2>>2]>>(r+2)%4*8&255;for(let s=0;s<4;s++)8*r+6*s>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(i>>6*(3-s)&63))}return t.join("")}(s)}}r.d(t,["T",0,i])},87024(e,t,r){r.d(t,{P:()=>h});var i=r(49186),s=r(80200),n=r(76553),o=r(84952),a=r(13069),l=r(96156),u=r(35666),d=r(10107),c=r(85648),p=r(97159);function h(e){const t=e?.origins??[void 0];return(r,i)=>{const s=function(e,t,r){if("resource"===e?.type)return function(e,t,r){const i=(0,l.z4)(t,r);return{type:String,read:(e,t,r)=>{const s=(0,p.r)(e,t,r);return i.type===String?s:"function"==typeof i.type?new i.type({url:s}):void 0},write:{isRequired:i.json?.write?.isRequired,writer(t,s,a,l){if(!l?.resources)return"string"==typeof t?void(s[a]=(0,p.t)(t,l)):void(s[a]=t.write({},l));const d=function(e){return null==e?null:"string"==typeof e?e:e.url}(t),h=(0,p.t)(d,{...l,verifyItemRelativeUrls:l?.verifyItemRelativeUrls?{writtenUrls:l.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},1),m=i.type!==String&&(!(0,n.H)(this)||l?.origin&&this.originIdOf(r)>(0,u.aB)(l.origin)),v={object:this,propertyName:r,value:t,targetUrl:h,dest:s,targetPropertyName:a,context:l,params:e};l?.portalItem&&h&&!(0,o.oP)(h)?m&&e?.contentAddressed?y(v):m?function(e){const{context:t,targetUrl:r,params:i,value:s,dest:n,targetPropertyName:a}=e;if(!t.portalItem)return;const l=t.portalItem.resourceFromPath(r),u=g(s,r,t),d=(0,c.n)(u),p=(0,o.Zo)(l.path),h=i?.compress??!1;d===p?(t.resources&&f({...e,resource:l,content:u,compress:h,updates:t.resources.toUpdate}),n[a]=r):y(e)}(v):function({context:e,targetUrl:t,dest:r,targetPropertyName:i}){e.portalItem&&e.resources&&(e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(t),compress:!1}),r[i]=t)}(v):l?.portalItem&&(null==h||null!=(0,p.i)(h)||(0,o.w8)(h)||m)?y(v):s[a]=h}}}}(e,t,r);switch(e?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:e,write:t}=p.b;return{read:e,write:t}}}}(e,r,i);for(const e of t){const t=(0,d.rM)(r,e,i);for(const e in s)t[e]=s[e]}}}function y(e){const{targetUrl:t,params:r,value:n,context:l,dest:u,targetPropertyName:d}=e;if(!l.portalItem)return;const h=(0,p.p)(t),y=g(n,t,l);if(r?.contentAddressed&&"json"!==y.type)return void l.messages?.push(new i.A("persistable:contentAddressingUnsupported",`Property "${d}" is trying to serializing a resource with content of type ${y.type} with content addressing. Content addressing is only supported for json resources.`,{content:y}));const m=r?.contentAddressed&&"json"===y.type?(0,s.d)(y.jsonString):h?.filename??(0,a.lk)(),v=(0,o.fj)(r?.prefix??h?.prefix,m),w=`${v}.${(0,c.n)(y)}`;if(r?.contentAddressed&&l.resources&&"json"===y.type){const e=l.resources.toKeep.find(({resource:e})=>e.path===w)??l.resources.toAdd.find(({resource:e})=>e.path===w);if(e)return void(u[d]=e.resource.itemRelativeUrl)}const b=l.portalItem.resourceFromPath(w);(0,o.w8)(t)&&l.resources&&l.resources.pendingOperations.push((0,o.tk)(t).then(e=>{b.path=`${v}.${(0,c.n)({type:"blob",blob:e})}`,u[d]=b.itemRelativeUrl}).catch(()=>{}));const M=r?.compress??!1;l.resources&&f({...e,resource:b,content:y,compress:M,updates:l.resources.toAdd}),u[d]=b.itemRelativeUrl}function f({object:e,propertyName:t,updates:r,resource:i,content:s,compress:n}){r.push({resource:i,content:s,compress:n,finish:r=>{!function(e,t,r){"string"==typeof e[t]?e[t]=r.url:e[t].url=r.url}(e,t,r)}})}function g(e,t,r){return"string"==typeof e?{type:"url",url:t}:{type:"json",jsonString:JSON.stringify(e.toJSON(r))}}},58083(e,t,r){r.d(t,{$0:()=>m,$h:()=>x,B8:()=>d,C:()=>n,D_:()=>a,N9:()=>w,O7:()=>F,Qw:()=>u,Tl:()=>p,X_:()=>A,e$:()=>y,eL:()=>f,hM:()=>v,hZ:()=>o,hs:()=>h,kN:()=>g,l:()=>S,lw:()=>c,mg:()=>l,o1:()=>C,sC:()=>I,t2:()=>E,t5:()=>L,tZ:()=>O,ut:()=>j});var i=r(51850),s=r(34304);function n(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[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function o(e,t,r,i,s,n,o,a,l,u,d,c,p,h,y,f,g){return e[0]=t,e[1]=r,e[2]=i,e[3]=s,e[4]=n,e[5]=o,e[6]=a,e[7]=l,e[8]=u,e[9]=d,e[10]=c,e[11]=p,e[12]=h,e[13]=y,e[14]=f,e[15]=g,e}function a(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function l(e,t){if(e===t){const r=t[1],i=t[2],s=t[3],n=t[6],o=t[7],a=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=i,e[9]=n,e[11]=t[14],e[12]=s,e[13]=o,e[14]=a}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}function u(e,t){return d(e,t)||a(e),e}function d(e,t){const r=t[0],i=t[1],s=t[2],n=t[3],o=t[4],a=t[5],l=t[6],u=t[7],d=t[8],c=t[9],p=t[10],h=t[11],y=t[12],f=t[13],g=t[14],m=t[15],v=r*a-i*o,w=r*l-s*o,b=r*u-n*o,M=i*l-s*a,I=i*u-n*a,A=s*u-n*l,S=d*f-c*y,C=d*g-p*y,F=d*m-h*y,x=c*g-p*f,L=c*m-h*f,T=p*m-h*g;let E=v*T-w*L+b*x+M*F-I*C+A*S;return E?(E=1/E,e[0]=(a*T-l*L+u*x)*E,e[1]=(s*L-i*T-n*x)*E,e[2]=(f*A-g*I+m*M)*E,e[3]=(p*I-c*A-h*M)*E,e[4]=(l*F-o*T-u*C)*E,e[5]=(r*T-s*F+n*C)*E,e[6]=(g*b-y*A-m*w)*E,e[7]=(d*A-p*b+h*w)*E,e[8]=(o*L-a*F+u*S)*E,e[9]=(i*F-r*L-n*S)*E,e[10]=(y*I-f*b+m*v)*E,e[11]=(c*b-d*I-h*v)*E,e[12]=(a*C-o*x-l*S)*E,e[13]=(r*x-i*C+s*S)*E,e[14]=(f*w-y*M-g*v)*E,e[15]=(d*M-c*w+p*v)*E,e):null}function c(e,t,r){const i=t[0],s=t[1],n=t[2],o=t[3],a=t[4],l=t[5],u=t[6],d=t[7],c=t[8],p=t[9],h=t[10],y=t[11],f=t[12],g=t[13],m=t[14],v=t[15];let w=r[0],b=r[1],M=r[2],I=r[3];return e[0]=w*i+b*a+M*c+I*f,e[1]=w*s+b*l+M*p+I*g,e[2]=w*n+b*u+M*h+I*m,e[3]=w*o+b*d+M*y+I*v,w=r[4],b=r[5],M=r[6],I=r[7],e[4]=w*i+b*a+M*c+I*f,e[5]=w*s+b*l+M*p+I*g,e[6]=w*n+b*u+M*h+I*m,e[7]=w*o+b*d+M*y+I*v,w=r[8],b=r[9],M=r[10],I=r[11],e[8]=w*i+b*a+M*c+I*f,e[9]=w*s+b*l+M*p+I*g,e[10]=w*n+b*u+M*h+I*m,e[11]=w*o+b*d+M*y+I*v,w=r[12],b=r[13],M=r[14],I=r[15],e[12]=w*i+b*a+M*c+I*f,e[13]=w*s+b*l+M*p+I*g,e[14]=w*n+b*u+M*h+I*m,e[15]=w*o+b*d+M*y+I*v,e}function p(e,t,r){const i=r[0],s=r[1],n=r[2];if(t===e)e[12]=t[0]*i+t[4]*s+t[8]*n+t[12],e[13]=t[1]*i+t[5]*s+t[9]*n+t[13],e[14]=t[2]*i+t[6]*s+t[10]*n+t[14],e[15]=t[3]*i+t[7]*s+t[11]*n+t[15];else{const r=t[0],o=t[1],a=t[2],l=t[3],u=t[4],d=t[5],c=t[6],p=t[7],h=t[8],y=t[9],f=t[10],g=t[11];e[0]=r,e[1]=o,e[2]=a,e[3]=l,e[4]=u,e[5]=d,e[6]=c,e[7]=p,e[8]=h,e[9]=y,e[10]=f,e[11]=g,e[12]=r*i+u*s+h*n+t[12],e[13]=o*i+d*s+y*n+t[13],e[14]=a*i+c*s+f*n+t[14],e[15]=l*i+p*s+g*n+t[15]}return e}function h(e,t,r){const i=r[0],s=r[1],n=r[2];return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e[4]=t[4]*s,e[5]=t[5]*s,e[6]=t[6]*s,e[7]=t[7]*s,e[8]=t[8]*n,e[9]=t[9]*n,e[10]=t[10]*n,e[11]=t[11]*n,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function y(e,t,r,i){let o=i[0],a=i[1],l=i[2],u=Math.sqrt(o*o+a*a+l*l);if(u<=(0,s.FD)())return void n(e,t);u=1/u,o*=u,a*=u,l*=u;const d=Math.sin(r),c=Math.cos(r),p=1-c,h=t[0],y=t[1],f=t[2],g=t[3],m=t[4],v=t[5],w=t[6],b=t[7],M=t[8],I=t[9],A=t[10],S=t[11],C=o*o*p+c,F=a*o*p+l*d,x=l*o*p-a*d,L=o*a*p-l*d,T=a*a*p+c,E=l*a*p+o*d,j=o*l*p+a*d,O=a*l*p-o*d,P=l*l*p+c;e[0]=h*C+m*F+M*x,e[1]=y*C+v*F+I*x,e[2]=f*C+w*F+A*x,e[3]=g*C+b*F+S*x,e[4]=h*L+m*T+M*E,e[5]=y*L+v*T+I*E,e[6]=f*L+w*T+A*E,e[7]=g*L+b*T+S*E,e[8]=h*j+m*O+M*P,e[9]=y*j+v*O+I*P,e[10]=f*j+w*O+A*P,e[11]=g*j+b*O+S*P,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15])}function f(e,t,r){const i=Math.sin(r),s=Math.cos(r),n=t[4],o=t[5],a=t[6],l=t[7],u=t[8],d=t[9],c=t[10],p=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=n*s+u*i,e[5]=o*s+d*i,e[6]=a*s+c*i,e[7]=l*s+p*i,e[8]=u*s-n*i,e[9]=d*s-o*i,e[10]=c*s-a*i,e[11]=p*s-l*i,e}function g(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}function m(e,t,r){if(0===t)return a(e);let i=r[0],n=r[1],o=r[2],l=Math.sqrt(i*i+n*n+o*o);if(l<=(0,s.FD)())return null;l=1/l,i*=l,n*=l,o*=l;const u=Math.sin(t),d=Math.cos(t),c=1-d;return e[0]=i*i*c+d,e[1]=n*i*c+o*u,e[2]=o*i*c-n*u,e[3]=0,e[4]=i*n*c-o*u,e[5]=n*n*c+d,e[6]=o*n*c+i*u,e[7]=0,e[8]=i*o*c+n*u,e[9]=n*o*c-i*u,e[10]=o*o*c+d,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function v(e,t){const r=Math.sin(t),i=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function w(e,t){const r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function b(e,t,r){const i=t[0],s=t[1],n=t[2],o=t[3],a=i+i,l=s+s,u=n+n,d=i*a,c=i*l,p=i*u,h=s*l,y=s*u,f=n*u,g=o*a,m=o*l,v=o*u;return e[0]=1-(h+f),e[1]=c+v,e[2]=p-m,e[3]=0,e[4]=c-v,e[5]=1-(d+f),e[6]=y+g,e[7]=0,e[8]=p+m,e[9]=y-g,e[10]=1-(d+h),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}const M=(0,i.vt)();function I(e,t){return e[0]=t[12],e[1]=t[13],e[2]=t[14],e}function A(e,t){const r=t[0],i=t[1],s=t[2],n=t[4],o=t[5],a=t[6],l=t[8],u=t[9],d=t[10];return e[0]=Math.sqrt(r*r+i*i+s*s),e[1]=Math.sqrt(n*n+o*o+a*a),e[2]=Math.sqrt(l*l+u*u+d*d),e}function S(e,t){const r=t[0]+t[5]+t[10];let i=0;return r>0?(i=2*Math.sqrt(r+1),e[3]=.25*i,e[0]=(t[6]-t[9])/i,e[1]=(t[8]-t[2])/i,e[2]=(t[1]-t[4])/i):t[0]>t[5]&&t[0]>t[10]?(i=2*Math.sqrt(1+t[0]-t[5]-t[10]),e[3]=(t[6]-t[9])/i,e[0]=.25*i,e[1]=(t[1]+t[4])/i,e[2]=(t[8]+t[2])/i):t[5]>t[10]?(i=2*Math.sqrt(1+t[5]-t[0]-t[10]),e[3]=(t[8]-t[2])/i,e[0]=(t[1]+t[4])/i,e[1]=.25*i,e[2]=(t[6]+t[9])/i):(i=2*Math.sqrt(1+t[10]-t[0]-t[5]),e[3]=(t[1]-t[4])/i,e[0]=(t[8]+t[2])/i,e[1]=(t[6]+t[9])/i,e[2]=.25*i),e}function C(e,t,r,i){const s=t[0],n=t[1],o=t[2],a=t[3],l=s+s,u=n+n,d=o+o,c=s*l,p=s*u,h=s*d,y=n*u,f=n*d,g=o*d,m=a*l,v=a*u,w=a*d,b=i[0],M=i[1],I=i[2];return e[0]=(1-(y+g))*b,e[1]=(p+w)*b,e[2]=(h-v)*b,e[3]=0,e[4]=(p-w)*M,e[5]=(1-(c+g))*M,e[6]=(f+m)*M,e[7]=0,e[8]=(h+v)*I,e[9]=(f-m)*I,e[10]=(1-(c+y))*I,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}function F(e,t,r,i,s){const n=t[0],o=t[1],a=t[2],l=t[3],u=n+n,d=o+o,c=a+a,p=n*u,h=n*d,y=n*c,f=o*d,g=o*c,m=a*c,v=l*u,w=l*d,b=l*c,M=i[0],I=i[1],A=i[2],S=s[0],C=s[1],F=s[2],x=(1-(f+m))*M,L=(h+b)*M,T=(y-w)*M,E=(h-b)*I,j=(1-(p+m))*I,O=(g+v)*I,P=(y+w)*A,_=(g-v)*A,R=(1-(p+f))*A;return e[0]=x,e[1]=L,e[2]=T,e[3]=0,e[4]=E,e[5]=j,e[6]=O,e[7]=0,e[8]=P,e[9]=_,e[10]=R,e[11]=0,e[12]=r[0]+S-(x*S+E*C+P*F),e[13]=r[1]+C-(L*S+j*C+_*F),e[14]=r[2]+F-(T*S+O*C+R*F),e[15]=1,e}function x(e,t,r,i,s,n,o){const a=1/(r-t),l=1/(s-i),u=1/(n-o);return e[0]=2*n*a,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*n*l,e[6]=0,e[7]=0,e[8]=(r+t)*a,e[9]=(s+i)*l,e[10]=(o+n)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*n*2*u,e[15]=0,e}function L(e,t,r,i){const n=t[0],o=t[1],l=t[2];let u=n-r[0],d=o-r[1],c=l-r[2];const p=(0,s.FD)();if(Math.abs(u)<p&&Math.abs(d)<p&&Math.abs(c)<p)return void a(e);let h=1/Math.sqrt(u*u+d*d+c*c);u*=h,d*=h,c*=h;const y=i[0],f=i[1],g=i[2];let m=f*c-g*d,v=g*u-y*c,w=y*d-f*u;h=Math.sqrt(m*m+v*v+w*w),h?(h=1/h,m*=h,v*=h,w*=h):(m=0,v=0,w=0);let b=d*w-c*v,M=c*m-u*w,I=u*v-d*m;h=Math.sqrt(b*b+M*M+I*I),h?(h=1/h,b*=h,M*=h,I*=h):(b=0,M=0,I=0),e[0]=m,e[1]=b,e[2]=u,e[3]=0,e[4]=v,e[5]=M,e[6]=d,e[7]=0,e[8]=w,e[9]=I,e[10]=c,e[11]=0,e[12]=-(m*n+v*o+w*l),e[13]=-(b*n+M*o+I*l),e[14]=-(u*n+d*o+c*l),e[15]=1}function T(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e[4]=t[4]-r[4],e[5]=t[5]-r[5],e[6]=t[6]-r[6],e[7]=t[7]-r[7],e[8]=t[8]-r[8],e[9]=t[9]-r[9],e[10]=t[10]-r[10],e[11]=t[11]-r[11],e[12]=t[12]-r[12],e[13]=t[13]-r[13],e[14]=t[14]-r[14],e[15]=t[15]-r[15],e}function E(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[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]}function j(e){const t=(0,s.FD)(),r=e[0],i=e[1],n=e[2],o=e[4],a=e[5],l=e[6],u=e[8],d=e[9],c=e[10];return Math.abs(1-(r*r+o*o+u*u))<=t&&Math.abs(1-(i*i+a*a+d*d))<=t&&Math.abs(1-(n*n+l*l+c*c))<=t}function O(e){return 1===e[0]&&0===e[1]&&0===e[2]&&0===e[4]&&1===e[5]&&0===e[6]&&0===e[8]&&0===e[9]&&1===e[10]}const P=c,_=T;Object.freeze(Object.defineProperty({__proto__:null,add:function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e[4]=t[4]+r[4],e[5]=t[5]+r[5],e[6]=t[6]+r[6],e[7]=t[7]+r[7],e[8]=t[8]+r[8],e[9]=t[9]+r[9],e[10]=t[10]+r[10],e[11]=t[11]+r[11],e[12]=t[12]+r[12],e[13]=t[13]+r[13],e[14]=t[14]+r[14],e[15]=t[15]+r[15],e},adjoint:function(e,t){const r=t[0],i=t[1],s=t[2],n=t[3],o=t[4],a=t[5],l=t[6],u=t[7],d=t[8],c=t[9],p=t[10],h=t[11],y=t[12],f=t[13],g=t[14],m=t[15];return e[0]=a*(p*m-h*g)-c*(l*m-u*g)+f*(l*h-u*p),e[1]=-(i*(p*m-h*g)-c*(s*m-n*g)+f*(s*h-n*p)),e[2]=i*(l*m-u*g)-a*(s*m-n*g)+f*(s*u-n*l),e[3]=-(i*(l*h-u*p)-a*(s*h-n*p)+c*(s*u-n*l)),e[4]=-(o*(p*m-h*g)-d*(l*m-u*g)+y*(l*h-u*p)),e[5]=r*(p*m-h*g)-d*(s*m-n*g)+y*(s*h-n*p),e[6]=-(r*(l*m-u*g)-o*(s*m-n*g)+y*(s*u-n*l)),e[7]=r*(l*h-u*p)-o*(s*h-n*p)+d*(s*u-n*l),e[8]=o*(c*m-h*f)-d*(a*m-u*f)+y*(a*h-u*c),e[9]=-(r*(c*m-h*f)-d*(i*m-n*f)+y*(i*h-n*c)),e[10]=r*(a*m-u*f)-o*(i*m-n*f)+y*(i*u-n*a),e[11]=-(r*(a*h-u*c)-o*(i*h-n*c)+d*(i*u-n*a)),e[12]=-(o*(c*g-p*f)-d*(a*g-l*f)+y*(a*p-l*c)),e[13]=r*(c*g-p*f)-d*(i*g-s*f)+y*(i*p-s*c),e[14]=-(r*(a*g-l*f)-o*(i*g-s*f)+y*(i*l-s*a)),e[15]=r*(a*p-l*c)-o*(i*p-s*c)+d*(i*l-s*a),e},copy:n,determinant:function(e){const t=e[0],r=e[1],i=e[2],s=e[3],n=e[4],o=e[5],a=e[6],l=e[7],u=e[8],d=e[9],c=e[10],p=e[11],h=e[12],y=e[13],f=e[14],g=e[15];return(t*o-r*n)*(c*g-p*f)-(t*a-i*n)*(d*g-p*y)+(t*l-s*n)*(d*f-c*y)+(r*a-i*o)*(u*g-p*h)-(r*l-s*o)*(u*f-c*h)+(i*l-s*a)*(u*y-d*h)},equals:function(e,t){if(e===t)return!0;const r=e[0],i=e[1],n=e[2],o=e[3],a=e[4],l=e[5],u=e[6],d=e[7],c=e[8],p=e[9],h=e[10],y=e[11],f=e[12],g=e[13],m=e[14],v=e[15],w=t[0],b=t[1],M=t[2],I=t[3],A=t[4],S=t[5],C=t[6],F=t[7],x=t[8],L=t[9],T=t[10],E=t[11],j=t[12],O=t[13],P=t[14],_=t[15],R=(0,s.FD)();return Math.abs(r-w)<=R*Math.max(1,Math.abs(r),Math.abs(w))&&Math.abs(i-b)<=R*Math.max(1,Math.abs(i),Math.abs(b))&&Math.abs(n-M)<=R*Math.max(1,Math.abs(n),Math.abs(M))&&Math.abs(o-I)<=R*Math.max(1,Math.abs(o),Math.abs(I))&&Math.abs(a-A)<=R*Math.max(1,Math.abs(a),Math.abs(A))&&Math.abs(l-S)<=R*Math.max(1,Math.abs(l),Math.abs(S))&&Math.abs(u-C)<=R*Math.max(1,Math.abs(u),Math.abs(C))&&Math.abs(d-F)<=R*Math.max(1,Math.abs(d),Math.abs(F))&&Math.abs(c-x)<=R*Math.max(1,Math.abs(c),Math.abs(x))&&Math.abs(p-L)<=R*Math.max(1,Math.abs(p),Math.abs(L))&&Math.abs(h-T)<=R*Math.max(1,Math.abs(h),Math.abs(T))&&Math.abs(y-E)<=R*Math.max(1,Math.abs(y),Math.abs(E))&&Math.abs(f-j)<=R*Math.max(1,Math.abs(f),Math.abs(j))&&Math.abs(g-O)<=R*Math.max(1,Math.abs(g),Math.abs(O))&&Math.abs(m-P)<=R*Math.max(1,Math.abs(m),Math.abs(P))&&Math.abs(v-_)<=R*Math.max(1,Math.abs(v),Math.abs(_))},exactEquals:E,frob:function(e){return Math.sqrt(e[0]**2+e[1]**2+e[2]**2+e[3]**2+e[4]**2+e[5]**2+e[6]**2+e[7]**2+e[8]**2+e[9]**2+e[10]**2+e[11]**2+e[12]**2+e[13]**2+e[14]**2+e[15]**2)},fromQuat:function(e,t){const r=t[0],i=t[1],s=t[2],n=t[3],o=r+r,a=i+i,l=s+s,u=r*o,d=i*o,c=i*a,p=s*o,h=s*a,y=s*l,f=n*o,g=n*a,m=n*l;return e[0]=1-c-y,e[1]=d+m,e[2]=p-g,e[3]=0,e[4]=d-m,e[5]=1-u-y,e[6]=h+f,e[7]=0,e[8]=p+g,e[9]=h-f,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromQuat2:function(e,t){const r=M,i=-t[0],s=-t[1],n=-t[2],o=t[3],a=t[4],l=t[5],u=t[6],d=t[7],c=i*i+s*s+n*n+o*o;return c>0?(r[0]=2*(a*o+d*i+l*n-u*s)/c,r[1]=2*(l*o+d*s+u*i-a*n)/c,r[2]=2*(u*o+d*n+a*s-l*i)/c):(r[0]=2*(a*o+d*i+l*n-u*s),r[1]=2*(l*o+d*s+u*i-a*n),r[2]=2*(u*o+d*n+a*s-l*i)),b(e,t,r),e},fromRotation:m,fromRotationTranslation:b,fromRotationTranslationScale:C,fromRotationTranslationScaleOrigin:F,fromScaling:function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromTranslation:g,fromXRotation:v,fromYRotation:function(e,t){const r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromZRotation:w,frustum:x,getRotation:S,getScale:A,getTranslation:I,hasIdentityRotation:O,identity:a,invert:d,invertOrIdentity:u,isOrthoNormal:j,lookAt:L,mul:P,multiply:c,multiplyScalar:function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*r,e[5]=t[5]*r,e[6]=t[6]*r,e[7]=t[7]*r,e[8]=t[8]*r,e[9]=t[9]*r,e[10]=t[10]*r,e[11]=t[11]*r,e[12]=t[12]*r,e[13]=t[13]*r,e[14]=t[14]*r,e[15]=t[15]*r,e},multiplyScalarAndAdd:function(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e[2]=t[2]+r[2]*i,e[3]=t[3]+r[3]*i,e[4]=t[4]+r[4]*i,e[5]=t[5]+r[5]*i,e[6]=t[6]+r[6]*i,e[7]=t[7]+r[7]*i,e[8]=t[8]+r[8]*i,e[9]=t[9]+r[9]*i,e[10]=t[10]+r[10]*i,e[11]=t[11]+r[11]*i,e[12]=t[12]+r[12]*i,e[13]=t[13]+r[13]*i,e[14]=t[14]+r[14]*i,e[15]=t[15]+r[15]*i,e},ortho:function(e,t,r,i,s,n,o){const a=1/(t-r),l=1/(i-s),u=1/(n-o);return e[0]=-2*a,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+r)*a,e[13]=(s+i)*l,e[14]=(o+n)*u,e[15]=1,e},perspective:function(e,t,r,i,s){const n=1/Math.tan(t/2);let o;return e[0]=n/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=s&&s!==1/0?(o=1/(i-s),e[10]=(s+i)*o,e[14]=2*s*i*o):(e[10]=-1,e[14]=-2*i),e},perspectiveFromFieldOfView:function(e,t,r,i){const s=Math.tan(t.upDegrees*Math.PI/180),n=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),a=Math.tan(t.rightDegrees*Math.PI/180),l=2/(o+a),u=2/(s+n);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-(o-a)*l*.5,e[9]=(s-n)*u*.5,e[10]=i/(r-i),e[11]=-1,e[12]=0,e[13]=0,e[14]=i*r/(r-i),e[15]=0,e},rotate:y,rotateX:f,rotateY:function(e,t,r){const i=Math.sin(r),s=Math.cos(r),n=t[0],o=t[1],a=t[2],l=t[3],u=t[8],d=t[9],c=t[10],p=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=n*s-u*i,e[1]=o*s-d*i,e[2]=a*s-c*i,e[3]=l*s-p*i,e[8]=n*i+u*s,e[9]=o*i+d*s,e[10]=a*i+c*s,e[11]=l*i+p*s,e},rotateZ:function(e,t,r){const i=Math.sin(r),s=Math.cos(r),n=t[0],o=t[1],a=t[2],l=t[3],u=t[4],d=t[5],c=t[6],p=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=n*s+u*i,e[1]=o*s+d*i,e[2]=a*s+c*i,e[3]=l*s+p*i,e[4]=u*s-n*i,e[5]=d*s-o*i,e[6]=c*s-a*i,e[7]=p*s-l*i,e},scale:h,set:o,str:function(e){return"mat4("+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]+")"},sub:_,subtract:T,targetTo:function(e,t,r,i){const s=t[0],n=t[1],o=t[2],a=i[0],l=i[1],u=i[2];let d=s-r[0],c=n-r[1],p=o-r[2],h=d*d+c*c+p*p;h>0&&(h=1/Math.sqrt(h),d*=h,c*=h,p*=h);let y=l*p-u*c,f=u*d-a*p,g=a*c-l*d;return h=y*y+f*f+g*g,h>0&&(h=1/Math.sqrt(h),y*=h,f*=h,g*=h),e[0]=y,e[1]=f,e[2]=g,e[3]=0,e[4]=c*g-p*f,e[5]=p*y-d*g,e[6]=d*f-c*y,e[7]=0,e[8]=d,e[9]=c,e[10]=p,e[11]=0,e[12]=s,e[13]=n,e[14]=o,e[15]=1,e},translate:p,transpose:l},Symbol.toStringTag,{value:"Module"}))},54239(e,t,r){r.d(t,{A:()=>m});var i,s=r(32198),n=r(4576),o=r(66552),a=r(25482),l=r(86211),u=r(67076),d=r(91429),c=r(97348),p=r(43937),h=r(36005);const y=(0,o.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),f=y.jsonValues.slice();(0,n.Xy)(f,"orthometric");const g=(0,o.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let m=i=class extends a.o{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,r){return y.write(e,t,r)}readHeightModel(e,t,r){return y.read(e)||(r?.messages&&r.messages.push(function(e,t){return new u.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return g.read(e)||(r?.messages&&r.messages.push(v(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,l.LA)(e)||g.read(e)||(r?.messages&&r.messages.push(v(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new i({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const r=(0,l.k1)(t);return new i({heightModel:e.heightModel,heightUnit:r??void 0,vertCRS:e.vertCRS})}static fromSpatialReference(e){const{latestVcsWkid:t,vcsWkid:r}=e;if(!r)return null;const s=(null!=t?c.B.get(t):null)??c.B.get(r);return s?new i({heightModel:0===s.type?"gravity-related-height":"ellipsoidal",heightUnit:(0,l.LA)(s.unit.name),vertCRS:s.datum}):null}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new i;return t.read(e,{origin:"web-scene"}),t}};function v(e,t){return new u.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,s.Cg)([(0,d.MZ)({type:y.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f,default:"ellipsoidal",write:{isRequired:!0}}}}})],m.prototype,"heightModel",void 0),(0,s.Cg)([(0,p.K)("web-scene","heightModel")],m.prototype,"writeHeightModel",null),(0,s.Cg)([(0,h.w)(["web-scene","service"],"heightModel")],m.prototype,"readHeightModel",null),(0,s.Cg)([(0,d.MZ)({type:g.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g.jsonValues,write:{writer:g.write,isRequired:!0}}}}})],m.prototype,"heightUnit",void 0),(0,s.Cg)([(0,h.w)("web-scene","heightUnit")],m.prototype,"readHeightUnit",null),(0,s.Cg)([(0,h.w)("service","heightUnit")],m.prototype,"readHeightUnitService",null),(0,s.Cg)([(0,d.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],m.prototype,"vertCRS",void 0),(0,s.Cg)([(0,h.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],m.prototype,"readVertCRS",null),m=i=(0,s.Cg)([(0,d.$K)("esri.geometry.HeightModelInfo")],m)},73836(e,t,r){r.d(t,{A:()=>h});var i=r(32198),s=r(69540),n=r(25482),o=r(91429),a=r(58083),l=r(9093),u=r(67026),d=r(82534),c=r(51850),p=r(24770);let h=class extends((0,s.OU)(n.o)){constructor(e){super(e),this.translation=(0,c.vt)(),this.rotationAxis=(0,c.ci)(p.up),this.rotationAngle=0,this.scale=(0,c.fA)(1,1,1)}get rotation(){return(0,p.i4)(this.rotationAxis,this.rotationAngle)}set rotation(e){this.rotationAxis=(0,c.o8)((0,p.yo)(e)),this.rotationAngle=(0,p.g7)(e)}get localMatrix(){const e=(0,l.vt)();return(0,u.x8)(y,(0,p.yo)(this.rotation),(0,p.$I)(this.rotation)),(0,a.o1)(e,y,this.translation,this.scale),e}get localMatrixInverse(){return(0,a.B8)((0,l.vt)(),this.localMatrix)}equals(e){return this===e||null!=e&&(0,a.t2)(this.localMatrix,e.localMatrix)}};(0,i.Cg)([(0,o.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],h.prototype,"translation",void 0),(0,i.Cg)([(0,o.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],h.prototype,"rotationAxis",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],h.prototype,"rotationAngle",void 0),(0,i.Cg)([(0,o.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],h.prototype,"scale",void 0),(0,i.Cg)([(0,o.MZ)()],h.prototype,"rotation",null),(0,i.Cg)([(0,o.MZ)()],h.prototype,"localMatrix",null),(0,i.Cg)([(0,o.MZ)()],h.prototype,"localMatrixInverse",null),h=(0,i.Cg)([(0,o.$K)("esri.geometry.support.MeshTransform")],h);const y=(0,d.vt)()},24770(e,t,r){r.d(t,{$I:()=>g,AU:()=>h,g7:()=>f,i4:()=>d,ui:()=>c,vt:()=>u,yo:()=>y});var i=r(34727),s=r(58083),n=r(67026),o=r(82534),a=r(35522),l=r(51850);function u(e=v){return[e[0],e[1],e[2],e[3]]}function d(e,t,r=u()){return(0,a.C)(r,e),r[3]=t,r}function c(e,t=u()){const r=(0,s.l)(w,e);return m(t,(0,i.KJ)((0,n.Xd)(t,r))),t}function p(e,t,r=u()){return(0,n.x8)(w,e,g(e)),(0,n.x8)(b,t,g(t)),(0,n.lw)(w,b,w),m(r,(0,i.KJ)((0,n.Xd)(r,w)))}function h(e,t,r,i=u()){return d(l.Cw,e,M),d(l.JP,t,I),d(l.Cb,r,A),p(M,I,M),p(M,A,i),i}function y(e){return e}function f(e){return e[3]}function g(e){return(0,i.kU)(e[3])}function m(e,t){return e[3]=t,e}const v=[0,0,1,0],w=(0,o.vt)(),b=(0,o.vt)(),M=(u(),u()),I=u(),A=u();r.d(t,["up",0,v])},2e4(e,t,r){r.r(t),r.d(t,{default:()=>Re});var i=r(32198),s=r(52106),n=r(37838),o=r(69540),a=r(7762),l=r(49186),u=r(36563),d=r(53966),c=r(97768),p=r(25728),h=r(17676),y=r(36708),f=r(91429),g=r(88620),m=r(86738),v=r(99917),w=r(55156),b=r(60950),M=r(89808),I=r(99959);const A=Symbol("isSceneGraphicOrigin");var S;class C extends I.A{get[(S=A,b.ym)](){return this.layer}get[w.e](){return this.layer}get[M.Q](){return this.layer}constructor(e){super(),this[S]=!0,this.type="scene",this.layer=e}get id(){return this.layer.id}}var F=r(4146),x=r(55726),L=r(52136),T=r(18768),E=r(69208),j=r(47685),O=r(34287),P=r(8303),_=r(25036),R=r(58947),Z=r(82935),U=r(60694),D=r(92009),N=r(4071),$=r(10873),q=r(15426),k=r(67202),H=r(17036),G=r(95466),K=r(30524),V=r(50805),Q=r(20557),B=r(46499),J=r(39383),z=r(37352),W=r(2976),Y=r(86390),X=r(25482);let ee=class extends X.o{constructor(){super(...arguments),this.name=null,this.field=null,this.currentRangeExtent=null,this.fullRangeExtent=null,this.type="rangeInfo"}};(0,i.Cg)([(0,f.MZ)({type:String,json:{read:!0,write:{isRequired:!0}}})],ee.prototype,"name",void 0),(0,i.Cg)([(0,f.MZ)({type:String,json:{read:!0,write:{isRequired:!0}}})],ee.prototype,"field",void 0),(0,i.Cg)([(0,f.MZ)({type:[Number],json:{read:!0,write:!0}})],ee.prototype,"currentRangeExtent",void 0),(0,i.Cg)([(0,f.MZ)({type:[Number],json:{read:!0,write:!0}})],ee.prototype,"fullRangeExtent",void 0),(0,i.Cg)([(0,f.MZ)({type:["rangeInfo"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],ee.prototype,"type",void 0),ee=(0,i.Cg)([(0,f.$K)("esri.layers.support.RangeInfo")],ee);var te,re=r(11254),ie=r(4718),se=r(87024),ne=r(67076),oe=r(39829);let ae=te=class extends((0,X.T)(a.A.ofType(oe.A))){constructor(e){super(e)}clone(){return new te(this.items.map(e=>e.clone()))}write(e,t){return this.toJSON(t)}toJSON(e){const t=e?.layer?.spatialReference;return t?this.toArray().map(r=>{if(!t.equals(r.spatialReference)){if(!(0,v.canProjectWithoutEngine)(r.spatialReference,t))return e?.messages?.push(new ne.A("scenefilter:unsupported","Scene filters with incompatible spatial references are not supported",{modification:this,spatialReference:e.layer.spatialReference,context:e})),null;const i=new oe.A;(0,v.projectPolygon)(r,i,t),r=i}const i=r.toJSON(e);return delete i.spatialReference,i}).filter(e=>null!=e):this.toArray().map(t=>t.toJSON(e))}static fromJSON(e,t){const r=new te;return e.forEach(e=>r.add(oe.A.fromJSON(e,t))),r}};ae=te=(0,i.Cg)([(0,f.$K)("esri.layers.support.PolygonCollection")],ae);const le=ae;var ue,de=r(97159),ce=r(36005);let pe=ue=class extends X.o{constructor(e){super(e),this.spatialRelationship="disjoint",this.geometries=new le,this._geometriesSource=null}initialize(){this.addHandles((0,y.on)(()=>this.geometries,"after-changes",()=>this.geometries=this.geometries,y.OH))}readGeometries(e,t,r){Array.isArray(e)?this.geometries=le.fromJSON(e,r):"web-scene"!==r.origin&&"portal-item"!==r.origin||(this._geometriesSource={url:(0,de.f)(e,r),context:r})}async loadGeometries(e,t){if(null==this._geometriesSource)return;const{url:r,context:i}=this._geometriesSource,s=await(0,re.A)(r,{responseType:"json",signal:t?.signal}),n=e.toJSON(),o=s.data.map(e=>({...e,spatialReference:n}));this.geometries=le.fromJSON(o,i),this._geometriesSource=null}clone(){const e=new ue({geometries:(0,ie.o8)(this.geometries),spatialRelationship:this.spatialRelationship});return e._geometriesSource=this._geometriesSource,e}};(0,i.Cg)([(0,f.MZ)({type:["disjoint","contains"],nonNullable:!0,json:{write:{isRequired:!0}}})],pe.prototype,"spatialRelationship",void 0),(0,i.Cg)([(0,f.MZ)({type:le,nonNullable:!0,json:{write:!0,origins:{"web-scene":{write:{isRequired:!0}}}}}),(0,se.P)({origins:["web-scene","portal-item"],type:"resource",prefix:"geometries",contentAddressed:!0})],pe.prototype,"geometries",void 0),(0,i.Cg)([(0,ce.w)(["web-scene","portal-item","service"],"geometries")],pe.prototype,"readGeometries",null),pe=ue=(0,i.Cg)([(0,f.$K)("esri.layers.support.SceneFilter")],pe);const he=pe;function ye({associatedLayer:e,serviceUpdateTimeStamp:t}){const r=e?.editingInfo?.lastEditDate,i=e?.serverGens,s=null!=r,n=null!=t,o=s&&n&&t.lastUpdate!==r.getTime();return s&&(o||!n&&i?.minServerGen!==i?.serverGen)}var fe=r(84952);let ge=class extends X.o{constructor(){super(...arguments),this.endTimeField=null,this.startTimeField=null}};(0,i.Cg)([(0,f.MZ)({type:String})],ge.prototype,"endTimeField",void 0),(0,i.Cg)([(0,f.MZ)({type:String})],ge.prototype,"startTimeField",void 0),ge=(0,i.Cg)([(0,f.$K)("esri.layers.support.SceneServiceTimeInfo")],ge);var me=r(96184),ve=r(8947),we=r(41214),be=r(97552),Me=r(24212),Ie=r(30291);async function Ae(e){const t=[];for(const r of e)r.name.toLowerCase().endsWith(".zip")?t.push(Se(r)):t.push(Promise.resolve(r));return(await Promise.all(t)).flat()}async function Se(e){const{BlobReader:t,ZipReader:i,BlobWriter:s}=await Promise.all([r.e(4402),r.e(9588)]).then(r.bind(r,9588)),n=[],o=new i(new t(e));return(await o.getEntries()).forEach(e=>{if(e.directory||/^__MACOS/i.test(e.filename))return;const t=new s;n.push(e.getData(t).then(t=>new File([t],e.filename)))}),Promise.all(n)}var Ce=r(79677),Fe=r(10184),xe=r(5682),Le=r(45671),Te=r(78553);const Ee=new Set(["3DObject","Point"]),je=(0,H.p)();let Oe=class extends((0,j.w6)((0,R.w6)((0,T.b)((0,O.q)((0,P.A)((0,_.j)((0,p.M)((0,E.d)((0,L.p)((0,o.OU)(F.A))))))))))){constructor(...e){super(...e),this.featureReduction=null,this.rangeInfos=null,this.operationalLayerType="ArcGISSceneServiceLayer",this.type="scene",this.fields=null,this.graphicOrigin=new C(this),this.floorInfo=null,this.outFields=null,this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.excludeObjectIds=new a.A,this.definitionExpression=null,this.filter=null,this.path=null,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.priority=null,this.semantic=null,this.cachedDrawingInfo={color:!1},this.popupEnabled=!0,this.popupTemplate=null,this.attributeTableTemplate=null,this.objectIdField=null,this.globalIdField=null,this._fieldUsageInfo={},this.screenSizePerspectiveEnabled=!0,this.serviceItemId=void 0,this.serviceTimeInfo=null}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this._set("renderer",null),this.associatedLayer=(0,c.pR)(this.associatedLayer)}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){const r=this.getField(e)?.domain??null;return this.associatedLayer?(0,q.Vq)(this.associatedLayer,e,t,r):r}getFeatureType(e){return e&&this.associatedLayer?this.associatedLayer.getFeatureType(e):null}get types(){return this.associatedLayer?.types??[]}get typeIdField(){return this.associatedLayer?.typeIdField??null}get templates(){return this.associatedLayer?.templates??null}get formTemplate(){return this.associatedLayer?.formTemplate??null}get fieldsIndex(){return new G.A(this.fields)}readNodePages(e,t,r){return"Point"===t.layerType&&(e=t.pointNodePages),null==e||"object"!=typeof e?null:V.W4.fromJSON(e,r)}set elevationInfo(e){this._set("elevationInfo",e),this.loaded&&this._validateElevationInfo()}get effectiveCapabilities(){return this._capabilitiesFromAssociatedFeatureLayer(this.associatedLayer?.effectiveCapabilities)}get effectiveEditingEnabled(){return null!=this.associatedLayer&&(0,q.C$)(this.associatedLayer)}get geometryType(){return _e[this.profile]||"mesh"}set renderer(e){(0,K.yp)(e,this.fieldsIndex),this._set("renderer",e)}readCachedDrawingInfo(e){return null!=e&&"object"==typeof e||(e={}),null==e.color&&(e.color=!1),e}get capabilities(){return this._capabilitiesFromAssociatedFeatureLayer(this.associatedLayer?.capabilities)}_capabilitiesFromAssociatedFeatureLayer(e){e=null!=e?e:N.P;const{query:t,queryRelated:r,editing:{supportsGlobalId:i,supportsRollbackOnFailure:s,supportsUploadWithItemId:n,supportsGeometryUpdate:o,supportsReturnServiceEditsInSourceSpatialReference:a},data:{supportsZ:l,supportsM:u,isVersioned:d,supportsAttachment:c},operations:{supportsEditing:p,supportsAdd:h,supportsUpdate:y,supportsDelete:f,supportsQuery:g,supportsQueryAttachments:m,supportsAsyncConvert3D:v},attachment:w}=e,b=e.operations.supportsChangeTracking,M=!!this.associatedLayer?.infoFor3D;return{query:t,queryRelated:r,editing:{supportsGlobalId:i,supportsReturnServiceEditsInSourceSpatialReference:a,supportsRollbackOnFailure:s,supportsGeometryUpdate:M&&o,supportsUploadWithItemId:n},data:{supportsAttachment:c,supportsZ:l,supportsM:u,isVersioned:d,queryFormats:e.data.queryFormats,sourceFormats:e.data.sourceFormats},operations:{supportsQuery:g,supportsQueryAttachments:m,supportsEditing:p&&b,supportsAdd:M&&h&&b,supportsDelete:M&&f&&b,supportsUpdate:y&&b,supportsAsyncConvert3D:v},attachment:w}}get editingEnabled(){return this._isOverridden("editingEnabled")?this._get("editingEnabled"):this.associatedLayer?.editingEnabled??!1}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}get infoFor3D(){return this.associatedLayer?.infoFor3D??null}get relationships(){return this.associatedLayer?.relationships}get defaultPopupTemplate(){return this.associatedLayer||this.attributeStorageInfo?this.createPopupTemplate():null}readObjectIdField(e,t){return!e&&t.fields&&t.fields.some(t=>("esriFieldTypeOID"===t.type&&(e=t.name),!!e)),e||void 0}readGlobalIdField(e,t){return!e&&t.fields&&t.fields.some(t=>("esriFieldTypeGlobalID"===t.type&&(e=t.name),!!e)),e||void 0}get displayField(){return this.associatedLayer?.displayField??null}readProfile(e,t){const r=t.store.profile;return null!=r&&Pe[r]?Pe[r]:(d.A.getLogger(this).error("Unknown or missing profile",{profile:r,layer:this}),"mesh-pyramids")}get useViewTime(){return this.associatedLayer?.useViewTime??!0}set useViewTime(e){this._override("useViewTime",e)}get timeInfo(){const e=this.associatedLayer?.timeInfo;if(null==e)return null;const t=e.clone();return(0,K.sv)(t,this.fieldsIndex),t}set timeInfo(e){(0,K.sv)(e,this.fieldsIndex),this._override("timeInfo",e)}get timeExtent(){return this.associatedLayer?.timeExtent}set timeExtent(e){this._override("timeExtent",e)}get timeOffset(){return this.associatedLayer?.timeOffset}set timeOffset(e){this._override("timeOffset",e)}get datesInUnknownTimezone(){return this.associatedLayer?.datesInUnknownTimezone??!1}set datesInUnknownTimezone(e){this._override("datesInUnknownTimezone",e)}load(e){return this.addResolvingPromise(this._load(e)),Promise.resolve(this)}async _load(e){const t=e?.signal;await this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(h.QP),await this._fetchService(t),await Promise.all([this._fetchIndexAndUpdateExtent(this.nodePages,t),this._setAssociatedFeatureLayer(t),this._loadFilterGeometries()]),this._validateElevationInfo(),this._applyAssociatedLayerOverrides(),this._populateFieldUsageInfo(),await this.loadTimeInfoFromService(e),await(0,ve.L)(this,{origin:"service"},t),(0,K.yp)(this.renderer,this.fieldsIndex),await this.finishLoadEditablePortalLayer(e)}async beforeSave(){null!=this.filter&&(this.filter=this.filter.clone(),await this.load())}async _loadFilterGeometries(){if(this.filter)try{await this.filter.loadGeometries(this.spatialReference)}catch(e){d.A.getLogger(this).error("#_loadFilterGeometries()",this,"Failed to load filter geometries. Geometry filter will not be applied for this layer.",{error:e}),this.filter=null}}createQuery(){const e=new be.A;return"mesh"===this.geometryType?this.capabilities.query.supportsReturnMesh&&(e.returnGeometry=!0):(e.returnGeometry=!0,e.returnZ=!0),e.where=this.definitionExpression||"1=1",e.sqlFormat="standard",e.outFields=["*"],e}queryExtent(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryExtent(e||this.createQuery(),t))}queryFeatureCount(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryFeatureCount(e||this.createQuery(),t))}queryFeatures(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryFeatures(e||this.createQuery(),t)).then(e=>{if(e?.features)for(const t of e.features)t.layer=this,t.sourceLayer=this,t.origin=this.graphicOrigin;return e})}async queryModels(e,t){const[i,{queryModels:s}]=await Promise.all([this._getAssociatedLayerForQuery(),Promise.all([r.e(893),r.e(2387)]).then(r.bind(r,41653))]);return s(this,i,e,t)}async queryModel(e,t){const[i,{queryModel:s}]=await Promise.all([this._getAssociatedLayerForQuery(),Promise.all([r.e(893),r.e(2387)]).then(r.bind(r,41653))]);return s(this,i,e,t)}async queryRelatedFeatures(e,t){if(await this.load(),!this.associatedLayer)throw new l.A("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});return this.associatedLayer.queryRelatedFeatures(e,t)}async queryRelatedFeaturesCount(e,t){if(await this.load(),!this.associatedLayer)throw new l.A("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});return this.associatedLayer.queryRelatedFeaturesCount(e,t)}async queryCachedAttributes(e,t){const r=(0,K.hL)(this.fieldsIndex,await(0,Le.TO)(this,(0,Le.D8)(this)));return(0,xe.s1)(this.parsedUrl?.path??"",this.attributeStorageInfo??[],e,t,r,this.apiKey,this.customParameters)}async queryCachedFeature(e,t){const r=await this.queryCachedAttributes(e,[t]);if(!r||0===r.length)throw new l.A("scenelayer:feature-not-in-cached-data","Feature not found in cached data");const i=new s.A;return i.attributes=r[0],i.layer=this,i.sourceLayer=this,i.origin=this.graphicOrigin,i}queryObjectIds(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryObjectIds(e||this.createQuery(),t))}queryAttachments(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryAttachments(e,t))}getFieldUsageInfo(e){const t={supportsLabelingInfo:!1,supportsRenderer:!1,supportsPopupTemplate:!1,supportsLayerQuery:!1};return this.loaded?this._fieldUsageInfo[e]||t:(d.A.getLogger(this).error("#getFieldUsageInfo()","Unavailable until layer is loaded"),t)}createPopupTemplate(e){return(0,Ie.tn)(this,e)}_getAssociatedLayerForQuery(){const e=this.associatedLayer;return e?.loaded?Promise.resolve(e):this._loadAssociatedLayerForQuery()}async _loadAssociatedLayerForQuery(){if(await this.load(),!this.associatedLayer)throw new l.A("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});try{await this.associatedLayer.load()}catch(e){throw new l.A("scenelayer:query-not-available","SceneLayer associated feature layer could not be loaded",{layer:this,error:e})}return this.associatedLayer}hasCachedStatistics(e){return null!=this.statisticsInfo&&this.statisticsInfo.some(t=>t.name===e)}async queryCachedStatistics(e,t){return await this.load(t),await this.fetchStatistics(e,t)}async saveAs(e,t){return this._debouncedSaveOperations(1,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"scene"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"scene"};return this._debouncedSaveOperations(0,e)}async applyEdits(e,t){const{applyEdits:i}=await r.e(6247).then(r.bind(r,78628));let s=t;await this.load();const n=this.associatedLayer;if(!n)throw new l.A(`${this.type}-layer:not-editable`,"Service is not editable");await n.load();const{globalIdField:o}=n,a=!!n.infoFor3D,u=s?.globalIdUsed??!0;if(a&&null==o)throw new l.A(`${this.type}-layer:not-editable`,"Valid globalIdField expected on editable SceneLayer");if(a&&!u)throw new l.A(`${this.type}-layer:globalid-required`,"globalIdUsed must not be false for SceneLayer editing as globalIds are required.");return(0,U.Wo)(n.url)&&a&&null!=e.deleteFeatures&&null!=o&&(s={...s,globalIdToObjectId:await(0,q.GA)(n,e.deleteFeatures,o)}),i(this,n.source,e,s)}async uploadAssets(e,t){if(await this.load(),null==this.associatedLayer)throw new l.A(`${this.type}-layer:not-editable`,"Service is not editable");return await this.associatedLayer.load(),this.associatedLayer.uploadAssets(e,t)}async convertMesh(e,t){t??={};const i=e=>{throw d.A.getLogger(this).error(".convertMesh()",e.message),e};await this.load(t),this.infoFor3D||i(new l.A("invalid:layer","SceneLayer has no capability for mesh conversion"));const s=await this.extractAndFilterFiles(e);(0,h.Te)(t);const n=s.reduce((e,t)=>(0,Q.oF)(this.infoFor3D,t)?e+1:e,0);0===n&&i(new x.VP),n>1&&i(new x.XQ);const o=this.spatialReference,a=t.origin,u=await(0,v.projectAsync)(a??t.defaultOrigin??new m.A({x:0,y:0,z:0,spatialReference:o}),o,t),c=o.isGeographic?"local":"georeferenced",{createWithExternalSource:p}=await Promise.all([r.e(6860),r.e(118),r.e(3354)]).then(r.bind(r,40118));(0,h.Te)(t);const y=p(u,{type:"client",files:s},{vertexSpace:c,transform:(0,Y.Z)(o),unitConversionDisabled:!0}),[f]=await this.uploadAssets([y],{...t,useAssetOrigin:!a});return f}async extractAndFilterFiles(e){await this.load();const t=this.infoFor3D;return t?(await Ae(e)).filter(e=>(0,Q.fu)(t,e)):e}validateLayer(e){if(e.layerType&&!Ee.has(e.layerType))throw new l.A("scenelayer:layer-type-not-supported","SceneLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new l.A("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x, 2.x"});if(this.version.major>2)throw new l.A("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x, 2.x"});!function(e,t){let r=!1,i=!1;if(null==e)r=!0,i=!0;else{const s=t&&t.isGeographic;switch(e){case"east-north-up":case"earth-centered":r=!0,i=s;break;case"vertex-reference-frame":r=!0,i=!s;break;default:r=!1}}if(!r)throw new l.A("scenelayer:unsupported-normal-reference-frame","Normal reference frame is invalid.");if(!i)throw new l.A("scenelayer:incompatible-normal-reference-frame","Normal reference frame is incompatible with layer spatial reference.")}(this.normalReferenceFrame,this.spatialReference)}_getTypeKeywords(){const e=[];if("points"===this.profile)e.push("Point");else{if("mesh-pyramids"!==this.profile)throw new l.A("scenelayer:unknown-profile","SceneLayer:save() encountered an unknown SceneLayer profile: "+this.profile);e.push("3DObject")}return e}_populateFieldUsageInfo(){if(this._fieldUsageInfo={},this.fields)for(const e of this.fields){const t=!!this.attributeStorageInfo?.some(t=>t.name===e.name),r=!!this.associatedLayer?.fields?.some(t=>t&&e.name===t.name),i={supportsLabelingInfo:t,supportsRenderer:t,supportsPopupTemplate:t||r,supportsLayerQuery:r};this._fieldUsageInfo[e.name]=i}}_applyAssociatedLayerOverrides(){this._applyAssociatedLayerFieldsOverrides(),this._applyAssociatedLayerPropertyOverrides(),this._applyAssociatedLayerExtentOverride(),this._applyAssociatedLayerPrivileges()}_applyAssociatedLayerFieldsOverrides(){if(!this.associatedLayer?.fields)return;let e=null;for(const t of this.associatedLayer.fields){const r=this.getField(t.name);r?(!r.domain&&t.domain&&(r.domain=t.domain.clone()),r.editable=t.editable,r.nullable=t.nullable,r.length=t.length):(e||(e=this.fields?this.fields.slice():[]),e.push(t.clone()))}e&&this._set("fields",e)}_applyAssociatedLayerPropertyOverrides(){if(!this.associatedLayer)return;const e=["popupTemplate","popupEnabled","attributeTableTemplate"],t=(0,g.oY)(this);for(let r=0;r<e.length;r++){const i=e[r],s=this.originIdOf(i),n=this.associatedLayer.originIdOf(i);s<n&&(2===n||3===n)&&t.setAtOrigin(i,this.associatedLayer[i],n)}}_applyAssociatedLayerExtentOverride(){const e=this.associatedLayer?.getAtOrigin("fullExtent","service");null!=this.associatedLayer?.infoFor3D&&e&&(0,U.Wo)(this.associatedLayer?.url)&&ye(this)&&(0,g.oY)(this).setAtOrigin("fullExtent",e.clone(),2)}_applyAssociatedLayerPrivileges(){const e=this.associatedLayer;e&&(this._set("userHasEditingPrivileges",e.userHasEditingPrivileges),this._set("userHasFullEditingPrivileges",e.userHasFullEditingPrivileges),this._set("userHasUpdateItemPrivileges",e.userHasUpdateItemPrivileges))}async _setAssociatedFeatureLayer(e){if(["mesh-pyramids","points"].includes(this.profile))try{const{serverUrl:t,layerId:r,portalItem:i}=await(0,D.L)(`${this.url}/layers/${this.layerId}`,{sceneLayerItem:this.portalItem,customParameters:this.customParameters,apiKey:this.apiKey,signal:e}),s=await W.U.FeatureLayer();this.associatedLayer=new s({url:t,customParameters:this.customParameters,apiKey:this.apiKey,layerId:r,portalItem:i}),await this.associatedLayer.load()}catch(e){(0,h.zf)(e)||this._logWarningOnPopupEnabled().catch(()=>{})}}async _logWarningOnPopupEnabled(){const e=new AbortController;this.addHandles((0,u.rE)(e));try{await(0,y.C_)(()=>this.popupEnabled&&null!=this.popupTemplate,e.signal)}catch(e){return void(0,h.jH)(e)}const t=`this SceneLayer: ${this.title}`;null==this.attributeStorageInfo?d.A.getLogger(this).warn(`Associated FeatureLayer could not be loaded and no binary attributes found. Popups will not work on ${t}`):d.A.getLogger(this).info(`Associated FeatureLayer could not be loaded. Falling back to binary attributes for Popups on ${t}`)}_validateElevationInfo(){const e=this.elevationInfo;"mesh-pyramids"===this.profile&&(0,Me.XF)(d.A.getLogger(this),(0,Me.$7)("Mesh scene layers","relative-to-scene",e)),(0,Me.XF)(d.A.getLogger(this),(0,Me.tW)("Scene layers",e))}async fetchStatistics(e,t){return await async function({fieldName:e,statisticsInfo:t,errorContext:r,fieldsIndex:i,path:s,customParameters:n,apiKey:o,signal:a}){if(null==t)throw new l.A(`${r}:no-cached-statistics`,"Cached statistics are not available for this layer");const u=i.get(e);if(null==u)throw new l.A(`${r}:field-unexisting`,`Field '${e}' does not exist on the layer`);const d=t.find(e=>e.name===u.name);if(null==d)throw new l.A(`${r}:no-cached-statistics`,"Cached statistics for this attribute are not available");const c=(0,fe.fj)(s,d.href),{data:p}=await(0,re.A)(c,{query:{f:"json",...n,token:o},responseType:"json",signal:a});return p}({fieldName:e,statisticsInfo:this.statisticsInfo,errorContext:"scenelayer",fieldsIndex:this.fieldsIndex,path:this.parsedUrl?.path??"",customParameters:this.customParameters,apiKey:this.apiKey,signal:t?.signal})}async loadTimeInfoFromService(e){const{serviceTimeInfo:t}=this;if(null==t)return;const{startTimeField:r,endTimeField:i}=t;if(null==r&&null==i)return;if(ye({associatedLayer:this.associatedLayer,serviceUpdateTimeStamp:this.serviceUpdateTimeStamp}))return;const s=async t=>{let i=null;try{const r=await this.fetchStatistics(t,e);i=r?.stats}catch{}if(null==i)return null;const{minTimeStr:s,min:n,maxTimeStr:o,max:a}=i,l=t===r?s??n:o??a;return null!=l?new Date(l):null},[n,o]=await Promise.all([s(r),s(i)]);if(null!=r&&null==n||null!=i&&null==o)return;const a=new Ce.A({start:n,end:o});this.setAtOrigin("timeInfo",new me.A({endField:i,startField:r,fullTimeExtent:a}),"service")}};(0,i.Cg)([(0,f.MZ)({types:{key:"type",base:null,typeMap:{selection:k.A}},json:{origins:{"web-scene":{name:"layerDefinition.featureReduction",write:{allowNull:!0}},"portal-item":{name:"layerDefinition.featureReduction",write:{allowNull:!0}}}}})],Oe.prototype,"featureReduction",void 0),(0,i.Cg)([(0,f.MZ)({type:[ee],json:{read:!1,origins:{"web-scene":{name:"layerDefinition.rangeInfos",write:!0},"portal-item":{name:"layerDefinition.rangeInfos",write:!0}}},clonable:!1})],Oe.prototype,"rangeInfos",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:!1}})],Oe.prototype,"associatedLayer",void 0),(0,i.Cg)([(0,f.MZ)({type:["show","hide"]})],Oe.prototype,"listMode",void 0),(0,i.Cg)([(0,f.MZ)({type:["ArcGISSceneServiceLayer"]})],Oe.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:!1},readOnly:!0})],Oe.prototype,"type",void 0),(0,i.Cg)([(0,f.MZ)({...je.fields,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],Oe.prototype,"fields",void 0),(0,i.Cg)([(0,f.MZ)()],Oe.prototype,"types",null),(0,i.Cg)([(0,f.MZ)()],Oe.prototype,"typeIdField",null),(0,i.Cg)([(0,f.MZ)()],Oe.prototype,"templates",null),(0,i.Cg)([(0,f.MZ)()],Oe.prototype,"formTemplate",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],Oe.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0,clonable:!1})],Oe.prototype,"fieldsIndex",null),(0,i.Cg)([(0,f.MZ)({type:z.A,json:{read:{source:"layerDefinition.floorInfo"},write:{target:"layerDefinition.floorInfo"}}})],Oe.prototype,"floorInfo",void 0),(0,i.Cg)([(0,f.MZ)(je.outFields)],Oe.prototype,"outFields",void 0),(0,i.Cg)([(0,f.MZ)({type:V.W4,readOnly:!0,json:{read:!1},clonable:!1})],Oe.prototype,"nodePages",void 0),(0,i.Cg)([(0,ce.w)("service","nodePages",["nodePages","pointNodePages"])],Oe.prototype,"readNodePages",null),(0,i.Cg)([(0,f.MZ)({type:[V.uV],readOnly:!0,clonable:!1})],Oe.prototype,"materialDefinitions",void 0),(0,i.Cg)([(0,f.MZ)({type:[V.Ot],readOnly:!0,clonable:!1})],Oe.prototype,"textureSetDefinitions",void 0),(0,i.Cg)([(0,f.MZ)({type:[V.L0],readOnly:!0,clonable:!1})],Oe.prototype,"geometryDefinitions",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],Oe.prototype,"serviceUpdateTimeStamp",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],Oe.prototype,"attributeStorageInfo",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],Oe.prototype,"statisticsInfo",void 0),(0,i.Cg)([(0,f.MZ)({type:a.A.ofType(Number),nonNullable:!0,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.excludeObjectIds",write:{enabled:!0}}})],Oe.prototype,"excludeObjectIds",void 0),(0,i.Cg)([(0,f.MZ)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],Oe.prototype,"definitionExpression",void 0),(0,i.Cg)([(0,f.MZ)({type:he,json:{name:"layerDefinition.polygonFilter",write:{enabled:!0,allowNull:!0},origins:{service:{read:!1,write:!1}}}})],Oe.prototype,"filter",void 0),(0,i.Cg)([(0,f.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],Oe.prototype,"path",void 0),(0,i.Cg)([(0,f.MZ)($.Yj)],Oe.prototype,"elevationInfo",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Oe.prototype,"effectiveCapabilities",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],Oe.prototype,"effectiveEditingEnabled",null),(0,i.Cg)([(0,f.MZ)({type:String})],Oe.prototype,"geometryType",null),(0,i.Cg)([(0,f.MZ)($.kF)],Oe.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,f.MZ)({type:[B.A],json:{origins:{service:{name:"drawingInfo.labelingInfo",read:{reader:J.w},write:!1}},name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:J.w},write:!0}})],Oe.prototype,"labelingInfo",void 0),(0,i.Cg)([(0,f.MZ)($.fV)],Oe.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,f.MZ)({type:Number,json:{origins:{"web-document":{default:1,write:{enabled:!0,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}},read:{source:["opacity","layerDefinition.drawingInfo.transparency"],reader(e,t){if("number"==typeof e&&e>=0&&e<=1)return e;const r=t.layerDefinition?.drawingInfo?.transparency;return void 0!==r?(0,Te.D)(r):void 0}}},"portal-item":{write:!0},service:{read:!1}}}})],Oe.prototype,"opacity",void 0),(0,i.Cg)([(0,f.MZ)({type:["Low","High"],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],Oe.prototype,"priority",void 0),(0,i.Cg)([(0,f.MZ)({type:["Labels"],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],Oe.prototype,"semantic",void 0),(0,i.Cg)([(0,f.MZ)({types:we.XJ,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:!0},value:null})],Oe.prototype,"renderer",null),(0,i.Cg)([(0,f.MZ)({json:{read:!1}})],Oe.prototype,"cachedDrawingInfo",void 0),(0,i.Cg)([(0,ce.w)("service","cachedDrawingInfo")],Oe.prototype,"readCachedDrawingInfo",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Oe.prototype,"capabilities",null),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{read:!1}})],Oe.prototype,"editingEnabled",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{write:!1,read:!1}})],Oe.prototype,"infoFor3D",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{write:!1,read:!1}})],Oe.prototype,"relationships",null),(0,i.Cg)([(0,f.MZ)($.M6)],Oe.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,f.MZ)({type:n.A,json:{name:"popupInfo",write:!0}})],Oe.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Oe.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,f.MZ)($.zQ)],Oe.prototype,"attributeTableTemplate",void 0),(0,i.Cg)([(0,f.MZ)({type:String,json:{read:!1}})],Oe.prototype,"objectIdField",void 0),(0,i.Cg)([(0,ce.w)("service","objectIdField",["objectIdField","fields"])],Oe.prototype,"readObjectIdField",null),(0,i.Cg)([(0,f.MZ)({type:String,json:{read:!1}})],Oe.prototype,"globalIdField",void 0),(0,i.Cg)([(0,ce.w)("service","globalIdField",["globalIdField","fields"])],Oe.prototype,"readGlobalIdField",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0,type:String,json:{read:!1}})],Oe.prototype,"displayField",null),(0,i.Cg)([(0,f.MZ)({type:String,json:{read:!1}})],Oe.prototype,"profile",void 0),(0,i.Cg)([(0,ce.w)("service","profile",["store.profile"])],Oe.prototype,"readProfile",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0,type:String,json:{origins:{service:{read:{source:"store.normalReferenceFrame"}}},read:!1}})],Oe.prototype,"normalReferenceFrame",void 0),(0,i.Cg)([(0,f.MZ)($.PY)],Oe.prototype,"screenSizePerspectiveEnabled",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:!1,origins:{service:{read:!0}}}})],Oe.prototype,"serviceItemId",void 0),(0,i.Cg)([(0,f.MZ)(Z.B)],Oe.prototype,"useViewTime",null),(0,i.Cg)([(0,f.MZ)({type:me.A,json:{read:!1,write:!1}})],Oe.prototype,"timeInfo",null),(0,i.Cg)([(0,f.MZ)({type:Ce.A,json:{read:!1,write:!1}})],Oe.prototype,"timeExtent",null),(0,i.Cg)([(0,f.MZ)({type:Fe.A,json:{read:!1,write:!1}})],Oe.prototype,"timeOffset",null),(0,i.Cg)([(0,f.MZ)({type:Boolean,nonNullable:!0,json:{read:!1,write:!1}})],Oe.prototype,"datesInUnknownTimezone",null),(0,i.Cg)([(0,f.MZ)({type:ge,readOnly:!0,json:{read:{source:"timeInfo"}},clonable:!1})],Oe.prototype,"serviceTimeInfo",void 0),Oe=(0,i.Cg)([(0,f.$K)("esri.layers.SceneLayer")],Oe);const Pe={"mesh-pyramids":"mesh-pyramids",meshpyramids:"mesh-pyramids","features-meshes":"mesh-pyramids",points:"points","features-points":"points",lines:"lines","features-lines":"lines",polygons:"polygons","features-polygons":"polygons"},_e={"mesh-pyramids":"mesh",points:"point"},Re=Oe},55726(e,t,r){r.d(t,{$1:()=>u,H2:()=>h,MT:()=>y,VP:()=>f,WF:()=>d,Wt:()=>o,XQ:()=>g,hK:()=>p,nS:()=>c,uh:()=>a,xY:()=>l});var i=r(49186);const s="upload-assets",n=()=>new Error;class o extends i.A{constructor(){super(`${s}:unsupported`,"Layer does not support asset uploads.",n())}}class a extends i.A{constructor(){super(`${s}:no-glb-support`,"Layer does not support glb.",n())}}class l extends i.A{constructor(){super(`${s}:no-supported-source`,"No supported external source found",n())}}class u extends i.A{constructor(){super(`${s}:not-base-64`,"Expected gltf data in base64 format after conversion.",n())}}class d extends i.A{constructor(){super(`${s}:unable-to-prepare-options`,"Unable to prepare uploadAsset request options.",n())}}class c extends i.A{constructor(e,t){super(`${s}:bad-response`,`Bad response. Uploaded ${e} items and received ${t} results.`,n())}}class p extends i.A{constructor(e,t){super(`${s}-layer:upload-failed`,`Failed to upload mesh file ${e}. Error code: ${t?.code??"-1"}. Error message: ${t?.messages??"unknown"}`,n())}}class h extends i.A{constructor(e){super(`${s}-layer:unsupported-format`,`The service allowed us to upload an asset of FormatID ${e}, but it does not list it in its supported formats.`,n())}}class y extends i.A{constructor(){super(`${s}:convert3D-failed`,"convert3D failed.")}}class f extends i.A{constructor(){super("invalid-input:no-model","No supported model found")}}class g extends i.A{constructor(){super("invalid-input:multiple-models","Multiple supported models found")}}},18768(e,t,r){var i=r(32198),s=r(53966),n=r(91429),o=r(60694);r.d(t,["b",0,e=>{const t=e;let r=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,o.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,o.Jf)(e,s.A.getLogger(this)))}};return(0,i.Cg)([(0,n.MZ)()],r.prototype,"title",null),(0,i.Cg)([(0,n.MZ)({type:String})],r.prototype,"url",null),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.ArcGISService")],r),r}])},69208(e,t,r){var i=r(32198),s=r(91429);r.d(t,["d",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,i.Cg)([(0,s.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],r.prototype,"customParameters",void 0),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.CustomParametersMixin")],r),r}])},47685(e,t,r){r.d(t,{Mk:()=>h,Zk:()=>c});var i=r(32198),s=r(65529),n=r(4718),o=r(91429),a=r(20816);const l=new s.bk;function u(e){return l.on("apply-edits",new WeakRef(e))}function d(e){return l.on("update-moment",new WeakRef(e))}function c(e,t,r=null,i=!1){const s=Promise.withResolvers();return i=null==t||i,l.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:r,mayReceiveServiceEdits:i,result:s.promise}),s}const p=Symbol();function h(e){return null!=e&&"object"==typeof e&&p in e}function y(e){return null!=e&&"object"==typeof e&&"gdbVersion"in e}function f(e,t,r){const i=new URL(e).host,s=a.Z3.get(i),n=e=>!e||e===s;return n(t)&&n(r)||t===r}r.d(t,["w6",0,e=>{var t;const r=e;let s=class extends r{static{t=p}constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{const{serviceUrl:t,layerId:r,gdbVersion:i,mayReceiveServiceEdits:s,result:o}=e,a=t===this.url,l=null!=r&&null!=this.layerId&&r===this.layerId,u=null!=r&&this.relationships?.some(e=>e.relatedTableId===r),d=y(this),c=y(this)&&f(t,i,this.gdbVersion);if(!a||d&&!c||!l&&!u&&!s)return;const p=o.then(e=>{if(this.lastEditsEventDate=new Date,l&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,n.o8)(e)),e;const r=e.editedFeatures?.find(({layerId:e})=>e===this.layerId);if(r){const{adds:t,updates:i,deletes:s}=r.editedFeatures,o={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:t?t.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],deletedFeatures:s?s.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],updatedFeatures:i?i.map(({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],editedFeatures:(0,n.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,n.o8)(e.historicMoment)};return this.emit("edits",o),o}const s={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,n.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,n.o8)(e.historicMoment)};return"historicMoment"in this&&this._shouldUpdateHistoricMoment(t,i,s.historicMoment)&&this.emit("edits",s),s}).then(e=>("historicMoment"in this&&this._shouldUpdateHistoricMoment(t,i,e.historicMoment)&&(this.historicMoment=e.historicMoment),e));p.catch(()=>{}),this.emit("apply-edits",{result:p})},this._updateMomentHandler=e=>{const{serviceUrl:t,gdbVersion:r,moment:i}=e,s=t===this.url,n=y(this),o=y(this)&&f(t,r,this.gdbVersion),a=y(this)&&!f(t,this.gdbVersion,null);s&&n&&o&&a&&"historicMoment"in this&&this.historicMoment!==i&&(this.historicMoment=i)},this.when().then(()=>{this.addHandles(u(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(d(this._updateMomentHandler))},()=>{})}_shouldUpdateHistoricMoment(e,t,r){return"historicMoment"in this&&this.historicMoment!==r&&(0,a.w5)(e,t)}};return(0,i.Cg)([(0,o.MZ)()],s.prototype,"lastEditsEventDate",void 0),s=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.EditBusLayer")],s),s}])},8303(e,t,r){var i=r(32198),s=r(92602),n=r(70333),o=r(11254),a=r(60999),l=r(49186),u=r(36563),d=r(53966),c=r(97768),p=r(17676),h=r(84952),y=r(91429),f=r(77548),g=r(20655),m=r(80812),v=r(41318),w=r(10407),b=r(36005),M=r(43937);const I={credential:null,user:null};r.d(t,["A",0,e=>{const t=e;let A=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){super.destroy(),this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new m.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:i}=await r.e(1204).then(r.bind(r,41204));return(0,p.Te)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,p.zf)(e)||d.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async reloadFromPortal(e){if(!this.loaded||!this.portalItem?.id)return!1;try{const{reload:t}=await r.e(1204).then(r.bind(r,41204)),i=new AbortController,s=(0,u.rE)(i);return this.addHandles(s,"reloadFromPortal"),await t({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},{signal:i.signal})}catch(e){throw(0,p.zf)(e)||d.A.getLogger(this).warn(`Failed to reload layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}finally{this.removeHandles("reloadFromPortal")}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,p.QP)(e),!0)))}async setUserPrivileges(e,t){if(!s.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:s}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",s)}catch(e){(0,p.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=!n.id?.findCredential(this.url),s=e===r.id;if(s&&r.portal.user)return this._getUserPrivileges(r,i);let o,a;if(s)o=r.portal.url;else try{o=await(0,f.wI)(this.url,t)}catch(e){(0,p.QP)(e)}if(!o||!(0,h.b8)(o,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;a=await(n.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.QP)(e)}const l=!0,u=!1,d=!1;if(!a)return{features:{edit:l,fullEdit:u},content:{updateItem:d}};try{if(s?await r.reload():(r=new m.default({id:e,portal:{url:o}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,i)}catch(e){(0,p.QP)(e)}return{features:{edit:l,fullEdit:u},content:{updateItem:d}}}_getUserPrivileges(e,t){const r=(0,w.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?n.id?.findCredential(this.url):null;if(!t)return!0;const r=I.credential===t?I.user:await this._fetchEditingUser(e);return I.credential=t,I.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=n.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,s=g.A.getDefault();if(s&&s.loaded&&(0,h.S8)(s.restUrl)===(0,h.S8)(i))return s.user;const l=`${i}/community/self`,u=null!=e?e.signal:null,d=await(0,a.Ke)((0,o.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return d.ok?v.A.fromJSON(d.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||g.A.getDefault());return r&&i&&!(0,h.ut)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i.Cg)([(0,y.MZ)({type:m.default})],A.prototype,"portalItem",null),(0,i.Cg)([(0,b.w)("web-document","portalItem",["itemId"])],A.prototype,"readPortalItem",null),(0,i.Cg)([(0,M.K)("web-document","portalItem",{itemId:{type:String}})],A.prototype,"writePortalItem",null),(0,i.Cg)([(0,y.MZ)({clonable:!1})],A.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],A.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],A.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],A.prototype,"userHasUpdateItemPrivileges",void 0),A=(0,i.Cg)([(0,y.$K)("esri.layers.mixins.PortalLayer")],A),A}])},25036(e,t,r){var i=r(32198),s=r(91429);r.d(t,["j",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;void 0!==t?.effectiveScaleRange&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,i.Cg)([(0,s.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"minScale",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"maxScale",void 0),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],r.prototype,"effectiveScaleRange",null),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.ScaleRangeLayer")],r),r}])},82935(e,t,r){var i=r(32198),s=r(91429),n=r(89317),o=r(30524),a=r(96184),l=r(73133),u=r(79677),d=r(10184),c=r(36005);const p={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:n.K}}};r.d(t,["B",0,p,"e",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const i=r.timeOffset,s=l.j.fromJSON(r.timeOffsetUnits);return i&&s?new d.A({value:i,unit:s}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,o.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i.Cg)([(0,s.MZ)({type:u.A,json:{write:!1}})],r.prototype,"timeExtent",void 0),(0,i.Cg)([(0,s.MZ)({type:d.A})],r.prototype,"timeOffset",void 0),(0,i.Cg)([(0,c.w)("service","timeOffset",["timeInfo.exportOptions"])],r.prototype,"readOffset",null),(0,i.Cg)([(0,s.MZ)({value:null,type:a.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],r.prototype,"timeInfo",null),(0,i.Cg)([(0,s.MZ)(p)],r.prototype,"useViewTime",void 0),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.TemporalLayer")],r),r}])},67202(e,t,r){r.d(t,{A:()=>a});var i,s=r(32198),n=r(25482),o=r(91429);let a=i=class extends n.o{constructor(e){super(e),this.type="selection"}clone(){return new i}};(0,s.Cg)([(0,o.MZ)({type:["selection"],readOnly:!0,json:{write:!0}})],a.prototype,"type",void 0),a=i=(0,s.Cg)([(0,o.$K)("esri.layers.support.FeatureReductionSelection")],a)},96184(e,t,r){r.d(t,{A:()=>h});var i=r(32198),s=r(69540),n=r(25482),o=r(91429),a=r(79677),l=r(10184),u=r(56400),d=r(36005),c=r(43937);function p(e,t){return l.A.fromJSON({value:e,unit:t})}let h=class extends((0,s.OU)(n.o)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?a.A.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?p(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?p(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],h.prototype,"cumulative",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"endField",void 0),(0,i.Cg)([(0,o.MZ)({type:a.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"fullTimeExtent",void 0),(0,i.Cg)([(0,d.w)("fullTimeExtent",["timeExtent"])],h.prototype,"readFullTimeExtent",null),(0,i.Cg)([(0,c.K)("fullTimeExtent")],h.prototype,"writeFullTimeExtent",null),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"hasLiveData",void 0),(0,i.Cg)([(0,o.MZ)({type:l.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"interval",void 0),(0,i.Cg)([(0,d.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],h.prototype,"readInterval",null),(0,i.Cg)([(0,c.K)("interval")],h.prototype,"writeInterval",null),(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"startField",void 0),(0,i.Cg)([(0,o.MZ)((0,u.P6)("timeReference",!0))],h.prototype,"timeZone",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"trackIdField",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],h.prototype,"useTime",void 0),(0,i.Cg)([(0,o.MZ)({type:[Date],json:{read:!1}})],h.prototype,"stops",void 0),h=(0,i.Cg)([(0,o.$K)("esri.layers.support.TimeInfo")],h)},17036(e,t,r){r.d(t,{p:()=>l});var i=r(44208),s=r(53966),n=r(20437),o=r(95466),a=r(30524);function l(){return{fields:{type:[n.A],value:null,set:function(e){if(e&&(0,i.A)("big-integer-warning-enabled")){const t=e.filter(e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8);if(t.length){const e=t.map(e=>`'${e.name}'`).join(", ");s.A.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return o.A.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const r=this.fieldsIndex?.has(t);r||s.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,a.DB)(this.fieldsIndex,e)}}}}},20557(e,t,r){r.d(t,{Fm:()=>l,Hz:()=>g,JQ:()=>f,JZ:()=>C,ND:()=>v,R_:()=>o,U9:()=>y,_h:()=>b,be:()=>c,fE:()=>h,fu:()=>s,nr:()=>m,oF:()=>n,qv:()=>S,rP:()=>p,rq:()=>u,z$:()=>d});const i=[["binary","application/octet-stream","bin",""]];function s(e,t){return null!=M(t.name,e?.supportedFormats??[])}function n(e,t){if(!e)return!1;const r=u(t,e.supportedFormats??[]);return null!=r&&e.editFormats.includes(r)}function o(e,t){return I(function(e,t){const r=e.toLowerCase();return w(t).find(e=>A(e)===r)}(e,t))}function a(e,t){return I(M(e,t))}function l(e,t){return A(b(e,t))}function u(e,t){return a(e.name,t)??o(e.type,t)}function d(e,t,r){return o(e,r)??a(t,r)}function c(e,t){if(!e||!b(e,t))return;const r=/^3d_(.+)$/iu.exec(e)?.[1]?.toLowerCase();return r||void 0}function p(e,t){return(e??[]).map(e=>c(e,t)).filter(e=>!!e)}function h(e,t){return I(t.find(r=>c(I(r),t)===e))}function y({supportedFormats:e}){return d("model/gltf-binary","glb",e)}function f(e){const t=y(e);return null!=t&&e.editFormats.includes(t)}function g(e){if(!e)return null;const t=y(e),r=function({supportedFormats:e}){return d("model/gltf+json","gltf",e)}(e);let i=null;for(const s of e.queryFormats){if(s===t)return s;s===r&&(i=s)}return i}function m({supportedFormats:e}){return d("application/esri3do-SR_world","wld",e)}function v({supportedFormats:e}){return d("application/esri3do-SR_prj","prj",e)}function w(e){return[...i,...e]}function b(e,t){return w(t).find(t=>I(t)===e)}function M(e,t){const r=e.toLowerCase();return w(t).find(e=>S(e).some(e=>r.endsWith(e)))}function I(e){return e?.[0]}function A(e){return e?.[1].toLowerCase()}function S(e){return e?.[2].split(",").map(e=>e.toLowerCase())??[]}function C(e){return e.tables?.find(e=>"assetMaps"===e.role)}},86390(e,t,r){r.d(t,{Z:()=>n});var i=r(86211),s=r(73836);function n(e){const t=1/(0,i.GA)(e,1);return 1!==t?new s.A({scale:[t,t,t]}):void 0}},73179(e,t,r){r.d(t,{b:()=>l,h:()=>u});var i=r(4718),s=r(53966),n=r(84952),o=r(60694),a=r(10873);function l(e){const{nonStandardUrlAllowed:t=!1,separator:r}=e??{},n=(0,i.o8)(a.OZ),l=n.json?.write;return"object"==typeof l&&l&&(l.writer=function(e,t,i,s){(0,o.LS)(this,e,r,t,s)}),{...n,set:function(e){if(null==e)return void this._set("url",e);const r=(0,o.HZ)({layer:this,url:e,nonStandardUrlAllowed:t,logger:s.A.getLogger(this)});this._set("url",r.url),null!=r.layerId&&this._set("layerId",r.layerId)}}}function u(e,t){const{separator:r}=t??{},i=(0,n.An)(e.url);return null!=i&&(null!=e.dynamicDataSource?i.path=(0,n.fj)(i.path,"dynamicLayer"):null!=e.layerId&&(i.path=(0,n.fj)(i.path,r??"",e.layerId.toString()))),i}},10407(e,t,r){r.d(t,{It:()=>h,LG:()=>o,OM:()=>u,Sm:()=>d,Y:()=>a,bK:()=>l,sQ:()=>c});var i=r(99917),s=r(16930),n=r(28735);function o(e,t){if(!a(e,t)){const r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function a(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return a(e,p.HOSTED_SERVICE)}function u(e,t){const r=e.typeKeywords;if(r){const e=r.indexOf(t);e>-1&&r.splice(e,1)}}function d(e,t,r){r?o(e,t):u(e,t)}async function c(e){const t=e.clone().normalize();let r;if(t.length>1)for(const e of t)r?e.width>r.width&&(r=e):r=e;else r=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,n.ci)(e);const r=s.A.WGS84;return await(0,i.initializeProjection)(t,r),(0,i.project)(e,r)}(r)}const p={CHARTS:"Charts",CATALOG_LAYER:"CatalogLayer",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",PARCEL_FABRIC:"ParcelFabric",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery",UTILITY_NETWORK:"UtilityNetwork"};function h(e){const{portal:t,isOrgItem:r,itemControl:i}=e,s=t.user?.privileges;let n=!s||s.includes("features:user:edit"),o=!!r&&!!s?.includes("features:user:fullEdit");const a="update"===i||"admin"===i;return a?o=n=!0:o&&(n=!0),{features:{edit:n,fullEdit:o},content:{updateItem:a}}}r.d(t,["mm",0,p])},85648(e,t,r){r.d(t,{n:()=>s});var i=r(84952);function s(e){return n[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){const t=(0,i.Zo)(e);return l[t]||o}(e.url)}(e)]||a}const n={},o="text/plain",a=n[o],l={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const e in l)n[l[e]]=e},8947(e,t,r){r.d(t,{L:()=>o});var i=r(60999),s=r(17676),n=r(67076);async function o(e,t,r){const o=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(o&&"unique-value"===o.type&&o.styleOrigin){const a=await(0,i.Ke)(o.populateFromStyle());if((0,s.Te)(r),!1===a.ok){const r=a.error;t?.messages&&t.messages.push(new n.A("renderer:style-reference",`Failed to create unique value renderer from style reference: ${r.message}`,{error:r,context:t})),e.clear("renderer",t?.origin)}}}},20816(e,t,r){r.d(t,{We:()=>a,ZJ:()=>l,w5:()=>u});var i=r(11254);const s=(0,r(13069).vD)(),n=new Map,o=new Map;async function a(e,t,r){if(!e||!r)return!1;if(!t)return!0;const s=new URL(e).host;let o=n.get(s);if(!o){const t=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,"");o=(await(0,i.A)(t,{responseType:"json",query:{f:"json"}})).data.defaultVersionName}return o===t}async function l(e,t,i=!1){if(!e||!t)return!0;const n=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),a=o.get(n)?.entries();if(a)for(const[e,o]of a)if(o.name===t){const t=!o.stack?.hasForwardEdits();if(!t&&i){const[{deleteForwardEdits:t},{default:i}]=await Promise.all([r.e(2186).then(r.bind(r,32186)),r.e(2558).then(r.bind(r,32558))]),a=await t(n,e,new i({sessionId:s,moment:o.moment}));return a.success&&o.stack?.clearForwardEdits(),a.success}return t}return!0}function u(e,t){if(!e)return!1;const r=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),i=o.get(r)?.entries();if(i)for(const[e,r]of i)if(r.name===t)return"edit"===r.lockType;return!1}new Map,r.d(t,["TA",0,s,"Z3",0,n])}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3390],{3390(n,e,a){a.r(e),a.d(e,{registerFunctions:()=>s});var t=a(67862),r=a(85935),i=a(78878),o=a(33325),d=a(54218);function u(n){return n&&n.domain?"coded-value"===n.domain.type||"codedValue"===n.domain.type?(0,t.Tg)({type:"codedValue",name:n.domain.name,dataType:o.At[n.field.type],codedValues:n.domain.codedValues.map(n=>({name:n.name,code:n.code}))}):(0,t.Tg)({type:"range",name:n.domain.name,dataType:o.At[n.field.type],min:n.domain.minValue,max:n.domain.maxValue}):null}function s(n){"async"===n.mode&&(n.functions.domain=function(e,a){return n.standardFunctionAsync(e,a,async(n,e,t)=>{if((0,i.E)(t,2,3,a),(0,i.h)(t[0]))return u((0,i.X)(t[0],(0,i.w)(t[1]),void 0===t[2]?void 0:t[2]));if((0,i.k)(t[0]))return await t[0]._ensureLoaded(),u((0,i.a6)((0,i.w)(t[1]),t[0],null,void 0===t[2]?void 0:t[2]));throw new r.D$("InvalidParameter",a)})},n.functions.subtypes=function(e,a){return n.standardFunctionAsync(e,a,async(n,e,o)=>{if((0,i.E)(o,1,1,a),(0,i.h)(o[0]))return(0,t.Tg)((0,i.$)(o[0]));if((0,i.k)(o[0]))return await o[0]._ensureLoaded(),(0,t.Tg)(o[0].subtypeMetadata());throw new r.D$("InvalidParameter",a)})},n.functions.domainname=function(e,a){return n.standardFunctionAsync(e,a,async(n,e,t)=>{if((0,i.E)(t,2,4,a),(0,i.h)(t[0]))return(0,i.Z)(t[0],(0,i.w)(t[1]),t[2],void 0===t[3]?void 0:t[3]);if((0,i.k)(t[0])){await t[0]._ensureLoaded();const n=(0,i.a6)((0,i.w)(t[1]),t[0],null,void 0===t[3]?void 0:t[3]);return(0,i.a7)(n,t[2])}throw new r.D$("InvalidParameter",a)})},n.signatures.push({name:"domainname",min:2,max:4}),n.functions.domaincode=function(e,a){return n.standardFunctionAsync(e,a,async(n,e,t)=>{if((0,i.E)(t,2,4,a),(0,i.h)(t[0]))return(0,i.Y)(t[0],(0,i.w)(t[1]),t[2],void 0===t[3]?void 0:t[3]);if((0,i.k)(t[0])){await t[0]._ensureLoaded();const n=(0,i.a6)((0,i.w)(t[1]),t[0],null,void 0===t[3]?void 0:t[3]);return(0,i.a8)(n,t[2])}throw new r.D$("InvalidParameter",a)})},n.signatures.push({name:"domaincode",min:2,max:4}),n.functions.text=function(e,a){return n.standardFunctionAsync(e,a,async(n,e,t)=>{if((0,i.E)(t,1,2,a),(0,i.k)(t[0])){const e=(0,i.O)(t[1],"");if(!(0,d.Kg)(e))throw new r.D$("InvalidParameter",a);if(""===e)return t[0].castToText();if("schema"===e.toLowerCase())return t[0].convertToText("schema",n.abortSignal);if("featureset"===e.toLowerCase())return t[0].convertToText("featureset",n.abortSignal);throw new r.D$("InvalidParameter",a)}return(0,i.t)(t[0],t[1])})},n.functions.gdbversion=function(e,a){return n.standardFunctionAsync(e,a,async(n,e,t)=>{if((0,i.E)(t,1,1,a),(0,i.h)(t[0]))return t[0].gdbVersion();if((0,i.k)(t[0]))return(await t[0].load()).gdbVersion;throw new r.D$("InvalidParameter",a)})},n.functions.schema=function(e,a){return n.standardFunctionAsync(e,a,async(n,e,o)=>{if((0,i.E)(o,1,1,a),(0,i.k)(o[0]))return await o[0].load(),(0,t.Tg)(o[0].schema());if((0,i.h)(o[0]))return(0,t.Tg)((0,i._)(o[0]));throw new r.D$("InvalidParameter",a)})})}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3390],{3390(n,e,a){a.r(e),a.d(e,{registerFunctions:()=>s});var t=a(67862),r=a(85935),i=a(78878),o=a(33325),d=a(54218);function u(n){return n&&n.domain?"coded-value"===n.domain.type||"codedValue"===n.domain.type?(0,t.Tg)({type:"codedValue",name:n.domain.name,dataType:o.At[n.field.type],codedValues:n.domain.codedValues.map(n=>({name:n.name,code:n.code}))}):(0,t.Tg)({type:"range",name:n.domain.name,dataType:o.At[n.field.type],min:n.domain.minValue,max:n.domain.maxValue}):null}function s(n){"async"===n.mode&&(n.functions.domain=function(e,a){return n.standardFunctionAsync(e,a,async(n,e,t)=>{if((0,i.E)(t,2,3,a),(0,i.h)(t[0]))return u((0,i.W)(t[0],(0,i.w)(t[1]),void 0===t[2]?void 0:t[2]));if((0,i.k)(t[0]))return await t[0]._ensureLoaded(),u((0,i.a6)((0,i.w)(t[1]),t[0],null,void 0===t[2]?void 0:t[2]));throw new r.D$("InvalidParameter",a)})},n.functions.subtypes=function(e,a){return n.standardFunctionAsync(e,a,async(n,e,o)=>{if((0,i.E)(o,1,1,a),(0,i.h)(o[0]))return(0,t.Tg)((0,i._)(o[0]));if((0,i.k)(o[0]))return await o[0]._ensureLoaded(),(0,t.Tg)(o[0].subtypeMetadata());throw new r.D$("InvalidParameter",a)})},n.functions.domainname=function(e,a){return n.standardFunctionAsync(e,a,async(n,e,t)=>{if((0,i.E)(t,2,4,a),(0,i.h)(t[0]))return(0,i.Y)(t[0],(0,i.w)(t[1]),t[2],void 0===t[3]?void 0:t[3]);if((0,i.k)(t[0])){await t[0]._ensureLoaded();const n=(0,i.a6)((0,i.w)(t[1]),t[0],null,void 0===t[3]?void 0:t[3]);return(0,i.a7)(n,t[2])}throw new r.D$("InvalidParameter",a)})},n.signatures.push({name:"domainname",min:2,max:4}),n.functions.domaincode=function(e,a){return n.standardFunctionAsync(e,a,async(n,e,t)=>{if((0,i.E)(t,2,4,a),(0,i.h)(t[0]))return(0,i.X)(t[0],(0,i.w)(t[1]),t[2],void 0===t[3]?void 0:t[3]);if((0,i.k)(t[0])){await t[0]._ensureLoaded();const n=(0,i.a6)((0,i.w)(t[1]),t[0],null,void 0===t[3]?void 0:t[3]);return(0,i.a8)(n,t[2])}throw new r.D$("InvalidParameter",a)})},n.signatures.push({name:"domaincode",min:2,max:4}),n.functions.text=function(e,a){return n.standardFunctionAsync(e,a,async(n,e,t)=>{if((0,i.E)(t,1,2,a),(0,i.k)(t[0])){const e=(0,i.N)(t[1],"");if(!(0,d.Kg)(e))throw new r.D$("InvalidParameter",a);if(""===e)return t[0].castToText();if("schema"===e.toLowerCase())return t[0].convertToText("schema",n.abortSignal);if("featureset"===e.toLowerCase())return t[0].convertToText("featureset",n.abortSignal);throw new r.D$("InvalidParameter",a)}return(0,i.t)(t[0],t[1])})},n.functions.gdbversion=function(e,a){return n.standardFunctionAsync(e,a,async(n,e,t)=>{if((0,i.E)(t,1,1,a),(0,i.h)(t[0]))return t[0].gdbVersion();if((0,i.k)(t[0]))return(await t[0].load()).gdbVersion;throw new r.D$("InvalidParameter",a)})},n.functions.schema=function(e,a){return n.standardFunctionAsync(e,a,async(n,e,o)=>{if((0,i.E)(o,1,1,a),(0,i.k)(o[0]))return await o[0].load(),(0,t.Tg)(o[0].schema());if((0,i.h)(o[0]))return(0,t.Tg)((0,i.Z)(o[0]));throw new r.D$("InvalidParameter",a)})})}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[923,1948,5181],{61691(t,e,r){r.d(e,{G:()=>s});class s{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},85181(t,e,r){r.d(e,{OperatorOverlaps:()=>n});var s=r(39117);class n extends s.Z{getOperatorType(){return 9}execute(t,e,r,n){return(0,s._)(t,e,r,32,n)}}},76061(t,e,r){r.d(e,{S:()=>n});var s=r(61691);class n extends s.G{m_aGeoms;m_iGeom=-1;constructor(t){super(),this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},87992(t,e,r){r.d(e,{JR:()=>_,ME:()=>M,MY:()=>S,NO:()=>C,Nh:()=>O,V2:()=>F,_s:()=>Y,e6:()=>V,gh:()=>E,tr:()=>w,uX:()=>x});var s=r(32198),n=r(16930),i=r(19419),a=r(60408),o=r(21325),h=r(513),u=r(50954),l=r(79567),g=r(52006),c=r(49663),m=r(46068),f=r(92722);class x{constructor({type:t,spatialReference:e,vertexCount:r,vertexXY:s,vertexZ:n,vertexM:i,partCount:a,partOffsets:o,partFlags:h,segmentFlags:u,segmentIndices:l,segmentParams:g,segmentCountArc:c,segmentCountBezier:m}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=r,this.vertexXY=s,this.vertexZ=n,this.vertexM=i,this.partCount=a,this.partOffsets=o,this.partFlags=h,this.segmentFlags=u,this.segmentIndices=l,this.segmentParams=g,this.segmentCountArc=c,this.segmentCountBezier=m}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:r}=this;return t&&t-e-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 t(t){return t?64+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){const{type:t,vertexCount:e,partCount:r,hasZ:s,hasM:n,segmentCountArc:i,segmentCountBezier:a}=this,o=F(t,e,r,s,n,this.hasCurves(),i,a);o.spatialReference=this.spatialReference;const{vertexXY:h,vertexZ:u,vertexM:l}=this;if(o.vertexXY.set(h.subarray(0,2*e),0),o.vertexZ?.set(u.subarray(0,e),0),o.vertexM?.set(l.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;o.partFlags.set(e.subarray(0,r+1)),o.partOffsets.set(t.subarray(0,r+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:r,segmentParams:s,segmentParamCount:n}=this;o.segmentFlags.set(t.subarray(0,e),0),o.segmentIndices.set(r.subarray(0,e),0),o.segmentParams.set(s.subarray(0,n),0)}return o}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,o.aI)(this.spatialReference,t.spatialReference))return!1;if(this.vertexCount!==t.vertexCount||this.partCount!==t.partCount)return!1;if(this.hasZ!==t.hasZ||this.hasM!==t.hasM)return!1;if(this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;const r=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,r)=>Math.abs(t-r)>e||isNaN(t)!==isNaN(r);for(let e=0;e<this.vertexCount;++e)if(r(this.vertexXY[2*e],t.vertexXY[2*e])||r(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexM[e],t.vertexM[e]))return!1;for(let e=0;e<this.partCount;++e)if(this.partFlags[e]!==t.partFlags[e]||this.partOffsets[e]!==t.partOffsets[e])return!1;if(this.hasCurves()){for(let e=0;e<this.vertexCount;++e)if(this.segmentFlags[e]!==t.segmentFlags[e]||this.segmentIndices[e]!==t.segmentIndices[e])return!1;for(let e=0;e<this.segmentParamCount;++e)if(r(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new p(this):[][Symbol.iterator]()}}class p{constructor(t){this.geometry=t,this.value=new v(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class v{constructor(t){this.geometry=t,this.index=-1,this._readVertex=Z(t),this._segments=new d(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class d{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new y(t.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const t=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=t&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:t}=this._part,e=this._part.geometry.partOffsets;this._partStart=e[t],this._partEnd=e[t+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class y{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=Z(t)}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(){const t=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===t)return this.end;const e=this.geometry.segmentParams;let r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[r++],s=e[r++],n=e[r++],i=e[r++];return{b:[this.end,[t,s],[n,i]]}}const s=e[r++],n=e[r++],i=e[r++],a=e[r++],o=e[r++],h=e[r++];r++,r++;const u=e[r++],l=e[r++];if(!Boolean(4&s)&&1===i)return{c:[this.end,[u,l]]};const g=2&s?0:1,c=1&s?0:1;return{a:[this.end,[o,h],g,c,a,n,i]}}}function C(t,e){const r={stack:[],error:void 0,hasError:!1};try{return e??=(0,i.Ie)(),(0,s.mS)(r,new P(t,["vertexZ","vertexM","spatialReference"]),!1),(0,i.bx)(e,function(t){let e;const{vertexCount:r,vertexXY:n,vertexZ:a,vertexM:o}=t,h=R(t);if(t.hasCurves()){const r={stack:[],error:void 0,hasError:!1};try{(0,s.mS)(r,new P(t,["vertexZ","vertexM"]),!1);const n=(0,i.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:r}of e.segments)(0,l.e)(n,t,r),t=(0,g.yP)(r)}const[a,o,u,c]=n;e={xmin:a,ymin:o,xmax:u,ymax:c,spatialReference:h}}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}else{let t,s,i,a;t=s=1/0,i=a=-1/0;for(let e=0;e<r;++e){const r=n[2*e],o=n[2*e+1];t=Math.min(t,r),i=Math.max(i,r),s=Math.min(s,o),a=Math.max(a,o)}e={xmin:t,ymin:s,xmax:i,ymax:a,spatialReference:h}}if(a){let t=1/0,r=-1/0;for(const e of a)t=Math.min(t,e),r=Math.max(r,e);e.zmin=t,e.zmax=r}if(o){let t=1/0,r=-1/0;for(const e of o)t=Math.min(t,e),r=Math.max(r,e);e.mmin=t,e.mmax=r}return e}(t)),e}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}function M(t){let e,r,s;if((0,a.fT)(t)){s="point";const{x:n,y:i,z:a,m:o}=t,h=[n,i];null!=a&&h.push(a),null!=o&&h.push(o),r=[[h]],e=1}else(0,a.U9)(t)?(s="multipoint",r=[t.points],e=t.points.length):(0,a.Rg)(t)?(s="polyline",r=t.curvePaths??t.paths,e=r.reduce((t,e)=>t+e.length,0)):(s="polygon",r=t.curveRings??t.rings,e=r.reduce((t,e)=>(0===e.length||(t+=e.length,A(e[0],(0,g.yP)(e.at(-1)))&&--t),t),0));const n=F(s,e,s.includes("point")?0:r.length,(0,a.Pv)(t),(0,a.W0)(t),(0,g.Ed)(t)),{hasZ:i,hasM:o,vertexXY:h,vertexZ:u,vertexM:l}=n;function c(t){h[2*f]=t[0],h[2*f+1]=t[1],i&&(u[f]=t[2]),o&&(l[f]=t[m]),++f}n.spatialReference=t.spatialReference??void 0;const m=n.hasZ?3:2;let f=0;if(!n.isMultipart()){if(!i&&!o){for(const[t,e]of r[0])h[2*f]=t,h[2*f+1]=e,++f;return n}for(const t of r[0])c(t);return n}const x="polygon"===s,{partOffsets:p}=n;let v=0;if(!(0,g.Ed)(t)){for(const t of r){if(p[v++]=f,0===t.length)continue;let e=t.length;if(x&&A(t[0],t.at(-1))&&--e,i||o)for(let r=0;r<e;++r)c(t[r]);else for(let r=0;r<e;++r){const[e,s]=t[r];h[2*f]=e,h[2*f+1]=s,++f}}return p[v]=f,n}function d(t){const e=y+t;if(e<=(n.segmentParams?.length??0))return;let r=e*X;r=20*Math.ceil(r/20);const s=n.segmentParams;n.segmentParams=new Float64Array(r),null!=s&&n.segmentParams.set(s)}let y=0;for(const t of r){if(n.partOffsets[v++]=f,0===t.length)continue;const e=t[0];let r=e;for(let e=1;e<t.length;++e){const s=t[e];c(r);const i=f-1;(0,g.wY)(s)?(d(10),++n.segmentCountArc,y=Y(r,s,n,i,y),r=s.a[0]):(0,g.DA)(s)?(d(10),++n.segmentCountArc,y=b(r,s,n,i,y),r=s.a[0]):(0,g.aO)(s)?(d(10),++n.segmentCountArc,y=V(r,s,n,i,y),r=s.c[0]):(0,g.n1)(s)?(d(4),++n.segmentCountBezier,y=w(0,s,n,i,y),r=s.b[0]):r=s}x&&A(e,r)||c(r)}return n.partOffsets[v]=f,n}function E(t){const e=Z(t),{vertexCount:r,partCount:s,hasZ:n,hasM:i}=t,a=R(t);if("point"===t.type){const[e,r]=t.vertexXY,s=t.vertexZ?.[0],n=t.vertexM?.[0];return{x:e,y:r,z:s,m:n,spatialReference:a}}let o=0;if("multipoint"===t.type){const t=[];for(;o<r;)t.push(e(o++));return{points:t,spatialReference:a,hasZ:n,hasM:i}}const h="polygon"===t.type;if(!t.hasCurves()){const r=new Array;for(let n=0;n<s;++n){const s=t.partOffsets[n+1],i=new Array;for(;o<s;)i.push(e(o++));h&&i.length>0&&i.push(i[0]),r.push(i)}return h?{rings:r,hasZ:n,hasM:i,spatialReference:a}:{paths:r,hasZ:n,hasM:i,spatialReference:a}}const u=new Array;for(const{segments:e,startVertex:r}of t.parts){const t=[r];for(const{curve:r}of e)t.push(r);u.push(t)}return h?{rings:[],curveRings:u,hasZ:n,hasM:i,spatialReference:a}:{paths:[],curvePaths:u,hasZ:n,hasM:i,spatialReference:a}}function O(t,{lengths:e,coords:r,hasZ:s,hasM:n},i){const a=t.includes("point")?0:e.length,o="polygon"===t,h="point"===t?1:e.reduce((t,e)=>t+e,0)-(o?a:0);s??=!1,n??=!1;const u=F(t,h,a,s,n,!1,0,0);if(u.spatialReference=i??void 0,!u.isMultipart()){for(let t=0,e=0;t<h;++t)u.vertexXY[2*t]=r[e++],u.vertexXY[2*t+1]=r[e++],s&&(u.vertexZ[t]=r[e++]),n&&(u.vertexM[t]=r[e++]);return u}const l=2+Number(s)+Number(n);let g=0,c=0;u.partOffsets[0]=0;for(const t of e){const e=u.partOffsets[c],i=e+t-Number(o);u.partOffsets[++c]=i;for(let t=e;t<i;++t)u.vertexXY[2*t]=r[g++],u.vertexXY[2*t+1]=r[g++],s&&(u.vertexZ[t]=r[g++]),n&&(u.vertexM[t]=r[g++]);o&&(g+=l)}return u}function _({type:t,vertexCount:e,vertexXY:r,vertexZ:s,vertexM:n,partCount:i,partOffsets:a,hasZ:o,hasM:h}){const u=new f.A([],[],o,h);i=Math.max(i,1);const l="polygon"===t;let g=0;for(let t=0;t<i;++t){const i=a?.[t+1]??e,c=u.coords.length;for(let t=g;t<i;++t)u.coords.push(r[2*t],r[2*t+1]),o&&u.coords.push(s[t]),h&&u.coords.push(n[t]);if(l){const t=g;u.coords.push(r[2*t],r[2*t+1]),o&&u.coords.push(s[t]),h&&u.coords.push(n[t])}u.lengths.push((u.coords.length-c)/u.stride),g=i}return"point"===t&&(u.lengths.length=0),u}function S(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,r=t.isCustomWkid()?0:t.getOldID();if(r<=0)return{wkt:e};let s=t.getLatestID();(s<=0||s===r)&&(s=void 0);const n=t.getVCS();if(null==n)return{wkid:r,latestWkid:s,wkt:e};const i=n.isCustomWkid()?0:n.getOldID();if(i<=0)return{wkt:e};let a=t.getLatestVerticalID();return(a<=0||a===i)&&(a=void 0),{wkid:r,wkt:e,latestWkid:s,vcsWkid:i,latestVcsWkid:a}}(t.getSpatialReference()),t=t.getGeometry()),new x({...t.toFlatGeometry(),spatialReference:e})}class P{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const r of e)t[r]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function R({spatialReference:t}){return t instanceof n.A?t.toJSON():t}function Z({vertexXY:t,vertexZ:e,vertexM:r}){return e?r?s=>[t[2*s],t[2*s+1],e[s],r[s]]:r=>[t[2*r],t[2*r+1],e[r]]:r?e=>[t[2*e],t[2*e+1],r[e]]:e=>[t[2*e],t[2*e+1]]}function A(t,e){return t.every((t,r)=>t===e[r])}function F(t,e,r,s,n,i,a,o){a??=0,o??=0;const h=new x({type:t,vertexCount:e,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:a,segmentCountBezier:o});let u=2*Float64Array.BYTES_PER_ELEMENT*e;s&&(u+=Float64Array.BYTES_PER_ELEMENT*e),n&&(u+=Float64Array.BYTES_PER_ELEMENT*e),h.isMultipart()&&(u+=(r+1)*Int32Array.BYTES_PER_ELEMENT,u+=(r+1)*Int8Array.BYTES_PER_ELEMENT),i&&(u+=e*Int8Array.BYTES_PER_ELEMENT,u+=e*Int32Array.BYTES_PER_ELEMENT,u+=h.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const l=new ArrayBuffer(u);let g=0;return h.vertexXY=new Float64Array(l,g,2*e),g+=h.vertexXY.byteLength,s&&(h.vertexZ=new Float64Array(l,g,e),g+=h.vertexZ.byteLength),n&&(h.vertexM=new Float64Array(l,g,e),g+=h.vertexM.byteLength),i&&(h.segmentParams=new Float64Array(l,g,h.segmentParamCount),g+=h.segmentParams.byteLength,h.segmentIndices=new Int32Array(l,g,e),h.segmentIndices.fill(k),g+=h.segmentIndices.byteLength),h.isMultipart()&&(h.partOffsets=new Int32Array(l,g,r+1),g+=h.partOffsets.byteLength,h.partFlags=new Int8Array(l,g,r+1),g+=h.partFlags.byteLength,"polygon"===h.type&&h.partFlags.subarray(0,r).fill(1)),i&&(h.segmentFlags=new Int8Array(l,g,e),h.segmentFlags.fill(1),g+=h.segmentFlags.byteLength),h}function Y(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){r[i]=4,s[i]=a;const[o,[h,u],l,g,c,f,x]=e.a;let p=4;g||(p|=1),l||(p|=2);const v=(0,m.SW)(t,e),[d,y]=(0,m.Uk)(v,.5);return n[a++]=p,n[a++]=f,n[a++]=x,n[a++]=c,n[a++]=h,n[a++]=u,n[a++]=v.u2-v.u1,n[a++]=v.u1,n[a++]=d,n[a++]=y,a}function b(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){r[i]=4,s[i]=a;const o=(0,c.io)(t,e);return I(o,4,...(0,h.mq)(o,.5),n,a)}function V(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){return r[i]=4,s[i]=a,I((0,u.pM)(t,e),0,...e.c[1],n,a)}function I(t,e,r,s,n,i){const{cx:a,cy:o,thetaStart:h,thetaEnd:u,radius:l}=t;return h>u||(e|=1),Math.abs(u-h)<=Math.PI||(e|=2),n[i++]=e,n[i++]=l,n[i++]=1,n[i++]=0,n[i++]=a,n[i++]=o,n[i++]=u-h,n[i++]=h,n[i++]=r,n[i++]=s,i}function w(t,{b:[e,[r,s],[n,i]]},{segmentFlags:a,segmentIndices:o,segmentParams:h},u,l){return a[u]=2,o[u]=l,h[l++]=r,h[l++]=s,h[l++]=n,h[l++]=i,l}const X=1.61803,k=-1},46178(t,e,r){r.r(e),r.d(e,{execute:()=>a});var s=r(85181),n=r(83299);const i=new s.OperatorOverlaps;function a(t,e){const r=(0,n.fromGeometry)(t);return i.execute(r.getGeometry(),(0,n.fromGeometryToGXGeometry)(e),r.getSpatialReference(),null)}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9567],{29242(t,n,r){function a(){return[1,0,0,0,1,0,0,0,1]}function o(t,n,r,a,o,u,e,c,s){return[t,n,r,a,o,u,e,c,s]}r.d(n,{fA:()=>o,vt:()=>a});const u=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:u,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:a,fromValues:o},Symbol.toStringTag,{value:"Module"})),r.d(n,["zK",0,u])},34304(t,n,r){r.d(n,{DF:()=>s,FD:()=>o,ct:()=>i});let a=1e-6;function o(){return a}const u=Math.random,e=Math.PI/180,c=180/Math.PI;function s(t){return t*e}function i(t){return t*c}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:u,equals:function(t,n){return Math.abs(t-n)<=a*Math.max(1,Math.abs(t),Math.abs(n))},getEpsilon:o,setEpsilon:function(t){a=t},toDegree:i,toRadian:s},Symbol.toStringTag,{value:"Module"})),r.d(n,["Ov",0,u])},77690(t,n,r){r.d(n,{B8:()=>c,Ge:()=>l,I0:()=>M,KC:()=>s,a4:()=>i,hZ:()=>u,hs:()=>f,lw:()=>h,mg:()=>e,z0:()=>o});var a=r(34304);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t}function u(t,n,r,a,o,u,e,c,s,i){return t[0]=n,t[1]=r,t[2]=a,t[3]=o,t[4]=u,t[5]=e,t[6]=c,t[7]=s,t[8]=i,t}function e(t,n){if(t===n){const r=n[1],a=n[2],o=n[5];t[1]=n[3],t[2]=n[6],t[3]=r,t[5]=n[7],t[6]=a,t[7]=o}else t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8];return t}function c(t,n){const r=n[0],a=n[1],o=n[2],u=n[3],e=n[4],c=n[5],s=n[6],i=n[7],h=n[8],f=h*e-c*i,M=-h*u+c*s,l=i*u-e*s;let b=r*f+a*M+o*l;return b?(b=1/b,t[0]=f*b,t[1]=(-h*a+o*i)*b,t[2]=(c*a-o*e)*b,t[3]=M*b,t[4]=(h*r-o*s)*b,t[5]=(-c*r+o*u)*b,t[6]=l*b,t[7]=(-i*r+a*s)*b,t[8]=(e*r-a*u)*b,t):null}function s(t,n){const r=n[0],a=n[1],o=n[2],u=n[3],e=n[4],c=n[5],s=n[6],i=n[7],h=n[8];return t[0]=e*h-c*i,t[1]=o*i-a*h,t[2]=a*c-o*e,t[3]=c*s-u*h,t[4]=r*h-o*s,t[5]=o*u-r*c,t[6]=u*i-e*s,t[7]=a*s-r*i,t[8]=r*e-a*u,t}function i(t){const n=t[0],r=t[1],a=t[2],o=t[3],u=t[4],e=t[5],c=t[6],s=t[7],i=t[8];return n*(i*u-e*s)+r*(-i*o+e*c)+a*(s*o-u*c)}function h(t,n,r){const a=n[0],o=n[1],u=n[2],e=n[3],c=n[4],s=n[5],i=n[6],h=n[7],f=n[8],M=r[0],l=r[1],b=r[2],m=r[3],d=r[4],v=r[5],p=r[6],q=r[7],x=r[8];return t[0]=M*a+l*e+b*i,t[1]=M*o+l*c+b*h,t[2]=M*u+l*s+b*f,t[3]=m*a+d*e+v*i,t[4]=m*o+d*c+v*h,t[5]=m*u+d*s+v*f,t[6]=p*a+q*e+x*i,t[7]=p*o+q*c+x*h,t[8]=p*u+q*s+x*f,t}function f(t,n,r){const a=r[0],o=r[1],u=r[2];return t[0]=a*n[0],t[1]=a*n[1],t[2]=a*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t[6]=u*n[6],t[7]=u*n[7],t[8]=u*n[8],t}function M(t,n){const r=n[0],a=n[1],o=n[2],u=n[3],e=r+r,c=a+a,s=o+o,i=r*e,h=a*e,f=a*c,M=o*e,l=o*c,b=o*s,m=u*e,d=u*c,v=u*s;return t[0]=1-f-b,t[3]=h-v,t[6]=M+d,t[1]=h+v,t[4]=1-i-b,t[7]=l-m,t[2]=M-d,t[5]=l+m,t[8]=1-i-f,t}function l(t,n){const r=n[0],a=n[1],o=n[2],u=n[3],e=n[4],c=n[5],s=n[6],i=n[7],h=n[8],f=n[9],M=n[10],l=n[11],b=n[12],m=n[13],d=n[14],v=n[15],p=r*c-a*e,q=r*s-o*e,x=r*i-u*e,P=a*s-o*c,y=a*i-u*c,S=o*i-u*s,R=h*m-f*b,g=h*d-M*b,I=h*v-l*b,k=f*d-M*m,E=f*v-l*m,_=M*v-l*d;let K=p*_-q*E+x*k+P*I-y*g+S*R;return K?(K=1/K,t[0]=(c*_-s*E+i*k)*K,t[1]=(s*I-e*_-i*g)*K,t[2]=(e*E-c*I+i*R)*K,t[3]=(o*E-a*_-u*k)*K,t[4]=(r*_-o*I+u*g)*K,t[5]=(a*I-r*E-u*R)*K,t[6]=(m*S-d*y+v*P)*K,t[7]=(d*x-b*S-v*q)*K,t[8]=(b*y-m*x+v*p)*K,t):null}function b(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t[3]=n[3]-r[3],t[4]=n[4]-r[4],t[5]=n[5]-r[5],t[6]=n[6]-r[6],t[7]=n[7]-r[7],t[8]=n[8]-r[8],t}const m=h,d=b;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t[3]=n[3]+r[3],t[4]=n[4]+r[4],t[5]=n[5]+r[5],t[6]=n[6]+r[6],t[7]=n[7]+r[7],t[8]=n[8]+r[8],t},adjoint:s,copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},determinant:i,equals:function(t,n){const r=t[0],o=t[1],u=t[2],e=t[3],c=t[4],s=t[5],i=t[6],h=t[7],f=t[8],M=n[0],l=n[1],b=n[2],m=n[3],d=n[4],v=n[5],p=n[6],q=n[7],x=n[8],P=(0,a.FD)();return Math.abs(r-M)<=P*Math.max(1,Math.abs(r),Math.abs(M))&&Math.abs(o-l)<=P*Math.max(1,Math.abs(o),Math.abs(l))&&Math.abs(u-b)<=P*Math.max(1,Math.abs(u),Math.abs(b))&&Math.abs(e-m)<=P*Math.max(1,Math.abs(e),Math.abs(m))&&Math.abs(c-d)<=P*Math.max(1,Math.abs(c),Math.abs(d))&&Math.abs(s-v)<=P*Math.max(1,Math.abs(s),Math.abs(v))&&Math.abs(i-p)<=P*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(h-q)<=P*Math.max(1,Math.abs(h),Math.abs(q))&&Math.abs(f-x)<=P*Math.max(1,Math.abs(f),Math.abs(x))},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=0,t[6]=n[4],t[7]=n[5],t[8]=1,t},fromMat4:o,fromQuat:M,fromRotation:function(t,n){const r=Math.sin(n),a=Math.cos(n);return t[0]=a,t[1]=r,t[2]=0,t[3]=-r,t[4]=a,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=n[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=n[0],t[7]=n[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:c,isOrthoNormal:function(t){const n=(0,a.FD)(),r=t[0],o=t[1],u=t[2],e=t[3],c=t[4],s=t[5],i=t[6],h=t[7],f=t[8];return Math.abs(1-(r*r+e*e+i*i))<=n&&Math.abs(1-(o*o+c*c+h*h))<=n&&Math.abs(1-(u*u+s*s+f*f))<=n},mul:m,multiply:h,multiplyScalar:function(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t[4]=n[4]*r,t[5]=n[5]*r,t[6]=n[6]*r,t[7]=n[7]*r,t[8]=n[8]*r,t},multiplyScalarAndAdd:function(t,n,r,a){return t[0]=n[0]+r[0]*a,t[1]=n[1]+r[1]*a,t[2]=n[2]+r[2]*a,t[3]=n[3]+r[3]*a,t[4]=n[4]+r[4]*a,t[5]=n[5]+r[5]*a,t[6]=n[6]+r[6]*a,t[7]=n[7]+r[7]*a,t[8]=n[8]+r[8]*a,t},normalFromMat4:l,normalFromMat4Legacy:function(t,n){const r=n[0],a=n[1],o=n[2],u=n[4],e=n[5],c=n[6],s=n[8],i=n[9],h=n[10],f=h*e-c*i,M=-h*u+c*s,l=i*u-e*s,b=r*f+a*M+o*l;if(!b)return null;const m=1/b;return t[0]=f*m,t[1]=(-h*a+o*i)*m,t[2]=(c*a-o*e)*m,t[3]=M*m,t[4]=(h*r-o*s)*m,t[5]=(-c*r+o*u)*m,t[6]=l*m,t[7]=(-i*r+a*s)*m,t[8]=(e*r-a*u)*m,t},projection:function(t,n,r){return t[0]=2/n,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/r,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,n,r){const a=n[0],o=n[1],u=n[2],e=n[3],c=n[4],s=n[5],i=n[6],h=n[7],f=n[8],M=Math.sin(r),l=Math.cos(r);return t[0]=l*a+M*e,t[1]=l*o+M*c,t[2]=l*u+M*s,t[3]=l*e-M*a,t[4]=l*c-M*o,t[5]=l*s-M*u,t[6]=i,t[7]=h,t[8]=f,t},scale:f,scaleByVec2:function(t,n,r){const a=r[0],o=r[1];return t[0]=a*n[0],t[1]=a*n[1],t[2]=a*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t},set:u,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:d,subtract:b,translate:function(t,n,r){const a=n[0],o=n[1],u=n[2],e=n[3],c=n[4],s=n[5],i=n[6],h=n[7],f=n[8],M=r[0],l=r[1];return t[0]=a,t[1]=o,t[2]=u,t[3]=e,t[4]=c,t[5]=s,t[6]=M*a+l*e+i,t[7]=M*o+l*c+h,t[8]=M*u+l*s+f,t},transpose:e},Symbol.toStringTag,{value:"Module"}))},37585(t,n,r){r.d(n,{C:()=>u,Cc:()=>y,Io:()=>d,LI:()=>l,Ln:()=>m,Om:()=>P,Re:()=>s,S8:()=>x,T9:()=>f,WQ:()=>c,aI:()=>I,e$:()=>R,hG:()=>v,hZ:()=>e,hs:()=>b,l0:()=>S,qE:()=>M,t2:()=>g});var a=r(34727),o=r(34304);function u(t,n){return t[0]=n[0],t[1]=n[1],t}function e(t,n,r){return t[0]=n,t[1]=r,t}function c(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t}function s(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t}function i(t,n,r){return t[0]=n[0]*r[0],t[1]=n[1]*r[1],t}function h(t,n,r){return t[0]=n[0]/r[0],t[1]=n[1]/r[1],t}function f(t,n,r){return t[0]=Math.max(n[0],r[0]),t[1]=Math.max(n[1],r[1]),t}function M(t,n,r,o){return t[0]=(0,a.qE)(n[0],r[0],o[0]),t[1]=(0,a.qE)(n[1],r[1],o[1]),t}function l(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t}function b(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t}function m(t,n,r,a){return t[0]=n[0]+r[0]*a,t[1]=n[1]+r[1]*a,t}function d(t,n){const r=n[0]-t[0],a=n[1]-t[1];return Math.sqrt(r*r+a*a)}function v(t,n){const r=n[0]-t[0],a=n[1]-t[1];return r*r+a*a}function p(t){const n=t[0],r=t[1];return Math.sqrt(n*n+r*r)}function q(t){const n=t[0],r=t[1];return n*n+r*r}function x(t,n){const r=n[0],a=n[1];let o=r*r+a*a;return o>0&&(o=1/Math.sqrt(o),t[0]=n[0]*o,t[1]=n[1]*o),t}function P(t,n){return t[0]*n[0]+t[1]*n[1]}function y(t,n,r,a){const o=n[0],u=n[1];return t[0]=o+a*(r[0]-o),t[1]=u+a*(r[1]-u),t}function S(t,n,r){const a=n[0],o=n[1];return t[0]=r[0]*a+r[2]*o+r[4],t[1]=r[1]*a+r[3]*o+r[5],t}function R(t,n,r,a){const o=n[0]-r[0],u=n[1]-r[1],e=Math.sin(a),c=Math.cos(a);return t[0]=o*c-u*e+r[0],t[1]=o*e+u*c+r[1],t}function g(t,n){return t[0]===n[0]&&t[1]===n[1]}function I(t,n){const r=t[0],a=t[1],u=n[0],e=n[1],c=(0,o.FD)();return Math.abs(r-u)<=c*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(a-e)<=c*Math.max(1,Math.abs(a),Math.abs(e))}const k=p,E=s,_=i,K=h,D=d,O=v,j=q;Object.freeze(Object.defineProperty({__proto__:null,add:c,angle:function(t,n){const r=t[0],a=t[1],o=n[0],u=n[1];let e=r*r+a*a;e>0&&(e=1/Math.sqrt(e));let c=o*o+u*u;c>0&&(c=1/Math.sqrt(c));const s=(r*o+a*u)*e*c;return s>1?0:s<-1?Math.PI:Math.acos(s)},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t},clamp:M,copy:u,cross:function(t,n,r){const a=n[0]*r[1]-n[1]*r[0];return t[0]=t[1]=0,t[2]=a,t},dist:D,distance:d,div:K,divide:h,dot:P,equals:I,exactEquals:g,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t},len:k,length:p,lerp:y,max:f,min:function(t,n,r){return t[0]=Math.min(n[0],r[0]),t[1]=Math.min(n[1],r[1]),t},mul:_,multiply:i,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t},normalize:x,projectAndScale:function(t,n,r,a,o){let u=n[0]-r[0],e=n[1]-r[1];const c=(a[0]*u+a[1]*e)*(o-1);return u=a[0]*c,e=a[1]*c,t[0]=n[0]+u,t[1]=n[1]+e,t},random:function(t,n=1){const r=2*(0,o.Ov)()*Math.PI;return t[0]=Math.cos(r)*n,t[1]=Math.sin(r)*n,t},rotate:R,round:l,scale:b,scaleAndAdd:m,set:e,sqrDist:O,sqrLen:j,squaredDistance:v,squaredLength:q,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:E,subtract:s,transformMat2:function(t,n,r){const a=n[0],o=n[1];return t[0]=r[0]*a+r[2]*o,t[1]=r[1]*a+r[3]*o,t},transformMat2d:S,transformMat3:function(t,n,r){const a=n[0],o=n[1];return t[0]=r[0]*a+r[3]*o+r[6],t[1]=r[1]*a+r[4]*o+r[7],t},transformMat4:function(t,n,r){const a=n[0],o=n[1];return t[0]=r[0]*a+r[4]*o+r[12],t[1]=r[1]*a+r[5]*o+r[13],t}},Symbol.toStringTag,{value:"Module"})),r.d(n,["Il",0,k,"jb",0,E,"xg",0,D])},4305(t,n,r){r.d(n,{B4:()=>s,jK:()=>h,lM:()=>M,m_:()=>f,ty:()=>b});var a=r(34727),o=(r(37585),r(19419)),u=r(15507);const e=[0,0];function c(t){const n=1-t,r=n*n,a=t*t;return[r*n,3*t*r,3*a*n,a*t]}function s(t,n,r,a,o){const[u,e,s,i]=c(o);return[t[0]*u+n[0]*e+r[0]*s+a[0]*i,t[1]*u+n[1]*e+r[1]*s+a[1]*i]}function i(t,n,r,a,o){const[u,e,s,i]=c(o);return t*u+n*e+r*s+a*i}function h(t,n,r){const a=t,[o,c,s]=n.b,i=(0,u.RS)([0,0],a,c,r),h=(0,u.RS)(e,c,s,r),f=(0,u.RS)([0,0],s,o,r),M=(0,u.RS)([0,0],i,h,r),l=(0,u.RS)([0,0],h,f,r);return[{b:[(0,u.RS)([],M,l,r),i,M]},{b:[[...o],l,f]}]}function f(t,n,r){const o=t,[e,c,i]=n.b,h=(0,u.R)(r,[.1,.5,.9],t=>{const n=1-t,[r,a]=s(o,c,i,e,t);return[r,a,3*n*n*(c[0]-o[0])+6*n*t*(i[0]-c[0])+3*t*t*(e[0]-i[0]),3*n*n*(c[1]-o[1])+6*n*t*(i[1]-c[1])+3*t*t*(e[1]-i[1]),6*n*(i[0]-2*c[0]+o[0])+6*t*(e[0]-2*i[0]+c[0]),6*n*(i[1]-2*c[1]+o[1])+6*t*(e[1]-2*i[1]+c[1])]}).map(t=>Math.min(1,Math.max(0,t)));h.push(0,1);let f=1/0;const M=h.map(t=>{const n=s(o,c,i,e,t),[a,u]=n,h=r[0]-a,M=r[1]-u,l=Math.sqrt(h*h+M*M);return f=Math.min(l,f),{t,curvePoint:n,distance:l}}),l=[];for(const t of M){const{t:n,distance:r}=t;(0,a.b6)(r,f)&&!l.some(({t})=>(0,a.Sp)(t,n))&&l.push(t)}return l}function M(t,n,r){const a=n,[u,e,c]=r.b;if((0,o.tK)(t,a),(0,o.tK)(t,u),(0,o.Rj)(t,e[0],e[1])&&(0,o.Rj)(t,c[0],c[1]))return t;for(const n of l(a[0],e[0],c[0],u[0]))n>0&&n<1&&(0,o.nw)(t,i(a[0],e[0],c[0],u[0],n));for(const n of l(a[1],e[1],c[1],u[1]))n>0&&n<1&&(0,o.IO)(t,i(a[1],e[1],c[1],u[1],n));return t}function l(t,n,r,a){const o=3*(3*(n-r)-t+a),u=6*(t-2*n+r),e=3*(n-t);if(0===o)return 0!==u?[-e/u]:[];const c=Math.sqrt(u*u-4*o*e);return[(-u+c)/(2*o),(-u-c)/(2*o)]}function b(t,n,r){let a=0,o=[n];for(let n=0;n<16;n++){let n=t;const e=[];for(const t of o)e.push(...h(n,t,.5)),n=t.b[0];o=e,n=t,a=0;let c=0;for(const t of o){const[r,o,e]=t.b,s=Math.sqrt((0,u.kb)(n,r));a+=(s+(Math.sqrt((0,u.kb)(n,o))+Math.sqrt((0,u.kb)(o,e))+Math.sqrt((0,u.kb)(e,r))))/2,c+=s,n=r}if(a-c<r)return a}return a}},513(t,n,r){r.d(n,{KP:()=>e,X0:()=>h,fM:()=>i,mq:()=>s,zW:()=>f});var a=r(19419),o=r(59803),u=r(15507);class e{constructor(t,n,r,a,o,u){this.cx=t,this.cy=n,this.radius=r,this.thetaStart=a,this.thetaEnd=o,this.isInvalid=u}get startPoint(){const{cx:t,cy:n,radius:r,thetaStart:a}=this;return[t+r*Math.cos(a),n+r*Math.sin(a)]}get endPoint(){const{cx:t,cy:n,radius:r,thetaEnd:a}=this;return[t+r*Math.cos(a),n+r*Math.sin(a)]}}function c(t,n){const{cx:r,cy:a,radius:o}=t;return[r+o*Math.cos(n),a+o*Math.sin(n)]}function s(t,n){if(t.isInvalid)return(0,u.RS)([0,0],t.startPoint,t.endPoint,n);const{thetaStart:r,thetaEnd:a}=t;return c(t,r*(1-n)+a*n)}function i(t,n){if(t.isInvalid)return(0,o.T)(t.startPoint,t.endPoint,n);const{cx:r,cy:a,thetaStart:e,thetaEnd:s}=t,[i,h]=n,f=(0,u.Pf)((0,u.yN)(e,s),Math.atan2(h-a,i-r)),M=c(t,f);return{t:(f-e)/(s-e),curvePoint:M,distance:Math.sqrt((0,u.kb)(n,M))}}function h(t,n){if(n.isInvalid)return(0,a.tK)(t,n.startPoint),(0,a.tK)(t,n.endPoint),t;const{cx:r,cy:o,radius:e,thetaStart:s,thetaEnd:i}=n;(0,a.tK)(t,c(n,s)),(0,a.tK)(t,c(n,i));const h=(0,u.yN)(s,i),f=Math.PI/2;let M=0;for(const n of[[r+e,o],[r,o+e],[r-e,o],[r,o-e]])M=(0,u.Cp)(h,M),M>h.min&&M<h.max&&(0,a.tK)(t,n),M+=f;return t}function f(t){if(t.isInvalid)return 2*t.radius;const{radius:n,thetaStart:r,thetaEnd:a}=t;return n*Math.abs(a-r)}},50954(t,n,r){r.d(n,{GX:()=>h,pM:()=>i});var a=r(77690),o=r(29242),u=(r(37585),r(513)),e=r(15507);const c=(0,o.vt)();function s(t,n,r){const[o,u]=t,[s,i]=n,[h,f]=r;(0,a.hZ)(c,o,s,h,u,i,f,1,1,1);const M=(0,a.a4)(c),l=4*M/((0,e.kb)(t,n)+(0,e.kb)(n,r)+(0,e.kb)(r,t));if(!isFinite(l)||Math.abs(l)<1e-8)return null;const b=o**2+u**2,m=s**2+i**2,d=h**2+f**2;(0,a.hZ)(c,b,m,d,u,i,f,1,1,1);const v=(0,a.a4)(c);return(0,a.hZ)(c,b,m,d,o,s,h,1,1,1),[v/M*.5,(0,a.a4)(c)/M*-.5]}function i(t,n){const[r,a]=n.c,o=s(t,a,r),c=null==o,i=o??(0,e.RS)([],t,r,.5),[h,f]=t,[M,l]=a,[b,m]=r,[d,v]=i,p=h-d,q=f-v,x=Math.sqrt(p*p+q*q),P=(0,e.t7)(f-v,h-d),y=(0,e.t7)(l-v,M-d);let S=(0,e.t7)(m-v,b-d);return(y-P)*(S-y)<0&&(S+=2*Math.sign(P-S)*Math.PI),new u.KP(d,v,x,P,S,c)}function h(t,n,r){const a=(0,u.mq)(t,r/2),o=(0,u.mq)(t,r),e=(0,u.mq)(t,(r+1)/2);return[{c:[o,a]},{c:[[...n.c[0]],e]}]}},79567(t,n,r){r.d(n,{e:()=>h});var a=r(19419),o=r(4305),u=r(513),e=r(50954),c=r(52006),s=r(49663),i=r(46068);function h(t,n,r){if((0,c.Xq)(r))return(0,a.tK)(t,n),(0,a.tK)(t,r),t;if((0,c.n1)(r))return(0,o.lM)(t,n,r);if((0,c.aO)(r)){const a=(0,e.pM)(n,r);return(0,u.X0)(t,a)}if((0,c.DA)(r)){const a=(0,s.io)(n,r);return(0,u.X0)(t,a)}return(0,i.DL)(t,n,r)}},52006(t,n,r){function a(t){return"curveRings"in t&&!!t.curveRings?.length||"curvePaths"in t&&!!t.curvePaths?.length}function o(t){return"curveRings"in t?t.curveRings:t.curvePaths}function u(t){return"b"in t}function e(t){return"c"in t}function c(t){return Array.isArray(t)}function s(t){return"a"in t}function i(t){return"a"in t&&4===t.a.length}function h(t){return"a"in t&&7===t.a.length}function f(t,n){return o(t).flat().some(t=>function(t,n){return!(c(t)||(u(t)?n.has("cubic-bezier"):e(t)?n.has("circular-arc"):!i(t)&&!h(t)||n.has("elliptic-arc")))}(t,n))}function M(t){return c(t)?t:u(t)?t.b[0]:e(t)?t.c[0]:t.a[0]}function l(t){if(u(t)){const[n,r,a]=t.b;return{b:[[...n],[...r],[...a]]}}if(e(t)){const[n,r]=t.c;return{c:[[...n],[...r]]}}if(c(t))return[...t];if(i(t)){const[n,r,a,o]=t.a;return{a:[[...n],[...r],a,o]}}if(h(t)){const[n,r,a,o,u,e,c]=t.a;return{a:[[...n],[...r],a,o,u,e,c]}}return t}r.d(n,{DA:()=>i,Ed:()=>a,FD:()=>o,FG:()=>s,V8:()=>f,Xq:()=>c,aO:()=>e,n1:()=>u,tk:()=>l,wY:()=>h,yP:()=>M}),r(4576)},49663(t,n,r){r.d(n,{io:()=>e,xG:()=>c});var a=r(34727),o=(r(37585),r(513)),u=r(15507);function e(t,n){const[r,e,c,s]=n.a,[i,h]=t,[f,M]=r,[l,b]=e,m=i-l,d=h-b,v=Math.sqrt(m*m+d*d),p=f-l,q=M-b,x=Math.sqrt(p*p+q*q),P=0===v||0===x||!(0,a.b6)(v,x),y=v,[S,R]=(0,u.Gz)((0,u.t7)(h-b,i-l),Math.atan2(M-b,f-l),c,s);return new o.KP(l,b,y,S,R,P)}function c(t,n,r){const{cx:a,cy:u,thetaStart:e,thetaEnd:c}=t,[s,i,h,f]=n.a,M=e*(1-r)+c*r;return[{a:[(0,o.mq)(t,r),[a,u],Math.abs(M-e)<Math.PI?1:0,f]},{a:[[...s],[a,u],Math.abs(c-M)<Math.PI?1:0,f]}]}},46068(t,n,r){r.d(n,{DL:()=>l,ED:()=>f,SW:()=>s,Uk:()=>h,pb:()=>M,xm:()=>b}),r(77690);var a=r(29242),o=(r(37585),r(19419)),u=r(52006),e=r(15507);class c{constructor(t,n,r,a,o,u,e,c,s){this.cx=t,this.cy=n,this.a=r,this.b=a,this.cosR=o,this.sinR=u,this.u1=e,this.u2=c,this.isInvalid=s}}function s(t,n){const[r,a,o,u,s,i,h]=n.a,[f,M]=t,[l,b]=r,[m,d]=a,v=i*h,p=Math.cos(s),q=Math.sin(s),[x,P]=(0,e.Gz)((0,e.t7)(1/v*(M-d)*p-1/v*(f-m)*q,1/i*(M-d)*q+1/i*(f-m)*p),Math.atan2(1/v*(b-d)*p-1/v*(l-m)*q,1/i*(b-d)*q+1/i*(l-m)*p),o,u);return new c(m,d,i,v,p,q,x,P,0===i||0===v)}function i(t,n){const{a:r,b:a,cosR:o,sinR:u,cx:e,cy:c}=t,s=Math.cos(n),i=Math.sin(n);return[r*s*o-a*i*u+e,r*s*u+a*i*o+c]}function h(t,n){const{u1:r,u2:a}=t;return i(t,r*(1-n)+a*n)}function f(t,n,r){if(r<0||r>1)return[];if(0===r||1===r)return[(0,u.tk)(n)];const[a,[o,e],c,s,i,f,M]=n.a,{u1:l,u2:b}=t,m=l*(1-r)+b*r;return[{a:[[...h(t,r)],[o,e],Math.abs(m-l)<Math.PI?1:0,s,i,f,M]},{a:[[...a],[o,e],Math.abs(b-m)<Math.PI?1:0,s,i,f,M]}]}function M(t,n){const{a:r,b:a,cosR:o,sinR:u,u1:c,u2:s}=t,h=Math.PI/6,f=(0,e.R)(n,[1*h,2*h,4*h,5*h,7*h,8*h,10*h,11*h],n=>{const e=Math.cos(n),c=Math.sin(n),[s,h]=i(t,n);return[s,h,-r*o*c-a*u*e,-r*u*c+a*o*e,-r*o*e+a*u*c,-r*u*e-a*o*c]}),M=(0,e.yN)(c,s),l=new Set(f.map(t=>(0,e.Cp)(M,t)).filter(t=>t>M.min&&t<M.max));l.add(c),l.add(s);let b,m,d=1/0;for(const r of l){const a=i(t,r),[o,u]=a,e=n[0]-o,h=n[1]-u,f=e*e+h*h;f<d&&(b=(r-c)/(s-c),m=a,d=f)}return{t:b,curvePoint:m,distance:Math.sqrt(d)}}function l(t,n,r){const a=s(n,r),{a:u,b:c,u1:h,u2:f,cosR:M,sinR:l,isInvalid:b}=a,m=r.a[0];if((0,o.tK)(t,n),(0,o.tK)(t,m),b)return t;const d=Math.atan2(-c*l,u*M),v=d+Math.PI,p=Math.atan2(c*M,u*l),q=p+Math.PI,x=(0,e.yN)(h,f);for(const n of[d,v,p,q].map(t=>(0,e.Cp)(x,t)))n>x.min&&n<x.max&&(0,o.tK)(t,i(a,n));return t}function b(t,n,r){const[a,o,u,c,f,M,l]=n.a,b=s(t,n),{u1:m,u2:d,isInvalid:v}=b,p=d-m;if(v)return Math.sqrt((0,e.kb)(t,a));const q=[0,0];let x=0,P=[h(b,0),h(b,.25),h(b,.5),h(b,.75),h(b,1)];for(let t=0;t<14;t++){const t=P.length-1,n=p/(2*t),a=[];for(let r=0;r<t;r++)a.push(P[r]),a.push(i(b,m+(2*r+1)*n));a.push(P[P.length-1]),P=a,x=0;let u=0;for(let t=1;t<P.length;t++){const n=P[t-1],r=P[t];if(x+=Math.sqrt((0,e.kb)(n,r)),t>1){const a=P[t-2],c=(0,e.M_)(q,a,n,o,r);u+=c?Math.sqrt((0,e.kb)(n,c)):Math.abs(r[0]-n[0])+Math.abs(r[1]-n[1])}else u+=x}if(u-x<r)return x}return x}(0,a.vt)(),(0,a.vt)(),(0,a.vt)(),(0,a.vt)()},59803(t,n,r){r.d(n,{T:()=>u});var a=r(34727),o=r(15507);function u(t,n,r){const[u,e]=t,[c,s]=n,[i,h]=r,[f,M]=[c-u,s-e];let l=f*(i-u)+M*(h-e);l/=f**2+M**2,l=isNaN(l)?0:(0,a.qE)(l,0,1);const b=(0,o.RS)([0,0],t,n,l);return{t:l,curvePoint:b,distance:Math.sqrt((0,o.kb)(b,r))}}},15507(t,n,r){r.d(n,{Cp:()=>m,Gz:()=>b,M_:()=>s,Pf:()=>d,R:()=>v,RS:()=>u,kb:()=>e,t7:()=>h,yE:()=>c,yN:()=>l});var a=r(34727),o=r(37585);function u(t,n,r,a){return t[0]=n[0]*(1-a)+r[0]*a,t[1]=n[1]*(1-a)+r[1]*a,t}function e(t,n){return(0,o.hG)(t,n)}function c(t,n,r){const a=e(n,r);if(0===a)return e(n,t);const o=(n[0]-t[0])*(r[1]-t[1])-(n[1]-t[1])*(r[0]-t[0]);return o*o/a}function s(t,n,r,a,o){const[u,e]=n,[c,s]=r,[i,h]=a,[f,M]=o,l=(u-c)*(h-M)-(e-s)*(i-f);if(0===l)return null;const b=(u*s-e*c)*(i-f)-(u-c)*(i*M-h*f),m=(u*s-e*c)*(h-M)-(e-s)*(i*M-h*f);return t[0]=b/l,t[1]=m/l,t}const i=2*Math.PI;function h(t,n){const r=Math.atan2(t,n);return r<0?r+i:r}function f(t){return Math.abs(t)%i}function M(t){const n=f(t);return n<Math.PI?n:i-n}function l(t,n){return{min:Math.min(t,n),max:Math.max(t,n)}}function b(t,n,r,o){if((0,a.Sp)(f(t-n),0))return r?[t,t]:[t,o?t-i:t+i];const[u,e]=o?[t-i,t]:[t,t+i];return[t,m({min:u,max:e},n)]}function m({min:t,max:n},r){let a;return a=n-r,a>=i?(a-=a%i,r+a):(a=r-t,a>=i?(a-=a%i,r-a):r)}function d(t,n){const r=m(t,n);return r>t.min&&r<t.max?r:M(r-t.min)<M(r-t.max)?t.min:t.max}function v(t,n,r,a=10){return n.map(n=>{let o=n;for(let n=0;n<a;n++){const[n,a,u,e,c,s]=r(o),i=t[0]-n,h=t[1]-a,f=-u,M=-e;o+=-(2*i*f+2*h*M)/(2*f*f+2*i*-c+2*M*M+2*h*-s||1e-6)}return o})}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8559],{48526(e,t,a){a.d(t,{A:()=>m});var r,n=a(32198),s=a(4576),i=a(4718),l=a(91429),o=a(5443),c=a(91075),u=a(86738),y=a(16930),f=a(90634),h=a(47610),d=a(56993),p=a(43937);let m=r=class extends c.A{constructor(e){super(function(e){if(!e)return;let{points:t,hasM:a,hasZ:r,spatialReference:n}=e;switch(t??=[],t?.at(0)?.length){case 4:r??=!0,a??=!0;break;case 3:r??=!0!==a,a??=!r;break;default:r??=!1,a??=!1}return n??=y.A.WGS84,{...e,hasM:a,hasZ:r,points:t,spatialReference:n}}(e)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const e=(0,f.ge)(this);return e?new o.A({...e,spatialReference:this.spatialReference}):null}writePoints(e,t){t.points=(0,i.o8)(this.points)}clone(){const{points:e,spatialReference:t,hasM:a,hasZ:n}=this;return new r({points:(0,i.o8)(e),spatialReference:t.clone(),hasM:a,hasZ:n})}equals(e){if(this===e)return!0;if(null==e)return!1;const t=this.spatialReference,a=e.spatialReference;return null!=t==(null!=a)&&!(null!=t&&null!=a&&!t.equals(a))&&(0,s.aI)(this.points,e.points,h.v6)}addPoint(e){return(0,d.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;const t=this.points[e],a={x:t[0],y:t[1],spatialReference:this.spatialReference};let r=2;return this.hasZ&&(a.z=t[2],r=3),this.hasM&&(a.m=t[r]),new u.A(a)}removePoint(e){if(!this._validateInputs(e))return null;const t=new u.A(this.points.splice(e,1)[0],this.spatialReference);return this.notifyChange("points"),t}setPoint(e,t){return this._validateInputs(e)?((0,d.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,n.Cg)([(0,l.MZ)({readOnly:!0})],m.prototype,"cache",null),(0,n.Cg)([(0,l.MZ)({readOnly:!0})],m.prototype,"extent",null),(0,n.Cg)([(0,l.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],m.prototype,"points",void 0),(0,n.Cg)([(0,p.K)("points")],m.prototype,"writePoints",null),m=r=(0,n.Cg)([(0,l.$K)("esri.geometry.Multipoint")],m),m.prototype.toJSON.isDefaultToJSON=!0},82799(e,t,a){a.d(t,{A:()=>d});var r,n=a(32198),s=a(4718),i=a(91429),l=a(5443),o=a(91075),c=a(86738),u=a(16930),y=a(90634),f=a(56993),h=a(43937);let d=r=class extends o.A{constructor(e){super(function(e){if(!e)return;let{paths:t,hasM:a,hasZ:r,spatialReference:n}=e;switch(t??=[],function(e){return"number"==typeof e[0]?.[0]}(t)&&(t=[t]),t[0]?.[0]?.length){case 4:r??=!0,a??=!0;break;case 3:r??=!0!==a,a??=!r;break;default:r??=!1,a??=!1}return n??=u.A.WGS84,{...e,hasM:a,hasZ:r,paths:t,spatialReference:n}}(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(){const e=(0,y.Z3)(this),{spatialReference:t}=this;return e?new l.A({...e,spatialReference:t}):null}writePaths(e,t){t.paths=(0,s.o8)(this.paths)}addPath(e){if(!e)return;const t=this.paths,a=t.length;if(function(e){return!Array.isArray(e[0])}(e)){const r=[];for(let t=0,a=e.length;t<a;t++)r[t]=e[t].toArray();t[a]=r}else t[a]=e.slice();return this.notifyChange("paths"),this}clone(){const e=new r;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;const a=this.paths[e][t],r=this.hasZ,n=this.hasM;return r&&!n?new c.A(a[0],a[1],a[2],void 0,this.spatialReference):n&&!r?new c.A(a[0],a[1],void 0,a[2],this.spatialReference):r&&n?new c.A(a[0],a[1],a[2],a[3],this.spatialReference):new c.A(a[0],a[1],this.spatialReference)}insertPoint(e,t,a){return this._validateInputs(e,t,!0)?((0,f.h)(this,a),Array.isArray(a)||(a=a.toArray()),this.paths[e].splice(t,0,a),this.notifyChange("paths"),this):this}removePath(e){if(!this._validateInputs(e,null))return null;const t=this.paths.splice(e,1)[0],a=this.spatialReference,r=t.map(e=>new c.A(e,a));return this.notifyChange("paths"),r}removePoint(e,t){if(!this._validateInputs(e,t))return null;const a=new c.A(this.paths[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("paths"),a}setPoint(e,t,a){return this._validateInputs(e,t)?((0,f.h)(this,a),Array.isArray(a)||(a=a.toArray()),this.paths[e][t]=a,this.notifyChange("paths"),this):this}_validateInputs(e,t,a=!1){if(null==e||e<0||e>=this.paths.length)return!1;if(null!=t){const r=this.paths[e];if(a&&(t<0||t>r.length))return!1;if(!a&&(t<0||t>=r.length))return!1}return!0}toJSON(e){return this.write({},e)}};(0,n.Cg)([(0,i.MZ)({readOnly:!0})],d.prototype,"cache",null),(0,n.Cg)([(0,i.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],d.prototype,"curvePaths",void 0),(0,n.Cg)([(0,h.K)("curvePaths")],d.prototype,"writeCurvePaths",null),(0,n.Cg)([(0,i.MZ)({readOnly:!0})],d.prototype,"extent",null),(0,n.Cg)([(0,i.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],d.prototype,"paths",void 0),(0,n.Cg)([(0,h.K)("paths")],d.prototype,"writePaths",null),d=r=(0,n.Cg)([(0,i.$K)("esri.geometry.Polyline")],d),d.prototype.toJSON.isDefaultToJSON=!0},60408(e,t,a){function r(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function n(e){return void 0!==e.points}function s(e){return void 0!==e.x&&void 0!==e.y}function i(e){return void 0!==e.paths||void 0!==e.curvePaths}function l(e){return void 0!==e.rings||void 0!==e.curveRings}function o(e){return"object"==typeof e&&"vertexAttributes"in e}function c(e){return e?s(e)?"esriGeometryPoint":i(e)?"esriGeometryPolyline":l(e)?"esriGeometryPolygon":r(e)?"esriGeometryEnvelope":n(e)?"esriGeometryMultipoint":null:null}function u(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function y(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}a.d(t,{$B:()=>c,Bi:()=>l,Pv:()=>u,Rg:()=>i,U9:()=>n,W0:()=>y,ZC:()=>r,fT:()=>s,uW:()=>o})},22429(e,t,a){a.d(t,{v:()=>n});var r=a(7861);class n{constructor(){this._serviceMetadatas=new Map,this._itemDatas=new Map}async fetchServiceMetadata(e,t){const a=this._serviceMetadatas.get(e);if(a)return a;const n=await(0,r.L)(e,t);return this._serviceMetadatas.set(e,n),n}async fetchItemData(e){const{id:t}=e;if(!t)return null;const{_itemDatas:a}=this;if(a.has(t))return a.get(t);const r=await e.fetchData();return a.set(t,r),r}async fetchCustomParameters(e,t){const a=await this.fetchItemData(e);return a&&"object"==typeof a&&(t?t(a):a.customParameters)||null}}},92009(e,t,a){a.d(t,{L:()=>u});var r=a(70333),n=a(11254),s=a(49186),i=a(17676),l=a(60694),o=a(20655),c=a(80812);async function u(e,t){const a=(0,l.qg)(e);if(!a)throw new s.A("invalid-url","Invalid scene service url");const u={...t,sceneServerUrl:a.url.path,layerId:a.sublayer??void 0};if(u.sceneLayerItem??=await async function(e){const t=(await y(e)).serviceItemId;if(!t)return null;const a=new c.default({id:t,apiKey:e.apiKey}),s=await async function(e){const t=r.id?.findServerInfo(e.sceneServerUrl);if(t?.owningSystemUrl)return t.owningSystemUrl;const a=e.sceneServerUrl.replace(/(.*\/rest)\/.*/i,"$1")+"/info";try{const t=(await(0,n.A)(a,{query:{f:"json"},responseType:"json",signal:e.signal})).data.owningSystemUrl;if(t)return t}catch(e){(0,i.QP)(e)}return null}(e);null!=s&&(a.portal=new o.A({url:s}));try{return await a.load({signal:e.signal})}catch(e){return(0,i.QP)(e),null}}(u),null==u.sceneLayerItem)return f(u.sceneServerUrl.replace("/SceneServer","/FeatureServer"),u);const h=await async function({sceneLayerItem:e,signal:t}){if(!e)return null;try{const a=(await e.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},{signal:t})).find(e=>"Feature Service"===e.type)||null;if(!a)return null;const r=new c.default({portal:a.portal,id:a.id});return await r.load(),r}catch(e){return(0,i.QP)(e),null}}(u);if(!h?.url)throw new s.A("related-service-not-found","Could not find feature service through portal item relationship");u.featureServiceItem=h;const d=await f(h.url,u);return d.portalItem=h,d}async function y(e){if(e.rootDocument)return e.rootDocument;const t={query:{f:"json",...e.customParameters,token:e.apiKey},responseType:"json",signal:e.signal};try{const a=await(0,n.A)(e.sceneServerUrl,t);e.rootDocument=a.data}catch{e.rootDocument={}}return e.rootDocument}async function f(e,t){const a=(0,l.qg)(e);if(!a)throw new s.A("invalid-feature-service-url","Invalid feature service url");const r=a.url.path,i=t.layerId;if(null==i)return{serverUrl:r};const o=y(t),c=t.featureServiceItem?await t.featureServiceItem.fetchData("json"):null,u=(c?.layers?.[0]||c?.tables?.[0])?.customParameters,f=e=>{const a={query:{f:"json",...u},responseType:"json",authMode:e,signal:t.signal};return(0,n.A)(r,a)},h=f("anonymous").catch(()=>f("no-prompt")),[d,p]=await Promise.all([h,o]),m=p?.layers,w=d.data&&d.data.layers;if(!Array.isArray(w))throw new Error("expected layers array");if(Array.isArray(m)){for(let e=0;e<Math.min(m.length,w.length);e++)if(m[e].id===i)return{serverUrl:r,layerId:w[e].id}}else if(null!=i&&i<w.length)return{serverUrl:r,layerId:w[i].id};throw new Error("could not find matching associated sublayer")}},23154(e,t,a){a.d(t,{A6:()=>l,Aq:()=>p,Jo:()=>d,QM:()=>i});var r=a(77548),n=a(7861);const s=new Set(["Annotation Layer","Catalog Layer","Dimension Layer","Feature Layer","Oriented Imagery Layer"]);async function i(e,t){const{serviceJSON:a,layersJSON:r,...n}=await l(e,t);u(a);const s={serviceJSON:a,...n};return r&&(u(r),s.layersJSON=r),s}async function l(e,t){const{loadContext:a,...s}=t||{},i=a?await a.fetchServiceMetadata(e,s):await(0,n.L)(e,s),l=(0,r.G$)();h(i);const o={serviceJSON:i,preferredHost:l};if((i.currentVersion??0)<10.5)return o;const c=`${(0,r.$x)()??e}/layers`,u=a?await a.fetchServiceMetadata(c,s):await(0,n.L)(c,s);return h(u),o.layersJSON={layers:u.layers,tables:u.tables},o}function o(e){return s.has(e.type)}function c(e){return"Table"===e.type}function u(e){e.layers=e.layers?.filter(o),e.tables=e.tables?.filter(c)}function y(e){e.type||="Feature Layer"}function f(e){e.type||="Table"}function h(e){e.layers?.forEach(y),e.tables?.forEach(f)}function d(e){if(!e)return"FeatureLayer";switch(e){case"Feature Layer":case"Table":return"FeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"DimensionFeatureLayer";case"Annotation Layer":return"AnnotationFeatureLayer"}return null}function p(e,t){if(!e)return t?"Table":"ArcGISFeatureLayer";switch(e){case"Annotation Layer":return"ArcGISAnnotationLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"ArcGISDimensionLayer";case"Feature Layer":return"ArcGISFeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Parcel Layer":return"ParcelLayer";case"Table":return"Table";case"Topology Layer":return"TopologyLayer";case"Trace Network Layer":return"TraceNetworkLayer";case"Utility Network Layer":return"UtilityNetworkLayer";default:return null}}},2976(e,t,a){const r={AnnotationFeatureLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(2889),a.e(4676),a.e(4674),a.e(2718),a.e(1954)]).then(a.bind(a,20737))).default,BingMapsLayer:async()=>(await Promise.all([a.e(8278),a.e(7865),a.e(6554),a.e(6684)]).then(a.bind(a,17029))).default,BuildingSceneLayer:async()=>(await Promise.all([a.e(5620),a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(9953),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(1214),a.e(5051),a.e(2889),a.e(4473),a.e(4676),a.e(1017),a.e(9789),a.e(4674),a.e(2718),a.e(3781),a.e(7005),a.e(9918),a.e(1427),a.e(2754),a.e(7120)]).then(a.bind(a,82411))).default,CSVLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(9953),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(1214),a.e(5051),a.e(2889),a.e(4473),a.e(4676),a.e(1017),a.e(3813)]).then(a.bind(a,68695))).default,CatalogLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(1214),a.e(5051),a.e(2889),a.e(4473),a.e(4676),a.e(9789),a.e(4674),a.e(893),a.e(2718),a.e(7013),a.e(7067),a.e(7925)]).then(a.bind(a,83508))).default,DimensionFeatureLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(2889),a.e(4676),a.e(4674),a.e(2718),a.e(3376)]).then(a.bind(a,25077))).default,DimensionLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(6619)]).then(a.bind(a,71493))).default,ElevationLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(9953),a.e(8732),a.e(3885)]).then(a.bind(a,38732))).default,FeatureLayer:async()=>(await Promise.all([a.e(5620),a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(9953),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(1214),a.e(5051),a.e(2889),a.e(4473),a.e(4676),a.e(1017),a.e(9789),a.e(4674),a.e(2718),a.e(3781),a.e(3075)]).then(a.bind(a,53781))).default,GaussianSplatLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(765),a.e(6475)]).then(a.bind(a,36475))).default,GeoJSONLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(9953),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(1214),a.e(5051),a.e(2889),a.e(4473),a.e(4676),a.e(1017),a.e(903)]).then(a.bind(a,15481))).default,GeoRSSLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(6554),a.e(2363)]).then(a.bind(a,63201))).default,GroupLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(9866),a.e(6569)]).then(a.bind(a,85989))).default,ImageryLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(9953),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(893),a.e(5130),a.e(3690),a.e(7772),a.e(8768)]).then(a.bind(a,87772))).default,ImageryTileLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(9953),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(5130),a.e(373),a.e(3690),a.e(9235),a.e(3500),a.e(1003),a.e(2806),a.e(7870)]).then(a.bind(a,90124))).default,IntegratedMesh3DTilesLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(9953),a.e(765),a.e(8325),a.e(9544)]).then(a.bind(a,61528))).default,IntegratedMeshLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(9953),a.e(765),a.e(1427),a.e(8325),a.e(7464)]).then(a.bind(a,74660))).default,KMLLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(1214),a.e(5051),a.e(4473),a.e(7339)]).then(a.bind(a,162))).default,KnowledgeGraphLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(9953),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(1214),a.e(5051),a.e(2889),a.e(4473),a.e(4676),a.e(1017),a.e(9789),a.e(9696),a.e(359),a.e(6390),a.e(3902),a.e(4720),a.e(4934),a.e(8692)]).then(a.bind(a,28692))).default,LineOfSightLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(3730),a.e(9695)]).then(a.bind(a,49695))).default,LinkChartLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(9953),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(1214),a.e(5051),a.e(2889),a.e(4473),a.e(4676),a.e(1017),a.e(9789),a.e(9696),a.e(359),a.e(6390),a.e(3902),a.e(4720),a.e(4934),a.e(3309)]).then(a.bind(a,93309))).default,MapImageLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(1214),a.e(5051),a.e(2889),a.e(4473),a.e(4676),a.e(4674),a.e(893),a.e(8470),a.e(1474)]).then(a.bind(a,7656))).default,MapNotesLayer:async()=>(await Promise.all([a.e(5620),a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(9953),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(1214),a.e(5051),a.e(2889),a.e(4473),a.e(4676),a.e(1017),a.e(9789),a.e(4674),a.e(2718),a.e(3781),a.e(4720),a.e(2469)]).then(a.bind(a,96299))).default,MediaLayer:async()=>(await Promise.all([a.e(5620),a.e(9917),a.e(8278),a.e(7865),a.e(6963),a.e(182)]).then(a.bind(a,90182))).default,OGCFeatureLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(1214),a.e(5051),a.e(2889),a.e(4473),a.e(4676),a.e(1017),a.e(9918),a.e(5977)]).then(a.bind(a,65977))).default,OpenStreetMapLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(6554),a.e(919),a.e(349)]).then(a.bind(a,40349))).default,OrientedImageryLayer:async()=>(await Promise.all([a.e(5620),a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(9953),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(1214),a.e(5051),a.e(2889),a.e(4473),a.e(4676),a.e(1017),a.e(9789),a.e(4674),a.e(2718),a.e(3781),a.e(6854)]).then(a.bind(a,16852))).default,ParquetLayer:async()=>(await Promise.all([a.e(8278),a.e(7865),a.e(2292),a.e(9953),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(1214),a.e(5051),a.e(2889),a.e(4473),a.e(4676),a.e(1017),a.e(3819),a.e(7320),a.e(8419)]).then(a.bind(a,99680))).default,PointCloudLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(2869),a.e(7984),a.e(7515)]).then(a.bind(a,77885))).default,RouteLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(564),a.e(2869),a.e(3910),a.e(1214),a.e(5051),a.e(4473),a.e(1099)]).then(a.bind(a,39622))).default,SceneLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(2292),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(1214),a.e(5051),a.e(2889),a.e(4473),a.e(4676),a.e(7005),a.e(9918),a.e(1427),a.e(2754),a.e(1086)]).then(a.bind(a,2e4))).default,StreamLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(1214),a.e(5051),a.e(2889),a.e(4473),a.e(4676),a.e(1017),a.e(8593)]).then(a.bind(a,79457))).default,SubtypeGroupLayer:async()=>(await Promise.all([a.e(5620),a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(2889),a.e(4676),a.e(9789),a.e(4674),a.e(2718),a.e(4451)]).then(a.bind(a,97483))).default,TileLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(1214),a.e(5051),a.e(2889),a.e(4473),a.e(4676),a.e(4674),a.e(893),a.e(8470),a.e(6200)]).then(a.bind(a,71756))).default,UnknownLayer:async()=>(await Promise.all([a.e(9917),a.e(3928)]).then(a.bind(a,146))).default,UnsupportedLayer:async()=>(await Promise.all([a.e(9917),a.e(2819)]).then(a.bind(a,45165))).default,VectorTileLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(9953),a.e(6554),a.e(7886),a.e(7821)]).then(a.bind(a,50638))).default,VideoLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(3910),a.e(4674),a.e(6963),a.e(449)]).then(a.bind(a,86875))).default,ViewshedLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(3730),a.e(6650)]).then(a.bind(a,96650))).default,VoxelLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(2869),a.e(4443)]).then(a.bind(a,21005))).default,WCSLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(9953),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(5130),a.e(373),a.e(3690),a.e(9235),a.e(3500),a.e(2806),a.e(2061)]).then(a.bind(a,20521))).default,WFSLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(9953),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(1214),a.e(5051),a.e(2889),a.e(4473),a.e(4676),a.e(1017),a.e(5411)]).then(a.bind(a,21901))).default,WMSLayer:async()=>(await Promise.all([a.e(5620),a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(6554),a.e(2869),a.e(3910),a.e(417)]).then(a.bind(a,51904))).default,WMTSLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(6554),a.e(919),a.e(309)]).then(a.bind(a,20309))).default,WebTileLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(6554),a.e(919)]).then(a.bind(a,47314))).default};a.d(t,["U",0,r])},66964(e,t,a){a.d(t,{Ju:()=>w,K8:()=>b,XH:()=>L,Y5:()=>m,_r:()=>l,bO:()=>c,l:()=>v,nu:()=>P,pJ:()=>u,rc:()=>y});var r=a(60694),n=a(92009),s=a(23154),i=a(77548);function l(e,t){const{id:a,name:r}=e,n={id:a,name:r};return o(n,e,t),n}function o(e,t,a){const r=(0,s.Aq)(t.type,a);r&&(e.layerType=r)}async function c(e,t,a){let r,n;if(function(e){return!!e&&Array.isArray(e.layers)&&Array.isArray(e.tables)}(e)&&f(e))n=e;else{const s=await a.fetchServiceMetadata(t,{customParameters:u(e)?.customParameters});r=(0,i.G$)(),n=h(e,s),d(n,s)}return p(n),{data:n,preferredHost:r}}function u(e){if(!e)return null;const{layers:t,tables:a}=e;return t?.[0]??a?.[0]??null}function y(e,t){return null==t?null:[...e.layers??[],...e.tables??[]].find(e=>e.id===t)}function f(e){return[...e.layers??[],...e.tables??[]].every(e=>!!e.layerType)}function h(e,t){return{...e,layers:e?.layers??t.layers?.map(e=>l(e))??[],tables:e?.tables??t.tables?.map(e=>l(e,!0))??[]}}function d(e,t){const a=e.layers??[],r=e.tables??[],n=[...t.layers??[],...t.tables??[]];for(const e of[...a,...r]){const{id:t,layerType:a}=e;if(a)continue;const s=n.find(({id:e})=>e===t);s&&o(e,s,r.includes(e))}}function p(e){e.layers=e.layers?.filter(g),e.tables=e.tables?.filter(g)}async function m(e,t,a){if(e?.layers?.length||e?.tables?.length){if(!f(e)){const n=(0,r.qg)(t)?.url.path;if(!n)return;d(e,await a.fetchServiceMetadata(n,{customParameters:u(e)?.customParameters}))}p(e)}}function w(e,t){return[...e.layers??[],...e.tables??[]].filter(({layerType:e})=>e?t.includes(e):t.includes("ArcGISFeatureLayer"))}function L(e){return(e?.layers?.length??0)+(e?.tables?.length??0)}const S=new Set(["ArcGISAnnotationLayer","ArcGISDimensionLayer","ArcGISFeatureLayer","CatalogLayer","OrientedImageryLayer","SubtypeGroupLayer","SubtypeGroupTable","Table"]);function g(e){return!!e.layerType&&S.has(e.layerType)}function v(e){switch(e){case"annotation-feature":return["ArcGISAnnotationLayer"];case"catalog":return["CatalogLayer"];case"dimension-feature":return["ArcGISDimensionLayer"];case"feature":return["ArcGISFeatureLayer","Table"];case"oriented-imagery":return["OrientedImageryLayer"];case"subtype-group":return["SubtypeGroupLayer","SubtypeGroupTable"]}return null}function b(e){switch(e){case"ArcGISAnnotationLayer":return"AnnotationFeatureLayer";case"ArcGISDimensionLayer":return"DimensionFeatureLayer";case"ArcGISFeatureLayer":case"Table":return"FeatureLayer";case"CatalogLayer":return"CatalogLayer";case"OrientedImageryLayer":return"OrientedImageryLayer";case"SubtypeGroupLayer":case"SubtypeGroupTable":return"SubtypeGroupLayer"}return null}async function P(e,t,a){if(!e?.url)return t??{};if(t??={},!t.layers){const r=await a.fetchServiceMetadata(e.url);t.layers=r.layers?.map(e=>l(e))}const{serverUrl:r,portalItem:s}=await(0,n.L)(e.url,{sceneLayerItem:e,customParameters:u(t)?.customParameters}).catch(()=>({serverUrl:null,portalItem:null}));if(null==r)return t.tables=[],t;if(!t.tables&&s){const e=await s.fetchData().catch(()=>null);if(e?.tables)t.tables=e.tables.map(({id:e,name:t})=>({id:e,name:t}));else{const n=await a.fetchServiceMetadata(r,{customParameters:u(e)?.customParameters}).catch(()=>null);t.tables=n?.tables?.map(e=>l(e,!0))}}if(t.tables)for(const e of t.tables)e.url=`${r}/${e.id}`;return t}},10407(e,t,a){a.d(t,{It:()=>h,LG:()=>i,OM:()=>c,Sm:()=>u,Y:()=>l,bK:()=>o,sQ:()=>y});var r=a(99917),n=a(16930),s=a(28735);function i(e,t){if(!l(e,t)){const a=e.typeKeywords;a?a.push(t):e.typeKeywords=[t]}}function l(e,t){return!!e.typeKeywords?.includes(t)}function o(e){return l(e,f.HOSTED_SERVICE)}function c(e,t){const a=e.typeKeywords;if(a){const e=a.indexOf(t);e>-1&&a.splice(e,1)}}function u(e,t,a){a?i(e,t):c(e,t)}async function y(e){const t=e.clone().normalize();let a;if(t.length>1)for(const e of t)a?e.width>a.width&&(a=e):a=e;else a=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,s.ci)(e);const a=n.A.WGS84;return await(0,r.initializeProjection)(t,a),(0,r.project)(e,a)}(a)}const f={CHARTS:"Charts",CATALOG_LAYER:"CatalogLayer",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",PARCEL_FABRIC:"ParcelFabric",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery",UTILITY_NETWORK:"UtilityNetwork"};function h(e){const{portal:t,isOrgItem:a,itemControl:r}=e,n=t.user?.privileges;let s=!n||n.includes("features:user:edit"),i=!!a&&!!n?.includes("features:user:fullEdit");const l="update"===r||"admin"===r;return l?i=s=!0:i&&(s=!0),{features:{edit:s,fullEdit:i},content:{updateItem:l}}}a.d(t,["mm",0,f])},45613(e,t,a){a.d(t,{fromItem:()=>f,n:()=>h});var r=a(49186),n=a(92009),s=a(23154),i=a(22429),l=a(2976),o=a(77548),c=a(80812),u=a(66964),y=a(10407);async function f(e){let{portalItem:t}=e;!t||t instanceof c.default||(t=new c.default(t));const a=await async function(e){await e.load();const t=new i.v;return async function(e){const t=e.className,a=l.U[t];return{constructor:await a(),properties:e.properties}}(await h(e,t))}(t);return new(0,a.constructor)({portalItem:t,...a.properties})}async function h(e,t){switch(e.type){case"3DTiles Service":return e.typeKeywords.includes("3DObject")?{className:"UnsupportedLayer"}:e.typeKeywords.includes("GaussianSplat")?{className:"GaussianSplatLayer"}:{className:"IntegratedMesh3DTilesLayer"};case"CSV":return{className:"CSVLayer"};case"Feature Collection":return async function(e){await e.load();const t=(0,y.Y)(e,"Map Notes"),a=(0,y.Y)(e,"Markup");if(t||a)return{className:"MapNotesLayer"};if((0,y.Y)(e,"Route Layer"))return{className:"RouteLayer"};const r=await e.fetchData();return 1===(0,u.XH)(r)?{className:"FeatureLayer"}:{className:"GroupLayer"}}(e);case"Feature Service":return async function(e,t){const a=await d(e,t);if("object"==typeof a){const{sourceJSON:e,className:t}=a,r={sourceJSON:e};return null!=a.id&&(r.layerId=a.id),{className:t||"FeatureLayer",properties:r}}return{className:"GroupLayer"}}(e,t);case"Feed":case"Stream Service":return{className:"StreamLayer"};case"GeoJson":return{className:"GeoJSONLayer"};case"Group Layer":return{className:"GroupLayer"};case"Image Service":return async function(e,t){await e.load();const a=e.typeKeywords?.map(e=>e.toLowerCase())??[];if(a.includes("elevation 3d layer"))return{className:"ElevationLayer"};if(a.includes("tiled imagery"))return{className:"ImageryTileLayer"};const r=await t.fetchItemData(e),n=r?.layerType;if("ArcGISTiledImageServiceLayer"===n)return{className:"ImageryTileLayer"};if("ArcGISImageServiceLayer"===n)return{className:"ImageryLayer"};const s=await t.fetchServiceMetadata(e.url,{customParameters:await t.fetchCustomParameters(e)}),i=s.cacheType?.toLowerCase(),l=s.capabilities?.toLowerCase().includes("tilesonly"),o=s.tileInfo?.format?.toLowerCase()??"",c=null==i&&["jpg","jpeg","png","png8","png24","png32","mixed"].includes(o);return"map"===i||c||l?{className:"ImageryTileLayer"}:{className:"ImageryLayer"}}(e,t);case"KML":return{className:"KMLLayer"};case"Knowledge Graph Layer":return{className:"KnowledgeGraphLayer"};case"Map Service":return async function(e,t){return await async function(e,t){const{tileInfo:a}=await t.fetchServiceMetadata(e.url,{customParameters:await t.fetchCustomParameters(e)});return a}(e,t)?{className:"TileLayer"}:{className:"MapImageLayer"}}(e,t);case"Media Layer":return{className:"MediaLayer"};case"Scene Service":return async function(e,t){const a=await d(e,t,async()=>{try{if(!e.url)return[];const{serverUrl:a}=await(0,n.L)(e.url,{sceneLayerItem:e}),r=await t.fetchServiceMetadata(a);return r?.tables??[]}catch{return[]}});if("object"==typeof a){const r={};let n;if(null!=a.id?(r.layerId=a.id,n=`${e.url}/layers/${a.id}`):n=e.url,e.typeKeywords?.length)for(const t of Object.keys(o.XX))if(e.typeKeywords.includes(t))return{className:o.XX[t]};const s=await t.fetchServiceMetadata(n,{customParameters:await t.fetchCustomParameters(e,e=>(0,u.pJ)(e)?.customParameters)});return{className:o.XX[s?.layerType]||"SceneLayer",properties:r}}if(!1===a){const a=await t.fetchServiceMetadata(e.url);if("Voxel"===a?.layerType)return{className:"VoxelLayer"}}return{className:"GroupLayer"}}(e,t);case"Video Service":return async function(e,t){return"object"==typeof await d(e,t)?{className:"VideoLayer"}:{className:"GroupLayer"}}(e,t);case"Vector Tile Service":return{className:"VectorTileLayer"};case"WCS":return{className:"WCSLayer"};case"WFS":return{className:"WFSLayer"};case"WMS":return{className:"WMSLayer"};case"WMTS":return{className:"WMTSLayer"};default:throw new r.A("portal:unknown-item-type","Unknown item type '${type}'",{type:e.type})}}async function d(e,t,a){const{url:n,type:i}=e,l="Feature Service"===i;if(!n)return{};if(/\/\d+$/.test(n)){if(l){const a=await t.fetchServiceMetadata(n,{customParameters:await t.fetchCustomParameters(e,e=>(0,u.pJ)(e)?.customParameters)});(0,o.Gh)(e,(0,o.G$)());const{id:i,type:l}=a,c=(0,s.Jo)(l);if(!c)throw new r.A("from-portal-item:unsupported",`'${n}' has unsupported type: '${l}'`);return{id:i,className:c,sourceJSON:a}}return{}}if("Video Service"===i){const e=await t.fetchServiceMetadata(n);return!((e.layers?.length??0)>1)&&{}}await e.load();let c=await t.fetchItemData(e);if(l){const{data:a,preferredHost:s}=await(0,u.bO)(c,n,t);if(0===(0,u.XH)(a))throw new r.A("from-portal-item:no-data",`The feature service '${n}' does not have any supported layers or tables`);(0,o.Gh)(e,s);const i=p(a);if("object"==typeof i){const e=(0,u.rc)(a,i.id);return{id:i.id,className:(0,u.K8)(e?.layerType)}}return i}if("Scene Service"===i&&(c=await(0,u.nu)(e,c,t)),(0,u.XH)(c)>0)return p(c);const y=await t.fetchServiceMetadata(n);return a&&(y.tables=await a()),p(y)}function p(e){return 1===(0,u.XH)(e)&&{id:(0,u.pJ)(e)?.id}}},7861(e,t,a){a.d(t,{L:()=>n});var r=a(11254);async function n(e,t){return(await(0,r.A)(e,{responseType:"json",query:{f:"json",...t?.customParameters,token:t?.apiKey}})).data}}}]);