@arcgis/core 5.0.0-next.66 → 5.0.0-next.68

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 (595) hide show
  1. package/Ground.d.ts +4 -4
  2. package/Map.d.ts +1 -1
  3. package/WebDocument2D.d.ts +2 -3
  4. package/WebScene.d.ts +2 -3
  5. package/analysis/ElevationProfile/ElevationProfileLineViewOptions.d.ts +9 -6
  6. package/analysis/ElevationProfile/ElevationProfileLineViewOptions.js +1 -1
  7. package/applications/Components/QuantityFormatter.d.ts +14 -1
  8. package/applications/Components/SelectionOperation.d.ts +45 -9
  9. package/applications/Components/SketchTooltipControls.d.ts +31 -6
  10. package/applications/Components/actionUtils.d.ts +1 -0
  11. package/applications/Components/analysisUtils.d.ts +98 -26
  12. package/applications/Components/arcadeEditorUtils.d.ts +3 -0
  13. package/applications/Components/arcadeFeatureUtils.d.ts +34 -6
  14. package/applications/Components/baUtils.d.ts +8 -8
  15. package/applications/Components/basemapUtils.d.ts +2 -0
  16. package/applications/Components/drawUtils.d.ts +6 -1
  17. package/applications/Components/featureUtils.d.ts +9 -0
  18. package/applications/Components/fontUtils.d.ts +2 -0
  19. package/applications/Components/formatUtils.d.ts +2 -0
  20. package/applications/Components/getDefaultUnits.d.ts +2 -0
  21. package/applications/Components/imageryUtils.d.ts +135 -27
  22. package/applications/Components/layerOriginUtils.d.ts +5 -0
  23. package/applications/Components/layersEffectsJsonUtils.d.ts +2 -0
  24. package/applications/Components/previewSymbol2D.d.ts +2 -0
  25. package/applications/Components/reactiveUtils.d.ts +13 -9
  26. package/applications/Components/sanitizerUtils.d.ts +2 -0
  27. package/applications/Components/stringUtils.d.ts +5 -0
  28. package/applications/Components/styleUtils.d.ts +2 -0
  29. package/applications/Components/svgUtils.d.ts +4 -0
  30. package/applications/Components/testUtils.d.ts +3 -0
  31. package/applications/Components/viewUtils.d.ts +2 -0
  32. package/applications/Components/webStyleSymbolUtils.d.ts +2 -0
  33. package/applications/Excalibur/videoViewUtils.d.ts +19 -3
  34. package/applications/ExperienceBuilder/sketchUtils.d.ts +10 -1
  35. package/applications/KnowledgeStudio/dataModelVisualization.d.ts +2 -0
  36. package/applications/KnowledgeStudio/generalSdkInternalAccess.d.ts +33 -4
  37. package/applications/KnowledgeStudio/generalSharedKgUtils.d.ts +73 -10
  38. package/applications/KnowledgeStudio/layerInternalAccessUtils.d.ts +12 -1
  39. package/applications/KnowledgeStudio/reshape.d.ts +144 -28
  40. package/applications/KnowledgeStudio/resourceSerializationUtils.d.ts +17 -3
  41. package/applications/MapViewer/layerUtils.d.ts +2 -0
  42. package/applications/MapViewer/mediaUtils.d.ts +42 -8
  43. package/applications/MapViewer/templateUtils.d.ts +78 -16
  44. package/applications/PortalApp/layerUtils.d.ts +2 -0
  45. package/applications/SceneViewer/colorUtils.d.ts +2 -0
  46. package/applications/SceneViewer/devEnvironmentUtils.d.ts +3 -0
  47. package/applications/SceneViewer/layerUtils.d.ts +5 -3
  48. package/applications/SceneViewer/sceneViewerUtils.d.ts +52 -5
  49. package/applications/SceneViewer/symbolUtils.d.ts +2 -0
  50. package/applications/Urban/LineImagePattern3D.d.ts +8 -2
  51. package/applications/Urban/imagePatternUtils.d.ts +10 -2
  52. package/applications/Urban/meshUtils.d.ts +2 -0
  53. package/applications/WebEditor/sketchUtils.d.ts +24 -4
  54. package/arcade/arcadeAsyncRuntime.js +1 -1
  55. package/arcade/arcadeCompiler.js +1 -1
  56. package/arcade/arcadeRuntime.js +1 -1
  57. package/arcade/batchExec.js +1 -1
  58. package/arcade/compilerUtils.js +1 -1
  59. package/arcade/featureset/actions/SpatialFilter.js +1 -1
  60. package/arcade/geometry/unitConversion.js +1 -1
  61. package/arcade/treeAnalysis.js +1 -1
  62. package/arcade.js +1 -1
  63. package/assets/components/assets/icon/fileEsl16.json +1 -0
  64. package/assets/components/assets/icon/fileEsl24.json +1 -0
  65. package/assets/components/assets/icon/fileEsl32.json +1 -0
  66. package/assets/esri/core/workers/RemoteClient.js +1 -1
  67. package/assets/esri/core/workers/chunks/{251eb6e00f99a816d55c.js → 0326314947734b8e640a.js} +1 -1
  68. package/assets/esri/core/workers/chunks/04176244b0a3539c9681.js +1 -0
  69. package/assets/esri/core/workers/chunks/04958494022f82dca473.js +1 -0
  70. package/assets/esri/core/workers/chunks/0b7bbdc0d71ee6721751.js +2 -0
  71. package/assets/esri/core/workers/chunks/{5909a0e763fddc3542e7.js.LICENSE.txt → 0b7bbdc0d71ee6721751.js.LICENSE.txt} +1 -1
  72. package/assets/esri/core/workers/chunks/0f8149fdcf0adeca268e.js +1 -0
  73. package/assets/esri/core/workers/chunks/{aa7a1705266eec353cb6.js → 0fc22ad791d3ec0a9c5e.js} +1 -1
  74. package/assets/esri/core/workers/chunks/10e474d664b20adcd917.js +1 -0
  75. package/assets/esri/core/workers/chunks/12f9a55253084a910b2e.js +1 -0
  76. package/assets/esri/core/workers/chunks/14dedd80fb797303f91f.js +1 -0
  77. package/assets/esri/core/workers/chunks/1a6d2f525dd30d08cf9b.js +1 -0
  78. package/assets/esri/core/workers/chunks/{81d89107ff82604a3ea0.js → 1b445981fbc8373f4dd8.js} +1 -1
  79. package/assets/esri/core/workers/chunks/{6ba3c2b9f699d94d62b8.js → 1ec1a1997b5577619040.js} +1 -1
  80. package/assets/esri/core/workers/chunks/204d738c8b651314ae64.js +1 -0
  81. package/assets/esri/core/workers/chunks/2085084324cd5a81783f.js +1 -0
  82. package/assets/esri/core/workers/chunks/{e95821a199e10b389e29.js → 25f3ee666f545a7a7993.js} +2 -2
  83. package/assets/esri/core/workers/chunks/{e95821a199e10b389e29.js.LICENSE.txt → 25f3ee666f545a7a7993.js.LICENSE.txt} +1 -1
  84. package/assets/esri/core/workers/chunks/2c2c0f66cffc521df736.js +1 -0
  85. package/assets/esri/core/workers/chunks/2dd347aa2a061d536e69.js +1 -0
  86. package/assets/esri/core/workers/chunks/2dfa7abf2d39fa5a3874.js +1 -0
  87. package/assets/esri/core/workers/chunks/322085d63719da6e443c.js +1 -0
  88. package/assets/esri/core/workers/chunks/{76086517591d0eb35156.js → 34a2e0462eb05986cdd1.js} +1 -1
  89. package/assets/esri/core/workers/chunks/{a6dcd13c792b6538ac50.js → 35593a9790818b689455.js} +1 -1
  90. package/assets/esri/core/workers/chunks/36ecf951c0c7dad84b69.js +1 -0
  91. package/assets/esri/core/workers/chunks/37002a46f03a9fc5f644.js.LICENSE.txt +1 -1
  92. package/assets/esri/core/workers/chunks/3a04153ca9d8e4f01185.js +1 -0
  93. package/assets/esri/core/workers/chunks/{4e9a8fce55cad841c731.js → 3b25f5d9c8f78bb6e011.js} +1 -1
  94. package/assets/esri/core/workers/chunks/3e7ea06b342e33bc48a5.js +1 -0
  95. package/assets/esri/core/workers/chunks/3ed317900f0edf635508.js +1 -0
  96. package/assets/esri/core/workers/chunks/401ce5cb98fa14c1a725.js +1 -0
  97. package/assets/esri/core/workers/chunks/4319b89cfa02894a8cae.js +1 -0
  98. package/assets/esri/core/workers/chunks/43e2c1d72cd9c8beed2f.js.LICENSE.txt +1 -1
  99. package/assets/esri/core/workers/chunks/45a9cd722e98dd1548ae.js +1 -0
  100. package/assets/esri/core/workers/chunks/4a060147d25929680ec8.js +1 -0
  101. package/assets/esri/core/workers/chunks/4bcd74951477e8977ba1.js +1 -0
  102. package/assets/esri/core/workers/chunks/4d0eaeb4cd6cd55e25fd.js +1 -0
  103. package/assets/esri/core/workers/chunks/{687d2b761dc5b5cf0c31.js → 4d4d71d24c1a9cb342b8.js} +1 -1
  104. package/assets/esri/core/workers/chunks/4fa230dc6e5e87b0dec1.js +1 -0
  105. package/assets/esri/core/workers/chunks/50f03813fba4b752ca9f.js +1 -0
  106. package/assets/esri/core/workers/chunks/{abc236e99b52be1c83b9.js → 52a14266fe239b95c5ce.js} +1 -1
  107. package/assets/esri/core/workers/chunks/53b5c77832df7df4d4e3.js +1 -0
  108. package/assets/esri/core/workers/chunks/{34178ace79e8dea3567d.js → 562cddaf63985e53ee6e.js} +1 -1
  109. package/assets/esri/core/workers/chunks/59a45533e96cedf1c480.js +1 -0
  110. package/assets/esri/core/workers/chunks/{c2aeecd27e004c6cd7e1.js → 5b9f2aa3ba1bf12c3240.js} +2 -2
  111. package/assets/esri/core/workers/chunks/{c2aeecd27e004c6cd7e1.js.LICENSE.txt → 5b9f2aa3ba1bf12c3240.js.LICENSE.txt} +1 -1
  112. package/assets/esri/core/workers/chunks/{6599cc702a46f81a5634.js → 5dd5be91038df8902dc4.js} +1 -1
  113. package/assets/esri/core/workers/chunks/{49a1b7f700b8a42de817.js → 60c7f896f2246a8aa6d7.js} +19 -19
  114. package/assets/esri/core/workers/chunks/60f363ee2add089e8f0b.js +1 -0
  115. package/assets/esri/core/workers/chunks/61801bb8c7be8fe77086.js +1 -0
  116. package/assets/esri/core/workers/chunks/679cd6424e0e2d7f372b.js +1 -0
  117. package/assets/esri/core/workers/chunks/68074a484d7f9bc713c0.js +1 -0
  118. package/assets/esri/core/workers/chunks/6acfa51b81e6f4255118.js +1 -0
  119. package/assets/esri/core/workers/chunks/{3fe7be535affae31de7e.js → 6b85a8776ec2beff63cb.js} +1 -1
  120. package/assets/esri/core/workers/chunks/6be530ab81291745485b.js.LICENSE.txt +1 -1
  121. package/assets/esri/core/workers/chunks/6df484faf54e90a6cc77.js +1 -0
  122. package/assets/esri/core/workers/chunks/6ea6ad894ac634aa4391.js +1 -0
  123. package/assets/esri/core/workers/chunks/6f8098f9fe233833245a.js +1 -0
  124. package/assets/esri/core/workers/chunks/73c416ae0ec5a1815591.js.LICENSE.txt +1 -1
  125. package/assets/esri/core/workers/chunks/75fd2ef1236a9364ca7f.js +1 -0
  126. package/assets/esri/core/workers/chunks/{23b623637126f8411a30.js → 7aec07f2482934259d12.js} +1 -1
  127. package/assets/esri/core/workers/chunks/7be9bbae23895d1cfa92.js +1 -0
  128. package/assets/esri/core/workers/chunks/{741d170187e58e81584d.js → 7d744554d14057d9b2b1.js} +1 -1
  129. package/assets/esri/core/workers/chunks/7ea48661f1087d06aa41.js +1 -0
  130. package/assets/esri/core/workers/chunks/{47e5149765beee46f208.js → 7ee68f67f9cc48a328f0.js} +1 -1
  131. package/assets/esri/core/workers/chunks/866477acdf03b8a40bc9.js +1 -0
  132. package/assets/esri/core/workers/chunks/8e83c133b201b9b61e70.js +1 -0
  133. package/assets/esri/core/workers/chunks/9086a4933d3d3d9ffa72.js +1 -0
  134. package/assets/esri/core/workers/chunks/94174d40de39dbe7d0bf.js +1 -0
  135. package/assets/esri/core/workers/chunks/98f4b44eca91c42ca08e.js +1 -0
  136. package/assets/esri/core/workers/chunks/9ccabf8142fb5de4d3e2.js.LICENSE.txt +1 -1
  137. package/assets/esri/core/workers/chunks/{dd99b77a7c0a052507bb.js → 9d88b4ba8e511da64583.js} +3 -3
  138. package/assets/esri/core/workers/chunks/a808be466812db51813d.js +1 -0
  139. package/assets/esri/core/workers/chunks/{6b4a24248182245167ca.js → a931515a2569713e743b.js} +1 -1
  140. package/assets/esri/core/workers/chunks/a95e28ade258b144cbb5.js +1 -0
  141. package/assets/esri/core/workers/chunks/adc68e2c6d2698a52bfe.js +1 -0
  142. package/assets/esri/core/workers/chunks/aeb524eded012217a865.js +1 -0
  143. package/assets/esri/core/workers/chunks/b2a1e5e9182b643909eb.js +316 -0
  144. package/assets/esri/core/workers/chunks/{ac6f002cfad42e60de8f.js → b48033645091c91e0d88.js} +1 -1
  145. package/assets/esri/core/workers/chunks/b8988771bfa4e785ebd6.js +1 -0
  146. package/assets/esri/core/workers/chunks/bb4574a87ca21e719f0d.js +1 -0
  147. package/assets/esri/core/workers/chunks/{07639f406b71bb49ffd6.js → bdbb5b33f0f49661bf6d.js} +1 -1
  148. package/assets/esri/core/workers/chunks/c042269586921e337be9.js +1 -0
  149. package/assets/esri/core/workers/chunks/c623918e289a09905cd1.js +1 -0
  150. package/assets/esri/core/workers/chunks/c7391b0b5a9c916a53f7.js +1 -0
  151. package/assets/esri/core/workers/chunks/{ac83c2999a3d2ffb4356.js → c7838ac0db8570a2d2c1.js} +1 -1
  152. package/assets/esri/core/workers/chunks/c91ef3814e7f024043cf.js +1 -0
  153. package/assets/esri/core/workers/chunks/{43d28c6509c21b8917a8.js → ca7523c14d81c470e92e.js} +1 -1
  154. package/assets/esri/core/workers/chunks/cd2708fb7636b3ace229.js +1 -0
  155. package/assets/esri/core/workers/chunks/{310f3268582e61cd86da.js → d21480925a8bc9c7de96.js} +1 -1
  156. package/assets/esri/core/workers/chunks/d445e9399fe4ca3d2a50.js +1 -0
  157. package/assets/esri/core/workers/chunks/d7683a95775c9f401a7e.js +1 -0
  158. package/assets/esri/core/workers/chunks/{9d6945cda99d14af83ac.js → d7d9656b990ce8be2152.js} +1 -1
  159. package/assets/esri/core/workers/chunks/d9ca754f51b9812bb179.js +1 -0
  160. package/assets/esri/core/workers/chunks/d9ef0b3341e2744d8f2f.js +1 -0
  161. package/assets/esri/core/workers/chunks/df4a0af329ce94a47a7b.js +1 -0
  162. package/assets/esri/core/workers/chunks/e10d6e511921394474ca.js +1 -0
  163. package/assets/esri/core/workers/chunks/e4b6aa8f67c2bd285020.js +1 -0
  164. package/assets/esri/core/workers/chunks/e5aac523c37d906eece6.js +1 -0
  165. package/assets/esri/core/workers/chunks/e6ca02f98f855024f74b.js +1 -0
  166. package/assets/esri/core/workers/chunks/{892157696e8f9e38c472.js → e6e837e43b9348050832.js} +1 -1
  167. package/assets/esri/core/workers/chunks/{d3325ed8d224e2350db7.js → e8a3ad00936f2ccaf362.js} +1 -1
  168. package/assets/esri/core/workers/chunks/{f351007cdcd0938d3b6c.js → eeb24a4ab4993f1f4e8e.js} +1 -1
  169. package/assets/esri/core/workers/chunks/ef7063ee790d2d64d4b2.js +1 -0
  170. package/assets/esri/core/workers/chunks/{b65fcfde62d49de1fa54.js → ef977be20a647aeded0a.js} +1 -1
  171. package/assets/esri/core/workers/chunks/efb631371b6bb3f043bb.js +1 -0
  172. package/assets/esri/core/workers/chunks/{0f5693541111fcae0c2f.js → f0914715e90e43466f8c.js} +1 -1
  173. package/assets/esri/core/workers/chunks/f25bebd2b6eb0d0f6626.js.LICENSE.txt +1 -1
  174. package/assets/esri/core/workers/chunks/f95e488d2b86e320624f.js +1 -0
  175. package/assets/esri/core/workers/chunks/{bfc063d4431bfa162160.js → fd09f38fb4d99bf34988.js} +1 -1
  176. package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
  177. package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
  178. package/assets/esri/libs/text/pkg/bundle_bg.wasm +0 -0
  179. package/chunks/boundedPlane.js +1 -1
  180. package/chunks/bundle2.js +5 -0
  181. package/config.js +1 -1
  182. package/copyright.txt +70 -1
  183. package/core/BidiText.js +1 -1
  184. package/core/accessorSupport/ensureType.js +1 -1
  185. package/core/compilerUtils.js +1 -1
  186. package/core/typedArrayUtil.js +1 -1
  187. package/core/units.js +1 -1
  188. package/core/workers/loaderConfig.js +1 -1
  189. package/editing/sharedTemplates/SharedTemplate.js +1 -1
  190. package/geometry/support/FloatArray.js +1 -1
  191. package/geometry/support/Indices.js +1 -1
  192. package/geometry/support/MeshTexture.js +1 -1
  193. package/geometry/support/aaBoundingRect.js +1 -1
  194. package/geometry/support/boundedPlane.js +1 -1
  195. package/geometry/support/heightModelInfoUtils.js +1 -1
  196. package/geometry/support/meshUtils/External.js +1 -1
  197. package/geometry/support/meshUtils/exporters/gltf/imageutils.js +1 -1
  198. package/geometry/support/meshUtils/loadExternal.js +1 -1
  199. package/geometry/support/rotate.js +1 -1
  200. package/interfaces.d.ts +23 -24
  201. package/kernel.js +1 -1
  202. package/layers/BingMapsLayer.d.ts +2 -3
  203. package/layers/BuildingSceneLayer.d.ts +3 -5
  204. package/layers/CatalogLayer.d.ts +2 -4
  205. package/layers/DimensionLayer.d.ts +2 -3
  206. package/layers/ElevationLayer.d.ts +2 -4
  207. package/layers/FeatureLayer.d.ts +2 -4
  208. package/layers/GaussianSplatLayer.d.ts +1 -3
  209. package/layers/GeoJSONLayer.d.ts +2 -3
  210. package/layers/GeoRSSLayer.d.ts +2 -3
  211. package/layers/GroupLayer.d.ts +2 -3
  212. package/layers/ImageryLayer.d.ts +2 -5
  213. package/layers/ImageryTileLayer.d.ts +3 -7
  214. package/layers/IntegratedMesh3DTilesLayer.d.ts +2 -4
  215. package/layers/IntegratedMeshLayer.d.ts +2 -4
  216. package/layers/KMLLayer.d.ts +2 -3
  217. package/layers/KnowledgeGraphLayer.d.ts +2 -4
  218. package/layers/LineOfSightLayer.d.ts +2 -3
  219. package/layers/LinkChartLayer.d.ts +2 -3
  220. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  221. package/layers/MapImageLayer.d.ts +2 -4
  222. package/layers/MapNotesLayer.d.ts +2 -3
  223. package/layers/MediaLayer.d.ts +3 -4
  224. package/layers/OGCFeatureLayer.d.ts +2 -3
  225. package/layers/ParquetLayer.d.ts +2 -3
  226. package/layers/PointCloudLayer.d.ts +2 -4
  227. package/layers/RouteLayer.d.ts +2 -3
  228. package/layers/SceneLayer.d.ts +2 -4
  229. package/layers/StreamLayer.d.ts +2 -4
  230. package/layers/SubtypeGroupLayer.d.ts +2 -4
  231. package/layers/TileLayer.d.ts +2 -4
  232. package/layers/UnknownLayer.d.ts +2 -3
  233. package/layers/UnsupportedLayer.d.ts +2 -3
  234. package/layers/VectorTileLayer.d.ts +2 -4
  235. package/layers/VideoLayer.d.ts +8 -9
  236. package/layers/ViewshedLayer.d.ts +2 -3
  237. package/layers/VoxelLayer.d.ts +2 -4
  238. package/layers/WCSLayer.d.ts +2 -4
  239. package/layers/WFSLayer.d.ts +2 -3
  240. package/layers/WMSLayer.d.ts +5 -6
  241. package/layers/WMTSLayer.d.ts +4 -5
  242. package/layers/WebTileLayer.d.ts +2 -3
  243. package/layers/buildingSublayers/BuildingGroupSublayer.d.ts +1 -1
  244. package/layers/buildingSublayers/BuildingSublayer.d.ts +3 -3
  245. package/layers/buildingSublayers/BuildingSublayer.js +1 -1
  246. package/layers/catalog/CatalogDynamicGroupLayer.d.ts +2 -3
  247. package/layers/catalog/CatalogFootprintLayer.d.ts +2 -3
  248. package/layers/graphics/controllers/FeatureTileController3D.js +1 -1
  249. package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
  250. package/layers/graphics/data/QueryEngineResult.js +1 -1
  251. package/layers/graphics/dehydratedFeatureComparison.js +1 -1
  252. package/layers/graphics/dehydratedFeatures.js +1 -1
  253. package/layers/graphics/hydratedFeatures.js +1 -1
  254. package/layers/knowledgeGraph/KnowledgeGraphSublayer.d.ts +4 -6
  255. package/layers/{support/media.d.ts → media/types.d.ts} +9 -9
  256. package/layers/mixins/ArcGISImageService.d.ts +1 -1
  257. package/layers/mixins/ImageryTileMixin.d.ts +1 -1
  258. package/layers/orientedImagery/transformations/rectifyMapPoint.js +1 -1
  259. package/layers/raster/datasets/wcsCoverageParser.d.ts +1 -1
  260. package/layers/raster/functions/changeDetectionUtils.js +1 -1
  261. package/layers/raster/functions/creators/createLocalFunctions.d.ts +1 -1
  262. package/layers/raster/functions/customBandIndexUtils.js +1 -1
  263. package/layers/raster/functions/focalStatUtils.js +1 -1
  264. package/layers/raster/functions/pixelTransformUtils.js +1 -1
  265. package/layers/raster/functions/types.d.ts +1 -1
  266. package/layers/{support/RasterTypes.d.ts → raster/types.d.ts} +2 -2
  267. package/layers/save/featureLayerUtils.js +1 -1
  268. package/layers/support/ElevationQuery.d.ts +2 -2
  269. package/layers/support/ElevationSampler.js +1 -1
  270. package/layers/support/FeatureType.d.ts +2 -2
  271. package/layers/support/Field.d.ts +2 -3
  272. package/layers/support/FieldConfiguration.d.ts +1 -1
  273. package/layers/support/ImageElement.d.ts +3 -3
  274. package/layers/support/LocalMediaElementSource.d.ts +1 -1
  275. package/layers/support/MediaElementBase.d.ts +4 -7
  276. package/layers/support/PixelBlock.d.ts +1 -1
  277. package/layers/support/RasterFunction.d.ts +1 -1
  278. package/layers/support/RasterInfo.d.ts +1 -1
  279. package/layers/support/Sublayer.d.ts +2 -3
  280. package/layers/support/Subtype.d.ts +2 -2
  281. package/layers/support/SubtypeSublayer.d.ts +2 -3
  282. package/layers/support/SubtypeSublayer.js +1 -1
  283. package/layers/support/VideoElement.d.ts +2 -2
  284. package/layers/support/WMSSublayer.d.ts +6 -6
  285. package/layers/support/WMSSublayer.js +1 -1
  286. package/layers/support/domains.js +1 -1
  287. package/layers/support/rasterFunctionUtils.d.ts +1 -1
  288. package/layers/support/tiles3DUtils.js +1 -1
  289. package/layers/support/types.d.ts +33 -1
  290. package/layers/types.d.ts +17 -2
  291. package/layers/wmts/types.d.ts +2 -0
  292. package/libs/text/loadTextModule.js +5 -0
  293. package/linkChart/LinkChartProperties.d.ts +4 -6
  294. package/linkChart/LinkChartProperties.js +1 -1
  295. package/networks/Network.d.ts +2 -4
  296. package/networks/support/NamedTraceConfiguration.d.ts +3 -3
  297. package/networks/support/NamedTraceConfiguration.js +1 -1
  298. package/networks/support/TopologyValidationJobInfo.js +1 -1
  299. package/networks/support/TraceJobInfo.js +1 -1
  300. package/package.json +3 -3
  301. package/popup/FieldInfo.d.ts +1 -1
  302. package/renderers/support/RasterSymbolizer.js +1 -1
  303. package/renderers/support/rendererConversion.js +1 -1
  304. package/renderers/visualVariables/support/visualVariableUtils.js +1 -1
  305. package/request/process.js +1 -1
  306. package/rest/geometryService/types.d.ts +59 -0
  307. package/rest/geometryService.d.ts +3 -5
  308. package/rest/query/operations/pbfDehydratedFeatureSet.js +1 -1
  309. package/rest/query/operations/query.js +1 -1
  310. package/rest/query/support/AttachmentInfo.d.ts +2 -2
  311. package/rest/support/AlgorithmicColorRamp.d.ts +2 -2
  312. package/rest/support/BinParametersBase.d.ts +2 -2
  313. package/rest/support/BinParametersBase.js +1 -1
  314. package/rest/support/DateBinTimeInterval.d.ts +1 -1
  315. package/rest/support/GeneralizeParameters.d.ts +1 -1
  316. package/rest/support/ImageSampleParameters.d.ts +1 -1
  317. package/rest/support/JobInfo.js +1 -1
  318. package/rest/support/PrintTemplate.d.ts +4 -6
  319. package/rest/support/ServiceAreaParameters.js +1 -1
  320. package/rest/support/types.d.ts +17 -1
  321. package/smartMapping/heuristics/sizeRange.js +1 -1
  322. package/smartMapping/renderers/support/utils.js +1 -1
  323. package/smartMapping/statistics/support/statsWorker.js +1 -1
  324. package/smartMapping/statistics/support/utils.js +1 -1
  325. package/smartMapping/support/adapters/FeatureLayerAdapter.js +1 -1
  326. package/smartMapping/support/adapters/InMemoryLayerAdapter.js +1 -1
  327. package/smartMapping/support/adapters/support/histogramUtils.js +1 -1
  328. package/smartMapping/support/adapters/support/utils.js +1 -1
  329. package/smartMapping/support/utils.js +1 -1
  330. package/support/revision.js +1 -1
  331. package/symbols/WebStyleSymbol.d.ts +0 -24
  332. package/symbols/WebStyleSymbol.js +1 -1
  333. package/symbols/support/ElevationInfo.d.ts +2 -2
  334. package/symbols/support/IconSymbol3DLayerResource.d.ts +1 -1
  335. package/symbols/support/defaults.js +1 -1
  336. package/symbols/support/defaults3D.js +1 -1
  337. package/symbols/support/previewSymbol3D.js +1 -1
  338. package/symbols/support/symbolLayerUtils3D.js +1 -1
  339. package/symbols/support/symbolUtils.js +1 -1
  340. package/symbols/support/utils.js +1 -1
  341. package/views/2d/analysis/ElevationProfile/ElevationProfileLineVisualization2D.js +1 -1
  342. package/views/2d/analysis/ElevationProfileAnalysisView2D.d.ts +16 -11
  343. package/views/2d/analysis/ElevationProfileAnalysisView2D.js +1 -1
  344. package/views/2d/engine/imagery/RasterVFDisplayObject.js +1 -1
  345. package/views/2d/engine/vectorTiles/VectorTile.js +1 -1
  346. package/views/2d/engine/vectorTiles/shaders/sources/shaderRepository.js +1 -1
  347. package/views/2d/engine/webgl/GlyphMosaic.js +1 -1
  348. package/views/2d/engine/webgl/GlyphSDFCreator.js +5 -0
  349. package/views/2d/engine/webgl/GlyphSource.js +1 -1
  350. package/views/2d/engine/webgl/TextureManager.js +1 -1
  351. package/views/2d/engine/webgl/TextureUploadManager.js +1 -1
  352. package/views/2d/engine/webgl/definitions.js +1 -1
  353. package/views/2d/engine/webgl/mesh/templates/shapingUtils.js +1 -1
  354. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
  355. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/constants.js +1 -1
  356. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextMeshWriter.js +1 -1
  357. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
  358. package/views/2d/input/handlers/DoubleTapDragZoom.js +1 -1
  359. package/views/2d/input/handlers/KeyZoom.js +1 -1
  360. package/views/2d/layers/BaseLayerView2D.d.ts +3 -6
  361. package/views/2d/layers/BaseLayerViewGL2D.d.ts +3 -6
  362. package/views/2d/layers/FeatureLayerView2D.js +1 -1
  363. package/views/2d/layers/TileLayerView2D.js +1 -1
  364. package/views/2d/layers/features/sources/strategies/support/queryAdapters.js +1 -1
  365. package/views/2d/layers/features/support/FeatureSetReaderPBF.js +1 -1
  366. package/views/3d/analysis/AreaMeasurement/support/utils.js +1 -1
  367. package/views/3d/analysis/Dimension/lengthDimensionConstraintUtils.js +1 -1
  368. package/views/3d/analysis/ElevationProfile/ElevationProfileLineVisualization3D.js +1 -1
  369. package/views/3d/analysis/ElevationProfileAnalysisView3D.d.ts +16 -11
  370. package/views/3d/analysis/ElevationProfileAnalysisView3D.js +1 -1
  371. package/views/3d/analysis/Slice/sliceToolUtils.js +1 -1
  372. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillController.js +1 -1
  373. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementTool.js +1 -1
  374. package/views/3d/analysis/VolumeMeasurementAnalysisView3D.js +1 -1
  375. package/views/3d/camera/constraintUtils/tilt.js +1 -1
  376. package/views/3d/environment/CloudsParameters.js +1 -1
  377. package/views/3d/environment/CloudsRenderer.js +1 -1
  378. package/views/3d/environment/SceneViewEnvironment.js +1 -1
  379. package/views/3d/glTF/internal/Resource.js +1 -1
  380. package/views/3d/glTF/internal/fillDefaults.js +1 -1
  381. package/views/3d/interactive/Manipulator3D.js +1 -1
  382. package/views/3d/interactive/SnappingVisualizer3D.js +1 -1
  383. package/views/3d/interactive/editingTools/isSupportedObjectUtils.js +1 -1
  384. package/views/3d/interactive/editingTools/move/isSupportedObject.js +1 -1
  385. package/views/3d/interactive/editingTools/transform/isSupportedGraphic.js +1 -1
  386. package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
  387. package/views/3d/layers/I3SMeshView3D.js +1 -1
  388. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  389. package/views/3d/layers/PointCloudLayerView3D.js +1 -1
  390. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  391. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  392. package/views/3d/layers/graphics/Graphics3DFeatureProcessor.js +1 -1
  393. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  394. package/views/3d/layers/graphics/Graphics3DPathSymbolLayer.js +1 -1
  395. package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
  396. package/views/3d/layers/graphics/LabelInfo.js +1 -1
  397. package/views/3d/layers/graphics/defaultSymbolComplexity.js +1 -1
  398. package/views/3d/layers/graphics/lineUtils.js +1 -1
  399. package/views/3d/layers/graphics/pipeline/rendering/FeaturePipelineRenderManager.js +1 -1
  400. package/views/3d/layers/graphics/pipeline/symbolization/primitiveObjectUtils.js +1 -1
  401. package/views/3d/layers/graphics/primitiveObjectSymbolUtils.js +1 -1
  402. package/views/3d/layers/i3s/BuildingFilterUtil.js +1 -1
  403. package/views/3d/layers/i3s/I3SIntersectionHandler.js +1 -1
  404. package/views/3d/layers/i3s/I3SNode.js +1 -1
  405. package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
  406. package/views/3d/layers/i3s/PointCloudWorkerUtil.js +1 -1
  407. package/views/3d/layers/i3s/SphereCone.js +5 -0
  408. package/views/3d/layers/support/FastSymbolUpdates.js +1 -1
  409. package/views/3d/layers/support/edgeUtils.js +1 -1
  410. package/views/3d/layers/support/featureReference.js +1 -1
  411. package/views/3d/layers/support/featureTileQuery3D.js +1 -1
  412. package/views/3d/layers/support/patternUtils.js +1 -1
  413. package/views/3d/state/controllers/GamepadKeyboardController.js +1 -1
  414. package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
  415. package/views/3d/support/FrustumExtentIntersection.js +1 -1
  416. package/views/3d/support/buffer/glUtil.js +1 -1
  417. package/views/3d/support/engineContent/sdfPrimitives.js +1 -1
  418. package/views/3d/support/viewpointUtils.js +1 -1
  419. package/views/3d/terrain/isTerrainSurfaceLayer.js +1 -1
  420. package/views/3d/webgl/RenderNode.js +1 -1
  421. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  422. package/views/3d/webgl-engine/collections/Component/IntersectionGeometry.js +1 -1
  423. package/views/3d/webgl-engine/collections/Component/Material/ComponentData.glsl.js +8 -8
  424. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  425. package/views/3d/webgl-engine/core/shaderLibrary/TextureBackedBufferFields.glsl.js +3 -3
  426. package/views/3d/webgl-engine/core/shaderLibrary/attributes/NormalAttribute.glsl.js +4 -4
  427. package/views/3d/webgl-engine/core/shaderLibrary/attributes/TextureCoordinateAttribute.glsl.js +2 -2
  428. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexNormal.glsl.js +2 -2
  429. package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeFragmentNormals.glsl.js +6 -6
  430. package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js +1 -1
  431. package/views/3d/webgl-engine/core/shaderLibrary/shading/Normals.glsl.js +5 -5
  432. package/views/3d/webgl-engine/core/shaderLibrary/terrain/TileBackground.glsl.js +3 -3
  433. package/views/3d/webgl-engine/core/shaderLibrary/util/BlendModes.glsl.js +1 -1
  434. package/views/3d/webgl-engine/lib/ManagedTexture.js +1 -1
  435. package/views/3d/webgl-engine/lib/edgeRendering/EdgeProcessingWorker.js +1 -1
  436. package/views/3d/webgl-engine/lib/edgeRendering/EdgeWorkerHandle.js +1 -1
  437. package/views/3d/webgl-engine/materials/lineStippleUtils.js +1 -1
  438. package/views/3d/webgl-engine/shaders/CompositingTechnique.js +1 -1
  439. package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
  440. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/LineAmplitude.glsl.js +4 -4
  441. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/LineOffset.glsl.js +8 -8
  442. package/views/VideoView.d.ts +2 -3
  443. package/views/VideoView.js +1 -1
  444. package/views/View2D.d.ts +2 -3
  445. package/views/analysis/ElevationProfile/ElevationProfileController.js +1 -1
  446. package/views/analysis/ElevationProfile/ElevationProfileIndicatorPointVisualization.js +5 -0
  447. package/views/analysis/ElevationProfile/ElevationProfileLineComputation.js +1 -1
  448. package/views/analysis/ElevationProfile/ElevationProfileResult.js +1 -1
  449. package/views/analysis/ElevationProfile/ElevationProfileTool.js +1 -1
  450. package/views/analysis/ElevationProfile/constants.js +1 -1
  451. package/views/draw/Draw.js +1 -1
  452. package/views/input/ViewEvents.js +1 -1
  453. package/views/interactive/editGeometry/EditGeometry.js +1 -1
  454. package/views/interactive/snapping/featureSources/snappingCandidateElevationAlignment.js +1 -1
  455. package/views/interactive/snapping/featureSources/snappingCandidateElevationFilter.js +1 -1
  456. package/views/interactive/snapping/featureSources/symbologySnappingCandidates.js +1 -1
  457. package/views/layers/MediaLayerViewMixin.d.ts +1 -1
  458. package/views/support/PromiseQueue.js +1 -1
  459. package/views/support/screenUtils.js +1 -1
  460. package/views/support/screenshotUtils.js +1 -1
  461. package/views/types.d.ts +1 -1
  462. package/views/webgl/FramebufferObject.js +1 -1
  463. package/views/webgl/Uniform.js +1 -1
  464. package/views/webgl/Util.js +1 -1
  465. package/webdoc/applicationProperties/SearchLayerField.d.ts +1 -1
  466. package/webdoc/applicationProperties/SearchTableField.d.ts +1 -1
  467. package/webscene/Slide.d.ts +2 -2
  468. package/webscene/spec-certification/api.js +1 -1
  469. package/widgets/BatchAttributeForm/batchAttributeFormUtils.js +1 -1
  470. package/widgets/BatchAttributeForm/inputs/FieldInput.d.ts +1 -1
  471. package/widgets/BatchAttributeForm/inputs/FieldInput.js +1 -1
  472. package/widgets/BatchAttributeForm/templates/support/hashElementTemplate.js +1 -1
  473. package/widgets/BatchAttributeForm.js +1 -1
  474. package/widgets/Editor/components/PendingFeatureList.js +1 -1
  475. package/widgets/Editor/components/workflowAdapters/pendingFeatureList/{CreateFeaturesWorkflowPendingFeatureListAdapter.ts.js → CreateFeaturesWorkflowPendingFeatureListAdapter.js} +1 -1
  476. package/widgets/Editor/types.d.ts +1 -1
  477. package/widgets/Editor/workflowUtils.js +1 -1
  478. package/widgets/Feature.d.ts +3 -5
  479. package/widgets/FeatureForm/FeatureFormViewModel.js +1 -1
  480. package/widgets/FeatureForm/FieldInput.d.ts +2 -2
  481. package/widgets/FeatureForm/featureFormUtils.js +1 -1
  482. package/widgets/FeatureForm.js +1 -1
  483. package/widgets/FeatureTemplates/FeatureTemplatesViewModel.d.ts +1 -1
  484. package/widgets/FeatureTemplates/TemplateItem.d.ts +1 -1
  485. package/widgets/FeatureTemplates/types.d.ts +1 -1
  486. package/widgets/Features.d.ts +3 -5
  487. package/widgets/Print/CustomTemplate.d.ts +3 -4
  488. package/widgets/Print/TemplateOptions.d.ts +3 -4
  489. package/widgets/Print/types.d.ts +3 -4
  490. package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
  491. package/widgets/Sketch/support/OperationHandle.js +1 -1
  492. package/widgets/TimeSlider.js +1 -1
  493. package/widgets/VideoPlayer/VideoPlayerViewModel.d.ts +1 -1
  494. package/widgets/support/SelectionList/GroupLayerItem.js +1 -1
  495. package/widgets/support/dateUtils.js +1 -1
  496. package/assets/esri/core/workers/chunks/0099f4729c94c779ba35.js +0 -1
  497. package/assets/esri/core/workers/chunks/058fb2cd6387acfd458c.js +0 -1
  498. package/assets/esri/core/workers/chunks/0ae018098906d6a88904.js +0 -1
  499. package/assets/esri/core/workers/chunks/0dc3a04ce717b7ddd957.js +0 -1
  500. package/assets/esri/core/workers/chunks/0e5cd0cf6ab7cb37d723.js +0 -1
  501. package/assets/esri/core/workers/chunks/0ee407b8db5c07a00d82.js +0 -1
  502. package/assets/esri/core/workers/chunks/10373885604655f673df.js +0 -1
  503. package/assets/esri/core/workers/chunks/13d61d34e55c80e4ecdf.js +0 -1
  504. package/assets/esri/core/workers/chunks/17dea03fc4eb414f0022.js +0 -1
  505. package/assets/esri/core/workers/chunks/1967239713b58dccfd81.js +0 -1
  506. package/assets/esri/core/workers/chunks/1ab98591d2f2bc604505.js +0 -1
  507. package/assets/esri/core/workers/chunks/1b838638e66e82d76cf3.js +0 -1
  508. package/assets/esri/core/workers/chunks/1c350a2c4014146dbcd9.js +0 -1
  509. package/assets/esri/core/workers/chunks/2266a8f2c2ec37c19bb4.js +0 -1
  510. package/assets/esri/core/workers/chunks/226acd251ad7d7ee3b57.js +0 -1
  511. package/assets/esri/core/workers/chunks/22b07c54a5fcc27771b0.js +0 -1
  512. package/assets/esri/core/workers/chunks/22ca80f491e070b2a5e7.js +0 -1
  513. package/assets/esri/core/workers/chunks/22dd5cecc7e2d4d0baf8.js +0 -316
  514. package/assets/esri/core/workers/chunks/2402d305a77fef4694a0.js +0 -1
  515. package/assets/esri/core/workers/chunks/27f096c434f049b8df01.js +0 -1
  516. package/assets/esri/core/workers/chunks/2a6231db5ee6cbfd59a5.js +0 -1
  517. package/assets/esri/core/workers/chunks/3371935a4fd6346d3a17.js +0 -1
  518. package/assets/esri/core/workers/chunks/3c4f8597f602779174f1.js +0 -1
  519. package/assets/esri/core/workers/chunks/3da53c017f9c5d2d778a.js +0 -1
  520. package/assets/esri/core/workers/chunks/45b898367b6224dda46f.js +0 -1
  521. package/assets/esri/core/workers/chunks/4785cd108e2dec6e1697.js +0 -1
  522. package/assets/esri/core/workers/chunks/4d6d962d25aa836f53ee.js +0 -1
  523. package/assets/esri/core/workers/chunks/4f33a2ecb154a2c2449c.js +0 -1
  524. package/assets/esri/core/workers/chunks/52726458f590e726d52c.js +0 -1
  525. package/assets/esri/core/workers/chunks/536c492fdda30f2f1288.js +0 -1
  526. package/assets/esri/core/workers/chunks/5909a0e763fddc3542e7.js +0 -2
  527. package/assets/esri/core/workers/chunks/5cee6c3ff23fb93f857a.js +0 -1
  528. package/assets/esri/core/workers/chunks/600e2e6b51e2fb9c598c.js +0 -1
  529. package/assets/esri/core/workers/chunks/6035daa65fc3ebf86515.js +0 -1
  530. package/assets/esri/core/workers/chunks/63b8cd7d5cafbaeed894.js +0 -1
  531. package/assets/esri/core/workers/chunks/6cb44cd319cb6c2539c8.js +0 -1
  532. package/assets/esri/core/workers/chunks/7033fa18b7dd7bd3e49c.js +0 -1
  533. package/assets/esri/core/workers/chunks/7306b5b66e738a281d83.js +0 -1
  534. package/assets/esri/core/workers/chunks/7694abe44d55dae8872d.js +0 -1
  535. package/assets/esri/core/workers/chunks/7f4fa2f2e85863d3cfb9.js +0 -1
  536. package/assets/esri/core/workers/chunks/8f4c480c418eba299c2b.js +0 -1
  537. package/assets/esri/core/workers/chunks/964de713042f52d71e42.js +0 -1
  538. package/assets/esri/core/workers/chunks/a3836f6a93924ee4816e.js +0 -1
  539. package/assets/esri/core/workers/chunks/ab520fd1ae917daf07d8.js +0 -1
  540. package/assets/esri/core/workers/chunks/acc7ff44bfcb5c195114.js +0 -1
  541. package/assets/esri/core/workers/chunks/ad92427bf597a6e0a299.js +0 -1
  542. package/assets/esri/core/workers/chunks/b25a131c04092c3ab75d.js +0 -1
  543. package/assets/esri/core/workers/chunks/b285de471ca90f38ec25.js +0 -1
  544. package/assets/esri/core/workers/chunks/b8f83a272fc41765031d.js +0 -1
  545. package/assets/esri/core/workers/chunks/b9909264cfea68d5f2a1.js +0 -1
  546. package/assets/esri/core/workers/chunks/bb08359610a41e304b55.js +0 -1
  547. package/assets/esri/core/workers/chunks/bcf612eabe7577540953.js +0 -1
  548. package/assets/esri/core/workers/chunks/bfbbcaa1fb04f17fc869.js +0 -1
  549. package/assets/esri/core/workers/chunks/c02b09f16241db233103.js +0 -1
  550. package/assets/esri/core/workers/chunks/c3007b916ba933137709.js +0 -1
  551. package/assets/esri/core/workers/chunks/cc5c1887e6d7079e5fe3.js +0 -1
  552. package/assets/esri/core/workers/chunks/ce8f075c814a8378c00c.js +0 -1
  553. package/assets/esri/core/workers/chunks/cfe1506a443fc84a0b91.js +0 -1
  554. package/assets/esri/core/workers/chunks/d30cfc5fa302cc08d862.js +0 -1
  555. package/assets/esri/core/workers/chunks/d723619579cc8f5ef2cd.js +0 -1
  556. package/assets/esri/core/workers/chunks/da99fd0d3106dd357743.js +0 -1
  557. package/assets/esri/core/workers/chunks/de71db3b0fb947b13c97.js +0 -1
  558. package/assets/esri/core/workers/chunks/dfbbead4c24d13682891.js +0 -1
  559. package/assets/esri/core/workers/chunks/e69255e38ff200dda14b.js +0 -1
  560. package/assets/esri/core/workers/chunks/e705d041f6c1632bfbcc.js +0 -1
  561. package/assets/esri/core/workers/chunks/e85da52d9cc7d9396872.js +0 -1
  562. package/assets/esri/core/workers/chunks/ee186ddbb1eb5144a790.js +0 -1
  563. package/assets/esri/core/workers/chunks/f9370830051865a3435b.js +0 -1
  564. package/core/MultiOriginJSONSupport.d.ts +0 -13
  565. package/core/NumericIdentifiable.d.ts +0 -6
  566. package/core/ReadOnlyMultiOriginJSONSupport.d.ts +0 -6
  567. package/core/WriteableMultiOriginJSONMixin.d.ts +0 -6
  568. package/layers/knowledgeGraph/KnowledgeGraphSublayerBase.d.ts +0 -6
  569. package/layers/mixins/ArcGISService.d.ts +0 -6
  570. package/layers/mixins/RasterJobHandlerMixin.d.ts +0 -6
  571. package/layers/support/RasterFunctionProperties.d.ts +0 -2
  572. package/layers/support/domains.d.ts +0 -5
  573. package/layers/support/editableLayers.d.ts +0 -11
  574. package/layers/support/exifUtils.d.ts +0 -21
  575. package/layers/support/fieldFormatUtils.d.ts +0 -4
  576. package/layers/support/fieldType.d.ts +0 -2
  577. package/layers/support/layerUtils.d.ts +0 -4
  578. package/layers/support/wmtsUtils.d.ts +0 -2
  579. package/layers/video/videoUtils.d.ts +0 -5
  580. package/rest/geometryService/cut.d.ts +0 -7
  581. package/rest/geometryService/fromGeoCoordinateString.d.ts +0 -28
  582. package/rest/geometryService/toGeoCoordinateString.d.ts +0 -25
  583. package/rest/operations/generalize.d.ts +0 -3
  584. package/rest/support/DateBinUtils.d.ts +0 -2
  585. package/rest/support/colorRamps.d.ts +0 -6
  586. package/rest/support/fileFormat.d.ts +0 -4
  587. package/rest/support/layoutTemplate.d.ts +0 -2
  588. package/rest/support/reportTemplate.d.ts +0 -2
  589. package/views/2d/layers/LayerView2D.d.ts +0 -6
  590. package/views/Viewport2DBaseMixin.d.ts +0 -6
  591. package/views/analysis/ElevationProfile/ElevationProfileHoveredPointVisualization.js +0 -5
  592. package/views/layers/RefreshableLayerView.d.ts +0 -6
  593. package/widgets/Feature/support/FeatureContentMixin.d.ts +0 -6
  594. /package/layers/video/{IVideoController.d.ts → types.d.ts} +0 -0
  595. /package/layers/{support/wmsUtils.d.ts → wms/types.d.ts} +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5897],{4264:(t,e,i)=>{i.d(e,{lf:()=>At,L:()=>Ot,A4:()=>St,aR:()=>Bt,tU:()=>Lt,V1:()=>Nt,uU:()=>Mt});var r=i(19419),n=i(5408),s=i(13195),a=i(80081),o=i(63907),l=i(85079),u=i(74038);class h{constructor(t){this._key=t}get key(){return this._key}get type(){return 7&this._key}defines(){return[]}getStride(){return this._geometryLayout||this._buildAttributesInfo(),this._stride}getAttributeLocations(){return this._geometryLayout||this._buildAttributesInfo(),this._locations}get geometryLayout(){return this._geometryLayout||this._buildAttributesInfo(),this._geometryLayout}getEncodingInfos(){return this._propertyEncodingInfo||this._buildAttributesInfo(),this._propertyEncodingInfo}getUniforms(){return this._uniforms||this._buildAttributesInfo(),this._uniforms}getShaderHeader(){return this._shaderHeader||this._buildAttributesInfo(),this._shaderHeader}getShaderMain(){return this._shaderMain||this._buildAttributesInfo(),this._shaderMain}setDataUniforms(t,e,i,r,n){const s=this.getUniforms();for(const a of s){const{name:s,type:o,getValue:l}=a,u=l(i,e,r,n);if(null!==u)switch(o){case"float":t.setUniform1f(s,u);break;case"vec2":t.setUniform2fv(s,u);break;case"vec4":t.setUniform4fv(s,u)}}}encodeAttributes(t,e,i,r){const n=this.attributesInfo,s=this.getEncodingInfos(),a=[];let o=0,l=0;for(const u of Object.keys(s)){const h=s[u],{type:c,precisionFactor:y,isLayout:p}=n[u],f=p?i.getLayoutProperty(u):i.getPaintProperty(u),_=f.interpolator?.getInterpolationRange(e);let m=0;for(const i of h){const{offset:n,bufferElementsToAdd:s}=i;if(s>0){for(let t=0;t<s;t++)a.push(0);o+=l,l=i.bufferElementsToAdd}const u=r??f.getValue(_?_[m]:e,t);switch(c){case 0:case 1:a[o]|=this._encodeByte(u*(y||1),8*n);break;case 2:case 3:a[o]|=this._encodeShort(u*(y||1),8*n);break;case 4:case 5:a[o]|=this._encodeByte(u*(y||1),8*n),a[o]|=this._encodeByte(u*(y||1),8*n+8);break;case 6:case 7:a[o]|=this._encodeShort(u*(y||1),8*n),a[o]|=this._encodeShort(u*(y||1),8*n+16);break;case 8:case 9:a[o]|=this._encodeByte(u*(y||1),8*n),a[o]|=this._encodeByte(u*(y||1),8*n+8),a[o]|=this._encodeByte(u*(y||1),8*n+16),a[o]|=this._encodeByte(u*(y||1),8*n+24);break;case 10:a[o]=this._encodeColor(u);break;case 11:case 12:this._encodePattern(o,a,u);break;default:throw new Error("Unsupported encoding type")}m++}}return a}getAtributeState(t){let e=0;const i=3+2*t;return e|=this._bit(i),e|=this._bit(i+1)<<1,e}static{this._encodingInfo={0:{dataType:o.pe.BYTE,bytesPerElement:1,count:1,normalized:!1},1:{dataType:o.pe.UNSIGNED_BYTE,bytesPerElement:1,count:1,normalized:!1},2:{dataType:o.pe.SHORT,bytesPerElement:2,count:1,normalized:!1},3:{dataType:o.pe.UNSIGNED_SHORT,bytesPerElement:2,count:1,normalized:!1},4:{dataType:o.pe.BYTE,bytesPerElement:1,count:2,normalized:!1},5:{dataType:o.pe.UNSIGNED_BYTE,bytesPerElement:1,count:2,normalized:!1},6:{dataType:o.pe.SHORT,bytesPerElement:2,count:2,normalized:!1},7:{dataType:o.pe.UNSIGNED_SHORT,bytesPerElement:2,count:2,normalized:!1},8:{dataType:o.pe.BYTE,bytesPerElement:1,count:4,normalized:!1},9:{dataType:o.pe.UNSIGNED_BYTE,bytesPerElement:1,count:4,normalized:!1},10:{dataType:o.pe.UNSIGNED_BYTE,bytesPerElement:1,count:4,normalized:!0},11:{dataType:o.pe.UNSIGNED_SHORT,bytesPerElement:2,count:4,normalized:!1},12:{dataType:o.pe.UNSIGNED_SHORT,bytesPerElement:2,count:4,normalized:!1}}}_buildAttributesInfo(){const t=[],e={},{attributesInfo:i,attributes:r}=this,n={};let s=-1,a=-1;for(const o of r){a++;const r=this.getAtributeState(a);if(0===r||3===r)continue;const l=i[o],u=[];e[o]=u;const c=l.type;for(let e=0;e<r;e++){const{dataType:e,bytesPerElement:i,count:r,normalized:a}=h._encodingInfo[c],o=i*r,l=`${e}-${!0===a}`;let y=n[l],p=0;if(!y||y.count+r>4)s++,y={dataIndex:s,count:0,offset:0},4!==r&&(n[l]=y),t.push({location:-1,name:"a_data_"+s,count:r,type:e,normalized:a}),p=Math.ceil(Math.max(o/4,1));else{const e=t[y.dataIndex];e.count+=r,p=Math.ceil(Math.max(e.count*i/4,1))-Math.ceil(Math.max(y.offset/4,1))}u.push({dataIndex:y.dataIndex,offset:y.offset,bufferElementsToAdd:p}),y.offset+=o,y.count+=r}}for(const e of t)switch(e.type){case o.pe.BYTE:case o.pe.UNSIGNED_BYTE:e.count=4;break;case o.pe.SHORT:case o.pe.UNSIGNED_SHORT:e.count+=e.count%2}this._buildVertexBufferLayout(t),this._buildShaderInfo(t,e),this._propertyEncodingInfo=e}_buildVertexBufferLayout(t){const e=this.baseGeometryLayout;let i=e[0].stride;if(0===t.length)this._geometryLayout=e;else{const r=[];let n=i;for(const e of t)i+=c(e.type)*e.count;for(const t of e)r.push(new u._(t.name,t.count,t.type,t.offset,i,t.normalized));for(const e of t)r.push(new u._(e.name,e.count,e.type,n,i,e.normalized)),n+=c(e.type)*e.count;this._geometryLayout=r}this.opacityLayout?this._locations=(0,l._u)([this._geometryLayout,this.opacityLayout]):this._locations=(0,l.Xk)(this._geometryLayout),this._stride=i}_buildShaderInfo(t,e){let i="\n",r="\n";const n=[];for(const e of t)i+=`attribute ${this._getType(e.count)} ${e.name};\n`;const{attributesInfo:s,attributes:a}=this;let o=-1;for(const t of a){o++;const{name:a,type:l,precisionFactor:u,isLayout:c}=s[t],p=u&&1!==u?" * "+1/u:"",{bytesPerElement:f,count:_}=h._encodingInfo[l],m=t=>`a_data_${t.dataIndex}${y(_,t.offset,f)}`;switch(this.getAtributeState(o)){case 0:{const e=this._getType(_),s=`u_${a}`;n.push({name:s,type:e,getValue:(e,i,r,n)=>{const s=c?e.getLayoutValue(t,i):e.getPaintValue(t,i);if(11===l){const t=e.getDashKey(s,e.getLayoutValue("line-cap",i)),r=n.getMosaicItemPosition(t,!1);if(null==r)return null;const{tl:a,br:o}=r;return[a[0],o[1],o[0],a[1]]}if(12===l){const e=n.getMosaicItemPosition(s,!t.includes("line-"));if(null==e)return null;const{tl:i,br:r}=e;return[i[0],r[1],r[0],i[1]]}if(10===l){const t=s[3];return[t*s[0],t*s[1],t*s[2],t]}return s}}),i+=`uniform ${e} ${s};\n`,r+=`${e} ${a} = ${s};\n`}break;case 1:{const i=m(e[t][0]);r+=`${this._getType(_)} ${a} = ${i}${p};\n`}break;case 2:{const s=`u_t_${a}`;n.push({name:s,type:"float",getValue:(e,i,r,n)=>(c?e.getLayoutProperty(t):e.getPaintProperty(t)).interpolator.interpolationUniformValue(r,i)}),i+=`uniform float ${s};\n`;const o=m(e[t][0]),l=m(e[t][1]);r+=`${this._getType(_)} ${a} = mix(${o}${p}, ${l}${p}, ${s});\n`}}}this._shaderHeader=i,this._shaderMain=r,this._uniforms=n}_bit(t){return(this._key&1<<t)>>t}_getType(t){switch(t){case 1:return"float";case 2:return"vec2";case 3:return"vec3";case 4:return"vec4"}throw new Error("Invalid count")}_encodeColor(t){const e=255*t[3];return a.A.i8888to32(t[0]*e,t[1]*e,t[2]*e,e)}_encodePattern(t,e,i){if(!i?.rect)return;const r=i.rect,n=i.width,s=i.height;e[t]=this._encodeShort(r.x+2,0),e[t]|=this._encodeShort(r.y+2+s,16),e[t+1]=this._encodeShort(r.x+2+n,0),e[t+1]|=this._encodeShort(r.y+2,16)}_encodeByte(t,e){return(255&t)<<e}_encodeShort(t,e){return(65535&t)<<e}}const c=t=>{switch(t){case o.pe.FLOAT:case o.pe.INT:case o.pe.UNSIGNED_INT:return 4;case o.pe.SHORT:case o.pe.UNSIGNED_SHORT:case o.pe.HALF_FLOAT:return 2;case o.pe.BYTE:case o.pe.UNSIGNED_BYTE:return 1}},y=(t,e,i)=>{const r=e/i;if(1===t)switch(r){case 0:return".x";case 1:return".y";case 2:return".z";case 3:return".w"}else if(2===t)switch(r){case 0:return".xy";case 1:return".yz";case 2:return".zw"}else if(3===t)switch(r){case 0:return".xyz";case 1:return".yzw"}return""};class p extends h{static{this.ATTRIBUTES=[]}static{this.GEOMETRY_LAYOUT=[new u._("a_pos",2,o.pe.BYTE,0,2)]}static{this.ATTRIBUTES_INFO={}}constructor(t){super(t),this.baseGeometryLayout=p.GEOMETRY_LAYOUT,this.attributes=p.ATTRIBUTES,this.attributesInfo=p.ATTRIBUTES_INFO}}class f extends h{static{this.ATTRIBUTES=["circle-radius","circle-color","circle-opacity","circle-stroke-width","circle-stroke-color","circle-stroke-opacity","circle-blur"]}static{this.GEOMETRY_LAYOUT=[new u._("a_pos",2,o.pe.SHORT,0,4)]}static{this.ATTRIBUTES_INFO={"circle-radius":{name:"radius",type:1},"circle-color":{name:"color",type:10},"circle-opacity":{name:"opacity",type:1,precisionFactor:100},"circle-stroke-width":{name:"stroke_width",type:1,precisionFactor:4},"circle-stroke-color":{name:"stroke_color",type:10},"circle-stroke-opacity":{name:"stroke_opacity",type:1,precisionFactor:100},"circle-blur":{name:"blur",type:1,precisionFactor:32}}}constructor(t){super(t),this.baseGeometryLayout=f.GEOMETRY_LAYOUT,this.attributes=f.ATTRIBUTES,this.attributesInfo=f.ATTRIBUTES_INFO}}class _ extends h{static{this.ATTRIBUTES=["fill-color","fill-opacity","fill-pattern"]}static{this.GEOMETRY_LAYOUT=[new u._("a_pos",2,o.pe.SHORT,0,4)]}static{this.ATTRIBUTES_INFO={"fill-color":{name:"color",type:10},"fill-opacity":{name:"opacity",type:1,precisionFactor:100},"fill-pattern":{name:"tlbr",type:12,isOptional:!0}}}constructor(t){super(t),this.baseGeometryLayout=_.GEOMETRY_LAYOUT,this.attributes=_.ATTRIBUTES,this.attributesInfo=_.ATTRIBUTES_INFO}}class m extends h{static{this.ATTRIBUTES_OUTLINE=["fill-outline-color","fill-opacity"]}static{this.ATTRIBUTES_FILL=["fill-color","fill-opacity"]}static{this.GEOMETRY_LAYOUT=[new u._("a_pos",2,o.pe.SHORT,0,8),new u._("a_offset",2,o.pe.BYTE,4,8),new u._("a_xnormal",2,o.pe.BYTE,6,8)]}static{this.ATTRIBUTES_INFO_OUTLINE={"fill-outline-color":{name:"color",type:10},"fill-opacity":{name:"opacity",type:1,precisionFactor:100}}}static{this.ATTRIBUTES_INFO_FILL={"fill-color":{name:"color",type:10},"fill-opacity":{name:"opacity",type:1,precisionFactor:100}}}constructor(t,e){super(t),this.baseGeometryLayout=m.GEOMETRY_LAYOUT,this.attributes=e?m.ATTRIBUTES_FILL:m.ATTRIBUTES_OUTLINE,this.attributesInfo=e?m.ATTRIBUTES_INFO_FILL:m.ATTRIBUTES_INFO_OUTLINE}}class g extends h{static{this.ATTRIBUTES=["line-blur","line-color","line-gap-width","line-offset","line-opacity","line-width","line-pattern","line-dasharray"]}static{this.GEOMETRY_LAYOUT=[new u._("a_pos",2,o.pe.SHORT,0,16),new u._("a_extrude_offset",4,o.pe.BYTE,4,16),new u._("a_dir_normal",4,o.pe.BYTE,8,16),new u._("a_accumulatedDistance",2,o.pe.UNSIGNED_SHORT,12,16)]}static{this.ATTRIBUTES_INFO={"line-width":{name:"width",type:1,precisionFactor:2},"line-gap-width":{name:"gap_width",type:1,precisionFactor:2},"line-offset":{name:"offset",type:0,precisionFactor:2},"line-color":{name:"color",type:10},"line-opacity":{name:"opacity",type:1,precisionFactor:100},"line-blur":{name:"blur",type:1,precisionFactor:4},"line-pattern":{name:"tlbr",type:12,isOptional:!0},"line-dasharray":{name:"tlbr",type:11,isOptional:!0}}}constructor(t){super(t),this.baseGeometryLayout=g.GEOMETRY_LAYOUT,this.attributes=g.ATTRIBUTES,this.attributesInfo=g.ATTRIBUTES_INFO}}const d=[new u._("a_pos",2,o.pe.SHORT,0,16),new u._("a_vertexOffset",2,o.pe.SHORT,4,16),new u._("a_texAngleRange",4,o.pe.UNSIGNED_BYTE,8,16),new u._("a_levelInfo",4,o.pe.UNSIGNED_BYTE,12,16)],x=[new u._("a_opacityInfo",1,o.pe.UNSIGNED_BYTE,0,1)];class b extends h{static{this.ATTRIBUTES=["icon-color","icon-opacity","icon-halo-blur","icon-halo-color","icon-halo-width","icon-size"]}static{this.ATTRIBUTES_INFO={"icon-color":{name:"color",type:10},"icon-opacity":{name:"opacity",type:1,precisionFactor:100},"icon-halo-color":{name:"halo_color",type:10},"icon-halo-width":{name:"halo_width",type:1,precisionFactor:4},"icon-halo-blur":{name:"halo_blur",type:1,precisionFactor:4},"icon-size":{name:"size",type:1,precisionFactor:32,isLayout:!0}}}constructor(t){super(t),this.baseGeometryLayout=d,this.opacityLayout=x,this.attributes=b.ATTRIBUTES,this.attributesInfo=b.ATTRIBUTES_INFO}}class w extends h{static{this.ATTRIBUTES=["text-color","text-opacity","text-halo-blur","text-halo-color","text-halo-width","text-size"]}static{this.ATTRIBUTES_INFO={"text-color":{name:"color",type:10},"text-opacity":{name:"opacity",type:1,precisionFactor:100},"text-halo-color":{name:"halo_color",type:10},"text-halo-width":{name:"halo_width",type:1,precisionFactor:4},"text-halo-blur":{name:"halo_blur",type:1,precisionFactor:4},"text-size":{name:"size",type:1,isLayout:!0}}}constructor(t){super(t),this.baseGeometryLayout=d,this.opacityLayout=x,this.attributes=w.ATTRIBUTES,this.attributesInfo=w.ATTRIBUTES_INFO}}var v=i(68197),T=i(85334);function E(t,e,i,r){const n=3*t,s=3*(i-t)-n,a=1-n-s,o=3*e,l=3*(r-e)-o,u=1-o-l;function h(t){return((a*t+s)*t+n)*t}function c(t){return(3*a*t+2*s)*t+n}return function(t,e=1e-6){return function(t){return((u*t+l)*t+o)*t}(function(t,e){let i,r,n,s,a,o;for(n=t,o=0;o<8;o++){if(s=h(n)-t,Math.abs(s)<e)return n;if(a=c(n),Math.abs(a)<1e-6)break;n-=s/a}if(i=0,r=1,n=t,n<i)return i;if(n>r)return r;for(;i<r;){if(s=h(n),Math.abs(s-t)<e)return n;t>s?i=n:r=n,n=.5*(r-i)+i}return n}(t,e))}}const I={};I.ease=E(.25,.1,.25,1),I.linear=E(0,0,1,1),I.easeIn=I["ease-in"]=E(.42,0,1,1),I.easeOut=I["ease-out"]=E(0,0,.58,1),I.easeInOut=I["ease-in-out"]=E(.42,0,.58,1);const P={kind:"null"},D={kind:"number"},R={kind:"string"},A={kind:"boolean"},S={kind:"color"},L={kind:"object"},N={kind:"value"};function O(t,e){return{kind:"array",itemType:t,n:e}}const B=[P,D,R,A,S,L,O(N)];function M(t){if("array"===t.kind){const e=M(t.itemType);return"number"==typeof t.n?`array<${e}, ${t.n}>`:"value"===t.itemType.kind?"array":`array<${e}>`}return t.kind}function U(t){if(null===t)return P;if("string"==typeof t)return R;if("boolean"==typeof t)return A;if("number"==typeof t)return D;if(t instanceof v.A)return S;if(Array.isArray(t)){let e;for(const i of t){const t=U(i);if(e){if(e!==t){e=N;break}}else e=t}return O(e||N,t.length)}return"object"==typeof t?L:N}function k(t,e){if("array"===e.kind)return"array"===t.kind&&(0===t.n&&"value"===t.itemType.kind||k(t.itemType,e.itemType))&&("number"!=typeof e.n||e.n===t.n);if("value"===e.kind)for(const e of B)if(k(t,e))return!0;return e.kind===t.kind}function G(t){if(null===t)return"";const e=typeof t;return"string"===e?t:"number"===e||"boolean"===e?String(t):t instanceof v.A?t.toString():JSON.stringify(t)}class z{constructor(t){this._parent=t,this._vars={}}add(t,e){this._vars[t]=e}get(t){return this._vars[t]?this._vars[t]:this._parent?this._parent.get(t):null}}class V{constructor(){this.type=N}static parse(t){if(t.length>1)throw new Error('"id" does not expect arguments');return new V}evaluate(t,e){return t?.id}}class F{constructor(){this.type=R}static parse(t){if(t.length>1)throw new Error('"geometry-type" does not expect arguments');return new F}evaluate(t,e){if(!t)return null;switch(t.type){case 1:return"Point";case 2:return"LineString";case 3:return"Polygon";default:return null}}}class C{constructor(){this.type=L}static parse(t){if(t.length>1)throw new Error('"properties" does not expect arguments');return new C}evaluate(t,e){return t?.values}}class ${constructor(){this.type=D}static parse(t){if(t.length>1)throw new Error('"zoom" does not expect arguments');return new $}evaluate(t,e){return e}}class H{constructor(t,e,i){this._lhs=t,this._rhs=e,this._compare=i,this.type=A}static parse(t,e,i){if(3!==t.length&&4!==t.length)throw new Error(`"${t[0]}" expects 2 or 3 arguments`);if(4===t.length)throw new Error(`"${t[0]}" collator not supported`);return new H(wt(t[1],e),wt(t[2],e),i)}evaluate(t,e){return this._compare(this._lhs.evaluate(t,e),this._rhs.evaluate(t,e))}}class Y{constructor(t){this._arg=t,this.type=A}static parse(t,e){if(2!==t.length)throw new Error('"!" expects 1 argument');return new Y(wt(t[1],e))}evaluate(t,e){return!this._arg.evaluate(t,e)}}class q{constructor(t){this._args=t,this.type=A}static parse(t,e){const i=[];for(let r=1;r<t.length;r++)i.push(wt(t[r],e));return new q(i)}evaluate(t,e){for(const i of this._args)if(!i.evaluate(t,e))return!1;return!0}}class j{constructor(t){this._args=t,this.type=A}static parse(t,e){const i=[];for(let r=1;r<t.length;r++)i.push(wt(t[r],e));return new j(i)}evaluate(t,e){for(const i of this._args)if(i.evaluate(t,e))return!0;return!1}}class W{constructor(t){this._args=t,this.type=A}static parse(t,e){const i=[];for(let r=1;r<t.length;r++)i.push(wt(t[r],e));return new W(i)}evaluate(t,e){for(const i of this._args)if(i.evaluate(t,e))return!1;return!0}}class X{constructor(t,e,i){this.type=t,this._args=e,this._fallback=i}static parse(t,e,i){if(t.length<4)throw new Error('"case" expects at least 3 arguments');if(t.length%2==1)throw new Error('"case" expects an odd number of arguments');let r;const n=[];for(let s=1;s<t.length-1;s+=2){const a=wt(t[s],e),o=wt(t[s+1],e,i);r||(r=o.type),n.push({condition:a,output:o})}const s=wt(t[t.length-1],e,i);return r||(r=s.type),new X(r,n,s)}evaluate(t,e){for(const i of this._args)if(i.condition.evaluate(t,e))return i.output.evaluate(t,e);return this._fallback.evaluate(t,e)}}class K{constructor(t,e){this.type=t,this._args=e}static parse(t,e){if(t.length<2)throw new Error('"coalesce" expects at least 1 argument');let i;const r=[];for(let n=1;n<t.length;n++){const s=wt(t[n],e);i||(i=s.type),r.push(s)}return new K(i,r)}evaluate(t,e){for(const i of this._args){const r=i.evaluate(t,e);if(null!==r)return r}return null}}class Z{constructor(t,e,i,r,n){this.type=t,this._input=e,this._labels=i,this._outputs=r,this._fallback=n}static parse(t,e){if(t.length<3)throw new Error('"match" expects at least 3 arguments');if(t.length%2==0)throw new Error('"case" expects an even number of arguments');let i;const r=wt(t[1],e),n=[],s={};let a;for(let r=2;r<t.length-1;r+=2){let o=t[r];Array.isArray(o)||(o=[o]);for(const t of o){const e=typeof t;if("string"!==e&&"number"!==e)throw new Error('"match" requires string or number literal as labels');if(a){if(e!==a)throw new Error('"match" requires labels to have the same type')}else a=e;s[t]=n.length}const l=wt(t[r+1],e);i||(i=l.type),n.push(l)}return new Z(i,r,s,n,wt(t[t.length-1],e))}evaluate(t,e){const i=this._input.evaluate(t,e);return(this._outputs[this._labels[i]]||this._fallback).evaluate(t,e)}}class J{constructor(t,e,i,r,n){this._operator=t,this.type=e,this.interpolation=i,this.input=r,this._stops=n}static parse(t,e,i){const r=t[0];if(t.length<5)throw new Error(`"${r}" expects at least 4 arguments`);const n=t[1];if(!Array.isArray(n)||0===n.length)throw new Error(`"${n}" is not a valid interpolation`);switch(n[0]){case"linear":if(1!==n.length)throw new Error("Linear interpolation cannot have parameters");break;case"exponential":if(2!==n.length||"number"!=typeof n[1])throw new Error("Exponential interpolation requires one numeric argument");break;case"cubic-bezier":if(5!==n.length)throw new Error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1");for(let t=1;t<5;t++){const e=n[t];if("number"!=typeof e||e<0||e>1)throw new Error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1")}break;default:throw new Error(`"${t[0]}" unknown interpolation type "${n[0]}"`)}if(t.length%2!=1)throw new Error(`"${r}" expects an even number of arguments`);const s=wt(t[2],e,D);let a;"interpolate-hcl"===r||"interpolate-lab"===r?a=S:i&&"value"!==i.kind&&(a=i);const o=[];for(let i=3;i<t.length;i+=2){const n=t[i];if("number"!=typeof n)throw new Error(`"${r}" requires stop inputs as literal numbers`);if(o.length&&o[o.length-1][0]>=n)throw new Error(`"${r}" requires strictly ascending stop inputs`);const s=wt(t[i+1],e,a);a||(a=s.type),o.push([n,s])}if(a&&a!==S&&a!==D&&("array"!==a.kind||a.itemType!==D))throw new Error(`"${r}" cannot interpolate type ${M(a)}`);return new J(r,a,n,s,o)}evaluate(t,e){const i=this._stops;if(1===i.length)return i[0][1].evaluate(t,e);const r=this.input.evaluate(t,e);if(r<=i[0][0])return i[0][1].evaluate(t,e);if(r>=i[i.length-1][0])return i[i.length-1][1].evaluate(t,e);let n=0;for(;++n<i.length&&!(r<i[n][0]););const a=i[n-1][0],o=i[n][0],l=J.interpolationRatio(this.interpolation,r,a,o),u=i[n-1][1].evaluate(t,e),h=i[n][1].evaluate(t,e);if("interpolate"===this._operator){if("array"===this.type.kind&&Array.isArray(u)&&Array.isArray(h))return u.map((t,e)=>(0,s.GW)(t,h[e],l));if("color"===this.type.kind&&u instanceof v.A&&h instanceof v.A){const t=new v.A(u),e=new v.A(h);return new v.A([(0,s.GW)(t.r,e.r,l),(0,s.GW)(t.g,e.g,l),(0,s.GW)(t.b,e.b,l),(0,s.GW)(t.a,e.a,l)])}if("number"===this.type.kind&&"number"==typeof u&&"number"==typeof h)return(0,s.GW)(u,h,l);throw new Error(`"${this._operator}" cannot interpolate type ${M(this.type)}`)}if("interpolate-hcl"===this._operator){const t=(0,T.RH)(u),e=(0,T.RH)(h),i=e.h-t.h,r=(0,T.$)({h:t.h+l*(i>180||i<-180?i-360*Math.round(i/360):i),c:(0,s.GW)(t.c,e.c,l),l:(0,s.GW)(t.l,e.l,l)});return new v.A({a:(0,s.GW)(u.a,h.a,l),...r})}if("interpolate-lab"===this._operator){const t=(0,T.ZD)(u),e=(0,T.ZD)(h),i=(0,T.$)({l:(0,s.GW)(t.l,e.l,l),a:(0,s.GW)(t.a,e.a,l),b:(0,s.GW)(t.b,e.b,l)});return new v.A({a:(0,s.GW)(u.a,h.a,l),...i})}throw new Error(`Unexpected operator "${this._operator}"`)}interpolationUniformValue(t,e){const i=this._stops;if(1===i.length)return 0;if(t>=i[i.length-1][0])return 0;let r=0;for(;++r<i.length&&!(t<i[r][0]););const n=i[r-1][0],s=i[r][0];return J.interpolationRatio(this.interpolation,e,n,s)}getInterpolationRange(t){const e=this._stops;if(1===e.length){const t=e[0][0];return[t,t]}const i=e[e.length-1][0];if(t>=i)return[i,i];let r=0;for(;++r<e.length&&!(t<e[r][0]););return[e[r-1][0],e[r][0]]}static interpolationRatio(t,e,i,r){let n=0;return"linear"===t[0]?n=J._exponentialInterpolationRatio(e,1,i,r):"exponential"===t[0]?n=J._exponentialInterpolationRatio(e,t[1],i,r):"cubic-bezier"===t[0]&&(n=E(t[1],t[2],t[3],t[4])(J._exponentialInterpolationRatio(e,1,i,r),1e-5)),n<0?n=0:n>1&&(n=1),n}static _exponentialInterpolationRatio(t,e,i,r){const n=r-i;if(0===n)return 0;const s=t-i;return 1===e?s/n:(e**s-1)/(e**n-1)}}class Q{constructor(t,e,i){this.type=t,this._input=e,this._stops=i}static parse(t,e){if(t.length<5)throw new Error('"step" expects at least 4 arguments');if(t.length%2!=1)throw new Error('"step" expects an even number of arguments');const i=wt(t[1],e,D);let r;const n=[];n.push([-1/0,wt(t[2],e)]);for(let i=3;i<t.length;i+=2){const s=t[i];if("number"!=typeof s)throw new Error('"step" requires stop inputs as literal numbers');if(n.length&&n[n.length-1][0]>=s)throw new Error('"step" requires strictly ascending stop inputs');const a=wt(t[i+1],e);r||(r=a.type),n.push([s,a])}return new Q(r,i,n)}evaluate(t,e){const i=this._stops;if(1===i.length)return i[0][1].evaluate(t,e);const r=this._input.evaluate(t,e);let n=0;for(;++n<i.length&&!(r<i[n][0]););return this._stops[n-1][1].evaluate(t,e)}}class tt{constructor(t,e){this.type=t,this._output=e}static parse(t,e,i){if(t.length<4)throw new Error('"let" expects at least 3 arguments');if(t.length%2==1)throw new Error('"let" expects an odd number of arguments');const r=new z(e);for(let i=1;i<t.length-1;i+=2){const n=t[i];if("string"!=typeof n)throw new Error(`"let" requires a string to define variable names - found ${n}`);r.add(n,wt(t[i+1],e))}const n=wt(t[t.length-1],r,i);return new tt(n.type,n)}evaluate(t,e){return this._output.evaluate(t,e)}}class et{constructor(t,e){this.type=t,this.output=e}static parse(t,e,i){if(2!==t.length||"string"!=typeof t[1])throw new Error('"var" requires just one literal string argument');const r=e.get(t[1]);if(!r)throw new Error(`${t[1]} must be defined before being used in a "var" expression`);return new et(i||N,r)}evaluate(t,e){return this.output.evaluate(t,e)}}class it{constructor(t,e,i){this.type=t,this._index=e,this._array=i}static parse(t,e){if(3!==t.length)throw new Error('"at" expects 2 arguments');const i=wt(t[1],e,D),r=wt(t[2],e);return new it(r.type.itemType,i,r)}evaluate(t,e){const i=this._index.evaluate(t,e),r=this._array.evaluate(t,e);if(i<0||i>=r.length)throw new Error('"at" index out of bounds');if(i!==Math.floor(i))throw new Error('"at" index must be an integer');return r[i]}}class rt{constructor(t,e){this._key=t,this._obj=e,this.type=N}static parse(t,e){let i,r;switch(t.length){case 2:return i=wt(t[1],e),new rt(i);case 3:return i=wt(t[1],e),r=wt(t[2],e),new rt(i,r);default:throw new Error('"get" expects 1 or 2 arguments')}}evaluate(t,e){const i=this._key.evaluate(t,e);return this._obj?this._obj.evaluate(t,e)[i]:t?.values[i]}}class nt{constructor(t,e){this._key=t,this._obj=e,this.type=A}static parse(t,e){let i,r;switch(t.length){case 2:return i=wt(t[1],e),new nt(i);case 3:return i=wt(t[1],e),r=wt(t[2],e),new nt(i,r);default:throw new Error('"has" expects 1 or 2 arguments')}}evaluate(t,e){const i=this._key.evaluate(t,e);return this._obj?i in this._obj.evaluate(t,e):!!t?.values[i]}}class st{constructor(t,e){this._key=t,this._vals=e,this.type=A}static parse(t,e){if(3!==t.length)throw new Error('"in" expects 2 arguments');return new st(wt(t[1],e),wt(t[2],e))}evaluate(t,e){const i=this._key.evaluate(t,e);return this._vals.evaluate(t,e).includes(i)}}class at{constructor(t,e,i){this._item=t,this._array=e,this._from=i,this.type=D}static parse(t,e){if(t.length<3||t.length>4)throw new Error('"index-of" expects 3 or 4 arguments');const i=wt(t[1],e),r=wt(t[2],e);if(4===t.length){const n=wt(t[3],e,D);return new at(i,r,n)}return new at(i,r)}evaluate(t,e){const i=this._item.evaluate(t,e),r=this._array.evaluate(t,e);if(this._from){const n=this._from.evaluate(t,e);if(n!==Math.floor(n))throw new Error('"index-of" index must be an integer');return r.indexOf(i,n)}return r.indexOf(i)}}class ot{constructor(t){this._arg=t,this.type=D}static parse(t,e){if(2!==t.length)throw new Error('"length" expects 2 arguments');const i=wt(t[1],e);return new ot(i)}evaluate(t,e){const i=this._arg.evaluate(t,e);if("string"==typeof i)return i.length;if(Array.isArray(i))return i.length;throw new Error('"length" expects string or array')}}class lt{constructor(t,e,i,r){this.type=t,this._array=e,this._from=i,this._to=r}static parse(t,e){if(t.length<3||t.length>4)throw new Error('"slice" expects 2 or 3 arguments');const i=wt(t[1],e),r=wt(t[2],e,D);if(r.type!==D)throw new Error('"slice" index must return a number');if(4===t.length){const n=wt(t[3],e,D);if(n.type!==D)throw new Error('"slice" index must return a number');return new lt(i.type,i,r,n)}return new lt(i.type,i,r)}evaluate(t,e){const i=this._array.evaluate(t,e);if(!Array.isArray(i)&&"string"!=typeof i)throw new Error('"slice" input must be an array or a string');const r=this._from.evaluate(t,e);if(r<0||r>=i.length)throw new Error('"slice" index out of bounds');if(r!==Math.floor(r))throw new Error('"slice" index must be an integer');if(this._to){const n=this._to.evaluate(t,e);if(n<0||n>=i.length)throw new Error('"slice" index out of bounds');if(n!==Math.floor(n))throw new Error('"slice" index must be an integer');return i.slice(r,n)}return i.slice(r)}}class ut{constructor(){this.type=A}static parse(t){if(1!==t.length)throw new Error('"has-id" expects no arguments');return new ut}evaluate(t,e){return void 0!==t?.id}}class ht{constructor(t,e){this._args=t,this._calculate=e,this.type=D}static parse(t,e,i){const r=t.slice(1).map(t=>wt(t,e));return new ht(r,i)}evaluate(t,e){let i;return this._args&&(i=this._args.map(i=>i.evaluate(t,e))),this._calculate(i)}}class ct{constructor(t,e){this._args=t,this._calculate=e,this.type=D}static{this.ops={abs:t=>Math.abs(t[0]),acos:t=>Math.acos(t[0]),asin:t=>Math.asin(t[0]),atan:t=>Math.atan(t[0]),ceil:t=>Math.ceil(t[0]),cos:t=>Math.cos(t[0]),e:()=>Math.E,floor:t=>Math.floor(t[0]),ln:t=>Math.log(t[0]),ln2:()=>Math.LN2,log10:t=>Math.log(t[0])/Math.LN10,log2:t=>Math.log(t[0])/Math.LN2,max:t=>Math.max(...t),min:t=>Math.min(...t),pi:()=>Math.PI,round:t=>Math.round(t[0]),sin:t=>Math.sin(t[0]),sqrt:t=>Math.sqrt(t[0]),tan:t=>Math.tan(t[0])}}static parse(t,e){const i=t.slice(1).map(t=>wt(t,e));return new ct(i,ct.ops[t[0]])}evaluate(t,e){let i;return this._args&&(i=this._args.map(i=>i.evaluate(t,e))),this._calculate(i)}}class yt{constructor(t){this._args=t,this.type=R}static parse(t,e){return new yt(t.slice(1).map(t=>wt(t,e)))}evaluate(t,e){return this._args.map(i=>i.evaluate(t,e)).join("")}}class pt{constructor(t,e){this._arg=t,this._calculate=e,this.type=R}static{this.ops={downcase:t=>t.toLowerCase(),upcase:t=>t.toUpperCase()}}static parse(t,e){if(2!==t.length)throw new Error(`${t[0]} expects 1 argument`);const i=wt(t[1],e);return new pt(i,pt.ops[t[0]])}evaluate(t,e){return this._calculate(this._arg.evaluate(t,e))}}class ft{constructor(t){this._args=t,this.type=S}static parse(t,e){if(4!==t.length)throw new Error('"rgb" expects 3 arguments');const i=t.slice(1).map(t=>wt(t,e));return new ft(i)}evaluate(t,e){const i=this._validate(this._args[0].evaluate(t,e)),r=this._validate(this._args[1].evaluate(t,e)),n=this._validate(this._args[2].evaluate(t,e));return new v.A({r:i,g:r,b:n})}_validate(t){if("number"!=typeof t||t<0||t>255)throw new Error(`${t}: invalid color component`);return Math.round(t)}}class _t{constructor(t){this._args=t,this.type=S}static parse(t,e){if(5!==t.length)throw new Error('"rgba" expects 4 arguments');const i=t.slice(1).map(t=>wt(t,e));return new _t(i)}evaluate(t,e){const i=this._validate(this._args[0].evaluate(t,e)),r=this._validate(this._args[1].evaluate(t,e)),n=this._validate(this._args[2].evaluate(t,e)),s=this._validateAlpha(this._args[3].evaluate(t,e));return new v.A({r:i,g:r,b:n,a:s})}_validate(t){if("number"!=typeof t||t<0||t>255)throw new Error(`${t}: invalid color component`);return Math.round(t)}_validateAlpha(t){if("number"!=typeof t||t<0||t>1)throw new Error(`${t}: invalid alpha color component`);return t}}class mt{constructor(t){this._color=t,this.type=O(D,4)}static parse(t,e){if(2!==t.length)throw new Error('"to-rgba" expects 1 argument');const i=wt(t[1],e);return new mt(i)}evaluate(t,e){return new v.A(this._color.evaluate(t,e)).toRgba()}}class gt{constructor(t,e){this.type=t,this._args=e}static parse(t,e){const i=t[0];if(t.length<2)throw new Error(`${i} expects at least one argument`);let r,n=1;if("array"===i){if(t.length>2){switch(t[1]){case"string":r=R;break;case"number":r=D;break;case"boolean":r=A;break;default:throw new Error('"array" type argument must be string, number or boolean')}n++}else r=N;let e;if(t.length>3){if(e=t[2],null!==e&&("number"!=typeof e||e<0||e!==Math.floor(e)))throw new Error('"array" length argument must be a positive integer literal');n++}r=O(r,e)}else switch(i){case"string":r=R;break;case"number":r=D;break;case"boolean":r=A;break;case"object":r=L}const s=[];for(;n<t.length;n++){const i=wt(t[n],e);s.push(i)}return new gt(r,s)}evaluate(t,e){let i;for(const r of this._args){const n=r.evaluate(t,e);if(i=U(n),k(i,this.type))return n}throw new Error(`Expected ${M(this.type)} but got ${M(i)}`)}}class dt{static{this.types={"to-boolean":A,"to-color":S,"to-number":D,"to-string":R}}constructor(t,e){this.type=t,this._args=e}static parse(t,e){const i=t[0],r=dt.types[i];if(r===A||r===R){if(2!==t.length)throw new Error(`${i} expects one argument`)}else if(t.length<2)throw new Error(`${i} expects at least one argument`);const n=[];for(let i=1;i<t.length;i++){const r=wt(t[i],e);n.push(r)}return new dt(r,n)}evaluate(t,e){if(this.type===A)return Boolean(this._args[0].evaluate(t,e));if(this.type===R)return G(this._args[0].evaluate(t,e));if(this.type===D){for(const i of this._args){const r=Number(i.evaluate(t,e));if(!isNaN(r))return r}return null}if(this.type===S){for(const i of this._args)try{const r=dt.toColor(i.evaluate(t,e));if(r instanceof v.A)return r}catch{}return null}}static toBoolean(t){return Boolean(t)}static toString(t){return G(t)}static toNumber(t){const e=Number(t);if(isNaN(e))throw new Error(`"${t}" is not a number`);return e}static toColor(t){if(t instanceof v.A)return t;if("string"==typeof t){const e=v.A.fromString(t);if(e)return e;throw new Error(`"${t}" is not a color`)}if(Array.isArray(t))return v.A.fromArray(t);throw new Error(`"${t}" is not a color`)}}class xt{constructor(t){this._val=t,this.type=U(t)}static parse(t){if(2!==t.length)throw new Error('"literal" expects 1 argument');return new xt(t[1])}evaluate(t,e){return this._val}}class bt{constructor(t){this._arg=t,this.type=R}static parse(t,e){if(2!==t.length)throw new Error('"typeof" expects 1 argument');return new bt(wt(t[1],e))}evaluate(t,e){return M(U(this._arg.evaluate(t,e)))}}function wt(t,e,i){const r=typeof t;if("string"===r||"boolean"===r||"number"===r||null===t){if(i)switch(i.kind){case"string":"string"!==r&&(t=dt.toString(t));break;case"number":"number"!==r&&(t=dt.toNumber(t));break;case"color":t=dt.toColor(t)}t=["literal",t]}if(!Array.isArray(t)||0===t.length)throw new Error("Expression must be a non empty array");const n=t[0];if("string"!=typeof n)throw new Error("First element of expression must be a string");const s=vt[n];if(void 0===s)throw new Error(`Invalid expression operator "${n}"`);if(!s)throw new Error(`Unimplemented expression operator "${n}"`);return s.parse(t,e,i)}const vt={array:gt,boolean:gt,collator:null,format:null,image:null,literal:xt,number:gt,"number-format":null,object:gt,string:gt,"to-boolean":dt,"to-color":dt,"to-number":dt,"to-string":dt,typeof:bt,accumulated:null,"feature-state":null,"geometry-type":F,id:V,"line-progress":null,properties:C,at:it,get:rt,has:nt,in:st,"index-of":at,length:ot,slice:lt,"!":Y,"!=":class extends H{static parse(t,e){return H.parse(t,e,(t,e)=>t!==e)}},"<":class extends H{static parse(t,e){return H.parse(t,e,(t,e)=>t<e)}},"<=":class extends H{static parse(t,e){return H.parse(t,e,(t,e)=>t<=e)}},"==":class extends H{static parse(t,e){return H.parse(t,e,(t,e)=>t===e)}},">":class extends H{static parse(t,e){return H.parse(t,e,(t,e)=>t>e)}},">=":class extends H{static parse(t,e){return H.parse(t,e,(t,e)=>t>=e)}},all:q,any:j,case:X,coalesce:K,match:Z,within:null,interpolate:J,"interpolate-hcl":J,"interpolate-lab":J,step:Q,let:tt,var:et,concat:yt,downcase:pt,"is-supported-script":null,"resolved-locale":null,upcase:pt,rgb:ft,rgba:_t,"to-rgba":mt,"-":class extends ht{static parse(t,e){switch(t.length){case 2:return ht.parse(t,e,t=>-t[0]);case 3:return ht.parse(t,e,t=>t[0]-t[1]);default:throw new Error('"-" expects 1 or 2 arguments')}}},"*":class extends ht{static parse(t,e){return ht.parse(t,e,t=>{let e=1;for(const i of t)e*=i;return e})}},"/":class extends ht{static parse(t,e){if(3===t.length)return ht.parse(t,e,t=>t[0]/t[1]);throw new Error('"/" expects 2 arguments')}},"%":class extends ht{static parse(t,e){if(3===t.length)return ht.parse(t,e,t=>t[0]%t[1]);throw new Error('"%" expects 2 arguments')}},"^":class extends ht{static parse(t,e){if(3===t.length)return ht.parse(t,e,t=>t[0]**t[1]);throw new Error('"^" expects 1 or 2 arguments')}},"+":class extends ht{static parse(t,e){return ht.parse(t,e,t=>{let e=0;for(const i of t)e+=i;return e})}},abs:ct,acos:ct,asin:ct,atan:ct,ceil:ct,cos:ct,e:ct,floor:ct,ln:ct,ln2:ct,log10:ct,log2:ct,max:ct,min:ct,pi:ct,round:ct,sin:ct,sqrt:ct,tan:ct,zoom:$,"heatmap-density":null,"has-id":ut,none:W};class Tt{constructor(t){this._expression=t}filter(t,e){if(!this._expression)return!0;try{return this._expression.evaluate(t,e)}catch(t){return console.log(t.message),!0}}static createFilter(t){if(!t)return null;this.isLegacyFilter(t)&&(t=this.convertLegacyFilter(t));try{const e=wt(t,null,A);return new Tt(e)}catch(t){return console.log(t.message),null}}static isLegacyFilter(t){if(!Array.isArray(t))return!0;if(0===t.length)return!0;switch(t[0]){case"==":case"!=":case">":case"<":case">=":case"<=":return 3===t.length&&"string"==typeof t[1]&&!Array.isArray(t[2]);case"in":return t.length>=3&&"string"==typeof t[1]&&!Array.isArray(t[2]);case"!in":case"none":case"!has":return!0;case"any":case"all":for(let e=1;e<t.length;e++)if(this.isLegacyFilter(t[e]))return!0;return!1;case"has":return 2===t.length&&("$id"===t[1]||"$type"===t[1]);default:return!1}}static convertLegacyFilter(t){if(!Array.isArray(t)||0===t.length)return!0;const e=t[0];if(1===t.length)return"any"!==e;switch(e){case"==":return Tt.convertComparison("==",t[1],t[2]);case"!=":return Tt.negate(Tt.convertComparison("==",t[1],t[2]));case">":case"<":case">=":case"<=":return Tt.convertComparison(e,t[1],t[2]);case"in":return Tt.convertIn(t[1],t.slice(2));case"!in":return Tt.negate(Tt.convertIn(t[1],t.slice(2)));case"any":case"all":case"none":return Tt.convertCombining(e,t.slice(1));case"has":return Tt.convertHas(t[1]);case"!has":return Tt.negate(Tt.convertHas(t[1]));default:throw new Error("Unexpected legacy filter.")}}static convertComparison(t,e,i){switch(e){case"$type":return[t,["geometry-type"],i];case"$id":return[t,["id"],i];default:return[t,["get",e],i]}}static convertIn(t,e){switch(t){case"$type":return["in",["geometry-type"],["literal",e]];case"$id":return["in",["id"],["literal",e]];default:return["in",["get",t],["literal",e]]}}static convertHas(t){switch(t){case"$type":return!0;case"$id":return["has-id"];default:return["has",t]}}static convertCombining(t,e){return[t].concat(e.map(this.convertLegacyFilter))}static negate(t){return["!",t]}}class Et{static{this.backgroundLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0}}}static{this.fillLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0}}}static{this.lineLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0},"line-cap":{type:"enum",values:["butt","round","square"],default:0},"line-join":{type:"enum",values:["bevel","round","miter"],default:2},"line-miter-limit":{type:"number",default:2},"line-round-limit":{type:"number",default:1.05}}}static{this.symbolLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0},"symbol-avoid-edges":{type:"boolean",default:!1},"symbol-placement":{type:"enum",values:["point","line","line-center"],default:0},"symbol-sort-key":{type:"number",default:-1},"symbol-spacing":{type:"number",minimum:1,default:250},"icon-allow-overlap":{type:"boolean",default:!1},"icon-anchor":{type:"enum",values:["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"],default:0},"icon-ignore-placement":{type:"boolean",default:!1},"icon-image":{type:"string"},"icon-keep-upright":{type:"boolean",default:!1},"icon-offset":{type:"array",value:"number",length:2,default:[0,0]},"icon-optional":{type:"boolean",default:!1},"icon-padding":{type:"number",minimum:0,default:2},"icon-rotate":{type:"number",default:0},"icon-rotation-alignment":{type:"enum",values:["map","viewport","auto"],default:2},"icon-size":{type:"number",minimum:0,default:1},"text-allow-overlap":{type:"boolean",default:!1},"text-anchor":{type:"enum",values:["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"],default:0},"text-field":{type:"string"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"]},"text-ignore-placement":{type:"boolean",default:!1},"text-justify":{type:"enum",values:["auto","left","center","right"],default:2},"text-keep-upright":{type:"boolean",default:!0},"text-letter-spacing":{type:"number",default:0},"text-line-height":{type:"number",default:1.2},"text-max-angle":{type:"number",minimum:0,default:45},"text-max-width":{type:"number",minimum:0,default:10},"text-offset":{type:"array",value:"number",length:2,default:[0,0]},"text-optional":{type:"boolean",default:!1},"text-padding":{type:"number",minimum:0,default:2},"text-rotate":{type:"number",default:0},"text-rotation-alignment":{type:"enum",values:["map","viewport","auto"],default:2},"text-size":{type:"number",minimum:0,default:16},"text-transform":{type:"enum",values:["none","uppercase","lowercase"],default:0},"text-writing-mode":{type:"array",value:"enum",values:["horizontal","vertical"],default:[0]}}}static{this.circleLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0}}}static{this.backgroundPaintDefinition={"background-color":{type:"color",default:[0,0,0,1]},"background-opacity":{type:"number",minimum:0,maximum:1,default:1},"background-pattern":{type:"string"}}}static{this.fillPaintDefinition={"fill-antialias":{type:"boolean",default:!0},"fill-color":{type:"color",default:[0,0,0,1]},"fill-opacity":{type:"number",minimum:0,maximum:1,default:1},"fill-outline-color":{type:"color",default:[0,0,0,0]},"fill-pattern":{type:"string"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0]},"fill-translate-anchor":{type:"enum",values:["map","viewport"],default:0}}}static{this.linePaintDefinition={"line-blur":{type:"number",minimum:0,default:0},"line-color":{type:"color",default:[0,0,0,1]},"line-dasharray":{type:"array",value:"number",default:[]},"line-gap-width":{type:"number",minimum:0,default:0},"line-offset":{type:"number",default:0},"line-opacity":{type:"number",minimum:0,maximum:1,default:1},"line-pattern":{type:"string"},"line-translate":{type:"array",value:"number",length:2,default:[0,0]},"line-translate-anchor":{type:"enum",values:["map","viewport"],default:0},"line-width":{type:"number",minimum:0,default:1}}}static{this.symbolPaintDefinition={"icon-color":{type:"color",default:[0,0,0,1]},"icon-halo-blur":{type:"number",minimum:0,default:0},"icon-halo-color":{type:"color",default:[0,0,0,0]},"icon-halo-width":{type:"number",minimum:0,default:0},"icon-opacity":{type:"number",minimum:0,maximum:1,default:1},"icon-translate":{type:"array",value:"number",length:2,default:[0,0]},"icon-translate-anchor":{type:"enum",values:["map","viewport"],default:0},"text-color":{type:"color",default:[0,0,0,1]},"text-halo-blur":{type:"number",minimum:0,default:0},"text-halo-color":{type:"color",default:[0,0,0,0]},"text-halo-width":{type:"number",minimum:0,default:0},"text-opacity":{type:"number",minimum:0,maximum:1,default:1},"text-translate":{type:"array",value:"number",length:2,default:[0,0]},"text-translate-anchor":{type:"enum",values:["map","viewport"],default:0}}}static{this.rasterPaintDefinition={"raster-opacity":{type:"number",minimum:0,maximum:1,default:1},"raster-hue-rotate":{type:"number",default:0},"raster-brightness-min":{type:"number",minimum:0,maximum:1,default:0},"raster-brightness-max":{type:"number",minimum:0,maximum:1,default:1},"raster-saturation":{type:"number",minimum:-1,maximum:1,default:0},"raster-contrast":{type:"number",minimum:-1,maximum:1,default:0},"raster-fade-duration":{type:"number",minimum:0,default:300}}}static{this.circlePaintDefinition={"circle-blur":{type:"number",minimum:0,default:0},"circle-color":{type:"color",default:[0,0,0,1]},"circle-opacity":{type:"number",minimum:0,maximum:1,default:1},"circle-radius":{type:"number",minimum:0,default:5},"circle-stroke-color":{type:"color",default:[0,0,0,1]},"circle-stroke-opacity":{type:"number",minimum:0,maximum:1,default:1},"circle-stroke-width":{type:"number",minimum:0,default:0},"circle-translate":{type:"array",value:"number",length:2,default:[0,0]},"circle-translate-anchor":{type:"enum",values:["map","viewport"],default:0}}}}var It=i(40876);class Pt{constructor(t,e){let i;switch(this.isDataDriven=!1,this.interpolator=null,t.type){case"number":case"color":i=!0;break;case"array":i="number"===t.value;break;default:i=!1}if((null==e||""===e&&"color"===t.type)&&(e=t.default),Array.isArray(e)&&e.length>0&&vt[e[0]]){const i={number:D,color:S,string:R,boolean:A,enum:R};try{const r=wt(e,null,"array"===t.type?O(i[t.value]||N,t.length):i[t.type]);this.getValue=this._buildExpression(r,t),this.isDataDriven=!0,r instanceof J&&r.input instanceof $&&(this.interpolator=r)}catch(e){console.log(e.message),this.getValue=this._buildSimple(t.default)}return}i&&"interval"===e.type&&(i=!1);const r=e?.stops&&e.stops.length>0;if(r)for(const i of e.stops)i[1]=this._validate(i[1],t);if(this.isDataDriven=!!e&&!!e.property,this.isDataDriven)if(void 0!==e.default&&(e.default=this._validate(e.default,t)),r)switch(e.type){case"identity":this.getValue=this._buildIdentity(e,t);break;case"categorical":this.getValue=this._buildCategorical(e,t);break;default:this.getValue=i?this._buildInterpolate(e,t):this._buildInterval(e,t)}else this.getValue=this._buildIdentity(e,t);else r?this.getValue=i?this._buildZoomInterpolate(e):this._buildZoomInterval(e):(e=this._validate(e,t),this.getValue=this._buildSimple(e))}_validate(t,e){if("number"===e.type){if(null!=e.minimum&&t<e.minimum)return e.minimum;if(null!=e.maximum&&t>e.maximum)return e.maximum}else"color"===e.type?t=Pt._parseColor(t):"enum"===e.type?"string"==typeof t&&(t=e.values.indexOf(t)):"array"===e.type&&"enum"===e.value?t=t.map(t=>"string"==typeof t?e.values.indexOf(t):t):"string"===e.type&&(t=G(t));return t}_buildSimple(t){return()=>t}_buildExpression(t,e){return(i,r)=>{try{const n=t.evaluate(r,i);return void 0===n?e.default:this._validate(n,e)}catch(t){return console.log(t.message),e.default}}}_buildIdentity(t,e){return(i,r)=>{let n;return r&&(n=r.values[t.property]),void 0!==n&&(n=this._validate(n,e)),null!=n?n:void 0!==t.default?t.default:e.default}}_buildCategorical(t,e){return(i,r)=>{let n;return r&&(n=r.values[t.property]),n=this._categorical(n,t.stops),void 0!==n?n:void 0!==t.default?t.default:e.default}}_buildInterval(t,e){return(i,r)=>{let n;return r&&(n=r.values[t.property]),"number"==typeof n?this._interval(n,t.stops):void 0!==t.default?t.default:e.default}}_buildInterpolate(t,e){return(i,r)=>{let n;return r&&(n=r.values[t.property]),"number"==typeof n?this._interpolate(n,t.stops,t.base||1):void 0!==t.default?t.default:e.default}}_buildZoomInterpolate(t){return e=>this._interpolate(e,t.stops,t.base||1)}_buildZoomInterval(t){return e=>this._interval(e,t.stops)}_categorical(t,e){const i=e.length;for(let r=0;r<i;r++)if(e[r][0]===t)return e[r][1]}_interval(t,e){const i=e.length;let r=0;for(let n=0;n<i&&e[n][0]<=t;n++)r=n;return e[r][1]}_interpolate(t,e,i){let r,n;const a=e.length;for(let i=0;i<a;i++){const s=e[i];if(!(s[0]<=t)){n=s;break}r=s}if(r&&n){const e=n[0]-r[0],a=t-r[0],o=1===i?a/e:(i**a-1)/(i**e-1);if(Array.isArray(r[1])){const t=r[1],e=n[1],i=[];for(let r=0;r<t.length;r++)i.push((0,s.GW)(t[r],e[r],o));return i}return(0,s.GW)(r[1],n[1],o)}return r?r[1]:n?n[1]:void 0}static _isEmpty(t){for(const e in t)if(t.hasOwnProperty(e))return!1;return!0}static _parseColor(t){return Array.isArray(t)?t:"string"==typeof t?(0,It.Vm)(t)??void 0:t instanceof v.A&&!this._isEmpty(t)?t.toUnitRGBA():void 0}}var Dt=i(76213);class Rt{constructor(t,e,i,r){switch(this.type=t,this.typeName=e.type,this.id=e.id,this.source=e.source,this.sourceLayer=e["source-layer"],this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,this.filter=e.filter,this.layout=e.layout,this.paint=e.paint,this.z=i,this.uid=r,t){case 0:this._layoutDefinition=Et.backgroundLayoutDefinition,this._paintDefinition=Et.backgroundPaintDefinition;break;case 1:this._layoutDefinition=Et.fillLayoutDefinition,this._paintDefinition=Et.fillPaintDefinition;break;case 2:this._layoutDefinition=Et.lineLayoutDefinition,this._paintDefinition=Et.linePaintDefinition;break;case 3:this._layoutDefinition=Et.symbolLayoutDefinition,this._paintDefinition=Et.symbolPaintDefinition;break;case 4:this._layoutDefinition=Et.circleLayoutDefinition,this._paintDefinition=Et.circlePaintDefinition}this._layoutProperties=this._parseLayout(this.layout),this._paintProperties=this._parsePaint(this.paint)}getFeatureFilter(){return void 0!==this._featureFilter?this._featureFilter:this._featureFilter=Tt.createFilter(this.filter)}getLayoutProperty(t){return this._layoutProperties[t]}getPaintProperty(t){return this._paintProperties[t]}getLayoutValue(t,e,i){let r;const n=this._layoutProperties[t];return n&&(r=n.getValue(e,i)),void 0===r&&(r=this._layoutDefinition[t].default),r}getPaintValue(t,e,i){let r;const n=this._paintProperties[t];return n&&(r=n.getValue(e,i)),void 0===r&&(r=this._paintDefinition[t].default),r}isPainterDataDriven(){const t=this._paintProperties;if(t)for(const e in t)if(t[e].isDataDriven)return!0;return!1}isIntersectingFeature(t,e,i,r,n,s,a){return!1}getFeatureInflatedBounds(t,e,i,r){return null}_parseLayout(t){const e={};for(const i in t){const r=this._layoutDefinition[i];r&&(e[i]=new Pt(r,t[i]))}return e}_parsePaint(t){const e={};for(const i in t){const r=this._paintDefinition[i];r&&(e[i]=new Pt(r,t[i]))}return e}computeAttributesKey(t,e,i,r){let n=0,s=0;for(const t of e){let e=3;if(!t||t!==r){const r=i[t],{isLayout:n,isOptional:s}=r,a=n?this.getLayoutProperty(t):this.getPaintProperty(t);e=a?.interpolator?2:a?.isDataDriven?1:s&&!a?3:0}s|=e<<n,n+=2}return s<<3|t}}class At extends Rt{constructor(t,e,i,r){super(t,e,i,r),this.backgroundMaterial=new p(this.computeAttributesKey(0,p.ATTRIBUTES,p.ATTRIBUTES_INFO))}}class St extends Rt{constructor(t,e,i,r){super(t,e,i,r);const n=this.getPaintProperty("fill-color"),s=this.getPaintProperty("fill-opacity"),a=this.getPaintProperty("fill-pattern");this.hasDataDrivenColor=n?.isDataDriven,this.hasDataDrivenOpacity=s?.isDataDriven,this.hasDataDrivenFill=this.hasDataDrivenColor||this.hasDataDrivenOpacity||a?.isDataDriven;const o=this.getPaintProperty("fill-outline-color");this.outlineUsesFillColor=!o,this.hasDataDrivenOutlineColor=o?.isDataDriven,this.hasDataDrivenOutline=o?o.isDataDriven:!!n&&n.isDataDriven,this.hasDataDrivenOutline=(o?this.hasDataDrivenOutlineColor:this.hasDataDrivenColor)||this.hasDataDrivenOpacity,this.fillMaterial=new _(this.computeAttributesKey(1,_.ATTRIBUTES,_.ATTRIBUTES_INFO)),this.outlineMaterial=new m(this.computeAttributesKey(2,this.outlineUsesFillColor?m.ATTRIBUTES_FILL:m.ATTRIBUTES_OUTLINE,this.outlineUsesFillColor?m.ATTRIBUTES_INFO_FILL:m.ATTRIBUTES_INFO_OUTLINE),this.outlineUsesFillColor)}getFeatureInflatedBounds(t,e,i,r){const n=Ut(t);if(!n)return null;const s=this.getPaintValue("fill-translate",e,t),a=r*Math.max(s[0],s[1]);return n[0]-=a,n[2]-=a,n[1]+=a,n[3]+=a,n}isIntersectingFeature(t,e,i,r,a,o,l){const u=r.getGeometry();if(!u)return!1;const h=n.ih/l.normalizationRatio;t=t/l.normalizationRatio+l.normalizationOffsetX,e=e/l.normalizationRatio+l.normalizationOffsetY;const c=(0,s.yM)(this.getPaintValue("fill-translate",a,r),this.getPaintValue("fill-translate-anchor",a,r),o,n.ih);return t-=h*c.x,e-=h*c.y,!!(0,s.s3)(t,e,u)||(0,s.ru)(t,e,u,h*i)}}class Lt extends Rt{constructor(t,e,i,r){super(t,e,i,r);const n=this.getPaintProperty("line-pattern");if(this.lineMaterial=new g(this.computeAttributesKey(3,g.ATTRIBUTES,g.ATTRIBUTES_INFO,n?"line-dasharray":"")),this.hasDataDrivenLine=this.getPaintProperty("line-blur")?.isDataDriven||this.getPaintProperty("line-color")?.isDataDriven||this.getPaintProperty("line-gap-width")?.isDataDriven||this.getPaintProperty("line-offset")?.isDataDriven||this.getPaintProperty("line-opacity")?.isDataDriven||this.getPaintProperty("line-pattern")?.isDataDriven||this.getPaintProperty("line-dasharray")?.isDataDriven||this.getLayoutProperty("line-cap")?.isDataDriven||this.getPaintProperty("line-width")?.isDataDriven,this.canUseThinTessellation=!1,!this.hasDataDrivenLine){const t=this.getPaintProperty("line-width");if(!t||"number"==typeof t&&.5*t<Dt.Gh){const t=this.getPaintProperty("line-offset");(!t||"number"==typeof t&&0===t)&&(this.canUseThinTessellation=!0)}}}getDashKey(t,e){let i;switch(e){case 0:default:i="Butt";break;case 1:i="Round";break;case 2:i="Square"}return`dasharray-[${t.toString()}]-${i}`}getFeatureInflatedBounds(t,e,i,r){const n=Ut(t);if(!n)return null;const s=this.getPaintValue("line-translate",e,t),a=r*Math.max(s[0],s[1]);n[0]-=a,n[2]-=a,n[1]+=a,n[3]+=a;const o=r*Math.abs(this.getPaintValue("line-offset",e,t)||0),l=r*(this.getPaintValue("line-width",e,t)/2);return n[0]-=o+l,n[1]-=o+l,n[2]+=o+l,n[3]+=o+l,n}isIntersectingFeature(t,e,i,r,a,o,l){let u=r.getGeometry();if(!u)return!1;const h=n.ih/l.normalizationRatio;t=t/l.normalizationRatio+l.normalizationOffsetX,e=e/l.normalizationRatio+l.normalizationOffsetY;const c=(0,s.yM)(this.getPaintValue("line-translate",a,r),this.getPaintValue("line-translate-anchor",a,r),o,n.ih);t-=h*c.x,e-=h*c.y;const y=h*this.getPaintValue("line-offset",a,r)||0;0!==y&&(u=(0,s.cP)(u,-y));const p=this.getPaintValue("line-width",a,r);return(0,s.ru)(t,e,u,h*(i+p/2))}}class Nt extends Rt{constructor(t,e,i,r){super(t,e,i,r),this.iconMaterial=new b(this.computeAttributesKey(4,b.ATTRIBUTES,b.ATTRIBUTES_INFO)),this.textMaterial=new w(this.computeAttributesKey(6,w.ATTRIBUTES,w.ATTRIBUTES_INFO)),this.hasDataDrivenIcon=this.getPaintProperty("icon-color")?.isDataDriven||this.getPaintProperty("icon-halo-blur")?.isDataDriven||this.getPaintProperty("icon-halo-color")?.isDataDriven||this.getPaintProperty("icon-halo-width")?.isDataDriven||this.getPaintProperty("icon-opacity")?.isDataDriven||this.getLayoutProperty("icon-size")?.isDataDriven,this.hasDataDrivenText=this.getPaintProperty("text-color")?.isDataDriven||this.getPaintProperty("text-halo-blur")?.isDataDriven||this.getPaintProperty("text-halo-color")?.isDataDriven||this.getPaintProperty("text-halo-width")?.isDataDriven||this.getPaintProperty("text-opacity")?.isDataDriven||this.getLayoutProperty("text-size")?.isDataDriven}}class Ot extends Rt{constructor(t,e,i,r){super(t,e,i,r),this.circleMaterial=new f(this.computeAttributesKey(5,f.ATTRIBUTES,f.ATTRIBUTES_INFO))}getFeatureInflatedBounds(t,e,i,r){const s=Ut(t);if(!s)return null;const a=this.getPaintValue("circle-translate",e,t),o=Math.max(a[0],a[1]);s[0]-=o,s[2]-=o,s[1]+=o,s[3]+=o;const l=r*(n.ih*(this.getPaintValue("circle-radius",e,t)+this.getPaintValue("circle-stroke-width",e,t))/2);return s[0]-=l,s[1]-=l,s[2]+=l,s[3]+=l,s}isIntersectingFeature(t,e,i,r,a,o,l){const u=r.getGeometry();if(!u)return!1;const h=n.ih/l.normalizationRatio;t=t/l.normalizationRatio+l.normalizationOffsetX,e=e/l.normalizationRatio+l.normalizationOffsetY,i*=h;const c=(0,s.yM)(this.getPaintValue("circle-translate",a,r),this.getPaintValue("circle-translate-anchor",a,r),o,h),y=h*(this.getPaintValue("circle-radius",a,r)+this.getPaintValue("circle-stroke-width",a,r));let p,f;for(const r of u)if(r)for(const n of r)if(p=n.x+c.x,f=n.y+c.y,Math.sqrt((t-p)*(t-p)+(e-f)*(e-f))-i<=y)return!0;return!1}}class Bt{constructor(t,e,i){let r;this.allowOverlap=t.getLayoutValue("icon-allow-overlap",e),this.ignorePlacement=t.getLayoutValue("icon-ignore-placement",e),this.keepUpright=t.getLayoutValue("icon-keep-upright",e),this.optional=t.getLayoutValue("icon-optional",e),this.rotationAlignment=t.getLayoutValue("icon-rotation-alignment",e),2===this.rotationAlignment&&(this.rotationAlignment=i?0:1),r=t.getLayoutProperty("icon-anchor"),r?.isDataDriven?this._anchorProp=r:this.anchor=t.getLayoutValue("icon-anchor",e),r=t.getLayoutProperty("icon-offset"),r?.isDataDriven?this._offsetProp=r:this.offset=t.getLayoutValue("icon-offset",e),r=t.getLayoutProperty("icon-padding"),r?.isDataDriven?this._paddingProp=r:this.padding=t.getLayoutValue("icon-padding",e),r=t.getLayoutProperty("icon-rotate"),r?.isDataDriven?this._rotateProp=r:this.rotate=t.getLayoutValue("icon-rotate",e),r=t.getLayoutProperty("icon-size"),r?.isDataDriven?this._sizeProp=r:this.size=t.getLayoutValue("icon-size",e)}update(t,e){this._anchorProp&&(this.anchor=this._anchorProp.getValue(t,e)),this._offsetProp&&(this.offset=this._offsetProp.getValue(t,e)),this._paddingProp&&(this.padding=this._paddingProp.getValue(t,e)),this._rotateProp&&(this.rotate=this._rotateProp.getValue(t,e)),this._sizeProp&&(this.size=this._sizeProp.getValue(t,e))}}class Mt{constructor(t,e,i){let r;this.allowOverlap=t.getLayoutValue("text-allow-overlap",e),this.ignorePlacement=t.getLayoutValue("text-ignore-placement",e),this.keepUpright=t.getLayoutValue("text-keep-upright",e),this.optional=t.getLayoutValue("text-optional",e),this.rotationAlignment=t.getLayoutValue("text-rotation-alignment",e),2===this.rotationAlignment&&(this.rotationAlignment=i?0:1),r=t.getLayoutProperty("text-anchor"),r?.isDataDriven?this._anchorProp=r:this.anchor=t.getLayoutValue("text-anchor",e),r=t.getLayoutProperty("text-justify"),r?.isDataDriven?this._justifyProp=r:this.justify=t.getLayoutValue("text-justify",e),r=t.getLayoutProperty("text-letter-spacing"),r?.isDataDriven?this._letterSpacingProp=r:this.letterSpacing=t.getLayoutValue("text-letter-spacing",e),r=t.getLayoutProperty("text-line-height"),r?.isDataDriven?this._lineHeightProp=r:this.lineHeight=t.getLayoutValue("text-line-height",e),r=t.getLayoutProperty("text-max-angle"),r?.isDataDriven?this._maxAngleProp=r:this.maxAngle=t.getLayoutValue("text-max-angle",e),r=t.getLayoutProperty("text-max-width"),r?.isDataDriven?this._maxWidthProp=r:this.maxWidth=t.getLayoutValue("text-max-width",e),r=t.getLayoutProperty("text-offset"),r?.isDataDriven?this._offsetProp=r:this.offset=t.getLayoutValue("text-offset",e),r=t.getLayoutProperty("text-padding"),r?.isDataDriven?this._paddingProp=r:this.padding=t.getLayoutValue("text-padding",e),r=t.getLayoutProperty("text-rotate"),r?.isDataDriven?this._rotateProp=r:this.rotate=t.getLayoutValue("text-rotate",e),r=t.getLayoutProperty("text-size"),r?.isDataDriven?this._sizeProp=r:this.size=t.getLayoutValue("text-size",e),r=t.getLayoutProperty("text-writing-mode"),r?.isDataDriven?this._writingModeProp=r:this.writingMode=t.getLayoutValue("text-writing-mode",e)}update(t,e){this._anchorProp&&(this.anchor=this._anchorProp.getValue(t,e)),this._justifyProp&&(this.justify=this._justifyProp.getValue(t,e)),this._letterSpacingProp&&(this.letterSpacing=this._letterSpacingProp.getValue(t,e)),this._lineHeightProp&&(this.lineHeight=this._lineHeightProp.getValue(t,e)),this._maxAngleProp&&(this.maxAngle=this._maxAngleProp.getValue(t,e)),this._maxWidthProp&&(this.maxWidth=this._maxWidthProp.getValue(t,e)),this._offsetProp&&(this.offset=this._offsetProp.getValue(t,e)),this._paddingProp&&(this.padding=this._paddingProp.getValue(t,e)),this._rotateProp&&(this.rotate=this._rotateProp.getValue(t,e)),this._sizeProp&&(this.size=this._sizeProp.getValue(t,e)),this._writingModeProp&&(this.writingMode=this._writingModeProp.getValue(t,e))}}function Ut(t){const e=t?.getGeometry();if(null==e)return null;let i=1/0,n=1/0,s=-1/0,a=-1/0;for(const t of e)if(t)for(const e of t)i=Math.min(i,e.x),n=Math.min(n,e.y),s=Math.max(s,e.x),a=Math.max(a,e.y);return(0,r.fA)(i,n,s,a)}},5408:(t,e,i)=>{i.d(e,{ih:()=>n,vA:()=>r});const r=4096,n=8},6774:(t,e,i)=>{i.d(e,{O3:()=>s,Ox:()=>a,bR:()=>r});class r{constructor(t,e){this.x=t,this.y=e}static fromArray(t){return new r(t[0],t[1])}clone(){return new r(this.x,this.y)}equals(t,e){return t===this.x&&e===this.y}isEqual(t){return t.x===this.x&&t.y===this.y}setCoords(t,e){return this.x=t,this.y=e,this}normalize(){const t=this.x,e=this.y,i=Math.sqrt(t*t+e*e);return this.x/=i,this.y/=i,this}rightPerpendicular(){const t=this.x;return this.x=this.y,this.y=-t,this}leftPerpendicular(){const t=this.x;return this.x=-this.y,this.y=t,this}move(t,e){return this.x+=t,this.y+=e,this}assign(t){return this.x=t.x,this.y=t.y,this}assignAdd(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this}assignSub(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this}rotate(t,e){const i=this.x,r=this.y;return this.x=i*t-r*e,this.y=i*e+r*t,this}rotateReverse(t,e){const i=this.x,r=this.y;return this.x=i*t+r*e,this.y=-i*e+r*t,this}scale(t){return this.x*=t,this.y*=t,this}length(){const t=this.x,e=this.y;return Math.sqrt(t*t+e*e)}sub(t){return this.x-=t.x,this.y-=t.y,this}add(t){return this.x+=t.x,this.y+=t.y,this}static distance(t,e){const i=e.x-t.x,r=e.y-t.y;return Math.sqrt(i*i+r*r)}static add(t,e){return new r(t.x+e.x,t.y+e.y)}static sub(t,e){return new r(t.x-e.x,t.y-e.y)}}class n{constructor(t,e,i){this.ratio=t,this.x=e,this.y=i}}class s{constructor(t,e,i,r=8,n=8){this._lines=[],this._starts=[],this.validateTessellation=!0,this._pixelRatio=r,this._pixelMargin=n,this._tileSize=512*r,this._dz=t,this._yPos=e,this._xPos=i}setPixelMargin(t){t!==this._pixelMargin&&(this._pixelMargin=t,this.setExtent(this._extent))}setExtent(t){this._extent=t,this._finalRatio=this._tileSize/t*(1<<this._dz);let e=this._pixelRatio*this._pixelMargin;e/=this._finalRatio;const i=t>>this._dz;e>i&&(e=i),this._margin=e,this._xmin=i*this._xPos-e,this._ymin=i*this._yPos-e,this._xmax=this._xmin+i+2*e,this._ymax=this._ymin+i+2*e}reset(t){this._type=t,this._lines=[],this._starts=[],this._line=null,this._start=0}moveTo(t,e){this._pushLine(),this._prevIsIn=this._isIn(t,e),this._moveTo(t,e,this._prevIsIn),this._prevPt=new r(t,e),this._firstPt=new r(t,e),this._dist=0}lineTo(t,e){const i=this._isIn(t,e),s=new r(t,e),a=r.distance(this._prevPt,s);let o,l,u,h,c,y,p,f;if(i)this._prevIsIn?this._lineTo(t,e,!0):(o=this._prevPt,l=s,u=this._intersect(l,o),this._start=this._dist+a*(1-this._r),this._lineTo(u.x,u.y,!0),this._lineTo(l.x,l.y,!0));else if(this._prevIsIn)l=this._prevPt,o=s,u=this._intersect(l,o),this._lineTo(u.x,u.y,!0),this._lineTo(o.x,o.y,!1);else{const t=this._prevPt,e=s;if(t.x<=this._xmin&&e.x<=this._xmin||t.x>=this._xmax&&e.x>=this._xmax||t.y<=this._ymin&&e.y<=this._ymin||t.y>=this._ymax&&e.y>=this._ymax)this._lineTo(e.x,e.y,!1);else{const i=[];if((t.x<this._xmin&&e.x>this._xmin||t.x>this._xmin&&e.x<this._xmin)&&(h=(this._xmin-t.x)/(e.x-t.x),f=t.y+h*(e.y-t.y),f<=this._ymin?y=!1:f>=this._ymax?y=!0:i.push(new n(h,this._xmin,f))),(t.x<this._xmax&&e.x>this._xmax||t.x>this._xmax&&e.x<this._xmax)&&(h=(this._xmax-t.x)/(e.x-t.x),f=t.y+h*(e.y-t.y),f<=this._ymin?y=!1:f>=this._ymax?y=!0:i.push(new n(h,this._xmax,f))),(t.y<this._ymin&&e.y>this._ymin||t.y>this._ymin&&e.y<this._ymin)&&(h=(this._ymin-t.y)/(e.y-t.y),p=t.x+h*(e.x-t.x),p<=this._xmin?c=!1:p>=this._xmax?c=!0:i.push(new n(h,p,this._ymin))),(t.y<this._ymax&&e.y>this._ymax||t.y>this._ymax&&e.y<this._ymax)&&(h=(this._ymax-t.y)/(e.y-t.y),p=t.x+h*(e.x-t.x),p<=this._xmin?c=!1:p>=this._xmax?c=!0:i.push(new n(h,p,this._ymax))),0===i.length)c?y?this._lineTo(this._xmax,this._ymax,!0):this._lineTo(this._xmax,this._ymin,!0):y?this._lineTo(this._xmin,this._ymax,!0):this._lineTo(this._xmin,this._ymin,!0);else if(i.length>1&&i[0].ratio>i[1].ratio)this._start=this._dist+a*i[1].ratio,this._lineTo(i[1].x,i[1].y,!0),this._lineTo(i[0].x,i[0].y,!0);else{this._start=this._dist+a*i[0].ratio;for(let t=0;t<i.length;t++)this._lineTo(i[t].x,i[t].y,!0)}this._lineTo(e.x,e.y,!1)}}this._dist+=a,this._prevIsIn=i,this._prevPt=s}close(){if(this._line.length>2){const t=this._firstPt,e=this._prevPt;t.x===e.x&&t.y===e.y||this.lineTo(t.x,t.y);const i=this._line;let r=i.length;for(;r>=4&&(i[0].x===i[1].x&&i[0].x===i[r-2].x||i[0].y===i[1].y&&i[0].y===i[r-2].y);)i.pop(),i[0].x=i[r-2].x,i[0].y=i[r-2].y,--r}}result(t=!0){return this._pushLine(),0===this._lines.length?null:(3===this._type&&t&&o.simplify(this._tileSize,this._margin*this._finalRatio,this._lines),this._lines)}resultWithStarts(){if(2!==this._type)throw new Error("Only valid for lines");this._pushLine();const t=this._lines,e=t.length;if(0===e)return null;const i=[];for(let r=0;r<e;r++)i.push({line:t[r],start:this._starts[r]||0});return i}_isIn(t,e){return t>=this._xmin&&t<=this._xmax&&e>=this._ymin&&e<=this._ymax}_intersect(t,e){let i,n,s;if(e.x>=this._xmin&&e.x<=this._xmax)n=e.y<=this._ymin?this._ymin:this._ymax,s=(n-t.y)/(e.y-t.y),i=t.x+s*(e.x-t.x);else if(e.y>=this._ymin&&e.y<=this._ymax)i=e.x<=this._xmin?this._xmin:this._xmax,s=(i-t.x)/(e.x-t.x),n=t.y+s*(e.y-t.y);else{n=e.y<=this._ymin?this._ymin:this._ymax,i=e.x<=this._xmin?this._xmin:this._xmax;const r=(i-t.x)/(e.x-t.x),a=(n-t.y)/(e.y-t.y);r<a?(s=r,n=t.y+r*(e.y-t.y)):(s=a,i=t.x+a*(e.x-t.x))}return this._r=s,new r(i,n)}_pushLine(){this._line&&(1===this._type?this._line.length>0&&(this._lines.push(this._line),this._starts.push(this._start)):2===this._type?this._line.length>1&&(this._lines.push(this._line),this._starts.push(this._start)):3===this._type&&this._line.length>3&&(this._lines.push(this._line),this._starts.push(this._start))),this._line=[],this._start=0}_moveTo(t,e,i){3!==this._type?i&&(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.push(new r(t,e))):(i||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),e<this._ymin&&(e=this._ymin),e>this._ymax&&(e=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.push(new r(t,e)),this._isH=!1,this._isV=!1)}_lineTo(t,e,i){let n,s;if(3!==this._type)if(i){if(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.length>0&&(n=this._line[this._line.length-1],n.equals(t,e)))return;this._line.push(new r(t,e))}else this._line&&this._line.length>0&&this._pushLine();else if(i||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),e<this._ymin&&(e=this._ymin),e>this._ymax&&(e=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line&&this._line.length>0){n=this._line[this._line.length-1];const i=n.x===t,a=n.y===e;if(i&&a)return;this._isH&&i||this._isV&&a?(n.x=t,n.y=e,s=this._line[this._line.length-2],s.x===t&&s.y===e?(this._line.pop(),this._line.length<=1?(this._isH=!1,this._isV=!1):(s=this._line[this._line.length-2],this._isH=s.x===t,this._isV=s.y===e)):(this._isH=s.x===t,this._isV=s.y===e)):(this._line.push(new r(t,e)),this._isH=i,this._isV=a)}else this._line.push(new r(t,e))}}class a{setExtent(t){this._ratio=4096===t?1:4096/t}get validateTessellation(){return this._ratio<1}reset(t){this._lines=[],this._line=null}moveTo(t,e){this._line&&this._lines.push(this._line),this._line=[];const i=this._ratio;this._line.push(new r(t*i,e*i))}lineTo(t,e){const i=this._ratio;this._line.push(new r(t*i,e*i))}close(){const t=this._line;t&&!t[0].isEqual(t[t.length-1])&&t.push(t[0])}result(){return this._line&&this._lines.push(this._line),0===this._lines.length?null:this._lines}}class o{static simplify(t,e,i){if(!i)return;const r=-e,n=t+e,s=-e,a=t+e,l=[],u=[],h=i.length;for(let t=0;t<h;++t){const e=i[t];if(!e||e.length<2)continue;let o,h=e[0];const c=e.length;for(let i=1;i<c;++i)o=e[i],h.x===o.x&&(h.x<=r&&(h.y>o.y?(l.push(t),l.push(i),l.push(0),l.push(-1)):(u.push(t),u.push(i),u.push(0),u.push(-1))),h.x>=n&&(h.y<o.y?(l.push(t),l.push(i),l.push(1),l.push(-1)):(u.push(t),u.push(i),u.push(1),u.push(-1)))),h.y===o.y&&(h.y<=s&&(h.x<o.x?(l.push(t),l.push(i),l.push(2),l.push(-1)):(u.push(t),u.push(i),u.push(2),u.push(-1))),h.y>=a&&(h.x>o.x?(l.push(t),l.push(i),l.push(3),l.push(-1)):(u.push(t),u.push(i),u.push(3),u.push(-1)))),h=o}if(0===l.length||0===u.length)return;o.fillParent(i,u,l),o.fillParent(i,l,u);const c=[];o.calcDeltas(c,u,l),o.calcDeltas(c,l,u),o.addDeltas(c,i)}static fillParent(t,e,i){const r=i.length,n=e.length;for(let s=0;s<n;s+=4){const n=e[s],a=e[s+1],o=e[s+2],u=t[n][a-1],h=t[n][a];let c=8092,y=-1;for(let e=0;e<r;e+=4){if(i[e+2]!==o)continue;const r=i[e],n=i[e+1],s=t[r][n-1],a=t[r][n];switch(o){case 0:case 1:if(l(u.y,s.y,a.y)&&l(h.y,s.y,a.y)){const t=Math.abs(a.y-s.y);t<c&&(c=t,y=e)}break;case 2:case 3:if(l(u.x,s.x,a.x)&&l(h.x,s.x,a.x)){const t=Math.abs(a.x-s.x);t<c&&(c=t,y=e)}}}e[s+3]=y}}static calcDeltas(t,e,i){const r=e.length;for(let n=0;n<r;n+=4){const r=[],s=o.calcDelta(n,e,i,r);t.push(e[n]),t.push(e[n+1]),t.push(e[n+2]),t.push(s)}}static calcDelta(t,e,i,r){const n=e[t+3];if(-1===n)return 0;const s=r.length;return s>1&&r[s-2]===n?0:(r.push(n),o.calcDelta(n,i,e,r)+1)}static addDeltas(t,e){const i=t.length;let r=0;for(let e=0;e<i;e+=4){const i=t[e+3];i>r&&(r=i)}for(let n=0;n<i;n+=4){const i=e[t[n]],s=t[n+1],a=r-t[n+3];switch(t[n+2]){case 0:i[s-1].x-=a,i[s].x-=a,1===s&&(i[i.length-1].x-=a),s===i.length-1&&(i[0].x-=a);break;case 1:i[s-1].x+=a,i[s].x+=a,1===s&&(i[i.length-1].x+=a),s===i.length-1&&(i[0].x+=a);break;case 2:i[s-1].y-=a,i[s].y-=a,1===s&&(i[i.length-1].y-=a),s===i.length-1&&(i[0].y-=a);break;case 3:i[s-1].y+=a,i[s].y+=a,1===s&&(i[i.length-1].y+=a),s===i.length-1&&(i[0].y+=a)}}}}const l=(t,e,i)=>t>=e&&t<=i||t>=i&&t<=e},13195:(t,e,i)=>{i.d(e,{GW:()=>m,IU:()=>b,Jo:()=>a,MG:()=>s,Wh:()=>y,cP:()=>T,os:()=>h,p6:()=>_,pJ:()=>o,ru:()=>v,s3:()=>w,wV:()=>f,yM:()=>E,z0:()=>p});var r=i(95108),n=i(6774);const s=Number.POSITIVE_INFINITY,a=Math.PI,o=2*a,l=128/a,u=256/360,h=a/180,c=1/Math.LN2;function y(t,e){return(t%=e)>=0?t:t+e}function p(t){return y(t*l,256)}function f(t){return y(t*u,256)}function _(t){return Math.log(t)*c}function m(t,e,i){return t*(1-i)+e*i}const g=8,d=14,x=16;function b(t){return g+Math.max((t-d)*x,0)}function w(t,e,i){let r,n,s,a=0;for(const o of i){r=o.length;for(let i=1;i<r;++i)n=o[i-1],s=o[i],n.y>e!=s.y>e&&((s.x-n.x)*(e-n.y)-(s.y-n.y)*(t-n.x)>0?a++:a--)}return 0!==a}function v(t,e,i,n){let s,a,o,l;const u=n*n;for(const n of i){const i=n.length;if(!(i<2)){s=n[0].x,a=n[0].y;for(let h=1;h<i;++h){if(o=n[h].x,l=n[h].y,(0,r.Ng)(t,e,s,a,o,l)<u)return!0;s=o,a=l}}}return!1}function T(t,e){if(0===e||Number.isNaN(e))return t;const i=[],r=new n.bR(0,0),s=new n.bR(0,0),a=new n.bR(0,0);for(let o=0;o<t.length;o++){const l=t[o],u=[];for(let t=0;t<l.length;t++){const i=l[t-1],o=l[t],h=l[t+1];0===t?r.setCoords(0,0):r.assignSub(o,i).normalize().rightPerpendicular(),t===l.length-1?s.setCoords(0,0):s.assignSub(h,o).normalize().rightPerpendicular(),a.assignAdd(r,s).normalize();const c=a.x*s.x+a.y*s.y;0!==c&&a.scale(1/c),u.push(n.bR.add(o,a.scale(e)))}i.push(u)}return i}function E(t,e,i,r){const s=new n.bR(t[0],t[1]);if(s.scale(r),"viewport"===e){const t=-i*(Math.PI/180),e=Math.cos(t),r=Math.sin(t);s.rotate(e,r)}return s}},45013:(t,e,i)=>{i.d(e,{A:()=>s});var r=i(4718),n=i(4264);class s{constructor(t,e=!0){if(this.backgroundBucketIds=[],this._uidToLayer=new Map,this._layerByName={},this._runningId=0,this._style=e?(0,r.o8)(t):t,this._style.layers||(this._style.layers=[]),this.version=parseFloat(this._style.version),this.layers=this._style.layers.map((t,e,i)=>this._create(t,e,i)).filter(t=>!!t),this.layers)for(let t=0;t<this.layers.length;t++){const e=this.layers[t];this._layerByName[e.id]=e,this._uidToLayer.set(e.uid,e),0===e.type&&this.backgroundBucketIds.push(e.id)}this._identifyRefLayers()}getLayerStyleProperties(t,e){const i=this.getStyleLayerByUID(t),r=0!==i?.getLayoutValue("symbol-placement",e);let n=i?.getLayoutValue("icon-rotation-alignment",e);2===n&&(n=r?0:1);let s=i?.getLayoutValue("text-rotation-alignment",e);2===s&&(s=r?0:1);const a=i?.getPaintValue("icon-translate",e),o=i?.getPaintValue("icon-translate-anchor",e),l=i?.getPaintValue("text-translate",e),u=i?.getPaintValue("text-translate-anchor",e);return{geometryType:null,iconAllowOverlap:i?.getLayoutValue("icon-allow-overlap",e),iconIgnorePlacement:i?.getLayoutValue("icon-ignore-placement",e),textAllowOverlap:i?.getLayoutValue("text-allow-overlap",e),textIgnorePlacement:i?.getLayoutValue("text-ignore-placement",e),iconRotationAlignment:n,textRotationAlignment:s,iconTranslateAnchor:o,iconTranslate:a,textTranslateAnchor:u,textTranslate:l}}isPainterDataDriven(t){const e=this._layerByName[t];return!!e&&e.isPainterDataDriven()}getStyleLayerId(t){return t>=this.layers.length?null:this.layers[t].id}getStyleLayerByUID(t){return this._uidToLayer.get(t)??null}getStyleLayerIndex(t){const e=this._layerByName[t];return e?this.layers.indexOf(e):-1}setStyleLayer(t,e){if(!t?.id)return;const i=this._style;null!=e&&e>=this.layers.length&&(e=this.layers.length-1);let r,n=!0;const a=this._layerByName[t.id];if(a){const o=this.layers.indexOf(a);e||(e=o),e===o?(n=!1,r=s._recreateLayer(t,a),this.layers[e]=r,i.layers[e]=t):(this.layers.splice(o,1),i.layers.splice(o,1),r=this._create(t,e,this.layers),this.layers.splice(e,0,r),i.layers.splice(e,0,t))}else r=this._create(t,e,this.layers),!e||e>=this.layers.length?(this.layers.push(r),i.layers.push(t)):(this.layers.splice(e,0,r),i.layers.splice(e,0,t));this._layerByName[t.id]=r,this._uidToLayer.set(r.uid,r),n&&this._recomputeZValues(),this._identifyRefLayers()}getStyleLayer(t){const e=this._layerByName[t];return e?{type:e.typeName,id:e.id,source:e.source,"source-layer":e.sourceLayer,minzoom:e.minzoom,maxzoom:e.maxzoom,filter:e.filter,layout:e.layout,paint:e.paint}:null}deleteStyleLayer(t){const e=this._layerByName[t];if(e){delete this._layerByName[t],this._uidToLayer.delete(e.uid);const i=this.layers.indexOf(e);this.layers.splice(i,1),this._style.layers.splice(i,1),this._recomputeZValues(),this._identifyRefLayers()}}getLayerById(t){return this._layerByName[t]}getLayoutProperties(t){const e=this._layerByName[t];return e?e.layout:null}getPaintProperties(t){const e=this._layerByName[t];return e?e.paint:null}setPaintProperties(t,e){const i=this._layerByName[t];if(!i)return;const r={type:i.typeName,id:i.id,source:i.source,"source-layer":i.sourceLayer,minzoom:i.minzoom,maxzoom:i.maxzoom,filter:i.filter,layout:i.layout,paint:e},n=s._recreateLayer(r,i),a=this.layers.indexOf(i);this.layers[a]=n,this._style.layers[a].paint=e,this._layerByName[i.id]=n,this._uidToLayer.set(i.uid,n)}setLayoutProperties(t,e){const i=this._layerByName[t];if(!i)return;const r={type:i.typeName,id:i.id,source:i.source,"source-layer":i.sourceLayer,minzoom:i.minzoom,maxzoom:i.maxzoom,filter:i.filter,layout:e,paint:i.paint},n=s._recreateLayer(r,i),a=this.layers.indexOf(i);this.layers[a]=n,this._style.layers[a].layout=e,this._layerByName[i.id]=n,this._uidToLayer.set(i.uid,n)}setStyleLayerVisibility(t,e){const i=this._layerByName[t];if(!i)return;const r=i.layout||{};r.visibility=e;const n={type:i.typeName,id:i.id,source:i.source,"source-layer":i.sourceLayer,minzoom:i.minzoom,maxzoom:i.maxzoom,filter:i.filter,layout:r,paint:i.paint},a=s._recreateLayer(n,i),o=this.layers.indexOf(i);this.layers[o]=a,this._style.layers[o].layout=r,this._layerByName[i.id]=a,this._uidToLayer.set(i.uid,a)}getStyleLayerVisibility(t){const e=this._layerByName[t];if(!e)return"none";const i=e.layout;return i?.visibility??"visible"}_recomputeZValues(){const t=this.layers,e=1/(t.length+1);for(let i=0;i<t.length;i++)t[i].z=1-(1+i)*e}_identifyRefLayers(){const t=[],e=[];let i=0;for(const r of this.layers){const n=r.layout;if(1===r.type){const e=r;let s=r.source+"|"+r.sourceLayer;s+="|"+(n?.visibility??""),s+="|"+r.minzoom,s+="|"+r.maxzoom,s+="|"+JSON.stringify(r.filter),(e.hasDataDrivenFill||e.hasDataDrivenOutline)&&(s+="|"+i),t.push({key:s,layer:r})}else if(2===r.type){const t=r,s=r.paint,a=null!=s&&(null!=s["line-pattern"]||null!=s["line-dasharray"]);let o=r.source+"|"+r.sourceLayer;o+="|"+(n?.visibility??""),o+="|"+r.minzoom,o+="|"+r.maxzoom,o+="|"+JSON.stringify(r.filter),o+="|"+(void 0!==n?n["line-cap"]:""),o+="|"+(void 0!==n?n["line-join"]:""),(t.hasDataDrivenLine||a)&&(o+="|"+i),e.push({key:o,layer:r})}++i}this._assignRefLayers(t),this._assignRefLayers(e)}_assignRefLayers(t){let e,i;t.sort((t,e)=>t.key<e.key?-1:t.key>e.key?1:0);const r=t.length;for(let n=0;n<r;n++){const s=t[n];if(s.key===e)s.layer.refLayerId=i;else if(e=s.key,i=s.layer.id,1===s.layer.type){if(!s.layer.getPaintProperty("fill-outline-color"))for(let a=n+1;a<r;a++){const r=t[a];if(r.key!==e)break;if(r.layer.getPaintProperty("fill-outline-color")){t[n]=r,t[a]=s,i=r.layer.id;break}}}else if(2===s.layer.type){let a=s.layer;for(let o=n+1;o<r;o++){const r=t[o];if(r.key!==e)break;const l=r.layer;(a.canUseThinTessellation&&!l.canUseThinTessellation||!a.canUseThinTessellation&&(l.getPaintProperty("line-pattern")||l.getPaintProperty("line-dasharray")))&&(a=l,t[n]=r,t[o]=s,i=r.layer.id)}}}}_create(t,e,i){const r=1-(1+e)*(1/(i.length+1)),s=this._runningId++;switch(t.type){case"background":return new n.lf(0,t,r,s);case"fill":return new n.A4(1,t,r,s);case"line":return new n.tU(2,t,r,s);case"symbol":return new n.V1(3,t,r,s);case"raster":return console.warn(`Unsupported vector tile raster layer ${t.id}`),null;case"circle":return new n.L(4,t,r,s)}return null}static _recreateLayer(t,e){switch(t.type){case"background":return new n.lf(0,t,e.z,e.uid);case"fill":return new n.A4(1,t,e.z,e.uid);case"line":return new n.tU(2,t,e.z,e.uid);case"symbol":return new n.V1(3,t,e.z,e.uid);case"raster":return console.warn(`Unsupported vector tile raster layer ${t.id}`),null;case"circle":return new n.L(4,t,e.z,e.uid)}return null}}},63907:(t,e,i)=>{i.d(e,{$0:()=>c,CQ:()=>m,Fq:()=>f,H0:()=>s,SB:()=>l,WR:()=>r,XN:()=>a,iE:()=>o,ld:()=>u,nI:()=>_,pe:()=>n,r6:()=>y,vt:()=>h,yI:()=>p});const r={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},n={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,HALF_FLOAT:5131},s={RGBA4:32854,R16F:33325,RG16F:33327,RGB32F:34837,RGBA16F:34842,R32F:33326,RG32F:33328,RGBA32F:34836,R11F_G11F_B10F:35898,RGB8:32849,RGBA8:32856,RGB5_A1:32855,R8:33321,RG8:33323,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,RGB16F:34843,RGB9_E5:35901,SRGB8:35905,SRGB8_ALPHA8:35907,RGB565:36194,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,RGB10_A2:32857,RGB10_A2UI:36975},a=Object.values(s),o={DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},l={DEPTH_COMPONENT16:33189,DEPTH_COMPONENT24:33190,DEPTH_COMPONENT32F:36012},u={FLOAT:n.FLOAT,UNSIGNED_BYTE:n.UNSIGNED_BYTE,UNSIGNED_INT_24_8:34042,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,BYTE:n.BYTE,UNSIGNED_SHORT:n.UNSIGNED_SHORT,SHORT:n.SHORT,UNSIGNED_INT:n.UNSIGNED_INT,INT:n.INT,HALF_FLOAT:5131,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269},h={Texture:0,TileTexture:1,BufferObject:2,VertexArrayObject:3,Shader:4,Program:5,FramebufferObject:6,Renderbuffer:7,TransformFeedback:8,Sync:9,UNCOUNTED:10,LinesOfCode:10,Uniform:11,COUNT:12},c=0,y=36064,p=36065,f=36066,_=33306,m={COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_SRGB8_ETC2:37493,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37494,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37495,COMPRESSED_RGBA8_ETC2_EAC:37496,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37497}},68197:(t,e,i)=>{i.d(e,{A:()=>u});var r=i(40876),n=i(4576),s=i(34727),a=i(56507);function o(t){return(0,s.qE)((0,a.Vr)(t),0,255)}function l(t,e){const i=t.toString(16).padStart(2,"0");return e?i.slice(0,1):i}class u{static blendColors(t,e,i,r=new u){return r.r=Math.round(t.r+(e.r-t.r)*i),r.g=Math.round(t.g+(e.g-t.g)*i),r.b=Math.round(t.b+(e.b-t.b)*i),r.a=t.a+(e.a-t.a)*i,r._sanitize()}static fromRgb(t,e){const i=(0,r.lT)(t);return i?u.fromArray(i,e):null}static fromHex(t,e=new u){const i=(0,r.oW)(t);return i?u.fromArray(i,e):null}static fromArray(t,e=new u){return e._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(e.a)&&(e.a=1),e._sanitize()}static fromString(t,e){const i=(0,r.Eq)(t);return i?u.fromArray(i,e):null}static fromJSON(t){return null!=t?new u([t[0],t[1],t[2],(t[3]??255)/255]):void 0}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(t){return t??=[0,0,0,0],t[0]=this.r/255,t[1]=this.g/255,t[2]=this.b/255,t[3]=null!=this.a?this.a:1,t}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(t){if("string"==typeof t)u.fromString(t,this);else if((0,n.yc)(t))u.fromArray(t,this);else{const e=t;this._set(e.r??0,e.g??0,e.b??0,e.a??1),t instanceof u||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(t){const e=t?.capitalize??!1,i=t?.digits??6,r=3===i||4===i,n=4===i||8===i,s=`#${l(this.r,r)}${l(this.g,r)}${l(this.b,r)}${n?l(Math.round(255*this.a),r):""}`;return e?s.toUpperCase():s}toCss(t=!1){const e=this.r+", "+this.g+", "+this.b;return t?`rgba(${e}, ${this.a})`:`rgb(${e})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=0){const e=o(this.r),i=o(this.g),r=o(this.b);return 0===t||1!==this.a?[e,i,r,o(255*this.a)]:[e,i,r]}clone(){return new u(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=(0,r.c1)(this.r),this.g=(0,r.c1)(this.g),this.b=(0,r.c1)(this.b),this.a=(0,r.G1)(this.a),this}_set(t,e,i,r){this.r=t,this.g=e,this.b=i,this.a=r}}u.prototype.declaredClass="esri.Color"},69397:(t,e,i)=>{i.d(e,{$B:()=>n,Qf:()=>u,Qh:()=>o,RS:()=>s,Ul:()=>f,ez:()=>y,lM:()=>a,qK:()=>c});var r=i(34275);function n(t){return 32+t.length}const s=16;function a(t){if(!t)return 0;let e=c;for(const i in t)t.hasOwnProperty(i)&&(e+=l(t[i],!1));return e}function o(t){if(!t)return 0;if("number"==typeof t[0])return u(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return h(t,8);let i=y;for(let r=0;r<e;r++)i+=l(t[r]);return i}(t);let e=c;for(const i in t)t.hasOwnProperty(i)&&(e+=l(t[i]));return e}function l(t,e=!0){switch(typeof t){case"object":return e?o(t):c;case"string":return n(t);case"number":return s;case"boolean":return 4;default:return 8}}function u(...t){return t.reduce((t,e)=>t+(e?(0,r.iu)(e)?e.byteLength+p:Array.isArray(e)?h(e,s):0:0),0)}function h(t,e){return y+t.length*e}const c=32,y=16,p=145,f=64},74038:(t,e,i)=>{i.d(e,{_:()=>r});class r{constructor(t,e,i,r,n,s=!1,a=0,o=!1){this.name=t,this.count=e,this.type=i,this.offset=r,this.stride=n,this.normalized=s,this.divisor=a,this.integer=o}}},76213:(t,e,i)=>{i.d(e,{C2:()=>a,CQ:()=>r,DY:()=>n,GR:()=>_,Gh:()=>l,MZ:()=>y,TB:()=>f,U5:()=>o,_M:()=>u,cp:()=>m,eG:()=>s,fq:()=>p,hM:()=>c,ie:()=>h});const r=512,n=29,s=24,a=4,o=6,l=1.05,u=3,h=3,c=4,y=1,p=10,f=256,_=32,m=512},80081:(t,e,i)=>{i.d(e,{A:()=>r}),i(44208);class r{constructor(t){this._array=[],this._stride=t}get array(){return this._array}get index(){return 4*this._array.length/this._stride}get itemSize(){return this._stride}get sizeInBytes(){return 4*this._array.length}reset(){this.array.length=0}toBuffer(){return new Uint32Array(this._array).buffer}static i1616to32(t,e){return 65535&t|e<<16}static i8888to32(t,e,i,r){return 255&t|(255&e)<<8|(255&i)<<16|r<<24}static i8816to32(t,e,i){return 255&t|(255&e)<<8|i<<16}}},85079:(t,e,i)=>{i.d(e,{Xk:()=>n,_u:()=>s});var r=i(21818);function n(t){let e=0;return(0,r.zI)(new Map(t.map(({name:t,count:i})=>{const r=[t,e];return 16===i?e+=4:9===i?e+=3:++e,r})))}function s(t){const e=new Map;let i=0;return t.forEach(t=>t.forEach(({name:t,count:r})=>{e.set(t,i),16===r?i+=4:9===r?i+=3:++i})),e}},85334:(t,e,i)=>{i.d(e,{$:()=>g,IB:()=>a,Iy:()=>w,N2:()=>d,RH:()=>b,ZD:()=>x});var r=i(68197),n=i(4576),s=i(4718);function a(t){return"r"in t&&"g"in t&&"b"in t}function o(t){return"h"in t&&"s"in t&&"v"in t}function l(t){return"l"in t&&"a"in t&&"b"in t}function u(t){return"l"in t&&"c"in t&&"h"in t}i(34727),i(87317),i(91829);const h=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],c=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];function y(t,e){const i=[];let r,n;if(t[0].length!==e.length)throw new Error("dimensions do not match");const s=t.length,a=t[0].length;let o=0;for(r=0;r<s;r++){for(o=0,n=0;n<a;n++)o+=t[r][n]*e[n];i.push(o)}return i}function p(t){const e=[t.r/255,t.g/255,t.b/255].map(t=>t<=.04045?t/12.92:((t+.055)/1.055)**2.4),i=y(h,e);return{x:100*i[0],y:100*i[1],z:100*i[2]}}function f(t){const e=y(c,[t.x/100,t.y/100,t.z/100]).map(t=>{const e=t<=.0031308?12.92*t:1.055*t**(1/2.4)-.055;return Math.min(1,Math.max(e,0))});return{r:Math.round(255*e[0]),g:Math.round(255*e[1]),b:Math.round(255*e[2])}}function _(t){const e=[t.x/95.047,t.y/100,t.z/108.883].map(t=>t>(6/29)**3?t**(1/3):1/3*(29/6)**2*t+4/29);return{l:116*e[1]-16,a:500*(e[0]-e[1]),b:200*(e[1]-e[2])}}function m(t){const e=t.l,i=[(e+16)/116+t.a/500,(e+16)/116,(e+16)/116-t.b/200].map(t=>t>6/29?t**3:3*(6/29)**2*(t-4/29));return{x:95.047*i[0],y:100*i[1],z:108.883*i[2]}}function g(t){return a(t)?t:u(t)?function(t){return f(m(function(t){const e=t.l,i=t.c,r=t.h;return{l:e,a:i*Math.cos(r),b:i*Math.sin(r)}}(t)))}(t):l(t)?function(t){return f(m(t))}(t):function(t){return"x"in t&&"y"in t&&"z"in t}(t)?f(t):o(t)?function(t){const e=(t.h+360)%360/60,i=t.s/100,r=t.v/100*255,n=r*i,s=n*(1-Math.abs(e%2-1));let a;switch(Math.floor(e)){case 0:a={r:n,g:s,b:0};break;case 1:a={r:s,g:n,b:0};break;case 2:a={r:0,g:n,b:s};break;case 3:a={r:0,g:s,b:n};break;case 4:a={r:s,g:0,b:n};break;case 5:case 6:a={r:n,g:0,b:s};break;default:a={r:0,g:0,b:0}}return a.r=Math.round(a.r+r-n),a.g=Math.round(a.g+r-n),a.b=Math.round(a.b+r-n),a}(t):t}function d(t){return o(t)?t:function(t){const e=t.r,i=t.g,r=t.b,n=Math.max(e,i,r),s=n-Math.min(e,i,r);let a=n,o=0===s?0:n===e?(i-r)/s%6:n===i?(r-e)/s+2:(e-i)/s+4,l=0===s?0:s/a;return o<0&&(o+=6),o*=60,l*=100,a*=100/255,{h:o,s:l,v:a}}(g(t))}function x(t){return l(t)?t:function(t){return _(p(t))}(g(t))}function b(t){return u(t)?t:function(t){return function(t){const e=t.l,i=t.a,r=t.b,n=Math.sqrt(i*i+r*r);let s=Math.atan2(r,i);return s=s>0?s:s+2*Math.PI,{l:e,c:n,h:s}}(_(p(t)))}(g(t))}function w(t,e,i={}){if(0===t.length||e<=0)return[];if(1===(t=t.map(t=>"string"==typeof t?new r.A(t):t)).length||1===e){const i=[],r=t[0];for(let t=0;t<e;t++)i.push(r.clone());return i}if(i.shuffle&&(t=(0,n.k4)((0,s.o8)(t),i.seed)),t.length>=e){const i=[],r=(t.length-1)/(e-1);for(let n=0;n<e;n++){const e=Math.round(n*r);i.push(t[e].clone())}return i}return function(t,e,i={}){const r=[],s=t.length-1,a=Math.ceil((e-t.length)/s);t:for(let n=0;n<s;n++){const s=t[n],o=t[n+1];for(let n=1;n<=a;n++){const l=n/(a+1);if(r.push(T(s,o,l,i)),r.length+t.length===e)break t}}return[...t.map(t=>t.clone()),...(0,n.k4)(r,i.seed??1)]}(t,e,i)}const v=(t,e)=>{const i=Math.floor(10*e())-5;return Math.min(255,Math.max(0,t+i))};function T(t,e,i,s={}){const a=t.r,o=t.g,l=t.b,u=e.r,h=e.g,c=e.b,y=Math.round(a+(u-a)*i),p=Math.round(o+(h-o)*i),f=Math.round(l+(c-l)*i);if(!s.offset)return new r.A([y,p,f]);const _=(0,n.Mo)(s.seed);return new r.A([v(y,_),v(p,_),v(f,_)])}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5897],{4264:(t,e,i)=>{i.d(e,{lf:()=>At,L:()=>Ot,A4:()=>St,aR:()=>Bt,tU:()=>Lt,V1:()=>Nt,uU:()=>Mt});var r=i(19419),n=i(5408),s=i(13195),a=i(80081),o=i(63907),l=i(85079),u=i(74038);class h{constructor(t){this._key=t}get key(){return this._key}get type(){return 7&this._key}defines(){return[]}getStride(){return this._geometryLayout||this._buildAttributesInfo(),this._stride}getAttributeLocations(){return this._geometryLayout||this._buildAttributesInfo(),this._locations}get geometryLayout(){return this._geometryLayout||this._buildAttributesInfo(),this._geometryLayout}getEncodingInfos(){return this._propertyEncodingInfo||this._buildAttributesInfo(),this._propertyEncodingInfo}getUniforms(){return this._uniforms||this._buildAttributesInfo(),this._uniforms}getShaderHeader(){return this._shaderHeader||this._buildAttributesInfo(),this._shaderHeader}getShaderMain(){return this._shaderMain||this._buildAttributesInfo(),this._shaderMain}setDataUniforms(t,e,i,r,n){const s=this.getUniforms();for(const a of s){const{name:s,type:o,getValue:l}=a,u=l(i,e,r,n);if(null!==u)switch(o){case"float":t.setUniform1f(s,u);break;case"vec2":t.setUniform2fv(s,u);break;case"vec4":t.setUniform4fv(s,u)}}}encodeAttributes(t,e,i,r){const n=this.attributesInfo,s=this.getEncodingInfos(),a=[];let o=0,l=0;for(const u of Object.keys(s)){const h=s[u],{type:c,precisionFactor:y,isLayout:p}=n[u],f=p?i.getLayoutProperty(u):i.getPaintProperty(u),_=f.interpolator?.getInterpolationRange(e);let m=0;for(const i of h){const{offset:n,bufferElementsToAdd:s}=i;if(s>0){for(let t=0;t<s;t++)a.push(0);o+=l,l=i.bufferElementsToAdd}const u=r??f.getValue(_?_[m]:e,t);switch(c){case 0:case 1:a[o]|=this._encodeByte(u*(y||1),8*n);break;case 2:case 3:a[o]|=this._encodeShort(u*(y||1),8*n);break;case 4:case 5:a[o]|=this._encodeByte(u*(y||1),8*n),a[o]|=this._encodeByte(u*(y||1),8*n+8);break;case 6:case 7:a[o]|=this._encodeShort(u*(y||1),8*n),a[o]|=this._encodeShort(u*(y||1),8*n+16);break;case 8:case 9:a[o]|=this._encodeByte(u*(y||1),8*n),a[o]|=this._encodeByte(u*(y||1),8*n+8),a[o]|=this._encodeByte(u*(y||1),8*n+16),a[o]|=this._encodeByte(u*(y||1),8*n+24);break;case 10:a[o]=this._encodeColor(u);break;case 11:case 12:this._encodePattern(o,a,u);break;default:throw new Error("Unsupported encoding type")}m++}}return a}getAtributeState(t){let e=0;const i=3+2*t;return e|=this._bit(i),e|=this._bit(i+1)<<1,e}static{this._encodingInfo={0:{dataType:o.pe.BYTE,bytesPerElement:1,count:1,normalized:!1},1:{dataType:o.pe.UNSIGNED_BYTE,bytesPerElement:1,count:1,normalized:!1},2:{dataType:o.pe.SHORT,bytesPerElement:2,count:1,normalized:!1},3:{dataType:o.pe.UNSIGNED_SHORT,bytesPerElement:2,count:1,normalized:!1},4:{dataType:o.pe.BYTE,bytesPerElement:1,count:2,normalized:!1},5:{dataType:o.pe.UNSIGNED_BYTE,bytesPerElement:1,count:2,normalized:!1},6:{dataType:o.pe.SHORT,bytesPerElement:2,count:2,normalized:!1},7:{dataType:o.pe.UNSIGNED_SHORT,bytesPerElement:2,count:2,normalized:!1},8:{dataType:o.pe.BYTE,bytesPerElement:1,count:4,normalized:!1},9:{dataType:o.pe.UNSIGNED_BYTE,bytesPerElement:1,count:4,normalized:!1},10:{dataType:o.pe.UNSIGNED_BYTE,bytesPerElement:1,count:4,normalized:!0},11:{dataType:o.pe.UNSIGNED_SHORT,bytesPerElement:2,count:4,normalized:!1},12:{dataType:o.pe.UNSIGNED_SHORT,bytesPerElement:2,count:4,normalized:!1}}}_buildAttributesInfo(){const t=[],e={},{attributesInfo:i,attributes:r}=this,n={};let s=-1,a=-1;for(const o of r){a++;const r=this.getAtributeState(a);if(0===r||3===r)continue;const l=i[o],u=[];e[o]=u;const c=l.type;for(let e=0;e<r;e++){const{dataType:e,bytesPerElement:i,count:r,normalized:a}=h._encodingInfo[c],o=i*r,l=`${e}-${!0===a}`;let y=n[l],p=0;if(!y||y.count+r>4)s++,y={dataIndex:s,count:0,offset:0},4!==r&&(n[l]=y),t.push({location:-1,name:"a_data_"+s,count:r,type:e,normalized:a}),p=Math.ceil(Math.max(o/4,1));else{const e=t[y.dataIndex];e.count+=r,p=Math.ceil(Math.max(e.count*i/4,1))-Math.ceil(Math.max(y.offset/4,1))}u.push({dataIndex:y.dataIndex,offset:y.offset,bufferElementsToAdd:p}),y.offset+=o,y.count+=r}}for(const e of t)switch(e.type){case o.pe.BYTE:case o.pe.UNSIGNED_BYTE:e.count=4;break;case o.pe.SHORT:case o.pe.UNSIGNED_SHORT:e.count+=e.count%2}this._buildVertexBufferLayout(t),this._buildShaderInfo(t,e),this._propertyEncodingInfo=e}_buildVertexBufferLayout(t){const e=this.baseGeometryLayout;let i=e[0].stride;if(0===t.length)this._geometryLayout=e;else{const r=[];let n=i;for(const e of t)i+=c(e.type)*e.count;for(const t of e)r.push(new u._(t.name,t.count,t.type,t.offset,i,t.normalized));for(const e of t)r.push(new u._(e.name,e.count,e.type,n,i,e.normalized)),n+=c(e.type)*e.count;this._geometryLayout=r}this.opacityLayout?this._locations=(0,l._u)([this._geometryLayout,this.opacityLayout]):this._locations=(0,l.Xk)(this._geometryLayout),this._stride=i}_buildShaderInfo(t,e){let i="\n",r="\n";const n=[];for(const e of t)i+=`attribute ${this._getType(e.count)} ${e.name};\n`;const{attributesInfo:s,attributes:a}=this;let o=-1;for(const t of a){o++;const{name:a,type:l,precisionFactor:u,isLayout:c}=s[t],p=u&&1!==u?" * "+1/u:"",{bytesPerElement:f,count:_}=h._encodingInfo[l],m=t=>`a_data_${t.dataIndex}${y(_,t.offset,f)}`;switch(this.getAtributeState(o)){case 0:{const e=this._getType(_),s=`u_${a}`;n.push({name:s,type:e,getValue:(e,i,r,n)=>{const s=c?e.getLayoutValue(t,i):e.getPaintValue(t,i);if(11===l){const t=e.getDashKey(s,e.getLayoutValue("line-cap",i)),r=n.getMosaicItemPosition(t,!1);if(null==r)return null;const{tl:a,br:o}=r;return[a[0],o[1],o[0],a[1]]}if(12===l){const e=n.getMosaicItemPosition(s,!t.includes("line-"));if(null==e)return null;const{tl:i,br:r}=e;return[i[0],r[1],r[0],i[1]]}if(10===l){const t=s[3];return[t*s[0],t*s[1],t*s[2],t]}return s}}),i+=`uniform ${e} ${s};\n`,r+=`${e} ${a} = ${s};\n`}break;case 1:{const i=m(e[t][0]);r+=`${this._getType(_)} ${a} = ${i}${p};\n`}break;case 2:{const s=`u_t_${a}`;n.push({name:s,type:"float",getValue:(e,i,r,n)=>(c?e.getLayoutProperty(t):e.getPaintProperty(t)).interpolator.interpolationUniformValue(r,i)}),i+=`uniform float ${s};\n`;const o=m(e[t][0]),l=m(e[t][1]);r+=`${this._getType(_)} ${a} = mix(${o}${p}, ${l}${p}, ${s});\n`}}}this._shaderHeader=i,this._shaderMain=r,this._uniforms=n}_bit(t){return(this._key&1<<t)>>t}_getType(t){switch(t){case 1:return"float";case 2:return"vec2";case 3:return"vec3";case 4:return"vec4"}throw new Error("Invalid count")}_encodeColor(t){const e=255*t[3];return a.A.i8888to32(t[0]*e,t[1]*e,t[2]*e,e)}_encodePattern(t,e,i){if(!i?.rect)return;const r=i.rect,n=i.width,s=i.height;e[t]=this._encodeShort(r.x+2,0),e[t]|=this._encodeShort(r.y+2+s,16),e[t+1]=this._encodeShort(r.x+2+n,0),e[t+1]|=this._encodeShort(r.y+2,16)}_encodeByte(t,e){return(255&t)<<e}_encodeShort(t,e){return(65535&t)<<e}}const c=t=>{switch(t){case o.pe.FLOAT:case o.pe.INT:case o.pe.UNSIGNED_INT:return 4;case o.pe.SHORT:case o.pe.UNSIGNED_SHORT:case o.pe.HALF_FLOAT:return 2;case o.pe.BYTE:case o.pe.UNSIGNED_BYTE:return 1}},y=(t,e,i)=>{const r=e/i;if(1===t)switch(r){case 0:return".x";case 1:return".y";case 2:return".z";case 3:return".w"}else if(2===t)switch(r){case 0:return".xy";case 1:return".yz";case 2:return".zw"}else if(3===t)switch(r){case 0:return".xyz";case 1:return".yzw"}return""};class p extends h{static{this.ATTRIBUTES=[]}static{this.GEOMETRY_LAYOUT=[new u._("a_pos",2,o.pe.BYTE,0,2)]}static{this.ATTRIBUTES_INFO={}}constructor(t){super(t),this.baseGeometryLayout=p.GEOMETRY_LAYOUT,this.attributes=p.ATTRIBUTES,this.attributesInfo=p.ATTRIBUTES_INFO}}class f extends h{static{this.ATTRIBUTES=["circle-radius","circle-color","circle-opacity","circle-stroke-width","circle-stroke-color","circle-stroke-opacity","circle-blur"]}static{this.GEOMETRY_LAYOUT=[new u._("a_pos",2,o.pe.SHORT,0,4)]}static{this.ATTRIBUTES_INFO={"circle-radius":{name:"radius",type:1},"circle-color":{name:"color",type:10},"circle-opacity":{name:"opacity",type:1,precisionFactor:100},"circle-stroke-width":{name:"stroke_width",type:1,precisionFactor:4},"circle-stroke-color":{name:"stroke_color",type:10},"circle-stroke-opacity":{name:"stroke_opacity",type:1,precisionFactor:100},"circle-blur":{name:"blur",type:1,precisionFactor:32}}}constructor(t){super(t),this.baseGeometryLayout=f.GEOMETRY_LAYOUT,this.attributes=f.ATTRIBUTES,this.attributesInfo=f.ATTRIBUTES_INFO}}class _ extends h{static{this.ATTRIBUTES=["fill-color","fill-opacity","fill-pattern"]}static{this.GEOMETRY_LAYOUT=[new u._("a_pos",2,o.pe.SHORT,0,4)]}static{this.ATTRIBUTES_INFO={"fill-color":{name:"color",type:10},"fill-opacity":{name:"opacity",type:1,precisionFactor:100},"fill-pattern":{name:"tlbr",type:12,isOptional:!0}}}constructor(t){super(t),this.baseGeometryLayout=_.GEOMETRY_LAYOUT,this.attributes=_.ATTRIBUTES,this.attributesInfo=_.ATTRIBUTES_INFO}}class m extends h{static{this.ATTRIBUTES_OUTLINE=["fill-outline-color","fill-opacity"]}static{this.ATTRIBUTES_FILL=["fill-color","fill-opacity"]}static{this.GEOMETRY_LAYOUT=[new u._("a_pos",2,o.pe.SHORT,0,8),new u._("a_offset",2,o.pe.BYTE,4,8),new u._("a_xnormal",2,o.pe.BYTE,6,8)]}static{this.ATTRIBUTES_INFO_OUTLINE={"fill-outline-color":{name:"color",type:10},"fill-opacity":{name:"opacity",type:1,precisionFactor:100}}}static{this.ATTRIBUTES_INFO_FILL={"fill-color":{name:"color",type:10},"fill-opacity":{name:"opacity",type:1,precisionFactor:100}}}constructor(t,e){super(t),this.baseGeometryLayout=m.GEOMETRY_LAYOUT,this.attributes=e?m.ATTRIBUTES_FILL:m.ATTRIBUTES_OUTLINE,this.attributesInfo=e?m.ATTRIBUTES_INFO_FILL:m.ATTRIBUTES_INFO_OUTLINE}}class g extends h{static{this.ATTRIBUTES=["line-blur","line-color","line-gap-width","line-offset","line-opacity","line-width","line-pattern","line-dasharray"]}static{this.GEOMETRY_LAYOUT=[new u._("a_pos",2,o.pe.SHORT,0,16),new u._("a_extrude_offset",4,o.pe.BYTE,4,16),new u._("a_dir_normal",4,o.pe.BYTE,8,16),new u._("a_accumulatedDistance",2,o.pe.UNSIGNED_SHORT,12,16)]}static{this.ATTRIBUTES_INFO={"line-width":{name:"width",type:1,precisionFactor:2},"line-gap-width":{name:"gap_width",type:1,precisionFactor:2},"line-offset":{name:"offset",type:0,precisionFactor:2},"line-color":{name:"color",type:10},"line-opacity":{name:"opacity",type:1,precisionFactor:100},"line-blur":{name:"blur",type:1,precisionFactor:4},"line-pattern":{name:"tlbr",type:12,isOptional:!0},"line-dasharray":{name:"tlbr",type:11,isOptional:!0}}}constructor(t){super(t),this.baseGeometryLayout=g.GEOMETRY_LAYOUT,this.attributes=g.ATTRIBUTES,this.attributesInfo=g.ATTRIBUTES_INFO}}const d=[new u._("a_pos",2,o.pe.SHORT,0,16),new u._("a_vertexOffset",2,o.pe.SHORT,4,16),new u._("a_texAngleRange",4,o.pe.UNSIGNED_BYTE,8,16),new u._("a_levelInfo",4,o.pe.UNSIGNED_BYTE,12,16)],x=[new u._("a_opacityInfo",1,o.pe.UNSIGNED_BYTE,0,1)];class b extends h{static{this.ATTRIBUTES=["icon-color","icon-opacity","icon-halo-blur","icon-halo-color","icon-halo-width","icon-size"]}static{this.ATTRIBUTES_INFO={"icon-color":{name:"color",type:10},"icon-opacity":{name:"opacity",type:1,precisionFactor:100},"icon-halo-color":{name:"halo_color",type:10},"icon-halo-width":{name:"halo_width",type:1,precisionFactor:4},"icon-halo-blur":{name:"halo_blur",type:1,precisionFactor:4},"icon-size":{name:"size",type:1,precisionFactor:32,isLayout:!0}}}constructor(t){super(t),this.baseGeometryLayout=d,this.opacityLayout=x,this.attributes=b.ATTRIBUTES,this.attributesInfo=b.ATTRIBUTES_INFO}}class w extends h{static{this.ATTRIBUTES=["text-color","text-opacity","text-halo-blur","text-halo-color","text-halo-width","text-size"]}static{this.ATTRIBUTES_INFO={"text-color":{name:"color",type:10},"text-opacity":{name:"opacity",type:1,precisionFactor:100},"text-halo-color":{name:"halo_color",type:10},"text-halo-width":{name:"halo_width",type:1,precisionFactor:4},"text-halo-blur":{name:"halo_blur",type:1,precisionFactor:4},"text-size":{name:"size",type:1,isLayout:!0}}}constructor(t){super(t),this.baseGeometryLayout=d,this.opacityLayout=x,this.attributes=w.ATTRIBUTES,this.attributesInfo=w.ATTRIBUTES_INFO}}var v=i(68197),T=i(85334);function E(t,e,i,r){const n=3*t,s=3*(i-t)-n,a=1-n-s,o=3*e,l=3*(r-e)-o,u=1-o-l;function h(t){return((a*t+s)*t+n)*t}function c(t){return(3*a*t+2*s)*t+n}return function(t,e=1e-6){return function(t){return((u*t+l)*t+o)*t}(function(t,e){let i,r,n,s,a,o;for(n=t,o=0;o<8;o++){if(s=h(n)-t,Math.abs(s)<e)return n;if(a=c(n),Math.abs(a)<1e-6)break;n-=s/a}if(i=0,r=1,n=t,n<i)return i;if(n>r)return r;for(;i<r;){if(s=h(n),Math.abs(s-t)<e)return n;t>s?i=n:r=n,n=.5*(r-i)+i}return n}(t,e))}}const I={};I.ease=E(.25,.1,.25,1),I.linear=E(0,0,1,1),I.easeIn=I["ease-in"]=E(.42,0,1,1),I.easeOut=I["ease-out"]=E(0,0,.58,1),I.easeInOut=I["ease-in-out"]=E(.42,0,.58,1);const P={kind:"null"},D={kind:"number"},R={kind:"string"},A={kind:"boolean"},S={kind:"color"},L={kind:"object"},N={kind:"value"};function O(t,e){return{kind:"array",itemType:t,n:e}}const B=[P,D,R,A,S,L,O(N)];function M(t){if("array"===t.kind){const e=M(t.itemType);return"number"==typeof t.n?`array<${e}, ${t.n}>`:"value"===t.itemType.kind?"array":`array<${e}>`}return t.kind}function U(t){if(null===t)return P;if("string"==typeof t)return R;if("boolean"==typeof t)return A;if("number"==typeof t)return D;if(t instanceof v.A)return S;if(Array.isArray(t)){let e;for(const i of t){const t=U(i);if(e){if(e!==t){e=N;break}}else e=t}return O(e||N,t.length)}return"object"==typeof t?L:N}function k(t,e){if("array"===e.kind)return"array"===t.kind&&(0===t.n&&"value"===t.itemType.kind||k(t.itemType,e.itemType))&&("number"!=typeof e.n||e.n===t.n);if("value"===e.kind)for(const e of B)if(k(t,e))return!0;return e.kind===t.kind}function G(t){if(null===t)return"";const e=typeof t;return"string"===e?t:"number"===e||"boolean"===e?String(t):t instanceof v.A?t.toString():JSON.stringify(t)}class z{constructor(t){this._parent=t,this._vars={}}add(t,e){this._vars[t]=e}get(t){return this._vars[t]?this._vars[t]:this._parent?this._parent.get(t):null}}class V{constructor(){this.type=N}static parse(t){if(t.length>1)throw new Error('"id" does not expect arguments');return new V}evaluate(t,e){return t?.id}}class F{constructor(){this.type=R}static parse(t){if(t.length>1)throw new Error('"geometry-type" does not expect arguments');return new F}evaluate(t,e){if(!t)return null;switch(t.type){case 1:return"Point";case 2:return"LineString";case 3:return"Polygon";default:return null}}}class C{constructor(){this.type=L}static parse(t){if(t.length>1)throw new Error('"properties" does not expect arguments');return new C}evaluate(t,e){return t?.values}}class ${constructor(){this.type=D}static parse(t){if(t.length>1)throw new Error('"zoom" does not expect arguments');return new $}evaluate(t,e){return e}}class H{constructor(t,e,i){this._lhs=t,this._rhs=e,this._compare=i,this.type=A}static parse(t,e,i){if(3!==t.length&&4!==t.length)throw new Error(`"${t[0]}" expects 2 or 3 arguments`);if(4===t.length)throw new Error(`"${t[0]}" collator not supported`);return new H(wt(t[1],e),wt(t[2],e),i)}evaluate(t,e){return this._compare(this._lhs.evaluate(t,e),this._rhs.evaluate(t,e))}}class Y{constructor(t){this._arg=t,this.type=A}static parse(t,e){if(2!==t.length)throw new Error('"!" expects 1 argument');return new Y(wt(t[1],e))}evaluate(t,e){return!this._arg.evaluate(t,e)}}class q{constructor(t){this._args=t,this.type=A}static parse(t,e){const i=[];for(let r=1;r<t.length;r++)i.push(wt(t[r],e));return new q(i)}evaluate(t,e){for(const i of this._args)if(!i.evaluate(t,e))return!1;return!0}}class j{constructor(t){this._args=t,this.type=A}static parse(t,e){const i=[];for(let r=1;r<t.length;r++)i.push(wt(t[r],e));return new j(i)}evaluate(t,e){for(const i of this._args)if(i.evaluate(t,e))return!0;return!1}}class W{constructor(t){this._args=t,this.type=A}static parse(t,e){const i=[];for(let r=1;r<t.length;r++)i.push(wt(t[r],e));return new W(i)}evaluate(t,e){for(const i of this._args)if(i.evaluate(t,e))return!1;return!0}}class X{constructor(t,e,i){this.type=t,this._args=e,this._fallback=i}static parse(t,e,i){if(t.length<4)throw new Error('"case" expects at least 3 arguments');if(t.length%2==1)throw new Error('"case" expects an odd number of arguments');let r;const n=[];for(let s=1;s<t.length-1;s+=2){const a=wt(t[s],e),o=wt(t[s+1],e,i);r||(r=o.type),n.push({condition:a,output:o})}const s=wt(t[t.length-1],e,i);return r||(r=s.type),new X(r,n,s)}evaluate(t,e){for(const i of this._args)if(i.condition.evaluate(t,e))return i.output.evaluate(t,e);return this._fallback.evaluate(t,e)}}class K{constructor(t,e){this.type=t,this._args=e}static parse(t,e){if(t.length<2)throw new Error('"coalesce" expects at least 1 argument');let i;const r=[];for(let n=1;n<t.length;n++){const s=wt(t[n],e);i||(i=s.type),r.push(s)}return new K(i,r)}evaluate(t,e){for(const i of this._args){const r=i.evaluate(t,e);if(null!==r)return r}return null}}class Z{constructor(t,e,i,r,n){this.type=t,this._input=e,this._labels=i,this._outputs=r,this._fallback=n}static parse(t,e){if(t.length<3)throw new Error('"match" expects at least 3 arguments');if(t.length%2==0)throw new Error('"case" expects an even number of arguments');let i;const r=wt(t[1],e),n=[],s={};let a;for(let r=2;r<t.length-1;r+=2){let o=t[r];Array.isArray(o)||(o=[o]);for(const t of o){const e=typeof t;if("string"!==e&&"number"!==e)throw new Error('"match" requires string or number literal as labels');if(a){if(e!==a)throw new Error('"match" requires labels to have the same type')}else a=e;s[t]=n.length}const l=wt(t[r+1],e);i||(i=l.type),n.push(l)}return new Z(i,r,s,n,wt(t[t.length-1],e))}evaluate(t,e){const i=this._input.evaluate(t,e);return(this._outputs[this._labels[i]]||this._fallback).evaluate(t,e)}}class J{constructor(t,e,i,r,n){this._operator=t,this.type=e,this.interpolation=i,this.input=r,this._stops=n}static parse(t,e,i){const r=t[0];if(t.length<5)throw new Error(`"${r}" expects at least 4 arguments`);const n=t[1];if(!Array.isArray(n)||0===n.length)throw new Error(`"${n}" is not a valid interpolation`);switch(n[0]){case"linear":if(1!==n.length)throw new Error("Linear interpolation cannot have parameters");break;case"exponential":if(2!==n.length||"number"!=typeof n[1])throw new Error("Exponential interpolation requires one numeric argument");break;case"cubic-bezier":if(5!==n.length)throw new Error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1");for(let t=1;t<5;t++){const e=n[t];if("number"!=typeof e||e<0||e>1)throw new Error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1")}break;default:throw new Error(`"${t[0]}" unknown interpolation type "${n[0]}"`)}if(t.length%2!=1)throw new Error(`"${r}" expects an even number of arguments`);const s=wt(t[2],e,D);let a;"interpolate-hcl"===r||"interpolate-lab"===r?a=S:i&&"value"!==i.kind&&(a=i);const o=[];for(let i=3;i<t.length;i+=2){const n=t[i];if("number"!=typeof n)throw new Error(`"${r}" requires stop inputs as literal numbers`);if(o.length&&o[o.length-1][0]>=n)throw new Error(`"${r}" requires strictly ascending stop inputs`);const s=wt(t[i+1],e,a);a||(a=s.type),o.push([n,s])}if(a&&a!==S&&a!==D&&("array"!==a.kind||a.itemType!==D))throw new Error(`"${r}" cannot interpolate type ${M(a)}`);return new J(r,a,n,s,o)}evaluate(t,e){const i=this._stops;if(1===i.length)return i[0][1].evaluate(t,e);const r=this.input.evaluate(t,e);if(r<=i[0][0])return i[0][1].evaluate(t,e);if(r>=i[i.length-1][0])return i[i.length-1][1].evaluate(t,e);let n=0;for(;++n<i.length&&!(r<i[n][0]););const a=i[n-1][0],o=i[n][0],l=J.interpolationRatio(this.interpolation,r,a,o),u=i[n-1][1].evaluate(t,e),h=i[n][1].evaluate(t,e);if("interpolate"===this._operator){if("array"===this.type.kind&&Array.isArray(u)&&Array.isArray(h))return u.map((t,e)=>(0,s.GW)(t,h[e],l));if("color"===this.type.kind&&u instanceof v.A&&h instanceof v.A){const t=new v.A(u),e=new v.A(h);return new v.A([(0,s.GW)(t.r,e.r,l),(0,s.GW)(t.g,e.g,l),(0,s.GW)(t.b,e.b,l),(0,s.GW)(t.a,e.a,l)])}if("number"===this.type.kind&&"number"==typeof u&&"number"==typeof h)return(0,s.GW)(u,h,l);throw new Error(`"${this._operator}" cannot interpolate type ${M(this.type)}`)}if("interpolate-hcl"===this._operator){const t=(0,T.RH)(u),e=(0,T.RH)(h),i=e.h-t.h,r=(0,T.$)({h:t.h+l*(i>180||i<-180?i-360*Math.round(i/360):i),c:(0,s.GW)(t.c,e.c,l),l:(0,s.GW)(t.l,e.l,l)});return new v.A({a:(0,s.GW)(u.a,h.a,l),...r})}if("interpolate-lab"===this._operator){const t=(0,T.ZD)(u),e=(0,T.ZD)(h),i=(0,T.$)({l:(0,s.GW)(t.l,e.l,l),a:(0,s.GW)(t.a,e.a,l),b:(0,s.GW)(t.b,e.b,l)});return new v.A({a:(0,s.GW)(u.a,h.a,l),...i})}throw new Error(`Unexpected operator "${this._operator}"`)}interpolationUniformValue(t,e){const i=this._stops;if(1===i.length)return 0;if(t>=i[i.length-1][0])return 0;let r=0;for(;++r<i.length&&!(t<i[r][0]););const n=i[r-1][0],s=i[r][0];return J.interpolationRatio(this.interpolation,e,n,s)}getInterpolationRange(t){const e=this._stops;if(1===e.length){const t=e[0][0];return[t,t]}const i=e[e.length-1][0];if(t>=i)return[i,i];let r=0;for(;++r<e.length&&!(t<e[r][0]););return[e[r-1][0],e[r][0]]}static interpolationRatio(t,e,i,r){let n=0;return"linear"===t[0]?n=J._exponentialInterpolationRatio(e,1,i,r):"exponential"===t[0]?n=J._exponentialInterpolationRatio(e,t[1],i,r):"cubic-bezier"===t[0]&&(n=E(t[1],t[2],t[3],t[4])(J._exponentialInterpolationRatio(e,1,i,r),1e-5)),n<0?n=0:n>1&&(n=1),n}static _exponentialInterpolationRatio(t,e,i,r){const n=r-i;if(0===n)return 0;const s=t-i;return 1===e?s/n:(e**s-1)/(e**n-1)}}class Q{constructor(t,e,i){this.type=t,this._input=e,this._stops=i}static parse(t,e){if(t.length<5)throw new Error('"step" expects at least 4 arguments');if(t.length%2!=1)throw new Error('"step" expects an even number of arguments');const i=wt(t[1],e,D);let r;const n=[];n.push([-1/0,wt(t[2],e)]);for(let i=3;i<t.length;i+=2){const s=t[i];if("number"!=typeof s)throw new Error('"step" requires stop inputs as literal numbers');if(n.length&&n[n.length-1][0]>=s)throw new Error('"step" requires strictly ascending stop inputs');const a=wt(t[i+1],e);r||(r=a.type),n.push([s,a])}return new Q(r,i,n)}evaluate(t,e){const i=this._stops;if(1===i.length)return i[0][1].evaluate(t,e);const r=this._input.evaluate(t,e);let n=0;for(;++n<i.length&&!(r<i[n][0]););return this._stops[n-1][1].evaluate(t,e)}}class tt{constructor(t,e){this.type=t,this._output=e}static parse(t,e,i){if(t.length<4)throw new Error('"let" expects at least 3 arguments');if(t.length%2==1)throw new Error('"let" expects an odd number of arguments');const r=new z(e);for(let i=1;i<t.length-1;i+=2){const n=t[i];if("string"!=typeof n)throw new Error(`"let" requires a string to define variable names - found ${n}`);r.add(n,wt(t[i+1],e))}const n=wt(t[t.length-1],r,i);return new tt(n.type,n)}evaluate(t,e){return this._output.evaluate(t,e)}}class et{constructor(t,e){this.type=t,this.output=e}static parse(t,e,i){if(2!==t.length||"string"!=typeof t[1])throw new Error('"var" requires just one literal string argument');const r=e.get(t[1]);if(!r)throw new Error(`${t[1]} must be defined before being used in a "var" expression`);return new et(i||N,r)}evaluate(t,e){return this.output.evaluate(t,e)}}class it{constructor(t,e,i){this.type=t,this._index=e,this._array=i}static parse(t,e){if(3!==t.length)throw new Error('"at" expects 2 arguments');const i=wt(t[1],e,D),r=wt(t[2],e);return new it(r.type.itemType,i,r)}evaluate(t,e){const i=this._index.evaluate(t,e),r=this._array.evaluate(t,e);if(i<0||i>=r.length)throw new Error('"at" index out of bounds');if(i!==Math.floor(i))throw new Error('"at" index must be an integer');return r[i]}}class rt{constructor(t,e){this._key=t,this._obj=e,this.type=N}static parse(t,e){let i,r;switch(t.length){case 2:return i=wt(t[1],e),new rt(i);case 3:return i=wt(t[1],e),r=wt(t[2],e),new rt(i,r);default:throw new Error('"get" expects 1 or 2 arguments')}}evaluate(t,e){const i=this._key.evaluate(t,e);return this._obj?this._obj.evaluate(t,e)[i]:t?.values[i]}}class nt{constructor(t,e){this._key=t,this._obj=e,this.type=A}static parse(t,e){let i,r;switch(t.length){case 2:return i=wt(t[1],e),new nt(i);case 3:return i=wt(t[1],e),r=wt(t[2],e),new nt(i,r);default:throw new Error('"has" expects 1 or 2 arguments')}}evaluate(t,e){const i=this._key.evaluate(t,e);return this._obj?i in this._obj.evaluate(t,e):!!t?.values[i]}}class st{constructor(t,e){this._key=t,this._vals=e,this.type=A}static parse(t,e){if(3!==t.length)throw new Error('"in" expects 2 arguments');return new st(wt(t[1],e),wt(t[2],e))}evaluate(t,e){const i=this._key.evaluate(t,e);return this._vals.evaluate(t,e).includes(i)}}class at{constructor(t,e,i){this._item=t,this._array=e,this._from=i,this.type=D}static parse(t,e){if(t.length<3||t.length>4)throw new Error('"index-of" expects 3 or 4 arguments');const i=wt(t[1],e),r=wt(t[2],e);if(4===t.length){const n=wt(t[3],e,D);return new at(i,r,n)}return new at(i,r)}evaluate(t,e){const i=this._item.evaluate(t,e),r=this._array.evaluate(t,e);if(this._from){const n=this._from.evaluate(t,e);if(n!==Math.floor(n))throw new Error('"index-of" index must be an integer');return r.indexOf(i,n)}return r.indexOf(i)}}class ot{constructor(t){this._arg=t,this.type=D}static parse(t,e){if(2!==t.length)throw new Error('"length" expects 2 arguments');const i=wt(t[1],e);return new ot(i)}evaluate(t,e){const i=this._arg.evaluate(t,e);if("string"==typeof i)return i.length;if(Array.isArray(i))return i.length;throw new Error('"length" expects string or array')}}class lt{constructor(t,e,i,r){this.type=t,this._array=e,this._from=i,this._to=r}static parse(t,e){if(t.length<3||t.length>4)throw new Error('"slice" expects 2 or 3 arguments');const i=wt(t[1],e),r=wt(t[2],e,D);if(r.type!==D)throw new Error('"slice" index must return a number');if(4===t.length){const n=wt(t[3],e,D);if(n.type!==D)throw new Error('"slice" index must return a number');return new lt(i.type,i,r,n)}return new lt(i.type,i,r)}evaluate(t,e){const i=this._array.evaluate(t,e);if(!Array.isArray(i)&&"string"!=typeof i)throw new Error('"slice" input must be an array or a string');const r=this._from.evaluate(t,e);if(r<0||r>=i.length)throw new Error('"slice" index out of bounds');if(r!==Math.floor(r))throw new Error('"slice" index must be an integer');if(this._to){const n=this._to.evaluate(t,e);if(n<0||n>=i.length)throw new Error('"slice" index out of bounds');if(n!==Math.floor(n))throw new Error('"slice" index must be an integer');return i.slice(r,n)}return i.slice(r)}}class ut{constructor(){this.type=A}static parse(t){if(1!==t.length)throw new Error('"has-id" expects no arguments');return new ut}evaluate(t,e){return void 0!==t?.id}}class ht{constructor(t,e){this._args=t,this._calculate=e,this.type=D}static parse(t,e,i){const r=t.slice(1).map(t=>wt(t,e));return new ht(r,i)}evaluate(t,e){let i;return this._args&&(i=this._args.map(i=>i.evaluate(t,e))),this._calculate(i)}}class ct{constructor(t,e){this._args=t,this._calculate=e,this.type=D}static{this.ops={abs:t=>Math.abs(t[0]),acos:t=>Math.acos(t[0]),asin:t=>Math.asin(t[0]),atan:t=>Math.atan(t[0]),ceil:t=>Math.ceil(t[0]),cos:t=>Math.cos(t[0]),e:()=>Math.E,floor:t=>Math.floor(t[0]),ln:t=>Math.log(t[0]),ln2:()=>Math.LN2,log10:t=>Math.log(t[0])/Math.LN10,log2:t=>Math.log(t[0])/Math.LN2,max:t=>Math.max(...t),min:t=>Math.min(...t),pi:()=>Math.PI,round:t=>Math.round(t[0]),sin:t=>Math.sin(t[0]),sqrt:t=>Math.sqrt(t[0]),tan:t=>Math.tan(t[0])}}static parse(t,e){const i=t.slice(1).map(t=>wt(t,e));return new ct(i,ct.ops[t[0]])}evaluate(t,e){let i;return this._args&&(i=this._args.map(i=>i.evaluate(t,e))),this._calculate(i)}}class yt{constructor(t){this._args=t,this.type=R}static parse(t,e){return new yt(t.slice(1).map(t=>wt(t,e)))}evaluate(t,e){return this._args.map(i=>i.evaluate(t,e)).join("")}}class pt{constructor(t,e){this._arg=t,this._calculate=e,this.type=R}static{this.ops={downcase:t=>t.toLowerCase(),upcase:t=>t.toUpperCase()}}static parse(t,e){if(2!==t.length)throw new Error(`${t[0]} expects 1 argument`);const i=wt(t[1],e);return new pt(i,pt.ops[t[0]])}evaluate(t,e){return this._calculate(this._arg.evaluate(t,e))}}class ft{constructor(t){this._args=t,this.type=S}static parse(t,e){if(4!==t.length)throw new Error('"rgb" expects 3 arguments');const i=t.slice(1).map(t=>wt(t,e));return new ft(i)}evaluate(t,e){const i=this._validate(this._args[0].evaluate(t,e)),r=this._validate(this._args[1].evaluate(t,e)),n=this._validate(this._args[2].evaluate(t,e));return new v.A({r:i,g:r,b:n})}_validate(t){if("number"!=typeof t||t<0||t>255)throw new Error(`${t}: invalid color component`);return Math.round(t)}}class _t{constructor(t){this._args=t,this.type=S}static parse(t,e){if(5!==t.length)throw new Error('"rgba" expects 4 arguments');const i=t.slice(1).map(t=>wt(t,e));return new _t(i)}evaluate(t,e){const i=this._validate(this._args[0].evaluate(t,e)),r=this._validate(this._args[1].evaluate(t,e)),n=this._validate(this._args[2].evaluate(t,e)),s=this._validateAlpha(this._args[3].evaluate(t,e));return new v.A({r:i,g:r,b:n,a:s})}_validate(t){if("number"!=typeof t||t<0||t>255)throw new Error(`${t}: invalid color component`);return Math.round(t)}_validateAlpha(t){if("number"!=typeof t||t<0||t>1)throw new Error(`${t}: invalid alpha color component`);return t}}class mt{constructor(t){this._color=t,this.type=O(D,4)}static parse(t,e){if(2!==t.length)throw new Error('"to-rgba" expects 1 argument');const i=wt(t[1],e);return new mt(i)}evaluate(t,e){return new v.A(this._color.evaluate(t,e)).toRgba()}}class gt{constructor(t,e){this.type=t,this._args=e}static parse(t,e){const i=t[0];if(t.length<2)throw new Error(`${i} expects at least one argument`);let r,n=1;if("array"===i){if(t.length>2){switch(t[1]){case"string":r=R;break;case"number":r=D;break;case"boolean":r=A;break;default:throw new Error('"array" type argument must be string, number or boolean')}n++}else r=N;let e;if(t.length>3){if(e=t[2],null!==e&&("number"!=typeof e||e<0||e!==Math.floor(e)))throw new Error('"array" length argument must be a positive integer literal');n++}r=O(r,e)}else switch(i){case"string":r=R;break;case"number":r=D;break;case"boolean":r=A;break;case"object":r=L}const s=[];for(;n<t.length;n++){const i=wt(t[n],e);s.push(i)}return new gt(r,s)}evaluate(t,e){let i;for(const r of this._args){const n=r.evaluate(t,e);if(i=U(n),k(i,this.type))return n}throw new Error(`Expected ${M(this.type)} but got ${M(i)}`)}}class dt{static{this.types={"to-boolean":A,"to-color":S,"to-number":D,"to-string":R}}constructor(t,e){this.type=t,this._args=e}static parse(t,e){const i=t[0],r=dt.types[i];if(r===A||r===R){if(2!==t.length)throw new Error(`${i} expects one argument`)}else if(t.length<2)throw new Error(`${i} expects at least one argument`);const n=[];for(let i=1;i<t.length;i++){const r=wt(t[i],e);n.push(r)}return new dt(r,n)}evaluate(t,e){if(this.type===A)return Boolean(this._args[0].evaluate(t,e));if(this.type===R)return G(this._args[0].evaluate(t,e));if(this.type===D){for(const i of this._args){const r=Number(i.evaluate(t,e));if(!isNaN(r))return r}return null}if(this.type===S){for(const i of this._args)try{const r=dt.toColor(i.evaluate(t,e));if(r instanceof v.A)return r}catch{}return null}}static toBoolean(t){return Boolean(t)}static toString(t){return G(t)}static toNumber(t){const e=Number(t);if(isNaN(e))throw new Error(`"${t}" is not a number`);return e}static toColor(t){if(t instanceof v.A)return t;if("string"==typeof t){const e=v.A.fromString(t);if(e)return e;throw new Error(`"${t}" is not a color`)}if(Array.isArray(t))return v.A.fromArray(t);throw new Error(`"${t}" is not a color`)}}class xt{constructor(t){this._val=t,this.type=U(t)}static parse(t){if(2!==t.length)throw new Error('"literal" expects 1 argument');return new xt(t[1])}evaluate(t,e){return this._val}}class bt{constructor(t){this._arg=t,this.type=R}static parse(t,e){if(2!==t.length)throw new Error('"typeof" expects 1 argument');return new bt(wt(t[1],e))}evaluate(t,e){return M(U(this._arg.evaluate(t,e)))}}function wt(t,e,i){const r=typeof t;if("string"===r||"boolean"===r||"number"===r||null===t){if(i)switch(i.kind){case"string":"string"!==r&&(t=dt.toString(t));break;case"number":"number"!==r&&(t=dt.toNumber(t));break;case"color":t=dt.toColor(t)}t=["literal",t]}if(!Array.isArray(t)||0===t.length)throw new Error("Expression must be a non empty array");const n=t[0];if("string"!=typeof n)throw new Error("First element of expression must be a string");const s=vt[n];if(void 0===s)throw new Error(`Invalid expression operator "${n}"`);if(!s)throw new Error(`Unimplemented expression operator "${n}"`);return s.parse(t,e,i)}const vt={array:gt,boolean:gt,collator:null,format:null,image:null,literal:xt,number:gt,"number-format":null,object:gt,string:gt,"to-boolean":dt,"to-color":dt,"to-number":dt,"to-string":dt,typeof:bt,accumulated:null,"feature-state":null,"geometry-type":F,id:V,"line-progress":null,properties:C,at:it,get:rt,has:nt,in:st,"index-of":at,length:ot,slice:lt,"!":Y,"!=":class extends H{static parse(t,e){return H.parse(t,e,(t,e)=>t!==e)}},"<":class extends H{static parse(t,e){return H.parse(t,e,(t,e)=>t<e)}},"<=":class extends H{static parse(t,e){return H.parse(t,e,(t,e)=>t<=e)}},"==":class extends H{static parse(t,e){return H.parse(t,e,(t,e)=>t===e)}},">":class extends H{static parse(t,e){return H.parse(t,e,(t,e)=>t>e)}},">=":class extends H{static parse(t,e){return H.parse(t,e,(t,e)=>t>=e)}},all:q,any:j,case:X,coalesce:K,match:Z,within:null,interpolate:J,"interpolate-hcl":J,"interpolate-lab":J,step:Q,let:tt,var:et,concat:yt,downcase:pt,"is-supported-script":null,"resolved-locale":null,upcase:pt,rgb:ft,rgba:_t,"to-rgba":mt,"-":class extends ht{static parse(t,e){switch(t.length){case 2:return ht.parse(t,e,t=>-t[0]);case 3:return ht.parse(t,e,t=>t[0]-t[1]);default:throw new Error('"-" expects 1 or 2 arguments')}}},"*":class extends ht{static parse(t,e){return ht.parse(t,e,t=>{let e=1;for(const i of t)e*=i;return e})}},"/":class extends ht{static parse(t,e){if(3===t.length)return ht.parse(t,e,t=>t[0]/t[1]);throw new Error('"/" expects 2 arguments')}},"%":class extends ht{static parse(t,e){if(3===t.length)return ht.parse(t,e,t=>t[0]%t[1]);throw new Error('"%" expects 2 arguments')}},"^":class extends ht{static parse(t,e){if(3===t.length)return ht.parse(t,e,t=>t[0]**t[1]);throw new Error('"^" expects 1 or 2 arguments')}},"+":class extends ht{static parse(t,e){return ht.parse(t,e,t=>{let e=0;for(const i of t)e+=i;return e})}},abs:ct,acos:ct,asin:ct,atan:ct,ceil:ct,cos:ct,e:ct,floor:ct,ln:ct,ln2:ct,log10:ct,log2:ct,max:ct,min:ct,pi:ct,round:ct,sin:ct,sqrt:ct,tan:ct,zoom:$,"heatmap-density":null,"has-id":ut,none:W};class Tt{constructor(t){this._expression=t}filter(t,e){if(!this._expression)return!0;try{return this._expression.evaluate(t,e)}catch(t){return console.log(t.message),!0}}static createFilter(t){if(!t)return null;this.isLegacyFilter(t)&&(t=this.convertLegacyFilter(t));try{const e=wt(t,null,A);return new Tt(e)}catch(t){return console.log(t.message),null}}static isLegacyFilter(t){if(!Array.isArray(t))return!0;if(0===t.length)return!0;switch(t[0]){case"==":case"!=":case">":case"<":case">=":case"<=":return 3===t.length&&"string"==typeof t[1]&&!Array.isArray(t[2]);case"in":return t.length>=3&&"string"==typeof t[1]&&!Array.isArray(t[2]);case"!in":case"none":case"!has":return!0;case"any":case"all":for(let e=1;e<t.length;e++)if(this.isLegacyFilter(t[e]))return!0;return!1;case"has":return 2===t.length&&("$id"===t[1]||"$type"===t[1]);default:return!1}}static convertLegacyFilter(t){if(!Array.isArray(t)||0===t.length)return!0;const e=t[0];if(1===t.length)return"any"!==e;switch(e){case"==":return Tt.convertComparison("==",t[1],t[2]);case"!=":return Tt.negate(Tt.convertComparison("==",t[1],t[2]));case">":case"<":case">=":case"<=":return Tt.convertComparison(e,t[1],t[2]);case"in":return Tt.convertIn(t[1],t.slice(2));case"!in":return Tt.negate(Tt.convertIn(t[1],t.slice(2)));case"any":case"all":case"none":return Tt.convertCombining(e,t.slice(1));case"has":return Tt.convertHas(t[1]);case"!has":return Tt.negate(Tt.convertHas(t[1]));default:throw new Error("Unexpected legacy filter.")}}static convertComparison(t,e,i){switch(e){case"$type":return[t,["geometry-type"],i];case"$id":return[t,["id"],i];default:return[t,["get",e],i]}}static convertIn(t,e){switch(t){case"$type":return["in",["geometry-type"],["literal",e]];case"$id":return["in",["id"],["literal",e]];default:return["in",["get",t],["literal",e]]}}static convertHas(t){switch(t){case"$type":return!0;case"$id":return["has-id"];default:return["has",t]}}static convertCombining(t,e){return[t].concat(e.map(this.convertLegacyFilter))}static negate(t){return["!",t]}}class Et{static{this.backgroundLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0}}}static{this.fillLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0}}}static{this.lineLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0},"line-cap":{type:"enum",values:["butt","round","square"],default:0},"line-join":{type:"enum",values:["bevel","round","miter"],default:2},"line-miter-limit":{type:"number",default:2},"line-round-limit":{type:"number",default:1.05}}}static{this.symbolLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0},"symbol-avoid-edges":{type:"boolean",default:!1},"symbol-placement":{type:"enum",values:["point","line","line-center"],default:0},"symbol-sort-key":{type:"number",default:-1},"symbol-spacing":{type:"number",minimum:1,default:250},"icon-allow-overlap":{type:"boolean",default:!1},"icon-anchor":{type:"enum",values:["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"],default:0},"icon-ignore-placement":{type:"boolean",default:!1},"icon-image":{type:"string"},"icon-keep-upright":{type:"boolean",default:!1},"icon-offset":{type:"array",value:"number",length:2,default:[0,0]},"icon-optional":{type:"boolean",default:!1},"icon-padding":{type:"number",minimum:0,default:2},"icon-rotate":{type:"number",default:0},"icon-rotation-alignment":{type:"enum",values:["map","viewport","auto"],default:2},"icon-size":{type:"number",minimum:0,default:1},"text-allow-overlap":{type:"boolean",default:!1},"text-anchor":{type:"enum",values:["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"],default:0},"text-field":{type:"string"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"]},"text-ignore-placement":{type:"boolean",default:!1},"text-justify":{type:"enum",values:["auto","left","center","right"],default:2},"text-keep-upright":{type:"boolean",default:!0},"text-letter-spacing":{type:"number",default:0},"text-line-height":{type:"number",default:1.2},"text-max-angle":{type:"number",minimum:0,default:45},"text-max-width":{type:"number",minimum:0,default:10},"text-offset":{type:"array",value:"number",length:2,default:[0,0]},"text-optional":{type:"boolean",default:!1},"text-padding":{type:"number",minimum:0,default:2},"text-rotate":{type:"number",default:0},"text-rotation-alignment":{type:"enum",values:["map","viewport","auto"],default:2},"text-size":{type:"number",minimum:0,default:16},"text-transform":{type:"enum",values:["none","uppercase","lowercase"],default:0},"text-writing-mode":{type:"array",value:"enum",values:["horizontal","vertical"],default:[0]}}}static{this.circleLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0}}}static{this.backgroundPaintDefinition={"background-color":{type:"color",default:[0,0,0,1]},"background-opacity":{type:"number",minimum:0,maximum:1,default:1},"background-pattern":{type:"string"}}}static{this.fillPaintDefinition={"fill-antialias":{type:"boolean",default:!0},"fill-color":{type:"color",default:[0,0,0,1]},"fill-opacity":{type:"number",minimum:0,maximum:1,default:1},"fill-outline-color":{type:"color",default:[0,0,0,0]},"fill-pattern":{type:"string"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0]},"fill-translate-anchor":{type:"enum",values:["map","viewport"],default:0}}}static{this.linePaintDefinition={"line-blur":{type:"number",minimum:0,default:0},"line-color":{type:"color",default:[0,0,0,1]},"line-dasharray":{type:"array",value:"number",default:[]},"line-gap-width":{type:"number",minimum:0,default:0},"line-offset":{type:"number",default:0},"line-opacity":{type:"number",minimum:0,maximum:1,default:1},"line-pattern":{type:"string"},"line-translate":{type:"array",value:"number",length:2,default:[0,0]},"line-translate-anchor":{type:"enum",values:["map","viewport"],default:0},"line-width":{type:"number",minimum:0,default:1}}}static{this.symbolPaintDefinition={"icon-color":{type:"color",default:[0,0,0,1]},"icon-halo-blur":{type:"number",minimum:0,default:0},"icon-halo-color":{type:"color",default:[0,0,0,0]},"icon-halo-width":{type:"number",minimum:0,default:0},"icon-opacity":{type:"number",minimum:0,maximum:1,default:1},"icon-translate":{type:"array",value:"number",length:2,default:[0,0]},"icon-translate-anchor":{type:"enum",values:["map","viewport"],default:0},"text-color":{type:"color",default:[0,0,0,1]},"text-halo-blur":{type:"number",minimum:0,default:0},"text-halo-color":{type:"color",default:[0,0,0,0]},"text-halo-width":{type:"number",minimum:0,default:0},"text-opacity":{type:"number",minimum:0,maximum:1,default:1},"text-translate":{type:"array",value:"number",length:2,default:[0,0]},"text-translate-anchor":{type:"enum",values:["map","viewport"],default:0}}}static{this.rasterPaintDefinition={"raster-opacity":{type:"number",minimum:0,maximum:1,default:1},"raster-hue-rotate":{type:"number",default:0},"raster-brightness-min":{type:"number",minimum:0,maximum:1,default:0},"raster-brightness-max":{type:"number",minimum:0,maximum:1,default:1},"raster-saturation":{type:"number",minimum:-1,maximum:1,default:0},"raster-contrast":{type:"number",minimum:-1,maximum:1,default:0},"raster-fade-duration":{type:"number",minimum:0,default:300}}}static{this.circlePaintDefinition={"circle-blur":{type:"number",minimum:0,default:0},"circle-color":{type:"color",default:[0,0,0,1]},"circle-opacity":{type:"number",minimum:0,maximum:1,default:1},"circle-radius":{type:"number",minimum:0,default:5},"circle-stroke-color":{type:"color",default:[0,0,0,1]},"circle-stroke-opacity":{type:"number",minimum:0,maximum:1,default:1},"circle-stroke-width":{type:"number",minimum:0,default:0},"circle-translate":{type:"array",value:"number",length:2,default:[0,0]},"circle-translate-anchor":{type:"enum",values:["map","viewport"],default:0}}}}var It=i(40876);class Pt{constructor(t,e){let i;switch(this.isDataDriven=!1,this.interpolator=null,t.type){case"number":case"color":i=!0;break;case"array":i="number"===t.value;break;default:i=!1}if((null==e||""===e&&"color"===t.type)&&(e=t.default),Array.isArray(e)&&e.length>0&&vt[e[0]]){const i={number:D,color:S,string:R,boolean:A,enum:R};try{const r=wt(e,null,"array"===t.type?O(i[t.value]||N,t.length):i[t.type]);this.getValue=this._buildExpression(r,t),this.isDataDriven=!0,r instanceof J&&r.input instanceof $&&(this.interpolator=r)}catch(e){console.log(e.message),this.getValue=this._buildSimple(t.default)}return}i&&"interval"===e.type&&(i=!1);const r=e?.stops&&e.stops.length>0;if(r)for(const i of e.stops)i[1]=this._validate(i[1],t);if(this.isDataDriven=!!e&&!!e.property,this.isDataDriven)if(void 0!==e.default&&(e.default=this._validate(e.default,t)),r)switch(e.type){case"identity":this.getValue=this._buildIdentity(e,t);break;case"categorical":this.getValue=this._buildCategorical(e,t);break;default:this.getValue=i?this._buildInterpolate(e,t):this._buildInterval(e,t)}else this.getValue=this._buildIdentity(e,t);else r?this.getValue=i?this._buildZoomInterpolate(e):this._buildZoomInterval(e):(e=this._validate(e,t),this.getValue=this._buildSimple(e))}_validate(t,e){if("number"===e.type){if(null!=e.minimum&&t<e.minimum)return e.minimum;if(null!=e.maximum&&t>e.maximum)return e.maximum}else"color"===e.type?t=Pt._parseColor(t):"enum"===e.type?"string"==typeof t&&(t=e.values.indexOf(t)):"array"===e.type&&"enum"===e.value?t=t.map(t=>"string"==typeof t?e.values.indexOf(t):t):"string"===e.type&&(t=G(t));return t}_buildSimple(t){return()=>t}_buildExpression(t,e){return(i,r)=>{try{const n=t.evaluate(r,i);return void 0===n?e.default:this._validate(n,e)}catch(t){return console.log(t.message),e.default}}}_buildIdentity(t,e){return(i,r)=>{let n;return r&&(n=r.values[t.property]),void 0!==n&&(n=this._validate(n,e)),null!=n?n:void 0!==t.default?t.default:e.default}}_buildCategorical(t,e){return(i,r)=>{let n;return r&&(n=r.values[t.property]),n=this._categorical(n,t.stops),void 0!==n?n:void 0!==t.default?t.default:e.default}}_buildInterval(t,e){return(i,r)=>{let n;return r&&(n=r.values[t.property]),"number"==typeof n?this._interval(n,t.stops):void 0!==t.default?t.default:e.default}}_buildInterpolate(t,e){return(i,r)=>{let n;return r&&(n=r.values[t.property]),"number"==typeof n?this._interpolate(n,t.stops,t.base||1):void 0!==t.default?t.default:e.default}}_buildZoomInterpolate(t){return e=>this._interpolate(e,t.stops,t.base||1)}_buildZoomInterval(t){return e=>this._interval(e,t.stops)}_categorical(t,e){const i=e.length;for(let r=0;r<i;r++)if(e[r][0]===t)return e[r][1]}_interval(t,e){const i=e.length;let r=0;for(let n=0;n<i&&e[n][0]<=t;n++)r=n;return e[r][1]}_interpolate(t,e,i){let r,n;const a=e.length;for(let i=0;i<a;i++){const s=e[i];if(!(s[0]<=t)){n=s;break}r=s}if(r&&n){const e=n[0]-r[0],a=t-r[0],o=1===i?a/e:(i**a-1)/(i**e-1);if(Array.isArray(r[1])){const t=r[1],e=n[1],i=[];for(let r=0;r<t.length;r++)i.push((0,s.GW)(t[r],e[r],o));return i}return(0,s.GW)(r[1],n[1],o)}return r?r[1]:n?n[1]:void 0}static _isEmpty(t){for(const e in t)if(t.hasOwnProperty(e))return!1;return!0}static _parseColor(t){return Array.isArray(t)?t:"string"==typeof t?(0,It.Vm)(t)??void 0:t instanceof v.A&&!this._isEmpty(t)?t.toUnitRGBA():void 0}}var Dt=i(76213);class Rt{constructor(t,e,i,r){switch(this.type=t,this.typeName=e.type,this.id=e.id,this.source=e.source,this.sourceLayer=e["source-layer"],this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,this.filter=e.filter,this.layout=e.layout,this.paint=e.paint,this.z=i,this.uid=r,t){case 0:this._layoutDefinition=Et.backgroundLayoutDefinition,this._paintDefinition=Et.backgroundPaintDefinition;break;case 1:this._layoutDefinition=Et.fillLayoutDefinition,this._paintDefinition=Et.fillPaintDefinition;break;case 2:this._layoutDefinition=Et.lineLayoutDefinition,this._paintDefinition=Et.linePaintDefinition;break;case 3:this._layoutDefinition=Et.symbolLayoutDefinition,this._paintDefinition=Et.symbolPaintDefinition;break;case 4:this._layoutDefinition=Et.circleLayoutDefinition,this._paintDefinition=Et.circlePaintDefinition}this._layoutProperties=this._parseLayout(this.layout),this._paintProperties=this._parsePaint(this.paint)}getFeatureFilter(){return void 0!==this._featureFilter?this._featureFilter:this._featureFilter=Tt.createFilter(this.filter)}getLayoutProperty(t){return this._layoutProperties[t]}getPaintProperty(t){return this._paintProperties[t]}getLayoutValue(t,e,i){let r;const n=this._layoutProperties[t];return n&&(r=n.getValue(e,i)),void 0===r&&(r=this._layoutDefinition[t].default),r}getPaintValue(t,e,i){let r;const n=this._paintProperties[t];return n&&(r=n.getValue(e,i)),void 0===r&&(r=this._paintDefinition[t].default),r}isPainterDataDriven(){const t=this._paintProperties;if(t)for(const e in t)if(t[e].isDataDriven)return!0;return!1}isIntersectingFeature(t,e,i,r,n,s,a){return!1}getFeatureInflatedBounds(t,e,i,r){return null}_parseLayout(t){const e={};for(const i in t){const r=this._layoutDefinition[i];r&&(e[i]=new Pt(r,t[i]))}return e}_parsePaint(t){const e={};for(const i in t){const r=this._paintDefinition[i];r&&(e[i]=new Pt(r,t[i]))}return e}computeAttributesKey(t,e,i,r){let n=0,s=0;for(const t of e){let e=3;if(!t||t!==r){const r=i[t],{isLayout:n,isOptional:s}=r,a=n?this.getLayoutProperty(t):this.getPaintProperty(t);e=a?.interpolator?2:a?.isDataDriven?1:s&&!a?3:0}s|=e<<n,n+=2}return s<<3|t}}class At extends Rt{constructor(t,e,i,r){super(t,e,i,r),this.backgroundMaterial=new p(this.computeAttributesKey(0,p.ATTRIBUTES,p.ATTRIBUTES_INFO))}}class St extends Rt{constructor(t,e,i,r){super(t,e,i,r);const n=this.getPaintProperty("fill-color"),s=this.getPaintProperty("fill-opacity"),a=this.getPaintProperty("fill-pattern");this.hasDataDrivenColor=n?.isDataDriven,this.hasDataDrivenOpacity=s?.isDataDriven,this.hasDataDrivenFill=this.hasDataDrivenColor||this.hasDataDrivenOpacity||a?.isDataDriven;const o=this.getPaintProperty("fill-outline-color");this.outlineUsesFillColor=!o,this.hasDataDrivenOutlineColor=o?.isDataDriven,this.hasDataDrivenOutline=o?o.isDataDriven:!!n&&n.isDataDriven,this.hasDataDrivenOutline=(o?this.hasDataDrivenOutlineColor:this.hasDataDrivenColor)||this.hasDataDrivenOpacity,this.fillMaterial=new _(this.computeAttributesKey(1,_.ATTRIBUTES,_.ATTRIBUTES_INFO)),this.outlineMaterial=new m(this.computeAttributesKey(2,this.outlineUsesFillColor?m.ATTRIBUTES_FILL:m.ATTRIBUTES_OUTLINE,this.outlineUsesFillColor?m.ATTRIBUTES_INFO_FILL:m.ATTRIBUTES_INFO_OUTLINE),this.outlineUsesFillColor)}getFeatureInflatedBounds(t,e,i,r){const n=Ut(t);if(!n)return null;const s=this.getPaintValue("fill-translate",e,t),a=r*Math.max(s[0],s[1]);return n[0]-=a,n[2]-=a,n[1]+=a,n[3]+=a,n}isIntersectingFeature(t,e,i,r,a,o,l){const u=r.getGeometry();if(!u)return!1;const h=n.ih/l.normalizationRatio;t=t/l.normalizationRatio+l.normalizationOffsetX,e=e/l.normalizationRatio+l.normalizationOffsetY;const c=(0,s.yM)(this.getPaintValue("fill-translate",a,r),this.getPaintValue("fill-translate-anchor",a,r),o,n.ih);return t-=h*c.x,e-=h*c.y,!!(0,s.s3)(t,e,u)||(0,s.ru)(t,e,u,h*i)}}class Lt extends Rt{constructor(t,e,i,r){super(t,e,i,r);const n=this.getPaintProperty("line-pattern");if(this.lineMaterial=new g(this.computeAttributesKey(3,g.ATTRIBUTES,g.ATTRIBUTES_INFO,n?"line-dasharray":"")),this.hasDataDrivenLine=this.getPaintProperty("line-blur")?.isDataDriven||this.getPaintProperty("line-color")?.isDataDriven||this.getPaintProperty("line-gap-width")?.isDataDriven||this.getPaintProperty("line-offset")?.isDataDriven||this.getPaintProperty("line-opacity")?.isDataDriven||this.getPaintProperty("line-pattern")?.isDataDriven||this.getPaintProperty("line-dasharray")?.isDataDriven||this.getLayoutProperty("line-cap")?.isDataDriven||this.getPaintProperty("line-width")?.isDataDriven,this.canUseThinTessellation=!1,!this.hasDataDrivenLine){const t=this.getPaintProperty("line-width");if(!t||"number"==typeof t&&.5*t<Dt.Gh){const t=this.getPaintProperty("line-offset");(!t||"number"==typeof t&&0===t)&&(this.canUseThinTessellation=!0)}}}getDashKey(t,e){let i;switch(e){case 0:default:i="Butt";break;case 1:i="Round";break;case 2:i="Square"}return`dasharray-[${t.toString()}]-${i}`}getFeatureInflatedBounds(t,e,i,r){const n=Ut(t);if(!n)return null;const s=this.getPaintValue("line-translate",e,t),a=r*Math.max(s[0],s[1]);n[0]-=a,n[2]-=a,n[1]+=a,n[3]+=a;const o=r*Math.abs(this.getPaintValue("line-offset",e,t)||0),l=r*(this.getPaintValue("line-width",e,t)/2);return n[0]-=o+l,n[1]-=o+l,n[2]+=o+l,n[3]+=o+l,n}isIntersectingFeature(t,e,i,r,a,o,l){let u=r.getGeometry();if(!u)return!1;const h=n.ih/l.normalizationRatio;t=t/l.normalizationRatio+l.normalizationOffsetX,e=e/l.normalizationRatio+l.normalizationOffsetY;const c=(0,s.yM)(this.getPaintValue("line-translate",a,r),this.getPaintValue("line-translate-anchor",a,r),o,n.ih);t-=h*c.x,e-=h*c.y;const y=h*this.getPaintValue("line-offset",a,r)||0;0!==y&&(u=(0,s.cP)(u,-y));const p=this.getPaintValue("line-width",a,r);return(0,s.ru)(t,e,u,h*(i+p/2))}}class Nt extends Rt{constructor(t,e,i,r){super(t,e,i,r),this.iconMaterial=new b(this.computeAttributesKey(4,b.ATTRIBUTES,b.ATTRIBUTES_INFO)),this.textMaterial=new w(this.computeAttributesKey(6,w.ATTRIBUTES,w.ATTRIBUTES_INFO)),this.hasDataDrivenIcon=this.getPaintProperty("icon-color")?.isDataDriven||this.getPaintProperty("icon-halo-blur")?.isDataDriven||this.getPaintProperty("icon-halo-color")?.isDataDriven||this.getPaintProperty("icon-halo-width")?.isDataDriven||this.getPaintProperty("icon-opacity")?.isDataDriven||this.getLayoutProperty("icon-size")?.isDataDriven,this.hasDataDrivenText=this.getPaintProperty("text-color")?.isDataDriven||this.getPaintProperty("text-halo-blur")?.isDataDriven||this.getPaintProperty("text-halo-color")?.isDataDriven||this.getPaintProperty("text-halo-width")?.isDataDriven||this.getPaintProperty("text-opacity")?.isDataDriven||this.getLayoutProperty("text-size")?.isDataDriven}}class Ot extends Rt{constructor(t,e,i,r){super(t,e,i,r),this.circleMaterial=new f(this.computeAttributesKey(5,f.ATTRIBUTES,f.ATTRIBUTES_INFO))}getFeatureInflatedBounds(t,e,i,r){const s=Ut(t);if(!s)return null;const a=this.getPaintValue("circle-translate",e,t),o=Math.max(a[0],a[1]);s[0]-=o,s[2]-=o,s[1]+=o,s[3]+=o;const l=r*(n.ih*(this.getPaintValue("circle-radius",e,t)+this.getPaintValue("circle-stroke-width",e,t))/2);return s[0]-=l,s[1]-=l,s[2]+=l,s[3]+=l,s}isIntersectingFeature(t,e,i,r,a,o,l){const u=r.getGeometry();if(!u)return!1;const h=n.ih/l.normalizationRatio;t=t/l.normalizationRatio+l.normalizationOffsetX,e=e/l.normalizationRatio+l.normalizationOffsetY,i*=h;const c=(0,s.yM)(this.getPaintValue("circle-translate",a,r),this.getPaintValue("circle-translate-anchor",a,r),o,h),y=h*(this.getPaintValue("circle-radius",a,r)+this.getPaintValue("circle-stroke-width",a,r));let p,f;for(const r of u)if(r)for(const n of r)if(p=n.x+c.x,f=n.y+c.y,Math.sqrt((t-p)*(t-p)+(e-f)*(e-f))-i<=y)return!0;return!1}}class Bt{constructor(t,e,i){let r;this.allowOverlap=t.getLayoutValue("icon-allow-overlap",e),this.ignorePlacement=t.getLayoutValue("icon-ignore-placement",e),this.keepUpright=t.getLayoutValue("icon-keep-upright",e),this.optional=t.getLayoutValue("icon-optional",e),this.rotationAlignment=t.getLayoutValue("icon-rotation-alignment",e),2===this.rotationAlignment&&(this.rotationAlignment=i?0:1),r=t.getLayoutProperty("icon-anchor"),r?.isDataDriven?this._anchorProp=r:this.anchor=t.getLayoutValue("icon-anchor",e),r=t.getLayoutProperty("icon-offset"),r?.isDataDriven?this._offsetProp=r:this.offset=t.getLayoutValue("icon-offset",e),r=t.getLayoutProperty("icon-padding"),r?.isDataDriven?this._paddingProp=r:this.padding=t.getLayoutValue("icon-padding",e),r=t.getLayoutProperty("icon-rotate"),r?.isDataDriven?this._rotateProp=r:this.rotate=t.getLayoutValue("icon-rotate",e),r=t.getLayoutProperty("icon-size"),r?.isDataDriven?this._sizeProp=r:this.size=t.getLayoutValue("icon-size",e)}update(t,e){this._anchorProp&&(this.anchor=this._anchorProp.getValue(t,e)),this._offsetProp&&(this.offset=this._offsetProp.getValue(t,e)),this._paddingProp&&(this.padding=this._paddingProp.getValue(t,e)),this._rotateProp&&(this.rotate=this._rotateProp.getValue(t,e)),this._sizeProp&&(this.size=this._sizeProp.getValue(t,e))}}class Mt{constructor(t,e,i){let r;this.allowOverlap=t.getLayoutValue("text-allow-overlap",e),this.ignorePlacement=t.getLayoutValue("text-ignore-placement",e),this.keepUpright=t.getLayoutValue("text-keep-upright",e),this.optional=t.getLayoutValue("text-optional",e),this.rotationAlignment=t.getLayoutValue("text-rotation-alignment",e),2===this.rotationAlignment&&(this.rotationAlignment=i?0:1),r=t.getLayoutProperty("text-anchor"),r?.isDataDriven?this._anchorProp=r:this.anchor=t.getLayoutValue("text-anchor",e),r=t.getLayoutProperty("text-justify"),r?.isDataDriven?this._justifyProp=r:this.justify=t.getLayoutValue("text-justify",e),r=t.getLayoutProperty("text-letter-spacing"),r?.isDataDriven?this._letterSpacingProp=r:this.letterSpacing=t.getLayoutValue("text-letter-spacing",e),r=t.getLayoutProperty("text-line-height"),r?.isDataDriven?this._lineHeightProp=r:this.lineHeight=t.getLayoutValue("text-line-height",e),r=t.getLayoutProperty("text-max-angle"),r?.isDataDriven?this._maxAngleProp=r:this.maxAngle=t.getLayoutValue("text-max-angle",e),r=t.getLayoutProperty("text-max-width"),r?.isDataDriven?this._maxWidthProp=r:this.maxWidth=t.getLayoutValue("text-max-width",e),r=t.getLayoutProperty("text-offset"),r?.isDataDriven?this._offsetProp=r:this.offset=t.getLayoutValue("text-offset",e),r=t.getLayoutProperty("text-padding"),r?.isDataDriven?this._paddingProp=r:this.padding=t.getLayoutValue("text-padding",e),r=t.getLayoutProperty("text-rotate"),r?.isDataDriven?this._rotateProp=r:this.rotate=t.getLayoutValue("text-rotate",e),r=t.getLayoutProperty("text-size"),r?.isDataDriven?this._sizeProp=r:this.size=t.getLayoutValue("text-size",e),r=t.getLayoutProperty("text-writing-mode"),r?.isDataDriven?this._writingModeProp=r:this.writingMode=t.getLayoutValue("text-writing-mode",e)}update(t,e){this._anchorProp&&(this.anchor=this._anchorProp.getValue(t,e)),this._justifyProp&&(this.justify=this._justifyProp.getValue(t,e)),this._letterSpacingProp&&(this.letterSpacing=this._letterSpacingProp.getValue(t,e)),this._lineHeightProp&&(this.lineHeight=this._lineHeightProp.getValue(t,e)),this._maxAngleProp&&(this.maxAngle=this._maxAngleProp.getValue(t,e)),this._maxWidthProp&&(this.maxWidth=this._maxWidthProp.getValue(t,e)),this._offsetProp&&(this.offset=this._offsetProp.getValue(t,e)),this._paddingProp&&(this.padding=this._paddingProp.getValue(t,e)),this._rotateProp&&(this.rotate=this._rotateProp.getValue(t,e)),this._sizeProp&&(this.size=this._sizeProp.getValue(t,e)),this._writingModeProp&&(this.writingMode=this._writingModeProp.getValue(t,e))}}function Ut(t){const e=t?.getGeometry();if(null==e)return null;let i=1/0,n=1/0,s=-1/0,a=-1/0;for(const t of e)if(t)for(const e of t)i=Math.min(i,e.x),n=Math.min(n,e.y),s=Math.max(s,e.x),a=Math.max(a,e.y);return(0,r.fA)(i,n,s,a)}},5408:(t,e,i)=>{i.d(e,{ih:()=>n,vA:()=>r});const r=4096,n=8},6774:(t,e,i)=>{i.d(e,{O3:()=>s,Ox:()=>a,bR:()=>r});class r{constructor(t,e){this.x=t,this.y=e}static fromArray(t){return new r(t[0],t[1])}clone(){return new r(this.x,this.y)}equals(t,e){return t===this.x&&e===this.y}isEqual(t){return t.x===this.x&&t.y===this.y}setCoords(t,e){return this.x=t,this.y=e,this}normalize(){const t=this.x,e=this.y,i=Math.sqrt(t*t+e*e);return this.x/=i,this.y/=i,this}rightPerpendicular(){const t=this.x;return this.x=this.y,this.y=-t,this}leftPerpendicular(){const t=this.x;return this.x=-this.y,this.y=t,this}move(t,e){return this.x+=t,this.y+=e,this}assign(t){return this.x=t.x,this.y=t.y,this}assignAdd(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this}assignSub(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this}rotate(t,e){const i=this.x,r=this.y;return this.x=i*t-r*e,this.y=i*e+r*t,this}rotateReverse(t,e){const i=this.x,r=this.y;return this.x=i*t+r*e,this.y=-i*e+r*t,this}scale(t){return this.x*=t,this.y*=t,this}length(){const t=this.x,e=this.y;return Math.sqrt(t*t+e*e)}sub(t){return this.x-=t.x,this.y-=t.y,this}add(t){return this.x+=t.x,this.y+=t.y,this}static distance(t,e){const i=e.x-t.x,r=e.y-t.y;return Math.sqrt(i*i+r*r)}static add(t,e){return new r(t.x+e.x,t.y+e.y)}static sub(t,e){return new r(t.x-e.x,t.y-e.y)}}class n{constructor(t,e,i){this.ratio=t,this.x=e,this.y=i}}class s{constructor(t,e,i,r=8,n=8){this._lines=[],this._starts=[],this.validateTessellation=!0,this._pixelRatio=r,this._pixelMargin=n,this._tileSize=512*r,this._dz=t,this._yPos=e,this._xPos=i}setPixelMargin(t){t!==this._pixelMargin&&(this._pixelMargin=t,this.setExtent(this._extent))}setExtent(t){this._extent=t,this._finalRatio=this._tileSize/t*(1<<this._dz);let e=this._pixelRatio*this._pixelMargin;e/=this._finalRatio;const i=t>>this._dz;e>i&&(e=i),this._margin=e,this._xmin=i*this._xPos-e,this._ymin=i*this._yPos-e,this._xmax=this._xmin+i+2*e,this._ymax=this._ymin+i+2*e}reset(t){this._type=t,this._lines=[],this._starts=[],this._line=null,this._start=0}moveTo(t,e){this._pushLine(),this._prevIsIn=this._isIn(t,e),this._moveTo(t,e,this._prevIsIn),this._prevPt=new r(t,e),this._firstPt=new r(t,e),this._dist=0}lineTo(t,e){const i=this._isIn(t,e),s=new r(t,e),a=r.distance(this._prevPt,s);let o,l,u,h,c,y,p,f;if(i)this._prevIsIn?this._lineTo(t,e,!0):(o=this._prevPt,l=s,u=this._intersect(l,o),this._start=this._dist+a*(1-this._r),this._lineTo(u.x,u.y,!0),this._lineTo(l.x,l.y,!0));else if(this._prevIsIn)l=this._prevPt,o=s,u=this._intersect(l,o),this._lineTo(u.x,u.y,!0),this._lineTo(o.x,o.y,!1);else{const t=this._prevPt,e=s;if(t.x<=this._xmin&&e.x<=this._xmin||t.x>=this._xmax&&e.x>=this._xmax||t.y<=this._ymin&&e.y<=this._ymin||t.y>=this._ymax&&e.y>=this._ymax)this._lineTo(e.x,e.y,!1);else{const i=[];if((t.x<this._xmin&&e.x>this._xmin||t.x>this._xmin&&e.x<this._xmin)&&(h=(this._xmin-t.x)/(e.x-t.x),f=t.y+h*(e.y-t.y),f<=this._ymin?y=!1:f>=this._ymax?y=!0:i.push(new n(h,this._xmin,f))),(t.x<this._xmax&&e.x>this._xmax||t.x>this._xmax&&e.x<this._xmax)&&(h=(this._xmax-t.x)/(e.x-t.x),f=t.y+h*(e.y-t.y),f<=this._ymin?y=!1:f>=this._ymax?y=!0:i.push(new n(h,this._xmax,f))),(t.y<this._ymin&&e.y>this._ymin||t.y>this._ymin&&e.y<this._ymin)&&(h=(this._ymin-t.y)/(e.y-t.y),p=t.x+h*(e.x-t.x),p<=this._xmin?c=!1:p>=this._xmax?c=!0:i.push(new n(h,p,this._ymin))),(t.y<this._ymax&&e.y>this._ymax||t.y>this._ymax&&e.y<this._ymax)&&(h=(this._ymax-t.y)/(e.y-t.y),p=t.x+h*(e.x-t.x),p<=this._xmin?c=!1:p>=this._xmax?c=!0:i.push(new n(h,p,this._ymax))),0===i.length)c?y?this._lineTo(this._xmax,this._ymax,!0):this._lineTo(this._xmax,this._ymin,!0):y?this._lineTo(this._xmin,this._ymax,!0):this._lineTo(this._xmin,this._ymin,!0);else if(i.length>1&&i[0].ratio>i[1].ratio)this._start=this._dist+a*i[1].ratio,this._lineTo(i[1].x,i[1].y,!0),this._lineTo(i[0].x,i[0].y,!0);else{this._start=this._dist+a*i[0].ratio;for(let t=0;t<i.length;t++)this._lineTo(i[t].x,i[t].y,!0)}this._lineTo(e.x,e.y,!1)}}this._dist+=a,this._prevIsIn=i,this._prevPt=s}close(){if(this._line.length>2){const t=this._firstPt,e=this._prevPt;t.x===e.x&&t.y===e.y||this.lineTo(t.x,t.y);const i=this._line;let r=i.length;for(;r>=4&&(i[0].x===i[1].x&&i[0].x===i[r-2].x||i[0].y===i[1].y&&i[0].y===i[r-2].y);)i.pop(),i[0].x=i[r-2].x,i[0].y=i[r-2].y,--r}}result(t=!0){return this._pushLine(),0===this._lines.length?null:(3===this._type&&t&&o.simplify(this._tileSize,this._margin*this._finalRatio,this._lines),this._lines)}resultWithStarts(){if(2!==this._type)throw new Error("Only valid for lines");this._pushLine();const t=this._lines,e=t.length;if(0===e)return null;const i=[];for(let r=0;r<e;r++)i.push({line:t[r],start:this._starts[r]||0});return i}_isIn(t,e){return t>=this._xmin&&t<=this._xmax&&e>=this._ymin&&e<=this._ymax}_intersect(t,e){let i,n,s;if(e.x>=this._xmin&&e.x<=this._xmax)n=e.y<=this._ymin?this._ymin:this._ymax,s=(n-t.y)/(e.y-t.y),i=t.x+s*(e.x-t.x);else if(e.y>=this._ymin&&e.y<=this._ymax)i=e.x<=this._xmin?this._xmin:this._xmax,s=(i-t.x)/(e.x-t.x),n=t.y+s*(e.y-t.y);else{n=e.y<=this._ymin?this._ymin:this._ymax,i=e.x<=this._xmin?this._xmin:this._xmax;const r=(i-t.x)/(e.x-t.x),a=(n-t.y)/(e.y-t.y);r<a?(s=r,n=t.y+r*(e.y-t.y)):(s=a,i=t.x+a*(e.x-t.x))}return this._r=s,new r(i,n)}_pushLine(){this._line&&(1===this._type?this._line.length>0&&(this._lines.push(this._line),this._starts.push(this._start)):2===this._type?this._line.length>1&&(this._lines.push(this._line),this._starts.push(this._start)):3===this._type&&this._line.length>3&&(this._lines.push(this._line),this._starts.push(this._start))),this._line=[],this._start=0}_moveTo(t,e,i){3!==this._type?i&&(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.push(new r(t,e))):(i||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),e<this._ymin&&(e=this._ymin),e>this._ymax&&(e=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.push(new r(t,e)),this._isH=!1,this._isV=!1)}_lineTo(t,e,i){let n,s;if(3!==this._type)if(i){if(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.length>0&&(n=this._line[this._line.length-1],n.equals(t,e)))return;this._line.push(new r(t,e))}else this._line&&this._line.length>0&&this._pushLine();else if(i||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),e<this._ymin&&(e=this._ymin),e>this._ymax&&(e=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line&&this._line.length>0){n=this._line[this._line.length-1];const i=n.x===t,a=n.y===e;if(i&&a)return;this._isH&&i||this._isV&&a?(n.x=t,n.y=e,s=this._line[this._line.length-2],s.x===t&&s.y===e?(this._line.pop(),this._line.length<=1?(this._isH=!1,this._isV=!1):(s=this._line[this._line.length-2],this._isH=s.x===t,this._isV=s.y===e)):(this._isH=s.x===t,this._isV=s.y===e)):(this._line.push(new r(t,e)),this._isH=i,this._isV=a)}else this._line.push(new r(t,e))}}class a{setExtent(t){this._ratio=4096===t?1:4096/t}get validateTessellation(){return this._ratio<1}reset(t){this._lines=[],this._line=null}moveTo(t,e){this._line&&this._lines.push(this._line),this._line=[];const i=this._ratio;this._line.push(new r(t*i,e*i))}lineTo(t,e){const i=this._ratio;this._line.push(new r(t*i,e*i))}close(){const t=this._line;t&&!t[0].isEqual(t[t.length-1])&&t.push(t[0])}result(){return this._line&&this._lines.push(this._line),0===this._lines.length?null:this._lines}}class o{static simplify(t,e,i){if(!i)return;const r=-e,n=t+e,s=-e,a=t+e,l=[],u=[],h=i.length;for(let t=0;t<h;++t){const e=i[t];if(!e||e.length<2)continue;let o,h=e[0];const c=e.length;for(let i=1;i<c;++i)o=e[i],h.x===o.x&&(h.x<=r&&(h.y>o.y?(l.push(t),l.push(i),l.push(0),l.push(-1)):(u.push(t),u.push(i),u.push(0),u.push(-1))),h.x>=n&&(h.y<o.y?(l.push(t),l.push(i),l.push(1),l.push(-1)):(u.push(t),u.push(i),u.push(1),u.push(-1)))),h.y===o.y&&(h.y<=s&&(h.x<o.x?(l.push(t),l.push(i),l.push(2),l.push(-1)):(u.push(t),u.push(i),u.push(2),u.push(-1))),h.y>=a&&(h.x>o.x?(l.push(t),l.push(i),l.push(3),l.push(-1)):(u.push(t),u.push(i),u.push(3),u.push(-1)))),h=o}if(0===l.length||0===u.length)return;o.fillParent(i,u,l),o.fillParent(i,l,u);const c=[];o.calcDeltas(c,u,l),o.calcDeltas(c,l,u),o.addDeltas(c,i)}static fillParent(t,e,i){const r=i.length,n=e.length;for(let s=0;s<n;s+=4){const n=e[s],a=e[s+1],o=e[s+2],u=t[n][a-1],h=t[n][a];let c=8092,y=-1;for(let e=0;e<r;e+=4){if(i[e+2]!==o)continue;const r=i[e],n=i[e+1],s=t[r][n-1],a=t[r][n];switch(o){case 0:case 1:if(l(u.y,s.y,a.y)&&l(h.y,s.y,a.y)){const t=Math.abs(a.y-s.y);t<c&&(c=t,y=e)}break;case 2:case 3:if(l(u.x,s.x,a.x)&&l(h.x,s.x,a.x)){const t=Math.abs(a.x-s.x);t<c&&(c=t,y=e)}}}e[s+3]=y}}static calcDeltas(t,e,i){const r=e.length;for(let n=0;n<r;n+=4){const r=[],s=o.calcDelta(n,e,i,r);t.push(e[n]),t.push(e[n+1]),t.push(e[n+2]),t.push(s)}}static calcDelta(t,e,i,r){const n=e[t+3];if(-1===n)return 0;const s=r.length;return s>1&&r[s-2]===n?0:(r.push(n),o.calcDelta(n,i,e,r)+1)}static addDeltas(t,e){const i=t.length;let r=0;for(let e=0;e<i;e+=4){const i=t[e+3];i>r&&(r=i)}for(let n=0;n<i;n+=4){const i=e[t[n]],s=t[n+1],a=r-t[n+3];switch(t[n+2]){case 0:i[s-1].x-=a,i[s].x-=a,1===s&&(i[i.length-1].x-=a),s===i.length-1&&(i[0].x-=a);break;case 1:i[s-1].x+=a,i[s].x+=a,1===s&&(i[i.length-1].x+=a),s===i.length-1&&(i[0].x+=a);break;case 2:i[s-1].y-=a,i[s].y-=a,1===s&&(i[i.length-1].y-=a),s===i.length-1&&(i[0].y-=a);break;case 3:i[s-1].y+=a,i[s].y+=a,1===s&&(i[i.length-1].y+=a),s===i.length-1&&(i[0].y+=a)}}}}const l=(t,e,i)=>t>=e&&t<=i||t>=i&&t<=e},13195:(t,e,i)=>{i.d(e,{GW:()=>m,IU:()=>b,Jo:()=>a,MG:()=>s,Wh:()=>y,cP:()=>T,os:()=>h,p6:()=>_,pJ:()=>o,ru:()=>v,s3:()=>w,wV:()=>f,yM:()=>E,z0:()=>p});var r=i(95108),n=i(6774);const s=Number.POSITIVE_INFINITY,a=Math.PI,o=2*a,l=128/a,u=256/360,h=a/180,c=1/Math.LN2;function y(t,e){return(t%=e)>=0?t:t+e}function p(t){return y(t*l,256)}function f(t){return y(t*u,256)}function _(t){return Math.log(t)*c}function m(t,e,i){return t*(1-i)+e*i}const g=8,d=14,x=16;function b(t){return g+Math.max((t-d)*x,0)}function w(t,e,i){let r,n,s,a=0;for(const o of i){r=o.length;for(let i=1;i<r;++i)n=o[i-1],s=o[i],n.y>e!=s.y>e&&((s.x-n.x)*(e-n.y)-(s.y-n.y)*(t-n.x)>0?a++:a--)}return 0!==a}function v(t,e,i,n){let s,a,o,l;const u=n*n;for(const n of i){const i=n.length;if(!(i<2)){s=n[0].x,a=n[0].y;for(let h=1;h<i;++h){if(o=n[h].x,l=n[h].y,(0,r.Ng)(t,e,s,a,o,l)<u)return!0;s=o,a=l}}}return!1}function T(t,e){if(0===e||Number.isNaN(e))return t;const i=[],r=new n.bR(0,0),s=new n.bR(0,0),a=new n.bR(0,0);for(let o=0;o<t.length;o++){const l=t[o],u=[];for(let t=0;t<l.length;t++){const i=l[t-1],o=l[t],h=l[t+1];0===t?r.setCoords(0,0):r.assignSub(o,i).normalize().rightPerpendicular(),t===l.length-1?s.setCoords(0,0):s.assignSub(h,o).normalize().rightPerpendicular(),a.assignAdd(r,s).normalize();const c=a.x*s.x+a.y*s.y;0!==c&&a.scale(1/c),u.push(n.bR.add(o,a.scale(e)))}i.push(u)}return i}function E(t,e,i,r){const s=new n.bR(t[0],t[1]);if(s.scale(r),"viewport"===e){const t=-i*(Math.PI/180),e=Math.cos(t),r=Math.sin(t);s.rotate(e,r)}return s}},45013:(t,e,i)=>{i.d(e,{A:()=>s});var r=i(4718),n=i(4264);class s{constructor(t,e=!0){if(this.backgroundBucketIds=[],this._uidToLayer=new Map,this._layerByName={},this._runningId=0,this._style=e?(0,r.o8)(t):t,this._style.layers||(this._style.layers=[]),this.version=parseFloat(this._style.version),this.layers=this._style.layers.map((t,e,i)=>this._create(t,e,i)).filter(t=>!!t),this.layers)for(let t=0;t<this.layers.length;t++){const e=this.layers[t];this._layerByName[e.id]=e,this._uidToLayer.set(e.uid,e),0===e.type&&this.backgroundBucketIds.push(e.id)}this._identifyRefLayers()}getLayerStyleProperties(t,e){const i=this.getStyleLayerByUID(t),r=0!==i?.getLayoutValue("symbol-placement",e);let n=i?.getLayoutValue("icon-rotation-alignment",e);2===n&&(n=r?0:1);let s=i?.getLayoutValue("text-rotation-alignment",e);2===s&&(s=r?0:1);const a=i?.getPaintValue("icon-translate",e),o=i?.getPaintValue("icon-translate-anchor",e),l=i?.getPaintValue("text-translate",e),u=i?.getPaintValue("text-translate-anchor",e);return{geometryType:null,iconAllowOverlap:i?.getLayoutValue("icon-allow-overlap",e),iconIgnorePlacement:i?.getLayoutValue("icon-ignore-placement",e),textAllowOverlap:i?.getLayoutValue("text-allow-overlap",e),textIgnorePlacement:i?.getLayoutValue("text-ignore-placement",e),iconRotationAlignment:n,textRotationAlignment:s,iconTranslateAnchor:o,iconTranslate:a,textTranslateAnchor:u,textTranslate:l}}isPainterDataDriven(t){const e=this._layerByName[t];return!!e&&e.isPainterDataDriven()}getStyleLayerId(t){return t>=this.layers.length?null:this.layers[t].id}getStyleLayerByUID(t){return this._uidToLayer.get(t)??null}getStyleLayerIndex(t){const e=this._layerByName[t];return e?this.layers.indexOf(e):-1}setStyleLayer(t,e){if(!t?.id)return;const i=this._style;null!=e&&e>=this.layers.length&&(e=this.layers.length-1);let r,n=!0;const a=this._layerByName[t.id];if(a){const o=this.layers.indexOf(a);e||(e=o),e===o?(n=!1,r=s._recreateLayer(t,a),this.layers[e]=r,i.layers[e]=t):(this.layers.splice(o,1),i.layers.splice(o,1),r=this._create(t,e,this.layers),this.layers.splice(e,0,r),i.layers.splice(e,0,t))}else r=this._create(t,e,this.layers),!e||e>=this.layers.length?(this.layers.push(r),i.layers.push(t)):(this.layers.splice(e,0,r),i.layers.splice(e,0,t));this._layerByName[t.id]=r,this._uidToLayer.set(r.uid,r),n&&this._recomputeZValues(),this._identifyRefLayers()}getStyleLayer(t){const e=this._layerByName[t];return e?{type:e.typeName,id:e.id,source:e.source,"source-layer":e.sourceLayer,minzoom:e.minzoom,maxzoom:e.maxzoom,filter:e.filter,layout:e.layout,paint:e.paint}:null}deleteStyleLayer(t){const e=this._layerByName[t];if(e){delete this._layerByName[t],this._uidToLayer.delete(e.uid);const i=this.layers.indexOf(e);this.layers.splice(i,1),this._style.layers.splice(i,1),this._recomputeZValues(),this._identifyRefLayers()}}getLayerById(t){return this._layerByName[t]}getLayoutProperties(t){const e=this._layerByName[t];return e?e.layout:null}getPaintProperties(t){const e=this._layerByName[t];return e?e.paint:null}setPaintProperties(t,e){const i=this._layerByName[t];if(!i)return;const r={type:i.typeName,id:i.id,source:i.source,"source-layer":i.sourceLayer,minzoom:i.minzoom,maxzoom:i.maxzoom,filter:i.filter,layout:i.layout,paint:e},n=s._recreateLayer(r,i),a=this.layers.indexOf(i);this.layers[a]=n,this._style.layers[a].paint=e,this._layerByName[i.id]=n,this._uidToLayer.set(i.uid,n)}setLayoutProperties(t,e){const i=this._layerByName[t];if(!i)return;const r={type:i.typeName,id:i.id,source:i.source,"source-layer":i.sourceLayer,minzoom:i.minzoom,maxzoom:i.maxzoom,filter:i.filter,layout:e,paint:i.paint},n=s._recreateLayer(r,i),a=this.layers.indexOf(i);this.layers[a]=n,this._style.layers[a].layout=e,this._layerByName[i.id]=n,this._uidToLayer.set(i.uid,n)}setStyleLayerVisibility(t,e){const i=this._layerByName[t];if(!i)return;const r=i.layout||{};r.visibility=e;const n={type:i.typeName,id:i.id,source:i.source,"source-layer":i.sourceLayer,minzoom:i.minzoom,maxzoom:i.maxzoom,filter:i.filter,layout:r,paint:i.paint},a=s._recreateLayer(n,i),o=this.layers.indexOf(i);this.layers[o]=a,this._style.layers[o].layout=r,this._layerByName[i.id]=a,this._uidToLayer.set(i.uid,a)}getStyleLayerVisibility(t){const e=this._layerByName[t];if(!e)return"none";const i=e.layout;return i?.visibility??"visible"}_recomputeZValues(){const t=this.layers,e=1/(t.length+1);for(let i=0;i<t.length;i++)t[i].z=1-(1+i)*e}_identifyRefLayers(){const t=[],e=[];let i=0;for(const r of this.layers){const n=r.layout;if(1===r.type){const e=r;let s=r.source+"|"+r.sourceLayer;s+="|"+(n?.visibility??""),s+="|"+r.minzoom,s+="|"+r.maxzoom,s+="|"+JSON.stringify(r.filter),(e.hasDataDrivenFill||e.hasDataDrivenOutline)&&(s+="|"+i),t.push({key:s,layer:r})}else if(2===r.type){const t=r,s=r.paint,a=null!=s&&(null!=s["line-pattern"]||null!=s["line-dasharray"]);let o=r.source+"|"+r.sourceLayer;o+="|"+(n?.visibility??""),o+="|"+r.minzoom,o+="|"+r.maxzoom,o+="|"+JSON.stringify(r.filter),o+="|"+(void 0!==n?n["line-cap"]:""),o+="|"+(void 0!==n?n["line-join"]:""),(t.hasDataDrivenLine||a)&&(o+="|"+i),e.push({key:o,layer:r})}++i}this._assignRefLayers(t),this._assignRefLayers(e)}_assignRefLayers(t){let e,i;t.sort((t,e)=>t.key<e.key?-1:t.key>e.key?1:0);const r=t.length;for(let n=0;n<r;n++){const s=t[n];if(s.key===e)s.layer.refLayerId=i;else if(e=s.key,i=s.layer.id,1===s.layer.type){if(!s.layer.getPaintProperty("fill-outline-color"))for(let a=n+1;a<r;a++){const r=t[a];if(r.key!==e)break;if(r.layer.getPaintProperty("fill-outline-color")){t[n]=r,t[a]=s,i=r.layer.id;break}}}else if(2===s.layer.type){let a=s.layer;for(let o=n+1;o<r;o++){const r=t[o];if(r.key!==e)break;const l=r.layer;(a.canUseThinTessellation&&!l.canUseThinTessellation||!a.canUseThinTessellation&&(l.getPaintProperty("line-pattern")||l.getPaintProperty("line-dasharray")))&&(a=l,t[n]=r,t[o]=s,i=r.layer.id)}}}}_create(t,e,i){const r=1-(1+e)*(1/(i.length+1)),s=this._runningId++;switch(t.type){case"background":return new n.lf(0,t,r,s);case"fill":return new n.A4(1,t,r,s);case"line":return new n.tU(2,t,r,s);case"symbol":return new n.V1(3,t,r,s);case"raster":return console.warn(`Unsupported vector tile raster layer ${t.id}`),null;case"circle":return new n.L(4,t,r,s)}return null}static _recreateLayer(t,e){switch(t.type){case"background":return new n.lf(0,t,e.z,e.uid);case"fill":return new n.A4(1,t,e.z,e.uid);case"line":return new n.tU(2,t,e.z,e.uid);case"symbol":return new n.V1(3,t,e.z,e.uid);case"raster":return console.warn(`Unsupported vector tile raster layer ${t.id}`),null;case"circle":return new n.L(4,t,e.z,e.uid)}return null}}},63907:(t,e,i)=>{i.d(e,{$0:()=>c,CQ:()=>m,Fq:()=>f,H0:()=>s,SB:()=>l,WR:()=>r,XN:()=>a,iE:()=>o,ld:()=>u,nI:()=>_,pe:()=>n,r6:()=>y,vt:()=>h,yI:()=>p});const r={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},n={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,HALF_FLOAT:5131},s={RGBA4:32854,R16F:33325,RG16F:33327,RGB32F:34837,RGBA16F:34842,R32F:33326,RG32F:33328,RGBA32F:34836,R11F_G11F_B10F:35898,RGB8:32849,RGBA8:32856,RGB5_A1:32855,R8:33321,RG8:33323,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,RGB16F:34843,RGB9_E5:35901,SRGB8:35905,SRGB8_ALPHA8:35907,RGB565:36194,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,RGB10_A2:32857,RGB10_A2UI:36975},a=Object.values(s),o={DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},l={DEPTH_COMPONENT16:33189,DEPTH_COMPONENT24:33190,DEPTH_COMPONENT32F:36012},u={FLOAT:n.FLOAT,UNSIGNED_BYTE:n.UNSIGNED_BYTE,UNSIGNED_INT_24_8:34042,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,BYTE:n.BYTE,UNSIGNED_SHORT:n.UNSIGNED_SHORT,SHORT:n.SHORT,UNSIGNED_INT:n.UNSIGNED_INT,INT:n.INT,HALF_FLOAT:5131,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269},h={Texture:0,TileTexture:1,BufferObject:2,VertexArrayObject:3,Shader:4,Program:5,FramebufferObject:6,Renderbuffer:7,TransformFeedback:8,Sync:9,UNCOUNTED:10,LinesOfCode:10,Uniform:11,COUNT:12},c=0,y=36064,p=36065,f=36066,_=33306,m={COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_SRGB8_ETC2:37493,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37494,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37495,COMPRESSED_RGBA8_ETC2_EAC:37496,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37497}},68197:(t,e,i)=>{i.d(e,{A:()=>u});var r=i(40876),n=i(4576),s=i(34727),a=i(56507);function o(t){return(0,s.qE)((0,a.Vr)(t),0,255)}function l(t,e){const i=t.toString(16).padStart(2,"0");return e?i.slice(0,1):i}class u{static blendColors(t,e,i,r=new u){return r.r=Math.round(t.r+(e.r-t.r)*i),r.g=Math.round(t.g+(e.g-t.g)*i),r.b=Math.round(t.b+(e.b-t.b)*i),r.a=t.a+(e.a-t.a)*i,r._sanitize()}static fromRgb(t,e){const i=(0,r.lT)(t);return i?u.fromArray(i,e):null}static fromHex(t,e=new u){const i=(0,r.oW)(t);return i?u.fromArray(i,e):null}static fromArray(t,e=new u){return e._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(e.a)&&(e.a=1),e._sanitize()}static fromString(t,e){const i=(0,r.Eq)(t);return i?u.fromArray(i,e):null}static fromJSON(t){return null!=t?new u([t[0],t[1],t[2],(t[3]??255)/255]):void 0}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(t){return t??=[0,0,0,0],t[0]=this.r/255,t[1]=this.g/255,t[2]=this.b/255,t[3]=null!=this.a?this.a:1,t}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(t){if("string"==typeof t)u.fromString(t,this);else if((0,n.yc)(t))u.fromArray(t,this);else{const e=t;this._set(e.r??0,e.g??0,e.b??0,e.a??1),t instanceof u||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(t){const e=t?.capitalize??!1,i=t?.digits??6,r=3===i||4===i,n=4===i||8===i,s=`#${l(this.r,r)}${l(this.g,r)}${l(this.b,r)}${n?l(Math.round(255*this.a),r):""}`;return e?s.toUpperCase():s}toCss(t=!1){const e=this.r+", "+this.g+", "+this.b;return t?`rgba(${e}, ${this.a})`:`rgb(${e})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=0){const e=o(this.r),i=o(this.g),r=o(this.b);return 0===t||1!==this.a?[e,i,r,o(255*this.a)]:[e,i,r]}clone(){return new u(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=(0,r.c1)(this.r),this.g=(0,r.c1)(this.g),this.b=(0,r.c1)(this.b),this.a=(0,r.G1)(this.a),this}_set(t,e,i,r){this.r=t,this.g=e,this.b=i,this.a=r}}u.prototype.declaredClass="esri.Color"},69397:(t,e,i)=>{i.d(e,{$B:()=>n,Qf:()=>u,Qh:()=>o,RS:()=>s,Ul:()=>f,ez:()=>y,lM:()=>a,qK:()=>c});var r=i(34275);function n(t){return 32+t.length}const s=16;function a(t){if(!t)return 0;let e=c;for(const i in t)t.hasOwnProperty(i)&&(e+=l(t[i],!1));return e}function o(t){if(!t)return 0;if("number"==typeof t[0])return u(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return h(t,8);let i=y;for(let r=0;r<e;r++)i+=l(t[r]);return i}(t);let e=c;for(const i in t)t.hasOwnProperty(i)&&(e+=l(t[i]));return e}function l(t,e=!0){switch(typeof t){case"object":return e?o(t):c;case"string":return n(t);case"number":return s;case"boolean":return 4;default:return 8}}function u(...t){return t.reduce((t,e)=>t+(e?(0,r.iu)(e)?e.byteLength+p:Array.isArray(e)?h(e,s):0:0),0)}function h(t,e){return y+t.length*e}const c=32,y=16,p=145,f=64},74038:(t,e,i)=>{i.d(e,{_:()=>r});class r{constructor(t,e,i,r,n,s=!1,a=0,o=!1){this.name=t,this.count=e,this.type=i,this.offset=r,this.stride=n,this.normalized=s,this.divisor=a,this.integer=o}}},76213:(t,e,i)=>{i.d(e,{C2:()=>a,CQ:()=>r,DY:()=>n,GR:()=>_,Gh:()=>l,MZ:()=>y,TB:()=>f,U5:()=>o,_M:()=>u,cp:()=>m,eG:()=>s,fq:()=>p,hM:()=>c,ie:()=>h});const r=512,n=29,s=24,a=4,o=6,l=1.05,u=3,h=3,c=4,y=1,p=10,f=256,_=32,m=512},80081:(t,e,i)=>{i.d(e,{A:()=>r}),i(44208);class r{constructor(t){this._array=[],this._stride=t}get array(){return this._array}get index(){return 4*this._array.length/this._stride}get itemSize(){return this._stride}get sizeInBytes(){return 4*this._array.length}reset(){this.array.length=0}toBuffer(){return new Uint32Array(this._array).buffer}static i1616to32(t,e){return 65535&t|e<<16}static i8888to32(t,e,i,r){return 255&t|(255&e)<<8|(255&i)<<16|r<<24}static i8816to32(t,e,i){return 255&t|(255&e)<<8|i<<16}}},85079:(t,e,i)=>{i.d(e,{Xk:()=>n,_u:()=>s});var r=i(21818);function n(t){let e=0;return(0,r.z)(new Map(t.map(({name:t,count:i})=>{const r=[t,e];return 16===i?e+=4:9===i?e+=3:++e,r})))}function s(t){const e=new Map;let i=0;return t.forEach(t=>t.forEach(({name:t,count:r})=>{e.set(t,i),16===r?i+=4:9===r?i+=3:++i})),e}},85334:(t,e,i)=>{i.d(e,{$:()=>g,IB:()=>a,Iy:()=>w,N2:()=>d,RH:()=>b,ZD:()=>x});var r=i(68197),n=i(4576),s=i(4718);function a(t){return"r"in t&&"g"in t&&"b"in t}function o(t){return"h"in t&&"s"in t&&"v"in t}function l(t){return"l"in t&&"a"in t&&"b"in t}function u(t){return"l"in t&&"c"in t&&"h"in t}i(34727),i(87317),i(91829);const h=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],c=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];function y(t,e){const i=[];let r,n;if(t[0].length!==e.length)throw new Error("dimensions do not match");const s=t.length,a=t[0].length;let o=0;for(r=0;r<s;r++){for(o=0,n=0;n<a;n++)o+=t[r][n]*e[n];i.push(o)}return i}function p(t){const e=[t.r/255,t.g/255,t.b/255].map(t=>t<=.04045?t/12.92:((t+.055)/1.055)**2.4),i=y(h,e);return{x:100*i[0],y:100*i[1],z:100*i[2]}}function f(t){const e=y(c,[t.x/100,t.y/100,t.z/100]).map(t=>{const e=t<=.0031308?12.92*t:1.055*t**(1/2.4)-.055;return Math.min(1,Math.max(e,0))});return{r:Math.round(255*e[0]),g:Math.round(255*e[1]),b:Math.round(255*e[2])}}function _(t){const e=[t.x/95.047,t.y/100,t.z/108.883].map(t=>t>(6/29)**3?t**(1/3):1/3*(29/6)**2*t+4/29);return{l:116*e[1]-16,a:500*(e[0]-e[1]),b:200*(e[1]-e[2])}}function m(t){const e=t.l,i=[(e+16)/116+t.a/500,(e+16)/116,(e+16)/116-t.b/200].map(t=>t>6/29?t**3:3*(6/29)**2*(t-4/29));return{x:95.047*i[0],y:100*i[1],z:108.883*i[2]}}function g(t){return a(t)?t:u(t)?function(t){return f(m(function(t){const e=t.l,i=t.c,r=t.h;return{l:e,a:i*Math.cos(r),b:i*Math.sin(r)}}(t)))}(t):l(t)?function(t){return f(m(t))}(t):function(t){return"x"in t&&"y"in t&&"z"in t}(t)?f(t):o(t)?function(t){const e=(t.h+360)%360/60,i=t.s/100,r=t.v/100*255,n=r*i,s=n*(1-Math.abs(e%2-1));let a;switch(Math.floor(e)){case 0:a={r:n,g:s,b:0};break;case 1:a={r:s,g:n,b:0};break;case 2:a={r:0,g:n,b:s};break;case 3:a={r:0,g:s,b:n};break;case 4:a={r:s,g:0,b:n};break;case 5:case 6:a={r:n,g:0,b:s};break;default:a={r:0,g:0,b:0}}return a.r=Math.round(a.r+r-n),a.g=Math.round(a.g+r-n),a.b=Math.round(a.b+r-n),a}(t):t}function d(t){return o(t)?t:function(t){const e=t.r,i=t.g,r=t.b,n=Math.max(e,i,r),s=n-Math.min(e,i,r);let a=n,o=0===s?0:n===e?(i-r)/s%6:n===i?(r-e)/s+2:(e-i)/s+4,l=0===s?0:s/a;return o<0&&(o+=6),o*=60,l*=100,a*=100/255,{h:o,s:l,v:a}}(g(t))}function x(t){return l(t)?t:function(t){return _(p(t))}(g(t))}function b(t){return u(t)?t:function(t){return function(t){const e=t.l,i=t.a,r=t.b,n=Math.sqrt(i*i+r*r);let s=Math.atan2(r,i);return s=s>0?s:s+2*Math.PI,{l:e,c:n,h:s}}(_(p(t)))}(g(t))}function w(t,e,i={}){if(0===t.length||e<=0)return[];if(1===(t=t.map(t=>"string"==typeof t?new r.A(t):t)).length||1===e){const i=[],r=t[0];for(let t=0;t<e;t++)i.push(r.clone());return i}if(i.shuffle&&(t=(0,n.k4)((0,s.o8)(t),i.seed)),t.length>=e){const i=[],r=(t.length-1)/(e-1);for(let n=0;n<e;n++){const e=Math.round(n*r);i.push(t[e].clone())}return i}return function(t,e,i={}){const r=[],s=t.length-1,a=Math.ceil((e-t.length)/s);t:for(let n=0;n<s;n++){const s=t[n],o=t[n+1];for(let n=1;n<=a;n++){const l=n/(a+1);if(r.push(T(s,o,l,i)),r.length+t.length===e)break t}}return[...t.map(t=>t.clone()),...(0,n.k4)(r,i.seed??1)]}(t,e,i)}const v=(t,e)=>{const i=Math.floor(10*e())-5;return Math.min(255,Math.max(0,t+i))};function T(t,e,i,s={}){const a=t.r,o=t.g,l=t.b,u=e.r,h=e.g,c=e.b,y=Math.round(a+(u-a)*i),p=Math.round(o+(h-o)*i),f=Math.round(l+(c-l)*i);if(!s.offset)return new r.A([y,p,f]);const _=(0,n.Mo)(s.seed);return new r.A([v(y,_),v(p,_),v(f,_)])}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4342,9062,9279],{22671:(e,t,r)=>{r.d(t,{A:()=>w});var i,n=r(31635),s=r(52106),o=r(66552),a=r(25482),l=r(4718),d=r(91429),u=r(16930),p=r(60408),c=r(65864),y=r(50498),h=r(20437),f=r(36005),g=r(43937);const m=new o.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let w=i=class extends a.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,s.A)}writeGeometryType(e,t,r,i){if(e)return void m.write(e,t,r,i);const{features:n}=this;if(n)for(const e of n)if(null!=e?.geometry)return void m.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,i=(0,c.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=u.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,l.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const i=t.features[r];if(i.geometry){const t=e?.[r];i.geometry=t?.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,r],translate:[i,n]}=e,s=this.features,o=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((n-e)/r));for(let e=0,t=s.length;e<t;e++)o?.(s[e].geometry)||(s.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[i,n],scale:[s,o]}=r;let a=null,l=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;a=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;l=r=>null==r?r:r*t+e}const d=this._getHydrationFunction(e,e=>e*s+i,e=>n-e*o,a,l);for(const{geometry:e}of t)null!=e&&d&&d(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){const i=u.A.fromJSON(t.spatialReference),n=[];for(let t=0;t<e.length;t++){const s=e[t],o=r.fromJSON(s),a=s.geometry?.spatialReference;null==o.geometry||a||(o.geometry.spatialReference=i);const l=s.aggregateGeometries,d=o.aggregateGeometries;if(l&&null!=d)for(const e in d){const t=d[e],r=l[e],n=r?.spatialReference;null==t||n||(t.spatialReference=i)}n.push(o)}return n}_quantizePoints(e,t,r){let i,n;const s=[];for(let o=0,a=e.length;o<a;o++){const a=e[o];if(o>0){const e=t(a[0]),o=r(a[1]);e===i&&o===n||(s.push([e-i,o-n]),i=e,n=o)}else i=t(a[0]),n=r(a[1]),s.push([i,n])}return s.length>0?s:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const i=(0,p.Bi)(e)?e.rings:e.paths,n=[];for(let e=0,s=i.length;e<s;e++){const s=i[e],o=this._quantizePoints(s,t,r);o&&n.push(o)}return n.length>0?((0,p.Bi)(e)?e.rings=n:e.paths=n,e):null}:"multipoint"===e?e=>{const i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,n){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{const s=(0,p.Bi)(e)?e.rings:e.paths;let o,a;for(let e=0,i=s.length;e<i;e++){const i=s[e];for(let e=0,n=i.length;e<n;e++){const n=i[e];e>0?(o+=n[0],a+=n[1]):(o=n[0],a=n[1]),n[0]=t(o),n[1]=r(a)}}if(i&&n)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2]),r[3]=n(r[3])}}else if(i)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}else if(n)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=n(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),n&&null!=e.mmax&&null!=e.mmin&&(e.mmax=n(e.mmax),e.mmin=n(e.mmin))}:"multipoint"===e?e=>{const s=e.points;let o,a;for(let e=0,i=s.length;e<i;e++){const i=s[e];e>0?(o+=i[0],a+=i[1]):(o=i[0],a=i[1]),i[0]=t(o),i[1]=r(a)}if(i&&n)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=i(t[2]),t[3]=n(t[3])}else if(i)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=i(t[2])}else if(n)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=n(t[2])}}:null}};(0,n.Cg)([(0,d.MZ)({type:String,json:{write:!0}})],w.prototype,"displayFieldName",void 0),(0,n.Cg)([(0,d.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"exceededTransferLimit",void 0),(0,n.Cg)([(0,d.MZ)({type:[s.A],json:{write:!0}})],w.prototype,"features",void 0),(0,n.Cg)([(0,f.w)("features")],w.prototype,"readFeatures",null),(0,n.Cg)([(0,d.MZ)({type:[h.A],json:{write:!0}})],w.prototype,"fields",void 0),(0,n.Cg)([(0,d.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:m.read}}})],w.prototype,"geometryType",void 0),(0,n.Cg)([(0,g.K)("geometryType")],w.prototype,"writeGeometryType",null),(0,n.Cg)([(0,d.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasM",void 0),(0,n.Cg)([(0,d.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasZ",void 0),(0,n.Cg)([(0,d.MZ)({types:y.yR,json:{write:!0}})],w.prototype,"queryGeometry",void 0),(0,n.Cg)([(0,f.w)("queryGeometry")],w.prototype,"readQueryGeometry",null),(0,n.Cg)([(0,d.MZ)({type:u.A,json:{write:!0}})],w.prototype,"spatialReference",void 0),(0,n.Cg)([(0,g.K)("spatialReference")],w.prototype,"writeSpatialReference",null),(0,n.Cg)([(0,d.MZ)({json:{write:!0}})],w.prototype,"transform",void 0),w=i=(0,n.Cg)([(0,d.$K)("esri.rest.support.FeatureSet")],w),w.prototype.toJSON.isDefaultToJSON=!0},32587:(e,t,r)=>{r.d(t,{A:()=>s});var i=r(62788),n=r(95488);class s{constructor(e){this._observable=new n.I,this._notifyPending=!1,this._batchDepth=0,this._map=new Map(e)}get size(){return(0,i.gc)(this._observable),this._map.size}batch(e){try{this._batchDepth++,e()}finally{this._batchDepth--,this._notifyPending&&0===this._batchDepth&&(this._notifyPending=!1,this._notify())}}clear(){this._map.size>0&&(this._map.clear(),this._notify())}delete(e){const t=this._map.delete(e);return t&&this._notify(),t}entries(){return(0,i.gc)(this._observable),this._map.entries()}forEach(e,t){(0,i.gc)(this._observable),this._map.forEach((r,i)=>e.call(t,r,i,this),t)}get(e){return(0,i.gc)(this._observable),this._map.get(e)}has(e){return(0,i.gc)(this._observable),this._map.has(e)}keys(){return(0,i.gc)(this._observable),this._map.keys()}set(e,t){return this._map.set(e,t),this._notify(),this}transformValues(e,t=this._map.keys()){this.batch(()=>{for(const r of t){if(!this._map.has(r))continue;const t=this._map.get(r),i=e(t,r);i!==t&&this.set(r,i)}})}values(){return(0,i.gc)(this._observable),this._map.values()}[Symbol.iterator](){return(0,i.gc)(this._observable),this._map[Symbol.iterator]()}[Symbol.dispose](){this._observable.destroy()}get[Symbol.toStringTag](){return this._map[Symbol.toStringTag]}_notify(){this._batchDepth>0?this._notifyPending=!0:this._observable.notify()}}},32756:(e,t,r)=>{r.d(t,{Rr:()=>a,fY:()=>d,ne:()=>l});var i=r(31635),n=r(93637),s=r(91429),o=r(91880);function a(e,t,r){if(!e)return null;const i=e.find(e=>!!e.field);if(!i)return null;const n=new o.A;return n.read(i,r),[n]}const l={type:[o.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:a},write:{writer:function(e,t,r,i){const s=e.find(e=>!!e.field);s&&(0,n.sM)(r,[s.toJSON()],t)}}}},d=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,i.Cg)([(0,s.MZ)(l)],r.prototype,"orderBy",void 0),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.OrderedLayer")],r),r}},33143:(e,t,r)=>{r.d(t,{A:()=>p});var i=r(31635),n=r(69540),s=r(25482),o=r(91429),a=r(8631),l=r(29005),d=r(36005),u=r(43937);let p=class extends((0,n.OU)(s.o)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,a.r)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],p.prototype,"id",void 0),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],p.prototype,"name",void 0),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],p.prototype,"domains",void 0),(0,i.Cg)([(0,d.w)("domains")],p.prototype,"readDomains",null),(0,i.Cg)([(0,u.K)("domains")],p.prototype,"writeDomains",null),(0,i.Cg)([(0,o.MZ)({type:[l.A],json:{write:!0}})],p.prototype,"templates",void 0),p=(0,i.Cg)([(0,o.$K)("esri.layers.support.FeatureType")],p)},44794:(e,t,r)=>{r.d(t,{v:()=>a});var i=r(4718),n=r(62788),s=r(95488);class o{constructor(e,t){this._observable=new s.I,this._value=e,this._equalityFunction=t}get value(){return(0,n.gc)(this._observable),this._value}set value(e){this._equalityFunction(e,this._value)||(this._value=e,this._observable.notify())}mutate(e){e(this._value),this._observable.notify()}}function a(e,t=i.gh){return new o(e,t)}},46140:(e,t,r)=>{r.d(t,{A:()=>n});var i=r(49186);let n=class e{constructor(e,t,r=""){this.major=e,this.minor=t,this._context=r}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}validate(e){if(this.major!==e.major){const t=this._context&&this._context+":",r=this._context&&this._context+" ";throw new i.A(t+"unsupported-version",`Required major ${r}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new e(this.major,this.minor,this._context)}static parse(t,r=""){const[n,s]=t.split("."),o=/^\s*\d+\s*$/;if(!n?.match||!o.test(n))throw new i.A((r&&r+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:t});if(!s?.match||!o.test(s))throw new i.A((r&&r+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:t});const a=parseInt(n,10),l=parseInt(s,10);return new e(a,l,r)}}},55674:(e,t,r)=>{r.d(t,{Ad:()=>y,Gj:()=>g,QY:()=>c,lL:()=>m,xR:()=>h});var i=r(66131),n=r(49186),s=(r(44208),r(44729)),o=r(15032),a=r(65864),l=r(95466),d=r(43668),u=r(98623);const p=["geometry","scale","timeProperties"];function c(e,t){if(null!=t)for(const r of p)t.hasArcadeDependency(r)&&e.add(r);return e}function y(e,t){return f.create(e,t,null,["$feature","$view"])}function h(e,t,r){return f.create(e,t,r,["$feature","$view","$config"])}class f{static async create(e,t,r,i){const{arcade:s,Dictionary:o}=await(0,d.l)();let a;try{a=s.parseScript(e)}catch(t){throw new n.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})}const l=s.scriptUsesGeometryEngine(a);l&&await s.enableGeometrySupport(),await s.loadDependentModules(new Set,a,null,!1,l);const u={vars:i.reduce((e,t)=>({...e,[t]:null}),{}),spatialReference:t,useAsync:!1},p=s.compileScript(a,u);let c=null;null!=r&&(c=new o(r),c.immutable=!0);const y=new o;return y.immutable=!1,y.setField("scale",0),new f(e,s,a,p,t,y,c,o)}constructor(e,t,r,i,n,s,o,a){this.script=e,this._arcade=t,this._syntaxTree=r,this._compiled=i,this._spatialReference=n,this._viewDict=s,this._configDict=o,this._dictionaryCtor=a,this._dependencies=new Map,this._featureReader=new g,this._dependencies.set("geometry",t.scriptTouchesGeometry(this._syntaxTree)),this._dependencies.set("scale",this._arcade.referencesMember(this._syntaxTree,"scale")),this._dependencies.set("timeProperties",this._arcade.scriptUsesViewProperties(this._syntaxTree,["timeProperties"]))}evaluate(e,t){const r=t.$view?.timeZone;if(t.$view){let e;if(this._viewDict.setField("scale",t.$view.scale),null!=t.$view.timeProperties){const{currentStart:n,currentEnd:s}=t.$view.timeProperties;e=new this._dictionaryCtor({currentStart:null!=n?null!=r?i.lY.epochToArcadeDate(n,r):i.lY.unknownEpochToArcadeDate(n):void 0,currentEnd:null!=s?null!=r?i.lY.epochToArcadeDate(s,r):i.lY.unknownEpochToArcadeDate(s):void 0,startIncluded:!0,endIncluded:!0})}this._viewDict.setField("timeProperties",e)}return this._compiled({vars:{$view:this._viewDict,$config:this._configDict,$feature:e},spatialReference:this._spatialReference,timeZone:r})}repurposeFeature(e,t){return this._featureReader.bind(e,t,this._spatialReference),this._featureReader}references(e){return this._dependencies.get(e)??!1}}class g{constructor(){this._boundTarget=null,this._boundSchema={fields:null,fieldsIndex:null,spatialReference:null,get geometryType(){return null},get objectIdField(){return null}},this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}bind(e,t,r){const i=t??new l.A(m(e.attributes));this._boundTarget=e,this._boundSchema.fields=i.fields,this._boundSchema.fieldsIndex=i,this._boundSchema.spatialReference=r}_getField(e){return this._boundSchema.fieldsIndex.get(e)}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this._boundSchema.fieldsIndex.has(e)}geometry(){if("fromJSON"in this._boundTarget)return this._boundTarget.geometry;const e=(0,a.rS)(this._boundTarget.geometry);if(e){if(!this._boundSchema.spatialReference)throw new Error("InternalError: Expected spatial reference to be defined");e.spatialReference=this._boundSchema.spatialReference}return e}_hasGeometry(){return null!=this._boundTarget.geometry}isUnknownDateTimeField(e){return this._boundSchema.fieldsIndex.getTimeZone(e)===u.L5}field(e,t=!0){const r=this._getField(e);if(r){const t=this._boundTarget.attributes[r.name];if(null==t)return null;switch(r.type){case"date-only":case"esriFieldTypeDateOnly":return s.n.fromReader(t);case"time-only":case"esriFieldTypeTimeOnly":return o.k.fromReader(t);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return i.lY.fromReaderAsTimeStampOffset(t);case"date":case"esriFieldTypeDate":return this.isUnknownDateTimeField(e)?i.lY.unknownEpochToArcadeDate(t):i.lY.epochToArcadeDate(t,this.contextTimeZone??u.qU);default:return t}}if(t)throw new Error(`Field ${e} does not exist`);return null}setField(e,t){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this._boundSchema.fieldsIndex.fields.map(e=>e.name)}isEmpty(){return this._boundSchema.fields.length<=0&&!this._hasGeometry()}castToText(e=!1){return JSON.stringify(this._boundTarget)}gdbVersion(){return null}fullSchema(){return this._boundSchema}castAsJson(e=null){return{attributes:this._boundTarget.attributes,geometry:!0===e?.keepGeometryType?this.geometry():this.geometry()?.toJSON()??null}}castAsJsonAsync(e=null,t=null){return Promise.resolve(this.castAsJson(t))}}function m(e){const t=[];for(const r in e)t.push({name:r,alias:r,type:"string"==typeof e[r]?"esriFieldTypeString":"esriFieldTypeDouble"});return t}},58501:(e,t,r)=>{r.d(t,{q:()=>n});var i=r(62815);function n(e,t,r){if(!r?.features||!r.hasZ)return;const n=(0,i.N)(r.geometryType,t,e.outSpatialReference);if(n)for(const e of r.features)n(e.geometry)}},62815:(e,t,r)=>{r.d(t,{N:()=>o});var i=r(86211),n=r(73941),s=r(21325);function o(e,t,r){if(null==t||null==r||r.vcsWkid||(0,s.aI)(t,r)||(0,n.xP)(t)||(0,n.xP)(r))return;const o=(0,i.G9)(t)/(0,i.G9)(r);if(1!==o)switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,o);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const r of e.paths)for(const e of r)e.length>2&&(e[2]*=t)}(e,o);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const r of e.rings)for(const e of r)e.length>2&&(e[2]*=t)}(e,o);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const r of e.points)r.length>2&&(r[2]*=t)}(e,o);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,o);default:return}}},73681:(e,t,r)=>{r.d(t,{n:()=>l});var i=r(49186),n=r(53966),s=r(46140),o=r(95466),a=r(55674);class l{static async from(e,t,r){const o=e.dictionary_version?s.A.parse(e.dictionary_version):null,u=new Set(e.itemsNames),p={};if(t)for(const e in t)p[e]=t[e];if(e.authoringInfo.configuration)for(const t of e.authoringInfo.configuration)p.hasOwnProperty(t.name)||(p[t.name]=t.value);const c=new Set(e.authoringInfo.symbol);for(const e of Object.keys(r))c.delete(e);c.size&&n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:c});const y=await(0,a.xR)(e.expression,null,p);if(!y)throw new i.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");const h=!o||!o.greaterEqual(4,0);h&&n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:o});const f=new d(r,h);return new l(h,u,y,f)}constructor(e,t,r,i){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=r,this._reader=i}get itemNames(){return this._itemNames}evaluate(e,t,r,i){try{return this._reader.bind(e,r,i),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new o.A(e);const t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new o.A(t)}}class d extends a.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){const t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);const t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},83508:(e,t,r)=>{r.r(t),r.d(t,{default:()=>fe});var i=r(31635),n=r(11254),s=r(7762),o=r(49186),a=r(91869),l=r(25728),d=r(74887),u=r(84952),p=r(91429),c=r(4146),y=r(36563),h=r(66344),f=r(32587),g=r(36708),m=r(44794),w=r(56507),v=r(63074),b=r(25036),_=r(10873),C=r(91880),M=r(1873);let Z=class extends((0,b.j)((0,v.dM)((0,l.P)(c.A)))){constructor(e){super(e),this._layerCache=new h.q(20,e=>e.destroy()),this._oidToReference=new f.A,this._layerToReference=new Map,this.legendEnabled=!0,this.layers=new s.A,this.maximumVisibleSublayers=10,this.opacity=1,this.parent=null,this.persistenceEnabled=!0,this.title="Layers in view",this.type="catalog-dynamic-group",this.visible=!0}initialize(){this.addHandles([this.layers.on("after-add",({item:e})=>{e.parent=this}),this.layers.on("after-remove",({item:e})=>{e.parent=null}),(0,g.wB)(()=>this._orderBy,()=>{this._updateLayerSortValues(),this._sortAllLayers()})])}load(e){return this.addResolvingPromise(this.parent.load()),Promise.resolve(this)}destroy(){this._layerCache.destroy(),this._oidToReference.clear(),this._layerToReference.clear()}get _orderBy(){return this.parent?this.parent.orderBy?.find(e=>!e.valueExpression&&e.field)??new C.A({field:this.parent.objectIdField}):null}get _referenceComparator(){const e=this._orderBy;if(!this.parent||!e)return()=>0;const t=this.parent.fieldsIndex.get(e.field),r=(0,M.FM)(t?.toJSON().type,"descending"===e.order,"case-sensitive"),i=(0,M.FM)("esriFieldTypeOID","descending"===e.order);return(e,t)=>r(t.sortValue,e.sortValue)||i(t.objectId,e.objectId)}get fullExtent(){return this.parent?.fullExtent??null}get updating(){return(0,a.Bs)(this._oidToReference,({pending:e})=>null!=e)}acquireLayer(e){if(this.destroyed)return(0,y.hA)();const t=this._getLayerReference(e);return t.count++,(0,y.hA)(()=>{t.count--,t.count||this._destroyLayerReference(t)})}_getLayerReference(e){const t=e.getObjectId();return(0,a.tE)(this._oidToReference,t,()=>{const t=e.getObjectId(),r=`${t}`,i=e.getAttribute(this.parent.itemSourceField),n=new F(e,t,i),s=this._layerCache.pop(r);return s?(this._addLayer(n,s),n):(n.pending=this.parent.createLayerFromFootprint(e).then(e=>{n.count?this._addLayer(n,e):(this.destroyed||this._layerCache.get(r)||this._layerCache.put(r,e),n.layer=null)}).catch(()=>{}).finally(()=>{n.pending=null}),n)})}_destroyLayerReference(e){e.layer&&(this._layerToReference.delete(e.layer),this.layers.remove(e.layer),this.destroyed?e.layer.destroy():this._layerCache.put(`${e.objectId}`,e.layer),e.layer=null),this._oidToReference.delete(e.objectId)}_addLayer(e,t){e.layer=t,t.persistenceEnabled=!1,this._layerToReference.set(t,e),this._updateLayerSortValue(e),this.layers.add(t),this._sortAllLayers()}_updateLayerSortValues(){for(const e of this._layerToReference.values())this._updateLayerSortValue(e)}_updateLayerSortValue(e){this._orderBy&&(e.sortValue=e.footprint.getAttribute(this._orderBy.field))}_sortAllLayers(){this.layers.sort((e,t)=>this._referenceComparator(this._layerToReference.get(e),this._layerToReference.get(t)))}};(0,i.Cg)([(0,p.MZ)()],Z.prototype,"_orderBy",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],Z.prototype,"_referenceComparator",null),(0,i.Cg)([(0,p.MZ)(_.fV)],Z.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,p.MZ)({type:["show","hide","hide-children"],json:{write:!0}})],Z.prototype,"listMode",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],Z.prototype,"fullExtent",null),(0,i.Cg)([(0,p.MZ)({type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}},write:{ignoreOrigin:!0,isRequired:!0}}})],Z.prototype,"id",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],Z.prototype,"layers",void 0),(0,i.Cg)([(0,p.MZ)({type:w.jz,range:{min:0,max:50},json:{write:!0,default:10}})],Z.prototype,"maximumVisibleSublayers",void 0),(0,i.Cg)([(0,p.MZ)(_.ke)],Z.prototype,"opacity",void 0),(0,i.Cg)([(0,p.MZ)({clonable:!1})],Z.prototype,"parent",void 0),(0,i.Cg)([(0,p.MZ)({type:String,nonNullable:!0,json:{write:{ignoreOrigin:!0,isRequired:!0}}})],Z.prototype,"title",void 0),(0,i.Cg)([(0,p.MZ)({json:{read:!1}})],Z.prototype,"type",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],Z.prototype,"updating",null),(0,i.Cg)([(0,p.MZ)({type:Boolean,json:{name:"visibility",write:!0}})],Z.prototype,"visible",void 0),Z=(0,i.Cg)([(0,p.$K)("esri.layers.catalog.CatalogDynamicGroupLayer")],Z);class F{constructor(e,t,r){this.footprint=e,this.objectId=t,this.itemSource=r,this.count=0,this.layer=null,this.sortValue=void 0,this._pending=(0,m.v)(null)}get pending(){return this._pending.value}set pending(e){this._pending.value=e}}var x=r(37838),S=r(4718),T=r(78247),I=r(55156),O=r(60950),j=r(89808),E=r(99959);const R=Symbol("isCatalogGraphicOrigin");var A;class L extends E.A{get[(A=R,O.ym)](){return this.layer}get[I.e](){return this.layer}get[j.Q](){return this.layer}constructor(e){super(),this[A]=!0,this.type="catalog",this.layer=e}get id(){return this.layer.id}}var P=r(87718),q=r(30524),D=r(46499),G=r(39383),N=r(96576),V=r(41214),$=r(30291),z=r(94985);let B=class extends((0,b.j)((0,P.F)((0,v.dM)((0,l.P)(c.A))))){constructor(e){super(e),this.attributeTableTemplate=null,this.charts=null,this.editingEnabled=!0,this.elevationInfo=null,this.formTemplate=null,this.graphicOrigin=new L(this),this.labelingInfo=null,this.labelsVisible=!0,this.legendEnabled=!0,this.maxScale=0,this.minScale=0,this.opacity=1,this.parent=null,this.persistenceEnabled=!0,this.popupEnabled=!0,this.popupTemplate=null,this.title="Footprints",this.type="catalog-footprint",this.visible=!0}load(e){return this.addResolvingPromise(this._doLoad(e)),Promise.resolve(this)}async _doLoad(e){await this.parent.load(e),(0,q.yp)(this.renderer,this.fieldsIndex),this.addHandles([this.parent.on("apply-edits",e=>this.emit("apply-edits",e)),this.parent.on("edits",e=>this.emit("edits",e)),this.parent.on("refresh",e=>this.emit("refresh",e))])}get apiKey(){return this.parent?.apiKey}get capabilities(){return this.parent?.capabilities}get customParameters(){return this.parent?.customParameters}get dateFieldsTimeZone(){return this.parent?.dateFieldsTimeZone??null}get datesInUnknownTimezone(){return this.parent?.datesInUnknownTimezone??!1}get definitionExpression(){return this.parent?.definitionExpression}get editingInfo(){return this.parent?.editingInfo}get effectiveCapabilities(){return this.parent?.effectiveCapabilities}get createQueryVersion(){return this.parent?.createQueryVersion}get defaultPopupTemplate(){return this.createPopupTemplate()}get displayField(){return this.parent?.displayField}get displayFilterEnabled(){return this.parent?.displayFilterEnabled??!0}get displayFilterInfo(){return this.parent?.displayFilterInfo??null}get effectiveEditingEnabled(){return!1}get fields(){return this.parent?.fields}get fieldsIndex(){return this.parent?.fieldsIndex}get fullExtent(){return this.parent?.fullExtent}get geometryFieldsInfo(){return this.parent?.geometryFieldsInfo}get geometryType(){return this.parent?.geometryType}get globalIdField(){return this.parent?.globalIdField}get hasM(){return this.parent?.hasM??!1}get hasZ(){return this.parent?.hasZ??!1}get objectIdField(){return this.parent?.objectIdField}get orderBy(){return this.parent?.orderBy??null}get outFields(){return this.parent?.outFields}get parsedUrl(){return this.parent?.parsedUrl??null}get preferredTimeZone(){return this.parent?.preferredTimeZone??null}set renderer(e){(0,q.yp)(e,this.fieldsIndex),this._set("renderer",e)}get renderer(){return this._isOverridden("renderer")?this._get("renderer"):function(){const e=new z.A({style:"solid",color:[0,0,0,0],outline:{style:"solid",color:[96,96,96,.75],width:.75}});return new N.A({symbol:e})}()}get returnM(){return this.parent?.returnM}get returnZ(){return this.parent?.returnZ}get source(){return this.parent?.source}get timeExtent(){return this.parent?.timeExtent}get timeInfo(){return this.parent?.timeInfo}get timeOffset(){return this.parent?.timeOffset}get typeIdField(){return this.parent?.typeIdField}get types(){return this.parent?.types}get useViewTime(){return this.parent?.useViewTime??!0}get version(){return this.parent?.version}async applyEdits(e,t){return await this.load(),this.parent.applyEdits(e,t)}createPopupTemplate(e){const t={fields:this.fields,objectIdField:this.objectIdField,title:this.title};return(0,$.tn)(t,e)}createQuery(){return this.parent?.createQuery()}getField(e){return this.parent?.getField(e)}getFieldDomain(e,t){return this.parent?.getFieldDomain(e,t)}async queryExtent(e,t){return await this.load(),this.parent.queryExtent(e,t)}async queryFeatures(e,t){return await this.load(),this.parent.queryFeatures(e,t)}async queryFeatureCount(e,t){return await this.load(),this.parent.queryFeatureCount(e,t)}async queryObjectIds(e,t){return await this.load(),this.parent.queryObjectIds(e,t)}async queryAttributeBins(e,t){return await this.load(),this.parent.queryAttributeBins(e,t)}};(0,i.Cg)([(0,p.MZ)(_.zQ)],B.prototype,"attributeTableTemplate",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],B.prototype,"apiKey",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],B.prototype,"capabilities",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],B.prototype,"customParameters",null),(0,i.Cg)([(0,p.MZ)()],B.prototype,"dateFieldsTimeZone",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],B.prototype,"datesInUnknownTimezone",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],B.prototype,"definitionExpression",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],B.prototype,"editingInfo",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],B.prototype,"effectiveCapabilities",null),(0,i.Cg)([(0,p.MZ)({json:{origins:{"web-scene":{write:!1}},write:!0}})],B.prototype,"charts",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],B.prototype,"createQueryVersion",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],B.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],B.prototype,"displayField",null),(0,i.Cg)([(0,p.MZ)({type:Boolean,nonNullable:!0,json:{name:"enableEditing",write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],B.prototype,"editingEnabled",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],B.prototype,"effectiveEditingEnabled",null),(0,i.Cg)([(0,p.MZ)((()=>{const e=(0,S.o8)(_.Yj);return e.json.origins["web-map"]={read:!1,write:!1},e})())],B.prototype,"elevationInfo",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],B.prototype,"fields",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],B.prototype,"fieldsIndex",null),(0,i.Cg)([(0,p.MZ)({type:T.A,json:{name:"formInfo",write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],B.prototype,"formTemplate",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],B.prototype,"fullExtent",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],B.prototype,"geometryFieldsInfo",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],B.prototype,"geometryType",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],B.prototype,"globalIdField",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0,clonable:!1})],B.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],B.prototype,"hasM",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],B.prototype,"hasZ",null),(0,i.Cg)([(0,p.MZ)({type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}},write:{ignoreOrigin:!0,isRequired:!0}}})],B.prototype,"id",void 0),(0,i.Cg)([(0,p.MZ)({type:[D.A],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:G.w,write:!0}})],B.prototype,"labelingInfo",void 0),(0,i.Cg)([(0,p.MZ)(_.kF)],B.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,p.MZ)(_.fV)],B.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,p.MZ)({type:["show","hide"],json:{write:!0}})],B.prototype,"listMode",void 0),(0,i.Cg)([(0,p.MZ)((()=>{const e=(0,S.o8)(_.hG);return e.json.origins.service.read=!1,e})())],B.prototype,"maxScale",void 0),(0,i.Cg)([(0,p.MZ)((()=>{const e=(0,S.o8)(_.hn);return e.json.origins.service.read=!1,e})())],B.prototype,"minScale",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],B.prototype,"objectIdField",null),(0,i.Cg)([(0,p.MZ)(_.ke)],B.prototype,"opacity",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],B.prototype,"orderBy",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],B.prototype,"outFields",null),(0,i.Cg)([(0,p.MZ)({clonable:!1})],B.prototype,"parent",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],B.prototype,"parsedUrl",null),(0,i.Cg)([(0,p.MZ)(_.M6)],B.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,p.MZ)({type:x.A,json:{name:"popupInfo",write:!0}})],B.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],B.prototype,"preferredTimeZone",null),(0,i.Cg)([(0,p.MZ)({types:V.Hg,json:{origins:{"web-scene":{types:V.XJ}},name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy(e,t){return{ignoreOrigin:this.originIdOf(t)<3}}}}})],B.prototype,"renderer",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],B.prototype,"returnM",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],B.prototype,"returnZ",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],B.prototype,"source",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],B.prototype,"timeExtent",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],B.prototype,"timeInfo",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],B.prototype,"timeOffset",null),(0,i.Cg)([(0,p.MZ)({type:String,nonNullable:!0,json:{write:{ignoreOrigin:!0,isRequired:!0}}})],B.prototype,"title",void 0),(0,i.Cg)([(0,p.MZ)({json:{read:!1}})],B.prototype,"type",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],B.prototype,"typeIdField",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],B.prototype,"types",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],B.prototype,"useViewTime",null),(0,i.Cg)([(0,p.MZ)({type:Boolean,json:{name:"visibility",write:!0}})],B.prototype,"visible",void 0),B=(0,i.Cg)([(0,p.$K)("esri.layers.catalog.CatalogFootprintLayer")],B);var k=r(72593),J=r(52136),U=r(18768),Q=r(69208),K=r(6455),Y=r(47685),H=r(87796),W=r(16131),X=r(32756),ee=r(8303),te=r(54310),re=r(82935),ie=r(15426),ne=r(33143),se=r(17036),oe=r(91908),ae=r(20655),le=r(80812),de=r(39131),ue=r(61956);const pe=(0,se.p)();function ce(e,t,r,i){const n=e.write({},i);(function(e){if(null==e)return!0;const t=Object.keys(e);return!t.length||1===t.length&&"id"===t[0]})(n)||(t[r]=n)}let ye=class extends((0,K.FJ)((0,H.j)((0,Y.w6)((0,v.dM)((0,X.fY)((0,re.e)((0,b.j)((0,te.J)((0,U.b)((0,W.q)((0,ee.A)((0,l.P)((0,Q.d)((0,J.p)(c.A))))))))))))))){constructor(e){super(e),this.legendEnabled=!0,this._portals=new Map,this._layerToFootprint=new WeakMap,this.drawOrderField="cd_draworder",this.dynamicGroupLayer=new Z({parent:this}),this.elevationInfo=null,this.fields=null,this.fieldsIndex=null,this.floorInfo=null,this.footprintLayer=new B({parent:this}),this.itemNameField="cd_itemname",this.itemSourceField="cd_itemsource",this.itemTypeField="cd_itemtype",this.layers=new s.A([this.dynamicGroupLayer,this.footprintLayer]),this.maxScaleField="cd_maxscale",this.minScaleField="cd_minscale",this.orderBy=null,this.outFields=null,this.supportedSourceTypes=new Set(["Catalog Layer"]),this.source=new k.default({layer:this,supportedSourceTypes:this.supportedSourceTypes}),this.type="catalog",this.typeIdField=null,this.types=null}load(e){const t=null!=e?e.signal:null,r=this.loadFromPortal({supportedTypes:["Feature Service"]},e).catch(d.QP).then(async()=>{const{url:e,source:r,portalItem:i}=this;if(!e)throw new o.A("catalog-layer:missing-url","Catalog layer must be created with a url");if(null==this.layerId){const r=await this._fetchFirstValidLayerId(t);if(null==r)throw new o.A("catalog-layer:missing-layerId","There is no Catalog Layer in the service",{service:e});this.layerId=r}await r.load({signal:t});const{sourceJSON:n}=r;n&&(this.sourceJSON=n,this.read(n,{origin:"service",portalItem:i,portal:i?.portal,url:this.parsedUrl}))}).then(()=>{const e=[this.itemNameField,this.itemSourceField,this.itemTypeField,this.minScaleField,this.maxScaleField],t=e.filter(e=>!this.fieldsIndex.has(e));if(t.length)throw new o.A("catalog-layer:missing-fields","There are missing fields to operate properly",{requiredFields:e,missingFields:t})}).then(()=>(0,ie.VA)(this,"load",e));return this.addResolvingPromise(r),Promise.resolve(this)}destroy(){this.footprintLayer.destroy(),this.dynamicGroupLayer.destroy();for(const e of this._portals.values())e.destroy();this._portals.clear()}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("capabilities"),(this._get("createQueryVersion")??0)+1}get editingEnabled(){return this.loaded&&null!=this.capabilities&&this.capabilities.operations.supportsEditing&&this.userHasEditingPrivileges}get effectiveEditingEnabled(){return!1}async applyEdits(e,t){return(0,ie.ct)(this,e,t)}async createLayerFromFootprint(e){const t=await this._createLayer(e);return this._configureLayer(t,e),this._layerToFootprint.set(t,e),t}createFootprintFromLayer(e){return this._layerToFootprint.get(e)?.clone()}createQuery(){const e=new ue.A,t=this.capabilities?.query;e.returnGeometry=!0,t&&(e.compactGeometryEnabled=t.supportsCompactGeometry,e.defaultSpatialReferenceEnabled=t.supportsDefaultSpatialReference),e.outFields=["*"];const{timeOffset:r,timeExtent:i}=this;return e.timeExtent=null!=r&&null!=i?i.offset(-r.value,r.unit):i||null,e.where=this.definitionExpression||"1=1",e}getFeatureType(e){return(0,ie.xd)(this.types,this.typeIdField,e)}getFieldDomain(e,t){const r=t?.feature,i=this.getFeatureType(r);if(i){const t=i.domains&&i.domains[e];if(t&&"inherited"!==t.type)return t}return this.getField(e)?.domain}async hasDataChanged(){return(0,ie.jp)(this)}async queryFeatures(e,t){const r=await this.load(),i=await r.source.queryFeatures(ue.A.from(e)??r.createQuery(),t),n=r.footprintLayer.graphicOrigin;if(i?.features)for(const e of i.features)e.layer=e.sourceLayer=r.footprintLayer,e.origin=n;return i}async queryObjectIds(e,t){return(await this.load()).source.queryObjectIds(ue.A.from(e)??this.createQuery(),t)}async queryFeatureCount(e,t){return(await this.load()).source.queryFeatureCount(ue.A.from(e)??this.createQuery(),t)}async queryExtent(e,t){return(await this.load()).source.queryExtent(ue.A.from(e)??this.createQuery(),t)}serviceSupportsSpatialReference(e){return this.loaded&&(0,oe.D)(this,e)}read(e,t){if(super.read(e,t),e){const{footprintLayer:r,dynamicGroupLayer:i}=e;r&&this.footprintLayer.read(r,t),i&&this.dynamicGroupLayer.read(i,t)}}async queryAttributeBins(e,t){const{source:i,capabilities:n}=await this.load();(0,ie.ZJ)(e,n,"CatalogLayer");const s=await r.e(4575).then(r.bind(r,14575)),o=await i.queryAttributeBins(s.default.from(e),t);if(o.features)for(const e of o.features)e.layer=e.sourceLayer=this.footprintLayer;return o}async _fetchFirstValidLayerId(e){const{data:t}=await(0,n.A)(this.url,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e});if(this.applyPreferredHost(t),Array.isArray(t?.layers))return t.layers.find(({type:e})=>this.supportedSourceTypes.has(e))?.id}async _createLayer(e){const t=e.getAttribute(this.itemSourceField);if(!t)throw new o.A("catalog-layer:item-source-missing",`The footprint is missing the "${this.itemSourceField}" attribute`);const i=JSON.parse(t);if(function(e){return"object"==typeof e&&null!=e&&"itemId"in e&&"portalUrl"in e}(i)){const{itemId:e,portalUrl:t}=i,r=(0,de.qG)(t),n=this.portalItem?.portal,s=ae.A.getDefault();let o,l=!0;n&&(0,u.ut)(t,n.url)?o=n:(0,u.ut)(t,s.url)?o=s:(o=(0,a.tE)(this._portals,r,()=>new ae.A({url:r})),l=!1);const d=await c.A.fromPortalItem(new le.default({id:e,portal:o}));return l||await he(d),d}if(function(e){return"object"==typeof e&&null!=e&&"url"in e}(i))return c.A.fromArcGISServerUrl({url:i.url});const{default:n}=await r.e(7546).then(r.bind(r,45165));return new n}_configureLayer(e,t){const r=t.getAttribute(this.itemNameField);r&&(e.title=r);const i=t.getAttribute(this.maxScaleField);null!=i&&"maxScale"in e&&(e.maxScale=i);const n=t.getAttribute(this.minScaleField);null!=n&&"minScale"in e&&(e.minScale=n)}};async function he(e){if("portalItem"in e&&e.portalItem){try{await e.load()}catch{}e.portalItem=null,"group"===e.type&&await Promise.allSettled([...e.layers.map(e=>he(e)),...e.tables.map(e=>he(e))])}}(0,i.Cg)([(0,p.MZ)(_.fV)],ye.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ye.prototype,"createQueryVersion",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ye.prototype,"drawOrderField",void 0),(0,i.Cg)([(0,p.MZ)({type:Z,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:ce}}})],ye.prototype,"dynamicGroupLayer",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ye.prototype,"editingEnabled",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ye.prototype,"effectiveEditingEnabled",null),(0,i.Cg)([(0,p.MZ)({json:{origins:{"web-scene":{name:"layerDefinition.elevationInfo",read:!1,write:!1}}}})],ye.prototype,"elevationInfo",void 0),(0,i.Cg)([(0,p.MZ)({...pe.fields,readOnly:!0,json:{origins:{service:{read:!0}},read:!1}})],ye.prototype,"fields",void 0),(0,i.Cg)([(0,p.MZ)(pe.fieldsIndex)],ye.prototype,"fieldsIndex",void 0),(0,i.Cg)([(0,p.MZ)({json:{origins:{"web-scene":{name:"layerDefinition.floorInfo",read:!1,write:!1}}}})],ye.prototype,"floorInfo",void 0),(0,i.Cg)([(0,p.MZ)({type:B,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:ce}}})],ye.prototype,"footprintLayer",void 0),(0,i.Cg)([(0,p.MZ)(_.id)],ye.prototype,"id",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ye.prototype,"itemNameField",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ye.prototype,"itemSourceField",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ye.prototype,"itemTypeField",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ye.prototype,"layers",void 0),(0,i.Cg)([(0,p.MZ)({type:["show","hide","hide-children"]})],ye.prototype,"listMode",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ye.prototype,"maxScaleField",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ye.prototype,"minScaleField",void 0),(0,i.Cg)([(0,p.MZ)({value:"CatalogLayer",type:["CatalogLayer"]})],ye.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,p.MZ)({json:{origins:{"web-scene":{name:"layerDefinition.orderBy",write:!0,read:!0}}}})],ye.prototype,"orderBy",void 0),(0,i.Cg)([(0,p.MZ)(pe.outFields)],ye.prototype,"outFields",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ye.prototype,"source",void 0),(0,i.Cg)([(0,p.MZ)({json:{read:!1}})],ye.prototype,"type",void 0),(0,i.Cg)([(0,p.MZ)({type:String})],ye.prototype,"typeIdField",void 0),(0,i.Cg)([(0,p.MZ)({type:[ne.A]})],ye.prototype,"types",void 0),ye=(0,i.Cg)([(0,p.$K)("esri.layers.CatalogLayer")],ye);const fe=ye},87718:(e,t,r)=>{r.d(t,{F:()=>x,Y:()=>F});var i,n=r(31635),s=r(91429),o=r(49186),a=r(25482),l=r(93637),d=r(76369),u=r(66552),p=r(4718),c=r(50498),y=r(61956),h=r(79677);const f=new u.J({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),g=new u.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let m=i=class extends a.o{constructor(e){super(e),this.where=null,this.geometry=null,this.spatialRelationship="intersects",this.distance=void 0,this.objectIds=null,this.units=null,this.timeExtent=null}createQuery(e={}){const{where:t,geometry:r,spatialRelationship:i,timeExtent:n,objectIds:s,units:o,distance:a}=this;return new y.A({geometry:(0,p.o8)(r),objectIds:(0,p.o8)(s),spatialRelationship:i,timeExtent:(0,p.o8)(n),where:t,units:o,distance:a,...e})}clone(){const{where:e,geometry:t,spatialRelationship:r,timeExtent:n,objectIds:s,units:o,distance:a}=this;return new i({geometry:(0,p.o8)(t),objectIds:(0,p.o8)(s),spatialRelationship:r,timeExtent:(0,p.o8)(n),where:e,units:o,distance:a})}};(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],m.prototype,"where",void 0),(0,n.Cg)([(0,s.MZ)({types:c.yR,json:{write:!0}})],m.prototype,"geometry",void 0),(0,n.Cg)([(0,s.MZ)({type:f.apiValues,json:{name:"spatialRel",read:{reader:f.read},write:{allowNull:!1,writer:f.write,overridePolicy(){return{enabled:null!=this.geometry}}}}})],m.prototype,"spatialRelationship",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,json:{write:{overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],m.prototype,"distance",void 0),(0,n.Cg)([(0,s.MZ)({type:[Number],json:{write:!0}})],m.prototype,"objectIds",void 0),(0,n.Cg)([(0,s.MZ)({type:g.apiValues,json:{read:g.read,write:{writer:g.write,overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],m.prototype,"units",void 0),(0,n.Cg)([(0,s.MZ)({type:h.A,json:{write:!0}})],m.prototype,"timeExtent",void 0),m=i=(0,n.Cg)([(0,s.$K)("esri.layers.support.FeatureFilter")],m);const w=m;var v;const b={read:{reader:d.LF},write:{writer:d.M9,overridePolicy(){return{allowNull:null!=this.excludedEffect,isRequired:null==this.excludedEffect}}}},_={read:{reader:d.LF},write:{writer:d.M9,overridePolicy(){return{allowNull:null!=this.includedEffect,isRequired:null==this.includedEffect}}}},C={name:"showExcludedLabels",default:!0};let M=v=class extends a.o{constructor(e){super(e),this.filter=null,this.includedEffect=null,this.excludedEffect=null,this.excludedLabelsVisible=!1}write(e,t){const r=super.write(e,t);if(t?.origin){if(r.filter){const e=Object.keys(r.filter);if(e.length>1||"where"!==e[0])return t.messages?.push(new o.A("web-document-write:unsupported-feature-effect","Invalid feature effect 'filter'. A filter can only contain a 'where' property",{layer:t.layer,effect:this})),null}if("showExcludedLabels"in r)return t.messages?.push(new o.A("web-document-write:unsupported-feature-effect","Invalid value for property 'excludedLabelsVisible' which should always be 'true'",{layer:t.layer,effect:this})),null}return r}clone(){return new v({filter:null!=this.filter?this.filter.clone():null,includedEffect:this.includedEffect,excludedEffect:this.excludedEffect,excludedLabelsVisible:this.excludedLabelsVisible})}};(0,n.Cg)([(0,s.MZ)({type:w,json:{write:{allowNull:!0,writer(e,t,r,i){const n=e?.write({},i);n&&0!==Object.keys(n).length?(0,l.sM)(r,n,t):(0,l.sM)(r,null,t)}}}})],M.prototype,"filter",void 0),(0,n.Cg)([(0,s.MZ)({json:{read:d.LF,write:{writer:d.M9,allowNull:!0},origins:{"web-map":b,"portal-item":b}}})],M.prototype,"includedEffect",void 0),(0,n.Cg)([(0,s.MZ)({json:{read:d.LF,write:{writer:d.M9,allowNull:!0},origins:{"web-map":_,"portal-item":_}}})],M.prototype,"excludedEffect",void 0),(0,n.Cg)([(0,s.MZ)({type:Boolean,json:{write:!0,name:"showExcludedLabels",origins:{"web-map":C,"portal-item":C}}})],M.prototype,"excludedLabelsVisible",void 0),M=v=(0,n.Cg)([(0,s.$K)("esri.layers.support.FeatureEffect")],M);const Z={write:{allowNull:!0}},F={type:M,json:{origins:{"web-map":Z,"portal-item":Z}}},x=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.featureEffect=null}};return(0,n.Cg)([(0,s.MZ)(F)],r.prototype,"featureEffect",void 0),r=(0,n.Cg)([(0,s.$K)("esri.layers.mixins.FeatureEffectLayer")],r),r}},91880:(e,t,r)=>{r.d(t,{A:()=>d});var i,n=r(31635),s=r(66552),o=r(25482),a=r(91429);const l=new s.J({asc:"ascending",desc:"descending"});let d=class extends o.o{static{i=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,n.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],d.prototype,"field",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],d.prototype,"valueExpression",void 0),(0,n.Cg)([(0,a.MZ)({type:l.apiValues,json:{type:l.jsonValues,read:l.read,write:l.write}})],d.prototype,"order",void 0),d=i=(0,n.Cg)([(0,a.$K)("esri.layers.support.OrderByInfo")],d)},96520:(e,t,r)=>{r.d(t,{u:()=>o});var i=r(86211),n=r(21325);function s(e,t,r){if(null==e.hasM||e.hasZ)for(const e of t)for(const t of e)t.length>2&&(t[2]*=r)}function o(e,t,r){if(!e&&!t||!r)return;const n=(0,i.G9)(r);a(e,r,n),a(t,r,n)}function a(e,t,r){if(e)for(const i of e)l(i.geometry,t,r)}function l(e,t,r){if(!e?.spatialReference||(0,n.aI)(e.spatialReference,t))return;const o=(0,i.G9)(e.spatialReference)/r;if(1!==o)if("x"in e)null!=e.z&&(e.z*=o);else if("rings"in e)s(e,e.rings,o);else if("paths"in e)s(e,e.paths,o);else if("points"in e&&(null==e.hasM||e.hasZ))for(const t of e.points)t.length>2&&(t[2]*=o)}}}]);