@arcgis/core 5.2.0-next.69 → 5.2.0-next.70

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 (639) hide show
  1. package/Basemap.js +1 -1
  2. package/Ground.js +1 -1
  3. package/WebDocument2D.js +1 -1
  4. package/WebScene.js +1 -1
  5. package/applications/Components/analysisUtils.js +1 -1
  6. package/applications/Components/arcadeEditorUtils.js +1 -1
  7. package/applications/Components/testUtils.js +1 -1
  8. package/applications/Urban/meshUtils.js +1 -1
  9. package/arcade/arcadeCompiler.js +1 -1
  10. package/arcade/functions/geomasync.js +1 -1
  11. package/arcade/functions/geomsync.js +1 -1
  12. package/arcade/functions/knowledgegraph.js +1 -1
  13. package/arcade/functions/track.js +1 -1
  14. package/arcade/geometry/operators.js +1 -1
  15. package/arcade/geometry/operatorsWorker.js +1 -1
  16. package/arcade/geometry/rotate.js +2 -0
  17. package/arcade/geometry/unitConversion.js +1 -1
  18. package/arcgisGlobal.d.ts +1 -0
  19. package/assets/components/assets/icon/loadConfiguration16.json +1 -0
  20. package/assets/components/assets/icon/loadConfiguration24.json +1 -0
  21. package/assets/components/assets/icon/loadConfiguration32.json +1 -0
  22. package/assets/esri/core/workers/RemoteClient.js +1 -1
  23. package/assets/esri/core/workers/chunks/{bece22668622a9a6bfe2.js → 011281fe918c4f0aec5d.js} +1 -1
  24. package/assets/esri/core/workers/chunks/01c92e68fb17cf2d0e08.js +1 -0
  25. package/assets/esri/core/workers/chunks/02dd79beb13eff6be85e.js +1 -0
  26. package/assets/esri/core/workers/chunks/0623acb2bd14a61b65c9.js +29 -0
  27. package/assets/esri/core/workers/chunks/065e3353124fc5ac44ce.js +1 -0
  28. package/assets/esri/core/workers/chunks/06c9aac75a01d3af6d54.js +1 -0
  29. package/assets/esri/core/workers/chunks/073f1d5f89875c6aefb1.js +1 -0
  30. package/assets/esri/core/workers/chunks/{d583bcea4d1a21da9147.js → 0846855843f85661e974.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{7a818499c1079906c2d7.js → 089f8c60e96d920a2cb2.js} +1 -1
  32. package/assets/esri/core/workers/chunks/09653bd2a31d293a10d9.js +2 -0
  33. package/assets/esri/core/workers/chunks/0ae0483b72f5e8d00d55.js +1 -0
  34. package/assets/esri/core/workers/chunks/0aedeb837399d3f92e4a.js +1 -0
  35. package/assets/esri/core/workers/chunks/0b18de5147d76b68896f.js +1 -0
  36. package/assets/esri/core/workers/chunks/{f5d809d30cbb56be852d.js → 0e333aced8b23aa49a0e.js} +1 -1
  37. package/assets/esri/core/workers/chunks/{dad39ddf0f8dfb0bef47.js → 0eaa8265a4cd64297545.js} +1 -1
  38. package/assets/esri/core/workers/chunks/{4e1b087453fc5e20e961.js → 118ccfa2d685764752ee.js} +1 -1
  39. package/assets/esri/core/workers/chunks/158d2ac0333d53556e33.js +1 -0
  40. package/assets/esri/core/workers/chunks/160b204cbf5bda2a29e9.js +1 -0
  41. package/assets/esri/core/workers/chunks/16cade1c2ddf44e336ee.js +1 -0
  42. package/assets/esri/core/workers/chunks/19233d0016e5b154c5ce.js +1 -0
  43. package/assets/esri/core/workers/chunks/19cb8963d5ec2246357b.js +1 -0
  44. package/assets/esri/core/workers/chunks/{0ae35b02dda9b9662560.js → 1ac8a7a129ba33e05a24.js} +1 -1
  45. package/assets/esri/core/workers/chunks/1b130af7d14eaae69d96.js +1 -0
  46. package/assets/esri/core/workers/chunks/1ca04ecf010e68863014.js +1 -0
  47. package/assets/esri/core/workers/chunks/1cc063aa2ddf44bbd515.js +1 -0
  48. package/assets/esri/core/workers/chunks/{c055c16379f5bb56e930.js → 1d92d53186debd52e753.js} +1 -1
  49. package/assets/esri/core/workers/chunks/{37a8cfec11057947b45f.js → 1dba93abe84d30f05d8d.js} +1 -1
  50. package/assets/esri/core/workers/chunks/1e0140556c2e3fa72545.js +1 -0
  51. package/assets/esri/core/workers/chunks/1e5cb72830c7f32f2961.js +1 -0
  52. package/assets/esri/core/workers/chunks/{510acf2e8781be9b0dba.js → 1f888f026b004447772c.js} +1 -1
  53. package/assets/esri/core/workers/chunks/2033e6d42453e4e67048.js +1 -0
  54. package/assets/esri/core/workers/chunks/24006cea112d657f053a.js +1 -0
  55. package/assets/esri/core/workers/chunks/{7b531feba4fd662575f9.js → 28924f31f5ba8ebdc60a.js} +1 -1
  56. package/assets/esri/core/workers/chunks/{893ffc38e1a43de5b63d.js → 28b09fe50b855a1d8a3f.js} +1 -1
  57. package/assets/esri/core/workers/chunks/{b9c7aa04861f545a559c.js → 2bcb7e43578124538c3c.js} +1 -1
  58. package/assets/esri/core/workers/chunks/2bdb9b5365869081c936.js +1 -0
  59. package/assets/esri/core/workers/chunks/{df89bf05c18f0c8e418b.js → 2cfe6f41865ffb3a4645.js} +1 -1
  60. package/assets/esri/core/workers/chunks/{63858dfcff1177e597e7.js → 2d1ae18a28491b00091d.js} +1 -1
  61. package/assets/esri/core/workers/chunks/2d3a18d56e2e5669c562.js +1 -0
  62. package/assets/esri/core/workers/chunks/2d45daacec0d5ed38782.js +1 -0
  63. package/assets/esri/core/workers/chunks/2f58e1f64df2da8259a2.js +1 -0
  64. package/assets/esri/core/workers/chunks/31669511cfddf116d991.js +1 -0
  65. package/assets/esri/core/workers/chunks/32f5112c848efec6c33b.js +1 -0
  66. package/assets/esri/core/workers/chunks/33e293836f5d28dc5d62.js +1 -0
  67. package/assets/esri/core/workers/chunks/{59a795eba31061dc357a.js → 359584a8fb5687a7d098.js} +1 -1
  68. package/assets/esri/core/workers/chunks/{9c5dff4f13102871786e.js → 36171c72a3c04b0d13ef.js} +1 -1
  69. package/assets/esri/core/workers/chunks/38660a8cc3623c854d88.js +1 -0
  70. package/assets/esri/core/workers/chunks/3978f00a03e97645b276.js +1 -0
  71. package/assets/esri/core/workers/chunks/3b14ed3184743df336a6.js +1 -0
  72. package/assets/esri/core/workers/chunks/{f82cd34a79c8aa58d40c.js → 3b3a8a6167f2e1eeb828.js} +2 -2
  73. package/assets/esri/core/workers/chunks/3d6b2d5ae647e140abaf.js +1 -0
  74. package/assets/esri/core/workers/chunks/3dc71e03a630dd50b28e.js +1 -0
  75. package/assets/esri/core/workers/chunks/3de6e54b6ed0feae1940.js +1 -0
  76. package/assets/esri/core/workers/chunks/3dff36f6de181d9dcdc5.js +1 -0
  77. package/assets/esri/core/workers/chunks/3fd022df127af32782ce.js +1 -0
  78. package/assets/esri/core/workers/chunks/40693ee558a1eb1e93f4.js +1 -0
  79. package/assets/esri/core/workers/chunks/4344ab1250a1c550bf8b.js +1 -0
  80. package/assets/esri/core/workers/chunks/4491dc227c28e2ab4f8e.js +1 -0
  81. package/assets/esri/core/workers/chunks/{909e88c27d80777b047c.js → 463747a822499dd933ef.js} +1 -1
  82. package/assets/esri/core/workers/chunks/4695cd6120f60b234d5c.js +1 -0
  83. package/assets/esri/core/workers/chunks/4823e77515f451628fad.js +1 -0
  84. package/assets/esri/core/workers/chunks/484b3e2a220c440ccbb4.js +1 -0
  85. package/assets/esri/core/workers/chunks/4c2794687aea172775a0.js +1 -0
  86. package/assets/esri/core/workers/chunks/{b5b698008b8f3f4d5d61.js → 4ce57dd39075e8fb357c.js} +1 -1
  87. package/assets/esri/core/workers/chunks/4da993c79b373b9d304e.js +2 -0
  88. package/assets/esri/core/workers/chunks/4da993c79b373b9d304e.js.LICENSE.txt +4 -0
  89. package/assets/esri/core/workers/chunks/4e129b9f5772a06e580c.js +1 -0
  90. package/assets/esri/core/workers/chunks/50e0dd74795978468625.js +1 -0
  91. package/assets/esri/core/workers/chunks/{0a98a13418f53082ca7a.js → 5459ba8fdeb2370bb52b.js} +1 -1
  92. package/assets/esri/core/workers/chunks/582a1d468089b9986416.js +1 -0
  93. package/assets/esri/core/workers/chunks/5e3d5347223f0111f40f.js +1 -0
  94. package/assets/esri/core/workers/chunks/{bfb626805405646a0419.js → 5eb29f0068f1c839d05e.js} +1 -1
  95. package/assets/esri/core/workers/chunks/5f201c77a09ae0df29d6.js +1 -0
  96. package/assets/esri/core/workers/chunks/{6d5038d4351fe29e2718.js → 5fb76575575fe8cfb1f0.js} +1 -1
  97. package/assets/esri/core/workers/chunks/6072c63a5da4366e9942.js +1 -0
  98. package/assets/esri/core/workers/chunks/6080e46fc79127500283.js +1 -0
  99. package/assets/esri/core/workers/chunks/623d5518bca227f643bd.js +1 -0
  100. package/assets/esri/core/workers/chunks/62811bca7ad2100c023c.js +1 -0
  101. package/assets/esri/core/workers/chunks/6357c7cac401aee9fe77.js +1 -0
  102. package/assets/esri/core/workers/chunks/{91c543443cd6768ad6ff.js → 6525c925bb91facb3575.js} +1 -1
  103. package/assets/esri/core/workers/chunks/67d3ff7fcefaa7d5d27f.js +1 -0
  104. package/assets/esri/core/workers/chunks/{b5571e93bc136dac8ee1.js → 67ebde34377f98d17cda.js} +1 -1
  105. package/assets/esri/core/workers/chunks/687cf21e027f49b44d22.js +1 -0
  106. package/assets/esri/core/workers/chunks/{6b0acd1a7dd74a7367e0.js → 694371f51c52a7a94da4.js} +1 -1
  107. package/assets/esri/core/workers/chunks/6a9002fcba11e2cf3f2e.js +1 -0
  108. package/assets/esri/core/workers/chunks/{f4e813ead56d963b16b8.js → 6b208bac120bcfecd9e4.js} +1 -1
  109. package/assets/esri/core/workers/chunks/6cd6d0cfd313f0475d98.js +1 -0
  110. package/assets/esri/core/workers/chunks/6f58cb9dffe8016397a2.js +1 -0
  111. package/assets/esri/core/workers/chunks/7260e63252fa5452dc22.js +1 -0
  112. package/assets/esri/core/workers/chunks/72dcd4bd1a28bf8605c5.js +1 -0
  113. package/assets/esri/core/workers/chunks/73f77f5a6907cb8d9a35.js +1 -0
  114. package/assets/esri/core/workers/chunks/77df0bb35d2688729479.js +1 -0
  115. package/assets/esri/core/workers/chunks/{09c43bcb09aad02e83a9.js → 7a143ca61c0a70306185.js} +1 -1
  116. package/assets/esri/core/workers/chunks/7ca9c908432b1afa0367.js +1 -0
  117. package/assets/esri/core/workers/chunks/{ec2e0b2e31fd53b81d0a.js → 7ddf9b2718dd047f15e6.js} +1 -1
  118. package/assets/esri/core/workers/chunks/7f208ef75ef2ce0d7cf9.js +1 -0
  119. package/assets/esri/core/workers/chunks/7f4a592bcf4ecb55949a.js +1 -0
  120. package/assets/esri/core/workers/chunks/7f91e45156bbe88f9a62.js +1 -0
  121. package/assets/esri/core/workers/chunks/864691186c449ca2c3db.js +1 -0
  122. package/assets/esri/core/workers/chunks/869d292a60747c93dc84.js +1 -0
  123. package/assets/esri/core/workers/chunks/{7e2794705b4e679fcb3f.js → 86a4057572755b403548.js} +1 -1
  124. package/assets/esri/core/workers/chunks/{99772ce7e628364434fa.js → 8c1bddc88cc5f4251021.js} +1 -1
  125. package/assets/esri/core/workers/chunks/8c76f31a363dd0c3354d.js +1 -0
  126. package/assets/esri/core/workers/chunks/8eecc6df6511c8830f5d.js +1 -0
  127. package/assets/esri/core/workers/chunks/{0da4816c11b45b4a6289.js → 8fea514aada1195c8f30.js} +1 -1
  128. package/assets/esri/core/workers/chunks/{7ebbb90d80600d9ba889.js → 913fb883455aeac8582b.js} +1 -1
  129. package/assets/esri/core/workers/chunks/927582ec15bff2acbb49.js +1 -0
  130. package/assets/esri/core/workers/chunks/{89132395eca329b9ab92.js → 9482a6d7baa24bbf5693.js} +1 -1
  131. package/assets/esri/core/workers/chunks/9684ab5e8254fdfcb7bb.js +1 -0
  132. package/assets/esri/core/workers/chunks/96d861265566854760cd.js +1 -0
  133. package/assets/esri/core/workers/chunks/98e6c1d035755a074d24.js +1 -0
  134. package/assets/esri/core/workers/chunks/9937920e7993814d0b2c.js +1 -0
  135. package/assets/esri/core/workers/chunks/{9d0bda096cdbd7e22f4b.js → 9bbff8237540409610b3.js} +1 -1
  136. package/assets/esri/core/workers/chunks/9dda9414104f585560a4.js +2 -0
  137. package/assets/esri/core/workers/chunks/{be291d920ebc68fde02b.js.LICENSE.txt → 9dda9414104f585560a4.js.LICENSE.txt} +0 -5
  138. package/assets/esri/core/workers/chunks/{1dc1bfb3425665f560e4.js → a486d99f9879f94151ba.js} +1 -1
  139. package/assets/esri/core/workers/chunks/{475c60ed8785d07911c6.js → a5c115fc53edb52ce1de.js} +1 -1
  140. package/assets/esri/core/workers/chunks/a62f1b8ed065b2a38f1a.js +1 -0
  141. package/assets/esri/core/workers/chunks/{830d1a7dee43422507ab.js → a739e617fc461014ad1f.js} +1 -1
  142. package/assets/esri/core/workers/chunks/aa21031c8f12ca438eaa.js +1 -0
  143. package/assets/esri/core/workers/chunks/ad27689b231e282b7620.js +1 -0
  144. package/assets/esri/core/workers/chunks/af6e8c961fd768fa7be3.js +1 -0
  145. package/assets/esri/core/workers/chunks/afeeb11b39e140303b5a.js +1 -0
  146. package/assets/esri/core/workers/chunks/b599b7dadce8b8bc88f6.js +1 -0
  147. package/assets/esri/core/workers/chunks/{873d8332e2149eb1b36a.js → b6c7b7b7f87dce5de811.js} +3 -3
  148. package/assets/esri/core/workers/chunks/b7d8817018b3d277c454.js +1 -0
  149. package/assets/esri/core/workers/chunks/{d90bc34d97bb21c29c40.js → b8cd81d8fcc78d272130.js} +1 -1
  150. package/assets/esri/core/workers/chunks/{450bc48a7389607bce1e.js → b984b808d383974ca3d8.js} +1 -1
  151. package/assets/esri/core/workers/chunks/b9953277d0cd4a01bdc6.js +1 -0
  152. package/assets/esri/core/workers/chunks/c02b3b8b71205f6ce290.js +1 -0
  153. package/assets/esri/core/workers/chunks/c03da138651ac53cadcb.js +2 -0
  154. package/assets/esri/core/workers/chunks/c21212c356f65244e34e.js +1 -0
  155. package/assets/esri/core/workers/chunks/{1fece9757de7c10d1e9f.js → c29df43817278f674707.js} +1 -1
  156. package/assets/esri/core/workers/chunks/{589b31cc5c663a288942.js → c6bf17b5ff6ec4b980a1.js} +1 -1
  157. package/assets/esri/core/workers/chunks/c715c585c42d8c2b86f5.js +1 -0
  158. package/assets/esri/core/workers/chunks/c7e9513f75b8ec205562.js +1 -0
  159. package/assets/esri/core/workers/chunks/c866b66ba72d96453899.js +1 -0
  160. package/assets/esri/core/workers/chunks/{5fde1234c5cccaee6763.js → c873383e7dae35dc1a61.js} +1 -1
  161. package/assets/esri/core/workers/chunks/c99dcc17fbd7acd2ad2e.js +1 -0
  162. package/assets/esri/core/workers/chunks/cae94d6805e0e8db3600.js +1 -0
  163. package/assets/esri/core/workers/chunks/cc5ec6e99aa09342c704.js +1 -0
  164. package/assets/esri/core/workers/chunks/cd4e5c948d1bfa9b9a2d.js +1 -0
  165. package/assets/esri/core/workers/chunks/{6501ee40bf25f9f75d02.js → ce481eeb27ea9c1782ae.js} +1 -1
  166. package/assets/esri/core/workers/chunks/{d214ac457ac970479536.js → cec1c87eb3749276ced4.js} +1 -1
  167. package/assets/esri/core/workers/chunks/cfe31b7d1c6c05fbd268.js +1 -0
  168. package/assets/esri/core/workers/chunks/d08f81d545930a79fb2e.js +1 -0
  169. package/assets/esri/core/workers/chunks/d0c1bc90e474f706211c.js +1 -0
  170. package/assets/esri/core/workers/chunks/d2faac81142586cf7509.js +1 -0
  171. package/assets/esri/core/workers/chunks/d607cf154218d20e4114.js +1 -0
  172. package/assets/esri/core/workers/chunks/{b94cd7eac5ff4a78dd5b.js → d7b6985984071e78c764.js} +1 -1
  173. package/assets/esri/core/workers/chunks/d901f8503a73277cfa58.js +1 -0
  174. package/assets/esri/core/workers/chunks/d93d0cb69f3a9a722510.js +1 -0
  175. package/assets/esri/core/workers/chunks/{9073b0f0ec93d6e243b9.js → da1c9257793c2817f40f.js} +1 -1
  176. package/assets/esri/core/workers/chunks/{94719ac469dadc4c05dc.js → dc0c3109b7558b4fe016.js} +1 -1
  177. package/assets/esri/core/workers/chunks/{dc7e4f7879debf557e46.js → de3d0973cff1e0858c52.js} +2 -2
  178. package/assets/esri/core/workers/chunks/{adce59e4111bae4225f7.js → e421dee5d8b030e79ffb.js} +1 -1
  179. package/assets/esri/core/workers/chunks/e602b91d8fdc36a92530.js +1 -0
  180. package/assets/esri/core/workers/chunks/{c13e55b9efb0b532f7ee.js → e61ab8ef30bbe788b9d7.js} +1 -1
  181. package/assets/esri/core/workers/chunks/e702abaeccef20b64a81.js +1 -0
  182. package/assets/esri/core/workers/chunks/{11a3aa43fb940c21f148.js → eb95464bd017fb839510.js} +1 -1
  183. package/assets/esri/core/workers/chunks/ebd619533be077059494.js +1 -0
  184. package/assets/esri/core/workers/chunks/ed564358cc7b3ee463a3.js +1 -0
  185. package/assets/esri/core/workers/chunks/ef2e0a014c982d9c7ca4.js +1 -0
  186. package/assets/esri/core/workers/chunks/f5cf338cecfc81f23128.js +1 -0
  187. package/assets/esri/core/workers/chunks/f6150b51a9430691a040.js +1 -0
  188. package/assets/esri/core/workers/chunks/{f4aed2b6e92bd0474069.js → f69329b85b362b349a8c.js} +1 -1
  189. package/assets/esri/core/workers/chunks/f721756a6c1593f96409.js +1 -0
  190. package/assets/esri/core/workers/chunks/fa19d5923276418096da.js +1 -0
  191. package/assets/esri/core/workers/chunks/fa5d27e47d47ff8fcb96.js +2 -0
  192. package/assets/esri/core/workers/chunks/fb12d3c63fcac8391e06.js +1 -0
  193. package/assets/esri/core/workers/chunks/fc9065d0cd6285fe0f0d.js +1 -0
  194. package/assets/esri/core/workers/chunks/{b526055794e64b0227ca.js → fd6107f95082e05f016a.js} +11 -11
  195. package/assets/esri/core/workers/chunks/fe10a95ebe1da2322af6.js +1 -0
  196. package/assets/esri/core/workers/chunks/fe71a0604f0928113419.js +1 -0
  197. package/assets/esri/core/workers/chunks/fec07a16b72cdcafc641.js +1 -0
  198. package/assets/esri/core/workers/chunks/fff23b2682590c4b21e3.js +1 -0
  199. package/assets/esri/layers/raster/formats/lerc-wasm.wasm +0 -0
  200. package/chunks/Bufferer-CclWhXVb.js +1 -1
  201. package/chunks/ColorMaterial.glsl.js +18 -5
  202. package/chunks/Component.glsl.js +42 -34
  203. package/chunks/Envelope.js +1 -1
  204. package/chunks/GeodeticDistanceCalculator-zRp89-dW.js +1 -1
  205. package/chunks/Geometry.js +1 -1
  206. package/chunks/GeometryCleaner-CIE8Wfmb.js +1 -1
  207. package/chunks/MultiPathImpl.js +1 -1
  208. package/chunks/OperatorAffineTransform.js +2 -0
  209. package/chunks/OperatorCentroid2D.js +2 -0
  210. package/chunks/OperatorCrosses.js +1 -1
  211. package/chunks/OperatorCut.js +1 -1
  212. package/chunks/OperatorGeneralize.js +1 -1
  213. package/chunks/OperatorGeodesicBuffer.js +1 -1
  214. package/chunks/OperatorGeodeticLength.js +1 -1
  215. package/chunks/OperatorGraphicBuffer.js +1 -1
  216. package/chunks/OperatorIntersects.js +1 -1
  217. package/chunks/OperatorMultiPartToSinglePart.js +1 -1
  218. package/chunks/OperatorOverlaps.js +1 -1
  219. package/chunks/OperatorProximityGeodesic.js +1 -1
  220. package/chunks/OperatorShapePreservingLength.js +1 -1
  221. package/chunks/OperatorShapePreservingProject.js +1 -1
  222. package/chunks/OperatorSimplifyOGC.js +1 -1
  223. package/chunks/OperatorTouches.js +1 -1
  224. package/chunks/OperatorWithin.js +1 -1
  225. package/chunks/Point2D.js +1 -1
  226. package/chunks/SideCalculator2D-DX0718xq.js +1 -1
  227. package/chunks/SpatialReference.js +1 -1
  228. package/chunks/arcade.js +1 -1
  229. package/chunks/bundle.js +1 -1
  230. package/chunks/bundle2.js +1 -1
  231. package/chunks/centroidOperator.js +1 -1
  232. package/chunks/containsOperator.js +1 -1
  233. package/chunks/disjointOperator.js +1 -1
  234. package/chunks/equalsOperator.js +1 -1
  235. package/chunks/geodeticDistanceOperator.js +2 -0
  236. package/chunks/multiPartToSinglePartOperator.js +2 -0
  237. package/chunks/offsetOperator.js +2 -0
  238. package/config.js +1 -1
  239. package/core/imageUtils.js +1 -1
  240. package/core/workers/WorkerFallback.js +1 -1
  241. package/core/workers/registry.js +1 -1
  242. package/core/workers/workerFactory.js +1 -1
  243. package/core/workers/workers.js +1 -1
  244. package/editing/sharedTemplates/SharedTemplateProvider.js +1 -1
  245. package/editing/sharedTemplates/executor/builders/support/offsetUtils.js +1 -1
  246. package/editing/sharedTemplates/executor/createTemplateExecutor.js +1 -1
  247. package/editing/sharedTemplates/templateLoader.js +1 -1
  248. package/geometry/libtess.js +1 -1
  249. package/geometry/operators/affineTransformOperator.js +1 -1
  250. package/geometry/operators/centroidOperator.js +1 -1
  251. package/geometry/operators/geodeticDistanceOperator.js +1 -1
  252. package/geometry/operators/gx/operatorAffineTransform.js +1 -1
  253. package/geometry/operators/gx/operatorAutoComplete.js +1 -1
  254. package/geometry/operators/gx/operatorBuffer.js +1 -1
  255. package/geometry/operators/gx/operatorConvexHull.js +1 -1
  256. package/geometry/operators/gx/operatorDifference.js +1 -1
  257. package/geometry/operators/gx/operatorIntersection.js +1 -1
  258. package/geometry/operators/gx/operatorLabelPoint.js +1 -1
  259. package/geometry/operators/gx/operatorLinesToPolygons.js +1 -1
  260. package/geometry/operators/gx/operatorLocateBetween.js +1 -1
  261. package/geometry/operators/gx/operatorOffset.js +1 -1
  262. package/geometry/operators/gx/operatorSinglePartToMultiPart.js +1 -1
  263. package/geometry/operators/gx/operatorUnion.js +1 -1
  264. package/geometry/operators/json/containsOperator.js +1 -1
  265. package/geometry/operators/json/disjointOperator.js +1 -1
  266. package/geometry/operators/multiPartToSinglePartOperator.js +1 -1
  267. package/geometry/operators/offsetOperator.js +1 -1
  268. package/geometry/support/curves/densifyCurvedGeometry.js +1 -1
  269. package/geometry/support/meshUtils.js +1 -1
  270. package/interfaces.d.ts +3 -0
  271. package/kernel.js +1 -1
  272. package/layers/CSVLayer.js +1 -1
  273. package/layers/CatalogLayer.js +1 -1
  274. package/layers/ElevationLayer.js +1 -1
  275. package/layers/FeatureLayer.js +1 -1
  276. package/layers/GeoJSONLayer.js +1 -1
  277. package/layers/GroupLayer.js +1 -1
  278. package/layers/ImageryLayer.js +1 -1
  279. package/layers/ImageryTileLayer.js +1 -1
  280. package/layers/Layer.js +1 -1
  281. package/layers/MapImageLayer.js +1 -1
  282. package/layers/MediaLayer.js +1 -1
  283. package/layers/SceneLayer.js +1 -1
  284. package/layers/StreamLayer.js +1 -1
  285. package/layers/SubtypeGroupLayer.js +1 -1
  286. package/layers/WCSLayer.js +1 -1
  287. package/layers/WFSLayer.js +1 -1
  288. package/layers/graphics/data/QueryEngineResult.js +1 -1
  289. package/layers/graphics/data/queryUtils.js +1 -1
  290. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  291. package/layers/graphics/sources/MemorySource.js +1 -1
  292. package/layers/graphics/sources/connections/GeoEventConnection.js +1 -1
  293. package/layers/graphics/sources/support/sourceUtils.js +1 -1
  294. package/layers/knowledgeGraph/cypherUtils.js +1 -1
  295. package/layers/mixins/ArcGISImageService.js +1 -1
  296. package/layers/mixins/PortalLayer.js +1 -1
  297. package/layers/mixins/TiledImagery.js +1 -1
  298. package/layers/raster/datasets/FunctionRaster.js +1 -1
  299. package/layers/raster/datasets/pixelReader.js +1 -1
  300. package/layers/raster/functions/clipUtils.js +1 -1
  301. package/layers/raster/functions/rasterProjectionHelper.js +1 -1
  302. package/layers/support/Sublayer.js +1 -1
  303. package/layers/support/arcgisLayers.js +1 -1
  304. package/layers/support/featureLayerUtils.js +1 -1
  305. package/layers/support/fromPortalItem.js +1 -1
  306. package/layers/support/layersLoader.js +1 -1
  307. package/layers/support/vectorTileLayerLoader.js +1 -1
  308. package/libs/basisu/BasisUEncoder.js +1 -1
  309. package/libs/basisu/BasisUTranscoder.js +1 -1
  310. package/libs/dracoMeshDecoder/dracoMeshDecoder.js +1 -1
  311. package/libs/dxtEncoder/DXTEncoder.js +1 -1
  312. package/libs/i3s/I3SModule.js +1 -1
  313. package/libs/parquet/loadParquetModule.js +1 -1
  314. package/libs/text/loadTextModule.js +1 -1
  315. package/networks/UtilityNetwork.js +1 -1
  316. package/networks/support/utils.js +1 -1
  317. package/package.json +3 -3
  318. package/popup/FeatureContentCollection.js +1 -1
  319. package/popup/Features.js +1 -1
  320. package/portal/Portal.js +1 -1
  321. package/portal/PortalItem.js +1 -1
  322. package/portal/PortalItemResource.js +1 -1
  323. package/portal/PortalUser.js +1 -1
  324. package/renderers/support/DictionaryLoader.js +1 -1
  325. package/request/process.js +1 -1
  326. package/request/queue.js +1 -1
  327. package/request.js +1 -1
  328. package/rest/geoprocessor/utils.js +1 -1
  329. package/rest/knowledgeGraph/wasmInterface/knowledgeWasmAccess.js +1 -1
  330. package/rest/support/JobInfo.js +1 -1
  331. package/rest/utils.js +1 -1
  332. package/smartMapping/renderers/support/rendererUtils.js +1 -1
  333. package/smartMapping/support/adapters/InMemoryLayerAdapter.js +1 -1
  334. package/support/revision.js +1 -1
  335. package/support/tests/serviceMockDependencies.js +1 -1
  336. package/support/zipUtils.js +1 -1
  337. package/symbols/WebStyleSymbol.js +1 -1
  338. package/symbols/cim/CIMOperators.js +1 -1
  339. package/symbols/cim/cimAnalyzer.js +1 -1
  340. package/symbols/cim/defaultCIMValues.js +1 -1
  341. package/symbols/cim/effects/EffectCircularSector.js +2 -0
  342. package/symbols/cim/types.d.ts +42 -1
  343. package/symbols/cim/utils.js +1 -1
  344. package/symbols/support/symbolLayerUtils.js +1 -1
  345. package/symbols/support/symbolUtils.js +1 -1
  346. package/symbols/support/utils.js +1 -1
  347. package/undoredo/support/ServiceVersionInfo.js +1 -1
  348. package/versionManagement/VersionManagementService.js +1 -1
  349. package/views/2d/engine/Stage.js +1 -1
  350. package/views/2d/engine/vectorTiles/TileHandler.js +1 -1
  351. package/views/2d/engine/vectorTiles/TileHandler3D.js +1 -1
  352. package/views/2d/engine/vectorTiles/TileParser.js +1 -1
  353. package/views/2d/engine/vectorTiles/VTLPainter3D.js +1 -1
  354. package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
  355. package/views/2d/engine/vectorTiles/WorkerTile.js +1 -1
  356. package/views/2d/engine/vectorTiles/WorkerTileHandler.js +1 -1
  357. package/views/2d/engine/vectorTiles/style/GeoJSONVectorTileSource.js +2 -0
  358. package/views/2d/engine/vectorTiles/style/GeoJSONVectorTileSourceWorker.js +2 -0
  359. package/views/2d/engine/vectorTiles/style/RemoteVectorTileSource.js +2 -0
  360. package/views/2d/engine/vectorTiles/style/StyleLayer.js +1 -1
  361. package/views/2d/engine/vectorTiles/style/VectorTilePbfWriter.js +2 -0
  362. package/views/2d/engine/vectorTiles/style/VectorTileSource.js +1 -1
  363. package/views/2d/engine/vectorTiles/style/encodeVectorTileFeatures.js +2 -0
  364. package/views/2d/engine/webgl/GlyphMosaic.js +1 -1
  365. package/views/2d/engine/webgl/GlyphSDFCreator.js +1 -1
  366. package/views/2d/engine/webgl/GlyphSource.js +1 -1
  367. package/views/2d/engine/webgl/GlyphWorker.js +2 -0
  368. package/views/2d/engine/webgl/Painter.js +1 -1
  369. package/views/2d/engine/webgl/TextureManager.js +1 -1
  370. package/views/2d/engine/webgl/mesh/factories/ResourceProxy.js +1 -1
  371. package/views/2d/engine/webgl/shaderGraph/techniques/createGraphicSymbolMeshSchemas.js +1 -1
  372. package/views/2d/engine/webgl/shaderGraph/techniques/fill/FillMeshWriter.js +1 -1
  373. package/views/2d/engine/webgl/shaderGraph/techniques/fill/OutlineFillMeshWriter.js +1 -1
  374. package/views/2d/engine/webgl/shaderGraph/techniques/line/LineMeshWriter.js +1 -1
  375. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriter.js +1 -1
  376. package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
  377. package/views/2d/layers/RouteLayerView2D.js +1 -1
  378. package/views/2d/layers/VectorTileLayerView2D.js +1 -1
  379. package/views/2d/layers/features/Processor.js +1 -1
  380. package/views/2d/layers/features/schema/processor/MatcherSchema.js +1 -1
  381. package/views/2d/layers/features/schema/processor/symbols/ComplexSymbolSchema.js +1 -1
  382. package/views/2d/layers/features/support/FeatureSetReaderVectorTileFeatureCursor.js +2 -0
  383. package/views/2d/layers/support/MediaLayerInteraction.js +1 -1
  384. package/views/3d/analysis/Viewshed/ViewshedConfiguration.js +1 -1
  385. package/views/3d/analysis/Viewshed/ViewshedEditTool.js +1 -1
  386. package/views/3d/analysis/Viewshed/ViewshedObserverManipulatedObject3D.js +1 -1
  387. package/views/3d/analysis/Viewshed/ViewshedSnappingController.js +1 -1
  388. package/views/3d/analysis/Viewshed/ViewshedSubTool.js +1 -1
  389. package/views/3d/analysis/Viewshed/viewshedToolManipulatorUtils.js +1 -1
  390. package/views/3d/interactive/manipulatorUtils.js +1 -1
  391. package/views/3d/interactive/visualElements/OutlineVisualElement.js +1 -1
  392. package/views/3d/interactive/visualElements/VerticesVisualElement.js +1 -1
  393. package/views/3d/layers/I3SMeshView3D.js +1 -1
  394. package/views/3d/layers/ImageryTileLayerView3D.js +1 -1
  395. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  396. package/views/3d/layers/SceneLayerWorker.js +1 -1
  397. package/views/3d/layers/VectorTileLayerView3D.js +1 -1
  398. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  399. package/views/3d/layers/graphics/Graphics3DFrustumVisibility.js +1 -1
  400. package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
  401. package/views/3d/layers/graphics/Graphics3DScaleVisibility.js +1 -1
  402. package/views/3d/layers/graphics/Graphics3DSymbol.js +1 -1
  403. package/views/3d/layers/graphics/GraphicsDeconflictor.js +1 -1
  404. package/views/3d/layers/graphics/ObjectResourceCache.js +1 -1
  405. package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
  406. package/views/3d/layers/i3s/I3SOverrides.js +1 -1
  407. package/views/3d/layers/i3s/I3SQueryEngine.js +1 -1
  408. package/views/3d/layers/support/FlowTileTree3DDebugger.js +1 -1
  409. package/views/3d/layers/support/TerrainTileTree3DDebugger.js +1 -1
  410. package/views/3d/state/ViewStateManager.js +1 -1
  411. package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
  412. package/views/3d/support/CombinedElevationProvider.js +1 -1
  413. package/views/3d/support/viewpointUtils.js +1 -1
  414. package/views/3d/terrain/TerrainSurface.js +1 -1
  415. package/views/3d/terrain/TransparencyMode.js +2 -0
  416. package/views/3d/webgl-engine/collections/Component/ComponentObject.js +1 -1
  417. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  418. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  419. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterialInitParameters.js +1 -1
  420. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterialRepository.js +1 -1
  421. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
  422. package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +7 -7
  423. package/views/3d/webgl-engine/effects/smaa/SMAA.js +1 -1
  424. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  425. package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
  426. package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
  427. package/views/3d/webgl-engine/shaders/ColorMaterial.glsl.js +1 -1
  428. package/views/3d/webgl-engine/shaders/ColorMaterialTechnique.js +1 -1
  429. package/views/3d/webgl-engine/shaders/ColorMaterialTechniqueConfiguration.js +1 -1
  430. package/views/PopupView.js +1 -1
  431. package/views/SceneView.js +1 -1
  432. package/views/VideoView.js +1 -1
  433. package/views/View.js +1 -1
  434. package/views/analysis/ElevationProfile/elevationProfileGeometryUtils.js +1 -1
  435. package/views/draw/PointDrawAction.js +1 -1
  436. package/views/draw/PolygonDrawAction.js +1 -1
  437. package/views/draw/PolylineDrawAction.js +1 -1
  438. package/views/draw/SegmentDrawAction.js +1 -1
  439. package/views/draw/support/createSnappingVisualizer.js +1 -1
  440. package/views/interactive/snapping/SnappingManager.js +1 -1
  441. package/views/interactive/snapping/featureSources/FeatureServiceSnappingSource.js +1 -1
  442. package/views/layers/HighlightableLayerView.d.ts +2 -0
  443. package/views/layers/support/MapServiceLayerViewHelper.js +1 -1
  444. package/views/selection/SelectionOperation.js +1 -1
  445. package/views/support/GeometryWorker.js +1 -1
  446. package/views/support/GroundElevationSampler.js +1 -1
  447. package/webdoc/support/resourceUtils.js +1 -1
  448. package/webdoc/support/webdocLoadUtils.js +1 -1
  449. package/webdoc/support/webdocSaveUtils.js +1 -1
  450. package/webscene/Slide.js +1 -1
  451. package/webscene/spec-certification/api.js +1 -1
  452. package/webscene/spec-certification/spec.js +1 -1
  453. package/webscene/support/analysisUtils.js +1 -1
  454. package/widgets/BasemapLayerList.js +1 -1
  455. package/widgets/BatchAttributeForm/ValueChangeTransaction.js +1 -1
  456. package/widgets/BatchAttributeForm/expressions/ExpressionsManager.js +1 -1
  457. package/widgets/BatchAttributeForm/expressions/ExpressionsModel.js +1 -1
  458. package/widgets/BatchAttributeForm/templates/support/textElementTemplateUtils.js +1 -1
  459. package/widgets/BatchAttributeForm.js +1 -1
  460. package/widgets/CatalogLayerList.js +1 -1
  461. package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
  462. package/widgets/Editor/UpdateWorkflow.js +1 -1
  463. package/widgets/Editor/legacy/CreateFeaturesWorkflow.js +1 -1
  464. package/widgets/Editor/legacy/UpdateWorkflow.js +1 -1
  465. package/widgets/Editor/modelUploadUtils.js +1 -1
  466. package/widgets/Editor/support/mergeFeaturesUtils.js +1 -1
  467. package/widgets/Editor/support/splitFeatureUtils.js +1 -1
  468. package/widgets/Editor/workflowUtils.js +1 -1
  469. package/widgets/Editor.js +1 -1
  470. package/widgets/ElevationProfile/support/geometryUtils.js +1 -1
  471. package/widgets/ElevationProfile.js +1 -1
  472. package/widgets/Feature/FeatureMedia.js +1 -1
  473. package/widgets/Feature/FeatureRelationship/FeatureRelationshipViewModel.js +1 -1
  474. package/widgets/Feature/FeatureRelationship.js +1 -1
  475. package/widgets/Feature/FeatureUtilityNetworkAssociationList.js +1 -1
  476. package/widgets/Feature.js +1 -1
  477. package/widgets/FeatureForm/FeatureFormViewModel.js +1 -1
  478. package/widgets/FeatureForm/support/textManipulationUtils.js +1 -1
  479. package/widgets/FeatureForm.js +1 -1
  480. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  481. package/widgets/FeatureTable/Grid/GridViewModel.js +1 -1
  482. package/widgets/FeatureTable/Grid/types.d.ts +78 -4
  483. package/widgets/FeatureTable/support/FeatureStore.d.ts +675 -0
  484. package/widgets/FeatureTable/support/FeatureStore.js +1 -1
  485. package/widgets/FeatureTable/support/types.d.ts +28 -0
  486. package/widgets/Features/FeaturesViewModel.js +1 -1
  487. package/widgets/Features.js +1 -1
  488. package/widgets/FloorFilter/FloorFilterViewModel.js +1 -1
  489. package/widgets/LayerList/ListItemPanel.js +1 -1
  490. package/widgets/LayerList.js +1 -1
  491. package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
  492. package/widgets/Legend/support/colorRampUtils.js +1 -1
  493. package/widgets/Legend/support/sizeRampUtils.js +1 -1
  494. package/widgets/Legend/support/utils.js +1 -1
  495. package/widgets/Measurement.js +1 -1
  496. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  497. package/widgets/OrientedImageryViewer/services/DepthImageService.js +1 -1
  498. package/widgets/OrientedImageryViewer/services/SuperimposeService.js +1 -1
  499. package/widgets/OrientedImageryViewer/support/NonPanoramicMedia.js +1 -1
  500. package/widgets/OrientedImageryViewer.js +1 -1
  501. package/widgets/PanoramicVideoViewer.js +1 -1
  502. package/widgets/PanoramicViewer/support/PanoramicMedia.js +1 -1
  503. package/widgets/PanoramicViewer/support/importUtils.js +1 -1
  504. package/widgets/PanoramicViewer.js +1 -1
  505. package/widgets/Print.js +1 -1
  506. package/widgets/Search/SearchViewModel.js +1 -1
  507. package/widgets/Search/support/layerSearchUtils.js +1 -1
  508. package/widgets/Search/support/locatorUtils.js +1 -1
  509. package/widgets/Sketch/SketchViewModel.js +1 -1
  510. package/widgets/Sketch/support/PluginManager.js +1 -1
  511. package/widgets/Sketch.js +1 -1
  512. package/widgets/support/Selector2D/selectorUtils.js +1 -1
  513. package/widgets/support/SnappingControls.js +1 -1
  514. package/widgets/support/symbolPreviewUtils.js +1 -1
  515. package/arcade/geometry/offset.js +0 -2
  516. package/assets/esri/core/workers/chunks/067b00498ae85f635f60.js +0 -1
  517. package/assets/esri/core/workers/chunks/0b20f92bae2b4c40d299.js +0 -1
  518. package/assets/esri/core/workers/chunks/0c582abc8d25249eb530.js +0 -1
  519. package/assets/esri/core/workers/chunks/0d6776055e9b34c14151.js +0 -1
  520. package/assets/esri/core/workers/chunks/0e6b6fcc55cc43ede1fc.js +0 -1
  521. package/assets/esri/core/workers/chunks/126f1f6b355723db6c4f.js +0 -1
  522. package/assets/esri/core/workers/chunks/149284464115981694ff.js +0 -1
  523. package/assets/esri/core/workers/chunks/181f330314c1989f642f.js +0 -1
  524. package/assets/esri/core/workers/chunks/1840d74ebae777a0200b.js +0 -1
  525. package/assets/esri/core/workers/chunks/1bfbdec791e19f5a2534.js +0 -1
  526. package/assets/esri/core/workers/chunks/1d38a710cf799cb0e5b3.js +0 -1
  527. package/assets/esri/core/workers/chunks/1d8280f63a6698e74f20.js +0 -1
  528. package/assets/esri/core/workers/chunks/1f48438b3055afeb710f.js +0 -1
  529. package/assets/esri/core/workers/chunks/25999b6f96ec305a7679.js +0 -1
  530. package/assets/esri/core/workers/chunks/28565756f884d0851003.js +0 -1
  531. package/assets/esri/core/workers/chunks/2a5a165848413764381b.js +0 -1
  532. package/assets/esri/core/workers/chunks/2e7a5bb740281ef59199.js +0 -1
  533. package/assets/esri/core/workers/chunks/2f87a49bdd00f899d81d.js +0 -1
  534. package/assets/esri/core/workers/chunks/302d91b7c480c6c9304b.js +0 -1
  535. package/assets/esri/core/workers/chunks/30c53a7e1ad5aa52f2f3.js +0 -1
  536. package/assets/esri/core/workers/chunks/3b493e8043ec1a2a5d96.js +0 -1
  537. package/assets/esri/core/workers/chunks/3ddd717ea12d9823eee2.js +0 -1
  538. package/assets/esri/core/workers/chunks/3f84ade6285560b692d1.js +0 -1
  539. package/assets/esri/core/workers/chunks/4129b27fcd4103cdc499.js +0 -1
  540. package/assets/esri/core/workers/chunks/41f7f3615d3ecb87c59a.js +0 -1
  541. package/assets/esri/core/workers/chunks/465a050fd838ee8eddf3.js +0 -1
  542. package/assets/esri/core/workers/chunks/46d8a1d6f7341ad20749.js +0 -1
  543. package/assets/esri/core/workers/chunks/48a0dfaabb9b4bce4191.js +0 -1
  544. package/assets/esri/core/workers/chunks/4addea2e35b0c845743e.js +0 -1
  545. package/assets/esri/core/workers/chunks/4ae626868e14bedd7fc5.js +0 -1
  546. package/assets/esri/core/workers/chunks/529ee4670940720e888b.js +0 -1
  547. package/assets/esri/core/workers/chunks/538bdf02c4dfb5ec72fe.js +0 -1
  548. package/assets/esri/core/workers/chunks/59d1708ae13c6e7e6e55.js +0 -1
  549. package/assets/esri/core/workers/chunks/5adf16c034a590b5e9f5.js +0 -1
  550. package/assets/esri/core/workers/chunks/5fb0e8f89b885e5e3742.js +0 -1
  551. package/assets/esri/core/workers/chunks/60f9b37dd738d884c48d.js +0 -1
  552. package/assets/esri/core/workers/chunks/62c8413f3bbc1378273d.js +0 -1
  553. package/assets/esri/core/workers/chunks/632ab11cdd4b0d9a5cc5.js +0 -1
  554. package/assets/esri/core/workers/chunks/663cf8bff17c894cd5f8.js +0 -1
  555. package/assets/esri/core/workers/chunks/6cc1120554bcb1b4899b.js +0 -1
  556. package/assets/esri/core/workers/chunks/6d1371b521c7f94fd77e.js +0 -1
  557. package/assets/esri/core/workers/chunks/6f102c90908c9900cdaa.js +0 -1
  558. package/assets/esri/core/workers/chunks/7278fdf6bfcdffa10a7f.js +0 -1
  559. package/assets/esri/core/workers/chunks/73cb499d7d68c59ba34e.js +0 -1
  560. package/assets/esri/core/workers/chunks/76bccc318d7cc33829a7.js +0 -1
  561. package/assets/esri/core/workers/chunks/777eafdb86b26b35c803.js +0 -1
  562. package/assets/esri/core/workers/chunks/7821aeba3e414b318a75.js +0 -1
  563. package/assets/esri/core/workers/chunks/7ac47a9ad244100bc3b1.js +0 -1
  564. package/assets/esri/core/workers/chunks/7b0ed52363704cfce129.js +0 -1
  565. package/assets/esri/core/workers/chunks/7c57354d026e27e056d4.js +0 -1
  566. package/assets/esri/core/workers/chunks/7dd672c25beb8813cc75.js +0 -2
  567. package/assets/esri/core/workers/chunks/7eb94fc75926bc739233.js +0 -1
  568. package/assets/esri/core/workers/chunks/7f125963555dc1ce63ad.js +0 -1
  569. package/assets/esri/core/workers/chunks/805c97b875d3066fb8df.js +0 -1
  570. package/assets/esri/core/workers/chunks/86ed75b7169b8ee43025.js +0 -1
  571. package/assets/esri/core/workers/chunks/88c3b60b403e2454b56e.js +0 -1
  572. package/assets/esri/core/workers/chunks/894343e415639df88243.js +0 -1
  573. package/assets/esri/core/workers/chunks/8b4759cef5ae5e43253b.js +0 -1
  574. package/assets/esri/core/workers/chunks/8ba4175f5e9a24ffecf7.js +0 -1
  575. package/assets/esri/core/workers/chunks/8e1d4867406753c5483c.js +0 -1
  576. package/assets/esri/core/workers/chunks/8e38c5e63aae42bdf5a4.js +0 -29
  577. package/assets/esri/core/workers/chunks/8f785b722b1a131bf370.js +0 -1
  578. package/assets/esri/core/workers/chunks/8f8db62f126e4a8c1bf7.js +0 -1
  579. package/assets/esri/core/workers/chunks/8f9874f42f21a4cb3acd.js +0 -1
  580. package/assets/esri/core/workers/chunks/90f4b81c6034253b70d7.js +0 -1
  581. package/assets/esri/core/workers/chunks/93ab247ff34694ac60eb.js +0 -1
  582. package/assets/esri/core/workers/chunks/9954149def644c371894.js +0 -1
  583. package/assets/esri/core/workers/chunks/9dfb7d120195991e9672.js +0 -1
  584. package/assets/esri/core/workers/chunks/9ed5e6b06afea6c85330.js +0 -1
  585. package/assets/esri/core/workers/chunks/a108f276659d5f25352c.js +0 -1
  586. package/assets/esri/core/workers/chunks/a504fa17d83facf1c01f.js +0 -1
  587. package/assets/esri/core/workers/chunks/a5fdb02b1714e93fa69e.js +0 -1
  588. package/assets/esri/core/workers/chunks/a9f616f22042b0dce8b9.js +0 -1
  589. package/assets/esri/core/workers/chunks/afd63c18ce4656271c8e.js +0 -1
  590. package/assets/esri/core/workers/chunks/b059dabb1c732829487c.js +0 -1
  591. package/assets/esri/core/workers/chunks/b318823aefcefad6fad5.js +0 -1
  592. package/assets/esri/core/workers/chunks/b378e504a5b1afc8d0ce.js +0 -1
  593. package/assets/esri/core/workers/chunks/b5397dc03fa0bd654ba6.js +0 -1
  594. package/assets/esri/core/workers/chunks/b7bcb31737b01d7736d0.js +0 -1
  595. package/assets/esri/core/workers/chunks/ba030767cf935f967454.js +0 -1
  596. package/assets/esri/core/workers/chunks/be291d920ebc68fde02b.js +0 -2
  597. package/assets/esri/core/workers/chunks/c10a0eebd935472d8fae.js +0 -1
  598. package/assets/esri/core/workers/chunks/c16e83e448a32d13048f.js +0 -1
  599. package/assets/esri/core/workers/chunks/c2db773201adca204f95.js +0 -1
  600. package/assets/esri/core/workers/chunks/c4c83b5129c279c3615b.js +0 -1
  601. package/assets/esri/core/workers/chunks/c7e391df714839484cd1.js +0 -1
  602. package/assets/esri/core/workers/chunks/cca095f0c623e037002d.js +0 -1
  603. package/assets/esri/core/workers/chunks/cded485ad893a7dd2948.js +0 -1
  604. package/assets/esri/core/workers/chunks/cf03d391d50a4c7aca4f.js +0 -1
  605. package/assets/esri/core/workers/chunks/cf8ce63711488f2e677c.js +0 -1
  606. package/assets/esri/core/workers/chunks/d198ecb1fe3690d6092f.js +0 -2
  607. package/assets/esri/core/workers/chunks/d2a51c797b2966cb95f3.js +0 -2
  608. package/assets/esri/core/workers/chunks/d303621c902330be5035.js +0 -1
  609. package/assets/esri/core/workers/chunks/d4d385d19e62ef1c286f.js +0 -1
  610. package/assets/esri/core/workers/chunks/d4f005dadba75422b401.js +0 -1
  611. package/assets/esri/core/workers/chunks/d5e15021928e95c11463.js +0 -1
  612. package/assets/esri/core/workers/chunks/d6500f6b2ff115d9eb09.js +0 -1
  613. package/assets/esri/core/workers/chunks/d9c78c2db04a06ee83ed.js +0 -1
  614. package/assets/esri/core/workers/chunks/dccb46c7dce68528c72b.js +0 -1
  615. package/assets/esri/core/workers/chunks/df174346a7e9b629a392.js +0 -1
  616. package/assets/esri/core/workers/chunks/e08c64e4ae5a68eae2be.js +0 -1
  617. package/assets/esri/core/workers/chunks/e1492d2404c3ed82931e.js +0 -1
  618. package/assets/esri/core/workers/chunks/e34ed3b818b2eb4116c5.js +0 -1
  619. package/assets/esri/core/workers/chunks/e7149d23615fee31ab7e.js +0 -1
  620. package/assets/esri/core/workers/chunks/ec774f5d6ea5c29536e5.js +0 -1
  621. package/assets/esri/core/workers/chunks/ed71a4e353715db0a6e9.js +0 -1
  622. package/assets/esri/core/workers/chunks/f029c12f1afee0e9b2a1.js +0 -1
  623. package/assets/esri/core/workers/chunks/f4eda59ec1e816ecc827.js +0 -1
  624. package/assets/esri/core/workers/chunks/f54eba484f40d5eeb590.js +0 -1
  625. package/assets/esri/core/workers/chunks/f622b27ebdf1c918fd6d.js +0 -1
  626. package/assets/esri/core/workers/chunks/f6a13f07a5f7b781a9a8.js +0 -1
  627. package/assets/esri/core/workers/chunks/f6f1122bed931f1d960b.js +0 -1
  628. package/assets/esri/core/workers/chunks/f8b8d3d2710c83acccf3.js +0 -1
  629. package/assets/esri/core/workers/chunks/f98bb3885bfc7f18f26c.js +0 -1
  630. package/assets/esri/core/workers/chunks/fc827f58db3194922056.js +0 -1
  631. package/chunks/ShadedColorMaterial.glsl.js +0 -13
  632. package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +0 -2
  633. package/views/3d/webgl-engine/shaders/ShadedColorMaterial.glsl.js +0 -2
  634. package/views/3d/webgl-engine/shaders/ShadedColorMaterialTechnique.js +0 -2
  635. package/views/3d/webgl-engine/shaders/ShadedColorMaterialTechniqueConfiguration.js +0 -2
  636. /package/assets/esri/core/workers/chunks/{d198ecb1fe3690d6092f.js.LICENSE.txt → 09653bd2a31d293a10d9.js.LICENSE.txt} +0 -0
  637. /package/assets/esri/core/workers/chunks/{f82cd34a79c8aa58d40c.js.LICENSE.txt → 3b3a8a6167f2e1eeb828.js.LICENSE.txt} +0 -0
  638. /package/assets/esri/core/workers/chunks/{d2a51c797b2966cb95f3.js.LICENSE.txt → c03da138651ac53cadcb.js.LICENSE.txt} +0 -0
  639. /package/assets/esri/core/workers/chunks/{7dd672c25beb8813cc75.js.LICENSE.txt → fa5d27e47d47ff8fcb96.js.LICENSE.txt} +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7444],{70007(e,t,n){n.d(t,{c:()=>i});var s=n(55537);function i(e,t){const n=e.getGeometryType();return n===s.G.enumPoint?e:(0,s.n)(n)?function(e){if(function(e){for(let t=0,n=e.getPathCount();t<n;t++){const n=e.getPathSize(t);if(0===n)return!1;if(1===n){if(0===e.getSegmentCountPath(t))return!1;if(e.getSegmentType(e.getPathStart(t))===s.G.enumLine)return!1;if(!e.isClosedPath(t))return!1}}return!0}(e))return e;const t=e.createInstance();for(let n=0,i=e.getPathCount();n<i;n++){const i=e.getPathSize(n);if(0!==i){if(1===i){if(0===e.getSegmentCountPath(n))continue;if(e.getSegmentType(e.getPathStart(n))===s.G.enumLine)continue;if(!e.isClosedPath(n))continue}t.addPath(e,n,!0)}}return t}(e):n===s.G.enumMultiPoint||n===s.G.enumEnvelope?e:n===s.G.enumMultipatch?((0,s.t)("not implemented for multipatch"),e):e}},37444(e,t,n){n.r(t),n.d(t,{OperatorGeodesicBuffer:()=>k});var s=n(61691),i=n(55537),r=n(79187),m=n(15756),o=n(5482),a=n(88885),h=n(95213),c=n(11878),u=n(83661),l=n(31139),_=n(70007),f=n(5247),d=n(76061);class g{m_sr=null;m_gcs=null;m_transform=null;m_progressTracker;m_a=0;m_eSquared=0;m_rpu=0;m_radTolerance=0;m_q90=0;m_gcs90=0;m_gcs180=0;m_gcs360=0;m_gcs60=0;m_ellipticToGeodesicMaxRatio=0;m_curveType=0;m_bShapePreserving=!1;m_distance=0;m_absDistance=0;m_convergenceOffset=0;m_cornerStep=0;m_segmentStep=0;constructor(e){this.m_progressTracker=e}bufferPolygon(e){const t=new a.P,n=new G(this,e,t);return this.processGnomonicBufferPiecesCursor(!0,n)}bufferPolyline(e){const t=new G(this,e,null);return this.processGnomonicBufferPiecesCursor(!0,t)}bufferMultiPoint(e){const t=new T(this,e);return this.processGnomonicBufferPiecesCursor(!1,t)}bufferPoint(e){const t=e.getXY();t.scale(this.m_rpu);let n=new a.P;if(this.bufferPoint2D(t,!1,n)){const e=(0,h.e)(null,n,!0);n=(0,m.u)(n,e,!0,!0,-1,this.m_progressTracker,0,!1)}return n=(new m.O).foldInto360RangeGeodetic(n,this.m_gcs,2),n}processGnomonicBufferPiecesCursor(e,t){const n=t;let s=n.getGnomonic();const i=(0,m.S)((0,m.U)());let o=new m.V,a=(new m.t).executeMany(o,i,this.m_progressTracker,2);const l=(0,u.d)(6,!1),_=(0,u.m)(r.Envelope2D,6);this.initializeGrid(l,_);const f=[null,null,null,null,null,null],d=[null,null,null,null,null,null],g=[null,null,null,null,null,null];let P,p,x;for(;null!==(P=n.next());){if(p=n.getGnomonic(),p!==s){if(null!==s){let t=a.next();if(o=null,a=null,null!=t){const n=(0,h.e)(i,t,!0),r=(0,h.f)(n);t=s.unproject(t,r,this.m_progressTracker),this.putInGridCursors(e,t,i,!0,l,_,f,d,g)}}null!==p&&(o=new m.V,a=(new m.t).executeMany(o,i,this.m_progressTracker,2)),s=p}if(n.isRunningInGnomonic()){if(p.project(P),n.needsSimplify()){const e=(0,h.e)(null,P,!0);P=(0,m.u)(P,e,!0,!0,-1,this.m_progressTracker,0,!1)}o.tick(D(P)),a.tock()}else this.putInGridCursors(e,P,i,!0,l,_,f,d,g)}let b=!1;for(let e=0;e<6;e++)if(null!=g[e]){b=!0;break}if(b){let t=!1;const r=[null,null,null,null,null,null];if(e){const s=n.m_densified;if(n.m_densified=null,null!==s){const n=new c.T;n.scale(1/this.m_rpu,1/this.m_rpu),s.applyTransformation(n),this.m_distance>0?this.putInGridCursors(e,s,i,!1,l,_,f,d,g):(this.processInGrid(e,s,!1,l,_,f,r),t=!0)}}const u=new m.V,P=(new m.t).executeMany(u,this.m_gcs,this.m_progressTracker,2);if(null!==a){let t=a.next();o=null,a=null;const n=(0,h.e)(i,t,!0),r=(0,h.f)(n);t=s.unproject(t,r,this.m_progressTracker),this.putInGridCursors(e,t,i,!0,l,_,f,d,g)}for(let e=0;e<6;e++)if(null!=g[e]){let n=g[e].next();g[e]=null,d[e]=null,t&&null!==r[e]&&(n=(new m.B).execute(r[e],n,i,this.m_progressTracker));const s=(0,h.e)(i,n,!0),o=(0,h.f)(s);n=f[e].unproject(n,o,this.m_progressTracker),n=(new m.f).execute(n,this.m_gcs,!0,this.m_progressTracker),u.tick(D(n)),P.tock()}x=P.next()}else{let t,r=!1;if(e){let e=n.m_densified;if(n.m_densified=null,null!==e){const n=new c.T;n.scale(1/this.m_rpu,1/this.m_rpu),e.applyTransformation(n),p.project(e);const s=(0,h.e)(null,e,!0);e=(0,m.u)(e,s,!1,!0,-1,this.m_progressTracker,0,!1),this.m_distance>0?(o.tick(D(e)),a.tock()):(t=e,r=!0)}}let u=a.next();o=null,a=null,r&&(u=(new m.B).execute(t,u,i,this.m_progressTracker));const l=(0,h.e)(i,u,!0),_=(0,h.f)(l);x=s.unproject(u,_,this.m_progressTracker),x=(new m.f).execute(x,this.m_gcs,!0,this.m_progressTracker)}return x=(new m.O).foldInto360RangeGeodetic(x,this.m_gcs,2),x}putInGridCursors(e,t,n,s,i,r,o,a,h){const c=[null,null,null,null,null,null];this.processInGrid(e,t,s,i,r,o,c);for(let e=0;e<6;e++)null!==c[e]&&(null===a[e]&&(a[e]=new m.V,h[e]=(new m.t).executeMany(a[e],n,this.m_progressTracker,2)),a[e].tick(D(c[e])),h[e].tock())}processInGrid(e,t,n,s,i,r,o){const a=.01,c=this.insertGeodeticPointsAlongGrid(t,i,a);for(let e=0;e<6;e++){if(s[e])continue;const _=i[e].clone();_.inflateCoords(a,a);const f=(0,h.h)(t,_),d=(0,h.c)(null,f,!1).total();let g=(0,l.c)(c,_,d,Number.NaN,this.m_progressTracker);if(null!==g&&!g.isEmpty()){if(g===c&&(g=g.clone()),null===r[e]){const t=new u.P;e<3?t.setCoords(0,1):t.setCoords(0,-1);const n=new u.P;n.setAdd(i[e].getCenter(),t),r[e]=v(this.m_gcs,n)}r[e].project(g);const t=(0,h.e)(null,g,!0);g=(0,m.u)(g,t,n,!0,-1,this.m_progressTracker,0,!1),o[e]=g}}}insertGeodeticPointsAlongGrid(e,t,n){const s=r.Envelope2D.construct(t[3].xmin,t[3].ymin,t[2].xmax,t[2].ymax),i=(0,m.W)(this.m_gcs,s,e,!0,this.m_progressTracker),o=new a.E,h=o.addGeometry(i);return(0,m.X)(o,h,this.m_gcs,0,2,!0,t[0].xmax+n),(0,m.X)(o,h,this.m_gcs,0,2,!0,t[1].xmax+n),(0,m.X)(o,h,this.m_gcs,0,2,!1,t[1].ymin+n),0!==n&&((0,m.X)(o,h,this.m_gcs,0,2,!0,t[0].xmax-n),(0,m.X)(o,h,this.m_gcs,0,2,!0,t[1].xmax-n),(0,m.X)(o,h,this.m_gcs,0,2,!1,t[1].ymin-n)),o.getGeometry(h)}initializeGrid(e,t){for(let t=0;t<6;t++)e[t]=!1;t[0].setCoords({xmin:-this.m_gcs180,ymin:0,xmax:-this.m_gcs60,ymax:this.m_gcs90}),t[1].setCoords({xmin:-this.m_gcs60,ymin:0,xmax:this.m_gcs60,ymax:this.m_gcs90}),t[2].setCoords({xmin:this.m_gcs60,ymin:0,xmax:this.m_gcs180,ymax:this.m_gcs90}),t[3].setCoords({xmin:-this.m_gcs180,ymin:-this.m_gcs90,xmax:-this.m_gcs60,ymax:0}),t[4].setCoords({xmin:-this.m_gcs60,ymin:-this.m_gcs90,xmax:this.m_gcs60,ymax:0}),t[5].setCoords({xmin:this.m_gcs60,ymin:-this.m_gcs90,xmax:this.m_gcs180,ymax:0})}checkAndPrepSegmentForCrossingAzimuthsOrPoleWrap(e,t,n,s,i,r){const o=e[0],a=e.at(-1),h=o.y<a.y?o.y:a.y,c=o.y>a.y?o.y:a.y,l=m.M.q(this.m_a,this.m_eSquared,h),_=m.M.q(this.m_a,this.m_eSquared,c);if(this.m_q90-(l+t+this.m_absDistance)>.001&&this.m_q90+(_-t-this.m_absDistance)>.001)return!1;const f=n-u.l,d=s+u.l,g=f-Math.PI,P=f+Math.PI,y=d+Math.PI,S=[Number.NaN],C=[Number.NaN],w=[Number.NaN],v=[Number.NaN];let D=!1;if(b(this.m_a,this.m_eSquared,this.m_rpu,this.m_absDistance,o,f,g,a,d,S,C),b(this.m_a,this.m_eSquared,this.m_rpu,this.m_absDistance,a,y,d,o,g,w,v),(d<S[0]&&S[0]<y||d<C[0]&&C[0]<y)&&(D=!0),D||(g<w[0]&&w[0]<f||g<v[0]&&v[0]<f)&&(D=!0),!D&&i)return!1;const I=[];for(let t=e.length-1;t>=0;t--)I.push(e[t]);r.setEmpty(),r.addPathPoint2D(null,0,!0);let G=0;G=p(this.m_a,this.m_eSquared,this.m_rpu,this.m_absDistance,this.m_curveType,e,f,d,i,G,r),G=x(this.m_a,this.m_eSquared,this.m_rpu,this.m_absDistance,a,d,y,this.m_cornerStep,i,G,r,S[0],C[0]),G=p(this.m_a,this.m_eSquared,this.m_rpu,this.m_absDistance,this.m_curveType,I,y,P,i,G,r),G=x(this.m_a,this.m_eSquared,this.m_rpu,this.m_absDistance,o,g,f,this.m_cornerStep,i,G,r,w[0],v[0]);let T=!1;return i||(T=this.checkAndPrepForPole(r)),D||T}bufferPoint2D(e,t,n){n.setEmpty(),n.addPathPoint2D(null,0,!0),x(this.m_a,this.m_eSquared,this.m_rpu,this.m_absDistance,e,-this.m_cornerStep,2*Math.PI,this.m_cornerStep,t,0,n);let s=!1;return t||(s=this.checkAndPrepForPole(n)),s}checkAndPrepForPole(e){const t=this.checkAndPrepForPoleTouch(e),n=this.checkAndPrepForPoleWrap(e);return t||n}checkAndPrepForPoleTouch(e){const t=new r.Envelope2D;return e.queryEnvelope(t),!(!(0,m.Y)(t.ymax,this.m_gcs90)&&!(0,m.Y)(t.ymin,-this.m_gcs90)||(this.prepPoleTouch(e),0))}checkAndPrepForPoleWrap(e){const t=e.getXY(0),n=e.getXY(e.getPointCount()-1);return Math.abs(t.x-n.x)>this.m_gcs180?(this.prepSinglePoleWrap(e),!0):this.checkAndPrepForDoublePoleWrap(e)}checkAndPrepForDoublePoleWrap(e){return e.calculateArea2D()<0&&(this.prepDoublePoleWrap(e),!0)}prepPoleTouch(e){const t=new a.P;t.insertPath2D(-1,null,0,0,!0);const n=e.getPathStart(0),s=e.getPathEnd(0),i=s-n;let r=-1;for(r=n;r<s;r++){const t=e.getXY(r),n=(0,m.Y)(t.y,this.m_gcs90),s=(0,m.Y)(t.y,-this.m_gcs90);if(!n&&!s)break}let o=r,h=!1,c=Number.NaN;do{const s=e.getXY(o),r=(0,m.Y)(s.y,this.m_gcs90),a=(0,m.Y)(s.y,-this.m_gcs90),l=n+(o+1-n)%i;if(r||a){let n=u.P.construct(c,s.y);t.insertPoint2D(0,-1,n);const i=e.getXY(l),r=(0,m.Y)(i.y,this.m_gcs90),o=(0,m.Y)(i.y,-this.m_gcs90);r||o||(n=u.P.construct(i.x,s.y),h?t.setXY(t.getPointCount()-1,n):t.insertPoint2D(0,-1,n)),h=!0}else t.insertPoint2D(0,-1,s),c=s.x,h=!1;o=l}while(o!==r);e.setEmpty(),e.add(t,!1)}prepSinglePoleWrap(e){const t=new a.P,n=new a.P,s=new c.T,i=e.getXY(e.getPathStart(0)),o=e.getXY(e.getPathEnd(0)-1),_=this.m_gcs360,f=this.m_gcs180,d=new r.Envelope2D;d.setCoords({xmin:-this.m_gcs180,ymin:-this.m_gcs90,xmax:this.m_gcs180,ymax:this.m_gcs90});const g=new r.Envelope2D;e.queryEnvelope(g);const P=Math.ceil(g.width()/_);let p,x;i.x>o.x?(p=-_,x=this.m_gcs90):(p=_,x=-this.m_gcs90),s.setShiftCoords(p,0),t.addPath(e,0,!0),n.add(t,!1);const b=new h.P;for(let e=0;e<P;e++)n.applyTransformation(s),n.getPointByVal(0,b),t.lineToPoint(b),t.addSegmentsFromPath(n,0,0,n.getSegmentCount()-1,!1);const y=t.getXY(0),S=t.getXY(t.getPointCount()-1);y.y=x,S.y=x,t.lineTo(S);const C=new u.P;for(C.setCoordsPoint2D(S),C.x-=.5*p;Math.abs(C.x-y.x)>f;)t.lineTo(C),C.x-=.5*p;t.lineTo(y);const w=d.getCenterX(),v=new r.Envelope2D;t.queryEnvelope(v);let D=0;const I=v.getCenter().x;I-w>f?D=-Math.ceil((I-w-f)/_):w-I>f&&(D=Math.ceil((w-I-f)/_)),0!==D&&(s.setShiftCoords(D*_,0),t.applyTransformation(s));const G=new a.E,T=G.addGeometry(t);(0,m.X)(G,T,this.m_gcs,0,2,!0,d.xmin),(0,m.X)(G,T,this.m_gcs,0,2,!0,d.xmax);const k=G.getGeometry(T),M=(0,h.h)(k,d);M.inflateCoords(0,1);const N=(0,h.c)(null,M,!0).total(),E=(0,l.c)(k,d,N,Number.NaN,this.m_progressTracker);e.setEmpty(),e.add(E,!1)}prepDoublePoleWrap(e){const t=this.m_gcs360,n=this.m_gcs180,s=new r.Envelope2D;s.setCoords({xmin:-this.m_gcs180,ymin:-this.m_gcs90,xmax:this.m_gcs180,ymax:this.m_gcs90});const i=s.getCenter().x,o=new r.Envelope2D;e.queryPathEnvelope(0,o);let _,f=0,d=o.getCenter().x;if(d-i>n?f=-Math.ceil((d-i-n)/t):i-d>n&&(f=Math.ceil((i-d-n)/t)),0!==f){const n=new c.T;n.setShiftCoords(f*t,0),e.getImpl().applyTransformationToPath(n,0),e.queryPathEnvelope(0,o),d=o.getCenter().x}const g=new r.Envelope2D;s.containsExclusiveEnvelope(o)?(_=!1,g.setCoords({env2D:s})):(_=!0,g.setCoords({env2D:s}),g.xmin-=t,g.xmax+=t);let P=e.createInstance();P.addPathPoint2D(null,0,!0);const p=new u.P;if(p.setCoords(g.xmin,g.ymin),P.insertPoint2D(0,-1,p),p.setCoords(g.xmin,g.ymax),P.insertPoint2D(0,-1,p),p.setCoords(.5*(g.xmin+g.xmax),g.ymax),P.insertPoint2D(0,-1,p),p.setCoords(g.xmax,g.ymax),P.insertPoint2D(0,-1,p),p.setCoords(g.xmax,g.ymin),P.insertPoint2D(0,-1,p),p.setCoords(.5*(g.xmin+g.xmax),g.ymin),P.insertPoint2D(0,-1,p),_){P.addPath(e,0,!0);const n=new c.T;d<i?n.setShiftCoords(t,0):n.setShiftCoords(-t,0),e.getImpl().applyTransformationToPath(n,0),P.addPath(e,0,!0);const r=new a.E,o=r.addGeometry(P);(0,m.X)(r,o,this.m_gcs,0,2,!0,s.xmin),(0,m.X)(r,o,this.m_gcs,0,2,!0,s.xmax),P=r.getGeometry(o);const u=(0,h.h)(P,s);u.inflateCoords(0,1);const _=(0,h.c)(null,u,!0).total();P=(0,l.c)(P,s,_,Number.NaN,this.m_progressTracker)}else P.addPath(e,0,!0);e.setEmpty(),e.add(P,!1)}setMinCornerStep(){const e={stack:[],error:void 0,hasError:!1};try{let t=Math.min(Math.PI*this.m_a-this.m_absDistance,this.m_absDistance);t=Math.min(t,.125*this.m_a*Math.PI);const n=new u.P;n.setCoords(0,10*this.m_rpu);const s=0;let i=45*this.m_rpu;const r=(0,o.mS)(e,new u.S(new m.Z,new m.Z),!1),a=(0,o.mS)(e,new u.S(new m.Z,new m.Z),!1),h=(0,o.mS)(e,new u.S(new m.Z,new m.Z),!1),c=(0,o.mS)(e,new u.S(new m.Z,new m.Z),!1),l=new u.P,_=new u.P,f=new u.P,d=new u.P;for(m._.geodesicCoordinate(this.m_a,this.m_eSquared,n.x,n.y,t,s,r.at(0),r.at(1)),l.setCoords(r.at(0).val,r.at(1).val),m._.geodesicCoordinate(this.m_a,this.m_eSquared,n.x,n.y,t,i,a.at(0),a.at(1)),_.setCoords(a.at(0).val,a.at(1).val);;){const e={stack:[],error:void 0,hasError:!1};try{const r=.5*(s+i);m._.geodesicCoordinate(this.m_a,this.m_eSquared,n.x,n.y,t,r,h.at(0),h.at(1)),f.setCoords(h.at(0).val,h.at(1).val);const u=(0,o.mS)(e,new m.Z,!1),g=(0,o.mS)(e,new m.Z,!1);m._.geodeticDistance(this.m_a,this.m_eSquared,l.x,l.y,_.x,_.y,u,g,null,2),m._.geodeticCoordinate(this.m_a,this.m_eSquared,l.x,l.y,.5*u.val,g.val,c.at(0),c.at(1),2),d.setCoords(c.at(0).val,c.at(1).val);const P=(0,o.mS)(e,new m.Z,!1);if(m._.geodeticDistance(this.m_a,this.m_eSquared,f.x,f.y,d.x,d.y,P,null,null,2),P.val<=this.m_convergenceOffset)break;i*=.9,m._.geodesicCoordinate(this.m_a,this.m_eSquared,n.x,n.y,t,i,a.at(0),a.at(1)),_.setCoords(a.at(0).val,a.at(1).val)}catch(t){e.error=t,e.hasError=!0}finally{(0,o.hk)(e)}}const g=i-s,P=2*Math.PI/Math.ceil(2*Math.PI/g);this.m_cornerStep=P}catch(t){e.error=t,e.hasError=!0}finally{(0,o.hk)(e)}}setMinSegmentStep(){const e={stack:[],error:void 0,hasError:!1};try{let t=Math.min(Math.PI*this.m_a-this.m_absDistance,this.m_absDistance);t=Math.min(t,.125*this.m_a*Math.PI);const n=new u.P,s=new u.P;n.setCoords(0,10*this.m_rpu),s.setCoords(10*this.m_rpu,10*this.m_rpu);const i=(0,o.mS)(e,new m.Z,!1),r=(0,o.mS)(e,new m.Z,!1),a=(0,o.mS)(e,new m.Z,!1);m._.geodeticDistance(this.m_a,this.m_eSquared,n.x,n.y,s.x,s.y,a,i,r,this.m_curveType);const h=(0,o.mS)(e,new u.S(new m.Z,new m.Z),!1),c=(0,o.mS)(e,new u.S(new m.Z,new m.Z),!1),l=new u.P,_=(0,o.mS)(e,new m.Z,!1),f=(0,o.mS)(e,new u.S(new m.Z,new m.Z),!1),d=(0,o.mS)(e,new u.S(new m.Z,new m.Z),!1),g=(0,o.mS)(e,new u.S(new m.Z,new m.Z),!1),P=(0,o.mS)(e,new u.S(new m.Z,new m.Z),!1),p=new u.P,x=new u.P,b=new u.P,y=new u.P,S=0;let C=1;const w=i.val,v=r.val,D=w-.5*Math.PI,I=v+.5*Math.PI,G=a.val;for(m._.geodesicCoordinate(this.m_a,this.m_eSquared,n.x,n.y,t,D,f.at(0),f.at(1)),p.setCoords(f.at(0).val,f.at(1).val),m._.geodesicCoordinate(this.m_a,this.m_eSquared,s.x,s.y,t,I,d.at(0),d.at(1)),x.setCoords(d.at(0).val,d.at(1).val);;){const e={stack:[],error:void 0,hasError:!1};try{const i=.5*(S+C);m._.geodeticCoordinate(this.m_a,this.m_eSquared,n.x,n.y,i*G,w,h.at(0),h.at(1),this.m_curveType),l.setCoords(h.at(0).val,h.at(1).val),m._.geodeticDistance(this.m_a,this.m_eSquared,n.x,n.y,l.x,l.y,null,null,_,this.m_curveType);const r=_.val+.5*Math.PI;m._.geodesicCoordinate(this.m_a,this.m_eSquared,l.x,l.y,t,r,g.at(0),g.at(1)),b.setCoords(g.at(0).val,g.at(1).val);const a=(0,o.mS)(e,new m.Z,!1),u=(0,o.mS)(e,new m.Z,!1);m._.geodeticDistance(this.m_a,this.m_eSquared,p.x,p.y,x.x,x.y,a,u,null,2),m._.geodeticCoordinate(this.m_a,this.m_eSquared,p.x,p.y,.5*a.val,u.val,P.at(0),P.at(1),2),y.setCoords(P.at(0).val,P.at(1).val);const f=(0,o.mS)(e,new m.Z,!1);if(m._.geodeticDistance(this.m_a,this.m_eSquared,b.x,b.y,y.x,y.y,f,null,null,2),f.val<=this.m_convergenceOffset)break;{const e={stack:[],error:void 0,hasError:!1};try{C*=.9,m._.geodeticCoordinate(this.m_a,this.m_eSquared,n.x,n.y,C*G,w,c.at(0),c.at(1),this.m_curveType),s.setCoords(c.at(0).val,c.at(1).val);const i=(0,o.mS)(e,new m.Z,!1);m._.geodeticDistance(this.m_a,this.m_eSquared,n.x,n.y,s.x,s.y,null,null,i,this.m_curveType);const r=i.val+.5*Math.PI;m._.geodesicCoordinate(this.m_a,this.m_eSquared,s.x,s.y,t,r,d.at(0),d.at(1)),x.setCoords(d.at(0).val,d.at(1).val)}catch(t){e.error=t,e.hasError=!0}finally{(0,o.hk)(e)}}}catch(t){e.error=t,e.hasError=!0}finally{(0,o.hk)(e)}}let T=C*G;T>1e5&&(T=1e5),this.m_segmentStep=T}catch(t){e.error=t,e.hasError=!0}finally{(0,o.hk)(e)}}setConvergenceOffset(){let e;e=this.m_absDistance>5e4?100:this.m_absDistance>1e4?10:1,this.m_absDistance/e<500&&(e=this.m_absDistance/500),e<.01&&(e=.01),this.m_convergenceOffset=e}}function P(e,t,n,s,o,c,l){if(e.isEmpty())return new a.P({vd:e.getDescription()});let _=e;if((0,i.l)(_)){const e=10*t.getTolerance(0);_=(new f.O).execute(_,0,e,0,l,12e3)}const d=new g(l);d.m_sr=t,d.m_gcs=t.getGCS(),d.m_transform=(0,m.a)(t,d.m_gcs,null);const P=(0,m.$)();d.m_gcs.querySpheroidData(P);const p=new r.Envelope2D;_.queryEnvelope(p),d.m_a=P.majorSemiAxis,d.m_eSquared=P.e2,d.m_rpu=d.m_gcs.getUnit().getUnitToBaseFactor(),d.m_gcs90=.5*Math.PI/d.m_rpu,d.m_gcs180=Math.PI/d.m_rpu,d.m_gcs360=2*Math.PI/d.m_rpu,d.m_gcs60=d.m_gcs360/6,d.m_q90=m.M.q90(d.m_a,d.m_eSquared),d.m_ellipticToGeodesicMaxRatio=.5*d.m_a*Math.PI/d.m_q90;const x=d.m_gcs.getTolerance(0);d.m_radTolerance=x*d.m_rpu,4===n?(d.m_curveType=2,d.m_bShapePreserving=!0):(d.m_curveType=n,d.m_bShapePreserving=!1),d.m_distance=s,d.m_absDistance=Math.abs(s),Number.isNaN(o)||o<=0?d.setConvergenceOffset():d.m_convergenceOffset=Math.max(o,.001),d.m_convergenceOffset/=c;let b,y=_.getGeometryType();if((0,i.m)(y)){const e=new a.a({vd:_.getDescription()});e.addSegment(_,!0),b=e,y=i.G.enumPolyline}else if(y===i.G.enumEnvelope){const e=_,t=new r.Envelope2D;e.queryEnvelope(t);const n=(0,h.f)((0,h.c)(d.m_sr,p,!0));if(t.minDimension()<=n)if(0===t.maxDimension()){const t=new h.P({vd:_.getDescription()});e.getCenter(t),b=t,y=i.G.enumPoint}else{const t=new a.a({vd:_.getDescription()});t.addEnvelope(e,!1),b=t,y=i.G.enumPolyline}else{const t=new a.P({vd:_.getDescription()});t.addEnvelope(e,!1),b=t,y=i.G.enumPolygon}}else b=_;if(d.setMinCornerStep(),(0,i.j)(y)||d.setMinSegmentStep(),d.m_absDistance<=.5*d.m_convergenceOffset)return y!==i.G.enumPolygon?new a.P({vd:b.getDescription()}):d.m_bShapePreserving?b:(0,m.N)(b,d.m_sr,d.m_curveType,d.m_segmentStep,-1,l);if(d.m_distance<0&&y!==i.G.enumPolygon)return new a.P({vd:b.getDescription()});if(d.m_bShapePreserving&&(0,i.n)(y)){const e=(0,m.N)(b,t,4,Number.NaN,d.m_convergenceOffset,l);b=(new m.O).execute(e,d.m_transform,l)}else b=(new m.O).execute(b,d.m_transform,l);if(b=(0,m.Q)(b,d.m_gcs),b.isEmpty())return new a.P({vd:b.getDescription()});!d.m_bShapePreserving&&(0,i.n)(y)&&(b=(0,m.R)(d.m_rpu,b)),b=function(e,t){const n=e.getGeometryType();let s;if(s=(0,i.n)(n)?e.getPathCount():n===i.G.enumMultiPoint?e.getPointCount():1,1===s)return e;const m=[],o=[];for(let a=0;a<s;a++){m.push(a);const s=new u.P;if((0,i.n)(n)){const t=new r.Envelope2D;e.queryPathEnvelope(a,t),s.assign(t.getCenter())}else s.assign(e.getXY(a));const h=t.toGeohash(s);o.push(h)}m.sort((e,t)=>o[e]<o[t]?-1:o[e]>o[t]?1:0);const a=e.createInstance();for(let t=0;t<s;t++){const s=m[t];(0,i.n)(n)?a.addPath(e,s,!0):a.addPoints(e,s,s+1)}return a}(b,d.m_gcs);let S=new a.P;switch(y){case i.G.enumPolygon:S=d.bufferPolygon(b);break;case i.G.enumPolyline:S=d.bufferPolyline(b);break;case i.G.enumMultiPoint:S=d.bufferMultiPoint(b);break;case i.G.enumPoint:S=d.bufferPoint(b);break;default:(0,i.o)("")}const C=(new m.O).execute(S,d.m_transform.getInverse(),l);return C.mergeVertexDescription(b.getDescription()),C}function p(e,t,n,s,i,r,a,h,c,l,_){const f={stack:[],error:void 0,hasError:!1};try{const d=new u.P;d.setNAN(),c||_.getPointCount()>0&&(d.setCoordsPoint2D(_.getXY(_.getPointCount()-1)),d.scale(n));const g=(0,o.mS)(f,new m.Z,!1),P=(0,o.mS)(f,new u.S(new m.Z,new m.Z),!1),p=new u.P,x=new u.P,b=r.at(-1),S=1/n;for(let n=0;n<r.length;n++){const o=r[n];let u;0===n?u=a:n===r.length-1?u=h:(m._.geodeticDistance(e,t,b.x,b.y,o.x,o.y,null,null,g,i),u=g.val-.5*Math.PI),m._.geodesicCoordinate(e,t,o.x,o.y,s,u,P.at(0),P.at(1)),c?x.setCoords(P.at(0).val,P.at(1).val):(p.setCoords(P.at(0).val,P.at(1).val),l=y(o.x,p.x,d.x,l),x.setCoords(l+p.x,p.y),d.setCoordsPoint2D(x)),x.scale(S),_.insertPoint2D(0,-1,x)}return l}catch(e){f.error=e,f.hasError=!0}finally{(0,o.hk)(f)}}function x(e,t,n,s,i,r,a,h,c,l,_,f=Number.NaN,d=Number.NaN){const g={stack:[],error:void 0,hasError:!1};try{if(a-r<h)return l;const P=(0,o.mS)(g,new u.S(new m.Z,new m.Z),!1),p=new u.P,x=new u.P,b=new u.P;x.setNAN(),c||_.getPointCount()>0&&(x.setCoordsPoint2D(_.getXY(_.getPointCount()-1)),x.scale(n));let S=Math.ceil(r/h),C=S++*h;C===r&&(C=S++*h);let w=r;const v=1/n;for(;C<a+h&&(w<f&&f<C?(C=f,S--):w<d&&d<C&&(C=d,S--),!(C>=a));)m._.geodesicCoordinate(e,t,i.x,i.y,s,C,P.at(0),P.at(1)),c?b.setCoords(P.at(0).val,P.at(1).val):(p.setCoords(P.at(0).val,P.at(1).val),l=y(i.x,p.x,x.x,l),b.setCoords(l+p.x,p.y),x.setCoordsPoint2D(b)),b.scale(v),_.insertPoint2D(0,-1,b),w=C,C=S++*h;return l}catch(e){g.error=e,g.hasError=!0}finally{(0,o.hk)(g)}}function b(e,t,n,s,i,r,a,h,c,l,_){const f={stack:[],error:void 0,hasError:!1};try{const n=new u.P,d=new u.P,g=(0,o.mS)(f,new u.S(new m.Z,new m.Z),!1);m._.geodesicCoordinate(e,t,i.x,i.y,s,r,g.at(0),g.at(1)),n.setCoords(g.at(0).val,g.at(1).val),m._.geodesicCoordinate(e,t,i.x,i.y,s,a,g.at(0),g.at(1)),d.setCoords(g.at(0).val,g.at(1).val);const P=(0,o.mS)(f,new m.Z,!1);for(m._.geodeticDistance(e,t,h.x,h.y,n.x,n.y,null,P,null,0),l[0]=P.val,m._.geodeticDistance(e,t,h.x,h.y,d.x,d.y,null,P,null,0),_[0]=P.val;l[0]<=_[0];)l[0]+=u.n;for(;l[0]>_[0];)l[0]-=u.n;for(;l[0]>=c;)l[0]-=u.n,_[0]-=u.n;for(;l[0]<c;)l[0]+=u.n,_[0]+=u.n}catch(e){f.error=e,f.hasError=!0}finally{(0,o.hk)(f)}}function y(e,t,n,s){if(Number.isNaN(n)){for(;s+t-e>Math.PI;)s-=u.n;for(;e-(s+t)>Math.PI;)s+=u.n;return s}return s+t-n>Math.PI?s-=u.n:n-(s+t)>Math.PI&&(s+=u.n),s}function S(e,t,n,s,i,r){const a={stack:[],error:void 0,hasError:!1};try{if(s>=r)return!1;const h=n[0],c=n.at(-1),u=(0,o.mS)(a,new m.Z,!1),l=(0,o.mS)(a,new m.Z,!1),_=(0,o.mS)(a,new m.Z,!1);m._.greatEllipticDistance(e,t,i.x,i.y,h.x,h.y,u,null,null),m._.greatEllipticDistance(e,t,i.x,i.y,c.x,c.y,l,null,null),m._.greatEllipticDistance(e,t,h.x,h.y,c.x,c.y,_,null,null);let f=Math.min(u.val,l.val)+_.val,d=f+s;if(d<r)return!0;const g=(0,o.mS)(a,new m.Z,!1);f=Math.max(u.val,l.val);for(let s=1;s<n.length-1;s++){const r=n[s];m._.greatEllipticDistance(e,t,i.x,i.y,r.x,r.y,g,null,null),g.val>f&&(f=g.val)}return d=f+s,d<r}catch(e){a.error=e,a.hasError=!0}finally{(0,o.hk)(a)}}function C(e,t,n,s,i,r,o,a){let h;if(s.length%2==0){const e=s.length>>1,t=s[e],n=s[e-1];h=u.P.lerp(t,n,.5)}else h=s[s.length-1>>1].clone();const c=h.clone(),l=(0,m.a0)(e,t,c,75/180*Math.PI);return!!S(e,t,s,i,c,l)&&(null!==r&&(r.setCoordsPoint2D(h),r.scale(1/n)),null!==o&&o.setCoordsPoint2D(c),null!==a&&(a[0]=l),!0)}function w(e,t,n,s,i,r){const a={stack:[],error:void 0,hasError:!1};try{if(s>=r)return!1;const h=(0,o.mS)(a,new m.Z,!1);return m._.greatEllipticDistance(e,t,i.x,i.y,n.x,n.y,h,null,null),h.val+s<r}catch(e){a.error=e,a.hasError=!0}finally{(0,o.hk)(a)}}function v(e,t){return new m.a5(e,t)}function D(e){return(0,h.j)(e,0)||(0,h.s)(e,0),e}class I{m_bRunningInGnomonic=!1;m_bNeedsSimplify=!1;m_gnomonic=null;m_gnomonicCenterRad=new u.P;m_minGnomonicRadius=Number.NaN;m_progressTracker;constructor(e){this.m_progressTracker=e}isRunningInGnomonic(){return this.m_bRunningInGnomonic}needsSimplify(){return this.m_bNeedsSimplify}getGnomonic(){return this.m_gnomonic}}class G extends I{m_bufferer;m_multiPath;m_segIter=null;m_bNextSegmentCannotJoin=!1;m_currentDensifiedDelta=[0];m_currentBufferedDelta=0;m_lastAzimuth=0;m_startAzimuth=[0];m_endAzimuth=[0];m_numWinds=0;m_debugCounter=0;m_bufferHelper=new a.P;m_densifiedPoints=[];m_densified;constructor(e,t,n){super(e.m_progressTracker),this.m_bufferer=e,this.m_multiPath=t,this.m_densified=n,this.m_bNeedsSimplify=!0;const s=new r.Envelope2D;this.m_multiPath.queryEnvelope(s);const i=s.getCenter(),o=i.clone();o.scale(this.m_bufferer.m_rpu),this.m_gnomonic=v(this.m_bufferer.m_gcs,i),this.m_gnomonicCenterRad=o.clone(),this.m_minGnomonicRadius=(0,m.a0)(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,o,75/180*Math.PI)}next(){let e;if(this.m_bNextSegmentCannotJoin)return this.m_bNextSegmentCannotJoin=!1,this.m_segIter.nextSegment(),e=this.m_bufferHelper.clone(),e;if(null===this.m_segIter){if(this.m_segIter=this.m_multiPath.getImpl().querySegmentIterator(),!this.m_segIter.nextPath())return null;null!==this.m_densified&&this.m_densified.addPathPoint2D(null,0,!0)}if(!this.m_segIter.hasNextSegment()){if(!this.m_segIter.nextPath())return null;null!=this.m_densified&&this.m_densified.addPathPoint2D(null,0,!0)}let t=null;this.m_currentBufferedDelta=0,this.m_currentDensifiedDelta=[0],this.m_numWinds=0,this.m_lastAzimuth=Number.NaN,this.m_bNextSegmentCannotJoin=!1,this.m_densifiedPoints.length=0;let n=0;const s=new u.P,i=new u.P;for(;this.m_segIter.hasNextSegment()&&this.m_numWinds<16;){const e=this.m_segIter.nextSegment();if(s.setCoordsPoint2D(e.getStartXY()),i.setCoordsPoint2D(e.getEndXY()),s.scale(this.m_bufferer.m_rpu),i.scale(this.m_bufferer.m_rpu),(0,m.a1)(s,i))s.x=i.x;else if((0,m.a2)(s,i))i.x=s.x;else{let e=-1,t=-1;const n=this.m_segIter.getPathIndex(),r=this.m_multiPath.getPathStart(n),o=this.m_multiPath.getPathEnd(n);if(e=this.m_segIter.getStartPointIndex()-1,t=this.m_segIter.getEndPointIndex()+1,e<r&&(e=this.m_multiPath.isClosedPath(n)?o-1:-1),t>o-1&&(t=this.m_multiPath.isClosedPath(n)?r:-1),-1!==e){const t=this.m_multiPath.getXY(e);t.scale(this.m_bufferer.m_rpu),(0,m.a2)(t,s)&&(s.x=t.x)}if(-1!==t){const e=this.m_multiPath.getXY(t);e.scale(this.m_bufferer.m_rpu),(0,m.a1)(i,e)&&(i.x=e.x)}}this.m_densifiedPoints.length=0;const r=(0,m.a3)(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,this.m_bufferer.m_curveType,s,i,this.m_bufferer.m_segmentStep,Number.NaN,this.m_bufferer.m_radTolerance,this.m_startAzimuth,this.m_endAzimuth,this.m_densifiedPoints,this.m_currentDensifiedDelta);if(0===n)this.m_bRunningInGnomonic=this.isSegmentBufferInCurrentGnomonic(this.m_densifiedPoints),this.m_bRunningInGnomonic||(this.m_bRunningInGnomonic=this.tryUpdateGnomonic(this.m_densifiedPoints));else if(this.m_bRunningInGnomonic){if(!this.isSegmentBufferInCurrentGnomonic(this.m_densifiedPoints)){this.m_segIter.previousSegment(),this.m_segIter.previousSegment(),this.m_segIter.nextSegment();break}}else if(C(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,this.m_bufferer.m_rpu,this.m_densifiedPoints,this.m_bufferer.m_absDistance*this.m_bufferer.m_ellipticToGeodesicMaxRatio,null,null,null)){this.m_segIter.previousSegment(),this.m_segIter.previousSegment(),this.m_segIter.nextSegment();break}if(0===r||(0,m.a4)(s,i)?(this.m_bufferHelper.setEmpty(),this.m_bufferer.bufferPoint2D(s,this.m_bRunningInGnomonic,this.m_bufferHelper),this.m_bNextSegmentCannotJoin=!0):(this.m_bufferHelper.setEmpty(),this.m_bNextSegmentCannotJoin=this.checkAndPrepSegmentForCrossingAzimuthsOrPoleWrap(r,this.m_bufferHelper)),this.m_bNextSegmentCannotJoin){this.m_segIter.previousSegment(),this.m_segIter.hasPreviousSegment()?(this.m_segIter.previousSegment(),this.m_segIter.nextSegment()):this.m_segIter.resetToFirstSegment(),null!=this.m_densified&&this.m_densified.insertPointsFromPoints(this.m_densified.getPathCount()-1,-1,this.m_densifiedPoints,0,this.m_densifiedPoints.length-1,!0);break}null!=this.m_densified&&this.m_densified.insertPointsFromPoints(this.m_densified.getPathCount()-1,-1,this.m_densifiedPoints,0,this.m_densifiedPoints.length-1,!0),null===t&&(t=new a.P,t.addPathPoint2D(null,0,!0)),this.addJoinAndBufferLeftSide(t),n++}if(this.m_currentDensifiedDelta=[0],n>0){const e=this.m_segIter.getStartPointIndex(),r=this.m_segIter.getPathIndex();for(;n>0;){if(this.m_segIter.previousSegment(),s.setCoordsPoint2D(this.m_multiPath.getXY(this.m_segIter.getStartPointIndex())),i.setCoordsPoint2D(this.m_multiPath.getXY(this.m_segIter.getEndPointIndex())),s.scale(this.m_bufferer.m_rpu),i.scale(this.m_bufferer.m_rpu),this.m_bRunningInGnomonic)if((0,m.a1)(s,i))s.x=i.x;else if((0,m.a2)(s,i))i.x=s.x;else{let e=-1,t=-1;const n=this.m_segIter.getPathIndex(),r=this.m_multiPath.getPathStart(n),o=this.m_multiPath.getPathEnd(n);if(e=this.m_segIter.getStartPointIndex()-1,t=this.m_segIter.getEndPointIndex()+1,e<r&&(e=this.m_multiPath.isClosedPath(n)?o-1:-1),t>o-1&&(t=this.m_multiPath.isClosedPath(n)?r:-1),-1!==e){const t=this.m_multiPath.getXY(e);t.scale(this.m_bufferer.m_rpu),(0,m.a2)(t,s)&&(s.x=t.x)}if(-1!==t){const e=this.m_multiPath.getXY(t);e.scale(this.m_bufferer.m_rpu),(0,m.a1)(i,e)&&(i.x=e.x)}}this.m_densifiedPoints.length=0,(0,m.a3)(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,this.m_bufferer.m_curveType,i,s,this.m_bufferer.m_segmentStep,Number.NaN,this.m_bufferer.m_radTolerance,this.m_startAzimuth,this.m_endAzimuth,this.m_densifiedPoints,this.m_currentDensifiedDelta),this.addJoinAndBufferLeftSide(t),n--}return s.setCoordsPoint2D(this.m_multiPath.getXY(this.m_segIter.getStartPointIndex())),s.scale(this.m_bufferer.m_rpu),this.m_currentBufferedDelta=x(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,this.m_bufferer.m_rpu,this.m_bufferer.m_absDistance,s,this.m_lastAzimuth+.5*Math.PI,this.m_lastAzimuth+1.5*Math.PI,this.m_bufferer.m_cornerStep,this.m_bRunningInGnomonic,this.m_currentBufferedDelta,t),this.m_segIter.resetToVertex(e,r),this.m_segIter.nextSegment(),t}return this.m_bNextSegmentCannotJoin=!1,this.m_segIter.nextSegment(),e=this.m_bufferHelper.clone(),e}isSegmentBufferInCurrentGnomonic(e){return null!==this.m_gnomonic&&S(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,e,this.m_bufferer.m_absDistance*this.m_bufferer.m_ellipticToGeodesicMaxRatio,this.m_gnomonicCenterRad,this.m_minGnomonicRadius)}tryUpdateGnomonic(e){const t=new u.P,n=new u.P,s=[0];return C(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,this.m_bufferer.m_rpu,e,this.m_bufferer.m_absDistance*this.m_bufferer.m_ellipticToGeodesicMaxRatio,t,n,s)?(this.m_gnomonicCenterRad.setCoordsPoint2D(n),this.m_minGnomonicRadius=s[0],this.m_gnomonic=v(this.m_bufferer.m_gcs,t),!0):(this.m_gnomonic=null,!1)}checkAndPrepSegmentForCrossingAzimuthsOrPoleWrap(e,t){return this.m_bufferer.checkAndPrepSegmentForCrossingAzimuthsOrPoleWrap(this.m_densifiedPoints,e,this.m_startAzimuth[0],this.m_endAzimuth[0],this.m_bRunningInGnomonic,t)}addJoinAndBufferLeftSide(e){const t=this.m_densifiedPoints[0];let n=Number.NaN,s=this.m_startAzimuth[0]-u.l;const i=this.m_endAzimuth[0]+u.l;let r=!1;if(!Number.isNaN(this.m_lastAzimuth)){this.m_lastAzimuth>=this.m_startAzimuth[0]?(n=this.m_lastAzimuth+u.l,s=n+Math.PI-(this.m_lastAzimuth-this.m_startAzimuth[0])):(n=this.m_lastAzimuth+u.l,s=n+Math.PI-(u.n-(this.m_startAzimuth[0]-this.m_lastAzimuth))),r=!(this.m_lastAzimuth>=this.m_startAzimuth[0]&&this.m_lastAzimuth-this.m_startAzimuth[0]<=Math.PI||this.m_lastAzimuth<this.m_startAzimuth[0]&&this.m_startAzimuth[0]-this.m_lastAzimuth>=Math.PI);let i=!1;if(Math.abs(s-n)<=.5*this.m_bufferer.m_cornerStep&&(r||(i=!0)),i){if(e.removePointFromPath(0,e.getPointCount()-1),!this.m_bRunningInGnomonic){const t=new u.P;t.setCoordsPoint2D(e.getXY(e.getPointCount()-1)),t.scale(this.m_bufferer.m_rpu),t.x-this.m_currentBufferedDelta<-Math.PI?this.m_currentBufferedDelta-=u.n:t.x-this.m_currentBufferedDelta>Math.PI&&(this.m_currentBufferedDelta+=u.n)}s=.5*(s+n)}else if(r){const n=new u.P;n.setCoordsPoint2D(t),n.scale(1/this.m_bufferer.m_rpu),e.insertPoint2D(0,-1,n)}else x(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,this.m_bufferer.m_rpu,this.m_bufferer.m_absDistance,this.m_densifiedPoints[0],n,s,this.m_bufferer.m_cornerStep,this.m_bRunningInGnomonic,this.m_currentBufferedDelta,e)}this.m_startAzimuth[0]!==this.m_lastAzimuth&&this.m_numWinds++,p(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,this.m_bufferer.m_rpu,this.m_bufferer.m_absDistance,this.m_bufferer.m_curveType,this.m_densifiedPoints,s,i,this.m_bRunningInGnomonic,this.m_currentBufferedDelta,e),this.m_lastAzimuth=this.m_endAzimuth[0]}}class T extends I{m_bufferer;m_multiPoint;m_pointIndex=-1;constructor(e,t){super(e.m_progressTracker),this.m_bufferer=e,this.m_multiPoint=t,this.m_bNeedsSimplify=!1;const n=new r.Envelope2D;this.m_multiPoint.queryEnvelope(n);const s=n.getCenter(),i=s.clone();i.scale(this.m_bufferer.m_rpu),this.m_gnomonic=v(this.m_bufferer.m_gcs,s),this.m_gnomonicCenterRad=i.clone(),this.m_minGnomonicRadius=(0,m.a0)(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,i,75/180*Math.PI)}next(){if(this.m_bNeedsSimplify=!1,++this.m_pointIndex===this.m_multiPoint.getPointCount())return null;const e=this.m_multiPoint.getXY(this.m_pointIndex);e.scale(this.m_bufferer.m_rpu),this.m_bRunningInGnomonic=this.isPointBufferInCurrentGnomonic(e),this.m_bRunningInGnomonic||(this.m_bRunningInGnomonic=this.tryUpdateGnomonic(e));const t=new a.P,n=this.m_bufferer.bufferPoint2D(e,this.m_bRunningInGnomonic,t);return this.m_bNeedsSimplify=n,t}isPointBufferInCurrentGnomonic(e){return null!==this.m_gnomonic&&w(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,e,this.m_bufferer.m_absDistance*this.m_bufferer.m_ellipticToGeodesicMaxRatio,this.m_gnomonicCenterRad,this.m_minGnomonicRadius)}tryUpdateGnomonic(e){const t=new u.P,n=new u.P,s=[0];return function(e,t,n,s,i,r,o,a){const h=(0,m.a0)(e,t,s,75/180*Math.PI);return!!w(e,t,s,i,s,h)&&(null!==r&&(r.setCoordsPoint2D(s),r.scale(1/n)),null!==o&&o.setCoordsPoint2D(s),null!==a&&(a[0]=h),!0)}(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,this.m_bufferer.m_rpu,e,this.m_bufferer.m_absDistance*this.m_bufferer.m_ellipticToGeodesicMaxRatio,t,n,s)?(this.m_gnomonicCenterRad.setCoordsPoint2D(n),this.m_minGnomonicRadius=s[0],this.m_gnomonic=v(this.m_bufferer.m_gcs,t),!0):(this.m_gnomonic=null,!1)}}class k{getOperatorType(){return 10110}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,n,s,i,r,o,a){if(o){const o=new M(e,t,n,s,i,!1,r,a);return(new m.t).executeMany(o,t,a)}return new M(e,t,n,s,i,!1,r,a)}execute(e,t,n,s,r,m,o){const a=new d.S([e]),h=[s],c=this.executeMany(a,t,n,h,r,!1,m,o).next();return c||(0,i.d)("geodesic buffer null output"),c}}class M extends s.G{m_inputGeoms;m_spatialReference;m_curveType;m_progressTracker;m_distances;m_convergenceOffset;m_currentUnionEnvelope2D=new r.Envelope2D;m_bOutlineOnly;m_bUnion;m_index=-1;m_dindex=-1;constructor(e,t,n,s,r,m,o,a){super(),this.m_progressTracker=a,m&&(0,i.t)(""),t||(0,i.a)(""),0===t.getCoordinateSystemType()&&(0,i.a)(""),this.m_inputGeoms=e,this.m_spatialReference=t,this.m_curveType=n,this.m_distances=s,this.m_convergenceOffset=r,this.m_bOutlineOnly=m,this.m_bUnion=o}next(){let e;for(;e=this.m_inputGeoms.next();)return(0,i.c)(e),this.m_index=this.m_inputGeoms.getGeometryID(),this.m_dindex+1<this.m_distances.length&&this.m_dindex++,this.geodesicBuffer(e,this.m_distances[this.m_dindex]);return null}getGeometryID(){return this.m_index}tock(){return!0}getRank(){return 1}geodesicBuffer(e,t){return function(e,t,n,s,r,m){s<Number.MAX_VALUE&&s>-Number.MAX_VALUE||(0,i.a)("Geodesic_bufferer.buffer - bad distance"),(0,i.c)(e);const o=(0,_.c)(e),a=o.getGeometryType();if((0,i.i)(a)){const e=o.getPointCount(),h=8e6;if(Math.abs(s)>h&&(e>50||a!==i.G.enumMultiPoint&&4===n&&e>2)){let e=o;const i=s>0?1:-1,a=7e6;let c=s,u=1;do{u++,c=(Math.abs(c)-a)*i}while(Math.abs(c)>h);c=s;for(let s=0;s<u-1;s++)e=P(e,t,n,a*i,r,u,m),c=(Math.abs(c)-a)*i;return e=P(e,t,n,c,r,u,m),e}}return P(o,t,n,s,r,1,m)}(e,this.m_spatialReference,this.m_curveType,t,this.m_convergenceOffset,this.m_progressTracker)}}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7444],{70007(e,t,n){n.d(t,{c:()=>i});var s=n(55537);function i(e,t){const n=e.getGeometryType();return n===s.G.enumPoint?e:(0,s.j)(n)?function(e){if(function(e){for(let t=0,n=e.getPathCount();t<n;t++){const n=e.getPathSize(t);if(0===n)return!1;if(1===n){if(0===e.getSegmentCountPath(t))return!1;if(e.getSegmentType(e.getPathStart(t))===s.G.enumLine)return!1;if(!e.isClosedPath(t))return!1}}return!0}(e))return e;const t=e.createInstance();for(let n=0,i=e.getPathCount();n<i;n++){const i=e.getPathSize(n);if(0!==i){if(1===i){if(0===e.getSegmentCountPath(n))continue;if(e.getSegmentType(e.getPathStart(n))===s.G.enumLine)continue;if(!e.isClosedPath(n))continue}t.addPath(e,n,!0)}}return t}(e):n===s.G.enumMultiPoint||n===s.G.enumEnvelope?e:n===s.G.enumMultipatch?((0,s.t)("not implemented for multipatch"),e):e}},37444(e,t,n){n.r(t),n.d(t,{OperatorGeodesicBuffer:()=>k});var s=n(61691),i=n(55537),r=n(79187),m=n(15756),o=n(5482),a=n(88885),h=n(95213),c=n(11878),u=n(83661),l=n(31139),_=n(70007),f=n(5247),d=n(76061);class g{m_sr=null;m_gcs=null;m_transform=null;m_progressTracker;m_a=0;m_eSquared=0;m_rpu=0;m_radTolerance=0;m_q90=0;m_gcs90=0;m_gcs180=0;m_gcs360=0;m_gcs60=0;m_ellipticToGeodesicMaxRatio=0;m_curveType=0;m_bShapePreserving=!1;m_distance=0;m_absDistance=0;m_convergenceOffset=0;m_cornerStep=0;m_segmentStep=0;constructor(e){this.m_progressTracker=e}bufferPolygon(e){const t=new a.P,n=new G(this,e,t);return this.processGnomonicBufferPiecesCursor(!0,n)}bufferPolyline(e){const t=new G(this,e,null);return this.processGnomonicBufferPiecesCursor(!0,t)}bufferMultiPoint(e){const t=new T(this,e);return this.processGnomonicBufferPiecesCursor(!1,t)}bufferPoint(e){const t=e.getXY();t.scale(this.m_rpu);let n=new a.P;if(this.bufferPoint2D(t,!1,n)){const e=(0,h.e)(null,n,!0);n=(0,m.H)(n,e,!0,!0,-1,this.m_progressTracker,0,!1)}return n=(new m.O).foldInto360RangeGeodetic(n,this.m_gcs,2),n}processGnomonicBufferPiecesCursor(e,t){const n=t;let s=n.getGnomonic();const i=(0,m.S)((0,m.U)());let o=new m.V,a=(new m.z).executeMany(o,i,this.m_progressTracker,2);const l=(0,u.d)(6,!1),_=(0,u.m)(r.Envelope2D,6);this.initializeGrid(l,_);const f=[null,null,null,null,null,null],d=[null,null,null,null,null,null],g=[null,null,null,null,null,null];let P,p,x;for(;null!==(P=n.next());){if(p=n.getGnomonic(),p!==s){if(null!==s){let t=a.next();if(o=null,a=null,null!=t){const n=(0,h.e)(i,t,!0),r=(0,h.f)(n);t=s.unproject(t,r,this.m_progressTracker),this.putInGridCursors(e,t,i,!0,l,_,f,d,g)}}null!==p&&(o=new m.V,a=(new m.z).executeMany(o,i,this.m_progressTracker,2)),s=p}if(n.isRunningInGnomonic()){if(p.project(P),n.needsSimplify()){const e=(0,h.e)(null,P,!0);P=(0,m.H)(P,e,!0,!0,-1,this.m_progressTracker,0,!1)}o.tick(D(P)),a.tock()}else this.putInGridCursors(e,P,i,!0,l,_,f,d,g)}let b=!1;for(let e=0;e<6;e++)if(null!=g[e]){b=!0;break}if(b){let t=!1;const r=[null,null,null,null,null,null];if(e){const s=n.m_densified;if(n.m_densified=null,null!==s){const n=new c.T;n.scale(1/this.m_rpu,1/this.m_rpu),s.applyTransformation(n),this.m_distance>0?this.putInGridCursors(e,s,i,!1,l,_,f,d,g):(this.processInGrid(e,s,!1,l,_,f,r),t=!0)}}const u=new m.V,P=(new m.z).executeMany(u,this.m_gcs,this.m_progressTracker,2);if(null!==a){let t=a.next();o=null,a=null;const n=(0,h.e)(i,t,!0),r=(0,h.f)(n);t=s.unproject(t,r,this.m_progressTracker),this.putInGridCursors(e,t,i,!0,l,_,f,d,g)}for(let e=0;e<6;e++)if(null!=g[e]){let n=g[e].next();g[e]=null,d[e]=null,t&&null!==r[e]&&(n=(new m.x).execute(r[e],n,i,this.m_progressTracker));const s=(0,h.e)(i,n,!0),o=(0,h.f)(s);n=f[e].unproject(n,o,this.m_progressTracker),n=(new m.f).execute(n,this.m_gcs,!0,this.m_progressTracker),u.tick(D(n)),P.tock()}x=P.next()}else{let t,r=!1;if(e){let e=n.m_densified;if(n.m_densified=null,null!==e){const n=new c.T;n.scale(1/this.m_rpu,1/this.m_rpu),e.applyTransformation(n),p.project(e);const s=(0,h.e)(null,e,!0);e=(0,m.H)(e,s,!1,!0,-1,this.m_progressTracker,0,!1),this.m_distance>0?(o.tick(D(e)),a.tock()):(t=e,r=!0)}}let u=a.next();o=null,a=null,r&&(u=(new m.x).execute(t,u,i,this.m_progressTracker));const l=(0,h.e)(i,u,!0),_=(0,h.f)(l);x=s.unproject(u,_,this.m_progressTracker),x=(new m.f).execute(x,this.m_gcs,!0,this.m_progressTracker)}return x=(new m.O).foldInto360RangeGeodetic(x,this.m_gcs,2),x}putInGridCursors(e,t,n,s,i,r,o,a,h){const c=[null,null,null,null,null,null];this.processInGrid(e,t,s,i,r,o,c);for(let e=0;e<6;e++)null!==c[e]&&(null===a[e]&&(a[e]=new m.V,h[e]=(new m.z).executeMany(a[e],n,this.m_progressTracker,2)),a[e].tick(D(c[e])),h[e].tock())}processInGrid(e,t,n,s,i,r,o){const a=.01,c=this.insertGeodeticPointsAlongGrid(t,i,a);for(let e=0;e<6;e++){if(s[e])continue;const _=i[e].clone();_.inflateCoords(a,a);const f=(0,h.h)(t,_),d=(0,h.c)(null,f,!1).total();let g=(0,l.c)(c,_,d,Number.NaN,this.m_progressTracker);if(null!==g&&!g.isEmpty()){if(g===c&&(g=g.clone()),null===r[e]){const t=new u.P;e<3?t.setCoords(0,1):t.setCoords(0,-1);const n=new u.P;n.setAdd(i[e].getCenter(),t),r[e]=v(this.m_gcs,n)}r[e].project(g);const t=(0,h.e)(null,g,!0);g=(0,m.H)(g,t,n,!0,-1,this.m_progressTracker,0,!1),o[e]=g}}}insertGeodeticPointsAlongGrid(e,t,n){const s=r.Envelope2D.construct(t[3].xmin,t[3].ymin,t[2].xmax,t[2].ymax),i=(0,m.W)(this.m_gcs,s,e,!0,this.m_progressTracker),o=new a.E,h=o.addGeometry(i);return(0,m.X)(o,h,this.m_gcs,0,2,!0,t[0].xmax+n),(0,m.X)(o,h,this.m_gcs,0,2,!0,t[1].xmax+n),(0,m.X)(o,h,this.m_gcs,0,2,!1,t[1].ymin+n),0!==n&&((0,m.X)(o,h,this.m_gcs,0,2,!0,t[0].xmax-n),(0,m.X)(o,h,this.m_gcs,0,2,!0,t[1].xmax-n),(0,m.X)(o,h,this.m_gcs,0,2,!1,t[1].ymin-n)),o.getGeometry(h)}initializeGrid(e,t){for(let t=0;t<6;t++)e[t]=!1;t[0].setCoords({xmin:-this.m_gcs180,ymin:0,xmax:-this.m_gcs60,ymax:this.m_gcs90}),t[1].setCoords({xmin:-this.m_gcs60,ymin:0,xmax:this.m_gcs60,ymax:this.m_gcs90}),t[2].setCoords({xmin:this.m_gcs60,ymin:0,xmax:this.m_gcs180,ymax:this.m_gcs90}),t[3].setCoords({xmin:-this.m_gcs180,ymin:-this.m_gcs90,xmax:-this.m_gcs60,ymax:0}),t[4].setCoords({xmin:-this.m_gcs60,ymin:-this.m_gcs90,xmax:this.m_gcs60,ymax:0}),t[5].setCoords({xmin:this.m_gcs60,ymin:-this.m_gcs90,xmax:this.m_gcs180,ymax:0})}checkAndPrepSegmentForCrossingAzimuthsOrPoleWrap(e,t,n,s,i,r){const o=e[0],a=e.at(-1),h=o.y<a.y?o.y:a.y,c=o.y>a.y?o.y:a.y,l=m.M.q(this.m_a,this.m_eSquared,h),_=m.M.q(this.m_a,this.m_eSquared,c);if(this.m_q90-(l+t+this.m_absDistance)>.001&&this.m_q90+(_-t-this.m_absDistance)>.001)return!1;const f=n-u.l,d=s+u.l,g=f-Math.PI,P=f+Math.PI,y=d+Math.PI,S=[Number.NaN],C=[Number.NaN],w=[Number.NaN],v=[Number.NaN];let D=!1;if(b(this.m_a,this.m_eSquared,this.m_rpu,this.m_absDistance,o,f,g,a,d,S,C),b(this.m_a,this.m_eSquared,this.m_rpu,this.m_absDistance,a,y,d,o,g,w,v),(d<S[0]&&S[0]<y||d<C[0]&&C[0]<y)&&(D=!0),D||(g<w[0]&&w[0]<f||g<v[0]&&v[0]<f)&&(D=!0),!D&&i)return!1;const I=[];for(let t=e.length-1;t>=0;t--)I.push(e[t]);r.setEmpty(),r.addPathPoint2D(null,0,!0);let G=0;G=p(this.m_a,this.m_eSquared,this.m_rpu,this.m_absDistance,this.m_curveType,e,f,d,i,G,r),G=x(this.m_a,this.m_eSquared,this.m_rpu,this.m_absDistance,a,d,y,this.m_cornerStep,i,G,r,S[0],C[0]),G=p(this.m_a,this.m_eSquared,this.m_rpu,this.m_absDistance,this.m_curveType,I,y,P,i,G,r),G=x(this.m_a,this.m_eSquared,this.m_rpu,this.m_absDistance,o,g,f,this.m_cornerStep,i,G,r,w[0],v[0]);let T=!1;return i||(T=this.checkAndPrepForPole(r)),D||T}bufferPoint2D(e,t,n){n.setEmpty(),n.addPathPoint2D(null,0,!0),x(this.m_a,this.m_eSquared,this.m_rpu,this.m_absDistance,e,-this.m_cornerStep,2*Math.PI,this.m_cornerStep,t,0,n);let s=!1;return t||(s=this.checkAndPrepForPole(n)),s}checkAndPrepForPole(e){const t=this.checkAndPrepForPoleTouch(e),n=this.checkAndPrepForPoleWrap(e);return t||n}checkAndPrepForPoleTouch(e){const t=new r.Envelope2D;return e.queryEnvelope(t),!(!(0,m.Y)(t.ymax,this.m_gcs90)&&!(0,m.Y)(t.ymin,-this.m_gcs90)||(this.prepPoleTouch(e),0))}checkAndPrepForPoleWrap(e){const t=e.getXY(0),n=e.getXY(e.getPointCount()-1);return Math.abs(t.x-n.x)>this.m_gcs180?(this.prepSinglePoleWrap(e),!0):this.checkAndPrepForDoublePoleWrap(e)}checkAndPrepForDoublePoleWrap(e){return e.calculateArea2D()<0&&(this.prepDoublePoleWrap(e),!0)}prepPoleTouch(e){const t=new a.P;t.insertPath2D(-1,null,0,0,!0);const n=e.getPathStart(0),s=e.getPathEnd(0),i=s-n;let r=-1;for(r=n;r<s;r++){const t=e.getXY(r),n=(0,m.Y)(t.y,this.m_gcs90),s=(0,m.Y)(t.y,-this.m_gcs90);if(!n&&!s)break}let o=r,h=!1,c=Number.NaN;do{const s=e.getXY(o),r=(0,m.Y)(s.y,this.m_gcs90),a=(0,m.Y)(s.y,-this.m_gcs90),l=n+(o+1-n)%i;if(r||a){let n=u.P.construct(c,s.y);t.insertPoint2D(0,-1,n);const i=e.getXY(l),r=(0,m.Y)(i.y,this.m_gcs90),o=(0,m.Y)(i.y,-this.m_gcs90);r||o||(n=u.P.construct(i.x,s.y),h?t.setXY(t.getPointCount()-1,n):t.insertPoint2D(0,-1,n)),h=!0}else t.insertPoint2D(0,-1,s),c=s.x,h=!1;o=l}while(o!==r);e.setEmpty(),e.add(t,!1)}prepSinglePoleWrap(e){const t=new a.P,n=new a.P,s=new c.T,i=e.getXY(e.getPathStart(0)),o=e.getXY(e.getPathEnd(0)-1),_=this.m_gcs360,f=this.m_gcs180,d=new r.Envelope2D;d.setCoords({xmin:-this.m_gcs180,ymin:-this.m_gcs90,xmax:this.m_gcs180,ymax:this.m_gcs90});const g=new r.Envelope2D;e.queryEnvelope(g);const P=Math.ceil(g.width()/_);let p,x;i.x>o.x?(p=-_,x=this.m_gcs90):(p=_,x=-this.m_gcs90),s.setShiftCoords(p,0),t.addPath(e,0,!0),n.add(t,!1);const b=new h.P;for(let e=0;e<P;e++)n.applyTransformation(s),n.getPointByVal(0,b),t.lineToPoint(b),t.addSegmentsFromPath(n,0,0,n.getSegmentCount()-1,!1);const y=t.getXY(0),S=t.getXY(t.getPointCount()-1);y.y=x,S.y=x,t.lineTo(S);const C=new u.P;for(C.setCoordsPoint2D(S),C.x-=.5*p;Math.abs(C.x-y.x)>f;)t.lineTo(C),C.x-=.5*p;t.lineTo(y);const w=d.getCenterX(),v=new r.Envelope2D;t.queryEnvelope(v);let D=0;const I=v.getCenter().x;I-w>f?D=-Math.ceil((I-w-f)/_):w-I>f&&(D=Math.ceil((w-I-f)/_)),0!==D&&(s.setShiftCoords(D*_,0),t.applyTransformation(s));const G=new a.E,T=G.addGeometry(t);(0,m.X)(G,T,this.m_gcs,0,2,!0,d.xmin),(0,m.X)(G,T,this.m_gcs,0,2,!0,d.xmax);const k=G.getGeometry(T),M=(0,h.h)(k,d);M.inflateCoords(0,1);const N=(0,h.c)(null,M,!0).total(),E=(0,l.c)(k,d,N,Number.NaN,this.m_progressTracker);e.setEmpty(),e.add(E,!1)}prepDoublePoleWrap(e){const t=this.m_gcs360,n=this.m_gcs180,s=new r.Envelope2D;s.setCoords({xmin:-this.m_gcs180,ymin:-this.m_gcs90,xmax:this.m_gcs180,ymax:this.m_gcs90});const i=s.getCenter().x,o=new r.Envelope2D;e.queryPathEnvelope(0,o);let _,f=0,d=o.getCenter().x;if(d-i>n?f=-Math.ceil((d-i-n)/t):i-d>n&&(f=Math.ceil((i-d-n)/t)),0!==f){const n=new c.T;n.setShiftCoords(f*t,0),e.getImpl().applyTransformationToPath(n,0),e.queryPathEnvelope(0,o),d=o.getCenter().x}const g=new r.Envelope2D;s.containsExclusiveEnvelope(o)?(_=!1,g.setCoords({env2D:s})):(_=!0,g.setCoords({env2D:s}),g.xmin-=t,g.xmax+=t);let P=e.createInstance();P.addPathPoint2D(null,0,!0);const p=new u.P;if(p.setCoords(g.xmin,g.ymin),P.insertPoint2D(0,-1,p),p.setCoords(g.xmin,g.ymax),P.insertPoint2D(0,-1,p),p.setCoords(.5*(g.xmin+g.xmax),g.ymax),P.insertPoint2D(0,-1,p),p.setCoords(g.xmax,g.ymax),P.insertPoint2D(0,-1,p),p.setCoords(g.xmax,g.ymin),P.insertPoint2D(0,-1,p),p.setCoords(.5*(g.xmin+g.xmax),g.ymin),P.insertPoint2D(0,-1,p),_){P.addPath(e,0,!0);const n=new c.T;d<i?n.setShiftCoords(t,0):n.setShiftCoords(-t,0),e.getImpl().applyTransformationToPath(n,0),P.addPath(e,0,!0);const r=new a.E,o=r.addGeometry(P);(0,m.X)(r,o,this.m_gcs,0,2,!0,s.xmin),(0,m.X)(r,o,this.m_gcs,0,2,!0,s.xmax),P=r.getGeometry(o);const u=(0,h.h)(P,s);u.inflateCoords(0,1);const _=(0,h.c)(null,u,!0).total();P=(0,l.c)(P,s,_,Number.NaN,this.m_progressTracker)}else P.addPath(e,0,!0);e.setEmpty(),e.add(P,!1)}setMinCornerStep(){const e={stack:[],error:void 0,hasError:!1};try{let t=Math.min(Math.PI*this.m_a-this.m_absDistance,this.m_absDistance);t=Math.min(t,.125*this.m_a*Math.PI);const n=new u.P;n.setCoords(0,10*this.m_rpu);const s=0;let i=45*this.m_rpu;const r=(0,o.mS)(e,new u.S(new m.Z,new m.Z),!1),a=(0,o.mS)(e,new u.S(new m.Z,new m.Z),!1),h=(0,o.mS)(e,new u.S(new m.Z,new m.Z),!1),c=(0,o.mS)(e,new u.S(new m.Z,new m.Z),!1),l=new u.P,_=new u.P,f=new u.P,d=new u.P;for(m._.geodesicCoordinate(this.m_a,this.m_eSquared,n.x,n.y,t,s,r.at(0),r.at(1)),l.setCoords(r.at(0).val,r.at(1).val),m._.geodesicCoordinate(this.m_a,this.m_eSquared,n.x,n.y,t,i,a.at(0),a.at(1)),_.setCoords(a.at(0).val,a.at(1).val);;){const e={stack:[],error:void 0,hasError:!1};try{const r=.5*(s+i);m._.geodesicCoordinate(this.m_a,this.m_eSquared,n.x,n.y,t,r,h.at(0),h.at(1)),f.setCoords(h.at(0).val,h.at(1).val);const u=(0,o.mS)(e,new m.Z,!1),g=(0,o.mS)(e,new m.Z,!1);m._.geodeticDistance(this.m_a,this.m_eSquared,l.x,l.y,_.x,_.y,u,g,null,2),m._.geodeticCoordinate(this.m_a,this.m_eSquared,l.x,l.y,.5*u.val,g.val,c.at(0),c.at(1),2),d.setCoords(c.at(0).val,c.at(1).val);const P=(0,o.mS)(e,new m.Z,!1);if(m._.geodeticDistance(this.m_a,this.m_eSquared,f.x,f.y,d.x,d.y,P,null,null,2),P.val<=this.m_convergenceOffset)break;i*=.9,m._.geodesicCoordinate(this.m_a,this.m_eSquared,n.x,n.y,t,i,a.at(0),a.at(1)),_.setCoords(a.at(0).val,a.at(1).val)}catch(t){e.error=t,e.hasError=!0}finally{(0,o.hk)(e)}}const g=i-s,P=2*Math.PI/Math.ceil(2*Math.PI/g);this.m_cornerStep=P}catch(t){e.error=t,e.hasError=!0}finally{(0,o.hk)(e)}}setMinSegmentStep(){const e={stack:[],error:void 0,hasError:!1};try{let t=Math.min(Math.PI*this.m_a-this.m_absDistance,this.m_absDistance);t=Math.min(t,.125*this.m_a*Math.PI);const n=new u.P,s=new u.P;n.setCoords(0,10*this.m_rpu),s.setCoords(10*this.m_rpu,10*this.m_rpu);const i=(0,o.mS)(e,new m.Z,!1),r=(0,o.mS)(e,new m.Z,!1),a=(0,o.mS)(e,new m.Z,!1);m._.geodeticDistance(this.m_a,this.m_eSquared,n.x,n.y,s.x,s.y,a,i,r,this.m_curveType);const h=(0,o.mS)(e,new u.S(new m.Z,new m.Z),!1),c=(0,o.mS)(e,new u.S(new m.Z,new m.Z),!1),l=new u.P,_=(0,o.mS)(e,new m.Z,!1),f=(0,o.mS)(e,new u.S(new m.Z,new m.Z),!1),d=(0,o.mS)(e,new u.S(new m.Z,new m.Z),!1),g=(0,o.mS)(e,new u.S(new m.Z,new m.Z),!1),P=(0,o.mS)(e,new u.S(new m.Z,new m.Z),!1),p=new u.P,x=new u.P,b=new u.P,y=new u.P,S=0;let C=1;const w=i.val,v=r.val,D=w-.5*Math.PI,I=v+.5*Math.PI,G=a.val;for(m._.geodesicCoordinate(this.m_a,this.m_eSquared,n.x,n.y,t,D,f.at(0),f.at(1)),p.setCoords(f.at(0).val,f.at(1).val),m._.geodesicCoordinate(this.m_a,this.m_eSquared,s.x,s.y,t,I,d.at(0),d.at(1)),x.setCoords(d.at(0).val,d.at(1).val);;){const e={stack:[],error:void 0,hasError:!1};try{const i=.5*(S+C);m._.geodeticCoordinate(this.m_a,this.m_eSquared,n.x,n.y,i*G,w,h.at(0),h.at(1),this.m_curveType),l.setCoords(h.at(0).val,h.at(1).val),m._.geodeticDistance(this.m_a,this.m_eSquared,n.x,n.y,l.x,l.y,null,null,_,this.m_curveType);const r=_.val+.5*Math.PI;m._.geodesicCoordinate(this.m_a,this.m_eSquared,l.x,l.y,t,r,g.at(0),g.at(1)),b.setCoords(g.at(0).val,g.at(1).val);const a=(0,o.mS)(e,new m.Z,!1),u=(0,o.mS)(e,new m.Z,!1);m._.geodeticDistance(this.m_a,this.m_eSquared,p.x,p.y,x.x,x.y,a,u,null,2),m._.geodeticCoordinate(this.m_a,this.m_eSquared,p.x,p.y,.5*a.val,u.val,P.at(0),P.at(1),2),y.setCoords(P.at(0).val,P.at(1).val);const f=(0,o.mS)(e,new m.Z,!1);if(m._.geodeticDistance(this.m_a,this.m_eSquared,b.x,b.y,y.x,y.y,f,null,null,2),f.val<=this.m_convergenceOffset)break;{const e={stack:[],error:void 0,hasError:!1};try{C*=.9,m._.geodeticCoordinate(this.m_a,this.m_eSquared,n.x,n.y,C*G,w,c.at(0),c.at(1),this.m_curveType),s.setCoords(c.at(0).val,c.at(1).val);const i=(0,o.mS)(e,new m.Z,!1);m._.geodeticDistance(this.m_a,this.m_eSquared,n.x,n.y,s.x,s.y,null,null,i,this.m_curveType);const r=i.val+.5*Math.PI;m._.geodesicCoordinate(this.m_a,this.m_eSquared,s.x,s.y,t,r,d.at(0),d.at(1)),x.setCoords(d.at(0).val,d.at(1).val)}catch(t){e.error=t,e.hasError=!0}finally{(0,o.hk)(e)}}}catch(t){e.error=t,e.hasError=!0}finally{(0,o.hk)(e)}}let T=C*G;T>1e5&&(T=1e5),this.m_segmentStep=T}catch(t){e.error=t,e.hasError=!0}finally{(0,o.hk)(e)}}setConvergenceOffset(){let e;e=this.m_absDistance>5e4?100:this.m_absDistance>1e4?10:1,this.m_absDistance/e<500&&(e=this.m_absDistance/500),e<.01&&(e=.01),this.m_convergenceOffset=e}}function P(e,t,n,s,o,c,l){if(e.isEmpty())return new a.P({vd:e.getDescription()});let _=e;if((0,i.n)(_)){const e=10*t.getTolerance(0);_=(new f.O).execute(_,0,e,0,l,12e3)}const d=new g(l);d.m_sr=t,d.m_gcs=t.getGCS(),d.m_transform=(0,m.a)(t,d.m_gcs,null);const P=(0,m.$)();d.m_gcs.querySpheroidData(P);const p=new r.Envelope2D;_.queryEnvelope(p),d.m_a=P.majorSemiAxis,d.m_eSquared=P.e2,d.m_rpu=d.m_gcs.getUnit().getUnitToBaseFactor(),d.m_gcs90=.5*Math.PI/d.m_rpu,d.m_gcs180=Math.PI/d.m_rpu,d.m_gcs360=2*Math.PI/d.m_rpu,d.m_gcs60=d.m_gcs360/6,d.m_q90=m.M.q90(d.m_a,d.m_eSquared),d.m_ellipticToGeodesicMaxRatio=.5*d.m_a*Math.PI/d.m_q90;const x=d.m_gcs.getTolerance(0);d.m_radTolerance=x*d.m_rpu,4===n?(d.m_curveType=2,d.m_bShapePreserving=!0):(d.m_curveType=n,d.m_bShapePreserving=!1),d.m_distance=s,d.m_absDistance=Math.abs(s),Number.isNaN(o)||o<=0?d.setConvergenceOffset():d.m_convergenceOffset=Math.max(o,.001),d.m_convergenceOffset/=c;let b,y=_.getGeometryType();if((0,i.h)(y)){const e=new a.a({vd:_.getDescription()});e.addSegment(_,!0),b=e,y=i.G.enumPolyline}else if(y===i.G.enumEnvelope){const e=_,t=new r.Envelope2D;e.queryEnvelope(t);const n=(0,h.f)((0,h.c)(d.m_sr,p,!0));if(t.minDimension()<=n)if(0===t.maxDimension()){const t=new h.P({vd:_.getDescription()});e.getCenter(t),b=t,y=i.G.enumPoint}else{const t=new a.a({vd:_.getDescription()});t.addEnvelope(e,!1),b=t,y=i.G.enumPolyline}else{const t=new a.P({vd:_.getDescription()});t.addEnvelope(e,!1),b=t,y=i.G.enumPolygon}}else b=_;if(d.setMinCornerStep(),(0,i.f)(y)||d.setMinSegmentStep(),d.m_absDistance<=.5*d.m_convergenceOffset)return y!==i.G.enumPolygon?new a.P({vd:b.getDescription()}):d.m_bShapePreserving?b:(0,m.N)(b,d.m_sr,d.m_curveType,d.m_segmentStep,-1,l);if(d.m_distance<0&&y!==i.G.enumPolygon)return new a.P({vd:b.getDescription()});if(d.m_bShapePreserving&&(0,i.j)(y)){const e=(0,m.N)(b,t,4,Number.NaN,d.m_convergenceOffset,l);b=(new m.O).execute(e,d.m_transform,l)}else b=(new m.O).execute(b,d.m_transform,l);if(b=(0,m.Q)(b,d.m_gcs),b.isEmpty())return new a.P({vd:b.getDescription()});!d.m_bShapePreserving&&(0,i.j)(y)&&(b=(0,m.R)(d.m_rpu,b)),b=function(e,t){const n=e.getGeometryType();let s;if(s=(0,i.j)(n)?e.getPathCount():n===i.G.enumMultiPoint?e.getPointCount():1,1===s)return e;const m=[],o=[];for(let a=0;a<s;a++){m.push(a);const s=new u.P;if((0,i.j)(n)){const t=new r.Envelope2D;e.queryPathEnvelope(a,t),s.assign(t.getCenter())}else s.assign(e.getXY(a));const h=t.toGeohash(s);o.push(h)}m.sort((e,t)=>o[e]<o[t]?-1:o[e]>o[t]?1:0);const a=e.createInstance();for(let t=0;t<s;t++){const s=m[t];(0,i.j)(n)?a.addPath(e,s,!0):a.addPoints(e,s,s+1)}return a}(b,d.m_gcs);let S=new a.P;switch(y){case i.G.enumPolygon:S=d.bufferPolygon(b);break;case i.G.enumPolyline:S=d.bufferPolyline(b);break;case i.G.enumMultiPoint:S=d.bufferMultiPoint(b);break;case i.G.enumPoint:S=d.bufferPoint(b);break;default:(0,i.o)("")}const C=(new m.O).execute(S,d.m_transform.getInverse(),l);return C.mergeVertexDescription(b.getDescription()),C}function p(e,t,n,s,i,r,a,h,c,l,_){const f={stack:[],error:void 0,hasError:!1};try{const d=new u.P;d.setNAN(),c||_.getPointCount()>0&&(d.setCoordsPoint2D(_.getXY(_.getPointCount()-1)),d.scale(n));const g=(0,o.mS)(f,new m.Z,!1),P=(0,o.mS)(f,new u.S(new m.Z,new m.Z),!1),p=new u.P,x=new u.P,b=r.at(-1),S=1/n;for(let n=0;n<r.length;n++){const o=r[n];let u;0===n?u=a:n===r.length-1?u=h:(m._.geodeticDistance(e,t,b.x,b.y,o.x,o.y,null,null,g,i),u=g.val-.5*Math.PI),m._.geodesicCoordinate(e,t,o.x,o.y,s,u,P.at(0),P.at(1)),c?x.setCoords(P.at(0).val,P.at(1).val):(p.setCoords(P.at(0).val,P.at(1).val),l=y(o.x,p.x,d.x,l),x.setCoords(l+p.x,p.y),d.setCoordsPoint2D(x)),x.scale(S),_.insertPoint2D(0,-1,x)}return l}catch(e){f.error=e,f.hasError=!0}finally{(0,o.hk)(f)}}function x(e,t,n,s,i,r,a,h,c,l,_,f=Number.NaN,d=Number.NaN){const g={stack:[],error:void 0,hasError:!1};try{if(a-r<h)return l;const P=(0,o.mS)(g,new u.S(new m.Z,new m.Z),!1),p=new u.P,x=new u.P,b=new u.P;x.setNAN(),c||_.getPointCount()>0&&(x.setCoordsPoint2D(_.getXY(_.getPointCount()-1)),x.scale(n));let S=Math.ceil(r/h),C=S++*h;C===r&&(C=S++*h);let w=r;const v=1/n;for(;C<a+h&&(w<f&&f<C?(C=f,S--):w<d&&d<C&&(C=d,S--),!(C>=a));)m._.geodesicCoordinate(e,t,i.x,i.y,s,C,P.at(0),P.at(1)),c?b.setCoords(P.at(0).val,P.at(1).val):(p.setCoords(P.at(0).val,P.at(1).val),l=y(i.x,p.x,x.x,l),b.setCoords(l+p.x,p.y),x.setCoordsPoint2D(b)),b.scale(v),_.insertPoint2D(0,-1,b),w=C,C=S++*h;return l}catch(e){g.error=e,g.hasError=!0}finally{(0,o.hk)(g)}}function b(e,t,n,s,i,r,a,h,c,l,_){const f={stack:[],error:void 0,hasError:!1};try{const n=new u.P,d=new u.P,g=(0,o.mS)(f,new u.S(new m.Z,new m.Z),!1);m._.geodesicCoordinate(e,t,i.x,i.y,s,r,g.at(0),g.at(1)),n.setCoords(g.at(0).val,g.at(1).val),m._.geodesicCoordinate(e,t,i.x,i.y,s,a,g.at(0),g.at(1)),d.setCoords(g.at(0).val,g.at(1).val);const P=(0,o.mS)(f,new m.Z,!1);for(m._.geodeticDistance(e,t,h.x,h.y,n.x,n.y,null,P,null,0),l[0]=P.val,m._.geodeticDistance(e,t,h.x,h.y,d.x,d.y,null,P,null,0),_[0]=P.val;l[0]<=_[0];)l[0]+=u.n;for(;l[0]>_[0];)l[0]-=u.n;for(;l[0]>=c;)l[0]-=u.n,_[0]-=u.n;for(;l[0]<c;)l[0]+=u.n,_[0]+=u.n}catch(e){f.error=e,f.hasError=!0}finally{(0,o.hk)(f)}}function y(e,t,n,s){if(Number.isNaN(n)){for(;s+t-e>Math.PI;)s-=u.n;for(;e-(s+t)>Math.PI;)s+=u.n;return s}return s+t-n>Math.PI?s-=u.n:n-(s+t)>Math.PI&&(s+=u.n),s}function S(e,t,n,s,i,r){const a={stack:[],error:void 0,hasError:!1};try{if(s>=r)return!1;const h=n[0],c=n.at(-1),u=(0,o.mS)(a,new m.Z,!1),l=(0,o.mS)(a,new m.Z,!1),_=(0,o.mS)(a,new m.Z,!1);m._.greatEllipticDistance(e,t,i.x,i.y,h.x,h.y,u,null,null),m._.greatEllipticDistance(e,t,i.x,i.y,c.x,c.y,l,null,null),m._.greatEllipticDistance(e,t,h.x,h.y,c.x,c.y,_,null,null);let f=Math.min(u.val,l.val)+_.val,d=f+s;if(d<r)return!0;const g=(0,o.mS)(a,new m.Z,!1);f=Math.max(u.val,l.val);for(let s=1;s<n.length-1;s++){const r=n[s];m._.greatEllipticDistance(e,t,i.x,i.y,r.x,r.y,g,null,null),g.val>f&&(f=g.val)}return d=f+s,d<r}catch(e){a.error=e,a.hasError=!0}finally{(0,o.hk)(a)}}function C(e,t,n,s,i,r,o,a){let h;if(s.length%2==0){const e=s.length>>1,t=s[e],n=s[e-1];h=u.P.lerp(t,n,.5)}else h=s[s.length-1>>1].clone();const c=h.clone(),l=(0,m.a0)(e,t,c,75/180*Math.PI);return!!S(e,t,s,i,c,l)&&(null!==r&&(r.setCoordsPoint2D(h),r.scale(1/n)),null!==o&&o.setCoordsPoint2D(c),null!==a&&(a[0]=l),!0)}function w(e,t,n,s,i,r){const a={stack:[],error:void 0,hasError:!1};try{if(s>=r)return!1;const h=(0,o.mS)(a,new m.Z,!1);return m._.greatEllipticDistance(e,t,i.x,i.y,n.x,n.y,h,null,null),h.val+s<r}catch(e){a.error=e,a.hasError=!0}finally{(0,o.hk)(a)}}function v(e,t){return new m.a5(e,t)}function D(e){return(0,h.j)(e,0)||(0,h.s)(e,0),e}class I{m_bRunningInGnomonic=!1;m_bNeedsSimplify=!1;m_gnomonic=null;m_gnomonicCenterRad=new u.P;m_minGnomonicRadius=Number.NaN;m_progressTracker;constructor(e){this.m_progressTracker=e}isRunningInGnomonic(){return this.m_bRunningInGnomonic}needsSimplify(){return this.m_bNeedsSimplify}getGnomonic(){return this.m_gnomonic}}class G extends I{m_bufferer;m_multiPath;m_segIter=null;m_bNextSegmentCannotJoin=!1;m_currentDensifiedDelta=[0];m_currentBufferedDelta=0;m_lastAzimuth=0;m_startAzimuth=[0];m_endAzimuth=[0];m_numWinds=0;m_debugCounter=0;m_bufferHelper=new a.P;m_densifiedPoints=[];m_densified;constructor(e,t,n){super(e.m_progressTracker),this.m_bufferer=e,this.m_multiPath=t,this.m_densified=n,this.m_bNeedsSimplify=!0;const s=new r.Envelope2D;this.m_multiPath.queryEnvelope(s);const i=s.getCenter(),o=i.clone();o.scale(this.m_bufferer.m_rpu),this.m_gnomonic=v(this.m_bufferer.m_gcs,i),this.m_gnomonicCenterRad=o.clone(),this.m_minGnomonicRadius=(0,m.a0)(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,o,75/180*Math.PI)}next(){let e;if(this.m_bNextSegmentCannotJoin)return this.m_bNextSegmentCannotJoin=!1,this.m_segIter.nextSegment(),e=this.m_bufferHelper.clone(),e;if(null===this.m_segIter){if(this.m_segIter=this.m_multiPath.getImpl().querySegmentIterator(),!this.m_segIter.nextPath())return null;null!==this.m_densified&&this.m_densified.addPathPoint2D(null,0,!0)}if(!this.m_segIter.hasNextSegment()){if(!this.m_segIter.nextPath())return null;null!=this.m_densified&&this.m_densified.addPathPoint2D(null,0,!0)}let t=null;this.m_currentBufferedDelta=0,this.m_currentDensifiedDelta=[0],this.m_numWinds=0,this.m_lastAzimuth=Number.NaN,this.m_bNextSegmentCannotJoin=!1,this.m_densifiedPoints.length=0;let n=0;const s=new u.P,i=new u.P;for(;this.m_segIter.hasNextSegment()&&this.m_numWinds<16;){const e=this.m_segIter.nextSegment();if(s.setCoordsPoint2D(e.getStartXY()),i.setCoordsPoint2D(e.getEndXY()),s.scale(this.m_bufferer.m_rpu),i.scale(this.m_bufferer.m_rpu),(0,m.a1)(s,i))s.x=i.x;else if((0,m.a2)(s,i))i.x=s.x;else{let e=-1,t=-1;const n=this.m_segIter.getPathIndex(),r=this.m_multiPath.getPathStart(n),o=this.m_multiPath.getPathEnd(n);if(e=this.m_segIter.getStartPointIndex()-1,t=this.m_segIter.getEndPointIndex()+1,e<r&&(e=this.m_multiPath.isClosedPath(n)?o-1:-1),t>o-1&&(t=this.m_multiPath.isClosedPath(n)?r:-1),-1!==e){const t=this.m_multiPath.getXY(e);t.scale(this.m_bufferer.m_rpu),(0,m.a2)(t,s)&&(s.x=t.x)}if(-1!==t){const e=this.m_multiPath.getXY(t);e.scale(this.m_bufferer.m_rpu),(0,m.a1)(i,e)&&(i.x=e.x)}}this.m_densifiedPoints.length=0;const r=(0,m.a3)(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,this.m_bufferer.m_curveType,s,i,this.m_bufferer.m_segmentStep,Number.NaN,this.m_bufferer.m_radTolerance,this.m_startAzimuth,this.m_endAzimuth,this.m_densifiedPoints,this.m_currentDensifiedDelta);if(0===n)this.m_bRunningInGnomonic=this.isSegmentBufferInCurrentGnomonic(this.m_densifiedPoints),this.m_bRunningInGnomonic||(this.m_bRunningInGnomonic=this.tryUpdateGnomonic(this.m_densifiedPoints));else if(this.m_bRunningInGnomonic){if(!this.isSegmentBufferInCurrentGnomonic(this.m_densifiedPoints)){this.m_segIter.previousSegment(),this.m_segIter.previousSegment(),this.m_segIter.nextSegment();break}}else if(C(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,this.m_bufferer.m_rpu,this.m_densifiedPoints,this.m_bufferer.m_absDistance*this.m_bufferer.m_ellipticToGeodesicMaxRatio,null,null,null)){this.m_segIter.previousSegment(),this.m_segIter.previousSegment(),this.m_segIter.nextSegment();break}if(0===r||(0,m.a4)(s,i)?(this.m_bufferHelper.setEmpty(),this.m_bufferer.bufferPoint2D(s,this.m_bRunningInGnomonic,this.m_bufferHelper),this.m_bNextSegmentCannotJoin=!0):(this.m_bufferHelper.setEmpty(),this.m_bNextSegmentCannotJoin=this.checkAndPrepSegmentForCrossingAzimuthsOrPoleWrap(r,this.m_bufferHelper)),this.m_bNextSegmentCannotJoin){this.m_segIter.previousSegment(),this.m_segIter.hasPreviousSegment()?(this.m_segIter.previousSegment(),this.m_segIter.nextSegment()):this.m_segIter.resetToFirstSegment(),null!=this.m_densified&&this.m_densified.insertPointsFromPoints(this.m_densified.getPathCount()-1,-1,this.m_densifiedPoints,0,this.m_densifiedPoints.length-1,!0);break}null!=this.m_densified&&this.m_densified.insertPointsFromPoints(this.m_densified.getPathCount()-1,-1,this.m_densifiedPoints,0,this.m_densifiedPoints.length-1,!0),null===t&&(t=new a.P,t.addPathPoint2D(null,0,!0)),this.addJoinAndBufferLeftSide(t),n++}if(this.m_currentDensifiedDelta=[0],n>0){const e=this.m_segIter.getStartPointIndex(),r=this.m_segIter.getPathIndex();for(;n>0;){if(this.m_segIter.previousSegment(),s.setCoordsPoint2D(this.m_multiPath.getXY(this.m_segIter.getStartPointIndex())),i.setCoordsPoint2D(this.m_multiPath.getXY(this.m_segIter.getEndPointIndex())),s.scale(this.m_bufferer.m_rpu),i.scale(this.m_bufferer.m_rpu),this.m_bRunningInGnomonic)if((0,m.a1)(s,i))s.x=i.x;else if((0,m.a2)(s,i))i.x=s.x;else{let e=-1,t=-1;const n=this.m_segIter.getPathIndex(),r=this.m_multiPath.getPathStart(n),o=this.m_multiPath.getPathEnd(n);if(e=this.m_segIter.getStartPointIndex()-1,t=this.m_segIter.getEndPointIndex()+1,e<r&&(e=this.m_multiPath.isClosedPath(n)?o-1:-1),t>o-1&&(t=this.m_multiPath.isClosedPath(n)?r:-1),-1!==e){const t=this.m_multiPath.getXY(e);t.scale(this.m_bufferer.m_rpu),(0,m.a2)(t,s)&&(s.x=t.x)}if(-1!==t){const e=this.m_multiPath.getXY(t);e.scale(this.m_bufferer.m_rpu),(0,m.a1)(i,e)&&(i.x=e.x)}}this.m_densifiedPoints.length=0,(0,m.a3)(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,this.m_bufferer.m_curveType,i,s,this.m_bufferer.m_segmentStep,Number.NaN,this.m_bufferer.m_radTolerance,this.m_startAzimuth,this.m_endAzimuth,this.m_densifiedPoints,this.m_currentDensifiedDelta),this.addJoinAndBufferLeftSide(t),n--}return s.setCoordsPoint2D(this.m_multiPath.getXY(this.m_segIter.getStartPointIndex())),s.scale(this.m_bufferer.m_rpu),this.m_currentBufferedDelta=x(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,this.m_bufferer.m_rpu,this.m_bufferer.m_absDistance,s,this.m_lastAzimuth+.5*Math.PI,this.m_lastAzimuth+1.5*Math.PI,this.m_bufferer.m_cornerStep,this.m_bRunningInGnomonic,this.m_currentBufferedDelta,t),this.m_segIter.resetToVertex(e,r),this.m_segIter.nextSegment(),t}return this.m_bNextSegmentCannotJoin=!1,this.m_segIter.nextSegment(),e=this.m_bufferHelper.clone(),e}isSegmentBufferInCurrentGnomonic(e){return null!==this.m_gnomonic&&S(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,e,this.m_bufferer.m_absDistance*this.m_bufferer.m_ellipticToGeodesicMaxRatio,this.m_gnomonicCenterRad,this.m_minGnomonicRadius)}tryUpdateGnomonic(e){const t=new u.P,n=new u.P,s=[0];return C(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,this.m_bufferer.m_rpu,e,this.m_bufferer.m_absDistance*this.m_bufferer.m_ellipticToGeodesicMaxRatio,t,n,s)?(this.m_gnomonicCenterRad.setCoordsPoint2D(n),this.m_minGnomonicRadius=s[0],this.m_gnomonic=v(this.m_bufferer.m_gcs,t),!0):(this.m_gnomonic=null,!1)}checkAndPrepSegmentForCrossingAzimuthsOrPoleWrap(e,t){return this.m_bufferer.checkAndPrepSegmentForCrossingAzimuthsOrPoleWrap(this.m_densifiedPoints,e,this.m_startAzimuth[0],this.m_endAzimuth[0],this.m_bRunningInGnomonic,t)}addJoinAndBufferLeftSide(e){const t=this.m_densifiedPoints[0];let n=Number.NaN,s=this.m_startAzimuth[0]-u.l;const i=this.m_endAzimuth[0]+u.l;let r=!1;if(!Number.isNaN(this.m_lastAzimuth)){this.m_lastAzimuth>=this.m_startAzimuth[0]?(n=this.m_lastAzimuth+u.l,s=n+Math.PI-(this.m_lastAzimuth-this.m_startAzimuth[0])):(n=this.m_lastAzimuth+u.l,s=n+Math.PI-(u.n-(this.m_startAzimuth[0]-this.m_lastAzimuth))),r=!(this.m_lastAzimuth>=this.m_startAzimuth[0]&&this.m_lastAzimuth-this.m_startAzimuth[0]<=Math.PI||this.m_lastAzimuth<this.m_startAzimuth[0]&&this.m_startAzimuth[0]-this.m_lastAzimuth>=Math.PI);let i=!1;if(Math.abs(s-n)<=.5*this.m_bufferer.m_cornerStep&&(r||(i=!0)),i){if(e.removePointFromPath(0,e.getPointCount()-1),!this.m_bRunningInGnomonic){const t=new u.P;t.setCoordsPoint2D(e.getXY(e.getPointCount()-1)),t.scale(this.m_bufferer.m_rpu),t.x-this.m_currentBufferedDelta<-Math.PI?this.m_currentBufferedDelta-=u.n:t.x-this.m_currentBufferedDelta>Math.PI&&(this.m_currentBufferedDelta+=u.n)}s=.5*(s+n)}else if(r){const n=new u.P;n.setCoordsPoint2D(t),n.scale(1/this.m_bufferer.m_rpu),e.insertPoint2D(0,-1,n)}else x(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,this.m_bufferer.m_rpu,this.m_bufferer.m_absDistance,this.m_densifiedPoints[0],n,s,this.m_bufferer.m_cornerStep,this.m_bRunningInGnomonic,this.m_currentBufferedDelta,e)}this.m_startAzimuth[0]!==this.m_lastAzimuth&&this.m_numWinds++,p(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,this.m_bufferer.m_rpu,this.m_bufferer.m_absDistance,this.m_bufferer.m_curveType,this.m_densifiedPoints,s,i,this.m_bRunningInGnomonic,this.m_currentBufferedDelta,e),this.m_lastAzimuth=this.m_endAzimuth[0]}}class T extends I{m_bufferer;m_multiPoint;m_pointIndex=-1;constructor(e,t){super(e.m_progressTracker),this.m_bufferer=e,this.m_multiPoint=t,this.m_bNeedsSimplify=!1;const n=new r.Envelope2D;this.m_multiPoint.queryEnvelope(n);const s=n.getCenter(),i=s.clone();i.scale(this.m_bufferer.m_rpu),this.m_gnomonic=v(this.m_bufferer.m_gcs,s),this.m_gnomonicCenterRad=i.clone(),this.m_minGnomonicRadius=(0,m.a0)(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,i,75/180*Math.PI)}next(){if(this.m_bNeedsSimplify=!1,++this.m_pointIndex===this.m_multiPoint.getPointCount())return null;const e=this.m_multiPoint.getXY(this.m_pointIndex);e.scale(this.m_bufferer.m_rpu),this.m_bRunningInGnomonic=this.isPointBufferInCurrentGnomonic(e),this.m_bRunningInGnomonic||(this.m_bRunningInGnomonic=this.tryUpdateGnomonic(e));const t=new a.P,n=this.m_bufferer.bufferPoint2D(e,this.m_bRunningInGnomonic,t);return this.m_bNeedsSimplify=n,t}isPointBufferInCurrentGnomonic(e){return null!==this.m_gnomonic&&w(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,e,this.m_bufferer.m_absDistance*this.m_bufferer.m_ellipticToGeodesicMaxRatio,this.m_gnomonicCenterRad,this.m_minGnomonicRadius)}tryUpdateGnomonic(e){const t=new u.P,n=new u.P,s=[0];return function(e,t,n,s,i,r,o,a){const h=(0,m.a0)(e,t,s,75/180*Math.PI);return!!w(e,t,s,i,s,h)&&(null!==r&&(r.setCoordsPoint2D(s),r.scale(1/n)),null!==o&&o.setCoordsPoint2D(s),null!==a&&(a[0]=h),!0)}(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,this.m_bufferer.m_rpu,e,this.m_bufferer.m_absDistance*this.m_bufferer.m_ellipticToGeodesicMaxRatio,t,n,s)?(this.m_gnomonicCenterRad.setCoordsPoint2D(n),this.m_minGnomonicRadius=s[0],this.m_gnomonic=v(this.m_bufferer.m_gcs,t),!0):(this.m_gnomonic=null,!1)}}class k{getOperatorType(){return 10110}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,n,s,i,r,o,a){if(o){const o=new M(e,t,n,s,i,!1,r,a);return(new m.z).executeMany(o,t,a)}return new M(e,t,n,s,i,!1,r,a)}execute(e,t,n,s,r,m,o){const a=new d.S([e]),h=[s],c=this.executeMany(a,t,n,h,r,!1,m,o).next();return c||(0,i.d)("geodesic buffer null output"),c}}class M extends s.G{m_inputGeoms;m_spatialReference;m_curveType;m_progressTracker;m_distances;m_convergenceOffset;m_currentUnionEnvelope2D=new r.Envelope2D;m_bOutlineOnly;m_bUnion;m_index=-1;m_dindex=-1;constructor(e,t,n,s,r,m,o,a){super(),this.m_progressTracker=a,m&&(0,i.t)(""),t||(0,i.a)(""),0===t.getCoordinateSystemType()&&(0,i.a)(""),this.m_inputGeoms=e,this.m_spatialReference=t,this.m_curveType=n,this.m_distances=s,this.m_convergenceOffset=r,this.m_bOutlineOnly=m,this.m_bUnion=o}next(){let e;for(;e=this.m_inputGeoms.next();)return(0,i.c)(e),this.m_index=this.m_inputGeoms.getGeometryID(),this.m_dindex+1<this.m_distances.length&&this.m_dindex++,this.geodesicBuffer(e,this.m_distances[this.m_dindex]);return null}getGeometryID(){return this.m_index}tock(){return!0}getRank(){return 1}geodesicBuffer(e,t){return function(e,t,n,s,r,m){s<Number.MAX_VALUE&&s>-Number.MAX_VALUE||(0,i.a)("Geodesic_bufferer.buffer - bad distance"),(0,i.c)(e);const o=(0,_.c)(e),a=o.getGeometryType();if((0,i.i)(a)){const e=o.getPointCount(),h=8e6;if(Math.abs(s)>h&&(e>50||a!==i.G.enumMultiPoint&&4===n&&e>2)){let e=o;const i=s>0?1:-1,a=7e6;let c=s,u=1;do{u++,c=(Math.abs(c)-a)*i}while(Math.abs(c)>h);c=s;for(let s=0;s<u-1;s++)e=P(e,t,n,a*i,r,u,m),c=(Math.abs(c)-a)*i;return e=P(e,t,n,c,r,u,m),e}}return P(o,t,n,s,r,1,m)}(e,this.m_spatialReference,this.m_curveType,t,this.m_convergenceOffset,this.m_progressTracker)}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3202,7157],{46140(e,t,r){r.d(t,{A:()=>i});var n=r(49186);class i{constructor(e,t,r=""){this.major=e,this.minor=t,this._context=r}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}toString(){return`${this.major}.${this.minor}`}validate(e){if(this.major!==e.major){const t=this._context&&this._context+":",r=this._context&&this._context+" ";throw new n.A(t+"unsupported-version",`Required major ${r}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new i(this.major,this.minor,this._context)}static parse(e,t=""){const[r,o]=e.split("."),s=/^\s*\d+\s*$/;if(!r?.match||!s.test(r))throw new n.A((t&&t+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:e});if(!o?.match||!s.test(o))throw new n.A((t&&t+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:e});const a=parseInt(r,10),l=parseInt(o,10);return new i(a,l,t)}}},6797(e,t,r){r.d(t,{Ui:()=>f});var n=r(69622),i=r(7762),o=r(88620);const s=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function a(e){return e instanceof n.A}function l(e){return e instanceof i.A?Object.keys(e.items):a(e)?(0,o.oY)(e).keys():e?Object.keys(e):[]}function c(e,t){return e instanceof i.A?e.items[t]:e[t]}function u(e){return e?e.declaredClass:null}function d(e,t){const r=e.diff;if(r&&"function"==typeof r)return r(e,t);const n=l(e),i=l(t);if(0===n.length&&0===i.length)return;if(!n.length||!i.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const o=i.filter(e=>!n.includes(e)),f=n.filter(e=>!i.includes(e)),p=n.filter(r=>i.includes(r)&&c(e,r)!==c(t,r)).concat(o,f).sort(),h=u(e);if(h&&s.has(h)&&p.length)return{type:"complete",oldValue:e,newValue:t};let m;const y=a(e)&&a(t);for(const n of p){const i=c(e,n),o=c(t,n);let s;if((y||"function"!=typeof i&&"function"!=typeof o)&&i!==o&&(null!=i||null!=o)){if(r&&r[n]&&"function"==typeof r[n])s=r[n]?.(i,o);else if(i instanceof Date&&o instanceof Date){if(i.getTime()===o.getTime())continue;s={type:"complete",oldValue:i,newValue:o}}else s="object"==typeof i&&"object"==typeof o&&u(i)===u(o)?d(i,o):{type:"complete",oldValue:i,newValue:o};null!=s&&(null!=m?m.diff[n]=s:m={type:"partial",diff:{[n]:s}})}}return m}function f(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&u(e)!==u(t)?{type:"complete",oldValue:e,newValue:t}:d(e,t)}},91829(e,t,r){function n(){return[0,0,0,0]}function i(e,t,r,n){return[e,t,r,n]}function o(e,t,r,n){return[e,t,r,n]}function s(){return i(1,1,1,1)}function a(){return i(1,0,0,0)}function l(){return i(0,1,0,0)}function c(){return i(0,0,1,0)}function u(){return i(0,0,0,1)}r.d(t,{CN:()=>o,_Y:()=>u,fA:()=>i,vt:()=>n});const d=[0,0,0,0],f=s(),p=a(),h=l(),m=c(),y=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_W:y,UNIT_X:p,UNIT_Y:h,UNIT_Z:m,ZEROS:d,clone:function(e){return[e[0],e[1],e[2],e[3]]},create:n,freeze:o,fromArray:function(e,t=[0,0,0,0]){const r=Math.min(4,e.length);for(let n=0;n<r;++n)t[n]=e[n];return t},fromValues:i,ones:s,unitW:u,unitX:a,unitY:l,unitZ:c,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["Un",0,f,"uY",0,d])},78955(e,t,r){r.d(t,{Bw:()=>y,C:()=>i,Cc:()=>w,LI:()=>f,Om:()=>b,S8:()=>M,T9:()=>d,WQ:()=>s,Z0:()=>C,aI:()=>I,hG:()=>m,hZ:()=>o,hs:()=>p,jk:()=>u,m3:()=>g,t2:()=>v});var n=r(34304);function i(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function o(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function s(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e}function a(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e}function l(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e[3]=t[3]*r[3],e}function c(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e[3]=t[3]/r[3],e}function u(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e[3]=Math.min(t[3],r[3]),e}function d(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e[3]=Math.max(t[3],r[3]),e}function f(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e[3]=Math.round(t[3]),e}function p(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e}function h(e,t){const r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2],o=t[3]-e[3];return Math.sqrt(r*r+n*n+i*i+o*o)}function m(e,t){const r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2],o=t[3]-e[3];return r*r+n*n+i*i+o*o}function y(e){const t=e[0],r=e[1],n=e[2],i=e[3];return Math.sqrt(t*t+r*r+n*n+i*i)}function g(e){const t=e[0],r=e[1],n=e[2],i=e[3];return t*t+r*r+n*n+i*i}function M(e,t){const r=t[0],n=t[1],i=t[2],o=t[3];let s=r*r+n*n+i*i+o*o;return s>0&&(s=1/Math.sqrt(s),e[0]=r*s,e[1]=n*s,e[2]=i*s,e[3]=o*s),e}function b(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function w(e,t,r,n){const i=t[0],o=t[1],s=t[2],a=t[3];return e[0]=i+n*(r[0]-i),e[1]=o+n*(r[1]-o),e[2]=s+n*(r[2]-s),e[3]=a+n*(r[3]-a),e}function C(e,t,r){const n=t[0],i=t[1],o=t[2],s=t[3];return e[0]=r[0]*n+r[4]*i+r[8]*o+r[12]*s,e[1]=r[1]*n+r[5]*i+r[9]*o+r[13]*s,e[2]=r[2]*n+r[6]*i+r[10]*o+r[14]*s,e[3]=r[3]*n+r[7]*i+r[11]*o+r[15]*s,e}function v(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}function I(e,t){const r=e[0],i=e[1],o=e[2],s=e[3],a=t[0],l=t[1],c=t[2],u=t[3],d=(0,n.FD)();return Math.abs(r-a)<=d*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(i-l)<=d*Math.max(1,Math.abs(i),Math.abs(l))&&Math.abs(o-c)<=d*Math.max(1,Math.abs(o),Math.abs(c))&&Math.abs(s-u)<=d*Math.max(1,Math.abs(s),Math.abs(u))}const S=a,T=l,x=c,A=h,k=m,F=y,_=g;Object.freeze(Object.defineProperty({__proto__:null,add:s,ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e[3]=Math.ceil(t[3]),e},copy:i,copyVec3:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},dist:A,distance:h,div:x,divide:c,dot:b,equals:I,exactEquals:v,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e[3]=Math.floor(t[3]),e},inverse:function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e},len:F,length:y,lerp:w,max:d,min:u,mul:T,multiply:l,negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e},normalize:M,random:function(e,t=1){const r=n.Ov;let i,o,s,a,l,c;do{i=2*r()-1,o=2*r()-1,l=i*i+o*o}while(l>=1);do{s=2*r()-1,a=2*r()-1,c=s*s+a*a}while(c>=1);const u=Math.sqrt((1-l)/c);return e[0]=t*i,e[1]=t*o,e[2]=t*s*u,e[3]=t*a*u,e},round:f,scale:p,scaleAndAdd:function(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e[3]=t[3]+r[3]*n,e},set:o,sqrDist:k,sqrLen:_,squaredDistance:m,squaredLength:g,str:function(e){return"vec4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},sub:S,subtract:a,transformMat4:C,transformQuat:function(e,t,r){const n=t[0],i=t[1],o=t[2],s=r[0],a=r[1],l=r[2],c=r[3],u=c*n+a*o-l*i,d=c*i+l*n-s*o,f=c*o+s*i-a*n,p=-s*n-a*i-l*o;return e[0]=u*c+p*-s+d*-l-f*-a,e[1]=d*c+p*-a+f*-s-u*-l,e[2]=f*c+p*-l+u*-a-d*-s,e[3]=t[3],e}},Symbol.toStringTag,{value:"Module"}))},16494(e,t,r){var n=r(17632);const i=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup","animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"].reduce((e,t)=>(e[t]=[],e),{}),o=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","class","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],s=new n.I({whiteList:i,onTagAttr:(e,t,r)=>{const n=`${t}="${r}"`;if(o.includes(t))return n},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0),a=new n.I({whiteList:{br:[]},stripIgnoreTag:!0,escapeHtml:e=>e},!1);r.d(t,["Nd",0,a,"W5",0,s])},88930(e,t,r){r.d(t,{S1:()=>a,lL:()=>c,mi:()=>l,rb:()=>u,t:()=>d});var n=r(97770),i=(r(98623),r(92647));const o=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,s={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function a(e,t,r,o="system"){if("unknown"===r)return e;const s=new i.oh((0,n.wj)(o)),a=i.c9.fromJSDate(e,{zone:s}),l="decades"===r||"centuries"===r?"year":function(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}(r);return"decades"===r&&(t*=10),"centuries"===r&&(t*=100),a.plus({[l]:t}).toJSDate()}function l(e,t,r="milliseconds"){const n=e.getTime(),i=d(t,r,"milliseconds");return new Date(n+i)}function c(e,t,r="system"){const{unit:o}=t,s=Math.max(1,Math.trunc(t.value)),a=new i.oh((0,n.wj)(r)),l=i.c9.fromJSDate(e,{zone:a}),c=e=>e-e%s;switch(o){case"milliseconds":return l.startOf("second").plus({millisecond:c(l.millisecond)}).toJSDate();case"seconds":return l.startOf("minute").plus({second:c(l.second)}).toJSDate();case"minutes":return l.startOf("hour").plus({minute:c(l.minute)}).toJSDate();case"hours":return l.startOf("day").plus({hour:c(l.hour)}).toJSDate();case"days":return l.startOf("month").plus({day:c(l.day-1)}).toJSDate();case"weeks":{const e=l.startOf("year").startOf("week"),t=Math.floor(l.diff(e,"weeks").weeks);return e.plus({week:c(t)}).toJSDate()}case"months":return l.startOf("year").plus({month:c(l.month-1)}).toJSDate();case"years":case"decades":case"centuries":{const e=l.startOf("year"),t=("decades"===o?10:"centuries"===o?100:1)*s,r=e.year-e.year%t;return e.set({year:r}).toJSDate()}case"unknown":return e}}function u(e){const t=o.exec(e);if(!t)return null;const{hh:r,mm:n,ss:i,ms:a}=t.groups;return Number(r)*s.hours+Number(n)*s.minutes+Number(i||0)*s.seconds+Number(a||0)}function d(e,t,r){return 0===e?0:e*s[t]/s[r]}},4146(e,t,r){r.d(t,{A:()=>M});var n=r(5482),i=r(11254),o=r(49186),s=r(65529),a=r(4902),l=r(92474),c=r(53966),u=r(17676),d=r(84952),f=r(91429),p=r(5443),h=r(16930),m=r(92602),y=r(79677);let g=0,M=class extends((0,s.Zt)((0,a.s)(l.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new p.A(-180,-90,180,90,h.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=h.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await Promise.all([r.e(812),r.e(7982)]).then(r.bind(r,27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:n}=await Promise.all([r.e(812),r.e(5613),r.e(909)]).then(r.bind(r,45613));try{return await n(t)}catch(e){const r=t?.portalItem,n=r?.id||"unset",i=r?.portal?.url||m.A.portalUrl;throw c.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+i+"', id: '"+n+"')",e),e}}(e)}initialize(){this.when().catch(e=>{(0,u.zf)(e)||c.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})})}destroy(){const{parent:e}=this;e&&(this.parent=null,e.removeChildLayer?.(this))}get effectiveVisible(){return this.visible&&(this.parent?.effectiveVisible??!0)}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}removeFromParent(){const{parent:e}=this;e&&(e.removeChildLayer?.(this),this.parent=null)}get parsedUrl(){return(0,d.An)(this.url)}createLayerView(e,t){return Promise.reject(new o.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,i.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new o.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,n.Cg)([(0,f.MZ)({type:String})],M.prototype,"attributionDataUrl",void 0),(0,n.Cg)([(0,f.MZ)({readOnly:!0})],M.prototype,"effectiveVisible",null),(0,n.Cg)([(0,f.MZ)({type:p.A})],M.prototype,"fullExtent",void 0),(0,n.Cg)([(0,f.MZ)({readOnly:!0})],M.prototype,"hasAttributionData",null),(0,n.Cg)([(0,f.MZ)({type:String,clonable:!1})],M.prototype,"id",void 0),(0,n.Cg)([(0,f.MZ)({type:Boolean,nonNullable:!0})],M.prototype,"legendEnabled",void 0),(0,n.Cg)([(0,f.MZ)({type:["show","hide","hide-children"]})],M.prototype,"listMode",void 0),(0,n.Cg)([(0,f.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],M.prototype,"opacity",void 0),(0,n.Cg)([(0,f.MZ)({clonable:!1})],M.prototype,"parent",void 0),(0,n.Cg)([(0,f.MZ)({readOnly:!0})],M.prototype,"parsedUrl",null),(0,n.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],M.prototype,"persistenceEnabled",void 0),(0,n.Cg)([(0,f.MZ)({type:Boolean})],M.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,f.MZ)({type:Boolean})],M.prototype,"attributionVisible",void 0),(0,n.Cg)([(0,f.MZ)({type:h.A})],M.prototype,"spatialReference",void 0),(0,n.Cg)([(0,f.MZ)({type:String})],M.prototype,"title",void 0),(0,n.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],M.prototype,"type",void 0),(0,n.Cg)([(0,f.MZ)()],M.prototype,"url",void 0),(0,n.Cg)([(0,f.MZ)({type:y.A})],M.prototype,"visibilityTimeExtent",void 0),(0,n.Cg)([(0,f.MZ)({type:Boolean,nonNullable:!0})],M.prototype,"visible",void 0),M=(0,n.Cg)([(0,f.$K)("esri.layers.Layer")],M)},52136(e,t,r){var n=r(5482),i=r(91429);r.d(t,["p",0,e=>{const t=e;let r=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,n.Cg)([(0,i.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,n.Cg)([(0,i.$K)("esri.layers.mixins.APIKeyMixin")],r),r}])},47685(e,t,r){r.d(t,{Mk:()=>p,Zk:()=>d});var n=r(5482),i=r(65529),o=r(4718),s=r(91429),a=r(20816);const l=new i.bk;function c(e){return l.on("apply-edits",new WeakRef(e))}function u(e){return l.on("update-moment",new WeakRef(e))}function d(e,t,r=null,n=!1){const i=Promise.withResolvers();return n=null==t||n,l.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:r,mayReceiveServiceEdits:n,result:i.promise}),i}const f=Symbol();function p(e){return null!=e&&"object"==typeof e&&f in e}function h(e){return null!=e&&"object"==typeof e&&"gdbVersion"in e}function m(e,t,r){const n=new URL(e).host,i=a.Z3.get(n),o=e=>!e||e===i;return o(t)&&o(r)||t===r}r.d(t,["w6",0,e=>{var t;const r=e;let i=class extends r{static{t=f}constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{const{serviceUrl:t,layerId:r,gdbVersion:n,mayReceiveServiceEdits:i,result:s}=e,a=t===this.url,l=null!=r&&null!=this.layerId&&r===this.layerId,c=null!=r&&this.relationships?.some(e=>e.relatedTableId===r),u=h(this),d=h(this)&&m(t,n,this.gdbVersion);if(!a||u&&!d||!l&&!c&&!i)return;const f=s.then(e=>{if(this.lastEditsEventDate=new Date,l&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,o.o8)(e)),e;const r=e.editedFeatures?.find(({layerId:e})=>e===this.layerId);if(r){const{adds:t,updates:n,deletes:i}=r.editedFeatures,s={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:t?t.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],deletedFeatures:i?i.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],updatedFeatures:n?n.map(({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],editedFeatures:(0,o.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,o.o8)(e.historicMoment)};return this.emit("edits",s),s}const i={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,o.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,o.o8)(e.historicMoment)};return"historicMoment"in this&&this._shouldUpdateHistoricMoment(t,n,i.historicMoment)&&this.emit("edits",i),i}).then(e=>("historicMoment"in this&&this._shouldUpdateHistoricMoment(t,n,e.historicMoment)&&(this.historicMoment=e.historicMoment),e));f.catch(()=>{}),this.emit("apply-edits",{result:f})},this._updateMomentHandler=e=>{const{serviceUrl:t,gdbVersion:r,moment:n}=e,i=t===this.url,o=h(this),s=h(this)&&m(t,r,this.gdbVersion),a=h(this)&&!m(t,this.gdbVersion,null);i&&o&&s&&a&&"historicMoment"in this&&this.historicMoment!==n&&(this.historicMoment=n)},this.when().then(()=>{this.addHandles(c(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(u(this._updateMomentHandler))},()=>{})}_shouldUpdateHistoricMoment(e,t,r){return"historicMoment"in this&&this.historicMoment!==r&&(0,a.w5)(e,t)}};return(0,n.Cg)([(0,s.MZ)()],i.prototype,"lastEditsEventDate",void 0),i=(0,n.Cg)([(0,s.$K)("esri.layers.mixins.EditBusLayer")],i),i}])},32756(e,t,r){r.d(t,{Rr:()=>a});var n=r(5482),i=r(93637),o=r(91429),s=r(91880);function a(e,t,r){if(!e)return null;const n=e.find(e=>!!e.field);if(!n)return null;const i=new s.A;return i.read(n,r),[i]}const l={type:[s.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:a},write:{writer:function(e,t,r,n){const o=e.find(e=>!!e.field);o&&(0,i.sM)(r,[o.toJSON()],t)}}}};r.d(t,["fY",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,n.Cg)([(0,o.MZ)(l)],r.prototype,"orderBy",void 0),r=(0,n.Cg)([(0,o.$K)("esri.layers.mixins.OrderedLayer")],r),r},"ne",0,l])},28032(e,t,r){r.d(t,{A:()=>l});var n=r(5482),i=r(69540),o=r(25482),s=r(91429),a=r(56400);let l=class extends((0,i.OU)(o.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,n.Cg)([(0,s.MZ)()],l.prototype,"creatorField",void 0),(0,n.Cg)([(0,s.MZ)()],l.prototype,"creationDateField",void 0),(0,n.Cg)([(0,s.MZ)()],l.prototype,"editorField",void 0),(0,n.Cg)([(0,s.MZ)()],l.prototype,"editDateField",void 0),(0,n.Cg)([(0,s.MZ)()],l.prototype,"realm",void 0),(0,n.Cg)([(0,s.MZ)((0,a.P6)("dateFieldsTimeReference",!0))],l.prototype,"timeZone",void 0),l=(0,n.Cg)([(0,s.$K)("esri.layers.support.EditFieldsInfo")],l)},33143(e,t,r){r.d(t,{A:()=>d});var n=r(5482),i=r(69540),o=r(25482),s=r(91429),a=r(8631),l=r(29005),c=r(36005),u=r(43937);let d=class extends((0,i.OU)(o.o)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,a.r)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,n.Cg)([(0,s.MZ)({json:{write:!0}})],d.prototype,"id",void 0),(0,n.Cg)([(0,s.MZ)({json:{write:!0}})],d.prototype,"name",void 0),(0,n.Cg)([(0,s.MZ)({json:{write:!0}})],d.prototype,"domains",void 0),(0,n.Cg)([(0,c.w)("domains")],d.prototype,"readDomains",null),(0,n.Cg)([(0,u.K)("domains")],d.prototype,"writeDomains",null),(0,n.Cg)([(0,s.MZ)({type:[l.A],json:{write:!0}})],d.prototype,"templates",void 0),d=(0,n.Cg)([(0,s.$K)("esri.layers.support.FeatureType")],d)},37352(e,t,r){r.d(t,{A:()=>l});var n,i=r(5482),o=r(7762),s=r(25482),a=r(91429);let l=n=class extends s.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new o.A}clone(){return new n({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,i.Cg)([(0,a.MZ)({type:String,json:{write:{isRequired:!0}}})],l.prototype,"floorField",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!1,write:!1}})],l.prototype,"viewAllMode",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!1,write:!1}})],l.prototype,"viewAllLevelIds",void 0),l=n=(0,i.Cg)([(0,a.$K)("esri.layers.support.LayerFloorInfo")],l)},91880(e,t,r){r.d(t,{A:()=>c});var n,i=r(5482),o=r(66552),s=r(25482),a=r(91429);const l=new o.J({asc:"ascending",desc:"descending"});let c=class extends s.o{static{n=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new n({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],c.prototype,"field",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],c.prototype,"valueExpression",void 0),(0,i.Cg)([(0,a.MZ)({type:l.apiValues,json:{type:l.jsonValues,read:l.read,write:l.write}})],c.prototype,"order",void 0),c=n=(0,i.Cg)([(0,a.$K)("esri.layers.support.OrderByInfo")],c)},45067(e,t,r){r.d(t,{A:()=>u});var n=r(5482),i=r(69540),o=r(66552),s=r(25482),a=r(91429);const l=new o.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),c=new o.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let u=class extends((0,i.OU)(s.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,n.Cg)([(0,a.MZ)({json:{read:l.read,write:l.write}})],u.prototype,"cardinality",void 0),(0,n.Cg)([(0,a.MZ)({json:{name:"catalogID"}})],u.prototype,"catalogId",void 0),(0,n.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],u.prototype,"composite",void 0),(0,n.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],u.prototype,"id",void 0),(0,n.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],u.prototype,"keyField",void 0),(0,n.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],u.prototype,"keyFieldInRelationshipTable",void 0),(0,n.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],u.prototype,"name",void 0),(0,n.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],u.prototype,"relatedTableId",void 0),(0,n.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],u.prototype,"relationshipTableId",void 0),(0,n.Cg)([(0,a.MZ)({json:{read:c.read,write:c.write}})],u.prototype,"role",void 0),u=(0,n.Cg)([(0,a.$K)("esri.layers.support.Relationship")],u)},17311(e,t,r){r.d(t,{A:()=>p});var n=r(5482),i=r(69622),o=r(4576),s=r(60999),a=r(7762),l=r(16494),c=r(91429),u=r(30524),d=r(43668);const f=/<br\s*\/*>/gi;let p=class extends i.A{constructor(e){super(e),this._featureUtils=null,this.effectivePopupTemplate=null}get _arcadeTask(){return this.expressionsUsedInTitle.length>0?this._get("_arcadeTask")||(0,s.UT)(()=>(0,d.l)()):null}get featureUtilsPromise(){return this._get("featureUtilsPromise")??Promise.all([r.e(4560),r.e(9301)]).then(r.bind(r,99301)).then(e=>this._featureUtils=e)}get calculatedExpressions(){const e=new a.A;if(!this.expressionsUsedInTitle.length)return e;if(!this._arcadeTask?.value){for(const t of this.expressionsUsedInTitle??[])e.push({name:t.name,invalid:!0});return e}for(const t of this.expressionsUsedInTitle)try{const r=this._arcadeTask.value.arcade.parseScript(t.expression,["$layer","$map","$datastore"]);if(r.isAsync){e.push({name:t.name,invalid:!0});break}e.push({name:t.name,syntax:r,invalid:!1,func:this._arcadeTask.value.arcade.compileScript(r,{vars:{$feature:"any"}})})}catch{e.push({name:t.name,invalid:!0});break}return e}get expressionsUsedInTitle(){let e=this.effectivePopupTemplate?.title??"";return"string"!=typeof e?[]:(e=e.toLowerCase(),this.effectivePopupTemplate?.expressionInfos?.filter(t=>e.includes(`{expression/${t.name.toLowerCase()}}`))??[])}get fieldInfoMap(){return this._featureUtils?this._createFieldInfoMap(this._featureUtils.getAllFieldInfos(this.effectivePopupTemplate)):null}get hasBadExpressions(){return this.calculatedExpressions.some(e=>!0===e.invalid)}get requiredFields(){const e=new Set;if(this._arcadeTask?.value&&!this.hasBadExpressions)for(const t of this.calculatedExpressions?.toArray()??[])try{const r=this._arcadeTask.value.arcade.extractFieldLiterals(t.syntax);for(const t of r){const r=t.split("."),n=this.fieldsIndex.get(r.at(-1)??"");n&&e.add(n.name)}}catch{}const t=this._extractFieldNames(this.workingTitle);for(const r of t){const t=this.fieldsIndex.get(r);t&&e.add(t.name)}return null!=this.objectIdField&&e.add(this.objectIdField),e}get titleFromDisplayField(){let e="";return this.displayField&&(e=this.fieldsIndex.get(this.displayField)?.name??""),e||(e=this.fieldsIndex.get(this.objectIdField)?.name??""),e?`{${e}}`:""}get workingTitle(){const e=this.effectivePopupTemplate?this.effectivePopupTemplate.title:"";return""===e||null==e||this.hasBadExpressions||"string"!=typeof e?this.titleFromDisplayField:e}async getTitle(e,t,r){const n=t.getObjectId()??t.attributes?.[e.objectIdField];return(await this.getTitles(e,[t],r)).get(n)??""}async getTitles(e,t,r){const n=new Map,i=r?.timeZone??"system";try{const[{substituteFieldsInLinksAndAttributes:o}]=await Promise.all([this.featureUtilsPromise,this._arcadeTask?.promise]);r?.fetchMissingFields&&(t=await this._checkAndReQueryGraphics(e,t));const{fieldInfoMap:s,workingTitle:a}=this,c=a&&s;t.forEach(t=>{const u=t.getObjectId()??t.attributes[e.objectIdField];let d=c?o({attributes:t.attributes,expressionAttributes:null,fieldInfoMap:s,globalAttributes:this._createFormattedAttributes(e,t,i).global,layer:e,text:a}):"";r?.removeHTML&&(d=l.Nd.sanitize(d).replaceAll(f," ")),n.set(u,d)})}catch{}return n}async _checkAndReQueryGraphics(e,t){const r=t.map(t=>t.getObjectId()??t.attributes[e.objectIdField]).filter(o.Ru);if(r.length!==t.length)return t;if(t.some(e=>!(0,u.Kl)(e,this.requiredFields))){const n=e.createQuery();n.where="1=1",n.outFields=[...this.requiredFields],n.objectIds=r;const i=await e.queryFeatures(n);if(i?.features.length===t.length)return i.features}return t}_createFieldInfoMap(e){const t=new Map;if(!e)return t;for(const r of e){if(!r.fieldName)continue;const e=this.fieldsIndex.get(r.fieldName),n=e?.name??r.fieldName;r.fieldName=n,t.set(n.toLowerCase(),r)}return t}_createFormattedAttributes(e,t,r="system"){const n=this.effectivePopupTemplate?.fieldInfos??[],i={};if(!this._featureUtils)return{};if(!this.hasBadExpressions&&this.calculatedExpressions.length>0&&this._arcadeTask?.value){const r=this._arcadeTask.value.Feature.createFromGraphicLikeObject(t.geometry,t.attributes,e,null);for(const e of this.calculatedExpressions)try{i[`expression/${e.name}`]=e.func({vars:{$feature:r}})}catch{}}const o={...t.attributes,...i};return{global:this._featureUtils.formatAttributes({fieldInfos:n,attributes:o,graphic:t,timeZone:r,layer:e,fieldInfoMap:this.fieldInfoMap}),content:[]}}_extractFieldNames(e){return(0,u.nw)(e).filter(e=>!(e.startsWith("relationships/")||e.startsWith("expression/")))}};(0,n.Cg)([(0,c.MZ)({readOnly:!0})],p.prototype,"_arcadeTask",null),(0,n.Cg)([(0,c.MZ)()],p.prototype,"_featureUtils",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0})],p.prototype,"featureUtilsPromise",null),(0,n.Cg)([(0,c.MZ)({readOnly:!0})],p.prototype,"calculatedExpressions",null),(0,n.Cg)([(0,c.MZ)()],p.prototype,"displayField",void 0),(0,n.Cg)([(0,c.MZ)()],p.prototype,"effectivePopupTemplate",void 0),(0,n.Cg)([(0,c.MZ)()],p.prototype,"expressionsUsedInTitle",null),(0,n.Cg)([(0,c.MZ)()],p.prototype,"fieldsIndex",void 0),(0,n.Cg)([(0,c.MZ)()],p.prototype,"fieldInfoMap",null),(0,n.Cg)([(0,c.MZ)()],p.prototype,"fields",void 0),(0,n.Cg)([(0,c.MZ)()],p.prototype,"objectIdField",void 0),(0,n.Cg)([(0,c.MZ)()],p.prototype,"requiredFields",null),p=(0,n.Cg)([(0,c.$K)("esri.layers.support.TitleCreator")],p)},41560(e,t,r){r.d(t,{Ch:()=>s,mW:()=>o});var n=r(34727),i=r(39516);function o(e,t){return{...t,filterMode:e.mode}}function s(e,t,r){const o=function(e){if("manual"===c(e))return null;const t=[Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY];for(const{minScale:r,maxScale:n}of e.filters)t[0]=Math.max(t[0],u(r)),t[1]=Math.min(t[1],d(n));return t}(e);if(o&&((0,n.gg)(t,o[0])||(0,n.ZH)(r,o[1])))return"";const s=Array.from(a(e,t,r)),l=function(e,t,r){if(0===e.length)return!0;const i=u(e.at(0)?.minScale),o=d(e.at(-1)?.maxScale);if((0,n.ZH)(i,t)||(0,n.gg)(o,r))return!0;for(let t=0;t<e.length-1;t++){const r=e[t],i=e[t+1];if((0,n.ZH)(u(i.minScale),d(r.maxScale)))return!0}return!1}(s,t,r)?"1=1":s.map(e=>e.where||"1=1").reduce((e,t)=>(0,i.IW)(e,t),"");return l&&"1=1"!==l?l:""}function*a(e,t,r){if("manual"===c(e)){const t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(const n of e.filters)l(n.minScale,n.maxScale,t,r)&&(yield n)}}function l(e,t,r,i){return e=u(e),r=u(r),t=d(t),!(!(0,n.Sp)(r,e)&&(i??r)>e||(0,n.Hx)(t,r)||void 0!==i&&(0,n.Sp)(i,e))}function c(e){return"mode"in e?e.mode:e.filterMode}function u(e){return e||Number.POSITIVE_INFINITY}function d(e){return e||0}},77548(e,t,r){r.d(t,{Gh:()=>E,tk:()=>x,BR:()=>T,p2:()=>I,qd:()=>A,wI:()=>S,G$:()=>F,$x:()=>k,Ov:()=>b,cM:()=>f,UC:()=>p,Qz:()=>h,OP:()=>_,TU:()=>M,F2:()=>m,XX:()=>g,Qi:()=>w,jy:()=>C});var n=r(70333),i=r(11254),o=r(7762),s=(r(84952),r(36563)),a=r(36708),l=r(4146);const c=new WeakMap;function u(e){return!e.destroyed&&(c.has(e)||e.addHandles([(0,a.wB)(()=>{const{parent:t}=e;return!!(t&&t instanceof l.A)&&("catalog-dynamic-group"===t.type||u(t))},t=>c.set(e,t),a.pc),(0,s.hA)(()=>c.delete(e))]),c.get(e))}function d(e,t){return null!=e&&"object"==typeof e&&"type"in e&&e.type===t}function f(e){return d(e,"knowledge-graph")&&"layers"in e}function p(e){return d(e,"knowledge-graph-sublayer")}function h(e){return d(e,"link-chart")&&"layers"in e}function m(e){return d(e,"subtype-group")&&"sublayers"in e}function y(e){const t=e.parent;return function(e){return"group"===e?.type}(t)&&t.tables.includes(e)}r(16215);const g={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function M(e){const t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function b(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function w(e){return null!=e&&"object"==typeof e&&"featureReduction"in e}function C(e){return function(e){return d(e,"catalog-footprint")}(e)||function(e){return d(e,"feature")}(e)&&function(e){return"feature"===e?.type&&"feature-layer"===e.source?.type}(e)||function(e){return d(e,"oriented-imagery")}(e)||function(e){return"subtype-sublayer"===e?.type}(e)}function v(e){const t=e?.type;return"binning"===t||"cluster"===t}function I(e,t){if(!C(e))return;const r=t?.graphic,n="featureReduction"in e?e.featureReduction:null;if(r){if(r.isAggregate){const e=r.origin;return e&&"featureReductionProvider"in e&&n?v(n)?n:null:void 0}return e}return t?.checkFeatureReduction&&n?v(n)?n:null:e}async function S(e,t){const r=n.id?.findServerInfo(e);if(null!=r?.currentVersion)return r.owningSystemUrl||null;const o=e.toLowerCase().indexOf("/rest/services");if(-1===o)return null;const s=`${e.slice(0,o)}/rest/info`,a=null!=t?t.signal:null,{data:l}=await(0,i.A)(s,{query:{f:"json"},responseType:"json",signal:a});return l?.owningSystemUrl||null}function T(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"catalog":case"catalog-footprint":case"csv":case"feature":case"parquet":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"scene":case"sublayer":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function x(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"knowledge-graph-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}function A(e){const t=new o.A;for(const r of e.allLayers.concat(e.allTables))u(r)||y(r)||"annotation-feature"===r.type||"dimension-feature"===r.type||("charts"in r&&t.push(r),"subtype-group"===r.type&&t.push(...r.sublayers));return t}function k(e,t){return null}function F(e){return null}function _(e){return!e||"Feature Service"===e.type&&!e.sourceUrl}function E(e,t){if(!t||!_(e))return;const r=(e.url,null);r&&(e.url=r)}},73681(e,t,r){r.d(t,{n:()=>l});var n=r(49186),i=r(53966),o=r(46140),s=r(95466),a=r(55674);class l{static async from(e,t,r){const s=e.dictionary_version?o.A.parse(e.dictionary_version):null,u=new Set(e.itemsNames),d={};if(t)for(const e in t)d[e]=t[e];if(e.authoringInfo.configuration)for(const t of e.authoringInfo.configuration)d.hasOwnProperty(t.name)||(d[t.name]=t.value);const f=new Set(e.authoringInfo.symbol);for(const e of Object.keys(r))f.delete(e);f.size&&i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:f});const p=await(0,a.xR)(e.expression,null,d);if(!p)throw new n.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");const h=!s||!s.greaterEqual(4,0);h&&i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:s});const m=new c(r,h);return new l(h,u,p,m)}constructor(e,t,r,n){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=r,this._reader=n}get itemNames(){return this._itemNames}evaluate(e,t,r,n){try{return this._reader.bind(e,r,n),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new s.A(e);const t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new s.A(t)}}class c extends a.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){const t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);const t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},41366(e,t,r){var n=r(5482),i=r(66552),o=r(53966),s=r(91429),a=r(93223);const l=(0,i.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),c="percent-of-total",u="field";r.d(t,["K",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,r=null!=this.normalizationTotal;return t||r?(e=t&&u||r&&c||null,t&&r&&o.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==u&&e!==c||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,n.Cg)([(0,s.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],r.prototype,"normalizationField",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],r.prototype,"normalizationMaxValue",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],r.prototype,"normalizationMinValue",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],r.prototype,"normalizationTotal",void 0),(0,n.Cg)([(0,a.e)(l,{name:"parameters.normalizationType"})],r.prototype,"normalizationType",null),r=(0,n.Cg)([(0,s.$K)("esri.rest.support.NormalizationBinParametersMixin")],r),r},"Q",0,l])},55674(e,t,r){r.d(t,{Ad:()=>p,Gj:()=>y,QY:()=>f,lL:()=>g,xR:()=>h});var n=r(66131),i=r(49186),o=(r(44208),r(44729)),s=r(15032),a=r(65864),l=r(95466),c=r(43668),u=r(98623);const d=["geometry","scale","timeProperties"];function f(e,t){if(null!=t)for(const r of d)t.hasArcadeDependency(r)&&e.add(r);return e}function p(e,t){return m.create(e,t,null,["$feature","$view"])}function h(e,t,r){return m.create(e,t,r,["$feature","$view","$config"])}class m{static async create(e,t,r,n){const{arcade:o,Dictionary:s}=await(0,c.l)();let a;try{a=o.parseScript(e)}catch(t){throw new i.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})}const l=o.scriptUsesGeometryEngine(a);l&&await o.enableGeometrySupport(),await o.loadDependentModules(new Set,a,null,!1,l);const u={vars:n.reduce((e,t)=>({...e,[t]:null}),{}),spatialReference:t,useAsync:!1},d=o.compileScript(a,u);let f=null;null!=r&&(f=new s(r),f.immutable=!0);const p=new s;return p.immutable=!1,p.setField("scale",0),new m(e,o,a,d,t,p,f,s)}constructor(e,t,r,n,i,o,s,a){this.script=e,this._arcade=t,this._syntaxTree=r,this._compiled=n,this._spatialReference=i,this._viewDict=o,this._configDict=s,this._dictionaryCtor=a,this._dependencies=new Map,this._featureReader=new y,this._dependencies.set("geometry",t.scriptTouchesGeometry(this._syntaxTree)),this._dependencies.set("scale",this._arcade.referencesMember(this._syntaxTree,"scale")),this._dependencies.set("timeProperties",this._arcade.scriptUsesViewProperties(this._syntaxTree,["timeProperties"]))}evaluate(e,t){const r=t.$view?.timeZone;if(t.$view){let e;if(this._viewDict.setField("scale",t.$view.scale),null!=t.$view.timeProperties){const{currentStart:i,currentEnd:o}=t.$view.timeProperties;e=new this._dictionaryCtor({__proto__:null,currentStart:null!=i?null!=r?n.lY.epochToArcadeDate(i,r):n.lY.unknownEpochToArcadeDate(i):void 0,currentEnd:null!=o?null!=r?n.lY.epochToArcadeDate(o,r):n.lY.unknownEpochToArcadeDate(o):void 0,startIncluded:!0,endIncluded:!0})}this._viewDict.setField("timeProperties",e)}return this._compiled({vars:{$view:this._viewDict,$config:this._configDict,$feature:e},spatialReference:this._spatialReference,timeZone:r})}repurposeFeature(e,t){return this._featureReader.bind(e,t,this._spatialReference),this._featureReader}references(e){return this._dependencies.get(e)??!1}}class y{constructor(){this._boundTarget=null,this._boundSchema={fields:null,fieldsIndex:null,spatialReference:null,get geometryType(){return null},get objectIdField(){return null}},this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}bind(e,t,r){const n=t??new l.A(g(e.attributes));this._boundTarget=e,this._boundSchema.fields=n.fields,this._boundSchema.fieldsIndex=n,this._boundSchema.spatialReference=r}_getField(e){return this._boundSchema.fieldsIndex.get(e)}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this._boundSchema.fieldsIndex.has(e)}geometry(){if("fromJSON"in this._boundTarget)return this._boundTarget.geometry;const e=(0,a.rS)(this._boundTarget.geometry);if(e){if(!this._boundSchema.spatialReference)throw new Error("InternalError: Expected spatial reference to be defined");e.spatialReference=this._boundSchema.spatialReference}return e}_hasGeometry(){return null!=this._boundTarget.geometry}isUnknownDateTimeField(e){return this._boundSchema.fieldsIndex.getTimeZone(e)===u.L}field(e,t=!0){const r=this._getField(e);if(r){const t=this._boundTarget.attributes[r.name];if(null==t)return null;switch(r.type){case"date-only":case"esriFieldTypeDateOnly":return o.n.fromReader(t);case"time-only":case"esriFieldTypeTimeOnly":return s.k.fromReader(t);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return n.lY.fromReaderAsTimeStampOffset(t);case"date":case"esriFieldTypeDate":return this.isUnknownDateTimeField(e)?n.lY.unknownEpochToArcadeDate(t):n.lY.epochToArcadeDate(t,this.contextTimeZone??"system");default:return t}}if(t)throw new Error(`Field ${e} does not exist`);return null}setField(e,t){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this._boundSchema.fieldsIndex.fields.map(e=>e.name)}isEmpty(){return this._boundSchema.fields.length<=0&&!this._hasGeometry()}castToText(e=!1){return JSON.stringify(this._boundTarget)}gdbVersion(){return null}fullSchema(){return this._boundSchema}castAsJson(){return{attributes:this._boundTarget.attributes,geometry:this.geometry()?.toJSON()??null}}castAsJsonAsync(){return Promise.resolve(this.castAsJson())}}function g(e){const t=[];for(const r in e)t.push({name:r,alias:r,type:"string"==typeof e[r]?"esriFieldTypeString":"esriFieldTypeDouble"});return t}},16215(e,t,r){r.d(t,{S:()=>i});const n=Symbol("BasemapInstance");function i(e){return null!=e&&"object"==typeof e&&n in e}r.d(t,["Y",0,n])},28076(e,t,r){var n=r(13337);const i={CIMVectorMarker:{scalesymbolsproportionally:!1,respectframe:!0,anchorpointunits:"Relative",offsetx:0,offsety:0,rotateclockwise:!1,rotation:0,size:10,enable:!0,colorlocked:!1},CIMPictureMarker:{scalex:1,texturefilter:"Draft",anchorpointunits:"Relative",offsetx:0,offsety:0,rotateclockwise:!1,rotation:0,size:10,enable:!0,colorlocked:!1},CIMTextSymbol:{angle:0,anglex:0,angley:0,halosize:1,height:10,horizontalalignment:"Left",kerning:!0,letterspacing:0,letterwidth:100,ligatures:!0,linegap:0,offsetx:0,offsety:0,strikethrough:!1,textcase:"Normal",textstring:"",underline:!1,verticalalignment:"Bottom",enable:!0,colorlocked:!1},CIMSolidStroke:{capstyle:"Round",joinstyle:"Round",miterlimit:4,width:4,enable:!0,colorlocked:!1},CIMPictureStroke:{texturefilter:"Draft",capstyle:"Round",joinstyle:"Round",miterlimit:4,width:4,enable:!0,colorlocked:!1},CIMGradientStroke:{capstyle:"Round",joinstyle:"Round",miterlimit:4,width:4,enable:!0,colorlocked:!1,gradientMethod:"AcrossLine",gradientSize:75,gradientSizeUnits:n.h.Relative,gradientType:"Discrete",interval:5},CIMSolidFill:{enable:!0,colorlocked:!1},CIMPictureFill:{offsetx:0,offsety:0,rotation:0,scalex:1,height:10,texturefilter:"Draft",enable:!0,colorlocked:!1},CIMHatchFill:{offsetx:0,offsety:0,rotation:0,separation:4,enable:!0,colorlocked:!1},CIMGradientFill:{enable:!0,angle:90,gradientMethod:"Linear",gradientSize:75,gradientSizeUnits:n.h.Relative,gradientType:"Discrete",interval:5},CIMGeometricEffectAddControlPoints:{angletolerance:120},CIMGeometricEffectArrow:{arrowtype:"OpenEnded",width:5},CIMGeometricEffectBuffer:{size:1},CIMGeometricEffectCircularSector:{radius:25,startangle:0,endangle:45},CIMGeometricEffectCut:{begincut:1,endcut:1,middlecut:0,invert:!1},CIMGeometricEffectDashes:{customendingoffset:0,linedashending:"NoConstraint",offsetalongline:0},CIMGeometricEffectDonut:{method:"Mitered",option:"Accurate",width:2},CIMGeometricEffectJog:{angle:225,length:20,position:50},CIMGeometricEffectControlMeasureLine:{rule:"FullGeometry",width:25},CIMGeometricEffectMove:{offsetx:1,offsety:-1},CIMGeometricEffectOffset:{method:"Square",offset:1,option:"Fast"},CIMGeometricEffectRadial:{angle:0,length:5},CIMGeometricEffectRotate:{angle:15},CIMGeometricEffectScale:{xscalefactor:1.15,yscalefactor:1.15},CIMGeometricEffectWave:{amplitude:2,period:3,seed:1,waveform:"Sinus"},CIMMarkerPlacementAlongLine:{customendingoffset:0,endings:"WithHalfGap",offsetalongline:0,placeperpart:!0,angletoline:!0,offset:0},CIMMarkerPlacementAtExtremities:{extremityplacement:"Both",offsetalongline:0,angletoline:!0,offset:0},CIMMarkerPlacementAtRatioPositions:{beginposition:0,endposition:0,flipfirst:!0,angletoline:!0,offset:0},CIMMarkerPlacementInsidePolygon:{gridangle:0,gridtype:"Fixed",offsetx:0,offsety:0,randomness:100,seed:0,shiftoddrows:!1,stepx:16,stepy:16,clipping:"ClipAtBoundary"},CIMMarkerPlacementOnLine:{relativeto:"LineMiddle",startpointoffset:0,angletoline:!0,offset:0},CIMMarkerPlacementOnVertices:{placeperpart:!0,placeoncontrolpoints:!0,placeonendpoints:!0,placeonregularvertices:!0,angletoline:!0,offset:0},CIMMarkerPlacementPolygonCenter:{method:"OnPolygon",offsetx:0,offsety:0,clipatboundary:!1},CIMAnimatedSymbolProperties:{playanimation:!1,reverseanimation:!1,randomizestarttime:!1,randomizestartseed:0,starttimeoffset:0,duration:3,endingduration:3,useendingduration:!1,repeattype:"Loop",repeatdelay:0,easing:"Linear"},CIMSymbolAnimationSize:{tosize:10},CIMSymbolAnimationScale:{scalefactor:1},CIMSymbolAnimationColor:{tocolor:[255,255,255,1],colormode:"Multiply"},CIMSymbolAnimationTransparency:{totransparency:0},CIMSymbolAnimationRotation:{torotation:0,rotateclockwise:!1},CIMSymbolAnimationOffset:{offsetx:0,offsety:0},CIMSymbolAnimationMoveAlongLine:{speed:30,distancealong:100,movementtype:"Distance"}};r.d(t,["D",0,i])},13337(e,t,r){r.d(t,["h",0,{Relative:0,Absolute:1}])},93397(e,t,r){r.d(t,{Bu:()=>T,DW:()=>C,FH:()=>_,FM:()=>a,Kn:()=>b,Kq:()=>G,MM:()=>d,Nl:()=>x,O2:()=>A,YC:()=>j,YF:()=>k,_1:()=>I,_d:()=>w,_h:()=>s,bs:()=>E,e6:()=>c,gQ:()=>o,jn:()=>p,lW:()=>u,ll:()=>L,mA:()=>f,oI:()=>$,pM:()=>v,pV:()=>M,pk:()=>P,rB:()=>Z,xo:()=>S,yX:()=>U,z9:()=>g,zb:()=>F,zr:()=>h});var n=r(28076);function i(e){let t=e.length;for(;t--;)if(!" /-,\n".includes(e.charAt(t)))return!1;return!0}function o(e,t){const r=[];let n=0,o=-1;do{if(o=e.indexOf("[",n),o>=n){if(o>n){const t=e.slice(n,o);r.push([t,null,i(t)])}if(n=o+1,o=e.indexOf("]",n),o>=n){if(o>n){const i=t[e.slice(n,o)];i&&r.push([null,i,!1])}n=o+1}}}while(-1!==o);if(n<e.length){const t=e.slice(n);r.push([t,null,i(t)])}return r}function s(e,t,r){let n="",i=null;for(const r of t){const[t,o,s]=r;if(null!=t&&""!==t)s?i=t:(null!=i&&(n+=i,i=null),n+=t);else{const t=e.readAttribute(o);null!=t&&""!==t&&(null!==i&&(n+=i,i=null),n+=t)}}return l(n,r)}function a(e,t,r,n){let i="",o=null;for(const n of t){const[t,s,a]=n;if(null!=t&&""!==t)a?o=t:(null!=o&&(i+=o,o=null),i+=t);else{let t=s;null!=r&&(t=D(s,r));const n=e.attributes[t];null!=n&&""!==n&&(null!=o&&(i+=o,o=null),i+=n)}}return l(i,n)}function l(e,t){switch("string"!=typeof e&&(e=String(e)),t){case"LowerCase":return e.toLowerCase();case"Allcaps":return e.toUpperCase();default:return e}}function c(e){return e?[e[0],e[1],e[2],e[3]/255]:[0,0,0,0]}function u(e){return e.data?.symbol??null}function d(e){return"CIMVectorMarker"===e.type||"CIMPictureMarker"===e.type||"CIMBarChartMarker"===e.type||"CIMCharacterMarker"===e.type||"CIMPieChartMarker"===e.type||"CIMStackedBarChartMarker"===e.type}function f(e){return"CIMGradientStroke"===e.type||"CIMPictureStroke"===e.type||"CIMSolidStroke"===e.type}function p(e){return null!=e&&("CIMGradientFill"===e.type||"CIMHatchFill"===e.type||"CIMPictureFill"===e.type||"CIMSolidFill"===e.type||"CIMWaterFill"===e.type)}function h(e){return null!=e&&("CIMMarkerPlacementAlongLineRandomSize"===e.type||"CIMMarkerPlacementAlongLineSameSize"===e.type||"CIMMarkerPlacementAlongLineVariableSize"===e.type||"CIMMarkerPlacementAtExtremities"===e.type||"CIMMarkerPlacementAtMeasuredUnits"===e.type||"CIMMarkerPlacementAtRatioPositions"===e.type||"CIMMarkerPlacementOnLine"===e.type||"CIMMarkerPlacementOnVertices"===e.type)}const m=(e,t=0)=>null==e||isNaN(e)?t:e;class y{constructor(e){this._import=e}getImportPromise(){return null==this._promise&&(this._promise=this._import().then(e=>this.module=e)),this._promise}}function g(e){return new y(e)}function M(e){if(!e)return"normal";switch(e.toLowerCase()){case"italic":return"italic";case"oblique":return"oblique";default:return"normal"}}function b(e){if(!e)return"normal";switch(e.toLowerCase()){case"bold":return"bold";case"bolder":return"bolder";case"lighter":return"lighter";default:return"normal"}}function w(e){let t="normal",r="normal";if(e){const n=e.toLowerCase();n.includes("italic")?t="italic":n.includes("oblique")&&(t="oblique"),n.includes("bold")?r="bold":n.includes("light")&&(r="lighter")}return{style:t,weight:r}}function C(e){return e.underline?"underline":e.strikethrough?"line-through":"none"}function v(e){if(!e)return null;switch(e.type){case"CIMPolygonSymbol":if(e.symbolLayers)for(const t of e.symbolLayers){const e=v(t);if(null!=e)return e}break;case"CIMTextSymbol":return v(e.symbol);case"CIMSolidFill":return e.color}return null}function I(e){if(e)switch(e.type){case"CIMPolygonSymbol":case"CIMLineSymbol":{const t=e.symbolLayers;if(t)for(const e of t){const t=I(e);if(null!=t)return t}break}case"CIMTextSymbol":return I(e.symbol);case"CIMSolidStroke":return e.color}}function S(e){if(e)switch(e.type){case"CIMPolygonSymbol":case"CIMLineSymbol":if(e.symbolLayers)for(const t of e.symbolLayers){const e=S(t);if(void 0!==e)return e}break;case"CIMTextSymbol":return S(e.symbol);case"CIMSolidStroke":case"CIMGradientStroke":case"CIMPictureStroke":return e.width}}function T(e){switch(e){case"Left":default:return"left";case"Right":return"right";case"Center":return"center";case"Justify":return"justify"}}function x(e){switch(e){default:case"Bottom":return"bottom";case"Top":return"top";case"Center":return"middle";case"Baseline":return"baseline"}}function A(e){return(e?Object.keys(e):[]).map(t=>({name:t,alias:t,type:"string"==typeof e[t]?"esriFieldTypeString":"esriFieldTypeDouble"}))}function k(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e}function F(e,t,r,n,i,o,s=!0){const{infos:a}=o;let l=1,c=0,u=0,d=0,f=1;for(const{absoluteAnchorPoint:e,offsetX:t,offsetY:r,rotation:n,size:i,frameHeight:o,rotateClockWise:p,scaleSymbolsProportionally:h}of a)f=e?1:l,u=N(t,r,c,f,u),d=R(t,r,c,f,d),o&&(h||s)&&(l*=i/o),c=z(n,p,c);const p=N(n,i,c,f,u),h=R(n,i,c,f,d);return{size:e*l,rotation:z(t,r,c),offsetX:p,offsetY:h}}function _(e){return e?.dashTemplate&&(e.dashTemplate=function(e){return"string"==typeof e?function(e){return e.split(" ").map(e=>Number(e))}(e):e}(e.dashTemplate)),e}function E(e){if(null==e)return"Normal";switch(e.type){case"CIMTextSymbol":return e.textCase??"Normal";case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":{const t=e.symbolLayers;if(!t)return"Normal";for(const e of t)if("CIMVectorMarker"===e.type)return E(e)}break;case"CIMVectorMarker":{const t=e.markerGraphics;if(!t)return"Normal";for(const e of t)if(e.symbol)return E(e.symbol)}}return"Normal"}function j(e){if(e)switch(e.type){case"CIMTextSymbol":return e.height;case"CIMPointSymbol":{let t=0;if(e.symbolLayers)for(const r of e.symbolLayers)if(r)switch(r.type){case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":case"CIMObjectMarker3D":case"CIMglTFMarker3D":{const e=r.size??n.D.CIMVectorMarker.size;e>t&&(t=e);break}}return t}case"CIMLineSymbol":case"CIMPolygonSymbol":{let t=0;if(e.symbolLayers)for(const r of e.symbolLayers)if(r)switch(r.type){case"CIMSolidStroke":case"CIMPictureStroke":case"CIMGradientStroke":{const e=r.width;null!=e&&e>t&&(t=e);break}case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":case"CIMObjectMarker3D":case"CIMglTFMarker3D":if(r.markerPlacement&&h(r.markerPlacement)){const e=r.size??n.D.CIMVectorMarker.size;e>t&&(t=e)}break;case"CIMPictureFill":{const e=r.height;null!=e&&e>t&&(t=e)}}return t}}}function D(e,t){if(null!==t){const r=t.get(e);return r?r.name:e}return e}function P(e){return e.map(e=>({...e,propertyName:k(e.propertyName)}))}function Z(e){const t={};for(const r in e){const n=e[r];t[k(r)]=n}return t}function L(e){if(!e)return 0;let t=0;for(const r of e)t+=O(r);return t}function O(e){if(!e)return 0;if(G(e))return e.inflateSize??256;switch(e.type){case"CIMGeometricEffectArrow":return Math.abs(.5*e.width);case"CIMGeometricEffectBuffer":return Math.abs(e.size);case"CIMGeometricEffectCircularSector":return Math.abs(e.radius??25);case"CIMGeometricEffectControlMeasureLine":return 500;case"CIMGeometricEffectExtension":return Math.abs(e.length);case"CIMGeometricEffectJog":return Math.abs(.5*e.length);case"CIMGeometricEffectMove":return Math.max(Math.abs(m(e.offsetX)),Math.abs(m(e.offsetY)));case"CIMGeometricEffectOffset":case"CIMGeometricEffectOffsetTangent":return Math.abs(e.offset);case"CIMGeometricEffectRadial":return Math.abs(e.length??5);case"CIMGeometricEffectRegularPolygon":return Math.abs(e.radius);case"CIMGeometricEffectRotate":case"CIMGeometricEffectScale":default:return 0;case"CIMGeometricEffectTaperedPolygon":return.5*Math.max(Math.abs(e.fromWidth),Math.abs(e.toWidth));case"CIMGeometricEffectWave":return Math.abs(e.amplitude);case"CIMGeometricEffectDonut":return Math.abs(e.width)}}function R(e,t,r,n,i){const o=r*Math.PI/180;if(o){const r=Math.cos(o);return(Math.sin(o)*e+r*t)*n+i}return t*n+i}function N(e,t,r,n,i){const o=r*Math.PI/180;return o?(Math.cos(o)*e-Math.sin(o)*t)*n+i:e*n+i}function z(e,t,r){return t?r-e:r+e}function U(e,t){return Math.max(Math.min((e??t)/100,1),0)}function G(e){return e.type.startsWith("Private")}function $(e){return null!=e&&function(e){return"setControlPoint"in e&&"getControlPoint"in e&&"setControlPointAt"in e&&"getControlPointAt"in e}(e)?e:void 0}r.d(t,["$w",0,m,"UE",0,e=>e.includes("data:image/svg+xml")])},93470(e,t,r){const n=[252,146,31,255],i={type:"esriSMS",style:"esriSMSCircle",size:6,color:n,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},o={type:"esriSLS",style:"esriSLSSolid",width:.75,color:n};r.d(t,["Cb",0,i,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,n,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,o])},79677(e,t,r){r.d(t,{A:()=>d});var n,i=r(5482),o=r(25482),s=r(88930),a=r(91429),l=(r(98623),r(10184)),c=r(36005),u=r(43937);let d=class extends o.o{static{n=this}static get allTime(){return f}static get empty(){return p}static fromArray(e){return new n({start:null!=e[0]?new Date(e[0]):e[0],end:null!=e[1]?new Date(e[1]):e[1]})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(n.allTime)}get isEmpty(){return this.equals(n.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new n({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,n=e.start?.getTime()??e.start,i=e.end?.getTime()??e.end;return t===n&&r===i}expandTo(e,t="system"){if(this.isEmpty||this.isAllTime||"unknown"===e)return this.clone();let r=this.start;r&&(r=(0,s.lL)(r,new l.A({value:1,unit:e}),t));let i=this.end;if(i){const r=(0,s.lL)(i,new l.A({value:1,unit:e}),t);i=i.getTime()===r.getTime()?r:(0,s.S1)(r,1,e,t)}return new n({start:r,end:i})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return n.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,i=e.start?.getTime()??-1/0,o=e.end?.getTime()??1/0;let s,a;return i>=t&&i<=r?s=i:t>=i&&t<=o&&(s=t),r>=i&&r<=o?a=r:o>=t&&o<=r&&(a=o),null==s||null==a||isNaN(s)||isNaN(a)?n.empty:new n({start:s===-1/0?null:new Date(s),end:a===1/0?null:new Date(a)})}offset(e,t,r="system"){if(this.isEmpty||this.isAllTime||"unknown"===t)return this.clone();const i=new n,{start:o,end:a}=this;return null!=o&&(i.start=(0,s.S1)(o,e,t,r)),null!=a&&(i.end=(0,s.S1)(a,e,t,r)),i}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return f.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new n({start:t,end:r})}};(0,i.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"end",void 0),(0,i.Cg)([(0,c.w)("end")],d.prototype,"readEnd",null),(0,i.Cg)([(0,u.K)("end")],d.prototype,"writeEnd",null),(0,i.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isAllTime",null),(0,i.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isEmpty",null),(0,i.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"start",void 0),(0,i.Cg)([(0,c.w)("start")],d.prototype,"readStart",null),(0,i.Cg)([(0,u.K)("start")],d.prototype,"writeStart",null),d=n=(0,i.Cg)([(0,a.$K)("esri.time.TimeExtent")],d);const f=new d,p=new d({start:void 0,end:void 0})},10184(e,t,r){r.d(t,{A:()=>u});var n=r(5482),i=r(69540),o=r(25482),s=r(88930),a=r(91429),l=r(73133),c=r(93223);let u=class extends((0,i.OU)(o.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,s.t)(this.value,this.unit,"milliseconds")}};(0,n.Cg)([(0,c.e)(l.j,{nonNullable:!0})],u.prototype,"unit",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0},nonNullable:!0})],u.prototype,"value",void 0),u=(0,n.Cg)([(0,a.$K)("esri.time.TimeInterval")],u)},20816(e,t,r){r.d(t,{We:()=>a,ZJ:()=>l,w5:()=>c});var n=r(11254);const i=(0,r(13069).vD)(),o=new Map,s=new Map;async function a(e,t,r){if(!e||!r)return!1;if(!t)return!0;const i=new URL(e).host;let s=o.get(i);if(!s){const t=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,"");s=(await(0,n.A)(t,{responseType:"json",query:{f:"json"}})).data.defaultVersionName}return s===t}async function l(e,t,n=!1){if(!e||!t)return!0;const o=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),a=s.get(o)?.entries();if(a)for(const[e,s]of a)if(s.name===t){const t=!s.stack?.hasForwardEdits();if(!t&&n){const[{deleteForwardEdits:t},{default:n}]=await Promise.all([r.e(2186).then(r.bind(r,32186)),r.e(2558).then(r.bind(r,32558))]),a=await t(o,e,new n({sessionId:i,moment:s.moment}));return a.success&&s.stack?.clearForwardEdits(),a.success}return t}return!0}function c(e,t){if(!e)return!1;const r=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),n=s.get(r)?.entries();if(n)for(const[e,r]of n)if(r.name===t)return"edit"===r.lockType;return!1}new Map,r.d(t,["TA",0,i,"Z3",0,o])}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9692],{87367(n,t,e){e.r(t),e.d(t,{registerFunctions:()=>C});var r=e(47609),o=e(67862),a=e(66395),i=e(85935),s=e(78502),l=e(78878),u=e(80672),c=e(98919),f=e(71163),d=e(4576),h=e(5443),m=e(91075),y=e(48526),w=e(86738),g=e(39829),S=e(82799),A=e(65864),N=e(70333),v=e(11254);async function D(n,t,e){const r=N.id?.findCredential(n.restUrl);if(!r)return null;if("loaded"===n.loadStatus&&""===t&&n.user?.sourceJSON&&!1===e)return n.user.sourceJSON;const o={responseType:"json",query:{f:"json"}};if(e&&(o.query.returnUserLicenseTypeExtensions=!0),""===t){const t=await(0,v.A)(n.restUrl+"/community/self",o);if(t.data){const n=t.data;if(n?.username)return n}return null}const a=await(0,v.A)(n.restUrl+"/community/users/"+t,o);if(a.data){const n=a.data;return n.error?null:n}return null}var O=e(54218);function J(n){if(null==n)return n;switch(typeof n){case"string":case"number":return n;default:throw new i.D$("InvalidParameter",null)}}function C(n){"async"===n.mode&&(n.functions.disjoint=function(t,e){return n.standardFunctionAsync(t,e,(n,t,r)=>(r=(0,l.H)(r),(0,c.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,l.H)(r),(0,c.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,l.H)(r),(0,c.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,l.H)(r),(0,c.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,l.H)(r),(0,c.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,l.H)(r),(0,c.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,l.H)(r),(0,c.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,l.E)(r,2,2,e),r[0]===r[1]||(r[0]instanceof m.A&&r[1]instanceof m.A?(0,f.C)("equals",[r[0].toJSON(),r[1].toJSON()]):((0,l.e)(r[0])&&(0,l.e)(r[1])||!!((0,l.r)(r[0])&&(0,l.r)(r[1])||(0,l.q)(r[0])&&(0,l.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,l.H)(r),(0,l.E)(r,3,3,e),r[0]instanceof m.A&&r[1]instanceof m.A)return(0,f.C)("relate",[r[0].toJSON(),r[1].toJSON(),(0,l.w)(r[2])]);if(r[0]instanceof m.A&&null===r[1])return!1;if(r[1]instanceof m.A&&null===r[0])return!1;if(null===r[0]&&null===r[1])return!1;throw new i.D$("InvalidParameter",e)})},n.functions.intersection=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,r)=>(r=(0,l.H)(r),(0,c.ZL)(r,e),null===r[0]||null===r[1]?null:(0,A.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,o)=>{if(0===(o=(0,l.H)(o)).length)throw new i.D$("WrongNumberOfParameters",e);const a=[];if(1===o.length)if((0,O.cy)(o[0])){for(const n of(0,l.H)(o[0]))if(null!==n){if(!(n instanceof m.A))throw new i.D$("InvalidParameter",e);a.push(n.toJSON())}}else{if(!(0,l.g)(o[0])){if(o[0]instanceof m.A)return(0,l.J)((0,s.Yq)(o[0]),t.spatialReference);if(null===o[0])return null;throw new i.D$("InvalidParameter",e)}for(const n of(0,l.H)(o[0].toArray()))if(null!==n){if(!(n instanceof m.A))throw new i.D$("InvalidParameter",e);a.push(n.toJSON())}}else for(const n of o)if(null!==n){if(!(n instanceof m.A))throw new i.D$("InvalidParameter",e);a.push(n.toJSON())}return 0===a.length?null:(0,A.rS)(await(0,f.C)("union",[a]))})},n.functions.difference=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,r)=>(r=(0,l.H)(r),(0,c.ZL)(r,e),null===r[0]?null:null===r[1]?(0,s.Yq)(r[0]):(0,A.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,l.H)(r),(0,c.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,A.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,l.H)(r),(0,l.E)(r,2,2,e),!(r[1]instanceof h.A)&&null!==r[1])throw new i.D$("InvalidParameter",e);if(null===r[0])return null;if(!(r[0]instanceof m.A))throw new i.D$("InvalidParameter",e);return null===r[1]?null:(0,A.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,l.H)(r),(0,l.E)(r,2,2,e),!(r[1]instanceof S.A)&&null!==r[1])throw new i.D$("InvalidParameter",e);if(null===r[0])return[];if(!(r[0]instanceof m.A))throw new i.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,A.rS)(n))})},n.functions.area=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,o)=>{if((0,l.E)(o,1,2,e),o=(0,l.H)(o),(0,l.k)(o[0])){const n=await o[0].sumArea(J(o[1]),null,t.abortSignal);if(t.abortSignal.aborted)throw new i.D$("Cancelled",e);return n}let a=o[0];if(((0,O.cy)(a)||(0,l.g)(a))&&(a=(0,l.K)(o[0],t.spatialReference)),null===a)return 0;if(!(a instanceof m.A))throw new i.D$("InvalidParameter",e);return(0,f.C)("area",[a.toJSON(),J(o[1])])})},n.functions.areageodetic=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,o)=>{(0,l.E)(o,1,3,e);let a=(o=(0,l.H)(o))[0];((0,O.cy)(a)||(0,l.g)(a))&&(a=(0,l.K)(a,t.spatialReference));const s=J(o[1]),u=(0,c.rE)(o[2]);if((0,l.k)(a)){const n=await a.sumArea(s,u,t.abortSignal);if(t.abortSignal.aborted)throw new i.D$("Cancelled",e);return n}if(null==a)return 0;if(!(0,l.f)(a))throw new i.D$("InvalidParameter",e);return(0,f.C)("geodeticArea",[a.toJSON(),s,u])})},n.functions.length=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,o)=>{if((0,l.E)(o,1,2,e),o=(0,l.H)(o),(0,l.k)(o[0])){const n=await o[0].sumLength(J(o[1]),null,t.abortSignal);if(t.abortSignal.aborted)throw new i.D$("Cancelled",e);return n}let a=o[0];if(((0,O.cy)(o[0])||(0,l.g)(o[0]))&&(a=(0,l.L)(o[0],t.spatialReference)),null===a)return 0;if(!(a instanceof m.A))throw new i.D$("InvalidParameter",e);return(0,f.C)("length",[a.toJSON(),J(o[1])])})},n.functions.length3d=function(t,r){return n.standardFunctionAsync(t,r,async(n,o,a)=>{if((0,l.E)(a,1,2,r),null===(a=(0,l.H)(a))[0])return 0;let s=a[0];if(((0,O.cy)(a[0])||(0,l.g)(a[0]))&&(s=(0,l.L)(a[0],t.spatialReference)),null===s)return 0;if(!(s instanceof m.A))throw new i.D$("InvalidParameter",r);if(!0===s.hasZ){const{convertFromSpatialReferenceUnit:n,toLengthUnit:t}=await Promise.resolve().then(e.bind(e,40547)),r=(0,c.UI)(s);return n(s.spatialReference,t(a[1]),r)}return(0,f.C)("length",[s.toJSON(),J(a[1])])})},n.functions.lengthgeodetic=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,o)=>{(0,l.E)(o,1,3,e);let a=(o=(0,l.H)(o))[0];((0,O.cy)(o[0])||(0,l.g)(o[0]))&&(a=(0,l.L)(o[0],t.spatialReference));const s=J(o[1]),u=(0,c.rE)(o[2]);if((0,l.k)(a)){const n=await a.sumLength(s,u,t.abortSignal);if(t.abortSignal.aborted)throw new i.D$("Cancelled",e);return n}if(null===a)return 0;if(!(0,l.f)(a))throw new i.D$("InvalidParameter",e);return(0,f.C)("geodeticLength",[a.toJSON(),s,u])})},n.functions.distance=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,o)=>{o=(0,l.H)(o),(0,l.E)(o,2,3,e);let a=o[0];if(((0,O.cy)(o[0])||(0,l.g)(o[0]))&&(a=(0,l.M)(o[0],t.spatialReference)),!(a instanceof m.A))throw new i.D$("InvalidParameter",e);let s=o[1];if(((0,O.cy)(o[1])||(0,l.g)(o[1]))&&(s=(0,l.M)(o[1],t.spatialReference)),!(s instanceof m.A))throw new i.D$("InvalidParameter",e);return(0,f.C)("distance",[a.toJSON(),s.toJSON(),J(o[2])])})},n.functions.distancegeodetic=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,r)=>{r=(0,l.H)(r),(0,l.E)(r,2,4,e);const o=r[0];if(!(o instanceof w.A))throw new i.D$("InvalidParameter",e);const a=r[1];if(!(a instanceof w.A))throw new i.D$("InvalidParameter",e);return(0,f.C)("geodeticDistance",[o.toJSON(),a.toJSON(),J(r[2]),(0,c.rE)(r[3])])})},n.functions.densify=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,r)=>{if(r=(0,l.H)(r),(0,l.E)(r,2,3,e),null===r[0])return null;if(!(r[0]instanceof m.A))throw new i.D$("InvalidParameter",e);const o=(0,l.v)(r[1]);if(isNaN(o))throw new i.D$("InvalidParameter",e);if(o<=0)throw new i.D$("InvalidParameter",e);switch(r[0].type){case"polygon":case"polyline":case"extent":return(0,A.rS)(await(0,f.C)("densify",[r[0].toJSON(),o,J(r[2])]));default:return r[0]}})},n.functions.densifygeodetic=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,r)=>{r=(0,l.H)(r),(0,l.E)(r,2,4,e);const o=r[0];if(null==o)return null;if(!(0,l.f)(o))throw new i.D$("InvalidParameter",e);const a=(0,l.v)(r[1]);if(isNaN(a))throw new i.D$("InvalidParameter",e);if(a<=0)throw new i.D$("InvalidParameter",e);const s=J(r[2]),u=(0,c.rE)(r[3]);switch(o.type){case"polygon":case"polyline":case"extent":return(0,A.rS)(await(0,f.C)("geodeticDensify",[o.toJSON(),a,s,u]));default:return o}})},n.functions.generalize=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,r)=>{if(r=(0,l.H)(r),(0,l.E)(r,2,4,e),null===r[0])return null;if(!(r[0]instanceof m.A))throw new i.D$("InvalidParameter",e);const o=(0,l.v)(r[1]);if(isNaN(o))throw new i.D$("InvalidParameter",e);const a=(0,l.N)((0,l.O)(r[2],!0));return(0,A.rS)(await(0,f.C)("generalize",[r[0].toJSON(),o,J(r[3]),{removeDegenerateParts:a}]))})},n.functions.buffer=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,r)=>{if(r=(0,l.H)(r),(0,l.E)(r,2,3,e),null===r[0])return null;if(!(r[0]instanceof m.A))throw new i.D$("InvalidParameter",e);const o=(0,l.v)(r[1]);if(isNaN(o))throw new i.D$("InvalidParameter",e);return 0===o?(0,s.Yq)(r[0]):(0,A.rS)(await(0,f.C)("buffer",[r[0].toJSON(),o,J(r[2])]))})},n.functions.buffergeodetic=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,r)=>{r=(0,l.H)(r),(0,l.E)(r,2,4,e);const o=r[0];if(null==o)return null;if(!(0,l.f)(o))throw new i.D$("InvalidParameter",e);const a=(0,l.v)(r[1]);if(isNaN(a))throw new i.D$("InvalidParameter",e);if(0===a)return(0,s.Yq)(o);const u=J(r[2]),d=(0,c.rE)(r[3]);return(0,A.rS)(await(0,f.C)("geodesicBuffer",[o.toJSON(),a,u,d]))})},n.functions.offset=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,r)=>{r=(0,l.H)(r),(0,l.E)(r,2,6,e);const o=r[0];if(null===o)return null;if(!(o instanceof g.A||o instanceof S.A))throw new i.D$("InvalidParameter",e);const a=(0,l.v)(r[1]);if(isNaN(a))throw new i.D$("InvalidParameter",e);const s=r[2],u=(0,c.R$)(r[3]),d=(0,l.v)((0,l.O)(r[4],10));if(isNaN(d))throw new i.D$("InvalidParameter",e);const h=(0,l.v)((0,l.O)(r[5],0));if(isNaN(h))throw new i.D$("InvalidParameter",e);return(0,A.rS)(await(0,f.C)("offset",[o.toJSON(),a,J(s),u,d,h]))})},n.functions.rotate=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,r)=>{r=(0,l.H)(r),(0,l.E)(r,2,3,e);const o=r[0];if(null===o)return null;if(!(o instanceof m.A))throw new i.D$("InvalidParameter",e);const a=(0,l.v)(r[1]);if(!Number.isFinite(a))throw new i.D$("InvalidParameter",e);const s=r[2];if(null!=s&&!(s instanceof w.A))throw new i.D$("InvalidParameter",e);return(0,A.rS)(await(0,f.C)("rotate",[o.toJSON(),a,s?.x,s?.y]))})},n.functions.centroid=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,o)=>{if(o=(0,l.H)(o),(0,l.E)(o,1,2,e),null===o[0])return null;const a=(0,c.Hz)(o[1]);let s=o[0];if(((0,O.cy)(o[0])||(0,l.g)(o[0]))&&(s="geometric"===a?(0,l.M)(o[0],t.spatialReference):(0,l.K)(o[0],t.spatialReference),null===s))return null;if(!(s instanceof m.A))throw new i.D$("InvalidParameter",e);return(0,A.rS)("geometric"===a?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,c.Cd)},n.functions.pointtocoordinate=function(t,e){return n.standardFunctionAsync(t,e,c.kr)},n.functions.distancetocoordinate=function(t,e){return n.standardFunctionAsync(t,e,c.Bn)},n.functions.multiparttosinglepart=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,r)=>{if(r=(0,l.H)(r),(0,l.E)(r,1,1,e),null===r[0])return null;if(!(r[0]instanceof m.A))throw new i.D$("InvalidParameter",e);return(await(0,f.C)("multiPartToSinglePart",[r[0].toJSON()])).map(n=>(0,A.rS)(n))})},n.functions.isselfintersecting=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,e)=>{(0,l.E)(e,1,1,t);let r=(e=(0,l.H)(e))[0];if(((0,O.cy)(e[0])||(0,l.g)(e[0]))&&(r=(0,l.L)(e[0],n.spatialReference)),r instanceof y.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 S.A||r instanceof g.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,l.H)(r),(0,l.E)(r,1,1,e),null===r[0])return!0;if(!(r[0]instanceof m.A))throw new i.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,l.H)(r),(0,l.E)(r,1,1,e),null===r[0])return null;if(!(r[0]instanceof m.A))throw new i.D$("InvalidParameter",e);return(0,A.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,l.H)(r),(0,l.E)(r,1,1,e),null===r[0])return null;if(!(r[0]instanceof m.A))throw new i.D$("InvalidParameter",e);return(0,A.rS)(await(0,f.C)("convexHull",[r[0].toJSON()]))})},n.functions.getuser=function(t,e){return n.standardFunctionAsync(t,e,async(n,a,s)=>{(0,l.E)(s,0,2,e);let c=(0,l.O)(s[1],""),f=!0===c;if(c=!0===c||!1===c?"":(0,l.w)(c),0===s.length||s[0]instanceof r.A){const n=(0,u.RI)(t,s.length>0?s[0]:null),e=await D(n,c,f);return null!=e?(0,o.Tg)(JSON.parse(JSON.stringify(e))):null}let d=null;if((0,l.k)(s[0])&&(d=s[0]),d){if(f=!1,c)return null;await d.load();const n=await d.getOwningSystemUrl();if(!n){if(!c){const n=await d.getIdentityUser();return null!=n?(0,o.Tg)({username:n}):null}return null}const e=(0,u.RI)(t,new r.A(n)),a=await D(e,c,f);return null!=a?(0,o.Tg)(JSON.parse(JSON.stringify(a))):null}throw new i.D$("InvalidParameter",e)})},n.functions.nearestcoordinate=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,r)=>{if(r=(0,l.H)(r),(0,l.E)(r,2,2,e),!(r[0]instanceof m.A||null===r[0]))throw new i.D$("InvalidParameter",e);if(!(r[1]instanceof w.A||null===r[1]))throw new i.D$("InvalidParameter",e);if(null===r[0]||null===r[1])return null;const o=r[0]instanceof h.A?g.A.fromExtent(r[0]):r[0],s=await(0,f.C)("getNearestCoordinate",[o.toJSON(),r[1].toJSON(),{calculateLeftRightSide:!0}]);return null===s?null:a.A.createMutable({__proto__:null,coordinate:(0,A.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,l.H)(r),(0,l.E)(r,2,2,e),!(r[0]instanceof m.A||null===r[0]))throw new i.D$("InvalidParameter",e);if(!(r[1]instanceof w.A||null===r[1]))throw new i.D$("InvalidParameter",e);if(null===r[0]||null===r[1])return null;const o=r[0]instanceof h.A?g.A.fromExtent(r[0]):r[0],s=await(0,f.C)("getNearestVertex",[o.toJSON(),r[1].toJSON()]);return null==s?null:a.A.createMutable({__proto__:null,coordinate:(0,A.rS)(s.coordinate),distance:s.distance,sideOfLine:s.sideOfLine})})})}},71163(n,t,e){e.d(t,{C:()=>l});var r=e(29953);let o,a,i=!1;function s(){return o??=(0,r.ho)("arcadeGeometryOperatorsWorker").then(n=>{a=n,i=!0,o=void 0})}async function l(n,t){return i?a.apply("invokeGeometryOp",[n,t]):(await s(),l(n,t))}},97770(n,t,e){e.d(t,{Ey:()=>E,F8:()=>L,J2:()=>P,Yq:()=>p,_m:()=>$,iS:()=>F,wj:()=>H});var r=e(66552),o=e(73444),a=e(98623),i=e(92647);const s={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},l={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},u={timeZone:"UTC"},c={year:"numeric",month:"numeric",day:"numeric"},f={year:"numeric",month:"long",day:"numeric"},d={year:"numeric",month:"short",day:"numeric"},h={year:"numeric",month:"long",weekday:"long",day:"numeric"},m={hour:"numeric",minute:"numeric"},y={...m,second:"numeric"},w={hourCycle:"h23"},g={...m,...w},S={...y,...w},A={"short-date":c,"short-date-short-time":{...c,...m},"short-date-short-time-24":{...c,...g},"short-date-long-time":{...c,...y},"short-date-long-time-24":{...c,...S},"short-date-le":c,"short-date-le-short-time":{...c,...m},"short-date-le-short-time-24":{...c,...g},"short-date-le-long-time":{...c,...y},"short-date-le-long-time-24":{...c,...S},"long-month-day-year":f,"long-month-day-year-short-time":{...f,...m},"long-month-day-year-short-time-24":{...f,...g},"long-month-day-year-long-time":{...f,...y},"long-month-day-year-long-time-24":{...f,...S},"day-short-month-year":d,"day-short-month-year-short-time":{...d,...m},"day-short-month-year-short-time-24":{...d,...g},"day-short-month-year-long-time":{...d,...y},"day-short-month-year-long-time-24":{...d,...S},"long-date":h,"long-date-short-time":{...h,...m},"long-date-short-time-24":{...h,...g},"long-date-long-time":{...h,...y},"long-date-long-time-24":{...h,...S},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":m,"long-time":y},N=(0,r.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),v={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"},D=new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)),O=D.find(({type:n})=>"month"===n)?.value.toLowerCase();function J(){const n=(0,o.lR)();return(n&&v[n])??(0,o.QC)()}"mart"!==O&&(v.bs="sr-Latn-CS");let C=new WeakMap;const I=A["short-date-short-time"];function P(n){return A[n]}function $(n){const{dateStyle:t,timeStyle:e,hour12:r,year:o,month:a}=n,i={};return t?i.dateStyle=t:o&&(i.year=o,i.month=a||void 0),e&&!i.year&&(i.timeStyle=e,i.hour12="auto"===r?void 0:"always"===r),i}function p(n,t=I){return function(n){let t=C.get(n);if(!t){const e=J(),r=H(n.timeZone??"system"),o={...n,timeZone:r};t=new Intl.DateTimeFormat(e,o),C.set(n,t)}return t}(t).format(n)}function F(n,t=I){return p(new Date(n),{...t,...u,...l})}function L(n,t=I){return p(new Date(`1970-01-01T${n}Z`),{...t,...u,...s})}function E(n,t=I){const e=i.c9.fromISO(n,{setZone:!0});if(!e.isValid)return n;if(t.timeZone)return p(e.toJSDate(),t);const r=0===e.offset?"UTC":t.timeZone,o={...t,timeZone:r};return e.toLocaleString(o,{locale:J()})}function H(n){switch(n){case"system":return a.N;case a.L:return"UTC";default:return n}}(0,o.Ml)(()=>{C=new WeakMap}),e.d(t,["_v",0,N])}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[547],{59534(e,r,t){t.d(r,{B:()=>a,b:()=>s});var n=t(85935);function a(e){return e.toLowerCase().replaceAll(/[\s-]+/g,"")}class s{constructor(e,r){const t=new Map;for(const r of e){const e=a(r);if(t.has(e))throw new Error(`${r} already added as ${t.get(e)}`);t.set(e,r)}if(null!=r)for(const[e,n]of r){const r=a(e);if(t.has(r))throw new Error(`${e} already associated with ${t.get(r)}`);t.set(r,n)}this._enumMap=t}lookup(e){return this._enumMap.get(a(e))}get(e){const r=this.lookup(e);if(null==r)throw new n.D$("InvalidParameter",null);return r}}},85935(e,r,t){t.d(r,{D$:()=>o,O$:()=>l,i2:()=>d,mT:()=>u,ps:()=>f});var n=t(799);const a={TypeNotAllowedInFeature:"Feature attributes only support dates, numbers, strings, guids.",LogicError:"Logic error - {reason}",CannotCompareDateAndTime:"Cannot compare date or dateonly with timeonly types",NeverReach:"Encountered unreachable logic",AsyncNotEnabled:"Async Arcade must be enabled for this script",ModuleAccessorMustBeString:"Module accessor must be a string",ModuleExportNotFound:"Module has no export with provided identifier",ModulesNotSupported:"Current profile does not support modules",ArrayAccessMustBeNumber:"Array accessor must be a number",FunctionNotFound:"Function not found",FieldNotFound:"Key not found - {key}",CircularModules:"Circular module dependencies are not allowed",Cancelled:"Execution cancelled",UnsupportedHashType:"Type not supported in hash function",IllegalResult:"Value is not a supported return type",PortalRequired:"Portal is required",InvalidParameter:"Invalid parameter",WrongNumberOfParameters:"Call with wrong number of parameters",Unrecognized:"Unrecognized code structure",UnrecognizedType:"Unrecognized type",WrongSpatialReference:"Cannot work with geometry in this spatial reference. It is different to the execution spatial reference",BooleanConditionRequired:"Conditions must use booleans",NoFunctionInDictionary:"Dictionaries cannot contain functions.",NoFunctionInArray:"Arrays cannot contain functions.",NoFunctionInTemplateLiteral:"Template Literals do not expect functions by value.",KeyAccessorMustBeString:"Accessor must be a string",KeyMustBeString:"Object keys must be a string",Immutable:"Object is immutable",UnexpectedToken:"Unexpected token",MemberOfNull:"Cannot access property of null object",MaximumCallDepth:"Exceeded maximum function depth",OutOfBounds:"Out of bounds",InvalidIdentifier:"Identifier not recognized",CallNonFunction:"Expression is not a function",InvalidMemberAccessKey:"Cannot access value using a key of this type",AssignModuleFunction:"Cannot assign function to module variable",UnsupportUnaryOperator:"Unsupported unary operator",UnsupportedOperator:"Unsupported operator",LogicalExpressionOnlyBoolean:"Logical expressions must be boolean",LogicExpressionOrAnd:"Logical expression can only be combined with || or &&",CannotChangeTimeZoneTime:"Cannot change the timezone of a Time",CannotChangeTimeZoneDateOnly:"Cannot change the timezone of a DateOnly",FeatureSetDoesNotHaveSubtypes:"FeatureSet does not have subtypes"};function s(e){return"object"==typeof e&&"line"in e&&"column"in e&&"number"==typeof e.line&&"number"==typeof e.column}class c extends Error{constructor(e,r){super(i(r)+("object"==typeof e&&null!=e&&"message"in e?e.message:""),{cause:e}),this.loc=r?.loc??null}}class o extends Error{constructor(e,r,t){super("Execution error - "+i(r)+(0,n.HC)(a[e],t)),this.declaredRootClass="esri.arcade.arcadeexecutionerror",this.loc=r?.loc??null}}function i(e){return null==e?.loc?"":`Line ${e.loc.start.line}:${e.loc.start.column}: `}class u extends Error{constructor(e,r,t){super("Compilation error - "+i(r)+(0,n.HC)(a[e],t)),this.declaredRootClass="esri.arcade.arcadecompilationerror",this.loc=r?.loc??null}}class l extends Error{constructor(){super("Uncompilable code structures"),this.declaredRootClass="esri.arcade.arcadeuncompilableerror"}}function d(e,r){return!function(e){if(e instanceof Error&&"loc"in e){const r=e.loc;return null==r||"object"==typeof r&&"start"in r&&null!=r.start&&s(r.start)&&(!("end"in r)||null==r.end||s(r.end))}return!1}(e)||null==e.loc&&null!=r?.loc?new c(e,r):e}const m={UnrecognizedUri:"Unrecognized uri - {uri}",UnsupportedUriProtocol:"Unrecognized uri protocol"};class f extends Error{constructor(e,r){super((0,n.HC)(m[e],r)),this.declaredRootClass="esri.arcade.arcademoduleerror"}}},71409(e,r,t){const n=new Map([[1025,109452],[1033,109451],[9001,109404],[9002,109405],[9003,109406],[9005,109407],[9014,109408],[9030,109409],[9031,109410],[9033,109411],[9034,109412],[9035,109413],[9036,109414],[9037,109415],[9038,109416],[9039,109417],[9040,109418],[9041,109419],[9042,109420],[9043,109421],[9050,109422],[9051,109423],[9052,109424],[9053,109425],[9060,109426],[9061,109427],[9062,109428],[9063,109429],[9070,109430],[9080,109431],[9081,109432],[9082,109433],[9083,109434],[9084,109435],[9085,109436],[9086,109437],[9087,109438],[9093,109439],[9094,109440],[9095,109441],[9096,109442],[9097,109444],[9098,109445],[9099,109446],[9300,109447],[9301,109448],[9302,109449],[109001,109442],[109002,109443],[109003,109444],[109004,109445],[109005,109450],[109006,109451],[109007,109452],[109008,109453],[109009,109454],[109010,109455],[109011,109456],[109012,109457],[109013,109458],[109014,109459],[109015,109462],[109016,109464],[109017,109465],[109018,109466],[109030,109460],[109031,109461]]);function a(e){return(r,t)=>[r,{type:e,wkid:r,factor:t}]}const s=a("angular"),c=new Map([s(1031,4.84813681109536e-9),s(9101,1),s(9102,.017453292519943295),s(9103,.0002908882086657216),s(9104,484813681109536e-20),s(9105,.015707963267948967),s(9106,.015707963267948967),s(9109,1e-6),s(9112,.00015707963267948965),s(9113,15707963267948967e-22),s(9114,.0009817477042468104)]),o=a("linear"),i=new Map([o(1025,.001),o(1033,.01),o(9001,1),o(9002,.3048),o(9003,.30480060960121924),o(9005,.3047972654),o(9014,1.8288),o(9030,1852),o(9031,1.0000135965),o(9033,20.11684023368047),o(9034,.2011684023368047),o(9035,1609.3472186944375),o(9036,1e3),o(9037,.9143917962),o(9038,20.1166195164),o(9039,.201166195164),o(9040,.9143984146160287),o(9041,.3047994715386762),o(9042,20.116765121552632),o(9043,.2011676512155263),o(9050,.9143992),o(9051,.3047997333333333),o(9052,20.1167824),o(9053,.201167824),o(9060,.9143992042898124),o(9061,.30479973476327077),o(9062,20.116782494375872),o(9063,.2011678249437587),o(9070,.30480083333333335),o(9080,.30479951024814694),o(9081,.30479841),o(9082,.3047996),o(9083,.3047995),o(9084,.9143985307444408),o(9085,.91439523),o(9086,.9143988),o(9087,.9143985),o(9093,1609.344),o(9094,.3047997101815088),o(9095,.3048007491),o(9096,.9144),o(9097,20.1168),o(9098,.201168),o(9099,.914398),o(9300,.30479933333333337),o(9301,20.116756),o(9302,.20116756),o(109001,.9144),o(109002,.9144018288036576),o(109003,20.1168),o(109004,.201168),o(109005,.1),o(109006,.01),o(109007,.001),o(109008,.0254),o(109009,.025400050800101603),o(109010,5.0292),o(109011,5.029210058420118),o(109012,1853.248),o(109013,1853.184),o(109014,1.7018),o(109015,.8466683600033867),o(109016,.00035277777777777776),o(109017,1e-6),o(109018,1e-9),o(109030,5e4),o(109031,15e4)]),u=i.get(9001),l=a("area"),d=new Map([l(109401,1e4),l(109402,4046.8564224),l(109403,4046.872609874252),l(109404,1),l(109405,.09290304),l(109406,.09290341161327487),l(109407,.09290137299531805),l(109408,3.34450944),l(109409,3429904),l(109410,1.000027193184865),l(109411,404.6872609874253),l(109412,.04046872609874252),l(109413,2589998.470319522),l(109414,1e6),l(109415,.8361123569578626),l(109416,404.6783807676053),l(109417,.04046783807676053),l(109418,.8361244606523066),l(109419,.09290271785025629),l(109420,404.6842389557165),l(109421,.04046842389557164),l(109422,.83612589696064),l(109423,.0929028774400711),l(109424,404.6849341289498),l(109425,.04046849341289498),l(109426,.836125904805842),l(109427,.09290287831176021),l(109428,404.6849379260275),l(109429,.04046849379260275),l(109430,.09290354800069446),l(109431,.09290274144751023),l(109432,.09290207073852812),l(109433,.09290279616016),l(109434,.09290273520025),l(109435,.836124673027592),l(109436,.8361186366467529),l(109437,.8361251654414399),l(109438,.83612461680225),l(109439,2589988.110336),l(109440,.09290286332673177),l(109441,.09290349665192114),l(109442,.83612736),l(109443,.8361307045194736),l(109444,404.68564224),l(109445,.040468564224),l(109446,.836123702404),l(109447,.09290263360044447),l(109448,404.683871963536),l(109449,.0404683871963536),l(109450,.01),l(109451,1e-4),l(109452,1e-6),l(109453,64516e-8),l(109454,.0006451625806477421),l(109455,25.29285264),l(109456,25.29295381171408),l(109457,3434528.149504),l(109458,3434290.937856),l(109459,2.89612324),l(109460,25e8),l(109461,225e8),l(109462,.7168473118308245),l(109463,100),l(109464,1.244521604938271e-7),l(109465,1e-12),l(109466,1e-18)]),m=d.get(109404);t.d(r,["A7",0,m,"L2",0,u,"SQ",0,n,"s9",0,i,"y6",0,d,"zD",0,c])},40547(e,r,t){t.d(r,{convert:()=>b,convertFromSpatialReferenceUnit:()=>C,convertToSpatialReferenceUnit:()=>q,meters:()=>s.L2,squareMeters:()=>s.A7,toAreaUnit:()=>g,toLengthUnit:()=>h});var n=t(59534),a=t(85935),s=t(71409);const c=[];function o(e){return 0===e.length?'""':e.startsWith('"')||e.startsWith(".")||e[0]>="0"&&e[0]<="9"?e:'"'+e.trim()+'"'}function i(e){let r="",t="",n=!1;for(let a=0;a<e.length;a++){const s=e[a];n?'"'===s?'"'===e[a+1]?(r+=`\\${s}`,a+=1):n=!1:r+=s:/\s/.test(s)||(","===s?(t+=""!==r?o(r)+",":",",r=""):")"===s||"]"===s?(t+=""!==r?o(r)+"]}":"]}",r=""):"("===s||"["===s?(t+='{ "entity": "'+r.toUpperCase().trim()+'", "values":[',r=""):'"'===s?(n=!0,r=""):r+=s)}return JSON.parse(t)}function u(e){try{for(let r=0;r<c.length;r++)if(c[r].spatialReferenceWkt===e)return c[r].unit;const r=l(i(e));if(null===r)return null;let t=null;for(const e of r.values)if("object"==typeof e&&("UNIT"===e.entity||"ANGLEUNIT"===e.entity||"LENGTHUNIT"===e.entity)){t=e;break}if(null===t)return null;const n=function(e,r,t){if(null!=t)try{if("EPSG"===t.values[0])return{type:e,wkid:Number.parseInt(t.values[1],10),factor:r}}catch(e){}return{type:e,factor:r}}("GEOGCS"===r.entity||"GEOGCRS"===r.entity?"angular":"linear",t.values[1],t.values[2]);return c.push({spatialReferenceWkt:e,unit:n}),c.length>10&&c.shift(),n}catch(e){return null}}function l(e){if(null===e)return null;switch(e.entity){case"GEOGCRS":case"GEOGCS":case"PROJCRS":case"PROJCS":return e}const r=[];for(const t of e.values)if("object"==typeof t&&void 0!==t.entity)switch(t.entity){case"GEOGCRS":case"GEOGCS":case"PROJCRS":case"PROJCS":return t;default:r.push(t)}for(const e of r){const r=l(e);if(null!=r)return r}return null}var d=t(86211),m=t(22530);function f(e,r){let t;switch(e){case"linear":t=s.s9;break;case"angular":t=s.zD;break;case"area":t=s.y6;break;default:return null}return t.get(r)}function p(e){const r=e.wkid;if(null!=r){const e=m.A.units[m.A[r]];if(null!=e)switch(e){case"Meter":return f("linear",9001);case"Foot":return f("linear",9002);case"Foot_US":return f("linear",9003);case"Foot_Clarke":return f("linear",9005);case"Yard_Clarke":return f("linear",9037);case"Link_Clarke":return f("linear",9039);case"Yard_Sears":return f("linear",9040);case"Foot_Sears":return f("linear",9041);case"Chain_Sears":return f("linear",9042);case"Chain_Benoit_1895_B":return f("linear",9062);case"Yard_Indian":return f("linear",9084);case"Yard_Indian_1937":return f("linear",9085);case"Foot_Gold_Coast":return f("linear",9094);case"Chain":return f("linear",9097);case"Chain_Sears_1922_Truncated":return f("linear",9301);case"50_Kilometers":return f("linear",109030);case"150_Kilometers":return f("linear",109031);default:throw new Error(`Unknown unit name: ${e}`)}return d.yD.has(r)?f("angular",9105):f("angular",9102)}const t=e.wkt2||e.wkt;if(null!=t){const e=u(t);if(null!=e){if(null!=e.wkid){const r=f(e.type,e.wkid);if(null!=r)return r}return{type:e.type,wkid:-1,factor:e.factor}}}return null}function y(e){if("linear"!==e.type)return null;if(-1===e.wkid)return{type:"area",wkid:-1,factor:e.factor**2};const r=s.SQ.get(e.wkid);return null==r?null:f("area",r)}function g(e){if(null!=e){if("number"==typeof e)return s.y6.get(e)??s.s9.get(e)??s.zD.get(e);if("string"!=typeof e)throw new a.D$("InvalidParameter",null);switch((0,n.B)(e)){case"meters":case"meter":case"m":case"squaremeters":case"squaremeter":return s.y6.get(109404);case"miles":case"mile":case"squaremile":case"squaremiles":return s.y6.get(109439);case"kilometers":case"kilometer":case"squarekilometers":case"squarekilometer":case"km":return s.y6.get(109414);case"acres":case"acre":case"ac":return s.y6.get(109402);case"hectares":case"hectare":case"ha":return s.y6.get(109401);case"yard":case"yd":case"yards":case"squareyards":case"squareyard":return s.y6.get(109442);case"feet":case"ft":case"foot":case"squarefeet":case"squarefoot":return s.y6.get(109405);case"nmi":case"nauticalmile":case"nauticalmiles":case"squarenauticalmile":case"squarenauticalmiles":return s.y6.get(109409);case"millimeter":case"millimeters":case"squaremillimeter":case"squaremillimeters":return s.y6.get(109452);case"centimeter":case"centimeters":case"squarecentimeter":case"squarecentimeters":return s.y6.get(109451);case"decimeter":case"decimeters":case"squaredecimeter":case"squaredecimeters":return s.y6.get(109450);case"inch":case"inches":case"squareinch":case"squareinches":return s.y6.get(109453);case"usfoot":case"usfeet":case"squareusfoot":case"squareusfeet":return s.y6.get(109406);case"usmile":case"usmiles":case"squareusmile":case"squareusmiles":return s.y6.get(109413)}}}function h(e){if(null!=e){if("number"==typeof e)return s.s9.get(e)??s.zD.get(e)??s.y6.get(e);if("string"!=typeof e)throw new a.D$("InvalidParameter",null);switch((0,n.B)(e)){case"meters":case"meter":case"m":case"squaremeters":case"squaremeter":case"hectares":case"hectare":case"ha":return s.s9.get(9001);case"miles":case"mile":case"squaremile":case"squaremiles":return s.s9.get(9093);case"kilometers":case"kilometer":case"squarekilometers":case"squarekilometer":case"km":return s.s9.get(9036);case"yard":case"yd":case"yards":case"squareyards":case"squareyard":case"acres":case"acre":case"ac":return s.s9.get(9096);case"feet":case"ft":case"foot":case"squarefeet":case"squarefoot":return s.s9.get(9002);case"nmi":case"nauticalmile":case"nauticalmiles":case"squarenauticalmile":case"squarenauticalmiles":return s.s9.get(9030);case"millimeter":case"millimeters":case"squaremillimeter":case"squaremillimeters":return s.s9.get(109007);case"centimeter":case"centimeters":case"squarecentimeter":case"squarecentimeters":return s.s9.get(109006);case"decimeter":case"decimeters":case"squaredecimeter":case"squaredecimeters":return s.s9.get(109005);case"inch":case"inches":case"squareinch":case"squareinches":return s.s9.get(109008);case"usfoot":case"usfeet":case"squareusfoot":case"squareusfeet":return s.s9.get(9003);case"usmile":case"usmiles":case"squareusmile":case"squareusmiles":return s.s9.get(9035)}}}function w(e,r,t){if(e.type!==r.type)throw new Error(`Incompatible unit types. src=${e.type} dest=${r.type}`);return t*(e.factor/r.factor)}function C(e,r,t){if(null==e||null==r)return t;const n=p(e);if(null==n)throw new Error("Unknown spatial reference unit.");const a="area"===r.type&&"linear"===n.type?y(n):n;if(null==a)throw new Error(`Unknown spatial reference ${r.type} unit.`);return w(a,r,t)}function q(e,r,t){if(null==e||null==r)return t;const n=p(r);if(null==n)throw new Error("Unknown spatial reference unit.");const a="area"===e.type&&"linear"===n.type?y(n):n;if(null==a)throw new Error(`Unknown spatial reference ${e.type} unit.`);return w(e,a,t)}function b(e,r,t){return null==e||null==r?t:w(e,r,t)}}}]);