@agrotools1/at-components 0.2.3 → 0.2.5

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 (910) hide show
  1. package/dist/AGraphicContainer-d82e96aa.js +109 -0
  2. package/dist/APIKeyMixin-2ee64e59.js +19 -0
  3. package/dist/Analysis-449f84c5.js +31 -0
  4. package/dist/ArcGISCachedService-a838709f.js +47 -0
  5. package/dist/ArcGISService-7e5e8710.js +25 -0
  6. package/dist/AreaMeasurement2D-971dad40.js +405 -0
  7. package/dist/AreaMeasurement3D-48bc0242.js +488 -0
  8. package/dist/AttachmentInfo-ad88d558.js +34 -0
  9. package/dist/AttachmentQuery-c86dac15.js +18 -0
  10. package/dist/AttributeStore-3851ad0b.js +1707 -0
  11. package/dist/BaseDynamicLayerView2D-02baa49a.js +63 -0
  12. package/dist/BingMapsLayer-67c70069.js +112 -0
  13. package/dist/Bitmap-d455f554.js +128 -0
  14. package/dist/BitmapContainer-c78799ad.js +23 -0
  15. package/dist/BlendLayer-246e4998.js +13 -0
  16. package/dist/BoundsStore-b18f4e4e.js +63 -0
  17. package/dist/BufferObject-22d914df.js +100 -0
  18. package/dist/BufferView-5272765e.js +683 -0
  19. package/dist/BuildingSceneLayer-f08d5129.js +535 -0
  20. package/dist/Button-335b8469.js +36 -0
  21. package/dist/CSVLayer-40c0bd0e.js +208 -0
  22. package/dist/CSVSourceWorker-b8df4580.js +367 -0
  23. package/dist/CardWithInsights/CardWithInsights.d.ts +2 -1
  24. package/dist/CatalogDynamicGroupLayerView2D-3abd5c54.js +66 -0
  25. package/dist/CatalogFootprintLayerView2D-22c795e4.js +76 -0
  26. package/dist/CatalogLayer-74d18466.js +262 -0
  27. package/dist/CatalogLayerView2D-ffee45d8.js +52 -0
  28. package/dist/ClassBreaksDefinition-5a577d31.js +18 -0
  29. package/dist/ColorMaterial.glsl-bc384e65.js +64 -0
  30. package/dist/ColorSet-570396b9.js +45 -0
  31. package/dist/ColorStop-5009138a.js +29 -0
  32. package/dist/Container-f931e682.js +521 -0
  33. package/dist/CustomParametersMixin-9e8adcf6.js +12 -0
  34. package/dist/DefaultMaterial.glsl-092e1a97.js +42 -0
  35. package/dist/DefaultMaterial_COLOR_GAMMA-43e030be.js +653 -0
  36. package/dist/DefaultTheme-59d78c72.js +130 -0
  37. package/dist/DeleteForwardEditsParameters-8b5196fa.js +18 -0
  38. package/dist/DimensionLayer-6fc6ab12.js +129 -0
  39. package/dist/DirectLineMeasurement3D-6823c93d.js +449 -0
  40. package/dist/DistanceMeasurement2D-a6cf62b6.js +303 -0
  41. package/dist/DoubleArray-bb8ff0fb.js +25 -0
  42. package/dist/Dropdown/Filter/test.mocks.d.ts +6 -0
  43. package/dist/Dropdown/List/test.mocks.d.ts +6 -0
  44. package/dist/EdgeProcessingWorker-c5511714.js +63 -0
  45. package/dist/EditBusLayer-513ca203.js +107 -0
  46. package/dist/ElevationInfo-234040e3.js +56 -0
  47. package/dist/ElevationLayer-599949a0.js +129 -0
  48. package/dist/ElevationQuery-aaa7fb05.js +598 -0
  49. package/dist/ElevationSamplerWorker-07be3a80.js +62 -0
  50. package/dist/ExportImageParameters-b28e28df.js +66 -0
  51. package/dist/ExportStrategy-d6fd38ed.js +93 -0
  52. package/dist/ExportWMSImageParameters-be4cc5df.js +33 -0
  53. package/dist/External-55b35c8d.js +110 -0
  54. package/dist/Faq/Faq.d.ts +1 -1
  55. package/dist/Faq/index.d.ts +1 -1
  56. package/dist/FeatureCollectionSnappingSource-fce9fa91.js +130 -0
  57. package/dist/FeatureCommandQueue-4e426066.js +1244 -0
  58. package/dist/FeatureEffect-0a86f0ba.js +39 -0
  59. package/dist/FeatureEffectLayer-13705792.js +13 -0
  60. package/dist/FeatureFilter-1635b86a.js +27 -0
  61. package/dist/FeatureLayer-d2f8e7c0.js +693 -0
  62. package/dist/FeatureLayerBase-40e10dd6.js +148 -0
  63. package/dist/FeatureLayerSource-ebd2bea5.js +444 -0
  64. package/dist/FeatureLayerView2D-23240236.js +1967 -0
  65. package/dist/FeaturePipelineWorker-8d07a1dd.js +3633 -0
  66. package/dist/FeatureReductionLayer-55609d4e.js +225 -0
  67. package/dist/FeatureReductionSelection-2f351ee7.js +22 -0
  68. package/dist/FeatureServiceSnappingSource-513edf0d.js +481 -0
  69. package/dist/FeatureServiceSnappingSourceWorker-d6deecd4.js +747 -0
  70. package/dist/FeatureSet-ffd45984.js +188 -0
  71. package/dist/FeatureStore-9fd6c0f8.js +131 -0
  72. package/dist/FeatureTemplate-e4854302.js +12 -0
  73. package/dist/FeatureType-b4ef51c2.js +25 -0
  74. package/dist/FieldsIndex-91fb234a.js +109 -0
  75. package/dist/FormTemplate-67f4d44e.js +350 -0
  76. package/dist/GeoJSONLayer-e3495648.js +236 -0
  77. package/dist/GeoJSONSourceWorker-b0ee6d8e.js +247 -0
  78. package/dist/GeoRSSLayer-afac8cf1.js +73 -0
  79. package/dist/GeoRSSLayerView2D-b03f6564.js +140 -0
  80. package/dist/GeometryUtils-058e30f4.js +403 -0
  81. package/dist/GraphicContainer-d0803f7a.js +26 -0
  82. package/dist/GraphicManipulator-797ae6c6.js +1499 -0
  83. package/dist/GraphicsLayer-a30f80da.js +38 -0
  84. package/dist/GraphicsLayerView2D-0c92e0f2.js +114 -0
  85. package/dist/GraphicsSnappingSource-e928ab8c.js +273 -0
  86. package/dist/GraphicsView2D-963eb026.js +620 -0
  87. package/dist/GroupLayer-7f131ab8.js +147 -0
  88. package/dist/GroupLayerView2D-5fcc27fc.js +98 -0
  89. package/dist/HUDMaterial.glsl-3b450c01.js +65 -0
  90. package/dist/HighlightCounter-fda615cd.js +41 -0
  91. package/dist/HighlightGraphicContainer-8cfde780.js +18 -0
  92. package/dist/I3SBinaryReader-a4021fad.js +310 -0
  93. package/dist/I3SLayerDefinitions-f004f8b6.js +55 -0
  94. package/dist/I3SUtil-040e44af.js +59 -0
  95. package/dist/IdentityManager-012e74ca.js +899 -0
  96. package/dist/ImageHistogramParameters-f7c4c804.js +905 -0
  97. package/dist/ImageryLayer-c3f0176f.js +1799 -0
  98. package/dist/ImageryLayerView2D-5a14beb5.js +352 -0
  99. package/dist/ImageryTileLayer-a93e8471.js +2157 -0
  100. package/dist/ImageryTileLayerView2D-3e9fea94.js +1110 -0
  101. package/dist/Indices-f0dca4b5.js +67 -0
  102. package/dist/Input/index.d.ts +4547 -3
  103. package/dist/IntegratedMesh3DTilesLayer-7e70c76e.js +112 -0
  104. package/dist/IntegratedMeshLayer-2283f8d9.js +141 -0
  105. package/dist/InteractiveAnalysisViewModel-f0a0c72a.js +7397 -0
  106. package/dist/InterleavedLayout-9490090b.js +163 -0
  107. package/dist/KMLLayer-06b7037f.js +162 -0
  108. package/dist/KMLLayerView2D-59f96ec9.js +253 -0
  109. package/dist/KnowledgeGraphLayerView2D-6c8c4aae.js +43 -0
  110. package/dist/LRUCache-fc532e9b.js +32 -0
  111. package/dist/LabelClass-eae6271b.js +135 -0
  112. package/dist/LabelMetric-ee740bd1.js +400 -0
  113. package/dist/LaserlinePath.glsl-f58264f5.js +64 -0
  114. package/dist/Laserlines.glsl-14ab8523.js +65 -0
  115. package/dist/LayerFloorInfo-6ac1a57d.js +15 -0
  116. package/dist/LayerView-e41297e4.js +206 -0
  117. package/dist/LercWorker-22ed35b2.js +157 -0
  118. package/dist/LineOfSightLayer-6bf67bb7.js +147 -0
  119. package/dist/LinkChartLayer-e9a861f0.js +1027 -0
  120. package/dist/Lyr3DWorker-29f7a041.js +82 -0
  121. package/dist/MagnifierPrograms-1584f9b5.js +806 -0
  122. package/dist/MapImageLayer-b89cf158.js +169 -0
  123. package/dist/MapImageLayerView2D-e3f4a4cc.js +146 -0
  124. package/dist/MapNotesLayer-966f3446.js +283 -0
  125. package/dist/MapNotesLayerView2D-4aedef2a.js +161 -0
  126. package/dist/MapServiceLayerViewHelper-4f262166.js +288 -0
  127. package/dist/MeasurementWidgetContent-82971f95.js +2642 -0
  128. package/dist/MediaLayer-697a7c14.js +523 -0
  129. package/dist/MediaLayerView2D-64897044.js +332 -0
  130. package/dist/MemCache-0861cc28.js +227 -0
  131. package/dist/MemorySourceWorker-e1c531ac.js +222 -0
  132. package/dist/Mesh-44c8f6ba.js +980 -0
  133. package/dist/MeshLocalVertexSpace-6fe3a662.js +19 -0
  134. package/dist/MultiOriginJSONSupport-248453ac.js +158 -0
  135. package/dist/Notifications/index.d.ts +1 -0
  136. package/dist/OGCFeatureLayer-2daa0551.js +211 -0
  137. package/dist/OGCFeatureLayerView2D-7cebf7e0.js +82 -0
  138. package/dist/ObjectStack-424092a9.js +21 -0
  139. package/dist/Octree-21d216f2.js +495 -0
  140. package/dist/OpenStreetMapLayer-ade6fa9d.js +30 -0
  141. package/dist/OperationalLayer-097ad3e0.js +44 -0
  142. package/dist/OrderByInfo-e9ed942d.js +16 -0
  143. package/dist/OrderedLayer-fef2b56e.js +26 -0
  144. package/dist/OrientedImageryLayer-424a6234.js +216 -0
  145. package/dist/OverlayCompositing.glsl-1954a291.js +65 -0
  146. package/dist/OverrideHelper-f8aace2c.js +242 -0
  147. package/dist/PBFDecoderWorker-15cd639d.js +213 -0
  148. package/dist/PointCloudLayer-c820d269.js +197 -0
  149. package/dist/PointCloudUniqueValueRenderer-e7d37f08.js +115 -0
  150. package/dist/PointCloudWorker-3e28270d.js +212 -0
  151. package/dist/PooledRBush-e4cbf810.js +272 -0
  152. package/dist/Popup-2c03dbc0.js +3990 -0
  153. package/dist/PortalLayer-09e5a300.js +126 -0
  154. package/dist/Program-ed5a5aa3.js +694 -0
  155. package/dist/ProgramTemplate-976cfde1.js +35 -0
  156. package/dist/QueryEngine-8915348b.js +896 -0
  157. package/dist/QueryTask-f386d91d.js +119 -0
  158. package/dist/RasterSymbolizer-6177c6ec.js +3024 -0
  159. package/dist/RasterVFDisplayObject-6411b56f.js +581 -0
  160. package/dist/RasterWorker-f825daf0.js +78 -0
  161. package/dist/RawBlockCache-0d61962b.js +185 -0
  162. package/dist/RealisticTree.glsl-c9fd0d3c.js +42 -0
  163. package/dist/RefreshableLayer-0945a308.js +80 -0
  164. package/dist/RefreshableLayerView-4956f17c.js +16 -0
  165. package/dist/Relationship-9a82bd43.js +64 -0
  166. package/dist/RelationshipQuery-68ad49a7.js +22 -0
  167. package/dist/RenderingContext-49610ad9.js +889 -0
  168. package/dist/RibbonLine.glsl-6314f72e.js +65 -0
  169. package/dist/RouteLayer-ff5c8f33.js +786 -0
  170. package/dist/RouteLayerView2D-2cc60ad2.js +195 -0
  171. package/dist/SDFHelper-b08be611.js +140 -0
  172. package/dist/SSAO.glsl-0e92c4e5.js +43 -0
  173. package/dist/SSAOBlur.glsl-a2bb2587.js +42 -0
  174. package/dist/ScaleRangeLayer-ab226dbd.js +21 -0
  175. package/dist/SceneLayer-884ec175.js +542 -0
  176. package/dist/SceneLayerSnappingSource-aa2944b9.js +218 -0
  177. package/dist/SceneLayerSnappingSourceWorker-5616c206.js +112 -0
  178. package/dist/SceneLayerWorker-9745b8b5.js +164 -0
  179. package/dist/SceneService-da855dda.js +215 -0
  180. package/dist/Scheduler-b3c40220.js +373 -0
  181. package/dist/Search/index.d.ts +1 -0
  182. package/dist/Search/test.mocks.d.ts +3 -0
  183. package/dist/Search/utils.d.ts +3 -0
  184. package/dist/Select/index.d.ts +3 -3
  185. package/dist/ShadedColorMaterial.glsl-f953e894.js +64 -0
  186. package/dist/SnappingOperation-be595c42.js +48 -0
  187. package/dist/SourceLayerData-ec8ab72c.js +116 -0
  188. package/dist/SpatialFilter-7d64232d.js +1701 -0
  189. package/dist/Stop-c022e866.js +281 -0
  190. package/dist/StreamLayer-d603abd8.js +188 -0
  191. package/dist/StreamLayerView2D-6d6618cf.js +164 -0
  192. package/dist/StyleRepository-2f08de17.js +2212 -0
  193. package/dist/SublayersOwner-cc0e4f54.js +545 -0
  194. package/dist/SubtypeGroupLayer-bacf048d.js +514 -0
  195. package/dist/SubtypeGroupLayerView2D-b3ed2c1a.js +84 -0
  196. package/dist/TechniqueInstance-397b7dc2.js +233 -0
  197. package/dist/TemporalLayer-7844bd88.js +23 -0
  198. package/dist/Texture-b1727861.js +501 -0
  199. package/dist/TextureOnly.glsl-ffd4a7df.js +65 -0
  200. package/dist/Theme-12cb681b.js +3426 -0
  201. package/dist/Tick-25d07d27.js +723 -0
  202. package/dist/TileContainer-ab77d7a6.js +31 -0
  203. package/dist/TileInfoTilemapCache-3e97ab02.js +38 -0
  204. package/dist/TileLayer-03cfc8ab.js +194 -0
  205. package/dist/TileLayerView2D-3cfd6a21.js +187 -0
  206. package/dist/TilemapCache-36e3c4b7.js +189 -0
  207. package/dist/TimeInfo-cea2517f.js +42 -0
  208. package/dist/TimeOnly-5a143001.js +706 -0
  209. package/dist/Tooltip-2b4711cb.js +138 -0
  210. package/dist/TopFeaturesQuery-285284f1.js +32 -0
  211. package/dist/TurboLine-708823a3.js +565 -0
  212. package/dist/UniqueValueRenderer-3d92c0b9.js +1039 -0
  213. package/dist/UnknownLayer-d3dbe7c9.js +30 -0
  214. package/dist/UnknownTimeZone-ed4def19.js +15 -0
  215. package/dist/UnsupportedLayer-40bbb9f5.js +31 -0
  216. package/dist/UpdateTracking2D-23c8ff3f.js +8566 -0
  217. package/dist/Upload/index.d.ts +1 -1
  218. package/dist/Util-2ba07f64.js +57 -0
  219. package/dist/VectorTileLayer-ba191a02.js +544 -0
  220. package/dist/VectorTileLayerView2D-bd3971cd.js +2108 -0
  221. package/dist/Version-d45bee25.js +33 -0
  222. package/dist/VertexArrayObject-08a9d938.js +73 -0
  223. package/dist/VertexColor.glsl-cfafd4c9.js +2683 -0
  224. package/dist/VertexSnappingCandidate-cbae227c.js +13 -0
  225. package/dist/VideoLayerView2D-ec66c226.js +124 -0
  226. package/dist/VoxelLayer-888a65f9.js +631 -0
  227. package/dist/WFSLayer-786bdecd.js +221 -0
  228. package/dist/WFSSourceWorker-a212500b.js +157 -0
  229. package/dist/WGLContainer-f05c906a.js +5426 -0
  230. package/dist/WMSLayer-b2c46060.js +536 -0
  231. package/dist/WMSLayerView2D-a90672e9.js +117 -0
  232. package/dist/WMTSLayer-860b1a45.js +531 -0
  233. package/dist/WMTSLayerView2D-c492825d.js +142 -0
  234. package/dist/WebTileLayer-e178eb17.js +110 -0
  235. package/dist/WhereClause-ad3cc5ae.js +2766 -0
  236. package/dist/WorkerHandle-ef6ad49b.js +47 -0
  237. package/dist/WorkerTileHandler-c2b98dae.js +1539 -0
  238. package/dist/action-46ccf03a.js +198 -0
  239. package/dist/action-group-9785519d.js +145 -0
  240. package/dist/action-menu-f423306a.js +1759 -0
  241. package/dist/agrotools-theme.css +2 -2
  242. package/dist/agrotools-theme.css.map +1 -1
  243. package/dist/apng-66c828d8.js +392 -0
  244. package/dist/arcade-af30f385.js +229 -0
  245. package/dist/arcadeAsyncRuntime-fdce05e3.js +943 -0
  246. package/dist/arcadeUtils-2b5a1e68.js +8741 -0
  247. package/dist/arcgis-knowledge-client-core-192a1ac0.js +1218 -0
  248. package/dist/arcgis-knowledge-client-core-simd-4fb6c777.js +1218 -0
  249. package/dist/arcgisLayers-f43f9183.js +152 -0
  250. package/dist/associatedFeatureServiceUtils-15949591.js +92 -0
  251. package/dist/axisAngleDegrees-de05cd64.js +49 -0
  252. package/dist/basis_transcoder-6f118404.js +1248 -0
  253. package/dist/calcite-action-bar-9722a11e.js +303 -0
  254. package/dist/calcite-action-f5829479.js +22 -0
  255. package/dist/calcite-action-group-3e77994f.js +28 -0
  256. package/dist/calcite-button-8979d383.js +228 -0
  257. package/dist/calcite-flow-b50ce308.js +128 -0
  258. package/dist/calcite-flow-item-57549b16.js +499 -0
  259. package/dist/calcite-icon-fb43725c.js +16 -0
  260. package/dist/calcite-input-fcc054c7.js +24 -0
  261. package/dist/calcite-label-10d65c11.js +79 -0
  262. package/dist/calcite-list-2847bddc.js +2135 -0
  263. package/dist/calcite-list-item-53cde043.js +576 -0
  264. package/dist/calcite-list-item-group-256eb990.js +71 -0
  265. package/dist/calcite-loader-022a5436.js +14 -0
  266. package/dist/calcite-modal-5b1a23d9.js +333 -0
  267. package/dist/calcite-notice-17009704.js +181 -0
  268. package/dist/calcite-option-c7d00181.js +94 -0
  269. package/dist/calcite-scrim-1dced2db.js +18 -0
  270. package/dist/calcite-select-a96a55a3.js +231 -0
  271. package/dist/capabilities-3f86754a.js +50 -0
  272. package/dist/chartCommon-af8c14ae.js +256 -0
  273. package/dist/chartUtilsAm5-418cf95f.js +2954 -0
  274. package/dist/clientSideDefaults-2aad569c.js +39 -0
  275. package/dist/colorRamps-0fae1fde.js +38 -0
  276. package/dist/colorUtils-6d5e716b.js +164 -0
  277. package/dist/commonProperties-d1f695a2.js +60 -0
  278. package/dist/computeTranslationToOriginAndRotation-cba163ab.js +60 -0
  279. package/dist/conditionalSlot-14f35023.js +27 -0
  280. package/dist/createConnection-f3b9e606.js +299 -0
  281. package/dist/dataUtils-65604399.js +1421 -0
  282. package/dist/deduplicate-16f30199.js +89 -0
  283. package/dist/defaults-b7c93d2a.js +31 -0
  284. package/dist/deleteForwardEdits-f31f885d.js +13 -0
  285. package/dist/diffUtils-54c1c039.js +90 -0
  286. package/dist/drapedUtils-166cd4c2.js +75 -0
  287. package/dist/earcut-ffaa9a50.js +292 -0
  288. package/dist/edgeProcessing-1a2c4169.js +252 -0
  289. package/dist/editingSupport-ffa6f639.js +203 -0
  290. package/dist/editsZScale-2840378a.js +37 -0
  291. package/dist/elevationInfoUtils-c1caf596.js +126 -0
  292. package/dist/executeForIds-b9c9164b.js +14 -0
  293. package/dist/executeForTopCount-8a73aea7.js +17 -0
  294. package/dist/executeForTopExtents-a3d0b42e.js +17 -0
  295. package/dist/executeForTopIds-f14d5790.js +17 -0
  296. package/dist/executeQueryJSON-6cd89bed.js +15 -0
  297. package/dist/executeQueryPBF-e1d32cfc.js +152 -0
  298. package/dist/executeRelationshipQuery-5cadcb20.js +53 -0
  299. package/dist/executeTopFeaturesQuery-32dda453.js +18 -0
  300. package/dist/featureConversionUtils-a5f0b9b2.js +479 -0
  301. package/dist/featureLayerUtils-828813e8.js +250 -0
  302. package/dist/featureLayerUtils-9e9f97c1.js +142 -0
  303. package/dist/featureSetUtils-2f86a02f.js +2530 -0
  304. package/dist/featuresetbase-bb981400.js +707 -0
  305. package/dist/featuresetgeom-0185b49f.js +99 -0
  306. package/dist/featuresetstats-3d689b79.js +81 -0
  307. package/dist/featuresetstring-83733fad.js +95 -0
  308. package/dist/fetchService-25e9ba70.js +33 -0
  309. package/dist/fieldProperties-cd5649d9.js +33 -0
  310. package/dist/floatRGBA-005cc596.js +20 -0
  311. package/dist/form-41e8f739.js +138 -0
  312. package/dist/geohashUtils-776cae3b.js +85 -0
  313. package/dist/geojson-7ef69d00.js +208 -0
  314. package/dist/geomasync-43a66474.js +567 -0
  315. package/dist/geometryEngine-e18a460d.js +192 -0
  316. package/dist/geometryEngineAsync-ae21d4e2.js +217 -0
  317. package/dist/geometryEngineBase-d653892b.js +18463 -0
  318. package/dist/geometryEngineJSON-031f6196.js +46 -0
  319. package/dist/geometryEngineJSON-9aeb41cd.js +171 -0
  320. package/dist/geometryEngineWorker-1c2f96e6.js +11 -0
  321. package/dist/geometryServiceUtils-50afe031.js +28 -0
  322. package/dist/georeference-cf051555.js +291 -0
  323. package/dist/gif-3fe5f761.js +323 -0
  324. package/dist/gltfexport-3ec498d6.js +705 -0
  325. package/dist/groupLayerUtils-5b8e1f89.js +39 -0
  326. package/dist/heatmapUtils-b512588d.js +45 -0
  327. package/dist/highlightReasons-b0f772b2.js +19 -0
  328. package/dist/hydrated-36edecd6.js +40 -0
  329. package/dist/i3s-239f062a.js +809 -0
  330. package/dist/icon-5e93376e.js +127 -0
  331. package/dist/imageBitmapUtils-142daeaf.js +23 -0
  332. package/dist/imageUtils-27ed5e73.js +89 -0
  333. package/dist/imageUtils-901282e9.js +69 -0
  334. package/dist/imageryUtils-b1dd3a54.js +43 -0
  335. package/dist/index-6ebf29c1.js +43667 -0
  336. package/dist/index.d.ts +4 -0
  337. package/dist/index.js +17 -13
  338. package/dist/input-message-20d19cfb.js +92 -0
  339. package/dist/input2-8da11a51.js +575 -0
  340. package/dist/interactive-bcb1b82d.js +80 -0
  341. package/dist/jsonContext-45fce1e1.js +15 -0
  342. package/dist/jsonUtils-09f69988.js +86 -0
  343. package/dist/jsonUtils-1f447d0c.js +476 -0
  344. package/dist/jsonUtils-db906457.js +59 -0
  345. package/dist/kmlUtils-6412718d.js +112 -0
  346. package/dist/knowledgeGraphService-80890106.js +739 -0
  347. package/dist/knowledgegraph-475723f0.js +149 -0
  348. package/dist/labelUtils-85708580.js +61 -0
  349. package/dist/labelingInfo-62fc9d21.js +46 -0
  350. package/dist/layersCreator-a94b60fe.js +151 -0
  351. package/dist/layersLoader-39c74edb.js +197 -0
  352. package/dist/lazyLayerLoader-7922c10d.js +10 -0
  353. package/dist/lclayout-6ac84378.js +773 -0
  354. package/dist/lengthUtils-6a89d855.js +5 -0
  355. package/dist/lerc-wasm-b8b3cd2c.js +325 -0
  356. package/dist/libtess-61451fa0.js +269 -0
  357. package/dist/libtess-asm-fef1a4ca.js +3673 -0
  358. package/dist/lineSegment-f45db35c.js +76 -0
  359. package/dist/loadGLTFMesh-2f9cee21.js +181 -0
  360. package/dist/loadable-c29cb205.js +24 -0
  361. package/dist/loader-d9b4787f.js +79 -0
  362. package/dist/lyr3DWorker-33babc2c.js +2108 -0
  363. package/dist/mapViewDeps-f5b886c8.js +3052 -0
  364. package/dist/mediaLayerUtils-5a2c2fe8.js +35 -0
  365. package/dist/meshFeatureSet-2312bbe6.js +126 -0
  366. package/dist/meshVertexSpaceUtils-c9b69510.js +58 -0
  367. package/dist/multidimensionalUtils-e85f5a78.js +290 -0
  368. package/dist/normalizeUtilsSync-555b1847.js +181 -0
  369. package/dist/number-72e1a662.js +128 -0
  370. package/dist/objectResourceUtils-abe804cf.js +1455 -0
  371. package/dist/observers-f3bd3593.js +30 -0
  372. package/dist/ogcFeatureUtils-7097c17e.js +206 -0
  373. package/dist/openCloseComponent-67a2c20c.js +37 -0
  374. package/dist/orientedBoundingBox-4ae2c366.js +447 -0
  375. package/dist/parser-7a76caf9.js +488 -0
  376. package/dist/pbf-0b9b579c.js +215 -0
  377. package/dist/pbfQueryUtils-baba23c7.js +422 -0
  378. package/dist/pe-wasm-d080c07b.js +887 -0
  379. package/dist/persistable-82932da9.js +89 -0
  380. package/dist/perspectiveUtils-1b383b17.js +42 -0
  381. package/dist/pieChart-eca78f7c.js +555 -0
  382. package/dist/plane-84e27261.js +160 -0
  383. package/dist/popupUtils-b72d32fb.js +22 -0
  384. package/dist/popupUtils-cde1d105.js +50 -0
  385. package/dist/portalItemUtils-28314a3f.js +57 -0
  386. package/dist/portalLayers-eeaa6e57.js +312 -0
  387. package/dist/portalUtils-457f542e.js +7 -0
  388. package/dist/programUtils-0c20a48e.js +59 -0
  389. package/dist/project-1b5431dd.js +21 -0
  390. package/dist/projectPointToVector-1f1d1dc7.js +14 -0
  391. package/dist/projectVectorToVector-b7e757a1.js +13 -0
  392. package/dist/quantityUtils-b64583f9.js +33 -0
  393. package/dist/quantizationUtils-9e478e23.js +68 -0
  394. package/dist/quat-5502b70d.js +104 -0
  395. package/dist/query-b2397453.js +89 -0
  396. package/dist/queryAttachments-4361fd2f.js +39 -0
  397. package/dist/queryEngineUtils-f24bc98c.js +21 -0
  398. package/dist/queryTopFeatures-e06aa562.js +50 -0
  399. package/dist/queryZScale-b18ec359.js +12 -0
  400. package/dist/rasterProjectionHelper-935c256c.js +577 -0
  401. package/dist/rasterUtils-efad8a20.js +122 -0
  402. package/dist/rasterizingUtils-80de9b14.js +46 -0
  403. package/dist/request-cae502b7.js +46 -0
  404. package/dist/requestImageUtils-caebcf1e.js +8 -0
  405. package/dist/resourceExtension-7d14f4fc.js +17 -0
  406. package/dist/resourceUtils-8d97f5bf.js +42 -0
  407. package/dist/resourceUtils-be991ca4.js +69 -0
  408. package/dist/resourceUtils-fa1a565f.js +62 -0
  409. package/dist/saveAPIKeyUtils-9f0454db.js +8 -0
  410. package/dist/saveUtils-22a6caa6.js +24 -0
  411. package/dist/scaleUtils-ba5596ad.js +23 -0
  412. package/dist/scrim-5b1b6156.js +114 -0
  413. package/dist/serviceCapabilitiesUtils-3a47b26b.js +64 -0
  414. package/dist/sourceUtils-ded5acd6.js +71 -0
  415. package/dist/sphere-418b76df.js +199 -0
  416. package/dist/statsWorker-a082453a.js +37 -0
  417. package/dist/streamLayerUtils-22aa35f2.js +31 -0
  418. package/dist/style.css +1 -1
  419. package/dist/styleUtils-aa4777b6.js +75 -0
  420. package/dist/styleUtils-e5f7ddb7.js +14 -0
  421. package/dist/sublayerUtils-7c5ebfea.js +37 -0
  422. package/dist/substitute-da3c695d.js +52 -0
  423. package/dist/symbolColorUtils-5d3e355f.js +8 -0
  424. package/dist/symbolLayerUtils-47cdd4d1.js +31 -0
  425. package/dist/symbologySnappingCandidates-6ebf1df0.js +221 -0
  426. package/dist/t9n-c80e56d9.js +349 -0
  427. package/dist/testSVGPremultipliedAlpha-b9ff88ef.js +94 -0
  428. package/dist/timeSupport-8d2432f7.js +410 -0
  429. package/dist/triangle-07f96fb9.js +98 -0
  430. package/dist/unitConversionUtils-c1bfd22b.js +17 -0
  431. package/dist/unitFormatUtils-e75be0c3.js +40 -0
  432. package/dist/uploadAssetErrors-3493bdb9.js +70 -0
  433. package/dist/uploadAssets-24fe5279.js +330 -0
  434. package/dist/utils-17d83806.js +2746 -0
  435. package/dist/utils-717efd4b.js +73 -0
  436. package/dist/utils-74e8e651.js +433 -0
  437. package/dist/utils-7c8f1d3f.js +232 -0
  438. package/dist/utils-94cbe432.js +79 -0
  439. package/dist/utils-a76b92ed.js +34 -0
  440. package/dist/utils-e73651cf.js +419 -0
  441. package/dist/utils-f46de72c.js +91 -0
  442. package/dist/utils3-eb04cacb.js +75 -0
  443. package/dist/vec3-61daf837.js +81 -0
  444. package/dist/vec42-27060a00.js +125 -0
  445. package/dist/versionUtils-c9c03a5d.js +161 -0
  446. package/dist/visualVariableUtils-bc9bfef1.js +267 -0
  447. package/dist/webStyleSymbolUtils-0990caa8.js +48 -0
  448. package/dist/webglDeps-812387f7.js +23 -0
  449. package/dist/wfsUtils-fdccd660.js +343 -0
  450. package/dist/workerHelper-d8d5f17b.js +11 -0
  451. package/dist/xyChart-94c1ef04.js +3335 -0
  452. package/package.json +1 -1
  453. package/dist/AGraphicContainer-98a4c8a4.js +0 -109
  454. package/dist/APIKeyMixin-9511e0a5.js +0 -19
  455. package/dist/Accordion/Accordion.d.ts +0 -49
  456. package/dist/Analysis-4b1d1fb5.js +0 -31
  457. package/dist/ArcGISCachedService-93e2cb27.js +0 -47
  458. package/dist/ArcGISService-3f8d89c1.js +0 -25
  459. package/dist/AreaMeasurement2D-e0bb230c.js +0 -405
  460. package/dist/AreaMeasurement3D-a9959ecf.js +0 -488
  461. package/dist/AttachmentInfo-601c56e2.js +0 -34
  462. package/dist/AttachmentQuery-3504d550.js +0 -18
  463. package/dist/AttributeStore-b90878e3.js +0 -1707
  464. package/dist/Avatar/Avatar.d.ts +0 -66
  465. package/dist/BaseDynamicLayerView2D-b2faf028.js +0 -63
  466. package/dist/BingMapsLayer-5d79fe2b.js +0 -112
  467. package/dist/Bitmap-f775c851.js +0 -128
  468. package/dist/BitmapContainer-af5942b8.js +0 -23
  469. package/dist/BlendLayer-a792edf6.js +0 -13
  470. package/dist/BoundsStore-789624df.js +0 -63
  471. package/dist/BufferObject-cbd0168e.js +0 -100
  472. package/dist/BufferView-004ad517.js +0 -683
  473. package/dist/BuildingSceneLayer-25bc760b.js +0 -535
  474. package/dist/Button/Button.d.ts +0 -82
  475. package/dist/Button-70963624.js +0 -36
  476. package/dist/CSVLayer-fd3b6750.js +0 -208
  477. package/dist/CSVSourceWorker-eb24cd85.js +0 -367
  478. package/dist/CatalogDynamicGroupLayerView2D-dfc700a4.js +0 -66
  479. package/dist/CatalogFootprintLayerView2D-6eb16597.js +0 -76
  480. package/dist/CatalogLayer-1cc632fe.js +0 -262
  481. package/dist/CatalogLayerView2D-d143aa34.js +0 -52
  482. package/dist/Checkbox/Checkbox.d.ts +0 -87
  483. package/dist/ClassBreaksDefinition-07ba0c64.js +0 -18
  484. package/dist/ColorMaterial.glsl-e7801766.js +0 -64
  485. package/dist/ColorSet-df5696b5.js +0 -45
  486. package/dist/ColorStop-7187f368.js +0 -29
  487. package/dist/Container-ac97765a.js +0 -521
  488. package/dist/CustomParametersMixin-b3432b3e.js +0 -12
  489. package/dist/DataTable/Column/Column.d.ts +0 -36
  490. package/dist/DataTable/Counters/Counters.d.ts +0 -41
  491. package/dist/DataTable/DataTable.d.ts +0 -113
  492. package/dist/DefaultMaterial.glsl-3cc4efe7.js +0 -42
  493. package/dist/DefaultMaterial_COLOR_GAMMA-337c63aa.js +0 -653
  494. package/dist/DefaultTheme-12dffc66.js +0 -130
  495. package/dist/DeleteForwardEditsParameters-ae76d898.js +0 -18
  496. package/dist/DimensionLayer-9eb47c76.js +0 -129
  497. package/dist/DirectLineMeasurement3D-e9903136.js +0 -449
  498. package/dist/DistanceMeasurement2D-a4853462.js +0 -303
  499. package/dist/DoubleArray-5076283e.js +0 -25
  500. package/dist/EdgeProcessingWorker-c1783ddd.js +0 -63
  501. package/dist/EditBusLayer-e812f4c9.js +0 -107
  502. package/dist/ElevationInfo-fad03d5e.js +0 -56
  503. package/dist/ElevationLayer-397792d5.js +0 -129
  504. package/dist/ElevationQuery-beceb62f.js +0 -598
  505. package/dist/ElevationSamplerWorker-0048a204.js +0 -62
  506. package/dist/ExportImageParameters-c6c4bc61.js +0 -66
  507. package/dist/ExportStrategy-908f5b8d.js +0 -93
  508. package/dist/ExportWMSImageParameters-34da6b46.js +0 -33
  509. package/dist/External-14daf0c1.js +0 -110
  510. package/dist/FeatureCollectionSnappingSource-f97a1829.js +0 -130
  511. package/dist/FeatureCommandQueue-d4817eac.js +0 -1244
  512. package/dist/FeatureEffect-08976bbd.js +0 -39
  513. package/dist/FeatureEffectLayer-05c258f4.js +0 -13
  514. package/dist/FeatureFilter-8c5e44b1.js +0 -27
  515. package/dist/FeatureLayer-d3659466.js +0 -693
  516. package/dist/FeatureLayerBase-9b63f732.js +0 -148
  517. package/dist/FeatureLayerSource-960f1c01.js +0 -444
  518. package/dist/FeatureLayerView2D-7503e1ed.js +0 -1967
  519. package/dist/FeaturePipelineWorker-d4301d2a.js +0 -3633
  520. package/dist/FeatureReductionLayer-e6cf73ac.js +0 -225
  521. package/dist/FeatureReductionSelection-d90249a7.js +0 -22
  522. package/dist/FeatureServiceSnappingSource-9e49ca72.js +0 -481
  523. package/dist/FeatureServiceSnappingSourceWorker-39b093b3.js +0 -747
  524. package/dist/FeatureSet-d79f0e48.js +0 -188
  525. package/dist/FeatureStore-eb4b87c0.js +0 -131
  526. package/dist/FeatureTemplate-edb1b782.js +0 -12
  527. package/dist/FeatureType-bba29adb.js +0 -25
  528. package/dist/FieldsIndex-75cca4d0.js +0 -109
  529. package/dist/FormTemplate-22911c47.js +0 -350
  530. package/dist/GeoJSONLayer-b33c96b8.js +0 -236
  531. package/dist/GeoJSONSourceWorker-b04ff552.js +0 -247
  532. package/dist/GeoRSSLayer-6e5fcd0e.js +0 -73
  533. package/dist/GeoRSSLayerView2D-21b6b12e.js +0 -140
  534. package/dist/GeometryUtils-fa897cbd.js +0 -403
  535. package/dist/GraphicContainer-1fd6bfce.js +0 -26
  536. package/dist/GraphicManipulator-f3b7dc9b.js +0 -1499
  537. package/dist/GraphicsLayer-e0686779.js +0 -38
  538. package/dist/GraphicsLayerView2D-a7eba2fe.js +0 -114
  539. package/dist/GraphicsSnappingSource-594f402a.js +0 -273
  540. package/dist/GraphicsView2D-347562b8.js +0 -620
  541. package/dist/GroupLayer-7ae0a916.js +0 -147
  542. package/dist/GroupLayerView2D-ffcde606.js +0 -98
  543. package/dist/HUDMaterial.glsl-b0a3e0ce.js +0 -65
  544. package/dist/HighlightCounter-e18f0179.js +0 -41
  545. package/dist/HighlightGraphicContainer-fd774cea.js +0 -18
  546. package/dist/I3SBinaryReader-190e99de.js +0 -310
  547. package/dist/I3SLayerDefinitions-6ddaca60.js +0 -55
  548. package/dist/I3SUtil-44b83dc0.js +0 -59
  549. package/dist/IdentityManager-fbe91c13.js +0 -899
  550. package/dist/ImageHistogramParameters-d64fd9c8.js +0 -905
  551. package/dist/ImageryLayer-67878a78.js +0 -1799
  552. package/dist/ImageryLayerView2D-ae45faba.js +0 -352
  553. package/dist/ImageryTileLayer-9dca8b93.js +0 -2157
  554. package/dist/ImageryTileLayerView2D-977f66aa.js +0 -1110
  555. package/dist/Indices-e6dc3b15.js +0 -67
  556. package/dist/Input/Input.core.d.ts +0 -159
  557. package/dist/IntegratedMesh3DTilesLayer-8811e7bf.js +0 -112
  558. package/dist/IntegratedMeshLayer-9162c0b5.js +0 -141
  559. package/dist/InteractiveAnalysisViewModel-b046fcb9.js +0 -7397
  560. package/dist/InterleavedLayout-32973c8a.js +0 -163
  561. package/dist/KMLLayer-80f81df7.js +0 -162
  562. package/dist/KMLLayerView2D-b6ba3b80.js +0 -253
  563. package/dist/KnowledgeGraphLayerView2D-ae91bd81.js +0 -43
  564. package/dist/LRUCache-27e8c401.js +0 -32
  565. package/dist/LabelClass-d9a476d6.js +0 -135
  566. package/dist/LabelMetric-e2728bbf.js +0 -400
  567. package/dist/LaserlinePath.glsl-60d00e61.js +0 -64
  568. package/dist/Laserlines.glsl-499a6cbf.js +0 -65
  569. package/dist/LayerFloorInfo-d05cf9dd.js +0 -15
  570. package/dist/LayerView-036988a9.js +0 -206
  571. package/dist/Legend/Legend.d.ts +0 -73
  572. package/dist/LercWorker-b1b4bb47.js +0 -157
  573. package/dist/LineOfSightLayer-9a9a60b7.js +0 -147
  574. package/dist/LinkChartLayer-d61803bb.js +0 -1027
  575. package/dist/Lyr3DWorker-87be14e0.js +0 -82
  576. package/dist/MagnifierPrograms-da7a27ab.js +0 -806
  577. package/dist/Map/Map.d.ts +0 -26
  578. package/dist/MapImageLayer-f07adf1a.js +0 -169
  579. package/dist/MapImageLayerView2D-d1b140c3.js +0 -146
  580. package/dist/MapNotesLayer-c662d147.js +0 -283
  581. package/dist/MapNotesLayerView2D-bf9ac698.js +0 -161
  582. package/dist/MapServiceLayerViewHelper-fb724de9.js +0 -288
  583. package/dist/MeasurementWidgetContent-e4888ef2.js +0 -2642
  584. package/dist/MediaLayer-36d873a3.js +0 -523
  585. package/dist/MediaLayerView2D-e58b8ec0.js +0 -332
  586. package/dist/MemCache-a9232ec2.js +0 -227
  587. package/dist/MemorySourceWorker-20ff27d6.js +0 -222
  588. package/dist/Mesh-3839826a.js +0 -980
  589. package/dist/MeshLocalVertexSpace-00151564.js +0 -19
  590. package/dist/Modal/Modal.d.ts +0 -106
  591. package/dist/MultiOriginJSONSupport-bb258670.js +0 -158
  592. package/dist/OGCFeatureLayer-2a8b7ecc.js +0 -211
  593. package/dist/OGCFeatureLayerView2D-185f9649.js +0 -82
  594. package/dist/ObjectStack-10d91171.js +0 -21
  595. package/dist/Octree-78797046.js +0 -495
  596. package/dist/OpenStreetMapLayer-b0a17790.js +0 -30
  597. package/dist/OperationalLayer-55af27d6.js +0 -44
  598. package/dist/OrderByInfo-22e3c805.js +0 -16
  599. package/dist/OrderedLayer-1403a591.js +0 -26
  600. package/dist/OrientedImageryLayer-8ec8d7d1.js +0 -216
  601. package/dist/OverlayCompositing.glsl-ba3bd81d.js +0 -65
  602. package/dist/OverrideHelper-82325a2c.js +0 -242
  603. package/dist/PBFDecoderWorker-f6517afc.js +0 -213
  604. package/dist/Paginator/Paginator.d.ts +0 -43
  605. package/dist/PointCloudLayer-cff43a10.js +0 -197
  606. package/dist/PointCloudUniqueValueRenderer-f337a895.js +0 -115
  607. package/dist/PointCloudWorker-cdb28dc1.js +0 -212
  608. package/dist/PooledRBush-ee4e60af.js +0 -272
  609. package/dist/Popup-c7f55588.js +0 -3990
  610. package/dist/PortalLayer-07b3c53e.js +0 -126
  611. package/dist/Program-ba2f18b2.js +0 -694
  612. package/dist/ProgramTemplate-eee4f097.js +0 -35
  613. package/dist/ProgressBar/ProgressBar.d.ts +0 -73
  614. package/dist/QueryEngine-10c97624.js +0 -896
  615. package/dist/QueryTask-115430b6.js +0 -119
  616. package/dist/RadioButton/RadioButton.d.ts +0 -87
  617. package/dist/RasterSymbolizer-fbf433fe.js +0 -3024
  618. package/dist/RasterVFDisplayObject-20b0dd86.js +0 -581
  619. package/dist/RasterWorker-44c37e20.js +0 -78
  620. package/dist/RawBlockCache-25203dbd.js +0 -185
  621. package/dist/RealisticTree.glsl-bc07c4dc.js +0 -42
  622. package/dist/RefreshableLayer-9550b85a.js +0 -80
  623. package/dist/RefreshableLayerView-601f7038.js +0 -16
  624. package/dist/Relationship-c662830e.js +0 -64
  625. package/dist/RelationshipQuery-765f068e.js +0 -22
  626. package/dist/RenderingContext-3db74548.js +0 -889
  627. package/dist/RibbonLine.glsl-c6a715b7.js +0 -65
  628. package/dist/RouteLayer-3f5411f3.js +0 -786
  629. package/dist/RouteLayerView2D-a5fd4cbf.js +0 -195
  630. package/dist/SDFHelper-a34e90ee.js +0 -140
  631. package/dist/SSAO.glsl-5491a708.js +0 -43
  632. package/dist/SSAOBlur.glsl-f3068b8e.js +0 -42
  633. package/dist/ScaleRangeLayer-7ddf00b4.js +0 -21
  634. package/dist/SceneLayer-c594bfc3.js +0 -542
  635. package/dist/SceneLayerSnappingSource-a0504ac7.js +0 -218
  636. package/dist/SceneLayerSnappingSourceWorker-a04d6692.js +0 -112
  637. package/dist/SceneLayerWorker-1865768e.js +0 -164
  638. package/dist/SceneService-fb9f0142.js +0 -215
  639. package/dist/Scheduler-eacc84bb.js +0 -373
  640. package/dist/Select/Item/Item.d.ts +0 -104
  641. package/dist/Select/Multiple/Select.multiple.d.ts +0 -90
  642. package/dist/Select/Select.core.d.ts +0 -78
  643. package/dist/Select/Single/Select.single.d.ts +0 -66
  644. package/dist/ShadedColorMaterial.glsl-db97956b.js +0 -64
  645. package/dist/SnappingOperation-9622a00d.js +0 -48
  646. package/dist/SourceLayerData-7016f1a5.js +0 -116
  647. package/dist/SpatialFilter-d20d4f50.js +0 -1701
  648. package/dist/Stop-68022e32.js +0 -281
  649. package/dist/StreamLayer-7c837e3d.js +0 -188
  650. package/dist/StreamLayerView2D-586f5a6a.js +0 -164
  651. package/dist/StyleRepository-fba75e70.js +0 -2212
  652. package/dist/SublayersOwner-3dc574cd.js +0 -545
  653. package/dist/SubtypeGroupLayer-1f9c5398.js +0 -514
  654. package/dist/SubtypeGroupLayerView2D-0f108d9d.js +0 -84
  655. package/dist/Tabs/Tab/Tab.d.ts +0 -69
  656. package/dist/Tabs/Tabs.d.ts +0 -50
  657. package/dist/TechniqueInstance-0481dbff.js +0 -233
  658. package/dist/TemporalLayer-8116b4a4.js +0 -23
  659. package/dist/Texture-22a8cca5.js +0 -501
  660. package/dist/TextureOnly.glsl-458f8148.js +0 -65
  661. package/dist/Theme-f05b8eb0.js +0 -3426
  662. package/dist/Tick-aef93b48.js +0 -723
  663. package/dist/TileContainer-0bf0ea1b.js +0 -31
  664. package/dist/TileInfoTilemapCache-d78858c0.js +0 -38
  665. package/dist/TileLayer-0edee064.js +0 -194
  666. package/dist/TileLayerView2D-78d5801b.js +0 -187
  667. package/dist/TilemapCache-79699d61.js +0 -189
  668. package/dist/TimeInfo-40c96ade.js +0 -42
  669. package/dist/TimeOnly-9ee66ca6.js +0 -706
  670. package/dist/Tipograph/Paragraph/Paragraph.d.ts +0 -25
  671. package/dist/Tipograph/Title/Title.d.ts +0 -25
  672. package/dist/Toggle/Toggle.d.ts +0 -45
  673. package/dist/Tooltip-e7498dc9.js +0 -138
  674. package/dist/TopFeaturesQuery-ad224e01.js +0 -32
  675. package/dist/TurboLine-6ab04aef.js +0 -565
  676. package/dist/UniqueValueRenderer-eaa5f8a6.js +0 -1039
  677. package/dist/UnknownLayer-e280ddd4.js +0 -30
  678. package/dist/UnknownTimeZone-220952b5.js +0 -15
  679. package/dist/UnsupportedLayer-447f7676.js +0 -31
  680. package/dist/UpdateTracking2D-e9adad8f.js +0 -8566
  681. package/dist/Upload/Upload.d.ts +0 -129
  682. package/dist/Util-002f5109.js +0 -57
  683. package/dist/VectorTileLayer-3210be81.js +0 -544
  684. package/dist/VectorTileLayerView2D-6a51e3b8.js +0 -2108
  685. package/dist/Version-3de8cbca.js +0 -33
  686. package/dist/VertexArrayObject-07998745.js +0 -73
  687. package/dist/VertexColor.glsl-e415cf02.js +0 -2683
  688. package/dist/VertexSnappingCandidate-b676241f.js +0 -13
  689. package/dist/VideoLayerView2D-f659dd0d.js +0 -124
  690. package/dist/VoxelLayer-003f82ff.js +0 -631
  691. package/dist/WFSLayer-3da6c5f7.js +0 -221
  692. package/dist/WFSSourceWorker-9a11693a.js +0 -157
  693. package/dist/WGLContainer-3d159b63.js +0 -5426
  694. package/dist/WMSLayer-fc0632f8.js +0 -536
  695. package/dist/WMSLayerView2D-54e80e1b.js +0 -117
  696. package/dist/WMTSLayer-9324b12b.js +0 -531
  697. package/dist/WMTSLayerView2D-3ef936db.js +0 -142
  698. package/dist/WebTileLayer-45c563ff.js +0 -110
  699. package/dist/WhereClause-7a28b740.js +0 -2766
  700. package/dist/WorkerHandle-0d54a6c7.js +0 -47
  701. package/dist/WorkerTileHandler-786c2b24.js +0 -1539
  702. package/dist/action-163397e3.js +0 -198
  703. package/dist/action-group-4859fb97.js +0 -145
  704. package/dist/action-menu-2d70b2fc.js +0 -1759
  705. package/dist/apng-9b71d52c.js +0 -392
  706. package/dist/arcade-fa309282.js +0 -229
  707. package/dist/arcadeAsyncRuntime-738498fd.js +0 -943
  708. package/dist/arcadeUtils-f71d80fa.js +0 -8741
  709. package/dist/arcgis-knowledge-client-core-6056bcea.js +0 -1218
  710. package/dist/arcgis-knowledge-client-core-simd-9bc1f83e.js +0 -1218
  711. package/dist/arcgisLayers-b2b878bd.js +0 -152
  712. package/dist/associatedFeatureServiceUtils-df5b5187.js +0 -92
  713. package/dist/axisAngleDegrees-32643b7c.js +0 -49
  714. package/dist/basis_transcoder-3187cc92.js +0 -1248
  715. package/dist/calcite-action-bar-5a87c23c.js +0 -303
  716. package/dist/calcite-action-ee2ca847.js +0 -22
  717. package/dist/calcite-action-group-19aa86ee.js +0 -28
  718. package/dist/calcite-button-8e9175c0.js +0 -228
  719. package/dist/calcite-flow-57d26d2d.js +0 -128
  720. package/dist/calcite-flow-item-4a3e3fc0.js +0 -499
  721. package/dist/calcite-icon-d99e280a.js +0 -16
  722. package/dist/calcite-input-28b20785.js +0 -24
  723. package/dist/calcite-label-4f30e08d.js +0 -79
  724. package/dist/calcite-list-0cee7628.js +0 -2135
  725. package/dist/calcite-list-item-0a19efa8.js +0 -576
  726. package/dist/calcite-list-item-group-0706662f.js +0 -71
  727. package/dist/calcite-loader-865045b1.js +0 -14
  728. package/dist/calcite-modal-3e4da6fd.js +0 -333
  729. package/dist/calcite-notice-50b74ab7.js +0 -181
  730. package/dist/calcite-option-713c1d40.js +0 -94
  731. package/dist/calcite-scrim-809fbd0b.js +0 -18
  732. package/dist/calcite-select-28d8edfc.js +0 -231
  733. package/dist/capabilities-c8f838be.js +0 -50
  734. package/dist/chartCommon-13718cda.js +0 -256
  735. package/dist/chartUtilsAm5-6be145fb.js +0 -2954
  736. package/dist/clientSideDefaults-5c1f97c9.js +0 -39
  737. package/dist/colorRamps-8792655e.js +0 -38
  738. package/dist/colorUtils-54f4b662.js +0 -164
  739. package/dist/commonProperties-f9559903.js +0 -60
  740. package/dist/computeTranslationToOriginAndRotation-4876cb93.js +0 -60
  741. package/dist/conditionalSlot-87175989.js +0 -27
  742. package/dist/createConnection-f974a00a.js +0 -299
  743. package/dist/dataUtils-7c276b73.js +0 -1421
  744. package/dist/deduplicate-59fb9cac.js +0 -89
  745. package/dist/defaults-2bfa4a36.js +0 -31
  746. package/dist/deleteForwardEdits-f653b513.js +0 -13
  747. package/dist/diffUtils-e71a6152.js +0 -90
  748. package/dist/drapedUtils-b42fcbc6.js +0 -75
  749. package/dist/earcut-6fa1a128.js +0 -292
  750. package/dist/edgeProcessing-2ff1f201.js +0 -252
  751. package/dist/editingSupport-68545668.js +0 -203
  752. package/dist/editsZScale-c7cdd215.js +0 -37
  753. package/dist/elevationInfoUtils-5456a079.js +0 -126
  754. package/dist/executeForIds-4ab75c0d.js +0 -14
  755. package/dist/executeForTopCount-7e095ec1.js +0 -17
  756. package/dist/executeForTopExtents-19daf9d0.js +0 -17
  757. package/dist/executeForTopIds-1ba3a4af.js +0 -17
  758. package/dist/executeQueryJSON-46168866.js +0 -15
  759. package/dist/executeQueryPBF-d8623daf.js +0 -152
  760. package/dist/executeRelationshipQuery-011dfb45.js +0 -53
  761. package/dist/executeTopFeaturesQuery-02166801.js +0 -18
  762. package/dist/featureConversionUtils-650d7601.js +0 -479
  763. package/dist/featureLayerUtils-64e09283.js +0 -142
  764. package/dist/featureLayerUtils-b07f9c11.js +0 -250
  765. package/dist/featureSetUtils-9d37d6f8.js +0 -2530
  766. package/dist/featuresetbase-62aeb079.js +0 -707
  767. package/dist/featuresetgeom-51f9fc4e.js +0 -99
  768. package/dist/featuresetstats-4db32894.js +0 -81
  769. package/dist/featuresetstring-990c3287.js +0 -95
  770. package/dist/fetchService-5198dd4a.js +0 -33
  771. package/dist/fieldProperties-edfa24cb.js +0 -33
  772. package/dist/floatRGBA-516d7961.js +0 -20
  773. package/dist/form-99719d52.js +0 -138
  774. package/dist/geohashUtils-2bc76440.js +0 -85
  775. package/dist/geojson-603231df.js +0 -208
  776. package/dist/geomasync-e9063b4c.js +0 -567
  777. package/dist/geometryEngine-d3bb2fd6.js +0 -192
  778. package/dist/geometryEngineAsync-55aa6170.js +0 -217
  779. package/dist/geometryEngineBase-527e8b63.js +0 -18463
  780. package/dist/geometryEngineJSON-28087174.js +0 -46
  781. package/dist/geometryEngineJSON-d54949f9.js +0 -171
  782. package/dist/geometryEngineWorker-dc2c7127.js +0 -11
  783. package/dist/geometryServiceUtils-6a3e1e93.js +0 -28
  784. package/dist/georeference-ed8b2c30.js +0 -291
  785. package/dist/gif-204e82dd.js +0 -323
  786. package/dist/gltfexport-b2566542.js +0 -705
  787. package/dist/groupLayerUtils-ea9e6359.js +0 -39
  788. package/dist/heatmapUtils-56758920.js +0 -45
  789. package/dist/highlightReasons-de432106.js +0 -19
  790. package/dist/hydrated-0e1c7565.js +0 -40
  791. package/dist/i3s-bb0b5b67.js +0 -809
  792. package/dist/icon-c6e3bd23.js +0 -127
  793. package/dist/imageBitmapUtils-881d8c64.js +0 -23
  794. package/dist/imageUtils-57eeedc5.js +0 -69
  795. package/dist/imageUtils-ef69c578.js +0 -89
  796. package/dist/imageryUtils-23f51cb1.js +0 -43
  797. package/dist/index-01c737ed.js +0 -42563
  798. package/dist/input-message-673a9baa.js +0 -92
  799. package/dist/input2-bbf6454e.js +0 -575
  800. package/dist/interactive-aeb2cb9f.js +0 -80
  801. package/dist/jsonContext-2dc288b1.js +0 -15
  802. package/dist/jsonUtils-1abd4bfc.js +0 -59
  803. package/dist/jsonUtils-913fa1bd.js +0 -86
  804. package/dist/jsonUtils-f6a5e63b.js +0 -476
  805. package/dist/kmlUtils-7c2744fe.js +0 -112
  806. package/dist/knowledgeGraphService-6a349e04.js +0 -739
  807. package/dist/knowledgegraph-c91b0bb2.js +0 -149
  808. package/dist/labelUtils-a3634e8f.js +0 -61
  809. package/dist/labelingInfo-568c9210.js +0 -46
  810. package/dist/layersCreator-4a5366ea.js +0 -151
  811. package/dist/layersLoader-b87d4857.js +0 -197
  812. package/dist/lazyLayerLoader-8817000c.js +0 -10
  813. package/dist/lclayout-64c67b4e.js +0 -773
  814. package/dist/lengthUtils-695e744c.js +0 -5
  815. package/dist/lerc-wasm-13192bf3.js +0 -325
  816. package/dist/libtess-asm-4883179d.js +0 -3673
  817. package/dist/libtess-fc70d1ce.js +0 -269
  818. package/dist/lineSegment-3aa941f5.js +0 -76
  819. package/dist/loadGLTFMesh-db6645f5.js +0 -181
  820. package/dist/loadable-266f324b.js +0 -24
  821. package/dist/loader-d1ce1bc1.js +0 -79
  822. package/dist/lyr3DWorker-dd48e619.js +0 -2108
  823. package/dist/mapViewDeps-226d9da3.js +0 -3052
  824. package/dist/mediaLayerUtils-ae485c27.js +0 -35
  825. package/dist/meshFeatureSet-8a2ad011.js +0 -126
  826. package/dist/meshVertexSpaceUtils-6efe3dcc.js +0 -58
  827. package/dist/multidimensionalUtils-508a3f3f.js +0 -290
  828. package/dist/normalizeUtilsSync-1dae280b.js +0 -181
  829. package/dist/number-5aa3a81b.js +0 -128
  830. package/dist/objectResourceUtils-642ab03e.js +0 -1455
  831. package/dist/observers-f646a6a4.js +0 -30
  832. package/dist/ogcFeatureUtils-46ac1c44.js +0 -206
  833. package/dist/openCloseComponent-47eb52c6.js +0 -37
  834. package/dist/orientedBoundingBox-554ccdc6.js +0 -447
  835. package/dist/parser-0701286c.js +0 -488
  836. package/dist/pbf-5dd791f5.js +0 -215
  837. package/dist/pbfQueryUtils-a6ca7e23.js +0 -422
  838. package/dist/pe-wasm-6c16b121.js +0 -887
  839. package/dist/persistable-9eb0e8df.js +0 -89
  840. package/dist/perspectiveUtils-b194621d.js +0 -42
  841. package/dist/pieChart-b97433d0.js +0 -555
  842. package/dist/plane-3398eec1.js +0 -160
  843. package/dist/popupUtils-c444b896.js +0 -22
  844. package/dist/popupUtils-d871563b.js +0 -50
  845. package/dist/portalItemUtils-4c4caad0.js +0 -57
  846. package/dist/portalLayers-cb07742f.js +0 -312
  847. package/dist/portalUtils-effd590f.js +0 -7
  848. package/dist/programUtils-65af7b7c.js +0 -59
  849. package/dist/project-ee9c2947.js +0 -21
  850. package/dist/projectPointToVector-7dc831a9.js +0 -14
  851. package/dist/projectVectorToVector-5163db7a.js +0 -13
  852. package/dist/quantityUtils-5cd4cf90.js +0 -33
  853. package/dist/quantizationUtils-0a8f74c6.js +0 -68
  854. package/dist/quat-a508aed3.js +0 -104
  855. package/dist/query-b6e1fd14.js +0 -89
  856. package/dist/queryAttachments-7b39ebdc.js +0 -39
  857. package/dist/queryEngineUtils-cb8e309e.js +0 -21
  858. package/dist/queryTopFeatures-2e0e3941.js +0 -50
  859. package/dist/queryZScale-c5733d0a.js +0 -12
  860. package/dist/rasterProjectionHelper-213afa27.js +0 -577
  861. package/dist/rasterUtils-f2e44e8b.js +0 -122
  862. package/dist/rasterizingUtils-25cc0190.js +0 -46
  863. package/dist/request-e0c679b3.js +0 -46
  864. package/dist/requestImageUtils-37d79281.js +0 -8
  865. package/dist/resourceExtension-5f3f1c80.js +0 -17
  866. package/dist/resourceUtils-0d68cbc2.js +0 -69
  867. package/dist/resourceUtils-374db840.js +0 -62
  868. package/dist/resourceUtils-43ce192b.js +0 -42
  869. package/dist/saveAPIKeyUtils-1a3d4a8a.js +0 -8
  870. package/dist/saveUtils-43fdc547.js +0 -24
  871. package/dist/scaleUtils-bdf8b6cb.js +0 -23
  872. package/dist/scrim-44eb4dc0.js +0 -114
  873. package/dist/serviceCapabilitiesUtils-823612b8.js +0 -64
  874. package/dist/sourceUtils-01d115c6.js +0 -71
  875. package/dist/sphere-908cd9aa.js +0 -199
  876. package/dist/statsWorker-49f9befe.js +0 -37
  877. package/dist/streamLayerUtils-29324e05.js +0 -31
  878. package/dist/styleUtils-82e8da52.js +0 -75
  879. package/dist/styleUtils-8541d60d.js +0 -14
  880. package/dist/sublayerUtils-eaac2486.js +0 -37
  881. package/dist/substitute-1f578d70.js +0 -52
  882. package/dist/symbolColorUtils-18fd6b3d.js +0 -8
  883. package/dist/symbolLayerUtils-4c58b291.js +0 -31
  884. package/dist/symbologySnappingCandidates-14d94b6b.js +0 -221
  885. package/dist/t9n-c1c2b6c8.js +0 -349
  886. package/dist/testSVGPremultipliedAlpha-159dac90.js +0 -94
  887. package/dist/timeSupport-3f529cdb.js +0 -410
  888. package/dist/triangle-8a3a2ba8.js +0 -98
  889. package/dist/unitConversionUtils-f0ebaf75.js +0 -17
  890. package/dist/unitFormatUtils-555e2d94.js +0 -40
  891. package/dist/uploadAssetErrors-d1389781.js +0 -70
  892. package/dist/uploadAssets-5e85f09d.js +0 -330
  893. package/dist/utils-3a10b10c.js +0 -34
  894. package/dist/utils-505c54e9.js +0 -91
  895. package/dist/utils-5432e258.js +0 -433
  896. package/dist/utils-7a88ec6a.js +0 -419
  897. package/dist/utils-7fa9cdf9.js +0 -2746
  898. package/dist/utils-d252c575.js +0 -73
  899. package/dist/utils-f07e00b3.js +0 -232
  900. package/dist/utils-fda10b4b.js +0 -79
  901. package/dist/utils3-c34ab97c.js +0 -75
  902. package/dist/vec3-f79c600d.js +0 -81
  903. package/dist/vec42-36edeb73.js +0 -125
  904. package/dist/versionUtils-6935648b.js +0 -161
  905. package/dist/visualVariableUtils-c425461a.js +0 -267
  906. package/dist/webStyleSymbolUtils-4f42a29f.js +0 -48
  907. package/dist/webglDeps-5f18210d.js +0 -23
  908. package/dist/wfsUtils-6f7f1e3e.js +0 -343
  909. package/dist/workerHelper-9dc9a790.js +0 -11
  910. package/dist/xyChart-e5648fee.js +0 -3335
@@ -1,2642 +0,0 @@
1
- import { G as Ze, cy as Ut, fg as P, bd as et, bf as Et, W as jt, j as Bt, b1 as Tn, b0 as Vn, kf as q, dU as Ls, kg as Rs, kh as Ps, aI as Ss, bR as An, bg as X, bl as bt, e as f, y as _, c as It, ad as re, bx as Ln, g6 as V, fs as ue, fm as ks, aS as R, iJ as Mt, a$ as Rt, iI as Rn, ki as Pn, kj as Ns, jA as zs, b9 as g, kk as Cs, gc as Is, hk as Ds, bm as $t, kl as oe, aH as Zs, gn as Os, dc as Sn, dN as Xt, d0 as Us, jj as C, jv as qs, km as kn, kn as ct, ko as kt, kp as Pt, kq as Hs, hW as sn, bo as rn, bc as z, kr as on, bp as Ot, ks as Fs, bF as Gs, iH as js, kt as an, g as Xs, c7 as Ys, ku as Ws, kv as Bs, kw as Js, bT as pe, bz as Qs, aq as Yt, en as j, fr as O, kx as Ks, bn as Oe, gi as Le, fj as Nn, C as ti, B as ei, br as Re, bq as ni, ky as si, jr as zn, bE as ii, kz as ri, o as Ue, a as oi, l as ai, eQ as li, k as ci, fG as Cn, by as hi, q as ui, kA as pi, i0 as di, jm as fi, kB as gi, kC as _i, kD as mi, V as yi, S as In, kE as Tt, dO as vi, s as Dn, p as xi, fU as Ei, fV as Zn, hO as On, fW as N, kF as $i } from "./index-01c737ed.js";
2
- import { _ as Mi, a as wi, L as bi, s as Ti, j as Vi } from "./vec42-36edeb73.js";
3
- import { n as Un, r as Ee, e as Ai } from "./vec4f64-043e974c.js";
4
- import { E as F, j as Jt, V as qt, A as $e, D as qn, F as Ht, w as qe, R as Pe, J as Hn, b as Li } from "./plane-3398eec1.js";
5
- import { f as Ri, a as ln, D as Pi, T as Si, E as ki, W as Ni, Z as zi } from "./sphere-908cd9aa.js";
6
- import { e as Qt, n as ae } from "./projectVectorToVector-5163db7a.js";
7
- import { g as Ci, h as Ii, w as He, v as cn } from "./elevationInfoUtils-5456a079.js";
8
- import { g as Di, u as Zi } from "./meshVertexSpaceUtils-6efe3dcc.js";
9
- import { I as Oi, F as Ui } from "./Scheduler-eacc84bb.js";
10
- import { y as Fn, l as qi } from "./quantityUtils-5cd4cf90.js";
11
- function Hi(n, t) {
12
- return n === t || n != null && t != null && Ze(n.spatialReference, t.spatialReference) && n.x === t.x && n.y === t.y && n.z === t.z && n.m === t.m;
13
- }
14
- function Do(n, t, e) {
15
- return n === t || n != null && t != null && Ze(n.spatialReference, t.spatialReference) && Ut(n.x, t.x, e) && Ut(n.y, t.y, e) && Ut(n.z ?? 0, t.z ?? 0, e) && Ut(n.m ?? 0, t.m ?? 0, e);
16
- }
17
- function Zo(n) {
18
- const t = n[0] * n[0] + n[4] * n[4] + n[8] * n[8], e = n[1] * n[1] + n[5] * n[5] + n[9] * n[9], s = n[2] * n[2] + n[6] * n[6] + n[10] * n[10];
19
- return Math.sqrt(Math.max(t, e, s));
20
- }
21
- function Gn(n, t, e) {
22
- Math.abs(n[0]) > Math.abs(n[1]) ? P(t, 0, 1, 0) : P(t, 1, 0, 0), et(e, n, t), et(t, e, n), Et(e, e), Et(t, t);
23
- }
24
- function jn(n) {
25
- if (!n)
26
- return null;
27
- if (Ls(n) && n.wkid) {
28
- const e = Rs[n.wkid];
29
- if (e)
30
- return e;
31
- }
32
- const t = n.wkt2 || n.wkt;
33
- if (t) {
34
- const e = Fi(t);
35
- if (e)
36
- return e;
37
- }
38
- return null;
39
- }
40
- function Fi(n) {
41
- const t = Ps.exec(n);
42
- if (!t || t.length !== 2)
43
- return null;
44
- const e = t[1].split(",");
45
- if (!e || e.length < 3)
46
- return null;
47
- const s = parseFloat(e[1]), i = parseFloat(e[2]);
48
- return isNaN(s) || isNaN(i) ? null : { a: s, f: i === 0 ? 0 : 1 / i };
49
- }
50
- function de(n) {
51
- const t = jn(n);
52
- if (Gi(t))
53
- return t;
54
- const e = t.a * (1 - t.f);
55
- return Object.assign(t, { b: e, eSq: 1 - (e / t.a) ** 2, radius: (2 * t.a + e) / 3, densificationRatio: 1e4 / ((2 * t.a + e) / 3) });
56
- }
57
- function Gi(n) {
58
- return n != null && "b" in n && "eSq" in n && "radius" in n;
59
- }
60
- function ie(n, t, e) {
61
- const { a: s, eSq: i } = de(e), r = Math.sqrt(i), o = Math.sin(t[1] * q), a = s * t[0] * q;
62
- let l;
63
- return i > 0 ? l = s * ((1 - i) * (o / (1 - i * (o * o)) - 1 / (2 * r) * Math.log((1 - r * o) / (1 + r * o)))) * 0.5 : l = s * o, n[0] = a, n[1] = l, n;
64
- }
65
- function fe(n) {
66
- return jn(n) !== null;
67
- }
68
- function Oo(n, t = "square-meters") {
69
- if (n.some((o) => !fe(o.spatialReference)))
70
- throw new jt("geodesic-areas:invalid-spatial-reference", "the input geometries spatial reference is not supported");
71
- const e = [];
72
- for (let o = 0; o < n.length; o++) {
73
- const a = n[o], l = a.spatialReference, { radius: c, densificationRatio: u } = de(l), h = c * u;
74
- e.push(ji(a, h));
75
- }
76
- const s = [], i = [0, 0], r = [0, 0];
77
- for (let o = 0; o < e.length; o++) {
78
- const { rings: a, spatialReference: l } = e[o];
79
- let c = 0;
80
- for (let u = 0; u < a.length; u++) {
81
- const h = a[u];
82
- ie(i, h[0], l), ie(r, h[h.length - 1], l);
83
- let d = r[0] * i[1] - i[0] * r[1];
84
- for (let p = 0; p < h.length - 1; p++)
85
- ie(i, h[p + 1], l), ie(r, h[p], l), d += r[0] * i[1] - i[0] * r[1];
86
- c += d;
87
- }
88
- c = Bt(c, "square-meters", t), s.push(c / -2);
89
- }
90
- return s;
91
- }
92
- function Uo(n, t = "meters") {
93
- if (!n)
94
- throw new jt("geodesic-lengths:invalid-geometries", "the input geometries type is not supported");
95
- if (n.some((s) => !fe(s.spatialReference)))
96
- throw new jt("geodesic-lengths:invalid-spatial-reference", "the input geometries spatial reference is not supported");
97
- const e = [];
98
- for (let s = 0; s < n.length; s++) {
99
- const i = n[s], { spatialReference: r } = i, o = i.type === "polyline" ? i.paths : i.rings;
100
- let a = 0;
101
- for (let l = 0; l < o.length; l++) {
102
- const c = o[l];
103
- let u = 0;
104
- for (let h = 1; h < c.length; h++) {
105
- const d = c[h - 1][0], p = c[h][0], y = c[h - 1][1], m = c[h][1];
106
- if (y !== m || d !== p) {
107
- const v = new Kt();
108
- te(v, [d, y], [p, m], r), u += v.distance;
109
- }
110
- }
111
- a += u;
112
- }
113
- a = Bt(a, "meters", t), e.push(a);
114
- }
115
- return e;
116
- }
117
- function ji(n, t) {
118
- if (n.type !== "polyline" && n.type !== "polygon")
119
- throw new jt("geodesic-densify:invalid-geometry", "the input geometry is neither polyline nor polygon");
120
- const { spatialReference: e } = n;
121
- if (!fe(e))
122
- throw new jt("geodesic-densify:invalid-spatial-reference", "the input geometry spatial reference is not supported");
123
- const s = n.type === "polyline" ? n.paths : n.rings, i = [], r = [0, 0], o = new Kt();
124
- for (const a of s) {
125
- const l = [];
126
- i.push(l), l.push([a[0][0], a[0][1]]);
127
- let c, u, h = a[0][0], d = a[0][1];
128
- for (let p = 0; p < a.length - 1; p++) {
129
- if (c = a[p + 1][0], u = a[p + 1][1], h === c && d === u)
130
- continue;
131
- const y = [h, d];
132
- te(o, [h, d], [c, u], e);
133
- const { azimuth: m, distance: v } = o, x = v / t;
134
- if (x > 1) {
135
- for (let b = 1; b <= x - 1; b++)
136
- At(r, y, m, b * t, e), l.push(r.slice(0));
137
- At(r, y, m, (v + Math.floor(x - 1) * t) / 2, e), l.push(r.slice(0));
138
- }
139
- At(r, y, m, v, e), l.push(r.slice(0)), h = r[0], d = r[1];
140
- }
141
- }
142
- return n.type === "polyline" ? new Tn({ paths: i, spatialReference: e }) : new Vn({ rings: i, spatialReference: e });
143
- }
144
- let Kt = class {
145
- constructor(t = 0, e = void 0, s = void 0) {
146
- this.distance = t, this.azimuth = e, this.reverseAzimuth = s;
147
- }
148
- };
149
- function At(n, t, e, s, i) {
150
- const r = t[0], o = t[1], a = r * q, l = o * q, c = (e ?? 0) * q, { a: u, b: h, f: d } = de(i), p = Math.sin(c), y = Math.cos(c), m = (1 - d) * Math.tan(l), v = 1 / Math.sqrt(1 + m * m), x = m * v, b = Math.atan2(m, y), S = v * p, I = S * S, A = 1 - I, E = A * (u * u - h * h) / (h * h), k = 1 + E / 16384 * (4096 + E * (E * (320 - 175 * E) - 768)), U = E / 1024 * (256 + E * (E * (74 - 47 * E) - 128));
151
- let D, G, L, rt, W = s / (h * k), H = 2 * Math.PI;
152
- for (; Math.abs(W - H) > 1e-12; )
153
- L = Math.cos(2 * b + W), D = Math.sin(W), G = Math.cos(W), rt = U * D * (L + U / 4 * (G * (2 * L * L - 1) - U / 6 * L * (4 * D * D - 3) * (4 * L * L - 3))), H = W, W = s / (h * k) + rt;
154
- const Q = x * D - v * G * y, Dt = Math.atan2(x * G + v * D * y, (1 - d) * Math.sqrt(I + Q * Q)), ye = Math.atan2(D * p, v * G - x * D * y), Zt = d / 16 * A * (4 + d * (4 - 3 * A)), ve = Dt / q, xe = (a + (ye - (1 - Zt) * d * S * (W + Zt * D * (L + Zt * G * (2 * L * L - 1))))) / q;
155
- return n[0] = xe, n[1] = ve, n;
156
- }
157
- function te(n, t, e, s) {
158
- const i = t[0] * q, r = t[1] * q, o = e[0] * q, a = e[1] * q, { a: l, b: c, f: u, radius: h } = de(s), d = o - i, p = Math.atan((1 - u) * Math.tan(r)), y = Math.atan((1 - u) * Math.tan(a)), m = Math.sin(p), v = Math.cos(p), x = Math.sin(y), b = Math.cos(y);
159
- let S, I, A, E, k, U, D, G, L, rt, W = 1e3, H = d;
160
- do {
161
- if (D = Math.sin(H), G = Math.cos(H), A = Math.sqrt(b * D * (b * D) + (v * x - m * b * G) * (v * x - m * b * G)), A === 0)
162
- return n.distance = 0, n.azimuth = void 0, n.reverseAzimuth = void 0, n;
163
- k = m * x + v * b * G, U = Math.atan2(A, k), L = v * b * D / A, I = 1 - L * L, E = k - 2 * m * x / I, isNaN(E) && (E = 0), rt = u / 16 * I * (4 + u * (4 - 3 * I)), S = H, H = d + (1 - rt) * u * L * (U + rt * A * (E + rt * k * (2 * E * E - 1)));
164
- } while (Math.abs(H - S) > 1e-12 && --W > 0);
165
- if (W === 0) {
166
- const xe = h, bs = Math.acos(Math.sin(r) * Math.sin(a) + Math.cos(r) * Math.cos(a) * Math.cos(o - i)) * xe, nn = o - i, Ts = Math.sin(nn) * Math.cos(a), Vs = Math.cos(r) * Math.sin(a) - Math.sin(r) * Math.cos(a) * Math.cos(nn), As = Math.atan2(Ts, Vs);
167
- return n.azimuth = As / q, n.distance = bs, n.reverseAzimuth = void 0, n;
168
- }
169
- const Q = I * (l * l - c * c) / (c * c), Dt = Q / 1024 * (256 + Q * (Q * (74 - 47 * Q) - 128)), ye = c * (1 + Q / 16384 * (4096 + Q * (Q * (320 - 175 * Q) - 768))) * (U - Dt * A * (E + Dt / 4 * (k * (2 * E * E - 1) - Dt / 6 * E * (4 * A * A - 3) * (4 * E * E - 3)))), Zt = Math.atan2(b * Math.sin(H), v * x - m * b * Math.cos(H)), ve = Math.atan2(v * Math.sin(H), v * x * Math.cos(H) - m * b);
170
- return n.azimuth = Zt / q, n.distance = ye, n.reverseAzimuth = ve / q, n;
171
- }
172
- function Se(n) {
173
- return fe(n) ? n : Ss(n) ? An.WGS84 : null;
174
- }
175
- function Xi(n, t, e) {
176
- return X(n, t, e);
177
- }
178
- function Ho(n) {
179
- return n;
180
- }
181
- function Fo(n) {
182
- return n;
183
- }
184
- function St(n, t, e) {
185
- return X(n, t, e);
186
- }
187
- function Nt(n) {
188
- return bt(n);
189
- }
190
- function hn(n, t, { coordinateHelper: e, elevationInfo: s }) {
191
- return n ? Yi(e.vectorToDehydratedPoint(n, Wi), t, s) : null;
192
- }
193
- function Yi(n, t, e) {
194
- if (n == null)
195
- return null;
196
- if (t == null)
197
- return X(n.x, n.y, n.z ?? 0);
198
- if (t.type === "2d")
199
- return X(n.x, n.y, 0);
200
- const s = Ci(t, n, e, He) ?? 0;
201
- return X(n.x, n.y, s);
202
- }
203
- function Go(n, t) {
204
- return Qt(n[0], n[1], n[2], t);
205
- }
206
- function jo(n, t, { z: e, m: s }, i) {
207
- const { spatialReference: r, elevationInfo: o } = i;
208
- let a;
209
- e == null && s == null ? a = void 0 : t == null || t.type === "2d" ? a = e ?? void 0 : a = Ii(t, n, r, He, o) ?? 0;
210
- const l = Qt(n[0], n[1], a, r);
211
- return s != null && (l.m = s, l.hasM = !0), l;
212
- }
213
- const Wi = Qt(0, 0, 0, null);
214
- let nt = class extends Ln {
215
- constructor() {
216
- super(...arguments), this.enabled = !0;
217
- }
218
- };
219
- f([_({ type: Boolean })], nt.prototype, "enabled", void 0), nt = f([It("esri.views.interactive.snapping.Settings.DefaultSnappingAlgorithm")], nt);
220
- let M = class extends Ln {
221
- constructor(t) {
222
- super(t), this.lineSnapper = new nt(), this.parallelLineSnapper = new nt(), this.rightAngleSnapper = new nt(), this.rightAngleTriangleSnapper = new nt(), this.shortLineThreshold = 15, this.distance = 5, this.pointThreshold = 1e-6, this.intersectionParallelLineThreshold = 1e-6, this.parallelLineThreshold = 1e-6, this.verticalLineThresholdMeters = 0.3, this.touchSensitivityMultiplier = 1.5, this.pointOnLineThreshold = 1e-6, this.orange = new re([255, 127, 0]), this.orangeTransparent = new re([255, 127, 0, 0.5]), this.lineHintWidthReference = 3, this.lineHintWidthTarget = 3, this.lineHintFadedExtensions = 0.3, this.parallelLineHintWidth = 2, this.parallelLineHintLength = 24, this.parallelLineHintOffset = 1.5, this.rightAngleHintSize = 24, this.rightAngleHintOutlineSize = 1.5, this.satisfiesConstraintScreenThreshold = 1;
223
- }
224
- };
225
- f([_({ type: nt, constructOnly: !0, nonNullable: !0, json: { write: !0 } })], M.prototype, "lineSnapper", void 0), f([_({ type: nt, constructOnly: !0, nonNullable: !0, json: { write: !0 } })], M.prototype, "parallelLineSnapper", void 0), f([_({ type: nt, constructOnly: !0, nonNullable: !0, json: { write: !0 } })], M.prototype, "rightAngleSnapper", void 0), f([_({ type: nt, constructOnly: !0, nonNullable: !0, json: { write: !0 } })], M.prototype, "rightAngleTriangleSnapper", void 0), f([_({ type: Number, nonNullable: !0, range: { min: -1, max: 50, step: 1 }, json: { write: !0 } })], M.prototype, "shortLineThreshold", void 0), f([_({ type: Number, nonNullable: !0, range: { min: -1, max: 50, step: 1 }, json: { write: !0 } })], M.prototype, "distance", void 0), f([_({ type: Number, nonNullable: !0, range: { min: 0, max: 1e-5 }, json: { write: !0 } })], M.prototype, "pointThreshold", void 0), f([_({ type: Number, nonNullable: !0, range: { min: 0, max: 1e-5 }, json: { write: !0 } })], M.prototype, "intersectionParallelLineThreshold", void 0), f([_({ type: Number, nonNullable: !0, range: { min: 0, max: 1e-5 }, json: { write: !0 } })], M.prototype, "parallelLineThreshold", void 0), f([_({ type: Number, nonNullable: !0, range: { min: 0, max: 1 }, json: { write: !0 } })], M.prototype, "verticalLineThresholdMeters", void 0), f([_({ type: Number, nonNullable: !0, range: { min: 0, max: 10 }, json: { write: !0 } })], M.prototype, "touchSensitivityMultiplier", void 0), f([_({ type: Number, nonNullable: !0, range: { min: 0, max: 1e-5 }, json: { write: !0 } })], M.prototype, "pointOnLineThreshold", void 0), f([_({ type: re, nonNullable: !0 })], M.prototype, "orange", void 0), f([_({ type: re, nonNullable: !0 })], M.prototype, "orangeTransparent", void 0), f([_({ type: Number, nonNullable: !0, range: { min: 0, max: 10 }, json: { write: !0 } })], M.prototype, "lineHintWidthReference", void 0), f([_({ type: Number, nonNullable: !0, range: { min: 0, max: 10 }, json: { write: !0 } })], M.prototype, "lineHintWidthTarget", void 0), f([_({ type: Number, nonNullable: !0, range: { min: 0, max: 1 }, json: { write: !0 } })], M.prototype, "lineHintFadedExtensions", void 0), f([_({ type: Number, nonNullable: !0, range: { min: 0, max: 10 }, json: { write: !0 } })], M.prototype, "parallelLineHintWidth", void 0), f([_({ type: Number, nonNullable: !0, range: { min: 0, max: 50 }, json: { write: !0 } })], M.prototype, "parallelLineHintLength", void 0), f([_({ type: Number, nonNullable: !0, range: { min: 0, max: 5 }, json: { write: !0 } })], M.prototype, "parallelLineHintOffset", void 0), f([_({ type: Number, nonNullable: !0, range: { min: 0, max: 46 }, json: { write: !0 } })], M.prototype, "rightAngleHintSize", void 0), f([_({ type: Number, nonNullable: !0, range: { min: 0, max: 6 }, json: { write: !0 } })], M.prototype, "rightAngleHintOutlineSize", void 0), f([_({ type: Number, nonNullable: !0, range: { min: 0, max: 5 }, json: { write: !0 } })], M.prototype, "satisfiesConstraintScreenThreshold", void 0), M = f([It("esri.views.interactive.snapping.Settings.Defaults")], M);
226
- const Wo = new M();
227
- var zt;
228
- (function(n) {
229
- n[n.FEATURE = 1] = "FEATURE", n[n.SELF = 2] = "SELF", n[n.ALL = 3] = "ALL";
230
- })(zt || (zt = {}));
231
- let ee = class {
232
- constructor(t, e) {
233
- this.isDraped = t, this.domain = e;
234
- }
235
- }, Bi = class Xn extends ee {
236
- constructor(t, e, s = zt.ALL) {
237
- super(e, s), this.intersectionPoint = t;
238
- }
239
- equals(t) {
240
- return t instanceof Xn && V(this.intersectionPoint, t.intersectionPoint);
241
- }
242
- }, Ji = class Yn extends ee {
243
- constructor(t, e, s, i, r = zt.ALL, o = !0, a = !0) {
244
- super(i, r), this.type = t, this.lineStart = e, this.lineEnd = s, this.fadeLeft = o, this.fadeRight = a;
245
- }
246
- equals(t) {
247
- return t instanceof Yn && this.type === t.type && V(this.lineStart, t.lineStart) && V(this.lineEnd, t.lineEnd) && this.fadeLeft === t.fadeLeft && this.fadeRight === t.fadeRight;
248
- }
249
- get length() {
250
- return ue(this.lineStart, this.lineEnd);
251
- }
252
- }, Qi = class Wn extends ee {
253
- constructor(t, e, s, i = zt.ALL) {
254
- super(s, i), this.lineStart = t, this.lineEnd = e;
255
- }
256
- equals(t) {
257
- return t instanceof Wn && V(this.lineStart, t.lineStart) && V(this.lineEnd, t.lineEnd);
258
- }
259
- }, Ki = class Bn extends ee {
260
- constructor(t, e, s) {
261
- super(e, s), this.point = t;
262
- }
263
- equals(t) {
264
- return t instanceof Bn && V(this.point, t.point);
265
- }
266
- };
267
- class Fe extends ee {
268
- constructor(t, e, s, i, r = zt.ALL) {
269
- super(i, r), this.previousVertex = t, this.centerVertex = e, this.nextVertex = s;
270
- }
271
- equals(t) {
272
- return t instanceof Fe && V(this.previousVertex, t.previousVertex) && V(this.centerVertex, t.centerVertex) && V(this.nextVertex, t.nextVertex);
273
- }
274
- }
275
- let Jo = class {
276
- draw(t, e) {
277
- const s = this._getUniqueHints(t), i = this.sortUniqueHints(s), r = [];
278
- for (const o of i)
279
- o instanceof Bi && r.push(this.visualizeIntersectionPoint(o, e)), o instanceof Ji && r.push(this.visualizeLine(o, e)), o instanceof Qi && r.push(this.visualizeParallelSign(o, e)), o instanceof Fe && r.push(this.visualizeRightAngleQuad(o, e)), o instanceof Ki && r.push(this.visualizePoint(o, e));
280
- return ks(r);
281
- }
282
- sortUniqueHints(t) {
283
- return t;
284
- }
285
- _getUniqueHints(t) {
286
- const e = [];
287
- for (const s of t) {
288
- let i = !0;
289
- for (const r of e)
290
- if (s.equals(r)) {
291
- i = !1;
292
- break;
293
- }
294
- i && e.push(s);
295
- }
296
- return e;
297
- }
298
- };
299
- var T;
300
- (function(n) {
301
- n[n.Z = 0] = "Z", n[n.M = 1] = "M";
302
- })(T || (T = {}));
303
- let tr = class {
304
- constructor(t) {
305
- this.spatialReference = t;
306
- }
307
- createVector() {
308
- return this._tag(R());
309
- }
310
- pointToVector(t) {
311
- return this._tag(Mt(t.x, t.y));
312
- }
313
- arrayToVector(t) {
314
- return this._tag(Mt(t[0], t[1]));
315
- }
316
- vectorToArray(t) {
317
- return [t[0], t[1]];
318
- }
319
- pointToArray(t) {
320
- return [t.x, t.y];
321
- }
322
- vectorToPoint(t, e = new Rt()) {
323
- return e.x = t[0], e.y = t[1], e.z = void 0, e.m = void 0, e.spatialReference = this.spatialReference, e;
324
- }
325
- arrayToPoint(t, e = new Rt()) {
326
- return e.x = t[0], e.y = t[1], e.z = void 0, e.m = void 0, e.spatialReference = this.spatialReference, e;
327
- }
328
- vectorToDehydratedPoint(t, e) {
329
- if (t)
330
- return e ?? (e = { x: void 0, y: void 0, z: void 0, m: void 0, hasZ: void 0, hasM: void 0, spatialReference: void 0, type: "point" }), e.x = t[0], e.y = t[1], e.z = void 0, e.m = void 0, e.hasZ = !1, e.hasM = !1, e.spatialReference = this.spatialReference, e;
331
- }
332
- lerp(t, e, s, i) {
333
- return Rn(i, t, e, s);
334
- }
335
- addDelta(t, e, s) {
336
- t[0] += e, t[1] += s;
337
- }
338
- distance(t, e) {
339
- return Pn(t, e);
340
- }
341
- getZ(t, e = void 0) {
342
- return e;
343
- }
344
- hasZ() {
345
- return !1;
346
- }
347
- getM(t, e = void 0) {
348
- return e;
349
- }
350
- hasM() {
351
- return !1;
352
- }
353
- clone(t) {
354
- return this._tag(Ns(t));
355
- }
356
- copy(t, e) {
357
- return zs(e, t);
358
- }
359
- fromXYZ(t) {
360
- return this._tag(Mt(t[0], t[1]));
361
- }
362
- toXYZ(t, e = g()) {
363
- return P(e, t[0], t[1], 0);
364
- }
365
- pointToXYZ(t, e = g()) {
366
- return P(e, t.x, t.y, 0);
367
- }
368
- equals(t, e) {
369
- return Cs(t, e);
370
- }
371
- _tag(t) {
372
- return t;
373
- }
374
- }, un = class {
375
- constructor(t, e) {
376
- this._valueType = t, this.spatialReference = e;
377
- }
378
- createVector() {
379
- return this._tag(g());
380
- }
381
- pointToVector(t) {
382
- return this._tag(X(t.x, t.y, this._valueType === T.Z ? t.z : t.m));
383
- }
384
- arrayToVector(t) {
385
- return this._tag(X(t[0], t[1], t[2] || 0));
386
- }
387
- vectorToArray(t) {
388
- return [t[0], t[1], t[2]];
389
- }
390
- pointToArray(t) {
391
- return this._valueType === T.Z ? [t.x, t.y, t.z] : [t.x, t.y, t.m];
392
- }
393
- vectorToPoint(t, e = new Rt()) {
394
- return e.x = t[0], e.y = t[1], e.z = this._valueType === T.Z ? t[2] : void 0, e.m = this._valueType === T.M ? t[2] : void 0, e.spatialReference = this.spatialReference, e;
395
- }
396
- arrayToPoint(t, e = new Rt()) {
397
- return e.x = t[0], e.y = t[1], e.z = this._valueType === T.Z ? t[2] : void 0, e.m = this._valueType === T.M ? t[2] : void 0, e.spatialReference = this.spatialReference, e;
398
- }
399
- vectorToDehydratedPoint(t, e) {
400
- if (!t)
401
- return;
402
- e ?? (e = { x: void 0, y: void 0, z: void 0, m: void 0, hasZ: void 0, hasM: void 0, spatialReference: void 0, type: "point" });
403
- const s = this._valueType === T.Z, i = this._valueType === T.M;
404
- return e.x = t[0], e.y = t[1], e.z = s ? t[2] : void 0, e.m = i ? t[2] : void 0, e.hasZ = s, e.hasM = i, e.spatialReference = this.spatialReference, e;
405
- }
406
- lerp(t, e, s, i) {
407
- return Is(i, t, e, s);
408
- }
409
- addDelta(t, e, s, i) {
410
- t[0] += e, t[1] += s, this._valueType === T.Z && (t[2] += i);
411
- }
412
- distance(t, e) {
413
- return this._valueType === T.Z ? ue(t, e) : Pn(t, e);
414
- }
415
- getZ(t, e = void 0) {
416
- return this._valueType === T.Z ? t[2] : e;
417
- }
418
- hasZ() {
419
- return this._valueType === T.Z;
420
- }
421
- getM(t, e = void 0) {
422
- return this._valueType === T.M ? t[2] : e;
423
- }
424
- hasM() {
425
- return this._valueType === T.M;
426
- }
427
- clone(t) {
428
- return this._tag(Ds(t));
429
- }
430
- copy(t, e) {
431
- return $t(e, t);
432
- }
433
- fromXYZ(t, e = 0, s = 0) {
434
- return this._tag(X(t[0], t[1], this._valueType === T.Z ? t.length > 2 ? t[2] : e : s));
435
- }
436
- toXYZ(t, e = g()) {
437
- return P(e, t[0], t[1], this._valueType === T.Z ? t[2] : 0);
438
- }
439
- pointToXYZ(t, e = g()) {
440
- return P(e, t.x, t.y, this._valueType === T.Z ? t.z ?? 0 : 0);
441
- }
442
- equals(t, e) {
443
- return oe(t, e);
444
- }
445
- _tag(t) {
446
- return t;
447
- }
448
- }, er = class {
449
- constructor(t) {
450
- this.spatialReference = t;
451
- }
452
- createVector() {
453
- return this._tag(Un());
454
- }
455
- pointToVector(t) {
456
- return this._tag(Ee(t.x, t.y, t.z, t.m));
457
- }
458
- arrayToVector(t) {
459
- return this._tag(Ee(t[0], t[1], t[2] || 0, t[3] || 0));
460
- }
461
- vectorToArray(t) {
462
- return [t[0], t[1], t[2], t[3]];
463
- }
464
- pointToArray(t) {
465
- return [t.x, t.y, t.z, t.m];
466
- }
467
- vectorToPoint(t, e = new Rt()) {
468
- return e.x = t[0], e.y = t[1], e.z = t[2], e.m = t[3], e.spatialReference = this.spatialReference, e;
469
- }
470
- arrayToPoint(t, e = new Rt()) {
471
- return e.x = t[0], e.y = t[1], e.z = t[2], e.m = t[3], e.spatialReference = this.spatialReference, e;
472
- }
473
- vectorToDehydratedPoint(t, e) {
474
- if (t)
475
- return e ?? (e = { x: void 0, y: void 0, z: void 0, m: void 0, hasZ: void 0, hasM: void 0, spatialReference: void 0, type: "point" }), e.x = t[0], e.y = t[1], e.z = t[2], e.m = t[3], e.hasZ = !0, e.hasM = !0, e.spatialReference = this.spatialReference, e;
476
- }
477
- lerp(t, e, s, i) {
478
- return Mi(i, t, e, s);
479
- }
480
- addDelta(t, e, s, i) {
481
- t[0] += e, t[1] += s, t[2] += i;
482
- }
483
- distance(t, e) {
484
- return ue(t, e);
485
- }
486
- getZ(t) {
487
- return t[2];
488
- }
489
- hasZ() {
490
- return !0;
491
- }
492
- getM(t) {
493
- return t[3];
494
- }
495
- hasM() {
496
- return !0;
497
- }
498
- clone(t) {
499
- return this._tag(Ai(t));
500
- }
501
- copy(t, e) {
502
- return wi(e, t);
503
- }
504
- fromXYZ(t, e = 0, s = 0) {
505
- return this._tag(Ee(t[0], t[1], t.length > 2 ? t[2] : e, s));
506
- }
507
- toXYZ(t, e = g()) {
508
- return P(e, t[0], t[1], t[2]);
509
- }
510
- pointToXYZ(t, e = g()) {
511
- return P(e, t.x, t.y, t.z ?? 0);
512
- }
513
- equals(t, e) {
514
- return bi(t, e);
515
- }
516
- _tag(t) {
517
- return t;
518
- }
519
- };
520
- function nr(n, t, e) {
521
- return n && t ? new er(e) : t ? new un(T.M, e) : n ? new un(T.Z, e) : new tr(e);
522
- }
523
- function sr(n, t) {
524
- if (!t.supported)
525
- return;
526
- let e = 1 / 0, s = -1 / 0;
527
- const i = t.upperBoundX - t.lowerBoundX;
528
- n.forEach((o) => {
529
- let a = o.pos[0];
530
- for (; a < t.lowerBoundX; )
531
- a += i;
532
- for (; a > t.upperBoundX; )
533
- a -= i;
534
- e = Math.min(e, a), s = Math.max(s, a), o.pos[0] = a;
535
- });
536
- const r = s - e;
537
- i - r < r && n.forEach((o) => {
538
- o.pos[0] < 0 && (o.pos[0] += i);
539
- });
540
- }
541
- function ir(n, t) {
542
- const e = Zs(n);
543
- return t === Os.Global && e ? { supported: !0, lowerBoundX: e.valid[0], upperBoundX: e.valid[1] } : { supported: !1, lowerBoundX: null, upperBoundX: null };
544
- }
545
- let Ft = class {
546
- constructor(t) {
547
- this.component = t, this.leftEdge = null, this.rightEdge = null, this.type = "vertex", this.index = null;
548
- }
549
- get pos() {
550
- return this._pos;
551
- }
552
- set pos(t) {
553
- this._pos = t, this.component.unnormalizeVertexPositions();
554
- }
555
- }, _t = class {
556
- constructor(t, e, s) {
557
- this.component = t, this.leftVertex = e, this.rightVertex = s, this.type = "edge", e.rightEdge = this, s.leftEdge = this;
558
- }
559
- }, Me = class {
560
- constructor(t, e) {
561
- this._spatialReference = t, this._viewingMode = e, this.vertices = [], this.edges = [], this.index = null;
562
- }
563
- unnormalizeVertexPositions() {
564
- this.vertices.length <= 1 || sr(this.vertices, ir(this._spatialReference, this._viewingMode));
565
- }
566
- updateVertexIndex(t, e) {
567
- if (this.vertices.length === 0)
568
- return;
569
- const s = this.vertices[0];
570
- let i = null, r = t, o = e;
571
- do
572
- i = r, i.index = o++, r = i.rightEdge ? i.rightEdge.rightVertex : null;
573
- while (r != null && r !== s);
574
- i.leftEdge && i !== this.vertices[this.vertices.length - 1] && this.swapVertices(this.vertices.indexOf(i), this.vertices.length - 1);
575
- }
576
- getFirstVertex() {
577
- return this.vertices.at(0);
578
- }
579
- getLastVertex() {
580
- return this.vertices.at(-1);
581
- }
582
- isClosed() {
583
- return this.vertices.length > 2 && this.vertices[0].leftEdge !== null;
584
- }
585
- swapVertices(t, e) {
586
- const s = this.vertices[t];
587
- this.vertices[t] = this.vertices[e], this.vertices[e] = s;
588
- }
589
- iterateVertices(t) {
590
- if (this.vertices.length === 0)
591
- return;
592
- const e = this.vertices[0];
593
- let s = e;
594
- do
595
- t(s, s.index), s = s.rightEdge != null ? s.rightEdge.rightVertex : null;
596
- while (s !== e && s != null);
597
- }
598
- }, rr = class Jn extends Sn {
599
- constructor(t, e) {
600
- super(), this.type = t, this.coordinateHelper = e, this._geometry = null, this._dirty = !0, this.components = [];
601
- }
602
- get geometry() {
603
- if (this._dirty) {
604
- switch (this.type) {
605
- case "point":
606
- this._geometry = this._toPoint();
607
- break;
608
- case "polyline":
609
- this._geometry = this._toPolyline();
610
- break;
611
- case "polygon":
612
- this._geometry = this._toPolygon();
613
- }
614
- this._dirty = !1;
615
- }
616
- return this._geometry;
617
- }
618
- get spatialReference() {
619
- return this.coordinateHelper.spatialReference;
620
- }
621
- notifyChanges(t) {
622
- this._dirty = !0, this.emit("change", t);
623
- }
624
- _toPoint() {
625
- return this.components.length === 0 || this.components[0].vertices.length === 0 ? null : this.coordinateHelper.vectorToPoint(this.components[0].vertices[0].pos);
626
- }
627
- _toPolyline() {
628
- const t = [], e = this.coordinateHelper.vectorToArray;
629
- for (const s of this.components) {
630
- if (s.vertices.length < 1)
631
- continue;
632
- const i = [];
633
- let r = s.vertices.find((a) => a.leftEdge == null);
634
- const o = r;
635
- do
636
- i.push(e(r.pos)), r = r.rightEdge ? r.rightEdge.rightVertex : null;
637
- while (r && r !== o);
638
- t.push(i);
639
- }
640
- return new Tn({ paths: t, spatialReference: this.spatialReference, hasZ: this.coordinateHelper.hasZ(), hasM: this.coordinateHelper.hasM() });
641
- }
642
- _toPolygon() {
643
- const t = [], e = this.coordinateHelper.vectorToArray;
644
- for (const s of this.components) {
645
- if (s.vertices.length < 1)
646
- continue;
647
- const i = [], r = s.vertices[0];
648
- let o = r;
649
- const a = o;
650
- do
651
- i.push(e(o.pos)), o = o.rightEdge != null ? o.rightEdge.rightVertex : null;
652
- while (o && o !== a);
653
- s.isClosed() && i.push(e(r.pos)), t.push(i);
654
- }
655
- return new Vn({ rings: t, spatialReference: this.spatialReference, hasZ: this.coordinateHelper.hasZ(), hasM: this.coordinateHelper.hasM() });
656
- }
657
- static fromGeometry(t, e) {
658
- const s = t.spatialReference, i = nr(t.hasZ, t.hasM, s), r = new Jn(t.type, i);
659
- switch (t.type) {
660
- case "polygon": {
661
- const o = t.rings;
662
- for (let a = 0; a < o.length; ++a) {
663
- const l = o[a], c = new Me(s, e);
664
- c.index = a;
665
- const u = l.length > 2 && Xt(l[0], l[l.length - 1]), h = u ? l.length - 1 : l.length;
666
- for (let p = 0; p < h; ++p) {
667
- const y = i.arrayToVector(l[p]), m = new Ft(c);
668
- c.vertices.push(m), m.pos = y, m.index = p;
669
- }
670
- const d = c.vertices.length - 1;
671
- for (let p = 0; p < d; ++p) {
672
- const y = c.vertices[p], m = c.vertices[p + 1], v = new _t(c, y, m);
673
- c.edges.push(v);
674
- }
675
- if (u) {
676
- const p = new _t(c, c.vertices[c.vertices.length - 1], c.vertices[0]);
677
- c.edges.push(p);
678
- }
679
- r.components.push(c);
680
- }
681
- break;
682
- }
683
- case "polyline": {
684
- const o = t.paths;
685
- for (let a = 0; a < o.length; ++a) {
686
- const l = o[a], c = new Me(s, e);
687
- c.index = a;
688
- const u = l.length;
689
- for (let d = 0; d < u; ++d) {
690
- const p = i.arrayToVector(l[d]), y = new Ft(c);
691
- c.vertices.push(y), y.pos = p, y.index = d;
692
- }
693
- const h = c.vertices.length - 1;
694
- for (let d = 0; d < h; ++d) {
695
- const p = c.vertices[d], y = c.vertices[d + 1], m = new _t(c, p, y);
696
- c.edges.push(m);
697
- }
698
- r.components.push(c);
699
- }
700
- break;
701
- }
702
- case "point": {
703
- const o = new Me(s, e);
704
- o.index = 0;
705
- const a = new Ft(o);
706
- a.index = 0, a.pos = i.pointToVector(t), o.vertices.push(a), r.components.push(o);
707
- break;
708
- }
709
- }
710
- return r;
711
- }
712
- };
713
- var gt;
714
- (function(n) {
715
- n[n.NEW_STEP = 0] = "NEW_STEP", n[n.ACCUMULATE_STEPS = 1] = "ACCUMULATE_STEPS";
716
- })(gt || (gt = {}));
717
- let or = class {
718
- constructor(t, e, s) {
719
- this._editGeometry = t, this._component = e, this._pos = s, this._addedVertex = null, this._originalEdge = null, this._left = null, this._right = null;
720
- }
721
- apply() {
722
- let t = "redo";
723
- this._addedVertex == null && (t = "apply", this._addedVertex = new Ft(this._component));
724
- const e = this._component.getLastVertex();
725
- if (e == null)
726
- this._component.vertices.push(this._addedVertex), this._addedVertex.pos = this._pos, this._addedVertex.index = 0;
727
- else {
728
- let s = null;
729
- e.rightEdge && (this._originalEdge = e.rightEdge, s = this._originalEdge.rightVertex, this._component.edges.splice(this._component.edges.indexOf(this._originalEdge), 1)), this._component.vertices.push(this._addedVertex), this._addedVertex.pos = this._pos, this._left == null && (this._left = new _t(this._component, e, this._addedVertex)), this._component.edges.push(this._left), e.rightEdge = this._left, this._originalEdge != null && s != null && (this._right == null && (this._right = new _t(this._component, this._addedVertex, s)), this._component.edges.push(this._right), s.leftEdge = this._right), this._component.updateVertexIndex(this._addedVertex, e.index + 1);
730
- }
731
- this._editGeometry.notifyChanges({ operation: t, addedVertices: [this._addedVertex] });
732
- }
733
- undo() {
734
- this._addedVertex != null && (this._component.vertices.splice(this._component.vertices.indexOf(this._addedVertex), 1), this._left != null && (this._component.edges.splice(this._component.edges.indexOf(this._left), 1), this._left.leftVertex.rightEdge = null), this._right != null && (this._component.edges.splice(this._component.edges.indexOf(this._right), 1), this._right.rightVertex.leftEdge = null), this._originalEdge != null && (this._component.edges.push(this._originalEdge), this._originalEdge.leftVertex.rightEdge = this._originalEdge, this._originalEdge.rightVertex.leftEdge = this._originalEdge), this._left != null ? this._component.updateVertexIndex(this._left.leftVertex, this._left.leftVertex.index) : this._component.updateVertexIndex(this._addedVertex, 0), this._editGeometry.notifyChanges({ operation: "undo", removedVertices: [this._addedVertex] }));
735
- }
736
- accumulate() {
737
- return !1;
738
- }
739
- }, ar = class Qn {
740
- constructor(t, e, s) {
741
- this._editGeometry = t, this._vertices = e, this.operation = s, this._undone = !1;
742
- }
743
- apply() {
744
- this._vertices.forEach((t) => this.operation.apply(t)), this._editGeometry.components.forEach((t) => t.unnormalizeVertexPositions()), this._editGeometry.notifyChanges({ operation: this._undone ? "redo" : "apply", updatedVertices: this._vertices });
745
- }
746
- undo() {
747
- this._vertices.forEach((t) => this.operation.undo(t)), this._editGeometry.notifyChanges({ operation: "undo", updatedVertices: this._vertices }), this._undone = !0;
748
- }
749
- canAccumulate(t) {
750
- if (this._undone || t._vertices.length !== this._vertices.length)
751
- return !1;
752
- for (let e = 0; e < t._vertices.length; ++e)
753
- if (t._vertices[e] !== this._vertices[e])
754
- return !1;
755
- return this.operation.canAccumulate(t.operation);
756
- }
757
- accumulate(t) {
758
- return !!(t instanceof Qn && this.canAccumulate(t)) && (this._vertices.forEach((e) => this.operation.accumulate(e, t.operation)), this.operation.accumulateParams(t.operation), this._editGeometry.components.forEach((e) => e.unnormalizeVertexPositions()), this._editGeometry.notifyChanges({ operation: "apply", updatedVertices: this._vertices }), !0);
759
- }
760
- };
761
- var ht;
762
- (function(n) {
763
- n[n.CUMULATIVE = 0] = "CUMULATIVE", n[n.REPLACE = 1] = "REPLACE";
764
- })(ht || (ht = {}));
765
- let lr = class {
766
- constructor(t, e, s = 0) {
767
- this._editGeometry = t, this._vertices = e, this._minNumberOfVertices = s, this.removedVertices = null;
768
- }
769
- apply() {
770
- let t = "redo";
771
- if (this.removedVertices == null) {
772
- const e = this.removedVertices = [];
773
- this._vertices.forEach((s) => {
774
- const i = this._removeVertex(s);
775
- i != null && e.push(i);
776
- }), t = "apply";
777
- } else
778
- this.removedVertices.forEach((e) => {
779
- this._removeVertex(e.removedVertex);
780
- });
781
- this._editGeometry.notifyChanges({ operation: t, removedVertices: this._vertices });
782
- }
783
- undo() {
784
- var t;
785
- (t = this.removedVertices) == null || t.forEach((e) => {
786
- this._undoRemoveVertex(e);
787
- }), this._editGeometry.notifyChanges({ operation: "undo", addedVertices: this._vertices });
788
- }
789
- accumulate() {
790
- return !1;
791
- }
792
- _removeVertex(t) {
793
- const e = t.component;
794
- if (e.vertices.length <= this._minNumberOfVertices)
795
- return null;
796
- const s = { removedVertex: t, createdEdge: null }, i = t.leftEdge, r = t.rightEdge;
797
- return e.vertices.splice(e.vertices.indexOf(t), 1), i && (e.edges.splice(e.edges.indexOf(i), 1), i.leftVertex.rightEdge = null), r && (e.edges.splice(e.edges.indexOf(r), 1), r.rightVertex.leftEdge = null), t.index === 0 && r && this._vertices.length > 0 && e.swapVertices(e.vertices.indexOf(r.rightVertex), 0), i && r && (s.createdEdge = new _t(e, i.leftVertex, r.rightVertex), e.edges.push(s.createdEdge)), r && e.updateVertexIndex(r.rightVertex, r.rightVertex.index - 1), s;
798
- }
799
- _undoRemoveVertex(t) {
800
- const e = t.removedVertex, s = t.removedVertex.component, i = e.leftEdge, r = e.rightEdge;
801
- t.createdEdge && s.edges.splice(s.edges.indexOf(t.createdEdge), 1), s.vertices.push(e), i && (s.edges.push(i), i.leftVertex.rightEdge = i), r && (s.edges.push(r), r.rightVertex.leftEdge = r), s.updateVertexIndex(e, e.index);
802
- }
803
- }, cr = class {
804
- constructor(t, e, s) {
805
- this._editGeometry = t, this._edge = e, this._t = s, this.createdVertex = null, this._left = null, this._right = null;
806
- }
807
- apply() {
808
- let t = "redo";
809
- const e = this._edge, s = e.component, i = e.leftVertex, r = e.rightVertex;
810
- s.edges.splice(s.edges.indexOf(e), 1), this.createdVertex == null && (t = "apply", this.createdVertex = new Ft(e.component)), s.vertices.push(this.createdVertex), this.createdVertex.pos = this._editGeometry.coordinateHelper.lerp(e.leftVertex.pos, e.rightVertex.pos, this._t, this._editGeometry.coordinateHelper.createVector()), this._left == null && (this._left = new _t(s, i, this.createdVertex)), this._left.leftVertex.leftEdge ? s.edges.push(this._left) : s.edges.unshift(this._left), i.rightEdge = this._left, this._right == null && (this._right = new _t(s, this.createdVertex, r)), s.edges.push(this._right), r.leftEdge = this._right, s.updateVertexIndex(this.createdVertex, i.index + 1), this._editGeometry.notifyChanges({ operation: t, addedVertices: [this.createdVertex] });
811
- }
812
- undo() {
813
- if (this.createdVertex == null || this._left == null || this._right == null)
814
- return null;
815
- const t = this._edge, e = t.component, s = this.createdVertex.leftEdge, i = this.createdVertex.rightEdge, r = s == null ? void 0 : s.leftVertex, o = i == null ? void 0 : i.rightVertex;
816
- e.vertices.splice(e.vertices.indexOf(this.createdVertex), 1), e.edges.splice(e.edges.indexOf(this._left), 1), e.edges.splice(e.edges.indexOf(this._right), 1), this._edge.leftVertex.leftEdge ? e.edges.push(this._edge) : e.edges.unshift(this._edge), r && (r.rightEdge = t), o && (o.leftEdge = t), r && e.updateVertexIndex(r, r.index), this._editGeometry.notifyChanges({ operation: "undo", removedVertices: [this.createdVertex] });
817
- }
818
- accumulate() {
819
- return !1;
820
- }
821
- }, hr = class Kn {
822
- constructor(t, e, s) {
823
- this._editGeometry = t, this._vertex = e, this._pos = s;
824
- }
825
- apply() {
826
- const t = this._originalPosition == null;
827
- t && (this._originalPosition = this._vertex.pos), this._apply(t ? "apply" : "redo");
828
- }
829
- undo() {
830
- this._vertex.pos = this._originalPosition, this._editGeometry.notifyChanges({ operation: "undo", updatedVertices: [this._vertex] });
831
- }
832
- accumulate(t) {
833
- return t instanceof Kn && t._vertex === this._vertex && (this._pos = t._pos, this._apply("apply"), !0);
834
- }
835
- _apply(t) {
836
- this._vertex.pos = this._pos, this._editGeometry.components.forEach((e) => e.unnormalizeVertexPositions()), this._editGeometry.notifyChanges({ operation: t, updatedVertices: [this._vertex] });
837
- }
838
- }, ur = class {
839
- constructor(t, e) {
840
- this._editGeometry = t, this._component = e, this._createdEdge = null;
841
- }
842
- apply() {
843
- let t = "redo";
844
- if (this._createdEdge == null) {
845
- t = "apply";
846
- const e = this._component.getFirstVertex(), s = this._component.getLastVertex();
847
- if (this._component.isClosed() || this._component.vertices.length < 3 || e == null || s == null)
848
- return;
849
- this._createdEdge = new _t(this._component, s, e);
850
- }
851
- this._createdEdge.leftVertex.rightEdge = this._createdEdge, this._createdEdge.rightVertex.leftEdge = this._createdEdge, this._component.edges.push(this._createdEdge), this._editGeometry.notifyChanges({ operation: t });
852
- }
853
- undo() {
854
- this._createdEdge != null && (Us(this._component.edges, this._createdEdge), this._createdEdge.leftVertex.rightEdge = null, this._createdEdge.rightVertex.leftEdge = null, this._editGeometry.notifyChanges({ operation: "undo" }));
855
- }
856
- accumulate() {
857
- return !1;
858
- }
859
- }, pr = class ts {
860
- constructor(t, e, s, i) {
861
- this._helper = t, this.dx = e, this.dy = s, this.dz = i;
862
- }
863
- _move(t, e, s, i) {
864
- this._helper.addDelta(t.pos, e, s, i);
865
- }
866
- apply(t) {
867
- this._move(t, this.dx, this.dy, this.dz);
868
- }
869
- undo(t) {
870
- this._move(t, -this.dx, -this.dy, -this.dz);
871
- }
872
- canAccumulate(t) {
873
- return t instanceof ts;
874
- }
875
- accumulate(t, e) {
876
- this._move(t, e.dx, e.dy, e.dz);
877
- }
878
- accumulateParams(t) {
879
- this.dx += t.dx, this.dy += t.dy, this.dz += t.dz;
880
- }
881
- };
882
- function we(n, t) {
883
- return n[0] * t[1] - n[1] * t[0];
884
- }
885
- function dr(n, t, e) {
886
- const s = kt(e, t) / Pt(e);
887
- return Hs(n, e, s);
888
- }
889
- function ca(n, t, e, s, i = e) {
890
- return C(Lt, s, e), C(le, t, i), dr(Ct, le, Lt), qs(n, i, Ct);
891
- }
892
- function ha(n, t, e, s) {
893
- C(Lt, t, e);
894
- const i = s / kn(Lt);
895
- return ct(n, e, Lt, i);
896
- }
897
- function fr(n, t) {
898
- const e = n.start, s = n.end, i = t.start, r = t.end, o = C(Lt, s, e), a = C(es, r, i), l = we(o, a);
899
- if (Math.abs(l) <= _r)
900
- return [];
901
- const c = C(le, e, i), u = we(a, c) / l, h = we(o, c) / l;
902
- if (u >= 0) {
903
- if (h >= 0 || t.type === w.LINE)
904
- return [ct(Ct, e, o, u)];
905
- } else if (n.type === w.LINE && (h >= 0 || t.type === w.LINE))
906
- return [ct(Ct, e, o, u)];
907
- return [];
908
- }
909
- function gr(n, t, e) {
910
- const s = [], i = C(Lt, n.end, n.start), r = C(es, n.start, t), o = Pt(i), a = 2 * kt(i, r), l = a * a - 4 * o * (Pt(r) - e * e);
911
- if (l === 0) {
912
- const c = -a / (2 * o);
913
- (n.type === w.LINE || c >= 0) && s.push(ct(Ct, n.start, i, c));
914
- } else if (l > 0) {
915
- const c = Math.sqrt(l), u = (-a + c) / (2 * o);
916
- (n.type === w.LINE || u >= 0) && s.push(ct(Ct, n.start, i, u));
917
- const h = (-a - c) / (2 * o);
918
- (n.type === w.LINE || h >= 0) && s.push(ct(le, n.start, i, h));
919
- }
920
- return s;
921
- }
922
- var w;
923
- (function(n) {
924
- n[n.RAY = 0] = "RAY", n[n.LINE = 1] = "LINE";
925
- })(w || (w = {}));
926
- const _r = 1e-6, Lt = R(), es = R(), le = R(), Ct = R();
927
- let mr = class ke {
928
- get plane() {
929
- return this._plane;
930
- }
931
- get requiresSplitEdgeLeft() {
932
- return !this._left.isOriginalDirection;
933
- }
934
- get requiresSplitEdgeRight() {
935
- return !this._right.isOriginalDirection;
936
- }
937
- get edgeDirection() {
938
- return this._edgeDirection;
939
- }
940
- constructor(t, e, s, i = 0, r = Gt.IMMEDIATE) {
941
- this._helper = t, this._planeType = e, this._edge = s, this.distance = i, this._plane = F(), this._offsetPlane = F(), this._minDistance = -1 / 0, this._maxDistance = 1 / 0, this._selectedArrow = 1, r === Gt.IMMEDIATE && this._initialize();
942
- }
943
- _initialize() {
944
- this._initializeNeighbors(), this._initializePlane(), this._initializeDistanceConstraints();
945
- }
946
- _initializeNeighbors() {
947
- var r, o, a, l;
948
- const t = this._toXYZ(this._edge.leftVertex.pos), e = this._toXYZ((o = (r = this._edge.leftVertex.leftEdge) == null ? void 0 : r.leftVertex) == null ? void 0 : o.pos), s = this._toXYZ(this._edge.rightVertex.pos), i = this._toXYZ((l = (a = this._edge.rightVertex.rightEdge) == null ? void 0 : a.rightVertex) == null ? void 0 : l.pos);
949
- this._edgeDirection = sn(g(), t, s), e ? (this._left = this._computeNeighbor(t, e, this._edgeDirection), this._right = this._computeNeighbor(s, i, this._edgeDirection, this._left)) : (this._right = this._computeNeighbor(s, i, this._edgeDirection), this._left = this._computeNeighbor(t, e, this._edgeDirection, this._right));
950
- }
951
- _toXYZ(t) {
952
- return t != null ? this._helper.toXYZ(t) : null;
953
- }
954
- _pointToXYZ(t) {
955
- return this._toXYZ(this._helper.pointToVector(t));
956
- }
957
- _computeNeighbor(t, e, s, i) {
958
- const r = g();
959
- if (e) {
960
- sn(r, t, e);
961
- const o = !this._passesBisectingAngleThreshold(r, s);
962
- return { start: t, end: e, direction: o ? this._bisectVectorsPerpendicular(s, r) : r, isOriginalDirection: !o };
963
- }
964
- return this._helper.hasZ() ? i && (et(r, s, i.direction), et(r, r, s), Et(r, r), Math.sign(r[1]) !== Math.sign(s[0]) && rn(r, r, -1)) : P(r, -s[1], s[0], 0), { start: t, end: e, direction: r, isOriginalDirection: !0 };
965
- }
966
- _passesBisectingAngleThreshold(t, e) {
967
- const s = Math.abs(Ri(e, t));
968
- return s >= pn && s <= Math.PI - pn;
969
- }
970
- _bisectVectorsPerpendicular(t, e) {
971
- const s = z(t, e) < 0 ? t : on(g(), t), i = Math.abs(z(s, e));
972
- if (!(i < dn || i > 1 - dn))
973
- return this._bisectDirection(s, e);
974
- const r = et(g(), s, [0, 0, 1]);
975
- return Et(r, r);
976
- }
977
- _bisectDirection(t, e) {
978
- const s = Ot(g(), t, e);
979
- return Et(s, s);
980
- }
981
- _initializePlane() {
982
- const t = this._computeNormalDirection(this._left), e = this._computeNormalDirection(this._right);
983
- z(t, e) < 0 && on(e, e), Jt(this._left.start, this._bisectDirection(t, e), this._plane);
984
- }
985
- _computeNormalDirection(t) {
986
- const e = et(g(), t.direction, this._edgeDirection);
987
- Et(e, e);
988
- const s = et(g(), this._edgeDirection, e);
989
- return this._planeType === Ne.XY && (s[2] = 0), Et(s, s);
990
- }
991
- _initializeDistanceConstraints() {
992
- this._left.end == null || this.requiresSplitEdgeLeft || this._updateDistanceConstraint(qt(this._plane, this._left.end)), this._right.end == null || this.requiresSplitEdgeRight || this._updateDistanceConstraint(qt(this._plane, this._right.end)), this._updateIntersectDistanceConstraint(this._plane);
993
- }
994
- _updateDistanceConstraint(t) {
995
- t <= 0 && (this._minDistance = Math.max(this._minDistance, t)), t >= 0 && (this._maxDistance = Math.min(this._maxDistance, t));
996
- }
997
- _updateIntersectDistanceConstraint(t) {
998
- const e = Ht(t), s = this._edgeDirection, i = Ot(g(), this._left.start, this._left.direction), r = Ot(g(), this._right.start, this._right.direction), o = this._pointInBasis2D(R(), e, s, this._left.start), a = this._pointInBasis2D(R(), e, s, i), l = this._pointInBasis2D(R(), e, s, this._right.start), c = this._pointInBasis2D(R(), e, s, r), [u] = fr({ start: a, end: o, type: w.LINE }, { start: c, end: l, type: w.LINE });
999
- if (!u)
1000
- return;
1001
- const h = C(R(), o, a);
1002
- Fs(h, h);
1003
- const d = C(R(), u, a), p = kt(h, d), y = Ot(g(), i, rn(g(), this._left.direction, -p)), m = qt(t, y);
1004
- this._updateDistanceConstraint(m);
1005
- }
1006
- _pointInBasis2D(t, e, s, i) {
1007
- return t[0] = ln(e, i), t[1] = ln(s, i), t;
1008
- }
1009
- _offset(t, e) {
1010
- Number.isFinite(this._minDistance) && (e = Math.max(this._minDistance, e)), Number.isFinite(this._maxDistance) && (e = Math.min(this._maxDistance, e)), $e(this._offsetPlane, this._plane), this._offsetPlane[3] -= e;
1011
- const s = (r, o, a) => o != null && qe(this._offsetPlane, r, Ot(g(), r, o), a), i = g();
1012
- (t === this._edge.leftVertex ? s(this._left.start, this._left.direction, i) : s(this._right.start, this._right.direction, i)) && this._helper.copy(this._helper.fromXYZ(i, void 0, this._helper.getM(t.pos)), t.pos);
1013
- }
1014
- selectArrowFromStartPoint(t) {
1015
- this._selectedArrow = qn(this.plane, this._pointToXYZ(t)) ? 1 : -1;
1016
- }
1017
- get selectedArrow() {
1018
- return this._selectedArrow;
1019
- }
1020
- signedDistanceToPoint(t) {
1021
- return qt(this.plane, this._pointToXYZ(t));
1022
- }
1023
- apply(t) {
1024
- this._offset(t, this.distance);
1025
- }
1026
- undo(t) {
1027
- this._offset(t, 0);
1028
- }
1029
- canAccumulate(t) {
1030
- return t instanceof ke && this._edge.leftVertex.index === t._edge.leftVertex.index && this._edge.rightVertex.index === t._edge.rightVertex.index && this._edge.component === t._edge.component && this._maybeEqualsVec3(this._left.direction, t._left.direction) && this._maybeEqualsVec3(this._right.direction, t._right.direction) && oe(Ht(this._plane), Ht(t._plane));
1031
- }
1032
- accumulate(t, e) {
1033
- const s = this._plane[3] - e._plane[3] + e.distance;
1034
- this._offset(t, s);
1035
- }
1036
- accumulateParams(t) {
1037
- const e = t.distance - t._plane[3];
1038
- this.distance = e + this._plane[3];
1039
- }
1040
- clone() {
1041
- const t = new ke(this._helper, this._planeType, this._edge, this.distance, Gt.DEFERRED);
1042
- return $e(t._plane, this._plane), $e(t._offsetPlane, this._offsetPlane), t._maxDistance = this._maxDistance, t._minDistance = this._minDistance, t._left = this._cloneNeighbor(this._left), t._right = this._cloneNeighbor(this._right), t._edgeDirection = $t(g(), this._edgeDirection), t;
1043
- }
1044
- _maybeEqualsVec3(t, e) {
1045
- return t == null && e == null || t != null && e != null && oe(t, e);
1046
- }
1047
- _cloneNeighbor({ start: t, end: e, direction: s, isOriginalDirection: i }) {
1048
- return { start: $t(g(), t), end: e != null ? $t(g(), e) : null, direction: $t(g(), s), isOriginalDirection: i };
1049
- }
1050
- };
1051
- const pn = Gs(15), dn = 1e-3;
1052
- var Ne, Gt;
1053
- (function(n) {
1054
- n[n.XYZ = 0] = "XYZ", n[n.XY = 1] = "XY";
1055
- })(Ne || (Ne = {})), function(n) {
1056
- n[n.IMMEDIATE = 0] = "IMMEDIATE", n[n.DEFERRED = 1] = "DEFERRED";
1057
- }(Gt || (Gt = {}));
1058
- let yr = class ns {
1059
- constructor(t, e, s = ht.CUMULATIVE) {
1060
- this.origin = t, this.angle = e, this._accumulationType = s;
1061
- }
1062
- _rotate(t, e) {
1063
- js(t.pos, t.pos, this.origin, e);
1064
- }
1065
- apply(t) {
1066
- this._rotate(t, this.angle);
1067
- }
1068
- undo(t) {
1069
- this._rotate(t, -this.angle);
1070
- }
1071
- canAccumulate(t) {
1072
- return t instanceof ns && Xt(this.origin, t.origin);
1073
- }
1074
- accumulate(t, e) {
1075
- const s = e._accumulationType === ht.REPLACE;
1076
- this._rotate(t, s ? e.angle - this.angle : e.angle);
1077
- }
1078
- accumulateParams(t) {
1079
- const e = t._accumulationType === ht.REPLACE;
1080
- this.angle = e ? t.angle : this.angle + t.angle;
1081
- }
1082
- };
1083
- class Ge {
1084
- constructor(t, e, s, i, r = ht.CUMULATIVE) {
1085
- this.origin = t, this.axis1 = e, this.factor1 = s, this.factor2 = i, this._accumulationType = r, this.axis2 = Mt(e[1], -e[0]);
1086
- }
1087
- _scale(t, e, s) {
1088
- an(t.pos, t.pos, this.origin, this.axis1, e), an(t.pos, t.pos, this.origin, this.axis2, s);
1089
- }
1090
- apply(t) {
1091
- this._scale(t, this.factor1, this.factor2);
1092
- }
1093
- undo(t) {
1094
- this._scale(t, 1 / this.factor1, 1 / this.factor2);
1095
- }
1096
- canAccumulate(t) {
1097
- return t instanceof Ge && Xt(this.origin, t.origin) && Xt(this.axis1, t.axis1);
1098
- }
1099
- accumulate(t, e) {
1100
- e._accumulationType === ht.REPLACE ? this._scale(t, e.factor1 / this.factor1, e.factor2 / this.factor2) : this._scale(t, e.factor1, e.factor2);
1101
- }
1102
- accumulateParams(t) {
1103
- const e = t._accumulationType === ht.REPLACE;
1104
- this.factor1 = e ? t.factor1 : this.factor1 * t.factor1, this.factor2 = e ? t.factor2 : this.factor2 * t.factor2;
1105
- }
1106
- }
1107
- let vr = class {
1108
- constructor() {
1109
- this._operations = [], this._closed = !1;
1110
- }
1111
- close() {
1112
- this._closed = !0;
1113
- }
1114
- apply() {
1115
- for (const t of this._operations)
1116
- t.apply();
1117
- }
1118
- undo() {
1119
- for (let t = this._operations.length - 1; t >= 0; t--)
1120
- this._operations[t].undo();
1121
- }
1122
- accumulate(t) {
1123
- if (this._closed)
1124
- return !1;
1125
- const e = this._operations.length ? this._operations[this._operations.length - 1] : null;
1126
- return e && e.accumulate(t) || (this._operations.push(t), t.apply()), !0;
1127
- }
1128
- };
1129
- class ss extends Sn {
1130
- constructor(t) {
1131
- super(), this.data = t, this._undoStack = [], this._redoStack = [], this._listener = this.data.on("change", (e) => {
1132
- e.addedVertices && this.emit("vertex-add", { type: "vertex-add", vertices: e.addedVertices, operation: e.operation }), e.removedVertices && this.emit("vertex-remove", { type: "vertex-remove", vertices: e.removedVertices, operation: e.operation }), e.updatedVertices && this.emit("vertex-update", { type: "vertex-update", vertices: e.updatedVertices, operation: e.operation });
1133
- });
1134
- }
1135
- destroy() {
1136
- this._listener.remove();
1137
- }
1138
- splitEdge(t, e) {
1139
- return this._apply(new cr(this.data, t, e));
1140
- }
1141
- updateVertices(t, e, s = gt.ACCUMULATE_STEPS) {
1142
- return this._apply(new ar(this.data, t, e), s);
1143
- }
1144
- moveVertices(t, e, s, i, r = gt.ACCUMULATE_STEPS) {
1145
- return this.updateVertices(t, new pr(this.data.coordinateHelper, e, s, i), r);
1146
- }
1147
- scaleVertices(t, e, s, i, r, o = gt.ACCUMULATE_STEPS, a = ht.CUMULATIVE) {
1148
- return this.updateVertices(t, new Ge(e, s, i, r, a), o);
1149
- }
1150
- rotateVertices(t, e, s, i = gt.ACCUMULATE_STEPS, r = ht.CUMULATIVE) {
1151
- return this.updateVertices(t, new yr(e, s, r), i);
1152
- }
1153
- removeVertices(t) {
1154
- return this._apply(new lr(this.data, t, this._minNumVerticesPerType));
1155
- }
1156
- appendVertex(t) {
1157
- return this.data.components.length === 0 ? null : this._apply(new or(this.data, this.data.components[0], t));
1158
- }
1159
- setVertexPosition(t, e) {
1160
- return this._apply(new hr(this.data, t, e));
1161
- }
1162
- offsetEdge(t, e, s, i = gt.ACCUMULATE_STEPS) {
1163
- return this.updateVertices([e.leftVertex, e.rightVertex], new mr(this.data.coordinateHelper, t, e, s), i);
1164
- }
1165
- closeComponent(t) {
1166
- return this.data.components.includes(t) ? this._apply(new ur(this.data, t)) : null;
1167
- }
1168
- canRemoveVertex(t) {
1169
- return t.vertices.length > this._minNumVerticesPerType;
1170
- }
1171
- createUndoGroup() {
1172
- const t = new vr();
1173
- return this._apply(t), Xs(() => t.close());
1174
- }
1175
- undo() {
1176
- if (this._undoStack.length > 0) {
1177
- const t = this._undoStack.pop();
1178
- return t.undo(), this._redoStack.push(t), t;
1179
- }
1180
- return null;
1181
- }
1182
- redo() {
1183
- if (this._redoStack.length > 0) {
1184
- const t = this._redoStack.pop();
1185
- return t.apply(), this._undoStack.push(t), t;
1186
- }
1187
- return null;
1188
- }
1189
- get canUndo() {
1190
- return this._undoStack.length > 0;
1191
- }
1192
- get canRedo() {
1193
- return this._redoStack.length > 0;
1194
- }
1195
- get lastOperation() {
1196
- return this._undoStack.length > 0 ? this._undoStack[this._undoStack.length - 1] : null;
1197
- }
1198
- get _minNumVerticesPerType() {
1199
- switch (this.data.type) {
1200
- case "point":
1201
- return 1;
1202
- case "polyline":
1203
- return 2;
1204
- case "polygon":
1205
- return 3;
1206
- default:
1207
- return 0;
1208
- }
1209
- }
1210
- _apply(t, e = gt.ACCUMULATE_STEPS) {
1211
- return e !== gt.NEW_STEP && this.lastOperation != null && this.lastOperation.accumulate(t) || (t.apply(), this._undoStack.push(t), this._redoStack = []), t;
1212
- }
1213
- static fromGeometry(t, e) {
1214
- return new ss(rr.fromGeometry(t, e));
1215
- }
1216
- }
1217
- let xr = class {
1218
- constructor(t) {
1219
- this.vertexHandle = null, this.excludeFeature = null, this.visualizer = null, this.selfSnappingZ = null, this.editGeometryOperations = t.editGeometryOperations, this.elevationInfo = t.elevationInfo, this.pointer = t.pointer, this.vertexHandle = t.vertexHandle, this.excludeFeature = t.excludeFeature, this.feature = t.feature, this.visualizer = t.visualizer, this.selfSnappingZ = t.selfSnappingZ;
1220
- }
1221
- get coordinateHelper() {
1222
- return this.editGeometryOperations.data.coordinateHelper;
1223
- }
1224
- get spatialReference() {
1225
- return this.coordinateHelper.spatialReference;
1226
- }
1227
- };
1228
- const da = { redo: "r", undo: "z", center: "Alt", constraint: "Shift", cancel: "Escape", delete: ["Backspace", "Delete"], complete: "Enter", vertexAdd: "f", pan: " " }, fn = { toggle: "Control" };
1229
- function fa(n) {
1230
- let t, e, s = [], i = !1;
1231
- function r(...o) {
1232
- return i && t === this && Er(o, s) || (e = n.apply(this, o), t = this, s = o, i = !0), e;
1233
- }
1234
- return r;
1235
- }
1236
- function Er(n, t) {
1237
- if (n.length !== t.length)
1238
- return !1;
1239
- for (let e = 0; e < n.length; ++e)
1240
- if (n[e] !== t[e])
1241
- return !1;
1242
- return !0;
1243
- }
1244
- function $r(n) {
1245
- return "declaredClass" in n;
1246
- }
1247
- function gn(n) {
1248
- return "declaredClass" in n;
1249
- }
1250
- function ga(n) {
1251
- return n == null ? null : $r(n) ? n : Ys(Mr(n));
1252
- }
1253
- function Mr(n) {
1254
- const { wkid: t, wkt: e, wkt2: s, latestWkid: i } = n.spatialReference, r = { wkid: t, wkt: e, wkt2: s, latestWkid: i };
1255
- switch (n.type) {
1256
- case "point": {
1257
- const { x: o, y: a, z: l, m: c } = n;
1258
- return { x: o, y: a, z: l, m: c, spatialReference: r };
1259
- }
1260
- case "polygon": {
1261
- const { rings: o, hasZ: a, hasM: l } = n;
1262
- return { rings: _n(o), hasZ: a, hasM: l, spatialReference: r };
1263
- }
1264
- case "polyline": {
1265
- const { paths: o, hasZ: a, hasM: l } = n;
1266
- return { paths: _n(o), hasZ: a, hasM: l, spatialReference: r };
1267
- }
1268
- case "extent": {
1269
- const { xmin: o, xmax: a, ymin: l, ymax: c, zmin: u, zmax: h, mmin: d, mmax: p, hasZ: y, hasM: m } = n;
1270
- return { xmin: o, xmax: a, ymin: l, ymax: c, zmin: u, zmax: h, mmin: d, mmax: p, hasZ: y, hasM: m, spatialReference: r };
1271
- }
1272
- case "multipoint": {
1273
- const { points: o, hasZ: a, hasM: l } = n;
1274
- return { points: rs(o) ? is(o) : o, hasZ: a, hasM: l, spatialReference: r };
1275
- }
1276
- default:
1277
- return;
1278
- }
1279
- }
1280
- function _n(n) {
1281
- return wr(n) ? n.map((t) => is(t)) : n;
1282
- }
1283
- function is(n) {
1284
- return n.map((t) => Array.from(t));
1285
- }
1286
- function wr(n) {
1287
- for (const t of n)
1288
- if (t.length !== 0)
1289
- return rs(t);
1290
- return !1;
1291
- }
1292
- function rs(n) {
1293
- return n.length > 0 && (Ws(n[0]) || Bs(n[0]));
1294
- }
1295
- function br(n, t) {
1296
- if (!n)
1297
- return null;
1298
- let e;
1299
- if (gn(n)) {
1300
- if (t == null)
1301
- return n.clone();
1302
- if (gn(t))
1303
- return t.copy(n);
1304
- }
1305
- return t != null ? (e = t, e.x = n.x, e.y = n.y, e.spatialReference = n.spatialReference, n.hasZ ? (e.z = n.z, e.hasZ = n.hasZ) : (e.z = void 0, e.hasZ = !1), n.hasM ? (e.m = n.m, e.hasM = !0) : (e.m = void 0, e.hasM = !1)) : (e = Qt(n.x, n.y, n.z, n.spatialReference), n.hasM && (e.m = n.m, e.hasM = !0)), e;
1306
- }
1307
- function Tr(n) {
1308
- const { wkid: t, wkt: e, wkt2: s, latestWkid: i } = n, r = { wkid: t, wkt: e, wkt2: s, latestWkid: i };
1309
- return An.fromJSON(r);
1310
- }
1311
- var ze;
1312
- (function(n) {
1313
- n[n.EnableFastUpdates = 0] = "EnableFastUpdates", n[n.DisableFastUpdates = 1] = "DisableFastUpdates", n[n.UpdateFastLocalOrigin = 2] = "UpdateFastLocalOrigin";
1314
- })(ze || (ze = {}));
1315
- function os(n, t, e, s) {
1316
- if (s == null || n.hasZ || (s = void 0), n.type === "point")
1317
- return n.x += t, n.y += e, n.hasZ && s != null && (n.z += s), n;
1318
- if (n.type === "multipoint") {
1319
- const o = n.points;
1320
- for (let a = 0; a < o.length; a++)
1321
- o[a] = mn(o[a], t, e, s);
1322
- return n;
1323
- }
1324
- if (n.type === "extent")
1325
- return n.xmin += t, n.xmax += t, n.ymin += e, n.ymax += e, s != null && (n.zmin ?? (n.zmin = 0), n.zmin += s, n.zmax ?? (n.zmax = 0), n.zmax += s), n;
1326
- const i = Js(n), r = n.type === "polyline" ? n.paths : n.rings;
1327
- for (let o = 0; o < i.length; o++) {
1328
- const a = i[o];
1329
- for (let l = 0; l < a.length; l++)
1330
- a[l] = mn(a[l], t, e, s);
1331
- }
1332
- return "paths" in n ? n.paths = r : n.rings = r, n;
1333
- }
1334
- function mn(n, t, e, s) {
1335
- return Vr(n, n[0] + t, n[1] + e, n[2] != null && s != null ? n[2] + s : void 0);
1336
- }
1337
- function Vr(n, t, e, s) {
1338
- const i = [t, e];
1339
- return n.length > 2 && i.push(s ?? n[2]), n.length > 3 && i.push(n[3]), i;
1340
- }
1341
- function Ar(n, t) {
1342
- let e = null, s = null;
1343
- return (i) => {
1344
- if (i.action === "cancel")
1345
- return void (s != null && (s.execute({ action: "cancel" }), e = null, s = null));
1346
- const r = { action: i.action, screenStart: i.start, screenEnd: i.screenPoint };
1347
- i.action === "start" && e == null && (e = new Wt(), s = new Wt(), t(n, e, s, i.pointerType, r)), e != null && e.execute(r), i.action === "end" && e != null && (e = null, s = null);
1348
- };
1349
- }
1350
- function _a(n, t) {
1351
- return n.events.on("drag", Ar(n, t));
1352
- }
1353
- function ma(n) {
1354
- let t = null;
1355
- return (e) => {
1356
- if (e.action === "start" && (t = Lr(n, e.mapStart.spatialReference)), t == null)
1357
- return null;
1358
- const s = e.mapEnd.x - e.mapStart.x, i = e.mapEnd.y - e.mapStart.y, r = e.mapEnd.z - e.mapStart.z;
1359
- return t.move(s, i, r, e.action), { ...e, translationX: s, translationY: i, translationZ: r };
1360
- };
1361
- }
1362
- function as(n, t) {
1363
- return n == null ? null : n.spatialReference.equals(t) ? n.clone() : pe(n, t);
1364
- }
1365
- function Lr(n, t) {
1366
- const e = n.geometry, s = Tr(t);
1367
- if (e == null)
1368
- return null;
1369
- if (e.type === "mesh")
1370
- return Rr(n, e, s);
1371
- const i = as(e, s), r = e.spatialReference;
1372
- return i == null ? null : { move: (o, a, l) => {
1373
- const c = os(i.clone(), o, a, l);
1374
- c.spatialReference.equals(r) ? n.geometry = c : n.geometry = pe(c, r);
1375
- } };
1376
- }
1377
- function Rr(n, t, e) {
1378
- if (Di(t.vertexSpace))
1379
- return Pr(n, t, t.vertexSpace, e);
1380
- if (!t.spatialReference.equals(e))
1381
- return null;
1382
- let s = 0, i = 0, r = 0;
1383
- return { move: (o, a, l) => {
1384
- const c = o - s, u = a - i, h = l - r;
1385
- if (c || u || h) {
1386
- const d = new Rt(t.anchor.x + c, t.anchor.y + u, (t.anchor.z ?? 0) + h, t.anchor.spatialReference);
1387
- t.centerAt(d), n.notifyGeometryChanged(), s = o, i = a, r = l;
1388
- }
1389
- } };
1390
- }
1391
- function Pr(n, t, e, s) {
1392
- const i = as(Zi(t.vertexSpace, t.spatialReference), s), r = t.spatialReference;
1393
- return i == null ? null : { move: (o, a, l, c) => {
1394
- const u = os(i.clone(), o, a, l);
1395
- if (u.spatialReference.equals(r))
1396
- e.origin = X(u.x, u.y, u.z ?? 0);
1397
- else {
1398
- const d = pe(u, r);
1399
- d != null && (e.origin = X(d.x, d.y, d.z ?? 0));
1400
- }
1401
- const h = c === "end";
1402
- n.notifyMeshTransformChanged(h ? { action: ze.UpdateFastLocalOrigin } : {});
1403
- } };
1404
- }
1405
- function ya(n, t = null, e) {
1406
- var o;
1407
- let s = null;
1408
- const i = t == null || (o = n.spatialReference) != null && o.equals(t) ? (a) => a : (a) => a != null ? pe(a, t) : a, r = { exclude: [], ...e };
1409
- return (a) => {
1410
- if (a.action === "start" && (s = i(n.toMap(a.screenStart, r))), s == null)
1411
- return null;
1412
- const l = i(n.toMap(a.screenEnd, r));
1413
- return l != null ? { ...a, mapStart: s, mapEnd: l } : null;
1414
- };
1415
- }
1416
- function va(n, t) {
1417
- const e = /* @__PURE__ */ new Map();
1418
- for (const s of t)
1419
- e.set(s, Qs(n[s]));
1420
- return (s) => (e.forEach((i, r) => {
1421
- n[r] = i;
1422
- }), s);
1423
- }
1424
- const Sr = () => {
1425
- };
1426
- class Wt {
1427
- constructor() {
1428
- this.execute = Sr;
1429
- }
1430
- next(t, e = new Wt()) {
1431
- return t != null && (this.execute = (s) => {
1432
- const i = t(s);
1433
- i != null && e.execute(i);
1434
- }), e;
1435
- }
1436
- }
1437
- function xa(n, t, e = []) {
1438
- if (n.type === "2d")
1439
- return (i) => i;
1440
- let s = null;
1441
- return (i) => {
1442
- i.action === "start" && (s = n.toMap(i.screenStart, { exclude: e }), s != null && (s.z = cn(s, n, t)));
1443
- const r = n.toMap(i.screenEnd, { exclude: e });
1444
- r != null && (r.z = cn(r, n, t));
1445
- const o = s != null && r != null ? { sceneStart: s, sceneEnd: r } : null;
1446
- return { ...i, scenePoints: o };
1447
- };
1448
- }
1449
- function je({ start: n, end: t, type: e }, s, i) {
1450
- const r = [], o = C(ne, t, n), a = C(ge, n, s), l = Pt(o), c = 2 * kt(o, a), u = c * c - 4 * l * (Pt(a) - i * i);
1451
- if (u === 0) {
1452
- const h = -c / (2 * l);
1453
- (e === Y.PLANE || h >= 0) && r.push(ct(R(), n, o, h));
1454
- } else if (u > 0) {
1455
- const h = Math.sqrt(u), d = (-c + h) / (2 * l);
1456
- (e === Y.PLANE || d >= 0) && r.push(ct(R(), n, o, d));
1457
- const p = (-c - h) / (2 * l);
1458
- (e === Y.PLANE || p >= 0) && r.push(ct(R(), n, o, p));
1459
- }
1460
- return r;
1461
- }
1462
- function ls(n, t) {
1463
- const e = n.start, s = n.end, i = C(ne, s, e), r = P(me, -i[1], i[0], 0), o = t.start, a = t.end, l = j(Ye, a, o), c = z(l, r), u = P(_s, e[0], e[1], 0), h = j(ms, u, o), d = z(h, r), p = Yt();
1464
- if (Math.abs(c) < p)
1465
- return [];
1466
- const y = O(ys, o, l, d / c);
1467
- if (t.type === w.RAY) {
1468
- const m = j(Ce, y, o);
1469
- if (z(m, l) < -p)
1470
- return [];
1471
- }
1472
- if (n.type === Y.HALF_PLANE) {
1473
- const m = Ks(ge, y, e);
1474
- if (kt(m, i) < -p)
1475
- return [];
1476
- }
1477
- return [bt(y)];
1478
- }
1479
- function kr(n, t) {
1480
- return zr(ce(We, t[2], n), t);
1481
- }
1482
- function cs(n, t) {
1483
- return fs(ce(We, 0, n), ce(Zr, 0, t)).map(([s, i]) => Mt(s, i));
1484
- }
1485
- function hs(n, t) {
1486
- return ps(n, ce(We, n[2], t));
1487
- }
1488
- function us(n, t, e) {
1489
- const s = C(ne, n, t), i = kn(s), r = i === 0 ? 1 : e / i, o = g();
1490
- return ct(o, t, s, r), o[2] = n[2], o;
1491
- }
1492
- function ps(n, { start: t, end: e, type: s }, i = g()) {
1493
- const r = j(_e, n, t), o = j(me, e, t), a = z(r, o) / z(o, o);
1494
- return O(i, t, o, s === w.RAY ? Math.max(a, 0) : a);
1495
- }
1496
- const Nr = (() => {
1497
- const n = g(), t = g(), e = g();
1498
- return ({ start: s, end: i }, { center: r, radius: o, normal: a, slicePlane: l }) => {
1499
- const c = Jt(r, a, Dr);
1500
- if ($(Pe(c, s), 0) && $(Pe(c, i), 0)) {
1501
- Gn(a, n, t);
1502
- const h = (y, m) => (Oe(e, m, r), Nn(y, z(e, n), z(e, t)), y), d = gr({ start: h(ne, s), end: h(ge, i), type: w.LINE }, ti, o), p = [];
1503
- for (const [y, m] of d) {
1504
- const v = $t(g(), r);
1505
- O(v, v, n, y), O(v, v, t, m), l && !wt(l, v) || p.push(v);
1506
- }
1507
- return p;
1508
- }
1509
- const u = g();
1510
- return qe(c, s, i, u) ? !$(ue(u, r), o) || l && !wt(l, u) ? [] : [u] : [];
1511
- };
1512
- })();
1513
- function ds({ start: n, end: t, type: e }, s, i) {
1514
- const r = [], o = Oe(_e, t, n), a = C(ge, n, s), l = Pt(o), c = 2 * kt(o, a), u = c * c - 4 * l * (Pt(a) - i * i);
1515
- if (u === 0) {
1516
- const h = -c / (2 * l);
1517
- (e === w.LINE || h >= 0) && r.push(O(g(), n, o, h));
1518
- } else if (u > 0) {
1519
- const h = Math.sqrt(u), d = (-c + h) / (2 * l);
1520
- (e === w.LINE || d >= 0) && r.push(O(g(), n, o, d));
1521
- const p = (-c - h) / (2 * l);
1522
- (e === w.LINE || p >= 0) && r.push(O(g(), n, o, p));
1523
- }
1524
- return r;
1525
- }
1526
- function fs(n, t) {
1527
- const e = n.start, s = n.end, i = t.start, r = t.end, o = j(_e, s, e), a = j(me, r, i), l = j(Ye, i, e), c = et(_s, o, a);
1528
- if (!$(z(l, c), 0))
1529
- return [];
1530
- const u = Le(c);
1531
- if ($(u, 0))
1532
- return [];
1533
- const h = et(ms, l, a), d = z(h, c) / u, p = O(ys, e, o, d);
1534
- if (n.type === w.RAY) {
1535
- const y = j(Ce, p, e);
1536
- if (z(o, y) < -Yt())
1537
- return [];
1538
- }
1539
- if (t.type === w.RAY) {
1540
- const y = j(Ce, p, i);
1541
- if (z(a, y) < -Yt())
1542
- return [];
1543
- }
1544
- return [bt(p)];
1545
- }
1546
- function zr({ start: n, end: t, type: e }, s) {
1547
- const i = j(_e, s, n), r = j(me, t, n), o = et(Ye, r, i), a = Le(o) / Le(r), l = Yt();
1548
- if (a < l)
1549
- switch (e) {
1550
- case w.LINE:
1551
- return [bt(s)];
1552
- case w.RAY:
1553
- return z(r, i) < -l ? [] : [bt(s)];
1554
- }
1555
- return [];
1556
- }
1557
- function Xe(n, t, e, s) {
1558
- const [i, r] = n, [o, a] = e, l = o - i, c = a - r, u = l * l + c * c, h = Math.sqrt(u);
1559
- if (h > t + s)
1560
- return [];
1561
- if (h < Math.abs(t - s))
1562
- return [];
1563
- if ($(h, 0) && $(t, s))
1564
- return [];
1565
- const d = (t * t - s * s + u) / (2 * h), p = Math.sqrt(t * t - d * d), y = p * c / h, m = p * l / h, [v, x] = Rn(ne, n, e, d / h);
1566
- return $(y, m) ? [Mt(v, x)] : [Mt(v + y, x - m), Mt(v - y, x + m)];
1567
- }
1568
- function ce(n, t, { start: e, end: s, type: i }) {
1569
- return P(n.start, e[0], e[1], t), P(n.end, s[0], s[1], t), n.type = Ir[i], n;
1570
- }
1571
- function gs(n, t) {
1572
- return $(n[2], t[2]);
1573
- }
1574
- function $(n, t) {
1575
- return Ut(Math.abs(n - t), 0, Yt());
1576
- }
1577
- function Cr(n, t) {
1578
- return t.filter((e) => wt(n, e));
1579
- }
1580
- function wt(n, t) {
1581
- return qn(n, t);
1582
- }
1583
- var Y;
1584
- (function(n) {
1585
- n[n.PLANE = 0] = "PLANE", n[n.HALF_PLANE = 1] = "HALF_PLANE";
1586
- })(Y || (Y = {}));
1587
- const Ir = { [Y.PLANE]: w.LINE, [Y.HALF_PLANE]: w.RAY }, ne = R(), ge = R(), _e = g(), me = g(), Ye = g(), _s = g(), ms = g(), ys = g(), Ce = g(), Dr = F(), We = { start: g(), end: g(), type: w.LINE }, Zr = { start: g(), end: g(), type: w.LINE };
1588
- class it {
1589
- intersect(t) {
1590
- return ut(this, t);
1591
- }
1592
- closestPoints(t) {
1593
- return [this.closestTo(t)];
1594
- }
1595
- }
1596
- class se extends it {
1597
- constructor(t) {
1598
- super(), this.point = t;
1599
- }
1600
- equals(t) {
1601
- return this === t || tt(t) && V(this.point, t.point);
1602
- }
1603
- closestTo() {
1604
- return Nt(this.point);
1605
- }
1606
- }
1607
- class Be extends it {
1608
- constructor(t, e, s) {
1609
- super(), this.start = t, this.end = e, this.lineLike = { start: t, end: e, type: s };
1610
- }
1611
- equals(t) {
1612
- return this === t || ot(t) && this.lineLike.type === t.lineLike.type && V(this.start, t.start) && V(this.end, t.end);
1613
- }
1614
- closestTo(t) {
1615
- const e = ps(t, this.lineLike);
1616
- return e;
1617
- }
1618
- }
1619
- class vs extends Be {
1620
- constructor(t, e) {
1621
- super(t, e, w.LINE);
1622
- }
1623
- }
1624
- class Or extends Be {
1625
- constructor(t, e) {
1626
- super(t, e, w.RAY);
1627
- }
1628
- }
1629
- class xs extends it {
1630
- constructor(t) {
1631
- super(), this.constraints = t;
1632
- }
1633
- equals(t) {
1634
- return this === t || Ie(t) && Xt(this.constraints, t.constraints, (e, s) => e.equals(s));
1635
- }
1636
- closestTo(t) {
1637
- let e, s = 1 / 0;
1638
- for (const i of this.constraints) {
1639
- const r = i.closestTo(t), o = Re(t, r);
1640
- o < s && (s = o, e = r);
1641
- }
1642
- return e ? Nt(e) : t;
1643
- }
1644
- closestPoints(t) {
1645
- return this.constraints.flatMap((e) => e === this ? [] : e.closestPoints(t));
1646
- }
1647
- }
1648
- class Ur extends it {
1649
- constructor(t, e) {
1650
- super(), this.center = t, this.radius = e;
1651
- }
1652
- equals(t) {
1653
- return this === t || lt(t) && this.center[0] === t.center[0] && this.center[1] === t.center[1] && this.radius === t.radius;
1654
- }
1655
- closestTo(t) {
1656
- const e = us(t, this.center, this.radius);
1657
- return e;
1658
- }
1659
- }
1660
- class Je extends it {
1661
- constructor(t, e) {
1662
- super(), this.center = t, this.radius = e;
1663
- }
1664
- equals(t) {
1665
- return this === t || dt(t) && V(this.center, t.center) && this.radius === t.radius;
1666
- }
1667
- closestTo(t) {
1668
- const e = us(t, this.center, this.radius);
1669
- return e[2] = this.center[2], e;
1670
- }
1671
- asCircle() {
1672
- return new Qe(Nt(this.center), this.radius, St(0, 0, 1));
1673
- }
1674
- }
1675
- class Qe extends it {
1676
- constructor(t, e, s, i = void 0) {
1677
- super(), this.center = t, this.radius = e, this.normal = s, this.slicePlane = i;
1678
- }
1679
- equals(t) {
1680
- return this === t || vt(t) && V(this.center, t.center) && V(this.normal, t.normal) && this.radius === t.radius;
1681
- }
1682
- closestTo(t) {
1683
- const { center: e, radius: s } = this;
1684
- Hn(this.getPlane(qr), t, be);
1685
- const i = j(be, be, e), r = ni(i);
1686
- if ($(r, 0))
1687
- return Nt(t);
1688
- const o = s / Math.sqrt(r), a = O(g(), e, i, o), { slicePlane: l } = this;
1689
- if (l && !wt(l, a)) {
1690
- const c = tn(l, this);
1691
- return (c == null ? void 0 : c.closestTo(t)) ?? Nt(t);
1692
- }
1693
- return a;
1694
- }
1695
- getPlane(t = F()) {
1696
- return Jt(this.center, this.normal, t);
1697
- }
1698
- }
1699
- const be = g(), qr = F();
1700
- class Hr extends it {
1701
- constructor(t) {
1702
- super(), this.z = t;
1703
- }
1704
- equals(t) {
1705
- return this === t || pt(t) && this.z === t.z;
1706
- }
1707
- closestTo(t) {
1708
- return X(t[0], t[1], this.z);
1709
- }
1710
- getPlane(t = F()) {
1711
- return P(yn, 0, 0, this.z), Jt(yn, ii, t);
1712
- }
1713
- }
1714
- const yn = g();
1715
- class Ke extends it {
1716
- constructor(t, e, s) {
1717
- super(), this.start = t, this.end = e, this.planeLike = { start: t, end: e, type: s };
1718
- }
1719
- equals(t) {
1720
- return this === t || at(t) && this.planeLike.type === t.planeLike.type && V(this.start, t.start) && V(this.end, t.end);
1721
- }
1722
- closestTo(t) {
1723
- return hs(t, this.planeLike);
1724
- }
1725
- closestEndTo(t) {
1726
- const { start: e, end: s } = this.planeLike;
1727
- return Math.sign(kt(C(Fr, s, e), C(Gr, t, e))) > 0 ? this.end : this.start;
1728
- }
1729
- getPlane(t = F()) {
1730
- const e = $t(vn, this.end);
1731
- return e[2] += 1, Li(this.start, this.end, e, t);
1732
- }
1733
- getSlicePlane(t = F()) {
1734
- const { start: e, end: s, type: i } = this.planeLike;
1735
- if (i === Y.PLANE)
1736
- return;
1737
- const r = P(vn, e[0], e[1], 0), o = P(xn, s[0], s[1], 0), a = Oe(xn, o, r);
1738
- return Jt(r, a, t), t;
1739
- }
1740
- }
1741
- const Fr = R(), Gr = R(), vn = g(), xn = g();
1742
- class Ea extends Ke {
1743
- constructor(t, e) {
1744
- super(t, e, Y.HALF_PLANE);
1745
- }
1746
- }
1747
- class $a extends Ke {
1748
- constructor(t, e) {
1749
- super(t, e, Y.PLANE);
1750
- }
1751
- }
1752
- class jr extends it {
1753
- constructor(t, e) {
1754
- super(), this.sphere = Si(t, e);
1755
- }
1756
- equals(t) {
1757
- return this === t || ft(t) && ki(this.sphere, t.sphere);
1758
- }
1759
- closestTo(t) {
1760
- const e = Ni(this.sphere, t, g());
1761
- return e;
1762
- }
1763
- get center() {
1764
- return zi(this.sphere);
1765
- }
1766
- get radius() {
1767
- return this.sphere[3];
1768
- }
1769
- }
1770
- class Xr extends it {
1771
- constructor(t, e, s) {
1772
- super(), this.start = t, this.end = e, this.getZ = s, this.planeLike = { start: t, end: e, type: Y.PLANE };
1773
- }
1774
- equals(t) {
1775
- return this === t || he(t) && V(this.start, t.start) && V(this.end, t.end) && this.getZ === t.getZ;
1776
- }
1777
- closestTo(t) {
1778
- return Qr(this, t);
1779
- }
1780
- addIfOnTheGround(t, e) {
1781
- for (const s of e) {
1782
- const i = this.getZ(s[0], s[1]) ?? 0;
1783
- $(s[2], i) && (s[2] = i, t.push(s));
1784
- }
1785
- }
1786
- }
1787
- class Yr extends it {
1788
- constructor(t, e, s, i, r) {
1789
- super(), this._origin = t, this._spatialReference = e, this._distanceMeters = s, this._elevationMeters = i, this._directionDegrees = r;
1790
- }
1791
- equals(t) {
1792
- return this === t || fo(t) && ri(this._origin, t._origin) && this._distanceMeters === t._distanceMeters && this._elevationMeters === t._elevationMeters && this._directionDegrees === t._directionDegrees;
1793
- }
1794
- closestTo([t, e, s]) {
1795
- if (Nn(mt, t, e), this._directionDegrees != null && this._distanceMeters != null)
1796
- At(mt, this._origin, this._directionDegrees, this._distanceMeters, this._spatialReference);
1797
- else if (this._directionDegrees != null)
1798
- Br(mt, this._origin, this._directionDegrees, mt, this._spatialReference);
1799
- else if (this._distanceMeters != null) {
1800
- const { azimuth: i } = te(Wr, this._origin, mt, this._spatialReference);
1801
- At(mt, this._origin, i ?? 0, this._distanceMeters, this._spatialReference);
1802
- }
1803
- return Xi(mt[0], mt[1], this._elevationMeters ?? s);
1804
- }
1805
- }
1806
- const mt = [0, 0], Wr = new Kt();
1807
- function Br(n, t, e, s, i) {
1808
- let { azimuth: r, distance: o } = te(Jr, t, s, i);
1809
- r ?? (r = 0);
1810
- let a = o * Math.cos((r - e) * q);
1811
- a = Math.max(0, a), At(n, t, e, a, i);
1812
- }
1813
- const Jr = new Kt();
1814
- function Qr(n, t) {
1815
- const e = hs(t, n.planeLike);
1816
- return e[2] = n.getZ(e[0], e[1]) ?? $s, e;
1817
- }
1818
- function ut(n, t) {
1819
- if (Ie(n)) {
1820
- const e = [];
1821
- for (const s of n.constraints) {
1822
- const i = s.intersect(t);
1823
- i && e.push(i);
1824
- }
1825
- return en(e);
1826
- }
1827
- if (Ie(t))
1828
- return ut(t, n);
1829
- if (he(n))
1830
- return En(n, t);
1831
- if (he(t))
1832
- return En(t, n);
1833
- if (tt(n)) {
1834
- const { point: e } = n;
1835
- if (tt(t))
1836
- return V(e, t.point) ? n : void 0;
1837
- const s = t.closestTo(e);
1838
- return oe(s, e) ? n : void 0;
1839
- }
1840
- if (ot(n)) {
1841
- if (tt(t))
1842
- return ut(t, n);
1843
- if (ot(t))
1844
- return st(fs(n.lineLike, t.lineLike));
1845
- if (pt(t))
1846
- return Kr(n, t);
1847
- if (at(t))
1848
- return st(ls(t.planeLike, n.lineLike));
1849
- if (lt(t))
1850
- return st(ds(n.lineLike, t.center, t.radius));
1851
- if (vt(t))
1852
- return st(Nr(n.lineLike, t));
1853
- if (dt(t))
1854
- return to(n, t);
1855
- if (ft(t))
1856
- return eo(n, t);
1857
- } else if (pt(n)) {
1858
- if (tt(t) || ot(t))
1859
- return ut(t, n);
1860
- if (pt(t))
1861
- return no(n, t);
1862
- if (at(t))
1863
- return so(n, t);
1864
- if (lt(t))
1865
- return io(n, t);
1866
- if (vt(t))
1867
- return oo(n, t);
1868
- if (dt(t))
1869
- return ro(n, t);
1870
- if (ft(t))
1871
- return ao(n, t);
1872
- } else if (at(n)) {
1873
- if (tt(t) || ot(t) || pt(t))
1874
- return ut(t, n);
1875
- if (at(t))
1876
- return Te(cs(n.planeLike, t.planeLike));
1877
- if (lt(t))
1878
- return Te(je(n.planeLike, t.center, t.radius));
1879
- if (vt(t))
1880
- return co(n, t);
1881
- if (dt(t))
1882
- return lo(n, t);
1883
- if (ft(t))
1884
- return ho(n, t);
1885
- } else if (lt(n)) {
1886
- if (tt(t) || ot(t) || pt(t) || at(t))
1887
- return ut(t, n);
1888
- if (lt(t))
1889
- return Te(Xe(n.center, n.radius, t.center, t.radius));
1890
- if (vt(t))
1891
- return void 0;
1892
- if (dt(t))
1893
- return uo(n, t);
1894
- if (ft(t))
1895
- return void 0;
1896
- } else if (vt(n)) {
1897
- if (tt(t) || ot(t) || pt(t) || at(t) || lt(t))
1898
- return ut(t, n);
1899
- if (vt(t))
1900
- return void 0;
1901
- if (dt(t))
1902
- return t.asCircle(), void 0;
1903
- if (ft(t))
1904
- return void 0;
1905
- } else if (dt(n)) {
1906
- if (tt(t) || ot(t) || pt(t) || at(t) || lt(t) || vt(t))
1907
- return ut(t, n);
1908
- if (dt(t))
1909
- return po(t, n);
1910
- if (ft(t))
1911
- return void 0;
1912
- } else if (ft(n)) {
1913
- if (tt(t) || ot(t) || pt(t) || at(t) || lt(t) || dt(t))
1914
- return ut(t, n);
1915
- if (ft(t))
1916
- return void 0;
1917
- }
1918
- }
1919
- const Kr = (() => {
1920
- const n = F();
1921
- return (t, e) => {
1922
- const { start: s, end: i } = t;
1923
- if (gs(s, i) && $(s[2], e.z))
1924
- return t;
1925
- const r = g();
1926
- return qe(e.getPlane(n), s, i, r) ? new se(r) : void 0;
1927
- };
1928
- })();
1929
- function to({ lineLike: n }, { center: t, radius: e }) {
1930
- const s = t[2];
1931
- return st(ds(n, t, e).filter((i) => $(i[2], s)));
1932
- }
1933
- function eo({ lineLike: n }, { sphere: t }) {
1934
- return st(Pi(t, n.start, n.end));
1935
- }
1936
- const tn = (() => {
1937
- const n = Un(), t = g(), e = g();
1938
- return (s, i, r) => {
1939
- const { normal: o, center: a, radius: l } = i;
1940
- Gn(o, t, e);
1941
- const c = Ht(s), u = l * z(c, t), h = l * z(c, e);
1942
- Ti(n, a[0], a[1], a[2], 1);
1943
- const d = Vi(s, n), p = Math.hypot(u, h), y = $(p, 0);
1944
- if ($(Pe(s, a), 0)) {
1945
- if (y)
1946
- return i;
1947
- if ($(l, 0))
1948
- return !r || wt(r, a) ? new se(Nt(a)) : void 0;
1949
- et(t, c, o), Et(t, t);
1950
- const E = new Array(), k = bt(a);
1951
- O(k, k, t, l), r && !wt(r, k) || E.push(k);
1952
- const U = bt(a);
1953
- return O(U, U, t, -l), r && !wt(r, U) || E.push(U), st(E);
1954
- }
1955
- if (y)
1956
- return;
1957
- const m = -d / p;
1958
- if (Math.abs(m) > 1 || $(m, 1))
1959
- return;
1960
- const v = Math.atan(u / h), x = si(m) - v, b = Math.PI - x, S = new Array(), I = g();
1961
- O(I, a, t, l * Math.cos(x)), O(I, I, e, l * Math.sin(x)), S.push(I);
1962
- const A = g();
1963
- return O(A, a, t, l * Math.cos(b)), O(A, A, e, l * Math.sin(b)), S.push(A), st(r ? Cr(r, S) : S);
1964
- };
1965
- })();
1966
- function no(n, t) {
1967
- return $(n.z, t.z) ? n : void 0;
1968
- }
1969
- function so({ z: n }, { planeLike: t }) {
1970
- const [e, s] = t.start, [i, r] = t.end, o = St(e, s, n), a = St(i, r, n);
1971
- return t.type === Y.PLANE ? new vs(o, a) : new Or(o, a);
1972
- }
1973
- function io(n, t) {
1974
- const [e, s] = t.center;
1975
- return new Je(St(e, s, n.z), t.radius);
1976
- }
1977
- function ro(n, t) {
1978
- return $(t.center[2], n.z) ? t : void 0;
1979
- }
1980
- const oo = (() => {
1981
- const n = F();
1982
- return (t, e) => tn(t.getPlane(n), e, e.slicePlane);
1983
- })();
1984
- function ao(n, { center: t, radius: e }) {
1985
- const s = Math.abs(t[2] - n.z);
1986
- if (s > e && !$(s, e))
1987
- return;
1988
- const i = St(t[0], t[1], n.z), r = Math.sqrt(e ** 2 - s ** 2);
1989
- return $(r, 0) ? void 0 : new Je(i, r);
1990
- }
1991
- const lo = (() => {
1992
- const n = F();
1993
- return (t, { center: e, radius: s }) => {
1994
- const i = je(t.planeLike, e, s), r = e[2];
1995
- t.getSlicePlane(n);
1996
- const o = new Array();
1997
- for (const [a, l] of i) {
1998
- const c = [a, l, r];
1999
- wt(n, c) && o.push(c);
2000
- }
2001
- return st(o);
2002
- };
2003
- })(), co = (() => {
2004
- const n = F(), t = F();
2005
- return (e, s) => tn(e.getPlane(n), s, e.getSlicePlane(t));
2006
- })(), ho = (() => {
2007
- const n = F();
2008
- return (t, { center: e, radius: s }) => {
2009
- const i = t.getPlane(n), r = qt(i, e), o = Math.abs(r);
2010
- if (o > s && !$(o, s))
2011
- return;
2012
- const a = bt(Ht(i)), l = O(g(), e, a, r), c = Math.sqrt(s ** 2 - r ** 2);
2013
- return $(c, 0) ? new se(Hn(i, e, g())) : new Qe(l, c, a, t.getSlicePlane());
2014
- };
2015
- })();
2016
- function uo(n, t) {
2017
- const e = zn(n.center, t.center);
2018
- return $(e, 0) && $(n.radius, t.radius) ? t : Es(Xe(n.center, n.radius, t.center, t.radius), t.center[2]);
2019
- }
2020
- function po(n, t) {
2021
- if (!gs(n.center, t.center))
2022
- return;
2023
- const e = zn(n.center, t.center);
2024
- return $(e, 0) && $(n.radius, t.radius) ? n : Es(Xe(n.center, n.radius, t.center, t.radius), n.center[2]);
2025
- }
2026
- function En(n, t) {
2027
- const { planeLike: e, getZ: s } = n, i = new Array();
2028
- if (tt(t))
2029
- n.addIfOnTheGround(i, kr(e, t.point));
2030
- else if (ot(t))
2031
- n.addIfOnTheGround(i, ls(e, t.lineLike));
2032
- else if (lt(t))
2033
- for (const [r, o] of je(e, t.center, t.radius)) {
2034
- const a = s(r, o);
2035
- a != null && i.push(X(r, o, a));
2036
- }
2037
- else if (at(t) || he(t))
2038
- for (const [r, o] of cs(e, t.planeLike)) {
2039
- const a = s(r, o) ?? $s;
2040
- i.push(X(r, o, a));
2041
- }
2042
- return st(i);
2043
- }
2044
- function Te(n) {
2045
- return en(n.map(([t, e]) => {
2046
- const s = St(t, e, 0), i = St(t, e, 1);
2047
- return new vs(s, i);
2048
- }));
2049
- }
2050
- function st(n) {
2051
- return en(n.map((t) => t ? new se(t) : void 0));
2052
- }
2053
- function Es(n, t) {
2054
- return st(n.map(([e, s]) => [e, s, t]));
2055
- }
2056
- function en(n) {
2057
- if (n.length !== 0)
2058
- return n.length === 1 ? n[0] ?? void 0 : new xs(n.filter(ei));
2059
- }
2060
- function Ie(n) {
2061
- return n instanceof xs;
2062
- }
2063
- function tt(n) {
2064
- return n instanceof se;
2065
- }
2066
- function ot(n) {
2067
- return n instanceof Be;
2068
- }
2069
- function pt(n) {
2070
- return n instanceof Hr;
2071
- }
2072
- function at(n) {
2073
- return n instanceof Ke;
2074
- }
2075
- function lt(n) {
2076
- return n instanceof Ur;
2077
- }
2078
- function dt(n) {
2079
- return n instanceof Je;
2080
- }
2081
- function vt(n) {
2082
- return n instanceof Qe;
2083
- }
2084
- function ft(n) {
2085
- return n instanceof jr;
2086
- }
2087
- function he(n) {
2088
- return n instanceof Xr;
2089
- }
2090
- function fo(n) {
2091
- return n instanceof Yr;
2092
- }
2093
- const $s = 0;
2094
- function Ma({ predicate: n = () => !0, snappingManager: t, snappingContext: e, updatingHandles: s, useZ: i = !0 }) {
2095
- const r = new Wt();
2096
- if (t == null)
2097
- return { snappingStep: [$n, r], cancelSnapping: $n };
2098
- let o, a = null, l = null, c = null;
2099
- const u = () => {
2100
- a = oi(a), t.doneSnapping(), l == null || l.frameTask.remove(), l = null, o = ai(o), c = null;
2101
- }, h = go(t, i, r);
2102
- let d = null, p = null, y = null;
2103
- return { snappingStep: [(m) => {
2104
- if (!n(m))
2105
- return m;
2106
- const { action: v } = m;
2107
- if (v === "start") {
2108
- const { info: x } = m, b = _o(t.view);
2109
- if (l = mo(e, m, b), l.context.selfSnappingZ = null, !i && x != null) {
2110
- const S = vo(e.coordinateHelper, x.handle.component);
2111
- S != null && (l.context.selfSnappingZ = { value: S, elevationInfo: e.elevationInfo ?? He });
2112
- }
2113
- }
2114
- if (l != null) {
2115
- const { context: x, originalScenePos: b, originalPos: S } = l, { mapEnd: I, mapStart: A, scenePoints: E } = m, k = Ms(S, De(I, A)), U = De(A, S), D = { ...m, action: "update" }, G = l.context, L = yo(b, E), rt = t.update({ point: k, scenePoint: L, context: x });
2116
- if (y = rt, ws(I, rt, U, i), d = k, p = L, v !== "end") {
2117
- const { frameTask: W } = l;
2118
- a == null && (a = new AbortController()), c = (H) => {
2119
- s.addPromise(li(h({ frameTask: W, event: D, context: G, point: k, scenePoint: L, delta: U, getLastState: () => ({ point: d, scenePoint: p, updatePoint: H.forceUpdate ? null : y }) }, a.signal)));
2120
- }, c({ forceUpdate: !1 }), o == null && (o = Ue(() => t.options.effectiveEnabled, () => c == null ? void 0 : c({ forceUpdate: !0 })));
2121
- }
2122
- }
2123
- return v === "end" && u(), m;
2124
- }, r], cancelSnapping: (m) => (u(), m) };
2125
- }
2126
- function go(n, t, e) {
2127
- return ci(async ({ frameTask: s, point: i, scenePoint: r, context: o, event: a, delta: l, getLastState: c }, u) => {
2128
- const h = await s.schedule(() => n.snap({ point: i, scenePoint: r, context: o, signal: u }), u);
2129
- if (h.valid) {
2130
- let d = await s.schedule(() => h.apply(), u);
2131
- const p = c();
2132
- p.point != null && i !== p.point && (d = n.update({ point: p.point, scenePoint: p.scenePoint, context: o })), p.updatePoint != null && Hi(d, p.updatePoint) || (ws(a.mapEnd, d, l, t), e.execute(a));
2133
- }
2134
- });
2135
- }
2136
- function _o(n) {
2137
- return n.type === "3d" ? n.resourceController.scheduler.registerTask(Oi.SNAPPING) : Ui;
2138
- }
2139
- function mo(n, t, e) {
2140
- return { context: new xr({ editGeometryOperations: n.editGeometryOperations, elevationInfo: n.elevationInfo, pointer: n.pointer, vertexHandle: t.info != null ? t.info.handle : null, excludeFeature: n.excludeFeature, feature: n.feature, visualizer: n.visualizer }), originalPos: t.snapOrigin != null ? n.coordinateHelper.vectorToDehydratedPoint(t.snapOrigin) : t.mapStart, originalScenePos: t.scenePoints != null ? t.scenePoints.sceneStart : null, frameTask: e };
2141
- }
2142
- function Ms(n, [t, e, s]) {
2143
- const i = br(n);
2144
- return i.x += t, i.y += e, i.hasZ && (i.z += s), i;
2145
- }
2146
- function yo(n, t) {
2147
- return n == null || t == null ? null : Ms(n, De(t.sceneEnd, t.sceneStart));
2148
- }
2149
- function De(n, t) {
2150
- const e = n.hasZ && t.hasZ ? n.z - t.z : 0;
2151
- return [n.x - t.x, n.y - t.y, e];
2152
- }
2153
- function ws(n, t, [e, s, i], r) {
2154
- n.x = t.x + e, n.y = t.y + s, r && n.hasZ && t.hasZ && (n.z = t.z + i);
2155
- }
2156
- function vo(n, t) {
2157
- if (!n.hasZ())
2158
- return null;
2159
- const e = t.vertices;
2160
- let s = null;
2161
- for (const i of e) {
2162
- const r = n.getZ(i.pos);
2163
- if (s != null && r != null && Math.abs(r - s) > 1e-6)
2164
- return null;
2165
- s == null && (s = r);
2166
- }
2167
- return s;
2168
- }
2169
- function $n(n) {
2170
- return n;
2171
- }
2172
- function xo(n, t) {
2173
- const e = n.x - t.x, s = n.y - t.y;
2174
- return e * e + s * s;
2175
- }
2176
- function wa(n, t) {
2177
- return Math.sqrt(xo(n, t));
2178
- }
2179
- function ba(n, t) {
2180
- t.sort((e, s) => Re(e.targetPoint, n) - Re(s.targetPoint, n));
2181
- }
2182
- var Mn;
2183
- function Ta({ point: n, distance: t, returnEdge: e, vertexMode: s, coordinateHelper: { spatialReference: i }, filter: r }, o, a) {
2184
- return a = a != null ? a.clone() : new hi({ where: "1=1" }), r && (a.geometry = r.geometry, a.distance = r.distance, a.spatialRelationship = r.spatialRelationship, a.where = ui(a.where, r.where), a.timeExtent = pi(a.timeExtent, r.timeExtent), a.objectIds = Eo(a.objectIds, r.objectIds)), { point: Qt(n[0], n[1], n[2], i.toJSON()), mode: o, distance: t, returnEdge: e, vertexMode: s, query: a.toJSON() };
2185
- }
2186
- function Eo(n, t) {
2187
- return n || t ? t ? n ? Array.from(di(new Set(n), new Set(t))) : t : n : null;
2188
- }
2189
- function Va(n, t, e) {
2190
- return { left: hn(n.leftVertex.pos, t, e), right: hn(n.rightVertex.pos, t, e) };
2191
- }
2192
- function Aa(n) {
2193
- return n.createQuery();
2194
- }
2195
- (function(n) {
2196
- n[n.TARGET = 0] = "TARGET", n[n.REFERENCE = 1] = "REFERENCE", n[n.REFERENCE_EXTENSION = 2] = "REFERENCE_EXTENSION";
2197
- })(Mn || (Mn = {}));
2198
- const wn = Symbol("snapping-toggle");
2199
- function La(n, t = () => {
2200
- }) {
2201
- const e = Ue(() => ({ view: n.view, snappingOptions: n.snappingOptions }), ({ view: s, snappingOptions: i }) => {
2202
- if (n.removeHandles(wn), !s || !i)
2203
- return;
2204
- const r = fi.TOOL, o = [s.on("key-down", (a) => {
2205
- a.key !== fn.toggle || a.repeat || (i.enabledToggled = !0, t());
2206
- }, r), s.on("key-up", (a) => {
2207
- a.key === fn.toggle && (i.enabledToggled = !1, t());
2208
- }, r), s.on("pointer-move", (a) => {
2209
- const l = a.native.ctrlKey;
2210
- i.enabledToggled !== l && (i.enabledToggled = l, t());
2211
- }, r)];
2212
- n.addHandles(o, wn);
2213
- }, Cn);
2214
- n.addHandles(e);
2215
- }
2216
- function Ra(n) {
2217
- var t;
2218
- return gi(n) && "utilityNetworks" in n && !!((t = n.utilityNetworks) != null && t.length);
2219
- }
2220
- var bn;
2221
- function Pa(n, t) {
2222
- if (n == null || t == null)
2223
- return;
2224
- const e = $o(n, t);
2225
- return e != null ? qi(e, "radians", "geographic") : void 0;
2226
- }
2227
- (function(n) {
2228
- n.Absolute = "absolute", n.Relative = "relative", n.RelativeBilateral = "relative-bilateral";
2229
- })(bn || (bn = {}));
2230
- const $o = (() => {
2231
- const n = g(), t = g();
2232
- return (e, s) => (P(n, e.x, e.y, e.z ?? 0), P(t, s.x, s.y, s.z ?? 0), Mo(n, t, e.spatialReference, s.spatialReference));
2233
- })(), Mo = (() => {
2234
- const n = R(), t = g(), e = g();
2235
- return (s, i, r, o) => {
2236
- if (V(s, i))
2237
- return;
2238
- const a = Se(r), l = Se(o);
2239
- if (a && l && Ze(a, l) && ae(s, r, t, a) && ae(i, o, e, l)) {
2240
- const { azimuth: u } = te(bo, t, e, a);
2241
- return u != null ? Bt(u, "degrees", "radians") : void 0;
2242
- }
2243
- n[0] = i[0] - s[0], n[1] = i[1] - s[1];
2244
- let c = _i(mi, n);
2245
- return n[0] < 0 && (c = To - c), c;
2246
- };
2247
- })(), Sa = (() => {
2248
- const n = g();
2249
- return (t, e, s, i, r, o = "geodesic") => {
2250
- $t(n, e);
2251
- const a = wo(r);
2252
- if (o === "geodesic") {
2253
- const p = Se(s);
2254
- if (p && ae(n, s, n, p))
2255
- return At(t, n, a, i, p), t[2] = e[2], !!ae(t, p, t, s);
2256
- }
2257
- const l = Fn(a, "geographic", "arithmetic"), c = Bt(l, "degrees", "radians"), u = e[0] + i * Math.cos(c), h = e[1] + i * Math.sin(c), d = e[2];
2258
- return P(t, u, h, d), !0;
2259
- };
2260
- })();
2261
- function wo(n) {
2262
- return n != null ? Fn(Bt(n.value, n.unit, "degrees"), n.rotationType, "geographic") : void 0;
2263
- }
2264
- const bo = new Kt(), To = 2 * Math.PI;
2265
- var Vt;
2266
- (function(n) {
2267
- n[n.WhenToolEditable = 0] = "WhenToolEditable", n[n.WhenToolNotEditable = 1] = "WhenToolNotEditable", n[n.Always = 2] = "Always";
2268
- })(Vt || (Vt = {}));
2269
- class Vo {
2270
- constructor() {
2271
- this._isToolEditable = !0, this._manipulators = new yi(), this._resourceContexts = { manipulator3D: {} }, this._attached = !1;
2272
- }
2273
- set isToolEditable(t) {
2274
- this._isToolEditable = t;
2275
- }
2276
- get length() {
2277
- return this._manipulators.length;
2278
- }
2279
- add(t, e = Vt.WhenToolEditable) {
2280
- this.addMany([t], e);
2281
- }
2282
- addMany(t, e = Vt.WhenToolEditable) {
2283
- for (const s of t) {
2284
- const i = { manipulator: s, visibilityPredicate: e, attached: !1 };
2285
- this._manipulators.add(i), this._attached && this._updateManipulatorAttachment(i);
2286
- }
2287
- }
2288
- remove(t) {
2289
- for (let e = 0; e < this._manipulators.length; e++)
2290
- if (this._manipulators.at(e).manipulator === t) {
2291
- const s = this._manipulators.splice(e, 1)[0];
2292
- this._detachManipulator(s);
2293
- break;
2294
- }
2295
- }
2296
- removeAll() {
2297
- this._manipulators.forEach((t) => {
2298
- this._detachManipulator(t);
2299
- }), this._manipulators.removeAll();
2300
- }
2301
- attach() {
2302
- this._manipulators.forEach((t) => {
2303
- this._updateManipulatorAttachment(t);
2304
- }), this._attached = !0;
2305
- }
2306
- detach() {
2307
- this._manipulators.forEach((t) => {
2308
- this._detachManipulator(t);
2309
- }), this._attached = !1;
2310
- }
2311
- destroy() {
2312
- this.detach(), this._manipulators.forEach(({ manipulator: t }) => t.destroy()), this._manipulators.destroy(), this._resourceContexts = null;
2313
- }
2314
- on(t, e) {
2315
- return this._manipulators.on(t, (s) => {
2316
- e(s);
2317
- });
2318
- }
2319
- forEach(t) {
2320
- for (const e of this._manipulators.items)
2321
- t(e);
2322
- }
2323
- some(t) {
2324
- return this._manipulators.items.some(t);
2325
- }
2326
- toArray() {
2327
- const t = [];
2328
- return this.forEach((e) => t.push(e.manipulator)), t;
2329
- }
2330
- intersect(t, e) {
2331
- let s = null, i = Number.MAX_VALUE;
2332
- return this._manipulators.forEach(({ manipulator: r, attached: o }) => {
2333
- if (!o || !r.interactive)
2334
- return;
2335
- const a = r.intersectionDistance(t, e);
2336
- a != null && a < i && (i = a, s = r);
2337
- }), s;
2338
- }
2339
- _updateManipulatorAttachment(t) {
2340
- this._isManipulatorItemVisible(t) ? this._attachManipulator(t) : this._detachManipulator(t);
2341
- }
2342
- _attachManipulator(t) {
2343
- t.attached || (t.manipulator.attach && t.manipulator.attach(this._resourceContexts), t.attached = !0);
2344
- }
2345
- _detachManipulator(t) {
2346
- if (!t.attached)
2347
- return;
2348
- const e = t.manipulator;
2349
- e.grabbing = !1, e.dragging = !1, e.hovering = !1, e.selected = !1, e.detach && e.detach(this._resourceContexts), t.attached = !1;
2350
- }
2351
- _isManipulatorItemVisible(t) {
2352
- return t.visibilityPredicate === Vt.Always || (this._isToolEditable ? t.visibilityPredicate === Vt.WhenToolEditable : t.visibilityPredicate === Vt.WhenToolNotEditable);
2353
- }
2354
- }
2355
- let Z = class extends In {
2356
- constructor(t) {
2357
- super(t), this.manipulators = new Vo(), this.automaticManipulatorSelection = !0, this.hasGrabbedManipulators = !1, this.hasHoveredManipulators = !1, this.firstGrabbedManipulator = null, this.created = !1, this.removeIncompleteOnCancel = !0, this._editableFlags = /* @__PURE__ */ new Map([[Tt.MANAGER, !0], [Tt.USER, !0]]), this._creationFinishedResolver = vi();
2358
- }
2359
- get active() {
2360
- return this.view != null && this.view.activeTool === this;
2361
- }
2362
- set visible(t) {
2363
- this._get("visible") !== t && (this._set("visible", t), this._syncVisible());
2364
- }
2365
- get editable() {
2366
- return this.getEditableFlag(Tt.USER);
2367
- }
2368
- set editable(t) {
2369
- this.setEditableFlag(Tt.USER, t);
2370
- }
2371
- get updating() {
2372
- return !1;
2373
- }
2374
- get cursor() {
2375
- return null;
2376
- }
2377
- get hasFocusedManipulators() {
2378
- return this.hasGrabbedManipulators || this.hasHoveredManipulators;
2379
- }
2380
- destroy() {
2381
- this.manipulators.destroy(), this._set("view", null);
2382
- }
2383
- onAdd() {
2384
- this._syncVisible();
2385
- }
2386
- activate() {
2387
- this.view != null ? (this.view.focus(), this.onActivate()) : Dn.getLogger(this).error("Can't activate tool if view is not defined.");
2388
- }
2389
- deactivate() {
2390
- this.onDeactivate();
2391
- }
2392
- handleInputEvent(t) {
2393
- this.onInputEvent(t);
2394
- }
2395
- handleInputEventAfter(t) {
2396
- this.onInputEventAfter(t);
2397
- }
2398
- setEditableFlag(t, e) {
2399
- this._editableFlags.set(t, e), this.manipulators.isToolEditable = this.internallyEditable, this._updateManipulatorAttachment(), t === Tt.USER && this.notifyChange("editable"), this.onEditableChange(), this.onManipulatorSelectionChanged();
2400
- }
2401
- getEditableFlag(t) {
2402
- return this._editableFlags.get(t) ?? !1;
2403
- }
2404
- whenCreated() {
2405
- return this._creationFinishedResolver.promise;
2406
- }
2407
- onManipulatorSelectionChanged() {
2408
- }
2409
- onActivate() {
2410
- }
2411
- onDeactivate() {
2412
- }
2413
- onShow() {
2414
- }
2415
- onHide() {
2416
- }
2417
- onEditableChange() {
2418
- }
2419
- onInputEvent(t) {
2420
- }
2421
- onInputEventAfter(t) {
2422
- }
2423
- get internallyEditable() {
2424
- return this.getEditableFlag(Tt.USER) && this.getEditableFlag(Tt.MANAGER);
2425
- }
2426
- finishToolCreation() {
2427
- this.created || this._creationFinishedResolver.resolve(this), this._set("created", !0);
2428
- }
2429
- _syncVisible() {
2430
- if (this.initialized) {
2431
- if (this.visible)
2432
- this._show();
2433
- else if (this._hide(), this.active)
2434
- return void (this.view.activeTool = null);
2435
- }
2436
- }
2437
- _show() {
2438
- this._updateManipulatorAttachment(), this.onShow();
2439
- }
2440
- _hide() {
2441
- this._updateManipulatorAttachment(), this.onHide();
2442
- }
2443
- _updateManipulatorAttachment() {
2444
- this.visible ? this.manipulators.attach() : this.manipulators.detach();
2445
- }
2446
- };
2447
- f([_({ constructOnly: !0 })], Z.prototype, "view", void 0), f([_({ readOnly: !0 })], Z.prototype, "active", null), f([_({ value: !0 })], Z.prototype, "visible", null), f([_({ value: !0 })], Z.prototype, "editable", null), f([_({ readOnly: !0 })], Z.prototype, "manipulators", void 0), f([_({ readOnly: !0 })], Z.prototype, "updating", null), f([_()], Z.prototype, "cursor", null), f([_({ readOnly: !0 })], Z.prototype, "automaticManipulatorSelection", void 0), f([_()], Z.prototype, "hasFocusedManipulators", null), f([_()], Z.prototype, "hasGrabbedManipulators", void 0), f([_()], Z.prototype, "hasHoveredManipulators", void 0), f([_()], Z.prototype, "firstGrabbedManipulator", void 0), f([_({ readOnly: !0 })], Z.prototype, "created", void 0), f([_({ readOnly: !0 })], Z.prototype, "removeIncompleteOnCancel", void 0), Z = f([It("esri.views.interactive.InteractiveToolBase")], Z);
2448
- let yt = class extends In {
2449
- constructor(t) {
2450
- super(t), this.tool = null, this._loggedUnsupportedErrorOnce = !1, this.logger = Dn.getLogger(this), (t == null ? void 0 : t.visible) != null && (this.visible = t.visible);
2451
- }
2452
- initialize() {
2453
- this.addHandles(Ue(() => ({ ready: this.view != null && this.view.ready, supported: this.supported }), ({ ready: t, supported: e }) => {
2454
- !t || e || this._loggedUnsupportedErrorOnce || (this.logError(this.unsupportedErrorMessage), this._loggedUnsupportedErrorOnce = !0);
2455
- }, Cn));
2456
- }
2457
- destroy() {
2458
- this.removeTool(), this.view = null;
2459
- }
2460
- get active() {
2461
- return this.tool != null && this.tool.active;
2462
- }
2463
- get disabled() {
2464
- return this.view == null || !this.view.ready || !this.supported;
2465
- }
2466
- get supported() {
2467
- return this.view == null || this.view.type === this.supportedViewType;
2468
- }
2469
- get view() {
2470
- return this._get("view");
2471
- }
2472
- set view(t) {
2473
- if (t === this.view)
2474
- return;
2475
- this.removeTool(), this._set("view", t);
2476
- const e = "tools";
2477
- this.removeHandles(e), t != null && this.addHandles(t.tools.on("after-remove", (s) => {
2478
- s.item === this.tool && this._set("tool", null);
2479
- }), e);
2480
- }
2481
- set visible(t) {
2482
- this._set("visible", t), this.tool != null && (this.tool.visible = t);
2483
- }
2484
- createTool(t = { interactive: !1 }) {
2485
- if (this.removeTool(), this.view == null || !this.view.ready || !this.supported)
2486
- return;
2487
- const e = this.constructTool();
2488
- e.created ? (this._set("tool", e), this.view.tools.add(e)) : t.interactive ? (this._set("tool", e), this.view.addAndActivateTool(e), xi(() => e.created, () => {
2489
- e.active && this.view != null && (this.view.activeTool = null);
2490
- }, { initial: !0, once: !0 })) : e.destroy();
2491
- }
2492
- removeTool() {
2493
- var s;
2494
- const t = this.tool;
2495
- if (t == null)
2496
- return;
2497
- const e = (s = this.view) == null ? void 0 : s.tools;
2498
- e != null ? e.remove(t) : t.destroy(), this._set("tool", null);
2499
- }
2500
- logError(...t) {
2501
- this.logger.error(...t);
2502
- }
2503
- };
2504
- f([_({ constructOnly: !0 })], yt.prototype, "tool", void 0), f([_()], yt.prototype, "active", null), f([_()], yt.prototype, "disabled", null), f([_()], yt.prototype, "supported", null), f([_({ value: null })], yt.prototype, "view", null), f([_({ type: Boolean, value: !0 })], yt.prototype, "visible", null), yt = f([It("esri.widgets.support.InteractiveToolViewModel")], yt);
2505
- const Ve = "esri-unit-select", Ae = { base: Ve, label: `${Ve}__label`, select: `${Ve}__select` };
2506
- let xt = class extends Zn {
2507
- constructor(n, t) {
2508
- super(n, t), this._onSelectChange = (e) => {
2509
- this.onChange(e.target.value);
2510
- };
2511
- }
2512
- loadDependencies() {
2513
- return On({ label: () => import("./calcite-label-4f30e08d.js"), option: () => import("./calcite-option-713c1d40.js"), select: () => import("./calcite-select-28d8edfc.js") });
2514
- }
2515
- render() {
2516
- const { messages: n, options: t, selectLabel: e, value: s, _onSelectChange: i } = this;
2517
- return N("div", { class: Ae.base, key: "units" }, N("calcite-label", { class: Ae.label }, e, N("calcite-select", { class: Ae.select, label: e, onCalciteSelectChange: i }, t.map((r) => {
2518
- var o;
2519
- return N("calcite-option", { key: r, selected: r === s, value: r }, $i(r) ? n.systems[r] : (o = n.units[r]) == null ? void 0 : o.pluralCapitalized);
2520
- }))));
2521
- }
2522
- };
2523
- f([_()], xt.prototype, "options", void 0), f([_()], xt.prototype, "onChange", void 0), f([_()], xt.prototype, "selectLabel", void 0), f([_()], xt.prototype, "value", void 0), f([_(), Ei("esri/core/t9n/Units")], xt.prototype, "messages", void 0), xt = f([It("esri.widgets.support.UnitSelect")], xt);
2524
- const B = "esri-measurement-widget-content", K = { base: B, actions: `${B}__actions`, error: `${B}__error`, hint: `${B}__hint`, hintText: `${B}__hint-text`, panelError: `${B}__panel--error`, settings: `${B}__settings`, measurement: `${B}__measurement`, measurementItem: `${B}__measurement-item`, measurementItemDisabled: `${B}__measurement-item--disabled`, measurementItemTitle: `${B}__measurement-item__title`, measurementItemValue: `${B}__measurement-item__value` };
2525
- let J = class extends Zn {
2526
- constructor(n, t) {
2527
- super(n, t);
2528
- }
2529
- loadDependencies() {
2530
- return On({ button: () => import("./calcite-button-8e9175c0.js") });
2531
- }
2532
- render() {
2533
- return N("div", { class: K.base }, this._renderContent());
2534
- }
2535
- _renderContent() {
2536
- const { supported: n, active: t, state: e } = this;
2537
- switch (e) {
2538
- case "disabled":
2539
- case "ready":
2540
- return n ? t ? this._renderHint() : this._renderActions() : this._renderUnsupportedMessage();
2541
- case "measuring":
2542
- case "measured":
2543
- return [this._renderSettings(), this._renderMeasurement(), this._renderActions()];
2544
- }
2545
- }
2546
- _renderUnsupportedMessage() {
2547
- return N("section", { class: K.error, key: "unsupported" }, N("p", null, this.messages.unsupported));
2548
- }
2549
- _renderHint() {
2550
- const { messages: n } = this;
2551
- return N("section", { class: K.hint, key: "hint" }, N("p", { class: K.hintText }, n.hint));
2552
- }
2553
- _renderSettings() {
2554
- return N("div", { class: K.settings, key: "settings" }, N(xt, { options: this.unitOptions, selectLabel: this.messages.unit, value: this.unit, onChange: this.onUnitChange }));
2555
- }
2556
- _renderMeasurement() {
2557
- return N("section", { class: K.measurement, key: "measurement" }, this.measurementItems.map((n) => this._renderMeasurementItem(n)));
2558
- }
2559
- _renderMeasurementItem({ key: n, title: t, value: e }) {
2560
- return N("div", { class: this.classes(K.measurementItem, e == null && K.measurementItemDisabled), key: n }, N("span", { class: K.measurementItemTitle }, t), N("span", { "aria-live": "polite", class: K.measurementItemValue }, e ?? this.messages.notApplicable));
2561
- }
2562
- _renderActions() {
2563
- const { messages: n } = this;
2564
- return N("div", { class: K.actions }, N("calcite-button", { class: this.newMeasurementButtonClass, disabled: this.state === "disabled", onclick: this.onNewMeasurementClick }, n.newMeasurement));
2565
- }
2566
- };
2567
- f([_()], J.prototype, "active", void 0), f([_()], J.prototype, "measurementItems", void 0), f([_()], J.prototype, "messages", void 0), f([_()], J.prototype, "newMeasurementButtonClass", void 0), f([_()], J.prototype, "onNewMeasurementClick", void 0), f([_()], J.prototype, "onUnitChange", void 0), f([_()], J.prototype, "state", void 0), f([_()], J.prototype, "supported", void 0), f([_()], J.prototype, "unit", void 0), f([_()], J.prototype, "unitOptions", void 0), J = f([It("esri.widgets.support.MeasurementWidgetContent")], J);
2568
- export {
2569
- Xi as $,
2570
- da as A,
2571
- Yi as B,
2572
- jo as C,
2573
- Ur as D,
2574
- wo as E,
2575
- bn as F,
2576
- en as G,
2577
- Sa as H,
2578
- Ea as I,
2579
- Pa as J,
2580
- tt as K,
2581
- Hi as L,
2582
- va as M,
2583
- La as N,
2584
- Do as O,
2585
- nr as P,
2586
- Zo as Q,
2587
- ji as R,
2588
- ma as S,
2589
- Hr as T,
2590
- Yr as U,
2591
- ss as V,
2592
- ga as W,
2593
- Ji as X,
2594
- Go as Y,
2595
- xa as Z,
2596
- Mn as _,
2597
- Oo as a,
2598
- zt as a0,
2599
- Tr as a1,
2600
- Xr as a2,
2601
- vs as a3,
2602
- Fe as a4,
2603
- hn as a5,
2604
- wa as a6,
2605
- xo as a7,
2606
- $a as a8,
2607
- te as a9,
2608
- Kt as aa,
2609
- Va as ab,
2610
- Mo as ac,
2611
- ps as ad,
2612
- w as ae,
2613
- Qi as af,
2614
- ca as ag,
2615
- ha as ah,
2616
- Bi as ai,
2617
- ya as b,
2618
- Ho as c,
2619
- br as d,
2620
- xr as e,
2621
- ba as f,
2622
- rr as g,
2623
- Ma as h,
2624
- Vo as i,
2625
- Aa as j,
2626
- Ra as k,
2627
- Z as l,
2628
- se as m,
2629
- Ki as n,
2630
- Fo as o,
2631
- yt as p,
2632
- Wo as q,
2633
- Jo as r,
2634
- St as s,
2635
- fa as t,
2636
- J as u,
2637
- Uo as v,
2638
- fe as w,
2639
- _a as x,
2640
- Ta as y,
2641
- Me as z
2642
- };