@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,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__addDisposableResource as t,__disposeResources as e}from"tslib";import{getAssetUrl as r}from"../assets.js";import n from"../core/Error.js";import has from"../core/has.js";import{roundUpToNearest as s}from"../core/mathUtils.js";let i=null,o=null,l=null,a=null;const u=100903,c=4,E={vertices:new Float32Array(0),indices:new Uint32Array(0),outlineIndices:new Uint32Array(0),outlineRingLengths:new Uint32Array(0),vertexCount:0,indexCount:0,outlineIndexCount:0,outlineRingCount:0},d={vertices:new Float64Array(0),indices:new Uint32Array(0),outlineIndices:new Uint32Array(0),outlineRingLengths:new Uint32Array(0),vertexCount:0,indexCount:0,outlineIndexCount:0,outlineRingCount:0},h=2,p=2;function g(t,e){const r=t.reduce((t,e)=>t+e,0),n=t.length,i=Math.max(0,t.length-1),o=Math.max(0,r+2*i-2),l=Math.max(0,Math.ceil(r*h)),a=Math.max(0,Math.ceil(3*o*p)),u=s(a,3),c=r>0?Math.max(2,Math.ceil(.25*r)):0,E=r>0?Math.max(1,Math.ceil(c/3)):0;return{maxVertexCount:l,maxIndexCount:u,maxOutlineIndexCount:e?Math.max(0,r+n+c):0,maxOutlineRingCount:e?Math.max(0,n+E):0}}async function y(){return i??=C(),i}function f(){return null!==l}async function b(){return o??=m(),o}function w(){return null!==a}function x(){i=null,o=null,l=null,a=null}async function C(){const t=await import("../chunks/libtess-f32.js"),e=await t.default({locateFile:t=>r(`esri/core/libs/libtess/${t}`)});l=e}async function m(){const t=await import("../chunks/libtess-f64.js"),e=await t.default({locateFile:t=>r(`esri/core/libs/libtess/${t}`)});a=e}function _(r,s,i=2){const o={stack:[],error:void 0,hasError:!1};try{const e=l;if(!e)throw new n("libtess:not-loaded","libtessF32 not loaded");const a=t(o,S.from(e,r),!1),u=t(o,B.from(e,s),!1),E=c*(r.length/i),d=t(o,new S(e,E*i),!1),h=e.triangulate(a.ptr,u.ptr,u.size,i,d.ptr,E);if(has("esri-tessellation-debug")){const t=e.getError();0!==t&&console.warn("libtess:triangulation",N(t))}return{buffer:d.slice(0,h*i),vertexCount:h}}catch(a){o.error=a,o.hasError=!0}finally{e(o)}}function I(r,s,i=2,o=!0){const a={stack:[],error:void 0,hasError:!1};try{const d=l;if(!d)throw new n("libtess:not-loaded","libtessF32 not loaded");const h=t(a,S.from(d,r),!1),p=t(a,B.from(d,s),!1),y=t(a,new B(d,1),!1),f=t(a,new B(d,1),!1),b=t(a,new B(d,1),!1),w=t(a,new B(d,1),!1),{maxVertexCount:x,maxIndexCount:C,maxOutlineIndexCount:m,maxOutlineRingCount:_}=g(s,o);let I=0,R=0,T=0,A=0,M=0;{const r={stack:[],error:void 0,hasError:!1};try{const e=t(r,new S(d,x*i),!1),n=t(r,new B(d,C),!1),s=t(r,o?new B(d,m):null,!1),l=t(r,o?new B(d,_):null,!1);if(d.triangulateIndexed(h.ptr,p.ptr,p.size,i,e.ptr,x,i,n.ptr,C,y.ptr,f.ptr,s?.ptr??0,m,l?.ptr??0,_,b.ptr,w.ptr),M=d.getError(),I=L(d)[y.ptr/Int32Array.BYTES_PER_ELEMENT],R=L(d)[f.ptr/Int32Array.BYTES_PER_ELEMENT],T=L(d)[b.ptr/Int32Array.BYTES_PER_ELEMENT],A=L(d)[w.ptr/Int32Array.BYTES_PER_ELEMENT],0===M){const t=e.slice(0,I*i),r=n.slice(0,R),a=o&&s?s.slice(0,T):E.outlineIndices;return{vertices:t,indices:r,outlineIndices:a,outlineRingLengths:o&&l?l.slice(0,A):E.outlineRingLengths,vertexCount:I,indexCount:R,outlineIndexCount:o?T:0,outlineRingCount:o?A:0}}}catch(c){r.error=c,r.hasError=!0}finally{e(r)}}if(M!==u)return has("esri-tessellation-debug")&&0!==M&&console.warn("libtess:triangulation",N(M)),E;const P=t(a,new S(d,I*i),!1),v=t(a,new B(d,R),!1),Y=t(a,o?new B(d,T):null,!1),F=t(a,o?new B(d,A):null,!1);if(d.triangulateIndexed(h.ptr,p.ptr,p.size,i,P.ptr,I,i,v.ptr,R,y.ptr,f.ptr,Y?.ptr??0,o?T:0,F?.ptr??0,o?A:0,b.ptr,w.ptr),M=d.getError(),0!==M)return has("esri-tessellation-debug")&&console.warn("libtess:triangulation",N(M)),E;const k=L(d)[y.ptr/Int32Array.BYTES_PER_ELEMENT],z=L(d)[f.ptr/Int32Array.BYTES_PER_ELEMENT],U=L(d)[b.ptr/Int32Array.BYTES_PER_ELEMENT],O=L(d)[w.ptr/Int32Array.BYTES_PER_ELEMENT],j=P.slice(0,k*i),H=v.slice(0,z),V=o&&Y?Y.slice(0,U):E.outlineIndices;return{vertices:j,indices:H,outlineIndices:V,outlineRingLengths:o&&F?F.slice(0,O):E.outlineRingLengths,vertexCount:k,indexCount:z,outlineIndexCount:o?U:0,outlineRingCount:o?O:0}}catch(d){a.error=d,a.hasError=!0}finally{e(a)}}function R(r,s,i=2){const o={stack:[],error:void 0,hasError:!1};try{const e=a;if(!e)throw new n("libtess:not-loaded","libtessF64 not loaded");const l=t(o,v.from(e,r),!1),u=t(o,B.from(e,s),!1),E=c*(r.length/i),d=t(o,new v(e,E*i),!1),h=e.triangulate(l.ptr,u.ptr,u.size,i,d.ptr,E);if(has("esri-tessellation-debug")){const t=e.getError();0!==t&&console.warn("libtess:triangulation",N(t))}return{buffer:d.slice(0,h*i),vertexCount:h}}catch(l){o.error=l,o.hasError=!0}finally{e(o)}}function T(r,s,i=2,o=!0){const l={stack:[],error:void 0,hasError:!1};try{const E=a;if(!E)throw new n("libtess:not-loaded","libtessF64 not loaded");const h=t(l,v.from(E,r),!1),p=t(l,B.from(E,s),!1),y=t(l,new B(E,1),!1),f=t(l,new B(E,1),!1),b=t(l,new B(E,1),!1),w=t(l,new B(E,1),!1),{maxVertexCount:x,maxIndexCount:C,maxOutlineIndexCount:m,maxOutlineRingCount:_}=g(s,o);let I=0,R=0,T=0,A=0,M=0;{const r={stack:[],error:void 0,hasError:!1};try{const e=t(r,new v(E,x*i),!1),n=t(r,new B(E,C),!1),s=t(r,o?new B(E,m):null,!1),l=t(r,o?new B(E,_):null,!1);if(E.triangulateIndexed(h.ptr,p.ptr,p.size,i,e.ptr,x,i,n.ptr,C,y.ptr,f.ptr,s?.ptr??0,m,l?.ptr??0,_,b.ptr,w.ptr),M=E.getError(),I=L(E)[y.ptr/Int32Array.BYTES_PER_ELEMENT],R=L(E)[f.ptr/Int32Array.BYTES_PER_ELEMENT],T=L(E)[b.ptr/Int32Array.BYTES_PER_ELEMENT],A=L(E)[w.ptr/Int32Array.BYTES_PER_ELEMENT],0===M){const t=e.slice(0,I*i),r=n.slice(0,R),a=o&&s?s.slice(0,T):d.outlineIndices;return{vertices:t,indices:r,outlineIndices:a,outlineRingLengths:o&&l?l.slice(0,A):d.outlineRingLengths,vertexCount:I,indexCount:R,outlineIndexCount:o?T:0,outlineRingCount:o?A:0}}}catch(c){r.error=c,r.hasError=!0}finally{e(r)}}if(M!==u)return has("esri-tessellation-debug")&&console.warn("libtess:triangulation",N(M)),d;const P=t(l,new v(E,I*i),!1),S=t(l,new B(E,R),!1),Y=t(l,o?new B(E,T):null,!1),F=t(l,o?new B(E,A):null,!1);if(E.triangulateIndexed(h.ptr,p.ptr,p.size,i,P.ptr,I,i,S.ptr,R,y.ptr,f.ptr,Y?.ptr??0,o?T:0,F?.ptr??0,o?A:0,b.ptr,w.ptr),M=E.getError(),0!==M)return has("esri-tessellation-debug")&&console.warn("libtess:triangulation",N(M)),d;const k=L(E)[y.ptr/Int32Array.BYTES_PER_ELEMENT],z=L(E)[f.ptr/Int32Array.BYTES_PER_ELEMENT],U=L(E)[b.ptr/Int32Array.BYTES_PER_ELEMENT],O=L(E)[w.ptr/Int32Array.BYTES_PER_ELEMENT],j=P.slice(0,k*i),H=S.slice(0,z),V=o&&Y?Y.slice(0,U):d.outlineIndices;return{vertices:j,indices:H,outlineIndices:V,outlineRingLengths:o&&F?F.slice(0,O):d.outlineRingLengths,vertexCount:k,indexCount:z,outlineIndexCount:o?U:0,outlineRingCount:o?O:0}}catch(E){l.error=E,l.hasError=!0}finally{e(l)}}function A(t){return t.HEAPF64}function M(t){return t.HEAPF32}function L(t){return t.HEAP32}function P(t){const e=L(t);return new Uint32Array(e.buffer,e.byteOffset,e.length)}class S{static from(t,e){const r=new S(t,e.length);return r.set(e),r}constructor(t,e){this._libtess=t,this.size=e,this.ptr=t.allocateCoordinateArray(e)}destroy(){this._libtess.destroyCoordinateArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Float32Array.BYTES_PER_ELEMENT}set(t){M(this._libtess).set(t,this.ptr/this.bytesPerCoordinate)}slice(t,e){const r=this.ptr/this.bytesPerCoordinate;return M(this._libtess).slice(r+t,r+e)}}class v{static from(t,e){const r=new v(t,e.length);return r.set(e),r}constructor(t,e){this._libtess=t,this.size=e,this.ptr=t.allocateCoordinateArray(e)}destroy(){this._libtess.destroyCoordinateArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Float64Array.BYTES_PER_ELEMENT}set(t){A(this._libtess).set(t,this.ptr/this.bytesPerCoordinate)}slice(t,e){const r=this.ptr/this.bytesPerCoordinate;return A(this._libtess).slice(r+t,r+e)}}class B{static from(t,e){const r=new B(t,e.length);return r.set(e),r}constructor(t,e){this._libtess=t,this.size=e,this.ptr=t.allocateLengthsArray(e)}destroy(){this._libtess.destroyLengthsArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Int32Array.BYTES_PER_ELEMENT}set(t){L(this._libtess).set(t,this.ptr/this.bytesPerCoordinate)}slice(t,e){const r=this.ptr/this.bytesPerCoordinate;return P(this._libtess).slice(r+t,r+e)}}function N(t){switch(t){case 100903:return"Insufficient output buffer";case 100902:return"Out of memory";case 100151:return"Missing begin polygon";case 100152:return"Missing begin contour";case 100153:return"Missing end polygon";case 100154:return"Missing end countour";case 100155:return"Coordinates too large";case 100156:return"Missing combine callback";default:return`Unknown: ${t}`}}export{f as isLibtessF32Loaded,w as isLibtessF64Loaded,y as loadLibtessF32,b as loadLibtessF64,_ as triangulateF32,R as triangulateF64,I as triangulateIndexedF32,T as triangulateIndexedF64,x as unload};
2
+ import{__addDisposableResource as t,__disposeResources as e}from"tslib";import{getAssetUrl as r}from"../assets.js";import n from"../core/Error.js";import has from"../core/has.js";import{roundUpToNearest as s}from"../core/mathUtils.js";let i=null,o=null,l=null,a=null;const u=100903,c=4,E={vertices:new Float32Array(0),indices:new Uint32Array(0),outlineIndices:new Uint32Array(0),outlineRingLengths:new Uint32Array(0),vertexCount:0,indexCount:0,outlineIndexCount:0,outlineRingCount:0},d={vertices:new Float64Array(0),indices:new Uint32Array(0),outlineIndices:new Uint32Array(0),outlineRingLengths:new Uint32Array(0),vertexCount:0,indexCount:0,outlineIndexCount:0,outlineRingCount:0},h=2,p=2;function g(t,e){const r=t.reduce((t,e)=>t+e,0),n=t.length,i=Math.max(0,t.length-1),o=Math.max(0,r+2*i-2),l=Math.max(0,Math.ceil(r*h)),a=Math.max(0,Math.ceil(3*o*p)),u=s(a,3),c=r>0?Math.max(2,Math.ceil(.25*r)):0,E=r>0?Math.max(1,Math.ceil(c/3)):0;return{maxVertexCount:l,maxIndexCount:u,maxOutlineIndexCount:e?Math.max(0,r+n+c):0,maxOutlineRingCount:e?Math.max(0,n+E):0}}async function y(){return i??=C(),i}function f(){return null!==l}async function b(){return o??=m(),o}function w(){return null!==a}function x(){i=null,o=null,l=null,a=null}async function C(){const t=await(import("../chunks/libtess-f32.js")),e=await t.default({locateFile:t=>r(`esri/core/libs/libtess/${t}`)});l=e}async function m(){const t=await(import("../chunks/libtess-f64.js")),e=await t.default({locateFile:t=>r(`esri/core/libs/libtess/${t}`)});a=e}function _(r,s,i=2){const o={stack:[],error:void 0,hasError:!1};try{const e=l;if(!e)throw new n("libtess:not-loaded","libtessF32 not loaded");const a=t(o,S.from(e,r),!1),u=t(o,B.from(e,s),!1),E=c*(r.length/i),d=t(o,new S(e,E*i),!1),h=e.triangulate(a.ptr,u.ptr,u.size,i,d.ptr,E);if(has("esri-tessellation-debug")){const t=e.getError();0!==t&&console.warn("libtess:triangulation",N(t))}return{buffer:d.slice(0,h*i),vertexCount:h}}catch(a){o.error=a,o.hasError=!0}finally{e(o)}}function I(r,s,i=2,o=!0){const a={stack:[],error:void 0,hasError:!1};try{const d=l;if(!d)throw new n("libtess:not-loaded","libtessF32 not loaded");const h=t(a,S.from(d,r),!1),p=t(a,B.from(d,s),!1),y=t(a,new B(d,1),!1),f=t(a,new B(d,1),!1),b=t(a,new B(d,1),!1),w=t(a,new B(d,1),!1),{maxVertexCount:x,maxIndexCount:C,maxOutlineIndexCount:m,maxOutlineRingCount:_}=g(s,o);let I=0,R=0,T=0,A=0,M=0;{const r={stack:[],error:void 0,hasError:!1};try{const e=t(r,new S(d,x*i),!1),n=t(r,new B(d,C),!1),s=t(r,o?new B(d,m):null,!1),l=t(r,o?new B(d,_):null,!1);if(d.triangulateIndexed(h.ptr,p.ptr,p.size,i,e.ptr,x,i,n.ptr,C,y.ptr,f.ptr,s?.ptr??0,m,l?.ptr??0,_,b.ptr,w.ptr),M=d.getError(),I=L(d)[y.ptr/Int32Array.BYTES_PER_ELEMENT],R=L(d)[f.ptr/Int32Array.BYTES_PER_ELEMENT],T=L(d)[b.ptr/Int32Array.BYTES_PER_ELEMENT],A=L(d)[w.ptr/Int32Array.BYTES_PER_ELEMENT],0===M){const t=e.slice(0,I*i),r=n.slice(0,R),a=o&&s?s.slice(0,T):E.outlineIndices;return{vertices:t,indices:r,outlineIndices:a,outlineRingLengths:o&&l?l.slice(0,A):E.outlineRingLengths,vertexCount:I,indexCount:R,outlineIndexCount:o?T:0,outlineRingCount:o?A:0}}}catch(c){r.error=c,r.hasError=!0}finally{e(r)}}if(M!==u)return has("esri-tessellation-debug")&&0!==M&&console.warn("libtess:triangulation",N(M)),E;const P=t(a,new S(d,I*i),!1),v=t(a,new B(d,R),!1),Y=t(a,o?new B(d,T):null,!1),F=t(a,o?new B(d,A):null,!1);if(d.triangulateIndexed(h.ptr,p.ptr,p.size,i,P.ptr,I,i,v.ptr,R,y.ptr,f.ptr,Y?.ptr??0,o?T:0,F?.ptr??0,o?A:0,b.ptr,w.ptr),M=d.getError(),0!==M)return has("esri-tessellation-debug")&&console.warn("libtess:triangulation",N(M)),E;const k=L(d)[y.ptr/Int32Array.BYTES_PER_ELEMENT],z=L(d)[f.ptr/Int32Array.BYTES_PER_ELEMENT],U=L(d)[b.ptr/Int32Array.BYTES_PER_ELEMENT],O=L(d)[w.ptr/Int32Array.BYTES_PER_ELEMENT],j=P.slice(0,k*i),H=v.slice(0,z),V=o&&Y?Y.slice(0,U):E.outlineIndices;return{vertices:j,indices:H,outlineIndices:V,outlineRingLengths:o&&F?F.slice(0,O):E.outlineRingLengths,vertexCount:k,indexCount:z,outlineIndexCount:o?U:0,outlineRingCount:o?O:0}}catch(d){a.error=d,a.hasError=!0}finally{e(a)}}function R(r,s,i=2){const o={stack:[],error:void 0,hasError:!1};try{const e=a;if(!e)throw new n("libtess:not-loaded","libtessF64 not loaded");const l=t(o,v.from(e,r),!1),u=t(o,B.from(e,s),!1),E=c*(r.length/i),d=t(o,new v(e,E*i),!1),h=e.triangulate(l.ptr,u.ptr,u.size,i,d.ptr,E);if(has("esri-tessellation-debug")){const t=e.getError();0!==t&&console.warn("libtess:triangulation",N(t))}return{buffer:d.slice(0,h*i),vertexCount:h}}catch(l){o.error=l,o.hasError=!0}finally{e(o)}}function T(r,s,i=2,o=!0){const l={stack:[],error:void 0,hasError:!1};try{const E=a;if(!E)throw new n("libtess:not-loaded","libtessF64 not loaded");const h=t(l,v.from(E,r),!1),p=t(l,B.from(E,s),!1),y=t(l,new B(E,1),!1),f=t(l,new B(E,1),!1),b=t(l,new B(E,1),!1),w=t(l,new B(E,1),!1),{maxVertexCount:x,maxIndexCount:C,maxOutlineIndexCount:m,maxOutlineRingCount:_}=g(s,o);let I=0,R=0,T=0,A=0,M=0;{const r={stack:[],error:void 0,hasError:!1};try{const e=t(r,new v(E,x*i),!1),n=t(r,new B(E,C),!1),s=t(r,o?new B(E,m):null,!1),l=t(r,o?new B(E,_):null,!1);if(E.triangulateIndexed(h.ptr,p.ptr,p.size,i,e.ptr,x,i,n.ptr,C,y.ptr,f.ptr,s?.ptr??0,m,l?.ptr??0,_,b.ptr,w.ptr),M=E.getError(),I=L(E)[y.ptr/Int32Array.BYTES_PER_ELEMENT],R=L(E)[f.ptr/Int32Array.BYTES_PER_ELEMENT],T=L(E)[b.ptr/Int32Array.BYTES_PER_ELEMENT],A=L(E)[w.ptr/Int32Array.BYTES_PER_ELEMENT],0===M){const t=e.slice(0,I*i),r=n.slice(0,R),a=o&&s?s.slice(0,T):d.outlineIndices;return{vertices:t,indices:r,outlineIndices:a,outlineRingLengths:o&&l?l.slice(0,A):d.outlineRingLengths,vertexCount:I,indexCount:R,outlineIndexCount:o?T:0,outlineRingCount:o?A:0}}}catch(c){r.error=c,r.hasError=!0}finally{e(r)}}if(M!==u)return has("esri-tessellation-debug")&&console.warn("libtess:triangulation",N(M)),d;const P=t(l,new v(E,I*i),!1),S=t(l,new B(E,R),!1),Y=t(l,o?new B(E,T):null,!1),F=t(l,o?new B(E,A):null,!1);if(E.triangulateIndexed(h.ptr,p.ptr,p.size,i,P.ptr,I,i,S.ptr,R,y.ptr,f.ptr,Y?.ptr??0,o?T:0,F?.ptr??0,o?A:0,b.ptr,w.ptr),M=E.getError(),0!==M)return has("esri-tessellation-debug")&&console.warn("libtess:triangulation",N(M)),d;const k=L(E)[y.ptr/Int32Array.BYTES_PER_ELEMENT],z=L(E)[f.ptr/Int32Array.BYTES_PER_ELEMENT],U=L(E)[b.ptr/Int32Array.BYTES_PER_ELEMENT],O=L(E)[w.ptr/Int32Array.BYTES_PER_ELEMENT],j=P.slice(0,k*i),H=S.slice(0,z),V=o&&Y?Y.slice(0,U):d.outlineIndices;return{vertices:j,indices:H,outlineIndices:V,outlineRingLengths:o&&F?F.slice(0,O):d.outlineRingLengths,vertexCount:k,indexCount:z,outlineIndexCount:o?U:0,outlineRingCount:o?O:0}}catch(E){l.error=E,l.hasError=!0}finally{e(l)}}function A(t){return t.HEAPF64}function M(t){return t.HEAPF32}function L(t){return t.HEAP32}function P(t){const e=L(t);return new Uint32Array(e.buffer,e.byteOffset,e.length)}class S{static from(t,e){const r=new S(t,e.length);return r.set(e),r}constructor(t,e){this._libtess=t,this.size=e,this.ptr=t.allocateCoordinateArray(e)}destroy(){this._libtess.destroyCoordinateArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Float32Array.BYTES_PER_ELEMENT}set(t){M(this._libtess).set(t,this.ptr/this.bytesPerCoordinate)}slice(t,e){const r=this.ptr/this.bytesPerCoordinate;return M(this._libtess).slice(r+t,r+e)}}class v{static from(t,e){const r=new v(t,e.length);return r.set(e),r}constructor(t,e){this._libtess=t,this.size=e,this.ptr=t.allocateCoordinateArray(e)}destroy(){this._libtess.destroyCoordinateArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Float64Array.BYTES_PER_ELEMENT}set(t){A(this._libtess).set(t,this.ptr/this.bytesPerCoordinate)}slice(t,e){const r=this.ptr/this.bytesPerCoordinate;return A(this._libtess).slice(r+t,r+e)}}class B{static from(t,e){const r=new B(t,e.length);return r.set(e),r}constructor(t,e){this._libtess=t,this.size=e,this.ptr=t.allocateLengthsArray(e)}destroy(){this._libtess.destroyLengthsArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Int32Array.BYTES_PER_ELEMENT}set(t){L(this._libtess).set(t,this.ptr/this.bytesPerCoordinate)}slice(t,e){const r=this.ptr/this.bytesPerCoordinate;return P(this._libtess).slice(r+t,r+e)}}function N(t){switch(t){case 100903:return"Insufficient output buffer";case 100902:return"Out of memory";case 100151:return"Missing begin polygon";case 100152:return"Missing begin contour";case 100153:return"Missing end polygon";case 100154:return"Missing end countour";case 100155:return"Coordinates too large";case 100156:return"Missing combine callback";default:return`Unknown: ${t}`}}export{f as isLibtessF32Loaded,w as isLibtessF64Loaded,y as loadLibtessF32,b as loadLibtessF64,_ as triangulateF32,R as triangulateF64,I as triangulateIndexedF32,T as triangulateIndexedF64,x as unload};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{isSome as r}from"../../core/arrayUtils.js";import{execute as o,supportsCurves as t,executeMany as s}from"./gx/operatorAffineTransform.js";import{getSpatialReference as e,toGeometry as n,fromGeometry as a}from"./support/apiConverter.js";function p(r,t){const s=e(r);return n(o(a(r),t.transform),s)}function f(o,t){const p=o.map(a),f=e(o);return s(p,t.transform).map(r=>n(r,f)).filter(r)}const m=t();export{p as execute,f as executeMany,m as supportsCurves};
2
+ import{isSome as r}from"../../core/arrayUtils.js";import{supportsCurves as o,execute as t,executeMany as s}from"./gx/operatorAffineTransform.js";import{getSpatialReference as e,toGeometry as n,fromGeometry as a}from"./support/apiConverter.js";function p(r,o){const s=e(r);return n(t(a(r),o.transform),s)}function f(o,t){const p=o.map(a),f=e(o);return s(p,t.transform).map(r=>n(r,f)).filter(r)}const m=o();export{p as execute,f as executeMany,m as supportsCurves};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- export{e as execute,s as supportsCurves}from"../../chunks/centroidOperator.js";import"./support/apiConverter.js";
2
+ import"../../chunks/OperatorCentroid2D.js";import"./support/apiConverter.js";export{e as execute,s as supportsCurves}from"../../chunks/centroidOperator.js";
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{convertUnit as e}from"../../core/units.js";import{execute as t,load as r,supportsCurves as o,isLoaded as s}from"./gx/operatorGeodeticDistance.js";import{geodeticCurveType as i}from"./support/geodeticCurveType.js";let a,n,p,c;function u(){return!!a&&s()}async function m(){if(!u()){const[e]=await Promise.all([import("./support/apiConverter.js"),r()]);a=e.fromGeometry,n=e.fromSpatialReference,p=e.getSpatialReference,c=o()}}function f(r,o,s={}){const{curveType:c="geodesic",unit:u}=s,m=p(r);let f=t(a(r),a(o),n(m),i[c]);return f&&u&&(f=e(f,"meters",u)),f}export{f as execute,u as isLoaded,m as load,c as supportsCurves};
2
+ import"../../core/units.js";import"./gx/operatorGeodeticDistance.js";import"./support/geodeticCurveType.js";export{e as execute,i as isLoaded,l as load,s as supportsCurves}from"../../chunks/geodeticDistanceOperator.js";
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{S as r}from"../../../chunks/SimpleGeometryCursor.js";import{G as e}from"../../../chunks/GeometryCursor.js";import{c as t}from"../../../chunks/Geometry.js";class n{getOperatorType(){return 10303}supportsCurves(){return!0}accelerateGeometry(r,e,t){return!1}canAccelerateGeometry(r){return!1}executeMany(r,e,t){return new o(r,e,t)}execute(r,e,t){const n=r.clone();return n.applyTransformation(e),n}}class o extends e{m_inputGeometryCursor;m_transformation;m_index;constructor(r,e,t){super(),this.m_index=-1,this.m_transformation=e.clone(),this.m_inputGeometryCursor=r}next(){let r;if(r=this.m_inputGeometryCursor.next()){t(r),this.m_index=this.m_inputGeometryCursor.getGeometryID();const e=r.clone();return e.applyTransformation(this.m_transformation),e}return null}getGeometryID(){return this.m_index}tock(){return!0}getRank(){return 1}}const s=new n;function u(r,e){return s.execute(r,e,null)}function m(e,t){const n=s.executeMany(new r(e),t,null);return Array.from(n)}function i(){return s.supportsCurves()}export{u as execute,m as executeMany,i as supportsCurves};
2
+ import{S as r}from"../../../chunks/SimpleGeometryCursor.js";import{O as n}from"../../../chunks/OperatorAffineTransform.js";const e=new n;function o(r,n){return e.execute(r,n,null)}function t(n,o){const t=e.executeMany(new r(n),o,null);return Array.from(t)}function u(){return e.supportsCurves()}export{o as execute,t as executeMany,u as supportsCurves};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{S as e}from"../../../chunks/SimpleGeometryCursor.js";import{G as r}from"../../../chunks/GeometryCursor.js";import{E as t,n as s}from"../../../chunks/MultiPathImpl.js";import{G as o,h as n}from"../../../chunks/Geometry.js";import{Envelope2D as m}from"../../../chunks/Envelope2D.js";import{c as u}from"../../../chunks/Envelope.js";import{t as i,ay as l}from"../../../chunks/SpatialReference.js";class p{getOperatorType(){return 10008}accelerateGeometry(e,r,t){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}execute(e,r,t,s){const o=(new i).executeMany(e,t,s);return new c(o,r,t,s)}}class c extends r{m_polygons;m_polylines;m_resultPolygons=null;m_sr;m_progressTracker;m_bFirst;constructor(e,r,t,s){super(),this.m_polygons=e,this.m_polylines=r,this.m_sr=t,this.m_progressTracker=s,this.m_bFirst=!0}tock(){return!0}getRank(){return 1}next(){return this.m_bFirst&&(this.performOperation(),this.m_bFirst=!1),this.m_resultPolygons?this.m_resultPolygons.next():null}getGeometryID(){return null!=this.m_resultPolygons?this.m_resultPolygons.getGeometryID():-1}performOperation(){const e=new m,r=new t;let i,p=s;for(;i=this.m_polylines.next();){if(i.getGeometryType()!==o.enumPolyline||i.isEmpty())continue;p===s?p=r.addGeometry(i):r.appendGeometry(p,i);const t=new m;i.queryEnvelope(t),e.mergeEnvelope2D(t)}if(0===r.getTotalPointCount())return;for(;i=this.m_polygons.next();){if(!n(i.getGeometryType())||i.isEmpty())continue;const t=new m;i.queryEnvelope(t),e.mergeEnvelope2D(t),r.addGeometry(i)}const c=u(this.m_sr,e,!0);this.m_resultPolygons=l(r,p,c,this.m_progressTracker)}}const y=new p;function a(r,t,s){const o=y.execute(new e(r),new e(t),s,null);return Array.from(o)}function h(){return y.supportsCurves()}export{a as execute,h as supportsCurves};
2
+ import{S as e}from"../../../chunks/SimpleGeometryCursor.js";import{G as r}from"../../../chunks/GeometryCursor.js";import{E as t,n as s}from"../../../chunks/MultiPathImpl.js";import{G as o,l as n}from"../../../chunks/Geometry.js";import{Envelope2D as m}from"../../../chunks/Envelope2D.js";import{c as u}from"../../../chunks/Envelope.js";import{z as l,ay as i}from"../../../chunks/SpatialReference.js";class p{getOperatorType(){return 10008}accelerateGeometry(e,r,t){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}execute(e,r,t,s){const o=(new l).executeMany(e,t,s);return new c(o,r,t,s)}}class c extends r{m_polygons;m_polylines;m_resultPolygons=null;m_sr;m_progressTracker;m_bFirst;constructor(e,r,t,s){super(),this.m_polygons=e,this.m_polylines=r,this.m_sr=t,this.m_progressTracker=s,this.m_bFirst=!0}tock(){return!0}getRank(){return 1}next(){return this.m_bFirst&&(this.performOperation(),this.m_bFirst=!1),this.m_resultPolygons?this.m_resultPolygons.next():null}getGeometryID(){return null!=this.m_resultPolygons?this.m_resultPolygons.getGeometryID():-1}performOperation(){const e=new m,r=new t;let l,p=s;for(;l=this.m_polylines.next();){if(l.getGeometryType()!==o.enumPolyline||l.isEmpty())continue;p===s?p=r.addGeometry(l):r.appendGeometry(p,l);const t=new m;l.queryEnvelope(t),e.mergeEnvelope2D(t)}if(0===r.getTotalPointCount())return;for(;l=this.m_polygons.next();){if(!n(l.getGeometryType())||l.isEmpty())continue;const t=new m;l.queryEnvelope(t),e.mergeEnvelope2D(t),r.addGeometry(l)}const c=u(this.m_sr,e,!0);this.m_resultPolygons=i(r,p,c,this.m_progressTracker)}}const y=new p;function a(r,t,s){const o=y.execute(new e(r),new e(t),s,null);return Array.from(o)}function h(){return y.supportsCurves()}export{a as execute,h as supportsCurves};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{S as e}from"../../../chunks/SimpleGeometryCursor.js";import{G as r}from"../../../chunks/GeometryCursor.js";import{a as t,d as n,c as s}from"../../../chunks/Geometry.js";import{t as i}from"../../../chunks/SpatialReference.js";import{Envelope2D as u}from"../../../chunks/Envelope2D.js";import{B as m}from"../../../chunks/Bufferer-CclWhXVb.js";class o{getOperatorType(){return 10004}supportsCurves(){return!0}accelerateGeometry(e,r,t){return!1}canAccelerateGeometry(e){return!1}executeMany(e,r,t,n,s){return this.executeManyEx(e,r,t,Number.NaN,96,n,s)}execute(r,s,i,u){Number.isFinite(i)||t("Invalid distance for buffer operation");const m=new e([r]),o=[i],a=this.executeMany(m,s,o,!1,u).next();return a||n("null buffer output"),a}executeManyEx(e,r,n,s,u,m,o){if(void 0!==n.find(e=>!Number.isFinite(e))&&t("Invalid distance for buffer operation"),m){const t=new a(e,r,n,s,u,!1,o);return(new i).executeMany(t,r,o,2)}return new a(e,r,n,s,u,!1,o)}}class a extends r{m_inputGeoms;m_spatialReference;m_progressTracker;m_bufferer;m_distances;m_maxDeviation;m_maxVerticesInFullCircle;m_currentUnionEnvelope2D=new u;m_index=-1;m_dindex=-1;constructor(e,r,t,n,s,i,u){super(),this.m_progressTracker=u,this.m_bufferer=new m(u),this.m_inputGeoms=e,this.m_spatialReference=r,this.m_distances=t,this.m_maxDeviation=n,this.m_maxVerticesInFullCircle=s}tock(){return!0}getRank(){return 1}next(){{let e;for(;e=this.m_inputGeoms.next();)return s(e),this.m_index=this.m_inputGeoms.getGeometryID(),this.m_dindex+1<this.m_distances.length&&this.m_dindex++,this.buffer(e,this.m_distances[this.m_dindex]);return null}}getGeometryID(){return this.m_index}buffer(e,r){return this.m_bufferer.buffer(e,r,this.m_spatialReference,0,0,4,this.m_maxDeviation,this.m_maxVerticesInFullCircle)}}const c=new o;function f(e,r,t){return c.execute(e,r,t,null)}function l(r,t,n,s){const i=c.executeMany(new e(r),t,n,s,null);return Array.from(i)}function h(r,t,n,s,i,u){const m=c.executeManyEx(new e(r),t,n,s,i,u,null);return Array.from(m)}function p(){return c.supportsCurves()}export{f as execute,l as executeMany,h as executeManyEx,p as supportsCurves};
2
+ import{S as e}from"../../../chunks/SimpleGeometryCursor.js";import{G as r}from"../../../chunks/GeometryCursor.js";import{a as t,d as n,c as s}from"../../../chunks/Geometry.js";import{z as i}from"../../../chunks/SpatialReference.js";import{Envelope2D as u}from"../../../chunks/Envelope2D.js";import{B as m}from"../../../chunks/Bufferer-CclWhXVb.js";class o{getOperatorType(){return 10004}supportsCurves(){return!0}accelerateGeometry(e,r,t){return!1}canAccelerateGeometry(e){return!1}executeMany(e,r,t,n,s){return this.executeManyEx(e,r,t,Number.NaN,96,n,s)}execute(r,s,i,u){Number.isFinite(i)||t("Invalid distance for buffer operation");const m=new e([r]),o=[i],a=this.executeMany(m,s,o,!1,u).next();return a||n("null buffer output"),a}executeManyEx(e,r,n,s,u,m,o){if(void 0!==n.find(e=>!Number.isFinite(e))&&t("Invalid distance for buffer operation"),m){const t=new a(e,r,n,s,u,!1,o);return(new i).executeMany(t,r,o,2)}return new a(e,r,n,s,u,!1,o)}}class a extends r{m_inputGeoms;m_spatialReference;m_progressTracker;m_bufferer;m_distances;m_maxDeviation;m_maxVerticesInFullCircle;m_currentUnionEnvelope2D=new u;m_index=-1;m_dindex=-1;constructor(e,r,t,n,s,i,u){super(),this.m_progressTracker=u,this.m_bufferer=new m(u),this.m_inputGeoms=e,this.m_spatialReference=r,this.m_distances=t,this.m_maxDeviation=n,this.m_maxVerticesInFullCircle=s}tock(){return!0}getRank(){return 1}next(){{let e;for(;e=this.m_inputGeoms.next();)return s(e),this.m_index=this.m_inputGeoms.getGeometryID(),this.m_dindex+1<this.m_distances.length&&this.m_dindex++,this.buffer(e,this.m_distances[this.m_dindex]);return null}}getGeometryID(){return this.m_index}buffer(e,r){return this.m_bufferer.buffer(e,r,this.m_spatialReference,0,0,4,this.m_maxDeviation,this.m_maxVerticesInFullCircle)}}const c=new o;function f(e,r,t){return c.execute(e,r,t,null)}function l(r,t,n,s){const i=c.executeMany(new e(r),t,n,s,null);return Array.from(i)}function h(r,t,n,s,i,u){const m=c.executeManyEx(new e(r),t,n,s,i,u,null);return Array.from(m)}function p(){return c.supportsCurves()}export{f as execute,l as executeMany,h as executeManyEx,p as supportsCurves};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{S as e}from"../../../chunks/SimpleGeometryCursor.js";import{G as t}from"../../../chunks/GeometryCursor.js";import{c as n,G as r,m as o,a as u,p as i,g as s,i as m}from"../../../chunks/Geometry.js";import{P as c}from"../../../chunks/Envelope.js";import{i as a,e as g,a as y,P as l,g as f,f as p,C}from"../../../chunks/MultiPathImpl.js";import{Envelope2D as h}from"../../../chunks/Envelope2D.js";class x{getOperatorType(){return 10102}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,n){return new G(t,e,n)}execute(e,t){return d(e)}isConvex(e,t){if(n(e),e.isEmpty())return!0;const u=e.getGeometryType();if(u===r.enumPoint)return!0;if(u===r.enumEnvelope){const t=e;return t.getXMin()!==t.getXMax()&&t.getYMin()!==t.getYMax()}if(o(u)){const t=e;return!t.getStartXY().equals(t.getEndXY())}if(u===r.enumMultiPoint){return 1===e.getPointCount()}if(u===r.enumPolyline){const t=e;return 1===t.getPathCount()&&2===t.getPointCount()&&!t.getXY(0).equals(t.getXY(1))}if(u===r.enumGeometryCollection){const n=e;return 1===n.getGeometryCount()&&this.isConvex(n.getGeometry(0),t)}const i=e;return!(1!==i.getPathCount()||i.getPointCount()<3)&&a(i,0)}constructOrientedMinimumBoundingBox(e,t,n,r,o){g(e,t,n,r,o)}}class G extends t{m_progressTracker;m_bMerge;m_bDone;m_inputGeometryCursor;m_index;constructor(e,t,n){super(),t||u(""),this.m_progressTracker=n,this.m_index=-1,this.m_bMerge=e,this.m_bDone=!1,this.m_inputGeometryCursor=t}getGeometryID(){return this.m_index}tock(){return!0}getRank(){return 1}next(){if(this.m_bMerge){if(!this.m_bDone){const e=P(this.m_inputGeometryCursor);return this.m_bDone=!0,e}return null}if(!this.m_bDone){const e=this.m_inputGeometryCursor.next();if(null!==e)return i(e),n(e),this.m_index=this.m_inputGeometryCursor.getGeometryID(),d(e);this.m_bDone=!0}return null}}function P(e,t){const r=new C;let o;for(;o=e.next();)i(o),n(o),r.addGeometry(o);return r.getBoundingGeometry()}function d(e,t){if(n(e),e.isEmpty())return e.createInstance();const u=e.getGeometryType();if(o(u)){const t=e;if(t.isDegenerate(0)){const e=new c;return t.queryStart(e),e}if(t.getGeometryType()===r.enumLine){const n=new c,r=new y({vd:e.getDescription()});return t.queryStart(n),r.startPathPoint(n),t.queryEnd(n),r.lineToPoint(n),r}{const n=new y({vd:e.getDescription()});return n.addSegment(t,!0),d(n)}}if(u===r.enumEnvelope){const t=e,n=new h;if(t.queryEnvelope(n),n.xmin===n.xmax&&n.ymin===n.ymax){const e=new c;return t.queryCornerByVal(0,e),e}if(n.xmin===n.xmax||n.ymin===n.ymax){const n=new c,r=new y({vd:e.getDescription()});return t.queryCornerByVal(0,n),r.startPathPoint(n),t.queryCornerByVal(1,n),r.lineToPoint(n),r}{const n=new l({vd:e.getDescription()});return n.addEnvelope(t,!1),n}}if(u===r.enumGeometryCollection)return P(f(e,-1));if(_(e)){if(u===r.enumMultiPoint){const t=e,n=new c;return t.getPointByVal(0,n),n}return e}s(m(u));return p(e)}function _(e,t){if(n(e),e.isEmpty())return!0;const u=e.getGeometryType();if(u===r.enumPoint)return!0;if(u===r.enumEnvelope){const t=e;return t.getXMin()!==t.getXMax()&&t.getYMin()!==t.getYMax()}if(o(u)){const t=e;if(t.isDegenerate(0))return!1;if(u===r.enumLine)return!0;const n=new y;return n.addSegment(t,!0),_(n)}if(u===r.enumMultiPoint){return 1===e.getPointCount()}if(u===r.enumPolyline){const t=e;return!t.hasNonLinearSegments()&&(1===t.getPathCount()&&2===t.getPointCount()&&!t.getXY(0).equals(t.getXY(1)))}if(u===r.enumGeometryCollection){const t=e;return 1===t.getGeometryCount()&&_(t.getGeometry(0))}const i=e;return!(1!==i.getPathCount()||i.getPointCount()<3)&&a(i,0)}const M=new x;function v(e){return M.execute(e,null)}function w(t,n){const r=M.executeMany(new e(t),n,null);return Array.from(r)}function D(e){return M.isConvex(e,null)}function E(e,t,n,r,o){return M.constructOrientedMinimumBoundingBox(e,t,n,r,o)}function k(){return M.supportsCurves()}export{E as constructOrientedMinimumBoundingBox,v as execute,w as executeMany,D as isConvex,k as supportsCurves};
2
+ import{S as e}from"../../../chunks/SimpleGeometryCursor.js";import{G as t}from"../../../chunks/GeometryCursor.js";import{c as n,G as r,h as o,a as u,p as i,g as s,i as m}from"../../../chunks/Geometry.js";import{P as c}from"../../../chunks/Envelope.js";import{i as a,e as g,a as y,P as l,g as f,f as p,C as h}from"../../../chunks/MultiPathImpl.js";import{Envelope2D as C}from"../../../chunks/Envelope2D.js";class x{getOperatorType(){return 10102}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,n){return new G(t,e,n)}execute(e,t){return d(e)}isConvex(e,t){if(n(e),e.isEmpty())return!0;const u=e.getGeometryType();if(u===r.enumPoint)return!0;if(u===r.enumEnvelope){const t=e;return t.getXMin()!==t.getXMax()&&t.getYMin()!==t.getYMax()}if(o(u)){const t=e;return!t.getStartXY().equals(t.getEndXY())}if(u===r.enumMultiPoint){return 1===e.getPointCount()}if(u===r.enumPolyline){const t=e;return 1===t.getPathCount()&&2===t.getPointCount()&&!t.getXY(0).equals(t.getXY(1))}if(u===r.enumGeometryCollection){const n=e;return 1===n.getGeometryCount()&&this.isConvex(n.getGeometry(0),t)}const i=e;return!(1!==i.getPathCount()||i.getPointCount()<3)&&a(i,0)}constructOrientedMinimumBoundingBox(e,t,n,r,o){g(e,t,n,r,o)}}class G extends t{m_progressTracker;m_bMerge;m_bDone;m_inputGeometryCursor;m_index;constructor(e,t,n){super(),t||u(""),this.m_progressTracker=n,this.m_index=-1,this.m_bMerge=e,this.m_bDone=!1,this.m_inputGeometryCursor=t}getGeometryID(){return this.m_index}tock(){return!0}getRank(){return 1}next(){if(this.m_bMerge){if(!this.m_bDone){const e=P(this.m_inputGeometryCursor);return this.m_bDone=!0,e}return null}if(!this.m_bDone){const e=this.m_inputGeometryCursor.next();if(null!==e)return i(e),n(e),this.m_index=this.m_inputGeometryCursor.getGeometryID(),d(e);this.m_bDone=!0}return null}}function P(e,t){const r=new h;let o;for(;o=e.next();)i(o),n(o),r.addGeometry(o);return r.getBoundingGeometry()}function d(e,t){if(n(e),e.isEmpty())return e.createInstance();const u=e.getGeometryType();if(o(u)){const t=e;if(t.isDegenerate(0)){const e=new c;return t.queryStart(e),e}if(t.getGeometryType()===r.enumLine){const n=new c,r=new y({vd:e.getDescription()});return t.queryStart(n),r.startPathPoint(n),t.queryEnd(n),r.lineToPoint(n),r}{const n=new y({vd:e.getDescription()});return n.addSegment(t,!0),d(n)}}if(u===r.enumEnvelope){const t=e,n=new C;if(t.queryEnvelope(n),n.xmin===n.xmax&&n.ymin===n.ymax){const e=new c;return t.queryCornerByVal(0,e),e}if(n.xmin===n.xmax||n.ymin===n.ymax){const n=new c,r=new y({vd:e.getDescription()});return t.queryCornerByVal(0,n),r.startPathPoint(n),t.queryCornerByVal(1,n),r.lineToPoint(n),r}{const n=new l({vd:e.getDescription()});return n.addEnvelope(t,!1),n}}if(u===r.enumGeometryCollection)return P(f(e,-1));if(_(e)){if(u===r.enumMultiPoint){const t=e,n=new c;return t.getPointByVal(0,n),n}return e}s(m(u));return p(e)}function _(e,t){if(n(e),e.isEmpty())return!0;const u=e.getGeometryType();if(u===r.enumPoint)return!0;if(u===r.enumEnvelope){const t=e;return t.getXMin()!==t.getXMax()&&t.getYMin()!==t.getYMax()}if(o(u)){const t=e;if(t.isDegenerate(0))return!1;if(u===r.enumLine)return!0;const n=new y;return n.addSegment(t,!0),_(n)}if(u===r.enumMultiPoint){return 1===e.getPointCount()}if(u===r.enumPolyline){const t=e;return!t.hasNonLinearSegments()&&(1===t.getPathCount()&&2===t.getPointCount()&&!t.getXY(0).equals(t.getXY(1)))}if(u===r.enumGeometryCollection){const t=e;return 1===t.getGeometryCount()&&_(t.getGeometry(0))}const i=e;return!(1!==i.getPathCount()||i.getPointCount()<3)&&a(i,0)}const M=new x;function v(e){return M.execute(e,null)}function w(t,n){const r=M.executeMany(new e(t),n,null);return Array.from(r)}function D(e){return M.isConvex(e,null)}function E(e,t,n,r,o){return M.constructOrientedMinimumBoundingBox(e,t,n,r,o)}function k(){return M.supportsCurves()}export{E as constructOrientedMinimumBoundingBox,v as execute,w as executeMany,D as isConvex,k as supportsCurves};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{S as n}from"../../../chunks/SimpleGeometryCursor.js";import"../../../chunks/Geometry.js";import{B as e}from"../../../chunks/SpatialReference.js";import"../../../chunks/Point2D.js";import"../../../chunks/MultiPathImpl.js";import"../../../chunks/Envelope.js";const r=new e;function t(n,e,t){return r.execute(n,e,t,null)}function o(e,t,o){const s=r.executeMany(new n(e),new n([t]),o,null);return Array.from(s)}function s(){return r.supportsCurves()}export{t as execute,o as executeMany,s as supportsCurves};
2
+ import{S as n}from"../../../chunks/SimpleGeometryCursor.js";import"../../../chunks/Geometry.js";import{x as e}from"../../../chunks/SpatialReference.js";import"../../../chunks/Point2D.js";import"../../../chunks/MultiPathImpl.js";import"../../../chunks/Envelope.js";const r=new e;function t(n,e,t){return r.execute(n,e,t,null)}function o(e,t,o){const s=r.executeMany(new n(e),new n([t]),o,null);return Array.from(s)}function s(){return r.supportsCurves()}export{t as execute,o as executeMany,s as supportsCurves};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{S as e}from"../../../chunks/SimpleGeometryCursor.js";import"../../../chunks/Geometry.js";import{D as r}from"../../../chunks/SpatialReference.js";import"../../../chunks/MultiPathImpl.js";import"../../../chunks/Envelope.js";const n=new r;function t(e,r){return n.accelerateGeometry(e,r,1)}function o(e,r,t){return n.execute(e,r,t,null)}function u(r,t,o,u){const s=n.executeMany(new e(r),new e([t]),o,null,u);return Array.from(s)}function s(){return n.supportsCurves()}export{t as accelerateGeometry,o as execute,u as executeMany,s as supportsCurves};
2
+ import{S as e}from"../../../chunks/SimpleGeometryCursor.js";import"../../../chunks/Geometry.js";import{y as r}from"../../../chunks/SpatialReference.js";import"../../../chunks/MultiPathImpl.js";import"../../../chunks/Envelope.js";const n=new r;function t(e,r){return n.accelerateGeometry(e,r,1)}function o(e,r,t){return n.execute(e,r,t,null)}function u(r,t,o,u){const s=n.executeMany(new e(r),new e([t]),o,null,u);return Array.from(s)}function s(){return n.supportsCurves()}export{t as accelerateGeometry,o as execute,u as executeMany,s as supportsCurves};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{S as e}from"../../../chunks/SimpleGeometryCursor.js";import{G as t}from"../../../chunks/GeometryCursor.js";import{c as n,a as r,G as o,g as s}from"../../../chunks/Geometry.js";import{P as a,c as i}from"../../../chunks/Envelope.js";import{P as l,L as u}from"../../../chunks/MultiPathImpl.js";import{Envelope2D as c}from"../../../chunks/Envelope2D.js";import{P as m,r as N,u as g,m as p}from"../../../chunks/Point2D.js";import{aw as h,g as y}from"../../../chunks/SpatialReference.js";import{a as P}from"../../../chunks/Centroid-CA-TwbbN.js";import{O as f}from"../../../chunks/OperatorProximity.js";class x{getOperatorType(){return 10203}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}executeMany(e,t){return new d(e,t)}execute(e,t){return new d(null,t).labelPoint(e)}}class d extends t{m_inputGeoms;m_index=-1;m_progressTracker;m_progressCounter=0;progress_(){}tock(){return!0}getRank(){return 1}constructor(e,t){super(),this.m_progressTracker=t,this.m_inputGeoms=e}next(){const e=this.m_inputGeoms.next();return e?(n(e),this.m_index=this.m_inputGeoms.getGeometryID(),this.labelPoint(e)):null}getGeometryID(){return this.m_index}labelPoint(e){if(null===e&&r("null pointer is not allowed"),e.getGeometryType()===o.enumPoint)return e;if(e.isEmpty())return new a({vd:e.getDescription()});switch(e.getGeometryType()){case o.enumPolygon:return this.labelPointPolygon(e);case o.enumPolyline:return this.labelPointPolyline(e);case o.enumMultiPoint:return this.labelPointMultiPoint(e);case o.enumEnvelope:return this.labelPointEnvelope(e);default:r("geometry is not supported")}}labelPointPolygon(e){const t=new c;e.queryEnvelope(t);const n=i(null,t,!0).total();let r=null,o=e;if(e.hasNonLinearSegments()){const t=new l({copy:e}),a=h(t,.25*n,n);s(a!==e),r=a,o=r}let u=0,p=0;for(let s=0,a=o.getPathCount();s<a;++s){const e=Math.abs(o.calculateRingArea2D(s));e>p&&(p=e,u=s)}const x=new m;if(Math.abs(p)<=2*n*n?x.setNAN():x.assign(P(o,u)),Number.isNaN(x.x)){const e=new c;return o.queryPathEnvelope(u,e),new a({pt:e.getCenter()})}if(o.getPointCount()<4)return new a({x:x.x,y:x.y});const d=m.getNAN(),w=[d.clone(),d.clone(),d.clone(),d.clone()],b=[Number.NaN,Number.NaN,Number.NaN,Number.NaN],C=[Number.NaN,Number.NaN,Number.NaN,Number.NaN];let _=!1,D=(new f).getNearestCoordinate(o,x,!0,!1);if(0===D.m_distance&&(_=!0,w[0]=x,D=(new f).getNearestCoordinate(o,x,!1,!1),D.m_distance>.25*t.minDimension()*1.66666666))return new a({x:x.x,y:x.y});b[0]=D.m_distance,C[0]=0;const k=new m;let A=!1,E=.25,G=-1;const q=new c;o.queryPathEnvelope(u,q);do{let e=Number.NaN;if(w[1]=this.calculateParacentroid_(o,N(q.xmin,q.xmax,E),n),w[1].isNAN()||(D=(new f).getNearestCoordinate(o,w[1],!1,!1),e=D.m_distance),e>n&&1===y(o,w[1],n))A=!0,b[1]=e,C[1]=m.sqrDistance(w[1],x);else if(e>G&&(G=e,k.setCoordsPoint2D(w[1])),E-=.01,E<.1){if(!(G>=0))break;A=!0,b[1]=G,w[1]=k,C[1]=m.sqrDistance(w[1],x)}}while(!A);A=!1,E=.5,G=-1;let v=.01,M=1;do{let e=Number.NaN;if(w[2]=this.calculateParacentroid_(o,N(q.xmin,q.xmax,E),n),w[2].isNAN()||(D=(new f).getNearestCoordinate(o,w[2],!1,!1),e=D.m_distance),e>n&&1===y(o,w[2],n))A=!0,b[2]=e,C[2]=m.sqrDistance(w[2],x);else if(e>G&&(G=e,k.setCoordsPoint2D(w[2])),E=.5+v*M,v+=.01,M*=-1,E<.3||E>.7){if(!(G>=0))break;A=!0,b[2]=G,w[2]=k,C[2]=m.sqrDistance(w[2],x)}}while(!A);A=!1,E=.75,G=-1;do{let e=Number.NaN;if(w[3]=this.calculateParacentroid_(o,N(q.xmin,q.xmax,E),n),w[3].isNAN()||(D=(new f).getNearestCoordinate(o,w[3],!1,!1),e=D.m_distance),e>n&&1===y(o,w[3],n))A=!0,b[3]=e,C[3]=m.sqrDistance(w[3],x);else if(e>G&&(G=e,k.setCoordsPoint2D(w[3])),E+=.01,E>.9){if(!(G>=0))break;A=!0,b[3]=G,w[3]=k,C[3]=m.sqrDistance(w[3],x)}}while(!A);const S=[0,1,2,3],j=_?0:1;for(let s=j;s<4;s++)for(let e=j;e<3;e++){const t=C[e],n=C[e+1];if(g(t,n)>0){const r=S[e];S[e]=S[e+1],S[e+1]=r,C[e]=n,C[e+1]=t}}let X=j,L=0,T=0;for(let s=j;s<4;s++){switch(s){case 0:T=2*b[S[s]];break;case 1:T=1.66666666*b[S[s]];break;case 2:T=1.33333333*b[S[s]];break;case 3:T=b[S[s]]}T>L&&(L=T,X=S[s])}return s(!w[X].isNAN()),new a({x:w[X].x,y:w[X].y})}labelPointPolyline(e){const t=new m;if(e.getPointCount()>2*e.getPathCount()){let n=-1,r=-Number.MAX_VALUE;for(let t=0,i=e.getPathCount();t<i;t++)if(e.getPathSize(t)>2){const o=e.calculatePathLength2D(t);o>r&&(r=o,n=t)}const o=e.getPathStart(n),s=e.getPathEnd(n),a=Math.trunc((o+s)/2);t.assign(e.getXY(a))}else{let n=-Number.MAX_VALUE;const r=e.querySegmentIterator();for(;r.nextPath();)if(r.hasNextSegment()){const e=r.nextSegment(),o=e.calculateLength2D();o>n&&(n=o,t.assign(e.getCoord2D(e.lengthToT(.5*o))))}}return new a({x:t.x,y:t.y})}labelPointMultiPoint(e){const t=new c;e.queryEnvelope(t);const n=t.getCenter(),r=(new f).getNearestCoordinate(e,n,!1,!1).m_coordinate;return new a({x:r.x,y:r.y})}labelPointEnvelope(e){const t=e.getCenterXY();return new a({x:t.x,y:t.y})}calculateParacentroid_(e,t,n){const r=new c;e.queryEnvelope(r);const o=new m(t,0);let a=Number.MAX_VALUE,i=Number.MAX_VALUE,l=!1,N=!1;const g=new u;g.setStartXYCoords(o.x,r.ymin-1),g.setEndXYCoords(o.x,r.ymax+1);const h=new c,y=new m,P=new m,f=p(m,2),x=e.querySegmentIterator();for(;x.nextPath();)for(;x.hasNextSegment();){const e=x.nextSegment();if(e.queryEnvelope(h),s(e.isMonotoneQuickAndDirty()),y.setCoordsPoint2D(g.getStartXY()),P.setCoordsPoint2D(g.getEndXY()),0===h.clipLine(y,P))continue;if(1!==g.intersect(e,f,null,null,n))continue;const t=f[0].y;a>i?t<a&&(a=t,l=!0):t<i&&(i=t,N=!0)}return l&&N?o.y=(a+i)/2:o.setNAN(),o}}const w=new x;function b(e){return w.execute(e,null)}function C(t){const n=w.executeMany(new e(t),null);return Array.from(n)}function _(){return w.supportsCurves()}export{b as execute,C as executeMany,_ as supportsCurves};
2
+ import{S as e}from"../../../chunks/SimpleGeometryCursor.js";import{G as t}from"../../../chunks/GeometryCursor.js";import{c as n,a as r,G as o,g as s}from"../../../chunks/Geometry.js";import{P as a,c as i}from"../../../chunks/Envelope.js";import{P as l,L as u}from"../../../chunks/MultiPathImpl.js";import{Envelope2D as c}from"../../../chunks/Envelope2D.js";import{P as m,r as N,t as g,m as p}from"../../../chunks/Point2D.js";import{aw as h,g as y}from"../../../chunks/SpatialReference.js";import{a as P}from"../../../chunks/Centroid-CA-TwbbN.js";import{O as f}from"../../../chunks/OperatorProximity.js";class x{getOperatorType(){return 10203}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}executeMany(e,t){return new d(e,t)}execute(e,t){return new d(null,t).labelPoint(e)}}class d extends t{m_inputGeoms;m_index=-1;m_progressTracker;m_progressCounter=0;progress_(){}tock(){return!0}getRank(){return 1}constructor(e,t){super(),this.m_progressTracker=t,this.m_inputGeoms=e}next(){const e=this.m_inputGeoms.next();return e?(n(e),this.m_index=this.m_inputGeoms.getGeometryID(),this.labelPoint(e)):null}getGeometryID(){return this.m_index}labelPoint(e){if(null===e&&r("null pointer is not allowed"),e.getGeometryType()===o.enumPoint)return e;if(e.isEmpty())return new a({vd:e.getDescription()});switch(e.getGeometryType()){case o.enumPolygon:return this.labelPointPolygon(e);case o.enumPolyline:return this.labelPointPolyline(e);case o.enumMultiPoint:return this.labelPointMultiPoint(e);case o.enumEnvelope:return this.labelPointEnvelope(e);default:r("geometry is not supported")}}labelPointPolygon(e){const t=new c;e.queryEnvelope(t);const n=i(null,t,!0).total();let r=null,o=e;if(e.hasNonLinearSegments()){const t=new l({copy:e}),a=h(t,.25*n,n);s(a!==e),r=a,o=r}let u=0,p=0;for(let s=0,a=o.getPathCount();s<a;++s){const e=Math.abs(o.calculateRingArea2D(s));e>p&&(p=e,u=s)}const x=new m;if(Math.abs(p)<=2*n*n?x.setNAN():x.assign(P(o,u)),Number.isNaN(x.x)){const e=new c;return o.queryPathEnvelope(u,e),new a({pt:e.getCenter()})}if(o.getPointCount()<4)return new a({x:x.x,y:x.y});const d=m.getNAN(),w=[d.clone(),d.clone(),d.clone(),d.clone()],b=[Number.NaN,Number.NaN,Number.NaN,Number.NaN],C=[Number.NaN,Number.NaN,Number.NaN,Number.NaN];let _=!1,D=(new f).getNearestCoordinate(o,x,!0,!1);if(0===D.m_distance&&(_=!0,w[0]=x,D=(new f).getNearestCoordinate(o,x,!1,!1),D.m_distance>.25*t.minDimension()*1.66666666))return new a({x:x.x,y:x.y});b[0]=D.m_distance,C[0]=0;const k=new m;let A=!1,E=.25,G=-1;const q=new c;o.queryPathEnvelope(u,q);do{let e=Number.NaN;if(w[1]=this.calculateParacentroid_(o,N(q.xmin,q.xmax,E),n),w[1].isNAN()||(D=(new f).getNearestCoordinate(o,w[1],!1,!1),e=D.m_distance),e>n&&1===y(o,w[1],n))A=!0,b[1]=e,C[1]=m.sqrDistance(w[1],x);else if(e>G&&(G=e,k.setCoordsPoint2D(w[1])),E-=.01,E<.1){if(!(G>=0))break;A=!0,b[1]=G,w[1]=k,C[1]=m.sqrDistance(w[1],x)}}while(!A);A=!1,E=.5,G=-1;let v=.01,M=1;do{let e=Number.NaN;if(w[2]=this.calculateParacentroid_(o,N(q.xmin,q.xmax,E),n),w[2].isNAN()||(D=(new f).getNearestCoordinate(o,w[2],!1,!1),e=D.m_distance),e>n&&1===y(o,w[2],n))A=!0,b[2]=e,C[2]=m.sqrDistance(w[2],x);else if(e>G&&(G=e,k.setCoordsPoint2D(w[2])),E=.5+v*M,v+=.01,M*=-1,E<.3||E>.7){if(!(G>=0))break;A=!0,b[2]=G,w[2]=k,C[2]=m.sqrDistance(w[2],x)}}while(!A);A=!1,E=.75,G=-1;do{let e=Number.NaN;if(w[3]=this.calculateParacentroid_(o,N(q.xmin,q.xmax,E),n),w[3].isNAN()||(D=(new f).getNearestCoordinate(o,w[3],!1,!1),e=D.m_distance),e>n&&1===y(o,w[3],n))A=!0,b[3]=e,C[3]=m.sqrDistance(w[3],x);else if(e>G&&(G=e,k.setCoordsPoint2D(w[3])),E+=.01,E>.9){if(!(G>=0))break;A=!0,b[3]=G,w[3]=k,C[3]=m.sqrDistance(w[3],x)}}while(!A);const S=[0,1,2,3],j=_?0:1;for(let s=j;s<4;s++)for(let e=j;e<3;e++){const t=C[e],n=C[e+1];if(g(t,n)>0){const r=S[e];S[e]=S[e+1],S[e+1]=r,C[e]=n,C[e+1]=t}}let X=j,L=0,T=0;for(let s=j;s<4;s++){switch(s){case 0:T=2*b[S[s]];break;case 1:T=1.66666666*b[S[s]];break;case 2:T=1.33333333*b[S[s]];break;case 3:T=b[S[s]]}T>L&&(L=T,X=S[s])}return s(!w[X].isNAN()),new a({x:w[X].x,y:w[X].y})}labelPointPolyline(e){const t=new m;if(e.getPointCount()>2*e.getPathCount()){let n=-1,r=-Number.MAX_VALUE;for(let t=0,i=e.getPathCount();t<i;t++)if(e.getPathSize(t)>2){const o=e.calculatePathLength2D(t);o>r&&(r=o,n=t)}const o=e.getPathStart(n),s=e.getPathEnd(n),a=Math.trunc((o+s)/2);t.assign(e.getXY(a))}else{let n=-Number.MAX_VALUE;const r=e.querySegmentIterator();for(;r.nextPath();)if(r.hasNextSegment()){const e=r.nextSegment(),o=e.calculateLength2D();o>n&&(n=o,t.assign(e.getCoord2D(e.lengthToT(.5*o))))}}return new a({x:t.x,y:t.y})}labelPointMultiPoint(e){const t=new c;e.queryEnvelope(t);const n=t.getCenter(),r=(new f).getNearestCoordinate(e,n,!1,!1).m_coordinate;return new a({x:r.x,y:r.y})}labelPointEnvelope(e){const t=e.getCenterXY();return new a({x:t.x,y:t.y})}calculateParacentroid_(e,t,n){const r=new c;e.queryEnvelope(r);const o=new m(t,0);let a=Number.MAX_VALUE,i=Number.MAX_VALUE,l=!1,N=!1;const g=new u;g.setStartXYCoords(o.x,r.ymin-1),g.setEndXYCoords(o.x,r.ymax+1);const h=new c,y=new m,P=new m,f=p(m,2),x=e.querySegmentIterator();for(;x.nextPath();)for(;x.hasNextSegment();){const e=x.nextSegment();if(e.queryEnvelope(h),s(e.isMonotoneQuickAndDirty()),y.setCoordsPoint2D(g.getStartXY()),P.setCoordsPoint2D(g.getEndXY()),0===h.clipLine(y,P))continue;if(1!==g.intersect(e,f,null,null,n))continue;const t=f[0].y;a>i?t<a&&(a=t,l=!0):t<i&&(i=t,N=!0)}return l&&N?o.y=(a+i)/2:o.setNAN(),o}}const w=new x;function b(e){return w.execute(e,null)}function C(t){const n=w.executeMany(new e(t),null);return Array.from(n)}function _(){return w.supportsCurves()}export{b as execute,C as executeMany,_ as supportsCurves};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{S as e}from"../../../chunks/SimpleGeometryCursor.js";import{G as r}from"../../../chunks/GeometryCursor.js";import{E as t}from"../../../chunks/MultiPathImpl.js";import{f as s,c as m}from"../../../chunks/Geometry.js";import{c as n}from"../../../chunks/Envelope.js";import{az as o}from"../../../chunks/SpatialReference.js";class u{getOperatorType(){return 10010}accelerateGeometry(e,r,t){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}executeMany(e,r,t){return new i(e,r,t)}}class i extends r{m_geoms;m_result=null;m_sr;m_progressTracker;m_bfirst;m_index;constructor(e,r,t){super(),this.m_geoms=e,this.m_sr=r,this.m_progressTracker=t,this.m_bfirst=!0,this.m_index=-1}tock(){return!0}getRank(){return 1}next(){return this.m_bfirst&&(this.performOperation(),this.m_bfirst=!1),this.m_result?this.m_result.next():null}getGeometryID(){return null!==this.m_result?this.m_result.getGeometryID():-1}performOperation(){const e=new t;for(let t=this.m_geoms.next();null!==t;t=this.m_geoms.next())t.isEmpty()||t.getDimension()<1||s(t.getGeometryType())||(m(t),e.addGeometry(t));if(0===e.getGeometryCount())return;const r=e.getEnvelope2D(this.m_progressTracker),u=n(this.m_sr,r,!0);this.m_result=o(e,u,this.m_progressTracker)}}const c=new u;function a(r,t){const s=c.executeMany(new e(r),t,null);return Array.from(s)}function p(){return c.supportsCurves()}export{a as executeMany,p as supportsCurves};
2
+ import{S as e}from"../../../chunks/SimpleGeometryCursor.js";import{G as r}from"../../../chunks/GeometryCursor.js";import{E as t}from"../../../chunks/MultiPathImpl.js";import{k as s,c as m}from"../../../chunks/Geometry.js";import{c as n}from"../../../chunks/Envelope.js";import{az as o}from"../../../chunks/SpatialReference.js";class u{getOperatorType(){return 10010}accelerateGeometry(e,r,t){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}executeMany(e,r,t){return new i(e,r,t)}}class i extends r{m_geoms;m_result=null;m_sr;m_progressTracker;m_bfirst;m_index;constructor(e,r,t){super(),this.m_geoms=e,this.m_sr=r,this.m_progressTracker=t,this.m_bfirst=!0,this.m_index=-1}tock(){return!0}getRank(){return 1}next(){return this.m_bfirst&&(this.performOperation(),this.m_bfirst=!1),this.m_result?this.m_result.next():null}getGeometryID(){return null!==this.m_result?this.m_result.getGeometryID():-1}performOperation(){const e=new t;for(let t=this.m_geoms.next();null!==t;t=this.m_geoms.next())t.isEmpty()||t.getDimension()<1||s(t.getGeometryType())||(m(t),e.addGeometry(t));if(0===e.getGeometryCount())return;const r=e.getEnvelope2D(this.m_progressTracker),u=n(this.m_sr,r,!0);this.m_result=o(e,u,this.m_progressTracker)}}const c=new u;function a(r,t){const s=c.executeMany(new e(r),t,null);return Array.from(s)}function p(){return c.supportsCurves()}export{a as executeMany,p as supportsCurves};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{S as t}from"../../../chunks/SimpleGeometryCursor.js";import{G as e}from"../../../chunks/GeometryCursor.js";import{c as n,G as r,a as s,h as o,m as i,d as u}from"../../../chunks/Geometry.js";import{E as m,c as l}from"../../../chunks/Point2D.js";import{V as c,P as a}from"../../../chunks/Envelope.js";import{g as p,M as h,S as g,a as d,G as _}from"../../../chunks/MultiPathImpl.js";function y(t,e,n,r,s){return new f(e,n,r,s).processGeometry(t)}class f{m_inputGeom;m_interval;m_progressTracker;m_attribute;m_ord;constructor(t,e,n,r){this.m_interval=n,this.m_progressTracker=r,this.m_attribute=t,this.m_ord=e,(c.getComponentCount(this.m_attribute)<=e||e<0)&&s("LocateBetween: ordinate");2===c.getInterpolation(this.m_attribute)&&s("LocateBetween: angular interpolation")}processGeometry(t){const e=t.getGeometryType();if(e===r.enumGeometryCollection)return this.processGeometryCollection(t);if(o(e)&&s("LocateBetween does not support Polygons and Envelopes."),t.isEmpty()||!t.hasAttribute(this.m_attribute))return new a({vd:t.getDescription()});if(i(e))return this.processSegment(t);switch(e){case r.enumPoint:return this.processPoint(t);case r.enumMultiPoint:return this.processMultiPoint(t);case r.enumPolyline:return this.processPolyline(t);default:u("LocateBetween")}}processPoint(t){const e=t.getAttributeAsDbl(this.m_attribute,this.m_ord);return this.m_interval.containsCoordinate(e)?new h({point:t}):new a({vd:t.getDescription()})}processMultiPoint(t){let e=null,n=-1;const r=t.getAttributeStreamRef(this.m_attribute),s=c.getComponentCount(this.m_attribute);for(let o=0,i=0,u=t.getPointCount();o<u;++o,i+=s){const s=r.readAsDbl(i);this.m_interval.containsCoordinate(s)?-1===n&&(n=o):n>=0&&(e||(e=new h({vd:t.getDescription()})),e.addPoints(t,n,o),n=-1)}return n>=0&&(e||(e=new h({vd:t.getDescription()})),e.addPoints(t,n,-1)),e||new a({vd:t.getDescription()})}processPolyline(t){const e=t.queryInterval(this.m_attribute,this.m_ord);if(this.m_interval.contains(e))return t;if(!this.m_interval.isIntersecting(e))return new a({vd:t.getDescription()});let n=null,s=null;const o=t.querySegmentIterator(),i=new g,u=new a,m=new a,l=new a;let c=!0,p=!1;for(;o.nextPath();)for(c=!0,p=!1;o.hasNextSegment();){const t=o.nextSegment(),e=[null],a=this.processSegmentHelper(t,i,e,u);if(a!==r.enumUnknown)if(a===r.enumPoint){if(!c&&(s.getPointByVal(s.getPointCount()-1,m),m.equals(u)))continue;if(c=!0,p&&(t.queryStart(m),u.equals(m)))continue;t.queryEnd(m),p=u.equals(m),n?n.add(u):n=new h({point:u})}else a===r.enumLine&&(p=!1,s||(s=new d),c&&(null===n||n.isEmpty()||(n.getPointByVal(n.getPointCount()-1,m),e[0].queryStart(u),m.equals(u)&&n.removePoint(n.getPointCount()-1))),s.addSegment(e[0],c),t.queryEnd(m),e[0].queryEnd(l),c=!m.equals(l));else c=!0,p=!1}if(null!==n&&n.isEmpty()&&(n=null),null!==n&&null!==s){const t=new _;return t.addGeometry(s),t.addGeometry(n),t}return null!==n?n:null!==s?s:new a({vd:t.getDescription()})}processSegment(t){const e=t.getAttributeAsDbl(0,this.m_attribute,this.m_ord),n=t.getAttributeAsDbl(1,this.m_attribute,this.m_ord),r=Number.isNaN(e)?n:e,s=Number.isNaN(n)?e:n,o=new m;o.setCoords(r,s);const i=o.clone();if(i.intersect(this.m_interval),i.isEmpty())return new a({vd:t.getDescription()});if(o.equals(i))return t;const u=s-r,c=t.calculateLength2D();if(0===i.width()){const e=new a({vd:t.getDescription()}),n=(i.vmin-r)/u,s=t.lengthToT(n*c);return t.queryCoord(s,e),e}let p=(i.vmin-r)/u,h=(i.vmax-r)/u;return p>h&&(h=l(p,p=h)),p=t.lengthToT(p*c),h=t.lengthToT(h*c),t.cut(p,h)}processGeometryCollection(t){if(t.isEmpty()||!t.hasAttribute(this.m_attribute))return new a({vd:t.getDescription()});const e=p(t),n=new _;for(let r=e.next();null!==r;r=e.next()){const t=this.processGeometry(r);t.isEmpty()||n.addGeometry(t)}return n.isEmpty()?new a({vd:t.getDescription()}):n}processSegmentHelper(t,e,n,s){const o=t.getAttributeAsDbl(0,this.m_attribute,this.m_ord),i=t.getAttributeAsDbl(1,this.m_attribute,this.m_ord),u=Number.isNaN(o)?i:o,c=Number.isNaN(i)?o:i,a=new m;a.setCoords(u,c);const p=a.clone();if(p.intersect(this.m_interval),p.isEmpty())return r.enumUnknown;if(a.equals(p))return n[0]=t,r.enumLine;const h=c-u,g=t.calculateLength2D();if(0===p.width()){const e=(p.vmin-u)/h,n=1===e?1:t.lengthToT(e*g);return t.queryCoord(n,s),r.enumPoint}let d=(p.vmin-u)/h,_=(p.vmax-u)/h;return d>_&&(_=l(d,d=_)),d=1===d?1:t.lengthToT(d*g),_=1===_?1:t.lengthToT(_*g),t.queryCut(d,_,e),n[0]=e.get(),r.enumLine}}class w{getOperatorType(){return 10801}accelerateGeometry(t,e,n){return!1}canAccelerateGeometry(t){return!1}supportsCurves(){return!0}executeMany(t,e,n){return new v(t,e,n)}}class v extends e{m_inputGeoms;m_collectionCursor=null;m_interval;m_progressTracker;m_index;constructor(t,e,n){super(),this.m_interval=e,this.m_progressTracker=n,this.m_inputGeoms=t,this.m_index=-1}tock(){return!0}getRank(){return 1}next(){if(this.m_collectionCursor){const t=this.m_collectionCursor.next();if(t)return t;this.m_collectionCursor=null}const t=this.m_inputGeoms.next();if(null===t)return null;n(t),this.m_index=this.m_inputGeoms.getGeometryID();const e=y(t,2,0,this.m_interval,this.m_progressTracker);if(e.getGeometryType()===r.enumGeometryCollection){this.m_collectionCursor=p(e);return this.m_collectionCursor.next()}return e}getGeometryID(){return this.m_index}}const b=new w;function C(e,n){const r=b.executeMany(new t(e),n,null);return Array.from(r)}function G(){return b.supportsCurves()}export{C as executeMany,G as supportsCurves};
2
+ import{S as t}from"../../../chunks/SimpleGeometryCursor.js";import{G as e}from"../../../chunks/GeometryCursor.js";import{c as n,G as r,a as s,l as o,h as i,d as u}from"../../../chunks/Geometry.js";import{E as m,c as l}from"../../../chunks/Point2D.js";import{V as c,P as a}from"../../../chunks/Envelope.js";import{g as p,M as h,S as g,a as d,G as _}from"../../../chunks/MultiPathImpl.js";function y(t,e,n,r,s){return new f(e,n,r,s).processGeometry(t)}class f{m_inputGeom;m_interval;m_progressTracker;m_attribute;m_ord;constructor(t,e,n,r){this.m_interval=n,this.m_progressTracker=r,this.m_attribute=t,this.m_ord=e,(c.getComponentCount(this.m_attribute)<=e||e<0)&&s("LocateBetween: ordinate");2===c.getInterpolation(this.m_attribute)&&s("LocateBetween: angular interpolation")}processGeometry(t){const e=t.getGeometryType();if(e===r.enumGeometryCollection)return this.processGeometryCollection(t);if(o(e)&&s("LocateBetween does not support Polygons and Envelopes."),t.isEmpty()||!t.hasAttribute(this.m_attribute))return new a({vd:t.getDescription()});if(i(e))return this.processSegment(t);switch(e){case r.enumPoint:return this.processPoint(t);case r.enumMultiPoint:return this.processMultiPoint(t);case r.enumPolyline:return this.processPolyline(t);default:u("LocateBetween")}}processPoint(t){const e=t.getAttributeAsDbl(this.m_attribute,this.m_ord);return this.m_interval.containsCoordinate(e)?new h({point:t}):new a({vd:t.getDescription()})}processMultiPoint(t){let e=null,n=-1;const r=t.getAttributeStreamRef(this.m_attribute),s=c.getComponentCount(this.m_attribute);for(let o=0,i=0,u=t.getPointCount();o<u;++o,i+=s){const s=r.readAsDbl(i);this.m_interval.containsCoordinate(s)?-1===n&&(n=o):n>=0&&(e||(e=new h({vd:t.getDescription()})),e.addPoints(t,n,o),n=-1)}return n>=0&&(e||(e=new h({vd:t.getDescription()})),e.addPoints(t,n,-1)),e||new a({vd:t.getDescription()})}processPolyline(t){const e=t.queryInterval(this.m_attribute,this.m_ord);if(this.m_interval.contains(e))return t;if(!this.m_interval.isIntersecting(e))return new a({vd:t.getDescription()});let n=null,s=null;const o=t.querySegmentIterator(),i=new g,u=new a,m=new a,l=new a;let c=!0,p=!1;for(;o.nextPath();)for(c=!0,p=!1;o.hasNextSegment();){const t=o.nextSegment(),e=[null],a=this.processSegmentHelper(t,i,e,u);if(a!==r.enumUnknown)if(a===r.enumPoint){if(!c&&(s.getPointByVal(s.getPointCount()-1,m),m.equals(u)))continue;if(c=!0,p&&(t.queryStart(m),u.equals(m)))continue;t.queryEnd(m),p=u.equals(m),n?n.add(u):n=new h({point:u})}else a===r.enumLine&&(p=!1,s||(s=new d),c&&(null===n||n.isEmpty()||(n.getPointByVal(n.getPointCount()-1,m),e[0].queryStart(u),m.equals(u)&&n.removePoint(n.getPointCount()-1))),s.addSegment(e[0],c),t.queryEnd(m),e[0].queryEnd(l),c=!m.equals(l));else c=!0,p=!1}if(null!==n&&n.isEmpty()&&(n=null),null!==n&&null!==s){const t=new _;return t.addGeometry(s),t.addGeometry(n),t}return null!==n?n:null!==s?s:new a({vd:t.getDescription()})}processSegment(t){const e=t.getAttributeAsDbl(0,this.m_attribute,this.m_ord),n=t.getAttributeAsDbl(1,this.m_attribute,this.m_ord),r=Number.isNaN(e)?n:e,s=Number.isNaN(n)?e:n,o=new m;o.setCoords(r,s);const i=o.clone();if(i.intersect(this.m_interval),i.isEmpty())return new a({vd:t.getDescription()});if(o.equals(i))return t;const u=s-r,c=t.calculateLength2D();if(0===i.width()){const e=new a({vd:t.getDescription()}),n=(i.vmin-r)/u,s=t.lengthToT(n*c);return t.queryCoord(s,e),e}let p=(i.vmin-r)/u,h=(i.vmax-r)/u;return p>h&&(h=l(p,p=h)),p=t.lengthToT(p*c),h=t.lengthToT(h*c),t.cut(p,h)}processGeometryCollection(t){if(t.isEmpty()||!t.hasAttribute(this.m_attribute))return new a({vd:t.getDescription()});const e=p(t),n=new _;for(let r=e.next();null!==r;r=e.next()){const t=this.processGeometry(r);t.isEmpty()||n.addGeometry(t)}return n.isEmpty()?new a({vd:t.getDescription()}):n}processSegmentHelper(t,e,n,s){const o=t.getAttributeAsDbl(0,this.m_attribute,this.m_ord),i=t.getAttributeAsDbl(1,this.m_attribute,this.m_ord),u=Number.isNaN(o)?i:o,c=Number.isNaN(i)?o:i,a=new m;a.setCoords(u,c);const p=a.clone();if(p.intersect(this.m_interval),p.isEmpty())return r.enumUnknown;if(a.equals(p))return n[0]=t,r.enumLine;const h=c-u,g=t.calculateLength2D();if(0===p.width()){const e=(p.vmin-u)/h,n=1===e?1:t.lengthToT(e*g);return t.queryCoord(n,s),r.enumPoint}let d=(p.vmin-u)/h,_=(p.vmax-u)/h;return d>_&&(_=l(d,d=_)),d=1===d?1:t.lengthToT(d*g),_=1===_?1:t.lengthToT(_*g),t.queryCut(d,_,e),n[0]=e.get(),r.enumLine}}class w{getOperatorType(){return 10801}accelerateGeometry(t,e,n){return!1}canAccelerateGeometry(t){return!1}supportsCurves(){return!0}executeMany(t,e,n){return new v(t,e,n)}}class v extends e{m_inputGeoms;m_collectionCursor=null;m_interval;m_progressTracker;m_index;constructor(t,e,n){super(),this.m_interval=e,this.m_progressTracker=n,this.m_inputGeoms=t,this.m_index=-1}tock(){return!0}getRank(){return 1}next(){if(this.m_collectionCursor){const t=this.m_collectionCursor.next();if(t)return t;this.m_collectionCursor=null}const t=this.m_inputGeoms.next();if(null===t)return null;n(t),this.m_index=this.m_inputGeoms.getGeometryID();const e=y(t,2,0,this.m_interval,this.m_progressTracker);if(e.getGeometryType()===r.enumGeometryCollection){this.m_collectionCursor=p(e);return this.m_collectionCursor.next()}return e}getGeometryID(){return this.m_index}}const b=new w;function C(e,n){const r=b.executeMany(new t(e),n,null);return Array.from(r)}function G(){return b.supportsCurves()}export{C as executeMany,G as supportsCurves};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{S as t}from"../../../chunks/SimpleGeometryCursor.js";import{G as s}from"../../../chunks/GeometryCursor.js";import{e}from"../../../chunks/Envelope.js";import{c as i,a as n,G as o,m as h,g as r,t as m}from"../../../chunks/Geometry.js";import{a,P as _,L as f,d as c}from"../../../chunks/MultiPathImpl.js";import{P as u,l as P,n as d,r as l,t as y,e as p}from"../../../chunks/Point2D.js";import{s as x}from"../../../chunks/Bufferer-CclWhXVb.js";import{O as b}from"../../../chunks/OperatorGraphicBuffer.js";function M(t,s,e,o,h,r,m){if(null===t&&n(""),t.getDimension()<1&&n(""),h>0||n(""),i(t),0===s||t.isEmpty())return t;const a=new D(m);return a.m_bUseZ=t.hasAttribute(1),a.m_bUseM=t.hasAttribute(2),a.m_inputGeometry=t,a.m_distance=s,a.m_tolerance=h,a.m_joins=e,a.m_miterLimit=o>1?o:1,a.m_miterLimit=x(a.m_miterLimit),a.m_progressCounter=0,a.m_options=r,a.constructOffset()}const g=1.4142135623730951,C=.017453292519943295,E=256,v=512,A=1024;class G{x;y;m_next;m_prev;z;m;type;static construct(t,s,e){const i=new G;return i.x=t.x,i.y=t.y,i.m_next=-1,i.m_prev=-1,i.z=s,i.m=e,i.type=0,i}clone(){const t=new G;return t.x=this.x,t.y=this.y,t.m_next=this.m_next,t.m_prev=this.m_prev,t.z=this.z,t.m=this.m,t.type=this.type,t}asPoint2D(){return new u(this.x,this.y)}}function w(){return{pt:new G,bAtExistingPt:!1}}class D{m_progressTracker;m_inputGeometry;m_distance=-1;m_tolerance=-1;m_miterLimit=10;m_joins=0;m_progressCounter=0;m_options=0;m_bUseZ=!1;m_bUseM=!1;m_srcPts=[];m_srcPtCount=0;m_offsetPts=[];m_offsetPtCount=0;m_resultPath;m_a1=0;m_a2=0;constructor(t){this.m_progressTracker=t}constructOffset(){const s=this.m_inputGeometry.getGeometryType();if(s===o.enumLine)return this.offsetLine();if(s===o.enumEnvelope)return this.offsetEnvelope();if(h(s)){const t=new a;return t.addSegment(this.m_inputGeometry,!0),this.m_inputGeometry=t,this.constructOffset()}if(s===o.enumPolyline){const t=new a;return this.offsetMultiPath(t),t}if(s===o.enumPolygon){if(1===this.m_options){let s;switch(this.m_joins){case 1:case 3:s=2;break;case 2:s=1;break;case 0:s=0;break;default:r(!1,"Invalid join type")}const e=1,i=[-1];return(new b).executeMany(new t([this.m_inputGeometry]),null,i,s,e,this.m_miterLimit,this.m_tolerance,360,!1,0,null).next()}const s=new _;return this.offsetMultiPath(s),s}m("")}offsetLine(){const t=this.m_inputGeometry,s=t.getStartXY(),e=t.getEndXY(),i=new u;i.setSub(e,s),i.normalize(),i.leftPerpendicularThis(),i.scale(this.m_distance),s.addThis(i),e.addThis(i);const n=t.clone();return n.setStartXY(s),n.setEndXY(e),n}offsetEnvelope(){const t=this.m_inputGeometry;if(this.m_distance>0&&2!==this.m_joins){const s=new _;return s.addEnvelope(t,!1),this.m_inputGeometry=s,this.constructOffset()}const s=t.clone();return s.inflateCoords(this.m_distance,this.m_distance),s}progress(){}static buildPoint(t,s,e,i){i.x=t.x+s*Math.cos(e),i.y=t.y+s*Math.sin(e),i.type=t.type,i.z=t.z,i.m=t.m,i.m_next=-1,i.m_prev=-1}addPoint(t){this.m_offsetPts.push(t.clone()),this.m_offsetPtCount++}addPointEx(t,s){if(0===this.m_offsetPtCount)return void this.addPoint(t);const e=this.m_srcPtCount,i=this.m_srcPts[0===s?e-1:s-1],n=this.m_srcPts[s],o=D.dotSign(i,n,this.m_offsetPts[this.m_offsetPtCount-1],t);if(o>0)this.addPoint(t);else if(o<0)if(D.dotSign(i,n,n,this.m_offsetPts[this.m_offsetPtCount-1])>0){const n=new G;let o;o=0===s?e-2:1===s?e-1:s-2;const h=this.m_srcPts[o],r=Math.atan2(i.y-h.y,i.x-h.x);if(D.buildPoint(i,this.m_distance,r-P,n),this.m_offsetPts[this.m_offsetPtCount-1]=n.clone(),1===this.m_joins||2===this.m_joins){n.x=.5*(n.x+i.x),n.y=.5*(n.y+i.y),this.addPoint(n),D.buildPoint(i,this.m_distance,this.m_a1+P,n);const t=n.clone();t.x=.5*(t.x+i.x),t.y=.5*(t.y+i.y),t.type|=E,this.addPoint(t),this.addPoint(n)}else D.buildPoint(i,this.m_distance,this.m_a1+P,n),n.type|=E,this.addPoint(n);this.addPointEx(t,s)}else{const t=new G;if(D.buildPoint(n,this.m_distance,this.m_a1+P,t),this.addPoint(t),1===this.m_joins||2===this.m_joins){t.x=.5*(t.x+n.x),t.y=.5*(t.y+n.y),this.addPoint(t),D.buildPoint(n,this.m_distance,this.m_a2-P,t);const s=t.clone();s.x=.5*(s.x+n.x),s.y=.5*(s.y+n.y),s.type|=E,this.addPoint(s),this.addPoint(t)}else D.buildPoint(n,this.m_distance,this.m_a2-P,t),t.type|=E,this.addPoint(t)}}buildOffset(){const t=new G,s=this.m_srcPtCount;this.m_offsetPtCount=0;const e=.5*this.m_tolerance;let i=0,n=0;for(let o=0;o<s;o++){const h=this.m_srcPts[o],r=0===o?this.m_srcPts[s-1]:this.m_srcPts[o-1],m=o===s-1?this.m_srcPts[0]:this.m_srcPts[o+1];let a,_,f=0;{const t=r.x-h.x,s=r.y-h.y,e=m.x-h.x,c=m.y-h.y;a=Math.atan2(s,t),_=Math.atan2(c,e),this.m_a1=a,this.m_a2=_,0===o&&(i=a,n=_),f=u.orientationRobust(h.asPoint2D(),r.asPoint2D(),m.asPoint2D())}const c=_;_<a&&(_+=d);const l=Math.abs(Math.abs(a-_)-Math.PI)<1e-8;if(l||f*this.m_distance>0)if(l||1!==this.m_joins&&2!==this.m_joins){const s=.5*(_-a),e=0===s?this.m_distance:this.m_distance/Math.abs(Math.sin(s));D.buildPoint(h,e,.5*(a+_),t),this.addPointEx(t,o)}else{D.buildPoint(h,this.m_distance,a+P,t),this.addPoint(t);const s=.001;t.x=h.x+(t.x-h.x)*s,t.y=h.y+(t.y-h.y)*s,this.addPoint(t),D.buildPoint(h,this.m_distance,_-P,t);const e=t.clone();e.x=h.x+(e.x-h.x)*s,e.y=h.y+(e.y-h.y)*s,e.type|=E,this.addPoint(e),this.addPoint(t)}else{if(h.type&v){const s=1-e/Math.abs(this.m_distance);let i=1,n=this.m_distance<0?-Math.PI:Math.PI;if(s>-1&&s<1){let t=2*Math.acos(s);t<C&&(t=C),i=Math.trunc(Math.PI/t+1.5),i>1&&(n/=i)}i<=1&&(i=2,n/=2);let r=a+P;D.buildPoint(h,this.m_distance,r,t),0===o&&(t.type|=A),this.addPointEx(t,o);const m=this.m_distance/Math.cos(n/2);for(r+=n/2,D.buildPoint(h,m,r,t),t.type|=A,this.addPoint(t);--i>0;)r+=n,D.buildPoint(h,m,r,t),t.type|=A,this.addPoint(t);D.buildPoint(h,this.m_distance,_-P,t),t.type|=A,this.addPoint(t);continue}if(1!==this.m_joins){if(0===this.m_joins){const s=1-e/Math.abs(this.m_distance);let i=1,n=_-P-(a+P);if(s>-1&&s<1){let t=2*Math.acos(s);t<C&&(t=C),i=Math.trunc(Math.abs(n)/t+1.5),i>1&&(n/=i)}const r=this.m_distance/Math.cos(.5*n);let m=a+P+.5*n;for(D.buildPoint(h,r,m,t),this.addPointEx(t,o);--i>0;)m+=n,D.buildPoint(h,r,m,t),this.addPoint(t);continue}if(2===this.m_joins){const s=r.x-h.x,e=r.y-h.y,i=m.x-h.x,n=m.y-h.y;let f=(s*i+e*n)/Math.sqrt(s*s+e*e)/Math.sqrt(i*i+n*n);if(f=Math.max(f,-1),f>1-1e-8){D.buildPoint(h,g*this.m_distance,_-.25*Math.PI,t),this.addPointEx(t,o),D.buildPoint(h,g*this.m_distance,_+.25*Math.PI,t),this.addPoint(t);continue}const c=Math.abs(this.m_distance/Math.sin(.5*Math.acos(f))),P=Math.abs(this.m_miterLimit*this.m_distance);if(c>P){const s=.5*(_-a),e=this.m_distance/Math.abs(Math.sin(s));D.buildPoint(h,e,.5*(a+_),t);const i=u.construct(t.x,t.y),n=u.construct(h.x,h.y),r=new u;r.setSub(i,n);const m=new u;m.setScaleAdd(P/r.length(),r,n);const f=Math.sqrt(c*c-this.m_distance*this.m_distance),d=(c-P)*Math.abs(this.m_distance)/f;this.m_distance>0?r.rightPerpendicularThis():r.leftPerpendicularThis(),r.scale(d/r.length());const l=new u;l.setAdd(m,r);const y=new u;y.setSub(m,r),t.x=l.x,t.y=l.y,this.addPointEx(t,o),t.x=y.x,t.y=y.y,this.addPoint(t);continue}const d=.5*(_-a),l=this.m_distance/Math.abs(Math.sin(d));D.buildPoint(h,l,.5*(a+_),t),this.addPointEx(t,o);continue}{let s;if(_=c,this.m_distance>0?(_>a&&(_-=d),s=a-_<P):(_<a&&(_+=d),s=_-a<P),s){const s=this.m_distance*g;let e;e=s<0?a+.25*Math.PI:a+3*Math.PI*.25,D.buildPoint(h,s,e,t),this.addPointEx(t,o),e=s<0?_-.25*Math.PI:_-3*Math.PI*.25,D.buildPoint(h,s,e,t),this.addPoint(t)}else{const s=.5*(_-a),e=this.m_distance/Math.abs(Math.sin(s));_<a&&(_+=d),D.buildPoint(h,e,(a+_)/2,t),this.addPointEx(t,o)}}}else D.buildPoint(h,this.m_distance,a+P,t),this.addPointEx(t,o),D.buildPoint(h,this.m_distance,_-P,t),this.addPoint(t)}}return this.m_a1=i,this.m_a2=n,this.addPointEx(this.m_offsetPts[0],0),this.m_offsetPts[0]=this.m_offsetPts[this.m_offsetPtCount-1].clone(),this.removeBadSegsFast()}removeBadSegsFast(){for(let e=0;e<this.m_offsetPtCount;e++){const t=this.m_offsetPts[e];t.m_next=e+1,t.m_prev=e-1}this.m_offsetPts[0].m_prev=this.m_offsetPtCount-2,this.m_offsetPts[this.m_offsetPtCount-2].m_next=0;let t=this.m_offsetPtCount,s=0;for(let e=0;e<t;e++)if(this.m_offsetPts[s].type&E){const e=this.m_offsetPts[s].m_next,i=this.deleteClosedSeg(s);if(-1===i){r(this.m_offsetPts[s].m_next===e);break}if(s>i){s=i,t=0;do{t++,s=this.m_offsetPts[s].m_next}while(s!==i)}s=i}else s=this.m_offsetPts[s].m_next;return this.compressOffsetArray(s),!0}deleteClosedSeg(t){const s=this.m_offsetPtCount-1;let e=t;for(let i=1;i<=s-2&&(e=this.m_offsetPts[e].m_next,t!==e);i++){let s=e,n=t;for(let o=1;o<=i&&(n=this.m_offsetPts[n].m_prev,n!==t);o++){if(0===(this.m_offsetPts[n].type&E)&&0===(this.m_offsetPts[s].type&E)){const t=this.handleClosedIntersection(n,s);if(-1!==t)return t}if(s=this.m_offsetPts[s].m_prev,s===e)break}}return-1}handleClosedIntersection(t,s){const e=this.m_offsetPts[this.m_offsetPts[t].m_prev],i=this.m_offsetPts[t],n=this.m_offsetPts[this.m_offsetPts[s].m_prev],o=this.m_offsetPts[s];if(!this.sectGraphicRect(e,i,n,o))return-1;if(u.orientationRobustEx(e.asPoint2D(),i.asPoint2D(),n.asPoint2D(),o.asPoint2D())*this.m_distance<0){const h=this.findIntersection(e,i,n,o);let r=!1;if(h[0]>=0){const m=w();if(h[0]>=0&&h[0]<=1&&(m.pt.x=l(e.x,i.x,h[0]),m.pt.y=l(e.y,i.y,h[0]),this.m_bUseZ&&(m.pt.z=l(n.z,o.z,h[1])),this.m_bUseM&&(m.pt.m=l(n.m,o.m,h[1])),0!==h[1]&&1!==h[1]||0!==h[0]&&1!==h[0]||(m.bAtExistingPt=!0),r=!((0===h[1]||1===h[1])&&h[0]>0&&h[0]<1||(0===h[0]||1===h[0])&&h[1]>0&&h[1]<1)),r&&!m.bAtExistingPt){let e=!1;const o=m.pt.asPoint2D(),h=n.asPoint2D(),r=m.pt.asPoint2D();let a=this.m_offsetPts[t].m_prev;for(;;){if(u.getClosestCoordinate(h,r,o,!1)<1e-8){e=!1;break}if(r.y>o.y&&h.y<=o.y||r.y<o.y&&r.y<=o.y){u.orientationRobustEx(r,o,r,h)<0&&(e=!e)}if(h.x=r.x,h.y=r.y,a=this.m_offsetPts[a].m_next,a===s)break;r.x=this.m_offsetPts[a].x,r.y=this.m_offsetPts[a].y}if(e)return-1;const _=this.m_offsetPts[t].m_prev;return m.pt.type=i.type,m.pt.m_next=s,m.pt.m_prev=_,this.m_offsetPts[t]=m.pt,this.m_offsetPts[s].m_prev=t,s}}}return-1}sectGraphicRect(t,s,e,i){return Math.max(t.x,s.x)>=Math.min(e.x,i.x)&&Math.max(e.x,i.x)>=Math.min(t.x,s.x)&&Math.max(t.y,s.y)>=Math.min(e.y,i.y)&&Math.max(e.y,i.y)>=Math.min(t.y,s.y)}findIntersection(t,s,e,i){const[n,o,h,r]=[t,s,e,i].map(t=>t.asPoint2D());if(n.equals(h))return[0,0];if(n.equals(r))return[0,1];if(o.equals(h))return[1,0];if(o.equals(r))return[1,1];const m=[];return 1===f.segmentIntersectRobust(n,o,h,r,1e-15,m)?m:[-1,-1]}compressOffsetArray(t){for(;this.m_offsetPts[t].m_prev<t;)t=this.m_offsetPts[t].m_prev;let s=0,e=t;do{const t=this.m_offsetPts[e].clone();this.m_offsetPts[s]=t,e=t.m_next,s++}while(e!==t);this.m_offsetPts[s]=this.m_offsetPts[0].clone(),this.m_offsetPtCount=s+1}addPart(t,s,e){if(!(s<2)){for(let e=0;e<s;e++){const s=this.m_offsetPts[t+e];if(e?this.m_bUseZ?this.m_resultPath.lineTo3DCoords(s.x,s.y,s.z):this.m_resultPath.lineToCoords(s.x,s.y):this.m_bUseZ?this.m_resultPath.startPath3DCoords(s.x,s.y,s.z):this.m_resultPath.startPathCoords(s.x,s.y),this.m_bUseM){const t=this.m_resultPath.getPointCount()-1;this.m_resultPath.setAttribute(2,t,0,s.m)}}e&&this.m_resultPath.closePathWithLine()}}offsetMultiPath(t){const s=c(this.m_inputGeometry,0,this.m_tolerance,0,this.m_progressTracker,12e3),e=s.querySegmentIterator();e.resetToFirstPath();let i=-1;for(;e.nextPath();)i++,this.offsetPath(s,i,t)}offsetPath(t,s,e){let i=t.getPathStart(s),n=t.getPathEnd(s);if(this.m_resultPath=e,t.isClosedPath(s)){const s=t.getXY(i);for(;n>i&&t.getXY(n-1).equals(s);)n--;if(n-i>=2){this.m_srcPtCount=n-i,this.m_srcPts.length=this.m_srcPtCount;for(let s=i;s<n;s++)this.progress(),this.m_srcPts[s-i]=G.construct(t.getXY(s),this.m_bUseZ?t.getAttributeAsDbl(1,s,0):0,this.m_bUseM?t.getAttributeAsDbl(2,s,0):0);this.buildOffset()&&this.addPart(0,this.m_offsetPtCount-1,!0)}}else{const s=t.getXY(i);for(;i<n-1&&t.getXY(i+1).equals(s);)i++;const e=t.getXY(n-1);for(;i<n-1&&t.getXY(n-2).equals(e);)n--;if(n-i>=2){this.m_srcPtCount=2*(n-i)-2,this.m_srcPts.length=this.m_srcPtCount;let e=G.construct(s,this.m_bUseZ?t.getAttributeAsDbl(1,i,0):0,this.m_bUseM?t.getAttributeAsDbl(2,i,0):0);e.type|=v+A,this.m_srcPts[0]=e;let o=1,h=this.m_srcPtCount-1;for(let s=i+1;s<n-1;s++,o++,h--)this.progress(),e=G.construct(t.getXY(s),this.m_bUseZ?t.getAttributeAsDbl(1,s,0):0,this.m_bUseM?t.getAttributeAsDbl(2,s,0):0),this.m_srcPts[o]=e.clone(),e.type|=A,this.m_srcPts[h]=e.clone();if(e=G.construct(t.getXY(n-1),this.m_bUseZ?t.getAttributeAsDbl(1,n-1,0):0,this.m_bUseM?t.getAttributeAsDbl(2,n-1,0):0),e.type|=v,this.m_srcPts[o]=e.clone(),this.buildOffset())if(this.m_offsetPts.length>=2){let t=-1,s=-1,e=0!==(this.m_offsetPts[this.m_offsetPtCount-1].type&A);e||(t=0);for(let i=1;i<this.m_offsetPtCount;i++){this.progress();const n=0!==(this.m_offsetPts[i].type&A);n?e||(s=i-1,s-t+1>1&&this.addPart(t,s-t+1,!1)):e&&(t=i-1),e=n}e||(s=this.m_offsetPtCount-1,s-t+1>1&&this.addPart(t,s-t+1,!1))}else{const t=0,s=this.m_offsetPtCount-1;s-t>=1&&this.addPart(t,s-t+1,!1)}}}this.m_srcPts.length=0,this.m_srcPtCount=0,this.m_offsetPts.length=0,this.m_offsetPtCount=0}static dotSign(t,s,e,i){const n=s.x-t.x,o=s.y-t.y,h=i.x-e.x,r=i.y-e.y,m=y(n,o,h,r);return p(m)}}class j{getOperatorType(){return 10108}accelerateGeometry(t,s,e){return!1}canAccelerateGeometry(t){return!1}supportsCurves(){return!0}executeMany(t,s,e,i,n,o,h,r=0){return new k(t,s,e,i,n,o,h,r)}execute(t,s,e,i,n,o,h,r=0){return new k(null,s,e,i,n,o,h,r).offset(t)}}class k extends s{m_inputGeoms;m_spatialReference;m_progressTracker;m_distance;m_miterLimit;m_joins;m_flattenError;m_index;m_options;constructor(t,s,e,i,n,o,h,r){super(),this.m_progressTracker=h,this.m_index=-1,this.m_inputGeoms=t,this.m_spatialReference=s,this.m_distance=e,this.m_joins=i,this.m_miterLimit=n,this.m_flattenError=o,this.m_options=r}tock(){return!0}getRank(){return 1}next(){if(!this.m_inputGeoms)return null;let t;for(;t=this.m_inputGeoms.next();)return this.m_index=this.m_inputGeoms.getGeometryID(),this.offset(t);return null}getGeometryID(){return this.m_index}offset(t){let s;return i(t),s=this.m_flattenError<=0?e(this.m_spatialReference,t,!0).total():this.m_flattenError,M(t,this.m_distance,this.m_joins,this.m_miterLimit,s,this.m_options,this.m_progressTracker)}}const I=new j;function S(t,s,e,i,n,o){return I.execute(t,s,e,i,n,o,null)}function U(s,e,i,n,o,h){const r=I.executeMany(new t(s),e,i,n,o,h,null);return Array.from(r)}function T(){return I.supportsCurves()}export{S as execute,U as executeMany,T as supportsCurves};
2
+ import{S as t}from"../../../chunks/SimpleGeometryCursor.js";import{G as s}from"../../../chunks/GeometryCursor.js";import{e}from"../../../chunks/Envelope.js";import{c as i,a as n,G as o,h,g as r,t as m}from"../../../chunks/Geometry.js";import{a,P as _,L as f,d as c}from"../../../chunks/MultiPathImpl.js";import{P as u,l as P,n as d,r as l,u as y,e as p}from"../../../chunks/Point2D.js";import{s as x}from"../../../chunks/Bufferer-CclWhXVb.js";import{O as b}from"../../../chunks/OperatorGraphicBuffer.js";function M(t,s,e,o,h,r,m){if(null===t&&n(""),t.getDimension()<1&&n(""),h>0||n(""),i(t),0===s||t.isEmpty())return t;const a=new D(m);return a.m_bUseZ=t.hasAttribute(1),a.m_bUseM=t.hasAttribute(2),a.m_inputGeometry=t,a.m_distance=s,a.m_tolerance=h,a.m_joins=e,a.m_miterLimit=o>1?o:1,a.m_miterLimit=x(a.m_miterLimit),a.m_progressCounter=0,a.m_options=r,a.constructOffset()}const g=1.4142135623730951,C=.017453292519943295,E=256,v=512,A=1024;class G{x;y;m_next;m_prev;z;m;type;static construct(t,s,e){const i=new G;return i.x=t.x,i.y=t.y,i.m_next=-1,i.m_prev=-1,i.z=s,i.m=e,i.type=0,i}clone(){const t=new G;return t.x=this.x,t.y=this.y,t.m_next=this.m_next,t.m_prev=this.m_prev,t.z=this.z,t.m=this.m,t.type=this.type,t}asPoint2D(){return new u(this.x,this.y)}}function w(){return{pt:new G,bAtExistingPt:!1}}class D{m_progressTracker;m_inputGeometry;m_distance=-1;m_tolerance=-1;m_miterLimit=10;m_joins=0;m_progressCounter=0;m_options=0;m_bUseZ=!1;m_bUseM=!1;m_srcPts=[];m_srcPtCount=0;m_offsetPts=[];m_offsetPtCount=0;m_resultPath;m_a1=0;m_a2=0;constructor(t){this.m_progressTracker=t}constructOffset(){const s=this.m_inputGeometry.getGeometryType();if(s===o.enumLine)return this.offsetLine();if(s===o.enumEnvelope)return this.offsetEnvelope();if(h(s)){const t=new a;return t.addSegment(this.m_inputGeometry,!0),this.m_inputGeometry=t,this.constructOffset()}if(s===o.enumPolyline){const t=new a;return this.offsetMultiPath(t),t}if(s===o.enumPolygon){if(1===this.m_options){let s;switch(this.m_joins){case 1:case 3:s=2;break;case 2:s=1;break;case 0:s=0;break;default:r(!1,"Invalid join type")}const e=1,i=[-1];return(new b).executeMany(new t([this.m_inputGeometry]),null,i,s,e,this.m_miterLimit,this.m_tolerance,360,!1,0,null).next()}const s=new _;return this.offsetMultiPath(s),s}m("")}offsetLine(){const t=this.m_inputGeometry,s=t.getStartXY(),e=t.getEndXY(),i=new u;i.setSub(e,s),i.normalize(),i.leftPerpendicularThis(),i.scale(this.m_distance),s.addThis(i),e.addThis(i);const n=t.clone();return n.setStartXY(s),n.setEndXY(e),n}offsetEnvelope(){const t=this.m_inputGeometry;if(this.m_distance>0&&2!==this.m_joins){const s=new _;return s.addEnvelope(t,!1),this.m_inputGeometry=s,this.constructOffset()}const s=t.clone();return s.inflateCoords(this.m_distance,this.m_distance),s}progress(){}static buildPoint(t,s,e,i){i.x=t.x+s*Math.cos(e),i.y=t.y+s*Math.sin(e),i.type=t.type,i.z=t.z,i.m=t.m,i.m_next=-1,i.m_prev=-1}addPoint(t){this.m_offsetPts.push(t.clone()),this.m_offsetPtCount++}addPointEx(t,s){if(0===this.m_offsetPtCount)return void this.addPoint(t);const e=this.m_srcPtCount,i=this.m_srcPts[0===s?e-1:s-1],n=this.m_srcPts[s],o=D.dotSign(i,n,this.m_offsetPts[this.m_offsetPtCount-1],t);if(o>0)this.addPoint(t);else if(o<0)if(D.dotSign(i,n,n,this.m_offsetPts[this.m_offsetPtCount-1])>0){const n=new G;let o;o=0===s?e-2:1===s?e-1:s-2;const h=this.m_srcPts[o],r=Math.atan2(i.y-h.y,i.x-h.x);if(D.buildPoint(i,this.m_distance,r-P,n),this.m_offsetPts[this.m_offsetPtCount-1]=n.clone(),1===this.m_joins||2===this.m_joins){n.x=.5*(n.x+i.x),n.y=.5*(n.y+i.y),this.addPoint(n),D.buildPoint(i,this.m_distance,this.m_a1+P,n);const t=n.clone();t.x=.5*(t.x+i.x),t.y=.5*(t.y+i.y),t.type|=E,this.addPoint(t),this.addPoint(n)}else D.buildPoint(i,this.m_distance,this.m_a1+P,n),n.type|=E,this.addPoint(n);this.addPointEx(t,s)}else{const t=new G;if(D.buildPoint(n,this.m_distance,this.m_a1+P,t),this.addPoint(t),1===this.m_joins||2===this.m_joins){t.x=.5*(t.x+n.x),t.y=.5*(t.y+n.y),this.addPoint(t),D.buildPoint(n,this.m_distance,this.m_a2-P,t);const s=t.clone();s.x=.5*(s.x+n.x),s.y=.5*(s.y+n.y),s.type|=E,this.addPoint(s),this.addPoint(t)}else D.buildPoint(n,this.m_distance,this.m_a2-P,t),t.type|=E,this.addPoint(t)}}buildOffset(){const t=new G,s=this.m_srcPtCount;this.m_offsetPtCount=0;const e=.5*this.m_tolerance;let i=0,n=0;for(let o=0;o<s;o++){const h=this.m_srcPts[o],r=0===o?this.m_srcPts[s-1]:this.m_srcPts[o-1],m=o===s-1?this.m_srcPts[0]:this.m_srcPts[o+1];let a,_,f=0;{const t=r.x-h.x,s=r.y-h.y,e=m.x-h.x,c=m.y-h.y;a=Math.atan2(s,t),_=Math.atan2(c,e),this.m_a1=a,this.m_a2=_,0===o&&(i=a,n=_),f=u.orientationRobust(h.asPoint2D(),r.asPoint2D(),m.asPoint2D())}const c=_;_<a&&(_+=d);const l=Math.abs(Math.abs(a-_)-Math.PI)<1e-8;if(l||f*this.m_distance>0)if(l||1!==this.m_joins&&2!==this.m_joins){const s=.5*(_-a),e=0===s?this.m_distance:this.m_distance/Math.abs(Math.sin(s));D.buildPoint(h,e,.5*(a+_),t),this.addPointEx(t,o)}else{D.buildPoint(h,this.m_distance,a+P,t),this.addPoint(t);const s=.001;t.x=h.x+(t.x-h.x)*s,t.y=h.y+(t.y-h.y)*s,this.addPoint(t),D.buildPoint(h,this.m_distance,_-P,t);const e=t.clone();e.x=h.x+(e.x-h.x)*s,e.y=h.y+(e.y-h.y)*s,e.type|=E,this.addPoint(e),this.addPoint(t)}else{if(h.type&v){const s=1-e/Math.abs(this.m_distance);let i=1,n=this.m_distance<0?-Math.PI:Math.PI;if(s>-1&&s<1){let t=2*Math.acos(s);t<C&&(t=C),i=Math.trunc(Math.PI/t+1.5),i>1&&(n/=i)}i<=1&&(i=2,n/=2);let r=a+P;D.buildPoint(h,this.m_distance,r,t),0===o&&(t.type|=A),this.addPointEx(t,o);const m=this.m_distance/Math.cos(n/2);for(r+=n/2,D.buildPoint(h,m,r,t),t.type|=A,this.addPoint(t);--i>0;)r+=n,D.buildPoint(h,m,r,t),t.type|=A,this.addPoint(t);D.buildPoint(h,this.m_distance,_-P,t),t.type|=A,this.addPoint(t);continue}if(1!==this.m_joins){if(0===this.m_joins){const s=1-e/Math.abs(this.m_distance);let i=1,n=_-P-(a+P);if(s>-1&&s<1){let t=2*Math.acos(s);t<C&&(t=C),i=Math.trunc(Math.abs(n)/t+1.5),i>1&&(n/=i)}const r=this.m_distance/Math.cos(.5*n);let m=a+P+.5*n;for(D.buildPoint(h,r,m,t),this.addPointEx(t,o);--i>0;)m+=n,D.buildPoint(h,r,m,t),this.addPoint(t);continue}if(2===this.m_joins){const s=r.x-h.x,e=r.y-h.y,i=m.x-h.x,n=m.y-h.y;let f=(s*i+e*n)/Math.sqrt(s*s+e*e)/Math.sqrt(i*i+n*n);if(f=Math.max(f,-1),f>1-1e-8){D.buildPoint(h,g*this.m_distance,_-.25*Math.PI,t),this.addPointEx(t,o),D.buildPoint(h,g*this.m_distance,_+.25*Math.PI,t),this.addPoint(t);continue}const c=Math.abs(this.m_distance/Math.sin(.5*Math.acos(f))),P=Math.abs(this.m_miterLimit*this.m_distance);if(c>P){const s=.5*(_-a),e=this.m_distance/Math.abs(Math.sin(s));D.buildPoint(h,e,.5*(a+_),t);const i=u.construct(t.x,t.y),n=u.construct(h.x,h.y),r=new u;r.setSub(i,n);const m=new u;m.setScaleAdd(P/r.length(),r,n);const f=Math.sqrt(c*c-this.m_distance*this.m_distance),d=(c-P)*Math.abs(this.m_distance)/f;this.m_distance>0?r.rightPerpendicularThis():r.leftPerpendicularThis(),r.scale(d/r.length());const l=new u;l.setAdd(m,r);const y=new u;y.setSub(m,r),t.x=l.x,t.y=l.y,this.addPointEx(t,o),t.x=y.x,t.y=y.y,this.addPoint(t);continue}const d=.5*(_-a),l=this.m_distance/Math.abs(Math.sin(d));D.buildPoint(h,l,.5*(a+_),t),this.addPointEx(t,o);continue}{let s;if(_=c,this.m_distance>0?(_>a&&(_-=d),s=a-_<P):(_<a&&(_+=d),s=_-a<P),s){const s=this.m_distance*g;let e;e=s<0?a+.25*Math.PI:a+3*Math.PI*.25,D.buildPoint(h,s,e,t),this.addPointEx(t,o),e=s<0?_-.25*Math.PI:_-3*Math.PI*.25,D.buildPoint(h,s,e,t),this.addPoint(t)}else{const s=.5*(_-a),e=this.m_distance/Math.abs(Math.sin(s));_<a&&(_+=d),D.buildPoint(h,e,(a+_)/2,t),this.addPointEx(t,o)}}}else D.buildPoint(h,this.m_distance,a+P,t),this.addPointEx(t,o),D.buildPoint(h,this.m_distance,_-P,t),this.addPoint(t)}}return this.m_a1=i,this.m_a2=n,this.addPointEx(this.m_offsetPts[0],0),this.m_offsetPts[0]=this.m_offsetPts[this.m_offsetPtCount-1].clone(),this.removeBadSegsFast()}removeBadSegsFast(){for(let e=0;e<this.m_offsetPtCount;e++){const t=this.m_offsetPts[e];t.m_next=e+1,t.m_prev=e-1}this.m_offsetPts[0].m_prev=this.m_offsetPtCount-2,this.m_offsetPts[this.m_offsetPtCount-2].m_next=0;let t=this.m_offsetPtCount,s=0;for(let e=0;e<t;e++)if(this.m_offsetPts[s].type&E){const e=this.m_offsetPts[s].m_next,i=this.deleteClosedSeg(s);if(-1===i){r(this.m_offsetPts[s].m_next===e);break}if(s>i){s=i,t=0;do{t++,s=this.m_offsetPts[s].m_next}while(s!==i)}s=i}else s=this.m_offsetPts[s].m_next;return this.compressOffsetArray(s),!0}deleteClosedSeg(t){const s=this.m_offsetPtCount-1;let e=t;for(let i=1;i<=s-2&&(e=this.m_offsetPts[e].m_next,t!==e);i++){let s=e,n=t;for(let o=1;o<=i&&(n=this.m_offsetPts[n].m_prev,n!==t);o++){if(0===(this.m_offsetPts[n].type&E)&&0===(this.m_offsetPts[s].type&E)){const t=this.handleClosedIntersection(n,s);if(-1!==t)return t}if(s=this.m_offsetPts[s].m_prev,s===e)break}}return-1}handleClosedIntersection(t,s){const e=this.m_offsetPts[this.m_offsetPts[t].m_prev],i=this.m_offsetPts[t],n=this.m_offsetPts[this.m_offsetPts[s].m_prev],o=this.m_offsetPts[s];if(!this.sectGraphicRect(e,i,n,o))return-1;if(u.orientationRobustEx(e.asPoint2D(),i.asPoint2D(),n.asPoint2D(),o.asPoint2D())*this.m_distance<0){const h=this.findIntersection(e,i,n,o);let r=!1;if(h[0]>=0){const m=w();if(h[0]>=0&&h[0]<=1&&(m.pt.x=l(e.x,i.x,h[0]),m.pt.y=l(e.y,i.y,h[0]),this.m_bUseZ&&(m.pt.z=l(n.z,o.z,h[1])),this.m_bUseM&&(m.pt.m=l(n.m,o.m,h[1])),0!==h[1]&&1!==h[1]||0!==h[0]&&1!==h[0]||(m.bAtExistingPt=!0),r=!((0===h[1]||1===h[1])&&h[0]>0&&h[0]<1||(0===h[0]||1===h[0])&&h[1]>0&&h[1]<1)),r&&!m.bAtExistingPt){let e=!1;const o=m.pt.asPoint2D(),h=n.asPoint2D(),r=m.pt.asPoint2D();let a=this.m_offsetPts[t].m_prev;for(;;){if(u.getClosestCoordinate(h,r,o,!1)<1e-8){e=!1;break}if(r.y>o.y&&h.y<=o.y||r.y<o.y&&r.y<=o.y){u.orientationRobustEx(r,o,r,h)<0&&(e=!e)}if(h.x=r.x,h.y=r.y,a=this.m_offsetPts[a].m_next,a===s)break;r.x=this.m_offsetPts[a].x,r.y=this.m_offsetPts[a].y}if(e)return-1;const _=this.m_offsetPts[t].m_prev;return m.pt.type=i.type,m.pt.m_next=s,m.pt.m_prev=_,this.m_offsetPts[t]=m.pt,this.m_offsetPts[s].m_prev=t,s}}}return-1}sectGraphicRect(t,s,e,i){return Math.max(t.x,s.x)>=Math.min(e.x,i.x)&&Math.max(e.x,i.x)>=Math.min(t.x,s.x)&&Math.max(t.y,s.y)>=Math.min(e.y,i.y)&&Math.max(e.y,i.y)>=Math.min(t.y,s.y)}findIntersection(t,s,e,i){const[n,o,h,r]=[t,s,e,i].map(t=>t.asPoint2D());if(n.equals(h))return[0,0];if(n.equals(r))return[0,1];if(o.equals(h))return[1,0];if(o.equals(r))return[1,1];const m=[];return 1===f.segmentIntersectRobust(n,o,h,r,1e-15,m)?m:[-1,-1]}compressOffsetArray(t){for(;this.m_offsetPts[t].m_prev<t;)t=this.m_offsetPts[t].m_prev;let s=0,e=t;do{const t=this.m_offsetPts[e].clone();this.m_offsetPts[s]=t,e=t.m_next,s++}while(e!==t);this.m_offsetPts[s]=this.m_offsetPts[0].clone(),this.m_offsetPtCount=s+1}addPart(t,s,e){if(!(s<2)){for(let e=0;e<s;e++){const s=this.m_offsetPts[t+e];if(e?this.m_bUseZ?this.m_resultPath.lineTo3DCoords(s.x,s.y,s.z):this.m_resultPath.lineToCoords(s.x,s.y):this.m_bUseZ?this.m_resultPath.startPath3DCoords(s.x,s.y,s.z):this.m_resultPath.startPathCoords(s.x,s.y),this.m_bUseM){const t=this.m_resultPath.getPointCount()-1;this.m_resultPath.setAttribute(2,t,0,s.m)}}e&&this.m_resultPath.closePathWithLine()}}offsetMultiPath(t){const s=c(this.m_inputGeometry,0,this.m_tolerance,0,this.m_progressTracker,12e3),e=s.querySegmentIterator();e.resetToFirstPath();let i=-1;for(;e.nextPath();)i++,this.offsetPath(s,i,t)}offsetPath(t,s,e){let i=t.getPathStart(s),n=t.getPathEnd(s);if(this.m_resultPath=e,t.isClosedPath(s)){const s=t.getXY(i);for(;n>i&&t.getXY(n-1).equals(s);)n--;if(n-i>=2){this.m_srcPtCount=n-i,this.m_srcPts.length=this.m_srcPtCount;for(let s=i;s<n;s++)this.progress(),this.m_srcPts[s-i]=G.construct(t.getXY(s),this.m_bUseZ?t.getAttributeAsDbl(1,s,0):0,this.m_bUseM?t.getAttributeAsDbl(2,s,0):0);this.buildOffset()&&this.addPart(0,this.m_offsetPtCount-1,!0)}}else{const s=t.getXY(i);for(;i<n-1&&t.getXY(i+1).equals(s);)i++;const e=t.getXY(n-1);for(;i<n-1&&t.getXY(n-2).equals(e);)n--;if(n-i>=2){this.m_srcPtCount=2*(n-i)-2,this.m_srcPts.length=this.m_srcPtCount;let e=G.construct(s,this.m_bUseZ?t.getAttributeAsDbl(1,i,0):0,this.m_bUseM?t.getAttributeAsDbl(2,i,0):0);e.type|=v+A,this.m_srcPts[0]=e;let o=1,h=this.m_srcPtCount-1;for(let s=i+1;s<n-1;s++,o++,h--)this.progress(),e=G.construct(t.getXY(s),this.m_bUseZ?t.getAttributeAsDbl(1,s,0):0,this.m_bUseM?t.getAttributeAsDbl(2,s,0):0),this.m_srcPts[o]=e.clone(),e.type|=A,this.m_srcPts[h]=e.clone();if(e=G.construct(t.getXY(n-1),this.m_bUseZ?t.getAttributeAsDbl(1,n-1,0):0,this.m_bUseM?t.getAttributeAsDbl(2,n-1,0):0),e.type|=v,this.m_srcPts[o]=e.clone(),this.buildOffset())if(this.m_offsetPts.length>=2){let t=-1,s=-1,e=0!==(this.m_offsetPts[this.m_offsetPtCount-1].type&A);e||(t=0);for(let i=1;i<this.m_offsetPtCount;i++){this.progress();const n=0!==(this.m_offsetPts[i].type&A);n?e||(s=i-1,s-t+1>1&&this.addPart(t,s-t+1,!1)):e&&(t=i-1),e=n}e||(s=this.m_offsetPtCount-1,s-t+1>1&&this.addPart(t,s-t+1,!1))}else{const t=0,s=this.m_offsetPtCount-1;s-t>=1&&this.addPart(t,s-t+1,!1)}}}this.m_srcPts.length=0,this.m_srcPtCount=0,this.m_offsetPts.length=0,this.m_offsetPtCount=0}static dotSign(t,s,e,i){const n=s.x-t.x,o=s.y-t.y,h=i.x-e.x,r=i.y-e.y,m=y(n,o,h,r);return p(m)}}class j{getOperatorType(){return 10108}accelerateGeometry(t,s,e){return!1}canAccelerateGeometry(t){return!1}supportsCurves(){return!0}executeMany(t,s,e,i,n,o,h,r=0){return new k(t,s,e,i,n,o,h,r)}execute(t,s,e,i,n,o,h,r=0){return new k(null,s,e,i,n,o,h,r).offset(t)}}class k extends s{m_inputGeoms;m_spatialReference;m_progressTracker;m_distance;m_miterLimit;m_joins;m_flattenError;m_index;m_options;constructor(t,s,e,i,n,o,h,r){super(),this.m_progressTracker=h,this.m_index=-1,this.m_inputGeoms=t,this.m_spatialReference=s,this.m_distance=e,this.m_joins=i,this.m_miterLimit=n,this.m_flattenError=o,this.m_options=r}tock(){return!0}getRank(){return 1}next(){if(!this.m_inputGeoms)return null;let t;for(;t=this.m_inputGeoms.next();)return this.m_index=this.m_inputGeoms.getGeometryID(),this.offset(t);return null}getGeometryID(){return this.m_index}offset(t){let s;return i(t),s=this.m_flattenError<=0?e(this.m_spatialReference,t,!0).total():this.m_flattenError,M(t,this.m_distance,this.m_joins,this.m_miterLimit,s,this.m_options,this.m_progressTracker)}}const I=new j;function S(t,s,e,i,n,o){return I.execute(t,s,e,i,n,o,null)}function U(s,e,i,n,o,h){const r=I.executeMany(new t(s),e,i,n,o,h,null);return Array.from(r)}function T(){return I.supportsCurves()}export{S as execute,U as executeMany,T as supportsCurves};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{S as e}from"../../../chunks/SimpleGeometryCursor.js";import{G as t}from"../../../chunks/GeometryCursor.js";import{i as n,G as s,m as r,j as u,d as i}from"../../../chunks/Geometry.js";import{P as o,a as m,M as l}from"../../../chunks/MultiPathImpl.js";import"../../../chunks/SpatialReference.js";import"../../../chunks/Point2D.js";import"../../../chunks/Envelope.js";function c(e,t){if(n(e.getGeometryType())){const n=t;return e.getImpl().setIsSimple(n.flags,n.tolerance),!0}return!1}class p{getOperatorType(){return 10701}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}executeMany(e,t,n){return new a(e,t,n)}}class a extends t{m_inputGeoms;m_progressTracker;m_results=[];m_descr;m_index=0;constructor(e,t,n){super(),this.m_progressTracker=t,this.m_inputGeoms=e,this.m_descr=n}tock(){return!0}getRank(){return 1}next(){if(this.m_inputGeoms&&(this.combineGeometries(this.m_descr),this.m_descr=null,this.m_inputGeoms=null),this.m_index<this.m_results.length){const e=this.m_results[this.m_index];return this.m_index++,e}return null}getGeometryID(){return this.m_index-1}combineGeometries(e){let t=s.enumUnknown,n=null,p=null,a=null;for(let c=this.m_inputGeoms.next();null!==c;c=this.m_inputGeoms.next()){if(t=c.getGeometryType(),t===s.enumPolygon||t===s.enumEnvelope){if(a||(a=new o({vd:c.getDescription()})),t===s.enumPolygon){a.add(c,!1);continue}if(t===s.enumEnvelope){a.addEnvelope(c,!1);continue}}else if(r(t)||t===s.enumPolyline){if(p||(p=new m({vd:c.getDescription()})),t===s.enumPolyline){p.add(c,!1);continue}if(r(t)){p.addSegment(c,!0);continue}}else if(u(t)){if(n||(n=new l({vd:c.getDescription()})),t===s.enumPoint){n.add(c);continue}if(t===s.enumMultiPoint){n.addPoints(c,0,-1);continue}}i("unsupported type")}null!==e&&(null!==n&&c(n,e),null!==p&&c(p,e),null!==a&&c(a,e)),n&&this.m_results.push(n),p&&this.m_results.push(p),a&&this.m_results.push(a)}}const h=new p;function d(t){const n=h.executeMany(new e(t),null,null);return Array.from(n)}function _(){return h.supportsCurves()}export{d as executeMany,_ as supportsCurves};
2
+ import{S as e}from"../../../chunks/SimpleGeometryCursor.js";import{G as t}from"../../../chunks/GeometryCursor.js";import{i as n,G as s,h as r,f as u,d as i}from"../../../chunks/Geometry.js";import{P as o,a as m,M as l}from"../../../chunks/MultiPathImpl.js";import"../../../chunks/SpatialReference.js";import"../../../chunks/Point2D.js";import"../../../chunks/Envelope.js";function c(e,t){if(n(e.getGeometryType())){const n=t;return e.getImpl().setIsSimple(n.flags,n.tolerance),!0}return!1}class p{getOperatorType(){return 10701}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}executeMany(e,t,n){return new a(e,t,n)}}class a extends t{m_inputGeoms;m_progressTracker;m_results=[];m_descr;m_index=0;constructor(e,t,n){super(),this.m_progressTracker=t,this.m_inputGeoms=e,this.m_descr=n}tock(){return!0}getRank(){return 1}next(){if(this.m_inputGeoms&&(this.combineGeometries(this.m_descr),this.m_descr=null,this.m_inputGeoms=null),this.m_index<this.m_results.length){const e=this.m_results[this.m_index];return this.m_index++,e}return null}getGeometryID(){return this.m_index-1}combineGeometries(e){let t=s.enumUnknown,n=null,p=null,a=null;for(let c=this.m_inputGeoms.next();null!==c;c=this.m_inputGeoms.next()){if(t=c.getGeometryType(),t===s.enumPolygon||t===s.enumEnvelope){if(a||(a=new o({vd:c.getDescription()})),t===s.enumPolygon){a.add(c,!1);continue}if(t===s.enumEnvelope){a.addEnvelope(c,!1);continue}}else if(r(t)||t===s.enumPolyline){if(p||(p=new m({vd:c.getDescription()})),t===s.enumPolyline){p.add(c,!1);continue}if(r(t)){p.addSegment(c,!0);continue}}else if(u(t)){if(n||(n=new l({vd:c.getDescription()})),t===s.enumPoint){n.add(c);continue}if(t===s.enumMultiPoint){n.addPoints(c,0,-1);continue}}i("unsupported type")}null!==e&&(null!==n&&c(n,e),null!==p&&c(p,e),null!==a&&c(a,e)),n&&this.m_results.push(n),p&&this.m_results.push(p),a&&this.m_results.push(a)}}const h=new p;function d(t){const n=h.executeMany(new e(t),null,null);return Array.from(n)}function f(){return h.supportsCurves()}export{d as executeMany,f as supportsCurves};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{S as e}from"../../../chunks/SimpleGeometryCursor.js";import"../../../chunks/Geometry.js";import"../../../chunks/Point2D.js";import"../../../chunks/MultiPathImpl.js";import{t as n}from"../../../chunks/SpatialReference.js";import"../../../chunks/Envelope.js";const t=new n;function r(e,n,r){return t.execute(e,n,r,null)}function u(n,r){return t.executeMany(new e(n),r,null).next()}function o(){return t.supportsCurves()}export{r as execute,u as executeMany,o as supportsCurves};
2
+ import{S as e}from"../../../chunks/SimpleGeometryCursor.js";import"../../../chunks/Geometry.js";import"../../../chunks/Point2D.js";import"../../../chunks/MultiPathImpl.js";import{z as n}from"../../../chunks/SpatialReference.js";import"../../../chunks/Envelope.js";const t=new n;function r(e,n,r){return t.execute(e,n,r,null)}function u(n,r){return t.executeMany(new e(n),r,null).next()}function o(){return t.supportsCurves()}export{r as execute,u as executeMany,o as supportsCurves};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{x as e}from"../../../chunks/SpatialReference.js";import{fromGeometry as t,fromGeometryToGXGeometry as r}from"../support/jsonConverter.js";const n=new e;function o(e,o){const s=t(e);return n.execute(s.getGeometry(),r(o),s.getSpatialReference(),null)}export{o as execute};
2
+ import{t as e}from"../../../chunks/SpatialReference.js";import{fromGeometry as t,fromGeometryToGXGeometry as r}from"../support/jsonConverter.js";const n=new e;function o(e,o){const s=t(e);return n.execute(s.getGeometry(),r(o),s.getSpatialReference(),null)}export{o as execute};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{y as e}from"../../../chunks/SpatialReference.js";import{fromGeometry as t,fromGeometryToGXGeometry as r}from"../support/jsonConverter.js";const o=new e;function n(e,n){const s=t(e);return o.execute(s.getGeometry(),r(n),s.getSpatialReference())}export{n as execute};
2
+ import{u as e}from"../../../chunks/SpatialReference.js";import{fromGeometry as t,fromGeometryToGXGeometry as r}from"../support/jsonConverter.js";const o=new e;function n(e,n){const s=t(e);return o.execute(s.getGeometry(),r(n),s.getSpatialReference())}export{n as execute};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{isSome as r}from"../../core/arrayUtils.js";import{supportsCurves as o,executeMany as t}from"./gx/operatorMultiPartToSinglePart.js";import{fromGeometry as s,getSpatialReference as p,fromSpatialReference as e,toGeometry as a}from"./support/apiConverter.js";function i(o,i={}){const{simplifyPolygons:m=!0}=i,n=m?1:2,u=o.map(s),f=p(o);return t(u,e(f),n).map(r=>a(r,f)).filter(r)}const m=o();export{i as executeMany,m as supportsCurves};
2
+ import"../../core/arrayUtils.js";import"./gx/operatorMultiPartToSinglePart.js";import"./support/apiConverter.js";export{e as executeMany,s as supportsCurves}from"../../chunks/multiPartToSinglePartOperator.js";
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{convertToSpatialReferenceUnit as r}from"../../core/units.js";import{supportsCurves as t,execute as o,executeMany as e}from"./gx/operatorOffset.js";import{getSpatialReference as n,toGeometry as s,fromSpatialReference as i,fromGeometry as u}from"./support/apiConverter.js";const m={round:0,bevel:1,miter:2,square:3};function p(t,e,p={}){const{miterLimit:a=10,flattenError:c=0,joins:f="round",unit:j}=p,x=n(t);return j&&(e=r(e,j,x)),s(o(u(t),i(x),e,m[f],a,c),x)}function a(t,o,p={}){const{miterLimit:a=10,flattenError:c=0,joins:f="round",unit:j}=p,x=n(t);j&&(o=r(o,j,x));const d=t.map(u);return e(d,i(x),o,m[f],a,c).map(r=>s(r,x))}const c=t();export{p as execute,a as executeMany,c as supportsCurves};
2
+ import"../../core/units.js";import"./gx/operatorOffset.js";import"./support/apiConverter.js";export{e as execute,a as executeMany,s as supportsCurves}from"../../chunks/offsetOperator.js";
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import t from"../../../core/Error.js";import{memoize as e}from"../../../core/memoize.js";import{fromJSON as s}from"../jsonUtils.js";import{interpolateCubicBezier as n}from"./bezierCurveUtils.js";import{deriveCircleFromCircularArc as i}from"./circularArcUtils.js";import{isCurvedGeometry as r,getCurves as a,getEndpoint as o,isCoordinate as c,isBezierCurve as h,isCircularArc as u,isEllipticArc4 as p,hasUnsupportedCurve as l,isEllipticArc7 as m,cloneCurve as d}from"./curveUtils.js";import{deriveCircleFromEllipticArc4 as f}from"./ellipticArc4Utils.js";import{deriveEllipse as S,interpolateEllipse as v}from"./ellipticArc7Utils.js";import{interpolateSegment as E,pointToSegmentDistance2 as g,distance2 as x}from"./mathUtils.js";const M={maxSegmentLength:0,maxDeviation:0,maxSegmentsPerCurve:12e3,minSegmentsPerCurve:1},P=100,k=1e-6,C=[0,0];function _(t){return{maxSegmentLength:t.maxSegmentLength??M.maxSegmentLength,maxDeviation:t.maxDeviation??M.maxDeviation,maxSegmentsPerCurve:t.maxSegmentsPerCurve??M.maxSegmentsPerCurve,minSegmentsPerCurve:Math.max(t.minSegmentsPerCurve??M.minSegmentsPerCurve,1)}}class y{constructor(t,e){this.curveStart=t,this.curveEnd=e,this.tStart=0,this.tEnd=0,this.tEndStack=[],this.arcEndStack=[]}get stackSize(){return this.tEndStack.length}initialize(t,e){this.tStart=0,this.arcStart=t,this.tEndStack.push(1),this.arcEndStack.push(e)}splitAt(t){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(t),this.arcEndStack.push(this.interpolate(t))}splitInHalf(){return this.splitAt((this.tStart+this.tEnd)/2)}pop(){this.tEnd=this.tEndStack.pop(),this.arcEnd=this.arcEndStack.pop()}next(){this.tStart=this.tEnd,this.arcStart=this.arcEnd}densify(t,{maxDeviation:e,maxSegmentLength:s,maxSegmentsPerCurve:n,minSegmentsPerCurve:i}){const r=s*s,a=e*e,o=1/n,c=this.interpolate(0),h=this.interpolate(1);x(this.curveStart,c)>k&&t.push(c),this.initialize(c,h);const u=1/i;for(let p=i-1;p>0;p--){const t=p*u;this.pop(),this.splitAt(t)}for(;this.stackSize>0;)this.pop(),this.tStart===this.tEnd||this.tEnd-this.tStart<o||(0===r||!isFinite(r)||x(this.arcStart,this.arcEnd)<r)&&(0===a||!isFinite(a)||this.getDeviation2()<a)?(t.push(this.arcEnd),this.next()):this.splitInHalf();return x(this.curveEnd,h)>k&&t.push([...this.curveEnd]),t}}class R extends y{constructor(t,e){const[s,n,i]=e.b;super(t,s),this._controlPointsStack=[],this._curveControlPoints=[n,i],this._arcControlPoints=[n,i],this._controlPointsStack.push(this._arcControlPoints)}splitAt(t){const{arcStart:e,arcEnd:s,tStart:n,tEnd:i}=this,[r,a]=this._arcControlPoints,o=(t-n)/(i-n),c=E([],e,r,o),h=E(C,r,a,o),u=E([],a,s,o),p=E([],c,h,o),l=E([],h,u,o),m=E([],p,l,o);this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this._controlPointsStack.push([l,u]),this.tEndStack.push(t),this.arcEndStack.push(m),this._arcControlPoints[0]=c,this._arcControlPoints[1]=p,this._controlPointsStack.push(this._arcControlPoints)}pop(){super.pop(),this._arcControlPoints=this._controlPointsStack.pop()}interpolate(t){const{curveStart:e,curveEnd:s}=this,[i,r]=this._curveControlPoints;return n(e,i,r,s,t)}getDeviation2(){const{arcStart:t,arcEnd:e}=this,[s,n]=this._arcControlPoints;return Math.max(g(s,t,e),g(n,t,e))}}class w extends y{constructor(t,e){const[s]=e.a;super(t,s),this._derivedEllipse=S(t,e)}pop(){super.pop(),this._tMid=(this.tStart+this.tEnd)/2,this._arcMid=this.interpolate(this._tMid)}splitInHalf(){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(this._tMid),this.arcEndStack.push(this._arcMid)}interpolate(t){return v(this._derivedEllipse,t)}getDeviation2(){return g(this._arcMid,this.arcStart,this.arcEnd)}}function b(t,e,s,{cx:n,cy:i,radius:r,thetaStart:a,thetaEnd:o,isInvalid:c},{maxDeviation:h,maxSegmentLength:u,maxSegmentsPerCurve:p,minSegmentsPerCurve:l}){if(c)return t.push([...s]),t;const m=2*r,d=[n+r*Math.cos(a),i+r*Math.sin(a)],f=[n+r*Math.cos(o),i+r*Math.sin(o)];x(e,d)>k&&t.push(d);const S=Math.abs(o-a),v=u>0&&u<m?2*Math.asin(u/m):S,E=h>0&&h<=r?2*Math.acos(1-h/r):S,g=Math.min(v,E),M=Math.min(p,Math.max(l,Math.ceil(Math.abs(S/g)))),P=1/M;for(let x=1;x<M;x++){const e=x*P,s=a*(1-e)+o*e;t.push([n+r*Math.cos(s),i+r*Math.sin(s)])}return t.push(f),x(s,f)>k&&t.push([...s]),t}function j(t,e,s,n){return new R(e,s).densify(t,n)}function Z(t,e,s,n){const r=i(e,s),[a]=s.c;return b(t,e,a,r,n)}function D(t,e,s,n){const i=f(e,s),[r]=s.a;return b(t,e,r,i,n)}function z(t,e,s,n){const[i,r,a,o,c,h,u]=s.a;return 0===h||0===u?(t.push([...i]),t):new w(e,s).densify(t,n)}function A(t,e,s,n){return c(s)?(t.push([...s]),t):h(s)?j(t,e,s,n):u(s)?Z(t,e,s,n):p(s)?D(t,e,s,n):z(t,e,s,n)}function L(t,e={}){if(!r(t))return t;const s=_(e),n=a(t),i=[];for(const r of n){const t=[];for(let e=0;e<r.length-1;e++){const n=e+1,i=[...o(r[e])];0===e&&t.push(i);A(t,i,r[n],s)}i.push(t)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},paths:i,spatialReference:t.spatialReference}:{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},rings:i,spatialReference:t.spatialReference}}const U=e(t=>({maxDeviation:0,maxSegmentLength:t*P,maxSegmentsPerCurve:12e3,minSegmentsPerCurve:1}));function T(t,e,s){if(!r(t))return t;const n=new Set(e),i=_(s),l=a(t),f=[];let S=!1;for(const r of l){const t=[];for(let e=0;e<r.length-1;e++){const s=e+1,a=[...o(r[e])];0===e&&t.push(a);const l=r[s];c(l)?t.push([...l]):h(l)&&!n.has("cubic-bezier")?j(t,a,l,i):u(l)&&!n.has("circular-arc")?Z(t,a,l,i):p(l)&&!n.has("elliptic-arc")?D(t,a,l,i):m(l)&&!n.has("elliptic-arc")?z(t,a,l,i):(t.push(d(l)),S=!0)}f.push(t)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},spatialReference:t.spatialReference,...S?{curvePaths:f}:{paths:f}}:{hasZ:t.hasZ,hasM:t.hasM,spatialReference:t.spatialReference,...S?{curveRings:f}:{rings:f}}}async function I(t,e,n){const i=new Set(e);return await J(t,i,n),t.map(t=>{if(!t||!r(t))return t;const n=t.spatialReference.xyTolerance;if(null==n)return t;const i=U(n);return s(T(t,e,i))})}async function J(e,s,n){let i=null;for(const a of e)if(a&&r(a)&&null==a.spatialReference.xyTolerance&&l(a,s)){const e=a.spatialReference;if(!e)throw new t("geometry:missing-spatial-reference","Geometry contains an unsupported curve type, but it cannot be densified because it has no spatial reference.");const s=N(e);if(n.has(s))a.spatialReference=n.get(s);else{i||(i=await import("../../operators/support/apiConverter.js"));const r=i.fromSpatialReference(e),o=r?.getTolerance();if(null==o)throw new t("geometry:missing-tolerance","Geometry contains an unsupported curve type, but it cannot be densified because the tolerance of its spatial reference is unknown. Set the `xyTolerance` property of the spatial reference.");const c=a.spatialReference.clone();c.read({xyTolerance:o}),a.spatialReference=c,n.set(s,c)}}}function N(t){if(null!=t.wkid)return`${t.wkid}`;if(null!=t.wkt)return t.wkt;const e="toJSON"in t&&"function"==typeof t.toJSON?t.toJSON():t;return JSON.stringify(e)}export{L as densifyCurvedGeometry,I as densifyUnsupportedCurves,U as getAutoDensifyOptions,N as getCacheKey,T as selectiveDensifyCurvedGeometryJSON};
2
+ import t from"../../../core/Error.js";import{memoize as e}from"../../../core/memoize.js";import{fromJSON as s}from"../jsonUtils.js";import{interpolateCubicBezier as n}from"./bezierCurveUtils.js";import{deriveCircleFromCircularArc as i}from"./circularArcUtils.js";import{isCurvedGeometry as r,getCurves as a,getEndpoint as o,isCoordinate as c,isBezierCurve as h,isCircularArc as u,isEllipticArc4 as p,hasUnsupportedCurve as l,isEllipticArc7 as m,cloneCurve as d}from"./curveUtils.js";import{deriveCircleFromEllipticArc4 as f}from"./ellipticArc4Utils.js";import{deriveEllipse as S,interpolateEllipse as v}from"./ellipticArc7Utils.js";import{interpolateSegment as E,pointToSegmentDistance2 as g,distance2 as x}from"./mathUtils.js";const M={maxSegmentLength:0,maxDeviation:0,maxSegmentsPerCurve:12e3,minSegmentsPerCurve:1},P=100,k=1e-6,C=[0,0];function _(t){return{maxSegmentLength:t.maxSegmentLength??M.maxSegmentLength,maxDeviation:t.maxDeviation??M.maxDeviation,maxSegmentsPerCurve:t.maxSegmentsPerCurve??M.maxSegmentsPerCurve,minSegmentsPerCurve:Math.max(t.minSegmentsPerCurve??M.minSegmentsPerCurve,1)}}class y{constructor(t,e){this.curveStart=t,this.curveEnd=e,this.tStart=0,this.tEnd=0,this.tEndStack=[],this.arcEndStack=[]}get stackSize(){return this.tEndStack.length}initialize(t,e){this.tStart=0,this.arcStart=t,this.tEndStack.push(1),this.arcEndStack.push(e)}splitAt(t){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(t),this.arcEndStack.push(this.interpolate(t))}splitInHalf(){return this.splitAt((this.tStart+this.tEnd)/2)}pop(){this.tEnd=this.tEndStack.pop(),this.arcEnd=this.arcEndStack.pop()}next(){this.tStart=this.tEnd,this.arcStart=this.arcEnd}densify(t,{maxDeviation:e,maxSegmentLength:s,maxSegmentsPerCurve:n,minSegmentsPerCurve:i}){const r=s*s,a=e*e,o=1/n,c=this.interpolate(0),h=this.interpolate(1);x(this.curveStart,c)>k&&t.push(c),this.initialize(c,h);const u=1/i;for(let p=i-1;p>0;p--){const t=p*u;this.pop(),this.splitAt(t)}for(;this.stackSize>0;)this.pop(),this.tStart===this.tEnd||this.tEnd-this.tStart<o||(0===r||!isFinite(r)||x(this.arcStart,this.arcEnd)<r)&&(0===a||!isFinite(a)||this.getDeviation2()<a)?(t.push(this.arcEnd),this.next()):this.splitInHalf();return x(this.curveEnd,h)>k&&t.push([...this.curveEnd]),t}}class R extends y{constructor(t,e){const[s,n,i]=e.b;super(t,s),this._controlPointsStack=[],this._curveControlPoints=[n,i],this._arcControlPoints=[n,i],this._controlPointsStack.push(this._arcControlPoints)}splitAt(t){const{arcStart:e,arcEnd:s,tStart:n,tEnd:i}=this,[r,a]=this._arcControlPoints,o=(t-n)/(i-n),c=E([],e,r,o),h=E(C,r,a,o),u=E([],a,s,o),p=E([],c,h,o),l=E([],h,u,o),m=E([],p,l,o);this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this._controlPointsStack.push([l,u]),this.tEndStack.push(t),this.arcEndStack.push(m),this._arcControlPoints[0]=c,this._arcControlPoints[1]=p,this._controlPointsStack.push(this._arcControlPoints)}pop(){super.pop(),this._arcControlPoints=this._controlPointsStack.pop()}interpolate(t){const{curveStart:e,curveEnd:s}=this,[i,r]=this._curveControlPoints;return n(e,i,r,s,t)}getDeviation2(){const{arcStart:t,arcEnd:e}=this,[s,n]=this._arcControlPoints;return Math.max(g(s,t,e),g(n,t,e))}}class w extends y{constructor(t,e){const[s]=e.a;super(t,s),this._derivedEllipse=S(t,e)}pop(){super.pop(),this._tMid=(this.tStart+this.tEnd)/2,this._arcMid=this.interpolate(this._tMid)}splitInHalf(){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(this._tMid),this.arcEndStack.push(this._arcMid)}interpolate(t){return v(this._derivedEllipse,t)}getDeviation2(){return g(this._arcMid,this.arcStart,this.arcEnd)}}function b(t,e,s,{cx:n,cy:i,radius:r,thetaStart:a,thetaEnd:o,isInvalid:c},{maxDeviation:h,maxSegmentLength:u,maxSegmentsPerCurve:p,minSegmentsPerCurve:l}){if(c)return t.push([...s]),t;const m=2*r,d=[n+r*Math.cos(a),i+r*Math.sin(a)],f=[n+r*Math.cos(o),i+r*Math.sin(o)];x(e,d)>k&&t.push(d);const S=Math.abs(o-a),v=u>0&&u<m?2*Math.asin(u/m):S,E=h>0&&h<=r?2*Math.acos(1-h/r):S,g=Math.min(v,E),M=Math.min(p,Math.max(l,Math.ceil(Math.abs(S/g)))),P=1/M;for(let x=1;x<M;x++){const e=x*P,s=a*(1-e)+o*e;t.push([n+r*Math.cos(s),i+r*Math.sin(s)])}return t.push(f),x(s,f)>k&&t.push([...s]),t}function j(t,e,s,n){return new R(e,s).densify(t,n)}function Z(t,e,s,n){const r=i(e,s),[a]=s.c;return b(t,e,a,r,n)}function D(t,e,s,n){const i=f(e,s),[r]=s.a;return b(t,e,r,i,n)}function z(t,e,s,n){const[i,r,a,o,c,h,u]=s.a;return 0===h||0===u?(t.push([...i]),t):new w(e,s).densify(t,n)}function A(t,e,s,n){return c(s)?(t.push([...s]),t):h(s)?j(t,e,s,n):u(s)?Z(t,e,s,n):p(s)?D(t,e,s,n):z(t,e,s,n)}function L(t,e={}){if(!r(t))return t;const s=_(e),n=a(t),i=[];for(const r of n){const t=[];for(let e=0;e<r.length-1;e++){const n=e+1,i=[...o(r[e])];0===e&&t.push(i);A(t,i,r[n],s)}i.push(t)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},paths:i,spatialReference:t.spatialReference}:{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},rings:i,spatialReference:t.spatialReference}}const U=e(t=>({maxDeviation:0,maxSegmentLength:t*P,maxSegmentsPerCurve:12e3,minSegmentsPerCurve:1}));function T(t,e,s){if(!r(t))return t;const n=new Set(e),i=_(s),l=a(t),f=[];let S=!1;for(const r of l){const t=[];for(let e=0;e<r.length-1;e++){const s=e+1,a=[...o(r[e])];0===e&&t.push(a);const l=r[s];c(l)?t.push([...l]):h(l)&&!n.has("cubic-bezier")?j(t,a,l,i):u(l)&&!n.has("circular-arc")?Z(t,a,l,i):p(l)&&!n.has("elliptic-arc")?D(t,a,l,i):m(l)&&!n.has("elliptic-arc")?z(t,a,l,i):(t.push(d(l)),S=!0)}f.push(t)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},spatialReference:t.spatialReference,...S?{curvePaths:f}:{paths:f}}:{hasZ:t.hasZ,hasM:t.hasM,spatialReference:t.spatialReference,...S?{curveRings:f}:{rings:f}}}async function I(t,e,n){const i=new Set(e);return await J(t,i,n),t.map(t=>{if(!t||!r(t))return t;const n=t.spatialReference.xyTolerance;if(null==n)return t;const i=U(n);return s(T(t,e,i))})}async function J(e,s,n){let i=null;for(const a of e)if(a&&r(a)&&null==a.spatialReference.xyTolerance&&l(a,s)){const e=a.spatialReference;if(!e)throw new t("geometry:missing-spatial-reference","Geometry contains an unsupported curve type, but it cannot be densified because it has no spatial reference.");const s=N(e);if(n.has(s))a.spatialReference=n.get(s);else{i||(i=await(import("../../operators/support/apiConverter.js")));const r=i.fromSpatialReference(e),o=r?.getTolerance();if(null==o)throw new t("geometry:missing-tolerance","Geometry contains an unsupported curve type, but it cannot be densified because the tolerance of its spatial reference is unknown. Set the `xyTolerance` property of the spatial reference.");const c=a.spatialReference.clone();c.read({xyTolerance:o}),a.spatialReference=c,n.set(s,c)}}}function N(t){if(null!=t.wkid)return`${t.wkid}`;if(null!=t.wkt)return t.wkt;const e="toJSON"in t&&"function"==typeof t.toJSON?t.toJSON():t;return JSON.stringify(e)}export{L as densifyCurvedGeometry,I as densifyUnsupportedCurves,U as getAutoDensifyOptions,N as getCacheKey,T as selectiveDensifyCurvedGeometryJSON};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import e from"../../core/Error.js";import{throwIfAborted as t,whenOrAbort as n,isPromiseLike as r}from"../../core/promiseUtils.js";import s from"../Mesh.js";import o from"./MeshComponent.js";import i from"./MeshGeoreferencedVertexSpace.js";import a from"./MeshTransform.js";import c from"./MeshVertexAttributes.js";import{selectVertexSpace as m}from"./meshVertexSpaceUtils.js";import{merge as l}from"./meshUtils/merge.js";import{Metadata as p}from"./meshUtils/Metadata.js";import{convertUnitGeometry as f,createUnitSizeSphere as u,createUnitSizeBox as w,extractSingleFaceOfBox as h,createUnitSizeCylinder as j,convertPlaneSizeParameter as d,createUnitSizePlane as v}from"./meshUtils/primitives.js";import{polygonToRenderInfoNotElevationAligned as x}from"../../views/3d/support/renderInfoUtils/polygon.js";async function M(e,n,r){const s=await import("./meshUtils/elevation.js");return t(r),s.create(e,n,r)}async function g(e,t){await e.load();const{create:n}=await import("./meshUtils/elevationSampler.js");return n(e,t)}function U(e){const t=l(e);return null!=t?new s(t):null}async function S(e,n,r){const{convertMeshVertexSpace:s}=await import("./meshUtils/convertMeshVertexSpace.js");return t(r),s(e,n,r)}function y(e,t){const n=new s(f(w(),e,t));return t?.imageFace&&"all"!==t.imageFace?h(n,t.imageFace):n}function F(e,t){return new s(f(u(t?.densificationFactor||0),e,t))}function R(e,t){return new s(f(j(t?.densificationFactor||0),e,t))}function V(e,t){const n=t?.facing??"up",r=d(n,t?.size);return new s(f(v(n),e,{...t,size:r}))}async function b(e,t){let n=x(e);r(n)&&(await n,n=x(e));const a=r(n)?null:n,m=a?.positions??[],l=a?.polygonIndices??[];return new s({vertexAttributes:new c({position:m}),components:[new o({faces:l,shading:"flat",material:t?.material??null})],spatialReference:e.spatialReference,vertexSpace:new i})}async function C(e,t,r){const{loadGLTFMesh:o}=await n(import("./meshUtils/loadGLTFMesh.js"),r);return new s((await o(e,t,r)).mesh)}function G(e,t,n){const r=n?.extent??null,{spatialReference:o}=e,i=n?.transform?.clone()??new a,c=m(e,n),l=n?.unitConversionDisabled,f={source:t,extent:r,unitConversionDisabled:l},u=new p;return u.externalSources.push(f),new s({metadata:u,transform:i,vertexSpace:c,spatialReference:o})}function T(t,n){const{spatialReference:r}=t,o=n?.transform?.clone()??new a,i=m(t,n),c=new s({transform:o,vertexSpace:i,spatialReference:r});return c.addResolvingPromise(Promise.reject(new e("mesh-incomplete","Mesh resources are not complete"))),c}export{S as convertVertexSpace,y as createBox,R as createCylinder,g as createElevationSampler,M as createFromElevation,C as createFromGLTF,b as createFromPolygon,T as createIncomplete,V as createPlane,F as createSphere,G as createWithExternalSource,U as merge};
2
+ import e from"../../core/Error.js";import{throwIfAborted as t,whenOrAbort as n,isPromiseLike as r}from"../../core/promiseUtils.js";import s from"../Mesh.js";import o from"./MeshComponent.js";import i from"./MeshGeoreferencedVertexSpace.js";import a from"./MeshTransform.js";import c from"./MeshVertexAttributes.js";import{selectVertexSpace as m}from"./meshVertexSpaceUtils.js";import{merge as l}from"./meshUtils/merge.js";import{Metadata as p}from"./meshUtils/Metadata.js";import{convertUnitGeometry as f,createUnitSizeSphere as u,createUnitSizeBox as w,extractSingleFaceOfBox as h,createUnitSizeCylinder as j,convertPlaneSizeParameter as d,createUnitSizePlane as v}from"./meshUtils/primitives.js";import{polygonToRenderInfoNotElevationAligned as x}from"../../views/3d/support/renderInfoUtils/polygon.js";async function M(e,n,r){const s=await(import("./meshUtils/elevation.js"));return t(r),s.create(e,n,r)}async function g(e,t){await e.load();const{create:n}=await(import("./meshUtils/elevationSampler.js"));return n(e,t)}function U(e){const t=l(e);return null!=t?new s(t):null}async function S(e,n,r){const{convertMeshVertexSpace:s}=await(import("./meshUtils/convertMeshVertexSpace.js"));return t(r),s(e,n,r)}function y(e,t){const n=new s(f(w(),e,t));return t?.imageFace&&"all"!==t.imageFace?h(n,t.imageFace):n}function F(e,t){return new s(f(u(t?.densificationFactor||0),e,t))}function R(e,t){return new s(f(j(t?.densificationFactor||0),e,t))}function V(e,t){const n=t?.facing??"up",r=d(n,t?.size);return new s(f(v(n),e,{...t,size:r}))}async function b(e,t){let n=x(e);r(n)&&(await n,n=x(e));const a=r(n)?null:n,m=a?.positions??[],l=a?.polygonIndices??[];return new s({vertexAttributes:new c({position:m}),components:[new o({faces:l,shading:"flat",material:t?.material??null})],spatialReference:e.spatialReference,vertexSpace:new i})}async function C(e,t,r){const{loadGLTFMesh:o}=await n(import("./meshUtils/loadGLTFMesh.js"),r);return new s((await o(e,t,r)).mesh)}function G(e,t,n){const r=n?.extent??null,{spatialReference:o}=e,i=n?.transform?.clone()??new a,c=m(e,n),l=n?.unitConversionDisabled,f={source:t,extent:r,unitConversionDisabled:l},u=new p;return u.externalSources.push(f),new s({metadata:u,transform:i,vertexSpace:c,spatialReference:o})}function T(t,n){const{spatialReference:r}=t,o=n?.transform?.clone()??new a,i=m(t,n),c=new s({transform:o,vertexSpace:i,spatialReference:r});return c.addResolvingPromise(Promise.reject(new e("mesh-incomplete","Mesh resources are not complete"))),c}export{S as convertVertexSpace,y as createBox,R as createCylinder,g as createElevationSampler,M as createFromElevation,C as createFromGLTF,b as createFromPolygon,T as createIncomplete,V as createPlane,F as createSphere,G as createWithExternalSource,U as merge};
package/interfaces.d.ts CHANGED
@@ -10729,6 +10729,9 @@ declare namespace __esri {
10729
10729
  /** @deprecated since 5.0. Refactor using \@arcgis/codemod */
10730
10730
  export type CIMGeometricEffectBuffer = import("./symbols/cim/types.js").CIMGeometricEffectBuffer;
10731
10731
 
10732
+ /** @deprecated since 5.0. Refactor using \@arcgis/codemod */
10733
+ export type CIMGeometricEffectCircularSector = import("./symbols/cim/types.js").CIMGeometricEffectCircularSector;
10734
+
10732
10735
  /** @deprecated since 5.0. Refactor using \@arcgis/codemod */
10733
10736
  export type CIMGeometricEffectControlMeasureLine = import("./symbols/cim/types.js").CIMGeometricEffectControlMeasureLine;
10734
10737
 
package/kernel.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import has from"./core/has.js";import{addQueryParameter as o}from"./core/urlUtils.js";export{buildDate,commitHash as revision}from"./support/revision.js";Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");const e="5.2";let s,r=e;function i(o){s=o}function t(e){const r=s?.findCredential(e);return r?.token?o(e,"token",r.token):e}r="5.2.0-next.69",has("host-webworker")||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),has("host-webworker");export{t as addTokenParameter,r as fullVersion,s as id,i as setId,e as version};
2
+ import has from"./core/has.js";import{addQueryParameter as o}from"./core/urlUtils.js";export{buildDate,commitHash as revision}from"./support/revision.js";Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");const e="5.2";let s,r=e;function i(o){s=o}function t(e){const r=s?.findCredential(e);return r?.token?o(e,"token",r.token):e}r="5.2.0-next.70",has("host-webworker")||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),has("host-webworker");export{t as addTokenParameter,r as fullVersion,s as id,i as setId,e as version};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import t from"../PopupTemplate.js";import i from"../core/Error.js";import{MultiOriginJSONSupportMixin as r}from"../core/MultiOriginJSONSupport.js";import{throwIfAbortError as o}from"../core/promiseUtils.js";import{urlToObject as s}from"../core/urlUtils.js";import{property as n,subclass as a}from"../core/accessorSupport/decorators.js";import{excludeTables as p}from"../core/accessorSupport/layerContainerType.js";import l from"../geometry/SpatialReference.js";import d from"../graphic/CSVGraphicOrigin.js";import m from"./Layer.js";import{CSVSource as u}from"./graphics/sources/CSVSource.js";import{createCapabilities as y}from"./graphics/sources/support/clientSideDefaults.js";import{BlendLayer as c}from"./mixins/BlendLayer.js";import{CustomParametersMixin as f}from"./mixins/CustomParametersMixin.js";import{DisplayFilteredLayer as h}from"./mixins/DisplayFilteredLayer.js";import{FeatureEffectLayer as g}from"./mixins/FeatureEffectLayer.js";import{FeatureReductionLayer as j}from"./mixins/FeatureReductionLayer.js";import{OperationalLayer as v}from"./mixins/OperationalLayer.js";import{OrderedLayer as b}from"./mixins/OrderedLayer.js";import{PortalLayer as I}from"./mixins/PortalLayer.js";import{RefreshableLayer as w}from"./mixins/RefreshableLayer.js";import{ScaleRangeLayer as x}from"./mixins/ScaleRangeLayer.js";import{TemporalLayer as F}from"./mixins/TemporalLayer.js";import{TrackableLayer as T}from"./mixins/TrackableLayer.js";import{attributeTableTemplate as O,elevationInfo as S,labelsVisible as L,legendEnabled as D,maxScale as P,minScale as E,opacityDrawingInfo as C,popupEnabled as q,screenSizePerspectiveEnabled as V,url as R}from"./support/commonProperties.js";import{validateBinsQuery as Q}from"./support/featureLayerUtils.js";import U from"./support/Field.js";import{defineFieldProperties as N}from"./support/fieldProperties.js";import{fixRendererFields as B,fixTimeInfoFields as A}from"./support/fieldUtils.js";import M from"./support/LabelClass.js";import{reader as Z}from"./support/labelingInfo.js";import _ from"./support/LayerFloorInfo.js";import G from"./support/TimeInfo.js";import{webSceneRendererTypes as W,rendererTypes as z}from"../renderers/support/typeUtils.js";import J from"../rest/support/Query.js";import{createPopupTemplate as k}from"../support/popupUtils.js";import{fromTimeReference as H}from"../time/timeZoneUtils.js";import{reader as K}from"../core/accessorSupport/decorators/reader.js";const X=N();let Y=class extends(b(h(f(j(g(c(F(T(x(w(v(I(r(m)))))))))))))){constructor(e){super(e),this.attributeTableTemplate=null,this.capabilities=y(!1,!1),this.copyright=null,this.definitionExpression=null,this.delimiter=null,this.displayField=null,this.elevationInfo=null,this.fields=null,this.fieldsIndex=null,this.floorInfo=null,this.fullExtent=null,this.geometryType="point",this.graphicOrigin=new d(this),this.labelingInfo=null,this.labelsVisible=!0,this.latitudeField=null,this.legendEnabled=!0,this.locationType="coordinates",this.longitudeField=null,this.maxScale=0,this.minScale=0,this.objectIdField=null,this.opacity=1,this.operationalLayerType="CSV",this.outFields=null,this.popupEnabled=!0,this.popupTemplate=null,this.screenSizePerspectiveEnabled=!0,this.source=new u,this.spatialReference=l.WGS84,this.timeInfo=null,this.type="csv"}load(e){const t=this.loadFromPortal({supportedTypes:["CSV"],supportsData:!1},e).catch(o).then(()=>(this.source.loadOptions={delimiter:this.delimiter,fields:this.fields,latitudeField:this.latitudeField??void 0,longitudeField:this.longitudeField??void 0,spatialReference:this.spatialReference??void 0,timeInfo:this.timeInfo??void 0,url:this.url},this.source.customParameters=this.customParameters??void 0,this.source.load(e))).then(()=>{this.read({layerDefinition:this.source.sourceJSON,locationInfo:this.source.locationInfo,columnDelimiter:this.source.delimiter},{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl}),B(this.renderer,this.fieldsIndex),A(this.timeInfo,this.fieldsIndex)});return this.addResolvingPromise(t),Promise.resolve(this)}destroy(){this.source?.destroy()}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("capabilities"),(this._get("createQueryVersion")||0)+1}get defaultPopupTemplate(){return this.createPopupTemplate()}get isTable(){return this.loaded&&null==this.geometryType}readWebMapLabelsVisible(e,t){return t.showLabels??!!t.layerDefinition?.drawingInfo?.labelingInfo}get portalItem(){return super.portalItem}set portalItem(e){super.portalItem=e}set renderer(e){B(e,this.fieldsIndex),this._set("renderer",e)}set url(e){if(!e)return void this._set("url",e);const t=s(e);this._set("url",t.path),t.query&&(this.customParameters={...this.customParameters,...t.query})}createPopupTemplate(e){return k(this,e)}createQuery(){const e=new J,t=this.capabilities?.data;e.returnGeometry=!0,t?.supportsZ&&(e.returnZ=!0),e.outFields=["*"],e.where=this.definitionExpression||"1=1";const{timeOffset:i,timeExtent:r}=this;return e.timeExtent=i&&r?r.offset(-i.value,i.unit):r??null,e}getFieldDomain(e,t){return this.getField(e)?.domain}getField(e){return this.fieldsIndex.get(e)}async queryAttributeBins(e,t){const{source:r,capabilities:o}=await this.load();if(!r.queryAttributeBins)throw new i("CSVLayer","Layer source does not support queryAttributeBins capability");Q(e,o,"CSVLayer");const{default:s}=await import("../rest/support/AttributeBinsQuery.js"),n=await r.queryAttributeBins(s.from(e),t),a=this.graphicOrigin;if(n.features)for(const i of n.features)i.layer=i.sourceLayer=this,i.origin=a;return n}queryFeatures(e,t){return this.load().then(()=>this.source.queryFeatures(J.from(e)||this.createQuery())).then(e=>{const t=this.graphicOrigin;if(e.features)for(const i of e.features)i.layer=i.sourceLayer=this,i.origin=t;return e})}async queryObjectIds(e,t){return await this.load(),this.source.queryObjectIds(J.from(e)||this.createQuery())}queryFeatureCount(e,t){return this.load().then(()=>this.source.queryFeatureCount(J.from(e)||this.createQuery()))}queryExtent(e,t){return this.load().then(()=>this.source.queryExtent(J.from(e)||this.createQuery()))}read(e,t){super.read(e,t),"service"===t?.origin&&(["objectIdField","fields","timeInfo","dateFieldsTimeZone","latitudeField","longitudeField"].forEach(e=>this.revertToOrigin(e,"service")),this.spatialReference||this.revertToOrigin("spatialReference","service"))}async hasDataChanged(){try{const{dataChanged:e,updates:t}=await this.source.refresh(this.customParameters);return null!=t&&this.read(t,{origin:"service",url:this.parsedUrl,ignoreDefaults:!0}),e}catch{}return!1}};e([n(O)],Y.prototype,"attributeTableTemplate",void 0),e([n({readOnly:!0,json:{read:!1,write:!1}})],Y.prototype,"capabilities",void 0),e([n({type:String,json:{origins:{service:{read:{source:"copyrightText"}}}}})],Y.prototype,"copyright",void 0),e([n({readOnly:!0})],Y.prototype,"createQueryVersion",null),e([n({json:{name:"layerDefinition.dateFieldsTimeReference",read:{reader:H}}})],Y.prototype,"dateFieldsTimeZone",void 0),e([n({readOnly:!0})],Y.prototype,"defaultPopupTemplate",null),e([n({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],Y.prototype,"definitionExpression",void 0),e([n({type:[","," ",";","|","\t"],json:{name:"columnDelimiter",write:{ignoreOrigin:!0}}})],Y.prototype,"delimiter",void 0),e([n({type:String})],Y.prototype,"displayField",void 0),e([n(S)],Y.prototype,"elevationInfo",void 0),e([n({type:[U],json:{name:"layerDefinition.fields",write:{ignoreOrigin:!0}}})],Y.prototype,"fields",void 0),e([n(X.fieldsIndex)],Y.prototype,"fieldsIndex",void 0),e([n({type:_,json:{name:"layerDefinition.floorInfo",write:{layerContainerTypes:p}}})],Y.prototype,"floorInfo",void 0),e([n({json:{origins:{service:{name:"layerDefinition.extent"}}}})],Y.prototype,"fullExtent",void 0),e([n({readOnly:!0,json:{read:!1}})],Y.prototype,"geometryType",void 0),e([n({readOnly:!0})],Y.prototype,"graphicOrigin",void 0),e([n({readOnly:!0})],Y.prototype,"isTable",null),e([n({type:[M],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:Z},write:!0}})],Y.prototype,"labelingInfo",void 0),e([n(L)],Y.prototype,"labelsVisible",void 0),e([K("web-map","labelsVisible",["layerDefinition.drawingInfo.labelingInfo","showLabels"])],Y.prototype,"readWebMapLabelsVisible",null),e([n({type:String,json:{name:"locationInfo.latitudeFieldName",write:{ignoreOrigin:!0}}})],Y.prototype,"latitudeField",void 0),e([n(D)],Y.prototype,"legendEnabled",void 0),e([n({type:["show","hide"]})],Y.prototype,"listMode",void 0),e([n({type:["coordinates"],json:{name:"locationInfo.locationType",write:{ignoreOrigin:!0,isRequired:!0}}})],Y.prototype,"locationType",void 0),e([n({type:String,json:{name:"locationInfo.longitudeFieldName",write:{ignoreOrigin:!0}}})],Y.prototype,"longitudeField",void 0),e([n(P)],Y.prototype,"maxScale",void 0),e([n(E)],Y.prototype,"minScale",void 0),e([n({type:String,json:{name:"layerDefinition.objectIdField",origins:{"web-map":{write:{target:"layerDefinition.objectIdField",ignoreOrigin:!0}}}}})],Y.prototype,"objectIdField",void 0),e([n(C)],Y.prototype,"opacity",void 0),e([n({type:["CSV"]})],Y.prototype,"operationalLayerType",void 0),e([n()],Y.prototype,"outFields",void 0),e([n(q)],Y.prototype,"popupEnabled",void 0),e([n({type:t,json:{name:"popupInfo",write:!0}})],Y.prototype,"popupTemplate",void 0),e([n({types:z,json:{name:"layerDefinition.drawingInfo.renderer",origins:{"web-scene":{types:W,name:"layerDefinition.drawingInfo.renderer",write:!0}},write:{ignoreOrigin:!0,layerContainerTypes:p}}})],Y.prototype,"renderer",null),e([n(V)],Y.prototype,"screenSizePerspectiveEnabled",void 0),e([n({readOnly:!0})],Y.prototype,"source",void 0),e([n({type:l,json:{origins:{service:{name:"layerDefinition.extent.spatialReference"}}}})],Y.prototype,"spatialReference",void 0),e([n({type:G,json:{name:"layerDefinition.timeInfo"}})],Y.prototype,"timeInfo",void 0),e([n({type:String,json:{origins:{service:{name:"layerDefinition.name"},"web-document":{name:"title",write:{isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}}}}})],Y.prototype,"title",void 0),e([n({json:{read:!1},value:"csv",readOnly:!0})],Y.prototype,"type",void 0),e([n(R)],Y.prototype,"url",null),Y=e([a("esri.layers.CSVLayer")],Y);const $=Y;export{$ as default};
2
+ import{__decorate as e}from"tslib";import t from"../PopupTemplate.js";import i from"../core/Error.js";import{MultiOriginJSONSupportMixin as r}from"../core/MultiOriginJSONSupport.js";import{throwIfAbortError as o}from"../core/promiseUtils.js";import{urlToObject as s}from"../core/urlUtils.js";import{property as n,subclass as a}from"../core/accessorSupport/decorators.js";import{excludeTables as p}from"../core/accessorSupport/layerContainerType.js";import l from"../geometry/SpatialReference.js";import d from"../graphic/CSVGraphicOrigin.js";import m from"./Layer.js";import{CSVSource as u}from"./graphics/sources/CSVSource.js";import{createCapabilities as y}from"./graphics/sources/support/clientSideDefaults.js";import{BlendLayer as c}from"./mixins/BlendLayer.js";import{CustomParametersMixin as f}from"./mixins/CustomParametersMixin.js";import{DisplayFilteredLayer as h}from"./mixins/DisplayFilteredLayer.js";import{FeatureEffectLayer as g}from"./mixins/FeatureEffectLayer.js";import{FeatureReductionLayer as j}from"./mixins/FeatureReductionLayer.js";import{OperationalLayer as v}from"./mixins/OperationalLayer.js";import{OrderedLayer as b}from"./mixins/OrderedLayer.js";import{PortalLayer as I}from"./mixins/PortalLayer.js";import{RefreshableLayer as w}from"./mixins/RefreshableLayer.js";import{ScaleRangeLayer as x}from"./mixins/ScaleRangeLayer.js";import{TemporalLayer as F}from"./mixins/TemporalLayer.js";import{TrackableLayer as T}from"./mixins/TrackableLayer.js";import{attributeTableTemplate as O,elevationInfo as S,labelsVisible as L,legendEnabled as D,maxScale as P,minScale as E,opacityDrawingInfo as C,popupEnabled as q,screenSizePerspectiveEnabled as V,url as R}from"./support/commonProperties.js";import{validateBinsQuery as Q}from"./support/featureLayerUtils.js";import U from"./support/Field.js";import{defineFieldProperties as N}from"./support/fieldProperties.js";import{fixRendererFields as B,fixTimeInfoFields as A}from"./support/fieldUtils.js";import M from"./support/LabelClass.js";import{reader as Z}from"./support/labelingInfo.js";import _ from"./support/LayerFloorInfo.js";import G from"./support/TimeInfo.js";import{webSceneRendererTypes as W,rendererTypes as z}from"../renderers/support/typeUtils.js";import J from"../rest/support/Query.js";import{createPopupTemplate as k}from"../support/popupUtils.js";import{fromTimeReference as H}from"../time/timeZoneUtils.js";import{reader as K}from"../core/accessorSupport/decorators/reader.js";const X=N();let Y=class extends(b(h(f(j(g(c(F(T(x(w(v(I(r(m)))))))))))))){constructor(e){super(e),this.attributeTableTemplate=null,this.capabilities=y(!1,!1),this.copyright=null,this.definitionExpression=null,this.delimiter=null,this.displayField=null,this.elevationInfo=null,this.fields=null,this.fieldsIndex=null,this.floorInfo=null,this.fullExtent=null,this.geometryType="point",this.graphicOrigin=new d(this),this.labelingInfo=null,this.labelsVisible=!0,this.latitudeField=null,this.legendEnabled=!0,this.locationType="coordinates",this.longitudeField=null,this.maxScale=0,this.minScale=0,this.objectIdField=null,this.opacity=1,this.operationalLayerType="CSV",this.outFields=null,this.popupEnabled=!0,this.popupTemplate=null,this.screenSizePerspectiveEnabled=!0,this.source=new u,this.spatialReference=l.WGS84,this.timeInfo=null,this.type="csv"}load(e){const t=this.loadFromPortal({supportedTypes:["CSV"],supportsData:!1},e).catch(o).then(()=>(this.source.loadOptions={delimiter:this.delimiter,fields:this.fields,latitudeField:this.latitudeField??void 0,longitudeField:this.longitudeField??void 0,spatialReference:this.spatialReference??void 0,timeInfo:this.timeInfo??void 0,url:this.url},this.source.customParameters=this.customParameters??void 0,this.source.load(e))).then(()=>{this.read({layerDefinition:this.source.sourceJSON,locationInfo:this.source.locationInfo,columnDelimiter:this.source.delimiter},{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl}),B(this.renderer,this.fieldsIndex),A(this.timeInfo,this.fieldsIndex)});return this.addResolvingPromise(t),Promise.resolve(this)}destroy(){this.source?.destroy()}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("capabilities"),(this._get("createQueryVersion")||0)+1}get defaultPopupTemplate(){return this.createPopupTemplate()}get isTable(){return this.loaded&&null==this.geometryType}readWebMapLabelsVisible(e,t){return t.showLabels??!!t.layerDefinition?.drawingInfo?.labelingInfo}get portalItem(){return super.portalItem}set portalItem(e){super.portalItem=e}set renderer(e){B(e,this.fieldsIndex),this._set("renderer",e)}set url(e){if(!e)return void this._set("url",e);const t=s(e);this._set("url",t.path),t.query&&(this.customParameters={...this.customParameters,...t.query})}createPopupTemplate(e){return k(this,e)}createQuery(){const e=new J,t=this.capabilities?.data;e.returnGeometry=!0,t?.supportsZ&&(e.returnZ=!0),e.outFields=["*"],e.where=this.definitionExpression||"1=1";const{timeOffset:i,timeExtent:r}=this;return e.timeExtent=i&&r?r.offset(-i.value,i.unit):r??null,e}getFieldDomain(e,t){return this.getField(e)?.domain}getField(e){return this.fieldsIndex.get(e)}async queryAttributeBins(e,t){const{source:r,capabilities:o}=await this.load();if(!r.queryAttributeBins)throw new i("CSVLayer","Layer source does not support queryAttributeBins capability");Q(e,o,"CSVLayer");const{default:s}=await(import("../rest/support/AttributeBinsQuery.js")),n=await r.queryAttributeBins(s.from(e),t),a=this.graphicOrigin;if(n.features)for(const i of n.features)i.layer=i.sourceLayer=this,i.origin=a;return n}queryFeatures(e,t){return this.load().then(()=>this.source.queryFeatures(J.from(e)||this.createQuery())).then(e=>{const t=this.graphicOrigin;if(e.features)for(const i of e.features)i.layer=i.sourceLayer=this,i.origin=t;return e})}async queryObjectIds(e,t){return await this.load(),this.source.queryObjectIds(J.from(e)||this.createQuery())}queryFeatureCount(e,t){return this.load().then(()=>this.source.queryFeatureCount(J.from(e)||this.createQuery()))}queryExtent(e,t){return this.load().then(()=>this.source.queryExtent(J.from(e)||this.createQuery()))}read(e,t){super.read(e,t),"service"===t?.origin&&(["objectIdField","fields","timeInfo","dateFieldsTimeZone","latitudeField","longitudeField"].forEach(e=>this.revertToOrigin(e,"service")),this.spatialReference||this.revertToOrigin("spatialReference","service"))}async hasDataChanged(){try{const{dataChanged:e,updates:t}=await this.source.refresh(this.customParameters);return null!=t&&this.read(t,{origin:"service",url:this.parsedUrl,ignoreDefaults:!0}),e}catch{}return!1}};e([n(O)],Y.prototype,"attributeTableTemplate",void 0),e([n({readOnly:!0,json:{read:!1,write:!1}})],Y.prototype,"capabilities",void 0),e([n({type:String,json:{origins:{service:{read:{source:"copyrightText"}}}}})],Y.prototype,"copyright",void 0),e([n({readOnly:!0})],Y.prototype,"createQueryVersion",null),e([n({json:{name:"layerDefinition.dateFieldsTimeReference",read:{reader:H}}})],Y.prototype,"dateFieldsTimeZone",void 0),e([n({readOnly:!0})],Y.prototype,"defaultPopupTemplate",null),e([n({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],Y.prototype,"definitionExpression",void 0),e([n({type:[","," ",";","|","\t"],json:{name:"columnDelimiter",write:{ignoreOrigin:!0}}})],Y.prototype,"delimiter",void 0),e([n({type:String})],Y.prototype,"displayField",void 0),e([n(S)],Y.prototype,"elevationInfo",void 0),e([n({type:[U],json:{name:"layerDefinition.fields",write:{ignoreOrigin:!0}}})],Y.prototype,"fields",void 0),e([n(X.fieldsIndex)],Y.prototype,"fieldsIndex",void 0),e([n({type:_,json:{name:"layerDefinition.floorInfo",write:{layerContainerTypes:p}}})],Y.prototype,"floorInfo",void 0),e([n({json:{origins:{service:{name:"layerDefinition.extent"}}}})],Y.prototype,"fullExtent",void 0),e([n({readOnly:!0,json:{read:!1}})],Y.prototype,"geometryType",void 0),e([n({readOnly:!0})],Y.prototype,"graphicOrigin",void 0),e([n({readOnly:!0})],Y.prototype,"isTable",null),e([n({type:[M],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:Z},write:!0}})],Y.prototype,"labelingInfo",void 0),e([n(L)],Y.prototype,"labelsVisible",void 0),e([K("web-map","labelsVisible",["layerDefinition.drawingInfo.labelingInfo","showLabels"])],Y.prototype,"readWebMapLabelsVisible",null),e([n({type:String,json:{name:"locationInfo.latitudeFieldName",write:{ignoreOrigin:!0}}})],Y.prototype,"latitudeField",void 0),e([n(D)],Y.prototype,"legendEnabled",void 0),e([n({type:["show","hide"]})],Y.prototype,"listMode",void 0),e([n({type:["coordinates"],json:{name:"locationInfo.locationType",write:{ignoreOrigin:!0,isRequired:!0}}})],Y.prototype,"locationType",void 0),e([n({type:String,json:{name:"locationInfo.longitudeFieldName",write:{ignoreOrigin:!0}}})],Y.prototype,"longitudeField",void 0),e([n(P)],Y.prototype,"maxScale",void 0),e([n(E)],Y.prototype,"minScale",void 0),e([n({type:String,json:{name:"layerDefinition.objectIdField",origins:{"web-map":{write:{target:"layerDefinition.objectIdField",ignoreOrigin:!0}}}}})],Y.prototype,"objectIdField",void 0),e([n(C)],Y.prototype,"opacity",void 0),e([n({type:["CSV"]})],Y.prototype,"operationalLayerType",void 0),e([n()],Y.prototype,"outFields",void 0),e([n(q)],Y.prototype,"popupEnabled",void 0),e([n({type:t,json:{name:"popupInfo",write:!0}})],Y.prototype,"popupTemplate",void 0),e([n({types:z,json:{name:"layerDefinition.drawingInfo.renderer",origins:{"web-scene":{types:W,name:"layerDefinition.drawingInfo.renderer",write:!0}},write:{ignoreOrigin:!0,layerContainerTypes:p}}})],Y.prototype,"renderer",null),e([n(V)],Y.prototype,"screenSizePerspectiveEnabled",void 0),e([n({readOnly:!0})],Y.prototype,"source",void 0),e([n({type:l,json:{origins:{service:{name:"layerDefinition.extent.spatialReference"}}}})],Y.prototype,"spatialReference",void 0),e([n({type:G,json:{name:"layerDefinition.timeInfo"}})],Y.prototype,"timeInfo",void 0),e([n({type:String,json:{origins:{service:{name:"layerDefinition.name"},"web-document":{name:"title",write:{isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}}}}})],Y.prototype,"title",void 0),e([n({json:{read:!1},value:"csv",readOnly:!0})],Y.prototype,"type",void 0),e([n(R)],Y.prototype,"url",null),Y=e([a("esri.layers.CSVLayer")],Y);const $=Y;export{$ as default};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import t from"../request.js";import r from"../core/Collection.js";import i from"../core/Error.js";import{getOrCreateMapValue as o}from"../core/MapUtils.js";import{MultiOriginJSONSupportMixin as s}from"../core/MultiOriginJSONSupport.js";import{throwIfAbortError as a}from"../core/promiseUtils.js";import{hasSamePortal as n}from"../core/urlUtils.js";import{property as l,subclass as p}from"../core/accessorSupport/decorators.js";import y from"./Layer.js";import d from"./catalog/CatalogDynamicGroupLayer.js";import u from"./catalog/CatalogFootprintLayer.js";import m from"./graphics/sources/FeatureLayerSource.js";import{APIKeyMixin as c}from"./mixins/APIKeyMixin.js";import{ArcGISService as f}from"./mixins/ArcGISService.js";import{BlendLayer as h}from"./mixins/BlendLayer.js";import{CustomParametersMixin as g}from"./mixins/CustomParametersMixin.js";import{DisplayFilteredLayer as F}from"./mixins/DisplayFilteredLayer.js";import{EditBusLayer as w}from"./mixins/EditBusLayer.js";import{FeatureLayerBase as j}from"./mixins/FeatureLayerBase.js";import{OperationalLayer as L}from"./mixins/OperationalLayer.js";import{OrderedLayer as v}from"./mixins/OrderedLayer.js";import{PortalLayer as S}from"./mixins/PortalLayer.js";import{RefreshableLayer as x}from"./mixins/RefreshableLayer.js";import{ScaleRangeLayer as b}from"./mixins/ScaleRangeLayer.js";import{TemporalLayer as I}from"./mixins/TemporalLayer.js";import{legendEnabled as O,id as E}from"./support/commonProperties.js";import{ensureLayerCredential as T,applyEdits as P,getFeatureType as _,hasDataChanged as C,validateBinsQuery as q}from"./support/featureLayerUtils.js";import A from"./support/FeatureType.js";import{defineFieldProperties as G}from"./support/fieldProperties.js";import{serviceSupportsSpatialReference as U}from"./support/versionUtils.js";import Q from"../portal/Portal.js";import B from"../portal/PortalItem.js";import{normalizeArcGISOnlineOrgDomain as D}from"../portal/support/urlUtils.js";import N from"../rest/support/Query.js";const M=G();function R(e){return"object"==typeof e&&null!=e&&"itemId"in e&&"portalUrl"in e}function V(e){return"object"==typeof e&&null!=e&&"url"in e}function J(e){if(null==e)return!0;const t=Object.keys(e);return!t.length||1===t.length&&"id"===t[0]}function k(e,t,r,i){const o=e.write({},i);J(o)||(t[r]=o)}let H=class extends(F(j(w(h(v(I(b(x(f(L(S(s(g(c(y))))))))))))))){constructor(e){super(e),this.legendEnabled=!0,this._portals=new Map,this._layerToFootprint=new WeakMap,this.drawOrderField="cd_draworder",this.dynamicGroupLayer=new d({parent:this}),this.elevationInfo=null,this.fields=null,this.fieldsIndex=null,this.floorInfo=null,this.footprintLayer=new u({parent:this}),this.itemNameField="cd_itemname",this.itemSourceField="cd_itemsource",this.itemTypeField="cd_itemtype",this.layers=new r([this.dynamicGroupLayer,this.footprintLayer]),this.maxScaleField="cd_maxscale",this.minScaleField="cd_minscale",this.orderBy=null,this.outFields=null,this.supportedSourceTypes=new Set(["Catalog Layer"]),this.source=new m({layer:this,supportedSourceTypes:this.supportedSourceTypes}),this.type="catalog",this.typeIdField=null,this.types=null}load(e){const t=null!=e?e.signal:null,r=this.loadFromPortal({supportedTypes:["Feature Service"]},e).catch(a).then(async()=>{const{url:e,source:r,portalItem:o}=this;if(!e)throw new i("catalog-layer:missing-url","Catalog layer must be created with a url");if(null==this.layerId){const r=await this._fetchFirstValidLayerId(t);if(null==r)throw new i("catalog-layer:missing-layerId","There is no Catalog Layer in the service",{service:e});this.layerId=r}await r.load({signal:t});const{sourceJSON:s}=r;s&&(this.sourceJSON=s,this.read(s,{origin:"service",portalItem:o,portal:o?.portal,url:this.parsedUrl}))}).then(()=>{const e=[this.itemNameField,this.itemSourceField,this.itemTypeField,this.minScaleField,this.maxScaleField],t=e.filter(e=>!this.fieldsIndex.has(e));if(t.length)throw new i("catalog-layer:missing-fields","There are missing fields to operate properly",{requiredFields:e,missingFields:t})}).then(()=>T(this,"load",e));return this.addResolvingPromise(r),Promise.resolve(this)}destroy(){this.footprintLayer.destroy(),this.dynamicGroupLayer.destroy();for(const e of this._portals.values())e.destroy();this._portals.clear()}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("capabilities"),(this._get("createQueryVersion")??0)+1}get editingEnabled(){return this.loaded&&null!=this.capabilities&&this.capabilities.operations.supportsEditing&&this.userHasEditingPrivileges}get effectiveEditingEnabled(){return!1}async applyEdits(e,t){return P(this,e,t)}async createLayerFromFootprint(e){const t=await this._createLayer(e);return this._configureLayer(t,e),this._layerToFootprint.set(t,e),t}createFootprintFromLayer(e){return this._layerToFootprint.get(e)?.clone()}createQuery(){const e=new N,t=this.capabilities?.query;e.returnGeometry=!0,t&&(e.compactGeometryEnabled=t.supportsCompactGeometry,e.defaultSpatialReferenceEnabled=t.supportsDefaultSpatialReference),e.outFields=["*"];const{timeOffset:r,timeExtent:i}=this;return e.timeExtent=null!=r&&null!=i?i.offset(-r.value,r.unit):i||null,e.where=this.definitionExpression||"1=1",e}getFeatureType(e){return _(this.types,this.typeIdField,e)}getFieldDomain(e,t){const r=t?.feature,i=this.getFeatureType(r);if(i){const t=i.domains&&i.domains[e];if(t&&"inherited"!==t.type)return t}return this.getField(e)?.domain}async hasDataChanged(){return C(this)}async queryFeatures(e,t){const r=await this.load(),i=await r.source.queryFeatures(N.from(e)??r.createQuery(),t),o=r.footprintLayer.graphicOrigin;if(i?.features)for(const s of i.features)s.layer=s.sourceLayer=r.footprintLayer,s.origin=o;return i}async queryObjectIds(e,t){return(await this.load()).source.queryObjectIds(N.from(e)??this.createQuery(),t)}async queryFeatureCount(e,t){return(await this.load()).source.queryFeatureCount(N.from(e)??this.createQuery(),t)}async queryExtent(e,t){return(await this.load()).source.queryExtent(N.from(e)??this.createQuery(),t)}serviceSupportsSpatialReference(e){return this.loaded&&U(this,e)}read(e,t){if(super.read(e,t),e){const{footprintLayer:r,dynamicGroupLayer:i}=e;r&&this.footprintLayer.read(r,t),i&&this.dynamicGroupLayer.read(i,t)}}async queryAttributeBins(e,t){const{source:r,capabilities:i}=await this.load();q(e,i,"CatalogLayer");const o=await import("../rest/support/AttributeBinsQuery.js"),s=await r.queryAttributeBins(o.default.from(e),t);if(s.features)for(const a of s.features)a.layer=a.sourceLayer=this.footprintLayer;return s}async _fetchFirstValidLayerId(e){const{data:r}=await t(this.url,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e});if(this.applyPreferredHost(r),Array.isArray(r?.layers))return r.layers.find(({type:e})=>!!e&&this.supportedSourceTypes.has(e))?.id}async _createLayer(e){const t=e.getAttribute(this.itemSourceField);if(!t)throw new i("catalog-layer:item-source-missing",`The footprint is missing the "${this.itemSourceField}" attribute`);const r=JSON.parse(t);if(R(r)){const{itemId:e,portalUrl:t}=r,i=D(t),s=this.portalItem?.portal,a=Q.getDefault();let l,p=!0;s&&n(t,s.url)?l=s:n(t,a.url)?l=a:(l=o(this._portals,i,()=>new Q({url:i})),p=!1);const d=await y.fromPortalItem(new B({id:e,portal:l}));return p||await K(d),d}if(V(r))return y.fromArcGISServerUrl({url:r.url});const{default:s}=await import("./UnsupportedLayer.js");return new s}_configureLayer(e,t){const r=t.getAttribute(this.itemNameField);r&&(e.title=r);const i=t.getAttribute(this.maxScaleField);null!=i&&"maxScale"in e&&(e.maxScale=i);const o=t.getAttribute(this.minScaleField);null!=o&&"minScale"in e&&(e.minScale=o)}};async function K(e){if("portalItem"in e&&e.portalItem){try{await e.load()}catch{}e.portalItem=null,"group"===e.type&&await Promise.allSettled([...e.layers.map(e=>K(e)),...e.tables.map(e=>K(e))])}}e([l(O)],H.prototype,"legendEnabled",void 0),e([l({readOnly:!0})],H.prototype,"createQueryVersion",null),e([l({readOnly:!0})],H.prototype,"drawOrderField",void 0),e([l({type:d,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:k}}})],H.prototype,"dynamicGroupLayer",void 0),e([l({readOnly:!0})],H.prototype,"editingEnabled",null),e([l({readOnly:!0})],H.prototype,"effectiveEditingEnabled",null),e([l({json:{origins:{"web-scene":{name:"layerDefinition.elevationInfo",read:!1,write:!1}}}})],H.prototype,"elevationInfo",void 0),e([l({...M.fields,readOnly:!0,json:{origins:{service:{read:!0}},read:!1}})],H.prototype,"fields",void 0),e([l(M.fieldsIndex)],H.prototype,"fieldsIndex",void 0),e([l({json:{origins:{"web-scene":{name:"layerDefinition.floorInfo",read:!1,write:!1}}}})],H.prototype,"floorInfo",void 0),e([l({type:u,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:k}}})],H.prototype,"footprintLayer",void 0),e([l(E)],H.prototype,"id",void 0),e([l({readOnly:!0})],H.prototype,"itemNameField",void 0),e([l({readOnly:!0})],H.prototype,"itemSourceField",void 0),e([l({readOnly:!0})],H.prototype,"itemTypeField",void 0),e([l({readOnly:!0})],H.prototype,"layers",void 0),e([l({type:["show","hide","hide-children"]})],H.prototype,"listMode",void 0),e([l({readOnly:!0})],H.prototype,"maxScaleField",void 0),e([l({readOnly:!0})],H.prototype,"minScaleField",void 0),e([l({value:"CatalogLayer",type:["CatalogLayer"]})],H.prototype,"operationalLayerType",void 0),e([l({json:{origins:{"web-scene":{name:"layerDefinition.orderBy",write:!0,read:!0}}}})],H.prototype,"orderBy",void 0),e([l(M.outFields)],H.prototype,"outFields",void 0),e([l({readOnly:!0})],H.prototype,"source",void 0),e([l({json:{read:!1}})],H.prototype,"type",void 0),e([l({type:String})],H.prototype,"typeIdField",void 0),e([l({type:[A]})],H.prototype,"types",void 0),H=e([p("esri.layers.CatalogLayer")],H);const W=H;export{W as default};
2
+ import{__decorate as e}from"tslib";import t from"../request.js";import r from"../core/Collection.js";import i from"../core/Error.js";import{getOrCreateMapValue as o}from"../core/MapUtils.js";import{MultiOriginJSONSupportMixin as s}from"../core/MultiOriginJSONSupport.js";import{throwIfAbortError as a}from"../core/promiseUtils.js";import{hasSamePortal as n}from"../core/urlUtils.js";import{property as l,subclass as p}from"../core/accessorSupport/decorators.js";import y from"./Layer.js";import d from"./catalog/CatalogDynamicGroupLayer.js";import u from"./catalog/CatalogFootprintLayer.js";import m from"./graphics/sources/FeatureLayerSource.js";import{APIKeyMixin as c}from"./mixins/APIKeyMixin.js";import{ArcGISService as f}from"./mixins/ArcGISService.js";import{BlendLayer as h}from"./mixins/BlendLayer.js";import{CustomParametersMixin as g}from"./mixins/CustomParametersMixin.js";import{DisplayFilteredLayer as F}from"./mixins/DisplayFilteredLayer.js";import{EditBusLayer as w}from"./mixins/EditBusLayer.js";import{FeatureLayerBase as j}from"./mixins/FeatureLayerBase.js";import{OperationalLayer as L}from"./mixins/OperationalLayer.js";import{OrderedLayer as v}from"./mixins/OrderedLayer.js";import{PortalLayer as S}from"./mixins/PortalLayer.js";import{RefreshableLayer as x}from"./mixins/RefreshableLayer.js";import{ScaleRangeLayer as b}from"./mixins/ScaleRangeLayer.js";import{TemporalLayer as I}from"./mixins/TemporalLayer.js";import{legendEnabled as O,id as E}from"./support/commonProperties.js";import{ensureLayerCredential as T,applyEdits as P,getFeatureType as _,hasDataChanged as C,validateBinsQuery as q}from"./support/featureLayerUtils.js";import A from"./support/FeatureType.js";import{defineFieldProperties as G}from"./support/fieldProperties.js";import{serviceSupportsSpatialReference as U}from"./support/versionUtils.js";import Q from"../portal/Portal.js";import B from"../portal/PortalItem.js";import{normalizeArcGISOnlineOrgDomain as D}from"../portal/support/urlUtils.js";import N from"../rest/support/Query.js";const M=G();function R(e){return"object"==typeof e&&null!=e&&"itemId"in e&&"portalUrl"in e}function V(e){return"object"==typeof e&&null!=e&&"url"in e}function J(e){if(null==e)return!0;const t=Object.keys(e);return!t.length||1===t.length&&"id"===t[0]}function k(e,t,r,i){const o=e.write({},i);J(o)||(t[r]=o)}let H=class extends(F(j(w(h(v(I(b(x(f(L(S(s(g(c(y))))))))))))))){constructor(e){super(e),this.legendEnabled=!0,this._portals=new Map,this._layerToFootprint=new WeakMap,this.drawOrderField="cd_draworder",this.dynamicGroupLayer=new d({parent:this}),this.elevationInfo=null,this.fields=null,this.fieldsIndex=null,this.floorInfo=null,this.footprintLayer=new u({parent:this}),this.itemNameField="cd_itemname",this.itemSourceField="cd_itemsource",this.itemTypeField="cd_itemtype",this.layers=new r([this.dynamicGroupLayer,this.footprintLayer]),this.maxScaleField="cd_maxscale",this.minScaleField="cd_minscale",this.orderBy=null,this.outFields=null,this.supportedSourceTypes=new Set(["Catalog Layer"]),this.source=new m({layer:this,supportedSourceTypes:this.supportedSourceTypes}),this.type="catalog",this.typeIdField=null,this.types=null}load(e){const t=null!=e?e.signal:null,r=this.loadFromPortal({supportedTypes:["Feature Service"]},e).catch(a).then(async()=>{const{url:e,source:r,portalItem:o}=this;if(!e)throw new i("catalog-layer:missing-url","Catalog layer must be created with a url");if(null==this.layerId){const r=await this._fetchFirstValidLayerId(t);if(null==r)throw new i("catalog-layer:missing-layerId","There is no Catalog Layer in the service",{service:e});this.layerId=r}await r.load({signal:t});const{sourceJSON:s}=r;s&&(this.sourceJSON=s,this.read(s,{origin:"service",portalItem:o,portal:o?.portal,url:this.parsedUrl}))}).then(()=>{const e=[this.itemNameField,this.itemSourceField,this.itemTypeField,this.minScaleField,this.maxScaleField],t=e.filter(e=>!this.fieldsIndex.has(e));if(t.length)throw new i("catalog-layer:missing-fields","There are missing fields to operate properly",{requiredFields:e,missingFields:t})}).then(()=>T(this,"load",e));return this.addResolvingPromise(r),Promise.resolve(this)}destroy(){this.footprintLayer.destroy(),this.dynamicGroupLayer.destroy();for(const e of this._portals.values())e.destroy();this._portals.clear()}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("capabilities"),(this._get("createQueryVersion")??0)+1}get editingEnabled(){return this.loaded&&null!=this.capabilities&&this.capabilities.operations.supportsEditing&&this.userHasEditingPrivileges}get effectiveEditingEnabled(){return!1}async applyEdits(e,t){return P(this,e,t)}async createLayerFromFootprint(e){const t=await this._createLayer(e);return this._configureLayer(t,e),this._layerToFootprint.set(t,e),t}createFootprintFromLayer(e){return this._layerToFootprint.get(e)?.clone()}createQuery(){const e=new N,t=this.capabilities?.query;e.returnGeometry=!0,t&&(e.compactGeometryEnabled=t.supportsCompactGeometry,e.defaultSpatialReferenceEnabled=t.supportsDefaultSpatialReference),e.outFields=["*"];const{timeOffset:r,timeExtent:i}=this;return e.timeExtent=null!=r&&null!=i?i.offset(-r.value,r.unit):i||null,e.where=this.definitionExpression||"1=1",e}getFeatureType(e){return _(this.types,this.typeIdField,e)}getFieldDomain(e,t){const r=t?.feature,i=this.getFeatureType(r);if(i){const t=i.domains&&i.domains[e];if(t&&"inherited"!==t.type)return t}return this.getField(e)?.domain}async hasDataChanged(){return C(this)}async queryFeatures(e,t){const r=await this.load(),i=await r.source.queryFeatures(N.from(e)??r.createQuery(),t),o=r.footprintLayer.graphicOrigin;if(i?.features)for(const s of i.features)s.layer=s.sourceLayer=r.footprintLayer,s.origin=o;return i}async queryObjectIds(e,t){return(await this.load()).source.queryObjectIds(N.from(e)??this.createQuery(),t)}async queryFeatureCount(e,t){return(await this.load()).source.queryFeatureCount(N.from(e)??this.createQuery(),t)}async queryExtent(e,t){return(await this.load()).source.queryExtent(N.from(e)??this.createQuery(),t)}serviceSupportsSpatialReference(e){return this.loaded&&U(this,e)}read(e,t){if(super.read(e,t),e){const{footprintLayer:r,dynamicGroupLayer:i}=e;r&&this.footprintLayer.read(r,t),i&&this.dynamicGroupLayer.read(i,t)}}async queryAttributeBins(e,t){const{source:r,capabilities:i}=await this.load();q(e,i,"CatalogLayer");const o=await(import("../rest/support/AttributeBinsQuery.js")),s=await r.queryAttributeBins(o.default.from(e),t);if(s.features)for(const a of s.features)a.layer=a.sourceLayer=this.footprintLayer;return s}async _fetchFirstValidLayerId(e){const{data:r}=await t(this.url,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e});if(this.applyPreferredHost(r),Array.isArray(r?.layers))return r.layers.find(({type:e})=>!!e&&this.supportedSourceTypes.has(e))?.id}async _createLayer(e){const t=e.getAttribute(this.itemSourceField);if(!t)throw new i("catalog-layer:item-source-missing",`The footprint is missing the "${this.itemSourceField}" attribute`);const r=JSON.parse(t);if(R(r)){const{itemId:e,portalUrl:t}=r,i=D(t),s=this.portalItem?.portal,a=Q.getDefault();let l,p=!0;s&&n(t,s.url)?l=s:n(t,a.url)?l=a:(l=o(this._portals,i,()=>new Q({url:i})),p=!1);const d=await y.fromPortalItem(new B({id:e,portal:l}));return p||await K(d),d}if(V(r))return y.fromArcGISServerUrl({url:r.url});const{default:s}=await(import("./UnsupportedLayer.js"));return new s}_configureLayer(e,t){const r=t.getAttribute(this.itemNameField);r&&(e.title=r);const i=t.getAttribute(this.maxScaleField);null!=i&&"maxScale"in e&&(e.maxScale=i);const o=t.getAttribute(this.minScaleField);null!=o&&"minScale"in e&&(e.minScale=o)}};async function K(e){if("portalItem"in e&&e.portalItem){try{await e.load()}catch{}e.portalItem=null,"group"===e.type&&await Promise.allSettled([...e.layers.map(e=>K(e)),...e.tables.map(e=>K(e))])}}e([l(O)],H.prototype,"legendEnabled",void 0),e([l({readOnly:!0})],H.prototype,"createQueryVersion",null),e([l({readOnly:!0})],H.prototype,"drawOrderField",void 0),e([l({type:d,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:k}}})],H.prototype,"dynamicGroupLayer",void 0),e([l({readOnly:!0})],H.prototype,"editingEnabled",null),e([l({readOnly:!0})],H.prototype,"effectiveEditingEnabled",null),e([l({json:{origins:{"web-scene":{name:"layerDefinition.elevationInfo",read:!1,write:!1}}}})],H.prototype,"elevationInfo",void 0),e([l({...M.fields,readOnly:!0,json:{origins:{service:{read:!0}},read:!1}})],H.prototype,"fields",void 0),e([l(M.fieldsIndex)],H.prototype,"fieldsIndex",void 0),e([l({json:{origins:{"web-scene":{name:"layerDefinition.floorInfo",read:!1,write:!1}}}})],H.prototype,"floorInfo",void 0),e([l({type:u,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:k}}})],H.prototype,"footprintLayer",void 0),e([l(E)],H.prototype,"id",void 0),e([l({readOnly:!0})],H.prototype,"itemNameField",void 0),e([l({readOnly:!0})],H.prototype,"itemSourceField",void 0),e([l({readOnly:!0})],H.prototype,"itemTypeField",void 0),e([l({readOnly:!0})],H.prototype,"layers",void 0),e([l({type:["show","hide","hide-children"]})],H.prototype,"listMode",void 0),e([l({readOnly:!0})],H.prototype,"maxScaleField",void 0),e([l({readOnly:!0})],H.prototype,"minScaleField",void 0),e([l({value:"CatalogLayer",type:["CatalogLayer"]})],H.prototype,"operationalLayerType",void 0),e([l({json:{origins:{"web-scene":{name:"layerDefinition.orderBy",write:!0,read:!0}}}})],H.prototype,"orderBy",void 0),e([l(M.outFields)],H.prototype,"outFields",void 0),e([l({readOnly:!0})],H.prototype,"source",void 0),e([l({json:{read:!1}})],H.prototype,"type",void 0),e([l({type:String})],H.prototype,"typeIdField",void 0),e([l({type:[A]})],H.prototype,"types",void 0),H=e([p("esri.layers.CatalogLayer")],H);const W=H;export{W as default};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import t from"../request.js";import r from"../core/Error.js";import{releaseMaybe as i}from"../core/maybe.js";import{MultiOriginJSONSupportMixin as o}from"../core/MultiOriginJSONSupport.js";import{throwIfAbortError as a,throwIfAborted as s}from"../core/promiseUtils.js";import{objectToQuery as l}from"../core/urlUtils.js";import{property as p,subclass as n}from"../core/accessorSupport/decorators.js";import c from"../geometry/HeightModelInfo.js";import d from"./Layer.js";import{ArcGISCachedService as u}from"./mixins/ArcGISCachedService.js";import{ArcGISService as y}from"./mixins/ArcGISService.js";import{OperationalLayer as h}from"./mixins/OperationalLayer.js";import{PortalLayer as m}from"./mixins/PortalLayer.js";import{url as v}from"./support/commonProperties.js";import f from"./support/ElevationTileData.js";import{acquireDecoder as w}from"./support/LercDecoder.js";import{reader as g}from"../core/accessorSupport/decorators/reader.js";let S=class extends(u(y(h(m(o(d)))))){constructor(...e){super(...e),this.capabilities={operations:{supportsTileMap:!1}},this.copyright=null,this.heightModelInfo=null,this.path=null,this.minScale=void 0,this.maxScale=void 0,this.opacity=1,this.operationalLayerType="ArcGISTiledElevationServiceLayer",this.sourceJSON=null,this.type="elevation",this.url=null,this.version=null,this._lercDecoder=w()}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this._lercDecoder=i(this._lercDecoder)}readCapabilities(e,t){const r=t.capabilities&&t.capabilities.split(",").map(e=>e.toLowerCase().trim());if(!r)return{operations:{supportsTileMap:!1}};return{operations:{supportsTileMap:r.includes("tilemap")}}}get memoizedElevationQueryDependencies(){return[this.loadStatus,this.tileInfo,this.fullExtent,this.spatialReference]}readVersion(e,t){let r=t.currentVersion;return r||(r=9.3),r}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"],supportsData:!1,validateItem:e=>{if(e.typeKeywords)for(let t=0;t<e.typeKeywords.length;t++)if("elevation 3d layer"===e.typeKeywords[t].toLowerCase())return!0;throw new r("portal:invalid-layer-item-type","Invalid layer item type '${type}', expected '${expectedType}' ",{type:"Image Service",expectedType:"Image Service Elevation 3D Layer"})}},e).catch(a).then(()=>this._fetchImageService(t))),Promise.resolve(this)}async fetchTile(e,i,o,a){const s=a?.signal,l={responseType:"array-buffer",signal:s,useQueue:a?.useQueue,priority:a?.priority},p={noDataValue:a?.noDataValue,returnFileInfo:!0};await this.load(),await this._fetchTileAvailability(e,i,o,a);const n=await t(this.getTileUrl(e,i,o),l),c=await this._lercDecoder.decode(n.data,p,s);if(!c)throw new r("elevation-layer:tile-decode-failed","Failed to decode elevation tile data.");return new f({values:c.pixelData,width:c.width,height:c.height,noDataValue:c.noDataValue})}getTileUrl(e,t,r){const i=!this.capabilities.operations.supportsTileMap&&this.supportsBlankTile,o=l({...this.parsedUrl.query,blankTile:!i&&null});return`${this.parsedUrl.path}/tile/${e}/${t}/${r}${o?"?"+o:""}`}async queryElevation(e,t){const{query:r}=await import("./support/ElevationQuery.js");return s(t),r(this,e,t)}async createElevationSampler(e,t){const{createSampler:r}=await import("./support/ElevationQuery.js");return s(t),r(this,e,t)}_fetchTileAvailability(e,t,r,i){return this.tilemapCache?this.tilemapCache.fetchAvailability(e,t,r,i):Promise.resolve("unknown")}async _fetchImageService(e){if(this.sourceJSON)return this.sourceJSON;const r={query:{f:"json",...this.parsedUrl.query},responseType:"json",signal:e},i=await t(this.parsedUrl.path,r);i.ssl&&(this.url=this.url?.replace(/^http:/i,"https:")),this.sourceJSON=i.data,this.read(i.data,{origin:"service",url:this.parsedUrl})}get hasOverriddenFetchTile(){return!this.fetchTile[j]}};e([p({readOnly:!0})],S.prototype,"capabilities",void 0),e([g("service","capabilities",["capabilities"])],S.prototype,"readCapabilities",null),e([p({json:{read:{source:"copyrightText"}}})],S.prototype,"copyright",void 0),e([p({readOnly:!0,type:c})],S.prototype,"heightModelInfo",void 0),e([p({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],S.prototype,"path",void 0),e([p({type:["show","hide"]})],S.prototype,"listMode",void 0),e([p({json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}},readOnly:!0})],S.prototype,"minScale",void 0),e([p({json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}},readOnly:!0})],S.prototype,"maxScale",void 0),e([p({json:{read:!1,write:!1,origins:{"web-document":{read:!1,write:!1}}}})],S.prototype,"opacity",void 0),e([p({type:["ArcGISTiledElevationServiceLayer"]})],S.prototype,"operationalLayerType",void 0),e([p()],S.prototype,"sourceJSON",void 0),e([p({json:{read:!1},value:"elevation",readOnly:!0})],S.prototype,"type",void 0),e([p()],S.prototype,"memoizedElevationQueryDependencies",null),e([p(v)],S.prototype,"url",void 0),e([p()],S.prototype,"version",void 0),e([g("version",["currentVersion"])],S.prototype,"readVersion",null),S=e([n("esri.layers.ElevationLayer")],S);const j=Symbol("default-fetch-tile");S.prototype.fetchTile[j]=!0;const T=S;export{T as default};
2
+ import{__decorate as e}from"tslib";import t from"../request.js";import r from"../core/Error.js";import{releaseMaybe as i}from"../core/maybe.js";import{MultiOriginJSONSupportMixin as o}from"../core/MultiOriginJSONSupport.js";import{throwIfAbortError as a,throwIfAborted as s}from"../core/promiseUtils.js";import{objectToQuery as l}from"../core/urlUtils.js";import{property as p,subclass as n}from"../core/accessorSupport/decorators.js";import c from"../geometry/HeightModelInfo.js";import d from"./Layer.js";import{ArcGISCachedService as u}from"./mixins/ArcGISCachedService.js";import{ArcGISService as y}from"./mixins/ArcGISService.js";import{OperationalLayer as h}from"./mixins/OperationalLayer.js";import{PortalLayer as m}from"./mixins/PortalLayer.js";import{url as v}from"./support/commonProperties.js";import f from"./support/ElevationTileData.js";import{acquireDecoder as w}from"./support/LercDecoder.js";import{reader as g}from"../core/accessorSupport/decorators/reader.js";let S=class extends(u(y(h(m(o(d)))))){constructor(...e){super(...e),this.capabilities={operations:{supportsTileMap:!1}},this.copyright=null,this.heightModelInfo=null,this.path=null,this.minScale=void 0,this.maxScale=void 0,this.opacity=1,this.operationalLayerType="ArcGISTiledElevationServiceLayer",this.sourceJSON=null,this.type="elevation",this.url=null,this.version=null,this._lercDecoder=w()}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this._lercDecoder=i(this._lercDecoder)}readCapabilities(e,t){const r=t.capabilities&&t.capabilities.split(",").map(e=>e.toLowerCase().trim());if(!r)return{operations:{supportsTileMap:!1}};return{operations:{supportsTileMap:r.includes("tilemap")}}}get memoizedElevationQueryDependencies(){return[this.loadStatus,this.tileInfo,this.fullExtent,this.spatialReference]}readVersion(e,t){let r=t.currentVersion;return r||(r=9.3),r}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"],supportsData:!1,validateItem:e=>{if(e.typeKeywords)for(let t=0;t<e.typeKeywords.length;t++)if("elevation 3d layer"===e.typeKeywords[t].toLowerCase())return!0;throw new r("portal:invalid-layer-item-type","Invalid layer item type '${type}', expected '${expectedType}' ",{type:"Image Service",expectedType:"Image Service Elevation 3D Layer"})}},e).catch(a).then(()=>this._fetchImageService(t))),Promise.resolve(this)}async fetchTile(e,i,o,a){const s=a?.signal,l={responseType:"array-buffer",signal:s,useQueue:a?.useQueue,priority:a?.priority},p={noDataValue:a?.noDataValue,returnFileInfo:!0};await this.load(),await this._fetchTileAvailability(e,i,o,a);const n=await t(this.getTileUrl(e,i,o),l),c=await this._lercDecoder.decode(n.data,p,s);if(!c)throw new r("elevation-layer:tile-decode-failed","Failed to decode elevation tile data.");return new f({values:c.pixelData,width:c.width,height:c.height,noDataValue:c.noDataValue})}getTileUrl(e,t,r){const i=!this.capabilities.operations.supportsTileMap&&this.supportsBlankTile,o=l({...this.parsedUrl.query,blankTile:!i&&null});return`${this.parsedUrl.path}/tile/${e}/${t}/${r}${o?"?"+o:""}`}async queryElevation(e,t){const{query:r}=await(import("./support/ElevationQuery.js"));return s(t),r(this,e,t)}async createElevationSampler(e,t){const{createSampler:r}=await(import("./support/ElevationQuery.js"));return s(t),r(this,e,t)}_fetchTileAvailability(e,t,r,i){return this.tilemapCache?this.tilemapCache.fetchAvailability(e,t,r,i):Promise.resolve("unknown")}async _fetchImageService(e){if(this.sourceJSON)return this.sourceJSON;const r={query:{f:"json",...this.parsedUrl.query},responseType:"json",signal:e},i=await t(this.parsedUrl.path,r);i.ssl&&(this.url=this.url?.replace(/^http:/i,"https:")),this.sourceJSON=i.data,this.read(i.data,{origin:"service",url:this.parsedUrl})}get hasOverriddenFetchTile(){return!this.fetchTile[j]}};e([p({readOnly:!0})],S.prototype,"capabilities",void 0),e([g("service","capabilities",["capabilities"])],S.prototype,"readCapabilities",null),e([p({json:{read:{source:"copyrightText"}}})],S.prototype,"copyright",void 0),e([p({readOnly:!0,type:c})],S.prototype,"heightModelInfo",void 0),e([p({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],S.prototype,"path",void 0),e([p({type:["show","hide"]})],S.prototype,"listMode",void 0),e([p({json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}},readOnly:!0})],S.prototype,"minScale",void 0),e([p({json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}},readOnly:!0})],S.prototype,"maxScale",void 0),e([p({json:{read:!1,write:!1,origins:{"web-document":{read:!1,write:!1}}}})],S.prototype,"opacity",void 0),e([p({type:["ArcGISTiledElevationServiceLayer"]})],S.prototype,"operationalLayerType",void 0),e([p()],S.prototype,"sourceJSON",void 0),e([p({json:{read:!1},value:"elevation",readOnly:!0})],S.prototype,"type",void 0),e([p()],S.prototype,"memoizedElevationQueryDependencies",null),e([p(v)],S.prototype,"url",void 0),e([p()],S.prototype,"version",void 0),e([g("version",["currentVersion"])],S.prototype,"readVersion",null),S=e([n("esri.layers.ElevationLayer")],S);const j=Symbol("default-fetch-tile");S.prototype.fetchTile[j]=!0;const T=S;export{T as default};