@arcgis/core 5.1.0-next.74 → 5.1.0-next.75

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 (253) hide show
  1. package/arcade/ArcadePortal.js +1 -1
  2. package/arcade/functions/aiServices.js +1 -1
  3. package/arcade/functions/featuresetbase.js +1 -1
  4. package/arcade/functions/geomasync.js +1 -1
  5. package/arcade/functions/knowledgegraph.js +1 -1
  6. package/arcade/functions/string.js +1 -1
  7. package/arcade/languageUtils.js +1 -1
  8. package/arcade/portalUtils.js +1 -1
  9. package/assets/esri/core/workers/RemoteClient.js +1 -1
  10. package/assets/esri/core/workers/chunks/07aca5ecad659d55e795.js +2 -0
  11. package/assets/esri/core/workers/chunks/09630888267cde87654f.js +1 -0
  12. package/assets/esri/core/workers/chunks/0fa207c68dfd7ddee160.js +1 -0
  13. package/assets/esri/core/workers/chunks/146424b5717d0a645ee1.js +1 -0
  14. package/assets/esri/core/workers/chunks/{d00dafad202450e6ee2e.js → 14eb2cc8e2ad6d8d03fd.js} +1 -1
  15. package/assets/esri/core/workers/chunks/1765dfeac20e34ce25b7.js +1 -0
  16. package/assets/esri/core/workers/chunks/176dd195f77b98cb0b0f.js +1 -0
  17. package/assets/esri/core/workers/chunks/1906416c84bab369bbd6.js +1 -0
  18. package/assets/esri/core/workers/chunks/{b98c24229463029504e8.js → 1f6b7626f333809837ef.js} +1 -1
  19. package/assets/esri/core/workers/chunks/1ff3c15a51c4dc991806.js +1 -0
  20. package/assets/esri/core/workers/chunks/2a2e97918524e0f436d7.js +1 -0
  21. package/assets/esri/core/workers/chunks/2b0b398180ed98c2c84c.js +1 -0
  22. package/assets/esri/core/workers/chunks/{bab23b905678e42815e5.js → 312036c89a6a09bb06c2.js} +1 -1
  23. package/assets/esri/core/workers/chunks/{37091cf498a16ccad7ff.js → 330b47ac0759c3c35cc5.js} +1 -1
  24. package/assets/esri/core/workers/chunks/34b6b5dd415c68f0b0d1.js +1 -0
  25. package/assets/esri/core/workers/chunks/{a270960d80d8344dd75f.js → 34ea3ed78041437a8fc8.js} +1 -1
  26. package/assets/esri/core/workers/chunks/384c235d36f32769e32b.js +1 -0
  27. package/assets/esri/core/workers/chunks/3a183259805638c25363.js +1 -0
  28. package/assets/esri/core/workers/chunks/{deaca3cd202851ecf9c2.js → 3cce9dad8ee0e4971d50.js} +1 -1
  29. package/assets/esri/core/workers/chunks/3efbb684c0409955186d.js +1 -0
  30. package/assets/esri/core/workers/chunks/40d251b6b42a41d68bd2.js +1 -0
  31. package/assets/esri/core/workers/chunks/42336e0d1ef88737b078.js +1 -0
  32. package/assets/esri/core/workers/chunks/47b3a5213539548ff3a6.js +1 -0
  33. package/assets/esri/core/workers/chunks/4a23b27bfbcfa08fd9a7.js +1 -0
  34. package/assets/esri/core/workers/chunks/52b3a11c962810bc6dbe.js +1 -0
  35. package/assets/esri/core/workers/chunks/53750e85f3128993a43a.js +1 -0
  36. package/assets/esri/core/workers/chunks/{4bbe684050b3b04681d0.js → 537fe2522dff1e6ce03b.js} +1 -1
  37. package/assets/esri/core/workers/chunks/55fd201ca5e10c6e4761.js +1 -0
  38. package/assets/esri/core/workers/chunks/56941e8bbd2d49bf2656.js +1 -0
  39. package/assets/esri/core/workers/chunks/5d8e944b192aad4cf986.js +1 -0
  40. package/assets/esri/core/workers/chunks/{5476c2f7b83f4ccd0335.js → 5e1b847b116d21908a54.js} +1 -1
  41. package/assets/esri/core/workers/chunks/5ed8d8b5336c81fbcda3.js +1 -0
  42. package/assets/esri/core/workers/chunks/60915a3708a34da1977e.js +1 -0
  43. package/assets/esri/core/workers/chunks/61c523dd9d8027922465.js +1 -0
  44. package/assets/esri/core/workers/chunks/65c61171e6c6be5c5c2f.js +1 -0
  45. package/assets/esri/core/workers/chunks/6a3d207308b29651f397.js +1 -0
  46. package/assets/esri/core/workers/chunks/6c35583707f5c339ee99.js +1 -0
  47. package/assets/esri/core/workers/chunks/702e8468836863abd81b.js +1 -0
  48. package/assets/esri/core/workers/chunks/7540f7df86620f067b5a.js +1 -0
  49. package/assets/esri/core/workers/chunks/76e34f81bb4a7b0e694c.js +1 -0
  50. package/assets/esri/core/workers/chunks/7b6c8be59ed87e386aa4.js +1 -0
  51. package/assets/esri/core/workers/chunks/7c820c5f6f05480d5050.js +1 -0
  52. package/assets/esri/core/workers/chunks/80f4f686ce403cb2693f.js +1 -0
  53. package/assets/esri/core/workers/chunks/852f4cd514008fee5a55.js +1 -0
  54. package/assets/esri/core/workers/chunks/8a3bff0f58483c1665f9.js +1 -0
  55. package/assets/esri/core/workers/chunks/8b046e28f879079caada.js +1 -0
  56. package/assets/esri/core/workers/chunks/8d738e9acc2f222235ea.js +1 -0
  57. package/assets/esri/core/workers/chunks/9103eb0b9078019d3a26.js +1 -0
  58. package/assets/esri/core/workers/chunks/915e2711d3a2cfa402b2.js +1 -0
  59. package/assets/esri/core/workers/chunks/91f9e0e3662d4bf9f163.js +1 -0
  60. package/assets/esri/core/workers/chunks/99c161fecae710b53b40.js +1 -0
  61. package/assets/esri/core/workers/chunks/99d298d0039c536fcf3e.js +1 -0
  62. package/assets/esri/core/workers/chunks/9a5ef33d99a8f89956ff.js +1 -0
  63. package/assets/esri/core/workers/chunks/9d10db72e342fe63c981.js +1 -0
  64. package/assets/esri/core/workers/chunks/{a36761e3122f70fbb3c9.js → 9d6491f996eeb0c646ed.js} +1 -1
  65. package/assets/esri/core/workers/chunks/a015c2f54eb91e43a1f4.js +1 -0
  66. package/assets/esri/core/workers/chunks/a242ec19a7508de436da.js +1 -0
  67. package/assets/esri/core/workers/chunks/a320998f18922a35899f.js +1 -0
  68. package/assets/esri/core/workers/chunks/a7f9f478bd1493fc3c76.js +1 -0
  69. package/assets/esri/core/workers/chunks/aac6a57edd7494125204.js +1 -0
  70. package/assets/esri/core/workers/chunks/b73c146d3e550eaf07eb.js +1 -0
  71. package/assets/esri/core/workers/chunks/b7af0e6b9aadbcaf6a0b.js +1 -0
  72. package/assets/esri/core/workers/chunks/b803e7b0d489bb628d72.js +1 -0
  73. package/assets/esri/core/workers/chunks/baeb96aef03d4c566af7.js +1 -0
  74. package/assets/esri/core/workers/chunks/bc75ab48f4c7609ef09d.js +1 -0
  75. package/assets/esri/core/workers/chunks/bc78937986854e500b8e.js +1 -0
  76. package/assets/esri/core/workers/chunks/bd10d21545bca9a49de0.js +1 -0
  77. package/assets/esri/core/workers/chunks/{b905e637a67fbb7af4ae.js → bf8f603848bad4a7deb4.js} +1 -1
  78. package/assets/esri/core/workers/chunks/bfe575da727ce7c8d331.js +2 -0
  79. package/assets/esri/core/workers/chunks/c31ee5617c61a933cb0e.js +1 -0
  80. package/assets/esri/core/workers/chunks/cb45e5d4a4ef82cda583.js +1 -0
  81. package/assets/esri/core/workers/chunks/ce7ef7c4ca14d66d96f6.js +1 -0
  82. package/assets/esri/core/workers/chunks/{5b324e572737a308500d.js → cf14b3a44705dacefac4.js} +1 -1
  83. package/assets/esri/core/workers/chunks/d3b086eb9aa8c7d09048.js +1 -0
  84. package/assets/esri/core/workers/chunks/d55cef8199b8246fea3f.js +1 -0
  85. package/assets/esri/core/workers/chunks/d8decaee2c780e1b5e35.js +1 -0
  86. package/assets/esri/core/workers/chunks/{41809c16544ec25120fa.js → d95ffd990b3a7df69e1e.js} +1 -1
  87. package/assets/esri/core/workers/chunks/dc54d4a9fe1691862356.js +1 -0
  88. package/assets/esri/core/workers/chunks/dda2cb5c073d1e65f14f.js +1 -0
  89. package/assets/esri/core/workers/chunks/e18badd11f360cc2912b.js +1 -0
  90. package/assets/esri/core/workers/chunks/{ad064583f8a836005098.js → e262c4864dc06c43b380.js} +1 -1
  91. package/assets/esri/core/workers/chunks/e610d24539a675fb054b.js +1 -0
  92. package/assets/esri/core/workers/chunks/e9c5c295b6bf10e942a4.js +1 -0
  93. package/assets/esri/core/workers/chunks/ea59b81299acaf0d85ee.js +1 -0
  94. package/assets/esri/core/workers/chunks/{873c1b705ac3d4e6c384.js → ea97619a4470f1540b99.js} +1 -1
  95. package/assets/esri/core/workers/chunks/eaab5ac049622986e3bc.js +1 -0
  96. package/assets/esri/core/workers/chunks/edee616b6f1b5be8fd39.js +1 -0
  97. package/assets/esri/core/workers/chunks/ef0085aa743b33cb549f.js +1 -0
  98. package/assets/esri/core/workers/chunks/f0250cecb243b32cdba7.js +1 -0
  99. package/assets/esri/core/workers/chunks/f518835b2dc89a48cfb1.js +1 -0
  100. package/assets/esri/core/workers/chunks/f6c8e93ca2987e83f925.js +1 -0
  101. package/assets/esri/themes/base/widgets/_Sketch.scss +32 -0
  102. package/assets/esri/themes/dark/main.css +1 -1
  103. package/assets/esri/themes/light/main.css +1 -1
  104. package/assets/esri/themes/light/view.css +1 -1
  105. package/assets/esri/widgets/Sketch/t9n/Sketch.json +1 -1
  106. package/assets/esri/widgets/Sketch/t9n/Sketch_en.json +1 -1
  107. package/chunks/MultiPathImpl.js +1 -1
  108. package/chunks/Point2D.js +1 -1
  109. package/chunks/SpatialReference.js +1 -1
  110. package/chunks/aiServices.js +1 -1
  111. package/chunks/languageUtils.js +1 -1
  112. package/config.js +1 -1
  113. package/core/workers/registry.js +1 -1
  114. package/form/elements/AttachmentElement.d.ts +15 -16
  115. package/form/elements/GroupElement.d.ts +3 -2
  116. package/form/elements/inputs/attachments/AttachmentInput.d.ts +7 -9
  117. package/form/elements/inputs/attachments/AudioInput.d.ts +6 -8
  118. package/form/elements/inputs/attachments/DocumentInput.d.ts +5 -7
  119. package/form/elements/inputs/attachments/ImageInput.d.ts +6 -8
  120. package/form/elements/inputs/attachments/Input.d.ts +2 -6
  121. package/form/elements/inputs/attachments/SignatureInput.d.ts +5 -7
  122. package/form/elements/inputs/attachments/VideoInput.d.ts +6 -8
  123. package/form/elements/inputs/attachments/types.d.ts +3 -3
  124. package/geometry/FlatGeometry.js +1 -1
  125. package/geometry/operators/projectOperator.js +1 -1
  126. package/graphic/ImageryGraphicOrigin.js +1 -1
  127. package/graphic/ImageryTileGraphicOrigin.js +1 -1
  128. package/graphic/WCSGraphicOrigin.js +1 -1
  129. package/kernel.js +1 -1
  130. package/layers/mixins/ArcGISImageService.js +1 -1
  131. package/package.json +4 -4
  132. package/popup/Features.js +1 -1
  133. package/support/revision.js +1 -1
  134. package/symbols/cim/CIMSymbolHelper.js +1 -1
  135. package/symbols/cim/CIMSymbolRasterizer.js +1 -1
  136. package/symbols/support/previewCIMSymbol.js +1 -1
  137. package/views/2d/analysis/AreaMeasurement/AreaMeasurementController.js +1 -1
  138. package/views/2d/engine/webgl/TextureManager.js +1 -1
  139. package/views/2d/layers/MediaLayerView2D.js +1 -1
  140. package/views/2d/layers/TileLayerView2D.js +1 -1
  141. package/views/2d/layers/features/schema/processor/symbols/ComplexSymbolSchema.js +1 -1
  142. package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
  143. package/views/3d/analysis/AreaMeasurement/support/MeasurementData.js +1 -1
  144. package/views/3d/analysis/Dimension/DimensionController.js +1 -1
  145. package/views/3d/analysis/DirectLineMeasurement/DirectLineMeasurementController.js +1 -1
  146. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillController.js +1 -1
  147. package/views/3d/interactive/editingTools/move/MoveTool3D.js +1 -1
  148. package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
  149. package/views/3d/interactive/editingTools/transform/extentTransform/ExtentMove.js +1 -1
  150. package/views/3d/interactive/editingTools/transform/extentTransform/ExtentScale.js +1 -1
  151. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  152. package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
  153. package/views/VideoView.js +1 -1
  154. package/views/draw/DrawGraphicTool.js +1 -1
  155. package/views/draw/DrawTool.js +1 -1
  156. package/views/draw/support/Box.js +1 -1
  157. package/views/draw/support/Reshape.js +1 -1
  158. package/views/draw/support/managers/MeasurementManager.js +1 -1
  159. package/views/interactive/SegmentLabels.js +1 -1
  160. package/views/interactive/snapping/SelfSnappingEngine.js +1 -1
  161. package/views/support/GeometryWorker.js +2 -0
  162. package/views/support/GeometryWorkerHandle.js +2 -0
  163. package/widgets/FeatureTable/FeatureTableViewModel.d.ts +1 -3
  164. package/widgets/FeatureTable/Grid/GridViewModel.d.ts +2 -11
  165. package/widgets/FeatureTable/support/types.d.ts +2 -1
  166. package/widgets/OrientedImageryViewer/OrientedImageryViewerVisibleElements.d.ts +28 -0
  167. package/widgets/OrientedImageryViewer/OrientedImageryViewerVisibleElements.js +1 -1
  168. package/widgets/OrientedImageryViewer.d.ts +27 -0
  169. package/widgets/Sketch/SketchViewModel.d.ts +10 -2
  170. package/widgets/Sketch/SketchViewModel.js +1 -1
  171. package/widgets/Sketch/support/ResponsiveToolbar/MeasuredContentGroup.js +1 -1
  172. package/widgets/Sketch/support/ResponsiveToolbar/ResponsiveToolbar.js +1 -1
  173. package/widgets/Sketch.js +1 -1
  174. package/assets/esri/core/workers/chunks/00bae4b7e179336e0362.js +0 -1
  175. package/assets/esri/core/workers/chunks/041c372e98a6fba90b36.js +0 -1
  176. package/assets/esri/core/workers/chunks/0783890816bac45277b9.js +0 -1
  177. package/assets/esri/core/workers/chunks/07aac6245a0d1adbb2d4.js +0 -1
  178. package/assets/esri/core/workers/chunks/1286f41f245ef22b3a26.js +0 -1
  179. package/assets/esri/core/workers/chunks/12e575a6d2b008b8fc2b.js +0 -1
  180. package/assets/esri/core/workers/chunks/161d60fdac2013c15543.js +0 -1
  181. package/assets/esri/core/workers/chunks/168de44a789d1cecc1f8.js +0 -1
  182. package/assets/esri/core/workers/chunks/1d9d7915cf7449e5d468.js +0 -1
  183. package/assets/esri/core/workers/chunks/1db1656a033f3992f0d6.js +0 -1
  184. package/assets/esri/core/workers/chunks/235cb82952a18ff8d206.js +0 -1
  185. package/assets/esri/core/workers/chunks/27b80c386cebadcaca3c.js +0 -1
  186. package/assets/esri/core/workers/chunks/29d3890a5a43d934067a.js +0 -1
  187. package/assets/esri/core/workers/chunks/2f17438d215bea3ce70f.js +0 -1
  188. package/assets/esri/core/workers/chunks/356cb86606b8c674f947.js +0 -1
  189. package/assets/esri/core/workers/chunks/398e0dd2bc7e1ab84831.js +0 -1
  190. package/assets/esri/core/workers/chunks/3b1052aa30af3f6186cc.js +0 -1
  191. package/assets/esri/core/workers/chunks/3e87e3ad857d72f6ecbb.js +0 -1
  192. package/assets/esri/core/workers/chunks/42e483fde18f12da32a6.js +0 -1
  193. package/assets/esri/core/workers/chunks/43ab44d37bc0ea97ef98.js +0 -1
  194. package/assets/esri/core/workers/chunks/488ed9584b527ec47be3.js +0 -1
  195. package/assets/esri/core/workers/chunks/4ad32580e0c0699fde1f.js +0 -1
  196. package/assets/esri/core/workers/chunks/4c13869d260a902d3014.js +0 -1
  197. package/assets/esri/core/workers/chunks/54ed37ec9682ea739deb.js +0 -1
  198. package/assets/esri/core/workers/chunks/5511e640e171c294f52a.js +0 -2
  199. package/assets/esri/core/workers/chunks/55369c5bd65bcaf78da1.js +0 -1
  200. package/assets/esri/core/workers/chunks/56fd3da911c2c4511e5d.js +0 -1
  201. package/assets/esri/core/workers/chunks/59592bb25f226865e88a.js +0 -1
  202. package/assets/esri/core/workers/chunks/5d55b4449bcb24cd72b6.js +0 -1
  203. package/assets/esri/core/workers/chunks/5d8fe41a3c06ddb4094b.js +0 -1
  204. package/assets/esri/core/workers/chunks/608d707fd9d9f9088473.js +0 -1
  205. package/assets/esri/core/workers/chunks/6a21c9a4aeebe806ea39.js +0 -1
  206. package/assets/esri/core/workers/chunks/6c7ff968bd4fc816442d.js +0 -1
  207. package/assets/esri/core/workers/chunks/6d11ec355e5474b2968b.js +0 -1
  208. package/assets/esri/core/workers/chunks/6d25230dd85a4ba54c4f.js +0 -1
  209. package/assets/esri/core/workers/chunks/7027d93dc5a4595d70c6.js +0 -1
  210. package/assets/esri/core/workers/chunks/70b35b2446558d5280e3.js +0 -1
  211. package/assets/esri/core/workers/chunks/7349cb45a93e6916f115.js +0 -1
  212. package/assets/esri/core/workers/chunks/76edaeaf8fe344bb77a8.js +0 -1
  213. package/assets/esri/core/workers/chunks/76fe5b821d6b54db5721.js +0 -1
  214. package/assets/esri/core/workers/chunks/7951d93f5f15aa76f49c.js +0 -1
  215. package/assets/esri/core/workers/chunks/7a56c836c89a8b978800.js +0 -1
  216. package/assets/esri/core/workers/chunks/81d30c9062ad0120a863.js +0 -1
  217. package/assets/esri/core/workers/chunks/88c5f7c712c6b89b5109.js +0 -1
  218. package/assets/esri/core/workers/chunks/88e469b82d2594f23649.js +0 -1
  219. package/assets/esri/core/workers/chunks/8a8242e7cc7e6a9e7876.js +0 -1
  220. package/assets/esri/core/workers/chunks/9444ed8ea117861ae89b.js +0 -1
  221. package/assets/esri/core/workers/chunks/9a38fd68b02b617c45d3.js +0 -1
  222. package/assets/esri/core/workers/chunks/9be9ccce6369f67202bc.js +0 -1
  223. package/assets/esri/core/workers/chunks/a37c28e3c4a2be9fd1d5.js +0 -1
  224. package/assets/esri/core/workers/chunks/a8d7f59927bdad564141.js +0 -1
  225. package/assets/esri/core/workers/chunks/a94bd20551c1179c7ec5.js +0 -1
  226. package/assets/esri/core/workers/chunks/a9d2c83bb10b5ade0ca0.js +0 -1
  227. package/assets/esri/core/workers/chunks/abe22ae8ee0dcc9efbb7.js +0 -1
  228. package/assets/esri/core/workers/chunks/b702279c48f3009f6dd8.js +0 -1
  229. package/assets/esri/core/workers/chunks/bc887bd62579dba81e2b.js +0 -1
  230. package/assets/esri/core/workers/chunks/be0341567bb19e101a4f.js +0 -1
  231. package/assets/esri/core/workers/chunks/be1d6a571f76933dfbb0.js +0 -1
  232. package/assets/esri/core/workers/chunks/bfcdc5c315131aae34d8.js +0 -1
  233. package/assets/esri/core/workers/chunks/c0f624a2ca0d07ef8f8c.js +0 -1
  234. package/assets/esri/core/workers/chunks/c327fe276238af60fda4.js +0 -1
  235. package/assets/esri/core/workers/chunks/c5f155fe114a2a05aaf2.js +0 -2
  236. package/assets/esri/core/workers/chunks/c61002a117dc2218d6af.js +0 -1
  237. package/assets/esri/core/workers/chunks/c804a66ef7615aa8de89.js +0 -1
  238. package/assets/esri/core/workers/chunks/cb5e4b9b4a59c2622eb5.js +0 -1
  239. package/assets/esri/core/workers/chunks/d201a5dff18a5bb467ab.js +0 -1
  240. package/assets/esri/core/workers/chunks/d21fdd67477800101f3b.js +0 -1
  241. package/assets/esri/core/workers/chunks/db588bf3256e95c977b7.js +0 -1
  242. package/assets/esri/core/workers/chunks/dfdd474fddcd1d6091ce.js +0 -1
  243. package/assets/esri/core/workers/chunks/e235ea4293d5d463acfb.js +0 -1
  244. package/assets/esri/core/workers/chunks/e43486113aaf72ac4dc1.js +0 -1
  245. package/assets/esri/core/workers/chunks/ea4c3393c5757e309a71.js +0 -1
  246. package/assets/esri/core/workers/chunks/ed216ddeb7f59f510bd0.js +0 -1
  247. package/assets/esri/core/workers/chunks/ef8886dff54063928bcb.js +0 -1
  248. package/assets/esri/core/workers/chunks/f43a63094190d2074cd0.js +0 -1
  249. package/assets/esri/core/workers/chunks/f5223ffb3be548c9b0a1.js +0 -1
  250. package/views/support/MeasurementWorker.js +0 -2
  251. package/views/support/MeasurementWorkerHandle.js +0 -2
  252. /package/assets/esri/core/workers/chunks/{5511e640e171c294f52a.js.LICENSE.txt → 07aca5ecad659d55e795.js.LICENSE.txt} +0 -0
  253. /package/assets/esri/core/workers/chunks/{c5f155fe114a2a05aaf2.js.LICENSE.txt → bfe575da727ce7c8d331.js.LICENSE.txt} +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1550,1666,1948,1965,2722,3931,5611,6061,6312,7992,8125,9169,9285],{26640(t,e,n){n.d(e,{D:()=>M,m:()=>h,s:()=>v,w:()=>p});var r=n(5482),s=n(55537),i=n(88885),o=n(15756),a=n(83661),u=n(79187),c=n(95213);function h(){return{outPoint:new a.P,index:-1,t:Number.NaN}}function m(t,e,n){return{outPoint:t.clone(),index:e,t:n}}function l(t,e,n,r){t.outPoint.assign(e),t.index=n,t.t=r}function f(t,e){t.outPoint.assign(e.outPoint),t.index=e.index,t.t=e.t}function g(t,e,n,r){t.index=n,t.t=r,e.queryCoord2D(t.t,t.outPoint)}function y(t,e){const n=h();f(n,t),f(t,e),f(e,n)}function p(t,e,n,r,i,a){if(t.getGeometryType()===s.G.enumPolygon){for(;r.nextPath();)if(r.hasNextSegment()){const e=r.nextSegment();if(0!==(0,o.l)(t,e.getEndXY(),0))return l(i,e.getEndXY(),-1,Number.NaN),l(a,e.getEndXY(),-1,Number.NaN),!0}r.resetToFirstPath()}if(e.getGeometryType()===s.G.enumPolygon){for(;n.nextPath();)if(n.hasNextSegment()){const t=n.nextSegment();if(0!==(0,o.l)(e,t.getEndXY(),0))return l(i,t.getEndXY(),-1,Number.NaN),l(a,t.getEndXY(),-1,Number.NaN),!0}n.resetToFirstPath()}return!1}function v(t){const e=t.getPathCount(),n=(0,a.d)(t.getSegmentCount(),0);let r=0;for(let s=0;s<e;++s){const e=r+t.getSegmentCountPath(s);for(let i=r,o=t.getPathStart(s);i<e;++i,++o)n[i]=o;r=e}return(0,i.s)(t.getPointCount(),n),n}function x(t,e){return!!Number.isNaN(e)||t<=e}function d(t){const e=new i.P;return e.addEnvelope(t,!1),e}class M{constructor(t,e){if(this.m_env2DgeometryA=null,this.m_env2DgeometryB=null,this.m_progressCounter=0,this.m_progressTracker=e,this.m_maxSqrDistance=t*t,this.m_maxDistance=t,this.m_bIsNearCalc=!1,Number.isNaN(this.m_maxDistance)?this.m_maxDistance=Number.POSITIVE_INFINITY:this.m_maxDistance=t,this.m_maxSqrDistance=this.m_maxDistance*this.m_maxDistance,Number.isFinite(this.m_maxSqrDistance)){let t=Math.sqrt(this.m_maxSqrDistance);for(;t<this.m_maxDistance;)this.m_maxSqrDistance*=1+Number.EPSILON,t=Math.sqrt(this.m_maxSqrDistance)}}calculate(t,e,n,r){if((t.getGeometryType()!==c.P.type||e.getGeometryType()!==c.P.type)&&(this.m_env2DgeometryA=new u.Envelope2D,this.m_env2DgeometryB=new u.Envelope2D,t.queryEnvelope(this.m_env2DgeometryA),e.queryEnvelope(this.m_env2DgeometryB),!x(this.m_env2DgeometryA.distanceFromEnvelope(this.m_env2DgeometryB),this.m_maxDistance)))return Number.POSITIVE_INFINITY;const s=m(new a.P,(0,a.j)(),Number.NaN),i=m(new a.P,(0,a.j)(),Number.NaN),o=this._ExecuteBruteForce(t,e,s,i);return x(o,this.m_maxDistance)?(null!==n&&f(n,s),null!==r&&f(r,i),o):Number.POSITIVE_INFINITY}isNear(t,e){if(this.m_bIsNearCalc=!0,t.isEmpty()||e.isEmpty())return!1;if(t===e)return!0;let n=!0;if(t.getGeometryType()!==c.P.type&&t.getGeometryType()!==c.E.type||e.getGeometryType()!==c.P.type&&e.getGeometryType()!==c.E.type||(n=!1),n){if(this.m_env2DgeometryA=new u.Envelope2D,this.m_env2DgeometryB=new u.Envelope2D,t.queryEnvelope(this.m_env2DgeometryA),e.queryEnvelope(this.m_env2DgeometryB),!(this.m_env2DgeometryA.sqrMaxMinDistanceEnvelope(this.m_env2DgeometryB)>this.m_maxSqrDistance))return!0;if(this.m_env2DgeometryA.sqrDistanceEnvelope(this.m_env2DgeometryB,null,null)>this.m_maxSqrDistance)return!1}const r=m(new a.P,(0,a.j)(),Number.NaN),s=m(new a.P,(0,a.j)(),Number.NaN);return this._ExecuteBruteForce(t,e,r,s)<=this.m_maxDistance}progress_(t=!1){}_ExecuteBruteForce(t,e,n,r){switch(t.getGeometryType()){case s.G.enumPoint:return this.distancePointGeometry(t,e,n,r);case s.G.enumMultiPoint:return this.distanceMultipointGeometry(t,e,n,r);case s.G.enumEnvelope:return this.distanceEnvelopeGeometry(t,e,n,r);case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipathGeometry(t,e,n,r);default:return Number.NaN}}distancePointGeometry(t,e,n,r){switch(e.getGeometryType()){case s.G.enumPoint:return this.distancePointPoint(t,e,n,r);case s.G.enumMultiPoint:return this.distancePointMultipoint(t,e,n,r);case s.G.enumPolyline:case s.G.enumPolygon:return this.distancePointMultipath(t,e,n,r);case s.G.enumEnvelope:return this.distancePointEnvelope(t,e,n,r);default:return Number.NaN}}distancePointPoint(t,e,n,r){const s=t.getXY(),i=e.getXY();return l(n,s,0,0),l(r,i,0,0),Math.sqrt(a.P.sqrDistance(s,i))}distancePointMultipoint(t,e,n,r){const s=t.getXY();let i=this.m_maxSqrDistance,o=i,u=!1;const c=e.getPointCount(),h=new a.P;for(let t=0;t<c;++t)if(e.queryXY(t,h),o=a.P.sqrDistance(s,h),this.m_bIsNearCalc){if(o<=i)return 0}else if(!(o>i)&&(!u&&o===i||o<i)&&(i=o,l(n,s,0,0),l(r,h,t,0),u=!0,0===i))return 0;return u?Math.sqrt(i):Number.POSITIVE_INFINITY}distancePointMultipath(t,e,n,r){const i=!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB),c=t.getXY();if(!i&&e.getGeometryType()===s.G.enumPolygon&&0!==(0,o.l)(e,c,0))return l(n,c,0,0),l(r,c,-1,Number.NaN),0;e.getImpl().getAccelerators();let h=this.m_maxSqrDistance,m=h,f=-1;const g=new u.Envelope2D,y=e.querySegmentIterator();let p=!1;for(;y.nextPath();)for(;y.hasNextSegment();){const t=y.nextSegment();t.queryEnvelope(g);const e=g.sqrDistance(c);if(e>h)continue;if(!this.m_bIsNearCalc&&p&&e===h)continue;f=t.getClosestCoordinate(c,!1);const s=t.getCoord2D(f);if(m=a.P.sqrDistance(c,s),this.m_bIsNearCalc){if(m<=h)return 0}else if(!(m>h)&&(!p||m<h)&&(h=m,l(n,c,0,0),l(r,s,y.getStartPointIndex(),f),p=!0,0===h))return 0}return p?Math.sqrt(h):Number.POSITIVE_INFINITY}distancePointEnvelope(t,e,n,r){const s=t.getXY();l(n,s,0,0),l(r,s,-1,Number.NaN);const i=e.asEnvelope2D();return i.contains(s)?0:Math.sqrt(i.sqrDistance(s,r.outPoint))}distanceMultipointGeometry(t,e,n,r){switch(e.getGeometryType()){case s.G.enumPoint:{this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const s=this.distancePointMultipoint(e,t,r,n);return this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumMultiPoint:return this.distanceMultipointMultipoint(t,e,n,r,1,1);case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipointMultipath(t,e,n,r);case s.G.enumEnvelope:return this.distanceMultipointMultipath(t,d(e),n,r);default:return Number.NaN}}distanceMultipointMultipoint(t,e,n,s,i,o){const u={stack:[],error:void 0,hasError:!1};try{if(this.m_bIsNearCalc&&1===i&&1===o){const r=Math.trunc((0,a.s)(Math.sqrt(t.getPointCount())+1,1,(0,a.i)())),i=Math.trunc((0,a.s)(Math.sqrt(e.getPointCount())+1,1,(0,a.i)()));if((r>=4||i>=4)&&this.distanceMultipointMultipoint(t,e,n,s,r,i)<=this.m_maxSqrDistance)return 0}let c=this.m_maxSqrDistance;const h=[t],m=[e],f=this.swapGeometriesIfBGtA(h,m);f&&(this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),o=(0,a.c)(i,i=o),y(n,s)),(0,r.mS)(u,(0,a.h)(()=>{y(n,s),this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB)},!f),!1);const g=h[0].getImpl(),p=m[0].getImpl(),v=g.getPointCount(),x=p.getPointCount(),d=x>1;let M=!1;const _=new a.P,P=new a.P;for(let t=0;t<v;t+=i){if(g.queryXY(t,_),d){const t=this.m_env2DgeometryB.sqrDistance(_);if(this.m_bIsNearCalc){if(t>c)continue;if(this.m_env2DgeometryB.sqrMaxMinDistance(_)<=c)return 0}else if(t>=c)continue}for(let e=0;e<x;e+=o){p.queryXY(e,P);const r=a.P.sqrDistance(_,P);if(this.m_bIsNearCalc){if(r<=c)return 0}else if(!(r>c||M&&r===c)&&(!M||r<c)&&(l(n,_,t,0),l(s,P,e,0),M=!0,c=r,0===c))return M?Math.sqrt(c):Number.POSITIVE_INFINITY}}return M?Math.sqrt(c):Number.POSITIVE_INFINITY}catch(t){u.error=t,u.hasError=!0}finally{(0,r.hk)(u)}}distanceMultipointMultipath(t,e,n,r){let i=!!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB)&&e.getGeometryType()===s.G.enumPolygon;const c=e.querySegmentIterator();c.stripAttributes();const h=new u.Envelope2D,m=new a.P;let f=this.m_maxSqrDistance;const g=t.getImpl(),y=g.getPointCount(),p=y>1;let v=!1;for(;c.nextPath();)for(;c.hasNextSegment();){const t=c.nextSegment();if(t.queryLooseEnvelope(h),p){const t=h.sqrDistanceEnvelope(this.m_env2DgeometryA,null,null);if(this.m_bIsNearCalc){if(t>f)continue}else if(t>f||v&&t===f)continue}for(let s=0;s<y;s++){if(g.queryXY(s,m),i&&0!==(0,o.l)(e,m,0))return l(n,m,-1,Number.NaN),l(r,m,s,0),0;{const t=h.sqrDistance(m);if(this.m_bIsNearCalc){if(t>f)continue}else if(t>f)continue}const a=t.getClosestCoordinate(m,!1),u=t.getCoord2D(a);m.subThis(u);const y=m.sqrLength();if(this.m_bIsNearCalc){if(y<=f)return 0}else if(!(y>f)&&(!v||y<f)&&(f=y,l(n,g.getXY(s),s,0),l(r,u,c.getStartPointIndex(),a),v=!0,0===f))return 0}i=!1}return v?Math.sqrt(f):Number.POSITIVE_INFINITY}distanceEnvelopeGeometry(t,e,n,r){switch(e.getGeometryType()){case s.G.enumPoint:return this.distancePointEnvelope(e,t,r,n);case s.G.enumMultiPoint:{this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const s=this.distanceMultipointMultipath(e,d(t),r,n);return this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipathMultipath(d(t),e,n,r);case s.G.enumEnvelope:return this.distanceEnvelopeEnvelope(t,e,n,r);default:return Number.NaN}}distanceEnvelopeEnvelope(t,e,n,r){n.t=Number.NaN,n.index=-1,r.t=Number.NaN,r.index=-1;const s=t.asEnvelope2D(),i=e.asEnvelope2D();return Math.sqrt(s.sqrDistanceEnvelope(i,n.outPoint,r.outPoint))}distanceMultipathGeometry(t,e,n,r){switch(e.getGeometryType()){case s.G.enumPoint:{this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const s=this.distancePointMultipath(e,t,r,n);return this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumMultiPoint:{this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const s=this.distanceMultipointMultipath(e,t,r,n);return this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipathMultipath(t,e,n,r);case s.G.enumEnvelope:return this.distanceMultipathMultipath(t,d(e),n,r);default:return Number.NaN}}distanceMultipathMultipath(t,e,n,s){const o={stack:[],error:void 0,hasError:!1};try{const c=[t],m=[e],l=this.swapGeometriesIfAGtB(c,m);l&&(this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),y(n,s)),(0,r.mS)(o,(0,a.h)(()=>{y(n,s),this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB)},!l),!1);const x=c[0],d=m[0],M=x.querySegmentIterator();M.stripAttributes();const _=d.querySegmentIterator();if(_.stripAttributes(),this.m_bIsNearCalc&&this.m_env2DgeometryA.sqrMaxMinDistanceEnvelope(this.m_env2DgeometryB)<=this.m_maxSqrDistance)return 0;if(this.m_bIsNearCalc){const t=Math.trunc((0,a.s)(Math.sqrt(x.getPointCount())+1,1,(0,a.i)())),e=Math.trunc((0,a.s)(Math.sqrt(x.getPointCount())+1,1,(0,a.i)()));if(this.distanceMultipointMultipoint(x,d,n,s,t,e)<=this.m_maxSqrDistance)return 0}if(this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB)){const t=h(),e=h();if(p(x,d,M,_,t,e))return f(n,t),f(s,e),0}const P=v(x),N=[],E=new i.S,I=new u.Envelope2D,D=new u.Envelope2D,C=new u.Envelope2D;let b=this.m_maxSqrDistance,S=!0,A=!1;for(let t=0,e=P.length;t<e;++t){x.querySegment(P[t],E,!0);const e=E.get();if(e.queryEnvelope(I),!(I.sqrDistanceEnvelope(this.m_env2DgeometryB,null,null)>b)){if(this.m_bIsNearCalc&&I.sqrMaxDistanceEnvelope(this.m_env2DgeometryB)<=b)return 0;for(;_.nextPath();){if(this.progress_(),S)d.queryPathEnvelope(_.getPathIndex(),C),N[_.getPathIndex()]=C.clone();else if(I.sqrDistanceEnvelope(N[_.getPathIndex()],null,null)>b)continue;for(;_.hasNextSegment();){const r=_.nextSegment();if(r.queryEnvelope(D),I.sqrDistanceEnvelope(D,null,null)<=b){const i=!I.isIntersecting(D),o=[0],a=[0];let u=e.distance(r,i,o,a);if(u*=u,this.m_bIsNearCalc&&u<=this.m_maxSqrDistance)return 0;if(u<b||u===b&&P[t]<n.index){if(A=!0,g(n,e,P[t],o[0]),g(s,r,_.getStartPointIndex(),a[0]),0===u)return 0;b=u}}}}_.resetToFirstPath(),S=!1}}return A?Math.sqrt(b):Number.POSITIVE_INFINITY}catch(t){o.error=t,o.hasError=!0}finally{(0,r.hk)(o)}}swapGeometriesIfAGtB(t,e){return(0,s.v)(t[0])>(0,s.v)(e[0])&&(e[0]=(0,a.c)(t[0],t[0]=e[0]),!0)}swapGeometriesIfBGtA(t,e){return this.swapGeometriesIfAGtB(e,t)}}},61691(t,e,n){n.d(e,{G:()=>r});class r{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},76061(t,e,n){n.d(e,{S:()=>s});var r=n(61691);class s extends r.G{constructor(t){super(),this.m_iGeom=-1,this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},16346(t,e,n){n.d(e,{d:()=>h,e:()=>u});var r=n(55537),s=n(26640),i=n(86211),o=n(78125);const a=new class{getOperatorType(){return 10100}supportsCurves(){return!0}accelerateGeometry(t,e,n){return!1}canAccelerateGeometry(t){return!1}execute(t,e,n){return this.executeEx(t,e,n,null,null,Number.NaN)}executeEx(t,e,n,i,o,a){if(t.isEmpty()||e.isEmpty())return Number.NaN;(0,r.c)(t),(0,r.c)(e);const u=t,c=e;Number.isNaN(a)&&(a=Number.POSITIVE_INFINITY);const h=new s.D(a,n).calculate(u,c,i,o);return Number.isFinite(h)?h:Number.NaN}};function u(t,e,n={}){const{unit:r}=n;let s=a.execute((0,o.fromGeometry)(t),(0,o.fromGeometry)(e),null);if(s&&r){const e=(0,o.getSpatialReference)(t);s=(0,i.PQ)(s,e,r)}return s}const c=a.supportsCurves(),h=Object.freeze(Object.defineProperty({__proto__:null,execute:u,supportsCurves:c},Symbol.toStringTag,{value:"Module"}))},9093(t,e,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function s(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{o8:()=>s,vt:()=>r,zK:()=>i});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:s,create:r,fromValues:function(t,e,n,r,s,i,o,a,u,c,h,m,l,f,g,y){return[t,e,n,r,s,i,o,a,u,c,h,m,l,f,g,y]}},Symbol.toStringTag,{value:"Module"}))},51850(t,e,n){function r(){return[0,0,0]}function s(t){return[t[0],t[1],t[2]]}function i(t,e,n){return[t,e,n]}function o(t,e,n){return[t,e,n]}function a(t,e=[0,0,0]){const n=Math.min(3,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e}function u(){return[0,0,0]}function c(){return i(1,1,1)}function h(){return i(1,0,0)}function m(){return i(0,1,0)}function l(){return i(0,0,1)}n.d(e,{CN:()=>o,Cb:()=>v,Cw:()=>y,JP:()=>p,S:()=>c,Ul:()=>u,Un:()=>g,ci:()=>a,fA:()=>i,o8:()=>s,uY:()=>f,vt:()=>r});const f=[0,0,0],g=c(),y=h(),p=m(),v=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:g,UNIT_X:y,UNIT_Y:p,UNIT_Z:v,ZEROS:f,clone:s,create:r,freeze:o,fromArray:a,fromValues:i,ones:c,unitX:h,unitY:m,unitZ:l,zeros:u},Symbol.toStringTag,{value:"Module"}))},35522(t,e,n){n.d(e,{$A:()=>I,Bw:()=>i,C:()=>o,Cc:()=>D,DI:()=>P,Il:()=>X,Io:()=>x,Ln:()=>v,Om:()=>E,Qr:()=>m,Re:()=>c,S8:()=>N,T9:()=>y,WQ:()=>u,Z0:()=>C,_S:()=>f,aI:()=>O,ei:()=>b,fw:()=>A,g7:()=>G,gL:()=>S,hG:()=>d,hZ:()=>a,hs:()=>p,jb:()=>Y,jk:()=>g,lo:()=>R,lw:()=>h,m3:()=>M,oW:()=>V,t2:()=>T,tn:()=>l,uE:()=>z,xg:()=>F,ze:()=>_});var r=n(51850),s=n(34304);function i(t){const e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function a(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function u(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function c(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function h(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function m(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function l(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function f(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function g(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function y(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function p(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function v(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function x(t,e){const n=e[0]-t[0],r=e[1]-t[1],s=e[2]-t[2];return Math.sqrt(n*n+r*r+s*s)}function d(t,e){const n=e[0]-t[0],r=e[1]-t[1],s=e[2]-t[2];return n*n+r*r+s*s}function M(t){const e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function _(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function P(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function N(t,e){const n=e[0],r=e[1],s=e[2];let i=n*n+r*r+s*s;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i),t}function E(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function I(t,e,n){const r=e[0],s=e[1],i=e[2],o=n[0],a=n[1],u=n[2];return t[0]=s*u-i*a,t[1]=i*o-r*u,t[2]=r*a-s*o,t}function D(t,e,n,r){const s=e[0],i=e[1],o=e[2];return t[0]=s+r*(n[0]-s),t[1]=i+r*(n[1]-i),t[2]=o+r*(n[2]-o),t}function C(t,e,n){const r=e[0],s=e[1],i=e[2];return t[0]=n[0]*r+n[4]*s+n[8]*i+n[12],t[1]=n[1]*r+n[5]*s+n[9]*i+n[13],t[2]=n[2]*r+n[6]*s+n[10]*i+n[14],t}function b(t,e,n){const r=e[0],s=e[1],i=e[2];return t[0]=r*n[0]+s*n[3]+i*n[6],t[1]=r*n[1]+s*n[4]+i*n[7],t[2]=r*n[2]+s*n[5]+i*n[8],t}function S(t,e,n){return A(t,e,n[0],n[1],n[2],n[3])}function A(t,e,n,r,s,i){const o=e[0],a=e[1],u=e[2],c=r*u-s*a,h=s*o-n*u,m=n*a-r*o,l=r*m-s*h,f=s*c-n*m,g=n*h-r*c,y=2*i;return t[0]=o+c*y+2*l,t[1]=a+h*y+2*f,t[2]=u+m*y+2*g,t}function G(t,e){N(w,t),N(q,e);const n=E(w,q);return n>1?0:n<-1?Math.PI:Math.acos(n)}const w=(0,r.vt)(),q=(0,r.vt)();function T(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function O(t,e){if(t===e)return!0;const n=t[0],r=t[1],i=t[2],o=e[0],a=e[1],u=e[2],c=(0,s.FD)();return Math.abs(n-o)<=c*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-a)<=c*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(i-u)<=c*Math.max(1,Math.abs(i),Math.abs(u))}function V(t,e,n){const r=n[0]-e[0],s=n[1]-e[1],i=n[2]-e[2];let o=r*r+s*s+i*i;return o>0?(o=1/Math.sqrt(o),t[0]=r*o,t[1]=s*o,t[2]=i*o,t):(t[0]=0,t[1]=0,t[2]=0,t)}const Y=c,B=h,Z=m,F=x,R=d,X=i,z=M;Object.freeze(Object.defineProperty({__proto__:null,abs:l,add:u,angle:G,bezier:function(t,e,n,r,s,i){const o=1-i,a=o*o,u=i*i,c=a*o,h=3*i*a,m=3*u*o,l=u*i;return t[0]=e[0]*c+n[0]*h+r[0]*m+s[0]*l,t[1]=e[1]*c+n[1]*h+r[1]*m+s[1]*l,t[2]=e[2]*c+n[2]*h+r[2]*m+s[2]*l,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:o,cross:I,crossAndNormalize:function(t,e,n){const r=e[0],s=e[1],i=e[2],o=n[0],a=n[1],u=n[2],c=s*u-i*a,h=i*o-r*u,m=r*a-s*o,l=Math.sqrt(c*c+h*h+m*m);return t[0]=c/l,t[1]=h/l,t[2]=m/l,t},direction:V,dist:F,distance:x,div:Z,divide:m,dot:E,equals:O,exactEquals:T,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,r,s,i){const o=i*i,a=o*(2*i-3)+1,u=o*(i-2)+i,c=o*(i-1),h=o*(3-2*i);return t[0]=e[0]*a+n[0]*u+r[0]*c+s[0]*h,t[1]=e[1]*a+n[1]*u+r[1]*c+s[1]*h,t[2]=e[2]*a+n[2]*u+r[2]*c+s[2]*h,t},inverse:P,len:X,length:i,lerp:D,max:y,min:g,mul:B,multiply:h,negate:_,normalize:N,random:function(t,e=1){const n=s.Ov,r=2*n()*Math.PI,i=2*n()-1,o=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(r)*o,t[1]=Math.sin(r)*o,t[2]=i*e,t},rotateX:function(t,e,n,r){const s=[],i=[];return s[0]=e[0]-n[0],s[1]=e[1]-n[1],s[2]=e[2]-n[2],i[0]=s[0],i[1]=s[1]*Math.cos(r)-s[2]*Math.sin(r),i[2]=s[1]*Math.sin(r)+s[2]*Math.cos(r),t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},rotateY:function(t,e,n,r){const s=[],i=[];return s[0]=e[0]-n[0],s[1]=e[1]-n[1],s[2]=e[2]-n[2],i[0]=s[2]*Math.sin(r)+s[0]*Math.cos(r),i[1]=s[1],i[2]=s[2]*Math.cos(r)-s[0]*Math.sin(r),t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},rotateZ:function(t,e,n,r){const s=[],i=[];return s[0]=e[0]-n[0],s[1]=e[1]-n[1],s[2]=e[2]-n[2],i[0]=s[0]*Math.cos(r)-s[1]*Math.sin(r),i[1]=s[0]*Math.sin(r)+s[1]*Math.cos(r),i[2]=s[2],t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:p,scaleAndAdd:v,set:a,sign:f,sqrDist:R,sqrLen:z,squaredDistance:d,squaredLength:M,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:Y,subtract:c,transformMat3:b,transformMat4:C,transformQuat:S,transformQuatValues:A},Symbol.toStringTag,{value:"Module"}))},69397(t,e,n){n.d(e,{Qf:()=>u,Qh:()=>o,RS:()=>s,Ul:()=>f,i5:()=>l,lM:()=>i,qK:()=>h});var r=n(34275);const s=16;function i(t){if(!t)return 0;let e=h;for(const n in t)t.hasOwnProperty(n)&&(e+=a(t[n],!1));return e}function o(t){if(!t)return 0;if("number"==typeof t[0])return u(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return c(t,8);let n=m;for(let r=0;r<e;r++)n+=a(t[r]);return n}(t);let e=h;for(const n in t)t.hasOwnProperty(n)&&(e+=a(t[n]));return e}function a(t,e=!0){switch(typeof t){case"object":return e?o(t):h;case"string":return function(t){return 32+t.length}(t);case"number":return s;case"boolean":return 4;default:return 8}}function u(...t){return t.reduce((t,e)=>t+(e?(0,r.iu)(e)?e.byteLength+l:Array.isArray(e)?c(e,s):0:0),0)}function c(t,e){return m+t.length*e}const h=32,m=16,l=145,f=64},87992(t,e,n){n.d(e,{JR:()=>I,ME:()=>P,MY:()=>D,NO:()=>_,Nh:()=>E,V2:()=>G,_s:()=>w,e6:()=>T,gh:()=>N,tr:()=>V,uX:()=>p});var r=n(5482),s=n(69397),i=n(16930),o=(n(70328),n(19419)),a=n(60408),u=n(21325),c=n(513),h=n(50954),m=n(79567),l=n(52006),f=n(49663),g=n(46068),y=n(92722);class p{constructor({type:t,spatialReference:e,vertexCount:n,vertexXY:r,vertexZ:s,vertexM:i,partCount:o,partOffsets:a,partFlags:u,segmentFlags:c,segmentIndices:h,segmentParams:m,segmentCountArc:l,segmentCountBezier:f}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=n,this.vertexXY=r,this.vertexZ=s,this.vertexM=i,this.partCount=o,this.partOffsets=a,this.partFlags=u,this.segmentFlags=c,this.segmentIndices=h,this.segmentParams=m,this.segmentCountArc=l,this.segmentCountBezier=f}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:n}=this;return t&&t-e-n}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return null!=this.segmentFlags}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function t(t){return t?s.Ul+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){const{type:t,vertexCount:e,partCount:n,hasZ:r,hasM:s,segmentCountArc:i,segmentCountBezier:o}=this,a=G(t,e,n,r,s,this.hasCurves(),i,o);a.spatialReference=this.spatialReference;const{vertexXY:u,vertexZ:c,vertexM:h}=this;if(a.vertexXY.set(u.subarray(0,2*e),0),a.vertexZ?.set(c.subarray(0,e),0),a.vertexM?.set(h.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;a.partFlags.set(e.subarray(0,n+1)),a.partOffsets.set(t.subarray(0,n+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:n,segmentParams:r,segmentParamCount:s}=this;a.segmentFlags.set(t.subarray(0,e),0),a.segmentIndices.set(n.subarray(0,e),0),a.segmentParams.set(r.subarray(0,s),0)}return a}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,u.aI)(this.spatialReference,t.spatialReference))return!1;if(this.vertexCount!==t.vertexCount||this.partCount!==t.partCount)return!1;if(this.hasZ!==t.hasZ||this.hasM!==t.hasM)return!1;if(this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;const n=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,n)=>Math.abs(t-n)>e||isNaN(t)!==isNaN(n);for(let e=0;e<this.vertexCount;++e)if(n(this.vertexXY[2*e],t.vertexXY[2*e])||n(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(n(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(n(this.vertexM[e],t.vertexM[e]))return!1;for(let e=0;e<this.partCount;++e)if(this.partFlags[e]!==t.partFlags[e]||this.partOffsets[e]!==t.partOffsets[e])return!1;if(this.hasCurves()){for(let e=0;e<this.vertexCount;++e)if(this.segmentFlags[e]!==t.segmentFlags[e]||this.segmentIndices[e]!==t.segmentIndices[e])return!1;for(let e=0;e<this.segmentParamCount;++e)if(n(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new v(this):[][Symbol.iterator]()}}class v{constructor(t){this.geometry=t,this.value=new x(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class x{constructor(t){this.geometry=t,this.index=-1,this._readVertex=S(t),this._segments=new d(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class d{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new M(t.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const t=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=t&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:t}=this._part,e=this._part.geometry.partOffsets;this._partStart=e[t],this._partEnd=e[t+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class M{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=S(t)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const t=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===t)return this.end;const e=this.geometry.segmentParams;let n=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[n++],r=e[n++],s=e[n++],i=e[n++];return{b:[this.end,[t,r],[s,i]]}}const r=e[n++],s=e[n++],i=e[n++],o=e[n++],a=e[n++],u=e[n++];n++,n++;const c=e[n++],h=e[n++];if(!Boolean(4&r)&&1===i)return{c:[this.end,[c,h]]};const m=2&r?0:1,l=1&r?0:1;return{a:[this.end,[a,u],m,l,o,s,i]}}}function _(t,e){const n={stack:[],error:void 0,hasError:!1};try{return e??=(0,o.Ie)(),(0,r.mS)(n,new C(t,["vertexZ","vertexM","spatialReference"]),!1),(0,o.bx)(e,function(t){let e;const{vertexCount:n,vertexXY:s,vertexZ:i,vertexM:a}=t,u=b(t);if(t.hasCurves()){const n={stack:[],error:void 0,hasError:!1};try{(0,r.mS)(n,new C(t,["vertexZ","vertexM"]),!1);const s=(0,o.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:n}of e.segments)(0,m.e)(s,t,n),t=(0,l.yP)(n)}const[i,a,c,h]=s;e={xmin:i,ymin:a,xmax:c,ymax:h,spatialReference:u}}catch(t){n.error=t,n.hasError=!0}finally{(0,r.hk)(n)}}else{let t,r,i,o;t=r=1/0,i=o=-1/0;for(let e=0;e<n;++e){const n=s[2*e],a=s[2*e+1];t=Math.min(t,n),i=Math.max(i,n),r=Math.min(r,a),o=Math.max(o,a)}e={xmin:t,ymin:r,xmax:i,ymax:o,spatialReference:u}}if(i){let t=1/0,n=-1/0;for(const e of i)t=Math.min(t,e),n=Math.max(n,e);e.zmin=t,e.zmax=n}if(a){let t=1/0,n=-1/0;for(const e of a)t=Math.min(t,e),n=Math.max(n,e);e.mmin=t,e.mmax=n}return e}(t)),e}catch(t){n.error=t,n.hasError=!0}finally{(0,r.hk)(n)}}function P(t){let e,n,r;if((0,a.fT)(t)){r="point";const{x:s,y:i,z:o,m:a}=t,u=[s,i];null!=o&&u.push(o),null!=a&&u.push(a),n=[[u]],e=1}else(0,a.U9)(t)?(r="multipoint",n=[t.points],e=t.points.length):(0,a.Rg)(t)?(r="polyline",n=t.curvePaths??t.paths,e=n.reduce((t,e)=>t+e.length,0)):(r="polygon",n=t.curveRings??t.rings,e=n.reduce((t,e)=>(0===e.length||(t+=e.length,A(e[0],(0,l.yP)(e.at(-1)))&&--t),t),0));const s=G(r,e,r.includes("point")?0:n.length,(0,a.Pv)(t),(0,a.W0)(t),(0,l.Ed)(t)),{hasZ:i,hasM:o,vertexXY:u,vertexZ:c,vertexM:h}=s;function m(t){u[2*g]=t[0],u[2*g+1]=t[1],i&&(c[g]=t[2]),o&&(h[g]=t[f]),++g}s.spatialReference=t.spatialReference??void 0;const f=s.hasZ?3:2;let g=0;if(!s.isMultipart()){if(!i&&!o){for(const[t,e]of n[0])u[2*g]=t,u[2*g+1]=e,++g;return s}for(const t of n[0])m(t);return s}const y="polygon"===r,{partOffsets:p}=s;let v=0;if(!s.hasCurves()){for(const t of n){if(p[v++]=g,0===t.length)continue;let e=t.length;if(y&&A(t[0],t.at(-1))&&--e,i||o)for(let n=0;n<e;++n)m(t[n]);else for(let n=0;n<e;++n){const[e,r]=t[n];u[2*g]=e,u[2*g+1]=r,++g}}return p[v]=g,s}function x(t){const e=d+t;if(e<=(s.segmentParams?.length??0))return;let n=e*Y;n=20*Math.ceil(n/20);const r=s.segmentParams;s.segmentParams=new Float64Array(n),null!=r&&s.segmentParams.set(r)}let d=0;for(const t of n){if(s.partOffsets[v++]=g,0===t.length)continue;const e=t[0];let n=e;for(let e=1;e<t.length;++e){const r=t[e];m(n);const i=g-1;(0,l.wY)(r)?(x(10),++s.segmentCountArc,d=w(n,r,s,i,d),n=r.a[0]):(0,l.DA)(r)?(x(10),++s.segmentCountArc,d=q(n,r,s,i,d),n=r.a[0]):(0,l.aO)(r)?(x(10),++s.segmentCountArc,d=T(n,r,s,i,d),n=r.c[0]):(0,l.n1)(r)?(x(4),++s.segmentCountBezier,d=V(0,r,s,i,d),n=r.b[0]):n=r}y&&A(e,n)||m(n)}return s.partOffsets[v]=g,s}function N(t){const e=S(t),{vertexCount:n,partCount:r,hasZ:s,hasM:i}=t,o=b(t);if("point"===t.type){const[e,n]=t.vertexXY,r=t.vertexZ?.[0],s=t.vertexM?.[0];return{x:e,y:n,z:r,m:s,spatialReference:o}}let a=0;if("multipoint"===t.type){const t=[];for(;a<n;)t.push(e(a++));return{points:t,spatialReference:o,hasZ:s,hasM:i}}const u="polygon"===t.type;if(!t.hasCurves()){const n=new Array;for(let s=0;s<r;++s){const r=t.partOffsets[s+1],i=new Array;for(;a<r;)i.push(e(a++));u&&i.length>0&&i.push(i[0]),n.push(i)}return u?{rings:n,hasZ:s,hasM:i,spatialReference:o}:{paths:n,hasZ:s,hasM:i,spatialReference:o}}const c=new Array;for(const{segments:e,startVertex:n}of t.parts){const t=[n];for(const{curve:n}of e)t.push(n);c.push(t)}return u?{rings:[],curveRings:c,hasZ:s,hasM:i,spatialReference:o}:{paths:[],curvePaths:c,hasZ:s,hasM:i,spatialReference:o}}function E(t,{lengths:e,coords:n,hasZ:r,hasM:s},i){const o=t.includes("point")?0:e.length,a="polygon"===t,u="point"===t?1:e.reduce((t,e)=>t+e,0)-(a?o:0);r??=!1,s??=!1;const c=G(t,u,o,r,s,!1,0,0);if(c.spatialReference=i??void 0,!c.isMultipart()){for(let t=0,e=0;t<u;++t)c.vertexXY[2*t]=n[e++],c.vertexXY[2*t+1]=n[e++],r&&(c.vertexZ[t]=n[e++]),s&&(c.vertexM[t]=n[e++]);return c}const h=2+Number(r)+Number(s);let m=0,l=0;c.partOffsets[0]=0;for(const t of e){const e=c.partOffsets[l],i=e+t-Number(a);c.partOffsets[++l]=i;for(let t=e;t<i;++t)c.vertexXY[2*t]=n[m++],c.vertexXY[2*t+1]=n[m++],r&&(c.vertexZ[t]=n[m++]),s&&(c.vertexM[t]=n[m++]);a&&(m+=h)}return c}function I({type:t,vertexCount:e,vertexXY:n,vertexZ:r,vertexM:s,partCount:i,partOffsets:o,hasZ:a,hasM:u}){const c=new y.A([],[],a,u);i=Math.max(i,1);const h="polygon"===t;let m=0;for(let t=0;t<i;++t){const i=o?.[t+1]??e,l=c.coords.length;for(let t=m;t<i;++t)c.coords.push(n[2*t],n[2*t+1]),a&&c.coords.push(r[t]),u&&c.coords.push(s[t]);if(h){const t=m;c.coords.push(n[2*t],n[2*t+1]),a&&c.coords.push(r[t]),u&&c.coords.push(s[t])}c.lengths.push((c.coords.length-l)/c.stride),m=i}return"point"===t&&(c.lengths.length=0),c}function D(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,n=t.isCustomWkid()?0:t.getOldID();if(n<=0)return{wkt:e};let r=t.getLatestID();(r<=0||r===n)&&(r=void 0);const s=t.getVCS();if(null==s)return{wkid:n,latestWkid:r,wkt:e};const i=s.isCustomWkid()?0:s.getOldID();if(i<=0)return{wkt:e};let o=t.getLatestVerticalID();return(o<=0||o===i)&&(o=void 0),{wkid:n,wkt:e,latestWkid:r,vcsWkid:i,latestVcsWkid:o}}(t.getSpatialReference()),t=t.getGeometry()),new p({...t.toFlatGeometry(),spatialReference:e})}class C{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const n of e)t[n]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function b({spatialReference:t}){return t instanceof i.A?t.toJSON():t}function S({vertexXY:t,vertexZ:e,vertexM:n}){return e?n?r=>[t[2*r],t[2*r+1],e[r],n[r]]:n=>[t[2*n],t[2*n+1],e[n]]:n?e=>[t[2*e],t[2*e+1],n[e]]:e=>[t[2*e],t[2*e+1]]}function A(t,e){return t.every((t,n)=>t===e[n])}function G(t,e,n,r,s,i,o,a){o??=0,a??=0;const u=new p({type:t,vertexCount:e,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:n,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:o,segmentCountBezier:a});let c=2*Float64Array.BYTES_PER_ELEMENT*e;r&&(c+=Float64Array.BYTES_PER_ELEMENT*e),s&&(c+=Float64Array.BYTES_PER_ELEMENT*e),u.isMultipart()&&(c+=(n+1)*Int32Array.BYTES_PER_ELEMENT,c+=(n+1)*Int8Array.BYTES_PER_ELEMENT),i&&(c+=e*Int8Array.BYTES_PER_ELEMENT,c+=e*Int32Array.BYTES_PER_ELEMENT,c+=u.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const h=new ArrayBuffer(c);let m=0;return u.vertexXY=new Float64Array(h,m,2*e),m+=u.vertexXY.byteLength,r&&(u.vertexZ=new Float64Array(h,m,e),m+=u.vertexZ.byteLength),s&&(u.vertexM=new Float64Array(h,m,e),m+=u.vertexM.byteLength),i&&(u.segmentParams=new Float64Array(h,m,u.segmentParamCount),m+=u.segmentParams.byteLength,u.segmentIndices=new Int32Array(h,m,e),u.segmentIndices.fill(B),m+=u.segmentIndices.byteLength),u.isMultipart()&&(u.partOffsets=new Int32Array(h,m,n+1),m+=u.partOffsets.byteLength,u.partFlags=new Int8Array(h,m,n+1),m+=u.partFlags.byteLength,"polygon"===u.type&&u.partFlags.subarray(0,n).fill(1)),i&&(u.segmentFlags=new Int8Array(h,m,e),u.segmentFlags.fill(1),m+=u.segmentFlags.byteLength),u}function w(t,e,{segmentFlags:n,segmentIndices:r,segmentParams:s},i,o){n[i]=4,r[i]=o;const[a,[u,c],h,m,l,f,y]=e.a;let p=4;m||(p|=1),h||(p|=2);const v=(0,g.SW)(t,e),[x,d]=(0,g.Uk)(v,.5);return s[o++]=p,s[o++]=f,s[o++]=y,s[o++]=l,s[o++]=u,s[o++]=c,s[o++]=v.u2-v.u1,s[o++]=v.u1,s[o++]=x,s[o++]=d,o}function q(t,e,{segmentFlags:n,segmentIndices:r,segmentParams:s},i,o){n[i]=4,r[i]=o;const a=(0,f.io)(t,e);return O(a,4,...(0,c.mq)(a,.5),s,o)}function T(t,e,{segmentFlags:n,segmentIndices:r,segmentParams:s},i,o){return n[i]=4,r[i]=o,O((0,h.pM)(t,e),0,...e.c[1],s,o)}function O(t,e,n,r,s,i){const{cx:o,cy:a,thetaStart:u,thetaEnd:c,radius:h}=t;return u>c||(e|=1),Math.abs(c-u)<=Math.PI||(e|=2),s[i++]=e,s[i++]=h,s[i++]=1,s[i++]=0,s[i++]=o,s[i++]=a,s[i++]=c-u,s[i++]=u,s[i++]=n,s[i++]=r,i}function V(t,{b:[e,[n,r],[s,i]]},{segmentFlags:o,segmentIndices:a,segmentParams:u},c,h){return o[c]=2,a[c]=h,u[h++]=n,u[h++]=r,u[h++]=s,u[h++]=i,h}const Y=1.61803,B=-1},77038(t,e,n){n.d(e,{execute:()=>r.e});var r=n(16346);n(86211),n(78125)},78125(t,e,n){n.r(e),n.d(e,{fromExtent:()=>p,fromGeometry:()=>y,fromMultipoint:()=>v,fromPoint:()=>x,fromPolygon:()=>d,fromPolyline:()=>M,fromPolylineUsingImportOperator:()=>_,fromSpatialReference:()=>P,getSpatialReference:()=>g,toExtent:()=>E,toGeometry:()=>N,toMultipoint:()=>I,toPoint:()=>D,toPolygon:()=>C,toPolyline:()=>b});var r=n(83661),s=(n(79187),n(55537)),i=n(95213),o=n(88885),a=n(5443),u=n(48526),c=n(86738),h=n(39829),m=n(82799),l=(n(90293),n(83299));const f="_gxVersion";function g(t){return Array.isArray(t)?t[0].spatialReference:t.spatialReference}function y(t){switch(t.type){case"point":return x(t);case"multipoint":return v(t);case"polyline":return M(t);case"polygon":return d(t);case"extent":return p(t);default:throw new Error(`Unsupported geometry type: ${t.type}`)}}function p(t){if(!t.getCacheValue(f)){const e=new i.E;e.setCoords(t.xmin,t.ymin,t.xmax,t.ymax),t.hasM&&e.setInterval(2,0,t.mmin,t.mmax),t.hasZ&&e.setInterval(1,0,t.zmin,t.zmax),t.setCacheValue(f,e)}return t.getCacheValue(f)}function v(t){if(!t.getCacheValue(f)){const e=new o.M,n=new i.P,r=t.points,s=t.hasM,a=t.hasZ,u=a?3:2;for(let t=0,i=r.length;t<i;t++){const i=r[t];n.setXYCoords(i[0],i[1]),a&&n.setZ(i[2]??0),s&&n.setM(i[u]??NaN),e.add(n)}t.setCacheValue(f,e)}return t.getCacheValue(f)}function x(t){if(!t.getCacheValue(f)){const e=new i.P;e.setXYCoords(t.x,t.y),t.hasM&&e.setM(t.m),t.hasZ&&e.setZ(t.z),t.setCacheValue(f,e)}return t.getCacheValue(f)}function d(t){if(!t.getCacheValue(f)){const{curveRings:e,hasM:n,hasZ:r,rings:s}=t,i=(0,l.fromGeometryToGXGeometry)({curveRings:e,hasM:n,hasZ:r,rings:s});t.setCacheValue(f,i)}return t.getCacheValue(f)}function M(t){if(!t.getCacheValue(f)){const{curvePaths:e,hasM:n,hasZ:r,paths:s}=t,i=(0,l.fromGeometryToGXGeometry)({curvePaths:e,hasM:n,hasZ:r,paths:s});t.setCacheValue(f,i)}return t.getCacheValue(f)}function _(t){if(!t.getCacheValue(f)){const{curvePaths:e,hasM:n,hasZ:r,paths:s}=t,i=(0,l.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:e,hasM:n,hasZ:r,paths:s});t.setCacheValue(f,i)}return t.getCacheValue(f)}function P(t){return t.cache?(t.cache[f]??=(0,l.fromSpatialReference)(t),t.cache[f]):(0,l.fromSpatialReference)(t)}function N(t,e){if(t)switch(t.getGeometryType()){case s.G.enumPoint:return D(t,e);case s.G.enumEnvelope:return E(t,e);case s.G.enumMultiPoint:return I(t,e);case s.G.enumPolyline:return b(t,e);case s.G.enumPolygon:return C(t,e)}return null}function E(t,e){if(t.isEmpty())return null;const n=new a.A({xmin:t.getXMin(),ymin:t.getYMin(),xmax:t.getXMax(),ymax:t.getYMax(),spatialReference:e}),r=t.getDescription();if(r.hasM()){const e=t.queryInterval(2,0);n.mmin=e.vmin,n.mmax=e.vmax}if(r.hasZ()){const e=t.queryInterval(1,0);n.zmin=e.vmin,n.zmax=e.vmax}return n.setCacheValue(f,t),n}function I(t,e){if(t.isEmpty())return null;const n=t.getDescription(),r=n.hasM(),s=n.hasZ(),o=[],a=new i.P;for(let e=0,n=t.getPointCount();e<n;e++){t.getPointByVal(e,a);const n=[a.getX(),a.getY()];s&&n.push(a.getZ()),r&&n.push(a.getM()),o.push(n)}const c=new u.A({hasM:r,hasZ:s,points:o,spatialReference:e});return c.setCacheValue(f,t),c}function D(t,e){if(t instanceof r.P)return new c.A({x:t.x,y:t.y,spatialReference:e});if(t.isEmpty())return null;const n=new c.A({x:t.getX(),y:t.getY(),spatialReference:e}),s=t.getDescription();return s.hasM()&&(n.m=t.getM()),s.hasZ()&&(n.z=t.getZ()),n.setCacheValue(f,t),n}function C(t,e){if(t.isEmpty())return null;const n=h.A.fromJSON({...(0,l.toGeometry)(t,null),spatialReference:e});return n.setCacheValue(f,t),n}function b(t,e){if(t.isEmpty())return null;const n=m.A.fromJSON({...(0,l.toGeometry)(t,null),spatialReference:e});return n.setCacheValue(f,t),n}},4197(t,e,n){n.d(e,{Vj:()=>u,cj:()=>a,jh:()=>i,l5:()=>o});var r=n(34275),s=n(9093);function i(t){return t<=r.y9?new Array(t).fill(0):new Float64Array(t)}function o(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function a(t){return[...t]}function u(t){const e=(0,s.vt)();for(let n=0;n<16;++n)e[n]=t[n];return e}},70328(t,e,n){n.d(e,{BI:()=>d,DC:()=>m,Ej:()=>f,Ie:()=>v,Jt:()=>x,Ne:()=>g,RF:()=>h,aI:()=>_,fA:()=>o,gE:()=>u,hZ:()=>p,iT:()=>l,is:()=>M,qv:()=>P,vI:()=>y,vY:()=>a,v_:()=>N,vt:()=>i,w1:()=>c}),n(35522);var r=n(5443),s=(n(19419),n(4197));function i(t=N){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function o(t,e,n,r,s,o,a=i()){return a[0]=t,a[1]=e,a[2]=n,a[3]=r,a[4]=s,a[5]=o,a}function a(t,e=i()){return function(t,e,n,r=i()){return p(r,P),function(t,e,n=0,r=e.length/3){let s=t[0],i=t[1],o=t[2],a=t[3],u=t[4],c=t[5];for(let t=0;t<r;t++)s=Math.min(s,e[n+3*t]),i=Math.min(i,e[n+3*t+1]),o=Math.min(o,e[n+3*t+2]),a=Math.max(a,e[n+3*t]),u=Math.max(u,e[n+3*t+1]),c=Math.max(c,e[n+3*t+2]);t[0]=s,t[1]=i,t[2]=o,t[3]=a,t[4]=u,t[5]=c}(r,t,e,n),r}(t,0,t.length/3,e)}function u(t,e=(0,s.jh)(24)){const[n,r,i,o,a,u]=t;return e[0]=n,e[1]=r,e[2]=i,e[3]=n,e[4]=r,e[5]=u,e[6]=n,e[7]=a,e[8]=i,e[9]=n,e[10]=a,e[11]=u,e[12]=o,e[13]=r,e[14]=i,e[15]=o,e[16]=r,e[17]=u,e[18]=o,e[19]=a,e[20]=i,e[21]=o,e[22]=a,e[23]=u,e}function c(t,e){const n=isFinite(t[2])||isFinite(t[5]);return new r.A(n?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function h(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t[4]=Math.max(t[4],e[4]),t[5]=Math.max(t[5],e[5])}function m(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function l(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[0]),t[4]=Math.max(t[4],e[1]),t[5]=Math.max(t[5],e[2])}function f(t,e=[0,0,0]){return e[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),e[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),e[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),e}function g(t,e,n=t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n!==t&&(n[3]=t[3],n[4]=t[4],n[5]=t[5]),n}function y(t,e,n=t){return n[3]=e[0],n[4]=e[1],n[5]=e[2],n!==t&&(n[0]=t[0],n[1]=t[1],n[2]=t[2]),t}function p(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function v(t){return t?p(t,P):i(P)}function x(t,e){return t[0]=e[0],t[1]=e[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=e[2],t[4]=e[3],t[5]=Number.POSITIVE_INFINITY,t}function d(t,e,n,r,s){return t[0]=e,t[1]=n,t[2]=Number.NEGATIVE_INFINITY,t[3]=r,t[4]=s,t[5]=Number.POSITIVE_INFINITY,t}function M(t){return 6===t.length}function _(t,e,n){if(null==t||null==e)return t===e;if(!M(t)||!M(e))return!1;if(n){for(let r=0;r<t.length;r++)if(!n(t[r],e[r]))return!1}else for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}const P=[1/0,1/0,1/0,-1/0,-1/0,-1/0],N=[0,0,0,0,0,0];i()},92722(t,e,n){n.d(e,{A:()=>s});var r=n(69397);class s{constructor(t=[],e=[],n=!1,r=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=n,this.hasM=r}static fromJSON({lengths:t,coords:e,hasZ:n,hasM:r}){return new s(t,e,n||!1,r||!1)}static fromRect([t,e,n,r]){const i=n-t,o=r-e;return new s([5],[t,e,i,0,0,o,-i,0,0,-o])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,r.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const n of this.lengths){if(n<3)continue;const{stride:r}=this;let s=this.coords[r*e],i=this.coords[r*e+1];for(let o=1;o<n;o+=1){const n=r*(e+o),a=this.coords[n],u=this.coords[n+1];t+=-.5*(a-s)*(u+i),s=a,i=u}e+=n}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:n}=this;for(const r of this.lengths){for(let s=0;s<r;s++){const r=n*(e+s);t(this.coords[r],this.coords[r+1])}e+=r}}deltaDecode(){const t=this.clone(),{coords:e,lengths:n}=t;let r=0;const{stride:s}=this;for(const t of n){for(let n=1;n<t;n++){const t=s*(r+n);e[t]+=e[t-s],e[t+1]+=e[t+1-s]}r+=t}return t}clone(t){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:n,size:r}=this,i=this.coords.slice(0,r*n);return t?(t.set(i),new s(e,t,this.hasZ,this.hasM)):new s(e,Array.from(i),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const n=new Array(e*t);for(let e=0,r=0;e<n.length;e+=t)n[r++]=this.coords[e],n[r++]=this.coords[e+1];return new s(this.lengths,n,!1,!1)}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7598],{69397(e,t,r){r.d(t,{Qf:()=>l,Qh:()=>o,RS:()=>s,Ul:()=>d,i5:()=>m,lM:()=>n,qK:()=>p});var i=r(34275);const s=16;function n(e){if(!e)return 0;let t=p;for(const r in e)e.hasOwnProperty(r)&&(t+=a(e[r],!1));return t}function o(e){if(!e)return 0;if("number"==typeof e[0])return l(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return u(e,8);let r=c;for(let i=0;i<t;i++)r+=a(e[i]);return r}(e);let t=p;for(const r in e)e.hasOwnProperty(r)&&(t+=a(e[r]));return t}function a(e,t=!0){switch(typeof e){case"object":return t?o(e):p;case"string":return function(e){return 32+e.length}(e);case"number":return s;case"boolean":return 4;default:return 8}}function l(...e){return e.reduce((e,t)=>e+(t?(0,i.iu)(t)?t.byteLength+m:Array.isArray(t)?u(t,s):0:0),0)}function u(e,t){return c+e.length*t}const p=32,c=16,m=145,d=64},62815(e,t,r){r.d(t,{N:()=>a,d:()=>l});var i=r(86211),s=r(73941),n=r(21325),o=r(52006);function a(e,t,r){const i=l(t,r);if(1!==i)switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,i);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e){if(e.curvePaths)for(const r of e.curvePaths)for(const e of r){const r=(0,o.yP)(e);r.length>2&&(r[2]*=t)}if(e.paths)for(const r of e.paths)for(const e of r)e.length>2&&(e[2]*=t)}}(e,i);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e){if(e.curveRings)for(const r of e.curveRings)for(const e of r){const r=(0,o.yP)(e);r.length>2&&(r[2]*=t)}if(e.rings)for(const r of e.rings)for(const e of r)e.length>2&&(e[2]*=t)}}(e,i);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const r of e.points)r.length>2&&(r[2]*=t)}(e,i);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,i);default:return}}function l(e,t){return null==e||null==t||t.vcsWkid||(0,n.aI)(e,t)||(0,s.xP)(e)||(0,s.xP)(t)?1:(0,i.G9)(e)/(0,i.G9)(t)}},74379(e,t,r){r.d(t,{V:()=>i,t:()=>s});const i=Symbol("isImageryGraphicOrigin");function s(e){return!!e&&i in e}},87772(e,t,r){r.r(t),r.d(t,{default:()=>yr});var i,s=r(5482),n=r(37838),o=r(69540),a=r(53966),l=r(25728),u=r(17676),p=r(91429),c=r(89808),m=r(99959),d=r(74379);class y extends m.A{get[(i=d.V,c.Q)](){return this.layer}constructor(e){super(),this[i]=!0,this.type="imagery",this.layer=e}get id(){return this.layer.id}}var g=r(4146),h=r(52106),f=r(11254),v=r(49186),w=r(4718),R=r(36708),C=r(84952),b=r(56507),S=r(62788),M=r(5443),x=r(39829),I=r(16930),F=r(21325),A=r(4366),D=r(20758),P=r(34251),T=r(10873),j=r(45617),N=r(25482),O=r(94778);const Z={StretchFunction:{arguments:{ComputeGamma:{isDataset:!1,isPublic:!1,name:"ComputeGamma",type:"RasterFunctionVariable",value:!1},DRA:{isDataset:!1,isPublic:!1,name:"DRA",type:"RasterFunctionVariable",value:!1},EstimateStatsHistogram:{isDataset:!1,isPublic:!1,name:"EstimateStatsHistogram",type:"RasterFunctionVariable",value:!1},Gamma:{displayName:"Gamma",isDataset:!1,isPublic:!1,name:"Gamma",type:"RasterFunctionVariable"},Histograms:{isDataset:!1,isPublic:!1,name:"Histograms",type:"RasterFunctionVariable"},Max:{isDataset:!1,isPublic:!1,name:"Max",type:"RasterFunctionVariable",value:255},MaxPercent:{isDataset:!1,isPublic:!1,name:"MaxPercent",type:"RasterFunctionVariable",value:.5},Min:{isDataset:!1,isPublic:!1,name:"Min",type:"RasterFunctionVariable",value:0},MinPercent:{isDataset:!1,isPublic:!1,name:"MinPercent",type:"RasterFunctionVariable",value:.25},NumberOfStandardDeviations:{isDataset:!1,isPublic:!1,name:"NumberOfStandardDeviation",type:"RasterFunctionVariable",value:2},Raster:{isDataset:!0,isPublic:!1,name:"Raster",type:"RasterFunctionVariable"},SigmoidStrengthLevel:{isDataset:!1,isPublic:!1,name:"SigmoidStrengthLevel",type:"RasterFunctionVariable",value:2},Statistics:{isDataset:!1,isPublic:!1,name:"Statistics",type:"RasterFunctionVariable"},StretchType:{isDataset:!1,isPublic:!1,name:"StretchType",type:"RasterFunctionVariable",value:0},type:"StretchFunctionArguments",UseGamma:{isDataset:!1,isPublic:!1,name:"UseGamma",type:"RasterFunctionVariable",value:!1}},description:"Enhances an image by adjusting the range of values displayed. This does not alter the underlying pixel values. If a pixel has a value outside of the specified range, it will appear as either the minimum or maximum value.",function:{description:"Enhances an image by adjusting the range of values displayed. This does not alter the underlying pixel values. If a pixel has a value outside of the specified range, it will appear as either the minimum or maximum value.",name:"Stretch",pixelType:"UNKNOWN",type:"StretchFunction"},functionType:0,name:"Stretch",thumbnail:""},RemapFunction:{name:"Remap",description:"Changes pixel values by assigning new values to ranges of pixel values or using an external table.",function:{type:"RemapFunction",pixelType:"UNKNOWN",name:"Remap",description:"Changes pixel values by assigning new values to ranges of pixel values or using an external table."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},UseTable:{name:"UseTable",isPublic:!1,isDataset:!1,value:!1,type:"RasterFunctionVariable"},InputRanges:{name:"InputRanges",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable",displayName:"Input Ranges"},OutputValues:{name:"OutputValues",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable",displayName:"Output Values"},NoDataRanges:{name:"NoDataRanges",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable",displayName:"NoData Ranges"},Table:{name:"Table",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},InputField:{name:"InputField",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},OutputField:{name:"OutputField",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},InputMaxField:{name:"InputMaxField",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},RemapTableType:{name:"RemapTableType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},AllowUnmatched:{name:"AllowUnmatched",isPublic:!1,isDataset:!1,value:!0,type:"RasterFunctionVariable"},type:"RemapFunctionArguments"},functionType:0,thumbnail:""},ColormapFunction:{name:"Colormap",description:"Changes pixel values to display the raster data as either a grayscale or a red, green, blue (RGB) image, based on a colormap or a color ramp.",function:{type:"ColormapFunction",pixelType:"UNKNOWN",name:"Colormap",description:"Changes pixel values to display the raster data as either a grayscale or a red, green, blue (RGB) image, based on a colormap or a color ramp."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},ColorSchemeType:{name:"ColorSchemeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},Colormap:{name:"Colormap",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},ColormapName:{name:"ColormapName",isPublic:!1,isDataset:!1,value:"Gray",type:"RasterFunctionVariable"},ColorRamp:{name:"ColorRamp",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},type:"ColormapFunctionArguments"},functionType:0,thumbnail:""},ShadedReliefFunction:{name:"Shaded Relief",description:"Creates a multiband, color coded, 3D representation of the surface, with the sun's relative position taken into account for shading the image.",function:{type:"ShadedReliefFunction",pixelType:"UNKNOWN",name:"Shaded Relief",description:"Creates a multiband, color coded, 3D representation of the surface, with the sun's relative position taken into account for shading the image."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},ColorSchemeType:{name:"ColorSchemeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},ColorRamp:{name:"ColorRamp",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},HillshadeType:{name:"HillshadeType",isPublic:!1,isDataset:!1,value:0,type:"RasterFunctionVariable"},Colormap:{name:"Colormap",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},Azimuth:{name:"Azimuth",isPublic:!1,isDataset:!1,value:315,type:"RasterFunctionVariable"},Altitude:{name:"Altitude",isPublic:!1,isDataset:!1,value:45,type:"RasterFunctionVariable"},SlopeType:{name:"SlopeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},ZFactor:{name:"ZFactor",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},PSPower:{name:"PSPower",isPublic:!1,isDataset:!1,value:.664,type:"RasterFunctionVariable"},PSZFactor:{name:"PSZFactor",isPublic:!1,isDataset:!1,value:.024,type:"RasterFunctionVariable"},RemoveEdgeEffect:{name:"RemoveEdgeEffect",isPublic:!1,isDataset:!1,value:!1,type:"RasterFunctionVariable"},type:"ShadedReliefFunctionArguments"},functionType:0,thumbnail:""},HillshadeFunction:{name:"Hillshade",description:"Creates a 3D representation of the surface, with the sun's relative position taken into account for shading the image",function:{type:"HillshadeFunction",pixelType:"UNKNOWN",name:"Hillshade",description:"Creates a 3D representation of the surface, with the sun's relative position taken into account for shading the image"},arguments:{DEM:{name:"DEM",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},HillshadeType:{name:"HillshadeType",isPublic:!1,isDataset:!1,value:0,type:"RasterFunctionVariable"},Azimuth:{name:"Azimuth",isPublic:!1,isDataset:!1,value:315,type:"RasterFunctionVariable"},Altitude:{name:"Altitude",isPublic:!1,isDataset:!1,value:45,type:"RasterFunctionVariable"},SlopeType:{name:"SlopeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},ZFactor:{name:"ZFactor",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},PSPower:{name:"PSPower",isPublic:!1,isDataset:!1,value:.664,type:"RasterFunctionVariable"},PSZFactor:{name:"PSZFactor",isPublic:!1,isDataset:!1,value:.024,type:"RasterFunctionVariable"},RemoveEdgeEffect:{name:"RemoveEdgeEffect",isPublic:!1,isDataset:!1,value:!1,type:"RasterFunctionVariable"},type:"HillshadeFunctionArguments"},functionType:0,thumbnail:""},ResampleFunction:{name:"Resample",description:"Changes the cell size of a raster.",function:{type:"ResampleFunction",pixelType:"UNKNOWN",name:"Resample",description:"Changes the cell size of a raster."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},ResamplingType:{name:"ResamplingType",isPublic:!1,isDataset:!1,value:0,type:"RasterFunctionVariable"},InputCellSize:{name:"InputCellsize",isPublic:!1,isDataset:!1,value:{x:0,y:0},type:"RasterFunctionVariable"},OutputCellSize:{name:"OutputCellsize",isPublic:!1,isDataset:!1,value:{x:0,y:0},type:"RasterFunctionVariable"},type:"ResampleFunctionArguments"},functionType:0,thumbnail:""}};var _=r(22796),V=r(67369),q=r(70274),E=r(48940);const J=new Set(["u1","u2","u4","u8","s8","u16","s16"]),G={simple_scalar:"Simple Scalar",wind_barb:"Wind Barb",single_arrow:"Single Arrow",beaufort_kn:"Beaufort Wind (Knots)",beaufort_m:"Beaufort Wind (MetersPerSecond)",ocean_current_m:"Ocean Current (MetersPerSecond)",ocean_current_kn:"Ocean Current (Knots)"},z=new Set(["raster-stretch","unique-value","class-breaks","raster-shaded-relief","vector-field","raster-colormap"]);function U(e){return z.has(e.type)}function $(e,t){if(!e||!t)return(0,w.o8)(e||t);const r=(0,w.o8)(e);if(r.functionDefinition&&t.rasterFunctionDefinition){const e=t.rasterFunctionDefinition;(e.thumbnail||e.thumbnailEx)&&(e.thumbnail=e.thumbnailEx=void 0),L(r.functionDefinition.arguments,t),r.rasterFunctionDefinition=r.functionDefinition.toJSON()}else"none"!==t.functionName?.toLowerCase()&&(B(r.functionArguments).Raster=t);return r}function L(e,t){for(const r in e)"raster"===r.toLowerCase()&&("RasterFunctionVariable"===e[r].type?(e[r]=t.rasterFunctionDefinition,e[r].type="RasterFunctionTemplate"):"RasterFunctionTemplate"===e[r].type&&L(e[r].arguments,t))}function K(e){const t=(0,w.o8)(Z[e.functionName+"Function"]),r=e.functionArguments;for(const e in r)"raster"===e.toLowerCase()?(t.arguments[e]=K(r[e]),t.arguments[e].type="RasterFunctionTemplate"):"colormap"===e.toLowerCase()?(t.arguments[e].value=X(r[e]),t.arguments.ColorSchemeType.value=0):t.arguments[e].value=r[e];return e.outputPixelType&&t.function&&(t.function.pixelType=e.outputPixelType.toUpperCase()),t}function B(e){const t=e?.Raster??e?.raster;return t&&"esri.layers.support.RasterFunction"===t.declaredClass?B(t.functionArguments):e}const Q={none:0,standardDeviation:3,histogramEqualization:4,minMax:5,percentClip:6,sigmoid:9};function k(e,t){const r=J.has(t)?(0,O.hP)(t):null;return r&&e.push([Math.floor(r[0]-1),0,0,0],[Math.ceil(r[1]+1),0,0,0]),e}function H(e){if(null==e)return;const{fields:t}=e,r=t?.find(e=>e?.name&&"value"===e.name.toLowerCase());return r?.name}function W(e){return"polygon-3d"===e.symbol?.type?e.symbol.symbolLayers?.find(e=>"fill"===e.type)?.material?.color:e.symbol?.color}function X(e){const t=[],r=[];return e.forEach(e=>{t.push(e[0]),r.push((0,V.vL)([...e.slice(1),255]))}),{type:"RasterColormap",values:t,colors:r}}var Y=r(85675),ee=r(13868),te=r(43937);let re=class extends N.o{constructor(){super(...arguments),this.layer=null,this.requestRawData=!1,this.compression=void 0,this.lercVersion=2}get adjustAspectRatio(){return this.layer.adjustAspectRatio}writeAdjustAspectRatio(e,t,r){this.layer.version<10.3||(t[r]=e)}get bandIds(){return this.layer.bandIds}get compressionQuality(){return this.layer.compressionQuality}writeCompressionQuality(e,t,r){this.format&&this.format.toLowerCase().includes("jpg")&&null!=e&&(t[r]=e)}get compressionTolerance(){return this.layer.compressionTolerance}writeCompressionTolerance(e,t,r){"lerc"===this.format&&null!=e&&(t[r]=e)}get format(){return this.requestRawData||"vector-field"===this.layer.renderer?.type?"lerc":this.layer.format}get interpolation(){return this.layer.interpolation}get noData(){return this.layer.noData}get noDataInterpretation(){return this.layer.noDataInterpretation}get pixelType(){const{layer:e}=this;return e.pixelType!==e.serviceRasterInfo.pixelType?e.pixelType:void 0}writeLercVersion(e,t,r){"lerc"===this.format&&this.layer.version>=10.5&&(t[r]=e)}get version(){const e=this.layer;return e.commitProperty("bandIds"),e.commitProperty("format"),e.commitProperty("compressionQuality"),e.commitProperty("compressionTolerance"),e.commitProperty("interpolation"),e.commitProperty("noData"),e.commitProperty("noDataInterpretation"),e.commitProperty("mosaicRule"),e.commitProperty("rasterFunction"),e.commitProperty("adjustAspectRatio"),e.commitProperty("pixelFilter"),e.commitProperty("pixelType"),e.commitProperty("definitionExpression"),e.commitProperty("multidimensionalSubset"),(this._get("version")||0)+1}set version(e){this._set("version",e)}get mosaicRule(){const e=this.layer;let t=e.mosaicRule;const r=e.definitionExpression;return t?r&&r!==t.where&&(t=t.clone(),t.where=r):r&&(t=new Y.A({where:r})),t}get rasterFunction(){const e=this.layer;let{rasterFunction:t}=e;const r=e.multidimensionalSubset?.areaOfInterest;return r&&(t=function(e,t){return $(new _.A({functionName:"Clip",functionArguments:{ClippingGeometry:t.toJSON(),ClippingType:1}}),e)}(t,r)),this.requestRawData||!e.isRenderedFormat||e.pixelFilter||"vector-field"===e.renderer?.type||(t=this.combineRendererWithRenderingRule(t)),t}combineRendererWithRenderingRule(e){const t=this.layer,{rasterInfo:r,renderer:i}=t;return e=e||t.rasterFunction,i&&U(i)?$(function(e,t){switch(t=t||{},e.type){case"raster-stretch":return function(e,t){const r=t.convertToRFT,i=new _.A;i.functionName="Stretch";const s=Q[q.u.toJSON(e.stretchType)],n="u8",o=e.customStatistics?.map(e=>[e.min,e.max,e.avg??0,e.stddev??1]),a={StretchType:s,Statistics:o,DRA:e.dynamicRangeAdjustment,UseGamma:e.useGamma,Gamma:e.gamma,ComputeGamma:e.computeGamma};if(null!=e.outputMin&&(a.Min=e.outputMin),null!=e.outputMax&&(a.Max=e.outputMax),s===Q.standardDeviation?(a.NumberOfStandardDeviations=e.numberOfStandardDeviations,i.outputPixelType=n):s===Q.percentClip?(a.MinPercent=e.minPercent,a.MaxPercent=e.maxPercent,i.outputPixelType=n):s===Q.minMax?i.outputPixelType=n:s===Q.sigmoid&&(a.SigmoidStrengthLevel=e.sigmoidStrengthLevel),i.functionArguments=a,i.variableName="Raster",e.colorRamp){const s=e.colorRamp,n=new _.A;if(r)n.functionArguments={ColorRamp:(0,V.hf)(s)};else{const r=(0,V.hs)(s,!0);if(r)n.functionArguments={colorRampName:r};else if(!t.convertColorRampToColormap||"algorithmic"!==s.type&&"multipart"!==s.type){const t=e.colorRamp.toJSON();"algorithmic"===t.type?t.algorithm=t.algorithm||"esriCIELabAlgorithm":"multipart"===t.type&&t.colorRamps?.length&&t.colorRamps.forEach(e=>e.algorithm=e.algorithm||"esriCIELabAlgorithm"),n.functionArguments={colorRamp:t}}else n.functionArguments={Colormap:(0,V.R8)(s)}}return n.variableName="Raster",n.functionName="Colormap",n.functionArguments.Raster=i,r?new _.A({rasterFunctionDefinition:K(n)}):n}return r?new _.A({rasterFunctionDefinition:K(i)}):i}(e,t);case"class-breaks":return function(e,t){const r=[],i=[],s=[],n=[],o=1e-4,{pixelType:a,rasterAttributeTable:l}=t,u=null==l?null:l.features,p=H(l);if(p&&u&&Array.isArray(u)&&e.classBreakInfos){e.classBreakInfos.forEach((t,r)=>{const i=t.symbol?.color;let s;i?.a&&null!=t.minValue&&null!=t.maxValue&&u.forEach(o=>{null!=t.minValue&&null!=t.maxValue&&(s=o.attributes[e.field],(s>=t.minValue&&s<t.maxValue||r===e.classBreakInfos.length-1&&s>=t.minValue)&&n.push([o.attributes[p],i.r,i.g,i.b]))})});const r=a?k(n,a):n,i=new _.A;return i.functionName="Colormap",i.functionArguments={},i.functionArguments.Colormap=r,i.variableName="Raster",t.convertToRFT?new _.A({rasterFunctionDefinition:K(i)}):i}e.classBreakInfos.forEach((e,t)=>{if(null==e.minValue||null==e.maxValue)return;const a=e.symbol&&e.symbol.color;a?.a?(0===t?r.push(e.minValue,e.maxValue+o):r.push(e.minValue+o,e.maxValue+o),i.push(t),n.push([t,a.r,a.g,a.b])):s.push(e.minValue,e.maxValue)});const c=a?k(n,a):n,m=new _.A;m.functionName="Remap",m.functionArguments={InputRanges:r,OutputValues:i,NoDataRanges:s},m.variableName="Raster";const d=new _.A;return d.functionName="Colormap",d.functionArguments={Colormap:c,Raster:m},t.convertToRFT?new _.A({rasterFunctionDefinition:K(d)}):d}(e,t);case"unique-value":return function(e,t){const r=[],{pixelType:i,rasterAttributeTable:s}=t,n=null==s?null:s.features,o=H(s),a=e.defaultSymbol?.color?.toRgb(),l=e.uniqueValueInfos;if(l)if(n){if(o){const t=new Map;l.forEach(e=>{const r=e.value,i=W(e);null!=r&&i?.a&&t.set(String(r),i.toRgb())});const i=e.field;i&&n.forEach(({attributes:e})=>{const s=String(e[i]),n=e[o],l=t.get(s);l?r.push([n,...l]):a&&r.push([n,...a])})}}else for(let e=0;e<l.length;e++){const t=l[e],i=W(t),s=+t.value;if(i?.a){if(isNaN(s))return null;r.push([s,i.r,i.g,i.b])}}const u=i?k(r,i):r,p=new _.A;return p.functionName="Colormap",p.functionArguments={},p.functionArguments.Colormap=u,p.variableName="Raster",t.convertToRFT?new _.A({rasterFunctionDefinition:K(p)}):p}(e,t);case"raster-colormap":return function(e,t){const r=e.extractColormap();if(!r||0===r.length)return null;const{pixelType:i}=t,s=i?k(r,i):r,n=new _.A;return n.functionName="Colormap",n.functionArguments={},n.functionArguments.Colormap=s,t.convertToRFT?new _.A({rasterFunctionDefinition:K(n)}):n}(e,t);case"vector-field":return function(e,t){const r=new _.A;r.functionName="VectorFieldRenderer";const{dataType:i,bandNames:s}=t,n="vector-uv"===i;let o,a;if(2===s?.length){const e=s.map(e=>e.toLowerCase());o=e.indexOf("magnitude"),a=e.indexOf("direction")}-1!==o&&null!==o||(o=0,a=1);const l="arithmetic"===e.rotationType?1:2,u="flow-from"===e.flowRepresentation?0:1,p=e.visualVariables?e.visualVariables.find(e=>"Magnitude"===e.field):new E.A,c={magnitudeBandID:o,directionBandID:a,isUVComponents:n,referenceSystem:l,massFlowAngleRepresentation:u,symbolTileSize:50,symbolTileSizeUnits:100,calculationMethod:"Vector Average",symbologyName:G[e.style.toLowerCase().replace("-","_")],minimumMagnitude:p.minDataValue,maximumMagnitude:p.maxDataValue,minimumSymbolSize:p.minSize,maximumSymbolSize:p.maxSize};r.functionArguments=c;const m=K(r);return t.convertToRFT?_.A.fromJSON({rasterFunctionDefinition:m}):r}(e,t);case"raster-shaded-relief":return function(e,t){const r=t.convertToRFT;if("elevation"!==t.dataType&&("generic"!==t.dataType||1!==t.bandCount||"s16"!==t.pixelType&&"s32"!==t.pixelType&&"f32"!==t.pixelType&&"f64"!==t.pixelType))return new _.A;const i=new _.A;i.functionName="Hillshade";const s="traditional"===e.hillshadeType?0:1,n="none"===e.scalingType?1:3,o={HillshadeType:s,SlopeType:n,ZFactor:e.zFactor};return 0===s&&(o.Azimuth=e.azimuth,o.Altitude=e.altitude),3===n&&(o.PSPower=e.pixelSizePower,o.PSZFactor=e.pixelSizeFactor),i.functionArguments=o,i.variableName="Raster",e.colorRamp&&(i.functionName="ShadedRelief",r?o.ColorRamp=(0,V.hf)(e.colorRamp):o.Colormap=(0,V.R8)(e.colorRamp)),r?new _.A({rasterFunctionDefinition:K(i)}):i}(e,t);case"flow":throw new Error("Unsupported rendering rule.")}}(i,{rasterAttributeTable:r.attributeTable,pixelType:r.pixelType,dataType:r.dataType,bandNames:r.bandInfos.map(({name:e})=>e),convertColorRampToColormap:t.version<10.6,convertToRFT:!!e?.rasterFunctionDefinition,bandCount:r.bandCount}),e):e}};(0,s.Cg)([(0,p.MZ)()],re.prototype,"layer",void 0),(0,s.Cg)([(0,p.MZ)()],re.prototype,"requestRawData",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],re.prototype,"adjustAspectRatio",null),(0,s.Cg)([(0,te.K)("adjustAspectRatio")],re.prototype,"writeAdjustAspectRatio",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],re.prototype,"bandIds",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],re.prototype,"compression",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],re.prototype,"compressionQuality",null),(0,s.Cg)([(0,te.K)("compressionQuality")],re.prototype,"writeCompressionQuality",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],re.prototype,"compressionTolerance",null),(0,s.Cg)([(0,te.K)("compressionTolerance")],re.prototype,"writeCompressionTolerance",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],re.prototype,"format",null),(0,s.Cg)([(0,p.MZ)({type:String,json:{read:{reader:ee.SZ.read},write:{writer:ee.SZ.write}}})],re.prototype,"interpolation",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],re.prototype,"noData",null),(0,s.Cg)([(0,p.MZ)({type:String,json:{read:{reader:ee.hm.read},write:{writer:ee.hm.write}}})],re.prototype,"noDataInterpretation",null),(0,s.Cg)([(0,p.MZ)({type:ee.e8.apiValues,json:{read:ee.e8.read,write:ee.e8.write}})],re.prototype,"pixelType",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],re.prototype,"lercVersion",void 0),(0,s.Cg)([(0,te.K)("lercVersion")],re.prototype,"writeLercVersion",null),(0,s.Cg)([(0,p.MZ)({type:Number})],re.prototype,"version",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],re.prototype,"mosaicRule",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0,name:"renderingRule"}})],re.prototype,"rasterFunction",null),re=(0,s.Cg)([(0,p.$K)("esri.layers.support.ExportImageServiceParameters")],re);var ie=r(20437),se=r(95466),ne=r(33446),oe=r(43577),ae=r(14140),le=r(74797),ue=r(87186),pe=r(12711),ce=r(85676),me=r(94359),de=r(65864),ye=r(17136),ge=r(2272),he=r(86738);let fe=class extends((0,o.OU)(N.o)){constructor(e){super(e),this.fromGeometry=null,this.toGeometry=null,this.objectIds=null,this.where=null,this.maxCount=null}};(0,s.Cg)([(0,p.MZ)({type:he.A,json:{read:!0}})],fe.prototype,"fromGeometry",void 0),(0,s.Cg)([(0,p.MZ)({type:he.A,json:{read:!0,write:!0}})],fe.prototype,"toGeometry",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],fe.prototype,"objectIds",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],fe.prototype,"where",void 0),(0,s.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],fe.prototype,"maxCount",void 0),fe=(0,s.Cg)([(0,p.$K)("esri.rest.support.FindImagesParameters")],fe);const ve=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.make=null,this.model=null,this.focalLength=null,this.pixelSize=null,this.rows=null,this.cols=null}};return(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],r.prototype,"make",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],r.prototype,"model",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],r.prototype,"focalLength",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],r.prototype,"pixelSize",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],r.prototype,"rows",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],r.prototype,"cols",void 0),r=(0,s.Cg)([(0,p.$K)("esri.rest.support.CameraInfoMixin")],r),r};let we=class extends(ve(N.o)){constructor(e){super(e),this.id=null,this.referenceUri=null,this.acquisitionDate=null,this.cameraID=null,this.center=null,this.perspectiveCenter=null,this.orientation=null}writeAcquisitionDate(e,t){t.acquisitionDate=e?.getTime()}};(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],we.prototype,"id",void 0),(0,s.Cg)([(0,p.MZ)({json:{name:"uri",write:!0}})],we.prototype,"referenceUri",void 0),(0,s.Cg)([(0,p.MZ)({type:Date,json:{write:!0}})],we.prototype,"acquisitionDate",void 0),(0,s.Cg)([(0,te.K)("acquisitionDate")],we.prototype,"writeAcquisitionDate",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],we.prototype,"cameraID",void 0),(0,s.Cg)([(0,p.MZ)({type:he.A,json:{write:!0}})],we.prototype,"center",void 0),(0,s.Cg)([(0,p.MZ)({type:he.A,json:{write:!0}})],we.prototype,"perspectiveCenter",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],we.prototype,"orientation",void 0),we=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageInspectionInfo")],we);const Re=we;let Ce=class extends N.o{constructor(e){super(e),this.images=null}};var be;(0,s.Cg)([(0,p.MZ)({type:[Re],json:{write:!0}})],Ce.prototype,"images",void 0),Ce=(0,s.Cg)([(0,p.$K)("esri.rest.support.FindImagesResult")],Ce);let Se=be=class extends N.o{constructor(e){super(e),this.angleNames=null,this.point=null,this.spatialReference=null,this.rasterId=null}clone(){return new be((0,w.o8)({angleNames:this.angleNames,point:this.point,spatialReference:this.spatialReference,rasterId:this.rasterId}))}};(0,s.Cg)([(0,p.MZ)({type:[String],json:{name:"angleName",write:!0}})],Se.prototype,"angleNames",void 0),(0,s.Cg)([(0,p.MZ)({type:he.A,json:{write:!0}})],Se.prototype,"point",void 0),(0,s.Cg)([(0,p.MZ)({type:I.A,json:{write:!0}})],Se.prototype,"spatialReference",void 0),(0,s.Cg)([(0,p.MZ)({type:b.jz,json:{write:!0}})],Se.prototype,"rasterId",void 0),Se=be=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageAngleParameters")],Se);let Me=class extends N.o{constructor(e){super(e),this.north=null,this.up=null,this.spatialReference=null}};(0,s.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],Me.prototype,"north",void 0),(0,s.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],Me.prototype,"up",void 0),(0,s.Cg)([(0,p.MZ)({type:I.A,json:{write:!0}})],Me.prototype,"spatialReference",void 0),Me=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageAngleResult")],Me);var xe=r(86211),Ie=r(60408),Fe=r(50498),Ae=r(66552);const De=new Ae.J({esriMensurationPoint:"point",esriMensurationCentroid:"centroid",esriMensurationDistanceAndAngle:"distance-and-angle",esriMensurationAreaAndPerimeter:"area-and-perimeter",esriMensurationHeightFromBaseAndTop:"base-and-top",esriMensurationHeightFromBaseAndTopShadow:"base-and-top-shadow",esriMensurationHeightFromTopAndTopShadow:"top-and-top-shadow",esriMensurationPoint3D:"point-3D",esriMensurationCentroid3D:"centroid-3D",esriMensurationDistanceAndAngle3D:"distance-and-angle-3D",esriMensurationAreaAndPerimeter3D:"area-and-perimeter-3D"});let Pe=class extends N.o{constructor(e){super(e),this.type=null,this.measureOperation=null,this.mosaicRule=null,this.pixelSize=null,this.raster=void 0}};var Te;(0,s.Cg)([(0,p.MZ)()],Pe.prototype,"type",void 0),(0,s.Cg)([(0,p.MZ)({type:De.apiValues,json:{read:De.read,write:De.write}})],Pe.prototype,"measureOperation",void 0),(0,s.Cg)([(0,p.MZ)({type:Y.A,json:{write:!0}})],Pe.prototype,"mosaicRule",void 0),(0,s.Cg)([(0,p.MZ)({type:he.A,json:{write:!0}})],Pe.prototype,"pixelSize",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],Pe.prototype,"raster",void 0),Pe=(0,s.Cg)([(0,p.$K)("esri.rest.support.BaseImageMeasureParameters")],Pe);let je=Te=class extends Pe{constructor(e){super(e),this.type="area-perimeter",this.geometry=null,this.is3D=!1,this.linearUnit="meters",this.areaUnit="square-meters"}writeGeometry(e,t,r){null!=e&&(t.geometryType=(0,Ie.$B)(e),t[r]=e.toJSON())}get measureOperation(){return this.is3D?"area-and-perimeter-3D":"area-and-perimeter"}clone(){return new Te((0,w.o8)({geometry:this.geometry,is3D:this.is3D,linearUnit:this.linearUnit,areaUnit:this.areaUnit,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};(0,s.Cg)([(0,p.MZ)({types:Fe.yR,json:{name:"fromGeometry",read:!0,write:!0}})],je.prototype,"geometry",void 0),(0,s.Cg)([(0,te.K)("geometry")],je.prototype,"writeGeometry",null),(0,s.Cg)([(0,p.MZ)({type:De.apiValues,json:{write:De.write}})],je.prototype,"measureOperation",null),(0,s.Cg)([(0,p.MZ)({json:{read:!0}})],je.prototype,"is3D",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{read:xe.Sk.read,write:xe.Sk.write}})],je.prototype,"linearUnit",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{read:xe.dk.read,write:xe.dk.write}})],je.prototype,"areaUnit",void 0),je=Te=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageAreaParameters")],je);let Ne=class extends N.o{constructor(e){super(e),this.name=null,this.sensorName=null}};(0,s.Cg)([(0,p.MZ)({type:String,json:{read:!0,write:!0}})],Ne.prototype,"name",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{read:!0,write:!0}})],Ne.prototype,"sensorName",void 0),Ne=(0,s.Cg)([(0,p.$K)("esri.rest.support.BaseImageMeasureResult")],Ne);var Oe=r(64108);let Ze=class extends N.o{constructor(e){super(e),this.value=null,this.displayValue=null,this.uncertainty=null}};(0,s.Cg)([(0,p.MZ)({type:String})],Ze.prototype,"unit",void 0),(0,s.Cg)([(0,p.MZ)({type:Number,json:{read:!0,write:!0}})],Ze.prototype,"value",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{read:!0,write:!0}})],Ze.prototype,"displayValue",void 0),(0,s.Cg)([(0,p.MZ)({type:Number,json:{read:!0,write:!0}})],Ze.prototype,"uncertainty",void 0),Ze=(0,s.Cg)([(0,p.$K)("esri.rest.support.BaseImageMeasureResultValue")],Ze);const _e=Ze;let Ve=class extends _e{constructor(e){super(e),this.unit=null}};(0,s.Cg)([(0,p.MZ)({json:{read:xe.dk.read,write:xe.dk.write}})],Ve.prototype,"unit",void 0),Ve=(0,s.Cg)([(0,Oe.$)("esri.rest.support.ImageMeasureResultAreaValue")],Ve);const qe=Ve;let Ee=class extends _e{constructor(e){super(e),this.unit=null}};(0,s.Cg)([(0,p.MZ)({json:{read:xe.Sk.read,write:xe.Sk.write}})],Ee.prototype,"unit",void 0),Ee=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageMeasureResultLengthValue")],Ee);const Je=Ee;let Ge=class extends Ne{constructor(e){super(e),this.area=null,this.perimeter=null}};(0,s.Cg)([(0,p.MZ)({type:qe,json:{read:!0,write:!0}})],Ge.prototype,"area",void 0),(0,s.Cg)([(0,p.MZ)({type:Je,json:{read:!0,write:!0}})],Ge.prototype,"perimeter",void 0),Ge=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageAreaResult")],Ge);let ze=class extends((0,o.OU)(N.o)){constructor(e){super(e),this.outSpatialReference=null}};(0,s.Cg)([(0,p.MZ)({type:I.A,json:{name:"outSR",write:!0}})],ze.prototype,"outSpatialReference",void 0),ze=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageBoundaryParameters")],ze);var Ue=r(36005);let $e=class extends N.o{constructor(e){super(e),this.area=null,this.geometry=null}readGeometry(e,t){return null==e?null:e.rings?x.A.fromJSON(e):M.A.fromJSON(e)}};var Le;(0,s.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],$e.prototype,"area",void 0),(0,s.Cg)([(0,p.MZ)({types:Fe.yR,json:{name:"shape",write:!0}})],$e.prototype,"geometry",void 0),(0,s.Cg)([(0,Ue.w)("geometry")],$e.prototype,"readGeometry",null),$e=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageBoundaryResult")],$e);let Ke=Le=class extends Pe{constructor(e){super(e),this.type="distance-angle",this.fromGeometry=null,this.toGeometry=null,this.is3D=!1,this.linearUnit="meters",this.angularUnit="degrees"}writeFromGeometry(e,t,r){null!=e&&(t.geometryType=(0,Ie.$B)(e),t[r]=e.toJSON())}get measureOperation(){return this.is3D?"distance-and-angle-3D":"distance-and-angle"}clone(){return new Le((0,w.o8)({fromGeometry:this.fromGeometry,toGeometry:this.toGeometry,is3D:this.is3D,linearUnit:this.linearUnit,angularUnit:this.angularUnit,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};(0,s.Cg)([(0,p.MZ)({type:he.A,json:{read:!0,write:!0}})],Ke.prototype,"fromGeometry",void 0),(0,s.Cg)([(0,te.K)("fromGeometry")],Ke.prototype,"writeFromGeometry",null),(0,s.Cg)([(0,p.MZ)({type:he.A,json:{read:!0,write:!0}})],Ke.prototype,"toGeometry",void 0),(0,s.Cg)([(0,p.MZ)({type:De.apiValues,json:{write:De.write}})],Ke.prototype,"measureOperation",null),(0,s.Cg)([(0,p.MZ)({json:{read:!0}})],Ke.prototype,"is3D",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{read:xe.Sk.read,write:xe.Sk.write}})],Ke.prototype,"linearUnit",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{read:xe.b$.read,write:xe.b$.write}})],Ke.prototype,"angularUnit",void 0),Ke=Le=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageDistanceParameters")],Ke);let Be=class extends _e{constructor(e){super(e),this.unit=null}};(0,s.Cg)([(0,p.MZ)({json:{read:xe.b$.read,write:xe.b$.write}})],Be.prototype,"unit",void 0),Be=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageMeasureResultAngleValue")],Be);const Qe=Be;let ke=class extends Ne{constructor(e){super(e),this.distance=null,this.azimuthAngle=null,this.elevationAngle=null}};(0,s.Cg)([(0,p.MZ)({type:Je,json:{read:!0,write:!0}})],ke.prototype,"distance",void 0),(0,s.Cg)([(0,p.MZ)({type:Qe,json:{read:!0,write:!0}})],ke.prototype,"azimuthAngle",void 0),(0,s.Cg)([(0,p.MZ)({type:Qe,json:{read:!0,write:!0}})],ke.prototype,"elevationAngle",void 0),ke=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageDistanceResult")],ke);var He=r(58174),We=r(79677),Xe=r(93223);let Ye=class extends((0,o.OU)(N.o)){constructor(e){super(e),this.geometry=null,this.objectIds=null,this.spatialRelationship="intersects",this.timeExtent=null,this.where=null}writeGeometry(e,t,r){null!=e&&(t.geometryType=(0,Ie.$B)(e),t[r]=JSON.stringify(e.toJSON()))}};(0,s.Cg)([(0,p.MZ)({types:Fe.yR,json:{read:de.rS,write:!0}})],Ye.prototype,"geometry",void 0),(0,s.Cg)([(0,te.K)("geometry")],Ye.prototype,"writeGeometry",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],Ye.prototype,"objectIds",void 0),(0,s.Cg)([(0,Xe.e)(He.x,{ignoreUnknown:!1,name:"spatialRel"})],Ye.prototype,"spatialRelationship",void 0),(0,s.Cg)([(0,p.MZ)({type:We.A,json:{name:"time",write:!0}})],Ye.prototype,"timeExtent",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],Ye.prototype,"where",void 0),Ye=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageGPSInfoParameters")],Ye);let et=class extends(ve(N.o)){constructor(e){super(e),this.id=null}};(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],et.prototype,"id",void 0),et=(0,s.Cg)([(0,p.$K)("esri.rest.support.CameraInfo")],et);const tt=et;let rt=class extends N.o{constructor(e){super(e),this.id=null,this.name=null,this.acquisitionDate=null,this.cameraID=null,this.center=null,this.gps=null,this.orientation=null}writeAcquisitionDate(e,t){t.acquisitionDate=e?.getTime()}};(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],rt.prototype,"id",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],rt.prototype,"name",void 0),(0,s.Cg)([(0,p.MZ)({type:Date,json:{write:!0}})],rt.prototype,"acquisitionDate",void 0),(0,s.Cg)([(0,te.K)("acquisitionDate")],rt.prototype,"writeAcquisitionDate",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],rt.prototype,"cameraID",void 0),(0,s.Cg)([(0,p.MZ)({type:he.A,json:{write:!0}})],rt.prototype,"center",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],rt.prototype,"gps",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],rt.prototype,"orientation",void 0),rt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageGPSInfo")],rt);const it=rt;let st=class extends N.o{constructor(e){super(e),this.images=null,this.cameras=null}};var nt;(0,s.Cg)([(0,p.MZ)({type:[it],json:{write:!0}})],st.prototype,"images",void 0),(0,s.Cg)([(0,p.MZ)({type:[tt],json:{write:!0}})],st.prototype,"cameras",void 0),st=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageGPSInfoResult")],st);let ot=nt=class extends Pe{constructor(e){super(e),this.type="height",this.fromGeometry=null,this.toGeometry=null,this.operationType="base-and-top",this.linearUnit="meters"}writeFromGeometry(e,t,r){null!=e&&(t.geometryType=(0,Ie.$B)(e),t[r]=e.toJSON())}get measureOperation(){return this.operationType}clone(){return new nt((0,w.o8)({fromGeometry:this.fromGeometry,toGeometry:this.toGeometry,operationType:this.operationType,linearUnit:this.linearUnit,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};(0,s.Cg)([(0,p.MZ)({type:he.A,json:{read:!0}})],ot.prototype,"fromGeometry",void 0),(0,s.Cg)([(0,te.K)("fromGeometry")],ot.prototype,"writeFromGeometry",null),(0,s.Cg)([(0,p.MZ)({type:he.A,json:{read:!0,write:!0}})],ot.prototype,"toGeometry",void 0),(0,s.Cg)([(0,p.MZ)({type:De.apiValues,json:{write:De.write}})],ot.prototype,"measureOperation",null),(0,s.Cg)([(0,p.MZ)({json:{read:!0}})],ot.prototype,"operationType",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{read:xe.Sk.read,write:xe.Sk.write}})],ot.prototype,"linearUnit",void 0),ot=nt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageHeightParameters")],ot);let at=class extends Ne{constructor(e){super(e),this.height=null}};(0,s.Cg)([(0,p.MZ)({type:Je,json:{read:!0,write:!0}})],at.prototype,"height",void 0),at=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageHeightResult")],at);var lt,ut=r(22048);let pt=lt=class extends N.o{constructor(e){super(e),this.geometry=null,this.rasterFunctions=null,this.pixelSize=null,this.returnGeometry=!0,this.returnCatalogItems=!0,this.returnPixelValues=!0,this.maxItemCount=null,this.timeExtent=null,this.raster=void 0,this.viewId=void 0,this.processAsMultidimensional=!1}writeGeometry(e,t,r){null!=e&&(t.geometryType=(0,Ie.$B)(e),t[r]=JSON.stringify(e.toJSON()))}set mosaicRule(e){let t=e;t?.mosaicMethod&&(t=Y.A.fromJSON({...t.toJSON(),mosaicMethod:t.mosaicMethod,mosaicOperation:t.mosaicOperation})),this._set("mosaicRule",t)}writeMosaicRule(e,t,r){null!=e&&(t[r]=JSON.stringify(e.toJSON()))}set rasterFunction(e){let t=e;t?.rasterFunction&&(t=_.A.fromJSON({...t.toJSON(),rasterFunction:t.rasterFunction,rasterFunctionArguments:t.rasterFunctionArguments})),this._set("rasterFunction",t)}writeRasterFunction(e,t,r){null!=e&&(t[r]=JSON.stringify(e.toJSON())),e.rasterFunctionDefinition&&(t[r]=JSON.stringify(e.rasterFunctionDefinition))}writeRasterFunctions(e,t,r){null!=e&&(t[r]=JSON.stringify(e.map(e=>e.rasterFunctionDefinition||e.toJSON())))}writePixelSize(e,t,r){null!=e&&(t[r]=JSON.stringify(e))}writeTimeExtent(e,t,r){if(null!=e){const i=null!=e.start?e.start.getTime():null,s=null!=e.end?e.end.getTime():null;t[r]=null!=i?null!=s?`${i},${s}`:`${i}`:null}}clone(){return new lt((0,w.o8)({geometry:this.geometry,mosaicRule:this.mosaicRule,rasterFunction:this.rasterFunction,rasterFunctions:this.rasterFunctions,pixelSize:this.pixelSize,returnGeometry:this.returnGeometry,returnCatalogItems:this.returnCatalogItems,returnPixelValues:this.returnPixelValues,maxItemCount:this.maxItemCount,processAsMultidimensional:this.processAsMultidimensional,raster:this.raster,viewId:this.viewId,timeExtent:this.timeExtent}))}};(0,s.Cg)([(0,p.MZ)({types:Fe.yR,json:{write:!0}})],pt.prototype,"geometry",void 0),(0,s.Cg)([(0,te.K)("geometry")],pt.prototype,"writeGeometry",null),(0,s.Cg)([(0,p.MZ)({type:Y.A,json:{write:!0}})],pt.prototype,"mosaicRule",null),(0,s.Cg)([(0,te.K)("mosaicRule")],pt.prototype,"writeMosaicRule",null),(0,s.Cg)([(0,p.MZ)({type:_.A,json:{write:!0,name:"renderingRule"}})],pt.prototype,"rasterFunction",null),(0,s.Cg)([(0,te.K)("rasterFunction")],pt.prototype,"writeRasterFunction",null),(0,s.Cg)([(0,p.MZ)({type:[_.A],json:{write:!0,name:"renderingRules"}})],pt.prototype,"rasterFunctions",void 0),(0,s.Cg)([(0,te.K)("rasterFunctions")],pt.prototype,"writeRasterFunctions",null),(0,s.Cg)([(0,p.MZ)({type:he.A,json:{write:!0}})],pt.prototype,"pixelSize",void 0),(0,s.Cg)([(0,te.K)("pixelSize")],pt.prototype,"writePixelSize",null),(0,s.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],pt.prototype,"returnGeometry",void 0),(0,s.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],pt.prototype,"returnCatalogItems",void 0),(0,s.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],pt.prototype,"returnPixelValues",void 0),(0,s.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],pt.prototype,"maxItemCount",void 0),(0,s.Cg)([(0,p.MZ)({type:We.A,json:{write:{target:"time"}}})],pt.prototype,"timeExtent",void 0),(0,s.Cg)([(0,te.K)("timeExtent")],pt.prototype,"writeTimeExtent",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],pt.prototype,"raster",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],pt.prototype,"viewId",void 0),(0,s.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],pt.prototype,"processAsMultidimensional",void 0),pt=lt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageIdentifyParameters")],pt);var ct=r(22671);let mt=class extends N.o{constructor(e){super(e),this.catalogItemVisibilities=null,this.catalogItems=null,this.location=null,this.name=null,this.objectId=null,this.processedValues=null,this.properties=null,this.value=null}};var dt;(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],mt.prototype,"catalogItemVisibilities",void 0),(0,s.Cg)([(0,p.MZ)({type:ct.A,json:{write:!0}})],mt.prototype,"catalogItems",void 0),(0,s.Cg)([(0,p.MZ)({type:he.A,json:{write:!0}})],mt.prototype,"location",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],mt.prototype,"name",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],mt.prototype,"objectId",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],mt.prototype,"processedValues",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],mt.prototype,"properties",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],mt.prototype,"value",void 0),mt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageIdentifyResult")],mt);let yt=dt=class extends N.o{constructor(e){super(e),this.geometries=null,this.rasterId=null}writeGeometry(e,t,r){t.geometries={geometryType:"esriGeometryPoint",geometries:e.map(e=>e.toJSON())}}clone(){return new dt({geometries:this.geometries?.map(e=>e.clone())??[],rasterId:this.rasterId})}};(0,s.Cg)([(0,p.MZ)({type:[he.A],json:{write:!0}})],yt.prototype,"geometries",void 0),(0,s.Cg)([(0,te.K)("geometries")],yt.prototype,"writeGeometry",null),(0,s.Cg)([(0,p.MZ)({type:b.jz,json:{write:!0}})],yt.prototype,"rasterId",void 0),yt=dt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImagePixelLocationParameters")],yt);let gt=class extends N.o{constructor(e){super(e),this.geometries=null}};var ht;(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],gt.prototype,"geometries",void 0),gt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImagePixelLocationResult")],gt);let ft=ht=class extends Pe{constructor(e){super(e),this.type="point",this.geometry=null,this.is3D=!1}writeGeometry(e,t,r){null!=e&&(t.geometryType=(0,Ie.$B)(e),t[r]=e.toJSON())}get measureOperation(){const{is3D:e,geometry:t}=this;return"point"===t.type?e?"point-3D":"point":e?"centroid-3D":"centroid"}clone(){return new ht((0,w.o8)({geometry:this.geometry,is3D:this.is3D,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};(0,s.Cg)([(0,p.MZ)({types:Fe.yR,json:{name:"fromGeometry",read:de.rS}})],ft.prototype,"geometry",void 0),(0,s.Cg)([(0,te.K)("geometry")],ft.prototype,"writeGeometry",null),(0,s.Cg)([(0,p.MZ)({type:De.apiValues,json:{read:De.read,write:De.write}})],ft.prototype,"measureOperation",null),(0,s.Cg)([(0,p.MZ)({json:{read:!0}})],ft.prototype,"is3D",void 0),ft=ht=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImagePointParameters")],ft);let vt=class extends Ne{constructor(e){super(e),this.point=null}};(0,s.Cg)([(0,p.MZ)({type:he.A,json:{name:"point.value",read:!0,write:!0}})],vt.prototype,"point",void 0),vt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImagePointResult")],vt);var wt=r(34606),Rt=r(29127);let Ct=class extends((0,o.OU)(N.o)){constructor(e){super(e),this.geometries=[],this.rasterIds=null,this.outSpatialReference=null}writeGeometries(e,t,r){t.geometries=e?.length?{geometryType:(0,Ie.$B)(e[0]),geometries:e.map(e=>({...e.toJSON(),spatialReference:void 0}))}:null}};(0,s.Cg)([(0,p.MZ)({types:[Fe.yR]})],Ct.prototype,"geometries",void 0),(0,s.Cg)([(0,te.K)("geometries")],Ct.prototype,"writeGeometries",null),(0,s.Cg)([(0,p.MZ)({type:[b.jz],json:{write:!0}})],Ct.prototype,"rasterIds",void 0),(0,s.Cg)([(0,p.MZ)({type:I.A,json:{name:"outSR",write:!0}})],Ct.prototype,"outSpatialReference",void 0),Ct=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageToMapMultirayParameters")],Ct);let bt=class extends((0,o.OU)(N.o)){constructor(e){super(e),this.geometry=null,this.rasterId=null,this.outSpatialReference=null,this.depthOffset=0,this.adjust=!1}writeGeometry(e,t,r){null!=e&&(t.geometryType=(0,Ie.$B)(e),t[r]={...e.toJSON(),spatialReference:void 0})}};(0,s.Cg)([(0,p.MZ)({types:Fe.yR,json:{read:de.rS,write:!0}})],bt.prototype,"geometry",void 0),(0,s.Cg)([(0,te.K)("geometry")],bt.prototype,"writeGeometry",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],bt.prototype,"rasterId",void 0),(0,s.Cg)([(0,p.MZ)({type:I.A,json:{name:"outSR",write:!0}})],bt.prototype,"outSpatialReference",void 0),(0,s.Cg)([(0,p.MZ)({json:{name:"options.DOff",write:!0}})],bt.prototype,"depthOffset",void 0),(0,s.Cg)([(0,p.MZ)({json:{name:"options.Adjust",write:!0}})],bt.prototype,"adjust",void 0),bt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageToMapParameters")],bt);let St=class extends((0,o.OU)(N.o)){constructor(e){super(e),this.referenceUri=null,this.rasterId=null}};(0,s.Cg)([(0,p.MZ)({type:String,json:{name:"uri",write:!0}})],St.prototype,"referenceUri",void 0),(0,s.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],St.prototype,"rasterId",void 0),St=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageUrlParameters")],St);let Mt=class extends N.o{constructor(e){super(e),this.url=null}};(0,s.Cg)([(0,p.MZ)({json:{name:"imageURL",write:!0}})],Mt.prototype,"url",void 0),Mt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageUrlResult")],Mt);const xt=new Ae.J({0:"constant",1:"plane",2:"minimum",3:"maximum",4:"average"},{useNumericKeys:!0});let It=class extends((0,o.OU)(N.o)){constructor(e){super(e),this.geometries=[],this.mosaicRule=null,this.pixelSize=null,this.constantZ=null,this.baseType="plane"}writeGeometries(e,t,r){e?.length&&(t.geometryType=(0,Ie.$B)(e[0]),t.geometries=e.map(e=>e.toJSON()))}};(0,s.Cg)([(0,p.MZ)({types:[Fe.yR]})],It.prototype,"geometries",void 0),(0,s.Cg)([(0,te.K)("geometries")],It.prototype,"writeGeometries",null),(0,s.Cg)([(0,p.MZ)({type:Y.A,json:{write:!0}})],It.prototype,"mosaicRule",void 0),(0,s.Cg)([(0,p.MZ)({type:he.A,json:{write:!0}})],It.prototype,"pixelSize",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],It.prototype,"constantZ",void 0),(0,s.Cg)([(0,p.MZ)({type:xt.apiValues,json:{read:xt.read,write:xt.write}})],It.prototype,"baseType",void 0),It=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageVolumeParameters")],It);let Ft=class extends N.o{constructor(e){super(e),this.area=null,this.cut=null,this.fill=null,this.maxZ=null,this.minZ=null,this.meanZ=null,this.cutCellCount=null,this.fillCellCount=null}};(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],Ft.prototype,"area",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],Ft.prototype,"cut",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],Ft.prototype,"fill",void 0),(0,s.Cg)([(0,p.MZ)({json:{name:"maxz",write:!0}})],Ft.prototype,"maxZ",void 0),(0,s.Cg)([(0,p.MZ)({json:{name:"minz",write:!0}})],Ft.prototype,"minZ",void 0),(0,s.Cg)([(0,p.MZ)({json:{name:"meanz",write:!0}})],Ft.prototype,"meanZ",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],Ft.prototype,"cutCellCount",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],Ft.prototype,"fillCellCount",void 0),Ft=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageVolume")],Ft);const At=Ft;let Dt=class extends N.o{constructor(e){super(e),this.volumes=[]}};(0,s.Cg)([(0,p.MZ)({type:[At],json:{write:!0}})],Dt.prototype,"volumes",void 0),Dt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageVolumeResult")],Dt);let Pt=class extends((0,o.OU)(N.o)){constructor(e){super(e),this.geometry=null,this.rasterId=null,this.visibleOnly=!1}writeGeometry(e,t,r){null!=e&&(t.geometryType=(0,Ie.$B)(e),t[r]=JSON.stringify(e))}};(0,s.Cg)([(0,p.MZ)({types:Fe.yR,json:{read:de.rS,write:!0}})],Pt.prototype,"geometry",void 0),(0,s.Cg)([(0,te.K)("geometry")],Pt.prototype,"writeGeometry",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],Pt.prototype,"rasterId",void 0),(0,s.Cg)([(0,p.MZ)({json:{name:"options.VisibleOnly",write:!0}})],Pt.prototype,"visibleOnly",void 0),Pt=(0,s.Cg)([(0,p.$K)("esri.rest.support.MapToImageParameters")],Pt);let Tt=class extends N.o{constructor(e){super(e),this.geometry=null,this.length=null,this.area=null,this.center=null}readCenter(e,t){return e.spatialReference||(e={...e,spatialReference:t.Shape.spatialReference}),he.A.fromJSON(e)}};var jt;(0,s.Cg)([(0,p.MZ)({types:Fe.yR,json:{name:"Shape",read:de.rS,write:!0}})],Tt.prototype,"geometry",void 0),(0,s.Cg)([(0,p.MZ)({json:{name:"Length",write:!0}})],Tt.prototype,"length",void 0),(0,s.Cg)([(0,p.MZ)({json:{name:"Area",write:!0}})],Tt.prototype,"area",void 0),(0,s.Cg)([(0,p.MZ)({type:he.A,json:{name:"Center",write:!0}})],Tt.prototype,"center",void 0),(0,s.Cg)([(0,Ue.w)("center")],Tt.prototype,"readCenter",null),Tt=(0,s.Cg)([(0,p.$K)("esri.rest.support.MeasureAreaFromImageResult")],Tt);let Nt=jt=class extends N.o{constructor(e){super(e),this.geometry=null,this.rasterId=void 0}writeGeometry(e,t,r){null!=e&&(t.geometryType=(0,Ie.$B)(e),t[r]={...e.toJSON(),spatialReference:void 0})}clone(){const e=(0,w.o8)({geometry:this.geometry,rasterId:this.rasterId});return new jt(e)}};(0,s.Cg)([(0,p.MZ)({types:Fe.yR,json:{name:"fromGeometry",read:de.rS,write:!0}})],Nt.prototype,"geometry",void 0),(0,s.Cg)([(0,te.K)("geometry")],Nt.prototype,"writeGeometry",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],Nt.prototype,"rasterId",void 0),Nt=jt=(0,s.Cg)([(0,p.$K)("esri.rest.support.MeasureFromImageParameters")],Nt);let Ot=class extends N.o{constructor(e){super(e),this.geometry=null,this.length=null}};function Zt(e){const t=e?.time;if(t&&(null!=t.start||null!=t.end)){const r=[];null!=t.start&&r.push(t.start),null==t.end||r.includes(t.end)||r.push(t.end),e.time=r.join(",")}}async function _t(e,t,r){const i=(0,b.PZ)(ut.A,t),s=(0,ge.Dl)(e),n=i.geometry?[i.geometry]:[],o=await(0,ye.el)(n),a=i.toJSON();Zt(a);const l=o?.[0];null!=l&&(a.geometry=Jt(l));const u=(0,ge.lF)({...s.query,f:"json",...a});return(0,ge.jV)(u,r)}async function Vt(e,t,r){const i=(0,b.PZ)(pt,t),s=(0,ge.Dl)(e),n=i.geometry?[i.geometry]:[];return(0,ye.el)(n).then(e=>{const t=i.toJSON(),n=e?.[0];null!=n&&(t.geometry=JSON.stringify(Jt(n)));const o=(0,ge.lF)({...s.query,f:"json",...t}),a=(0,ge.jV)(o,r);return(0,f.A)(s.path+"/identify",a)}).then(e=>mt.fromJSON(e.data))}async function qt(e,t,r,i){const s=(0,ge.Dl)(e),n=await(0,ye.el)(r),o=t.toJSON();null!=n[0]&&(o.fromGeometry=JSON.stringify(Jt(n[0]))),null!=n[1]&&(o.toGeometry=JSON.stringify(Jt(n[1])));const a=(0,ge.lF)({...s.query,f:"json",...o}),l=(0,ge.jV)(a,i),{data:u}=await(0,f.A)(s.path+"/measure",l);return u}async function Et(e,t,r){t=(0,b.PZ)(Nt,t);const i=(0,ge.Dl)(e),s=t.toJSON(),n=(0,ge.lF)({...i.query,f:"json",...s}),o=(0,ge.jV)(n,r),{data:a}=await(0,f.A)(i.path+"/measureFromImage",o);return a}function Jt(e){const t=e.toJSON();return e.spatialReference?.imageCoordinateSystem&&(t.spatialReference=Gt(e.spatialReference)),t}function Gt(e){const{imageCoordinateSystem:t}=e;if(t){const{id:e,referenceServiceName:r}=t;return null!=e?r?{icsid:e,icsns:r}:{icsid:e}:{ics:t}}return e.toJSON()}function zt(e,t){if(!e.imageCoordinateSystem)return(0,F.YX)(e);const r=Gt(e),{icsid:i,icsns:s}=r;return null==i||null!=s&&!t?.toLowerCase().includes("/"+s.toLowerCase()+"/")?JSON.stringify(r):`0:${i}`}(0,s.Cg)([(0,p.MZ)({types:Fe.yR,json:{name:"Shape",read:de.rS,write:!0}})],Ot.prototype,"geometry",void 0),(0,s.Cg)([(0,p.MZ)({json:{name:"Length",write:!0}})],Ot.prototype,"length",void 0),Ot=(0,s.Cg)([(0,p.$K)("esri.rest.support.MeasureLengthFromImageResult")],Ot);var Ut=r(82371),$t=r(20223),Lt=r(20615),Kt=r(74910),Bt=r(78286),Qt=r(99199),kt=r(61956);const Ht=new Set(["png","png8","png24","png32","jpg","bmp","gif","jpgpng","lerc","tiff"]),Wt=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this._functionRasterInfos={},this._serviceSupportsMosaicRule=null,this.adjustAspectRatio=null,this.bandIds=void 0,this.capabilities=null,this.compressionQuality=void 0,this.compressionTolerance=.01,this.copyright=null,this.defaultMosaicRule=null,this.definitionExpression=null,this.exportImageServiceParameters=null,this.rasterInfo=null,this.fields=null,this.fullExtent=null,this.hasMultidimensions=!1,this.imageMaxHeight=4100,this.imageMaxWidth=4100,this.interpolation=void 0,this.minScale=0,this.maxScale=0,this.multidimensionalInfo=null,this.multidimensionalSubset=null,this.noData=null,this.noDataInterpretation=void 0,this.objectIdField=null,this.geometryType="polygon",this.typeIdField=null,this.types=[],this.pixelFilter=null,this.raster=void 0,this.sourceType=null,this.viewId=void 0,this.symbolizer=null,this.rasterFunctionInfos=null,this.serviceDataType=null,this.spatialReference=null,this.pixelType=null,this.serviceRasterInfo=null,this.sourceJSON=null,this.url=null,this.version=void 0}initialize(){this._set("exportImageServiceParameters",new re({layer:this}))}readServiceSupportsMosaicRule(e,t){return this._isMosaicRuleSupported(t)}get _rasterFunctionNamesIndex(){const e=new Map;return!this.rasterFunctionInfos||null!=this.rasterFunctionInfos&&this.rasterFunctionInfos.length<1||null!=this.rasterFunctionInfos&&this.rasterFunctionInfos.forEach(t=>{e.set(t.name.toLowerCase().replaceAll(/ /gi,"_"),t.name)}),e}readBandIds(e,t){if(Array.isArray(e)&&e.length>0&&e.every(e=>"number"==typeof e))return e}readCapabilities(e,t){return this._readCapabilities(t)}writeCompressionQuality(e,t,r){null!=e&&"lerc"!==this.format&&(t[r]=e)}writeCompressionTolerance(e,t,r){"lerc"===this.format&&null!=e&&(t[r]=e)}readDefaultMosaicRule(e,t){return this._serviceSupportsMosaicRule?(0,S.F_)(()=>Y.A.fromJSON(t)):null}get fieldsIndex(){return this.fields?new se.A(this.fields):null}set format(e){e&&Ht.has(e.toLowerCase())&&this._set("format",e.toLowerCase())}readFormat(e,t){return"esriImageServiceDataTypeVector-UV"===t.serviceDataType||"esriImageServiceDataTypeVector-MagDir"===t.serviceDataType||null!=this.pixelFilter?"lerc":"jpgpng"}get isRenderedFormat(){return!this.format||this.format.includes("jpg")||this.format.includes("png")}readMinScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}readMaxScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}set mosaicRule(e){let t=e;t?.mosaicMethod&&(t=Y.A.fromJSON({...t.toJSON(),mosaicMethod:t.mosaicMethod,mosaicOperation:t.mosaicOperation})),this._set("mosaicRule",t)}readMosaicRule(e,t){const r=e||t.mosaicRule;return r?Y.A.fromJSON(r):this._isMosaicRuleSupported(t)?Y.A.fromJSON(t):null}writeMosaicRule(e,t,r){const{mosaicRule:i}=this;this._isValidCustomizedMosaicRule(i)&&(t[r]=i.toJSON())}readObjectIdField(e,t){if(!e){const r=t.fields.find(e=>"esriFieldTypeOID"===e.type||"oid"===e.type);e=r?.name}return e}get parsedUrl(){return(0,C.An)(this.url)}readSourceType(e,t){return this._isMosaicDataset(t)?"mosaic-dataset":"raster-dataset"}get renderer(){const{activePresetRendererName:e,presetRenderers:t}=this;if(e){const r=t?.find(({name:t})=>t===e);return r?.renderer.clone()}return this.internalRenderer}set renderer(e){this.activePresetRendererName=null,this.internalRenderer=e}set internalRenderer(e){this.loaded&&(e=this._configRenderer(e)),this._set("internalRenderer",e)}readRenderer(e,t,r){const i=t?.layerDefinition?.drawingInfo?.renderer,s=(0,me.LF)(i,r);return null==s?null:("vector-field"===s.type&&t.symbolTileSize&&!i.symbolTileSize&&(s.symbolTileSize=t.symbolTileSize),U(s)||a.A.getLogger(this).warn("ArcGISImageService","Imagery layer doesn't support given renderer type."),s)}writeRenderer(e,t,r){t.layerDefinition=t.layerDefinition||{},t.layerDefinition.drawingInfo=t.layerDefinition.drawingInfo||{},t.layerDefinition.drawingInfo.renderer=e.toJSON()}get rasterFields(){const e=this.fields?.map(e=>e.clone())??[];e.push((0,le.rZ)()),"mosaic-dataset"===this.sourceType&&this.fields?.length&&e.push((0,le.Nd)()),this.version>=10.4&&null!=this.rasterFunctionInfos&&this.rasterFunctionInfos.some(({name:e})=>"none"===e.toLowerCase())&&e.push((0,le.dy)()),null!=this.rasterFunctionInfos&&this.rasterFunctionInfos.filter(({name:e})=>"none"!==e.toLowerCase()).forEach(({name:t})=>e.push((0,le.nq)(t)));const{rasterInfo:t}=this;if(this._isVectorDataSet()){const r=t?.multidimensionalInfo?.variables[0].unit?.trim(),i=(0,le.DV)(r),s=(0,le.y6)();e.push(i,s)}if(t?.multidimensionalInfo&&"raster-dataset"===this.sourceType){const r=(0,le.AL)(t.multidimensionalInfo);e.push(...r)}const r=t?.attributeTable;if(null!=r){const t=(0,le.jC)(r);e.push(...t)}return e}set rasterFunction(e){let t=e;t?.rasterFunction&&(t=_.A.fromJSON({...t.toJSON(),rasterFunction:t.rasterFunction,rasterFunctionArguments:t.rasterFunctionArguments})),this._set("rasterFunction",t)}readRasterFunction(e,t){const r=t.rasterFunctionInfos;return t.renderingRule||r?.length&&"None"!==r[0].name?this._isRFTJson(t.renderingRule)?_.A.fromJSON({rasterFunctionDefinition:t.renderingRule}):_.A.fromJSON(t.renderingRule||{rasterFunctionInfos:t.rasterFunctionInfos}):null}readSpatialReference(e,t){const r=e||t.extent.spatialReference;return r?I.A.fromJSON(r):null}writePixelType(e,t,r){null!=this.serviceRasterInfo&&this.pixelType===this.serviceRasterInfo.pixelType||(t[r]=ee.e8.toJSON(e))}readVersion(e,t){let r=t.currentVersion;return r||(r=t.hasOwnProperty("fields")||t.hasOwnProperty("timeInfo")?10:9.3),r}applyFilter(e){let t=e;return this.pixelFilter&&(t=this._clonePixelData(e),this.pixelFilter(t)),t}async applyRenderer(e,t){let r=e,{renderer:i,symbolizer:s,pixelFilter:n}=this;const{isRawData:o}=e;if(o&&"lerc"!==this.format&&(i??=(0,pe.PD)(this.rasterInfo,{bandIds:this.bandIds,variableName:this.rasterFunction?null:this.mosaicRule?.multidimensionalDefinition?.[0].variableName}),s||(this.symbolizer=new ce.A({rendererJSON:i.toJSON(),rasterInfo:this.rasterInfo}),s=this.symbolizer)),(o||!this.isRenderedFormat)&&i&&s&&!n){await this._updateSymbolizer(s,i);const n=this.bandIds?.length?this.bandIds:(0,pe.ci)(this.rasterInfo);r=await this._symbolize({pixelData:e,bandIds:n,symbolizer:s},t)}return r}destroy(){this._shutdownJobHandler()}async calculateVolume(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsCalculateVolume)throw new v.A("imagery-layer:compute-pixel-space-locations","this operation is not supported on the input image service");return e=(0,w.o8)(e),this.mosaicRule&&null==e.mosaicRule&&(e.mosaicRule=this.mosaicRule),async function(e,t,r){const i=(0,b.PZ)(It,t).toJSON();i.geometries=JSON.stringify(i.geometries);const s=(0,ge.Dl)(e),n=(0,ge.lF)({...s.query,f:"json",...i}),o=(0,ge.jV)(n,r),{data:a}=await(0,f.A)(`${s.path}/calculateVolume`,o);return Dt.fromJSON({volumes:a.results})}(this.url,e,this._getRequestOptions(t))}async computeAngles(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsComputeAngles)throw new v.A("imagery-layer:compute-angles","this operation is not supported on the input image service");return async function(e,t,r){const i=(0,b.PZ)(Se,t),s=i.toJSON();null!=s.angleName&&(s.angleName=s.angleName.join(",")),i?.point?.spatialReference?.imageCoordinateSystem&&(s.point.spatialReference=Gt(i.point.spatialReference)),i?.spatialReference?.imageCoordinateSystem&&(s.spatialReference=zt(i.spatialReference));const n=(0,ge.Dl)(e),o=(0,ge.lF)({...n.query,f:"json",...s}),a=(0,ge.jV)(o,r),{data:l}=await(0,f.A)(`${n.path}/computeAngles`,a);return l.spatialReference=l.spatialReference?null!=l.spatialReference.geodataXform?new I.A({wkid:0,imageCoordinateSystem:l.spatialReference}):I.A.fromJSON(l.spatialReference):null,"NaN"===l.north&&(l.north=null),"NaN"===l.up&&(l.up=null),new Me(l)}(this.url,e,this._getRequestOptions(t))}async computePixelSpaceLocations(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsComputePixelLocation)throw new v.A("imagery-layer:compute-pixel-space-locations","this operation is not supported on the input image service");return async function(e,t,r){const i=(0,b.PZ)(yt,t),s=i.toJSON(),{geometries:n}=i;if(n)for(let e=0;e<n.length;e++)n[e].spatialReference?.imageCoordinateSystem&&(s.geometries.geometries[e].spatialReference=Gt(n[e].spatialReference));const o=(0,ge.Dl)(e),a=(0,ge.lF)({...o.query,f:"json",...s}),l=(0,ge.jV)(a,r),{data:u}=await(0,f.A)(`${o.path}/computePixelLocation`,l);return gt.fromJSON(u)}(this.url,e,this._getRequestOptions(t))}async computeHistograms(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsComputeHistograms)throw new v.A("imagery-layer:compute-histograms","this operation is not supported on the input image service");return e=(0,w.o8)(e),this._applyMosaicAndRenderingRules(e),async function(e,t,r){const i=await _t(e,t,r),s=(0,ge.Dl)(e),{data:n}=await(0,f.A)(`${s.path}/computeHistograms`,i);return{histograms:n.histograms}}(this.url,e,this._getRequestOptions(t))}async computeStatisticsHistograms(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsComputeStatisticsHistograms)throw new v.A("imagery-layer:compute-statistics-histograms","this operation is not supported on the input image service");return e=(0,w.o8)(e),this._applyMosaicAndRenderingRules(e),async function(e,t,r){const i=await _t(e,t,r),s=(0,ge.Dl)(e),{data:n}=await(0,f.A)(`${s.path}/computeStatisticsHistograms`,i),{statistics:o}=n;return o?.length&&o.forEach(e=>{e.avg=e.mean,e.stddev=e.standardDeviation}),{statistics:o,histograms:n.histograms}}(this.url,e,this._getRequestOptions(t))}async measureHeight(e,t){const r=await this._fetchCapabilities(t?.signal);if(!("base-and-top"===e.operationType?r.mensuration.supportsHeightFromBaseAndTop:"base-and-top-shadow"===e.operationType?r.mensuration.supportsHeightFromBaseAndTopShadow:r.mensuration.supportsHeightFromTopAndTopShadow))throw new v.A("imagery-layer:measure-height","this operation is not supported on the input image service");return e=(0,w.o8)(e),this._applyMosaicRule(e),async function(e,t,r){const i=(0,b.PZ)(ot,t),s=await qt(e,i,[i.fromGeometry,i.toGeometry],r);return at.fromJSON(s)}(this.url,e,this._getRequestOptions(t))}async measureAreaAndPerimeter(e,t){const r=await this._fetchCapabilities(t?.signal);if(!r.mensuration.supportsAreaAndPerimeter||e.is3D&&!r.mensuration.supports3D)throw new v.A("imagery-layer:measure-area-and-perimeter","this operation is not supported on the input image service");return e=(0,w.o8)(e),this._applyMosaicRule(e),async function(e,t,r){const i=(0,b.PZ)(je,t),s=await qt(e,i,[i.geometry],r);return Ge.fromJSON(s)}(this.url,e,this._getRequestOptions(t))}async measureDistanceAndAngle(e,t){const r=await this._fetchCapabilities(t?.signal);if(!r.mensuration.supportsDistanceAndAngle||e.is3D&&!r.mensuration.supports3D)throw new v.A("imagery-layer:measure-distance-and-angle","this operation is not supported on the input image service");return e=(0,w.o8)(e),this._applyMosaicRule(e),async function(e,t,r){const i=(0,b.PZ)(Ke,t),s=await qt(e,i,[i.fromGeometry,i.toGeometry],r);return ke.fromJSON(s)}(this.url,e,this._getRequestOptions(t))}async measurePointOrCentroid(e,t){const r=await this._fetchCapabilities(t?.signal);if(!r.mensuration.supportsPointOrCentroid||e.is3D&&!r.mensuration.supports3D)throw new v.A("imagery-layer:measure-point-or-centroid","this operation is not supported on the input image service");return e=(0,w.o8)(e),this._applyMosaicRule(e),async function(e,t,r){const i=(0,b.PZ)(ft,t),s=await qt(e,i,[i.geometry],r);return vt.fromJSON(s)}(this.url,e,this._getRequestOptions(t))}async measureLengthFromImage(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsMeasureFromImage)throw new v.A("imagery-layer:measure-length-from-image","this operation is not supported on the input image service");if("polyline"!==e.geometry.type)throw new v.A("imagery-layer:measure-length-from-image","this input geometry must be a polyline");return async function(e,t,r){const i=(0,b.PZ)(Nt,t),s=await Et(e,i,r);return Ot.fromJSON(s)}(this.url,e,this._getRequestOptions(t))}async measureAreaFromImage(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsMeasureFromImage)throw new v.A("imagery-layer:measure-area-from-image","this operation is not supported on the input image service");if("polygon"!==e.geometry.type)throw new v.A("imagery-layer:measure-area-from-image","this input geometry must be a polygon");return async function(e,t,r){const i=(0,b.PZ)(Nt,t),s=await Et(e,i,r);return Tt.fromJSON(s)}(this.url,e,this._getRequestOptions(t))}getField(e){const{fieldsIndex:t}=this;return null!=t?t.get(e):void 0}getFieldDomain(e,t){const r=this.getField(e);return r?r.domain:null}async internalFetchImage(e,t,r,s={}){await this._updateCurrentRasterInfo();const{exportImageServiceParameters:n}=this;let o=!1;s.requestRawData&&(await this._initJobHandler(),n.requestRawData||"lerc"===this.format||(o=!0,n.requestRawData=!0));const a=this.getExportImageServiceParameters(e,t,r,s.timeExtent);if(o&&(n.requestRawData=!1,a&&!this.bandIds?.length&&(null==a.bandIds||""===a.bandIds))){const e=(0,pe.ci)(this.rasterInfo);a.bandIds=e?.join(",")}if(null==a){if(s.requestAsImageElement&&this._canRequestImageElement(this.format)){const e=document.createElement("canvas");return e.width=t,e.height=r,s.returnImageBitmap?{imageBitmap:await(0,ne.m)(e,`${i(this.parsedUrl)}/exportImage`,s.signal)}:{imageOrCanvasElement:e}}const{bandIds:n,rasterInfo:o}=this,a=(n?.length||o.bandCount)??0,l=t*r,u=o.pixelType,p=[];for(let e=0;e<a;e++)p.push(ae.A.createEmptyBand(u,l));return{pixelData:{pixelBlock:new ae.A({width:t,height:r,pixels:p,mask:new Uint8Array(l),pixelType:u}),extent:e}}}const l=!!s.requestAsImageElement&&!this.pixelFilter,u=l&&!!s.returnImageBitmap,p={imageServiceParameters:a,imageProps:{extent:e,width:t,height:r,format:this.format},requestAsImageElement:l,returnImageBitmap:u,signal:s.signal};return this._requestArrayBuffer(p)}async fetchPixels(e,t,r,i={}){await this._initJobHandler(),i.applyRendering&&this._updateCurrentRasterInfo();const s=i.applyRendering?void 0:new re({layer:this,requestRawData:!0,interpolation:i.interpolation??"nearest",bandIds:i.bandIds??[]}),n=this.getExportImageServiceParameters(e,t,r,i.timeExtent,s);if(null==n)return{extent:e,pixelBlock:null};delete n.pixelType,i.bandIds||delete n.bandIds,delete n.compressionQuality;const o={imageServiceParameters:n,imageProps:{extent:e,width:t,height:r,format:this.format},requestAsImageElement:!1,returnImageBitmap:!1,signal:i.signal},{pixelData:a}=await this._requestArrayBuffer(o);return a??{extent:e,pixelBlock:null}}fetchKeyProperties(e){return(0,f.A)(i(this.parsedUrl)+"/keyProperties",{query:this._getQueryParams({renderingRule:this.version>=10.3?e?.rasterFunction:null})}).then(e=>e.data)}fetchRasterAttributeTable(e){return this.version<10.1?Promise.reject(new v.A("#fetchRasterAttributeTable()","Failed to get rasterAttributeTable")):(0,f.A)(i(this.parsedUrl)+"/rasterAttributeTable",{query:this._getQueryParams({renderingRule:this.version>=10.3?e?.rasterFunction:null})}).then(e=>ct.A.fromJSON(e.data))}getCatalogItemRasterInfo(e,t){const r={...t,query:this._getQueryParams()};return async function(e,t,r){const i=(0,ge.Dl)(e),s=(0,ge.lF)({...i?.query,f:"json"}),n=(0,ge.jV)(s,r),o=`${i?.path}/${t}/info`,a=(0,f.A)(`${o}`,n),l=(0,f.A)(`${o}/keyProperties`,n),u=await Promise.allSettled([a,l]),p="fulfilled"===u[0].status?u[0].value.data:null,c="fulfilled"===u[1].status?u[1].value.data:null;let m=null;p.statistics?.length&&(m=p.statistics.map(e=>({min:e[0],max:e[1],avg:e[2],stddev:e[3]})));const d=M.A.fromJSON(p.extent),y=Math.ceil(d.width/p.pixelSizeX-.1),g=Math.ceil(d.height/p.pixelSizeY-.1),h=d.spatialReference,v=new he.A({x:p.pixelSizeX,y:p.pixelSizeY,spatialReference:h}),w=p.histograms?.length?p.histograms:null,R=new $t.A({origin:p.origin,blockWidth:p.blockWidth,blockHeight:p.blockHeight,firstPyramidLevel:p.firstPyramidLevel,maximumPyramidLevel:p.maxPyramidLevel});return new ue.A({width:y,height:g,bandCount:p.bandCount,extent:d,spatialReference:h,pixelSize:v,pixelType:p.pixelType.toLowerCase(),statistics:m,histograms:w,keyProperties:c,storageInfo:R})}(i(this.parsedUrl),e,r)}async getCatalogItemICSInfo(e,t){const{data:r}=await(0,f.A)(i(this.parsedUrl)+"/"+e+"/info/ics",{query:this._getQueryParams(),...t}),s=r?.ics;if(!s)return;let n=null;try{n=(await(0,f.A)(i(this.parsedUrl)+"/"+e+"/info",{query:this._getQueryParams(),...t})).data.extent}catch{}if(!n?.spatialReference)return{ics:s,icsToPixelTransform:null,icsExtent:null,northDirection:null};const o=this.version>=10.7?(0,f.A)(i(this.parsedUrl)+"/"+e+"/info/icstopixel",{query:this._getQueryParams(),...t}).then(e=>e.data).catch(()=>({})):{},a=n.spatialReference,l={geometries:JSON.stringify({geometryType:"esriGeometryEnvelope",geometries:[n]}),inSR:(0,F.YX)(a),outSR:"0:"+e},u=(0,f.A)(i(this.parsedUrl)+"/project",{query:this._getQueryParams(l),...t}).then(e=>e.data).catch(()=>({})),p=(n.xmin+n.xmax)/2,c=(n.ymax-n.ymin)/6,m=n.ymin+c,d=[];for(let e=0;e<5;e++)d.push({x:p,y:m+c*e});const y={geometries:JSON.stringify({geometryType:"esriGeometryPoint",geometries:d}),inSR:(0,F.YX)(a),outSR:"0:"+e},g=(0,f.A)(i(this.parsedUrl)+"/project",{query:this._getQueryParams(y),...t}).then(e=>e.data).catch(()=>({})),h=await Promise.all([o,u,g]);let v=h[0].ipxf;if(null==v){const e=s.geodataXform?.xf_0;"topup"===e?.name?.toLowerCase()&&6===e?.coefficients?.length&&(v={affine:{name:"ics [sensor: Frame] to pixel (column, row) transformation",coefficients:e.coefficients,cellsizeRatio:0,type:"GeometricXform"}})}const w=M.A.fromJSON(h[1]?.geometries?.[0]);w&&(w.spatialReference=new I.A({wkid:0,imageCoordinateSystem:s}));const R=h[2].geometries?h[2].geometries.filter(e=>null!=e?.x&&null!=e.y&&"NaN"!==e.x&&"NaN"!==e.y):[],C=R.length;if(C<3)return{ics:s,icsToPixelTransform:v,icsExtent:w,northDirection:null};let b=0,S=0,x=0,A=0;for(let e=0;e<C;e++)b+=R[e].x,S+=R[e].y,x+=R[e].x*R[e].x,A+=R[e].x*R[e].y;const D=(C*A-b*S)/(C*x-b*b);let P=0;const T=R[4].x>R[0].x,j=R[4].y>R[0].y;return D===1/0?P=j?90:270:0===D?P=T?0:180:D>0?P=T?180*Math.atan(D)/Math.PI:180*Math.atan(D)/Math.PI+180:D<0&&(P=j?180+180*Math.atan(D)/Math.PI:360+180*Math.atan(D)/Math.PI),{ics:s,icsToPixelTransform:v,icsExtent:w,northDirection:P}}async generateRasterInfo(e,t){const r=(0,b.PZ)(_.A,e),s={...t,query:this._getQueryParams()};if(!r||"none"===r.functionName?.toLowerCase()||this._isVectorFieldResampleFunction(r))return this.serviceRasterInfo??(0,Ut.Tw)(i(this.parsedUrl),this.sourceJSON,s);const n=function(e){const t=JSON.stringify(e),r=t.includes('"rasterFunctionDefinition":{'),i=r?t.match(/"type":"(.*?FunctionArguments")/gi):t.match(/"rasterFunction":"(.*?")/gi),s=i?.map(e=>r?e.slice(8,-18):e.slice(18,-1));return s?s.join("/"):null}(r);if(!n)throw new v.A("imagery-layer:generate-raster-info","the rendering rule is not supported");if(this._functionRasterInfos[n])return this._functionRasterInfos[n];const o=(0,Ut.X6)(i(this.parsedUrl),r,s);this._functionRasterInfos[n]=o;try{return await o}catch(e){throw this._functionRasterInfos[n]=null,e}}getExportImageServiceParameters(e,t,r,s,n){const o=zt((e=e.clone().shiftCentralMeridian()).spatialReference,i(this.parsedUrl));n??=this.exportImageServiceParameters;const a=n.toJSON(),{bandIds:l,noData:u}=a;let{renderingRule:p}=a;const c=this.rasterFunction?.rasterFunctionDefinition,m=this.renderer?.type,d=!m||"raster-stretch"===m||"raster-colormap"===m||"unique-value"===m||"class-breaks"===m||"raster-shaded-relief"===m;if(l?.length&&this._hasRasterFunction(this.rasterFunction)&&!c&&d){const e={rasterFunction:"ExtractBand",rasterFunctionArguments:{BandIds:l}};if("Stretch"===p.rasterFunction)e.rasterFunctionArguments.Raster=p.rasterFunctionArguments.Raster,p.rasterFunctionArguments.Raster=e;else if("Colormap"===p.rasterFunction){const t=p.rasterFunctionArguments.Raster;"Stretch"===t?.rasterFunction?(e.rasterFunctionArguments.Raster=t.rasterFunctionArguments.Raster,t.rasterFunctionArguments.Raster=e):(e.rasterFunctionArguments.Raster=t,p.rasterFunctionArguments.Raster=e)}else e.rasterFunctionArguments.Raster=p,p=e;a.bandIds=void 0}else a.bandIds=l?.join(",");Array.isArray(u)&&u.length>0&&(a.noData=u.join(","));const y=this._processMultidimensionalIntersection(null,s,n.mosaicRule);if(y.isOutSide)return null;a.mosaicRule=null!=y.mosaicRule?JSON.stringify(y.mosaicRule):null,s=y.timeExtent,a.renderingRule=this._getRenderingRuleString(_.A.fromJSON(p));const g={};if(null!=s){const{start:e,end:t}=s.toJSON();e&&t&&e===t?g.time=""+e:null==e&&null==t||(g.time=`${e??"null"},${t??"null"}`)}return{bbox:e.xmin+","+e.ymin+","+e.xmax+","+e.ymax,bboxSR:o,imageSR:o,size:t+","+r,...a,...g}}async getSamples(e,t){const r=await this._fetchCapabilities(t?.signal);if(!r?.operations.supportsGetSamples)throw new v.A("imagery-layer:get-samples","getSamples operation is not supported on the input image service");e=(0,w.o8)(e);const{raster:i}=this;return i&&null==e.raster&&(e.raster=i),async function(e,t,r){const i=(0,b.PZ)(wt.A,t),s=i.toJSON();Zt(s),s.outFields?.length&&(s.outFields=s.outFields.join(","));const n=await(0,ye.el)(i.geometry),o=n?.[0];null!=o&&(s.geometry=Jt(o));const a=(0,ge.Dl)(e),l=(0,ge.lF)({...a.query,f:"json",...s}),u=(0,ge.jV)(l,r),{data:p}=await(0,f.A)(`${a.path}/getSamples`,u),c=p.samples.map(e=>{const t="NaN"===e.value||""===e.value?null:e.value.split(" ").map(e=>Number(e));return{...e,pixelValue:t}});return Rt.A.fromJSON({samples:c})}(this.url,e,this._getRequestOptions(t))}async identify(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsIdentify)throw new v.A("imagery-layer:identify","identify operation is not supported on the input image service");e=(0,w.o8)(e),this.version<10.91&&"extent"===e.geometry?.type&&(e.geometry=x.A.fromExtent(e.geometry));const r=this._processMultidimensionalIntersection(e.geometry,e.timeExtent,e.mosaicRule||this.mosaicRule);if(r.isOutSide)throw new v.A("imagery-layer:identify","the request cannot be fulfilled when falling outside of the multidimensional subset");e.timeExtent=r.timeExtent,e.mosaicRule=r.mosaicRule;const{raster:i,rasterFunction:s}=this;return s&&null==e.rasterFunction&&(e.rasterFunction=s),i&&null==e.raster&&(e.raster=i),Vt(this.url,e,this._getRequestOptions(t))}async imageToMap(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsImageToMap)throw new v.A("imagery-layer:image-to-map","imageToMap operation is not supported on the input image service");return async function(e,t,r){const i=(0,b.PZ)(bt,t),s=i.toJSON();i.geometry.spatialReference.imageCoordinateSystem&&(s.geometry=Jt(i.geometry)),i.depthOffset&&i.adjust||delete s.options;const n=(0,ge.Dl)(e),o=(0,ge.lF)({...n.query,f:"json",...s}),a=(0,ge.jV)(o,r),{data:l}=await(0,f.A)(`${n.path}/imageToMap`,a);return(0,de.rS)(l)}(i(this.parsedUrl),e,this._getRequestOptions(t))}async imageToMapMultiray(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsImageToMapMultiray)throw new v.A("imagery-layer:image-to-map-multiray","imageToMapMultiray operation is not supported on the input image service");return async function(e,t,r){const i=(0,b.PZ)(Ct,t),s=i.toJSON();i.rasterIds?.length&&(s.rasterIds=i.rasterIds.join(","));const n=(0,ge.Dl)(e),o=(0,ge.lF)({...n.query,f:"json",...s}),a=(0,ge.jV)(o,r),{data:l}=await(0,f.A)(`${n.path}/imageToMapMultiray`,a);return(0,de.rS)(l)}(i(this.parsedUrl),e,this._getRequestOptions(t))}async mapToImage(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsMapToImage)throw new v.A("imagery-layer:map-to-image","mapToImage operation is not supported on the input image service");return async function(e,t,r){const i=(0,b.PZ)(Pt,t),s=i.toJSON(),n=await(0,ye.el)(i.geometry),o=n?.[0];null!=o&&(s.geometry=Jt(o)),i.visibleOnly||delete s.options;const a=o?.spatialReference??i.geometry?.spatialReference;a&&(s.inSR=zt(a));const l=(0,ge.Dl)(e),u=(0,ge.lF)({...l.query,f:"json",...s}),p=(0,ge.jV)(u,r),{data:c}=await(0,f.A)(`${l.path}/mapToImage`,p);return(0,de.rS)(c)}(i(this.parsedUrl),e,this._getRequestOptions(t))}async findImages(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsFindImages)throw new v.A("imagery-layer:find-images","findImages operation is not supported on the input image service");return async function(e,t,r){const i=(0,b.PZ)(fe,t),s=i.toJSON(),n=await(0,ye.el)([i.fromGeometry,i.toGeometry]);null!=n[0]&&(s.fromGeometry=Jt(n[0]),n[0].spatialReference&&(s.inSR=zt(n[0].spatialReference))),null!=n[1]&&(s.toGeometry=Jt(n[1])),i.objectIds?.length&&(s.objectIds=s.objectIds.join(","));const o=(0,ge.Dl)(e),a=(0,ge.lF)({...o.query,f:"json",...s}),l=(0,ge.jV)(a,r),{data:u}=await(0,f.A)(`${o.path}/find`,l);return Ce.fromJSON(u)}(i(this.parsedUrl),e,this._getRequestOptions(t))}async getImageUrl(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsGetImageUrl)throw new v.A("imagery-layer:get-image-url","getImageUrl operation is not supported on the input image service");return async function(e,t,r){const i=(0,b.PZ)(St,t).toJSON(),s=(0,ge.Dl)(e),n=(0,ge.lF)({...s.query,f:"json",...i}),o=(0,ge.jV)(n,r),{data:a}=await(0,f.A)(`${s.path}/getImageUrl`,o);return Mt.fromJSON(a)}(i(this.parsedUrl),e,this._getRequestOptions(t))}createQuery(){return new kt.A({outFields:["*"],returnGeometry:!0,where:this.definitionExpression||"1=1"})}async queryBoundary(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsQueryBoundary)throw new v.A("imagery-layer:query-boundary","queryBoundary operation is not supported on the input image service");return e=e??{outSpatialReference:this.spatialReference},async function(e,t,r){const i=(0,b.PZ)(ze,t),s=(0,ge.Dl)(e),n=i.toJSON();i.outSpatialReference&&(n.outSR=zt(i.outSpatialReference));const o=(0,ge.lF)({...s.query,f:"json",...n}),a=(0,ge.jV)(o,r),{data:l}=await(0,f.A)(s.path+"/queryBoundary",a);return $e.fromJSON(l)}(i(this.parsedUrl),e,this._getRequestOptions(t))}async queryExtent(e,t){return({query:e,requestOptions:t}=await this._prepareForQuery(e,t)),(0,Kt.L)(this.url,e,t)}async queryRasters(e,t){({query:e,requestOptions:t}=await this._prepareForQuery(e,t));const r=await(0,Qt.s)(this.url,e,t),i=this.graphicOrigin;return r.features.forEach(e=>{e.layer=this,e.origin=i}),r}async queryObjectIds(e,t){return({query:e,requestOptions:t}=await this._prepareForQuery(e,t)),(0,Bt.V)(this.url,e,t)}async queryGPSInfo(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsQueryGPSInfo)throw new v.A("imagery-layer:query-gps-info","queryGPSInfo operation is not supported on the input image service");return e=e??{where:"1=1"},async function(e,t,r){const i=(0,b.PZ)(Ye,t),s=i.toJSON();Zt(s),s.objectIds?.length&&(s.objectIds=s.objectIds.join(",")),s.geometry||s.objectIds||s.time||s.where||(s.where="1=1");const n=await(0,ye.el)(i.geometry),o=n?.[0];null!=o&&(s.geometry=Jt(o));const a=o?.spatialReference??i.geometry?.spatialReference;a&&(s.inSR=zt(a));const l=(0,ge.Dl)(e),u=(0,ge.lF)({...l.query,f:"json",...s}),p=(0,ge.jV)(u,r),{data:c}=await(0,f.A)(`${l.path}/queryGPSInfo`,p);return st.fromJSON(c)}(i(this.parsedUrl),e,this._getRequestOptions(t))}async queryRasterCount(e,t){return({query:e,requestOptions:t}=await this._prepareForQuery(e,t)),(0,Lt.I)(this.url,e,t)}async queryVisibleRasters(e,t){if(!e)throw new v.A("imagery-layer: query-visible-rasters","missing query parameter");await this.load();const{pixelSize:r,returnDomainValues:i,returnTopmostRaster:s,showNoDataRecords:n}=t||{pixelSize:null,returnDomainValues:!1,returnTopmostRaster:!1,showNoDataRecords:!1};let o=!1,a=null,l=null;const u=le.F_.servicePixelValue.toLowerCase(),p=this._rasterFunctionNamesIndex;if(null!=e.outFields&&(o=e.outFields.some(e=>!e.toLowerCase().startsWith(u)),this.version>=10.4)){const t=e.outFields.filter(e=>e.toLowerCase().startsWith(u)&&e.length>u.length).map(e=>{const t=e.slice(u.length+1);return[this._updateRenderingRulesFunctionName(t,p),t]});a=t.map(e=>new _.A({functionName:e[0]})),l=t.map(e=>e[1]);const{rasterFunction:r}=this;0===a.length?r?.functionName?(a.push(r),l.push(r.functionName)):a=null:r?.functionName&&!a.some(e=>e.functionName===r.functionName)&&(a.push(r),l.push(r.functionName))}const c=null==e.outSpatialReference||e.outSpatialReference.equals(this.spatialReference),{multidimensionalSubset:m}=this;let d=e.timeExtent||this.timeExtent;if(m){const{isOutside:t,intersection:r}=(0,A.Rp)(m,{geometry:e.geometry,timeExtent:e.timeExtent,multidimensionalDefinition:this.exportImageServiceParameters.mosaicRule?.multidimensionalDefinition});if(t)throw new v.A("imagery-layer:query-visible-rasters","the request cannot be fulfilled when falling outside of the multidimensional subset");null!=r?.timeExtent&&(d=r.timeExtent)}const y=this._combineMosaicRuleWithTimeExtent(this.exportImageServiceParameters.mosaicRule,d);let g=e.geometry;this.version<10.91&&"extent"===g?.type&&(g=x.A.fromExtent(g));const h=this._getQueryParams({geometry:g,timeExtent:d,mosaicRule:y,rasterFunction:this.version<10.4?this.rasterFunction:null,rasterFunctions:a,pixelSize:r,returnCatalogItems:o,returnGeometry:c,raster:this.raster,maxItemCount:s?1:null});delete h.f;const f=new pt(h);try{await this._generateRasterInfo(this.rasterFunction);const r=await Vt(this.url,f,{signal:t?.signal,query:{...this.customParameters}}),s=e.outFields,a=null!=r.value&&r.value.toLowerCase().includes("nodata"),u=o&&!c&&r?.catalogItems?.features.length&&(n||!a),p=this.multidimensionalInfo&&"raster-dataset"===this.sourceType?(0,A.XU)({rasterInfo:this.rasterInfo,multidimensionalDefinition:y?.multidimensionalDefinition,timeExtent:d,multidimensionalSubset:this.multidimensionalSubset}):null;if(!u)return this._processVisibleRastersResponse(r,{returnDomainValues:i,templateRRFunctionNames:l,showNoDataRecords:n,templateFields:s,effectiveMultidimensionalDefinition:p});const m=this.objectIdField||"ObjectId",g=r.catalogItems?.features??[],h=g.map(e=>e.attributes?.[m]),v=new kt.A({objectIds:h,returnGeometry:!0,outSpatialReference:e.outSpatialReference,outFields:[m]}),w=await this.queryRasters(v);return w?.features?.length&&w.features.forEach(t=>{g.forEach(r=>{r.attributes[m]===t.attributes[m]&&t.geometry&&(r.geometry=t.geometry.clone(),null!=e.outSpatialReference&&(r.geometry.spatialReference=e.outSpatialReference))})}),this._processVisibleRastersResponse(r,{returnDomainValues:i,templateRRFunctionNames:l,showNoDataRecords:n,templateFields:s,effectiveMultidimensionalDefinition:p})}catch{throw new v.A("imagery-layer:query-visible-rasters","encountered error when querying visible rasters")}}async fetchVariableStatisticsHistograms(e,t){const r=(0,f.A)(i(this.parsedUrl)+"/statistics",{query:this._getQueryParams({variable:e}),signal:t}).then(e=>e.data?.statistics),s=(0,f.A)(i(this.parsedUrl)+"/histograms",{query:this._getQueryParams({variable:e}),signal:t}).then(e=>e.data?.histograms),n=await Promise.all([r,s]);return n[0]&&n[0].forEach(e=>{e.avg=e.mean,e.stddev=e.standardDeviation}),{statistics:n[0]||null,histograms:n[1]||null}}getMultidimensionalSubsetVariables(e){const t=e??this.serviceRasterInfo.multidimensionalInfo;return(0,A.z2)(this.multidimensionalSubset,t)}async _fetchService(e){await this._fetchServiceInfo(e),this.rasterInfo||(this.rasterInfo=this.serviceRasterInfo);const t=this.sourceJSON,r=null!=this.serviceRasterInfo?Promise.resolve(this.serviceRasterInfo):(0,Ut.Tw)(i(this.parsedUrl),t,{signal:e,query:this._getQueryParams()}).then(e=>(this._set("serviceRasterInfo",e),this._set("multidimensionalInfo",e.multidimensionalInfo),(0,Ut.E9)(e,t),e)),s=this._hasRasterFunction(this.rasterFunction)?this._generateRasterInfo(this.rasterFunction,{signal:e}):null,n=this._getRasterFunctionInfos();return Promise.all([r,s,n]).then(e=>{e[1]?this._set("rasterInfo",e[1]):this._set("rasterInfo",e[0]),e[2]&&this._set("rasterFunctionInfos",e[2]),this.internalRenderer&&!this._isSupportedRenderer(this.internalRenderer)&&(this._set("internalRenderer",null),a.A.getLogger(this).warn("ArcGISImageService","Switching to the default renderer. Renderer applied is not valid for this Imagery Layer")),this._set("internalRenderer",this._configRenderer(this.renderer)),this.addHandles([(0,R.wB)(()=>this.rasterFunction,e=>{(this.renderer||this.symbolizer||this.popupEnabled&&this.popupTemplate)&&this._generateRasterInfo(e).then(e=>{e&&(this.rasterInfo=e)})})]);const{serviceRasterInfo:t}=this;null!=t.multidimensionalInfo&&this._updateMultidimensionalDefinition(t)})}_combineMosaicRuleWithTimeExtent(e,t){const r=this.timeInfo,{multidimensionalInfo:i}=this.serviceRasterInfo;if(null==e||null==i||null==t||null==r?.startField)return e;const{startField:s}=r,n=i.variables.some(e=>e.dimensions.some(e=>e.name===s))?s:"StdTime";if(e=e.clone(),"mosaic-dataset"===this.sourceType)return e.multidimensionalDefinition=e.multidimensionalDefinition?.filter(e=>e.dimensionName!==n),this._cleanupMultidimensionalDefinition(e);e.multidimensionalDefinition=e.multidimensionalDefinition||[];const o=e.multidimensionalDefinition.filter(e=>e.dimensionName===n),a=null!=t.start?t.start.getTime():null,l=null!=t.end?t.end.getTime():null,u=null==a||null==l||a===l,p=u?[a||l]:[[a,l]],c=this.version>=10.8;if(o.length)o.forEach(e=>{e.dimensionName===n&&(c?(e.dimensionName=null,e.isSlice=!1,e.values=[]):(e.isSlice=u,e.values=p))});else if(!c){const t=e.multidimensionalDefinition.filter(e=>null!=e.variableName&&null==e.dimensionName);t.length?t.forEach(e=>{e.dimensionName=n,e.isSlice=u,e.values=p}):e.multidimensionalDefinition.push(new j.A({variableName:"",dimensionName:n,isSlice:u,values:p}))}return this._cleanupMultidimensionalDefinition(e)}_cleanupMultidimensionalDefinition(e){return null==e?null:(e.multidimensionalDefinition&&(e.multidimensionalDefinition=e.multidimensionalDefinition.filter(e=>!(!e.variableName&&!e.dimensionName)),0===e.multidimensionalDefinition.length&&(e.multidimensionalDefinition=null)),"mosaic-dataset"!==this.sourceType&&null==e.multidimensionalDefinition?null:e)}async _prepareForQuery(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsQuery)throw new v.A("imagery-layer:query-rasters","query operation is not supported on the input image service");const r=null!=e?(0,b.PZ)(kt.A,e):this.createQuery();return t=this._getRequestOptions(t),this.raster&&(t.query={...t.query,raster:this.raster}),{query:r,requestOptions:t}}_isSupportedRenderer(e){const{rasterInfo:t,rasterFunction:r}=this;return"unique-value"===e.type&&this._hasRasterFunction(r)&&1===t?.bandCount&&["u8","s8"].includes(t.pixelType)||null!=t&&null!=e&&(0,pe.fp)(t).includes(e.type)}async _fetchCapabilities(e){return this.capabilities||await this._fetchServiceInfo(e),this.capabilities}async _fetchServiceInfo(e){let t=this.sourceJSON;if(!t){const{data:r,ssl:s}=await(0,f.A)(i(this.parsedUrl),{query:this._getQueryParams(),signal:e});t=r,this.sourceJSON=t,s&&(this.url=this.url.replace(/^http:/i,"https:"))}if(t.capabilities?.toLowerCase().split(",").map(e=>e.trim()).indexOf("tilesonly")>-1)throw new v.A("imagery-layer:fetch-service-info","use ImageryTileLayer to open tiles-only image services");this.read(t,{origin:"service",url:this.parsedUrl})}_isMosaicDataset(e){return e.serviceSourceType?"esriImageServiceSourceTypeMosaicDataset"===e.serviceSourceType:e.fields?.length>0}_isMosaicRuleSupported(e){if(!e)return!1;const t=this._isMosaicDataset(e),r=e.currentVersion>=10.71&&e.hasMultidimensions&&!(e.fields?.length>1);return t||r}_isVectorFieldResampleFunction(e){if(null==e)return!1;const{functionName:t,functionArguments:r}=e,i="resample"===t?.toLowerCase(),s=r?.ResampleType||r?.resampleType;return i&&(7===s||10===s)}_configRenderer(e){const{rasterInfo:t}=this;if(!this.isRenderedFormat&&!this.pixelFilter||this._isVectorDataSet()){const r=this.mosaicRule?.multidimensionalDefinition?.[0].variableName,i=(0,pe.I8)({variableName:r,rasterFunctionName:this.rasterFunction?.functionName,presetRenderers:this.presetRenderers});if(!this.bandIds&&t.bandCount>=3){const e=i?.bandIds??(0,pe.ci)(t);!e||3===t.bandCount&&0===e[0]&&1===e[1]&&2===e[2]||(this.bandIds=e)}e||(e=i?.renderer??(0,pe.PD)(t,{bandIds:this.bandIds,variableName:this.rasterFunction?null:r}));const s=(0,pe.$P)(e.toJSON());this.symbolizer?(this.symbolizer.rendererJSON=s,this.symbolizer.rasterInfo=t):this.symbolizer=new ce.A({rendererJSON:s,rasterInfo:t}),this.symbolizer.bind().success||(this.symbolizer=null)}return e}_clonePixelData(e){return null==e?e:{extent:e.extent&&e.extent.clone(),pixelBlock:null!=e.pixelBlock?e.pixelBlock.clone():null}}_getQueryParams(e){null!=e?.renderingRule&&"string"!=typeof e.renderingRule&&(e.renderingRule=this._getRenderingRuleString(e.renderingRule));const{raster:t,viewId:r}=this;return{raster:t,viewId:r,f:"json",...e,...this.customParameters}}_getRequestOptions(e){return{...e,query:{...e?.query,...this.customParameters}}}_decodePixelBlock(e,t,r){return this._rasterJobHandler?this._rasterJobHandler.decode({data:e,options:t}):(0,D.D)(e,t,r)}async _getRasterFunctionInfos(e){const t=this.sourceJSON.rasterFunctionInfos;if(this.loaded)return t;if(t&&this.version>=10.3){if(1===t.length&&"none"===t[0].name.toLowerCase())return t;const r=await(0,f.A)(i(this.parsedUrl)+"/rasterFunctionInfos",{query:this._getQueryParams(),signal:e});return r.data?.rasterFunctionInfos}return null}_canRequestImageElement(e){return!this.pixelFilter&&(!e||e.includes("png"))}async _requestArrayBuffer(e){const{imageProps:t,requestAsImageElement:r,returnImageBitmap:s,signal:n}=e;if(r&&this._canRequestImageElement(t.format)){const r=`${i(this.parsedUrl)}/exportImage`,{data:o}=await(0,f.A)(r,{responseType:s?"blob":"image",query:this._getQueryParams({f:"image",...this.refreshParameters,...e.imageServiceParameters}),signal:n});return o instanceof Blob?{imageBitmap:await(0,ne.m)(o,r,n),params:t}:{imageOrCanvasElement:o,params:t}}const o=this._initJobHandler(),a=(0,f.A)(i(this.parsedUrl)+"/exportImage",{responseType:"array-buffer",query:this._getQueryParams({f:"image",...e.imageServiceParameters}),signal:n}),l=(await Promise.all([a,o]))[0].data,u=t.format||"jpgpng";let p=u;if("bsq"!==p&&"bip"!==p&&(p=(0,D.g)(l)),!p)throw new v.A("imagery-layer:fetch-image","unsupported format signature "+String.fromCharCode.apply(null,new Uint8Array(l)));const c={signal:n},m=this._decodePixelBlock(l,{width:t.width,height:t.height,format:u,applyJpegMask:!0},c);return{pixelData:{pixelBlock:await m,extent:t.extent},params:t}}_generateRasterInfo(e,t){return this.generateRasterInfo(e,t).catch(()=>null)}_isValidCustomizedMosaicRule(e){return e&&JSON.stringify(e.toJSON())!==JSON.stringify(this.defaultMosaicRule?.toJSON())}_updateMultidimensionalDefinition(e){if(this._isValidCustomizedMosaicRule(this.mosaicRule))return;let t=(0,A.fy)(e,{multidimensionalSubset:this.multidimensionalSubset});if(null!=t&&t.length>0){this.mosaicRule=this.mosaicRule||new Y.A;const e=this.mosaicRule.multidimensionalDefinition;!this.sourceJSON.defaultVariableName&&this.rasterFunction&&"none"!==this.rasterFunction.functionName?.toLowerCase()&&t.forEach(e=>e.variableName=""),t=t.filter(({variableName:e,dimensionName:t})=>e&&"*"!==e||t),!e?.length&&t.length&&(this.mosaicRule.multidimensionalDefinition=t)}}_processVisibleRastersResponse(e,t){t=t||{};const r=e.value,{templateRRFunctionNames:i,showNoDataRecords:s,returnDomainValues:n,templateFields:o}=t,a=e.processedValues;let l=e.catalogItems?.features,u=e.properties?.Values?.map(e=>e.replaceAll(/ /gi,", "))||[];const p=this.objectIdField||"ObjectId",c="string"==typeof r&&r.toLowerCase().includes("nodata"),m=[];if(r&&!l&&(!c||s)){const e={};e[p]=0,u=[r],l=[new h.A({geometry:this.fullExtent,attributes:e})],this.multidimensionalInfo&&"raster-dataset"===this.sourceType&&(0,le.eS)(this.rasterFields,e,t.effectiveMultidimensionalDefinition)}if(!l)return[];this._updateResponseFieldNames(l,o),c&&!s&&(l=[]);const{itemPixelValue:d,servicePixelValue:y}=le.F_,g=this.rasterFields.some(e=>e.name===d),f=this.graphicOrigin;for(let e=0;e<l.length;e++){const t=l[e];if(null!=r){const n=u[e],o=this.rasterFunction&&a&&a.length>0&&i&&i.length>0&&i.includes(this.rasterFunction.functionName)?a[i.indexOf(this.rasterFunction.functionName)]:r;if("nodata"===n.toLowerCase()&&!s)continue;g&&(t.attributes[d]=n),t.attributes[y]=o,this._updateFeatureWithMagDirValues(t,n);const l=this.fields&&this.fields.length>0;let p=this.rasterFunction&&null!=this.serviceRasterInfo.attributeTable?l?n:r:o;this.rasterFunction||(p=l?n:r),this._updateFeatureWithRasterAttributeTableValues(t,p)}if(t.sourceLayer=t.layer=this,t.origin=f,n&&this._updateFeatureWithDomainValues(t),i&&a&&i.length===a.length)for(let e=0;e<i.length;e++){const r=`${le.F_.servicePixelValue}.${i[e]}`;t.attributes[r]=a[e]}m.push(l[e])}return m}_processMultidimensionalIntersection(e,t,r){const{multidimensionalSubset:i}=this;if(!i)return{isOutSide:!1,timeExtent:t,mosaicRule:r=this._combineMosaicRuleWithTimeExtent(r,t)};if(i){const{isOutside:r,intersection:s}=(0,A.Rp)(i,{geometry:e,timeExtent:t});if(r)return{isOutSide:!0,timeExtent:null,mosaicRule:null};null!=s?.timeExtent&&(t=s.timeExtent)}if(r=this._combineMosaicRuleWithTimeExtent(r,t),r?.multidimensionalDefinition){const{isOutside:e}=(0,A.Rp)(i,{multidimensionalDefinition:r.multidimensionalDefinition});if(e)return{isOutSide:!0,timeExtent:null,mosaicRule:null}}return{isOutSide:!1,timeExtent:t,mosaicRule:r}}_updateFeatureWithRasterAttributeTableValues(e,t){const r=this.rasterInfo.attributeTable||this.serviceRasterInfo.attributeTable;if(null==r)return;const{features:i,fields:s}=r,n=s.map(e=>e.name).find(e=>"value"===e.toLowerCase());if(!n)return;const o=i.filter(e=>e.attributes[n]===(null!=t?parseInt(t,10):null));o&&o[0]&&s.forEach(t=>{const r=le.ER+t.name;e.attributes[r]=o[0].attributes[t.name]})}_updateFeatureWithMagDirValues(e,t){if(!this._isVectorDataSet())return;const r=t.split(/,\s*/).map(e=>parseFloat(e)),i=r.map(e=>[e]),s=r.map(e=>({minValue:e,maxValue:e,noDataValue:null})),n=new ae.A({height:1,width:1,pixelType:"f32",pixels:i,statistics:s});null!=this.pixelFilter&&this.pixelFilter({pixelBlock:n,extent:new M.A(0,0,0,0,this.spatialReference)});const o="esriImageServiceDataTypeVector-MagDir"===this.serviceDataType?[n.pixels[0][0],n.pixels[1][0]]:(0,P.Lu)([n.pixels[0][0],n.pixels[1][0]]);e.attributes[le.F_.magnitude]=o[0],e.attributes[le.F_.direction]=o[1]}_updateFeatureWithDomainValues(e){const t=this.fields&&this.fields.filter(e=>"coded-value"===e.domain?.type);null!=t&&t.forEach(t=>{const r=e.attributes[t.name];if(null!=r){const i=t.domain.codedValues.find(e=>e.code===r);i&&(e.attributes[t.name]=i.name)}})}_updateResponseFieldNames(e,t){if(!t||t.length<1)return;const r=this.fieldsIndex;null!=r&&e.forEach(e=>{if(e?.attributes)for(const i of t){const t=r.get(i)?.name;t&&t!==i&&(e.attributes[i]=e.attributes[t],delete e.attributes[t])}})}_getRenderingRuleString(e){if(e){let t=e.toJSON();return t=t.rasterFunctionDefinition??t,(t.thumbnail||t.thumbnailEx)&&(t.thumbnail=t.thumbnailEx=null),JSON.stringify(t)}return null}_hasRasterFunction(e){return null!=e?.functionName&&"none"!==e.functionName.toLowerCase()}_updateRenderingRulesFunctionName(e,t){if(!e||e.length<1)return;if("Raw"===e)return e.replace("Raw","None");const r=e.toLowerCase().replaceAll(/ /gi,"_");return t.has(r)?t.get(r):e}_isRFTJson(e){return e?.name&&e.arguments&&e.function&&e.hasOwnProperty("functionType")}_isVectorDataSet(){return"esriImageServiceDataTypeVector-UV"===this.serviceDataType||"esriImageServiceDataTypeVector-MagDir"===this.serviceDataType}_applyMosaicAndRenderingRules(e){const{raster:t,mosaicRule:r,rasterFunction:i}=this;i&&null==e.rasterFunction&&(e.rasterFunction=i),r&&null==e.mosaicRule&&(e.mosaicRule=r),t&&null==e.raster&&(e.raster=t)}async _updateCurrentRasterInfo(e){if(this.renderer||this.symbolizer){const t=await this._generateRasterInfo(this.rasterFunction,{signal:e});t&&(this.rasterInfo=t)}}_applyMosaicRule(e){const{raster:t,mosaicRule:r}=this;r&&null==e.mosaicRule&&(e.mosaicRule=r),t&&null==e.raster&&(e.raster=t)}_readCapabilities(e){const t=e.capabilities?e.capabilities.toLowerCase().split(",").map(e=>e.trim()):["image","catalog"],{currentVersion:r,maxRecordCount:i}=e,s=t.includes("image"),n="esriImageServiceDataTypeElevation"===e.serviceDataType,o=!(!e.spatialReference&&!e.extent?.spatialReference),a=t.includes("edit"),l=t.includes("mensuration")&&o,u=null==e.mensurationCapabilities?[]:e.mensurationCapabilities.toLowerCase().split(",").map(e=>e.trim()),p=l&&u.includes("basic"),c=this._isMosaicDataset(e)&&t.includes("catalog"),m=t.includes("download"),d=r>=10.7&&n||r>=11.4&&(n||l&&u.includes("3d")),y=c&&e.fields&&e.fields.length>0,g=y&&e.supportsAdvancedQueries?e.advancedQueryCapabilities:void 0;return{data:{supportsAttachment:!1},operations:{supportsComputeHistograms:s,supportsExportImage:s,supportsIdentify:s,supportsImageToMap:r>=11.2&&c,supportsImageToMapMultiray:r>=11.2&&c,supportsMapToImage:r>=11.2&&c,supportsFindImages:r>=11.2&&c,supportsGetImageUrl:r>=11.3&&m,supportsMeasure:l,supportsMeasureFromImage:r>=11.2,supportsDownload:m,supportsQuery:y,supportsGetSamples:r>=10.2&&s,supportsProject:r>=10.3&&s,supportsComputeStatisticsHistograms:r>=10.4&&s,supportsQueryBoundary:r>=10.6&&s,supportsCalculateVolume:d,supportsComputePixelLocation:r>=10.7&&c,supportsComputeAngles:r>=10.91,supportsQueryGPSInfo:r>=11.2&&c,supportsAdd:a,supportsDelete:a,supportsEditing:a,supportsUpdate:a,supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsChangeTracking:!1,supportsQueryAttachments:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsExceedsLimitStatistics:!1,supportsQueryAnalytics:!1,supportsQueryBins:!1,supportsQueryPivot:!1,supportsQueryTopFeatures:!1,supportsAsyncConvert3D:!1},query:{maxRecordCount:i,maxRecordCountFactor:void 0,maxUniqueIDCount:void 0,relativeTimeBinWindow:void 0,supportsStatistics:!!g?.supportsStatistics,supportsOrderBy:!!g?.supportsOrderBy,supportsDistinct:!!g?.supportsDistinct,supportsPagination:!!g?.supportsPagination,supportsPaginationOnAggregatedQueries:!!g?.supportsPaginationOnAggregatedQueries,supportsStandardizedQueriesOnly:!!g?.useStandardizedQueries,supportsPercentileStatistics:!!g?.supportsPercentileStatistics,supportsCentroid:!!g?.supportsReturningGeometryCentroid,supportsCentroidOnDegeneratedQuantizedGeometry:!1,supportsCurrentUser:!1,supportsDegeneratedQuantizedGeometry:!1,supportsDistance:!!g?.supportsQueryWithDistance,supportsExtent:!!g?.supportsReturningQueryExtent,supportsGeometryProperties:!!g?.supportsReturningGeometryProperties,supportsHavingClause:!!g?.supportsHavingClause,supportsQuantization:!1,supportsQuantizationEditMode:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsReturnMesh:!1,supportsMaxRecordCountFactor:!1,supportsSqlExpression:g?.supportsSqlExpression??!!g,supportsTopFeaturesQuery:!1,supportsQueryByAnonymous:!1,supportsQueryByOthers:!1,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsFormatPBFWithCurves:!1,supportsDisjointSpatialRelationship:!1,supportsCacheHint:!1,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsDefaultSpatialReference:!!g?.supportsDefaultSR,supportsFullTextSearch:!1,supportsCompactGeometry:!1,standardMaxRecordCount:void 0,standardMaxRecordCountNoGeometry:void 0,tileMaxRecordCount:void 0,supportsTrueCurve:!1},mensuration:{supportsDistanceAndAngle:p,supportsAreaAndPerimeter:p,supportsPointOrCentroid:p,supportsHeightFromBaseAndTop:l&&u.includes("base-top height"),supportsHeightFromBaseAndTopShadow:l&&u.includes("base-top shadow height"),supportsHeightFromTopAndTopShadow:l&&u.includes("top-top shadow height"),supports3D:l&&u.includes("3d")}}}};function i(e){return e?.path??""}return(0,s.Cg)([(0,p.MZ)({clonable:!1})],r.prototype,"_functionRasterInfos",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],r.prototype,"_serviceSupportsMosaicRule",void 0),(0,s.Cg)([(0,Ue.w)("_serviceSupportsMosaicRule",["currentVersion","fields"])],r.prototype,"readServiceSupportsMosaicRule",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],r.prototype,"_rasterFunctionNamesIndex",null),(0,s.Cg)([(0,p.MZ)()],r.prototype,"adjustAspectRatio",void 0),(0,s.Cg)([(0,p.MZ)({type:[b.jz],json:{write:!0}})],r.prototype,"bandIds",void 0),(0,s.Cg)([(0,Ue.w)("bandIds")],r.prototype,"readBandIds",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0,json:{read:!1}})],r.prototype,"capabilities",void 0),(0,s.Cg)([(0,Ue.w)("service","capabilities",["capabilities","currentVersion","serviceDataType"])],r.prototype,"readCapabilities",null),(0,s.Cg)([(0,p.MZ)({type:Number})],r.prototype,"compressionQuality",void 0),(0,s.Cg)([(0,te.K)("compressionQuality")],r.prototype,"writeCompressionQuality",null),(0,s.Cg)([(0,p.MZ)({type:Number})],r.prototype,"compressionTolerance",void 0),(0,s.Cg)([(0,te.K)("compressionTolerance")],r.prototype,"writeCompressionTolerance",null),(0,s.Cg)([(0,p.MZ)({json:{read:{source:"copyrightText"}}})],r.prototype,"copyright",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],r.prototype,"defaultMosaicRule",void 0),(0,s.Cg)([(0,Ue.w)("defaultMosaicRule",["defaultMosaicMethod"])],r.prototype,"readDefaultMosaicRule",null),(0,s.Cg)([(0,p.MZ)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],r.prototype,"definitionExpression",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0,constructOnly:!0})],r.prototype,"exportImageServiceParameters",void 0),(0,s.Cg)([(0,p.MZ)()],r.prototype,"rasterInfo",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0,type:[ie.A]})],r.prototype,"fields",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],r.prototype,"fieldsIndex",null),(0,s.Cg)([(0,p.MZ)({type:["png","png8","png24","png32","jpg","bmp","gif","jpgpng","lerc","tiff","bip","bsq"],json:{write:!0}})],r.prototype,"format",null),(0,s.Cg)([(0,Ue.w)("service","format",["serviceDataType"])],r.prototype,"readFormat",null),(0,s.Cg)([(0,p.MZ)({type:M.A})],r.prototype,"fullExtent",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],r.prototype,"hasMultidimensions",void 0),(0,s.Cg)([(0,p.MZ)({json:{read:{source:"maxImageHeight"}}})],r.prototype,"imageMaxHeight",void 0),(0,s.Cg)([(0,p.MZ)({json:{read:{source:"maxImageWidth"}}})],r.prototype,"imageMaxWidth",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{type:ee.SZ.jsonValues,read:ee.SZ.read,write:ee.SZ.write}})],r.prototype,"interpolation",void 0),(0,s.Cg)([(0,p.MZ)()],r.prototype,"minScale",void 0),(0,s.Cg)([(0,Ue.w)("service","minScale")],r.prototype,"readMinScale",null),(0,s.Cg)([(0,p.MZ)()],r.prototype,"maxScale",void 0),(0,s.Cg)([(0,Ue.w)("service","maxScale")],r.prototype,"readMaxScale",null),(0,s.Cg)([(0,p.MZ)({type:Y.A})],r.prototype,"mosaicRule",null),(0,s.Cg)([(0,Ue.w)("mosaicRule",["mosaicRule","defaultMosaicMethod"])],r.prototype,"readMosaicRule",null),(0,s.Cg)([(0,te.K)("mosaicRule")],r.prototype,"writeMosaicRule",null),(0,s.Cg)([(0,p.MZ)()],r.prototype,"multidimensionalInfo",void 0),(0,s.Cg)([(0,p.MZ)({type:oe.A,json:{write:!0}})],r.prototype,"multidimensionalSubset",void 0),(0,s.Cg)([(0,p.MZ)({json:{type:[Number,[Number]],write:!0}})],r.prototype,"noData",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{type:ee.hm.jsonValues,read:ee.hm.read,write:ee.hm.write}})],r.prototype,"noDataInterpretation",void 0),(0,s.Cg)([(0,p.MZ)({type:String,readOnly:!0,json:{read:{source:["fields"]}}})],r.prototype,"objectIdField",void 0),(0,s.Cg)([(0,Ue.w)("objectIdField")],r.prototype,"readObjectIdField",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],r.prototype,"geometryType",void 0),(0,s.Cg)([(0,p.MZ)({})],r.prototype,"typeIdField",void 0),(0,s.Cg)([(0,p.MZ)({})],r.prototype,"types",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],r.prototype,"parsedUrl",null),(0,s.Cg)([(0,p.MZ)({type:Function})],r.prototype,"pixelFilter",void 0),(0,s.Cg)([(0,p.MZ)()],r.prototype,"raster",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],r.prototype,"sourceType",void 0),(0,s.Cg)([(0,Ue.w)("sourceType",["serviceSourceType","fields"])],r.prototype,"readSourceType",null),(0,s.Cg)([(0,p.MZ)()],r.prototype,"viewId",void 0),(0,s.Cg)([(0,p.MZ)({types:me.uy})],r.prototype,"renderer",null),(0,s.Cg)([(0,p.MZ)({types:me.uy,json:{name:"layerDefinition.drawingInfo.renderer",origins:{"web-scene":{types:me.Gj,name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy:e=>({enabled:e&&"vector-field"!==e.type})}}}}})],r.prototype,"internalRenderer",null),(0,s.Cg)([(0,Ue.w)("internalRenderer")],r.prototype,"readRenderer",null),(0,s.Cg)([(0,te.K)("internalRenderer")],r.prototype,"writeRenderer",null),(0,s.Cg)([(0,p.MZ)({clonable:!1})],r.prototype,"symbolizer",void 0),(0,s.Cg)([(0,p.MZ)(T.ke)],r.prototype,"opacity",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],r.prototype,"rasterFields",null),(0,s.Cg)([(0,p.MZ)({constructOnly:!0})],r.prototype,"rasterFunctionInfos",void 0),(0,s.Cg)([(0,p.MZ)({type:_.A,json:{name:"renderingRule"}})],r.prototype,"rasterFunction",null),(0,s.Cg)([(0,Ue.w)("rasterFunction",["renderingRule","rasterFunctionInfos"])],r.prototype,"readRasterFunction",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],r.prototype,"serviceDataType",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0,type:I.A})],r.prototype,"spatialReference",void 0),(0,s.Cg)([(0,Ue.w)("spatialReference",["spatialReference","extent"])],r.prototype,"readSpatialReference",null),(0,s.Cg)([(0,p.MZ)({type:ee.e8.apiValues,json:{read:ee.e8.read,type:ee.e8.jsonValues}})],r.prototype,"pixelType",void 0),(0,s.Cg)([(0,te.K)("pixelType")],r.prototype,"writePixelType",null),(0,s.Cg)([(0,p.MZ)({constructOnly:!0,type:ue.A})],r.prototype,"serviceRasterInfo",void 0),(0,s.Cg)([(0,p.MZ)()],r.prototype,"sourceJSON",void 0),(0,s.Cg)([(0,p.MZ)(T.OZ)],r.prototype,"url",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],r.prototype,"version",void 0),(0,s.Cg)([(0,Ue.w)("version",["currentVersion","fields","timeInfo"])],r.prototype,"readVersion",null),r=(0,s.Cg)([(0,p.$K)("esri.layers.mixins.ArcGISImageService")],r),r};var Xt=r(18768),Yt=r(63074),er=r(69208),tr=r(34287),rr=r(8303),ir=r(72545),sr=r(56551),nr=r(54310),or=r(25036),ar=r(82935),lr=r(91908),ur=r(24212),pr=r(30291),cr=r(88625),mr=r(59923);let dr=class extends((0,Yt.dM)((0,ar.e)((0,or.j)((0,tr.q)((0,rr.A)((0,sr.H)(Wt((0,ir.G)((0,nr.J)((0,er.d)((0,Xt.b)((0,l.M)((0,o.OU)(g.A)))))))))))))){constructor(...e){super(...e),this.graphicOrigin=new y(this),this.isReference=null,this.operationalLayerType="ArcGISImageServiceLayer",this.popupEnabled=!0,this.popupTemplate=null,this.screenSizePerspectiveEnabled=!0,this.type="imagery",this._debouncedSaveOperations=(0,u.sg)(async(e,t,i)=>{const{save:s,saveAs:n}=await r.e(9838).then(r.bind(r,59838));switch(e){case 0:return s(this,t);case 1:return n(this,i,t)}})}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"]},e).catch(u.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}set elevationInfo(e){"relative-to-scene"!==e?.mode&&this._set("elevationInfo",e),this._validateElevationInfo(e)}get legendEnabled(){return!this._isPreviewLayer&&(this._get("legendEnabled")??!0)}set legendEnabled(e){this._set("legendEnabled",e)}get listMode(){return this._isPreviewLayer?"hide":this._get("listMode")}set listMode(e){this._set("listMode",e)}get defaultPopupTemplate(){return this.createPopupTemplate()}get _isPreviewLayer(){return!(!this.raster||!this.url?.toLowerCase().includes("/rasterrendering/imageserver"))}createPopupTemplate(e){const{rasterFields:t}=this,r=new Set,i=le.F_.itemPixelValue.toLowerCase(),s="raster-dataset"===this.sourceType,n=le.Oo.toLowerCase(),o=`${le.F_.servicePixelValue.toLowerCase()}.`;for(const e of t){const t=e.name.toLowerCase();t===i||t.startsWith(o)||s&&t.startsWith(n)||r.add(e.name)}const a=(0,pr.tn)({fields:t,title:this.title},{...e,visibleFieldNames:r}),{rasterInfo:l}=this;return a?.fieldInfos&&l&&(0,le.h4)(a.fieldInfos,l),a}queryFeatures(e,t){return this.queryRasters(e,t).then(e=>{if(e?.features)for(const t of e.features)t.layer=t.sourceLayer=this,t.origin=this.graphicOrigin;return e})}queryFeatureCount(e,t){return this.queryRasterCount(e,t)}redraw(){this.emit("redraw")}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}serviceSupportsSpatialReference(e){return(0,lr.D)(this,e)}write(e,t){return this._isPreviewLayer?((0,mr.U4)(t,this,"preview layer cannot be saved"),null):super.write(e,t)}_validateElevationInfo(e){(0,ur.XF)(a.A.getLogger(this),(0,ur.$7)("Imagery layers","relative-to-scene",e)),(0,ur.XF)(a.A.getLogger(this),(0,ur.tW)("Imagery layers",e))}};(0,s.Cg)([(0,p.MZ)({type:cr.A,value:null,json:{name:"layerDefinition.elevationInfo",write:!0,origins:{"portal-item":{read:!1,write:!1},"web-map":{read:!1,write:!1}}}})],dr.prototype,"elevationInfo",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0,clonable:!1})],dr.prototype,"graphicOrigin",void 0),(0,s.Cg)([(0,p.MZ)(T.fV)],dr.prototype,"legendEnabled",null),(0,s.Cg)([(0,p.MZ)({type:["show","hide"]})],dr.prototype,"listMode",null),(0,s.Cg)([(0,p.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],dr.prototype,"isReference",void 0),(0,s.Cg)([(0,p.MZ)({type:["ArcGISImageServiceLayer"]})],dr.prototype,"operationalLayerType",void 0),(0,s.Cg)([(0,p.MZ)(T.M6)],dr.prototype,"popupEnabled",void 0),(0,s.Cg)([(0,p.MZ)({type:n.A,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],dr.prototype,"popupTemplate",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],dr.prototype,"defaultPopupTemplate",null),(0,s.Cg)([(0,p.MZ)(T.PY)],dr.prototype,"screenSizePerspectiveEnabled",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0,json:{read:!1}})],dr.prototype,"type",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],dr.prototype,"_isPreviewLayer",null),dr=(0,s.Cg)([(0,p.$K)("esri.layers.ImageryLayer")],dr);const yr=dr},18768(e,t,r){r.d(t,{b:()=>a});var i=r(5482),s=r(53966),n=r(91429),o=r(60694);const a=e=>{const t=e;let r=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,o.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,o.Jf)(e,s.A.getLogger(this)))}};return(0,i.Cg)([(0,n.MZ)()],r.prototype,"title",null),(0,i.Cg)([(0,n.MZ)({type:String})],r.prototype,"url",null),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.ArcGISService")],r),r}},56551(e,t,r){r.d(t,{H:()=>c});var i=r(5482),s=r(91429),n=r(69540),o=r(25482),a=r(56507),l=r(94359),u=r(93223);let p=class extends((0,n.OU)(o.o)){constructor(e){super(e),this.name=void 0,this.method="none",this.value=void 0,this.bandIds=void 0,this.renderer=void 0}};(0,i.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],p.prototype,"name",void 0),(0,i.Cg)([(0,s.MZ)({type:["raster-function-template","variable","none"],json:{write:{isRequired:!0}}}),(0,u.e)({rasterFunctionTemplate:"raster-function-template",variable:"variable",none:"none"})],p.prototype,"method",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],p.prototype,"value",void 0),(0,i.Cg)([(0,s.MZ)({type:[a.jz],json:{write:{isRequired:!0}}})],p.prototype,"bandIds",void 0),(0,i.Cg)([(0,s.MZ)({types:l.uy,json:{write:!0,origins:{"web-scene":{types:l.Gj,write:{overridePolicy:e=>({enabled:e&&"vector-field"!==e.type})}}}}})],p.prototype,"renderer",void 0),p=(0,i.Cg)([(0,s.$K)("esri.renderers.support.RasterPresetRenderer")],p);const c=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.activePresetRendererName=null,this.presetRenderers=null}};return(0,i.Cg)([(0,s.MZ)({type:String,json:{name:"layerDefinition.activePresetRendererName",write:{allowNull:!0}}})],r.prototype,"activePresetRendererName",void 0),(0,i.Cg)([(0,s.MZ)({type:[p],json:{name:"layerDefinition.presetRenderers",write:!0}})],r.prototype,"presetRenderers",void 0),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.RasterPresetRendererMixin")],r),r}},33446(e,t,r){r.d(t,{C:()=>o,m:()=>n});var i=r(49186),s=r(17676);async function n(e,t,r){let n;try{n=await createImageBitmap(e)}catch(e){throw new i.A("request:server",`Unable to load ${t}`,{url:t,error:e})}return(0,s.Te)(r),n}async function o(e,t,r,n,o){let a;try{a=await createImageBitmap(e)}catch(e){throw new i.A("request:server",`Unable to load tile ${t}/${r}/${n}`,{error:e,level:t,row:r,col:n})}return(0,s.Te)(o),a}},91908(e,t,r){r.d(t,{D:()=>n});var i=r(60694);const s=[];function n(e,t){if((0,i.Wo)(e.url??""))return!0;const{wkid:r}=t;for(const t of s){if((e.version??0)>=t[0])return!0;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(r))return!1}return!0}s.push([10.91,()=>{const e=new Set([9709,9716,9741,9761,9766]);for(let t=9712;t<=9713;t++)e.add(t);for(let t=9748;t<=9749;t++)e.add(t);for(let t=20904;t<=20932;t++)e.add(t);for(let t=21004;t<=21032;t++)e.add(t);for(let t=21207;t<=21264;t++)e.add(t);for(let t=21307;t<=21364;t++)e.add(t);for(let t=23301;t<=23333;t++)e.add(t);for(let t=102759;t<=102760;t++)e.add(t);for(let t=102934;t<=102955;t++)e.add(t);return e}]),s.push([10.9,()=>{const e=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let t=9356;t<=9360;t++)e.add(t);for(let t=9404;t<=9407;t++)e.add(t);for(let t=9476;t<=9482;t++)e.add(t);for(let t=9487;t<=9494;t++)e.add(t);for(let t=9697;t<=9699;t++)e.add(t);return e}]),s.push([10.81,()=>{const e=new Set([9265,9333,103598,103699]);for(let t=9248;t<=9254;t++)e.add(t);for(let t=9271;t<=9273;t++)e.add(t);for(let t=9284;t<=9285;t++)e.add(t);for(let t=21453;t<=21463;t++)e.add(t);return e}]),s.push([10.8,()=>{const e=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let t=8035;t<=8036;t++)e.add(t);for(let t=8455;t<=8456;t++)e.add(t);for(let t=8518;t<=8529;t++)e.add(t);for(let t=8533;t<=8536;t++)e.add(t);for(let t=8538;t<=8540;t++)e.add(t);for(let t=8677;t<=8679;t++)e.add(t);for(let t=8902;t<=8903;t++)e.add(t);for(let t=8907;t<=8910;t++)e.add(t);for(let t=8949;t<=8951;t++)e.add(t);for(let t=8972;t<=8987;t++)e.add(t);for(let t=9039;t<=9040;t++)e.add(t);for(let t=9068;t<=9069;t++)e.add(t);for(let t=9140;t<=9141;t++)e.add(t);for(let t=9148;t<=9150;t++)e.add(t);for(let t=9153;t<=9159;t++)e.add(t);for(let t=9205;t<=9218;t++)e.add(t);for(let t=9221;t<=9222;t++)e.add(t);for(let t=54098;t<=54101;t++)e.add(t);return e}]),s.push([10.71,()=>{const e=new Set([6316]);for(let t=8351;t<=8353;t++)e.add(t);for(let t=9294;t<=9297;t++)e.add(t);for(let t=22619;t<=22621;t++)e.add(t);for(let t=103586;t<=103594;t++)e.add(t);return e}])},82371(e,t,r){r.d(t,{E9:()=>y,Tw:()=>m,X6:()=>d});var i=r(11254),s=r(5443),n=r(86738),o=r(16930),a=r(87186),l=r(20223),u=r(2272),p=r(22671);async function c(e,t,r){const c=(0,u.Dl)(e),{rasterFunction:m,sourceJSON:d}=t||{},y=m?JSON.stringify(m.rasterFunctionDefinition||m):null,g=(0,u.lF)({...c.query,renderingRule:y,f:"json"}),h=(0,u.jV)(g,r);e=c.path;const f=d||await(0,i.A)(e,h).then(e=>e.data),v=f.hasRasterAttributeTable?(0,i.A)(`${e}/rasterAttributeTable`,h):null,w=f.hasColormap?(0,i.A)(`${e}/colormap`,h):null,R=f.hasHistograms?(0,i.A)(`${e}/histograms`,h):null,C=f.currentVersion>=10.3?(0,i.A)(`${e}/keyProperties`,h):null,b=f.hasMultidimensions?(0,i.A)(`${e}/multidimensionalInfo`,h):null,S=f.currentVersion>=10.81?(0,i.A)(`${e}/statistics`,h):null,M=await Promise.allSettled([v,w,R,C,b,S]),x=s.A.fromJSON(f.extent),I=Math.ceil(x.width/f.pixelSizeX-.1),F=Math.ceil(x.height/f.pixelSizeY-.1),A=o.A.fromJSON(f.spatialReference||f.extent.spatialReference),D="fulfilled"===M[0].status?M[0].value?.data:null,P=D?.features?.length?p.A.fromJSON(D):null,T="fulfilled"===M[1].status?M[1].value?.data.colormap:null,j=T?.length?T:null,N="fulfilled"===M[2].status?M[2].value?.data.histograms:null,O=N?.[0]?.counts?.length?N:null,Z="fulfilled"===M[3].status?M[3].value?.data??{}:{},_="fulfilled"===M[4].status?M[4].value?.data.multidimensionalInfo:null,V=_?.variables?.length?_:null;V&&V.variables.forEach(e=>{e.statistics?.length&&e.statistics.forEach(e=>{e.avg=e.mean,e.stddev=e.standardDeviation}),e.dimensions?.forEach(e=>{"StdTime"!==e.name||e.recurring||e.unit||(e.unit="ISO8601")})});let q=null;const E="fulfilled"===M[5].status?M[5].value?.data.statistics:null;if(E&&E.length===f.bandCount)q=E.map(e=>({avg:e.mean,count:e.count,max:e.max,median:e.median,min:e.min,mode:e.mode,stddev:e.standardDeviation,sum:e.sum}));else if(f.minValues&&f.minValues.length===f.bandCount){q=[];for(let e=0;e<f.minValues.length;e++)q.push({min:f.minValues[e],max:f.maxValues[e],avg:f.meanValues[e],stddev:f.stdvValues[e]})}const{defaultVariable:J,serviceDataType:G}=f;J&&J!==Z.DefaultVariable&&(Z.DefaultVariable=J),G?.includes("esriImageServiceDataTypeVector")&&!G.includes(Z.DataType)&&(Z.DataType=G.replace("esriImageServiceDataType",""));let z=f.noDataValue;f.noDataValues?.length&&f.noDataValues.some(e=>e!==z)&&(z=f.noDataValues);const U=f.transposeInfo?new l.A({blockWidth:256,blockHeight:256,pyramidBlockWidth:256,pyramidBlockHeight:256,pyramidScalingFactor:2,compression:"lerc",origin:new n.A({x:f.extent.xmin,y:f.extent.ymax,spatialReference:A}),firstPyramidLevel:1,maximumPyramidLevel:Math.max(0,Math.round(Math.log(Math.max(I,F))/Math.LN2-8)),transposeInfo:f.transposeInfo}):void 0;return new a.A({width:I,height:F,bandCount:f.bandCount,extent:s.A.fromJSON(f.extent),spatialReference:A,pixelSize:new n.A({x:f.pixelSizeX,y:f.pixelSizeY,spatialReference:A}),pixelType:f.pixelType.toLowerCase(),statistics:q,attributeTable:P,colormap:j,histograms:O,keyProperties:Z,noDataValue:z,multidimensionalInfo:V,storageInfo:U})}function m(e,t,r){return c(e,{sourceJSON:t},r)}function d(e,t,r){return c(e,{rasterFunction:t},r)}function y(e,t){e.attributeTable||(t.hasRasterAttributeTable=!1),e.histograms||(t.hasHistograms=!1),e.colormap||(t.hasColormap=!1),e.multidimensionalInfo||(t.hasMultidimensions=!1)}},20615(e,t,r){r.d(t,{I:()=>o});var i=r(2272),s=r(80893),n=r(61956);function o(e,t,r,o){return(0,s.gW)((0,i.Dl)(e),n.A.from(t),r,o)}},74910(e,t,r){r.d(t,{L:()=>a});var i=r(5443),s=r(2272),n=r(80893),o=r(61956);async function a(e,t,r){const a=(0,s.Dl)(e),l=await(0,n.Jf)(a,o.A.from(t),{...r}),u=l.extent;return!u||isNaN(u.xmin)||isNaN(u.ymin)||isNaN(u.xmax)||isNaN(u.ymax)?{count:l.count,extent:null}:{count:l.count,extent:i.A.fromJSON(u)}}},78286(e,t,r){r.d(t,{V:()=>o});var i=r(2272),s=r(80893),n=r(61956);async function o(e,t,r,o){const a=(0,i.Dl)(e),l=await(0,s.Pk)(a,n.A.from(t),r,o);return l.objectIds??function(e){if(e)return function(e){return!Array.isArray(e[0])}(e)?e:e.map(e=>JSON.stringify(e))}(l.uniqueIds)??[]}},99199(e,t,r){r.d(t,{e:()=>l,s:()=>a});var i=r(2272),s=r(80893),n=r(22671),o=r(61956);async function a(e,t,r,i){const s=await l(e,t,r,i);return n.A.fromJSON(s)}function l(e,t,r,n){const a=(0,i.Dl)(e),l={...r},u=o.A.from(t);return(0,s.eW)(a,u,u.sourceSpatialReference,l,n)}},58501(e,t,r){r.d(t,{q:()=>s});var i=r(62815);function s(e,t,r){if(!r?.features||!r.hasZ)return;const s=(0,i.N)(r.geometryType,t,e.outSpatialReference);if(s)for(const e of r.features)s(e.geometry)}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1948,6061,6936],{61691(t,e,s){s.d(e,{G:()=>n});class n{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},76061(t,e,s){s.d(e,{S:()=>i});var n=s(61691);class i extends n.G{constructor(t){super(),this.m_iGeom=-1,this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},87992(t,e,s){s.d(e,{JR:()=>E,ME:()=>M,MY:()=>A,NO:()=>v,Nh:()=>C,V2:()=>Y,_s:()=>R,e6:()=>G,gh:()=>b,tr:()=>X,uX:()=>_});var n=s(5482),i=s(69397),r=s(16930),o=(s(70328),s(19419)),a=s(60408),h=s(21325),m=s(513),u=s(50954),c=s(79567),f=s(52006),l=s(49663),d=s(46068),x=s(92722);class _{constructor({type:t,spatialReference:e,vertexCount:s,vertexXY:n,vertexZ:i,vertexM:r,partCount:o,partOffsets:a,partFlags:h,segmentFlags:m,segmentIndices:u,segmentParams:c,segmentCountArc:f,segmentCountBezier:l}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=s,this.vertexXY=n,this.vertexZ=i,this.vertexM=r,this.partCount=o,this.partOffsets=a,this.partFlags=h,this.segmentFlags=m,this.segmentIndices=u,this.segmentParams=c,this.segmentCountArc=f,this.segmentCountBezier=l}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:s}=this;return t&&t-e-s}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return null!=this.segmentFlags}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function t(t){return t?i.Ul+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){const{type:t,vertexCount:e,partCount:s,hasZ:n,hasM:i,segmentCountArc:r,segmentCountBezier:o}=this,a=Y(t,e,s,n,i,this.hasCurves(),r,o);a.spatialReference=this.spatialReference;const{vertexXY:h,vertexZ:m,vertexM:u}=this;if(a.vertexXY.set(h.subarray(0,2*e),0),a.vertexZ?.set(m.subarray(0,e),0),a.vertexM?.set(u.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;a.partFlags.set(e.subarray(0,s+1)),a.partOffsets.set(t.subarray(0,s+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:s,segmentParams:n,segmentParamCount:i}=this;a.segmentFlags.set(t.subarray(0,e),0),a.segmentIndices.set(s.subarray(0,e),0),a.segmentParams.set(n.subarray(0,i),0)}return a}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,h.aI)(this.spatialReference,t.spatialReference))return!1;if(this.vertexCount!==t.vertexCount||this.partCount!==t.partCount)return!1;if(this.hasZ!==t.hasZ||this.hasM!==t.hasM)return!1;if(this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;const s=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,s)=>Math.abs(t-s)>e||isNaN(t)!==isNaN(s);for(let e=0;e<this.vertexCount;++e)if(s(this.vertexXY[2*e],t.vertexXY[2*e])||s(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(s(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(s(this.vertexM[e],t.vertexM[e]))return!1;for(let e=0;e<this.partCount;++e)if(this.partFlags[e]!==t.partFlags[e]||this.partOffsets[e]!==t.partOffsets[e])return!1;if(this.hasCurves()){for(let e=0;e<this.vertexCount;++e)if(this.segmentFlags[e]!==t.segmentFlags[e]||this.segmentIndices[e]!==t.segmentIndices[e])return!1;for(let e=0;e<this.segmentParamCount;++e)if(s(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new g(this):[][Symbol.iterator]()}}class g{constructor(t){this.geometry=t,this.value=new y(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class y{constructor(t){this.geometry=t,this.index=-1,this._readVertex=w(t),this._segments=new p(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class p{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new P(t.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const t=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=t&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:t}=this._part,e=this._part.geometry.partOffsets;this._partStart=e[t],this._partEnd=e[t+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class P{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=w(t)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const t=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===t)return this.end;const e=this.geometry.segmentParams;let s=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[s++],n=e[s++],i=e[s++],r=e[s++];return{b:[this.end,[t,n],[i,r]]}}const n=e[s++],i=e[s++],r=e[s++],o=e[s++],a=e[s++],h=e[s++];s++,s++;const m=e[s++],u=e[s++];if(!Boolean(4&n)&&1===r)return{c:[this.end,[m,u]]};const c=2&n?0:1,f=1&n?0:1;return{a:[this.end,[a,h],c,f,o,i,r]}}}function v(t,e){const s={stack:[],error:void 0,hasError:!1};try{return e??=(0,o.Ie)(),(0,n.mS)(s,new S(t,["vertexZ","vertexM","spatialReference"]),!1),(0,o.bx)(e,function(t){let e;const{vertexCount:s,vertexXY:i,vertexZ:r,vertexM:a}=t,h=O(t);if(t.hasCurves()){const s={stack:[],error:void 0,hasError:!1};try{(0,n.mS)(s,new S(t,["vertexZ","vertexM"]),!1);const i=(0,o.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:s}of e.segments)(0,c.e)(i,t,s),t=(0,f.yP)(s)}const[r,a,m,u]=i;e={xmin:r,ymin:a,xmax:m,ymax:u,spatialReference:h}}catch(t){s.error=t,s.hasError=!0}finally{(0,n.hk)(s)}}else{let t,n,r,o;t=n=1/0,r=o=-1/0;for(let e=0;e<s;++e){const s=i[2*e],a=i[2*e+1];t=Math.min(t,s),r=Math.max(r,s),n=Math.min(n,a),o=Math.max(o,a)}e={xmin:t,ymin:n,xmax:r,ymax:o,spatialReference:h}}if(r){let t=1/0,s=-1/0;for(const e of r)t=Math.min(t,e),s=Math.max(s,e);e.zmin=t,e.zmax=s}if(a){let t=1/0,s=-1/0;for(const e of a)t=Math.min(t,e),s=Math.max(s,e);e.mmin=t,e.mmax=s}return e}(t)),e}catch(t){s.error=t,s.hasError=!0}finally{(0,n.hk)(s)}}function M(t){let e,s,n;if((0,a.fT)(t)){n="point";const{x:i,y:r,z:o,m:a}=t,h=[i,r];null!=o&&h.push(o),null!=a&&h.push(a),s=[[h]],e=1}else(0,a.U9)(t)?(n="multipoint",s=[t.points],e=t.points.length):(0,a.Rg)(t)?(n="polyline",s=t.curvePaths??t.paths,e=s.reduce((t,e)=>t+e.length,0)):(n="polygon",s=t.curveRings??t.rings,e=s.reduce((t,e)=>(0===e.length||(t+=e.length,I(e[0],(0,f.yP)(e.at(-1)))&&--t),t),0));const i=Y(n,e,n.includes("point")?0:s.length,(0,a.Pv)(t),(0,a.W0)(t),(0,f.Ed)(t)),{hasZ:r,hasM:o,vertexXY:h,vertexZ:m,vertexM:u}=i;function c(t){h[2*d]=t[0],h[2*d+1]=t[1],r&&(m[d]=t[2]),o&&(u[d]=t[l]),++d}i.spatialReference=t.spatialReference??void 0;const l=i.hasZ?3:2;let d=0;if(!i.isMultipart()){if(!r&&!o){for(const[t,e]of s[0])h[2*d]=t,h[2*d+1]=e,++d;return i}for(const t of s[0])c(t);return i}const x="polygon"===n,{partOffsets:_}=i;let g=0;if(!i.hasCurves()){for(const t of s){if(_[g++]=d,0===t.length)continue;let e=t.length;if(x&&I(t[0],t.at(-1))&&--e,r||o)for(let s=0;s<e;++s)c(t[s]);else for(let s=0;s<e;++s){const[e,n]=t[s];h[2*d]=e,h[2*d+1]=n,++d}}return _[g]=d,i}function y(t){const e=p+t;if(e<=(i.segmentParams?.length??0))return;let s=e*T;s=20*Math.ceil(s/20);const n=i.segmentParams;i.segmentParams=new Float64Array(s),null!=n&&i.segmentParams.set(n)}let p=0;for(const t of s){if(i.partOffsets[g++]=d,0===t.length)continue;const e=t[0];let s=e;for(let e=1;e<t.length;++e){const n=t[e];c(s);const r=d-1;(0,f.wY)(n)?(y(10),++i.segmentCountArc,p=R(s,n,i,r,p),s=n.a[0]):(0,f.DA)(n)?(y(10),++i.segmentCountArc,p=Z(s,n,i,r,p),s=n.a[0]):(0,f.aO)(n)?(y(10),++i.segmentCountArc,p=G(s,n,i,r,p),s=n.c[0]):(0,f.n1)(n)?(y(4),++i.segmentCountBezier,p=X(0,n,i,r,p),s=n.b[0]):s=n}x&&I(e,s)||c(s)}return i.partOffsets[g]=d,i}function b(t){const e=w(t),{vertexCount:s,partCount:n,hasZ:i,hasM:r}=t,o=O(t);if("point"===t.type){const[e,s]=t.vertexXY,n=t.vertexZ?.[0],i=t.vertexM?.[0];return{x:e,y:s,z:n,m:i,spatialReference:o}}let a=0;if("multipoint"===t.type){const t=[];for(;a<s;)t.push(e(a++));return{points:t,spatialReference:o,hasZ:i,hasM:r}}const h="polygon"===t.type;if(!t.hasCurves()){const s=new Array;for(let i=0;i<n;++i){const n=t.partOffsets[i+1],r=new Array;for(;a<n;)r.push(e(a++));h&&r.length>0&&r.push(r[0]),s.push(r)}return h?{rings:s,hasZ:i,hasM:r,spatialReference:o}:{paths:s,hasZ:i,hasM:r,spatialReference:o}}const m=new Array;for(const{segments:e,startVertex:s}of t.parts){const t=[s];for(const{curve:s}of e)t.push(s);m.push(t)}return h?{rings:[],curveRings:m,hasZ:i,hasM:r,spatialReference:o}:{paths:[],curvePaths:m,hasZ:i,hasM:r,spatialReference:o}}function C(t,{lengths:e,coords:s,hasZ:n,hasM:i},r){const o=t.includes("point")?0:e.length,a="polygon"===t,h="point"===t?1:e.reduce((t,e)=>t+e,0)-(a?o:0);n??=!1,i??=!1;const m=Y(t,h,o,n,i,!1,0,0);if(m.spatialReference=r??void 0,!m.isMultipart()){for(let t=0,e=0;t<h;++t)m.vertexXY[2*t]=s[e++],m.vertexXY[2*t+1]=s[e++],n&&(m.vertexZ[t]=s[e++]),i&&(m.vertexM[t]=s[e++]);return m}const u=2+Number(n)+Number(i);let c=0,f=0;m.partOffsets[0]=0;for(const t of e){const e=m.partOffsets[f],r=e+t-Number(a);m.partOffsets[++f]=r;for(let t=e;t<r;++t)m.vertexXY[2*t]=s[c++],m.vertexXY[2*t+1]=s[c++],n&&(m.vertexZ[t]=s[c++]),i&&(m.vertexM[t]=s[c++]);a&&(c+=u)}return m}function E({type:t,vertexCount:e,vertexXY:s,vertexZ:n,vertexM:i,partCount:r,partOffsets:o,hasZ:a,hasM:h}){const m=new x.A([],[],a,h);r=Math.max(r,1);const u="polygon"===t;let c=0;for(let t=0;t<r;++t){const r=o?.[t+1]??e,f=m.coords.length;for(let t=c;t<r;++t)m.coords.push(s[2*t],s[2*t+1]),a&&m.coords.push(n[t]),h&&m.coords.push(i[t]);if(u){const t=c;m.coords.push(s[2*t],s[2*t+1]),a&&m.coords.push(n[t]),h&&m.coords.push(i[t])}m.lengths.push((m.coords.length-f)/m.stride),c=r}return"point"===t&&(m.lengths.length=0),m}function A(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,s=t.isCustomWkid()?0:t.getOldID();if(s<=0)return{wkt:e};let n=t.getLatestID();(n<=0||n===s)&&(n=void 0);const i=t.getVCS();if(null==i)return{wkid:s,latestWkid:n,wkt:e};const r=i.isCustomWkid()?0:i.getOldID();if(r<=0)return{wkt:e};let o=t.getLatestVerticalID();return(o<=0||o===r)&&(o=void 0),{wkid:s,wkt:e,latestWkid:n,vcsWkid:r,latestVcsWkid:o}}(t.getSpatialReference()),t=t.getGeometry()),new _({...t.toFlatGeometry(),spatialReference:e})}class S{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const s of e)t[s]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function O({spatialReference:t}){return t instanceof r.A?t.toJSON():t}function w({vertexXY:t,vertexZ:e,vertexM:s}){return e?s?n=>[t[2*n],t[2*n+1],e[n],s[n]]:s=>[t[2*s],t[2*s+1],e[s]]:s?e=>[t[2*e],t[2*e+1],s[e]]:e=>[t[2*e],t[2*e+1]]}function I(t,e){return t.every((t,s)=>t===e[s])}function Y(t,e,s,n,i,r,o,a){o??=0,a??=0;const h=new _({type:t,vertexCount:e,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:s,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:o,segmentCountBezier:a});let m=2*Float64Array.BYTES_PER_ELEMENT*e;n&&(m+=Float64Array.BYTES_PER_ELEMENT*e),i&&(m+=Float64Array.BYTES_PER_ELEMENT*e),h.isMultipart()&&(m+=(s+1)*Int32Array.BYTES_PER_ELEMENT,m+=(s+1)*Int8Array.BYTES_PER_ELEMENT),r&&(m+=e*Int8Array.BYTES_PER_ELEMENT,m+=e*Int32Array.BYTES_PER_ELEMENT,m+=h.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const u=new ArrayBuffer(m);let c=0;return h.vertexXY=new Float64Array(u,c,2*e),c+=h.vertexXY.byteLength,n&&(h.vertexZ=new Float64Array(u,c,e),c+=h.vertexZ.byteLength),i&&(h.vertexM=new Float64Array(u,c,e),c+=h.vertexM.byteLength),r&&(h.segmentParams=new Float64Array(u,c,h.segmentParamCount),c+=h.segmentParams.byteLength,h.segmentIndices=new Int32Array(u,c,e),h.segmentIndices.fill(V),c+=h.segmentIndices.byteLength),h.isMultipart()&&(h.partOffsets=new Int32Array(u,c,s+1),c+=h.partOffsets.byteLength,h.partFlags=new Int8Array(u,c,s+1),c+=h.partFlags.byteLength,"polygon"===h.type&&h.partFlags.subarray(0,s).fill(1)),r&&(h.segmentFlags=new Int8Array(u,c,e),h.segmentFlags.fill(1),c+=h.segmentFlags.byteLength),h}function R(t,e,{segmentFlags:s,segmentIndices:n,segmentParams:i},r,o){s[r]=4,n[r]=o;const[a,[h,m],u,c,f,l,x]=e.a;let _=4;c||(_|=1),u||(_|=2);const g=(0,d.SW)(t,e),[y,p]=(0,d.Uk)(g,.5);return i[o++]=_,i[o++]=l,i[o++]=x,i[o++]=f,i[o++]=h,i[o++]=m,i[o++]=g.u2-g.u1,i[o++]=g.u1,i[o++]=y,i[o++]=p,o}function Z(t,e,{segmentFlags:s,segmentIndices:n,segmentParams:i},r,o){s[r]=4,n[r]=o;const a=(0,l.io)(t,e);return F(a,4,...(0,m.mq)(a,.5),i,o)}function G(t,e,{segmentFlags:s,segmentIndices:n,segmentParams:i},r,o){return s[r]=4,n[r]=o,F((0,u.pM)(t,e),0,...e.c[1],i,o)}function F(t,e,s,n,i,r){const{cx:o,cy:a,thetaStart:h,thetaEnd:m,radius:u}=t;return h>m||(e|=1),Math.abs(m-h)<=Math.PI||(e|=2),i[r++]=e,i[r++]=u,i[r++]=1,i[r++]=0,i[r++]=o,i[r++]=a,i[r++]=m-h,i[r++]=h,i[r++]=s,i[r++]=n,r}function X(t,{b:[e,[s,n],[i,r]]},{segmentFlags:o,segmentIndices:a,segmentParams:h},m,u){return o[m]=2,a[m]=u,h[u++]=s,h[u++]=n,h[u++]=i,h[u++]=r,u}const T=1.61803,V=-1},66070(t,e,s){s.d(e,{g7:()=>g,zo:()=>y});var n=s(76061),i=s(61691),r=s(95213),o=s(55537),a=s(88885),h=s(83661);const m=1.4142135623730951,u=.017453292519943295,c=256,f=1024;class l{static construct(t,e,s){const n=new l;return n.x=t.x,n.y=t.y,n.m_next=-1,n.m_prev=-1,n.z=e,n.m=s,n.type=0,n}clone(){const t=new l;return t.x=this.x,t.y=this.y,t.m_next=this.m_next,t.m_prev=this.m_prev,t.z=this.z,t.m=this.m,t.type=this.type,t}asPoint2D(){return new h.P(this.x,this.y)}}class d{constructor(t){this.m_distance=-1,this.m_tolerance=-1,this.m_miterLimit=10,this.m_joins=0,this.m_progressCounter=0,this.m_bUseZ=!1,this.m_bUseM=!1,this.m_srcPts=[],this.m_srcPtCount=0,this.m_offsetPts=[],this.m_offsetPtCount=0,this.m_a1=0,this.m_a2=0,this.m_progressTracker=t}constructOffset(){const t=this.m_inputGeometry.getGeometryType();if(t===o.G.enumLine)return this.offsetLine();if(t===o.G.enumEnvelope)return this.offsetEnvelope();if((0,o.f)(t)){const t=new a.a;return t.addSegment(this.m_inputGeometry,!0),this.m_inputGeometry=t,this.constructOffset()}if(t===o.G.enumPolyline){const t=new a.a;return this.offsetMultiPath(t),t}if(t===o.G.enumPolygon){const t=new a.P;return this.offsetMultiPath(t),t}(0,o.t)("")}offsetLine(){const t=this.m_inputGeometry,e=t.getStartXY(),s=t.getEndXY(),n=new h.P;n.setSub(s,e),n.normalize(),n.leftPerpendicularThis(),n.scale(this.m_distance),e.addThis(n),s.addThis(n);const i=t.clone();return i.setStartXY(e),i.setEndXY(s),i}offsetEnvelope(){const t=this.m_inputGeometry;if(this.m_distance>0&&2!==this.m_joins){const e=new a.P;return e.addEnvelope(t,!1),this.m_inputGeometry=e,this.constructOffset()}const e=t.clone();return e.inflateCoords(this.m_distance,this.m_distance),e}progress(){}static buildPoint(t,e,s,n){n.x=t.x+e*Math.cos(s),n.y=t.y+e*Math.sin(s),n.type=t.type,n.z=t.z,n.m=t.m,n.m_next=-1,n.m_prev=-1}addPoint(t){this.m_offsetPts.push(t.clone()),this.m_offsetPtCount++}addPointEx(t,e){if(0===this.m_offsetPtCount)return void this.addPoint(t);const s=this.m_srcPtCount,n=this.m_srcPts[0===e?s-1:e-1],i=this.m_srcPts[e],r=d.dotSign(n,i,this.m_offsetPts[this.m_offsetPtCount-1],t);if(r>0)this.addPoint(t);else if(r<0)if(d.dotSign(n,i,i,this.m_offsetPts[this.m_offsetPtCount-1])>0){const i=new l;let r;r=0===e?s-2:1===e?s-1:e-2;const o=this.m_srcPts[r],a=Math.atan2(n.y-o.y,n.x-o.x);if(d.buildPoint(n,this.m_distance,a-h.o,i),this.m_offsetPts[this.m_offsetPtCount-1]=i.clone(),1===this.m_joins||2===this.m_joins){i.x=.5*(i.x+n.x),i.y=.5*(i.y+n.y),this.addPoint(i),d.buildPoint(n,this.m_distance,this.m_a1+h.o,i);const t=i.clone();t.x=.5*(t.x+n.x),t.y=.5*(t.y+n.y),t.type|=c,this.addPoint(t),this.addPoint(i)}else d.buildPoint(n,this.m_distance,this.m_a1+h.o,i),i.type|=c,this.addPoint(i);this.addPointEx(t,e)}else{const t=new l;if(d.buildPoint(i,this.m_distance,this.m_a1+h.o,t),this.addPoint(t),1===this.m_joins||2===this.m_joins){t.x=.5*(t.x+i.x),t.y=.5*(t.y+i.y),this.addPoint(t),d.buildPoint(i,this.m_distance,this.m_a2-h.o,t);const e=t.clone();e.x=.5*(e.x+i.x),e.y=.5*(e.y+i.y),e.type|=c,this.addPoint(e),this.addPoint(t)}else d.buildPoint(i,this.m_distance,this.m_a2-h.o,t),t.type|=c,this.addPoint(t)}}buildOffset(){const t=new l,e=this.m_srcPtCount;this.m_offsetPtCount=0;const s=.5*this.m_tolerance;let n=0,i=0;for(let r=0;r<e;r++){const o=this.m_srcPts[r],a=0===r?this.m_srcPts[e-1]:this.m_srcPts[r-1],l=r===e-1?this.m_srcPts[0]:this.m_srcPts[r+1];let x,_,g=0;{const t=a.x-o.x,e=a.y-o.y,s=l.x-o.x,m=l.y-o.y;x=Math.atan2(e,t),_=Math.atan2(m,s),this.m_a1=x,this.m_a2=_,0===r&&(n=x,i=_),g=h.P.orientationRobust(o.asPoint2D(),a.asPoint2D(),l.asPoint2D())}const y=_;if(_<x&&(_+=h.p),!(Math.abs(Math.abs(x-_)-Math.PI)<1e-8))if(g*this.m_distance>0)if(1===this.m_joins||2===this.m_joins){d.buildPoint(o,this.m_distance,x+h.o,t),this.addPoint(t);const e=.001;t.x=o.x+(t.x-o.x)*e,t.y=o.y+(t.y-o.y)*e,this.addPoint(t),d.buildPoint(o,this.m_distance,_-h.o,t);const s=t.clone();s.x=o.x+(s.x-o.x)*e,s.y=o.y+(s.y-o.y)*e,s.type|=c,this.addPoint(s),this.addPoint(t)}else{const e=.5*(_-x),s=0===e?this.m_distance:this.m_distance/Math.abs(Math.sin(e));d.buildPoint(o,s,.5*(x+_),t),this.addPointEx(t,r)}else{if(512&o.type){const e=1-s/Math.abs(this.m_distance);let n=1,i=this.m_distance<0?-Math.PI:Math.PI;if(e>-1&&e<1){let t=2*Math.acos(e);t<u&&(t=u),n=Math.trunc(Math.PI/t+1.5),n>1&&(i/=n)}n<=1&&(n=2,i/=2);let a=x+h.o;d.buildPoint(o,this.m_distance,a,t),0===r&&(t.type|=f),this.addPointEx(t,r);const m=this.m_distance/Math.cos(i/2);for(a+=i/2,d.buildPoint(o,m,a,t),t.type|=f,this.addPoint(t);--n>0;)a+=i,d.buildPoint(o,m,a,t),t.type|=f,this.addPoint(t);d.buildPoint(o,this.m_distance,_-h.o,t),t.type|=f,this.addPoint(t);continue}if(1!==this.m_joins){if(0===this.m_joins){const e=1-s/Math.abs(this.m_distance);let n=1,i=_-h.o-(x+h.o);if(e>-1&&e<1){let t=2*Math.acos(e);t<u&&(t=u),n=Math.trunc(Math.abs(i)/t+1.5),n>1&&(i/=n)}const a=this.m_distance/Math.cos(.5*i);let m=x+h.o+.5*i;for(d.buildPoint(o,a,m,t),this.addPointEx(t,r);--n>0;)m+=i,d.buildPoint(o,a,m,t),this.addPoint(t);continue}if(2===this.m_joins){const e=a.x-o.x,s=a.y-o.y,n=l.x-o.x,i=l.y-o.y;let u=(e*n+s*i)/Math.sqrt(e*e+s*s)/Math.sqrt(n*n+i*i);if(u=Math.max(u,-1),u>1-1e-8){d.buildPoint(o,m*this.m_distance,_-.25*Math.PI,t),this.addPointEx(t,r),d.buildPoint(o,m*this.m_distance,_+.25*Math.PI,t),this.addPoint(t);continue}const c=Math.abs(this.m_distance/Math.sin(.5*Math.acos(u))),f=Math.abs(this.m_miterLimit*this.m_distance);if(c>f){const e=.5*(_-x),s=this.m_distance/Math.abs(Math.sin(e));d.buildPoint(o,s,.5*(x+_),t);const n=h.P.construct(t.x,t.y),i=h.P.construct(o.x,o.y),a=new h.P;a.setSub(n,i);const m=new h.P;m.setScaleAdd(f/a.length(),a,i);const u=Math.sqrt(c*c-this.m_distance*this.m_distance),l=(c-f)*Math.abs(this.m_distance)/u;this.m_distance>0?a.rightPerpendicularThis():a.leftPerpendicularThis(),a.scale(l/a.length());const g=new h.P;g.setAdd(m,a);const y=new h.P;y.setSub(m,a),t.x=g.x,t.y=g.y,this.addPointEx(t,r),t.x=y.x,t.y=y.y,this.addPoint(t);continue}const g=.5*(_-x),y=this.m_distance/Math.abs(Math.sin(g));d.buildPoint(o,y,.5*(x+_),t),this.addPointEx(t,r);continue}{let e;if(_=y,this.m_distance>0?(_>x&&(_-=h.p),e=x-_<h.o):(_<x&&(_+=h.p),e=_-x<h.o),e){const e=this.m_distance*m;let s;s=e<0?x+.25*Math.PI:x+3*Math.PI*.25,d.buildPoint(o,e,s,t),this.addPointEx(t,r),s=e<0?_-.25*Math.PI:_-3*Math.PI*.25,d.buildPoint(o,e,s,t),this.addPoint(t)}else{const e=.5*(_-x),s=this.m_distance/Math.abs(Math.sin(e));_<x&&(_+=h.p),d.buildPoint(o,s,(x+_)/2,t),this.addPointEx(t,r)}}}else d.buildPoint(o,this.m_distance,x+h.o,t),this.addPointEx(t,r),d.buildPoint(o,this.m_distance,_-h.o,t),this.addPoint(t)}}return this.m_a1=n,this.m_a2=i,this.addPointEx(this.m_offsetPts[0],0),this.m_offsetPts[0]=this.m_offsetPts[this.m_offsetPtCount-1].clone(),this.removeBadSegsFast()}removeBadSegsFast(){let t=!1;for(let t=0;t<this.m_offsetPtCount;t++){const e=this.m_offsetPts[t];e.m_next=t+1,e.m_prev=t-1}this.m_offsetPts[0].m_prev=this.m_offsetPtCount-2,this.m_offsetPts[this.m_offsetPtCount-2].m_next=0;let e=0;for(let s=0;s<this.m_offsetPtCount;s++)if(this.m_offsetPts[e].type&c){const s=this.deleteClosedSeg(e);if(-1===s){t=!0;break}e=s}else e=this.m_offsetPts[e].m_next;return!t&&(this.compressOffsetArray(e),!0)}deleteClosedSeg(t){const e=this.m_offsetPtCount-1;let s,n,i=t;for(let r=1;r<=e-2;r++){i=this.m_offsetPts[i].m_next,s=i,n=t;for(let t=1;t<=r;t++){if(n=this.m_offsetPts[n].m_prev,0===(this.m_offsetPts[n].type&c)&&0===(this.m_offsetPts[s].type&c)){const t=this.handleClosedIntersection(n,s);if(-1!==t)return t}s=this.m_offsetPts[s].m_prev}}return-1}handleClosedIntersection(t,e){const s=this.m_offsetPts[this.m_offsetPts[t].m_prev],n=this.m_offsetPts[t],i=this.m_offsetPts[this.m_offsetPts[e].m_prev],r=this.m_offsetPts[e];if(!this.sectGraphicRect(s,n,i,r))return-1;const o={pt:new l,bAtExistingPt:!1};if(((n.x-s.x)*(r.y-i.y)-(n.y-s.y)*(r.x-i.x))*this.m_distance<0&&this.findIntersection(s,n,i,r,o)&&!o.bAtExistingPt){const a=1e-8,h=Math.sqrt((n.x-s.x)*(n.x-s.x)+(n.y-s.y)*(n.y-s.y)),m=(n.x-s.x)/h,u=(n.y-s.y)/h,c=Math.sqrt((r.x-i.x)*(r.x-i.x)+(r.y-i.y)*(r.y-i.y)),f=(r.x-i.x)/c,l=(r.y-i.y)/c;let d=!1;const x=o.pt.clone();x.x+=(m+f)*a,x.y+=(u+l)*a;let _=i,g=o.pt,y=this.m_offsetPts[t].m_prev;for(;g.y>x.y!=_.y>x.y&&x.x<(_.x-g.x)*(x.y-g.y)/(_.y-g.y)+g.x&&(d=!d),_=g,y=this.m_offsetPts[y].m_next,y!==e;)g=this.m_offsetPts[y];if(d)return-1;const p=this.m_offsetPts[t].m_prev;return o.pt.type=n.type,o.pt.m_next=e,o.pt.m_prev=p,this.m_offsetPts[t]=o.pt,this.m_offsetPts[e].m_prev=t,e}return-1}sectGraphicRect(t,e,s,n){return Math.max(t.x,e.x)>=Math.min(s.x,n.x)&&Math.max(s.x,n.x)>=Math.min(t.x,e.x)&&Math.max(t.y,e.y)>=Math.min(s.y,n.y)&&Math.max(s.y,n.y)>=Math.min(t.y,e.y)}findIntersection(t,e,s,n,i){let r,o,a,h;return i.bAtExistingPt=!1,r=(e.y-t.y)*(n.x-s.x)-(e.x-t.x)*(n.y-s.y),o=(s.y-t.y)*(e.x-t.x)-(s.x-t.x)*(e.y-t.y),a=0===r?2:o/r,a>=0&&a<=1&&(h=a,r=(n.y-s.y)*(e.x-t.x)-(n.x-s.x)*(e.y-t.y),o=(t.y-s.y)*(n.x-s.x)-(t.x-s.x)*(n.y-s.y),a=0===r?2:o/r,a>=0&&a<=1)&&(i.pt.x=t.x+a*(e.x-t.x),i.pt.y=t.y+a*(e.y-t.y),this.m_bUseZ&&(i.pt.z=s.z+h*(n.z-s.z)),this.m_bUseM&&(i.pt.m=s.m+h*(n.m-s.m)),0!==h&&1!==h||0!==a&&1!==a||(i.bAtExistingPt=!0),!((0===h||1===h)&&a>0&&a<1||(0===a||1===a)&&h>0&&h<1))}compressOffsetArray(t){for(;this.m_offsetPts[t].m_prev<t;)t=this.m_offsetPts[t].m_prev;let e=0,s=t;do{const t=this.m_offsetPts[s].clone();this.m_offsetPts[e]=t,s=t.m_next,e++}while(s!==t);this.m_offsetPts[e]=this.m_offsetPts[0].clone(),this.m_offsetPtCount=e+1}addPart(t,e){if(!(e<2))for(let s=0;s<e;s++){const e=this.m_offsetPts[t+s];if(s?this.m_bUseZ?this.m_resultPath.lineTo3DCoords(e.x,e.y,e.z):this.m_resultPath.lineToCoords(e.x,e.y):this.m_bUseZ?this.m_resultPath.startPath3DCoords(e.x,e.y,e.z):this.m_resultPath.startPathCoords(e.x,e.y),this.m_bUseM){const t=this.m_resultPath.getPointCount()-1;this.m_resultPath.setAttribute(2,t,0,e.m)}}}offsetMultiPath(t){const e=(0,a.d)(this.m_inputGeometry,0,this.m_tolerance,0,this.m_progressTracker,12e3),s=e.querySegmentIterator();s.resetToFirstPath();let n=-1;for(;s.nextPath();)n++,this.offsetPath(e,n,t)}offsetPath(t,e,s){let n=t.getPathStart(e),i=t.getPathEnd(e);if(this.m_resultPath=s,t.isClosedPath(e)){const e=t.getXY(n);for(;i>n&&t.getXY(i-1).equals(e);)i--;if(i-n>=2){this.m_srcPtCount=i-n,this.m_srcPts.length=this.m_srcPtCount;for(let e=n;e<i;e++)this.progress(),this.m_srcPts[e-n]=l.construct(t.getXY(e),this.m_bUseZ?t.getAttributeAsDbl(1,e,0):0,this.m_bUseM?t.getAttributeAsDbl(2,e,0):0);this.buildOffset()&&this.addPart(0,this.m_offsetPtCount-1)}}else{const e=t.getXY(n);for(;n<i-1&&t.getXY(n+1).equals(e);)n++;const s=t.getXY(i-1);for(;n<i-1&&t.getXY(i-2).equals(s);)i--;if(i-n>=2){this.m_srcPtCount=2*(i-n)-2,this.m_srcPts.length=this.m_srcPtCount;let s=l.construct(e,this.m_bUseZ?t.getAttributeAsDbl(1,n,0):0,this.m_bUseM?t.getAttributeAsDbl(2,n,0):0);s.type|=1536,this.m_srcPts[0]=s;let r=1,o=this.m_srcPtCount-1;for(let e=n+1;e<i-1;e++,r++,o--)this.progress(),s=l.construct(t.getXY(e),this.m_bUseZ?t.getAttributeAsDbl(1,e,0):0,this.m_bUseM?t.getAttributeAsDbl(2,e,0):0),this.m_srcPts[r]=s.clone(),s.type|=f,this.m_srcPts[o]=s.clone();if(s=l.construct(t.getXY(i-1),this.m_bUseZ?t.getAttributeAsDbl(1,i-1,0):0,this.m_bUseM?t.getAttributeAsDbl(2,i-1,0):0),s.type|=512,this.m_srcPts[r]=s.clone(),this.buildOffset())if(this.m_offsetPts.length>=2){let t=-1,e=-1,s=0!==(this.m_offsetPts[this.m_offsetPtCount-1].type&f);s||(t=0);for(let n=1;n<this.m_offsetPtCount;n++){this.progress();const i=0!==(this.m_offsetPts[n].type&f);i?s||(e=n-1,e-t+1>1&&this.addPart(t,e-t+1)):s&&(t=n-1),s=i}s||(e=this.m_offsetPtCount-1,e-t+1>1&&this.addPart(t,e-t+1))}else{const t=0,e=this.m_offsetPtCount-1;e-t>=1&&this.addPart(t,e-t+1)}}}this.m_srcPts.length=0,this.m_srcPtCount=0,this.m_offsetPts.length=0,this.m_offsetPtCount=0}static dotSign(t,e,s,n){const i=e.x-t.x,r=e.y-t.y,o=n.x-s.x,a=n.y-s.y,m=(0,h.t)(i,r,o,a);return(0,h.e)(m)}}class x extends i.G{constructor(t,e,s,n,i,r,o){super(),this.m_progressTracker=o,this.m_index=-1,this.m_inputGeoms=t,this.m_spatialReference=e,this.m_distance=s,this.m_joins=n,this.m_miterLimit=i,this.m_flattenError=r}tock(){return!0}getRank(){return 1}next(){if(!this.m_inputGeoms)return null;let t;for(;t=this.m_inputGeoms.next();)return this.m_index=this.m_inputGeoms.getGeometryID(),this.offset(t);return null}getGeometryID(){return this.m_index}offset(t){let e;return(0,o.c)(t),e=this.m_flattenError<=0?(0,r.e)(this.m_spatialReference,t,!0).total():this.m_flattenError,function(t,e,s,n,i,r){if(null===t&&(0,o.a)(""),t.getDimension()<1&&(0,o.a)(""),i>0||(0,o.a)(""),(0,o.c)(t),0===e||t.isEmpty())return t;const a=new d(r);return a.m_bUseZ=t.hasAttribute(1),a.m_bUseM=t.hasAttribute(2),a.m_inputGeometry=t,a.m_distance=e,a.m_tolerance=i,a.m_joins=s,a.m_miterLimit=n>1?n:1,a.m_progressCounter=0,a.constructOffset()}(t,this.m_distance,this.m_joins,this.m_miterLimit,e,this.m_progressTracker)}}const _=new class{getOperatorType(){return 10108}accelerateGeometry(t,e,s){return!1}canAccelerateGeometry(t){return!1}supportsCurves(){return!0}executeMany(t,e,s,n,i,r,o){return new x(t,e,s,n,i,r,o)}execute(t,e,s,n,i,r,o){return new x(null,e,s,n,i,r,o).offset(t)}};function g(t,e,s,n,i,r){return _.execute(t,e,s,n,i,r,null)}function y(t,e,s,i,r,o){const a=_.executeMany(new n.S(t),e,s,i,r,o,null);return Array.from(a)}},15605(t,e,s){s.r(e),s.d(e,{execute:()=>h,executeMany:()=>m});var n=s(4576),i=s(86211),r=s(66070),o=s(83299);const a={round:0,bevel:1,miter:2,square:3};function h(t,e,s={}){const{miterLimit:n=10,flattenError:h=0,joins:m="round",unit:u}=s,c=(0,o.getSpatialReference)(t);u&&c&&(e=(0,i.UW)(e,u,c));const f=(0,o.fromGeometry)(t),l=f.getSpatialReference();return(0,o.toGeometry)((0,r.g7)(f.getGeometry(),l,e,a[m],n,h),l)}function m(t,e,s={}){const{miterLimit:h=10,flattenError:m=0,joins:u="round",unit:c}=s,f=(0,o.getSpatialReference)(t);c&&f&&(e=(0,i.UW)(e,c,f));const[l,d]=(0,o.fromGeometries)(t);return(0,r.zo)(l,d,e,a[u],h,m).map(t=>(0,o.toGeometry)(t,d)).filter(n.Ru)}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2288],{92288(e,n,t){t.r(n),t.d(n,{registerFunctions:()=>q});var r=t(92602),o=t(47609),i=t(66395),a=t(85935),s=t(78878),l=t(80672),u=t(91075),c=t(91218),f=t(16930),p=t(28735),d=t(20655),h=t(80812),g=t(11254),m=t(56507),y=t(60408),w=t(2272),v=t(92300),R=t(5482),M=t(25482),A=t(91429),S=t(21325);let j=class extends M.o{constructor(e){super(e),this.geometries=[],this.outSpatialReference=null,this.transformation=null,this.transformForward=null}toJSON(){const e=this.geometries.map(e=>e.toJSON()),n=this.geometries[0],t={};return t.outSR=(0,S.YX)(this.outSpatialReference),t.inSR=(0,S.YX)(n.spatialReference),t.geometries=JSON.stringify({geometryType:(0,y.$B)(n),geometries:e}),this.transformation&&(t.transformation=this.transformation.wkid||JSON.stringify(this.transformation)),null!=this.transformForward&&(t.transformForward=this.transformForward),t}};(0,R.Cg)([(0,A.MZ)()],j.prototype,"geometries",void 0),(0,R.Cg)([(0,A.MZ)({type:f.A,json:{read:{source:"outSR"}}})],j.prototype,"outSpatialReference",void 0),(0,R.Cg)([(0,A.MZ)()],j.prototype,"transformation",void 0),(0,R.Cg)([(0,A.MZ)()],j.prototype,"transformForward",void 0),j=(0,R.Cg)([(0,A.$K)("esri.rest.support.ProjectParameters")],j);const x=(0,m.dp)(j);var C=t(25927),I=t(42538),P=t(40662),k=t(42095),O=t(23150),G=t(54218);let b=null;async function Z(e,n){const r=new h.default({portal:e,id:n});return await r.load(),null===b&&(b=await Promise.all([t.e(2869),t.e(4050),t.e(3910),t.e(217),t.e(2555),t.e(8340)]).then(t.bind(t,2555))),await b.fetchKnowledgeGraph(r.url)}function $(e,n,t,r,o){if(null===e)return null;if((0,G.Kg)(e)||(0,G.Et)(e))return e;if((0,s.e)(e))return e.toJSDate();if((0,s.e)(e))return e.toJSDate();if((0,s.f)(e))return e.toStorageFormat();if((0,s.g)(e))return e.toStorageString();if((0,s.n)(e)){const i={};for(const a of e.keys())i[a]=$(e.field(a),n,t,r,o),i[a]instanceof u.A&&o.push({container:i,indexer:a});return i}if((0,G.cy)(e)){const i=e.map(e=>$(e,n,t,r,o));for(let e=0;e<i.length;e++)i[e]instanceof u.A&&o.push({container:i,indexer:e});return i}return(0,s.h)(e)?e.spatialReference.isWGS84?e:e.spatialReference.isWebMercator&&n?(0,p.ci)(e):e:void 0}function T(e,n){if(!e)return null;const t={};for(const r in e)t[r]=K(e[r],n);return t}function K(e,n){return null===e?null:(0,G.cy)(e)?e.map(e=>K(e,n)):e instanceof C.A?{graphTypeName:e.typeName,id:e.id,graphType:"entity",properties:T(e.properties,n)}:e instanceof P.A?{graphType:"object",properties:T(e.properties,n)}:e instanceof O.A?{graphTypeName:e.typeName,id:e.id,graphType:"relationship",originId:e.originId??null,destinationId:e.destinationId??null,properties:T(e.properties,n)}:e instanceof k.A?{graphType:"path",path:e.path?e.path.map(e=>K(e,n)):null}:(0,s.h)(e)?function(e,n){if(!e)return e;if(e.spatialReference.isWGS84&&n.spatialReference.isWebMercator)return(0,p.Gh)(e);if(e.spatialReference.equals(n.spatialReference))return e;throw new a.D$(n,"WrongSpatialReference",null)}(e,n):(0,G.Kg)(e)||(0,G.Et)(e)||(0,G.$P)(e)?e:null}function q(e){"async"===e.mode&&(e.functions.knowledgegraphbyportalitem=function(n,t){return e.standardFunctionAsync(n,t,(e,r,i)=>{if((0,s.B)(i,2,2,n,t),null===i[0])throw new a.D$(n,"PortalRequired",t);if(i[0]instanceof o.A){const e=(0,s.s)(i[1]);let t;return t=n.services?.portal?n.services.portal:d.A.getDefault(),Z((0,l.R)(i[0],t),e)}if(!1===(0,G.Kg)(i[0]))throw new a.D$(n,"InvalidParameter",t);const u=(0,s.s)(i[0]);return Z(n.services?.portal??d.A.getDefault(),u)})},e.signatures.push({name:"knowledgegraphbyportalitem",min:2,max:2}),e.functions.querygraph=function(n,o){return e.standardFunctionAsync(n,o,async(e,l,u)=>{(0,s.B)(u,2,4,n,o);const p=u[0];if(!(0,s.o)(p))throw new a.D$(n,"InvalidParameter",o);const d=u[1];if(!(0,G.Kg)(d))throw new a.D$(n,"InvalidParameter",o);null===b&&(b=await Promise.all([t.e(2869),t.e(4050),t.e(3910),t.e(217),t.e(2555),t.e(8340)]).then(t.bind(t,2555)));let h=null;const m=(0,s.J)(u[2],null);if(!(m instanceof i.A||null===m))throw new a.D$(n,"InvalidParameter",o);if(m){let e=[];h=$(m,!0,!1,n,e),e=e.filter(e=>!e.container[e.indexer].spatialReference.isWGS84),e.length>0&&await async function(e){const n=r.A.geometryServiceUrl??"";if(!n){(0,c.isLoaded)()||await(0,c.load)();for(const n of e)n.container[n.indexer]=(0,c.project)(n.container[n.indexer],f.A.WGS84);return}const t=e.map(e=>e.container[e.indexer]),o=new j({geometries:t,outSpatialReference:f.A.WGS84}),i=await async function(e,n){n=x(n);const t=(0,w.Dl)(e),r={...t.query,f:"json",...n.toJSON()},o=n.outSpatialReference,i=(0,y.$B)(n.geometries[0]),a=(0,w.jV)(r,void 0);return(0,g.A)(t.path+"/project",a).then(({data:{geometries:e}})=>(0,v.V)(e,i,o))}(n,o);for(let n=0;n<i.length;n++){const t=e[n];t.container[t.indexer]=i[n]}}(e)}const R=(0,s.J)(u[3],!1),M=new I.A({openCypherQuery:d,bindParameters:h,provenanceBehavior:R?"include":"exclude"});(p?.serviceDefinition?.currentVersion??11.3)>11.2&&(M.outputSpatialReference=n.spatialReference);const A=(await b.executeQueryStreaming(p,M)).resultRowsStream.getReader(),S=[];try{for(;;){const{done:e,value:t}=await A.read();if(e)break;if((0,G.cy)(t))for(const e of t)S.push(K(e,n));else{const e=[];for(const r of t)e.push(K(t[r],n));S.push(e)}}}catch(e){throw e}return i.A.convertJsonToArcade(S,(0,s.K)(n),!1,!0)})},e.signatures.push({name:"querygraph",min:2,max:4}))}},80672(e,n,t){t.d(n,{R:()=>o});var r=t(20655);function o(e,n){return null===e?n:new r.A({url:e.field("url")})}},69540(e,n,t){t.d(n,{OU:()=>c,Pw:()=>f});var r=t(5482),o=t(69622),i=(t(44208),t(4718)),a=(t(53966),t(97768)),s=t(88620),l=t(64108);const u=Symbol("ClonableMixin"),c=e=>{var n;const t=e;let o=class extends t{constructor(){super(...arguments),this[n]=!0}static{n=u}clone(e){const n=(0,s.oY)(this);(0,a.Lw)(n,"unable to clone instance of non-accessor class");const t=n.metadata,r=n.store,o={},l=new Map;for(const n in t){const a=t[n],s=r?.originOf(n),u=a.clonable;if(a.readOnly||!1===u||7!==s&&0!==s&&5!==s&&4!==s)continue;const c=this[n];let f=null;if("function"==typeof u)f=u(c,e);else if("reference"===u)f=c;else if(f=(0,i.TU)(c,e),null!=c&&null==f)continue;0===s?l.set(n,f):o[n]=f}const u=new(0,Object.getPrototypeOf(this).constructor)(o);if(l.size){const e=(0,s.oY)(u)?.store;if(e)for(const[n,t]of l)e.set(n,t,0)}return u}};return o=(0,r.Cg)([(0,l.$)("esri.core.Clonable")],o),o},f=c(o.A)},159(e,n,t){t.d(n,{A:()=>u});var r,o=t(5482),i=t(69540),a=t(25482),s=t(91429),l=t(99157);let u=r=class extends((0,i.OU)(a.o)){constructor(e){super(e),this.steps=[]}getInverse(){const e=new r;for(let n=this.steps.length-1;n>=0;n--){const t=this.steps[n];e.steps.push(t.getInverse())}return e}};(0,o.Cg)([(0,s.MZ)({type:[l.A],nonNullable:!0,json:{name:"geoTransforms"}})],u.prototype,"steps",void 0),u=r=(0,o.Cg)([(0,s.$K)("esri.geometry.operators.support.GeographicTransformation")],u)},99157(e,n,t){t.d(n,{A:()=>l});var r,o=t(5482),i=t(69540),a=t(25482),s=t(91429);let l=r=class extends((0,i.OU)(a.o)){constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new r({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,o.Cg)([(0,s.MZ)({json:{name:"transformForward",read:e=>!e,write:(e,n,t)=>{n[t]=!e}}})],l.prototype,"isInverse",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],l.prototype,"wkt",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],l.prototype,"wkid",void 0),l=r=(0,o.Cg)([(0,s.$K)("esri.geometry.operators.support.GeographicTransformationStep")],l)},9762(e,n,t){t.r(n),t.d(n,{projectBuffer:()=>o});var r=t(49208);function o(e,n,t,o,i,a,s=Math.floor(e.length/3)){const l=(0,r.jd)(n,i);if(null==l)return!1;if(l===r.pO){if(e===o&&t===a)return!0;const n=t+3*s;for(let r=t,i=a;r<n;r++,i++)o[i]=e[r]??0;return!0}const u=t+3*s;for(let n=t,r=a;n<u;n+=3,r+=3)l(e,n,o,r);return!0}},49208(e,n,t){t.d(n,{Tp:()=>f,jd:()=>c,pO:()=>d,w5:()=>u});var r=t(34727),o=t(86211),i=t(73941),a=t(79258),s=t(34403),l=t(21325);const u={2:{5:d,7:null,9:null,10:d,1:M,6:null,8:null,0:null,3:g,11:m,2:d,4:C},5:{5:d,7:null,9:null,10:d,1:M,6:null,8:null,0:null,3:g,11:m,2:d,4:C},7:{5:null,7:d,9:null,10:d,1:null,6:R,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:d,10:d,1:null,6:null,8:v,0:null,3:null,11:null,2:null,4:null},3:{5:h,7:null,9:null,10:h,1:function(e,n,t,r){const o=e[n]/b,i=G-2*Math.atan(Math.exp(-e[n+1]/b)),a=b+(e[n+2]??0),s=Math.cos(i)*a;t[r]=Math.cos(o)*s,t[r+1]=Math.sin(o)*s,t[r+2]=Math.sin(i)*a},6:null,8:null,0:null,3:d,11:function(e,n,t,r){h(e,n,t,r),m(t,r,t,r)},2:h,4:function(e,n,t,r){h(e,n,t,r),C(t,r,t,r)}},4:{5:I,7:null,9:null,10:I,1:function(e,n,t,r){I(e,n,t,r),M(t,r,t,r)},6:null,8:null,0:null,3:function(e,n,t,r){I(e,n,t,r),g(t,r,t,r)},11:function(e,n,t,r){I(e,n,t,r),m(t,r,t,r)},2:I,4:d},1:{5:x,7:null,9:null,10:x,1:d,6:null,8:null,0:null,3:function(e,n,t,r){x(e,n,t,r),g(t,r,t,r)},11:function(e,n,t,r){x(e,n,t,r),m(t,r,t,r)},2:x,4:function(e,n,t,r){x(e,n,t,r),C(t,r,t,r)}},6:{5:null,7:j,9:null,10:j,1:null,6:d,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:S,10:S,1:null,6:null,8:d,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:d,3:null,11:null,2:null,4:null},10:{5:d,7:d,9:d,10:d,1:M,6:R,8:v,0:null,3:g,11:m,2:d,4:C},11:{5:y,7:null,9:null,10:y,1:function(e,n,t,r){y(e,n,t,r),M(t,r,t,r)},6:null,8:null,0:null,3:function(e,n,t,r){y(e,n,t,r),g(t,r,t,r)},11:d,2:y,4:function(e,n,t,r){y(e,n,t,r),C(t,r,t,r)}}};function c(e,n){return f(e,n)?.projector}function f(e,n){if(null==e||null==n)return null;if(P.source.spatialReference===e&&P.dest.spatialReference===n)return P;const t=p(e,P.source),r=p(n,P.dest);return 0===t&&0===r?(0,l.aI)(e,n)?P.projector=d:P.projector=null:P.projector=u[t][r],P}function p(e,n){return e?n.spatialReference===e?n.spatialReferenceId:(n.spatialReference=e,"metersPerUnit"in n&&(n.metersPerUnit=(0,o.GA)(e,1)),(0,i.jA)(e)?n.spatialReferenceId=1:(0,l.oT)(e)?n.spatialReferenceId=2:(0,l.K8)(e)?n.spatialReferenceId=3:(0,l.r1)(e)?n.spatialReferenceId=11:e.wkt===i.Ro.wkt?n.spatialReferenceId=4:4490===e.wkid?n.spatialReferenceId=5:e.wkt===i.FY.wkt?n.spatialReferenceId=6:e.wkt===i.LJ.wkt?n.spatialReferenceId=8:(0,i.q8)(e)?n.spatialReferenceId=7:(0,i.KQ)(e)?n.spatialReferenceId=9:n.spatialReferenceId=0):0}function d(e,n,t,r){e!==t&&(t[r++]=e[n++],t[r++]=e[n++],t[r]=e[n]??0)}function h(e,n,t,r){t[r]=O*(e[n]/b),t[r+1]=O*(G-2*Math.atan(Math.exp(-e[n+1]/b))),t[r+2]=e[n+2]??0}function g(e,n,t,o){!function(e,n,t,o,i){const a=.4999999*Math.PI,s=(0,r.qE)(k*e[n+1],-a,a),l=Math.sin(s);t[o++]=k*e[n]*i.radius,t[o++]=i.halfSemiMajorAxis*Math.log((1+l)/(1-l)),t[o]=e[n+2]??0}(e,n,t,o,a.$O)}function m(e,n,t,r){t[r]=e[n]*Z,t[r+1]=e[n+1]*Z,t[r+2]=e[n+2]??0}function y(e,n,t,r){t[r]=e[n]*$,t[r+1]=e[n+1]*$,t[r+2]=e[n+2]??0}function w(e,n,t,r,o){const i=o+(e[n+2]??0),a=k*e[n],s=k*e[n+1],l=Math.cos(s)*i;t[r]=Math.cos(a)*l,t[r+1]=Math.sin(a)*l,t[r+2]=Math.sin(s)*i}function v(e,n,t,r){w(e,n,t,r,a.Sw.radius)}function R(e,n,t,r){w(e,n,t,r,a.sH.radius)}function M(e,n,t,r){w(e,n,t,r,a.$O.radius)}function A(e,n,t,o,i){const a=e[n],s=e[n+1],l=e[n+2]??0,u=Math.sqrt(a*a+s*s+l*l),c=(0,r.YN)(l/(0===u?1:u)),f=Math.atan2(s,a);t[o++]=O*f,t[o++]=O*c,t[o]=u-i}function S(e,n,t,r){A(e,n,t,r,a.Sw.radius)}function j(e,n,t,r){A(e,n,t,r,a.sH.radius)}function x(e,n,t,r){A(e,n,t,r,a.$O.radius)}function C(e,n,t,r){!function(e,n,t,r,o){const i=k*e[n],a=k*e[n+1],s=e[n+2]??0,l=Math.sin(a),u=Math.cos(a),c=o.radius/Math.sqrt(1-o.eccentricitySquared*l*l);t[r++]=(c+s)*u*Math.cos(i),t[r++]=(c+s)*u*Math.sin(i),t[r++]=(c*(1-o.eccentricitySquared)+s)*l}(e,n,t,r,a.$O)}function I(e,n,t,r){const o=s.TP,i=e[n],l=e[n+1],u=e[n+2]??0;let c,f,p,d,h,g,m,y,w,v,R,M,A,S,j,x,C,I,P,k,G;c=Math.abs(u),f=i*i+l*l,p=Math.sqrt(f),d=f+u*u,h=Math.sqrt(d),k=Math.atan2(l,i),g=u*u/d,m=f/d,S=o.a2/h,j=o.a3-o.a4/h,m>.3?(y=c/h*(1+m*(o.a1+S+g*j)/h),P=Math.asin(y),v=y*y,w=Math.sqrt(1-v)):(w=p/h*(1-g*(o.a5-S-m*j)/h),P=Math.acos(w),v=1-w*w,y=Math.sqrt(v)),R=1-a.$O.eccentricitySquared*v,M=a.$O.radius/Math.sqrt(R),A=o.a6*M,S=p-M*w,j=c-A*y,C=w*S+y*j,x=w*j-y*S,I=x/(A/R+C),P+=I,G=C+x*I/2,u<0&&(P=-P),t[r++]=O*k,t[r++]=O*P,t[r]=G}const P={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:d},k=(0,r.kU)(1),O=(0,r.KJ)(1),G=.5*Math.PI,b=a.$O.radius,Z=b*Math.PI/180,$=180/(b*Math.PI)},91218(e,n,t){t.r(n),t.d(n,{canProjectWithoutEngine:()=>U,initializeProjection:()=>Q,isEqualBaseGCS:()=>E,isLoaded:()=>b,isLoadedOrLoad:()=>Z,isLoadedOrLoadFor:()=>$,load:()=>K,project:()=>q,projectAsync:()=>W,projectExtent:()=>oe,projectMany:()=>D,projectMultipoint:()=>X,projectOrLoad:()=>z,projectOrLoadMany:()=>L,projectPoint:()=>H,projectPolygon:()=>te,projectPolyline:()=>ee,projectWithoutEngine:()=>Y,requiresLoad:()=>T,test:()=>J,tryProject:()=>N,unload:()=>F});var r=t(49186),o=t(17676),i=t(62788),a=t(95488),s=t(51850),l=t(21276),u=t(73941),c=t(5443),f=t(91075),p=t(48526),d=t(86738),h=t(39829),g=t(82799),m=t(16930),y=t(98764),w=t(159),v=t(9762),R=t(49208);function M(e,n,t,r,o,i){return A[0]=e,A[1]=n,A[2]=t,(0,v.projectBuffer)(A,r,0,o,i,0)}const A=(0,s.vt)();var S=t(60408),j=t(21325),x=t(52006);let C=null,I=null,P=null,k=null,O={};const G=new a.I;function b(){return!!(I?.isLoaded()&&P?.isLoaded()&&k?.isLoaded())}function Z(){return!!b()||((0,i.gc)(G),K(),!1)}function $(e,n){return!e||!n||U(e,n)||Z()}function T(e,n){return!U(e,n)&&!b()}async function K(e){null==C&&(C=Promise.all([t.e(3276).then(t.bind(t,83276)).then(e=>(I=e,I.load())),t.e(8377).then(t.bind(t,8377)).then(e=>(P=e,P.load())),t.e(2158).then(t.bind(t,12158)).then(e=>(k=e,k.load()))])),await C,(0,o.Te)(e),G.notify()}function q(e,n,t){return Array.isArray(e)?0===e.length?[]:((0,l.H)(e),D(e,e[0].spatialReference,n,t)):((0,l.f)(e),D([e],e.spatialReference,n,t)[0])}function D(e,n,t,r){if(null==n||null==t)return e;if(U(n,t,r))return e.map(e=>Y(e,n,t));if(null==r?.geographicTransformation&&(0,u.jA)(n))return D(e.map(e=>Y(e,n,m.A.WGS84)),m.A.WGS84,t,{zConversionDisabled:r?.zConversionDisabled});if(null==r?.geographicTransformation&&(0,u.jA)(t))return D(e,n,m.A.WGS84).map(e=>Y(e,m.A.WGS84,t));if(!b())throw new B;if(!r?.geographicTransformation)if(r?.extendedParams)r={...r,geographicTransformation:k.getTransformation(n,t,r.areaOfInterestExtent)||new w.A};else if(!r?.areaOfInterestExtent){const e=function(e,n){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",n.wkid?.toString()??"-1",n.wkt?.toString()??"",n.wkt2?.toString()??""].join()}(n,t);let o=O[e];o||(o=k.getTransformation(n,t)||new w.A,O[e]=o),r={geographicTransformation:o,zConversionDisabled:r?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=n),e[0]instanceof f.A?I.executeMany(e,t,r):P.executeMany(e,t,r)}function N(e,n,t){try{return q(e,n,t)}catch(e){return null}}function z(e,n){const t=L([e],n);return null!=t.pending?{pending:t.pending,geometry:null}:null!=t.geometries?{pending:null,geometry:t.geometries[0]}:{pending:null,geometry:null}}function L(e,n,t){if(!b())for(const t of e)if(null!=t&&!(0,j.aI)(t.spatialReference,n)&&(0,j.fn)(t.spatialReference)&&(0,j.fn)(n)&&!U(t.spatialReference,n))return(0,i.gc)(G),{pending:K(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,j.aI)(e.spatialReference,n)?e:(0,j.fn)(e.spatialReference)&&(0,j.fn)(n)?q(e,n,t):null)}}class B extends r.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function F(){C=null,I=null,P=null,k=null,O={}}const J={get loadPromise(){return C}};async function W(e,n,t){if((0,o.Te)(t),!e)return e;const r=L(Array.isArray(e)?e:[e],n,t);if(r.pending)return await r.pending,(0,o.Te)(t),W(e,n,t);const i=r.geometries??[];return Array.isArray(e)?i:i[0]}function U(e,n,t){return!(t?.areaOfInterestExtent||t?.extendedParams||t?.geographicTransformation)&&(!!(0,j.aI)(e,n)||(0,j.fn)(e)&&(0,j.fn)(n)&&!!(0,R.jd)(e,n))}function E(e,n){if((0,j.aI)(e,n))return!0;if(!(0,j.fn)(e)||!(0,j.fn)(n))return!1;const t=(0,j.oT)(e)||(0,j.K8)(e)||(0,j.x1)(e),r=(0,j.oT)(n)||(0,j.K8)(n)||(0,j.x1)(n);return t&&r}async function Q(e,n,t,r){if(b())return(0,o.NO)(r);if(Array.isArray(e)){for(const{source:n,dest:t,options:o}of e)if(n&&t&&!U(n,t,o))return K(r)}else if(e&&n&&!U(e,n,t))return K(r);return(0,o.NO)(r)}function Y(e,n,t){return e?(0,S.fT)(e)?V(e,n,new d.A,t,0):(0,S.ZC)(e)?ie(e,n,new c.A,t,0):(0,S.Bi)(e)?re(e,n,new h.A,t,0):(0,S.Rg)(e)?ne(e,n,new g.A,t,0):(0,S.U9)(e)?_(e,n,new p.A,t,0):null:null}function H(e,n,t=n.spatialReference,r=0){return null!=t&&null!=e.spatialReference&&null!=V(e,e.spatialReference,n,t,r)}function V(e,n,t,r,o){ue[0]=e.x,ue[1]=e.y;const i=e.z;return ue[2]=void 0!==i?i:o,(0,v.projectBuffer)(ue,n,0,ue,r,0)?(t.x=ue[0],t.y=ue[1],t.spatialReference=r,void 0!==i||(0,u.xP)(r)?(t.z=ue[2],t.hasZ=!0):(t.z=void 0,t.hasZ=!1),void 0===e.m?(t.m=void 0,t.hasM=!1):(t.m=e.m,t.hasM=!0),t):null}function X(e,n,t=n.spatialReference,r=0){return null!=e.spatialReference&&null!=t&&null!=_(e,e.spatialReference,n,t,r)}function _(e,n,t,r,o){const{points:i,hasZ:a,hasM:s}=e,l=[],u=i.length,c=[];for(const e of i)c.push(e[0],e[1],a?e[2]:o);if(!(0,v.projectBuffer)(c,n,0,c,r,0,u))return null;const f=le(a,r);for(let e=0;e<u;++e){const n=3*e,t=c[n],r=c[n+1];f&&s?l.push([t,r,c[n+2],i[e][3]]):f?l.push([t,r,c[n+2]]):s?l.push([t,r,i[e][2]]):l.push([t,r])}return t.points=l,t.spatialReference=r,t.hasZ=a,t.hasM=s,t}function ee(e,n,t=n.spatialReference,r=0){return null!=e.spatialReference&&null!=t&&null!=ne(e,e.spatialReference,n,t,r)}function ne(e,n,t,r,o){const{curvePaths:i,paths:a,hasZ:s,hasM:l}=e;if(!(i?se(i,s??!1,l??!1,n,t.curvePaths=[],r,o):ae(a,s??!1,l??!1,n,t.paths,r,o)))return null;const u=le(s,r);return t.spatialReference=r,t.hasZ=u,t.hasM=l,t}function te(e,n,t=n.spatialReference,r=0){return null!=e.spatialReference&&null!=t&&null!=re(e,e.spatialReference,n,t,r)}function re(e,n,t,r,o){const{curveRings:i,rings:a,hasZ:s,hasM:l}=e;return(i?se(i,s??!1,l??!1,n,t.curveRings=[],r,o):ae(a,s??!1,l??!1,n,t.rings,r,o))?(t.spatialReference=r,t.hasZ=le(s,r),t.hasM=l,t):null}function oe(e,n,t=n.spatialReference,r=0){return null!=e.spatialReference&&null!=t&&null!=ie(e,e.spatialReference,n,t,r)}function ie(e,n,t,r,o){const{xmin:i,ymin:a,xmax:s,ymax:l,hasZ:u,hasM:c}=e;if(!M(i,a,u?e.zmin:o,n,ue,r))return null;const f=le(u,r);return t.xmin=ue[0],t.ymin=ue[1],f&&(t.zmin=ue[2]),M(s,l,u?e.zmax:o,n,ue,r)?(t.xmax=ue[0],t.ymax=ue[1],f&&(t.zmax=ue[2]),c&&(t.mmin=e.mmin,t.mmax=e.mmax),t.spatialReference=r,t):null}function ae(e,n,t,r,o,i,a=0){const s=new Array;for(const t of e)for(const e of t)s.push(e[0],e[1],n?e[2]:a);if(!(0,v.projectBuffer)(s,r,0,s,i,0))return!1;let l=0;o.length=0;const u=n?3:2,c=le(n,i);for(const n of e){const e=new Array;for(const r of n){const n=s.slice(l,l+=3);c||n.pop(),t&&n.push(r[u]),e.push(n)}o.push(e)}return!0}function se(e,n,t,r,o,i,a=0){const s=new Array;for(const t of e)for(const e of t){if((0,x.FG)(e))return!1;if((0,x.aO)(e)){const[t,r]=e.c;s.push(t[0],t[1],n?t[2]:a,r[0],r[1],a);continue}if((0,x.n1)(e)){const[t,r,o]=e.b;s.push(t[0],t[1],n?t[2]:a,r[0],r[1],a,o[0],o[1],a);continue}const t=e;s.push(t[0],t[1],n?t[2]:a)}if(!(0,v.projectBuffer)(s,r,0,s,i,0))return!1;let l=0;o.length=0;const u=n?3:2,c=le(n,i);for(const n of e){const e=new Array;for(const r of n){const n=s.slice(l,l+=3);if(c||n.pop(),t&&n.push((0,x.yP)(r)[u]),(0,x.FG)(r))return!1;if((0,x.aO)(r)){const t=s[l++],r=s[l++];++l,e.push({c:[n,[t,r]]});continue}if((0,x.n1)(r)){const t=s[l++],r=s[l++];++l;const o=s[l++],i=s[l++];++l,e.push({b:[n,[t,r],[o,i]]});continue}e.push(n)}o.push(e)}return!0}function le(e,n){return e||(0,u.xP)(n)||(0,j.aI)(n,y.Y0)}const ue=(0,s.vt)()},98764(e,n,t){t.d(n,{GD:()=>a,Y0:()=>u,lO:()=>c});var r=t(73941),o=t(16930),i=t(21325);const a=new o.A(r.fv),s=new o.A(r.FY),l=new o.A(r.LJ),u=new o.A(r.Ro);function c(e){const n=f.get(e);if(n)return n;let t=a;if(e)if(e===s)t=s;else if(e===l)t=l;else{const n=e.wkid,r=e.latestWkid;if(null!=n||null!=r)(0,i.tl)(n)||(0,i.tl)(r)?t=s:((0,i.ZL)(n)||(0,i.ZL)(r))&&(t=l);else{const n=e.wkt2??e.wkt;if(n){const e=n.toUpperCase();e===p?t=s:e===d&&(t=l)}}}return f.set(e,t),t}const f=new Map,p=s.wkt.toUpperCase(),d=l.wkt.toUpperCase()},34403(e,n,t){t.d(n,{TP:()=>a});var r=t(79258);Math.PI;const o=r.$O.radius,i=r.$O.eccentricitySquared,a={a1:o*i,a2:o*i*o*i,a3:o*i*i/2,a4:o*i*o*i*2.5,a5:o*i+o*i*i/2,a6:1-i};r.$O.radius,r.$O.flattening,r.Sw.radius,r.Sw.flattening,r.sH.radius,r.sH.flattening,r.sH.radius},92300(e,n,t){t.d(n,{V:()=>a,X:()=>i});var r=t(60408),o=t(65864);function i(e){return{geometryType:(0,r.$B)(e[0]),geometries:e.map(e=>e.toJSON())}}function a(e,n,t){const r=(0,o.xD)(n);return e.map(e=>{const n=r.fromJSON(e);return n.spatialReference=t,n})}},25927(e,n,t){t.d(n,{A:()=>s});var r=t(5482),o=t(91429),i=t(86738),a=t(54238);let s=class extends a.A{constructor(e){super(e),this.layoutGeometry=null}};(0,r.Cg)([(0,o.MZ)({type:i.A,json:{write:!0}})],s.prototype,"layoutGeometry",void 0),s=(0,r.Cg)([(0,o.$K)("esri.rest.knowledgeGraph.Entity")],s)},54238(e,n,t){t.d(n,{A:()=>a});var r=t(5482),o=t(91429),i=t(77901);let a=class extends i.A{constructor(e){super(e),this.typeName=null,this.id=null}};(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"typeName",void 0),(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"id",void 0),a=(0,r.Cg)([(0,o.$K)("esri.rest.knowledgeGraph.GraphNamedObject")],a)},77901(e,n,t){t.d(n,{A:()=>a});var r=t(5482),o=t(25482),i=t(91429);let a=class extends o.o{constructor(e){super(e),this.properties={}}};(0,r.Cg)([(0,i.MZ)({json:{write:!0}})],a.prototype,"properties",void 0),a=(0,r.Cg)([(0,i.$K)("esri.rest.knowledgeGraph.GraphObject")],a)},42538(e,n,t){t.d(n,{A:()=>l});var r=t(5482),o=t(91429),i=t(16930),a=t(69622);let s=class extends a.A{constructor(e){super(e),this.openCypherQuery=""}};(0,r.Cg)([(0,o.MZ)()],s.prototype,"openCypherQuery",void 0),s=(0,r.Cg)([(0,o.$K)("esri.rest.knowledgeGraph.GraphQuery")],s);let l=class extends s{constructor(e){super(e),this.bindParameters=null,this.bindGeometryQuantizationParameters=null,this.outputQuantizationParameters=null,this.outputSpatialReference=null,this.provenanceBehavior=null}};(0,r.Cg)([(0,o.MZ)()],l.prototype,"bindParameters",void 0),(0,r.Cg)([(0,o.MZ)()],l.prototype,"bindGeometryQuantizationParameters",void 0),(0,r.Cg)([(0,o.MZ)()],l.prototype,"outputQuantizationParameters",void 0),(0,r.Cg)([(0,o.MZ)({type:i.A})],l.prototype,"outputSpatialReference",void 0),(0,r.Cg)([(0,o.MZ)()],l.prototype,"provenanceBehavior",void 0),l=(0,r.Cg)([(0,o.$K)("esri.rest.knowledgeGraph.GraphQueryStreaming")],l)},40662(e,n,t){t.d(n,{A:()=>a});var r=t(5482),o=t(91429),i=t(77901);let a=class extends i.A{constructor(e){super(e)}};a=(0,r.Cg)([(0,o.$K)("esri.rest.knowledgeGraph.ObjectValue")],a)},42095(e,n,t){t.d(n,{A:()=>s});var r=t(5482),o=t(25482),i=t(91429),a=t(77901);let s=class extends o.o{constructor(e){super(e),this.path=[]}};(0,r.Cg)([(0,i.MZ)({type:[a.A],json:{write:!0}})],s.prototype,"path",void 0),s=(0,r.Cg)([(0,i.$K)("esri.rest.knowledgeGraph.Path")],s)},23150(e,n,t){t.d(n,{A:()=>s});var r=t(5482),o=t(91429),i=t(82799),a=t(54238);let s=class extends a.A{constructor(e){super(e),this.originId=null,this.destinationId=null,this.layoutGeometry=null}};(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],s.prototype,"originId",void 0),(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],s.prototype,"destinationId",void 0),(0,r.Cg)([(0,o.MZ)({type:i.A,json:{write:!0}})],s.prototype,"layoutGeometry",void 0),s=(0,r.Cg)([(0,o.$K)("esri.rest.knowledgeGraph.Relationship")],s)}}]);