@arcgis/core 4.24.0-next.20220508 → 4.24.0-next.20220511
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.
- package/AggregateGraphic.js +1 -1
- package/analysis/Analysis.js +1 -1
- package/analysis/DimensioningAnalysis.js +1 -1
- package/analysis/LengthDimension.d.ts +4 -0
- package/analysis/LengthDimension.js +5 -0
- package/analysis/dimensionUtils.js +5 -0
- package/arcade/Dictionary.js +1 -1
- package/arcade/Feature.js +1 -1
- package/arcade/arcade.js +1 -1
- package/arcade/arcadeAsyncRuntime.js +1 -1
- package/arcade/arcadeCompiler.js +1 -1
- package/arcade/credentials.js +1 -1
- package/arcade/featureSetCollection.js +1 -1
- package/arcade/featureSetUtils.js +1 -1
- package/arcade/featureset/actions/Adapted.js +1 -1
- package/arcade/featureset/actions/AttributeFilter.js +1 -1
- package/arcade/featureset/actions/GroupBy.js +1 -1
- package/arcade/featureset/actions/OrderBy.js +1 -1
- package/arcade/featureset/actions/SpatialFilter.js +1 -1
- package/arcade/featureset/actions/Top.js +1 -1
- package/arcade/featureset/sources/Empty.js +1 -1
- package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
- package/arcade/featureset/sources/FeatureLayerMemory.js +1 -1
- package/arcade/featureset/sources/FeatureLayerRelated.js +1 -1
- package/arcade/featureset/support/FeatureSet.js +1 -1
- package/arcade/featureset/support/FeatureSetIterator.js +1 -1
- package/arcade/featureset/support/shared.js +1 -1
- package/arcade/featureset/support/stats.js +1 -1
- package/arcade/functions/featuresetbase.js +1 -1
- package/arcade/functions/featuresetgeom.js +1 -1
- package/arcade/functions/featuresetstats.js +1 -1
- package/arcade/functions/featuresetstring.js +1 -1
- package/arcade/functions/geomasync.js +1 -1
- package/arcade/languageUtils.js +1 -1
- package/arcade/request.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/0564f1cfa3d17ff1aad3.js +1 -0
- package/assets/esri/core/workers/chunks/0806d5d706a864542bfb.js +1 -0
- package/assets/esri/core/workers/chunks/0a6977144ea1abf96fbf.js +1 -0
- package/assets/esri/core/workers/chunks/13387f56acbc3291561a.js +1 -0
- package/assets/esri/core/workers/chunks/16c4e0a32d50d4db984d.js +1 -0
- package/assets/esri/core/workers/chunks/{076d1b1101b59af0d389.js → 1c010202b4c7e1d15f23.js} +1 -1
- package/assets/esri/core/workers/chunks/26827ec144676e6385f8.js +1 -0
- package/assets/esri/core/workers/chunks/287c484fd40eee643f3a.js +1 -0
- package/assets/esri/core/workers/chunks/5210f0b42dba27945226.js +1 -0
- package/assets/esri/core/workers/chunks/{db6c5b3b4efe8d804f9c.js → 52478ee2d2a1354b6900.js} +1 -1
- package/assets/esri/core/workers/chunks/5759af97f96f24c40105.js +1 -0
- package/assets/esri/core/workers/chunks/{b85218d44c6094b7e5e6.js → 6d7e2a23a0a5dd9ded1d.js} +1 -1
- package/assets/esri/core/workers/chunks/70b6356357e7640c4e8b.js +1 -0
- package/assets/esri/core/workers/chunks/7574316b3af61c389e8f.js +1 -0
- package/assets/esri/core/workers/chunks/7bc828fbdd54c0b28aac.js +1 -0
- package/assets/esri/core/workers/chunks/7e5c22b5a32ac74b1b6e.js +1 -0
- package/assets/esri/core/workers/chunks/8102bb78fe96e6197e4e.js +1 -0
- package/assets/esri/core/workers/chunks/88384e7cafbfd2348598.js +1 -0
- package/assets/esri/core/workers/chunks/9d7533aaeac3b8d145c4.js +1 -0
- package/assets/esri/core/workers/chunks/{1eecae5227318f491263.js → 9f4d892abf55e8625bc9.js} +3 -3
- package/assets/esri/core/workers/chunks/{98607a0da63626cc4614.js → a054a52712a118c6d505.js} +1 -1
- package/assets/esri/core/workers/chunks/{69a20e4d9e28c3e599fc.js → a3bb600bfcb0282622f1.js} +1 -1
- package/assets/esri/core/workers/chunks/aa49841b14c6e6df2a07.js +1 -0
- package/assets/esri/core/workers/chunks/b089058b64db3912478f.js +1 -0
- package/assets/esri/core/workers/chunks/b28539c5a6bedb71b038.js +1 -0
- package/assets/esri/core/workers/chunks/b4f171db73355c6f766e.js +1 -0
- package/assets/esri/core/workers/chunks/b7572b0921b23aef8b9d.js +1 -0
- package/assets/esri/core/workers/chunks/b758f3c419edc2306784.js +1 -0
- package/assets/esri/core/workers/chunks/c3e7290fb128d4fefd44.js +1 -0
- package/assets/esri/core/workers/chunks/c51c9b5da855f84b9a48.js +1 -0
- package/assets/esri/core/workers/chunks/c66ac36da6392b6bf331.js +1 -0
- package/assets/esri/core/workers/chunks/d16b328d32a6ddc2fdb9.js +1 -0
- package/assets/esri/core/workers/chunks/d94c5f36d52cf71f0bb9.js +1 -0
- package/assets/esri/core/workers/chunks/db937849b2c1af87b481.js +1 -0
- package/assets/esri/core/workers/chunks/{66cd99e91dad60c5274c.js → dc3ed59f450283d97a19.js} +1 -1
- package/assets/esri/core/workers/chunks/dcd0653191cd4a1ccaae.js +2 -0
- package/assets/esri/core/workers/chunks/{31df729c17470245288c.js.LICENSE.txt → dcd0653191cd4a1ccaae.js.LICENSE.txt} +2 -2
- package/assets/esri/core/workers/chunks/e4fdd1eaf987977d0a51.js +1 -0
- package/assets/esri/core/workers/chunks/e51f0e71f2a55af604d3.js +1 -0
- package/assets/esri/core/workers/chunks/eb3855d3753d6b8334bd.js +1 -0
- package/assets/esri/core/workers/chunks/{7c290763920f52a1f504.js → eeed138930a4a805691d.js} +1 -1
- package/assets/esri/core/workers/chunks/f435dc615fdc8917f6ca.js +1 -0
- package/assets/esri/core/workers/chunks/{d5c5b9f7f5401f36a3a5.js → f7f3dde4c8f9c687cc1e.js} +1 -1
- package/assets/esri/core/workers/chunks/fc6beaf9466ea3898549.js +1 -0
- package/assets/esri/libs/vxl/vxlLayer.wasm +0 -0
- package/assets/esri/themes/base/widgets/_Tooltip.scss +1 -0
- package/assets/esri/themes/base/widgets/_Weather.scss +1 -2
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/chunks/BlendLayers.glsl.js +6 -6
- package/chunks/arcade.js +1 -1
- package/chunks/array.js +1 -1
- package/chunks/languageUtils.js +1 -1
- package/config.js +1 -1
- package/core/sql/StandardizedFunctions.js +1 -1
- package/geohash/GeohashTree.js +1 -1
- package/geometry/support/contains.js +1 -1
- package/geometry/support/heightModelInfoUtils.js +1 -1
- package/geometry/support/intersects.js +1 -1
- package/geometry/support/intersectsBase.js +1 -1
- package/geometry/support/normalizeUtilsCommon.js +1 -1
- package/geometry/support/spatialReferenceUtils.js +1 -1
- package/interfaces.d.ts +685 -37
- package/layers/MediaLayer.d.ts +4 -0
- package/layers/MediaLayer.js +5 -0
- package/layers/VoxelLayer.js +1 -1
- package/layers/VoxelWasmPerSceneView.js +5 -0
- package/layers/graphics/OptimizedGeometry.js +1 -1
- package/layers/graphics/data/BoundsStore.js +1 -1
- package/layers/support/CornersGeoreference.d.ts +4 -0
- package/layers/support/CornersGeoreference.js +5 -0
- package/layers/support/ExtentAndRotationGeoreference.d.ts +4 -0
- package/layers/support/ExtentAndRotationGeoreference.js +5 -0
- package/layers/support/FeatureReduction.js +1 -1
- package/layers/support/FeatureReductionBinning.js +5 -0
- package/layers/support/GeoreferenceBase.js +5 -0
- package/layers/support/ImageElement.d.ts +4 -0
- package/layers/support/ImageElement.js +5 -0
- package/layers/support/LocalMediaElementSource.d.ts +4 -0
- package/layers/support/LocalMediaElementSource.js +5 -0
- package/layers/support/MediaElementBase.d.ts +4 -0
- package/layers/support/MediaElementBase.js +5 -0
- package/layers/support/RouteStopSymbols.d.ts +4 -0
- package/layers/support/RouteSymbols.d.ts +4 -0
- package/layers/support/VoxelFormat.d.ts +4 -0
- package/layers/support/VoxelStyle.d.ts +4 -0
- package/layers/support/VoxelVariable.d.ts +4 -0
- package/layers/support/VoxelVolume.d.ts +4 -0
- package/layers/support/VoxelVolumeStyle.d.ts +4 -0
- package/layers/support/arcgisLayerUrl.js +1 -1
- package/layers/support/featureReductionUtils.js +1 -1
- package/layers/support/fieldUtils.js +1 -1
- package/layers/support/rasterFormats/Lerc.js +1 -1
- package/package.json +3 -3
- package/request.js +1 -1
- package/support/requestUtils.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/Font.js +1 -1
- package/symbols/support/textUtils.js +1 -1
- package/views/2d/engine/brushes.js +1 -1
- package/views/2d/engine/webgl/FeatureTile.js +1 -1
- package/views/2d/engine/webgl/Overlay.js +5 -0
- package/views/2d/engine/webgl/OverlayContainer.js +5 -0
- package/views/2d/engine/webgl/brushes/BrushOverlay.js +5 -0
- package/views/2d/engine/webgl/collisions/CollisionEngine.js +1 -1
- package/views/2d/engine/webgl/shaders/OverlayPrograms.js +5 -0
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/layerViewModuleImportUtils.js +1 -1
- package/views/2d/layers/FeatureLayerView2D.js +1 -1
- package/views/2d/layers/ImageryTileLayerView2D.js +1 -1
- package/views/2d/layers/MapImageLayerView2D.js +1 -1
- package/views/2d/layers/MediaLayerView2D.js +5 -0
- package/views/2d/layers/StreamLayerView2D.js +1 -1
- package/views/2d/layers/WMTSLayerView2D.js +1 -1
- package/views/2d/layers/features/FeatureStore2D.js +1 -1
- package/views/2d/layers/features/Pipeline.js +1 -1
- package/views/2d/layers/features/Store2D.js +1 -1
- package/views/2d/layers/features/controllers/FeatureController2D.js +1 -1
- package/views/2d/layers/features/processors/SymbolProcessor.js +1 -1
- package/views/2d/layers/features/schemaUtils.js +1 -1
- package/views/2d/layers/features/sources/GeoEventSource.js +1 -1
- package/views/2d/layers/features/support/AttributeStore.js +1 -1
- package/views/2d/layers/features/support/BinStore.js +5 -0
- package/views/2d/layers/features/support/ClusterStore.js +1 -1
- package/views/2d/layers/features/tileRenderers/support/WGLFeatureView.js +1 -1
- package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
- package/views/2d/layers/support/clusterUtils.js +1 -1
- package/views/2d/magnifier/MagnifierView2D.js +1 -1
- package/views/2d/navigation/actions/Pinch.js +1 -1
- package/views/2d/viewpointUtils.js +1 -1
- package/views/3d/analysis/AnalysisView3D.js +1 -1
- package/views/3d/analysis/Dimensioning/DimensioningTool.js +5 -0
- package/views/3d/analysis/Dimensioning/DimensioningVisualization.js +1 -1
- package/views/3d/analysis/Dimensioning/LengthDimensionSubTool.js +5 -0
- package/views/3d/analysis/Dimensioning/{LinearDimensionVisualization.js → LengthDimensionVisualization.js} +1 -1
- package/views/3d/analysis/Dimensioning/settings.js +5 -0
- package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
- package/views/3d/analysis/Slice/sliceToolUtils.js +1 -1
- package/views/3d/interactive/SegmentLabels3D.js +5 -0
- package/views/3d/interactive/SnappingVisualizer3D.js +1 -1
- package/views/3d/interactive/editingTools/draw/DrawGraphicTool3D.js +1 -1
- package/views/3d/interactive/editingTools/reshapeGraphic/GraphicReshapeTool.js +1 -1
- package/views/3d/interactive/editingTools/reshapeGraphic/ReshapeOperation.js +1 -1
- package/views/3d/interactive/editingTools/transformGraphic/GraphicTransformTool.js +1 -1
- package/views/3d/interactive/editingTools/transformGraphic/ScaleRotateObjectSymbol3DAdapter.js +1 -1
- package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DView.js +1 -1
- package/views/3d/interactive/visualElements/LabelVisualElement.js +1 -1
- package/views/3d/layerViewModuleImportUtils.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/MediaLayerView3D.js +5 -0
- package/views/3d/layers/VoxelLayerView3D.js +1 -1
- package/views/3d/layers/i3s/IDBCache.js +1 -1
- package/views/3d/state/controllers/RotateController.js +1 -1
- package/views/3d/state/controllers/local/PinchAndPanController.js +1 -1
- package/views/3d/state/controllers/local/ZoomController.js +1 -1
- package/views/3d/state/controllers/local/ZoomStepController.js +1 -1
- package/views/3d/support/ResourceController.js +1 -1
- package/views/3d/support/sunUtils.js +1 -1
- package/views/3d/terrain/TerrainRenderer.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/terrain/TileCompositor.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/util/BlendLayers.glsl.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/materials/WaterGLMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/WaterMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/WaterTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/TerrainTechniqueConfiguration.js +1 -1
- package/views/DOMContainer.js +1 -1
- package/views/GroundView.js +1 -1
- package/views/SceneView.js +1 -1
- package/views/ToolViewManager.js +1 -1
- package/views/View.js +1 -1
- package/views/draw/DrawOperation.js +1 -1
- package/views/draw/support/Reshape.js +1 -1
- package/views/interactive/GraphicManipulator.js +1 -1
- package/views/interactive/InteractiveToolBase.js +1 -1
- package/views/interactive/SegmentLabels.js +5 -0
- package/views/interactive/snapping/FeatureSnappingEngine.js +1 -1
- package/views/interactive/snapping/LineSnapper.js +1 -1
- package/views/interactive/snapping/ParallelLineSnapper.js +1 -1
- package/views/interactive/snapping/RightAngleSnapper.js +1 -1
- package/views/interactive/snapping/RightAngleTriangleSnapper.js +1 -1
- package/views/interactive/snapping/SnappingAlgorithm.js +1 -1
- package/views/interactive/snapping/SnappingManager.js +1 -1
- package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorker.js +1 -1
- package/views/interactive/snapping/snappingUtils.js +1 -1
- package/views/interactive/support/viewUtils.js +5 -0
- package/views/interactive/tooltip/DrawPointTooltipInfo.js +5 -0
- package/views/interactive/tooltip/DrawPolygonTooltipInfo.js +5 -0
- package/views/interactive/tooltip/DrawPolylineTooltipInfo.js +5 -0
- package/views/interactive/tooltip/Tooltip.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentDrawPolygon.js +1 -1
- package/views/interactive/tooltip/support/measurements.js +5 -0
- package/views/layers/FeatureLayerView.js +1 -1
- package/views/layers/GroupLayerView.js +1 -1
- package/views/overlay/TextOverlayItem.js +1 -1
- package/views/support/Scheduler.js +1 -1
- package/views/support/screenUtils.js +1 -1
- package/webscene/Slide.js +1 -1
- package/widgets/Attribution/AttributionViewModel.js +1 -1
- package/widgets/Bookmarks.js +1 -1
- package/widgets/CoordinateConversion/CoordinateConversionViewModel.js +1 -1
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/Editor/UpdateWorkflow.js +1 -1
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/Editor.js +1 -1
- package/widgets/ElevationProfile/support/chartUtils.js +1 -1
- package/widgets/ElevationProfile.js +1 -1
- package/widgets/Feature/FeatureAttachments.js +1 -1
- package/widgets/Feature/FeatureContent/FeatureContentViewModel.js +1 -1
- package/widgets/Feature/FeatureExpression/FeatureExpressionViewModel.js +1 -1
- package/widgets/Feature/FeatureExpression.js +1 -1
- package/widgets/Feature/FeatureFields.js +1 -1
- package/widgets/Feature/FeatureViewModel.js +1 -1
- package/widgets/Feature.js +1 -1
- package/widgets/FeatureForm/InputFieldGroup.js +1 -1
- package/widgets/FeatureForm.js +1 -1
- package/widgets/FeatureTable/FieldColumn.js +1 -1
- package/widgets/FeatureTable/Grid/Column.js +1 -1
- package/widgets/FeatureTable/Grid/Grid.js +11 -11
- package/widgets/FeatureTable/Grid/support/ButtonMenu.js +1 -1
- package/widgets/FeatureTemplates/FeatureTemplatesViewModel.js +1 -1
- package/widgets/FeatureTemplates/TemplateItem.js +1 -1
- package/widgets/FeatureTemplates.js +1 -1
- package/widgets/FloorFilter/FloorFilterViewModel.js +1 -1
- package/widgets/FloorFilter.js +1 -1
- package/widgets/HistogramRangeSlider.js +1 -1
- package/widgets/LayerList/LayerListViewModel.js +1 -1
- package/widgets/LayerList/ListItem.js +1 -1
- package/widgets/LayerList/ListItemPanel.js +1 -1
- package/widgets/LayerList.js +1 -1
- package/widgets/Legend/LegendViewModel.js +1 -1
- package/widgets/Legend/styles/Card.js +1 -1
- package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
- package/widgets/Legend.js +1 -1
- package/widgets/LineOfSight/LineOfSightViewModel.js +1 -1
- package/widgets/Measurement.js +1 -1
- package/widgets/NavigationToggle/NavigationToggleViewModel.js +1 -1
- package/widgets/Popup/PopupViewModel.js +1 -1
- package/widgets/Popup.js +1 -1
- package/widgets/Print/FileLink.js +1 -1
- package/widgets/Print.js +1 -1
- package/widgets/ScaleBar.js +1 -1
- package/widgets/ScaleRangeSlider/ScaleRangeSliderViewModel.js +1 -1
- package/widgets/ScaleRangeSlider.js +1 -1
- package/widgets/Search/SearchViewModel.js +1 -1
- package/widgets/Search.js +1 -1
- package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
- package/widgets/Sketch/SketchViewModel.js +1 -1
- package/widgets/Sketch.js +1 -1
- package/widgets/TableList/ListItem.js +1 -1
- package/widgets/Weather/LabeledSlider.js +1 -1
- package/widgets/Weather/VisibleElements.js +5 -0
- package/widgets/Weather/css.js +1 -1
- package/widgets/Weather.js +1 -1
- package/widgets/support/AnalysisViewModel.js +1 -1
- package/widgets/support/InteractiveAnalysisViewModel.js +1 -1
- package/analysis/LinearDimension.d.ts +0 -4
- package/analysis/LinearDimension.js +0 -5
- package/assets/esri/core/workers/chunks/0018053ac16a09feba70.js +0 -1
- package/assets/esri/core/workers/chunks/042938ca73f0b9e5a7e2.js +0 -1
- package/assets/esri/core/workers/chunks/048645611caa28dca7cd.js +0 -1
- package/assets/esri/core/workers/chunks/0b72d123386dc4ec7538.js +0 -1
- package/assets/esri/core/workers/chunks/13b04d5bf348ab5054c2.js +0 -1
- package/assets/esri/core/workers/chunks/215007e7c44811d90777.js +0 -1
- package/assets/esri/core/workers/chunks/31df729c17470245288c.js +0 -2
- package/assets/esri/core/workers/chunks/36272141b3c33cb19026.js +0 -1
- package/assets/esri/core/workers/chunks/36c8e8de9c3f67d32572.js +0 -1
- package/assets/esri/core/workers/chunks/37c428489c59df4b597b.js +0 -1
- package/assets/esri/core/workers/chunks/493169fd978fd543ef3b.js +0 -1
- package/assets/esri/core/workers/chunks/4f378ad6f4299183df85.js +0 -1
- package/assets/esri/core/workers/chunks/58e4c6ce1580427e7b55.js +0 -1
- package/assets/esri/core/workers/chunks/6c5441da675a8af35be2.js +0 -1
- package/assets/esri/core/workers/chunks/6ea16f6a0df946de480b.js +0 -1
- package/assets/esri/core/workers/chunks/7dfd70f4fa1096e56641.js +0 -1
- package/assets/esri/core/workers/chunks/88193e61072d7bf957f5.js +0 -1
- package/assets/esri/core/workers/chunks/8ccbde593c86c872e525.js +0 -1
- package/assets/esri/core/workers/chunks/9c6be39f1f21ab8b1c2d.js +0 -1
- package/assets/esri/core/workers/chunks/a73795cce722ba15b3da.js +0 -1
- package/assets/esri/core/workers/chunks/a8ed1a938dc164b401d9.js +0 -1
- package/assets/esri/core/workers/chunks/a9a73bc4875a5aeaf1b9.js +0 -1
- package/assets/esri/core/workers/chunks/adcc5bce6c0971c1b592.js +0 -1
- package/assets/esri/core/workers/chunks/afddfe620e6539991e6b.js +0 -1
- package/assets/esri/core/workers/chunks/b340c9bdabdb37995c8f.js +0 -1
- package/assets/esri/core/workers/chunks/b4c23630d6c85f7b59c0.js +0 -1
- package/assets/esri/core/workers/chunks/c180c40838246985479d.js +0 -1
- package/assets/esri/core/workers/chunks/caed2365bd296fcc8a75.js +0 -1
- package/assets/esri/core/workers/chunks/d85b5b73a151c6fbb658.js +0 -1
- package/assets/esri/core/workers/chunks/da6261673c3e1537b6a6.js +0 -1
- package/assets/esri/core/workers/chunks/dafe120243db6648a4ab.js +0 -1
- package/assets/esri/core/workers/chunks/ec6d138e8183e193f977.js +0 -1
- package/assets/esri/core/workers/chunks/ed4519ac9533a4d340f1.js +0 -1
- package/assets/esri/core/workers/chunks/f206300eef4560611728.js +0 -1
- package/assets/esri/core/workers/chunks/f55cbaf5a1d6ee6ac171.js +0 -1
- package/layers/GeoreferencedImageLayer.d.ts +0 -4
- package/layers/GeoreferencedImageLayer.js +0 -5
- package/layers/VoxelWasmManager.js +0 -5
- package/layers/VoxelWasmPerScene.js +0 -5
- package/views/3d/interactive/measurementTools/support/viewUtils.js +0 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3529],{63529:(e,a,r)=>{r.r(a),r.d(a,{fetchFeatureService:()=>m,fromUrl:()=>y});var t=r(3172),n=r(20102),l=r(70586),s=r(17452),i=r(66677),o=r(87344);async function y(e){const a=e.properties?.customParameters,t=await async function(e,a){let r=(0,i.Qc)(e);if((0,l.Wi)(r)&&(r=await c(e,a)),(0,l.Wi)(r))throw new n.Z("arcgis-layers:url-mismatch","The url '${url}' is not a valid arcgis resource",{url:e});const{serverType:t,sublayer:s}=r;let y;const u={FeatureServer:"FeatureLayer",StreamServer:"StreamLayer",VectorTileServer:"VectorTileLayer"};switch(t){case"MapServer":y=null!=s?"FeatureLayer":async function(e,a){return(await b(e,{customParameters:a})).tileInfo}(e,a).then((e=>e?"TileLayer":"MapImageLayer"));break;case"ImageServer":y=b(e,{customParameters:a}).then((e=>{const a=e.tileInfo&&e.tileInfo.format;return e.tileInfo?"LERC"!==a?.toUpperCase()||e.cacheType&&"elevation"!==e.cacheType.toLowerCase()?"ImageryTileLayer":"ElevationLayer":"ImageryLayer"}));break;case"SceneServer":y=b(r.url.path,{customParameters:a}).then((e=>{if(e){if("Voxel"===e?.layerType)return"VoxelLayer";if(e?.layers&&Array.isArray(e.layers)&&e.layers.length>0){const a={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"},r=e.layers[0]?.layerType;if(null!=a[r])return a[r]}}return"SceneLayer"}));break;default:y=u[t]}const d="FeatureServer"===t,f={parsedUrl:r,Constructor:null,layerOrTableId:d?s:null,sublayerIds:null,tableIds:null},h=await y;if({FeatureLayer:!0,SceneLayer:!0}[h]&&null==s){const r=await async function(e,a,r){let t,n=!1;if("FeatureServer"===a){const a=await m(e,{customParameters:r});n=!!a.layersJSON,t=a.layersJSON||a.serviceJSON}else t=await b(e,{customParameters:r});const l=t?.layers,s=t?.tables;return{layerIds:l?.map((e=>e.id)).reverse()||[],tableIds:s?.map((e=>e.id)).reverse()||[],layerInfos:n?l:[],tableInfos:n?s:[]}}(e,t,a);d&&(f.sublayerInfos=r.layerInfos,f.tableInfos=r.tableInfos),1!==r.layerIds.length+r.tableIds.length?(f.sublayerIds=r.layerIds,f.tableIds=r.tableIds):d&&(f.layerOrTableId=r.layerIds[0]??r.tableIds[0],f.sourceJSON=r.layerInfos[0]??r.tableInfos[0])}return f.Constructor=await async function(e){return(0,o.T[e])()}(h),f}(e.url,a),s={...e.properties,url:e.url};if(!t.sublayerIds)return null!=t.layerOrTableId&&(s.layerId=t.layerOrTableId,s.sourceJSON=t.sourceJSON),new t.Constructor(s);const y=new(0,(await Promise.all([r.e(6968),r.e(5787)]).then(r.bind(r,89348))).default)({title:t.parsedUrl.title});return function(e,a,r){function t(e,t){const n={...r,layerId:e,sublayerTitleMode:"service-name"};return(0,l.pC)(t)&&(n.sourceJSON=t),new a.Constructor(n)}a.sublayerIds.forEach((r=>{const n=t(r,u(a.sublayerInfos,r));e.add(n)})),a.tableIds.forEach((r=>{const n=t(r,u(a.tableInfos,r));e.tables.add(n)}))}(y,t,s),y}function u(e,a){return e?e.find((e=>e.id===a)):null}async function c(e,a){const r=await b(e,{customParameters:a});let t=null,n=null;const o=r.type;if("Feature Layer"===o||"Table"===o?(t="FeatureServer",n=r.id):"indexedVector"===o?t="VectorTileServer":r.hasOwnProperty("mapName")?t="MapServer":r.hasOwnProperty("bandCount")&&r.hasOwnProperty("pixelSizeX")?t="ImageServer":r.hasOwnProperty("maxRecordCount")&&r.hasOwnProperty("allowGeometryUpdates")?t="FeatureServer":r.hasOwnProperty("streamUrls")?t="StreamServer":d(r)?(t="SceneServer",n=r.id):r.hasOwnProperty("layers")&&d(r.layers?.[0])&&(t="SceneServer"),!t)return null;const y=null!=n?(0,i.DR)(e):null;return{title:(0,l.pC)(y)&&r.name||(0,s.vt)(e),serverType:t,sublayer:n,url:{path:(0,l.pC)(y)?y.serviceUrl:(0,s.mN)(e).path}}}function d(e){return e?.hasOwnProperty("store")&&e.hasOwnProperty("id")&&"number"==typeof e.id}function f(e){return!e.type||"Feature Layer"===e.type}async function m(e,a){let r=await b(e,a);r=r||{},r.layers=r.layers?.filter(f)||[];const t={serviceJSON:r};if(r.currentVersion<10.5)return t;const n=await b(e+"/layers",a);return t.layersJSON={layers:n?.layers?.filter(f)||[],tables:n?.tables||[]},t}async function b(e,a){return(await(0,t.default)(e,{responseType:"json",query:{f:"json",...a?.customParameters,token:a?.apiKey}})).data}},87344:(e,a,r)=>{r.d(a,{T:()=>t});const t={BingMapsLayer:async()=>(await Promise.all([r.e(6968),r.e(2723)]).then(r.bind(r,2723))).default,BuildingSceneLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(3471),r.e(1423),r.e(
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3529],{63529:(e,a,r)=>{r.r(a),r.d(a,{fetchFeatureService:()=>m,fromUrl:()=>y});var t=r(3172),n=r(20102),l=r(70586),s=r(17452),i=r(66677),o=r(87344);async function y(e){const a=e.properties?.customParameters,t=await async function(e,a){let r=(0,i.Qc)(e);if((0,l.Wi)(r)&&(r=await c(e,a)),(0,l.Wi)(r))throw new n.Z("arcgis-layers:url-mismatch","The url '${url}' is not a valid arcgis resource",{url:e});const{serverType:t,sublayer:s}=r;let y;const u={FeatureServer:"FeatureLayer",StreamServer:"StreamLayer",VectorTileServer:"VectorTileLayer"};switch(t){case"MapServer":y=null!=s?"FeatureLayer":async function(e,a){return(await b(e,{customParameters:a})).tileInfo}(e,a).then((e=>e?"TileLayer":"MapImageLayer"));break;case"ImageServer":y=b(e,{customParameters:a}).then((e=>{const a=e.tileInfo&&e.tileInfo.format;return e.tileInfo?"LERC"!==a?.toUpperCase()||e.cacheType&&"elevation"!==e.cacheType.toLowerCase()?"ImageryTileLayer":"ElevationLayer":"ImageryLayer"}));break;case"SceneServer":y=b(r.url.path,{customParameters:a}).then((e=>{if(e){if("Voxel"===e?.layerType)return"VoxelLayer";if(e?.layers&&Array.isArray(e.layers)&&e.layers.length>0){const a={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"},r=e.layers[0]?.layerType;if(null!=a[r])return a[r]}}return"SceneLayer"}));break;default:y=u[t]}const d="FeatureServer"===t,f={parsedUrl:r,Constructor:null,layerOrTableId:d?s:null,sublayerIds:null,tableIds:null},h=await y;if({FeatureLayer:!0,SceneLayer:!0}[h]&&null==s){const r=await async function(e,a,r){let t,n=!1;if("FeatureServer"===a){const a=await m(e,{customParameters:r});n=!!a.layersJSON,t=a.layersJSON||a.serviceJSON}else t=await b(e,{customParameters:r});const l=t?.layers,s=t?.tables;return{layerIds:l?.map((e=>e.id)).reverse()||[],tableIds:s?.map((e=>e.id)).reverse()||[],layerInfos:n?l:[],tableInfos:n?s:[]}}(e,t,a);d&&(f.sublayerInfos=r.layerInfos,f.tableInfos=r.tableInfos),1!==r.layerIds.length+r.tableIds.length?(f.sublayerIds=r.layerIds,f.tableIds=r.tableIds):d&&(f.layerOrTableId=r.layerIds[0]??r.tableIds[0],f.sourceJSON=r.layerInfos[0]??r.tableInfos[0])}return f.Constructor=await async function(e){return(0,o.T[e])()}(h),f}(e.url,a),s={...e.properties,url:e.url};if(!t.sublayerIds)return null!=t.layerOrTableId&&(s.layerId=t.layerOrTableId,s.sourceJSON=t.sourceJSON),new t.Constructor(s);const y=new(0,(await Promise.all([r.e(6968),r.e(5787)]).then(r.bind(r,89348))).default)({title:t.parsedUrl.title});return function(e,a,r){function t(e,t){const n={...r,layerId:e,sublayerTitleMode:"service-name"};return(0,l.pC)(t)&&(n.sourceJSON=t),new a.Constructor(n)}a.sublayerIds.forEach((r=>{const n=t(r,u(a.sublayerInfos,r));e.add(n)})),a.tableIds.forEach((r=>{const n=t(r,u(a.tableInfos,r));e.tables.add(n)}))}(y,t,s),y}function u(e,a){return e?e.find((e=>e.id===a)):null}async function c(e,a){const r=await b(e,{customParameters:a});let t=null,n=null;const o=r.type;if("Feature Layer"===o||"Table"===o?(t="FeatureServer",n=r.id):"indexedVector"===o?t="VectorTileServer":r.hasOwnProperty("mapName")?t="MapServer":r.hasOwnProperty("bandCount")&&r.hasOwnProperty("pixelSizeX")?t="ImageServer":r.hasOwnProperty("maxRecordCount")&&r.hasOwnProperty("allowGeometryUpdates")?t="FeatureServer":r.hasOwnProperty("streamUrls")?t="StreamServer":d(r)?(t="SceneServer",n=r.id):r.hasOwnProperty("layers")&&d(r.layers?.[0])&&(t="SceneServer"),!t)return null;const y=null!=n?(0,i.DR)(e):null;return{title:(0,l.pC)(y)&&r.name||(0,s.vt)(e),serverType:t,sublayer:n,url:{path:(0,l.pC)(y)?y.serviceUrl:(0,s.mN)(e).path}}}function d(e){return e?.hasOwnProperty("store")&&e.hasOwnProperty("id")&&"number"==typeof e.id}function f(e){return!e.type||"Feature Layer"===e.type}async function m(e,a){let r=await b(e,a);r=r||{},r.layers=r.layers?.filter(f)||[];const t={serviceJSON:r};if(r.currentVersion<10.5)return t;const n=await b(e+"/layers",a);return t.layersJSON={layers:n?.layers?.filter(f)||[],tables:n?.tables||[]},t}async function b(e,a){return(await(0,t.default)(e,{responseType:"json",query:{f:"json",...a?.customParameters,token:a?.apiKey}})).data}},87344:(e,a,r)=>{r.d(a,{T:()=>t});const t={BingMapsLayer:async()=>(await Promise.all([r.e(6968),r.e(2723)]).then(r.bind(r,2723))).default,BuildingSceneLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(3471),r.e(1423),r.e(6105),r.e(7832),r.e(8326),r.e(3121),r.e(4133),r.e(2485)]).then(r.bind(r,30223))).default,CSVLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(3471),r.e(1423),r.e(6105),r.e(7832),r.e(8326),r.e(3121),r.e(4910)]).then(r.bind(r,45425))).default,ElevationLayer:async()=>(await Promise.all([r.e(1938),r.e(9932)]).then(r.bind(r,49932))).default,FeatureLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(3471),r.e(1423),r.e(6105),r.e(7832),r.e(8326),r.e(3121),r.e(4477)]).then(r.bind(r,3121))).default,GroupLayer:async()=>(await Promise.all([r.e(6968),r.e(9348)]).then(r.bind(r,89348))).default,GeoRSSLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(3723)]).then(r.bind(r,3723))).default,GeoJSONLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(3471),r.e(1423),r.e(6105),r.e(7832),r.e(7202)]).then(r.bind(r,23477))).default,ImageryLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(3471),r.e(8326),r.e(176),r.e(2173),r.e(510)]).then(r.bind(r,510))).default,ImageryTileLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(4547),r.e(3471),r.e(1938),r.e(176),r.e(2173),r.e(2398),r.e(3301)]).then(r.bind(r,69971))).default,IntegratedMeshLayer:async()=>(await Promise.all([r.e(4547),r.e(4133),r.e(8297)]).then(r.bind(r,4717))).default,KMLLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(3471),r.e(1423),r.e(739)]).then(r.bind(r,42756))).default,MapImageLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(3471),r.e(1423),r.e(7832),r.e(3128),r.e(7374)]).then(r.bind(r,27374))).default,MapNotesLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(4547),r.e(3471),r.e(1423),r.e(6105),r.e(7832),r.e(8326),r.e(3121),r.e(3750)]).then(r.bind(r,62128))).default,OGCFeatureLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(3471),r.e(1423),r.e(6105),r.e(7832),r.e(2855)]).then(r.bind(r,88068))).default,OpenStreetMapLayer:async()=>(await Promise.all([r.e(6968),r.e(6199),r.e(6237)]).then(r.bind(r,66237))).default,PointCloudLayer:async()=>(await Promise.all([r.e(1773),r.e(4133),r.e(1197)]).then(r.bind(r,10608))).default,RouteLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(4547),r.e(3471),r.e(1423),r.e(8157)]).then(r.bind(r,50445))).default,SceneLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(3471),r.e(1423),r.e(6105),r.e(7832),r.e(8326),r.e(3121),r.e(4133),r.e(6135)]).then(r.bind(r,49254))).default,StreamLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(3471),r.e(1423),r.e(6105),r.e(1408)]).then(r.bind(r,88387))).default,TileLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(3471),r.e(1423),r.e(7832),r.e(1938),r.e(3128),r.e(8636)]).then(r.bind(r,98636))).default,UnknownLayer:async()=>(await r.e(4166).then(r.bind(r,44166))).default,UnsupportedLayer:async()=>(await r.e(9296).then(r.bind(r,39296))).default,VectorTileLayer:async()=>(await Promise.all([r.e(6968),r.e(1938),r.e(4325),r.e(1785),r.e(4756)]).then(r.bind(r,94756))).default,VoxelLayer:async()=>(await Promise.all([r.e(4133),r.e(2320)]).then(r.bind(r,31017))).default,WebTileLayer:async()=>(await Promise.all([r.e(6968),r.e(6199)]).then(r.bind(r,16199))).default,WFSLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(4547),r.e(3471),r.e(1423),r.e(6105),r.e(3974)]).then(r.bind(r,12653))).default,WMSLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(5906)]).then(r.bind(r,25906))).default,WMTSLayer:async()=>(await Promise.all([r.e(6968),r.e(6199),r.e(5853)]).then(r.bind(r,55853))).default}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2664,3529],{65845:(e,a,t)=>{t.d(a,{D:()=>n});var r=t(81153);function n(e){e&&e.writtenProperties&&e.writtenProperties.forEach((e=>{const a=e.target;e.newOrigin&&e.oldOrigin!==e.newOrigin&&(0,r.l)(a)&&a.updateOrigin(e.propName,e.newOrigin)}))}},81153:(e,a,t)=>{function r(e){return e&&"getAtOrigin"in e&&"originOf"in e}t.d(a,{l:()=>r})},32664:(e,a,t)=>{t.r(a),t.d(a,{save:()=>C,saveAs:()=>M});var r=t(67676),n=t(20102),l=t(92604),s=t(70586),i=t(95330),o=t(65845),u=t(3121),c=t(63529),y=t(84230),d=t(65587),f=t(15235),p=t(33516),m=t(14661);const w=l.Z.getLogger("esri.layers.FeatureLayer"),b="Feature Service";function h(e,a){return`Layer (title: ${e.title}, id: ${e.id}) of type '${e.declaredClass}' ${a}`}function S(e,a){if(a.type!==b)throw new n.Z("feature-layer:portal-item-wrong-type",h(e,`should have portal item of type "${b}"`))}async function I(e){if(await e.load(),(0,y.rQ)(e))throw new n.Z("feature-layer:save",h(e,"using an in-memory source cannot be saved to a portal item"));if(e.isTable)throw new n.Z("feature-layer:save",h(e,"using a table source cannot be saved to a portal item"))}async function L(e,a,t){"beforeSave"in e&&"function"==typeof e.beforeSave&&await e.beforeSave();const r=e.write({},a);return function(e,a){let t=e.messages.filter((({type:e})=>"error"===e)).map((({name:e,message:a,details:t})=>new n.Z(e,a,t)));if(a?.ignoreUnsupported&&(t=t.filter((({name:e})=>"layer:unsupported"!==e&&"symbol:unsupported"!==e&&"symbol-layer:unsupported"!==e&&"property:unsupported"!==e&&"url:unsupported"!==e))),t.length>0)throw new n.Z("feature-layer:save","Failed to save feature layer due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:t})}(a,t),r}function P(e,a){return e.isTable?{layers:[],tables:[a]}:{layers:[a],tables:[]}}function v(e){(0,m.qj)(e,m.Kz.JSAPI),e.typeKeywords&&(e.typeKeywords=e.typeKeywords.filter(((e,a,t)=>t.indexOf(e)===a)))}function g(e,a,t){const n=(0,r.e5)(e,a,((e,a)=>e.id===a.id));e=e.filter((e=>!n.removed.some((a=>a.id===e.id))));const l=n.added.map((({id:e})=>({id:e})));return l.forEach((({id:a})=>{e.push({id:a})})),{itemResources:e,added:l.filter((({id:e})=>e!==t))}}function O(e,a,t){e.isTable?T(t.tables,a):T(t.layers,a)}function T(e,a){const t=e.findIndex((({id:e})=>e===a.id));-1===t?e.push(a):e[t]=a}const C=(0,i.Ds)((async function(e,a){await I(e),function(e){const a=e.portalItem;if(!a)throw w.error("save: requires the portalItem property to be set"),new n.Z("feature-layer:portal-item-not-set",h(e,"requires the portalItem property to be set"));if(!a.loaded)throw new n.Z("feature-layer:portal-item-not-loaded",h(e,"cannot be saved to a portal item that does not exist or is inaccessible"));S(e,a)}(e);const t=e.portalItem,r=(0,p.Y)(t),l=await L(e,r,a),y=await async function(e,a){const t=e.portalItem;if(/\/\d+\/?$/.test(t.url))return P(e,a);let r=await t.fetchData("json");return r&&null!=r.layers&&null!=r.tables||(r=await async function(e,a){var t,r;a||(a={}),(t=a).layers||(t.layers=[]),(r=a).tables||(r.tables=[]);const{url:n,layerId:l,customParameters:o,apiKey:y}=e,{serviceJSON:d,layersJSON:f}=await(0,c.fetchFeatureService)(n,{customParameters:o,apiKey:y}),p=g(a.layers,d.layers,l),m=g(a.tables,d.tables,l);a.layers=p.itemResources,a.tables=m.itemResources;const w=[...p.added,...m.added],b=f?[...f.layers,...f.tables]:[];return await async function(e,a,t,r){const n=a.map((({id:e})=>new u.default({url:t,layerId:e,sourceJSON:r.find((({id:a})=>a===e))})));await(0,i.as)(n.map((e=>e.load()))),n.forEach((a=>{const{layerId:t,loaded:r,defaultPopupTemplate:n}=a;r&&!(0,s.Wi)(n)&&O(a,{id:t,popupInfo:n.toJSON()},e)}))}(a,w,n,b),a}(e,r)),O(e,a,r),r}(e,l);return v(t),await t.update({data:y}),(0,o.D)(r),t})),M=(0,i.Ds)((async function(e,a,t){await I(e);const r=function(e,a){var t,r;let n=f.default.from(a);return n.id&&(n=n.clone(),n.id=null),(t=n).type??(t.type=b),(r=n).portal??(r.portal=d.Z.getDefault()),S(e,n),n}(e,a),n=(0,p.Y)(r),l=P(e,await L(e,n,t));return await async function(e,a){const{url:t,title:r,fullExtent:n,isTable:l}=e;a.url=t,a.title||(a.title=r),a.extent=null,!l&&(0,s.pC)(n)&&(a.extent=await(0,m.$o)(n)),(0,m.ck)(a,m.Kz.METADATA),(0,m.ck)(a,m.Kz.MULTI_LAYER),(0,m.qj)(a,m.Kz.SINGLE_LAYER),v(a)}(e,r),await async function(e,a,t){const r=e.portal;await r._signIn(),await r.user.addItem({item:e,data:a,folder:t?.folder})}(r,l,t),e.portalItem=r,(0,o.D)(n),r}))},63529:(e,a,t)=>{t.r(a),t.d(a,{fetchFeatureService:()=>p,fromUrl:()=>u});var r=t(3172),n=t(20102),l=t(70586),s=t(17452),i=t(66677),o=t(87344);async function u(e){const a=e.properties?.customParameters,r=await async function(e,a){let t=(0,i.Qc)(e);if((0,l.Wi)(t)&&(t=await y(e,a)),(0,l.Wi)(t))throw new n.Z("arcgis-layers:url-mismatch","The url '${url}' is not a valid arcgis resource",{url:e});const{serverType:r,sublayer:s}=t;let u;const c={FeatureServer:"FeatureLayer",StreamServer:"StreamLayer",VectorTileServer:"VectorTileLayer"};switch(r){case"MapServer":u=null!=s?"FeatureLayer":async function(e,a){return(await m(e,{customParameters:a})).tileInfo}(e,a).then((e=>e?"TileLayer":"MapImageLayer"));break;case"ImageServer":u=m(e,{customParameters:a}).then((e=>{const a=e.tileInfo&&e.tileInfo.format;return e.tileInfo?"LERC"!==a?.toUpperCase()||e.cacheType&&"elevation"!==e.cacheType.toLowerCase()?"ImageryTileLayer":"ElevationLayer":"ImageryLayer"}));break;case"SceneServer":u=m(t.url.path,{customParameters:a}).then((e=>{if(e){if("Voxel"===e?.layerType)return"VoxelLayer";if(e?.layers&&Array.isArray(e.layers)&&e.layers.length>0){const a={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"},t=e.layers[0]?.layerType;if(null!=a[t])return a[t]}}return"SceneLayer"}));break;default:u=c[r]}const d="FeatureServer"===r,f={parsedUrl:t,Constructor:null,layerOrTableId:d?s:null,sublayerIds:null,tableIds:null},w=await u;if({FeatureLayer:!0,SceneLayer:!0}[w]&&null==s){const t=await async function(e,a,t){let r,n=!1;if("FeatureServer"===a){const a=await p(e,{customParameters:t});n=!!a.layersJSON,r=a.layersJSON||a.serviceJSON}else r=await m(e,{customParameters:t});const l=r?.layers,s=r?.tables;return{layerIds:l?.map((e=>e.id)).reverse()||[],tableIds:s?.map((e=>e.id)).reverse()||[],layerInfos:n?l:[],tableInfos:n?s:[]}}(e,r,a);d&&(f.sublayerInfos=t.layerInfos,f.tableInfos=t.tableInfos),1!==t.layerIds.length+t.tableIds.length?(f.sublayerIds=t.layerIds,f.tableIds=t.tableIds):d&&(f.layerOrTableId=t.layerIds[0]??t.tableIds[0],f.sourceJSON=t.layerInfos[0]??t.tableInfos[0])}return f.Constructor=await async function(e){return(0,o.T[e])()}(w),f}(e.url,a),s={...e.properties,url:e.url};if(!r.sublayerIds)return null!=r.layerOrTableId&&(s.layerId=r.layerOrTableId,s.sourceJSON=r.sourceJSON),new r.Constructor(s);const u=new(0,(await Promise.all([t.e(6968),t.e(5787)]).then(t.bind(t,89348))).default)({title:r.parsedUrl.title});return function(e,a,t){function r(e,r){const n={...t,layerId:e,sublayerTitleMode:"service-name"};return(0,l.pC)(r)&&(n.sourceJSON=r),new a.Constructor(n)}a.sublayerIds.forEach((t=>{const n=r(t,c(a.sublayerInfos,t));e.add(n)})),a.tableIds.forEach((t=>{const n=r(t,c(a.tableInfos,t));e.tables.add(n)}))}(u,r,s),u}function c(e,a){return e?e.find((e=>e.id===a)):null}async function y(e,a){const t=await m(e,{customParameters:a});let r=null,n=null;const o=t.type;if("Feature Layer"===o||"Table"===o?(r="FeatureServer",n=t.id):"indexedVector"===o?r="VectorTileServer":t.hasOwnProperty("mapName")?r="MapServer":t.hasOwnProperty("bandCount")&&t.hasOwnProperty("pixelSizeX")?r="ImageServer":t.hasOwnProperty("maxRecordCount")&&t.hasOwnProperty("allowGeometryUpdates")?r="FeatureServer":t.hasOwnProperty("streamUrls")?r="StreamServer":d(t)?(r="SceneServer",n=t.id):t.hasOwnProperty("layers")&&d(t.layers?.[0])&&(r="SceneServer"),!r)return null;const u=null!=n?(0,i.DR)(e):null;return{title:(0,l.pC)(u)&&t.name||(0,s.vt)(e),serverType:r,sublayer:n,url:{path:(0,l.pC)(u)?u.serviceUrl:(0,s.mN)(e).path}}}function d(e){return e?.hasOwnProperty("store")&&e.hasOwnProperty("id")&&"number"==typeof e.id}function f(e){return!e.type||"Feature Layer"===e.type}async function p(e,a){let t=await m(e,a);t=t||{},t.layers=t.layers?.filter(f)||[];const r={serviceJSON:t};if(t.currentVersion<10.5)return r;const n=await m(e+"/layers",a);return r.layersJSON={layers:n?.layers?.filter(f)||[],tables:n?.tables||[]},r}async function m(e,a){return(await(0,r.default)(e,{responseType:"json",query:{f:"json",...a?.customParameters,token:a?.apiKey}})).data}},84230:(e,a,t)=>{function r(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}t.d(a,{rQ:()=>r})},87344:(e,a,t)=>{t.d(a,{T:()=>r});const r={BingMapsLayer:async()=>(await Promise.all([t.e(6968),t.e(2723)]).then(t.bind(t,2723))).default,BuildingSceneLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(1773),t.e(3471),t.e(1423),t.e(635),t.e(7832),t.e(8326),t.e(3121),t.e(4133),t.e(2485)]).then(t.bind(t,30223))).default,CSVLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(1773),t.e(3471),t.e(1423),t.e(635),t.e(7832),t.e(8326),t.e(3121),t.e(4910)]).then(t.bind(t,45425))).default,ElevationLayer:async()=>(await Promise.all([t.e(1938),t.e(9932)]).then(t.bind(t,49932))).default,FeatureLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(1773),t.e(3471),t.e(1423),t.e(635),t.e(7832),t.e(8326),t.e(3121),t.e(4477)]).then(t.bind(t,3121))).default,GroupLayer:async()=>(await Promise.all([t.e(6968),t.e(9348)]).then(t.bind(t,89348))).default,GeoRSSLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(3723)]).then(t.bind(t,3723))).default,GeoJSONLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(1773),t.e(3471),t.e(1423),t.e(635),t.e(7832),t.e(7202)]).then(t.bind(t,23477))).default,ImageryLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(1773),t.e(3471),t.e(8326),t.e(176),t.e(2173),t.e(510)]).then(t.bind(t,510))).default,ImageryTileLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(1773),t.e(4547),t.e(3471),t.e(1938),t.e(176),t.e(2173),t.e(2398),t.e(3301)]).then(t.bind(t,69971))).default,IntegratedMeshLayer:async()=>(await Promise.all([t.e(4547),t.e(4133),t.e(8297)]).then(t.bind(t,4717))).default,KMLLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(1773),t.e(3471),t.e(1423),t.e(739)]).then(t.bind(t,42756))).default,MapImageLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(1773),t.e(3471),t.e(1423),t.e(7832),t.e(3128),t.e(7374)]).then(t.bind(t,27374))).default,MapNotesLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(1773),t.e(4547),t.e(3471),t.e(1423),t.e(635),t.e(7832),t.e(8326),t.e(3121),t.e(3750)]).then(t.bind(t,62128))).default,OGCFeatureLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(1773),t.e(3471),t.e(1423),t.e(635),t.e(7832),t.e(2855)]).then(t.bind(t,88068))).default,OpenStreetMapLayer:async()=>(await Promise.all([t.e(6968),t.e(6199),t.e(6237)]).then(t.bind(t,66237))).default,PointCloudLayer:async()=>(await Promise.all([t.e(1773),t.e(4133),t.e(1197)]).then(t.bind(t,10608))).default,RouteLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(1773),t.e(4547),t.e(3471),t.e(1423),t.e(8157)]).then(t.bind(t,50445))).default,SceneLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(1773),t.e(3471),t.e(1423),t.e(635),t.e(7832),t.e(8326),t.e(3121),t.e(4133),t.e(6135)]).then(t.bind(t,49254))).default,StreamLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(1773),t.e(3471),t.e(1423),t.e(635),t.e(1408)]).then(t.bind(t,88387))).default,TileLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(1773),t.e(3471),t.e(1423),t.e(7832),t.e(1938),t.e(3128),t.e(8636)]).then(t.bind(t,98636))).default,UnknownLayer:async()=>(await t.e(4166).then(t.bind(t,44166))).default,UnsupportedLayer:async()=>(await t.e(9296).then(t.bind(t,39296))).default,VectorTileLayer:async()=>(await Promise.all([t.e(6968),t.e(1938),t.e(4325),t.e(1785),t.e(4756)]).then(t.bind(t,94756))).default,VoxelLayer:async()=>(await Promise.all([t.e(4133),t.e(5410)]).then(t.bind(t,58092))).default,WebTileLayer:async()=>(await Promise.all([t.e(6968),t.e(6199)]).then(t.bind(t,16199))).default,WFSLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(1773),t.e(4547),t.e(3471),t.e(1423),t.e(635),t.e(3974)]).then(t.bind(t,12653))).default,WMSLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(1773),t.e(5906)]).then(t.bind(t,25906))).default,WMTSLayer:async()=>(await Promise.all([t.e(6968),t.e(6199),t.e(5853)]).then(t.bind(t,55853))).default}},33516:(e,a,t)=>{t.d(a,{Y:()=>s,h:()=>l});var r=t(17452),n=t(65587);function l(e){return{origin:"portal-item",url:(0,r.mN)(e.itemUrl),portal:e.portal||n.Z.getDefault(),portalItem:e,readResourcePaths:[]}}function s(e){return{origin:"portal-item",messages:[],writtenProperties:[],url:e.itemUrl?(0,r.mN)(e.itemUrl):null,portal:e.portal||n.Z.getDefault(),portalItem:e}}},14661:(e,a,t)=>{t.d(a,{$o:()=>u,Kz:()=>c,_$:()=>i,ck:()=>o,qj:()=>s});var r=t(44547),n=t(82971),l=t(40488);function s(e,a){if(!i(e,a)){const t=e.typeKeywords;t?t.push(a):e.typeKeywords=[a]}}function i(e,a){return!!e.typeKeywords?.includes(a)}function o(e,a){const t=e.typeKeywords;if(t){const e=t.indexOf(a);e>-1&&t.splice(e,1)}}async function u(e){const a=e.clone().normalize();let t;if(a.length>1)for(const e of a)t?e.width>t.width&&(t=e):t=e;else t=a[0];return async function(e){const a=e.spatialReference;if(a.isWGS84)return e.clone();if(a.isWebMercator)return(0,l.Sx)(e);const t=n.Z.WGS84;return await(0,r.iQ)(a,t),(0,r.iV)(e,t)}(t)}const c={DEVELOPER_BASEMAP:"DeveloperBasemap",JSAPI:"ArcGIS API for JavaScript",METADATA:"Metadata",MULTI_LAYER:"Multilayer",SINGLE_LAYER:"Singlelayer"}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2664,3529],{65845:(e,a,t)=>{t.d(a,{D:()=>n});var r=t(81153);function n(e){e&&e.writtenProperties&&e.writtenProperties.forEach((e=>{const a=e.target;e.newOrigin&&e.oldOrigin!==e.newOrigin&&(0,r.l)(a)&&a.updateOrigin(e.propName,e.newOrigin)}))}},81153:(e,a,t)=>{function r(e){return e&&"getAtOrigin"in e&&"originOf"in e}t.d(a,{l:()=>r})},32664:(e,a,t)=>{t.r(a),t.d(a,{save:()=>C,saveAs:()=>M});var r=t(67676),n=t(20102),l=t(92604),s=t(70586),i=t(95330),o=t(65845),u=t(3121),c=t(63529),y=t(84230),d=t(65587),f=t(15235),p=t(33516),m=t(14661);const w=l.Z.getLogger("esri.layers.FeatureLayer"),b="Feature Service";function h(e,a){return`Layer (title: ${e.title}, id: ${e.id}) of type '${e.declaredClass}' ${a}`}function S(e,a){if(a.type!==b)throw new n.Z("feature-layer:portal-item-wrong-type",h(e,`should have portal item of type "${b}"`))}async function I(e){if(await e.load(),(0,y.rQ)(e))throw new n.Z("feature-layer:save",h(e,"using an in-memory source cannot be saved to a portal item"));if(e.isTable)throw new n.Z("feature-layer:save",h(e,"using a table source cannot be saved to a portal item"))}async function L(e,a,t){"beforeSave"in e&&"function"==typeof e.beforeSave&&await e.beforeSave();const r=e.write({},a);return function(e,a){let t=e.messages.filter((({type:e})=>"error"===e)).map((({name:e,message:a,details:t})=>new n.Z(e,a,t)));if(a?.ignoreUnsupported&&(t=t.filter((({name:e})=>"layer:unsupported"!==e&&"symbol:unsupported"!==e&&"symbol-layer:unsupported"!==e&&"property:unsupported"!==e&&"url:unsupported"!==e))),t.length>0)throw new n.Z("feature-layer:save","Failed to save feature layer due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:t})}(a,t),r}function P(e,a){return e.isTable?{layers:[],tables:[a]}:{layers:[a],tables:[]}}function v(e){(0,m.qj)(e,m.Kz.JSAPI),e.typeKeywords&&(e.typeKeywords=e.typeKeywords.filter(((e,a,t)=>t.indexOf(e)===a)))}function g(e,a,t){const n=(0,r.e5)(e,a,((e,a)=>e.id===a.id));e=e.filter((e=>!n.removed.some((a=>a.id===e.id))));const l=n.added.map((({id:e})=>({id:e})));return l.forEach((({id:a})=>{e.push({id:a})})),{itemResources:e,added:l.filter((({id:e})=>e!==t))}}function O(e,a,t){e.isTable?T(t.tables,a):T(t.layers,a)}function T(e,a){const t=e.findIndex((({id:e})=>e===a.id));-1===t?e.push(a):e[t]=a}const C=(0,i.Ds)((async function(e,a){await I(e),function(e){const a=e.portalItem;if(!a)throw w.error("save: requires the portalItem property to be set"),new n.Z("feature-layer:portal-item-not-set",h(e,"requires the portalItem property to be set"));if(!a.loaded)throw new n.Z("feature-layer:portal-item-not-loaded",h(e,"cannot be saved to a portal item that does not exist or is inaccessible"));S(e,a)}(e);const t=e.portalItem,r=(0,p.Y)(t),l=await L(e,r,a),y=await async function(e,a){const t=e.portalItem;if(/\/\d+\/?$/.test(t.url))return P(e,a);let r=await t.fetchData("json");return r&&null!=r.layers&&null!=r.tables||(r=await async function(e,a){var t,r;a||(a={}),(t=a).layers||(t.layers=[]),(r=a).tables||(r.tables=[]);const{url:n,layerId:l,customParameters:o,apiKey:y}=e,{serviceJSON:d,layersJSON:f}=await(0,c.fetchFeatureService)(n,{customParameters:o,apiKey:y}),p=g(a.layers,d.layers,l),m=g(a.tables,d.tables,l);a.layers=p.itemResources,a.tables=m.itemResources;const w=[...p.added,...m.added],b=f?[...f.layers,...f.tables]:[];return await async function(e,a,t,r){const n=a.map((({id:e})=>new u.default({url:t,layerId:e,sourceJSON:r.find((({id:a})=>a===e))})));await(0,i.as)(n.map((e=>e.load()))),n.forEach((a=>{const{layerId:t,loaded:r,defaultPopupTemplate:n}=a;r&&!(0,s.Wi)(n)&&O(a,{id:t,popupInfo:n.toJSON()},e)}))}(a,w,n,b),a}(e,r)),O(e,a,r),r}(e,l);return v(t),await t.update({data:y}),(0,o.D)(r),t})),M=(0,i.Ds)((async function(e,a,t){await I(e);const r=function(e,a){var t,r;let n=f.default.from(a);return n.id&&(n=n.clone(),n.id=null),(t=n).type??(t.type=b),(r=n).portal??(r.portal=d.Z.getDefault()),S(e,n),n}(e,a),n=(0,p.Y)(r),l=P(e,await L(e,n,t));return await async function(e,a){const{url:t,title:r,fullExtent:n,isTable:l}=e;a.url=t,a.title||(a.title=r),a.extent=null,!l&&(0,s.pC)(n)&&(a.extent=await(0,m.$o)(n)),(0,m.ck)(a,m.Kz.METADATA),(0,m.ck)(a,m.Kz.MULTI_LAYER),(0,m.qj)(a,m.Kz.SINGLE_LAYER),v(a)}(e,r),await async function(e,a,t){const r=e.portal;await r._signIn(),await r.user.addItem({item:e,data:a,folder:t?.folder})}(r,l,t),e.portalItem=r,(0,o.D)(n),r}))},63529:(e,a,t)=>{t.r(a),t.d(a,{fetchFeatureService:()=>p,fromUrl:()=>u});var r=t(3172),n=t(20102),l=t(70586),s=t(17452),i=t(66677),o=t(87344);async function u(e){const a=e.properties?.customParameters,r=await async function(e,a){let t=(0,i.Qc)(e);if((0,l.Wi)(t)&&(t=await y(e,a)),(0,l.Wi)(t))throw new n.Z("arcgis-layers:url-mismatch","The url '${url}' is not a valid arcgis resource",{url:e});const{serverType:r,sublayer:s}=t;let u;const c={FeatureServer:"FeatureLayer",StreamServer:"StreamLayer",VectorTileServer:"VectorTileLayer"};switch(r){case"MapServer":u=null!=s?"FeatureLayer":async function(e,a){return(await m(e,{customParameters:a})).tileInfo}(e,a).then((e=>e?"TileLayer":"MapImageLayer"));break;case"ImageServer":u=m(e,{customParameters:a}).then((e=>{const a=e.tileInfo&&e.tileInfo.format;return e.tileInfo?"LERC"!==a?.toUpperCase()||e.cacheType&&"elevation"!==e.cacheType.toLowerCase()?"ImageryTileLayer":"ElevationLayer":"ImageryLayer"}));break;case"SceneServer":u=m(t.url.path,{customParameters:a}).then((e=>{if(e){if("Voxel"===e?.layerType)return"VoxelLayer";if(e?.layers&&Array.isArray(e.layers)&&e.layers.length>0){const a={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"},t=e.layers[0]?.layerType;if(null!=a[t])return a[t]}}return"SceneLayer"}));break;default:u=c[r]}const d="FeatureServer"===r,f={parsedUrl:t,Constructor:null,layerOrTableId:d?s:null,sublayerIds:null,tableIds:null},w=await u;if({FeatureLayer:!0,SceneLayer:!0}[w]&&null==s){const t=await async function(e,a,t){let r,n=!1;if("FeatureServer"===a){const a=await p(e,{customParameters:t});n=!!a.layersJSON,r=a.layersJSON||a.serviceJSON}else r=await m(e,{customParameters:t});const l=r?.layers,s=r?.tables;return{layerIds:l?.map((e=>e.id)).reverse()||[],tableIds:s?.map((e=>e.id)).reverse()||[],layerInfos:n?l:[],tableInfos:n?s:[]}}(e,r,a);d&&(f.sublayerInfos=t.layerInfos,f.tableInfos=t.tableInfos),1!==t.layerIds.length+t.tableIds.length?(f.sublayerIds=t.layerIds,f.tableIds=t.tableIds):d&&(f.layerOrTableId=t.layerIds[0]??t.tableIds[0],f.sourceJSON=t.layerInfos[0]??t.tableInfos[0])}return f.Constructor=await async function(e){return(0,o.T[e])()}(w),f}(e.url,a),s={...e.properties,url:e.url};if(!r.sublayerIds)return null!=r.layerOrTableId&&(s.layerId=r.layerOrTableId,s.sourceJSON=r.sourceJSON),new r.Constructor(s);const u=new(0,(await Promise.all([t.e(6968),t.e(5787)]).then(t.bind(t,89348))).default)({title:r.parsedUrl.title});return function(e,a,t){function r(e,r){const n={...t,layerId:e,sublayerTitleMode:"service-name"};return(0,l.pC)(r)&&(n.sourceJSON=r),new a.Constructor(n)}a.sublayerIds.forEach((t=>{const n=r(t,c(a.sublayerInfos,t));e.add(n)})),a.tableIds.forEach((t=>{const n=r(t,c(a.tableInfos,t));e.tables.add(n)}))}(u,r,s),u}function c(e,a){return e?e.find((e=>e.id===a)):null}async function y(e,a){const t=await m(e,{customParameters:a});let r=null,n=null;const o=t.type;if("Feature Layer"===o||"Table"===o?(r="FeatureServer",n=t.id):"indexedVector"===o?r="VectorTileServer":t.hasOwnProperty("mapName")?r="MapServer":t.hasOwnProperty("bandCount")&&t.hasOwnProperty("pixelSizeX")?r="ImageServer":t.hasOwnProperty("maxRecordCount")&&t.hasOwnProperty("allowGeometryUpdates")?r="FeatureServer":t.hasOwnProperty("streamUrls")?r="StreamServer":d(t)?(r="SceneServer",n=t.id):t.hasOwnProperty("layers")&&d(t.layers?.[0])&&(r="SceneServer"),!r)return null;const u=null!=n?(0,i.DR)(e):null;return{title:(0,l.pC)(u)&&t.name||(0,s.vt)(e),serverType:r,sublayer:n,url:{path:(0,l.pC)(u)?u.serviceUrl:(0,s.mN)(e).path}}}function d(e){return e?.hasOwnProperty("store")&&e.hasOwnProperty("id")&&"number"==typeof e.id}function f(e){return!e.type||"Feature Layer"===e.type}async function p(e,a){let t=await m(e,a);t=t||{},t.layers=t.layers?.filter(f)||[];const r={serviceJSON:t};if(t.currentVersion<10.5)return r;const n=await m(e+"/layers",a);return r.layersJSON={layers:n?.layers?.filter(f)||[],tables:n?.tables||[]},r}async function m(e,a){return(await(0,r.default)(e,{responseType:"json",query:{f:"json",...a?.customParameters,token:a?.apiKey}})).data}},84230:(e,a,t)=>{function r(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}t.d(a,{rQ:()=>r})},87344:(e,a,t)=>{t.d(a,{T:()=>r});const r={BingMapsLayer:async()=>(await Promise.all([t.e(6968),t.e(2723)]).then(t.bind(t,2723))).default,BuildingSceneLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(1773),t.e(3471),t.e(1423),t.e(6105),t.e(7832),t.e(8326),t.e(3121),t.e(4133),t.e(2485)]).then(t.bind(t,30223))).default,CSVLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(1773),t.e(3471),t.e(1423),t.e(6105),t.e(7832),t.e(8326),t.e(3121),t.e(4910)]).then(t.bind(t,45425))).default,ElevationLayer:async()=>(await Promise.all([t.e(1938),t.e(9932)]).then(t.bind(t,49932))).default,FeatureLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(1773),t.e(3471),t.e(1423),t.e(6105),t.e(7832),t.e(8326),t.e(3121),t.e(4477)]).then(t.bind(t,3121))).default,GroupLayer:async()=>(await Promise.all([t.e(6968),t.e(9348)]).then(t.bind(t,89348))).default,GeoRSSLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(3723)]).then(t.bind(t,3723))).default,GeoJSONLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(1773),t.e(3471),t.e(1423),t.e(6105),t.e(7832),t.e(7202)]).then(t.bind(t,23477))).default,ImageryLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(1773),t.e(3471),t.e(8326),t.e(176),t.e(2173),t.e(510)]).then(t.bind(t,510))).default,ImageryTileLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(1773),t.e(4547),t.e(3471),t.e(1938),t.e(176),t.e(2173),t.e(2398),t.e(3301)]).then(t.bind(t,69971))).default,IntegratedMeshLayer:async()=>(await Promise.all([t.e(4547),t.e(4133),t.e(8297)]).then(t.bind(t,4717))).default,KMLLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(1773),t.e(3471),t.e(1423),t.e(739)]).then(t.bind(t,42756))).default,MapImageLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(1773),t.e(3471),t.e(1423),t.e(7832),t.e(3128),t.e(7374)]).then(t.bind(t,27374))).default,MapNotesLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(1773),t.e(4547),t.e(3471),t.e(1423),t.e(6105),t.e(7832),t.e(8326),t.e(3121),t.e(3750)]).then(t.bind(t,62128))).default,OGCFeatureLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(1773),t.e(3471),t.e(1423),t.e(6105),t.e(7832),t.e(2855)]).then(t.bind(t,88068))).default,OpenStreetMapLayer:async()=>(await Promise.all([t.e(6968),t.e(6199),t.e(6237)]).then(t.bind(t,66237))).default,PointCloudLayer:async()=>(await Promise.all([t.e(1773),t.e(4133),t.e(1197)]).then(t.bind(t,10608))).default,RouteLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(1773),t.e(4547),t.e(3471),t.e(1423),t.e(8157)]).then(t.bind(t,50445))).default,SceneLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(1773),t.e(3471),t.e(1423),t.e(6105),t.e(7832),t.e(8326),t.e(3121),t.e(4133),t.e(6135)]).then(t.bind(t,49254))).default,StreamLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(1773),t.e(3471),t.e(1423),t.e(6105),t.e(1408)]).then(t.bind(t,88387))).default,TileLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(1773),t.e(3471),t.e(1423),t.e(7832),t.e(1938),t.e(3128),t.e(8636)]).then(t.bind(t,98636))).default,UnknownLayer:async()=>(await t.e(4166).then(t.bind(t,44166))).default,UnsupportedLayer:async()=>(await t.e(9296).then(t.bind(t,39296))).default,VectorTileLayer:async()=>(await Promise.all([t.e(6968),t.e(1938),t.e(4325),t.e(1785),t.e(4756)]).then(t.bind(t,94756))).default,VoxelLayer:async()=>(await Promise.all([t.e(4133),t.e(2320)]).then(t.bind(t,31017))).default,WebTileLayer:async()=>(await Promise.all([t.e(6968),t.e(6199)]).then(t.bind(t,16199))).default,WFSLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(1773),t.e(4547),t.e(3471),t.e(1423),t.e(6105),t.e(3974)]).then(t.bind(t,12653))).default,WMSLayer:async()=>(await Promise.all([t.e(6968),t.e(9454),t.e(1773),t.e(5906)]).then(t.bind(t,25906))).default,WMTSLayer:async()=>(await Promise.all([t.e(6968),t.e(6199),t.e(5853)]).then(t.bind(t,55853))).default}},33516:(e,a,t)=>{t.d(a,{Y:()=>s,h:()=>l});var r=t(17452),n=t(65587);function l(e){return{origin:"portal-item",url:(0,r.mN)(e.itemUrl),portal:e.portal||n.Z.getDefault(),portalItem:e,readResourcePaths:[]}}function s(e){return{origin:"portal-item",messages:[],writtenProperties:[],url:e.itemUrl?(0,r.mN)(e.itemUrl):null,portal:e.portal||n.Z.getDefault(),portalItem:e}}},14661:(e,a,t)=>{t.d(a,{$o:()=>u,Kz:()=>c,_$:()=>i,ck:()=>o,qj:()=>s});var r=t(44547),n=t(82971),l=t(40488);function s(e,a){if(!i(e,a)){const t=e.typeKeywords;t?t.push(a):e.typeKeywords=[a]}}function i(e,a){return!!e.typeKeywords?.includes(a)}function o(e,a){const t=e.typeKeywords;if(t){const e=t.indexOf(a);e>-1&&t.splice(e,1)}}async function u(e){const a=e.clone().normalize();let t;if(a.length>1)for(const e of a)t?e.width>t.width&&(t=e):t=e;else t=a[0];return async function(e){const a=e.spatialReference;if(a.isWGS84)return e.clone();if(a.isWebMercator)return(0,l.Sx)(e);const t=n.Z.WGS84;return await(0,r.iQ)(a,t),(0,r.iV)(e,t)}(t)}const c={DEVELOPER_BASEMAP:"DeveloperBasemap",JSAPI:"ArcGIS API for JavaScript",METADATA:"Metadata",MULTI_LAYER:"Multilayer",SINGLE_LAYER:"Singlelayer"}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4478],{24133:(e,t,n)=>{n.d(t,{Q:()=>a});var i=n(67676),s=n(70586),r=n(44553),o=n(88764);class a{constructor(e=9,t){this.compareMinX=u,this.compareMinY=h,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),I.prune(),b.prune(),S.prune(),w.prune()}all(e){this._all(this.data,e)}search(e,t){let n=this.data;const i=this._toBBox;if(_(e,n))for(I.clear();n;){for(let s=0,r=n.children.length;s<r;s++){const r=n.children[s],o=n.leaf?i(r):r;_(e,o)&&(n.leaf?t(r):y(e,o)?this._all(r,t):I.push(r))}n=I.pop()}}collides(e){let t=this.data;const n=this._toBBox;if(!_(e,t))return!1;for(I.clear();t;){for(let i=0,s=t.children.length;i<s;i++){const s=t.children[i],r=t.leaf?n(s):s;if(_(e,r)){if(t.leaf||y(e,r))return!0;I.push(s)}}t=I.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,n=e.length;t<n;t++)this.insert(e[t]);return this}let t=this._build(e.slice(0,e.length),0,e.length-1,0);if(this.data.children.length)if(this.data.height===t.height)this._splitRoot(this.data,t);else{if(this.data.height<t.height){const e=this.data;this.data=t,t=e}this._insert(t,this.data.height-t.height-1,!0)}else this.data=t;return this}insert(e){return e&&this._insert(e,this.data.height-1),this}clear(){return this.data=new B([]),this}remove(e){if(!e)return this;let t,n=this.data,r=null,o=0,a=!1;const l=this._toBBox(e);for(S.clear(),w.clear();n||S.length>0;){if(n||(n=(0,s.j0)(S.pop()),r=S.data[S.length-1],o=w.pop()??0,a=!0),n.leaf&&(t=(0,i.cq)(n.children,e,n.children.length,n.indexHint),-1!==t))return n.children.splice(t,1),S.push(n),this._condense(S),this;a||n.leaf||!y(n,l)?r?(o++,n=r.children[o],a=!1):n=null:(S.push(n),w.push(o),o=0,r=n,n=n.children[0])}return this}toJSON(){return this.data}fromJSON(e){return this.data=e,this}_all(e,t){let n=e;for(b.clear();n;){if(!0===n.leaf)for(const e of n.children)t(e);else b.pushArray(n.children);n=b.pop()??null}}_build(e,t,n,i){const s=n-t+1;let r=this._maxEntries;if(s<=r){const i=new B(e.slice(t,n+1));return l(i,this._toBBox),i}i||(i=Math.ceil(Math.log(s)/Math.log(r)),r=Math.ceil(s/r**(i-1)));const o=new v([]);o.height=i;const a=Math.ceil(s/r),d=a*Math.ceil(Math.sqrt(r));x(e,t,n,d,this.compareMinX);for(let s=t;s<=n;s+=d){const t=Math.min(s+d-1,n);x(e,s,t,a,this.compareMinY);for(let n=s;n<=t;n+=a){const s=Math.min(n+a-1,t);o.children.push(this._build(e,n,s,i-1))}}return l(o,this._toBBox),o}_chooseSubtree(e,t,n,i){for(;i.push(t),!0!==t.leaf&&i.length-1!==n;){let n,i=1/0,s=1/0;for(let r=0,o=t.children.length;r<o;r++){const o=t.children[r],a=p(o),l=m(e,o)-a;l<s?(s=l,i=a<i?a:i,n=o):l===s&&a<i&&(i=a,n=o)}t=n||t.children[0]}return t}_insert(e,t,n){const i=this._toBBox,s=n?e:i(e);S.clear();const r=this._chooseSubtree(s,this.data,t,S);for(r.children.push(e),c(r,s);t>=0&&S.data[t].children.length>this._maxEntries;)this._split(S,t),t--;this._adjustParentBBoxes(s,S,t)}_split(e,t){const n=e.data[t],i=n.children.length,s=this._minEntries;this._chooseSplitAxis(n,s,i);const r=this._chooseSplitIndex(n,s,i);if(!r)return void console.log(" Error: assertion failed at PooledRBush._split: no valid split index");const o=n.children.splice(r,n.children.length-r),a=n.leaf?new B(o):new v(o);a.height=n.height,l(n,this._toBBox),l(a,this._toBBox),t?e.data[t-1].children.push(a):this._splitRoot(n,a)}_splitRoot(e,t){this.data=new v([e,t]),this.data.height=e.height+1,l(this.data,this._toBBox)}_chooseSplitIndex(e,t,n){let i,s,r;i=s=1/0;for(let o=t;o<=n-t;o++){const t=d(e,0,o,this._toBBox),a=d(e,o,n,this._toBBox),l=g(t,a),c=p(t)+p(a);l<i?(i=l,r=o,s=c<s?c:s):l===i&&c<s&&(s=c,r=o)}return r}_chooseSplitAxis(e,t,n){const i=e.leaf?this.compareMinX:u,s=e.leaf?this.compareMinY:h;this._allDistMargin(e,t,n,i)<this._allDistMargin(e,t,n,s)&&e.children.sort(i)}_allDistMargin(e,t,n,i){e.children.sort(i);const s=this._toBBox,r=d(e,0,t,s),o=d(e,n-t,n,s);let a=f(r)+f(o);for(let i=t;i<n-t;i++){const t=e.children[i];c(r,e.leaf?s(t):t),a+=f(r)}for(let i=n-t-1;i>=t;i--){const t=e.children[i];c(o,e.leaf?s(t):t),a+=f(o)}return a}_adjustParentBBoxes(e,t,n){for(let i=n;i>=0;i--)c(t.data[i],e)}_condense(e){for(let t=e.length-1;t>=0;t--){const n=e.data[t];if(0===n.children.length)if(t>0){const s=e.data[t-1],r=s.children;r.splice((0,i.cq)(r,n,r.length,s.indexHint),1)}else this.clear();else l(n,this._toBBox)}}_initFormat(e){const t=["return a"," - b",";"];this.compareMinX=new Function("a","b",t.join(e[0])),this.compareMinY=new Function("a","b",t.join(e[1])),this._toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function l(e,t){d(e,0,e.children.length,t,e)}function d(e,t,n,i,s){s||(s=new B([])),s.minX=1/0,s.minY=1/0,s.maxX=-1/0,s.maxY=-1/0;for(let r,o=t;o<n;o++)r=e.children[o],c(s,e.leaf?i(r):r);return s}function c(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function u(e,t){return e.minX-t.minX}function h(e,t){return e.minY-t.minY}function p(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function f(e){return e.maxX-e.minX+(e.maxY-e.minY)}function m(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function g(e,t){const n=Math.max(e.minX,t.minX),i=Math.max(e.minY,t.minY),s=Math.min(e.maxX,t.maxX),r=Math.min(e.maxY,t.maxY);return Math.max(0,s-n)*Math.max(0,r-i)}function y(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function _(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function x(e,t,n,i,r){const a=[t,n];for(;a.length;){const t=(0,s.j0)(a.pop()),n=(0,s.j0)(a.pop());if(t-n<=i)continue;const l=n+Math.ceil((t-n)/i/2)*i;(0,o.q)(e,l,n,t,r),a.push(n,l,l,t)}}const I=new r.Z,b=new r.Z,S=new r.Z,w=new r.Z({deallocator:void 0});class F extends class{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}{constructor(){super(...arguments),this.height=1,this.indexHint=new i.SO}}class B extends F{constructor(e){super(),this.children=e,this.leaf=!0}}class v extends F{constructor(e){super(),this.children=e,this.leaf=!1}}},14808:(e,t,n)=>{n.d(t,{Qc:()=>c,WU:()=>a,lt:()=>d});var i=n(19153),s=n(70171);const r={ar:[".",","],bg:[","," "],bs:[",","."],ca:[",","."],cs:[","," "],da:[",","."],de:[",","."],"de-ch":[".","’"],el:[",","."],en:[".",","],"en-au":[".",","],es:[",","."],"es-mx":[".",","],et:[","," "],fi:[","," "],fr:[","," "],"fr-ch":[","," "],he:[".",","],hi:[".",",","#,##,##0.###"],hr:[",","."],hu:[","," "],id:[",","."],it:[",","."],"it-ch":[".","’"],ja:[".",","],ko:[".",","],lt:[","," "],lv:[","," "],mk:[",","."],nb:[","," "],nl:[",","."],pl:[","," "],pt:[",","."],"pt-pt":[","," "],ro:[",","."],ru:[","," "],sk:[","," "],sl:[",","."],sr:[",","."],sv:[","," "],th:[".",","],tr:[",","."],uk:[","," "],vi:[",","."],zh:[".",","]};function o(e){e||(e=(0,s.Kd)());let t=e in r;if(!t){const n=e.split("-");n.length>1&&n[0]in r&&(e=n[0],t=!0),t||(e="en")}const[n,i,o="#,##0.###"]=r[e];return{decimal:n,group:i,pattern:o}}function a(e,t){const n=o((t={...t}).locale);t.customs=n;const i=t.pattern||n.pattern;return isNaN(e)||Math.abs(e)===1/0?null:function(e,t,n){const i=(n=n||{}).customs.group,s=n.customs.decimal,r=t.split(";"),o=r[0];if((t=r[e<0?1:0]||"-"+o).includes("%"))e*=100;else if(t.includes("‰"))e*=1e3;else{if(t.includes("¤"))throw new Error("currency notation not supported");if(t.includes("E"))throw new Error("exponential notation not supported")}const a=l,d=o.match(a);if(!d)throw new Error("unable to find a number expression in pattern: "+t);return!1===n.fractional&&(n.places=0),t.replace(a,function(e,t,n){!0===(n=n||{}).places&&(n.places=0),n.places===1/0&&(n.places=6);const i=t.split("."),s="string"==typeof n.places&&n.places.indexOf(",");let r=n.places;s?r=n.places.substring(s+1):r>=0||(r=(i[1]||[]).length),n.round<0||(e=Number(e.toFixed(Number(r))));const o=String(Math.abs(e)).split("."),a=o[1]||"";if(i[1]||n.places){s&&(n.places=n.places.substring(0,s));const e=void 0!==n.places?n.places:i[1]&&i[1].lastIndexOf("0")+1;e>a.length&&(o[1]=a.padEnd(Number(e),"0")),r<a.length&&(o[1]=a.substr(0,Number(r)))}else o[1]&&o.pop();const l=i[0].replace(",","");let d=l.indexOf("0");-1!==d&&(d=l.length-d,d>o[0].length&&(o[0]=o[0].padStart(d,"0")),l.includes("#")||(o[0]=o[0].substr(o[0].length-d)));let c,u,h=i[0].lastIndexOf(",");if(-1!==h){c=i[0].length-h-1;const e=i[0].substr(0,h);h=e.lastIndexOf(","),-1!==h&&(u=e.length-h-1)}const p=[];for(let e=o[0];e;){const t=e.length-c;p.push(t>0?e.substr(t):e),e=t>0?e.slice(0,t):"",u&&(c=u,u=void 0)}return o[0]=p.reverse().join(n.group||","),o.join(n.decimal||".")}(e,d[0],{decimal:s,group:i,places:n.places,round:n.round}))}(e,i,t)}const l=/[#0,]*[#0](?:\.0*#*)?/;function d(e){const t=o((e=e||{}).locale),n=e.pattern||t.pattern,s=t.group,r=t.decimal;let a=1;if(n.includes("%"))a/=100;else if(n.includes("‰"))a/=1e3;else if(n.includes("¤"))throw new Error("currency notation not supported");const d=n.split(";");1===d.length&&d.push("-"+d[0]);const c=h(d,(t=>(t="(?:"+(0,i.Qs)(t,".")+")").replace(l,(t=>{const n={signed:!1,separator:e.strict?s:[s,""],fractional:e.fractional,decimal:r,exponent:!1},i=t.split(".");let o=e.places;1===i.length&&1!==a&&(i[1]="###"),1===i.length||0===o?n.fractional=!1:(void 0===o&&(o=e.pattern?i[1].lastIndexOf("0")+1:1/0),o&&null==e.fractional&&(n.fractional=!0),!e.places&&o<i[1].length&&(o+=","+i[1].length),n.places=o);const l=i[0].split(",");return l.length>1&&(n.groupSize=l.pop().length,l.length>1&&(n.groupSize2=l.pop().length)),"("+function(e){"places"in(e=e||{})||(e.places=1/0),"string"!=typeof e.decimal&&(e.decimal="."),"fractional"in e&&!/^0/.test(String(e.places))||(e.fractional=[!0,!1]),"exponent"in e||(e.exponent=[!0,!1]),"eSigned"in e||(e.eSigned=[!0,!1]);const t=u(e),n=h(e.fractional,(t=>{let n="";return t&&0!==e.places&&(n="\\"+e.decimal,e.places===1/0?n="(?:"+n+"\\d+)?":n+="\\d{"+e.places+"}"),n}),!0);let i=t+n;return n&&(i="(?:(?:"+i+")|(?:"+n+"))"),i+h(e.exponent,(t=>t?"([eE]"+u({signed:e.eSigned})+")":""))}(n)+")"}))),!0);return{regexp:c.replace(/[\xa0 ]/g,"[\\s\\xa0]"),group:s,decimal:r,factor:a}}function c(e,t){const n=d(t),i=new RegExp("^"+n.regexp+"$").exec(e);if(!i)return NaN;let s=i[1];if(!i[1]){if(!i[2])return NaN;s=i[2],n.factor*=-1}return s=s.replace(new RegExp("["+n.group+"\\s\\xa0]","g"),"").replace(n.decimal,"."),Number(s)*n.factor}function u(e){return"signed"in(e=e||{})||(e.signed=[!0,!1]),"separator"in e?"groupSize"in e||(e.groupSize=3):e.separator="",h(e.signed,(e=>e?"[-+]":""),!0)+h(e.separator,(t=>{if(!t)return"(?:\\d+)";" "===(t=(0,i.Qs)(t))?t="\\s":" "===t&&(t="\\s\\xa0");const n=e.groupSize,s=e.groupSize2;if(s){const e="(?:0|[1-9]\\d{0,"+(s-1)+"}(?:["+t+"]\\d{"+s+"})*["+t+"]\\d{"+n+"})";return n-s>0?"(?:"+e+"|(?:0|[1-9]\\d{0,"+(n-1)+"}))":e}return"(?:0|[1-9]\\d{0,"+(n-1)+"}(?:["+t+"]\\d{"+n+"})*)"}),!0)}const h=(e,t,n)=>{if(!(e instanceof Array))return t(e);const i=[];for(let n=0;n<e.length;n++)i.push(t(e[n]));return p(i.join("|"),n)},p=(e,t)=>"("+(t?"?:":"")+e+")"},70171:(e,t,n)=>{let i;n.d(t,{Kd:()=>o,Ze:()=>c,qe:()=>l});const s=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale;function r(){return s??globalThis.navigator?.language??"en"}function o(){return void 0===i&&(i=r()),i}const a=[];function l(e){return a.push(e),{remove(){a.splice(a.indexOf(e),1)}}}const d=[];function c(e){return d.push(e),{remove(){a.splice(d.indexOf(e),1)}}}globalThis.addEventListener?.("languagechange",(function(){const e=r();i!==e&&(i=e,[...d].forEach((t=>{t.call(null,e)})),[...a].forEach((t=>{t.call(null,e)})))}))},37549:(e,t,n)=>{n.d(t,{H:()=>o});var i=n(80442),s=n(24133);const r={minX:0,minY:0,maxX:0,maxY:0};class o{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new s.Q(9,(0,i.Z)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const e=new Array(this._idByBounds.size);let t=0;this._idByBounds.forEach(((n,i)=>{e[t++]=i})),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(this._boundsToLoad.filter((e=>this._idByBounds.has(e)))),this._boundsToLoad.length=0)}}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){const t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,n){(function(e){r.minX=e[0],r.minY=e[1],r.maxX=e[2],r.maxY=e[3]})(t),e.search(r,n)}(this._index,e,(e=>t(this._idByBounds.get(e))))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){const t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},57191:(e,t,n)=>{n.d(t,{Z:()=>m});var i=n(20102),s=n(32448),r=n(92604),o=n(70586),a=n(60437),l=n(24470),d=n(98732),c=n(37549),u=n(29730),h=n(70272),p=n(5428);const f={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t)=>new h.u_(t,e.attributes,null,e.objectId),getGeometry:e=>e.geometry,getCentroid:(e,t)=>((0,o.Wi)(e.centroid)&&(e.centroid=(0,u.Y)(new p.Z,e.geometry,t.hasZ,t.hasM)),e.centroid)};class m{constructor(e){this.geometryInfo=e,this._boundsStore=new c.H,this._featuresById=new Map,this._markedIds=new Set,this.events=new s.Z,this.featureAdapter=f}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){if(!this.numFeatures)return null;const e=(0,l.Ue)(l.Gv);return this._featuresById.forEach((t=>{const n=this._boundsStore.get(t.objectId);n&&(e[0]=Math.min(n[0],e[0]),e[1]=Math.min(n[1],e[1]),e[2]=Math.max(n[2],e[2]),e[3]=Math.max(n[3],e[3]))})),e}get storeStatistics(){let e=0;return this._featuresById.forEach((t=>{(0,o.pC)(t.geometry)&&t.geometry.coords&&(e+=t.geometry.coords.length)})),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}add(e){this._add(e),this._emitChanged()}addMany(e){for(const t of e)this._add(t);this._emitChanged()}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged()}removeById(e){const t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(const t of e){const e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t,n){for(const i of e){const e=this._boundsStore.get(i.objectId);e&&t((0,a.JR)(n,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach((t=>e(t)))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,(e=>{t(this._featuresById.get(e))}))}startMarkingUsedFeatures(){this._boundsStore.invalidateIndex(),this._markedIds.clear()}sweep(){let e=!1;this._featuresById.forEach(((t,n)=>{this._markedIds.has(n)||(e=!0,this._remove(t))})),this._markedIds.clear(),e&&this._emitChanged()}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;const t=e.objectId;if(null==t)return void r.Z.getLogger("esri.layers.graphics.data.FeatureStore").error(new i.Z("featurestore:invalid-feature","feature id is missing",{feature:e}));const n=this._featuresById.get(t);let s;if(this._markedIds.add(t),n?(e.displayId=n.displayId,s=this._boundsStore.get(t),this._boundsStore.delete(t)):(0,o.pC)(this.onFeatureAdd)&&this.onFeatureAdd(e),(0,o.Wi)(e.geometry)||!e.geometry.coords||!e.geometry.coords.length)return this._boundsStore.set(t,null),void this._featuresById.set(t,e);s=(0,d.$)((0,o.pC)(s)?s:(0,l.Ue)(),e.geometry,this.geometryInfo.hasZ,this.geometryInfo.hasM),(0,o.pC)(s)&&this._boundsStore.set(t,s),this._featuresById.set(t,e)}_remove(e){return(0,o.pC)(this.onFeatureRemove)&&this.onFeatureRemove(e),this._markedIds.delete(e.objectId),this._boundsStore.delete(e.objectId),this._featuresById.delete(e.objectId),e}}},14478:(e,t,n)=>{n.r(t),n.d(t,{default:()=>P}),n(66577);var i=n(3172),s=n(20102),r=n(92604),o=n(95330),a=n(17452),l=n(44547),d=n(37455),c=n(8744),u=n(40488),h=n(70272),p=n(5428),f=n(57191),m=n(37427),g=n(41006);const y=/^\s*"([\S\s]*)"\s*$/,_=/""/g,x=[","," ",";","|","\t"];function*I(e,t,n){let i=0;for(;i<=e.length;){const s=e.indexOf(t,i),r=e.substring(i,s>-1?s:void 0);i+=r.length+t.length,n&&!r.trim()||(yield r)}}function b(e){const t=e.includes("\r\n")?"\r\n":"\n";return I(e,t,!0)}function S(e,t){return I(e,t,!1)}function*w(e,t,n,i=(()=>Object.create(null))){let s="",r="",o=0,a=i(),l=0;e:for(const d of e){const e=S(d,n);for(const d of e)if(s+=r+d,r="",o+=F(d),o%2==0){if(o>0){const e=y.exec(s);if(!e){a=i(),l=0,s="",o=0;continue e}a[t[l]]=e[1].replace(_,'"'),l++}else a[t[l]]=s,l++;s="",o=0}else r=n;0===o?(yield a,a=i(),l=0):r="\n"}}function F(e){let t=0,n=0;for(n=e.indexOf('"',n);n>=0;)t++,n=e.indexOf('"',n+1);return t}var B=n(25278),v=n(14808);function E(e){const t=e.map((e=>e.toLowerCase()));return{longitudeFieldName:e[t.indexOf(O.find((e=>t.includes(e))))],latitudeFieldName:e[t.indexOf(j.find((e=>t.includes(e))))]}}function N(e,t,n,i){const s=[],r=w(e,n,t),o=[];for(const e of r){if(10===o.length)break;o.push(e)}for(const e of n)if(e===i.longitudeFieldName||e===i.latitudeFieldName)s.push({name:e,type:"esriFieldTypeDouble",alias:e});else{const t=M(o.map((t=>t[e]))),n={name:e,type:null,alias:e};switch(t){case"integer":n.type="esriFieldTypeInteger";break;case"double":n.type="esriFieldTypeDouble";break;case"date":n.type="esriFieldTypeDate",n.length=36;break;default:n.type="esriFieldTypeString",n.length=255}s.push(n)}return s}function M(e){if(!e.length)return"string";const t=/[^+-.,0-9]/;return e.map((e=>{let n=!1;if(""!==e){if(t.test(e))n=!0;else{let t=C(e);if(!isNaN(t))return/[.,]/.test(e)||!Number.isInteger(t)||t>214783647||t<-214783648?"double":"integer";if(e.includes("E")){if(t=Number(e),!isNaN(t))return"double";if(e.includes(",")){if(e=e.replace(",","."),t=Number(e),!isNaN(t))return"double";n=!0}else n=!0}else n=!0}return n?/^[-]?\d*[.,]?\d*$/.test(e)?"string":T(new Date(e),e)?"date":"string":"string"}})).reduce(((e,t)=>void 0===e||e===t?t:"string"===e||"string"===t?"string":"double"===e||"double"===t?"double":void 0))}function T(e,t){if(!e||"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))return!1;let n=!0;if(!X&&/\d+\W*$/.test(t)){const e=t.match(/[a-zA-Z]{2,}/);if(e){let t=!1,i=0;for(;!t&&i<=e.length;)t=!Y.test(e[i]),i++;n=!t}}return n}const C=function(){const e=(0,v.lt)(),t=new RegExp("^"+e.regexp+"$"),n=new RegExp("["+e.group+"\\s\\xa0]","g"),i=e.factor;return s=>{const r=t.exec(s);if(e.factor=i,!r)return NaN;let o=r[1];if(!r[1]){if(!r[2])return NaN;o=r[2],e.factor*=-1}return o=o.replace(n,"").replace(e.decimal,"."),+o*e.factor}}(),Y=/^((jan(uary)?)|(feb(ruary)?)|(mar(ch)?)|(apr(il)?)|(may)|(jun(e)?)|(jul(y)?)|(aug(ust)?)|(sep(tember)?)|(oct(ober)?)|(nov(ember)?)|(dec(ember)?)|(am)|(pm)|(gmt)|(utc))$/i,X=Number.isNaN(new Date("technology 10").getTime()),j=["lat","latitude","latitude83","latdecdeg","lat_dd","y","ycenter","point-y"],O=["lon","lng","long","longitude","longitude83","longdecdeg","long_dd","x","xcenter","point-x"];var k=n(99514),q=n(35671),Z=n(82971);const D=(0,B.bU)("esriGeometryPoint"),A=["csv"],L=[0,0];class R{constructor(e,t){this.x=e,this.y=t}}class P{constructor(){this._queryEngine=null,this._snapshotFeatures=async e=>{const t=await this._fetch(e);return this._createFeatures(t)}}destroy(){this._queryEngine?.destroy(),this._queryEngine=null}async load(e,t={}){this.loadOptions=e;const[n]=await Promise.all([this._fetch(t.signal),this._checkProjection(e?.parsingOptions?.spatialReference)]),i=function(e,t){const n=t.parsingOptions||{},i={delimiter:n.delimiter,layerDefinition:null,locationInfo:{latitudeFieldName:n.latitudeField,longitudeFieldName:n.longitudeField}},r=b(e);let o=r.next().value;if(!o)throw new s.Z("csv-layer:empty-csv","CSV is empty",{csv:e});if(o=o.trim(),!n.delimiter){const e=function(e){const t=e.trim();let n=0,i="";for(const e of x){const s=t.split(e).length;s>n&&(n=s,i=e)}return""===i?null:i}(o);if(!e)throw new s.Z("csv-layer:invalid-delimiter","Unable to detect the delimiter from CSV");i.delimiter=e}const l=o.split(i.delimiter).filter((e=>!!e)),d=i.layerDefinition={name:(0,a.vt)(t.url,A)||"csv",drawingInfo:D,geometryType:"esriGeometryPoint",objectIdField:null,fields:[],timeInfo:n.timeInfo,extent:{xmin:Number.POSITIVE_INFINITY,ymin:Number.POSITIVE_INFINITY,xmax:Number.NEGATIVE_INFINITY,ymax:Number.NEGATIVE_INFINITY,spatialReference:n.spatialReference||{wkid:102100}}};if(!n.latitudeField||!n.longitudeField){const e=E(l);if(!n.longitudeField&&!e.longitudeFieldName||!n.latitudeField&&!e.latitudeFieldName)throw new s.Z("csv-layer:location-fields-not-found","Unable to identify latitude and longitude fields from the CSV file");i.locationInfo={longitudeFieldName:n.longitudeField||e.longitudeFieldName,latitudeFieldName:n.latitudeField||e.latitudeFieldName}}const c=N(r,i.delimiter,l,i.locationInfo);if(n.fields&&n.fields.length){const e=new Map;for(const t of n.fields)e.set(t.name.toLowerCase(),t);for(const t of c){const n=e.get(t.name.toLowerCase());if(n){const e=t.name;Object.assign(t,n),t.name=e}}}if(d.fields=c,!d.fields.some((e=>"esriFieldTypeOID"===e.type&&(d.objectIdField=e.name,!0)))){const e={name:"__OBJECTID",alias:"__OBJECTID",type:"esriFieldTypeOID",editable:!1,nullable:!1};d.objectIdField=e.name,d.fields.unshift(e)}if(d.timeInfo){const e=new k.Z(d.fields),t=d.timeInfo;if(t.startTimeField){const n=e.get(t.startTimeField);n?(t.startTimeField=n.name,n.type="esriFieldTypeDate"):t.startTimeField=null}if(t.endTimeField){const n=e.get(t.endTimeField);n?(t.endTimeField=n.name,n.type="esriFieldTypeDate"):t.endTimeField=null}if(t.trackIdField){const n=e.get(t.trackIdField);t.trackIdField=n?n.name:null}t.startTimeField||t.endTimeField||(d.timeInfo=null)}return i}(n,e);this.locationInfo=i.locationInfo,this.delimiter=i.delimiter,this._queryEngine=this._createQueryEngine(i);const r=await this._createFeatures(n);if(this._queryEngine.featureStore.addMany(r),i.layerDefinition.extent=this._queryEngine.fullExtent,i.layerDefinition.timeInfo){const{start:e,end:t}=this._queryEngine.timeExtent;i.layerDefinition.timeInfo.timeExtent=[e,t]}return i}async applyEdits(){throw new s.Z("csv-layer:editing-not-supported","applyEdits() is not supported on CSVLayer")}async queryFeatures(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQuery(e,t.signal)}async queryFeatureCount(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForCount(e,t.signal)}async queryObjectIds(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForIds(e,t.signal)}async queryExtent(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForExtent(e,t.signal)}async querySnapping(e,t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForSnapping(e,t.signal)}async refresh(e){return this.loadOptions.customParameters=e,this._snapshotTask?.abort(),this._snapshotTask=(0,o.vr)(this._snapshotFeatures),this._snapshotTask.promise.then((e=>{this._queryEngine.featureStore.clear(),e&&this._queryEngine.featureStore.addMany(e)}),(e=>{this._queryEngine.featureStore.clear(),(0,o.D_)(e)||r.Z.getLogger("esri.layers.CSVLayer").error(new s.Z("csv-layer:refresh","An error occurred during refresh",{error:e}))})),await this._waitSnapshotComplete(),{extent:this._queryEngine.fullExtent,timeExtent:this._queryEngine.timeExtent}}async _waitSnapshotComplete(){if(this._snapshotTask&&!this._snapshotTask.finished){try{await this._snapshotTask.promise}catch{}return this._waitSnapshotComplete()}}async _fetch(e){const{url:t,customParameters:n}=this.loadOptions;if(!t)throw new s.Z("csv-layer:invalid-source","url not defined");const r=(0,a.mN)(t);return(await(0,i.default)(r.path,{query:{...r.query,...n},responseType:"text",signal:e})).data}_createQueryEngine(e){const{objectIdField:t,fields:n,extent:i,timeInfo:s}=e.layerDefinition,r=new f.Z({geometryType:"esriGeometryPoint",hasM:!1,hasZ:!1});return new g.q({fields:n,geometryType:"esriGeometryPoint",hasM:!1,hasZ:!1,timeInfo:s,objectIdField:t,spatialReference:i.spatialReference||{wkid:4326},cacheSpatialQueries:!0,featureStore:r})}async _createFeatures(e){const{latitudeFieldName:t,longitudeFieldName:n}=this.locationInfo,{objectIdField:i,fieldsIndex:s,spatialReference:r}=this._queryEngine;let o=[];const a=[],f=s.fields.filter((e=>e.name!==i)).map((e=>e.name));let m=0;const g=b(e);g.next();const y={};for(const e of s.fields)if("esriFieldTypeOID"!==e.type&&"esriFieldTypeGlobalID"!==e.type){const t=(0,q.os)(e);void 0!==t&&(y[e.name]=t)}const _=w(g,f,this.delimiter,(0,B.Dm)(y,i));for(const e of _){const r=this._parseCoordinateValue(e[t]),l=this._parseCoordinateValue(e[n]);if(null!=l&&null!=r&&!isNaN(r)&&!isNaN(l)){e[t]=r,e[n]=l;for(const i in e)if(i!==t&&i!==n)if(s.isDateField(i)){const t=new Date(e[i]);e[i]=T(t,e[i])?t.getTime():null}else if(s.isNumericField(i)){const t=C(e[i]);isNaN(t)?e[i]=null:e[i]=t}e[i]=m,m++,o.push(new R(l,r)),a.push(e)}}if(!(0,c.fS)({wkid:4326},r))if((0,c.sS)(r))for(const e of o)[e.x,e.y]=(0,u.hG)(e.x,e.y,L);else o=(0,l.oj)(d.N,o,Z.Z.WGS84,r,null);const x=[];for(let e=0;e<o.length;e++){const{x:t,y:n}=o[e],s=a[e];s[i]=e+1,x.push(new h.u_(new p.Z([],[t,n]),s,null,s[i]))}return x}_parseCoordinateValue(e){if(null==e||""===e)return null;let t=C(e);return(isNaN(t)||Math.abs(t)>181)&&(t=parseFloat(e)),t}async _checkProjection(e){try{await(0,m._W)(c.Zn,e)}catch{throw new s.Z("csv-layer:projection-not-supported","Projection not supported")}}}},25278:(e,t,n)=>{n.d(t,{Dm:()=>c,Hq:()=>u,MS:()=>h,bU:()=>a});var i=n(80442),s=n(22974),r=n(61159),o=n(58333);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?o.I4:"esriGeometryPolyline"===e?o.ET:o.lF}}}const l=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let d=1;function c(e,t){if((0,i.Z)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let n=`this.${t} = null;`;for(const t in e)n+=`this${l.test(t)?`.${t}`:`["${t}"]`} = ${JSON.stringify(e[t])};`;const i=new Function(`\n return class AttributesClass$${d++} {\n constructor() {\n ${n};\n }\n }\n `)();return()=>new i}catch(n){return()=>({[t]:null,...e})}}function u(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,s.d9)(e)}}]}function h(e,t){return{attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryAttachments:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0},query:r.g,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0},editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1}}}},58333:(e,t,n)=>{n.d(t,{ET:()=>r,I4:()=>s,eG:()=>l,lF:()=>o,lj:()=>c,qP:()=>a,wW:()=>d});const i=[252,146,31,255],s={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},r={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i},o={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},a={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},l={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},d={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},c={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[176],{97575:(e,t,r)=>{r.d(t,{J:()=>a});var o,n,i,s={exports:{}};o=s,n=function(){var e=function(){function e(e){this.message="JPEG error: "+e}return e.prototype=new Error,e.prototype.name="JpegError",e.constructor=e,e}();return function(){if(!self||!self.Uint8ClampedArray)return null;var t=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),r=4017,o=799,n=3406,i=2276,s=1567,a=3784,l=5793,h=2896;function c(){this.decodeTransform=null,this.colorTransform=-1}function u(e,t){for(var r,o,n=0,i=[],s=16;s>0&&!e[s-1];)s--;i.push({children:[],index:0});var a,l=i[0];for(r=0;r<s;r++){for(o=0;o<e[r];o++){for((l=i.pop()).children[l.index]=t[n];l.index>0;)l=i.pop();for(l.index++,i.push(l);i.length<=r;)i.push(a={children:[],index:0}),l.children[l.index]=a.children,l=a;n++}r+1<s&&(i.push(a={children:[],index:0}),l.children[l.index]=a.children,l=a)}return i[0].children}function f(e,t,r){return 64*((e.blocksPerLine+1)*t+r)}function p(r,o,n,i,s,a,l,h,c){var u=n.mcusPerLine,p=n.progressive,d=o,m=0,y=0;function C(){if(y>0)return y--,m>>y&1;if(255===(m=r[o++])){var t=r[o++];if(t)throw new e("unexpected marker "+(m<<8|t).toString(16))}return y=7,m>>>7}function w(t){for(var r=t;;){if("number"==typeof(r=r[C()]))return r;if("object"!=typeof r)throw new e("invalid huffman sequence")}}function b(e){for(var t=0;e>0;)t=t<<1|C(),e--;return t}function x(e){if(1===e)return 1===C()?1:-1;var t=b(e);return t>=1<<e-1?t:t+(-1<<e)+1}var T,k=0,v=0;function S(e,t,r,o,n){var i=r%u;t(e,f(e,(r/u|0)*e.v+o,i*e.h+n))}function A(e,t,r){t(e,f(e,r/e.blocksPerLine|0,r%e.blocksPerLine))}var I,P,M,R,D,E,_=i.length;E=p?0===a?0===h?function(e,t){var r=w(e.huffmanTableDC),o=0===r?0:x(r)<<c;e.blockData[t]=e.pred+=o}:function(e,t){e.blockData[t]|=C()<<c}:0===h?function(e,r){if(k>0)k--;else for(var o=a,n=l;o<=n;){var i=w(e.huffmanTableAC),s=15&i,h=i>>4;if(0!==s){var u=t[o+=h];e.blockData[r+u]=x(s)*(1<<c),o++}else{if(h<15){k=b(h)+(1<<h)-1;break}o+=16}}}:function(r,o){for(var n,i,s=a,h=l,u=0;s<=h;){var f=t[s];switch(v){case 0:if(u=(i=w(r.huffmanTableAC))>>4,0==(n=15&i))u<15?(k=b(u)+(1<<u),v=4):(u=16,v=1);else{if(1!==n)throw new e("invalid ACn encoding");T=x(n),v=u?2:3}continue;case 1:case 2:r.blockData[o+f]?r.blockData[o+f]+=C()<<c:0==--u&&(v=2===v?3:0);break;case 3:r.blockData[o+f]?r.blockData[o+f]+=C()<<c:(r.blockData[o+f]=T<<c,v=0);break;case 4:r.blockData[o+f]&&(r.blockData[o+f]+=C()<<c)}s++}4===v&&0==--k&&(v=0)}:function(e,r){var o=w(e.huffmanTableDC),n=0===o?0:x(o);e.blockData[r]=e.pred+=n;for(var i=1;i<64;){var s=w(e.huffmanTableAC),a=15&s,l=s>>4;if(0!==a){var h=t[i+=l];e.blockData[r+h]=x(a),i++}else{if(l<15)break;i+=16}}};var L,U,G,B,O=0;for(U=1===_?i[0].blocksPerLine*i[0].blocksPerColumn:u*n.mcusPerColumn;O<U;){var N=s?Math.min(U-O,s):U;for(P=0;P<_;P++)i[P].pred=0;if(k=0,1===_)for(I=i[0],D=0;D<N;D++)A(I,E,O),O++;else for(D=0;D<N;D++){for(P=0;P<_;P++)for(G=(I=i[P]).h,B=I.v,M=0;M<B;M++)for(R=0;R<G;R++)S(I,E,O,M,R);O++}y=0,(L=g(r,o))&&L.invalid&&(console.log("decodeScan - unexpected MCU data, next marker is: "+L.invalid),o=L.offset);var F=L&&L.marker;if(!F||F<=65280)throw new e("marker was not found");if(!(F>=65488&&F<=65495))break;o+=2}return(L=g(r,o))&&L.invalid&&(console.log("decodeScan - unexpected Scan data, next marker is: "+L.invalid),o=L.offset),o-d}function d(t,c,u){var f,p,d,m,g,y,C,w,b,x,T,k,v,S,A,I,P,M=t.quantizationTable,R=t.blockData;if(!M)throw new e("missing required Quantization Table.");for(var D=0;D<64;D+=8)b=R[c+D],x=R[c+D+1],T=R[c+D+2],k=R[c+D+3],v=R[c+D+4],S=R[c+D+5],A=R[c+D+6],I=R[c+D+7],b*=M[D],0!=(x|T|k|v|S|A|I)?(x*=M[D+1],T*=M[D+2],k*=M[D+3],v*=M[D+4],S*=M[D+5],A*=M[D+6],I*=M[D+7],p=(f=(f=l*b+128>>8)+(p=l*v+128>>8)+1>>1)-p,P=(d=T)*a+(m=A)*s+128>>8,d=d*s-m*a+128>>8,C=(g=(g=h*(x-I)+128>>8)+(C=S<<4)+1>>1)-C,y=(w=(w=h*(x+I)+128>>8)+(y=k<<4)+1>>1)-y,m=(f=f+(m=P)+1>>1)-m,d=(p=p+d+1>>1)-d,P=g*i+w*n+2048>>12,g=g*n-w*i+2048>>12,w=P,P=y*o+C*r+2048>>12,y=y*r-C*o+2048>>12,C=P,u[D]=f+w,u[D+7]=f-w,u[D+1]=p+C,u[D+6]=p-C,u[D+2]=d+y,u[D+5]=d-y,u[D+3]=m+g,u[D+4]=m-g):(P=l*b+512>>10,u[D]=P,u[D+1]=P,u[D+2]=P,u[D+3]=P,u[D+4]=P,u[D+5]=P,u[D+6]=P,u[D+7]=P);for(var E=0;E<8;++E)b=u[E],0!=((x=u[E+8])|(T=u[E+16])|(k=u[E+24])|(v=u[E+32])|(S=u[E+40])|(A=u[E+48])|(I=u[E+56]))?(p=(f=4112+((f=l*b+2048>>12)+(p=l*v+2048>>12)+1>>1))-p,P=(d=T)*a+(m=A)*s+2048>>12,d=d*s-m*a+2048>>12,m=P,C=(g=(g=h*(x-I)+2048>>12)+(C=S)+1>>1)-C,y=(w=(w=h*(x+I)+2048>>12)+(y=k)+1>>1)-y,P=g*i+w*n+2048>>12,g=g*n-w*i+2048>>12,w=P,P=y*o+C*r+2048>>12,y=y*r-C*o+2048>>12,b=(b=(f=f+m+1>>1)+w)<16?0:b>=4080?255:b>>4,x=(x=(p=p+d+1>>1)+(C=P))<16?0:x>=4080?255:x>>4,T=(T=(d=p-d)+y)<16?0:T>=4080?255:T>>4,k=(k=(m=f-m)+g)<16?0:k>=4080?255:k>>4,v=(v=m-g)<16?0:v>=4080?255:v>>4,S=(S=d-y)<16?0:S>=4080?255:S>>4,A=(A=p-C)<16?0:A>=4080?255:A>>4,I=(I=f-w)<16?0:I>=4080?255:I>>4,R[c+E]=b,R[c+E+8]=x,R[c+E+16]=T,R[c+E+24]=k,R[c+E+32]=v,R[c+E+40]=S,R[c+E+48]=A,R[c+E+56]=I):(P=(P=l*b+8192>>14)<-2040?0:P>=2024?255:P+2056>>4,R[c+E]=P,R[c+E+8]=P,R[c+E+16]=P,R[c+E+24]=P,R[c+E+32]=P,R[c+E+40]=P,R[c+E+48]=P,R[c+E+56]=P)}function m(e,t){for(var r=t.blocksPerLine,o=t.blocksPerColumn,n=new Int16Array(64),i=0;i<o;i++)for(var s=0;s<r;s++)d(t,f(t,i,s),n);return t.blockData}function g(e,t,r){function o(t){return e[t]<<8|e[t+1]}var n=e.length-1,i=r<t?r:t;if(t>=n)return null;var s=o(t);if(s>=65472&&s<=65534)return{invalid:null,marker:s,offset:t};for(var a=o(i);!(a>=65472&&a<=65534);){if(++i>=n)return null;a=o(i)}return{invalid:s.toString(16),marker:a,offset:i}}return c.prototype={parse:function(r){function o(){var e=r[l]<<8|r[l+1];return l+=2,e}function n(){var e=o(),t=l+e-2,n=g(r,t,l);n&&n.invalid&&(console.log("readDataBlock - incorrect length, next marker is: "+n.invalid),t=n.offset);var i=r.subarray(l,t);return l+=i.length,i}function i(e){for(var t=Math.ceil(e.samplesPerLine/8/e.maxH),r=Math.ceil(e.scanLines/8/e.maxV),o=0;o<e.components.length;o++){O=e.components[o];var n=Math.ceil(Math.ceil(e.samplesPerLine/8)*O.h/e.maxH),i=Math.ceil(Math.ceil(e.scanLines/8)*O.v/e.maxV),s=t*O.h,a=r*O.v*64*(s+1);O.blockData=new Int16Array(a),O.blocksPerLine=n,O.blocksPerColumn=i}e.mcusPerLine=t,e.mcusPerColumn=r}var s,a,l=0,h=null,c=null,f=[],d=[],y=[],C=o();if(65496!==C)throw new e("SOI not found");for(C=o();65497!==C;){var w,b,x;switch(C){case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:var T=n();65504===C&&74===T[0]&&70===T[1]&&73===T[2]&&70===T[3]&&0===T[4]&&(h={version:{major:T[5],minor:T[6]},densityUnits:T[7],xDensity:T[8]<<8|T[9],yDensity:T[10]<<8|T[11],thumbWidth:T[12],thumbHeight:T[13],thumbData:T.subarray(14,14+3*T[12]*T[13])}),65518===C&&65===T[0]&&100===T[1]&&111===T[2]&&98===T[3]&&101===T[4]&&(c={version:T[5]<<8|T[6],flags0:T[7]<<8|T[8],flags1:T[9]<<8|T[10],transformCode:T[11]});break;case 65499:for(var k=o()+l-2;l<k;){var v=r[l++],S=new Uint16Array(64);if(v>>4==0)for(b=0;b<64;b++)S[t[b]]=r[l++];else{if(v>>4!=1)throw new e("DQT - invalid table spec");for(b=0;b<64;b++)S[t[b]]=o()}f[15&v]=S}break;case 65472:case 65473:case 65474:if(s)throw new e("Only single frame JPEGs supported");o(),(s={}).extended=65473===C,s.progressive=65474===C,s.precision=r[l++],s.scanLines=o(),s.samplesPerLine=o(),s.components=[],s.componentIds={};var A,I=r[l++],P=0,M=0;for(w=0;w<I;w++){A=r[l];var R=r[l+1]>>4,D=15&r[l+1];P<R&&(P=R),M<D&&(M=D);var E=r[l+2];x=s.components.push({h:R,v:D,quantizationId:E,quantizationTable:null}),s.componentIds[A]=x-1,l+=3}s.maxH=P,s.maxV=M,i(s);break;case 65476:var _=o();for(w=2;w<_;){var L=r[l++],U=new Uint8Array(16),G=0;for(b=0;b<16;b++,l++)G+=U[b]=r[l];var B=new Uint8Array(G);for(b=0;b<G;b++,l++)B[b]=r[l];w+=17+G,(L>>4==0?y:d)[15&L]=u(U,B)}break;case 65501:o(),a=o();break;case 65498:o();var O,N=r[l++],F=[];for(w=0;w<N;w++){var V=s.componentIds[r[l++]];O=s.components[V];var z=r[l++];O.huffmanTableDC=y[z>>4],O.huffmanTableAC=d[15&z],F.push(O)}var j=r[l++],W=r[l++],Z=r[l++],J=p(r,l,s,F,a,j,W,Z>>4,15&Z);l+=J;break;case 65535:255!==r[l]&&l--;break;default:if(255===r[l-3]&&r[l-2]>=192&&r[l-2]<=254){l-=3;break}throw new e("unknown marker "+C.toString(16))}C=o()}for(this.width=s.samplesPerLine,this.height=s.scanLines,this.jfif=h,this.eof=l,this.adobe=c,this.components=[],w=0;w<s.components.length;w++){var H=f[(O=s.components[w]).quantizationId];H&&(O.quantizationTable=H),this.components.push({output:m(0,O),scaleX:O.h/s.maxH,scaleY:O.v/s.maxV,blocksPerLine:O.blocksPerLine,blocksPerColumn:O.blocksPerColumn})}this.numComponents=this.components.length},_getLinearizedBlockData:function(e,t){var r,o,n,i,s,a,l,h,c,u,f,p=this.width/e,d=this.height/t,m=0,g=this.components.length,y=e*t*g,C=new Uint8ClampedArray(y),w=new Uint32Array(e),b=4294967288;for(l=0;l<g;l++){for(o=(r=this.components[l]).scaleX*p,n=r.scaleY*d,m=l,f=r.output,i=r.blocksPerLine+1<<3,s=0;s<e;s++)h=0|s*o,w[s]=(h&b)<<3|7&h;for(a=0;a<t;a++)for(u=i*((h=0|a*n)&b)|(7&h)<<3,s=0;s<e;s++)C[m]=f[u+w[s]],m+=g}var x=this.decodeTransform;if(x)for(l=0;l<y;)for(h=0,c=0;h<g;h++,l++,c+=2)C[l]=(C[l]*x[c]>>8)+x[c+1];return C},_isColorConversionNeeded:function(){return this.adobe?!!this.adobe.transformCode:3===this.numComponents?0!==this.colorTransform:1===this.colorTransform},_convertYccToRgb:function(e){for(var t,r,o,n=0,i=e.length;n<i;n+=3)t=e[n],r=e[n+1],o=e[n+2],e[n]=t-179.456+1.402*o,e[n+1]=t+135.459-.344*r-.714*o,e[n+2]=t-226.816+1.772*r;return e},_convertYcckToRgb:function(e){for(var t,r,o,n,i=0,s=0,a=e.length;s<a;s+=4)t=e[s],r=e[s+1],o=e[s+2],n=e[s+3],e[i++]=r*(-660635669420364e-19*r+.000437130475926232*o-54080610064599e-18*t+.00048449797120281*n-.154362151871126)-122.67195406894+o*(-.000957964378445773*o+.000817076911346625*t-.00477271405408747*n+1.53380253221734)+t*(.000961250184130688*t-.00266257332283933*n+.48357088451265)+n*(-.000336197177618394*n+.484791561490776),e[i++]=107.268039397724+r*(219927104525741e-19*r-.000640992018297945*o+.000659397001245577*t+.000426105652938837*n-.176491792462875)+o*(-.000778269941513683*o+.00130872261408275*t+.000770482631801132*n-.151051492775562)+t*(.00126935368114843*t-.00265090189010898*n+.25802910206845)+n*(-.000318913117588328*n-.213742400323665),e[i++]=r*(-.000570115196973677*r-263409051004589e-19*o+.0020741088115012*t-.00288260236853442*n+.814272968359295)-20.810012546947+o*(-153496057440975e-19*o-.000132689043961446*t+.000560833691242812*n-.195152027534049)+t*(.00174418132927582*t-.00255243321439347*n+.116935020465145)+n*(-.000343531996510555*n+.24165260232407);return e},_convertYcckToCmyk:function(e){for(var t,r,o,n=0,i=e.length;n<i;n+=4)t=e[n],r=e[n+1],o=e[n+2],e[n]=434.456-t-1.402*o,e[n+1]=119.541-t+.344*r+.714*o,e[n+2]=481.816-t-1.772*r;return e},_convertCmykToRgb:function(e){for(var t,r,o,n,i=0,s=1/255,a=0,l=e.length;a<l;a+=4)t=e[a]*s,r=e[a+1]*s,o=e[a+2]*s,n=e[a+3]*s,e[i++]=255+t*(-4.387332384609988*t+54.48615194189176*r+18.82290502165302*o+212.25662451639585*n-285.2331026137004)+r*(1.7149763477362134*r-5.6096736904047315*o-17.873870861415444*n-5.497006427196366)+o*(-2.5217340131683033*o-21.248923337353073*n+17.5119270841813)-n*(21.86122147463605*n+189.48180835922747),e[i++]=255+t*(8.841041422036149*t+60.118027045597366*r+6.871425592049007*o+31.159100130055922*n-79.2970844816548)+r*(-15.310361306967817*r+17.575251261109482*o+131.35250912493976*n-190.9453302588951)+o*(4.444339102852739*o+9.8632861493405*n-24.86741582555878)-n*(20.737325471181034*n+187.80453709719578),e[i++]=255+t*(.8842522430003296*t+8.078677503112928*r+30.89978309703729*o-.23883238689178934*n-14.183576799673286)+r*(10.49593273432072*r+63.02378494754052*o+50.606957656360734*n-112.23884253719248)+o*(.03296041114873217*o+115.60384449646641*n-193.58209356861505)-n*(22.33816807309886*n+180.12613974708367);return e},getData:function(t,r,o){if(this.numComponents>4)throw new e("Unsupported color mode");var n=this._getLinearizedBlockData(t,r);if(1===this.numComponents&&o){for(var i=n.length,s=new Uint8ClampedArray(3*i),a=0,l=0;l<i;l++){var h=n[l];s[a++]=h,s[a++]=h,s[a++]=h}return s}if(3===this.numComponents&&this._isColorConversionNeeded())return this._convertYccToRgb(n);if(4===this.numComponents){if(this._isColorConversionNeeded())return o?this._convertYcckToRgb(n):this._convertYcckToCmyk(n);if(o)return this._convertCmykToRgb(n)}return n}},c}()},void 0!==(i=n())&&(o.exports=i);const a=s.exports},80899:(e,t,r)=>{r.d(t,{Z:()=>a});var o,n,i,s={exports:{}};n=s,void 0!==(o=function(){function e(){this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=null}return e.prototype={ensureBuffer:function(e){var t=this.buffer,r=t?t.byteLength:0;if(e<r)return t;for(var o=512;o<e;)o<<=1;for(var n=new Uint8Array(o),i=0;i<r;++i)n[i]=t[i];return this.buffer=n},getByte:function(){for(var e=this.pos;this.bufferLength<=e;){if(this.eof)return null;this.readBlock()}return this.buffer[this.pos++]},getBytes:function(e){var t=this.pos;if(e){this.ensureBuffer(t+e);for(var r=t+e;!this.eof&&this.bufferLength<r;)this.readBlock();var o=this.bufferLength;r>o&&(r=o)}else{for(;!this.eof;)this.readBlock();r=this.bufferLength}return this.pos=r,this.buffer.subarray(t,r)},lookChar:function(){for(var e=this.pos;this.bufferLength<=e;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos])},getChar:function(){for(var e=this.pos;this.bufferLength<=e;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos++])},makeSubStream:function(e,t,r){for(var o=e+t;this.bufferLength<=o&&!this.eof;)this.readBlock();return new Stream(this.buffer,e,t,r)},skip:function(e){e||(e=1),this.pos+=e},reset:function(){this.pos=0}},e}(),i=function(){if(!self||!self.Uint32Array)return null;var e=new Uint32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),t=new Uint32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),r=new Uint32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),n=[new Uint32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],i=[new Uint32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5];function s(e){throw new Error(e)}function a(e){var t=0,r=e[t++],n=e[t++];-1!=r&&-1!=n||s("Invalid header in flate stream"),8!=(15&r)&&s("Unknown compression method in flate stream"),((r<<8)+n)%31!=0&&s("Bad FCHECK in flate stream"),32&n&&s("FDICT bit set in flate stream"),this.bytes=e,this.bytesPos=2,this.codeSize=0,this.codeBuf=0,o.call(this)}return a.prototype=Object.create(o.prototype),a.prototype.getBits=function(e){for(var t,r=this.codeSize,o=this.codeBuf,n=this.bytes,i=this.bytesPos;r<e;)void 0===(t=n[i++])&&s("Bad encoding in flate stream"),o|=t<<r,r+=8;return t=o&(1<<e)-1,this.codeBuf=o>>e,this.codeSize=r-=e,this.bytesPos=i,t},a.prototype.getCode=function(e){for(var t=e[0],r=e[1],o=this.codeSize,n=this.codeBuf,i=this.bytes,a=this.bytesPos;o<r;){var l;void 0===(l=i[a++])&&s("Bad encoding in flate stream"),n|=l<<o,o+=8}var h=t[n&(1<<r)-1],c=h>>16,u=65535&h;return(0==o||o<c||0==c)&&s("Bad encoding in flate stream"),this.codeBuf=n>>c,this.codeSize=o-c,this.bytesPos=a,u},a.prototype.generateHuffmanTable=function(e){for(var t=e.length,r=0,o=0;o<t;++o)e[o]>r&&(r=e[o]);for(var n=1<<r,i=new Uint32Array(n),s=1,a=0,l=2;s<=r;++s,a<<=1,l<<=1)for(var h=0;h<t;++h)if(e[h]==s){var c=0,u=a;for(o=0;o<s;++o)c=c<<1|1&u,u>>=1;for(o=c;o<n;o+=l)i[o]=s<<16|h;++a}return[i,r]},a.prototype.readBlock=function(){function o(e,t,r,o,n){for(var i=e.getBits(r)+o;i-- >0;)t[d++]=n}var a=this.getBits(3);if(1&a&&(this.eof=!0),0!=(a>>=1)){var l,h;if(1==a)l=n,h=i;else if(2==a){for(var c=this.getBits(5)+257,u=this.getBits(5)+1,f=this.getBits(4)+4,p=Array(e.length),d=0;d<f;)p[e[d++]]=this.getBits(3);for(var m=this.generateHuffmanTable(p),g=0,y=(d=0,c+u),C=new Array(y);d<y;){var w=this.getCode(m);16==w?o(this,C,2,3,g):17==w?o(this,C,3,3,g=0):18==w?o(this,C,7,11,g=0):C[d++]=g=w}l=this.generateHuffmanTable(C.slice(0,c)),h=this.generateHuffmanTable(C.slice(c,y))}else s("Unknown block type in flate stream");for(var b=(E=this.buffer)?E.length:0,x=this.bufferLength;;){var T=this.getCode(l);if(T<256)x+1>=b&&(b=(E=this.ensureBuffer(x+1)).length),E[x++]=T;else{if(256==T)return void(this.bufferLength=x);var k=(T=t[T-=257])>>16;k>0&&(k=this.getBits(k)),g=(65535&T)+k,T=this.getCode(h),(k=(T=r[T])>>16)>0&&(k=this.getBits(k));var v=(65535&T)+k;x+g>=b&&(b=(E=this.ensureBuffer(x+g)).length);for(var S=0;S<g;++S,++x)E[x]=E[x-v]}}}else{var A,I=this.bytes,P=this.bytesPos;void 0===(A=I[P++])&&s("Bad block header in flate stream");var M=A;void 0===(A=I[P++])&&s("Bad block header in flate stream"),M|=A<<8,void 0===(A=I[P++])&&s("Bad block header in flate stream");var R=A;void 0===(A=I[P++])&&s("Bad block header in flate stream"),(R|=A<<8)!=(65535&~M)&&s("Bad uncompressed block length in flate stream"),this.codeBuf=0,this.codeSize=0;var D=this.bufferLength,E=this.ensureBuffer(D+M),_=D+M;this.bufferLength=_;for(var L=D;L<_;++L){if(void 0===(A=I[P++])){this.eof=!0;break}E[L]=A}this.bytesPos=P}},a}())&&(n.exports=i);const a=s.exports},3892:(e,t,r)=>{function o(e){return"h"in e&&"s"in e&&"v"in e}function n(e){return"l"in e&&"a"in e&&"b"in e}function i(e){return"l"in e&&"c"in e&&"h"in e}r.d(t,{Y3:()=>m,_Y:()=>d,sJ:()=>g,xr:()=>p});const s=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],a=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];function l(e,t){const r=[];let o,n;if(e[0].length!==t.length)throw"dimensions do not match";const i=e.length,s=e[0].length;let a=0;for(o=0;o<i;o++){for(a=0,n=0;n<s;n++)a+=e[o][n]*t[n];r.push(a)}return r}function h(e){const t=[e.r/255,e.g/255,e.b/255].map((e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4)),r=l(s,t);return{x:100*r[0],y:100*r[1],z:100*r[2]}}function c(e){const t=l(a,[e.x/100,e.y/100,e.z/100]).map((e=>{const t=e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055;return Math.min(1,Math.max(t,0))}));return{r:Math.round(255*t[0]),g:Math.round(255*t[1]),b:Math.round(255*t[2])}}function u(e){const t=[e.x/95.047,e.y/100,e.z/108.883].map((e=>e>(6/29)**3?e**(1/3):1/3*(29/6)**2*e+4/29));return{l:116*t[1]-16,a:500*(t[0]-t[1]),b:200*(t[1]-t[2])}}function f(e){const t=e.l,r=[(t+16)/116+e.a/500,(t+16)/116,(t+16)/116-e.b/200].map((e=>e>6/29?e**3:3*(6/29)**2*(e-4/29)));return{x:95.047*r[0],y:100*r[1],z:108.883*r[2]}}function p(e){return"r"in(t=e)&&"g"in t&&"b"in t?e:i(e)?function(e){return c(f(function(e){const t=e.l,r=e.c,o=e.h;return{l:t,a:r*Math.cos(o),b:r*Math.sin(o)}}(e)))}(e):n(e)?function(e){return c(f(e))}(e):function(e){return"x"in e&&"y"in e&&"z"in e}(e)?c(e):o(e)?function(e){const t=(e.h+360)%360/60,r=e.s/100,o=e.v/100*255,n=o*r,i=n*(1-Math.abs(t%2-1));let s;switch(Math.floor(t)){case 0:s={r:n,g:i,b:0};break;case 1:s={r:i,g:n,b:0};break;case 2:s={r:0,g:n,b:i};break;case 3:s={r:0,g:i,b:n};break;case 4:s={r:i,g:0,b:n};break;case 5:case 6:s={r:n,g:0,b:i};break;default:s={r:0,g:0,b:0}}return s.r=Math.round(s.r+o-n),s.g=Math.round(s.g+o-n),s.b=Math.round(s.b+o-n),s}(e):e;var t}function d(e){return o(e)?e:function(e){const t=e.r,r=e.g,o=e.b,n=Math.max(t,r,o),i=n-Math.min(t,r,o);let s=n,a=0===i?0:n===t?(r-o)/i%6:n===r?(o-t)/i+2:(t-r)/i+4,l=0===i?0:i/s;return a<0&&(a+=6),a*=60,l*=100,s*=100/255,{h:a,s:l,v:s}}(p(e))}function m(e){return n(e)?e:function(e){return u(h(e))}(p(e))}function g(e){return i(e)?e:function(e){return function(e){const t=e.l,r=e.a,o=e.b,n=Math.sqrt(r*r+o*o);let i=Math.atan2(o,r);return i=i>0?i:i+2*Math.PI,{l:t,c:n,h:i}}(u(h(e)))}(p(e))}},54163:(e,t,r)=>{r.d(t,{Z:()=>m});var o,n=r(43697),i=(r(80442),r(20102)),s=r(96674),a=r(22974),l=r(92604),h=r(70586),c=r(5600),u=r(90578),f=r(52011);const p=l.Z.getLogger("esri.layers.support.PixelBlock");let d=o=class extends s.wq{constructor(e){super(e),this.width=null,this.height=null,this.pixelType="f32",this.validPixelCount=null,this.mask=null,this.maskIsAlpha=!1,this.pixels=null,this.statistics=null}static createEmptyBand(e,t){return new(o.getPixelArrayConstructor(e))(t)}static getPixelArrayConstructor(e){let t;switch(e){case"u1":case"u2":case"u4":case"u8":t=Uint8Array;break;case"u16":t=Uint16Array;break;case"u32":t=Uint32Array;break;case"s8":t=Int8Array;break;case"s16":t=Int16Array;break;case"s32":t=Int32Array;break;case"f32":case"c64":case"c128":case"unknown":t=Float32Array;break;case"f64":t=Float64Array}return t}castPixelType(e){if(!e)return"f32";let t=e.toLowerCase();return["u1","u2","u4"].includes(t)?t="u8":["unknown","u8","s8","u16","s16","u32","s32","f32","f64"].includes(t)||(t="f32"),t}getPlaneCount(){return this.pixels&&this.pixels.length}addData(e){if(!e.pixels||e.pixels.length!==this.width*this.height)throw new i.Z("pixelblock:invalid-or-missing-pixels","add data requires valid pixels array that has same length defined by pixel block width * height");this.pixels||(this.pixels=[]),this.statistics||(this.statistics=[]),this.pixels.push(e.pixels),this.statistics.push(e.statistics||{minValue:null,maxValue:null})}getAsRGBA(){const e=new ArrayBuffer(this.width*this.height*4);switch(this.pixelType){case"s8":case"s16":case"u16":case"s32":case"u32":case"f32":case"f64":this._fillFromNon8Bit(e);break;default:this._fillFrom8Bit(e)}return new Uint8ClampedArray(e)}getAsRGBAFloat(){const e=new Float32Array(this.width*this.height*4);return this._fillFrom32Bit(e),e}updateStatistics(){this.statistics=this.pixels.map((e=>this._calculateBandStatistics(e,this.mask)));const e=this.mask;let t=0;if(e)for(let r=0;r<e.length;r++)e[r]&&t++;else t=this.width*this.height;this.validPixelCount=t}clamp(e){if(!e||"f64"===e||"f32"===e)return;let t;switch(e){case"u8":t=[0,255];break;case"u16":t=[0,65535];break;case"u32":t=[0,4294967295];break;case"s8":t=[-128,127];break;case"s16":t=[-32768,32767];break;case"s32":t=[-2147483648,2147483647];break;default:t=[-34e38,34e38]}const[r,n]=t,i=this.pixels,s=this.width*this.height,a=i.length;let l,h,c;const u=[];for(let t=0;t<a;t++){c=o.createEmptyBand(e,s),l=i[t];for(let e=0;e<s;e++)h=l[e],c[e]=h>n?n:h<r?r:h;u.push(c)}this.pixels=u,this.pixelType=e}extractBands(e){if((0,h.Wi)(e)||0===e.length||null==this.pixels||0===this.pixels.length)return this;const t=this.pixels.length,r=e.some((e=>e>=this.pixels.length)),n=t===e.length&&!e.some(((e,t)=>e!==t));return r||n?this:new o({pixelType:this.pixelType,width:this.width,height:this.height,mask:this.mask,validPixelCount:this.validPixelCount,maskIsAlpha:this.maskIsAlpha,pixels:e.map((e=>this.pixels[e])),statistics:this.statistics&&e.map((e=>this.statistics[e]))})}clone(){const e=new o({width:this.width,height:this.height,pixelType:this.pixelType,maskIsAlpha:this.maskIsAlpha,validPixelCount:this.validPixelCount});let t;this.mask&&(this.mask instanceof Uint8Array?e.mask=new Uint8Array(this.mask):e.mask=this.mask.slice(0));const r=o.getPixelArrayConstructor(this.pixelType);if(this.pixels&&this.pixels.length>0){e.pixels=[];const o=this.pixels[0].slice;for(t=0;t<this.pixels.length;t++)e.pixels[t]=o?this.pixels[t].slice(0,this.pixels[t].length):new r(this.pixels[t])}if(this.statistics)for(e.statistics=[],t=0;t<this.statistics.length;t++)e.statistics[t]=(0,a.d9)(this.statistics[t]);return e}_fillFrom8Bit(e){const{mask:t,maskIsAlpha:r,pixels:o}=this;if(!e||!o||!o.length)return void p.error("getAsRGBA()","Unable to convert to RGBA. The input pixel block is empty.");let n,i,s,a;n=i=s=o[0],o.length>=3?(i=o[1],s=o[2]):2===o.length&&(i=o[1]);const l=new Uint32Array(e),h=this.width*this.height;if(n.length===h)if(t&&t.length===h)if(r)for(a=0;a<h;a++)t[a]&&(l[a]=t[a]<<24|s[a]<<16|i[a]<<8|n[a]);else for(a=0;a<h;a++)t[a]&&(l[a]=255<<24|s[a]<<16|i[a]<<8|n[a]);else for(a=0;a<h;a++)l[a]=255<<24|s[a]<<16|i[a]<<8|n[a];else p.error("getAsRGBA()","Unable to convert to RGBA. The pixelblock is invalid.")}_fillFromNon8Bit(e){const{pixels:t,mask:r,statistics:o}=this;if(!e||!t||!t.length)return void p.error("getAsRGBA()","Unable to convert to RGBA. The input pixel block is empty.");const n=this.pixelType;let i=1,s=0,a=1;if(o&&o.length>0)s=o.map((e=>e.minValue)).reduce(((e,t)=>Math.min(e,t))),a=o.map((e=>e.maxValue-e.minValue)).reduce(((e,t)=>Math.max(e,t))),i=255/a;else{let e=255;"s8"===n?(s=-128,e=127):"u16"===n?e=65535:"s16"===n?(s=-32768,e=32767):"u32"===n?e=4294967295:"s32"===n?(s=-2147483648,e=2147483647):"f32"===n?(s=-34e38,e=34e38):"f64"===n&&(s=-Number.MAX_VALUE,e=Number.MAX_VALUE),i=255/(e-s)}const l=new Uint32Array(e),h=this.width*this.height;let c,u,f,d,m;if(c=u=f=t[0],c.length!==h)return p.error("getAsRGBA()","Unable to convert to RGBA. The pixelblock is invalid.");if(t.length>=2)if(u=t[1],t.length>=3&&(f=t[2]),r&&r.length===h)for(d=0;d<h;d++)r[d]&&(l[d]=255<<24|(f[d]-s)*i<<16|(u[d]-s)*i<<8|(c[d]-s)*i);else for(d=0;d<h;d++)l[d]=255<<24|(f[d]-s)*i<<16|(u[d]-s)*i<<8|(c[d]-s)*i;else if(r&&r.length===h)for(d=0;d<h;d++)m=(c[d]-s)*i,r[d]&&(l[d]=255<<24|m<<16|m<<8|m);else for(d=0;d<h;d++)m=(c[d]-s)*i,l[d]=255<<24|m<<16|m<<8|m}_fillFrom32Bit(e){const{pixels:t,mask:r}=this;if(!e||!t||!t.length)return p.error("getAsRGBAFloat()","Unable to convert to RGBA. The input pixel block is empty.");let o,n,i,s;o=n=i=t[0],t.length>=3?(n=t[1],i=t[2]):2===t.length&&(n=t[1]);const a=this.width*this.height;if(o.length!==a)return p.error("getAsRGBAFloat()","Unable to convert to RGBA. The pixelblock is invalid.");let l=0;if(r&&r.length===a)for(s=0;s<a;s++)e[l++]=o[s],e[l++]=n[s],e[l++]=i[s],e[l++]=1&r[s];else for(s=0;s<a;s++)e[l++]=o[s],e[l++]=n[s],e[l++]=i[s],e[l++]=1}_calculateBandStatistics(e,t){let r=1/0,o=-1/0;const n=e.length;let i,s=0;if(t)for(i=0;i<n;i++)t[i]&&(s=e[i],r=s<r?s:r,o=s>o?s:o);else for(i=0;i<n;i++)s=e[i],r=s<r?s:r,o=s>o?s:o;return{minValue:r,maxValue:o}}};(0,n._)([(0,c.Cb)({json:{write:!0}})],d.prototype,"width",void 0),(0,n._)([(0,c.Cb)({json:{write:!0}})],d.prototype,"height",void 0),(0,n._)([(0,c.Cb)({json:{write:!0}})],d.prototype,"pixelType",void 0),(0,n._)([(0,u.p)("pixelType")],d.prototype,"castPixelType",null),(0,n._)([(0,c.Cb)({json:{write:!0}})],d.prototype,"validPixelCount",void 0),(0,n._)([(0,c.Cb)({json:{write:!0}})],d.prototype,"mask",void 0),(0,n._)([(0,c.Cb)({json:{write:!0}})],d.prototype,"maskIsAlpha",void 0),(0,n._)([(0,c.Cb)({json:{write:!0}})],d.prototype,"pixels",void 0),(0,n._)([(0,c.Cb)({json:{write:!0}})],d.prototype,"statistics",void 0),d=o=(0,n._)([(0,f.j)("esri.layers.support.PixelBlock")],d);const m=d},48526:(e,t,r)=>{r.d(t,{Z:()=>f});var o=r(43697),n=r(96674),i=r(70586),s=r(5600),a=(r(67676),r(80442),r(75215),r(52011)),l=r(6570),h=r(82971),c=r(36679);let u=class extends n.wq{constructor(e){super(e),this.attributeTable=null,this.bandCount=null,this.colormap=null,this.extent=null,this.format=void 0,this.height=null,this.width=null,this.histograms=null,this.keyProperties={},this.multidimensionalInfo=null,this.noDataValue=null,this.pixelSize=null,this.pixelType=null,this.isPseudoSpatialReference=!1,this.spatialReference=null,this.statistics=null,this.storageInfo=null,this.transform=null}get dataType(){const e=this.keyProperties?.DataType?.toLowerCase()??"generic";return"stdtime"===e?"standard-time":e}get nativeExtent(){return this._get("nativeExtent")||this.extent}set nativeExtent(e){e&&this._set("nativeExtent",e)}get nativePixelSize(){if((0,i.Wi)(this.transform)||!this.transform.affectsPixelSize)return this.pixelSize;const e=this.nativeExtent;return{x:e.width/this.width,y:e.height/this.height}}get hasMultidimensionalTranspose(){return!!this.storageInfo?.transposeInfo}};(0,o._)([(0,s.Cb)({json:{write:!0}})],u.prototype,"attributeTable",void 0),(0,o._)([(0,s.Cb)({json:{write:!0}})],u.prototype,"bandCount",void 0),(0,o._)([(0,s.Cb)({json:{write:!0}})],u.prototype,"colormap",void 0),(0,o._)([(0,s.Cb)({type:String,readOnly:!0})],u.prototype,"dataType",null),(0,o._)([(0,s.Cb)({type:l.Z,json:{write:!0}})],u.prototype,"extent",void 0),(0,o._)([(0,s.Cb)({type:l.Z,json:{write:!0}})],u.prototype,"nativeExtent",null),(0,o._)([(0,s.Cb)({json:{write:!0}})],u.prototype,"nativePixelSize",null),(0,o._)([(0,s.Cb)({json:{write:!0}})],u.prototype,"format",void 0),(0,o._)([(0,s.Cb)({json:{write:!0}})],u.prototype,"height",void 0),(0,o._)([(0,s.Cb)({json:{write:!0}})],u.prototype,"width",void 0),(0,o._)([(0,s.Cb)({json:{write:!0}})],u.prototype,"hasMultidimensionalTranspose",null),(0,o._)([(0,s.Cb)({json:{write:!0}})],u.prototype,"histograms",void 0),(0,o._)([(0,s.Cb)({json:{write:!0}})],u.prototype,"keyProperties",void 0),(0,o._)([(0,s.Cb)({json:{write:!0}})],u.prototype,"multidimensionalInfo",void 0),(0,o._)([(0,s.Cb)()],u.prototype,"noDataValue",void 0),(0,o._)([(0,s.Cb)({json:{write:!0}})],u.prototype,"pixelSize",void 0),(0,o._)([(0,s.Cb)({json:{write:!0}})],u.prototype,"pixelType",void 0),(0,o._)([(0,s.Cb)()],u.prototype,"isPseudoSpatialReference",void 0),(0,o._)([(0,s.Cb)({type:h.Z,json:{write:!0}})],u.prototype,"spatialReference",void 0),(0,o._)([(0,s.Cb)({json:{write:!0}})],u.prototype,"statistics",void 0),(0,o._)([(0,s.Cb)({type:c.Z,json:{write:!0}})],u.prototype,"storageInfo",void 0),(0,o._)([(0,s.Cb)({json:{write:!0}})],u.prototype,"transform",void 0),u=(0,o._)([(0,a.j)("esri.layers.support.RasterInfo")],u);const f=u},36679:(e,t,r)=>{r.d(t,{Z:()=>h});var o=r(43697),n=r(96674),i=r(5600),s=(r(67676),r(80442),r(75215),r(52011)),a=r(13473);let l=class extends n.wq{constructor(){super(...arguments),this.blockWidth=void 0,this.blockHeight=void 0,this.compression=null,this.origin=null,this.firstPyramidLevel=null,this.maximumPyramidLevel=null,this.pyramidScalingFactor=2,this.pyramidBlockWidth=null,this.pyramidBlockHeight=null,this.isVirtualTileInfo=!1,this.tileInfo=null,this.transposeInfo=null,this.blockBoundary=null}};(0,o._)([(0,i.Cb)({type:Number,json:{write:!0}})],l.prototype,"blockWidth",void 0),(0,o._)([(0,i.Cb)({type:Number,json:{write:!0}})],l.prototype,"blockHeight",void 0),(0,o._)([(0,i.Cb)({type:String,json:{write:!0}})],l.prototype,"compression",void 0),(0,o._)([(0,i.Cb)({type:a.Z,json:{write:!0}})],l.prototype,"origin",void 0),(0,o._)([(0,i.Cb)({type:Number,json:{write:!0}})],l.prototype,"firstPyramidLevel",void 0),(0,o._)([(0,i.Cb)({type:Number,json:{write:!0}})],l.prototype,"maximumPyramidLevel",void 0),(0,o._)([(0,i.Cb)({json:{write:!0}})],l.prototype,"pyramidResolutions",void 0),(0,o._)([(0,i.Cb)({type:Number,json:{write:!0}})],l.prototype,"pyramidScalingFactor",void 0),(0,o._)([(0,i.Cb)({type:Number,json:{write:!0}})],l.prototype,"pyramidBlockWidth",void 0),(0,o._)([(0,i.Cb)({type:Number,json:{write:!0}})],l.prototype,"pyramidBlockHeight",void 0),(0,o._)([(0,i.Cb)({type:Boolean,json:{write:!0}})],l.prototype,"isVirtualTileInfo",void 0),(0,o._)([(0,i.Cb)({json:{write:!0}})],l.prototype,"tileInfo",void 0),(0,o._)([(0,i.Cb)()],l.prototype,"transposeInfo",void 0),(0,o._)([(0,i.Cb)()],l.prototype,"blockBoundary",void 0),l=(0,o._)([(0,s.j)("esri.layers.support.RasterStorageInfo")],l);const h=l},20095:(e,t,r)=>{function o(e,t){let r=0,o="",n=0,i=0;const s=e.length;for(;r<s;)i=e[r++],n=i>>4,n<8?n=1:15===n?(n=4,i=(7&i)<<18|(63&e[r++])<<12|(63&e[r++])<<6|63&e[r++]):14===n?(n=3,i=(15&i)<<12|(63&e[r++])<<6|63&e[r++]):(n=2,i=(31&i)<<6|63&e[r++]),(0!==i||t)&&(o+=String.fromCharCode(i));return o}r.d(t,{f:()=>o})},72955:(e,t,r)=>{r.d(t,{Jx:()=>u,zD:()=>a});var o=r(99880);const n=[{pixelType:"S8",size:1,ctor:Int8Array,range:[-128,128]},{pixelType:"U8",size:1,ctor:Uint8Array,range:[0,255]},{pixelType:"S16",size:2,ctor:Int16Array,range:[-32768,32767]},{pixelType:"U16",size:2,ctor:Uint16Array,range:[0,65536]},{pixelType:"S32",size:4,ctor:Int32Array,range:[-2147483648,2147483647]},{pixelType:"U32",size:4,ctor:Uint32Array,range:[0,4294967296]},{pixelType:"F32",size:4,ctor:Float32Array,range:[-34027999387901484e22,34027999387901484e22]},{pixelType:"F64",size:8,ctor:Float64Array,range:[-17976931348623157e292,17976931348623157e292]}];let i=null,s=null;function a(){return i||(i=r.e(6233).then(r.bind(r,26233)).then((e=>e.l)).then((({default:e})=>e({locateFile:e=>(0,o.V)(`esri/layers/support/rasterFormats/${e}`)}))).then((e=>{(function(e){const{_malloc:t,_free:r,_lerc_getBlobInfo:o,_lerc_getDataRanges:i,_lerc_decode_4D:s,asm:a}=e;let c;const u=Object.values(a).find((t=>t&&"buffer"in t&&t.buffer===e.HEAPU8.buffer)),f=e=>{const r=e.map((e=>function(e){return 16+(e>>3<<3)}(e))),o=r.reduce(((e,t)=>e+t)),n=t(o);c=new Uint8Array(u.buffer);let i=r[0];r[0]=n;for(let e=1;e<r.length;e++){const t=r[e];r[e]=r[e-1]+i,i=t}return r};l.getBlobInfo=e=>{const t=new Uint8Array(48),n=new Uint8Array(24),[s,a,l]=f([e.length,t.length,n.length]);c.set(e,s),c.set(t,a),c.set(n,l);let p=o(s,e.length,a,l,12,3);if(p)throw r(s),`lerc-getBlobInfo: error code is ${p}`;c=new Uint8Array(u.buffer),h(c,a,t),h(c,l,n);const d=new Uint32Array(t.buffer),m=new Float64Array(n.buffer),[g,y,C,w,b,x,T,k,v,,S]=d,A={version:g,dimCount:C,width:w,height:b,validPixelCount:T,bandCount:x,blobSize:k,maskCount:v,dataType:y,minValue:m[0],maxValue:m[1],maxZerror:m[2],statistics:[],bandCountWithNoData:S};if(S)return A;if(1===C&&1===x)return r(s),A.statistics.push({minValue:m[0],maxValue:m[1]}),A;const I=C*x*8,P=new Uint8Array(I),M=new Uint8Array(I);let R=s,D=0,E=0,_=!1;if(c.byteLength<s+2*I?(r(s),_=!0,[R,D,E]=f([e.length,I,I]),c.set(e,R)):[D,E]=f([I,I]),c.set(P,D),c.set(M,E),p=i(R,e.length,C,x,D,E),p)throw r(R),_||r(D),`lerc-getDataRanges: error code is ${p}`;c=new Uint8Array(u.buffer),h(c,D,P),h(c,E,M);const L=new Float64Array(P.buffer),U=new Float64Array(M.buffer),G=A.statistics;for(let e=0;e<x;e++)if(C>1){const t=L.slice(e*C,(e+1)*C),r=U.slice(e*C,(e+1)*C),o=Math.min.apply(null,t),n=Math.max.apply(null,r);G.push({minValue:o,maxValue:n,dimStats:{minValues:t,maxValues:r}})}else G.push({minValue:L[e],maxValue:U[e]});return r(R),_||r(D),A},l.decode=(e,t)=>{const{maskCount:o,dimCount:i,bandCount:a,width:l,height:p,dataType:d,bandCountWithNoData:m}=t,g=n[d],y=l*p,C=new Uint8Array(y*a),w=y*i*a*g.size,b=new Uint8Array(w),x=new Uint8Array(a),T=new Uint8Array(8*a),[k,v,S,A,I]=f([e.length,C.length,b.length,x.length,T.length]);c.set(e,k),c.set(C,v),c.set(b,S),c.set(x,A),c.set(T,I);const P=s(k,e.length,o,v,i,l,p,a,d,S,A,I);if(P)throw r(k),`lerc-decode: error code is ${P}`;c=new Uint8Array(u.buffer),h(c,S,b),h(c,v,C);let M=null;if(m){h(c,A,x),h(c,I,T),M=[];const e=new Float64Array(T.buffer);for(let t=0;t<x.length;t++)M.push(x[t]?e[t]:null)}return r(k),{data:b,maskData:C,noDataValues:M}}})(e),s=!0})),i)}const l={getBlobInfo:null,decode:null};function h(e,t,r){r.set(e.slice(t,t+r.length))}function c(e,t,r,o,n){if(r<2)return e;const i=new o(t*r);if(n)for(let o=0,n=0;o<t;o++)for(let s=0,a=o;s<r;s++,a+=t)i[a]=e[n++];else for(let o=0,n=0;o<t;o++)for(let s=0,a=o;s<r;s++,a+=t)i[n++]=e[a];return i}function u(e,t={}){const r=t.inputOffset??0,o=e instanceof Uint8Array?e.subarray(r):new Uint8Array(e,r),i=l.getBlobInfo(o),{data:s,maskData:a}=l.decode(o,i),{width:h,height:u,bandCount:f,dimCount:p,dataType:d,maskCount:m,statistics:g}=i,y=n[d],C=new y.ctor(s.buffer),w=[],b=[],x=h*u,T=x*p;for(let e=0;e<f;e++){const r=C.subarray(e*T,(e+1)*T);if(t.returnPixelInterleavedDims)w.push(r);else{const e=c(r,x,p,y.ctor,!0);w.push(e)}b.push(a.subarray(e*T,(e+1)*T))}const k=0===m?null:1===m?b[0]:new Uint8Array(x);if(m>1){k.set(b[0]);for(let e=1;e<b.length;e++){const t=b[e];for(let e=0;e<x;e++)k[e]=k[e]&t[e]}}const{noDataValue:v}=t,S=null!=v&&y.range[0]<=v&&y.range[1]>=v;if(m>0&&S)for(let e=0;e<f;e++){const t=w[e],r=b[e]||k;for(let e=0;e<x;e++)0===r[e]&&(t[e]=v)}const A=m===f&&f>1?b:null;return{width:h,height:u,bandCount:f,pixelType:t.pixelType&&0===i.version?t.pixelType:y.pixelType,dimCount:p,statistics:g,pixels:w,mask:k,bandMasks:A}}},88781:(e,t,r)=>{function o(){const e=[];for(let t=0;t<=257;t++)e[t]=[t];return e}function n(e,t){for(let r=0;r<t.length;r++)e.push(t[r])}r.d(t,{J:()=>s});const i=new Set;function s(e,t,r,s=!0){const a=function(e,t,r,o=!0){if(t%4!=0||r%4!=0){const n=new ArrayBuffer(4*Math.ceil(r/4)),i=new Uint8Array(n),s=new Uint8Array(e,t,r);if(o)for(let e=0;e<i.length;e+=4)i[e]=s[e+3],i[e+1]=s[e+2],i[e+2]=s[e+1],i[e+3]=s[e];else i.set(s);return new Uint32Array(i.buffer)}if(o){const o=new Uint8Array(e,t,r),n=new Uint8Array(o.length);for(let e=0;e<n.length;e+=4)n[e]=o[e+3],n[e+1]=o[e+2],n[e+2]=o[e+1],n[e+3]=o[e];return new Uint32Array(n.buffer)}return new Uint32Array(e,t,r/4)}(e,t,r,s);let l=9,h=o(),c=32,u=h.length,f=[],p=1,d=a[0],m=0;const g=a.length,y=8*(4*g-r),C=[];for(;null!=d;){if(c>=l)c-=l,m=d>>>32-l,d<<=l;else{m=d>>>32-c,d=a[p++];const e=l-c;c=32-e,m=(m<<e)+(d>>>c),d<<=e}if(257===m)break;if(256===m){l=9,h=o(),u=h.length,f=[];continue}const e=h[m];if(null==e){if(m>h.length)throw"data integrity issue: code does not exist on code page";f.push(f[0]),h[u++]=f.slice(),n(C,f)}else n(C,e),f.push(e[0]),f.length>1&&(h[u++]=f.slice()),f=e.slice();if(i.has(u)&&l++,0===c&&(d=a[p++],c=32),p>g||p===g&&c<=y)break}return new Uint8Array(C)}i.add(511),i.add(1023),i.add(2047),i.add(4095),i.add(8191)},75993:(e,t,r)=>{r.d(t,{J:()=>M,y:()=>P});var o=r(20102),n=r(54163),i=r(95330),s=r(80899);class a{constructor(e){e&&(this.canvas=e.canvas,this.ctx=e.ctx||e.canvas&&e.canvas.getContext("2d"))}decode(e,t,r){if(!e||e.byteLength<10)throw new o.Z("imagecanvasdecoder: decode","required a valid encoded data as input.");let{width:n,height:s,format:l}=t;const{applyJpegMask:h}=t;if(h&&(!n||!s))throw new o.Z("imagecanvasdecoder: decode","image width and height are needed to apply jpeg mask directly to canvas");return new Promise(((o,c)=>{let u=null;"jpg"===l&&h&&(u=a._getMask(e,{width:n,height:s}));const f=new Blob([new Uint8Array(e)],{type:"image/"+l=="jpg"?"jpeg":l}),p=URL.createObjectURL(f),d=new Image;let m;d.src=p,d.onload=()=>{if(URL.revokeObjectURL(p),(0,i.Hc)(r))return void c((0,i.zE)());n=d.width,s=d.height,this.canvas?(this.canvas.width===n&&this.canvas.height===s||(this.canvas.width=n,this.canvas.height=s),this.ctx.clearRect(0,0,n,s)):(this.canvas=document.createElement("canvas"),this.canvas.width=n,this.canvas.height=s,this.ctx=this.canvas.getContext("2d")),this.ctx.drawImage(d,0,0);const e=this.ctx.getImageData(0,0,n,s);let a;if(m=e.data,t.renderOnCanvas){if(u)for(a=0;a<u.length;a++)u[a]?m[4*a+3]=255:m[4*a+3]=0;return this.ctx.putImageData(e,0,0),void o(null)}const l=n*s,h=new Uint8Array(l),f=new Uint8Array(l),g=new Uint8Array(l);if(u)for(a=0;a<l;a++)h[a]=m[4*a],f[a]=m[4*a+1],g[a]=m[4*a+2];else for(u=new Uint8Array(l),a=0;a<l;a++)h[a]=m[4*a],f[a]=m[4*a+1],g[a]=m[4*a+2],u[a]=m[4*a+3];o({width:n,height:s,pixels:[h,f,g],mask:u,pixelType:"u8"})},d.onerror=()=>{URL.revokeObjectURL(p),c("cannot load image")}}))}static _getMask(e,t){let r=null;try{const o=new Uint8Array(e),n=Math.ceil(o.length/2);let i=0;const a=o.length-2;for(i=n;i<a&&(255!==o[i]||217!==o[i+1]);i++);if(i+=2,i<o.length-1){const e=new s.Z(o.subarray(i)).getBytes();r=new Uint8Array(t.width*t.height);let n=0;for(let t=0;t<e.length;t++)for(let o=7;o>=0;o--)r[n++]=e[t]>>o&1}}catch(e){}return r}}var l=r(97575),h=r(72955),c=r(88781);const u=(e,t)=>{const r=t.width*t.height,o=t.pixelType;return Math.floor(e.byteLength/(r*f(o)))},f=e=>{let t=1;switch(e){case Uint8Array:case Int8Array:t=1;break;case Uint16Array:case Int16Array:t=2;break;case Uint32Array:case Int32Array:case Float32Array:t=4;break;case Float64Array:t=8}return t};class p{static decode(e,t){const r=t.pixelType,o=[],n=t.width*t.height,i=u(e,t),{bandIds:s,format:a}=t,l=s&&s.length||u(e,t),h=e.byteLength-e.byteLength%(n*f(r)),c=new r(e,0,n*i);let p,d,m,g,y;if("bip"===a)for(p=0;p<l;p++){for(g=new r(n),y=s?s[p]:p,d=0;d<n;d++)g[d]=c[d*i+y];o.push(g)}else if("bsq"===a)for(p=0;p<l;p++)y=s?s[p]:p,o.push(c.subarray(y*n,(y+1)*n));return h<e.byteLength-1&&(m=((e,t)=>{if(8*e.byteLength<t)return null;const r=new Uint8Array(e,0,Math.ceil(t/8)),o=new Uint8Array(t);let n=0,i=0,s=0,a=0;for(s=0;s<r.length-1;s++)for(i=r[s],a=7;a>=0;a--)o[n++]=i>>a&1;for(a=7;n<t-1;)i=r[r.length-1],o[n++]=i>>a&1,a--;return o})(e.slice(h),n)),{pixels:o,mask:m}}}var d=r(94793),m=r(48279),g=function(e){var t,r,o;function n(e){var t,r,o,n,i,s,a,l,h,c,u,f,p;for(this.data=e,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},i=null;;){switch(t=this.readUInt32(),l=function(){var e,t;for(t=[],e=0;e<4;++e)t.push(String.fromCharCode(this.data[this.pos++]));return t}.call(this).join(""),l){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(t);break;case"fcTL":i&&this.animation.frames.push(i),this.pos+=4,i={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},n=this.readUInt16(),o=this.readUInt16()||100,i.delay=1e3*n/o,i.disposeOp=this.data[this.pos++],i.blendOp=this.data[this.pos++],i.data=[];break;case"IDAT":case"fdAT":for("fdAT"===l&&(this.pos+=4,t-=4),e=(null!=i?i.data:void 0)||this.imgData,u=0;0<=t?u<t:u>t;0<=t?++u:--u)e.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(this.transparency.indexed=this.read(t),(h=255-this.transparency.indexed.length)>0)for(f=0;0<=h?f<h:f>h;0<=h?++f:--f)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(t)[0];break;case 2:this.transparency.rgb=this.read(t)}break;case"tEXt":s=(c=this.read(t)).indexOf(0),a=String.fromCharCode.apply(String,c.slice(0,s)),this.text[a]=String.fromCharCode.apply(String,c.slice(s+1));break;case"IEND":return i&&this.animation.frames.push(i),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(p=this.colorType)||6===p,r=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*r,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=t}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}return n.load=function(e,t,r){var o;return"function"==typeof t&&(r=t),(o=new XMLHttpRequest).open("GET",e,!0),o.responseType="arraybuffer",o.onload=function(){var e;return e=new n(new Uint8Array(o.response||o.mozResponseArrayBuffer)),"function"==typeof(null!=t?t.getContext:void 0)&&e.render(t),"function"==typeof r?r(e):void 0},o.send(null)},n.prototype.read=function(e){var t,r;for(r=[],t=0;0<=e?t<e:t>e;0<=e?++t:--t)r.push(this.data[this.pos++]);return r},n.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},n.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},n.prototype.decodePixels=function(e){var t,r,o,n,i,a,l,h,c,u,f,p,d,m,g,y,C,w,b,x,T,k,v;if(null==e&&(e=this.imgData),0===e.length)return new Uint8Array(0);for(e=(e=new s.Z(e)).getBytes(),y=(p=this.pixelBitlength/8)*this.width,d=new Uint8Array(y*this.height),a=e.length,g=0,m=0,r=0;m<a;){switch(e[m++]){case 0:for(n=b=0;b<y;n=b+=1)d[r++]=e[m++];break;case 1:for(n=x=0;x<y;n=x+=1)t=e[m++],i=n<p?0:d[r-p],d[r++]=(t+i)%256;break;case 2:for(n=T=0;T<y;n=T+=1)t=e[m++],o=(n-n%p)/p,C=g&&d[(g-1)*y+o*p+n%p],d[r++]=(C+t)%256;break;case 3:for(n=k=0;k<y;n=k+=1)t=e[m++],o=(n-n%p)/p,i=n<p?0:d[r-p],C=g&&d[(g-1)*y+o*p+n%p],d[r++]=(t+Math.floor((i+C)/2))%256;break;case 4:for(n=v=0;v<y;n=v+=1)t=e[m++],o=(n-n%p)/p,i=n<p?0:d[r-p],0===g?C=w=0:(C=d[(g-1)*y+o*p+n%p],w=o&&d[(g-1)*y+(o-1)*p+n%p]),l=i+C-w,h=Math.abs(l-i),u=Math.abs(l-C),f=Math.abs(l-w),c=h<=u&&h<=f?i:u<=f?C:w,d[r++]=(t+c)%256;break;default:throw new Error("Invalid filter algorithm: "+e[m-1])}g++}return d},n.prototype.decodePalette=function(){var e,t,r,o,n,i,s,a,l;for(r=this.palette,i=this.transparency.indexed||[],n=new Uint8Array((i.length||0)+r.length),o=0,e=0,t=s=0,a=r.length;s<a;t=s+=3)n[o++]=r[t],n[o++]=r[t+1],n[o++]=r[t+2],n[o++]=null!=(l=i[e++])?l:255;return n},n.prototype.copyToImageData=function(e,t){var r,o,n,i,s,a,l,h,c,u,f;if(o=this.colors,c=null,r=this.hasAlphaChannel,this.palette.length&&(c=null!=(f=this._decodedPalette)?f:this._decodedPalette=this.decodePalette(),o=4,r=!0),h=(n=e.data||e).length,s=c||t,i=a=0,1===o)for(;i<h;)l=c?4*t[i/4]:a,u=s[l++],n[i++]=u,n[i++]=u,n[i++]=u,n[i++]=r?s[l++]:this.transparency.grayscale&&this.transparency.grayscale===u?0:255,a=l;else for(;i<h;)l=c?4*t[i/4]:a,n[i++]=s[l++],n[i++]=s[l++],n[i++]=s[l++],n[i++]=r?s[l++]:this.transparency.rgb&&this.transparency.rgb[1]===s[l-3]&&this.transparency.rgb[3]===s[l-2]&&this.transparency.rgb[5]===s[l-1]?0:255,a=l},n.prototype.decode=function(){var e;return e=new Uint8Array(this.width*this.height*4),this.copyToImageData(e,this.decodePixels()),e},r=e.document&&e.document.createElement("canvas"),o=r&&r.getContext("2d"),t=function(e){var t;return o.width=e.width,o.height=e.height,o.clearRect(0,0,e.width,e.height),o.putImageData(e,0,0),(t=new Image).src=r.toDataURL(),t},n.prototype.decodeFrames=function(e){var r,o,n,i,s,a,l,h;if(this.animation){for(h=[],o=s=0,a=(l=this.animation.frames).length;s<a;o=++s)r=l[o],n=e.createImageData(r.width,r.height),i=this.decodePixels(new Uint8Array(r.data)),this.copyToImageData(n,i),r.imageData=n,h.push(r.image=t(n));return h}},n.prototype.renderFrame=function(e,t){var r,o,n;return r=(o=this.animation.frames)[t],n=o[t-1],0===t&&e.clearRect(0,0,this.width,this.height),1===(null!=n?n.disposeOp:void 0)?e.clearRect(n.xOffset,n.yOffset,n.width,n.height):2===(null!=n?n.disposeOp:void 0)&&e.putImageData(n.imageData,n.xOffset,n.yOffset),0===r.blendOp&&e.clearRect(r.xOffset,r.yOffset,r.width,r.height),e.drawImage(r.image,r.xOffset,r.yOffset)},n.prototype.animate=function(e){var t,r,o,n,i,s,a=this;return r=0,s=this.animation,n=s.numFrames,o=s.frames,i=s.numPlays,(t=function(){var s,l;if(s=r++%n,l=o[s],a.renderFrame(e,s),n>1&&r/n<i)return a.animation._timeout=setTimeout(t,l.delay)})()},n.prototype.stopAnimation=function(){var e;return clearTimeout(null!=(e=this.animation)?e._timeout:void 0)},n.prototype.render=function(e){var t,r;return e._png&&e._png.stopAnimation(),e._png=this,e.width=this.width,e.height=this.height,t=e.getContext("2d"),this.animation?(this.decodeFrames(t),this.animate(t)):(r=t.createImageData(this.width,this.height),this.copyToImageData(r,this.decodePixels()),t.putImageData(r,0,0))},n}(self);const y=new Set(["jpg","png","bmp","gif"]),C=new Set(["S8","U8","S16","U16","S32","U32","F32","F64"]);async function w(e,t){if(!m.f)throw new o.Z("rasterCoded:decode","lerc decoder is not supported on big endian platform");await(0,h.zD)();const{offset:r,noDataValue:i}=t;let s=t.pixelType?.toUpperCase();s&&!C.has(s)&&(s=null);const{width:a,height:l,pixelType:c,statistics:u,pixels:f,mask:p}=(0,h.Jx)(e,{inputOffset:r,noDataValue:i,pixelType:s,returnPixelInterleavedDims:t.returnPixelInterleavedDims});return new n.Z({width:a,height:l,pixelType:c.toLowerCase(),pixels:f,mask:p,statistics:u})}async function b(e,t){const r=await(0,d.Jx)(e,t.pyramidLevel||0),o=new n.Z({width:r.width,height:r.height,pixels:r.pixels,pixelType:r.pixelType.toLowerCase(),mask:r.mask,statistics:null});return o.updateStatistics(),o}function x(e,t){const r=t.pixelType||"u8",o=n.Z.getPixelArrayConstructor(r),i="u8"===r?e:new o(e.buffer),s=[],a=t.planes||1;if(1===a)s.push(i);else for(let r=0;r<a;r++){const n=(t.width||1)*(t.height||e.length),l=new o(n);for(let e=0;e<n;e++)l[e]=i[e*a+r];s.push(l)}const l=new n.Z({width:t.width||1,height:t.height||e.length,pixels:s,pixelType:r,statistics:null});return l.updateStatistics(),l}function T(e,t){return x(new s.Z(new Uint8Array(e)).getBytes(),t)}function k(e,t){return x((0,c.J)(e,t.offset,t.eof,!t.isInputBigEndian),t)}function v(e){const t=class{static decode(e){const t=new Uint8Array(e),r=new l.J;r.parse(t);const{width:o,height:n,numComponents:i,eof:a}=r,h=r.getData(o,n,!0);let c;const u=o*n;let f=0,p=0,d=0;if(a<t.length-1){const e=new s.Z(t.subarray(a)).getBytes();c=new Uint8Array(u);let r=0;for(f=0;f<e.length;f++)for(d=7;d>=0;d--)c[r++]=e[f]>>d&1}let m,g=null;if(1===i)g=[h,h,h];else{for(g=[],f=0;f<3;f++)m=new Uint8Array(u),g.push(m);for(d=0,p=0;p<u;p++)for(f=0;f<3;f++)g[f][p]=h[d++]}return{width:o,height:n,pixels:g,mask:c}}}.decode(e),r=new n.Z({width:t.width,height:t.height,pixels:t.pixels,pixelType:"U8",mask:t.mask,statistics:null});return r.updateStatistics(),r}function S(e,t){const r=new Uint8Array(e),o=new g(r),{width:i,height:s}=t,a=i*s,l=o.decode();let h,c=0,u=0;const f=new Uint8Array(a);for(c=0;c<a;c++)f[c]=l[4*c+3];const p=new n.Z({width:i,height:s,pixels:[],pixelType:"U8",mask:f,statistics:[]});for(c=0;c<3;c++){for(h=new Uint8Array(a),u=0;u<a;u++)h[u]=l[4*u+c];p.addData({pixels:h})}return p.updateStatistics(),p}async function A(e,t,r,o){const i=new a,s={applyJpegMask:!1,format:t,...r},l=await i.decode(e,s,o),h=new n.Z(l);return h.updateStatistics(),h}function I(e){if(null==e)throw new o.Z("rasterCodec:decode","parameter encodeddata is required.");const t=new Uint8Array(e,0,10);let r="";return 255===t[0]&&216===t[1]?r="jpg":137===t[0]&&80===t[1]&&78===t[2]&&71===t[3]?r="png":67===t[0]&&110===t[1]&&116===t[2]&&90===t[3]&&73===t[4]&&109===t[5]&&97===t[6]&&103===t[7]&&101===t[8]&&32===t[9]?r="lerc":76===t[0]&&101===t[1]&&114===t[2]&&99===t[3]&&50===t[4]&&32===t[5]?r="lerc2":73===t[0]&&73===t[1]&&42===t[2]&&0===t[3]||77===t[0]&&77===t[1]&&0===t[2]&&42===t[3]||73===t[0]&&73===t[1]&&43===t[2]&&0===t[3]||77===t[0]&&77===t[1]&&0===t[2]&&43===t[3]?r="tiff":71===t[0]&&73===t[1]&&70===t[2]?r="gif":66===t[0]&&77===t[1]?r="bmp":String.fromCharCode.apply(null,t).toLowerCase().includes("error")&&(r="error"),r}function P(e){let t=I(e);return"lerc2"===t?t="lerc":"error"===t&&(t=""),t}async function M(e,t={},r){if(null==e)throw new o.Z("rasterCodec:decode","missing encodeddata parameter.");let i,s,a=t.format&&t.format.toLowerCase();if(!("bsq"!==a&&"bip"!==a||null!=t.width&&null!=t.height))throw new o.Z("rasterCodec:decode","requires width and height in options parameter.");return"tiff"===a&&t.customOptions?async function(e,t){const r=await(0,d.Uw)(e,t.customOptions),o=new n.Z({width:r.width,height:r.height,pixels:r.pixels,pixelType:r.pixelType.toLowerCase(),mask:r.mask,statistics:null});return o.updateStatistics(),o}(e,t):((!a||"bsq"!==a&&"bip"!==a&&"deflate"!==a&&"lzw"!==a)&&(a=I(e)),t.useCanvas&&y.has(a)?s=await A(e,a,t,r):(i=function(e){let t=null;switch(e){case"lerc":case"lerc2":t=w;break;case"jpg":t=v;break;case"png":t=S;break;case"bsq":case"bip":t=(t,r)=>function(e,t,r){const{pixelTypeCtor:o}=function(e){let t=null,r=null;switch(e?e.toLowerCase():"f32"){case"u1":case"u2":case"u4":case"u8":r=255,t=Uint8Array;break;case"u16":r=r||65535,t=Uint16Array;break;case"u32":r=r||2**32-1,t=Uint32Array;break;case"s8":r=r||-128,t=Int8Array;break;case"s16":r=r||-32768,t=Int16Array;break;case"s32":r=r||0-2**31,t=Int32Array;break;default:t=Float32Array}return{pixelTypeCtor:t,noDataValue:r}}(t.pixelType),i=(0,p.decode)(e,{width:t.width,height:t.height,pixelType:o,format:r}),s=new n.Z({width:t.width,height:t.height,pixels:i.pixels,pixelType:t.pixelType,mask:i.mask,statistics:null});return s.updateStatistics(),s}(t,r,e);break;case"tiff":t=b;break;case"deflate":t=T;break;case"lzw":t=k;break;case"error":t=()=>{throw new o.Z("rasterCodec:decode","input data contains error")};break;default:t=()=>{throw new o.Z("rasterCodec:decode","unsupported raster format")}}return t}(a),t.isPoint&&((t={...t}).width++,t.height++),s=await i(e,t),t.isPoint&&function(e,t=1){if(!e)return;const{pixels:r,width:o,height:i,mask:s}=e;if(!r||0===r.length)return;const a=r.length,l=o-1,h=i-1,c=[];let u,f,p,d,m,g,y;const C=n.Z.getPixelArrayConstructor(e.pixelType);if(0===t){for(u=0;u<a;u++){for(m=r[u],g=new C(l*h),f=0;f<h;f++)for(d=f*o,p=0;p<l;p++)g[f*l+p]=m[d+p];c.push(g)}if(s)for(y=new Uint8Array(l*h),f=0;f<h;f++)for(d=f*o,p=0;p<l;p++)y[f*l+p]=s[d+p]}else{for(u=0;u<a;u++){for(m=r[u],g=new C(l*h),f=0;f<h;f++)for(d=f*o,p=0;p<l;p++)g[f*l+p]=(m[d+p]+m[d+p+1]+m[d+o+p]+m[d+o+p+1])/4;c.push(g)}if(s)for(y=new Uint8Array(l*h),f=0;f<h;f++)for(d=f*o,p=0;p<l;p++)y[f*l+p]=Math.min.apply(null,[s[d+p],s[d+p+1],s[d+o+p],s[d+o+p+1]])}e.width=l,e.height=h,e.mask=y,e.pixels=c}(s)),s)}},94793:(e,t,r)=>{r.d(t,{Dq:()=>T,FI:()=>k,If:()=>v,Jx:()=>E,Uw:()=>D,cK:()=>P,vr:()=>M});var o=r(20095),n=r(97575),i=r(72955),s=r(88781),a=r(9832),l=r(48279),h=r(80899);const c=[0,1,1,2,4,8,1,1,2,4,8,4,8,-1,-1,-1,8,8,8],u=4294967296,f=new Set([1,5,6,7,8,34712,34887]);function p(e,t){let r="unknown";return 3===e?r="f32":1===e?1===t?r="u1":2===t?r="u2":4===t?r="u4":t<=8?r="u8":t<=16?r="u16":t<=32&&(r="u32"):2===e&&(t<=8?r="s8":t<=16?r="s16":t<=32&&(r="s32")),r}function d(e){let t=null;switch(e?e.toLowerCase():"f32"){case"u1":case"u2":case"u4":case"u8":t=Uint8Array;break;case"u16":t=Uint16Array;break;case"u32":t=Uint32Array;break;case"s8":t=Int8Array;break;case"s16":t=Int16Array;break;case"s32":t=Int32Array;break;default:t=Float32Array}return t}function m(e,t){return{x:t[0]*e.x+t[1]*e.y+t[2],y:t[3]*e.x+t[4]*e.y+t[5]}}function g(e,t){return e.get(t)?.values}function y(e,t){return e.get(t)?.values}function C(e,t){return e.get(t)?.values[0]}function w(e,t){return e.get(t)?.values[0]}function b(e,t,r,o=0,n=a.Z.TIFF_TAGS,i=4){const s=8===i,l=s?S(new DataView(e,r,8),0,t):new DataView(e,r,2).getUint16(0,t),h=4+2*i,c=s?8:2,u=c+l*h;if(r+u>e.byteLength)return{success:!1,ifd:null,nextIFD:null,requiredBufferSize:u};const f=r+u+4<=e.byteLength?I(new DataView(e,r+u,8===i?8:4),0,t,8===i):null,p=r+c,d=new Map;let m,g,y,C,w,b,x;for(let r=0;r<l;r++){g=new DataView(e,p+h*r,h),y=g.getUint16(0,t),w=g.getUint16(2,t),C=a.Z.getTagName(y,n);const s=[];2===i?(b=g.getUint16(4,t),x=g.getUint16(6,t)):4===i?(b=g.getUint32(4,t),x=g.getUint32(8,t)):8===i&&(b=I(g,4,t,!0),x=I(g,12,t,!0),s.push(g.getUint32(12,t)),s.push(g.getUint32(16,t))),m={id:y,type:w,valueCount:b,valueOffset:x,valueOffsets:s,values:null},T(e,t,m,o,!1,i),d.set(C,m)}return{success:!0,ifd:d,nextIFD:f,requiredBufferSize:u}}async function x(e,t,r,o,a){const c=l.f===t,u=w(r,"BITSPERSAMPLE"),f=p(w(r,"SAMPLEFORMAT")??1,u),m=w(r,"COMPRESSION")??1,g=d(f);let y,C,b,x,T,k,v;if(34887===m)return await(0,i.zD)(),((e,t)=>(0,i.Jx)(e,{inputOffset:t}).pixels[0])(e,o);if(1===m)b=e.slice(o,o+a),x=new Uint8Array(b);else if(8===m||32946===m)x=new Uint8Array(e,o,a),k=new h.Z(x),v=k.getBytes(),b=new ArrayBuffer(v.length),x=new Uint8Array(b),x.set(v);else if(6===m){x=new Uint8Array(e,o,a);const t=new n.J;t.parse(x);const r=t.getData(t.width,t.height,!0);b=new ArrayBuffer(r.length),x=new Uint8Array(b),x.set(r)}else if(7===m){const t=r.get("JPEGTABLES").values,i=t.length-2;x=new Uint8Array(i+a-2);for(let e=0;e<i;e++)x[e]=t[e];const s=new Uint8Array(e,o+2,a-2);for(let e=0;e<s.length;e++)x[i+e]=s[e];const l=new n.J;l.parse(x);const h=l.getData(l.width,l.height,!0);b=new ArrayBuffer(h.length),x=new Uint8Array(b),x.set(h)}else 5===m&&(x=(0,s.J)(e,o,a,t),b=x.buffer);if("u8"===f||"s8"===f||c)C=new g(b);else{switch(b=new ArrayBuffer(x.length),T=new Uint8Array(b),f){case"u16":case"s16":for(y=0;y<x.length;y+=2)T[y]=x[y+1],T[y+1]=x[y];break;case"u32":case"s32":case"f32":for(y=0;y<x.length;y+=4)T[y]=x[y+3],T[y+1]=x[y+2],T[y+2]=x[y+1],T[y+3]=x[y]}C=new g(b)}return C}function T(e,t,r,o=0,n=!1,i=4){if(r.values)return!0;const s=r.type,a=r.valueCount;let l=r.valueOffset,h=[];const f=c[s],p=8*f,d=a*f,m=a*c[s]*8;let g,y;const C=8===i?64:32,w=r.valueOffsets;if(m>C&&d>(n?e.byteLength:e?e.byteLength-l+o:0))return r.offlineOffsetSize=[l,d],r.values=null,!1;if(m<=C){if(!t)if(C<=32)l>>>=32-m;else{const e=w?.length?w[0]:l>>>0,t=w?.length?w[1]:Math.round((l-e)/u);m<=32?(l=e>>>32-m,w[0]=l):(l=e*2**(32-m)+(t>>>32-m),w[0]=e,w[1]=t>>>32-m)}if(1===a&&p===C)h=[l];else if(64===C){const e=w?.length?w[0]:l>>>0,t=w?.length?w[1]:Math.round((l-e)/u);let r=e,o=32;for(y=1;y<=a;y++){const e=32-p*y%32;if(o<p){const n=r<<e>>>32-o,i=t<<32-o>>>32-o;r=t,h.push(n+i*2**(p-o)),o-=32-(p-o)}else h.push(r<<e>>>32-p),o-=p;0===o&&(o=32,r=t)}}else for(y=1;y<=a;y++){const e=32-p*y;h.push(l<<e>>>32-p)}}else{l-=o,n&&(l=0);for(let r=l;r<l+d;r+=f){switch(s){case 1:case 2:case 7:g=new DataView(e,r,1).getUint8(0);break;case 3:g=new DataView(e,r,2).getUint16(0,t);break;case 4:case 13:g=new DataView(e,r,4).getUint32(0,t);break;case 5:g=new DataView(e,r,4).getUint32(0,t)/new DataView(e,r+4,4).getUint32(0,t);break;case 6:g=new DataView(e,r,1).getInt8(0);break;case 8:g=new DataView(e,r,2).getInt16(0,t);break;case 9:g=new DataView(e,r,4).getInt32(0,t);break;case 10:g=new DataView(e,r,4).getInt32(0,t)/new DataView(e,r+4,4).getInt32(0,t);break;case 11:g=new DataView(e,r,4).getFloat32(0,t);break;case 12:g=new DataView(e,r,8).getFloat64(0,t);break;case 16:case 18:g=S(new DataView(e,r,8),0,t);break;case 17:g=A(new DataView(e,r,8),0,t);break;default:g=null}h.push(g)}}if(2===s){let e="";const t=h;for(h=[],y=0;y<t.length;y++)0===t[y]&&""!==e?(h.push(e),e=""):e+=String.fromCharCode(t[y]);""===e&&0!==h.length||h.push(e)}return r.values=h,!0}function k(e){const t=e[0],r=w(t,"TILEWIDTH"),o=w(t,"TILELENGTH"),n=w(t,"IMAGEWIDTH"),i=w(t,"IMAGELENGTH"),s=w(t,"BITSPERSAMPLE"),a=w(t,"SAMPLESPERPIXEL"),l=w(t,"SAMPLEFORMAT")??1,h=p(l,s),c=v(t),u=g(t,"GDAL_NODATA");let d;u?.length&&(d=u.map((e=>parseFloat(e))),d.some((e=>isNaN(e)))&&(d=null));const b=w(t,"COMPRESSION")??1;let x;switch(b){case 1:x="NONE";break;case 2:case 3:case 4:case 32771:x="CCITT";break;case 5:x="LZW";break;case 6:case 7:x="JPEG";break;case 32773:x="PACKBITS";break;case 8:case 32946:x="DEFLATE";break;case 34712:x="JPEG2000";break;case 34887:x="LERC";break;default:x=String(b)}let T=!0,k="";f.has(b)||(T=!1,k+="unsupported tag compression "+b),l>3&&(T=!1,k+="unsupported tag sampleFormat "+l),s%8!=0&&(T=!1,k+="unsupported tag bitsPerSample "+s);const S=C(t,"GEOASCIIPARAMS");let A;if(S){const e=S.split("|").find((e=>e.includes("ESRI PE String = "))),t=e?e.replace("ESRI PE String = ",""):"";A=t.startsWith("COMPD_CS")||t.startsWith("PROJCS")||t.startsWith("GEOGCS")?{wkid:null,wkt:t}:null}const I=y(t,"GEOTIEPOINTS"),P=y(t,"GEOPIXELSCALE"),M=y(t,"GEOTRANSMATRIX"),D=t.has("GEOKEYDIRECTORY")?t.get("GEOKEYDIRECTORY").data:null;let E,_,L=!1;if(D){L=2===w(D,"GTRasterTypeGeoKey");const e=w(D,"GTModelTypeGeoKey");if(2===e){const e=w(D,"GeographicTypeGeoKey");e>=1024&&e<=32766&&(A={wkid:e})}else if(1===e){const e=w(D,"ProjectedCSTypeGeoKey");e>=1024&&e<=32766&&(A={wkid:e})}}if(P&&I&&I.length>=6?(E=[P[0],0,I[3]-I[0]*P[0],0,-Math.abs(P[1]),I[4]-I[1]*P[1]],L&&(E[2]-=.5*E[0]+.5*E[1],E[5]-=.5*E[3]+.5*E[4])):M&&16===M.length&&(E=L?[M[0],M[1],M[3]-.5*M[0],M[4],M[5],M[7]-.5*M[5]]:[M[0],M[1],M[3],M[4],M[5],M[7]]),E){const e=[{x:0,y:i},{x:0,y:0},{x:n,y:i},{x:n,y:0}];let t,r=Number.POSITIVE_INFINITY,o=Number.POSITIVE_INFINITY,s=Number.NEGATIVE_INFINITY,a=Number.NEGATIVE_INFINITY;for(let n=0;n<e.length;n++)t=m(e[n],E),r=t.x>r?r:t.x,s=t.x<s?s:t.x,o=t.y>o?o:t.y,a=t.y<a?a:t.y;_={xmin:r,xmax:s,ymin:o,ymax:a,spatialReference:A}}else _={xmin:-.5,ymin:.5-i,xmax:n-.5,ymax:.5,spatialReference:A};const U=e.filter((e=>1===C(e,"NEWSUBFILETYPE")));let G,B,O,N,F;if(U.length>0){G=Math.round(Math.log(n/w(U[0],"IMAGEWIDTH"))/Math.LN2);const e=U[U.length-1];B=Math.round(Math.log(n/w(e,"IMAGEWIDTH"))/Math.LN2),O=w(e,"TILEWIDTH"),N=w(e,"TILELENGTH")}O=B>0?O||r:null,N=B>0?N||o:null,r&&(F=[{maxCol:Math.ceil(n/r)-1,maxRow:Math.ceil(i/o)-1,minRow:0,minCol:0}],U.forEach((e=>{F.push({maxCol:Math.ceil(w(e,"IMAGEWIDTH")/w(e,"TILEWIDTH"))-1,maxRow:Math.ceil(w(e,"IMAGELENGTH")/w(e,"TILELENGTH"))-1,minRow:0,minCol:0})})));const V=(e=>{if(!e)return null;const t=e.match(/<Item(.*?)Item>/gi);if(!t||0===t.length)return null;const r=new Map;let o,n,i,s,a;for(let e=0;e<t.length;e++)o=t[e],n=o.slice("<Item ".length,o.indexOf(">")),s=o.indexOf("sample="),s>-1&&(a=o.slice(s+'sample="'.length,o.indexOf('"',s+'sample="'.length))),s=o.indexOf("name="),s>-1&&(n=o.slice(s+'name="'.length,o.indexOf('"',s+'name="'.length))),n&&(i=o.slice(o.indexOf(">")+1,o.indexOf("</Item>")).trim(),null!=a?r.has(n)?r.get(n)[a]=i:r.set(n,[i]):r.set(n,i)),a=null;const l=r.get("STATISTICS_MINIMUM"),h=r.get("STATISTICS_MAXIMUM"),c=r.get("STATISTICS_MEAN"),u=r.get("STATISTICS_STDDEV");let f=null;if(l&&h){f=[];for(let e=0;e<l.length;e++)f.push({min:parseFloat(l[e]),max:parseFloat(h[e]),avg:c&&parseFloat(c[e]),stddev:u&&parseFloat(u[e])})}const p=r.get("BandName"),d=r.get("WavelengthMin"),m=r.get("WavelengthMax");let g=null;if(p){g=[];for(let e=0;e<p.length;e++)g.push({BandName:p[e],WavelengthMin:d&&parseFloat(d[e]),WavelengthMax:m&&parseFloat(m[e])})}return{statistics:f,bandProperties:g,dataType:r.get("DataType"),rawMetadata:r}})(C(e[0],"GDAL_METADATA"));return k+=" "+R({width:n,height:i,tileWidth:r,tileHeight:o,planes:a,ifds:e}),{width:n,height:i,tileWidth:r,tileHeight:o,planes:a,isBSQ:c,pixelType:h,compression:x,noData:d,isSupported:T,message:k,extent:_,affine:P?null:E,firstPyramidLevel:G,maximumPyramidLevel:B,pyramidBlockWidth:O,pyramidBlockHeight:N,tileBoundary:F,metadata:V}}function v(e,t){const r=g(e,"PLANARCONFIGURATION");return r?2===r[0]:!!t&&t.isBSQ}function S(e,t,r){const o=e.getUint32(t,r),n=e.getUint32(t+4,r);return r?n*u+o:o*u+n}function A(e,t,r){let o=r?e.getInt32(t,r):e.getUint32(t,r),n=r?e.getUint32(t+4,r):e.getInt32(t+4,r);const i=(r?o:n)>=0?1:-1;return r?o*=i:n*=i,i*(r?n*u+o:o*u+n)}function I(e,t,r,o){return o?S(e,t,r):e.getUint32(t,r)}function P(e){const t=new DataView(e,0,16),r=t.getUint16(0,!1);let o=null;if(18761===r)o=!0;else{if(19789!==r)throw"unexpected endianess byte";o=!1}const n=t.getUint16(2,o);if(42!==n&&43!==n)throw"unexpected tiff identifier";let i=4;const s=43===n;if(s){const e=t.getUint16(i,o);if(i+=2,8!==e)throw"unsupported bigtiff version";if(0!==t.getUint16(i,o))throw"unsupported bigtiff version";i+=2}return{littleEndian:o,isBigTiff:s,firstIFD:I(t,i,o,s)}}function M(e,t,r,n=0,i=a.Z.TIFF_TAGS,s=4){const l=b(e,t,r,n,i,s);let h;const c=l.ifd;if(c){if(a.Z.ifdTags.forEach(((r,o)=>{c.has(o)&&(h=c.get(o),h.data=b(e,t,h.valueOffset-n,n,r).ifd)})),c.has("GEOKEYDIRECTORY")){h=c.get("GEOKEYDIRECTORY");const r=h.values;if(r&&r.length>4){const o=r[0]+"."+r[1]+"."+r[2];h.data=b(e,t,h.valueOffset+6-n,n,a.Z.GEO_KEYS,2).ifd,h.data&&h.data.set("GEOTIFFVersion",{id:0,type:2,valueCount:1,valueOffset:null,values:[o]})}}if(c.has("XMP")){h=c.get("XMP");const e=h.values;"number"==typeof e[0]&&7===h.type&&(h.values=[(0,o.f)(new Uint8Array(e))])}}return l}function R(e){const{width:t,height:r,tileHeight:o,tileWidth:n}=e,i=e.planes,s=n?n*o:t*r,a=w(e.ifds[0],"BITSPERSAMPLE");let l="";return s*i>2**30/(a>8?a/8:1)&&(l=n?"tiled tiff exceeding 1 gigabits per tile is not supported":"scanline tiff exceeding 1 gigabits is not supported"),l}async function D(e,t){const{headerInfo:r,ifd:o,offsets:n,sizes:i}=t,s=[];for(let t=0;t<n.length;t++){const a=await x(e,r.littleEndian,o,n[t],i[t]||e.byteLength);s.push(a)}const a=v(o,r),{pixelType:l,planes:h}=r,c=d(l),u=w(o,"TILEWIDTH"),f=w(o,"TILELENGTH"),p=w(o,"COMPRESSION")??1,m=u*f;let g;const y=[];let C=s[0];const b=34887===p;for(let e=0;e<h;e++){if(g=new c(m),a&&b){C=s[e];for(let t=0;t<m;t++)g[t]=C[e][t+e]}else if(a||b&&!a)g=C.slice(m*e,m*(e+1));else for(let t=0;t<m;t++)g[t]=C[t*h+e];y.push(g)}const T=r.noData?r.noData[0]:null,k=r.metadata?r.metadata.statistics:null,S=k?k.map((e=>e.min)):null,A=k?k.map((e=>e.max)):null;let I,P;if(null!=T)if(I=new Uint8Array(m),Math.abs(T)>1e24)for(P=0;P<m;P++)Math.abs((y[0][P]-T)/T)<1e-6?I[P]=0:I[P]=1;else for(P=0;P<m;P++)y[0][P]===T?I[P]=0:I[P]=1;else S&&A&&t.applyMinMaxConstraint&&(I=((e,t,r)=>{if(!(e&&e.length>0&&t&&r))return null;let o,n,i;const s=e[0].length,a=e.length,l=new Uint8Array(s);for(let h=0;h<a;h++)if(o=e[h],n=t[h],i=r[h],0===h)for(let e=0;e<s;e++)l[e]=o[e]<n||o[e]>i?0:1;else for(let e=0;e<s;e++)l[e]&&(l[e]=o[e]<n||o[e]>i?0:1);return l})(y,S,A));return{pixelType:l,width:u,height:f,pixels:y,mask:I,noDataValue:T}}async function E(e,t=0,r){r=r||function(e){const{littleEndian:t,isBigTiff:r,firstIFD:o}=P(e);let n=o;const i=[];do{const o=M(e,t,n,0,a.Z.TIFF_TAGS,r?8:4);if(!o.success)break;i.push(o.ifd),n=o.nextIFD}while(n>0);return{...k(i),littleEndian:t,isBigTiff:r,ifds:i}}(e);const{ifds:o,noData:i}=r;if(0===o.length)throw"no valid image file directory";const c=R(r);if(c)throw c;let u,f;const p=-1===t?o[o.length-1]:o[t],m=i?i[0]:null;if(f=r.tileWidth?await async function(e,t,r){const o=y(r,"TILEOFFSETS");if(void 0===o)return null;const n=y(r,"TILEBYTECOUNTS"),{width:i,height:s,pixelType:a,tileWidth:l,tileHeight:h}=k([r]),c=v(r,t),u=t.planes,f=i*s,p=w(r,"BITSPERSAMPLE"),m=34887===(w(r,"COMPRESSION")??1),g=d(a),C=[];for(let e=0;e<u;e++)C.push(new g(f));let b,T,S,A,I,P,M,R,D,E,_,L,U;const G=Math.ceil(i/l);if(p%8==0)if(m&&c&&u>1){const a=Math.round(o.length/u);for(b=0;b<a;b++){P=Math.floor(b/G)*h,M=b%G*l,R=P*i+M;for(let a=0;a<u;a++){const c=b*u+a;for(S=await x(e,t.littleEndian,r,o[c],n[c]),E=0,D=R,L=Math.min(l,i-M),_=Math.min(h,s-P),U=C[a],A=0;A<_;A++)for(D=R+A*i,E=A*l,I=0;I<L;I++,D++,E++)U[D]=S[E]}}}else for(b=0;b<o.length;b++)for(P=Math.floor(b/G)*h,M=b%G*l,R=P*i+M,S=await x(e,t.littleEndian,r,o[b],n[b]),E=0,D=R,L=Math.min(l,i-M),_=Math.min(h,s-P),T=0;T<u;T++)if(U=C[T],c||m)for(A=0;A<_;A++)for(D=R+A*i,E=l*h*T+A*l,I=0;I<L;I++,D++,E++)U[D]=S[E];else for(A=0;A<_;A++)for(D=R+A*i,E=A*l*u+T,I=0;I<L;I++,D++,E+=u)U[D]=S[E];return{width:i,height:s,pixelType:a,pixels:C}}(e,r,p):await((e,t,r)=>{const o=l.f===t.littleEndian,i=y(r,"STRIPOFFSETS");if(void 0===i)return null;const{width:a,height:c,pixelType:u}=k([r]),f=t.planes,p=a*c,m=w(r,"BITSPERSAMPLE"),g=d(u),C=new g(p*f),b=y(r,"STRIPBYTECOUNTS"),x=w(r,"ROWSPERSTRIP"),T=w(r,"COMPRESSION")??1;let v,S,A,I,P,M,R,D,E,_,L,U=x;if(m%8==0)for(v=0;v<i.length;v++){if(P=v*(x*a)*f,U=(v+1)*x>c?c-v*x:x,"u8"===u||"s8"===u||o){if(8===T||32946===T)R=new Uint8Array(e,i[v],b[v]),_=new h.Z(R),L=_.getBytes(),M=new ArrayBuffer(L.length),R=new Uint8Array(M),R.set(L),R.length!==U*a*f*m/8&&console.log("strip byte counts is different than expected");else if(6===T){R=new Uint8Array(e,i[v],b[v]);const t=new n.J;t.parse(R);const r=t.getData(t.width,t.height,!0);M=new ArrayBuffer(r.length),R=new Uint8Array(M),R.set(r)}else 5===T?(R=(0,s.J)(e,i[v],b[v],t.littleEndian),M=R.buffer):1===T&&(b[v]!==U*a*f*m/8&&console.log("strip byte counts is different than expected"),M=e.slice(i[v],i[v]+b[v]));I=new g(M)}else{switch(6===T||8===T||32946===T?(R=new Uint8Array(e,i[v],b[v]),_=new h.Z(R),R=_.getBytes(),M=new ArrayBuffer(R.length),D=new Uint8Array(M),R.length!==U*a*f*m/8&&console.log("strip byte counts is different than expected")):1===T&&(b[v]!==U*a*f*m/8&&console.log("strip byte counts is different than expected"),M=new ArrayBuffer(b[v]),R=new Uint8Array(e,i[v],b[v]),D=new Uint8Array(M)),u){case"u16":case"s16":for(A=0;A<R.length;A+=2)D[A]=R[A+1],D[A+1]=R[A];break;case"u32":case"s32":case"f32":for(A=0;A<R.length;A+=4)D[A]=R[A+3],D[A+1]=R[A+2],D[A+2]=R[A+1],D[A+3]=R[A]}I=new g(M)}C.set(I,P)}const G=[];if(1===f)G.push(C);else for(v=0;v<f;v++){for(E=new g(p),S=0;S<p;S++)E[S]=C[S*f+v];G.push(E)}return{width:a,height:c,pixelType:u,pixels:G}})(e,r,p),null!==m){if(f.mask=new Uint8Array(f.width*f.height),Math.abs(m)>1e24)for(u=0;u<f.width*f.height;u++)Math.abs((f.pixels[0][u]-m)/m)<1e-6?f.mask[u]=0:f.mask[u]=1;else for(u=0;u<f.width*f.height;u++)f.pixels[0][u]===m?f.mask[u]=0:f.mask[u]=1;f.noDataValue=m}return f}},9832:(e,t,r)=>{r.d(t,{Z:()=>a});const o=(()=>{const e=[];return e[254]="NEWSUBFILETYPE",e[255]="SUBFILETYPE",e[256]="IMAGEWIDTH",e[257]="IMAGELENGTH",e[258]="BITSPERSAMPLE",e[259]="COMPRESSION",e[262]="PHOTOMETRICINTERPRETATION",e[263]="THRESHHOLDING",e[264]="CELLWIDTH",e[265]="CELLLENGTH",e[266]="FILLORDER",e[269]="DOCUMENTNAME",e[270]="IMAGEDESCRIPTION",e[271]="MAKE",e[272]="MODEL",e[273]="STRIPOFFSETS",e[274]="ORIENTATION",e[277]="SAMPLESPERPIXEL",e[278]="ROWSPERSTRIP",e[279]="STRIPBYTECOUNTS",e[280]="MINSAMPLEVALUE",e[281]="MAXSAMPLEVALUE",e[282]="XRESOLUTION",e[283]="YRESOLUTION",e[284]="PLANARCONFIGURATION",e[285]="PAGENAME",e[286]="XPOSITION",e[287]="YPOSITION",e[288]="FREEOFFSETS",e[289]="FREEBYTECOUNTS",e[290]="GRAYRESPONSEUNIT",e[291]="GRAYRESPONSECURVE",e[292]="T4OPTIONS",e[293]="T6OPTIONS",e[296]="RESOLUTIONUNIT",e[297]="PAGENUMBER",e[300]="COLORRESPONSEUNIT",e[301]="TRANSFERFUNCTION",e[305]="SOFTWARE",e[306]="DATETIME",e[315]="ARTIST",e[316]="HOSTCOMPUTER",e[317]="PREDICTOR",e[318]="WHITEPOINT",e[319]="PRIMARYCHROMATICITIES",e[320]="COLORMAP",e[321]="HALFTONEHINTS",e[322]="TILEWIDTH",e[323]="TILELENGTH",e[324]="TILEOFFSETS",e[325]="TILEBYTECOUNTS",e[326]="BADFAXLINES",e[327]="CLEANFAXDATA",e[328]="CONSECUTIVEBADFAXLINES",e[330]="SUBIFD",e[332]="INKSET",e[333]="INKNAMES",e[334]="NUMBEROFINKS",e[336]="DOTRANGE",e[337]="TARGETPRINTER",e[338]="EXTRASAMPLES",e[339]="SAMPLEFORMAT",e[340]="SMINSAMPLEVALUE",e[341]="SMAXSAMPLEVALUE",e[342]="TRANSFERRANGE",e[347]="JPEGTABLES",e[512]="JPEGPROC",e[513]="JPEGIFOFFSET",e[514]="JPEGIFBYTECOUNT",e[515]="JPEGRESTARTINTERVAL",e[517]="JPEGLOSSLESSPREDICTORS",e[518]="JPEGPOINTTRANSFORM",e[519]="JPEGQTABLES",e[520]="JPEGDCTABLES",e[521]="JPEGACTABLES",e[529]="YCBCRCOEFFICIENTS",e[530]="YCBCRSUBSAMPLING",e[531]="YCBCRPOSITIONING",e[532]="REFERENCEBLACKWHITE",e[700]="XMP",e[33550]="GEOPIXELSCALE",e[33922]="GEOTIEPOINTS",e[33432]="COPYRIGHT",e[42112]="GDAL_METADATA",e[42113]="GDAL_NODATA",e[50844]="RPCCOEFFICIENT",e[34264]="GEOTRANSMATRIX",e[34735]="GEOKEYDIRECTORY",e[34736]="GEODOUBLEPARAMS",e[34737]="GEOASCIIPARAMS",e[34665]="EXIFIFD",e[34853]="GPSIFD",e[40965]="INTEROPERABILITYIFD",e})(),n=(()=>{const e=[].concat(o);return e[36864]="ExifVersion",e[40960]="FlashpixVersion",e[40961]="ColorSpace",e[42240]="Gamma",e[37121]="ComponentsConfiguration",e[37122]="CompressedBitsPerPixel",e[40962]="PixelXDimension",e[40963]="PixelYDimension",e[37500]="MakerNote",e[37510]="UserComment",e[40964]="RelatedSoundFile",e[36867]="DateTimeOriginal",e[36868]="DateTimeDigitized",e[36880]="OffsetTime",e[36881]="OffsetTimeOriginal",e[36882]="OffsetTimeDigitized",e[37520]="SubSecTime",e[37521]="SubSecTimeOriginal",e[37522]="SubSecTimeDigitized",e[37888]="Temperature",e[37889]="Humidity",e[37890]="Pressure",e[37891]="WaterDepth",e[37892]="Acceleration",e[37893]="CameraElevationAngle",e[42016]="ImageUniqueID",e[42032]="CameraOwnerName",e[42033]="BodySerialNumber",e[42034]="LensSpecification",e[42035]="LensMake",e[42036]="LensModel",e[42037]="LensSerialNumber",e[33434]="ExposureTime",e[33437]="FNumber",e[34850]="ExposureProgram",e[34852]="SpectralSensitivity",e[34855]="PhotographicSensitivity",e[34856]="OECF",e[34864]="SensitivityType",e[34865]="StandardOutputSensitivity",e[34866]="RecommendedExposureIndex",e[34867]="ISOSpeed",e[34868]="ISOSpeedLatitudeyyy",e[34869]="ISOSpeedLatitudezzz",e[37377]="ShutterSpeedValue",e[37378]="ApertureValue",e[37379]="BrightnessValue",e[37380]="ExposureBiasValue",e[37381]="MaxApertureValue",e[37382]="SubjectDistance",e[37383]="MeteringMode",e[37384]="LightSource",e[37385]="Flash",e[37386]="FocalLength",e[37396]="SubjectArea",e[41483]="FlashEnergy",e[41484]="SpatialFrequencyResponse",e[41486]="FocalPlaneXResolution",e[41487]="FocalPlaneYResolution",e[41488]="FocalPlaneResolutionUnit",e[41492]="SubjectLocation",e[41493]="ExposureIndex",e[41495]="SensingMethod",e[41728]="FileSource",e[41729]="SceneType",e[41730]="CFAPattern",e[41985]="CustomRendered",e[41986]="ExposureMode",e[41987]="WhiteBalance",e[41988]="DigitalZoomRatio",e[41989]="FocalLengthIn35mmFilm",e[41990]="SceneCaptureType",e[41991]="GainControl",e[41992]="Contrast",e[41993]="Saturation",e[41994]="Sharpness",e[41995]="DeviceSettingDescription",e[41996]="SubjectDistanceRange",e})(),i=(()=>{const e=[];return e[1024]="GTModelTypeGeoKey",e[1025]="GTRasterTypeGeoKey",e[1026]="GTCitationGeoKey",e[2048]="GeographicTypeGeoKey",e[2049]="GeogCitationGeoKey",e[2050]="GeogGeodeticDatumGeoKey",e[2051]="GeogPrimeMeridianGeoKey",e[2052]="GeogLinearUnitsGeoKey",e[2053]="GeogLinearUnitSizeGeoKey",e[2054]="GeogAngularUnitsGeoKey",e[2055]="GeogAngularUnitSizeGeoKey",e[2056]="GeogEllipsoidGeoKey",e[2057]="GeogSemiMajorAxisGeoKey",e[2058]="GeogSemiMinorAxisGeoKey",e[2059]="GeogInvFlatteningGeoKey",e[2061]="GeogPrimeMeridianLongGeoKey",e[2060]="GeogAzimuthUnitsGeoKey",e[3072]="ProjectedCSTypeGeoKey",e[3073]="PCSCitationGeoKey",e[3074]="ProjectionGeoKey",e[3075]="ProjCoordTransGeoKey",e[3076]="ProjLinearUnitsGeoKey",e[3077]="ProjLinearUnitSizeGeoKey",e[3078]="ProjStdParallel1GeoKey",e[3079]="ProjStdParallel2GeoKey",e[3080]="ProjNatOriginLongGeoKey",e[3081]="ProjNatOriginLatGeoKey",e[3082]="ProjFalseEastingGeoKey",e[3083]="ProjFalseNorthingGeoKey",e[3084]="ProjFalseOriginLongGeoKey",e[3085]="ProjFalseOriginLatGeoKey",e[3086]="ProjFalseOriginEastingGeoKey",e[3087]="ProjFalseOriginNorthingGeoKey",e[3088]="ProjCenterLongGeoKey",e[3090]="ProjCenterEastingGeoKey",e[3091]="ProjCenterNorthingGeoKey",e[3092]="ProjScaleAtNatOriginGeoKey",e[3093]="ProjScaleAtCenterGeoKey",e[3094]="ProjAzimuthAngleGeoKey",e[3095]="ProjStraightVertPoleLongGeoKey",e[4096]="VerticalCSTypeGeoKey",e[4097]="VerticalCitationGeoKey",e[4098]="VerticalDatumGeoKey",e[4099]="VerticalUnitsGeoKey",e})(),s=new Map;s.set("EXIFIFD",n),s.set("GPSIFD",["GPSVersionID","GPSLatitudeRef","GPSLatitude","GPSLongitudeRef","GPSLongitude","GPSAltitudeRef","GPSAltitude","GPSTimeStamp","GPSSatellites","GPSStatus","GPSMeasureMode","GPSDOP","GPSSpeedRef","GPSSpeed","GPSTrackRef","GPSTrack","GPSImgDirectionRef","GPSImgDirection","GPSMapDatum","GPSDestLatitudeRef","GPSDestLatitude","GPSDestLongitudeRef","GPSDestLongitude","GPSDestBearingRef","GPSDestBearing","GPSDestDistanceRef","GPSDestDistance","GPSProcessingMethod","GPSAreaInformation","GPSDateStamp","GPSDifferential","GPSHPositioningError"]);const a={TIFF_TAGS:o,ifdTags:s,GEO_KEYS:i,getTagName:(e,t)=>{let r=(t||o)[e];return void 0===r&&(r="unknown"+String(e)),r}}},48279:(e,t,r)=>{r.d(t,{f:()=>o});const o=(()=>{const e=new ArrayBuffer(4),t=new Uint8Array(e);return new Uint32Array(e)[0]=1,1===t[0]})()},55914:(e,t,r)=>{r.d(t,{Pz:()=>a,Qh:()=>T,SJ:()=>l,Uk:()=>k,Vl:()=>b,XV:()=>h,nk:()=>i,pW:()=>p,qF:()=>s,us:()=>f,zp:()=>c});var o=r(70586),n=r(54163);function i(e){return(0,o.pC)(e)&&"esri.layers.support.PixelBlock"===e.declaredClass&&e.pixels&&e.pixels.length>0}function s(e,t){if(!t?.length||!i(e))return e;const r=e.pixels.length;return t&&t.some((e=>e>=r))||1===r&&1===t.length&&0===t[0]?e:r!==t.length||t.some(((e,t)=>e!==t))?new n.Z({pixelType:e.pixelType,width:e.width,height:e.height,mask:e.mask,validPixelCount:e.validPixelCount,maskIsAlpha:e.maskIsAlpha,pixels:t.map((t=>e.pixels[t])),statistics:e.statistics&&t.map((t=>e.statistics[t]))}):e}function a(e){if(!e)return;const t=e.colormap;if(!t||0===t.length)return;const r=t.sort(((e,t)=>e[0]-t[0]));let o=0;r[0][0]<0&&(o=r[0][0]);const n=Math.max(256,r[r.length-1][0]-o+1),i=new Uint8Array(4*n),s=[];let a,l=0,h=0;const c=5===r[0].length;if(n>65536)return r.forEach((e=>{s[e[0]-o]=c?e.slice(1):e.slice(1).concat([255])})),{indexed2DColormap:s,offset:o,alphaSpecified:c};if(e.fillUnspecified)for(a=r[h],l=a[0]-o;l<n;l++)i[4*l]=a[1],i[4*l+1]=a[2],i[4*l+2]=a[3],i[4*l+3]=c?a[4]:255,l===a[0]-o&&(a=h===r.length-1?a:r[++h]);else for(l=0;l<r.length;l++)a=r[l],h=4*(a[0]-o),i[h]=a[1],i[h+1]=a[2],i[h+2]=a[3],i[h+3]=c?a[4]:255;return{indexedColormap:i,offset:o,alphaSpecified:c}}function l(e,t){if(!i(e))return e;if(!t&&(t.indexedColormap||t.indexed2DColormap))return e;const r=e.clone(),o=r.pixels;let n=r.mask;const s=r.width*r.height;if(1!==o.length)return e;const{indexedColormap:a,indexed2DColormap:l,offset:h,alphaSpecified:c}=t,u=a.length-1;let f=0;const p=o[0],d=new Uint8Array(p.length),m=new Uint8Array(p.length),g=new Uint8Array(p.length);let y,C=0;if(a)if(n)for(f=0;f<s;f++)n[f]&&(C=4*(p[f]-h),C<h||C>u?n[f]=0:(d[f]=a[C],m[f]=a[C+1],g[f]=a[C+2],n[f]=a[C+3]));else{for(n=new Uint8Array(s),f=0;f<s;f++)C=4*(p[f]-h),C<h||C>u?n[f]=0:(d[f]=a[C],m[f]=a[C+1],g[f]=a[C+2],n[f]=a[C+3]);r.mask=n}else if(n)for(f=0;f<s;f++)n[f]&&(y=l[p[f]],d[f]=y[0],m[f]=y[1],g[f]=y[2],n[f]=y[3]);else{for(n=new Uint8Array(s),f=0;f<s;f++)y=l[p[f]],d[f]=y[0],m[f]=y[1],g[f]=y[2],n[f]=y[3];r.mask=n}return r.pixels=[d,m,g],r.statistics=null,r.pixelType="u8",r.maskIsAlpha=c,r}function h(e,t){if(!i(e))return null;const{pixels:r,mask:o}=e,s=e.width*e.height,a=r.length;let l=t.lut;const{offset:h}=t;let c,u;l&&1===l[0].length&&(l=r.map((()=>l)));const f=[];let p,d,m;if(h)if(null==o)for(c=0;c<a;c++){for(p=r[c],d=l[c],m=new Uint8Array(s),u=0;u<s;u++)m[u]=d[p[u]-h];f.push(m)}else for(c=0;c<a;c++){for(p=r[c],d=l[c],m=new Uint8Array(s),u=0;u<s;u++)o[u]&&(m[u]=d[p[u]-h]);f.push(m)}else if(null==o)for(c=0;c<a;c++){for(p=r[c],d=l[c],m=new Uint8Array(s),u=0;u<s;u++)m[u]=d[p[u]];f.push(m)}else for(c=0;c<a;c++){for(p=r[c],d=l[c],m=new Uint8Array(s),u=0;u<s;u++)o[u]&&(m[u]=d[p[u]]);f.push(m)}const g=new n.Z({width:e.width,height:e.height,pixels:f,mask:o,pixelType:"u8"});return g.updateStatistics(),g}function c(e,t){if(!i(e))return null;const r=e.clone(),{pixels:o}=r,n=r.width*r.height,s=t.length,a=Math.floor(s/2),l=t[Math.floor(a)],h=o[0];let c,u,f,p,d,m,g=!1;const y=new Uint8Array(n),C=new Uint8Array(n),w=new Uint8Array(n);let b=r.mask;const x=4===t[0].mappedColor.length;for(b||(b=new Uint8Array(n),b.fill(x?255:1),r.mask=b),d=0;d<n;d++)if(b[d]){for(c=h[d],g=!1,m=a,u=l,f=0,p=s-1;p-f>1;){if(c===u.value){g=!0;break}c>u.value?f=m:p=m,m=Math.floor((f+p)/2),u=t[Math.floor(m)]}g||(c===t[f].value?(u=t[f],g=!0):c===t[p].value?(u=t[p],g=!0):c<t[f].value?(g=!1,u=null):c>t[f].value&&(c<t[p].value?(u=t[f],g=!0):p===s-1?(g=!1,u=null):(u=t[p],g=!0))),g?(y[d]=u.mappedColor[0],C[d]=u.mappedColor[1],w[d]=u.mappedColor[2],b[d]=u.mappedColor[3]):y[d]=C[d]=w[d]=b[d]=0}return r.pixels=[y,C,w],r.mask=b,r.pixelType="u8",r.maskIsAlpha=x,r}function u(e,t,r,o,n,i){const{width:s,height:a}=r.block,{x:l,y:h}=r.offset,{width:c,height:u}=r.mosaic,f=function(e,t,r,o,n,i,s,a){return{xmin:n<=r*e?0:n<r*e+e?n-r*e:e,ymin:i<=o*t?0:i<o*t+t?i-o*t:t,xmax:n+s<=r*e?0:n+s<r*e+e?n+s-r*e:e,ymax:i+a<=o*t?0:i+a<o*t+t?i+a-o*t:t}}(s,a,o,n,l,h,c,u);let p=0,d=0;if(i){const e=i.hasGCSSShiftTransform?360:i.halfWorldWidth,t=s*i.resolutionX,r=i.startX+o*t,n=r+t;r<e&&n>e?d=i.rightPadding:r>=e&&(p=i.leftMargin-i.rightPadding,d=0)}if(f.xmax-=d,"number"!=typeof t)for(let r=f.ymin;r<f.ymax;r++){const i=(n*a+r-h)*c+(o*s-l)+p,u=r*s;for(let r=f.xmin;r<f.xmax;r++)e[i+r]=t[u+r]}else for(let r=f.ymin;r<f.ymax;r++){const i=(n*a+r-h)*c+(o*s-l)+p;for(let r=f.xmin;r<f.xmax;r++)e[i+r]=t}}function f(e,t,r={}){const{clipOffset:s,clipSize:a,alignmentInfo:l,blockWidths:h}=r;if(h)return function(e,t,r){const s=e.find((e=>(0,o.pC)(e)));if((0,o.Wi)(s))return null;const a=e.some((e=>!(0,o.pC)(e)||!!e.mask)),{width:l,height:h}=t,c=a?new Uint8Array(l*h):null,{blockWidths:u}=r,f=[],p=s.getPlaneCount(),d=n.Z.getPixelArrayConstructor(s.pixelType);if(a)for(let t=0,r=0;t<e.length;r+=u[t],t++){const o=e[t];if(!i(o))continue;const n=o.mask;for(let e=0;e<h;e++)for(let i=0;i<u[t];i++)c[e*l+i+r]=null==n?255:n[e*o.width+i]}for(let t=0;t<p;t++){const r=new d(l*h);for(let o=0,n=0;o<e.length;n+=u[o],o++){const s=e[o];if(!i(s))continue;const a=s.pixels[t];if(null!=a)for(let e=0;e<h;e++)for(let t=0;t<u[o];t++)r[e*l+t+n]=a[e*s.width+t]}f.push(r)}const m=new n.Z({width:l,height:h,mask:c,pixels:f,pixelType:s.pixelType});return m.updateStatistics(),m}(e,t,{blockWidths:h});const c=e.find((e=>i(e)));if((0,o.Wi)(c))return null;const f=a?a.width:t.width,p=a?a.height:t.height,d=c.width,m=c.height,g=t.width/d,y=t.height/m,C={offset:s||{x:0,y:0},mosaic:a||t,block:{width:d,height:m}},w=c.pixelType,b=n.Z.getPixelArrayConstructor(w),x=c.pixels.length,T=[];let k,v,S;for(let t=0;t<x;t++){v=new b(f*p);for(let r=0;r<y;r++)for(let o=0;o<g;o++){const n=e[r*g+o];i(n)&&(k=n.pixels[t],u(v,k,C,o,r,l))}T.push(v)}if(e.some((e=>(0,o.Wi)(e)||e.mask&&e.mask.length>0))){S=new Uint8Array(f*p);for(let t=0;t<y;t++)for(let r=0;r<g;r++){const n=e[t*g+r];u(S,((0,o.pC)(n)?n.mask:null)||(n?1:0),C,r,t,l)}}const A=new n.Z({width:f,height:p,pixels:T,pixelType:w,mask:S});return A.updateStatistics(),A}function p(e,t,r){if(!i(e))return null;const{width:o,height:n}=e,s=t.x,a=t.y,l=r.width+s,h=r.height+a;if(s<0||a<0||l>o||h>n)return e;if(0===s&&0===a&&l===o&&h===n)return e;e.mask||(e.mask=new Uint8Array(o*n));const c=e.mask;for(let e=0;e<n;e++){const t=e*o;for(let r=0;r<o;r++)c[t+r]=e<a||e>=h||r<s||r>=l?0:1}return e.updateStatistics(),e}function d(e){if(!i(e))return null;const t=e.clone(),{width:r,height:o,pixels:n,mask:s}=e,a=n[0],l=t.pixels[0];for(let e=2;e<o-1;e++){const t=new Map;for(let o=e-2;o<e+2;o++)for(let e=0;e<4;e++){const n=o*r+e;y(t,a[n],s?s[n]:1)}l[e*r]=m(t),l[e*r+1]=l[e*r+2]=l[e*r];let o=3;for(;o<r-1;o++){let n=(e-2)*r+o+1;y(t,a[n],s?s[n]:1),n=(e-1)*r+o+1,y(t,a[n],s?s[n]:1),n=e*r+o+1,y(t,a[n],s?s[n]:1),n=(e+1)*r+o+1,y(t,a[n],s?s[n]:1),n=(e-2)*r+o-3,g(t,a[n],s?s[n]:1),n=(e-1)*r+o-3,g(t,a[n],s?s[n]:1),n=e*r+o-3,g(t,a[n],s?s[n]:1),n=(e+1)*r+o-3,g(t,a[n],s?s[n]:1),l[e*r+o]=m(t)}l[e*r+o+1]=l[e*r+o]}for(let e=0;e<r;e++)l[e]=l[r+e]=l[2*r+e],l[(o-1)*r+e]=l[(o-2)*r+e];return t.updateStatistics(),t}function m(e){if(0===e.size)return 0;let t=0,r=-1,o=0;const n=e.keys();let i=n.next();for(;!i.done;)o=e.get(i.value),o>t&&(r=i.value,t=o),i=n.next();return r}function g(e,t,r){if(0===r)return;const o=e.get(t);1===o?e.delete(t):e.set(t,o-1)}function y(e,t,r){0!==r&&e.set(t,e.has(t)?e.get(t)+1:1)}function C(e,t,r){let{x:o,y:s}=t;const{width:a,height:l}=r;if(0===o&&0===s&&l===e.height&&a===e.width)return e;const{width:h,height:c}=e,u=Math.max(0,s),f=Math.max(0,o),p=Math.min(o+a,h),d=Math.min(s+l,c);if(p<0||d<0||!i(e))return null;o=Math.max(0,-o),s=Math.max(0,-s);const{pixels:m,mask:g}=e,y=a*l,C=m.length,w=[];for(let t=0;t<C;t++){const r=m[t],i=n.Z.createEmptyBand(e.pixelType,y);for(let e=u;e<d;e++){const t=e*h;let n=(e+s-u)*a+o;for(let e=f;e<p;e++)i[n++]=r[t+e]}w.push(i)}const b=new Uint8Array(y);for(let e=u;e<d;e++){const t=e*h;let r=(e+s-u)*a+o;for(let e=f;e<p;e++)b[r++]=g?g[t+e]:1}const x=new n.Z({width:r.width,height:r.height,pixelType:e.pixelType,pixels:w,mask:b});return x.updateStatistics(),x}function w(e,t=!0){if(!i(e))return null;const{pixels:r,width:o,height:s,mask:a,pixelType:l}=e,h=[],c=Math.round(o/2),u=Math.round(s/2),f=s-1,p=o-1;for(let e=0;e<r.length;e++){const i=r[e],a=n.Z.createEmptyBand(l,c*u);let d=0;for(let e=0;e<s;e+=2)for(let r=0;r<o;r+=2){const n=i[e*o+r];if(t){const t=r===p?n:i[e*o+r+1],s=e===f?n:i[e*o+r+o],l=r===p?s:e===f?t:i[e*o+r+o+1];a[d++]=(n+t+s+l)/4}else a[d++]=n}h.push(a)}let d=null;if(a){d=new Uint8Array(c*u);let e=0;for(let r=0;r<s;r+=2)for(let n=0;n<o;n+=2){const i=a[r*o+n];if(t){const t=n===p?i:a[r*o+n+1],s=r===f?i:a[r*o+n+o],l=n===p?s:r===f?t:a[r*o+n+o+1];d[e++]=i*t*s*l?1:0}else d[e++]=i}}return new n.Z({width:c,height:u,pixelType:l,pixels:h,mask:d})}function b(e,t,r){if(!i(e))return null;const{width:o,height:n}=t;let{width:s,height:a}=e;const l=new Map,h={x:0,y:0},c=null==r?1:1+r;let u=e;for(let e=0;e<c;e++){const r=Math.ceil(s/o),i=Math.ceil(a/n);for(let s=0;s<i;s++){h.y=s*n;for(let n=0;n<r;n++){h.x=n*o;const r=C(u,h,t);l.set(`${e}/${s}/${n}`,r)}}e<c-1&&(u=w(u)),s=Math.round(s/2),a=Math.round(a/2)}return l}function x(e,t,r,o,n=.5){const{width:i,height:s}=e,{width:a,height:l}=t,h=o.cols,c=o.rows,u=Math.ceil(a/h-.1/h),f=Math.ceil(l/c-.1/c);let p,d,m,g,y,C,w;const b=u*h,x=b*f*c,T=new Float32Array(x),k=new Float32Array(x),v=new Uint32Array(x),S=new Uint32Array(x);let A,I,P=0;for(let e=0;e<f;e++)for(let t=0;t<u;t++){p=12*(e*u+t),d=r[p],m=r[p+1],g=r[p+2],y=r[p+3],C=r[p+4],w=r[p+5];for(let r=0;r<c;r++){P=(e*c+r)*b+t*h,I=(r+.5)/c;for(let e=0;e<r;e++)A=(e+.5)/h,T[P+e]=(d*A+m*I+g)*i-n,k[P+e]=(y*A+C*I+w)*s-n,v[P+e]=Math.round(T[P+e]),S[P+e]=Math.round(k[P+e])}p+=6,d=r[p],m=r[p+1],g=r[p+2],y=r[p+3],C=r[p+4],w=r[p+5];for(let r=0;r<c;r++){P=(e*c+r)*b+t*h,I=(r+.5)/c;for(let e=r;e<h;e++)A=(e+.5)/h,T[P+e]=(d*A+m*I+g)*i-n,k[P+e]=(y*A+C*I+w)*s-n,v[P+e]=Math.round(T[P+e]),S[P+e]=Math.round(k[P+e])}}return{offsets_x:T,offsets_y:k,offsets_xi:v,offsets_yi:S,gridWidth:b}}function T(e,t){const{coefficients:r,spacing:o}=t,{offsets_x:n,offsets_y:i,gridWidth:s}=x(e,e,r,{rows:o[0],cols:o[1]},.5),{width:a,height:l}=e,h=new Float32Array(a*l),c=180/Math.PI;for(let e=0;e<l;e++)for(let t=0;t<a;t++){const r=e*s+t,o=0===e?r:r-s,u=e===l-1?r:r+s,f=n[o]-n[u],p=i[u]-i[o];if(isNaN(f)||isNaN(p))h[e*a+t]=90;else{let r=Math.atan2(p,f)*c;r=(360+r)%360,h[e*a+t]=r}}return h}function k(e,t,r,o,s="nearest"){if(!i(e))return null;"majority"===s&&(e=d(e));const{pixels:a,mask:l,pixelType:h}=e,c=e.width,u=e.height,f=n.Z.getPixelArrayConstructor(h),p=a.length,{width:m,height:g}=t;let y=!1;for(let e=0;e<r.length;e+=3)-1===r[e]&&-1===r[e+1]&&-1===r[e+2]&&(y=!0);const{offsets_x:C,offsets_y:w,offsets_xi:b,offsets_yi:T,gridWidth:k}=x({width:c,height:u},t,r,o,"majority"===s?0:.5);let v;const S=(e,t,r)=>{const o=e instanceof Float32Array||e instanceof Float64Array?0:.5;for(let n=0;n<g;n++){v=n*k;for(let i=0;i<m;i++){if(C[v]<0||w[v]<0)e[n*m+i]=0;else if(r)e[n*m+i]=t[b[v]+T[v]*c];else{const r=Math.floor(C[v]),s=Math.floor(w[v]),a=Math.ceil(C[v]),h=Math.ceil(w[v]),u=C[v]-r,f=w[v]-s;if(!l||l[r+s*c]&&l[r+s*c]&&l[r+h*c]&&l[a+h*c]){const l=(1-u)*t[r+s*c]+u*t[a+s*c],p=(1-u)*t[r+h*c]+u*t[a+h*c];e[n*m+i]=(1-f)*l+f*p+o}else e[n*m+i]=t[b[v]+T[v]*c]}v++}}},A=[];let I;for(let e=0;e<p;e++)I=new f(m*g),S(I,a[e],"nearest"===s||"majority"===s),A.push(I);const P=new n.Z({width:m,height:g,pixelType:h,pixels:A});if(l)P.mask=new Uint8Array(m*g),S(P.mask,l,!0);else if(y){P.mask=new Uint8Array(m*g);for(let e=0;e<m*g;e++)P.mask[e]=C[e]<0||w[e]<0?0:1}return P.updateStatistics(),P}},15612:(e,t,r)=>{r.d(t,{AV:()=>h,Hv:()=>a,Oh:()=>l,dy:()=>c,hE:()=>s,oc:()=>i});var o=r(70586);const n={u1:[0,1],u2:[0,3],u4:[0,15],u8:[0,255],s8:[-128,127],u16:[0,65535],s16:[-32768,32767],u32:[0,4294967295],s32:[-2147483648,2147483647],f32:[-34e38,34e38],f64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function i(e,t=256){t=Math.min(t,256);const{size:r,counts:o}=e,n=new Uint8Array(r),i=o.reduce(((e,r)=>e+r/t),0);let s=0,a=0,l=0,h=i;for(let e=0;e<r;e++)if(l+=o[e],!(e<r-1&&l+o[e+1]<h)){for(;s<t-1&&h<l;)s++,h+=i;for(let t=a;t<=e;t++)n[t]=s;a=e+1}for(let e=a;e<r;e++)n[e]=t-1;return n}function s(e){const{minCutOff:t,maxCutOff:r,gamma:o,pixelType:n}=e,i=e.outMin||0,s=e.outMax||255;if(!["u8","u16","s8","s16"].includes(n))return null;const a=t.length;let l,h,c=0;"s8"===n?c=-127:"s16"===n&&(c=-32767);let u=256;["u16","s16"].includes(n)&&(u=65536);const f=[],p=[],d=s-i;for(l=0;l<a;l++)p[l]=r[l]-t[l],f[l]=d/(r[l]-t[l]);const m=o&&o.length>=a,g=[];if(m)for(l=0;l<a;l++)o[l]>1?o[l]>2?g[l]=6.5+(o[l]-2)**2.5:g[l]=6.5+100*(2-o[l])**4:g[l]=1;let y;const C=[];let w,b,x;if(m)for(l=0;l<a;l++){for(x=[],h=0;h<u;h++)w=h+c,y=(w-t[l])/p[l],b=1,o[l]>1&&(b-=(1/d)**(y*g[l])),w<r[l]&&w>t[l]?x[h]=Math.floor(b*d*y**(1/o[l]))+i:w>=r[l]?x[h]=s:x[h]=i;C[l]=x}else for(l=0;l<a;l++){for(x=[],h=0;h<u;h++)w=h+c,w<=t[l]?x[h]=i:w>=r[l]?x[h]=s:x[h]=Math.floor((w-t[l])/p[l]*d)+i;C[l]=x}if(null!=e.contrastOffset){const t=function(e,t){const r=Math.min(Math.max(e,-100),100),o=Math.min(Math.max(t,-100),100),n=255;let i,s;const a=new Uint8Array(256);for(i=0;i<256;i++)r>0&&r<100?s=(200*i-25500+510*o)/(2*(100-r))+128:r<=0&&r>-100?s=(200*i-25500+510*o)*(100+r)/2e4+128:100===r?(s=200*i-25500+256*(100-r)+510*o,s=s>0?n:0):-100===r&&(s=128),a[i]=s>n?n:s<0?0:s;return a}(e.contrastOffset,e.brightnessOffset);for(l=0;l<a;l++)for(x=C[l],h=0;h<u;h++)x[h]=t[x[h]]}return{lut:C,offset:c}}function a(e){if((0,o.Wi)(e)||!e.pixels?.length)return null;e.statistics||e.updateStatistics();const{pixels:t,mask:r,pixelType:n,statistics:i}=e,s=e.width*e.height,a=t.length;let l,h,c,u,f;const p=[],d=[];let m,g,y,C,w,b,x,T,k,v;const S=256;for(u=0;u<a;u++){if(m=new Uint32Array(S),y=t[u],"u8"===n)if(l=-.5,h=255.5,r)for(f=0;f<s;f++)r[f]&&m[y[f]]++;else for(f=0;f<s;f++)m[y[f]]++;else{if(l=i[u].minValue,h=i[u].maxValue,c=(h-l)/S,g=new Uint32Array(257),r)for(f=0;f<s;f++)r[f]&&g[Math.floor((y[f]-l)/c)]++;else for(f=0;f<s;f++)g[Math.floor((y[f]-l)/c)]++;for(f=0;f<255;f++)m[f]=g[f];m[255]=g[255]+g[256]}for(p.push({min:l,max:h,size:S,counts:m}),C=0,w=0,T=0,f=0;f<S;f++)C+=m[f],w+=f*m[f];for(k=w/C,f=0;f<S;f++)T+=m[f]*(f-k)**2;v=Math.sqrt(T/(C-1)),c=(h-l)/S,b=(k+.5)*c+l,x=v*c,d.push({min:l,max:h,avg:b,stddev:x})}return{statistics:d,histograms:p}}function l(e){const t=[];for(let r=0;r<e.length;r++){const{min:o,max:n,size:i,counts:s}=e[r];let a=0,l=0;for(let e=0;e<i;e++)a+=s[e],l+=e*s[e];const h=l/a;let c=0;for(let e=0;e<i;e++)c+=s[e]*(e-h)**2;const u=(n-o)/i,f=(h+.5)*u+o,p=Math.sqrt(c/(a-1))*u;t.push({min:o,max:n,avg:f,stddev:p})}return t}function h(e,t){const{pixelBlock:r,bandIds:s,returnHistogramLut:l,rasterInfo:h}=t;let c,u,f=e.stretchType;if(e.dra)if("minMax"===f&&(0,o.pC)(r)&&r.statistics)c=r.statistics.map((e=>[e.minValue,e.maxValue,0,0]));else{const e=a(r);c=(0,o.pC)(e)?e.statistics:null,u=(0,o.pC)(e)?e.histograms:null}else c=e.statistics?.length>0?e.statistics:(0,o.Wg)(h.statistics),u=e.histograms||(0,o.Wg)(h.histograms);"percentClip"!==f&&"histogramEqualization"!==f||u?.length||(f="minMax");const p=c?.length||u?.length||h.bandCount,d=[],m=[];let g,y,C,w,b,x,T,k,v,S,A,I;switch(c&&!Array.isArray(c[0])&&(c=c.map((e=>[e.min,e.max,e.avg,e.stddev]))),f){case"none":{const e=n[h.pixelType]||n.f32;for(k=0;k<p;k++)d[k]=e[0],m[k]=e[1]}break;case"minMax":for(k=0;k<p;k++)d[k]=c[k][0],m[k]=c[k][1];break;case"standardDeviation":for(k=0;k<p;k++)d[k]=c[k][2]-e.numberOfStandardDeviations*c[k][3],m[k]=c[k][2]+e.numberOfStandardDeviations*c[k][3],d[k]<c[k][0]&&(d[k]=c[k][0]),m[k]>c[k][1]&&(m[k]=c[k][1]);break;case"histogramEqualization":for(k=0;k<p;k++)d[k]=u[k].min,m[k]=u[k].max;break;case"percentClip":for(k=0;k<u.length;k++){for(g=u[k],b=new Uint32Array(g.size),w=[...g.counts],w.length>=20&&(w[0]=w[1]=w[2]=w[w.length-1]=w[w.length-2]=0),C=0,y=(g.max-g.min)/g.size,T=-.5===g.min&&1===y?.5:0,v=0;v<g.size;v++)C+=w[v],b[v]=C;for(x=(e.minPercent||0)*C/100,v=0;v<g.size;v++)if(b[v]>x){d[k]=g.min+y*(v+T);break}for(x=(1-(e.maxPercent||0)/100)*C,v=g.size-2;v>=0;v--)if(b[v]<x){m[k]=g.min+y*(v+2-T);break}}break;default:for(k=0;k<p;k++)d[k]=c[k][0],m[k]=c[k][1]}return"histogramEqualization"===f?(A=u[0].size||256,S=0,l&&(I=u.map((e=>i(e))))):(A=e.max||255,S=e.min||0),function(e,t){if(null==t||0===t.length)return e;const r=Math.max.apply(null,t),{minCutOff:o,maxCutOff:n,outMin:i,outMax:s,histogramLut:a}=e;return o.length===t.length||o.length<=r?e:{minCutOff:t.map((e=>o[e])),maxCutOff:t.map((e=>n[e])),histogramLut:a?t.map((e=>a[e])):null,outMin:i,outMax:s}}({minCutOff:d,maxCutOff:m,outMax:A,outMin:S,histogramLut:I},s)}function c(e,t){if((0,o.Wi)(e)||!e.pixels?.length)return e;const r=e.clone(),{pixels:n,mask:i}=r,{minCutOff:s,maxCutOff:a,gamma:l}=t,h=t.outMin||0,c=t.outMax||255,u=r.width*r.height,f=n.length;let p,d,m,g,y;const C=c-h,w=[],b=[];for(p=0;p<f;p++)b[p]=a[p]-s[p],w[p]=C/(a[p]-s[p]);const x=l&&l.length>=f,T=[];if(x)for(p=0;p<f;p++)l[p]>1?l[p]>2?T[p]=6.5+(l[p]-2)**2.5:T[p]=6.5+100*(2-l[p])**4:T[p]=1;if(x)if(null!=i){for(d=0;d<u;d++)if(i[d])for(p=0;p<f;p++)m=n[p][d],y=(m-s[p])/b[p],g=1,l[p]>1&&(g-=(1/C)**(y*T[p])),m<a[p]&&m>s[p]?n[p][d]=Math.floor(g*C*y**(1/l[p]))+h:m>=a[p]?n[p][d]=c:n[p][d]=h}else for(d=0;d<u;d++)for(p=0;p<f;p++)m=n[p][d],y=(m-s[p])/b[p],g=1,l[p]>1&&(g-=(1/C)**(y*T[p])),m<a[p]&&m>s[p]?n[p][d]=Math.floor(g*C*y**(1/l[p]))+h:m>=a[p]?n[p][d]=c:n[p][d]=h;else if(null!=i){for(d=0;d<u;d++)if(i[d])for(p=0;p<f;p++)m=n[p][d],m<a[p]&&m>s[p]?n[p][d]=Math.floor((m-s[p])/b[p]*C)+h:m>=a[p]?n[p][d]=c:n[p][d]=h}else for(d=0;d<u;d++)for(p=0;p<f;p++)m=n[p][d],m<a[p]&&m>s[p]?n[p][d]=Math.floor((m-s[p])/b[p]*C)+h:m>=a[p]?n[p][d]=c:n[p][d]=h;return r.pixelType="u8",r.updateStatistics(),r}},80676:(e,t,r)=>{r.d(t,{KC:()=>m,NL:()=>h,QI:()=>g,Tg:()=>f,Yx:()=>c,xQ:()=>d});var o=r(35454),n=r(70586),i=r(54163),s=r(55914);const a=new Map;a.set("meter-per-second",1),a.set("kilometer-per-hour",.277778),a.set("knots",.514444),a.set("feet-per-second",.3048),a.set("mile-per-hour",.44704);const l=180/Math.PI,h=new o.X({esriMetersPerSecond:"meter-per-second",esriKilometersPerHour:"kilometer-per-hour",esriKnots:"knots",esriFeetPerSecond:"feet-per-second",esriMilesPerHour:"mile-per-hour"});function c(e,t){return a.get(e)/a.get(t)||1}function u(e){return(450-e)%360}function f(e,t="geographic"){const[r,o]=e,n=Math.sqrt(r*r+o*o);let i=Math.atan2(o,r)*l;return i=(360+i)%360,"geographic"===t&&(i=u(i)),[n,i]}function p(e,t="geographic"){let r=e[1];"geographic"===t&&(r=u(r)),r%=360;const o=e[0];return[o*Math.cos(r/l),o*Math.sin(r/l)]}function d(e,t,r,o="geographic"){if(!(0,s.nk)(e)||(0,n.Wi)(r))return e;const i="vector-magdir"===t?e.clone():(0,n.Wg)(m(e,t)),a=i.pixels[1];for(let e=0;e<a.length;e++)a[e]="geographic"===o?(a[e]+r[e]+270)%360:(a[e]+360-r[e])%360;return"vector-magdir"===t?i:m(i,"vector-magdir")}function m(e,t,r="geographic",o=1){if(!(0,s.nk)(e))return e;const{pixels:n,width:a,height:l}=e,h=a*l,c=n[0],u=n[1],d=e.pixelType.startsWith("f")?e.pixelType:"f32",m=i.Z.createEmptyBand(d,h),g=i.Z.createEmptyBand(d,h);let y=0;for(let e=0;e<l;e++)for(let e=0;e<a;e++)"vector-uv"===t?([m[y],g[y]]=f([c[y],u[y]],r),m[y]*=o):([m[y],g[y]]=p([c[y],u[y]],r),m[y]*=o,g[y]*=o),y++;const C=new i.Z({pixelType:d,width:e.width,height:e.height,mask:e.mask,validPixelCount:e.validPixelCount,maskIsAlpha:e.maskIsAlpha,pixels:[m,g]});return C.updateStatistics(),C}function g(e,t,r=1){if(1===r||!(0,s.nk)(e))return e;const o=e.clone(),{pixels:n,width:i,height:a}=o,l=n[0],h=n[1];let c=0;for(let e=0;e<a;e++)for(let e=0;e<i;e++)"vector-uv"===t?(l[c]*=r,h[c]*=r):l[c]*=r,c++;return o.updateStatistics(),o}function y(e,t,r,o=1){const n=Math.sqrt(e*e+t*t)/o,i=(2*Math.PI+Math.atan2(t,e))%(2*Math.PI);return[n,(2*Math.PI+i-r)%(2*Math.PI)]}!function(e=0,t=0,r=Math.PI,o=!0){o&&(r=(2*Math.PI-r)%(2*Math.PI));const n=o?-1:1,i=13*n,s=-7*n,a=-2*n,l=-16*n,h=21.75,[c,u]=y(0,t+i,r,h),[f,p]=y(e-5.5,t+s,r,h),[d,m]=y(e+5.5,t+s,r,h),[g,C]=y(e-1.5,t+a,r,h),[w,b]=y(e+1.5,t+a,r,h),[x,T]=y(e-1.5,t+l,r,h),[k,v]=y(e+1.5,t+l,r,h)}(0,0,0)},91219:(e,t,r)=>{r.d(t,{Z:()=>w});var o=r(43697),n=r(3892),i=r(96674),s=r(92604),a=r(70586),l=r(5600),h=(r(67676),r(80442),r(75215),r(52011)),c=r(48526),u=r(55914),f=r(15612),p=r(54163);function d(e){let{altitude:t,azimuth:r}=e;const{hillshadeType:o,pixelSizePower:n,pixelSizeFactor:i,scalingType:s,isGCS:a,resolution:l}=e,h="multi-directional"===o?2*e.zFactor:e.zFactor,{x:c,y:u}=l;let f=h/(8*c),p=h/(8*u);if(a&&h>.001&&(f/=111e3,p/=111e3),"adjusted"===s)if(a){const e=111e3*c,t=111e3*u;f=(h+e**n*i)/(8*e),p=(h+t**n*i)/(8*t)}else f=(h+c**n*i)/(8*c),p=(h+u**n*i)/(8*u);let d=(90-t)*Math.PI/180,m=Math.cos(d),g=(360-r+90)*Math.PI/180,y=Math.sin(d)*Math.cos(g),C=Math.sin(d)*Math.sin(g);const w=[315,270,225,360,180,0],b=[60,60,60,60,60,90],x=new Float32Array([3,5,3,2,1,4]),T=x.reduce(((e,t)=>e+t)),k=x.map((e=>e/T)),v="multi-directional"===o?w.length:1,S=new Float32Array(6),A=new Float32Array(6),I=new Float32Array(6);if("multi-directional"===o)for(let e=0;e<v;e++)t=b[e],r=w[e],d=(90-t)*Math.PI/180,m=Math.cos(d),g=(360-r+90)*Math.PI/180,y=Math.sin(d)*Math.cos(g),C=Math.sin(d)*Math.sin(g),S[e]=m,A[e]=y,I[e]=C;else S.fill(m),A.fill(y),I.fill(C);return{resolution:l,factor:[f,p],sinZcosA:y,sinZsinA:C,cosZ:m,sinZcosAs:A,sinZsinAs:I,cosZs:S,weights:k,hillshadeType:["traditional","multi-directional"].indexOf(o)}}var m=r(93010);const g=s.Z.getLogger("esri.renderers.support.RasterSymbolizer");let y=class extends i.wq{constructor(e){super(e)}bind(){const{rendererJSON:e}=this;if(!e)return{success:!1};let t;switch(this.lookup={rendererJSON:{}},e.type){case"uniqueValue":t=this._updateUVRenderer(e);break;case"rasterColormap":t=this._updateColormapRenderer(e);break;case"rasterStretch":t=this._updateStretchRenderer(e);break;case"classBreaks":t=this._updateClassBreaksRenderer(e);break;case"rasterShadedRelief":t=this._updateShadedReliefRenderer(e);break;case"vectorField":t=this._updateVectorFieldRenderer();break;case"flowRenderer":t=this._updateFlowRenderer()}return t}symbolize(e){let t=e&&e.pixelBlock;if(!C(t))return t;if(e.simpleStretchParams&&"rasterStretch"===this.rendererJSON.type)return this.simpleStretch(t,e.simpleStretchParams);try{let r;switch(t.pixels.length>3&&(t=(0,u.qF)(t,[0,1,2])),this.rendererJSON.type){case"uniqueValue":case"rasterColormap":r=this._symbolizeColormap(t);break;case"classBreaks":r=this._symbolizeClassBreaks(t);break;case"rasterStretch":r=this._symbolizeStretch(t,e.bandIds);break;case"rasterShadedRelief":{const{extent:o}=e,n=o.spatialReference.isGeographic,i={x:(o.xmax-o.xmin)/t.width,y:(o.ymax-o.ymin)/t.height};r=this._symbolizeShadedRelief(t,{isGCS:n,resolution:i});break}}return r}catch(e){return g.error("symbolize",e.message),t}}simpleStretch(e,t){if(!C(e))return e;try{return e.pixels.length>3&&(e=(0,u.qF)(e,[0,1,2])),(0,f.dy)(e,t)}catch(t){return g.error("symbolize",t.message),e}}generateWebGLParameters(e){if(["uniqueValue","rasterColormap","classBreaks"].includes(this.rendererJSON.type)){const{indexedColormap:e,offset:t}=this.lookup?.colormapLut||{};return{colormap:e,colormapOffset:t,type:"lut"}}const{pixelBlock:t,isGCS:r,resolution:o,bandIds:n}=e,{rendererJSON:i}=this;return"rasterStretch"===i.type?this._generateStretchWebGLParams(t,i,n):"rasterShadedRelief"===i.type?this._generateShadedReliefWebGLParams(i,r,o):"vectorField"===i.type?this._generateVectorFieldWebGLParams(i):null}_isLUTChanged(e){if(!this.lookup||!this.lookup.rendererJSON)return!0;if("colorRamp"in this.rendererJSON){const t=this.rendererJSON.colorRamp;return e?JSON.stringify(t)!==JSON.stringify(this.lookup.rendererJSON.colorRamp):(this.rendererJSON,this.lookup.rendererJSON,JSON.stringify(this.rendererJSON)!==JSON.stringify(this.lookup.rendererJSON))}return JSON.stringify(this.rendererJSON)!==JSON.stringify(this.lookup.rendererJSON)}_symbolizeColormap(e){return this._isLUTChanged()&&!this.bind().success?e:(0,u.SJ)(e,this.lookup.colormapLut)}_symbolizeClassBreaks(e){const t=this.rasterInfo.pixelType,r=["u8","u16","s8","s16"].includes(t);return this._isLUTChanged()&&!this.bind().success?e:r?(0,u.SJ)(e,this.lookup.colormapLut):(0,u.zp)(e,this.lookup.remapLut)}_symbolizeStretch(e,t){const{rasterInfo:r}=this,{pixelType:o,bandCount:n}=r,i=this.rendererJSON,s=["u8","u16","s8","s16"].includes(o);let l,h;const{dra:c}=i,p=i.useGamma?i.gamma:null;if("histogramEqualization"===i.stretchType){const o=c?null:this.lookup.histogramLut,n=(0,f.AV)(i,{rasterInfo:r,pixelBlock:e,bandIds:t,returnHistogramLut:!o}),s=(0,f.dy)(e,{...n,gamma:p});h=(0,u.XV)(s,{lut:c?n.histogramLut:o,offset:0})}else if(s){if(c){const n=(0,f.AV)(i,{rasterInfo:r,pixelBlock:e,bandIds:t});l=(0,f.hE)({pixelType:o,...n,gamma:p})}else if(this._isLUTChanged()){if(!this.bind().success)return e;l=this.lookup?this.lookup.stretchLut:null}else l=this.lookup?this.lookup.stretchLut:null;if(!l)return e;n>1&&t?.length===(0,a.Wg)(e)?.pixels.length&&l?.lut.length===n&&(l={lut:t.map((e=>l.lut[e])),offset:l.offset}),h=(0,u.XV)(e,l)}else{const o=(0,f.AV)(i,{rasterInfo:r,pixelBlock:e,bandIds:t});h=(0,f.dy)(e,{...o,gamma:p})}if(i.colorRamp){if(this._isLUTChanged(!0)&&!this.bind().success)return e;h=(0,u.SJ)(h,this.lookup.colormapLut)}return h}_symbolizeShadedRelief(e,t){const r=this.rendererJSON,o=function(e,t){if(!(0,u.nk)(e))return e;const{width:r,height:o,mask:n}=e,i=new Uint8Array(r*o);n&&i.set(n);const{factor:s,sinZcosA:a,sinZsinA:l,cosZ:h,sinZcosAs:c,sinZsinAs:f,cosZs:m,weights:g}=d(t),[y,C]=s,{hillshadeType:w}=t,b=e.pixels[0],x=new Uint8Array(r*o);let T,k,v,S,A,I,P,M;for(let e=1;e<o-1;e++){const t=e*r;for(let e=1;e<r-1;e++){if(n&&!n[t+e]){x[t+e]=0;continue}let o=8;if(n&&(o=n[t-r+e-1]+n[t-r+e]+n[t-r+e+1]+n[t+e-1]+n[t+e+1]+n[t+r+e-1]+n[t+r+e]+n[t+r+e+1],o<7)){x[t+e]=0,i[t+e]=0;continue}7===o?(T=n[t-r+e-1]?b[t-r+e-1]:b[t+e],k=n[t-r+e]?b[t-r+e]:b[t+e],v=n[t-r+e+1]?b[t-r+e+1]:b[t+e],S=n[t+e-1]?b[t+e-1]:b[t+e],A=n[t+e+1]?b[t+e+1]:b[t+e],I=n[t+r+e-1]?b[t+r+e-1]:b[t+e],P=n[t+r+e]?b[t+r+e]:b[t+e],M=n[t+r+e+1]?b[t+r+e+1]:b[t+e]):(T=b[t-r+e-1],k=b[t-r+e],v=b[t-r+e+1],S=b[t+e-1],A=b[t+e+1],I=b[t+r+e-1],P=b[t+r+e],M=b[t+r+e+1]);const s=(v+A+A+M-(T+S+S+I))*y,u=(I+P+P+M-(T+k+k+v))*C,p=Math.sqrt(1+s*s+u*u);let d=0;if("traditional"===w){let e=255*(h+l*u-a*s)/p;e<0&&(e=0),d=e}else{const e=f.length;for(let t=0;t<e;t++){let e=255*(m[t]+f[t]*u-c[t]*s)/p;e<0&&(e=0),d+=e*g[t]}}x[t+e]=255&d}}for(let e=0;e<o;e++)x[e*r]=x[e*r+1],x[(e+1)*r-1]=x[(e+1)*r-2];for(let e=1;e<r-1;e++)x[e]=x[e+r],x[e+(o-1)*r]=x[e+(o-2)*r];return new p.Z({width:r,height:o,pixels:[x],mask:n?i:null,pixelType:"u8",validPixelCount:e.validPixelCount,statistics:[{minValue:0,maxValue:255}]})}(e,{...r,...t});if(!r.colorRamp)return o;let n;if(this._isLUTChanged(!0)){if(!this.bind().success)return o;n=this.lookup?this.lookup.hsvMap:null}else n=this.lookup?this.lookup.hsvMap:null;return n?(function(e,t,r,o){if(!(0,u.nk)(e)||!(0,u.nk)(t))return;const{min:n,max:i}=o,s=e.pixels[0],{pixels:a,mask:l}=t,h=a[0],c=255.00001/(i-n),f=new Uint8ClampedArray(h.length),p=new Uint8ClampedArray(h.length),d=new Uint8ClampedArray(h.length),m=r.length-1;for(let e=0;e<h.length;e++){if(l&&0===l[e])continue;const t=Math.floor((h[e]-n)*c),[o,i]=r[t<0?0:t>m?m:t],a=s[e],u=a*i,g=u*(1-Math.abs(o%2-1)),y=a-u;switch(Math.floor(o)){case 0:f[e]=u+y,p[e]=g+y,d[e]=y;break;case 1:f[e]=g+y,p[e]=u+y,d[e]=y;break;case 2:f[e]=y,p[e]=u+y,d[e]=g+y;break;case 3:f[e]=y,p[e]=g+y,d[e]=u+y;break;case 4:f[e]=g+y,p[e]=y,d[e]=u+y;break;case 5:case 6:f[e]=u+y,p[e]=y,d[e]=g+y}}e.pixels=[f,p,d],e.updateStatistics()}(o,e,n,(0,a.Wg)(this.rasterInfo.statistics)?.[0]??{min:0,max:8e3}),o):o}_isVectorFieldData(){const{bandCount:e,dataType:t}=this.rasterInfo;return 2===e&&("vector-magdir"===t||"vector-uv"===t)}_updateVectorFieldRenderer(){return this._isVectorFieldData()?{success:!0}:{success:!1,error:`Unsupported data type "${this.rasterInfo.dataType}"; VectorFieldRenderer only supports "vector-magdir" and "vector-uv".`}}_updateFlowRenderer(){return this._isVectorFieldData()?{success:!0}:{success:!1,error:`Unsupported data type "${this.rasterInfo.dataType}"; FlowRenderer only supports "vector-magdir" and "vector-uv".`}}_updateUVRenderer(e){const{bandCount:t,attributeTable:r,pixelType:o}=this.rasterInfo,n=e.field1;if(!n)return{success:!1,error:"Unsupported renderer; missing UniqueValueRenderer.field."};const i=e.defaultSymbol,s=1===t&&["u8","s8"].includes(o);if(!function(e,t){const{attributeTable:r,bandCount:o}=e;return!((0,a.Wi)(r)||o>1||t&&null==r.fields.find((e=>e.name.toLowerCase()===t.toLowerCase())))}(this.rasterInfo,n)&&!s)return{success:!1,error:"Unsupported data; UniqueValueRenderer is only supported on single band data with a valid raster attribute table."};const l=[];if(r){const t=r.fields.find((e=>"value"===e.name.toLowerCase()));if(!t)return{success:!1,error:"Unsupported data; the data's raster attribute table does not have a value field."};r.features.forEach((r=>{const o=e.uniqueValueInfos.find((e=>String(e.value)===String(r.attributes[n])))?.symbol?.color;o?l.push([r.attributes[t.name]].concat(o)):i&&l.push([r.attributes[t.name]].concat(i.color))}))}else{if("value"!==n.toLowerCase())return{success:!1,error:'Unsupported renderer; UniqueValueRenderer.field must be "Value" when raster attribute table is not availalbe.'};e.uniqueValueInfos.forEach((e=>{const t=e?.symbol?.color;t?l.push([parseInt(""+e.value,10)].concat(t)):i&&l.push([parseInt(""+e.value,10)].concat(i.color))}))}if(0===l.length)return{success:!1,error:"Invalid UniqueValueRenderer. Cannot find matching records in the raster attribute table."};const h=(0,u.Pz)({colormap:l});return this.lookup={rendererJSON:e,colormapLut:h},this.canRenderInWebGL=!0,{success:!0}}_updateColormapRenderer(e){if(!function(e){const{bandCount:t,colormap:r}=e;return(0,a.pC)(r)&&r.length&&1===t}(this.rasterInfo))return{success:!1,error:"Unsupported data; the data source does not have a colormap."};const t=e.colormapInfos.map((e=>[e.value].concat(e.color))).sort(((e,t)=>e[0]-t[0]));if(!t||0===t.length)return{success:!1,error:"Unsupported renderer; ColormapRenderer must have meaningful colormapInfos."};const r=(0,u.Pz)({colormap:t});return this.lookup={rendererJSON:e,colormapLut:r},this.canRenderInWebGL=!0,{success:!0}}_updateShadedReliefRenderer(e){if(!function(e){return"elevation"===e.dataType}(this.rasterInfo))return{success:!1,error:`Unsupported data type "${this.rasterInfo.dataType}"; ShadedReliefRenderer only supports "elevation".`};if(e.colorRamp){const t=(0,m.Jw)(e.colorRamp,256,!0),r=(0,u.Pz)({colormap:t}),o=[],i=r.indexedColormap;for(let e=0;e<i.length;e+=4){const t=(0,n._Y)({r:i[e],g:i[e+1],b:i[e+2]});o.push([t.h/60,t.s/100,255*t.v/100])}this.lookup={rendererJSON:e,colormapLut:r,hsvMap:o}}else this.lookup=null;return this.canRenderInWebGL=!0,{success:!0}}_updateClassBreaksRenderer(e){const t=this.rasterInfo.pixelType,r=["u8","u16","s8","s16"].includes(t),o=e.classBreakInfos;if(!o?.length)return{success:!1,error:"Unsupported renderer; missing or invalid ClassBreaksRenderer.classBreakInfos."};const n=o.sort(((e,t)=>e.classMaxValue-t.classMaxValue)),i=n[n.length-1];let s=e.minValue;if(!r){const t=[];for(let e=0;e<n.length;e++)t.push({value:n[e].classMinValue??s,mappedColor:n[e].symbol.color}),s=n[e].classMaxValue;return t.push({value:i.classMaxValue,mappedColor:i.symbol.color}),this.lookup={rendererJSON:e,remapLut:t},this.canRenderInWebGL=!1,{success:!0}}const a=[];s=Math.floor(e.minValue);for(let e=0;e<n.length;e++){const t=n[e];for(let e=s;e<t.classMaxValue;e++)a.push([e].concat(t.symbol.color));s=Math.ceil(t.classMaxValue)}i.classMaxValue===s&&a.push([i.classMaxValue].concat(i.symbol.color));const l=(0,u.Pz)({colormap:a,fillUnspecified:!1});return this.lookup={rendererJSON:e,colormapLut:l},this.canRenderInWebGL=!0,{success:!0}}_isHistogramRequired(e){return"percentClip"===e||"histogramEqualization"===e}_isValidRasterStatistics(e){return(0,a.pC)(e)&&e.length>0&&null!=e[0].min&&null!=e[0].max}_updateStretchRenderer(e){let{stretchType:t,dra:r}=e;if(!("none"===t||e.statistics?.length||this._isValidRasterStatistics(this.rasterInfo.statistics)||r))return{success:!1,error:"Unsupported renderer; StretchRenderer.statistics is required when dynamic range adjustment is not used."};const o=(0,a.Wg)(e.histograms||this.rasterInfo.histograms);!this._isHistogramRequired(e.stretchType)||o?.length||r||(t="minMax");const{gamma:n,useGamma:i,colorRamp:s}=e,l=this.rasterInfo.pixelType,h=!r&&["u8","u16","s8","s16"].includes(l);if("histogramEqualization"===t){const t=o.map((e=>(0,f.oc)(e)));this.lookup={rendererJSON:e,histogramLut:t}}else if(h){const t=(0,f.AV)(e,{rasterInfo:this.rasterInfo}),r=(0,f.hE)({pixelType:l,...t,gamma:i?n:null});this.lookup={rendererJSON:e,stretchLut:r}}if(s){const t=(0,m.Jw)(s,256,!0);this.lookup||(this.lookup={rendererJSON:e}),this.lookup.colormapLut=(0,u.Pz)({colormap:t}),this.lookup.rendererJSON=e}return this.canRenderInWebGL=!0,{success:!0}}_generateStretchWebGLParams(e,t,r){let o=null,n=null;const i=this.lookup&&this.lookup.colormapLut;t.colorRamp&&i&&(o=i.indexedColormap,n=i.offset),"histogramEqualization"===t.stretchType&&(t={...t,stretchType:"minMax"});const{gamma:s}=t,l=!!(t.useGamma&&s&&s.some((e=>1!==e))),{minCutOff:h,maxCutOff:c,outMin:u,outMax:p}=(0,f.AV)(t,{rasterInfo:this.rasterInfo,pixelBlock:e,bandIds:r});let d=0;(0,a.pC)(e)&&(d=e.getPlaneCount(),2===d&&((e=e.clone()).statistics=[e.statistics[0]],e.pixels=[e.pixels[0]]));const m=Math.min(3,r?.length||d||this.rasterInfo.bandCount),g=new Float32Array(m),y=o||l?1:255;let C;for(C=0;C<m;C++)g[C]=(p-u)/(c[C]-h[C])/y;const w=new Float32Array(m);if(l)for(C=0;C<m;C++)s[C]>1?s[C]>2?w[C]=6.5+(s[C]-2)**2.5:w[C]=6.5+100*(2-s[C])**4:w[C]=1;return{bandCount:m,outMin:u/y,outMax:p/y,minCutOff:h,maxCutOff:c,factor:g,useGamma:l,gamma:l?s:[1,1,1],gammaCorrection:l?w:[1,1,1],colormap:o,colormapOffset:n,stretchType:t.stretchType,type:"stretch"}}_generateShadedReliefWebGLParams(e,t,r){let o=null,n=null;const i=this.lookup&&this.lookup.colormapLut;e.colorRamp&&i&&(o=i.indexedColormap,n=i.offset);const s=d({...e,isGCS:t,resolution:r}),l=(0,a.Wg)(this.rasterInfo.statistics)?.[0];return{...s,minValue:l?.min??0,maxValue:l?.max??8e3,hillshadeType:"traditional"===e.hillshadeType?0:1,type:"hillshade",colormap:o,colormapOffset:n}}_generateVectorFieldWebGLParams(e){const{style:t,inputUnit:r,outputUnit:o,visualVariables:n,symbolTileSize:i,flowRepresentation:s}=e;let l;const h=this.rasterInfo.statistics?.[0].min??0,c=this.rasterInfo.statistics?.[0].max??50,u=n?.find((e=>"sizeInfo"===e.type))??{type:"sizeInfo",field:"Magnitude",maxDataValue:c,maxSize:.8*i,minDataValue:h,minSize:.2*i},f=u.minDataValue??h,p=u.maxDataValue??c,d=(0,a.pC)(u.maxSize)&&(0,a.pC)(u.minSize)?[u.minSize/i,u.maxSize/i]:[.2,.8];if("wind_speed"===t){const e=(d[0]+d[1])/2;d[0]=d[1]=e}const m=(0,a.pC)(f)&&(0,a.pC)(p)?[f,p]:null;if("classified_arrow"===t)if((0,a.pC)(f)&&(0,a.pC)(p)&&(0,a.pC)(u)){l=[];const e=(u.maxDataValue-u.minDataValue)/5;for(let t=0;t<6;t++)l.push(u.minDataValue+e*t)}else l=[0,1e-6,3.5,7,10.5,14];const g="flow_to"===s==("ocean_current_kn"===t||"ocean_current_m"===t)?0:Math.PI,y=n?.find((e=>"rotationInfo"===e.type));return{breakValues:l,dataRange:m,inputUnit:r,outputUnit:o,symbolTileSize:i,symbolPercentRange:d,style:t||"single_arrow",rotation:g,rotationType:this.rasterInfo.storageInfo?.tileInfo&&"vector-uv"===this.rasterInfo.dataType?"geographic":y?.rotationType||e.rotationType,type:"vectorField"}}};function C(e){return(0,u.nk)(e)&&0!==e.validPixelCount}(0,o._)([(0,l.Cb)({json:{write:!0}})],y.prototype,"rendererJSON",void 0),(0,o._)([(0,l.Cb)({type:c.Z,json:{write:!0}})],y.prototype,"rasterInfo",void 0),(0,o._)([(0,l.Cb)({json:{write:!0}})],y.prototype,"lookup",void 0),(0,o._)([(0,l.Cb)()],y.prototype,"canRenderInWebGL",void 0),y=(0,o._)([(0,h.j)("esri.renderers.support.RasterSymbolizer")],y);const w=y},93010:(e,t,r)=>{r.d(t,{Jw:()=>c,Ms:()=>i,Uh:()=>h,io:()=>d,pM:()=>u});var o=r(22303),n=r(3892);const i=[{id:"aspect_predefined",type:"multipart",colorRamps:[{fromColor:[190,190,190],toColor:[255,45,8]},{fromColor:[255,45,8],toColor:[255,181,61]},{fromColor:[255,181,61],toColor:[255,254,52]},{fromColor:[255,254,52],toColor:[0,251,50]},{fromColor:[0,251,50],toColor:[255,254,52]},{fromColor:[0,253,255],toColor:[0,181,255]},{fromColor:[0,181,255],toColor:[26,35,253]},{fromColor:[26,35,253],toColor:[255,57,251]},{fromColor:[255,57,251],toColor:[255,45,8]}]},{id:"blackToWhite_predefined",fromColor:[0,0,0],toColor:[255,255,255]},{id:"blueBright_predefined",fromColor:[204,204,255],toColor:[0,0,224]},{id:"blueLightToDark_predefined",fromColor:[211,229,232],toColor:[46,100,140]},{id:"blueGreenBright_predefined",fromColor:[203,245,234],toColor:[48,207,146]},{id:"blueGreenLightToDark_predefined",fromColor:[216,242,237],toColor:[21,79,74]},{id:"brownLightToDark_predefined",fromColor:[240,236,170],toColor:[102,72,48]},{id:"brownToBlueGreenDivergingBright_predefined",type:"multipart",colorRamps:[{fromColor:[156,85,31],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[33,130,145]}]},{id:"brownToBlueGreenDivergingDark_predefined",type:"multipart",colorRamps:[{fromColor:[110,70,45],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[48,100,102]}]},{id:"coefficientBias_predefined",fromColor:[214,214,255],toColor:[0,57,148]},{id:"coldToHotDiverging_predefined",type:"multipart",colorRamps:[{fromColor:[69,117,181],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[214,47,39]}]},{id:"conditionNumber_predefined",type:"multipart",colorRamps:[{fromColor:[0,97,0],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,34,0]}]},{id:"cyanToPurple_predefined",type:"multipart",colorRamps:[{fromColor:[0,245,245],toColor:[0,0,245]},{fromColor:[0,0,245],toColor:[245,0,245]}]},{id:"cyanLightToBlueDark_predefined",type:"multipart",colorRamps:[{fromColor:[182,237,240],toColor:[31,131,224]},{fromColor:[31,131,224],toColor:[9,9,145]}]},{id:"distance_predefined",fromColor:[255,200,0],toColor:[0,0,255]},{id:"elevation1_predefined",type:"multipart",colorRamps:[{fromColor:[175,240,233],toColor:[255,255,179]},{fromColor:[255,255,179],toColor:[0,128,64]},{fromColor:[0,128,64],toColor:[252,186,3]},{fromColor:[252,186,3],toColor:[128,0,0]},{fromColor:[120,0,0],toColor:[105,48,13]},{fromColor:[105,48,13],toColor:[171,171,171]},{fromColor:[171,171,171],toColor:[255,252,255]}]},{id:"elevation2_predefined",type:"multipart",colorRamps:[{fromColor:[118,219,211],toColor:[255,255,199]},{fromColor:[255,255,199],toColor:[255,255,128]},{fromColor:[255,255,128],toColor:[217,194,121]},{fromColor:[217,194,121],toColor:[135,96,38]},{fromColor:[135,96,38],toColor:[150,150,181]},{fromColor:[150,150,181],toColor:[181,150,181]},{fromColor:[181,150,181],toColor:[255,252,255]}]},{id:"errors_predefined",fromColor:[255,235,214],toColor:[196,10,10]},{id:"grayLightToDark_predefined",fromColor:[219,219,219],toColor:[69,69,69]},{id:"greenBright_predefined",fromColor:[204,255,204],toColor:[14,204,14]},{id:"greenLightToDark_predefined",fromColor:[220,245,233],toColor:[34,102,51]},{id:"greenToBlue_predefined",type:"multipart",colorRamps:[{fromColor:[32,204,16],toColor:[0,242,242]},{fromColor:[0,242,242],toColor:[2,33,227]}]},{id:"orangeBright_predefined",fromColor:[255,235,204],toColor:[240,118,5]},{id:"orangeLightToDark_predefined",fromColor:[250,233,212],toColor:[171,65,36]},{id:"partialSpectrum_predefined",type:"multipart",colorRamps:[{fromColor:[242,241,162],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,0,0]},{fromColor:[252,3,69],toColor:[176,7,237]},{fromColor:[176,7,237],toColor:[2,29,173]}]},{id:"partialSpectrum1Diverging_predefined",type:"multipart",colorRamps:[{fromColor:[135,38,38],toColor:[240,149,12]},{fromColor:[240,149,12],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[74,80,181]},{fromColor:[74,80,181],toColor:[39,32,122]}]},{id:"partialSpectrum2Diverging_predefined",type:"multipart",colorRamps:[{fromColor:[115,77,42],toColor:[201,137,52]},{fromColor:[201,137,52],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[91,63,176]},{fromColor:[91,63,176],toColor:[81,13,97]}]},{id:"pinkToYellowGreenDivergingBright_predefined",type:"multipart",colorRamps:[{fromColor:[158,30,113],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[99,110,45]}]},{id:"pinkToYellowGreenDivergingDark_predefined",type:"multipart",colorRamps:[{fromColor:[97,47,73],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[22,59,15]}]},{id:"precipitation_predefined",type:"multipart",colorRamps:[{fromColor:[194,82,60],toColor:[237,161,19]},{fromColor:[237,161,19],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[0,219,0]},{fromColor:[0,219,0],toColor:[32,153,143]},{fromColor:[32,153,143],toColor:[11,44,122]}]},{id:"prediction_predefined",type:"multipart",colorRamps:[{fromColor:[40,146,199],toColor:[250,250,100]},{fromColor:[250,250,100],toColor:[232,16,20]}]},{id:"purpleBright_predefined",fromColor:[255,204,255],toColor:[199,0,199]},{id:"purpleToGreenDivergingBright_predefined",type:"multipart",colorRamps:[{fromColor:[77,32,150],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[20,122,11]}]},{id:"purpleToGreenDivergingDark_predefined",type:"multipart",colorRamps:[{fromColor:[67,14,89],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[24,79,15]}]},{id:"purpleBlueBright_predefined",fromColor:[223,184,230],toColor:[112,12,242]},{id:"purpleBlueLightToDark_predefined",fromColor:[229,213,242],toColor:[93,44,112]},{id:"purpleRedBright_predefined",fromColor:[255,204,225],toColor:[199,0,99]},{id:"purpleRedLightToDark_predefined",fromColor:[250,215,246],toColor:[143,17,57]},{id:"redBright_predefined",fromColor:[255,204,204],toColor:[219,0,0]},{id:"redLightToDark_predefined",fromColor:[255,224,224],toColor:[143,10,10]},{id:"redToBlueDivergingBright_predefined",type:"multipart",colorRamps:[{fromColor:[196,69,57],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[48,95,207]}]},{id:"redToBlueDivergingDark_predefined",type:"multipart",colorRamps:[{fromColor:[107,13,13],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[13,53,97]}]},{id:"redToGreen_predefined",type:"multipart",colorRamps:[{fromColor:[245,0,0],toColor:[245,245,0]},{fromColor:[245,245,0],toColor:[0,245,0]}]},{id:"redToGreenDivergingBright_predefined",type:"multipart",colorRamps:[{fromColor:[186,20,20],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[54,145,33]}]},{id:"redToGreenDivergingDark_predefined",type:"multipart",colorRamps:[{fromColor:[97,21,13],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[16,69,16]}]},{id:"slope_predefined",type:"multipart",colorRamps:[{fromColor:[56,168,0],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,0,0]}]},{id:"spectrumFullBright_predefined",type:"multipart",colorRamps:[{fromColor:[255,0,0],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[0,255,255]},{fromColor:[0,255,255],toColor:[0,0,255]}]},{id:"spectrumFullDark_predefined",type:"multipart",colorRamps:[{fromColor:[153,0,0],toColor:[153,153,0]},{fromColor:[153,153,0],toColor:[0,153,153]},{fromColor:[0,153,153],toColor:[0,0,153]}]},{id:"spectrumFullLight_predefined",type:"multipart",colorRamps:[{fromColor:[255,153,153],toColor:[255,255,153]},{fromColor:[255,255,153],toColor:[153,255,255]},{fromColor:[153,255,255],toColor:[153,153,255]}]},{id:"surface_predefined",type:"multipart",colorRamps:[{fromColor:[112,153,89],toColor:[242,238,162]},{fromColor:[242,238,162],toColor:[242,206,133]},{fromColor:[242,206,133],toColor:[194,140,124]},{fromColor:[194,140,124],toColor:[255,242,255]}]},{id:"temperature_predefined",type:"multipart",colorRamps:[{fromColor:[255,252,255],toColor:[255,0,255]},{fromColor:[255,0,255],toColor:[0,0,255]},{fromColor:[0,0,255],toColor:[0,255,255]},{fromColor:[0,255,255],toColor:[0,255,0]},{fromColor:[0,255,0],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,128,0]},{fromColor:[255,128,0],toColor:[128,0,0]}]},{id:"whiteToBlack_predefined",fromColor:[255,255,255],toColor:[0,0,0]},{id:"yellowToDarkRed_predefined",type:"multipart",colorRamps:[{fromColor:[255,255,128],toColor:[242,167,46]},{fromColor:[242,167,46],toColor:[107,0,0]}]},{id:"yellowToGreenToDarkBlue_predefined",type:"multipart",colorRamps:[{fromColor:[255,255,128],toColor:[56,224,9]},{fromColor:[56,224,9],toColor:[26,147,171]},{fromColor:[26,147,171],toColor:[12,16,120]}]},{id:"yellowToRed_predefined",fromColor:[245,245,0],toColor:[255,0,0]},{id:"yellowGreenBright_predefined",fromColor:[236,252,204],toColor:[157,204,16]},{id:"yellowGreenLightToDark_predefined",fromColor:[215,240,175],toColor:[96,107,45]}],s={aspect_predefined:"Aspect",blackToWhite_predefined:"Black to White",blueBright_predefined:"Blue Bright",blueLightToDark_predefined:"Blue Light to Dark",blueGreenBright_predefined:"Blue-Green Bright",blueGreenLightToDark_predefined:"Blue-Green Light to Dark",brownLightToDark_predefined:"Brown Light to Dark",brownToBlueGreenDivergingBright_predefined:"Brown to Blue Green Diverging, Bright",brownToBlueGreenDivergingDark_predefined:"Brown to Blue Green Diverging, Dark",coefficientBias_predefined:"Coefficient Bias",coldToHotDiverging_predefined:"Cold to Hot Diverging",conditionNumber_predefined:"Condition Number",cyanToPurple_predefined:"Cyan to Purple",cyanLightToBlueDark_predefined:"Cyan-Light to Blue-Dark",distance_predefined:"Distance",elevation1_predefined:"Elevation #1",elevation2_predefined:"Elevation #2",errors_predefined:"Errors",grayLightToDark_predefined:"Gray Light to Dark",greenBright_predefined:"Green Bright",greenLightToDark_predefined:"Green Light to Dark",greenToBlue_predefined:"Green to Blue",orangeBright_predefined:"Orange Bright",orangeLightToDark_predefined:"Orange Light to Dark",partialSpectrum_predefined:"Partial Spectrum",partialSpectrum1Diverging_predefined:"Partial Spectrum 1 Diverging",partialSpectrum2Diverging_predefined:"Partial Spectrum 2 Diverging",pinkToYellowGreenDivergingBright_predefined:"Pink to YellowGreen Diverging, Bright",pinkToYellowGreenDivergingDark_predefined:"Pink to YellowGreen Diverging, Dark",precipitation_predefined:"Precipitation",prediction_predefined:"Prediction",purpleBright_predefined:"Purple Bright",purpleToGreenDivergingBright_predefined:"Purple to Green Diverging, Bright",purpleToGreenDivergingDark_predefined:"Purple to Green Diverging, Dark",purpleBlueBright_predefined:"Purple-Blue Bright",purpleBlueLightToDark_predefined:"Purple-Blue Light to Dark",purpleRedBright_predefined:"Purple-Red Bright",purpleRedLightToDark_predefined:"Purple-Red Light to Dark",redBright_predefined:"Red Bright",redLightToDark_predefined:"Red Light to Dark",redToBlueDivergingBright_predefined:"Red to Blue Diverging, Bright",redToBlueDivergingDark_predefined:"Red to Blue Diverging, Dark",redToGreen_predefined:"Red to Green",redToGreenDivergingBright_predefined:"Red to Green Diverging, Bright",redToGreenDivergingDark_predefined:"Red to Green Diverging, Dark",slope_predefined:"Slope",spectrumFullBright_predefined:"Spectrum-Full Bright",spectrumFullDark_predefined:"Spectrum-Full Dark",spectrumFullLight_predefined:"Spectrum-Full Light",surface_predefined:"Surface",temperature_predefined:"Temperature",whiteToBlack_predefined:"White to Black",yellowToDarkRed_predefined:"Yellow to Dark Red",yellowToGreenToDarkBlue_predefined:"Yellow to Green to Dark Blue",yellowToRed_predefined:"Yellow to Red",yellowGreenBright_predefined:"Yellow-Green Bright",yellowGreenLightToDark_predefined:"Yellow-Green Light to Dark"};function a(e,t){if(!e||!t||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]>t[r]+2||e[r]<t[r]-2)return!1;return!0}function l(e,t,r){const o=(0,n.Y3)(e),i=(0,n.Y3)(t),s={l:o.l*(1-r)+r*i.l,a:o.a*(1-r)+r*i.a,b:o.b*(1-r)+r*i.b};return(0,n.xr)(s)}function h(e){const t=function(e,t){if(!e)return;const r=i;let n,s=null;return"algorithmic"===e.type?r.some((t=>{if(a(e.fromColor.toRgb(),t.fromColor)&&a(e.toColor.toRgb(),t.toColor))return s=t.id,!0})):"multipart"===e.type&&r.some((t=>{if(e.colorRamps&&t.colorRamps&&e.colorRamps.length===t.colorRamps.length&&(n=e.colorRamps,!t.colorRamps.some(((e,t)=>{if(!a(n[t].fromColor.toRgb(),new o.Z(e.fromColor).toRgb())||!a(n[t].toColor.toRgb(),new o.Z(e.toColor).toRgb()))return!0})))){if(s)return!0;s=t.id}})),s}(e);return t?s[t]:null}function c(e,t,r=!1){if(!e||!t||t<1)return;const o="toJSON"in e?e.toJSON():e,n="multipart"===o.type?o.colorRamps.length:1,i=[],s=[];let a,h,c,u,f,p=0;if(1===t)return a="multipart"===o.type?o.colorRamps[0].fromColor:o.fromColor,s.push([0].concat(a)),s;for(let e=0;e<n;e++)i[e]={start:null,end:null},i[e].start=p,i[e].end=p+1/n,p=i[e].end;for(let e=0;e<t;e++)u=e/(t-1),i.forEach(((i,p)=>{if(u>=i.start&&(u<i.end||e===t-1&&p===n-1)){f=(u-i.start)/(i.end-i.start),"multipart"===o.type?(a=o.colorRamps[p].fromColor,h=o.colorRamps[p].toColor):(a=o.fromColor,h=o.toColor),0===e?s.push([e].concat(a.slice(0,3))):e===t-1?s.push([e].concat(h.slice(0,3))):(c=l({r:a[0],g:a[1],b:a[2]},{r:h[0],g:h[1],b:h[2]},f),s.push([e,c.r,c.g,c.b]));const n=null!=a[3]?a[3]>1?a[3]/255:a[3]:1,d=null!=h[3]?h[3]>1?h[3]/255:h[3]:1;r&&s[e].push(Math.min(255,Math.round(255*(n*(1-f)+d*f))))}}));return s}function u(e){const t=h(e);if(e){if("algorithmic"===e.type)return{...f(e),Name:t};if(e.colorRamps){const r=e.colorRamps.map(f);return{type:"MultiPartColorRamp",NumColorRamps:r.length,ArrayOfColorRamp:r,Name:t}}}}function f(e){if(e)return{Algorithm:e.toJSON()?.Algorithm||"esriHSVAlgorithm",type:"AlgorithmicColorRamp",FromColor:p(e.fromColor),ToColor:p(e.toColor)}}function p(e){const t=(0,n._Y)(e);return{type:"HsvColor",Hue:t.h,Saturation:t.s,Value:t.v,AlphaValue:255}}function d(e){const t=e.reverse().map((e=>{const t=e.toString(16);return t.length<2?"0"+t:t}));return 4294967295&Number.parseInt(t.join(""),16)}},23808:(e,t,r)=>{r.d(t,{z_:()=>a}),r(66577);var o=r(92604),n=(r(22021),r(95330)),i=r(77734);r(8744),r(6570);const s=o.Z.getLogger("esri.views.2d.engine.flow.dataUtils");async function a(e,t,r){const o=performance.now(),a=function(e,t){const r=function(e,t,r,o){if(0===o)return e;const n=Math.round(3*o),i=new Array(2*n+1);let s=0;for(let e=-n;e<=n;e++){const t=Math.exp(-e*e/(o*o));i[e+n]=t,s+=t}for(let e=-n;e<=n;e++)i[e+n]/=s;const a=new Float32Array(e.length);for(let o=0;o<r;o++)for(let r=0;r<t;r++){let s=0,l=0;for(let a=-n;a<=n;a++){if(r+a<0||r+a>=t)continue;const h=i[a+n];s+=h*e[2*(o*t+(r+a))+0],l+=h*e[2*(o*t+(r+a))+1]}a[2*(o*t+r)+0]=s,a[2*(o*t+r)+1]=l}const l=new Float32Array(e.length);for(let e=0;e<t;e++)for(let o=0;o<r;o++){let s=0,h=0;for(let l=-n;l<=n;l++){if(o+l<0||o+l>=r)continue;const c=i[l+n];s+=c*a[2*((o+l)*t+e)+0],h+=c*a[2*((o+l)*t+e)+1]}l[2*(o*t+e)+0]=s,l[2*(o*t+e)+1]=h}return l}(t.data,t.width,t.height,e.smoothing);return e.interpolate?(e,o)=>{const n=Math.floor(e),i=Math.floor(o);if(n<0||n>=t.width)return[0,0];if(i<0||i>=t.height)return[0,0];const s=e-n,a=o-i,l=n,h=i,c=n<t.width-1?n+1:n,u=i<t.height-1?i+1:i,f=r[2*(h*t.width+l)],p=r[2*(h*t.width+c)],d=r[2*(u*t.width+l)],m=r[2*(u*t.width+c)],g=r[2*(h*t.width+l)+1],y=r[2*(h*t.width+c)+1];return[(f*(1-a)+d*a)*(1-s)+(p*(1-a)+m*a)*s,(g*(1-a)+r[2*(u*t.width+l)+1]*a)*(1-s)+(y*(1-a)+r[2*(u*t.width+c)+1]*a)*s]}:(e,o)=>{const n=Math.round(e),i=Math.round(o);return n<0||n>=t.width||i<0||i>=t.height?[0,0]:[r[2*(i*t.width+n)+0],r[2*(i*t.width+n)+1]]}}(e,t),l=performance.now(),c=h(e,a,t.width,t.height),u=performance.now(),f=function(e,t){const r=new i.Z,o=e.reduce(((e,t)=>e+t.length),0),n=new Float32Array(4*o),s=new Array(e.length);let a=0,l=0;for(const t of e){const e=a;for(const e of t)n[4*a+0]=e.x,n[4*a+1]=e.y,n[4*a+2]=e.t,n[4*a+3]=e.speed,a++;s[l++]={startVertex:e,numberOfVertices:t.length,totalTime:t[t.length-1].t,timeSeed:r.getFloat()}}return{lineVertices:n,lineDescriptors:s}}(c),p=performance.now(),d=function(e,t=10){const{lineVertices:r,lineDescriptors:o}=e;let n=0,i=0;for(const e of o)n+=2*e.numberOfVertices,i+=6*(e.numberOfVertices-1);const s=new Float32Array(9*n),a=new Uint32Array(i);let l=0,h=0;function c(){a[h++]=l-2,a[h++]=l,a[h++]=l-1,a[h++]=l,a[h++]=l+1,a[h++]=l-1}function u(e,t,r,o,n,i,a,h){const c=9*l;let u=0;s[c+u++]=e,s[c+u++]=t,s[c+u++]=1,s[c+u++]=r,s[c+u++]=i,s[c+u++]=a,s[c+u++]=o/2,s[c+u++]=n/2,s[c+u++]=h,l++,s[c+u++]=e,s[c+u++]=t,s[c+u++]=-1,s[c+u++]=r,s[c+u++]=i,s[c+u++]=a,s[c+u++]=-o/2,s[c+u++]=-n/2,s[c+u++]=h,l++}for(const e of o){const{totalTime:o,timeSeed:n}=e;let i=null,s=null,a=null,l=null,h=null,f=null;for(let p=0;p<e.numberOfVertices;p++){const d=r[4*(e.startVertex+p)+0],m=r[4*(e.startVertex+p)+1],g=r[4*(e.startVertex+p)+2],y=r[4*(e.startVertex+p)+3];let C=null,w=null,b=null,x=null;if(p>0){C=d-i,w=m-s;const e=Math.sqrt(C*C+w*w);if(C/=e,w/=e,p>1){let e=C+h,r=w+f;const o=Math.sqrt(e*e+r*r);e/=o,r/=o;const n=Math.min(1/(e*C+r*w),t);e*=n,r*=n,b=-r,x=e}else b=-w,x=C;null!==b&&null!==x&&(u(i,s,a,b,x,o,n,y),c())}i=d,s=m,a=g,h=C,f=w,l=y}u(i,s,a,-f,h,o,n,l)}return{vertexData:s,indexData:a}}(f),m=performance.now();if(e.profile){const e={"_createFlowFieldFromData()":Math.round(l-o),"_getStreamlines()":Math.round(u-l),"createAnimatedLinesData()":Math.round(p-u),"createLinesMesh()":Math.round(m-p),"Total elapsed time":Math.round(m-o)};s.info("createStreamlinesMesh profile",e)}return await Promise.resolve(),(0,n.k_)(r),d}function l(e,t,r,o,n,i,s,a,l){const h=[];let c=r,u=o,f=0,[p,d]=t(c,u);p*=e.velocityScale,d*=e.velocityScale;const m=Math.sqrt(p*p+d*d);let g,y;h.push({x:c,y:u,t:f,speed:m});for(let r=0;r<e.verticesPerLine;r++){let[r,o]=t(c,u);r*=e.velocityScale,o*=e.velocityScale;const p=Math.sqrt(r*r+o*o);if(p<e.minSpeedThreshold)return h;const d=r/p,m=o/p;if(c+=d*e.segmentLength,u+=m*e.segmentLength,f+=e.segmentLength/p,Math.acos(d*g+m*y)>e.maxTurnAngle)return h;if(e.mergeLines){const e=Math.round(c*l),t=Math.round(u*l);if(e<0||e>s-1||t<0||t>a-1)return h;const r=i[t*s+e];if(-1!==r&&r!==n)return h;i[t*s+e]=n}h.push({x:c,y:u,t:f,speed:p}),g=d,y=m}return h}function h(e,t,r,o){const n=[],s=new i.Z,a=1/Math.max(e.lineCollisionWidth,1),h=Math.round(r*a),c=Math.round(o*a),u=new Int32Array(h*c);for(let e=0;e<u.length;e++)u[e]=-1;const f=[];for(let t=0;t<o;t+=e.lineSpacing)for(let o=0;o<r;o+=e.lineSpacing)f.push({x:o,y:t,sort:s.getFloat()});f.sort(((e,t)=>e.sort-t.sort));for(const{x:r,y:o}of f)if(s.getFloat()<e.density){const i=l(e,t,r,o,n.length,u,h,c,a);if(i.length<2)continue;n.push(i)}return n}}}]);
|