@arcgis/core 5.1.0-next.38 → 5.1.0-next.39

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 (219) hide show
  1. package/applications/WebEditor/sketchUtils.js +1 -1
  2. package/arcade/batchExec.js +1 -1
  3. package/assets/esri/core/workers/RemoteClient.js +1 -1
  4. package/assets/esri/core/workers/chunks/{11058e660139c427c3e7.js → 01777e91cd4e0bf04fd0.js} +1 -1
  5. package/assets/esri/core/workers/chunks/{666db81085bc97831b18.js → 02a0a58ca5916db1db19.js} +1 -1
  6. package/assets/esri/core/workers/chunks/{3d18b8c1c759c7240721.js → 03c8453ae72a4e190252.js} +1 -1
  7. package/assets/esri/core/workers/chunks/{828998d33a48be161782.js → 04981ae9d7728208ffce.js} +1 -1
  8. package/assets/esri/core/workers/chunks/{b2cf19a28aa5c32a99e3.js → 04b04548d4eb0941a01e.js} +1 -1
  9. package/assets/esri/core/workers/chunks/{64870f555fefa85a5c59.js → 06003996a378c45bc605.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{ce063df750018024c9ed.js → 0601c316da0256a60538.js} +1 -1
  11. package/assets/esri/core/workers/chunks/{93bf908f596140ea4c61.js → 0d321b3496adc640d96a.js} +1 -1
  12. package/assets/esri/core/workers/chunks/0de66f13e84830a654fb.js +1 -0
  13. package/assets/esri/core/workers/chunks/{1ff40e6057916e8482b3.js → 0eb57ef4a1b387c951d6.js} +1 -1
  14. package/assets/esri/core/workers/chunks/{0554f310066937098099.js → 10941b50f5933d168df6.js} +1 -1
  15. package/assets/esri/core/workers/chunks/{22aeab5c363645c04806.js → 13a009229c96ecb7b04f.js} +1 -1
  16. package/assets/esri/core/workers/chunks/13d55e3c9aea04116eaa.js +1 -0
  17. package/assets/esri/core/workers/chunks/{3b86e8eb553122d3b68d.js → 167e4ff7cbc88b42db71.js} +1 -1
  18. package/assets/esri/core/workers/chunks/16a767cc5f3e2e0e49c2.js +1 -0
  19. package/assets/esri/core/workers/chunks/19cbaeda71486df01d0f.js +1 -0
  20. package/assets/esri/core/workers/chunks/{96132a37bc08c7fa8f2e.js → 1a6a77902dd8c84e059a.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{00947268b6de12329146.js → 1f5d9e5d4ddc623fd511.js} +1 -1
  22. package/assets/esri/core/workers/chunks/{a2d045217a42ecc36308.js → 236b4ab3da0bc8f788a2.js} +1 -1
  23. package/assets/esri/core/workers/chunks/{0a66a2b4aaab0774c34f.js → 23af269e88f9ac101ffb.js} +1 -1
  24. package/assets/esri/core/workers/chunks/{da60a6df2f7858a2910e.js → 244dd7a948ca8a7dc6ef.js} +1 -1
  25. package/assets/esri/core/workers/chunks/25946077568ab14c7bfc.js +1 -0
  26. package/assets/esri/core/workers/chunks/{bb7e0334f438daa665da.js → 26cafd20c8d03c274389.js} +1 -1
  27. package/assets/esri/core/workers/chunks/284ce99af7bdd73dc7e9.js +1 -0
  28. package/assets/esri/core/workers/chunks/{1d0153c7d65bd9ea7d39.js → 2b386374330d96387aec.js} +1 -1
  29. package/assets/esri/core/workers/chunks/2c12b1488819c038c6b1.js +1 -0
  30. package/assets/esri/core/workers/chunks/2d2c10c31cc1460dd96a.js +1 -0
  31. package/assets/esri/core/workers/chunks/{8bd24534ed185afcb124.js → 30cdb2d1d9f018f1642d.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{5691c1624190abeaebea.js → 34484afe767d60f85982.js} +1 -1
  33. package/assets/esri/core/workers/chunks/35d115bde474c380c791.js +1 -0
  34. package/assets/esri/core/workers/chunks/{6a0c371ec3acd7529fe6.js → 36a0e48113ab59a4f21d.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{cc3939983cf6f78f7243.js → 38c28189f273636e4017.js} +1 -1
  36. package/assets/esri/core/workers/chunks/{e00000468fb8ec2b3d43.js → 392941013107bbd96503.js} +1 -1
  37. package/assets/esri/core/workers/chunks/{43f60f41d353d3fc7c4b.js → 399fcea09dfb1ad6deaa.js} +1 -1
  38. package/assets/esri/core/workers/chunks/39d71e83261bff46f6bf.js +1 -0
  39. package/assets/esri/core/workers/chunks/{a52a8254577840a23aba.js → 3d4bb59ab2f644f4d675.js} +1 -1
  40. package/assets/esri/core/workers/chunks/3e2953ea62817e75d840.js +1 -0
  41. package/assets/esri/core/workers/chunks/{582d45a41e29005f6c63.js → 4005d37d03c834da7629.js} +1 -1
  42. package/assets/esri/core/workers/chunks/{285f3b07de852bfc1604.js → 427183ea93e759943a78.js} +1 -1
  43. package/assets/esri/core/workers/chunks/{4ceba469398ef55de8ea.js → 42b556d56013350c9d80.js} +1 -1
  44. package/assets/esri/core/workers/chunks/{446bc8461403ed1ac7b2.js → 4577df99c92c7ec0f9de.js} +1 -1
  45. package/assets/esri/core/workers/chunks/{7a2dd3d85d31dce29d94.js → 49d6249e98f023344e0a.js} +1 -1
  46. package/assets/esri/core/workers/chunks/{6f3f7f785241edacdb8b.js → 4b5737021a149aa786af.js} +1 -1
  47. package/assets/esri/core/workers/chunks/{210ef3f1cc6ef8a831bf.js → 4b79ebfb3328f9483147.js} +1 -1
  48. package/assets/esri/core/workers/chunks/{305b2a8dc6438c5fd4aa.js → 4d378d4e021a33b0047e.js} +1 -1
  49. package/assets/esri/core/workers/chunks/{114aecdbd2bd92b24de2.js → 52175ff9e8c2c136f90a.js} +1 -1
  50. package/assets/esri/core/workers/chunks/{dfee98e7d1b206f33ba9.js → 54db91c0a3bd1946e026.js} +1 -1
  51. package/assets/esri/core/workers/chunks/{c79e8003812b789724af.js → 5b2fe488a461bc433f59.js} +1 -1
  52. package/assets/esri/core/workers/chunks/{1fa2bf0d6740092ec619.js → 5b70295da76d9227f64b.js} +1 -1
  53. package/assets/esri/core/workers/chunks/5e59ff96aecdf2adcb3b.js +1 -0
  54. package/assets/esri/core/workers/chunks/{cb482e20e10ab0f63617.js → 5e9595eb6ae6a40e7265.js} +1 -1
  55. package/assets/esri/core/workers/chunks/{de9fea9b6f2269ee0703.js → 604f9e7228a66b6cf2f9.js} +1 -1
  56. package/assets/esri/core/workers/chunks/{d0d836502321e7a80e61.js → 60d0f8a949b130baff81.js} +1 -1
  57. package/assets/esri/core/workers/chunks/{b2303b2771fcd75f298b.js → 6258ae3d991ce652d97f.js} +1 -1
  58. package/assets/esri/core/workers/chunks/{e0d6292aaa3f8a796de3.js → 65865c25487d23dd2e31.js} +1 -1
  59. package/assets/esri/core/workers/chunks/{d4b97ca16d79809ed6f2.js → 65ea5028eb12457a3aeb.js} +1 -1
  60. package/assets/esri/core/workers/chunks/{cf100c80b75ba74b479c.js → 66a4d764937918a2779f.js} +1 -1
  61. package/assets/esri/core/workers/chunks/6ee956d5a92ca905f53f.js +1 -0
  62. package/assets/esri/core/workers/chunks/{14e05d37e10ebba8cf10.js → 6f58ec80abebb7bfbbb0.js} +1 -1
  63. package/assets/esri/core/workers/chunks/{5698098c3691b3b49283.js → 73d7337ac9efdbad14a4.js} +1 -1
  64. package/assets/esri/core/workers/chunks/{568d32ceee1409809e5a.js → 749c368f5cc2366716f1.js} +1 -1
  65. package/assets/esri/core/workers/chunks/{586bc903e2c285649bf2.js → 77769663cd712822d33e.js} +1 -1
  66. package/assets/esri/core/workers/chunks/{620965d2e1a9ccf81d43.js → 77f6659e400064d38130.js} +1 -1
  67. package/assets/esri/core/workers/chunks/{b8f624f8c975728d75e2.js → 78472f69053061a18967.js} +1 -1
  68. package/assets/esri/core/workers/chunks/{0e7d3f3479fcb366cc6f.js → 80a1ccabd4257cc61e0d.js} +1 -1
  69. package/assets/esri/core/workers/chunks/{0d156e14fc34d0600fd5.js → 81b830f0d620587966ca.js} +1 -1
  70. package/assets/esri/core/workers/chunks/{9cd548ea00b641d8e65d.js → 8333561a938bcdf6c2e6.js} +1 -1
  71. package/assets/esri/core/workers/chunks/{283ce37403c5e7a76e95.js → 8677865189081e0b83bc.js} +1 -1
  72. package/assets/esri/core/workers/chunks/{087403b53f15eb4d375c.js → 86f70bd786d6d57fde69.js} +1 -1
  73. package/assets/esri/core/workers/chunks/88c6cc90606409b5c884.js +1 -0
  74. package/assets/esri/core/workers/chunks/{8e10e4c25869af9da5ba.js → 8967a02f394a63f11030.js} +1 -1
  75. package/assets/esri/core/workers/chunks/{d2fa8bd3f4cd3cf6b436.js → 89dbea6f436d45a3b185.js} +1 -1
  76. package/assets/esri/core/workers/chunks/{8eed5b6cac937099102c.js → 8d5bc17557a31ed79ed8.js} +1 -1
  77. package/assets/esri/core/workers/chunks/{2d6165796af522858e56.js → 8e18ac7b22d8dca1e1e2.js} +1 -1
  78. package/assets/esri/core/workers/chunks/{ae72c530d52a6d4461be.js → 8e3cb1c584951c3d1eb7.js} +1 -1
  79. package/assets/esri/core/workers/chunks/{67f95c57c1679935570b.js → 92f6d637f4786ba0d3e3.js} +1 -1
  80. package/assets/esri/core/workers/chunks/93846f8b77fc802069a7.js +1 -0
  81. package/assets/esri/core/workers/chunks/{34f2e9d7466abc0919e7.js → 9639b1dd27ccc17ee21e.js} +1 -1
  82. package/assets/esri/core/workers/chunks/{7ebd836b98d14c7d3ecf.js → 969f58a2de4ebe63619d.js} +1 -1
  83. package/assets/esri/core/workers/chunks/{9a3e5053e95db36f26dc.js → 9a95c28d4a3b3b4b2c50.js} +1 -1
  84. package/assets/esri/core/workers/chunks/{c3e4f8664988e50bda55.js → 9b365a6242b0287f8727.js} +1 -1
  85. package/assets/esri/core/workers/chunks/{e021b2f0e15aee5bf3ad.js → 9b80569819cd1c72a9ff.js} +1 -1
  86. package/assets/esri/core/workers/chunks/{3dcb4ee8b862689a141b.js → 9bd68abc6b5b07b2add3.js} +1 -1
  87. package/assets/esri/core/workers/chunks/{952ff668d202e80b43b0.js → a029db48079af4b5cccd.js} +1 -1
  88. package/assets/esri/core/workers/chunks/{9cc1b44c5a325a840307.js → a1f36240a31057f998da.js} +1 -1
  89. package/assets/esri/core/workers/chunks/{ff8de370abf661768380.js → a84d67c1a1008bca2075.js} +1 -1
  90. package/assets/esri/core/workers/chunks/{c6112dcd6b36e256d7b5.js → a90883ff02c0cc6450c2.js} +1 -1
  91. package/assets/esri/core/workers/chunks/{0d196cf72cd8bef8d91d.js → abcb39ad1e2d54710766.js} +1 -1
  92. package/assets/esri/core/workers/chunks/{80f0810527743833b4b7.js → af804beb43d4d10c54d9.js} +1 -1
  93. package/assets/esri/core/workers/chunks/{8c2e5b116bac21e7d577.js → b056b4c79bcd542dd1d2.js} +1 -1
  94. package/assets/esri/core/workers/chunks/{3b9de873f87f0feeb20b.js → b1ac09d8fa340d194aa2.js} +1 -1
  95. package/assets/esri/core/workers/chunks/{2f0e850ebea0ffd2708f.js → b1c5f69bd1400e66c635.js} +1 -1
  96. package/assets/esri/core/workers/chunks/{414a802b6365688d31cb.js → b6e63d8ce3c9ac9762f4.js} +1 -1
  97. package/assets/esri/core/workers/chunks/{d7229019876c0e4ff545.js → b86cb84c03b76e824213.js} +1 -1
  98. package/assets/esri/core/workers/chunks/bf9b83e020ff08c51ac1.js +1 -0
  99. package/assets/esri/core/workers/chunks/{623bfacf4b9c9a5387cc.js → c2f3fc1b34a6782b431f.js} +1 -1
  100. package/assets/esri/core/workers/chunks/c4f64195e44986644993.js +1 -0
  101. package/assets/esri/core/workers/chunks/{b7a3a7f7fb747f9689d7.js → c7799ba861ac5af08e6a.js} +1 -1
  102. package/assets/esri/core/workers/chunks/{9c6e96b1c2b0418a4f1c.js → ca1b0cb14ea9ae1bf2a3.js} +1 -1
  103. package/assets/esri/core/workers/chunks/cce2d2c60d136e1bac75.js +1 -0
  104. package/assets/esri/core/workers/chunks/{b98366d8a5bc6cc2b219.js → cda2e445eb2ac269abdf.js} +1 -1
  105. package/assets/esri/core/workers/chunks/{448620052233e51b496c.js → cf74d1605ad2f21699e7.js} +1 -1
  106. package/assets/esri/core/workers/chunks/{f4301ea9a6cb3bcef906.js → d0983cc19d19c19c3478.js} +1 -1
  107. package/assets/esri/core/workers/chunks/{ee582bbe7365b678ec54.js → d50e6681ecb9612e4528.js} +1 -1
  108. package/assets/esri/core/workers/chunks/{68abe4e70ea48e978642.js → d51c41c1944df0cbab3e.js} +1 -1
  109. package/assets/esri/core/workers/chunks/{b2f497339493926d4c9e.js → d53b31c9056f82831bc0.js} +1 -1
  110. package/assets/esri/core/workers/chunks/{ffc87a038712a4c9d2cb.js → d6eddb94f5f2e9759bd0.js} +1 -1
  111. package/assets/esri/core/workers/chunks/{6cdda5aa35fa12ea9345.js → d7439d357f68160844cb.js} +1 -1
  112. package/assets/esri/core/workers/chunks/{6c853fd89f0e9f102c6e.js → dba479176db0a23c8034.js} +1 -1
  113. package/assets/esri/core/workers/chunks/{6792e981a3c73063a3e6.js → dd26e3a29161ea411e41.js} +1 -1
  114. package/assets/esri/core/workers/chunks/{0337138d3702a1a52ce0.js → de79645e559a2d1ffa67.js} +1 -1
  115. package/assets/esri/core/workers/chunks/{2ddfd406b9044390e9f7.js → e47dd011c06ab42c18e0.js} +1 -1
  116. package/assets/esri/core/workers/chunks/{d0da3a44f33f4d8e682b.js → e68d7aec0f095b6d743d.js} +1 -1
  117. package/assets/esri/core/workers/chunks/{ca64867bc322a354be8e.js → e907acaec4c62adac2f2.js} +1 -1
  118. package/assets/esri/core/workers/chunks/{9813f25192ea27084754.js → ea356a5b90ea44b5cbe1.js} +1 -1
  119. package/assets/esri/core/workers/chunks/{d30253b4990a76bfd72b.js → eab74d830c2eaa9d133b.js} +1 -1
  120. package/assets/esri/core/workers/chunks/{eef102e13fd8878eeb96.js → eb36417edc11fa80e312.js} +1 -1
  121. package/assets/esri/core/workers/chunks/{f5dbda08d7fd4bed1c62.js → eca45cd479f7fd28ca6e.js} +1 -1
  122. package/assets/esri/core/workers/chunks/{56f64df68bb11c0c74d2.js → f209a7076d67cbf4d205.js} +1 -1
  123. package/assets/esri/core/workers/chunks/{b81780e5e7cd9a1a010a.js → f36a234ef35faf8ca04d.js} +1 -1
  124. package/assets/esri/core/workers/chunks/{9ae9e9a65cb08b12caeb.js → f45e4eb89db31d7a7640.js} +3 -3
  125. package/assets/esri/core/workers/chunks/{45d57e561fc993bc75ed.js → f9cde38cb56c547e87e5.js} +1 -1
  126. package/assets/esri/core/workers/chunks/{0efe90bd43ab29dab8ae.js → f9da5c81535eaffc8b9c.js} +1 -1
  127. package/assets/esri/core/workers/chunks/{c8ae8d1b456ace0b383b.js → fce8d4ff920baf8856e6.js} +1 -1
  128. package/assets/esri/core/workers/chunks/{5fa5a2fb69f84e9092ba.js → fd629a3ab558adf52617.js} +1 -1
  129. package/assets/esri/core/workers/chunks/{4bfc6f8c2d13ca4d2082.js → fdf4c1f202cfddf0f226.js} +1 -1
  130. package/assets/esri/core/workers/chunks/{5b12865ac53d984d8149.js → fe7dec83e40014c55a6b.js} +1 -1
  131. package/assets/esri/core/workers/chunks/{5f3b25b30acd7a07f5c0.js → ff31936236dd9b1acb24.js} +1 -1
  132. package/assets/esri/core/workers/chunks/{122ff8d0d428f31fc5d1.js → ff8ec6369c8a1bee9bb4.js} +1 -1
  133. package/chunks/GaussianSplatComposition.glsl.js +21 -3
  134. package/chunks/OITDim.glsl.js +3 -4
  135. package/config.js +1 -1
  136. package/core/Promise.js +1 -1
  137. package/core/QueueProcessor.js +1 -1
  138. package/core/promiseUtils.js +1 -1
  139. package/core/scheduling.js +1 -1
  140. package/core/workers/Connection.js +1 -1
  141. package/editing/sharedTemplates/SharedTemplateProvider.js +1 -1
  142. package/identity/IdentityManagerBase.js +1 -1
  143. package/intl/messages.js +1 -1
  144. package/kernel.js +1 -1
  145. package/layers/graphics/data/projectionSupport.js +1 -1
  146. package/layers/graphics/editingSupport.js +1 -1
  147. package/layers/graphics/sources/connections/GeoEventConnection.js +1 -1
  148. package/layers/graphics/sources/connections/WebSocketConnection.js +1 -1
  149. package/layers/mixins/EditBusLayer.js +1 -1
  150. package/layers/raster/functions/rasterProjectionHelper.js +1 -1
  151. package/package.json +1 -1
  152. package/support/revision.js +1 -1
  153. package/views/2d/engine/Bitmap.js +1 -1
  154. package/views/2d/engine/transitions/FadeTransition.js +1 -1
  155. package/views/2d/engine/webgl/TextureUploadManager.js +1 -1
  156. package/views/2d/engine/webgl/shaderGraph/techniques/TechniqueDebugContainer.js +1 -1
  157. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  158. package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
  159. package/views/2d/layers/features/FeatureContainer.js +1 -1
  160. package/views/2d/layers/features/FeaturePipelineWorker.js +1 -1
  161. package/views/2d/layers/support/FeatureCommandQueue.js +1 -1
  162. package/views/3d/environment/EnvironmentManager.js +1 -1
  163. package/views/3d/layers/BuildingSceneLayerView3D.js +1 -1
  164. package/views/3d/layers/I3SMeshView3D.js +1 -1
  165. package/views/3d/layers/graphics/Deconflictor.js +1 -1
  166. package/views/3d/layers/graphics/ElevationQuery.js +1 -1
  167. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  168. package/views/3d/layers/i3s/I3SOverrides.js +1 -1
  169. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  170. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  171. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterialRepository.js +1 -1
  172. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
  173. package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
  174. package/views/3d/webgl-engine/core/shaderLibrary/util/EmissionDimming.glsl.js +2 -0
  175. package/views/3d/webgl-engine/effects/transparency/OITDim.glsl.js +1 -1
  176. package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +1 -1
  177. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  178. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  179. package/views/3d/webgl-engine/parts/ScreenshotManager.js +1 -1
  180. package/views/3d/webgl-engine/shaders/GaussianSplatComposition.glsl.js +1 -1
  181. package/views/3d/webgl-engine/shaders/GaussianSplatCompositionTechniqueConfiguration.js +2 -0
  182. package/views/PopupView.js +1 -1
  183. package/views/ViewAnimation.js +1 -1
  184. package/views/analysis/ExclusiveOperationManager.js +1 -1
  185. package/views/interactive/InteractiveToolBase.js +1 -1
  186. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorker.js +1 -1
  187. package/views/support/AnalysisViewManager.js +1 -1
  188. package/views/support/LayerLayerViewInfo.js +1 -1
  189. package/views/support/LayerViewManager.js +1 -1
  190. package/views/support/ScheduledQueueProcessor.js +1 -1
  191. package/views/support/waitForResources.js +1 -1
  192. package/widgets/Editor/EditorViewModel.js +1 -1
  193. package/widgets/Editor/UpdateWorkflow.js +1 -1
  194. package/widgets/Editor/Upload.js +1 -1
  195. package/widgets/Editor/Workflow.js +1 -1
  196. package/widgets/Editor.js +1 -1
  197. package/widgets/FeatureForm/FormExpressionsManager.js +1 -1
  198. package/widgets/FeatureForm.js +1 -1
  199. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  200. package/widgets/FeatureTable.js +1 -1
  201. package/widgets/PanoramicViewer/support/PanoramicMedia.js +1 -1
  202. package/assets/esri/core/workers/chunks/1bf3e787eafec318bd2b.js +0 -1
  203. package/assets/esri/core/workers/chunks/1ee3d44e6d7add0b24cb.js +0 -1
  204. package/assets/esri/core/workers/chunks/34cdcee6d0ea595d7aed.js +0 -1
  205. package/assets/esri/core/workers/chunks/36f91b5c4345a179b8b1.js +0 -1
  206. package/assets/esri/core/workers/chunks/4d7f7b1e7663cf6088d1.js +0 -1
  207. package/assets/esri/core/workers/chunks/6997b4d5bcc9c4755375.js +0 -1
  208. package/assets/esri/core/workers/chunks/75664587bb80f4e187e1.js +0 -1
  209. package/assets/esri/core/workers/chunks/7975abb2162a82c88edb.js +0 -1
  210. package/assets/esri/core/workers/chunks/889835e61ea97f090082.js +0 -1
  211. package/assets/esri/core/workers/chunks/917474f9dd2039b82e9d.js +0 -1
  212. package/assets/esri/core/workers/chunks/bf668010f36179792592.js +0 -1
  213. package/assets/esri/core/workers/chunks/c7f27a84268a9b0d8cdb.js +0 -1
  214. package/assets/esri/core/workers/chunks/cd73d37ea0e66db46e45.js +0 -1
  215. package/assets/esri/core/workers/chunks/d456f06d0c6a5cc02be7.js +0 -1
  216. package/assets/esri/core/workers/chunks/dcef87f7d06c45cd928b.js +0 -1
  217. package/assets/esri/core/workers/chunks/e0344b45af88081fa186.js +0 -1
  218. package/assets/esri/core/workers/chunks/e16f5f089259988e8993.js +0 -1
  219. package/assets/esri/core/workers/chunks/fe21b2d31fbf83224e6b.js +0 -1
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2031],{11006(n,e,t){function r(n,e,t,r,o){l(n,e,t||0,r||n.length-1,o||a)}function l(n,e,t,r,a){for(;r>t;){if(r-t>600){var u=r-t+1,i=e-t+1,s=Math.log(u),c=.5*Math.exp(2*s/3),f=.5*Math.sqrt(s*c*(u-c)/u)*(i-u/2<0?-1:1);l(n,e,Math.max(t,Math.floor(e-i*c/u+f)),Math.min(r,Math.floor(e+(u-i)*c/u+f)),a)}var p=n[e],h=t,d=r;for(o(n,t,e),a(n[r],p)>0&&o(n,t,r);h<d;){for(o(n,h,d),h++,d--;a(n[h],p)<0;)h++;for(;a(n[d],p)>0;)d--}0===a(n[t],p)?o(n,t,d):o(n,++d,r),d<=e&&(t=d+1),e<=d&&(r=d-1)}}function o(n,e,t){var r=n[e];n[e]=n[t],n[t]=r}function a(n,e){return n<e?-1:n>e?1:0}t.d(e,{q:()=>r})},159(n,e,t){t.d(e,{A:()=>s});var r,l=t(5482),o=t(69540),a=t(25482),u=t(91429),i=t(99157);let s=r=class extends((0,o.OU)(a.o)){constructor(n){super(n),this.steps=[]}getInverse(){const n=new r;for(let e=this.steps.length-1;e>=0;e--){const t=this.steps[e];n.steps.push(t.getInverse())}return n}};(0,l.Cg)([(0,u.MZ)({type:[i.A],nonNullable:!0,json:{name:"geoTransforms"}})],s.prototype,"steps",void 0),s=r=(0,l.Cg)([(0,u.$K)("esri.geometry.operators.support.GeographicTransformation")],s)},99157(n,e,t){t.d(e,{A:()=>i});var r,l=t(5482),o=t(69540),a=t(25482),u=t(91429);let i=r=class extends((0,o.OU)(a.o)){constructor(n){super(n),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new r({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,l.Cg)([(0,u.MZ)({json:{name:"transformForward",read:n=>!n,write:(n,e,t)=>{e[t]=!n}}})],i.prototype,"isInverse",void 0),(0,l.Cg)([(0,u.MZ)({json:{write:!0}})],i.prototype,"wkt",void 0),(0,l.Cg)([(0,u.MZ)({json:{write:!0}})],i.prototype,"wkid",void 0),i=r=(0,l.Cg)([(0,u.$K)("esri.geometry.operators.support.GeographicTransformationStep")],i)},9762(n,e,t){t.r(e),t.d(e,{projectBuffer:()=>l});var r=t(49208);function l(n,e,t,l,o,a,u=Math.floor(n.length/3)){const i=(0,r.jd)(e,o);if(null==i)return!1;if(i===r.pO){if(n===l&&t===a)return!0;const e=t+3*u;for(let r=t,o=a;r<e;r++,o++)l[o]=n[r]??0;return!0}const s=t+3*u;for(let e=t,r=a;e<s;e+=3,r+=3)i(n,e,l,r);return!0}},49208(n,e,t){t.d(e,{Tp:()=>f,jd:()=>c,pO:()=>h,w5:()=>s});var r=t(34727),l=t(86211),o=t(73941),a=t(79258),u=t(34403),i=t(21325);const s={2:{5:h,7:null,9:null,10:h,1:j,6:null,8:null,0:null,3:g,11:m,2:h,4:k},5:{5:h,7:null,9:null,10:h,1:j,6:null,8:null,0:null,3:g,11:m,2:h,4:k},7:{5:null,7:h,9:null,10:h,1:null,6:y,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:h,10:h,1:null,6:null,8:R,0:null,3:null,11:null,2:null,4:null},3:{5:d,7:null,9:null,10:d,1:function(n,e,t,r){const l=n[e]/q,o=C-2*Math.atan(Math.exp(-n[e+1]/q)),a=q+(n[e+2]??0),u=Math.cos(o)*a;t[r]=Math.cos(l)*u,t[r+1]=Math.sin(l)*u,t[r+2]=Math.sin(o)*a},6:null,8:null,0:null,3:h,11:function(n,e,t,r){d(n,e,t,r),m(t,r,t,r)},2:d,4:function(n,e,t,r){d(n,e,t,r),k(t,r,t,r)}},4:{5:O,7:null,9:null,10:O,1:function(n,e,t,r){O(n,e,t,r),j(t,r,t,r)},6:null,8:null,0:null,3:function(n,e,t,r){O(n,e,t,r),g(t,r,t,r)},11:function(n,e,t,r){O(n,e,t,r),m(t,r,t,r)},2:O,4:h},1:{5:x,7:null,9:null,10:x,1:h,6:null,8:null,0:null,3:function(n,e,t,r){x(n,e,t,r),g(t,r,t,r)},11:function(n,e,t,r){x(n,e,t,r),m(t,r,t,r)},2:x,4:function(n,e,t,r){x(n,e,t,r),k(t,r,t,r)}},6:{5:null,7:I,9:null,10:I,1:null,6:h,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:A,10:A,1:null,6:null,8:h,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:h,3:null,11:null,2:null,4:null},10:{5:h,7:h,9:h,10:h,1:j,6:y,8:R,0:null,3:g,11:m,2:h,4:k},11:{5:M,7:null,9:null,10:M,1:function(n,e,t,r){M(n,e,t,r),j(t,r,t,r)},6:null,8:null,0:null,3:function(n,e,t,r){M(n,e,t,r),g(t,r,t,r)},11:h,2:M,4:function(n,e,t,r){M(n,e,t,r),k(t,r,t,r)}}};function c(n,e){return f(n,e)?.projector}function f(n,e){if(null==n||null==e)return null;if(P.source.spatialReference===n&&P.dest.spatialReference===e)return P;const t=p(n,P.source),r=p(e,P.dest);return 0===t&&0===r?(0,i.aI)(n,e)?P.projector=h:P.projector=null:P.projector=s[t][r],P}function p(n,e){return n?e.spatialReference===n?e.spatialReferenceId:(e.spatialReference=n,"metersPerUnit"in e&&(e.metersPerUnit=(0,l.GA)(n,1)),(0,o.jA)(n)?e.spatialReferenceId=1:(0,i.oT)(n)?e.spatialReferenceId=2:(0,i.K8)(n)?e.spatialReferenceId=3:(0,i.r1)(n)?e.spatialReferenceId=11:n.wkt===o.Ro.wkt?e.spatialReferenceId=4:4490===n.wkid?e.spatialReferenceId=5:n.wkt===o.FY.wkt?e.spatialReferenceId=6:n.wkt===o.LJ.wkt?e.spatialReferenceId=8:(0,o.q8)(n)?e.spatialReferenceId=7:(0,o.KQ)(n)?e.spatialReferenceId=9:e.spatialReferenceId=0):0}function h(n,e,t,r){n!==t&&(t[r++]=n[e++],t[r++]=n[e++],t[r]=n[e]??0)}function d(n,e,t,r){t[r]=T*(n[e]/q),t[r+1]=T*(C-2*Math.atan(Math.exp(-n[e+1]/q))),t[r+2]=n[e+2]??0}function g(n,e,t,l){!function(n,e,t,l,o){const a=.4999999*Math.PI,u=(0,r.qE)(S*n[e+1],-a,a),i=Math.sin(u);t[l++]=S*n[e]*o.radius,t[l++]=o.halfSemiMajorAxis*Math.log((1+i)/(1-i)),t[l]=n[e+2]??0}(n,e,t,l,a.$O)}function m(n,e,t,r){t[r]=n[e]*Z,t[r+1]=n[e+1]*Z,t[r+2]=n[e+2]??0}function M(n,e,t,r){t[r]=n[e]*L,t[r+1]=n[e+1]*L,t[r+2]=n[e+2]??0}function w(n,e,t,r,l){const o=l+(n[e+2]??0),a=S*n[e],u=S*n[e+1],i=Math.cos(u)*o;t[r]=Math.cos(a)*i,t[r+1]=Math.sin(a)*i,t[r+2]=Math.sin(u)*o}function R(n,e,t,r){w(n,e,t,r,a.Sw.radius)}function y(n,e,t,r){w(n,e,t,r,a.sH.radius)}function j(n,e,t,r){w(n,e,t,r,a.$O.radius)}function v(n,e,t,l,o){const a=n[e],u=n[e+1],i=n[e+2]??0,s=Math.sqrt(a*a+u*u+i*i),c=(0,r.YN)(i/(0===s?1:s)),f=Math.atan2(u,a);t[l++]=T*f,t[l++]=T*c,t[l]=s-o}function A(n,e,t,r){v(n,e,t,r,a.Sw.radius)}function I(n,e,t,r){v(n,e,t,r,a.sH.radius)}function x(n,e,t,r){v(n,e,t,r,a.$O.radius)}function k(n,e,t,r){!function(n,e,t,r,l){const o=S*n[e],a=S*n[e+1],u=n[e+2]??0,i=Math.sin(a),s=Math.cos(a),c=l.radius/Math.sqrt(1-l.eccentricitySquared*i*i);t[r++]=(c+u)*s*Math.cos(o),t[r++]=(c+u)*s*Math.sin(o),t[r++]=(c*(1-l.eccentricitySquared)+u)*i}(n,e,t,r,a.$O)}function O(n,e,t,r){const l=u.TP,o=n[e],i=n[e+1],s=n[e+2]??0;let c,f,p,h,d,g,m,M,w,R,y,j,v,A,I,x,k,O,P,S,C;c=Math.abs(s),f=o*o+i*i,p=Math.sqrt(f),h=f+s*s,d=Math.sqrt(h),S=Math.atan2(i,o),g=s*s/h,m=f/h,A=l.a2/d,I=l.a3-l.a4/d,m>.3?(M=c/d*(1+m*(l.a1+A+g*I)/d),P=Math.asin(M),R=M*M,w=Math.sqrt(1-R)):(w=p/d*(1-g*(l.a5-A-m*I)/d),P=Math.acos(w),R=1-w*w,M=Math.sqrt(R)),y=1-a.$O.eccentricitySquared*R,j=a.$O.radius/Math.sqrt(y),v=l.a6*j,A=p-j*w,I=c-v*M,k=w*A+M*I,x=w*I-M*A,O=x/(v/y+k),P+=O,C=k+x*O/2,s<0&&(P=-P),t[r++]=T*S,t[r++]=T*P,t[r]=C}const P={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:h},S=(0,r.kU)(1),T=(0,r.KJ)(1),C=.5*Math.PI,q=a.$O.radius,Z=q*Math.PI/180,L=180/(q*Math.PI)},91218(n,e,t){t.r(e),t.d(e,{canProjectWithoutEngine:()=>D,initializeProjection:()=>N,isEqualBaseGCS:()=>Y,isLoaded:()=>q,isLoadedOrLoad:()=>Z,isLoadedOrLoadFor:()=>L,load:()=>$,project:()=>z,projectAsync:()=>H,projectExtent:()=>ln,projectMany:()=>G,projectMultipoint:()=>X,projectOrLoad:()=>B,projectOrLoadMany:()=>E,projectPoint:()=>Q,projectPolygon:()=>tn,projectPolyline:()=>nn,projectWithoutEngine:()=>J,requiresLoad:()=>b,test:()=>F,tryProject:()=>U,unload:()=>W});var r=t(49186),l=t(74887),o=t(62788),a=t(95488),u=t(51850),i=t(21276),s=t(73941),c=t(5443),f=t(91075),p=t(48526),h=t(86738),d=t(39829),g=t(82799),m=t(16930),M=t(98764),w=t(159),R=t(9762),y=t(49208);function j(n,e,t,r,l,o){return v[0]=n,v[1]=e,v[2]=t,(0,R.projectBuffer)(v,r,0,l,o,0)}const v=(0,u.vt)();var A=t(60408),I=t(21325),x=t(52006);let k=null,O=null,P=null,S=null,T={};const C=new a.I;function q(){return!!(O?.isLoaded()&&P?.isLoaded()&&S?.isLoaded())}function Z(){return!!q()||((0,o.gc)(C),$(),!1)}function L(n,e){return!n||!e||D(n,e)||Z()}function b(n,e){return!D(n,e)&&!q()}async function $(n){null==k&&(k=Promise.all([t.e(3276).then(t.bind(t,83276)).then(n=>(O=n,O.load())),t.e(8377).then(t.bind(t,8377)).then(n=>(P=n,P.load())),t.e(2158).then(t.bind(t,12158)).then(n=>(S=n,S.load()))])),await k,(0,l.Te)(n),C.notify()}function z(n,e,t){return Array.isArray(n)?0===n.length?[]:((0,i.H)(n),G(n,n[0].spatialReference,e,t)):((0,i.f)(n),G([n],n.spatialReference,e,t)[0])}function G(n,e,t,r){if(null==e||null==t)return n;if(D(e,t,r))return n.map(n=>J(n,e,t));if(null==r?.geographicTransformation&&(0,s.jA)(e))return G(n.map(n=>J(n,e,m.A.WGS84)),m.A.WGS84,t,{zConversionDisabled:r?.zConversionDisabled});if(null==r?.geographicTransformation&&(0,s.jA)(t))return G(n,e,m.A.WGS84).map(n=>J(n,m.A.WGS84,t));if(!q())throw new K;if(!r?.geographicTransformation)if(r?.extendedParams)r={...r,geographicTransformation:S.getTransformation(e,t,r.areaOfInterestExtent)||new w.A};else if(!r?.areaOfInterestExtent){const n=function(n,e){return[n.wkid?.toString()??"-1",n.wkt?.toString()??"",n.wkt2?.toString()??"",e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??""].join()}(e,t);let l=T[n];l||(l=S.getTransformation(e,t)||new w.A,T[n]=l),r={geographicTransformation:l,zConversionDisabled:r?.zConversionDisabled}}return n[0].spatialReference||(n[0].spatialReference=e),n[0]instanceof f.A?O.executeMany(n,t,r):P.executeMany(n,t,r)}function U(n,e,t){try{return z(n,e,t)}catch(n){return null}}function B(n,e){const t=E([n],e);return null!=t.pending?{pending:t.pending,geometry:null}:null!=t.geometries?{pending:null,geometry:t.geometries[0]}:{pending:null,geometry:null}}function E(n,e,t){if(!q())for(const t of n)if(null!=t&&!(0,I.aI)(t.spatialReference,e)&&(0,I.fn)(t.spatialReference)&&(0,I.fn)(e)&&!D(t.spatialReference,e))return(0,o.gc)(C),{pending:$(),geometries:null};return{pending:null,geometries:n.map(n=>null==n?null:(0,I.aI)(n.spatialReference,e)?n:(0,I.fn)(n.spatialReference)&&(0,I.fn)(e)?z(n,e,t):null)}}class K extends r.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function W(){k=null,O=null,P=null,S=null,T={}}const F={get loadPromise(){return k}};async function H(n,e,t){if((0,l.Te)(t),!n)return n;const r=E(Array.isArray(n)?n:[n],e,t);if(r.pending)return await r.pending,(0,l.Te)(t),H(n,e,t);const o=r.geometries??[];return Array.isArray(n)?o:o[0]}function D(n,e,t){return!(t?.areaOfInterestExtent||t?.extendedParams||t?.geographicTransformation)&&(!!(0,I.aI)(n,e)||(0,I.fn)(n)&&(0,I.fn)(e)&&!!(0,y.jd)(n,e))}function Y(n,e){if((0,I.aI)(n,e))return!0;if(!(0,I.fn)(n)||!(0,I.fn)(e))return!1;const t=(0,I.oT)(n)||(0,I.K8)(n)||(0,I.x1)(n),r=(0,I.oT)(e)||(0,I.K8)(e)||(0,I.x1)(e);return t&&r}async function N(n,e,t,r){if(q())return(0,l.NO)(r);if(Array.isArray(n)){for(const{source:e,dest:t,options:l}of n)if(e&&t&&!D(e,t,l))return $(r)}else if(n&&e&&!D(n,e,t))return $(r);return(0,l.NO)(r)}function J(n,e,t){return n?(0,A.fT)(n)?V(n,e,new h.A,t,0):(0,A.ZC)(n)?on(n,e,new c.A,t,0):(0,A.Bi)(n)?rn(n,e,new d.A,t,0):(0,A.Rg)(n)?en(n,e,new g.A,t,0):(0,A.U9)(n)?_(n,e,new p.A,t,0):null:null}function Q(n,e,t=e.spatialReference,r=0){return null!=t&&null!=n.spatialReference&&null!=V(n,n.spatialReference,e,t,r)}function V(n,e,t,r,l){cn[0]=n.x,cn[1]=n.y;const o=n.z;return cn[2]=void 0!==o?o:l,(0,R.projectBuffer)(cn,e,0,cn,r,0)?(t.x=cn[0],t.y=cn[1],t.spatialReference=r,void 0!==o||(0,s.xP)(r)?(t.z=cn[2],t.hasZ=!0):(t.z=void 0,t.hasZ=!1),void 0===n.m?(t.m=void 0,t.hasM=!1):(t.m=n.m,t.hasM=!0),t):null}function X(n,e,t=e.spatialReference,r=0){return null!=n.spatialReference&&null!=t&&null!=_(n,n.spatialReference,e,t,r)}function _(n,e,t,r,l){const{points:o,hasZ:a,hasM:u}=n,i=[],s=o.length,c=[];for(const n of o)c.push(n[0],n[1],a?n[2]:l);if(!(0,R.projectBuffer)(c,e,0,c,r,0,s))return null;const f=sn(a,r);for(let n=0;n<s;++n){const e=3*n,t=c[e],r=c[e+1];f&&u?i.push([t,r,c[e+2],o[n][3]]):f?i.push([t,r,c[e+2]]):u?i.push([t,r,o[n][2]]):i.push([t,r])}return t.points=i,t.spatialReference=r,t.hasZ=a,t.hasM=u,t}function nn(n,e,t=e.spatialReference,r=0){return null!=n.spatialReference&&null!=t&&null!=en(n,n.spatialReference,e,t,r)}function en(n,e,t,r,l){const{curvePaths:o,paths:a,hasZ:u,hasM:i}=n;if(!(o?un(o,u??!1,i??!1,e,t.curvePaths=[],r,l):an(a,u??!1,i??!1,e,t.paths,r,l)))return null;const s=sn(u,r);return t.spatialReference=r,t.hasZ=s,t.hasM=i,t}function tn(n,e,t=e.spatialReference,r=0){return null!=n.spatialReference&&null!=t&&null!=rn(n,n.spatialReference,e,t,r)}function rn(n,e,t,r,l){const{curveRings:o,rings:a,hasZ:u,hasM:i}=n;return(o?un(o,u??!1,i??!1,e,t.curveRings=[],r,l):an(a,u??!1,i??!1,e,t.rings,r,l))?(t.spatialReference=r,t.hasZ=sn(u,r),t.hasM=i,t):null}function ln(n,e,t=e.spatialReference,r=0){return null!=n.spatialReference&&null!=t&&null!=on(n,n.spatialReference,e,t,r)}function on(n,e,t,r,l){const{xmin:o,ymin:a,xmax:u,ymax:i,hasZ:s,hasM:c}=n;if(!j(o,a,s?n.zmin:l,e,cn,r))return null;const f=sn(s,r);return t.xmin=cn[0],t.ymin=cn[1],f&&(t.zmin=cn[2]),j(u,i,s?n.zmax:l,e,cn,r)?(t.xmax=cn[0],t.ymax=cn[1],f&&(t.zmax=cn[2]),c&&(t.mmin=n.mmin,t.mmax=n.mmax),t.spatialReference=r,t):null}function an(n,e,t,r,l,o,a=0){const u=new Array;for(const t of n)for(const n of t)u.push(n[0],n[1],e?n[2]:a);if(!(0,R.projectBuffer)(u,r,0,u,o,0))return!1;let i=0;l.length=0;const s=e?3:2,c=sn(e,o);for(const e of n){const n=new Array;for(const r of e){const e=u.slice(i,i+=3);c||e.pop(),t&&e.push(r[s]),n.push(e)}l.push(n)}return!0}function un(n,e,t,r,l,o,a=0){const u=new Array;for(const t of n)for(const n of t){if((0,x.FG)(n))return!1;if((0,x.aO)(n)){const[t,r]=n.c;u.push(t[0],t[1],e?t[2]:a,r[0],r[1],a);continue}if((0,x.n1)(n)){const[t,r,l]=n.b;u.push(t[0],t[1],e?t[2]:a,r[0],r[1],a,l[0],l[1],a);continue}const t=n;u.push(t[0],t[1],e?t[2]:a)}if(!(0,R.projectBuffer)(u,r,0,u,o,0))return!1;let i=0;l.length=0;const s=e?3:2,c=sn(e,o);for(const e of n){const n=new Array;for(const r of e){const e=u.slice(i,i+=3);if(c||e.pop(),t&&e.push((0,x.yP)(r)[s]),(0,x.FG)(r))return!1;if((0,x.aO)(r)){const t=u[i++],r=u[i++];++i,n.push({c:[e,[t,r]]});continue}if((0,x.n1)(r)){const t=u[i++],r=u[i++];++i;const l=u[i++],o=u[i++];++i,n.push({b:[e,[t,r],[l,o]]});continue}n.push(e)}l.push(n)}return!0}function sn(n,e){return n||(0,s.xP)(e)||(0,I.aI)(e,M.Y0)}const cn=(0,u.vt)()},98764(n,e,t){t.d(e,{GD:()=>a,Y0:()=>s,lO:()=>c});var r=t(73941),l=t(16930),o=t(21325);const a=new l.A(r.fv),u=new l.A(r.FY),i=new l.A(r.LJ),s=new l.A(r.Ro);function c(n){const e=f.get(n);if(e)return e;let t=a;if(n)if(n===u)t=u;else if(n===i)t=i;else{const e=n.wkid,r=n.latestWkid;if(null!=e||null!=r)(0,o.tl)(e)||(0,o.tl)(r)?t=u:((0,o.ZL)(e)||(0,o.ZL)(r))&&(t=i);else{const e=n.wkt2??n.wkt;if(e){const n=e.toUpperCase();n===p?t=u:n===h&&(t=i)}}}return f.set(n,t),t}const f=new Map,p=u.wkt.toUpperCase(),h=i.wkt.toUpperCase()},34403(n,e,t){t.d(e,{TP:()=>a});var r=t(79258);Math.PI;const l=r.$O.radius,o=r.$O.eccentricitySquared,a={a1:l*o,a2:l*o*l*o,a3:l*o*o/2,a4:l*o*l*o*2.5,a5:l*o+l*o*o/2,a6:1-o};r.$O.radius,r.$O.flattening,r.Sw.radius,r.Sw.flattening,r.sH.radius,r.sH.flattening,r.sH.radius}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2031],{11006(n,e,t){function r(n,e,t,r,o){l(n,e,t||0,r||n.length-1,o||a)}function l(n,e,t,r,a){for(;r>t;){if(r-t>600){var u=r-t+1,i=e-t+1,s=Math.log(u),c=.5*Math.exp(2*s/3),f=.5*Math.sqrt(s*c*(u-c)/u)*(i-u/2<0?-1:1);l(n,e,Math.max(t,Math.floor(e-i*c/u+f)),Math.min(r,Math.floor(e+(u-i)*c/u+f)),a)}var p=n[e],h=t,d=r;for(o(n,t,e),a(n[r],p)>0&&o(n,t,r);h<d;){for(o(n,h,d),h++,d--;a(n[h],p)<0;)h++;for(;a(n[d],p)>0;)d--}0===a(n[t],p)?o(n,t,d):o(n,++d,r),d<=e&&(t=d+1),e<=d&&(r=d-1)}}function o(n,e,t){var r=n[e];n[e]=n[t],n[t]=r}function a(n,e){return n<e?-1:n>e?1:0}t.d(e,{q:()=>r})},159(n,e,t){t.d(e,{A:()=>s});var r,l=t(5482),o=t(69540),a=t(25482),u=t(91429),i=t(99157);let s=r=class extends((0,o.OU)(a.o)){constructor(n){super(n),this.steps=[]}getInverse(){const n=new r;for(let e=this.steps.length-1;e>=0;e--){const t=this.steps[e];n.steps.push(t.getInverse())}return n}};(0,l.Cg)([(0,u.MZ)({type:[i.A],nonNullable:!0,json:{name:"geoTransforms"}})],s.prototype,"steps",void 0),s=r=(0,l.Cg)([(0,u.$K)("esri.geometry.operators.support.GeographicTransformation")],s)},99157(n,e,t){t.d(e,{A:()=>i});var r,l=t(5482),o=t(69540),a=t(25482),u=t(91429);let i=r=class extends((0,o.OU)(a.o)){constructor(n){super(n),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new r({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,l.Cg)([(0,u.MZ)({json:{name:"transformForward",read:n=>!n,write:(n,e,t)=>{e[t]=!n}}})],i.prototype,"isInverse",void 0),(0,l.Cg)([(0,u.MZ)({json:{write:!0}})],i.prototype,"wkt",void 0),(0,l.Cg)([(0,u.MZ)({json:{write:!0}})],i.prototype,"wkid",void 0),i=r=(0,l.Cg)([(0,u.$K)("esri.geometry.operators.support.GeographicTransformationStep")],i)},9762(n,e,t){t.r(e),t.d(e,{projectBuffer:()=>l});var r=t(49208);function l(n,e,t,l,o,a,u=Math.floor(n.length/3)){const i=(0,r.jd)(e,o);if(null==i)return!1;if(i===r.pO){if(n===l&&t===a)return!0;const e=t+3*u;for(let r=t,o=a;r<e;r++,o++)l[o]=n[r]??0;return!0}const s=t+3*u;for(let e=t,r=a;e<s;e+=3,r+=3)i(n,e,l,r);return!0}},49208(n,e,t){t.d(e,{Tp:()=>f,jd:()=>c,pO:()=>h,w5:()=>s});var r=t(34727),l=t(86211),o=t(73941),a=t(79258),u=t(34403),i=t(21325);const s={2:{5:h,7:null,9:null,10:h,1:j,6:null,8:null,0:null,3:g,11:m,2:h,4:k},5:{5:h,7:null,9:null,10:h,1:j,6:null,8:null,0:null,3:g,11:m,2:h,4:k},7:{5:null,7:h,9:null,10:h,1:null,6:y,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:h,10:h,1:null,6:null,8:R,0:null,3:null,11:null,2:null,4:null},3:{5:d,7:null,9:null,10:d,1:function(n,e,t,r){const l=n[e]/q,o=C-2*Math.atan(Math.exp(-n[e+1]/q)),a=q+(n[e+2]??0),u=Math.cos(o)*a;t[r]=Math.cos(l)*u,t[r+1]=Math.sin(l)*u,t[r+2]=Math.sin(o)*a},6:null,8:null,0:null,3:h,11:function(n,e,t,r){d(n,e,t,r),m(t,r,t,r)},2:d,4:function(n,e,t,r){d(n,e,t,r),k(t,r,t,r)}},4:{5:O,7:null,9:null,10:O,1:function(n,e,t,r){O(n,e,t,r),j(t,r,t,r)},6:null,8:null,0:null,3:function(n,e,t,r){O(n,e,t,r),g(t,r,t,r)},11:function(n,e,t,r){O(n,e,t,r),m(t,r,t,r)},2:O,4:h},1:{5:x,7:null,9:null,10:x,1:h,6:null,8:null,0:null,3:function(n,e,t,r){x(n,e,t,r),g(t,r,t,r)},11:function(n,e,t,r){x(n,e,t,r),m(t,r,t,r)},2:x,4:function(n,e,t,r){x(n,e,t,r),k(t,r,t,r)}},6:{5:null,7:I,9:null,10:I,1:null,6:h,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:A,10:A,1:null,6:null,8:h,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:h,3:null,11:null,2:null,4:null},10:{5:h,7:h,9:h,10:h,1:j,6:y,8:R,0:null,3:g,11:m,2:h,4:k},11:{5:M,7:null,9:null,10:M,1:function(n,e,t,r){M(n,e,t,r),j(t,r,t,r)},6:null,8:null,0:null,3:function(n,e,t,r){M(n,e,t,r),g(t,r,t,r)},11:h,2:M,4:function(n,e,t,r){M(n,e,t,r),k(t,r,t,r)}}};function c(n,e){return f(n,e)?.projector}function f(n,e){if(null==n||null==e)return null;if(P.source.spatialReference===n&&P.dest.spatialReference===e)return P;const t=p(n,P.source),r=p(e,P.dest);return 0===t&&0===r?(0,i.aI)(n,e)?P.projector=h:P.projector=null:P.projector=s[t][r],P}function p(n,e){return n?e.spatialReference===n?e.spatialReferenceId:(e.spatialReference=n,"metersPerUnit"in e&&(e.metersPerUnit=(0,l.GA)(n,1)),(0,o.jA)(n)?e.spatialReferenceId=1:(0,i.oT)(n)?e.spatialReferenceId=2:(0,i.K8)(n)?e.spatialReferenceId=3:(0,i.r1)(n)?e.spatialReferenceId=11:n.wkt===o.Ro.wkt?e.spatialReferenceId=4:4490===n.wkid?e.spatialReferenceId=5:n.wkt===o.FY.wkt?e.spatialReferenceId=6:n.wkt===o.LJ.wkt?e.spatialReferenceId=8:(0,o.q8)(n)?e.spatialReferenceId=7:(0,o.KQ)(n)?e.spatialReferenceId=9:e.spatialReferenceId=0):0}function h(n,e,t,r){n!==t&&(t[r++]=n[e++],t[r++]=n[e++],t[r]=n[e]??0)}function d(n,e,t,r){t[r]=T*(n[e]/q),t[r+1]=T*(C-2*Math.atan(Math.exp(-n[e+1]/q))),t[r+2]=n[e+2]??0}function g(n,e,t,l){!function(n,e,t,l,o){const a=.4999999*Math.PI,u=(0,r.qE)(S*n[e+1],-a,a),i=Math.sin(u);t[l++]=S*n[e]*o.radius,t[l++]=o.halfSemiMajorAxis*Math.log((1+i)/(1-i)),t[l]=n[e+2]??0}(n,e,t,l,a.$O)}function m(n,e,t,r){t[r]=n[e]*Z,t[r+1]=n[e+1]*Z,t[r+2]=n[e+2]??0}function M(n,e,t,r){t[r]=n[e]*L,t[r+1]=n[e+1]*L,t[r+2]=n[e+2]??0}function w(n,e,t,r,l){const o=l+(n[e+2]??0),a=S*n[e],u=S*n[e+1],i=Math.cos(u)*o;t[r]=Math.cos(a)*i,t[r+1]=Math.sin(a)*i,t[r+2]=Math.sin(u)*o}function R(n,e,t,r){w(n,e,t,r,a.Sw.radius)}function y(n,e,t,r){w(n,e,t,r,a.sH.radius)}function j(n,e,t,r){w(n,e,t,r,a.$O.radius)}function v(n,e,t,l,o){const a=n[e],u=n[e+1],i=n[e+2]??0,s=Math.sqrt(a*a+u*u+i*i),c=(0,r.YN)(i/(0===s?1:s)),f=Math.atan2(u,a);t[l++]=T*f,t[l++]=T*c,t[l]=s-o}function A(n,e,t,r){v(n,e,t,r,a.Sw.radius)}function I(n,e,t,r){v(n,e,t,r,a.sH.radius)}function x(n,e,t,r){v(n,e,t,r,a.$O.radius)}function k(n,e,t,r){!function(n,e,t,r,l){const o=S*n[e],a=S*n[e+1],u=n[e+2]??0,i=Math.sin(a),s=Math.cos(a),c=l.radius/Math.sqrt(1-l.eccentricitySquared*i*i);t[r++]=(c+u)*s*Math.cos(o),t[r++]=(c+u)*s*Math.sin(o),t[r++]=(c*(1-l.eccentricitySquared)+u)*i}(n,e,t,r,a.$O)}function O(n,e,t,r){const l=u.TP,o=n[e],i=n[e+1],s=n[e+2]??0;let c,f,p,h,d,g,m,M,w,R,y,j,v,A,I,x,k,O,P,S,C;c=Math.abs(s),f=o*o+i*i,p=Math.sqrt(f),h=f+s*s,d=Math.sqrt(h),S=Math.atan2(i,o),g=s*s/h,m=f/h,A=l.a2/d,I=l.a3-l.a4/d,m>.3?(M=c/d*(1+m*(l.a1+A+g*I)/d),P=Math.asin(M),R=M*M,w=Math.sqrt(1-R)):(w=p/d*(1-g*(l.a5-A-m*I)/d),P=Math.acos(w),R=1-w*w,M=Math.sqrt(R)),y=1-a.$O.eccentricitySquared*R,j=a.$O.radius/Math.sqrt(y),v=l.a6*j,A=p-j*w,I=c-v*M,k=w*A+M*I,x=w*I-M*A,O=x/(v/y+k),P+=O,C=k+x*O/2,s<0&&(P=-P),t[r++]=T*S,t[r++]=T*P,t[r]=C}const P={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:h},S=(0,r.kU)(1),T=(0,r.KJ)(1),C=.5*Math.PI,q=a.$O.radius,Z=q*Math.PI/180,L=180/(q*Math.PI)},91218(n,e,t){t.r(e),t.d(e,{canProjectWithoutEngine:()=>D,initializeProjection:()=>N,isEqualBaseGCS:()=>Y,isLoaded:()=>q,isLoadedOrLoad:()=>Z,isLoadedOrLoadFor:()=>L,load:()=>$,project:()=>z,projectAsync:()=>H,projectExtent:()=>ln,projectMany:()=>G,projectMultipoint:()=>X,projectOrLoad:()=>B,projectOrLoadMany:()=>E,projectPoint:()=>Q,projectPolygon:()=>tn,projectPolyline:()=>nn,projectWithoutEngine:()=>J,requiresLoad:()=>b,test:()=>F,tryProject:()=>U,unload:()=>W});var r=t(49186),l=t(17676),o=t(62788),a=t(95488),u=t(51850),i=t(21276),s=t(73941),c=t(5443),f=t(91075),p=t(48526),h=t(86738),d=t(39829),g=t(82799),m=t(16930),M=t(98764),w=t(159),R=t(9762),y=t(49208);function j(n,e,t,r,l,o){return v[0]=n,v[1]=e,v[2]=t,(0,R.projectBuffer)(v,r,0,l,o,0)}const v=(0,u.vt)();var A=t(60408),I=t(21325),x=t(52006);let k=null,O=null,P=null,S=null,T={};const C=new a.I;function q(){return!!(O?.isLoaded()&&P?.isLoaded()&&S?.isLoaded())}function Z(){return!!q()||((0,o.gc)(C),$(),!1)}function L(n,e){return!n||!e||D(n,e)||Z()}function b(n,e){return!D(n,e)&&!q()}async function $(n){null==k&&(k=Promise.all([t.e(3276).then(t.bind(t,83276)).then(n=>(O=n,O.load())),t.e(8377).then(t.bind(t,8377)).then(n=>(P=n,P.load())),t.e(2158).then(t.bind(t,12158)).then(n=>(S=n,S.load()))])),await k,(0,l.Te)(n),C.notify()}function z(n,e,t){return Array.isArray(n)?0===n.length?[]:((0,i.H)(n),G(n,n[0].spatialReference,e,t)):((0,i.f)(n),G([n],n.spatialReference,e,t)[0])}function G(n,e,t,r){if(null==e||null==t)return n;if(D(e,t,r))return n.map(n=>J(n,e,t));if(null==r?.geographicTransformation&&(0,s.jA)(e))return G(n.map(n=>J(n,e,m.A.WGS84)),m.A.WGS84,t,{zConversionDisabled:r?.zConversionDisabled});if(null==r?.geographicTransformation&&(0,s.jA)(t))return G(n,e,m.A.WGS84).map(n=>J(n,m.A.WGS84,t));if(!q())throw new K;if(!r?.geographicTransformation)if(r?.extendedParams)r={...r,geographicTransformation:S.getTransformation(e,t,r.areaOfInterestExtent)||new w.A};else if(!r?.areaOfInterestExtent){const n=function(n,e){return[n.wkid?.toString()??"-1",n.wkt?.toString()??"",n.wkt2?.toString()??"",e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??""].join()}(e,t);let l=T[n];l||(l=S.getTransformation(e,t)||new w.A,T[n]=l),r={geographicTransformation:l,zConversionDisabled:r?.zConversionDisabled}}return n[0].spatialReference||(n[0].spatialReference=e),n[0]instanceof f.A?O.executeMany(n,t,r):P.executeMany(n,t,r)}function U(n,e,t){try{return z(n,e,t)}catch(n){return null}}function B(n,e){const t=E([n],e);return null!=t.pending?{pending:t.pending,geometry:null}:null!=t.geometries?{pending:null,geometry:t.geometries[0]}:{pending:null,geometry:null}}function E(n,e,t){if(!q())for(const t of n)if(null!=t&&!(0,I.aI)(t.spatialReference,e)&&(0,I.fn)(t.spatialReference)&&(0,I.fn)(e)&&!D(t.spatialReference,e))return(0,o.gc)(C),{pending:$(),geometries:null};return{pending:null,geometries:n.map(n=>null==n?null:(0,I.aI)(n.spatialReference,e)?n:(0,I.fn)(n.spatialReference)&&(0,I.fn)(e)?z(n,e,t):null)}}class K extends r.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function W(){k=null,O=null,P=null,S=null,T={}}const F={get loadPromise(){return k}};async function H(n,e,t){if((0,l.Te)(t),!n)return n;const r=E(Array.isArray(n)?n:[n],e,t);if(r.pending)return await r.pending,(0,l.Te)(t),H(n,e,t);const o=r.geometries??[];return Array.isArray(n)?o:o[0]}function D(n,e,t){return!(t?.areaOfInterestExtent||t?.extendedParams||t?.geographicTransformation)&&(!!(0,I.aI)(n,e)||(0,I.fn)(n)&&(0,I.fn)(e)&&!!(0,y.jd)(n,e))}function Y(n,e){if((0,I.aI)(n,e))return!0;if(!(0,I.fn)(n)||!(0,I.fn)(e))return!1;const t=(0,I.oT)(n)||(0,I.K8)(n)||(0,I.x1)(n),r=(0,I.oT)(e)||(0,I.K8)(e)||(0,I.x1)(e);return t&&r}async function N(n,e,t,r){if(q())return(0,l.NO)(r);if(Array.isArray(n)){for(const{source:e,dest:t,options:l}of n)if(e&&t&&!D(e,t,l))return $(r)}else if(n&&e&&!D(n,e,t))return $(r);return(0,l.NO)(r)}function J(n,e,t){return n?(0,A.fT)(n)?V(n,e,new h.A,t,0):(0,A.ZC)(n)?on(n,e,new c.A,t,0):(0,A.Bi)(n)?rn(n,e,new d.A,t,0):(0,A.Rg)(n)?en(n,e,new g.A,t,0):(0,A.U9)(n)?_(n,e,new p.A,t,0):null:null}function Q(n,e,t=e.spatialReference,r=0){return null!=t&&null!=n.spatialReference&&null!=V(n,n.spatialReference,e,t,r)}function V(n,e,t,r,l){cn[0]=n.x,cn[1]=n.y;const o=n.z;return cn[2]=void 0!==o?o:l,(0,R.projectBuffer)(cn,e,0,cn,r,0)?(t.x=cn[0],t.y=cn[1],t.spatialReference=r,void 0!==o||(0,s.xP)(r)?(t.z=cn[2],t.hasZ=!0):(t.z=void 0,t.hasZ=!1),void 0===n.m?(t.m=void 0,t.hasM=!1):(t.m=n.m,t.hasM=!0),t):null}function X(n,e,t=e.spatialReference,r=0){return null!=n.spatialReference&&null!=t&&null!=_(n,n.spatialReference,e,t,r)}function _(n,e,t,r,l){const{points:o,hasZ:a,hasM:u}=n,i=[],s=o.length,c=[];for(const n of o)c.push(n[0],n[1],a?n[2]:l);if(!(0,R.projectBuffer)(c,e,0,c,r,0,s))return null;const f=sn(a,r);for(let n=0;n<s;++n){const e=3*n,t=c[e],r=c[e+1];f&&u?i.push([t,r,c[e+2],o[n][3]]):f?i.push([t,r,c[e+2]]):u?i.push([t,r,o[n][2]]):i.push([t,r])}return t.points=i,t.spatialReference=r,t.hasZ=a,t.hasM=u,t}function nn(n,e,t=e.spatialReference,r=0){return null!=n.spatialReference&&null!=t&&null!=en(n,n.spatialReference,e,t,r)}function en(n,e,t,r,l){const{curvePaths:o,paths:a,hasZ:u,hasM:i}=n;if(!(o?un(o,u??!1,i??!1,e,t.curvePaths=[],r,l):an(a,u??!1,i??!1,e,t.paths,r,l)))return null;const s=sn(u,r);return t.spatialReference=r,t.hasZ=s,t.hasM=i,t}function tn(n,e,t=e.spatialReference,r=0){return null!=n.spatialReference&&null!=t&&null!=rn(n,n.spatialReference,e,t,r)}function rn(n,e,t,r,l){const{curveRings:o,rings:a,hasZ:u,hasM:i}=n;return(o?un(o,u??!1,i??!1,e,t.curveRings=[],r,l):an(a,u??!1,i??!1,e,t.rings,r,l))?(t.spatialReference=r,t.hasZ=sn(u,r),t.hasM=i,t):null}function ln(n,e,t=e.spatialReference,r=0){return null!=n.spatialReference&&null!=t&&null!=on(n,n.spatialReference,e,t,r)}function on(n,e,t,r,l){const{xmin:o,ymin:a,xmax:u,ymax:i,hasZ:s,hasM:c}=n;if(!j(o,a,s?n.zmin:l,e,cn,r))return null;const f=sn(s,r);return t.xmin=cn[0],t.ymin=cn[1],f&&(t.zmin=cn[2]),j(u,i,s?n.zmax:l,e,cn,r)?(t.xmax=cn[0],t.ymax=cn[1],f&&(t.zmax=cn[2]),c&&(t.mmin=n.mmin,t.mmax=n.mmax),t.spatialReference=r,t):null}function an(n,e,t,r,l,o,a=0){const u=new Array;for(const t of n)for(const n of t)u.push(n[0],n[1],e?n[2]:a);if(!(0,R.projectBuffer)(u,r,0,u,o,0))return!1;let i=0;l.length=0;const s=e?3:2,c=sn(e,o);for(const e of n){const n=new Array;for(const r of e){const e=u.slice(i,i+=3);c||e.pop(),t&&e.push(r[s]),n.push(e)}l.push(n)}return!0}function un(n,e,t,r,l,o,a=0){const u=new Array;for(const t of n)for(const n of t){if((0,x.FG)(n))return!1;if((0,x.aO)(n)){const[t,r]=n.c;u.push(t[0],t[1],e?t[2]:a,r[0],r[1],a);continue}if((0,x.n1)(n)){const[t,r,l]=n.b;u.push(t[0],t[1],e?t[2]:a,r[0],r[1],a,l[0],l[1],a);continue}const t=n;u.push(t[0],t[1],e?t[2]:a)}if(!(0,R.projectBuffer)(u,r,0,u,o,0))return!1;let i=0;l.length=0;const s=e?3:2,c=sn(e,o);for(const e of n){const n=new Array;for(const r of e){const e=u.slice(i,i+=3);if(c||e.pop(),t&&e.push((0,x.yP)(r)[s]),(0,x.FG)(r))return!1;if((0,x.aO)(r)){const t=u[i++],r=u[i++];++i,n.push({c:[e,[t,r]]});continue}if((0,x.n1)(r)){const t=u[i++],r=u[i++];++i;const l=u[i++],o=u[i++];++i,n.push({b:[e,[t,r],[l,o]]});continue}n.push(e)}l.push(n)}return!0}function sn(n,e){return n||(0,s.xP)(e)||(0,I.aI)(e,M.Y0)}const cn=(0,u.vt)()},98764(n,e,t){t.d(e,{GD:()=>a,Y0:()=>s,lO:()=>c});var r=t(73941),l=t(16930),o=t(21325);const a=new l.A(r.fv),u=new l.A(r.FY),i=new l.A(r.LJ),s=new l.A(r.Ro);function c(n){const e=f.get(n);if(e)return e;let t=a;if(n)if(n===u)t=u;else if(n===i)t=i;else{const e=n.wkid,r=n.latestWkid;if(null!=e||null!=r)(0,o.tl)(e)||(0,o.tl)(r)?t=u:((0,o.ZL)(e)||(0,o.ZL)(r))&&(t=i);else{const e=n.wkt2??n.wkt;if(e){const n=e.toUpperCase();n===p?t=u:n===h&&(t=i)}}}return f.set(n,t),t}const f=new Map,p=u.wkt.toUpperCase(),h=i.wkt.toUpperCase()},34403(n,e,t){t.d(e,{TP:()=>a});var r=t(79258);Math.PI;const l=r.$O.radius,o=r.$O.eccentricitySquared,a={a1:l*o,a2:l*o*l*o,a3:l*o*o/2,a4:l*o*l*o*2.5,a5:l*o+l*o*o/2,a6:1-o};r.$O.radius,r.$O.flattening,r.Sw.radius,r.Sw.flattening,r.sH.radius,r.sH.flattening,r.sH.radius}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9156],{60999(e,t,r){r.d(t,{DZ:()=>d,Ke:()=>h,Tj:()=>c,UT:()=>g,aD:()=>m,jJ:()=>u});var n=r(5482),l=r(69622),i=r(97768),s=r(74887),o=r(10107),a=r(64108);function u(e,t,r){return(0,s.Lx)(e.map((e,n)=>t.apply(r,[e,n])))}async function c(e,t,r){return(await(0,s.Lx)(e.map((e,n)=>t.apply(r,[e,n])))).map(e=>e.value)}function p(e){return{ok:!0,value:e}}function f(e){return{ok:!1,error:e}}async function h(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return p(await e)}catch(e){return f(e)}}async function d(e){try{return p(await e)}catch(e){return(0,s.QP)(e),f(e)}}function g(e,t){return new y(e,t)}let y=class extends l.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,i.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:r}=this._abortController;this.promise=e(r),this.promise.then(e=>{this._result=p(e),this._cleanup()},e=>{this._result=f(e),this._cleanup()}),this._abortHandle=(0,s.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,i.xt)(this._abortHandle),this._abortController=null}};(0,n.Cg)([(0,o.MZ)()],y.prototype,"value",null),(0,n.Cg)([(0,o.MZ)()],y.prototype,"error",null),(0,n.Cg)([(0,o.MZ)()],y.prototype,"finished",null),(0,n.Cg)([(0,o.MZ)()],y.prototype,"promise",void 0),(0,n.Cg)([(0,o.MZ)()],y.prototype,"_result",void 0),y=(0,n.Cg)([(0,a.$)("esri.core.asyncUtils.ReactiveTask")],y);class m{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});const t=await e;return{[Symbol.dispose]:t}}async run(e){const t={stack:[],error:void 0,hasError:!1};try{return(0,n.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,n.hk)(t)}}}},159(e,t,r){r.d(t,{A:()=>u});var n,l=r(5482),i=r(69540),s=r(25482),o=r(91429),a=r(99157);let u=n=class extends((0,i.OU)(s.o)){constructor(e){super(e),this.steps=[]}getInverse(){const e=new n;for(let t=this.steps.length-1;t>=0;t--){const r=this.steps[t];e.steps.push(r.getInverse())}return e}};(0,l.Cg)([(0,o.MZ)({type:[a.A],nonNullable:!0,json:{name:"geoTransforms"}})],u.prototype,"steps",void 0),u=n=(0,l.Cg)([(0,o.$K)("esri.geometry.operators.support.GeographicTransformation")],u)},99157(e,t,r){r.d(t,{A:()=>a});var n,l=r(5482),i=r(69540),s=r(25482),o=r(91429);let a=n=class extends((0,i.OU)(s.o)){constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new n({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,l.Cg)([(0,o.MZ)({json:{name:"transformForward",read:e=>!e,write:(e,t,r)=>{t[r]=!e}}})],a.prototype,"isInverse",void 0),(0,l.Cg)([(0,o.MZ)({json:{write:!0}})],a.prototype,"wkt",void 0),(0,l.Cg)([(0,o.MZ)({json:{write:!0}})],a.prototype,"wkid",void 0),a=n=(0,l.Cg)([(0,o.$K)("esri.geometry.operators.support.GeographicTransformationStep")],a)},9762(e,t,r){r.r(t),r.d(t,{projectBuffer:()=>l});var n=r(49208);function l(e,t,r,l,i,s,o=Math.floor(e.length/3)){const a=(0,n.jd)(t,i);if(null==a)return!1;if(a===n.pO){if(e===l&&r===s)return!0;const t=r+3*o;for(let n=r,i=s;n<t;n++,i++)l[i]=e[n]??0;return!0}const u=r+3*o;for(let t=r,n=s;t<u;t+=3,n+=3)a(e,t,l,n);return!0}},49208(e,t,r){r.d(t,{Tp:()=>p,jd:()=>c,pO:()=>h,w5:()=>u});var n=r(34727),l=r(86211),i=r(73941),s=r(79258),o=r(34403),a=r(21325);const u={2:{5:h,7:null,9:null,10:h,1:A,6:null,8:null,0:null,3:g,11:y,2:h,4:b},5:{5:h,7:null,9:null,10:h,1:A,6:null,8:null,0:null,3:g,11:y,2:h,4:b},7:{5:null,7:h,9:null,10:h,1:null,6:M,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:h,10:h,1:null,6:null,8:v,0:null,3:null,11:null,2:null,4:null},3:{5:d,7:null,9:null,10:d,1:function(e,t,r,n){const l=e[t]/E,i=j-2*Math.atan(Math.exp(-e[t+1]/E)),s=E+(e[t+2]??0),o=Math.cos(i)*s;r[n]=Math.cos(l)*o,r[n+1]=Math.sin(l)*o,r[n+2]=Math.sin(i)*s},6:null,8:null,0:null,3:h,11:function(e,t,r,n){d(e,t,r,n),y(r,n,r,n)},2:d,4:function(e,t,r,n){d(e,t,r,n),b(r,n,r,n)}},4:{5:T,7:null,9:null,10:T,1:function(e,t,r,n){T(e,t,r,n),A(r,n,r,n)},6:null,8:null,0:null,3:function(e,t,r,n){T(e,t,r,n),g(r,n,r,n)},11:function(e,t,r,n){T(e,t,r,n),y(r,n,r,n)},2:T,4:h},1:{5:P,7:null,9:null,10:P,1:h,6:null,8:null,0:null,3:function(e,t,r,n){P(e,t,r,n),g(r,n,r,n)},11:function(e,t,r,n){P(e,t,r,n),y(r,n,r,n)},2:P,4:function(e,t,r,n){P(e,t,r,n),b(r,n,r,n)}},6:{5:null,7:C,9:null,10:C,1:null,6:h,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:R,10:R,1:null,6:null,8:h,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:h,3:null,11:null,2:null,4:null},10:{5:h,7:h,9:h,10:h,1:A,6:M,8:v,0:null,3:g,11:y,2:h,4:b},11:{5:m,7:null,9:null,10:m,1:function(e,t,r,n){m(e,t,r,n),A(r,n,r,n)},6:null,8:null,0:null,3:function(e,t,r,n){m(e,t,r,n),g(r,n,r,n)},11:h,2:m,4:function(e,t,r,n){m(e,t,r,n),b(r,n,r,n)}}};function c(e,t){return p(e,t)?.projector}function p(e,t){if(null==e||null==t)return null;if(S.source.spatialReference===e&&S.dest.spatialReference===t)return S;const r=f(e,S.source),n=f(t,S.dest);return 0===r&&0===n?(0,a.aI)(e,t)?S.projector=h:S.projector=null:S.projector=u[r][n],S}function f(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,l.GA)(e,1)),(0,i.jA)(e)?t.spatialReferenceId=1:(0,a.oT)(e)?t.spatialReferenceId=2:(0,a.K8)(e)?t.spatialReferenceId=3:(0,a.r1)(e)?t.spatialReferenceId=11:e.wkt===i.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===i.FY.wkt?t.spatialReferenceId=6:e.wkt===i.LJ.wkt?t.spatialReferenceId=8:(0,i.q8)(e)?t.spatialReferenceId=7:(0,i.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function h(e,t,r,n){e!==r&&(r[n++]=e[t++],r[n++]=e[t++],r[n]=e[t]??0)}function d(e,t,r,n){r[n]=x*(e[t]/E),r[n+1]=x*(j-2*Math.atan(Math.exp(-e[t+1]/E))),r[n+2]=e[t+2]??0}function g(e,t,r,l){!function(e,t,r,l,i){const s=.4999999*Math.PI,o=(0,n.qE)(_*e[t+1],-s,s),a=Math.sin(o);r[l++]=_*e[t]*i.radius,r[l++]=i.halfSemiMajorAxis*Math.log((1+a)/(1-a)),r[l]=e[t+2]??0}(e,t,r,l,s.$O)}function y(e,t,r,n){r[n]=e[t]*Z,r[n+1]=e[t+1]*Z,r[n+2]=e[t+2]??0}function m(e,t,r,n){r[n]=e[t]*L,r[n+1]=e[t+1]*L,r[n+2]=e[t+2]??0}function w(e,t,r,n,l){const i=l+(e[t+2]??0),s=_*e[t],o=_*e[t+1],a=Math.cos(o)*i;r[n]=Math.cos(s)*a,r[n+1]=Math.sin(s)*a,r[n+2]=Math.sin(o)*i}function v(e,t,r,n){w(e,t,r,n,s.Sw.radius)}function M(e,t,r,n){w(e,t,r,n,s.sH.radius)}function A(e,t,r,n){w(e,t,r,n,s.$O.radius)}function I(e,t,r,l,i){const s=e[t],o=e[t+1],a=e[t+2]??0,u=Math.sqrt(s*s+o*o+a*a),c=(0,n.YN)(a/(0===u?1:u)),p=Math.atan2(o,s);r[l++]=x*p,r[l++]=x*c,r[l]=u-i}function R(e,t,r,n){I(e,t,r,n,s.Sw.radius)}function C(e,t,r,n){I(e,t,r,n,s.sH.radius)}function P(e,t,r,n){I(e,t,r,n,s.$O.radius)}function b(e,t,r,n){!function(e,t,r,n,l){const i=_*e[t],s=_*e[t+1],o=e[t+2]??0,a=Math.sin(s),u=Math.cos(s),c=l.radius/Math.sqrt(1-l.eccentricitySquared*a*a);r[n++]=(c+o)*u*Math.cos(i),r[n++]=(c+o)*u*Math.sin(i),r[n++]=(c*(1-l.eccentricitySquared)+o)*a}(e,t,r,n,s.$O)}function T(e,t,r,n){const l=o.TP,i=e[t],a=e[t+1],u=e[t+2]??0;let c,p,f,h,d,g,y,m,w,v,M,A,I,R,C,P,b,T,S,_,j;c=Math.abs(u),p=i*i+a*a,f=Math.sqrt(p),h=p+u*u,d=Math.sqrt(h),_=Math.atan2(a,i),g=u*u/h,y=p/h,R=l.a2/d,C=l.a3-l.a4/d,y>.3?(m=c/d*(1+y*(l.a1+R+g*C)/d),S=Math.asin(m),v=m*m,w=Math.sqrt(1-v)):(w=f/d*(1-g*(l.a5-R-y*C)/d),S=Math.acos(w),v=1-w*w,m=Math.sqrt(v)),M=1-s.$O.eccentricitySquared*v,A=s.$O.radius/Math.sqrt(M),I=l.a6*A,R=f-A*w,C=c-I*m,b=w*R+m*C,P=w*C-m*R,T=P/(I/M+b),S+=T,j=b+P*T/2,u<0&&(S=-S),r[n++]=x*_,r[n++]=x*S,r[n]=j}const S={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:h},_=(0,n.kU)(1),x=(0,n.KJ)(1),j=.5*Math.PI,E=s.$O.radius,Z=E*Math.PI/180,L=180/(E*Math.PI)},91218(e,t,r){r.r(t),r.d(t,{canProjectWithoutEngine:()=>N,initializeProjection:()=>K,isEqualBaseGCS:()=>F,isLoaded:()=>E,isLoadedOrLoad:()=>Z,isLoadedOrLoadFor:()=>L,load:()=>U,project:()=>z,projectAsync:()=>B,projectExtent:()=>le,projectMany:()=>k,projectMultipoint:()=>Q,projectOrLoad:()=>$,projectOrLoadMany:()=>G,projectPoint:()=>J,projectPolygon:()=>re,projectPolyline:()=>ee,projectWithoutEngine:()=>V,requiresLoad:()=>O,test:()=>W,tryProject:()=>D,unload:()=>H});var n=r(49186),l=r(74887),i=r(62788),s=r(95488),o=r(51850),a=r(21276),u=r(73941),c=r(5443),p=r(91075),f=r(48526),h=r(86738),d=r(39829),g=r(82799),y=r(16930),m=r(98764),w=r(159),v=r(9762),M=r(49208);function A(e,t,r,n,l,i){return I[0]=e,I[1]=t,I[2]=r,(0,v.projectBuffer)(I,n,0,l,i,0)}const I=(0,o.vt)();var R=r(60408),C=r(21325),P=r(52006);let b=null,T=null,S=null,_=null,x={};const j=new s.I;function E(){return!!(T?.isLoaded()&&S?.isLoaded()&&_?.isLoaded())}function Z(){return!!E()||((0,i.gc)(j),U(),!1)}function L(e,t){return!e||!t||N(e,t)||Z()}function O(e,t){return!N(e,t)&&!E()}async function U(e){null==b&&(b=Promise.all([r.e(3276).then(r.bind(r,83276)).then(e=>(T=e,T.load())),r.e(8377).then(r.bind(r,8377)).then(e=>(S=e,S.load())),r.e(2158).then(r.bind(r,12158)).then(e=>(_=e,_.load()))])),await b,(0,l.Te)(e),j.notify()}function z(e,t,r){return Array.isArray(e)?0===e.length?[]:((0,a.H)(e),k(e,e[0].spatialReference,t,r)):((0,a.f)(e),k([e],e.spatialReference,t,r)[0])}function k(e,t,r,n){if(null==t||null==r)return e;if(N(t,r,n))return e.map(e=>V(e,t,r));if(null==n?.geographicTransformation&&(0,u.jA)(t))return k(e.map(e=>V(e,t,y.A.WGS84)),y.A.WGS84,r,{zConversionDisabled:n?.zConversionDisabled});if(null==n?.geographicTransformation&&(0,u.jA)(r))return k(e,t,y.A.WGS84).map(e=>V(e,y.A.WGS84,r));if(!E())throw new q;if(!n?.geographicTransformation)if(n?.extendedParams)n={...n,geographicTransformation:_.getTransformation(t,r,n.areaOfInterestExtent)||new w.A};else if(!n?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,r);let l=x[e];l||(l=_.getTransformation(t,r)||new w.A,x[e]=l),n={geographicTransformation:l,zConversionDisabled:n?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof p.A?T.executeMany(e,r,n):S.executeMany(e,r,n)}function D(e,t,r){try{return z(e,t,r)}catch(e){return null}}function $(e,t){const r=G([e],t);return null!=r.pending?{pending:r.pending,geometry:null}:null!=r.geometries?{pending:null,geometry:r.geometries[0]}:{pending:null,geometry:null}}function G(e,t,r){if(!E())for(const r of e)if(null!=r&&!(0,C.aI)(r.spatialReference,t)&&(0,C.fn)(r.spatialReference)&&(0,C.fn)(t)&&!N(r.spatialReference,t))return(0,i.gc)(j),{pending:U(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,C.aI)(e.spatialReference,t)?e:(0,C.fn)(e.spatialReference)&&(0,C.fn)(t)?z(e,t,r):null)}}class q extends n.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function H(){b=null,T=null,S=null,_=null,x={}}const W={get loadPromise(){return b}};async function B(e,t,r){if((0,l.Te)(r),!e)return e;const n=G(Array.isArray(e)?e:[e],t,r);if(n.pending)return await n.pending,(0,l.Te)(r),B(e,t,r);const i=n.geometries??[];return Array.isArray(e)?i:i[0]}function N(e,t,r){return!(r?.areaOfInterestExtent||r?.extendedParams||r?.geographicTransformation)&&(!!(0,C.aI)(e,t)||(0,C.fn)(e)&&(0,C.fn)(t)&&!!(0,M.jd)(e,t))}function F(e,t){if((0,C.aI)(e,t))return!0;if(!(0,C.fn)(e)||!(0,C.fn)(t))return!1;const r=(0,C.oT)(e)||(0,C.K8)(e)||(0,C.x1)(e),n=(0,C.oT)(t)||(0,C.K8)(t)||(0,C.x1)(t);return r&&n}async function K(e,t,r,n){if(E())return(0,l.NO)(n);if(Array.isArray(e)){for(const{source:t,dest:r,options:l}of e)if(t&&r&&!N(t,r,l))return U(n)}else if(e&&t&&!N(e,t,r))return U(n);return(0,l.NO)(n)}function V(e,t,r){return e?(0,R.fT)(e)?Y(e,t,new h.A,r,0):(0,R.ZC)(e)?ie(e,t,new c.A,r,0):(0,R.Bi)(e)?ne(e,t,new d.A,r,0):(0,R.Rg)(e)?te(e,t,new g.A,r,0):(0,R.U9)(e)?X(e,t,new f.A,r,0):null:null}function J(e,t,r=t.spatialReference,n=0){return null!=r&&null!=e.spatialReference&&null!=Y(e,e.spatialReference,t,r,n)}function Y(e,t,r,n,l){ue[0]=e.x,ue[1]=e.y;const i=e.z;return ue[2]=void 0!==i?i:l,(0,v.projectBuffer)(ue,t,0,ue,n,0)?(r.x=ue[0],r.y=ue[1],r.spatialReference=n,void 0!==i||(0,u.xP)(n)?(r.z=ue[2],r.hasZ=!0):(r.z=void 0,r.hasZ=!1),void 0===e.m?(r.m=void 0,r.hasM=!1):(r.m=e.m,r.hasM=!0),r):null}function Q(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=X(e,e.spatialReference,t,r,n)}function X(e,t,r,n,l){const{points:i,hasZ:s,hasM:o}=e,a=[],u=i.length,c=[];for(const e of i)c.push(e[0],e[1],s?e[2]:l);if(!(0,v.projectBuffer)(c,t,0,c,n,0,u))return null;const p=ae(s,n);for(let e=0;e<u;++e){const t=3*e,r=c[t],n=c[t+1];p&&o?a.push([r,n,c[t+2],i[e][3]]):p?a.push([r,n,c[t+2]]):o?a.push([r,n,i[e][2]]):a.push([r,n])}return r.points=a,r.spatialReference=n,r.hasZ=s,r.hasM=o,r}function ee(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=te(e,e.spatialReference,t,r,n)}function te(e,t,r,n,l){const{curvePaths:i,paths:s,hasZ:o,hasM:a}=e;if(!(i?oe(i,o??!1,a??!1,t,r.curvePaths=[],n,l):se(s,o??!1,a??!1,t,r.paths,n,l)))return null;const u=ae(o,n);return r.spatialReference=n,r.hasZ=u,r.hasM=a,r}function re(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=ne(e,e.spatialReference,t,r,n)}function ne(e,t,r,n,l){const{curveRings:i,rings:s,hasZ:o,hasM:a}=e;return(i?oe(i,o??!1,a??!1,t,r.curveRings=[],n,l):se(s,o??!1,a??!1,t,r.rings,n,l))?(r.spatialReference=n,r.hasZ=ae(o,n),r.hasM=a,r):null}function le(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=ie(e,e.spatialReference,t,r,n)}function ie(e,t,r,n,l){const{xmin:i,ymin:s,xmax:o,ymax:a,hasZ:u,hasM:c}=e;if(!A(i,s,u?e.zmin:l,t,ue,n))return null;const p=ae(u,n);return r.xmin=ue[0],r.ymin=ue[1],p&&(r.zmin=ue[2]),A(o,a,u?e.zmax:l,t,ue,n)?(r.xmax=ue[0],r.ymax=ue[1],p&&(r.zmax=ue[2]),c&&(r.mmin=e.mmin,r.mmax=e.mmax),r.spatialReference=n,r):null}function se(e,t,r,n,l,i,s=0){const o=new Array;for(const r of e)for(const e of r)o.push(e[0],e[1],t?e[2]:s);if(!(0,v.projectBuffer)(o,n,0,o,i,0))return!1;let a=0;l.length=0;const u=t?3:2,c=ae(t,i);for(const t of e){const e=new Array;for(const n of t){const t=o.slice(a,a+=3);c||t.pop(),r&&t.push(n[u]),e.push(t)}l.push(e)}return!0}function oe(e,t,r,n,l,i,s=0){const o=new Array;for(const r of e)for(const e of r){if((0,P.FG)(e))return!1;if((0,P.aO)(e)){const[r,n]=e.c;o.push(r[0],r[1],t?r[2]:s,n[0],n[1],s);continue}if((0,P.n1)(e)){const[r,n,l]=e.b;o.push(r[0],r[1],t?r[2]:s,n[0],n[1],s,l[0],l[1],s);continue}const r=e;o.push(r[0],r[1],t?r[2]:s)}if(!(0,v.projectBuffer)(o,n,0,o,i,0))return!1;let a=0;l.length=0;const u=t?3:2,c=ae(t,i);for(const t of e){const e=new Array;for(const n of t){const t=o.slice(a,a+=3);if(c||t.pop(),r&&t.push((0,P.yP)(n)[u]),(0,P.FG)(n))return!1;if((0,P.aO)(n)){const r=o[a++],n=o[a++];++a,e.push({c:[t,[r,n]]});continue}if((0,P.n1)(n)){const r=o[a++],n=o[a++];++a;const l=o[a++],i=o[a++];++a,e.push({b:[t,[r,n],[l,i]]});continue}e.push(t)}l.push(e)}return!0}function ae(e,t){return e||(0,u.xP)(t)||(0,C.aI)(t,m.Y0)}const ue=(0,o.vt)()},98764(e,t,r){r.d(t,{GD:()=>s,Y0:()=>u,lO:()=>c});var n=r(73941),l=r(16930),i=r(21325);const s=new l.A(n.fv),o=new l.A(n.FY),a=new l.A(n.LJ),u=new l.A(n.Ro);function c(e){const t=p.get(e);if(t)return t;let r=s;if(e)if(e===o)r=o;else if(e===a)r=a;else{const t=e.wkid,n=e.latestWkid;if(null!=t||null!=n)(0,i.tl)(t)||(0,i.tl)(n)?r=o:((0,i.ZL)(t)||(0,i.ZL)(n))&&(r=a);else{const t=e.wkt2??e.wkt;if(t){const e=t.toUpperCase();e===f?r=o:e===h&&(r=a)}}}return p.set(e,r),r}const p=new Map,f=o.wkt.toUpperCase(),h=a.wkt.toUpperCase()},34403(e,t,r){r.d(t,{TP:()=>s});var n=r(79258);Math.PI;const l=n.$O.radius,i=n.$O.eccentricitySquared,s={a1:l*i,a2:l*i*l*i,a3:l*i*i/2,a4:l*i*l*i*2.5,a5:l*i+l*i*i/2,a6:1-i};n.$O.radius,n.$O.flattening,n.Sw.radius,n.Sw.flattening,n.sH.radius,n.sH.flattening,n.sH.radius},47314(e,t,r){r.r(t),r.d(t,{default:()=>b});var n,l=r(5482),i=r(11254),s=r(49186),o=r(25728),a=r(799),u=r(84952),c=r(91429),p=r(5443),f=r(86738),h=r(16930),d=r(4146),g=r(63074),y=r(16131),m=r(8303),w=r(54310),v=r(25036),M=r(33446),A=r(91806),I=r(87045),R=r(83703),C=r(36005),P=r(43937);let b=n=class extends((0,g.dM)((0,w.J)((0,v.j)((0,y.q)((0,m.A)((0,o.M)(d.A))))))){constructor(...e){super(...e),this.copyright="",this.fullExtent=new p.A(-20037508.342787,-20037508.34278,20037508.34278,20037508.342787,h.A.WebMercator),this.legendEnabled=!1,this.isReference=null,this.popupEnabled=!1,this.spatialReference=h.A.WebMercator,this.subDomains=null,this.tileInfo=new I.A({size:[256,256],dpi:96,format:"png8",compressionQuality:0,origin:new f.A({x:-20037508.342787,y:20037508.342787,spatialReference:h.A.WebMercator}),spatialReference:h.A.WebMercator,lods:[new A.A({level:0,scale:591657527.591555,resolution:156543.033928}),new A.A({level:1,scale:295828763.795777,resolution:78271.5169639999}),new A.A({level:2,scale:147914381.897889,resolution:39135.7584820001}),new A.A({level:3,scale:73957190.948944,resolution:19567.8792409999}),new A.A({level:4,scale:36978595.474472,resolution:9783.93962049996}),new A.A({level:5,scale:18489297.737236,resolution:4891.96981024998}),new A.A({level:6,scale:9244648.868618,resolution:2445.98490512499}),new A.A({level:7,scale:4622324.434309,resolution:1222.99245256249}),new A.A({level:8,scale:2311162.217155,resolution:611.49622628138}),new A.A({level:9,scale:1155581.108577,resolution:305.748113140558}),new A.A({level:10,scale:577790.554289,resolution:152.874056570411}),new A.A({level:11,scale:288895.277144,resolution:76.4370282850732}),new A.A({level:12,scale:144447.638572,resolution:38.2185141425366}),new A.A({level:13,scale:72223.819286,resolution:19.1092570712683}),new A.A({level:14,scale:36111.909643,resolution:9.55462853563415}),new A.A({level:15,scale:18055.954822,resolution:4.77731426794937}),new A.A({level:16,scale:9027.977411,resolution:2.38865713397468}),new A.A({level:17,scale:4513.988705,resolution:1.19432856685505}),new A.A({level:18,scale:2256.994353,resolution:.597164283559817}),new A.A({level:19,scale:1128.497176,resolution:.298582141647617}),new A.A({level:20,scale:564.248588,resolution:.14929107082380833}),new A.A({level:21,scale:282.124294,resolution:.07464553541190416}),new A.A({level:22,scale:141.062147,resolution:.03732276770595208}),new A.A({level:23,scale:70.5310735,resolution:.01866138385297604})]}),this.type="web-tile",this.urlTemplate=null,this.wmtsInfo=null}normalizeCtorArgs(e,t){return"string"==typeof e?{urlTemplate:e,...t}:e}load(e){const t=this.loadFromPortal({supportedTypes:["WMTS"]},e).then(()=>{let e="";if(this.urlTemplate)if(this.spatialReference.equals(this.tileInfo.spatialReference)){const t=new u.s0(this.urlTemplate);!(this.subDomains&&this.subDomains.length>0)&&t.authority?.includes("{subDomain}")&&(e="is missing 'subDomains' property")}else e="spatialReference must match tileInfo.spatialReference";else e="is missing the required 'urlTemplate' property value";if(e)throw new s.A("web-tile-layer:load",`WebTileLayer (title: '${this.title}', id: '${this.id}') ${e}`)});return this.addResolvingPromise(t),Promise.resolve(this)}get levelValues(){const e=[];if(!this.tileInfo)return null;for(const t of this.tileInfo.lods)e[t.level]=t.levelValue||t.level;return e}get loaded(){return super.loaded}readSpatialReference(e,t){return e||h.A.fromJSON(t.fullExtent?.spatialReference)}get tileServers(){if(!this.urlTemplate)return null;const e=[],{urlTemplate:t,subDomains:r}=this,n=new u.s0(t),l=n.scheme?n.scheme+"://":"//",i=l+n.authority+"/",s=n.authority;if(s?.includes("{subDomain}")){if(r&&r.length>0&&s.split(".").length>1)for(const t of r)e.push(l+s.replaceAll(/\{subDomain\}/gi,t)+"/")}else e.push(i);return e.map(u.Il)}get urlPath(){if(!this.urlTemplate)return null;const e=this.urlTemplate,t=new u.s0(e),r=(t.scheme?t.scheme+"://":"//")+t.authority+"/";return e.slice(r.length)}readUrlTemplate(e,t){return e||t.templateUrl}writeUrlTemplate(e,t){(0,u.BQ)(e)&&(e="https:"+e),e&&(e=e.replaceAll(/\{z\}/gi,"{level}").replaceAll(/\{x\}/gi,"{col}").replaceAll(/\{y\}/gi,"{row}"),e=(0,u.S8)(e)),t.templateUrl=e}fetchTile(e,t,r,n={}){const{signal:l}=n,s=this.getTileUrl(e,t,r),o={responseType:"image",signal:l,query:{...this.refreshParameters}};return(0,i.A)(s,o).then(e=>e.data)}async fetchImageBitmapTile(e,t,r,l={}){const{signal:s}=l;if(this.fetchTile!==n.prototype.fetchTile){const n=await this.fetchTile(e,t,r,l);return(0,M.C)(n,e,t,r,s)}const o=this.getTileUrl(e,t,r),a={responseType:"blob",signal:s,query:{...this.refreshParameters}},{data:u}=await(0,i.A)(o,a);return(0,M.C)(u,e,t,r,s)}getTileUrl(e,t,r){const{levelValues:n,tileServers:l,urlPath:i}=this;if(!n||!l||!i)return"";const s=n[e];return l[t%l.length]+(0,a.HC)(i,{level:s,z:s,col:r,x:r,row:t,y:t})}};(0,l.Cg)([(0,c.MZ)({type:String,value:"",json:{write:!0}})],b.prototype,"copyright",void 0),(0,l.Cg)([(0,c.MZ)({type:p.A,json:{write:!0},nonNullable:!0})],b.prototype,"fullExtent",void 0),(0,l.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1,write:!1}})],b.prototype,"legendEnabled",void 0),(0,l.Cg)([(0,c.MZ)({type:["show","hide"]})],b.prototype,"listMode",void 0),(0,l.Cg)([(0,c.MZ)({json:{read:!0,write:!0}})],b.prototype,"blendMode",void 0),(0,l.Cg)([(0,c.MZ)()],b.prototype,"levelValues",null),(0,l.Cg)([(0,c.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],b.prototype,"isReference",void 0),(0,l.Cg)([(0,c.MZ)({type:["WebTiledLayer"],value:"WebTiledLayer"})],b.prototype,"operationalLayerType",void 0),(0,l.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1,write:!1}})],b.prototype,"popupEnabled",void 0),(0,l.Cg)([(0,c.MZ)({type:h.A})],b.prototype,"spatialReference",void 0),(0,l.Cg)([(0,C.w)("spatialReference",["spatialReference","fullExtent.spatialReference"])],b.prototype,"readSpatialReference",null),(0,l.Cg)([(0,c.MZ)({type:[String],json:{write:!0}})],b.prototype,"subDomains",void 0),(0,l.Cg)([(0,c.MZ)({type:I.A,json:{write:!0}})],b.prototype,"tileInfo",void 0),(0,l.Cg)([(0,c.MZ)({readOnly:!0})],b.prototype,"tileServers",null),(0,l.Cg)([(0,c.MZ)({json:{read:!1}})],b.prototype,"type",void 0),(0,l.Cg)([(0,c.MZ)()],b.prototype,"urlPath",null),(0,l.Cg)([(0,c.MZ)({type:String,json:{origins:{"portal-item":{read:{source:"url"}}}}})],b.prototype,"urlTemplate",void 0),(0,l.Cg)([(0,C.w)("urlTemplate",["urlTemplate","templateUrl"])],b.prototype,"readUrlTemplate",null),(0,l.Cg)([(0,P.K)("urlTemplate",{templateUrl:{type:String}})],b.prototype,"writeUrlTemplate",null),(0,l.Cg)([(0,c.MZ)({type:R.x,json:{write:!0}})],b.prototype,"wmtsInfo",void 0),b=n=(0,l.Cg)([(0,c.$K)("esri.layers.WebTileLayer")],b)},8303(e,t,r){r.d(t,{A:()=>A});var n=r(5482),l=r(92602),i=r(70333),s=r(11254),o=r(60999),a=r(49186),u=r(53966),c=r(97768),p=r(74887),f=r(84952),h=r(91429),d=r(77548),g=r(20655),y=r(80812),m=r(41318),w=r(10407),v=r(36005),M=r(43937);const A=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(){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 y.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:n}=await r.e(1204).then(r.bind(r,41204));return(0,p.Te)(t),await n({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)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,p.QP)(e),!0)))}async setUserPrivileges(e,t){if(!l.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:n},content:{updateItem:l}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",n),this._set("userHasUpdateItemPrivileges",l)}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 n=!i.id?.findCredential(this.url),l=e===r.id;if(l&&r.portal.user)return this._getUserPrivileges(r,n);let s,o;if(l)s=r.portal.url;else try{s=await(0,d.wI)(this.url,t)}catch(e){(0,p.QP)(e)}if(!s||!(0,f.b8)(s,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(i.id?.getCredential(`${s}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.QP)(e)}const a=!0,u=!1,c=!1;if(!o)return{features:{edit:a,fullEdit:u},content:{updateItem:c}};try{if(l?await r.reload():(r=new y.default({id:e,portal:{url:s}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,n)}catch(e){(0,p.QP)(e)}return{features:{edit:a,fullEdit:u},content:{updateItem:c}}}_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?i.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=i.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const n=`${r.owningSystemUrl}/sharing/rest`,l=g.A.getDefault();if(l&&l.loaded&&(0,f.S8)(l.restUrl)===(0,f.S8)(n))return l.user;const a=`${n}/community/self`,u=null!=e?e.signal:null,c=await(0,o.Ke)((0,s.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?m.A.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,n=this.portalItem?.id&&(this.portalItem.portal||g.A.getDefault());return r&&n&&!(0,f.ut)(n.restUrl,r.restUrl)?(t.messages&&t.messages.push(new a.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,n.Cg)([(0,h.MZ)({type:y.default})],A.prototype,"portalItem",null),(0,n.Cg)([(0,v.w)("web-document","portalItem",["itemId"])],A.prototype,"readPortalItem",null),(0,n.Cg)([(0,M.K)("web-document","portalItem",{itemId:{type:String}})],A.prototype,"writePortalItem",null),(0,n.Cg)([(0,h.MZ)({clonable:!1})],A.prototype,"resourceReferences",void 0),(0,n.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],A.prototype,"userHasEditingPrivileges",void 0),(0,n.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],A.prototype,"userHasFullEditingPrivileges",void 0),(0,n.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],A.prototype,"userHasUpdateItemPrivileges",void 0),A=(0,n.Cg)([(0,h.$K)("esri.layers.mixins.PortalLayer")],A),A},I={credential:null,user:null}},91806(e,t,r){r.d(t,{A:()=>a});var n,l=r(5482),i=r(25482),s=r(91429),o=r(56507);let a=class extends i.o{static{n=this}constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new n({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,l.Cg)([(0,s.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"cols",void 0),(0,l.Cg)([(0,s.MZ)({type:o.jz,json:{write:!0}})],a.prototype,"level",void 0),(0,l.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"levelValue",void 0),(0,l.Cg)([(0,s.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"origin",void 0),(0,l.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],a.prototype,"resolution",void 0),(0,l.Cg)([(0,s.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"rows",void 0),(0,l.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],a.prototype,"scale",void 0),a=n=(0,l.Cg)([(0,s.$K)("esri.layers.support.LOD")],a)},87045(e,t,r){r.d(t,{A:()=>v});var n,l=r(5482),i=r(66552),s=r(25482),o=r(86211),a=r(91429),u=r(56507),c=r(86738),p=r(16930),f=r(21325),h=r(28735),d=r(91806),g=r(72802),y=r(36005),m=r(43937);const w=new i.J({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let v=class extends s.o{static{n=this}static create(e={}){const{resolutionFactor:t=1,scales:r,size:l=256,spatialReference:i=p.A.WebMercator,numLODs:s=24}=e;if(!(0,f.fn)(i)){const e=[];if(r)for(let t=0;t<r.length;t++){const n=r[t];e.push(new d.A({level:t,scale:n,resolution:n}))}else{let t=5e-4;for(let r=s-1;r>=0;r--)e.unshift(new d.A({level:r,scale:t,resolution:t})),t*=2}return new n({dpi:96,lods:e,origin:new c.A(0,0,i),size:[l,l],spatialReference:i})}const a=(0,f.Vp)(i),u=e.origin?new c.A({x:e.origin.x,y:e.origin.y,spatialReference:i}):new c.A(a?{x:a.origin[0],y:a.origin[1],spatialReference:i}:{x:0,y:0,spatialReference:i}),h=1/(39.37*(0,o.GA)(i)*96),g=[];if(r)for(let e=0;e<r.length;e++){const t=r[e],n=t*h;g.push(new d.A({level:e,scale:t,resolution:n}))}else{let e=(0,f.EA)(i)?512/l*591657527.5917094:256/l*591657527.591555;const r=Math.ceil(s/t);g.push(new d.A({level:0,scale:e,resolution:e*h}));for(let n=1;n<r;n++){const r=e/2**t,l=r*h;g.push(new d.A({level:n,scale:r,resolution:l})),e=r}}return new n({dpi:96,lods:g,origin:u,size:[l,l],spatialReference:i})}constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){const{spatialReference:e,origin:t}=this;if(e&&t){const r=(0,f.Vp)(e);return e.isWrappable&&!!r&&Math.abs(r.origin[0]-t.x)<=r.dx}return!1}readOrigin(e,t){return c.A.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,r=0;const n=[],l=this._levelToLOD={};e&&(t=-1/0,r=1/0,e.forEach(e=>{n.push(e.scale),t=e.scale>t?e.scale:t,r=e.scale<r?e.scale:r,l[e.level]=e})),this._set("scales",n),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){const t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];const r=Math.floor(e),n=r+1;return t[r]/(t[r]/t[n])**(e-r)}scaleToZoom(e){const t=this.scales,r=t.length-1;let n=0;for(;n<r;n++){const r=t[n],l=t[n+1];if(r<=e)return n;if(l===e)return n+1;if(r>e&&l<e)return n+Math.log(r/e)/Math.log(r/l)}return n}tileAt(e,t,r,n){const l=this.lodAt(e);if(!l)return null;let i,s;if("number"==typeof t)i=t,s=r;else if((0,f.aI)(t.spatialReference,this.spatialReference))i=t.x,s=t.y,n=r;else{const e=(0,h.Cv)(t,this.spatialReference);if(null==e)return null;i=e.x,s=e.y,n=r}const o=l.resolution*this.size[0],a=l.resolution*this.size[1];return n??=new g.U(0,0,0),n.level=e,n.row=Math.floor((this.origin.y-s)/a+.001),n.col=Math.floor((i-this.origin.x)/o+.001),this.updateTileInfo(n),n}updateTileInfo(e,t=0){if(!("extent"in e))return!1;let r=this.lodAt(e.level);if(!r&&1===t){const t=this.lods[this.lods.length-1];t.level<e.level&&(r=t)}if(!r)return!1;const n=e.level-r.level,l=r.resolution*this.size[0]/2**n,i=r.resolution*this.size[1]/2**n;return e.extent[0]=this.origin.x+e.col*l,e.extent[1]=this.origin.y-(e.row+1)*i,e.extent[2]=e.extent[0]+l,e.extent[3]=e.extent[1]+i,!0}upsampleTile(e){const t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){const r=this.lodAt(t.level);if(null==r)return null;const{resolution:n}=r,l=n*this.size[0],i=n*this.size[1];return e[0]=this.origin.x+t.col*l,e[1]=this.origin.y-(t.row+1)*i,e[2]=e[0]+l,e[3]=e[1]+i,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return n.fromJSON(this.write({}))}getCompatibleForVTL(e){if(this.size[0]!==this.size[1]||256===this.size[0]&&512===e)return null;const t=(512===this.size[0]&&256===e?-1:0)+(this.spatialReference.isGeographic?1:0);if(this.size[0]===e&&0===t)return this;const r=[],l=this.lods.length-t;for(let e=0;e<l;e++){const n=e+t,{scale:l,resolution:i}=n>=0?this.lods[n]:{scale:2*this.lods[0].scale,resolution:2*this.lods[0].resolution};r.push(new d.A({level:e,scale:l,resolution:i}))}return new n({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:r})}_initializeUpsampleLevels(){const e=this.lods;this._upsampleLevels=[];let t=null;for(let r=0;r<e.length;r++){const n=e[r];this._upsampleLevels[n.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/n.resolution:0},t=n}}};(0,l.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"compressionQuality",void 0),(0,l.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"dpi",void 0),(0,l.Cg)([(0,a.MZ)({type:String,json:{read:w.read,write:w.write,origins:{"web-scene":{read:!1,write:!1}}}})],v.prototype,"format",void 0),(0,l.Cg)([(0,a.MZ)({readOnly:!0})],v.prototype,"isWrappable",null),(0,l.Cg)([(0,a.MZ)({type:c.A,json:{write:!0}})],v.prototype,"origin",void 0),(0,l.Cg)([(0,y.w)("origin")],v.prototype,"readOrigin",null),(0,l.Cg)([(0,a.MZ)({type:[d.A],value:null,json:{write:!0}})],v.prototype,"lods",null),(0,l.Cg)([(0,a.MZ)({readOnly:!0})],v.prototype,"scales",void 0),(0,l.Cg)([(0,a.MZ)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],v.prototype,"size",void 0),(0,l.Cg)([(0,y.w)("size",["rows","cols"])],v.prototype,"readSize",null),(0,l.Cg)([(0,m.K)("size",{cols:{type:u.jz},rows:{type:u.jz}})],v.prototype,"writeSize",null),(0,l.Cg)([(0,a.MZ)({type:p.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),v=n=(0,l.Cg)([(0,a.$K)("esri.layers.support.TileInfo")],v)},72802(e,t,r){r.d(t,{U:()=>l});var n=r(19419);class l{constructor(e,t,r,l=(0,n.vt)()){this._level=e,this._row=t,this._col=r,this.extent=l}get id(){return this._id??=`${this.level}/${this.row}/${this.col}`,this._id}get level(){return this._level}set level(e){this._level=e,this._id=null}get row(){return this._row}set row(e){this._row=e,this._id=null}get col(){return this._col}set col(e){this._col=e,this._id=null}toJSON(){return{level:this._level,row:this._row,col:this._col,extent:this.extent}}static fromJSON(e){return new l(e.level,e.row,e.col,e.extent)}}},83703(e,t,r){r.d(t,{x:()=>a});var n,l=r(5482),i=r(25482),s=r(4718),o=r(91429);let a=n=class extends i.o{constructor(e){super(e)}clone(){return new n({customLayerParameters:(0,s.o8)(this.customLayerParameters),customParameters:(0,s.o8)(this.customParameters),layerIdentifier:this.layerIdentifier,tileMatrixSet:this.tileMatrixSet,url:this.url})}};(0,l.Cg)([(0,o.MZ)({json:{type:Object,write:!0}})],a.prototype,"customLayerParameters",void 0),(0,l.Cg)([(0,o.MZ)({json:{type:Object,write:!0}})],a.prototype,"customParameters",void 0),(0,l.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"layerIdentifier",void 0),(0,l.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"tileMatrixSet",void 0),(0,l.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"url",void 0),a=n=(0,l.Cg)([(0,o.$K)("esri.layers.support.WMTSLayerInfo")],a)},33446(e,t,r){r.d(t,{C:()=>s,m:()=>i});var n=r(49186),l=r(74887);async function i(e,t,r){let i;try{i=await createImageBitmap(e)}catch(e){throw new n.A("request:server",`Unable to load ${t}`,{url:t,error:e})}return(0,l.Te)(r),i}async function s(e,t,r,i,s){let o;try{o=await createImageBitmap(e)}catch(e){throw new n.A("request:server",`Unable to load tile ${t}/${r}/${i}`,{error:e,level:t,row:r,col:i})}return(0,l.Te)(s),o}},10407(e,t,r){r.d(t,{It:()=>h,LG:()=>s,OM:()=>u,Sm:()=>c,Y:()=>o,bK:()=>a,mm:()=>f,sQ:()=>p});var n=r(91218),l=r(16930),i=r(28735);function s(e,t){if(!o(e,t)){const r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function o(e,t){return!!e.typeKeywords?.includes(t)}function a(e){return o(e,f.HOSTED_SERVICE)}function u(e,t){const r=e.typeKeywords;if(r){const e=r.indexOf(t);e>-1&&r.splice(e,1)}}function c(e,t,r){r?s(e,t):u(e,t)}async function p(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,i.ci)(e);const r=l.A.WGS84;return await(0,n.initializeProjection)(t,r),(0,n.project)(e,r)}(r)}const f={CHARTS:"Charts",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",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function h(e){const{portal:t,isOrgItem:r,itemControl:n}=e,l=t.user?.privileges;let i=!l||l.includes("features:user:edit"),s=!!r&&!!l?.includes("features:user:fullEdit");const o="update"===n||"admin"===n;return o?s=i=!0:s&&(i=!0),{features:{edit:i,fullEdit:s},content:{updateItem:o}}}},78553(e,t,r){r.d(t,{D:()=>i,p:()=>l});var n=r(56507);function l(e){const t=(0,n.Vr)(100*(1-e));return Math.max(0,Math.min(t,100))}function i(e){const t=1-e/100;return Math.max(0,Math.min(t,1))}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9156],{60999(e,t,r){r.d(t,{DZ:()=>d,Ke:()=>h,Tj:()=>c,UT:()=>g,aD:()=>m,jJ:()=>u});var n=r(5482),l=r(69622),i=r(97768),s=r(17676),o=r(10107),a=r(64108);function u(e,t,r){return(0,s.Lx)(e.map((e,n)=>t.apply(r,[e,n])))}async function c(e,t,r){return(await(0,s.Lx)(e.map((e,n)=>t.apply(r,[e,n])))).map(e=>e.value)}function p(e){return{ok:!0,value:e}}function f(e){return{ok:!1,error:e}}async function h(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return p(await e)}catch(e){return f(e)}}async function d(e){try{return p(await e)}catch(e){return(0,s.QP)(e),f(e)}}function g(e,t){return new y(e,t)}let y=class extends l.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,i.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:r}=this._abortController;this.promise=e(r),this.promise.then(e=>{this._result=p(e),this._cleanup()},e=>{this._result=f(e),this._cleanup()}),this._abortHandle=(0,s.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,i.xt)(this._abortHandle),this._abortController=null}};(0,n.Cg)([(0,o.MZ)()],y.prototype,"value",null),(0,n.Cg)([(0,o.MZ)()],y.prototype,"error",null),(0,n.Cg)([(0,o.MZ)()],y.prototype,"finished",null),(0,n.Cg)([(0,o.MZ)()],y.prototype,"promise",void 0),(0,n.Cg)([(0,o.MZ)()],y.prototype,"_result",void 0),y=(0,n.Cg)([(0,a.$)("esri.core.asyncUtils.ReactiveTask")],y);class m{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});const t=await e;return{[Symbol.dispose]:t}}async run(e){const t={stack:[],error:void 0,hasError:!1};try{return(0,n.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,n.hk)(t)}}}},159(e,t,r){r.d(t,{A:()=>u});var n,l=r(5482),i=r(69540),s=r(25482),o=r(91429),a=r(99157);let u=n=class extends((0,i.OU)(s.o)){constructor(e){super(e),this.steps=[]}getInverse(){const e=new n;for(let t=this.steps.length-1;t>=0;t--){const r=this.steps[t];e.steps.push(r.getInverse())}return e}};(0,l.Cg)([(0,o.MZ)({type:[a.A],nonNullable:!0,json:{name:"geoTransforms"}})],u.prototype,"steps",void 0),u=n=(0,l.Cg)([(0,o.$K)("esri.geometry.operators.support.GeographicTransformation")],u)},99157(e,t,r){r.d(t,{A:()=>a});var n,l=r(5482),i=r(69540),s=r(25482),o=r(91429);let a=n=class extends((0,i.OU)(s.o)){constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new n({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,l.Cg)([(0,o.MZ)({json:{name:"transformForward",read:e=>!e,write:(e,t,r)=>{t[r]=!e}}})],a.prototype,"isInverse",void 0),(0,l.Cg)([(0,o.MZ)({json:{write:!0}})],a.prototype,"wkt",void 0),(0,l.Cg)([(0,o.MZ)({json:{write:!0}})],a.prototype,"wkid",void 0),a=n=(0,l.Cg)([(0,o.$K)("esri.geometry.operators.support.GeographicTransformationStep")],a)},9762(e,t,r){r.r(t),r.d(t,{projectBuffer:()=>l});var n=r(49208);function l(e,t,r,l,i,s,o=Math.floor(e.length/3)){const a=(0,n.jd)(t,i);if(null==a)return!1;if(a===n.pO){if(e===l&&r===s)return!0;const t=r+3*o;for(let n=r,i=s;n<t;n++,i++)l[i]=e[n]??0;return!0}const u=r+3*o;for(let t=r,n=s;t<u;t+=3,n+=3)a(e,t,l,n);return!0}},49208(e,t,r){r.d(t,{Tp:()=>p,jd:()=>c,pO:()=>h,w5:()=>u});var n=r(34727),l=r(86211),i=r(73941),s=r(79258),o=r(34403),a=r(21325);const u={2:{5:h,7:null,9:null,10:h,1:A,6:null,8:null,0:null,3:g,11:y,2:h,4:b},5:{5:h,7:null,9:null,10:h,1:A,6:null,8:null,0:null,3:g,11:y,2:h,4:b},7:{5:null,7:h,9:null,10:h,1:null,6:M,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:h,10:h,1:null,6:null,8:v,0:null,3:null,11:null,2:null,4:null},3:{5:d,7:null,9:null,10:d,1:function(e,t,r,n){const l=e[t]/E,i=j-2*Math.atan(Math.exp(-e[t+1]/E)),s=E+(e[t+2]??0),o=Math.cos(i)*s;r[n]=Math.cos(l)*o,r[n+1]=Math.sin(l)*o,r[n+2]=Math.sin(i)*s},6:null,8:null,0:null,3:h,11:function(e,t,r,n){d(e,t,r,n),y(r,n,r,n)},2:d,4:function(e,t,r,n){d(e,t,r,n),b(r,n,r,n)}},4:{5:T,7:null,9:null,10:T,1:function(e,t,r,n){T(e,t,r,n),A(r,n,r,n)},6:null,8:null,0:null,3:function(e,t,r,n){T(e,t,r,n),g(r,n,r,n)},11:function(e,t,r,n){T(e,t,r,n),y(r,n,r,n)},2:T,4:h},1:{5:P,7:null,9:null,10:P,1:h,6:null,8:null,0:null,3:function(e,t,r,n){P(e,t,r,n),g(r,n,r,n)},11:function(e,t,r,n){P(e,t,r,n),y(r,n,r,n)},2:P,4:function(e,t,r,n){P(e,t,r,n),b(r,n,r,n)}},6:{5:null,7:C,9:null,10:C,1:null,6:h,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:R,10:R,1:null,6:null,8:h,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:h,3:null,11:null,2:null,4:null},10:{5:h,7:h,9:h,10:h,1:A,6:M,8:v,0:null,3:g,11:y,2:h,4:b},11:{5:m,7:null,9:null,10:m,1:function(e,t,r,n){m(e,t,r,n),A(r,n,r,n)},6:null,8:null,0:null,3:function(e,t,r,n){m(e,t,r,n),g(r,n,r,n)},11:h,2:m,4:function(e,t,r,n){m(e,t,r,n),b(r,n,r,n)}}};function c(e,t){return p(e,t)?.projector}function p(e,t){if(null==e||null==t)return null;if(S.source.spatialReference===e&&S.dest.spatialReference===t)return S;const r=f(e,S.source),n=f(t,S.dest);return 0===r&&0===n?(0,a.aI)(e,t)?S.projector=h:S.projector=null:S.projector=u[r][n],S}function f(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,l.GA)(e,1)),(0,i.jA)(e)?t.spatialReferenceId=1:(0,a.oT)(e)?t.spatialReferenceId=2:(0,a.K8)(e)?t.spatialReferenceId=3:(0,a.r1)(e)?t.spatialReferenceId=11:e.wkt===i.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===i.FY.wkt?t.spatialReferenceId=6:e.wkt===i.LJ.wkt?t.spatialReferenceId=8:(0,i.q8)(e)?t.spatialReferenceId=7:(0,i.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function h(e,t,r,n){e!==r&&(r[n++]=e[t++],r[n++]=e[t++],r[n]=e[t]??0)}function d(e,t,r,n){r[n]=x*(e[t]/E),r[n+1]=x*(j-2*Math.atan(Math.exp(-e[t+1]/E))),r[n+2]=e[t+2]??0}function g(e,t,r,l){!function(e,t,r,l,i){const s=.4999999*Math.PI,o=(0,n.qE)(_*e[t+1],-s,s),a=Math.sin(o);r[l++]=_*e[t]*i.radius,r[l++]=i.halfSemiMajorAxis*Math.log((1+a)/(1-a)),r[l]=e[t+2]??0}(e,t,r,l,s.$O)}function y(e,t,r,n){r[n]=e[t]*Z,r[n+1]=e[t+1]*Z,r[n+2]=e[t+2]??0}function m(e,t,r,n){r[n]=e[t]*L,r[n+1]=e[t+1]*L,r[n+2]=e[t+2]??0}function w(e,t,r,n,l){const i=l+(e[t+2]??0),s=_*e[t],o=_*e[t+1],a=Math.cos(o)*i;r[n]=Math.cos(s)*a,r[n+1]=Math.sin(s)*a,r[n+2]=Math.sin(o)*i}function v(e,t,r,n){w(e,t,r,n,s.Sw.radius)}function M(e,t,r,n){w(e,t,r,n,s.sH.radius)}function A(e,t,r,n){w(e,t,r,n,s.$O.radius)}function I(e,t,r,l,i){const s=e[t],o=e[t+1],a=e[t+2]??0,u=Math.sqrt(s*s+o*o+a*a),c=(0,n.YN)(a/(0===u?1:u)),p=Math.atan2(o,s);r[l++]=x*p,r[l++]=x*c,r[l]=u-i}function R(e,t,r,n){I(e,t,r,n,s.Sw.radius)}function C(e,t,r,n){I(e,t,r,n,s.sH.radius)}function P(e,t,r,n){I(e,t,r,n,s.$O.radius)}function b(e,t,r,n){!function(e,t,r,n,l){const i=_*e[t],s=_*e[t+1],o=e[t+2]??0,a=Math.sin(s),u=Math.cos(s),c=l.radius/Math.sqrt(1-l.eccentricitySquared*a*a);r[n++]=(c+o)*u*Math.cos(i),r[n++]=(c+o)*u*Math.sin(i),r[n++]=(c*(1-l.eccentricitySquared)+o)*a}(e,t,r,n,s.$O)}function T(e,t,r,n){const l=o.TP,i=e[t],a=e[t+1],u=e[t+2]??0;let c,p,f,h,d,g,y,m,w,v,M,A,I,R,C,P,b,T,S,_,j;c=Math.abs(u),p=i*i+a*a,f=Math.sqrt(p),h=p+u*u,d=Math.sqrt(h),_=Math.atan2(a,i),g=u*u/h,y=p/h,R=l.a2/d,C=l.a3-l.a4/d,y>.3?(m=c/d*(1+y*(l.a1+R+g*C)/d),S=Math.asin(m),v=m*m,w=Math.sqrt(1-v)):(w=f/d*(1-g*(l.a5-R-y*C)/d),S=Math.acos(w),v=1-w*w,m=Math.sqrt(v)),M=1-s.$O.eccentricitySquared*v,A=s.$O.radius/Math.sqrt(M),I=l.a6*A,R=f-A*w,C=c-I*m,b=w*R+m*C,P=w*C-m*R,T=P/(I/M+b),S+=T,j=b+P*T/2,u<0&&(S=-S),r[n++]=x*_,r[n++]=x*S,r[n]=j}const S={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:h},_=(0,n.kU)(1),x=(0,n.KJ)(1),j=.5*Math.PI,E=s.$O.radius,Z=E*Math.PI/180,L=180/(E*Math.PI)},91218(e,t,r){r.r(t),r.d(t,{canProjectWithoutEngine:()=>N,initializeProjection:()=>K,isEqualBaseGCS:()=>F,isLoaded:()=>E,isLoadedOrLoad:()=>Z,isLoadedOrLoadFor:()=>L,load:()=>U,project:()=>z,projectAsync:()=>B,projectExtent:()=>le,projectMany:()=>k,projectMultipoint:()=>Q,projectOrLoad:()=>$,projectOrLoadMany:()=>G,projectPoint:()=>J,projectPolygon:()=>re,projectPolyline:()=>ee,projectWithoutEngine:()=>V,requiresLoad:()=>O,test:()=>W,tryProject:()=>D,unload:()=>H});var n=r(49186),l=r(17676),i=r(62788),s=r(95488),o=r(51850),a=r(21276),u=r(73941),c=r(5443),p=r(91075),f=r(48526),h=r(86738),d=r(39829),g=r(82799),y=r(16930),m=r(98764),w=r(159),v=r(9762),M=r(49208);function A(e,t,r,n,l,i){return I[0]=e,I[1]=t,I[2]=r,(0,v.projectBuffer)(I,n,0,l,i,0)}const I=(0,o.vt)();var R=r(60408),C=r(21325),P=r(52006);let b=null,T=null,S=null,_=null,x={};const j=new s.I;function E(){return!!(T?.isLoaded()&&S?.isLoaded()&&_?.isLoaded())}function Z(){return!!E()||((0,i.gc)(j),U(),!1)}function L(e,t){return!e||!t||N(e,t)||Z()}function O(e,t){return!N(e,t)&&!E()}async function U(e){null==b&&(b=Promise.all([r.e(3276).then(r.bind(r,83276)).then(e=>(T=e,T.load())),r.e(8377).then(r.bind(r,8377)).then(e=>(S=e,S.load())),r.e(2158).then(r.bind(r,12158)).then(e=>(_=e,_.load()))])),await b,(0,l.Te)(e),j.notify()}function z(e,t,r){return Array.isArray(e)?0===e.length?[]:((0,a.H)(e),k(e,e[0].spatialReference,t,r)):((0,a.f)(e),k([e],e.spatialReference,t,r)[0])}function k(e,t,r,n){if(null==t||null==r)return e;if(N(t,r,n))return e.map(e=>V(e,t,r));if(null==n?.geographicTransformation&&(0,u.jA)(t))return k(e.map(e=>V(e,t,y.A.WGS84)),y.A.WGS84,r,{zConversionDisabled:n?.zConversionDisabled});if(null==n?.geographicTransformation&&(0,u.jA)(r))return k(e,t,y.A.WGS84).map(e=>V(e,y.A.WGS84,r));if(!E())throw new q;if(!n?.geographicTransformation)if(n?.extendedParams)n={...n,geographicTransformation:_.getTransformation(t,r,n.areaOfInterestExtent)||new w.A};else if(!n?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,r);let l=x[e];l||(l=_.getTransformation(t,r)||new w.A,x[e]=l),n={geographicTransformation:l,zConversionDisabled:n?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof p.A?T.executeMany(e,r,n):S.executeMany(e,r,n)}function D(e,t,r){try{return z(e,t,r)}catch(e){return null}}function $(e,t){const r=G([e],t);return null!=r.pending?{pending:r.pending,geometry:null}:null!=r.geometries?{pending:null,geometry:r.geometries[0]}:{pending:null,geometry:null}}function G(e,t,r){if(!E())for(const r of e)if(null!=r&&!(0,C.aI)(r.spatialReference,t)&&(0,C.fn)(r.spatialReference)&&(0,C.fn)(t)&&!N(r.spatialReference,t))return(0,i.gc)(j),{pending:U(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,C.aI)(e.spatialReference,t)?e:(0,C.fn)(e.spatialReference)&&(0,C.fn)(t)?z(e,t,r):null)}}class q extends n.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function H(){b=null,T=null,S=null,_=null,x={}}const W={get loadPromise(){return b}};async function B(e,t,r){if((0,l.Te)(r),!e)return e;const n=G(Array.isArray(e)?e:[e],t,r);if(n.pending)return await n.pending,(0,l.Te)(r),B(e,t,r);const i=n.geometries??[];return Array.isArray(e)?i:i[0]}function N(e,t,r){return!(r?.areaOfInterestExtent||r?.extendedParams||r?.geographicTransformation)&&(!!(0,C.aI)(e,t)||(0,C.fn)(e)&&(0,C.fn)(t)&&!!(0,M.jd)(e,t))}function F(e,t){if((0,C.aI)(e,t))return!0;if(!(0,C.fn)(e)||!(0,C.fn)(t))return!1;const r=(0,C.oT)(e)||(0,C.K8)(e)||(0,C.x1)(e),n=(0,C.oT)(t)||(0,C.K8)(t)||(0,C.x1)(t);return r&&n}async function K(e,t,r,n){if(E())return(0,l.NO)(n);if(Array.isArray(e)){for(const{source:t,dest:r,options:l}of e)if(t&&r&&!N(t,r,l))return U(n)}else if(e&&t&&!N(e,t,r))return U(n);return(0,l.NO)(n)}function V(e,t,r){return e?(0,R.fT)(e)?Y(e,t,new h.A,r,0):(0,R.ZC)(e)?ie(e,t,new c.A,r,0):(0,R.Bi)(e)?ne(e,t,new d.A,r,0):(0,R.Rg)(e)?te(e,t,new g.A,r,0):(0,R.U9)(e)?X(e,t,new f.A,r,0):null:null}function J(e,t,r=t.spatialReference,n=0){return null!=r&&null!=e.spatialReference&&null!=Y(e,e.spatialReference,t,r,n)}function Y(e,t,r,n,l){ue[0]=e.x,ue[1]=e.y;const i=e.z;return ue[2]=void 0!==i?i:l,(0,v.projectBuffer)(ue,t,0,ue,n,0)?(r.x=ue[0],r.y=ue[1],r.spatialReference=n,void 0!==i||(0,u.xP)(n)?(r.z=ue[2],r.hasZ=!0):(r.z=void 0,r.hasZ=!1),void 0===e.m?(r.m=void 0,r.hasM=!1):(r.m=e.m,r.hasM=!0),r):null}function Q(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=X(e,e.spatialReference,t,r,n)}function X(e,t,r,n,l){const{points:i,hasZ:s,hasM:o}=e,a=[],u=i.length,c=[];for(const e of i)c.push(e[0],e[1],s?e[2]:l);if(!(0,v.projectBuffer)(c,t,0,c,n,0,u))return null;const p=ae(s,n);for(let e=0;e<u;++e){const t=3*e,r=c[t],n=c[t+1];p&&o?a.push([r,n,c[t+2],i[e][3]]):p?a.push([r,n,c[t+2]]):o?a.push([r,n,i[e][2]]):a.push([r,n])}return r.points=a,r.spatialReference=n,r.hasZ=s,r.hasM=o,r}function ee(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=te(e,e.spatialReference,t,r,n)}function te(e,t,r,n,l){const{curvePaths:i,paths:s,hasZ:o,hasM:a}=e;if(!(i?oe(i,o??!1,a??!1,t,r.curvePaths=[],n,l):se(s,o??!1,a??!1,t,r.paths,n,l)))return null;const u=ae(o,n);return r.spatialReference=n,r.hasZ=u,r.hasM=a,r}function re(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=ne(e,e.spatialReference,t,r,n)}function ne(e,t,r,n,l){const{curveRings:i,rings:s,hasZ:o,hasM:a}=e;return(i?oe(i,o??!1,a??!1,t,r.curveRings=[],n,l):se(s,o??!1,a??!1,t,r.rings,n,l))?(r.spatialReference=n,r.hasZ=ae(o,n),r.hasM=a,r):null}function le(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=ie(e,e.spatialReference,t,r,n)}function ie(e,t,r,n,l){const{xmin:i,ymin:s,xmax:o,ymax:a,hasZ:u,hasM:c}=e;if(!A(i,s,u?e.zmin:l,t,ue,n))return null;const p=ae(u,n);return r.xmin=ue[0],r.ymin=ue[1],p&&(r.zmin=ue[2]),A(o,a,u?e.zmax:l,t,ue,n)?(r.xmax=ue[0],r.ymax=ue[1],p&&(r.zmax=ue[2]),c&&(r.mmin=e.mmin,r.mmax=e.mmax),r.spatialReference=n,r):null}function se(e,t,r,n,l,i,s=0){const o=new Array;for(const r of e)for(const e of r)o.push(e[0],e[1],t?e[2]:s);if(!(0,v.projectBuffer)(o,n,0,o,i,0))return!1;let a=0;l.length=0;const u=t?3:2,c=ae(t,i);for(const t of e){const e=new Array;for(const n of t){const t=o.slice(a,a+=3);c||t.pop(),r&&t.push(n[u]),e.push(t)}l.push(e)}return!0}function oe(e,t,r,n,l,i,s=0){const o=new Array;for(const r of e)for(const e of r){if((0,P.FG)(e))return!1;if((0,P.aO)(e)){const[r,n]=e.c;o.push(r[0],r[1],t?r[2]:s,n[0],n[1],s);continue}if((0,P.n1)(e)){const[r,n,l]=e.b;o.push(r[0],r[1],t?r[2]:s,n[0],n[1],s,l[0],l[1],s);continue}const r=e;o.push(r[0],r[1],t?r[2]:s)}if(!(0,v.projectBuffer)(o,n,0,o,i,0))return!1;let a=0;l.length=0;const u=t?3:2,c=ae(t,i);for(const t of e){const e=new Array;for(const n of t){const t=o.slice(a,a+=3);if(c||t.pop(),r&&t.push((0,P.yP)(n)[u]),(0,P.FG)(n))return!1;if((0,P.aO)(n)){const r=o[a++],n=o[a++];++a,e.push({c:[t,[r,n]]});continue}if((0,P.n1)(n)){const r=o[a++],n=o[a++];++a;const l=o[a++],i=o[a++];++a,e.push({b:[t,[r,n],[l,i]]});continue}e.push(t)}l.push(e)}return!0}function ae(e,t){return e||(0,u.xP)(t)||(0,C.aI)(t,m.Y0)}const ue=(0,o.vt)()},98764(e,t,r){r.d(t,{GD:()=>s,Y0:()=>u,lO:()=>c});var n=r(73941),l=r(16930),i=r(21325);const s=new l.A(n.fv),o=new l.A(n.FY),a=new l.A(n.LJ),u=new l.A(n.Ro);function c(e){const t=p.get(e);if(t)return t;let r=s;if(e)if(e===o)r=o;else if(e===a)r=a;else{const t=e.wkid,n=e.latestWkid;if(null!=t||null!=n)(0,i.tl)(t)||(0,i.tl)(n)?r=o:((0,i.ZL)(t)||(0,i.ZL)(n))&&(r=a);else{const t=e.wkt2??e.wkt;if(t){const e=t.toUpperCase();e===f?r=o:e===h&&(r=a)}}}return p.set(e,r),r}const p=new Map,f=o.wkt.toUpperCase(),h=a.wkt.toUpperCase()},34403(e,t,r){r.d(t,{TP:()=>s});var n=r(79258);Math.PI;const l=n.$O.radius,i=n.$O.eccentricitySquared,s={a1:l*i,a2:l*i*l*i,a3:l*i*i/2,a4:l*i*l*i*2.5,a5:l*i+l*i*i/2,a6:1-i};n.$O.radius,n.$O.flattening,n.Sw.radius,n.Sw.flattening,n.sH.radius,n.sH.flattening,n.sH.radius},47314(e,t,r){r.r(t),r.d(t,{default:()=>b});var n,l=r(5482),i=r(11254),s=r(49186),o=r(25728),a=r(799),u=r(84952),c=r(91429),p=r(5443),f=r(86738),h=r(16930),d=r(4146),g=r(63074),y=r(16131),m=r(8303),w=r(54310),v=r(25036),M=r(33446),A=r(91806),I=r(87045),R=r(83703),C=r(36005),P=r(43937);let b=n=class extends((0,g.dM)((0,w.J)((0,v.j)((0,y.q)((0,m.A)((0,o.M)(d.A))))))){constructor(...e){super(...e),this.copyright="",this.fullExtent=new p.A(-20037508.342787,-20037508.34278,20037508.34278,20037508.342787,h.A.WebMercator),this.legendEnabled=!1,this.isReference=null,this.popupEnabled=!1,this.spatialReference=h.A.WebMercator,this.subDomains=null,this.tileInfo=new I.A({size:[256,256],dpi:96,format:"png8",compressionQuality:0,origin:new f.A({x:-20037508.342787,y:20037508.342787,spatialReference:h.A.WebMercator}),spatialReference:h.A.WebMercator,lods:[new A.A({level:0,scale:591657527.591555,resolution:156543.033928}),new A.A({level:1,scale:295828763.795777,resolution:78271.5169639999}),new A.A({level:2,scale:147914381.897889,resolution:39135.7584820001}),new A.A({level:3,scale:73957190.948944,resolution:19567.8792409999}),new A.A({level:4,scale:36978595.474472,resolution:9783.93962049996}),new A.A({level:5,scale:18489297.737236,resolution:4891.96981024998}),new A.A({level:6,scale:9244648.868618,resolution:2445.98490512499}),new A.A({level:7,scale:4622324.434309,resolution:1222.99245256249}),new A.A({level:8,scale:2311162.217155,resolution:611.49622628138}),new A.A({level:9,scale:1155581.108577,resolution:305.748113140558}),new A.A({level:10,scale:577790.554289,resolution:152.874056570411}),new A.A({level:11,scale:288895.277144,resolution:76.4370282850732}),new A.A({level:12,scale:144447.638572,resolution:38.2185141425366}),new A.A({level:13,scale:72223.819286,resolution:19.1092570712683}),new A.A({level:14,scale:36111.909643,resolution:9.55462853563415}),new A.A({level:15,scale:18055.954822,resolution:4.77731426794937}),new A.A({level:16,scale:9027.977411,resolution:2.38865713397468}),new A.A({level:17,scale:4513.988705,resolution:1.19432856685505}),new A.A({level:18,scale:2256.994353,resolution:.597164283559817}),new A.A({level:19,scale:1128.497176,resolution:.298582141647617}),new A.A({level:20,scale:564.248588,resolution:.14929107082380833}),new A.A({level:21,scale:282.124294,resolution:.07464553541190416}),new A.A({level:22,scale:141.062147,resolution:.03732276770595208}),new A.A({level:23,scale:70.5310735,resolution:.01866138385297604})]}),this.type="web-tile",this.urlTemplate=null,this.wmtsInfo=null}normalizeCtorArgs(e,t){return"string"==typeof e?{urlTemplate:e,...t}:e}load(e){const t=this.loadFromPortal({supportedTypes:["WMTS"]},e).then(()=>{let e="";if(this.urlTemplate)if(this.spatialReference.equals(this.tileInfo.spatialReference)){const t=new u.s0(this.urlTemplate);!(this.subDomains&&this.subDomains.length>0)&&t.authority?.includes("{subDomain}")&&(e="is missing 'subDomains' property")}else e="spatialReference must match tileInfo.spatialReference";else e="is missing the required 'urlTemplate' property value";if(e)throw new s.A("web-tile-layer:load",`WebTileLayer (title: '${this.title}', id: '${this.id}') ${e}`)});return this.addResolvingPromise(t),Promise.resolve(this)}get levelValues(){const e=[];if(!this.tileInfo)return null;for(const t of this.tileInfo.lods)e[t.level]=t.levelValue||t.level;return e}get loaded(){return super.loaded}readSpatialReference(e,t){return e||h.A.fromJSON(t.fullExtent?.spatialReference)}get tileServers(){if(!this.urlTemplate)return null;const e=[],{urlTemplate:t,subDomains:r}=this,n=new u.s0(t),l=n.scheme?n.scheme+"://":"//",i=l+n.authority+"/",s=n.authority;if(s?.includes("{subDomain}")){if(r&&r.length>0&&s.split(".").length>1)for(const t of r)e.push(l+s.replaceAll(/\{subDomain\}/gi,t)+"/")}else e.push(i);return e.map(u.Il)}get urlPath(){if(!this.urlTemplate)return null;const e=this.urlTemplate,t=new u.s0(e),r=(t.scheme?t.scheme+"://":"//")+t.authority+"/";return e.slice(r.length)}readUrlTemplate(e,t){return e||t.templateUrl}writeUrlTemplate(e,t){(0,u.BQ)(e)&&(e="https:"+e),e&&(e=e.replaceAll(/\{z\}/gi,"{level}").replaceAll(/\{x\}/gi,"{col}").replaceAll(/\{y\}/gi,"{row}"),e=(0,u.S8)(e)),t.templateUrl=e}fetchTile(e,t,r,n={}){const{signal:l}=n,s=this.getTileUrl(e,t,r),o={responseType:"image",signal:l,query:{...this.refreshParameters}};return(0,i.A)(s,o).then(e=>e.data)}async fetchImageBitmapTile(e,t,r,l={}){const{signal:s}=l;if(this.fetchTile!==n.prototype.fetchTile){const n=await this.fetchTile(e,t,r,l);return(0,M.C)(n,e,t,r,s)}const o=this.getTileUrl(e,t,r),a={responseType:"blob",signal:s,query:{...this.refreshParameters}},{data:u}=await(0,i.A)(o,a);return(0,M.C)(u,e,t,r,s)}getTileUrl(e,t,r){const{levelValues:n,tileServers:l,urlPath:i}=this;if(!n||!l||!i)return"";const s=n[e];return l[t%l.length]+(0,a.HC)(i,{level:s,z:s,col:r,x:r,row:t,y:t})}};(0,l.Cg)([(0,c.MZ)({type:String,value:"",json:{write:!0}})],b.prototype,"copyright",void 0),(0,l.Cg)([(0,c.MZ)({type:p.A,json:{write:!0},nonNullable:!0})],b.prototype,"fullExtent",void 0),(0,l.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1,write:!1}})],b.prototype,"legendEnabled",void 0),(0,l.Cg)([(0,c.MZ)({type:["show","hide"]})],b.prototype,"listMode",void 0),(0,l.Cg)([(0,c.MZ)({json:{read:!0,write:!0}})],b.prototype,"blendMode",void 0),(0,l.Cg)([(0,c.MZ)()],b.prototype,"levelValues",null),(0,l.Cg)([(0,c.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],b.prototype,"isReference",void 0),(0,l.Cg)([(0,c.MZ)({type:["WebTiledLayer"],value:"WebTiledLayer"})],b.prototype,"operationalLayerType",void 0),(0,l.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1,write:!1}})],b.prototype,"popupEnabled",void 0),(0,l.Cg)([(0,c.MZ)({type:h.A})],b.prototype,"spatialReference",void 0),(0,l.Cg)([(0,C.w)("spatialReference",["spatialReference","fullExtent.spatialReference"])],b.prototype,"readSpatialReference",null),(0,l.Cg)([(0,c.MZ)({type:[String],json:{write:!0}})],b.prototype,"subDomains",void 0),(0,l.Cg)([(0,c.MZ)({type:I.A,json:{write:!0}})],b.prototype,"tileInfo",void 0),(0,l.Cg)([(0,c.MZ)({readOnly:!0})],b.prototype,"tileServers",null),(0,l.Cg)([(0,c.MZ)({json:{read:!1}})],b.prototype,"type",void 0),(0,l.Cg)([(0,c.MZ)()],b.prototype,"urlPath",null),(0,l.Cg)([(0,c.MZ)({type:String,json:{origins:{"portal-item":{read:{source:"url"}}}}})],b.prototype,"urlTemplate",void 0),(0,l.Cg)([(0,C.w)("urlTemplate",["urlTemplate","templateUrl"])],b.prototype,"readUrlTemplate",null),(0,l.Cg)([(0,P.K)("urlTemplate",{templateUrl:{type:String}})],b.prototype,"writeUrlTemplate",null),(0,l.Cg)([(0,c.MZ)({type:R.x,json:{write:!0}})],b.prototype,"wmtsInfo",void 0),b=n=(0,l.Cg)([(0,c.$K)("esri.layers.WebTileLayer")],b)},8303(e,t,r){r.d(t,{A:()=>A});var n=r(5482),l=r(92602),i=r(70333),s=r(11254),o=r(60999),a=r(49186),u=r(53966),c=r(97768),p=r(17676),f=r(84952),h=r(91429),d=r(77548),g=r(20655),y=r(80812),m=r(41318),w=r(10407),v=r(36005),M=r(43937);const A=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(){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 y.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:n}=await r.e(1204).then(r.bind(r,41204));return(0,p.Te)(t),await n({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)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,p.QP)(e),!0)))}async setUserPrivileges(e,t){if(!l.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:n},content:{updateItem:l}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",n),this._set("userHasUpdateItemPrivileges",l)}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 n=!i.id?.findCredential(this.url),l=e===r.id;if(l&&r.portal.user)return this._getUserPrivileges(r,n);let s,o;if(l)s=r.portal.url;else try{s=await(0,d.wI)(this.url,t)}catch(e){(0,p.QP)(e)}if(!s||!(0,f.b8)(s,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(i.id?.getCredential(`${s}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.QP)(e)}const a=!0,u=!1,c=!1;if(!o)return{features:{edit:a,fullEdit:u},content:{updateItem:c}};try{if(l?await r.reload():(r=new y.default({id:e,portal:{url:s}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,n)}catch(e){(0,p.QP)(e)}return{features:{edit:a,fullEdit:u},content:{updateItem:c}}}_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?i.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=i.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const n=`${r.owningSystemUrl}/sharing/rest`,l=g.A.getDefault();if(l&&l.loaded&&(0,f.S8)(l.restUrl)===(0,f.S8)(n))return l.user;const a=`${n}/community/self`,u=null!=e?e.signal:null,c=await(0,o.Ke)((0,s.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?m.A.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,n=this.portalItem?.id&&(this.portalItem.portal||g.A.getDefault());return r&&n&&!(0,f.ut)(n.restUrl,r.restUrl)?(t.messages&&t.messages.push(new a.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,n.Cg)([(0,h.MZ)({type:y.default})],A.prototype,"portalItem",null),(0,n.Cg)([(0,v.w)("web-document","portalItem",["itemId"])],A.prototype,"readPortalItem",null),(0,n.Cg)([(0,M.K)("web-document","portalItem",{itemId:{type:String}})],A.prototype,"writePortalItem",null),(0,n.Cg)([(0,h.MZ)({clonable:!1})],A.prototype,"resourceReferences",void 0),(0,n.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],A.prototype,"userHasEditingPrivileges",void 0),(0,n.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],A.prototype,"userHasFullEditingPrivileges",void 0),(0,n.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],A.prototype,"userHasUpdateItemPrivileges",void 0),A=(0,n.Cg)([(0,h.$K)("esri.layers.mixins.PortalLayer")],A),A},I={credential:null,user:null}},91806(e,t,r){r.d(t,{A:()=>a});var n,l=r(5482),i=r(25482),s=r(91429),o=r(56507);let a=class extends i.o{static{n=this}constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new n({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,l.Cg)([(0,s.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"cols",void 0),(0,l.Cg)([(0,s.MZ)({type:o.jz,json:{write:!0}})],a.prototype,"level",void 0),(0,l.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"levelValue",void 0),(0,l.Cg)([(0,s.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"origin",void 0),(0,l.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],a.prototype,"resolution",void 0),(0,l.Cg)([(0,s.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"rows",void 0),(0,l.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],a.prototype,"scale",void 0),a=n=(0,l.Cg)([(0,s.$K)("esri.layers.support.LOD")],a)},87045(e,t,r){r.d(t,{A:()=>v});var n,l=r(5482),i=r(66552),s=r(25482),o=r(86211),a=r(91429),u=r(56507),c=r(86738),p=r(16930),f=r(21325),h=r(28735),d=r(91806),g=r(72802),y=r(36005),m=r(43937);const w=new i.J({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let v=class extends s.o{static{n=this}static create(e={}){const{resolutionFactor:t=1,scales:r,size:l=256,spatialReference:i=p.A.WebMercator,numLODs:s=24}=e;if(!(0,f.fn)(i)){const e=[];if(r)for(let t=0;t<r.length;t++){const n=r[t];e.push(new d.A({level:t,scale:n,resolution:n}))}else{let t=5e-4;for(let r=s-1;r>=0;r--)e.unshift(new d.A({level:r,scale:t,resolution:t})),t*=2}return new n({dpi:96,lods:e,origin:new c.A(0,0,i),size:[l,l],spatialReference:i})}const a=(0,f.Vp)(i),u=e.origin?new c.A({x:e.origin.x,y:e.origin.y,spatialReference:i}):new c.A(a?{x:a.origin[0],y:a.origin[1],spatialReference:i}:{x:0,y:0,spatialReference:i}),h=1/(39.37*(0,o.GA)(i)*96),g=[];if(r)for(let e=0;e<r.length;e++){const t=r[e],n=t*h;g.push(new d.A({level:e,scale:t,resolution:n}))}else{let e=(0,f.EA)(i)?512/l*591657527.5917094:256/l*591657527.591555;const r=Math.ceil(s/t);g.push(new d.A({level:0,scale:e,resolution:e*h}));for(let n=1;n<r;n++){const r=e/2**t,l=r*h;g.push(new d.A({level:n,scale:r,resolution:l})),e=r}}return new n({dpi:96,lods:g,origin:u,size:[l,l],spatialReference:i})}constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){const{spatialReference:e,origin:t}=this;if(e&&t){const r=(0,f.Vp)(e);return e.isWrappable&&!!r&&Math.abs(r.origin[0]-t.x)<=r.dx}return!1}readOrigin(e,t){return c.A.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,r=0;const n=[],l=this._levelToLOD={};e&&(t=-1/0,r=1/0,e.forEach(e=>{n.push(e.scale),t=e.scale>t?e.scale:t,r=e.scale<r?e.scale:r,l[e.level]=e})),this._set("scales",n),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){const t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];const r=Math.floor(e),n=r+1;return t[r]/(t[r]/t[n])**(e-r)}scaleToZoom(e){const t=this.scales,r=t.length-1;let n=0;for(;n<r;n++){const r=t[n],l=t[n+1];if(r<=e)return n;if(l===e)return n+1;if(r>e&&l<e)return n+Math.log(r/e)/Math.log(r/l)}return n}tileAt(e,t,r,n){const l=this.lodAt(e);if(!l)return null;let i,s;if("number"==typeof t)i=t,s=r;else if((0,f.aI)(t.spatialReference,this.spatialReference))i=t.x,s=t.y,n=r;else{const e=(0,h.Cv)(t,this.spatialReference);if(null==e)return null;i=e.x,s=e.y,n=r}const o=l.resolution*this.size[0],a=l.resolution*this.size[1];return n??=new g.U(0,0,0),n.level=e,n.row=Math.floor((this.origin.y-s)/a+.001),n.col=Math.floor((i-this.origin.x)/o+.001),this.updateTileInfo(n),n}updateTileInfo(e,t=0){if(!("extent"in e))return!1;let r=this.lodAt(e.level);if(!r&&1===t){const t=this.lods[this.lods.length-1];t.level<e.level&&(r=t)}if(!r)return!1;const n=e.level-r.level,l=r.resolution*this.size[0]/2**n,i=r.resolution*this.size[1]/2**n;return e.extent[0]=this.origin.x+e.col*l,e.extent[1]=this.origin.y-(e.row+1)*i,e.extent[2]=e.extent[0]+l,e.extent[3]=e.extent[1]+i,!0}upsampleTile(e){const t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){const r=this.lodAt(t.level);if(null==r)return null;const{resolution:n}=r,l=n*this.size[0],i=n*this.size[1];return e[0]=this.origin.x+t.col*l,e[1]=this.origin.y-(t.row+1)*i,e[2]=e[0]+l,e[3]=e[1]+i,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return n.fromJSON(this.write({}))}getCompatibleForVTL(e){if(this.size[0]!==this.size[1]||256===this.size[0]&&512===e)return null;const t=(512===this.size[0]&&256===e?-1:0)+(this.spatialReference.isGeographic?1:0);if(this.size[0]===e&&0===t)return this;const r=[],l=this.lods.length-t;for(let e=0;e<l;e++){const n=e+t,{scale:l,resolution:i}=n>=0?this.lods[n]:{scale:2*this.lods[0].scale,resolution:2*this.lods[0].resolution};r.push(new d.A({level:e,scale:l,resolution:i}))}return new n({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:r})}_initializeUpsampleLevels(){const e=this.lods;this._upsampleLevels=[];let t=null;for(let r=0;r<e.length;r++){const n=e[r];this._upsampleLevels[n.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/n.resolution:0},t=n}}};(0,l.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"compressionQuality",void 0),(0,l.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"dpi",void 0),(0,l.Cg)([(0,a.MZ)({type:String,json:{read:w.read,write:w.write,origins:{"web-scene":{read:!1,write:!1}}}})],v.prototype,"format",void 0),(0,l.Cg)([(0,a.MZ)({readOnly:!0})],v.prototype,"isWrappable",null),(0,l.Cg)([(0,a.MZ)({type:c.A,json:{write:!0}})],v.prototype,"origin",void 0),(0,l.Cg)([(0,y.w)("origin")],v.prototype,"readOrigin",null),(0,l.Cg)([(0,a.MZ)({type:[d.A],value:null,json:{write:!0}})],v.prototype,"lods",null),(0,l.Cg)([(0,a.MZ)({readOnly:!0})],v.prototype,"scales",void 0),(0,l.Cg)([(0,a.MZ)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],v.prototype,"size",void 0),(0,l.Cg)([(0,y.w)("size",["rows","cols"])],v.prototype,"readSize",null),(0,l.Cg)([(0,m.K)("size",{cols:{type:u.jz},rows:{type:u.jz}})],v.prototype,"writeSize",null),(0,l.Cg)([(0,a.MZ)({type:p.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),v=n=(0,l.Cg)([(0,a.$K)("esri.layers.support.TileInfo")],v)},72802(e,t,r){r.d(t,{U:()=>l});var n=r(19419);class l{constructor(e,t,r,l=(0,n.vt)()){this._level=e,this._row=t,this._col=r,this.extent=l}get id(){return this._id??=`${this.level}/${this.row}/${this.col}`,this._id}get level(){return this._level}set level(e){this._level=e,this._id=null}get row(){return this._row}set row(e){this._row=e,this._id=null}get col(){return this._col}set col(e){this._col=e,this._id=null}toJSON(){return{level:this._level,row:this._row,col:this._col,extent:this.extent}}static fromJSON(e){return new l(e.level,e.row,e.col,e.extent)}}},83703(e,t,r){r.d(t,{x:()=>a});var n,l=r(5482),i=r(25482),s=r(4718),o=r(91429);let a=n=class extends i.o{constructor(e){super(e)}clone(){return new n({customLayerParameters:(0,s.o8)(this.customLayerParameters),customParameters:(0,s.o8)(this.customParameters),layerIdentifier:this.layerIdentifier,tileMatrixSet:this.tileMatrixSet,url:this.url})}};(0,l.Cg)([(0,o.MZ)({json:{type:Object,write:!0}})],a.prototype,"customLayerParameters",void 0),(0,l.Cg)([(0,o.MZ)({json:{type:Object,write:!0}})],a.prototype,"customParameters",void 0),(0,l.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"layerIdentifier",void 0),(0,l.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"tileMatrixSet",void 0),(0,l.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"url",void 0),a=n=(0,l.Cg)([(0,o.$K)("esri.layers.support.WMTSLayerInfo")],a)},33446(e,t,r){r.d(t,{C:()=>s,m:()=>i});var n=r(49186),l=r(17676);async function i(e,t,r){let i;try{i=await createImageBitmap(e)}catch(e){throw new n.A("request:server",`Unable to load ${t}`,{url:t,error:e})}return(0,l.Te)(r),i}async function s(e,t,r,i,s){let o;try{o=await createImageBitmap(e)}catch(e){throw new n.A("request:server",`Unable to load tile ${t}/${r}/${i}`,{error:e,level:t,row:r,col:i})}return(0,l.Te)(s),o}},10407(e,t,r){r.d(t,{It:()=>h,LG:()=>s,OM:()=>u,Sm:()=>c,Y:()=>o,bK:()=>a,mm:()=>f,sQ:()=>p});var n=r(91218),l=r(16930),i=r(28735);function s(e,t){if(!o(e,t)){const r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function o(e,t){return!!e.typeKeywords?.includes(t)}function a(e){return o(e,f.HOSTED_SERVICE)}function u(e,t){const r=e.typeKeywords;if(r){const e=r.indexOf(t);e>-1&&r.splice(e,1)}}function c(e,t,r){r?s(e,t):u(e,t)}async function p(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,i.ci)(e);const r=l.A.WGS84;return await(0,n.initializeProjection)(t,r),(0,n.project)(e,r)}(r)}const f={CHARTS:"Charts",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",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function h(e){const{portal:t,isOrgItem:r,itemControl:n}=e,l=t.user?.privileges;let i=!l||l.includes("features:user:edit"),s=!!r&&!!l?.includes("features:user:fullEdit");const o="update"===n||"admin"===n;return o?s=i=!0:s&&(i=!0),{features:{edit:i,fullEdit:s},content:{updateItem:o}}}},78553(e,t,r){r.d(t,{D:()=>i,p:()=>l});var n=r(56507);function l(e){const t=(0,n.Vr)(100*(1-e));return Math.max(0,Math.min(t,100))}function i(e){const t=1-e/100;return Math.max(0,Math.min(t,1))}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[926,4794],{69540(e,t,n){n.d(t,{OU:()=>c,Pw:()=>h});var i=n(5482),r=n(69622),s=(n(44208),n(4718)),o=(n(53966),n(97768)),a=n(88620),l=n(64108);const u=Symbol("ClonableMixin"),c=e=>{var t;const n=e;let r=class extends n{constructor(){super(...arguments),this[t]=!0}static{t=u}clone(e){const t=(0,a.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");const n=t.metadata,i=t.store,r={},l=new Map;for(const t in n){const o=n[t],a=i?.originOf(t),u=o.clonable;if(o.readOnly||!1===u||7!==a&&0!==a&&5!==a&&4!==a)continue;const c=this[t];let h=null;if("function"==typeof u)h=u(c,e);else if("reference"===u)h=c;else if(h=(0,s.TU)(c,e),null!=c&&null==h)continue;0===a?l.set(t,h):r[t]=h}const u=new(0,Object.getPrototypeOf(this).constructor)(r);if(l.size){const e=(0,a.oY)(u)?.store;if(e)for(const[t,n]of l)e.set(t,n,0)}return u}};return r=(0,i.Cg)([(0,l.$)("esri.core.Clonable")],r),r},h=c(r.A)},66344(e,t,n){n.d(t,{q:()=>a});const i=!!(0,n(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class r{get size(){return this._size}constructor(e=10485760,t=.3){this._maxSize=e,this._maxClientSizeRatio=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._clients=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._clients.clear(),this._db.clear()}register(e){this._clients.set(e.id.slice(0,-1),e)}deregister(e){this.clear(e),this._sizeLimits.delete(e),this._clients.delete(e.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,-1),this._checkSize()}get _maxClientSize(){return this._maxSize*this._maxClientSizeRatio}getSize(e,t){const n=this._db.get(e.id+t);return n?.size??0}put(e,t,n,r,o){t=e.id+t;const a=this._db.get(t);if(a&&(this._size-=a.size,e.size-=a.size,this._db.delete(t),a.entry!==n&&this._notifyRemove(t,a.entry,a.size,0)),r>this._maxSize)return void this._notifyRemove(t,n,r,0);if(void 0===n)return void console.warn("Refusing to cache undefined entry ");if(!r||r<0)return i||console.warn(`Refusing to cache entry with size ${r} for key ${t}`),void this._notifyRemove(t,n,0,0);const l=1+Math.max(o,-4)- -3;this._db.set(t,new s(n,r,l)),this._size+=r,e.size+=r,this._checkSize()}updateSize(e,t){t=e.id+t;const n=this._db.get(t);if(!n)return;this._size-=n.size,e.size-=n.size;let i=n.entry.usedMemory;for(;i>this._maxSize;){const e=this._notifyRemove(t,n.entry,i,1);if(!(null!=e&&e>0))return void this._db.delete(t);i=e}n.size=i,this._size+=i,e.size+=i,this._checkSize()}pop(e,t){t=e.id+t;const n=this._db.get(t);if(n)return this._size-=n.size,e.size-=n.size,this._db.delete(t),++this._hit,n.entry;++this._miss}get(e,t){t=e.id+t;const n=this._db.get(t);if(void 0!==n)return this._db.delete(t),n.lives=n.lifetime,this._db.set(t,n),++this._hit,n.entry;++this._miss}peek(e,t){const n=this._db.get(e.id+t);return n?++this._hit:++this._miss,n?.entry}get performanceInfo(){const e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},n=new Array;this._db.forEach((e,i)=>{const r=e.lifetime;n[r]=(n[r]||0)+e.size,this._clients.forEach(n=>{const{id:r,name:s}=n;if(i.startsWith(r)){const n=t[s]||0;t[s]=n+e.size}})});const i={};this._clients.forEach(e=>{const n=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){const r=t[n]||0;t[n]=r,i[n]=Math.round(100*e.hitRate)+"%"}else i[n]="0%"});const r=Object.keys(t);r.sort((e,n)=>t[n]-t[e]),r.forEach(n=>e[n]=Math.round(t[n]/2**20)+"MB / "+i[n]);for(let t=n.length-1;t>=0;--t){const i=n[t];i&&(e["Priority "+(t+-3-1)]=Math.round(i/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._clients.forEach(e=>e.resetHitRate())}clear(e){const t=e.id;this._db.forEach((e,n)=>{n.startsWith(t)&&(this._size-=e.size,this._db.delete(n),this._notifyRemove(n,e.entry,e.size,0))}),e.size=0}clearAll(){this._db.forEach((e,t)=>this._notifyRemove(t,e.entry,e.size,0)),this._clients.forEach(e=>e.size=0),this._size=0,this._db.clear()}*values(e){for(const[t,n]of this._db)t.startsWith(e.id)&&(yield n.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,n,i){const r=this._clients.get(e.split(o)[0])?.removeFunc,s=r?.(t,i,n);return"number"==typeof s?s:null}_checkSize(){this._sizeLimits.forEach((e,t)=>this._checkSizeLimits(e,t)),this._clients.forEach(e=>this._checkSizeLimits(this._maxClientSize,e)),this._checkSizeLimits(this.maxSize)}setMaxClientSize(e,t){null==t||t<=0?this._sizeLimits.delete(e):this._sizeLimits.set(e,t)}_checkSizeLimits(e,t){const n=t??this;if(n.size<=e)return;const i=t?.id;let r=!0;for(;r;){r=!1;for(const[s,a]of this._db)if(0===a.lifetime&&(!i||s.startsWith(i))){const i=t??this._clients.get(s.split(o)[0]);if(this._purgeItem(s,a,i),n.size<=.9*e)return;r||=this._db.has(s)}}for(const[r,s]of this._db)if(!i||r.startsWith(i)){const i=t??this._clients.get(r.split(o)[0]);if(this._purgeItem(r,s,i),n.size<=.9*e)return}}_purgeItem(e,t,n){if(this._db.delete(e),t.lives<=1){this._size-=t.size,n&&(n.size-=t.size);const i=this._notifyRemove(e,t.entry,t.size,1);null!=i&&i>0&&(this._size+=i,n&&(n.size+=i),t.lives=t.lifetime,t.size=i,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}new r(0);class s{constructor(e,t,n){this.entry=e,this.size=t,this.lifetime=n,this.lives=n}}const o=":";class a{constructor(e,t){this.removeFunc=t,this.id="",this.name="",this.size=0,this._storage=new r(e,1),this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(e,t,n=1){this._storage.put(this,e,t,n,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}},60999(e,t,n){n.d(t,{DZ:()=>m,Ke:()=>p,Tj:()=>c,UT:()=>f,aD:()=>g,jJ:()=>u});var i=n(5482),r=n(69622),s=n(97768),o=n(74887),a=n(10107),l=n(64108);function u(e,t,n){return(0,o.Lx)(e.map((e,i)=>t.apply(n,[e,i])))}async function c(e,t,n){return(await(0,o.Lx)(e.map((e,i)=>t.apply(n,[e,i])))).map(e=>e.value)}function h(e){return{ok:!0,value:e}}function d(e){return{ok:!1,error:e}}async function p(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return h(await e)}catch(e){return d(e)}}async function m(e){try{return h(await e)}catch(e){return(0,o.QP)(e),d(e)}}function f(e,t){return new y(e,t)}let y=class extends r.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,s.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:n}=this._abortController;this.promise=e(n),this.promise.then(e=>{this._result=h(e),this._cleanup()},e=>{this._result=d(e),this._cleanup()}),this._abortHandle=(0,o.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,s.xt)(this._abortHandle),this._abortController=null}};(0,i.Cg)([(0,a.MZ)()],y.prototype,"value",null),(0,i.Cg)([(0,a.MZ)()],y.prototype,"error",null),(0,i.Cg)([(0,a.MZ)()],y.prototype,"finished",null),(0,i.Cg)([(0,a.MZ)()],y.prototype,"promise",void 0),(0,i.Cg)([(0,a.MZ)()],y.prototype,"_result",void 0),y=(0,i.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],y);class g{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});const t=await e;return{[Symbol.dispose]:t}}async run(e){const t={stack:[],error:void 0,hasError:!1};try{return(0,i.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,i.hk)(t)}}}},67482(e,t,n){function i(e){return null!=a(e)||null!=o(e)}function r(e){return l.test(e)}function s(e){return a(e)??o(e)}function o(e){const t=new Date(e);return function(e,t){if(Number.isNaN(e.getTime()))return!1;let n=!0;if(c&&/\d+\W*$/.test(t)){const e=t.match(/[a-zA-Z]{2,}/);if(e){let t=!1,i=0;for(;!t&&i<=e.length;)t=!u.test(e[i]),i++;n=!t}}return n}(t,e)?Number.isNaN(t.getTime())?null:t.getTime()-6e4*t.getTimezoneOffset():null}function a(e){const t=l.exec(e);if(!t?.groups)return null;const n=t.groups,i=+n.year,r=+n.month-1,s=+n.day,o=+(n.hours??"0"),a=+(n.minutes??"0"),u=+(n.seconds??"0");if(o>23)return null;if(a>59)return null;if(u>59)return null;const c=n.ms??"0",h=c?+c.padEnd(3,"0").slice(0,3):0;let d;if(n.isUTC||!n.offsetSign)d=Date.UTC(i,r,s,o,a,u,h);else{const e=+n.offsetHours,t=+n.offsetMinutes;d=6e4*("+"===n.offsetSign?-1:1)*(60*e+t)+Date.UTC(i,r,s,o,a,u,h)}return Number.isNaN(d)?null:d}n.d(t,{Br:()=>r,Cq:()=>i,_U:()=>s});const l=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,u=/^((jan(uary)?)|(feb(ruary)?)|(mar(ch)?)|(apr(il)?)|(may)|(jun(e)?)|(jul(y)?)|(aug(ust)?)|(sep(tember)?)|(oct(ober)?)|(nov(ember)?)|(dec(ember)?)|(am)|(pm)|(gmt)|(utc))$/i,c=!Number.isNaN(new Date("technology 10").getTime())},75503(e,t,n){n.d(t,{wq:()=>a});var i=n(4576),r=n(21818),s=(n(44208),n(15142)),o=n(11006);class a{constructor(e=9,t){this._compareMinX=d,this._compareMinY=p,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),w.prune(),S.prune(),v.prune(),C.prune()}all(e){l(this._data,e)}search(e,t){let n=this._data;const i=this._toBBox;if(b(e,n))for(w.clear();n;){for(let r=0,s=n.children.length;r<s;r++){const s=n.children[r],o=n.leaf?i(s):s;b(e,o)&&(n.leaf?t(s):_(e,o)?l(s,t):w.push(s))}n=w.pop()}}collides(e){let t=this._data;const n=this._toBBox;if(!b(e,t))return!1;for(w.clear();t;){for(let i=0,r=t.children.length;i<r;i++){const r=t.children[i],s=t.leaf?n(r):r;if(b(e,s)){if(t.leaf||_(e,s))return!0;w.push(r)}}t=w.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,n=e.length;t<n;t++)this.insert(e[t]);return this}let t=this._build(e.slice(),0,e.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){const e=this._data;this._data=t,t=e}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(e){return e&&this._insert(e,this._data.height-1),this}clear(){return this._data=new F([]),this}remove(e){if(!e)return this;let t,n=this._data,s=null,o=0,a=!1;const l=this._toBBox(e);for(v.clear(),C.clear();n||v.length>0;){if(n||(n=v.pop(),s=v.data[v.length-1],o=C.pop()??0,a=!0),n.leaf&&(t=(0,i.qh)(n.children,(0,r.z)(e),n.children.length,n.indexHint),-1!==t))return n.children.splice(t,1),v.push(n),this._condense(v),this;a||n.leaf||!_(n,l)?s?(o++,n=s.children[o],a=!1):n=null:(v.push(n),C.push(o),o=0,s=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_build(e,t,n,i){const r=n-t+1;let s=this._maxEntries;if(r<=s){const i=new F(e.slice(t,n+1));return u(i,this._toBBox),i}i||(i=Math.ceil(Math.log(r)/Math.log(s)),s=Math.ceil(r/s**(i-1)));const o=new M([]);o.height=i;const a=Math.ceil(r/s),l=a*Math.ceil(Math.sqrt(s));x(e,t,n,l,this._compareMinX);for(let r=t;r<=n;r+=l){const t=Math.min(r+l-1,n);x(e,r,t,a,this._compareMinY);for(let n=r;n<=t;n+=a){const r=Math.min(n+a-1,t);o.children.push(this._build(e,n,r,i-1))}}return u(o,this._toBBox),o}_insert(e,t,n){const i=this._toBBox,r=n?e:i(e);v.clear();const s=function(e,t,n,i){for(;i.push(t),!0!==t.leaf&&i.length-1!==n;){let n,i=1/0,r=1/0;for(let s=0,o=t.children.length;s<o;s++){const o=t.children[s],a=m(o),l=y(e,o)-a;l<r?(r=l,i=a<i?a:i,n=o):l===r&&a<i&&(i=a,n=o)}t=n||t.children[0]}return t}(r,this._data,t,v);for(s.children.push(e),h(s,r);t>=0&&v.data[t].children.length>this._maxEntries;)this._split(v,t),t--;!function(e,t,n){for(let i=n;i>=0;i--)h(t.data[i],e)}(r,v,t)}_split(e,t){const n=e.data[t],i=n.children.length,r=this._minEntries;this._chooseSplitAxis(n,r,i);const s=this._chooseSplitIndex(n,r,i);if(!s)return;const o=n.children.splice(s,n.children.length-s),a=n.leaf?new F(o):new M(o);a.height=n.height,u(n,this._toBBox),u(a,this._toBBox),t?e.data[t-1].children.push(a):this._splitRoot(n,a)}_splitRoot(e,t){this._data=new M([e,t]),this._data.height=e.height+1,u(this._data,this._toBBox)}_chooseSplitIndex(e,t,n){let i,r,s;i=r=1/0;for(let o=t;o<=n-t;o++){const t=c(e,0,o,this._toBBox),a=c(e,o,n,this._toBBox),l=g(t,a),u=m(t)+m(a);l<i?(i=l,s=o,r=u<r?u:r):l===i&&u<r&&(r=u,s=o)}return s}_chooseSplitAxis(e,t,n){const i=e.leaf?this._compareMinX:d,r=e.leaf?this._compareMinY:p;this._allDistMargin(e,t,n,i)<this._allDistMargin(e,t,n,r)&&e.children.sort(i)}_allDistMargin(e,t,n,i){e.children.sort(i);const r=this._toBBox,s=c(e,0,t,r),o=c(e,n-t,n,r);let a=f(s)+f(o);for(let i=t;i<n-t;i++){const t=e.children[i];h(s,e.leaf?r(t):t),a+=f(s)}for(let i=n-t-1;i>=t;i--){const t=e.children[i];h(o,e.leaf?r(t):t),a+=f(o)}return a}_condense(e){for(let t=e.length-1;t>=0;t--){const n=e.data[t];if(0===n.children.length)if(t>0){const r=e.data[t-1],s=r.children;s.splice((0,i.qh)(s,n,s.length,r.indexHint),1)}else this.clear();else u(n,this._toBBox)}}_initFormat(e){const t=["return a"," - b",";"];this._compareMinX=new Function("a","b",t.join(e[0])),this._compareMinY=new Function("a","b",t.join(e[1])),this._toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function l(e,t){let n=e;for(S.clear();n;){if(!0===n.leaf)for(const e of n.children)t((0,r.z)(e));else S.pushArray(n.children);n=S.pop()??null}}function u(e,t){c(e,0,e.children.length,t,e)}function c(e,t,n,i,r){r||(r=new F([])),r.minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(let s,o=t;o<n;o++)s=e.children[o],h(r,e.leaf?i(s):s);return r}function h(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function d(e,t){return e.minX-t.minX}function p(e,t){return e.minY-t.minY}function m(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function f(e){return e.maxX-e.minX+(e.maxY-e.minY)}function y(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function g(e,t){const n=Math.max(e.minX,t.minX),i=Math.max(e.minY,t.minY),r=Math.min(e.maxX,t.maxX),s=Math.min(e.maxY,t.maxY);return Math.max(0,r-n)*Math.max(0,s-i)}function _(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function b(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function x(e,t,n,i,r){const s=[t,n];for(;s.length;){const t=s.pop(),n=s.pop();if(t-n<=i)continue;const a=n+Math.ceil((t-n)/i/2)*i;(0,o.q)(e,a,n,t,r),s.push(n,a,a,t)}}const w=new s.A,S=new s.A,v=new s.A,C=new s.A({deallocator:void 0});class T{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class A extends T{constructor(){super(...arguments),this.height=1,this.indexHint=new i.vW}}class F extends A{constructor(e){super(),this.children=e,this.leaf=!0}}class M extends A{constructor(e){super(),this.children=e,this.leaf=!1}}},36708(e,t,n){n.d(t,{C_:()=>d,OH:()=>f,Vh:()=>y,on:()=>h,pc:()=>g,wB:()=>l,z7:()=>u});var i=n(37955),r=n(36563),s=n(97768),o=n(74887),a=n(14012);function l(e,t,n={}){return c(e,t,n,p)}function u(e,t,n={}){return c(e,t,n,m)}function c(e,t,n={},i){let r=null;const o=n.once?(e,n)=>{i(e)&&((0,s.xt)(r),t(e,n))}:(e,n)=>{i(e)&&t(e,n)};if(r=(0,a.Cn)(e,o,n.sync,n.equals),n.initial){const t=e();o(t,t)}return r}function h(e,t,n,o={}){let a=null,u=null,c=null;function h(){a&&u&&(u.remove(),o.onListenerRemove?.(a),a=null,u=null)}function d(e){o.once&&o.once&&(0,s.xt)(c),n(e)}const p=l(e,(e,n)=>{h(),(0,i.wb)(e)&&(a=e,u=(0,i.on)(e,t,d),o.onListenerAdd?.(e))},{sync:o.sync,initial:!0});return c=(0,r.hA)(()=>{p.remove(),h()}),c}function d(e,t){return function(e,t,n){if((0,o.G4)(n))return Promise.reject((0,o.NK)());const i=e();if(t?.(i))return Promise.resolve(i);let a=null;function l(){a=(0,s.xt)(a)}return new Promise((i,s)=>{a=(0,r.vE)([(0,o.u7)(n,()=>{l(),s((0,o.NK)())}),c(e,e=>{l(),i(e)},{sync:!1,once:!0},t??p)])})}(e,m,t)}function p(e){return!0}function m(e){return!!e}n(80559);const f={sync:!0},y={initial:!0},g={sync:!0,initial:!0}},60408(e,t,n){function i(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function r(e){return void 0!==e.points}function s(e){return void 0!==e.x&&void 0!==e.y}function o(e){return void 0!==e.paths||void 0!==e.curvePaths}function a(e){return void 0!==e.rings||void 0!==e.curveRings}function l(e){return"object"==typeof e&&"vertexAttributes"in e}function u(e){return e?s(e)?"esriGeometryPoint":o(e)?"esriGeometryPolyline":a(e)?"esriGeometryPolygon":i(e)?"esriGeometryEnvelope":r(e)?"esriGeometryMultipoint":null:null}function c(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function h(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}n.d(t,{$B:()=>u,Bi:()=>a,Pv:()=>c,Rg:()=>o,U9:()=>r,W0:()=>h,ZC:()=>i,fT:()=>s,uW:()=>l})},65864(e,t,n){n.d(t,{rS:()=>c,xD:()=>d});var i=n(5443),r=n(91075),s=n(48526),o=n(86738),a=n(39829),l=n(82799),u=n(60408);function c(e){return null==e?null:e instanceof r.A?e:(0,u.fT)(e)?o.A.fromJSON(e):(0,u.Rg)(e)?l.A.fromJSON(e):(0,u.Bi)(e)?a.A.fromJSON(e):(0,u.U9)(e)?s.A.fromJSON(e):(0,u.ZC)(e)?i.A.fromJSON(e):null}const h={esriGeometryPoint:o.A,esriGeometryPolyline:l.A,esriGeometryPolygon:a.A,esriGeometryEnvelope:i.A,esriGeometryMultipoint:s.A,esriGeometryMultiPatch:a.A};function d(e){return e&&h[e]||null}},50498(e,t,n){n.d(t,{Ye:()=>h,gy:()=>c,iI:()=>p,yR:()=>d});var i=n(66552),r=n(5443),s=n(91075),o=n(48526),a=n(86738),l=n(39829),u=n(82799);const c=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),h=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),d={base:s.A,key:"type",typeMap:{extent:r.A,multipoint:o.A,point:a.A,polyline:u.A,polygon:l.A}},p=new i.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0})},6518(e,t,n){n.d(t,{F:()=>a});var i=n(44208),r=n(75503),s=n(19419);const o={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new r.wq(9,(0,i.A)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const e=new Array(this._idByBounds.size);let t=0;this._idByBounds.forEach((n,i)=>{e[t++]=i}),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter(e=>this._idByBounds.has(e))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const e=(0,s.Ie)();for(const t of this._boundsById.values())t&&(e[0]=Math.min(t[0],e[0]),e[1]=Math.min(t[1],e[1]),e[2]=Math.max(t[2],e[2]),e[3]=Math.max(t[3],e[3]));return e}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){const t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,n){(function(e){o.minX=e[0],o.minY=e[1],o.maxX=e[2],o.maxY=e[3]})(t),e.search(o,n)}(this._index,e,e=>t(this._idByBounds.get(e)))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){const t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},83221(e,t,n){n.d(t,{A:()=>m});var i=n(4576),r=n(49186),s=n(65529),o=n(53966),a=n(70328),l=n(19419),u=n(90708),c=n(6518),h=n(51441),d=n(37730);const p=(0,a.vt)();class m{constructor(e){this.geometryInfo=e,this._boundsStore=new c.F,this._featuresById=new Map,this._usedMemory=0,this.events=new s.bk,this.featureAdapter=d.T}get usedMemory(){return this._usedMemory}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let e=0;return this._featuresById.forEach(t=>{null!=t.geometry&&t.geometry.coords&&(e+=t.geometry.coords.length)}),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(e){if(null==this.fullBounds)return null;const[t,n,i,r]=this.fullBounds;return{xmin:t,ymin:n,xmax:i,ymax:r,spatialReference:(0,h.ag)(e)}}add(e){this._add(e),this._emitChanged()}addMany(e){for(const t of e)this._add(t);this._emitChanged()}upsertMany(e){const t=e.map(e=>this._upsert(e));return this._emitChanged(),t.filter(i.Ru)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged(),this._usedMemory=0}removeById(e){const t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(const t of e){const e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t){for(const n of e){const e=this._boundsStore.get(n.objectId);e&&t((0,a.Jt)(p,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach(t=>e(t))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,e=>{t(this._featuresById.get(e))})}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;const t=e.objectId;if(null==t)return void o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new r.A("featurestore:invalid-feature","feature id is missing",{feature:e}));const n=this._featuresById.get(t);let i;if(n?(e.displayId=n.displayId,i=this._boundsStore.get(t),this._boundsStore.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(n)??0):null!=this.onFeatureAdd&&this.onFeatureAdd(e),!e.geometry?.coords?.length)return this._boundsStore.set(t,null),void this._featuresById.set(t,e);i=(0,u.jQ)(null!=i?i:(0,l.vt)(),e.geometry),null!=i&&this._boundsStore.set(t,i),this._featuresById.set(t,e),this._usedMemory+=this.estimateFeatureUsedMemory?.(e)??0}_upsert(e){const t=e?.objectId;if(null==t)return o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new r.A("featurestore:invalid-feature","feature id is missing",{feature:e})),null;const n=this._featuresById.get(t);if(!n)return this._add(e),e;this._usedMemory-=this.estimateFeatureUsedMemory?.(n)??0;const{geometry:i,attributes:s}=e;for(const e in s)n.attributes[e]=s[e];return i&&(n.geometry=i,this._boundsStore.set(t,(0,u.jQ)((0,l.vt)(),i)??null)),this._usedMemory+=this.estimateFeatureUsedMemory?.(n)??0,n}_remove(e){null!=this.onFeatureRemove&&this.onFeatureRemove(e);const t=e.objectId;return this._boundsStore.delete(t),this._featuresById.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(e)??0,e}}},37730(e,t,n){n.d(t,{T:()=>r});var i=n(43334);const r={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t,n)=>new i.Om(t,e.attributes,null,e.objectId),getGeometry:e=>e.geometry,getCentroid:(e,t)=>e.ensureCentroid(t)}},33771(e,t,n){n.r(t),n.d(t,{default:()=>w});var i=n(60999),r=n(49186),s=n(53966),o=n(34727),a=n(74887),l=n(67076),u=n(21325),c=n(90708),h=n(83221),d=n(31464),p=n(56390),m=n(85113),f=n(82832),y=n(34322),g=n(95466),_=n(54218),b=n(98623);const x="esri.layers.WFSLayer";class w{constructor(){this._customParameters=null,this._queryEngine=null,this._supportsPagination=!0}destroy(){this._queryEngine?.destroy(),this._queryEngine=null}async load(e,t={}){const{getFeatureUrl:n,getFeatureOutputFormat:i,fields:s,geometryType:o,featureType:l,maxRecordCount:u,maxTotalRecordCount:c,maxPageCount:m,objectIdField:f,customParameters:_}=e,{spatialReference:x,getFeatureSpatialReference:w}=(0,y.UH)(n,l,e.spatialReference);try{await(0,d.Nk)(w,x)}catch{throw new r.A("unsupported-projection","Projection not supported",{inSpatialReference:w,outSpatialReference:x})}(0,a.Te)(t),this._customParameters=_,this._featureType=l,this._fieldsIndex=g.A.fromLayerJSON({fields:s,dateFieldsTimeReference:s.some(e=>"esriFieldTypeDate"===e.type)?{timeZoneIANA:b.n$}:null}),this._geometryType=o,this._getFeatureUrl=n,this._getFeatureOutputFormat=i,this._getFeatureSpatialReference=w,this._maxRecordCount=u,this._maxTotalRecordCount=c,this._maxPageCount=m,this._objectIdField=f,this._spatialReference=x;let v=await this._snapshotFeatures(t);if(v.errors.length>0&&(this._supportsPagination=!1,v=await this._snapshotFeatures(t),v.errors.length>0))throw v.errors[0];const C={type:"object-id",fieldName:f};return this._queryEngine=new p.do({fieldsIndex:this._fieldsIndex,geometryType:o,hasM:!1,hasZ:!1,featureIdInfo:C,spatialReference:x,timeInfo:null,featureStore:new h.A({geometryType:o,hasM:!1,hasZ:!1})}),this._queryEngine.featureStore.addMany(v.features),{warnings:S(v),extent:(await this._queryEngine.fetchRecomputedExtents()).fullExtent}}async applyEdits(){throw new r.A("wfs-source:editing-not-supported","applyEdits() is not supported on WFSLayer")}async queryFeatures(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQuery(e,t.signal)}async queryFeatureCount(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForCount(e,t.signal)}async queryObjectIds(e={},t={}){return await this._waitSnapshotComplete(),(await this._queryEngine.executeQueryForIds(e,t.signal)).filter(_.Et)}async queryExtent(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForExtent(e,t.signal)}async querySnapping(e,t={}){return await this._waitSnapshotComplete(),await this._queryEngine.executeQueryForSnapping(e,t.signal)}async queryAttributeBins(e,t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeAttributeBinsQuery(e,t.signal)}async refresh(e){return this._customParameters=e.customParameters,this._maxRecordCount=e.maxRecordCount,this._maxTotalRecordCount=e.maxTotalRecordCount,this._maxPageCount=e.maxPageCount,this._snapshotTask?.abort(),this._snapshotTask=(0,i.UT)(e=>this._snapshotFeatures({signal:e})),this._snapshotTask.promise.then(e=>{this._queryEngine.featureStore.clear(),this._queryEngine.featureStore.addMany(e.features);for(const t of S(e))s.A.getLogger(x).warn(new l.A("wfs-layer:refresh-warning",t.message,t.details));e.errors?.length&&s.A.getLogger(x).warn(new l.A("wfs-layer:refresh-error","Refresh completed with errors",{errors:e.errors}))},()=>{this._queryEngine.featureStore.clear()}),await this._waitSnapshotComplete(),{extent:(await this._queryEngine.fetchRecomputedExtents()).fullExtent}}async _waitSnapshotComplete(){if(this._snapshotTask&&!this._snapshotTask.finished){try{await this._snapshotTask.promise}catch{}return this._waitSnapshotComplete()}}async _snapshotFeatures(e){const t=e?.signal,n=this._maxTotalRecordCount,i=this._maxPageCount,r=this._supportsPagination&&i>1?await(0,y.E)(this._getFeatureUrl,this._featureType.typeName,{customParameters:this._customParameters,signal:t}):void 0;let s=[];const l=[];if(null==r)try{s=await this._singleQuery(t)}catch(e){(0,a.zf)(e)||l.push(e)}else{const e=Math.min(r,n),u=function*(e,t,n){for(let i=0;i<t;i++)yield e._pageQuery(i,n)}(this,(0,o.qE)(Math.ceil(e/this._maxRecordCount),1,i),t);await Promise.allSettled(Array.from({length:10}).map(()=>async function(e,t,n){let i=e.next();for(;!i.done;){try{const e=await i.value;t.push(...e)}catch(e){(0,a.zf)(e)||n.push(e)}i=e.next()}}(u,s,l)))}return(0,a.Te)(t),{features:s,totalRecordCount:r,maxTotalRecordCount:n,maxPageCount:i,errors:l}}async _singleQuery(e){const t=Number.isFinite(this._maxRecordCount)&&this._maxRecordCount>0?this._maxRecordCount:void 0,n=await(0,y.x$)(this._getFeatureUrl,this._featureType.typeName,this._getFeatureSpatialReference,this._getFeatureOutputFormat,{customParameters:this._customParameters,count:t,signal:e});return this._processGeoJSON(n,{signal:e})}async _pageQuery(e,t){const n=e*this._maxRecordCount,i=await(0,y.x$)(this._getFeatureUrl,this._featureType.typeName,this._getFeatureSpatialReference,this._getFeatureOutputFormat,{customParameters:this._customParameters,startIndex:n,count:this._maxRecordCount,signal:t});return this._processGeoJSON(i,{startIndex:n,signal:t})}_processGeoJSON(e,t){(0,m.sO)(e,this._getFeatureSpatialReference.wkid);const{startIndex:n,signal:i}=t;(0,a.Te)(i);const r=(0,m.bd)(e,{geometryType:this._geometryType,hasZ:!1,objectIdField:this._objectIdField});if(!(0,u.aI)(this._spatialReference,this._getFeatureSpatialReference))for(const e of r)null!=e.geometry&&(e.geometry=(0,c.Ux)((0,d.Cv)((0,c.zv)(e.geometry,this._geometryType,!1,!1),this._getFeatureSpatialReference,this._spatialReference)));let s=n??1;for(const e of r){const t={};(0,f.MB)(this._fieldsIndex,t,e.attributes,!0),e.attributes=t,null==t[this._objectIdField]&&(e.objectId=t[this._objectIdField]=s++)}return r}}function S(e){const t=[];return null!=e.totalRecordCount&&(e.features.length<e.totalRecordCount&&t.push({name:"wfs-layer:maxRecordCount-too-low",message:`Could only fetch ${e.features.length} of ${e.totalRecordCount} in ${e.maxPageCount} queries. Try increasing the value of WFSLayer.maxRecordCount.`,details:{recordCount:e.features.length,totalRecordCount:e.totalRecordCount}}),e.totalRecordCount>e.maxTotalRecordCount&&t.push({name:"wfs-layer:large-dataset",message:`The number of ${e.totalRecordCount} features exceeds the maximum allowed of ${e.maxTotalRecordCount}.`,details:{recordCount:e.features.length,totalRecordCount:e.totalRecordCount,maxTotalRecordCount:e.maxTotalRecordCount}})),t}},85113(e,t,n){n.d(t,{BM:()=>T,bd:()=>A,sO:()=>C,xD:()=>h});var i=n(67482),r=n(49186),s=n(21325),o=n(90708),a=n(43334),l=n(92722),u=n(30524);const c={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function h(e){return c[e]}function*d(e){switch(e.type){case"Feature":yield e;break;case"FeatureCollection":for(const t of e.features)t&&(yield t)}}function*p(e){if(e)switch(e.type){case"Point":yield e.coordinates;break;case"LineString":case"MultiPoint":yield*e.coordinates;break;case"MultiLineString":case"Polygon":for(const t of e.coordinates)yield*t;break;case"MultiPolygon":for(const t of e.coordinates)for(const e of t)yield*e}}function m(e){for(const t of e)if(t.length>2)return!0;return!1}function f(e){let t=0;for(let n=0;n<e.length;n++){const i=e[n],r=e[(n+1)%e.length];t+=i[0]*r[1]-r[0]*i[1]}return t<=0}function y(e){const t=e[0],n=e[e.length-1];t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]||e.push(t)}function g(e,t){const{coordinates:n,type:i}=e,r=t.hasZ??!1,s=!0;switch(i){case"Point":return new l.A([],[...n],r,!1);case"LineString":return(0,o.Ap)({paths:[n],hasZ:s},r,!1);case"MultiLineString":return(0,o.Ap)({paths:n,hasZ:s},r,!1);case"MultiPoint":return(0,o.PR)({points:n,hasZ:s},r,!1);case"Polygon":case"MultiPolygon":{const e=new l.A([],[],r,!1);for(const t of"Polygon"===i?[n]:n){_(e,t[0],r);for(let n=1;n<t.length;n++)b(e,t[n],r)}return e}}}function _(e,t,n){y(t),function(e){return!f(e)}(t)?w(e,t,n):x(e,t,n)}function b(e,t,n){y(t),function(e){return f(e)}(t)?w(e,t,n):x(e,t,n)}function x(e,t,n){for(const i of t)S(e,i,n);e.lengths.push(t.length)}function w(e,t,n){for(let i=t.length-1;i>=0;i--)S(e,t[i],n);e.lengths.push(t.length)}function S(e,[t,n,i],r){e.coords.push(t,n),r&&e.coords.push(i||0)}function v(e){switch(typeof e){case"string":return(0,i.Br)(e)?"esriFieldTypeDate":"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function C(e,t=4326){if(!e)throw new r.A("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==e.type&&"FeatureCollection"!==e.type)throw new r.A("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:e});const{crs:n}=e;if(!n)return;const i="string"==typeof n?n:"name"===n.type?n.properties.name:"EPSG"===n.type?n.properties.code:null,o=(0,s.oT)({wkid:t})?new RegExp(".*(CRS84H?|4326)$","i"):new RegExp(`.*(${t})$`,"i");if(!i||!o.test(i))throw new r.A("geojson:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:n})}function T(e,t={}){const n=[],i=new Set,r=new Set;let s,o=!1,a=null,l=!1,{geometryType:c=null}=t;for(const t of d(e)){const{geometry:e,properties:d,id:f}=t;if((!e||(c||(c=h(e.type)),h(e.type)===c))&&(o||(o=m(p(e))),l||(l=null!=f,l&&(s=typeof f,d&&(a=Object.keys(d).filter(e=>d[e]===f)))),d&&a&&l&&null!=f&&(a.length>1?a=a.filter(e=>d[e]===f):1===a.length&&(a=d[a[0]]===f?a:[])),d))for(const e in d){if(i.has(e))continue;const t=v(d[e]);if("unknown"===t){r.add(e);continue}r.delete(e),i.add(e);const s=(0,u.rS)(e);s&&n.push({name:s,alias:e,type:t})}}const f=(0,u.rS)(1===a?.length&&a[0]||null)??void 0;if(f)for(const e of n)if(e.name===f&&(0,u.WA)(e)){e.type="esriFieldTypeOID";break}return{fields:n,geometryType:c,hasZ:o,objectIdFieldName:f,objectIdFieldType:s,unknownFields:Array.from(r)}}function A(e,t){return Array.from(function*(e,t={}){const{geometryType:n,objectIdField:i}=t;for(const r of e){const{geometry:e,properties:s,id:o}=r;if(e&&h(e.type)!==n)continue;const l=s||{};let u;i&&(u=l[i],null==o||u||(l[i]=u=o)),yield new a.Om(e&&g(e,t),l,null,u)}}(d(e),t))}},82832(e,t,n){n.d(t,{$1:()=>y,CR:()=>f,MB:()=>d,PC:()=>g,Yx:()=>l,bP:()=>c});var i=n(67482),r=n(21325),s=n(30524);class o{constructor(e){this.description=e,this.code=null}}class a{constructor(e){this.globalId=null,this.objectId=null,this.success=!1,this.uniqueId=null,this.error=new o(e)}}function l(e){return new a(e)}class u{constructor(e){this.globalId=null,this.success=!0,this.objectId=this.uniqueId=e}}function c(e){return new u(e)}const h=new Set;function d(e,t,n,i=!1){h.clear();for(const r in n){const o=e.get(r);if(!o)continue;const a=p(o,n[r]);if(h.add(o.name),o&&(i||o.editable)){const e=(0,s.CJ)(o,a);if(e)return l((0,s.uo)(e,o,a));t[o.name]=a}}for(const t of e.requiredFields??[])if(!h.has(t.name))return l(`missing required field "${t.name}"`);return null}function p(e,t){let n=t;return(0,s.WA)(e)&&"string"==typeof t?n=parseFloat(t):(0,s.yM)(e)&&null!=t&&"string"!=typeof t?n=String(t):(0,s.vE)(e)&&"string"==typeof t&&(n=(0,i._U)(t)),(0,s.WX)(n)}let m;function f(e,t){if(!e||!(0,r.fn)(t))return e;if("rings"in e||"paths"in e){if(null==m)throw new TypeError("geometry engine not loaded");return m.simplify(t,e)}return e}async function y(e,t){!(0,r.fn)(e)||"esriGeometryPolygon"!==t&&"esriGeometryPolyline"!==t||await async function(){return null==m&&(m=await n.e(1023).then(n.bind(n,81023))),m}()}const g={supportsAutoIntervalBin:!0,supportsFixedIntervalBin:!0,supportsFixedBoundariesBin:!0,supportsDateBin:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsNormalization:!0,supportedStatisticTypes:["COUNT","SUM","AVG","VAR","STDDEV","MIN","MAX","PERCENTILE_CONT","PERCENTILE_DISC","CentroidAggregate","EnvelopeAggregate","ConvexHullAggregate"],supportedNormalizationTypes:["field","log","naturalLog","percentOfTotal","squareRoot"]}},34322(e,t,n){n.d(t,{E:()=>N,Fu:()=>S,O8:()=>M,UH:()=>G,YW:()=>R,i5:()=>b,mG:()=>F,x$:()=>P});var i=n(11254),r=n(49186),s=n(5479),o=n(84952),a=n(5443),l=n(91218),u=n(16930),c=n(21325),h=n(50498),d=n(85113),p=n(13043),m=n(60694),f=n(20437),y=n(30524);const g="xlink:href",_="2.0.0",b="__esri_wfs_id__",x="wfs-layer:feature-type-not-found",w="wfs-layer:unknown-geometry-type";async function S(e,t){const n=function(e){const t=k(e);(function(e){const t=e.firstElementChild?.getAttribute("version");if(t&&t!==_)throw new r.A("wfs-layer:unsupported-wfs-version",`Unsupported WFS version ${t}. Supported version: ${_}`)})(t),O(t);const n=t.firstElementChild,i=(0,s.PP)(function(e){return(0,p.i)(e,{FeatureTypeList:{FeatureType:e=>{const t={typeName:"undefined:undefined",name:"",title:"",description:"",extent:null,namespacePrefix:"",namespaceUri:"",defaultSpatialReference:4326,supportedSpatialReferences:[]},n=new Set;return(0,p.p)(e,{Name:e=>{const{name:n,prefix:i}=j(e.textContent);t.typeName=`${i}:${n}`,t.name=n,t.namespacePrefix=i,t.namespaceUri=e.lookupNamespaceURI(i)},Abstract:e=>{t.description=e.textContent},Title:e=>{t.title=e.textContent},WGS84BoundingBox:e=>{t.extent=a.A.fromJSON(function(e){let t,n,i,r;for(const s of e.children)switch(s.localName){case"LowerCorner":[t,n]=s.textContent.split(" ").map(e=>Number.parseFloat(e));break;case"UpperCorner":[i,r]=s.textContent.split(" ").map(e=>Number.parseFloat(e))}return{xmin:t,ymin:n,xmax:i,ymax:r,spatialReference:c.KK}}(e))},DefaultCRS:e=>{const i=A(e);i&&(t.defaultSpatialReference=i,n.add(i))},OtherCRS:e=>{const t=A(e);t&&n.add(t)}}),t.title||(t.title=t.name),n.add(4326),t.supportedSpatialReferences.push(...n),t}}})}(n));return{operations:T(n),get featureTypes(){return Array.from(i())},readFeatureTypes:i}}((await(0,i.A)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"GetCapabilities",VERSION:_,...t?.customParameters},signal:t?.signal})).data);return function(e,t){(0,o.m3)(e)&&((0,o.FX)(e,t.operations.DescribeFeatureType.url,!0)&&(t.operations.DescribeFeatureType.url=(0,o.lM)(t.operations.DescribeFeatureType.url)),(0,o.FX)(e,t.operations.GetFeature.url,!0)&&(t.operations.GetFeature.url=(0,o.lM)(t.operations.GetFeature.url)))}(e,n),n}const v=["json","application/json; subtype=geojson; charset=utf-8","application/json; subtype=geojson","application/json","geojson","application/geo+json"];function C(e){for(const t of v){const n=e.findIndex(e=>e.toLowerCase()===t);if(n>=0)return e[n]}return null}function T(e){let t=!0;const n={GetCapabilities:{url:""},DescribeFeatureType:{url:""},GetFeature:{url:"",outputFormat:null,supportsPagination:!1}},i=[],s=[];if((0,p.p)(e,{OperationsMetadata:{Parameter:e=>{if("outputformat"===e.getAttribute("name")?.toLowerCase())return{AllowedValues:{Value:({textContent:e})=>{e&&i.push(e)}}}},Operation:e=>{switch(e.getAttribute("name")){case"GetCapabilities":return{DCP:{HTTP:{Get:e=>{n.GetCapabilities.url=e.getAttribute(g)}}}};case"DescribeFeatureType":return{DCP:{HTTP:{Get:e=>{n.DescribeFeatureType.url=e.getAttribute(g)}}}};case"GetFeature":return{DCP:{HTTP:{Get:e=>{n.GetFeature.url=e.getAttribute(g)}}},Parameter:e=>{if("outputformat"===e.getAttribute("name")?.toLowerCase())return{AllowedValues:{Value:({textContent:e})=>{e&&s.push(e)}}}}}}},Constraint:e=>{switch(e.getAttribute("name")){case"KVPEncoding":return{DefaultValue:e=>{t="true"===e.textContent.toLowerCase()}};case"ImplementsResultPaging":return{DefaultValue:e=>{n.GetFeature.supportsPagination="true"===e.textContent.toLowerCase()}}}}}}),n.GetFeature.outputFormat=C(s)??C(i),!t)throw new r.A("wfs-layer:kvp-encoding-not-supported","WFS service doesn't support key/value pair (KVP) encoding");if(null==n.GetFeature.outputFormat)throw new r.A("wfs-layer:geojson-not-supported","WFS service doesn't support GeoJSON output format");return n}function A(e){const t=parseInt(e.textContent?.match(/(?<wkid>\d+$)/i)?.groups?.wkid??"",10);if(!Number.isNaN(t))return t}function F(e,t,n){return(0,s.I6)(e,e=>n?e.name===t&&e.namespaceUri===n:e.typeName===t||e.name===t)}async function M(e,t,n,i={}){const{featureType:s,extent:o}=await async function(e,t,n,i={}){const s=e.readFeatureTypes(),o=t?F(s,t,n):s.next().value,{spatialReference:a=new u.A({wkid:o?.defaultSpatialReference})}=i;if(null==o)throw t?new r.A(x,`The type '${t}' could not be found in the service`):new r.A("wfs-layer:empty-service","The service is empty");let h=o.extent;if(h&&!(0,c.aI)(h.spatialReference,a))try{await(0,l.initializeProjection)(h.spatialReference,a,void 0,i),h=(0,l.project)(h,a)}catch{throw new r.A("wfs-layer:unsupported-spatial-reference","Projection not supported")}return{extent:h,spatialReference:a,featureType:o}}(e,t,n,i),{spatialReference:a}=G(e.operations.GetFeature.url,s,i.spatialReference),{fields:h,geometryType:d,swapXY:p,objectIdField:m,geometryField:f}=await async function(e,t,n,i={}){const{typeName:s}=t,[o,a]=await Promise.allSettled([E(e.operations.DescribeFeatureType.url,s,i),I(e,s,n,i)]),l=e=>new r.A("wfs-layer:getWFSLayerTypeInfo-error",`An error occurred while getting info about the feature type '${s}'`,{error:e});if("rejected"===o.status)throw l(o.reason);if("rejected"===a.status)throw l(a.reason);const{fields:u,errors:c}=o.value??{},h=o.value?.geometryType||a.value?.geometryType,d=a.value?.swapXY??!1;if(null==h)throw new r.A(w,`The geometry type could not be determined for type '${s}`,{typeName:s,geometryType:h,fields:u,errors:c});return{...R(u??[]),geometryType:h,swapXY:d}}(e,s,a,i);return{url:e.operations.GetCapabilities.url,name:s.name,namespaceUri:s.namespaceUri,fields:h,geometryField:f,geometryType:d,objectIdField:m,spatialReference:i.spatialReference??new u.A({wkid:s.defaultSpatialReference}),extent:o,swapXY:p,wfsCapabilities:e,customParameters:i.customParameters}}function R(e){const t=e.find(e=>"geometry"===e.type);let n=e.find(e=>"oid"===e.type);return e=e.filter(e=>"geometry"!==e.type),n||(n=new f.A({name:b,type:"oid",alias:b}),e.unshift(n)),{geometryField:t?.name??null,objectIdField:n.name,fields:e}}async function I(e,t,n,r={}){let s,o=!1;const[a,l]=await Promise.all([P(e.operations.GetFeature.url,t,n,e.operations.GetFeature.outputFormat,{...r,count:1}),(0,i.A)(e.operations.GetFeature.url,{responseType:"text",query:z(t,n,void 0,{...r,count:1}),signal:r?.signal})]),u="FeatureCollection"===a.type&&a.features[0]?.geometry;if(u){let e;switch(s=h.gy.fromJSON((0,d.xD)(u.type)),u.type){case"Point":e=u.coordinates;break;case"LineString":case"MultiPoint":e=u.coordinates[0];break;case"MultiLineString":case"Polygon":e=u.coordinates[0][0];break;case"MultiPolygon":e=u.coordinates[0][0][0]}const t=/<[^>]*pos[^>]*> *(-?\d+(?:\.\d+)?) (-?\d+(?:\.\d+)?)/.exec(l.data);if(t){const n=e[0].toFixed(3),i=e[1].toFixed(3),r=parseFloat(t[1]).toFixed(3);n===parseFloat(t[2]).toFixed(3)&&i===r&&(o=!0)}}return{geometryType:s,swapXY:o}}async function E(e,t,n){return function(e,t){const{name:n}=j(e),i=k(t);O(i);const o=(0,s.I6)((0,p.i)(i.firstElementChild,{element:e=>e}),e=>e.getAttribute("name")===n);if(null!=o){const e=o.getAttribute("type"),t=e?(0,s.I6)((0,p.i)(i.firstElementChild,{complexType:e=>e}),t=>t.getAttribute("name")===j(e).name):(0,s.I6)((0,p.i)(o,{complexType:e=>e}),()=>!0);if(t)return function(e){const t=[],n=[];let i;const s=(0,p.i)(e,{complexContent:{extension:{sequence:{element:e=>e}}}});for(const o of s){const s=o.getAttribute("name");if(!s)continue;let a,l;if(o.hasAttribute("type")?a=j(o.getAttribute("type")).name:(0,p.p)(o,{simpleType:{restriction:e=>(a=j(e.getAttribute("base")).name,{maxLength:e=>{l=+e.getAttribute("value")}})}}),!a)continue;const u="true"===o.getAttribute("nillable");let c=!1;switch(a.toLowerCase()){case"integer":case"nonpositiveinteger":case"negativeinteger":case"long":case"int":case"short":case"byte":case"nonnegativeinteger":case"unsignedlong":case"unsignedint":case"unsignedshort":case"unsignedbyte":case"positiveinteger":n.push(new f.A({name:s,alias:s,type:"integer",nullable:u,length:(0,y._b)("integer")}));break;case"float":case"double":case"decimal":n.push(new f.A({name:s,alias:s,type:"double",nullable:u,length:(0,y._b)("double")}));break;case"boolean":case"string":case"gyearmonth":case"gyear":case"gmonthday":case"gday":case"gmonth":case"anyuri":case"qname":case"notation":case"normalizedstring":case"token":case"language":case"idrefs":case"entities":case"nmtoken":case"nmtokens":case"name":case"ncname":case"id":case"idref":case"entity":case"duration":case"time":n.push(new f.A({name:s,alias:s,type:"string",nullable:u,length:l??(0,y._b)("string")}));break;case"datetime":case"date":n.push(new f.A({name:s,alias:s,type:"date",nullable:u,length:l??(0,y._b)("date")}));break;case"pointpropertytype":i="point",c=!0;break;case"multipointpropertytype":i="multipoint",c=!0;break;case"curvepropertytype":case"multicurvepropertytype":case"multilinestringpropertytype":i="polyline",c=!0;break;case"surfacepropertytype":case"multisurfacepropertytype":case"multipolygonpropertytype":i="polygon",c=!0;break;case"geometrypropertytype":case"multigeometrypropertytype":c=!0,t.push(new r.A(w,`geometry type '${a}' is not supported`,{type:(new XMLSerializer).serializeToString(e)}));break;default:t.push(new r.A("wfs-layer:unknown-field-type",`Unknown field type '${a}'`,{type:(new XMLSerializer).serializeToString(e)}))}c&&n.push(new f.A({name:s,alias:s,type:"geometry",nullable:u}))}for(const e of n)if("integer"===e.type&&!e.nullable&&B.has(e.name.toLowerCase())){e.type="oid";break}return{geometryType:i,fields:n,errors:t}}(t)}throw new r.A(x,`Type '${e}' not found in document`,{document:(new XMLSerializer).serializeToString(i)})}(t,(await(0,i.A)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"DescribeFeatureType",VERSION:_,TYPENAME:t,TYPENAMES:t,...n?.customParameters},signal:n?.signal})).data)}const B=new Set(["objectid","fid"]);async function P(e,t,n,s,o){let{data:a}=await(0,i.A)(e,{responseType:"text",query:z(t,n,s,o),signal:o?.signal});a=a.replaceAll(/": +(-?\d+),(\d+)(,)?/g,'": $1.$2$3');try{return JSON.parse(a)}catch(e){throw new r.A("wfs-layer:malformed-json","Error while parsing the response",{response:a,error:e})}}function z(e,t,n,i){const r="number"==typeof t?t:t.wkid;return{SERVICE:"WFS",REQUEST:"GetFeature",VERSION:_,TYPENAMES:e,OUTPUTFORMAT:n,SRSNAME:"EPSG:"+r,STARTINDEX:i?.startIndex,COUNT:i?.count,...i?.customParameters}}async function N(e,t,n){const r=await(0,i.A)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"GetFeature",VERSION:_,TYPENAMES:t,RESULTTYPE:"hits",...n?.customParameters},signal:n?.signal}),s=/numberMatched=["'](?<numberMatched>\d+)["']/gi.exec(r.data);if(s?.groups)return+s.groups.numberMatched}function k(e){return(new DOMParser).parseFromString(e.trim(),"text/xml")}function j(e){const[t,n]=e.split(":");return{prefix:n?t:"",name:n??t}}function O(e){let t="",n="";if((0,p.p)(e.firstElementChild,{Exception:e=>(t=e.getAttribute("exceptionCode"),{ExceptionText:e=>{n=e.textContent}})}),t)throw new r.A(`wfs-layer:${t}`,n)}function G(e,t,n){const i={wkid:t.defaultSpatialReference},r=null!=n?.wkid?{wkid:n.wkid}:i;return{spatialReference:r,getFeatureSpatialReference:(0,m.Fi)(e)||r.wkid&&t.supportedSpatialReferences.includes(r.wkid)?{wkid:r.wkid}:{wkid:t.defaultSpatialReference}}}},13043(e,t,n){function i(e,t){if(e&&t)for(const n of e.children)if(n.localName in t){const e=t[n.localName];if("function"==typeof e){const t=e(n);t&&i(n,t)}else i(n,e)}}function*r(e,t){for(const n of e.children)if(n.localName in t){const e=t[n.localName];"function"==typeof e?yield e(n):yield*r(n,e)}}n.d(t,{i:()=>r,p:()=>i})},39357(e,t,n){n.d(t,{A:()=>a});var i,r=n(5482),s=n(25482),o=n(91429);let a=i=class extends s.o{constructor(e){super(e),this.name=null,this.code=null}clone(){return new i({name:this.name,code:this.code})}};(0,r.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"name",void 0),(0,r.Cg)([(0,o.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],a.prototype,"code",void 0),a=i=(0,r.Cg)([(0,o.$K)("esri.layers.support.CodedValue")],a)},53177(e,t,n){n.d(t,{A:()=>c});var i,r=n(5482),s=n(4718),o=n(91429),a=n(39357),l=n(76357),u=n(93223);let c=class extends l.A{static{i=this}constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const n=String(e);this.codedValues.some(e=>(String(e.code)===n&&(t=e.name),!!t))}return t}clone(){return new i({codedValues:(0,s.o8)(this.codedValues),name:this.name})}};(0,r.Cg)([(0,o.MZ)({type:[a.A],json:{write:{isRequired:!0}}})],c.prototype,"codedValues",void 0),(0,r.Cg)([(0,u.e)({codedValue:"coded-value"})],c.prototype,"type",void 0),c=i=(0,r.Cg)([(0,o.$K)("esri.layers.support.CodedValueDomain")],c)},76357(e,t,n){n.d(t,{A:()=>u});var i=n(5482),r=n(66552),s=n(25482),o=n(91429),a=n(93223);const l=new r.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let u=class extends s.o{constructor(e){super(e),this.name=null,this.type=null}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,a.e)(l),(0,o.MZ)({json:{write:{isRequired:!0}}})],u.prototype,"type",void 0),u=(0,i.Cg)([(0,o.$K)("esri.layers.support.Domain")],u)},20437(e,t,n){n.d(t,{A:()=>m});var i,r=n(5482),s=n(66552),o=n(25482),a=n(91429),l=n(56507),u=n(8631),c=n(98453),h=n(36005),d=n(93223);const p=new s.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",currency:"currency",dateAndTime:"date-and-time",description:"description",emailAddress:"email-address",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",phoneNumber:"phone-number",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let m=class extends o.o{static{i=this}constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?.value??null}readValueType(e,{description:t}){let n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?p.fromJSON(n.fieldValueType):null}clone(){return new i({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],m.prototype,"alias",void 0),(0,r.Cg)([(0,a.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],m.prototype,"defaultValue",void 0),(0,r.Cg)([(0,a.MZ)()],m.prototype,"description",void 0),(0,r.Cg)([(0,h.w)("description")],m.prototype,"readDescription",null),(0,r.Cg)([(0,a.MZ)({types:u.g,json:{read:{reader:u.r},write:!0}})],m.prototype,"domain",void 0),(0,r.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"editable",void 0),(0,r.Cg)([(0,a.MZ)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],m.prototype,"length",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,r.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"nullable",void 0),(0,r.Cg)([(0,d.e)(c.m)],m.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)()],m.prototype,"valueType",void 0),(0,r.Cg)([(0,h.w)("valueType",["description"])],m.prototype,"readValueType",null),(0,r.Cg)([(0,a.MZ)({type:Boolean,json:{read:!1}})],m.prototype,"visible",void 0),m=i=(0,r.Cg)([(0,a.$K)("esri.layers.support.Field")],m)},41628(e,t,n){n.d(t,{A:()=>l});var i,r=n(5482),s=n(91429),o=n(76357),a=n(93223);let l=class extends o.A{static{i=this}constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new i({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,r.Cg)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,n){t[n]=[this.minValue||0,e]},isRequired:!0}}})],l.prototype,"maxValue",void 0),(0,r.Cg)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,n){t[n]=[e,this.maxValue||0]},isRequired:!0}}})],l.prototype,"minValue",void 0),(0,r.Cg)([(0,a.e)({range:"range"})],l.prototype,"type",void 0),l=i=(0,r.Cg)([(0,s.$K)("esri.layers.support.RangeDomain")],l)},8631(e,t,n){n.d(t,{r:()=>d,g:()=>h});var i,r=n(53177),s=n(76357),o=n(5482),a=n(91429),l=n(93223);let u=class extends s.A{static{i=this}constructor(e){super(e),this.type="inherited"}clone(){return new i}};(0,o.Cg)([(0,l.e)({inherited:"inherited"})],u.prototype,"type",void 0),u=i=(0,o.Cg)([(0,a.$K)("esri.layers.support.InheritedDomain")],u);var c=n(41628);const h={key:"type",base:s.A,typeMap:{range:c.A,"coded-value":r.A,inherited:u}};function d(e){if(!e?.type)return null;switch(e.type){case"range":return c.A.fromJSON(e);case"codedValue":return r.A.fromJSON(e);case"inherited":return u.fromJSON(e)}return null}},98453(e,t,n){n.d(t,{m:()=>i});const i=new(n(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},2272(e,t,n){n.d(t,{Dl:()=>u,gf:()=>h,jV:()=>l,lF:()=>c});var i=n(92602),r=n(70333),s=n(4718),o=n(84952),a=n(926);function l(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,o.An)(e):(0,s.o8)(e)}function c(e,t,n){const i={};for(const r in e){if("declaredClass"===r)continue;const s=e[r];if(null!=s&&"function"!=typeof s)if(Array.isArray(s))i[r]=s.map(e=>c(e));else if("object"==typeof s)if(s.toJSON){const e=s.toJSON(n?.[r]);i[r]=t?e:JSON.stringify(e)}else i[r]=t?s:JSON.stringify(s);else i[r]=s}return i}async function h(e,t,s){const o=function(e,t){return e?t&&(0,a.Qc)(e)?t:(0,a.getApiKey)(e)??r.id?.findCredential(e)?.token:null}(e,t);if(o)return o;!r.id&&i.A.request.useIdentity&&await Promise.all([n.e(7632),n.e(318),n.e(148)]).then(n.bind(n,50148));const l=await r.id.getCredential(e,s);return l?.token}},926(e,t,n){n.d(t,{Dd:()=>d,Jn:()=>p,Qc:()=>m,getApiKey:()=>c,getSessionToken:()=>h});var i=n(92602),r=n(11254),s=n(84952);const o=/^https?:\/\/(i?basemaps|basemapstyles)-api\.arcgis\.com\//i,a=new Set(["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"]),l=new Map;let u=null;function c(e){if(!m(e))return null;const t=t=>t instanceof RegExp?t.test(e):"string"==typeof t&&e.startsWith(t),n=i.A.apiKeys;if(Array.isArray(n.scopes))for(const e of n.scopes)if(Array.isArray(e.urls)){if(e.urls.some(t))return e.token}else if(t(e.urls))return e.token;return n.basemapStyles&&o.test(e)?n.basemapStyles:i.A.apiKey&&/^https?:\/\/.+\.arcgis\.com(\/|$)/i.test(e)?i.A.apiKey:null}async function h(e){if(!i.A.sessions?.basemap?.enabled||!o.test(e))return null;const t=c(e);if(!t)return null;u&&await u;const{styleFamily:n="arcgis",autoRefresh:s,duration:a=43200}=i.A.sessions.basemap,h=`${t}:${n}`,d=l.get(h);if(d&&(!s||d.endTime>Date.now()))return d.sessionToken;let p;u=(0,r.A)("https://basemapstyles-api.arcgis.com/arcgis/rest/services/styles/v2/sessions/start",{cacheBust:!0,query:{durationSeconds:a,styleFamily:n,token:t}});try{p=(await u).data,p.endTime-=5e3,l.set(h,p)}finally{u=null}return p.sessionToken}function d(){return null!=i.A.apiKey||null!=i.A.apiKeys.basemapStyles}function p(e,t){return t?m(e):null!=c(e)}function m(e){const t=(0,s.$z)(e,!0);return!!t&&!a.has(t)&&!e.endsWith("/sharing/rest/generateToken")}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[926,4794],{69540(e,t,n){n.d(t,{OU:()=>c,Pw:()=>h});var i=n(5482),r=n(69622),s=(n(44208),n(4718)),o=(n(53966),n(97768)),a=n(88620),l=n(64108);const u=Symbol("ClonableMixin"),c=e=>{var t;const n=e;let r=class extends n{constructor(){super(...arguments),this[t]=!0}static{t=u}clone(e){const t=(0,a.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");const n=t.metadata,i=t.store,r={},l=new Map;for(const t in n){const o=n[t],a=i?.originOf(t),u=o.clonable;if(o.readOnly||!1===u||7!==a&&0!==a&&5!==a&&4!==a)continue;const c=this[t];let h=null;if("function"==typeof u)h=u(c,e);else if("reference"===u)h=c;else if(h=(0,s.TU)(c,e),null!=c&&null==h)continue;0===a?l.set(t,h):r[t]=h}const u=new(0,Object.getPrototypeOf(this).constructor)(r);if(l.size){const e=(0,a.oY)(u)?.store;if(e)for(const[t,n]of l)e.set(t,n,0)}return u}};return r=(0,i.Cg)([(0,l.$)("esri.core.Clonable")],r),r},h=c(r.A)},66344(e,t,n){n.d(t,{q:()=>a});const i=!!(0,n(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class r{get size(){return this._size}constructor(e=10485760,t=.3){this._maxSize=e,this._maxClientSizeRatio=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._clients=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._clients.clear(),this._db.clear()}register(e){this._clients.set(e.id.slice(0,-1),e)}deregister(e){this.clear(e),this._sizeLimits.delete(e),this._clients.delete(e.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,-1),this._checkSize()}get _maxClientSize(){return this._maxSize*this._maxClientSizeRatio}getSize(e,t){const n=this._db.get(e.id+t);return n?.size??0}put(e,t,n,r,o){t=e.id+t;const a=this._db.get(t);if(a&&(this._size-=a.size,e.size-=a.size,this._db.delete(t),a.entry!==n&&this._notifyRemove(t,a.entry,a.size,0)),r>this._maxSize)return void this._notifyRemove(t,n,r,0);if(void 0===n)return void console.warn("Refusing to cache undefined entry ");if(!r||r<0)return i||console.warn(`Refusing to cache entry with size ${r} for key ${t}`),void this._notifyRemove(t,n,0,0);const l=1+Math.max(o,-4)- -3;this._db.set(t,new s(n,r,l)),this._size+=r,e.size+=r,this._checkSize()}updateSize(e,t){t=e.id+t;const n=this._db.get(t);if(!n)return;this._size-=n.size,e.size-=n.size;let i=n.entry.usedMemory;for(;i>this._maxSize;){const e=this._notifyRemove(t,n.entry,i,1);if(!(null!=e&&e>0))return void this._db.delete(t);i=e}n.size=i,this._size+=i,e.size+=i,this._checkSize()}pop(e,t){t=e.id+t;const n=this._db.get(t);if(n)return this._size-=n.size,e.size-=n.size,this._db.delete(t),++this._hit,n.entry;++this._miss}get(e,t){t=e.id+t;const n=this._db.get(t);if(void 0!==n)return this._db.delete(t),n.lives=n.lifetime,this._db.set(t,n),++this._hit,n.entry;++this._miss}peek(e,t){const n=this._db.get(e.id+t);return n?++this._hit:++this._miss,n?.entry}get performanceInfo(){const e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},n=new Array;this._db.forEach((e,i)=>{const r=e.lifetime;n[r]=(n[r]||0)+e.size,this._clients.forEach(n=>{const{id:r,name:s}=n;if(i.startsWith(r)){const n=t[s]||0;t[s]=n+e.size}})});const i={};this._clients.forEach(e=>{const n=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){const r=t[n]||0;t[n]=r,i[n]=Math.round(100*e.hitRate)+"%"}else i[n]="0%"});const r=Object.keys(t);r.sort((e,n)=>t[n]-t[e]),r.forEach(n=>e[n]=Math.round(t[n]/2**20)+"MB / "+i[n]);for(let t=n.length-1;t>=0;--t){const i=n[t];i&&(e["Priority "+(t+-3-1)]=Math.round(i/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._clients.forEach(e=>e.resetHitRate())}clear(e){const t=e.id;this._db.forEach((e,n)=>{n.startsWith(t)&&(this._size-=e.size,this._db.delete(n),this._notifyRemove(n,e.entry,e.size,0))}),e.size=0}clearAll(){this._db.forEach((e,t)=>this._notifyRemove(t,e.entry,e.size,0)),this._clients.forEach(e=>e.size=0),this._size=0,this._db.clear()}*values(e){for(const[t,n]of this._db)t.startsWith(e.id)&&(yield n.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,n,i){const r=this._clients.get(e.split(o)[0])?.removeFunc,s=r?.(t,i,n);return"number"==typeof s?s:null}_checkSize(){this._sizeLimits.forEach((e,t)=>this._checkSizeLimits(e,t)),this._clients.forEach(e=>this._checkSizeLimits(this._maxClientSize,e)),this._checkSizeLimits(this.maxSize)}setMaxClientSize(e,t){null==t||t<=0?this._sizeLimits.delete(e):this._sizeLimits.set(e,t)}_checkSizeLimits(e,t){const n=t??this;if(n.size<=e)return;const i=t?.id;let r=!0;for(;r;){r=!1;for(const[s,a]of this._db)if(0===a.lifetime&&(!i||s.startsWith(i))){const i=t??this._clients.get(s.split(o)[0]);if(this._purgeItem(s,a,i),n.size<=.9*e)return;r||=this._db.has(s)}}for(const[r,s]of this._db)if(!i||r.startsWith(i)){const i=t??this._clients.get(r.split(o)[0]);if(this._purgeItem(r,s,i),n.size<=.9*e)return}}_purgeItem(e,t,n){if(this._db.delete(e),t.lives<=1){this._size-=t.size,n&&(n.size-=t.size);const i=this._notifyRemove(e,t.entry,t.size,1);null!=i&&i>0&&(this._size+=i,n&&(n.size+=i),t.lives=t.lifetime,t.size=i,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}new r(0);class s{constructor(e,t,n){this.entry=e,this.size=t,this.lifetime=n,this.lives=n}}const o=":";class a{constructor(e,t){this.removeFunc=t,this.id="",this.name="",this.size=0,this._storage=new r(e,1),this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(e,t,n=1){this._storage.put(this,e,t,n,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}},60999(e,t,n){n.d(t,{DZ:()=>m,Ke:()=>p,Tj:()=>c,UT:()=>f,aD:()=>g,jJ:()=>u});var i=n(5482),r=n(69622),s=n(97768),o=n(17676),a=n(10107),l=n(64108);function u(e,t,n){return(0,o.Lx)(e.map((e,i)=>t.apply(n,[e,i])))}async function c(e,t,n){return(await(0,o.Lx)(e.map((e,i)=>t.apply(n,[e,i])))).map(e=>e.value)}function h(e){return{ok:!0,value:e}}function d(e){return{ok:!1,error:e}}async function p(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return h(await e)}catch(e){return d(e)}}async function m(e){try{return h(await e)}catch(e){return(0,o.QP)(e),d(e)}}function f(e,t){return new y(e,t)}let y=class extends r.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,s.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:n}=this._abortController;this.promise=e(n),this.promise.then(e=>{this._result=h(e),this._cleanup()},e=>{this._result=d(e),this._cleanup()}),this._abortHandle=(0,o.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,s.xt)(this._abortHandle),this._abortController=null}};(0,i.Cg)([(0,a.MZ)()],y.prototype,"value",null),(0,i.Cg)([(0,a.MZ)()],y.prototype,"error",null),(0,i.Cg)([(0,a.MZ)()],y.prototype,"finished",null),(0,i.Cg)([(0,a.MZ)()],y.prototype,"promise",void 0),(0,i.Cg)([(0,a.MZ)()],y.prototype,"_result",void 0),y=(0,i.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],y);class g{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});const t=await e;return{[Symbol.dispose]:t}}async run(e){const t={stack:[],error:void 0,hasError:!1};try{return(0,i.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,i.hk)(t)}}}},67482(e,t,n){function i(e){return null!=a(e)||null!=o(e)}function r(e){return l.test(e)}function s(e){return a(e)??o(e)}function o(e){const t=new Date(e);return function(e,t){if(Number.isNaN(e.getTime()))return!1;let n=!0;if(c&&/\d+\W*$/.test(t)){const e=t.match(/[a-zA-Z]{2,}/);if(e){let t=!1,i=0;for(;!t&&i<=e.length;)t=!u.test(e[i]),i++;n=!t}}return n}(t,e)?Number.isNaN(t.getTime())?null:t.getTime()-6e4*t.getTimezoneOffset():null}function a(e){const t=l.exec(e);if(!t?.groups)return null;const n=t.groups,i=+n.year,r=+n.month-1,s=+n.day,o=+(n.hours??"0"),a=+(n.minutes??"0"),u=+(n.seconds??"0");if(o>23)return null;if(a>59)return null;if(u>59)return null;const c=n.ms??"0",h=c?+c.padEnd(3,"0").slice(0,3):0;let d;if(n.isUTC||!n.offsetSign)d=Date.UTC(i,r,s,o,a,u,h);else{const e=+n.offsetHours,t=+n.offsetMinutes;d=6e4*("+"===n.offsetSign?-1:1)*(60*e+t)+Date.UTC(i,r,s,o,a,u,h)}return Number.isNaN(d)?null:d}n.d(t,{Br:()=>r,Cq:()=>i,_U:()=>s});const l=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,u=/^((jan(uary)?)|(feb(ruary)?)|(mar(ch)?)|(apr(il)?)|(may)|(jun(e)?)|(jul(y)?)|(aug(ust)?)|(sep(tember)?)|(oct(ober)?)|(nov(ember)?)|(dec(ember)?)|(am)|(pm)|(gmt)|(utc))$/i,c=!Number.isNaN(new Date("technology 10").getTime())},75503(e,t,n){n.d(t,{wq:()=>a});var i=n(4576),r=n(21818),s=(n(44208),n(15142)),o=n(11006);class a{constructor(e=9,t){this._compareMinX=d,this._compareMinY=p,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),w.prune(),S.prune(),v.prune(),C.prune()}all(e){l(this._data,e)}search(e,t){let n=this._data;const i=this._toBBox;if(b(e,n))for(w.clear();n;){for(let r=0,s=n.children.length;r<s;r++){const s=n.children[r],o=n.leaf?i(s):s;b(e,o)&&(n.leaf?t(s):_(e,o)?l(s,t):w.push(s))}n=w.pop()}}collides(e){let t=this._data;const n=this._toBBox;if(!b(e,t))return!1;for(w.clear();t;){for(let i=0,r=t.children.length;i<r;i++){const r=t.children[i],s=t.leaf?n(r):r;if(b(e,s)){if(t.leaf||_(e,s))return!0;w.push(r)}}t=w.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,n=e.length;t<n;t++)this.insert(e[t]);return this}let t=this._build(e.slice(),0,e.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){const e=this._data;this._data=t,t=e}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(e){return e&&this._insert(e,this._data.height-1),this}clear(){return this._data=new F([]),this}remove(e){if(!e)return this;let t,n=this._data,s=null,o=0,a=!1;const l=this._toBBox(e);for(v.clear(),C.clear();n||v.length>0;){if(n||(n=v.pop(),s=v.data[v.length-1],o=C.pop()??0,a=!0),n.leaf&&(t=(0,i.qh)(n.children,(0,r.z)(e),n.children.length,n.indexHint),-1!==t))return n.children.splice(t,1),v.push(n),this._condense(v),this;a||n.leaf||!_(n,l)?s?(o++,n=s.children[o],a=!1):n=null:(v.push(n),C.push(o),o=0,s=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_build(e,t,n,i){const r=n-t+1;let s=this._maxEntries;if(r<=s){const i=new F(e.slice(t,n+1));return u(i,this._toBBox),i}i||(i=Math.ceil(Math.log(r)/Math.log(s)),s=Math.ceil(r/s**(i-1)));const o=new M([]);o.height=i;const a=Math.ceil(r/s),l=a*Math.ceil(Math.sqrt(s));x(e,t,n,l,this._compareMinX);for(let r=t;r<=n;r+=l){const t=Math.min(r+l-1,n);x(e,r,t,a,this._compareMinY);for(let n=r;n<=t;n+=a){const r=Math.min(n+a-1,t);o.children.push(this._build(e,n,r,i-1))}}return u(o,this._toBBox),o}_insert(e,t,n){const i=this._toBBox,r=n?e:i(e);v.clear();const s=function(e,t,n,i){for(;i.push(t),!0!==t.leaf&&i.length-1!==n;){let n,i=1/0,r=1/0;for(let s=0,o=t.children.length;s<o;s++){const o=t.children[s],a=m(o),l=y(e,o)-a;l<r?(r=l,i=a<i?a:i,n=o):l===r&&a<i&&(i=a,n=o)}t=n||t.children[0]}return t}(r,this._data,t,v);for(s.children.push(e),h(s,r);t>=0&&v.data[t].children.length>this._maxEntries;)this._split(v,t),t--;!function(e,t,n){for(let i=n;i>=0;i--)h(t.data[i],e)}(r,v,t)}_split(e,t){const n=e.data[t],i=n.children.length,r=this._minEntries;this._chooseSplitAxis(n,r,i);const s=this._chooseSplitIndex(n,r,i);if(!s)return;const o=n.children.splice(s,n.children.length-s),a=n.leaf?new F(o):new M(o);a.height=n.height,u(n,this._toBBox),u(a,this._toBBox),t?e.data[t-1].children.push(a):this._splitRoot(n,a)}_splitRoot(e,t){this._data=new M([e,t]),this._data.height=e.height+1,u(this._data,this._toBBox)}_chooseSplitIndex(e,t,n){let i,r,s;i=r=1/0;for(let o=t;o<=n-t;o++){const t=c(e,0,o,this._toBBox),a=c(e,o,n,this._toBBox),l=g(t,a),u=m(t)+m(a);l<i?(i=l,s=o,r=u<r?u:r):l===i&&u<r&&(r=u,s=o)}return s}_chooseSplitAxis(e,t,n){const i=e.leaf?this._compareMinX:d,r=e.leaf?this._compareMinY:p;this._allDistMargin(e,t,n,i)<this._allDistMargin(e,t,n,r)&&e.children.sort(i)}_allDistMargin(e,t,n,i){e.children.sort(i);const r=this._toBBox,s=c(e,0,t,r),o=c(e,n-t,n,r);let a=f(s)+f(o);for(let i=t;i<n-t;i++){const t=e.children[i];h(s,e.leaf?r(t):t),a+=f(s)}for(let i=n-t-1;i>=t;i--){const t=e.children[i];h(o,e.leaf?r(t):t),a+=f(o)}return a}_condense(e){for(let t=e.length-1;t>=0;t--){const n=e.data[t];if(0===n.children.length)if(t>0){const r=e.data[t-1],s=r.children;s.splice((0,i.qh)(s,n,s.length,r.indexHint),1)}else this.clear();else u(n,this._toBBox)}}_initFormat(e){const t=["return a"," - b",";"];this._compareMinX=new Function("a","b",t.join(e[0])),this._compareMinY=new Function("a","b",t.join(e[1])),this._toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function l(e,t){let n=e;for(S.clear();n;){if(!0===n.leaf)for(const e of n.children)t((0,r.z)(e));else S.pushArray(n.children);n=S.pop()??null}}function u(e,t){c(e,0,e.children.length,t,e)}function c(e,t,n,i,r){r||(r=new F([])),r.minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(let s,o=t;o<n;o++)s=e.children[o],h(r,e.leaf?i(s):s);return r}function h(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function d(e,t){return e.minX-t.minX}function p(e,t){return e.minY-t.minY}function m(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function f(e){return e.maxX-e.minX+(e.maxY-e.minY)}function y(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function g(e,t){const n=Math.max(e.minX,t.minX),i=Math.max(e.minY,t.minY),r=Math.min(e.maxX,t.maxX),s=Math.min(e.maxY,t.maxY);return Math.max(0,r-n)*Math.max(0,s-i)}function _(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function b(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function x(e,t,n,i,r){const s=[t,n];for(;s.length;){const t=s.pop(),n=s.pop();if(t-n<=i)continue;const a=n+Math.ceil((t-n)/i/2)*i;(0,o.q)(e,a,n,t,r),s.push(n,a,a,t)}}const w=new s.A,S=new s.A,v=new s.A,C=new s.A({deallocator:void 0});class T{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class A extends T{constructor(){super(...arguments),this.height=1,this.indexHint=new i.vW}}class F extends A{constructor(e){super(),this.children=e,this.leaf=!0}}class M extends A{constructor(e){super(),this.children=e,this.leaf=!1}}},36708(e,t,n){n.d(t,{C_:()=>d,OH:()=>f,Vh:()=>y,on:()=>h,pc:()=>g,wB:()=>l,z7:()=>u});var i=n(37955),r=n(36563),s=n(97768),o=n(17676),a=n(14012);function l(e,t,n={}){return c(e,t,n,p)}function u(e,t,n={}){return c(e,t,n,m)}function c(e,t,n={},i){let r=null;const o=n.once?(e,n)=>{i(e)&&((0,s.xt)(r),t(e,n))}:(e,n)=>{i(e)&&t(e,n)};if(r=(0,a.Cn)(e,o,n.sync,n.equals),n.initial){const t=e();o(t,t)}return r}function h(e,t,n,o={}){let a=null,u=null,c=null;function h(){a&&u&&(u.remove(),o.onListenerRemove?.(a),a=null,u=null)}function d(e){o.once&&o.once&&(0,s.xt)(c),n(e)}const p=l(e,(e,n)=>{h(),(0,i.wb)(e)&&(a=e,u=(0,i.on)(e,t,d),o.onListenerAdd?.(e))},{sync:o.sync,initial:!0});return c=(0,r.hA)(()=>{p.remove(),h()}),c}function d(e,t){return function(e,t,n){if((0,o.G4)(n))return Promise.reject((0,o.NK)());const i=e();if(t?.(i))return Promise.resolve(i);let a=null;function l(){a=(0,s.xt)(a)}return new Promise((i,s)=>{a=(0,r.vE)([(0,o.u7)(n,()=>{l(),s((0,o.NK)())}),c(e,e=>{l(),i(e)},{sync:!1,once:!0},t??p)])})}(e,m,t)}function p(e){return!0}function m(e){return!!e}n(80559);const f={sync:!0},y={initial:!0},g={sync:!0,initial:!0}},60408(e,t,n){function i(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function r(e){return void 0!==e.points}function s(e){return void 0!==e.x&&void 0!==e.y}function o(e){return void 0!==e.paths||void 0!==e.curvePaths}function a(e){return void 0!==e.rings||void 0!==e.curveRings}function l(e){return"object"==typeof e&&"vertexAttributes"in e}function u(e){return e?s(e)?"esriGeometryPoint":o(e)?"esriGeometryPolyline":a(e)?"esriGeometryPolygon":i(e)?"esriGeometryEnvelope":r(e)?"esriGeometryMultipoint":null:null}function c(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function h(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}n.d(t,{$B:()=>u,Bi:()=>a,Pv:()=>c,Rg:()=>o,U9:()=>r,W0:()=>h,ZC:()=>i,fT:()=>s,uW:()=>l})},65864(e,t,n){n.d(t,{rS:()=>c,xD:()=>d});var i=n(5443),r=n(91075),s=n(48526),o=n(86738),a=n(39829),l=n(82799),u=n(60408);function c(e){return null==e?null:e instanceof r.A?e:(0,u.fT)(e)?o.A.fromJSON(e):(0,u.Rg)(e)?l.A.fromJSON(e):(0,u.Bi)(e)?a.A.fromJSON(e):(0,u.U9)(e)?s.A.fromJSON(e):(0,u.ZC)(e)?i.A.fromJSON(e):null}const h={esriGeometryPoint:o.A,esriGeometryPolyline:l.A,esriGeometryPolygon:a.A,esriGeometryEnvelope:i.A,esriGeometryMultipoint:s.A,esriGeometryMultiPatch:a.A};function d(e){return e&&h[e]||null}},50498(e,t,n){n.d(t,{Ye:()=>h,gy:()=>c,iI:()=>p,yR:()=>d});var i=n(66552),r=n(5443),s=n(91075),o=n(48526),a=n(86738),l=n(39829),u=n(82799);const c=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),h=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),d={base:s.A,key:"type",typeMap:{extent:r.A,multipoint:o.A,point:a.A,polyline:u.A,polygon:l.A}},p=new i.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0})},6518(e,t,n){n.d(t,{F:()=>a});var i=n(44208),r=n(75503),s=n(19419);const o={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new r.wq(9,(0,i.A)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const e=new Array(this._idByBounds.size);let t=0;this._idByBounds.forEach((n,i)=>{e[t++]=i}),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter(e=>this._idByBounds.has(e))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const e=(0,s.Ie)();for(const t of this._boundsById.values())t&&(e[0]=Math.min(t[0],e[0]),e[1]=Math.min(t[1],e[1]),e[2]=Math.max(t[2],e[2]),e[3]=Math.max(t[3],e[3]));return e}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){const t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,n){(function(e){o.minX=e[0],o.minY=e[1],o.maxX=e[2],o.maxY=e[3]})(t),e.search(o,n)}(this._index,e,e=>t(this._idByBounds.get(e)))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){const t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},83221(e,t,n){n.d(t,{A:()=>m});var i=n(4576),r=n(49186),s=n(65529),o=n(53966),a=n(70328),l=n(19419),u=n(90708),c=n(6518),h=n(51441),d=n(37730);const p=(0,a.vt)();class m{constructor(e){this.geometryInfo=e,this._boundsStore=new c.F,this._featuresById=new Map,this._usedMemory=0,this.events=new s.bk,this.featureAdapter=d.T}get usedMemory(){return this._usedMemory}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let e=0;return this._featuresById.forEach(t=>{null!=t.geometry&&t.geometry.coords&&(e+=t.geometry.coords.length)}),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(e){if(null==this.fullBounds)return null;const[t,n,i,r]=this.fullBounds;return{xmin:t,ymin:n,xmax:i,ymax:r,spatialReference:(0,h.ag)(e)}}add(e){this._add(e),this._emitChanged()}addMany(e){for(const t of e)this._add(t);this._emitChanged()}upsertMany(e){const t=e.map(e=>this._upsert(e));return this._emitChanged(),t.filter(i.Ru)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged(),this._usedMemory=0}removeById(e){const t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(const t of e){const e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t){for(const n of e){const e=this._boundsStore.get(n.objectId);e&&t((0,a.Jt)(p,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach(t=>e(t))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,e=>{t(this._featuresById.get(e))})}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;const t=e.objectId;if(null==t)return void o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new r.A("featurestore:invalid-feature","feature id is missing",{feature:e}));const n=this._featuresById.get(t);let i;if(n?(e.displayId=n.displayId,i=this._boundsStore.get(t),this._boundsStore.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(n)??0):null!=this.onFeatureAdd&&this.onFeatureAdd(e),!e.geometry?.coords?.length)return this._boundsStore.set(t,null),void this._featuresById.set(t,e);i=(0,u.jQ)(null!=i?i:(0,l.vt)(),e.geometry),null!=i&&this._boundsStore.set(t,i),this._featuresById.set(t,e),this._usedMemory+=this.estimateFeatureUsedMemory?.(e)??0}_upsert(e){const t=e?.objectId;if(null==t)return o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new r.A("featurestore:invalid-feature","feature id is missing",{feature:e})),null;const n=this._featuresById.get(t);if(!n)return this._add(e),e;this._usedMemory-=this.estimateFeatureUsedMemory?.(n)??0;const{geometry:i,attributes:s}=e;for(const e in s)n.attributes[e]=s[e];return i&&(n.geometry=i,this._boundsStore.set(t,(0,u.jQ)((0,l.vt)(),i)??null)),this._usedMemory+=this.estimateFeatureUsedMemory?.(n)??0,n}_remove(e){null!=this.onFeatureRemove&&this.onFeatureRemove(e);const t=e.objectId;return this._boundsStore.delete(t),this._featuresById.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(e)??0,e}}},37730(e,t,n){n.d(t,{T:()=>r});var i=n(43334);const r={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t,n)=>new i.Om(t,e.attributes,null,e.objectId),getGeometry:e=>e.geometry,getCentroid:(e,t)=>e.ensureCentroid(t)}},33771(e,t,n){n.r(t),n.d(t,{default:()=>w});var i=n(60999),r=n(49186),s=n(53966),o=n(34727),a=n(17676),l=n(67076),u=n(21325),c=n(90708),h=n(83221),d=n(31464),p=n(56390),m=n(85113),f=n(82832),y=n(34322),g=n(95466),_=n(54218),b=n(98623);const x="esri.layers.WFSLayer";class w{constructor(){this._customParameters=null,this._queryEngine=null,this._supportsPagination=!0}destroy(){this._queryEngine?.destroy(),this._queryEngine=null}async load(e,t={}){const{getFeatureUrl:n,getFeatureOutputFormat:i,fields:s,geometryType:o,featureType:l,maxRecordCount:u,maxTotalRecordCount:c,maxPageCount:m,objectIdField:f,customParameters:_}=e,{spatialReference:x,getFeatureSpatialReference:w}=(0,y.UH)(n,l,e.spatialReference);try{await(0,d.Nk)(w,x)}catch{throw new r.A("unsupported-projection","Projection not supported",{inSpatialReference:w,outSpatialReference:x})}(0,a.Te)(t),this._customParameters=_,this._featureType=l,this._fieldsIndex=g.A.fromLayerJSON({fields:s,dateFieldsTimeReference:s.some(e=>"esriFieldTypeDate"===e.type)?{timeZoneIANA:b.n$}:null}),this._geometryType=o,this._getFeatureUrl=n,this._getFeatureOutputFormat=i,this._getFeatureSpatialReference=w,this._maxRecordCount=u,this._maxTotalRecordCount=c,this._maxPageCount=m,this._objectIdField=f,this._spatialReference=x;let v=await this._snapshotFeatures(t);if(v.errors.length>0&&(this._supportsPagination=!1,v=await this._snapshotFeatures(t),v.errors.length>0))throw v.errors[0];const C={type:"object-id",fieldName:f};return this._queryEngine=new p.do({fieldsIndex:this._fieldsIndex,geometryType:o,hasM:!1,hasZ:!1,featureIdInfo:C,spatialReference:x,timeInfo:null,featureStore:new h.A({geometryType:o,hasM:!1,hasZ:!1})}),this._queryEngine.featureStore.addMany(v.features),{warnings:S(v),extent:(await this._queryEngine.fetchRecomputedExtents()).fullExtent}}async applyEdits(){throw new r.A("wfs-source:editing-not-supported","applyEdits() is not supported on WFSLayer")}async queryFeatures(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQuery(e,t.signal)}async queryFeatureCount(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForCount(e,t.signal)}async queryObjectIds(e={},t={}){return await this._waitSnapshotComplete(),(await this._queryEngine.executeQueryForIds(e,t.signal)).filter(_.Et)}async queryExtent(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForExtent(e,t.signal)}async querySnapping(e,t={}){return await this._waitSnapshotComplete(),await this._queryEngine.executeQueryForSnapping(e,t.signal)}async queryAttributeBins(e,t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeAttributeBinsQuery(e,t.signal)}async refresh(e){return this._customParameters=e.customParameters,this._maxRecordCount=e.maxRecordCount,this._maxTotalRecordCount=e.maxTotalRecordCount,this._maxPageCount=e.maxPageCount,this._snapshotTask?.abort(),this._snapshotTask=(0,i.UT)(e=>this._snapshotFeatures({signal:e})),this._snapshotTask.promise.then(e=>{this._queryEngine.featureStore.clear(),this._queryEngine.featureStore.addMany(e.features);for(const t of S(e))s.A.getLogger(x).warn(new l.A("wfs-layer:refresh-warning",t.message,t.details));e.errors?.length&&s.A.getLogger(x).warn(new l.A("wfs-layer:refresh-error","Refresh completed with errors",{errors:e.errors}))},()=>{this._queryEngine.featureStore.clear()}),await this._waitSnapshotComplete(),{extent:(await this._queryEngine.fetchRecomputedExtents()).fullExtent}}async _waitSnapshotComplete(){if(this._snapshotTask&&!this._snapshotTask.finished){try{await this._snapshotTask.promise}catch{}return this._waitSnapshotComplete()}}async _snapshotFeatures(e){const t=e?.signal,n=this._maxTotalRecordCount,i=this._maxPageCount,r=this._supportsPagination&&i>1?await(0,y.E)(this._getFeatureUrl,this._featureType.typeName,{customParameters:this._customParameters,signal:t}):void 0;let s=[];const l=[];if(null==r)try{s=await this._singleQuery(t)}catch(e){(0,a.zf)(e)||l.push(e)}else{const e=Math.min(r,n),u=function*(e,t,n){for(let i=0;i<t;i++)yield e._pageQuery(i,n)}(this,(0,o.qE)(Math.ceil(e/this._maxRecordCount),1,i),t);await Promise.allSettled(Array.from({length:10}).map(()=>async function(e,t,n){let i=e.next();for(;!i.done;){try{const e=await i.value;t.push(...e)}catch(e){(0,a.zf)(e)||n.push(e)}i=e.next()}}(u,s,l)))}return(0,a.Te)(t),{features:s,totalRecordCount:r,maxTotalRecordCount:n,maxPageCount:i,errors:l}}async _singleQuery(e){const t=Number.isFinite(this._maxRecordCount)&&this._maxRecordCount>0?this._maxRecordCount:void 0,n=await(0,y.x$)(this._getFeatureUrl,this._featureType.typeName,this._getFeatureSpatialReference,this._getFeatureOutputFormat,{customParameters:this._customParameters,count:t,signal:e});return this._processGeoJSON(n,{signal:e})}async _pageQuery(e,t){const n=e*this._maxRecordCount,i=await(0,y.x$)(this._getFeatureUrl,this._featureType.typeName,this._getFeatureSpatialReference,this._getFeatureOutputFormat,{customParameters:this._customParameters,startIndex:n,count:this._maxRecordCount,signal:t});return this._processGeoJSON(i,{startIndex:n,signal:t})}_processGeoJSON(e,t){(0,m.sO)(e,this._getFeatureSpatialReference.wkid);const{startIndex:n,signal:i}=t;(0,a.Te)(i);const r=(0,m.bd)(e,{geometryType:this._geometryType,hasZ:!1,objectIdField:this._objectIdField});if(!(0,u.aI)(this._spatialReference,this._getFeatureSpatialReference))for(const e of r)null!=e.geometry&&(e.geometry=(0,c.Ux)((0,d.Cv)((0,c.zv)(e.geometry,this._geometryType,!1,!1),this._getFeatureSpatialReference,this._spatialReference)));let s=n??1;for(const e of r){const t={};(0,f.MB)(this._fieldsIndex,t,e.attributes,!0),e.attributes=t,null==t[this._objectIdField]&&(e.objectId=t[this._objectIdField]=s++)}return r}}function S(e){const t=[];return null!=e.totalRecordCount&&(e.features.length<e.totalRecordCount&&t.push({name:"wfs-layer:maxRecordCount-too-low",message:`Could only fetch ${e.features.length} of ${e.totalRecordCount} in ${e.maxPageCount} queries. Try increasing the value of WFSLayer.maxRecordCount.`,details:{recordCount:e.features.length,totalRecordCount:e.totalRecordCount}}),e.totalRecordCount>e.maxTotalRecordCount&&t.push({name:"wfs-layer:large-dataset",message:`The number of ${e.totalRecordCount} features exceeds the maximum allowed of ${e.maxTotalRecordCount}.`,details:{recordCount:e.features.length,totalRecordCount:e.totalRecordCount,maxTotalRecordCount:e.maxTotalRecordCount}})),t}},85113(e,t,n){n.d(t,{BM:()=>T,bd:()=>A,sO:()=>C,xD:()=>h});var i=n(67482),r=n(49186),s=n(21325),o=n(90708),a=n(43334),l=n(92722),u=n(30524);const c={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function h(e){return c[e]}function*d(e){switch(e.type){case"Feature":yield e;break;case"FeatureCollection":for(const t of e.features)t&&(yield t)}}function*p(e){if(e)switch(e.type){case"Point":yield e.coordinates;break;case"LineString":case"MultiPoint":yield*e.coordinates;break;case"MultiLineString":case"Polygon":for(const t of e.coordinates)yield*t;break;case"MultiPolygon":for(const t of e.coordinates)for(const e of t)yield*e}}function m(e){for(const t of e)if(t.length>2)return!0;return!1}function f(e){let t=0;for(let n=0;n<e.length;n++){const i=e[n],r=e[(n+1)%e.length];t+=i[0]*r[1]-r[0]*i[1]}return t<=0}function y(e){const t=e[0],n=e[e.length-1];t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]||e.push(t)}function g(e,t){const{coordinates:n,type:i}=e,r=t.hasZ??!1,s=!0;switch(i){case"Point":return new l.A([],[...n],r,!1);case"LineString":return(0,o.Ap)({paths:[n],hasZ:s},r,!1);case"MultiLineString":return(0,o.Ap)({paths:n,hasZ:s},r,!1);case"MultiPoint":return(0,o.PR)({points:n,hasZ:s},r,!1);case"Polygon":case"MultiPolygon":{const e=new l.A([],[],r,!1);for(const t of"Polygon"===i?[n]:n){_(e,t[0],r);for(let n=1;n<t.length;n++)b(e,t[n],r)}return e}}}function _(e,t,n){y(t),function(e){return!f(e)}(t)?w(e,t,n):x(e,t,n)}function b(e,t,n){y(t),function(e){return f(e)}(t)?w(e,t,n):x(e,t,n)}function x(e,t,n){for(const i of t)S(e,i,n);e.lengths.push(t.length)}function w(e,t,n){for(let i=t.length-1;i>=0;i--)S(e,t[i],n);e.lengths.push(t.length)}function S(e,[t,n,i],r){e.coords.push(t,n),r&&e.coords.push(i||0)}function v(e){switch(typeof e){case"string":return(0,i.Br)(e)?"esriFieldTypeDate":"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function C(e,t=4326){if(!e)throw new r.A("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==e.type&&"FeatureCollection"!==e.type)throw new r.A("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:e});const{crs:n}=e;if(!n)return;const i="string"==typeof n?n:"name"===n.type?n.properties.name:"EPSG"===n.type?n.properties.code:null,o=(0,s.oT)({wkid:t})?new RegExp(".*(CRS84H?|4326)$","i"):new RegExp(`.*(${t})$`,"i");if(!i||!o.test(i))throw new r.A("geojson:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:n})}function T(e,t={}){const n=[],i=new Set,r=new Set;let s,o=!1,a=null,l=!1,{geometryType:c=null}=t;for(const t of d(e)){const{geometry:e,properties:d,id:f}=t;if((!e||(c||(c=h(e.type)),h(e.type)===c))&&(o||(o=m(p(e))),l||(l=null!=f,l&&(s=typeof f,d&&(a=Object.keys(d).filter(e=>d[e]===f)))),d&&a&&l&&null!=f&&(a.length>1?a=a.filter(e=>d[e]===f):1===a.length&&(a=d[a[0]]===f?a:[])),d))for(const e in d){if(i.has(e))continue;const t=v(d[e]);if("unknown"===t){r.add(e);continue}r.delete(e),i.add(e);const s=(0,u.rS)(e);s&&n.push({name:s,alias:e,type:t})}}const f=(0,u.rS)(1===a?.length&&a[0]||null)??void 0;if(f)for(const e of n)if(e.name===f&&(0,u.WA)(e)){e.type="esriFieldTypeOID";break}return{fields:n,geometryType:c,hasZ:o,objectIdFieldName:f,objectIdFieldType:s,unknownFields:Array.from(r)}}function A(e,t){return Array.from(function*(e,t={}){const{geometryType:n,objectIdField:i}=t;for(const r of e){const{geometry:e,properties:s,id:o}=r;if(e&&h(e.type)!==n)continue;const l=s||{};let u;i&&(u=l[i],null==o||u||(l[i]=u=o)),yield new a.Om(e&&g(e,t),l,null,u)}}(d(e),t))}},82832(e,t,n){n.d(t,{$1:()=>y,CR:()=>f,MB:()=>d,PC:()=>g,Yx:()=>l,bP:()=>c});var i=n(67482),r=n(21325),s=n(30524);class o{constructor(e){this.description=e,this.code=null}}class a{constructor(e){this.globalId=null,this.objectId=null,this.success=!1,this.uniqueId=null,this.error=new o(e)}}function l(e){return new a(e)}class u{constructor(e){this.globalId=null,this.success=!0,this.objectId=this.uniqueId=e}}function c(e){return new u(e)}const h=new Set;function d(e,t,n,i=!1){h.clear();for(const r in n){const o=e.get(r);if(!o)continue;const a=p(o,n[r]);if(h.add(o.name),o&&(i||o.editable)){const e=(0,s.CJ)(o,a);if(e)return l((0,s.uo)(e,o,a));t[o.name]=a}}for(const t of e.requiredFields??[])if(!h.has(t.name))return l(`missing required field "${t.name}"`);return null}function p(e,t){let n=t;return(0,s.WA)(e)&&"string"==typeof t?n=parseFloat(t):(0,s.yM)(e)&&null!=t&&"string"!=typeof t?n=String(t):(0,s.vE)(e)&&"string"==typeof t&&(n=(0,i._U)(t)),(0,s.WX)(n)}let m;function f(e,t){if(!e||!(0,r.fn)(t))return e;if("rings"in e||"paths"in e){if(null==m)throw new TypeError("geometry engine not loaded");return m.simplify(t,e)}return e}async function y(e,t){!(0,r.fn)(e)||"esriGeometryPolygon"!==t&&"esriGeometryPolyline"!==t||await async function(){return null==m&&(m=await n.e(1023).then(n.bind(n,81023))),m}()}const g={supportsAutoIntervalBin:!0,supportsFixedIntervalBin:!0,supportsFixedBoundariesBin:!0,supportsDateBin:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsNormalization:!0,supportedStatisticTypes:["COUNT","SUM","AVG","VAR","STDDEV","MIN","MAX","PERCENTILE_CONT","PERCENTILE_DISC","CentroidAggregate","EnvelopeAggregate","ConvexHullAggregate"],supportedNormalizationTypes:["field","log","naturalLog","percentOfTotal","squareRoot"]}},34322(e,t,n){n.d(t,{E:()=>N,Fu:()=>S,O8:()=>M,UH:()=>G,YW:()=>R,i5:()=>b,mG:()=>F,x$:()=>P});var i=n(11254),r=n(49186),s=n(5479),o=n(84952),a=n(5443),l=n(91218),u=n(16930),c=n(21325),h=n(50498),d=n(85113),p=n(13043),m=n(60694),f=n(20437),y=n(30524);const g="xlink:href",_="2.0.0",b="__esri_wfs_id__",x="wfs-layer:feature-type-not-found",w="wfs-layer:unknown-geometry-type";async function S(e,t){const n=function(e){const t=k(e);(function(e){const t=e.firstElementChild?.getAttribute("version");if(t&&t!==_)throw new r.A("wfs-layer:unsupported-wfs-version",`Unsupported WFS version ${t}. Supported version: ${_}`)})(t),O(t);const n=t.firstElementChild,i=(0,s.PP)(function(e){return(0,p.i)(e,{FeatureTypeList:{FeatureType:e=>{const t={typeName:"undefined:undefined",name:"",title:"",description:"",extent:null,namespacePrefix:"",namespaceUri:"",defaultSpatialReference:4326,supportedSpatialReferences:[]},n=new Set;return(0,p.p)(e,{Name:e=>{const{name:n,prefix:i}=j(e.textContent);t.typeName=`${i}:${n}`,t.name=n,t.namespacePrefix=i,t.namespaceUri=e.lookupNamespaceURI(i)},Abstract:e=>{t.description=e.textContent},Title:e=>{t.title=e.textContent},WGS84BoundingBox:e=>{t.extent=a.A.fromJSON(function(e){let t,n,i,r;for(const s of e.children)switch(s.localName){case"LowerCorner":[t,n]=s.textContent.split(" ").map(e=>Number.parseFloat(e));break;case"UpperCorner":[i,r]=s.textContent.split(" ").map(e=>Number.parseFloat(e))}return{xmin:t,ymin:n,xmax:i,ymax:r,spatialReference:c.KK}}(e))},DefaultCRS:e=>{const i=A(e);i&&(t.defaultSpatialReference=i,n.add(i))},OtherCRS:e=>{const t=A(e);t&&n.add(t)}}),t.title||(t.title=t.name),n.add(4326),t.supportedSpatialReferences.push(...n),t}}})}(n));return{operations:T(n),get featureTypes(){return Array.from(i())},readFeatureTypes:i}}((await(0,i.A)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"GetCapabilities",VERSION:_,...t?.customParameters},signal:t?.signal})).data);return function(e,t){(0,o.m3)(e)&&((0,o.FX)(e,t.operations.DescribeFeatureType.url,!0)&&(t.operations.DescribeFeatureType.url=(0,o.lM)(t.operations.DescribeFeatureType.url)),(0,o.FX)(e,t.operations.GetFeature.url,!0)&&(t.operations.GetFeature.url=(0,o.lM)(t.operations.GetFeature.url)))}(e,n),n}const v=["json","application/json; subtype=geojson; charset=utf-8","application/json; subtype=geojson","application/json","geojson","application/geo+json"];function C(e){for(const t of v){const n=e.findIndex(e=>e.toLowerCase()===t);if(n>=0)return e[n]}return null}function T(e){let t=!0;const n={GetCapabilities:{url:""},DescribeFeatureType:{url:""},GetFeature:{url:"",outputFormat:null,supportsPagination:!1}},i=[],s=[];if((0,p.p)(e,{OperationsMetadata:{Parameter:e=>{if("outputformat"===e.getAttribute("name")?.toLowerCase())return{AllowedValues:{Value:({textContent:e})=>{e&&i.push(e)}}}},Operation:e=>{switch(e.getAttribute("name")){case"GetCapabilities":return{DCP:{HTTP:{Get:e=>{n.GetCapabilities.url=e.getAttribute(g)}}}};case"DescribeFeatureType":return{DCP:{HTTP:{Get:e=>{n.DescribeFeatureType.url=e.getAttribute(g)}}}};case"GetFeature":return{DCP:{HTTP:{Get:e=>{n.GetFeature.url=e.getAttribute(g)}}},Parameter:e=>{if("outputformat"===e.getAttribute("name")?.toLowerCase())return{AllowedValues:{Value:({textContent:e})=>{e&&s.push(e)}}}}}}},Constraint:e=>{switch(e.getAttribute("name")){case"KVPEncoding":return{DefaultValue:e=>{t="true"===e.textContent.toLowerCase()}};case"ImplementsResultPaging":return{DefaultValue:e=>{n.GetFeature.supportsPagination="true"===e.textContent.toLowerCase()}}}}}}),n.GetFeature.outputFormat=C(s)??C(i),!t)throw new r.A("wfs-layer:kvp-encoding-not-supported","WFS service doesn't support key/value pair (KVP) encoding");if(null==n.GetFeature.outputFormat)throw new r.A("wfs-layer:geojson-not-supported","WFS service doesn't support GeoJSON output format");return n}function A(e){const t=parseInt(e.textContent?.match(/(?<wkid>\d+$)/i)?.groups?.wkid??"",10);if(!Number.isNaN(t))return t}function F(e,t,n){return(0,s.I6)(e,e=>n?e.name===t&&e.namespaceUri===n:e.typeName===t||e.name===t)}async function M(e,t,n,i={}){const{featureType:s,extent:o}=await async function(e,t,n,i={}){const s=e.readFeatureTypes(),o=t?F(s,t,n):s.next().value,{spatialReference:a=new u.A({wkid:o?.defaultSpatialReference})}=i;if(null==o)throw t?new r.A(x,`The type '${t}' could not be found in the service`):new r.A("wfs-layer:empty-service","The service is empty");let h=o.extent;if(h&&!(0,c.aI)(h.spatialReference,a))try{await(0,l.initializeProjection)(h.spatialReference,a,void 0,i),h=(0,l.project)(h,a)}catch{throw new r.A("wfs-layer:unsupported-spatial-reference","Projection not supported")}return{extent:h,spatialReference:a,featureType:o}}(e,t,n,i),{spatialReference:a}=G(e.operations.GetFeature.url,s,i.spatialReference),{fields:h,geometryType:d,swapXY:p,objectIdField:m,geometryField:f}=await async function(e,t,n,i={}){const{typeName:s}=t,[o,a]=await Promise.allSettled([E(e.operations.DescribeFeatureType.url,s,i),I(e,s,n,i)]),l=e=>new r.A("wfs-layer:getWFSLayerTypeInfo-error",`An error occurred while getting info about the feature type '${s}'`,{error:e});if("rejected"===o.status)throw l(o.reason);if("rejected"===a.status)throw l(a.reason);const{fields:u,errors:c}=o.value??{},h=o.value?.geometryType||a.value?.geometryType,d=a.value?.swapXY??!1;if(null==h)throw new r.A(w,`The geometry type could not be determined for type '${s}`,{typeName:s,geometryType:h,fields:u,errors:c});return{...R(u??[]),geometryType:h,swapXY:d}}(e,s,a,i);return{url:e.operations.GetCapabilities.url,name:s.name,namespaceUri:s.namespaceUri,fields:h,geometryField:f,geometryType:d,objectIdField:m,spatialReference:i.spatialReference??new u.A({wkid:s.defaultSpatialReference}),extent:o,swapXY:p,wfsCapabilities:e,customParameters:i.customParameters}}function R(e){const t=e.find(e=>"geometry"===e.type);let n=e.find(e=>"oid"===e.type);return e=e.filter(e=>"geometry"!==e.type),n||(n=new f.A({name:b,type:"oid",alias:b}),e.unshift(n)),{geometryField:t?.name??null,objectIdField:n.name,fields:e}}async function I(e,t,n,r={}){let s,o=!1;const[a,l]=await Promise.all([P(e.operations.GetFeature.url,t,n,e.operations.GetFeature.outputFormat,{...r,count:1}),(0,i.A)(e.operations.GetFeature.url,{responseType:"text",query:z(t,n,void 0,{...r,count:1}),signal:r?.signal})]),u="FeatureCollection"===a.type&&a.features[0]?.geometry;if(u){let e;switch(s=h.gy.fromJSON((0,d.xD)(u.type)),u.type){case"Point":e=u.coordinates;break;case"LineString":case"MultiPoint":e=u.coordinates[0];break;case"MultiLineString":case"Polygon":e=u.coordinates[0][0];break;case"MultiPolygon":e=u.coordinates[0][0][0]}const t=/<[^>]*pos[^>]*> *(-?\d+(?:\.\d+)?) (-?\d+(?:\.\d+)?)/.exec(l.data);if(t){const n=e[0].toFixed(3),i=e[1].toFixed(3),r=parseFloat(t[1]).toFixed(3);n===parseFloat(t[2]).toFixed(3)&&i===r&&(o=!0)}}return{geometryType:s,swapXY:o}}async function E(e,t,n){return function(e,t){const{name:n}=j(e),i=k(t);O(i);const o=(0,s.I6)((0,p.i)(i.firstElementChild,{element:e=>e}),e=>e.getAttribute("name")===n);if(null!=o){const e=o.getAttribute("type"),t=e?(0,s.I6)((0,p.i)(i.firstElementChild,{complexType:e=>e}),t=>t.getAttribute("name")===j(e).name):(0,s.I6)((0,p.i)(o,{complexType:e=>e}),()=>!0);if(t)return function(e){const t=[],n=[];let i;const s=(0,p.i)(e,{complexContent:{extension:{sequence:{element:e=>e}}}});for(const o of s){const s=o.getAttribute("name");if(!s)continue;let a,l;if(o.hasAttribute("type")?a=j(o.getAttribute("type")).name:(0,p.p)(o,{simpleType:{restriction:e=>(a=j(e.getAttribute("base")).name,{maxLength:e=>{l=+e.getAttribute("value")}})}}),!a)continue;const u="true"===o.getAttribute("nillable");let c=!1;switch(a.toLowerCase()){case"integer":case"nonpositiveinteger":case"negativeinteger":case"long":case"int":case"short":case"byte":case"nonnegativeinteger":case"unsignedlong":case"unsignedint":case"unsignedshort":case"unsignedbyte":case"positiveinteger":n.push(new f.A({name:s,alias:s,type:"integer",nullable:u,length:(0,y._b)("integer")}));break;case"float":case"double":case"decimal":n.push(new f.A({name:s,alias:s,type:"double",nullable:u,length:(0,y._b)("double")}));break;case"boolean":case"string":case"gyearmonth":case"gyear":case"gmonthday":case"gday":case"gmonth":case"anyuri":case"qname":case"notation":case"normalizedstring":case"token":case"language":case"idrefs":case"entities":case"nmtoken":case"nmtokens":case"name":case"ncname":case"id":case"idref":case"entity":case"duration":case"time":n.push(new f.A({name:s,alias:s,type:"string",nullable:u,length:l??(0,y._b)("string")}));break;case"datetime":case"date":n.push(new f.A({name:s,alias:s,type:"date",nullable:u,length:l??(0,y._b)("date")}));break;case"pointpropertytype":i="point",c=!0;break;case"multipointpropertytype":i="multipoint",c=!0;break;case"curvepropertytype":case"multicurvepropertytype":case"multilinestringpropertytype":i="polyline",c=!0;break;case"surfacepropertytype":case"multisurfacepropertytype":case"multipolygonpropertytype":i="polygon",c=!0;break;case"geometrypropertytype":case"multigeometrypropertytype":c=!0,t.push(new r.A(w,`geometry type '${a}' is not supported`,{type:(new XMLSerializer).serializeToString(e)}));break;default:t.push(new r.A("wfs-layer:unknown-field-type",`Unknown field type '${a}'`,{type:(new XMLSerializer).serializeToString(e)}))}c&&n.push(new f.A({name:s,alias:s,type:"geometry",nullable:u}))}for(const e of n)if("integer"===e.type&&!e.nullable&&B.has(e.name.toLowerCase())){e.type="oid";break}return{geometryType:i,fields:n,errors:t}}(t)}throw new r.A(x,`Type '${e}' not found in document`,{document:(new XMLSerializer).serializeToString(i)})}(t,(await(0,i.A)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"DescribeFeatureType",VERSION:_,TYPENAME:t,TYPENAMES:t,...n?.customParameters},signal:n?.signal})).data)}const B=new Set(["objectid","fid"]);async function P(e,t,n,s,o){let{data:a}=await(0,i.A)(e,{responseType:"text",query:z(t,n,s,o),signal:o?.signal});a=a.replaceAll(/": +(-?\d+),(\d+)(,)?/g,'": $1.$2$3');try{return JSON.parse(a)}catch(e){throw new r.A("wfs-layer:malformed-json","Error while parsing the response",{response:a,error:e})}}function z(e,t,n,i){const r="number"==typeof t?t:t.wkid;return{SERVICE:"WFS",REQUEST:"GetFeature",VERSION:_,TYPENAMES:e,OUTPUTFORMAT:n,SRSNAME:"EPSG:"+r,STARTINDEX:i?.startIndex,COUNT:i?.count,...i?.customParameters}}async function N(e,t,n){const r=await(0,i.A)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"GetFeature",VERSION:_,TYPENAMES:t,RESULTTYPE:"hits",...n?.customParameters},signal:n?.signal}),s=/numberMatched=["'](?<numberMatched>\d+)["']/gi.exec(r.data);if(s?.groups)return+s.groups.numberMatched}function k(e){return(new DOMParser).parseFromString(e.trim(),"text/xml")}function j(e){const[t,n]=e.split(":");return{prefix:n?t:"",name:n??t}}function O(e){let t="",n="";if((0,p.p)(e.firstElementChild,{Exception:e=>(t=e.getAttribute("exceptionCode"),{ExceptionText:e=>{n=e.textContent}})}),t)throw new r.A(`wfs-layer:${t}`,n)}function G(e,t,n){const i={wkid:t.defaultSpatialReference},r=null!=n?.wkid?{wkid:n.wkid}:i;return{spatialReference:r,getFeatureSpatialReference:(0,m.Fi)(e)||r.wkid&&t.supportedSpatialReferences.includes(r.wkid)?{wkid:r.wkid}:{wkid:t.defaultSpatialReference}}}},13043(e,t,n){function i(e,t){if(e&&t)for(const n of e.children)if(n.localName in t){const e=t[n.localName];if("function"==typeof e){const t=e(n);t&&i(n,t)}else i(n,e)}}function*r(e,t){for(const n of e.children)if(n.localName in t){const e=t[n.localName];"function"==typeof e?yield e(n):yield*r(n,e)}}n.d(t,{i:()=>r,p:()=>i})},39357(e,t,n){n.d(t,{A:()=>a});var i,r=n(5482),s=n(25482),o=n(91429);let a=i=class extends s.o{constructor(e){super(e),this.name=null,this.code=null}clone(){return new i({name:this.name,code:this.code})}};(0,r.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"name",void 0),(0,r.Cg)([(0,o.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],a.prototype,"code",void 0),a=i=(0,r.Cg)([(0,o.$K)("esri.layers.support.CodedValue")],a)},53177(e,t,n){n.d(t,{A:()=>c});var i,r=n(5482),s=n(4718),o=n(91429),a=n(39357),l=n(76357),u=n(93223);let c=class extends l.A{static{i=this}constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const n=String(e);this.codedValues.some(e=>(String(e.code)===n&&(t=e.name),!!t))}return t}clone(){return new i({codedValues:(0,s.o8)(this.codedValues),name:this.name})}};(0,r.Cg)([(0,o.MZ)({type:[a.A],json:{write:{isRequired:!0}}})],c.prototype,"codedValues",void 0),(0,r.Cg)([(0,u.e)({codedValue:"coded-value"})],c.prototype,"type",void 0),c=i=(0,r.Cg)([(0,o.$K)("esri.layers.support.CodedValueDomain")],c)},76357(e,t,n){n.d(t,{A:()=>u});var i=n(5482),r=n(66552),s=n(25482),o=n(91429),a=n(93223);const l=new r.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let u=class extends s.o{constructor(e){super(e),this.name=null,this.type=null}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,a.e)(l),(0,o.MZ)({json:{write:{isRequired:!0}}})],u.prototype,"type",void 0),u=(0,i.Cg)([(0,o.$K)("esri.layers.support.Domain")],u)},20437(e,t,n){n.d(t,{A:()=>m});var i,r=n(5482),s=n(66552),o=n(25482),a=n(91429),l=n(56507),u=n(8631),c=n(98453),h=n(36005),d=n(93223);const p=new s.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",currency:"currency",dateAndTime:"date-and-time",description:"description",emailAddress:"email-address",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",phoneNumber:"phone-number",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let m=class extends o.o{static{i=this}constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?.value??null}readValueType(e,{description:t}){let n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?p.fromJSON(n.fieldValueType):null}clone(){return new i({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],m.prototype,"alias",void 0),(0,r.Cg)([(0,a.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],m.prototype,"defaultValue",void 0),(0,r.Cg)([(0,a.MZ)()],m.prototype,"description",void 0),(0,r.Cg)([(0,h.w)("description")],m.prototype,"readDescription",null),(0,r.Cg)([(0,a.MZ)({types:u.g,json:{read:{reader:u.r},write:!0}})],m.prototype,"domain",void 0),(0,r.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"editable",void 0),(0,r.Cg)([(0,a.MZ)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],m.prototype,"length",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,r.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"nullable",void 0),(0,r.Cg)([(0,d.e)(c.m)],m.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)()],m.prototype,"valueType",void 0),(0,r.Cg)([(0,h.w)("valueType",["description"])],m.prototype,"readValueType",null),(0,r.Cg)([(0,a.MZ)({type:Boolean,json:{read:!1}})],m.prototype,"visible",void 0),m=i=(0,r.Cg)([(0,a.$K)("esri.layers.support.Field")],m)},41628(e,t,n){n.d(t,{A:()=>l});var i,r=n(5482),s=n(91429),o=n(76357),a=n(93223);let l=class extends o.A{static{i=this}constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new i({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,r.Cg)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,n){t[n]=[this.minValue||0,e]},isRequired:!0}}})],l.prototype,"maxValue",void 0),(0,r.Cg)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,n){t[n]=[e,this.maxValue||0]},isRequired:!0}}})],l.prototype,"minValue",void 0),(0,r.Cg)([(0,a.e)({range:"range"})],l.prototype,"type",void 0),l=i=(0,r.Cg)([(0,s.$K)("esri.layers.support.RangeDomain")],l)},8631(e,t,n){n.d(t,{r:()=>d,g:()=>h});var i,r=n(53177),s=n(76357),o=n(5482),a=n(91429),l=n(93223);let u=class extends s.A{static{i=this}constructor(e){super(e),this.type="inherited"}clone(){return new i}};(0,o.Cg)([(0,l.e)({inherited:"inherited"})],u.prototype,"type",void 0),u=i=(0,o.Cg)([(0,a.$K)("esri.layers.support.InheritedDomain")],u);var c=n(41628);const h={key:"type",base:s.A,typeMap:{range:c.A,"coded-value":r.A,inherited:u}};function d(e){if(!e?.type)return null;switch(e.type){case"range":return c.A.fromJSON(e);case"codedValue":return r.A.fromJSON(e);case"inherited":return u.fromJSON(e)}return null}},98453(e,t,n){n.d(t,{m:()=>i});const i=new(n(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},2272(e,t,n){n.d(t,{Dl:()=>u,gf:()=>h,jV:()=>l,lF:()=>c});var i=n(92602),r=n(70333),s=n(4718),o=n(84952),a=n(926);function l(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,o.An)(e):(0,s.o8)(e)}function c(e,t,n){const i={};for(const r in e){if("declaredClass"===r)continue;const s=e[r];if(null!=s&&"function"!=typeof s)if(Array.isArray(s))i[r]=s.map(e=>c(e));else if("object"==typeof s)if(s.toJSON){const e=s.toJSON(n?.[r]);i[r]=t?e:JSON.stringify(e)}else i[r]=t?s:JSON.stringify(s);else i[r]=s}return i}async function h(e,t,s){const o=function(e,t){return e?t&&(0,a.Qc)(e)?t:(0,a.getApiKey)(e)??r.id?.findCredential(e)?.token:null}(e,t);if(o)return o;!r.id&&i.A.request.useIdentity&&await Promise.all([n.e(7632),n.e(318),n.e(148)]).then(n.bind(n,50148));const l=await r.id.getCredential(e,s);return l?.token}},926(e,t,n){n.d(t,{Dd:()=>d,Jn:()=>p,Qc:()=>m,getApiKey:()=>c,getSessionToken:()=>h});var i=n(92602),r=n(11254),s=n(84952);const o=/^https?:\/\/(i?basemaps|basemapstyles)-api\.arcgis\.com\//i,a=new Set(["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"]),l=new Map;let u=null;function c(e){if(!m(e))return null;const t=t=>t instanceof RegExp?t.test(e):"string"==typeof t&&e.startsWith(t),n=i.A.apiKeys;if(Array.isArray(n.scopes))for(const e of n.scopes)if(Array.isArray(e.urls)){if(e.urls.some(t))return e.token}else if(t(e.urls))return e.token;return n.basemapStyles&&o.test(e)?n.basemapStyles:i.A.apiKey&&/^https?:\/\/.+\.arcgis\.com(\/|$)/i.test(e)?i.A.apiKey:null}async function h(e){if(!i.A.sessions?.basemap?.enabled||!o.test(e))return null;const t=c(e);if(!t)return null;u&&await u;const{styleFamily:n="arcgis",autoRefresh:s,duration:a=43200}=i.A.sessions.basemap,h=`${t}:${n}`,d=l.get(h);if(d&&(!s||d.endTime>Date.now()))return d.sessionToken;let p;u=(0,r.A)("https://basemapstyles-api.arcgis.com/arcgis/rest/services/styles/v2/sessions/start",{cacheBust:!0,query:{durationSeconds:a,styleFamily:n,token:t}});try{p=(await u).data,p.endTime-=5e3,l.set(h,p)}finally{u=null}return p.sessionToken}function d(){return null!=i.A.apiKey||null!=i.A.apiKeys.basemapStyles}function p(e,t){return t?m(e):null!=c(e)}function m(e){const t=(0,s.$z)(e,!0);return!!t&&!a.has(t)&&!e.endsWith("/sharing/rest/generateToken")}}}]);