@agrotools1/at-components 0.2.1 → 0.2.3

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 (553) hide show
  1. package/dist/AGraphicContainer-98a4c8a4.js +109 -0
  2. package/dist/APIKeyMixin-9511e0a5.js +19 -0
  3. package/dist/Analysis-4b1d1fb5.js +31 -0
  4. package/dist/ArcGISCachedService-93e2cb27.js +47 -0
  5. package/dist/ArcGISService-3f8d89c1.js +25 -0
  6. package/dist/AreaMeasurement2D-e0bb230c.js +405 -0
  7. package/dist/AreaMeasurement3D-a9959ecf.js +488 -0
  8. package/dist/AttachmentInfo-601c56e2.js +34 -0
  9. package/dist/AttachmentQuery-3504d550.js +18 -0
  10. package/dist/AttributeStore-b90878e3.js +1707 -0
  11. package/dist/BaseDynamicLayerView2D-b2faf028.js +63 -0
  12. package/dist/BindType-5e76c8e1.js +7 -0
  13. package/dist/BingMapsLayer-5d79fe2b.js +112 -0
  14. package/dist/Bitmap-f775c851.js +128 -0
  15. package/dist/BitmapContainer-af5942b8.js +23 -0
  16. package/dist/BlendLayer-a792edf6.js +13 -0
  17. package/dist/BoundsStore-789624df.js +63 -0
  18. package/dist/BufferObject-cbd0168e.js +100 -0
  19. package/dist/BufferView-004ad517.js +683 -0
  20. package/dist/BuildingSceneLayer-25bc760b.js +535 -0
  21. package/dist/Button/Button.d.ts +24 -2
  22. package/dist/Button-70963624.js +36 -0
  23. package/dist/ByteSizeUnit-90df2840.js +7 -0
  24. package/dist/CSVLayer-fd3b6750.js +208 -0
  25. package/dist/CSVSourceWorker-eb24cd85.js +367 -0
  26. package/dist/CatalogDynamicGroupLayerView2D-dfc700a4.js +66 -0
  27. package/dist/CatalogFootprintLayerView2D-6eb16597.js +76 -0
  28. package/dist/CatalogLayer-1cc632fe.js +262 -0
  29. package/dist/CatalogLayerView2D-d143aa34.js +52 -0
  30. package/dist/Chips/index.d.ts +1 -0
  31. package/dist/CircularArray-b2bc1dfd.js +40 -0
  32. package/dist/ClassBreaksDefinition-07ba0c64.js +18 -0
  33. package/dist/ColorMaterial.glsl-e7801766.js +64 -0
  34. package/dist/ColorSet-df5696b5.js +45 -0
  35. package/dist/ColorStop-7187f368.js +29 -0
  36. package/dist/Container-ac97765a.js +521 -0
  37. package/dist/CustomParametersMixin-b3432b3e.js +12 -0
  38. package/dist/DatePicker/DatePicker.helper.d.ts +22 -0
  39. package/dist/DatePicker/DatePickerCalendar/DatePickerCalendar.helper.d.ts +18 -0
  40. package/dist/DatePicker/index.d.ts +2 -0
  41. package/dist/DefaultMaterial.glsl-3cc4efe7.js +42 -0
  42. package/dist/DefaultMaterial_COLOR_GAMMA-337c63aa.js +653 -0
  43. package/dist/DefaultTheme-12dffc66.js +130 -0
  44. package/dist/DeleteForwardEditsParameters-ae76d898.js +18 -0
  45. package/dist/DimensionLayer-9eb47c76.js +129 -0
  46. package/dist/DirectLineMeasurement3D-e9903136.js +449 -0
  47. package/dist/DistanceMeasurement2D-a4853462.js +303 -0
  48. package/dist/DoubleArray-5076283e.js +25 -0
  49. package/dist/EdgeProcessingWorker-c1783ddd.js +63 -0
  50. package/dist/EditBusLayer-e812f4c9.js +107 -0
  51. package/dist/ElevationInfo-fad03d5e.js +56 -0
  52. package/dist/ElevationLayer-397792d5.js +129 -0
  53. package/dist/ElevationQuery-beceb62f.js +598 -0
  54. package/dist/ElevationSamplerWorker-0048a204.js +62 -0
  55. package/dist/ExportImageParameters-c6c4bc61.js +66 -0
  56. package/dist/ExportStrategy-908f5b8d.js +93 -0
  57. package/dist/ExportWMSImageParameters-34da6b46.js +33 -0
  58. package/dist/External-14daf0c1.js +110 -0
  59. package/dist/FeatureCollectionSnappingSource-f97a1829.js +130 -0
  60. package/dist/FeatureCommandQueue-d4817eac.js +1244 -0
  61. package/dist/FeatureEffect-08976bbd.js +39 -0
  62. package/dist/FeatureEffectLayer-05c258f4.js +13 -0
  63. package/dist/FeatureFilter-8c5e44b1.js +27 -0
  64. package/dist/FeatureLayer-d3659466.js +693 -0
  65. package/dist/FeatureLayerBase-9b63f732.js +148 -0
  66. package/dist/FeatureLayerSource-960f1c01.js +444 -0
  67. package/dist/FeatureLayerView2D-7503e1ed.js +1967 -0
  68. package/dist/FeaturePipelineWorker-d4301d2a.js +3633 -0
  69. package/dist/FeatureReductionLayer-e6cf73ac.js +225 -0
  70. package/dist/FeatureReductionSelection-d90249a7.js +22 -0
  71. package/dist/FeatureServiceSnappingSource-9e49ca72.js +481 -0
  72. package/dist/FeatureServiceSnappingSourceWorker-39b093b3.js +747 -0
  73. package/dist/FeatureSet-d79f0e48.js +188 -0
  74. package/dist/FeatureStore-eb4b87c0.js +131 -0
  75. package/dist/FeatureTemplate-edb1b782.js +12 -0
  76. package/dist/FeatureType-bba29adb.js +25 -0
  77. package/dist/FieldsIndex-75cca4d0.js +109 -0
  78. package/dist/FormTemplate-22911c47.js +350 -0
  79. package/dist/GeoJSONLayer-b33c96b8.js +236 -0
  80. package/dist/GeoJSONSourceWorker-b04ff552.js +247 -0
  81. package/dist/GeoRSSLayer-6e5fcd0e.js +73 -0
  82. package/dist/GeoRSSLayerView2D-21b6b12e.js +140 -0
  83. package/dist/GeometryUtils-fa897cbd.js +403 -0
  84. package/dist/GraphicContainer-1fd6bfce.js +26 -0
  85. package/dist/GraphicManipulator-f3b7dc9b.js +1499 -0
  86. package/dist/GraphicsLayer-e0686779.js +38 -0
  87. package/dist/GraphicsLayerView2D-a7eba2fe.js +114 -0
  88. package/dist/GraphicsSnappingSource-594f402a.js +273 -0
  89. package/dist/GraphicsView2D-347562b8.js +620 -0
  90. package/dist/GroupLayer-7ae0a916.js +147 -0
  91. package/dist/GroupLayerView2D-ffcde606.js +98 -0
  92. package/dist/HUDMaterial.glsl-b0a3e0ce.js +65 -0
  93. package/dist/HighlightCounter-e18f0179.js +41 -0
  94. package/dist/HighlightGraphicContainer-fd774cea.js +18 -0
  95. package/dist/I3SBinaryReader-190e99de.js +310 -0
  96. package/dist/I3SLayerDefinitions-6ddaca60.js +55 -0
  97. package/dist/I3SUtil-44b83dc0.js +59 -0
  98. package/dist/IdentityManager-fbe91c13.js +899 -0
  99. package/dist/ImageHistogramParameters-d64fd9c8.js +905 -0
  100. package/dist/ImageryLayer-67878a78.js +1799 -0
  101. package/dist/ImageryLayerView2D-ae45faba.js +352 -0
  102. package/dist/ImageryTileLayer-9dca8b93.js +2157 -0
  103. package/dist/ImageryTileLayerView2D-977f66aa.js +1110 -0
  104. package/dist/ImmutableArray-fb7b7a6a.js +20 -0
  105. package/dist/Indices-e6dc3b15.js +67 -0
  106. package/dist/Input/Input.core.d.ts +37 -11
  107. package/dist/Input/index.d.ts +37 -11
  108. package/dist/IntegratedMesh3DTilesLayer-8811e7bf.js +112 -0
  109. package/dist/IntegratedMeshLayer-9162c0b5.js +141 -0
  110. package/dist/InteractiveAnalysisViewModel-b046fcb9.js +7397 -0
  111. package/dist/InterleavedLayout-32973c8a.js +163 -0
  112. package/dist/KMLLayer-80f81df7.js +162 -0
  113. package/dist/KMLLayerView2D-b6ba3b80.js +253 -0
  114. package/dist/KnowledgeGraphLayerView2D-ae91bd81.js +43 -0
  115. package/dist/LRUCache-27e8c401.js +32 -0
  116. package/dist/LabelClass-d9a476d6.js +135 -0
  117. package/dist/LabelMetric-e2728bbf.js +400 -0
  118. package/dist/LaserlinePath.glsl-60d00e61.js +64 -0
  119. package/dist/Laserlines.glsl-499a6cbf.js +65 -0
  120. package/dist/LayerFloorInfo-d05cf9dd.js +15 -0
  121. package/dist/LayerView-036988a9.js +206 -0
  122. package/dist/LercWorker-b1b4bb47.js +157 -0
  123. package/dist/LineOfSightLayer-9a9a60b7.js +147 -0
  124. package/dist/LinkChartLayer-d61803bb.js +1027 -0
  125. package/dist/Lyr3DWorker-87be14e0.js +82 -0
  126. package/dist/MD5-1b5ec1c3.js +76 -0
  127. package/dist/MagnifierPrograms-da7a27ab.js +806 -0
  128. package/dist/Map/Map.d.ts +26 -0
  129. package/dist/Map/index.d.ts +1 -0
  130. package/dist/Map/types/index.d.ts +38 -0
  131. package/dist/Map/utils/index.d.ts +24 -0
  132. package/dist/MapImageLayer-f07adf1a.js +169 -0
  133. package/dist/MapImageLayerView2D-d1b140c3.js +146 -0
  134. package/dist/MapNotesLayer-c662d147.js +283 -0
  135. package/dist/MapNotesLayerView2D-bf9ac698.js +161 -0
  136. package/dist/MapServiceLayerViewHelper-fb724de9.js +288 -0
  137. package/dist/MeasurementWidgetContent-e4888ef2.js +2642 -0
  138. package/dist/MediaLayer-36d873a3.js +523 -0
  139. package/dist/MediaLayerView2D-e58b8ec0.js +332 -0
  140. package/dist/MemCache-a9232ec2.js +227 -0
  141. package/dist/MemorySourceWorker-20ff27d6.js +222 -0
  142. package/dist/Mesh-3839826a.js +980 -0
  143. package/dist/MeshLocalVertexSpace-00151564.js +19 -0
  144. package/dist/MultiOriginJSONSupport-bb258670.js +158 -0
  145. package/dist/NestedMap-83f8e815.js +29 -0
  146. package/dist/OGCFeatureLayer-2a8b7ecc.js +211 -0
  147. package/dist/OGCFeatureLayerView2D-185f9649.js +82 -0
  148. package/dist/ObjectStack-10d91171.js +21 -0
  149. package/dist/Octree-78797046.js +495 -0
  150. package/dist/OpenStreetMapLayer-b0a17790.js +30 -0
  151. package/dist/OperationalLayer-55af27d6.js +44 -0
  152. package/dist/OptimizedFeatureSet-54e095c4.js +12 -0
  153. package/dist/OptimizedGeometry-3b808152.js +68 -0
  154. package/dist/OrderByInfo-22e3c805.js +16 -0
  155. package/dist/OrderIndependentTransparency-3eadfe42.js +214 -0
  156. package/dist/OrderedLayer-1403a591.js +26 -0
  157. package/dist/OrientedImageryLayer-8ec8d7d1.js +216 -0
  158. package/dist/OverlayCompositing.glsl-ba3bd81d.js +65 -0
  159. package/dist/OverrideHelper-82325a2c.js +242 -0
  160. package/dist/PBFDecoderWorker-f6517afc.js +213 -0
  161. package/dist/PointCloudLayer-cff43a10.js +197 -0
  162. package/dist/PointCloudUniqueValueRenderer-f337a895.js +115 -0
  163. package/dist/PointCloudWorker-cdb28dc1.js +212 -0
  164. package/dist/PooledRBush-ee4e60af.js +272 -0
  165. package/dist/Popup-c7f55588.js +3990 -0
  166. package/dist/PortalLayer-07b3c53e.js +126 -0
  167. package/dist/Program-ba2f18b2.js +694 -0
  168. package/dist/ProgramTemplate-eee4f097.js +35 -0
  169. package/dist/ProgressBar/ProgressBar.d.ts +0 -13
  170. package/dist/QueryEngine-10c97624.js +896 -0
  171. package/dist/QueryEngineCapabilities-0d8477a2.js +4 -0
  172. package/dist/QueryTask-115430b6.js +119 -0
  173. package/dist/RasterSymbolizer-fbf433fe.js +3024 -0
  174. package/dist/RasterVFDisplayObject-20b0dd86.js +581 -0
  175. package/dist/RasterWorker-44c37e20.js +78 -0
  176. package/dist/RawBlockCache-25203dbd.js +185 -0
  177. package/dist/RealisticTree.glsl-bc07c4dc.js +42 -0
  178. package/dist/Rect-894f011c.js +14 -0
  179. package/dist/RefreshableLayer-9550b85a.js +80 -0
  180. package/dist/RefreshableLayerView-601f7038.js +16 -0
  181. package/dist/Relationship-c662830e.js +64 -0
  182. package/dist/RelationshipQuery-765f068e.js +22 -0
  183. package/dist/RenderState-b244097f.js +7 -0
  184. package/dist/RenderingContext-3db74548.js +889 -0
  185. package/dist/RibbonLine.glsl-c6a715b7.js +65 -0
  186. package/dist/RouteLayer-3f5411f3.js +786 -0
  187. package/dist/RouteLayerView2D-a5fd4cbf.js +195 -0
  188. package/dist/SDFHelper-a34e90ee.js +140 -0
  189. package/dist/SSAO.glsl-5491a708.js +43 -0
  190. package/dist/SSAOBlur.glsl-f3068b8e.js +42 -0
  191. package/dist/ScaleRangeLayer-7ddf00b4.js +21 -0
  192. package/dist/SceneLayer-c594bfc3.js +542 -0
  193. package/dist/SceneLayerSnappingSource-a0504ac7.js +218 -0
  194. package/dist/SceneLayerSnappingSourceWorker-a04d6692.js +112 -0
  195. package/dist/SceneLayerWorker-1865768e.js +164 -0
  196. package/dist/SceneService-fb9f0142.js +215 -0
  197. package/dist/Scheduler-eacc84bb.js +373 -0
  198. package/dist/Select/Item/Item.d.ts +2 -1
  199. package/dist/Select/{Select.multiple.d.ts → Multiple/Select.multiple.d.ts} +26 -16
  200. package/dist/Select/Select.core.d.ts +18 -15
  201. package/dist/Select/{Select.single.d.ts → Single/Select.single.d.ts} +23 -14
  202. package/dist/Select/index.d.ts +42 -24
  203. package/dist/ShadedColorMaterial.glsl-db97956b.js +64 -0
  204. package/dist/SnappingOperation-9622a00d.js +48 -0
  205. package/dist/SourceLayerData-7016f1a5.js +116 -0
  206. package/dist/SpatialFilter-d20d4f50.js +1701 -0
  207. package/dist/Stop-68022e32.js +281 -0
  208. package/dist/StreamLayer-7c837e3d.js +188 -0
  209. package/dist/StreamLayerView2D-586f5a6a.js +164 -0
  210. package/dist/StyleDefinition-f4862d5a.js +36 -0
  211. package/dist/StyleRepository-fba75e70.js +2212 -0
  212. package/dist/SublayersOwner-3dc574cd.js +545 -0
  213. package/dist/SubtypeGroupLayer-1f9c5398.js +514 -0
  214. package/dist/SubtypeGroupLayerView2D-0f108d9d.js +84 -0
  215. package/dist/Tabs/Tab/Tab.d.ts +3 -3
  216. package/dist/TechniqueInstance-0481dbff.js +233 -0
  217. package/dist/TemporalLayer-8116b4a4.js +23 -0
  218. package/dist/Texture-22a8cca5.js +501 -0
  219. package/dist/TextureOnly.glsl-458f8148.js +65 -0
  220. package/dist/Theme-f05b8eb0.js +3426 -0
  221. package/dist/Tick-aef93b48.js +723 -0
  222. package/dist/TileContainer-0bf0ea1b.js +31 -0
  223. package/dist/TileInfoTilemapCache-d78858c0.js +38 -0
  224. package/dist/TileLayer-0edee064.js +194 -0
  225. package/dist/TileLayerView2D-78d5801b.js +187 -0
  226. package/dist/TilemapCache-79699d61.js +189 -0
  227. package/dist/TimeInfo-40c96ade.js +42 -0
  228. package/dist/TimeOnly-9ee66ca6.js +706 -0
  229. package/dist/Tooltip-e7498dc9.js +138 -0
  230. package/dist/TopFeaturesQuery-ad224e01.js +32 -0
  231. package/dist/TurboLine-6ab04aef.js +565 -0
  232. package/dist/UniqueValueRenderer-eaa5f8a6.js +1039 -0
  233. package/dist/UnknownLayer-e280ddd4.js +30 -0
  234. package/dist/UnknownTimeZone-220952b5.js +15 -0
  235. package/dist/UnsupportedLayer-447f7676.js +31 -0
  236. package/dist/UpdateTracking2D-e9adad8f.js +8566 -0
  237. package/dist/Util-002f5109.js +57 -0
  238. package/dist/VectorTileLayer-3210be81.js +544 -0
  239. package/dist/VectorTileLayerView2D-6a51e3b8.js +2108 -0
  240. package/dist/Version-3de8cbca.js +33 -0
  241. package/dist/VertexArrayObject-07998745.js +73 -0
  242. package/dist/VertexAttribute-faad30bf.js +11 -0
  243. package/dist/VertexColor.glsl-e415cf02.js +2683 -0
  244. package/dist/VertexElementDescriptor-d7c718c2.js +8 -0
  245. package/dist/VertexSnappingCandidate-b676241f.js +13 -0
  246. package/dist/VideoLayerView2D-f659dd0d.js +124 -0
  247. package/dist/VoxelLayer-003f82ff.js +631 -0
  248. package/dist/WFSLayer-3da6c5f7.js +221 -0
  249. package/dist/WFSSourceWorker-9a11693a.js +157 -0
  250. package/dist/WGLContainer-3d159b63.js +5426 -0
  251. package/dist/WMSLayer-fc0632f8.js +536 -0
  252. package/dist/WMSLayerView2D-54e80e1b.js +117 -0
  253. package/dist/WMTSLayer-9324b12b.js +531 -0
  254. package/dist/WMTSLayerView2D-3ef936db.js +142 -0
  255. package/dist/WebTileLayer-45c563ff.js +110 -0
  256. package/dist/WhereClause-7a28b740.js +2766 -0
  257. package/dist/WorkerHandle-0d54a6c7.js +47 -0
  258. package/dist/WorkerTileHandler-786c2b24.js +1539 -0
  259. package/dist/action-163397e3.js +198 -0
  260. package/dist/action-group-4859fb97.js +145 -0
  261. package/dist/action-menu-2d70b2fc.js +1759 -0
  262. package/dist/agrotools-theme.css.map +1 -1
  263. package/dist/apng-9b71d52c.js +392 -0
  264. package/dist/ar-a17f8064.js +18 -0
  265. package/dist/arcade-fa309282.js +229 -0
  266. package/dist/arcadeAsyncRuntime-738498fd.js +943 -0
  267. package/dist/arcadeUtils-f71d80fa.js +8741 -0
  268. package/dist/arcgis-knowledge-client-core-6056bcea.js +1218 -0
  269. package/dist/arcgis-knowledge-client-core-simd-9bc1f83e.js +1218 -0
  270. package/dist/arcgisLayers-b2b878bd.js +152 -0
  271. package/dist/associatedFeatureServiceUtils-df5b5187.js +92 -0
  272. package/dist/axisAngleDegrees-32643b7c.js +49 -0
  273. package/dist/basicInterfaces-fa4f5fa7.js +30 -0
  274. package/dist/basis_transcoder-3187cc92.js +1248 -0
  275. package/dist/bg_BG-9950a70b.js +18 -0
  276. package/dist/bs_BA-60482871.js +18 -0
  277. package/dist/ca_ES-a121088e.js +18 -0
  278. package/dist/calcite-action-bar-5a87c23c.js +303 -0
  279. package/dist/calcite-action-ee2ca847.js +22 -0
  280. package/dist/calcite-action-group-19aa86ee.js +28 -0
  281. package/dist/calcite-button-8e9175c0.js +228 -0
  282. package/dist/calcite-flow-57d26d2d.js +128 -0
  283. package/dist/calcite-flow-item-4a3e3fc0.js +499 -0
  284. package/dist/calcite-icon-d99e280a.js +16 -0
  285. package/dist/calcite-input-28b20785.js +24 -0
  286. package/dist/calcite-label-4f30e08d.js +79 -0
  287. package/dist/calcite-list-0cee7628.js +2135 -0
  288. package/dist/calcite-list-item-0a19efa8.js +576 -0
  289. package/dist/calcite-list-item-group-0706662f.js +71 -0
  290. package/dist/calcite-loader-865045b1.js +14 -0
  291. package/dist/calcite-modal-3e4da6fd.js +333 -0
  292. package/dist/calcite-notice-50b74ab7.js +181 -0
  293. package/dist/calcite-option-713c1d40.js +94 -0
  294. package/dist/calcite-scrim-809fbd0b.js +18 -0
  295. package/dist/calcite-select-28d8edfc.js +231 -0
  296. package/dist/capabilities-c8f838be.js +50 -0
  297. package/dist/chartCommon-13718cda.js +256 -0
  298. package/dist/chartUtilsAm5-6be145fb.js +2954 -0
  299. package/dist/clientSideDefaults-5c1f97c9.js +39 -0
  300. package/dist/colorRamps-8792655e.js +38 -0
  301. package/dist/colorUtils-54f4b662.js +164 -0
  302. package/dist/commonProperties-f9559903.js +60 -0
  303. package/dist/component-51a10bc0.js +18 -0
  304. package/dist/computeTranslationToOriginAndRotation-4876cb93.js +60 -0
  305. package/dist/conditionalSlot-87175989.js +27 -0
  306. package/dist/config-61215215.js +7 -0
  307. package/dist/constants-5bd557fe.js +5 -0
  308. package/dist/createConnection-f974a00a.js +299 -0
  309. package/dist/crsUtils-59933b10.js +7 -0
  310. package/dist/cs_CZ-1b968650.js +18 -0
  311. package/dist/da_DK-e0fe1642.js +18 -0
  312. package/dist/dataUtils-7c276b73.js +1421 -0
  313. package/dist/date-1c28c6a5.js +52 -0
  314. package/dist/de_CH-b0dbd4c8.js +6 -0
  315. package/dist/de_DE-8609ef65.js +6 -0
  316. package/dist/debounce-de27a42a.js +121 -0
  317. package/dist/deduplicate-59fb9cac.js +89 -0
  318. package/dist/defaults-2bfa4a36.js +31 -0
  319. package/dist/defaultsJSON-ba17aa15.js +10 -0
  320. package/dist/definitions-a00a3a6c.js +52 -0
  321. package/dist/deleteForwardEdits-f653b513.js +13 -0
  322. package/dist/devEnvironmentUtils-42cb97c7.js +11 -0
  323. package/dist/diffUtils-e71a6152.js +90 -0
  324. package/dist/dom-b589b728.js +358 -0
  325. package/dist/doublePrecisionUtils-46e21550.js +22 -0
  326. package/dist/drapedUtils-b42fcbc6.js +75 -0
  327. package/dist/earcut-6fa1a128.js +292 -0
  328. package/dist/edgeProcessing-2ff1f201.js +252 -0
  329. package/dist/editingSupport-68545668.js +203 -0
  330. package/dist/editsZScale-c7cdd215.js +37 -0
  331. package/dist/el_GR-5cfd1e7e.js +18 -0
  332. package/dist/elevationInfoUtils-5456a079.js +126 -0
  333. package/dist/en_CA-47f2633b.js +18 -0
  334. package/dist/en_US-47f2633b.js +18 -0
  335. package/dist/enums-25d066fc.js +13 -0
  336. package/dist/enums-2c166c09.js +99 -0
  337. package/dist/enums-fa8f05ab.js +152 -0
  338. package/dist/es_ES-489878a2.js +6 -0
  339. package/dist/et_EE-6472669a.js +18 -0
  340. package/dist/executeForIds-4ab75c0d.js +14 -0
  341. package/dist/executeForTopCount-7e095ec1.js +17 -0
  342. package/dist/executeForTopExtents-19daf9d0.js +17 -0
  343. package/dist/executeForTopIds-1ba3a4af.js +17 -0
  344. package/dist/executeQueryJSON-46168866.js +15 -0
  345. package/dist/executeQueryPBF-d8623daf.js +152 -0
  346. package/dist/executeRelationshipQuery-011dfb45.js +53 -0
  347. package/dist/executeTopFeaturesQuery-02166801.js +18 -0
  348. package/dist/featureConversionUtils-650d7601.js +479 -0
  349. package/dist/featureLayerUtils-64e09283.js +142 -0
  350. package/dist/featureLayerUtils-b07f9c11.js +250 -0
  351. package/dist/featureSetUtils-9d37d6f8.js +2530 -0
  352. package/dist/featuresetbase-62aeb079.js +707 -0
  353. package/dist/featuresetgeom-51f9fc4e.js +99 -0
  354. package/dist/featuresetstats-4db32894.js +81 -0
  355. package/dist/featuresetstring-990c3287.js +95 -0
  356. package/dist/fetchService-5198dd4a.js +33 -0
  357. package/dist/fi_FI-d7a3a525.js +18 -0
  358. package/dist/fieldProperties-edfa24cb.js +33 -0
  359. package/dist/floatRGBA-516d7961.js +20 -0
  360. package/dist/floorFilterUtils-936f7587.js +19 -0
  361. package/dist/focusTrapComponent-e849bb89.js +475 -0
  362. package/dist/form-99719d52.js +138 -0
  363. package/dist/fr_FR-a88f2596.js +7 -0
  364. package/dist/geohashUtils-2bc76440.js +85 -0
  365. package/dist/geojson-603231df.js +208 -0
  366. package/dist/geomasync-e9063b4c.js +567 -0
  367. package/dist/geometryEngine-d3bb2fd6.js +192 -0
  368. package/dist/geometryEngineAsync-55aa6170.js +217 -0
  369. package/dist/geometryEngineBase-527e8b63.js +18463 -0
  370. package/dist/geometryEngineJSON-28087174.js +46 -0
  371. package/dist/geometryEngineJSON-d54949f9.js +171 -0
  372. package/dist/geometryEngineWorker-dc2c7127.js +11 -0
  373. package/dist/geometryServiceUtils-6a3e1e93.js +28 -0
  374. package/dist/georeference-ed8b2c30.js +291 -0
  375. package/dist/gif-204e82dd.js +323 -0
  376. package/dist/glUtil-8f8bce6b.js +19 -0
  377. package/dist/gltfexport-b2566542.js +705 -0
  378. package/dist/groupLayerUtils-ea9e6359.js +39 -0
  379. package/dist/guid-5ee54248.js +17 -0
  380. package/dist/he_IL-e34cf273.js +18 -0
  381. package/dist/heatmapUtils-56758920.js +45 -0
  382. package/dist/highlightReasons-de432106.js +19 -0
  383. package/dist/hr_HR-6a124f87.js +18 -0
  384. package/dist/hu_HU-58f3feb6.js +18 -0
  385. package/dist/hydrated-0e1c7565.js +40 -0
  386. package/dist/i3s-bb0b5b67.js +809 -0
  387. package/dist/icon-c6e3bd23.js +127 -0
  388. package/dist/id_ID-18d97715.js +18 -0
  389. package/dist/imageBitmapUtils-881d8c64.js +23 -0
  390. package/dist/imageUtils-57eeedc5.js +69 -0
  391. package/dist/imageUtils-ef69c578.js +89 -0
  392. package/dist/imageryUtils-23f51cb1.js +43 -0
  393. package/dist/index-01c737ed.js +42563 -0
  394. package/dist/index.d.ts +2 -1
  395. package/dist/index.js +22 -10184
  396. package/dist/infoFor3D-bf4e6c95.js +58 -0
  397. package/dist/input-message-673a9baa.js +92 -0
  398. package/dist/input2-bbf6454e.js +575 -0
  399. package/dist/interactive-aeb2cb9f.js +80 -0
  400. package/dist/interfaces-fac3cfda.js +7 -0
  401. package/dist/it_IT-49e70bbf.js +6 -0
  402. package/dist/ja_JP-eaef2cc3.js +18 -0
  403. package/dist/json-5febf88a.js +57 -0
  404. package/dist/jsonContext-2dc288b1.js +15 -0
  405. package/dist/jsonUtils-1abd4bfc.js +59 -0
  406. package/dist/jsonUtils-913fa1bd.js +86 -0
  407. package/dist/jsonUtils-f6a5e63b.js +476 -0
  408. package/dist/kmlUtils-7c2744fe.js +112 -0
  409. package/dist/knowledgeGraphService-6a349e04.js +739 -0
  410. package/dist/knowledgegraph-c91b0bb2.js +149 -0
  411. package/dist/ko_KR-5c972fd8.js +14 -0
  412. package/dist/label2-1ab25f27.js +90 -0
  413. package/dist/labelUtils-a3634e8f.js +61 -0
  414. package/dist/labelingInfo-568c9210.js +46 -0
  415. package/dist/layerViewUtils-052e603c.js +10 -0
  416. package/dist/layersCreator-4a5366ea.js +151 -0
  417. package/dist/layersLoader-b87d4857.js +197 -0
  418. package/dist/lazyLayerLoader-8817000c.js +10 -0
  419. package/dist/lclayout-64c67b4e.js +773 -0
  420. package/dist/lengthUtils-695e744c.js +5 -0
  421. package/dist/lerc-wasm-13192bf3.js +325 -0
  422. package/dist/libtess-asm-4883179d.js +3673 -0
  423. package/dist/libtess-fc70d1ce.js +269 -0
  424. package/dist/lineSegment-3aa941f5.js +76 -0
  425. package/dist/loadGLTFMesh-db6645f5.js +181 -0
  426. package/dist/loadable-266f324b.js +24 -0
  427. package/dist/loader-d1ce1bc1.js +79 -0
  428. package/dist/lt_LT-26f13fd1.js +6 -0
  429. package/dist/lv_LV-4feafa92.js +18 -0
  430. package/dist/lyr3DWorker-dd48e619.js +2108 -0
  431. package/dist/mapViewDeps-226d9da3.js +3052 -0
  432. package/dist/mask-svg-30f64a7b.js +4 -0
  433. package/dist/mat3f64-03233387.js +19 -0
  434. package/dist/mat4f64-cce69db4.js +19 -0
  435. package/dist/mediaLayerUtils-ae485c27.js +35 -0
  436. package/dist/meshFeatureSet-8a2ad011.js +126 -0
  437. package/dist/meshVertexSpaceUtils-6efe3dcc.js +58 -0
  438. package/dist/multiOriginJSONSupportUtils-207ba4d4.js +6 -0
  439. package/dist/multidimensionalUtils-508a3f3f.js +290 -0
  440. package/dist/nb_NO-21543153.js +18 -0
  441. package/dist/nl_NL-7876d97f.js +7 -0
  442. package/dist/normalizeUtilsSync-1dae280b.js +181 -0
  443. package/dist/number-5aa3a81b.js +128 -0
  444. package/dist/objectIdUtils-93dae423.js +14 -0
  445. package/dist/objectResourceUtils-642ab03e.js +1455 -0
  446. package/dist/observers-f646a6a4.js +30 -0
  447. package/dist/ogcFeatureUtils-46ac1c44.js +206 -0
  448. package/dist/openCloseComponent-47eb52c6.js +37 -0
  449. package/dist/orientedBoundingBox-554ccdc6.js +447 -0
  450. package/dist/originUtils-87edf087.js +9 -0
  451. package/dist/overlay-svg-c3941b3b.js +4 -0
  452. package/dist/parser-0701286c.js +488 -0
  453. package/dist/pbf-5dd791f5.js +215 -0
  454. package/dist/pbfQueryUtils-a6ca7e23.js +422 -0
  455. package/dist/pe-wasm-6c16b121.js +887 -0
  456. package/dist/persistable-9eb0e8df.js +89 -0
  457. package/dist/perspectiveUtils-b194621d.js +42 -0
  458. package/dist/pieChart-b97433d0.js +555 -0
  459. package/dist/pl_PL-276c6dae.js +18 -0
  460. package/dist/plane-3398eec1.js +160 -0
  461. package/dist/popupUtils-c444b896.js +22 -0
  462. package/dist/popupUtils-d871563b.js +50 -0
  463. package/dist/portalItemUtils-4c4caad0.js +57 -0
  464. package/dist/portalLayers-cb07742f.js +312 -0
  465. package/dist/portalUtils-effd590f.js +7 -0
  466. package/dist/programUtils-65af7b7c.js +59 -0
  467. package/dist/project-ee9c2947.js +21 -0
  468. package/dist/projectPointToVector-7dc831a9.js +14 -0
  469. package/dist/projectVectorToVector-5163db7a.js +13 -0
  470. package/dist/pt_BR-4fae3055.js +6 -0
  471. package/dist/pt_PT-14d9efb1.js +6 -0
  472. package/dist/quantityUtils-5cd4cf90.js +33 -0
  473. package/dist/quantizationUtils-0a8f74c6.js +68 -0
  474. package/dist/quat-a508aed3.js +104 -0
  475. package/dist/quatf64-bec1af25.js +19 -0
  476. package/dist/query-b6e1fd14.js +89 -0
  477. package/dist/queryAttachments-7b39ebdc.js +39 -0
  478. package/dist/queryEngineUtils-cb8e309e.js +21 -0
  479. package/dist/queryTopFeatures-2e0e3941.js +50 -0
  480. package/dist/queryZScale-c5733d0a.js +12 -0
  481. package/dist/rasterProjectionHelper-213afa27.js +577 -0
  482. package/dist/rasterUtils-f2e44e8b.js +122 -0
  483. package/dist/rasterizingUtils-25cc0190.js +46 -0
  484. package/dist/request-e0c679b3.js +46 -0
  485. package/dist/requestImageUtils-37d79281.js +8 -0
  486. package/dist/resourceExtension-5f3f1c80.js +17 -0
  487. package/dist/resourceUtils-0d68cbc2.js +69 -0
  488. package/dist/resourceUtils-374db840.js +62 -0
  489. package/dist/resourceUtils-43ce192b.js +42 -0
  490. package/dist/ro_RO-8e733cf5.js +18 -0
  491. package/dist/ru_RU-f7bafc90.js +6 -0
  492. package/dist/saveAPIKeyUtils-1a3d4a8a.js +8 -0
  493. package/dist/saveUtils-43fdc547.js +24 -0
  494. package/dist/scaleUtils-bdf8b6cb.js +23 -0
  495. package/dist/scrim-44eb4dc0.js +114 -0
  496. package/dist/serviceCapabilitiesUtils-823612b8.js +64 -0
  497. package/dist/sizeVariableUtils-a1b694d8.js +27 -0
  498. package/dist/sk_SK-c279eea3.js +6 -0
  499. package/dist/sl_SL-e40950dd.js +6 -0
  500. package/dist/sourceUtils-01d115c6.js +71 -0
  501. package/dist/sphere-908cd9aa.js +199 -0
  502. package/dist/sr_RS-b1835dfa.js +18 -0
  503. package/dist/statsWorker-49f9befe.js +37 -0
  504. package/dist/streamLayerUtils-29324e05.js +31 -0
  505. package/dist/style.css +1 -1
  506. package/dist/styleUtils-82e8da52.js +75 -0
  507. package/dist/styleUtils-8541d60d.js +14 -0
  508. package/dist/sublayerUtils-eaac2486.js +37 -0
  509. package/dist/substitute-1f578d70.js +52 -0
  510. package/dist/sv_SE-15ca9e36.js +6 -0
  511. package/dist/symbolColorUtils-18fd6b3d.js +8 -0
  512. package/dist/symbolLayerUtils-4c58b291.js +31 -0
  513. package/dist/symbologySnappingCandidates-14d94b6b.js +221 -0
  514. package/dist/t9n-c1c2b6c8.js +349 -0
  515. package/dist/testSVGPremultipliedAlpha-159dac90.js +94 -0
  516. package/dist/th_TH-bf624a56.js +18 -0
  517. package/dist/tileUtils-3e0c8c1d.js +7 -0
  518. package/dist/timeSupport-3f529cdb.js +410 -0
  519. package/dist/tr_TR-ca5c315f.js +18 -0
  520. package/dist/triangle-8a3a2ba8.js +98 -0
  521. package/dist/types-adba9034.js +19 -0
  522. package/dist/uk_UA-4b3cb86d.js +6 -0
  523. package/dist/unitConversionUtils-f0ebaf75.js +17 -0
  524. package/dist/unitFormatUtils-555e2d94.js +40 -0
  525. package/dist/uploadAssetErrors-d1389781.js +70 -0
  526. package/dist/uploadAssets-5e85f09d.js +330 -0
  527. package/dist/utils-3a10b10c.js +34 -0
  528. package/dist/utils-505c54e9.js +91 -0
  529. package/dist/utils-5432e258.js +433 -0
  530. package/dist/utils-7a88ec6a.js +419 -0
  531. package/dist/utils-7fa9cdf9.js +2746 -0
  532. package/dist/utils-d252c575.js +73 -0
  533. package/dist/utils-f07e00b3.js +232 -0
  534. package/dist/utils-fda10b4b.js +79 -0
  535. package/dist/utils3-c34ab97c.js +75 -0
  536. package/dist/vec3-f79c600d.js +81 -0
  537. package/dist/vec3f32-304a6a9c.js +36 -0
  538. package/dist/vec42-36edeb73.js +125 -0
  539. package/dist/vec4f32-b2628ced.js +38 -0
  540. package/dist/vec4f64-043e974c.js +45 -0
  541. package/dist/versionUtils-6935648b.js +161 -0
  542. package/dist/vi_VN-ad09e708.js +18 -0
  543. package/dist/visualVariableUtils-c425461a.js +267 -0
  544. package/dist/webStyleSymbolUtils-4f42a29f.js +48 -0
  545. package/dist/webglDeps-5f18210d.js +23 -0
  546. package/dist/wfsUtils-6f7f1e3e.js +343 -0
  547. package/dist/workerHelper-9dc9a790.js +11 -0
  548. package/dist/xmlUtils-64cc47e1.js +24 -0
  549. package/dist/xyChart-e5648fee.js +3335 -0
  550. package/dist/zh_Hans-61faef57.js +14 -0
  551. package/dist/zh_Hant-87a9767b.js +14 -0
  552. package/dist/zipjs-wrapper-1bd67e07.js +6496 -0
  553. package/package.json +3 -2
@@ -0,0 +1,1244 @@
1
+ import { g as x, _ as S, h as qt, P as pe, j as jt, i as j, G as z, m as Q, B as Se, p as n, q as H, H as V, u as Kt, v as Zt, w as A, C as y, S as U, F as yt, x as Ri, y as Te, z as Z, A as Ve, D as je, E as Ke, I as He, L as st, M as _t, N as Xt, O as Yt, a as B, Q as Ii, R as Ci, T as Oi, V as Ei, X as Di, Y as Li, $ as Bi, a0 as ce, a1 as zt, a2 as Qt, a3 as rt, a4 as $t, a5 as Mt, a6 as Pt, a7 as D, a8 as Jt, a9 as ei, aa as at, ab as ki, ac as le, ad as Ft, ae as ot, af as ti, ag as Ni, ah as Ui, ai as Ye, aj as Hi, ak as Wi, al as Gi, am as qi, an as ji, ao as ii, ap as si, aq as ri, ar as ai, as as oi, at as ni, au as bt, av as li, aw as Ki, ax as Tt, ay as nt, az as ui, aA as lt, aB as Qe, aC as Zi, aD as Xi, aE as Yi, aF as Qi, aG as Ji, aH as es, aI as ts, aJ as is, aK as ss, aL as rs, aM as as, aN as os, aO as ns, aP as re, aQ as he, aR as ae, aS as $e, aT as ls, K as us, d as cs } from "./UpdateTracking2D-e9adad8f.js";
2
+ import { t as ps } from "./utils-7a88ec6a.js";
3
+ import { a as N, K as At, L as ds, d as Rt, u as hs, i as fs } from "./definitions-a00a3a6c.js";
4
+ import { E as xe, S as de, f as ut, m as F, c as E, y as R, M as L, d as ms, e as W, w as Ze, L as Oe } from "./Container-ac97765a.js";
5
+ import { e as c, k2 as I, hN as ys, W as De, Q as It, s as ci, gY as bs, eV as Ct, iF as vt, cs as we, cw as vs, B as gs, j7 as xs } from "./index-01c737ed.js";
6
+ import { C as X, F as Ot, L as _e, D as ct, B as pi, E as ws, U as We, _ as pt, G as fe, P as Et, O as Ss, I as Je } from "./enums-2c166c09.js";
7
+ import { h as Dt } from "./BufferObject-cbd0168e.js";
8
+ import { o as Vs } from "./VertexArrayObject-07998745.js";
9
+ import { t as _s } from "./VertexElementDescriptor-d7c718c2.js";
10
+ import { a as di } from "./LabelMetric-e2728bbf.js";
11
+ import { s as zs, i as hi, x as fi } from "./Program-ba2f18b2.js";
12
+ import { e as Ge, m as mi } from "./Texture-22a8cca5.js";
13
+ import { o as $s } from "./constants-5bd557fe.js";
14
+ import { c as Lt } from "./WGLContainer-3d159b63.js";
15
+ import { m as Ms } from "./lengthUtils-695e744c.js";
16
+ let k = class {
17
+ constructor(e) {
18
+ this.registryName = e, this.postProcessingEnabled = !1, this.overrideStencilRef = null, this.drawPhase = xe.MAP | xe.HITTEST | xe.HIGHLIGHT | xe.DEBUG, this.symbologyPlane = de.FILL;
19
+ }
20
+ startup() {
21
+ }
22
+ shutdown(e) {
23
+ }
24
+ postProcess(e, t) {
25
+ }
26
+ }, yi = class extends qt {
27
+ };
28
+ c([x(0, y)], yi.prototype, "pos", void 0);
29
+ let Ps = class extends Te {
30
+ }, bi = class extends pe {
31
+ };
32
+ c([S(n)], bi.prototype, "dotSize", void 0);
33
+ let Le = class extends pe {
34
+ };
35
+ c([S(U)], Le.prototype, "locations", void 0), c([S(n)], Le.prototype, "pixelRatio", void 0), c([S(n)], Le.prototype, "tileZoomFactor", void 0);
36
+ const Fs = 1e-6;
37
+ class ye extends jt {
38
+ vertex(e) {
39
+ const t = new j(1, 0, 0, 0, -1, 0, 0, 1, 1).multiply(new z(e.pos.xy.divide(N), 1)), i = Q(this.draw.locations, t.xy), r = Se(this.instance.dotSize.divide(2), new n(1));
40
+ let a = new n(0);
41
+ a = a.add(H(i.a, new n(Fs)).multiply(2));
42
+ let o = r.add(this.instance.dotSize);
43
+ const l = this.view.displayViewScreenMat3.multiply(new z(e.pos.add(0.5), 1)), u = new V(l.xy, a, 1), p = this.instance.dotSize.divide(o), d = new n(-1).divide(r.divide(o));
44
+ return o = o.multiply(this.draw.pixelRatio.multiply(this.draw.tileZoomFactor)), { glPosition: u, glPointSize: o, color: i, ratio: p, invEdgeRatio: d };
45
+ }
46
+ fragment(e) {
47
+ const t = Kt(e.glPointCoord.subtract(0.5)).multiply(2), i = Zt(new n(0), new n(1), e.invEdgeRatio.multiply(t.subtract(e.ratio)).add(1)), r = new yt();
48
+ return r.glFragColor = e.color.multiply(i), r;
49
+ }
50
+ }
51
+ c([S(bi)], ye.prototype, "instance", void 0), c([S(Le)], ye.prototype, "draw", void 0), c([S(Ri)], ye.prototype, "view", void 0), c([I(0, A(yi))], ye.prototype, "vertex", null), c([I(0, A(Ps))], ye.prototype, "fragment", null);
52
+ class vi extends je {
53
+ }
54
+ c([x(3, n)], vi.prototype, "inverseArea", void 0);
55
+ let Be = class extends pe {
56
+ };
57
+ c([S(Z.ofType(V, 2))], Be.prototype, "isActive", void 0), c([S(Z.ofType(V, 8))], Be.prototype, "colors", void 0), c([S(n)], Be.prototype, "dotValue", void 0);
58
+ let be = class extends pe {
59
+ };
60
+ c([S(U)], be.prototype, "dotTexture0", void 0), c([S(U)], be.prototype, "dotTexture1", void 0), c([S(n)], be.prototype, "tileZoomFactor", void 0), c([S(n)], be.prototype, "pixelRatio", void 0), c([S(n)], be.prototype, "tileDotsOverArea", void 0);
61
+ let ve = class extends Ke {
62
+ _dotThreshold(e, t, i) {
63
+ return e.divide(t).divide(i);
64
+ }
65
+ vertex(e) {
66
+ const t = new j(2 / N, 0, 0, 0, -2 / N, 0, -1, 1, 1).multiply(new z(e.pos, 1)), i = this.clip(e.id), r = new V(t.xy, i, 1), a = this.storage.getVVData(e.id).multiply(this.instance.isActive.get(0)).multiply(e.inverseArea), o = this.storage.getDataDrivenData0(e.id).multiply(this.instance.isActive.get(1)).multiply(e.inverseArea), l = this.draw.tileZoomFactor.multiply(N).divide(this.draw.pixelRatio), u = this._dotThreshold(a, this.instance.dotValue, this.draw.tileDotsOverArea), p = this._dotThreshold(o, this.instance.dotValue, this.draw.tileDotsOverArea), d = e.pos.add(0.5).divide(l);
67
+ return { glPosition: r, color: new V(0, 0, 0, 0), textureCoords: d, thresholds0: u, thresholds1: p };
68
+ }
69
+ fragment(e) {
70
+ const t = new yt(), i = Q(this.draw.dotTexture0, e.textureCoords), r = Q(this.draw.dotTexture1, e.textureCoords), a = e.thresholds0.subtract(i), o = e.thresholds1.subtract(r);
71
+ let l;
72
+ const u = He.fromColumns(this.instance.colors[0], this.instance.colors[1], this.instance.colors[2], this.instance.colors[3]), p = He.fromColumns(this.instance.colors[4], this.instance.colors[5], this.instance.colors[6], this.instance.colors[7]);
73
+ if (this.blending) {
74
+ const d = H(new n(0), a), h = H(new n(0), o), f = st(d, a).add(st(h, o)), m = H(f, new n(0)), v = new n(1).subtract(m), b = f.add(m), g = a.multiply(d).divide(b), w = o.multiply(h).divide(b), _ = u.multiply(g).add(p.multiply(w));
75
+ l = v.multiply(_);
76
+ } else {
77
+ const d = Se(_t(a), _t(o)), h = H(d, new n(0)), f = new n(1).subtract(h), m = H(d, a), v = H(d, o), b = u.multiply(m).add(p.multiply(v));
78
+ l = f.multiply(b);
79
+ }
80
+ return t.glFragColor = l, t;
81
+ }
82
+ hittest(e) {
83
+ return Xt(this.hittestRequest);
84
+ }
85
+ };
86
+ c([Ve], ve.prototype, "blending", void 0), c([S(Be)], ve.prototype, "instance", void 0), c([S(be)], ve.prototype, "draw", void 0), c([I(0, A(vi))], ve.prototype, "vertex", null), c([I(0, A(Te))], ve.prototype, "fragment", null);
87
+ const dt = { [X.BYTE]: 1, [X.UNSIGNED_BYTE]: 1, [X.SHORT]: 2, [X.UNSIGNED_SHORT]: 2, [X.INT]: 4, [X.UNSIGNED_INT]: 4, [X.FLOAT]: 4 };
88
+ let Ts = class {
89
+ constructor(e, t) {
90
+ this._boundPart = null;
91
+ const i = [];
92
+ for (const a of t.vertex) {
93
+ const o = Dt.createVertex(e, Ot.STATIC_DRAW, a);
94
+ i.push(o);
95
+ }
96
+ const r = [];
97
+ for (const a of t.index || []) {
98
+ const o = Dt.createIndex(e, Ot.STATIC_DRAW, a);
99
+ r.push(o);
100
+ }
101
+ this.groups = [];
102
+ for (const a of t.groups) {
103
+ let o;
104
+ if (a.index != null) {
105
+ if (!t.index)
106
+ throw new Error("No index data.");
107
+ const { BYTES_PER_ELEMENT: f } = t.index[a.index];
108
+ f === 2 ? o = X.UNSIGNED_SHORT : f === 4 && (o = X.UNSIGNED_INT);
109
+ }
110
+ const l = a.index != null ? r[a.index] : null, u = /* @__PURE__ */ new Map(), p = {}, d = {};
111
+ for (const f of a.attributes) {
112
+ const { name: m, count: v, type: b, offset: g, normalized: w, divisor: _, stride: P, vertex: T, location: C } = f, $ = `vertex-buffer-${T}`;
113
+ let K = p[$];
114
+ K || (K = p[$] = []);
115
+ const ue = new _s(m, v, b, g, P, w, _);
116
+ K.push(ue), u.set(m, C), d[$] = i[T];
117
+ }
118
+ const h = new Vs(e, u, p, d, l);
119
+ this.groups.push({ ...a, vertexArray: h, locations: u, layout: p, indexing: o });
120
+ }
121
+ this.parts = t.parts;
122
+ }
123
+ bind(e, t) {
124
+ this._boundPart = t;
125
+ const { group: i } = this.parts[this._boundPart], { vertexArray: r } = this.groups[i];
126
+ e.bindVAO(r);
127
+ }
128
+ draw(e) {
129
+ if (this._boundPart == null)
130
+ throw new Error("Mesh.bind() has not been called.");
131
+ const { start: t, count: i } = this.parts[this._boundPart], { group: r } = this.parts[this._boundPart], { indexing: a, primitive: o } = this.groups[r];
132
+ a ? e.drawElements(o, i, a, t * dt[a]) : e.drawArrays(o, t, i);
133
+ }
134
+ unbind(e) {
135
+ this._boundPart = null, e.bindVAO(null);
136
+ }
137
+ destroy() {
138
+ for (const { vertexArray: e } of this.groups)
139
+ e.dispose();
140
+ }
141
+ }, As = class gi extends Ts {
142
+ static create(e, t) {
143
+ const i = [];
144
+ let { stride: r, hash: a } = t.layout;
145
+ if (r == null) {
146
+ r = 0;
147
+ for (const { count: f, type: m, offset: v } of t.layout.attributes) {
148
+ if (v != null)
149
+ throw new Error("Stride cannot be computed automatically when attribute offsets are supplied explicitly.");
150
+ r += f * dt[m];
151
+ }
152
+ }
153
+ let o = 0, l = 0;
154
+ for (const { count: f, name: m, offset: v, type: b, normalized: g } of t.layout.attributes) {
155
+ v != null && (l = v);
156
+ const w = { name: m, location: o, vertex: 0, count: f, type: b, offset: l, stride: r, divisor: 0, normalized: g != null && g };
157
+ i.push(w), o++, l += f * dt[b];
158
+ }
159
+ const u = { attributes: i, primitive: t.primitive };
160
+ t.index != null && (u.index = 0);
161
+ let { count: p } = t;
162
+ if (p == null && (p = t.index ? t.index.length : t.vertex.byteLength / r, Math.floor(p) !== p))
163
+ throw new Error(`The byte length of vertex data must be an exact multiple of the stride, which is ${r}.`);
164
+ const d = { start: 0, count: p, group: 0, primitive: t.primitive }, h = { vertex: [t.vertex], parts: [d], groups: [u] };
165
+ return t.index != null && (h.index = [t.index]), a == null && (a = di(i)), new gi(e, h, { hash: a, attributes: i, stride: r });
166
+ }
167
+ constructor(e, t, i) {
168
+ super(e, t), this.layout = i;
169
+ }
170
+ bind(e, t = 0) {
171
+ super.bind(e, t);
172
+ }
173
+ }, Rs = class {
174
+ constructor() {
175
+ this._dotTextureSize = 0, this._dotTextures = null, this._dotMesh = null;
176
+ }
177
+ destroy() {
178
+ this._disposeTextures(), this._dotFBO && this._dotFBO.dispose(), this._dotMesh && this._dotMesh.destroy();
179
+ }
180
+ getFBO(e) {
181
+ if (this._dotFBO == null) {
182
+ const t = N, i = N, r = new Ge(t, i);
183
+ r.samplingMode = _e.NEAREST, r.wrapMode = ct.CLAMP_TO_EDGE;
184
+ const a = new zs(e, new hi(pi.DEPTH_STENCIL, t, i));
185
+ this._dotFBO = new fi(e, r, a);
186
+ }
187
+ return this._dotFBO;
188
+ }
189
+ getDotDensityMesh(e) {
190
+ if (this._dotMesh == null) {
191
+ const t = N, i = t * t, r = 2, a = new Int16Array(i * r);
192
+ for (let u = 0; u < t; u++)
193
+ for (let p = 0; p < t; p++)
194
+ a[r * (p + u * t)] = p, a[r * (p + u * t) + 1] = u;
195
+ const o = [{ count: 2, type: X.UNSIGNED_SHORT, name: "a_position", offset: 0 }], l = { hash: di(o), attributes: o, stride: 4 };
196
+ this._dotMesh = As.create(e, { primitive: ws.POINTS, vertex: a, count: i, layout: l });
197
+ }
198
+ return this._dotMesh;
199
+ }
200
+ getDotDensityTextures(e, t, i) {
201
+ if (this._dotTextureSize === t && this._seed === i || (this._disposeTextures(), this._dotTextureSize = t, this._seed = i), this._dotTextures === null) {
202
+ const r = new ys(i);
203
+ this._dotTextures = [this._allocDotDensityTexture(e, t, r), this._allocDotDensityTexture(e, t, r)];
204
+ }
205
+ return this._dotTextures;
206
+ }
207
+ _disposeTextures() {
208
+ if (this._dotTextures) {
209
+ for (let e = 0; e < this._dotTextures.length; e++)
210
+ this._dotTextures[e].dispose();
211
+ this._dotTextures = null;
212
+ }
213
+ }
214
+ _allocDotDensityTexture(e, t, i) {
215
+ const r = new Float32Array(t * t * 4);
216
+ for (let o = 0; o < r.length; o++)
217
+ r[o] = i.getFloat();
218
+ const a = new Ge();
219
+ return a.dataType = We.FLOAT, a.samplingMode = _e.NEAREST, a.width = t, a.height = t, new mi(e, a, r);
220
+ }
221
+ }, Is = class extends k {
222
+ constructor() {
223
+ super(...arguments), this.shaders = { polygon: new ve(), point: new ye(), fill: new Yt() }, this.meshWriter = B.DotDensityMeshWriter, this._resources = /* @__PURE__ */ new Map();
224
+ }
225
+ render(e, t) {
226
+ ut(e) || F(e) ? this._renderPolygons(e, t) : this._renderDotDensity(e, t);
227
+ }
228
+ _renderPolygons(e, t) {
229
+ const { context: i, painter: r } = e;
230
+ r.setShader({ shader: this.shaders.fill, uniforms: { ...E(e, t.target), visualVariableColor: null, visualVariableOpacity: null }, defines: { ...R(e) }, optionalAttributes: { zoomRange: !1 }, useComputeBuffer: F(e) }), r.setPipelineState(L(e)), r.submitDraw(i, t);
231
+ }
232
+ _renderDotDensity(e, t) {
233
+ const { context: i, painter: r, requiredLevel: a } = e, o = t.instance.getInput(), l = this._getOrCreateResourcesRecord(i), u = l.getDotDensityTextures(i, N, o.seed), p = 1 / 2 ** (a - t.target.key.level), d = N, h = d * window.devicePixelRatio * d * window.devicePixelRatio, f = 1 / p * (1 / p), m = o.dotScale ? e.state.scale / o.dotScale : 1, v = o.dotValue * m * f;
234
+ r.setShader({ shader: this.shaders.polygon, uniforms: { ...E(e, t.target), instance: { isActive: o.isActive, colors: o.colors, dotValue: Math.max(1, v) }, draw: { dotTexture0: { unit: At, texture: u[0] }, dotTexture1: { unit: ds, texture: u[1] }, tileZoomFactor: p, pixelRatio: window.devicePixelRatio, tileDotsOverArea: h / (N * window.devicePixelRatio * N * window.devicePixelRatio) } }, defines: { ...R(e), blending: o.blending }, optionalAttributes: {}, useComputeBuffer: !1 }), r.setPipelineState(L(e));
235
+ const b = i.getViewport();
236
+ i.setViewport(0, 0, N, N);
237
+ const g = i.getBoundFramebufferObject(), w = l.getFBO(i);
238
+ i.bindFramebuffer(w), i.setClearColor(0, 0, 0, 0), r.setPipelineState({ color: { write: [!0, !0, !0, !0], blendMode: "composite" }, depth: !1, stencil: !1 }), r.updatePipelineState(i), i.clear(pt.COLOR_BUFFER_BIT), r.submitDraw(i, t), i.bindFramebuffer(g), i.setViewport(b.x, b.y, b.width, b.height);
239
+ const _ = l.getFBO(i).colorTexture;
240
+ r.setShader({ shader: this.shaders.point, uniforms: { view: ms(e, t.target), instance: { dotSize: o.dotSize }, draw: { locations: { unit: At, texture: _ }, tileZoomFactor: 1, pixelRatio: window.devicePixelRatio } }, defines: { ...R(e) }, optionalAttributes: {}, useComputeBuffer: !1 }), r.setPipelineState({ color: { write: [!0, !0, !0, !0], blendMode: "composite" }, depth: !1, stencil: !1 }), r.submitDrawMesh(i, l.getDotDensityMesh(i));
241
+ }
242
+ shutdown(e) {
243
+ var t;
244
+ super.shutdown(e), (t = this._resources.get(e)) == null || t.destroy(), this._resources.delete(e);
245
+ }
246
+ _getOrCreateResourcesRecord(e) {
247
+ let t = this._resources.get(e);
248
+ return t == null && (t = new Rs(), this._resources.set(e, t)), t;
249
+ }
250
+ }, Cs = class extends k {
251
+ constructor() {
252
+ super(...arguments), this.meshWriter = B.ComplexFillMeshWriter, this.shaders = { geometry: new Ii() };
253
+ }
254
+ render(e, t) {
255
+ const { context: i, painter: r } = e;
256
+ r.setShader({ shader: this.shaders.geometry, uniforms: { ...W(e, t.target, t.instance.getInput().geometry), ...E(e, t.target), mosaicInfo: r.textureManager.getMosaicInfo(i, t.textureKey), localTileOffset: Ze(t.target) }, defines: { ...R(e) }, optionalAttributes: t.instance.optionalAttributes, useComputeBuffer: F(e) }), r.setPipelineState(L(e)), r.submitDraw(i, t);
257
+ }
258
+ };
259
+ function Ae(s) {
260
+ const e = 1 / s;
261
+ return { antialiasing: e, blur: 0 + e };
262
+ }
263
+ let Os = class extends k {
264
+ constructor() {
265
+ super(...arguments), this.meshWriter = B.ComplexOutlineFillMeshWriter, this.shaders = { geometry: new Ci() };
266
+ }
267
+ render(e, t) {
268
+ const { context: i, painter: r, pixelRatio: a } = e;
269
+ r.setShader({ shader: this.shaders.geometry, uniforms: { ...W(e, t.target, t.instance.getInput().geometry), ...E(e, t.target), antialiasingControls: Ae(a), mosaicInfo: r.textureManager.getMosaicInfo(i, t.textureKey), localTileOffset: Ze(t.target) }, defines: { ...R(e) }, optionalAttributes: t.instance.optionalAttributes, useComputeBuffer: F(e) }), r.setPipelineState(L(e)), r.submitDraw(i, t);
270
+ }
271
+ }, Es = class extends k {
272
+ constructor() {
273
+ super(...arguments), this.meshWriter = B.FillMeshWriter, this.shaders = { geometry: new Yt() };
274
+ }
275
+ render(e, t) {
276
+ const { context: i, painter: r } = e;
277
+ r.setShader({ shader: this.shaders.geometry, uniforms: { ...W(e, t.target, t.instance.getInput().geometry), ...E(e, t.target) }, defines: R(e), optionalAttributes: t.instance.optionalAttributes, useComputeBuffer: F(e) }), r.setPipelineState(L(e)), r.submitDraw(i, t);
278
+ }
279
+ }, Ds = class extends k {
280
+ constructor() {
281
+ super(...arguments), this.meshWriter = B.OutlineFillMeshWriter, this.shaders = { geometry: new Oi() };
282
+ }
283
+ render(e, t) {
284
+ const { context: i, painter: r, pixelRatio: a } = e;
285
+ r.setShader({ shader: this.shaders.geometry, uniforms: { ...W(e, t.target, t.instance.getInput().geometry), ...E(e, t.target), antialiasingControls: Ae(a) }, defines: { ...R(e) }, optionalAttributes: t.instance.optionalAttributes, useComputeBuffer: F(e) }), r.setPipelineState(L(e)), r.submitDraw(i, t);
286
+ }
287
+ }, Ls = class extends k {
288
+ constructor() {
289
+ super(...arguments), this.meshWriter = B.PatternFillMeshWriter, this.shaders = { geometry: new Ei() };
290
+ }
291
+ render(e, t) {
292
+ const { context: i, painter: r } = e;
293
+ r.setShader({ shader: this.shaders.geometry, uniforms: { ...W(e, t.target, t.instance.getInput().geometry), ...E(e, t.target), mosaicInfo: r.textureManager.getMosaicInfo(i, t.textureKey), localTileOffset: Ze(t.target) }, defines: { ...R(e) }, optionalAttributes: t.instance.optionalAttributes, useComputeBuffer: F(e) }), r.setPipelineState(L(e)), r.submitDraw(i, t);
294
+ }
295
+ }, Bs = class extends k {
296
+ constructor() {
297
+ super(...arguments), this.meshWriter = B.PatternOutlineFillMeshWriter, this.shaders = { geometry: new Di() };
298
+ }
299
+ render(e, t) {
300
+ const { context: i, painter: r, pixelRatio: a } = e;
301
+ r.setShader({ shader: this.shaders.geometry, uniforms: { ...W(e, t.target, t.instance.getInput().geometry), ...E(e, t.target), antialiasingControls: Ae(a), mosaicInfo: r.textureManager.getMosaicInfo(i, t.textureKey), localTileOffset: Ze(t.target) }, defines: { ...R(e) }, optionalAttributes: t.instance.optionalAttributes, useComputeBuffer: F(e) }), r.setPipelineState(L(e)), r.submitDraw(i, t);
302
+ }
303
+ }, Bt = class {
304
+ constructor(e, t, i, r) {
305
+ this.dataType = e, this.samplingMode = t, this.pixelFormat = i, this.internalFormat = r;
306
+ }
307
+ };
308
+ function ks(s, e) {
309
+ const { textureFloat: t, colorBufferFloat: i } = s.capabilities, r = t == null ? void 0 : t.textureFloatLinear, a = i == null ? void 0 : i.textureFloat, o = i == null ? void 0 : i.textureHalfFloat, l = i == null ? void 0 : i.floatBlend, u = s.driverTest.floatBufferBlend.result;
310
+ if (!a && !o)
311
+ throw new De("heatmap:missing-color-buffer-float", "HeatmapRenderer requires the WebGL extension EXT_color_buffer_float or EXT_color_buffer_half_float or WEBGL_color_buffer_float.");
312
+ if (!(l && u || o))
313
+ throw new De("heatmap:missing-float-blend", "HeatmapRenderer requires the WebGL extension EXT_float_blend or EXT_color_buffer_half_float." + (u ? "" : " This device claims support for EXT_float_blend, but does not actually support it."));
314
+ const p = a && l && u, d = o, h = r, f = !!(i != null && i.R32F), m = !!(i != null && i.R16F);
315
+ if (p && h)
316
+ return h || e.warnOnce("Missing WebGL extension OES_texture_float_linear. Heatmap quality may be reduced."), new Bt(We.FLOAT, h ? _e.LINEAR : _e.NEAREST, f ? fe.RED : fe.RGBA, f ? Et.R32F : fe.RGBA);
317
+ if (d)
318
+ return new Bt(We.HALF_FLOAT, _e.LINEAR, m ? fe.RED : fe.RGBA, m ? Et.R16F : fe.RGBA);
319
+ throw new De("heatmap:missing-hardware-support", "HeatmapRenderer requires WebGL extensions that allow it to render and blend to float or half float textures.");
320
+ }
321
+ const Ns = () => ci.getLogger("esri.views.2d.engine.webgl.shaderGraph.techniques.heatmap.HeatmapResources");
322
+ let Us = class {
323
+ destroy() {
324
+ this._accumulateFramebuffer = It(this._accumulateFramebuffer), this._resolveGradientTexture = It(this._resolveGradientTexture), this._prevGradientHash = null, this._qualityProfile = null;
325
+ }
326
+ get initialized() {
327
+ return this._accumulateFramebuffer != null && this._resolveGradientTexture != null;
328
+ }
329
+ get accumulateFramebuffer() {
330
+ return this._accumulateFramebuffer;
331
+ }
332
+ get resolveGradientTexture() {
333
+ return this._resolveGradientTexture;
334
+ }
335
+ loadQualityProfile(e) {
336
+ if (this._qualityProfile == null) {
337
+ const t = ks(e, Ns());
338
+ this._qualityProfile = { ...t, defines: { usesHalfFloatPrecision: t.dataType !== We.FLOAT } };
339
+ }
340
+ return this._qualityProfile;
341
+ }
342
+ ensureAccumulateFBO(e, t, i) {
343
+ if (this._accumulateFramebuffer == null) {
344
+ const { dataType: r, samplingMode: a, pixelFormat: o, internalFormat: l } = this.loadQualityProfile(e), u = new Ge(t, i);
345
+ u.pixelFormat = o, u.internalFormat = l, u.dataType = r, u.samplingMode = a, u.wrapMode = ct.CLAMP_TO_EDGE;
346
+ const p = new hi(pi.DEPTH_STENCIL, t, i);
347
+ this._accumulateFramebuffer = new fi(e, u, p);
348
+ } else {
349
+ const { width: r, height: a } = this._accumulateFramebuffer;
350
+ r === t && a === i || this._accumulateFramebuffer.resize(t, i);
351
+ }
352
+ return this._accumulateFramebuffer;
353
+ }
354
+ ensureResolveGradientTexture(e, t, i) {
355
+ if (this._resolveGradientTexture == null) {
356
+ const r = new Ge();
357
+ r.wrapMode = ct.CLAMP_TO_EDGE, this._resolveGradientTexture = new mi(e, r);
358
+ } else
359
+ this._prevGradientHash !== t && (this._resolveGradientTexture.resize(i.length / 4, 1), this._resolveGradientTexture.setData(i), this._prevGradientHash = t);
360
+ return this._resolveGradientTexture;
361
+ }
362
+ };
363
+ function xi(s) {
364
+ return s ? 0.25 : 1;
365
+ }
366
+ let wi = class extends je {
367
+ };
368
+ c([x(5, y)], wi.prototype, "offset", void 0);
369
+ let Hs = class extends Te {
370
+ }, ht = class extends pe {
371
+ };
372
+ c([S(n)], ht.prototype, "radius", void 0), c([S(n)], ht.prototype, "isFieldActive", void 0);
373
+ let Pe = class extends Ke {
374
+ constructor() {
375
+ super(...arguments), this.usesHalfFloatPrecision = !1;
376
+ }
377
+ vertex(e) {
378
+ const { radius: t, isFieldActive: i } = this.kernelControls, r = e.offset, a = i.multiply(this.storage.getVVData(e.id).x).add(new n(1).subtract(i)), o = this.view.displayViewScreenMat3.multiply(new z(e.pos, 1)).add(this.view.displayViewMat3.multiply(new z(r, 0)).multiply(t)), l = this.clip(e.id);
379
+ return { glPosition: new V(o.xy, l, 1), offset: r, fieldValue: a, color: new V(0), ...this.maybeRunHittest(e, {}, null) };
380
+ }
381
+ fragment(e) {
382
+ const { offset: t, fieldValue: i } = e, r = Kt(t), a = H(r, new n(1)), o = new n(1).subtract(r.multiply(r)), l = o.multiply(o), u = a.multiply(l).multiply(i).multiply(new n(xi(this.usesHalfFloatPrecision)));
383
+ return this.getFragmentOutput(new V(u), e);
384
+ }
385
+ hittest(e) {
386
+ const { viewMat3: t, tileMat3: i } = this.view, r = t.multiply(i).multiply(new z(e.pos, 1));
387
+ return Li(r.xy, this.kernelControls.radius, this.hittestRequest.position);
388
+ }
389
+ };
390
+ c([Ve], Pe.prototype, "usesHalfFloatPrecision", void 0), c([S(ht)], Pe.prototype, "kernelControls", void 0), c([I(0, A(wi))], Pe.prototype, "vertex", null), c([I(0, A(Hs))], Pe.prototype, "fragment", null);
391
+ let Si = class extends qt {
392
+ };
393
+ c([x(0, y)], Si.prototype, "pos", void 0);
394
+ let Ws = class extends Bi {
395
+ }, ke = class extends pe {
396
+ };
397
+ c([S(U)], ke.prototype, "texture", void 0), c([S(y)], ke.prototype, "minAndInvRange", void 0), c([S(n)], ke.prototype, "normalization", void 0);
398
+ let Vi = class extends pe {
399
+ };
400
+ c([S(U)], Vi.prototype, "texture", void 0);
401
+ let ge = class extends jt {
402
+ constructor() {
403
+ super(...arguments), this.usesHalfFloatPrecision = !1;
404
+ }
405
+ vertex(e) {
406
+ return { glPosition: new V(e.pos.multiply(2).subtract(1), 1, 1), uv: e.pos };
407
+ }
408
+ fragment(e) {
409
+ const { accumulatedDensity: t, gradient: i } = this;
410
+ let r = Q(t.texture, e.uv).r.multiply(new n(xi(this.usesHalfFloatPrecision)));
411
+ r = r.multiply(t.normalization), r = r.subtract(t.minAndInvRange.x).multiply(t.minAndInvRange.y);
412
+ const a = Q(i.texture, new y(r, 0.5)), o = new yt();
413
+ return o.glFragColor = new V(a.rgb.multiply(a.a), a.a), o;
414
+ }
415
+ };
416
+ c([Ve], ge.prototype, "usesHalfFloatPrecision", void 0), c([S(ke)], ge.prototype, "accumulatedDensity", void 0), c([S(Vi)], ge.prototype, "gradient", void 0), c([I(0, A(Si))], ge.prototype, "vertex", null), c([I(0, A(Ws))], ge.prototype, "fragment", null);
417
+ let Gs = class extends k {
418
+ constructor() {
419
+ super(...arguments), this.meshWriter = B.HeatmapMeshWriter, this.shaders = { accumulate: new Pe(), resolve: new ge() }, this.postProcessingEnabled = !0, this._isBound = !1, this._resources = /* @__PURE__ */ new Map(), this.overrideStencilRef = _i;
420
+ }
421
+ shutdown(e) {
422
+ var t;
423
+ super.shutdown(e), (t = this._resources.get(e)) == null || t.destroy(), this._resources.delete(e), this._prevFBO = null, this._unbind();
424
+ }
425
+ render(e, t) {
426
+ const { context: i, painter: r, state: a } = e, o = t.instance.getInput(), { isFieldActive: l } = o, u = this._getOrCreateResourcesRecord(i), p = u.loadQualityProfile(i);
427
+ if (ut(e))
428
+ return;
429
+ F(e) || this._bind(e, u, o), r.setShader({ shader: this.shaders.accumulate, uniforms: { ...E(e, t.target), kernelControls: { radius: kt(o, a), isFieldActive: l ? 1 : 0 } }, defines: { ...R(e), ...p.defines }, optionalAttributes: t.instance.optionalAttributes, useComputeBuffer: F(e) });
430
+ const d = F(e) ? js : zi;
431
+ r.setPipelineState(d), r.submitDraw(i, t);
432
+ }
433
+ postProcess(e, t) {
434
+ if (F(e) || ut(e))
435
+ return;
436
+ const { context: i, painter: r } = e, a = this._resources.get(i);
437
+ if (this._prevFBO == null || this._prevViewport == null || !(a != null && a.initialized))
438
+ return;
439
+ const { defines: o } = a.loadQualityProfile(i), { minDensity: l, maxDensity: u, radius: p } = t.getInput(), d = 8, h = 9, f = a.accumulateFramebuffer, m = a.resolveGradientTexture;
440
+ r.setShader({ shader: this.shaders.resolve, uniforms: { accumulatedDensity: { texture: { unit: d, texture: f.colorTexture }, minAndInvRange: [l, 1 / (u - l)], normalization: 3 / (p * p * Math.PI) }, gradient: { texture: { unit: h, texture: m } } }, defines: o, optionalAttributes: {}, useComputeBuffer: !1 }), i.bindFramebuffer(this._prevFBO), i.setViewport(0, 0, this._prevViewport.width, this._prevViewport.height), i.bindTexture(f.colorTexture, d), i.bindTexture(m, h), r.setPipelineState(Ks), r.submitDrawQuad(i), this._unbind();
441
+ }
442
+ _getOrCreateResourcesRecord(e) {
443
+ let t = this._resources.get(e);
444
+ return t == null && (t = new Us(), this._resources.set(e, t)), t;
445
+ }
446
+ _unbind() {
447
+ this._prevFBO = null, this._prevViewport = null, this._isBound = !1;
448
+ }
449
+ _bind(e, t, i) {
450
+ if (this._isBound)
451
+ return;
452
+ const { context: r, state: a, pixelRatio: o } = e, l = r.getBoundFramebufferObject(), u = r.getViewport();
453
+ this._prevFBO = l, this._prevViewport = u;
454
+ const { gradient: p, gradientHash: d } = i;
455
+ t.ensureResolveGradientTexture(r, d, p);
456
+ const { width: h, height: f } = u, m = qs(kt(i, a), o), v = h * m, b = f * m, g = t.ensureAccumulateFBO(r, v, b);
457
+ r.blitFramebuffer(l, g, 0, 0, l.width, l.height, 0, 0, g.width, g.height, pt.STENCIL_BUFFER_BIT, _e.NEAREST), r.bindFramebuffer(g), r.setViewport(0, 0, g.width, g.height), r.setColorMask(!0, !0, !0, !0), r.setClearColor(0, 0, 0, 0), r.clear(pt.COLOR_BUFFER_BIT), this._isBound = !0;
458
+ }
459
+ };
460
+ function qs(s, e) {
461
+ const t = e > 1.5 ? 0.25 : 0.5;
462
+ return s < 1 / (2 * t) ? 1 : t;
463
+ }
464
+ function _i(s) {
465
+ return s.key.level + 1;
466
+ }
467
+ const zi = { color: { write: [!0, !0, !0, !0], blendMode: "additive" }, depth: !1, stencil: { write: !1, test: { ref: _i, compare: Ss.GEQUAL, mask: 255, op: { fail: Je.KEEP, zFail: Je.KEEP, zPass: Je.REPLACE } } } }, js = { ...zi, stencil: !1 }, Ks = { color: { write: [!0, !0, !0, !0], blendMode: "composite" }, depth: !1, stencil: !1 };
468
+ function kt(s, e) {
469
+ const { referenceScale: t, radius: i } = s;
470
+ return i * (t !== 0 ? t / e.scale : 1);
471
+ }
472
+ let gt = class extends pe {
473
+ getVVRotationMat4(e) {
474
+ return ce(zt(e), He.identity(), () => {
475
+ const t = this._getNormalizedAngle(e).multiply($t), i = Mt(t), r = Pt(t);
476
+ return new He(r, i, 0, 0, i.multiply(new n(-1)), r, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
477
+ });
478
+ }
479
+ getVVRotationMat3(e) {
480
+ return ce(zt(e), j.identity(), () => {
481
+ const t = this._getNormalizedAngle(e).multiply($t), i = Mt(t), r = Pt(t);
482
+ return new j(r, i, 0, i.multiply(new n(-1)), r, 0, 0, 0, 1);
483
+ });
484
+ }
485
+ _getNormalizedAngle(e) {
486
+ const t = Qt(this.rotationType, new n(rt.Arithmatic));
487
+ return ce(t, new n(90).subtract(e), e);
488
+ }
489
+ };
490
+ c([S(n)], gt.prototype, "rotationType", void 0);
491
+ const Zs = 360 / 254;
492
+ class G extends je {
493
+ }
494
+ c([x(3, V)], G.prototype, "color", void 0), c([x(4, y)], G.prototype, "offset", void 0), c([x(5, y)], G.prototype, "textureUV", void 0), c([x(6, n)], G.prototype, "fontSize", void 0), c([x(7, n)], G.prototype, "referenceSize", void 0), c([x(8, n)], G.prototype, "haloFontSize", void 0), c([x(9, V)], G.prototype, "haloColor", void 0), c([x(10, y)], G.prototype, "zoomRange", void 0), c([x(11, n)], G.prototype, "clipAngle", void 0), c([x(12, V)], G.prototype, "referenceSymbol", void 0);
495
+ let ft = class extends Jt {
496
+ };
497
+ c([x(13, y)], ft.prototype, "offsetNextVertex1", void 0), c([x(14, y)], ft.prototype, "offsetNextVertex2", void 0);
498
+ class Xs extends Te {
499
+ }
500
+ class O extends Ke {
501
+ constructor() {
502
+ super(...arguments), this.computeAttributes = { offset: ["offsetNextVertex1", "offsetNextVertex2"] }, this.isHaloPass = !1, this.isBackgroundPass = !1, this.isLabel = !1;
503
+ }
504
+ clipLabel(e, t, i) {
505
+ const r = t.multiply(Zs), a = ei(this.view.rotation.subtract(r)), o = at(new n(360).subtract(a), a);
506
+ let l = new n(0);
507
+ const u = ki(this.view.currentZoom.multiply(Rt)).divide(Rt), p = e.x, d = e.y, h = new n(1).subtract(H(p, u)).multiply(2), f = H(new n(90), o).multiply(2), m = new n(2).multiply(new n(1).subtract(H(u, d)));
508
+ return l = l.add(i.multiply(h)), l = l.add(i.multiply(f)), l = l.add(m), l;
509
+ }
510
+ vertex(e, t) {
511
+ const i = le(e.bitset, qi), r = new n(1).subtract(i);
512
+ let a = e.fontSize, o = a.divide(Ft);
513
+ const l = this.isHaloPass ? e.haloColor : this._getVertexColor(e), u = this.isLabel ? l.multiply(this.storage.getAnimationValue(e.id)) : l, p = this.view.displayViewScreenMat3.multiply(new z(e.pos, 1));
514
+ let d = e.offset, h = new n(1), f = j.identity();
515
+ if (this.isLabel) {
516
+ if (!e.referenceSymbol)
517
+ throw new Error("InternalError: Optional attribute 'referenceSymbol' expected for labels");
518
+ const P = e.referenceSymbol, T = P.xy, C = P.z, $ = this._unpackDirection(P.w), K = ot(this, e.id, C).divide(2), ue = $.multiply(K.add(hs));
519
+ d = d.add(T).add(ue);
520
+ } else
521
+ h = ot(this, e.id, e.referenceSize).divide(e.referenceSize), a = a.multiply(h), o = o.multiply(h), d = d.multiply(h), f = ti(this, e.id), d = f.multiply(new z(d, 0)).xy;
522
+ const m = le(e.bitset, ji), v = this._getViewRotationMatrix(m).multiply(new z(d, 0));
523
+ let b = this.isLabel ? this.clipLabel(e.zoomRange, e.clipAngle, m) : this.clip(e.id, e.zoomRange);
524
+ b = this.isBackgroundPass ? b.add(r.multiply(2)) : b.add(i.multiply(2));
525
+ const g = new V(p.xy.add(v.xy), b, 1), w = e.textureUV.divide(this.mosaicInfo.size);
526
+ let _ = new n(0);
527
+ return this.isHaloPass && (_ = e.haloFontSize.divide(o).divide(Ni)), { glPosition: g, color: u, size: o, textureUV: w, antialiasingWidth: new n(0.105 * Ft).divide(a).divide(this.view.pixelRatio), haloDistanceOffset: _, ...this.maybeRunHittest(e, t, { vvSizeAdjustment: h, vvRotation: f }) };
528
+ }
529
+ _getViewRotationMatrix(e) {
530
+ const t = this.view.displayViewMat3, i = this.view.displayMat3, r = new n(1).subtract(e);
531
+ return t.multiply(e).add(i.multiply(r));
532
+ }
533
+ fragment(e) {
534
+ const t = new n(0.25), i = new n(1).subtract(t), r = Q(this.mosaicInfo.texture, e.textureUV).a;
535
+ let a = i.subtract(e.haloDistanceOffset);
536
+ this.highlight && (a = a.divide(2));
537
+ const o = e.antialiasingWidth, l = Zt(a.subtract(o), a.add(o), r);
538
+ return this.getFragmentOutput(e.color.multiply(l), e);
539
+ }
540
+ hittest(e, t, { vvSizeAdjustment: i, vvRotation: r }) {
541
+ const a = r.multiply(new z(e.offset.multiply(i), 0)), o = r.multiply(new z(t.offsetNextVertex1.multiply(i), 0)), l = r.multiply(new z(t.offsetNextVertex2.multiply(i), 0)), { viewMat3: u, tileMat3: p } = this.view, d = u.multiply(p).multiply(new z(e.pos, 1)), h = d.add(p.multiply(a)).xy, f = d.add(p.multiply(o)).xy, m = d.add(p.multiply(l)).xy;
542
+ return Ui(this.hittestRequest.position, h.xy, f.xy, m.xy);
543
+ }
544
+ _unpackDirection(e) {
545
+ const t = new Ye(e), i = Hi(t, new Ye(2)), r = Wi(t, new Ye(3));
546
+ return new y(new n(i).subtract(1), new n(r).subtract(1));
547
+ }
548
+ _getVertexColor(e) {
549
+ let t = e.color;
550
+ if (this.visualVariableColor) {
551
+ const i = this.storage.getColorValue(e.id);
552
+ t = this.visualVariableColor.getColor(i, e.color, new Gi(!1));
553
+ }
554
+ if (this.visualVariableOpacity) {
555
+ const i = this.storage.getOpacityValue(e.id), r = this.visualVariableOpacity.getOpacity(i);
556
+ t = t.multiply(r);
557
+ }
558
+ return t;
559
+ }
560
+ }
561
+ c([D(ii)], O.prototype, "visualVariableColor", void 0), c([D(si)], O.prototype, "visualVariableOpacity", void 0), c([D(gt)], O.prototype, "visualVariableRotation", void 0), c([D(ri)], O.prototype, "visualVariableSizeMinMaxValue", void 0), c([D(ai)], O.prototype, "visualVariableSizeScaleStops", void 0), c([D(oi)], O.prototype, "visualVariableSizeStops", void 0), c([D(ni)], O.prototype, "visualVariableSizeUnitValue", void 0), c([S(bt)], O.prototype, "mosaicInfo", void 0), c([Ve], O.prototype, "isHaloPass", void 0), c([Ve], O.prototype, "isBackgroundPass", void 0), c([Ve], O.prototype, "isLabel", void 0), c([I(0, A(G)), I(1, A(ft))], O.prototype, "vertex", null), c([I(0, A(Xs))], O.prototype, "fragment", null);
562
+ let Ys = class extends k {
563
+ constructor() {
564
+ super(...arguments), this.meshWriter = B.LabelMeshWriter, this.shaders = { geometry: new O() }, this.drawPhase = xe.LABEL | xe.LABEL_ALPHA, this.symbologyPlane = de.TEXT;
565
+ }
566
+ render(e, t) {
567
+ const { context: i, painter: r } = e, a = R(e), o = { ...L(e) }, l = { shader: this.shaders.geometry, uniforms: { ...W(e, t.target, t.instance.getInput().geometry), ...E(e, t.target), mosaicInfo: r.textureManager.getMosaicInfo(i, t.textureKey) }, defines: { ...a, isHaloPass: !1, isBackgroundPass: !0, isLabel: !0 }, optionalAttributes: t.instance.optionalAttributes, useComputeBuffer: !1 };
568
+ r.setShader(l), r.setPipelineState(o), r.submitDraw(i, t), r.setShader({ ...l, defines: { ...a, isHaloPass: !0, isBackgroundPass: !1, isLabel: !0 } }), r.setPipelineState(o), r.submitDraw(i, t), r.setShader({ ...l, defines: { ...a, isHaloPass: !1, isBackgroundPass: !1, isLabel: !0 } }), r.setPipelineState(o), r.submitDraw(i, t);
569
+ }
570
+ }, Qs = class extends k {
571
+ constructor() {
572
+ super(...arguments), this.meshWriter = B.LineMeshWriter, this.shaders = { geometry: new li() }, this.symbologyPlane = de.LINE;
573
+ }
574
+ render(e, t) {
575
+ const { context: i, painter: r, pixelRatio: a } = e;
576
+ r.setShader({ shader: this.shaders.geometry, uniforms: { ...W(e, t.target, t.instance.getInput().geometry), ...E(e, t.target), antialiasingControls: Ae(a) }, defines: { ...R(e) }, optionalAttributes: t.instance.optionalAttributes, useComputeBuffer: F(e) }), r.setPipelineState(L(e)), r.submitDraw(i, t);
577
+ }
578
+ };
579
+ class Ne extends Ki {
580
+ }
581
+ c([x(9, n)], Ne.prototype, "accumulatedDistance", void 0), c([x(10, y)], Ne.prototype, "segmentDirection", void 0), c([x(11, V)], Ne.prototype, "tlbr", void 0);
582
+ class mt extends li {
583
+ _getLineWidthRatio(e, t) {
584
+ const i = new n($s), r = le(e.bitset, Yi);
585
+ return r.multiply(Se(t, new n(0.25))).add(new n(1).subtract(r)).divide(i);
586
+ }
587
+ _getSDFAlpha(e) {
588
+ const { halfWidth: t, normal: i, tlbr: r, patternSize: a, accumulatedDistance: o, lineWidthRatio: l } = e, u = a.x.multiply(new n(2)).multiply(l), p = Tt(o.divide(u)), d = new n(0.25).multiply(i.y).add(new n(0.5)), h = nt(r.xy, r.zw, new y(p, d)), f = ui(Q(this.mosaicInfo.texture, h)).subtract(new n(0.5)).multiply(t), m = lt(new n(0.5).subtract(f), new n(0), new n(1));
589
+ return new V(m);
590
+ }
591
+ _getPatternColor(e) {
592
+ const { halfWidth: t, normal: i, color: r, accumulatedDistance: a, patternSize: o, sampleAlphaOnly: l, tlbr: u } = e, p = o.y.multiply(new n(2).multiply(t).divide(o.x)), d = Tt(a.divide(p)), h = new n(0.5).multiply(i.y).add(new n(0.5)), f = nt(u.xy, u.zw, new y(h, d));
593
+ let m = Q(this.mosaicInfo.texture, f);
594
+ return this.visualVariableColor != null && (m = ce(Qe(l, new n(0.5)), new V(r.a), r)), m;
595
+ }
596
+ vertex(e, t) {
597
+ const { segmentDirection: i, tlbr: r, bitset: a } = e, o = Zi(this, e), l = e.accumulatedDistance.divide(this.view.displayZoomFactor).add(st(i, o.scaledOffset)), u = new y(r.z.subtract(r.x), r.w.subtract(r.y)), p = r.divide(this.mosaicInfo.size.xyxy), d = le(a, Qi), h = le(a, Ji), f = ce(Qe(d, new n(0.5)), this._getLineWidthRatio(e, o.scaledHalfWidth), new n(1));
598
+ return { ...o, tlbr: p, patternSize: u, accumulatedDistance: l, isSDF: d, sampleAlphaOnly: h, lineWidthRatio: f, ...this.maybeRunHittest(e, t, o.halfWidth) };
599
+ }
600
+ fragment(e) {
601
+ const { color: t, opacity: i, isSDF: r } = e, a = Xi(e, this.antialiasingControls.blur), o = ce(Qe(r, new n(0.5)), this._getSDFAlpha(e), this._getPatternColor(e)), l = t.multiply(i).multiply(a).multiply(o);
602
+ return this.getFragmentOutput(l, e);
603
+ }
604
+ }
605
+ c([S(bt)], mt.prototype, "mosaicInfo", void 0), c([I(0, A(Ne)), I(1, A(es))], mt.prototype, "vertex", null);
606
+ let Js = class extends k {
607
+ constructor() {
608
+ super(...arguments), this.meshWriter = B.TexturedLineMeshWriter, this.shaders = { geometry: new mt() }, this.symbologyPlane = de.LINE;
609
+ }
610
+ render(e, t) {
611
+ const { context: i, painter: r, pixelRatio: a } = e;
612
+ r.setShader({ shader: this.shaders.geometry, uniforms: { ...W(e, t.target, t.instance.getInput().geometry), ...E(e, t.target), antialiasingControls: Ae(a), mosaicInfo: r.textureManager.getMosaicInfo(i, t.textureKey) }, defines: { ...R(e) }, optionalAttributes: t.instance.optionalAttributes, useComputeBuffer: F(e) }), r.setPipelineState(L(e)), r.submitDraw(i, t);
613
+ }
614
+ };
615
+ class ne extends je {
616
+ }
617
+ c([x(3, V)], ne.prototype, "color", void 0), c([x(4, V)], ne.prototype, "outlineColor", void 0), c([x(5, y)], ne.prototype, "offset", void 0), c([x(6, y)], ne.prototype, "textureUV", void 0), c([x(7, V)], ne.prototype, "sizing", void 0), c([x(8, n)], ne.prototype, "placementAngle", void 0), c([x(9, n)], ne.prototype, "sizeRatio", void 0), c([x(10, y)], ne.prototype, "zoomRange", void 0);
618
+ class Fe extends Jt {
619
+ }
620
+ c([x(12, y)], Fe.prototype, "offsetNextVertex1", void 0), c([x(13, y)], Fe.prototype, "offsetNextVertex2", void 0), c([x(14, y)], Fe.prototype, "textureUVNextVertex1", void 0), c([x(15, y)], Fe.prototype, "textureUVNextVertex2", void 0);
621
+ class er extends Te {
622
+ }
623
+ function oe(s, e, t, i) {
624
+ return e.multiply(s.x).add(t.multiply(s.y)).add(i.multiply(s.z));
625
+ }
626
+ function et(s) {
627
+ return s.multiply(s).divide(128);
628
+ }
629
+ class q extends Ke {
630
+ constructor() {
631
+ super(...arguments), this.computeAttributes = { offset: ["offsetNextVertex1", "offsetNextVertex2"], textureUV: ["textureUVNextVertex1", "textureUVNextVertex2"] };
632
+ }
633
+ vertex(e, t) {
634
+ const i = et(e.sizing.x), r = et(e.sizing.y), a = et(e.sizing.z), o = e.placementAngle, l = le(e.bitset, $e.bitset.isSDF), u = le(e.bitset, $e.bitset.isMapAligned), p = le(e.bitset, $e.bitset.scaleSymbolsProportionally), d = ts(e.bitset, $e.bitset.colorLocked), h = is(this, e.id), f = ss(this, e.id, e.color, d).multiply(h), m = this.view.displayViewScreenMat3.multiply(new z(e.pos.xy, 1)), v = ot(this, e.id, a).divide(a), b = i.multiply(v), g = e.offset.xy.multiply(v);
635
+ let w = r.multiply(p.multiply(v.subtract(1)).add(1));
636
+ w = at(w, Se(b.subtract(0.99), new n(0)));
637
+ const _ = Se(w, new n(1)), P = at(w, new n(1)), T = j.fromRotation(o.multiply(rs)), C = ti(this, e.id), $ = this._getViewRotationMatrix(u).multiply(C).multiply(T).multiply(new z(g.xy, 0)), K = this.clip(e.id, e.zoomRange), ue = new V(m.xy.add($.xy), K, 1), Re = e.textureUV.divide(this.mosaicInfo.size), Ie = e.outlineColor.multiply(P), Ce = le(e.bitset, $e.bitset.overrideOutlineColor), ze = e.sizeRatio.multiply(b).multiply(0.5);
638
+ return { glPosition: ue, color: f, textureUV: Re, outlineColor: Ie, outlineSize: _, distanceToPx: ze, isSDF: l, overrideOutlineColor: Ce, ...this.maybeRunHittest(e, t, { pos: e.pos, size: b, sizeCorrection: v, isMapAligned: u, outlineSize: _, distanceToPx: ze, isSDF: l }) };
639
+ }
640
+ fragment(e) {
641
+ const t = this._getColor(e.textureUV, e);
642
+ return this.getFragmentOutput(t, e);
643
+ }
644
+ hittest(e, t, i) {
645
+ return ce(as(i.size, this.hittestRequest.smallSymbolSizeThreshold), this._hittestSmallMarker(e, t, i), this._hittestMarker(e, t, i));
646
+ }
647
+ _getViewRotationMatrix(e) {
648
+ const t = this.view.displayViewMat3, i = this.view.displayMat3, r = new n(1).subtract(e);
649
+ return t.multiply(e).add(i.multiply(r));
650
+ }
651
+ _getViewScreenMatrix(e) {
652
+ const t = this.view.viewMat3.multiply(this.view.tileMat3), i = this.view.tileMat3, r = new n(1).subtract(e);
653
+ return t.multiply(e).add(i.multiply(r));
654
+ }
655
+ _getColor(e, t) {
656
+ return ce(Qt(t.isSDF, new n(1)), this._getSDFColor(e, t), this._getSpriteColor(e, t));
657
+ }
658
+ _getSpriteColor(e, t) {
659
+ return Q(this.mosaicInfo.texture, e).multiply(t.color);
660
+ }
661
+ _getSDFColor(e, t) {
662
+ const i = Q(this.mosaicInfo.texture, e), r = new n(0.5).subtract(ui(i)).multiply(t.distanceToPx).multiply(os), a = lt(new n(0.5).subtract(r), new n(0), new n(1)), o = t.color.multiply(a);
663
+ let l = t.outlineSize;
664
+ this.highlight && (l = Se(l, t.overrideOutlineColor.multiply(4)));
665
+ const u = l.multiply(0.5), p = ei(r).subtract(u), d = lt(new n(0.5).subtract(p), new n(0), new n(1)), h = nt(t.outlineColor, t.color, t.overrideOutlineColor).multiply(d);
666
+ return new n(1).subtract(h.a).multiply(o).add(h);
667
+ }
668
+ _hittestSmallMarker(e, t, i) {
669
+ const { position: r, distance: a, smallSymbolDistance: o } = this.hittestRequest, l = a.subtract(o), { viewMat3: u, tileMat3: p } = this.view, d = u.multiply(p).multiply(new z(i.pos, 1)).xy, h = i.size.multiply(0.5);
670
+ return ns(d, r).subtract(h).add(l);
671
+ }
672
+ _hittestMarker(e, t, i) {
673
+ const { pos: r, size: a, sizeCorrection: o, isMapAligned: l, outlineSize: u, isSDF: p, distanceToPx: d } = i, h = new z(e.offset.multiply(o), 0), f = new z(t.offsetNextVertex1.multiply(o), 0), m = new z(t.offsetNextVertex2.multiply(o), 0), { viewMat3: v, tileMat3: b } = this.view, g = v.multiply(b).multiply(new z(r, 1)), w = this._getViewScreenMatrix(l), _ = g.add(w.multiply(h)).xy, P = g.add(w.multiply(f)).xy, T = g.add(w.multiply(m)).xy, C = this.hittestRequest.position, $ = this.hittestRequest.distance, K = re(C.add(new y(he($), he($))), _, P, T), ue = re(C.add(new y(0, he($))), _, P, T), Re = re(C.add(new y($, he($))), _, P, T), Ie = re(C.add(new y(he($), 0)), _, P, T), Ce = re(C, _, P, T), ze = re(C.add(new y($, 0)), _, P, T), wt = re(C.add(new y(he($), $)), _, P, T), St = re(C.add(new y(0, $)), _, P, T), Vt = re(C.add(new y($, $)), _, P, T), ee = e.textureUV.divide(this.mosaicInfo.size), te = t.textureUVNextVertex1.divide(this.mosaicInfo.size), ie = t.textureUVNextVertex2.divide(this.mosaicInfo.size), se = { color: new V(1), outlineColor: new V(1), overrideOutlineColor: new n(1), outlineSize: u, distanceToPx: d, isSDF: p };
674
+ let M = new n(0);
675
+ return M = M.add(ae(K).multiply(this._getColor(oe(K, ee, te, ie), se).a)), M = M.add(ae(ue).multiply(this._getColor(oe(ue, ee, te, ie), se).a)), M = M.add(ae(Re).multiply(this._getColor(oe(Re, ee, te, ie), se).a)), M = M.add(ae(Ie).multiply(this._getColor(oe(Ie, ee, te, ie), se).a)), M = M.add(ae(Ce).multiply(this._getColor(oe(Ce, ee, te, ie), se).a)), M = M.add(ae(ze).multiply(this._getColor(oe(ze, ee, te, ie), se).a)), M = M.add(ae(wt).multiply(this._getColor(oe(wt, ee, te, ie), se).a)), M = M.add(ae(St).multiply(this._getColor(oe(St, ee, te, ie), se).a)), M = M.add(ae(Vt).multiply(this._getColor(oe(Vt, ee, te, ie), se).a)), H(M, new n(0.05)).multiply(Xt(this.hittestRequest));
676
+ }
677
+ }
678
+ c([D(ii)], q.prototype, "visualVariableColor", void 0), c([D(si)], q.prototype, "visualVariableOpacity", void 0), c([D(gt)], q.prototype, "visualVariableRotation", void 0), c([D(ri)], q.prototype, "visualVariableSizeMinMaxValue", void 0), c([D(ai)], q.prototype, "visualVariableSizeScaleStops", void 0), c([D(oi)], q.prototype, "visualVariableSizeStops", void 0), c([D(ni)], q.prototype, "visualVariableSizeUnitValue", void 0), c([S(bt)], q.prototype, "mosaicInfo", void 0), c([I(0, A(ne)), I(1, A(Fe))], q.prototype, "vertex", null), c([I(0, A(er))], q.prototype, "fragment", null);
679
+ let tr = class extends k {
680
+ constructor() {
681
+ super(...arguments), this.meshWriter = B.MarkerMeshWriter, this.shaders = { geometry: new q() }, this.symbologyPlane = de.MARKER;
682
+ }
683
+ render(e, t) {
684
+ const { context: i, painter: r } = e;
685
+ r.setShader({ shader: this.shaders.geometry, uniforms: { ...W(e, t.target, t.instance.getInput().geometry), ...E(e, t.target), mosaicInfo: r.textureManager.getMosaicInfo(i, t.textureKey, !0) }, defines: { ...R(e) }, optionalAttributes: t.instance.optionalAttributes, useComputeBuffer: F(e) }), r.setPipelineState(L(e)), r.submitDraw(i, t);
686
+ }
687
+ };
688
+ class ir {
689
+ constructor() {
690
+ this.computeAttributes = {};
691
+ }
692
+ get locationsMap() {
693
+ const e = /* @__PURE__ */ new Map();
694
+ for (const t in this.locations)
695
+ e.set(t, this.locations[t].index);
696
+ return e;
697
+ }
698
+ get optionPropertyKeys() {
699
+ if (!this._optionPropertyKeys) {
700
+ const e = new Set(Object.keys(this.options));
701
+ this._optionPropertyKeys = e;
702
+ }
703
+ return this._optionPropertyKeys;
704
+ }
705
+ get _transformFeedbackBindings() {
706
+ return [];
707
+ }
708
+ get locationInfo() {
709
+ if (!this._locationInfo) {
710
+ const e = this.locationsMap, t = Array.from(e.entries()).map(([r, a]) => `${r}.${a}`).join("."), i = bs(t);
711
+ this._locationInfo = { hash: i, locations: e };
712
+ }
713
+ return this._locationInfo;
714
+ }
715
+ get renamedLocationsMap() {
716
+ const e = /* @__PURE__ */ new Map();
717
+ for (const [t, i] of this.locationsMap.entries())
718
+ e.set("a_" + t, i);
719
+ return e;
720
+ }
721
+ getShaderKey(e, t, i) {
722
+ const r = Object.keys(i).filter((o) => i[o]).map((o) => `${o}_${i[o].toString()}`).join("."), a = Object.keys(t).filter((o) => this.optionPropertyKeys.has(o)).join(".");
723
+ return `${e.hash}.${r}.${a}`;
724
+ }
725
+ getProgram(e, t, i, r) {
726
+ let a = "", o = "";
727
+ for (const l in i)
728
+ if (i[l]) {
729
+ const u = typeof i[l] == "boolean" ? `#define ${l}
730
+ ` : `#define ${l} ${i[l]}
731
+ `;
732
+ a += u, o += u;
733
+ }
734
+ return a += this.vertexShader, o += this.fragmentShader, new ls(a, o, this.renamedLocationsMap, this.locationInfo, this._getUniformBindings(t), this._transformFeedbackBindings);
735
+ }
736
+ _getUniformBindings(e) {
737
+ const t = [];
738
+ for (const i in this.required) {
739
+ const r = this.required[i];
740
+ t.push({ uniformHydrated: null, shaderModulePath: i, uniformName: i, uniformType: r.type, uniformArrayElementType: Nt(r), uniformArrayLength: Ut(r) });
741
+ }
742
+ for (const i in e) {
743
+ const r = this.options[i];
744
+ if (e[i])
745
+ for (const a in r) {
746
+ const o = r[a];
747
+ t.push({ uniformHydrated: null, shaderModulePath: `${i}.${a}`, uniformName: a, uniformType: o.type, uniformArrayElementType: Nt(o), uniformArrayLength: Ut(o) });
748
+ }
749
+ }
750
+ return t;
751
+ }
752
+ }
753
+ const Nt = (s) => {
754
+ var e;
755
+ return s.type === "array" ? (e = s.elementType) == null ? void 0 : e.type : void 0;
756
+ }, Ut = (s) => s.type === "array" ? s.size : void 0, sr = { hittestDist: n, hittestPos: y }, rr = { filterFlags: U, animation: U, visualVariableData: U, dataDriven0: U, dataDriven1: U, dataDriven2: U, gpgpu: U, size: n }, ar = { displayViewScreenMat3: j, displayViewMat3: j, displayMat3: j, viewMat3: j, tileMat3: j, displayZoomFactor: n, requiredZoomFactor: n, tileOffset: y, currentScale: n, currentZoom: n, metersPerSRUnit: n };
757
+ let or = class extends ir {
758
+ constructor() {
759
+ super(...arguments), this.vertexShader = Lt("materials/pie/pie.vert"), this.fragmentShader = Lt("materials/pie/pie.frag"), this.required = { ...rr, ...ar, outlineWidth: n, colors: Z, defaultColor: V, othersColor: V, outlineColor: V, donutRatio: n, sectorThreshold: n }, this.options = { hittestUniforms: sr, visualVariableSizeMinMaxValue: { minMaxValueAndSize: V }, visualVariableSizeScaleStops: { sizes: { ...Z.ofType(n, 8), type: "array", elementType: n, size: 8 }, values: { ...Z.ofType(n, 8), type: "array", elementType: n, size: 8 } }, visualVariableSizeStops: { sizes: { ...Z.ofType(n, 8), type: "array", elementType: n, size: 8 }, values: { ...Z.ofType(n, 8), type: "array", elementType: n, size: 8 } }, visualVariableSizeUnitValue: { unitValueToPixelsRatio: n }, visualVariableOpacity: { opacities: { ...Z.ofType(n, 8), type: "array", elementType: n, size: 8 }, opacityValues: { ...Z.ofType(n, 8), type: "array", elementType: n, size: 8 } } }, this.locations = { pos: { index: 0, type: y }, id: { index: 1, type: z }, bitset: { index: 2, type: n }, offset: { index: 3, type: y }, texCoords: { index: 4, type: y }, size: { index: 5, type: y }, referenceSize: { index: 6, type: n }, zoomRange: { index: 7, type: y } }, this.defines = { VV_SIZE_MIN_MAX_VALUE: "boolean", VV_SIZE_SCALE_STOPS: "boolean", VV_SIZE_FIELD_STOPS: "boolean", VV_SIZE_UNIT_VALUE: "boolean", VV_OPACITY: "boolean", HITTEST: "boolean", numberOfFields: "number", highlight: "boolean", inside: "boolean", outside: "boolean" };
760
+ }
761
+ setNumberOfFields(e) {
762
+ this.required.colors = { ...Z.ofType(V, e), type: "array", elementType: V, size: e };
763
+ }
764
+ }, nr = class extends k {
765
+ constructor() {
766
+ super(...arguments), this.meshWriter = B.PieChartMeshWriter, this.shaders = { geometry: new or() }, this.symbologyPlane = de.MARKER;
767
+ }
768
+ render(e, t) {
769
+ var m, v;
770
+ const { context: i, painter: r } = e, { instance: a, target: o } = t, l = this.shaders.geometry, u = a.getInput(), p = u.numberOfFields, d = F(e), h = E(e, o), f = R(e);
771
+ l.setNumberOfFields(p), r.setShader({ shader: l, uniforms: { ...W(e, t.target, u.geometry), ...h.storage, ...h.view, hittestUniforms: h.hittestRequest ? { hittestDist: (m = h.hittestRequest) == null ? void 0 : m.distance, hittestPos: (v = h.hittestRequest) == null ? void 0 : v.position } : null }, defines: { VV_SIZE_MIN_MAX_VALUE: !!u.geometry.visualVariableSizeMinMaxValue, VV_SIZE_SCALE_STOPS: !!u.geometry.visualVariableSizeScaleStops, VV_SIZE_FIELD_STOPS: !!u.geometry.visualVariableSizeStops, VV_SIZE_UNIT_VALUE: !!u.geometry.visualVariableSizeUnitValue, VV_OPACITY: !!u.geometry.visualVariableOpacity, HITTEST: d, highlight: h.highlight ? 1 : 0, ...f, numberOfFields: p }, optionalAttributes: {}, useComputeBuffer: d }), r.setPipelineState(L(e)), r.submitDraw(i, t);
772
+ }
773
+ }, lr = class extends k {
774
+ constructor() {
775
+ super(...arguments), this.meshWriter = B.TextMeshWriter, this.shaders = { geometry: new O() }, this.symbologyPlane = de.TEXT;
776
+ }
777
+ render(e, t) {
778
+ const { context: i, painter: r } = e, a = R(e), o = { shader: this.shaders.geometry, uniforms: { ...W(e, t.target, t.instance.getInput().geometry), ...E(e, t.target), mosaicInfo: r.textureManager.getMosaicInfo(i, t.textureKey) }, defines: { ...a, isHaloPass: !1, isBackgroundPass: !0, isLabel: !1 }, optionalAttributes: t.instance.optionalAttributes, useComputeBuffer: F(e) };
779
+ r.setShader(o), r.setPipelineState(L(e)), r.submitDraw(i, t), r.setShader({ ...o, defines: { ...a, isHaloPass: !0, isBackgroundPass: !1, isLabel: !1 } }), r.submitDraw(i, t), r.setShader({ ...o, defines: { ...a, isHaloPass: !1, isBackgroundPass: !1, isLabel: !1 } }), r.submitDraw(i, t);
780
+ }
781
+ };
782
+ const J = { fill: new Es("fill"), patternFill: new Ls("patternFill"), complexFill: new Cs("complexFill"), outlineFill: new Ds("outlineFill"), patternOutlineFill: new Bs("patternOutlineFill"), complexOutlineFill: new Os("complexOutlineFill"), marker: new tr("marker"), pieChart: new nr("pieChart"), line: new Qs("line"), texturedLine: new Js("texturedLine"), text: new lr("text"), label: new Ys("label"), heatmap: new Gs("heatmap"), dotDensity: new Is("dotDensity") };
783
+ function Ga() {
784
+ for (const s in J)
785
+ J[s].startup();
786
+ }
787
+ function qa(s) {
788
+ for (const e in J)
789
+ J[e].shutdown(s);
790
+ }
791
+ function qe(s, e) {
792
+ const t = s.slice(0, e), i = e - t.length;
793
+ for (let r = 0; r < i; r++) {
794
+ const a = t[t.length - 1];
795
+ t.push(a);
796
+ }
797
+ return t;
798
+ }
799
+ function ur(s) {
800
+ if (!s)
801
+ return [0, 0, 0, 0];
802
+ const { r: e, g: t, b: i, a: r } = s;
803
+ return [e * (r / 255), t * (r / 255), i * (r / 255), r];
804
+ }
805
+ const Ue = 8, $i = Ue - 2, Mi = () => ci.getLogger("esri.views.2d.layers.features.support.rendererUtils");
806
+ function Pi(s) {
807
+ return s.map((e) => cr(e) ? pr(e.clone()) : e);
808
+ }
809
+ function cr(s) {
810
+ return (s.type === "size" || s.type === "color" || s.type === "opacity") && s.stops != null;
811
+ }
812
+ function pr(s) {
813
+ return s.stops = fr(s.type, s.stops ?? []), s;
814
+ }
815
+ function me(s, e, t) {
816
+ return (1 - t) * s + t * e;
817
+ }
818
+ function dr(s, e) {
819
+ const [t, ...i] = e, r = i.pop(), a = i[0].value, o = i[i.length - 1].value, l = (o - a) / $i, u = [];
820
+ for (let p = a; p < o; p += l) {
821
+ let d = 0;
822
+ for (; p >= i[d].value; )
823
+ d++;
824
+ const h = i[d], f = e[d - 1], m = p - f.value, v = h.value === f.value ? 1 : m / (h.value - f.value);
825
+ if (s === "color") {
826
+ const b = i[d], g = e[d - 1], w = b.color.clone();
827
+ w.r = me(g.color.r, w.r, v), w.g = me(g.color.g, w.g, v), w.b = me(g.color.b, w.b, v), w.a = me(g.color.a, w.a, v), u.push({ value: p, color: w, label: b.label });
828
+ } else if (s === "size") {
829
+ const b = i[d], g = e[d - 1], w = Ct(b.size), _ = me(Ct(g.size), w, v);
830
+ u.push({ value: p, size: _, label: b.label });
831
+ } else {
832
+ const b = i[d], g = me(e[d - 1].opacity, b.opacity, v);
833
+ u.push({ value: p, opacity: g, label: b.label });
834
+ }
835
+ }
836
+ return [t, ...u, r];
837
+ }
838
+ function hr(s) {
839
+ const [e, ...t] = s, i = t.pop();
840
+ for (; t.length > $i; ) {
841
+ let r = 0, a = 0;
842
+ for (let o = 1; o < t.length; o++) {
843
+ const l = t[o - 1], u = t[o], p = Math.abs(u.value - l.value);
844
+ p > a && (a = p, r = o);
845
+ }
846
+ t.splice(r, 1);
847
+ }
848
+ return [e, ...t, i];
849
+ }
850
+ function fr(s, e) {
851
+ return e.length <= Ue ? e : (Mi().warn(`Found ${e.length} Visual Variable stops, but MapView only supports ${Ue}. Displayed stops will be simplified.`), e.length > 2 * Ue ? dr(s, e) : hr(e));
852
+ }
853
+ function mr() {
854
+ const { supportsColorBufferFloat: s, supportsColorBufferFloatBlend: e, supportsColorBufferHalfFloat: t } = vt();
855
+ return s && e || t;
856
+ }
857
+ function ja(s) {
858
+ if (!s)
859
+ return !0;
860
+ switch (s.type) {
861
+ case "dot-density":
862
+ break;
863
+ case "heatmap":
864
+ if (!mr()) {
865
+ const e = vt(), t = ["supportsColorBufferFloat", "supportsColorBufferFloatBlend", "supportsColorBufferHalfFloat"].filter((i) => !e[i]).join(", ");
866
+ return Mi().errorOnce(new De("webgl-missing-extension", `Missing WebGL2 requirements for Heatmap: ${t}`)), !1;
867
+ }
868
+ }
869
+ return !0;
870
+ }
871
+ const yr = 1.25, Ee = 128, br = 128;
872
+ function vr(s) {
873
+ var a;
874
+ if (!((a = s.stops) != null && a.length))
875
+ return null;
876
+ const e = s.stops.sort((o, l) => o.value - l.value), t = qe(e, 8), i = t.map(({ value: o }) => o), r = t.map(({ color: o }) => ur(o));
877
+ return { values: i, colors: r };
878
+ }
879
+ function gr(s) {
880
+ var i;
881
+ if (!((i = s.stops) != null && i.length))
882
+ return null;
883
+ const e = s.stops.sort((r, a) => r.value - a.value), t = qe(e, 8);
884
+ return { opacityValues: t.map(({ value: r }) => r), opacities: t.map(({ opacity: r }) => r) };
885
+ }
886
+ function xr(s) {
887
+ return { rotationType: s.rotationType === "geographic" ? rt.Geographic : rt.Arithmatic };
888
+ }
889
+ function tt(s) {
890
+ var i;
891
+ if (!((i = s.stops) != null && i.length))
892
+ return null;
893
+ if (s.stops.some((r) => r.useMaxValue || r.useMinValue))
894
+ return (r, a) => {
895
+ const o = r.statisticsByLevel.get(a.key.level), l = s.stops.map((p) => {
896
+ var d, h;
897
+ return { value: p.useMaxValue ? ((d = o == null ? void 0 : o.get(s.field)) == null ? void 0 : d.maxValue) ?? 0 : p.useMinValue ? ((h = o == null ? void 0 : o.get(s.field)) == null ? void 0 : h.minValue) ?? 0 : p.value, size: p.size ? we(p.size) : fs };
898
+ }).sort((p, d) => p.value - d.value), u = qe(l, 8);
899
+ return { values: u.map(({ value: p }) => p), sizes: u.map(({ size: p }) => p) };
900
+ };
901
+ const e = s.stops.sort((r, a) => r.value - a.value), t = qe(e, 8);
902
+ return { values: t.map(({ value: r }) => r), sizes: t.map(({ size: r }) => we(r)) };
903
+ }
904
+ function wr(s) {
905
+ return (e) => {
906
+ const { state: t } = e;
907
+ return { unitValueToPixelsRatio: vs(t.spatialReference) / Ms[s.valueUnit] / t.resolution };
908
+ };
909
+ }
910
+ function Ht(s, e) {
911
+ const t = e.length;
912
+ if (s < e[0].value || t === 1)
913
+ return e[0].size;
914
+ for (let i = 1; i < t; i++)
915
+ if (s < e[i].value) {
916
+ const r = (s - e[i - 1].value) / (e[i].value - e[i - 1].value);
917
+ return e[i - 1].size + r * (e[i].size - e[i - 1].size);
918
+ }
919
+ return e[t - 1].size;
920
+ }
921
+ function Sr(s) {
922
+ const { minDataValue: e, maxDataValue: t, minSize: i, maxSize: r } = s;
923
+ if (typeof i == "object" && typeof r == "object")
924
+ return (a, o) => {
925
+ const l = a.state.scale, u = we(Ht(l, i.stops)), p = we(Ht(l, r.stops));
926
+ return { minMaxValueAndSize: [e, t, u, p] };
927
+ };
928
+ if (typeof i == "object" || typeof r == "object")
929
+ throw new Error("InternalError: Found a partial VisualVariableSizeMinMaxValue");
930
+ return { minMaxValueAndSize: [e, t, we(i), we(r)] };
931
+ }
932
+ const xt = { visualVariableColor: null, visualVariableOpacity: null, visualVariableRotation: null, visualVariableSizeStops: null, visualVariableSizeScaleStops: null, visualVariableSizeOutlineScaleStops: null, visualVariableSizeUnitValue: null, visualVariableSizeMinMaxValue: null };
933
+ function Fi(s, e = br, t = yr) {
934
+ if (s.visualVariableSizeMinMaxValue)
935
+ return s.visualVariableSizeMinMaxValue instanceof Function ? Ee : Math.max(s.visualVariableSizeMinMaxValue.minMaxValueAndSize[3] * t, e);
936
+ if (s.visualVariableSizeScaleStops) {
937
+ if (s.visualVariableSizeScaleStops instanceof Function)
938
+ return Ee;
939
+ const i = s.visualVariableSizeScaleStops.sizes;
940
+ return Math.max(i[i.length - 1] * t, e);
941
+ }
942
+ if (s.visualVariableSizeStops) {
943
+ if (s.visualVariableSizeStops instanceof Function)
944
+ return Ee;
945
+ const i = s.visualVariableSizeStops.sizes;
946
+ return Math.max(i[i.length - 1] * t, e);
947
+ }
948
+ return s.visualVariableSizeUnitValue ? 2 * Ee : 0;
949
+ }
950
+ function Ka(s) {
951
+ const e = { ...xt };
952
+ if (!s || !("visualVariables" in s) || !s.visualVariables)
953
+ return e;
954
+ for (const t of Pi(s.visualVariables))
955
+ switch (t.type) {
956
+ case "color":
957
+ e.visualVariableColor = vr(t);
958
+ break;
959
+ case "opacity":
960
+ e.visualVariableOpacity = gr(t);
961
+ break;
962
+ case "rotation":
963
+ e.visualVariableRotation = xr(t);
964
+ break;
965
+ case "size":
966
+ switch (Vr(t)) {
967
+ case "field-stops":
968
+ e.visualVariableSizeStops = tt(t);
969
+ break;
970
+ case "scale-stops":
971
+ t.target === "outline" ? e.visualVariableSizeOutlineScaleStops = tt(t) : e.visualVariableSizeScaleStops = tt(t);
972
+ break;
973
+ case "min-max":
974
+ e.visualVariableSizeMinMaxValue = Sr(t);
975
+ break;
976
+ case "unit-value":
977
+ e.visualVariableSizeUnitValue = wr(t);
978
+ }
979
+ break;
980
+ default:
981
+ console.error("Unable to handle VV type");
982
+ }
983
+ return e;
984
+ }
985
+ function Vr(s) {
986
+ if (typeof s.minDataValue == "number" && typeof s.maxDataValue == "number" && s.minSize != null && s.maxSize != null)
987
+ return "min-max";
988
+ if ((s.expression && s.expression === "view.scale" || s.valueExpression && s.valueExpression === "$view.scale") && Array.isArray(s.stops))
989
+ return "scale-stops";
990
+ if ((s.field != null || s.expression && s.expression !== "view.scale" || s.valueExpression && s.valueExpression !== "$view.scale") && (Array.isArray(s.stops) || "levels" in s && s.levels))
991
+ return "field-stops";
992
+ if ((s.field != null || s.expression && s.expression !== "view.scale" || s.valueExpression && s.valueExpression !== "$view.scale") && s.valueUnit != null)
993
+ return "unit-value";
994
+ throw new Error("InternalError: Found unknown sizeVV type");
995
+ }
996
+ function _r(s) {
997
+ return !!(s.visualVariableSizeMinMaxValue || s.visualVariableSizeScaleStops || s.visualVariableSizeStops || s.visualVariableSizeUnitValue || s.visualVariableSizeOutlineScaleStops);
998
+ }
999
+ function Za(s) {
1000
+ return !!s.visualVariableRotation;
1001
+ }
1002
+ function zr(s) {
1003
+ return s.minScale || s.maxScale ? { minScale: s.minScale ?? 0, maxScale: s.maxScale ?? 0 } : null;
1004
+ }
1005
+ function Y(s) {
1006
+ if (s == null)
1007
+ return null;
1008
+ if (Array.isArray(s)) {
1009
+ const [e, t, i, r] = s;
1010
+ return [e, t, i, 255 * r];
1011
+ }
1012
+ return typeof s == "string" ? s : { ...s, defaultValue: Y(s == null ? void 0 : s.defaultValue) };
1013
+ }
1014
+ async function Xa(s, e) {
1015
+ const { cimResourceManager: t, cimAnalyzer: i, scaleExpression: r } = e.schemaOptions;
1016
+ await Promise.all(us.fetchResources(s.symbol, t, []));
1017
+ const a = i.analyzeSymbolReference(s, !1), o = { scaleInfo: zr(s), scaleExpression: r }, l = [];
1018
+ for (const u of a)
1019
+ switch (u.type) {
1020
+ case "marker":
1021
+ l.push(...$r(u, e, o));
1022
+ break;
1023
+ case "fill":
1024
+ l.push(...Tr(u, e, o));
1025
+ break;
1026
+ case "line":
1027
+ l.push(...Rr(u, e, o));
1028
+ break;
1029
+ case "text":
1030
+ l.push(...Or(u, e, o));
1031
+ }
1032
+ return l;
1033
+ }
1034
+ function $r(s, e, t) {
1035
+ const { uniforms: i, schemaOptions: r } = e, { store: a } = r, o = s.isOutline ? { ...xt, visualVariableSizeScaleStops: i.visualVariableSizeOutlineScaleStops } : { visualVariableColor: i.visualVariableColor, visualVariableOpacity: i.visualVariableOpacity, visualVariableSizeMinMaxValue: i.visualVariableSizeMinMaxValue, visualVariableSizeScaleStops: i.visualVariableSizeScaleStops, visualVariableSizeStops: i.visualVariableSizeStops, visualVariableSizeUnitValue: i.visualVariableSizeUnitValue, visualVariableRotation: i.visualVariableRotation };
1036
+ return Mr(a.ensureInstance(J.marker, { geometry: o }, { zoomRange: !!t.scaleInfo }), s, i, t);
1037
+ }
1038
+ function Mr(s, e, t, { scaleInfo: i, scaleExpression: r }) {
1039
+ const a = _r(t);
1040
+ return [s.createMeshInfo({ params: { size: e.size, scaleX: e.scaleX, anchorX: e.anchorPoint.x, anchorY: e.anchorPoint.y, angle: e.rotation, color: Y(e.color) ?? [0, 0, 0, 0], colorLocked: e.colorLocked, frameHeight: e.frameHeight, widthRatio: e.widthRatio, scaleInfo: i, offsetX: e.offsetX, offsetY: e.offsetY, outlineColor: Y(e.outlineColor) ?? [0, 0, 0, 0], outlineSize: e.outlineWidth, referenceSize: e.referenceSize || ps.CIMVectorMarker.size, rotateClockwise: e.rotateClockwise, scaleFactor: r ?? 1, sizeRatio: e.sizeRatio, alignment: e.alignment, isAbsoluteAnchorPoint: e.isAbsoluteAnchorPoint, scaleSymbolsProportionally: e.scaleSymbolsProportionally, sprite: e.spriteRasterizationParam, hasSizeVV: a, placement: e.markerPlacement, effects: e.effects ? { type: "cim-effect-infos", effectInfos: e.effects } : null, transforms: e.transform, minPixelBuffer: Fi(t) } })];
1041
+ }
1042
+ function Pr(s, e, t) {
1043
+ const { uniforms: i, schemaOptions: r } = e, { store: a } = r;
1044
+ return Fr(a.ensureInstance(J.fill, { geometry: { visualVariableColor: s.colorLocked ? null : i.visualVariableColor, visualVariableOpacity: i.visualVariableOpacity } }, { zoomRange: !!t.scaleInfo }), s, t);
1045
+ }
1046
+ function Fr(s, e, { scaleInfo: t }) {
1047
+ return [s.createMeshInfo({ params: { color: Y(e.color) ?? [0, 0, 0, 0], scaleInfo: t, effects: e.effects ? { type: "cim-effect-infos", effectInfos: e.effects } : null } })];
1048
+ }
1049
+ function Tr(s, e, t) {
1050
+ if (!s.spriteRasterizationParam)
1051
+ return Pr(s, e, t);
1052
+ const { uniforms: i, schemaOptions: r } = e, { store: a } = r;
1053
+ return Ar(a.ensureInstance(J.complexFill, { geometry: { visualVariableColor: s.colorLocked ? null : i.visualVariableColor, visualVariableOpacity: i.visualVariableOpacity } }, { zoomRange: !!t.scaleInfo }), s, i.visualVariableColor != null, t);
1054
+ }
1055
+ function Ar(s, e, t, { scaleInfo: i }) {
1056
+ if (!e.spriteRasterizationParam)
1057
+ throw new Error("InternalError: Sprite should always be defined");
1058
+ const r = !!e.hasUnresolvedReplacementColor && (!t || e.colorLocked), a = e.sampleAlphaOnly && !r, o = e.spriteRasterizationParam;
1059
+ return [s.createMeshInfo({ params: { color: Y(e.color) ?? [0, 0, 0, 0], height: e.height, aspectRatio: e.scaleX, offsetX: e.offsetX, offsetY: e.offsetY, scaleX: 1, scaleY: 1, angle: e.angle, applyRandomOffset: e.applyRandomOffset, sampleAlphaOnly: a, scaleProportionally: o.resource.type === "CIMHatchFill", sprite: o, scaleInfo: i, effects: e.effects ? { type: "cim-effect-infos", effectInfos: e.effects } : null } })];
1060
+ }
1061
+ function Rr(s, e, t) {
1062
+ const { uniforms: i, schemaOptions: r } = e, { store: a } = r, o = s.isOutline ? { ...xt, visualVariableSizeScaleStops: i.visualVariableSizeOutlineScaleStops } : { visualVariableColor: s.colorLocked ? null : i.visualVariableColor, visualVariableOpacity: i.visualVariableOpacity, visualVariableSizeMinMaxValue: i.visualVariableSizeMinMaxValue, visualVariableSizeScaleStops: i.visualVariableSizeScaleStops, visualVariableSizeStops: i.visualVariableSizeStops, visualVariableSizeUnitValue: i.visualVariableSizeUnitValue }, l = { geometry: o }, u = !!(o.visualVariableSizeMinMaxValue || o.visualVariableSizeScaleStops || o.visualVariableSizeStops || o.visualVariableSizeUnitValue);
1063
+ return s.spriteRasterizationParam ? Cr(a.ensureInstance(J.texturedLine, l, { zoomRange: !!t.scaleInfo }), s, u, t) : Ir(a.ensureInstance(J.line, l, { zoomRange: !!t.scaleInfo }), s, u, t);
1064
+ }
1065
+ function Ti(s, e, { scaleInfo: t }) {
1066
+ return { params: { color: Y(s.color) ?? [0, 0, 0, 0], width: s.width, referenceWidth: s.referenceWidth, capType: s.cap, joinType: s.join, miterLimit: s.miterLimit, scaleInfo: t, hasSizeVV: e, effects: s.effects ? { type: "cim-effect-infos", effectInfos: s.effects } : null } };
1067
+ }
1068
+ function Ir(s, e, t, i) {
1069
+ if (e.spriteRasterizationParam)
1070
+ throw new Error("InternalError: Sprite should not be defined");
1071
+ return [s.createMeshInfo({ params: Ti(e, t, i).params })];
1072
+ }
1073
+ function Cr(s, e, t, i) {
1074
+ const { spriteRasterizationParam: r, scaleDash: a, sampleAlphaOnly: o } = e;
1075
+ if (!r)
1076
+ throw new Error("InternalError: Sprite should be defined");
1077
+ return [s.createMeshInfo({ params: { ...Ti(e, t, i).params, shouldScaleDash: a ?? !1, shouldSampleAlphaOnly: o, isSDF: r.resource.type !== "CIMPictureStroke", sprite: r } })];
1078
+ }
1079
+ function Or(s, e, t) {
1080
+ const { uniforms: i, schemaOptions: r } = e, { store: a } = r;
1081
+ return Er(a.ensureInstance(J.text, { geometry: { visualVariableColor: s.colorLocked ? null : i.visualVariableColor, visualVariableOpacity: i.visualVariableOpacity, visualVariableRotation: i.visualVariableRotation, visualVariableSizeMinMaxValue: i.visualVariableSizeMinMaxValue, visualVariableSizeScaleStops: i.visualVariableSizeScaleStops, visualVariableSizeStops: i.visualVariableSizeStops, visualVariableSizeUnitValue: i.visualVariableSizeUnitValue } }, { zoomRange: !!t.scaleInfo, referenceSymbol: !1, clipAngle: !1 }), s, i, t);
1082
+ }
1083
+ function Er(s, e, t, { scaleInfo: i, scaleExpression: r }) {
1084
+ return [s.createMeshInfo({ params: { boxBackgroundColor: Y(e.backgroundColor), boxBorderLineColor: Y(e.borderLineColor), boxBorderLineSize: e.borderLineWidth ?? 0, color: Y(e.color) ?? [0, 0, 0, 0], offsetX: e.offsetX, offsetY: e.offsetY, postAngle: e.angle, fontSize: e.size, referenceSize: e.referenceSize, decoration: e.decoration, haloColor: Y(e.outlineColor) ?? [0, 0, 0, 0], haloFontSize: e.outlineSize, lineWidth: e.lineWidth || 512, lineHeightRatio: 1, horizontalAlignment: e.horizontalAlignment ?? "center", verticalAlignment: e.verticalAlignment ?? "baseline", useCIMAngleBehavior: !1, glyphs: e.textRasterizationParam, scaleInfo: i, effects: e.effects ? { type: "cim-effect-infos", effectInfos: e.effects } : null, placement: e.markerPlacement, transforms: e.transform, scaleFactor: r ?? 1, minPixelBuffer: Fi(t), repeatLabel: null, repeatLabelDistance: null, allowOverrun: null, labelPosition: null, isLineLabel: !1 } })];
1085
+ }
1086
+ function Ya(s, e) {
1087
+ return { type: "simple", filters: e, capabilities: { maxTextureSize: vt().maxTextureSize }, bindings: Dr(s) };
1088
+ }
1089
+ function Xe(s) {
1090
+ switch (s) {
1091
+ case "opacity":
1092
+ return Oe.OPACITY;
1093
+ case "color":
1094
+ return Oe.COLOR;
1095
+ case "rotation":
1096
+ return Oe.ROTATION;
1097
+ case "size":
1098
+ return Oe.SIZE;
1099
+ default:
1100
+ return null;
1101
+ }
1102
+ }
1103
+ function Dr(s) {
1104
+ if (!s)
1105
+ return [];
1106
+ switch (s.type) {
1107
+ case "simple":
1108
+ case "class-breaks":
1109
+ case "unique-value":
1110
+ case "dictionary":
1111
+ return Ai(s);
1112
+ case "dot-density":
1113
+ return Lr(s);
1114
+ case "pie-chart":
1115
+ return Br(s);
1116
+ case "heatmap":
1117
+ return kr(s);
1118
+ }
1119
+ }
1120
+ function Lr(s) {
1121
+ const e = [];
1122
+ for (const t of s.attributes)
1123
+ e.push({ binding: e.length, expression: t.valueExpression, field: t.field });
1124
+ return e;
1125
+ }
1126
+ function Br(s) {
1127
+ const e = Ai(s);
1128
+ let t = 4;
1129
+ for (const i of s.attributes)
1130
+ e.push({ binding: t++, expression: i.valueExpression, field: i.field });
1131
+ return e;
1132
+ }
1133
+ function kr({ valueExpression: s, field: e }) {
1134
+ return s || e ? [{ binding: 0, expression: s, field: e }] : [];
1135
+ }
1136
+ function Ai(s) {
1137
+ var e;
1138
+ return !("visualVariables" in s) || !((e = s.visualVariables) != null && e.length) ? [] : Pi(s.visualVariables).map((t) => Gr(t)).filter(gs);
1139
+ }
1140
+ function Nr(s) {
1141
+ return s.valueExpression === "$view.scale" ? null : { binding: Xe(s.type), field: s.field, normalizationField: s.normalizationField, expression: s.valueExpression, valueRepresentation: s.valueRepresentation };
1142
+ }
1143
+ function Ur(s) {
1144
+ return { binding: Xe(s.type), field: s.field, normalizationField: s.normalizationField, expression: s.valueExpression };
1145
+ }
1146
+ function Hr(s) {
1147
+ return { binding: Xe(s.type), field: s.field, normalizationField: s.normalizationField, expression: s.valueExpression };
1148
+ }
1149
+ function Wr(s) {
1150
+ return { binding: Xe(s.type), expression: s.valueExpression, field: s.field };
1151
+ }
1152
+ function Gr(s) {
1153
+ switch (s.type) {
1154
+ case "size":
1155
+ return Nr(s);
1156
+ case "color":
1157
+ return Ur(s);
1158
+ case "opacity":
1159
+ return Hr(s);
1160
+ case "rotation":
1161
+ return Wr(s);
1162
+ }
1163
+ }
1164
+ function it(s) {
1165
+ return s.some((e) => e.globalId);
1166
+ }
1167
+ function Me(s) {
1168
+ return s.filter((e) => !e.error).map((e) => e.objectId ?? e.globalId).filter((e) => e != null);
1169
+ }
1170
+ function Wt(s, e) {
1171
+ const t = new Set(s);
1172
+ for (const i of e.values())
1173
+ t.add(i);
1174
+ return t;
1175
+ }
1176
+ function Gt(s, e) {
1177
+ const t = new Set(s);
1178
+ for (const i of e.values())
1179
+ t.delete(i);
1180
+ return t;
1181
+ }
1182
+ class Qa {
1183
+ constructor(e) {
1184
+ this.updateTracking = new cs({ debugName: "FeatureCommandQueue" }), this._hasGlobalIds = !1, this._queueProcessor = new xs({ concurrency: 1, process: e.process });
1185
+ }
1186
+ destroy() {
1187
+ this.updateTracking.destroy(), this._queueProcessor.destroy(), this.clear();
1188
+ }
1189
+ clear() {
1190
+ this._queueProcessor.clear();
1191
+ }
1192
+ async push(e) {
1193
+ return this.updateTracking.addPromise(this._doPush(e));
1194
+ }
1195
+ async _doPush(e) {
1196
+ const t = this._queueProcessor, i = t.last(), r = [];
1197
+ switch (e.type) {
1198
+ case "update":
1199
+ if ((i == null ? void 0 : i.type) === e.type)
1200
+ return;
1201
+ r.push(t.push(e));
1202
+ break;
1203
+ case "edit": {
1204
+ const a = (i == null ? void 0 : i.type) === "processed-edit" ? i : null;
1205
+ a && t.popLast();
1206
+ const o = this._mergeEdits(a, e);
1207
+ for (const l of o)
1208
+ l && r.push(t.push(l));
1209
+ break;
1210
+ }
1211
+ }
1212
+ await Promise.all(r);
1213
+ }
1214
+ _mergeEdits(e, t) {
1215
+ const { addedFeatures: i, deletedFeatures: r, updatedFeatures: a } = t.edits;
1216
+ if (this._hasGlobalIds = this._hasGlobalIds || it(i) || it(a) || it(r), this._hasGlobalIds)
1217
+ return [e, { type: "processed-edit", edits: { addOrModified: [...i, ...a], removed: r } }];
1218
+ const o = new Set(Me((e == null ? void 0 : e.edits.addOrModified) ?? [])), l = new Set(Me((e == null ? void 0 : e.edits.removed) ?? [])), u = /* @__PURE__ */ new Set([...Me(i), ...Me(a)]), p = new Set(Me(r));
1219
+ return [{ type: "processed-edit", edits: { addOrModified: Array.from(Wt(Gt(o, p), u)).map((d) => ({ objectId: d })), removed: Array.from(Wt(Gt(l, u), p)).map((d) => ({ objectId: d })) } }];
1220
+ }
1221
+ }
1222
+ export {
1223
+ Ga as F,
1224
+ Ar as S,
1225
+ qa as T,
1226
+ Ir as a,
1227
+ Qa as b,
1228
+ Ka as c,
1229
+ ur as d,
1230
+ Fi as e,
1231
+ _r as f,
1232
+ Ai as g,
1233
+ J as h,
1234
+ Za as i,
1235
+ ja as m,
1236
+ Xa as n,
1237
+ Fr as p,
1238
+ zr as s,
1239
+ Ya as t,
1240
+ Mr as u,
1241
+ xt as x,
1242
+ Er as y,
1243
+ Cr as z
1244
+ };