@arcgis/core 5.1.0-next.71 → 5.1.0-next.72
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/PopupTemplate.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/003fd7745966fe03510c.js +1 -0
- package/assets/esri/core/workers/chunks/00bae4b7e179336e0362.js +1 -0
- package/assets/esri/core/workers/chunks/{36031cb53c486630f3c9.js → 026d3fa331caec1ea3d2.js} +1 -1
- package/assets/esri/core/workers/chunks/027c3ea756db68e51f0a.js +1 -0
- package/assets/esri/core/workers/chunks/{c06d021180418f2014de.js → 02876e434dc91c42b2f4.js} +1 -1
- package/assets/esri/core/workers/chunks/041c372e98a6fba90b36.js +1 -0
- package/assets/esri/core/workers/chunks/{a5a46d0a0831497cf1b4.js → 0783890816bac45277b9.js} +1 -1
- package/assets/esri/core/workers/chunks/07aac6245a0d1adbb2d4.js +1 -0
- package/assets/esri/core/workers/chunks/0839da55707f7c4cf780.js +1 -0
- package/assets/esri/core/workers/chunks/0c00e5e4bd18467bcecd.js +1 -0
- package/assets/esri/core/workers/chunks/{d69110ec4078c583a05e.js → 0d96e39380fd84cea9ba.js} +1 -1
- package/assets/esri/core/workers/chunks/0dad0bca8d58b2c63d22.js +1 -0
- package/assets/esri/core/workers/chunks/0ef93722524620023f69.js +1 -0
- package/assets/esri/core/workers/chunks/127cd8fee3717a473fc5.js +1 -0
- package/assets/esri/core/workers/chunks/1286f41f245ef22b3a26.js +1 -0
- package/assets/esri/core/workers/chunks/161d60fdac2013c15543.js +1 -0
- package/assets/esri/core/workers/chunks/1661684357912726a72a.js +1 -0
- package/assets/esri/core/workers/chunks/168de44a789d1cecc1f8.js +1 -0
- package/assets/esri/core/workers/chunks/1961b59756933e0a82f2.js +1 -0
- package/assets/esri/core/workers/chunks/1d9d7915cf7449e5d468.js +1 -0
- package/assets/esri/core/workers/chunks/1f85646936200a399c15.js +1 -0
- package/assets/esri/core/workers/chunks/{deb8a0b306d7b9c86b97.js → 2171aaa147aa4d9fc5b5.js} +1 -1
- package/assets/esri/core/workers/chunks/235cb82952a18ff8d206.js +1 -0
- package/assets/esri/core/workers/chunks/260d4571722cb1ff1366.js +1 -0
- package/assets/esri/core/workers/chunks/{3e972ae291df1844017d.js → 266ba61b72a278d93a26.js} +1 -1
- package/assets/esri/core/workers/chunks/27b80c386cebadcaca3c.js +1 -0
- package/assets/esri/core/workers/chunks/29d3890a5a43d934067a.js +1 -0
- package/assets/esri/core/workers/chunks/{333a0038d782d8a34d58.js → 2abf124e2956e4f76688.js} +1 -1
- package/assets/esri/core/workers/chunks/2f17438d215bea3ce70f.js +1 -0
- package/assets/esri/core/workers/chunks/{f6d5dd2eef0d9918096e.js → 30e710ec4d22c43d4e7e.js} +1 -1
- package/assets/esri/core/workers/chunks/356cb86606b8c674f947.js +1 -0
- package/assets/esri/core/workers/chunks/398e0dd2bc7e1ab84831.js +1 -0
- package/assets/esri/core/workers/chunks/3b1052aa30af3f6186cc.js +1 -0
- package/assets/esri/core/workers/chunks/3bbf684ee2484eb44c9f.js +1 -0
- package/assets/esri/core/workers/chunks/3cd9bd20e75ba4d5b294.js +1 -0
- package/assets/esri/core/workers/chunks/3e87e3ad857d72f6ecbb.js +1 -0
- package/assets/esri/core/workers/chunks/{7cb6d8f7eaf762279632.js → 3ea5a18b264628dc37f0.js} +1 -1
- package/assets/esri/core/workers/chunks/41809c16544ec25120fa.js +1 -0
- package/assets/esri/core/workers/chunks/41913575dd45c65d645e.js +1 -0
- package/assets/esri/core/workers/chunks/42e483fde18f12da32a6.js +1 -0
- package/assets/esri/core/workers/chunks/43ab44d37bc0ea97ef98.js +1 -0
- package/assets/esri/core/workers/chunks/46e622857ba92a72a317.js +1 -0
- package/assets/esri/core/workers/chunks/47f2113357b2aa4f4f37.js +1 -0
- package/assets/esri/core/workers/chunks/488ed9584b527ec47be3.js +1 -0
- package/assets/esri/core/workers/chunks/4ad32580e0c0699fde1f.js +1 -0
- package/assets/esri/core/workers/chunks/4d0f793dee4ad919221b.js +1 -0
- package/assets/esri/core/workers/chunks/4eed175277eb0df3c821.js +1 -0
- package/assets/esri/core/workers/chunks/{916a8f3eed1fafdc7242.js → 54d07eadf113f0e4e506.js} +1 -1
- package/assets/esri/core/workers/chunks/54ed37ec9682ea739deb.js +1 -0
- package/assets/esri/core/workers/chunks/{9187d1caca1fd2d713e0.js → 55369c5bd65bcaf78da1.js} +1 -1
- package/assets/esri/core/workers/chunks/56fd3da911c2c4511e5d.js +1 -0
- package/assets/esri/core/workers/chunks/59592bb25f226865e88a.js +1 -0
- package/assets/esri/core/workers/chunks/{e77d958cb62536b8eebc.js → 5a4d7ba6dc1d4b41d80d.js} +1 -1
- package/assets/esri/core/workers/chunks/5d55b4449bcb24cd72b6.js +1 -0
- package/assets/esri/core/workers/chunks/5d8fe41a3c06ddb4094b.js +1 -0
- package/assets/esri/core/workers/chunks/{fe68c28d3c61f116ff23.js → 5ef37f37e405b3bb5450.js} +1 -1
- package/assets/esri/core/workers/chunks/608d707fd9d9f9088473.js +1 -0
- package/assets/esri/core/workers/chunks/{c92352b0e39576ca317a.js → 61ef14e42bc09b787d89.js} +1 -1
- package/assets/esri/core/workers/chunks/656d6963e8f837fbf28f.js +1 -0
- package/assets/esri/core/workers/chunks/68b47a5a50e0b5fffca2.js +1 -0
- package/assets/esri/core/workers/chunks/{a5afcd633b32e6ee31a7.js → 6a0352d20596ca3f4b64.js} +1 -1
- package/assets/esri/core/workers/chunks/6c7ff968bd4fc816442d.js +1 -0
- package/assets/esri/core/workers/chunks/6e526c06825ecc6c99c0.js +1 -0
- package/assets/esri/core/workers/chunks/6ea8b0d68881d16a2432.js +1 -0
- package/assets/esri/core/workers/chunks/6f9ea461c268c421f9c9.js +1 -0
- package/assets/esri/core/workers/chunks/7027d93dc5a4595d70c6.js +1 -0
- package/assets/esri/core/workers/chunks/70b35b2446558d5280e3.js +1 -0
- package/assets/esri/core/workers/chunks/7349cb45a93e6916f115.js +1 -0
- package/assets/esri/core/workers/chunks/751609831b283903ba48.js +1 -0
- package/assets/esri/core/workers/chunks/76edaeaf8fe344bb77a8.js +1 -0
- package/assets/esri/core/workers/chunks/76fe5b821d6b54db5721.js +1 -0
- package/assets/esri/core/workers/chunks/81d30c9062ad0120a863.js +1 -0
- package/assets/esri/core/workers/chunks/84772b023d04e415f17f.js +1 -0
- package/assets/esri/core/workers/chunks/{123e920e4460124ec3bb.js → 88b480a1d1fb01778798.js} +9 -30
- package/assets/esri/core/workers/chunks/88c5f7c712c6b89b5109.js +1 -0
- package/assets/esri/core/workers/chunks/88e469b82d2594f23649.js +1 -0
- package/assets/esri/core/workers/chunks/8a14e3db28c403b046cf.js +1 -0
- package/assets/esri/core/workers/chunks/8a664451845a47048859.js +1 -0
- package/assets/esri/core/workers/chunks/8a8242e7cc7e6a9e7876.js +1 -0
- package/assets/esri/core/workers/chunks/{4d51261d6131c07402cd.js → 8acee3fba488f202f82f.js} +1 -1
- package/assets/esri/core/workers/chunks/91a0227a64a944af3286.js +596 -0
- package/assets/esri/core/workers/chunks/9444ed8ea117861ae89b.js +1 -0
- package/assets/esri/core/workers/chunks/96bba4d93a32ad34a1c8.js +1 -0
- package/assets/esri/core/workers/chunks/9a38fd68b02b617c45d3.js +1 -0
- package/assets/esri/core/workers/chunks/9d434360dfce1e49b7b9.js +1 -0
- package/assets/esri/core/workers/chunks/9f4b97204def91567e3c.js +1 -0
- package/assets/esri/core/workers/chunks/a37c28e3c4a2be9fd1d5.js +1 -0
- package/assets/esri/core/workers/chunks/{58b3c888c8bfedbe6443.js → a37fc886227365f7ecd5.js} +1 -1
- package/assets/esri/core/workers/chunks/a8d7f59927bdad564141.js +1 -0
- package/assets/esri/core/workers/chunks/{f89976ec97938bf86996.js → abc06d10c7ac8ba5b0e4.js} +1 -1
- package/assets/esri/core/workers/chunks/abe22ae8ee0dcc9efbb7.js +1 -0
- package/assets/esri/core/workers/chunks/{fef5dc19736f12dfa99a.js → af5db0372d526e592fcc.js} +1 -1
- package/assets/esri/core/workers/chunks/{eb3cdc4ff45243fc3cc5.js → b475f5492c6e3fd4cca8.js} +1 -1
- package/assets/esri/core/workers/chunks/b495f14d90abe8d1a558.js +1 -0
- package/assets/esri/core/workers/chunks/{6ac5ec3ecbca8860338b.js → b54b7cc6b23a70fed700.js} +1 -1
- package/assets/esri/core/workers/chunks/b702279c48f3009f6dd8.js +1 -0
- package/assets/esri/core/workers/chunks/b79058f5bda6fcac22f8.js +1 -0
- package/assets/esri/core/workers/chunks/b801631b58e6fc6cec8a.js +1 -0
- package/assets/esri/core/workers/chunks/{31071a43e2c03984d619.js → b92794def31592a6a25f.js} +1 -1
- package/assets/esri/core/workers/chunks/be1d6a571f76933dfbb0.js +1 -0
- package/assets/esri/core/workers/chunks/bea70be8e38b8c83ccd2.js +1 -0
- package/assets/esri/core/workers/chunks/bfcdc5c315131aae34d8.js +1 -0
- package/assets/esri/core/workers/chunks/c0f624a2ca0d07ef8f8c.js +1 -0
- package/assets/esri/core/workers/chunks/c1838822b096d5f36a8b.js +1 -0
- package/assets/esri/core/workers/chunks/c3381b9a36299210ee47.js +1 -0
- package/assets/esri/core/workers/chunks/{c2882a9e67124b7c18be.js → c503c79ba5761f7abbeb.js} +1 -1
- package/assets/esri/core/workers/chunks/cb5e4b9b4a59c2622eb5.js +1 -0
- package/assets/esri/core/workers/chunks/d201a5dff18a5bb467ab.js +1 -0
- package/assets/esri/core/workers/chunks/{3b7cda16e656db450f11.js → d2aa75816e84b1e7fd25.js} +1 -1
- package/assets/esri/core/workers/chunks/{4d8670f6fa8952b7bab6.js → d950d5c2844206502ff0.js} +1 -1
- package/assets/esri/core/workers/chunks/db3c484bfa607dec6050.js +1 -0
- package/assets/esri/core/workers/chunks/db588bf3256e95c977b7.js +1 -0
- package/assets/esri/core/workers/chunks/{967758a05170545cd371.js → dcc719e15b2e0cce1f3b.js} +1 -1
- package/assets/esri/core/workers/chunks/{6bb090f3e5c18604cb39.js → dd5b362bded458afa2d6.js} +1 -1
- package/assets/esri/core/workers/chunks/{e957d52cb9643961a843.js → de583214195eff13cb00.js} +58 -45
- package/assets/esri/core/workers/chunks/dec6d41d614105e6fd93.js +1 -0
- package/assets/esri/core/workers/chunks/dfdd474fddcd1d6091ce.js +1 -0
- package/assets/esri/core/workers/chunks/e235ea4293d5d463acfb.js +1 -0
- package/assets/esri/core/workers/chunks/e43486113aaf72ac4dc1.js +1 -0
- package/assets/esri/core/workers/chunks/ea4c3393c5757e309a71.js +1 -0
- package/assets/esri/core/workers/chunks/ed216ddeb7f59f510bd0.js +1 -0
- package/assets/esri/core/workers/chunks/ef8886dff54063928bcb.js +1 -0
- package/assets/esri/core/workers/chunks/{231f502cd15f30d12be2.js → f1673e723b336204ad77.js} +1 -1
- package/assets/esri/core/workers/chunks/f5223ffb3be548c9b0a1.js +1 -0
- package/assets/esri/core/workers/chunks/fae147d03ed723ab234d.js +1 -0
- package/chunks/CheckerBoard.glsl.js +3 -5
- package/chunks/ColorMaterial.glsl.js +4 -6
- package/chunks/ComponentShader.glsl.js +42 -44
- package/chunks/DefaultMaterial.glsl.js +21 -23
- package/chunks/EdgeShader.glsl.js +9 -11
- package/chunks/GaussianSplat.glsl.js +8 -8
- package/chunks/ImageMaterial.glsl.js +5 -7
- package/chunks/LineCallout.glsl.js +9 -12
- package/chunks/LineMarker.glsl.js +24 -26
- package/chunks/Path.glsl.js +15 -17
- package/chunks/Pattern.glsl.js +25 -27
- package/chunks/RealisticTree.glsl.js +11 -13
- package/chunks/RibbonLine.glsl.js +42 -45
- package/chunks/ShadedColorMaterial.glsl.js +8 -9
- package/chunks/Water.glsl.js +18 -20
- package/config.js +1 -1
- package/kernel.js +1 -1
- package/layers/VoxelWasmPerSceneView.js +1 -1
- package/layers/graphics/FlatFeature.js +1 -1
- package/layers/graphics/FlatFeatureSet.js +1 -1
- package/layers/graphics/OptimizedFeature.js +1 -1
- package/layers/graphics/data/AttributesBuilder.js +1 -1
- package/layers/graphics/data/QueryEngineResult.js +1 -1
- package/layers/graphics/data/flatFeatureQueryEngineAdapter.js +1 -1
- package/layers/graphics/data/optimizedFeatureQueryEngineAdapter.js +1 -1
- package/layers/graphics/featureConversionUtils.js +1 -1
- package/layers/support/LabelClass.js +1 -1
- package/layers/support/featureLayerUtils.js +1 -1
- package/layers/support/labelUtils.js +1 -1
- package/layers/video/videoUtils.js +1 -1
- package/package.json +1 -1
- package/popupTemplateUtils.js +2 -0
- package/renderers/visualVariables/SizeVariable.js +1 -1
- package/renderers/visualVariables/support/sizeVariableUtils.js +1 -1
- package/rest/query/operations/pbfFeatureServiceParser.js +1 -1
- package/rest/support/OutDistance.js +2 -0
- package/rest/support/Query.js +1 -1
- package/smartMapping/statistics/support/utils.js +1 -1
- package/smartMapping/support/adapters/InMemoryLayerAdapter.js +1 -1
- package/support/arcadeUtils.js +1 -1
- package/support/revision.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
- package/views/2d/layers/features/layerAdapters/CatalogFootprintLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/FeatureLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/InMemoryLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/KnowledgeGraphSublayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/OGCFeatureLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/OrientedImageryLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/SubtypeGroupLayerAdapter.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReaderPBF.js +1 -1
- package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
- package/views/3d/layers/IntegratedMeshNormals.js +1 -1
- package/views/3d/layers/StreamLayerView3D.js +1 -1
- package/views/3d/layers/graphics/featureExpressionInfoUtils.js +1 -1
- package/views/3d/state/ViewStateManager.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/terrain/TerrainRenderer.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterialGlobalParameters.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterialRepository.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentShader.glsl.js +1 -1
- package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js +20 -32
- package/views/3d/webgl-engine/core/shaderLibrary/shading/VisualVariables.glsl.js +5 -3
- package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/RenderPluginManager.js +1 -1
- package/views/3d/webgl-engine/effects/geometry/RenderOccludedRenderNode.js +1 -1
- package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
- package/views/3d/webgl-engine/lib/Compositor.js +1 -1
- package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +1 -1
- package/views/3d/webgl-engine/lib/RenderFeature.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/SortedRenderGeometryRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/Viewshed.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeShader.glsl.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeShaderTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/materials/CheckerBoardMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/HeatmapDensityMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/ImageMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/Path.glsl.js +1 -1
- package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PathTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/SlicePlaneMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/Water.glsl.js +1 -1
- package/views/3d/webgl-engine/materials/WaterMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/WaterTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/CheckerBoard.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/CheckerBoardTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/ColorMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/ColorMaterialTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterialTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/GaussianSplat.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/GaussianSplatTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/HUDMaterialTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/ImageMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/ImageMaterialTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/LineCallout.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/LineCalloutTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/LineCalloutTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/LineMarker.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/LineMarkerTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/LineMarkerTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/Pattern.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/PatternTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/RealisticTree.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLineTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/ShadedColorMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/ShadedColorMaterialTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/statistics/RendererPerformanceInfo.js +1 -1
- package/views/VideoView.js +1 -1
- package/views/layers/FeatureLikeLayerView.js +1 -1
- package/views/video/VideoOperationalDataView.js +1 -1
- package/views/webgl/ShaderBuilder.js +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.d.ts +19 -3
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/FeatureTable/Grid/GridViewModel.js +1 -1
- package/widgets/FeatureTable/VisibleElements.d.ts +15 -1
- package/widgets/FeatureTable/VisibleElements.js +1 -1
- package/widgets/FeatureTable/support/FeatureStore.js +1 -1
- package/widgets/FeatureTable.d.ts +15 -1
- package/widgets/FeatureTable.js +1 -1
- package/widgets/Search/SearchViewModel.js +1 -1
- package/assets/esri/core/workers/chunks/09ecb36e44096e577af8.js +0 -1
- package/assets/esri/core/workers/chunks/0ca06ea649bbdb93ff49.js +0 -1
- package/assets/esri/core/workers/chunks/10308c9f3f0d709d96bc.js +0 -1
- package/assets/esri/core/workers/chunks/141edf5ed890105a079b.js +0 -1
- package/assets/esri/core/workers/chunks/160b9a76b75875507c86.js +0 -1
- package/assets/esri/core/workers/chunks/16dfdee05704df249e95.js +0 -1
- package/assets/esri/core/workers/chunks/17ef955dc48e329aa184.js +0 -1
- package/assets/esri/core/workers/chunks/18001536ed345955121a.js +0 -1
- package/assets/esri/core/workers/chunks/20e715e3aeb1c3265901.js +0 -1
- package/assets/esri/core/workers/chunks/238f51d0b36f998017b8.js +0 -1
- package/assets/esri/core/workers/chunks/2cee6d751c5e73fe09d4.js +0 -1
- package/assets/esri/core/workers/chunks/314140e2e9b813191907.js +0 -1
- package/assets/esri/core/workers/chunks/3158a3487d3e8a61b680.js +0 -1
- package/assets/esri/core/workers/chunks/3b1446286a9b87f34761.js +0 -1
- package/assets/esri/core/workers/chunks/3f7fd58ee7d71989fc83.js +0 -1
- package/assets/esri/core/workers/chunks/41396724040180d2537f.js +0 -1
- package/assets/esri/core/workers/chunks/416e031bafc0189544fa.js +0 -1
- package/assets/esri/core/workers/chunks/55ee78923987ed17ea8c.js +0 -1
- package/assets/esri/core/workers/chunks/56c7d7c7217557375fb6.js +0 -1
- package/assets/esri/core/workers/chunks/5a1d975b3e9e6b7eff67.js +0 -1
- package/assets/esri/core/workers/chunks/5f6942ac94acd7842926.js +0 -1
- package/assets/esri/core/workers/chunks/6118706b9a038e9a06b8.js +0 -1
- package/assets/esri/core/workers/chunks/6d15229b3fa84a7acf4d.js +0 -599
- package/assets/esri/core/workers/chunks/7314c0131403cac84ad7.js +0 -1
- package/assets/esri/core/workers/chunks/73545bb13c70f6a347a4.js +0 -1
- package/assets/esri/core/workers/chunks/73a045061e69a22b6869.js +0 -1
- package/assets/esri/core/workers/chunks/75669912cddcb5db52c8.js +0 -1
- package/assets/esri/core/workers/chunks/7ca32806e47be15109a4.js +0 -1
- package/assets/esri/core/workers/chunks/7d6ed65bbcd279448191.js +0 -1
- package/assets/esri/core/workers/chunks/81f149e45c79b9b086fb.js +0 -1
- package/assets/esri/core/workers/chunks/84fa25f66a6949290221.js +0 -1
- package/assets/esri/core/workers/chunks/852aabbf671d2ca9cd33.js +0 -1
- package/assets/esri/core/workers/chunks/854fe80272b59fafc2e9.js +0 -1
- package/assets/esri/core/workers/chunks/861817be5e050e9522ab.js +0 -1
- package/assets/esri/core/workers/chunks/89345a682dea60ef1643.js +0 -1
- package/assets/esri/core/workers/chunks/8985402c328b90af5724.js +0 -1
- package/assets/esri/core/workers/chunks/89fdf9ad10ca8fbb08a5.js +0 -1
- package/assets/esri/core/workers/chunks/8b094330323d9b16fb5d.js +0 -1
- package/assets/esri/core/workers/chunks/90aed8c4b266832f84ca.js +0 -1
- package/assets/esri/core/workers/chunks/9776c2db337222ceceef.js +0 -1
- package/assets/esri/core/workers/chunks/990853e9df38fdfc58b5.js +0 -1
- package/assets/esri/core/workers/chunks/9a21ba0c45a96b94c05e.js +0 -1
- package/assets/esri/core/workers/chunks/9a235c92f21df2c17aa8.js +0 -1
- package/assets/esri/core/workers/chunks/9b56162ac67c992193ce.js +0 -1
- package/assets/esri/core/workers/chunks/9f1f5fb648302c43ad12.js +0 -1
- package/assets/esri/core/workers/chunks/a1e6187c239fdc7553ed.js +0 -1
- package/assets/esri/core/workers/chunks/a4b6fdbc995be03d2afb.js +0 -1
- package/assets/esri/core/workers/chunks/a760be8fa6c6ea6b745c.js +0 -1
- package/assets/esri/core/workers/chunks/a8782286ce3c0d6c20e6.js +0 -1
- package/assets/esri/core/workers/chunks/a96692514dcaa50340dd.js +0 -1
- package/assets/esri/core/workers/chunks/a994a3c912a33b2f4100.js +0 -1
- package/assets/esri/core/workers/chunks/aa7aaeae31ddb259e55e.js +0 -1
- package/assets/esri/core/workers/chunks/abcc5fb71be2bd94878c.js +0 -1
- package/assets/esri/core/workers/chunks/aecb05df4ad1454f5435.js +0 -1
- package/assets/esri/core/workers/chunks/aecb105db7cec2c9c4c5.js +0 -1
- package/assets/esri/core/workers/chunks/b19f33e026a2a43b17c4.js +0 -1
- package/assets/esri/core/workers/chunks/b3950d5f1f3352521504.js +0 -1
- package/assets/esri/core/workers/chunks/b3f0600729227b458a75.js +0 -1
- package/assets/esri/core/workers/chunks/b5922991d2f450e6a9d9.js +0 -1
- package/assets/esri/core/workers/chunks/b8643976a7f984552d94.js +0 -1
- package/assets/esri/core/workers/chunks/b8a11d32a4847513619b.js +0 -1
- package/assets/esri/core/workers/chunks/b8acb6c2538053c01cc6.js +0 -1
- package/assets/esri/core/workers/chunks/ba4259aa050169c1d523.js +0 -1
- package/assets/esri/core/workers/chunks/bbaf1d9835671c0165ca.js +0 -1
- package/assets/esri/core/workers/chunks/bcefdf9753d9d2f6f1be.js +0 -1
- package/assets/esri/core/workers/chunks/c178e2cfc34603661b1d.js +0 -1
- package/assets/esri/core/workers/chunks/c3e80c0e29ac6a7a6f80.js +0 -1
- package/assets/esri/core/workers/chunks/c79827f879d1d58d3f1b.js +0 -1
- package/assets/esri/core/workers/chunks/c92b40a532e708e506cc.js +0 -1
- package/assets/esri/core/workers/chunks/cb903ccbce87172a0757.js +0 -1
- package/assets/esri/core/workers/chunks/cda2e445eb2ac269abdf.js +0 -1
- package/assets/esri/core/workers/chunks/ce44e172e2847fd8df14.js +0 -1
- package/assets/esri/core/workers/chunks/cff7e921649aef715c78.js +0 -1
- package/assets/esri/core/workers/chunks/d315098b038a96084ff5.js +0 -1
- package/assets/esri/core/workers/chunks/d8c0d18f0132872decd3.js +0 -1
- package/assets/esri/core/workers/chunks/db0061a6d5bf454cc509.js +0 -1
- package/assets/esri/core/workers/chunks/dcfafcf4386f2940d000.js +0 -1
- package/assets/esri/core/workers/chunks/e2b034c391c603f7f825.js +0 -1
- package/assets/esri/core/workers/chunks/e3a73d9acebccd3ba49b.js +0 -1
- package/assets/esri/core/workers/chunks/e67bdd8bf38ebe89a344.js +0 -1
- package/assets/esri/core/workers/chunks/e797d45eba0884dc7e6f.js +0 -1
- package/assets/esri/core/workers/chunks/e81a3da05fcff97b4752.js +0 -1
- package/assets/esri/core/workers/chunks/e9dd60d0220036545ebb.js +0 -1
- package/assets/esri/core/workers/chunks/ea6d3b7c7d720aa7bc94.js +0 -1
- package/assets/esri/core/workers/chunks/eb9982bc866976fef960.js +0 -1
- package/assets/esri/core/workers/chunks/ec4669a0edeca94710e0.js +0 -1
- package/assets/esri/core/workers/chunks/ef9d74f8d5a502fda809.js +0 -1
- package/assets/esri/core/workers/chunks/f09446b9ff937a84d6d3.js +0 -1
- package/assets/esri/core/workers/chunks/f0bc5e8e44d53b73d431.js +0 -1
- package/assets/esri/core/workers/chunks/f653970d983f17fb764b.js +0 -1
- package/assets/esri/core/workers/chunks/f9edc685099f51363f41.js +0 -1
- package/assets/esri/core/workers/chunks/fa687ba2d66fcc2501da.js +0 -1
- package/assets/esri/core/workers/chunks/fb9a889ec9fd23739a14.js +0 -1
- package/assets/esri/core/workers/chunks/fe1b67ab7748a3aef231.js +0 -1
- package/chunks/HUDCompositing.glsl.js +0 -2
- package/views/3d/webgl-engine/core/shaderLibrary/shading/MultipassGeometryTest.glsl.js +0 -5
- package/views/3d/webgl-engine/core/shaderLibrary/shading/TerrainDepthTest.glsl.js +0 -8
- package/views/3d/webgl-engine/effects/fboFormatUtils.js +0 -2
- package/views/3d/webgl-engine/shaders/HUDCompositing.glsl.js +0 -2
- package/views/3d/webgl-engine/shaders/HUDCompositingTechnique.js +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[837,1948,6061],{61691(t,e,s){s.d(e,{G:()=>r});class r{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},64523(t,e,s){s.d(e,{O:()=>l});var r=s(5482),n=s(61691),i=s(55537),a=s(88885),o=s(95213),h=s(83661),u=s(5247);class l{getOperatorType(){return 10204}supportsCurves(){return!0}accelerateGeometry(t,e,s){return!1}canAccelerateGeometry(t){return!1}executeMany(t,e,s,r){return new c(t,e,s,r)}execute(t,e,s,r){return t||(0,i.a)("null param is not allowed."),new c(null,e,s,r).generalize(t)}}class c extends n.G{constructor(t,e,s,r){super(),this.m_pline=null,this.m_point=new o.P,this.m_stack=[],this.m_resultstack=[],this.m_callCount=0,this.m_progressTracker=r,this.m_geoms=t,this.m_maxDeviation=e,this.m_bRemoveDegenerateParts=s}tock(){return!0}getRank(){return 1}next(){const t=this.m_geoms.next();return null===t?null:((0,i.c)(t),this.generalize(t))}getGeometryID(){return this.m_geoms.getGeometryID()}generalize(t){const e=t.getGeometryType();if((0,i.e)(e))return t;if(e===i.G.enumEnvelope){const e=new a.P({vd:t.getDescription()});return e.addEnvelope(t,!1),this.generalize(e)}if((0,i.f)(e)){const e=new a.a({vd:t.getDescription()});return e.addSegment(t,!0),this.generalize(e)}if((0,i.h)(e)||(0,i.t)(""),t.isEmpty()||this.m_maxDeviation<=0)return t;const s=(new u.O).execute(t,0,.05*this.m_maxDeviation,0,this.m_progressTracker);t.hasNonLinearSegments()&&(this.m_maxDeviation*=.95);const n=s,o=t.createInstance();o.getGeometryType()===i.G.enumPolygon&&o.setFillRule(t.getFillRule()),this.m_xy=n.getAttributeStreamRef(0);{const t={stack:[],error:void 0,hasError:!1};try{const e=new a.L;this.m_pline=e,(0,r.mS)(t,(0,h.h)(()=>{this.m_pline=null},!1),!1);for(let t=0,e=n.getPathCount();t<e;t++)this.generalizePath(n.getImpl(),t,o.getImpl())}catch(e){t.error=e,t.hasError=!0}finally{(0,r.hk)(t)}}return this.m_resultstack.length=0,this.m_stack.length=0,o}generalizePath(t,e,s){if(t.getPathSize(e)<2)return;this.m_resultstack.length=0,this.m_stack.length=0;const r=t.getPathStart(e),n=t.getPathEnd(e)-1,i=t.isClosedPath(e),a=t.isClosedPathInXYPlane(e);let o=0,u=-1;this.m_stack.push(i?r:n),this.m_stack.push(r);let l=!1,c=!1;for(!this.m_bRemoveDegenerateParts&&a&&(l=!0,c=!0);this.m_stack.length>1;){const e=this.m_stack.at(-1);this.m_stack.pop();const s=this.m_stack.at(-1);let r=t.getXY(e);this.m_pline.setStartXY(r),r=t.getXY(s),this.m_pline.setEndXY(r);const i=[Number.NaN];let a=this.findGreatestDistance(e,s,n,i);a>=0&&(l?l=!1:(c&&i[0]>o&&(o=i[0],u=a),i[0]<=this.m_maxDeviation&&(a=-1))),a>=0?(this.m_stack.push(a),this.m_stack.push(e)):this.m_resultstack.push(e)}i||this.m_resultstack.push(this.m_stack[0]);const m=this.m_resultstack.length;if(m===t.getPathSize(e)&&m===this.m_stack.length)s.addPath(t,e,!0);else if(this.m_resultstack.length>0){if(this.m_bRemoveDegenerateParts&&this.m_resultstack.length<=2){if(i||1===this.m_resultstack.length)return;if(h.P.distance(t.getXY(this.m_resultstack[0]),t.getXY(this.m_resultstack[1]))<=this.m_maxDeviation)return}if(c&&u>=0&&o<=this.m_maxDeviation){const t=this.m_resultstack.at(-1)>u;this.m_resultstack.push(u),t&&(this.m_resultstack[this.m_resultstack.length-2]=(0,h.c)(this.m_resultstack[this.m_resultstack.length-1],this.m_resultstack[this.m_resultstack.length-1]=this.m_resultstack[this.m_resultstack.length-2]))}for(let e=0,r=this.m_resultstack.length;e<r;e++)t.getPointByVal(this.m_resultstack[e],this.m_point),0===e?s.startPathPoint(this.m_point):s.lineToPoint(this.m_point);if(i){for(let t=this.m_resultstack.length;t<3;t++)s.lineToPoint(this.m_point);s.closePathWithLine()}}}findGreatestDistance(t,e,s,r){let n=e-1;e<=t&&(n=s);let i=-1,a=0;const o=new h.P;for(let e=t+1;e<=n;e++){this.m_xy.queryPoint2D(2*e,o);const t=o.x,s=o.y,r=this.m_pline.getClosestCoordinate(o,!1);o.assign(this.m_pline.getCoord2D(r)),o.x-=t,o.y-=s;const n=o.length();n>a&&(i=e,a=n),this.m_callCount++}return r[0]=a,i}}},76061(t,e,s){s.d(e,{S:()=>n});var r=s(61691);class n extends r.G{constructor(t){super(),this.m_iGeom=-1,this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},87992(t,e,s){s.d(e,{JR:()=>k,ME:()=>M,MY:()=>S,NO:()=>C,Nh:()=>P,V2:()=>F,_s:()=>b,e6:()=>I,gh:()=>E,tr:()=>V,uX:()=>x});var r=s(5482),n=s(69397),i=s(16930),a=(s(70328),s(19419)),o=s(60408),h=s(21325),u=s(513),l=s(50954),c=s(79567),m=s(52006),g=s(49663),f=s(46068),p=s(92722);class x{constructor({type:t,spatialReference:e,vertexCount:s,vertexXY:r,vertexZ:n,vertexM:i,partCount:a,partOffsets:o,partFlags:h,segmentFlags:u,segmentIndices:l,segmentParams:c,segmentCountArc:m,segmentCountBezier:g}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=s,this.vertexXY=r,this.vertexZ=n,this.vertexM=i,this.partCount=a,this.partOffsets=o,this.partFlags=h,this.segmentFlags=u,this.segmentIndices=l,this.segmentParams=c,this.segmentCountArc=m,this.segmentCountBezier=g}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:s}=this;return t&&t-e-s}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return null!=this.segmentFlags}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function t(t){return t?n.Ul+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){const{type:t,vertexCount:e,partCount:s,hasZ:r,hasM:n,segmentCountArc:i,segmentCountBezier:a}=this,o=F(t,e,s,r,n,this.hasCurves(),i,a);o.spatialReference=this.spatialReference;const{vertexXY:h,vertexZ:u,vertexM:l}=this;if(o.vertexXY.set(h.subarray(0,2*e),0),o.vertexZ?.set(u.subarray(0,e),0),o.vertexM?.set(l.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;o.partFlags.set(e.subarray(0,s+1)),o.partOffsets.set(t.subarray(0,s+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:s,segmentParams:r,segmentParamCount:n}=this;o.segmentFlags.set(t.subarray(0,e),0),o.segmentIndices.set(s.subarray(0,e),0),o.segmentParams.set(r.subarray(0,n),0)}return o}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,h.aI)(this.spatialReference,t.spatialReference))return!1;if(this.vertexCount!==t.vertexCount||this.partCount!==t.partCount)return!1;if(this.hasZ!==t.hasZ||this.hasM!==t.hasM)return!1;if(this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;const s=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,s)=>Math.abs(t-s)>e||isNaN(t)!==isNaN(s);for(let e=0;e<this.vertexCount;++e)if(s(this.vertexXY[2*e],t.vertexXY[2*e])||s(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(s(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(s(this.vertexM[e],t.vertexM[e]))return!1;for(let e=0;e<this.partCount;++e)if(this.partFlags[e]!==t.partFlags[e]||this.partOffsets[e]!==t.partOffsets[e])return!1;if(this.hasCurves()){for(let e=0;e<this.vertexCount;++e)if(this.segmentFlags[e]!==t.segmentFlags[e]||this.segmentIndices[e]!==t.segmentIndices[e])return!1;for(let e=0;e<this.segmentParamCount;++e)if(s(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new v(this):[][Symbol.iterator]()}}class v{constructor(t){this.geometry=t,this.value=new d(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class d{constructor(t){this.geometry=t,this.index=-1,this._readVertex=w(t),this._segments=new y(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class y{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new _(t.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const t=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=t&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:t}=this._part,e=this._part.geometry.partOffsets;this._partStart=e[t],this._partEnd=e[t+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class _{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=w(t)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const t=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===t)return this.end;const e=this.geometry.segmentParams;let s=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[s++],r=e[s++],n=e[s++],i=e[s++];return{b:[this.end,[t,r],[n,i]]}}const r=e[s++],n=e[s++],i=e[s++],a=e[s++],o=e[s++],h=e[s++];s++,s++;const u=e[s++],l=e[s++];if(!Boolean(4&r)&&1===i)return{c:[this.end,[u,l]]};const c=2&r?0:1,m=1&r?0:1;return{a:[this.end,[o,h],c,m,a,n,i]}}}function C(t,e){const s={stack:[],error:void 0,hasError:!1};try{return e??=(0,a.Ie)(),(0,r.mS)(s,new O(t,["vertexZ","vertexM","spatialReference"]),!1),(0,a.bx)(e,function(t){let e;const{vertexCount:s,vertexXY:n,vertexZ:i,vertexM:o}=t,h=R(t);if(t.hasCurves()){const s={stack:[],error:void 0,hasError:!1};try{(0,r.mS)(s,new O(t,["vertexZ","vertexM"]),!1);const n=(0,a.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:s}of e.segments)(0,c.e)(n,t,s),t=(0,m.yP)(s)}const[i,o,u,l]=n;e={xmin:i,ymin:o,xmax:u,ymax:l,spatialReference:h}}catch(t){s.error=t,s.hasError=!0}finally{(0,r.hk)(s)}}else{let t,r,i,a;t=r=1/0,i=a=-1/0;for(let e=0;e<s;++e){const s=n[2*e],o=n[2*e+1];t=Math.min(t,s),i=Math.max(i,s),r=Math.min(r,o),a=Math.max(a,o)}e={xmin:t,ymin:r,xmax:i,ymax:a,spatialReference:h}}if(i){let t=1/0,s=-1/0;for(const e of i)t=Math.min(t,e),s=Math.max(s,e);e.zmin=t,e.zmax=s}if(o){let t=1/0,s=-1/0;for(const e of o)t=Math.min(t,e),s=Math.max(s,e);e.mmin=t,e.mmax=s}return e}(t)),e}catch(t){s.error=t,s.hasError=!0}finally{(0,r.hk)(s)}}function M(t){let e,s,r;if((0,o.fT)(t)){r="point";const{x:n,y:i,z:a,m:o}=t,h=[n,i];null!=a&&h.push(a),null!=o&&h.push(o),s=[[h]],e=1}else(0,o.U9)(t)?(r="multipoint",s=[t.points],e=t.points.length):(0,o.Rg)(t)?(r="polyline",s=t.curvePaths??t.paths,e=s.reduce((t,e)=>t+e.length,0)):(r="polygon",s=t.curveRings??t.rings,e=s.reduce((t,e)=>(0===e.length||(t+=e.length,Y(e[0],(0,m.yP)(e.at(-1)))&&--t),t),0));const n=F(r,e,r.includes("point")?0:s.length,(0,o.Pv)(t),(0,o.W0)(t),(0,m.Ed)(t)),{hasZ:i,hasM:a,vertexXY:h,vertexZ:u,vertexM:l}=n;function c(t){h[2*f]=t[0],h[2*f+1]=t[1],i&&(u[f]=t[2]),a&&(l[f]=t[g]),++f}n.spatialReference=t.spatialReference??void 0;const g=n.hasZ?3:2;let f=0;if(!n.isMultipart()){if(!i&&!a){for(const[t,e]of s[0])h[2*f]=t,h[2*f+1]=e,++f;return n}for(const t of s[0])c(t);return n}const p="polygon"===r,{partOffsets:x}=n;let v=0;if(!n.hasCurves()){for(const t of s){if(x[v++]=f,0===t.length)continue;let e=t.length;if(p&&Y(t[0],t.at(-1))&&--e,i||a)for(let s=0;s<e;++s)c(t[s]);else for(let s=0;s<e;++s){const[e,r]=t[s];h[2*f]=e,h[2*f+1]=r,++f}}return x[v]=f,n}function d(t){const e=y+t;if(e<=(n.segmentParams?.length??0))return;let s=e*X;s=20*Math.ceil(s/20);const r=n.segmentParams;n.segmentParams=new Float64Array(s),null!=r&&n.segmentParams.set(r)}let y=0;for(const t of s){if(n.partOffsets[v++]=f,0===t.length)continue;const e=t[0];let s=e;for(let e=1;e<t.length;++e){const r=t[e];c(s);const i=f-1;(0,m.wY)(r)?(d(10),++n.segmentCountArc,y=b(s,r,n,i,y),s=r.a[0]):(0,m.DA)(r)?(d(10),++n.segmentCountArc,y=A(s,r,n,i,y),s=r.a[0]):(0,m.aO)(r)?(d(10),++n.segmentCountArc,y=I(s,r,n,i,y),s=r.c[0]):(0,m.n1)(r)?(d(4),++n.segmentCountBezier,y=V(0,r,n,i,y),s=r.b[0]):s=r}p&&Y(e,s)||c(s)}return n.partOffsets[v]=f,n}function E(t){const e=w(t),{vertexCount:s,partCount:r,hasZ:n,hasM:i}=t,a=R(t);if("point"===t.type){const[e,s]=t.vertexXY,r=t.vertexZ?.[0],n=t.vertexM?.[0];return{x:e,y:s,z:r,m:n,spatialReference:a}}let o=0;if("multipoint"===t.type){const t=[];for(;o<s;)t.push(e(o++));return{points:t,spatialReference:a,hasZ:n,hasM:i}}const h="polygon"===t.type;if(!t.hasCurves()){const s=new Array;for(let n=0;n<r;++n){const r=t.partOffsets[n+1],i=new Array;for(;o<r;)i.push(e(o++));h&&i.length>0&&i.push(i[0]),s.push(i)}return h?{rings:s,hasZ:n,hasM:i,spatialReference:a}:{paths:s,hasZ:n,hasM:i,spatialReference:a}}const u=new Array;for(const{segments:e,startVertex:s}of t.parts){const t=[s];for(const{curve:s}of e)t.push(s);u.push(t)}return h?{rings:[],curveRings:u,hasZ:n,hasM:i,spatialReference:a}:{paths:[],curvePaths:u,hasZ:n,hasM:i,spatialReference:a}}function P(t,{lengths:e,coords:s,hasZ:r,hasM:n},i){const a=t.includes("point")?0:e.length,o="polygon"===t,h="point"===t?1:e.reduce((t,e)=>t+e,0)-(o?a:0);r??=!1,n??=!1;const u=F(t,h,a,r,n,!1,0,0);if(u.spatialReference=i??void 0,!u.isMultipart()){for(let t=0,e=0;t<h;++t)u.vertexXY[2*t]=s[e++],u.vertexXY[2*t+1]=s[e++],r&&(u.vertexZ[t]=s[e++]),n&&(u.vertexM[t]=s[e++]);return u}const l=2+Number(r)+Number(n);let c=0,m=0;u.partOffsets[0]=0;for(const t of e){const e=u.partOffsets[m],i=e+t-Number(o);u.partOffsets[++m]=i;for(let t=e;t<i;++t)u.vertexXY[2*t]=s[c++],u.vertexXY[2*t+1]=s[c++],r&&(u.vertexZ[t]=s[c++]),n&&(u.vertexM[t]=s[c++]);o&&(c+=l)}return u}function k({type:t,vertexCount:e,vertexXY:s,vertexZ:r,vertexM:n,partCount:i,partOffsets:a,hasZ:o,hasM:h}){const u=new p.A([],[],o,h);i=Math.max(i,1);const l="polygon"===t;let c=0;for(let t=0;t<i;++t){const i=a?.[t+1]??e,m=u.coords.length;for(let t=c;t<i;++t)u.coords.push(s[2*t],s[2*t+1]),o&&u.coords.push(r[t]),h&&u.coords.push(n[t]);if(l){const t=c;u.coords.push(s[2*t],s[2*t+1]),o&&u.coords.push(r[t]),h&&u.coords.push(n[t])}u.lengths.push((u.coords.length-m)/u.stride),c=i}return"point"===t&&(u.lengths.length=0),u}function S(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,s=t.isCustomWkid()?0:t.getOldID();if(s<=0)return{wkt:e};let r=t.getLatestID();(r<=0||r===s)&&(r=void 0);const n=t.getVCS();if(null==n)return{wkid:s,latestWkid:r,wkt:e};const i=n.isCustomWkid()?0:n.getOldID();if(i<=0)return{wkt:e};let a=t.getLatestVerticalID();return(a<=0||a===i)&&(a=void 0),{wkid:s,wkt:e,latestWkid:r,vcsWkid:i,latestVcsWkid:a}}(t.getSpatialReference()),t=t.getGeometry()),new x({...t.toFlatGeometry(),spatialReference:e})}class O{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const s of e)t[s]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function R({spatialReference:t}){return t instanceof i.A?t.toJSON():t}function w({vertexXY:t,vertexZ:e,vertexM:s}){return e?s?r=>[t[2*r],t[2*r+1],e[r],s[r]]:s=>[t[2*s],t[2*s+1],e[s]]:s?e=>[t[2*e],t[2*e+1],s[e]]:e=>[t[2*e],t[2*e+1]]}function Y(t,e){return t.every((t,s)=>t===e[s])}function F(t,e,s,r,n,i,a,o){a??=0,o??=0;const h=new x({type:t,vertexCount:e,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:s,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:a,segmentCountBezier:o});let u=2*Float64Array.BYTES_PER_ELEMENT*e;r&&(u+=Float64Array.BYTES_PER_ELEMENT*e),n&&(u+=Float64Array.BYTES_PER_ELEMENT*e),h.isMultipart()&&(u+=(s+1)*Int32Array.BYTES_PER_ELEMENT,u+=(s+1)*Int8Array.BYTES_PER_ELEMENT),i&&(u+=e*Int8Array.BYTES_PER_ELEMENT,u+=e*Int32Array.BYTES_PER_ELEMENT,u+=h.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const l=new ArrayBuffer(u);let c=0;return h.vertexXY=new Float64Array(l,c,2*e),c+=h.vertexXY.byteLength,r&&(h.vertexZ=new Float64Array(l,c,e),c+=h.vertexZ.byteLength),n&&(h.vertexM=new Float64Array(l,c,e),c+=h.vertexM.byteLength),i&&(h.segmentParams=new Float64Array(l,c,h.segmentParamCount),c+=h.segmentParams.byteLength,h.segmentIndices=new Int32Array(l,c,e),h.segmentIndices.fill(G),c+=h.segmentIndices.byteLength),h.isMultipart()&&(h.partOffsets=new Int32Array(l,c,s+1),c+=h.partOffsets.byteLength,h.partFlags=new Int8Array(l,c,s+1),c+=h.partFlags.byteLength,"polygon"===h.type&&h.partFlags.subarray(0,s).fill(1)),i&&(h.segmentFlags=new Int8Array(l,c,e),h.segmentFlags.fill(1),c+=h.segmentFlags.byteLength),h}function b(t,e,{segmentFlags:s,segmentIndices:r,segmentParams:n},i,a){s[i]=4,r[i]=a;const[o,[h,u],l,c,m,g,p]=e.a;let x=4;c||(x|=1),l||(x|=2);const v=(0,f.SW)(t,e),[d,y]=(0,f.Uk)(v,.5);return n[a++]=x,n[a++]=g,n[a++]=p,n[a++]=m,n[a++]=h,n[a++]=u,n[a++]=v.u2-v.u1,n[a++]=v.u1,n[a++]=d,n[a++]=y,a}function A(t,e,{segmentFlags:s,segmentIndices:r,segmentParams:n},i,a){s[i]=4,r[i]=a;const o=(0,g.io)(t,e);return Z(o,4,...(0,u.mq)(o,.5),n,a)}function I(t,e,{segmentFlags:s,segmentIndices:r,segmentParams:n},i,a){return s[i]=4,r[i]=a,Z((0,l.pM)(t,e),0,...e.c[1],n,a)}function Z(t,e,s,r,n,i){const{cx:a,cy:o,thetaStart:h,thetaEnd:u,radius:l}=t;return h>u||(e|=1),Math.abs(u-h)<=Math.PI||(e|=2),n[i++]=e,n[i++]=l,n[i++]=1,n[i++]=0,n[i++]=a,n[i++]=o,n[i++]=u-h,n[i++]=h,n[i++]=s,n[i++]=r,i}function V(t,{b:[e,[s,r],[n,i]]},{segmentFlags:a,segmentIndices:o,segmentParams:h},u,l){return a[u]=2,o[u]=l,h[l++]=s,h[l++]=r,h[l++]=n,h[l++]=i,l}const X=1.61803,G=-1},70787(t,e,s){s.d(e,{fz:()=>o,g7:()=>i,zo:()=>a});var r=s(76061);const n=new(s(64523).O);function i(t,e,s){return n.execute(t,e,s,null)}function a(t,e,s){const i=n.executeMany(new r.S(t),e,s,null);return Array.from(i)}function o(){return n.supportsCurves()}},97528(t,e,s){s.r(e),s.d(e,{execute:()=>a,executeMany:()=>o});var r=s(86211),n=s(70787),i=s(83299);function a(t,e,s={}){const{removeDegenerateParts:a=!1,unit:o}=s,h=(0,i.getSpatialReference)(t);o&&h&&(e=(0,r.UW)(e,o,h));const u=(0,i.fromGeometry)(t),l=(0,n.g7)(u.getGeometry(),e,a);return null==l?null:(0,i.toGeometry)(l,u.getSpatialReference())}function o(t,e,s={}){const{removeDegenerateParts:a=!1,unit:o}=s,h=(0,i.getSpatialReference)(t);o&&h&&(e=(0,r.UW)(e,o,h));const[u,l]=(0,i.fromGeometries)(t);return(0,n.zo)(u,e,a).map(t=>(0,i.toGeometry)(t,l))}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2314],{39933(e,t,l){l.r(t),l.d(t,{build:()=>s.b}),l(32680),l(68317),l(76597),l(24321),l(2585),l(43519),l(96336),l(39014),l(53466),l(92700),l(35640),l(40261),l(71651),l(9312),l(98619),l(22393),l(59469),l(32482),l(
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2314],{39933(e,t,l){l.r(t),l.d(t,{build:()=>s.b}),l(32680),l(68317),l(76597),l(24321),l(2585),l(43519),l(96336),l(39014),l(53466),l(92700),l(35640),l(40261),l(71651),l(9312),l(98619),l(22393),l(59469),l(32482),l(43259),l(58614),l(27950),l(77949),l(33079),l(71988),l(20304),l(31821),l(63761),l(27832),l(43616),l(73541),l(14113);var s=l(57323)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1948,2722,3931,6061,6312,8125],{61691(t,e,r){r.d(e,{G:()=>s});class s{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},76061(t,e,r){r.d(e,{S:()=>n});var s=r(61691);class n extends s.G{constructor(t){super(),this.m_iGeom=-1,this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},69397(t,e,r){r.d(e,{Qf:()=>h,Qh:()=>a,RS:()=>n,Ul:()=>g,i5:()=>f,lM:()=>i,qK:()=>c});var s=r(34275);const n=16;function i(t){if(!t)return 0;let e=c;for(const r in t)t.hasOwnProperty(r)&&(e+=o(t[r],!1));return e}function a(t){if(!t)return 0;if("number"==typeof t[0])return h(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return u(t,8);let r=l;for(let s=0;s<e;s++)r+=o(t[s]);return r}(t);let e=c;for(const r in t)t.hasOwnProperty(r)&&(e+=o(t[r]));return e}function o(t,e=!0){switch(typeof t){case"object":return e?a(t):c;case"string":return function(t){return 32+t.length}(t);case"number":return n;case"boolean":return 4;default:return 8}}function h(...t){return t.reduce((t,e)=>t+(e?(0,s.iu)(e)?e.byteLength+f:Array.isArray(e)?u(e,n):0:0),0)}function u(t,e){return l+t.length*e}const c=32,l=16,f=145,g=64},87992(t,e,r){r.d(e,{JR:()=>Z,ME:()=>E,MY:()=>w,NO:()=>C,Nh:()=>V,V2:()=>_,_s:()=>Y,e6:()=>I,gh:()=>P,tr:()=>X,uX:()=>x});var s=r(5482),n=r(69397),i=r(16930),a=(r(70328),r(19419)),o=r(60408),h=r(21325),u=r(513),c=r(50954),l=r(79567),f=r(52006),g=r(49663),m=r(46068),p=r(92722);class x{constructor({type:t,spatialReference:e,vertexCount:r,vertexXY:s,vertexZ:n,vertexM:i,partCount:a,partOffsets:o,partFlags:h,segmentFlags:u,segmentIndices:c,segmentParams:l,segmentCountArc:f,segmentCountBezier:g}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=r,this.vertexXY=s,this.vertexZ=n,this.vertexM=i,this.partCount=a,this.partOffsets=o,this.partFlags=h,this.segmentFlags=u,this.segmentIndices=c,this.segmentParams=l,this.segmentCountArc=f,this.segmentCountBezier=g}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:r}=this;return t&&t-e-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return null!=this.segmentFlags}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function t(t){return t?n.Ul+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){const{type:t,vertexCount:e,partCount:r,hasZ:s,hasM:n,segmentCountArc:i,segmentCountBezier:a}=this,o=_(t,e,r,s,n,this.hasCurves(),i,a);o.spatialReference=this.spatialReference;const{vertexXY:h,vertexZ:u,vertexM:c}=this;if(o.vertexXY.set(h.subarray(0,2*e),0),o.vertexZ?.set(u.subarray(0,e),0),o.vertexM?.set(c.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;o.partFlags.set(e.subarray(0,r+1)),o.partOffsets.set(t.subarray(0,r+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:r,segmentParams:s,segmentParamCount:n}=this;o.segmentFlags.set(t.subarray(0,e),0),o.segmentIndices.set(r.subarray(0,e),0),o.segmentParams.set(s.subarray(0,n),0)}return o}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,h.aI)(this.spatialReference,t.spatialReference))return!1;if(this.vertexCount!==t.vertexCount||this.partCount!==t.partCount)return!1;if(this.hasZ!==t.hasZ||this.hasM!==t.hasM)return!1;if(this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;const r=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,r)=>Math.abs(t-r)>e||isNaN(t)!==isNaN(r);for(let e=0;e<this.vertexCount;++e)if(r(this.vertexXY[2*e],t.vertexXY[2*e])||r(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexM[e],t.vertexM[e]))return!1;for(let e=0;e<this.partCount;++e)if(this.partFlags[e]!==t.partFlags[e]||this.partOffsets[e]!==t.partOffsets[e])return!1;if(this.hasCurves()){for(let e=0;e<this.vertexCount;++e)if(this.segmentFlags[e]!==t.segmentFlags[e]||this.segmentIndices[e]!==t.segmentIndices[e])return!1;for(let e=0;e<this.segmentParamCount;++e)if(r(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new y(this):[][Symbol.iterator]()}}class y{constructor(t){this.geometry=t,this.value=new d(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class d{constructor(t){this.geometry=t,this.index=-1,this._readVertex=R(t),this._segments=new v(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class v{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new M(t.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const t=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=t&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:t}=this._part,e=this._part.geometry.partOffsets;this._partStart=e[t],this._partEnd=e[t+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class M{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=R(t)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const t=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===t)return this.end;const e=this.geometry.segmentParams;let r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[r++],s=e[r++],n=e[r++],i=e[r++];return{b:[this.end,[t,s],[n,i]]}}const s=e[r++],n=e[r++],i=e[r++],a=e[r++],o=e[r++],h=e[r++];r++,r++;const u=e[r++],c=e[r++];if(!Boolean(4&s)&&1===i)return{c:[this.end,[u,c]]};const l=2&s?0:1,f=1&s?0:1;return{a:[this.end,[o,h],l,f,a,n,i]}}}function C(t,e){const r={stack:[],error:void 0,hasError:!1};try{return e??=(0,a.Ie)(),(0,s.mS)(r,new A(t,["vertexZ","vertexM","spatialReference"]),!1),(0,a.bx)(e,function(t){let e;const{vertexCount:r,vertexXY:n,vertexZ:i,vertexM:o}=t,h=O(t);if(t.hasCurves()){const r={stack:[],error:void 0,hasError:!1};try{(0,s.mS)(r,new A(t,["vertexZ","vertexM"]),!1);const n=(0,a.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:r}of e.segments)(0,l.e)(n,t,r),t=(0,f.yP)(r)}const[i,o,u,c]=n;e={xmin:i,ymin:o,xmax:u,ymax:c,spatialReference:h}}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}else{let t,s,i,a;t=s=1/0,i=a=-1/0;for(let e=0;e<r;++e){const r=n[2*e],o=n[2*e+1];t=Math.min(t,r),i=Math.max(i,r),s=Math.min(s,o),a=Math.max(a,o)}e={xmin:t,ymin:s,xmax:i,ymax:a,spatialReference:h}}if(i){let t=1/0,r=-1/0;for(const e of i)t=Math.min(t,e),r=Math.max(r,e);e.zmin=t,e.zmax=r}if(o){let t=1/0,r=-1/0;for(const e of o)t=Math.min(t,e),r=Math.max(r,e);e.mmin=t,e.mmax=r}return e}(t)),e}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}function E(t){let e,r,s;if((0,o.fT)(t)){s="point";const{x:n,y:i,z:a,m:o}=t,h=[n,i];null!=a&&h.push(a),null!=o&&h.push(o),r=[[h]],e=1}else(0,o.U9)(t)?(s="multipoint",r=[t.points],e=t.points.length):(0,o.Rg)(t)?(s="polyline",r=t.curvePaths??t.paths,e=r.reduce((t,e)=>t+e.length,0)):(s="polygon",r=t.curveRings??t.rings,e=r.reduce((t,e)=>(0===e.length||(t+=e.length,S(e[0],(0,f.yP)(e.at(-1)))&&--t),t),0));const n=_(s,e,s.includes("point")?0:r.length,(0,o.Pv)(t),(0,o.W0)(t),(0,f.Ed)(t)),{hasZ:i,hasM:a,vertexXY:h,vertexZ:u,vertexM:c}=n;function l(t){h[2*m]=t[0],h[2*m+1]=t[1],i&&(u[m]=t[2]),a&&(c[m]=t[g]),++m}n.spatialReference=t.spatialReference??void 0;const g=n.hasZ?3:2;let m=0;if(!n.isMultipart()){if(!i&&!a){for(const[t,e]of r[0])h[2*m]=t,h[2*m+1]=e,++m;return n}for(const t of r[0])l(t);return n}const p="polygon"===s,{partOffsets:x}=n;let y=0;if(!n.hasCurves()){for(const t of r){if(x[y++]=m,0===t.length)continue;let e=t.length;if(p&&S(t[0],t.at(-1))&&--e,i||a)for(let r=0;r<e;++r)l(t[r]);else for(let r=0;r<e;++r){const[e,s]=t[r];h[2*m]=e,h[2*m+1]=s,++m}}return x[y]=m,n}function d(t){const e=v+t;if(e<=(n.segmentParams?.length??0))return;let r=e*G;r=20*Math.ceil(r/20);const s=n.segmentParams;n.segmentParams=new Float64Array(r),null!=s&&n.segmentParams.set(s)}let v=0;for(const t of r){if(n.partOffsets[y++]=m,0===t.length)continue;const e=t[0];let r=e;for(let e=1;e<t.length;++e){const s=t[e];l(r);const i=m-1;(0,f.wY)(s)?(d(10),++n.segmentCountArc,v=Y(r,s,n,i,v),r=s.a[0]):(0,f.DA)(s)?(d(10),++n.segmentCountArc,v=b(r,s,n,i,v),r=s.a[0]):(0,f.aO)(s)?(d(10),++n.segmentCountArc,v=I(r,s,n,i,v),r=s.c[0]):(0,f.n1)(s)?(d(4),++n.segmentCountBezier,v=X(0,s,n,i,v),r=s.b[0]):r=s}p&&S(e,r)||l(r)}return n.partOffsets[y]=m,n}function P(t){const e=R(t),{vertexCount:r,partCount:s,hasZ:n,hasM:i}=t,a=O(t);if("point"===t.type){const[e,r]=t.vertexXY,s=t.vertexZ?.[0],n=t.vertexM?.[0];return{x:e,y:r,z:s,m:n,spatialReference:a}}let o=0;if("multipoint"===t.type){const t=[];for(;o<r;)t.push(e(o++));return{points:t,spatialReference:a,hasZ:n,hasM:i}}const h="polygon"===t.type;if(!t.hasCurves()){const r=new Array;for(let n=0;n<s;++n){const s=t.partOffsets[n+1],i=new Array;for(;o<s;)i.push(e(o++));h&&i.length>0&&i.push(i[0]),r.push(i)}return h?{rings:r,hasZ:n,hasM:i,spatialReference:a}:{paths:r,hasZ:n,hasM:i,spatialReference:a}}const u=new Array;for(const{segments:e,startVertex:r}of t.parts){const t=[r];for(const{curve:r}of e)t.push(r);u.push(t)}return h?{rings:[],curveRings:u,hasZ:n,hasM:i,spatialReference:a}:{paths:[],curvePaths:u,hasZ:n,hasM:i,spatialReference:a}}function V(t,{lengths:e,coords:r,hasZ:s,hasM:n},i){const a=t.includes("point")?0:e.length,o="polygon"===t,h="point"===t?1:e.reduce((t,e)=>t+e,0)-(o?a:0);s??=!1,n??=!1;const u=_(t,h,a,s,n,!1,0,0);if(u.spatialReference=i??void 0,!u.isMultipart()){for(let t=0,e=0;t<h;++t)u.vertexXY[2*t]=r[e++],u.vertexXY[2*t+1]=r[e++],s&&(u.vertexZ[t]=r[e++]),n&&(u.vertexM[t]=r[e++]);return u}const c=2+Number(s)+Number(n);let l=0,f=0;u.partOffsets[0]=0;for(const t of e){const e=u.partOffsets[f],i=e+t-Number(o);u.partOffsets[++f]=i;for(let t=e;t<i;++t)u.vertexXY[2*t]=r[l++],u.vertexXY[2*t+1]=r[l++],s&&(u.vertexZ[t]=r[l++]),n&&(u.vertexM[t]=r[l++]);o&&(l+=c)}return u}function Z({type:t,vertexCount:e,vertexXY:r,vertexZ:s,vertexM:n,partCount:i,partOffsets:a,hasZ:o,hasM:h}){const u=new p.A([],[],o,h);i=Math.max(i,1);const c="polygon"===t;let l=0;for(let t=0;t<i;++t){const i=a?.[t+1]??e,f=u.coords.length;for(let t=l;t<i;++t)u.coords.push(r[2*t],r[2*t+1]),o&&u.coords.push(s[t]),h&&u.coords.push(n[t]);if(c){const t=l;u.coords.push(r[2*t],r[2*t+1]),o&&u.coords.push(s[t]),h&&u.coords.push(n[t])}u.lengths.push((u.coords.length-f)/u.stride),l=i}return"point"===t&&(u.lengths.length=0),u}function w(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,r=t.isCustomWkid()?0:t.getOldID();if(r<=0)return{wkt:e};let s=t.getLatestID();(s<=0||s===r)&&(s=void 0);const n=t.getVCS();if(null==n)return{wkid:r,latestWkid:s,wkt:e};const i=n.isCustomWkid()?0:n.getOldID();if(i<=0)return{wkt:e};let a=t.getLatestVerticalID();return(a<=0||a===i)&&(a=void 0),{wkid:r,wkt:e,latestWkid:s,vcsWkid:i,latestVcsWkid:a}}(t.getSpatialReference()),t=t.getGeometry()),new x({...t.toFlatGeometry(),spatialReference:e})}class A{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const r of e)t[r]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function O({spatialReference:t}){return t instanceof i.A?t.toJSON():t}function R({vertexXY:t,vertexZ:e,vertexM:r}){return e?r?s=>[t[2*s],t[2*s+1],e[s],r[s]]:r=>[t[2*r],t[2*r+1],e[r]]:r?e=>[t[2*e],t[2*e+1],r[e]]:e=>[t[2*e],t[2*e+1]]}function S(t,e){return t.every((t,r)=>t===e[r])}function _(t,e,r,s,n,i,a,o){a??=0,o??=0;const h=new x({type:t,vertexCount:e,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:a,segmentCountBezier:o});let u=2*Float64Array.BYTES_PER_ELEMENT*e;s&&(u+=Float64Array.BYTES_PER_ELEMENT*e),n&&(u+=Float64Array.BYTES_PER_ELEMENT*e),h.isMultipart()&&(u+=(r+1)*Int32Array.BYTES_PER_ELEMENT,u+=(r+1)*Int8Array.BYTES_PER_ELEMENT),i&&(u+=e*Int8Array.BYTES_PER_ELEMENT,u+=e*Int32Array.BYTES_PER_ELEMENT,u+=h.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const c=new ArrayBuffer(u);let l=0;return h.vertexXY=new Float64Array(c,l,2*e),l+=h.vertexXY.byteLength,s&&(h.vertexZ=new Float64Array(c,l,e),l+=h.vertexZ.byteLength),n&&(h.vertexM=new Float64Array(c,l,e),l+=h.vertexM.byteLength),i&&(h.segmentParams=new Float64Array(c,l,h.segmentParamCount),l+=h.segmentParams.byteLength,h.segmentIndices=new Int32Array(c,l,e),h.segmentIndices.fill(N),l+=h.segmentIndices.byteLength),h.isMultipart()&&(h.partOffsets=new Int32Array(c,l,r+1),l+=h.partOffsets.byteLength,h.partFlags=new Int8Array(c,l,r+1),l+=h.partFlags.byteLength,"polygon"===h.type&&h.partFlags.subarray(0,r).fill(1)),i&&(h.segmentFlags=new Int8Array(c,l,e),h.segmentFlags.fill(1),l+=h.segmentFlags.byteLength),h}function Y(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){r[i]=4,s[i]=a;const[o,[h,u],c,l,f,g,p]=e.a;let x=4;l||(x|=1),c||(x|=2);const y=(0,m.SW)(t,e),[d,v]=(0,m.Uk)(y,.5);return n[a++]=x,n[a++]=g,n[a++]=p,n[a++]=f,n[a++]=h,n[a++]=u,n[a++]=y.u2-y.u1,n[a++]=y.u1,n[a++]=d,n[a++]=v,a}function b(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){r[i]=4,s[i]=a;const o=(0,g.io)(t,e);return F(o,4,...(0,u.mq)(o,.5),n,a)}function I(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){return r[i]=4,s[i]=a,F((0,c.pM)(t,e),0,...e.c[1],n,a)}function F(t,e,r,s,n,i){const{cx:a,cy:o,thetaStart:h,thetaEnd:u,radius:c}=t;return h>u||(e|=1),Math.abs(u-h)<=Math.PI||(e|=2),n[i++]=e,n[i++]=c,n[i++]=1,n[i++]=0,n[i++]=a,n[i++]=o,n[i++]=u-h,n[i++]=h,n[i++]=r,n[i++]=s,i}function X(t,{b:[e,[r,s],[n,i]]},{segmentFlags:a,segmentIndices:o,segmentParams:h},u,c){return a[u]=2,o[u]=c,h[c++]=r,h[c++]=s,h[c++]=n,h[c++]=i,c}const G=1.61803,N=-1},78125(t,e,r){r.r(e),r.d(e,{fromExtent:()=>x,fromGeometry:()=>p,fromMultipoint:()=>y,fromPoint:()=>d,fromPolygon:()=>v,fromPolyline:()=>M,fromPolylineUsingImportOperator:()=>C,fromSpatialReference:()=>E,getSpatialReference:()=>m,toExtent:()=>V,toGeometry:()=>P,toMultipoint:()=>Z,toPoint:()=>w,toPolygon:()=>A,toPolyline:()=>O});var s=r(83661),n=(r(79187),r(55537)),i=r(95213),a=r(88885),o=r(5443),h=r(48526),u=r(86738),c=r(39829),l=r(82799),f=(r(90293),r(83299));const g="_gxVersion";function m(t){return Array.isArray(t)?t[0].spatialReference:t.spatialReference}function p(t){switch(t.type){case"point":return d(t);case"multipoint":return y(t);case"polyline":return M(t);case"polygon":return v(t);case"extent":return x(t);default:throw new Error(`Unsupported geometry type: ${t.type}`)}}function x(t){if(!t.getCacheValue(g)){const e=new i.E;e.setCoords(t.xmin,t.ymin,t.xmax,t.ymax),t.hasM&&e.setInterval(2,0,t.mmin,t.mmax),t.hasZ&&e.setInterval(1,0,t.zmin,t.zmax),t.setCacheValue(g,e)}return t.getCacheValue(g)}function y(t){if(!t.getCacheValue(g)){const e=new a.M,r=new i.P,s=t.points,n=t.hasM,o=t.hasZ,h=o?3:2;for(let t=0,i=s.length;t<i;t++){const i=s[t];r.setXYCoords(i[0],i[1]),o&&r.setZ(i[2]??0),n&&r.setM(i[h]??NaN),e.add(r)}t.setCacheValue(g,e)}return t.getCacheValue(g)}function d(t){if(!t.getCacheValue(g)){const e=new i.P;e.setXYCoords(t.x,t.y),t.hasM&&e.setM(t.m),t.hasZ&&e.setZ(t.z),t.setCacheValue(g,e)}return t.getCacheValue(g)}function v(t){if(!t.getCacheValue(g)){const{curveRings:e,hasM:r,hasZ:s,rings:n}=t,i=(0,f.fromGeometryToGXGeometry)({curveRings:e,hasM:r,hasZ:s,rings:n});t.setCacheValue(g,i)}return t.getCacheValue(g)}function M(t){if(!t.getCacheValue(g)){const{curvePaths:e,hasM:r,hasZ:s,paths:n}=t,i=(0,f.fromGeometryToGXGeometry)({curvePaths:e,hasM:r,hasZ:s,paths:n});t.setCacheValue(g,i)}return t.getCacheValue(g)}function C(t){if(!t.getCacheValue(g)){const{curvePaths:e,hasM:r,hasZ:s,paths:n}=t,i=(0,f.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:e,hasM:r,hasZ:s,paths:n});t.setCacheValue(g,i)}return t.getCacheValue(g)}function E(t){return t.cache?(t.cache[g]??=(0,f.fromSpatialReference)(t),t.cache[g]):(0,f.fromSpatialReference)(t)}function P(t,e){if(t)switch(t.getGeometryType()){case n.G.enumPoint:return w(t,e);case n.G.enumEnvelope:return V(t,e);case n.G.enumMultiPoint:return Z(t,e);case n.G.enumPolyline:return O(t,e);case n.G.enumPolygon:return A(t,e)}return null}function V(t,e){if(t.isEmpty())return null;const r=new o.A({xmin:t.getXMin(),ymin:t.getYMin(),xmax:t.getXMax(),ymax:t.getYMax(),spatialReference:e}),s=t.getDescription();if(s.hasM()){const e=t.queryInterval(2,0);r.mmin=e.vmin,r.mmax=e.vmax}if(s.hasZ()){const e=t.queryInterval(1,0);r.zmin=e.vmin,r.zmax=e.vmax}return r.setCacheValue(g,t),r}function Z(t,e){if(t.isEmpty())return null;const r=t.getDescription(),s=r.hasM(),n=r.hasZ(),a=[],o=new i.P;for(let e=0,r=t.getPointCount();e<r;e++){t.getPointByVal(e,o);const r=[o.getX(),o.getY()];n&&r.push(o.getZ()),s&&r.push(o.getM()),a.push(r)}const u=new h.A({hasM:s,hasZ:n,points:a,spatialReference:e});return u.setCacheValue(g,t),u}function w(t,e){if(t instanceof s.P)return new u.A({x:t.x,y:t.y,spatialReference:e});if(t.isEmpty())return null;const r=new u.A({x:t.getX(),y:t.getY(),spatialReference:e}),n=t.getDescription();return n.hasM()&&(r.m=t.getM()),n.hasZ()&&(r.z=t.getZ()),r.setCacheValue(g,t),r}function A(t,e){if(t.isEmpty())return null;const r=c.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return r.setCacheValue(g,t),r}function O(t,e){if(t.isEmpty())return null;const r=l.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return r.setCacheValue(g,t),r}},92722(t,e,r){r.d(e,{A:()=>n});var s=r(69397);class n{constructor(t=[],e=[],r=!1,s=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=r,this.hasM=s}static fromJSON({lengths:t,coords:e,hasZ:r,hasM:s}){return new n(t,e,r||!1,s||!1)}static fromRect([t,e,r,s]){const i=r-t,a=s-e;return new n([5],[t,e,i,0,0,a,-i,0,0,-a])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,s.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const r of this.lengths){if(r<3)continue;const{stride:s}=this;let n=this.coords[s*e],i=this.coords[s*e+1];for(let a=1;a<r;a+=1){const r=s*(e+a),o=this.coords[r],h=this.coords[r+1];t+=-.5*(o-n)*(h+i),n=o,i=h}e+=r}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:r}=this;for(const s of this.lengths){for(let n=0;n<s;n++){const s=r*(e+n);t(this.coords[s],this.coords[s+1])}e+=s}}deltaDecode(){const t=this.clone(),{coords:e,lengths:r}=t;let s=0;const{stride:n}=this;for(const t of r){for(let r=1;r<t;r++){const t=n*(s+r);e[t]+=e[t-n],e[t+1]+=e[t+1-n]}s+=t}return t}clone(t){if(this.isPoint)return new n([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:r,size:s}=this,i=this.coords.slice(0,s*r);return t?(t.set(i),new n(e,t,this.hasZ,this.hasM)):new n(e,Array.from(i),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const r=new Array(e*t);for(let e=0,s=0;e<r.length;e+=t)r[s++]=this.coords[e],r[s++]=this.coords[e+1];return new n(this.lengths,r,!1,!1)}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1733],{60999(e,t,i){i.d(t,{DZ:()=>y,Ke:()=>h,Tj:()=>p,UT:()=>f,aD:()=>g,jJ:()=>u});var s=i(5482),r=i(69622),l=i(97768),n=i(17676),o=i(10107),a=i(64108);function u(e,t,i){return(0,n.Lx)(e.map((e,s)=>t.apply(i,[e,s])))}async function p(e,t,i){return(await(0,n.Lx)(e.map((e,s)=>t.apply(i,[e,s])))).map(e=>e.value)}function c(e){return{ok:!0,value:e}}function d(e){return{ok:!1,error:e}}async function h(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return c(await e)}catch(e){return d(e)}}async function y(e){try{return c(await e)}catch(e){return(0,n.QP)(e),d(e)}}function f(e,t){return new m(e,t)}let m=class extends r.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,l.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:i}=this._abortController;this.promise=e(i),this.promise.then(e=>{this._result=c(e),this._cleanup()},e=>{this._result=d(e),this._cleanup()}),this._abortHandle=(0,n.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,l.xt)(this._abortHandle),this._abortController=null}};(0,s.Cg)([(0,o.MZ)()],m.prototype,"value",null),(0,s.Cg)([(0,o.MZ)()],m.prototype,"error",null),(0,s.Cg)([(0,o.MZ)()],m.prototype,"finished",null),(0,s.Cg)([(0,o.MZ)()],m.prototype,"promise",void 0),(0,s.Cg)([(0,o.MZ)()],m.prototype,"_result",void 0),m=(0,s.Cg)([(0,a.$)("esri.core.asyncUtils.ReactiveTask")],m);class g{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});const t=await e;return{[Symbol.dispose]:t}}async run(e){const t={stack:[],error:void 0,hasError:!1};try{return(0,s.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,s.hk)(t)}}}},91829(e,t,i){function s(){return[0,0,0,0]}function r(e,t,i,s){return[e,t,i,s]}function l(e,t,i,s){return[e,t,i,s]}function n(){return r(1,1,1,1)}function o(){return r(1,0,0,0)}function a(){return r(0,1,0,0)}function u(){return r(0,0,1,0)}function p(){return r(0,0,0,1)}i.d(t,{CN:()=>l,Un:()=>d,fA:()=>r,uY:()=>c,vt:()=>s});const c=[0,0,0,0],d=n(),h=o(),y=a(),f=u(),m=p();Object.freeze(Object.defineProperty({__proto__:null,ONES:d,UNIT_W:m,UNIT_X:h,UNIT_Y:y,UNIT_Z:f,ZEROS:c,clone:function(e){return[e[0],e[1],e[2],e[3]]},create:s,freeze:l,fromArray:function(e,t=[0,0,0,0]){const i=Math.min(4,e.length);for(let s=0;s<i;++s)t[s]=e[s];return t},fromValues:r,ones:n,unitW:p,unitX:o,unitY:a,unitZ:u,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},78955(e,t,i){i.d(t,{Bw:()=>m,C:()=>r,Cc:()=>w,LI:()=>d,Om:()=>v,S8:()=>b,T9:()=>c,WQ:()=>n,Z0:()=>S,aI:()=>C,hG:()=>f,hZ:()=>l,hs:()=>h,jk:()=>p,m3:()=>g,t2:()=>V});var s=i(34304);function r(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function l(e,t,i,s,r){return e[0]=t,e[1]=i,e[2]=s,e[3]=r,e}function n(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e[2]=t[2]+i[2],e[3]=t[3]+i[3],e}function o(e,t,i){return e[0]=t[0]-i[0],e[1]=t[1]-i[1],e[2]=t[2]-i[2],e[3]=t[3]-i[3],e}function a(e,t,i){return e[0]=t[0]*i[0],e[1]=t[1]*i[1],e[2]=t[2]*i[2],e[3]=t[3]*i[3],e}function u(e,t,i){return e[0]=t[0]/i[0],e[1]=t[1]/i[1],e[2]=t[2]/i[2],e[3]=t[3]/i[3],e}function p(e,t,i){return e[0]=Math.min(t[0],i[0]),e[1]=Math.min(t[1],i[1]),e[2]=Math.min(t[2],i[2]),e[3]=Math.min(t[3],i[3]),e}function c(e,t,i){return e[0]=Math.max(t[0],i[0]),e[1]=Math.max(t[1],i[1]),e[2]=Math.max(t[2],i[2]),e[3]=Math.max(t[3],i[3]),e}function d(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e[3]=Math.round(t[3]),e}function h(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e}function y(e,t){const i=t[0]-e[0],s=t[1]-e[1],r=t[2]-e[2],l=t[3]-e[3];return Math.sqrt(i*i+s*s+r*r+l*l)}function f(e,t){const i=t[0]-e[0],s=t[1]-e[1],r=t[2]-e[2],l=t[3]-e[3];return i*i+s*s+r*r+l*l}function m(e){const t=e[0],i=e[1],s=e[2],r=e[3];return Math.sqrt(t*t+i*i+s*s+r*r)}function g(e){const t=e[0],i=e[1],s=e[2],r=e[3];return t*t+i*i+s*s+r*r}function b(e,t){const i=t[0],s=t[1],r=t[2],l=t[3];let n=i*i+s*s+r*r+l*l;return n>0&&(n=1/Math.sqrt(n),e[0]=i*n,e[1]=s*n,e[2]=r*n,e[3]=l*n),e}function v(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function w(e,t,i,s){const r=t[0],l=t[1],n=t[2],o=t[3];return e[0]=r+s*(i[0]-r),e[1]=l+s*(i[1]-l),e[2]=n+s*(i[2]-n),e[3]=o+s*(i[3]-o),e}function S(e,t,i){const s=t[0],r=t[1],l=t[2],n=t[3];return e[0]=i[0]*s+i[4]*r+i[8]*l+i[12]*n,e[1]=i[1]*s+i[5]*r+i[9]*l+i[13]*n,e[2]=i[2]*s+i[6]*r+i[10]*l+i[14]*n,e[3]=i[3]*s+i[7]*r+i[11]*l+i[15]*n,e}function V(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}function C(e,t){const i=e[0],r=e[1],l=e[2],n=e[3],o=t[0],a=t[1],u=t[2],p=t[3],c=(0,s.FD)();return Math.abs(i-o)<=c*Math.max(1,Math.abs(i),Math.abs(o))&&Math.abs(r-a)<=c*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(l-u)<=c*Math.max(1,Math.abs(l),Math.abs(u))&&Math.abs(n-p)<=c*Math.max(1,Math.abs(n),Math.abs(p))}const M=o,x=a,_=u,z=y,I=f,A=m,j=g;Object.freeze(Object.defineProperty({__proto__:null,add:n,ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e[3]=Math.ceil(t[3]),e},copy:r,copyVec3:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},dist:z,distance:y,div:_,divide:u,dot:v,equals:C,exactEquals:V,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e[3]=Math.floor(t[3]),e},inverse:function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e},len:A,length:m,lerp:w,max:c,min:p,mul:x,multiply:a,negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e},normalize:b,random:function(e,t=1){const i=s.Ov;let r,l,n,o,a,u;do{r=2*i()-1,l=2*i()-1,a=r*r+l*l}while(a>=1);do{n=2*i()-1,o=2*i()-1,u=n*n+o*o}while(u>=1);const p=Math.sqrt((1-a)/u);return e[0]=t*r,e[1]=t*l,e[2]=t*n*p,e[3]=t*o*p,e},round:d,scale:h,scaleAndAdd:function(e,t,i,s){return e[0]=t[0]+i[0]*s,e[1]=t[1]+i[1]*s,e[2]=t[2]+i[2]*s,e[3]=t[3]+i[3]*s,e},set:l,sqrDist:I,sqrLen:j,squaredDistance:f,squaredLength:g,str:function(e){return"vec4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},sub:M,subtract:o,transformMat4:S,transformQuat:function(e,t,i){const s=t[0],r=t[1],l=t[2],n=i[0],o=i[1],a=i[2],u=i[3],p=u*s+o*l-a*r,c=u*r+a*s-n*l,d=u*l+n*r-o*s,h=-n*s-o*r-a*l;return e[0]=p*u+h*-n+c*-a-d*-o,e[1]=c*u+h*-o+d*-n-p*-a,e[2]=d*u+h*-a+p*-o-c*-n,e[3]=t[3],e}},Symbol.toStringTag,{value:"Module"}))},86162(e,t,i){i.d(t,{A:()=>x});var s,r=i(5482),l=i(66552),n=i(4718),o=i(53966),a=i(91429),u=i(56507),p=i(30524),c=i(92438),d=i(63988),h=i(88542),y=i(49849),f=i(20061),m=i(43668),g=i(33910),b=i(36005),v=i(43937),w=i(93223);const S="percent-of-total",V="field",C=new l.J({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:S,esriNormalizeByField:V}),M=(0,u.dp)(h.A);let x=s=class extends((0,d.h)(c.A)){constructor(e){super(e),this._compiledValueExpression={valueExpression:null,compiledFunction:null},this.backgroundFillSymbol=null,this.classBreakInfos=null,this.defaultLabel=null,this.defaultSymbol=null,this.field=null,this.isMaxInclusive=!0,this.legendOptions=null,this.normalizationField=null,this.normalizationTotal=null,this.type="class-breaks",this.valueExpression=null,this.valueExpressionTitle=null,this._set("classBreakInfos",[])}readClassBreakInfos(e,t,i){if(!Array.isArray(e))return;let s=t.minValue;return e.map(e=>{const t=new h.A;return t.read(e,i),null==t.minValue&&(t.minValue=s),null==t.maxValue&&(t.maxValue=t.minValue),s=t.maxValue,t})}writeClassBreakInfos(e,t,i,s){const r=e.map(e=>e.write({},s));this._areClassBreaksConsecutive()&&r.forEach(e=>delete e.classMinValue),t[i]=r}castField(e){return null==e?e:"function"==typeof e?(o.A.getLogger(this).error(".field: field must be a string value"),null):(0,u.GX)(e)}get minValue(){return this.classBreakInfos&&this.classBreakInfos[0]&&this.classBreakInfos[0].minValue||0}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,i=null!=this.normalizationTotal;return t||i?(e=t&&V||i&&S||null,t&&i&&o.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==V&&e!==S||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}addClassBreakInfo(e,t,i){let s=null;s="number"==typeof e?new h.A({minValue:e,maxValue:t,symbol:(0,g.dp)(i)}):M((0,n.o8)(e)),this.classBreakInfos.push(s),1===this.classBreakInfos.length&&this.notifyChange("minValue")}removeClassBreakInfo(e,t){const i=this.classBreakInfos.length;for(let s=0;s<i;s++){const i=[this.classBreakInfos[s].minValue,this.classBreakInfos[s].maxValue];if(i[0]===e&&i[1]===t){this.classBreakInfos.splice(s,1);break}}}getBreakIndex(e,t){return this.valueExpression&&null==t?.arcade&&o.A.getLogger(this).warn(""),this.valueExpression?this._getBreakIndexForExpression(e,t):this._getBreakIndexForField(e)}async getClassBreakInfo(e,t){let i=t;this.valueExpression&&null==t?.arcade&&(i={...i,arcade:await(0,m.l)()});const s=this.getBreakIndex(e,i);return-1!==s?this.classBreakInfos[s]:null}getSymbol(e,t){if(this.valueExpression&&null==t?.arcade)return void o.A.getLogger(this).error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");const i=this.getBreakIndex(e,t);return i>-1?this.classBreakInfos[i].symbol:this.defaultSymbol}async getSymbolAsync(e,t){let i=t;if(this.valueExpression&&null==t?.arcade){const e=await(0,m.l)(),{arcadeUtils:t}=e;t.hasGeometryOperations(this.valueExpression)&&await t.enableGeometryOperations(),i={...i,arcade:e}}const s=this.getBreakIndex(e,i);return s>-1?this.classBreakInfos[s].symbol:this.defaultSymbol}get symbols(){const e=[];return this.classBreakInfos.forEach(t=>{t.symbol&&e.push(t.symbol),e.push(...t.alternateSymbols??[])}),this.defaultSymbol&&e.push(this.defaultSymbol),e}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}clone(){return new s({field:this.field,backgroundFillSymbol:this.backgroundFillSymbol?.clone(),defaultLabel:this.defaultLabel,defaultSymbol:this.defaultSymbol?.clone(),valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,classBreakInfos:(0,n.o8)(this.classBreakInfos),isMaxInclusive:this.isMaxInclusive,normalizationField:this.normalizationField,normalizationTotal:this.normalizationTotal,normalizationType:this.normalizationType,visualVariables:(0,n.o8)(this.visualVariables),legendOptions:(0,n.o8)(this.legendOptions),authoringInfo:(0,n.o8)(this.authoringInfo)})}async collectRequiredFields(e,t){const i=[this.collectVVRequiredFields(e,t),this.collectSymbolFields(e,t)];await Promise.all(i)}async collectSymbolFields(e,t){const i=[...this.symbols.map(i=>i.collectRequiredFields(e,t)),(0,p.Dx)(e,t,null,this.valueExpression)];(0,p.rq)(e,t,this.field),(0,p.rq)(e,t,this.normalizationField),await Promise.all(i)}_getBreakIndexForExpression(e,t){const{viewingMode:i,scale:s,spatialReference:r,arcade:l,timeZone:n}=t??{},{valueExpression:o}=this;let a=this._compiledValueExpression.valueExpression===o?this._compiledValueExpression.compiledFunction:null;const u=l.arcadeUtils;if(!a){const e=u.createSyntaxTree(o);a=u.createFunction(e),this._compiledValueExpression.compiledFunction=a}this._compiledValueExpression.valueExpression=o;const p=u.executeFunction(a,u.createExecContext(e,u.getViewInfo({viewingMode:i,scale:s,spatialReference:r}),n));return this._getBreakIndexfromInfos(p)}_getBreakIndexForField(e){const t=this.field,i=e.attributes,s=this.normalizationType;let r=parseFloat(i[t]);if(s){const e=this.normalizationTotal,t=parseFloat(this.normalizationField?i[this.normalizationField]:void 0);if("log"===s)r=Math.log(r)*Math.LOG10E;else if(s!==S||null==e||isNaN(e)){if(s===V&&!isNaN(t)){if(isNaN(r)||isNaN(t))return-1;r/=t}}else r=r/e*100}return this._getBreakIndexfromInfos(r)}_getBreakIndexfromInfos(e){const t=this.isMaxInclusive;if(null!=e&&"number"==typeof e&&!isNaN(e))for(let i=0;i<this.classBreakInfos.length;i++){const s=[this.classBreakInfos[i].minValue,this.classBreakInfos[i].maxValue];if(s[0]<=e&&(t?e<=s[1]:e<s[1]))return i}return-1}_areClassBreaksConsecutive(){const e=this.classBreakInfos,t=e.length;for(let i=1;i<t;i++)if(e[i-1].maxValue!==e[i].minValue)return!1;return!0}};(0,r.Cg)([(0,a.MZ)(y.As)],x.prototype,"backgroundFillSymbol",void 0),(0,r.Cg)([(0,a.MZ)({type:[h.A],json:{write:{isRequired:!0}}})],x.prototype,"classBreakInfos",void 0),(0,r.Cg)([(0,b.w)("classBreakInfos")],x.prototype,"readClassBreakInfos",null),(0,r.Cg)([(0,v.K)("classBreakInfos")],x.prototype,"writeClassBreakInfos",null),(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],x.prototype,"defaultLabel",void 0),(0,r.Cg)([(0,a.MZ)(y.z4)],x.prototype,"defaultSymbol",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],x.prototype,"field",void 0),(0,r.Cg)([(0,a.wg)("field")],x.prototype,"castField",null),(0,r.Cg)([(0,a.MZ)({type:Boolean})],x.prototype,"isMaxInclusive",void 0),(0,r.Cg)([(0,a.MZ)({type:f.A,json:{write:!0}})],x.prototype,"legendOptions",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,readOnly:!0,value:null,json:{read:!1,write:{overridePolicy(){return 0!==this.classBreakInfos.length&&this._areClassBreaksConsecutive()?{enabled:!0}:{enabled:!1}}}}})],x.prototype,"minValue",null),(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],x.prototype,"normalizationField",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],x.prototype,"normalizationTotal",void 0),(0,r.Cg)([(0,a.MZ)({type:C.apiValues,value:null,json:{type:C.jsonValues,read:C.read,write:C.write}})],x.prototype,"normalizationType",null),(0,r.Cg)([(0,w.e)({classBreaks:"class-breaks"})],x.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],x.prototype,"valueExpression",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],x.prototype,"valueExpressionTitle",void 0),x=s=(0,r.Cg)([(0,a.$K)("esri.renderers.ClassBreaksRenderer")],x)},92438(e,t,i){i.d(t,{A:()=>u});var s=i(5482),r=i(66552),l=i(25482),n=i(91429),o=i(30943);const a=new r.J({simple:"simple",uniqueValue:"unique-value",classBreaks:"class-breaks",heatmap:"heatmap",dotDensity:"dot-density",dictionary:"dictionary",pieChart:"pie-chart"},{ignoreUnknown:!0});let u=class extends l.o{constructor(e){super(e),this.authoringInfo=null,this.type=null}async getRequiredFields(e){if(!this.collectRequiredFields)return[];const t=new Set;return await this.collectRequiredFields(t,e),Array.from(t).sort()}getSymbol(e,t){}async getSymbolAsync(e,t){}get symbols(){return[]}get arcadeRequired(){return!1}};(0,s.Cg)([(0,n.MZ)({type:o.A,json:{write:!0}})],u.prototype,"authoringInfo",void 0),(0,s.Cg)([(0,n.MZ)({type:a.apiValues,readOnly:!0,json:{type:a.jsonValues,read:!1,write:{writer:a.write,ignoreOrigin:!0,isRequired:!0}}})],u.prototype,"type",void 0),u=(0,s.Cg)([(0,n.$K)("esri.renderers.Renderer")],u)},93618(e,t,i){i.d(t,{A:()=>O});var s=i(5482),r=i(4718),l=i(53966),n=i(93637),o=i(36708),a=i(91429),u=i(6797),p=i(56507),c=i(30524),d=i(20655),h=i(92438),y=i(63988),f=i(49849),m=i(20061),g=i(69540),b=i(25482);let v=class extends((0,g.OU)(b.o)){constructor(e){super(e),this.value=null,this.value2=null,this.value3=null}};(0,s.Cg)([(0,a.MZ)(f.Ug)],v.prototype,"value",void 0),(0,s.Cg)([(0,a.MZ)(f.Ug)],v.prototype,"value2",void 0),(0,s.Cg)([(0,a.MZ)(f.Ug)],v.prototype,"value3",void 0),v=(0,s.Cg)([(0,a.$K)("esri.renderers.support.UniqueValue")],v);var w=i(4576),S=i(40863);let V=class extends((0,g.OU)(b.o)){constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.alternateSymbols=null}get values(){return this._get("values")}set values(e){if(null!=e){const t=typeof(e=Array.isArray(e)?e:[e])[0];e="string"===t||"number"===t?e.map(e=>new v({value:e})):"object"===t?e[0]instanceof v?e:e.map(e=>new v(e)):null}this._set("values",e)}};(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],V.prototype,"description",void 0),(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],V.prototype,"label",void 0),(0,s.Cg)([(0,a.MZ)(f.z4)],V.prototype,"symbol",void 0),(0,s.Cg)([(0,a.MZ)({type:[S.A],json:{write:!0,origins:{"web-scene":{write:!1}}}})],V.prototype,"alternateSymbols",void 0),(0,s.Cg)([(0,a.MZ)({json:{type:[[String]],read:{reader:e=>e?e.map(e=>new v({value:e[0],value2:e[1],value3:e[2]})):null},write:{writer:(e,t)=>{const i=[];for(const t of e){const e=[t.value,t.value2,t.value3].filter(w.Ru).map(e=>e.toString());i.push(e)}t.values=i}}}})],V.prototype,"values",null),V=(0,s.Cg)([(0,a.$K)("esri.renderers.support.UniqueValueClass")],V);let C=class extends((0,g.OU)(b.o)){constructor(e){super(e),this.heading=null,this.classes=null}};(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],C.prototype,"heading",void 0),(0,s.Cg)([(0,a.MZ)({type:[V],json:{write:{isRequired:!0}}})],C.prototype,"classes",void 0),C=(0,s.Cg)([(0,a.$K)("esri.renderers.support.UniqueValueGroup")],C);var M,x=i(94833),_=i(43668),z=i(97159),I=i(37757),A=i(85594),j=i(33910),q=i(59923),Z=i(93223),F=i(43937),k=i(36005);const E="uvInfos-watcher",U="uvGroups-watcher",T=(0,p.dp)(x.A);function D(e){return null!=e&&""!==e&&("string"!=typeof e||""!==e.trim()&&"<null>"!==e.toLowerCase())||(e=null),e+""}let O=M=class extends((0,y.h)(h.A)){constructor(e){super(e),this._valueInfoMap={},this._isDefaultSymbolDerived=!1,this._isInfosSource=null,this.type="unique-value",this.backgroundFillSymbol=null,this.orderByClassesEnabled=!1,this.valueExpressionTitle=null,this.legendOptions=null,this.defaultLabel=null,this.portal=null,this.styleOrigin=null,this.diff={uniqueValueInfos(e,t){if(!e&&!t)return;if(!e||!t)return{type:"complete",oldValue:e,newValue:t};let i=!1;const s={type:"collection",added:[],removed:[],changed:[],unchanged:[]};for(let r=0;r<t.length;r++){const l=e.find(e=>e.value===t[r].value);l?(0,u.Ui)(l,t[r])?(s.changed.push({type:"complete",oldValue:l,newValue:t[r]}),i=!0):s.unchanged.push({oldValue:l,newValue:t[r]}):(s.added.push(t[r]),i=!0)}for(let r=0;r<e.length;r++)t.find(t=>t.value===e[r].value)||(s.removed.push(e[r]),i=!0);return i?s:void 0}},this._set("uniqueValueInfos",[]),this._set("uniqueValueGroups",[])}get _cache(){return{compiledFunc:null}}set field(e){this._set("field",e),this._updateFieldDelimiter(),this._updateUniqueValues()}castField(e){return null==e||"function"==typeof e?e:(0,p.GX)(e)}writeField(e,t,i,s){"string"==typeof e?t[i]=e:s?.messages?(0,q.qt)(s,"UniqueValueRenderer.field","set to a function cannot be written to JSON"):l.A.getLogger(this).error(".field: cannot write field to JSON since it's not a string value")}set field2(e){this._set("field2",e),this._updateFieldDelimiter(),this._updateUniqueValues()}set field3(e){this._set("field3",e),this._updateUniqueValues()}set valueExpression(e){this._set("valueExpression",e),this._updateUniqueValues()}set defaultSymbol(e){this._isDefaultSymbolDerived=!1,this._set("defaultSymbol",e)}set fieldDelimiter(e){this._set("fieldDelimiter",e),this._updateUniqueValues()}readPortal(e,t,i){return i.portal||d.A.getDefault()}readStyleOrigin(e,t,i){if(t.styleName)return Object.freeze({styleName:t.styleName});if(t.styleUrl){const e=(0,z.f)(t.styleUrl,i);return Object.freeze({styleUrl:e})}}writeStyleOrigin(e,t,i,s){e.styleName?t.styleName=e.styleName:e.styleUrl&&(t.styleUrl=(0,z.t)(e.styleUrl,s))}set uniqueValueGroups(e){this.styleOrigin?l.A.getLogger(this).error("#uniqueValueGroups=","Cannot modify unique value groups of a UniqueValueRenderer created from a web style"):(this._set("uniqueValueGroups",e),this._updateInfosFromGroups(),this._isInfosSource=!1,this._watchUniqueValueGroups())}set uniqueValueInfos(e){this.styleOrigin?l.A.getLogger(this).error("#uniqueValueInfos=","Cannot modify unique value infos of a UniqueValueRenderer created from a web style"):(this._set("uniqueValueInfos",e),this._updateValueInfoMap(),this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos())}addUniqueValueInfo(e,t){if(this.styleOrigin)return void l.A.getLogger(this).error("#addUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");let i;i="object"==typeof e?T(e):new x.A({value:e,symbol:(0,j.dp)(t)}),this.uniqueValueInfos?.push(i),this._valueInfoMap[D(i.value)]=i,this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos()}removeUniqueValueInfo(e){if(this.styleOrigin)return void l.A.getLogger(this).error("#removeUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");const t=this.uniqueValueInfos;if(t)for(let i=0;i<t.length;i++){const s=t[i];if(String(s.value)===String(e)){delete this._valueInfoMap[D(e)],t.splice(i,1);break}}this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos()}async getUniqueValueInfo(e,t){let i=t;return this.valueExpression&&null==t?.arcade&&(i={...i,arcade:await(0,_.l)()}),this._getUniqueValueInfo(e,i)}getSymbol(e,t){if(this.valueExpression&&null==t?.arcade)return void l.A.getLogger(this).error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");const i=this._getUniqueValueInfo(e,t);return i?.symbol||this.defaultSymbol}async getSymbolAsync(e,t){let i=t;if(this.valueExpression&&null==i?.arcade){const e=await(0,_.l)(),{arcadeUtils:t}=e;t.hasGeometryOperations(this.valueExpression)&&await t.enableGeometryOperations(),i={...i,arcade:e}}const s=this._getUniqueValueInfo(e,i);return s?.symbol||this.defaultSymbol}get symbols(){const e=[];if(this._isInfosSource)for(const t of this.uniqueValueInfos??[])t.symbol&&e.push(t.symbol),e.push(...t.alternateSymbols??[]);else for(const t of this.uniqueValueGroups??[])for(const i of t.classes??[])i.symbol&&e.push(i.symbol),e.push(...i.alternateSymbols??[]);return this.defaultSymbol&&e.push(this.defaultSymbol),e}clone(){const e=new M({field:this.field,field2:this.field2,field3:this.field3,defaultLabel:this.defaultLabel,defaultSymbol:(0,r.o8)(this.defaultSymbol),orderByClassesEnabled:this.orderByClassesEnabled,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,fieldDelimiter:this.fieldDelimiter,visualVariables:(0,r.o8)(this.visualVariables),legendOptions:(0,r.o8)(this.legendOptions),authoringInfo:(0,r.o8)(this.authoringInfo),backgroundFillSymbol:(0,r.o8)(this.backgroundFillSymbol)});this._isDefaultSymbolDerived&&(e._isDefaultSymbolDerived=!0),e._set("portal",this.portal);const t=(0,r.o8)(this.uniqueValueInfos),i=(0,r.o8)(this.uniqueValueGroups);return this.styleOrigin&&(e._set("styleOrigin",Object.freeze((0,r.o8)(this.styleOrigin))),Object.freeze(t),Object.freeze(i)),e._set("uniqueValueInfos",t),e._updateValueInfoMap(),e._set("uniqueValueGroups",i),e._isInfosSource=this._isInfosSource,e._watchUniqueValueInfosAndGroups(),e}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}async collectRequiredFields(e,t){const i=[this.collectVVRequiredFields(e,t),this.collectSymbolFields(e,t)];await Promise.all(i)}async collectSymbolFields(e,t){const i=[...this.symbols.map(i=>i.collectRequiredFields(e,t)),(0,c.Dx)(e,t,null,this.valueExpression)];(0,c.rq)(e,t,this.field),(0,c.rq)(e,t,this.field2),(0,c.rq)(e,t,this.field3),await Promise.all(i)}populateFromStyle(){return(0,A.cF)(this.styleOrigin,{portal:this.portal}).then(e=>{const t=[];return this._valueInfoMap={},e?.data&&Array.isArray(e.data.items)&&e.data.items.forEach(i=>{const s=new I.A({styleUrl:e.styleUrl,styleName:e.styleName,portal:this.portal,name:i.name});this.defaultSymbol||i.name!==e.data.defaultItem||(this.defaultSymbol=s,this._isDefaultSymbolDerived=!0);const r=new x.A({value:i.name,symbol:s});t.push(r),this._valueInfoMap[D(i.name)]=r}),this._set("uniqueValueInfos",Object.freeze(t)),this._updateGroupsFromInfos(!0),this._isInfosSource=null,this._watchUniqueValueInfos(),!this.defaultSymbol&&this.uniqueValueInfos?.length&&(this.defaultSymbol=this.uniqueValueInfos[0].symbol,this._isDefaultSymbolDerived=!0),this})}_updateFieldDelimiter(){this.field&&this.field2&&!this.fieldDelimiter&&this._set("fieldDelimiter",",")}_updateUniqueValues(){null!=this._isInfosSource&&(this._isInfosSource?this._updateGroupsFromInfos():this._updateInfosFromGroups())}_updateValueInfoMap(){this._valueInfoMap={};const{uniqueValueInfos:e}=this;if(e)for(const t of e)this._valueInfoMap[D(t.value)]=t}_watchUniqueValueInfosAndGroups(){this._watchUniqueValueInfos(),this._watchUniqueValueGroups()}_watchUniqueValueInfos(){this.removeHandles(E);const{uniqueValueInfos:e}=this;if(e){const t=[];for(const i of e)t.push((0,o.wB)(()=>({symbol:i.symbol,alternateSymbols:i.alternateSymbols,value:i.value,label:i.label,description:i.description}),(e,t)=>{e!==t&&(this._updateGroupsFromInfos(),this._isInfosSource=!0)},{sync:!0}));this.addHandles(t,E)}}_watchUniqueValueGroups(){this.removeHandles(U);const{uniqueValueGroups:e}=this;if(e){const t=[];for(const i of e){t.push((0,o.wB)(()=>({classes:i.classes}),(e,t)=>{e!==t&&(this._updateInfosFromGroups(),this._isInfosSource=!1)},{sync:!0}));for(const e of i.classes??[])t.push((0,o.wB)(()=>({symbol:e.symbol,alternateSymbols:e.alternateSymbols,values:e.values,label:e.label,description:e.description}),(e,t)=>{e!==t&&(this._updateInfosFromGroups(),this._isInfosSource=!1)},{sync:!0}))}this.addHandles(t,U)}}_updateInfosFromGroups(){if(!this.uniqueValueGroups)return this._set("uniqueValueInfos",null),this._updateValueInfoMap(),void this._watchUniqueValueInfos();const e=[],{field:t,field2:i,field3:s,fieldDelimiter:r,uniqueValueGroups:l,valueExpression:n}=this;if(!t&&!n)return this._set("uniqueValueInfos",e),this._updateValueInfoMap(),void this._watchUniqueValueInfos();const o=!(!t||!i);for(const t of l)for(const l of t.classes??[]){const{alternateSymbols:t,symbol:n,label:a,values:u,description:p}=l;for(const l of u??[]){const{value:u,value2:c,value3:d}=l,h=[u];i&&h.push(c),s&&h.push(d);const y=o?h.join(r||""):h[0]??void 0;e.push(new x.A({alternateSymbols:t,symbol:n,label:a,value:y,description:p}))}}this._set("uniqueValueInfos",e),this._updateValueInfoMap(),this._watchUniqueValueInfos()}_updateGroupsFromInfos(e=!1){if(!this.uniqueValueInfos)return this._set("uniqueValueGroups",null),void this._watchUniqueValueGroups();const{field:t,field2:i,valueExpression:s,fieldDelimiter:r,uniqueValueInfos:l}=this;if(!t&&!s||!l.length)return this._set("uniqueValueGroups",[]),void this._watchUniqueValueGroups();const n=!(!t||!i),o=l.map(e=>{const{alternateSymbols:t,symbol:i,label:s,value:l,description:o}=e,[a,u,p]=n?l?.toString()?.split(r||"")||[]:[l];return new V({alternateSymbols:t,symbol:i,label:s,description:o,values:[new v({value:a,value2:u,value3:p})]})}),a=[new C({classes:o})];e&&Object.freeze(a),this._set("uniqueValueGroups",a),this._watchUniqueValueGroups()}_getUniqueValueInfo(e,t){return this.valueExpression?this._getUnqiueValueInfoForExpression(e,t):this._getUnqiueValueInfoForFields(e)}_getUnqiueValueInfoForExpression(e,t){const{viewingMode:i,scale:s,spatialReference:r,arcade:l,timeZone:n}=t??{};let o=this._cache.compiledFunc;const a=l.arcadeUtils;if(!o){const e=a.createSyntaxTree(this.valueExpression);o=a.createFunction(e),this._cache.compiledFunc=o}const u=a.executeFunction(o,a.createExecContext(e,a.getViewInfo({viewingMode:i,scale:s,spatialReference:r}),n));return this._valueInfoMap[D(u)]}_getUnqiueValueInfoForFields(e){const t=this.field,i=e.attributes;let s;if(this.field2){const e=this.field2,r=this.field3,l=[];t&&l.push(i[t]),e&&l.push(i[e]),r&&l.push(i[r]),s=l.join(this.fieldDelimiter||"")}else t&&(s=i[t]);return this._valueInfoMap[D(s)]}static fromPortalStyle(e,t){const i=new M(t?.properties);i._set("styleOrigin",Object.freeze({styleName:e})),i._set("portal",t?.portal||d.A.getDefault());const s=i.populateFromStyle();return s.catch(t=>{l.A.getLogger(this.prototype).error(`#fromPortalStyle('${e}'[, ...])`,"Failed to create unique value renderer from style name",t)}),s}static fromStyleUrl(e,t){const i=new M(t?.properties);i._set("styleOrigin",Object.freeze({styleUrl:e}));const s=i.populateFromStyle();return s.catch(t=>{l.A.getLogger(this.prototype).error(`#fromStyleUrl('${e}'[, ...])`,"Failed to create unique value renderer from style URL",t)}),s}};(0,s.Cg)([(0,a.MZ)({readOnly:!0})],O.prototype,"_cache",null),(0,s.Cg)([(0,Z.e)({uniqueValue:"unique-value"})],O.prototype,"type",void 0),(0,s.Cg)([(0,a.MZ)(f.As)],O.prototype,"backgroundFillSymbol",void 0),(0,s.Cg)([(0,a.MZ)({value:null,json:{type:String,read:{source:"field1"},write:{target:"field1"}}})],O.prototype,"field",null),(0,s.Cg)([(0,a.wg)("field")],O.prototype,"castField",null),(0,s.Cg)([(0,F.K)("field")],O.prototype,"writeField",null),(0,s.Cg)([(0,a.MZ)({type:String,value:null,json:{write:!0}})],O.prototype,"field2",null),(0,s.Cg)([(0,a.MZ)({type:String,value:null,json:{write:!0}})],O.prototype,"field3",null),(0,s.Cg)([(0,a.MZ)({type:Boolean,json:{name:"drawInClassOrder",default:!1,write:!0,origins:{"web-scene":{write:!1}}}})],O.prototype,"orderByClassesEnabled",void 0),(0,s.Cg)([(0,a.MZ)({type:String,value:null,json:{write:!0}})],O.prototype,"valueExpression",null),(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],O.prototype,"valueExpressionTitle",void 0),(0,s.Cg)([(0,a.MZ)({type:m.A,json:{write:!0}})],O.prototype,"legendOptions",void 0),(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],O.prototype,"defaultLabel",void 0),(0,s.Cg)([(0,a.MZ)((0,n.$N)({...f.z4},{json:{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}},origins:{"web-scene":{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}}}}}}))],O.prototype,"defaultSymbol",null),(0,s.Cg)([(0,a.MZ)({type:String,value:null,json:{write:!0}})],O.prototype,"fieldDelimiter",null),(0,s.Cg)([(0,a.MZ)({type:d.A,readOnly:!0})],O.prototype,"portal",void 0),(0,s.Cg)([(0,k.w)("portal",["styleName"])],O.prototype,"readPortal",null),(0,s.Cg)([(0,a.MZ)({readOnly:!0,json:{write:{enabled:!1,overridePolicy:()=>({enabled:!0})}}})],O.prototype,"styleOrigin",void 0),(0,s.Cg)([(0,k.w)("styleOrigin",["styleName","styleUrl"])],O.prototype,"readStyleOrigin",null),(0,s.Cg)([(0,F.K)("styleOrigin",{styleName:{type:String},styleUrl:{type:String}})],O.prototype,"writeStyleOrigin",null),(0,s.Cg)([(0,a.MZ)({type:[C],json:{read:{source:["uniqueValueGroups","uniqueValueInfos"],reader:(e,t,i)=>(t.uniqueValueGroups||function(e){const{field1:t,field2:i,field3:s,fieldDelimiter:r,uniqueValueInfos:l,valueExpression:n}=e,o=!(!t||!i);return[{classes:(l??[]).map(e=>{const{alternateSymbols:l,symbol:a,label:u,value:p,description:c}=e,[d,h,y]=o?p?.toString()?.split(r||"")||[]:[p],f=[];return(t||n)&&f.push(d),i&&f.push(h),s&&f.push(y),{alternateSymbols:l,symbol:a,label:u,values:[f],description:c}})}]}(t)).map(e=>C.fromJSON(e,i))},write:{overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0}}}}})],O.prototype,"uniqueValueGroups",null),(0,s.Cg)([(0,a.MZ)({type:[x.A],json:{read:!1,write:{isRequired:!0,overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0,isRequired:!0}}}}})],O.prototype,"uniqueValueInfos",null),O=M=(0,s.Cg)([(0,a.$K)("esri.renderers.UniqueValueRenderer")],O)},63988(e,t,i){i.d(t,{h:()=>C});var s=i(5482),r=i(91429),l=i(30524),n=i(2024),o=i(62724),a=i(23461),u=i(48940),p=i(2795),c=i(69622),d=i(66552),h=i(53966),y=i(59923);const f={color:n.A,size:u.A,opacity:o.A,rotation:a.A},m=new d.J({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"}),g=/^\[([^\]]+)\]$/i;let b=class extends c.A{constructor(){super(...arguments),this.colorVariables=null,this.opacityVariables=null,this.rotationVariables=null,this.sizeVariables=null}set visualVariables(e){if(this._resetVariables(),e=e?.filter(e=>!!e),e?.length){for(const t of e)switch(t.type){case"color":this.colorVariables.push(t);break;case"opacity":this.opacityVariables.push(t);break;case"rotation":this.rotationVariables.push(t);break;case"size":this.sizeVariables.push(t)}this.sizeVariables.length&&this.sizeVariables.some(e=>!!e.target)&&e.sort((e,t)=>{let i=null;return i=e.target===t.target?0:e.target?1:-1,i});for(let t=0;t<e.length;t++)e[t].index=t;this._set("visualVariables",e)}else this._set("visualVariables",e)}readVariables(e,t,i){const{rotationExpression:s,rotationType:r}=t,l=s?.match(g),n=l?.[1];if(n&&(e||(e=[]),e.push({type:"rotationInfo",rotationType:r,field:n})),e)return e.map(e=>{const t=m.read(e.type),s=f[t];s||(h.A.getLogger(this).warn(`Unknown variable type: ${t}`),(0,y.Yc)(i,"warning","visual-variable",`visualVariable of type '${t}' is not supported`,{definition:e}));const r=new s;return r.read(e,i),r})}writeVariables(e,t){const i=[];for(const s of e){const e=s.toJSON(t);e&&i.push(e)}return i}_resetVariables(){this.colorVariables=[],this.opacityVariables=[],this.rotationVariables=[],this.sizeVariables=[]}};(0,s.Cg)([(0,r.MZ)()],b.prototype,"visualVariables",null),b=(0,s.Cg)([(0,r.$K)("esri.renderers.visualVariables.VisualVariableFactory")],b);var v=i(69309),w=i(36005),S=i(43937);const V={base:p.A,key:"type",typeMap:{opacity:o.A,color:n.A,rotation:a.A,size:u.A}},C=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this._vvFactory=new b}set visualVariables(e){this._vvFactory.visualVariables=e,this._set("visualVariables",this._vvFactory.visualVariables)}readVisualVariables(e,t,i){return this._vvFactory.readVariables(e,t,i)}writeVisualVariables(e,t,i,s){t[i]=this._vvFactory.writeVariables(e,s)}get arcadeRequiredForVisualVariables(){return this.visualVariables?.some(({arcadeRequired:e})=>e)??!1}hasVisualVariables(e,t){return e?this.getVisualVariablesForType(e,t).length>0:this.getVisualVariablesForType("size",t).length>0||this.getVisualVariablesForType("color",t).length>0||this.getVisualVariablesForType("opacity",t).length>0||this.getVisualVariablesForType("rotation",t).length>0}getVisualVariablesForType(e,t){return this.visualVariables?.filter(i=>i.type===e&&("string"==typeof t?i.target===t:!1!==t||!i.target))??[]}async collectVVRequiredFields(e,t){let i=[];this.visualVariables&&(i=i.concat(this.visualVariables));for(const s of i)s&&(s.field&&(0,l.rq)(e,t,s.field),s.normalizationField&&(0,l.rq)(e,t,s.normalizationField),s.valueExpression&&(M(s.valueExpression,e,t)||await(0,l.Dx)(e,t,null,s.valueExpression)))}};return(0,s.Cg)([(0,r.MZ)({types:[V],value:null,json:{write:!0}})],i.prototype,"visualVariables",null),(0,s.Cg)([(0,w.w)("visualVariables",["visualVariables","rotationType","rotationExpression"])],i.prototype,"readVisualVariables",null),(0,s.Cg)([(0,S.K)("visualVariables")],i.prototype,"writeVisualVariables",null),i=(0,s.Cg)([(0,r.$K)("esri.renderers.mixins.VisualVariablesMixin")],i),i};function M(e,t,i){const s=(0,v.D)(e);return null!=s&&((0,l.rq)(t,i,s),!0)}},30943(e,t,i){i.d(t,{A:()=>k});var s,r=i(5482),l=i(66552),n=i(25482),o=i(4718),a=i(91429),u=i(56507);let p=s=class extends n.o{constructor(e){super(e),this.minValue=0,this.maxValue=0}clone(){return new s({minValue:this.minValue,maxValue:this.maxValue})}};(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],p.prototype,"minValue",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],p.prototype,"maxValue",void 0),p=s=(0,r.Cg)([(0,a.$K)("esri.renderers.support.AuthoringInfoClassBreakInfo")],p);const c=p;var d;let h=d=class extends n.o{constructor(e){super(e),this.field="",this.normalizationField="",this.label="",this.classBreakInfos=new Array}clone(){return new d({field:this.field,normalizationField:this.normalizationField,label:this.label,classBreakInfos:(0,o.o8)(this.classBreakInfos)})}};(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],h.prototype,"field",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],h.prototype,"normalizationField",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],h.prototype,"label",void 0),(0,r.Cg)([(0,a.MZ)({type:[c],json:{write:!0}})],h.prototype,"classBreakInfos",void 0),h=d=(0,r.Cg)([(0,a.$K)("esri.renderers.support.AuthoringInfoFieldInfo")],h);const y=h;var f,m=i(79901);let g=f=class extends n.o{constructor(e){super(e),this.label=null,this.size=null,this.value=null}clone(){return new f({label:this.label,value:this.value,size:this.size})}};(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],g.prototype,"label",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"size",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"value",void 0),g=f=(0,r.Cg)([(0,a.$K)("esri.renderers.support.AuthoringInfoSizeStop")],g);const b=g;var v;const w=new l.J({percentTotal:"percent-of-total",ratio:"ratio",percent:"percent"}),S=new l.J({sizeInfo:"size",colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation"}),V={key:e=>"number"==typeof e?"number":"string",typeMap:{number:Number,string:String},base:null},C=["high-to-low","above-and-below","centered-on","extremes"],M=[...new Set(["high-to-low","above-and-below","centered-on","extremes","above","below","high-to-low","above-and-below","above","below","reference-size","spike"])],x=["seconds","minutes","hours","days","months","years"];let _=v=class extends n.o{constructor(e){super(e),this.endTime=null,this.field=null,this.maxSliderValue=null,this.minSliderValue=null,this.startTime=null,this.type=null,this.units=null}castEndTime(e){return"string"==typeof e||"number"==typeof e?e:null}get normalizationField(){return"reference-size"===this.theme||"spike"===this.theme?this._get("normalizationField"):null}set normalizationField(e){this._set("normalizationField",e)}get referenceSizeScale(){return"reference-size"===this.theme?this._get("referenceSizeScale"):null}set referenceSizeScale(e){this._set("referenceSizeScale",e)}get referenceSizeSymbolStyle(){return"reference-size"===this.theme?this._get("referenceSizeSymbolStyle"):null}set referenceSizeSymbolStyle(e){this._set("referenceSizeSymbolStyle",e)}get spikeSymbolStyle(){return"spike"===this.theme?this._get("spikeSymbolStyle"):null}set spikeSymbolStyle(e){this._set("spikeSymbolStyle",e)}castStartTime(e){return"string"==typeof e||"number"==typeof e?e:null}get sizeStops(){return"reference-size"===this.theme||"spike"===this.theme?this._get("sizeStops"):null}set sizeStops(e){this._set("sizeStops",e)}get style(){return"color"===this.type?this._get("style"):null}set style(e){this._set("style",e)}get theme(){return"color"===this.type||"size"===this.type?this._get("theme")||"high-to-low":null}set theme(e){this._set("theme",e)}clone(){return new v({endTime:this.endTime,field:this.field,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,normalizationField:this.normalizationField,referenceSizeScale:this.referenceSizeScale,referenceSizeSymbolStyle:this.referenceSizeSymbolStyle,spikeSymbolStyle:this.spikeSymbolStyle,sizeStops:(0,o.o8)(this.sizeStops),startTime:this.startTime,style:this.style,theme:this.theme,type:this.type,units:this.units})}};(0,r.Cg)([(0,a.MZ)({types:V,json:{write:!0}})],_.prototype,"endTime",void 0),(0,r.Cg)([(0,m.w)("endTime")],_.prototype,"castEndTime",null),(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],_.prototype,"field",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],_.prototype,"maxSliderValue",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],_.prototype,"minSliderValue",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{origins:{"web-scene":{write:!1}},write:!0}})],_.prototype,"normalizationField",null),(0,r.Cg)([(0,a.MZ)({type:Number,value:null,json:{origins:{"web-scene":{write:!1}},write:!0}})],_.prototype,"referenceSizeScale",null),(0,r.Cg)([(0,a.MZ)({type:["circle","diamond","hexagon-flat","hexagon-pointy","square"],value:null,json:{origins:{"web-scene":{write:!1}},write:!0}})],_.prototype,"referenceSizeSymbolStyle",null),(0,r.Cg)([(0,a.MZ)({type:["triangle-closed-outline","triangle-gradient-fill-closed","triangle-gradient-fill-closed-outline","triangle-gradient-fill-open","triangle-gradient-fill-open-outline","triangle-open-outline","triangle-solid-fill-closed","triangle-solid-fill-closed-outline","triangle-solid-fill-open","triangle-solid-fill-open-outline"],value:null,json:{origins:{"web-scene":{write:!1}},write:!0}})],_.prototype,"spikeSymbolStyle",null),(0,r.Cg)([(0,a.MZ)({types:V,json:{write:!0}})],_.prototype,"startTime",void 0),(0,r.Cg)([(0,m.w)("startTime")],_.prototype,"castStartTime",null),(0,r.Cg)([(0,a.MZ)({type:[b],json:{origins:{"web-scene":{write:!1}},write:!0}})],_.prototype,"sizeStops",null),(0,r.Cg)([(0,a.MZ)({type:w.apiValues,value:null,json:{type:w.jsonValues,read:w.read,write:w.write}})],_.prototype,"style",null),(0,r.Cg)([(0,a.MZ)({type:M,value:null,json:{type:M,origins:{"web-scene":{type:C,write:{writer:(e,t)=>{C.includes(e)&&(t.theme=e)}}}},write:!0}})],_.prototype,"theme",null),(0,r.Cg)([(0,a.MZ)({type:S.apiValues,json:{type:S.jsonValues,read:S.read,write:S.write}})],_.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({type:x,json:{type:x,write:!0}})],_.prototype,"units",void 0),_=v=(0,r.Cg)([(0,a.$K)("esri.renderers.support.AuthoringInfoVisualVariable")],_);const z=_;var I,A=i(95349),j=i(36005);const q=new l.J({esriClassifyDefinedInterval:"defined-interval",esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation"}),Z=new l.J({classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density",flow:"flow"}),F=["inches","feet","yards","miles","nautical-miles","millimeters","centimeters","decimeters","meters","kilometers"];let k=I=class extends n.o{constructor(e){super(e),this.colorRamp=null,this.fadeRatio=null,this.isAutoGenerated=!1,this.lengthUnit=null,this.maxSliderValue=null,this.minSliderValue=null,this.visualVariables=null}get classificationMethod(){const e=this._get("classificationMethod"),t=this.type;return t&&"relationship"!==t?"class-breaks-size"===t||"class-breaks-color"===t?e||"manual":null:e}set classificationMethod(e){this._set("classificationMethod",e)}readColorRamp(e){return e?(0,A.r)(e):void 0}get fields(){return this.type&&"predominance"!==this.type?null:this._get("fields")}set fields(e){this._set("fields",e)}get field1(){return this.type&&"relationship"!==this.type?null:this._get("field1")}set field1(e){this._set("field1",e)}get field2(){return this.type&&"relationship"!==this.type?null:this._get("field2")}set field2(e){this._set("field2",e)}get flowTheme(){return"flow"===this.type?this._get("flowTheme"):null}set flowTheme(e){this._set("flowTheme",e)}get focus(){return this.type&&"relationship"!==this.type?null:this._get("focus")}set focus(e){this._set("focus",e)}get numClasses(){return this.type&&"relationship"!==this.type?null:this._get("numClasses")}set numClasses(e){this._set("numClasses",e)}get statistics(){return"univariate-color-size"===this.type&&"above-and-below"===this.univariateTheme?this._get("statistics"):null}set statistics(e){this._set("statistics",e)}get standardDeviationInterval(){const e=this.type;return e&&"relationship"!==e&&"class-breaks-size"!==e&&"class-breaks-color"!==e||this.classificationMethod&&"standard-deviation"!==this.classificationMethod?null:this._get("standardDeviationInterval")}set standardDeviationInterval(e){this._set("standardDeviationInterval",e)}get type(){return this._get("type")}set type(e){let t=e;"classed-size"===e?t="class-breaks-size":"classed-color"===e&&(t="class-breaks-color"),this._set("type",t)}get univariateSymbolStyle(){return"univariate-color-size"===this.type&&"above-and-below"===this.univariateTheme?this._get("univariateSymbolStyle"):null}set univariateSymbolStyle(e){this._set("univariateSymbolStyle",e)}get univariateTheme(){return"univariate-color-size"===this.type?this._get("univariateTheme"):null}set univariateTheme(e){this._set("univariateTheme",e)}clone(){return new I({classificationMethod:this.classificationMethod,colorRamp:(0,o.o8)(this.colorRamp),fadeRatio:(0,o.o8)(this.fadeRatio),fields:this.fields?.slice(),field1:(0,o.o8)(this.field1),field2:(0,o.o8)(this.field2),isAutoGenerated:this.isAutoGenerated,focus:this.focus,numClasses:this.numClasses,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,lengthUnit:this.lengthUnit,statistics:this.statistics,standardDeviationInterval:this.standardDeviationInterval,type:this.type,visualVariables:this.visualVariables&&this.visualVariables.map(e=>e.clone()),univariateSymbolStyle:this.univariateSymbolStyle,univariateTheme:this.univariateTheme,flowTheme:this.flowTheme})}};(0,r.Cg)([(0,a.MZ)({type:q.apiValues,value:null,json:{type:q.jsonValues,read:q.read,write:q.write,origins:{"web-document":{default:"manual",type:q.jsonValues,read:q.read,write:q.write}}}})],k.prototype,"classificationMethod",null),(0,r.Cg)([(0,a.MZ)({types:A.g,json:{write:!0}})],k.prototype,"colorRamp",void 0),(0,r.Cg)([(0,j.w)("colorRamp")],k.prototype,"readColorRamp",null),(0,r.Cg)([(0,a.MZ)({json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],k.prototype,"fadeRatio",void 0),(0,r.Cg)([(0,a.MZ)({type:[String],value:null,json:{write:!0}})],k.prototype,"fields",null),(0,r.Cg)([(0,a.MZ)({type:y,value:null,json:{write:!0}})],k.prototype,"field1",null),(0,r.Cg)([(0,a.MZ)({type:y,value:null,json:{write:!0}})],k.prototype,"field2",null),(0,r.Cg)([(0,a.MZ)({type:["flow-line","wave-front"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],k.prototype,"flowTheme",null),(0,r.Cg)([(0,a.MZ)({type:["HH","HL","LH","LL"],value:null,json:{write:!0}})],k.prototype,"focus",null),(0,r.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1}}}})],k.prototype,"isAutoGenerated",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,value:null,json:{type:u.jz,write:!0}})],k.prototype,"numClasses",null),(0,r.Cg)([(0,a.MZ)({type:F,json:{type:F,read:!1,write:!1,origins:{"web-scene":{read:!0,write:!0}}}})],k.prototype,"lengthUnit",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],k.prototype,"maxSliderValue",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],k.prototype,"minSliderValue",void 0),(0,r.Cg)([(0,a.MZ)({type:Object,value:null,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],k.prototype,"statistics",null),(0,r.Cg)([(0,a.MZ)({type:[.25,.33,.5,1],value:null,json:{type:[.25,.33,.5,1],write:!0}})],k.prototype,"standardDeviationInterval",null),(0,r.Cg)([(0,a.MZ)({type:Z.apiValues,value:null,json:{type:Z.jsonValues,read:Z.read,write:Z.write}})],k.prototype,"type",null),(0,r.Cg)([(0,a.MZ)({type:[z],json:{write:!0}})],k.prototype,"visualVariables",void 0),(0,r.Cg)([(0,a.MZ)({type:["caret","circle-caret","arrow","circle-arrow","plus-minus","circle-plus-minus","square","circle","triangle","happy-sad","thumb","custom"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],k.prototype,"univariateSymbolStyle",null),(0,r.Cg)([(0,a.MZ)({type:["high-to-low","above-and-below","above","below"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],k.prototype,"univariateTheme",null),k=I=(0,r.Cg)([(0,a.$K)("esri.renderers.support.AuthoringInfo")],k)},88542(e,t,i){i.d(t,{A:()=>u});var s,r=i(5482),l=i(25482),n=i(91429),o=i(49849),a=i(40863);let u=s=class extends l.o{constructor(e){super(e),this.description=null,this.label=null,this.minValue=null,this.maxValue=0,this.symbol=null,this.alternateSymbols=null}clone(){return new s({alternateSymbols:this.alternateSymbols?.map(e=>e.clone()),description:this.description,label:this.label,minValue:this.minValue,maxValue:this.maxValue,symbol:this.symbol?.clone()??null})}};(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,r.Cg)([(0,n.MZ)({type:Number,json:{read:{source:"classMinValue"},write:{target:"classMinValue"}}})],u.prototype,"minValue",void 0),(0,r.Cg)([(0,n.MZ)({type:Number,json:{read:{source:"classMaxValue"},write:{target:"classMaxValue"}}})],u.prototype,"maxValue",void 0),(0,r.Cg)([(0,n.MZ)(o.Wp)],u.prototype,"symbol",void 0),(0,r.Cg)([(0,n.MZ)({type:[a.A],json:{write:!0,origins:{"web-scene":{write:!1}}}})],u.prototype,"alternateSymbols",void 0),u=s=(0,r.Cg)([(0,n.$K)("esri.renderers.support.ClassBreakInfo")],u)},20061(e,t,i){i.d(t,{A:()=>h});var s,r=i(5482),l=i(69540),n=i(66552),o=i(25482),a=i(91429),u=i(56507),p=i(93223);const c=(0,n.O)()({ascendingValues:"ascending-values",descendingValues:"descending-values"});let d=s=class extends((0,l.OU)(o.o)){static from(e){return(0,u.PZ)(s,e)}constructor(e){super(e),this.title=null,this.order=null}};(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],d.prototype,"title",void 0),(0,r.Cg)([(0,p.e)(c)],d.prototype,"order",void 0),d=s=(0,r.Cg)([(0,a.$K)("esri.renderers.support.RendererLegendOptions")],d);const h=d},94833(e,t,i){i.d(t,{A:()=>u});var s,r=i(5482),l=i(25482),n=i(91429),o=i(49849),a=i(40863);let u=s=class extends l.o{constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.alternateSymbols=null,this.value=null}clone(){return new s({alternateSymbols:this.alternateSymbols?.map(e=>e.clone()),value:this.value,description:this.description,label:this.label,symbol:this.symbol?this.symbol.clone():null})}};(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,r.Cg)([(0,n.MZ)(o.Wp)],u.prototype,"symbol",void 0),(0,r.Cg)([(0,n.MZ)({type:[a.A],json:{write:!0,origins:{"web-scene":{write:!1}}}})],u.prototype,"alternateSymbols",void 0),(0,r.Cg)([(0,n.MZ)(o.Ug)],u.prototype,"value",void 0),u=s=(0,r.Cg)([(0,n.$K)("esri.renderers.support.UniqueValueInfo")],u)},49849(e,t,i){i.d(t,{As:()=>c,Ug:()=>d,Wp:()=>p,z4:()=>u});var s=i(93637),r=i(90360),l=i(65365),n=i(20378),o=i(73838),a=i(33910);const u={types:a.xK,json:{write:{writer:o.M9},origins:{"web-scene":{types:a.On,write:{writer:o.M9},read:{reader:(0,r.C)({types:a.On})}}}}},p=(0,s.$N)({json:{origins:{"web-scene":{write:{isRequired:!0}}}}},u),c={types:{base:n.A,key:"type",typeMap:{"simple-fill":a.Es.typeMap["simple-fill"],"picture-fill":a.Es.typeMap["picture-fill"],"polygon-3d":a.Es.typeMap["polygon-3d"],cim:a.Es.typeMap.cim}},json:{write:{writer:o.M9},origins:{"web-scene":{type:l.A,write:{writer:o.M9}}}}},d={cast:e=>null==e||"string"==typeof e||"number"==typeof e?e:`${e}`,json:{type:String,write:{writer:(e,t)=>{t.value=e?.toString()}}}}},2024(e,t,i){i.d(t,{A:()=>a});var s,r=i(5482),l=i(91429),n=i(2795),o=i(72500);let a=s=class extends n.A{constructor(e){super(e),this.type="color",this.normalizationField=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}set stops(e){e&&Array.isArray(e)&&(e=e.filter(e=>!!e)).sort((e,t)=>e.value-t.value),this._set("stops",e)}clone(){return new s({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map(e=>e.clone()),legendOptions:this.legendOptions?.clone()})}_interpolateData(){return this.stops&&this.stops.map(e=>e.value||0)}};(0,r.Cg)([(0,l.MZ)({readOnly:!0})],a.prototype,"cache",null),(0,r.Cg)([(0,l.MZ)({type:["color"],json:{type:["colorInfo"]}})],a.prototype,"type",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],a.prototype,"normalizationField",void 0),(0,r.Cg)([(0,l.MZ)({type:[o.A],json:{write:!0}})],a.prototype,"stops",null),a=s=(0,r.Cg)([(0,l.$K)("esri.renderers.visualVariables.ColorVariable")],a)},62724(e,t,i){i.d(t,{A:()=>f});var s,r=i(5482),l=i(91429),n=i(2795),o=i(25482),a=i(56507),u=i(78553),p=i(36005),c=i(43937);let d=s=class extends o.o{constructor(e){super(e),this.label=null,this.opacity=null,this.value=null}readOpacity(e,t){return(0,u.D)(t.transparency)}writeOpacity(e,t,i){t[i]=(0,u.p)(e)}clone(){return new s({label:this.label,opacity:this.opacity,value:this.value})}};(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],d.prototype,"label",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{type:a.jz,write:{target:"transparency",isRequired:!0}}})],d.prototype,"opacity",void 0),(0,r.Cg)([(0,p.w)("opacity",["transparency"])],d.prototype,"readOpacity",null),(0,r.Cg)([(0,c.K)("opacity")],d.prototype,"writeOpacity",null),(0,r.Cg)([(0,l.MZ)({type:Number,json:{write:{isRequired:!0}}})],d.prototype,"value",void 0),d=s=(0,r.Cg)([(0,l.$K)("esri.renderers.visualVariables.support.OpacityStop")],d);const h=d;var y;let f=y=class extends n.A{constructor(e){super(e),this.type="opacity",this.normalizationField=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}set stops(e){e&&Array.isArray(e)&&(e=e.filter(e=>!!e)).sort((e,t)=>e.value-t.value),this._set("stops",e)}clone(){return new y({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map(e=>e.clone()),legendOptions:this.legendOptions?.clone()})}_interpolateData(){return this.stops&&this.stops.map(e=>e.value||0)}};(0,r.Cg)([(0,l.MZ)({readOnly:!0})],f.prototype,"cache",null),(0,r.Cg)([(0,l.MZ)({type:["opacity"],json:{type:["transparencyInfo"]}})],f.prototype,"type",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],f.prototype,"normalizationField",void 0),(0,r.Cg)([(0,l.MZ)({type:[h],json:{write:!0}})],f.prototype,"stops",null),f=y=(0,r.Cg)([(0,l.$K)("esri.renderers.visualVariables.OpacityVariable")],f)},23461(e,t,i){i.d(t,{A:()=>o});var s,r=i(5482),l=i(91429),n=i(2795);let o=s=class extends n.A{constructor(e){super(e),this.axis=null,this.type="rotation",this.rotationType="geographic"}get cache(){return{hasExpression:!!this.valueExpression,compiledFunc:null}}clone(){return new s({axis:this.axis,rotationType:this.rotationType,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,legendOptions:this.legendOptions?.clone()})}};(0,r.Cg)([(0,l.MZ)({readOnly:!0})],o.prototype,"cache",null),(0,r.Cg)([(0,l.MZ)({type:["heading","tilt","roll"],json:{origins:{"web-scene":{default:"heading",write:!0}}}})],o.prototype,"axis",void 0),(0,r.Cg)([(0,l.MZ)({type:["rotation"],json:{type:["rotationInfo"]}})],o.prototype,"type",void 0),(0,r.Cg)([(0,l.MZ)({type:["geographic","arithmetic"],json:{write:!0,origins:{"web-document":{write:!0,default:"geographic"}}}})],o.prototype,"rotationType",void 0),o=s=(0,r.Cg)([(0,l.$K)("esri.renderers.visualVariables.RotationVariable")],o)},48940(e,t,i){i.d(t,{A:()=>M});var s=i(5482),r=i(66552),l=i(53966),n=i(91429),o=i(2795),a=i(90629),u=i(12330),p=i(41078);let c=class extends p.A{constructor(e){super(e),this.customValues=null}};(0,s.Cg)([(0,n.MZ)({type:[Number],json:{write:!0}})],c.prototype,"customValues",void 0),c=(0,s.Cg)([(0,n.$K)("esri.renderers.visualVariables.support.SizeVariableLegendOptions")],c);const d=c;var h,y=i(98205),f=i(29266),m=i(59923),g=i(36005),b=i(43937);const v=new r.J({width:"width",depth:"depth",height:"height",widthAndDepth:"width-and-depth",all:"all"}),w=new r.J({unknown:"unknown",inch:"inches",foot:"feet",yard:"yards",mile:"miles","nautical-mile":"nautical-miles",millimeter:"millimeters",centimeter:"centimeters",decimeter:"decimeters",meter:"meters",kilometer:"kilometers"});function S(e){if(null!=e)return"string"==typeof e||"number"==typeof e?function(e){return(0,a.cr)(e)}(e):"size"===e.type?(0,y.of)(e)?e:(delete(e={...e}).type,new M(e)):void 0}function V(e,t,i){if("object"!=typeof e)return e;if("web-scene"===i.origin)return;const s=new M;return s.read(e,i),s}function C(e,t,i,s){"number"!=typeof e?"web-scene"!==s?.origin?t[i]=e.toJSON(s):(0,m.Yc)(s,"error","property",`Size variable '${i}' can only be a number in web scenes.`):t[i]=e}let M=h=class extends o.A{constructor(e){super(e),this.axis=null,this.legendOptions=null,this.normalizationField=null,this.scaleBy=null,this.target=null,this.type="size",this.useSymbolValue=null,this.valueExpression=null,this.valueRepresentation=null,this.valueUnit=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null,isScaleDriven:null!=this.valueExpression&&f.RV.test(this.valueExpression)}}set index(e){(0,y.of)(this.maxSize)&&(this.maxSize.index=`visualVariables[${e}].maxSize`),(0,y.of)(this.minSize)&&(this.minSize.index=`visualVariables[${e}].minSize`),this._set("index",e)}get inputValueType(){return(0,y.eh)(this)}set maxDataValue(e){e&&this.stops&&(l.A.getLogger(this).warn("cannot set maxDataValue when stops is not null."),e=null),this._set("maxDataValue",e)}get maxSize(){return this._get("maxSize")}set maxSize(e){e&&this.stops&&(l.A.getLogger(this).warn("cannot set maxSize when stops is not null."),e=null),this._set("maxSize",S(e))}readMaxSize(e,t,i){return V(e,0,i)}writeMaxSize(e,t,i,s){return C(e,t,i,s)}set minDataValue(e){e&&this.stops&&(l.A.getLogger(this).warn("cannot set minDataValue when stops is not null."),e=null),this._set("minDataValue",e)}get minSize(){return this._get("minSize")}set minSize(e){e&&this.stops&&(l.A.getLogger(this).warn("cannot set minSize when stops is not null."),e=null),this._set("minSize",S(e))}readMinSize(e,t,i){return V(e,0,i)}writeMinSize(e,t,i,s){return C(e,t,i,s)}get arcadeRequired(){return!!this.valueExpression||null!=this.minSize&&"object"==typeof this.minSize&&this.minSize.arcadeRequired||null!=this.maxSize&&"object"==typeof this.maxSize&&this.maxSize.arcadeRequired}set stops(e){null==this.minDataValue&&null==this.maxDataValue&&null==this.minSize&&null==this.maxSize?e&&Array.isArray(e)&&(e=e.filter(e=>!!e)).sort((e,t)=>e.value-t.value):e&&(l.A.getLogger(this).warn("cannot set stops when one of minDataValue, maxDataValue, minSize or maxSize is not null."),e=null),this._set("stops",e)}get transformationType(){return(0,y.KZ)(this,this.inputValueType)}readValueExpression(e,t){return e||t.expression&&"$view.scale"}writeValueExpressionWebScene(e,t,i,s){if(f.RV.test(e)){if(s?.messages){const e=this.index;(0,m.qt)(s,`visualVariables[${"string"==typeof e?e:`visualVariables[${e}]`}].valueExpression`,"SizeVariable with '$view.scale' valueExpression is not supported in Web Scene. Please remove this property to save the Web Scene.")}}else t[i]=e}readValueUnit(e){return e?w.read(e):null}clone(){return new h({axis:this.axis,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,maxDataValue:this.maxDataValue,maxSize:(0,y.of)(this.maxSize)?this.maxSize.clone():this.maxSize,minDataValue:this.minDataValue,minSize:(0,y.of)(this.minSize)?this.minSize.clone():this.minSize,normalizationField:this.normalizationField,stops:this.stops?.map(e=>e.clone()),target:this.target,useSymbolValue:this.useSymbolValue,valueRepresentation:this.valueRepresentation,valueUnit:this.valueUnit,legendOptions:this.legendOptions?.clone()})}flipSizes(){if("clamped-linear"===this.transformationType){const{minSize:e,maxSize:t}=this;return this.minSize=t,this.maxSize=e,this}if("stops"===this.transformationType){const e=this.stops;if(!e)return this;const t=e.map(e=>e.size).reverse(),i=e.length;for(let s=0;s<i;s++)e[s].size=t[s];return this}return this}_interpolateData(){return this.stops?.map(e=>e.value||0)}};(0,s.Cg)([(0,n.MZ)({readOnly:!0})],M.prototype,"cache",null),(0,s.Cg)([(0,n.MZ)({type:v.apiValues,json:{type:v.jsonValues,origins:{"web-map":{read:!1}},read:v.read,write:v.write}})],M.prototype,"axis",void 0),(0,s.Cg)([(0,n.MZ)()],M.prototype,"index",null),(0,s.Cg)([(0,n.MZ)({type:String,readOnly:!0})],M.prototype,"inputValueType",null),(0,s.Cg)([(0,n.MZ)({type:d,json:{write:!0}})],M.prototype,"legendOptions",void 0),(0,s.Cg)([(0,n.MZ)({type:Number,value:null,json:{write:!0}})],M.prototype,"maxDataValue",null),(0,s.Cg)([(0,n.MZ)({type:Number,useTypeForAutocast:!1,value:null,json:{write:!0}})],M.prototype,"maxSize",null),(0,s.Cg)([(0,g.w)("maxSize")],M.prototype,"readMaxSize",null),(0,s.Cg)([(0,b.K)("maxSize")],M.prototype,"writeMaxSize",null),(0,s.Cg)([(0,n.MZ)({type:Number,value:null,json:{write:!0}})],M.prototype,"minDataValue",null),(0,s.Cg)([(0,n.MZ)({type:Number,useTypeForAutocast:!1,value:null,json:{write:!0}})],M.prototype,"minSize",null),(0,s.Cg)([(0,g.w)("minSize")],M.prototype,"readMinSize",null),(0,s.Cg)([(0,b.K)("minSize")],M.prototype,"writeMinSize",null),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],M.prototype,"normalizationField",void 0),(0,s.Cg)([(0,n.MZ)({readOnly:!0})],M.prototype,"arcadeRequired",null),(0,s.Cg)([(0,n.MZ)({type:String})],M.prototype,"scaleBy",void 0),(0,s.Cg)([(0,n.MZ)({type:[u.A],value:null,json:{write:!0}})],M.prototype,"stops",null),(0,s.Cg)([(0,n.MZ)({type:["outline"],json:{write:!0}})],M.prototype,"target",void 0),(0,s.Cg)([(0,n.MZ)({type:String,readOnly:!0})],M.prototype,"transformationType",null),(0,s.Cg)([(0,n.MZ)({type:["size"],json:{type:["sizeInfo"]}})],M.prototype,"type",void 0),(0,s.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0,origins:{"web-map":{read:!1}}}})],M.prototype,"useSymbolValue",void 0),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],M.prototype,"valueExpression",void 0),(0,s.Cg)([(0,g.w)("valueExpression",["valueExpression","expression"])],M.prototype,"readValueExpression",null),(0,s.Cg)([(0,b.K)("web-scene","valueExpression")],M.prototype,"writeValueExpressionWebScene",null),(0,s.Cg)([(0,n.MZ)({type:["radius","diameter","area","width","distance"],json:{write:!0}})],M.prototype,"valueRepresentation",void 0),(0,s.Cg)([(0,n.MZ)({type:w.apiValues,json:{write:w.write,origins:{"web-map":{read:!1},"web-scene":{write:!0},"portal-item":{write:!0}}}})],M.prototype,"valueUnit",void 0),(0,s.Cg)([(0,g.w)("valueUnit")],M.prototype,"readValueUnit",null),M=h=(0,s.Cg)([(0,n.$K)("esri.renderers.visualVariables.SizeVariable")],M)},2795(e,t,i){i.d(t,{A:()=>c});var s=i(5482),r=i(66552),l=i(25482),n=i(53966),o=i(91429),a=i(56507),u=i(41078);const p=new r.J({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"});let c=class extends l.o{constructor(e){super(e),this.index=null,this.type=null,this.field=null,this.valueExpression=null,this.valueExpressionTitle=null,this.legendOptions=null}castField(e){return null==e?e:"function"==typeof e?(n.A.getLogger(this).error(".field: field must be a string value"),null):(0,a.GX)(e)}get arcadeRequired(){return!!this.valueExpression}clone(){}};(0,s.Cg)([(0,o.MZ)()],c.prototype,"index",void 0),(0,s.Cg)([(0,o.MZ)({type:p.apiValues,readOnly:!0,json:{read:p.read,write:{writer:p.write,isRequired:!0}}})],c.prototype,"type",void 0),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],c.prototype,"field",void 0),(0,s.Cg)([(0,o.wg)("field")],c.prototype,"castField",null),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],c.prototype,"valueExpression",void 0),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],c.prototype,"valueExpressionTitle",void 0),(0,s.Cg)([(0,o.MZ)({readOnly:!0})],c.prototype,"arcadeRequired",null),(0,s.Cg)([(0,o.MZ)({type:u.A,json:{write:!0}})],c.prototype,"legendOptions",void 0),c=(0,s.Cg)([(0,o.$K)("esri.renderers.visualVariables.VisualVariable")],c)},72500(e,t,i){i.d(t,{A:()=>c});var s,r=i(5482),l=i(68197),n=i(25482),o=i(91429),a=i(56507),u=i(43937);let p=s=class extends n.o{constructor(e){super(e),this.color=null,this.label=null,this.value=null}writeValue(e,t,i){t[i]=e??0}clone(){return new s({color:this.color&&this.color.clone(),label:this.label,value:this.value})}};(0,r.Cg)([(0,o.MZ)({type:l.A,json:{type:[a.jz],write:{isRequired:!0}}})],p.prototype,"color",void 0),(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],p.prototype,"label",void 0),(0,r.Cg)([(0,o.MZ)({type:Number,json:{write:{writerEnsuresNonNull:!0}}})],p.prototype,"value",void 0),(0,r.Cg)([(0,u.K)("value")],p.prototype,"writeValue",null),p=s=(0,r.Cg)([(0,o.$K)("esri.renderers.visualVariables.support.ColorStop")],p);const c=p},12330(e,t,i){i.d(t,{A:()=>a});var s,r=i(5482),l=i(25482),n=i(90629),o=i(91429);let a=s=class extends l.o{constructor(e){super(e),this.label=null,this.value=null,this.useMinValue=null,this.useMaxValue=null}get size(){return this._get("size")}set size(e){this._set("size",e)}clone(){return new s({label:this.label,size:this.size,value:this.value,useMaxValue:this.useMaxValue,useMinValue:this.useMinValue})}};(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"label",void 0),(0,r.Cg)([(0,o.MZ)({type:Number,cast:n.cr,json:{write:{isRequired:!0}}})],a.prototype,"size",null),(0,r.Cg)([(0,o.MZ)({type:Number,json:{write:{isRequired:!0}}})],a.prototype,"value",void 0),(0,r.Cg)([(0,o.MZ)({type:Boolean,json:{write:!1}})],a.prototype,"useMinValue",void 0),(0,r.Cg)([(0,o.MZ)({type:Boolean,json:{write:!1}})],a.prototype,"useMaxValue",void 0),a=s=(0,r.Cg)([(0,o.$K)("esri.renderers.visualVariables.support.SizeStop")],a)},41078(e,t,i){i.d(t,{A:()=>a});var s=i(5482),r=i(69540),l=i(25482),n=i(91429);let o=class extends((0,r.OU)(l.o)){constructor(e){super(e),this.showLegend=null,this.title=null}};(0,s.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0}})],o.prototype,"showLegend",void 0),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],o.prototype,"title",void 0),o=(0,s.Cg)([(0,n.$K)("esri.renderers.visualVariables.support.VisualVariableLegendOptions")],o);const a=o},98205(e,t,i){function s(e){return e&&"esri.renderers.visualVariables.SizeVariable"===e.declaredClass}function r(e){return null!=e&&!isNaN(e)&&isFinite(e)}function l(e){return e.valueExpression?"expression":e.field&&"string"==typeof e.field?"field":"unknown"}function n(e,t){const i=t||l(e),s=e.valueUnit||"unknown";return"unknown"===i?"constant":e.stops?"stops":null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?"clamped-linear":"unknown"===s?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?"proportional":"additive":"identity":"real-world-size"}i.d(t,{KZ:()=>n,eh:()=>l,gf:()=>r,of:()=>s})},29266(e,t,i){i.d(t,{RV:()=>c,UT:()=>d,Yz:()=>v}),i(68197);var s=i(52106),r=i(53966),l=i(31756),n=i(98205);const o=()=>r.A.getLogger("esri.renderers.visualVariables.support.visualVariableUtils"),a=e=>o().warn(`The visualVariable should be an instance of esri.renderers.visualVariables.${e}`),u=()=>o().error("Use of arcade expressions requires an arcade context"),p=(new s.A,Math.PI),c=/^\s*(return\s+)?\$view\.scale\s*(;)?\s*$/i;function d(e,t,i){return function(e,t,i){const s="visualVariables"in e?e.visualVariables?.find(e=>"rotation"===e.type):e;if(!s)return;if("esri.renderers.visualVariables.RotationVariable"!==s.declaredClass)return void a("RotationVariable");const r=s.axis||"heading",l="heading"===r&&"arithmetic"===s.rotationType?90:0,n="heading"===r&&"arithmetic"===s.rotationType?-1:1,o=s.field,{hasExpression:u}=s.cache;if(!o&&!u)return;const p=h(s,t,i);let c=p;return c="number"!=typeof c||isNaN(c)?null:l+n*c,new b(s,c,p)}(e,t,i)?.output}function h(e,t,i){const{hasExpression:s}=e.cache;if("number"==typeof t)return t;const r=t?.attributes,l=e.field;if(!s)return r?.[l];if(null==i?.arcade)return void u();const n={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},o=i.arcade.arcadeUtils,a=o.getViewInfo(n),p=o.createExecContext(t,a,i.timeZone);if(!e.cache.compiledFunc){const t=o.createSyntaxTree(e.valueExpression);e.cache.compiledFunc=o.createFunction(t)}return o.executeFunction(e.cache.compiledFunc,p)}function y(e,t,i){const s="number"==typeof t,r=s?null:t,l=r?.attributes;let o=s?t:null;const{isScaleDriven:a}=e.cache;let p=e.cache.compiledFunc;if(a){const t=null!=i?i.scale:void 0,s=null!=i?i.view:void 0;o=null==t||"3d"===s?function(e){let t=null,i=null;const s=e.stops;return s?(t=s[0].value,i=s[s.length-1].value):(t=e.minDataValue||0,i=e.maxDataValue||0),(t+i)/2}(e):t}else if(!s)switch(e.inputValueType){case"expression":{if(null==i?.arcade)return void u();const t={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},s=i.arcade.arcadeUtils,l=s.getViewInfo(t),n=s.createExecContext(r,l,i.timeZone);if(!p){const t=s.createSyntaxTree(e.valueExpression);p=s.createFunction(t),e.cache.compiledFunc=p}o=s.executeFunction(p,n);break}case"field":l&&(o=l[e.field]);break;case"unknown":o=null}return(0,n.gf)(o)?o:null}function f(e,t,i){return function(e,t,i){const s="visualVariables"in e?e.visualVariables?.find(e=>"size"===e.type):e;if(!s)return;if("esri.renderers.visualVariables.SizeVariable"!==s.declaredClass)return void a("SizeVariable");const r=y(s,t,i);let o=r;if(null!=o&&"number"!=typeof t&&t&&s.normalizationField){const e=t.attributes,i=parseFloat(e?.[s.normalizationField]);if(!(0,n.gf)(i)||0===i)return;o/=i}const u=function(e,t,i,s,r){switch(t.transformationType){case"additive":return function(e,t,i,s){const r=m(t.minSize,i,s)||t.minDataValue;return null==e&&null==r?null:(e??0)+(r??0)}(e,t,i,s);case"constant":return function(e,t,i){const s=e.stops;let r=s?.length&&s[0].size;return null==r&&(r=e.minSize),m(r,t,i)}(t,i,s);case"clamped-linear":return function(e,t,i,s){const r=m(t.minSize,i,s);if(null==e)return r;const{minDataValue:l,maxDataValue:n}=t;if(null==l||null==n)return null;const o=(e-l)/(n-l),a=m(t.maxSize,i,s),u=null!=s?s.shape:void 0;if(e<=l)return r;if(e>=n)return a;if(null==r||null==a)return null;if("area"===t.scaleBy&&u){const e="circle"===u,t=e?p*(r/2)**2:r*r,i=t+o*((e?p*(a/2)**2:a*a)-t);return e?2*Math.sqrt(i/p):Math.sqrt(i)}return r+o*(a-r)}(e,t,i,s);case"proportional":return function(e,t,i,s){const r=m(t.minSize,i,s);if(null==e||null==r)return r;const l=null!=s?s.shape:void 0,{minDataValue:n}=t;if(null==n)return null;const o=e/n,a=m(t.maxSize,i,s);let u=null;return u="circle"===l?2*Math.sqrt(o*(r/2)**2):"square"===l||"diamond"===l||"image"===l?Math.sqrt(o*r**2):o*r,g(u,r,a)}(e,t,i,s);case"stops":return function(e,t,i,s,r){if(null==e)return null;const[l,n,o]=function(e,t){if(!t)return;let i=0,s=t.length-1;return t.some((t,r)=>e<t?(s=r,!0):(i=r,!1)),[i,s,(e-t[i])/(t[s]-t[i])]}(e,r);if(l===n)return m(t.stops?.[l].size,i,s);{const e=m(t.stops?.[l].size,i,s),r=m(t.stops?.[n].size,i,s);return null==e||null==r?null:e+(r-e)*o}}(e,t,i,s,r);case"real-world-size":return function(e,t,i,s){const r=(s?.resolution??1)*l.j[t.valueUnit],n=m(t.minSize,i,s),o=m(t.maxSize,i,s),{valueRepresentation:a}=t;if(null==e)return n;let u=null;return u="area"===a?2*Math.sqrt(e/p)/r:"radius"===a||"distance"===a?2*e/r:e/r,g(u,n,o)}(e,t,i,s);case"identity":return e;case"unknown":return null}}(o,s,t,i,s.cache.ipData);return new b(s,null==u||isNaN(u)?void 0:u,r)}(e,t,i)?.output}function m(e,t,i){return null==e?null:(0,n.of)(e)?f(e,t,i):(0,n.gf)(e)?e:null}function g(e,t,i){return(0,n.gf)(i)&&e>i?i:(0,n.gf)(t)&&e<t?t:e}class b{get type(){return this.variable.type}constructor(e,t,i){this.variable=e,this.output=t,this.input=i}}function v(e,t,i){const s=["proportional","proportional","proportional"];for(const r of e){const e=r.useSymbolValue?"symbol-value":f(r,t,i)??"proportional";switch(r.axis){case"width":s[0]=e;break;case"depth":s[1]=e;break;case"height":s[2]=e;break;case"width-and-depth":s[0]=e,s[1]=e;break;case"all":case void 0:case null:s[0]=e,s[1]=e,s[2]=e;break;default:r.axis}}return s}},2485(e,t,i){i.d(t,{A:()=>c});var s,r=i(5482),l=i(68197),n=i(4718),o=i(91429),a=i(56507),u=i(72606),p=i(93223);let c=s=class extends u.A{constructor(e){super(e),this.algorithm=null,this.fromColor=null,this.toColor=null,this.type="algorithmic"}clone(){return new s({fromColor:(0,n.o8)(this.fromColor),toColor:(0,n.o8)(this.toColor),algorithm:this.algorithm})}};(0,r.Cg)([(0,p.e)({esriCIELabAlgorithm:"cie-lab",esriHSVAlgorithm:"hsv",esriLabLChAlgorithm:"lab-lch"})],c.prototype,"algorithm",void 0),(0,r.Cg)([(0,o.MZ)({type:l.A,json:{type:[a.jz],write:{isRequired:!0}}})],c.prototype,"fromColor",void 0),(0,r.Cg)([(0,o.MZ)({type:l.A,json:{type:[a.jz],write:{isRequired:!0}}})],c.prototype,"toColor",void 0),(0,r.Cg)([(0,o.MZ)({type:["algorithmic"],json:{write:{isRequired:!0}}})],c.prototype,"type",void 0),c=s=(0,r.Cg)([(0,o.$K)("esri.rest.support.AlgorithmicColorRamp")],c)},72606(e,t,i){i.d(t,{A:()=>n});var s=i(5482),r=i(25482),l=i(91429);let n=class extends r.o{constructor(e){super(e),this.type=null}};(0,s.Cg)([(0,l.MZ)({readOnly:!0,json:{read:!1,write:!0}})],n.prototype,"type",void 0),n=(0,s.Cg)([(0,l.$K)("esri.rest.support.ColorRamp")],n)},1626(e,t,i){i.d(t,{A:()=>c});var s,r=i(5482),l=i(4718),n=i(91429),o=i(2485),a=i(72606),u=i(43937),p=i(36005);let c=s=class extends a.A{constructor(e){super(e),this.colorRamps=null,this.type="multipart",this.weights=void 0}writeColorRamps(e,t,i,s){const r=e?.map(e=>e.toJSON(s)),{weights:l}=this;if(r&&l?.length&&r.length===l?.length){const e=100/l.reduce((e,t)=>e+t);let t=0;r.forEach((i,s)=>{i.start=t,t+=l[s]*e,i.stop=t})}t.colorRamps=r}readWeights(e,t){const i=t.colorRamps?.map(({start:e,stop:t})=>null==e||null==t?-1:t-e);if(!i?.some(e=>e<0))return i}clone(){return new s({colorRamps:(0,l.o8)(this.colorRamps)})}};(0,r.Cg)([(0,n.MZ)({type:[o.A],json:{write:{isRequired:!0}}})],c.prototype,"colorRamps",void 0),(0,r.Cg)([(0,u.K)("colorRamps")],c.prototype,"writeColorRamps",null),(0,r.Cg)([(0,n.MZ)({type:["multipart"],json:{write:{isRequired:!0}}})],c.prototype,"type",void 0),(0,r.Cg)([(0,n.MZ)({type:[Number]})],c.prototype,"weights",void 0),(0,r.Cg)([(0,p.w)("weights",["colorRamps"])],c.prototype,"readWeights",null),c=s=(0,r.Cg)([(0,n.$K)("esri.rest.support.MultipartColorRamp")],c)},95349(e,t,i){i.d(t,{g:()=>n,r:()=>o});var s=i(2485),r=i(72606),l=i(1626);const n={key:"type",base:r.A,typeMap:{algorithmic:s.A,multipart:l.A}};function o(e){return e?.type?"algorithmic"===e.type?s.A.fromJSON(e):"multipart"===e.type?l.A.fromJSON(e):null:null}},73838(e,t,i){i.d(t,{rS:()=>E,M9:()=>q,oO:()=>Z});var s=i(93637),r=i(77548),l=i(37757),n=i(49186),o=i(13313),a=i(97887),u=i(68548),p=i(58592),c=i(75981),d=i(65365),h=i(94985),y=i(31593),f=i(53930),m=i(68249),g=i(68197),b=i(7762),v=i(90629),w=i(27845),S=i(11506),V=i(39065),C=i(59868),M=i(93470);c.A.fromSimpleMarkerSymbol(C.UK),a.A.fromSimpleLineSymbol(C.A7),d.A.fromSimpleFillSymbol(C.Cx),new u.A({symbolLayers:new b.A([new w.A({material:{color:M.fT},edges:new V.A({size:(0,v.PN)(1),color:new g.A(M.JR)})})])});const x=new a.A({symbolLayers:new b.A([new S.A({material:{color:new g.A([0,0,0])},size:(0,v.PN)(1)})])}),_=new d.A({symbolLayers:new b.A([new w.A({outline:{color:new g.A([0,0,0]),size:(0,v.PN)(1)}})])});var z=i(33910);const I="#useCIMFallbackSymbology()",A={retainId:!1,ignoreDrivers:!1,hasLabelingContext:!0};var j=i(59923);function q(e,t,i,r){const l=k(e,{},{context:r,isLabelSymbol:!1});null!=l&&(0,s.sM)(i,l,t)}function Z(e,t,i,s){const r=k(e,{},{context:s,isLabelSymbol:!0});null!=r&&(t[i]=r)}function F(e){return(0,z.wk)(e)||e instanceof l.A}function k(e,t,i){if(null==e)return null;const{context:s,isLabelSymbol:g}=i,b=s?.origin;if("web-scene"===b&&!F(e)){const i=function(e,t=A){if(!e)return{symbol:null};const{retainId:i=A.retainId,ignoreDrivers:s=A.ignoreDrivers,hasLabelingContext:r=A.hasLabelingContext,retainCIM:g=A.retainCIM,cimFallbackEnabled:b=A.cimFallbackEnabled}=t;let v=null;if((0,z.wk)(e))v=e.clone();else if("web-style"===e.type)v=e.clone();else if("cim"===e.type){const i=e.data?.symbol?.type;switch(i){case"CIMPointSymbol":v=g?e.clone():c.A.fromCIMSymbol(e);break;case"CIMLineSymbol":b&&(v=x.clone(),t?.logWarning?.(I,"Unsupported CIM line symbology converted to fallback 3D line symbology"));break;case"CIMPolygonSymbol":b&&(v=_.clone(),t?.logWarning?.(I,"Unsupported CIM polygon symbology converted to fallback 3D polygon symbology"))}if(!v)return{error:new n.A("symbol-conversion:unsupported-cim-symbol",`CIM symbol of type '${i||"unknown"}' is unsupported in 3D`,{symbol:e})}}else if(e instanceof y.A)v=a.A.fromSimpleLineSymbol(e);else if(e instanceof f.A)v=c.A.fromSimpleMarkerSymbol(e);else if(e instanceof p.A)v=c.A.fromPictureMarkerSymbol(e);else if(e instanceof h.A)v=t.geometryType&&"mesh"===t.geometryType?u.A.fromSimpleFillSymbol(e):d.A.fromSimpleFillSymbol(e);else{if(!(e instanceof m.A))return{error:new n.A("symbol-conversion:unsupported-2d-symbol",`2D symbol of type '${e.type||e.declaredClass}' is unsupported in 3D`,{symbol:e})};v=r?o.A.fromTextSymbol(e):c.A.fromTextSymbol(e)}return i&&v&&"cim"!==v.type&&(v.id=e.id),!s||"cim"===v.type||v instanceof l.A||v.symbolLayers.forEach(e=>e.ignoreDrivers=!0),{symbol:v}}(e,{retainCIM:!0,hasLabelingContext:g});return null!=i.symbol?i.symbol.write(t,s):((0,j.bA)(s,e,"Use 3D symbology instead when working with WebScene and SceneView",{error:i.error}),null)}return(0,r.TU)(s?.layer)&&function(e){return"polygon-3d"===e?.type||"line-3d"===e?.type}(e)?((0,j.bA)(s,e,`unsupported in layers of type ${s?.layer?.declaredClass}`),null):("web-map"===b||"portal-item"===b&&!(0,r.TU)(s?.layer))&&F(e)?((0,j.bA)(s,e,"Use 2D symbology and CIMSymbol instead when working with MapView"),null):e.write(t,s)}function E(e,t){return(0,z.Bu)(e,null,t)}},85594(e,t,i){i.d(t,{jg:()=>b,cF:()=>c,bo:()=>d,yA:()=>f,o5:()=>h});var s=i(11254),r=i(49186),l=i(44208),n=i(17676),o=i(84952),a=i(20655),u=i(16405);const p=new Map;function c(e,t,i){return null!=e?.styleUrl?async function(e,t){try{return{data:(await f(e,t)).data,baseUrl:(0,o.nM)(e),styleUrl:e}}catch(e){return(0,n.QP)(e),null}}(e.styleUrl,i):null!=e?.styleName?function(e,t,i){const s=null!=t.portal?t.portal:a.A.getDefault();let l;const n=`${s.url} - ${s.user?.username} - ${e}`,o=p.get(n);if(o)return o;const c=function(e,t,i){return t.load(i).then(()=>{const s=new u.A({disableExtraQuery:!0,query:`owner:${m} AND type:${g} AND typekeywords:"${e}"`});return t.queryItems(s,i)}).then(({results:t})=>{let s=null;const l=e.toLowerCase();if(t&&Array.isArray(t))for(const e of t){const t=e.typeKeywords?.some(e=>e.toLowerCase()===l);if(t&&e.type===g&&e.owner===m){s=e;break}}if(!s)throw new r.A("symbolstyleutils:style-not-found",`The style '${e}' could not be found`,{styleName:e});return s.load(i)})}(e,s,i).then(e=>(l=e,e.fetchData())).then(t=>({data:t,baseUrl:l.itemUrl??"",styleName:e}));return p.set(n,c),c}(e.styleName,t,i):Promise.reject(new r.A("symbolstyleutils:style-url-and-name-missing","Either styleUrl or styleName is required to resolve a style"))}function d(e){return null===e||"CIMSymbolReference"===e.type?e:{type:"CIMSymbolReference",symbol:e}}function h(e,t){for(const i of t)switch(i){case"cim":if(e.cimRef)return{format:i,url:encodeURI(e.cimRef)};break;case"web-gltf-basisu":{const t=y(e,"gltf_basisu");if(t)return{format:i,url:t};break}case"web-gltf":{const t=y(e,"gltf");if(t)return{format:i,url:t};break}case"web":{const t=y(e,"gltf");if(t)return{format:"web-gltf",url:t};if(e.webRef)return{format:i,url:encodeURI(e.webRef)};break}}}function y(e,t){if(!(0,l.A)("enable-feature:force-wosr"))return e.formatInfos?.find(e=>e.type===t)?.href}function f(e,t){const i={responseType:"json",query:{f:"json"},...t};return(0,s.A)((0,o.S8)(e),i)}const m="esri_en",g="Style",b="https://cdn.arcgis.com/sharing/rest/content/items/220936cc6ed342c9937abd8f180e7d1e/resources/styles/cim/{SymbolName}.json?f=json"}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1733],{60999(e,t,i){i.d(t,{DZ:()=>y,Ke:()=>h,Tj:()=>p,UT:()=>f,aD:()=>g,jJ:()=>u});var s=i(5482),r=i(69622),l=i(97768),n=i(17676),o=i(10107),a=i(64108);function u(e,t,i){return(0,n.Lx)(e.map((e,s)=>t.apply(i,[e,s])))}async function p(e,t,i){return(await(0,n.Lx)(e.map((e,s)=>t.apply(i,[e,s])))).map(e=>e.value)}function c(e){return{ok:!0,value:e}}function d(e){return{ok:!1,error:e}}async function h(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return c(await e)}catch(e){return d(e)}}async function y(e){try{return c(await e)}catch(e){return(0,n.QP)(e),d(e)}}function f(e,t){return new m(e,t)}let m=class extends r.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,l.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:i}=this._abortController;this.promise=e(i),this.promise.then(e=>{this._result=c(e),this._cleanup()},e=>{this._result=d(e),this._cleanup()}),this._abortHandle=(0,n.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,l.xt)(this._abortHandle),this._abortController=null}};(0,s.Cg)([(0,o.MZ)()],m.prototype,"value",null),(0,s.Cg)([(0,o.MZ)()],m.prototype,"error",null),(0,s.Cg)([(0,o.MZ)()],m.prototype,"finished",null),(0,s.Cg)([(0,o.MZ)()],m.prototype,"promise",void 0),(0,s.Cg)([(0,o.MZ)()],m.prototype,"_result",void 0),m=(0,s.Cg)([(0,a.$)("esri.core.asyncUtils.ReactiveTask")],m);class g{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});const t=await e;return{[Symbol.dispose]:t}}async run(e){const t={stack:[],error:void 0,hasError:!1};try{return(0,s.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,s.hk)(t)}}}},91829(e,t,i){function s(){return[0,0,0,0]}function r(e,t,i,s){return[e,t,i,s]}function l(e,t,i,s){return[e,t,i,s]}function n(){return r(1,1,1,1)}function o(){return r(1,0,0,0)}function a(){return r(0,1,0,0)}function u(){return r(0,0,1,0)}function p(){return r(0,0,0,1)}i.d(t,{CN:()=>l,Un:()=>d,fA:()=>r,uY:()=>c,vt:()=>s});const c=[0,0,0,0],d=n(),h=o(),y=a(),f=u(),m=p();Object.freeze(Object.defineProperty({__proto__:null,ONES:d,UNIT_W:m,UNIT_X:h,UNIT_Y:y,UNIT_Z:f,ZEROS:c,clone:function(e){return[e[0],e[1],e[2],e[3]]},create:s,freeze:l,fromArray:function(e,t=[0,0,0,0]){const i=Math.min(4,e.length);for(let s=0;s<i;++s)t[s]=e[s];return t},fromValues:r,ones:n,unitW:p,unitX:o,unitY:a,unitZ:u,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},78955(e,t,i){i.d(t,{Bw:()=>m,C:()=>r,Cc:()=>w,LI:()=>d,Om:()=>v,S8:()=>b,T9:()=>c,WQ:()=>n,Z0:()=>S,aI:()=>C,hG:()=>f,hZ:()=>l,hs:()=>h,jk:()=>p,m3:()=>g,t2:()=>V});var s=i(34304);function r(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function l(e,t,i,s,r){return e[0]=t,e[1]=i,e[2]=s,e[3]=r,e}function n(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e[2]=t[2]+i[2],e[3]=t[3]+i[3],e}function o(e,t,i){return e[0]=t[0]-i[0],e[1]=t[1]-i[1],e[2]=t[2]-i[2],e[3]=t[3]-i[3],e}function a(e,t,i){return e[0]=t[0]*i[0],e[1]=t[1]*i[1],e[2]=t[2]*i[2],e[3]=t[3]*i[3],e}function u(e,t,i){return e[0]=t[0]/i[0],e[1]=t[1]/i[1],e[2]=t[2]/i[2],e[3]=t[3]/i[3],e}function p(e,t,i){return e[0]=Math.min(t[0],i[0]),e[1]=Math.min(t[1],i[1]),e[2]=Math.min(t[2],i[2]),e[3]=Math.min(t[3],i[3]),e}function c(e,t,i){return e[0]=Math.max(t[0],i[0]),e[1]=Math.max(t[1],i[1]),e[2]=Math.max(t[2],i[2]),e[3]=Math.max(t[3],i[3]),e}function d(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e[3]=Math.round(t[3]),e}function h(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e}function y(e,t){const i=t[0]-e[0],s=t[1]-e[1],r=t[2]-e[2],l=t[3]-e[3];return Math.sqrt(i*i+s*s+r*r+l*l)}function f(e,t){const i=t[0]-e[0],s=t[1]-e[1],r=t[2]-e[2],l=t[3]-e[3];return i*i+s*s+r*r+l*l}function m(e){const t=e[0],i=e[1],s=e[2],r=e[3];return Math.sqrt(t*t+i*i+s*s+r*r)}function g(e){const t=e[0],i=e[1],s=e[2],r=e[3];return t*t+i*i+s*s+r*r}function b(e,t){const i=t[0],s=t[1],r=t[2],l=t[3];let n=i*i+s*s+r*r+l*l;return n>0&&(n=1/Math.sqrt(n),e[0]=i*n,e[1]=s*n,e[2]=r*n,e[3]=l*n),e}function v(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function w(e,t,i,s){const r=t[0],l=t[1],n=t[2],o=t[3];return e[0]=r+s*(i[0]-r),e[1]=l+s*(i[1]-l),e[2]=n+s*(i[2]-n),e[3]=o+s*(i[3]-o),e}function S(e,t,i){const s=t[0],r=t[1],l=t[2],n=t[3];return e[0]=i[0]*s+i[4]*r+i[8]*l+i[12]*n,e[1]=i[1]*s+i[5]*r+i[9]*l+i[13]*n,e[2]=i[2]*s+i[6]*r+i[10]*l+i[14]*n,e[3]=i[3]*s+i[7]*r+i[11]*l+i[15]*n,e}function V(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}function C(e,t){const i=e[0],r=e[1],l=e[2],n=e[3],o=t[0],a=t[1],u=t[2],p=t[3],c=(0,s.FD)();return Math.abs(i-o)<=c*Math.max(1,Math.abs(i),Math.abs(o))&&Math.abs(r-a)<=c*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(l-u)<=c*Math.max(1,Math.abs(l),Math.abs(u))&&Math.abs(n-p)<=c*Math.max(1,Math.abs(n),Math.abs(p))}const M=o,x=a,_=u,z=y,I=f,A=m,j=g;Object.freeze(Object.defineProperty({__proto__:null,add:n,ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e[3]=Math.ceil(t[3]),e},copy:r,copyVec3:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},dist:z,distance:y,div:_,divide:u,dot:v,equals:C,exactEquals:V,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e[3]=Math.floor(t[3]),e},inverse:function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e},len:A,length:m,lerp:w,max:c,min:p,mul:x,multiply:a,negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e},normalize:b,random:function(e,t=1){const i=s.Ov;let r,l,n,o,a,u;do{r=2*i()-1,l=2*i()-1,a=r*r+l*l}while(a>=1);do{n=2*i()-1,o=2*i()-1,u=n*n+o*o}while(u>=1);const p=Math.sqrt((1-a)/u);return e[0]=t*r,e[1]=t*l,e[2]=t*n*p,e[3]=t*o*p,e},round:d,scale:h,scaleAndAdd:function(e,t,i,s){return e[0]=t[0]+i[0]*s,e[1]=t[1]+i[1]*s,e[2]=t[2]+i[2]*s,e[3]=t[3]+i[3]*s,e},set:l,sqrDist:I,sqrLen:j,squaredDistance:f,squaredLength:g,str:function(e){return"vec4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},sub:M,subtract:o,transformMat4:S,transformQuat:function(e,t,i){const s=t[0],r=t[1],l=t[2],n=i[0],o=i[1],a=i[2],u=i[3],p=u*s+o*l-a*r,c=u*r+a*s-n*l,d=u*l+n*r-o*s,h=-n*s-o*r-a*l;return e[0]=p*u+h*-n+c*-a-d*-o,e[1]=c*u+h*-o+d*-n-p*-a,e[2]=d*u+h*-a+p*-o-c*-n,e[3]=t[3],e}},Symbol.toStringTag,{value:"Module"}))},86162(e,t,i){i.d(t,{A:()=>x});var s,r=i(5482),l=i(66552),n=i(4718),o=i(53966),a=i(91429),u=i(56507),p=i(30524),c=i(92438),d=i(63988),h=i(88542),y=i(49849),f=i(20061),m=i(43668),g=i(33910),b=i(36005),v=i(43937),w=i(93223);const S="percent-of-total",V="field",C=new l.J({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:S,esriNormalizeByField:V}),M=(0,u.dp)(h.A);let x=s=class extends((0,d.h)(c.A)){constructor(e){super(e),this._compiledValueExpression={valueExpression:null,compiledFunction:null},this.backgroundFillSymbol=null,this.classBreakInfos=null,this.defaultLabel=null,this.defaultSymbol=null,this.field=null,this.isMaxInclusive=!0,this.legendOptions=null,this.normalizationField=null,this.normalizationTotal=null,this.type="class-breaks",this.valueExpression=null,this.valueExpressionTitle=null,this._set("classBreakInfos",[])}readClassBreakInfos(e,t,i){if(!Array.isArray(e))return;let s=t.minValue;return e.map(e=>{const t=new h.A;return t.read(e,i),null==t.minValue&&(t.minValue=s),null==t.maxValue&&(t.maxValue=t.minValue),s=t.maxValue,t})}writeClassBreakInfos(e,t,i,s){const r=e.map(e=>e.write({},s));this._areClassBreaksConsecutive()&&r.forEach(e=>delete e.classMinValue),t[i]=r}castField(e){return null==e?e:"function"==typeof e?(o.A.getLogger(this).error(".field: field must be a string value"),null):(0,u.GX)(e)}get minValue(){return this.classBreakInfos&&this.classBreakInfos[0]&&this.classBreakInfos[0].minValue||0}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,i=null!=this.normalizationTotal;return t||i?(e=t&&V||i&&S||null,t&&i&&o.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==V&&e!==S||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}addClassBreakInfo(e,t,i){let s=null;s="number"==typeof e?new h.A({minValue:e,maxValue:t,symbol:(0,g.dp)(i)}):M((0,n.o8)(e)),this.classBreakInfos.push(s),1===this.classBreakInfos.length&&this.notifyChange("minValue")}removeClassBreakInfo(e,t){const i=this.classBreakInfos.length;for(let s=0;s<i;s++){const i=[this.classBreakInfos[s].minValue,this.classBreakInfos[s].maxValue];if(i[0]===e&&i[1]===t){this.classBreakInfos.splice(s,1);break}}}getBreakIndex(e,t){return this.valueExpression&&null==t?.arcade&&o.A.getLogger(this).warn(""),this.valueExpression?this._getBreakIndexForExpression(e,t):this._getBreakIndexForField(e)}async getClassBreakInfo(e,t){let i=t;this.valueExpression&&null==t?.arcade&&(i={...i,arcade:await(0,m.l)()});const s=this.getBreakIndex(e,i);return-1!==s?this.classBreakInfos[s]:null}getSymbol(e,t){if(this.valueExpression&&null==t?.arcade)return void o.A.getLogger(this).error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");const i=this.getBreakIndex(e,t);return i>-1?this.classBreakInfos[i].symbol:this.defaultSymbol}async getSymbolAsync(e,t){let i=t;if(this.valueExpression&&null==t?.arcade){const e=await(0,m.l)(),{arcadeUtils:t}=e;t.hasGeometryOperations(this.valueExpression)&&await t.enableGeometryOperations(),i={...i,arcade:e}}const s=this.getBreakIndex(e,i);return s>-1?this.classBreakInfos[s].symbol:this.defaultSymbol}get symbols(){const e=[];return this.classBreakInfos.forEach(t=>{t.symbol&&e.push(t.symbol),e.push(...t.alternateSymbols??[])}),this.defaultSymbol&&e.push(this.defaultSymbol),e}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}clone(){return new s({field:this.field,backgroundFillSymbol:this.backgroundFillSymbol?.clone(),defaultLabel:this.defaultLabel,defaultSymbol:this.defaultSymbol?.clone(),valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,classBreakInfos:(0,n.o8)(this.classBreakInfos),isMaxInclusive:this.isMaxInclusive,normalizationField:this.normalizationField,normalizationTotal:this.normalizationTotal,normalizationType:this.normalizationType,visualVariables:(0,n.o8)(this.visualVariables),legendOptions:(0,n.o8)(this.legendOptions),authoringInfo:(0,n.o8)(this.authoringInfo)})}async collectRequiredFields(e,t){const i=[this.collectVVRequiredFields(e,t),this.collectSymbolFields(e,t)];await Promise.all(i)}async collectSymbolFields(e,t){const i=[...this.symbols.map(i=>i.collectRequiredFields(e,t)),(0,p.Dx)(e,t,null,this.valueExpression)];(0,p.rq)(e,t,this.field),(0,p.rq)(e,t,this.normalizationField),await Promise.all(i)}_getBreakIndexForExpression(e,t){const{viewingMode:i,scale:s,spatialReference:r,arcade:l,timeZone:n}=t??{},{valueExpression:o}=this;let a=this._compiledValueExpression.valueExpression===o?this._compiledValueExpression.compiledFunction:null;const u=l.arcadeUtils;if(!a){const e=u.createSyntaxTree(o);a=u.createFunction(e),this._compiledValueExpression.compiledFunction=a}this._compiledValueExpression.valueExpression=o;const p=u.executeFunction(a,u.createExecContext(e,u.getViewInfo({viewingMode:i,scale:s,spatialReference:r}),n));return this._getBreakIndexfromInfos(p)}_getBreakIndexForField(e){const t=this.field,i=e.attributes,s=this.normalizationType;let r=parseFloat(i[t]);if(s){const e=this.normalizationTotal,t=parseFloat(this.normalizationField?i[this.normalizationField]:void 0);if("log"===s)r=Math.log(r)*Math.LOG10E;else if(s!==S||null==e||isNaN(e)){if(s===V&&!isNaN(t)){if(isNaN(r)||isNaN(t))return-1;r/=t}}else r=r/e*100}return this._getBreakIndexfromInfos(r)}_getBreakIndexfromInfos(e){const t=this.isMaxInclusive;if(null!=e&&"number"==typeof e&&!isNaN(e))for(let i=0;i<this.classBreakInfos.length;i++){const s=[this.classBreakInfos[i].minValue,this.classBreakInfos[i].maxValue];if(s[0]<=e&&(t?e<=s[1]:e<s[1]))return i}return-1}_areClassBreaksConsecutive(){const e=this.classBreakInfos,t=e.length;for(let i=1;i<t;i++)if(e[i-1].maxValue!==e[i].minValue)return!1;return!0}};(0,r.Cg)([(0,a.MZ)(y.As)],x.prototype,"backgroundFillSymbol",void 0),(0,r.Cg)([(0,a.MZ)({type:[h.A],json:{write:{isRequired:!0}}})],x.prototype,"classBreakInfos",void 0),(0,r.Cg)([(0,b.w)("classBreakInfos")],x.prototype,"readClassBreakInfos",null),(0,r.Cg)([(0,v.K)("classBreakInfos")],x.prototype,"writeClassBreakInfos",null),(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],x.prototype,"defaultLabel",void 0),(0,r.Cg)([(0,a.MZ)(y.z4)],x.prototype,"defaultSymbol",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],x.prototype,"field",void 0),(0,r.Cg)([(0,a.wg)("field")],x.prototype,"castField",null),(0,r.Cg)([(0,a.MZ)({type:Boolean})],x.prototype,"isMaxInclusive",void 0),(0,r.Cg)([(0,a.MZ)({type:f.A,json:{write:!0}})],x.prototype,"legendOptions",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,readOnly:!0,value:null,json:{read:!1,write:{overridePolicy(){return 0!==this.classBreakInfos.length&&this._areClassBreaksConsecutive()?{enabled:!0}:{enabled:!1}}}}})],x.prototype,"minValue",null),(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],x.prototype,"normalizationField",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],x.prototype,"normalizationTotal",void 0),(0,r.Cg)([(0,a.MZ)({type:C.apiValues,value:null,json:{type:C.jsonValues,read:C.read,write:C.write}})],x.prototype,"normalizationType",null),(0,r.Cg)([(0,w.e)({classBreaks:"class-breaks"})],x.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],x.prototype,"valueExpression",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],x.prototype,"valueExpressionTitle",void 0),x=s=(0,r.Cg)([(0,a.$K)("esri.renderers.ClassBreaksRenderer")],x)},92438(e,t,i){i.d(t,{A:()=>u});var s=i(5482),r=i(66552),l=i(25482),n=i(91429),o=i(30943);const a=new r.J({simple:"simple",uniqueValue:"unique-value",classBreaks:"class-breaks",heatmap:"heatmap",dotDensity:"dot-density",dictionary:"dictionary",pieChart:"pie-chart"},{ignoreUnknown:!0});let u=class extends l.o{constructor(e){super(e),this.authoringInfo=null,this.type=null}async getRequiredFields(e){if(!this.collectRequiredFields)return[];const t=new Set;return await this.collectRequiredFields(t,e),Array.from(t).sort()}getSymbol(e,t){}async getSymbolAsync(e,t){}get symbols(){return[]}get arcadeRequired(){return!1}};(0,s.Cg)([(0,n.MZ)({type:o.A,json:{write:!0}})],u.prototype,"authoringInfo",void 0),(0,s.Cg)([(0,n.MZ)({type:a.apiValues,readOnly:!0,json:{type:a.jsonValues,read:!1,write:{writer:a.write,ignoreOrigin:!0,isRequired:!0}}})],u.prototype,"type",void 0),u=(0,s.Cg)([(0,n.$K)("esri.renderers.Renderer")],u)},93618(e,t,i){i.d(t,{A:()=>R});var s=i(5482),r=i(4718),l=i(53966),n=i(93637),o=i(36708),a=i(91429),u=i(6797),p=i(56507),c=i(30524),d=i(20655),h=i(92438),y=i(63988),f=i(49849),m=i(20061),g=i(69540),b=i(25482);let v=class extends((0,g.OU)(b.o)){constructor(e){super(e),this.value=null,this.value2=null,this.value3=null}};(0,s.Cg)([(0,a.MZ)(f.Ug)],v.prototype,"value",void 0),(0,s.Cg)([(0,a.MZ)(f.Ug)],v.prototype,"value2",void 0),(0,s.Cg)([(0,a.MZ)(f.Ug)],v.prototype,"value3",void 0),v=(0,s.Cg)([(0,a.$K)("esri.renderers.support.UniqueValue")],v);var w=i(4576),S=i(40863);let V=class extends((0,g.OU)(b.o)){constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.alternateSymbols=null}get values(){return this._get("values")}set values(e){if(null!=e){const t=typeof(e=Array.isArray(e)?e:[e])[0];e="string"===t||"number"===t?e.map(e=>new v({value:e})):"object"===t?e[0]instanceof v?e:e.map(e=>new v(e)):null}this._set("values",e)}};(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],V.prototype,"description",void 0),(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],V.prototype,"label",void 0),(0,s.Cg)([(0,a.MZ)(f.z4)],V.prototype,"symbol",void 0),(0,s.Cg)([(0,a.MZ)({type:[S.A],json:{write:!0,origins:{"web-scene":{write:!1}}}})],V.prototype,"alternateSymbols",void 0),(0,s.Cg)([(0,a.MZ)({json:{type:[[String]],read:{reader:e=>e?e.map(e=>new v({value:e[0],value2:e[1],value3:e[2]})):null},write:{writer:(e,t)=>{const i=[];for(const t of e){const e=[t.value,t.value2,t.value3].filter(w.Ru).map(e=>e.toString());i.push(e)}t.values=i}}}})],V.prototype,"values",null),V=(0,s.Cg)([(0,a.$K)("esri.renderers.support.UniqueValueClass")],V);let C=class extends((0,g.OU)(b.o)){constructor(e){super(e),this.heading=null,this.classes=null}};(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],C.prototype,"heading",void 0),(0,s.Cg)([(0,a.MZ)({type:[V],json:{write:{isRequired:!0}}})],C.prototype,"classes",void 0),C=(0,s.Cg)([(0,a.$K)("esri.renderers.support.UniqueValueGroup")],C);var M,x=i(94833),_=i(43668),z=i(97159),I=i(37757),A=i(85594),j=i(33910),q=i(59923),Z=i(93223),F=i(43937),k=i(36005);const E="uvInfos-watcher",U="uvGroups-watcher",T=(0,p.dp)(x.A);function O(e){return null!=e&&""!==e&&("string"!=typeof e||""!==e.trim()&&"<null>"!==e.toLowerCase())||(e=null),e+""}let R=M=class extends((0,y.h)(h.A)){constructor(e){super(e),this._valueInfoMap={},this._isDefaultSymbolDerived=!1,this._isInfosSource=null,this.type="unique-value",this.backgroundFillSymbol=null,this.orderByClassesEnabled=!1,this.valueExpressionTitle=null,this.legendOptions=null,this.defaultLabel=null,this.portal=null,this.styleOrigin=null,this.diff={uniqueValueInfos(e,t){if(!e&&!t)return;if(!e||!t)return{type:"complete",oldValue:e,newValue:t};let i=!1;const s={type:"collection",added:[],removed:[],changed:[],unchanged:[]};for(let r=0;r<t.length;r++){const l=e.find(e=>e.value===t[r].value);l?(0,u.Ui)(l,t[r])?(s.changed.push({type:"complete",oldValue:l,newValue:t[r]}),i=!0):s.unchanged.push({oldValue:l,newValue:t[r]}):(s.added.push(t[r]),i=!0)}for(let r=0;r<e.length;r++)t.find(t=>t.value===e[r].value)||(s.removed.push(e[r]),i=!0);return i?s:void 0}},this._set("uniqueValueInfos",[]),this._set("uniqueValueGroups",[])}get _cache(){return{compiledFunc:null}}set field(e){this._set("field",e),this._updateFieldDelimiter(),this._updateUniqueValues()}castField(e){return null==e||"function"==typeof e?e:(0,p.GX)(e)}writeField(e,t,i,s){"string"==typeof e?t[i]=e:s?.messages?(0,q.qt)(s,"UniqueValueRenderer.field","set to a function cannot be written to JSON"):l.A.getLogger(this).error(".field: cannot write field to JSON since it's not a string value")}set field2(e){this._set("field2",e),this._updateFieldDelimiter(),this._updateUniqueValues()}set field3(e){this._set("field3",e),this._updateUniqueValues()}set valueExpression(e){this._set("valueExpression",e),this._updateUniqueValues()}set defaultSymbol(e){this._isDefaultSymbolDerived=!1,this._set("defaultSymbol",e)}set fieldDelimiter(e){this._set("fieldDelimiter",e),this._updateUniqueValues()}readPortal(e,t,i){return i.portal||d.A.getDefault()}readStyleOrigin(e,t,i){if(t.styleName)return Object.freeze({styleName:t.styleName});if(t.styleUrl){const e=(0,z.f)(t.styleUrl,i);return Object.freeze({styleUrl:e})}}writeStyleOrigin(e,t,i,s){e.styleName?t.styleName=e.styleName:e.styleUrl&&(t.styleUrl=(0,z.t)(e.styleUrl,s))}set uniqueValueGroups(e){this.styleOrigin?l.A.getLogger(this).error("#uniqueValueGroups=","Cannot modify unique value groups of a UniqueValueRenderer created from a web style"):(this._set("uniqueValueGroups",e),this._updateInfosFromGroups(),this._isInfosSource=!1,this._watchUniqueValueGroups())}set uniqueValueInfos(e){this.styleOrigin?l.A.getLogger(this).error("#uniqueValueInfos=","Cannot modify unique value infos of a UniqueValueRenderer created from a web style"):(this._set("uniqueValueInfos",e),this._updateValueInfoMap(),this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos())}addUniqueValueInfo(e,t){if(this.styleOrigin)return void l.A.getLogger(this).error("#addUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");let i;i="object"==typeof e?T(e):new x.A({value:e,symbol:(0,j.dp)(t)}),this.uniqueValueInfos?.push(i),this._valueInfoMap[O(i.value)]=i,this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos()}removeUniqueValueInfo(e){if(this.styleOrigin)return void l.A.getLogger(this).error("#removeUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");const t=this.uniqueValueInfos;if(t)for(let i=0;i<t.length;i++){const s=t[i];if(String(s.value)===String(e)){delete this._valueInfoMap[O(e)],t.splice(i,1);break}}this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos()}async getUniqueValueInfo(e,t){let i=t;return this.valueExpression&&null==t?.arcade&&(i={...i,arcade:await(0,_.l)()}),this._getUniqueValueInfo(e,i)}getSymbol(e,t){if(this.valueExpression&&null==t?.arcade)return void l.A.getLogger(this).error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");const i=this._getUniqueValueInfo(e,t);return i?.symbol||this.defaultSymbol}async getSymbolAsync(e,t){let i=t;if(this.valueExpression&&null==i?.arcade){const e=await(0,_.l)(),{arcadeUtils:t}=e;t.hasGeometryOperations(this.valueExpression)&&await t.enableGeometryOperations(),i={...i,arcade:e}}const s=this._getUniqueValueInfo(e,i);return s?.symbol||this.defaultSymbol}get symbols(){const e=[];if(this._isInfosSource)for(const t of this.uniqueValueInfos??[])t.symbol&&e.push(t.symbol),e.push(...t.alternateSymbols??[]);else for(const t of this.uniqueValueGroups??[])for(const i of t.classes??[])i.symbol&&e.push(i.symbol),e.push(...i.alternateSymbols??[]);return this.defaultSymbol&&e.push(this.defaultSymbol),e}clone(){const e=new M({field:this.field,field2:this.field2,field3:this.field3,defaultLabel:this.defaultLabel,defaultSymbol:(0,r.o8)(this.defaultSymbol),orderByClassesEnabled:this.orderByClassesEnabled,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,fieldDelimiter:this.fieldDelimiter,visualVariables:(0,r.o8)(this.visualVariables),legendOptions:(0,r.o8)(this.legendOptions),authoringInfo:(0,r.o8)(this.authoringInfo),backgroundFillSymbol:(0,r.o8)(this.backgroundFillSymbol)});this._isDefaultSymbolDerived&&(e._isDefaultSymbolDerived=!0),e._set("portal",this.portal);const t=(0,r.o8)(this.uniqueValueInfos),i=(0,r.o8)(this.uniqueValueGroups);return this.styleOrigin&&(e._set("styleOrigin",Object.freeze((0,r.o8)(this.styleOrigin))),Object.freeze(t),Object.freeze(i)),e._set("uniqueValueInfos",t),e._updateValueInfoMap(),e._set("uniqueValueGroups",i),e._isInfosSource=this._isInfosSource,e._watchUniqueValueInfosAndGroups(),e}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}async collectRequiredFields(e,t){const i=[this.collectVVRequiredFields(e,t),this.collectSymbolFields(e,t)];await Promise.all(i)}async collectSymbolFields(e,t){const i=[...this.symbols.map(i=>i.collectRequiredFields(e,t)),(0,c.Dx)(e,t,null,this.valueExpression)];(0,c.rq)(e,t,this.field),(0,c.rq)(e,t,this.field2),(0,c.rq)(e,t,this.field3),await Promise.all(i)}populateFromStyle(){return(0,A.cF)(this.styleOrigin,{portal:this.portal}).then(e=>{const t=[];return this._valueInfoMap={},e?.data&&Array.isArray(e.data.items)&&e.data.items.forEach(i=>{const s=new I.A({styleUrl:e.styleUrl,styleName:e.styleName,portal:this.portal,name:i.name});this.defaultSymbol||i.name!==e.data.defaultItem||(this.defaultSymbol=s,this._isDefaultSymbolDerived=!0);const r=new x.A({value:i.name,symbol:s});t.push(r),this._valueInfoMap[O(i.name)]=r}),this._set("uniqueValueInfos",Object.freeze(t)),this._updateGroupsFromInfos(!0),this._isInfosSource=null,this._watchUniqueValueInfos(),!this.defaultSymbol&&this.uniqueValueInfos?.length&&(this.defaultSymbol=this.uniqueValueInfos[0].symbol,this._isDefaultSymbolDerived=!0),this})}_updateFieldDelimiter(){this.field&&this.field2&&!this.fieldDelimiter&&this._set("fieldDelimiter",",")}_updateUniqueValues(){null!=this._isInfosSource&&(this._isInfosSource?this._updateGroupsFromInfos():this._updateInfosFromGroups())}_updateValueInfoMap(){this._valueInfoMap={};const{uniqueValueInfos:e}=this;if(e)for(const t of e)this._valueInfoMap[O(t.value)]=t}_watchUniqueValueInfosAndGroups(){this._watchUniqueValueInfos(),this._watchUniqueValueGroups()}_watchUniqueValueInfos(){this.removeHandles(E);const{uniqueValueInfos:e}=this;if(e){const t=[];for(const i of e)t.push((0,o.wB)(()=>({symbol:i.symbol,alternateSymbols:i.alternateSymbols,value:i.value,label:i.label,description:i.description}),(e,t)=>{e!==t&&(this._updateGroupsFromInfos(),this._isInfosSource=!0)},{sync:!0}));this.addHandles(t,E)}}_watchUniqueValueGroups(){this.removeHandles(U);const{uniqueValueGroups:e}=this;if(e){const t=[];for(const i of e){t.push((0,o.wB)(()=>({classes:i.classes}),(e,t)=>{e!==t&&(this._updateInfosFromGroups(),this._isInfosSource=!1)},{sync:!0}));for(const e of i.classes??[])t.push((0,o.wB)(()=>({symbol:e.symbol,alternateSymbols:e.alternateSymbols,values:e.values,label:e.label,description:e.description}),(e,t)=>{e!==t&&(this._updateInfosFromGroups(),this._isInfosSource=!1)},{sync:!0}))}this.addHandles(t,U)}}_updateInfosFromGroups(){if(!this.uniqueValueGroups)return this._set("uniqueValueInfos",null),this._updateValueInfoMap(),void this._watchUniqueValueInfos();const e=[],{field:t,field2:i,field3:s,fieldDelimiter:r,uniqueValueGroups:l,valueExpression:n}=this;if(!t&&!n)return this._set("uniqueValueInfos",e),this._updateValueInfoMap(),void this._watchUniqueValueInfos();const o=!(!t||!i);for(const t of l)for(const l of t.classes??[]){const{alternateSymbols:t,symbol:n,label:a,values:u,description:p}=l;for(const l of u??[]){const{value:u,value2:c,value3:d}=l,h=[u];i&&h.push(c),s&&h.push(d);const y=o?h.join(r||""):h[0]??void 0;e.push(new x.A({alternateSymbols:t,symbol:n,label:a,value:y,description:p}))}}this._set("uniqueValueInfos",e),this._updateValueInfoMap(),this._watchUniqueValueInfos()}_updateGroupsFromInfos(e=!1){if(!this.uniqueValueInfos)return this._set("uniqueValueGroups",null),void this._watchUniqueValueGroups();const{field:t,field2:i,valueExpression:s,fieldDelimiter:r,uniqueValueInfos:l}=this;if(!t&&!s||!l.length)return this._set("uniqueValueGroups",[]),void this._watchUniqueValueGroups();const n=!(!t||!i),o=l.map(e=>{const{alternateSymbols:t,symbol:i,label:s,value:l,description:o}=e,[a,u,p]=n?l?.toString()?.split(r||"")||[]:[l];return new V({alternateSymbols:t,symbol:i,label:s,description:o,values:[new v({value:a,value2:u,value3:p})]})}),a=[new C({classes:o})];e&&Object.freeze(a),this._set("uniqueValueGroups",a),this._watchUniqueValueGroups()}_getUniqueValueInfo(e,t){return this.valueExpression?this._getUnqiueValueInfoForExpression(e,t):this._getUnqiueValueInfoForFields(e)}_getUnqiueValueInfoForExpression(e,t){const{viewingMode:i,scale:s,spatialReference:r,arcade:l,timeZone:n}=t??{};let o=this._cache.compiledFunc;const a=l.arcadeUtils;if(!o){const e=a.createSyntaxTree(this.valueExpression);o=a.createFunction(e),this._cache.compiledFunc=o}const u=a.executeFunction(o,a.createExecContext(e,a.getViewInfo({viewingMode:i,scale:s,spatialReference:r}),n));return this._valueInfoMap[O(u)]}_getUnqiueValueInfoForFields(e){const t=this.field,i=e.attributes;let s;if(this.field2){const e=this.field2,r=this.field3,l=[];t&&l.push(i[t]),e&&l.push(i[e]),r&&l.push(i[r]),s=l.join(this.fieldDelimiter||"")}else t&&(s=i[t]);return this._valueInfoMap[O(s)]}static fromPortalStyle(e,t){const i=new M(t?.properties);i._set("styleOrigin",Object.freeze({styleName:e})),i._set("portal",t?.portal||d.A.getDefault());const s=i.populateFromStyle();return s.catch(t=>{l.A.getLogger(this.prototype).error(`#fromPortalStyle('${e}'[, ...])`,"Failed to create unique value renderer from style name",t)}),s}static fromStyleUrl(e,t){const i=new M(t?.properties);i._set("styleOrigin",Object.freeze({styleUrl:e}));const s=i.populateFromStyle();return s.catch(t=>{l.A.getLogger(this.prototype).error(`#fromStyleUrl('${e}'[, ...])`,"Failed to create unique value renderer from style URL",t)}),s}};(0,s.Cg)([(0,a.MZ)({readOnly:!0})],R.prototype,"_cache",null),(0,s.Cg)([(0,Z.e)({uniqueValue:"unique-value"})],R.prototype,"type",void 0),(0,s.Cg)([(0,a.MZ)(f.As)],R.prototype,"backgroundFillSymbol",void 0),(0,s.Cg)([(0,a.MZ)({value:null,json:{type:String,read:{source:"field1"},write:{target:"field1"}}})],R.prototype,"field",null),(0,s.Cg)([(0,a.wg)("field")],R.prototype,"castField",null),(0,s.Cg)([(0,F.K)("field")],R.prototype,"writeField",null),(0,s.Cg)([(0,a.MZ)({type:String,value:null,json:{write:!0}})],R.prototype,"field2",null),(0,s.Cg)([(0,a.MZ)({type:String,value:null,json:{write:!0}})],R.prototype,"field3",null),(0,s.Cg)([(0,a.MZ)({type:Boolean,json:{name:"drawInClassOrder",default:!1,write:!0,origins:{"web-scene":{write:!1}}}})],R.prototype,"orderByClassesEnabled",void 0),(0,s.Cg)([(0,a.MZ)({type:String,value:null,json:{write:!0}})],R.prototype,"valueExpression",null),(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],R.prototype,"valueExpressionTitle",void 0),(0,s.Cg)([(0,a.MZ)({type:m.A,json:{write:!0}})],R.prototype,"legendOptions",void 0),(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],R.prototype,"defaultLabel",void 0),(0,s.Cg)([(0,a.MZ)((0,n.$N)({...f.z4},{json:{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}},origins:{"web-scene":{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}}}}}}))],R.prototype,"defaultSymbol",null),(0,s.Cg)([(0,a.MZ)({type:String,value:null,json:{write:!0}})],R.prototype,"fieldDelimiter",null),(0,s.Cg)([(0,a.MZ)({type:d.A,readOnly:!0})],R.prototype,"portal",void 0),(0,s.Cg)([(0,k.w)("portal",["styleName"])],R.prototype,"readPortal",null),(0,s.Cg)([(0,a.MZ)({readOnly:!0,json:{write:{enabled:!1,overridePolicy:()=>({enabled:!0})}}})],R.prototype,"styleOrigin",void 0),(0,s.Cg)([(0,k.w)("styleOrigin",["styleName","styleUrl"])],R.prototype,"readStyleOrigin",null),(0,s.Cg)([(0,F.K)("styleOrigin",{styleName:{type:String},styleUrl:{type:String}})],R.prototype,"writeStyleOrigin",null),(0,s.Cg)([(0,a.MZ)({type:[C],json:{read:{source:["uniqueValueGroups","uniqueValueInfos"],reader:(e,t,i)=>(t.uniqueValueGroups||function(e){const{field1:t,field2:i,field3:s,fieldDelimiter:r,uniqueValueInfos:l,valueExpression:n}=e,o=!(!t||!i);return[{classes:(l??[]).map(e=>{const{alternateSymbols:l,symbol:a,label:u,value:p,description:c}=e,[d,h,y]=o?p?.toString()?.split(r||"")||[]:[p],f=[];return(t||n)&&f.push(d),i&&f.push(h),s&&f.push(y),{alternateSymbols:l,symbol:a,label:u,values:[f],description:c}})}]}(t)).map(e=>C.fromJSON(e,i))},write:{overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0}}}}})],R.prototype,"uniqueValueGroups",null),(0,s.Cg)([(0,a.MZ)({type:[x.A],json:{read:!1,write:{isRequired:!0,overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0,isRequired:!0}}}}})],R.prototype,"uniqueValueInfos",null),R=M=(0,s.Cg)([(0,a.$K)("esri.renderers.UniqueValueRenderer")],R)},63988(e,t,i){i.d(t,{h:()=>C});var s=i(5482),r=i(91429),l=i(30524),n=i(2024),o=i(62724),a=i(23461),u=i(48940),p=i(2795),c=i(69622),d=i(66552),h=i(53966),y=i(59923);const f={color:n.A,size:u.A,opacity:o.A,rotation:a.A},m=new d.J({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"}),g=/^\[([^\]]+)\]$/i;let b=class extends c.A{constructor(){super(...arguments),this.colorVariables=null,this.opacityVariables=null,this.rotationVariables=null,this.sizeVariables=null}set visualVariables(e){if(this._resetVariables(),e=e?.filter(e=>!!e),e?.length){for(const t of e)switch(t.type){case"color":this.colorVariables.push(t);break;case"opacity":this.opacityVariables.push(t);break;case"rotation":this.rotationVariables.push(t);break;case"size":this.sizeVariables.push(t)}this.sizeVariables.length&&this.sizeVariables.some(e=>!!e.target)&&e.sort((e,t)=>{let i=null;return i=e.target===t.target?0:e.target?1:-1,i});for(let t=0;t<e.length;t++)e[t].index=t;this._set("visualVariables",e)}else this._set("visualVariables",e)}readVariables(e,t,i){const{rotationExpression:s,rotationType:r}=t,l=s?.match(g),n=l?.[1];if(n&&(e||(e=[]),e.push({type:"rotationInfo",rotationType:r,field:n})),e)return e.map(e=>{const t=m.read(e.type),s=f[t];s||(h.A.getLogger(this).warn(`Unknown variable type: ${t}`),(0,y.Yc)(i,"warning","visual-variable",`visualVariable of type '${t}' is not supported`,{definition:e}));const r=new s;return r.read(e,i),r})}writeVariables(e,t){const i=[];for(const s of e){const e=s.toJSON(t);e&&i.push(e)}return i}_resetVariables(){this.colorVariables=[],this.opacityVariables=[],this.rotationVariables=[],this.sizeVariables=[]}};(0,s.Cg)([(0,r.MZ)()],b.prototype,"visualVariables",null),b=(0,s.Cg)([(0,r.$K)("esri.renderers.visualVariables.VisualVariableFactory")],b);var v=i(69309),w=i(36005),S=i(43937);const V={base:p.A,key:"type",typeMap:{opacity:o.A,color:n.A,rotation:a.A,size:u.A}},C=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this._vvFactory=new b}set visualVariables(e){this._vvFactory.visualVariables=e,this._set("visualVariables",this._vvFactory.visualVariables)}readVisualVariables(e,t,i){return this._vvFactory.readVariables(e,t,i)}writeVisualVariables(e,t,i,s){t[i]=this._vvFactory.writeVariables(e,s)}get arcadeRequiredForVisualVariables(){return this.visualVariables?.some(({arcadeRequired:e})=>e)??!1}hasVisualVariables(e,t){return e?this.getVisualVariablesForType(e,t).length>0:this.getVisualVariablesForType("size",t).length>0||this.getVisualVariablesForType("color",t).length>0||this.getVisualVariablesForType("opacity",t).length>0||this.getVisualVariablesForType("rotation",t).length>0}getVisualVariablesForType(e,t){return this.visualVariables?.filter(i=>i.type===e&&("string"==typeof t?i.target===t:!1!==t||!i.target))??[]}async collectVVRequiredFields(e,t){let i=[];this.visualVariables&&(i=i.concat(this.visualVariables));for(const s of i)s&&(s.field&&(0,l.rq)(e,t,s.field),s.normalizationField&&(0,l.rq)(e,t,s.normalizationField),s.valueExpression&&(M(s.valueExpression,e,t)||await(0,l.Dx)(e,t,null,s.valueExpression)))}};return(0,s.Cg)([(0,r.MZ)({types:[V],value:null,json:{write:!0}})],i.prototype,"visualVariables",null),(0,s.Cg)([(0,w.w)("visualVariables",["visualVariables","rotationType","rotationExpression"])],i.prototype,"readVisualVariables",null),(0,s.Cg)([(0,S.K)("visualVariables")],i.prototype,"writeVisualVariables",null),i=(0,s.Cg)([(0,r.$K)("esri.renderers.mixins.VisualVariablesMixin")],i),i};function M(e,t,i){const s=(0,v.D)(e);return null!=s&&((0,l.rq)(t,i,s),!0)}},30943(e,t,i){i.d(t,{A:()=>k});var s,r=i(5482),l=i(66552),n=i(25482),o=i(4718),a=i(91429),u=i(56507);let p=s=class extends n.o{constructor(e){super(e),this.minValue=0,this.maxValue=0}clone(){return new s({minValue:this.minValue,maxValue:this.maxValue})}};(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],p.prototype,"minValue",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],p.prototype,"maxValue",void 0),p=s=(0,r.Cg)([(0,a.$K)("esri.renderers.support.AuthoringInfoClassBreakInfo")],p);const c=p;var d;let h=d=class extends n.o{constructor(e){super(e),this.field="",this.normalizationField="",this.label="",this.classBreakInfos=new Array}clone(){return new d({field:this.field,normalizationField:this.normalizationField,label:this.label,classBreakInfos:(0,o.o8)(this.classBreakInfos)})}};(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],h.prototype,"field",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],h.prototype,"normalizationField",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],h.prototype,"label",void 0),(0,r.Cg)([(0,a.MZ)({type:[c],json:{write:!0}})],h.prototype,"classBreakInfos",void 0),h=d=(0,r.Cg)([(0,a.$K)("esri.renderers.support.AuthoringInfoFieldInfo")],h);const y=h;var f,m=i(79901);let g=f=class extends n.o{constructor(e){super(e),this.label=null,this.size=null,this.value=null}clone(){return new f({label:this.label,value:this.value,size:this.size})}};(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],g.prototype,"label",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"size",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"value",void 0),g=f=(0,r.Cg)([(0,a.$K)("esri.renderers.support.AuthoringInfoSizeStop")],g);const b=g;var v;const w=new l.J({percentTotal:"percent-of-total",ratio:"ratio",percent:"percent"}),S=new l.J({sizeInfo:"size",colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation"}),V={key:e=>"number"==typeof e?"number":"string",typeMap:{number:Number,string:String},base:null},C=["high-to-low","above-and-below","centered-on","extremes"],M=[...new Set(["high-to-low","above-and-below","centered-on","extremes","above","below","high-to-low","above-and-below","above","below","reference-size","spike"])],x=["seconds","minutes","hours","days","months","years"];let _=v=class extends n.o{constructor(e){super(e),this.endTime=null,this.field=null,this.maxSliderValue=null,this.minSliderValue=null,this.startTime=null,this.type=null,this.units=null}castEndTime(e){return"string"==typeof e||"number"==typeof e?e:null}get normalizationField(){return"reference-size"===this.theme||"spike"===this.theme?this._get("normalizationField"):null}set normalizationField(e){this._set("normalizationField",e)}get referenceSizeScale(){return"reference-size"===this.theme?this._get("referenceSizeScale"):null}set referenceSizeScale(e){this._set("referenceSizeScale",e)}get referenceSizeSymbolStyle(){return"reference-size"===this.theme?this._get("referenceSizeSymbolStyle"):null}set referenceSizeSymbolStyle(e){this._set("referenceSizeSymbolStyle",e)}get spikeSymbolStyle(){return"spike"===this.theme?this._get("spikeSymbolStyle"):null}set spikeSymbolStyle(e){this._set("spikeSymbolStyle",e)}castStartTime(e){return"string"==typeof e||"number"==typeof e?e:null}get sizeStops(){return"reference-size"===this.theme||"spike"===this.theme?this._get("sizeStops"):null}set sizeStops(e){this._set("sizeStops",e)}get style(){return"color"===this.type?this._get("style"):null}set style(e){this._set("style",e)}get theme(){return"color"===this.type||"size"===this.type?this._get("theme")||"high-to-low":null}set theme(e){this._set("theme",e)}clone(){return new v({endTime:this.endTime,field:this.field,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,normalizationField:this.normalizationField,referenceSizeScale:this.referenceSizeScale,referenceSizeSymbolStyle:this.referenceSizeSymbolStyle,spikeSymbolStyle:this.spikeSymbolStyle,sizeStops:(0,o.o8)(this.sizeStops),startTime:this.startTime,style:this.style,theme:this.theme,type:this.type,units:this.units})}};(0,r.Cg)([(0,a.MZ)({types:V,json:{write:!0}})],_.prototype,"endTime",void 0),(0,r.Cg)([(0,m.w)("endTime")],_.prototype,"castEndTime",null),(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],_.prototype,"field",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],_.prototype,"maxSliderValue",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],_.prototype,"minSliderValue",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{origins:{"web-scene":{write:!1}},write:!0}})],_.prototype,"normalizationField",null),(0,r.Cg)([(0,a.MZ)({type:Number,value:null,json:{origins:{"web-scene":{write:!1}},write:!0}})],_.prototype,"referenceSizeScale",null),(0,r.Cg)([(0,a.MZ)({type:["circle","diamond","hexagon-flat","hexagon-pointy","square"],value:null,json:{origins:{"web-scene":{write:!1}},write:!0}})],_.prototype,"referenceSizeSymbolStyle",null),(0,r.Cg)([(0,a.MZ)({type:["triangle-closed-outline","triangle-gradient-fill-closed","triangle-gradient-fill-closed-outline","triangle-gradient-fill-open","triangle-gradient-fill-open-outline","triangle-open-outline","triangle-solid-fill-closed","triangle-solid-fill-closed-outline","triangle-solid-fill-open","triangle-solid-fill-open-outline"],value:null,json:{origins:{"web-scene":{write:!1}},write:!0}})],_.prototype,"spikeSymbolStyle",null),(0,r.Cg)([(0,a.MZ)({types:V,json:{write:!0}})],_.prototype,"startTime",void 0),(0,r.Cg)([(0,m.w)("startTime")],_.prototype,"castStartTime",null),(0,r.Cg)([(0,a.MZ)({type:[b],json:{origins:{"web-scene":{write:!1}},write:!0}})],_.prototype,"sizeStops",null),(0,r.Cg)([(0,a.MZ)({type:w.apiValues,value:null,json:{type:w.jsonValues,read:w.read,write:w.write}})],_.prototype,"style",null),(0,r.Cg)([(0,a.MZ)({type:M,value:null,json:{type:M,origins:{"web-scene":{type:C,write:{writer:(e,t)=>{C.includes(e)&&(t.theme=e)}}}},write:!0}})],_.prototype,"theme",null),(0,r.Cg)([(0,a.MZ)({type:S.apiValues,json:{type:S.jsonValues,read:S.read,write:S.write}})],_.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({type:x,json:{type:x,write:!0}})],_.prototype,"units",void 0),_=v=(0,r.Cg)([(0,a.$K)("esri.renderers.support.AuthoringInfoVisualVariable")],_);const z=_;var I,A=i(95349),j=i(36005);const q=new l.J({esriClassifyDefinedInterval:"defined-interval",esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation"}),Z=new l.J({classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density",flow:"flow"}),F=["inches","feet","yards","miles","nautical-miles","millimeters","centimeters","decimeters","meters","kilometers"];let k=I=class extends n.o{constructor(e){super(e),this.colorRamp=null,this.fadeRatio=null,this.isAutoGenerated=!1,this.lengthUnit=null,this.maxSliderValue=null,this.minSliderValue=null,this.visualVariables=null}get classificationMethod(){const e=this._get("classificationMethod"),t=this.type;return t&&"relationship"!==t?"class-breaks-size"===t||"class-breaks-color"===t?e||"manual":null:e}set classificationMethod(e){this._set("classificationMethod",e)}readColorRamp(e){return e?(0,A.r)(e):void 0}get fields(){return this.type&&"predominance"!==this.type?null:this._get("fields")}set fields(e){this._set("fields",e)}get field1(){return this.type&&"relationship"!==this.type?null:this._get("field1")}set field1(e){this._set("field1",e)}get field2(){return this.type&&"relationship"!==this.type?null:this._get("field2")}set field2(e){this._set("field2",e)}get flowTheme(){return"flow"===this.type?this._get("flowTheme"):null}set flowTheme(e){this._set("flowTheme",e)}get focus(){return this.type&&"relationship"!==this.type?null:this._get("focus")}set focus(e){this._set("focus",e)}get numClasses(){return this.type&&"relationship"!==this.type?null:this._get("numClasses")}set numClasses(e){this._set("numClasses",e)}get statistics(){return"univariate-color-size"===this.type&&"above-and-below"===this.univariateTheme?this._get("statistics"):null}set statistics(e){this._set("statistics",e)}get standardDeviationInterval(){const e=this.type;return e&&"relationship"!==e&&"class-breaks-size"!==e&&"class-breaks-color"!==e||this.classificationMethod&&"standard-deviation"!==this.classificationMethod?null:this._get("standardDeviationInterval")}set standardDeviationInterval(e){this._set("standardDeviationInterval",e)}get type(){return this._get("type")}set type(e){let t=e;"classed-size"===e?t="class-breaks-size":"classed-color"===e&&(t="class-breaks-color"),this._set("type",t)}get univariateSymbolStyle(){return"univariate-color-size"===this.type&&"above-and-below"===this.univariateTheme?this._get("univariateSymbolStyle"):null}set univariateSymbolStyle(e){this._set("univariateSymbolStyle",e)}get univariateTheme(){return"univariate-color-size"===this.type?this._get("univariateTheme"):null}set univariateTheme(e){this._set("univariateTheme",e)}clone(){return new I({classificationMethod:this.classificationMethod,colorRamp:(0,o.o8)(this.colorRamp),fadeRatio:(0,o.o8)(this.fadeRatio),fields:this.fields?.slice(),field1:(0,o.o8)(this.field1),field2:(0,o.o8)(this.field2),isAutoGenerated:this.isAutoGenerated,focus:this.focus,numClasses:this.numClasses,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,lengthUnit:this.lengthUnit,statistics:this.statistics,standardDeviationInterval:this.standardDeviationInterval,type:this.type,visualVariables:this.visualVariables&&this.visualVariables.map(e=>e.clone()),univariateSymbolStyle:this.univariateSymbolStyle,univariateTheme:this.univariateTheme,flowTheme:this.flowTheme})}};(0,r.Cg)([(0,a.MZ)({type:q.apiValues,value:null,json:{type:q.jsonValues,read:q.read,write:q.write,origins:{"web-document":{default:"manual",type:q.jsonValues,read:q.read,write:q.write}}}})],k.prototype,"classificationMethod",null),(0,r.Cg)([(0,a.MZ)({types:A.g,json:{write:!0}})],k.prototype,"colorRamp",void 0),(0,r.Cg)([(0,j.w)("colorRamp")],k.prototype,"readColorRamp",null),(0,r.Cg)([(0,a.MZ)({json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],k.prototype,"fadeRatio",void 0),(0,r.Cg)([(0,a.MZ)({type:[String],value:null,json:{write:!0}})],k.prototype,"fields",null),(0,r.Cg)([(0,a.MZ)({type:y,value:null,json:{write:!0}})],k.prototype,"field1",null),(0,r.Cg)([(0,a.MZ)({type:y,value:null,json:{write:!0}})],k.prototype,"field2",null),(0,r.Cg)([(0,a.MZ)({type:["flow-line","wave-front"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],k.prototype,"flowTheme",null),(0,r.Cg)([(0,a.MZ)({type:["HH","HL","LH","LL"],value:null,json:{write:!0}})],k.prototype,"focus",null),(0,r.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1}}}})],k.prototype,"isAutoGenerated",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,value:null,json:{type:u.jz,write:!0}})],k.prototype,"numClasses",null),(0,r.Cg)([(0,a.MZ)({type:F,json:{type:F,read:!1,write:!1,origins:{"web-scene":{read:!0,write:!0}}}})],k.prototype,"lengthUnit",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],k.prototype,"maxSliderValue",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],k.prototype,"minSliderValue",void 0),(0,r.Cg)([(0,a.MZ)({type:Object,value:null,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],k.prototype,"statistics",null),(0,r.Cg)([(0,a.MZ)({type:[.25,.33,.5,1],value:null,json:{type:[.25,.33,.5,1],write:!0}})],k.prototype,"standardDeviationInterval",null),(0,r.Cg)([(0,a.MZ)({type:Z.apiValues,value:null,json:{type:Z.jsonValues,read:Z.read,write:Z.write}})],k.prototype,"type",null),(0,r.Cg)([(0,a.MZ)({type:[z],json:{write:!0}})],k.prototype,"visualVariables",void 0),(0,r.Cg)([(0,a.MZ)({type:["caret","circle-caret","arrow","circle-arrow","plus-minus","circle-plus-minus","square","circle","triangle","happy-sad","thumb","custom"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],k.prototype,"univariateSymbolStyle",null),(0,r.Cg)([(0,a.MZ)({type:["high-to-low","above-and-below","above","below"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],k.prototype,"univariateTheme",null),k=I=(0,r.Cg)([(0,a.$K)("esri.renderers.support.AuthoringInfo")],k)},88542(e,t,i){i.d(t,{A:()=>u});var s,r=i(5482),l=i(25482),n=i(91429),o=i(49849),a=i(40863);let u=s=class extends l.o{constructor(e){super(e),this.description=null,this.label=null,this.minValue=null,this.maxValue=0,this.symbol=null,this.alternateSymbols=null}clone(){return new s({alternateSymbols:this.alternateSymbols?.map(e=>e.clone()),description:this.description,label:this.label,minValue:this.minValue,maxValue:this.maxValue,symbol:this.symbol?.clone()??null})}};(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,r.Cg)([(0,n.MZ)({type:Number,json:{read:{source:"classMinValue"},write:{target:"classMinValue"}}})],u.prototype,"minValue",void 0),(0,r.Cg)([(0,n.MZ)({type:Number,json:{read:{source:"classMaxValue"},write:{target:"classMaxValue"}}})],u.prototype,"maxValue",void 0),(0,r.Cg)([(0,n.MZ)(o.Wp)],u.prototype,"symbol",void 0),(0,r.Cg)([(0,n.MZ)({type:[a.A],json:{write:!0,origins:{"web-scene":{write:!1}}}})],u.prototype,"alternateSymbols",void 0),u=s=(0,r.Cg)([(0,n.$K)("esri.renderers.support.ClassBreakInfo")],u)},20061(e,t,i){i.d(t,{A:()=>h});var s,r=i(5482),l=i(69540),n=i(66552),o=i(25482),a=i(91429),u=i(56507),p=i(93223);const c=(0,n.O)()({ascendingValues:"ascending-values",descendingValues:"descending-values"});let d=s=class extends((0,l.OU)(o.o)){static from(e){return(0,u.PZ)(s,e)}constructor(e){super(e),this.title=null,this.order=null}};(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],d.prototype,"title",void 0),(0,r.Cg)([(0,p.e)(c)],d.prototype,"order",void 0),d=s=(0,r.Cg)([(0,a.$K)("esri.renderers.support.RendererLegendOptions")],d);const h=d},94833(e,t,i){i.d(t,{A:()=>u});var s,r=i(5482),l=i(25482),n=i(91429),o=i(49849),a=i(40863);let u=s=class extends l.o{constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.alternateSymbols=null,this.value=null}clone(){return new s({alternateSymbols:this.alternateSymbols?.map(e=>e.clone()),value:this.value,description:this.description,label:this.label,symbol:this.symbol?this.symbol.clone():null})}};(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,r.Cg)([(0,n.MZ)(o.Wp)],u.prototype,"symbol",void 0),(0,r.Cg)([(0,n.MZ)({type:[a.A],json:{write:!0,origins:{"web-scene":{write:!1}}}})],u.prototype,"alternateSymbols",void 0),(0,r.Cg)([(0,n.MZ)(o.Ug)],u.prototype,"value",void 0),u=s=(0,r.Cg)([(0,n.$K)("esri.renderers.support.UniqueValueInfo")],u)},49849(e,t,i){i.d(t,{As:()=>c,Ug:()=>d,Wp:()=>p,z4:()=>u});var s=i(93637),r=i(90360),l=i(65365),n=i(20378),o=i(73838),a=i(33910);const u={types:a.xK,json:{write:{writer:o.M9},origins:{"web-scene":{types:a.On,write:{writer:o.M9},read:{reader:(0,r.C)({types:a.On})}}}}},p=(0,s.$N)({json:{origins:{"web-scene":{write:{isRequired:!0}}}}},u),c={types:{base:n.A,key:"type",typeMap:{"simple-fill":a.Es.typeMap["simple-fill"],"picture-fill":a.Es.typeMap["picture-fill"],"polygon-3d":a.Es.typeMap["polygon-3d"],cim:a.Es.typeMap.cim}},json:{write:{writer:o.M9},origins:{"web-scene":{type:l.A,write:{writer:o.M9}}}}},d={cast:e=>null==e||"string"==typeof e||"number"==typeof e?e:`${e}`,json:{type:String,write:{writer:(e,t)=>{t.value=e?.toString()}}}}},2024(e,t,i){i.d(t,{A:()=>a});var s,r=i(5482),l=i(91429),n=i(2795),o=i(72500);let a=s=class extends n.A{constructor(e){super(e),this.type="color",this.normalizationField=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}set stops(e){e&&Array.isArray(e)&&(e=e.filter(e=>!!e)).sort((e,t)=>e.value-t.value),this._set("stops",e)}clone(){return new s({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map(e=>e.clone()),legendOptions:this.legendOptions?.clone()})}_interpolateData(){return this.stops&&this.stops.map(e=>e.value||0)}};(0,r.Cg)([(0,l.MZ)({readOnly:!0})],a.prototype,"cache",null),(0,r.Cg)([(0,l.MZ)({type:["color"],json:{type:["colorInfo"]}})],a.prototype,"type",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],a.prototype,"normalizationField",void 0),(0,r.Cg)([(0,l.MZ)({type:[o.A],json:{write:!0}})],a.prototype,"stops",null),a=s=(0,r.Cg)([(0,l.$K)("esri.renderers.visualVariables.ColorVariable")],a)},62724(e,t,i){i.d(t,{A:()=>f});var s,r=i(5482),l=i(91429),n=i(2795),o=i(25482),a=i(56507),u=i(78553),p=i(36005),c=i(43937);let d=s=class extends o.o{constructor(e){super(e),this.label=null,this.opacity=null,this.value=null}readOpacity(e,t){return(0,u.D)(t.transparency)}writeOpacity(e,t,i){t[i]=(0,u.p)(e)}clone(){return new s({label:this.label,opacity:this.opacity,value:this.value})}};(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],d.prototype,"label",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{type:a.jz,write:{target:"transparency",isRequired:!0}}})],d.prototype,"opacity",void 0),(0,r.Cg)([(0,p.w)("opacity",["transparency"])],d.prototype,"readOpacity",null),(0,r.Cg)([(0,c.K)("opacity")],d.prototype,"writeOpacity",null),(0,r.Cg)([(0,l.MZ)({type:Number,json:{write:{isRequired:!0}}})],d.prototype,"value",void 0),d=s=(0,r.Cg)([(0,l.$K)("esri.renderers.visualVariables.support.OpacityStop")],d);const h=d;var y;let f=y=class extends n.A{constructor(e){super(e),this.type="opacity",this.normalizationField=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}set stops(e){e&&Array.isArray(e)&&(e=e.filter(e=>!!e)).sort((e,t)=>e.value-t.value),this._set("stops",e)}clone(){return new y({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map(e=>e.clone()),legendOptions:this.legendOptions?.clone()})}_interpolateData(){return this.stops&&this.stops.map(e=>e.value||0)}};(0,r.Cg)([(0,l.MZ)({readOnly:!0})],f.prototype,"cache",null),(0,r.Cg)([(0,l.MZ)({type:["opacity"],json:{type:["transparencyInfo"]}})],f.prototype,"type",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],f.prototype,"normalizationField",void 0),(0,r.Cg)([(0,l.MZ)({type:[h],json:{write:!0}})],f.prototype,"stops",null),f=y=(0,r.Cg)([(0,l.$K)("esri.renderers.visualVariables.OpacityVariable")],f)},23461(e,t,i){i.d(t,{A:()=>o});var s,r=i(5482),l=i(91429),n=i(2795);let o=s=class extends n.A{constructor(e){super(e),this.axis=null,this.type="rotation",this.rotationType="geographic"}get cache(){return{hasExpression:!!this.valueExpression,compiledFunc:null}}clone(){return new s({axis:this.axis,rotationType:this.rotationType,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,legendOptions:this.legendOptions?.clone()})}};(0,r.Cg)([(0,l.MZ)({readOnly:!0})],o.prototype,"cache",null),(0,r.Cg)([(0,l.MZ)({type:["heading","tilt","roll"],json:{origins:{"web-scene":{default:"heading",write:!0}}}})],o.prototype,"axis",void 0),(0,r.Cg)([(0,l.MZ)({type:["rotation"],json:{type:["rotationInfo"]}})],o.prototype,"type",void 0),(0,r.Cg)([(0,l.MZ)({type:["geographic","arithmetic"],json:{write:!0,origins:{"web-document":{write:!0,default:"geographic"}}}})],o.prototype,"rotationType",void 0),o=s=(0,r.Cg)([(0,l.$K)("esri.renderers.visualVariables.RotationVariable")],o)},48940(e,t,i){i.d(t,{A:()=>x});var s=i(5482),r=i(66552),l=i(53966),n=i(91429),o=i(2795),a=i(90629),u=i(12330),p=i(41078);let c=class extends p.A{constructor(e){super(e),this.customValues=null}};(0,s.Cg)([(0,n.MZ)({type:[Number],json:{write:!0}})],c.prototype,"customValues",void 0),c=(0,s.Cg)([(0,n.$K)("esri.renderers.visualVariables.support.SizeVariableLegendOptions")],c);const d=c;var h,y,f=i(98205),m=i(29266),g=i(59923),b=i(36005),v=i(43937);const w=new r.J({width:"width",depth:"depth",height:"height",widthAndDepth:"width-and-depth",all:"all"}),S=new r.J({unknown:"unknown",inch:"inches",foot:"feet",yard:"yards",mile:"miles","nautical-mile":"nautical-miles",millimeter:"millimeters",centimeter:"centimeters",decimeter:"decimeters",meter:"meters",kilometer:"kilometers"});function V(e){if(null!=e)return"string"==typeof e||"number"==typeof e?function(e){return(0,a.cr)(e)}(e):"size"===e.type?(0,f.of)(e)?e:(delete(e={...e}).type,new x(e)):void 0}function C(e,t,i){if("object"!=typeof e)return e;if("web-scene"===i.origin)return;const s=new x;return s.read(e,i),s}function M(e,t,i,s){"number"!=typeof e?"web-scene"!==s?.origin?t[i]=e.toJSON(s):(0,g.Yc)(s,"error","property",`Size variable '${i}' can only be a number in web scenes.`):t[i]=e}let x=y=class extends o.A{static{h=f.uY}constructor(e){super(e),this[h]=!0,this.axis=null,this.legendOptions=null,this.normalizationField=null,this.scaleBy=null,this.target=null,this.type="size",this.useSymbolValue=null,this.valueExpression=null,this.valueRepresentation=null,this.valueUnit=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null,isScaleDriven:null!=this.valueExpression&&m.RV.test(this.valueExpression)}}set index(e){(0,f.of)(this.maxSize)&&(this.maxSize.index=`visualVariables[${e}].maxSize`),(0,f.of)(this.minSize)&&(this.minSize.index=`visualVariables[${e}].minSize`),this._set("index",e)}get inputValueType(){return(0,f.eh)(this)}set maxDataValue(e){e&&this.stops&&(l.A.getLogger(this).warn("cannot set maxDataValue when stops is not null."),e=null),this._set("maxDataValue",e)}get maxSize(){return this._get("maxSize")}set maxSize(e){e&&this.stops&&(l.A.getLogger(this).warn("cannot set maxSize when stops is not null."),e=null),this._set("maxSize",V(e))}readMaxSize(e,t,i){return C(e,0,i)}writeMaxSize(e,t,i,s){return M(e,t,i,s)}set minDataValue(e){e&&this.stops&&(l.A.getLogger(this).warn("cannot set minDataValue when stops is not null."),e=null),this._set("minDataValue",e)}get minSize(){return this._get("minSize")}set minSize(e){e&&this.stops&&(l.A.getLogger(this).warn("cannot set minSize when stops is not null."),e=null),this._set("minSize",V(e))}readMinSize(e,t,i){return C(e,0,i)}writeMinSize(e,t,i,s){return M(e,t,i,s)}get arcadeRequired(){return!!this.valueExpression||null!=this.minSize&&"object"==typeof this.minSize&&this.minSize.arcadeRequired||null!=this.maxSize&&"object"==typeof this.maxSize&&this.maxSize.arcadeRequired}set stops(e){null==this.minDataValue&&null==this.maxDataValue&&null==this.minSize&&null==this.maxSize?e&&Array.isArray(e)&&(e=e.filter(e=>!!e)).sort((e,t)=>e.value-t.value):e&&(l.A.getLogger(this).warn("cannot set stops when one of minDataValue, maxDataValue, minSize or maxSize is not null."),e=null),this._set("stops",e)}get transformationType(){return(0,f.KZ)(this,this.inputValueType)}readValueExpression(e,t){return e||t.expression&&"$view.scale"}writeValueExpressionWebScene(e,t,i,s){if(m.RV.test(e)){if(s?.messages){const e=this.index;(0,g.qt)(s,`visualVariables[${"string"==typeof e?e:`visualVariables[${e}]`}].valueExpression`,"SizeVariable with '$view.scale' valueExpression is not supported in Web Scene. Please remove this property to save the Web Scene.")}}else t[i]=e}readValueUnit(e){return e?S.read(e):null}clone(){return new y({axis:this.axis,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,maxDataValue:this.maxDataValue,maxSize:(0,f.of)(this.maxSize)?this.maxSize.clone():this.maxSize,minDataValue:this.minDataValue,minSize:(0,f.of)(this.minSize)?this.minSize.clone():this.minSize,normalizationField:this.normalizationField,stops:this.stops?.map(e=>e.clone()),target:this.target,useSymbolValue:this.useSymbolValue,valueRepresentation:this.valueRepresentation,valueUnit:this.valueUnit,legendOptions:this.legendOptions?.clone()})}flipSizes(){if("clamped-linear"===this.transformationType){const{minSize:e,maxSize:t}=this;return this.minSize=t,this.maxSize=e,this}if("stops"===this.transformationType){const e=this.stops;if(!e)return this;const t=e.map(e=>e.size).reverse(),i=e.length;for(let s=0;s<i;s++)e[s].size=t[s];return this}return this}_interpolateData(){return this.stops?.map(e=>e.value||0)}};(0,s.Cg)([(0,n.MZ)({readOnly:!0})],x.prototype,"cache",null),(0,s.Cg)([(0,n.MZ)({type:w.apiValues,json:{type:w.jsonValues,origins:{"web-map":{read:!1}},read:w.read,write:w.write}})],x.prototype,"axis",void 0),(0,s.Cg)([(0,n.MZ)()],x.prototype,"index",null),(0,s.Cg)([(0,n.MZ)({type:String,readOnly:!0})],x.prototype,"inputValueType",null),(0,s.Cg)([(0,n.MZ)({type:d,json:{write:!0}})],x.prototype,"legendOptions",void 0),(0,s.Cg)([(0,n.MZ)({type:Number,value:null,json:{write:!0}})],x.prototype,"maxDataValue",null),(0,s.Cg)([(0,n.MZ)({type:Number,useTypeForAutocast:!1,value:null,json:{write:!0}})],x.prototype,"maxSize",null),(0,s.Cg)([(0,b.w)("maxSize")],x.prototype,"readMaxSize",null),(0,s.Cg)([(0,v.K)("maxSize")],x.prototype,"writeMaxSize",null),(0,s.Cg)([(0,n.MZ)({type:Number,value:null,json:{write:!0}})],x.prototype,"minDataValue",null),(0,s.Cg)([(0,n.MZ)({type:Number,useTypeForAutocast:!1,value:null,json:{write:!0}})],x.prototype,"minSize",null),(0,s.Cg)([(0,b.w)("minSize")],x.prototype,"readMinSize",null),(0,s.Cg)([(0,v.K)("minSize")],x.prototype,"writeMinSize",null),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],x.prototype,"normalizationField",void 0),(0,s.Cg)([(0,n.MZ)({readOnly:!0})],x.prototype,"arcadeRequired",null),(0,s.Cg)([(0,n.MZ)({type:String})],x.prototype,"scaleBy",void 0),(0,s.Cg)([(0,n.MZ)({type:[u.A],value:null,json:{write:!0}})],x.prototype,"stops",null),(0,s.Cg)([(0,n.MZ)({type:["outline"],json:{write:!0}})],x.prototype,"target",void 0),(0,s.Cg)([(0,n.MZ)({type:String,readOnly:!0})],x.prototype,"transformationType",null),(0,s.Cg)([(0,n.MZ)({type:["size"],json:{type:["sizeInfo"]}})],x.prototype,"type",void 0),(0,s.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0,origins:{"web-map":{read:!1}}}})],x.prototype,"useSymbolValue",void 0),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],x.prototype,"valueExpression",void 0),(0,s.Cg)([(0,b.w)("valueExpression",["valueExpression","expression"])],x.prototype,"readValueExpression",null),(0,s.Cg)([(0,v.K)("web-scene","valueExpression")],x.prototype,"writeValueExpressionWebScene",null),(0,s.Cg)([(0,n.MZ)({type:["radius","diameter","area","width","distance"],json:{write:!0}})],x.prototype,"valueRepresentation",void 0),(0,s.Cg)([(0,n.MZ)({type:S.apiValues,json:{write:S.write,origins:{"web-map":{read:!1},"web-scene":{write:!0},"portal-item":{write:!0}}}})],x.prototype,"valueUnit",void 0),(0,s.Cg)([(0,b.w)("valueUnit")],x.prototype,"readValueUnit",null),x=y=(0,s.Cg)([(0,n.$K)("esri.renderers.visualVariables.SizeVariable")],x)},2795(e,t,i){i.d(t,{A:()=>c});var s=i(5482),r=i(66552),l=i(25482),n=i(53966),o=i(91429),a=i(56507),u=i(41078);const p=new r.J({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"});let c=class extends l.o{constructor(e){super(e),this.index=null,this.type=null,this.field=null,this.valueExpression=null,this.valueExpressionTitle=null,this.legendOptions=null}castField(e){return null==e?e:"function"==typeof e?(n.A.getLogger(this).error(".field: field must be a string value"),null):(0,a.GX)(e)}get arcadeRequired(){return!!this.valueExpression}clone(){}};(0,s.Cg)([(0,o.MZ)()],c.prototype,"index",void 0),(0,s.Cg)([(0,o.MZ)({type:p.apiValues,readOnly:!0,json:{read:p.read,write:{writer:p.write,isRequired:!0}}})],c.prototype,"type",void 0),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],c.prototype,"field",void 0),(0,s.Cg)([(0,o.wg)("field")],c.prototype,"castField",null),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],c.prototype,"valueExpression",void 0),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],c.prototype,"valueExpressionTitle",void 0),(0,s.Cg)([(0,o.MZ)({readOnly:!0})],c.prototype,"arcadeRequired",null),(0,s.Cg)([(0,o.MZ)({type:u.A,json:{write:!0}})],c.prototype,"legendOptions",void 0),c=(0,s.Cg)([(0,o.$K)("esri.renderers.visualVariables.VisualVariable")],c)},72500(e,t,i){i.d(t,{A:()=>c});var s,r=i(5482),l=i(68197),n=i(25482),o=i(91429),a=i(56507),u=i(43937);let p=s=class extends n.o{constructor(e){super(e),this.color=null,this.label=null,this.value=null}writeValue(e,t,i){t[i]=e??0}clone(){return new s({color:this.color&&this.color.clone(),label:this.label,value:this.value})}};(0,r.Cg)([(0,o.MZ)({type:l.A,json:{type:[a.jz],write:{isRequired:!0}}})],p.prototype,"color",void 0),(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],p.prototype,"label",void 0),(0,r.Cg)([(0,o.MZ)({type:Number,json:{write:{writerEnsuresNonNull:!0}}})],p.prototype,"value",void 0),(0,r.Cg)([(0,u.K)("value")],p.prototype,"writeValue",null),p=s=(0,r.Cg)([(0,o.$K)("esri.renderers.visualVariables.support.ColorStop")],p);const c=p},12330(e,t,i){i.d(t,{A:()=>a});var s,r=i(5482),l=i(25482),n=i(90629),o=i(91429);let a=s=class extends l.o{constructor(e){super(e),this.label=null,this.value=null,this.useMinValue=null,this.useMaxValue=null}get size(){return this._get("size")}set size(e){this._set("size",e)}clone(){return new s({label:this.label,size:this.size,value:this.value,useMaxValue:this.useMaxValue,useMinValue:this.useMinValue})}};(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"label",void 0),(0,r.Cg)([(0,o.MZ)({type:Number,cast:n.cr,json:{write:{isRequired:!0}}})],a.prototype,"size",null),(0,r.Cg)([(0,o.MZ)({type:Number,json:{write:{isRequired:!0}}})],a.prototype,"value",void 0),(0,r.Cg)([(0,o.MZ)({type:Boolean,json:{write:!1}})],a.prototype,"useMinValue",void 0),(0,r.Cg)([(0,o.MZ)({type:Boolean,json:{write:!1}})],a.prototype,"useMaxValue",void 0),a=s=(0,r.Cg)([(0,o.$K)("esri.renderers.visualVariables.support.SizeStop")],a)},41078(e,t,i){i.d(t,{A:()=>a});var s=i(5482),r=i(69540),l=i(25482),n=i(91429);let o=class extends((0,r.OU)(l.o)){constructor(e){super(e),this.showLegend=null,this.title=null}};(0,s.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0}})],o.prototype,"showLegend",void 0),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],o.prototype,"title",void 0),o=(0,s.Cg)([(0,n.$K)("esri.renderers.visualVariables.support.VisualVariableLegendOptions")],o);const a=o},29266(e,t,i){i.d(t,{RV:()=>c,UT:()=>d,Yz:()=>v}),i(68197);var s=i(52106),r=i(53966),l=i(31756),n=i(98205);const o=()=>r.A.getLogger("esri.renderers.visualVariables.support.visualVariableUtils"),a=e=>o().warn(`The visualVariable should be an instance of esri.renderers.visualVariables.${e}`),u=()=>o().error("Use of arcade expressions requires an arcade context"),p=(new s.A,Math.PI),c=/^\s*(return\s+)?\$view\.scale\s*(;)?\s*$/i;function d(e,t,i){return function(e,t,i){const s="visualVariables"in e?e.visualVariables?.find(e=>"rotation"===e.type):e;if(!s)return;if("esri.renderers.visualVariables.RotationVariable"!==s.declaredClass)return void a("RotationVariable");const r=s.axis||"heading",l="heading"===r&&"arithmetic"===s.rotationType?90:0,n="heading"===r&&"arithmetic"===s.rotationType?-1:1,o=s.field,{hasExpression:u}=s.cache;if(!o&&!u)return;const p=h(s,t,i);let c=p;return c="number"!=typeof c||isNaN(c)?null:l+n*c,new b(s,c,p)}(e,t,i)?.output}function h(e,t,i){const{hasExpression:s}=e.cache;if("number"==typeof t)return t;const r=t?.attributes,l=e.field;if(!s)return r?.[l];if(null==i?.arcade)return void u();const n={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},o=i.arcade.arcadeUtils,a=o.getViewInfo(n),p=o.createExecContext(t,a,i.timeZone);if(!e.cache.compiledFunc){const t=o.createSyntaxTree(e.valueExpression);e.cache.compiledFunc=o.createFunction(t)}return o.executeFunction(e.cache.compiledFunc,p)}function y(e,t,i){const s="number"==typeof t,r=s?null:t,l=r?.attributes;let o=s?t:null;const{isScaleDriven:a}=e.cache;let p=e.cache.compiledFunc;if(a){const t=null!=i?i.scale:void 0,s=null!=i?i.view:void 0;o=null==t||"3d"===s?function(e){let t=null,i=null;const s=e.stops;return s?(t=s[0].value,i=s[s.length-1].value):(t=e.minDataValue||0,i=e.maxDataValue||0),(t+i)/2}(e):t}else if(!s)switch(e.inputValueType){case"expression":{if(null==i?.arcade)return void u();const t={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},s=i.arcade.arcadeUtils,l=s.getViewInfo(t),n=s.createExecContext(r,l,i.timeZone);if(!p){const t=s.createSyntaxTree(e.valueExpression);p=s.createFunction(t),e.cache.compiledFunc=p}o=s.executeFunction(p,n);break}case"field":l&&(o=l[e.field]);break;case"unknown":o=null}return(0,n.gf)(o)?o:null}function f(e,t,i){return function(e,t,i){const s="visualVariables"in e?e.visualVariables?.find(e=>"size"===e.type):e;if(!s)return;if("esri.renderers.visualVariables.SizeVariable"!==s.declaredClass)return void a("SizeVariable");const r=y(s,t,i);let o=r;if(null!=o&&"number"!=typeof t&&t&&s.normalizationField){const e=t.attributes,i=parseFloat(e?.[s.normalizationField]);if(!(0,n.gf)(i)||0===i)return;o/=i}const u=function(e,t,i,s,r){switch(t.transformationType){case"additive":return function(e,t,i,s){const r=m(t.minSize,i,s)||t.minDataValue;return null==e&&null==r?null:(e??0)+(r??0)}(e,t,i,s);case"constant":return function(e,t,i){const s=e.stops;let r=s?.length&&s[0].size;return null==r&&(r=e.minSize),m(r,t,i)}(t,i,s);case"clamped-linear":return function(e,t,i,s){const r=m(t.minSize,i,s);if(null==e)return r;const{minDataValue:l,maxDataValue:n}=t;if(null==l||null==n)return null;const o=(e-l)/(n-l),a=m(t.maxSize,i,s),u=null!=s?s.shape:void 0;if(e<=l)return r;if(e>=n)return a;if(null==r||null==a)return null;if("area"===t.scaleBy&&u){const e="circle"===u,t=e?p*(r/2)**2:r*r,i=t+o*((e?p*(a/2)**2:a*a)-t);return e?2*Math.sqrt(i/p):Math.sqrt(i)}return r+o*(a-r)}(e,t,i,s);case"proportional":return function(e,t,i,s){const r=m(t.minSize,i,s);if(null==e||null==r)return r;const l=null!=s?s.shape:void 0,{minDataValue:n}=t;if(null==n)return null;const o=e/n,a=m(t.maxSize,i,s);let u=null;return u="circle"===l?2*Math.sqrt(o*(r/2)**2):"square"===l||"diamond"===l||"image"===l?Math.sqrt(o*r**2):o*r,g(u,r,a)}(e,t,i,s);case"stops":return function(e,t,i,s,r){if(null==e)return null;const[l,n,o]=function(e,t){if(!t)return;let i=0,s=t.length-1;return t.some((t,r)=>e<t?(s=r,!0):(i=r,!1)),[i,s,(e-t[i])/(t[s]-t[i])]}(e,r);if(l===n)return m(t.stops?.[l].size,i,s);{const e=m(t.stops?.[l].size,i,s),r=m(t.stops?.[n].size,i,s);return null==e||null==r?null:e+(r-e)*o}}(e,t,i,s,r);case"real-world-size":return function(e,t,i,s){const r=(s?.resolution??1)*l.j[t.valueUnit],n=m(t.minSize,i,s),o=m(t.maxSize,i,s),{valueRepresentation:a}=t;if(null==e)return n;let u=null;return u="area"===a?2*Math.sqrt(e/p)/r:"radius"===a||"distance"===a?2*e/r:e/r,g(u,n,o)}(e,t,i,s);case"identity":return e;case"unknown":return null}}(o,s,t,i,s.cache.ipData);return new b(s,null==u||isNaN(u)?void 0:u,r)}(e,t,i)?.output}function m(e,t,i){return null==e?null:(0,n.of)(e)?f(e,t,i):(0,n.gf)(e)?e:null}function g(e,t,i){return(0,n.gf)(i)&&e>i?i:(0,n.gf)(t)&&e<t?t:e}class b{get type(){return this.variable.type}constructor(e,t,i){this.variable=e,this.output=t,this.input=i}}function v(e,t,i){const s=["proportional","proportional","proportional"];for(const r of e){const e=r.useSymbolValue?"symbol-value":f(r,t,i)??"proportional";switch(r.axis){case"width":s[0]=e;break;case"depth":s[1]=e;break;case"height":s[2]=e;break;case"width-and-depth":s[0]=e,s[1]=e;break;case"all":case void 0:case null:s[0]=e,s[1]=e,s[2]=e;break;default:r.axis}}return s}},2485(e,t,i){i.d(t,{A:()=>c});var s,r=i(5482),l=i(68197),n=i(4718),o=i(91429),a=i(56507),u=i(72606),p=i(93223);let c=s=class extends u.A{constructor(e){super(e),this.algorithm=null,this.fromColor=null,this.toColor=null,this.type="algorithmic"}clone(){return new s({fromColor:(0,n.o8)(this.fromColor),toColor:(0,n.o8)(this.toColor),algorithm:this.algorithm})}};(0,r.Cg)([(0,p.e)({esriCIELabAlgorithm:"cie-lab",esriHSVAlgorithm:"hsv",esriLabLChAlgorithm:"lab-lch"})],c.prototype,"algorithm",void 0),(0,r.Cg)([(0,o.MZ)({type:l.A,json:{type:[a.jz],write:{isRequired:!0}}})],c.prototype,"fromColor",void 0),(0,r.Cg)([(0,o.MZ)({type:l.A,json:{type:[a.jz],write:{isRequired:!0}}})],c.prototype,"toColor",void 0),(0,r.Cg)([(0,o.MZ)({type:["algorithmic"],json:{write:{isRequired:!0}}})],c.prototype,"type",void 0),c=s=(0,r.Cg)([(0,o.$K)("esri.rest.support.AlgorithmicColorRamp")],c)},72606(e,t,i){i.d(t,{A:()=>n});var s=i(5482),r=i(25482),l=i(91429);let n=class extends r.o{constructor(e){super(e),this.type=null}};(0,s.Cg)([(0,l.MZ)({readOnly:!0,json:{read:!1,write:!0}})],n.prototype,"type",void 0),n=(0,s.Cg)([(0,l.$K)("esri.rest.support.ColorRamp")],n)},1626(e,t,i){i.d(t,{A:()=>c});var s,r=i(5482),l=i(4718),n=i(91429),o=i(2485),a=i(72606),u=i(43937),p=i(36005);let c=s=class extends a.A{constructor(e){super(e),this.colorRamps=null,this.type="multipart",this.weights=void 0}writeColorRamps(e,t,i,s){const r=e?.map(e=>e.toJSON(s)),{weights:l}=this;if(r&&l?.length&&r.length===l?.length){const e=100/l.reduce((e,t)=>e+t);let t=0;r.forEach((i,s)=>{i.start=t,t+=l[s]*e,i.stop=t})}t.colorRamps=r}readWeights(e,t){const i=t.colorRamps?.map(({start:e,stop:t})=>null==e||null==t?-1:t-e);if(!i?.some(e=>e<0))return i}clone(){return new s({colorRamps:(0,l.o8)(this.colorRamps)})}};(0,r.Cg)([(0,n.MZ)({type:[o.A],json:{write:{isRequired:!0}}})],c.prototype,"colorRamps",void 0),(0,r.Cg)([(0,u.K)("colorRamps")],c.prototype,"writeColorRamps",null),(0,r.Cg)([(0,n.MZ)({type:["multipart"],json:{write:{isRequired:!0}}})],c.prototype,"type",void 0),(0,r.Cg)([(0,n.MZ)({type:[Number]})],c.prototype,"weights",void 0),(0,r.Cg)([(0,p.w)("weights",["colorRamps"])],c.prototype,"readWeights",null),c=s=(0,r.Cg)([(0,n.$K)("esri.rest.support.MultipartColorRamp")],c)},95349(e,t,i){i.d(t,{g:()=>n,r:()=>o});var s=i(2485),r=i(72606),l=i(1626);const n={key:"type",base:r.A,typeMap:{algorithmic:s.A,multipart:l.A}};function o(e){return e?.type?"algorithmic"===e.type?s.A.fromJSON(e):"multipart"===e.type?l.A.fromJSON(e):null:null}},73838(e,t,i){i.d(t,{rS:()=>E,M9:()=>q,oO:()=>Z});var s=i(93637),r=i(77548),l=i(37757),n=i(49186),o=i(13313),a=i(97887),u=i(68548),p=i(58592),c=i(75981),d=i(65365),h=i(94985),y=i(31593),f=i(53930),m=i(68249),g=i(68197),b=i(7762),v=i(90629),w=i(27845),S=i(11506),V=i(39065),C=i(59868),M=i(93470);c.A.fromSimpleMarkerSymbol(C.UK),a.A.fromSimpleLineSymbol(C.A7),d.A.fromSimpleFillSymbol(C.Cx),new u.A({symbolLayers:new b.A([new w.A({material:{color:M.fT},edges:new V.A({size:(0,v.PN)(1),color:new g.A(M.JR)})})])});const x=new a.A({symbolLayers:new b.A([new S.A({material:{color:new g.A([0,0,0])},size:(0,v.PN)(1)})])}),_=new d.A({symbolLayers:new b.A([new w.A({outline:{color:new g.A([0,0,0]),size:(0,v.PN)(1)}})])});var z=i(33910);const I="#useCIMFallbackSymbology()",A={retainId:!1,ignoreDrivers:!1,hasLabelingContext:!0};var j=i(59923);function q(e,t,i,r){const l=k(e,{},{context:r,isLabelSymbol:!1});null!=l&&(0,s.sM)(i,l,t)}function Z(e,t,i,s){const r=k(e,{},{context:s,isLabelSymbol:!0});null!=r&&(t[i]=r)}function F(e){return(0,z.wk)(e)||e instanceof l.A}function k(e,t,i){if(null==e)return null;const{context:s,isLabelSymbol:g}=i,b=s?.origin;if("web-scene"===b&&!F(e)){const i=function(e,t=A){if(!e)return{symbol:null};const{retainId:i=A.retainId,ignoreDrivers:s=A.ignoreDrivers,hasLabelingContext:r=A.hasLabelingContext,retainCIM:g=A.retainCIM,cimFallbackEnabled:b=A.cimFallbackEnabled}=t;let v=null;if((0,z.wk)(e))v=e.clone();else if("web-style"===e.type)v=e.clone();else if("cim"===e.type){const i=e.data?.symbol?.type;switch(i){case"CIMPointSymbol":v=g?e.clone():c.A.fromCIMSymbol(e);break;case"CIMLineSymbol":b&&(v=x.clone(),t?.logWarning?.(I,"Unsupported CIM line symbology converted to fallback 3D line symbology"));break;case"CIMPolygonSymbol":b&&(v=_.clone(),t?.logWarning?.(I,"Unsupported CIM polygon symbology converted to fallback 3D polygon symbology"))}if(!v)return{error:new n.A("symbol-conversion:unsupported-cim-symbol",`CIM symbol of type '${i||"unknown"}' is unsupported in 3D`,{symbol:e})}}else if(e instanceof y.A)v=a.A.fromSimpleLineSymbol(e);else if(e instanceof f.A)v=c.A.fromSimpleMarkerSymbol(e);else if(e instanceof p.A)v=c.A.fromPictureMarkerSymbol(e);else if(e instanceof h.A)v=t.geometryType&&"mesh"===t.geometryType?u.A.fromSimpleFillSymbol(e):d.A.fromSimpleFillSymbol(e);else{if(!(e instanceof m.A))return{error:new n.A("symbol-conversion:unsupported-2d-symbol",`2D symbol of type '${e.type||e.declaredClass}' is unsupported in 3D`,{symbol:e})};v=r?o.A.fromTextSymbol(e):c.A.fromTextSymbol(e)}return i&&v&&"cim"!==v.type&&(v.id=e.id),!s||"cim"===v.type||v instanceof l.A||v.symbolLayers.forEach(e=>e.ignoreDrivers=!0),{symbol:v}}(e,{retainCIM:!0,hasLabelingContext:g});return null!=i.symbol?i.symbol.write(t,s):((0,j.bA)(s,e,"Use 3D symbology instead when working with WebScene and SceneView",{error:i.error}),null)}return(0,r.TU)(s?.layer)&&function(e){return"polygon-3d"===e?.type||"line-3d"===e?.type}(e)?((0,j.bA)(s,e,`unsupported in layers of type ${s?.layer?.declaredClass}`),null):("web-map"===b||"portal-item"===b&&!(0,r.TU)(s?.layer))&&F(e)?((0,j.bA)(s,e,"Use 2D symbology and CIMSymbol instead when working with MapView"),null):e.write(t,s)}function E(e,t){return(0,z.Bu)(e,null,t)}},85594(e,t,i){i.d(t,{jg:()=>b,cF:()=>c,bo:()=>d,yA:()=>f,o5:()=>h});var s=i(11254),r=i(49186),l=i(44208),n=i(17676),o=i(84952),a=i(20655),u=i(16405);const p=new Map;function c(e,t,i){return null!=e?.styleUrl?async function(e,t){try{return{data:(await f(e,t)).data,baseUrl:(0,o.nM)(e),styleUrl:e}}catch(e){return(0,n.QP)(e),null}}(e.styleUrl,i):null!=e?.styleName?function(e,t,i){const s=null!=t.portal?t.portal:a.A.getDefault();let l;const n=`${s.url} - ${s.user?.username} - ${e}`,o=p.get(n);if(o)return o;const c=function(e,t,i){return t.load(i).then(()=>{const s=new u.A({disableExtraQuery:!0,query:`owner:${m} AND type:${g} AND typekeywords:"${e}"`});return t.queryItems(s,i)}).then(({results:t})=>{let s=null;const l=e.toLowerCase();if(t&&Array.isArray(t))for(const e of t){const t=e.typeKeywords?.some(e=>e.toLowerCase()===l);if(t&&e.type===g&&e.owner===m){s=e;break}}if(!s)throw new r.A("symbolstyleutils:style-not-found",`The style '${e}' could not be found`,{styleName:e});return s.load(i)})}(e,s,i).then(e=>(l=e,e.fetchData())).then(t=>({data:t,baseUrl:l.itemUrl??"",styleName:e}));return p.set(n,c),c}(e.styleName,t,i):Promise.reject(new r.A("symbolstyleutils:style-url-and-name-missing","Either styleUrl or styleName is required to resolve a style"))}function d(e){return null===e||"CIMSymbolReference"===e.type?e:{type:"CIMSymbolReference",symbol:e}}function h(e,t){for(const i of t)switch(i){case"cim":if(e.cimRef)return{format:i,url:encodeURI(e.cimRef)};break;case"web-gltf-basisu":{const t=y(e,"gltf_basisu");if(t)return{format:i,url:t};break}case"web-gltf":{const t=y(e,"gltf");if(t)return{format:i,url:t};break}case"web":{const t=y(e,"gltf");if(t)return{format:"web-gltf",url:t};if(e.webRef)return{format:i,url:encodeURI(e.webRef)};break}}}function y(e,t){if(!(0,l.A)("enable-feature:force-wosr"))return e.formatInfos?.find(e=>e.type===t)?.href}function f(e,t){const i={responseType:"json",query:{f:"json"},...t};return(0,s.A)((0,o.S8)(e),i)}const m="esri_en",g="Style",b="https://cdn.arcgis.com/sharing/rest/content/items/220936cc6ed342c9937abd8f180e7d1e/resources/styles/cim/{SymbolName}.json?f=json"}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[923,1948,2722,3304,5611,6061,7992],{61691(t,e,r){r.d(e,{G:()=>n});class n{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},85181(t,e,r){r.d(e,{O:()=>s});var n=r(15756);class s extends n.n{getOperatorType(){return 9}execute(t,e,r,s){return(0,n.r)(t,e,r,32,s)}}},76061(t,e,r){r.d(e,{S:()=>s});var n=r(61691);class s extends n.G{constructor(t){super(),this.m_iGeom=-1,this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},9093(t,e,r){function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function s(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}r.d(e,{o8:()=>s,vt:()=>n,zK:()=>i});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:s,create:n,fromValues:function(t,e,r,n,s,i,o,a,u,h,c,f,l,m,g,x){return[t,e,r,n,s,i,o,a,u,h,c,f,l,m,g,x]}},Symbol.toStringTag,{value:"Module"}))},51850(t,e,r){function n(){return[0,0,0]}function s(t){return[t[0],t[1],t[2]]}function i(t,e,r){return[t,e,r]}function o(t,e,r){return[t,e,r]}function a(t,e=[0,0,0]){const r=Math.min(3,t.length);for(let n=0;n<r;++n)e[n]=t[n];return e}function u(){return[0,0,0]}function h(){return i(1,1,1)}function c(){return i(1,0,0)}function f(){return i(0,1,0)}function l(){return i(0,0,1)}r.d(e,{CN:()=>o,Cb:()=>p,Cw:()=>x,JP:()=>d,S:()=>h,Ul:()=>u,Un:()=>g,ci:()=>a,fA:()=>i,o8:()=>s,uY:()=>m,vt:()=>n});const m=[0,0,0],g=h(),x=c(),d=f(),p=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:g,UNIT_X:x,UNIT_Y:d,UNIT_Z:p,ZEROS:m,clone:s,create:n,freeze:o,fromArray:a,fromValues:i,ones:h,unitX:c,unitY:f,unitZ:l,zeros:u},Symbol.toStringTag,{value:"Module"}))},35522(t,e,r){r.d(e,{$A:()=>I,Bw:()=>i,C:()=>o,Cc:()=>O,DI:()=>E,Il:()=>B,Io:()=>M,Ln:()=>p,Om:()=>_,Qr:()=>f,Re:()=>h,S8:()=>b,T9:()=>x,WQ:()=>u,Z0:()=>A,_S:()=>m,aI:()=>R,ei:()=>S,fw:()=>w,g7:()=>Z,gL:()=>P,hG:()=>v,hZ:()=>a,hs:()=>d,jb:()=>T,jk:()=>g,lo:()=>L,lw:()=>c,m3:()=>y,oW:()=>V,t2:()=>N,tn:()=>l,uE:()=>G,xg:()=>k,ze:()=>C});var n=r(51850),s=r(34304);function i(t){const e=t[0],r=t[1],n=t[2];return Math.sqrt(e*e+r*r+n*n)}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function a(t,e,r,n){return t[0]=e,t[1]=r,t[2]=n,t}function u(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t}function h(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t}function c(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t}function f(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t}function l(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function m(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function g(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t}function x(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t}function d(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t}function p(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t}function M(t,e){const r=e[0]-t[0],n=e[1]-t[1],s=e[2]-t[2];return Math.sqrt(r*r+n*n+s*s)}function v(t,e){const r=e[0]-t[0],n=e[1]-t[1],s=e[2]-t[2];return r*r+n*n+s*s}function y(t){const e=t[0],r=t[1],n=t[2];return e*e+r*r+n*n}function C(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function E(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function b(t,e){const r=e[0],n=e[1],s=e[2];let i=r*r+n*n+s*s;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i),t}function _(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function I(t,e,r){const n=e[0],s=e[1],i=e[2],o=r[0],a=r[1],u=r[2];return t[0]=s*u-i*a,t[1]=i*o-n*u,t[2]=n*a-s*o,t}function O(t,e,r,n){const s=e[0],i=e[1],o=e[2];return t[0]=s+n*(r[0]-s),t[1]=i+n*(r[1]-i),t[2]=o+n*(r[2]-o),t}function A(t,e,r){const n=e[0],s=e[1],i=e[2];return t[0]=r[0]*n+r[4]*s+r[8]*i+r[12],t[1]=r[1]*n+r[5]*s+r[9]*i+r[13],t[2]=r[2]*n+r[6]*s+r[10]*i+r[14],t}function S(t,e,r){const n=e[0],s=e[1],i=e[2];return t[0]=n*r[0]+s*r[3]+i*r[6],t[1]=n*r[1]+s*r[4]+i*r[7],t[2]=n*r[2]+s*r[5]+i*r[8],t}function P(t,e,r){return w(t,e,r[0],r[1],r[2],r[3])}function w(t,e,r,n,s,i){const o=e[0],a=e[1],u=e[2],h=n*u-s*a,c=s*o-r*u,f=r*a-n*o,l=n*f-s*c,m=s*h-r*f,g=r*c-n*h,x=2*i;return t[0]=o+h*x+2*l,t[1]=a+c*x+2*m,t[2]=u+f*x+2*g,t}function Z(t,e){b(F,t),b(Y,e);const r=_(F,Y);return r>1?0:r<-1?Math.PI:Math.acos(r)}const F=(0,n.vt)(),Y=(0,n.vt)();function N(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function R(t,e){if(t===e)return!0;const r=t[0],n=t[1],i=t[2],o=e[0],a=e[1],u=e[2],h=(0,s.FD)();return Math.abs(r-o)<=h*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(n-a)<=h*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(i-u)<=h*Math.max(1,Math.abs(i),Math.abs(u))}function V(t,e,r){const n=r[0]-e[0],s=r[1]-e[1],i=r[2]-e[2];let o=n*n+s*s+i*i;return o>0?(o=1/Math.sqrt(o),t[0]=n*o,t[1]=s*o,t[2]=i*o,t):(t[0]=0,t[1]=0,t[2]=0,t)}const T=h,z=c,X=f,k=M,L=v,B=i,G=y;Object.freeze(Object.defineProperty({__proto__:null,abs:l,add:u,angle:Z,bezier:function(t,e,r,n,s,i){const o=1-i,a=o*o,u=i*i,h=a*o,c=3*i*a,f=3*u*o,l=u*i;return t[0]=e[0]*h+r[0]*c+n[0]*f+s[0]*l,t[1]=e[1]*h+r[1]*c+n[1]*f+s[1]*l,t[2]=e[2]*h+r[2]*c+n[2]*f+s[2]*l,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,r=1){return t[0]=Math.min(Math.max(t[0],e),r),t[1]=Math.min(Math.max(t[1],e),r),t[2]=Math.min(Math.max(t[2],e),r),t},copy:o,cross:I,crossAndNormalize:function(t,e,r){const n=e[0],s=e[1],i=e[2],o=r[0],a=r[1],u=r[2],h=s*u-i*a,c=i*o-n*u,f=n*a-s*o,l=Math.sqrt(h*h+c*c+f*f);return t[0]=h/l,t[1]=c/l,t[2]=f/l,t},direction:V,dist:k,distance:M,div:X,divide:f,dot:_,equals:R,exactEquals:N,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,r,n,s,i){const o=i*i,a=o*(2*i-3)+1,u=o*(i-2)+i,h=o*(i-1),c=o*(3-2*i);return t[0]=e[0]*a+r[0]*u+n[0]*h+s[0]*c,t[1]=e[1]*a+r[1]*u+n[1]*h+s[1]*c,t[2]=e[2]*a+r[2]*u+n[2]*h+s[2]*c,t},inverse:E,len:B,length:i,lerp:O,max:x,min:g,mul:z,multiply:c,negate:C,normalize:b,random:function(t,e=1){const r=s.Ov,n=2*r()*Math.PI,i=2*r()-1,o=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(n)*o,t[1]=Math.sin(n)*o,t[2]=i*e,t},rotateX:function(t,e,r,n){const s=[],i=[];return s[0]=e[0]-r[0],s[1]=e[1]-r[1],s[2]=e[2]-r[2],i[0]=s[0],i[1]=s[1]*Math.cos(n)-s[2]*Math.sin(n),i[2]=s[1]*Math.sin(n)+s[2]*Math.cos(n),t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},rotateY:function(t,e,r,n){const s=[],i=[];return s[0]=e[0]-r[0],s[1]=e[1]-r[1],s[2]=e[2]-r[2],i[0]=s[2]*Math.sin(n)+s[0]*Math.cos(n),i[1]=s[1],i[2]=s[2]*Math.cos(n)-s[0]*Math.sin(n),t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},rotateZ:function(t,e,r,n){const s=[],i=[];return s[0]=e[0]-r[0],s[1]=e[1]-r[1],s[2]=e[2]-r[2],i[0]=s[0]*Math.cos(n)-s[1]*Math.sin(n),i[1]=s[0]*Math.sin(n)+s[1]*Math.cos(n),i[2]=s[2],t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:d,scaleAndAdd:p,set:a,sign:m,sqrDist:L,sqrLen:G,squaredDistance:v,squaredLength:y,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:T,subtract:h,transformMat3:S,transformMat4:A,transformQuat:P,transformQuatValues:w},Symbol.toStringTag,{value:"Module"}))},69397(t,e,r){r.d(e,{Qf:()=>u,Qh:()=>o,RS:()=>s,Ul:()=>m,i5:()=>l,lM:()=>i,qK:()=>c});var n=r(34275);const s=16;function i(t){if(!t)return 0;let e=c;for(const r in t)t.hasOwnProperty(r)&&(e+=a(t[r],!1));return e}function o(t){if(!t)return 0;if("number"==typeof t[0])return u(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return h(t,8);let r=f;for(let n=0;n<e;n++)r+=a(t[n]);return r}(t);let e=c;for(const r in t)t.hasOwnProperty(r)&&(e+=a(t[r]));return e}function a(t,e=!0){switch(typeof t){case"object":return e?o(t):c;case"string":return function(t){return 32+t.length}(t);case"number":return s;case"boolean":return 4;default:return 8}}function u(...t){return t.reduce((t,e)=>t+(e?(0,n.iu)(e)?e.byteLength+l:Array.isArray(e)?h(e,s):0:0),0)}function h(t,e){return f+t.length*e}const c=32,f=16,l=145,m=64},87992(t,e,r){r.d(e,{JR:()=>I,ME:()=>E,MY:()=>O,NO:()=>C,Nh:()=>_,V2:()=>Z,_s:()=>F,e6:()=>N,gh:()=>b,tr:()=>V,uX:()=>d});var n=r(5482),s=r(69397),i=r(16930),o=(r(70328),r(19419)),a=r(60408),u=r(21325),h=r(513),c=r(50954),f=r(79567),l=r(52006),m=r(49663),g=r(46068),x=r(92722);class d{constructor({type:t,spatialReference:e,vertexCount:r,vertexXY:n,vertexZ:s,vertexM:i,partCount:o,partOffsets:a,partFlags:u,segmentFlags:h,segmentIndices:c,segmentParams:f,segmentCountArc:l,segmentCountBezier:m}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=r,this.vertexXY=n,this.vertexZ=s,this.vertexM=i,this.partCount=o,this.partOffsets=a,this.partFlags=u,this.segmentFlags=h,this.segmentIndices=c,this.segmentParams=f,this.segmentCountArc=l,this.segmentCountBezier=m}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:r}=this;return t&&t-e-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return null!=this.segmentFlags}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function t(t){return t?s.Ul+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){const{type:t,vertexCount:e,partCount:r,hasZ:n,hasM:s,segmentCountArc:i,segmentCountBezier:o}=this,a=Z(t,e,r,n,s,this.hasCurves(),i,o);a.spatialReference=this.spatialReference;const{vertexXY:u,vertexZ:h,vertexM:c}=this;if(a.vertexXY.set(u.subarray(0,2*e),0),a.vertexZ?.set(h.subarray(0,e),0),a.vertexM?.set(c.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;a.partFlags.set(e.subarray(0,r+1)),a.partOffsets.set(t.subarray(0,r+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:r,segmentParams:n,segmentParamCount:s}=this;a.segmentFlags.set(t.subarray(0,e),0),a.segmentIndices.set(r.subarray(0,e),0),a.segmentParams.set(n.subarray(0,s),0)}return a}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,u.aI)(this.spatialReference,t.spatialReference))return!1;if(this.vertexCount!==t.vertexCount||this.partCount!==t.partCount)return!1;if(this.hasZ!==t.hasZ||this.hasM!==t.hasM)return!1;if(this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;const r=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,r)=>Math.abs(t-r)>e||isNaN(t)!==isNaN(r);for(let e=0;e<this.vertexCount;++e)if(r(this.vertexXY[2*e],t.vertexXY[2*e])||r(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexM[e],t.vertexM[e]))return!1;for(let e=0;e<this.partCount;++e)if(this.partFlags[e]!==t.partFlags[e]||this.partOffsets[e]!==t.partOffsets[e])return!1;if(this.hasCurves()){for(let e=0;e<this.vertexCount;++e)if(this.segmentFlags[e]!==t.segmentFlags[e]||this.segmentIndices[e]!==t.segmentIndices[e])return!1;for(let e=0;e<this.segmentParamCount;++e)if(r(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new p(this):[][Symbol.iterator]()}}class p{constructor(t){this.geometry=t,this.value=new M(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class M{constructor(t){this.geometry=t,this.index=-1,this._readVertex=P(t),this._segments=new v(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class v{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new y(t.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const t=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=t&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:t}=this._part,e=this._part.geometry.partOffsets;this._partStart=e[t],this._partEnd=e[t+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class y{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=P(t)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const t=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===t)return this.end;const e=this.geometry.segmentParams;let r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[r++],n=e[r++],s=e[r++],i=e[r++];return{b:[this.end,[t,n],[s,i]]}}const n=e[r++],s=e[r++],i=e[r++],o=e[r++],a=e[r++],u=e[r++];r++,r++;const h=e[r++],c=e[r++];if(!Boolean(4&n)&&1===i)return{c:[this.end,[h,c]]};const f=2&n?0:1,l=1&n?0:1;return{a:[this.end,[a,u],f,l,o,s,i]}}}function C(t,e){const r={stack:[],error:void 0,hasError:!1};try{return e??=(0,o.Ie)(),(0,n.mS)(r,new A(t,["vertexZ","vertexM","spatialReference"]),!1),(0,o.bx)(e,function(t){let e;const{vertexCount:r,vertexXY:s,vertexZ:i,vertexM:a}=t,u=S(t);if(t.hasCurves()){const r={stack:[],error:void 0,hasError:!1};try{(0,n.mS)(r,new A(t,["vertexZ","vertexM"]),!1);const s=(0,o.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:r}of e.segments)(0,f.e)(s,t,r),t=(0,l.yP)(r)}const[i,a,h,c]=s;e={xmin:i,ymin:a,xmax:h,ymax:c,spatialReference:u}}catch(t){r.error=t,r.hasError=!0}finally{(0,n.hk)(r)}}else{let t,n,i,o;t=n=1/0,i=o=-1/0;for(let e=0;e<r;++e){const r=s[2*e],a=s[2*e+1];t=Math.min(t,r),i=Math.max(i,r),n=Math.min(n,a),o=Math.max(o,a)}e={xmin:t,ymin:n,xmax:i,ymax:o,spatialReference:u}}if(i){let t=1/0,r=-1/0;for(const e of i)t=Math.min(t,e),r=Math.max(r,e);e.zmin=t,e.zmax=r}if(a){let t=1/0,r=-1/0;for(const e of a)t=Math.min(t,e),r=Math.max(r,e);e.mmin=t,e.mmax=r}return e}(t)),e}catch(t){r.error=t,r.hasError=!0}finally{(0,n.hk)(r)}}function E(t){let e,r,n;if((0,a.fT)(t)){n="point";const{x:s,y:i,z:o,m:a}=t,u=[s,i];null!=o&&u.push(o),null!=a&&u.push(a),r=[[u]],e=1}else(0,a.U9)(t)?(n="multipoint",r=[t.points],e=t.points.length):(0,a.Rg)(t)?(n="polyline",r=t.curvePaths??t.paths,e=r.reduce((t,e)=>t+e.length,0)):(n="polygon",r=t.curveRings??t.rings,e=r.reduce((t,e)=>(0===e.length||(t+=e.length,w(e[0],(0,l.yP)(e.at(-1)))&&--t),t),0));const s=Z(n,e,n.includes("point")?0:r.length,(0,a.Pv)(t),(0,a.W0)(t),(0,l.Ed)(t)),{hasZ:i,hasM:o,vertexXY:u,vertexZ:h,vertexM:c}=s;function f(t){u[2*g]=t[0],u[2*g+1]=t[1],i&&(h[g]=t[2]),o&&(c[g]=t[m]),++g}s.spatialReference=t.spatialReference??void 0;const m=s.hasZ?3:2;let g=0;if(!s.isMultipart()){if(!i&&!o){for(const[t,e]of r[0])u[2*g]=t,u[2*g+1]=e,++g;return s}for(const t of r[0])f(t);return s}const x="polygon"===n,{partOffsets:d}=s;let p=0;if(!s.hasCurves()){for(const t of r){if(d[p++]=g,0===t.length)continue;let e=t.length;if(x&&w(t[0],t.at(-1))&&--e,i||o)for(let r=0;r<e;++r)f(t[r]);else for(let r=0;r<e;++r){const[e,n]=t[r];u[2*g]=e,u[2*g+1]=n,++g}}return d[p]=g,s}function M(t){const e=v+t;if(e<=(s.segmentParams?.length??0))return;let r=e*T;r=20*Math.ceil(r/20);const n=s.segmentParams;s.segmentParams=new Float64Array(r),null!=n&&s.segmentParams.set(n)}let v=0;for(const t of r){if(s.partOffsets[p++]=g,0===t.length)continue;const e=t[0];let r=e;for(let e=1;e<t.length;++e){const n=t[e];f(r);const i=g-1;(0,l.wY)(n)?(M(10),++s.segmentCountArc,v=F(r,n,s,i,v),r=n.a[0]):(0,l.DA)(n)?(M(10),++s.segmentCountArc,v=Y(r,n,s,i,v),r=n.a[0]):(0,l.aO)(n)?(M(10),++s.segmentCountArc,v=N(r,n,s,i,v),r=n.c[0]):(0,l.n1)(n)?(M(4),++s.segmentCountBezier,v=V(0,n,s,i,v),r=n.b[0]):r=n}x&&w(e,r)||f(r)}return s.partOffsets[p]=g,s}function b(t){const e=P(t),{vertexCount:r,partCount:n,hasZ:s,hasM:i}=t,o=S(t);if("point"===t.type){const[e,r]=t.vertexXY,n=t.vertexZ?.[0],s=t.vertexM?.[0];return{x:e,y:r,z:n,m:s,spatialReference:o}}let a=0;if("multipoint"===t.type){const t=[];for(;a<r;)t.push(e(a++));return{points:t,spatialReference:o,hasZ:s,hasM:i}}const u="polygon"===t.type;if(!t.hasCurves()){const r=new Array;for(let s=0;s<n;++s){const n=t.partOffsets[s+1],i=new Array;for(;a<n;)i.push(e(a++));u&&i.length>0&&i.push(i[0]),r.push(i)}return u?{rings:r,hasZ:s,hasM:i,spatialReference:o}:{paths:r,hasZ:s,hasM:i,spatialReference:o}}const h=new Array;for(const{segments:e,startVertex:r}of t.parts){const t=[r];for(const{curve:r}of e)t.push(r);h.push(t)}return u?{rings:[],curveRings:h,hasZ:s,hasM:i,spatialReference:o}:{paths:[],curvePaths:h,hasZ:s,hasM:i,spatialReference:o}}function _(t,{lengths:e,coords:r,hasZ:n,hasM:s},i){const o=t.includes("point")?0:e.length,a="polygon"===t,u="point"===t?1:e.reduce((t,e)=>t+e,0)-(a?o:0);n??=!1,s??=!1;const h=Z(t,u,o,n,s,!1,0,0);if(h.spatialReference=i??void 0,!h.isMultipart()){for(let t=0,e=0;t<u;++t)h.vertexXY[2*t]=r[e++],h.vertexXY[2*t+1]=r[e++],n&&(h.vertexZ[t]=r[e++]),s&&(h.vertexM[t]=r[e++]);return h}const c=2+Number(n)+Number(s);let f=0,l=0;h.partOffsets[0]=0;for(const t of e){const e=h.partOffsets[l],i=e+t-Number(a);h.partOffsets[++l]=i;for(let t=e;t<i;++t)h.vertexXY[2*t]=r[f++],h.vertexXY[2*t+1]=r[f++],n&&(h.vertexZ[t]=r[f++]),s&&(h.vertexM[t]=r[f++]);a&&(f+=c)}return h}function I({type:t,vertexCount:e,vertexXY:r,vertexZ:n,vertexM:s,partCount:i,partOffsets:o,hasZ:a,hasM:u}){const h=new x.A([],[],a,u);i=Math.max(i,1);const c="polygon"===t;let f=0;for(let t=0;t<i;++t){const i=o?.[t+1]??e,l=h.coords.length;for(let t=f;t<i;++t)h.coords.push(r[2*t],r[2*t+1]),a&&h.coords.push(n[t]),u&&h.coords.push(s[t]);if(c){const t=f;h.coords.push(r[2*t],r[2*t+1]),a&&h.coords.push(n[t]),u&&h.coords.push(s[t])}h.lengths.push((h.coords.length-l)/h.stride),f=i}return"point"===t&&(h.lengths.length=0),h}function O(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,r=t.isCustomWkid()?0:t.getOldID();if(r<=0)return{wkt:e};let n=t.getLatestID();(n<=0||n===r)&&(n=void 0);const s=t.getVCS();if(null==s)return{wkid:r,latestWkid:n,wkt:e};const i=s.isCustomWkid()?0:s.getOldID();if(i<=0)return{wkt:e};let o=t.getLatestVerticalID();return(o<=0||o===i)&&(o=void 0),{wkid:r,wkt:e,latestWkid:n,vcsWkid:i,latestVcsWkid:o}}(t.getSpatialReference()),t=t.getGeometry()),new d({...t.toFlatGeometry(),spatialReference:e})}class A{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const r of e)t[r]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function S({spatialReference:t}){return t instanceof i.A?t.toJSON():t}function P({vertexXY:t,vertexZ:e,vertexM:r}){return e?r?n=>[t[2*n],t[2*n+1],e[n],r[n]]:r=>[t[2*r],t[2*r+1],e[r]]:r?e=>[t[2*e],t[2*e+1],r[e]]:e=>[t[2*e],t[2*e+1]]}function w(t,e){return t.every((t,r)=>t===e[r])}function Z(t,e,r,n,s,i,o,a){o??=0,a??=0;const u=new d({type:t,vertexCount:e,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:o,segmentCountBezier:a});let h=2*Float64Array.BYTES_PER_ELEMENT*e;n&&(h+=Float64Array.BYTES_PER_ELEMENT*e),s&&(h+=Float64Array.BYTES_PER_ELEMENT*e),u.isMultipart()&&(h+=(r+1)*Int32Array.BYTES_PER_ELEMENT,h+=(r+1)*Int8Array.BYTES_PER_ELEMENT),i&&(h+=e*Int8Array.BYTES_PER_ELEMENT,h+=e*Int32Array.BYTES_PER_ELEMENT,h+=u.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const c=new ArrayBuffer(h);let f=0;return u.vertexXY=new Float64Array(c,f,2*e),f+=u.vertexXY.byteLength,n&&(u.vertexZ=new Float64Array(c,f,e),f+=u.vertexZ.byteLength),s&&(u.vertexM=new Float64Array(c,f,e),f+=u.vertexM.byteLength),i&&(u.segmentParams=new Float64Array(c,f,u.segmentParamCount),f+=u.segmentParams.byteLength,u.segmentIndices=new Int32Array(c,f,e),u.segmentIndices.fill(z),f+=u.segmentIndices.byteLength),u.isMultipart()&&(u.partOffsets=new Int32Array(c,f,r+1),f+=u.partOffsets.byteLength,u.partFlags=new Int8Array(c,f,r+1),f+=u.partFlags.byteLength,"polygon"===u.type&&u.partFlags.subarray(0,r).fill(1)),i&&(u.segmentFlags=new Int8Array(c,f,e),u.segmentFlags.fill(1),f+=u.segmentFlags.byteLength),u}function F(t,e,{segmentFlags:r,segmentIndices:n,segmentParams:s},i,o){r[i]=4,n[i]=o;const[a,[u,h],c,f,l,m,x]=e.a;let d=4;f||(d|=1),c||(d|=2);const p=(0,g.SW)(t,e),[M,v]=(0,g.Uk)(p,.5);return s[o++]=d,s[o++]=m,s[o++]=x,s[o++]=l,s[o++]=u,s[o++]=h,s[o++]=p.u2-p.u1,s[o++]=p.u1,s[o++]=M,s[o++]=v,o}function Y(t,e,{segmentFlags:r,segmentIndices:n,segmentParams:s},i,o){r[i]=4,n[i]=o;const a=(0,m.io)(t,e);return R(a,4,...(0,h.mq)(a,.5),s,o)}function N(t,e,{segmentFlags:r,segmentIndices:n,segmentParams:s},i,o){return r[i]=4,n[i]=o,R((0,c.pM)(t,e),0,...e.c[1],s,o)}function R(t,e,r,n,s,i){const{cx:o,cy:a,thetaStart:u,thetaEnd:h,radius:c}=t;return u>h||(e|=1),Math.abs(h-u)<=Math.PI||(e|=2),s[i++]=e,s[i++]=c,s[i++]=1,s[i++]=0,s[i++]=o,s[i++]=a,s[i++]=h-u,s[i++]=u,s[i++]=r,s[i++]=n,i}function V(t,{b:[e,[r,n],[s,i]]},{segmentFlags:o,segmentIndices:a,segmentParams:u},h,c){return o[h]=2,a[h]=c,u[c++]=r,u[c++]=n,u[c++]=s,u[c++]=i,c}const T=1.61803,z=-1},46178(t,e,r){r.r(e),r.d(e,{execute:()=>o});var n=r(85181),s=r(83299);const i=new n.O;function o(t,e){const r=(0,s.fromGeometry)(t);return i.execute(r.getGeometry(),(0,s.fromGeometryToGXGeometry)(e),r.getSpatialReference(),null)}},4197(t,e,r){r.d(e,{Vj:()=>u,cj:()=>a,jh:()=>i,l5:()=>o});var n=r(34275),s=r(9093);function i(t){return t<=n.y9?new Array(t).fill(0):new Float64Array(t)}function o(t,e,r){return Array.isArray(t)?t.slice(e,e+r):t.subarray(e,e+r)}function a(t){return[...t]}function u(t){const e=(0,s.vt)();for(let r=0;r<16;++r)e[r]=t[r];return e}},70328(t,e,r){r.d(e,{BI:()=>v,DC:()=>f,Ej:()=>m,Ie:()=>p,Jt:()=>M,Ne:()=>g,RF:()=>c,aI:()=>C,fA:()=>o,gE:()=>u,hZ:()=>d,iT:()=>l,is:()=>y,qv:()=>E,vI:()=>x,vY:()=>a,v_:()=>b,vt:()=>i,w1:()=>h}),r(35522);var n=r(5443),s=(r(19419),r(4197));function i(t=b){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function o(t,e,r,n,s,o,a=i()){return a[0]=t,a[1]=e,a[2]=r,a[3]=n,a[4]=s,a[5]=o,a}function a(t,e=i()){return function(t,e,r,n=i()){return d(n,E),function(t,e,r=0,n=e.length/3){let s=t[0],i=t[1],o=t[2],a=t[3],u=t[4],h=t[5];for(let t=0;t<n;t++)s=Math.min(s,e[r+3*t]),i=Math.min(i,e[r+3*t+1]),o=Math.min(o,e[r+3*t+2]),a=Math.max(a,e[r+3*t]),u=Math.max(u,e[r+3*t+1]),h=Math.max(h,e[r+3*t+2]);t[0]=s,t[1]=i,t[2]=o,t[3]=a,t[4]=u,t[5]=h}(n,t,e,r),n}(t,0,t.length/3,e)}function u(t,e=(0,s.jh)(24)){const[r,n,i,o,a,u]=t;return e[0]=r,e[1]=n,e[2]=i,e[3]=r,e[4]=n,e[5]=u,e[6]=r,e[7]=a,e[8]=i,e[9]=r,e[10]=a,e[11]=u,e[12]=o,e[13]=n,e[14]=i,e[15]=o,e[16]=n,e[17]=u,e[18]=o,e[19]=a,e[20]=i,e[21]=o,e[22]=a,e[23]=u,e}function h(t,e){const r=isFinite(t[2])||isFinite(t[5]);return new n.A(r?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function c(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t[4]=Math.max(t[4],e[4]),t[5]=Math.max(t[5],e[5])}function f(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function l(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[0]),t[4]=Math.max(t[4],e[1]),t[5]=Math.max(t[5],e[2])}function m(t,e=[0,0,0]){return e[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),e[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),e[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),e}function g(t,e,r=t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r!==t&&(r[3]=t[3],r[4]=t[4],r[5]=t[5]),r}function x(t,e,r=t){return r[3]=e[0],r[4]=e[1],r[5]=e[2],r!==t&&(r[0]=t[0],r[1]=t[1],r[2]=t[2]),t}function d(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function p(t){return t?d(t,E):i(E)}function M(t,e){return t[0]=e[0],t[1]=e[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=e[2],t[4]=e[3],t[5]=Number.POSITIVE_INFINITY,t}function v(t,e,r,n,s){return t[0]=e,t[1]=r,t[2]=Number.NEGATIVE_INFINITY,t[3]=n,t[4]=s,t[5]=Number.POSITIVE_INFINITY,t}function y(t){return 6===t.length}function C(t,e,r){if(null==t||null==e)return t===e;if(!y(t)||!y(e))return!1;if(r){for(let n=0;n<t.length;n++)if(!r(t[n],e[n]))return!1}else for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}const E=[1/0,1/0,1/0,-1/0,-1/0,-1/0],b=[0,0,0,0,0,0];i()},92722(t,e,r){r.d(e,{A:()=>s});var n=r(69397);class s{constructor(t=[],e=[],r=!1,n=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=r,this.hasM=n}static fromJSON({lengths:t,coords:e,hasZ:r,hasM:n}){return new s(t,e,r||!1,n||!1)}static fromRect([t,e,r,n]){const i=r-t,o=n-e;return new s([5],[t,e,i,0,0,o,-i,0,0,-o])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,n.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const r of this.lengths){if(r<3)continue;const{stride:n}=this;let s=this.coords[n*e],i=this.coords[n*e+1];for(let o=1;o<r;o+=1){const r=n*(e+o),a=this.coords[r],u=this.coords[r+1];t+=-.5*(a-s)*(u+i),s=a,i=u}e+=r}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:r}=this;for(const n of this.lengths){for(let s=0;s<n;s++){const n=r*(e+s);t(this.coords[n],this.coords[n+1])}e+=n}}deltaDecode(){const t=this.clone(),{coords:e,lengths:r}=t;let n=0;const{stride:s}=this;for(const t of r){for(let r=1;r<t;r++){const t=s*(n+r);e[t]+=e[t-s],e[t+1]+=e[t+1-s]}n+=t}return t}clone(t){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:r,size:n}=this,i=this.coords.slice(0,n*r);return t?(t.set(i),new s(e,t,this.hasZ,this.hasM)):new s(e,Array.from(i),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const r=new Array(e*t);for(let e=0,n=0;e<r.length;e+=t)r[n++]=this.coords[e],r[n++]=this.coords[e+1];return new s(this.lengths,r,!1,!1)}}}}]);
|