@arcgis/core 4.31.0-next.20240919 → 4.31.0-next.20240921

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 (283) hide show
  1. package/WebDocument2D.js +1 -1
  2. package/WebLinkChart.js +1 -1
  3. package/WebMap.js +1 -1
  4. package/applications/SceneViewer/sceneViewerUtils.js +1 -1
  5. package/arcade/featureset/actions/Adapted.js +1 -1
  6. package/arcade/featureset/support/StatsField.js +1 -1
  7. package/arcade/featureset/support/errorsupport.js +1 -1
  8. package/arcade/featureset/support/sqlUtils.js +1 -1
  9. package/arcade/functions/maths.js +1 -1
  10. package/assets/esri/core/workers/RemoteClient.js +1 -1
  11. package/assets/esri/core/workers/chunks/{d9d8606f0a7c82b42755.js → 093a1ee161cb6a840283.js} +1 -1
  12. package/assets/esri/core/workers/chunks/2020b99675caabf5ac87.js +1 -0
  13. package/assets/esri/core/workers/chunks/24d45530fe47b3114daf.js +1 -0
  14. package/assets/esri/core/workers/chunks/35f92652df2561845d47.js +1 -0
  15. package/assets/esri/core/workers/chunks/42b92b4c2c9fd2b15f60.js +2 -0
  16. package/assets/esri/core/workers/chunks/{ba561e03df67894e437f.js.LICENSE.txt → 42b92b4c2c9fd2b15f60.js.LICENSE.txt} +1 -1
  17. package/assets/esri/core/workers/chunks/65b1d7fa57d4c764efe8.js +1 -0
  18. package/assets/esri/core/workers/chunks/{b99d380cce485e65c990.js → 6cda92678ffeeaea0330.js} +1 -1
  19. package/assets/esri/core/workers/chunks/736e0c5cb9010ca818d8.js +1 -0
  20. package/assets/esri/core/workers/chunks/757b83799555958e059c.js +1 -0
  21. package/assets/esri/core/workers/chunks/76d8192015ce46dbf92a.js +1 -0
  22. package/assets/esri/core/workers/chunks/7b4880b2dc6b01d70ccc.js +1 -0
  23. package/assets/esri/core/workers/chunks/884cd0bd036c65567929.js +1 -0
  24. package/assets/esri/core/workers/chunks/95ea77a7d63c9d7ed78b.js +1 -0
  25. package/assets/esri/core/workers/chunks/{da3a4eb3fbb9dd509b4b.js → 98e872da08203455a5b6.js} +1 -1
  26. package/assets/esri/core/workers/chunks/ad4fa125e09cc0047f5b.js +1 -0
  27. package/assets/esri/core/workers/chunks/bb5a18dd1e6a71905668.js +2 -0
  28. package/assets/esri/core/workers/chunks/bf406a46515d5dfebe06.js +1 -0
  29. package/assets/esri/core/workers/chunks/d9c34e07627d93d4670b.js +1 -0
  30. package/assets/esri/core/workers/chunks/e1e9a7695e48e34a69bd.js +1 -0
  31. package/assets/esri/core/workers/chunks/e4f1464ed269c301b4ee.js +1 -0
  32. package/assets/esri/core/workers/chunks/{072029d05ccb56979523.js → e611141692355a1ba2b2.js} +1 -1
  33. package/assets/esri/core/workers/chunks/f41e8d0d6f5e81289179.js +1 -0
  34. package/assets/esri/core/workers/chunks/f7c96d34c70ed36da7c2.js +1 -0
  35. package/assets/esri/core/workers/chunks/{5ca8e767cc03e1425338.js → f9e90a2fda559ca68848.js} +1 -1
  36. package/assets/esri/themes/base/_functions.scss +6 -2
  37. package/assets/esri/themes/base/widgets/_BasemapLayerList.scss +4 -0
  38. package/assets/esri/themes/base/widgets/_OrientedImageryViewer.scss +6 -0
  39. package/assets/esri/themes/dark/main.css +1 -1
  40. package/assets/esri/themes/light/main.css +1 -1
  41. package/assets/esri/themes/light/view.css +1 -1
  42. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery.json +1 -1
  43. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_ar.json +1 -1
  44. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_bg.json +1 -1
  45. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_bs.json +1 -1
  46. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_ca.json +1 -1
  47. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_cs.json +1 -1
  48. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_da.json +1 -1
  49. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_de.json +1 -1
  50. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_el.json +1 -1
  51. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_en.json +1 -1
  52. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_es.json +1 -1
  53. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_et.json +1 -1
  54. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_fi.json +1 -1
  55. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_fr.json +1 -1
  56. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_he.json +1 -1
  57. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_hr.json +1 -1
  58. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_hu.json +1 -1
  59. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_id.json +1 -1
  60. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_it.json +1 -1
  61. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_ja.json +1 -1
  62. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_ko.json +1 -1
  63. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_lt.json +1 -1
  64. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_lv.json +1 -1
  65. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_nb.json +1 -1
  66. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_nl.json +1 -1
  67. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_pl.json +1 -1
  68. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_pt-BR.json +1 -1
  69. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_pt-PT.json +1 -1
  70. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_ro.json +1 -1
  71. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_ru.json +1 -1
  72. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_sk.json +1 -1
  73. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_sl.json +1 -1
  74. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_sr.json +1 -1
  75. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_sv.json +1 -1
  76. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_th.json +1 -1
  77. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_tr.json +1 -1
  78. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_uk.json +1 -1
  79. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_vi.json +1 -1
  80. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_zh-CN.json +1 -1
  81. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_zh-HK.json +1 -1
  82. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_zh-TW.json +1 -1
  83. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer.json +1 -1
  84. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ar.json +1 -1
  85. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_bg.json +1 -1
  86. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_bs.json +1 -1
  87. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ca.json +1 -1
  88. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_cs.json +1 -1
  89. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_da.json +1 -1
  90. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_de.json +1 -1
  91. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_el.json +1 -1
  92. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_en.json +1 -1
  93. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_es.json +1 -1
  94. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_et.json +1 -1
  95. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_fi.json +1 -1
  96. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_fr.json +1 -1
  97. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_he.json +1 -1
  98. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_hr.json +1 -1
  99. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_hu.json +1 -1
  100. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_id.json +1 -1
  101. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_it.json +1 -1
  102. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ja.json +1 -1
  103. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ko.json +1 -1
  104. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_lt.json +1 -1
  105. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_lv.json +1 -1
  106. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_nb.json +1 -1
  107. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_nl.json +1 -1
  108. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pl.json +1 -1
  109. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pt-BR.json +1 -1
  110. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pt-PT.json +1 -1
  111. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ro.json +1 -1
  112. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ru.json +1 -1
  113. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sk.json +1 -1
  114. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sl.json +1 -1
  115. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sr.json +1 -1
  116. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sv.json +1 -1
  117. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_th.json +1 -1
  118. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_tr.json +1 -1
  119. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_uk.json +1 -1
  120. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_vi.json +1 -1
  121. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-CN.json +1 -1
  122. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-HK.json +1 -1
  123. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-TW.json +1 -1
  124. package/chunks/Bufferer-93RDFIRm.js +5 -0
  125. package/chunks/Centroid-DZi-eb9F.js +1 -1
  126. package/chunks/ComponentShader.glsl.js +10 -13
  127. package/chunks/Distance2DCalculator-De7WFGFq.js +5 -0
  128. package/chunks/GeodeticDistanceCalculator-CN7xMqrJ.js +5 -0
  129. package/chunks/LineSeries.js +1 -1
  130. package/chunks/{OITCompositing.glsl.js → OITBlend.glsl.js} +1 -1
  131. package/chunks/OperatorGeneralize.js +1 -1
  132. package/chunks/OperatorGeodesicBuffer.js +1 -1
  133. package/chunks/OperatorGeodeticArea.js +1 -1
  134. package/chunks/OperatorGeodeticDensifyByLength.js +1 -1
  135. package/chunks/OperatorGeodeticDistance.js +1 -1
  136. package/chunks/OperatorGeodeticLength.js +1 -1
  137. package/chunks/OperatorProximity.js +1 -1
  138. package/chunks/OperatorShapePreservingLength.js +5 -0
  139. package/chunks/Polyline.js +1 -1
  140. package/chunks/Theme.js +1 -1
  141. package/chunks/Tick.js +1 -1
  142. package/chunks/tslib.es6.js +1 -1
  143. package/core/mathUtils.js +1 -1
  144. package/core/sql/AggregateFunctions.js +1 -1
  145. package/core/sql/SqlInterval.js +1 -1
  146. package/core/sql/StandardizedFunctions.js +1 -1
  147. package/core/sql/WhereClause.js +1 -1
  148. package/core/sql/WhereGrammar.js +1 -1
  149. package/core/sql/errorSupport.js +5 -0
  150. package/core/sql/sqlArithmeticUtils.js +1 -1
  151. package/core/sql/sqlCompareUtils.js +1 -1
  152. package/core/sql/sqlDateParsingUtils.js +1 -1
  153. package/geometry/operators/areaOperator.js +5 -0
  154. package/geometry/operators/containsOperator.js +1 -1
  155. package/geometry/operators/crossesOperator.js +1 -1
  156. package/geometry/operators/disjointOperator.js +1 -1
  157. package/geometry/operators/distanceOperator.js +1 -1
  158. package/geometry/operators/equalsOperator.js +1 -1
  159. package/geometry/operators/geodeticDensifyOperator.js +5 -0
  160. package/geometry/operators/graphicBufferOperator.js +5 -0
  161. package/geometry/operators/gx/operatorAutoComplete.js +1 -1
  162. package/geometry/operators/gx/operatorBuffer.js +1 -1
  163. package/geometry/operators/gx/operatorClip.js +1 -1
  164. package/geometry/operators/gx/operatorConvexHull.js +1 -1
  165. package/geometry/operators/gx/operatorCut.js +1 -1
  166. package/geometry/operators/gx/operatorDifference.js +1 -1
  167. package/geometry/operators/gx/operatorGeodesicBuffer.js +1 -1
  168. package/geometry/operators/gx/operatorGeodeticArea.js +1 -1
  169. package/geometry/operators/gx/{operatorGeodeticDensifyByLength.js → operatorGeodeticDensify.js} +1 -1
  170. package/geometry/operators/gx/operatorGeodeticDistance.js +1 -1
  171. package/geometry/operators/gx/operatorGeodeticLength.js +1 -1
  172. package/geometry/operators/gx/operatorGraphicBuffer.js +5 -0
  173. package/geometry/operators/gx/operatorIntegrate.js +1 -1
  174. package/geometry/operators/gx/operatorIntersection.js +1 -1
  175. package/geometry/operators/gx/operatorLabelPoint.js +1 -1
  176. package/geometry/operators/gx/operatorOffset.js +1 -1
  177. package/geometry/operators/gx/operatorSimplify.js +1 -1
  178. package/geometry/operators/gx/operatorSymmetricDifference.js +1 -1
  179. package/geometry/operators/gx/operatorUnion.js +1 -1
  180. package/geometry/operators/intersectsOperator.js +1 -1
  181. package/geometry/operators/isNearOperator.js +1 -1
  182. package/geometry/operators/lengthOperator.js +5 -0
  183. package/geometry/operators/overlapsOperator.js +1 -1
  184. package/geometry/operators/proximityOperator.d.ts +4 -0
  185. package/geometry/operators/proximityOperator.js +1 -1
  186. package/geometry/operators/relateOperator.js +1 -1
  187. package/geometry/operators/reshapeOperator.js +1 -1
  188. package/geometry/operators/touchesOperator.js +1 -1
  189. package/geometry/operators/withinOperator.js +1 -1
  190. package/interfaces.d.ts +310 -28
  191. package/layers/mixins/ArcGISMapService.js +1 -1
  192. package/layers/support/ControlPointsGeoreference.js +1 -1
  193. package/layers/support/MediaElementBase.js +1 -1
  194. package/layers/support/mediaUtils.js +1 -1
  195. package/linkChart/LinkChartProperties.js +1 -1
  196. package/linkChart/utils.js +1 -1
  197. package/package.json +2 -2
  198. package/portal/schemas/definitions.js +1 -1
  199. package/support/revision.js +1 -1
  200. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextMeshWriter.js +1 -1
  201. package/views/2d/layers/GraphicsLayerView2D.js +1 -1
  202. package/views/2d/layers/LayerView2D.js +1 -1
  203. package/views/2d/support/highlightGroupUtils.js +1 -1
  204. package/views/3d/interactive/editingTools/move/MoveTool3D.js +1 -1
  205. package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
  206. package/views/3d/interactive/editingTools/transform/ExtentTransformTool.js +1 -1
  207. package/views/3d/interactive/editingTools/transform/ScaleRotateTransform.js +1 -1
  208. package/views/3d/interactive/editingTools/transform/TransformTool3D.js +1 -1
  209. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
  210. package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +1 -1
  211. package/views/3d/webgl-engine/effects/transparency/OITBlend.glsl.js +5 -0
  212. package/views/3d/webgl-engine/effects/transparency/OITBlend.js +5 -0
  213. package/views/3d/webgl-engine/effects/transparency/OITBlendTechnique.js +5 -0
  214. package/views/3d/webgl-engine/lib/CompositingHelper.js +1 -1
  215. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  216. package/views/LinkChartView.js +1 -1
  217. package/views/MapView.js +1 -1
  218. package/views/View.js +1 -1
  219. package/views/View2D.js +1 -1
  220. package/views/draw/DrawGraphicTool.js +1 -1
  221. package/views/draw/support/Box.js +1 -1
  222. package/views/draw/support/Reshape.js +1 -1
  223. package/views/interactive/Tooltip.d.ts +4 -0
  224. package/views/interactive/Tooltip.js +5 -0
  225. package/views/interactive/tooltip/tooltipCommonUtils.js +1 -1
  226. package/webdoc/widgets/TimeSlider.js +1 -1
  227. package/webmap/InitialViewProperties.js +1 -1
  228. package/widgets/BasemapGallery/BasemapGalleryViewModel.js +1 -1
  229. package/widgets/BasemapGallery.js +1 -1
  230. package/widgets/BasemapLayerList/css.js +1 -1
  231. package/widgets/BasemapLayerList.js +1 -1
  232. package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
  233. package/widgets/BatchAttributeForm/templates/BatchAttributeFormElementTemplate.js +1 -1
  234. package/widgets/BatchAttributeForm/templates/BatchAttributeFormTemplate.js +1 -1
  235. package/widgets/BatchAttributeForm/templates/BatchFieldElementTemplate.js +1 -1
  236. package/widgets/BatchAttributeForm/templates/batchAttributeFormTemplateUtils.js +1 -1
  237. package/widgets/CatalogLayerList.js +1 -1
  238. package/widgets/Feature/FeatureMedia/pieChart.js +1 -1
  239. package/widgets/Feature/FeatureMedia/xyChart.js +1 -1
  240. package/widgets/FeatureForm/FieldInput.js +1 -1
  241. package/widgets/LayerList/LayerListItem.js +1 -1
  242. package/widgets/LayerList/LayerListViewModel.js +1 -1
  243. package/widgets/LayerList.js +1 -1
  244. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  245. package/widgets/OrientedImageryViewer/adapters/OrientedImageryViewerViewModelAdapter2D.js +1 -1
  246. package/widgets/OrientedImageryViewer/adapters/OrientedImageryViewerViewModelAdapter3D.js +1 -1
  247. package/widgets/OrientedImageryViewer/constants.js +1 -1
  248. package/widgets/OrientedImageryViewer/css.js +1 -1
  249. package/widgets/OrientedImageryViewer/utils.js +1 -1
  250. package/widgets/OrientedImageryViewer.js +1 -1
  251. package/widgets/ScaleBar/ScaleBarViewModel.js +1 -1
  252. package/widgets/Sketch/SketchViewModel.js +1 -1
  253. package/widgets/Sketch.js +1 -1
  254. package/widgets/support/SnappingControls.js +1 -1
  255. package/assets/esri/core/workers/chunks/0cfa9665dab31e5235a8.js +0 -1
  256. package/assets/esri/core/workers/chunks/22fb5687932019304225.js +0 -1
  257. package/assets/esri/core/workers/chunks/3b3c8362359a82c66793.js +0 -1
  258. package/assets/esri/core/workers/chunks/3cb1de0b9bf9a25112e0.js +0 -1
  259. package/assets/esri/core/workers/chunks/59833b27d8413b6d9312.js +0 -1
  260. package/assets/esri/core/workers/chunks/5e43cb91bbe20f2d32e3.js +0 -1
  261. package/assets/esri/core/workers/chunks/67df47efb9a9dfeafee2.js +0 -1
  262. package/assets/esri/core/workers/chunks/6be62448e33baabe028c.js +0 -1
  263. package/assets/esri/core/workers/chunks/6d668f7696f280ec9588.js +0 -1
  264. package/assets/esri/core/workers/chunks/74edde71352e1f578a3b.js +0 -1
  265. package/assets/esri/core/workers/chunks/907e74abb4a85a76e3b5.js +0 -1
  266. package/assets/esri/core/workers/chunks/941fe04f47059074c05b.js +0 -2
  267. package/assets/esri/core/workers/chunks/a0005bc65f79e83f26ee.js +0 -1
  268. package/assets/esri/core/workers/chunks/a6560ff77be29344bc50.js +0 -1
  269. package/assets/esri/core/workers/chunks/a6c3c1827d2e8bbfcd9e.js +0 -1
  270. package/assets/esri/core/workers/chunks/ba561e03df67894e437f.js +0 -2
  271. package/assets/esri/core/workers/chunks/df9daac7ea581e9e5ca4.js +0 -1
  272. package/assets/esri/core/workers/chunks/ea51a7c32f716f4f1a34.js +0 -1
  273. package/assets/esri/core/workers/chunks/ef7dcb8758e7f21d30bc.js +0 -1
  274. package/chunks/Distance2DCalculator-BzAEa8Xe.js +0 -5
  275. package/chunks/GeodeticDistanceCalculator-BS_KY66f.js +0 -5
  276. package/chunks/OperatorShapePreservingDensify.js +0 -5
  277. package/geometry/operators/geodeticDensifyByLengthOperator.js +0 -5
  278. package/geometry/operators/gx/operatorShapePreservingDensify.js +0 -5
  279. package/geometry/operators/shapePreservingDensifyOperator.js +0 -5
  280. package/views/3d/webgl-engine/shaders/OITCompositing.glsl.js +0 -5
  281. package/views/3d/webgl-engine/shaders/OITCompositingTechnique.js +0 -5
  282. package/views/interactive/tooltip/Tooltip.js +0 -5
  283. /package/assets/esri/core/workers/chunks/{941fe04f47059074c05b.js.LICENSE.txt → bb5a18dd1e6a71905668.js.LICENSE.txt} +0 -0
@@ -0,0 +1,5 @@
1
+ /*
2
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
+ */
5
+ import{replace as e}from"../string.js";var a;!function(e){e.InvalidFunctionParameters="InvalidFunctionParameters",e.InvalidValueForAggregateFunction="InvalidValueForAggregateFunction",e.UnsupportedSqlFunction="UnsupportedSqlFunction",e.UnsupportedOperator="UnsupportedOperator",e.UnsupportedSyntax="UnsupportedSyntax",e.UnsupportedIsRhs="UnsupportedIsRhs",e.UnsupportedIsLhs="UnsupportedIsLhs",e.InvalidDataType="InvalidDataType",e.CannotCastValue="CannotCastValue",e.FunctionNotRecognized="FunctionNotRecognized",e.InvalidTime="InvalidTime",e.InvalidParameterCount="InvalidParameterCount",e.InvalidTimeStamp="InvalidTimeStamp",e.InvalidDate="InvalidDate",e.InvalidOperator="InvalidOperator",e.IllegalInterval="IllegalInterval",e.YearMonthIntervals="YearMonthIntervals",e.PrimarySecondaryQualifiers="PrimarySecondaryQualifiers",e.MissingStatisticParameters="MissingStatisticParameters"}(a||(a={}));const t={[a.InvalidValueForAggregateFunction]:"Invalid value used in aggregate function",[a.MissingStatisticParameters]:"Statistic does not have 1 or 0 Parameters",[a.InvalidFunctionParameters]:"Invalid parameters for call to {function}",[a.UnsupportedIsLhs]:"Unsupported left hand expression in is statement",[a.UnsupportedIsRhs]:"Unsupported right hand expression in is statement",[a.UnsupportedOperator]:"Unsupported operator - {operator}",[a.UnsupportedSyntax]:"Unsupported syntax - {node}",[a.UnsupportedSqlFunction]:"Sql function not found = {function}",[a.InvalidDataType]:"Invalid sql data type",[a.InvalidDate]:"Invalid date encountered",[a.InvalidOperator]:"Invalid operator encountered",[a.InvalidTime]:"Invalid time encountered",[a.IllegalInterval]:"Illegal interval",[a.FunctionNotRecognized]:"Function not recognized",[a.InvalidTimeStamp]:"Invalid timestamp encountered",[a.InvalidParameterCount]:"Invalid parameter count for call to {name}",[a.PrimarySecondaryQualifiers]:"Primary and Secondary SqlInterval qualifiers not supported",[a.YearMonthIntervals]:"Year-Month Intervals not supported",[a.CannotCastValue]:"Cannot cast value to the required data type"};class n extends Error{constructor(a,r){super(e(t[a],r)),this.declaredRootClass="esri.arcade.featureset.support.sqlerror",Error.captureStackTrace&&Error.captureStackTrace(this,n)}}export{n as SqlError,a as SqlErrorCodes,t as sqlErrorMessages};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
4
  */
5
- import{SqlError as n,SqlErrorCodes as r}from"../../arcade/featureset/support/errorsupport.js";import{isNumber as e,isSqlInterval as i,isTimeOnly as t,isDateOnly as o,isTimestampOffset as a,isDateTime as l,isString as s}from"./sqlDateParsingUtils.js";import{SqlInterval as u}from"./SqlInterval.js";import{evaluateFunction as c}from"./StandardizedFunctions.js";function d(u,d,sn,un){if("||"===u)return c("concat",[d,sn],un);if(null===d||null===sn)return null;if(e(d)){if(e(sn))return f(d,sn,u);if(i(sn))return M(d,sn,u);if(t(sn))return U();if(o(sn))return q();if(a(sn))return N();if(l(sn))return z();if(s(sn))return C(d,sn,u);throw new n(r.InvalidOperator)}if(o(d)){if(e(sn))return x(d,sn,u);if(i(sn))return T(d,sn,u);if(t(sn))return E();if(o(sn))return B(d,sn,u);if(a(sn))return A(d,sn,u);if(l(sn))return k(d,sn,u);if(s(sn))return _();throw new n(r.InvalidOperator)}if(t(d)){if(e(sn))return L(d,sn,u);if(i(sn))return p(d,sn,u);if(t(sn))return W();if(o(sn))return R();if(a(sn))return V();if(l(sn))return Q();if(s(sn))return nn();throw new n(r.InvalidOperator)}if(i(d)){if(e(sn))return m(d,sn,u);if(i(sn))return O(d,sn,u);if(t(sn))return v(d,sn,u);if(o(sn))return I(d,sn,u);if(a(sn))return h(d,sn,u);if(l(sn))return w(d,sn,u);if(s(sn))return P();throw new n(r.InvalidOperator)}if(l(d)){if(e(sn))return y(d,sn,u);if(i(sn))return D(d,sn,u);if(t(sn))return $();if(o(sn))return Y(d,sn,u);if(a(sn))return Z(d,sn,u);if(l(sn))return X(d,sn,u);if(s(sn))return rn();throw new n(r.InvalidOperator)}if(a(d)){if(e(sn))return j(d,sn,u);if(i(sn))return F(d,sn,u);if(t(sn))return G();if(o(sn))return H(d,sn,u);if(a(sn))return K(d,sn,u);if(l(sn))return J(d,sn,u);if(s(sn))return en();throw new n(r.InvalidOperator)}if(s(d)){if(e(sn))return S(d,sn,u);if(i(sn))return b();if(t(sn))return tn();if(o(sn))return on();if(a(sn))return ln();if(l(sn))return an();if(s(sn))return g(d,sn,u);throw new n(r.InvalidOperator)}throw new n(r.InvalidOperator)}function f(e,i,t){switch(t){case"+":return e+i;case"-":return e-i;case"*":return e*i;case"/":return e/i}throw new n(r.InvalidOperator)}function w(e,i,t){switch(t){case"+":return i.plus({milliseconds:e.valueInMilliseconds()});case"-":return e.valueInMilliseconds()-i.toMillis()}throw new n(r.InvalidOperator)}function v(e,i,t){if("+"===t)return i.plus("milliseconds",e.valueInMilliseconds());throw new n(r.InvalidOperator)}function I(e,i,t){if("+"===t)return i.plus("milliseconds",e.valueInMilliseconds());throw new n(r.InvalidOperator)}function p(e,i,t){switch(t){case"+":return e.plus("milliseconds",i.valueInMilliseconds());case"-":return e.plus("milliseconds",-1*i.valueInMilliseconds())}throw new n(r.InvalidOperator)}function h(e,i,t){if("+"===t)return i.addMilliseconds(e.valueInMilliseconds());throw new n(r.InvalidOperator)}function O(e,i,t){switch(t){case"+":return u.createFromMilliseconds(e.valueInMilliseconds()+i.valueInMilliseconds());case"-":return u.createFromMilliseconds(e.valueInMilliseconds()-i.valueInMilliseconds());case"*":return u.createFromMilliseconds(e.valueInMilliseconds()*i.valueInMilliseconds());case"/":return u.createFromMilliseconds(e.valueInMilliseconds()/i.valueInMilliseconds())}throw new n(r.InvalidOperator)}function m(e,i,t){switch(t){case"+":return u.createFromMilliseconds(e.valueInMilliseconds()+i);case"-":return u.createFromMilliseconds(e.valueInMilliseconds()-i);case"*":return u.createFromMilliseconds(e.valueInMilliseconds()*i);case"/":return u.createFromMilliseconds(e.valueInMilliseconds()/i)}throw new n(r.InvalidOperator)}function M(e,i,t){switch(t){case"+":return u.createFromMilliseconds(e+i.valueInMilliseconds());case"-":return u.createFromMilliseconds(e-i.valueInMilliseconds());case"*":return u.createFromMilliseconds(e*i.valueInMilliseconds());case"/":return u.createFromMilliseconds(e/i.valueInMilliseconds())}throw new n(r.InvalidOperator)}function T(e,i,t){switch(t){case"+":return e.plus("milliseconds",i.valueInMilliseconds());case"-":return e.plus("milliseconds",-1*i.valueInMilliseconds())}throw new n(r.InvalidOperator)}function D(e,i,t){switch(t){case"+":return e.plus({milliseconds:i.valueInMilliseconds()});case"-":return e.minus({milliseconds:i.valueInMilliseconds()})}throw new n(r.InvalidOperator)}function F(e,i,t){switch(t){case"+":return e.addMilliseconds(i.valueInMilliseconds());case"-":return e.addMilliseconds(-1*i.valueInMilliseconds())}throw new n(r.InvalidOperator)}function y(e,i,t){const o=1e3*i*24*60*60;switch(t){case"+":return e.plus({milliseconds:o});case"-":return e.minus({milliseconds:o})}throw new n(r.InvalidOperator)}function x(e,i,t){const o=1e3*i*24*60*60;switch(t){case"+":return e.plus("milliseconds",o);case"-":return e.plus("milliseconds",-1*o)}throw new n(r.InvalidOperator)}function L(e,i,t){const o=1e3*i*24*60*60;switch(t){case"+":return e.plus("milliseconds",o);case"-":return e.plus("milliseconds",-1*o)}throw new n(r.InvalidOperator)}function z(e,i,t){throw new n(r.InvalidOperator)}function j(e,i,t){const o=1e3*i*24*60*60;switch(t){case"+":return e.addMilliseconds(o);case"-":return e.addMilliseconds(-1*o)}throw new n(r.InvalidOperator)}function N(e,i,t){throw new n(r.InvalidOperator)}function U(e,i,t){throw new n(r.InvalidOperator)}function q(e,i,t){throw new n(r.InvalidOperator)}function C(e,i,t){const o=parseFloat(i);if(isNaN(o))throw new n(r.InvalidOperator);return f(e,o,t)}function S(e,i,t){const o=parseFloat(e);if(isNaN(o))throw new n(r.InvalidOperator);return f(o,i,t)}function g(e,i,t){if("+"===t)return e+i;throw new n(r.InvalidOperator)}function P(e,i,t){throw new n(r.InvalidOperator)}function b(e,i,t){throw new n(r.InvalidOperator)}function k(e,i,t){if("-"===t)return e.toDateTimeLuxon(i.zone).diff(i).as("days");throw new n(r.InvalidOperator)}function A(e,i,t){if("-"===t)return e.toDateTimeLuxon(i.toDateTime().zone).diff(i.toDateTime()).as("days");throw new n(r.InvalidOperator)}function B(e,i,t){if("-"===t)return e.toDateTimeLuxon("UTC").diff(i.toDateTimeLuxon("UTC")).as("days");throw new n(r.InvalidOperator)}function E(e,i,t){throw new n(r.InvalidOperator)}function G(e,i,t){throw new n(r.InvalidOperator)}function H(e,i,t){if("-"===t)return e.toDateTime().diff(i.toDateTimeLuxon(e.toDateTime().zone)).as("days");throw new n(r.InvalidOperator)}function J(e,i,t){if("-"===t)return e.toDateTime().diff(i).as("days");throw new n(r.InvalidOperator)}function K(e,i,t){if("-"===t)return e.toDateTime().diff(i.toDateTime()).as("days");throw new n(r.InvalidOperator)}function Q(e,i,t){throw new n(r.InvalidOperator)}function R(e,i,t){throw new n(r.InvalidOperator)}function V(e,i,t){throw new n(r.InvalidOperator)}function W(e,i,t){throw new n(r.InvalidOperator)}function X(e,i,t){if("-"===t)return e.diff(i).as("days");throw new n(r.InvalidOperator)}function Y(e,i,t){if("-"===t)return e.diff(i.toDateTimeLuxon(e.zone)).as("days");throw new n(r.InvalidOperator)}function Z(e,i,t){if("-"===t)return e.diff(i.toDateTime()).as("days");throw new n(r.InvalidOperator)}function $(e,i,t){throw new n(r.InvalidOperator)}function _(e,i,t){throw new n(r.InvalidOperator)}function nn(e,i,t){throw new n(r.InvalidOperator)}function rn(e,i,t){throw new n(r.InvalidOperator)}function en(e,i,t){throw new n(r.InvalidOperator)}function tn(e,i,t){throw new n(r.InvalidOperator)}function on(e,i,t){throw new n(r.InvalidOperator)}function an(e,i,t){throw new n(r.InvalidOperator)}function ln(e,i,t){throw new n(r.InvalidOperator)}export{B as calculateDateOnlyAndDateOnly,k as calculateDateOnlyAndDateTime,x as calculateDateOnlyAndNumber,T as calculateDateOnlyAndSqlInterval,_ as calculateDateOnlyAndString,E as calculateDateOnlyAndTimeOnly,A as calculateDateOnlyAndTimestamp,Y as calculateDateTimeAndDateOnly,X as calculateDateTimeAndDateTime,y as calculateDateTimeAndNumber,D as calculateDateTimeAndSqlInterval,rn as calculateDateTimeAndString,$ as calculateDateTimeAndTimeOnly,Z as calculateDateTimeAndTimestamp,q as calculateNumberAndDateOnly,z as calculateNumberAndDateTime,f as calculateNumberAndNumber,M as calculateNumberAndSqlInterval,C as calculateNumberAndString,U as calculateNumberAndTimeOnly,N as calculateNumberAndTimestamp,I as calculateSqlIntervalAndDateOnly,w as calculateSqlIntervalAndDateTime,m as calculateSqlIntervalAndNumber,O as calculateSqlIntervalAndSqlInterval,P as calculateSqlIntervalAndString,v as calculateSqlIntervalAndTimeOnly,h as calculateSqlIntervalAndTimestamp,on as calculateStringAndDateOnly,an as calculateStringAndDateTime,S as calculateStringAndNumber,b as calculateStringAndSqlInterval,g as calculateStringAndString,tn as calculateStringAndTimeOnly,ln as calculateStringAndTimestamp,R as calculateTimeOnlyAndDateOnly,Q as calculateTimeOnlyAndDateTime,L as calculateTimeOnlyAndNumber,p as calculateTimeOnlyAndSqlInterval,nn as calculateTimeOnlyAndString,W as calculateTimeOnlyAndTimeOnly,V as calculateTimeOnlyAndTimestamp,H as calculateTimestampAndDateOnly,J as calculateTimestampAndDateTime,j as calculateTimestampAndNumber,F as calculateTimestampAndSqlInterval,en as calculateTimestampAndString,G as calculateTimestampAndTimeOnly,K as calculateTimestampAndTimestamp,d as sqlCalculateFunction};
5
+ import{SqlError as n,SqlErrorCodes as r}from"./errorSupport.js";import{isNumber as e,isSqlInterval as i,isTimeOnly as t,isDateOnly as o,isTimestampOffset as a,isDateTime as l,isString as s}from"./sqlDateParsingUtils.js";import{SqlInterval as u}from"./SqlInterval.js";import{evaluateFunction as c}from"./StandardizedFunctions.js";function d(u,d,sn,un){if("||"===u)return c("concat",[d,sn],un);if(null===d||null===sn)return null;if(e(d)){if(e(sn))return f(d,sn,u);if(i(sn))return M(d,sn,u);if(t(sn))return S();if(o(sn))return U();if(a(sn))return N();if(l(sn))return z();if(s(sn))return q(d,sn,u);throw new n(r.InvalidOperator)}if(o(d)){if(e(sn))return x(d,sn,u);if(i(sn))return T(d,sn,u);if(t(sn))return E();if(o(sn))return B(d,sn,u);if(a(sn))return A(d,sn,u);if(l(sn))return k(d,sn,u);if(s(sn))return _();throw new n(r.InvalidOperator)}if(t(d)){if(e(sn))return L(d,sn,u);if(i(sn))return p(d,sn,u);if(t(sn))return W();if(o(sn))return R();if(a(sn))return V();if(l(sn))return Q();if(s(sn))return nn();throw new n(r.InvalidOperator)}if(i(d)){if(e(sn))return m(d,sn,u);if(i(sn))return O(d,sn,u);if(t(sn))return v(d,sn,u);if(o(sn))return I(d,sn,u);if(a(sn))return h(d,sn,u);if(l(sn))return w(d,sn,u);if(s(sn))return P();throw new n(r.InvalidOperator)}if(l(d)){if(e(sn))return y(d,sn,u);if(i(sn))return D(d,sn,u);if(t(sn))return $();if(o(sn))return Y(d,sn,u);if(a(sn))return Z(d,sn,u);if(l(sn))return X(d,sn,u);if(s(sn))return rn();throw new n(r.InvalidOperator)}if(a(d)){if(e(sn))return j(d,sn,u);if(i(sn))return F(d,sn,u);if(t(sn))return G();if(o(sn))return H(d,sn,u);if(a(sn))return K(d,sn,u);if(l(sn))return J(d,sn,u);if(s(sn))return en();throw new n(r.InvalidOperator)}if(s(d)){if(e(sn))return C(d,sn,u);if(i(sn))return b();if(t(sn))return tn();if(o(sn))return on();if(a(sn))return ln();if(l(sn))return an();if(s(sn))return g(d,sn,u);throw new n(r.InvalidOperator)}throw new n(r.InvalidOperator)}function f(e,i,t){switch(t){case"+":return e+i;case"-":return e-i;case"*":return e*i;case"/":return e/i}throw new n(r.InvalidOperator)}function w(e,i,t){switch(t){case"+":return i.plus({milliseconds:e.valueInMilliseconds()});case"-":return e.valueInMilliseconds()-i.toMillis()}throw new n(r.InvalidOperator)}function v(e,i,t){if("+"===t)return i.plus("milliseconds",e.valueInMilliseconds());throw new n(r.InvalidOperator)}function I(e,i,t){if("+"===t)return i.plus("milliseconds",e.valueInMilliseconds());throw new n(r.InvalidOperator)}function p(e,i,t){switch(t){case"+":return e.plus("milliseconds",i.valueInMilliseconds());case"-":return e.plus("milliseconds",-1*i.valueInMilliseconds())}throw new n(r.InvalidOperator)}function h(e,i,t){if("+"===t)return i.addMilliseconds(e.valueInMilliseconds());throw new n(r.InvalidOperator)}function O(e,i,t){switch(t){case"+":return u.createFromMilliseconds(e.valueInMilliseconds()+i.valueInMilliseconds());case"-":return u.createFromMilliseconds(e.valueInMilliseconds()-i.valueInMilliseconds());case"*":return u.createFromMilliseconds(e.valueInMilliseconds()*i.valueInMilliseconds());case"/":return u.createFromMilliseconds(e.valueInMilliseconds()/i.valueInMilliseconds())}throw new n(r.InvalidOperator)}function m(e,i,t){switch(t){case"+":return u.createFromMilliseconds(e.valueInMilliseconds()+i);case"-":return u.createFromMilliseconds(e.valueInMilliseconds()-i);case"*":return u.createFromMilliseconds(e.valueInMilliseconds()*i);case"/":return u.createFromMilliseconds(e.valueInMilliseconds()/i)}throw new n(r.InvalidOperator)}function M(e,i,t){switch(t){case"+":return u.createFromMilliseconds(e+i.valueInMilliseconds());case"-":return u.createFromMilliseconds(e-i.valueInMilliseconds());case"*":return u.createFromMilliseconds(e*i.valueInMilliseconds());case"/":return u.createFromMilliseconds(e/i.valueInMilliseconds())}throw new n(r.InvalidOperator)}function T(e,i,t){switch(t){case"+":return e.plus("milliseconds",i.valueInMilliseconds());case"-":return e.plus("milliseconds",-1*i.valueInMilliseconds())}throw new n(r.InvalidOperator)}function D(e,i,t){switch(t){case"+":return e.plus({milliseconds:i.valueInMilliseconds()});case"-":return e.minus({milliseconds:i.valueInMilliseconds()})}throw new n(r.InvalidOperator)}function F(e,i,t){switch(t){case"+":return e.addMilliseconds(i.valueInMilliseconds());case"-":return e.addMilliseconds(-1*i.valueInMilliseconds())}throw new n(r.InvalidOperator)}function y(e,i,t){const o=1e3*i*24*60*60;switch(t){case"+":return e.plus({milliseconds:o});case"-":return e.minus({milliseconds:o})}throw new n(r.InvalidOperator)}function x(e,i,t){const o=1e3*i*24*60*60;switch(t){case"+":return e.plus("milliseconds",o);case"-":return e.plus("milliseconds",-1*o)}throw new n(r.InvalidOperator)}function L(e,i,t){const o=1e3*i*24*60*60;switch(t){case"+":return e.plus("milliseconds",o);case"-":return e.plus("milliseconds",-1*o)}throw new n(r.InvalidOperator)}function z(e,i,t){throw new n(r.InvalidOperator)}function j(e,i,t){const o=1e3*i*24*60*60;switch(t){case"+":return e.addMilliseconds(o);case"-":return e.addMilliseconds(-1*o)}throw new n(r.InvalidOperator)}function N(e,i,t){throw new n(r.InvalidOperator)}function S(e,i,t){throw new n(r.InvalidOperator)}function U(e,i,t){throw new n(r.InvalidOperator)}function q(e,i,t){const o=parseFloat(i);if(isNaN(o))throw new n(r.InvalidOperator);return f(e,o,t)}function C(e,i,t){const o=parseFloat(e);if(isNaN(o))throw new n(r.InvalidOperator);return f(o,i,t)}function g(e,i,t){if("+"===t)return e+i;throw new n(r.InvalidOperator)}function P(e,i,t){throw new n(r.InvalidOperator)}function b(e,i,t){throw new n(r.InvalidOperator)}function k(e,i,t){if("-"===t)return e.toDateTimeLuxon(i.zone).diff(i).as("days");throw new n(r.InvalidOperator)}function A(e,i,t){if("-"===t)return e.toDateTimeLuxon(i.toDateTime().zone).diff(i.toDateTime()).as("days");throw new n(r.InvalidOperator)}function B(e,i,t){if("-"===t)return e.toDateTimeLuxon("UTC").diff(i.toDateTimeLuxon("UTC")).as("days");throw new n(r.InvalidOperator)}function E(e,i,t){throw new n(r.InvalidOperator)}function G(e,i,t){throw new n(r.InvalidOperator)}function H(e,i,t){if("-"===t)return e.toDateTime().diff(i.toDateTimeLuxon(e.toDateTime().zone)).as("days");throw new n(r.InvalidOperator)}function J(e,i,t){if("-"===t)return e.toDateTime().diff(i).as("days");throw new n(r.InvalidOperator)}function K(e,i,t){if("-"===t)return e.toDateTime().diff(i.toDateTime()).as("days");throw new n(r.InvalidOperator)}function Q(e,i,t){throw new n(r.InvalidOperator)}function R(e,i,t){throw new n(r.InvalidOperator)}function V(e,i,t){throw new n(r.InvalidOperator)}function W(e,i,t){throw new n(r.InvalidOperator)}function X(e,i,t){if("-"===t)return e.diff(i).as("days");throw new n(r.InvalidOperator)}function Y(e,i,t){if("-"===t)return e.diff(i.toDateTimeLuxon(e.zone)).as("days");throw new n(r.InvalidOperator)}function Z(e,i,t){if("-"===t)return e.diff(i.toDateTime()).as("days");throw new n(r.InvalidOperator)}function $(e,i,t){throw new n(r.InvalidOperator)}function _(e,i,t){throw new n(r.InvalidOperator)}function nn(e,i,t){throw new n(r.InvalidOperator)}function rn(e,i,t){throw new n(r.InvalidOperator)}function en(e,i,t){throw new n(r.InvalidOperator)}function tn(e,i,t){throw new n(r.InvalidOperator)}function on(e,i,t){throw new n(r.InvalidOperator)}function an(e,i,t){throw new n(r.InvalidOperator)}function ln(e,i,t){throw new n(r.InvalidOperator)}export{B as calculateDateOnlyAndDateOnly,k as calculateDateOnlyAndDateTime,x as calculateDateOnlyAndNumber,T as calculateDateOnlyAndSqlInterval,_ as calculateDateOnlyAndString,E as calculateDateOnlyAndTimeOnly,A as calculateDateOnlyAndTimestamp,Y as calculateDateTimeAndDateOnly,X as calculateDateTimeAndDateTime,y as calculateDateTimeAndNumber,D as calculateDateTimeAndSqlInterval,rn as calculateDateTimeAndString,$ as calculateDateTimeAndTimeOnly,Z as calculateDateTimeAndTimestamp,U as calculateNumberAndDateOnly,z as calculateNumberAndDateTime,f as calculateNumberAndNumber,M as calculateNumberAndSqlInterval,q as calculateNumberAndString,S as calculateNumberAndTimeOnly,N as calculateNumberAndTimestamp,I as calculateSqlIntervalAndDateOnly,w as calculateSqlIntervalAndDateTime,m as calculateSqlIntervalAndNumber,O as calculateSqlIntervalAndSqlInterval,P as calculateSqlIntervalAndString,v as calculateSqlIntervalAndTimeOnly,h as calculateSqlIntervalAndTimestamp,on as calculateStringAndDateOnly,an as calculateStringAndDateTime,C as calculateStringAndNumber,b as calculateStringAndSqlInterval,g as calculateStringAndString,tn as calculateStringAndTimeOnly,ln as calculateStringAndTimestamp,R as calculateTimeOnlyAndDateOnly,Q as calculateTimeOnlyAndDateTime,L as calculateTimeOnlyAndNumber,p as calculateTimeOnlyAndSqlInterval,nn as calculateTimeOnlyAndString,W as calculateTimeOnlyAndTimeOnly,V as calculateTimeOnlyAndTimestamp,H as calculateTimestampAndDateOnly,J as calculateTimestampAndDateTime,j as calculateTimestampAndNumber,F as calculateTimestampAndSqlInterval,en as calculateTimestampAndString,G as calculateTimestampAndTimeOnly,K as calculateTimestampAndTimestamp,d as sqlCalculateFunction};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
4
  */
5
- import{SqlError as r,SqlErrorCodes as e}from"../../arcade/featureset/support/errorsupport.js";import{isDateTime as t,isTimestampOffset as n,isDateOnly as i,isTimeOnly as o,isNumber as a,isString as s}from"./sqlDateParsingUtils.js";import{SqlTimeStampOffset as u}from"./SqlTimestampOffset.js";import{isUnknownTimeZone as f}from"./UnknownTimeZone.js";import{DateTime as c}from"luxon";const l=321408e5,w=26784e5,p=864e5,d=36e5,m=6e4;function h(r){return!!t(r)||!!n(r)}function O(r){return!!t(r)||(!!i(r)||(!!n(r)||!!o(r)))}function v(o){if(t(o))return o.toMillis();if(i(o))return o.toNumber();if(n(o))return o.toMilliseconds();throw new r(e.InvalidDataType)}function I(l,w,p,d){if(null==l||null==w)return null;if(a(l)){if(a(w))return D(l,w,p);if(s(w))return T(l,w,p);if(O(w))throw new r(e.InvalidOperator);if(i(w))throw new r(e.InvalidOperator)}else if(s(l)){if(a(w))return M(l,w,p);if(s(w))return z(l,w,p);if(t(w))throw new r(e.InvalidOperator);if(i(w))throw new r(e.InvalidOperator);if(o(w))throw new r(e.InvalidOperator);if(n(w))throw new r(e.InvalidOperator)}else if(t(l)){if(h(w)){if(l instanceof c&&f(l.zone)){if(w instanceof c&&!1===f(w.zone))return j(l,w,p);if(w instanceof u)return j(l,w,p)}else if(w instanceof c&&f(w.zone)){if(l instanceof c&&!1===f(l.zone))return j(l,w,p);if(l instanceof u)return j(l,w,p)}return D(v(l),v(w),p)}if(s(w))throw new r(e.InvalidOperator);if(i(w))return N(l,w,p);if(o(w))throw new r(e.InvalidOperator);if(a(w))throw new r(e.InvalidOperator)}else if(i(l)){if(n(w))return b(l,w,p);if(t(w))return x(l,w,p);if(s(w))throw new r(e.InvalidOperator);if(i(w))return D(l.toNumber(),w.toNumber(),p);if(o(w))throw new r(e.InvalidOperator);if(a(w))throw new r(e.InvalidOperator)}else if(o(l)){if(o(w))return D(l.toNumber(),w.toNumber(),p);if(s(w))throw new r(e.InvalidOperator);if(a(w))throw new r(e.InvalidOperator);if(i(w))throw new r(e.InvalidOperator);if(h(w))throw new r(e.InvalidOperator)}else if(n(l)){if(h(w))return w instanceof c&&f(w.zone)?j(l,w,p):D(v(l),v(w),p);if(s(w))throw new r(e.InvalidOperator);if(i(w))return y(l,w,p);if(o(w))throw new r(e.InvalidOperator);if(a(w))throw new r(e.InvalidOperator)}switch(p){case"<>":return l!==w;case"=":return l===w;case">":return l>w;case"<":return l<w;case">=":return l>=w;case"<=":return l<=w}}function D(r,e,t){switch(t){case"<>":return r!==e;case"=":return r===e;case">":return r>e;case"<":return r<e;case">=":return r>=e;case"<=":return r<=e}}function T(r,e,t){const n=parseFloat(e);if(!isNaN(n))return D(r,n,t);const i=r.toString();switch(t){case"<>":return i!==e;case"=":return i===e;case">":return i>e;case"<":return i<e;case">=":return i>=e;case"<=":return i<=e}}function M(r,e,t){const n=parseFloat(r);if(!isNaN(n))return D(n,e,t);const i=e.toString();switch(t){case"<>":return r!==i;case"=":return r===i;case">":return r>i;case"<":return r<i;case">=":return r>=i;case"<=":return r<=i}}function z(r,e,t){switch(t){case"<>":return r!==e;case"=":return r===e;case">":return r>e;case"<":return r<e;case">=":return r>=e;case"<=":return r<=e}}function N(r,e,t){const n=e.toDateTimeLuxon(r.zone);return D((r=r.startOf("day")).toMillis(),n.toMillis(),t)}function y(r,e,t){const n=e.toDateTimeLuxon(r.toDateTime().zone);return D((r=r.startOfDay()).toMilliseconds(),n.toMillis(),t)}function x(r,e,t){const n=r.toDateTimeLuxon(e.zone);return e=e.startOf("day"),D(n.toMillis(),e.toMillis(),t)}function b(r,e,t){const n=r.toDateTimeLuxon(e.toDateTime().zone);return e=e.startOfDay(),D(n.toMillis(),e.toMilliseconds(),t)}function j(r,e,t){r instanceof u&&(r=r.toDateTime()),e instanceof u&&(e=e.toDateTime());const n=L(r),i=L(e);switch(t){case"<>":return n!==i;case"=":return n===i;case">":return n>i;case"<":return n<i;case">=":return n>=i;case"<=":return n<=i}}function L(r){return r.year*l+r.month*w+r.day*p+r.hour*d+r.minute*m+1e3*r.second+r.millisecond}export{v as dateValueInMilliseconds,O as isDateOrTimeValue,h as isDateTimeComparableValue,I as sqlCompare};
5
+ import{SqlError as r,SqlErrorCodes as e}from"./errorSupport.js";import{isDateTime as t,isTimestampOffset as n,isDateOnly as i,isTimeOnly as o,isNumber as a,isString as s}from"./sqlDateParsingUtils.js";import{SqlTimeStampOffset as u}from"./SqlTimestampOffset.js";import{isUnknownTimeZone as f}from"./UnknownTimeZone.js";import{DateTime as c}from"luxon";const l=321408e5,w=26784e5,p=864e5,m=36e5,d=6e4;function h(r){return!!t(r)||!!n(r)}function O(r){return!!t(r)||(!!i(r)||(!!n(r)||!!o(r)))}function v(o){if(t(o))return o.toMillis();if(i(o))return o.toNumber();if(n(o))return o.toMilliseconds();throw new r(e.InvalidDataType)}function I(l,w,p,m){if(null==l||null==w)return null;if(a(l)){if(a(w))return D(l,w,p);if(s(w))return T(l,w,p);if(O(w))throw new r(e.InvalidOperator);if(i(w))throw new r(e.InvalidOperator)}else if(s(l)){if(a(w))return M(l,w,p);if(s(w))return z(l,w,p);if(t(w))throw new r(e.InvalidOperator);if(i(w))throw new r(e.InvalidOperator);if(o(w))throw new r(e.InvalidOperator);if(n(w))throw new r(e.InvalidOperator)}else if(t(l)){if(h(w)){if(l instanceof c&&f(l.zone)){if(w instanceof c&&!1===f(w.zone))return j(l,w,p);if(w instanceof u)return j(l,w,p)}else if(w instanceof c&&f(w.zone)){if(l instanceof c&&!1===f(l.zone))return j(l,w,p);if(l instanceof u)return j(l,w,p)}return D(v(l),v(w),p)}if(s(w))throw new r(e.InvalidOperator);if(i(w))return N(l,w,p);if(o(w))throw new r(e.InvalidOperator);if(a(w))throw new r(e.InvalidOperator)}else if(i(l)){if(n(w))return b(l,w,p);if(t(w))return x(l,w,p);if(s(w))throw new r(e.InvalidOperator);if(i(w))return D(l.toNumber(),w.toNumber(),p);if(o(w))throw new r(e.InvalidOperator);if(a(w))throw new r(e.InvalidOperator)}else if(o(l)){if(o(w))return D(l.toNumber(),w.toNumber(),p);if(s(w))throw new r(e.InvalidOperator);if(a(w))throw new r(e.InvalidOperator);if(i(w))throw new r(e.InvalidOperator);if(h(w))throw new r(e.InvalidOperator)}else if(n(l)){if(h(w))return w instanceof c&&f(w.zone)?j(l,w,p):D(v(l),v(w),p);if(s(w))throw new r(e.InvalidOperator);if(i(w))return y(l,w,p);if(o(w))throw new r(e.InvalidOperator);if(a(w))throw new r(e.InvalidOperator)}switch(p){case"<>":return l!==w;case"=":return l===w;case">":return l>w;case"<":return l<w;case">=":return l>=w;case"<=":return l<=w}}function D(r,e,t){switch(t){case"<>":return r!==e;case"=":return r===e;case">":return r>e;case"<":return r<e;case">=":return r>=e;case"<=":return r<=e}}function T(r,e,t){const n=parseFloat(e);if(!isNaN(n))return D(r,n,t);const i=r.toString();switch(t){case"<>":return i!==e;case"=":return i===e;case">":return i>e;case"<":return i<e;case">=":return i>=e;case"<=":return i<=e}}function M(r,e,t){const n=parseFloat(r);if(!isNaN(n))return D(n,e,t);const i=e.toString();switch(t){case"<>":return r!==i;case"=":return r===i;case">":return r>i;case"<":return r<i;case">=":return r>=i;case"<=":return r<=i}}function z(r,e,t){switch(t){case"<>":return r!==e;case"=":return r===e;case">":return r>e;case"<":return r<e;case">=":return r>=e;case"<=":return r<=e}}function N(r,e,t){const n=e.toDateTimeLuxon(r.zone);return D((r=r.startOf("day")).toMillis(),n.toMillis(),t)}function y(r,e,t){const n=e.toDateTimeLuxon(r.toDateTime().zone);return D((r=r.startOfDay()).toMilliseconds(),n.toMillis(),t)}function x(r,e,t){const n=r.toDateTimeLuxon(e.zone);return e=e.startOf("day"),D(n.toMillis(),e.toMillis(),t)}function b(r,e,t){const n=r.toDateTimeLuxon(e.toDateTime().zone);return e=e.startOfDay(),D(n.toMillis(),e.toMilliseconds(),t)}function j(r,e,t){r instanceof u&&(r=r.toDateTime()),e instanceof u&&(e=e.toDateTime());const n=L(r),i=L(e);switch(t){case"<>":return n!==i;case"=":return n===i;case">":return n>i;case"<":return n<i;case">=":return n>=i;case"<=":return n<=i}}function L(r){return r.year*l+r.month*w+r.day*p+r.hour*m+r.minute*d+1e3*r.second+r.millisecond}export{v as dateValueInMilliseconds,O as isDateOrTimeValue,h as isDateTimeComparableValue,I as sqlCompare};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
4
  */
5
- import{SqlError as n,SqlErrorCodes as e}from"../../arcade/featureset/support/errorsupport.js";import{DateOnly as t}from"./DateOnly.js";import{SqlInterval as r}from"./SqlInterval.js";import{SqlTimeStampOffset as a}from"./SqlTimestampOffset.js";import{TimeOnly as o}from"./TimeOnly.js";import{UnknownTimeZone as s,substituteUnknownTimezone as i}from"./UnknownTimeZone.js";import{Zone as f,DateTime as p}from"luxon";const l=/^(\d{1,2}):(\d{1,2}):(\d{1,2})$/,d=/^(\d{1,2}):(\d{1,2})$/,c=/^(\d{1,2}):(\d{1,2}):(\d{1,2}).([0-9]+)$/,u=/^(\d{4})-(\d{1,2})-(\d{1,2})$/,m=/^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?$/,I=/^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?[ ]{0,1}(\+|-)(\d{1,2}):(\d{1,2})$/,w=/^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})?[ ]{0,1}(\+|-)(\d{1,2}):(\d{1,2})$/,h=/^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})$/;function T(n,e){if(e instanceof f)return e===s.instance?p.fromMillis(n.getTime(),{zone:s.instance}):p.fromJSDate(n,{zone:e});switch(e){case"system":case"local":case null:return p.fromJSDate(n);default:return"unknown"===e?.toLowerCase()?p.fromMillis(n.getTime(),{zone:s.instance}):p.fromJSDate(n,{zone:e})}}function v(n){return"number"==typeof n}function y(n){return"string"==typeof n||n instanceof String}function S(n){return n instanceof r}function x(n){return n instanceof Date}function j(n){return n instanceof p}function $(n){return n instanceof t}function z(n){return n instanceof o}function D(n){return n instanceof a}function O(t){let r=l.exec(t);if(null!==r){const[,t,a,s]=r,i=o.fromParts(parseInt(t,10),parseInt(a,10),parseInt(s,10),0);if(null!==i)return i;throw new n(e.InvalidTime)}if(r=d.exec(t),null!==r){const[,t,a]=r,s=o.fromParts(parseInt(t,10),parseInt(a,10),0,0);if(null!==s)return s;throw new n(e.InvalidTime)}if(r=c.exec(t),null!==r){const[,t,a,s,i]=r,f=o.fromParts(parseInt(t,10),parseInt(a,10),parseInt(s,10),parseInt(i,10));if(null!==f)return f;throw new n(e.InvalidTime)}throw new n(e.InvalidTime)}function P(t,r,o=!1){let s=m.exec(t);if(null!==s){const[,t,a,o,f,l,d,c]=s,u=p.fromObject({year:parseInt(t,10),month:parseInt(a,10),day:parseInt(o,10),hour:parseInt(f,10),minute:parseInt(l,10),second:parseInt(d,10),millisecond:c?parseInt(c.replace(".",""),10):0},{zone:i(r)});if(!1===u.isValid)throw new n(e.InvalidTimeStamp);return u}if(s=I.exec(t),null!==s){const[,t,r,o,i,f,p,l,d,c,u]=s,m=a.fromParts(parseInt(t,10),parseInt(r,10),parseInt(o,10),parseInt(i,10),parseInt(f,10),parseInt(p,10),l?parseInt(l.replace(".",""),10):0,"-"===d,parseInt(c,10),parseInt(u,10));if(!1===m.isValid)throw new n(e.InvalidTimeStamp);return m}if(s=w.exec(t),null!==s){const[,t,r,o,i,f,p,l,d]=s,c=a.fromParts(parseInt(t,10),parseInt(r,10),parseInt(o,10),parseInt(i,10),parseInt(f,10),0,0,"-"===p,parseInt(l,10),parseInt(d,10));if(!1===c.isValid)throw new n(e.InvalidTimeStamp);return c}if(s=h.exec(t),null!==s){const[,t,a,o,f,l]=s,d=p.fromObject({year:parseInt(t,10),month:parseInt(a,10),day:parseInt(o,10),hour:parseInt(f,10),minute:parseInt(l,10),second:0},{zone:i(r)});if(!1===d.isValid)throw new n(e.InvalidTimeStamp);return d}if(s=u.exec(t),null!==s){const[,t,a,o]=s,f=p.fromObject({year:parseInt(t,10),month:parseInt(a,10),day:parseInt(o,10),hour:0,minute:0,second:0},{zone:i(r)});if(!1===f.isValid)throw new n(e.InvalidTimeStamp);return f}throw new n(e.InvalidTimeStamp)}function V(r,a){const o=u.exec(r);if(null===o)try{return P(r,a)}catch{throw new n(e.InvalidDate)}const[,s,i,f]=o,p=t.fromParts(parseInt(s,10),parseInt(i,10),parseInt(f,10));if(null===p)throw new n(e.InvalidDate);return p}export{T as convertToExecutingTimeZone,x as isDate,$ as isDateOnly,j as isDateTime,v as isNumber,S as isSqlInterval,y as isString,z as isTimeOnly,D as isTimestampOffset,V as parseDate,O as parseTime,P as parseTimestamp};
5
+ import{DateOnly as n}from"./DateOnly.js";import{SqlError as e,SqlErrorCodes as t}from"./errorSupport.js";import{SqlInterval as r}from"./SqlInterval.js";import{SqlTimeStampOffset as a}from"./SqlTimestampOffset.js";import{TimeOnly as o}from"./TimeOnly.js";import{UnknownTimeZone as i,substituteUnknownTimezone as s}from"./UnknownTimeZone.js";import{Zone as f,DateTime as l}from"luxon";const p=/^(\d{1,2}):(\d{1,2}):(\d{1,2})$/,d=/^(\d{1,2}):(\d{1,2})$/,c=/^(\d{1,2}):(\d{1,2}):(\d{1,2}).([0-9]+)$/,m=/^(\d{4})-(\d{1,2})-(\d{1,2})$/,u=/^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?$/,I=/^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?[ ]{0,1}(\+|-)(\d{1,2}):(\d{1,2})$/,w=/^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})?[ ]{0,1}(\+|-)(\d{1,2}):(\d{1,2})$/,h=/^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})$/;function T(n,e){if(e instanceof f)return e===i.instance?l.fromMillis(n.getTime(),{zone:i.instance}):l.fromJSDate(n,{zone:e});switch(e){case"system":case"local":case null:return l.fromJSDate(n);default:return"unknown"===e?.toLowerCase()?l.fromMillis(n.getTime(),{zone:i.instance}):l.fromJSDate(n,{zone:e})}}function v(n){return"number"==typeof n}function S(n){return"string"==typeof n||n instanceof String}function y(n){return n instanceof r}function x(n){return n instanceof Date}function j(n){return n instanceof l}function $(e){return e instanceof n}function z(n){return n instanceof o}function D(n){return n instanceof a}function O(n){let r=p.exec(n);if(null!==r){const[,n,a,i]=r,s=o.fromParts(parseInt(n,10),parseInt(a,10),parseInt(i,10),0);if(null!==s)return s;throw new e(t.InvalidTime)}if(r=d.exec(n),null!==r){const[,n,a]=r,i=o.fromParts(parseInt(n,10),parseInt(a,10),0,0);if(null!==i)return i;throw new e(t.InvalidTime)}if(r=c.exec(n),null!==r){const[,n,a,i,s]=r,f=o.fromParts(parseInt(n,10),parseInt(a,10),parseInt(i,10),parseInt(s,10));if(null!==f)return f;throw new e(t.InvalidTime)}throw new e(t.InvalidTime)}function P(n,r,o=!1){let i=u.exec(n);if(null!==i){const[,n,a,o,f,p,d,c]=i,m=l.fromObject({year:parseInt(n,10),month:parseInt(a,10),day:parseInt(o,10),hour:parseInt(f,10),minute:parseInt(p,10),second:parseInt(d,10),millisecond:c?parseInt(c.replace(".",""),10):0},{zone:s(r)});if(!1===m.isValid)throw new e(t.InvalidTimeStamp);return m}if(i=I.exec(n),null!==i){const[,n,r,o,s,f,l,p,d,c,m]=i,u=a.fromParts(parseInt(n,10),parseInt(r,10),parseInt(o,10),parseInt(s,10),parseInt(f,10),parseInt(l,10),p?parseInt(p.replace(".",""),10):0,"-"===d,parseInt(c,10),parseInt(m,10));if(!1===u.isValid)throw new e(t.InvalidTimeStamp);return u}if(i=w.exec(n),null!==i){const[,n,r,o,s,f,l,p,d]=i,c=a.fromParts(parseInt(n,10),parseInt(r,10),parseInt(o,10),parseInt(s,10),parseInt(f,10),0,0,"-"===l,parseInt(p,10),parseInt(d,10));if(!1===c.isValid)throw new e(t.InvalidTimeStamp);return c}if(i=h.exec(n),null!==i){const[,n,a,o,f,p]=i,d=l.fromObject({year:parseInt(n,10),month:parseInt(a,10),day:parseInt(o,10),hour:parseInt(f,10),minute:parseInt(p,10),second:0},{zone:s(r)});if(!1===d.isValid)throw new e(t.InvalidTimeStamp);return d}if(i=m.exec(n),null!==i){const[,n,a,o]=i,f=l.fromObject({year:parseInt(n,10),month:parseInt(a,10),day:parseInt(o,10),hour:0,minute:0,second:0},{zone:s(r)});if(!1===f.isValid)throw new e(t.InvalidTimeStamp);return f}throw new e(t.InvalidTimeStamp)}function V(r,a){const o=m.exec(r);if(null===o)try{return P(r,a)}catch{throw new e(t.InvalidDate)}const[,i,s,f]=o,l=n.fromParts(parseInt(i,10),parseInt(s,10),parseInt(f,10));if(null===l)throw new e(t.InvalidDate);return l}export{T as convertToExecutingTimeZone,x as isDate,$ as isDateOnly,j as isDateTime,v as isNumber,y as isSqlInterval,S as isString,z as isTimeOnly,D as isTimestampOffset,V as parseDate,O as parseTime,P as parseTimestamp};
@@ -0,0 +1,5 @@
1
+ /*
2
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
+ */
5
+ import{fromGeometry as r}from"./support/converterAPI.js";function t(t){return r(t).calculateArea2D()}function e(){return!0}export{t as execute,e as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
4
  */
5
- import{r}from"../../chunks/Polyline.js";import{fromGeometry as e,fromSpatialReference as n}from"./support/converterAPI.js";const t=new r;function o(r,o){return t.execute(e(r),e(o),n(r.spatialReference),null)}function s(){return t.supportsCurves()}export{o as execute,s as supportsCurves};
5
+ import{q as e}from"../../chunks/Polyline.js";import{fromGeometry as r,fromSpatialReference as n}from"./support/converterAPI.js";const t=new e;function o(e,o){return t.execute(r(e),r(o),n(e.spatialReference),null)}function s(){return t.supportsCurves()}export{o as execute,s as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
4
  */
5
- import{aP as e,aQ as r}from"../../chunks/Polyline.js";import{fromGeometry as t,fromSpatialReference as n}from"./support/converterAPI.js";class s extends e{getOperatorType(){return 6}execute(e,t,n,s){return r(e,t,n,16,s)}}const o=new s;function u(e,r){return o.execute(t(e),t(r),n(e.spatialReference),null)}function p(){return o.supportsCurves()}export{u as execute,p as supportsCurves};
5
+ import{aQ as e,aR as r}from"../../chunks/Polyline.js";import{fromGeometry as t,fromSpatialReference as n}from"./support/converterAPI.js";class s extends e{getOperatorType(){return 6}execute(e,t,n,s){return r(e,t,n,16,s)}}const o=new s;function u(e,r){return o.execute(t(e),t(r),n(e.spatialReference),null)}function p(){return o.supportsCurves()}export{u as execute,p as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
4
  */
5
- import{v as e}from"../../chunks/Polyline.js";import{fromGeometry as r,fromSpatialReference as t}from"./support/converterAPI.js";const n=new e;function o(e,o){return n.execute(r(e),r(o),t(e.spatialReference))}function s(){return n.supportsCurves()}export{o as execute,s as supportsCurves};
5
+ import{u as e}from"../../chunks/Polyline.js";import{fromGeometry as r,fromSpatialReference as t}from"./support/converterAPI.js";const n=new e;function o(e,o){return n.execute(r(e),r(o),t(e.spatialReference))}function s(){return n.supportsCurves()}export{o as execute,s as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
4
  */
5
- import{j as e}from"../../chunks/Polyline.js";import{D as r}from"../../chunks/Distance2DCalculator-BzAEa8Xe.js";import{fromGeometry as t}from"./support/converterAPI.js";class u{getOperatorType(){return 10100}supportsCurves(){return!0}accelerateGeometry(e,r,t){return!1}canAccelerateGeometry(e){return!1}execute(e,r,t){return this.executeEx(e,r,t,null,null,Number.NaN)}executeEx(t,u,n,s,c,o){if(t.isEmpty()||u.isEmpty())return Number.NaN;e(t),e(u);const a=t,m=u;Number.isNaN(o)&&(o=Number.POSITIVE_INFINITY);const N=new r(o,n).calculate(a,m,s,c);return Number.isFinite(N)?N:Number.NaN}}const n=new u;function s(e,r){return n.execute(t(e),t(r),null)}function c(){return n.supportsCurves()}export{s as execute,c as supportsCurves};
5
+ import{j as e}from"../../chunks/Polyline.js";import{D as r}from"../../chunks/Distance2DCalculator-De7WFGFq.js";import{fromGeometry as t}from"./support/converterAPI.js";class u{getOperatorType(){return 10100}supportsCurves(){return!0}accelerateGeometry(e,r,t){return!1}canAccelerateGeometry(e){return!1}execute(e,r,t){return this.executeEx(e,r,t,null,null,Number.NaN)}executeEx(t,u,n,s,c,o){if(t.isEmpty()||u.isEmpty())return Number.NaN;e(t),e(u);const a=t,m=u;Number.isNaN(o)&&(o=Number.POSITIVE_INFINITY);const N=new r(o,n).calculate(a,m,s,c);return Number.isFinite(N)?N:Number.NaN}}const n=new u;function s(e,r){return n.execute(t(e),t(r),null)}function c(){return n.supportsCurves()}export{s as execute,c as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
4
  */
5
- import{aP as e,aQ as r}from"../../chunks/Polyline.js";import{fromGeometry as t,fromSpatialReference as n}from"./support/converterAPI.js";class s extends e{getOperatorType(){return 2}execute(e,t,n,s){return r(e,t,n,3,s)}}const o=new s;function u(e,r){return o.execute(t(e),t(r),n(e.spatialReference),null)}function p(){return o.supportsCurves()}export{u as execute,p as supportsCurves};
5
+ import{aQ as e,aR as r}from"../../chunks/Polyline.js";import{fromGeometry as t,fromSpatialReference as n}from"./support/converterAPI.js";class s extends e{getOperatorType(){return 2}execute(e,t,n,s){return r(e,t,n,3,s)}}const o=new s;function u(e,r){return o.execute(t(e),t(r),n(e.spatialReference),null)}function p(){return o.supportsCurves()}export{u as execute,p as supportsCurves};
@@ -0,0 +1,5 @@
1
+ /*
2
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
+ */
5
+ import{isLoaded as e,load as o,execute as r,executeMany as t,supportsCurves as n}from"./gx/operatorGeodeticDensify.js";import{getSpatialReference as s,toGeometry as u,fromSpatialReference as c,fromGeometry as i}from"./support/converterAPI.js";import{geodeticCurveType as p}from"./support/geodeticCurveType.js";function a(){return e()}function f(){return o()}function m(e,o,t="geodesic"){const n=s(e);return u(r(i(e),o,c(n),p[t]),n)}function d(e,o,r="geodesic"){const n=e.map(i),a=s(e);return t(n,o,c(a),p[r]).map((e=>u(e,a)))}function g(){return n()}export{m as execute,d as executeMany,a as isLoaded,f as load,g as supportsCurves};
@@ -0,0 +1,5 @@
1
+ /*
2
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
+ */
5
+ import{isSome as r}from"../../core/arrayUtils.js";import{executeMany as t,supportsCurves as o}from"./gx/operatorGraphicBuffer.js";import{fromGeometry as e,getSpatialReference as s,fromSpatialReference as u,toGeometry as n}from"./support/converterAPI.js";const p={round:0,miter:1,bevel:2},a={round:0,butt:1,square:2};function i(o,i,m,c,f,j=NaN,l=96,v=!1){const x=o.map(e),b=s(o);return t(x,u(b),i,p[m],a[c],f,j,l,v).map((r=>n(r,b))).filter(r)}function m(){return o()}export{i as executeMany,m as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
4
  */
5
- import{N as e,h as t,y as r,ac as s,G as n,aG as o,aH as l,W as u,aI as i,S as m}from"../../../chunks/Polyline.js";class a{getOperatorType(){return 10008}accelerateGeometry(e,t,r){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}execute(t,r,s,n){const o=(new e).executeMany(t,s,n);return new y(o,r,s,n)}}class y extends t{constructor(e,t,r,s){super(),this.m_resultPolygons=null,this.m_polygons=e,this.m_polylines=t,this.m_sr=r,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 r,t=new s;let m,a=o;for(;m=this.m_polylines.next();){if(m.getGeometryType()!==n.enumPolyline||m.isEmpty())continue;a===o?a=t.addGeometry(m):t.appendGeometry(a,m);const s=new r;m.queryEnvelope(s),e.mergeEnvelope2D(s)}if(0===t.getTotalPointCount())return;for(;m=this.m_polygons.next();){if(!l(m.getGeometryType())||m.isEmpty())continue;const s=new r;m.queryEnvelope(s),e.mergeEnvelope2D(s),t.addGeometry(m)}const y=u(this.m_sr,e,!0);this.m_resultPolygons=i(t,a,y,this.m_progressTracker)}}const p=new a;function c(e,t,r){const s=p.execute(new m(e),new m(t),r,null);return Array.from(s)}function h(){return p.supportsCurves()}export{c as execute,h as supportsCurves};
5
+ import{J as e,h as t,x as r,aa as s,G as n,aA as o,aB as l,V as u,aC as i,S as m}from"../../../chunks/Polyline.js";class a{getOperatorType(){return 10008}accelerateGeometry(e,t,r){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}execute(t,r,s,n){const o=(new e).executeMany(t,s,n);return new y(o,r,s,n)}}class y extends t{constructor(e,t,r,s){super(),this.m_resultPolygons=null,this.m_polygons=e,this.m_polylines=t,this.m_sr=r,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 r,t=new s;let m,a=o;for(;m=this.m_polylines.next();){if(m.getGeometryType()!==n.enumPolyline||m.isEmpty())continue;a===o?a=t.addGeometry(m):t.appendGeometry(a,m);const s=new r;m.queryEnvelope(s),e.mergeEnvelope2D(s)}if(0===t.getTotalPointCount())return;for(;m=this.m_polygons.next();){if(!l(m.getGeometryType())||m.isEmpty())continue;const s=new r;m.queryEnvelope(s),e.mergeEnvelope2D(s),t.addGeometry(m)}const y=u(this.m_sr,e,!0);this.m_resultPolygons=i(t,a,y,this.m_progressTracker)}}const p=new a;function c(e,t,r){const s=p.execute(new m(e),new m(t),r,null);return Array.from(s)}function h(){return p.supportsCurves()}export{c as execute,h as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
4
  */
5
- import{br as e,S as t,h as s,t as n,j as i,bs as r,G as m,bt as o,L as a,bu as h,bv as l,m as c,a as u,aH as f,k as _,bw as g,y as d,W as p,R as b,A as y,e as x,l as P,b as C,p as D,P as w,N as T,J as v,aK as I,E as S,a2 as M,ac as k,g as V,aG as E,a8 as R,a7 as A,am as B,_ as X,n as Y,o as G,a6 as F,bx as L}from"../../../chunks/Polyline.js";import{c as N}from"../../../chunks/GeometryCleaner-k94LXQsr.js";import{O as q}from"../../../chunks/OperatorGeneralize.js";class z{getOperatorType(){return 10104}accelerateGeometry(e,t,s){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}isSimple(t,s,n,i,r){return 5===e(t,s,n,i,r)}executeMany(e,t,s,n){return new j(e,t,s,n)}execute(e,s,n,i){const r=new t([e]);return this.executeMany(r,s,n,i).next()}}class j extends s{constructor(e,t,s,i){super(),e||n(""),this.m_progressTracker=i,this.m_bForceSimplify=s,this.m_index=-1,this.m_inputGeometryCursor=e,this.m_spatialReference=t}next(){const e=this.m_inputGeometryCursor.next();return e?(i(e),this.m_index=this.m_inputGeometryCursor.getGeometryID(),this.simplify(e)):null}getGeometryID(){return this.m_index}tock(){return!1}getRank(){return 1}simplify(e){e||n("");return r(e,this.m_spatialReference,this.m_bForceSimplify,this.m_progressTracker)}}var O;function U(e,t,s,n,i,r){return{m_from:e.clone(),m_to:t.clone(),m_center:s.clone(),m_next:i,m_type:n}}function J(e,t,s,n,i){return{m_from:e.clone(),m_to:t.clone(),m_next:s,m_type:4,m_center:new x}}!function(e){e[e.enumDummy=256]="enumDummy",e[e.enumLine=1]="enumLine",e[e.enumArc=2]="enumArc",e[e.enumMiter=8]="enumMiter",e[e.enumBevel=16]="enumBevel",e[e.enumJoinMask=26]="enumJoinMask",e[e.enumConnectionMask=27]="enumConnectionMask"}(O||(O={}));class H extends s{constructor(e,t,s,n,i,r,m,o,a,h){super(),this.m_index=0,this.m_bufferedPolygon=null,this.m_x=0,this.m_y=0,this.m_progressTracker=h,this.m_parent=e,this.m_mp=t,this.m_distance=s,this.m_spatialReference=n,this.m_densifyDist=o,this.m_maxVertexInCompleteCircle=a,this.m_joins=i,this.m_caps=r,this.m_miterLimit=m}next(){const e=new w;for(;;){if(this.m_index===this.m_mp.getPointCount())return null;if(1===this.m_caps)return this.m_index=this.m_mp.getPointCount(),new u({vd:this.m_mp.getDescription()});if(this.m_mp.getPointByVal(this.m_index,e),this.m_index++,!e.isEmpty())break}let t,s=!1;if(null===this.m_bufferedPolygon&&(this.m_x=e.getX(),this.m_y=e.getY(),this.m_bufferedPolygon=this.m_parent.buffer(e,this.m_distance,this.m_spatialReference,this.m_joins,this.m_caps,this.m_miterLimit,this.m_densifyDist,this.m_maxVertexInCompleteCircle),s=!0),t=this.m_index<this.m_mp.getPointCount()?this.m_bufferedPolygon.clone():this.m_bufferedPolygon,!s){const s=new R,n=e.getX()-this.m_x,i=e.getY()-this.m_y;s.setShiftCoords(n,i),t.applyTransformation(s)}return B(t,0),t}getGeometryID(){return 0}getRank(){return V(0),-1}tock(){return!0}}class K extends s{constructor(e){super(),this.m_currentPathIndex=0,this.m_polyline=e}next(){if(!this.m_polyline)return null;const e=this.m_polyline.getImpl(),t=e.getPathCount();if(this.m_currentPathIndex<t){const t=this.m_currentPathIndex;if(this.m_currentPathIndex++,!e.isClosedPathInXYPlane(t)){let s=e.getXY(e.getPathEnd(t)-1);for(;this.m_currentPathIndex<e.getPathCount();){const t=e.getXY(e.getPathStart(this.m_currentPathIndex));if(e.isClosedPathInXYPlane(this.m_currentPathIndex))break;if(!t.equals(s))break;s=e.getXY(e.getPathEnd(this.m_currentPathIndex)-1),this.m_currentPathIndex++}}if(0===t&&this.m_currentPathIndex===this.m_polyline.getPathCount()){const e=this.m_polyline;return this.m_polyline=null,e}const s=new C({vd:this.m_polyline.getDescription()});s.addPath(this.m_polyline,t,!0);for(let n=t+1;n<this.m_currentPathIndex;n++)s.addSegmentsFromPath(this.m_polyline,n,0,e.getSegmentCountPath(n),!1);return this.m_currentPathIndex===this.m_polyline.getPathCount()&&(this.m_polyline=null),s}return null}getGeometryID(){return 0}getRank(){return V(0),-1}tock(){return!0}}class Q extends s{constructor(e,t,s){super(),this.m_geometry=null,this.m_index=0,this.m_bufferer=e,this.m_geoms=t,this.m_index=0,this.m_bFilter=s}next(){if(null===this.m_geometry&&(this.m_index=0,this.m_geometry=this.m_geoms.next(),!this.m_geometry))return null;const e=this.m_geometry.getImpl();if(this.m_index<e.getPathCount()){const e=this.m_index;this.m_index++;return this.m_bufferer.bufferPolylinePath(this.m_geometry,e,this.m_bFilter)}return this.m_geometry=null,this.next()}getGeometryID(){return 0}getRank(){return V(0),-1}tock(){return!0}}class W extends s{constructor(e){super(),this.m_index=0,this.m_bufferer=e}next(){const e=this.m_bufferer.m_geometry;if(this.m_index<e.getPathCount()){const t=this.m_index,s=e.calculateRingArea2D(this.m_index);for(V(s>0),this.m_index++;this.m_index<e.getPathCount();){if(e.calculateRingArea2D(this.m_index)>0)break;this.m_index++}let n;return n=0===t&&this.m_index===e.getPathCount()?this.m_bufferer.bufferPolygonImpl(e,0,e.getPathCount()):this.m_bufferer.bufferPolygonImpl(e,t,this.m_index),n}return null}getGeometryID(){return 0}getRank(){return V(0),-1}tock(){return!0}}class Z{constructor(e){this.m_geometry=null,this.m_bufferCommands=[],this.m_originalGeomType=m.enumUnknown,this.m_maxVertexInCompleteCircle=-1,this.m_circleTemplateSize=-1,this.m_oldCircleTemplateSize=0,this.m_spatialReference=null,this.m_tolerance=new o(0,0),this.m_smallTolerance=new o(0,0),this.m_filterTolerance=0,this.m_densifyDist=-1,this.m_distance=Number.NaN,this.m_absDistance=0,this.m_absDistanceReversed=0,this.m_dA=-1,this.m_miterLimit=4,this.m_joins=0,this.m_caps=0,this.m_bRoundBuffer=!0,this.m_bOutputLoops=!0,this.m_bFilter=!0,this.m_circleTemplate=[],this.m_leftStack=[],this.m_middleStack=[],this.m_helperLine1=new a,this.m_helperLine2=new a,this.m_helperArray=[],this.m_progressCounter=0,this.m_densificator=h.constructDefault(e),this.m_progressTracker=e}buffer(e,t,s,i,r,m,o,a){if(e||n("Geometry.Bufferer.Impl.Buffer"),o<0&&n("Geometry.Bufferer.Impl.Buffer"),l(e.getGeometryType())&&c("Unsupported geometry type."),e.isEmpty())return new u({vd:e.getDescription()});if(this.m_joins=i,this.m_caps=r,this.m_bRoundBuffer=!1,this.m_miterLimit=m,this.m_originalGeomType=e.getGeometryType(),f(this.m_originalGeomType)?this.m_bRoundBuffer=0===this.m_joins:_(this.m_originalGeomType)?this.m_bRoundBuffer=0===this.m_caps:g(this.m_originalGeomType)&&(this.m_bRoundBuffer=0===this.m_joins&&0===this.m_caps),this.m_bFilter=this.m_bRoundBuffer,this.m_geometry=N(e,this.m_progressTracker),this.m_geometry.isEmpty())return new u({vd:e.getDescription()});const h=new d;this.m_geometry.queryLooseEnvelope(h),t>0&&h.inflateCoords(t,t),this.m_tolerance=p(s,h,!0),this.m_smallTolerance=p(null,h,!0),a<=0&&(a=96),this.m_spatialReference=s,this.m_distance=t,this.m_absDistance=Math.abs(this.m_distance),this.m_absDistanceReversed=0!==this.m_absDistance?1/this.m_absDistance:0,Number.isNaN(o)||0===o?o=1e-5*this.m_absDistance:o>.5*this.m_absDistance&&(o=.5*this.m_absDistance),a<12&&(a=12);const x=Math.abs(t)*(1-Math.cos(Math.PI/a));if(x>o)o=x;else if(0!==t){const e=Math.PI/Math.acos(1-o/Math.abs(t));e<a-1&&(a=Math.trunc(e))<12&&(a=12,o=Math.abs(t)*(1-Math.cos(Math.PI/a)))}this.m_densifyDist=o,this.m_maxVertexInCompleteCircle=a,this.m_filterTolerance=this.m_bRoundBuffer?Math.min(this.m_smallTolerance.total(),.25*this.m_densifyDist):0,this.m_circleTemplateSize=this.calcN(),this.m_circleTemplateSize!==this.m_oldCircleTemplateSize&&(this.m_circleTemplate.length=0,this.m_oldCircleTemplateSize=this.m_circleTemplateSize),this.m_densifyDist>0&&b(this.m_geometry)&&(this.m_geometry=this.m_densificator.densifyEx(this.m_geometry,0,this.m_densifyDist,0,0!==this.m_joins,y()));const P=this.bufferImpl();return this.m_geometry=null,P}generateCircleTemplate(){if(this.m_circleTemplate.length)return;const e=this.m_circleTemplateSize,t=Math.trunc((e+3)/4),s=.5*Math.PI/t;this.m_dA=s,this.m_circleTemplate.length=4*t;const n=Math.cos(s),i=Math.sin(s),r=x.construct(0,1);for(let m=0;m<t;m++)this.m_circleTemplate[m+0*t]=x.construct(r.y,-r.x),this.m_circleTemplate[m+1*t]=x.construct(-r.x,-r.y),this.m_circleTemplate[m+2*t]=x.construct(-r.y,r.x),this.m_circleTemplate[m+3*t]=r.clone(),r.rotateReverse(n,i)}bufferImpl(){const e=this.m_geometry.getGeometryType();if(P(e)){const e=new C({vd:this.m_geometry.getDescription()});return e.addSegment(this.m_geometry,!0),this.m_geometry=e,this.bufferImpl()}if(this.m_distance<=this.m_tolerance.total()){if(!f(e))return new u({vd:this.m_geometry.getDescription()});if(this.m_distance<0){const e=new d;if(this.m_geometry.queryEnvelope(e),e.width()<=2*this.m_absDistance||e.height()<=2*this.m_absDistance)return new u({vd:this.m_geometry.getDescription()})}}switch(this.m_geometry.getGeometryType()){case m.enumPoint:return this.bufferPoint();case m.enumMultiPoint:return this.bufferMultiPoint();case m.enumPolyline:return this.bufferPolyline();case m.enumPolygon:return this.bufferPolygon();case m.enumEnvelope:return this.bufferEnvelope();default:D("")}}bufferPolyline(){if(this.isDegenerateGeometry(this.m_geometry)){const e=new w;this.m_geometry.getPointByVal(0,e);const t=new d;return this.m_geometry.queryEnvelope(t),e.setXY(t.getCenter()),this.bufferDegeneratePath(e,!0)}const e=this.m_geometry,t=this.m_geometry.getDescription();this.m_geometry=null;const s=new K(e);let n,i;n=0===this.m_joins?(new q).executeMany(s,.25*this.m_densifyDist,!1,this.m_progressTracker):s,i=this.m_bRoundBuffer?(new z).executeMany(n,null,!0,this.m_progressTracker):n;const r=new Q(this,i,this.m_bFilter),m=(new T).executeMany(r,this.m_spatialReference,this.m_progressTracker,2),o=(new v).executeMany(m,this.m_spatialReference,!1,this.m_progressTracker).next();return null!==o?o:new u({vd:t})}bufferPolygon(){if(0===this.m_distance)return this.m_geometry;this.generateCircleTemplate();const e=(new v).execute(this.m_geometry,null,!1,this.m_progressTracker);if(this.m_distance<0){if(this.m_geometry=e,this.m_geometry.isEmpty())return this.m_geometry;const t=this.m_geometry,s=this.bufferPolygonImpl(t,0,t.getPathCount());return(new v).execute(s,this.m_spatialReference,!1,this.m_progressTracker)}{if(this.m_geometry=e,this.isDegenerateGeometry(this.m_geometry)){const e=new w;this.m_geometry.getPointByVal(0,e);const t=new d;return this.m_geometry.queryEnvelope(t),e.setXY(t.getCenter()),this.bufferDegeneratePath(e,!0)}const t=new W(this),s=(new T).executeMany(t,this.m_spatialReference,this.m_progressTracker,2),n=(new v).executeMany(s,this.m_spatialReference,!1,this.m_progressTracker).next();return null!==n?n:new u({vd:this.m_geometry.getDescription()})}}bufferPolygonImpl(e,t,s){const n=e,i=n.getImpl();let r=new u({vd:e.getDescription()});for(let m=t;m<s;m++){if(i.getPathSize(m)<1)continue;const t=i.calculateRingArea2D(m),s=new d;if(i.queryPathEnvelope(m,s),this.m_distance>0)if(t>0)if(this.isDegeneratePath(i,m)){const e=new w;i.getPointByVal(i.getPathStart(m),e),e.setXY(s.getCenter()),r.add(this.bufferDegeneratePath(e,!0),!1)}else{const t=new C({vd:e.getDescription()}),s=t.getImpl();if(I(this.m_geometry,m,this.m_progressTracker)){const e=this.bufferConvexPath(n,m);r.add(e,!1)}else{this.bufferClosedPath(this.m_geometry,m,s,this.m_bRoundBuffer,1);const e=this.bufferCleanup(t);r.add(e,!1)}}else{if(s.width()+this.m_tolerance.total()<=2*this.m_absDistance||s.height()+this.m_tolerance.total()<=2*this.m_absDistance)continue;const t=new C({vd:e.getDescription()}),n=t.getImpl();if(this.bufferClosedPath(this.m_geometry,m,n,this.m_bRoundBuffer,1),!t.isEmpty()){const e=s,i=Math.max(1,this.m_absDistance),m=e.clone();m.inflateCoords(i,i),n.addEnvelope(m,!1);const o=this.bufferCleanup(t);r.reserve(r.getPointCount()+o.getPointCount()-4),re(o,r,m,!0)}}else if(t>0){if(s.width()+this.m_tolerance.total()<=2*this.m_absDistance||s.height()+this.m_tolerance.total()<=2*this.m_absDistance)continue;const t=new C({vd:e.getDescription()}),n=t.getImpl();if(this.bufferClosedPath(this.m_geometry,m,n,this.m_bRoundBuffer,-1),!t.isEmpty()){const e=new d;n.queryLooseEnvelope(e);const s=Math.max(1,this.m_absDistance),i=e.clone();i.inflateCoords(s,s),n.addEnvelope(i,!1);re(this.bufferCleanup(t),r,i,!0)}}else{const t=new C({vd:e.getDescription()}),s=t.getImpl();this.bufferClosedPath(this.m_geometry,m,s,this.m_bRoundBuffer,-1);const n=this.bufferCleanup(t);for(let e=0,i=n.getPathCount();e<i;e++)r.addPath(n,e,!0)}}if(this.m_distance>0){if(r.getPathCount()>1){return this.bufferCleanup(r)}return $(r)}{const e=new d;if(r.queryLooseEnvelope(e),r.isEmpty())return $(r);{const t=Math.max(1,this.m_absDistance),s=e.clone();s.inflateCoords(t,t),r.addEnvelope(s,!1);const n=this.bufferCleanup(r);r=new u;const i=new u({vd:n.getDescription()});return re(n,i,s,!1),$(i)}}}bufferPoint(){return this.bufferPointImpl(this.m_geometry)}bufferPointImpl(e){const t=new u({vd:e.getDescription()});return 0===this.m_caps?(this.addCircle(t.getImpl(),e),this.setStrongSimple(t)):2===this.m_caps?(this.addSquare(t.getImpl(),e),this.setStrongSimple(t)):t}bufferDegeneratePath(e,t){const s=new u({vd:e.getDescription()});return t&&0===this.m_joins||!t&&0===this.m_caps?(this.addCircle(s.getImpl(),e),this.setStrongSimple(s)):t||2!==this.m_caps?s:(this.addSquare(s.getImpl(),e),this.setStrongSimple(s))}bufferMultiPoint(){const e=new H(this,this.m_geometry,this.m_distance,this.m_spatialReference,this.m_joins,this.m_caps,this.m_miterLimit,this.m_densifyDist,this.m_maxVertexInCompleteCircle,this.m_progressTracker);return(new T).executeMany(e,this.m_spatialReference,this.m_progressTracker,2).next()}bufferEnvelope(){let e=new u({vd:this.m_geometry.getDescription()});if(this.m_distance<=0){if(0===this.m_distance)e.addEnvelope(this.m_geometry,!1),ee(this.m_geometry,this.m_tolerance.total())&&(e=this.setStrongSimple(e));else{const t=new S;this.m_geometry.queryEnvelope(t),t.inflateCoords(this.m_distance,this.m_distance),e.addEnvelope(t,!1),ee(t,this.m_tolerance.total())&&(e=this.setStrongSimple(e))}return e}if(1===this.m_joins){const t=new S({copy:this.m_geometry});return t.inflateCoords(this.m_absDistance,this.m_absDistance),e.addEnvelope(t,!1),e}const t=this.m_geometry.clone();if(0===t.width()||0===t.height()){if(0===t.width()&&0===t.height()){const e=new w({vd:this.m_geometry.getDescription()});return t.queryCornerByVal(0,e),this.m_geometry=e,this.bufferImpl()}const e=new C({vd:this.m_geometry.getDescription()}),s=new w;return t.queryCornerByVal(0,s),e.startPathPoint(s),t.queryCornerByVal(2,s),e.lineToPoint(s),this.m_geometry=e,this.bufferImpl()}return e.addEnvelope(this.m_geometry,!1),this.m_geometry=e,this.bufferConvexPath(e,0)}bufferConvexPath(e,t){this.generateCircleTemplate();const s=e.hasAttribute(10),n=new u({vd:e.getDescription()}),i=n.getImpl();n.reserve((this.m_circleTemplate.length/10+4)*e.getPathSize(t));const r=new x,m=new x,o=new x,a=new x(0,0),h=new x,l=new x,c=e.getImpl(),f=e.getPathSize(t),_=e.getPathStart(t);for(let u=0,g=e.getPathSize(t);u<g;u++){const e=c.getXY(_+u),t=c.getXY(_+(u+1)%f),n=c.getXY(_+(u+2)%f);h.setSub(t,e),0===h.length()&&D("");const g=s&&!!(1&c.getAttributeAsInt(10,(u+1)%f,0));h.normalize();const d=h.clone();h.leftPerpendicularThis(),h.scale(this.m_absDistance),r.setAdd(h,e),m.setAdd(h,t),0===u?i.startPath(r):i.lineTo(r),i.lineTo(m),l.setSub(n,t),0===l.length()&&D(""),l.normalize();const p=l.clone();l.leftPerpendicularThis(),l.scale(this.m_absDistance),o.setAdd(l,t);let b=O.enumArc;const y=g?0:this.m_joins;if(2===y)b=O.enumBevel;else if(1===y){const e=-d.crossProduct(p);a.setSub(d,p),a.scale(this.m_absDistance/e),a.length()<this.m_miterLimit*this.m_absDistance?(a.addThis(t),b=O.enumMiter):b=O.enumBevel}else a.assign(t);this.addJoin(b,i,a,m,o,!1,!1)}return $(n)}bufferPolylinePath(e,t,s){this.generateCircleTemplate();const n=e,i=n.getImpl();if(i.getPathSize(t)<1)return null;let r;if(r=this.m_bRoundBuffer?i.isClosedPathInXYPlane(t):i.isClosedPath(t),this.isDegeneratePath(i,t)&&this.m_distance>0){const e=new w;i.getPointByVal(i.getPathStart(t),e);const s=new d;return i.queryPathEnvelope(t,s),e.setXY(s.getCenter()),this.bufferDegeneratePath(e,r)}const m=new C({vd:e.getDescription()});m.reserve((Math.trunc(this.m_circleTemplate.length/10)+4)*i.getPathSize(t));const o=m.getImpl();return r?2!==this.bufferClosedPath(n,t,o,s,1)&&this.bufferClosedPath(n,t,o,s,-1):this.bufferOpenPath(n,t,o,s),this.bufferCleanup(m)}progress_(){}bufferCleanup(e,t=!1){const s=t?this.m_tolerance:this.m_smallTolerance;return M(e,s,!0,!t,-1,this.m_progressTracker,0,!1)}calcN(){const e=4;if(0===this.m_densifyDist)return this.m_maxVertexInCompleteCircle;const t=1-this.m_densifyDist*Math.abs(this.m_absDistanceReversed);let s=e;return s=t<-1?e:2*Math.PI/Math.acos(t)+.5,s<e?s=e:s>this.m_maxVertexInCompleteCircle&&(s=this.m_maxVertexInCompleteCircle),Math.trunc(s)}addJoin(e,t,s,n,i,r,m){if(this.generateCircleTemplate(),r&&(t.startPath(n),r=!1),e===O.enumBevel)return void(m&&t.lineTo(i));if(e===O.enumMiter){const e=s.clone();return t.lineTo(e),void(m&&t.lineTo(i))}const o=new x;o.setSub(n,s),o.scale(this.m_absDistanceReversed);const a=new x;a.setSub(i,s),a.scale(this.m_absDistanceReversed);let h=Math.atan2(o.y,o.x)/this.m_dA;h<0&&(h=this.m_circleTemplate.length+h),h=this.m_circleTemplate.length-h;let l=Math.atan2(a.y,a.x)/this.m_dA;l<0&&(l=this.m_circleTemplate.length+l),l=this.m_circleTemplate.length-l,l<h&&(l+=this.m_circleTemplate.length);let c=Math.trunc(l),u=Math.ceil(h),f=this.m_circleTemplate[u%this.m_circleTemplate.length].clone();f.scaleAddThis(this.m_absDistance,s);const _=10*this.m_tolerance.total();f.sub(n).length()<_&&(u+=1),f=this.m_circleTemplate[c%this.m_circleTemplate.length].clone(),f.scaleAddThis(this.m_absDistance,s),f.sub(i).length()<_&&(c-=1);let g=c-u;g++;for(let d=0,p=u%this.m_circleTemplate.length;d<g;d++,p=(p+1)%this.m_circleTemplate.length)f=this.m_circleTemplate[p].clone(),f.scaleAddThis(this.m_absDistance,s),t.lineTo(f),this.progress_();m&&t.lineTo(i)}bufferClosedPath(e,t,s,n,i){const r=new k,m=r.addPathFromMultiPath(e,t,!0);return this.bufferClosedPathImpl(r,m,s,n,i)}bufferClosedPathImpl(e,t,s,n,i){const r=e.getFirstVertex(e.getFirstPath(t)),m=new w;e.queryPoint(r,m),e.filterClosePoints(this.m_filterTolerance,!1,!1,!1,-1);if(e.getPointCount(t)<2)return i<0?0:(this.m_bRoundBuffer&&this.addCircle(s,m),2);V(e.getFirstPath(t)!==E),V(e.getFirstVertex(e.getFirstPath(t))!==E);const o=e.getXY(e.getFirstVertex(e.getFirstPath(t))),a=new R;if(a.setShift(o.negate()),e.applyTransformation(a),n){const n=ie(e,t,i,!0,this.m_absDistance,this.m_filterTolerance,this.m_densifyDist);if(V(1===n),e.getPointCount(t)<2)return i<0?0:(this.addCircle(s,m),2)}const h=0!==this.m_joins&&e.getVertexDescription().hasAttribute(10);this.m_bufferCommands.length=0;const l=e.getFirstPath(t);let c=e.getFirstVertex(l),u=1===i?e.getPrevVertex(c):e.getNextVertex(c),f=1===i?e.getNextVertex(c):e.getPrevVertex(c),_=!0;const g=new x,d=new x,p=new x,b=new x,y=new x,P=new x,C=new x,D=new x,T=this.m_absDistance,v=e.getPathSize(l),I=new x(0,0);for(let w=0;w<v;w++){d.assign(e.getXY(f)),_&&(g.assign(e.getXY(c)),p.assign(e.getXY(u)),P.setSub(g,p),P.normalize(),D.leftPerpendicularOther(P),D.scale(T),b.setAdd(D,g));const t=h&&!!(1&e.getAttributeAsDbl(10,c,0));y.setSub(d,g),y.normalize(),C.leftPerpendicularOther(y),C.scale(T);const s=new x;s.setAdd(g,C);const n=P.crossProduct(y),r=P.dotProduct(y);if(n<0||r<0&&n<Math.abs(r)*Number.EPSILON*8){let e=!1;const i=t?0:this.m_joins;if(1===i){const t=-n;I.setSub(P,y),I.scale(this.m_absDistance/t),I.length()<this.m_miterLimit*this.m_absDistance&&(I.addThis(g),e=!0),this.m_bufferCommands.push(U(b,s,I,e?O.enumMiter:O.enumBevel,this.m_bufferCommands.length+1,this.m_bufferCommands.length-1))}else this.m_bufferCommands.push(U(b,s,g,0===i?O.enumArc:O.enumBevel,this.m_bufferCommands.length+1,this.m_bufferCommands.length-1))}else b.equals(s)||(this.m_bufferCommands.push(J(b,g,this.m_bufferCommands.length+1,this.m_bufferCommands.length-1)),this.m_bufferCommands.push(J(g,s,this.m_bufferCommands.length+1,this.m_bufferCommands.length-1)));const m=new x;m.setAdd(d,C),this.m_bufferCommands.push(U(s,m,g,O.enumLine,this.m_bufferCommands.length+1,this.m_bufferCommands.length-1)),b.setCoordsPoint2D(m),D.setCoordsPoint2D(C),p.setCoordsPoint2D(g),g.setCoordsPoint2D(d),P.setCoordsPoint2D(y),u=c,c=f,_=!1,f=1===i?e.getNextVertex(c):e.getPrevVertex(c)}return this.m_bufferCommands.at(-1).m_next=0,this.processBufferCommands(s),a.setShift(o),s.applyTransformationToPath(a,s.getPathCount()-1),1}bufferOpenPath(e,t,s,n){if(this.m_bRoundBuffer){const i=new C({vd:e.getDescription()});return i.addPath(e,t,!1),i.addSegmentsFromPath(e,t,0,e.getSegmentCountPath(t),!1),this.bufferClosedPath(i,0,s,n,1)}let i=0;const r=new C({vd:e.getDescription()}),m=new x(0,0);{const n=new k,o=n.addPathFromMultiPath(e,t,!1),a=n.getFirstVertex(n.getFirstPath(o)),h=new w;n.queryPoint(a,h),m.assign(h.getXY()),n.filterClosePoints(0,!1,!1,!1,-1);if(n.getPointCount(o)<2)return this.m_bRoundBuffer&&this.addCircle(s,h),2;const l=n.getGeometry(n.getFirstGeometry());r.addPath(l,0,!1),i=r.getPointCount()-1,r.addSegmentsFromPath(l,0,0,l.getSegmentCountPath(0)-1,!1)}const o=new k,a=o.addPathFromMultiPath(r,0,!0);V(o.getFirstPath(a)!==E),V(o.getFirstVertex(o.getFirstPath(a))!==E);const h=new R;h.setShift(m.negate()),o.applyTransformation(h),this.m_bufferCommands.length=0;const l=o.getFirstPath(a),c=0!==this.m_joins&&o.getVertexDescription().hasAttribute(10);let u=o.getFirstVertex(l),f=o.getPrevVertex(u),_=o.getNextVertex(u),g=!0;const d=new x,p=new x,b=new x,y=new x,P=new x,D=new x,T=new x,v=new x,I=this.m_absDistance,S=o.getPathSize(l),M=new x(0,0);for(let C=0;C<S;C++){let e=!1;0!==C&&C!==i||(e=!0),p.assign(o.getXY(_)),g&&(d.assign(o.getXY(u)),b.assign(o.getXY(f)),D.setSub(d,b),D.normalize(),v.leftPerpendicularOther(D),v.scale(I),y.setAdd(v,d));const t=c&&!!(1&o.getAttributeAsDbl(10,u,0));P.setSub(p,d),P.normalize(),T.leftPerpendicularOther(P),T.scale(I);const s=new x;s.setAdd(d,T);const n=D.crossProduct(P),r=D.dotProduct(P);if(n<0||r<0&&n<Math.abs(r)*Number.EPSILON*8)if(e)if(0===this.m_caps)this.m_bufferCommands.push(U(y,s,d,O.enumArc,this.m_bufferCommands.length+1,this.m_bufferCommands.length-1));else if(1===this.m_caps)this.m_bufferCommands.push(U(y,s,d,O.enumLine,this.m_bufferCommands.length+1,this.m_bufferCommands.length-1));else{const e=P.mul(this.m_absDistance).negate(),t=e.clone();e.addThis(y),t.addThis(s),this.m_bufferCommands.push(U(y,e,d,O.enumLine,this.m_bufferCommands.length+1,this.m_bufferCommands.length-1)),this.m_bufferCommands.push(U(e,t,d,O.enumLine,this.m_bufferCommands.length+1,this.m_bufferCommands.length-1)),this.m_bufferCommands.push(U(t,s,d,O.enumLine,this.m_bufferCommands.length+1,this.m_bufferCommands.length-1))}else{let e=!1;const i=t?0:this.m_joins;if(1===i){const t=-n;M.setSub(D,P),M.scale(this.m_absDistance/t),M.length()<this.m_miterLimit*this.m_absDistance&&(M.addThis(d),e=!0),this.m_bufferCommands.push(U(y,s,M,e?O.enumMiter:O.enumBevel,this.m_bufferCommands.length+1,this.m_bufferCommands.length-1))}else this.m_bufferCommands.push(U(y,s,d,0===i?O.enumArc:O.enumBevel,this.m_bufferCommands.length+1,this.m_bufferCommands.length-1))}else y.equals(s)||(this.m_bufferCommands.push(J(y,d,this.m_bufferCommands.length+1,this.m_bufferCommands.length-1)),this.m_bufferCommands.push(J(d,s,this.m_bufferCommands.length+1,this.m_bufferCommands.length-1)));const m=new x;m.setAdd(p,T),this.m_bufferCommands.push(U(s,m,d,O.enumLine,this.m_bufferCommands.length+1,this.m_bufferCommands.length-1)),y.setCoordsPoint2D(m),v.setCoordsPoint2D(T),b.setCoordsPoint2D(d),d.setCoordsPoint2D(p),D.setCoordsPoint2D(P),f=u,u=_,g=!1,_=o.getNextVertex(u)}return this.m_bufferCommands.at(-1).m_next=0,this.processBufferCommands(s),h.setShift(m),s.applyTransformationToPath(h,s.getPathCount()-1),1}processBufferCommands(e){const t=this.cleanupBufferCommands();let s=!0,n=t+1;for(let i=t;n!==t;i=n){const t=this.m_bufferCommands[i];n=-1!==t.m_next?t.m_next:(i+1)%this.m_bufferCommands.length,t.m_type&&(s&&(e.startPath(t.m_from),s=!1),t.m_type&O.enumJoinMask?this.addJoin(t.m_type,e,t.m_center,t.m_from,t.m_to,!1,!0):e.lineTo(t.m_to))}}cleanupBufferCommands(){this.m_helperArray=A(x,9);let e=0;for(let s=0,n=this.m_bufferCommands.length;s<n;){const t=this.m_bufferCommands[s];if(t.m_type&O.enumConnectionMask){e=s;break}s=t.m_next}let t=e+1;for(let s=e;t!==e;s=t){const e=this.m_bufferCommands[s];t=e.m_next;let n=1,i=null;for(;t!==s&&(i=this.m_bufferCommands[t],!(i.m_type&O.enumConnectionMask));)t=i.m_next,n++;if(1!==n&&(e.m_type&i.m_type)===O.enumLine){this.m_helperLine1.setStartXY(e.m_from),this.m_helperLine1.setEndXY(e.m_to),this.m_helperLine2.setStartXY(i.m_from),this.m_helperLine2.setEndXY(i.m_to);1===this.m_helperLine1.intersect(this.m_helperLine2,this.m_helperArray,null,null,this.m_smallTolerance.total())&&(e.m_to.assign(this.m_helperArray[0]),i.m_from.assign(this.m_helperArray[0]),e.m_next=t)}}return e}isDegeneratePath(e,t){if(1===e.getPathSize(t))return!0;if(0===this.m_joins&&0===this.m_caps){const s=new d;if(e.queryPathEnvelope(t,s),Math.max(s.width(),s.height())<.5*this.m_densifyDist)return!0}return!1}isDegenerateGeometry(e){if(0===this.m_joins&&0===this.m_caps){const t=new d;if(e.queryEnvelope(t),Math.max(t.width(),t.height())<.5*this.m_densifyDist)return!0}return!1}addCircle(e,t){const s=t.getXY();if(0!==this.m_circleTemplate.length){let t=this.m_circleTemplate[0].clone();t.scaleAddThis(this.m_absDistance,s),e.startPath(t);for(let n=1,i=this.m_circleTemplate.length;n<i;n++)t=this.m_circleTemplate[n].clone(),t.scaleAddThis(this.m_absDistance,s),e.lineTo(t);return}const n=this.m_circleTemplateSize,i=Math.trunc((n+3)/4),r=.5*Math.PI/i;e.reserve(4*i);const m=Math.cos(r),o=Math.sin(r);for(let a=3;a>=0;a--){const t=x.construct(0,this.m_absDistance);switch(a){case 0:for(let n=0;n<i;n++)e.lineToCoords(t.x+s.x,t.y+s.y),t.rotateReverse(m,o);break;case 1:for(let n=0;n<i;n++)e.lineToCoords(-t.y+s.x,t.x+s.y),t.rotateReverse(m,o);break;case 2:for(let n=0;n<i;n++)e.lineToCoords(-t.x+s.x,-t.y+s.y),t.rotateReverse(m,o);break;default:e.startPathCoords(t.y+s.x,-t.x+s.y);for(let n=1;n<i;n++)t.rotateReverse(m,o),e.lineToCoords(t.y+s.x,-t.x+s.y)}this.progress_()}}addSquare(e,t){const s=new S({vd:t.getDescription()});s.setCoords(t.getX(),t.getY(),t.getX(),t.getY()),s.inflateCoords(this.m_absDistance,this.m_absDistance),e.addEnvelope(s,!1)}setStrongSimple(e){return e.getImpl().setIsSimple(4,this.m_tolerance.total()),e.getImpl().updateOGCFlagsProtected(),e}}function $(e){return B(e,0),e}function ee(e,t){return!!e.isEmpty()||Math.min(e.width(),e.height())>t}function te(e,t,s,n,i,r,m,o){const a=e.getXY(s),h=e.getXY(n);if(a.equals(h))return-1;const l=.25*m,c=.25*m,u=new x;u.setSub(h,a);const f=u.length(),_=f*f*.25,g=r*r-_;if(g<=_)return-1;const d=Math.sqrt(g);u.normalize();const p=u.clone();p.rightPerpendicularThis();const b=_/d,y=b<=c,P=x.lerp(h,a,.5),C=p.clone(),D=b-l;C.scaleAddThis(Math.max(0,D),P);p.negate().scaleAddThis(d,P);const w=3.61*L(r-c),T=C.sub(a),v=C.sub(h);let I=!1,S=0;const M=F(64,0);V(o===M.length);{for(let o=e.getPrevVertexEx(n,i);o!==s;){if(1===e.getUserIndex(o,t))return-1;if(!e.getXY(o).equals(h))break;{const t=e.getPrevVertexEx(o,i);e.removeVertex(o,!1),o=t}}const r=new x,m=a.clone();M[S++]=1;for(let o=e.getNextVertexEx(s,i);o!==n;){if(1===e.getUserIndex(o,t))return-1;const s=e.getXY(o);if(s.equals(m)){const t=e.getNextVertexEx(o,i);e.removeVertex(o,!1),o=t;continue}M[S++]=0;const n=new x;if(n.setSub(s,a),n.dotProduct(p)<0)return 0;(x.sqrDistance(s,a)>w||x.sqrDistance(s,h)>w)&&(I=!0);let l=0;s.sub(a).crossProduct(T)>=0&&(l=1);if(s.sub(h).crossProduct(v)<=0&&(l|=2),0===l)return 0;M[S-1]=l,r.assign(m),m.assign(s),o=e.getNextVertexEx(o,i)}if(1===S)return 0;V(S<M.length),M[S++]=2}let k=!0;for(let x=1,V=0;x<S;x++)if(M[x]!==M[x-1]&&(V++,k=V<3&&(1===V&&3===M[x]||2===V&&2===M[x]),!k))return 0;if(S>2&&k&&(3===S||!I)){let t=0,r=e.getNextVertexEx(s,i);for(y||(e.setXY(r,C),r=e.getNextVertexEx(r,i));r!==n;){const s=e.getNextVertexEx(r,i);e.removeVertex(r,!1),r=s,++t}return t}if(V(3!==S),I&&S>3)return 0;const E=a.clone();let R=s;const A=a.clone();let B=1,X=-1,Y=R,G=0;for(S=1;Y!==n;){Y=e.getNextVertexEx(Y,i);const t=M[S++];if(0===t){if(Y===n)break;continue}const s=e.getXY(Y);if(-1!==X){if(3&(X&B&t)){e.removeVertex(R,!0),G++,R=Y,A.setCoordsPoint2D(s),B=t;continue}if(3===B&&0!==X&&0!==t){if(A.setCoordsPoint2D(C),y||A.equals(E)){e.removeVertex(R,!0),G++,R=Y,A.setCoordsPoint2D(s),B=t;continue}e.setXY(R,A)}}X=B,E.setCoordsPoint2D(A),R=Y,B=t,A.setCoordsPoint2D(s)}return G}function se(e,t,s,n){let i=-1;const r=new x,m=new x,o=new x;for(let a=0,h=e.getPathSize(n),l=e.getFirstVertex(n);a<h;++a){-1===i&&(e.queryXY(l,m),i=e.getPrevVertex(l),-1!==i&&(e.queryXY(i,r),o.setSub(m,r),o.normalize()));const s=e.getNextVertex(l);if(-1===s)break;const n=e.getXY(s),a=n.sub(m);if(a.normalize(),-1!==i){a.dotProduct(o)<-.99&&Math.abs(a.crossProduct(o))<1e-7&&e.setUserIndex(l,t,1)}i=l,l=s,r.assign(m),m.assign(n),o.assign(a)}}function ne(e,t,s,n,i,r,m){const o={stack:[],error:void 0,hasError:!1};try{const a=e.getFirstPath(t),h=e.createUserIndex();X(o,Y((()=>{e.removeUserIndex(h)}),!1),!1);se(e,h,t,a);for(let t=0;t<100;++t){if(0===e.getPathSize(a))return 1;let t=e.getFirstVertex(a),r=e.getPathSize(a);if(r<3)return 1;n&&!e.isClosedPath(a)&&(r-=1);const o=64;let l=0,c=!1;for(let n=0;n<r&&t!==E;n++){let a=0,u=t;for(let l=1,c=Math.min(o,r-n);l<c;l++)if(u=e.getNextVertexEx(u,s),l>1){const n=te(e,h,t,u,s,i,m,o);if(-1===n)break;a+=n,r-=n}if(l+=a,c=a>0,c){const n=e.getPrevVertexEx(t,s);if(-1!==n){t=n,r++;continue}}t=e.getNextVertexEx(t,s)}if(0===l)break}return e.filterClosePoints(r,!1,!1,!1,-1),1}catch(a){o.error=a,o.hasError=!0}finally{G(o)}}function ie(e,t,s,n,i,r,m){return ne(e,t,s,n,i,r,m)}function re(e,t,s,n){for(let i=0,r=e.getPathCount();i<r;i++){const r=e.getXY(e.getPathStart(i));r.x!==s.xmin&&r.x!==s.xmax&&t.addPath(e,i,n)}}class me{getOperatorType(){return 10004}supportsCurves(){return!0}accelerateGeometry(e,t,s){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,s,n,i){return this.executeManyEx(e,t,s,Number.NaN,96,n,i)}execute(e,s,i,r){Number.isFinite(i)||n("Invalid distance for buffer operation");const m=new t([e]),o=[i];return this.executeMany(m,s,o,!1,r).next()}executeManyEx(e,t,s,i,r,m,o){if(void 0!==s.find((e=>!Number.isFinite(e)))&&n("Invalid distance for buffer operation"),m){const n=new oe(e,t,s,i,r,!1,o);return(new T).executeMany(n,t,o,2)}return new oe(e,t,s,i,r,!1,o)}}class oe extends s{constructor(e,t,s,n,i,r,m){super(),this.m_currentUnionEnvelope2D=new d,this.m_index=-1,this.m_dindex=-1,this.m_progressTracker=m,this.m_bufferer=new Z(m),this.m_inputGeoms=e,this.m_spatialReference=t,this.m_distances=s,this.m_maxDeviation=n,this.m_maxVerticesInFullCircle=i}tock(){return!0}getRank(){return 1}next(){{let e;for(;e=this.m_inputGeoms.next();)return i(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,t){return this.m_bufferer.buffer(e,t,this.m_spatialReference,0,0,4,this.m_maxDeviation,this.m_maxVerticesInFullCircle)}}const ae=new me;function he(e,t,s){return ae.execute(e,t,s,null)}function le(e,s,n,i){const r=ae.executeMany(new t(e),s,n,i,null);return Array.from(r)}function ce(e,s,n,i,r,m){const o=ae.executeManyEx(new t(e),s,n,i,r,m,null);return Array.from(o)}function ue(){return ae.supportsCurves()}export{he as execute,le as executeMany,ce as executeManyEx,ue as supportsCurves};
5
+ import{t as e,S as t,J as n,h as r,x as s,j as i}from"../../../chunks/Polyline.js";import{B as u}from"../../../chunks/Bufferer-93RDFIRm.js";class a{getOperatorType(){return 10004}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,n,r,s){return this.executeManyEx(e,t,n,Number.NaN,96,r,s)}execute(n,r,s,i){Number.isFinite(s)||e("Invalid distance for buffer operation");const u=new t([n]),a=[s];return this.executeMany(u,r,a,!1,i).next()}executeManyEx(t,r,s,i,u,a,c){if(void 0!==s.find((e=>!Number.isFinite(e)))&&e("Invalid distance for buffer operation"),a){const e=new m(t,r,s,i,u,!1,c);return(new n).executeMany(e,r,c,2)}return new m(t,r,s,i,u,!1,c)}}class m extends r{constructor(e,t,n,r,i,a,m){super(),this.m_currentUnionEnvelope2D=new s,this.m_index=-1,this.m_dindex=-1,this.m_progressTracker=m,this.m_bufferer=new u(m),this.m_inputGeoms=e,this.m_spatialReference=t,this.m_distances=n,this.m_maxDeviation=r,this.m_maxVerticesInFullCircle=i}tock(){return!0}getRank(){return 1}next(){{let e;for(;e=this.m_inputGeoms.next();)return i(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,t){return this.m_bufferer.buffer(e,t,this.m_spatialReference,0,0,4,this.m_maxDeviation,this.m_maxVerticesInFullCircle)}}const c=new a;function o(e,t,n){return c.execute(e,t,n,null)}function f(e,n,r,s){const i=c.executeMany(new t(e),n,r,s,null);return Array.from(i)}function h(e,n,r,s,i,u){const a=c.executeManyEx(new t(e),n,r,s,i,u,null);return Array.from(a)}function x(){return c.supportsCurves()}export{o as execute,f as executeMany,h as executeManyEx,x as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
4
  */
5
- import{S as n,q as e}from"../../../chunks/Polyline.js";const r=new e;function t(n,e,t){return r.execute(n,e,t,null)}function u(e,t,u){const o=r.executeMany(new n(e),t,u,null);return Array.from(o)}function o(){return r.supportsCurves()}export{t as execute,u as executeMany,o as supportsCurves};
5
+ import{S as n,p as e}from"../../../chunks/Polyline.js";const r=new e;function t(n,e,t){return r.execute(n,e,t,null)}function u(e,t,u){const o=r.executeMany(new n(e),t,u,null);return Array.from(o)}function o(){return r.supportsCurves()}export{t as execute,u as executeMany,o as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
4
  */
5
- import{aJ as t,j as e,G as n,l as r,aK as o,aL as u,h as i,t as s,aM as a,P as m,b as c,y as g,a as l,aN as y,aO as f,S as p}from"../../../chunks/Polyline.js";class x{getOperatorType(){return 10102}supportsCurves(){return!1}accelerateGeometry(t,e,n){return!1}canAccelerateGeometry(t){return!1}executeMany(t,e,n){return new C(e,t,n)}execute(t,e){return P(t)}isConvex(u,i){if(t(u),e(u),u.isEmpty())return!0;const s=u.getGeometryType();if(s===n.enumPoint)return!0;if(s===n.enumEnvelope){const t=u;return t.getXMin()!==t.getXMax()&&t.getYMin()!==t.getYMax()}if(r(s)){const t=u;return!t.getStartXY().equals(t.getEndXY())}if(s===n.enumMultiPoint){return 1===u.getPointCount()}if(s===n.enumPolyline){const t=u;return 1===t.getPathCount()&&2===t.getPointCount()&&!t.getXY(0).equals(t.getXY(1))}if(s===n.enumGeometryCollection){const t=u;return 1===t.getGeometryCount()&&this.isConvex(t.getGeometry(0),i)}const a=u;return!(1!==a.getPathCount()||a.getPointCount()<3)&&o(a,0)}constructOrientedMinimumBoundingBox(t,e,n,r,o){u(t,e,n,r,o)}}class C extends i{constructor(t,e,n){super(),e||s(""),this.m_progressTracker=n,this.m_index=-1,this.m_bMerge=t,this.m_bDone=!1,this.m_inputGeometryCursor=e}getGeometryID(){return this.m_index}tock(){return!0}getRank(){return 1}next(){if(this.m_bMerge){if(!this.m_bDone){const t=h(this.m_inputGeometryCursor,this.m_progressTracker);return this.m_bDone=!0,t}return null}if(!this.m_bDone){const n=this.m_inputGeometryCursor.next();if(null!==n)return t(n),e(n),this.m_index=this.m_inputGeometryCursor.getGeometryID(),P(n,this.m_progressTracker);this.m_bDone=!0}return null}}function h(n,r){const o=new a;let u;for(;u=n.next();)t(u),e(u),o.addGeometry(u);return o.getBoundingGeometry()}function P(o,u){if(o||s(""),t(o),e(o),o.isEmpty())return o.createInstance();const i=o.getGeometryType();if(r(i)){const t=o;if(t.getStartXY().equals(t.getEndXY())){const e=new m;return t.queryStart(e),e}{const e=new m,n=new c({vd:o.getDescription()});return t.queryStart(e),n.startPathPoint(e),t.queryEnd(e),n.lineToPoint(e),n}}if(i===n.enumEnvelope){const t=o,e=new g;if(t.queryEnvelope(e),e.xmin===e.xmax&&e.ymin===e.ymax){const e=new m;return t.queryCornerByVal(0,e),e}if(e.xmin===e.xmax||e.ymin===e.ymax){const e=new m,n=new c({vd:o.getDescription()});return t.queryCornerByVal(0,e),n.startPathPoint(e),t.queryCornerByVal(1,e),n.lineToPoint(e),n}{const e=new l({vd:o.getDescription()});return e.addEnvelope(t,!1),e}}if(i===n.enumGeometryCollection)return h(y(o,-1));if(G(o)){if(i===n.enumMultiPoint){const t=o,e=new m;return t.getPointByVal(0,e),e}return o}return f(o)}function G(u,i){if(t(u),e(u),u.isEmpty())return!0;const s=u.getGeometryType();if(s===n.enumPoint)return!0;if(s===n.enumEnvelope){const t=u;return t.getXMin()!==t.getXMax()&&t.getYMin()!==t.getYMax()}if(r(s)){const t=u;return!t.getStartXY().equals(t.getEndXY())}if(s===n.enumMultiPoint){return 1===u.getPointCount()}if(s===n.enumPolyline){const t=u;return 1===t.getPathCount()&&2===t.getPointCount()&&!t.getXY(0).equals(t.getXY(1))}if(s===n.enumGeometryCollection){const t=u;return 1===t.getGeometryCount()&&G(t.getGeometry(0))}const a=u;return!(1!==a.getPathCount()||a.getPointCount()<3)&&o(a,0)}const d=new x;function M(t){return d.execute(t,null)}function _(t,e){const n=d.executeMany(new p(t),e,null);return Array.from(n)}function X(t){return d.isConvex(t,null)}function Y(t,e,n,r,o){return d.constructOrientedMinimumBoundingBox(t,e,n,r,o)}function v(){return d.supportsCurves()}export{Y as constructOrientedMinimumBoundingBox,M as execute,_ as executeMany,X as isConvex,v as supportsCurves};
5
+ import{aL as t,j as e,G as n,l as r,aJ as o,aM as u,h as i,t as s,aN as a,P as m,b as c,x as g,a as l,aO as y,aP as f,S as p}from"../../../chunks/Polyline.js";class x{getOperatorType(){return 10102}supportsCurves(){return!1}accelerateGeometry(t,e,n){return!1}canAccelerateGeometry(t){return!1}executeMany(t,e,n){return new C(e,t,n)}execute(t,e){return h(t)}isConvex(u,i){if(t(u),e(u),u.isEmpty())return!0;const s=u.getGeometryType();if(s===n.enumPoint)return!0;if(s===n.enumEnvelope){const t=u;return t.getXMin()!==t.getXMax()&&t.getYMin()!==t.getYMax()}if(r(s)){const t=u;return!t.getStartXY().equals(t.getEndXY())}if(s===n.enumMultiPoint){return 1===u.getPointCount()}if(s===n.enumPolyline){const t=u;return 1===t.getPathCount()&&2===t.getPointCount()&&!t.getXY(0).equals(t.getXY(1))}if(s===n.enumGeometryCollection){const t=u;return 1===t.getGeometryCount()&&this.isConvex(t.getGeometry(0),i)}const a=u;return!(1!==a.getPathCount()||a.getPointCount()<3)&&o(a,0)}constructOrientedMinimumBoundingBox(t,e,n,r,o){u(t,e,n,r,o)}}class C extends i{constructor(t,e,n){super(),e||s(""),this.m_progressTracker=n,this.m_index=-1,this.m_bMerge=t,this.m_bDone=!1,this.m_inputGeometryCursor=e}getGeometryID(){return this.m_index}tock(){return!0}getRank(){return 1}next(){if(this.m_bMerge){if(!this.m_bDone){const t=P(this.m_inputGeometryCursor,this.m_progressTracker);return this.m_bDone=!0,t}return null}if(!this.m_bDone){const n=this.m_inputGeometryCursor.next();if(null!==n)return t(n),e(n),this.m_index=this.m_inputGeometryCursor.getGeometryID(),h(n,this.m_progressTracker);this.m_bDone=!0}return null}}function P(n,r){const o=new a;let u;for(;u=n.next();)t(u),e(u),o.addGeometry(u);return o.getBoundingGeometry()}function h(o,u){if(o||s(""),t(o),e(o),o.isEmpty())return o.createInstance();const i=o.getGeometryType();if(r(i)){const t=o;if(t.getStartXY().equals(t.getEndXY())){const e=new m;return t.queryStart(e),e}{const e=new m,n=new c({vd:o.getDescription()});return t.queryStart(e),n.startPathPoint(e),t.queryEnd(e),n.lineToPoint(e),n}}if(i===n.enumEnvelope){const t=o,e=new g;if(t.queryEnvelope(e),e.xmin===e.xmax&&e.ymin===e.ymax){const e=new m;return t.queryCornerByVal(0,e),e}if(e.xmin===e.xmax||e.ymin===e.ymax){const e=new m,n=new c({vd:o.getDescription()});return t.queryCornerByVal(0,e),n.startPathPoint(e),t.queryCornerByVal(1,e),n.lineToPoint(e),n}{const e=new l({vd:o.getDescription()});return e.addEnvelope(t,!1),e}}if(i===n.enumGeometryCollection)return P(y(o,-1));if(G(o)){if(i===n.enumMultiPoint){const t=o,e=new m;return t.getPointByVal(0,e),e}return o}return f(o)}function G(u,i){if(t(u),e(u),u.isEmpty())return!0;const s=u.getGeometryType();if(s===n.enumPoint)return!0;if(s===n.enumEnvelope){const t=u;return t.getXMin()!==t.getXMax()&&t.getYMin()!==t.getYMax()}if(r(s)){const t=u;return!t.getStartXY().equals(t.getEndXY())}if(s===n.enumMultiPoint){return 1===u.getPointCount()}if(s===n.enumPolyline){const t=u;return 1===t.getPathCount()&&2===t.getPointCount()&&!t.getXY(0).equals(t.getXY(1))}if(s===n.enumGeometryCollection){const t=u;return 1===t.getGeometryCount()&&G(t.getGeometry(0))}const a=u;return!(1!==a.getPathCount()||a.getPointCount()<3)&&o(a,0)}const d=new x;function M(t){return d.execute(t,null)}function _(t,e){const n=d.executeMany(new p(t),e,null);return Array.from(n)}function X(t){return d.isConvex(t,null)}function Y(t,e,n,r,o){return d.constructOrientedMinimumBoundingBox(t,e,n,r,o)}function v(){return d.supportsCurves()}export{Y as constructOrientedMinimumBoundingBox,M as execute,_ as executeMany,X as isConvex,v as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
4
  */
5
- import{h as t,b as e,aR as s,W as n,G as r,p as o,a as u,g as c,ac as i,aS as m,aT as a,aU as h,aV as l,aW as d,aG as y,aX as p}from"../../../chunks/Polyline.js";var _=p;function g(t,e){return{m_geometry:t,m_side:e}}function f(t,e,s,n,r,o){if(e.isEmpty()){const t=g(e,0);return void r.push(t)}if(s.isEmpty()){const t=g(e,0);return void r.push(t)}const u=[],c=new i;{const i=c.createGeometryUserIndex(),y=c.addGeometry(e),p=c.addGeometry(s),f=new m(o);let C=0,E=null;if(c.hasCurves()){E=new _;const t=c.getEnvelope2D(o);C=a(n.total());const e=h(n.total(),t);l(c,e,n.total(),12e3,E,null,o)}c.dbgVerifyCurves(),f.setEditShapeCrackAndCluster(c,n),f.cut(t,i,y,p,u);for(const t of u){null!==E&&E.stitchCurves(c,t,C,!1);const e=g(c.getGeometry(t),d(c.getGeometryUserIndex(t,i)));r.push(e)}null!==E&&E.clearStitcher(c)}}function C(t,e,s,n,r,o){if(e.isEmpty()){const t=g(e,0);return void r.push(t)}if(s.isEmpty()){const t=g(e,0);return void r.push(t)}const c=[],d=new i;{const t=d.createGeometryUserIndex(),p=d.addGeometry(e),f=d.addGeometry(s),C=new m(o);let E=0,G=null;if(d.hasCurves()){G=new _;const t=d.getEnvelope2D(o);E=a(n.total());const e=h(n.total(),t);l(d,e,n.total(),12e3,G,null,o)}d.dbgVerifyCurves(),C.setEditShapeCrackAndCluster(d,n),C.cut(!1,t,p,f,c),null!==G&&G.stitchCurves(d,y,E,!0);let v=d.getGeometry(p);const w=new u,x=new u,k=[];for(let e=0;e<c.length;e++){let s=null;{const r=new i,u=r.addGeometry(v),m=r.addGeometry(d.getGeometry(c[e]));if(r.hasCurves()){const t=r.getEnvelope2D(o);E=a(n.total());const e=h(n.total(),t);l(r,e,n.total(),12e3,G,null,o)}C.setEditShapeCrackAndCluster(r,n);const p=C.intersection(u,m);if(null!==G&&G.stitchCurves(r,y,E,!0),s=r.getGeometry(p),s.isEmpty())continue;const _=d.getGeometryUserIndex(c[e],t);2===_?w.add(s,!1):1===_?x.add(s,!1):k.push(s)}{const t=new i,s=t.addGeometry(v),r=t.addGeometry(d.getGeometry(c[e]));if(t.hasCurves()){const e=t.getEnvelope2D(o);E=a(n.total());const s=h(n.total(),e);l(t,s,n.total(),12e3,G,null,o)}C.setEditShapeCrackAndCluster(t,n);const u=C.difference(s,r);null!==G&&G.stitchCurves(t,y,E,!0);v=t.getGeometry(u)}}if(!v.isEmpty()&&c.length>0&&k.push(v),w.isEmpty()&&x.isEmpty())return;if(!w.isEmpty()){const t=g(w,1);r.push(t)}if(!x.isEmpty()){const t=g(x,2);r.push(t)}for(let e=0,s=k.length;e<s;++e){const t=g(k[e],3);r.push(t)}}}class E{getOperatorType(){return 10005}accelerateGeometry(t,e,s){return!1}canAccelerateGeometry(t){return!1}supportsCurves(){return!0}execute(t,e,s,n,r){return new G(t,e,s,n,r)}}class G extends t{constructor(t,r,o,u,c){super(),this.m_cutIndex=-1,this.m_cuts=[],this.m_progressTracker=c,this.m_cuttee=r.clone(),this.m_cutter=new e({copy:o}),this.m_bConsiderTouch=t;const i=s(r,o);this.m_tolerance=n(u,i,!0)}next(){return-1===this.m_cutIndex&&this.generateCuts(),++this.m_cutIndex<this.m_cuts.length?this.m_cuts[this.m_cutIndex]:null}getGeometryID(){return 0}tock(){return!0}getRank(){return 1}generateCuts(){switch(this.m_cuttee.getGeometryType()){case r.enumPolyline:this.generatePolylineCuts();break;case r.enumPolygon:this.generatePolygonCuts()}}generatePolylineCuts(){const t=new e,s=new e,n=new e;this.m_cuts.length=0,this.m_cuts.push(t),this.m_cuts.push(s);const r=[];f(this.m_bConsiderTouch,this.m_cuttee,this.m_cutter,this.m_tolerance,r,this.m_progressTracker);for(let e=0;e<r.length;e++){const u=r[e];1===u.m_side?t.add(u.m_geometry,!1):2===u.m_side||4===u.m_side?s.add(u.m_geometry,!1):3===u.m_side?this.m_cuts.push(u.m_geometry):0===u.m_side?n.add(u.m_geometry,!1):o("")}n.isEmpty()||t.isEmpty()&&s.isEmpty()&&!(this.m_cuts.length>=3)||this.m_cuts.push(n),t.isEmpty()&&s.isEmpty()&&this.m_cuts.length<3&&(this.m_cuts.length=0)}generatePolygonCuts(){const t=new u,e=new u,s=new u;this.m_cuts.length=0,this.m_cuts.push(t),this.m_cuts.push(e);const n=[];C(this.m_bConsiderTouch,this.m_cuttee,this.m_cutter,this.m_tolerance,n,this.m_progressTracker);for(let r=0;r<n.length;r++){const u=n[r];1===u.m_side?t.add(u.m_geometry,!1):2===u.m_side?e.add(u.m_geometry,!1):3===u.m_side?this.m_cuts.push(u.m_geometry):0===u.m_side?s.add(u.m_geometry,!1):o("")}c(s.isEmpty()||1===n.length),t.isEmpty()&&e.isEmpty()&&this.m_cuts.length<3&&(this.m_cuts.length=0)}}const v=new E;function w(t,e,s){const n=v.execute(!0,t,e,s,null);return Array.from(n)}function x(){return v.supportsCurves()}export{w as execute,x as supportsCurves};
5
+ import{h as t,b as e,aS as s,V as n,G as r,o,a as u,g as c,aa as i,aT as m,aU as a,aV as h,aW as l,aX as d,aA as y,aY as p}from"../../../chunks/Polyline.js";var _=p;function g(t,e){return{m_geometry:t,m_side:e}}function f(t,e,s,n,r,o){if(e.isEmpty()){const t=g(e,0);return void r.push(t)}if(s.isEmpty()){const t=g(e,0);return void r.push(t)}const u=[],c=new i;{const i=c.createGeometryUserIndex(),y=c.addGeometry(e),p=c.addGeometry(s),f=new m(o);let C=0,E=null;if(c.hasCurves()){E=new _;const t=c.getEnvelope2D(o);C=a(n.total());const e=h(n.total(),t);l(c,e,n.total(),12e3,E,null,o)}c.dbgVerifyCurves(),f.setEditShapeCrackAndCluster(c,n),f.cut(t,i,y,p,u);for(const t of u){null!==E&&E.stitchCurves(c,t,C,!1);const e=g(c.getGeometry(t),d(c.getGeometryUserIndex(t,i)));r.push(e)}null!==E&&E.clearStitcher(c)}}function C(t,e,s,n,r,o){if(e.isEmpty()){const t=g(e,0);return void r.push(t)}if(s.isEmpty()){const t=g(e,0);return void r.push(t)}const c=[],d=new i;{const t=d.createGeometryUserIndex(),p=d.addGeometry(e),f=d.addGeometry(s),C=new m(o);let E=0,G=null;if(d.hasCurves()){G=new _;const t=d.getEnvelope2D(o);E=a(n.total());const e=h(n.total(),t);l(d,e,n.total(),12e3,G,null,o)}d.dbgVerifyCurves(),C.setEditShapeCrackAndCluster(d,n),C.cut(!1,t,p,f,c),null!==G&&G.stitchCurves(d,y,E,!0);let v=d.getGeometry(p);const w=new u,x=new u,k=[];for(let e=0;e<c.length;e++){let s=null;{const r=new i,u=r.addGeometry(v),m=r.addGeometry(d.getGeometry(c[e]));if(r.hasCurves()){const t=r.getEnvelope2D(o);E=a(n.total());const e=h(n.total(),t);l(r,e,n.total(),12e3,G,null,o)}C.setEditShapeCrackAndCluster(r,n);const p=C.intersection(u,m);if(null!==G&&G.stitchCurves(r,y,E,!0),s=r.getGeometry(p),s.isEmpty())continue;const _=d.getGeometryUserIndex(c[e],t);2===_?w.add(s,!1):1===_?x.add(s,!1):k.push(s)}{const t=new i,s=t.addGeometry(v),r=t.addGeometry(d.getGeometry(c[e]));if(t.hasCurves()){const e=t.getEnvelope2D(o);E=a(n.total());const s=h(n.total(),e);l(t,s,n.total(),12e3,G,null,o)}C.setEditShapeCrackAndCluster(t,n);const u=C.difference(s,r);null!==G&&G.stitchCurves(t,y,E,!0);v=t.getGeometry(u)}}if(!v.isEmpty()&&c.length>0&&k.push(v),w.isEmpty()&&x.isEmpty())return;if(!w.isEmpty()){const t=g(w,1);r.push(t)}if(!x.isEmpty()){const t=g(x,2);r.push(t)}for(let e=0,s=k.length;e<s;++e){const t=g(k[e],3);r.push(t)}}}class E{getOperatorType(){return 10005}accelerateGeometry(t,e,s){return!1}canAccelerateGeometry(t){return!1}supportsCurves(){return!0}execute(t,e,s,n,r){return new G(t,e,s,n,r)}}class G extends t{constructor(t,r,o,u,c){super(),this.m_cutIndex=-1,this.m_cuts=[],this.m_progressTracker=c,this.m_cuttee=r.clone(),this.m_cutter=new e({copy:o}),this.m_bConsiderTouch=t;const i=s(r,o);this.m_tolerance=n(u,i,!0)}next(){return-1===this.m_cutIndex&&this.generateCuts(),++this.m_cutIndex<this.m_cuts.length?this.m_cuts[this.m_cutIndex]:null}getGeometryID(){return 0}tock(){return!0}getRank(){return 1}generateCuts(){switch(this.m_cuttee.getGeometryType()){case r.enumPolyline:this.generatePolylineCuts();break;case r.enumPolygon:this.generatePolygonCuts()}}generatePolylineCuts(){const t=new e,s=new e,n=new e;this.m_cuts.length=0,this.m_cuts.push(t),this.m_cuts.push(s);const r=[];f(this.m_bConsiderTouch,this.m_cuttee,this.m_cutter,this.m_tolerance,r,this.m_progressTracker);for(let e=0;e<r.length;e++){const u=r[e];1===u.m_side?t.add(u.m_geometry,!1):2===u.m_side||4===u.m_side?s.add(u.m_geometry,!1):3===u.m_side?this.m_cuts.push(u.m_geometry):0===u.m_side?n.add(u.m_geometry,!1):o("")}n.isEmpty()||t.isEmpty()&&s.isEmpty()&&!(this.m_cuts.length>=3)||this.m_cuts.push(n),t.isEmpty()&&s.isEmpty()&&this.m_cuts.length<3&&(this.m_cuts.length=0)}generatePolygonCuts(){const t=new u,e=new u,s=new u;this.m_cuts.length=0,this.m_cuts.push(t),this.m_cuts.push(e);const n=[];C(this.m_bConsiderTouch,this.m_cuttee,this.m_cutter,this.m_tolerance,n,this.m_progressTracker);for(let r=0;r<n.length;r++){const u=n[r];1===u.m_side?t.add(u.m_geometry,!1):2===u.m_side?e.add(u.m_geometry,!1):3===u.m_side?this.m_cuts.push(u.m_geometry):0===u.m_side?s.add(u.m_geometry,!1):o("")}c(s.isEmpty()||1===n.length),t.isEmpty()&&e.isEmpty()&&this.m_cuts.length<3&&(this.m_cuts.length=0)}}const v=new E;function w(t,e,s){const n=v.execute(!0,t,e,s,null);return Array.from(n)}function x(){return v.supportsCurves()}export{w as execute,x as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
4
  */
5
- import{S as n,u as e}from"../../../chunks/Polyline.js";const r=new e;function u(n,e,u){return r.execute(n,e,u,null)}function t(e,u,t){const o=r.executeMany(new n(e),new n([u]),t,null);return Array.from(o)}function o(){return r.supportsCurves()}export{u as execute,t as executeMany,o as supportsCurves};
5
+ import{S as n,r as e}from"../../../chunks/Polyline.js";const r=new e;function t(n,e,t){return r.execute(n,e,t,null)}function u(e,t,u){const o=r.executeMany(new n(e),new n([t]),u,null);return Array.from(o)}function o(){return r.supportsCurves()}export{t as execute,u as executeMany,o as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
4
  */
5
- import{F as e,S as n}from"../../../chunks/Polyline.js";import{l as r,i as t,p as o}from"../../../chunks/pe.js";let s;function u(){return!!s&&t()}async function c(){if(!u()){const[n]=await Promise.all([import("../../../chunks/OperatorGeodesicBuffer.js"),r()]);s=new n.OperatorGeodesicBuffer,e(o)}}function i(e,n,r,t,o){return s.execute(e,n,r,t,o,!1,null)}function a(e,r,t,o,u,c){const i=s.executeMany(new n(e),r,t,o,u,!1,c,null);return Array.from(i)}function f(){return s.supportsCurves()}export{i as execute,a as executeMany,u as isLoaded,c as load,f as supportsCurves};
5
+ import{D as e,S as n}from"../../../chunks/Polyline.js";import{l as r,i as t,p as o}from"../../../chunks/pe.js";let s;function u(){return!!s&&t()}async function c(){if(!u()){const[n]=await Promise.all([import("../../../chunks/OperatorGeodesicBuffer.js"),r()]);s=new n.OperatorGeodesicBuffer,e(o)}}function i(e,n,r,t,o){return s.execute(e,n,r,t,o,!1,null)}function a(e,r,t,o,u,c){const i=s.executeMany(new n(e),r,t,o,u,!1,c,null);return Array.from(i)}function f(){return s.supportsCurves()}export{i as execute,a as executeMany,u as isLoaded,c as load,f as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
4
  */
5
- import{F as e}from"../../../chunks/Polyline.js";import{l as r,i as t,p as n}from"../../../chunks/pe.js";let o;function s(){return!!o&&t()}async function i(){if(!s()){const[t]=await Promise.all([import("../../../chunks/OperatorGeodeticArea.js"),r()]);o=new t.OperatorGeodeticArea,e(n)}}function u(e,r,t){return o.execute(e,r,t,null)}function a(){return o.supportsCurves()}export{u as execute,s as isLoaded,i as load,a as supportsCurves};
5
+ import{D as e}from"../../../chunks/Polyline.js";import{l as r,i as t,p as n}from"../../../chunks/pe.js";let o;function s(){return!!o&&t()}async function i(){if(!s()){const[t]=await Promise.all([import("../../../chunks/OperatorGeodeticArea.js"),r()]);o=new t.OperatorGeodeticArea,e(n)}}function u(e,r,t){return o.execute(e,r,t,null)}function a(){return o.supportsCurves()}export{u as execute,s as isLoaded,i as load,a as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
4
  */
5
- import{F as n,S as e}from"../../../chunks/Polyline.js";import{l as t,i as r,p as o}from"../../../chunks/pe.js";let s;function u(){return!!s&&r()}async function i(){if(!u()){const[e]=await Promise.all([import("../../../chunks/OperatorGeodeticDensifyByLength.js"),t()]);s=new e.OperatorGeodeticDensifyByLength,n(o)}}function c(n,e,t,r){return s.execute(n,e,t,r,null)}function a(n,t,r,o){const u=s.executeMany(new e(n),t,r,o,null);return Array.from(u)}function f(){return s.supportsCurves()}export{c as execute,a as executeMany,u as isLoaded,i as load,f as supportsCurves};
5
+ import{D as n,S as e}from"../../../chunks/Polyline.js";import{l as t,i as r,p as o}from"../../../chunks/pe.js";let s;function u(){return!!s&&r()}async function i(){if(!u()){const[e]=await Promise.all([import("../../../chunks/OperatorGeodeticDensifyByLength.js"),t()]);s=new e.OperatorGeodeticDensifyByLength,n(o)}}function c(n,e,t,r){return s.execute(n,e,t,r,null)}function a(n,t,r,o){const u=s.executeMany(new e(n),t,r,o,null);return Array.from(u)}function f(){return s.supportsCurves()}export{c as execute,a as executeMany,u as isLoaded,i as load,f as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
4
  */
5
- import{F as t}from"../../../chunks/Polyline.js";import{l as e,i as n,p as r}from"../../../chunks/pe.js";let o;function s(){return!!o&&n()}async function i(){if(!s()){const[n]=await Promise.all([import("../../../chunks/OperatorGeodeticDistance.js"),e()]);o=new n.OperatorGeodeticDistance,t(r)}}function c(t,e,n,r){return o.execute(t,e,n,r,null)}function u(){return o.supportsCurves()}export{c as execute,s as isLoaded,i as load,u as supportsCurves};
5
+ import{D as t}from"../../../chunks/Polyline.js";import{l as e,i as n,p as r}from"../../../chunks/pe.js";let o;function s(){return!!o&&n()}async function i(){if(!s()){const[n]=await Promise.all([import("../../../chunks/OperatorGeodeticDistance.js"),e()]);o=new n.OperatorGeodeticDistance,t(r)}}function c(t,e,n,r){return o.execute(t,e,n,r,null)}function u(){return o.supportsCurves()}export{c as execute,s as isLoaded,i as load,u as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
4
  */
5
- import{F as t}from"../../../chunks/Polyline.js";import{l as e,i as n,p as r}from"../../../chunks/pe.js";let o;function s(){return!!o&&n()}async function i(){if(!s()){const[n]=await Promise.all([import("../../../chunks/OperatorGeodeticLength.js"),e()]);o=new n.OperatorGeodeticLength,t(r)}}function u(t,e,n){return o.execute(t,e,n,null)}function c(){return o.supportsCurves()}export{u as execute,s as isLoaded,i as load,c as supportsCurves};
5
+ import{D as t}from"../../../chunks/Polyline.js";import{l as e,i as n,p as r}from"../../../chunks/pe.js";let o;function s(){return!!o&&n()}async function i(){if(!s()){const[n]=await Promise.all([import("../../../chunks/OperatorGeodeticLength.js"),e()]);o=new n.OperatorGeodeticLength,t(r)}}function u(t,e,n){return o.execute(t,e,n,null)}function c(){return o.supportsCurves()}export{u as execute,s as isLoaded,i as load,c as supportsCurves};
@@ -0,0 +1,5 @@
1
+ /*
2
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
+ */
5
+ import{J as e,h as t,x as r,j as s,S as i}from"../../../chunks/Polyline.js";import{B as n}from"../../../chunks/Bufferer-93RDFIRm.js";class m{getOperatorType(){return 10111}supportsCurves(){return!0}accelerateGeometry(e,t,r){return!1}canAccelerateGeometry(e){return!1}executeMany(t,r,s,i,n,m,a,h,c,o,_){if(c){const c=new u(t,r,s,i,n,m,a,h,_);return(new e).executeMany(c,r,_,2)}return new u(t,r,s,i,n,m,a,h,_)}}class u extends t{constructor(e,t,s,i,m,u,a,h,c){super(),this.m_currentUnionEnvelope2D=new r,this.m_index=-1,this.m_dindex=-1,this.m_progressTracker=c,this.m_bufferer=new n(c),this.m_inputGeoms=e,this.m_spatialReference=t,this.m_distances=s,this.m_maxDeviation=a,this.m_maxVerticesInFullCircle=h,this.m_joins=i,this.m_caps=m,this.m_miterLimit=u}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,t){return this.m_bufferer.buffer(e,t,this.m_spatialReference,this.m_joins,this.m_caps,this.m_miterLimit,this.m_maxDeviation,this.m_maxVerticesInFullCircle)}}const a=new m;function h(e,t,r,s,n,m,u,h,c){const o=a.executeMany(new i(e),t,r,s,n,m,u,h,c,0,null);return Array.from(o)}function c(){return a.supportsCurves()}export{h as executeMany,c as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
4
  */
5
- import{h as e,ac as t,aG as s,aY as i,aZ as r,G as m,a_ as o,y as h,j as n,a$ as a,W as _,aU as p,aT as u,aV as l,b0 as y,b1 as c,P as g,aX as G,b2 as d,S as f}from"../../../chunks/Polyline.js";class x{getOperatorType(){return 10009}supportsCurves(){return!0}accelerateGeometry(e,t,s){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,s,i=0){return new T(e,t,s,i)}}class T extends e{constructor(e,m,o,h){super(),this.m_shape=new t,this.m_currentGeom=s,this.m_progressCounter=0,this.m_geomIndex=-1,this.m_geomTypeIndex=-1,this.m_index=-1,this.m_bBuilt=!1,this.m_bOutputOnlyModified=!1,this.m_bSimplifyPolygons=!1,this.m_bSnapToSr=!1,this.m_progressTracker=o,this.m_inputGeometries=e,this.m_sr=m,this.m_options=h,1===h||2===h?(this.m_bOutputOnlyModified=!0,this.m_options=0,this.m_bSimplifyPolygons=!0,this.m_bSnapToSr=null!=m&&2===h,this.m_bSnapToSr&&!i()&&r("PE is required for snapping to spatial reference operation")):0===h&&(this.m_bSimplifyPolygons=!0)}progress_(e=!1){}tock(){return!0}getRank(){return 1}moveToNextGeom(){for(;;){if(this.m_bBuilt?this.m_currentGeom=this.m_shape.getNextGeometry(this.m_currentGeom):(this.m_currentGeom=this.m_shape.getFirstGeometry(),this.m_bBuilt=!0),this.m_currentGeom!==s){let e=!1;if(this.m_bSimplifyPolygons&&this.m_shape.getGeometryType(this.m_currentGeom)===m.enumPolygon&&(e=o(this.m_shape,this.m_currentGeom,-1,!1,s,this.m_progressTracker)),this.m_bOutputOnlyModified&&!e&&!this.m_shape.getGeometryModified(this.m_currentGeom))continue}break}}next(){if(this.m_bBuilt)this.moveToNextGeom();else{this.m_geomIndex=this.m_shape.createGeometryUserIndex();const e=new h;for(let s=this.m_inputGeometries.next();null!=s;s=this.m_inputGeometries.next()){this.progress_(),n(s);let t=!1;this.m_bSnapToSr&&(s=s.clone(),t=a(this.m_sr,s));const i=this.m_shape.addGeometry(s);this.m_shape.setGeometryUserIndex(i,this.m_geomIndex,this.m_inputGeometries.getGeometryID());const r=s.getGeometryType();r===m.enumPoint&&(-1===this.m_geomTypeIndex&&(this.m_geomTypeIndex=this.m_shape.createGeometryUserIndex()),this.m_shape.setGeometryUserIndex(i,this.m_geomTypeIndex,r));const o=new h;s.queryLooseEnvelope(o),e.mergeEnvelope2D(o),t&&this.m_shape.setGeometryModified(i,!0)}const t=_(this.m_sr,e,!0),i=_(this.m_sr,e,!1);e.inflate(10*t.total()),this.m_shape.forceSetEnvelope2D(e);let r=null,g=0,f=0;if(this.m_shape.hasCurves()){r=new G;const s=p(t.total(),e);g=u(t.total()),f=d(s,g),l(this.m_shape,s,t.total(),12e3,r,null,this.m_progressTracker)}if(y(this.m_shape,i,this.m_progressTracker)){if(c(this.m_shape,t.add(f),this.m_progressTracker,0===this.m_options,this.m_bOutputOnlyModified),null!==r){if(this.m_bSimplifyPolygons){for(let e=this.m_shape.getFirstGeometry();e!==s;e=this.m_shape.getNextGeometry(e))if(this.m_shape.getGeometryType(e)===m.enumPolygon){o(this.m_shape,e,-1,!1,s,this.m_progressTracker)&&this.m_shape.setGeometryModified(e,!0)}this.m_bSimplifyPolygons=!1}r.stitchCurves(this.m_shape,s,g,!0),r.clearStitcher(this.m_shape)}}else this.m_bSimplifyPolygons=!1,null!==r&&(r.stitchCurves(this.m_shape,s,g,!0),r.clearStitcher(this.m_shape));this.moveToNextGeom()}if(this.m_currentGeom!==s){if(this.m_index=this.m_shape.getGeometryUserIndex(this.m_currentGeom,this.m_geomIndex),-1!==this.m_geomTypeIndex&&this.m_shape.getGeometryUserIndex(this.m_currentGeom,this.m_geomTypeIndex)===m.enumPoint){const e=new g({vd:this.m_shape.getVertexDescription()});return this.m_shape.queryPointGeometryOnly(this.m_currentGeom,e),this.m_bSnapToSr&&a(this.m_sr,e),e}{const e=this.m_shape.getGeometry(this.m_currentGeom);return this.m_bSnapToSr&&a(this.m_sr,e),e}}return null}getGeometryID(){return this.m_index}}const b=new x;function S(e,t,s){const i=b.executeMany(new f(e),t,null,s);return Array.from(i)}function I(){return b.supportsCurves()}export{S as executeMany,I as supportsCurves};
5
+ import{h as e,aa as t,aA as s,aZ as i,a_ as r,G as m,a$ as o,x as h,j as n,b0 as a,V as _,aV as p,aU as u,aW as l,b1 as y,b2 as c,P as g,aY as G,b3 as d,S as f}from"../../../chunks/Polyline.js";class x{getOperatorType(){return 10009}supportsCurves(){return!0}accelerateGeometry(e,t,s){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,s,i=0){return new b(e,t,s,i)}}class b extends e{constructor(e,m,o,h){super(),this.m_shape=new t,this.m_currentGeom=s,this.m_progressCounter=0,this.m_geomIndex=-1,this.m_geomTypeIndex=-1,this.m_index=-1,this.m_bBuilt=!1,this.m_bOutputOnlyModified=!1,this.m_bSimplifyPolygons=!1,this.m_bSnapToSr=!1,this.m_progressTracker=o,this.m_inputGeometries=e,this.m_sr=m,this.m_options=h,1===h||2===h?(this.m_bOutputOnlyModified=!0,this.m_options=0,this.m_bSimplifyPolygons=!0,this.m_bSnapToSr=null!=m&&2===h,this.m_bSnapToSr&&!i()&&r("PE is required for snapping to spatial reference operation")):0===h&&(this.m_bSimplifyPolygons=!0)}progress_(e=!1){}tock(){return!0}getRank(){return 1}moveToNextGeom(){for(;;){if(this.m_bBuilt?this.m_currentGeom=this.m_shape.getNextGeometry(this.m_currentGeom):(this.m_currentGeom=this.m_shape.getFirstGeometry(),this.m_bBuilt=!0),this.m_currentGeom!==s){let e=!1;if(this.m_bSimplifyPolygons&&this.m_shape.getGeometryType(this.m_currentGeom)===m.enumPolygon&&(e=o(this.m_shape,this.m_currentGeom,-1,!1,s,this.m_progressTracker)),this.m_bOutputOnlyModified&&!e&&!this.m_shape.getGeometryModified(this.m_currentGeom))continue}break}}next(){if(this.m_bBuilt)this.moveToNextGeom();else{this.m_geomIndex=this.m_shape.createGeometryUserIndex();const e=new h;for(let s=this.m_inputGeometries.next();null!=s;s=this.m_inputGeometries.next()){this.progress_(),n(s);let t=!1;this.m_bSnapToSr&&(s=s.clone(),t=a(this.m_sr,s));const i=this.m_shape.addGeometry(s);this.m_shape.setGeometryUserIndex(i,this.m_geomIndex,this.m_inputGeometries.getGeometryID());const r=s.getGeometryType();r===m.enumPoint&&(-1===this.m_geomTypeIndex&&(this.m_geomTypeIndex=this.m_shape.createGeometryUserIndex()),this.m_shape.setGeometryUserIndex(i,this.m_geomTypeIndex,r));const o=new h;s.queryLooseEnvelope(o),e.mergeEnvelope2D(o),t&&this.m_shape.setGeometryModified(i,!0)}const t=_(this.m_sr,e,!0),i=_(this.m_sr,e,!1);e.inflate(10*t.total()),this.m_shape.forceSetEnvelope2D(e);let r=null,g=0,f=0;if(this.m_shape.hasCurves()){r=new G;const s=p(t.total(),e);g=u(t.total()),f=d(s,g),l(this.m_shape,s,t.total(),12e3,r,null,this.m_progressTracker)}if(y(this.m_shape,i,this.m_progressTracker)){if(c(this.m_shape,t.add(f),this.m_progressTracker,0===this.m_options,this.m_bOutputOnlyModified),null!==r){if(this.m_bSimplifyPolygons){for(let e=this.m_shape.getFirstGeometry();e!==s;e=this.m_shape.getNextGeometry(e))if(this.m_shape.getGeometryType(e)===m.enumPolygon){o(this.m_shape,e,-1,!1,s,this.m_progressTracker)&&this.m_shape.setGeometryModified(e,!0)}this.m_bSimplifyPolygons=!1}r.stitchCurves(this.m_shape,s,g,!0),r.clearStitcher(this.m_shape)}}else this.m_bSimplifyPolygons=!1,null!==r&&(r.stitchCurves(this.m_shape,s,g,!0),r.clearStitcher(this.m_shape));this.moveToNextGeom()}if(this.m_currentGeom!==s){if(this.m_index=this.m_shape.getGeometryUserIndex(this.m_currentGeom,this.m_geomIndex),-1!==this.m_geomTypeIndex&&this.m_shape.getGeometryUserIndex(this.m_currentGeom,this.m_geomTypeIndex)===m.enumPoint){const e=new g({vd:this.m_shape.getVertexDescription()});return this.m_shape.queryPointGeometryOnly(this.m_currentGeom,e),this.m_bSnapToSr&&a(this.m_sr,e),e}{const e=this.m_shape.getGeometry(this.m_currentGeom);return this.m_bSnapToSr&&a(this.m_sr,e),e}}return null}getGeometryID(){return this.m_index}}const T=new x;function S(e,t,s){const i=T.executeMany(new f(e),t,null,s);return Array.from(i)}function I(){return T.supportsCurves()}export{S as executeMany,I as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
4
  */
5
- import{S as n,H as e}from"../../../chunks/Polyline.js";const r=new e;function t(n,e,t){return r.execute(n,e,t,null)}function u(e,t,u,o){const s=r.executeMany(new n(e),new n([t]),u,null,o);return Array.from(s)}function o(){return r.supportsCurves()}export{t as execute,u as executeMany,o as supportsCurves};
5
+ import{S as n,F as e}from"../../../chunks/Polyline.js";const r=new e;function t(n,e,t){return r.execute(n,e,t,null)}function u(e,t,u,o){const s=r.executeMany(new n(e),new n([t]),u,null,o);return Array.from(s)}function o(){return r.supportsCurves()}export{t as execute,u as executeMany,o as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
4
  */
5
- import{h as e,g as t,j as n,t as r,G as o,P as s,y as a,W as i,a as l,b3 as u,e as c,b4 as m,w as N,b5 as g,L as y,a7 as h,S as P}from"../../../chunks/Polyline.js";import{a as x}from"../../../chunks/Centroid-DZi-eb9F.js";import{O as d}from"../../../chunks/OperatorProximity.js";class b{getOperatorType(){return 10203}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}executeMany(e,t){return new w(e,t)}execute(e,t){return new w(null,t).labelPoint(e)}}class w extends e{progress_(){}tock(){return t(0),!1}getRank(){return t(0),0}constructor(e,t){super(),this.m_index=-1,this.m_progressCounter=0,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 s({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 n=new a;e.queryEnvelope(n);const r=i(null,n,!0).total();let o=null,y=e;if(e.hasNonLinearSegments()){const n=new l({copy:e}),s=u(n,.25*r,r,this.m_progressTracker);t(s!==e),o=s,y=o}let h=0,P=0;for(let t=0,s=y.getPathCount();t<s;++t){const e=Math.abs(y.calculateRingArea2D(t));e>P&&(P=e,h=t)}const b=new c;if(Math.abs(P)<=2*r*r?b.setNAN():b.assign(x(y,h)),Number.isNaN(b.x)){const e=new a;return y.queryPathEnvelope(h,e),new s({pt:e.getCenter()})}if(y.getPointCount()<4)return new s({x:b.x,y:b.y});const w=c.getNAN(),p=[w.clone(),w.clone(),w.clone(),w.clone()],f=[Number.NaN,Number.NaN,Number.NaN,Number.NaN],C=[Number.NaN,Number.NaN,Number.NaN,Number.NaN];let _=!1,D=(new d).getNearestCoordinate(y,b,!0,!1);if(0===D.m_distance&&(_=!0,p[0]=b,D=(new d).getNearestCoordinate(y,b,!1,!1),D.m_distance>.25*n.minDimension()*1.66666666))return new s({x:b.x,y:b.y});f[0]=D.m_distance,C[0]=0;const A=new c;let E=!1,k=.25,q=-1;const M=new a;y.queryPathEnvelope(h,M);do{let e=Number.NaN;if(p[1]=this.calculateParacentroid_(y,m(M.xmin,M.xmax,k),r),p[1].isNAN()||(D=(new d).getNearestCoordinate(y,p[1],!1,!1),e=D.m_distance),e>r&&1===N(y,p[1],r))E=!0,f[1]=e,C[1]=c.sqrDistance(p[1],b);else if(e>q&&(q=e,A.setCoordsPoint2D(p[1])),k-=.01,k<.1){if(!(q>=0))break;E=!0,f[1]=q,p[1]=A,C[1]=c.sqrDistance(p[1],b)}}while(!E);E=!1,k=.5,q=-1;let v=.01,S=1;do{let e=Number.NaN;if(p[2]=this.calculateParacentroid_(y,m(M.xmin,M.xmax,k),r),p[2].isNAN()||(D=(new d).getNearestCoordinate(y,p[2],!1,!1),e=D.m_distance),e>r&&1===N(y,p[2],r))E=!0,f[2]=e,C[2]=c.sqrDistance(p[2],b);else if(e>q&&(q=e,A.setCoordsPoint2D(p[2])),k=.5+v*S,v+=.01,S*=-1,k<.3||k>.7){if(!(q>=0))break;E=!0,f[2]=q,p[2]=A,C[2]=c.sqrDistance(p[2],b)}}while(!E);E=!1,k=.75,q=-1;do{let e=Number.NaN;if(p[3]=this.calculateParacentroid_(y,m(M.xmin,M.xmax,k),r),p[3].isNAN()||(D=(new d).getNearestCoordinate(y,p[3],!1,!1),e=D.m_distance),e>r&&1===N(y,p[3],r))E=!0,f[3]=e,C[3]=c.sqrDistance(p[3],b);else if(e>q&&(q=e,A.setCoordsPoint2D(p[3])),k+=.01,k>.9){if(!(q>=0))break;E=!0,f[3]=q,p[3]=A,C[3]=c.sqrDistance(p[3],b)}}while(!E);const G=[0,1,2,3],X=_?0:1;for(let t=X;t<4;t++)for(let e=X;e<3;e++){const t=C[e],n=C[e+1];if(g(t,n)>0){const r=G[e];G[e]=G[e+1],G[e+1]=r,C[e]=n,C[e+1]=t}}let L=X,T=0,Y=0;for(let t=X;t<4;t++){switch(t){case 0:Y=2*f[G[t]];break;case 1:Y=1.66666666*f[G[t]];break;case 2:Y=1.33333333*f[G[t]];break;case 3:Y=f[G[t]]}Y>T&&(T=Y,L=G[t])}return t(!p[L].isNAN()),new s({x:p[L].x,y:p[L].y})}labelPointPolyline(e){const t=new c;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 s({x:t.x,y:t.y})}labelPointMultiPoint(e){const t=new a;e.queryEnvelope(t);const n=t.getCenter(),r=(new d).getNearestCoordinate(e,n,!1,!1).m_coordinate;return new s({x:r.x,y:r.y})}labelPointEnvelope(e){const t=e.getCenterXY();return new s({x:t.x,y:t.y})}calculateParacentroid_(e,n,r){const o=new a;e.queryEnvelope(o);const s=new c(n,0);let i=Number.MAX_VALUE,l=Number.MAX_VALUE,u=!1,m=!1;const N=new y;N.setStartXYCoords(s.x,o.ymin-1),N.setEndXYCoords(s.x,o.ymax+1);const g=new a,P=new c,x=new c,d=h(c,2),b=e.querySegmentIterator();for(;b.nextPath();)for(;b.hasNextSegment();){const e=b.nextSegment();if(e.queryEnvelope(g),t(e.isMonotoneQuickAndDirty()),P.setCoordsPoint2D(N.getStartXY()),x.setCoordsPoint2D(N.getEndXY()),0===g.clipLine(P,x))continue;if(1!==N.intersect(e,d,null,null,r))continue;const n=d[0].y;i>l?n<i&&(i=n,u=!0):n<l&&(l=n,m=!0)}return u&&m?s.y=(i+l)/2:s.setNAN(),s}}const p=new b;function f(e){return p.execute(e,null)}function C(e){const t=p.executeMany(new P(e),null);return Array.from(t)}function _(){return p.supportsCurves()}export{f as execute,C as executeMany,_ as supportsCurves};
5
+ import{h as e,g as t,j as n,t as r,G as o,P as s,x as a,V as i,a as l,b4 as u,e as c,b5 as m,v as N,b6 as g,L as y,a5 as h,S as P}from"../../../chunks/Polyline.js";import{a as x}from"../../../chunks/Centroid-DZi-eb9F.js";import{O as d}from"../../../chunks/OperatorProximity.js";class b{getOperatorType(){return 10203}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}executeMany(e,t){return new p(e,t)}execute(e,t){return new p(null,t).labelPoint(e)}}class p extends e{progress_(){}tock(){return t(0),!1}getRank(){return t(0),0}constructor(e,t){super(),this.m_index=-1,this.m_progressCounter=0,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 s({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 n=new a;e.queryEnvelope(n);const r=i(null,n,!0).total();let o=null,y=e;if(e.hasNonLinearSegments()){const n=new l({copy:e}),s=u(n,.25*r,r,this.m_progressTracker);t(s!==e),o=s,y=o}let h=0,P=0;for(let t=0,s=y.getPathCount();t<s;++t){const e=Math.abs(y.calculateRingArea2D(t));e>P&&(P=e,h=t)}const b=new c;if(Math.abs(P)<=2*r*r?b.setNAN():b.assign(x(y,h)),Number.isNaN(b.x)){const e=new a;return y.queryPathEnvelope(h,e),new s({pt:e.getCenter()})}if(y.getPointCount()<4)return new s({x:b.x,y:b.y});const p=c.getNAN(),w=[p.clone(),p.clone(),p.clone(),p.clone()],f=[Number.NaN,Number.NaN,Number.NaN,Number.NaN],C=[Number.NaN,Number.NaN,Number.NaN,Number.NaN];let _=!1,D=(new d).getNearestCoordinate(y,b,!0,!1);if(0===D.m_distance&&(_=!0,w[0]=b,D=(new d).getNearestCoordinate(y,b,!1,!1),D.m_distance>.25*n.minDimension()*1.66666666))return new s({x:b.x,y:b.y});f[0]=D.m_distance,C[0]=0;const A=new c;let E=!1,k=.25,q=-1;const v=new a;y.queryPathEnvelope(h,v);do{let e=Number.NaN;if(w[1]=this.calculateParacentroid_(y,m(v.xmin,v.xmax,k),r),w[1].isNAN()||(D=(new d).getNearestCoordinate(y,w[1],!1,!1),e=D.m_distance),e>r&&1===N(y,w[1],r))E=!0,f[1]=e,C[1]=c.sqrDistance(w[1],b);else if(e>q&&(q=e,A.setCoordsPoint2D(w[1])),k-=.01,k<.1){if(!(q>=0))break;E=!0,f[1]=q,w[1]=A,C[1]=c.sqrDistance(w[1],b)}}while(!E);E=!1,k=.5,q=-1;let M=.01,S=1;do{let e=Number.NaN;if(w[2]=this.calculateParacentroid_(y,m(v.xmin,v.xmax,k),r),w[2].isNAN()||(D=(new d).getNearestCoordinate(y,w[2],!1,!1),e=D.m_distance),e>r&&1===N(y,w[2],r))E=!0,f[2]=e,C[2]=c.sqrDistance(w[2],b);else if(e>q&&(q=e,A.setCoordsPoint2D(w[2])),k=.5+M*S,M+=.01,S*=-1,k<.3||k>.7){if(!(q>=0))break;E=!0,f[2]=q,w[2]=A,C[2]=c.sqrDistance(w[2],b)}}while(!E);E=!1,k=.75,q=-1;do{let e=Number.NaN;if(w[3]=this.calculateParacentroid_(y,m(v.xmin,v.xmax,k),r),w[3].isNAN()||(D=(new d).getNearestCoordinate(y,w[3],!1,!1),e=D.m_distance),e>r&&1===N(y,w[3],r))E=!0,f[3]=e,C[3]=c.sqrDistance(w[3],b);else if(e>q&&(q=e,A.setCoordsPoint2D(w[3])),k+=.01,k>.9){if(!(q>=0))break;E=!0,f[3]=q,w[3]=A,C[3]=c.sqrDistance(w[3],b)}}while(!E);const G=[0,1,2,3],X=_?0:1;for(let t=X;t<4;t++)for(let e=X;e<3;e++){const t=C[e],n=C[e+1];if(g(t,n)>0){const r=G[e];G[e]=G[e+1],G[e+1]=r,C[e]=n,C[e+1]=t}}let L=X,T=0,Y=0;for(let t=X;t<4;t++){switch(t){case 0:Y=2*f[G[t]];break;case 1:Y=1.66666666*f[G[t]];break;case 2:Y=1.33333333*f[G[t]];break;case 3:Y=f[G[t]]}Y>T&&(T=Y,L=G[t])}return t(!w[L].isNAN()),new s({x:w[L].x,y:w[L].y})}labelPointPolyline(e){const t=new c;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 s({x:t.x,y:t.y})}labelPointMultiPoint(e){const t=new a;e.queryEnvelope(t);const n=t.getCenter(),r=(new d).getNearestCoordinate(e,n,!1,!1).m_coordinate;return new s({x:r.x,y:r.y})}labelPointEnvelope(e){const t=e.getCenterXY();return new s({x:t.x,y:t.y})}calculateParacentroid_(e,n,r){const o=new a;e.queryEnvelope(o);const s=new c(n,0);let i=Number.MAX_VALUE,l=Number.MAX_VALUE,u=!1,m=!1;const N=new y;N.setStartXYCoords(s.x,o.ymin-1),N.setEndXYCoords(s.x,o.ymax+1);const g=new a,P=new c,x=new c,d=h(c,2),b=e.querySegmentIterator();for(;b.nextPath();)for(;b.hasNextSegment();){const e=b.nextSegment();if(e.queryEnvelope(g),t(e.isMonotoneQuickAndDirty()),P.setCoordsPoint2D(N.getStartXY()),x.setCoordsPoint2D(N.getEndXY()),0===g.clipLine(P,x))continue;if(1!==N.intersect(e,d,null,null,r))continue;const n=d[0].y;i>l?n<i&&(i=n,u=!0):n<l&&(l=n,m=!0)}return u&&m?s.y=(i+l)/2:s.setNAN(),s}}const w=new b;function f(e){return w.execute(e,null)}function C(e){const t=w.executeMany(new P(e),null);return Array.from(t)}function _(){return w.supportsCurves()}export{f as execute,C as executeMany,_ as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
4
  */
5
- import{h as t,j as s,a1 as e,t as i,G as n,l as o,b as h,a as r,m,as as a,e as _,aj as f,b6 as c,b7 as d,b8 as P,S as u}from"../../../chunks/Polyline.js";function l(t,e,n,o,h,r){if(null===t&&i(""),t.getDimension()<1&&i(""),h>0||i(""),s(t),0===e||t.isEmpty())return t;const m=new A(r);return m.m_bUseZ=t.hasAttribute(1),m.m_bUseM=t.hasAttribute(2),m.m_inputGeometry=t,m.m_distance=e,m.m_tolerance=h,m.m_joins=n,m.m_miterLimit=o,m.m_progressCounter=0,m.constructOffset()}const y=1.4142135623730951,x=.017453292519943295,p=256,b=512,M=1024;class g{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 _(this.x,this.y)}}function C(){return{pt:new g,bAtExistingPt:!1}}class A{constructor(t){this.m_distance=-1,this.m_tolerance=-1,this.m_miterLimit=10,this.m_joins=0,this.m_progressCounter=0,this.m_bUseZ=!1,this.m_bUseM=!1,this.m_srcPts=[],this.m_srcPtCount=0,this.m_offsetPts=[],this.m_offsetPtCount=0,this.m_a1=0,this.m_a2=0,this.m_progressTracker=t}constructOffset(){const t=this.m_inputGeometry.getGeometryType();if(t===n.enumLine)return this.offsetLine();if(t===n.enumEnvelope)return this.offsetEnvelope();if(o(t)){const t=new h;return t.addSegment(this.m_inputGeometry,!0),this.m_inputGeometry=t,this.constructOffset()}if(t===n.enumPolyline){const t=new h;return this.offsetMultiPath(t),t}if(t===n.enumPolygon){const t=new r;return this.offsetMultiPath(t),t}m("")}offsetLine(){const t=this.m_inputGeometry,s=t.getStartXY(),e=t.getEndXY(),i=new _;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 r;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=A.dotSign(i,n,this.m_offsetPts[this.m_offsetPtCount-1],t);if(o>0)this.addPoint(t);else if(o<0)if(A.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(A.buildPoint(i,this.m_distance,r-a,n),this.m_offsetPts[this.m_offsetPtCount-1]=n,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),A.buildPoint(i,this.m_distance,this.m_a1+a,n);const t=n.clone();t.x=.5*(t.x+i.x),t.y=.5*(t.y+i.y),t.type|=p,this.addPoint(t),this.addPoint(n)}else A.buildPoint(i,this.m_distance,this.m_a1+a,n),n.type|=p,this.addPoint(n);this.addPointEx(t,s)}else{const t=new g;if(A.buildPoint(n,this.m_distance,this.m_a1+a,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),A.buildPoint(n,this.m_distance,this.m_a2-a,t);const s=t.clone();s.x=.5*(s.x+n.x),s.y=.5*(s.y+n.y),s.type|=p,this.addPoint(s),this.addPoint(t)}else A.buildPoint(n,this.m_distance,this.m_a2-a,t),t.type|=p,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 c,d,P=0;{const t=r.x-h.x,s=r.y-h.y,e=m.x-h.x,a=m.y-h.y;c=Math.atan2(s,t),d=Math.atan2(a,e),this.m_a1=c,this.m_a2=d,0===o&&(i=c,n=d),P=_.orientationRobust(h.asPoint2D(),r.asPoint2D(),m.asPoint2D())}const u=d;if(d<c&&(d+=f),P*this.m_distance>0)if(1===this.m_joins||2===this.m_joins){A.buildPoint(h,this.m_distance,c+a,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),A.buildPoint(h,this.m_distance,d-a,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|=p,this.addPoint(e),this.addPoint(t)}else{const s=.5*(d-c),e=0===s?this.m_distance:this.m_distance/Math.abs(Math.sin(s));A.buildPoint(h,e,.5*(c+d),t),this.addPointEx(t,o)}else if(h.type&b){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<x&&(t=x),i=Math.trunc(Math.PI/t+1.5),i>1&&(n/=i)}i<=1&&(i=2,n/=2);let r=c+a;A.buildPoint(h,this.m_distance,r,t),0===o&&(t.type|=M),this.addPointEx(t,o);const m=this.m_distance/Math.cos(n/2);for(r+=n/2,A.buildPoint(h,m,r,t),t.type|=M,this.addPoint(t);--i>0;)r+=n,A.buildPoint(h,m,r,t),t.type|=M,this.addPoint(t);A.buildPoint(h,this.m_distance,d-a,t),t.type|=M,this.addPoint(t)}else if(1!==this.m_joins)if(0!==this.m_joins)if(2!==this.m_joins){let s;if(d=u,this.m_distance>0?(d>c&&(d-=f),s=c-d<a):(d<c&&(d+=f),s=d-c<a),s){const s=this.m_distance*y;let e;e=s<0?c+.25*Math.PI:c+3*Math.PI*.25,A.buildPoint(h,s,e,t),this.addPointEx(t,o),e=s<0?d-.25*Math.PI:d-3*Math.PI*.25,A.buildPoint(h,s,e,t),this.addPoint(t)}else{const s=.5*(d-c),e=this.m_distance/Math.abs(Math.sin(s));d<c&&(d+=f),A.buildPoint(h,e,(c+d)/2,t),this.addPointEx(t,o)}}else{const s=r.x-h.x,e=r.y-h.y,i=m.x-h.x,n=m.y-h.y,a=(s*i+e*n)/Math.sqrt(s*s+e*e)/Math.sqrt(i*i+n*n);if(a>1-1e-8){A.buildPoint(h,y*this.m_distance,d-.25*Math.PI,t),this.addPointEx(t,o),A.buildPoint(h,y*this.m_distance,d+.25*Math.PI,t),this.addPoint(t);continue}const f=Math.abs(this.m_distance/Math.sin(.5*Math.acos(a))),P=Math.abs(this.m_miterLimit*this.m_distance);if(f>P){const s=.5*(d-c),e=this.m_distance/Math.abs(Math.sin(s));A.buildPoint(h,e,.5*(c+d),t);const i=_.construct(t.x,t.y),n=_.construct(h.x,h.y),r=new _;r.setSub(i,n);const m=new _;m.scaleAddOther(P/r.length(),r,n);const a=Math.sqrt(f*f-this.m_distance*this.m_distance),u=(f-P)*Math.abs(this.m_distance)/a;this.m_distance>0?r.leftPerpendicularThis():r.rightPerpendicularThis(),r.scale(u/r.length());const l=new _;l.setAdd(m,r);const y=new _;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 u=.5*(d-c),l=this.m_distance/Math.abs(Math.sin(u));A.buildPoint(h,l,.5*(c+d),t),this.addPointEx(t,o)}else{const s=1-e/Math.abs(this.m_distance);let i=1,n=d-a-(c+a);if(s>-1&&s<1){let t=2*Math.acos(s);t<x&&(t=x),i=Math.trunc(Math.abs(n)/t+1.5),i>1&&(n/=i)}const r=this.m_distance/Math.cos(.5*n);let m=c+a+.5*n;for(A.buildPoint(h,r,m,t),this.addPointEx(t,o);--i>0;)m+=n,A.buildPoint(h,r,m,t),this.addPoint(t)}else A.buildPoint(h,this.m_distance,c+a,t),this.addPointEx(t,o),A.buildPoint(h,this.m_distance,d-a,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(){let t=!1;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 s=0;for(let e=0;e<this.m_offsetPtCount;e++)if(this.m_offsetPts[s].type&p){const e=this.deleteClosedSeg(s);if(-1===e){t=!0;break}s=e}else s=this.m_offsetPts[s].m_next;return!t&&(this.compressOffsetArray(s),!0)}deleteClosedSeg(t){const s=this.m_offsetPtCount-1;let e,i,n=t;for(let o=1;o<=s-2;o++){n=this.m_offsetPts[n].m_next,e=n,i=t;for(let t=1;t<=o;t++){if(i=this.m_offsetPts[i].m_prev,!(this.m_offsetPts[i].type&p||this.m_offsetPts[e].type&p)){const t=this.handleClosedIntersection(i,e);if(-1!==t)return t}e=this.m_offsetPts[e].m_prev}}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;const h=C();if(((i.x-e.x)*(o.y-n.y)-(i.y-e.y)*(o.x-n.x))*this.m_distance<0){if(this.findIntersection(e,i,n,o,h)&&!h.bAtExistingPt){const r=1e-8,m=Math.sqrt((i.x-e.x)*(i.x-e.x)+(i.y-e.y)*(i.y-e.y)),a=(i.x-e.x)/m,_=(i.y-e.y)/m,f=Math.sqrt((o.x-n.x)*(o.x-n.x)+(o.y-n.y)*(o.y-n.y)),c=(o.x-n.x)/f,d=(o.y-n.y)/f;let P=!1;const u=h.pt.clone();u.x+=(a+c)*r,u.y+=(_+d)*r;let l=n,y=h.pt,x=this.m_offsetPts[t].m_prev;for(;y.y>u.y!=l.y>u.y&&u.x<(l.x-y.x)*(u.y-y.y)/(l.y-y.y)+y.x&&(P=!P),l=y,x=this.m_offsetPts[x].m_next,x!==s;)y=this.m_offsetPts[x];if(P)return-1;const p=this.m_offsetPts[t].m_prev;return h.pt.type=i.type,h.pt.m_next=s,h.pt.m_prev=p,this.m_offsetPts[t]=h.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,n){let o,h,r,m;return n.bAtExistingPt=!1,o=(s.y-t.y)*(i.x-e.x)-(s.x-t.x)*(i.y-e.y),h=(e.y-t.y)*(s.x-t.x)-(e.x-t.x)*(s.y-t.y),r=0===o?2:h/o,r>=0&&r<=1&&(m=r,o=(i.y-e.y)*(s.x-t.x)-(i.x-e.x)*(s.y-t.y),h=(t.y-e.y)*(i.x-e.x)-(t.x-e.x)*(i.y-e.y),r=0===o?2:h/o,r>=0&&r<=1)&&(n.pt.x=t.x+r*(s.x-t.x),n.pt.y=t.y+r*(s.y-t.y),this.m_bUseZ&&(n.pt.z=e.z+m*(i.z-e.z)),this.m_bUseM&&(n.pt.m=e.m+m*(i.m-e.m)),0!==m&&1!==m||0!==r&&1!==r||(n.bAtExistingPt=!0),!((0===m||1===m)&&r>0&&r<1||(0===r||1===r)&&m>0&&m<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){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)}}}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)}}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|=b+M,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|=M,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|=b,this.m_srcPts[o]=e.clone(),this.buildOffset())if(this.m_offsetPts.length>=2){let t=-1,s=-1,e=!!(this.m_offsetPts[this.m_offsetPtCount-1].type&M);e||(t=0);for(let i=1;i<this.m_offsetPtCount;i++){this.progress();const n=!!(this.m_offsetPts[i].type&M);n?e||(s=i-1,s-t+1>1&&this.addPart(t,s-t+1)):e&&(t=i-1),e=n}e||(s=this.m_offsetPtCount-1,s-t+1>1&&this.addPart(t,s-t+1))}else{const t=0,s=this.m_offsetPtCount-1;s-t>=1&&this.addPart(t,s-t+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=d(n,o,h,r);return P(m)}}class E{getOperatorType(){return 10108}accelerateGeometry(t,s,e){return!1}canAccelerateGeometry(t){return!1}supportsCurves(){return!0}executeMany(t,s,e,i,n,o,h){return new v(t,s,e,i,n,o,h)}execute(t,s,e,i,n,o,h){return new v(null,s,e,i,n,o,h).offset(t)}}class v extends t{constructor(t,s,e,i,n,o,h){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}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 i;return s(t),i=this.m_flattenError<=0?e(this.m_spatialReference,t,!0).total():this.m_flattenError,l(t,this.m_distance,this.m_joins,this.m_miterLimit,i,this.m_progressTracker)}}const w=new E;function G(t,s,e,i,n,o){return w.execute(t,s,e,i,n,o,null)}function j(t,s,e,i,n,o){const h=w.executeMany(new u(t),s,e,i,n,o,null);return Array.from(h)}function D(){return w.supportsCurves()}export{G as execute,j as executeMany,D as supportsCurves};
5
+ import{h as t,j as s,$ as e,t as i,G as n,l as o,b as h,a as r,m,aq as a,e as _,ah as f,b7 as c,b8 as d,b9 as P,S as u}from"../../../chunks/Polyline.js";function l(t,e,n,o,h,r){if(null===t&&i(""),t.getDimension()<1&&i(""),h>0||i(""),s(t),0===e||t.isEmpty())return t;const m=new A(r);return m.m_bUseZ=t.hasAttribute(1),m.m_bUseM=t.hasAttribute(2),m.m_inputGeometry=t,m.m_distance=e,m.m_tolerance=h,m.m_joins=n,m.m_miterLimit=o,m.m_progressCounter=0,m.constructOffset()}const y=1.4142135623730951,x=.017453292519943295,p=256,b=512,M=1024;class g{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 _(this.x,this.y)}}function C(){return{pt:new g,bAtExistingPt:!1}}class A{constructor(t){this.m_distance=-1,this.m_tolerance=-1,this.m_miterLimit=10,this.m_joins=0,this.m_progressCounter=0,this.m_bUseZ=!1,this.m_bUseM=!1,this.m_srcPts=[],this.m_srcPtCount=0,this.m_offsetPts=[],this.m_offsetPtCount=0,this.m_a1=0,this.m_a2=0,this.m_progressTracker=t}constructOffset(){const t=this.m_inputGeometry.getGeometryType();if(t===n.enumLine)return this.offsetLine();if(t===n.enumEnvelope)return this.offsetEnvelope();if(o(t)){const t=new h;return t.addSegment(this.m_inputGeometry,!0),this.m_inputGeometry=t,this.constructOffset()}if(t===n.enumPolyline){const t=new h;return this.offsetMultiPath(t),t}if(t===n.enumPolygon){const t=new r;return this.offsetMultiPath(t),t}m("")}offsetLine(){const t=this.m_inputGeometry,s=t.getStartXY(),e=t.getEndXY(),i=new _;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 r;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=A.dotSign(i,n,this.m_offsetPts[this.m_offsetPtCount-1],t);if(o>0)this.addPoint(t);else if(o<0)if(A.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(A.buildPoint(i,this.m_distance,r-a,n),this.m_offsetPts[this.m_offsetPtCount-1]=n,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),A.buildPoint(i,this.m_distance,this.m_a1+a,n);const t=n.clone();t.x=.5*(t.x+i.x),t.y=.5*(t.y+i.y),t.type|=p,this.addPoint(t),this.addPoint(n)}else A.buildPoint(i,this.m_distance,this.m_a1+a,n),n.type|=p,this.addPoint(n);this.addPointEx(t,s)}else{const t=new g;if(A.buildPoint(n,this.m_distance,this.m_a1+a,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),A.buildPoint(n,this.m_distance,this.m_a2-a,t);const s=t.clone();s.x=.5*(s.x+n.x),s.y=.5*(s.y+n.y),s.type|=p,this.addPoint(s),this.addPoint(t)}else A.buildPoint(n,this.m_distance,this.m_a2-a,t),t.type|=p,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 c,d,P=0;{const t=r.x-h.x,s=r.y-h.y,e=m.x-h.x,a=m.y-h.y;c=Math.atan2(s,t),d=Math.atan2(a,e),this.m_a1=c,this.m_a2=d,0===o&&(i=c,n=d),P=_.orientationRobust(h.asPoint2D(),r.asPoint2D(),m.asPoint2D())}const u=d;if(d<c&&(d+=f),P*this.m_distance>0)if(1===this.m_joins||2===this.m_joins){A.buildPoint(h,this.m_distance,c+a,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),A.buildPoint(h,this.m_distance,d-a,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|=p,this.addPoint(e),this.addPoint(t)}else{const s=.5*(d-c),e=0===s?this.m_distance:this.m_distance/Math.abs(Math.sin(s));A.buildPoint(h,e,.5*(c+d),t),this.addPointEx(t,o)}else if(h.type&b){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<x&&(t=x),i=Math.trunc(Math.PI/t+1.5),i>1&&(n/=i)}i<=1&&(i=2,n/=2);let r=c+a;A.buildPoint(h,this.m_distance,r,t),0===o&&(t.type|=M),this.addPointEx(t,o);const m=this.m_distance/Math.cos(n/2);for(r+=n/2,A.buildPoint(h,m,r,t),t.type|=M,this.addPoint(t);--i>0;)r+=n,A.buildPoint(h,m,r,t),t.type|=M,this.addPoint(t);A.buildPoint(h,this.m_distance,d-a,t),t.type|=M,this.addPoint(t)}else if(1!==this.m_joins)if(0!==this.m_joins)if(2!==this.m_joins){let s;if(d=u,this.m_distance>0?(d>c&&(d-=f),s=c-d<a):(d<c&&(d+=f),s=d-c<a),s){const s=this.m_distance*y;let e;e=s<0?c+.25*Math.PI:c+3*Math.PI*.25,A.buildPoint(h,s,e,t),this.addPointEx(t,o),e=s<0?d-.25*Math.PI:d-3*Math.PI*.25,A.buildPoint(h,s,e,t),this.addPoint(t)}else{const s=.5*(d-c),e=this.m_distance/Math.abs(Math.sin(s));d<c&&(d+=f),A.buildPoint(h,e,(c+d)/2,t),this.addPointEx(t,o)}}else{const s=r.x-h.x,e=r.y-h.y,i=m.x-h.x,n=m.y-h.y,a=(s*i+e*n)/Math.sqrt(s*s+e*e)/Math.sqrt(i*i+n*n);if(a>1-1e-8){A.buildPoint(h,y*this.m_distance,d-.25*Math.PI,t),this.addPointEx(t,o),A.buildPoint(h,y*this.m_distance,d+.25*Math.PI,t),this.addPoint(t);continue}const f=Math.abs(this.m_distance/Math.sin(.5*Math.acos(a))),P=Math.abs(this.m_miterLimit*this.m_distance);if(f>P){const s=.5*(d-c),e=this.m_distance/Math.abs(Math.sin(s));A.buildPoint(h,e,.5*(c+d),t);const i=_.construct(t.x,t.y),n=_.construct(h.x,h.y),r=new _;r.setSub(i,n);const m=new _;m.scaleAddOther(P/r.length(),r,n);const a=Math.sqrt(f*f-this.m_distance*this.m_distance),u=(f-P)*Math.abs(this.m_distance)/a;this.m_distance>0?r.leftPerpendicularThis():r.rightPerpendicularThis(),r.scale(u/r.length());const l=new _;l.setAdd(m,r);const y=new _;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 u=.5*(d-c),l=this.m_distance/Math.abs(Math.sin(u));A.buildPoint(h,l,.5*(c+d),t),this.addPointEx(t,o)}else{const s=1-e/Math.abs(this.m_distance);let i=1,n=d-a-(c+a);if(s>-1&&s<1){let t=2*Math.acos(s);t<x&&(t=x),i=Math.trunc(Math.abs(n)/t+1.5),i>1&&(n/=i)}const r=this.m_distance/Math.cos(.5*n);let m=c+a+.5*n;for(A.buildPoint(h,r,m,t),this.addPointEx(t,o);--i>0;)m+=n,A.buildPoint(h,r,m,t),this.addPoint(t)}else A.buildPoint(h,this.m_distance,c+a,t),this.addPointEx(t,o),A.buildPoint(h,this.m_distance,d-a,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(){let t=!1;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 s=0;for(let e=0;e<this.m_offsetPtCount;e++)if(this.m_offsetPts[s].type&p){const e=this.deleteClosedSeg(s);if(-1===e){t=!0;break}s=e}else s=this.m_offsetPts[s].m_next;return!t&&(this.compressOffsetArray(s),!0)}deleteClosedSeg(t){const s=this.m_offsetPtCount-1;let e,i,n=t;for(let o=1;o<=s-2;o++){n=this.m_offsetPts[n].m_next,e=n,i=t;for(let t=1;t<=o;t++){if(i=this.m_offsetPts[i].m_prev,!(this.m_offsetPts[i].type&p||this.m_offsetPts[e].type&p)){const t=this.handleClosedIntersection(i,e);if(-1!==t)return t}e=this.m_offsetPts[e].m_prev}}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;const h=C();if(((i.x-e.x)*(o.y-n.y)-(i.y-e.y)*(o.x-n.x))*this.m_distance<0){if(this.findIntersection(e,i,n,o,h)&&!h.bAtExistingPt){const r=1e-8,m=Math.sqrt((i.x-e.x)*(i.x-e.x)+(i.y-e.y)*(i.y-e.y)),a=(i.x-e.x)/m,_=(i.y-e.y)/m,f=Math.sqrt((o.x-n.x)*(o.x-n.x)+(o.y-n.y)*(o.y-n.y)),c=(o.x-n.x)/f,d=(o.y-n.y)/f;let P=!1;const u=h.pt.clone();u.x+=(a+c)*r,u.y+=(_+d)*r;let l=n,y=h.pt,x=this.m_offsetPts[t].m_prev;for(;y.y>u.y!=l.y>u.y&&u.x<(l.x-y.x)*(u.y-y.y)/(l.y-y.y)+y.x&&(P=!P),l=y,x=this.m_offsetPts[x].m_next,x!==s;)y=this.m_offsetPts[x];if(P)return-1;const p=this.m_offsetPts[t].m_prev;return h.pt.type=i.type,h.pt.m_next=s,h.pt.m_prev=p,this.m_offsetPts[t]=h.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,n){let o,h,r,m;return n.bAtExistingPt=!1,o=(s.y-t.y)*(i.x-e.x)-(s.x-t.x)*(i.y-e.y),h=(e.y-t.y)*(s.x-t.x)-(e.x-t.x)*(s.y-t.y),r=0===o?2:h/o,r>=0&&r<=1&&(m=r,o=(i.y-e.y)*(s.x-t.x)-(i.x-e.x)*(s.y-t.y),h=(t.y-e.y)*(i.x-e.x)-(t.x-e.x)*(i.y-e.y),r=0===o?2:h/o,r>=0&&r<=1)&&(n.pt.x=t.x+r*(s.x-t.x),n.pt.y=t.y+r*(s.y-t.y),this.m_bUseZ&&(n.pt.z=e.z+m*(i.z-e.z)),this.m_bUseM&&(n.pt.m=e.m+m*(i.m-e.m)),0!==m&&1!==m||0!==r&&1!==r||(n.bAtExistingPt=!0),!((0===m||1===m)&&r>0&&r<1||(0===r||1===r)&&m>0&&m<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){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)}}}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)}}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|=b+M,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|=M,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|=b,this.m_srcPts[o]=e.clone(),this.buildOffset())if(this.m_offsetPts.length>=2){let t=-1,s=-1,e=!!(this.m_offsetPts[this.m_offsetPtCount-1].type&M);e||(t=0);for(let i=1;i<this.m_offsetPtCount;i++){this.progress();const n=!!(this.m_offsetPts[i].type&M);n?e||(s=i-1,s-t+1>1&&this.addPart(t,s-t+1)):e&&(t=i-1),e=n}e||(s=this.m_offsetPtCount-1,s-t+1>1&&this.addPart(t,s-t+1))}else{const t=0,s=this.m_offsetPtCount-1;s-t>=1&&this.addPart(t,s-t+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=d(n,o,h,r);return P(m)}}class E{getOperatorType(){return 10108}accelerateGeometry(t,s,e){return!1}canAccelerateGeometry(t){return!1}supportsCurves(){return!0}executeMany(t,s,e,i,n,o,h){return new v(t,s,e,i,n,o,h)}execute(t,s,e,i,n,o,h){return new v(null,s,e,i,n,o,h).offset(t)}}class v extends t{constructor(t,s,e,i,n,o,h){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}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 i;return s(t),i=this.m_flattenError<=0?e(this.m_spatialReference,t,!0).total():this.m_flattenError,l(t,this.m_distance,this.m_joins,this.m_miterLimit,i,this.m_progressTracker)}}const w=new E;function G(t,s,e,i,n,o){return w.execute(t,s,e,i,n,o,null)}function D(t,s,e,i,n,o){const h=w.executeMany(new u(t),s,e,i,n,o,null);return Array.from(h)}function U(){return w.supportsCurves()}export{G as execute,D as executeMany,U as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
4
  */
5
- import{S as n,J as e}from"../../../chunks/Polyline.js";const u=new e;function r(n,e,r){return u.execute(n,e,r,null)}function t(e,r,t){const o=u.executeMany(new n(e),r,t,null);return Array.from(o)}function o(n,e,r){return u.isSimpleAsFeature(n,e,r,null,null)}function l(){return u.supportsCurves()}export{r as execute,t as executeMany,o as isSimpleAsFeature,l as supportsCurves};
5
+ import{S as n,I as e}from"../../../chunks/Polyline.js";const u=new e;function r(n,e,r){return u.execute(n,e,r,null)}function t(e,r,t){const o=u.executeMany(new n(e),r,t,null);return Array.from(o)}function o(n,e,r){return u.isSimpleAsFeature(n,e,r,null,null)}function l(){return u.supportsCurves()}export{r as execute,t as executeMany,o as isSimpleAsFeature,l as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
4
  */
5
- import{S as e,h as t,j as n,g as r,y as s,W as o,G as i,bb as u,V as m,M as a,e as c,a6 as l}from"../../../chunks/Polyline.js";class p{getOperatorType(){return 10003}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,n,r){return new y(e,t,n,r)}execute(t,n,r,s){const o=new e([t]),i=new e([n]);return this.executeMany(o,i,r,s).next()}}function d(e,t,n,r){const m=e.getDimension(),a=t.getDimension();if(m!==a)return m>a?e:t;if(e.isEmpty())return t;if(t.isEmpty())return e;const c=new s,l=new s,p=new s;e.queryEnvelope(c),t.queryEnvelope(l),p.setCoords({env2D:c}),p.mergeEnvelope2D(l);const d=o(n,p,!0),y=e.getGeometryType(),f=t.getGeometryType();return y===i.enumPoint&&f===i.enumPoint?g(e,t,d):y===i.enumPoint&&f===i.enumMultiPoint?h(t,e,d):y===i.enumMultiPoint&&f===i.enumPoint?h(e,t,d):u(e,t,n,r)}function g(e,t,n,r){const s=m(n),o=s*s,i=e.getXY(),u=t.getXY(),l=new a({vd:e.getDescription()});return c.sqrDistance(i,u)>o&&(l.add(e),l.add(t)),l}function h(e,t,n,r){const o=e.getImpl().getAttributeStreamRef(0),i=e.getPointCount(),u=t.getXY(),a=e.createInstance(),c=m(n),p=new s;if(e.queryEnvelope(p),p.inflateCoords(c,c),p.contains(u)){const n=c*c;let r=!1;const s=l(i,!1);for(let e=0;e<i;e++){const t=o.read(2*e),i=o.read(2*e+1),m=t-u.x,a=i-u.y;m*m+a*a<=n&&(r=!0,s[e]=!0)}if(r)for(let t=0;t<i;t++)s[t]||a.addPoints(e,t,t+1);else a.addPoints(e,0,i),a.add(t)}else a.addPoints(e,0,i),a.add(t);return a}class y extends t{constructor(e,t,r,s){super(),this.m_progressTracker=s,this.m_index=-1,this.m_inputGeoms=e,this.m_spatialReference=r,this.m_rightGeom=t.next(),this.m_bEmpty=!this.m_rightGeom,n(this.m_rightGeom)}tock(){return r(0),!1}getRank(){return r(0),0}next(){if(this.m_bEmpty)return null;const e=this.m_inputGeoms.next();return e?(n(e),this.m_index=this.m_inputGeoms.getGeometryID(),d(e,this.m_rightGeom,this.m_spatialReference,this.m_progressTracker)):null}getGeometryID(){return this.m_index}}const f=new p;function _(e,t,n){return f.execute(e,t,n,null)}function x(t,n,r){const s=f.executeMany(new e(t),new e([n]),r,null);return Array.from(s)}function G(){return f.supportsCurves()}export{_ as execute,x as executeMany,G as supportsCurves};
5
+ import{S as e,h as t,j as n,g as r,x as s,V as o,G as i,bc as u,U as m,M as a,e as c,a4 as l}from"../../../chunks/Polyline.js";class p{getOperatorType(){return 10003}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,n,r){return new y(e,t,n,r)}execute(t,n,r,s){const o=new e([t]),i=new e([n]);return this.executeMany(o,i,r,s).next()}}function d(e,t,n,r){const m=e.getDimension(),a=t.getDimension();if(m!==a)return m>a?e:t;if(e.isEmpty())return t;if(t.isEmpty())return e;const c=new s,l=new s,p=new s;e.queryEnvelope(c),t.queryEnvelope(l),p.setCoords({env2D:c}),p.mergeEnvelope2D(l);const d=o(n,p,!0),y=e.getGeometryType(),f=t.getGeometryType();return y===i.enumPoint&&f===i.enumPoint?g(e,t,d):y===i.enumPoint&&f===i.enumMultiPoint?h(t,e,d):y===i.enumMultiPoint&&f===i.enumPoint?h(e,t,d):u(e,t,n,r)}function g(e,t,n,r){const s=m(n),o=s*s,i=e.getXY(),u=t.getXY(),l=new a({vd:e.getDescription()});return c.sqrDistance(i,u)>o&&(l.add(e),l.add(t)),l}function h(e,t,n,r){const o=e.getImpl().getAttributeStreamRef(0),i=e.getPointCount(),u=t.getXY(),a=e.createInstance(),c=m(n),p=new s;if(e.queryEnvelope(p),p.inflateCoords(c,c),p.contains(u)){const n=c*c;let r=!1;const s=l(i,!1);for(let e=0;e<i;e++){const t=o.read(2*e),i=o.read(2*e+1),m=t-u.x,a=i-u.y;m*m+a*a<=n&&(r=!0,s[e]=!0)}if(r)for(let t=0;t<i;t++)s[t]||a.addPoints(e,t,t+1);else a.addPoints(e,0,i),a.add(t)}else a.addPoints(e,0,i),a.add(t);return a}class y extends t{constructor(e,t,r,s){super(),this.m_progressTracker=s,this.m_index=-1,this.m_inputGeoms=e,this.m_spatialReference=r,this.m_rightGeom=t.next(),this.m_bEmpty=!this.m_rightGeom,n(this.m_rightGeom)}tock(){return r(0),!1}getRank(){return r(0),0}next(){if(this.m_bEmpty)return null;const e=this.m_inputGeoms.next();return e?(n(e),this.m_index=this.m_inputGeoms.getGeometryID(),d(e,this.m_rightGeom,this.m_spatialReference,this.m_progressTracker)):null}getGeometryID(){return this.m_index}}const f=new p;function x(e,t,n){return f.execute(e,t,n,null)}function _(t,n,r){const s=f.executeMany(new e(t),new e([n]),r,null);return Array.from(s)}function G(){return f.supportsCurves()}export{x as execute,_ as executeMany,G as supportsCurves};