@arcgis/core 5.2.0-next.63 → 5.2.0-next.64

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 (382) hide show
  1. package/arcade/Feature.js +1 -1
  2. package/arcade/ImmutableArray.js +1 -1
  3. package/arcade/ImmutablePathArray.js +1 -1
  4. package/arcade/ImmutablePointArray.js +1 -1
  5. package/arcade/Pixel.js +1 -1
  6. package/arcade/Voxel.js +1 -1
  7. package/arcade/arcadeAsyncRuntime.js +1 -1
  8. package/arcade/arcadeCompiler.js +1 -1
  9. package/arcade/arcadeRuntime.js +1 -1
  10. package/arcade/containerUtils.js +1 -1
  11. package/arcade/debug.js +1 -1
  12. package/arcade/deepClone.js +1 -1
  13. package/arcade/functions/convertdirection.js +1 -1
  14. package/arcade/functions/date.js +1 -1
  15. package/arcade/functions/feature.js +1 -1
  16. package/arcade/functions/featuresetbase.js +1 -1
  17. package/arcade/functions/featuresetgeom.js +1 -1
  18. package/arcade/functions/featuresetstats.js +1 -1
  19. package/arcade/functions/featuresetstring.js +1 -1
  20. package/arcade/functions/fieldStats.js +1 -1
  21. package/arcade/functions/geomasync.js +1 -1
  22. package/arcade/functions/geometry.js +1 -1
  23. package/arcade/functions/geomsync.js +1 -1
  24. package/arcade/functions/knowledgegraph.js +1 -1
  25. package/arcade/functions/maths.js +1 -1
  26. package/arcade/functions/stats.js +1 -1
  27. package/arcade/functions/string.js +1 -1
  28. package/arcade/functions/track.js +1 -1
  29. package/arcade/geometry/functions.js +1 -1
  30. package/arcade/languageUtils.js +1 -1
  31. package/arcade.js +1 -1
  32. package/arcgisGlobal.d.ts +9 -0
  33. package/assets/esri/core/workers/RemoteClient.js +1 -1
  34. package/assets/esri/core/workers/chunks/{44e64186318728d1be51.js → 067b00498ae85f635f60.js} +1 -1
  35. package/assets/esri/core/workers/chunks/0977f4d77c36175c2895.js +1 -0
  36. package/assets/esri/core/workers/chunks/{62f3ca0719ac6bc76512.js → 09c43bcb09aad02e83a9.js} +1 -1
  37. package/assets/esri/core/workers/chunks/0b20f92bae2b4c40d299.js +1 -0
  38. package/assets/esri/core/workers/chunks/0c3c311400ee352187ea.js +1 -0
  39. package/assets/esri/core/workers/chunks/0c582abc8d25249eb530.js +1 -0
  40. package/assets/esri/core/workers/chunks/0d6776055e9b34c14151.js +1 -0
  41. package/assets/esri/core/workers/chunks/0d7d54e74b5639a0be6e.js +1 -0
  42. package/assets/esri/core/workers/chunks/0da5b27b070ab780f8b3.js +1 -0
  43. package/assets/esri/core/workers/chunks/0e6b6fcc55cc43ede1fc.js +1 -0
  44. package/assets/esri/core/workers/chunks/{bcb5017500d144b73908.js → 126f1f6b355723db6c4f.js} +1 -1
  45. package/assets/esri/core/workers/chunks/12a64eca4c571926d9d4.js +1 -0
  46. package/assets/esri/core/workers/chunks/{b2c0262c4a76b8a86200.js → 149284464115981694ff.js} +1 -1
  47. package/assets/esri/core/workers/chunks/1642fa1263d8f4a45101.js +1 -0
  48. package/assets/esri/core/workers/chunks/1840d74ebae777a0200b.js +1 -0
  49. package/assets/esri/core/workers/chunks/19bf6826e7d9a4d52035.js +1 -0
  50. package/assets/esri/core/workers/chunks/1bfbdec791e19f5a2534.js +1 -0
  51. package/assets/esri/core/workers/chunks/1d8280f63a6698e74f20.js +1 -0
  52. package/assets/esri/core/workers/chunks/{a12803108c3b12808698.js → 242cad472fbc38b24dbc.js} +2 -2
  53. package/assets/esri/core/workers/chunks/25197ecb324d6f08e03e.js +1 -0
  54. package/assets/esri/core/workers/chunks/253c231b5a52f1d2d3a5.js +1 -0
  55. package/assets/esri/core/workers/chunks/25999b6f96ec305a7679.js +1 -0
  56. package/assets/esri/core/workers/chunks/259bdacfb7b0f866a8d0.js +1 -0
  57. package/assets/esri/core/workers/chunks/28565756f884d0851003.js +1 -0
  58. package/assets/esri/core/workers/chunks/2a5a165848413764381b.js +1 -0
  59. package/assets/esri/core/workers/chunks/2e7a5bb740281ef59199.js +1 -0
  60. package/assets/esri/core/workers/chunks/{285a5bd708f0fe1c620c.js → 2ea3ca68cfa4d34e8f3b.js} +1 -1
  61. package/assets/esri/core/workers/chunks/2f87a49bdd00f899d81d.js +1 -0
  62. package/assets/esri/core/workers/chunks/{37a95f097533bad1b338.js → 302d91b7c480c6c9304b.js} +1 -1
  63. package/assets/esri/core/workers/chunks/{3d6d2b42ba2ad7086d5d.js → 3b493e8043ec1a2a5d96.js} +1 -1
  64. package/assets/esri/core/workers/chunks/40e48b720d89cd067892.js +1 -0
  65. package/assets/esri/core/workers/chunks/{a833fc9250635eb4152f.js → 41f7f3615d3ecb87c59a.js} +1 -1
  66. package/assets/esri/core/workers/chunks/{95b3b8fe45ef4ac6b277.js → 450bc48a7389607bce1e.js} +1 -1
  67. package/assets/esri/core/workers/chunks/465a050fd838ee8eddf3.js +1 -0
  68. package/assets/esri/core/workers/chunks/{0d61c8d348b09179777a.js → 46d8a1d6f7341ad20749.js} +1 -1
  69. package/assets/esri/core/workers/chunks/4710f21b138a2c9a0345.js +1 -0
  70. package/assets/esri/core/workers/chunks/48a0dfaabb9b4bce4191.js +1 -0
  71. package/assets/esri/core/workers/chunks/49a3888bf9e2481642ac.js +1 -0
  72. package/assets/esri/core/workers/chunks/{4ee900e5dbb130fa0c7b.js → 4a40b894ec89b0a4f9bf.js} +1 -1
  73. package/assets/esri/core/workers/chunks/{d847c3cb2043a983145b.js → 4addea2e35b0c845743e.js} +1 -1
  74. package/assets/esri/core/workers/chunks/{e0a4d0288abd334b0673.js → 4ae626868e14bedd7fc5.js} +1 -1
  75. package/assets/esri/core/workers/chunks/529ee4670940720e888b.js +1 -0
  76. package/assets/esri/core/workers/chunks/{a3c882fe7599dc0f4f27.js → 59d1708ae13c6e7e6e55.js} +1 -1
  77. package/assets/esri/core/workers/chunks/59dd83e5aee2908c7eca.js +1 -0
  78. package/assets/esri/core/workers/chunks/{b8bdacebd4d24ba90f3f.js → 5fde1234c5cccaee6763.js} +1 -1
  79. package/assets/esri/core/workers/chunks/60f9b37dd738d884c48d.js +1 -0
  80. package/assets/esri/core/workers/chunks/6123894e2ae9233cdf89.js +1 -0
  81. package/assets/esri/core/workers/chunks/62c8413f3bbc1378273d.js +1 -0
  82. package/assets/esri/core/workers/chunks/6501ee40bf25f9f75d02.js +1 -0
  83. package/assets/esri/core/workers/chunks/663cf8bff17c894cd5f8.js +1 -0
  84. package/assets/esri/core/workers/chunks/6b536d03b4bef408035b.js +1 -0
  85. package/assets/esri/core/workers/chunks/6d1371b521c7f94fd77e.js +1 -0
  86. package/assets/esri/core/workers/chunks/6d5038d4351fe29e2718.js +1 -0
  87. package/assets/esri/core/workers/chunks/6f102c90908c9900cdaa.js +1 -0
  88. package/assets/esri/core/workers/chunks/6f39545710d1b35d922c.js +1 -0
  89. package/assets/esri/core/workers/chunks/7278fdf6bfcdffa10a7f.js +1 -0
  90. package/assets/esri/core/workers/chunks/72eb0ac55026a4f5d6a7.js +1 -0
  91. package/assets/esri/core/workers/chunks/73cb499d7d68c59ba34e.js +1 -0
  92. package/assets/esri/core/workers/chunks/{b8d788e110c212a879ab.js → 73f228d966b89c73c9e9.js} +1 -1
  93. package/assets/esri/core/workers/chunks/76bccc318d7cc33829a7.js +1 -0
  94. package/assets/esri/core/workers/chunks/{23a3d8f91caf3136b2aa.js → 771ead806efbe9c91fdc.js} +1 -1
  95. package/assets/esri/core/workers/chunks/777eafdb86b26b35c803.js +1 -0
  96. package/assets/esri/core/workers/chunks/7821aeba3e414b318a75.js +1 -0
  97. package/assets/esri/core/workers/chunks/78b80da3bbc1b608fe83.js +1 -0
  98. package/assets/esri/core/workers/chunks/7b531feba4fd662575f9.js +1 -0
  99. package/assets/esri/core/workers/chunks/7c57354d026e27e056d4.js +1 -0
  100. package/assets/esri/core/workers/chunks/7d163d9d90393e491ee5.js +1 -0
  101. package/assets/esri/core/workers/chunks/7d4c65311064a5c2e0b1.js +1 -0
  102. package/assets/esri/core/workers/chunks/{0474af7687466d8befd2.js → 7e2794705b4e679fcb3f.js} +1 -1
  103. package/assets/esri/core/workers/chunks/7ebbb90d80600d9ba889.js +1 -0
  104. package/assets/esri/core/workers/chunks/7f125963555dc1ce63ad.js +1 -0
  105. package/assets/esri/core/workers/chunks/{763cbb6716e398436a6d.js → 7f6eee102871769fdf8f.js} +1 -1
  106. package/assets/esri/core/workers/chunks/805c97b875d3066fb8df.js +1 -0
  107. package/assets/esri/core/workers/chunks/8566449c39eba55147f5.js +1 -0
  108. package/assets/esri/core/workers/chunks/86ed75b7169b8ee43025.js +1 -0
  109. package/assets/esri/core/workers/chunks/{9482a6d7baa24bbf5693.js → 89132395eca329b9ab92.js} +1 -1
  110. package/assets/esri/core/workers/chunks/{28bc5e8e82f188b30eb9.js → 894343e415639df88243.js} +1 -1
  111. package/assets/esri/core/workers/chunks/8b4759cef5ae5e43253b.js +1 -0
  112. package/assets/esri/core/workers/chunks/8ba4175f5e9a24ffecf7.js +1 -0
  113. package/assets/esri/core/workers/chunks/8be707044d992ef5f1d8.js +1 -0
  114. package/assets/esri/core/workers/chunks/{bd862382f72ebd446b46.js → 8d2cac1952e817daaf1f.js} +1 -1
  115. package/assets/esri/core/workers/chunks/8e38c5e63aae42bdf5a4.js +29 -0
  116. package/assets/esri/core/workers/chunks/{02ab09285a5c4ca98066.js → 8f785b722b1a131bf370.js} +1 -1
  117. package/assets/esri/core/workers/chunks/8f9874f42f21a4cb3acd.js +1 -0
  118. package/assets/esri/core/workers/chunks/90f4b81c6034253b70d7.js +1 -0
  119. package/assets/esri/core/workers/chunks/917c11cb40a7742d7f98.js +1 -0
  120. package/assets/esri/core/workers/chunks/93ab247ff34694ac60eb.js +1 -0
  121. package/assets/esri/core/workers/chunks/{6e45d0db97ffa4509177.js → 94bf7f0da6ad3f7ea277.js} +1 -1
  122. package/assets/esri/core/workers/chunks/9c57161ad48d8d546dc7.js +1 -0
  123. package/assets/esri/core/workers/chunks/{b2cf1d3f0d48eac23a84.js → 9c5dff4f13102871786e.js} +1 -1
  124. package/assets/esri/core/workers/chunks/9d0bda096cdbd7e22f4b.js +1 -0
  125. package/assets/esri/core/workers/chunks/9dfb7d120195991e9672.js +1 -0
  126. package/assets/esri/core/workers/chunks/9ed5e6b06afea6c85330.js +1 -0
  127. package/assets/esri/core/workers/chunks/{79b857bb301f9c4169d6.js → 9fee8441fbac9f723f77.js} +1 -1
  128. package/assets/esri/core/workers/chunks/a108f276659d5f25352c.js +1 -0
  129. package/assets/esri/core/workers/chunks/a2d8bc0efddd2e13b1ad.js +1 -0
  130. package/assets/esri/core/workers/chunks/{b32ede7805c7c6644e4c.js → a3bf8aa81ee398da5b52.js} +1 -1
  131. package/assets/esri/core/workers/chunks/{5b30231ae0a8f4b8435f.js → a504fa17d83facf1c01f.js} +1 -1
  132. package/assets/esri/core/workers/chunks/{538fe46dfd685a490e23.js → a7f42ada0aa69873a938.js} +1 -1
  133. package/assets/esri/core/workers/chunks/a97e0b9b057664911c14.js +1 -0
  134. package/assets/esri/core/workers/chunks/{cb58aff1ff186fa18345.js → a9f616f22042b0dce8b9.js} +1 -1
  135. package/assets/esri/core/workers/chunks/afd63c18ce4656271c8e.js +1 -0
  136. package/assets/esri/core/workers/chunks/{f04cb48fc73635d0572f.js → b059dabb1c732829487c.js} +1 -1
  137. package/assets/esri/core/workers/chunks/b313464b987db8a3987a.js +1 -0
  138. package/assets/esri/core/workers/chunks/b318823aefcefad6fad5.js +1 -0
  139. package/assets/esri/core/workers/chunks/b378e504a5b1afc8d0ce.js +1 -0
  140. package/assets/esri/core/workers/chunks/{9fb87a7dba62b527c0ba.js → b3a1a93c6dc9247cb048.js} +1 -1
  141. package/assets/esri/core/workers/chunks/b5397dc03fa0bd654ba6.js +1 -0
  142. package/assets/esri/core/workers/chunks/b5b698008b8f3f4d5d61.js +1 -0
  143. package/assets/esri/core/workers/chunks/b7bcb31737b01d7736d0.js +1 -0
  144. package/assets/esri/core/workers/chunks/b9a1046ca2cd0cca5da5.js +1 -0
  145. package/assets/esri/core/workers/chunks/{cda04571d7623c17ada2.js → b9c7aa04861f545a559c.js} +1 -1
  146. package/assets/esri/core/workers/chunks/{7df795bc4fa1d433463b.js → ba030767cf935f967454.js} +1 -1
  147. package/assets/esri/core/workers/chunks/{53d165b4f30fd64e5d8a.js → bd311c85437743cf7d2f.js} +1 -1
  148. package/assets/esri/core/workers/chunks/bd88228f781a0399d8bd.js +1 -0
  149. package/assets/esri/core/workers/chunks/bfb626805405646a0419.js +1 -0
  150. package/assets/esri/core/workers/chunks/{e65ee26feca0564aeb9b.js → c1e45e24f5ef719a714c.js} +18 -18
  151. package/assets/esri/core/workers/chunks/c203df41f9d2e4b80889.js +1 -0
  152. package/assets/esri/core/workers/chunks/{278409028bc5af45b507.js → c4c83b5129c279c3615b.js} +1 -1
  153. package/assets/esri/core/workers/chunks/c6ef0636073e28350c91.js +1 -0
  154. package/assets/esri/core/workers/chunks/c7e391df714839484cd1.js +1 -0
  155. package/assets/esri/core/workers/chunks/cded485ad893a7dd2948.js +1 -0
  156. package/assets/esri/core/workers/chunks/{1cf8fb704c48ac3d3b15.js → cf360767310fb45660a8.js} +1 -1
  157. package/assets/esri/core/workers/chunks/{8f2fecd8a0a972d68590.js → cf8ce63711488f2e677c.js} +1 -1
  158. package/assets/esri/core/workers/chunks/d214ac457ac970479536.js +1 -0
  159. package/assets/esri/core/workers/chunks/d4058352db1e8255b52e.js +1 -0
  160. package/assets/esri/core/workers/chunks/d4d385d19e62ef1c286f.js +1 -0
  161. package/assets/esri/core/workers/chunks/d4f005dadba75422b401.js +1 -0
  162. package/assets/esri/core/workers/chunks/{52c4b4dabcb0d162be72.js → d5e15021928e95c11463.js} +1 -1
  163. package/assets/esri/core/workers/chunks/{fc639c730115e07a4a1a.js → d6500f6b2ff115d9eb09.js} +1 -1
  164. package/assets/esri/core/workers/chunks/e1492d2404c3ed82931e.js +1 -0
  165. package/assets/esri/core/workers/chunks/e34ed3b818b2eb4116c5.js +1 -0
  166. package/assets/esri/core/workers/chunks/e7149d23615fee31ab7e.js +1 -0
  167. package/assets/esri/core/workers/chunks/ec774f5d6ea5c29536e5.js +1 -0
  168. package/assets/esri/core/workers/chunks/ed71a4e353715db0a6e9.js +1 -0
  169. package/assets/esri/core/workers/chunks/{3f775deea48e268411f1.js → ef27bf1d7941ae265ca4.js} +1 -1
  170. package/assets/esri/core/workers/chunks/{1e342d532925569daadb.js → f475672ff4c2ec9367c2.js} +1 -1
  171. package/assets/esri/core/workers/chunks/{cc414fd2e313d89d524d.js → f54eba484f40d5eeb590.js} +1 -1
  172. package/assets/esri/core/workers/chunks/{04ffe788d2efc0a076dd.js → f5c9659fc5d571d501c9.js} +1 -1
  173. package/assets/esri/core/workers/chunks/f622b27ebdf1c918fd6d.js +1 -0
  174. package/assets/esri/core/workers/chunks/{dd95f50dac3f33cdb6d2.js → f6a13f07a5f7b781a9a8.js} +1 -1
  175. package/assets/esri/core/workers/chunks/{d849bdaf5bdfdc37531a.js → f6f7d885b4d6080e3f58.js} +1 -1
  176. package/assets/esri/core/workers/chunks/f8b8d3d2710c83acccf3.js +1 -0
  177. package/assets/esri/core/workers/chunks/f95870bb4d8e4e13e69e.js +1 -0
  178. package/assets/esri/core/workers/chunks/fa59f10ed0f182a2a7f3.js +1 -0
  179. package/assets/esri/core/workers/chunks/faa55265020591fd2224.js +1 -0
  180. package/assets/esri/core/workers/chunks/fc827f58db3194922056.js +1 -0
  181. package/chunks/_commonjsHelpers.js +1 -1
  182. package/chunks/aiServices.js +1 -1
  183. package/chunks/array.js +1 -1
  184. package/chunks/languageUtils.js +1 -1
  185. package/config.js +1 -1
  186. package/form/ExpressionInfo.d.ts +1 -1
  187. package/form/ExpressionInfo.js +1 -1
  188. package/form/elements/FieldElement.d.ts +3 -2
  189. package/form/elements/inputs/ComboBoxInput.d.ts +4 -15
  190. package/form/elements/inputs/ComboBoxInput.js +1 -1
  191. package/form/elements/inputs/DynamicChoiceInput.d.ts +31 -0
  192. package/form/elements/inputs/DynamicChoiceInput.js +2 -0
  193. package/form/elements/inputs/Input.d.ts +1 -1
  194. package/form/elements/inputs/RadioButtonsInput.d.ts +4 -15
  195. package/form/elements/inputs/RadioButtonsInput.js +1 -1
  196. package/form/elements/inputs/SingleChoiceInput.d.ts +18 -0
  197. package/form/elements/inputs/SingleChoiceInput.js +2 -0
  198. package/form/elements/inputs.d.ts +11 -2
  199. package/form/elements/inputs.js +1 -1
  200. package/geometry/support/normalizeUtils.d.ts +1 -1
  201. package/kernel.js +1 -1
  202. package/layers/ImageryTileLayer.d.ts +1 -1
  203. package/layers/RouteLayer.d.ts +1 -1
  204. package/layers/mixins/ArcGISImageService.d.ts +24 -24
  205. package/layers/mixins/TiledImagery.d.ts +1 -1
  206. package/layers/orientedImagery/transformations/rectifyMapPoint.js +1 -1
  207. package/layers/video/VideoController.js +1 -1
  208. package/networks/support/CircuitExportJobInfo.d.ts +1 -1
  209. package/networks/support/CircuitVerifyJobInfo.d.ts +1 -1
  210. package/networks/support/TopologyValidationJobInfo.d.ts +1 -1
  211. package/networks/support/TraceJobInfo.d.ts +1 -1
  212. package/package.json +2 -2
  213. package/portal/jsonTypes.d.ts +1 -1
  214. package/rest/closestFacility.d.ts +1 -1
  215. package/rest/find.d.ts +1 -1
  216. package/rest/geometryService.d.ts +21 -21
  217. package/rest/geoprocessor.d.ts +2 -2
  218. package/rest/identify.d.ts +1 -1
  219. package/rest/imageService.d.ts +19 -19
  220. package/rest/lastMileDelivery.d.ts +8 -8
  221. package/rest/locator.d.ts +4 -4
  222. package/rest/networkService.d.ts +1 -1
  223. package/rest/networks/queryAssociations.d.ts +1 -1
  224. package/rest/networks/synthesizeAssociationGeometries.d.ts +1 -1
  225. package/rest/networks/trace.d.ts +1 -1
  226. package/rest/networks/traverseAssociations.d.ts +1 -1
  227. package/rest/places.d.ts +3 -3
  228. package/rest/print.d.ts +1 -1
  229. package/rest/query.d.ts +11 -11
  230. package/rest/route.d.ts +1 -1
  231. package/rest/serviceArea.d.ts +1 -1
  232. package/rest/support/JobInfo.d.ts +5 -5
  233. package/rest/symbolService.d.ts +1 -1
  234. package/support/revision.js +1 -1
  235. package/views/3d/analysis/LineOfSight/LineOfSightReshapeTool3D.js +1 -1
  236. package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
  237. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementShiftTool.js +1 -1
  238. package/views/3d/layers/graphics/Graphics3DPathSymbolLayer.js +1 -1
  239. package/views/3d/layers/graphics/Graphics3DPathSymbolLayerConstants.js +1 -1
  240. package/views/3d/layers/graphics/defaultSymbolComplexity.js +1 -1
  241. package/views/3d/webgl-engine/core/shaderLibrary/attributes/PathEvaluate.glsl.js +49 -32
  242. package/views/3d/webgl-engine/core/shaderLibrary/attributes/PathVertexInfo.glsl.js +5 -5
  243. package/views/3d/webgl-engine/core/shaderLibrary/attributes/PathVertexPosition.glsl.js +23 -23
  244. package/views/3d/webgl-engine/lib/GaussianSplatRenderer.js +1 -1
  245. package/views/3d/webgl-engine/lib/PathBuilder.js +1 -1
  246. package/views/3d/webgl-engine/lib/PathEvaluator.js +1 -1
  247. package/views/3d/webgl-engine/lib/PathExtruder.js +1 -1
  248. package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
  249. package/views/3d/webgl-engine/materials/PathTechniqueConfiguration.js +1 -1
  250. package/views/draw/support/InteractiveHandle.js +1 -1
  251. package/views/draw/support/managers/SurfaceManager.js +1 -1
  252. package/views/interactive/Tooltip.d.ts +3 -3
  253. package/views/interactive/Tooltip.js +1 -1
  254. package/views/interactive/options/ElevationOptions.d.ts +20 -0
  255. package/views/interactive/options/ElevationOptions.js +2 -0
  256. package/views/interactive/options/LabelOptions.d.ts +74 -0
  257. package/views/interactive/options/LabelOptions.js +2 -0
  258. package/views/interactive/options/SnappingOptions.d.ts +157 -0
  259. package/views/interactive/options/SnappingOptions.js +2 -0
  260. package/views/interactive/options/TooltipOptions.d.ts +152 -0
  261. package/views/interactive/options/TooltipOptions.js +2 -0
  262. package/views/interactive/options/TooltipVisibleElements.d.ts +105 -0
  263. package/views/interactive/options/TooltipVisibleElements.js +2 -0
  264. package/views/interactive/options/ValueOptions.d.ts +63 -0
  265. package/views/interactive/options/ValueOptions.js +2 -0
  266. package/views/interactive/sketch/SketchLabelOptions.d.ts +7 -9
  267. package/views/interactive/sketch/SketchLabelOptions.js +1 -1
  268. package/views/interactive/sketch/SketchTooltipElevationOptions.js +1 -1
  269. package/views/interactive/sketch/SketchTooltipOptions.d.ts +8 -50
  270. package/views/interactive/sketch/SketchTooltipOptions.js +1 -1
  271. package/views/interactive/sketch/SketchTooltipVisibleElements.d.ts +10 -95
  272. package/views/interactive/sketch/SketchTooltipVisibleElements.js +1 -1
  273. package/views/interactive/sketch/SketchValueOptions.d.ts +7 -45
  274. package/views/interactive/sketch/SketchValueOptions.js +1 -1
  275. package/views/interactive/sketch/Units.d.ts +10 -29
  276. package/views/interactive/sketch/Units.js +1 -1
  277. package/views/interactive/snapping/SnappingOptions.d.ts +7 -78
  278. package/views/interactive/snapping/SnappingOptions.js +1 -1
  279. package/views/interactive/support/Units.d.ts +33 -0
  280. package/views/interactive/support/Units.js +2 -0
  281. package/views/interactive/support/types.d.ts +33 -0
  282. package/views/interactive/tooltip/types.d.ts +6 -2
  283. package/assets/esri/core/workers/chunks/02dd79beb13eff6be85e.js +0 -1
  284. package/assets/esri/core/workers/chunks/0623acb2bd14a61b65c9.js +0 -29
  285. package/assets/esri/core/workers/chunks/069b6d8bdb34ee88d437.js +0 -1
  286. package/assets/esri/core/workers/chunks/0790bf0eb276cd9166f6.js +0 -1
  287. package/assets/esri/core/workers/chunks/08c2bf9defcece9e049a.js +0 -1
  288. package/assets/esri/core/workers/chunks/0ae0483b72f5e8d00d55.js +0 -1
  289. package/assets/esri/core/workers/chunks/0d1224693a62a26a0e72.js +0 -1
  290. package/assets/esri/core/workers/chunks/10b367563f894ceb9864.js +0 -1
  291. package/assets/esri/core/workers/chunks/11e00ca5ac1b004f4ecc.js +0 -1
  292. package/assets/esri/core/workers/chunks/13033178de9f637a2356.js +0 -1
  293. package/assets/esri/core/workers/chunks/13c893e448bedc5c1cef.js +0 -1
  294. package/assets/esri/core/workers/chunks/14cd8bb1ad4da8d1d2ca.js +0 -1
  295. package/assets/esri/core/workers/chunks/15c2d9bec0455fc363a9.js +0 -1
  296. package/assets/esri/core/workers/chunks/246cd372d4184233f48e.js +0 -1
  297. package/assets/esri/core/workers/chunks/268ab65afc3fce775ad2.js +0 -1
  298. package/assets/esri/core/workers/chunks/279a9a38b04a21cdfd11.js +0 -1
  299. package/assets/esri/core/workers/chunks/2a1c6df073e6ca6a6365.js +0 -1
  300. package/assets/esri/core/workers/chunks/3406a01dad6338e3c548.js +0 -1
  301. package/assets/esri/core/workers/chunks/36781219ca9ba5d7fe52.js +0 -1
  302. package/assets/esri/core/workers/chunks/36999a2e383c8eb3c398.js +0 -1
  303. package/assets/esri/core/workers/chunks/36f8a912842181e1f0aa.js +0 -1
  304. package/assets/esri/core/workers/chunks/3f1a7f8a9ead64bf0b7b.js +0 -1
  305. package/assets/esri/core/workers/chunks/41e821ce229bc56dc1a1.js +0 -1
  306. package/assets/esri/core/workers/chunks/456e616f32e7de696d38.js +0 -1
  307. package/assets/esri/core/workers/chunks/478540265c86436da05e.js +0 -1
  308. package/assets/esri/core/workers/chunks/479f486ec1797629ec70.js +0 -1
  309. package/assets/esri/core/workers/chunks/484b3e2a220c440ccbb4.js +0 -1
  310. package/assets/esri/core/workers/chunks/4a340836ddbc856993f2.js +0 -1
  311. package/assets/esri/core/workers/chunks/54b9667450d066c6f6ce.js +0 -1
  312. package/assets/esri/core/workers/chunks/57b07448da06d0302a46.js +0 -1
  313. package/assets/esri/core/workers/chunks/5a9ff50fdcc99ae28cce.js +0 -1
  314. package/assets/esri/core/workers/chunks/5dc17b76c6ecc24e7b9a.js +0 -1
  315. package/assets/esri/core/workers/chunks/5e3d5347223f0111f40f.js +0 -1
  316. package/assets/esri/core/workers/chunks/5eb6f37c74a217772eca.js +0 -1
  317. package/assets/esri/core/workers/chunks/6210fb6cd31844f23964.js +0 -1
  318. package/assets/esri/core/workers/chunks/638ed1297efdb24f4711.js +0 -1
  319. package/assets/esri/core/workers/chunks/63ede7295938f7010808.js +0 -1
  320. package/assets/esri/core/workers/chunks/661a59133ae34f172174.js +0 -1
  321. package/assets/esri/core/workers/chunks/687cf21e027f49b44d22.js +0 -1
  322. package/assets/esri/core/workers/chunks/6c2b5087a9df65267f4e.js +0 -1
  323. package/assets/esri/core/workers/chunks/6d247ff53421d27628ce.js +0 -1
  324. package/assets/esri/core/workers/chunks/700c08dd2e734c15e621.js +0 -1
  325. package/assets/esri/core/workers/chunks/70452f6d63e9be8d03dd.js +0 -1
  326. package/assets/esri/core/workers/chunks/733b2e181683d5fc7c95.js +0 -1
  327. package/assets/esri/core/workers/chunks/7659391f952d134164cf.js +0 -1
  328. package/assets/esri/core/workers/chunks/7889f4a17cf249f2acc5.js +0 -1
  329. package/assets/esri/core/workers/chunks/7a2dcd57849048c6e00d.js +0 -1
  330. package/assets/esri/core/workers/chunks/7a2dfa42610fe8414ed7.js +0 -1
  331. package/assets/esri/core/workers/chunks/7ce52b850dd785bfa33f.js +0 -1
  332. package/assets/esri/core/workers/chunks/7fdd6a5fa062778be55d.js +0 -1
  333. package/assets/esri/core/workers/chunks/81accb1820e2735fa376.js +0 -1
  334. package/assets/esri/core/workers/chunks/8210fc9e072209e26fa9.js +0 -1
  335. package/assets/esri/core/workers/chunks/8369edafab7bdc59b95a.js +0 -1
  336. package/assets/esri/core/workers/chunks/84fa102a93b2144c28fb.js +0 -1
  337. package/assets/esri/core/workers/chunks/85ce7673d42526a79fd2.js +0 -1
  338. package/assets/esri/core/workers/chunks/8722e2790272e90a1897.js +0 -1
  339. package/assets/esri/core/workers/chunks/8a1970e68bc1e833cb7f.js +0 -1
  340. package/assets/esri/core/workers/chunks/8bb20ef549ec1c86b38e.js +0 -1
  341. package/assets/esri/core/workers/chunks/8c535c6a39d2be2ed655.js +0 -1
  342. package/assets/esri/core/workers/chunks/92696cce2b980373f9ad.js +0 -1
  343. package/assets/esri/core/workers/chunks/98b27cf8acbfa4259758.js +0 -1
  344. package/assets/esri/core/workers/chunks/9a6208ab670ad74e6f7d.js +0 -1
  345. package/assets/esri/core/workers/chunks/a09ce34fc7c8abe64ed5.js +0 -1
  346. package/assets/esri/core/workers/chunks/a10f63a08d976be058be.js +0 -1
  347. package/assets/esri/core/workers/chunks/a5f058567419ea70dff6.js +0 -1
  348. package/assets/esri/core/workers/chunks/a965d151515b76dd7566.js +0 -1
  349. package/assets/esri/core/workers/chunks/afeeb11b39e140303b5a.js +0 -1
  350. package/assets/esri/core/workers/chunks/b5c7813495657f844171.js +0 -1
  351. package/assets/esri/core/workers/chunks/b7170816736769d3b7b0.js +0 -1
  352. package/assets/esri/core/workers/chunks/b8e5d7aefddddbd0a10c.js +0 -1
  353. package/assets/esri/core/workers/chunks/b958f87f23f984131d09.js +0 -1
  354. package/assets/esri/core/workers/chunks/b9f40681af1fa00b5bbe.js +0 -1
  355. package/assets/esri/core/workers/chunks/c4c25db769a78e677e33.js +0 -1
  356. package/assets/esri/core/workers/chunks/c85ba0700eafdc8d6f9e.js +0 -1
  357. package/assets/esri/core/workers/chunks/ca118c42c0f609ca7912.js +0 -1
  358. package/assets/esri/core/workers/chunks/cb17cd8aaf77238c0236.js +0 -1
  359. package/assets/esri/core/workers/chunks/d03f427442bb0c287d05.js +0 -1
  360. package/assets/esri/core/workers/chunks/d08d3c6f21e6ba8268ca.js +0 -1
  361. package/assets/esri/core/workers/chunks/d37a72111dffc4c4db70.js +0 -1
  362. package/assets/esri/core/workers/chunks/d41ab2abcfacc87809b5.js +0 -1
  363. package/assets/esri/core/workers/chunks/d4ed094962a41d756c95.js +0 -1
  364. package/assets/esri/core/workers/chunks/d51c41c1944df0cbab3e.js +0 -1
  365. package/assets/esri/core/workers/chunks/d83ea3e4e9ab45334068.js +0 -1
  366. package/assets/esri/core/workers/chunks/d9b83d7dd7d1f7729a91.js +0 -1
  367. package/assets/esri/core/workers/chunks/dbcec48c4ba104a6d0b5.js +0 -1
  368. package/assets/esri/core/workers/chunks/dc24e80d061f7b063608.js +0 -1
  369. package/assets/esri/core/workers/chunks/df30053a10d4930924d5.js +0 -1
  370. package/assets/esri/core/workers/chunks/e5bb7ee670a3ba5ba3fe.js +0 -1
  371. package/assets/esri/core/workers/chunks/e5c75459de85a6dd2f14.js +0 -1
  372. package/assets/esri/core/workers/chunks/e798ca23f02a2dd65bd4.js +0 -1
  373. package/assets/esri/core/workers/chunks/f1299b4fc760ccca1518.js +0 -1
  374. package/assets/esri/core/workers/chunks/f65adaaa33d9f3b131f6.js +0 -1
  375. package/assets/esri/core/workers/chunks/f6715b8765cd36d81ec8.js +0 -1
  376. package/assets/esri/core/workers/chunks/f7fa932ade85cb2847b6.js +0 -1
  377. package/assets/esri/core/workers/chunks/f9a4f4efd63b8189a4eb.js +0 -1
  378. package/assets/esri/core/workers/chunks/f9b654f801cb416e9e17.js +0 -1
  379. package/assets/esri/core/workers/chunks/fa1c58e5b582d61a03ab.js +0 -1
  380. package/assets/esri/core/workers/chunks/fdec3a2e100688c42e41.js +0 -1
  381. package/assets/esri/core/workers/chunks/fefbde2c2e527bb716ee.js +0 -1
  382. /package/assets/esri/core/workers/chunks/{a12803108c3b12808698.js.LICENSE.txt → 242cad472fbc38b24dbc.js.LICENSE.txt} +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[895,3276,6061],{61691(e,t,n){n.d(t,{G:()=>o});class o{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}},76061(e,t,n){n.d(t,{S:()=>r});var o=n(61691);class r extends o.G{m_aGeoms;m_iGeom=-1;constructor(e){super(),this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},4144(e,t,n){n.d(t,{Hh:()=>c,fz:()=>l,g7:()=>u,s1:()=>s,zo:()=>a});var o=n(76061),r=n(83290);let i;function s(){return!!i&&(0,r.i)()}async function c(){if(!s()){const[e,t]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(9192)]).then(n.bind(n,9192)),Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756)]).then(n.bind(n,15756)).then(e=>e.aP).then(({injectPe:e})=>e),(0,r.l)()]);i=new e.OperatorProject,t(r.p)}}function u(e,t){return i.execute(e,t,null)}function a(e,t){const n=i.executeMany(new o.S(e),t,null);return Array.from(n)}function l(){return i.supportsCurves()}},83276(e,t,n){n.r(t),n.d(t,{execute:()=>h,executeMany:()=>p,isLoaded:()=>f,load:()=>m,supportsCurves:()=>l});var o=n(4144),r=n(17499);let i,s,c,u,a,l;function f(){return!!i&&(0,o.s1)()}async function m(){if(!f()){const[e,t]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(1666)]).then(n.bind(n,78125)),Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(6129)]).then(n.bind(n,86129)),(0,o.Hh)()]);i=e.fromGeometry,s=e.fromSpatialReference,c=e.getSpatialReference,u=e.toGeometry,a=t.createProjectionTransformation,l=(0,o.fz)()}}function h(e,t,n){const l=c(e),f=a(s(l),s(t),n),m=u((0,o.g7)(i(e),f),t);return!n?.zConversionDisabled&&m?.hasZ&&(0,r.g)([m],l,t),m}function p(e,t,n){const l=e.map(i),f=c(e),m=a(s(f),s(t),n),h=(0,o.zo)(l,m).map(e=>u(e,t));return!n?.zConversionDisabled&&h&&(0,r.g)(h,f,t),h}},17499(e,t,n){n.d(t,{g:()=>i});var o=n(60408),r=n(62815);function i(e,t,n){let i;for(const s of e)if(s&&(0,o.Pv)(s)&&!("vertexAttributes"in s)){if(!i){const e="type"in s?s.type:(0,o.$B)(s);if(i=(0,r.N)(e,t,n),!i)return}i(s)}}},62815(e,t,n){n.d(t,{N:()=>c,d:()=>u});var o=n(86211),r=n(73941),i=n(21325),s=n(52006);function c(e,t,n){const o=u(t,n);if(1!==o)switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,o);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e){if(e.curvePaths)for(const n of e.curvePaths)for(const e of n){const n=(0,s.yP)(e);n.length>2&&(n[2]*=t)}if(e.paths)for(const n of e.paths)for(const e of n)e.length>2&&(e[2]*=t)}}(e,o);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e){if(e.curveRings)for(const n of e.curveRings)for(const e of n){const n=(0,s.yP)(e);n.length>2&&(n[2]*=t)}if(e.rings)for(const n of e.rings)for(const e of n)e.length>2&&(e[2]*=t)}}(e,o);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const n of e.points)n.length>2&&(n[2]*=t)}(e,o);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,o);default:return}}function u(e,t){return null==e||null==t||(0,i.aI)(e,t)||(0,r.xP)(e)||(0,r.xP)(t)?1:(0,o.G9)(e)/(0,o.G9)(t)}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[895,3276,6061],{61691(e,t,n){n.d(t,{G:()=>o});class o{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}},76061(e,t,n){n.d(t,{S:()=>r});var o=n(61691);class r extends o.G{m_aGeoms;m_iGeom=-1;constructor(e){super(),this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},4144(e,t,n){n.d(t,{Hh:()=>c,fz:()=>l,g7:()=>u,s1:()=>s,zo:()=>a});var o=n(76061),r=n(83290);let i;function s(){return!!i&&(0,r.i)()}async function c(){if(!s()){const[e,t]=await Promise.all([Promise.all([n.e(6042),n.e(1878),n.e(8885),n.e(5756),n.e(9192)]).then(n.bind(n,9192)),Promise.all([n.e(6042),n.e(1878),n.e(8885),n.e(5756)]).then(n.bind(n,15756)).then(e=>e.aP).then(({injectPe:e})=>e),(0,r.l)()]);i=new e.OperatorProject,t(r.p)}}function u(e,t){return i.execute(e,t,null)}function a(e,t){const n=i.executeMany(new o.S(e),t,null);return Array.from(n)}function l(){return i.supportsCurves()}},83276(e,t,n){n.r(t),n.d(t,{execute:()=>h,executeMany:()=>p,isLoaded:()=>f,load:()=>m,supportsCurves:()=>l});var o=n(4144),r=n(17499);let i,s,c,u,a,l;function f(){return!!i&&(0,o.s1)()}async function m(){if(!f()){const[e,t]=await Promise.all([Promise.all([n.e(6042),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(1666)]).then(n.bind(n,78125)),Promise.all([n.e(6042),n.e(1878),n.e(8885),n.e(5756),n.e(6129)]).then(n.bind(n,86129)),(0,o.Hh)()]);i=e.fromGeometry,s=e.fromSpatialReference,c=e.getSpatialReference,u=e.toGeometry,a=t.createProjectionTransformation,l=(0,o.fz)()}}function h(e,t,n){const l=c(e),f=a(s(l),s(t),n),m=u((0,o.g7)(i(e),f),t);return!n?.zConversionDisabled&&m?.hasZ&&(0,r.g)([m],l,t),m}function p(e,t,n){const l=e.map(i),f=c(e),m=a(s(f),s(t),n),h=(0,o.zo)(l,m).map(e=>u(e,t));return!n?.zConversionDisabled&&h&&(0,r.g)(h,f,t),h}},17499(e,t,n){n.d(t,{g:()=>i});var o=n(60408),r=n(62815);function i(e,t,n){let i;for(const s of e)if(s&&(0,o.Pv)(s)&&!("vertexAttributes"in s)){if(!i){const e="type"in s?s.type:(0,o.$B)(s);if(i=(0,r.N)(e,t,n),!i)return}i(s)}}},62815(e,t,n){n.d(t,{N:()=>c,d:()=>u});var o=n(86211),r=n(73941),i=n(21325),s=n(52006);function c(e,t,n){const o=u(t,n);if(1!==o)switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,o);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e){if(e.curvePaths)for(const n of e.curvePaths)for(const e of n){const n=(0,s.yP)(e);n.length>2&&(n[2]*=t)}if(e.paths)for(const n of e.paths)for(const e of n)e.length>2&&(e[2]*=t)}}(e,o);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e){if(e.curveRings)for(const n of e.curveRings)for(const e of n){const n=(0,s.yP)(e);n.length>2&&(n[2]*=t)}if(e.rings)for(const n of e.rings)for(const e of n)e.length>2&&(e[2]*=t)}}(e,o);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const n of e.points)n.length>2&&(n[2]*=t)}(e,o);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,o);default:return}}function u(e,t){return null==e||null==t||(0,i.aI)(e,t)||(0,r.xP)(e)||(0,r.xP)(t)?1:(0,o.G9)(e)/(0,o.G9)(t)}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6061,8377],{61691(e,t,n){n.d(t,{G:()=>o});class o{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}},76061(e,t,n){n.d(t,{S:()=>r});var o=n(61691);class r extends o.G{m_aGeoms;m_iGeom=-1;constructor(e){super(),this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},4144(e,t,n){n.d(t,{Hh:()=>c,fz:()=>f,g7:()=>a,s1:()=>s,zo:()=>l});var o=n(76061),r=n(83290);let i;function s(){return!!i&&(0,r.i)()}async function c(){if(!s()){const[e,t]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(9192)]).then(n.bind(n,9192)),Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756)]).then(n.bind(n,15756)).then(e=>e.aP).then(({injectPe:e})=>e),(0,r.l)()]);i=new e.OperatorProject,t(r.p)}}function a(e,t){return i.execute(e,t,null)}function l(e,t){const n=i.executeMany(new o.S(e),t,null);return Array.from(n)}function f(){return i.supportsCurves()}},8377(e,t,n){n.r(t),n.d(t,{execute:()=>p,executeMany:()=>y,isLoaded:()=>m,load:()=>h});var o=n(4144),r=n(17499),i=n(60408);let s,c,a,l,f,u;function m(){return!!s&&(0,o.s1)()}async function h(){if(!m()){const[e,t]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(7992)]).then(n.bind(n,83299)),Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(6129)]).then(n.bind(n,86129)),(0,o.Hh)()]);s=e.fromGeometries,c=e.fromGeometry,a=e.fromSpatialReference,l=e.toGeometry,f=e.getSpatialReference,u=t.createProjectionTransformation}}function p(e,t,n){const s=c(e),f=a(t),m=u(s.getSpatialReference(),f,n),h=l((0,o.g7)(s.getGeometry(),m),f);return!n?.zConversionDisabled&&h&&!(0,i.uW)(h)&&e.spatialReference&&(0,r.g)([h],e.spatialReference,t),h}function y(e,t,n){const[i,c]=s(e),m=a(t),h=u(c,m,n),p=(0,o.zo)(i,h).map(e=>l(e,m));if(!n?.zConversionDisabled&&p){const n=f(e);n&&(0,r.g)(p,n,t)}return p}},17499(e,t,n){n.d(t,{g:()=>i});var o=n(60408),r=n(62815);function i(e,t,n){let i;for(const s of e)if(s&&(0,o.Pv)(s)&&!("vertexAttributes"in s)){if(!i){const e="type"in s?s.type:(0,o.$B)(s);if(i=(0,r.N)(e,t,n),!i)return}i(s)}}},62815(e,t,n){n.d(t,{N:()=>c,d:()=>a});var o=n(86211),r=n(73941),i=n(21325),s=n(52006);function c(e,t,n){const o=a(t,n);if(1!==o)switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,o);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e){if(e.curvePaths)for(const n of e.curvePaths)for(const e of n){const n=(0,s.yP)(e);n.length>2&&(n[2]*=t)}if(e.paths)for(const n of e.paths)for(const e of n)e.length>2&&(e[2]*=t)}}(e,o);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e){if(e.curveRings)for(const n of e.curveRings)for(const e of n){const n=(0,s.yP)(e);n.length>2&&(n[2]*=t)}if(e.rings)for(const n of e.rings)for(const e of n)e.length>2&&(e[2]*=t)}}(e,o);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const n of e.points)n.length>2&&(n[2]*=t)}(e,o);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,o);default:return}}function a(e,t){return null==e||null==t||(0,i.aI)(e,t)||(0,r.xP)(e)||(0,r.xP)(t)?1:(0,o.G9)(e)/(0,o.G9)(t)}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6061,8377],{61691(e,t,n){n.d(t,{G:()=>o});class o{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}},76061(e,t,n){n.d(t,{S:()=>r});var o=n(61691);class r extends o.G{m_aGeoms;m_iGeom=-1;constructor(e){super(),this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},4144(e,t,n){n.d(t,{Hh:()=>c,fz:()=>f,g7:()=>a,s1:()=>s,zo:()=>l});var o=n(76061),r=n(83290);let i;function s(){return!!i&&(0,r.i)()}async function c(){if(!s()){const[e,t]=await Promise.all([Promise.all([n.e(6042),n.e(1878),n.e(8885),n.e(5756),n.e(9192)]).then(n.bind(n,9192)),Promise.all([n.e(6042),n.e(1878),n.e(8885),n.e(5756)]).then(n.bind(n,15756)).then(e=>e.aP).then(({injectPe:e})=>e),(0,r.l)()]);i=new e.OperatorProject,t(r.p)}}function a(e,t){return i.execute(e,t,null)}function l(e,t){const n=i.executeMany(new o.S(e),t,null);return Array.from(n)}function f(){return i.supportsCurves()}},8377(e,t,n){n.r(t),n.d(t,{execute:()=>p,executeMany:()=>y,isLoaded:()=>m,load:()=>h});var o=n(4144),r=n(17499),i=n(60408);let s,c,a,l,f,u;function m(){return!!s&&(0,o.s1)()}async function h(){if(!m()){const[e,t]=await Promise.all([Promise.all([n.e(6042),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(7992)]).then(n.bind(n,83299)),Promise.all([n.e(6042),n.e(1878),n.e(8885),n.e(5756),n.e(6129)]).then(n.bind(n,86129)),(0,o.Hh)()]);s=e.fromGeometries,c=e.fromGeometry,a=e.fromSpatialReference,l=e.toGeometry,f=e.getSpatialReference,u=t.createProjectionTransformation}}function p(e,t,n){const s=c(e),f=a(t),m=u(s.getSpatialReference(),f,n),h=l((0,o.g7)(s.getGeometry(),m),f);return!n?.zConversionDisabled&&h&&!(0,i.uW)(h)&&e.spatialReference&&(0,r.g)([h],e.spatialReference,t),h}function y(e,t,n){const[i,c]=s(e),m=a(t),h=u(c,m,n),p=(0,o.zo)(i,h).map(e=>l(e,m));if(!n?.zConversionDisabled&&p){const n=f(e);n&&(0,r.g)(p,n,t)}return p}},17499(e,t,n){n.d(t,{g:()=>i});var o=n(60408),r=n(62815);function i(e,t,n){let i;for(const s of e)if(s&&(0,o.Pv)(s)&&!("vertexAttributes"in s)){if(!i){const e="type"in s?s.type:(0,o.$B)(s);if(i=(0,r.N)(e,t,n),!i)return}i(s)}}},62815(e,t,n){n.d(t,{N:()=>c,d:()=>a});var o=n(86211),r=n(73941),i=n(21325),s=n(52006);function c(e,t,n){const o=a(t,n);if(1!==o)switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,o);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e){if(e.curvePaths)for(const n of e.curvePaths)for(const e of n){const n=(0,s.yP)(e);n.length>2&&(n[2]*=t)}if(e.paths)for(const n of e.paths)for(const e of n)e.length>2&&(e[2]*=t)}}(e,o);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e){if(e.curveRings)for(const n of e.curveRings)for(const e of n){const n=(0,s.yP)(e);n.length>2&&(n[2]*=t)}if(e.rings)for(const n of e.rings)for(const e of n)e.length>2&&(e[2]*=t)}}(e,o);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const n of e.points)n.length>2&&(n[2]*=t)}(e,o);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,o);default:return}}function a(e,t){return null==e||null==t||(0,i.aI)(e,t)||(0,r.xP)(e)||(0,r.xP)(t)?1:(0,o.G9)(e)/(0,o.G9)(t)}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[891,1550,1666,1948,6061,7992,8125],{61691(t,e,r){r.d(e,{G:()=>s});class s{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},76061(t,e,r){r.d(e,{S:()=>n});var s=r(61691);class n extends s.G{m_aGeoms;m_iGeom=-1;constructor(t){super(),this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},65416(t,e,r){r.d(e,{e:()=>a});var s=r(15756),n=r(78125);const i=new class{supportsCurves(){return!0}getOperatorType(){return 1}execute(t,e,r,n,i){return(0,s.as)(t,e,r,n,i)}isValidDE9IM(t){return 0===(0,s.at)(t)}accelerateGeometry(t,e,r){return(0,s.au)(t,e,r)}canAccelerateGeometry(t){return(0,s.av)(t)}};function a(t,e,r){return i.execute((0,n.fromGeometry)(t),(0,n.fromGeometry)(e),(0,n.fromSpatialReference)(t.spatialReference),r,null)}const o=i.supportsCurves(),u=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:function(t){const e=(0,n.getSpatialReference)(t);return i.accelerateGeometry((0,n.fromGeometry)(t),(0,n.fromSpatialReference)(e),1)},execute:a,isValidDE9IM:function(t){return i.isValidDE9IM(t)},supportsCurves:o},Symbol.toStringTag,{value:"Module"}));r.d(e,["r",0,u])},69397(t,e,r){r.d(e,{Qf:()=>o,Qh:()=>i,lM:()=>n});var s=r(34275);function n(t){if(!t)return 0;let e=h;for(const r in t)t.hasOwnProperty(r)&&(e+=a(t[r],!1));return e}function i(t){if(!t)return 0;if("number"==typeof t[0])return o(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return u(t,8);let r=c;for(let s=0;s<e;s++)r+=a(t[s]);return r}(t);let e=h;for(const r in t)t.hasOwnProperty(r)&&(e+=a(t[r]));return e}function a(t,e=!0){switch(typeof t){case"object":return e?i(t):h;case"string":return function(t){return 32+t.length}(t);case"number":return 16;case"boolean":return 4;default:return 8}}function o(...t){return t.reduce((t,e)=>t+(e?(0,s.iu)(e)?e.byteLength+l:Array.isArray(e)?u(e,16):0:0),0)}function u(t,e){return c+t.length*e}const h=32,c=16,l=145},87992(t,e,r){r.d(e,{JR:()=>V,ME:()=>C,MY:()=>Z,NO:()=>M,Nh:()=>P,V2:()=>S,_s:()=>_,e6:()=>I,gh:()=>E,tr:()=>G,uX:()=>p});var s=r(5482),n=r(16930),i=r(19419),a=r(60408),o=r(21325),u=r(513),h=r(50954),c=r(79567),l=r(52006),f=r(49663),m=r(46068),g=r(92722);class p{constructor({type:t,spatialReference:e,vertexCount:r,vertexXY:s,vertexZ:n,vertexM:i,partCount:a,partOffsets:o,partFlags:u,segmentFlags:h,segmentIndices:c,segmentParams:l,segmentCountArc:f,segmentCountBezier:m}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=r,this.vertexXY=s,this.vertexZ=n,this.vertexM=i,this.partCount=a,this.partOffsets=o,this.partFlags=u,this.segmentFlags=h,this.segmentIndices=c,this.segmentParams=l,this.segmentCountArc=f,this.segmentCountBezier=m}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:r}=this;return t&&t-e-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return this.segmentCountArc+this.segmentCountBezier>0}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function t(t){return t?64+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){const{type:t,vertexCount:e,partCount:r,hasZ:s,hasM:n,segmentCountArc:i,segmentCountBezier:a}=this,o=S(t,e,r,s,n,this.hasCurves(),i,a);o.spatialReference=this.spatialReference;const{vertexXY:u,vertexZ:h,vertexM:c}=this;if(o.vertexXY.set(u.subarray(0,2*e),0),o.vertexZ?.set(h.subarray(0,e),0),o.vertexM?.set(c.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;o.partFlags.set(e.subarray(0,r+1)),o.partOffsets.set(t.subarray(0,r+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:r,segmentParams:s,segmentParamCount:n}=this;o.segmentFlags.set(t.subarray(0,e),0),o.segmentIndices.set(r.subarray(0,e),0),o.segmentParams.set(s.subarray(0,n),0)}return o}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,o.aI)(this.spatialReference,t.spatialReference))return!1;if(this.vertexCount!==t.vertexCount||this.partCount!==t.partCount)return!1;if(this.hasZ!==t.hasZ||this.hasM!==t.hasM)return!1;if(this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;const r=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,r)=>Math.abs(t-r)>e||isNaN(t)!==isNaN(r);for(let e=0;e<this.vertexCount;++e)if(r(this.vertexXY[2*e],t.vertexXY[2*e])||r(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexM[e],t.vertexM[e]))return!1;for(let e=0;e<this.partCount;++e)if(this.partFlags[e]!==t.partFlags[e]||this.partOffsets[e]!==t.partOffsets[e])return!1;if(this.hasCurves()){for(let e=0;e<this.vertexCount;++e)if(this.segmentFlags[e]!==t.segmentFlags[e]||this.segmentIndices[e]!==t.segmentIndices[e])return!1;for(let e=0;e<this.segmentParamCount;++e)if(r(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new x(this):[][Symbol.iterator]()}}class x{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 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 v(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 v{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 r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[r++],s=e[r++],n=e[r++],i=e[r++];return{b:[this.end,[t,s],[n,i]]}}const s=e[r++],n=e[r++],i=e[r++],a=e[r++],o=e[r++],u=e[r++];r++,r++;const h=e[r++],c=e[r++];if(!Boolean(4&s)&&1===i)return{c:[this.end,[h,c]]};const l=2&s?0:1,f=1&s?0:1;return{a:[this.end,[o,u],l,f,a,n,i]}}}function M(t,e){const r={stack:[],error:void 0,hasError:!1};try{return e??=(0,i.Ie)(),(0,s.mS)(r,new O(t,["vertexZ","vertexM","spatialReference"]),!1),(0,i.bx)(e,function(t){let e;const{vertexCount:r,vertexXY:n,vertexZ:a,vertexM:o}=t,u=R(t);if(t.hasCurves()){const r={stack:[],error:void 0,hasError:!1};try{(0,s.mS)(r,new O(t,["vertexZ","vertexM"]),!1);const n=(0,i.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:r}of e.segments)(0,c.e)(n,t,r),t=(0,l.yP)(r)}const[a,o,h,f]=n;e={xmin:a,ymin:o,xmax:h,ymax:f,spatialReference:u}}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}else{let t,s,i,a;t=s=1/0,i=a=-1/0;for(let e=0;e<r;++e){const r=n[2*e],o=n[2*e+1];t=Math.min(t,r),i=Math.max(i,r),s=Math.min(s,o),a=Math.max(a,o)}e={xmin:t,ymin:s,xmax:i,ymax:a,spatialReference:u}}if(a){let t=1/0,r=-1/0;for(const e of a)t=Math.min(t,e),r=Math.max(r,e);e.zmin=t,e.zmax=r}if(o){let t=1/0,r=-1/0;for(const e of o)t=Math.min(t,e),r=Math.max(r,e);e.mmin=t,e.mmax=r}return e}(t)),e}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}function C(t){let e,r,s;if((0,a.fT)(t)){s="point";const{x:n,y:i,z:a,m:o}=t,u=[n,i];null!=a&&u.push(a),null!=o&&u.push(o),r=[[u]],e=1}else(0,a.U9)(t)?(s="multipoint",r=[t.points],e=t.points.length):(0,a.Rg)(t)?(s="polyline",r=t.curvePaths??t.paths,e=r.reduce((t,e)=>t+e.length,0)):(s="polygon",r=t.curveRings??t.rings,e=r.reduce((t,e)=>(0===e.length||(t+=e.length,A(e[0],(0,l.yP)(e.at(-1)))&&--t),t),0));const n=S(s,e,s.includes("point")?0:r.length,(0,a.Pv)(t),(0,a.W0)(t),(0,l.Ed)(t)),{hasZ:i,hasM:o,vertexXY:u,vertexZ:h,vertexM:c}=n;function f(t){u[2*g]=t[0],u[2*g+1]=t[1],i&&(h[g]=t[2]),o&&(c[g]=t[m]),++g}n.spatialReference=t.spatialReference??void 0;const m=n.hasZ?3:2;let g=0;if(!n.isMultipart()){if(!i&&!o){for(const[t,e]of r[0])u[2*g]=t,u[2*g+1]=e,++g;return n}for(const t of r[0])f(t);return n}const p="polygon"===s,{partOffsets:x}=n;let y=0;if(!(0,l.Ed)(t)){for(const t of r){if(x[y++]=g,0===t.length)continue;let e=t.length;if(p&&A(t[0],t.at(-1))&&--e,i||o)for(let r=0;r<e;++r)f(t[r]);else for(let r=0;r<e;++r){const[e,s]=t[r];u[2*g]=e,u[2*g+1]=s,++g}}return x[y]=g,n}function d(t){const e=v+t;if(e<=(n.segmentParams?.length??0))return;let r=e*F;r=20*Math.ceil(r/20);const s=n.segmentParams;n.segmentParams=new Float64Array(r),null!=s&&n.segmentParams.set(s)}let v=0;for(const t of r){if(n.partOffsets[y++]=g,0===t.length)continue;const e=t[0];let r=e;for(let e=1;e<t.length;++e){const s=t[e];f(r);const i=g-1;(0,l.wY)(s)?(d(10),++n.segmentCountArc,v=_(r,s,n,i,v),r=s.a[0]):(0,l.DA)(s)?(d(10),++n.segmentCountArc,v=b(r,s,n,i,v),r=s.a[0]):(0,l.aO)(s)?(d(10),++n.segmentCountArc,v=I(r,s,n,i,v),r=s.c[0]):(0,l.n1)(s)?(d(4),++n.segmentCountBezier,v=G(0,s,n,i,v),r=s.b[0]):r=s}p&&A(e,r)||f(r)}return n.partOffsets[y]=g,n}function E(t){const e=w(t),{vertexCount:r,partCount:s,hasZ:n,hasM:i}=t,a=R(t);if("point"===t.type){const[e,r]=t.vertexXY,s=t.vertexZ?.[0],n=t.vertexM?.[0];return{x:e,y:r,z:s,m:n,spatialReference:a}}let o=0;if("multipoint"===t.type){const t=[];for(;o<r;)t.push(e(o++));return{points:t,spatialReference:a,hasZ:n,hasM:i}}const u="polygon"===t.type;if(!t.hasCurves()){const r=new Array;for(let n=0;n<s;++n){const s=t.partOffsets[n+1],i=new Array;for(;o<s;)i.push(e(o++));u&&i.length>0&&i.push(i[0]),r.push(i)}return u?{rings:r,hasZ:n,hasM:i,spatialReference:a}:{paths:r,hasZ:n,hasM:i,spatialReference:a}}const h=new Array;for(const{segments:e,startVertex:r}of t.parts){const t=[r];for(const{curve:r}of e)t.push(r);h.push(t)}return u?{rings:[],curveRings:h,hasZ:n,hasM:i,spatialReference:a}:{paths:[],curvePaths:h,hasZ:n,hasM:i,spatialReference:a}}function P(t,{lengths:e,coords:r,hasZ:s,hasM:n},i){const a=t.includes("point")?0:e.length,o="polygon"===t,u="point"===t?1:e.reduce((t,e)=>t+e,0)-(o?a:0);s??=!1,n??=!1;const h=S(t,u,a,s,n,!1,0,0);if(h.spatialReference=i??void 0,!h.isMultipart()){for(let t=0,e=0;t<u;++t)h.vertexXY[2*t]=r[e++],h.vertexXY[2*t+1]=r[e++],s&&(h.vertexZ[t]=r[e++]),n&&(h.vertexM[t]=r[e++]);return h}const c=2+Number(s)+Number(n);let l=0,f=0;h.partOffsets[0]=0;for(const t of e){const e=h.partOffsets[f],i=e+t-Number(o);h.partOffsets[++f]=i;for(let t=e;t<i;++t)h.vertexXY[2*t]=r[l++],h.vertexXY[2*t+1]=r[l++],s&&(h.vertexZ[t]=r[l++]),n&&(h.vertexM[t]=r[l++]);o&&(l+=c)}return h}function V({type:t,vertexCount:e,vertexXY:r,vertexZ:s,vertexM:n,partCount:i,partOffsets:a,hasZ:o,hasM:u}){const h=new g.A([],[],o,u);i=Math.max(i,1);const c="polygon"===t;let l=0;for(let t=0;t<i;++t){const i=a?.[t+1]??e,f=h.coords.length;for(let t=l;t<i;++t)h.coords.push(r[2*t],r[2*t+1]),o&&h.coords.push(s[t]),u&&h.coords.push(n[t]);if(c){const t=l;h.coords.push(r[2*t],r[2*t+1]),o&&h.coords.push(s[t]),u&&h.coords.push(n[t])}h.lengths.push((h.coords.length-f)/h.stride),l=i}return"point"===t&&(h.lengths.length=0),h}function Z(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,r=t.isCustomWkid()?0:t.getOldID();if(r<=0)return{wkt:e};let s=t.getLatestID();(s<=0||s===r)&&(s=void 0);const n=t.getVCS();if(null==n)return{wkid:r,latestWkid:s,wkt:e};const i=n.isCustomWkid()?0:n.getOldID();if(i<=0)return{wkt:e};let a=t.getLatestVerticalID();return(a<=0||a===i)&&(a=void 0),{wkid:r,wkt:e,latestWkid:s,vcsWkid:i,latestVcsWkid:a}}(t.getSpatialReference()),t=t.getGeometry()),new p({...t.toFlatGeometry(),spatialReference:e})}class O{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const r of e)t[r]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function R({spatialReference:t}){return t instanceof n.A?t.toJSON():t}function w({vertexXY:t,vertexZ:e,vertexM:r}){return e?r?s=>[t[2*s],t[2*s+1],e[s],r[s]]:r=>[t[2*r],t[2*r+1],e[r]]:r?e=>[t[2*e],t[2*e+1],r[e]]:e=>[t[2*e],t[2*e+1]]}function A(t,e){return t.every((t,r)=>t===e[r])}function S(t,e,r,s,n,i,a,o){a??=0,o??=0;const u=new p({type:t,vertexCount:e,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:a,segmentCountBezier:o});let h=2*Float64Array.BYTES_PER_ELEMENT*e;s&&(h+=Float64Array.BYTES_PER_ELEMENT*e),n&&(h+=Float64Array.BYTES_PER_ELEMENT*e),u.isMultipart()&&(h+=(r+1)*Int32Array.BYTES_PER_ELEMENT,h+=(r+1)*Int8Array.BYTES_PER_ELEMENT),i&&(h+=e*Int8Array.BYTES_PER_ELEMENT,h+=e*Int32Array.BYTES_PER_ELEMENT,h+=u.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const c=new ArrayBuffer(h);let l=0;return u.vertexXY=new Float64Array(c,l,2*e),l+=u.vertexXY.byteLength,s&&(u.vertexZ=new Float64Array(c,l,e),l+=u.vertexZ.byteLength),n&&(u.vertexM=new Float64Array(c,l,e),l+=u.vertexM.byteLength),i&&(u.segmentParams=new Float64Array(c,l,u.segmentParamCount),l+=u.segmentParams.byteLength,u.segmentIndices=new Int32Array(c,l,e),u.segmentIndices.fill(X),l+=u.segmentIndices.byteLength),u.isMultipart()&&(u.partOffsets=new Int32Array(c,l,r+1),l+=u.partOffsets.byteLength,u.partFlags=new Int8Array(c,l,r+1),l+=u.partFlags.byteLength,"polygon"===u.type&&u.partFlags.subarray(0,r).fill(1)),i&&(u.segmentFlags=new Int8Array(c,l,e),u.segmentFlags.fill(1),l+=u.segmentFlags.byteLength),u}function _(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){r[i]=4,s[i]=a;const[o,[u,h],c,l,f,g,p]=e.a;let x=4;l||(x|=1),c||(x|=2);const y=(0,m.SW)(t,e),[d,v]=(0,m.Uk)(y,.5);return n[a++]=x,n[a++]=g,n[a++]=p,n[a++]=f,n[a++]=u,n[a++]=h,n[a++]=y.u2-y.u1,n[a++]=y.u1,n[a++]=d,n[a++]=v,a}function b(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){r[i]=4,s[i]=a;const o=(0,f.io)(t,e);return Y(o,4,...(0,u.mq)(o,.5),n,a)}function I(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){return r[i]=4,s[i]=a,Y((0,h.pM)(t,e),0,...e.c[1],n,a)}function Y(t,e,r,s,n,i){const{cx:a,cy:o,thetaStart:u,thetaEnd:h,radius:c}=t;return u>h||(e|=1),Math.abs(h-u)<=Math.PI||(e|=2),n[i++]=e,n[i++]=c,n[i++]=1,n[i++]=0,n[i++]=a,n[i++]=o,n[i++]=h-u,n[i++]=u,n[i++]=r,n[i++]=s,i}function G(t,{b:[e,[r,s],[n,i]]},{segmentFlags:a,segmentIndices:o,segmentParams:u},h,c){return a[h]=2,o[h]=c,u[c++]=r,u[c++]=s,u[c++]=n,u[c++]=i,c}const F=1.61803,X=-1},43628(t,e,r){r.d(e,{execute:()=>s.e});var s=r(65416);r(78125)},78125(t,e,r){r.r(e),r.d(e,{fromExtent:()=>x,fromGeometry:()=>p,fromMultipoint:()=>y,fromPoint:()=>d,fromPolygon:()=>v,fromPolyline:()=>M,fromPolylineUsingImportOperator:()=>C,fromSpatialReference:()=>E,getSpatialReference:()=>g,toExtent:()=>V,toGeometry:()=>P,toMultipoint:()=>Z,toPoint:()=>O,toPolygon:()=>R,toPolyline:()=>w});var s=r(83661),n=r(55537),i=r(95213),a=r(88885),o=r(5443),u=r(48526),h=r(86738),c=r(39829),l=r(82799),f=(r(90293),r(83299));const m="_gxVersion";function g(t){return Array.isArray(t)?t[0].spatialReference:t.spatialReference}function p(t){switch(t.type){case"point":return d(t);case"multipoint":return y(t);case"polyline":return M(t);case"polygon":return v(t);case"extent":return x(t);default:throw new Error(`Unsupported geometry type: ${t.type}`)}}function x(t){if(!t.getCacheValue(m)){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(m,e)}return t.getCacheValue(m)}function y(t){if(!t.getCacheValue(m)){const e=new a.M,r=new i.P,s=t.points,n=t.hasM,o=t.hasZ,u=o?3:2;for(let t=0,i=s.length;t<i;t++){const i=s[t];r.setXYCoords(i[0],i[1]),o&&r.setZ(i[2]??0),n&&r.setM(i[u]??NaN),e.add(r)}t.setCacheValue(m,e)}return t.getCacheValue(m)}function d(t){if(!t.getCacheValue(m)){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(m,e)}return t.getCacheValue(m)}function v(t){if(!t.getCacheValue(m)){const{curveRings:e,hasM:r,hasZ:s,rings:n}=t,i=(0,f.fromGeometryToGXGeometry)({curveRings:e,hasM:r,hasZ:s,rings:n});t.setCacheValue(m,i)}return t.getCacheValue(m)}function M(t){if(!t.getCacheValue(m)){const{curvePaths:e,hasM:r,hasZ:s,paths:n}=t,i=(0,f.fromGeometryToGXGeometry)({curvePaths:e,hasM:r,hasZ:s,paths:n});t.setCacheValue(m,i)}return t.getCacheValue(m)}function C(t){if(!t.getCacheValue(m)){const{curvePaths:e,hasM:r,hasZ:s,paths:n}=t,i=(0,f.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:e,hasM:r,hasZ:s,paths:n});t.setCacheValue(m,i)}return t.getCacheValue(m)}function E(t){return t.cache?(t.cache[m]??=(0,f.fromSpatialReference)(t),t.cache[m]):(0,f.fromSpatialReference)(t)}function P(t,e){if(t)switch(t.getGeometryType()){case n.G.enumPoint:return O(t,e);case n.G.enumEnvelope:return V(t,e);case n.G.enumMultiPoint:return Z(t,e);case n.G.enumPolyline:return w(t,e);case n.G.enumPolygon:return R(t,e)}return null}function V(t,e){if(t.isEmpty())return null;const r=new o.A({xmin:t.getXMin(),ymin:t.getYMin(),xmax:t.getXMax(),ymax:t.getYMax(),spatialReference:e}),s=t.getDescription();if(s.hasM()){const e=t.queryInterval(2,0);r.mmin=e.vmin,r.mmax=e.vmax}if(s.hasZ()){const e=t.queryInterval(1,0);r.zmin=e.vmin,r.zmax=e.vmax}return r.setCacheValue(m,t),r}function Z(t,e){if(t.isEmpty())return null;const r=t.getDescription(),s=r.hasM(),n=r.hasZ(),a=[],o=new i.P;for(let e=0,r=t.getPointCount();e<r;e++){t.getPointByVal(e,o);const r=[o.getX(),o.getY()];n&&r.push(o.getZ()),s&&r.push(o.getM()),a.push(r)}const h=new u.A({hasM:s,hasZ:n,points:a,spatialReference:e});return h.setCacheValue(m,t),h}function O(t,e){if(t instanceof s.P)return new h.A({x:t.x,y:t.y,spatialReference:e});if(t.isEmpty())return null;const r=new h.A({x:t.getX(),y:t.getY(),spatialReference:e}),n=t.getDescription();return n.hasM()&&(r.m=t.getM()),n.hasZ()&&(r.z=t.getZ()),r.setCacheValue(m,t),r}function R(t,e){if(t.isEmpty())return null;const r=c.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return r.setCacheValue(m,t),r}function w(t,e){if(t.isEmpty())return null;const r=l.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return r.setCacheValue(m,t),r}},92722(t,e,r){r.d(e,{A:()=>n});var s=r(69397);class n{constructor(t=[],e=[],r=!1,s=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=r,this.hasM=s}static fromJSON({lengths:t,coords:e,hasZ:r,hasM:s}){return new n(t,e,r||!1,s||!1)}static fromRect([t,e,r,s]){const i=r-t,a=s-e;return new n([5],[t,e,i,0,0,a,-i,0,0,-a])}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,s.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 r of this.lengths){if(r<3)continue;const{stride:s}=this;let n=this.coords[s*e],i=this.coords[s*e+1];for(let a=1;a<r;a+=1){const r=s*(e+a),o=this.coords[r],u=this.coords[r+1];t+=-.5*(o-n)*(u+i),n=o,i=u}e+=r}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:r}=this;for(const s of this.lengths){for(let n=0;n<s;n++){const s=r*(e+n);t(this.coords[s],this.coords[s+1])}e+=s}}deltaDecode(){const t=this.clone(),{coords:e,lengths:r}=t;let s=0;const{stride:n}=this;for(const t of r){for(let r=1;r<t;r++){const t=n*(s+r);e[t]+=e[t-n],e[t+1]+=e[t+1-n]}s+=t}return t}clone(t){if(this.isPoint)return new n([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:r,size:s}=this,i=this.coords.slice(0,s*r);return t?(t.set(i),new n(e,t,this.hasZ,this.hasM)):new n(e,Array.from(i),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const r=new Array(e*t);for(let e=0,s=0;e<r.length;e+=t)r[s++]=this.coords[e],r[s++]=this.coords[e+1];return new n(this.lengths,r,!1,!1)}}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7367],{87367(n,t,e){e.r(t),e.d(t,{registerFunctions:()=>D});var r=e(47609),a=e(15695),i=e(66395),o=e(85935),s=e(78502),c=e(78878),u=e(80672),l=e(98919),f=e(71163),d=e(4576),w=e(5443),y=e(91075),h=e(48526),A=e(86738),S=e(39829),N=e(82799),g=e(65864),m=e(70333),O=e(11254);async function p(n,t,e){const r=m.id?.findCredential(n.restUrl);if(!r)return null;if("loaded"===n.loadStatus&&""===t&&n.user?.sourceJSON&&!1===e)return n.user.sourceJSON;const a={responseType:"json",query:{f:"json"}};if(e&&(a.query.returnUserLicenseTypeExtensions=!0),""===t){const t=await(0,O.A)(n.restUrl+"/community/self",a);if(t.data){const n=t.data;if(n?.username)return n}return null}const i=await(0,O.A)(n.restUrl+"/community/users/"+t,a);if(i.data){const n=i.data;return n.error?null:n}return null}var J=e(54218);function v(n){if(null==n)return n;switch(typeof n){case"string":case"number":return n;default:throw new o.D$("InvalidParameter",null)}}function D(n){"async"===n.mode&&(n.functions.disjoint=function(t,e){return n.standardFunctionAsync(t,e,(n,t,r)=>(r=(0,c.H)(r),(0,l.ZL)(r,e),null===r[0]||null===r[1]||(0,f.C)("disjoint",[r[0].toJSON(),r[1].toJSON()])))},n.functions.intersects=function(t,e){return n.standardFunctionAsync(t,e,(n,t,r)=>(r=(0,c.H)(r),(0,l.ZL)(r,e),null!==r[0]&&null!==r[1]&&(0,f.C)("intersects",[r[0].toJSON(),r[1].toJSON()])))},n.functions.touches=function(t,e){return n.standardFunctionAsync(t,e,(n,t,r)=>(r=(0,c.H)(r),(0,l.ZL)(r,e),null!==r[0]&&null!==r[1]&&(0,f.C)("touches",[r[0].toJSON(),r[1].toJSON()])))},n.functions.crosses=function(t,e){return n.standardFunctionAsync(t,e,(n,t,r)=>(r=(0,c.H)(r),(0,l.ZL)(r,e),null!==r[0]&&null!==r[1]&&(0,f.C)("crosses",[r[0].toJSON(),r[1].toJSON()])))},n.functions.within=function(t,e){return n.standardFunctionAsync(t,e,(n,t,r)=>(r=(0,c.H)(r),(0,l.ZL)(r,e),null!==r[0]&&null!==r[1]&&(0,f.C)("within",[r[0].toJSON(),r[1].toJSON()])))},n.functions.contains=function(t,e){return n.standardFunctionAsync(t,e,(n,t,r)=>(r=(0,c.H)(r),(0,l.ZL)(r,e),null!==r[0]&&null!==r[1]&&(0,f.C)("contains",[r[0].toJSON(),r[1].toJSON()])))},n.functions.overlaps=function(t,e){return n.standardFunctionAsync(t,e,(n,t,r)=>(r=(0,c.H)(r),(0,l.ZL)(r,e),null!==r[0]&&null!==r[1]&&(0,f.C)("overlaps",[r[0].toJSON(),r[1].toJSON()])))},n.functions.equals=function(t,e){return n.standardFunctionAsync(t,e,(n,t,r)=>((0,c.B)(r,2,2,e),r[0]===r[1]||(r[0]instanceof y.A&&r[1]instanceof y.A?(0,f.C)("equals",[r[0].toJSON(),r[1].toJSON()]):((0,c.e)(r[0])&&(0,c.e)(r[1])||!!((0,c.n)(r[0])&&(0,c.n)(r[1])||(0,c.o)(r[0])&&(0,c.o)(r[1])))&&r[0].equals(r[1]))))},n.functions.relate=function(t,e){return n.standardFunctionAsync(t,e,(n,t,r)=>{if(r=(0,c.H)(r),(0,c.B)(r,3,3,e),r[0]instanceof y.A&&r[1]instanceof y.A)return(0,f.C)("relate",[r[0].toJSON(),r[1].toJSON(),(0,c.s)(r[2])]);if(r[0]instanceof y.A&&null===r[1])return!1;if(r[1]instanceof y.A&&null===r[0])return!1;if(null===r[0]&&null===r[1])return!1;throw new o.D$("InvalidParameter",e)})},n.functions.intersection=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,r)=>(r=(0,c.H)(r),(0,l.ZL)(r,e),null===r[0]||null===r[1]?null:(0,g.rS)(await(0,f.C)("intersection",[r[0].toJSON(),r[1].toJSON()]))))},n.functions.union=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(0===(a=(0,c.H)(a)).length)throw new o.D$("WrongNumberOfParameters",e);const i=[];if(1===a.length)if((0,J.cy)(a[0])){for(const n of(0,c.H)(a[0]))if(null!==n){if(!(n instanceof y.A))throw new o.D$("InvalidParameter",e);i.push(n.toJSON())}}else{if(!(0,c.g)(a[0])){if(a[0]instanceof y.A)return(0,c.J)((0,s.Yq)(a[0]),t.spatialReference);if(null===a[0])return null;throw new o.D$("InvalidParameter",e)}for(const n of(0,c.H)(a[0].toArray()))if(null!==n){if(!(n instanceof y.A))throw new o.D$("InvalidParameter",e);i.push(n.toJSON())}}else for(const n of a)if(null!==n){if(!(n instanceof y.A))throw new o.D$("InvalidParameter",e);i.push(n.toJSON())}return 0===i.length?null:(0,g.rS)(await(0,f.C)("union",[i]))})},n.functions.difference=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,r)=>(r=(0,c.H)(r),(0,l.ZL)(r,e),null===r[0]?null:null===r[1]?(0,s.Yq)(r[0]):(0,g.rS)(await(0,f.C)("difference",[r[0].toJSON(),r[1].toJSON()]))))},n.functions.symmetricdifference=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,r)=>(r=(0,c.H)(r),(0,l.ZL)(r,e),null===r[0]&&null===r[1]?null:null===r[0]?(0,s.Yq)(r[1]):null===r[1]?(0,s.Yq)(r[0]):(0,g.rS)(await(0,f.C)("symmetricDifference",[r[0].toJSON(),r[1].toJSON()]))))},n.functions.clip=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,r)=>{if(r=(0,c.H)(r),(0,c.B)(r,2,2,e),!(r[1]instanceof w.A)&&null!==r[1])throw new o.D$("InvalidParameter",e);if(null===r[0])return null;if(!(r[0]instanceof y.A))throw new o.D$("InvalidParameter",e);return null===r[1]?null:(0,g.rS)(await(0,f.C)("clip",[r[0].toJSON(),r[1].toJSON()]))})},n.functions.cut=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,r)=>{if(r=(0,c.H)(r),(0,c.B)(r,2,2,e),!(r[1]instanceof N.A)&&null!==r[1])throw new o.D$("InvalidParameter",e);if(null===r[0])return[];if(!(r[0]instanceof y.A))throw new o.D$("InvalidParameter",e);return null===r[1]?[(0,s.Yq)(r[0])]:(await(0,f.C)("cut",[r[0].toJSON(),r[1].toJSON()])).map(n=>(0,g.rS)(n))})},n.functions.area=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if((0,c.B)(a,1,2,e),a=(0,c.H)(a),(0,c.k)(a[0])){const n=await a[0].sumArea(v(a[1]),null,t.abortSignal);if(t.abortSignal.aborted)throw new o.D$("Cancelled",e);return n}let i=a[0];if(((0,J.cy)(i)||(0,c.g)(i))&&(i=(0,c.K)(a[0],t.spatialReference)),null===i)return 0;if(!(i instanceof y.A))throw new o.D$("InvalidParameter",e);return(0,f.C)("area",[i.toJSON(),v(a[1])])})},n.functions.areageodetic=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{(0,c.B)(a,1,3,e);let i=(a=(0,c.H)(a))[0];((0,J.cy)(i)||(0,c.g)(i))&&(i=(0,c.K)(i,t.spatialReference));const s=v(a[1]),u=(0,l.rE)(a[2]);if((0,c.k)(i)){const n=await i.sumArea(s,u,t.abortSignal);if(t.abortSignal.aborted)throw new o.D$("Cancelled",e);return n}if(null==i)return 0;if(!(0,c.f)(i))throw new o.D$("InvalidParameter",e);return(0,f.C)("geodeticArea",[i.toJSON(),s,u])})},n.functions.length=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if((0,c.B)(a,1,2,e),a=(0,c.H)(a),(0,c.k)(a[0])){const n=await a[0].sumLength(v(a[1]),null,t.abortSignal);if(t.abortSignal.aborted)throw new o.D$("Cancelled",e);return n}let i=a[0];if(((0,J.cy)(a[0])||(0,c.g)(a[0]))&&(i=(0,c.L)(a[0],t.spatialReference)),null===i)return 0;if(!(i instanceof y.A))throw new o.D$("InvalidParameter",e);return(0,f.C)("length",[i.toJSON(),v(a[1])])})},n.functions.length3d=function(t,r){return n.standardFunctionAsync(t,r,async(n,a,i)=>{if((0,c.B)(i,1,2,r),null===(i=(0,c.H)(i))[0])return 0;let s=i[0];if(((0,J.cy)(i[0])||(0,c.g)(i[0]))&&(s=(0,c.L)(i[0],t.spatialReference)),null===s)return 0;if(!(s instanceof y.A))throw new o.D$("InvalidParameter",r);if(!0===s.hasZ){const{convertFromSpatialReferenceUnit:n,toLengthUnit:t}=await Promise.resolve().then(e.bind(e,40547)),r=(0,l.UI)(s);return n(s.spatialReference,t(i[1]),r)}return(0,f.C)("length",[s.toJSON(),v(i[1])])})},n.functions.lengthgeodetic=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{(0,c.B)(a,1,3,e);let i=(a=(0,c.H)(a))[0];((0,J.cy)(a[0])||(0,c.g)(a[0]))&&(i=(0,c.L)(a[0],t.spatialReference));const s=v(a[1]),u=(0,l.rE)(a[2]);if((0,c.k)(i)){const n=await i.sumLength(s,u,t.abortSignal);if(t.abortSignal.aborted)throw new o.D$("Cancelled",e);return n}if(null===i)return 0;if(!(0,c.f)(i))throw new o.D$("InvalidParameter",e);return(0,f.C)("geodeticLength",[i.toJSON(),s,u])})},n.functions.distance=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{a=(0,c.H)(a),(0,c.B)(a,2,3,e);let i=a[0];if(((0,J.cy)(a[0])||(0,c.g)(a[0]))&&(i=(0,c.M)(a[0],t.spatialReference)),!(i instanceof y.A))throw new o.D$("InvalidParameter",e);let s=a[1];if(((0,J.cy)(a[1])||(0,c.g)(a[1]))&&(s=(0,c.M)(a[1],t.spatialReference)),!(s instanceof y.A))throw new o.D$("InvalidParameter",e);return(0,f.C)("distance",[i.toJSON(),s.toJSON(),v(a[2])])})},n.functions.distancegeodetic=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,r)=>{r=(0,c.H)(r),(0,c.B)(r,2,4,e);const a=r[0];if(!(a instanceof A.A))throw new o.D$("InvalidParameter",e);const i=r[1];if(!(i instanceof A.A))throw new o.D$("InvalidParameter",e);const s=new N.A({paths:[],spatialReference:a.spatialReference});return s.addPath([a,i]),(0,f.C)("geodeticLength",[s.toJSON(),v(r[2]),(0,l.rE)(r[3])])})},n.functions.densify=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,r)=>{if(r=(0,c.H)(r),(0,c.B)(r,2,3,e),null===r[0])return null;if(!(r[0]instanceof y.A))throw new o.D$("InvalidParameter",e);const a=(0,c.r)(r[1]);if(isNaN(a))throw new o.D$("InvalidParameter",e);if(a<=0)throw new o.D$("InvalidParameter",e);switch(r[0].type){case"polygon":case"polyline":case"extent":return(0,g.rS)(await(0,f.C)("densify",[r[0].toJSON(),a,v(r[2])]));default:return r[0]}})},n.functions.densifygeodetic=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,r)=>{r=(0,c.H)(r),(0,c.B)(r,2,4,e);const a=r[0];if(null==a)return null;if(!(0,c.f)(a))throw new o.D$("InvalidParameter",e);const i=(0,c.r)(r[1]);if(isNaN(i))throw new o.D$("InvalidParameter",e);if(i<=0)throw new o.D$("InvalidParameter",e);const s=v(r[2]),u=(0,l.rE)(r[3]);switch(a.type){case"polygon":case"polyline":case"extent":return(0,g.rS)(await(0,f.C)("geodeticDensify",[a.toJSON(),i,s,u]));default:return a}})},n.functions.generalize=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,r)=>{if(r=(0,c.H)(r),(0,c.B)(r,2,4,e),null===r[0])return null;if(!(r[0]instanceof y.A))throw new o.D$("InvalidParameter",e);const a=(0,c.r)(r[1]);if(isNaN(a))throw new o.D$("InvalidParameter",e);const i=(0,c.N)((0,c.O)(r[2],!0));return(0,g.rS)(await(0,f.C)("generalize",[r[0].toJSON(),a,v(r[3]),{removeDegenerateParts:i}]))})},n.functions.buffer=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,r)=>{if(r=(0,c.H)(r),(0,c.B)(r,2,3,e),null===r[0])return null;if(!(r[0]instanceof y.A))throw new o.D$("InvalidParameter",e);const a=(0,c.r)(r[1]);if(isNaN(a))throw new o.D$("InvalidParameter",e);return 0===a?(0,s.Yq)(r[0]):(0,g.rS)(await(0,f.C)("buffer",[r[0].toJSON(),a,v(r[2])]))})},n.functions.buffergeodetic=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,r)=>{r=(0,c.H)(r),(0,c.B)(r,2,4,e);const a=r[0];if(null==a)return null;if(!(0,c.f)(a))throw new o.D$("InvalidParameter",e);const i=(0,c.r)(r[1]);if(isNaN(i))throw new o.D$("InvalidParameter",e);if(0===i)return(0,s.Yq)(a);const u=v(r[2]),d=(0,l.rE)(r[3]);return(0,g.rS)(await(0,f.C)("geodesicBuffer",[a.toJSON(),i,u,d]))})},n.functions.offset=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,r)=>{r=(0,c.H)(r),(0,c.B)(r,2,6,e);const a=r[0];if(null===a)return null;if(!(a instanceof S.A||a instanceof N.A))throw new o.D$("InvalidParameter",e);const i=(0,c.r)(r[1]);if(isNaN(i))throw new o.D$("InvalidParameter",e);const s=r[2],u=(0,l.R$)(r[3]),d=(0,c.r)((0,c.O)(r[4],10));if(isNaN(d))throw new o.D$("InvalidParameter",e);const w=(0,c.r)((0,c.O)(r[5],0));if(isNaN(w))throw new o.D$("InvalidParameter",e);return(0,g.rS)(await(0,f.C)("offset",[a.toJSON(),i,v(s),u,d,w]))})},n.functions.rotate=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,r)=>{if(r=(0,c.H)(r),(0,c.B)(r,2,3,e),null===r[0])return null;if(!(r[0]instanceof y.A))throw new o.D$("InvalidParameter",e);const a=r[0]instanceof w.A?S.A.fromExtent(r[0]):r[0],i=(0,c.r)(r[1]);if(isNaN(i))throw new o.D$("InvalidParameter",e);const s=(0,c.O)(r[2],null);if(null===s){const n="point"===a.type?a:a.extent?.center;return(0,g.rS)(await(0,f.C)("rotate",[a.toJSON(),i,n?.x,n?.y]))}if(s instanceof A.A)return(0,g.rS)(await(0,f.C)("rotate",[a.toJSON(),i,s.x,s.y]));throw new o.D$("InvalidParameter",e)})},n.functions.centroid=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(a=(0,c.H)(a),(0,c.B)(a,1,2,e),null===a[0])return null;const i=(0,l.Hz)(a[1]);let s=a[0];if(((0,J.cy)(a[0])||(0,c.g)(a[0]))&&(s="geometric"===i?(0,c.M)(a[0],t.spatialReference):(0,c.K)(a[0],t.spatialReference),null===s))return null;if(!(s instanceof y.A))throw new o.D$("InvalidParameter",e);return(0,g.rS)("geometric"===i?await(0,f.C)("centroid",[s.toJSON()]):await(0,f.C)("labelPoint",[s.toJSON()]))})},n.functions.measuretocoordinate=function(t,e){return n.standardFunctionAsync(t,e,l.Cd)},n.functions.pointtocoordinate=function(t,e){return n.standardFunctionAsync(t,e,l.kr)},n.functions.distancetocoordinate=function(t,e){return n.standardFunctionAsync(t,e,l.Bn)},n.functions.multiparttosinglepart=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(a=(0,c.H)(a),(0,c.B)(a,1,1,e),null===a[0])return null;if(!(a[0]instanceof y.A))throw new o.D$("InvalidParameter",e);if(a[0]instanceof A.A)return[(0,c.J)((0,s.Yq)(a[0]),t.spatialReference)];if(a[0]instanceof w.A)return[(0,c.J)((0,s.Yq)(a[0]),t.spatialReference)];const i=(0,g.rS)(await(0,f.C)("simplify",[a[0].toJSON()]));if(i instanceof S.A){const n=[],t=[];for(let e=0;e<i.rings.length;e++)if(i.isClockwise(i.rings[e])){const t=(0,g.rS)({rings:[i.rings[e]],hasZ:!0===i.hasZ,hasM:!0===i.hasM,spatialReference:i.spatialReference.toJSON()});n.push(t)}else t.push({ring:i.rings[e],pt:i.getPoint(e,0)});for(let e=0;e<t.length;e++)for(let r=0;r<n.length;r++)if(n[r].contains(t[e].pt)){n[r].addRing(t[e].ring);break}return n}if(i instanceof N.A){const n=[];for(let t=0;t<i.paths.length;t++){const e=(0,g.rS)({paths:[i.paths[t]],hasZ:!0===i.hasZ,hasM:!0===i.hasM,spatialReference:i.spatialReference.toJSON()});n.push(e)}return n}if(a[0]instanceof h.A){const n=[],e=(0,c.J)((0,s.Yq)(a[0]),t.spatialReference);for(let t=0;t<e.points.length;t++)n.push(e.getPoint(t));return n}return null})},n.functions.isselfintersecting=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,e)=>{(0,c.B)(e,1,1,t);let r=(e=(0,c.H)(e))[0];if(((0,J.cy)(e[0])||(0,c.g)(e[0]))&&(r=(0,c.L)(e[0],n.spatialReference)),r instanceof h.A){const n=r.points;for(let t=0;t<n.length;t++)for(let e=t+1;e<n.length;e++)if((0,d.aI)(n[t],n[e]))return!0;return!1}return(r instanceof N.A||r instanceof S.A)&&await(0,f.C)("isSelfIntersecting",[r.toJSON()])})},n.functions.issimple=function(t,e){return n.standardFunctionAsync(t,e,(n,t,r)=>{if(r=(0,c.H)(r),(0,c.B)(r,1,1,e),null===r[0])return!0;if(!(r[0]instanceof y.A))throw new o.D$("InvalidParameter",e);return(0,f.C)("isSimple",[r[0].toJSON()])})},n.functions.simplify=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,r)=>{if(r=(0,c.H)(r),(0,c.B)(r,1,1,e),null===r[0])return null;if(!(r[0]instanceof y.A))throw new o.D$("InvalidParameter",e);return(0,g.rS)(await(0,f.C)("simplify",[r[0].toJSON()]))})},n.functions.convexhull=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,r)=>{if(r=(0,c.H)(r),(0,c.B)(r,1,1,e),null===r[0])return null;if(!(r[0]instanceof y.A))throw new o.D$("InvalidParameter",e);return(0,g.rS)(await(0,f.C)("convexHull",[r[0].toJSON()]))})},n.functions.getuser=function(t,e){return n.standardFunctionAsync(t,e,async(n,i,s)=>{(0,c.B)(s,0,2,e);let l=(0,c.O)(s[1],""),f=!0===l;if(l=!0===l||!1===l?"":(0,c.s)(l),0===s.length||s[0]instanceof r.A){const n=(0,u.RI)(t,s.length>0?s[0]:null),e=await p(n,l,f);return null!=e?(0,a.Tg)(JSON.parse(JSON.stringify(e))):null}let d=null;if((0,c.k)(s[0])&&(d=s[0]),d){if(f=!1,l)return null;await d.load();const n=await d.getOwningSystemUrl();if(!n){if(!l){const n=await d.getIdentityUser();return null!=n?(0,a.Tg)({username:n}):null}return null}const e=(0,u.RI)(t,new r.A(n)),i=await p(e,l,f);return null!=i?(0,a.Tg)(JSON.parse(JSON.stringify(i))):null}throw new o.D$("InvalidParameter",e)})},n.functions.nearestcoordinate=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,r)=>{if(r=(0,c.H)(r),(0,c.B)(r,2,2,e),!(r[0]instanceof y.A||null===r[0]))throw new o.D$("InvalidParameter",e);if(!(r[1]instanceof A.A||null===r[1]))throw new o.D$("InvalidParameter",e);if(null===r[0]||null===r[1])return null;const a=r[0]instanceof w.A?S.A.fromExtent(r[0]):r[0],s=await(0,f.C)("getNearestCoordinate",[a.toJSON(),r[1].toJSON(),{calculateLeftRightSide:!0}]);return null===s?null:i.A.createMutable({__proto__:null,coordinate:(0,g.rS)(s.coordinate),distance:s.distance,sideOfLine:0===s.distance?"straddle":s.isRightSide?"right":"left"})})},n.functions.nearestvertex=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,r)=>{if(r=(0,c.H)(r),(0,c.B)(r,2,2,e),!(r[0]instanceof y.A||null===r[0]))throw new o.D$("InvalidParameter",e);if(!(r[1]instanceof A.A||null===r[1]))throw new o.D$("InvalidParameter",e);if(null===r[0]||null===r[1])return null;const a=r[0]instanceof w.A?S.A.fromExtent(r[0]):r[0],s=await(0,f.C)("getNearestVertex",[a.toJSON(),r[1].toJSON()]);return null==s?null:i.A.createMutable({__proto__:null,coordinate:(0,g.rS)(s.coordinate),distance:s.distance,sideOfLine:s.sideOfLine})})})}},71163(n,t,e){e.d(t,{C:()=>c});var r=e(29953);let a,i,o=!1;function s(){return a??=(0,r.ho)("arcadeGeometryOperatorsWorker").then(n=>{i=n,o=!0,a=void 0})}async function c(n,t){return o?i.apply("invokeGeometryOp",[n,t]):(await s(),c(n,t))}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7367],{87367(n,t,e){e.r(t),e.d(t,{registerFunctions:()=>D});var r=e(47609),a=e(67862),i=e(66395),o=e(85935),s=e(78502),c=e(78878),u=e(80672),l=e(98919),f=e(71163),d=e(4576),w=e(5443),y=e(91075),h=e(48526),A=e(86738),S=e(39829),N=e(82799),g=e(65864),m=e(70333),O=e(11254);async function p(n,t,e){const r=m.id?.findCredential(n.restUrl);if(!r)return null;if("loaded"===n.loadStatus&&""===t&&n.user?.sourceJSON&&!1===e)return n.user.sourceJSON;const a={responseType:"json",query:{f:"json"}};if(e&&(a.query.returnUserLicenseTypeExtensions=!0),""===t){const t=await(0,O.A)(n.restUrl+"/community/self",a);if(t.data){const n=t.data;if(n?.username)return n}return null}const i=await(0,O.A)(n.restUrl+"/community/users/"+t,a);if(i.data){const n=i.data;return n.error?null:n}return null}var v=e(54218);function J(n){if(null==n)return n;switch(typeof n){case"string":case"number":return n;default:throw new o.D$("InvalidParameter",null)}}function D(n){"async"===n.mode&&(n.functions.disjoint=function(t,e){return n.standardFunctionAsync(t,e,(n,t,r)=>(r=(0,c.H)(r),(0,l.ZL)(r,e),null===r[0]||null===r[1]||(0,f.C)("disjoint",[r[0].toJSON(),r[1].toJSON()])))},n.functions.intersects=function(t,e){return n.standardFunctionAsync(t,e,(n,t,r)=>(r=(0,c.H)(r),(0,l.ZL)(r,e),null!==r[0]&&null!==r[1]&&(0,f.C)("intersects",[r[0].toJSON(),r[1].toJSON()])))},n.functions.touches=function(t,e){return n.standardFunctionAsync(t,e,(n,t,r)=>(r=(0,c.H)(r),(0,l.ZL)(r,e),null!==r[0]&&null!==r[1]&&(0,f.C)("touches",[r[0].toJSON(),r[1].toJSON()])))},n.functions.crosses=function(t,e){return n.standardFunctionAsync(t,e,(n,t,r)=>(r=(0,c.H)(r),(0,l.ZL)(r,e),null!==r[0]&&null!==r[1]&&(0,f.C)("crosses",[r[0].toJSON(),r[1].toJSON()])))},n.functions.within=function(t,e){return n.standardFunctionAsync(t,e,(n,t,r)=>(r=(0,c.H)(r),(0,l.ZL)(r,e),null!==r[0]&&null!==r[1]&&(0,f.C)("within",[r[0].toJSON(),r[1].toJSON()])))},n.functions.contains=function(t,e){return n.standardFunctionAsync(t,e,(n,t,r)=>(r=(0,c.H)(r),(0,l.ZL)(r,e),null!==r[0]&&null!==r[1]&&(0,f.C)("contains",[r[0].toJSON(),r[1].toJSON()])))},n.functions.overlaps=function(t,e){return n.standardFunctionAsync(t,e,(n,t,r)=>(r=(0,c.H)(r),(0,l.ZL)(r,e),null!==r[0]&&null!==r[1]&&(0,f.C)("overlaps",[r[0].toJSON(),r[1].toJSON()])))},n.functions.equals=function(t,e){return n.standardFunctionAsync(t,e,(n,t,r)=>((0,c.E)(r,2,2,e),r[0]===r[1]||(r[0]instanceof y.A&&r[1]instanceof y.A?(0,f.C)("equals",[r[0].toJSON(),r[1].toJSON()]):((0,c.e)(r[0])&&(0,c.e)(r[1])||!!((0,c.r)(r[0])&&(0,c.r)(r[1])||(0,c.q)(r[0])&&(0,c.q)(r[1])))&&r[0].equals(r[1]))))},n.functions.relate=function(t,e){return n.standardFunctionAsync(t,e,(n,t,r)=>{if(r=(0,c.H)(r),(0,c.E)(r,3,3,e),r[0]instanceof y.A&&r[1]instanceof y.A)return(0,f.C)("relate",[r[0].toJSON(),r[1].toJSON(),(0,c.w)(r[2])]);if(r[0]instanceof y.A&&null===r[1])return!1;if(r[1]instanceof y.A&&null===r[0])return!1;if(null===r[0]&&null===r[1])return!1;throw new o.D$("InvalidParameter",e)})},n.functions.intersection=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,r)=>(r=(0,c.H)(r),(0,l.ZL)(r,e),null===r[0]||null===r[1]?null:(0,g.rS)(await(0,f.C)("intersection",[r[0].toJSON(),r[1].toJSON()]))))},n.functions.union=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(0===(a=(0,c.H)(a)).length)throw new o.D$("WrongNumberOfParameters",e);const i=[];if(1===a.length)if((0,v.cy)(a[0])){for(const n of(0,c.H)(a[0]))if(null!==n){if(!(n instanceof y.A))throw new o.D$("InvalidParameter",e);i.push(n.toJSON())}}else{if(!(0,c.g)(a[0])){if(a[0]instanceof y.A)return(0,c.J)((0,s.Yq)(a[0]),t.spatialReference);if(null===a[0])return null;throw new o.D$("InvalidParameter",e)}for(const n of(0,c.H)(a[0].toArray()))if(null!==n){if(!(n instanceof y.A))throw new o.D$("InvalidParameter",e);i.push(n.toJSON())}}else for(const n of a)if(null!==n){if(!(n instanceof y.A))throw new o.D$("InvalidParameter",e);i.push(n.toJSON())}return 0===i.length?null:(0,g.rS)(await(0,f.C)("union",[i]))})},n.functions.difference=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,r)=>(r=(0,c.H)(r),(0,l.ZL)(r,e),null===r[0]?null:null===r[1]?(0,s.Yq)(r[0]):(0,g.rS)(await(0,f.C)("difference",[r[0].toJSON(),r[1].toJSON()]))))},n.functions.symmetricdifference=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,r)=>(r=(0,c.H)(r),(0,l.ZL)(r,e),null===r[0]&&null===r[1]?null:null===r[0]?(0,s.Yq)(r[1]):null===r[1]?(0,s.Yq)(r[0]):(0,g.rS)(await(0,f.C)("symmetricDifference",[r[0].toJSON(),r[1].toJSON()]))))},n.functions.clip=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,r)=>{if(r=(0,c.H)(r),(0,c.E)(r,2,2,e),!(r[1]instanceof w.A)&&null!==r[1])throw new o.D$("InvalidParameter",e);if(null===r[0])return null;if(!(r[0]instanceof y.A))throw new o.D$("InvalidParameter",e);return null===r[1]?null:(0,g.rS)(await(0,f.C)("clip",[r[0].toJSON(),r[1].toJSON()]))})},n.functions.cut=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,r)=>{if(r=(0,c.H)(r),(0,c.E)(r,2,2,e),!(r[1]instanceof N.A)&&null!==r[1])throw new o.D$("InvalidParameter",e);if(null===r[0])return[];if(!(r[0]instanceof y.A))throw new o.D$("InvalidParameter",e);return null===r[1]?[(0,s.Yq)(r[0])]:(await(0,f.C)("cut",[r[0].toJSON(),r[1].toJSON()])).map(n=>(0,g.rS)(n))})},n.functions.area=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if((0,c.E)(a,1,2,e),a=(0,c.H)(a),(0,c.k)(a[0])){const n=await a[0].sumArea(J(a[1]),null,t.abortSignal);if(t.abortSignal.aborted)throw new o.D$("Cancelled",e);return n}let i=a[0];if(((0,v.cy)(i)||(0,c.g)(i))&&(i=(0,c.K)(a[0],t.spatialReference)),null===i)return 0;if(!(i instanceof y.A))throw new o.D$("InvalidParameter",e);return(0,f.C)("area",[i.toJSON(),J(a[1])])})},n.functions.areageodetic=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{(0,c.E)(a,1,3,e);let i=(a=(0,c.H)(a))[0];((0,v.cy)(i)||(0,c.g)(i))&&(i=(0,c.K)(i,t.spatialReference));const s=J(a[1]),u=(0,l.rE)(a[2]);if((0,c.k)(i)){const n=await i.sumArea(s,u,t.abortSignal);if(t.abortSignal.aborted)throw new o.D$("Cancelled",e);return n}if(null==i)return 0;if(!(0,c.f)(i))throw new o.D$("InvalidParameter",e);return(0,f.C)("geodeticArea",[i.toJSON(),s,u])})},n.functions.length=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if((0,c.E)(a,1,2,e),a=(0,c.H)(a),(0,c.k)(a[0])){const n=await a[0].sumLength(J(a[1]),null,t.abortSignal);if(t.abortSignal.aborted)throw new o.D$("Cancelled",e);return n}let i=a[0];if(((0,v.cy)(a[0])||(0,c.g)(a[0]))&&(i=(0,c.L)(a[0],t.spatialReference)),null===i)return 0;if(!(i instanceof y.A))throw new o.D$("InvalidParameter",e);return(0,f.C)("length",[i.toJSON(),J(a[1])])})},n.functions.length3d=function(t,r){return n.standardFunctionAsync(t,r,async(n,a,i)=>{if((0,c.E)(i,1,2,r),null===(i=(0,c.H)(i))[0])return 0;let s=i[0];if(((0,v.cy)(i[0])||(0,c.g)(i[0]))&&(s=(0,c.L)(i[0],t.spatialReference)),null===s)return 0;if(!(s instanceof y.A))throw new o.D$("InvalidParameter",r);if(!0===s.hasZ){const{convertFromSpatialReferenceUnit:n,toLengthUnit:t}=await Promise.resolve().then(e.bind(e,40547)),r=(0,l.UI)(s);return n(s.spatialReference,t(i[1]),r)}return(0,f.C)("length",[s.toJSON(),J(i[1])])})},n.functions.lengthgeodetic=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{(0,c.E)(a,1,3,e);let i=(a=(0,c.H)(a))[0];((0,v.cy)(a[0])||(0,c.g)(a[0]))&&(i=(0,c.L)(a[0],t.spatialReference));const s=J(a[1]),u=(0,l.rE)(a[2]);if((0,c.k)(i)){const n=await i.sumLength(s,u,t.abortSignal);if(t.abortSignal.aborted)throw new o.D$("Cancelled",e);return n}if(null===i)return 0;if(!(0,c.f)(i))throw new o.D$("InvalidParameter",e);return(0,f.C)("geodeticLength",[i.toJSON(),s,u])})},n.functions.distance=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{a=(0,c.H)(a),(0,c.E)(a,2,3,e);let i=a[0];if(((0,v.cy)(a[0])||(0,c.g)(a[0]))&&(i=(0,c.M)(a[0],t.spatialReference)),!(i instanceof y.A))throw new o.D$("InvalidParameter",e);let s=a[1];if(((0,v.cy)(a[1])||(0,c.g)(a[1]))&&(s=(0,c.M)(a[1],t.spatialReference)),!(s instanceof y.A))throw new o.D$("InvalidParameter",e);return(0,f.C)("distance",[i.toJSON(),s.toJSON(),J(a[2])])})},n.functions.distancegeodetic=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,r)=>{r=(0,c.H)(r),(0,c.E)(r,2,4,e);const a=r[0];if(!(a instanceof A.A))throw new o.D$("InvalidParameter",e);const i=r[1];if(!(i instanceof A.A))throw new o.D$("InvalidParameter",e);const s=new N.A({paths:[],spatialReference:a.spatialReference});return s.addPath([a,i]),(0,f.C)("geodeticLength",[s.toJSON(),J(r[2]),(0,l.rE)(r[3])])})},n.functions.densify=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,r)=>{if(r=(0,c.H)(r),(0,c.E)(r,2,3,e),null===r[0])return null;if(!(r[0]instanceof y.A))throw new o.D$("InvalidParameter",e);const a=(0,c.v)(r[1]);if(isNaN(a))throw new o.D$("InvalidParameter",e);if(a<=0)throw new o.D$("InvalidParameter",e);switch(r[0].type){case"polygon":case"polyline":case"extent":return(0,g.rS)(await(0,f.C)("densify",[r[0].toJSON(),a,J(r[2])]));default:return r[0]}})},n.functions.densifygeodetic=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,r)=>{r=(0,c.H)(r),(0,c.E)(r,2,4,e);const a=r[0];if(null==a)return null;if(!(0,c.f)(a))throw new o.D$("InvalidParameter",e);const i=(0,c.v)(r[1]);if(isNaN(i))throw new o.D$("InvalidParameter",e);if(i<=0)throw new o.D$("InvalidParameter",e);const s=J(r[2]),u=(0,l.rE)(r[3]);switch(a.type){case"polygon":case"polyline":case"extent":return(0,g.rS)(await(0,f.C)("geodeticDensify",[a.toJSON(),i,s,u]));default:return a}})},n.functions.generalize=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,r)=>{if(r=(0,c.H)(r),(0,c.E)(r,2,4,e),null===r[0])return null;if(!(r[0]instanceof y.A))throw new o.D$("InvalidParameter",e);const a=(0,c.v)(r[1]);if(isNaN(a))throw new o.D$("InvalidParameter",e);const i=(0,c.N)((0,c.O)(r[2],!0));return(0,g.rS)(await(0,f.C)("generalize",[r[0].toJSON(),a,J(r[3]),{removeDegenerateParts:i}]))})},n.functions.buffer=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,r)=>{if(r=(0,c.H)(r),(0,c.E)(r,2,3,e),null===r[0])return null;if(!(r[0]instanceof y.A))throw new o.D$("InvalidParameter",e);const a=(0,c.v)(r[1]);if(isNaN(a))throw new o.D$("InvalidParameter",e);return 0===a?(0,s.Yq)(r[0]):(0,g.rS)(await(0,f.C)("buffer",[r[0].toJSON(),a,J(r[2])]))})},n.functions.buffergeodetic=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,r)=>{r=(0,c.H)(r),(0,c.E)(r,2,4,e);const a=r[0];if(null==a)return null;if(!(0,c.f)(a))throw new o.D$("InvalidParameter",e);const i=(0,c.v)(r[1]);if(isNaN(i))throw new o.D$("InvalidParameter",e);if(0===i)return(0,s.Yq)(a);const u=J(r[2]),d=(0,l.rE)(r[3]);return(0,g.rS)(await(0,f.C)("geodesicBuffer",[a.toJSON(),i,u,d]))})},n.functions.offset=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,r)=>{r=(0,c.H)(r),(0,c.E)(r,2,6,e);const a=r[0];if(null===a)return null;if(!(a instanceof S.A||a instanceof N.A))throw new o.D$("InvalidParameter",e);const i=(0,c.v)(r[1]);if(isNaN(i))throw new o.D$("InvalidParameter",e);const s=r[2],u=(0,l.R$)(r[3]),d=(0,c.v)((0,c.O)(r[4],10));if(isNaN(d))throw new o.D$("InvalidParameter",e);const w=(0,c.v)((0,c.O)(r[5],0));if(isNaN(w))throw new o.D$("InvalidParameter",e);return(0,g.rS)(await(0,f.C)("offset",[a.toJSON(),i,J(s),u,d,w]))})},n.functions.rotate=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,r)=>{if(r=(0,c.H)(r),(0,c.E)(r,2,3,e),null===r[0])return null;if(!(r[0]instanceof y.A))throw new o.D$("InvalidParameter",e);const a=r[0]instanceof w.A?S.A.fromExtent(r[0]):r[0],i=(0,c.v)(r[1]);if(isNaN(i))throw new o.D$("InvalidParameter",e);const s=(0,c.O)(r[2],null);if(null===s){const n="point"===a.type?a:a.extent?.center;return(0,g.rS)(await(0,f.C)("rotate",[a.toJSON(),i,n?.x,n?.y]))}if(s instanceof A.A)return(0,g.rS)(await(0,f.C)("rotate",[a.toJSON(),i,s.x,s.y]));throw new o.D$("InvalidParameter",e)})},n.functions.centroid=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(a=(0,c.H)(a),(0,c.E)(a,1,2,e),null===a[0])return null;const i=(0,l.Hz)(a[1]);let s=a[0];if(((0,v.cy)(a[0])||(0,c.g)(a[0]))&&(s="geometric"===i?(0,c.M)(a[0],t.spatialReference):(0,c.K)(a[0],t.spatialReference),null===s))return null;if(!(s instanceof y.A))throw new o.D$("InvalidParameter",e);return(0,g.rS)("geometric"===i?await(0,f.C)("centroid",[s.toJSON()]):await(0,f.C)("labelPoint",[s.toJSON()]))})},n.functions.measuretocoordinate=function(t,e){return n.standardFunctionAsync(t,e,l.Cd)},n.functions.pointtocoordinate=function(t,e){return n.standardFunctionAsync(t,e,l.kr)},n.functions.distancetocoordinate=function(t,e){return n.standardFunctionAsync(t,e,l.Bn)},n.functions.multiparttosinglepart=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(a=(0,c.H)(a),(0,c.E)(a,1,1,e),null===a[0])return null;if(!(a[0]instanceof y.A))throw new o.D$("InvalidParameter",e);if(a[0]instanceof A.A)return[(0,c.J)((0,s.Yq)(a[0]),t.spatialReference)];if(a[0]instanceof w.A)return[(0,c.J)((0,s.Yq)(a[0]),t.spatialReference)];const i=(0,g.rS)(await(0,f.C)("simplify",[a[0].toJSON()]));if(i instanceof S.A){const n=[],t=[];for(let e=0;e<i.rings.length;e++)if(i.isClockwise(i.rings[e])){const t=(0,g.rS)({rings:[i.rings[e]],hasZ:!0===i.hasZ,hasM:!0===i.hasM,spatialReference:i.spatialReference.toJSON()});n.push(t)}else t.push({ring:i.rings[e],pt:i.getPoint(e,0)});for(let e=0;e<t.length;e++)for(let r=0;r<n.length;r++)if(n[r].contains(t[e].pt)){n[r].addRing(t[e].ring);break}return n}if(i instanceof N.A){const n=[];for(let t=0;t<i.paths.length;t++){const e=(0,g.rS)({paths:[i.paths[t]],hasZ:!0===i.hasZ,hasM:!0===i.hasM,spatialReference:i.spatialReference.toJSON()});n.push(e)}return n}if(a[0]instanceof h.A){const n=[],e=(0,c.J)((0,s.Yq)(a[0]),t.spatialReference);for(let t=0;t<e.points.length;t++)n.push(e.getPoint(t));return n}return null})},n.functions.isselfintersecting=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,e)=>{(0,c.E)(e,1,1,t);let r=(e=(0,c.H)(e))[0];if(((0,v.cy)(e[0])||(0,c.g)(e[0]))&&(r=(0,c.L)(e[0],n.spatialReference)),r instanceof h.A){const n=r.points;for(let t=0;t<n.length;t++)for(let e=t+1;e<n.length;e++)if((0,d.aI)(n[t],n[e]))return!0;return!1}return(r instanceof N.A||r instanceof S.A)&&await(0,f.C)("isSelfIntersecting",[r.toJSON()])})},n.functions.issimple=function(t,e){return n.standardFunctionAsync(t,e,(n,t,r)=>{if(r=(0,c.H)(r),(0,c.E)(r,1,1,e),null===r[0])return!0;if(!(r[0]instanceof y.A))throw new o.D$("InvalidParameter",e);return(0,f.C)("isSimple",[r[0].toJSON()])})},n.functions.simplify=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,r)=>{if(r=(0,c.H)(r),(0,c.E)(r,1,1,e),null===r[0])return null;if(!(r[0]instanceof y.A))throw new o.D$("InvalidParameter",e);return(0,g.rS)(await(0,f.C)("simplify",[r[0].toJSON()]))})},n.functions.convexhull=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,r)=>{if(r=(0,c.H)(r),(0,c.E)(r,1,1,e),null===r[0])return null;if(!(r[0]instanceof y.A))throw new o.D$("InvalidParameter",e);return(0,g.rS)(await(0,f.C)("convexHull",[r[0].toJSON()]))})},n.functions.getuser=function(t,e){return n.standardFunctionAsync(t,e,async(n,i,s)=>{(0,c.E)(s,0,2,e);let l=(0,c.O)(s[1],""),f=!0===l;if(l=!0===l||!1===l?"":(0,c.w)(l),0===s.length||s[0]instanceof r.A){const n=(0,u.RI)(t,s.length>0?s[0]:null),e=await p(n,l,f);return null!=e?(0,a.Tg)(JSON.parse(JSON.stringify(e))):null}let d=null;if((0,c.k)(s[0])&&(d=s[0]),d){if(f=!1,l)return null;await d.load();const n=await d.getOwningSystemUrl();if(!n){if(!l){const n=await d.getIdentityUser();return null!=n?(0,a.Tg)({username:n}):null}return null}const e=(0,u.RI)(t,new r.A(n)),i=await p(e,l,f);return null!=i?(0,a.Tg)(JSON.parse(JSON.stringify(i))):null}throw new o.D$("InvalidParameter",e)})},n.functions.nearestcoordinate=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,r)=>{if(r=(0,c.H)(r),(0,c.E)(r,2,2,e),!(r[0]instanceof y.A||null===r[0]))throw new o.D$("InvalidParameter",e);if(!(r[1]instanceof A.A||null===r[1]))throw new o.D$("InvalidParameter",e);if(null===r[0]||null===r[1])return null;const a=r[0]instanceof w.A?S.A.fromExtent(r[0]):r[0],s=await(0,f.C)("getNearestCoordinate",[a.toJSON(),r[1].toJSON(),{calculateLeftRightSide:!0}]);return null===s?null:i.A.createMutable({__proto__:null,coordinate:(0,g.rS)(s.coordinate),distance:s.distance,sideOfLine:0===s.distance?"straddle":s.isRightSide?"right":"left"})})},n.functions.nearestvertex=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,r)=>{if(r=(0,c.H)(r),(0,c.E)(r,2,2,e),!(r[0]instanceof y.A||null===r[0]))throw new o.D$("InvalidParameter",e);if(!(r[1]instanceof A.A||null===r[1]))throw new o.D$("InvalidParameter",e);if(null===r[0]||null===r[1])return null;const a=r[0]instanceof w.A?S.A.fromExtent(r[0]):r[0],s=await(0,f.C)("getNearestVertex",[a.toJSON(),r[1].toJSON()]);return null==s?null:i.A.createMutable({__proto__:null,coordinate:(0,g.rS)(s.coordinate),distance:s.distance,sideOfLine:s.sideOfLine})})})}},71163(n,t,e){e.d(t,{C:()=>c});var r=e(29953);let a,i,o=!1;function s(){return a??=(0,r.ho)("arcadeGeometryOperatorsWorker").then(n=>{i=n,o=!0,a=void 0})}async function c(n,t){return o?i.apply("invokeGeometryOp",[n,t]):(await s(),c(n,t))}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5524],{73354(t,e,n){n.d(e,{a:()=>l,b:()=>a,c:()=>i,d:()=>o,e:()=>f,f:()=>u,l:()=>h,n:()=>p,t:()=>r}),n(44208);var s=n(72727);function i(t,e,n){r(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function r(t,e,n,i=3,r=i){const o=(0,s.k)(t.length,i,3),a=(0,s.k)(e.length,r,3),c=Math.min(o,a),h=n[0],u=n[1],l=n[2],f=n[4],p=n[5],d=n[6],m=n[8],g=n[9],S=n[10],y=n[12],M=n[13],v=n[14];let k=0,E=0;for(let n=0;n<c;n++){const n=e[k],s=e[k+1],o=e[k+2];t[E]=h*n+f*s+m*o+y,t[E+1]=u*n+p*s+g*o+M,t[E+2]=l*n+d*s+S*o+v,k+=r,E+=i}return t}function o(t,e,n){a(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function a(t,e,n,i=3,r=i){const o=(0,s.k)(t.length,i,3),a=(0,s.k)(e.length,r,3),c=Math.min(o,a),h=n[0],u=n[1],l=n[2],f=n[3],p=n[4],d=n[5],m=n[6],g=n[7],S=n[8];let y=0,M=0;for(let n=0;n<c;n++){const n=e[y],s=e[y+1],o=e[y+2];t[M]=h*n+f*s+m*o,t[M+1]=u*n+p*s+g*o,t[M+2]=l*n+d*s+S*o,y+=r,M+=i}}function c(t,e,n,s=3,i=s){const r=Math.min(t.length/s,e.length/i);let o=0,a=0;for(let c=0;c<r;c++)t[a]=n*e[o],t[a+1]=n*e[o+1],t[a+2]=n*e[o+2],o+=i,a+=s;return t}function h(t,e,n,s){u(t.typedBuffer,e.typedBuffer,n,s,t.typedBufferStride,e.typedBufferStride)}function u(t,e,n,s,i=3,r=i){const o=Math.min(t.length/i,e.length/r);let a=0,c=0;const h=1/2.2;for(let u=0;u<o;u++)t[c]=s*(n*e[a])**h,t[c+1]=s*(n*e[a+1])**h,t[c+2]=s*(n*e[a+2])**h,a+=r,c+=i}function l(t,e,n,i=3,r=i){const o=(0,s.k)(t.length,i,3),a=(0,s.k)(e.length,r,3),c=Math.min(o,a);let h=0,u=0;for(let s=0;s<c;s++)t[u]=e[h]+n[0],t[u+1]=e[h+1]+n[1],t[u+2]=e[h+2]+n[2],h+=r,u+=i;return t}function f(t,e){p(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function p(t,e,n=3,s=n){const i=Math.min(t.length/n,e.length/s);let r=0,o=0;for(let a=0;a<i;a++){const i=e[r],a=e[r+1],c=e[r+2],h=i*i+a*a+c*c;if(h>0){const e=1/Math.sqrt(h);t[o]=e*i,t[o+1]=e*a,t[o+2]=e*c}r+=s,o+=n}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:u,linearToSRGBView:h,normalize:p,normalizeView:f,scale:c,scaleView:function(t,e,n){c(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)},shiftRight:function(t,e,n){const s=Math.min(t.count,e.count),i=t.typedBuffer,r=t.typedBufferStride,o=e.typedBuffer,a=e.typedBufferStride;let c=0,h=0;for(let t=0;t<s;t++)i[h]=o[c]>>n,i[h+1]=o[c+1]>>n,i[h+2]=o[c+2]>>n,c+=a,h+=r},transformMat3:a,transformMat3View:o,transformMat4:r,transformMat4View:i,translate:l},Symbol.toStringTag,{value:"Module"}))},69052(t,e,n){n.d(e,{hr:()=>i});var s=n(34727);class i{constructor(t,e){this.min=t,this.max=e,this.range=e-t}normalize(t,e=0,n=!1){return r(this.range,this.min,this.max,t,e,n)}clamp(t,e=0){return(0,s.qE)(t-e,this.min,this.max)+e}monotonic(t,e,n){return t<e?e:e+o(this.range,t-e,n)}minimalMonotonic(t,e,n){return r(this.range,t,t+this.range,e,n)}center(t,e,n){return e=this.monotonic(t,e,n),this.normalize((t+e)/2,n)}diff(t,e,n){return this.monotonic(t,e,n)-t}shortestSignedDiff(t,e){t=this.normalize(t);const n=(e=this.normalize(e))-t,s=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(n)<Math.abs(s)?n:s}contains(t,e,n){return e=this.minimalMonotonic(t,e),(n=this.minimalMonotonic(t,n))>t&&n<e}}function r(t,e,n,s,i=0,r=!1){return(s-=i)<e?s+=o(t,e-s):s>n&&(s-=o(t,s-n)),r&&s===n&&(s=e),s+i}function o(t,e,n=0){return Math.ceil((e-n)/t)*t+n}const a=new i(0,2*Math.PI),c=(new i(-Math.PI,Math.PI),new i(0,360));n.d(e,["ie",0,c,"uC",0,a])},44794(t,e,n){n.d(e,{v:()=>a});var s=n(4718),i=n(62788),r=n(95488);class o{constructor(t,e){this._observable=new r.I,this._value=t,this._equalityFunction=e}get value(){return(0,i.gc)(this._observable),this._value}set value(t){this._equalityFunction(t,this._value)||(this._value=t,this._observable.notify())}mutate(t){t(this._value),this._observable.notify()}}function a(t,e=s.gh){return new o(t,e)}},72727(t,e,n){function s(t,e,n){if(e<=0)return 0;const s=t-n;return s<0?0:Math.floor(s/e)+1}n.d(e,{k:()=>s}),n(53966)},31411(t,e,n){n.d(e,{GS:()=>b,gh:()=>R});var s=n(49186),i=n(56512),r=n(65864),o=n(4305),a=n(50954),c=n(52006),h=n(49663),u=n(46068),l=n(15507);const f=1e-6,p=[0,0];function d(t){return{maxSegmentLength:t.maxSegmentLength??0,maxDeviation:t.maxDeviation??0,maxSegmentsPerCurve:t.maxSegmentsPerCurve??12e3,minSegmentsPerCurve:Math.max(t.minSegmentsPerCurve??1,1)}}class m{constructor(t,e){this.curveStart=t,this.curveEnd=e,this.tStart=0,this.tEnd=0,this.tEndStack=[],this.arcEndStack=[]}get stackSize(){return this.tEndStack.length}initialize(t,e){this.tStart=0,this.arcStart=t,this.tEndStack.push(1),this.arcEndStack.push(e)}splitAt(t){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(t),this.arcEndStack.push(this.interpolate(t))}splitInHalf(){return this.splitAt((this.tStart+this.tEnd)/2)}pop(){this.tEnd=this.tEndStack.pop(),this.arcEnd=this.arcEndStack.pop()}next(){this.tStart=this.tEnd,this.arcStart=this.arcEnd}densify(t,{maxDeviation:e,maxSegmentLength:n,maxSegmentsPerCurve:s,minSegmentsPerCurve:i}){const r=n*n,o=e*e,a=1/s,c=this.interpolate(0),h=this.interpolate(1);(0,l.kb)(this.curveStart,c)>f&&t.push(c),this.initialize(c,h);const u=1/i;for(let t=i-1;t>0;t--){const e=t*u;this.pop(),this.splitAt(e)}for(;this.stackSize>0;)this.pop(),this.tStart===this.tEnd||this.tEnd-this.tStart<a||(0===r||!isFinite(r)||(0,l.kb)(this.arcStart,this.arcEnd)<r)&&(0===o||!isFinite(o)||this.getDeviation2()<o)?(t.push(this.arcEnd),this.next()):this.splitInHalf();return(0,l.kb)(this.curveEnd,h)>f&&t.push([...this.curveEnd]),t}}class g extends m{constructor(t,e){const[n,s,i]=e.b;super(t,n),this._controlPointsStack=[],this._curveControlPoints=[s,i],this._arcControlPoints=[s,i],this._controlPointsStack.push(this._arcControlPoints)}splitAt(t){const{arcStart:e,arcEnd:n,tStart:s,tEnd:i}=this,[r,o]=this._arcControlPoints,a=(t-s)/(i-s),c=(0,l.RS)([],e,r,a),h=(0,l.RS)(p,r,o,a),u=(0,l.RS)([],o,n,a),f=(0,l.RS)([],c,h,a),d=(0,l.RS)([],h,u,a),m=(0,l.RS)([],f,d,a);this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this._controlPointsStack.push([d,u]),this.tEndStack.push(t),this.arcEndStack.push(m),this._arcControlPoints[0]=c,this._arcControlPoints[1]=f,this._controlPointsStack.push(this._arcControlPoints)}pop(){super.pop(),this._arcControlPoints=this._controlPointsStack.pop()}interpolate(t){const{curveStart:e,curveEnd:n}=this,[s,i]=this._curveControlPoints;return(0,o.B4)(e,s,i,n,t)}getDeviation2(){const{arcStart:t,arcEnd:e}=this,[n,s]=this._arcControlPoints;return Math.max((0,l.yE)(n,t,e),(0,l.yE)(s,t,e))}}class S extends m{constructor(t,e){const[n]=e.a;super(t,n),this._derivedEllipse=(0,u.SW)(t,e)}pop(){super.pop(),this._tMid=(this.tStart+this.tEnd)/2,this._arcMid=this.interpolate(this._tMid)}splitInHalf(){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(this._tMid),this.arcEndStack.push(this._arcMid)}interpolate(t){return(0,u.Uk)(this._derivedEllipse,t)}getDeviation2(){return(0,l.yE)(this._arcMid,this.arcStart,this.arcEnd)}}function y(t,e,n,{cx:s,cy:i,radius:r,thetaStart:o,thetaEnd:a,isInvalid:c},{maxDeviation:h,maxSegmentLength:u,maxSegmentsPerCurve:p,minSegmentsPerCurve:d}){if(c)return t.push([...n]),t;const m=2*r,g=[s+r*Math.cos(o),i+r*Math.sin(o)],S=[s+r*Math.cos(a),i+r*Math.sin(a)];(0,l.kb)(e,g)>f&&t.push(g);const y=Math.abs(a-o),M=u>0&&u<m?2*Math.asin(u/m):y,v=h>0&&h<=r?2*Math.acos(1-h/r):y,k=Math.min(M,v),E=Math.min(p,Math.max(d,Math.ceil(Math.abs(y/k)))),x=1/E;for(let e=1;e<E;e++){const n=e*x,c=o*(1-n)+a*n;t.push([s+r*Math.cos(c),i+r*Math.sin(c)])}return t.push(S),(0,l.kb)(n,S)>f&&t.push([...n]),t}function M(t,e,n,s){return new g(e,n).densify(t,s)}function v(t,e,n,s){const i=(0,a.pM)(e,n),[r]=n.c;return y(t,e,r,i,s)}function k(t,e,n,s){const i=(0,h.io)(e,n),[r]=n.a;return y(t,e,r,i,s)}function E(t,e,n,s){const[i,r,o,a,c,h,u]=n.a;return 0===h||0===u?(t.push([...i]),t):new S(e,n).densify(t,s)}function x(t,e,n,s){return(0,c.Xq)(n)?(t.push([...n]),t):(0,c.n1)(n)?M(t,e,n,s):(0,c.aO)(n)?v(t,e,n,s):(0,c.DA)(n)?k(t,e,n,s):E(t,e,n,s)}function b(t,e={}){if(!(0,c.Ed)(t))return t;const n=d(e),s=(0,c.FD)(t),i=[];for(const t of s){const e=[];for(let s=0;s<t.length-1;s++){const i=s+1,r=[...(0,c.yP)(t[s])];0===s&&e.push(r),x(e,r,t[i],n)}i.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},paths:i,spatialReference:t.spatialReference}:{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},rings:i,spatialReference:t.spatialReference}}const w=(0,i.B)(t=>({maxDeviation:0,maxSegmentLength:100*t,maxSegmentsPerCurve:12e3,minSegmentsPerCurve:1}));async function R(t,e,i){const o=new Set(e);return await async function(t,e,i){let r=null;for(const o of t)if(o&&(0,c.Ed)(o)&&null==o.spatialReference.xyTolerance&&(0,c.V8)(o,e)){const t=o.spatialReference;if(!t)throw new s.A("geometry:missing-spatial-reference","Geometry contains an unsupported curve type, but it cannot be densified because it has no spatial reference.");const e=_(t);if(i.has(e))o.spatialReference=i.get(e);else{r||(r=await Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(1550)]).then(n.bind(n,78125)));const a=r.fromSpatialReference(t),c=a?.getTolerance();if(null==c)throw new s.A("geometry:missing-tolerance","Geometry contains an unsupported curve type, but it cannot be densified because the tolerance of its spatial reference is unknown. Set the `xyTolerance` property of the spatial reference.");const h=o.spatialReference.clone();h.read({xyTolerance:c}),o.spatialReference=h,i.set(e,h)}}}(t,o,i),t.map(t=>{if(!t||!(0,c.Ed)(t))return t;const n=t.spatialReference.xyTolerance;if(null==n)return t;const s=w(n);return(0,r.rS)(function(t,e,n){if(!(0,c.Ed)(t))return t;const s=new Set(e),i=d(n),r=(0,c.FD)(t),o=[];let a=!1;for(const t of r){const e=[];for(let n=0;n<t.length-1;n++){const r=n+1,o=[...(0,c.yP)(t[n])];0===n&&e.push(o);const h=t[r];(0,c.Xq)(h)?e.push([...h]):(0,c.n1)(h)&&!s.has("cubic-bezier")?M(e,o,h,i):(0,c.aO)(h)&&!s.has("circular-arc")?v(e,o,h,i):(0,c.DA)(h)&&!s.has("elliptic-arc")?k(e,o,h,i):(0,c.wY)(h)&&!s.has("elliptic-arc")?E(e,o,h,i):(e.push((0,c.tk)(h)),a=!0)}o.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},spatialReference:t.spatialReference,...a?{curvePaths:o}:{paths:o}}:{hasZ:t.hasZ,hasM:t.hasM,spatialReference:t.spatialReference,...a?{curveRings:o}:{rings:o}}}(t,e,s))})}function _(t){if(null!=t.wkid)return`${t.wkid}`;if(null!=t.wkt)return t.wkt;const e="toJSON"in t&&"function"==typeof t.toJSON?t.toJSON():t;return JSON.stringify(e)}},17136(t,e,n){n.d(e,{Y_:()=>B,O7:()=>P,el:()=>_});var s=n(92602),i=n(69052),r=n(49186),o=n(53966),a=n(39829),c=n(82799),h=n(16930),u=n(80754),l=n(21325),f=n(28735),p=n(52006),d=n(31411),m=n(11254),g=n(60408),S=n(65864),y=n(2272),M=n(84952),v=n(92300);const k=()=>o.A.getLogger("esri.geometry.support.normalizeUtils");function E(t){return"polygon"===t[0].type}function x(t){return"polyline"===t[0].type}function b(t,e,n){const s=1e6;if(e){const e=(0,p.Ed)(t)?(0,d.GS)(t,{maxSegmentLength:s}):function(t,e){if(!(t instanceof c.A||t instanceof a.A)){const t="straightLineDensify: the input geometry is neither polyline nor polygon";throw k().error(t),new r.A("internal:geometry",t)}const n=(0,u.r8)(t),s=[];for(const t of n){const n=[];s.push(n),n.push([t[0][0],t[0][1]]);for(let s=0;s<t.length-1;s++){const i=t[s][0],r=t[s][1],o=t[s+1][0],a=t[s+1][1],c=Math.sqrt((o-i)*(o-i)+(a-r)*(a-r)),h=(a-r)/c,u=(o-i)/c,l=c/e;if(l>1){for(let t=1;t<=l-1;t++){const s=t*e,o=u*s+i,a=h*s+r;n.push([o,a])}const t=(c+Math.floor(l-1)*e)/2,s=u*t+i,o=h*t+r;n.push([s,o])}n.push([o,a])}}return function(t){return"polygon"===t.type}(t)?new a.A({rings:s,spatialReference:t.spatialReference}):new c.A({paths:s,spatialReference:t.spatialReference})}(t,s);t=(0,f.ci)(e,!0)}return n&&(t=(0,u.kS)(t,n)),t}function w(t,e,n){if(Array.isArray(t)){const s=t[0];if(s>e){const n=(0,u.kd)(s,e);t[0]=s+n*(-2*e)}else if(s<n){const e=(0,u.kd)(s,n);t[0]=s+e*(-2*n)}}else{const s=t.x;if(s>e){const n=(0,u.kd)(s,e);t=t.clone().offset(n*(-2*e),0)}else if(s<n){const e=(0,u.kd)(s,n);t=t.clone().offset(e*(-2*n),0)}}return t}function R(t,e){let n=-1;for(let s=0;s<e.cutIndexes.length;s++){const i=e.cutIndexes[s],r=e.geometries[s],o=(0,u.r8)(r);for(let t=0;t<o.length;t++){const e=o[t];e.some(n=>{if(n[0]<180)return!0;{let n=0;for(let t=0;t<e.length;t++){const s=e[t][0];n=s>n?s:n}n=Number(n.toFixed(9));const s=-360*(0,u.kd)(n,180);for(let n=0;n<e.length;n++){const e=r.getPoint(t,n);r.setPoint(t,n,e.clone().offset(s,0))}return!0}})}if(i===n){if(E(t))for(const e of(0,u.r8)(r))t[i]=t[i].addRing(e);else if(x(t))for(const e of(0,u.r8)(r))t[i]=t[i].addPath(e)}else n=i,t[i]=r}return t}async function _(t,e,n){if(!Array.isArray(t))return _([t],e);e&&"string"!=typeof e&&k().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const i="string"==typeof e?e:e?.url??s.A.geometryServiceUrl;let r,o,h,p,d,E,x,P,A=0;const B=[],C=[];for(const e of t)if(null!=e)if(r||(r=e.spatialReference,o=(0,l.Vp)(r),h=r.isWebMercator,E=h?102100:4326,p=u.j7[E].maxX,d=u.j7[E].minX,x=u.j7[E].plus180Line,P=u.j7[E].minus180Line),o)if("mesh"===e.type)C.push(e);else if("point"===e.type)C.push(w(e.clone(),p,d));else if("multipoint"===e.type){const t=e.clone();t.points=t.points.map(t=>w(t,p,d)),C.push(t)}else if("extent"===e.type){const t=e.clone()._normalize(!1,!1,o);C.push(t.rings?new a.A(t):t)}else if(e.extent){const t=e.extent,n=(0,u.kd)(t.xmin,d)*(2*p);let s=0===n?e.clone():(0,u.kS)(e.clone(),n);t.offset(n,0);let{xmin:i,xmax:r}=t;i=Number(i.toFixed(9)),r=Number(r.toFixed(9)),t.intersects(x)&&r!==p?(A=r>A?r:A,s=b(s,h),B.push(s),C.push("cut")):t.intersects(P)&&i!==d?(A=r*(2*p)>A?r*(2*p):A,s=b(s,h,360),B.push(s),C.push("cut")):C.push(s)}else C.push(e.clone());else C.push(e);else C.push(e);let D=(0,u.kd)(A,p),O=-90;const z=D,L=new c.A;for(;D>0;){const t=360*D-180;L.addPath([[t,O],[t,-1*O]]),O*=-1,D--}if(B.length>0&&z>0){const e=R(B,await async function(t,e,n,s){const i=(0,y.Dl)(t),r=e[0].spatialReference,o={...s,responseType:"json",query:{...i.query,f:"json",sr:(0,l.YX)(r),target:JSON.stringify({geometryType:(0,g.$B)(e[0]),geometries:e}),cutter:JSON.stringify(n)}},a=await(0,m.A)(i.path+"/cut",o),{cutIndexes:c,geometries:h=[]}=a.data;return{cutIndexes:c,geometries:h.map(t=>{const e=(0,S.rS)(t);return e.spatialReference=r,e})}}(i,B,L,n)),s=[],r=[];for(let n=0;n<C.length;n++){const i=C[n];if("cut"!==i)r.push(i);else{const i=e.shift(),o=t[n];null!=o&&"polygon"===o.type&&o.rings&&o.rings.length>1&&i.rings.length>=o.rings.length?(s.push(i),r.push("simplify")):r.push(h?(0,f.Gh)(i):i)}}if(!s.length)return r;const o=await async function(t,e,n){const s="string"==typeof t?(0,M.An)(t):t,i=e[0].spatialReference,r=(0,g.$B)(e[0]),o={...n,query:{...s.query,f:"json",sr:(0,l.YX)(i),geometries:JSON.stringify((0,v.X)(e))}},{data:a}=await(0,m.A)(s.path+"/simplify",o);return(0,v.V)(a.geometries,r,i)}(i,s,n),a=[];for(let t=0;t<r.length;t++){const e=r[t];"simplify"!==e?a.push(e):a.push(h?(0,f.Gh)(o.shift()):o.shift())}return a}const T=[];for(let t=0;t<C.length;t++){const e=C[t];if("cut"!==e)T.push(e);else{const t=B.shift();T.push(!0===h?(0,f.Gh)(t):t)}}return T}function P(t,e,n){const s=(0,l.Vp)(n);if(null==s)return t;const[i,r]=s.valid,o=2*r;let a=0,c=0;e>r?a=Math.ceil(Math.abs(e-r)/o):e<i&&(a=-Math.ceil(Math.abs(e-i)/o)),t>r?c=Math.ceil(Math.abs(t-r)/o):t<i&&(c=-Math.ceil(Math.abs(t-i)/o));let h=t+(a-c)*o;const u=h-e;return u>r?h-=o:u<i&&(h+=o),h}function A(t){const e=(0,l.Vp)(t);if(null==e)return null;const[n,s]=e.valid;return new i.hr(n,s)}const B=A(h.A.WGS84);A(h.A.WebMercator)},80754(t,e,n){n.d(e,{kS:()=>h,kd:()=>c,r8:()=>u});var s=n(82799),i=n(16930),r=n(60408),o=n(52006);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new s.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator}),minus180Line:new s.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new s.A({paths:[[[180,-180],[180,180]]],spatialReference:i.A.WGS84}),minus180Line:new s.A({paths:[[[-180,-180],[-180,180]]],spatialReference:i.A.WGS84})}};function c(t,e){return Math.ceil((t-e)/(2*e))}function h(t,e){if((0,o.Ed)(t))for(const n of function(t){return(0,r.Bi)(t)?t.curveRings:t.curvePaths}(t))for(const t of n){if((0,o.aO)(t)){const[n,s]=t.c;n[0]+=e,s[0]+=e;continue}if((0,o.FG)(t)){const[n,s]=t.a;n[0]+=e,s[0]+=e;continue}if((0,o.n1)(t)){const[n,s,i]=t.b;n[0]+=e,s[0]+=e,i[0]+=e;continue}t[0]+=e}for(const n of u(t))for(const t of n)t[0]+=e;return t}function u(t){return(0,r.Bi)(t)?t.rings:t.paths}n.d(e,["j7",0,a])},38969(t,e,n){n.d(e,{i:()=>i});var s=n(37955);function i(t,e){return new Promise((n,i)=>{t.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA?n():(e((0,s.Oo)(t,"canplay",n)),e((0,s.Oo)(t,"error",i)))})}},92300(t,e,n){n.d(e,{V:()=>o,X:()=>r});var s=n(60408),i=n(65864);function r(t){return{geometryType:(0,s.$B)(t[0]),geometries:t.map(t=>t.toJSON())}}function o(t,e,n){const s=(0,i.xD)(e);return t.map(t=>{const e=s.fromJSON(t);return e.spatialReference=n,e})}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5524],{73354(t,e,n){n.d(e,{a:()=>l,b:()=>a,c:()=>i,d:()=>o,e:()=>f,f:()=>u,l:()=>h,n:()=>p,t:()=>r}),n(44208);var s=n(72727);function i(t,e,n){r(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function r(t,e,n,i=3,r=i){const o=(0,s.k)(t.length,i,3),a=(0,s.k)(e.length,r,3),c=Math.min(o,a),h=n[0],u=n[1],l=n[2],f=n[4],p=n[5],d=n[6],m=n[8],g=n[9],S=n[10],y=n[12],M=n[13],v=n[14];let k=0,E=0;for(let n=0;n<c;n++){const n=e[k],s=e[k+1],o=e[k+2];t[E]=h*n+f*s+m*o+y,t[E+1]=u*n+p*s+g*o+M,t[E+2]=l*n+d*s+S*o+v,k+=r,E+=i}return t}function o(t,e,n){a(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function a(t,e,n,i=3,r=i){const o=(0,s.k)(t.length,i,3),a=(0,s.k)(e.length,r,3),c=Math.min(o,a),h=n[0],u=n[1],l=n[2],f=n[3],p=n[4],d=n[5],m=n[6],g=n[7],S=n[8];let y=0,M=0;for(let n=0;n<c;n++){const n=e[y],s=e[y+1],o=e[y+2];t[M]=h*n+f*s+m*o,t[M+1]=u*n+p*s+g*o,t[M+2]=l*n+d*s+S*o,y+=r,M+=i}}function c(t,e,n,s=3,i=s){const r=Math.min(t.length/s,e.length/i);let o=0,a=0;for(let c=0;c<r;c++)t[a]=n*e[o],t[a+1]=n*e[o+1],t[a+2]=n*e[o+2],o+=i,a+=s;return t}function h(t,e,n,s){u(t.typedBuffer,e.typedBuffer,n,s,t.typedBufferStride,e.typedBufferStride)}function u(t,e,n,s,i=3,r=i){const o=Math.min(t.length/i,e.length/r);let a=0,c=0;const h=1/2.2;for(let u=0;u<o;u++)t[c]=s*(n*e[a])**h,t[c+1]=s*(n*e[a+1])**h,t[c+2]=s*(n*e[a+2])**h,a+=r,c+=i}function l(t,e,n,i=3,r=i){const o=(0,s.k)(t.length,i,3),a=(0,s.k)(e.length,r,3),c=Math.min(o,a);let h=0,u=0;for(let s=0;s<c;s++)t[u]=e[h]+n[0],t[u+1]=e[h+1]+n[1],t[u+2]=e[h+2]+n[2],h+=r,u+=i;return t}function f(t,e){p(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function p(t,e,n=3,s=n){const i=Math.min(t.length/n,e.length/s);let r=0,o=0;for(let a=0;a<i;a++){const i=e[r],a=e[r+1],c=e[r+2],h=i*i+a*a+c*c;if(h>0){const e=1/Math.sqrt(h);t[o]=e*i,t[o+1]=e*a,t[o+2]=e*c}r+=s,o+=n}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:u,linearToSRGBView:h,normalize:p,normalizeView:f,scale:c,scaleView:function(t,e,n){c(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)},shiftRight:function(t,e,n){const s=Math.min(t.count,e.count),i=t.typedBuffer,r=t.typedBufferStride,o=e.typedBuffer,a=e.typedBufferStride;let c=0,h=0;for(let t=0;t<s;t++)i[h]=o[c]>>n,i[h+1]=o[c+1]>>n,i[h+2]=o[c+2]>>n,c+=a,h+=r},transformMat3:a,transformMat3View:o,transformMat4:r,transformMat4View:i,translate:l},Symbol.toStringTag,{value:"Module"}))},69052(t,e,n){n.d(e,{hr:()=>i});var s=n(34727);class i{constructor(t,e){this.min=t,this.max=e,this.range=e-t}normalize(t,e=0,n=!1){return r(this.range,this.min,this.max,t,e,n)}clamp(t,e=0){return(0,s.qE)(t-e,this.min,this.max)+e}monotonic(t,e,n){return t<e?e:e+o(this.range,t-e,n)}minimalMonotonic(t,e,n){return r(this.range,t,t+this.range,e,n)}center(t,e,n){return e=this.monotonic(t,e,n),this.normalize((t+e)/2,n)}diff(t,e,n){return this.monotonic(t,e,n)-t}shortestSignedDiff(t,e){t=this.normalize(t);const n=(e=this.normalize(e))-t,s=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(n)<Math.abs(s)?n:s}contains(t,e,n){return e=this.minimalMonotonic(t,e),(n=this.minimalMonotonic(t,n))>t&&n<e}}function r(t,e,n,s,i=0,r=!1){return(s-=i)<e?s+=o(t,e-s):s>n&&(s-=o(t,s-n)),r&&s===n&&(s=e),s+i}function o(t,e,n=0){return Math.ceil((e-n)/t)*t+n}const a=new i(0,2*Math.PI),c=(new i(-Math.PI,Math.PI),new i(0,360));n.d(e,["ie",0,c,"uC",0,a])},44794(t,e,n){n.d(e,{v:()=>a});var s=n(4718),i=n(62788),r=n(95488);class o{constructor(t,e){this._observable=new r.I,this._value=t,this._equalityFunction=e}get value(){return(0,i.gc)(this._observable),this._value}set value(t){this._equalityFunction(t,this._value)||(this._value=t,this._observable.notify())}mutate(t){t(this._value),this._observable.notify()}}function a(t,e=s.gh){return new o(t,e)}},72727(t,e,n){function s(t,e,n){if(e<=0)return 0;const s=t-n;return s<0?0:Math.floor(s/e)+1}n.d(e,{k:()=>s}),n(53966)},31411(t,e,n){n.d(e,{GS:()=>b,gh:()=>R});var s=n(49186),i=n(56512),r=n(65864),o=n(4305),a=n(50954),c=n(52006),h=n(49663),u=n(46068),l=n(15507);const f=1e-6,p=[0,0];function d(t){return{maxSegmentLength:t.maxSegmentLength??0,maxDeviation:t.maxDeviation??0,maxSegmentsPerCurve:t.maxSegmentsPerCurve??12e3,minSegmentsPerCurve:Math.max(t.minSegmentsPerCurve??1,1)}}class m{constructor(t,e){this.curveStart=t,this.curveEnd=e,this.tStart=0,this.tEnd=0,this.tEndStack=[],this.arcEndStack=[]}get stackSize(){return this.tEndStack.length}initialize(t,e){this.tStart=0,this.arcStart=t,this.tEndStack.push(1),this.arcEndStack.push(e)}splitAt(t){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(t),this.arcEndStack.push(this.interpolate(t))}splitInHalf(){return this.splitAt((this.tStart+this.tEnd)/2)}pop(){this.tEnd=this.tEndStack.pop(),this.arcEnd=this.arcEndStack.pop()}next(){this.tStart=this.tEnd,this.arcStart=this.arcEnd}densify(t,{maxDeviation:e,maxSegmentLength:n,maxSegmentsPerCurve:s,minSegmentsPerCurve:i}){const r=n*n,o=e*e,a=1/s,c=this.interpolate(0),h=this.interpolate(1);(0,l.kb)(this.curveStart,c)>f&&t.push(c),this.initialize(c,h);const u=1/i;for(let t=i-1;t>0;t--){const e=t*u;this.pop(),this.splitAt(e)}for(;this.stackSize>0;)this.pop(),this.tStart===this.tEnd||this.tEnd-this.tStart<a||(0===r||!isFinite(r)||(0,l.kb)(this.arcStart,this.arcEnd)<r)&&(0===o||!isFinite(o)||this.getDeviation2()<o)?(t.push(this.arcEnd),this.next()):this.splitInHalf();return(0,l.kb)(this.curveEnd,h)>f&&t.push([...this.curveEnd]),t}}class g extends m{constructor(t,e){const[n,s,i]=e.b;super(t,n),this._controlPointsStack=[],this._curveControlPoints=[s,i],this._arcControlPoints=[s,i],this._controlPointsStack.push(this._arcControlPoints)}splitAt(t){const{arcStart:e,arcEnd:n,tStart:s,tEnd:i}=this,[r,o]=this._arcControlPoints,a=(t-s)/(i-s),c=(0,l.RS)([],e,r,a),h=(0,l.RS)(p,r,o,a),u=(0,l.RS)([],o,n,a),f=(0,l.RS)([],c,h,a),d=(0,l.RS)([],h,u,a),m=(0,l.RS)([],f,d,a);this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this._controlPointsStack.push([d,u]),this.tEndStack.push(t),this.arcEndStack.push(m),this._arcControlPoints[0]=c,this._arcControlPoints[1]=f,this._controlPointsStack.push(this._arcControlPoints)}pop(){super.pop(),this._arcControlPoints=this._controlPointsStack.pop()}interpolate(t){const{curveStart:e,curveEnd:n}=this,[s,i]=this._curveControlPoints;return(0,o.B4)(e,s,i,n,t)}getDeviation2(){const{arcStart:t,arcEnd:e}=this,[n,s]=this._arcControlPoints;return Math.max((0,l.yE)(n,t,e),(0,l.yE)(s,t,e))}}class S extends m{constructor(t,e){const[n]=e.a;super(t,n),this._derivedEllipse=(0,u.SW)(t,e)}pop(){super.pop(),this._tMid=(this.tStart+this.tEnd)/2,this._arcMid=this.interpolate(this._tMid)}splitInHalf(){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(this._tMid),this.arcEndStack.push(this._arcMid)}interpolate(t){return(0,u.Uk)(this._derivedEllipse,t)}getDeviation2(){return(0,l.yE)(this._arcMid,this.arcStart,this.arcEnd)}}function y(t,e,n,{cx:s,cy:i,radius:r,thetaStart:o,thetaEnd:a,isInvalid:c},{maxDeviation:h,maxSegmentLength:u,maxSegmentsPerCurve:p,minSegmentsPerCurve:d}){if(c)return t.push([...n]),t;const m=2*r,g=[s+r*Math.cos(o),i+r*Math.sin(o)],S=[s+r*Math.cos(a),i+r*Math.sin(a)];(0,l.kb)(e,g)>f&&t.push(g);const y=Math.abs(a-o),M=u>0&&u<m?2*Math.asin(u/m):y,v=h>0&&h<=r?2*Math.acos(1-h/r):y,k=Math.min(M,v),E=Math.min(p,Math.max(d,Math.ceil(Math.abs(y/k)))),x=1/E;for(let e=1;e<E;e++){const n=e*x,c=o*(1-n)+a*n;t.push([s+r*Math.cos(c),i+r*Math.sin(c)])}return t.push(S),(0,l.kb)(n,S)>f&&t.push([...n]),t}function M(t,e,n,s){return new g(e,n).densify(t,s)}function v(t,e,n,s){const i=(0,a.pM)(e,n),[r]=n.c;return y(t,e,r,i,s)}function k(t,e,n,s){const i=(0,h.io)(e,n),[r]=n.a;return y(t,e,r,i,s)}function E(t,e,n,s){const[i,r,o,a,c,h,u]=n.a;return 0===h||0===u?(t.push([...i]),t):new S(e,n).densify(t,s)}function x(t,e,n,s){return(0,c.Xq)(n)?(t.push([...n]),t):(0,c.n1)(n)?M(t,e,n,s):(0,c.aO)(n)?v(t,e,n,s):(0,c.DA)(n)?k(t,e,n,s):E(t,e,n,s)}function b(t,e={}){if(!(0,c.Ed)(t))return t;const n=d(e),s=(0,c.FD)(t),i=[];for(const t of s){const e=[];for(let s=0;s<t.length-1;s++){const i=s+1,r=[...(0,c.yP)(t[s])];0===s&&e.push(r),x(e,r,t[i],n)}i.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},paths:i,spatialReference:t.spatialReference}:{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},rings:i,spatialReference:t.spatialReference}}const w=(0,i.B)(t=>({maxDeviation:0,maxSegmentLength:100*t,maxSegmentsPerCurve:12e3,minSegmentsPerCurve:1}));async function R(t,e,i){const o=new Set(e);return await async function(t,e,i){let r=null;for(const o of t)if(o&&(0,c.Ed)(o)&&null==o.spatialReference.xyTolerance&&(0,c.V8)(o,e)){const t=o.spatialReference;if(!t)throw new s.A("geometry:missing-spatial-reference","Geometry contains an unsupported curve type, but it cannot be densified because it has no spatial reference.");const e=_(t);if(i.has(e))o.spatialReference=i.get(e);else{r||(r=await Promise.all([n.e(6042),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(1550)]).then(n.bind(n,78125)));const a=r.fromSpatialReference(t),c=a?.getTolerance();if(null==c)throw new s.A("geometry:missing-tolerance","Geometry contains an unsupported curve type, but it cannot be densified because the tolerance of its spatial reference is unknown. Set the `xyTolerance` property of the spatial reference.");const h=o.spatialReference.clone();h.read({xyTolerance:c}),o.spatialReference=h,i.set(e,h)}}}(t,o,i),t.map(t=>{if(!t||!(0,c.Ed)(t))return t;const n=t.spatialReference.xyTolerance;if(null==n)return t;const s=w(n);return(0,r.rS)(function(t,e,n){if(!(0,c.Ed)(t))return t;const s=new Set(e),i=d(n),r=(0,c.FD)(t),o=[];let a=!1;for(const t of r){const e=[];for(let n=0;n<t.length-1;n++){const r=n+1,o=[...(0,c.yP)(t[n])];0===n&&e.push(o);const h=t[r];(0,c.Xq)(h)?e.push([...h]):(0,c.n1)(h)&&!s.has("cubic-bezier")?M(e,o,h,i):(0,c.aO)(h)&&!s.has("circular-arc")?v(e,o,h,i):(0,c.DA)(h)&&!s.has("elliptic-arc")?k(e,o,h,i):(0,c.wY)(h)&&!s.has("elliptic-arc")?E(e,o,h,i):(e.push((0,c.tk)(h)),a=!0)}o.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},spatialReference:t.spatialReference,...a?{curvePaths:o}:{paths:o}}:{hasZ:t.hasZ,hasM:t.hasM,spatialReference:t.spatialReference,...a?{curveRings:o}:{rings:o}}}(t,e,s))})}function _(t){if(null!=t.wkid)return`${t.wkid}`;if(null!=t.wkt)return t.wkt;const e="toJSON"in t&&"function"==typeof t.toJSON?t.toJSON():t;return JSON.stringify(e)}},17136(t,e,n){n.d(e,{Y_:()=>B,O7:()=>P,el:()=>_});var s=n(92602),i=n(69052),r=n(49186),o=n(53966),a=n(39829),c=n(82799),h=n(16930),u=n(80754),l=n(21325),f=n(28735),p=n(52006),d=n(31411),m=n(11254),g=n(60408),S=n(65864),y=n(2272),M=n(84952),v=n(92300);const k=()=>o.A.getLogger("esri.geometry.support.normalizeUtils");function E(t){return"polygon"===t[0].type}function x(t){return"polyline"===t[0].type}function b(t,e,n){const s=1e6;if(e){const e=(0,p.Ed)(t)?(0,d.GS)(t,{maxSegmentLength:s}):function(t,e){if(!(t instanceof c.A||t instanceof a.A)){const t="straightLineDensify: the input geometry is neither polyline nor polygon";throw k().error(t),new r.A("internal:geometry",t)}const n=(0,u.r8)(t),s=[];for(const t of n){const n=[];s.push(n),n.push([t[0][0],t[0][1]]);for(let s=0;s<t.length-1;s++){const i=t[s][0],r=t[s][1],o=t[s+1][0],a=t[s+1][1],c=Math.sqrt((o-i)*(o-i)+(a-r)*(a-r)),h=(a-r)/c,u=(o-i)/c,l=c/e;if(l>1){for(let t=1;t<=l-1;t++){const s=t*e,o=u*s+i,a=h*s+r;n.push([o,a])}const t=(c+Math.floor(l-1)*e)/2,s=u*t+i,o=h*t+r;n.push([s,o])}n.push([o,a])}}return function(t){return"polygon"===t.type}(t)?new a.A({rings:s,spatialReference:t.spatialReference}):new c.A({paths:s,spatialReference:t.spatialReference})}(t,s);t=(0,f.ci)(e,!0)}return n&&(t=(0,u.kS)(t,n)),t}function w(t,e,n){if(Array.isArray(t)){const s=t[0];if(s>e){const n=(0,u.kd)(s,e);t[0]=s+n*(-2*e)}else if(s<n){const e=(0,u.kd)(s,n);t[0]=s+e*(-2*n)}}else{const s=t.x;if(s>e){const n=(0,u.kd)(s,e);t=t.clone().offset(n*(-2*e),0)}else if(s<n){const e=(0,u.kd)(s,n);t=t.clone().offset(e*(-2*n),0)}}return t}function R(t,e){let n=-1;for(let s=0;s<e.cutIndexes.length;s++){const i=e.cutIndexes[s],r=e.geometries[s],o=(0,u.r8)(r);for(let t=0;t<o.length;t++){const e=o[t];e.some(n=>{if(n[0]<180)return!0;{let n=0;for(let t=0;t<e.length;t++){const s=e[t][0];n=s>n?s:n}n=Number(n.toFixed(9));const s=-360*(0,u.kd)(n,180);for(let n=0;n<e.length;n++){const e=r.getPoint(t,n);r.setPoint(t,n,e.clone().offset(s,0))}return!0}})}if(i===n){if(E(t))for(const e of(0,u.r8)(r))t[i]=t[i].addRing(e);else if(x(t))for(const e of(0,u.r8)(r))t[i]=t[i].addPath(e)}else n=i,t[i]=r}return t}async function _(t,e,n){if(!Array.isArray(t))return _([t],e);e&&"string"!=typeof e&&k().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const i="string"==typeof e?e:e?.url??s.A.geometryServiceUrl;let r,o,h,p,d,E,x,P,A=0;const B=[],C=[];for(const e of t)if(null!=e)if(r||(r=e.spatialReference,o=(0,l.Vp)(r),h=r.isWebMercator,E=h?102100:4326,p=u.j7[E].maxX,d=u.j7[E].minX,x=u.j7[E].plus180Line,P=u.j7[E].minus180Line),o)if("mesh"===e.type)C.push(e);else if("point"===e.type)C.push(w(e.clone(),p,d));else if("multipoint"===e.type){const t=e.clone();t.points=t.points.map(t=>w(t,p,d)),C.push(t)}else if("extent"===e.type){const t=e.clone()._normalize(!1,!1,o);C.push(t.rings?new a.A(t):t)}else if(e.extent){const t=e.extent,n=(0,u.kd)(t.xmin,d)*(2*p);let s=0===n?e.clone():(0,u.kS)(e.clone(),n);t.offset(n,0);let{xmin:i,xmax:r}=t;i=Number(i.toFixed(9)),r=Number(r.toFixed(9)),t.intersects(x)&&r!==p?(A=r>A?r:A,s=b(s,h),B.push(s),C.push("cut")):t.intersects(P)&&i!==d?(A=r*(2*p)>A?r*(2*p):A,s=b(s,h,360),B.push(s),C.push("cut")):C.push(s)}else C.push(e.clone());else C.push(e);else C.push(e);let D=(0,u.kd)(A,p),O=-90;const z=D,L=new c.A;for(;D>0;){const t=360*D-180;L.addPath([[t,O],[t,-1*O]]),O*=-1,D--}if(B.length>0&&z>0){const e=R(B,await async function(t,e,n,s){const i=(0,y.Dl)(t),r=e[0].spatialReference,o={...s,responseType:"json",query:{...i.query,f:"json",sr:(0,l.YX)(r),target:JSON.stringify({geometryType:(0,g.$B)(e[0]),geometries:e}),cutter:JSON.stringify(n)}},a=await(0,m.A)(i.path+"/cut",o),{cutIndexes:c,geometries:h=[]}=a.data;return{cutIndexes:c,geometries:h.map(t=>{const e=(0,S.rS)(t);return e.spatialReference=r,e})}}(i,B,L,n)),s=[],r=[];for(let n=0;n<C.length;n++){const i=C[n];if("cut"!==i)r.push(i);else{const i=e.shift(),o=t[n];null!=o&&"polygon"===o.type&&o.rings&&o.rings.length>1&&i.rings.length>=o.rings.length?(s.push(i),r.push("simplify")):r.push(h?(0,f.Gh)(i):i)}}if(!s.length)return r;const o=await async function(t,e,n){const s="string"==typeof t?(0,M.An)(t):t,i=e[0].spatialReference,r=(0,g.$B)(e[0]),o={...n,query:{...s.query,f:"json",sr:(0,l.YX)(i),geometries:JSON.stringify((0,v.X)(e))}},{data:a}=await(0,m.A)(s.path+"/simplify",o);return(0,v.V)(a.geometries,r,i)}(i,s,n),a=[];for(let t=0;t<r.length;t++){const e=r[t];"simplify"!==e?a.push(e):a.push(h?(0,f.Gh)(o.shift()):o.shift())}return a}const T=[];for(let t=0;t<C.length;t++){const e=C[t];if("cut"!==e)T.push(e);else{const t=B.shift();T.push(!0===h?(0,f.Gh)(t):t)}}return T}function P(t,e,n){const s=(0,l.Vp)(n);if(null==s)return t;const[i,r]=s.valid,o=2*r;let a=0,c=0;e>r?a=Math.ceil(Math.abs(e-r)/o):e<i&&(a=-Math.ceil(Math.abs(e-i)/o)),t>r?c=Math.ceil(Math.abs(t-r)/o):t<i&&(c=-Math.ceil(Math.abs(t-i)/o));let h=t+(a-c)*o;const u=h-e;return u>r?h-=o:u<i&&(h+=o),h}function A(t){const e=(0,l.Vp)(t);if(null==e)return null;const[n,s]=e.valid;return new i.hr(n,s)}const B=A(h.A.WGS84);A(h.A.WebMercator)},80754(t,e,n){n.d(e,{kS:()=>h,kd:()=>c,r8:()=>u});var s=n(82799),i=n(16930),r=n(60408),o=n(52006);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new s.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator}),minus180Line:new s.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new s.A({paths:[[[180,-180],[180,180]]],spatialReference:i.A.WGS84}),minus180Line:new s.A({paths:[[[-180,-180],[-180,180]]],spatialReference:i.A.WGS84})}};function c(t,e){return Math.ceil((t-e)/(2*e))}function h(t,e){if((0,o.Ed)(t))for(const n of function(t){return(0,r.Bi)(t)?t.curveRings:t.curvePaths}(t))for(const t of n){if((0,o.aO)(t)){const[n,s]=t.c;n[0]+=e,s[0]+=e;continue}if((0,o.FG)(t)){const[n,s]=t.a;n[0]+=e,s[0]+=e;continue}if((0,o.n1)(t)){const[n,s,i]=t.b;n[0]+=e,s[0]+=e,i[0]+=e;continue}t[0]+=e}for(const n of u(t))for(const t of n)t[0]+=e;return t}function u(t){return(0,r.Bi)(t)?t.rings:t.paths}n.d(e,["j7",0,a])},38969(t,e,n){n.d(e,{i:()=>i});var s=n(37955);function i(t,e){return new Promise((n,i)=>{t.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA?n():(e((0,s.Oo)(t,"canplay",n)),e((0,s.Oo)(t,"error",i)))})}},92300(t,e,n){n.d(e,{V:()=>o,X:()=>r});var s=n(60408),i=n(65864);function r(t){return{geometryType:(0,s.$B)(t[0]),geometries:t.map(t=>t.toJSON())}}function o(t,e,n){const s=(0,i.xD)(e);return t.map(t=>{const e=s.fromJSON(t);return e.spatialReference=n,e})}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[909,9933],{92009(e,a,r){r.d(a,{L:()=>c});var t=r(70333),n=r(11254),i=r(49186),y=r(17676),l=r(60694),s=r(20655),o=r(80812);async function c(e,a){const r=(0,l.qg)(e);if(!r)throw new i.A("invalid-url","Invalid scene service url");const c={...a,sceneServerUrl:r.url.path,layerId:r.sublayer??void 0};if(c.sceneLayerItem??=await async function(e){const a=(await u(e)).serviceItemId;if(!a)return null;const r=new o.default({id:a,apiKey:e.apiKey}),i=await async function(e){const a=t.id?.findServerInfo(e.sceneServerUrl);if(a?.owningSystemUrl)return a.owningSystemUrl;const r=e.sceneServerUrl.replace(/(.*\/rest)\/.*/i,"$1")+"/info";try{const a=(await(0,n.A)(r,{query:{f:"json"},responseType:"json",signal:e.signal})).data.owningSystemUrl;if(a)return a}catch(e){(0,y.QP)(e)}return null}(e);null!=i&&(r.portal=new s.A({url:i}));try{return await r.load({signal:e.signal})}catch(e){return(0,y.QP)(e),null}}(c),null==c.sceneLayerItem)return L(c.sceneServerUrl.replace("/SceneServer","/FeatureServer"),c);const d=await async function({sceneLayerItem:e,signal:a}){if(!e)return null;try{const r=(await e.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},{signal:a})).find(e=>"Feature Service"===e.type)||null;if(!r)return null;const t=new o.default({portal:r.portal,id:r.id});return await t.load(),t}catch(e){return(0,y.QP)(e),null}}(c);if(!d?.url)throw new i.A("related-service-not-found","Could not find feature service through portal item relationship");c.featureServiceItem=d;const S=await L(d.url,c);return S.portalItem=d,S}async function u(e){if(e.rootDocument)return e.rootDocument;const a={query:{f:"json",...e.customParameters,token:e.apiKey},responseType:"json",signal:e.signal};try{const r=await(0,n.A)(e.sceneServerUrl,a);e.rootDocument=r.data}catch{e.rootDocument={}}return e.rootDocument}async function L(e,a){const r=(0,l.qg)(e);if(!r)throw new i.A("invalid-feature-service-url","Invalid feature service url");const t=r.url.path,y=a.layerId;if(null==y)return{serverUrl:t};const s=u(a),o=a.featureServiceItem?await a.featureServiceItem.fetchData("json"):null,c=(o?.layers?.[0]||o?.tables?.[0])?.customParameters,L=e=>{const r={query:{f:"json",...c},responseType:"json",authMode:e,signal:a.signal};return(0,n.A)(t,r)},d=L("anonymous").catch(()=>L("no-prompt")),[S,f]=await Promise.all([d,s]),p=f?.layers,m=S.data&&S.data.layers;if(!Array.isArray(m))throw new Error("expected layers array");if(Array.isArray(p)){for(let e=0;e<Math.min(p.length,m.length);e++)if(p[e].id===y)return{serverUrl:t,layerId:m[e].id}}else if(null!=y&&y<m.length)return{serverUrl:t,layerId:m[y].id};throw new Error("could not find matching associated sublayer")}},23154(e,a,r){r.d(a,{A6:()=>l,Aq:()=>f,Jo:()=>S,QM:()=>y});var t=r(77548),n=r(7861);const i=new Set(["Annotation Layer","Catalog Layer","Dimension Layer","Feature Layer","Oriented Imagery Layer"]);async function y(e,a){const{serviceJSON:r,layersJSON:t,...n}=await l(e,a);c(r);const i={serviceJSON:r,...n};return t&&(c(t),i.layersJSON=t),i}async function l(e,a){const{loadContext:r,...i}=a||{},y=r?await r.fetchServiceMetadata(e,i):await(0,n.L)(e,i),l=(0,t.G$)();d(y);const s={serviceJSON:y,preferredHost:l};if((y.currentVersion??0)<10.5)return s;const o=`${(0,t.$x)()??e}/layers`,c=r?await r.fetchServiceMetadata(o,i):await(0,n.L)(o,i);return d(c),s.layersJSON={layers:c.layers,tables:c.tables},s}function s(e){return i.has(e.type)}function o(e){return"Table"===e.type}function c(e){e.layers=e.layers?.filter(s),e.tables=e.tables?.filter(o)}function u(e){e.type||="Feature Layer"}function L(e){e.type||="Table"}function d(e){e.layers?.forEach(u),e.tables?.forEach(L)}function S(e){if(!e)return"FeatureLayer";switch(e){case"Feature Layer":case"Table":return"FeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"DimensionFeatureLayer";case"Annotation Layer":return"AnnotationFeatureLayer"}return null}function f(e,a){if(!e)return a?"Table":"ArcGISFeatureLayer";switch(e){case"Annotation Layer":return"ArcGISAnnotationLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"ArcGISDimensionLayer";case"Feature Layer":return"ArcGISFeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Parcel Layer":return"ParcelLayer";case"Table":return"Table";case"Topology Layer":return"TopologyLayer";case"Trace Network Layer":return"TraceNetworkLayer";case"Utility Network Layer":return"UtilityNetworkLayer";default:return null}}},75356(e,a,r){r.d(a,{N:()=>f,populateOperationalLayers:()=>u});var t=r(7762),n=(r(44208),r(22429)),i=r(2976),y=r(6345),l=r(80812);function s(e,a){return!(!e.layerType||"ArcGISFeatureLayer"!==e.layerType)&&e.featureCollectionType===a}var o=r(45613),c=r(8947);async function u(e,a,r){if(!a)return;const t=a.map(e=>async function(e,a){return async function(e,a,r){const t=new e;return t.read(a,r.context),"group"===t.type&&("GroupLayer"===a.layerType?await f(t,a,r):S(a)?function(e,a,r){a.itemId&&(e.portalItem=new l.default({id:a.itemId,portal:r?.portal}),e.when(()=>{const t=t=>{const n=t.layerId;p(t,e,a,n,r);const i=a.featureCollection?.layers?.[n];i&&t.read(i,r)};e.layers?.forEach(t),e.tables?.forEach(t)}))}(t,a,r.context):d(a)&&await async function(e,a,r){const t=i.U.FeatureLayer,n=await t(),y=a.featureCollection,l=y?.showLegend,s=y?.layers?.map((t,i)=>{const y=new n;y.read(t,r);const s={...r,ignoreDefaults:!0};return p(y,e,a,i,s),null!=l&&y.read({showLegend:l},s),y});e.layers.addMany(s??[])}(t,a,r.context)),await(0,c.L)(t,r.context),t}(await L(e,a),e,a)}(e,r)),n=await Promise.allSettled(t);for(const a of n)"rejected"===a.status||a.value&&e.add(a.value)}async function L(e,a){const r=a.context,t=(e.layerType||e.type)??a.defaultLayerType;switch(t){case"Feature Collection":case"ArcGISFeatureLayer":if(function(e){return s(e,"notes")}(e)||function(e){return s(e,"markup")}(e))return i.U.MapNotesLayer();if(function(e){return s(e,"route")}(e))return i.U.RouteLayer();if(S(e)){const a=r?.portal;if(e.itemId){const r=new l.default({id:e.itemId,portal:a});await r.load();const t=(await(0,o.n)(r,new n.v)).className||"UnknownLayer";return i.U[t]()}return i.U.UnknownLayer()}return d(e)?i.U.GroupLayer():i.U.FeatureLayer();case"WebTiledLayer":return e.wmtsInfo?.url&&e.wmtsInfo.layerIdentifier?i.U.WMTSLayer():i.U.WebTileLayer();case"WFS":return"2.0.0"!==e.wfsInfo?.version?i.U.UnsupportedLayer():i.U.WFSLayer();default:{const e=(0,y.VH)(r,t);return(0,i.U[e])()}}}function d(e){return"ArcGISFeatureLayer"===e.layerType&&!S(e)&&(e.featureCollection?.layers?.length??0)>1}function S(e){return"Feature Collection"===e.type}async function f(e,a,r){const n=new t.A,i=u(n,Array.isArray(a.layers)?a.layers:[],r);try{try{if(await i,"group"===e.type)return e.layers.addMany(n),e}catch(a){e.destroy();for(const e of n)e.destroy();throw a}}catch(e){throw e}}function p(e,a,r,t,n){e.read({id:`${a.id}-sublayer-${t}`,visibility:r.visibleLayers?.includes(t)??!0},n)}},2976(e,a,r){const t={AnnotationFeatureLayer:async()=>(await Promise.all([r.e(8278),r.e(7865),r.e(5411),r.e(6554),r.e(2869),r.e(3910),r.e(564),r.e(7552),r.e(2889),r.e(4674),r.e(4333),r.e(8678)]).then(r.bind(r,20737))).default,BingMapsLayer:async()=>(await Promise.all([r.e(8278),r.e(7865),r.e(6554),r.e(6684)]).then(r.bind(r,17029))).default,BuildingSceneLayer:async()=>(await Promise.all([r.e(7632),r.e(8278),r.e(7865),r.e(5411),r.e(6554),r.e(2869),r.e(3910),r.e(9953),r.e(4800),r.e(564),r.e(7552),r.e(1214),r.e(2889),r.e(1017),r.e(500),r.e(4674),r.e(993),r.e(4333),r.e(3781),r.e(6231),r.e(7005),r.e(9240),r.e(6286),r.e(3290),r.e(2029),r.e(594)]).then(r.bind(r,82411))).default,CSVLayer:async()=>(await Promise.all([r.e(8278),r.e(7865),r.e(5411),r.e(6554),r.e(2869),r.e(3910),r.e(9953),r.e(4800),r.e(564),r.e(7552),r.e(1214),r.e(2889),r.e(1017),r.e(230)]).then(r.bind(r,68695))).default,CatalogLayer:async()=>(await Promise.all([r.e(8278),r.e(7865),r.e(5411),r.e(6554),r.e(2869),r.e(3910),r.e(4800),r.e(564),r.e(7552),r.e(1214),r.e(2889),r.e(500),r.e(4674),r.e(893),r.e(993),r.e(4333),r.e(2656),r.e(4571),r.e(3604)]).then(r.bind(r,83508))).default,DimensionFeatureLayer:async()=>(await Promise.all([r.e(8278),r.e(7865),r.e(5411),r.e(6554),r.e(2869),r.e(3910),r.e(564),r.e(7552),r.e(2889),r.e(4674),r.e(4333),r.e(3772)]).then(r.bind(r,25077))).default,DimensionLayer:async()=>(await Promise.all([r.e(8278),r.e(3813)]).then(r.bind(r,71493))).default,ElevationLayer:async()=>(await Promise.all([r.e(8278),r.e(9953),r.e(8732),r.e(3483)]).then(r.bind(r,38732))).default,FeatureLayer:async()=>(await Promise.all([r.e(7632),r.e(8278),r.e(7865),r.e(5411),r.e(6554),r.e(2869),r.e(3910),r.e(9953),r.e(4800),r.e(564),r.e(7552),r.e(1214),r.e(2889),r.e(1017),r.e(500),r.e(4674),r.e(993),r.e(4333),r.e(3781),r.e(1554)]).then(r.bind(r,53781))).default,GaussianSplatLayer:async()=>(await Promise.all([r.e(8278),r.e(6231),r.e(9177),r.e(6475)]).then(r.bind(r,36475))).default,GeoJSONLayer:async()=>(await Promise.all([r.e(8278),r.e(7865),r.e(5411),r.e(6554),r.e(2869),r.e(3910),r.e(9953),r.e(4800),r.e(564),r.e(7552),r.e(1214),r.e(2889),r.e(1017),r.e(500),r.e(3052)]).then(r.bind(r,15481))).default,GeoRSSLayer:async()=>(await Promise.all([r.e(8278),r.e(7865),r.e(6554),r.e(9657)]).then(r.bind(r,63201))).default,GroupLayer:async()=>(await Promise.all([r.e(8278),r.e(7865),r.e(5613),r.e(6569)]).then(r.bind(r,85989))).default,ImageryLayer:async()=>(await Promise.all([r.e(8278),r.e(7865),r.e(5411),r.e(6554),r.e(2869),r.e(3910),r.e(9953),r.e(564),r.e(7552),r.e(893),r.e(6231),r.e(1683),r.e(7939),r.e(7657),r.e(7772),r.e(8768)]).then(r.bind(r,87772))).default,ImageryTileLayer:async()=>(await Promise.all([r.e(8278),r.e(7865),r.e(5411),r.e(6554),r.e(2869),r.e(3910),r.e(9953),r.e(564),r.e(6231),r.e(1683),r.e(7939),r.e(2754),r.e(7657),r.e(9235),r.e(3500),r.e(1003),r.e(2806),r.e(7870)]).then(r.bind(r,90124))).default,IntegratedMesh3DTilesLayer:async()=>(await Promise.all([r.e(8278),r.e(9953),r.e(6231),r.e(9177),r.e(8325),r.e(132)]).then(r.bind(r,61528))).default,IntegratedMeshLayer:async()=>(await Promise.all([r.e(8278),r.e(9953),r.e(6231),r.e(9240),r.e(9177),r.e(8325),r.e(7464)]).then(r.bind(r,74660))).default,KMLLayer:async()=>(await Promise.all([r.e(8278),r.e(7865),r.e(5411),r.e(6554),r.e(2869),r.e(3910),r.e(4800),r.e(564),r.e(1214),r.e(6257)]).then(r.bind(r,162))).default,KnowledgeGraphLayer:async()=>(await Promise.all([r.e(8278),r.e(7865),r.e(5411),r.e(6554),r.e(2869),r.e(3910),r.e(9953),r.e(4800),r.e(564),r.e(7552),r.e(1214),r.e(2889),r.e(1017),r.e(500),r.e(993),r.e(9696),r.e(5052),r.e(8245),r.e(1683),r.e(217),r.e(1521),r.e(2969),r.e(2871),r.e(8692)]).then(r.bind(r,28692))).default,LineOfSightLayer:async()=>(await Promise.all([r.e(8278),r.e(6231),r.e(4807),r.e(9695)]).then(r.bind(r,49695))).default,LinkChartLayer:async()=>(await Promise.all([r.e(8278),r.e(7865),r.e(5411),r.e(6554),r.e(2869),r.e(3910),r.e(9953),r.e(4800),r.e(564),r.e(7552),r.e(1214),r.e(2889),r.e(1017),r.e(500),r.e(993),r.e(9696),r.e(5052),r.e(8245),r.e(1683),r.e(217),r.e(1521),r.e(2969),r.e(2871),r.e(3309)]).then(r.bind(r,93309))).default,MapImageLayer:async()=>(await Promise.all([r.e(8278),r.e(7865),r.e(5411),r.e(6554),r.e(2869),r.e(3910),r.e(4800),r.e(564),r.e(7552),r.e(1214),r.e(2889),r.e(500),r.e(4674),r.e(893),r.e(822),r.e(1329)]).then(r.bind(r,7656))).default,MapNotesLayer:async()=>(await Promise.all([r.e(7632),r.e(8278),r.e(7865),r.e(5411),r.e(6554),r.e(2869),r.e(3910),r.e(9953),r.e(4800),r.e(564),r.e(7552),r.e(1214),r.e(2889),r.e(1017),r.e(500),r.e(4674),r.e(993),r.e(4333),r.e(3781),r.e(2969),r.e(1098)]).then(r.bind(r,96299))).default,MediaLayer:async()=>(await Promise.all([r.e(7632),r.e(8278),r.e(7865),r.e(1670),r.e(2491)]).then(r.bind(r,90182))).default,OGCFeatureLayer:async()=>(await Promise.all([r.e(8278),r.e(7865),r.e(5411),r.e(6554),r.e(2869),r.e(3910),r.e(4800),r.e(564),r.e(7552),r.e(1214),r.e(2889),r.e(1017),r.e(500),r.e(5052),r.e(6286),r.e(5974)]).then(r.bind(r,65977))).default,OpenStreetMapLayer:async()=>(await Promise.all([r.e(8278),r.e(7865),r.e(6554),r.e(7269),r.e(349)]).then(r.bind(r,40349))).default,OrientedImageryLayer:async()=>(await Promise.all([r.e(7632),r.e(8278),r.e(7865),r.e(5411),r.e(6554),r.e(2869),r.e(3910),r.e(9953),r.e(4800),r.e(564),r.e(7552),r.e(1214),r.e(2889),r.e(1017),r.e(500),r.e(4674),r.e(993),r.e(4333),r.e(3781),r.e(6113),r.e(4372)]).then(r.bind(r,16852))).default,ParquetLayer:async()=>(await Promise.all([r.e(8278),r.e(7865),r.e(5411),r.e(2869),r.e(3910),r.e(9953),r.e(4800),r.e(564),r.e(7552),r.e(1214),r.e(2889),r.e(1017),r.e(500),r.e(3819),r.e(8924),r.e(2920)]).then(r.bind(r,99680))).default,PointCloudLayer:async()=>(await Promise.all([r.e(8278),r.e(2869),r.e(6231),r.e(9240),r.e(7984),r.e(6533)]).then(r.bind(r,77885))).default,RouteLayer:async()=>(await Promise.all([r.e(8278),r.e(7865),r.e(5411),r.e(2869),r.e(3910),r.e(4800),r.e(564),r.e(1214),r.e(217),r.e(769)]).then(r.bind(r,39622))).default,SceneLayer:async()=>(await Promise.all([r.e(8278),r.e(5411),r.e(2869),r.e(3910),r.e(4800),r.e(564),r.e(7552),r.e(1214),r.e(2889),r.e(6231),r.e(7005),r.e(9240),r.e(6286),r.e(3290),r.e(2029),r.e(8231)]).then(r.bind(r,2e4))).default,StreamLayer:async()=>(await Promise.all([r.e(8278),r.e(7865),r.e(5411),r.e(6554),r.e(2869),r.e(3910),r.e(4800),r.e(564),r.e(7552),r.e(1214),r.e(2889),r.e(1017),r.e(3681),r.e(4705)]).then(r.bind(r,79457))).default,SubtypeGroupLayer:async()=>(await Promise.all([r.e(7632),r.e(8278),r.e(7865),r.e(5411),r.e(6554),r.e(2869),r.e(3910),r.e(564),r.e(7552),r.e(2889),r.e(500),r.e(4674),r.e(993),r.e(4333),r.e(1683),r.e(1038)]).then(r.bind(r,97483))).default,TileLayer:async()=>(await Promise.all([r.e(8278),r.e(7865),r.e(5411),r.e(6554),r.e(2869),r.e(3910),r.e(4800),r.e(564),r.e(7552),r.e(1214),r.e(2889),r.e(500),r.e(4674),r.e(893),r.e(822),r.e(4849)]).then(r.bind(r,71756))).default,UnknownLayer:async()=>(await r.e(146).then(r.bind(r,146))).default,UnsupportedLayer:async()=>(await r.e(5165).then(r.bind(r,45165))).default,VectorTileLayer:async()=>(await Promise.all([r.e(8278),r.e(7865),r.e(6554),r.e(5228),r.e(5897),r.e(3897)]).then(r.bind(r,48757))).default,VideoLayer:async()=>(await Promise.all([r.e(8278),r.e(7865),r.e(3910),r.e(4674),r.e(1683),r.e(1670),r.e(1563)]).then(r.bind(r,86875))).default,ViewshedLayer:async()=>(await Promise.all([r.e(8278),r.e(6231),r.e(4807),r.e(6650)]).then(r.bind(r,96650))).default,VoxelLayer:async()=>(await Promise.all([r.e(8278),r.e(2869),r.e(9240),r.e(117)]).then(r.bind(r,21005))).default,WCSLayer:async()=>(await Promise.all([r.e(8278),r.e(7865),r.e(5411),r.e(6554),r.e(2869),r.e(3910),r.e(9953),r.e(564),r.e(1683),r.e(7939),r.e(2754),r.e(7657),r.e(9235),r.e(3500),r.e(2806),r.e(3661)]).then(r.bind(r,20521))).default,WFSLayer:async()=>(await Promise.all([r.e(8278),r.e(7865),r.e(5411),r.e(6554),r.e(2869),r.e(3910),r.e(9953),r.e(4800),r.e(564),r.e(7552),r.e(1214),r.e(2889),r.e(1017),r.e(5052),r.e(2774),r.e(3153)]).then(r.bind(r,21901))).default,WMSLayer:async()=>(await Promise.all([r.e(7632),r.e(8278),r.e(7865),r.e(5411),r.e(6554),r.e(2869),r.e(3910),r.e(7636)]).then(r.bind(r,51904))).default,WMTSLayer:async()=>(await Promise.all([r.e(8278),r.e(7865),r.e(6554),r.e(7269),r.e(309)]).then(r.bind(r,20309))).default,WebTileLayer:async()=>(await Promise.all([r.e(8278),r.e(7865),r.e(6554),r.e(7269)]).then(r.bind(r,47314))).default};r.d(a,["U",0,t])},6345(e,a,r){r.d(a,{Bu:()=>w,VH:()=>g});var t=r(44208);const n={ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BingMapsAerial:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",OpenStreetMap:"OpenStreetMapLayer",VectorTileLayer:"VectorTileLayer",WCS:"WCSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},i={ArcGISAnnotationLayer:"AnnotationFeatureLayer",ArcGISDimensionLayer:"DimensionFeatureLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISStreamLayer:"StreamLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",ArcGISVideoLayer:"VideoLayer",BingMapsAerial:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",CatalogLayer:"CatalogLayer",CSV:"CSVLayer",GeoJSON:"GeoJSONLayer",GeoRSS:"GeoRSSLayer",GroupLayer:"GroupLayer",KML:"KMLLayer",KnowledgeGraphLayer:"KnowledgeGraphLayer",MediaLayer:"MediaLayer",OGCFeatureLayer:"OGCFeatureLayer",OrientedImageryLayer:"OrientedImageryLayer",get ParquetLayer(){return(0,t.A)("parquetlayer-persistence-enabled")?"ParquetLayer":"UnsupportedLayer"},SubtypeGroupLayer:"SubtypeGroupLayer",VectorTileLayer:"VectorTileLayer",WCS:"WCSLayer",WFS:"WFSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},y={ArcGISFeatureLayer:"FeatureLayer",SubtypeGroupTable:"SubtypeGroupLayer"},l={ArcGISImageServiceLayer:"UnsupportedLayer",ArcGISMapServiceLayer:"UnsupportedLayer",ArcGISSceneServiceLayer:"SceneLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",OpenStreetMap:"OpenStreetMapLayer",VectorTileLayer:"VectorTileLayer",WCS:"UnsupportedLayer",WMS:"UnsupportedLayer",WebTiledLayer:"WebTileLayer"},s={IntegratedMesh3DTilesLayer:"IntegratedMesh3DTilesLayer"},o={ArcGISTiledElevationServiceLayer:"ElevationLayer",RasterDataElevationLayer:"UnsupportedLayer"},c={ArcGISDimensionLayer:"DimensionLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISSceneServiceLayer:"SceneLayer",ArcGISTiledElevationServiceLayer:"ElevationLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BuildingSceneLayer:"BuildingSceneLayer",CatalogLayer:"CatalogLayer",CSV:"CSVLayer",GaussianSplatLayer:"GaussianSplatLayer",GeoJSON:"GeoJSONLayer",GroupLayer:"GroupLayer",IntegratedMesh3DTilesLayer:"IntegratedMesh3DTilesLayer",Object3DTilesLayer:"UnsupportedLayer",IntegratedMeshLayer:"IntegratedMeshLayer",KML:"KMLLayer",LineOfSightLayer:"LineOfSightLayer",MediaLayer:"MediaLayer",OGCFeatureLayer:"OGCFeatureLayer",OrientedImageryLayer:"OrientedImageryLayer",PointCloudLayer:"PointCloudLayer",RasterDataLayer:"UnsupportedLayer",VectorTileLayer:"VectorTileLayer",ViewshedLayer:"ViewshedLayer",Voxel:"VoxelLayer",WCS:"WCSLayer",WFS:"WFSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},u={ArcGISFeatureLayer:"FeatureLayer"},L={...i,LinkChartLayer:"LinkChartLayer"},d=n,S=y,f={ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISSceneServiceLayer:"SceneLayer",ArcGISStreamLayer:"StreamLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",BuildingSceneLayer:"BuildingSceneLayer",IntegratedMesh3DTilesLayer:"IntegratedMesh3DTilesLayer",IntegratedMeshLayer:"IntegratedMeshLayer",MediaLayer:"MediaLayer",OrientedImageryLayer:"OrientedImageryLayer",PointCloudLayer:"PointCloudLayer",SubtypeGroupLayer:"SubtypeGroupLayer",WCS:"WCSLayer"},p=y;function m(e){switch(e.origin){case"web-scene":switch(e.layerContainerType){case"basemap-base-layers":return l;case"basemap-ground-layers":return s;case"ground":return o;case"tables":return u;default:return c}case"link-chart":switch(e.layerContainerType){case"basemap-base-layers":return d;case"tables":return S;default:return L}default:switch(e.layerContainerType){case"basemap-base-layers":return n;case"tables":return y;case"ground":case"basemap-ground-layers":return;default:return i}}}function g(e,a){if(!a)return"UnknownLayer";if("DefaultTileLayer"===a){let a="UnknownLayer";if("web-scene"===e.origin)switch(e.layerContainerType){case"operational-layers":case"basemap-base-layers":a="TileLayer";break;case"ground":a="ElevationLayer"}else switch(e.layerContainerType){case"basemap-base-layers":case"operational-layers":a="TileLayer"}return a}return m(e)?.[a]??"UnknownLayer"}function w(e,a,r){if(!e?.origin)return!1;switch(e.origin){case"web-map":case"link-chart":if("operational-layers"===e.layerContainerType&&"ArcGISDimensionLayer"===a&&"dimension-feature"!==r)return!1;break;case"web-scene":if("operational-layers"===e.layerContainerType&&"ArcGISTiledElevationServiceLayer"===a)return!1}const t=function(e){if("portal-item"===e.origin)switch(e.layerContainerType){case"basemap-base-layers":case"ground":case"basemap-ground-layers":return;case"tables":return p;default:return f}return m(e)}(e)?.[a];return null!=t&&"UnknownLayer"!==t&&"UnsupportedLayer"!==t}},8947(e,a,r){r.d(a,{L:()=>y});var t=r(60999),n=r(17676),i=r(67076);async function y(e,a,r){const y=e&&e.getAtOrigin&&e.getAtOrigin("renderer",a.origin);if(y&&"unique-value"===y.type&&y.styleOrigin){const l=await(0,t.Ke)(y.populateFromStyle());if((0,n.Te)(r),!1===l.ok){const r=l.error;a?.messages&&a.messages.push(new i.A("renderer:style-reference",`Failed to create unique value renderer from style reference: ${r.message}`,{error:r,context:a})),e.clear("renderer",a?.origin)}}}},7861(e,a,r){r.d(a,{L:()=>n});var t=r(11254);async function n(e,a){return(await(0,t.A)(e,{responseType:"json",query:{f:"json",...a?.customParameters,token:a?.apiKey}})).data}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2754],{34930(e,t,n){n.d(t,{$Q:()=>l,Sd:()=>c,T5:()=>s,b7:()=>f});var i=n(86211),a=n(5443),o=n(86738),r=n(14140);function s(e,t){if(e.spatialReference.equals(t))return e;const n=(0,i.GA)(e.spatialReference),a=(0,i.GA)(t);if(n===a)return e;const o=n/a;return{x:e.x*o,y:e.y*o}}async function l(e,t,i){if("extent"===i.type)return function(e,t,n){const{width:i,height:a}=e,o=new Uint8Array(i*a),s=t.width/i,l=t.height/a;if(n.width/s<.5||n.height/l<.5)return new r.A({pixelType:e.pixelType,width:i,height:a,mask:o,pixels:[...e.pixels]});const{xmin:c,xmax:f,ymin:x,ymax:h}=t,{xmin:u,xmax:m,ymin:p,ymax:g}=n,y=Math.max(c,u),d=Math.min(f,m),w=Math.max(x,p),M=Math.min(h,g),R=.5*s,P=.5*l;if(d-y<R||M-w<P||d<c+R||y>f-R||w>h-P||M<x+P)return new r.A({pixelType:e.pixelType,width:i,height:a,mask:o,pixels:[...e.pixels]});const k=Math.max(0,(y-c)/s),b=Math.min(i,Math.max(0,(d-c)/s)),A=Math.max(0,(h-M)/l),T=Math.min(a,Math.max(0,(h-w)/l)),S=Math.round(k),G=Math.round(b)-1,E=Math.round(A),N=Math.round(T)-1;if(S===G&&k%1>.5&&b%1<.5||E===N&&A%1>.5&&T%1<.5)return new r.A({pixelType:e.pixelType,width:i,height:a,mask:o,pixels:[...e.pixels]});if(0===S&&0===E&&G===i&&N===a)return e;const C=e.mask;for(let e=E;e<=N;e++)for(let t=S;t<=G;t++){const n=e*i+t;o[n]=C?C[n]:255}return new r.A({pixelType:e.pixelType,width:i,height:a,mask:o,pixels:[...e.pixels]})}(e,t,i);const{width:a,height:o}=e,s=new Uint8Array(a*o);return(await Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(1132)]).then(n.bind(n,25275))).execute(t,i)?"polyline"===i.type?function(e,t,n){const{width:i,height:a}=e,o=new Uint8Array(i*a),s=t.width/i,l=t.height/a,{xmin:c,ymax:f}=t,{paths:x}=n,h=e.mask;for(let e=0;e<x.length;e++){const t=x[e];for(let e=0;e<t.length-1;e++){const[n,r]=t[e],[x,u]=t[e+1],m=Math.min(r,u),p=Math.max(r,u),g=Math.max(0,Math.floor((f-p)/l)),y=Math.min(a-1,Math.floor((f-m)/l));if(!(y<g))if(g===y){const e=Math.min(n,x),t=Math.max(n,x),a=Math.max(0,Math.floor((e-c)/s)),r=Math.min(i-1,Math.floor((t-c)/s));if(r<a)continue;const l=g*i;for(let e=l+a;e<=l+r;e++)o[e]=h?h[e]:255}else{const e=(n-c)/s,t=(x-n)/(u-r)/s,a=l*t;for(let n=g;n<=y;n++){const s=t*(f-n*l-r)+e,c=Math.max(0,Math.floor(a>0?s-a:s)),x=Math.min(i-1,Math.floor(a>0?s:s-a));if(x<c)continue;const u=n*i;for(let e=u+c;e<=u+x;e++)o[e]=h?h[e]:255}}}}return new r.A({pixelType:e.pixelType,width:i,height:a,mask:o,pixels:[...e.pixels]})}(e,t,i):(await Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(6671)]).then(n.bind(n,30912))).execute(i,t)?e:function(e,t,n){if(!e)return e;const{width:i,height:a}=e,o=function(e){const{geometry:t,size:n,srcExtent:i,srcMask:a}=e,[o,r]=n;let s;const l=i.width/o,c=i.height/r,{xmin:f,ymax:x}=i;if("extent"===t.type){const e=(t.xmin-f)/l,n=(t.xmax-f)/l,i=(x-t.ymax)/c,a=(x-t.ymin)/c;s=[[[e,i],[e,a],[n,a],[n,i],[e,i]]]}else s=t.rings.map(e=>e.map(([e,t])=>[(e-f)/l,(x-t)/c]));return function(e,t,n){const[i,a]=t,o=new OffscreenCanvas(i,a).getContext("2d");o.fillStyle="#f00",o.beginPath(),e.forEach(e=>{o.moveTo(e[0][0],e[0][1]);for(let t=0;t<e.length;t++)o.lineTo(e[t][0],e[t][1]);o.closePath()}),o.fill();const r=o.getImageData(0,0,i,a).data,s=i*a,l=new Uint8Array(s);let c=!1;for(let e=0;e<s;e++)n&&!n[e]||(r[4*e+3]>127?l[e]=255:c=!0);return c||n?l:void 0}(s,n,a)}({geometry:n,size:[i,a],srcExtent:t,srcMask:e.mask});return new r.A({pixelType:e.pixelType,width:i,height:a,mask:o,maskIsAlpha:!1,pixels:[...e.pixels]})}(e,t,i):new r.A({pixelType:e.pixelType,width:a,height:o,mask:s,maskIsAlpha:!1,pixels:[...e.pixels]})}function c(e,t){const{extent:n}=f(e,t,new o.A({x:e.pixelSize.x,y:e.pixelSize.y,spatialReference:e.spatialReference})),{extent:i}=e.extent;if(n.xmax=Math.min(n.xmax,i.xmax),n.ymax=Math.min(n.ymax,i.ymax),n.xmin<n.xmax&&n.ymin<n.ymax){const{x:t,y:i}=e.pixelSize,a=Math.round(n.width/t),o=Math.round(n.height/i);e.extent=n,e.width=a,e.height=o}}function f(e,t,n,i=!0){const{spatialReference:o}=e,{x:r,y:l}=s(n,o);let c,f,x;const h="extent"===t.type?t:t.extent;let{xmin:u,xmax:m,ymax:p,ymin:g}=h;const{xmin:y,ymax:d}=e.extent;return i?(u=y+(u>y?r*Math.round((u-y)/r):0),p=d-(p<d?l*Math.round((d-p)/l):0),m=y+(m>y?r*Math.round((m-y)/r):0),g=d-(g<d?l*Math.round((d-g)/l):0),c=new a.A({xmin:u,ymax:p,xmax:m,ymin:g,spatialReference:o}),f=Math.round(c.width/r),x=Math.round(c.height/l)):(f=Math.floor((m-u)/r+.8),x=Math.floor((p-g)/l+.8),u=y+(u>y?r*Math.floor((u-y)/r+.1):0),p=d-(p<d?l*Math.floor((d-p)/l+.1):0),m=u+f*r,g=p-x*l,c=new a.A({xmin:u,ymax:p,xmax:m,ymin:g,spatialReference:o})),{extent:c,width:f,height:x}}},37373(e,t,n){n.d(t,{DO:()=>F,FT:()=>L,Hh:()=>k,OM:()=>j,Ps:()=>U,Wo:()=>b,_I:()=>T,_l:()=>_,l0:()=>Y,t$:()=>J,uk:()=>z});var i=n(4576),a=n(49186),o=n(86211),r=n(5443),s=n(83290),l=n(86738),c=n(39829),f=n(91218),x=n(16930),h=n(21325);function u(){if(!P)throw new a.A("rasterprojectionhelper-project","projection operator is not loaded")}const m=(e,t,n,i=0)=>{if(1===n[0])return[0,0];let a=1,o=-1,r=1,s=-1;for(let t=0;t<e.length;t+=2)isNaN(e[t])||(a=a>e[t]?e[t]:a,o=o>e[t]?o:e[t],r=r>e[t+1]?e[t+1]:r,s=s>e[t+1]?s:e[t+1]);const{cols:l,rows:c}=t,f=(o-a)/l/n[0],x=(s-r)/c/n[1],h=2*i;let u=0,m=!1,p=[0,0];for(let t=0;t<l-3;t++){for(let n=0;n<c-3;n++){const i=t*c*2+2*n,a=(e[i]+e[i+4]+e[i+4*c]+e[i+4*c+4])/4,o=(e[i+1]+e[i+5]+e[i+4*c+1]+e[i+4*c+5])/4,r=Math.abs((a-e[i+2*c+2])/f),s=Math.abs((o-e[i+2*c+3])/x);if(r+s>u&&(u=r+s,p=[r,s]),h&&u>h){m=!0;break}}if(m)break}return p},p={3395:20037508.342789244,3410:17334193.943686873,3857:20037508.342788905,3975:17367530.445161372,4087:20037508.342789244,4088:20015108.787169147,6933:17367530.445161372,32662:20037508.342789244,53001:20015086.79602057,53002:10007543.39801029,53003:20015086.79602057,53004:20015086.79602057,53016:14152803.599503474,53017:17333573.624304302,53034:20015086.79602057,53079:20015114.352186374,53080:20015114.352186374,54001:20037508.342789244,54002:10018754.171394624,54003:20037508.342789244,54004:20037508.342789244,54016:14168658.027268292,54017:17367530.44516137,54034:20037508.342789244,54079:20037508.342789244,54080:20037508.342789244,54100:20037508.342789244,54101:20037508.342789244},g=new Map,y=new Map,d=500;let w,M,R,P=!1;async function k(){return w||(w=Promise.withResolvers(),M=await n.e(3276).then(n.bind(n,83276)),R=await n.e(2158).then(n.bind(n,12158)),M.isLoaded()||await M.load(),R.isLoaded()||await R.load(),P=!0,w.resolve()),w.promise}function b(e,t,n,i){const a=e.spatialReference;if(!a||!t||a.equals(t))return e;u();const s=n.center,l=new r.A({xmin:s.x-e.x/2,xmax:s.x+e.x/2,ymin:s.y-e.y/2,ymax:s.y+e.y/2,spatialReference:a}),c=M.execute(l,t,{geographicTransformation:i}),f=L(t);return null==c||null!=f&&c.width>=f?function(e,t,n){const i=(0,o.GA)(t)/(0,o.GA)(n);return{x:e.x*i,y:e.y*i}}(e,a,t):{x:c.width,y:c.height}}function A(e,t=.01){return(0,o.GA)(e)?t/(0,o.GA)(e):0}function T(e,t,n,i=!0){const a=e.spatialReference;if(a.equals(t))return e;u();const o=M.execute(e,t,{geographicTransformation:n});return i&&o?(S([e],[o],a,t),o):o}function S(e,t,n,i){const a=W(n,!0),o=W(i,!0),r=A(n,d),s=A(i,d);if(r&&null!=a&&null!=o)for(let n=0;n<e.length;n++){const i=t[n];if(!i)continue;const{x:l}=e[n],{x:c}=i;c>=o[1]-s&&Math.abs(l-a[0])<r?i.x-=o[1]-o[0]:c<=o[0]+s&&Math.abs(l-a[1])<r&&(i.x+=o[1]-o[0])}}function G(e){const{inSR:t,outSR:n,preferPE:i}=e;if(t.equals(n)){const{points:t}=v(e,null);return t}if(t.isWebMercator&&n.isWGS84||t.isWGS84&&n.isWebMercator)return function(e){const{cols:t,rows:n,xres:i,yres:a,usePixelCenter:o,inSR:r,outSR:s}=e;let{xmin:c,ymax:x}=e;o&&(c+=i/2,x-=a/2);const h=[],u=[],m=Math.max(t,n);for(let e=0;e<m;e++){const o=c+i*Math.min(t,e),m=x-a*Math.min(n,e),p=(0,f.projectWithoutEngine)(new l.A({x:o,y:m,spatialReference:r}),r,s);e<=t&&h.push(p.x),e<=n&&u.push(p.y)}const p=[];for(let e=0;e<t;e++)for(let t=0;t<n;t++)p.push([h[e],u[t]]);return p}(e);if(i){if(t.isGeographic)return E(e);if(null!=N(t))return E(e)}return function(e){const{points:t}=v(e,null),{inSR:n,outSR:i,datumTransformation:a}=e,o=t.map(e=>new l.A(e[0],e[1],n)),r=M.executeMany(o,i,{geographicTransformation:a});return a&&S(o,r,n,i),r.map(e=>e?[e.x,e.y]:[NaN,NaN])}(e)}function E(e){const{inSR:t,outSR:n,datumTransformation:i}=e,a=N(t),{points:o,mask:r}=v(e,a);if(!t.isGeographic){const e=t.wkid?s.P.coordsys(t.wkid):s.P.fromString(t.isGeographic?s.a.PE_TYPE_GEOGCS:s.a.PE_TYPE_PROJCS,t.wkt2||t.wkt);s.c.projToGeog(e,o.length,o)}if(null!=i&&i.steps.length){let e;const t=179.9955;if(n.isGeographic&&(e=o.map(([e])=>e>t?1:e<-t?-1:0)),i.steps.forEach(e=>{const t=e.wkid?s.P.geogtran(e.wkid):s.P.fromString(s.a.PE_TYPE_GEOGTRAN,e.wkt);s.d.geogToGeog(t,o.length,o,null,e.isInverse?s.a.PE_TRANSFORM_2_TO_1:s.a.PE_TRANSFORM_1_TO_2)}),e)for(let n=0;n<o.length;n++){const i=e[n],a=o[n][0],r=a>t?1:a<-t?-1:0;i&&r&&i!==r&&(o[n][0]=i>0?a+360:a-360)}}if(!n.isGeographic){const e=N(n,!0),t=null!=e&&e.isEnvelope?[e.bbox[1],e.bbox[3]]:[-90,90];!function(e,t){const[n,i]=t;for(let t=0;t<e.length;t++){const a=e[t][1];(a<n||a>i)&&(e[t]=[NaN,NaN])}}(o,t);const i=n.wkid?s.P.coordsys(n.wkid):s.P.fromString(n.isGeographic?s.a.PE_TYPE_GEOGCS:s.a.PE_TYPE_PROJCS,n.wkt2||n.wkt);s.c.geogToProj(i,o.length,o)}let l=o;if(r&&o.length!==r.length){l=[];for(let e=0,t=0;e<r.length;e++)r[e]?l.push(o[t++]):l.push([NaN,NaN])}return l}function N(e,t=!1){let n=e.wkid||e.wkt2||e.wkt;if(!n||e.isGeographic)return null;if(n=String(n),g.has(n)){const e=g.get(n);return t?e?.gcs:e?.pcs}const i=e.wkid?s.P.coordsys(e.wkid):s.P.fromString(e.isGeographic?s.a.PE_TYPE_GEOGCS:s.a.PE_TYPE_PROJCS,e.wkt2||e.wkt),a=C(i,A(e,1e-4)),o=C(i,0,!0);return g.set(n,{pcs:a,gcs:o}),t?o:a}function C(e,t=0,n=!1){const i=s.b.generate(e),a=n?e.horizonGcsGenerate():e.horizonPcsGenerate();if(!i||!a?.length)return null;let o=!1,r=a.find(e=>1===e.getInclusive()&&1===e.getKind());if(!r){if(r=a.find(e=>1===e.getInclusive()&&0===e.getKind()),!r)return null;o=!0}const l=n?0:(2===i.getNorthPoleLocation()?1:0)|(2===i.getSouthPoleLocation()?2:0),c=i.isPannableRectangle(),f=r.getCoord();if(o)return{isEnvelope:o,isPannable:c,vertices:f,coef:null,bbox:[f[0][0]-t,f[0][1]-t,f[1][0]+t,f[1][1]+t],poleLocation:l};let x=0;const h=[];let[u,m]=f[0],[p,g]=f[0];for(let e=0,t=f.length;e<t;e++){x++,x===t&&(x=0);const[n,i]=f[e],[a,o]=f[x];if(o===i)h.push([n,a,i,o,2]);else{const e=(a-n)/(o-i||1e-4),t=n-e*i;i<o?h.push([e,t,i,o,0]):h.push([e,t,o,i,1])}u=u<n?u:n,m=m<i?m:i,p=p>n?p:n,g=g>i?g:i}return{isEnvelope:!1,isPannable:c,vertices:f,coef:h,bbox:[u,m,p,g],poleLocation:l}}function v(e,t){const n=[],{cols:i,rows:a,xres:o,yres:r,usePixelCenter:s}=e;let{xmin:l,ymax:c}=e;if(s&&(l+=o/2,c-=r/2),null==t){for(let e=0;e<i;e++)for(let t=0;t<a;t++)n.push([l+o*e,c-r*t]);return{points:n}}const f=new Uint8Array(i*a);if(t.isEnvelope){const{isPannable:e,bbox:[s,x,h,u]}=t;for(let t=0,m=0;t<i;t++){const i=l+o*t,p=e||i>=s&&i<=h;for(let e=0;e<a;e++,m++){const t=c-r*e;p&&t>=x&&t<=u&&(n.push([i,t]),f[m]=1)}}return{points:n,mask:f}}const x=t.coef,h=[];for(let e=0;e<a;e++){const t=c-r*e,n=[],i=[];for(let e=0;e<x.length;e++){const[a,o,r,s,l]=x[e];if(t===r&&r===s)n.push(a),n.push(o),i.push(2),i.push(2);else if(t>=r&&t<=s){const e=a*t+o;n.push(e),i.push(l)}}let a=n;if(n.length>2){let e=2===i[0]?0:i[0],t=n[0];a=[];for(let o=1;o<i.length;o++)2===i[o]&&o!==i.length-1||(i[o]!==e&&(a.push(0===e?Math.min(t,n[o-1]):Math.max(t,n[o-1])),e=i[o],t=n[o]),o===i.length-1&&a.push(0===i[o]?Math.min(t,n[o]):Math.max(t,n[o])));a.sort((e,t)=>e-t)}else n[0]>n[1]&&(a=[n[1],n[0]]);h.push(a)}for(let e=0,t=0;e<i;e++){const i=l+o*e;for(let e=0;e<a;e++,t++){const a=c-r*e,o=h[e];if(2===o.length)i>=o[0]&&i<=o[1]&&(n.push([i,a]),f[t]=1);else if(o.length>2){let e=!1;for(let t=0;t<o.length;t+=2)if(i>=o[t]&&i<=o[t+1]){e=!0;break}e&&(n.push([i,a]),f[t]=1)}}}return{points:n,mask:f}}function _(e,t,n=null,a=!0){const o=e.spatialReference;if(o.equals(t)||!t)return e;const s=j(e),l=L(o,!0),f=L(t);if(0===s||null==l||null==f){const i=O(e,t,n,a);if(i&&null==l&&null!=f&&Math.abs(i.width-f)<A(t)&&M.isLoaded()){const n=N(o);if(null!=n&&0===n.poleLocation&&e.width<(n.bbox[2]-n.bbox[0])/2)return function(e,t){const n=L(t);if(null==n)return null;let{xmin:i,ymin:a,xmax:o,ymax:s}=e;const l=e.spatialReference,f=new c.A({spatialReference:l,rings:[[[i,a],[o,a],[o,s],[i,s],[i,a]]]}),x=M.execute(f,t);if(2!==x.rings.length||!x.rings[0].length||!x.rings[1].length)return null;const{rings:h}=x,u=A(l),m=new r.A({spatialReference:t});for(let e=0;e<2;e++){i=o=h[e][0][0],a=s=h[e][0][1];for(let t=0;t<h[e].length;t++)i=i>h[e][t][0]?h[e][t][0]:i,o=o<h[e][t][0]?h[e][t][0]:o,a=a>h[e][t][1]?h[e][t][1]:a,s=s<h[e][t][1]?h[e][t][1]:s;if(0===e)m.ymin=a,m.ymax=s,m.xmin=i,m.xmax=o;else if(m.ymin=Math.min(m.ymin,a),m.ymax=Math.max(m.ymax,s),Math.abs(o-n/2)<u)m.xmin=i,m.xmax=m.xmax+n;else{if(!(Math.abs(i+n/2)<u))return null;m.xmax=o+n}}return m}(e,t)||i}return i}const x=e.clone().normalize();if(1===x.length&&e.xmax<l&&e.xmax-l/2>A(o)){const{xmin:t,xmax:n}=e;for(let i=0;i<=s;i++){const a=0===i?t:-l/2,c=i===s?n-l*i:l/2;x[i]=new r.A({xmin:a,xmax:c,ymin:e.ymin,ymax:e.ymax,spatialReference:o})}}const h=x.map(e=>O(e,t,n,a)).filter(i.Ru);return 0===h.length?null:function(e,t){const n=L(e[0].spatialReference);if(e.length<2||null==n)return e[0];if(t=t??A(e[0].spatialReference),1===(e=e.filter(e=>e.width>t)).length)return e[0];let{xmin:i,xmax:a,ymin:o,ymax:s}=e[0];for(let t=1;t<e.length;t++){const i=e[t];a=i.xmax+n*t,o=Math.min(o,i.ymin),s=Math.max(s,i.ymax)}return new r.A({xmin:i,xmax:a,ymin:o,ymax:s,spatialReference:e[0].spatialReference})}(h)}function z(e,t,n){if("extent"===e.type){const{xmin:t,ymin:n,xmax:i,ymax:a,spatialReference:o}=e;e=new c.A({rings:[[[t,a],[i,a],[i,n],[t,n],[t,a]]],spatialReference:o})}return e.spatialReference.equals(t)?e:(u(),M.execute(e,t,{geographicTransformation:n}))}function O(e,t,n,i=!0,a=!0){const o=e.spatialReference;if(o.equals(t)||!t)return e;u();const r=M.execute(e,t,{geographicTransformation:n});if(a&&t.isWebMercator&&r&&(r.ymax=Math.min(20037508.342787,r.ymax),r.ymin=Math.max(-20037508.342787,r.ymin),r.ymin>=r.ymax))return null;if(!i||!r)return r;const s=W(o,!0),c=W(t,!0);if(null==s||null==c)return r;const f=A(o,.001),x=A(o,d),h=A(t,.001);if(Math.abs(r.xmin-c[0])<h&&Math.abs(r.xmax-c[1])<h){const i=Math.abs(e.xmin-s[0]),a=Math.abs(s[1]-e.xmax);if(i<f&&a>x){r.xmin=c[0];const i=[];i.push(new l.A(e.xmax,e.ymin,o)),i.push(new l.A(e.xmax,(e.ymin+e.ymax)/2,o)),i.push(new l.A(e.xmax,e.ymax,o));const a=i.map(e=>T(e,t,n)).filter(e=>!isNaN(e?.x)).map(e=>e.x);r.xmax=Math.max.apply(null,a)}if(a<f&&i>x){r.xmax=c[1];const i=[];i.push(new l.A(e.xmin,e.ymin,o)),i.push(new l.A(e.xmin,(e.ymin+e.ymax)/2,o)),i.push(new l.A(e.xmin,e.ymax,o));const a=i.map(e=>T(e,t,n)).filter(e=>!isNaN(e?.x)).map(e=>e.x);r.xmin=Math.min.apply(null,a)}}else{const e=A(t,.001);Math.abs(r.xmin-c[0])<e&&(r.xmin=c[0]),Math.abs(r.xmax-c[1])<e&&(r.xmax=c[1])}return r}function L(e,t=!1){if(!e)return null;const n=t?20037508.342787:20037508.342788905;return e.isWebMercator?2*n:e.wkid&&e.isGeographic?360:2*p[e.wkid]||null}function W(e,t=!1){if(e.isGeographic)return[-180,180];const n=L(e,t);return n?[-n/2,n/2]:null}function I(e,t,n,i){let a=(e-t)/n;return a-Math.floor(a)!==0?a=Math.floor(a):i&&(a-=1),a}function j(e,t=!1){const n=L(e.spatialReference);if(null==n)return 0;const i=t?0:-n/2,a=A(e.spatialReference),o=!t&&Math.abs(e.xmax-n/2)<a?n/2:e.xmax,r=!t&&Math.abs(e.xmin+n/2)<a?-n/2:e.xmin;return I(o,i,n,!0)-I(r,i,n,!1)}function F(e){const t=e.storageInfo.origin.x,n=L(e.spatialReference,!0);if(null==n)return{originX:t,halfWorldWidth:null,pyramidsInfo:null};const i=n/2,{nativePixelSize:a,storageInfo:o,extent:r}=e,{maximumPyramidLevel:s,blockWidth:l,pyramidScalingFactor:c}=o;let f=a.x;const x=[],h=null!=e.transform&&"gcs-shift"===e.transform.type,u=t+(h?0:i),m=h?n-t:i-t;for(let e=0;e<=s;e++){const e=(r.xmax-t)/f/l,n=e-Math.floor(e)===0?e:Math.ceil(e),i=m/f/l,a=i-Math.floor(i)===0?i:Math.ceil(i),o=Math.floor(u/f/l),s=Math.round(u/f)%l,h=(l-Math.round(m/f)%l)%l;x.push({resolutionX:f,blockWidth:l,datasetColumnCount:n,worldColumnCountFromOrigin:a,leftMargin:s,rightPadding:h,originColumnOffset:o}),f*=c}return{originX:t,halfWorldWidth:i,pyramidsInfo:x,hasGCSSShiftTransform:h}}function Y(e){const t=e.isAdaptive&&null==e.spacing;let n=e.spacing||[32,32],i=q(e),a={cols:i.size[0]+1,rows:i.size[1]+1};const o=i.outofBoundPointCount>0&&i.outofBoundPointCount<i.offsets.length/2;let r=i.outofBoundPointCount===i.offsets.length/2||t&&o?[0,0]:m(i.offsets,a,n,4);const l=(r[0]+r[1])/2,c=e.projectedExtent.spatialReference,f=e.srcBufferExtent.spatialReference;if(t&&(o||l>4)&&(c.isGeographic||N(c),n=[4,4],i=q({...e,spacing:n}),a={cols:i.size[0]+1,rows:i.size[1]+1},r=m(i.offsets,a,n,4)),i.error=r,n[0]>1&&(i.coefficients=B(i.offsets,a,o)),e.includeGCSGrid&&!c.isGeographic&&!c.isWebMercator)if(f.isGeographic)i.gcsGrid={offsets:i.offsets,coefficients:i.coefficients,spacing:n};else{const t=N(c);if(null!=t&&!t.isEnvelope){const t=function(e){if(!e||e.isGeographic)return e;const t=String(e.wkid||e.wkt2||e.wkt);let n;return y.has(t)?n=y.get(t):(n=(e.wkid?s.P.coordsys(e.wkid):s.P.fromString(s.a.PE_TYPE_PROJCS,e.wkt2||e.wkt)).getGeogcs().getCode(),y.set(t,n)),new x.A({wkid:n})}(c),r=_(e.projectedExtent,t),{offsets:l}=q({...e,srcBufferExtent:r,spacing:n}),f=B(l,a,o);i.gcsGrid={offsets:l,coefficients:f,spacing:n}}}return i}function q(e){const{projectedExtent:t,srcBufferExtent:n,pixelSize:i,datumTransformation:a,rasterTransform:o}=e,r=t.spatialReference,s=n.spatialReference;u();const{xmin:c,ymin:f,xmax:x,ymax:h}=t,m=L(s),p=null!=m&&(e.hasWrapAround||"gcs-shift"===o?.type),g=e.spacing||[32,32],y=g[0]*i.x,w=g[1]*i.y,M=1===g[0],R=Math.ceil((x-c)/y-.1/g[0])+(M?0:1),P=Math.ceil((h-f)/w-.1/g[1])+(M?0:1),k=G({cols:R,rows:P,xmin:c,ymax:h,xres:y,yres:w,inSR:r,outSR:s,datumTransformation:a,preferPE:g[0]<=4,usePixelCenter:M}),b=[];let T,S=0;const E=M?-1:NaN,{xmin:C,xmax:v,ymax:_,width:z,height:O}=n,W=A(s,d),I=null!=m&&C>0&&v>m/2,j=N(r),F=null!=j&&j.poleLocation>0;for(let e=0;e<R;e++){const t=[];for(let n=0;n<P;n++){let i=k[e*P+n];if(p&&i[0]>v&&i[0]>m/2-W?i[0]-=m:p&&0===e&&i[0]<0&&I&&!o&&(i[0]+=m),!i||isNaN(i[0])||isNaN(i[1]))b.push(E),b.push(E),t.push(null),S++;else{if(o){const e=o.inverseTransform(new l.A({x:i[0],y:i[1],spatialReference:s}));i=[e.x,e.y]}t.push(i),e>0&&p&&T[n]&&i[0]<T[n][0]&&(i[0]+=m,F&&i[0]>v&&i[0]>m&&(i[0]-=m)),b.push((i[0]-C)/z),b.push((_-i[1])/O)}}T=t}return{offsets:b,error:null,coefficients:null,outofBoundPointCount:S,spacing:g,size:M?[R,P]:[R-1,P-1]}}function B(e,t,n){const{cols:i,rows:a}=t,o=new Float32Array((i-1)*(a-1)*2*6),r=new Float32Array([-0,-1,1,-1,1,-0,1,-0,-0]),s=new Float32Array([-1,1,0,0,-1,1,1,0,0]);for(let t=0;t<i-1;t++){for(let n=0;n<a-1;n++){let l=t*a*2+2*n;const c=e[l],f=e[l+1],x=e[l+2],h=e[l+3];l+=2*a;const u=e[l],m=e[l+1],p=e[l+2],g=e[l+3];let y=0,d=12*(n*(i-1)+t);for(let e=0;e<3;e++)o[d++]=r[y++]*c+r[y++]*x+r[y++]*p;y=0;for(let e=0;e<3;e++)o[d++]=r[y++]*f+r[y++]*h+r[y++]*g;y=0;for(let e=0;e<3;e++)o[d++]=s[y++]*c+s[y++]*u+s[y++]*p;y=0;for(let e=0;e<3;e++)o[d++]=s[y++]*f+s[y++]*m+s[y++]*g}if(n)for(let e=0;e<o.length;e++)isNaN(o[e])&&(o[e]=-1)}return o}function U(e){const{spatialReference:t}=e,n=(0,h.Vp)(t);if(!n)return e;const[i,a]=n.valid,o=a-i;let s=0;if(e.xmin<i){const t=i-e.xmin;s=Math.ceil(t/o)}else if(e.xmin>a){const t=e.xmin-a;s=-Math.ceil(t/o)}return new r.A({spatialReference:e.spatialReference,xmin:e.xmin+s*o,ymin:e.ymin,xmax:e.xmax+s*o,ymax:e.ymax})}function J(e,t,n){const{storageInfo:i,pixelSize:a}=t;let r=0,s=!1;const{pyramidResolutions:c}=i,f="mixed"===i.tileInfo.format?.toLowerCase()?Math.max(1,Math.min(3,i.tileInfo.dpi/96)):1,x=(e.x+e.y)/2/f;if(null!=c&&c.length){const e=c[c.length-1],i=(e.x+e.y)/2,f=(a.x+a.y)/2;if(x<=f)r=0;else if(x>=i)r=c.length,s=x/i>8;else{let e,t=f;for(let i=1;i<=c.length;i++){if(e=(c[i-1].x+c[i-1].y)/2,x<=e){x===e?r=i:"down"===n?(r=i-1,s=x/t>8):r="up"===n||x-t>e-x||x/t>2?i:i-1;break}t=e}}const h=0===r?a:c[r-1];return s&&Math.min(h.x,h.y)*(0,o.GA)(t.spatialReference)>19567&&(s=!1),{pyramidLevel:r,pyramidResolution:new l.A({x:h.x,y:h.y,spatialReference:t.spatialReference}),excessiveReading:s}}const h=Math.log(e.x/a.x)/Math.LN2,u=Math.log(e.y/a.y)/Math.LN2,m=t.storageInfo.maximumPyramidLevel||0;r="down"===n?Math.floor(Math.min(h,u)):"up"===n?Math.ceil(Math.max(h,u)):Math.round((h+u)/2),r<0?r=0:r>m&&(s=r>m+3,r=m);const p=2**r;return{pyramidLevel:r,pyramidResolution:new l.A({x:p*t.nativePixelSize.x,y:p*t.nativePixelSize.y,spatialReference:t.spatialReference}),excessiveReading:s}}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2754],{34930(e,t,n){n.d(t,{$Q:()=>l,Sd:()=>c,T5:()=>s,b7:()=>f});var i=n(86211),a=n(5443),o=n(86738),r=n(14140);function s(e,t){if(e.spatialReference.equals(t))return e;const n=(0,i.GA)(e.spatialReference),a=(0,i.GA)(t);if(n===a)return e;const o=n/a;return{x:e.x*o,y:e.y*o}}async function l(e,t,i){if("extent"===i.type)return function(e,t,n){const{width:i,height:a}=e,o=new Uint8Array(i*a),s=t.width/i,l=t.height/a;if(n.width/s<.5||n.height/l<.5)return new r.A({pixelType:e.pixelType,width:i,height:a,mask:o,pixels:[...e.pixels]});const{xmin:c,xmax:f,ymin:x,ymax:h}=t,{xmin:u,xmax:m,ymin:p,ymax:g}=n,y=Math.max(c,u),d=Math.min(f,m),w=Math.max(x,p),M=Math.min(h,g),R=.5*s,P=.5*l;if(d-y<R||M-w<P||d<c+R||y>f-R||w>h-P||M<x+P)return new r.A({pixelType:e.pixelType,width:i,height:a,mask:o,pixels:[...e.pixels]});const k=Math.max(0,(y-c)/s),b=Math.min(i,Math.max(0,(d-c)/s)),A=Math.max(0,(h-M)/l),T=Math.min(a,Math.max(0,(h-w)/l)),S=Math.round(k),G=Math.round(b)-1,E=Math.round(A),N=Math.round(T)-1;if(S===G&&k%1>.5&&b%1<.5||E===N&&A%1>.5&&T%1<.5)return new r.A({pixelType:e.pixelType,width:i,height:a,mask:o,pixels:[...e.pixels]});if(0===S&&0===E&&G===i&&N===a)return e;const C=e.mask;for(let e=E;e<=N;e++)for(let t=S;t<=G;t++){const n=e*i+t;o[n]=C?C[n]:255}return new r.A({pixelType:e.pixelType,width:i,height:a,mask:o,pixels:[...e.pixels]})}(e,t,i);const{width:a,height:o}=e,s=new Uint8Array(a*o);return(await Promise.all([n.e(6042),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(1132)]).then(n.bind(n,25275))).execute(t,i)?"polyline"===i.type?function(e,t,n){const{width:i,height:a}=e,o=new Uint8Array(i*a),s=t.width/i,l=t.height/a,{xmin:c,ymax:f}=t,{paths:x}=n,h=e.mask;for(let e=0;e<x.length;e++){const t=x[e];for(let e=0;e<t.length-1;e++){const[n,r]=t[e],[x,u]=t[e+1],m=Math.min(r,u),p=Math.max(r,u),g=Math.max(0,Math.floor((f-p)/l)),y=Math.min(a-1,Math.floor((f-m)/l));if(!(y<g))if(g===y){const e=Math.min(n,x),t=Math.max(n,x),a=Math.max(0,Math.floor((e-c)/s)),r=Math.min(i-1,Math.floor((t-c)/s));if(r<a)continue;const l=g*i;for(let e=l+a;e<=l+r;e++)o[e]=h?h[e]:255}else{const e=(n-c)/s,t=(x-n)/(u-r)/s,a=l*t;for(let n=g;n<=y;n++){const s=t*(f-n*l-r)+e,c=Math.max(0,Math.floor(a>0?s-a:s)),x=Math.min(i-1,Math.floor(a>0?s:s-a));if(x<c)continue;const u=n*i;for(let e=u+c;e<=u+x;e++)o[e]=h?h[e]:255}}}}return new r.A({pixelType:e.pixelType,width:i,height:a,mask:o,pixels:[...e.pixels]})}(e,t,i):(await Promise.all([n.e(6042),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(6671)]).then(n.bind(n,30912))).execute(i,t)?e:function(e,t,n){if(!e)return e;const{width:i,height:a}=e,o=function(e){const{geometry:t,size:n,srcExtent:i,srcMask:a}=e,[o,r]=n;let s;const l=i.width/o,c=i.height/r,{xmin:f,ymax:x}=i;if("extent"===t.type){const e=(t.xmin-f)/l,n=(t.xmax-f)/l,i=(x-t.ymax)/c,a=(x-t.ymin)/c;s=[[[e,i],[e,a],[n,a],[n,i],[e,i]]]}else s=t.rings.map(e=>e.map(([e,t])=>[(e-f)/l,(x-t)/c]));return function(e,t,n){const[i,a]=t,o=new OffscreenCanvas(i,a).getContext("2d");o.fillStyle="#f00",o.beginPath(),e.forEach(e=>{o.moveTo(e[0][0],e[0][1]);for(let t=0;t<e.length;t++)o.lineTo(e[t][0],e[t][1]);o.closePath()}),o.fill();const r=o.getImageData(0,0,i,a).data,s=i*a,l=new Uint8Array(s);let c=!1;for(let e=0;e<s;e++)n&&!n[e]||(r[4*e+3]>127?l[e]=255:c=!0);return c||n?l:void 0}(s,n,a)}({geometry:n,size:[i,a],srcExtent:t,srcMask:e.mask});return new r.A({pixelType:e.pixelType,width:i,height:a,mask:o,maskIsAlpha:!1,pixels:[...e.pixels]})}(e,t,i):new r.A({pixelType:e.pixelType,width:a,height:o,mask:s,maskIsAlpha:!1,pixels:[...e.pixels]})}function c(e,t){const{extent:n}=f(e,t,new o.A({x:e.pixelSize.x,y:e.pixelSize.y,spatialReference:e.spatialReference})),{extent:i}=e.extent;if(n.xmax=Math.min(n.xmax,i.xmax),n.ymax=Math.min(n.ymax,i.ymax),n.xmin<n.xmax&&n.ymin<n.ymax){const{x:t,y:i}=e.pixelSize,a=Math.round(n.width/t),o=Math.round(n.height/i);e.extent=n,e.width=a,e.height=o}}function f(e,t,n,i=!0){const{spatialReference:o}=e,{x:r,y:l}=s(n,o);let c,f,x;const h="extent"===t.type?t:t.extent;let{xmin:u,xmax:m,ymax:p,ymin:g}=h;const{xmin:y,ymax:d}=e.extent;return i?(u=y+(u>y?r*Math.round((u-y)/r):0),p=d-(p<d?l*Math.round((d-p)/l):0),m=y+(m>y?r*Math.round((m-y)/r):0),g=d-(g<d?l*Math.round((d-g)/l):0),c=new a.A({xmin:u,ymax:p,xmax:m,ymin:g,spatialReference:o}),f=Math.round(c.width/r),x=Math.round(c.height/l)):(f=Math.floor((m-u)/r+.8),x=Math.floor((p-g)/l+.8),u=y+(u>y?r*Math.floor((u-y)/r+.1):0),p=d-(p<d?l*Math.floor((d-p)/l+.1):0),m=u+f*r,g=p-x*l,c=new a.A({xmin:u,ymax:p,xmax:m,ymin:g,spatialReference:o})),{extent:c,width:f,height:x}}},37373(e,t,n){n.d(t,{DO:()=>F,FT:()=>L,Hh:()=>k,OM:()=>j,Ps:()=>U,Wo:()=>b,_I:()=>T,_l:()=>_,l0:()=>Y,t$:()=>J,uk:()=>z});var i=n(4576),a=n(49186),o=n(86211),r=n(5443),s=n(83290),l=n(86738),c=n(39829),f=n(91218),x=n(16930),h=n(21325);function u(){if(!P)throw new a.A("rasterprojectionhelper-project","projection operator is not loaded")}const m=(e,t,n,i=0)=>{if(1===n[0])return[0,0];let a=1,o=-1,r=1,s=-1;for(let t=0;t<e.length;t+=2)isNaN(e[t])||(a=a>e[t]?e[t]:a,o=o>e[t]?o:e[t],r=r>e[t+1]?e[t+1]:r,s=s>e[t+1]?s:e[t+1]);const{cols:l,rows:c}=t,f=(o-a)/l/n[0],x=(s-r)/c/n[1],h=2*i;let u=0,m=!1,p=[0,0];for(let t=0;t<l-3;t++){for(let n=0;n<c-3;n++){const i=t*c*2+2*n,a=(e[i]+e[i+4]+e[i+4*c]+e[i+4*c+4])/4,o=(e[i+1]+e[i+5]+e[i+4*c+1]+e[i+4*c+5])/4,r=Math.abs((a-e[i+2*c+2])/f),s=Math.abs((o-e[i+2*c+3])/x);if(r+s>u&&(u=r+s,p=[r,s]),h&&u>h){m=!0;break}}if(m)break}return p},p={3395:20037508.342789244,3410:17334193.943686873,3857:20037508.342788905,3975:17367530.445161372,4087:20037508.342789244,4088:20015108.787169147,6933:17367530.445161372,32662:20037508.342789244,53001:20015086.79602057,53002:10007543.39801029,53003:20015086.79602057,53004:20015086.79602057,53016:14152803.599503474,53017:17333573.624304302,53034:20015086.79602057,53079:20015114.352186374,53080:20015114.352186374,54001:20037508.342789244,54002:10018754.171394624,54003:20037508.342789244,54004:20037508.342789244,54016:14168658.027268292,54017:17367530.44516137,54034:20037508.342789244,54079:20037508.342789244,54080:20037508.342789244,54100:20037508.342789244,54101:20037508.342789244},g=new Map,y=new Map,d=500;let w,M,R,P=!1;async function k(){return w||(w=Promise.withResolvers(),M=await n.e(3276).then(n.bind(n,83276)),R=await n.e(2158).then(n.bind(n,12158)),M.isLoaded()||await M.load(),R.isLoaded()||await R.load(),P=!0,w.resolve()),w.promise}function b(e,t,n,i){const a=e.spatialReference;if(!a||!t||a.equals(t))return e;u();const s=n.center,l=new r.A({xmin:s.x-e.x/2,xmax:s.x+e.x/2,ymin:s.y-e.y/2,ymax:s.y+e.y/2,spatialReference:a}),c=M.execute(l,t,{geographicTransformation:i}),f=L(t);return null==c||null!=f&&c.width>=f?function(e,t,n){const i=(0,o.GA)(t)/(0,o.GA)(n);return{x:e.x*i,y:e.y*i}}(e,a,t):{x:c.width,y:c.height}}function A(e,t=.01){return(0,o.GA)(e)?t/(0,o.GA)(e):0}function T(e,t,n,i=!0){const a=e.spatialReference;if(a.equals(t))return e;u();const o=M.execute(e,t,{geographicTransformation:n});return i&&o?(S([e],[o],a,t),o):o}function S(e,t,n,i){const a=W(n,!0),o=W(i,!0),r=A(n,d),s=A(i,d);if(r&&null!=a&&null!=o)for(let n=0;n<e.length;n++){const i=t[n];if(!i)continue;const{x:l}=e[n],{x:c}=i;c>=o[1]-s&&Math.abs(l-a[0])<r?i.x-=o[1]-o[0]:c<=o[0]+s&&Math.abs(l-a[1])<r&&(i.x+=o[1]-o[0])}}function G(e){const{inSR:t,outSR:n,preferPE:i}=e;if(t.equals(n)){const{points:t}=v(e,null);return t}if(t.isWebMercator&&n.isWGS84||t.isWGS84&&n.isWebMercator)return function(e){const{cols:t,rows:n,xres:i,yres:a,usePixelCenter:o,inSR:r,outSR:s}=e;let{xmin:c,ymax:x}=e;o&&(c+=i/2,x-=a/2);const h=[],u=[],m=Math.max(t,n);for(let e=0;e<m;e++){const o=c+i*Math.min(t,e),m=x-a*Math.min(n,e),p=(0,f.projectWithoutEngine)(new l.A({x:o,y:m,spatialReference:r}),r,s);e<=t&&h.push(p.x),e<=n&&u.push(p.y)}const p=[];for(let e=0;e<t;e++)for(let t=0;t<n;t++)p.push([h[e],u[t]]);return p}(e);if(i){if(t.isGeographic)return E(e);if(null!=N(t))return E(e)}return function(e){const{points:t}=v(e,null),{inSR:n,outSR:i,datumTransformation:a}=e,o=t.map(e=>new l.A(e[0],e[1],n)),r=M.executeMany(o,i,{geographicTransformation:a});return a&&S(o,r,n,i),r.map(e=>e?[e.x,e.y]:[NaN,NaN])}(e)}function E(e){const{inSR:t,outSR:n,datumTransformation:i}=e,a=N(t),{points:o,mask:r}=v(e,a);if(!t.isGeographic){const e=t.wkid?s.P.coordsys(t.wkid):s.P.fromString(t.isGeographic?s.a.PE_TYPE_GEOGCS:s.a.PE_TYPE_PROJCS,t.wkt2||t.wkt);s.c.projToGeog(e,o.length,o)}if(null!=i&&i.steps.length){let e;const t=179.9955;if(n.isGeographic&&(e=o.map(([e])=>e>t?1:e<-t?-1:0)),i.steps.forEach(e=>{const t=e.wkid?s.P.geogtran(e.wkid):s.P.fromString(s.a.PE_TYPE_GEOGTRAN,e.wkt);s.d.geogToGeog(t,o.length,o,null,e.isInverse?s.a.PE_TRANSFORM_2_TO_1:s.a.PE_TRANSFORM_1_TO_2)}),e)for(let n=0;n<o.length;n++){const i=e[n],a=o[n][0],r=a>t?1:a<-t?-1:0;i&&r&&i!==r&&(o[n][0]=i>0?a+360:a-360)}}if(!n.isGeographic){const e=N(n,!0),t=null!=e&&e.isEnvelope?[e.bbox[1],e.bbox[3]]:[-90,90];!function(e,t){const[n,i]=t;for(let t=0;t<e.length;t++){const a=e[t][1];(a<n||a>i)&&(e[t]=[NaN,NaN])}}(o,t);const i=n.wkid?s.P.coordsys(n.wkid):s.P.fromString(n.isGeographic?s.a.PE_TYPE_GEOGCS:s.a.PE_TYPE_PROJCS,n.wkt2||n.wkt);s.c.geogToProj(i,o.length,o)}let l=o;if(r&&o.length!==r.length){l=[];for(let e=0,t=0;e<r.length;e++)r[e]?l.push(o[t++]):l.push([NaN,NaN])}return l}function N(e,t=!1){let n=e.wkid||e.wkt2||e.wkt;if(!n||e.isGeographic)return null;if(n=String(n),g.has(n)){const e=g.get(n);return t?e?.gcs:e?.pcs}const i=e.wkid?s.P.coordsys(e.wkid):s.P.fromString(e.isGeographic?s.a.PE_TYPE_GEOGCS:s.a.PE_TYPE_PROJCS,e.wkt2||e.wkt),a=C(i,A(e,1e-4)),o=C(i,0,!0);return g.set(n,{pcs:a,gcs:o}),t?o:a}function C(e,t=0,n=!1){const i=s.b.generate(e),a=n?e.horizonGcsGenerate():e.horizonPcsGenerate();if(!i||!a?.length)return null;let o=!1,r=a.find(e=>1===e.getInclusive()&&1===e.getKind());if(!r){if(r=a.find(e=>1===e.getInclusive()&&0===e.getKind()),!r)return null;o=!0}const l=n?0:(2===i.getNorthPoleLocation()?1:0)|(2===i.getSouthPoleLocation()?2:0),c=i.isPannableRectangle(),f=r.getCoord();if(o)return{isEnvelope:o,isPannable:c,vertices:f,coef:null,bbox:[f[0][0]-t,f[0][1]-t,f[1][0]+t,f[1][1]+t],poleLocation:l};let x=0;const h=[];let[u,m]=f[0],[p,g]=f[0];for(let e=0,t=f.length;e<t;e++){x++,x===t&&(x=0);const[n,i]=f[e],[a,o]=f[x];if(o===i)h.push([n,a,i,o,2]);else{const e=(a-n)/(o-i||1e-4),t=n-e*i;i<o?h.push([e,t,i,o,0]):h.push([e,t,o,i,1])}u=u<n?u:n,m=m<i?m:i,p=p>n?p:n,g=g>i?g:i}return{isEnvelope:!1,isPannable:c,vertices:f,coef:h,bbox:[u,m,p,g],poleLocation:l}}function v(e,t){const n=[],{cols:i,rows:a,xres:o,yres:r,usePixelCenter:s}=e;let{xmin:l,ymax:c}=e;if(s&&(l+=o/2,c-=r/2),null==t){for(let e=0;e<i;e++)for(let t=0;t<a;t++)n.push([l+o*e,c-r*t]);return{points:n}}const f=new Uint8Array(i*a);if(t.isEnvelope){const{isPannable:e,bbox:[s,x,h,u]}=t;for(let t=0,m=0;t<i;t++){const i=l+o*t,p=e||i>=s&&i<=h;for(let e=0;e<a;e++,m++){const t=c-r*e;p&&t>=x&&t<=u&&(n.push([i,t]),f[m]=1)}}return{points:n,mask:f}}const x=t.coef,h=[];for(let e=0;e<a;e++){const t=c-r*e,n=[],i=[];for(let e=0;e<x.length;e++){const[a,o,r,s,l]=x[e];if(t===r&&r===s)n.push(a),n.push(o),i.push(2),i.push(2);else if(t>=r&&t<=s){const e=a*t+o;n.push(e),i.push(l)}}let a=n;if(n.length>2){let e=2===i[0]?0:i[0],t=n[0];a=[];for(let o=1;o<i.length;o++)2===i[o]&&o!==i.length-1||(i[o]!==e&&(a.push(0===e?Math.min(t,n[o-1]):Math.max(t,n[o-1])),e=i[o],t=n[o]),o===i.length-1&&a.push(0===i[o]?Math.min(t,n[o]):Math.max(t,n[o])));a.sort((e,t)=>e-t)}else n[0]>n[1]&&(a=[n[1],n[0]]);h.push(a)}for(let e=0,t=0;e<i;e++){const i=l+o*e;for(let e=0;e<a;e++,t++){const a=c-r*e,o=h[e];if(2===o.length)i>=o[0]&&i<=o[1]&&(n.push([i,a]),f[t]=1);else if(o.length>2){let e=!1;for(let t=0;t<o.length;t+=2)if(i>=o[t]&&i<=o[t+1]){e=!0;break}e&&(n.push([i,a]),f[t]=1)}}}return{points:n,mask:f}}function _(e,t,n=null,a=!0){const o=e.spatialReference;if(o.equals(t)||!t)return e;const s=j(e),l=L(o,!0),f=L(t);if(0===s||null==l||null==f){const i=O(e,t,n,a);if(i&&null==l&&null!=f&&Math.abs(i.width-f)<A(t)&&M.isLoaded()){const n=N(o);if(null!=n&&0===n.poleLocation&&e.width<(n.bbox[2]-n.bbox[0])/2)return function(e,t){const n=L(t);if(null==n)return null;let{xmin:i,ymin:a,xmax:o,ymax:s}=e;const l=e.spatialReference,f=new c.A({spatialReference:l,rings:[[[i,a],[o,a],[o,s],[i,s],[i,a]]]}),x=M.execute(f,t);if(2!==x.rings.length||!x.rings[0].length||!x.rings[1].length)return null;const{rings:h}=x,u=A(l),m=new r.A({spatialReference:t});for(let e=0;e<2;e++){i=o=h[e][0][0],a=s=h[e][0][1];for(let t=0;t<h[e].length;t++)i=i>h[e][t][0]?h[e][t][0]:i,o=o<h[e][t][0]?h[e][t][0]:o,a=a>h[e][t][1]?h[e][t][1]:a,s=s<h[e][t][1]?h[e][t][1]:s;if(0===e)m.ymin=a,m.ymax=s,m.xmin=i,m.xmax=o;else if(m.ymin=Math.min(m.ymin,a),m.ymax=Math.max(m.ymax,s),Math.abs(o-n/2)<u)m.xmin=i,m.xmax=m.xmax+n;else{if(!(Math.abs(i+n/2)<u))return null;m.xmax=o+n}}return m}(e,t)||i}return i}const x=e.clone().normalize();if(1===x.length&&e.xmax<l&&e.xmax-l/2>A(o)){const{xmin:t,xmax:n}=e;for(let i=0;i<=s;i++){const a=0===i?t:-l/2,c=i===s?n-l*i:l/2;x[i]=new r.A({xmin:a,xmax:c,ymin:e.ymin,ymax:e.ymax,spatialReference:o})}}const h=x.map(e=>O(e,t,n,a)).filter(i.Ru);return 0===h.length?null:function(e,t){const n=L(e[0].spatialReference);if(e.length<2||null==n)return e[0];if(t=t??A(e[0].spatialReference),1===(e=e.filter(e=>e.width>t)).length)return e[0];let{xmin:i,xmax:a,ymin:o,ymax:s}=e[0];for(let t=1;t<e.length;t++){const i=e[t];a=i.xmax+n*t,o=Math.min(o,i.ymin),s=Math.max(s,i.ymax)}return new r.A({xmin:i,xmax:a,ymin:o,ymax:s,spatialReference:e[0].spatialReference})}(h)}function z(e,t,n){if("extent"===e.type){const{xmin:t,ymin:n,xmax:i,ymax:a,spatialReference:o}=e;e=new c.A({rings:[[[t,a],[i,a],[i,n],[t,n],[t,a]]],spatialReference:o})}return e.spatialReference.equals(t)?e:(u(),M.execute(e,t,{geographicTransformation:n}))}function O(e,t,n,i=!0,a=!0){const o=e.spatialReference;if(o.equals(t)||!t)return e;u();const r=M.execute(e,t,{geographicTransformation:n});if(a&&t.isWebMercator&&r&&(r.ymax=Math.min(20037508.342787,r.ymax),r.ymin=Math.max(-20037508.342787,r.ymin),r.ymin>=r.ymax))return null;if(!i||!r)return r;const s=W(o,!0),c=W(t,!0);if(null==s||null==c)return r;const f=A(o,.001),x=A(o,d),h=A(t,.001);if(Math.abs(r.xmin-c[0])<h&&Math.abs(r.xmax-c[1])<h){const i=Math.abs(e.xmin-s[0]),a=Math.abs(s[1]-e.xmax);if(i<f&&a>x){r.xmin=c[0];const i=[];i.push(new l.A(e.xmax,e.ymin,o)),i.push(new l.A(e.xmax,(e.ymin+e.ymax)/2,o)),i.push(new l.A(e.xmax,e.ymax,o));const a=i.map(e=>T(e,t,n)).filter(e=>!isNaN(e?.x)).map(e=>e.x);r.xmax=Math.max.apply(null,a)}if(a<f&&i>x){r.xmax=c[1];const i=[];i.push(new l.A(e.xmin,e.ymin,o)),i.push(new l.A(e.xmin,(e.ymin+e.ymax)/2,o)),i.push(new l.A(e.xmin,e.ymax,o));const a=i.map(e=>T(e,t,n)).filter(e=>!isNaN(e?.x)).map(e=>e.x);r.xmin=Math.min.apply(null,a)}}else{const e=A(t,.001);Math.abs(r.xmin-c[0])<e&&(r.xmin=c[0]),Math.abs(r.xmax-c[1])<e&&(r.xmax=c[1])}return r}function L(e,t=!1){if(!e)return null;const n=t?20037508.342787:20037508.342788905;return e.isWebMercator?2*n:e.wkid&&e.isGeographic?360:2*p[e.wkid]||null}function W(e,t=!1){if(e.isGeographic)return[-180,180];const n=L(e,t);return n?[-n/2,n/2]:null}function I(e,t,n,i){let a=(e-t)/n;return a-Math.floor(a)!==0?a=Math.floor(a):i&&(a-=1),a}function j(e,t=!1){const n=L(e.spatialReference);if(null==n)return 0;const i=t?0:-n/2,a=A(e.spatialReference),o=!t&&Math.abs(e.xmax-n/2)<a?n/2:e.xmax,r=!t&&Math.abs(e.xmin+n/2)<a?-n/2:e.xmin;return I(o,i,n,!0)-I(r,i,n,!1)}function F(e){const t=e.storageInfo.origin.x,n=L(e.spatialReference,!0);if(null==n)return{originX:t,halfWorldWidth:null,pyramidsInfo:null};const i=n/2,{nativePixelSize:a,storageInfo:o,extent:r}=e,{maximumPyramidLevel:s,blockWidth:l,pyramidScalingFactor:c}=o;let f=a.x;const x=[],h=null!=e.transform&&"gcs-shift"===e.transform.type,u=t+(h?0:i),m=h?n-t:i-t;for(let e=0;e<=s;e++){const e=(r.xmax-t)/f/l,n=e-Math.floor(e)===0?e:Math.ceil(e),i=m/f/l,a=i-Math.floor(i)===0?i:Math.ceil(i),o=Math.floor(u/f/l),s=Math.round(u/f)%l,h=(l-Math.round(m/f)%l)%l;x.push({resolutionX:f,blockWidth:l,datasetColumnCount:n,worldColumnCountFromOrigin:a,leftMargin:s,rightPadding:h,originColumnOffset:o}),f*=c}return{originX:t,halfWorldWidth:i,pyramidsInfo:x,hasGCSSShiftTransform:h}}function Y(e){const t=e.isAdaptive&&null==e.spacing;let n=e.spacing||[32,32],i=q(e),a={cols:i.size[0]+1,rows:i.size[1]+1};const o=i.outofBoundPointCount>0&&i.outofBoundPointCount<i.offsets.length/2;let r=i.outofBoundPointCount===i.offsets.length/2||t&&o?[0,0]:m(i.offsets,a,n,4);const l=(r[0]+r[1])/2,c=e.projectedExtent.spatialReference,f=e.srcBufferExtent.spatialReference;if(t&&(o||l>4)&&(c.isGeographic||N(c),n=[4,4],i=q({...e,spacing:n}),a={cols:i.size[0]+1,rows:i.size[1]+1},r=m(i.offsets,a,n,4)),i.error=r,n[0]>1&&(i.coefficients=B(i.offsets,a,o)),e.includeGCSGrid&&!c.isGeographic&&!c.isWebMercator)if(f.isGeographic)i.gcsGrid={offsets:i.offsets,coefficients:i.coefficients,spacing:n};else{const t=N(c);if(null!=t&&!t.isEnvelope){const t=function(e){if(!e||e.isGeographic)return e;const t=String(e.wkid||e.wkt2||e.wkt);let n;return y.has(t)?n=y.get(t):(n=(e.wkid?s.P.coordsys(e.wkid):s.P.fromString(s.a.PE_TYPE_PROJCS,e.wkt2||e.wkt)).getGeogcs().getCode(),y.set(t,n)),new x.A({wkid:n})}(c),r=_(e.projectedExtent,t),{offsets:l}=q({...e,srcBufferExtent:r,spacing:n}),f=B(l,a,o);i.gcsGrid={offsets:l,coefficients:f,spacing:n}}}return i}function q(e){const{projectedExtent:t,srcBufferExtent:n,pixelSize:i,datumTransformation:a,rasterTransform:o}=e,r=t.spatialReference,s=n.spatialReference;u();const{xmin:c,ymin:f,xmax:x,ymax:h}=t,m=L(s),p=null!=m&&(e.hasWrapAround||"gcs-shift"===o?.type),g=e.spacing||[32,32],y=g[0]*i.x,w=g[1]*i.y,M=1===g[0],R=Math.ceil((x-c)/y-.1/g[0])+(M?0:1),P=Math.ceil((h-f)/w-.1/g[1])+(M?0:1),k=G({cols:R,rows:P,xmin:c,ymax:h,xres:y,yres:w,inSR:r,outSR:s,datumTransformation:a,preferPE:g[0]<=4,usePixelCenter:M}),b=[];let T,S=0;const E=M?-1:NaN,{xmin:C,xmax:v,ymax:_,width:z,height:O}=n,W=A(s,d),I=null!=m&&C>0&&v>m/2,j=N(r),F=null!=j&&j.poleLocation>0;for(let e=0;e<R;e++){const t=[];for(let n=0;n<P;n++){let i=k[e*P+n];if(p&&i[0]>v&&i[0]>m/2-W?i[0]-=m:p&&0===e&&i[0]<0&&I&&!o&&(i[0]+=m),!i||isNaN(i[0])||isNaN(i[1]))b.push(E),b.push(E),t.push(null),S++;else{if(o){const e=o.inverseTransform(new l.A({x:i[0],y:i[1],spatialReference:s}));i=[e.x,e.y]}t.push(i),e>0&&p&&T[n]&&i[0]<T[n][0]&&(i[0]+=m,F&&i[0]>v&&i[0]>m&&(i[0]-=m)),b.push((i[0]-C)/z),b.push((_-i[1])/O)}}T=t}return{offsets:b,error:null,coefficients:null,outofBoundPointCount:S,spacing:g,size:M?[R,P]:[R-1,P-1]}}function B(e,t,n){const{cols:i,rows:a}=t,o=new Float32Array((i-1)*(a-1)*2*6),r=new Float32Array([-0,-1,1,-1,1,-0,1,-0,-0]),s=new Float32Array([-1,1,0,0,-1,1,1,0,0]);for(let t=0;t<i-1;t++){for(let n=0;n<a-1;n++){let l=t*a*2+2*n;const c=e[l],f=e[l+1],x=e[l+2],h=e[l+3];l+=2*a;const u=e[l],m=e[l+1],p=e[l+2],g=e[l+3];let y=0,d=12*(n*(i-1)+t);for(let e=0;e<3;e++)o[d++]=r[y++]*c+r[y++]*x+r[y++]*p;y=0;for(let e=0;e<3;e++)o[d++]=r[y++]*f+r[y++]*h+r[y++]*g;y=0;for(let e=0;e<3;e++)o[d++]=s[y++]*c+s[y++]*u+s[y++]*p;y=0;for(let e=0;e<3;e++)o[d++]=s[y++]*f+s[y++]*m+s[y++]*g}if(n)for(let e=0;e<o.length;e++)isNaN(o[e])&&(o[e]=-1)}return o}function U(e){const{spatialReference:t}=e,n=(0,h.Vp)(t);if(!n)return e;const[i,a]=n.valid,o=a-i;let s=0;if(e.xmin<i){const t=i-e.xmin;s=Math.ceil(t/o)}else if(e.xmin>a){const t=e.xmin-a;s=-Math.ceil(t/o)}return new r.A({spatialReference:e.spatialReference,xmin:e.xmin+s*o,ymin:e.ymin,xmax:e.xmax+s*o,ymax:e.ymax})}function J(e,t,n){const{storageInfo:i,pixelSize:a}=t;let r=0,s=!1;const{pyramidResolutions:c}=i,f="mixed"===i.tileInfo.format?.toLowerCase()?Math.max(1,Math.min(3,i.tileInfo.dpi/96)):1,x=(e.x+e.y)/2/f;if(null!=c&&c.length){const e=c[c.length-1],i=(e.x+e.y)/2,f=(a.x+a.y)/2;if(x<=f)r=0;else if(x>=i)r=c.length,s=x/i>8;else{let e,t=f;for(let i=1;i<=c.length;i++){if(e=(c[i-1].x+c[i-1].y)/2,x<=e){x===e?r=i:"down"===n?(r=i-1,s=x/t>8):r="up"===n||x-t>e-x||x/t>2?i:i-1;break}t=e}}const h=0===r?a:c[r-1];return s&&Math.min(h.x,h.y)*(0,o.GA)(t.spatialReference)>19567&&(s=!1),{pyramidLevel:r,pyramidResolution:new l.A({x:h.x,y:h.y,spatialReference:t.spatialReference}),excessiveReading:s}}const h=Math.log(e.x/a.x)/Math.LN2,u=Math.log(e.y/a.y)/Math.LN2,m=t.storageInfo.maximumPyramidLevel||0;r="down"===n?Math.floor(Math.min(h,u)):"up"===n?Math.ceil(Math.max(h,u)):Math.round((h+u)/2),r<0?r=0:r>m&&(s=r>m+3,r=m);const p=2**r;return{pyramidLevel:r,pyramidResolution:new l.A({x:p*t.nativePixelSize.x,y:p*t.nativePixelSize.y,spatialReference:t.spatialReference}),excessiveReading:s}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1670],{60999(t,e,n){n.d(e,{DZ:()=>d,Ke:()=>h,Tj:()=>c,UT:()=>m,aD:()=>y,jJ:()=>s});var r=n(5482),o=n(69622),a=n(97768),u=n(17676),i=n(10107),l=n(64108);function s(t,e,n){return(0,u.Lx)(t.map((t,r)=>e.apply(n,[t,r])))}async function c(t,e,n){return(await(0,u.Lx)(t.map((t,r)=>e.apply(n,[t,r])))).map(t=>t.value)}function f(t){return{ok:!0,value:t}}function p(t){return{ok:!1,error:t}}async function h(t){if(null==t)return{ok:!1,error:new Error("no promise provided")};try{return f(await t)}catch(t){return p(t)}}async function d(t){try{return f(await t)}catch(t){return(0,u.QP)(t),p(t)}}function m(t,e){return new g(t,e)}let g=class extends o.A{get value(){return null!=(t=this._result)&&!0===t.ok?t.value:null;var t}get error(){return null!=(t=this._result)&&!1===t.ok?t.error:null;var t}get finished(){return null!=this._result}constructor(t,e){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,a.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:n}=this._abortController;this.promise=t(n),this.promise.then(t=>{this._result=f(t),this._cleanup()},t=>{this._result=p(t),this._cleanup()}),this._abortHandle=(0,u.u7)(e,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,a.xt)(this._abortHandle),this._abortController=null}};(0,r.Cg)([(0,i.MZ)()],g.prototype,"value",null),(0,r.Cg)([(0,i.MZ)()],g.prototype,"error",null),(0,r.Cg)([(0,i.MZ)()],g.prototype,"finished",null),(0,r.Cg)([(0,i.MZ)()],g.prototype,"promise",void 0),(0,r.Cg)([(0,i.MZ)()],g.prototype,"_result",void 0),g=(0,r.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],g);class y{constructor(){this._sequence=Promise.resolve()}async acquire(){let t;this._sequence=new Promise(e=>{t=this._sequence.then(()=>e,()=>e)});const e=await t;return{[Symbol.dispose]:e}}async run(t){const e={stack:[],error:void 0,hasError:!1};try{return(0,r.mS)(e,await this.acquire(),!1),await t()}catch(t){e.error=t,e.hasError=!0}finally{(0,r.hk)(e)}}}},35522(t,e,n){n.d(e,{$A:()=>C,Bw:()=>a,C:()=>u,Cc:()=>S,DI:()=>b,Io:()=>M,Ln:()=>y,Om:()=>R,Qr:()=>f,Re:()=>s,S8:()=>A,T9:()=>m,WQ:()=>l,Z0:()=>j,_S:()=>h,aI:()=>E,ei:()=>$,fw:()=>k,g7:()=>I,gL:()=>P,hG:()=>v,hZ:()=>i,hs:()=>g,jk:()=>d,lw:()=>c,m3:()=>w,oW:()=>T,t2:()=>Z,tn:()=>p,ze:()=>x});var r=n(51850),o=n(34304);function a(t){const e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function u(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function i(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function l(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function s(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 f(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function p(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function h(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function d(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 m(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 g(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function y(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 M(t,e){const n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2];return Math.sqrt(n*n+r*r+o*o)}function v(t,e){const n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2];return n*n+r*r+o*o}function w(t){const e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function x(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function b(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function A(t,e){const n=e[0],r=e[1],o=e[2];let a=n*n+r*r+o*o;return a>0&&(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a),t}function R(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function C(t,e,n){const r=e[0],o=e[1],a=e[2],u=n[0],i=n[1],l=n[2];return t[0]=o*l-a*i,t[1]=a*u-r*l,t[2]=r*i-o*u,t}function S(t,e,n,r){const o=e[0],a=e[1],u=e[2];return t[0]=o+r*(n[0]-o),t[1]=a+r*(n[1]-a),t[2]=u+r*(n[2]-u),t}function j(t,e,n){const r=e[0],o=e[1],a=e[2];return t[0]=n[0]*r+n[4]*o+n[8]*a+n[12],t[1]=n[1]*r+n[5]*o+n[9]*a+n[13],t[2]=n[2]*r+n[6]*o+n[10]*a+n[14],t}function $(t,e,n){const r=e[0],o=e[1],a=e[2];return t[0]=r*n[0]+o*n[3]+a*n[6],t[1]=r*n[1]+o*n[4]+a*n[7],t[2]=r*n[2]+o*n[5]+a*n[8],t}function P(t,e,n){return k(t,e,n[0],n[1],n[2],n[3])}function k(t,e,n,r,o,a){const u=e[0],i=e[1],l=e[2],s=r*l-o*i,c=o*u-n*l,f=n*i-r*u,p=r*f-o*c,h=o*s-n*f,d=n*c-r*s,m=2*a;return t[0]=u+s*m+2*p,t[1]=i+c*m+2*h,t[2]=l+f*m+2*d,t}function I(t,e){A(O,t),A(q,e);const n=R(O,q);return n>1?0:n<-1?Math.PI:Math.acos(n)}const O=(0,r.vt)(),q=(0,r.vt)();function Z(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function E(t,e){if(t===e)return!0;const n=t[0],r=t[1],a=t[2],u=e[0],i=e[1],l=e[2],s=(0,o.FD)();return Math.abs(n-u)<=s*Math.max(1,Math.abs(n),Math.abs(u))&&Math.abs(r-i)<=s*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(a-l)<=s*Math.max(1,Math.abs(a),Math.abs(l))}function T(t,e,n){const r=n[0]-e[0],o=n[1]-e[1],a=n[2]-e[2];let u=r*r+o*o+a*a;return u>0?(u=1/Math.sqrt(u),t[0]=r*u,t[1]=o*u,t[2]=a*u,t):(t[0]=0,t[1]=0,t[2]=0,t)}const F=s,_=c,L=f,z=M,G=v,N=a,U=w;Object.freeze(Object.defineProperty({__proto__:null,abs:p,add:l,angle:I,bezier:function(t,e,n,r,o,a){const u=1-a,i=u*u,l=a*a,s=i*u,c=3*a*i,f=3*l*u,p=l*a;return t[0]=e[0]*s+n[0]*c+r[0]*f+o[0]*p,t[1]=e[1]*s+n[1]*c+r[1]*f+o[1]*p,t[2]=e[2]*s+n[2]*c+r[2]*f+o[2]*p,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:u,cross:C,crossAndNormalize:function(t,e,n){const r=e[0],o=e[1],a=e[2],u=n[0],i=n[1],l=n[2],s=o*l-a*i,c=a*u-r*l,f=r*i-o*u,p=Math.sqrt(s*s+c*c+f*f);return t[0]=s/p,t[1]=c/p,t[2]=f/p,t},direction:T,dist:z,distance:M,div:L,divide:f,dot:R,equals:E,exactEquals:Z,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,o,a){const u=a*a,i=u*(2*a-3)+1,l=u*(a-2)+a,s=u*(a-1),c=u*(3-2*a);return t[0]=e[0]*i+n[0]*l+r[0]*s+o[0]*c,t[1]=e[1]*i+n[1]*l+r[1]*s+o[1]*c,t[2]=e[2]*i+n[2]*l+r[2]*s+o[2]*c,t},inverse:b,len:N,length:a,lerp:S,max:m,min:d,mul:_,multiply:c,negate:x,normalize:A,random:function(t,e=1){const n=o.Ov,r=2*n()*Math.PI,a=2*n()-1,u=Math.sqrt(1-a*a)*e;return t[0]=Math.cos(r)*u,t[1]=Math.sin(r)*u,t[2]=a*e,t},rotateX:function(t,e,n,r){const o=[],a=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],a[0]=o[0],a[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),a[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},rotateY:function(t,e,n,r){const o=[],a=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],a[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),a[1]=o[1],a[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},rotateZ:function(t,e,n,r){const o=[],a=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],a[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),a[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),a[2]=o[2],t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[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:g,scaleAndAdd:y,set:i,sign:h,sqrDist:G,sqrLen:U,squaredDistance:v,squaredLength:w,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:F,subtract:s,transformMat3:$,transformMat4:j,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:P,transformQuatValues:k},Symbol.toStringTag,{value:"Module"})),n.d(e,["Il",0,N,"jb",0,F,"lo",0,G,"uE",0,U,"xg",0,z])},159(t,e,n){n.d(e,{A:()=>s});var r,o=n(5482),a=n(69540),u=n(25482),i=n(91429),l=n(99157);let s=r=class extends((0,a.OU)(u.o)){constructor(t){super(t),this.steps=[]}getInverse(){const t=new r;for(let e=this.steps.length-1;e>=0;e--){const n=this.steps[e];t.steps.push(n.getInverse())}return t}};(0,o.Cg)([(0,i.MZ)({type:[l.A],nonNullable:!0,json:{name:"geoTransforms"}})],s.prototype,"steps",void 0),s=r=(0,o.Cg)([(0,i.$K)("esri.geometry.operators.support.GeographicTransformation")],s)},99157(t,e,n){n.d(e,{A:()=>l});var r,o=n(5482),a=n(69540),u=n(25482),i=n(91429);let l=r=class extends((0,a.OU)(u.o)){constructor(t){super(t),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,i.MZ)({json:{name:"transformForward",read:t=>!t,write:(t,e,n)=>{e[n]=!t}}})],l.prototype,"isInverse",void 0),(0,o.Cg)([(0,i.MZ)({json:{write:!0}})],l.prototype,"wkt",void 0),(0,o.Cg)([(0,i.MZ)({json:{write:!0}})],l.prototype,"wkid",void 0),l=r=(0,o.Cg)([(0,i.$K)("esri.geometry.operators.support.GeographicTransformationStep")],l)},9762(t,e,n){n.r(e),n.d(e,{projectBuffer:()=>o});var r=n(49208);function o(t,e,n,o,a,u,i=Math.floor(t.length/3)){const l=(0,r.jd)(e,a);if(null==l)return!1;if(l===r.pO){if(t===o&&n===u)return!0;const e=n+3*i;for(let r=n,a=u;r<e;r++,a++)o[a]=t[r]??0;return!0}const s=n+3*i;for(let e=n,r=u;e<s;e+=3,r+=3)l(t,e,o,r);return!0}},49208(t,e,n){n.d(e,{Tp:()=>f,jd:()=>c,pO:()=>h});var r=n(34727),o=n(86211),a=n(73941),u=n(79258),i=n(34403),l=n(21325);const s={2:{5:h,7:null,9:null,10:h,1:x,6:null,8:null,0:null,3:m,11:g,2:h,4:S},5:{5:h,7:null,9:null,10:h,1:x,6:null,8:null,0:null,3:m,11:g,2:h,4:S},7:{5:null,7:h,9:null,10:h,1:null,6:w,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:h,10:h,1:null,6:null,8:v,0:null,3:null,11:null,2:null,4:null},3:{5:d,7:null,9:null,10:d,1:function(t,e,n,r){const o=t[e]/O,a=I-2*Math.atan(Math.exp(-t[e+1]/O)),u=O+(t[e+2]??0),i=Math.cos(a)*u;n[r]=Math.cos(o)*i,n[r+1]=Math.sin(o)*i,n[r+2]=Math.sin(a)*u},6:null,8:null,0:null,3:h,11:function(t,e,n,r){d(t,e,n,r),g(n,r,n,r)},2:d,4:function(t,e,n,r){d(t,e,n,r),S(n,r,n,r)}},4:{5:j,7:null,9:null,10:j,1:function(t,e,n,r){j(t,e,n,r),x(n,r,n,r)},6:null,8:null,0:null,3:function(t,e,n,r){j(t,e,n,r),m(n,r,n,r)},11:function(t,e,n,r){j(t,e,n,r),g(n,r,n,r)},2:j,4:h},1:{5:C,7:null,9:null,10:C,1:h,6:null,8:null,0:null,3:function(t,e,n,r){C(t,e,n,r),m(n,r,n,r)},11:function(t,e,n,r){C(t,e,n,r),g(n,r,n,r)},2:C,4:function(t,e,n,r){C(t,e,n,r),S(n,r,n,r)}},6:{5:null,7:R,9:null,10:R,1:null,6:h,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:A,10:A,1:null,6:null,8:h,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:h,3:null,11:null,2:null,4:null},10:{5:h,7:h,9:h,10:h,1:x,6:w,8:v,0:null,3:m,11:g,2:h,4:S},11:{5:y,7:null,9:null,10:y,1:function(t,e,n,r){y(t,e,n,r),x(n,r,n,r)},6:null,8:null,0:null,3:function(t,e,n,r){y(t,e,n,r),m(n,r,n,r)},11:h,2:y,4:function(t,e,n,r){y(t,e,n,r),S(n,r,n,r)}}};function c(t,e){return f(t,e)?.projector}function f(t,e){if(null==t||null==e)return null;if($.source.spatialReference===t&&$.dest.spatialReference===e)return $;const n=p(t,$.source),r=p(e,$.dest);return 0===n&&0===r?(0,l.aI)(t,e)?$.projector=h:$.projector=null:$.projector=s[n][r],$}function p(t,e){return t?e.spatialReference===t?e.spatialReferenceId:(e.spatialReference=t,"metersPerUnit"in e&&(e.metersPerUnit=(0,o.GA)(t,1)),(0,a.jA)(t)?e.spatialReferenceId=1:(0,l.oT)(t)?e.spatialReferenceId=2:(0,l.K8)(t)?e.spatialReferenceId=3:(0,l.r1)(t)?e.spatialReferenceId=11:t.wkt===a.Ro.wkt?e.spatialReferenceId=4:4490===t.wkid?e.spatialReferenceId=5:t.wkt===a.FY.wkt?e.spatialReferenceId=6:t.wkt===a.LJ.wkt?e.spatialReferenceId=8:(0,a.q8)(t)?e.spatialReferenceId=7:(0,a.KQ)(t)?e.spatialReferenceId=9:e.spatialReferenceId=0):0}function h(t,e,n,r){t!==n&&(n[r++]=t[e++],n[r++]=t[e++],n[r]=t[e]??0)}function d(t,e,n,r){n[r]=k*(t[e]/O),n[r+1]=k*(I-2*Math.atan(Math.exp(-t[e+1]/O))),n[r+2]=t[e+2]??0}function m(t,e,n,o){!function(t,e,n,o,a){const u=.4999999*Math.PI,i=(0,r.qE)(P*t[e+1],-u,u),l=Math.sin(i);n[o++]=P*t[e]*a.radius,n[o++]=a.halfSemiMajorAxis*Math.log((1+l)/(1-l)),n[o]=t[e+2]??0}(t,e,n,o,u.$O)}function g(t,e,n,r){n[r]=t[e]*q,n[r+1]=t[e+1]*q,n[r+2]=t[e+2]??0}function y(t,e,n,r){n[r]=t[e]*Z,n[r+1]=t[e+1]*Z,n[r+2]=t[e+2]??0}function M(t,e,n,r,o){const a=o+(t[e+2]??0),u=P*t[e],i=P*t[e+1],l=Math.cos(i)*a;n[r]=Math.cos(u)*l,n[r+1]=Math.sin(u)*l,n[r+2]=Math.sin(i)*a}function v(t,e,n,r){M(t,e,n,r,u.Sw.radius)}function w(t,e,n,r){M(t,e,n,r,u.sH.radius)}function x(t,e,n,r){M(t,e,n,r,u.$O.radius)}function b(t,e,n,o,a){const u=t[e],i=t[e+1],l=t[e+2]??0,s=Math.sqrt(u*u+i*i+l*l),c=(0,r.YN)(l/(0===s?1:s)),f=Math.atan2(i,u);n[o++]=k*f,n[o++]=k*c,n[o]=s-a}function A(t,e,n,r){b(t,e,n,r,u.Sw.radius)}function R(t,e,n,r){b(t,e,n,r,u.sH.radius)}function C(t,e,n,r){b(t,e,n,r,u.$O.radius)}function S(t,e,n,r){!function(t,e,n,r,o){const a=P*t[e],u=P*t[e+1],i=t[e+2]??0,l=Math.sin(u),s=Math.cos(u),c=o.radius/Math.sqrt(1-o.eccentricitySquared*l*l);n[r++]=(c+i)*s*Math.cos(a),n[r++]=(c+i)*s*Math.sin(a),n[r++]=(c*(1-o.eccentricitySquared)+i)*l}(t,e,n,r,u.$O)}function j(t,e,n,r){const o=i.TP,a=t[e],l=t[e+1],s=t[e+2]??0;let c,f,p,h,d,m,g,y,M,v,w,x,b,A,R,C,S,j,$,P,I;c=Math.abs(s),f=a*a+l*l,p=Math.sqrt(f),h=f+s*s,d=Math.sqrt(h),P=Math.atan2(l,a),m=s*s/h,g=f/h,A=o.a2/d,R=o.a3-o.a4/d,g>.3?(y=c/d*(1+g*(o.a1+A+m*R)/d),$=Math.asin(y),v=y*y,M=Math.sqrt(1-v)):(M=p/d*(1-m*(o.a5-A-g*R)/d),$=Math.acos(M),v=1-M*M,y=Math.sqrt(v)),w=1-u.$O.eccentricitySquared*v,x=u.$O.radius/Math.sqrt(w),b=o.a6*x,A=p-x*M,R=c-b*y,S=M*A+y*R,C=M*R-y*A,j=C/(b/w+S),$+=j,I=S+C*j/2,s<0&&($=-$),n[r++]=k*P,n[r++]=k*$,n[r]=I}const $={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:h},P=(0,r.kU)(1),k=(0,r.KJ)(1),I=.5*Math.PI,O=u.$O.radius,q=O*Math.PI/180,Z=180/(O*Math.PI);n.d(e,["w5",0,s])},91218(t,e,n){n.r(e),n.d(e,{canProjectWithoutEngine:()=>B,initializeProjection:()=>H,isEqualBaseGCS:()=>W,isLoaded:()=>O,isLoadedOrLoad:()=>q,isLoadedOrLoadFor:()=>Z,load:()=>T,project:()=>F,projectAsync:()=>K,projectExtent:()=>ot,projectMany:()=>_,projectMultipoint:()=>V,projectOrLoad:()=>z,projectOrLoadMany:()=>G,projectPoint:()=>Q,projectPolygon:()=>nt,projectPolyline:()=>tt,projectWithoutEngine:()=>J,requiresLoad:()=>E,test:()=>D,tryProject:()=>L,unload:()=>U});var r=n(49186),o=n(17676),a=n(62788),u=n(95488),i=n(51850),l=n(21276),s=n(73941),c=n(5443),f=n(91075),p=n(48526),h=n(86738),d=n(39829),m=n(82799),g=n(16930),y=n(98764),M=n(159),v=n(9762),w=n(49208);function x(t,e,n,r,o,a){return b[0]=t,b[1]=e,b[2]=n,(0,v.projectBuffer)(b,r,0,o,a,0)}const b=(0,i.vt)();var A=n(60408),R=n(21325),C=n(52006);let S=null,j=null,$=null,P=null,k={};const I=new u.I;function O(){return!!(j?.isLoaded()&&$?.isLoaded()&&P?.isLoaded())}function q(){return!!O()||((0,a.gc)(I),T(),!1)}function Z(t,e){return!t||!e||B(t,e)||q()}function E(t,e){return!B(t,e)&&!O()}async function T(t){null==S&&(S=Promise.all([n.e(3276).then(n.bind(n,83276)).then(t=>(j=t,j.load())),n.e(8377).then(n.bind(n,8377)).then(t=>($=t,$.load())),n.e(2158).then(n.bind(n,12158)).then(t=>(P=t,P.load()))])),await S,(0,o.Te)(t),I.notify()}function F(t,e,n){return Array.isArray(t)?0===t.length?[]:((0,l.H)(t),_(t,t[0].spatialReference,e,n)):((0,l.f)(t),_([t],t.spatialReference,e,n)[0])}function _(t,e,n,r){if(null==e||null==n)return t;if(B(e,n,r))return t.map(t=>J(t,e,n));if(null==r?.geographicTransformation&&(0,s.jA)(e))return _(t.map(t=>J(t,e,g.A.WGS84)),g.A.WGS84,n,{zConversionDisabled:r?.zConversionDisabled});if(null==r?.geographicTransformation&&(0,s.jA)(n))return _(t,e,g.A.WGS84).map(t=>J(t,g.A.WGS84,n));if(!O())throw new N;if(!r?.geographicTransformation)if(r?.extendedParams)r={...r,geographicTransformation:P.getTransformation(e,n,r.areaOfInterestExtent)||new M.A};else if(!r?.areaOfInterestExtent){const t=function(t,e){return[t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??"",e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??""].join()}(e,n);let o=k[t];o||(o=P.getTransformation(e,n)||new M.A,k[t]=o),r={geographicTransformation:o,zConversionDisabled:r?.zConversionDisabled}}return t[0].spatialReference||(t[0].spatialReference=e),t[0]instanceof f.A?j.executeMany(t,n,r):$.executeMany(t,n,r)}function L(t,e,n){try{return F(t,e,n)}catch(t){return null}}function z(t,e){const n=G([t],e);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function G(t,e,n){if(!O())for(const n of t)if(null!=n&&!(0,R.aI)(n.spatialReference,e)&&(0,R.fn)(n.spatialReference)&&(0,R.fn)(e)&&!B(n.spatialReference,e))return(0,a.gc)(I),{pending:T(),geometries:null};return{pending:null,geometries:t.map(t=>null==t?null:(0,R.aI)(t.spatialReference,e)?t:(0,R.fn)(t.spatialReference)&&(0,R.fn)(e)?F(t,e,n):null)}}class N extends r.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function U(){S=null,j=null,$=null,P=null,k={}}const D={get loadPromise(){return S}};async function K(t,e,n){if((0,o.Te)(n),!t)return t;const r=G(Array.isArray(t)?t:[t],e,n);if(r.pending)return await r.pending,(0,o.Te)(n),K(t,e,n);const a=r.geometries??[];return Array.isArray(t)?a:a[0]}function B(t,e,n){return!(n?.areaOfInterestExtent||n?.extendedParams||n?.geographicTransformation)&&(!!(0,R.aI)(t,e)||(0,R.fn)(t)&&(0,R.fn)(e)&&!!(0,w.jd)(t,e))}function W(t,e){if((0,R.aI)(t,e))return!0;if(!(0,R.fn)(t)||!(0,R.fn)(e))return!1;const n=(0,R.oT)(t)||(0,R.K8)(t)||(0,R.x1)(t),r=(0,R.oT)(e)||(0,R.K8)(e)||(0,R.x1)(e);return n&&r}async function H(t,e,n,r){if(O())return(0,o.NO)(r);if(Array.isArray(t)){for(const{source:e,dest:n,options:o}of t)if(e&&n&&!B(e,n,o))return T(r)}else if(t&&e&&!B(t,e,n))return T(r);return(0,o.NO)(r)}function J(t,e,n){return t?(0,A.fT)(t)?Y(t,e,new h.A,n,0):(0,A.ZC)(t)?at(t,e,new c.A,n,0):(0,A.Bi)(t)?rt(t,e,new d.A,n,0):(0,A.Rg)(t)?et(t,e,new m.A,n,0):(0,A.U9)(t)?X(t,e,new p.A,n,0):null:null}function Q(t,e,n=e.spatialReference,r=0){return null!=n&&null!=t.spatialReference&&null!=Y(t,t.spatialReference,e,n,r)}function Y(t,e,n,r,o){st[0]=t.x,st[1]=t.y;const a=t.z;return st[2]=void 0!==a?a:o,(0,v.projectBuffer)(st,e,0,st,r,0)?(n.x=st[0],n.y=st[1],n.spatialReference=r,void 0!==a||(0,s.xP)(r)?(n.z=st[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===t.m?(n.m=void 0,n.hasM=!1):(n.m=t.m,n.hasM=!0),n):null}function V(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=X(t,t.spatialReference,e,n,r)}function X(t,e,n,r,o){const{points:a,hasZ:u,hasM:i}=t,l=[],s=a.length,c=[];for(const t of a)c.push(t[0],t[1],u?t[2]:o);if(!(0,v.projectBuffer)(c,e,0,c,r,0,s))return null;const f=lt(u,r);for(let t=0;t<s;++t){const e=3*t,n=c[e],r=c[e+1];f&&i?l.push([n,r,c[e+2],a[t][3]]):f?l.push([n,r,c[e+2]]):i?l.push([n,r,a[t][2]]):l.push([n,r])}return n.points=l,n.spatialReference=r,n.hasZ=u,n.hasM=i,n}function tt(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=et(t,t.spatialReference,e,n,r)}function et(t,e,n,r,o){const{curvePaths:a,paths:u,hasZ:i,hasM:l}=t;if(!(a?it(a,i??!1,l??!1,e,n.curvePaths=[],r,o):ut(u,i??!1,l??!1,e,n.paths,r,o)))return null;const s=lt(i,r);return n.spatialReference=r,n.hasZ=s,n.hasM=l,n}function nt(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=rt(t,t.spatialReference,e,n,r)}function rt(t,e,n,r,o){const{curveRings:a,rings:u,hasZ:i,hasM:l}=t;return(a?it(a,i??!1,l??!1,e,n.curveRings=[],r,o):ut(u,i??!1,l??!1,e,n.rings,r,o))?(n.spatialReference=r,n.hasZ=lt(i,r),n.hasM=l,n):null}function ot(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=at(t,t.spatialReference,e,n,r)}function at(t,e,n,r,o){const{xmin:a,ymin:u,xmax:i,ymax:l,hasZ:s,hasM:c}=t;if(!x(a,u,s?t.zmin:o,e,st,r))return null;const f=lt(s,r);return n.xmin=st[0],n.ymin=st[1],f&&(n.zmin=st[2]),x(i,l,s?t.zmax:o,e,st,r)?(n.xmax=st[0],n.ymax=st[1],f&&(n.zmax=st[2]),c&&(n.mmin=t.mmin,n.mmax=t.mmax),n.spatialReference=r,n):null}function ut(t,e,n,r,o,a,u=0){const i=new Array;for(const n of t)for(const t of n)i.push(t[0],t[1],e?t[2]:u);if(!(0,v.projectBuffer)(i,r,0,i,a,0))return!1;let l=0;o.length=0;const s=e?3:2,c=lt(e,a);for(const e of t){const t=new Array;for(const r of e){const e=i.slice(l,l+=3);c||e.pop(),n&&e.push(r[s]),t.push(e)}o.push(t)}return!0}function it(t,e,n,r,o,a,u=0){const i=new Array;for(const n of t)for(const t of n){if((0,C.FG)(t))return!1;if((0,C.aO)(t)){const[n,r]=t.c;i.push(n[0],n[1],e?n[2]:u,r[0],r[1],u);continue}if((0,C.n1)(t)){const[n,r,o]=t.b;i.push(n[0],n[1],e?n[2]:u,r[0],r[1],u,o[0],o[1],u);continue}const n=t;i.push(n[0],n[1],e?n[2]:u)}if(!(0,v.projectBuffer)(i,r,0,i,a,0))return!1;let l=0;o.length=0;const s=e?3:2,c=lt(e,a);for(const e of t){const t=new Array;for(const r of e){const e=i.slice(l,l+=3);if(c||e.pop(),n&&e.push((0,C.yP)(r)[s]),(0,C.FG)(r))return!1;if((0,C.aO)(r)){const n=i[l++],r=i[l++];++l,t.push({c:[e,[n,r]]});continue}if((0,C.n1)(r)){const n=i[l++],r=i[l++];++l;const o=i[l++],a=i[l++];++l,t.push({b:[e,[n,r],[o,a]]});continue}t.push(e)}o.push(t)}return!0}function lt(t,e){return t||(0,s.xP)(e)||(0,R.aI)(e,y.Y0)}const st=(0,i.vt)()},98764(t,e,n){n.d(e,{lO:()=>c});var r=n(73941),o=n(16930),a=n(21325);const u=new o.A(r.fv),i=new o.A(r.FY),l=new o.A(r.LJ),s=new o.A(r.Ro);function c(t){const e=f.get(t);if(e)return e;let n=u;if(t)if(t===i)n=i;else if(t===l)n=l;else{const e=t.wkid,r=t.latestWkid;if(null!=e||null!=r)(0,a.tl)(e)||(0,a.tl)(r)?n=i:((0,a.ZL)(e)||(0,a.ZL)(r))&&(n=l);else{const e=t.wkt2??t.wkt;if(e){const t=e.toUpperCase();t===p?n=i:t===h&&(n=l)}}}return f.set(t,n),n}const f=new Map,p=i.wkt.toUpperCase(),h=l.wkt.toUpperCase();n.d(e,["GD",0,u,"Y0",0,s])},34403(t,e,n){var r=n(79258);Math.PI;const o=r.$O.radius,a=r.$O.eccentricitySquared,u={a1:o*a,a2:o*a*o*a,a3:o*a*a/2,a4:o*a*o*a*2.5,a5:o*a+o*a*a/2,a6:1-a};r.$O.radius,r.$O.flattening,r.Sw.radius,r.Sw.flattening,r.sH.radius,r.sH.flattening,r.sH.radius,n.d(e,["TP",0,u])},60408(t,e,n){function r(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function o(t){return void 0!==t.points}function a(t){return void 0!==t.x&&void 0!==t.y}function u(t){return void 0!==t.paths||void 0!==t.curvePaths}function i(t){return void 0!==t.rings||void 0!==t.curveRings}function l(t){return"object"==typeof t&&"vertexAttributes"in t}function s(t){return t?a(t)?"esriGeometryPoint":u(t)?"esriGeometryPolyline":i(t)?"esriGeometryPolygon":r(t)?"esriGeometryEnvelope":o(t)?"esriGeometryMultipoint":null:null}function c(t){return null!=t&&("hasZ"in t&&t.hasZ||"z"in t&&null!=t.z)}function f(t){return null!=t&&("hasM"in t&&t.hasM||"m"in t&&null!=t.m)}n.d(e,{$B:()=>s,Bi:()=>i,Pv:()=>c,Rg:()=>u,U9:()=>o,W0:()=>f,ZC:()=>r,fT:()=>a,uW:()=>l})},76369(t,e,n){n.d(e,{LF:()=>b,M9:()=>A});var r=n(49186),o=n(93637),a=n(40876),u=n(59247),i=n(27865);class l extends SyntaxError{constructor(t,e,n,r){super(t),this.expected=e,this.found=n,this.location=r,this.name="SyntaxError"}format(t){let e="Error: "+this.message;if(this.location){let n=null;const r=t.find(t=>t.source===this.location.source);r&&(n=r.text.split(/\r\n|\n|\r/g));const o=this.location.start,a=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(o):o,u=this.location.source+":"+a.line+":"+a.column;if(n){const t=this.location.end,r="".padEnd(a.line.toString().length," "),i=n[o.line-1],l=(o.line===t.line?t.column:i.length+1)-o.column||1;e+="\n --\x3e "+u+"\n"+r+" |\n"+a.line+" | "+i+"\n"+r+" | "+"".padEnd(o.column-1," ")+"".padEnd(l,"^")}else e+="\n at "+u}return e}static buildMessage(t,e){function n(t){return t.codePointAt(0).toString(16).toUpperCase()}const r=Object.prototype.hasOwnProperty.call(RegExp.prototype,"unicode")?new RegExp("[\\p{C}\\p{Mn}\\p{Mc}]","gu"):null;function o(t){return r?t.replace(r,t=>"\\u{"+n(t)+"}"):t}function a(t){return o(t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,t=>"\\x0"+n(t)).replace(/[\x10-\x1F\x7F-\x9F]/g,t=>"\\x"+n(t)))}function u(t){return o(t.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,t=>"\\x0"+n(t)).replace(/[\x10-\x1F\x7F-\x9F]/g,t=>"\\x"+n(t)))}const i={literal:t=>'"'+a(t.text)+'"',class(t){const e=t.parts.map(t=>Array.isArray(t)?u(t[0])+"-"+u(t[1]):u(t));return"["+(t.inverted?"^":"")+e.join("")+"]"+(t.unicode?"u":"")},any:()=>"any character",end:()=>"end of input",other:t=>t.description};function l(t){return i[t.type](t)}return"Expected "+function(t){const e=t.map(l);if(e.sort(),e.length>0){let t=1;for(let n=1;n<e.length;n++)e[n-1]!==e[n]&&(e[t]=e[n],t++);e.length=t}switch(e.length){case 1:return e[0];case 2:return e[0]+" or "+e[1];default:return e.slice(0,-1).join(", ")+", or "+e[e.length-1]}}(t)+" but "+function(t){return t?'"'+a(t)+'"':"end of input"}(e)+" found."}}function s(t){if(!t||0===t.length)return null;if("string"==typeof t){const e=c(t);return e&&0!==e.length?e:null}const e=t.map(t=>{if(!Number.isFinite(t.scale)||t.scale<=0)throw new r.A("effect:invalid-scale","scale must be finite and greater than 0",{stop:t});return{scale:t.scale,effects:c(t.value)}});e.sort((t,e)=>e.effects.length-t.effects.length);for(let t=0;t<e.length-1;t++){if(!(0,i.mj)(e[t].effects,e[t+1].effects))throw new r.A("effect:interpolation-impossible","Cannot interpolate by scale between 2 lists of mixed effects",{a:e[t].effects,b:e[t+1].effects});(0,i.O9)(e[t].effects,e[t+1].effects)}return e.sort((t,e)=>e.scale-t.scale),e}function c(t){let e;if(!t)return[];try{e=function(t,e){const n={},r=(e=void 0!==e?e:{}).grammarSource,o={start:xt};let a=xt;const u="none",i=")",s=",",c="(",f="%",p="px",h="cm",d="mm",m="in",g="pt",y="pc",M="deg",v="rad",w="grad",x="turn",b="#",A=".",R="e",C=/^[ \t\n\r]/,S=/^[a-z\-]/,j=/^[0-9a-fA-F]/,$=/^[+\-]/,P=/^[0-9]/,k=yt("none"),I=mt("none",!1),O=mt(")",!1),q=mt(",",!1),Z=gt([" ","\t","\n","\r"],!1,!1,!1),E=yt("function"),T=mt("(",!1),F=yt("identifier"),_=gt([["a","z"],"-"],!1,!1,!1),L=yt("percentage"),z=mt("%",!1),G=yt("length"),N=mt("px",!1),U=mt("cm",!1),D=mt("mm",!1),K=mt("in",!1),B=mt("pt",!1),W=mt("pc",!1),H=yt("angle"),J=mt("deg",!1),Q=mt("rad",!1),Y=mt("grad",!1),V=mt("turn",!1),X=yt("number"),tt=yt("color"),et=mt("#",!1),nt=gt([["0","9"],["a","f"],["A","F"]],!1,!1,!1),rt=gt(["+","-"],!1,!1,!1),ot=gt([["0","9"]],!1,!1,!1),at=mt(".",!1),ut=mt("e",!1);let it=0|e.peg$currPos,lt=it;const st=[{line:1,column:1}];let ct,ft=it,pt=e.peg$maxFailExpected||[],ht=0|e.peg$silentFails;if(e.startRule){if(!(e.startRule in o))throw new Error("Can't start parsing from rule \""+e.startRule+'".');a=o[e.startRule]}function dt(){return t.substring(lt,it)}function mt(t,e){return{type:"literal",text:t,ignoreCase:e}}function gt(t,e,n,r){return{type:"class",parts:t,inverted:e,ignoreCase:n,unicode:r}}function yt(t){return{type:"other",description:t}}function Mt(e){let n,r=st[e];if(r)return r;if(e>=st.length)n=st.length-1;else for(n=e;!st[--n];);for(r=st[n],r={line:r.line,column:r.column};n<e;)10===t.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return st[e]=r,r}function vt(t,e,n){const o=Mt(t),a=Mt(e);return{source:r,start:{offset:t,line:o.line,column:o.column},end:{offset:e,line:a.line,column:a.column}}}function wt(t){it<ft||(it>ft&&(ft=it,pt=[]),pt.push(t))}function xt(){let t;return t=bt(),t===n&&(t=function(){let t,e;if(t=[],e=At(),e!==n)for(;e!==n;)t.push(e),e=At();else t=n;return t}()),t}function bt(){let e,r;return ht++,e=it,Ct(),t.substr(it,4)===u?(r=u,it+=4):(r=n,0===ht&&wt(I)),r!==n?(Ct(),lt=e,e=[]):(it=e,e=n),ht--,e===n&&0===ht&&wt(k),e}function At(){let e,r,o,a;return e=it,Ct(),r=function(){let e,r,o;return ht++,e=it,r=St(),r!==n?(40===t.charCodeAt(it)?(o=c,it++):(o=n,0===ht&&wt(T)),o!==n?(lt=e,e=r):(it=e,e=n)):(it=e,e=n),ht--,e===n&&(r=n,0===ht&&wt(E)),e}(),r!==n?(Ct(),o=function(){let e,r,o,a,u,i,l,c;if(e=it,r=Rt(),r!==n){for(o=[],a=it,u=Ct(),44===t.charCodeAt(it)?(i=s,it++):(i=n,0===ht&&wt(q)),i===n&&(i=null),l=Ct(),c=Rt(),c!==n?(u=[u,i,l,c],a=u):(it=a,a=n);a!==n;)o.push(a),a=it,u=Ct(),44===t.charCodeAt(it)?(i=s,it++):(i=n,0===ht&&wt(q)),i===n&&(i=null),l=Ct(),c=Rt(),c!==n?(u=[u,i,l,c],a=u):(it=a,a=n);lt=e,e=function(t,e){return e.length>0?function(t,e){return[t].concat(function(t){return t.map(function(t){return t[3]})}(e))}(t,e):[t]}(r,o)}else it=e,e=n;return e}(),o===n&&(o=null),Ct(),41===t.charCodeAt(it)?(a=i,it++):(a=n,0===ht&&wt(O)),a!==n?(Ct(),lt=e,e=function(t,e){return{type:"function",name:t,parameters:e||[]}}(r,o)):(it=e,e=n)):(it=e,e=n),e}function Rt(){let t,e;return t=it,e=jt(),e===n&&(e=$t(),e===n&&(e=Pt(),e===n&&(e=function(){let t,e;return ht++,t=it,Ct(),e=It(),e!==n?(lt=t,t=function(t){return{value:t,unit:null}}(e)):(it=t,t=n),ht--,t===n&&0===ht&&wt(X),t}()))),e!==n&&(lt=t,e=function(t){return{type:"quantity",value:t.value,unit:t.unit}}(e)),t=e,t===n&&(t=it,e=kt(),e!==n&&(lt=t,e=function(t){return{type:"color",colorType:t.type,value:t.value}}(e)),t=e),t}function Ct(){let e,r;for(ht++,e=[],r=t.charAt(it),C.test(r)?it++:(r=n,0===ht&&wt(Z));r!==n;)e.push(r),r=t.charAt(it),C.test(r)?it++:(r=n,0===ht&&wt(Z));return ht--,e}function St(){let e,r,o;if(ht++,e=it,r=[],o=t.charAt(it),S.test(o)?it++:(o=n,0===ht&&wt(_)),o!==n)for(;o!==n;)r.push(o),o=t.charAt(it),S.test(o)?it++:(o=n,0===ht&&wt(_));else r=n;return r!==n&&(lt=e,r=dt()),e=r,ht--,e===n&&(r=n,0===ht&&wt(F)),e}function jt(){let e,r,o;return ht++,e=it,Ct(),r=It(),r!==n?(37===t.charCodeAt(it)?(o=f,it++):(o=n,0===ht&&wt(z)),o!==n?(lt=e,e=function(t){return{value:t,unit:"%"}}(r)):(it=e,e=n)):(it=e,e=n),ht--,e===n&&0===ht&&wt(L),e}function $t(){let e,r,o;return ht++,e=it,Ct(),r=It(),r!==n?(t.substr(it,2)===p?(o=p,it+=2):(o=n,0===ht&&wt(N)),o!==n?(lt=e,e=function(t){return{value:t,unit:"px"}}(r)):(it=e,e=n)):(it=e,e=n),e===n&&(e=it,Ct(),r=It(),r!==n?(t.substr(it,2)===h?(o=h,it+=2):(o=n,0===ht&&wt(U)),o!==n?(lt=e,e=function(t){return{value:t,unit:"cm"}}(r)):(it=e,e=n)):(it=e,e=n),e===n&&(e=it,Ct(),r=It(),r!==n?(t.substr(it,2)===d?(o=d,it+=2):(o=n,0===ht&&wt(D)),o!==n?(lt=e,e=function(t){return{value:t,unit:"mm"}}(r)):(it=e,e=n)):(it=e,e=n),e===n&&(e=it,Ct(),r=It(),r!==n?(t.substr(it,2)===m?(o=m,it+=2):(o=n,0===ht&&wt(K)),o!==n?(lt=e,e=function(t){return{value:t,unit:"in"}}(r)):(it=e,e=n)):(it=e,e=n),e===n&&(e=it,Ct(),r=It(),r!==n?(t.substr(it,2)===g?(o=g,it+=2):(o=n,0===ht&&wt(B)),o!==n?(lt=e,e=function(t){return{value:t,unit:"pt"}}(r)):(it=e,e=n)):(it=e,e=n),e===n&&(e=it,Ct(),r=It(),r!==n?(t.substr(it,2)===y?(o=y,it+=2):(o=n,0===ht&&wt(W)),o!==n?(lt=e,e=function(t){return{value:t,unit:"pc"}}(r)):(it=e,e=n)):(it=e,e=n)))))),ht--,e===n&&0===ht&&wt(G),e}function Pt(){let e,r,o;return ht++,e=it,r=It(),r!==n?(t.substr(it,3)===M?(o=M,it+=3):(o=n,0===ht&&wt(J)),o!==n?(lt=e,e=function(t){return{value:t,unit:"deg"}}(r)):(it=e,e=n)):(it=e,e=n),e===n&&(e=it,r=It(),r!==n?(t.substr(it,3)===v?(o=v,it+=3):(o=n,0===ht&&wt(Q)),o!==n?(lt=e,e=function(t){return{value:t,unit:"rad"}}(r)):(it=e,e=n)):(it=e,e=n),e===n&&(e=it,r=It(),r!==n?(t.substr(it,4)===w?(o=w,it+=4):(o=n,0===ht&&wt(Y)),o!==n?(lt=e,e=function(t){return{value:t,unit:"grad"}}(r)):(it=e,e=n)):(it=e,e=n),e===n&&(e=it,r=It(),r!==n?(t.substr(it,4)===x?(o=x,it+=4):(o=n,0===ht&&wt(V)),o!==n?(lt=e,e=function(t){return{value:t,unit:"turn"}}(r)):(it=e,e=n)):(it=e,e=n)))),ht--,e===n&&(r=n,0===ht&&wt(H)),e}function kt(){let e,r,o,a;if(ht++,e=it,35===t.charCodeAt(it)?(r=b,it++):(r=n,0===ht&&wt(et)),r!==n){if(o=[],a=t.charAt(it),j.test(a)?it++:(a=n,0===ht&&wt(nt)),a!==n)for(;a!==n;)o.push(a),a=t.charAt(it),j.test(a)?it++:(a=n,0===ht&&wt(nt));else o=n;o!==n?(lt=e,e={type:"hex",value:dt()}):(it=e,e=n)}else it=e,e=n;return e===n&&(e=it,r=At(),r!==n&&(lt=e,r=function(t){return{type:"function",value:t}}(r)),e=r,e===n&&(e=it,r=St(),r!==n&&(lt=e,r={type:"named",value:dt()}),e=r)),ht--,e===n&&(r=n,0===ht&&wt(tt)),e}function It(){let e,r,o,a,u,i,l,s;for(e=it,r=t.charAt(it),$.test(r)?it++:(r=n,0===ht&&wt(rt)),r===n&&(r=null),o=it,a=[],u=t.charAt(it),P.test(u)?it++:(u=n,0===ht&&wt(ot));u!==n;)a.push(u),u=t.charAt(it),P.test(u)?it++:(u=n,0===ht&&wt(ot));if(46===t.charCodeAt(it)?(u=A,it++):(u=n,0===ht&&wt(at)),u!==n){if(i=[],l=t.charAt(it),P.test(l)?it++:(l=n,0===ht&&wt(ot)),l!==n)for(;l!==n;)i.push(l),l=t.charAt(it),P.test(l)?it++:(l=n,0===ht&&wt(ot));else i=n;i!==n?(a=[a,u,i],o=a):(it=o,o=n)}else it=o,o=n;if(o===n)if(o=[],a=t.charAt(it),P.test(a)?it++:(a=n,0===ht&&wt(ot)),a!==n)for(;a!==n;)o.push(a),a=t.charAt(it),P.test(a)?it++:(a=n,0===ht&&wt(ot));else o=n;if(o!==n){if(a=it,101===t.charCodeAt(it)?(u=R,it++):(u=n,0===ht&&wt(ut)),u!==n){if(i=t.charAt(it),$.test(i)?it++:(i=n,0===ht&&wt(rt)),i===n&&(i=null),l=[],s=t.charAt(it),P.test(s)?it++:(s=n,0===ht&&wt(ot)),s!==n)for(;s!==n;)l.push(s),s=t.charAt(it),P.test(s)?it++:(s=n,0===ht&&wt(ot));else l=n;l!==n?(u=[u,i,l],a=u):(it=a,a=n)}else it=a,a=n;a===n&&(a=null),lt=e,e=parseFloat(dt())}else it=e,e=n;return e}ct=a();const Ot=ct!==n&&it===t.length;function qt(){throw ct!==n&&it<t.length&&wt({type:"end"}),function(t,e,n){return new l(l.buildMessage(t,e),t,e,n)}(pt,ft<t.length?function(e=it){const n=t.codePointAt(e);return void 0===n?"":String.fromCodePoint(n)}(ft):null,ft<t.length?vt(ft,ft+1):vt(ft,ft))}return e.peg$library?{peg$result:ct,peg$currPos:it,peg$FAILED:n,peg$maxFailExpected:pt,peg$maxFailPos:ft,peg$success:Ot,peg$throw:Ot?void 0:qt}:Ot?ct:void qt()}(t)}catch(e){throw new r.A("effect:invalid-syntax","Invalid effect syntax",{value:t,error:e})}return e.map(t=>function(t){try{switch(t.name){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":return function(t){let e=1;return f(t.parameters,1),1===t.parameters.length&&(e=g(t.parameters[0])),new u.yG(t.name,e)}(t);case"opacity":return function(t){let e=1;return f(t.parameters,1),1===t.parameters.length&&(e=g(t.parameters[0])),new u.jm(e)}(t);case"hue-rotate":return function(t){let e=0;return f(t.parameters,1),1===t.parameters.length&&(e=function(t){return function(t){if("quantity"!==t.type||!(0===t.value&&null===t.unit||t.unit&&null!=d[t.unit]))throw new r.A("effect:type-error",`Expected <angle>, Actual: ${p(t)}`,{term:t})}(t),t.value*d[t.unit]||0}(t.parameters[0])),new u.Nd(e)}(t);case"blur":return function(t){let e=0;return f(t.parameters,1),1===t.parameters.length&&(e=y(t.parameters[0]),h(e,t.parameters[0])),new u.Fk(e)}(t);case"drop-shadow":return function(t){const e=[];let n=null;for(const o of t.parameters)if("color"===o.type){if(e.length&&Object.freeze(e),n)throw new r.A("effect:type-error","Accepts only one color",{});n=M(o)}else{const t=y(o);if(Object.isFrozen(e))throw new r.A("effect:type-error","<length> parameters not consecutive",{lengths:e});e.push(t),3===e.length&&h(t,o)}if(e.length<2||e.length>3)throw new r.A("effect:type-error",`Expected <length>{2,3}, Actual: <length>{${e.length}}`,{lengths:e});return new u.$b(e[0],e[1],e[2]||0,n||v("black"))}(t);case"bloom":return function(t){let e=1,n=0,r=0;return f(t.parameters,3),t.parameters[0]&&(e=g(t.parameters[0])),t.parameters[1]&&(n=y(t.parameters[1]),h(n,t.parameters[1])),t.parameters[2]&&(r=g(t.parameters[2])),new u.bv(e,n,r)}(t)}}catch(e){throw e.details.filter=t,e}throw new r.A("effect:unknown-effect",`Effect '${t.name}' is not supported`,{effect:t})}(t))}function f(t,e){if(t.length>e)throw new r.A("effect:type-error",`Function supports up to ${e} parameters, Actual: ${t.length}`,{parameters:t})}function p(t){if("color"===t.type)return"<color>";if(t.unit){if(t.unit in m)return"<length>";if(t.unit in d)return"<angle>";if("%"===t.unit)return"<percentage>"}return"<double>"}function h(t,e){if(t<0)throw new r.A("effect:type-error",`Negative values are not allowed, Actual: ${t}`,{term:e})}const d={deg:1,grad:.9,rad:180/Math.PI,turn:360},m={px:1,cm:96/2.54,mm:96/2.54/10,in:96,pc:16,pt:96/72};function g(t){!function(t){if("quantity"!==t.type||null!==t.unit&&"%"!==t.unit)throw new r.A("effect:type-error",`Expected <double> or <percentage>, Actual: ${p(t)}`,{term:t})}(t);const e=t.value;return h(e,t),"%"===t.unit?.01*e:e}function y(t){return function(t){if("quantity"!==t.type||!(0===t.value&&null===t.unit||t.unit&&null!=m[t.unit]))throw new r.A("effect:type-error",`Expected <length>, Actual: ${p(t)}`,{term:t})}(t),t.value*m[t.unit]||0}function M(t){switch(t.colorType){case"hex":return(0,a.j5)(t.value);case"named":return v(t.value);case"function":return function(t){if(f(t.parameters,4),w.test(t.name))return[g(t.parameters[0]),g(t.parameters[1]),g(t.parameters[2]),t.parameters[3]?g(t.parameters[3]):1];if(x.test(t.name))return(0,a.ay)(function(t){return function(t){if("quantity"!==t.type||null!==t.unit)throw new r.A("effect:type-error",`Expected <double>, Actual: ${p(t)}`,{term:t})}(t),h(t.value,t),t.value}(t.parameters[0]),g(t.parameters[1]),g(t.parameters[2]),t.parameters[3]?g(t.parameters[3]):1);throw new r.A("effect:syntax-error",`Invalid color function '${t.name}'`,{colorFunction:t})}(t.value)}}function v(t){if(!(0,a.V6)(t))throw new r.A("effect:unknown-color",`color '${t}' isn't valid`,{namedColor:t});return(0,a.c4)(t)}const w=/^rgba?/i,x=/^hsla?/i;function b(t,e,n){try{return function(t){if(!t||0===t.length)return null;if(function(t){const e=t[0];return!!e&&"scale"in e}(t)){const e=[];for(const n of t)e.push({scale:n.scale,value:R(n.value)});return e}return R(t)}(t)}catch(t){n?.messages?.push(t)}return null}function A(t,e,n,r){try{const r=function(t){const e=s(t);return e?(0,i.dw)(e)?e.map(t=>t.toJSON()):e.map(({scale:t,effects:e})=>({scale:t,value:e.map(t=>t.toJSON())})):null}(t);(0,o.sM)(n,r,e)}catch(t){r.messages&&r.messages.push(t)}}function R(t){if(!t?.length)return"";const e=[];for(const n of t){let t=[];switch(n.type){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":case"opacity":t=[C(n,"amount")];break;case"blur":t=[C(n,"radius","pt")];break;case"hue-rotate":t=[C(n,"angle","deg")];break;case"drop-shadow":t=[C(n,"xoffset","pt"),C(n,"yoffset","pt"),C(n,"blurRadius","pt"),S(n,"color")];break;case"bloom":t=[C(n,"strength"),C(n,"radius","pt"),C(n,"threshold")]}const r=`${n.type}(${t.filter(Boolean).join(" ")})`;s(r),e.push(r)}return e.join(" ")}function C(t,e,n){if(null==t[e])throw new r.A("effect:missing-parameter",`Missing parameter '${e}' in ${t.type} effect`,{effect:t});return n?t[e]+n:""+t[e]}function S(t,e){if(null==t[e])throw new r.A("effect:missing-parameter",`Missing parameter '${e}' in ${t.type} effect`,{effect:t});const n=t[e];return`rgba(${n[0]||0}, ${n[1]||0}, ${n[2]||0}, ${n[3]/255||0})`}},63074(t,e,n){var r=n(5482),o=n(91429),a=n(89317),u=n(76369);const i={type:["average","color-burn","color-dodge","color","darken","destination-atop","destination-in","destination-out","destination-over","difference","exclusion","hard-light","hue","invert","lighten","lighter","luminosity","minus","multiply","normal","overlay","plus","reflect","saturation","screen","soft-light","source-atop","source-in","source-out","vivid-light","xor"],nonNullable:!0,json:{read:!1,write:!1,origins:{"web-map":{read:!0,write:{layerContainerTypes:a.K}},"portal-item":{read:!0,write:{layerContainerTypes:a.K}}}}},l={read:{reader:u.LF},write:{allowNull:!0,writer:u.M9,layerContainerTypes:a.K}},s={json:{read:!1,write:!1,origins:{"web-map":l,"portal-item":l}}};n.d(e,["LF",0,s,"dM",0,t=>{const e=t;let n=class extends e{constructor(){super(...arguments),this.blendMode="normal",this.effect=null}};return(0,r.Cg)([(0,o.MZ)(i)],n.prototype,"blendMode",void 0),(0,r.Cg)([(0,o.MZ)(s)],n.prototype,"effect",void 0),n=(0,r.Cg)([(0,o.$K)("esri.layers.mixins.BlendLayer")],n),n},"sU",0,i])},25036(t,e,n){var r=n(5482),o=n(91429);n.d(e,["j",0,t=>{const e=t;let n=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const t={minScale:this.minScale,maxScale:this.maxScale},e=this.parent;void 0!==e?.effectiveScaleRange&&function(t,e){t.minScale=t.minScale>0?e.minScale>0?Math.min(t.minScale,e.minScale):t.minScale:e.minScale,t.maxScale=t.maxScale>0?e.maxScale>0?Math.max(t.maxScale,e.maxScale):t.maxScale:e.maxScale}(t,e.effectiveScaleRange);const n=this._get("effectiveScaleRange");return n&&n.minScale===t.minScale&&n.maxScale===t.maxScale?n:t}};return(0,r.Cg)([(0,o.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],n.prototype,"minScale",void 0),(0,r.Cg)([(0,o.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],n.prototype,"maxScale",void 0),(0,r.Cg)([(0,o.MZ)({readOnly:!0})],n.prototype,"effectiveScaleRange",null),n=(0,r.Cg)([(0,o.$K)("esri.layers.mixins.ScaleRangeLayer")],n),n}])},56560(t,e,n){n.d(e,{A:()=>i});var r=n(5482),o=n(69540),a=n(91429),u=n(86738);let i=class extends o.Pw{constructor(t){super(t),this.sourcePoint=null,this.mapPoint=null}};(0,r.Cg)([(0,a.MZ)()],i.prototype,"sourcePoint",void 0),(0,r.Cg)([(0,a.MZ)({type:u.A})],i.prototype,"mapPoint",void 0),i=(0,r.Cg)([(0,a.$K)("esri.layers.support.ControlPoint")],i)},78553(t,e,n){n.d(e,{D:()=>a,p:()=>o});var r=n(56507);function o(t){const e=(0,r.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function a(t){const e=1-t/100;return Math.max(0,Math.min(e,1))}}}]);