@arcgis/core 4.34.0-next.92 → 4.34.0-next.94

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 (348) hide show
  1. package/Color.js +1 -1
  2. package/Ground.js +1 -1
  3. package/WebScene.js +1 -1
  4. package/analysis/ElevationProfile/ElevationProfileDisplayUnits.d.ts +4 -0
  5. package/analysis/ElevationProfile/{ElevationProfileUnits.js → ElevationProfileDisplayUnits.js} +1 -1
  6. package/analysis/ElevationProfile/ElevationProfileUnits.d.ts +1 -1
  7. package/analysis/ElevationProfile/ElevationProfileViewOptions.js +1 -1
  8. package/analysis/ElevationProfileAnalysis.js +1 -1
  9. package/assets/esri/core/workers/RemoteClient.js +1 -1
  10. package/assets/esri/core/workers/chunks/004b13c1db79c9e668b1.js +1 -0
  11. package/assets/esri/core/workers/chunks/{700b5a536f97233bc4af.js → 03b455e9405a8b6fec68.js} +1 -1
  12. package/assets/esri/core/workers/chunks/{a244afea77127e54dd3a.js → 08b0fc6bfe9640ee2525.js} +1 -1
  13. package/assets/esri/core/workers/chunks/0a981061df08da19372c.js +1 -0
  14. package/assets/esri/core/workers/chunks/{db5a985ccc6b7d0ad855.js → 176f56de787bf486be9f.js} +1 -1
  15. package/assets/esri/core/workers/chunks/1fc7df018c8f802565a6.js +1 -0
  16. package/assets/esri/core/workers/chunks/20003728a679479b14dc.js +1 -0
  17. package/assets/esri/core/workers/chunks/20f4c6d8b310ecab97be.js +1 -0
  18. package/assets/esri/core/workers/chunks/25639559336109ff3df1.js +1 -0
  19. package/assets/esri/core/workers/chunks/26081b6486c623735657.js +1 -0
  20. package/assets/esri/core/workers/chunks/2698f656405876f4bd20.js +1 -0
  21. package/assets/esri/core/workers/chunks/{4660798b3b45dcb5cecb.js → 2b9c9a35a6e1f56920b5.js} +2 -2
  22. package/assets/esri/core/workers/chunks/352511dbc67166face40.js +1 -0
  23. package/assets/esri/core/workers/chunks/3acd79a6a0572926a799.js +1 -0
  24. package/assets/esri/core/workers/chunks/3d7923d25734d03a4d27.js +1 -0
  25. package/assets/esri/core/workers/chunks/48133effac2eacc2196e.js +1 -0
  26. package/assets/esri/core/workers/chunks/4dfcd03082be83600f3a.js +1 -0
  27. package/assets/esri/core/workers/chunks/503c81dda242e6077317.js +1 -0
  28. package/assets/esri/core/workers/chunks/{06aed0a5464965be8d52.js → 56b3bb68b61b77138186.js} +1 -1
  29. package/assets/esri/core/workers/chunks/5746c4861af83c1d57a8.js +1 -0
  30. package/assets/esri/core/workers/chunks/5aacd1c6b171c99b41f5.js +1 -0
  31. package/assets/esri/core/workers/chunks/6810ecdeccf4b7eae5e2.js +1 -0
  32. package/assets/esri/core/workers/chunks/6b208f5d423da64c8559.js +1 -0
  33. package/assets/esri/core/workers/chunks/{7a240ab31d9ff2d2c5af.js → 73db6c070b049fe05147.js} +1 -1
  34. package/assets/esri/core/workers/chunks/801451fb572bc5f1f270.js +1 -0
  35. package/assets/esri/core/workers/chunks/82e0d22619dc26920ca9.js +1 -0
  36. package/assets/esri/core/workers/chunks/8f426cb210a4250517d5.js +1 -0
  37. package/assets/esri/core/workers/chunks/94ddf029698991d853b9.js +1 -0
  38. package/assets/esri/core/workers/chunks/97eb2cfc1f036feea9a9.js +1 -0
  39. package/assets/esri/core/workers/chunks/98381404f2d99a1f9341.js +1 -0
  40. package/assets/esri/core/workers/chunks/9adecee0ed2f1df3b0d2.js +1 -0
  41. package/assets/esri/core/workers/chunks/a0fab8cd791c33d3895d.js +1 -0
  42. package/assets/esri/core/workers/chunks/{a85acb948cc7d22be592.js → a410dcf80d17a2383337.js} +1 -1
  43. package/assets/esri/core/workers/chunks/{d9d86cf0500fa29d1d43.js → a98b284b147258629947.js} +1 -1
  44. package/assets/esri/core/workers/chunks/b1ccbc2fef7f7e5e04f7.js +1 -0
  45. package/assets/esri/core/workers/chunks/b5c829e904bc9cb5347d.js +1 -0
  46. package/assets/esri/core/workers/chunks/bec9ddd38c9ab9f2561b.js +1 -0
  47. package/assets/esri/core/workers/chunks/bf9031749d10e7d457b6.js +1 -0
  48. package/assets/esri/core/workers/chunks/bf9d09493fd849ea69fd.js +1 -0
  49. package/assets/esri/core/workers/chunks/c4641c2c130c7b8bcdee.js +1 -0
  50. package/assets/esri/core/workers/chunks/{58e2652810143f509fe1.js → c473b15d4d52f0a63d20.js} +1 -1
  51. package/assets/esri/core/workers/chunks/c8e4fe0e3b109eb80e8e.js +1 -0
  52. package/assets/esri/core/workers/chunks/c9159ebf930af3f336f3.js +1 -0
  53. package/assets/esri/core/workers/chunks/cd0c222a36caa7f80860.js +1 -0
  54. package/assets/esri/core/workers/chunks/ce2fcaa21d6efcdf4da5.js +1 -0
  55. package/assets/esri/core/workers/chunks/d2df6e685d6cffc5f486.js +1 -0
  56. package/assets/esri/core/workers/chunks/{c27783ce7ea51a5e49c5.js → e153b61560a7a869db63.js} +1 -1
  57. package/assets/esri/core/workers/chunks/e2c293331515f3bd0355.js +1 -0
  58. package/assets/esri/core/workers/chunks/{100a0041ee42b0b2fa32.js → e5d974593043d5e2b502.js} +1 -1
  59. package/assets/esri/core/workers/chunks/ec7b156425f25d231078.js +1 -0
  60. package/assets/esri/core/workers/chunks/{1194c2432c31def87db1.js → f71b76c9506178124fa3.js} +1 -1
  61. package/assets/esri/core/workers/chunks/fb456e7425e09df17d8c.js +1 -0
  62. package/assets/esri/core/workers/chunks/{f6806780ca2aa591475a.js → fe1dcf9f81da4adbb1fe.js} +1 -1
  63. package/assets/esri/libs/parquet/pkg/bundle_bg.wasm +0 -0
  64. package/assets/esri/themes/base/_core.scss +0 -2
  65. package/assets/esri/themes/base/widgets/_OrientedImageryViewerNavigationUI.scss +10 -7
  66. package/assets/esri/themes/dark/main.css +1 -1
  67. package/assets/esri/themes/light/main.css +1 -1
  68. package/assets/esri/themes/light/view.css +1 -1
  69. package/chunks/CutFillComposition.glsl.js +15 -3
  70. package/chunks/CutFillMask.glsl.js +1 -1
  71. package/chunks/WaterSurface.glsl.js +0 -1
  72. package/chunks/bundle.js +1 -1
  73. package/chunks/languageUtils.js +1 -1
  74. package/colorUtils.js +1 -1
  75. package/config.js +1 -1
  76. package/core/CollectionFlattener.js +1 -1
  77. package/editing/sharedTemplates/executor/support/createPresetServiceEdit.js +1 -1
  78. package/geometry/operators/json/graphicBufferOperator.js +1 -1
  79. package/geometry/support/aaBoundingRect.js +1 -1
  80. package/geometry/support/geometryUtils.js +1 -1
  81. package/geometry/support/meshUtils/elevationSampler.js +1 -1
  82. package/geometry/support/meshUtils.js +1 -1
  83. package/geometry/support/triangle.js +1 -1
  84. package/interfaces.d.ts +262 -339
  85. package/kernel.js +1 -1
  86. package/layers/BaseElevationLayer.js +1 -1
  87. package/layers/BaseTileLayer.js +1 -1
  88. package/layers/ElevationLayer.js +1 -1
  89. package/layers/FeatureLayer.js +1 -1
  90. package/layers/GaussianSplatLayer.js +1 -1
  91. package/layers/ImageryTileLayer.js +1 -1
  92. package/layers/ParquetLayer.js +1 -1
  93. package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
  94. package/layers/graphics/dehydratedFeatureComparison.js +1 -1
  95. package/layers/graphics/sources/ParquetSource.js +1 -1
  96. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  97. package/layers/orientedImagery/transformations/imageToWorld.js +1 -1
  98. package/layers/orientedImagery/transformations/updateElevationUtils.js +1 -1
  99. package/layers/support/ElevationQuery.js +1 -1
  100. package/layers/support/ElevationQueryContext.js +5 -0
  101. package/layers/support/ElevationSampler.js +1 -1
  102. package/layers/support/ElevationTile.js +1 -1
  103. package/layers/support/GeometryDescriptor.js +1 -1
  104. package/layers/support/ParquetEncodingLocation.js +1 -1
  105. package/layers/support/ParquetEncodingWkb.js +1 -1
  106. package/layers/support/RasterBandInfo.js +1 -1
  107. package/layers/support/TileElevationSampler.js +5 -0
  108. package/layers/support/TileInfo.js +1 -1
  109. package/layers/support/TileKey.js +1 -1
  110. package/layers/support/TilemapCache.js +1 -1
  111. package/layers/support/layerUtils.js +1 -1
  112. package/layers/support/parquetEncodingUtils.js +5 -0
  113. package/layers/support/parquetUtils.js +1 -1
  114. package/layers/support/rasterDatasets/InMemoryRaster.js +1 -1
  115. package/networks/UtilityNetwork.js +1 -1
  116. package/networks/support/NetworkSystemLayers.js +1 -1
  117. package/networks/support/typeUtils.js +1 -1
  118. package/package.json +3 -2
  119. package/popup/FieldInfo.js +1 -1
  120. package/popup/content/AttachmentsContent.js +1 -1
  121. package/portal/schemas/definitions.js +1 -1
  122. package/rest/knowledgeGraphService.js +1 -1
  123. package/rest/networks/support/Association.js +1 -1
  124. package/rest/print.js +1 -1
  125. package/support/revision.js +1 -1
  126. package/symbols/cim/CIMSymbolHelper.js +1 -1
  127. package/symbols/cim/cimAnalyzer.js +1 -1
  128. package/symbols/cim/effects/EffectOffset.js +1 -1
  129. package/views/2d/analysis/ElevationProfile/ElevationProfileInputVisualization2D.js +1 -1
  130. package/views/2d/analysis/ElevationProfile/ElevationProfileLineVisualization2D.js +1 -1
  131. package/views/2d/analysis/ElevationProfileAnalysisView2D.js +1 -1
  132. package/views/2d/engine/Stage.js +1 -1
  133. package/views/2d/engine/flow/BrushFlow.js +1 -1
  134. package/views/2d/engine/vectorTiles/VectorTileRendererHelper3D.js +1 -1
  135. package/views/2d/engine/webgl/Overlay.js +1 -1
  136. package/views/2d/engine/webgl/OverlayMultipoint.js +1 -1
  137. package/views/2d/engine/webgl/SpriteMosaic.js +1 -1
  138. package/views/2d/engine/webgl/TextureManager.js +1 -1
  139. package/views/2d/engine/webgl/animatedFormats/AnimatableTextureResource.js +1 -1
  140. package/views/2d/engine/webgl/animatedFormats/utils.js +1 -1
  141. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedMarkerMeshWriter.js +1 -1
  142. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedTechnique.js +1 -1
  143. package/views/2d/engine/webgl/shaderGraph/techniques/fill/ComplexFillTechnique.js +1 -1
  144. package/views/2d/engine/webgl/shaderGraph/techniques/fill/ComplexOutlineFillTechnique.js +1 -1
  145. package/views/2d/engine/webgl/shaderGraph/techniques/fill/GradientFillTechnique.js +1 -1
  146. package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternFillTechnique.js +1 -1
  147. package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternOutlineFillTechnique.js +1 -1
  148. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelTechnique.js +1 -1
  149. package/views/2d/engine/webgl/shaderGraph/techniques/line/GradientStrokeTechnique.js +1 -1
  150. package/views/2d/engine/webgl/shaderGraph/techniques/line/TexturedLineTechnique.js +1 -1
  151. package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerTechnique.js +1 -1
  152. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextTechnique.js +1 -1
  153. package/views/2d/engine/webgl/shaderGraph/utils.js +1 -1
  154. package/views/2d/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiles2D.js +1 -1
  155. package/views/2d/layers/VideoLayerView2D.js +1 -1
  156. package/views/2d/layers/imagery/BaseImageryTileSubView2D.js +1 -1
  157. package/views/2d/layers/imagery/ImageryTileView2D.js +1 -1
  158. package/views/2d/navigation/actions/Pan.js +1 -1
  159. package/views/3d/analysis/ElevationProfile/ElevationProfileInputVisualization3D.js +1 -1
  160. package/views/3d/analysis/ElevationProfile/ElevationProfileLineSceneComputation.js +1 -1
  161. package/views/3d/analysis/ElevationProfile/ElevationProfileLineVisualization3D.js +1 -1
  162. package/views/3d/analysis/ElevationProfile/ElevationProfileVisualization3D.js +1 -1
  163. package/views/3d/analysis/ElevationProfileAnalysisView3D.js +1 -1
  164. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillVisualization.js +1 -1
  165. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementTool.js +1 -1
  166. package/views/3d/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiles3D.js +1 -1
  167. package/views/3d/layers/FlowSubView3D.js +1 -1
  168. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  169. package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
  170. package/views/3d/support/GaussianSplatSortWorker.js +1 -1
  171. package/views/3d/support/flow/FlowSubViewTiles3D.js +1 -1
  172. package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
  173. package/views/3d/support/hitTest.js +1 -1
  174. package/views/3d/support/pointsOfInterest/StableSurfaceCenter.js +1 -1
  175. package/views/3d/support/popupHitTest.js +1 -1
  176. package/views/3d/terrain/ExtentHelper.js +1 -1
  177. package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechnique.js +1 -1
  178. package/views/3d/webgl-engine/effects/blit/Blit.js +1 -1
  179. package/views/3d/webgl-engine/effects/transparency/OITBlendTechnique.js +1 -1
  180. package/views/3d/webgl-engine/lib/CompositingHelper.js +1 -1
  181. package/views/3d/webgl-engine/lib/CutFillColor.js +1 -1
  182. package/views/3d/webgl-engine/shaders/CutFillComposition.glsl.js +1 -1
  183. package/views/3d/webgl-engine/shaders/GaussianSplatDepthCompositionTechnique.js +1 -1
  184. package/views/PopupView.js +1 -1
  185. package/views/SceneView.js +1 -1
  186. package/views/View.js +1 -1
  187. package/views/View2D.js +1 -1
  188. package/views/Viewport2DMixin.js +1 -1
  189. package/views/analysis/ElevationProfile/ElevationProfileChart.js +1 -1
  190. package/views/analysis/ElevationProfile/ElevationProfileController.js +1 -1
  191. package/views/analysis/ElevationProfile/ElevationProfileHoveredPointsVisualization.js +1 -1
  192. package/views/analysis/ElevationProfile/ElevationProfileLineComputation.js +1 -1
  193. package/views/analysis/ElevationProfile/ElevationProfileLineInputComputation.js +1 -1
  194. package/views/analysis/ElevationProfile/ElevationProfileLineQueryComputation.js +1 -1
  195. package/views/analysis/ElevationProfile/ElevationProfileResult.js +1 -1
  196. package/views/analysis/ElevationProfile/ElevationProfileTool.js +1 -1
  197. package/views/analysis/ElevationProfile/elevationProfileGeometryUtils.js +1 -1
  198. package/views/analysis/ElevationProfile/elevationProfileInputVisualizationUtils.js +1 -1
  199. package/views/analysis/ExclusiveOperationManager.js +5 -0
  200. package/views/interactive/snapping/LineSnapper.js +1 -1
  201. package/views/interactive/snapping/ParallelLineSnapper.js +1 -1
  202. package/views/interactive/snapping/RightAngleSnapper.js +1 -1
  203. package/views/interactive/snapping/RightAngleTriangleSnapper.js +1 -1
  204. package/views/interactive/snapping/featureSources/FeatureServiceSnappingSource.js +1 -1
  205. package/views/interactive/snapping/featureSources/WorkerTileTreeDebugger.js +1 -1
  206. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorker.js +1 -1
  207. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorkerHandle.js +1 -1
  208. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTileStore.js +1 -1
  209. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiledFetcher.js +1 -1
  210. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTilesSimple.js +1 -1
  211. package/views/interactive/snapping/featureSources/featureServiceSource/PendingFeatureTile.js +1 -1
  212. package/views/interactive/snapping/featureSources/queryEngineUtils.js +1 -1
  213. package/views/interactive/snapping/snappingUtils.js +1 -1
  214. package/views/navigation/Navigation.js +1 -1
  215. package/views/popupAdapter.js +5 -0
  216. package/views/support/GroundViewElevationSampler.js +1 -1
  217. package/views/video/VideoOperationalDataView.js +1 -1
  218. package/views/webgl/ContextState.js +1 -1
  219. package/views/webgl/RenderingContext.js +1 -1
  220. package/views/webgl/enums.js +1 -1
  221. package/widgets/Attachments/AttachmentsViewModel.js +1 -1
  222. package/widgets/Attachments.js +1 -1
  223. package/widgets/BasemapGallery/support/basemapCompatibilityUtils.js +1 -1
  224. package/widgets/ElevationProfile/support/chartUtils.js +1 -1
  225. package/widgets/Feature/FeatureExpression.js +1 -1
  226. package/widgets/Feature/FeatureMedia/chartCommon.js +1 -1
  227. package/widgets/Feature/FeatureMedia/pieChart.js +1 -1
  228. package/widgets/Feature/FeatureMedia/xyChart.js +1 -1
  229. package/widgets/Feature/FeatureMedia.js +1 -1
  230. package/widgets/Feature/FeatureViewModel.js +1 -1
  231. package/widgets/Feature.js +1 -1
  232. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  233. package/widgets/FeatureTable/support/ColumnTemplateBase.js +1 -1
  234. package/widgets/FeatureTable/support/TableTemplate.js +1 -1
  235. package/widgets/FeatureTable.js +1 -1
  236. package/widgets/Features/FeaturesViewModel.js +1 -1
  237. package/widgets/Legend/LegendViewModel.js +1 -1
  238. package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
  239. package/widgets/Legend.js +1 -1
  240. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  241. package/widgets/OrientedImageryViewer/components/ImageViewer.js +1 -1
  242. package/widgets/OrientedImageryViewer/components/NavigationUI360.js +1 -1
  243. package/widgets/OrientedImageryViewer/components/NavigationUIPanoramicViewModel.js +1 -1
  244. package/widgets/OrientedImageryViewer/services/DepthImageService.js +5 -0
  245. package/widgets/PanoramicViewer.js +1 -1
  246. package/widgets/Search/SearchResultRenderer.js +1 -1
  247. package/widgets/Search/SearchViewModel.js +1 -1
  248. package/widgets/Search.js +1 -1
  249. package/widgets/Sketch/SketchViewModel.js +1 -1
  250. package/widgets/support/chartUtilsAm5.js +1 -1
  251. package/assets/esri/core/workers/chunks/08374e5805fcedc1cb57.js +0 -1
  252. package/assets/esri/core/workers/chunks/0b24a6c06d1becbb6815.js +0 -1
  253. package/assets/esri/core/workers/chunks/14114be3afd6d292f89c.js +0 -1
  254. package/assets/esri/core/workers/chunks/19f1bfe815896d4983af.js +0 -1
  255. package/assets/esri/core/workers/chunks/22c3a21bc9f32c429c48.js +0 -1
  256. package/assets/esri/core/workers/chunks/2605062e44f2d4e73f14.js +0 -1
  257. package/assets/esri/core/workers/chunks/282c4f3484c605ce7d5e.js +0 -1
  258. package/assets/esri/core/workers/chunks/2e1cc11462846febb3b2.js +0 -1
  259. package/assets/esri/core/workers/chunks/37b5007660535f1c91c6.js +0 -1
  260. package/assets/esri/core/workers/chunks/393274af1804e5b6046a.js +0 -1
  261. package/assets/esri/core/workers/chunks/3b2ef975831eb75b40fb.js +0 -1
  262. package/assets/esri/core/workers/chunks/3ff3e1507220d3869c76.js +0 -1
  263. package/assets/esri/core/workers/chunks/4133ab8720e7e4afa9a6.js +0 -1
  264. package/assets/esri/core/workers/chunks/4d807bfe75108438db83.js +0 -1
  265. package/assets/esri/core/workers/chunks/5ad1985a9e66fb2232ae.js +0 -1
  266. package/assets/esri/core/workers/chunks/5b7a2ee44883b1fb2a5f.js +0 -1
  267. package/assets/esri/core/workers/chunks/614a00a3179f8fe23f45.js +0 -1
  268. package/assets/esri/core/workers/chunks/6aa349e1adf844df4b5b.js +0 -1
  269. package/assets/esri/core/workers/chunks/83065bef261314f9b2c5.js +0 -1
  270. package/assets/esri/core/workers/chunks/8bdbd94a59269e216fba.js +0 -1
  271. package/assets/esri/core/workers/chunks/8cae725e631d922853c8.js +0 -1
  272. package/assets/esri/core/workers/chunks/8f4cfef97716c3502b0f.js +0 -1
  273. package/assets/esri/core/workers/chunks/8ff2daef892881ff2019.js +0 -1
  274. package/assets/esri/core/workers/chunks/9bb6984f24cd5461a754.js +0 -1
  275. package/assets/esri/core/workers/chunks/9f2a3f37fe9b19ef1209.js +0 -1
  276. package/assets/esri/core/workers/chunks/a1196637268b89281780.js +0 -1
  277. package/assets/esri/core/workers/chunks/a6a2d4602dfeb62e0ecc.js +0 -1
  278. package/assets/esri/core/workers/chunks/b240298b8b643a323d34.js +0 -1
  279. package/assets/esri/core/workers/chunks/b47f26d6aa9a2848a677.js +0 -1
  280. package/assets/esri/core/workers/chunks/b661ea374fe38c8e29ca.js +0 -1
  281. package/assets/esri/core/workers/chunks/b8997ae5893afa0298d1.js +0 -1
  282. package/assets/esri/core/workers/chunks/baa48614d9567d5f240d.js +0 -1
  283. package/assets/esri/core/workers/chunks/c20862fe15295a294bbd.js +0 -1
  284. package/assets/esri/core/workers/chunks/c3020747f9001ca6a6e7.js +0 -1
  285. package/assets/esri/core/workers/chunks/c7c76a8a1c47eb62bef1.js +0 -1
  286. package/assets/esri/core/workers/chunks/c95e6bef8c97cf647869.js +0 -1
  287. package/assets/esri/core/workers/chunks/d71836cf70b9604832f1.js +0 -1
  288. package/assets/esri/core/workers/chunks/e99fc64b67bb0c71dc34.js +0 -1
  289. package/assets/esri/core/workers/chunks/eea9d49d55c2d1355497.js +0 -1
  290. package/assets/esri/core/workers/chunks/fb6ebb780bb59e252887.js +0 -1
  291. package/assets/esri/core/workers/chunks/ff6d189ba78980d40bb5.js +0 -1
  292. package/assets/esri/themes/base/widgets/_ButtonMenu.scss +0 -87
  293. package/chunks/Button.js +0 -5
  294. package/chunks/ColorSet.js +0 -5
  295. package/chunks/DefaultTheme.js +0 -5
  296. package/chunks/LineSeries.js +0 -5
  297. package/chunks/ResponsiveTheme.js +0 -5
  298. package/chunks/Theme.js +0 -5
  299. package/chunks/Tick.js +0 -5
  300. package/chunks/Tooltip.js +0 -5
  301. package/chunks/ar.js +0 -5
  302. package/chunks/bg_BG.js +0 -5
  303. package/chunks/bs_BA.js +0 -5
  304. package/chunks/ca_ES.js +0 -5
  305. package/chunks/chartUtilsAm5.js +0 -5
  306. package/chunks/cs_CZ.js +0 -5
  307. package/chunks/da_DK.js +0 -5
  308. package/chunks/de_CH.js +0 -5
  309. package/chunks/de_DE.js +0 -5
  310. package/chunks/el_GR.js +0 -5
  311. package/chunks/en_CA.js +0 -5
  312. package/chunks/en_US.js +0 -5
  313. package/chunks/es_ES.js +0 -5
  314. package/chunks/et_EE.js +0 -5
  315. package/chunks/fi_FI.js +0 -5
  316. package/chunks/fr_FR.js +0 -5
  317. package/chunks/he_IL.js +0 -5
  318. package/chunks/hr_HR.js +0 -5
  319. package/chunks/hu_HU.js +0 -5
  320. package/chunks/id_ID.js +0 -5
  321. package/chunks/it_IT.js +0 -5
  322. package/chunks/ja_JP.js +0 -5
  323. package/chunks/ko_KR.js +0 -5
  324. package/chunks/lt_LT.js +0 -5
  325. package/chunks/lv_LV.js +0 -5
  326. package/chunks/nb_NO.js +0 -5
  327. package/chunks/nl_NL.js +0 -5
  328. package/chunks/pl_PL.js +0 -5
  329. package/chunks/pt_BR.js +0 -5
  330. package/chunks/pt_PT.js +0 -5
  331. package/chunks/ro_RO.js +0 -5
  332. package/chunks/ru_RU.js +0 -5
  333. package/chunks/sk_SK.js +0 -5
  334. package/chunks/sl_SL.js +0 -5
  335. package/chunks/sr_RS.js +0 -5
  336. package/chunks/sv_SE.js +0 -5
  337. package/chunks/th_TH.js +0 -5
  338. package/chunks/tr_TR.js +0 -5
  339. package/chunks/uk_UA.js +0 -5
  340. package/chunks/vi_VN.js +0 -5
  341. package/chunks/zh_Hans.js +0 -5
  342. package/chunks/zh_Hant.js +0 -5
  343. package/widgets/FeatureTable/Grid/support/ButtonMenu.d.ts +0 -4
  344. package/widgets/FeatureTable/Grid/support/ButtonMenu.js +0 -5
  345. package/widgets/FeatureTable/Grid/support/ButtonMenuItem.d.ts +0 -4
  346. package/widgets/FeatureTable/Grid/support/ButtonMenuItem.js +0 -5
  347. package/widgets/FeatureTable/Grid/support/ButtonMenuViewModel.d.ts +0 -4
  348. package/widgets/FeatureTable/Grid/support/ButtonMenuViewModel.js +0 -5
@@ -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(83027),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)?v.A.toUnitRGBA(t):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)}},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,{CQ:()=>_,Fq:()=>p,H0:()=>s,SB:()=>l,WR:()=>r,XN:()=>a,iE:()=>o,ld:()=>u,nI:()=>f,pe:()=>n,r6:()=>c,vt:()=>h,yI:()=>y});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=36064,y=36065,p=36066,f=33306,_={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:()=>l});var r=i(40876),n=i(34727),s=i(56507);function a(t){return(0,n.qE)((0,s.Vr)(t),0,255)}function o(t,e){const i=t.toString(16).padStart(2,"0");return e?i.slice(0,1):i}class l{static blendColors(t,e,i,r=new l){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?l.fromArray(i,e):null}static fromHex(t,e=new l){const i=(0,r.oW)(t);return i?l.fromArray(i,e):null}static fromArray(t,e=new l){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?l.fromArray(i,e):null}static fromJSON(t){return null!=t?new l([t[0],t[1],t[2],(t[3]??255)/255]):void 0}static toUnitRGB(t){return null!=t?[t.r/255,t.g/255,t.b/255]:null}static toUnitRGBA(t){return null!=t?[t.r/255,t.g/255,t.b/255,null!=t.a?t.a:1]:null}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){return"string"==typeof t?l.fromString(t,this):Array.isArray(t)?l.fromArray(t,this):(this._set(t.r??0,t.g??0,t.b??0,t.a??1),t instanceof l||this._sanitize()),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=`#${o(this.r,r)}${o(this.g,r)}${o(this.b,r)}${n?o(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=a(this.r),i=a(this.g),r=a(this.b);return 0===t||1!==this.a?[e,i,r,a(255*this.a)]:[e,i,r]}clone(){return new l(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}}l.prototype.declaredClass="esri.Color"},69397:(t,e,i)=>{i.d(e,{$B:()=>n,Qf:()=>u,Qh:()=>o,RS:()=>s,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},74038:(t,e,i)=>{i.d(e,{_:()=>r});class r{constructor(t,e,i,r,n,s=!1,a=0){this.name=t,this.count=e,this.type=i,this.offset=r,this.stride=n,this.normalized=s,this.divisor=a}}},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}}},83027:(t,e,i)=>{i.d(e,{ih:()=>n,vA:()=>r});const r=4096,n=8},85079:(t,e,i)=>{function r(t){let e=0;return new Map(t.map(({name:t,count:i})=>{const r=[t,e];return 16===i?e+=4:9===i?e+=3:++e,r}))}function n(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}i.d(e,{Xk:()=>r,_u:()=>n})},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(83027),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)?v.A.toUnitRGBA(t):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)}},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:()=>l});var r=i(40876),n=i(34727),s=i(56507);function a(t){return(0,n.qE)((0,s.Vr)(t),0,255)}function o(t,e){const i=t.toString(16).padStart(2,"0");return e?i.slice(0,1):i}class l{static blendColors(t,e,i,r=new l){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?l.fromArray(i,e):null}static fromHex(t,e=new l){const i=(0,r.oW)(t);return i?l.fromArray(i,e):null}static fromArray(t,e=new l){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?l.fromArray(i,e):null}static fromJSON(t){return null!=t?new l([t[0],t[1],t[2],(t[3]??255)/255]):void 0}static toUnitRGB(t){return null!=t?[t.r/255,t.g/255,t.b/255]:null}static toUnitRGBA(t,e){return null==t?null:(e??=[0,0,0,0],e[0]=t.r/255,e[1]=t.g/255,e[2]=t.b/255,e[3]=null!=t.a?t.a:1,e)}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){return"string"==typeof t?l.fromString(t,this):Array.isArray(t)?l.fromArray(t,this):(this._set(t.r??0,t.g??0,t.b??0,t.a??1),t instanceof l||this._sanitize()),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=`#${o(this.r,r)}${o(this.g,r)}${o(this.b,r)}${n?o(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=a(this.r),i=a(this.g),r=a(this.b);return 0===t||1!==this.a?[e,i,r,a(255*this.a)]:[e,i,r]}clone(){return new l(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}}l.prototype.declaredClass="esri.Color"},69397:(t,e,i)=>{i.d(e,{$B:()=>n,Qf:()=>u,Qh:()=>o,RS:()=>s,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},74038:(t,e,i)=>{i.d(e,{_:()=>r});class r{constructor(t,e,i,r,n,s=!1,a=0){this.name=t,this.count=e,this.type=i,this.offset=r,this.stride=n,this.normalized=s,this.divisor=a}}},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}}},83027:(t,e,i)=>{i.d(e,{ih:()=>n,vA:()=>r});const r=4096,n=8},85079:(t,e,i)=>{function r(t){let e=0;return new Map(t.map(({name:t,count:i})=>{const r=[t,e];return 16===i?e+=4:9===i?e+=3:++e,r}))}function n(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}i.d(e,{Xk:()=>r,_u:()=>n})},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 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7136,8535],{17136:(e,t,r)=>{r.d(t,{Y_:()=>S,O7:()=>R,el:()=>A});var n=r(92602),o=r(69052),s=r(49186),i=r(53966),a=r(39829),u=r(82799),l=r(16930),c=r(80754),f=r(21325),d=r(28735),m=r(78888),p=r(65864),h=r(2272),g=r(84952),y=r(92300);const x=()=>i.A.getLogger("esri.geometry.support.normalizeUtils");function w(e){return"polygon"===e[0].type}function b(e){return"polyline"===e[0].type}function v(e,t,r){if(t){const t=function(e,t){if(!(e instanceof u.A||e instanceof a.A)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw x().error(e),new s.A("internal:geometry",e)}const r=(0,c.r8)(e),n=[];for(const e of r){const r=[];n.push(r),r.push([e[0][0],e[0][1]]);for(let n=0;n<e.length-1;n++){const o=e[n][0],s=e[n][1],i=e[n+1][0],a=e[n+1][1],u=Math.sqrt((i-o)*(i-o)+(a-s)*(a-s)),l=(a-s)/u,c=(i-o)/u,f=u/t;if(f>1){for(let e=1;e<=f-1;e++){const n=e*t,i=c*n+o,a=l*n+s;r.push([i,a])}const e=(u+Math.floor(f-1)*t)/2,n=c*e+o,i=l*e+s;r.push([n,i])}r.push([i,a])}}return function(e){return"polygon"===e.type}(e)?new a.A({rings:n,spatialReference:e.spatialReference}):new u.A({paths:n,spatialReference:e.spatialReference})}(e,1e6);e=(0,d.ci)(t,!0)}return r&&(e=(0,c.kS)(e,r)),e}function T(e,t,r){if(Array.isArray(e)){const n=e[0];if(n>t){const r=(0,c.kd)(n,t);e[0]=n+r*(-2*t)}else if(n<r){const t=(0,c.kd)(n,r);e[0]=n+t*(-2*r)}}else{const n=e.x;if(n>t){const r=(0,c.kd)(n,t);e=e.clone().offset(r*(-2*t),0)}else if(n<r){const t=(0,c.kd)(n,r);e=e.clone().offset(t*(-2*r),0)}}return e}function M(e,t){let r=-1;for(let n=0;n<t.cutIndexes.length;n++){const o=t.cutIndexes[n],s=t.geometries[n],i=(0,c.r8)(s);for(let e=0;e<i.length;e++){const t=i[e];t.some(r=>{if(r[0]<180)return!0;{let r=0;for(let e=0;e<t.length;e++){const n=t[e][0];r=n>r?n:r}r=Number(r.toFixed(9));const n=-360*(0,c.kd)(r,180);for(let r=0;r<t.length;r++){const t=s.getPoint(e,r);s.setPoint(e,r,t.clone().offset(n,0))}return!0}})}if(o===r){if(w(e))for(const t of(0,c.r8)(s))e[o]=e[o].addRing(t);else if(b(e))for(const t of(0,c.r8)(s))e[o]=e[o].addPath(t)}else r=o,e[o]=s}return e}async function A(e,t,r){if(!Array.isArray(e))return A([e],t);t&&"string"!=typeof t&&x().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const o="string"==typeof t?t:t?.url??n.A.geometryServiceUrl;let s,i,l,w,b,R,B,S,_=0;const I=[],P=[];for(const t of e)if(null!=t)if(s||(s=t.spatialReference,i=(0,f.Vp)(s),l=s.isWebMercator,R=l?102100:4326,w=c.j7[R].maxX,b=c.j7[R].minX,B=c.j7[R].plus180Line,S=c.j7[R].minus180Line),i)if("mesh"===t.type)P.push(t);else if("point"===t.type)P.push(T(t.clone(),w,b));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map(e=>T(e,w,b)),P.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,i);P.push(e.rings?new a.A(e):e)}else if(t.extent){const e=t.extent,r=(0,c.kd)(e.xmin,b)*(2*w);let n=0===r?t.clone():(0,c.kS)(t.clone(),r);e.offset(r,0);let{xmin:o,xmax:s}=e;o=Number(o.toFixed(9)),s=Number(s.toFixed(9)),e.intersects(B)&&s!==w?(_=s>_?s:_,n=v(n,l),I.push(n),P.push("cut")):e.intersects(S)&&o!==b?(_=s*(2*w)>_?s*(2*w):_,n=v(n,l,360),I.push(n),P.push("cut")):P.push(n)}else P.push(t.clone());else P.push(t);else P.push(t);let E=(0,c.kd)(_,w),O=-90;const U=E,L=new u.A;for(;E>0;){const e=360*E-180;L.addPath([[e,O],[e,-1*O]]),O*=-1,E--}if(I.length>0&&U>0){const t=M(I,await async function(e,t,r,n){const o=(0,h.Dl)(e),s=t[0].spatialReference,i={...n,responseType:"json",query:{...o.query,f:"json",sr:(0,f.YX)(s),target:JSON.stringify({geometryType:(0,p.$B)(t[0]),geometries:t}),cutter:JSON.stringify(r)}},a=await(0,m.A)(o.path+"/cut",i),{cutIndexes:u,geometries:l=[]}=a.data;return{cutIndexes:u,geometries:l.map(e=>{const t=(0,p.rS)(e);return t.spatialReference=s,t})}}(o,I,L,r)),n=[],s=[];for(let r=0;r<P.length;r++){const o=P[r];if("cut"!==o)s.push(o);else{const o=t.shift(),i=e[r];null!=i&&"polygon"===i.type&&i.rings&&i.rings.length>1&&o.rings.length>=i.rings.length?(n.push(o),s.push("simplify")):s.push(l?(0,d.Gh)(o):o)}}if(!n.length)return s;const i=await async function(e,t,r){const n="string"==typeof e?(0,g.An)(e):e,o=t[0].spatialReference,s=(0,p.$B)(t[0]),i={...r,query:{...n.query,f:"json",sr:(0,f.YX)(o),geometries:JSON.stringify((0,y.X)(t))}},{data:a}=await(0,m.A)(n.path+"/simplify",i);return(0,y.V)(a.geometries,s,o)}(o,n,r),a=[];for(let e=0;e<s.length;e++){const t=s[e];"simplify"!==t?a.push(t):a.push(l?(0,d.Gh)(i.shift()):i.shift())}return a}const k=[];for(let e=0;e<P.length;e++){const t=P[e];if("cut"!==t)k.push(t);else{const e=I.shift();k.push(!0===l?(0,d.Gh)(e):e)}}return k}function R(e,t,r){const n=(0,f.Vp)(r);if(null==n)return e;const[o,s]=n.valid,i=2*s;let a=0,u=0;t>s?a=Math.ceil(Math.abs(t-s)/i):t<o&&(a=-Math.ceil(Math.abs(t-o)/i)),e>s?u=Math.ceil(Math.abs(e-s)/i):e<o&&(u=-Math.ceil(Math.abs(e-o)/i));let l=e+(a-u)*i;const c=l-t;return c>s?l-=i:c<o&&(l+=i),l}function B(e){const t=(0,f.Vp)(e);if(null==t)return null;const[r,n]=t.valid;return new o.hr(r,n)}const S=B(l.A.WGS84);B(l.A.WebMercator)},21015:(e,t,r)=>{r.d(t,{R:()=>u});var n=r(78888),o=r(60999),s=r(49186),i=r(74887),a=r(84952);class u{constructor(e){this._streamDataRequester=e}async loadJSON(e,t){return this._load(0,e,t)}async loadBinary(e,t){return(0,a.DB)(e)?((0,i.Te)(t),(0,a.lJ)(e)):this._load(1,e,t)}async loadImage(e,t){return this._load(2,e,t)}async _load(e,t,r){if(null==this._streamDataRequester)return(await(0,n.A)(t,{responseType:l[e]})).data;const a=await(0,o.Ke)(this._streamDataRequester.request(t,e,r));if(!0===a.ok)return a.value;throw(0,i.QP)(a.error),new s.A("glt-loader-request-error",`Request for resource failed: ${a.error}`)}}const l={2:"image",1:"array-buffer",0:"json",3:void 0}},43609:(e,t,r)=>{r.d(t,{a:()=>s,f:()=>i,n:()=>o});var n=r(34275);function o(e,t){s(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function s(e,t,r=2,o=r){const s=t.length/2;let i=0,a=0;if(!(0,n.iu)(t)||(0,n.dk)(t)){for(let n=0;n<s;++n)e[i]=t[a],e[i+1]=t[a+1],i+=r,a+=o;return}const u=(0,n.a3)(t);if((0,n.JI)(t))for(let n=0;n<s;++n)e[i]=Math.max(t[a]/u,-1),e[i+1]=Math.max(t[a+1]/u,-1),i+=r,a+=o;else for(let n=0;n<s;++n)e[i]=t[a]/u,e[i+1]=t[a+1]/u,i+=r,a+=o}function i(e,t,r,n){const o=e.typedBuffer,s=e.typedBufferStride,i=n?.count??e.count;let a=(n?.dstIndex??0)*s;for(let e=0;e<i;++e)o[a]=t,o[a+1]=r,a+=s}Object.freeze(Object.defineProperty({__proto__:null,fill:i,normalizeIntegerBuffer:s,normalizeIntegerBufferView:o},Symbol.toStringTag,{value:"Module"}))},51530:(e,t,r)=>{r.d(t,{KB:()=>i,Xi:()=>o,pn:()=>a,x3:()=>s});var n=r(44208);class o{constructor(e){this.data=e,this.type="encoded-mesh-texture",this.encoding="image/ktx2"}}function s(e){return"encoded-mesh-texture"===e?.type}async function i(e){const t=new Blob([e]),r=await t.text();return JSON.parse(r)}async function a(e,t){if("image/ktx2"===t)return new o(e);const r=new Blob([e],{type:t});let s=URL.createObjectURL(r);switch(t){case"image/jpeg":s+="#.jpg";break;case"image/png":s+="#.png"}const i=new Image;if((0,n.A)("esri-iPhone"))return new Promise((e,t)=>{const r=()=>{o(),e(i)},n=e=>{o(),t(e)},o=()=>{URL.revokeObjectURL(s),i.removeEventListener("load",r),i.removeEventListener("error",n)};i.addEventListener("load",r),i.addEventListener("error",n),i.src=s});try{i.src=s,await i.decode()}catch(e){console.warn("Failed decoding HTMLImageElement")}return URL.revokeObjectURL(s),i}},61473:(e,t,r)=>{function n(e){return e=e||globalThis.location.hostname,l.some(t=>null!=e?.match(t))}function o(e,t){return e?(t=t||globalThis.location.hostname)?null!=t.match(s)||null!=t.match(a)?e.replace("static.arcgis.com","staticdev.arcgis.com"):null!=t.match(i)||null!=t.match(u)?e.replace("static.arcgis.com","staticqa.arcgis.com"):e:e:null}r.d(t,{EM:()=>o,b5:()=>n});const s=/^devext\.arcgis\.com$/,i=/^qaext\.arcgis\.com$/,a=/^[\w-]*\.mapsdevext\.arcgis\.com$/,u=/^[\w-]*\.mapsqa\.arcgis\.com$/,l=[/^([\w-]*\.)?[\w-]*\.zrh-dev-local\.esri\.com$/,s,i,/^jsapps\.esri\.com$/,a,u]},64304:(e,t,r)=>{r.d(t,{fetch:()=>Q});var n=r(40876),o=r(61473),s=r(34727),i=r(77690),a=r(29242),u=r(58083),l=r(9093),c=r(48163),f=r(38954),d=r(51850),m=r(70328),p=r(11868),h=r(13030),g=r(73354),y=r(65686),x=r(43609),w=r(21015),b=r(84498),v=r(51530),T=r(88340);function M(e){if(null==e)return null;const t=null!=e.offset?e.offset:T.uY,r=null!=e.rotation?e.rotation:0,n=null!=e.scale?e.scale:T.Un,o=(0,a.fA)(1,0,0,0,1,0,t[0],t[1],1),s=(0,a.fA)(Math.cos(r),-Math.sin(r),0,Math.sin(r),Math.cos(r),0,0,0,1),u=(0,a.fA)(n[0],0,0,0,n[1],0,0,0,1),l=(0,a.vt)();return(0,i.lw)(l,s,u),(0,i.lw)(l,o,l),l}class A{constructor(){this.geometries=new Array,this.materials=new Array,this.textures=new Array}}class R{constructor(e,t,r){this.name=e,this.lodThreshold=t,this.pivotOffset=r,this.stageResources=new A,this.numberOfVertices=0}}var B=r(78888),S=r(60999),_=r(49186),I=r(53966),P=r(69397);class E{constructor(){this._outer=new Map}clear(){this._outer.clear()}get empty(){return 0===this._outer.size}get outerSize(){return this._outer.size}get size(){let e=0;for(const t of this._outer.values())e+=t.size;return e}get(e,t){return this._outer.get(e)?.get(t)}getInner(e){return this._outer.get(e)}set(e,t,r){const n=this._outer.get(e);n?n.set(t,r):this._outer.set(e,new Map([[t,r]]))}delete(e,t){const r=this._outer.get(e);r&&(r.delete(t),0===r.size&&this._outer.delete(e))}pop(e,t){const r=this.get(e,t);return this.delete(e,t),r}*outerMap(){for(const e of this._outer)yield e}*values(){for(const e of this._outer.values())yield*e.values()}*[Symbol.iterator](){for(const[e,t]of this._outer)for(const[r,n]of t)yield[e,r,n]}forEach(e){this._outer.forEach((t,r)=>e(t,r))}forAll(e){this._outer.forEach((t,r)=>t.forEach((t,n)=>e(t,r,n)))}copy(){const e=new E;return this.forAll((t,r,n)=>e.set(r,n,t)),e}}var O=r(74887),U=r(46140),L=r(97146),k=r(99677),j=r(46610),z=r(87170),q=r(48833),F=r(2495);const C=()=>I.A.getLogger("esri.views.3d.layers.graphics.objectResourceUtils");class ${constructor(e,t,r){this.resource=e,this.textures=t,this.usedMemory=r}}function V(e){throw new _.A("",`Request for object resource failed: ${e}`)}function N(e){const t=e.params,r=t.topology;let n=!0;switch(t.vertexAttributes||(C().warn("Geometry must specify vertex attributes"),n=!1),t.topology){case"PerAttributeArray":break;case"Indexed":case null:case void 0:{const e=t.faces;if(e){if(t.vertexAttributes)for(const r in t.vertexAttributes){const t=e[r];t?.values?(null!=t.valueType&&"UInt32"!==t.valueType&&(C().warn(`Unsupported indexed geometry indices type '${t.valueType}', only UInt32 is currently supported`),n=!1),null!=t.valuesPerElement&&1!==t.valuesPerElement&&(C().warn(`Unsupported indexed geometry values per element '${t.valuesPerElement}', only 1 is currently supported`),n=!1)):(C().warn(`Indexed geometry does not specify face indices for '${r}' attribute`),n=!1)}}else C().warn("Indexed geometries must specify faces"),n=!1;break}default:C().warn(`Unsupported topology '${r}'`),n=!1}e.params.material||(C().warn("Geometry requires material"),n=!1);const o=e.params.vertexAttributes;for(const e in o)o[e].values||(C().warn("Geometries with externally defined attributes are not yet supported"),n=!1);return n}function D(e){const t=(0,m.Ie)();return e.forEach(e=>{const r=e.boundingInfo;null!=r&&((0,m.iT)(t,r.bbMin),(0,m.iT)(t,r.bbMax))}),t}function G(e){switch(e){case"mask":return 2;case"maskAndTransparency":return 3;case"none":return 1;default:return 0}}function X(e){const t=e.params;return{id:1,material:t.material,texture:t.texture,region:t.texture}}const W=new U.R(1,2,"wosr");var J=r(74810);async function Q(e,t){const a=function(e){const t=e.match(/(.*\.(gltf|glb))(\?lod=([0-9]+))?$/);return t?{fileType:"gltf",url:t[1],specifiedLodIndex:null!=t[4]?Number(t[4]):null}:e.match(/(.*\.(json|json\.gz))$/)?{fileType:"wosr",url:e,specifiedLodIndex:null}:{fileType:"unknown",url:e,specifiedLodIndex:null}}((0,o.EM)(e));if("wosr"===a.fileType){const e=await(t.cache?t.cache.loadWOSR(a.url,t):async function(e,t){const r=await async function(e,t){const r=t?.streamDataRequester;if(r)return async function(e,t,r){const n=await(0,S.Ke)(t.request(e,0,r));if(!0===n.ok)return n.value;(0,O.QP)(n.error),V(n.error.details.url)}(e,r,t);const n=await(0,S.Ke)((0,B.A)(e,t));if(!0===n.ok)return n.value.data;(0,O.QP)(n.error),V(n.error)}(e,t),n=await async function(e,t){const r=new Array;for(const n in e){const o=e[n],s=o.images[0].data;if(!s){C().warn("Externally referenced texture data is not yet supported");continue}const i=o.encoding+";base64,"+s,a="/textureDefinitions/"+n,u="rgba"===o.channels?o.alphaChannelUsage||"transparency":"none",l={noUnpackFlip:!0,wrap:{s:10497,t:10497},preMultiplyAlpha:1!==G(u)},c=t?.disableTextures?Promise.resolve(null):(0,k.D)(i,t);r.push(c.then(e=>({refId:a,image:e,parameters:l,alphaChannelUsage:u})))}const n=await Promise.all(r),o={};for(const e of n)o[e.refId]=e;return o}(r.textureDefinitions??{},t);let o=0;for(const e in n)if(n.hasOwnProperty(e)){const t=n[e];o+=t?.image?t.image.width*t.image.height*4:0}return new $(r,n,o+(0,P.Qh)(r))}(a.url,t)),{engineResources:r,referenceBoundingBox:n}=function(e,t){const r=new Array,n=new Array,o=new Array,s=new E,i=e.resource,a=U.R.parse(i.version||"1.0","wosr");W.validate(a);const u=i.model.name,l=i.model.geometries,c=i.materialDefinitions??{},f=e.textures;let m=0;const p=new Map;for(let e=0;e<l.length;e++){const i=l[e];if(!N(i))continue;const a=X(i),u=i.params.vertexAttributes,h=[],g=e=>{if("PerAttributeArray"===i.params.topology)return null;const t=i.params.faces;for(const r in t)if(r===e)return t[r].values;return null},y=u.position,x=y.values.length/y.valuesPerElement;for(const e in u){const t=u[e],r=t.values,n=g(e)??(0,L.tM)(x);h.push([e,new j.n(r,n,t.valuesPerElement,!0)])}const w=a.texture,b=f&&f[w];if(b&&!p.has(w)){const{image:e,parameters:t}=b,r=new q.g(e,t);n.push(r),p.set(w,r)}const v=p.get(w),T=v?v.id:void 0,M=a.material;let A=s.get(M,w);if(null==A){const e=c[M.slice(M.lastIndexOf("/")+1)].params;1===e.transparency&&(e.transparency=0);const r=b?G(b.alphaChannelUsage):void 0,n={ambient:(0,d.ci)(e.diffuse),diffuse:(0,d.ci)(e.diffuse),opacity:1-(e.transparency||0),textureAlphaMode:r,textureAlphaCutoff:.33,textureId:T,doubleSided:!0,cullFace:0,colorMixMode:e.externalColorMixMode||"tint",textureAlphaPremultiplied:b?.parameters.preMultiplyAlpha??!1};t?.materialParameters&&Object.assign(n,t.materialParameters),A=new F.$U(n,t),s.set(M,w,A)}o.push(A);const R=new z.V(A,h);m+=h.find(e=>"position"===e[0])?.[1]?.indices.length??0,r.push(R)}return{engineResources:[{name:u,stageResources:{textures:n,materials:o,geometries:r},pivotOffset:i.model.pivotOffset,numberOfVertices:m,lodThreshold:null}],referenceBoundingBox:D(r)}}(e,t);return{lods:r,referenceBoundingBox:n,isEsriSymbolResource:!1,isWosr:!0}}let T;if(t.cache)T=await t.cache.loadGLTF(a.url,t,!!t.usePBR);else{const{loadGLTF:e}=await r.e(1698).then(r.bind(r,51698));T=await e(new w.R(t.streamDataRequester),a.url,t,t.usePBR)}const A=T.model.meta?.ESRI_proxyEllipsoid,_=T.meta.isEsriSymbolResource&&null!=A&&"EsriRealisticTreesStyle"===T.meta.ESRI_webstyle;_&&!T.customMeta.esriTreeRendering&&(T.customMeta.esriTreeRendering=!0,function(e,t){for(let r=0;r<e.model.lods.length;++r){const o=e.model.lods[r];for(const s of o.parts){const o=s.attributes.normal;if(null==o)return;const i=s.attributes.position,a=i.count,c=(0,d.vt)(),m=(0,d.vt)(),p=(0,d.vt)(),g=new Float32Array(4*a),y=new Float32Array(3*a),x=(0,u.B8)((0,l.vt)(),s.transform);let w=0,b=0;for(let u=0;u<a;u++){i.getVec(u,m),o.getVec(u,c),(0,f.t)(m,m,s.transform),(0,f.d)(p,m,t.center),(0,f.D)(p,p,t.radius);const a=p[2],l=(0,f.l)(p),d=Math.min(.45+.55*l*l,1)**n.Tf;(0,f.D)(p,p,t.radius),null!==x&&(0,f.t)(p,p,x),(0,f.n)(p,p),r+1!==e.model.lods.length&&e.model.lods.length>1&&(0,f.m)(p,p,c,a>-1?.2:Math.min(-4*a-3.8,1)),y[w]=p[0],y[w+1]=p[1],y[w+2]=p[2],w+=3,g[b]=d,g[b+1]=d,g[b+2]=d,g[b+3]=1,b+=4}s.attributes.normal=new h.xs(y.buffer),s.attributes.color=new h.Eq(g.buffer)}}}(T,A));const I=!!t.usePBR,Q=T.meta.isEsriSymbolResource?{usePBR:I,isSchematic:!1,treeRendering:_,mrrFactors:J.SY}:{usePBR:I,isSchematic:!1,treeRendering:!1,mrrFactors:J.mb},K={...t.materialParameters,treeRendering:_},{engineResources:H,referenceBoundingBox:Z}=function(e,t,r,o,a,u){const l=e.model,f=new Array,d=new Map,w=new Map,T=l.lods.length,A=(0,m.Ie)();return l.lods.forEach((e,B)=>{const S=!0===o.skipHighLods&&(T>1&&0===B||T>3&&1===B)||!1===o.skipHighLods&&null!=a&&B!==a;if(S&&0!==B)return;const _=new R(e.name,e.lodThreshold,[0,0,0]);e.parts.forEach(e=>{const a=S?new F.$U({},o):function(e,t,r,o,s,i,a,u,l){const f=e.materials.get(t.material);if(null==f)return null;const{normal:d,color:m,texCoord0:p,tangent:h}=t.attributes,g=t.material+(d?"_normal":"")+(m?"_color":"")+(p?"_texCoord0":"")+(h?"_tangent":""),y=null!=t.attributes.texCoord0,x=null!=t.attributes.normal,w=function(e){switch(e){case"BLEND":return 0;case"MASK":return 2;case"OPAQUE":case null:case void 0:return 1}}(f.alphaMode);if(!i.has(g)){if(y){const t=(t,r=!1,n=!1)=>{if(null!=t&&!a.has(t)){const o=e.textures.get(t);if(o){const e=o.data,s=r&&!(0,v.x3)(e)?u.compressionOptions:void 0;a.set(t,new q.g((0,v.x3)(e)?e.data:e,{...o.parameters,preMultiplyAlpha:!(0,v.x3)(e)&&n,encoding:(0,v.x3)(e)?e.encoding:void 0,compressionOptions:s}))}}},r=1!==w&&!l;t(f.colorTexture,r,1!==w),t(f.normalTexture),t(f.occlusionTexture,!0),t(f.emissiveTexture),t(f.metallicRoughnessTexture,!0)}const r=1/n.Tf,d=f.color[0]**r,m=f.color[1]**r,p=f.color[2]**r,h=f.emissiveFactor[0]**r,b=f.emissiveFactor[1]**r,T=f.emissiveFactor[2]**r,A=null!=f.colorTexture&&y?a.get(f.colorTexture):null,R=(0,J.Jr)(f),B=null!=f.normalTextureTransform?.scale?f.normalTextureTransform?.scale:c.Un;i.set(g,new F.$U({...o,customDepthTest:1,textureAlphaMode:w,textureAlphaCutoff:f.alphaCutoff,diffuse:[d,m,p],ambient:[d,m,p],opacity:"OPAQUE"===f.alphaMode?1:f.opacity,doubleSided:f.doubleSided,doubleSidedType:"winding-order",cullFace:f.doubleSided?0:2,hasVertexColors:!!t.attributes.color,hasVertexTangents:!!t.attributes.tangent,normalType:x?0:2,castShadows:!0,receiveShadows:f.receiveShadows,receiveAmbientOcclusion:f.receiveAmbientOcclusion,textureId:null!=A?A.id:void 0,colorMixMode:f.colorMixMode,normalTextureId:null!=f.normalTexture&&y?a.get(f.normalTexture).id:void 0,textureAlphaPremultiplied:null!=A&&!!A.parameters.preMultiplyAlpha,occlusionTextureId:null!=f.occlusionTexture&&y?a.get(f.occlusionTexture).id:void 0,emissiveTextureId:null!=f.emissiveTexture&&y?a.get(f.emissiveTexture).id:void 0,metallicRoughnessTextureId:null!=f.metallicRoughnessTexture&&y?a.get(f.metallicRoughnessTexture).id:void 0,emissiveBaseColor:[h,b,T],mrrFactors:R?J.Bt:[f.metallicFactor,f.roughnessFactor,o.mrrFactors[2]],isSchematic:R,colorTextureTransformMatrix:M(f.colorTextureTransform),normalTextureTransformMatrix:M(f.normalTextureTransform),scale:[B[0],B[1]],occlusionTextureTransformMatrix:M(f.occlusionTextureTransform),emissiveTextureTransformMatrix:M(f.emissiveTextureTransform),metallicRoughnessTextureTransformMatrix:M(f.metallicRoughnessTextureTransform),...s},u))}const b=i.get(g);if(r.stageResources.materials.push(b),y){const e=e=>{null!=e&&r.stageResources.textures.push(a.get(e))};e(f.colorTexture),e(f.normalTexture),e(f.occlusionTexture),e(f.emissiveTexture),e(f.metallicRoughnessTexture)}return b}(l,e,_,t,r,d,w,o,u),{geometry:f,vertexCount:T}=function(e,t){const r=e.attributes.position.count,n=(0,b.x)(e.indices||r,e.primitiveType),o=(0,p.oe)(3*r),{typedBuffer:a,typedBufferStride:u}=e.attributes.position;(0,g.t)(o,a,e.transform,3,u);const l=[["position",new j.n(o,n,3,!0)]];if(null!=e.attributes.normal){const t=(0,p.oe)(3*r),{typedBuffer:o,typedBufferStride:a}=e.attributes.normal;(0,i.Ge)(Y,e.transform),(0,g.b)(t,o,Y,3,a),(0,s.or)(Y)&&(0,g.n)(t,t),l.push(["normal",new j.n(t,n,3,!0)])}if(null!=e.attributes.tangent){const t=(0,p.oe)(4*r),{typedBuffer:o,typedBufferStride:a}=e.attributes.tangent;(0,i.z0)(Y,e.transform),(0,y.t)(t,o,Y,4,a),(0,s.or)(Y)&&(0,g.n)(t,t,4),l.push(["tangent",new j.n(t,n,4,!0)])}if(null!=e.attributes.texCoord0){const t=(0,p.oe)(2*r),{typedBuffer:o,typedBufferStride:s}=e.attributes.texCoord0;(0,x.a)(t,o,2,s),l.push(["uv0",new j.n(t,n,2,!0)])}const c=e.attributes.color;if(null!=c){const t=new Uint8Array(4*r);4===c.elementCount?c instanceof h.Eq?(0,y.b)(t,c,1,255):(c instanceof h.XP||c instanceof h.Uz)&&(0,y.b)(t,c,1/255,255):(t.fill(255),c instanceof h.xs?(0,g.f)(t,c.typedBuffer,1,255,4,c.typedBufferStride):(e.attributes.color instanceof h.eI||e.attributes.color instanceof h.nS)&&(0,g.f)(t,c.typedBuffer,1/255,255,4,e.attributes.color.typedBufferStride)),l.push(["color",new j.n(t,n,4,!0)])}return{geometry:new z.V(t,l),vertexCount:r}}(e,a??new F.$U({},o)),R=f.boundingInfo;null!=R&&0===B&&((0,m.iT)(A,R.bbMin),(0,m.iT)(A,R.bbMax)),null!=a&&(_.stageResources.geometries.push(f),_.numberOfVertices+=T)}),S||f.push(_)}),{engineResources:f,referenceBoundingBox:A}}(T,Q,K,t,a.specifiedLodIndex,_);return{lods:H,referenceBoundingBox:Z,isEsriSymbolResource:T.meta.isEsriSymbolResource,isWosr:!1}}const Y=(0,a.vt)()},69052:(e,t,r)=>{r.d(t,{hr:()=>o,ie:()=>u,uC:()=>a});var n=r(34727);class o{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,r=!1){return s(this.range,this.min,this.max,e,t,r)}clamp(e,t=0){return(0,n.qE)(e-t,this.min,this.max)+t}monotonic(e,t,r){return e<t?t:t+i(this.range,e-t,r)}minimalMonotonic(e,t,r){return s(this.range,e,e+this.range,t,r)}center(e,t,r){return t=this.monotonic(e,t,r),this.normalize((e+t)/2,r)}diff(e,t,r){return this.monotonic(e,t,r)-e}shortestSignedDiff(e,t){e=this.normalize(e);const r=(t=this.normalize(t))-e,n=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(r)<Math.abs(n)?r:n}contains(e,t,r){return t=this.minimalMonotonic(e,t),(r=this.minimalMonotonic(e,r))>e&&r<t}}function s(e,t,r,n,o=0,s=!1){return(n-=o)<t?n+=i(e,t-n):n>r&&(n-=i(e,n-r)),s&&n===r&&(n=t),n+o}function i(e,t,r=0){return Math.ceil((t-r)/e)*e+r}const a=new o(0,2*Math.PI),u=(new o(-Math.PI,Math.PI),new o(0,360))},69397:(e,t,r)=>{r.d(t,{$B:()=>o,Qf:()=>l,Qh:()=>a,RS:()=>s,ez:()=>d,lM:()=>i,qK:()=>f});var n=r(34275);function o(e){return 32+e.length}const s=16;function i(e){if(!e)return 0;let t=f;for(const r in e)e.hasOwnProperty(r)&&(t+=u(e[r],!1));return t}function a(e){if(!e)return 0;if("number"==typeof e[0])return l(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return c(e,8);let r=d;for(let n=0;n<t;n++)r+=u(e[n]);return r}(e);let t=f;for(const r in e)e.hasOwnProperty(r)&&(t+=u(e[r]));return t}function u(e,t=!0){switch(typeof e){case"object":return t?a(e):f;case"string":return o(e);case"number":return s;case"boolean":return 4;default:return 8}}function l(...e){return e.reduce((e,t)=>e+(t?(0,n.iu)(t)?t.byteLength+m:Array.isArray(t)?c(t,s):0:0),0)}function c(e,t){return d+e.length*t}const f=32,d=16,m=145},73354:(e,t,r)=>{r.d(t,{a:()=>f,b:()=>a,c:()=>i,d:()=>o,e:()=>d,f:()=>c,l:()=>l,n:()=>m,t:()=>s});var n=r(40876);function o(e,t,r){s(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function s(e,t,r,n=3,o=n){if(e.length/n!==Math.ceil(t.length/o))return e;const s=e.length/n,i=r[0],a=r[1],u=r[2],l=r[4],c=r[5],f=r[6],d=r[8],m=r[9],p=r[10],h=r[12],g=r[13],y=r[14];let x=0,w=0;for(let r=0;r<s;r++){const r=t[x],s=t[x+1],b=t[x+2];e[w]=i*r+l*s+d*b+h,e[w+1]=a*r+c*s+m*b+g,e[w+2]=u*r+f*s+p*b+y,x+=o,w+=n}return e}function i(e,t,r){a(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function a(e,t,r,n=3,o=n){if(e.length/n!==Math.ceil(t.length/o))return;const s=e.length/n,i=r[0],a=r[1],u=r[2],l=r[3],c=r[4],f=r[5],d=r[6],m=r[7],p=r[8];let h=0,g=0;for(let r=0;r<s;r++){const r=t[h],s=t[h+1],y=t[h+2];e[g]=i*r+l*s+d*y,e[g+1]=a*r+c*s+m*y,e[g+2]=u*r+f*s+p*y,h+=o,g+=n}}function u(e,t,r,n=3,o=n){const s=Math.min(e.length/n,t.length/o);let i=0,a=0;for(let u=0;u<s;u++)e[a]=r*t[i],e[a+1]=r*t[i+1],e[a+2]=r*t[i+2],i+=o,a+=n;return e}function l(e,t,r,n){c(e.typedBuffer,t.typedBuffer,r,n,e.typedBufferStride,t.typedBufferStride)}function c(e,t,r,o,s=3,i=s){const a=Math.min(e.length/s,t.length/i);let u=0,l=0;const c=1/n.Tf;for(let n=0;n<a;n++)e[l]=o*(r*t[u])**c,e[l+1]=o*(r*t[u+1])**c,e[l+2]=o*(r*t[u+2])**c,u+=i,l+=s}function f(e,t,r,n=3,o=n){const s=e.length/n;if(s!==Math.ceil(t.length/o))return e;let i=0,a=0;for(let u=0;u<s;u++)e[a]=t[i]+r[0],e[a+1]=t[i+1]+r[1],e[a+2]=t[i+2]+r[2],i+=o,a+=n;return e}function d(e,t){m(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function m(e,t,r=3,n=r){const o=Math.min(e.length/r,t.length/n);let s=0,i=0;for(let a=0;a<o;a++){const o=t[s],a=t[s+1],u=t[s+2],l=o*o+a*a+u*u;if(l>0){const t=1/Math.sqrt(l);e[i]=t*o,e[i+1]=t*a,e[i+2]=t*u}s+=n,i+=r}}r(44208),r(53966),Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:c,linearToSRGBView:l,normalize:m,normalizeView:d,scale:u,scaleView:function(e,t,r){u(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)},shiftRight:function(e,t,r){const n=Math.min(e.count,t.count),o=e.typedBuffer,s=e.typedBufferStride,i=t.typedBuffer,a=t.typedBufferStride;let u=0,l=0;for(let e=0;e<n;e++)o[l]=i[u]>>r,o[l+1]=i[u+1]>>r,o[l+2]=i[u+2]>>r,u+=a,l+=s},transformMat3:a,transformMat3View:i,transformMat4:s,transformMat4View:o,translate:f},Symbol.toStringTag,{value:"Module"}))},80754:(e,t,r)=>{r.d(t,{j7:()=>i,kS:()=>u,kd:()=>a,r8:()=>l});var n=r(82799),o=r(16930),s=r(65864);const i={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new n.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:o.A.WebMercator}),minus180Line:new n.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:o.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new n.A({paths:[[[180,-180],[180,180]]],spatialReference:o.A.WGS84}),minus180Line:new n.A({paths:[[[-180,-180],[-180,180]]],spatialReference:o.A.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function u(e,t){const r=l(e);for(const e of r)for(const r of e)r[0]+=t;return e}function l(e){return(0,s.Bi)(e)?e.rings:e.paths}},84498:(e,t,r)=>{r.d(t,{x:()=>i});var n=r(34275),o=r(97146),s=r(63907);function i(e,t){switch(t){case s.WR.TRIANGLES:return function(e){return"number"==typeof e?(0,o.tM)(e):(0,n.mg)(e)?new Uint16Array(e):e}(e);case s.WR.TRIANGLE_STRIP:return function(e){const t="number"==typeof e?e:e.length;if(t<3)return[];const r=t-2,n=(0,o.my)(3*r);if("number"==typeof e){let e=0;for(let t=0;t<r;t+=1)t%2==0?(n[e++]=t,n[e++]=t+1,n[e++]=t+2):(n[e++]=t+1,n[e++]=t,n[e++]=t+2)}else{let t=0;for(let o=0;o<r;o+=1)o%2==0?(n[t++]=e[o],n[t++]=e[o+1],n[t++]=e[o+2]):(n[t++]=e[o+1],n[t++]=e[o],n[t++]=e[o+2])}return n}(e);case s.WR.TRIANGLE_FAN:return function(e){const t="number"==typeof e?e:e.length;if(t<3)return new Uint16Array(0);const r=t-2,n=r<=65536?new Uint16Array(3*r):new Uint32Array(3*r);if("number"==typeof e){let e=0;for(let t=0;t<r;++t)n[e++]=0,n[e++]=t+1,n[e++]=t+2;return n}const o=e[0];let s=e[1],i=0;for(let t=0;t<r;++t){const r=e[t+2];n[i++]=o,n[i++]=s,n[i++]=r,s=r}return n}(e)}}},88340:(e,t,r)=>{function n(){return new Float32Array(2)}function o(e,t){const r=new Float32Array(2);return r[0]=e,r[1]=t,r}function s(){return n()}function i(){return o(1,1)}function a(){return o(1,0)}function u(){return o(0,1)}r.d(t,{Un:()=>c,fA:()=>o,uY:()=>l,vt:()=>n});const l=s(),c=i(),f=a(),d=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_X:f,UNIT_Y:d,ZEROS:l,clone:function(e){const t=new Float32Array(2);return t[0]=e[0],t[1]=e[1],t},create:n,fromValues:o,ones:i,unitX:a,unitY:u,zeros:s},Symbol.toStringTag,{value:"Module"}))},92300:(e,t,r)=>{r.d(t,{V:()=>s,X:()=>o});var n=r(65864);function o(e){return{geometryType:(0,n.$B)(e[0]),geometries:e.map(e=>e.toJSON())}}function s(e,t,r){const o=(0,n.xD)(t);return e.map(e=>{const t=o.fromJSON(e);return t.spatialReference=r,t})}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7136,8535],{17136:(e,t,r)=>{r.d(t,{Y_:()=>S,O7:()=>R,el:()=>A});var n=r(92602),o=r(69052),s=r(49186),i=r(53966),a=r(39829),u=r(82799),l=r(16930),c=r(80754),f=r(21325),d=r(28735),m=r(78888),p=r(65864),h=r(2272),g=r(84952),y=r(92300);const x=()=>i.A.getLogger("esri.geometry.support.normalizeUtils");function w(e){return"polygon"===e[0].type}function b(e){return"polyline"===e[0].type}function v(e,t,r){if(t){const t=function(e,t){if(!(e instanceof u.A||e instanceof a.A)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw x().error(e),new s.A("internal:geometry",e)}const r=(0,c.r8)(e),n=[];for(const e of r){const r=[];n.push(r),r.push([e[0][0],e[0][1]]);for(let n=0;n<e.length-1;n++){const o=e[n][0],s=e[n][1],i=e[n+1][0],a=e[n+1][1],u=Math.sqrt((i-o)*(i-o)+(a-s)*(a-s)),l=(a-s)/u,c=(i-o)/u,f=u/t;if(f>1){for(let e=1;e<=f-1;e++){const n=e*t,i=c*n+o,a=l*n+s;r.push([i,a])}const e=(u+Math.floor(f-1)*t)/2,n=c*e+o,i=l*e+s;r.push([n,i])}r.push([i,a])}}return function(e){return"polygon"===e.type}(e)?new a.A({rings:n,spatialReference:e.spatialReference}):new u.A({paths:n,spatialReference:e.spatialReference})}(e,1e6);e=(0,d.ci)(t,!0)}return r&&(e=(0,c.kS)(e,r)),e}function T(e,t,r){if(Array.isArray(e)){const n=e[0];if(n>t){const r=(0,c.kd)(n,t);e[0]=n+r*(-2*t)}else if(n<r){const t=(0,c.kd)(n,r);e[0]=n+t*(-2*r)}}else{const n=e.x;if(n>t){const r=(0,c.kd)(n,t);e=e.clone().offset(r*(-2*t),0)}else if(n<r){const t=(0,c.kd)(n,r);e=e.clone().offset(t*(-2*r),0)}}return e}function M(e,t){let r=-1;for(let n=0;n<t.cutIndexes.length;n++){const o=t.cutIndexes[n],s=t.geometries[n],i=(0,c.r8)(s);for(let e=0;e<i.length;e++){const t=i[e];t.some(r=>{if(r[0]<180)return!0;{let r=0;for(let e=0;e<t.length;e++){const n=t[e][0];r=n>r?n:r}r=Number(r.toFixed(9));const n=-360*(0,c.kd)(r,180);for(let r=0;r<t.length;r++){const t=s.getPoint(e,r);s.setPoint(e,r,t.clone().offset(n,0))}return!0}})}if(o===r){if(w(e))for(const t of(0,c.r8)(s))e[o]=e[o].addRing(t);else if(b(e))for(const t of(0,c.r8)(s))e[o]=e[o].addPath(t)}else r=o,e[o]=s}return e}async function A(e,t,r){if(!Array.isArray(e))return A([e],t);t&&"string"!=typeof t&&x().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const o="string"==typeof t?t:t?.url??n.A.geometryServiceUrl;let s,i,l,w,b,R,B,S,_=0;const I=[],P=[];for(const t of e)if(null!=t)if(s||(s=t.spatialReference,i=(0,f.Vp)(s),l=s.isWebMercator,R=l?102100:4326,w=c.j7[R].maxX,b=c.j7[R].minX,B=c.j7[R].plus180Line,S=c.j7[R].minus180Line),i)if("mesh"===t.type)P.push(t);else if("point"===t.type)P.push(T(t.clone(),w,b));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map(e=>T(e,w,b)),P.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,i);P.push(e.rings?new a.A(e):e)}else if(t.extent){const e=t.extent,r=(0,c.kd)(e.xmin,b)*(2*w);let n=0===r?t.clone():(0,c.kS)(t.clone(),r);e.offset(r,0);let{xmin:o,xmax:s}=e;o=Number(o.toFixed(9)),s=Number(s.toFixed(9)),e.intersects(B)&&s!==w?(_=s>_?s:_,n=v(n,l),I.push(n),P.push("cut")):e.intersects(S)&&o!==b?(_=s*(2*w)>_?s*(2*w):_,n=v(n,l,360),I.push(n),P.push("cut")):P.push(n)}else P.push(t.clone());else P.push(t);else P.push(t);let E=(0,c.kd)(_,w),O=-90;const U=E,L=new u.A;for(;E>0;){const e=360*E-180;L.addPath([[e,O],[e,-1*O]]),O*=-1,E--}if(I.length>0&&U>0){const t=M(I,await async function(e,t,r,n){const o=(0,h.Dl)(e),s=t[0].spatialReference,i={...n,responseType:"json",query:{...o.query,f:"json",sr:(0,f.YX)(s),target:JSON.stringify({geometryType:(0,p.$B)(t[0]),geometries:t}),cutter:JSON.stringify(r)}},a=await(0,m.A)(o.path+"/cut",i),{cutIndexes:u,geometries:l=[]}=a.data;return{cutIndexes:u,geometries:l.map(e=>{const t=(0,p.rS)(e);return t.spatialReference=s,t})}}(o,I,L,r)),n=[],s=[];for(let r=0;r<P.length;r++){const o=P[r];if("cut"!==o)s.push(o);else{const o=t.shift(),i=e[r];null!=i&&"polygon"===i.type&&i.rings&&i.rings.length>1&&o.rings.length>=i.rings.length?(n.push(o),s.push("simplify")):s.push(l?(0,d.Gh)(o):o)}}if(!n.length)return s;const i=await async function(e,t,r){const n="string"==typeof e?(0,g.An)(e):e,o=t[0].spatialReference,s=(0,p.$B)(t[0]),i={...r,query:{...n.query,f:"json",sr:(0,f.YX)(o),geometries:JSON.stringify((0,y.X)(t))}},{data:a}=await(0,m.A)(n.path+"/simplify",i);return(0,y.V)(a.geometries,s,o)}(o,n,r),a=[];for(let e=0;e<s.length;e++){const t=s[e];"simplify"!==t?a.push(t):a.push(l?(0,d.Gh)(i.shift()):i.shift())}return a}const k=[];for(let e=0;e<P.length;e++){const t=P[e];if("cut"!==t)k.push(t);else{const e=I.shift();k.push(!0===l?(0,d.Gh)(e):e)}}return k}function R(e,t,r){const n=(0,f.Vp)(r);if(null==n)return e;const[o,s]=n.valid,i=2*s;let a=0,u=0;t>s?a=Math.ceil(Math.abs(t-s)/i):t<o&&(a=-Math.ceil(Math.abs(t-o)/i)),e>s?u=Math.ceil(Math.abs(e-s)/i):e<o&&(u=-Math.ceil(Math.abs(e-o)/i));let l=e+(a-u)*i;const c=l-t;return c>s?l-=i:c<o&&(l+=i),l}function B(e){const t=(0,f.Vp)(e);if(null==t)return null;const[r,n]=t.valid;return new o.hr(r,n)}const S=B(l.A.WGS84);B(l.A.WebMercator)},21015:(e,t,r)=>{r.d(t,{R:()=>u});var n=r(78888),o=r(60999),s=r(49186),i=r(74887),a=r(84952);class u{constructor(e){this._streamDataRequester=e}async loadJSON(e,t){return this._load(0,e,t)}async loadBinary(e,t){return(0,a.DB)(e)?((0,i.Te)(t),(0,a.lJ)(e)):this._load(1,e,t)}async loadImage(e,t){return this._load(2,e,t)}async _load(e,t,r){if(null==this._streamDataRequester)return(await(0,n.A)(t,{responseType:l[e]})).data;const a=await(0,o.Ke)(this._streamDataRequester.request(t,e,r));if(!0===a.ok)return a.value;throw(0,i.QP)(a.error),new s.A("glt-loader-request-error",`Request for resource failed: ${a.error}`)}}const l={2:"image",1:"array-buffer",0:"json",3:void 0}},43609:(e,t,r)=>{r.d(t,{a:()=>s,f:()=>i,n:()=>o});var n=r(34275);function o(e,t){s(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function s(e,t,r=2,o=r){const s=t.length/2;let i=0,a=0;if(!(0,n.iu)(t)||(0,n.dk)(t)){for(let n=0;n<s;++n)e[i]=t[a],e[i+1]=t[a+1],i+=r,a+=o;return}const u=(0,n.a3)(t);if((0,n.JI)(t))for(let n=0;n<s;++n)e[i]=Math.max(t[a]/u,-1),e[i+1]=Math.max(t[a+1]/u,-1),i+=r,a+=o;else for(let n=0;n<s;++n)e[i]=t[a]/u,e[i+1]=t[a+1]/u,i+=r,a+=o}function i(e,t,r,n){const o=e.typedBuffer,s=e.typedBufferStride,i=n?.count??e.count;let a=(n?.dstIndex??0)*s;for(let e=0;e<i;++e)o[a]=t,o[a+1]=r,a+=s}Object.freeze(Object.defineProperty({__proto__:null,fill:i,normalizeIntegerBuffer:s,normalizeIntegerBufferView:o},Symbol.toStringTag,{value:"Module"}))},51530:(e,t,r)=>{r.d(t,{KB:()=>i,Xi:()=>o,pn:()=>a,x3:()=>s});var n=r(44208);class o{constructor(e){this.data=e,this.type="encoded-mesh-texture",this.encoding="image/ktx2"}}function s(e){return"encoded-mesh-texture"===e?.type}async function i(e){const t=new Blob([e]),r=await t.text();return JSON.parse(r)}async function a(e,t){if("image/ktx2"===t)return new o(e);const r=new Blob([e],{type:t});let s=URL.createObjectURL(r);switch(t){case"image/jpeg":s+="#.jpg";break;case"image/png":s+="#.png"}const i=new Image;if((0,n.A)("esri-iPhone"))return new Promise((e,t)=>{const r=()=>{o(),e(i)},n=e=>{o(),t(e)},o=()=>{URL.revokeObjectURL(s),i.removeEventListener("load",r),i.removeEventListener("error",n)};i.addEventListener("load",r),i.addEventListener("error",n),i.src=s});try{i.src=s,await i.decode()}catch(e){console.warn("Failed decoding HTMLImageElement")}return URL.revokeObjectURL(s),i}},61473:(e,t,r)=>{function n(e){return e=e||globalThis.location.hostname,l.some(t=>null!=e?.match(t))}function o(e,t){return e?(t=t||globalThis.location.hostname)?null!=t.match(s)||null!=t.match(a)?e.replace("static.arcgis.com","staticdev.arcgis.com"):null!=t.match(i)||null!=t.match(u)?e.replace("static.arcgis.com","staticqa.arcgis.com"):e:e:null}r.d(t,{EM:()=>o,b5:()=>n});const s=/^devext\.arcgis\.com$/,i=/^qaext\.arcgis\.com$/,a=/^[\w-]*\.mapsdevext\.arcgis\.com$/,u=/^[\w-]*\.mapsqa\.arcgis\.com$/,l=[/^([\w-]*\.)?[\w-]*\.zrh-dev-local\.esri\.com$/,s,i,/^jsapps\.esri\.com$/,a,u]},64304:(e,t,r)=>{r.d(t,{fetch:()=>Q});var n=r(40876),o=r(61473),s=r(34727),i=r(77690),a=r(29242),u=r(58083),l=r(9093),c=r(48163),f=r(38954),d=r(51850),m=r(70328),p=r(11868),h=r(13030),g=r(73354),y=r(65686),x=r(43609),w=r(21015),b=r(84498),v=r(51530),T=r(88340);function M(e){if(null==e)return null;const t=null!=e.offset?e.offset:T.uY,r=null!=e.rotation?e.rotation:0,n=null!=e.scale?e.scale:T.Un,o=(0,a.fA)(1,0,0,0,1,0,t[0],t[1],1),s=(0,a.fA)(Math.cos(r),-Math.sin(r),0,Math.sin(r),Math.cos(r),0,0,0,1),u=(0,a.fA)(n[0],0,0,0,n[1],0,0,0,1),l=(0,a.vt)();return(0,i.lw)(l,s,u),(0,i.lw)(l,o,l),l}class A{constructor(){this.geometries=new Array,this.materials=new Array,this.textures=new Array}}class R{constructor(e,t,r){this.name=e,this.lodThreshold=t,this.pivotOffset=r,this.stageResources=new A,this.numberOfVertices=0}}var B=r(78888),S=r(60999),_=r(49186),I=r(53966),P=r(69397);class E{constructor(){this._outer=new Map}clear(){this._outer.clear()}get empty(){return 0===this._outer.size}get outerSize(){return this._outer.size}get size(){let e=0;for(const t of this._outer.values())e+=t.size;return e}get(e,t){return this._outer.get(e)?.get(t)}getInner(e){return this._outer.get(e)}set(e,t,r){const n=this._outer.get(e);n?n.set(t,r):this._outer.set(e,new Map([[t,r]]))}delete(e,t){const r=this._outer.get(e);r&&(r.delete(t),0===r.size&&this._outer.delete(e))}pop(e,t){const r=this.get(e,t);return this.delete(e,t),r}*outerMap(){for(const e of this._outer)yield e}*values(){for(const e of this._outer.values())yield*e.values()}*[Symbol.iterator](){for(const[e,t]of this._outer)for(const[r,n]of t)yield[e,r,n]}forEach(e){this._outer.forEach((t,r)=>e(t,r))}forAll(e){this._outer.forEach((t,r)=>t.forEach((t,n)=>e(t,r,n)))}copy(){const e=new E;return this.forAll((t,r,n)=>e.set(r,n,t)),e}}var O=r(74887),U=r(46140),L=r(97146),k=r(99677),j=r(46610),z=r(87170),q=r(48833),F=r(2495);const V=()=>I.A.getLogger("esri.views.3d.layers.graphics.objectResourceUtils");class C{constructor(e,t,r){this.resource=e,this.textures=t,this.usedMemory=r}}function $(e){throw new _.A("",`Request for object resource failed: ${e}`)}function N(e){const t=e.params,r=t.topology;let n=!0;switch(t.vertexAttributes||(V().warn("Geometry must specify vertex attributes"),n=!1),t.topology){case"PerAttributeArray":break;case"Indexed":case null:case void 0:{const e=t.faces;if(e){if(t.vertexAttributes)for(const r in t.vertexAttributes){const t=e[r];t?.values?(null!=t.valueType&&"UInt32"!==t.valueType&&(V().warn(`Unsupported indexed geometry indices type '${t.valueType}', only UInt32 is currently supported`),n=!1),null!=t.valuesPerElement&&1!==t.valuesPerElement&&(V().warn(`Unsupported indexed geometry values per element '${t.valuesPerElement}', only 1 is currently supported`),n=!1)):(V().warn(`Indexed geometry does not specify face indices for '${r}' attribute`),n=!1)}}else V().warn("Indexed geometries must specify faces"),n=!1;break}default:V().warn(`Unsupported topology '${r}'`),n=!1}e.params.material||(V().warn("Geometry requires material"),n=!1);const o=e.params.vertexAttributes;for(const e in o)o[e].values||(V().warn("Geometries with externally defined attributes are not yet supported"),n=!1);return n}function D(e){const t=(0,m.Ie)();return e.forEach(e=>{const r=e.boundingInfo;null!=r&&((0,m.iT)(t,r.bbMin),(0,m.iT)(t,r.bbMax))}),t}function G(e){switch(e){case"mask":return 2;case"maskAndTransparency":return 3;case"none":return 1;default:return 0}}function X(e){const t=e.params;return{id:1,material:t.material,texture:t.texture,region:t.texture}}const W=new U.R(1,2,"wosr");var J=r(74810);async function Q(e,t){const a=function(e){const t=e.match(/(.*\.(gltf|glb))(\?lod=([0-9]+))?$/);return t?{fileType:"gltf",url:t[1],specifiedLodIndex:null!=t[4]?Number(t[4]):null}:e.match(/(.*\.(json|json\.gz))$/)?{fileType:"wosr",url:e,specifiedLodIndex:null}:{fileType:"unknown",url:e,specifiedLodIndex:null}}((0,o.EM)(e));if("wosr"===a.fileType){const e=await(t.cache?t.cache.loadWOSR(a.url,t):async function(e,t){const r=await async function(e,t){const r=t?.streamDataRequester;if(r)return async function(e,t,r){const n=await(0,S.Ke)(t.request(e,0,r));if(!0===n.ok)return n.value;(0,O.QP)(n.error),$(n.error.details.url)}(e,r,t);const n=await(0,S.Ke)((0,B.A)(e,t));if(!0===n.ok)return n.value.data;(0,O.QP)(n.error),$(n.error)}(e,t),n=await async function(e,t){const r=new Array;for(const n in e){const o=e[n],s=o.images[0].data;if(!s){V().warn("Externally referenced texture data is not yet supported");continue}const i=o.encoding+";base64,"+s,a="/textureDefinitions/"+n,u="rgba"===o.channels?o.alphaChannelUsage||"transparency":"none",l={noUnpackFlip:!0,wrap:{s:10497,t:10497},preMultiplyAlpha:1!==G(u)},c=t?.disableTextures?Promise.resolve(null):(0,k.D)(i,t);r.push(c.then(e=>({refId:a,image:e,parameters:l,alphaChannelUsage:u})))}const n=await Promise.all(r),o={};for(const e of n)o[e.refId]=e;return o}(r.textureDefinitions??{},t);let o=0;for(const e in n)if(n.hasOwnProperty(e)){const t=n[e];o+=t?.image?t.image.width*t.image.height*4:0}return new C(r,n,o+(0,P.Qh)(r))}(a.url,t)),{engineResources:r,referenceBoundingBox:n}=function(e,t){const r=new Array,n=new Array,o=new Array,s=new E,i=e.resource,a=U.R.parse(i.version||"1.0","wosr");W.validate(a);const u=i.model.name,l=i.model.geometries,c=i.materialDefinitions??{},f=e.textures;let m=0;const p=new Map;for(let e=0;e<l.length;e++){const i=l[e];if(!N(i))continue;const a=X(i),u=i.params.vertexAttributes,h=[],g=e=>{if("PerAttributeArray"===i.params.topology)return null;const t=i.params.faces;for(const r in t)if(r===e)return t[r].values;return null},y=u.position,x=y.values.length/y.valuesPerElement;for(const e in u){const t=u[e],r=t.values,n=g(e)??(0,L.tM)(x);h.push([e,new j.n(r,n,t.valuesPerElement,!0)])}const w=a.texture,b=f&&f[w];if(b&&!p.has(w)){const{image:e,parameters:t}=b,r=new q.g(e,t);n.push(r),p.set(w,r)}const v=p.get(w),T=v?v.id:void 0,M=a.material;let A=s.get(M,w);if(null==A){const e=c[M.slice(M.lastIndexOf("/")+1)].params;1===e.transparency&&(e.transparency=0);const r=b?G(b.alphaChannelUsage):void 0,n={ambient:(0,d.ci)(e.diffuse),diffuse:(0,d.ci)(e.diffuse),opacity:1-(e.transparency||0),textureAlphaMode:r,textureAlphaCutoff:.33,textureId:T,doubleSided:!0,cullFace:0,colorMixMode:e.externalColorMixMode||"tint",textureAlphaPremultiplied:b?.parameters.preMultiplyAlpha??!1};t?.materialParameters&&Object.assign(n,t.materialParameters),A=new F.$U(n,t),s.set(M,w,A)}o.push(A);const R=new z.V(A,h);m+=h.find(e=>"position"===e[0])?.[1]?.indices.length??0,r.push(R)}return{engineResources:[{name:u,stageResources:{textures:n,materials:o,geometries:r},pivotOffset:i.model.pivotOffset,numberOfVertices:m,lodThreshold:null}],referenceBoundingBox:D(r)}}(e,t);return{lods:r,referenceBoundingBox:n,isEsriSymbolResource:!1,isWosr:!0}}let T;if(t.cache)T=await t.cache.loadGLTF(a.url,t,!!t.usePBR);else{const{loadGLTF:e}=await r.e(1698).then(r.bind(r,51698));T=await e(new w.R(t.streamDataRequester),a.url,t,t.usePBR)}const A=T.model.meta?.ESRI_proxyEllipsoid,_=T.meta.isEsriSymbolResource&&null!=A&&"EsriRealisticTreesStyle"===T.meta.ESRI_webstyle;_&&!T.customMeta.esriTreeRendering&&(T.customMeta.esriTreeRendering=!0,function(e,t){for(let r=0;r<e.model.lods.length;++r){const o=e.model.lods[r];for(const s of o.parts){const o=s.attributes.normal;if(null==o)return;const i=s.attributes.position,a=i.count,c=(0,d.vt)(),m=(0,d.vt)(),p=(0,d.vt)(),g=new Float32Array(4*a),y=new Float32Array(3*a),x=(0,u.B8)((0,l.vt)(),s.transform);let w=0,b=0;for(let u=0;u<a;u++){i.getVec(u,m),o.getVec(u,c),(0,f.t)(m,m,s.transform),(0,f.d)(p,m,t.center),(0,f.D)(p,p,t.radius);const a=p[2],l=(0,f.l)(p),d=Math.min(.45+.55*l*l,1)**n.Tf;(0,f.D)(p,p,t.radius),null!==x&&(0,f.t)(p,p,x),(0,f.n)(p,p),r+1!==e.model.lods.length&&e.model.lods.length>1&&(0,f.m)(p,p,c,a>-1?.2:Math.min(-4*a-3.8,1)),y[w]=p[0],y[w+1]=p[1],y[w+2]=p[2],w+=3,g[b]=d,g[b+1]=d,g[b+2]=d,g[b+3]=1,b+=4}s.attributes.normal=new h.xs(y.buffer),s.attributes.color=new h.Eq(g.buffer)}}}(T,A));const I=!!t.usePBR,Q=T.meta.isEsriSymbolResource?{usePBR:I,isSchematic:!1,treeRendering:_,mrrFactors:J.SY}:{usePBR:I,isSchematic:!1,treeRendering:!1,mrrFactors:J.mb},K={...t.materialParameters,treeRendering:_},{engineResources:H,referenceBoundingBox:Z}=function(e,t,r,o,a,u){const l=e.model,f=new Array,d=new Map,w=new Map,T=l.lods.length,A=(0,m.Ie)();return l.lods.forEach((e,B)=>{const S=!0===o.skipHighLods&&(T>1&&0===B||T>3&&1===B)||!1===o.skipHighLods&&null!=a&&B!==a;if(S&&0!==B)return;const _=new R(e.name,e.lodThreshold,[0,0,0]);e.parts.forEach(e=>{const a=S?new F.$U({},o):function(e,t,r,o,s,i,a,u,l){const f=e.materials.get(t.material);if(null==f)return null;const{normal:d,color:m,texCoord0:p,tangent:h}=t.attributes,g=t.material+(d?"_normal":"")+(m?"_color":"")+(p?"_texCoord0":"")+(h?"_tangent":""),y=null!=t.attributes.texCoord0,x=null!=t.attributes.normal,w=function(e){switch(e){case"BLEND":return 0;case"MASK":return 2;case"OPAQUE":case null:case void 0:return 1}}(f.alphaMode);if(!i.has(g)){if(y){const t=(t,r=!1,n=!1)=>{if(null!=t&&!a.has(t)){const o=e.textures.get(t);if(o){const e=o.data,s=r&&!(0,v.x3)(e)?u.compressionOptions:void 0;a.set(t,new q.g((0,v.x3)(e)?e.data:e,{...o.parameters,preMultiplyAlpha:!(0,v.x3)(e)&&n,encoding:(0,v.x3)(e)?e.encoding:void 0,compressionOptions:s}))}}},r=1!==w&&!l;t(f.colorTexture,r,1!==w),t(f.normalTexture),t(f.occlusionTexture,!0),t(f.emissiveTexture),t(f.metallicRoughnessTexture,!0)}const r=(0,n.xV)(f.color[0]),d=(0,n.xV)(f.color[1]),m=(0,n.xV)(f.color[2]),p=null!=f.colorTexture&&y?a.get(f.colorTexture):null,h=(0,J.Jr)(f),b=null!=f.normalTextureTransform?.scale?f.normalTextureTransform?.scale:c.Un;i.set(g,new F.$U({...o,customDepthTest:1,textureAlphaMode:w,textureAlphaCutoff:f.alphaCutoff,diffuse:[r,d,m],ambient:[r,d,m],opacity:"OPAQUE"===f.alphaMode?1:f.opacity,doubleSided:f.doubleSided,doubleSidedType:"winding-order",cullFace:f.doubleSided?0:2,hasVertexColors:!!t.attributes.color,hasVertexTangents:!!t.attributes.tangent,normalType:x?0:2,castShadows:!0,receiveShadows:f.receiveShadows,receiveAmbientOcclusion:f.receiveAmbientOcclusion,textureId:null!=p?p.id:void 0,colorMixMode:f.colorMixMode,normalTextureId:null!=f.normalTexture&&y?a.get(f.normalTexture).id:void 0,textureAlphaPremultiplied:null!=p&&!!p.parameters.preMultiplyAlpha,occlusionTextureId:null!=f.occlusionTexture&&y?a.get(f.occlusionTexture).id:void 0,emissiveTextureId:null!=f.emissiveTexture&&y?a.get(f.emissiveTexture).id:void 0,metallicRoughnessTextureId:null!=f.metallicRoughnessTexture&&y?a.get(f.metallicRoughnessTexture).id:void 0,emissiveBaseColor:[f.emissiveFactor[0],f.emissiveFactor[1],f.emissiveFactor[2]],mrrFactors:h?J.Bt:[f.metallicFactor,f.roughnessFactor,o.mrrFactors[2]],isSchematic:h,colorTextureTransformMatrix:M(f.colorTextureTransform),normalTextureTransformMatrix:M(f.normalTextureTransform),scale:[b[0],b[1]],occlusionTextureTransformMatrix:M(f.occlusionTextureTransform),emissiveTextureTransformMatrix:M(f.emissiveTextureTransform),metallicRoughnessTextureTransformMatrix:M(f.metallicRoughnessTextureTransform),...s},u))}const b=i.get(g);if(r.stageResources.materials.push(b),y){const e=e=>{null!=e&&r.stageResources.textures.push(a.get(e))};e(f.colorTexture),e(f.normalTexture),e(f.occlusionTexture),e(f.emissiveTexture),e(f.metallicRoughnessTexture)}return b}(l,e,_,t,r,d,w,o,u),{geometry:f,vertexCount:T}=function(e,t){const r=e.attributes.position.count,n=(0,b.x)(e.indices||r,e.primitiveType),o=(0,p.oe)(3*r),{typedBuffer:a,typedBufferStride:u}=e.attributes.position;(0,g.t)(o,a,e.transform,3,u);const l=[["position",new j.n(o,n,3,!0)]];if(null!=e.attributes.normal){const t=(0,p.oe)(3*r),{typedBuffer:o,typedBufferStride:a}=e.attributes.normal;(0,i.Ge)(Y,e.transform),(0,g.b)(t,o,Y,3,a),(0,s.or)(Y)&&(0,g.n)(t,t),l.push(["normal",new j.n(t,n,3,!0)])}if(null!=e.attributes.tangent){const t=(0,p.oe)(4*r),{typedBuffer:o,typedBufferStride:a}=e.attributes.tangent;(0,i.z0)(Y,e.transform),(0,y.t)(t,o,Y,4,a),(0,s.or)(Y)&&(0,g.n)(t,t,4),l.push(["tangent",new j.n(t,n,4,!0)])}if(null!=e.attributes.texCoord0){const t=(0,p.oe)(2*r),{typedBuffer:o,typedBufferStride:s}=e.attributes.texCoord0;(0,x.a)(t,o,2,s),l.push(["uv0",new j.n(t,n,2,!0)])}const c=e.attributes.color;if(null!=c){const t=new Uint8Array(4*r);4===c.elementCount?c instanceof h.Eq?(0,y.b)(t,c,1,255):(c instanceof h.XP||c instanceof h.Uz)&&(0,y.b)(t,c,1/255,255):(t.fill(255),c instanceof h.xs?(0,g.f)(t,c.typedBuffer,1,255,4,c.typedBufferStride):(e.attributes.color instanceof h.eI||e.attributes.color instanceof h.nS)&&(0,g.f)(t,c.typedBuffer,1/255,255,4,e.attributes.color.typedBufferStride)),l.push(["color",new j.n(t,n,4,!0)])}return{geometry:new z.V(t,l),vertexCount:r}}(e,a??new F.$U({},o)),R=f.boundingInfo;null!=R&&0===B&&((0,m.iT)(A,R.bbMin),(0,m.iT)(A,R.bbMax)),null!=a&&(_.stageResources.geometries.push(f),_.numberOfVertices+=T)}),S||f.push(_)}),{engineResources:f,referenceBoundingBox:A}}(T,Q,K,t,a.specifiedLodIndex,_);return{lods:H,referenceBoundingBox:Z,isEsriSymbolResource:T.meta.isEsriSymbolResource,isWosr:!1}}const Y=(0,a.vt)()},69052:(e,t,r)=>{r.d(t,{hr:()=>o,ie:()=>u,uC:()=>a});var n=r(34727);class o{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,r=!1){return s(this.range,this.min,this.max,e,t,r)}clamp(e,t=0){return(0,n.qE)(e-t,this.min,this.max)+t}monotonic(e,t,r){return e<t?t:t+i(this.range,e-t,r)}minimalMonotonic(e,t,r){return s(this.range,e,e+this.range,t,r)}center(e,t,r){return t=this.monotonic(e,t,r),this.normalize((e+t)/2,r)}diff(e,t,r){return this.monotonic(e,t,r)-e}shortestSignedDiff(e,t){e=this.normalize(e);const r=(t=this.normalize(t))-e,n=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(r)<Math.abs(n)?r:n}contains(e,t,r){return t=this.minimalMonotonic(e,t),(r=this.minimalMonotonic(e,r))>e&&r<t}}function s(e,t,r,n,o=0,s=!1){return(n-=o)<t?n+=i(e,t-n):n>r&&(n-=i(e,n-r)),s&&n===r&&(n=t),n+o}function i(e,t,r=0){return Math.ceil((t-r)/e)*e+r}const a=new o(0,2*Math.PI),u=(new o(-Math.PI,Math.PI),new o(0,360))},69397:(e,t,r)=>{r.d(t,{$B:()=>o,Qf:()=>l,Qh:()=>a,RS:()=>s,ez:()=>d,lM:()=>i,qK:()=>f});var n=r(34275);function o(e){return 32+e.length}const s=16;function i(e){if(!e)return 0;let t=f;for(const r in e)e.hasOwnProperty(r)&&(t+=u(e[r],!1));return t}function a(e){if(!e)return 0;if("number"==typeof e[0])return l(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return c(e,8);let r=d;for(let n=0;n<t;n++)r+=u(e[n]);return r}(e);let t=f;for(const r in e)e.hasOwnProperty(r)&&(t+=u(e[r]));return t}function u(e,t=!0){switch(typeof e){case"object":return t?a(e):f;case"string":return o(e);case"number":return s;case"boolean":return 4;default:return 8}}function l(...e){return e.reduce((e,t)=>e+(t?(0,n.iu)(t)?t.byteLength+m:Array.isArray(t)?c(t,s):0:0),0)}function c(e,t){return d+e.length*t}const f=32,d=16,m=145},73354:(e,t,r)=>{r.d(t,{a:()=>f,b:()=>a,c:()=>i,d:()=>o,e:()=>d,f:()=>c,l:()=>l,n:()=>m,t:()=>s});var n=r(40876);function o(e,t,r){s(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function s(e,t,r,n=3,o=n){if(e.length/n!==Math.ceil(t.length/o))return e;const s=e.length/n,i=r[0],a=r[1],u=r[2],l=r[4],c=r[5],f=r[6],d=r[8],m=r[9],p=r[10],h=r[12],g=r[13],y=r[14];let x=0,w=0;for(let r=0;r<s;r++){const r=t[x],s=t[x+1],b=t[x+2];e[w]=i*r+l*s+d*b+h,e[w+1]=a*r+c*s+m*b+g,e[w+2]=u*r+f*s+p*b+y,x+=o,w+=n}return e}function i(e,t,r){a(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function a(e,t,r,n=3,o=n){if(e.length/n!==Math.ceil(t.length/o))return;const s=e.length/n,i=r[0],a=r[1],u=r[2],l=r[3],c=r[4],f=r[5],d=r[6],m=r[7],p=r[8];let h=0,g=0;for(let r=0;r<s;r++){const r=t[h],s=t[h+1],y=t[h+2];e[g]=i*r+l*s+d*y,e[g+1]=a*r+c*s+m*y,e[g+2]=u*r+f*s+p*y,h+=o,g+=n}}function u(e,t,r,n=3,o=n){const s=Math.min(e.length/n,t.length/o);let i=0,a=0;for(let u=0;u<s;u++)e[a]=r*t[i],e[a+1]=r*t[i+1],e[a+2]=r*t[i+2],i+=o,a+=n;return e}function l(e,t,r,n){c(e.typedBuffer,t.typedBuffer,r,n,e.typedBufferStride,t.typedBufferStride)}function c(e,t,r,o,s=3,i=s){const a=Math.min(e.length/s,t.length/i);let u=0,l=0;const c=1/n.Tf;for(let n=0;n<a;n++)e[l]=o*(r*t[u])**c,e[l+1]=o*(r*t[u+1])**c,e[l+2]=o*(r*t[u+2])**c,u+=i,l+=s}function f(e,t,r,n=3,o=n){const s=e.length/n;if(s!==Math.ceil(t.length/o))return e;let i=0,a=0;for(let u=0;u<s;u++)e[a]=t[i]+r[0],e[a+1]=t[i+1]+r[1],e[a+2]=t[i+2]+r[2],i+=o,a+=n;return e}function d(e,t){m(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function m(e,t,r=3,n=r){const o=Math.min(e.length/r,t.length/n);let s=0,i=0;for(let a=0;a<o;a++){const o=t[s],a=t[s+1],u=t[s+2],l=o*o+a*a+u*u;if(l>0){const t=1/Math.sqrt(l);e[i]=t*o,e[i+1]=t*a,e[i+2]=t*u}s+=n,i+=r}}r(44208),r(53966),Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:c,linearToSRGBView:l,normalize:m,normalizeView:d,scale:u,scaleView:function(e,t,r){u(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)},shiftRight:function(e,t,r){const n=Math.min(e.count,t.count),o=e.typedBuffer,s=e.typedBufferStride,i=t.typedBuffer,a=t.typedBufferStride;let u=0,l=0;for(let e=0;e<n;e++)o[l]=i[u]>>r,o[l+1]=i[u+1]>>r,o[l+2]=i[u+2]>>r,u+=a,l+=s},transformMat3:a,transformMat3View:i,transformMat4:s,transformMat4View:o,translate:f},Symbol.toStringTag,{value:"Module"}))},80754:(e,t,r)=>{r.d(t,{j7:()=>i,kS:()=>u,kd:()=>a,r8:()=>l});var n=r(82799),o=r(16930),s=r(65864);const i={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new n.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:o.A.WebMercator}),minus180Line:new n.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:o.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new n.A({paths:[[[180,-180],[180,180]]],spatialReference:o.A.WGS84}),minus180Line:new n.A({paths:[[[-180,-180],[-180,180]]],spatialReference:o.A.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function u(e,t){const r=l(e);for(const e of r)for(const r of e)r[0]+=t;return e}function l(e){return(0,s.Bi)(e)?e.rings:e.paths}},84498:(e,t,r)=>{r.d(t,{x:()=>i});var n=r(34275),o=r(97146),s=r(63907);function i(e,t){switch(t){case s.WR.TRIANGLES:return function(e){return"number"==typeof e?(0,o.tM)(e):(0,n.mg)(e)?new Uint16Array(e):e}(e);case s.WR.TRIANGLE_STRIP:return function(e){const t="number"==typeof e?e:e.length;if(t<3)return[];const r=t-2,n=(0,o.my)(3*r);if("number"==typeof e){let e=0;for(let t=0;t<r;t+=1)t%2==0?(n[e++]=t,n[e++]=t+1,n[e++]=t+2):(n[e++]=t+1,n[e++]=t,n[e++]=t+2)}else{let t=0;for(let o=0;o<r;o+=1)o%2==0?(n[t++]=e[o],n[t++]=e[o+1],n[t++]=e[o+2]):(n[t++]=e[o+1],n[t++]=e[o],n[t++]=e[o+2])}return n}(e);case s.WR.TRIANGLE_FAN:return function(e){const t="number"==typeof e?e:e.length;if(t<3)return new Uint16Array(0);const r=t-2,n=r<=65536?new Uint16Array(3*r):new Uint32Array(3*r);if("number"==typeof e){let e=0;for(let t=0;t<r;++t)n[e++]=0,n[e++]=t+1,n[e++]=t+2;return n}const o=e[0];let s=e[1],i=0;for(let t=0;t<r;++t){const r=e[t+2];n[i++]=o,n[i++]=s,n[i++]=r,s=r}return n}(e)}}},88340:(e,t,r)=>{function n(){return new Float32Array(2)}function o(e,t){const r=new Float32Array(2);return r[0]=e,r[1]=t,r}function s(){return n()}function i(){return o(1,1)}function a(){return o(1,0)}function u(){return o(0,1)}r.d(t,{Un:()=>c,fA:()=>o,uY:()=>l,vt:()=>n});const l=s(),c=i(),f=a(),d=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_X:f,UNIT_Y:d,ZEROS:l,clone:function(e){const t=new Float32Array(2);return t[0]=e[0],t[1]=e[1],t},create:n,fromValues:o,ones:i,unitX:a,unitY:u,zeros:s},Symbol.toStringTag,{value:"Module"}))},92300:(e,t,r)=>{r.d(t,{V:()=>s,X:()=>o});var n=r(65864);function o(e){return{geometryType:(0,n.$B)(e[0]),geometries:e.map(e=>e.toJSON())}}function s(e,t,r){const o=(0,n.xD)(t);return e.map(e=>{const t=o.fromJSON(e);return t.spatialReference=r,t})}}}]);