@arcgis/core 5.0.0-next.11 → 5.0.0-next.13
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/analysis/AreaMeasurementAnalysis.js +1 -1
- package/applications/KnowledgeStudio/generalSdkInternalAccess.js +1 -1
- package/arcade/functions/geomasync.js +1 -1
- package/arcade/functions/geomsync.js +1 -1
- package/arcade/functions/knowledgegraph.js +1 -1
- package/arcade/geometry/nearestVertex.js +5 -0
- package/arcade/geometry/operators.js +1 -1
- package/arcade/geometry/operatorsWorker.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{af47272aaaef0ea57e71.js → 00ea3052170e831c6bc8.js} +1 -1
- package/assets/esri/core/workers/chunks/{91dfd29e2dba200eab09.js → 0105d814fb51c366d1da.js} +1 -1
- package/assets/esri/core/workers/chunks/{125e71b0e29d1d132777.js → 02a22dd6d208a925cc5a.js} +1 -1
- package/assets/esri/core/workers/chunks/02e7359162cf974b41b6.js +1 -0
- package/assets/esri/core/workers/chunks/{ead8d0cbcebd12dbfad7.js → 04211fba145d9f06b3ec.js} +1 -1
- package/assets/esri/core/workers/chunks/0441ea7c89266a68b6f0.js +1 -0
- package/assets/esri/core/workers/chunks/07f2a75431dd8fc502ef.js +1 -0
- package/assets/esri/core/workers/chunks/{d1e97cce5047f1791e22.js → 0ac13de43438f572f59c.js} +1 -1
- package/assets/esri/core/workers/chunks/{629127877042ad784ad2.js → 0c8aeb6262e9ec7c87d0.js} +1 -1
- package/assets/esri/core/workers/chunks/{d07f911d40bf05fc0306.js → 1008e3d64f5880e3dbf2.js} +1 -1
- package/assets/esri/core/workers/chunks/{c29486c4eeb3e72effff.js → 110429583b28c28c36ee.js} +1 -1
- package/assets/esri/core/workers/chunks/{61d970ed75c2c358b1e9.js → 14d601e0fe7a0538c7c1.js} +1 -1
- package/assets/esri/core/workers/chunks/18474c017ddacd1d3d2c.js +1 -0
- package/assets/esri/core/workers/chunks/{1257c37bf04d39c27b62.js → 1c3bee704bafb64bba70.js} +1 -1
- package/assets/esri/core/workers/chunks/1d07846bcaac47df0644.js +1 -0
- package/assets/esri/core/workers/chunks/{509392131ec473d6b988.js → 1dfca37f95f2b968aa54.js} +1 -1
- package/assets/esri/core/workers/chunks/2132ccc45da90f6208b2.js +1 -0
- package/assets/esri/core/workers/chunks/2166238a7ad63a2d43c7.js +1 -0
- package/assets/esri/core/workers/chunks/2214d3b1f11658a85d0f.js +1 -0
- package/assets/esri/core/workers/chunks/2266a8f2c2ec37c19bb4.js +1 -0
- package/assets/esri/core/workers/chunks/22ca80f491e070b2a5e7.js +1 -0
- package/assets/esri/core/workers/chunks/{f80f5dbf96c343ac4df6.js → 24d8922ac9cd48621357.js} +1 -1
- package/assets/esri/core/workers/chunks/257f17b3836a623a9dbe.js +1 -0
- package/assets/esri/core/workers/chunks/2b27499fa9de22970b7a.js +1 -0
- package/assets/esri/core/workers/chunks/2e76fbd3c874300fc4a7.js +1 -0
- package/assets/esri/core/workers/chunks/31b5900119dd7cd9e7d3.js +1 -0
- package/assets/esri/core/workers/chunks/34bb4852ebef0f529c96.js +1 -0
- package/assets/esri/core/workers/chunks/{9698f36c143953a975d4.js → 353d447f3745942c88a8.js} +1 -1
- package/assets/esri/core/workers/chunks/{52282f767bd0e99ddca0.js → 3545dce74bb6b0354cb7.js} +1 -1
- package/assets/esri/core/workers/chunks/36b1f47d70b57d79df7b.js +1 -0
- package/assets/esri/core/workers/chunks/38810e3f298e8a0b64a6.js +1 -0
- package/assets/esri/core/workers/chunks/{7290e7a819eb291b1df2.js → 38fa50336983265c73a4.js} +3 -3
- package/assets/esri/core/workers/chunks/{fe49321dca22dc60d105.js → 3b1982bf7b44ff897a35.js} +1 -1
- package/assets/esri/core/workers/chunks/3bacd904cd93c8013f6a.js +1 -0
- package/assets/esri/core/workers/chunks/{588533c3abe876f20f62.js → 3d5b157bd9060b07670b.js} +1 -1
- package/assets/esri/core/workers/chunks/{06e60fc7715d08ede59d.js → 3edffdb0e282ed562ac7.js} +1 -1
- package/assets/esri/core/workers/chunks/3fa15d4ee5fab8fff76e.js +1 -0
- package/assets/esri/core/workers/chunks/487e1c592f1b6fd03a7d.js +1 -0
- package/assets/esri/core/workers/chunks/{ee5aa11750c51b220f1e.js → 4bcb83119481453dbb90.js} +1 -1
- package/assets/esri/core/workers/chunks/4ca5d58117e7a5f73e1e.js +1 -0
- package/assets/esri/core/workers/chunks/{826fa0dfb63df77bfd95.js → 4f0016111fd84c612f41.js} +1 -1
- package/assets/esri/core/workers/chunks/{24cd7b84cd0f3de4bff2.js → 4f14fed0ec885c3c33d5.js} +1 -1
- package/assets/esri/core/workers/chunks/{4baf6f6e7ddedb25f806.js → 5299ec59c86022ca37e2.js} +1 -1
- package/assets/esri/core/workers/chunks/53a9c34cb3f6ac06cd50.js +1 -0
- package/assets/esri/core/workers/chunks/5415fbcc7ed203fc5575.js +1 -0
- package/assets/esri/core/workers/chunks/54c49a768147720c3c56.js +1 -0
- package/assets/esri/core/workers/chunks/558822b700e8bd844052.js +1 -0
- package/assets/esri/core/workers/chunks/{da24ad57747714ac5eda.js → 55adbd7481f8dfb1067e.js} +1 -1
- package/assets/esri/core/workers/chunks/{7803495f8862d9025bcd.js → 56e06c9c1120bea2c641.js} +1 -1
- package/assets/esri/core/workers/chunks/{dc66490520f97eef15bf.js → 57806a01f33074b601e7.js} +24 -24
- package/assets/esri/core/workers/chunks/{67f03d042455cd0f7009.js → 57b410198d83bf0ab708.js} +1 -1
- package/assets/esri/core/workers/chunks/{0a5d74414dd02a2fb8e1.js → 5bc4140333d0db904949.js} +1 -1
- package/assets/esri/core/workers/chunks/5e08b19e6d7202ea38d7.js +1 -0
- package/assets/esri/core/workers/chunks/{0d5212f59e9b62c16164.js → 5f6df4a3376b52ead53f.js} +1 -1
- package/assets/esri/core/workers/chunks/{15c7c10ff9ac63f0e792.js → 5fb2edf942b1cd8d7336.js} +1 -1
- package/assets/esri/core/workers/chunks/600e2e6b51e2fb9c598c.js +1 -0
- package/assets/esri/core/workers/chunks/{dc51438b832551924a9e.js → 6238ca7541800eb2566b.js} +1 -1
- package/assets/esri/core/workers/chunks/{731f7b552dde0fb325cd.js → 62c2bd082a0c669bc857.js} +1 -1
- package/assets/esri/core/workers/chunks/{b8a3f1e60e24a13749c1.js → 631fb2e62e48f8be4051.js} +1 -1
- package/assets/esri/core/workers/chunks/{c8e686efe344a33a0258.js → 6490bc392a4b4f9e24f9.js} +1 -1
- package/assets/esri/core/workers/chunks/{e767f83f9e2de6650f80.js → 6581b94e796781c0ad4a.js} +1 -1
- package/assets/esri/core/workers/chunks/{53654edd766d9b4ef750.js → 658cd45b5fb304fd840a.js} +1 -1
- package/assets/esri/core/workers/chunks/67f305b0c72e77a6331a.js +1 -0
- package/assets/esri/core/workers/chunks/6922351c001fdb4cb757.js +1 -0
- package/assets/esri/core/workers/chunks/{6e22b02a9715c10578d0.js → 69cca5d3f715876c6b32.js} +1 -1
- package/assets/esri/core/workers/chunks/6c13c01c47abc1939f96.js +1 -0
- package/assets/esri/core/workers/chunks/{c37f7756d48ff9af2656.js → 736035c0069ccb03bee6.js} +1 -1
- package/assets/esri/core/workers/chunks/7c14f99e6cfff2a8ef4a.js +1 -0
- package/assets/esri/core/workers/chunks/812f2ccc01f44e3cfd41.js +1 -0
- package/assets/esri/core/workers/chunks/82338cdd56aa1de28db3.js +1 -0
- package/assets/esri/core/workers/chunks/{51ab2acac4ecc1ca9c34.js → 86830fcb5475502dac65.js} +1 -1
- package/assets/esri/core/workers/chunks/{11e96a312f1294d34c50.js → 881df4fd1dc594576457.js} +1 -1
- package/assets/esri/core/workers/chunks/{d1ca7c3a32ce00ed8b81.js → 8be16b03caa947ac7631.js} +1 -1
- package/assets/esri/core/workers/chunks/8d9ccc9a43a315cb6b04.js +1 -0
- package/assets/esri/core/workers/chunks/{042cd64e1f4eb326c30f.js → 8fc82fe1fcbcedf35400.js} +1 -1
- package/assets/esri/core/workers/chunks/91afee11072471e4eefe.js +1 -0
- package/assets/esri/core/workers/chunks/{fbd8d2f61f8a15bcf3db.js → 9595aabbaf411eceea1e.js} +1 -1
- package/assets/esri/core/workers/chunks/{6cf391b5ed7351601a2a.js → 9978ec6c67e87dc08a1d.js} +1 -1
- package/assets/esri/core/workers/chunks/9cdd087c43a601ec331d.js +1 -0
- package/assets/esri/core/workers/chunks/9e5e05d6430712b0b1bc.js +1 -0
- package/assets/esri/core/workers/chunks/{5e2ce34def5e053913b2.js → a10e533f336c035d8d40.js} +1 -1
- package/assets/esri/core/workers/chunks/{311b564e44ae637c960d.js → a3ade7e8b9ddadb5f800.js} +1 -1
- package/assets/esri/core/workers/chunks/{18c5d79d5ee1136e0a57.js → a57751f3d78524c876cd.js} +1 -1
- package/assets/esri/core/workers/chunks/{0030d68d9edf42b4af57.js → a6a87f92f453204e9bdb.js} +1 -1
- package/assets/esri/core/workers/chunks/a6ee40dfc471d6612f3c.js +1 -0
- package/assets/esri/core/workers/chunks/a8ea050090c351e3b6d6.js +1 -0
- package/assets/esri/core/workers/chunks/adf7ccf4ef629211c7ee.js +1 -0
- package/assets/esri/core/workers/chunks/ae6066ea6cb373dc6db3.js +1 -0
- package/assets/esri/core/workers/chunks/af5fc5d6c1d072a27df1.js +1 -0
- package/assets/esri/core/workers/chunks/b328635d191f5424c047.js +1 -0
- package/assets/esri/core/workers/chunks/b59f9c3f7a149214256f.js +1 -0
- package/assets/esri/core/workers/chunks/{664ae441617afe4b17ec.js → b87bc987983b31c13f64.js} +1 -1
- package/assets/esri/core/workers/chunks/bb56717c4e36f28d4c08.js +1 -0
- package/assets/esri/core/workers/chunks/bbdfa8ffcf084cbd9938.js +1 -0
- package/assets/esri/core/workers/chunks/bc19a232076d98825eef.js +1 -0
- package/assets/esri/core/workers/chunks/bc29c29bfa5be3ebafb1.js +1 -0
- package/assets/esri/core/workers/chunks/{ddfd01bb9ba8577c3ffc.js → c3dcfe26c2c3c829762d.js} +1 -1
- package/assets/esri/core/workers/chunks/c3ddcf9148dd2640c402.js +1 -0
- package/assets/esri/core/workers/chunks/{6d9f2b113d6bde936a04.js → c4dfd897bcab20dee43b.js} +1 -1
- package/assets/esri/core/workers/chunks/{0f30a9514571c7be9978.js → c5c02ace54fe4ab9214b.js} +1 -1
- package/assets/esri/core/workers/chunks/{87921f3fa9001f5801ed.js → c68935ed44eb0702a6ba.js} +1 -1
- package/assets/esri/core/workers/chunks/{b6853c6a25eaabc9a7f6.js → c9579d607e59bae214da.js} +1 -1
- package/assets/esri/core/workers/chunks/d39a10155317e6f7a21c.js +1 -0
- package/assets/esri/core/workers/chunks/{773f2c6c9d38db76dfed.js → d42f7e48d694b2427c0d.js} +1 -1
- package/assets/esri/core/workers/chunks/d466f3f0d3824c77da7c.js +1 -0
- package/assets/esri/core/workers/chunks/d4a91f2256e48316a8f0.js +1 -0
- package/assets/esri/core/workers/chunks/d69265ceabfa92b40bb7.js +1 -0
- package/assets/esri/core/workers/chunks/d7755c4c8d1d3059efca.js +1 -0
- package/assets/esri/core/workers/chunks/{eb9c166db0db6fa60e95.js → d7b0fcce847f563ea255.js} +1 -1
- package/assets/esri/core/workers/chunks/d87f0116ee53ec5f98e9.js +1 -0
- package/assets/esri/core/workers/chunks/d888ae5ac1810a486919.js +1 -0
- package/assets/esri/core/workers/chunks/db54552def7bc6cef9bd.js +1 -0
- package/assets/esri/core/workers/chunks/dc4d29cfce12ac599888.js +1 -0
- package/assets/esri/core/workers/chunks/dda6ca9af35518652d0f.js +1 -0
- package/assets/esri/core/workers/chunks/{7005d956c990a04ee8b2.js → dec336700cfb83abbbeb.js} +1 -1
- package/assets/esri/core/workers/chunks/{b3613a38178cad2ebc82.js → dee9867b3379e024ae96.js} +1 -1
- package/assets/esri/core/workers/chunks/df130abb76713a85b4f9.js +1 -0
- package/assets/esri/core/workers/chunks/e0aa036c56ecdfe01503.js +1 -0
- package/assets/esri/core/workers/chunks/e2e4f6b58763fae51ae5.js +1 -0
- package/assets/esri/core/workers/chunks/e8a9c56fd0e7fd2558ef.js +1 -0
- package/assets/esri/core/workers/chunks/{1d06fcae4c2f02fb1c95.js → eb7eb3b3b8800fd73f3e.js} +1 -1
- package/assets/esri/core/workers/chunks/{37c1f155da14de91565a.js → edf58513f789856cd1db.js} +1 -1
- package/assets/esri/core/workers/chunks/{f34e3fa0c5b28531e289.js → ef789e8487deab916fad.js} +1 -1
- package/assets/esri/core/workers/chunks/f28ffda9a95c6568503d.js +1 -0
- package/assets/esri/core/workers/chunks/f98689562017583f73ee.js +1 -0
- package/assets/esri/core/workers/chunks/{292daac70bb828e4923f.js → f9cd068d184cab66dc33.js} +1 -1
- package/assets/esri/core/workers/chunks/{dff2df259f140b7d97a9.js → fd88e07cba5964f80e9e.js} +1 -1
- package/assets/esri/core/workers/chunks/{c9b16fd41cd59d452522.js → fdbe16e3b23e01655c0c.js} +1 -1
- package/assets/esri/core/workers/chunks/{063905fbf9a0c6586949.js → ffdba51e7256ebf8ebd3.js} +1 -1
- package/assets/esri/libs/parquet/pkg/bundle_bg.wasm +0 -0
- package/assets/esri/themes/base/widgets/_Editor.scss +35 -2
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/chunks/Envelope.js +1 -1
- package/chunks/Geometry.js +1 -1
- package/chunks/MultiPathImpl.js +1 -1
- package/chunks/Point2D.js +1 -1
- package/chunks/UnitFactory.js +1 -1
- package/chunks/containsOperator.js +1 -1
- package/chunks/densifyOperator.js +1 -1
- package/chunks/differenceOperator.js +1 -1
- package/chunks/intersectsOperator.js +1 -1
- package/chunks/persistableUrlUtils.js +1 -1
- package/config.js +1 -1
- package/core/XHRAdapter.js +1 -1
- package/core/libs/gl-matrix-2/math/quat.js +1 -1
- package/core/quantityFormatUtils.js +1 -1
- package/core/unitFormatUtils.js +1 -1
- package/core/unitUtils.js +1 -1
- package/editing/fieldUtils.js +5 -0
- package/geometry/Extent.js +1 -1
- package/geometry/Geometry.js +1 -1
- package/geometry/Mesh.js +1 -1
- package/geometry/Point.js +1 -1
- package/geometry/SpatialReference.js +1 -1
- package/geometry/ellipsoidUtils.js +1 -1
- package/geometry/operators/support/jsonConverter.js +1 -1
- package/geometry/support/MeshTransform.js +1 -1
- package/geometry/support/axisAngleDegrees.js +1 -1
- package/geometry/support/meshUtils/exporters/gltf/gltf.js +1 -1
- package/geometry/support/meshUtils/rotate.js +1 -1
- package/geometry/support/meshUtils/scale.js +1 -1
- package/geometry/support/meshUtils/vertexSpaceConversion.js +1 -1
- package/geometry/support/plane.js +1 -1
- package/geometry/support/polygonUtils.js +1 -1
- package/interfaces.d.ts +90 -7
- package/kernel.js +1 -1
- package/layers/Layer.js +1 -1
- package/layers/MapNotesLayer.js +1 -1
- package/layers/graphics/data/QueryEngine.js +1 -1
- package/layers/orientedImagery/transformations/updateElevationUtils.js +1 -1
- package/layers/save/groupLayerUtils.js +1 -1
- package/layers/save/imageryUtils.js +1 -1
- package/layers/save/streamLayerUtils.js +1 -1
- package/layers/support/DateTimeFieldFormat.js +1 -1
- package/layers/support/FieldFormat.js +1 -1
- package/layers/support/LayerLoadContext.js +1 -1
- package/layers/support/NumberFieldFormat.js +1 -1
- package/layers/support/arcgisLayerUrl.js +1 -1
- package/layers/support/arcgisLayers.js +1 -1
- package/layers/support/fetchService.js +1 -1
- package/layers/support/fieldUtils.js +1 -1
- package/layers/support/serviceCapabilitiesUtils.js +1 -1
- package/layers/video/VideoCameraSensorModel.js +1 -1
- package/networks/support/UNTraceConfiguration.js +1 -1
- package/package.json +1 -1
- package/popup/ExpressionInfo.js +1 -1
- package/popup/FieldInfo.js +1 -1
- package/popup/content/AttachmentsContent.js +1 -1
- package/popup/content/BarChartMediaInfo.js +1 -1
- package/popup/content/ColumnChartMediaInfo.js +1 -1
- package/popup/content/Content.js +1 -1
- package/popup/content/CustomContent.js +1 -1
- package/popup/content/ExpressionContent.js +1 -1
- package/popup/content/FieldsContent.js +1 -1
- package/popup/content/ImageMediaInfo.js +1 -1
- package/popup/content/LineChartMediaInfo.js +1 -1
- package/popup/content/MediaContent.js +1 -1
- package/popup/content/PieChartMediaInfo.js +1 -1
- package/popup/content/RelationshipContent.js +1 -1
- package/popup/content/TextContent.js +1 -1
- package/popup/content/UtilityNetworkAssociationsContent.js +1 -1
- package/popup/content/mixins/ChartMediaInfo.js +1 -1
- package/popup/content/mixins/MediaInfo.js +1 -1
- package/popup/content.js +1 -1
- package/popup/support/FieldInfoFormat.js +1 -1
- package/portal/support/layersLoader.js +1 -1
- package/request/cors.js +5 -0
- package/request/loadImage.js +5 -0
- package/request/preferredHosts.js +5 -0
- package/request/process.js +5 -0
- package/request/queue.js +5 -0
- package/request/serviceJSON.js +5 -0
- package/request.js +1 -1
- package/rest/geometryService/utils.js +1 -1
- package/rest/knowledgeGraphService.d.ts +1 -0
- package/support/getDefaultUnitForView.js +1 -1
- package/support/popupUtils.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/support/symbolUtils.js +1 -1
- package/time/TimeExtent.js +1 -1
- package/views/2d/analysis/AreaMeasurement/AreaMeasurementAreaVisualization.js +5 -0
- package/views/2d/analysis/AreaMeasurement/AreaMeasurementController.js +5 -0
- package/views/2d/analysis/AreaMeasurement/AreaMeasurementLabelVisualization.js +5 -0
- package/views/2d/analysis/AreaMeasurement/AreaMeasurementManipulatorVisualization.js +5 -0
- package/views/2d/analysis/AreaMeasurement/AreaMeasurementSketchVisualization.js +5 -0
- package/views/2d/analysis/AreaMeasurement/AreaMeasurementTool.js +5 -0
- package/views/2d/analysis/AreaMeasurementAnalysisView2D.js +5 -0
- package/views/2d/analysis/analysisViewModuleImportUtils.js +1 -1
- package/views/2d/layers/features/FeaturePipelineWorker.js +1 -1
- package/views/2d/layers/features/processor/TrackStrategy.js +1 -1
- package/views/2d/layers/features/sources/strategies/FeatureDrillDownTileLoadStrategy.js +1 -1
- package/views/3d/analysis/AreaMeasurementAnalysisView3D.js +1 -1
- package/views/3d/environment/CloudsRenderer.js +1 -1
- package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DView.js +1 -1
- package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DView.js +1 -1
- package/views/3d/layers/ElevationLayerView3D.js +1 -1
- package/views/3d/layers/FlowSubView3D.js +1 -1
- package/views/3d/layers/PointCloudLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
- package/views/3d/layers/graphics/wosrLoader.js +1 -1
- package/views/3d/layers/i3s/I3SClientMaterialUtil.js +1 -1
- package/views/3d/layers/i3s/I3SDataRequester.js +1 -1
- package/views/3d/layers/support/featureTileQuery3D.js +1 -1
- package/views/3d/support/StreamTextureCollection.js +1 -1
- package/views/3d/support/pointsOfInterest/Focus.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentData.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
- package/views/3d/webgl-engine/effects/magnifier/Magnifier.js +1 -1
- package/views/3d/webgl-engine/effects/smaa/SMAA.js +1 -1
- package/views/3d/webgl-engine/lib/Texture.js +1 -1
- package/views/3d/webgl-engine/lib/TextureBackedBuffer/BufferManager.js +1 -1
- package/views/3d/webgl-engine/lib/TextureBackedBuffer/ManagedTextureBackedBuffer.js +1 -1
- package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBackedBuffer.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
- package/views/3d/webgl-engine/materials/internal/WaterTextureRepository.js +1 -1
- package/views/View2D.js +1 -1
- package/views/analysis/ElevationProfile/ElevationProfileController.js +1 -1
- package/views/analysis/ElevationProfile/constants.js +1 -1
- package/views/analysis/ElevationProfile/elevationProfileErrors.js +1 -1
- package/views/analysis/ElevationProfile/elevationProfileGenerationUtils.js +1 -1
- package/views/draw/DrawOperation.js +1 -1
- package/views/magnifier/resources.js +1 -1
- package/webdoc/support/webdocSaveUtils.js +1 -1
- package/widgets/BasemapLayerList.js +1 -1
- package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
- package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/Editor/MergeFeaturesWorkflow.js +1 -1
- package/widgets/Editor/MergeFeaturesWorkflowData.js +1 -1
- package/widgets/Editor/SplitFeatureWorkflow.js +1 -1
- package/widgets/Editor/UpdateFeaturesWorkflow.js +1 -1
- package/widgets/Editor/UpdateRecordWorkflow.js +1 -1
- package/widgets/Editor/UpdateWorkflow.js +1 -1
- package/widgets/Editor/Workflow.js +1 -1
- package/widgets/Editor/components/FeatureList.js +1 -1
- package/widgets/Editor/components/MergeFeaturesList.js +5 -0
- package/widgets/Editor/components/Notices.js +1 -1
- package/widgets/Editor/components/PanelContent.js +1 -1
- package/widgets/Editor/components/UpdateFeaturePanelContent.js +1 -1
- package/widgets/Editor/css.js +1 -1
- package/widgets/Editor/support/EditorItem.js +1 -1
- package/widgets/Editor/support/SketchController.js +1 -1
- package/widgets/Editor/support/errors.js +1 -1
- package/widgets/Editor/support/mergeFeaturesUtils.js +1 -1
- package/widgets/Editor/support/splitFeatureUtils.js +1 -1
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/Editor.js +1 -1
- package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/UtilityNetworkAssociationItemList.js +1 -1
- package/widgets/FeatureForm/FieldInput.js +1 -1
- package/widgets/FeatureForm.js +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/FeatureTable/FieldColumn.js +1 -1
- package/widgets/FeatureTable/support/FeatureStore.js +1 -1
- package/widgets/LayerList.js +1 -1
- package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
- package/widgets/Legend/support/utils.js +1 -1
- package/widgets/PanoramicVideoViewer.js +1 -1
- package/widgets/support/FilterCondition.js +1 -1
- package/assets/esri/core/workers/chunks/0200637e0503556a3b97.js +0 -1
- package/assets/esri/core/workers/chunks/022c854eff2c2c2aed6b.js +0 -1
- package/assets/esri/core/workers/chunks/06f75c5b6b50934d72a6.js +0 -1
- package/assets/esri/core/workers/chunks/15f969836d63c7fe2d9d.js +0 -1
- package/assets/esri/core/workers/chunks/2857bcb68df874e9aa62.js +0 -1
- package/assets/esri/core/workers/chunks/2a9fc0301268ff909246.js +0 -1
- package/assets/esri/core/workers/chunks/2ddcf3cea0efe4052618.js +0 -1
- package/assets/esri/core/workers/chunks/2e8a4df83c43f86d7361.js +0 -1
- package/assets/esri/core/workers/chunks/2f2e4f81f3daa3fb8527.js +0 -1
- package/assets/esri/core/workers/chunks/3109f0a6914e7be088ed.js +0 -1
- package/assets/esri/core/workers/chunks/31bb1ee9370c2753ce9d.js +0 -1
- package/assets/esri/core/workers/chunks/329fccd7f5cb8401e0c3.js +0 -1
- package/assets/esri/core/workers/chunks/38f6b9288c82dac9a800.js +0 -1
- package/assets/esri/core/workers/chunks/3b1848713ee25f750242.js +0 -1
- package/assets/esri/core/workers/chunks/4291681d067ebdf86e73.js +0 -1
- package/assets/esri/core/workers/chunks/42a1e71d09e8583a7327.js +0 -1
- package/assets/esri/core/workers/chunks/44f27eac92c5ccc57e12.js +0 -1
- package/assets/esri/core/workers/chunks/4941bfd3aae7f6bdac97.js +0 -1
- package/assets/esri/core/workers/chunks/4bd2cc65f7db0d261543.js +0 -1
- package/assets/esri/core/workers/chunks/4fa230dc6e5e87b0dec1.js +0 -1
- package/assets/esri/core/workers/chunks/4fbe2a8d742065cbaea3.js +0 -1
- package/assets/esri/core/workers/chunks/4fe4feeb251f2916a339.js +0 -1
- package/assets/esri/core/workers/chunks/55eb6a0f1e4569a65f2a.js +0 -1
- package/assets/esri/core/workers/chunks/591e459f9fce34f519ca.js +0 -1
- package/assets/esri/core/workers/chunks/59514624daf188a8030f.js +0 -1
- package/assets/esri/core/workers/chunks/5c09d98b41f71a036e2a.js +0 -1
- package/assets/esri/core/workers/chunks/605b9643b1baeff16149.js +0 -1
- package/assets/esri/core/workers/chunks/6293e33f304c4952f88c.js +0 -1
- package/assets/esri/core/workers/chunks/655beaf83e9845a02334.js +0 -1
- package/assets/esri/core/workers/chunks/6e25ef5ad6d6b3f88343.js +0 -1
- package/assets/esri/core/workers/chunks/759321045c264bc6964e.js +0 -1
- package/assets/esri/core/workers/chunks/7e3f27ebf366d4266350.js +0 -1
- package/assets/esri/core/workers/chunks/826072cfc0ac8e36f03c.js +0 -1
- package/assets/esri/core/workers/chunks/9b0c2f4311fe9bca370a.js +0 -1
- package/assets/esri/core/workers/chunks/9c48d8d17831aa57f8a4.js +0 -1
- package/assets/esri/core/workers/chunks/9f28b2800945903bc165.js +0 -1
- package/assets/esri/core/workers/chunks/a27e74117c37f3efcbca.js +0 -1
- package/assets/esri/core/workers/chunks/a41ba05c09a59d1eb35f.js +0 -1
- package/assets/esri/core/workers/chunks/a93ebd076bc55aa6eab0.js +0 -1
- package/assets/esri/core/workers/chunks/aaed35a6414859233678.js +0 -1
- package/assets/esri/core/workers/chunks/acd0564ad1544f452f3f.js +0 -1
- package/assets/esri/core/workers/chunks/b0f43191a431c9de16e5.js +0 -1
- package/assets/esri/core/workers/chunks/b320bb76c7e9998fe53b.js +0 -1
- package/assets/esri/core/workers/chunks/ba4571d2637a74a59552.js +0 -1
- package/assets/esri/core/workers/chunks/c4090a60d149a5962179.js +0 -1
- package/assets/esri/core/workers/chunks/c61c61dac1e8d6188749.js +0 -1
- package/assets/esri/core/workers/chunks/c84caf81bfaa4a8b5aa1.js +0 -1
- package/assets/esri/core/workers/chunks/c8c8cf43fd640d2f5cb1.js +0 -1
- package/assets/esri/core/workers/chunks/d28670cb11164e318e45.js +0 -1
- package/assets/esri/core/workers/chunks/d56ac52a5288e06365e7.js +0 -1
- package/assets/esri/core/workers/chunks/ddca92e18e96ea1c9d89.js +0 -1
- package/assets/esri/core/workers/chunks/ded9747ae04ab889d52a.js +0 -1
- package/assets/esri/core/workers/chunks/df5afa06c6deb6b40109.js +0 -1
- package/assets/esri/core/workers/chunks/df8279e1baf378faf85f.js +0 -1
- package/assets/esri/core/workers/chunks/e3434f91f47f551d9e02.js +0 -1
- package/assets/esri/core/workers/chunks/eb6c3dd440ede4adf603.js +0 -1
- package/assets/esri/core/workers/chunks/edc671b9b83c8e19cb42.js +0 -1
- package/assets/esri/core/workers/chunks/f141c9f7f0d9b2322bf6.js +0 -1
- package/assets/esri/core/workers/chunks/f57401a759f420596b2c.js +0 -1
- package/assets/esri/core/workers/chunks/f7a1f48c53422c6e2028.js +0 -1
- package/assets/esri/core/workers/chunks/f7f002ea5ff5fe7f6249.js +0 -1
- package/assets/esri/core/workers/chunks/f8e889be4b45f6f0667e.js +0 -1
- package/assets/esri/core/workers/chunks/fbd796c88f07bb6755dc.js +0 -1
- package/assets/esri/core/workers/chunks/fec3897ed7e8691387ed.js +0 -1
- package/processRequest.js +0 -5
- package/requestQueue.js +0 -5
- package/support/requestPresets.js +0 -5
- package/support/requestUtils.js +0 -5
- /package/{rest/support → request}/ImageWithType.js +0 -0
- /package/{requestConfig.js → request/config.js} +0 -0
- /package/{support/requestImageUtils.js → request/image.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4903],{1626:(e,t,i)=>{i.d(t,{A:()=>d});var s,l=i(31635),r=i(4718),n=i(10107),o=(i(44208),i(53966),i(36005)),a=i(64108),u=i(43937),p=i(2485),c=i(72606);let d=s=class extends c.A{constructor(e){super(e),this.colorRamps=null,this.type="multipart",this.weights=void 0}writeColorRamps(e,t,i,s){const l=e?.map(e=>e.toJSON(s)),{weights:r}=this;if(l&&r?.length&&l.length===r?.length){const e=100/r.reduce((e,t)=>e+t);let t=0;l.forEach((i,s)=>{i.start=t,t+=r[s]*e,i.stop=t})}t.colorRamps=l}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,r.o8)(this.colorRamps)})}};(0,l.Cg)([(0,n.MZ)({type:[p.A],json:{write:{isRequired:!0}}})],d.prototype,"colorRamps",void 0),(0,l.Cg)([(0,u.K)("colorRamps")],d.prototype,"writeColorRamps",null),(0,l.Cg)([(0,n.MZ)({type:["multipart"],json:{write:{isRequired:!0}}})],d.prototype,"type",void 0),(0,l.Cg)([(0,n.MZ)({type:[Number]})],d.prototype,"weights",void 0),(0,l.Cg)([(0,o.w)("weights",["colorRamps"])],d.prototype,"readWeights",null),d=s=(0,l.Cg)([(0,a.$)("esri.rest.support.MultipartColorRamp")],d)},2024:(e,t,i)=>{i.d(t,{A:()=>u});var s,l=i(31635),r=i(10107),n=(i(44208),i(53966),i(87811),i(64108)),o=i(2795),a=i(72500);let u=s=class extends o.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()})}getAttributeHash(){return`${super.getAttributeHash()}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map(e=>e.value||0)}};(0,l.Cg)([(0,r.MZ)({readOnly:!0})],u.prototype,"cache",null),(0,l.Cg)([(0,r.MZ)({type:["color"],json:{type:["colorInfo"]}})],u.prototype,"type",void 0),(0,l.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],u.prototype,"normalizationField",void 0),(0,l.Cg)([(0,r.MZ)({type:[a.A],json:{write:!0}})],u.prototype,"stops",null),u=s=(0,l.Cg)([(0,n.$)("esri.renderers.visualVariables.ColorVariable")],u)},2485:(e,t,i)=>{i.d(t,{A:()=>d});var s,l=i(31635),r=i(68197),n=i(4718),o=i(10107),a=i(56507),u=i(93223),p=i(64108),c=i(72606);let d=s=class extends c.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,l.Cg)([(0,u.e)({esriCIELabAlgorithm:"cie-lab",esriHSVAlgorithm:"hsv",esriLabLChAlgorithm:"lab-lch"})],d.prototype,"algorithm",void 0),(0,l.Cg)([(0,o.MZ)({type:r.A,json:{type:[a.jz],write:{isRequired:!0}}})],d.prototype,"fromColor",void 0),(0,l.Cg)([(0,o.MZ)({type:r.A,json:{type:[a.jz],write:{isRequired:!0}}})],d.prototype,"toColor",void 0),(0,l.Cg)([(0,o.MZ)({type:["algorithmic"],json:{write:{isRequired:!0}}})],d.prototype,"type",void 0),d=s=(0,l.Cg)([(0,p.$)("esri.rest.support.AlgorithmicColorRamp")],d)},2795:(e,t,i)=>{i.d(t,{A:()=>h});var s=i(31635),l=i(66552),r=i(25482),n=i(53966),o=i(10107),a=i(79901),u=i(64108),p=i(56507),c=i(41078);const d=new l.J({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"});let h=class extends r.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,p.GX)(e)}get arcadeRequired(){return!!this.valueExpression}clone(){}getAttributeHash(){return`${this.type}-${this.field}-${this.valueExpression}`}};(0,s.Cg)([(0,o.MZ)()],h.prototype,"index",void 0),(0,s.Cg)([(0,o.MZ)({type:d.apiValues,readOnly:!0,json:{read:d.read,write:{writer:d.write,isRequired:!0}}})],h.prototype,"type",void 0),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],h.prototype,"field",void 0),(0,s.Cg)([(0,a.w)("field")],h.prototype,"castField",null),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],h.prototype,"valueExpression",void 0),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],h.prototype,"valueExpressionTitle",void 0),(0,s.Cg)([(0,o.MZ)({readOnly:!0})],h.prototype,"arcadeRequired",null),(0,s.Cg)([(0,o.MZ)({type:c.A,json:{write:!0}})],h.prototype,"legendOptions",void 0),h=(0,s.Cg)([(0,u.$)("esri.renderers.visualVariables.VisualVariable")],h)},12330:(e,t,i)=>{i.d(t,{A:()=>u});var s,l=i(31635),r=i(25482),n=i(90629),o=i(10107),a=(i(44208),i(53966),i(87811),i(64108));let u=s=class extends r.o{constructor(e){super(e),this.label=null,this.size=null,this.value=null,this.useMinValue=null,this.useMaxValue=null}clone(){return new s({label:this.label,size:this.size,value:this.value,useMaxValue:this.useMaxValue,useMinValue:this.useMinValue})}};(0,l.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,l.Cg)([(0,o.MZ)({type:Number,cast:n.cr,json:{write:{isRequired:!0}}})],u.prototype,"size",void 0),(0,l.Cg)([(0,o.MZ)({type:Number,json:{write:{isRequired:!0}}})],u.prototype,"value",void 0),(0,l.Cg)([(0,o.MZ)({type:Boolean,json:{write:!1}})],u.prototype,"useMinValue",void 0),(0,l.Cg)([(0,o.MZ)({type:Boolean,json:{write:!1}})],u.prototype,"useMaxValue",void 0),u=s=(0,l.Cg)([(0,a.$)("esri.renderers.visualVariables.support.SizeStop")],u)},20061:(e,t,i)=>{i.d(t,{A:()=>y});var s,l=i(31635),r=i(69540),n=i(66552),o=i(25482),a=i(10107),u=i(56507),p=(i(44208),i(87811),i(93223)),c=i(64108);const d=(0,n.O)()({ascendingValues:"ascending-values",descendingValues:"descending-values"});let h=s=class extends((0,r.OU)(o.o)){static from(e){return(0,u.PZ)(s,e)}constructor(e){super(e),this.title=null,this.order=null}};(0,l.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],h.prototype,"title",void 0),(0,l.Cg)([(0,p.e)(d)],h.prototype,"order",void 0),h=s=(0,l.Cg)([(0,c.$)("esri.renderers.support.RendererLegendOptions")],h);const y=h},23461:(e,t,i)=>{i.d(t,{A:()=>a});var s,l=i(31635),r=i(10107),n=(i(44208),i(53966),i(87811),i(64108)),o=i(2795);let a=s=class extends o.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,l.Cg)([(0,r.MZ)({readOnly:!0})],a.prototype,"cache",null),(0,l.Cg)([(0,r.MZ)({type:["heading","tilt","roll"],json:{origins:{"web-scene":{default:"heading",write:!0}}}})],a.prototype,"axis",void 0),(0,l.Cg)([(0,r.MZ)({type:["rotation"],json:{type:["rotationInfo"]}})],a.prototype,"type",void 0),(0,l.Cg)([(0,r.MZ)({type:["geographic","arithmetic"],json:{write:!0,origins:{"web-document":{write:!0,default:"geographic"}}}})],a.prototype,"rotationType",void 0),a=s=(0,l.Cg)([(0,n.$)("esri.renderers.visualVariables.RotationVariable")],a)},29266:(e,t,i)=>{i.d(t,{RV:()=>d,UT:()=>h,Yz:()=>g}),i(68197);var s=i(52106),l=i(21818),r=i(53966),n=i(31756),o=i(98205);const a=()=>r.A.getLogger("esri.renderers.visualVariables.support.visualVariableUtils"),u=e=>a().warn(`The visualVariable should be an instance of esri.renderers.visualVariables.${e}`),p=()=>a().error("Use of arcade expressions requires an arcade context"),c=(new s.A,Math.PI),d=/^\s*(return\s+)?\$view\.scale\s*(;)?\s*$/i;function h(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 u("RotationVariable");const l=s.axis||"heading",r="heading"===l&&"arithmetic"===s.rotationType?90:0,n="heading"===l&&"arithmetic"===s.rotationType?-1:1,o="number"==typeof t?null:t,a=o?.attributes,c=s.field,{hasExpression:d}=s.cache;let h=s.cache.compiledFunc,y=null;if(!c&&!d)return y;if(d){if(null==i?.arcade)return void p();const e={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},t=i.arcade.arcadeUtils,l=t.getViewInfo(e),r=t.createExecContext(o,l,i.timeZone);if(!h){const e=t.createSyntaxTree(s.valueExpression);h=t.createFunction(e),s.cache.compiledFunc=h}y=t.executeFunction(h,r)}else a&&(y=a[c]);return y="number"!=typeof y||isNaN(y)?null:r+n*y,y}function y(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 u("SizeVariable");const l=function(e,t,i,s,l){switch(t.transformationType){case"additive":return function(e,t,i,s){const l=m(t.minSize,i,s)||t.minDataValue;return null==e&&null==l?null:(e??0)+(l??0)}(e,t,i,s);case"constant":return function(e,t,i){const s=e.stops;let l=s?.length&&s[0].size;return null==l&&(l=e.minSize),m(l,t,i)}(t,i,s);case"clamped-linear":return function(e,t,i,s){const l=m(t.minSize,i,s);if(null==e)return l;const{minDataValue:r,maxDataValue:n}=t;if(null==r||null==n)return null;const o=(e-r)/(n-r),a=m(t.maxSize,i,s),u=null!=s?s.shape:void 0;if(e<=r)return l;if(e>=n)return a;if(null==l||null==a)return null;if("area"===t.scaleBy&&u){const e="circle"===u,t=e?c*(l/2)**2:l*l,i=t+o*((e?c*(a/2)**2:a*a)-t);return e?2*Math.sqrt(i/c):Math.sqrt(i)}return l+o*(a-l)}(e,t,i,s);case"proportional":return function(e,t,i,s){const l=m(t.minSize,i,s);if(null==e||null==l)return l;const r=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"===r?2*Math.sqrt(o*(l/2)**2):"square"===r||"diamond"===r||"image"===r?Math.sqrt(o*l**2):o*l,f(u,l,a)}(e,t,i,s);case"stops":return function(e,t,i,s,l){if(null==e)return null;const[r,n,o]=function(e,t){if(!t)return;let i=0,s=t.length-1;return t.some((t,l)=>e<t?(s=l,!0):(i=l,!1)),[i,s,(e-t[i])/(t[s]-t[i])]}(e,l);if(r===n)return m(t.stops?.[r].size,i,s);{const e=m(t.stops?.[r].size,i,s),l=m(t.stops?.[n].size,i,s);return null==e||null==l?null:e+(l-e)*o}}(e,t,i,s,l);case"real-world-size":return function(e,t,i,s){const l=(s?.resolution??1)*n.j[t.valueUnit],r=m(t.minSize,i,s),o=m(t.maxSize,i,s),{valueRepresentation:a}=t;if(null==e)return r;let u=null;return u="area"===a?2*Math.sqrt(e/c)/l:"radius"===a||"distance"===a?2*e/l:e/l,f(u,r,o)}(e,t,i,s);case"identity":return e;case"unknown":return null}}(function(e,t,i){const s="number"==typeof t,l=s?null:t,r=l?.attributes;let n=s?t:null;const{isScaleDriven:a}=e.cache;let u=e.cache.compiledFunc;if(a){const t=null!=i?i.scale:void 0,s=null!=i?i.view:void 0;n=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 p();const t={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},s=i.arcade.arcadeUtils,r=s.getViewInfo(t),o=s.createExecContext(l,r,i.timeZone);if(!u){const t=s.createSyntaxTree(e.valueExpression);u=s.createFunction(t),e.cache.compiledFunc=u}n=s.executeFunction(u,o);break}case"field":r&&(n=r[e.field]);break;case"unknown":n=null}if(!(0,o.gf)(n))return null;if(s||!e.normalizationField)return n;const c=r?parseFloat(r[e.normalizationField]):null;return(0,o.gf)(c)&&0!==c?n/c:null}(s,t,i),s,t,i,s.cache.ipData);return null==l||isNaN(l)?void 0:l}function m(e,t,i){return null==e?null:(0,o.of)(e)?y(e,t,i):(0,o.gf)(e)?e:null}function f(e,t,i){return(0,o.gf)(i)&&e>i?i:(0,o.gf)(t)&&e<t?t:e}function g(e,t,i){const s=["proportional","proportional","proportional"];for(const r of e){const e=r.useSymbolValue?"symbol-value":y(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:(0,l.Xb)(r.axis)}}return s}},30943:(e,t,i)=>{i.d(t,{A:()=>F});var s,l=i(31635),r=i(66552),n=i(25482),o=i(4718),a=i(10107),u=i(56507),p=i(36005),c=i(64108);i(44208),i(53966),i(87811);let d=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})}};var h;(0,l.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"minValue",void 0),(0,l.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"maxValue",void 0),d=s=(0,l.Cg)([(0,c.$)("esri.renderers.support.AuthoringInfoClassBreakInfo")],d);let y=h=class extends n.o{constructor(e){super(e),this.field="",this.normalizationField="",this.label="",this.classBreakInfos=new Array}clone(){return new h({field:this.field,normalizationField:this.normalizationField,label:this.label,classBreakInfos:(0,o.o8)(this.classBreakInfos)})}};(0,l.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"field",void 0),(0,l.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"normalizationField",void 0),(0,l.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"label",void 0),(0,l.Cg)([(0,a.MZ)({type:[d],json:{write:!0}})],y.prototype,"classBreakInfos",void 0),y=h=(0,l.Cg)([(0,c.$)("esri.renderers.support.AuthoringInfoFieldInfo")],y);var m,f=i(79901);let g=m=class extends n.o{constructor(e){super(e),this.label=null,this.size=null,this.value=null}clone(){return new m({label:this.label,value:this.value,size:this.size})}};(0,l.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],g.prototype,"label",void 0),(0,l.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"size",void 0),(0,l.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"value",void 0),g=m=(0,l.Cg)([(0,c.$)("esri.renderers.support.AuthoringInfoSizeStop")],g);const v=g;var b;const w=new r.J({percentTotal:"percent-of-total",ratio:"ratio",percent:"percent"}),V=new r.J({sizeInfo:"size",colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation"}),S={key:e=>"number"==typeof e?"number":"string",typeMap:{number:Number,string:String},base:null},C=["high-to-low","above-and-below","centered-on","extremes"],x=[...new Set(["high-to-low","above-and-below","centered-on","extremes","above","below","high-to-low","above-and-below","above","below","reference-size","spike"])],M=["seconds","minutes","hours","days","months","years"];let z=b=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 b({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,l.Cg)([(0,a.MZ)({types:S,json:{write:!0}})],z.prototype,"endTime",void 0),(0,l.Cg)([(0,f.w)("endTime")],z.prototype,"castEndTime",null),(0,l.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],z.prototype,"field",void 0),(0,l.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],z.prototype,"maxSliderValue",void 0),(0,l.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],z.prototype,"minSliderValue",void 0),(0,l.Cg)([(0,a.MZ)({type:String,json:{origins:{"web-scene":{write:!1}},write:!0}})],z.prototype,"normalizationField",null),(0,l.Cg)([(0,a.MZ)({type:Number,value:null,json:{origins:{"web-scene":{write:!1}},write:!0}})],z.prototype,"referenceSizeScale",null),(0,l.Cg)([(0,a.MZ)({type:["circle","diamond","hexagon-flat","hexagon-pointy","square"],value:null,json:{origins:{"web-scene":{write:!1}},write:!0}})],z.prototype,"referenceSizeSymbolStyle",null),(0,l.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}})],z.prototype,"spikeSymbolStyle",null),(0,l.Cg)([(0,a.MZ)({types:S,json:{write:!0}})],z.prototype,"startTime",void 0),(0,l.Cg)([(0,f.w)("startTime")],z.prototype,"castStartTime",null),(0,l.Cg)([(0,a.MZ)({type:[v],json:{origins:{"web-scene":{write:!1}},write:!0}})],z.prototype,"sizeStops",null),(0,l.Cg)([(0,a.MZ)({type:w.apiValues,value:null,json:{type:w.jsonValues,read:w.read,write:w.write}})],z.prototype,"style",null),(0,l.Cg)([(0,a.MZ)({type:x,value:null,json:{type:x,origins:{"web-scene":{type:C,write:{writer:(e,t)=>{C.includes(e)&&(t.theme=e)}}}},write:!0}})],z.prototype,"theme",null),(0,l.Cg)([(0,a.MZ)({type:V.apiValues,json:{type:V.jsonValues,read:V.read,write:V.write}})],z.prototype,"type",void 0),(0,l.Cg)([(0,a.MZ)({type:M,json:{type:M,write:!0}})],z.prototype,"units",void 0),z=b=(0,l.Cg)([(0,c.$)("esri.renderers.support.AuthoringInfoVisualVariable")],z);const I=z;var _,A=i(95349);const j=new r.J({esriClassifyDefinedInterval:"defined-interval",esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation"}),Z=new r.J({classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density",flow:"flow"}),q=["inches","feet","yards","miles","nautical-miles","millimeters","centimeters","decimeters","meters","kilometers"];let F=_=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 _({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,l.Cg)([(0,a.MZ)({type:j.apiValues,value:null,json:{type:j.jsonValues,read:j.read,write:j.write,origins:{"web-document":{default:"manual",type:j.jsonValues,read:j.read,write:j.write}}}})],F.prototype,"classificationMethod",null),(0,l.Cg)([(0,a.MZ)({types:A.g,json:{write:!0}})],F.prototype,"colorRamp",void 0),(0,l.Cg)([(0,p.w)("colorRamp")],F.prototype,"readColorRamp",null),(0,l.Cg)([(0,a.MZ)({json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],F.prototype,"fadeRatio",void 0),(0,l.Cg)([(0,a.MZ)({type:[String],value:null,json:{write:!0}})],F.prototype,"fields",null),(0,l.Cg)([(0,a.MZ)({type:y,value:null,json:{write:!0}})],F.prototype,"field1",null),(0,l.Cg)([(0,a.MZ)({type:y,value:null,json:{write:!0}})],F.prototype,"field2",null),(0,l.Cg)([(0,a.MZ)({type:["flow-line","wave-front"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],F.prototype,"flowTheme",null),(0,l.Cg)([(0,a.MZ)({type:["HH","HL","LH","LL"],value:null,json:{write:!0}})],F.prototype,"focus",null),(0,l.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1}}}})],F.prototype,"isAutoGenerated",void 0),(0,l.Cg)([(0,a.MZ)({type:Number,value:null,json:{type:u.jz,write:!0}})],F.prototype,"numClasses",null),(0,l.Cg)([(0,a.MZ)({type:q,json:{type:q,read:!1,write:!1,origins:{"web-scene":{read:!0,write:!0}}}})],F.prototype,"lengthUnit",void 0),(0,l.Cg)([(0,a.MZ)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],F.prototype,"maxSliderValue",void 0),(0,l.Cg)([(0,a.MZ)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],F.prototype,"minSliderValue",void 0),(0,l.Cg)([(0,a.MZ)({type:Object,value:null,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],F.prototype,"statistics",null),(0,l.Cg)([(0,a.MZ)({type:[.25,.33,.5,1],value:null,json:{type:[.25,.33,.5,1],write:!0}})],F.prototype,"standardDeviationInterval",null),(0,l.Cg)([(0,a.MZ)({type:Z.apiValues,value:null,json:{type:Z.jsonValues,read:Z.read,write:Z.write}})],F.prototype,"type",null),(0,l.Cg)([(0,a.MZ)({type:[I],json:{write:!0}})],F.prototype,"visualVariables",void 0),(0,l.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}}}})],F.prototype,"univariateSymbolStyle",null),(0,l.Cg)([(0,a.MZ)({type:["high-to-low","above-and-below","above","below"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],F.prototype,"univariateTheme",null),F=_=(0,l.Cg)([(0,c.$)("esri.renderers.support.AuthoringInfo")],F)},41078:(e,t,i)=>{i.d(t,{A:()=>u});var s=i(31635),l=i(69540),r=i(25482),n=i(10107),o=(i(44208),i(53966),i(87811),i(64108));let a=class extends((0,l.OU)(r.o)){constructor(){super(...arguments),this.showLegend=null,this.title=null}};(0,s.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0}})],a.prototype,"showLegend",void 0),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"title",void 0),a=(0,s.Cg)([(0,o.$)("esri.renderers.visualVariables.support.VisualVariableLegendOptions")],a);const u=a},48940:(e,t,i)=>{i.d(t,{A:()=>M});var s=i(31635),l=i(49186),r=i(66552),n=i(53966),o=i(10107),a=i(79901),u=i(36005),p=i(64108),c=i(43937),d=i(2795),h=i(90629),y=i(12330),m=(i(44208),i(87811),i(41078));let f=class extends m.A{constructor(){super(...arguments),this.customValues=null}};(0,s.Cg)([(0,o.MZ)({type:[Number],json:{write:!0}})],f.prototype,"customValues",void 0),f=(0,s.Cg)([(0,p.$)("esri.renderers.visualVariables.support.SizeVariableLegendOptions")],f);const g=f;var v,b=i(98205),w=i(29266);const V=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 C(e){if(null!=e)return"string"==typeof e||"number"==typeof e?function(e){return(0,h.cr)(e)}(e):"size"===e.type?(0,b.of)(e)?e:(delete(e={...e}).type,new M(e)):void 0}function x(e,t,i){if("object"!=typeof e)return e;const s=new M;return s.read(e,i),s}let M=v=class extends d.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&&w.RV.test(this.valueExpression)}}set index(e){(0,b.of)(this.maxSize)&&(this.maxSize.index=`visualVariables[${e}].maxSize`),(0,b.of)(this.minSize)&&(this.minSize.index=`visualVariables[${e}].minSize`),this._set("index",e)}get inputValueType(){return(0,b.eh)(this)}set maxDataValue(e){e&&this.stops&&(n.A.getLogger(this).warn("cannot set maxDataValue when stops is not null."),e=null),this._set("maxDataValue",e)}set maxSize(e){e&&this.stops&&(n.A.getLogger(this).warn("cannot set maxSize when stops is not null."),e=null),this._set("maxSize",e)}castMaxSize(e){return C(e)}readMaxSize(e,t,i){return x(e,0,i)}set minDataValue(e){e&&this.stops&&(n.A.getLogger(this).warn("cannot set minDataValue when stops is not null."),e=null),this._set("minDataValue",e)}set minSize(e){e&&this.stops&&(n.A.getLogger(this).warn("cannot set minSize when stops is not null."),e=null),this._set("minSize",e)}castMinSize(e){return C(e)}readMinSize(e,t,i){return x(e,0,i)}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&&(n.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,b.KZ)(this,this.inputValueType)}readValueExpression(e,t){return e||t.expression&&"$view.scale"}writeValueExpressionWebScene(e,t,i,s){if("$view.scale"===e){if(s?.messages){const e=this.index,t="string"==typeof e?e:`visualVariables[${e}]`;s.messages.push(new l.A("property:unsupported",this.type+"VisualVariable.valueExpression = '$view.scale' is not supported in Web Scene. Please remove this property to save the Web Scene.",{instance:this,propertyName:t+".valueExpression",context:s}))}}else t[i]=e}readValueUnit(e){return e?S.read(e):null}clone(){return new v({axis:this.axis,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,maxDataValue:this.maxDataValue,maxSize:(0,b.of)(this.maxSize)?this.maxSize.clone():this.maxSize,minDataValue:this.minDataValue,minSize:(0,b.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}getAttributeHash(){return`${super.getAttributeHash()}-${this.target}-${this.normalizationField}`}_interpolateData(){return this.stops?.map(e=>e.value||0)}};(0,s.Cg)([(0,o.MZ)({readOnly:!0})],M.prototype,"cache",null),(0,s.Cg)([(0,o.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,o.MZ)()],M.prototype,"index",null),(0,s.Cg)([(0,o.MZ)({type:String,readOnly:!0})],M.prototype,"inputValueType",null),(0,s.Cg)([(0,o.MZ)({type:g,json:{write:!0}})],M.prototype,"legendOptions",void 0),(0,s.Cg)([(0,o.MZ)({type:Number,value:null,json:{write:!0}})],M.prototype,"maxDataValue",null),(0,s.Cg)([(0,o.MZ)({type:Number,value:null,json:{write:!0}})],M.prototype,"maxSize",null),(0,s.Cg)([(0,a.w)("maxSize")],M.prototype,"castMaxSize",null),(0,s.Cg)([(0,u.w)("maxSize")],M.prototype,"readMaxSize",null),(0,s.Cg)([(0,o.MZ)({type:Number,value:null,json:{write:!0}})],M.prototype,"minDataValue",null),(0,s.Cg)([(0,o.MZ)({type:Number,value:null,json:{write:!0}})],M.prototype,"minSize",null),(0,s.Cg)([(0,a.w)("minSize")],M.prototype,"castMinSize",null),(0,s.Cg)([(0,u.w)("minSize")],M.prototype,"readMinSize",null),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],M.prototype,"normalizationField",void 0),(0,s.Cg)([(0,o.MZ)({readOnly:!0})],M.prototype,"arcadeRequired",null),(0,s.Cg)([(0,o.MZ)({type:String})],M.prototype,"scaleBy",void 0),(0,s.Cg)([(0,o.MZ)({type:[y.A],value:null,json:{write:!0}})],M.prototype,"stops",null),(0,s.Cg)([(0,o.MZ)({type:["outline"],json:{write:!0}})],M.prototype,"target",void 0),(0,s.Cg)([(0,o.MZ)({type:String,readOnly:!0})],M.prototype,"transformationType",null),(0,s.Cg)([(0,o.MZ)({type:["size"],json:{type:["sizeInfo"]}})],M.prototype,"type",void 0),(0,s.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0,origins:{"web-map":{read:!1}}}})],M.prototype,"useSymbolValue",void 0),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],M.prototype,"valueExpression",void 0),(0,s.Cg)([(0,u.w)("valueExpression",["valueExpression","expression"])],M.prototype,"readValueExpression",null),(0,s.Cg)([(0,c.K)("web-scene","valueExpression")],M.prototype,"writeValueExpressionWebScene",null),(0,s.Cg)([(0,o.MZ)({type:["radius","diameter","area","width","distance"],json:{write:!0}})],M.prototype,"valueRepresentation",void 0),(0,s.Cg)([(0,o.MZ)({type:S.apiValues,json:{write:S.write,origins:{"web-map":{read:!1},"web-scene":{write:!0},"portal-item":{write:!0}}}})],M.prototype,"valueUnit",void 0),(0,s.Cg)([(0,u.w)("valueUnit")],M.prototype,"readValueUnit",null),M=v=(0,s.Cg)([(0,p.$)("esri.renderers.visualVariables.SizeVariable")],M)},49849:(e,t,i)=>{i.d(t,{As:()=>c,Ug:()=>d,Wp:()=>p,z4:()=>u});var s=i(93637),l=i(90360),r=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,l.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:r.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()}}}}},60999:(e,t,i)=>{i.d(t,{DZ:()=>y,Ke:()=>h,Tj:()=>p,UT:()=>m,aD:()=>g,jJ:()=>u});var s=i(31635),l=i(69622),r=i(97768),n=i(74887),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 m(e,t){return new f(e,t)}let f=class extends l.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,r.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,r.xt)(this._abortHandle),this._abortController=null}};(0,s.Cg)([(0,o.MZ)()],f.prototype,"value",null),(0,s.Cg)([(0,o.MZ)()],f.prototype,"error",null),(0,s.Cg)([(0,o.MZ)()],f.prototype,"finished",null),(0,s.Cg)([(0,o.MZ)()],f.prototype,"promise",void 0),(0,s.Cg)([(0,o.MZ)()],f.prototype,"_result",void 0),f=(0,s.Cg)([(0,a.$)("esri.core.asyncUtils.ReactiveTask")],f);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)}}}},62724:(e,t,i)=>{i.d(t,{A:()=>f});var s,l=i(31635),r=i(10107),n=(i(44208),i(53966),i(87811),i(64108)),o=i(2795),a=i(25482),u=i(56507),p=i(36005),c=i(43937),d=i(78553);let h=s=class extends a.o{constructor(e){super(e),this.label=null,this.opacity=null,this.value=null}readOpacity(e,t){return(0,d.D)(t.transparency)}writeOpacity(e,t,i){t[i]=(0,d.p)(e)}clone(){return new s({label:this.label,opacity:this.opacity,value:this.value})}};(0,l.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],h.prototype,"label",void 0),(0,l.Cg)([(0,r.MZ)({type:Number,json:{type:u.jz,write:{target:"transparency",isRequired:!0}}})],h.prototype,"opacity",void 0),(0,l.Cg)([(0,p.w)("opacity",["transparency"])],h.prototype,"readOpacity",null),(0,l.Cg)([(0,c.K)("opacity")],h.prototype,"writeOpacity",null),(0,l.Cg)([(0,r.MZ)({type:Number,json:{write:{isRequired:!0}}})],h.prototype,"value",void 0),h=s=(0,l.Cg)([(0,n.$)("esri.renderers.visualVariables.support.OpacityStop")],h);const y=h;var m;let f=m=class extends o.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 m({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()})}getAttributeHash(){return`${super.getAttributeHash()}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map(e=>e.value||0)}};(0,l.Cg)([(0,r.MZ)({readOnly:!0})],f.prototype,"cache",null),(0,l.Cg)([(0,r.MZ)({type:["opacity"],json:{type:["transparencyInfo"]}})],f.prototype,"type",void 0),(0,l.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],f.prototype,"normalizationField",void 0),(0,l.Cg)([(0,r.MZ)({type:[y],json:{write:!0}})],f.prototype,"stops",null),f=m=(0,l.Cg)([(0,n.$)("esri.renderers.visualVariables.OpacityVariable")],f)},63988:(e,t,i)=>{i.d(t,{h:()=>x});var s=i(31635),l=i(10107),r=(i(44208),i(53966)),n=(i(87811),i(36005)),o=i(64108),a=i(43937),u=i(30524),p=i(2024),c=i(62724),d=i(23461),h=i(48940),y=i(2795),m=i(69622),f=i(66552),g=i(67076);const v={color:p.A,size:h.A,opacity:c.A,rotation:d.A},b=new f.J({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"}),w=/^\[([^\]]+)\]$/i;let V=class extends m.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:l}=t,n=s?.match(w),o=n?.[1];if(o&&(e||(e=[]),e.push({type:"rotationInfo",rotationType:l,field:o})),e)return e.map(e=>{const t=b.read(e.type),s=v[t];s||(r.A.getLogger(this).warn(`Unknown variable type: ${t}`),i?.messages&&i.messages.push(new g.A("visual-variable:unsupported",`visualVariable of type '${t}' is not supported`,{definition:e,context:i})));const l=new s;return l.read(e,i),l})}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,l.MZ)()],V.prototype,"visualVariables",null),V=(0,s.Cg)([(0,o.$)("esri.renderers.visualVariables.VisualVariableFactory")],V);var S=i(69309);const C={base:y.A,key:"type",typeMap:{opacity:c.A,color:p.A,rotation:d.A,size:h.A}},x=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this._vvFactory=new V}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,u.rq)(e,t,s.field),s.normalizationField&&(0,u.rq)(e,t,s.normalizationField),s.valueExpression&&(M(s.valueExpression,e,t)||await(0,u.Dx)(e,t,null,s.valueExpression)))}};return(0,s.Cg)([(0,l.MZ)({types:[C],value:null,json:{write:!0}})],i.prototype,"visualVariables",null),(0,s.Cg)([(0,n.w)("visualVariables",["visualVariables","rotationType","rotationExpression"])],i.prototype,"readVisualVariables",null),(0,s.Cg)([(0,a.K)("visualVariables")],i.prototype,"writeVisualVariables",null),i=(0,s.Cg)([(0,o.$)("esri.renderers.mixins.VisualVariablesMixin")],i),i};function M(e,t,i){const s=(0,S.D)(e);return null!=s&&((0,u.rq)(t,i,s),!0)}},72500:(e,t,i)=>{i.d(t,{A:()=>d});var s,l=i(31635),r=i(68197),n=i(25482),o=i(10107),a=i(56507),u=(i(44208),i(87811),i(64108)),p=i(43937);let c=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,l.Cg)([(0,o.MZ)({type:r.A,json:{type:[a.jz],write:{isRequired:!0}}})],c.prototype,"color",void 0),(0,l.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,l.Cg)([(0,o.MZ)({type:Number,json:{write:{writerEnsuresNonNull:!0}}})],c.prototype,"value",void 0),(0,l.Cg)([(0,p.K)("value")],c.prototype,"writeValue",null),c=s=(0,l.Cg)([(0,u.$)("esri.renderers.visualVariables.support.ColorStop")],c);const d=c},72606:(e,t,i)=>{i.d(t,{A:()=>o});var s=i(31635),l=i(25482),r=i(10107),n=(i(44208),i(53966),i(87811),i(64108));let o=class extends l.o{constructor(e){super(e),this.type=null}};(0,s.Cg)([(0,r.MZ)({readOnly:!0,json:{read:!1,write:!0}})],o.prototype,"type",void 0),o=(0,s.Cg)([(0,n.$)("esri.rest.support.ColorRamp")],o)},73838:(e,t,i)=>{i.d(t,{rS:()=>k,M9:()=>j,oO:()=>Z});var s=i(49186),l=i(93637),r=i(77548),n=i(37757),o=i(13313),a=i(97887),u=i(68548),p=i(58592),c=i(75981),d=i(65365),h=i(94985),y=i(31593),m=i(53930),f=i(68249),g=i(68197),v=i(7762),b=(i(44208),i(90629)),w=i(27845),V=i(11506),S=i(39065),C=i(59868),x=i(93470);c.A.fromSimpleMarkerSymbol(C.UK),a.A.fromSimpleLineSymbol(C.A7),d.A.fromSimpleFillSymbol(C.Cx),new u.A({symbolLayers:new v.A([new w.A({material:{color:x.fT},edges:new S.A({size:(0,b.PN)(1),color:new g.A(x.JR)})})])});const M=new a.A({symbolLayers:new v.A([new V.A({material:{color:new g.A([0,0,0])},size:(0,b.PN)(1)})])}),z=new d.A({symbolLayers:new v.A([new w.A({outline:{color:new g.A([0,0,0]),size:(0,b.PN)(1)}})])});var I=i(33910);const _="#useCIMFallbackSymbology()",A={retainId:!1,ignoreDrivers:!1,hasLabelingContext:!0};function j(e,t,i,s){const r=F(e,{},{context:s,isLabelSymbol:!1});null!=r&&(0,l.sM)(i,r,t)}function Z(e,t,i,s){const l=F(e,{},{context:s,isLabelSymbol:!0});null!=l&&(t[i]=l)}function q(e){return(0,I.wk)(e)||e instanceof n.A}function F(e,t,i){if(null==e)return null;const{context:l,isLabelSymbol:g}=i,v=l?.origin,b=l?.messages;if("web-scene"===v&&!q(e)){const i=function(e,t=A){if(!e)return{symbol:null};const{retainId:i=A.retainId,ignoreDrivers:l=A.ignoreDrivers,hasLabelingContext:r=A.hasLabelingContext,retainCIM:g=A.retainCIM,cimFallbackEnabled:v=A.cimFallbackEnabled}=t;let b=null;if((0,I.wk)(e))b=e.clone();else if("web-style"===e.type)b=e.clone();else if("cim"===e.type){const i=e.data?.symbol?.type;switch(i){case"CIMPointSymbol":b=g?e.clone():c.A.fromCIMSymbol(e);break;case"CIMLineSymbol":v&&(b=M.clone(),t?.logWarning?.(_,"Unsupported CIM line symbology converted to fallback 3D line symbology"));break;case"CIMPolygonSymbol":v&&(b=z.clone(),t?.logWarning?.(_,"Unsupported CIM polygon symbology converted to fallback 3D polygon symbology"))}if(!b)return{error:new s.A("symbol-conversion:unsupported-cim-symbol",`CIM symbol of type '${i||"unknown"}' is unsupported in 3D`,{symbol:e})}}else if(e instanceof y.A)b=a.A.fromSimpleLineSymbol(e);else if(e instanceof m.A)b=c.A.fromSimpleMarkerSymbol(e);else if(e instanceof p.A)b=c.A.fromPictureMarkerSymbol(e);else if(e instanceof h.A)b=t.geometryType&&"mesh"===t.geometryType?u.A.fromSimpleFillSymbol(e):d.A.fromSimpleFillSymbol(e);else{if(!(e instanceof f.A))return{error:new s.A("symbol-conversion:unsupported-2d-symbol",`2D symbol of type '${e.type||e.declaredClass}' is unsupported in 3D`,{symbol:e})};b=r?o.A.fromTextSymbol(e):c.A.fromTextSymbol(e)}return i&&b&&"cim"!==b.type&&(b.id=e.id),!l||"cim"===b.type||b instanceof n.A||b.symbolLayers.forEach(e=>e.ignoreDrivers=!0),{symbol:b}}(e,{retainCIM:!0,hasLabelingContext:g});return null!=i.symbol?i.symbol.write(t,l):(b?.push(new s.A("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported in scenes. Use 3D symbology instead when working with WebScene and SceneView`,{symbol:e,context:l,error:i.error})),null)}return(0,r.TU)(l?.layer)&&(w=e,"polygon-3d"===w?.type||"line-3d"===w?.type)?(b?.push(new s.A("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported on layers of type '${l?.layer?.declaredClass}'.`,{symbol:e,context:l})),null):("web-map"===v||"portal-item"===v&&!(0,r.TU)(l?.layer))&&q(e)?(b?.push(new s.A("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported in web maps and portal items. Use 2D symbology and CIMSymbol instead when working with MapView`,{symbol:e,context:l})),null):e.write(t,l);var w}function k(e,t){return(0,I.Bu)(e,null,t)}},85594:(e,t,i)=>{i.d(t,{jg:()=>v,cF:()=>c,bo:()=>d,yA:()=>m,o5:()=>h});var s=i(43773),l=i(49186),r=i(44208),n=i(74887),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 m(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 r;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:${f} AND type:${g} AND typekeywords:"${e}"`});return t.queryItems(s,i)}).then(({results:t})=>{let s=null;const r=e.toLowerCase();if(t&&Array.isArray(t))for(const e of t){const t=e.typeKeywords?.some(e=>e.toLowerCase()===r);if(t&&e.type===g&&e.owner===f){s=e;break}}if(!s)throw new l.A("symbolstyleutils:style-not-found",`The style '${e}' could not be found`,{styleName:e});return s.load(i)})}(e,s,i).then(e=>(r=e,e.fetchData())).then(t=>({data:t,baseUrl:r.itemUrl??"",styleName:e}));return p.set(n,c),c}(e.styleName,t,i):Promise.reject(new l.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,r.A)("enable-feature:force-wosr"))return e.formatInfos?.find(e=>e.type===t)?.href}function m(e,t){const i={responseType:"json",query:{f:"json"},...t};return(0,s.A)((0,o.S8)(e),i)}const f="esri_en",g="Style",v="https://cdn.arcgis.com/sharing/rest/content/items/220936cc6ed342c9937abd8f180e7d1e/resources/styles/cim/{SymbolName}.json?f=json"},86162:(e,t,i)=>{i.d(t,{A:()=>I});var s,l=i(31635),r=i(66552),n=i(4718),o=i(53966),a=i(10107),u=i(79901),p=i(93223),c=i(36005),d=i(64108),h=i(43937),y=i(56507),m=i(30524),f=i(92438),g=i(63988),v=i(88542),b=i(49849),w=i(20061),V=i(43668),S=i(33910);const C="percent-of-total",x="field",M=new r.J({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:C,esriNormalizeByField:x}),z=(0,y.dp)(v.A);let I=s=class extends((0,g.h)(f.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 v.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 l=e.map(e=>e.write({},s));this._areClassBreaksConsecutive()&&l.forEach(e=>delete e.classMinValue),t[i]=l}castField(e){return null==e?e:"function"==typeof e?(o.A.getLogger(this).error(".field: field must be a string value"),null):(0,y.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&&x||i&&C||null,t&&i&&o.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==x&&e!==C||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}addClassBreakInfo(e,t,i){let s=null;s="number"==typeof e?new v.A({minValue:e,maxValue:t,symbol:(0,S.dp)(i)}):z((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,V.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,V.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)}),this.defaultSymbol&&e.push(this.defaultSymbol),e}getAttributeHash(){return this.visualVariables?.reduce((e,t)=>e+t.getAttributeHash(),"")??""}getMeshHash(){const e=JSON.stringify(this.backgroundFillSymbol),t=JSON.stringify(this.defaultSymbol),i=`${this.normalizationField}.${this.normalizationType}.${this.normalizationTotal}`;return`${e}.${t}.${this.classBreakInfos.reduce((e,t)=>e+t.getMeshHash(),"")}.${i}.${this.field}.${this.valueExpression}`}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,m.Dx)(e,t,null,this.valueExpression)];(0,m.rq)(e,t,this.field),(0,m.rq)(e,t,this.normalizationField),await Promise.all(i)}_getBreakIndexForExpression(e,t){const{viewingMode:i,scale:s,spatialReference:l,arcade:r,timeZone:n}=t??{},{valueExpression:o}=this;let a=this._compiledValueExpression.valueExpression===o?this._compiledValueExpression.compiledFunction:null;const u=r.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:l}),n));return this._getBreakIndexfromInfos(p)}_getBreakIndexForField(e){const t=this.field,i=e.attributes,s=this.normalizationType;let l=parseFloat(i[t]);if(s){const e=this.normalizationTotal,t=parseFloat(this.normalizationField?i[this.normalizationField]:void 0);if("log"===s)l=Math.log(l)*Math.LOG10E;else if(s!==C||null==e||isNaN(e)){if(s===x&&!isNaN(t)){if(isNaN(l)||isNaN(t))return-1;l/=t}}else l=l/e*100}return this._getBreakIndexfromInfos(l)}_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,l.Cg)([(0,a.MZ)(b.As)],I.prototype,"backgroundFillSymbol",void 0),(0,l.Cg)([(0,a.MZ)({type:[v.A],json:{write:{isRequired:!0}}})],I.prototype,"classBreakInfos",void 0),(0,l.Cg)([(0,c.w)("classBreakInfos")],I.prototype,"readClassBreakInfos",null),(0,l.Cg)([(0,h.K)("classBreakInfos")],I.prototype,"writeClassBreakInfos",null),(0,l.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],I.prototype,"defaultLabel",void 0),(0,l.Cg)([(0,a.MZ)(b.z4)],I.prototype,"defaultSymbol",void 0),(0,l.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],I.prototype,"field",void 0),(0,l.Cg)([(0,u.w)("field")],I.prototype,"castField",null),(0,l.Cg)([(0,a.MZ)({type:Boolean})],I.prototype,"isMaxInclusive",void 0),(0,l.Cg)([(0,a.MZ)({type:w.A,json:{write:!0}})],I.prototype,"legendOptions",void 0),(0,l.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}}}}})],I.prototype,"minValue",null),(0,l.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],I.prototype,"normalizationField",void 0),(0,l.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],I.prototype,"normalizationTotal",void 0),(0,l.Cg)([(0,a.MZ)({type:M.apiValues,value:null,json:{type:M.jsonValues,read:M.read,write:M.write}})],I.prototype,"normalizationType",null),(0,l.Cg)([(0,p.e)({classBreaks:"class-breaks"})],I.prototype,"type",void 0),(0,l.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],I.prototype,"valueExpression",void 0),(0,l.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],I.prototype,"valueExpressionTitle",void 0),I=s=(0,l.Cg)([(0,d.$)("esri.renderers.ClassBreaksRenderer")],I)},88542:(e,t,i)=>{i.d(t,{A:()=>u});var s,l=i(31635),r=i(25482),n=i(10107),o=(i(44208),i(53966),i(87811),i(64108)),a=i(49849);let u=s=class extends r.o{constructor(e){super(e),this.description=null,this.label=null,this.minValue=null,this.maxValue=0,this.symbol=null}clone(){return new s({description:this.description,label:this.label,minValue:this.minValue,maxValue:this.maxValue,symbol:this.symbol?.clone()??null})}getMeshHash(){const e=JSON.stringify(this.symbol);return`${this.minValue}.${this.maxValue}.${e}`}};(0,l.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,l.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,l.Cg)([(0,n.MZ)({type:Number,json:{read:{source:"classMinValue"},write:{target:"classMinValue"}}})],u.prototype,"minValue",void 0),(0,l.Cg)([(0,n.MZ)({type:Number,json:{read:{source:"classMaxValue"},write:{target:"classMaxValue"}}})],u.prototype,"maxValue",void 0),(0,l.Cg)([(0,n.MZ)(a.Wp)],u.prototype,"symbol",void 0),u=s=(0,l.Cg)([(0,o.$)("esri.renderers.support.ClassBreakInfo")],u)},92438:(e,t,i)=>{i.d(t,{A:()=>p});var s=i(31635),l=i(66552),r=i(25482),n=i(10107),o=(i(44208),i(53966),i(87811),i(64108)),a=i(30943);const u=new l.J({simple:"simple",uniqueValue:"unique-value",classBreaks:"class-breaks",heatmap:"heatmap",dotDensity:"dot-density",dictionary:"dictionary",pieChart:"pie-chart"},{ignoreUnknown:!0});let p=class extends r.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}getAttributeHash(){return JSON.stringify(this)}getMeshHash(){return JSON.stringify(this)}};(0,s.Cg)([(0,n.MZ)({type:a.A,json:{write:!0}})],p.prototype,"authoringInfo",void 0),(0,s.Cg)([(0,n.MZ)({type:u.apiValues,readOnly:!0,json:{type:u.jsonValues,read:!1,write:{writer:u.write,ignoreOrigin:!0,isRequired:!0}}})],p.prototype,"type",void 0),p=(0,s.Cg)([(0,o.$)("esri.renderers.Renderer")],p)},93618:(e,t,i)=>{i.d(t,{A:()=>R});var s=i(31635),l=i(49186),r=i(4718),n=i(53966),o=i(93637),a=i(36708),u=i(10107),p=i(79901),c=i(93223),d=i(36005),h=i(64108),y=i(43937),m=i(6797),f=i(56507),g=i(30524),v=i(20655),b=i(92438),w=i(63988),V=i(49849),S=i(20061),C=i(69540),x=i(25482);i(44208),i(87811);let M=class extends((0,C.OU)(x.o)){constructor(e){super(e),this.value=null,this.value2=null,this.value3=null}};(0,s.Cg)([(0,u.MZ)(V.Ug)],M.prototype,"value",void 0),(0,s.Cg)([(0,u.MZ)(V.Ug)],M.prototype,"value2",void 0),(0,s.Cg)([(0,u.MZ)(V.Ug)],M.prototype,"value3",void 0),M=(0,s.Cg)([(0,h.$)("esri.renderers.support.UniqueValue")],M);var z=i(4576);let I=class extends((0,C.OU)(x.o)){constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.values=null}castValues(e){if(null==e)return null;const t=typeof(e=Array.isArray(e)?e:[e])[0];return"string"===t||"number"===t?e.map(e=>new M({value:e})):"object"===t?e[0]instanceof M?e:e.map(e=>new M(e)):null}};(0,s.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],I.prototype,"description",void 0),(0,s.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],I.prototype,"label",void 0),(0,s.Cg)([(0,u.MZ)(V.z4)],I.prototype,"symbol",void 0),(0,s.Cg)([(0,u.MZ)({type:[M],json:{type:[[String]],read:{reader:e=>e?e.map(e=>new M({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(z.Ru).map(e=>e.toString());i.push(e)}t.values=i}}}})],I.prototype,"values",void 0),(0,s.Cg)([(0,p.w)("values")],I.prototype,"castValues",null),I=(0,s.Cg)([(0,h.$)("esri.renderers.support.UniqueValueClass")],I);let _=class extends((0,C.OU)(x.o)){constructor(e){super(e),this.heading=null,this.classes=null}};(0,s.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],_.prototype,"heading",void 0),(0,s.Cg)([(0,u.MZ)({type:[I],json:{write:{isRequired:!0}}})],_.prototype,"classes",void 0),_=(0,s.Cg)([(0,h.$)("esri.renderers.support.UniqueValueGroup")],_);var A,j=i(94833),Z=i(43668),q=i(97159),F=i(37757),k=i(85594),E=i(33910);const U="uvInfos-watcher",T="uvGroups-watcher",O=(0,f.dp)(j.A);function D(e){return null!=e&&""!==e&&("string"!=typeof e||""!==e.trim()&&"<null>"!==e.toLowerCase())||(e=null),e+""}let R=A=class extends((0,w.h)(b.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 l=0;l<t.length;l++){const r=e.find(e=>e.value===t[l].value);r?(0,m.Ui)(r,t[l])?(s.changed.push({type:"complete",oldValue:r,newValue:t[l]}),i=!0):s.unchanged.push({oldValue:r,newValue:t[l]}):(s.added.push(t[l]),i=!0)}for(let l=0;l<e.length;l++)t.find(t=>t.value===e[l].value)||(s.removed.push(e[l]),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,f.GX)(e)}writeField(e,t,i,s){"string"==typeof e?t[i]=e:s?.messages?s.messages.push(new l.A("property:unsupported","UniqueValueRenderer.field set to a function cannot be written to JSON")):n.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||v.A.getDefault()}readStyleOrigin(e,t,i){if(t.styleName)return Object.freeze({styleName:t.styleName});if(t.styleUrl){const e=(0,q.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,q.t)(e.styleUrl,s))}set uniqueValueGroups(e){this.styleOrigin?n.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?n.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 n.A.getLogger(this).error("#addUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");let i;i="object"==typeof e?O(e):new j.A({value:e,symbol:(0,E.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 n.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,Z.l)()}),this._getUniqueValueInfo(e,i)}getSymbol(e,t){if(this.valueExpression&&null==t?.arcade)return void n.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,Z.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);else for(const t of this.uniqueValueGroups??[])for(const i of t.classes??[])i.symbol&&e.push(i.symbol);return this.defaultSymbol&&e.push(this.defaultSymbol),e}getAttributeHash(){return this.visualVariables?.reduce((e,t)=>e+t.getAttributeHash(),"")??""}getMeshHash(){const e=JSON.stringify(this.backgroundFillSymbol),t=JSON.stringify(this.defaultSymbol),i=this.uniqueValueInfos?.reduce((e,t)=>e+t.getMeshHash(),"");return`${e}.${t}.${i}.${this.field}.${this.field2}.${this.field3}.${this.fieldDelimiter}.${this.valueExpression}`}clone(){const e=new A({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,g.Dx)(e,t,null,this.valueExpression)];(0,g.rq)(e,t,this.field),(0,g.rq)(e,t,this.field2),(0,g.rq)(e,t,this.field3),await Promise.all(i)}populateFromStyle(){return(0,k.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 F.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 l=new j.A({value:i.name,symbol:s});t.push(l),this._valueInfoMap[D(i.name)]=l}),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(U);const{uniqueValueInfos:e}=this;if(e){const t=[];for(const i of e)t.push((0,a.wB)(()=>({symbol:i.symbol,value:i.value,label:i.label,description:i.description}),(e,t)=>{e!==t&&(this._updateGroupsFromInfos(),this._isInfosSource=!0)},{sync:!0}));this.addHandles(t,U)}}_watchUniqueValueGroups(){this.removeHandles(T);const{uniqueValueGroups:e}=this;if(e){const t=[];for(const i of e){t.push((0,a.wB)(()=>({classes:i.classes}),(e,t)=>{e!==t&&(this._updateInfosFromGroups(),this._isInfosSource=!1)},{sync:!0}));for(const e of i.classes??[])t.push((0,a.wB)(()=>({symbol:e.symbol,values:e.values,label:e.label,description:e.description}),(e,t)=>{e!==t&&(this._updateInfosFromGroups(),this._isInfosSource=!1)},{sync:!0}))}this.addHandles(t,T)}}_updateInfosFromGroups(){if(!this.uniqueValueGroups)return this._set("uniqueValueInfos",null),this._updateValueInfoMap(),void this._watchUniqueValueInfos();const e=[],{field:t,field2:i,field3:s,fieldDelimiter:l,uniqueValueGroups:r,valueExpression:n}=this;if(!t&&!n)return this._set("uniqueValueInfos",e),this._updateValueInfoMap(),void this._watchUniqueValueInfos();const o=!(!t||!i);for(const t of r)for(const r of t.classes??[]){const{symbol:t,label:n,values:a,description:u}=r;for(const r of a??[]){const{value:a,value2:p,value3:c}=r,d=[a];i&&d.push(p),s&&d.push(c);const h=o?d.join(l||""):d[0]??void 0;e.push(new j.A({symbol:t,label:n,value:h,description:u}))}}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:l,uniqueValueInfos:r}=this;if(!t&&!s||!r.length)return this._set("uniqueValueGroups",[]),void this._watchUniqueValueGroups();const n=!(!t||!i),o=r.map(e=>{const{symbol:t,label:i,value:s,description:r}=e,[o,a,u]=n?s?.toString()?.split(l||"")||[]:[s];return new I({symbol:t,label:i,description:r,values:[new M({value:o,value2:a,value3:u})]})}),a=[new _({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:l,arcade:r,timeZone:n}=t??{};let o=this._cache.compiledFunc;const a=r.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:l}),n));return this._valueInfoMap[D(u)]}_getUnqiueValueInfoForFields(e){const t=this.field,i=e.attributes;let s;if(this.field2){const e=this.field2,l=this.field3,r=[];t&&r.push(i[t]),e&&r.push(i[e]),l&&r.push(i[l]),s=r.join(this.fieldDelimiter||"")}else t&&(s=i[t]);return this._valueInfoMap[D(s)]}static fromPortalStyle(e,t){const i=new A(t?.properties);i._set("styleOrigin",Object.freeze({styleName:e})),i._set("portal",t?.portal||v.A.getDefault());const s=i.populateFromStyle();return s.catch(t=>{n.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 A(t?.properties);i._set("styleOrigin",Object.freeze({styleUrl:e}));const s=i.populateFromStyle();return s.catch(t=>{n.A.getLogger(this.prototype).error(`#fromStyleUrl('${e}'[, ...])`,"Failed to create unique value renderer from style URL",t)}),s}};(0,s.Cg)([(0,u.MZ)({readOnly:!0})],R.prototype,"_cache",null),(0,s.Cg)([(0,c.e)({uniqueValue:"unique-value"})],R.prototype,"type",void 0),(0,s.Cg)([(0,u.MZ)(V.As)],R.prototype,"backgroundFillSymbol",void 0),(0,s.Cg)([(0,u.MZ)({value:null,json:{type:String,read:{source:"field1"},write:{target:"field1"}}})],R.prototype,"field",null),(0,s.Cg)([(0,p.w)("field")],R.prototype,"castField",null),(0,s.Cg)([(0,y.K)("field")],R.prototype,"writeField",null),(0,s.Cg)([(0,u.MZ)({type:String,value:null,json:{write:!0}})],R.prototype,"field2",null),(0,s.Cg)([(0,u.MZ)({type:String,value:null,json:{write:!0}})],R.prototype,"field3",null),(0,s.Cg)([(0,u.MZ)({type:Boolean,json:{name:"drawInClassOrder",default:!1,write:!0,origins:{"web-scene":{write:!1}}}})],R.prototype,"orderByClassesEnabled",void 0),(0,s.Cg)([(0,u.MZ)({type:String,value:null,json:{write:!0}})],R.prototype,"valueExpression",null),(0,s.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],R.prototype,"valueExpressionTitle",void 0),(0,s.Cg)([(0,u.MZ)({type:S.A,json:{write:!0}})],R.prototype,"legendOptions",void 0),(0,s.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],R.prototype,"defaultLabel",void 0),(0,s.Cg)([(0,u.MZ)((0,o.$N)({...V.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,u.MZ)({type:String,value:null,json:{write:!0}})],R.prototype,"fieldDelimiter",null),(0,s.Cg)([(0,u.MZ)({type:v.A,readOnly:!0})],R.prototype,"portal",void 0),(0,s.Cg)([(0,d.w)("portal",["styleName"])],R.prototype,"readPortal",null),(0,s.Cg)([(0,u.MZ)({readOnly:!0,json:{write:{enabled:!1,overridePolicy:()=>({enabled:!0})}}})],R.prototype,"styleOrigin",void 0),(0,s.Cg)([(0,d.w)("styleOrigin",["styleName","styleUrl"])],R.prototype,"readStyleOrigin",null),(0,s.Cg)([(0,y.K)("styleOrigin",{styleName:{type:String},styleUrl:{type:String}})],R.prototype,"writeStyleOrigin",null),(0,s.Cg)([(0,u.MZ)({type:[_],json:{read:{source:["uniqueValueGroups","uniqueValueInfos"],reader:(e,t,i)=>(t.uniqueValueGroups||function(e){const{field1:t,field2:i,field3:s,fieldDelimiter:l,uniqueValueInfos:r,valueExpression:n}=e,o=!(!t||!i);return[{classes:(r??[]).map(e=>{const{symbol:r,label:a,value:u,description:p}=e,[c,d,h]=o?u?.toString()?.split(l||"")||[]:[u],y=[];return(t||n)&&y.push(c),i&&y.push(d),s&&y.push(h),{symbol:r,label:a,values:[y],description:p}})}]}(t)).map(e=>_.fromJSON(e,i))},write:{overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0}}}}})],R.prototype,"uniqueValueGroups",null),(0,s.Cg)([(0,u.MZ)({type:[j.A],json:{read:!1,write:{isRequired:!0,overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0,isRequired:!0}}}}})],R.prototype,"uniqueValueInfos",null),R=A=(0,s.Cg)([(0,h.$)("esri.renderers.UniqueValueRenderer")],R)},94833:(e,t,i)=>{i.d(t,{A:()=>u});var s,l=i(31635),r=i(25482),n=i(10107),o=(i(44208),i(53966),i(87811),i(64108)),a=i(49849);let u=s=class extends r.o{constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.value=null}clone(){return new s({value:this.value,description:this.description,label:this.label,symbol:this.symbol?this.symbol.clone():null})}getMeshHash(){const e=JSON.stringify(this.symbol?.toJSON());return`${this.value}.${e}`}};(0,l.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,l.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,l.Cg)([(0,n.MZ)(a.Wp)],u.prototype,"symbol",void 0),(0,l.Cg)([(0,n.MZ)(a.Ug)],u.prototype,"value",void 0),u=s=(0,l.Cg)([(0,o.$)("esri.renderers.support.UniqueValueInfo")],u)},95349:(e,t,i)=>{i.d(t,{g:()=>n,r:()=>o});var s=i(2485),l=i(72606),r=i(1626);const n={key:"type",base:l.A,typeMap:{algorithmic:s.A,multipart:r.A}};function o(e){return e?.type?"algorithmic"===e.type?s.A.fromJSON(e):"multipart"===e.type?r.A.fromJSON(e):null:null}},98205:(e,t,i)=>{function s(e){return e&&"esri.renderers.visualVariables.SizeVariable"===e.declaredClass}function l(e){return null!=e&&!isNaN(e)&&isFinite(e)}function r(e){return e.valueExpression?"expression":e.field&&"string"==typeof e.field?"field":"unknown"}function n(e,t){const i=t||r(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:()=>r,gf:()=>l,of:()=>s})}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4903],{1626:(e,t,i)=>{i.d(t,{A:()=>d});var s,l=i(31635),r=i(4718),n=i(10107),o=(i(44208),i(53966),i(36005)),a=i(64108),u=i(43937),p=i(2485),c=i(72606);let d=s=class extends c.A{constructor(e){super(e),this.colorRamps=null,this.type="multipart",this.weights=void 0}writeColorRamps(e,t,i,s){const l=e?.map(e=>e.toJSON(s)),{weights:r}=this;if(l&&r?.length&&l.length===r?.length){const e=100/r.reduce((e,t)=>e+t);let t=0;l.forEach((i,s)=>{i.start=t,t+=r[s]*e,i.stop=t})}t.colorRamps=l}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,r.o8)(this.colorRamps)})}};(0,l.Cg)([(0,n.MZ)({type:[p.A],json:{write:{isRequired:!0}}})],d.prototype,"colorRamps",void 0),(0,l.Cg)([(0,u.K)("colorRamps")],d.prototype,"writeColorRamps",null),(0,l.Cg)([(0,n.MZ)({type:["multipart"],json:{write:{isRequired:!0}}})],d.prototype,"type",void 0),(0,l.Cg)([(0,n.MZ)({type:[Number]})],d.prototype,"weights",void 0),(0,l.Cg)([(0,o.w)("weights",["colorRamps"])],d.prototype,"readWeights",null),d=s=(0,l.Cg)([(0,a.$)("esri.rest.support.MultipartColorRamp")],d)},2024:(e,t,i)=>{i.d(t,{A:()=>u});var s,l=i(31635),r=i(10107),n=(i(44208),i(53966),i(87811),i(64108)),o=i(2795),a=i(72500);let u=s=class extends o.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()})}getAttributeHash(){return`${super.getAttributeHash()}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map(e=>e.value||0)}};(0,l.Cg)([(0,r.MZ)({readOnly:!0})],u.prototype,"cache",null),(0,l.Cg)([(0,r.MZ)({type:["color"],json:{type:["colorInfo"]}})],u.prototype,"type",void 0),(0,l.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],u.prototype,"normalizationField",void 0),(0,l.Cg)([(0,r.MZ)({type:[a.A],json:{write:!0}})],u.prototype,"stops",null),u=s=(0,l.Cg)([(0,n.$)("esri.renderers.visualVariables.ColorVariable")],u)},2485:(e,t,i)=>{i.d(t,{A:()=>d});var s,l=i(31635),r=i(68197),n=i(4718),o=i(10107),a=i(56507),u=i(93223),p=i(64108),c=i(72606);let d=s=class extends c.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,l.Cg)([(0,u.e)({esriCIELabAlgorithm:"cie-lab",esriHSVAlgorithm:"hsv",esriLabLChAlgorithm:"lab-lch"})],d.prototype,"algorithm",void 0),(0,l.Cg)([(0,o.MZ)({type:r.A,json:{type:[a.jz],write:{isRequired:!0}}})],d.prototype,"fromColor",void 0),(0,l.Cg)([(0,o.MZ)({type:r.A,json:{type:[a.jz],write:{isRequired:!0}}})],d.prototype,"toColor",void 0),(0,l.Cg)([(0,o.MZ)({type:["algorithmic"],json:{write:{isRequired:!0}}})],d.prototype,"type",void 0),d=s=(0,l.Cg)([(0,p.$)("esri.rest.support.AlgorithmicColorRamp")],d)},2795:(e,t,i)=>{i.d(t,{A:()=>h});var s=i(31635),l=i(66552),r=i(25482),n=i(53966),o=i(10107),a=i(79901),u=i(64108),p=i(56507),c=i(41078);const d=new l.J({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"});let h=class extends r.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,p.GX)(e)}get arcadeRequired(){return!!this.valueExpression}clone(){}getAttributeHash(){return`${this.type}-${this.field}-${this.valueExpression}`}};(0,s.Cg)([(0,o.MZ)()],h.prototype,"index",void 0),(0,s.Cg)([(0,o.MZ)({type:d.apiValues,readOnly:!0,json:{read:d.read,write:{writer:d.write,isRequired:!0}}})],h.prototype,"type",void 0),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],h.prototype,"field",void 0),(0,s.Cg)([(0,a.w)("field")],h.prototype,"castField",null),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],h.prototype,"valueExpression",void 0),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],h.prototype,"valueExpressionTitle",void 0),(0,s.Cg)([(0,o.MZ)({readOnly:!0})],h.prototype,"arcadeRequired",null),(0,s.Cg)([(0,o.MZ)({type:c.A,json:{write:!0}})],h.prototype,"legendOptions",void 0),h=(0,s.Cg)([(0,u.$)("esri.renderers.visualVariables.VisualVariable")],h)},12330:(e,t,i)=>{i.d(t,{A:()=>u});var s,l=i(31635),r=i(25482),n=i(90629),o=i(10107),a=(i(44208),i(53966),i(87811),i(64108));let u=s=class extends r.o{constructor(e){super(e),this.label=null,this.size=null,this.value=null,this.useMinValue=null,this.useMaxValue=null}clone(){return new s({label:this.label,size:this.size,value:this.value,useMaxValue:this.useMaxValue,useMinValue:this.useMinValue})}};(0,l.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,l.Cg)([(0,o.MZ)({type:Number,cast:n.cr,json:{write:{isRequired:!0}}})],u.prototype,"size",void 0),(0,l.Cg)([(0,o.MZ)({type:Number,json:{write:{isRequired:!0}}})],u.prototype,"value",void 0),(0,l.Cg)([(0,o.MZ)({type:Boolean,json:{write:!1}})],u.prototype,"useMinValue",void 0),(0,l.Cg)([(0,o.MZ)({type:Boolean,json:{write:!1}})],u.prototype,"useMaxValue",void 0),u=s=(0,l.Cg)([(0,a.$)("esri.renderers.visualVariables.support.SizeStop")],u)},20061:(e,t,i)=>{i.d(t,{A:()=>y});var s,l=i(31635),r=i(69540),n=i(66552),o=i(25482),a=i(10107),u=i(56507),p=(i(44208),i(87811),i(93223)),c=i(64108);const d=(0,n.O)()({ascendingValues:"ascending-values",descendingValues:"descending-values"});let h=s=class extends((0,r.OU)(o.o)){static from(e){return(0,u.PZ)(s,e)}constructor(e){super(e),this.title=null,this.order=null}};(0,l.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],h.prototype,"title",void 0),(0,l.Cg)([(0,p.e)(d)],h.prototype,"order",void 0),h=s=(0,l.Cg)([(0,c.$)("esri.renderers.support.RendererLegendOptions")],h);const y=h},23461:(e,t,i)=>{i.d(t,{A:()=>a});var s,l=i(31635),r=i(10107),n=(i(44208),i(53966),i(87811),i(64108)),o=i(2795);let a=s=class extends o.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,l.Cg)([(0,r.MZ)({readOnly:!0})],a.prototype,"cache",null),(0,l.Cg)([(0,r.MZ)({type:["heading","tilt","roll"],json:{origins:{"web-scene":{default:"heading",write:!0}}}})],a.prototype,"axis",void 0),(0,l.Cg)([(0,r.MZ)({type:["rotation"],json:{type:["rotationInfo"]}})],a.prototype,"type",void 0),(0,l.Cg)([(0,r.MZ)({type:["geographic","arithmetic"],json:{write:!0,origins:{"web-document":{write:!0,default:"geographic"}}}})],a.prototype,"rotationType",void 0),a=s=(0,l.Cg)([(0,n.$)("esri.renderers.visualVariables.RotationVariable")],a)},29266:(e,t,i)=>{i.d(t,{RV:()=>d,UT:()=>h,Yz:()=>g}),i(68197);var s=i(52106),l=i(21818),r=i(53966),n=i(31756),o=i(98205);const a=()=>r.A.getLogger("esri.renderers.visualVariables.support.visualVariableUtils"),u=e=>a().warn(`The visualVariable should be an instance of esri.renderers.visualVariables.${e}`),p=()=>a().error("Use of arcade expressions requires an arcade context"),c=(new s.A,Math.PI),d=/^\s*(return\s+)?\$view\.scale\s*(;)?\s*$/i;function h(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 u("RotationVariable");const l=s.axis||"heading",r="heading"===l&&"arithmetic"===s.rotationType?90:0,n="heading"===l&&"arithmetic"===s.rotationType?-1:1,o="number"==typeof t?null:t,a=o?.attributes,c=s.field,{hasExpression:d}=s.cache;let h=s.cache.compiledFunc,y=null;if(!c&&!d)return y;if(d){if(null==i?.arcade)return void p();const e={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},t=i.arcade.arcadeUtils,l=t.getViewInfo(e),r=t.createExecContext(o,l,i.timeZone);if(!h){const e=t.createSyntaxTree(s.valueExpression);h=t.createFunction(e),s.cache.compiledFunc=h}y=t.executeFunction(h,r)}else a&&(y=a[c]);return y="number"!=typeof y||isNaN(y)?null:r+n*y,y}function y(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 u("SizeVariable");const l=function(e,t,i,s,l){switch(t.transformationType){case"additive":return function(e,t,i,s){const l=m(t.minSize,i,s)||t.minDataValue;return null==e&&null==l?null:(e??0)+(l??0)}(e,t,i,s);case"constant":return function(e,t,i){const s=e.stops;let l=s?.length&&s[0].size;return null==l&&(l=e.minSize),m(l,t,i)}(t,i,s);case"clamped-linear":return function(e,t,i,s){const l=m(t.minSize,i,s);if(null==e)return l;const{minDataValue:r,maxDataValue:n}=t;if(null==r||null==n)return null;const o=(e-r)/(n-r),a=m(t.maxSize,i,s),u=null!=s?s.shape:void 0;if(e<=r)return l;if(e>=n)return a;if(null==l||null==a)return null;if("area"===t.scaleBy&&u){const e="circle"===u,t=e?c*(l/2)**2:l*l,i=t+o*((e?c*(a/2)**2:a*a)-t);return e?2*Math.sqrt(i/c):Math.sqrt(i)}return l+o*(a-l)}(e,t,i,s);case"proportional":return function(e,t,i,s){const l=m(t.minSize,i,s);if(null==e||null==l)return l;const r=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"===r?2*Math.sqrt(o*(l/2)**2):"square"===r||"diamond"===r||"image"===r?Math.sqrt(o*l**2):o*l,f(u,l,a)}(e,t,i,s);case"stops":return function(e,t,i,s,l){if(null==e)return null;const[r,n,o]=function(e,t){if(!t)return;let i=0,s=t.length-1;return t.some((t,l)=>e<t?(s=l,!0):(i=l,!1)),[i,s,(e-t[i])/(t[s]-t[i])]}(e,l);if(r===n)return m(t.stops?.[r].size,i,s);{const e=m(t.stops?.[r].size,i,s),l=m(t.stops?.[n].size,i,s);return null==e||null==l?null:e+(l-e)*o}}(e,t,i,s,l);case"real-world-size":return function(e,t,i,s){const l=(s?.resolution??1)*n.j[t.valueUnit],r=m(t.minSize,i,s),o=m(t.maxSize,i,s),{valueRepresentation:a}=t;if(null==e)return r;let u=null;return u="area"===a?2*Math.sqrt(e/c)/l:"radius"===a||"distance"===a?2*e/l:e/l,f(u,r,o)}(e,t,i,s);case"identity":return e;case"unknown":return null}}(function(e,t,i){const s="number"==typeof t,l=s?null:t,r=l?.attributes;let n=s?t:null;const{isScaleDriven:a}=e.cache;let u=e.cache.compiledFunc;if(a){const t=null!=i?i.scale:void 0,s=null!=i?i.view:void 0;n=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 p();const t={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},s=i.arcade.arcadeUtils,r=s.getViewInfo(t),o=s.createExecContext(l,r,i.timeZone);if(!u){const t=s.createSyntaxTree(e.valueExpression);u=s.createFunction(t),e.cache.compiledFunc=u}n=s.executeFunction(u,o);break}case"field":r&&(n=r[e.field]);break;case"unknown":n=null}if(!(0,o.gf)(n))return null;if(s||!e.normalizationField)return n;const c=r?parseFloat(r[e.normalizationField]):null;return(0,o.gf)(c)&&0!==c?n/c:null}(s,t,i),s,t,i,s.cache.ipData);return null==l||isNaN(l)?void 0:l}function m(e,t,i){return null==e?null:(0,o.of)(e)?y(e,t,i):(0,o.gf)(e)?e:null}function f(e,t,i){return(0,o.gf)(i)&&e>i?i:(0,o.gf)(t)&&e<t?t:e}function g(e,t,i){const s=["proportional","proportional","proportional"];for(const r of e){const e=r.useSymbolValue?"symbol-value":y(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:(0,l.Xb)(r.axis)}}return s}},30943:(e,t,i)=>{i.d(t,{A:()=>F});var s,l=i(31635),r=i(66552),n=i(25482),o=i(4718),a=i(10107),u=i(56507),p=i(36005),c=i(64108);i(44208),i(53966),i(87811);let d=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})}};var h;(0,l.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"minValue",void 0),(0,l.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"maxValue",void 0),d=s=(0,l.Cg)([(0,c.$)("esri.renderers.support.AuthoringInfoClassBreakInfo")],d);let y=h=class extends n.o{constructor(e){super(e),this.field="",this.normalizationField="",this.label="",this.classBreakInfos=new Array}clone(){return new h({field:this.field,normalizationField:this.normalizationField,label:this.label,classBreakInfos:(0,o.o8)(this.classBreakInfos)})}};(0,l.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"field",void 0),(0,l.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"normalizationField",void 0),(0,l.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"label",void 0),(0,l.Cg)([(0,a.MZ)({type:[d],json:{write:!0}})],y.prototype,"classBreakInfos",void 0),y=h=(0,l.Cg)([(0,c.$)("esri.renderers.support.AuthoringInfoFieldInfo")],y);var m,f=i(79901);let g=m=class extends n.o{constructor(e){super(e),this.label=null,this.size=null,this.value=null}clone(){return new m({label:this.label,value:this.value,size:this.size})}};(0,l.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],g.prototype,"label",void 0),(0,l.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"size",void 0),(0,l.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"value",void 0),g=m=(0,l.Cg)([(0,c.$)("esri.renderers.support.AuthoringInfoSizeStop")],g);const v=g;var b;const w=new r.J({percentTotal:"percent-of-total",ratio:"ratio",percent:"percent"}),V=new r.J({sizeInfo:"size",colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation"}),S={key:e=>"number"==typeof e?"number":"string",typeMap:{number:Number,string:String},base:null},C=["high-to-low","above-and-below","centered-on","extremes"],x=[...new Set(["high-to-low","above-and-below","centered-on","extremes","above","below","high-to-low","above-and-below","above","below","reference-size","spike"])],M=["seconds","minutes","hours","days","months","years"];let z=b=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 b({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,l.Cg)([(0,a.MZ)({types:S,json:{write:!0}})],z.prototype,"endTime",void 0),(0,l.Cg)([(0,f.w)("endTime")],z.prototype,"castEndTime",null),(0,l.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],z.prototype,"field",void 0),(0,l.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],z.prototype,"maxSliderValue",void 0),(0,l.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],z.prototype,"minSliderValue",void 0),(0,l.Cg)([(0,a.MZ)({type:String,json:{origins:{"web-scene":{write:!1}},write:!0}})],z.prototype,"normalizationField",null),(0,l.Cg)([(0,a.MZ)({type:Number,value:null,json:{origins:{"web-scene":{write:!1}},write:!0}})],z.prototype,"referenceSizeScale",null),(0,l.Cg)([(0,a.MZ)({type:["circle","diamond","hexagon-flat","hexagon-pointy","square"],value:null,json:{origins:{"web-scene":{write:!1}},write:!0}})],z.prototype,"referenceSizeSymbolStyle",null),(0,l.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}})],z.prototype,"spikeSymbolStyle",null),(0,l.Cg)([(0,a.MZ)({types:S,json:{write:!0}})],z.prototype,"startTime",void 0),(0,l.Cg)([(0,f.w)("startTime")],z.prototype,"castStartTime",null),(0,l.Cg)([(0,a.MZ)({type:[v],json:{origins:{"web-scene":{write:!1}},write:!0}})],z.prototype,"sizeStops",null),(0,l.Cg)([(0,a.MZ)({type:w.apiValues,value:null,json:{type:w.jsonValues,read:w.read,write:w.write}})],z.prototype,"style",null),(0,l.Cg)([(0,a.MZ)({type:x,value:null,json:{type:x,origins:{"web-scene":{type:C,write:{writer:(e,t)=>{C.includes(e)&&(t.theme=e)}}}},write:!0}})],z.prototype,"theme",null),(0,l.Cg)([(0,a.MZ)({type:V.apiValues,json:{type:V.jsonValues,read:V.read,write:V.write}})],z.prototype,"type",void 0),(0,l.Cg)([(0,a.MZ)({type:M,json:{type:M,write:!0}})],z.prototype,"units",void 0),z=b=(0,l.Cg)([(0,c.$)("esri.renderers.support.AuthoringInfoVisualVariable")],z);const I=z;var _,A=i(95349);const j=new r.J({esriClassifyDefinedInterval:"defined-interval",esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation"}),Z=new r.J({classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density",flow:"flow"}),q=["inches","feet","yards","miles","nautical-miles","millimeters","centimeters","decimeters","meters","kilometers"];let F=_=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 _({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,l.Cg)([(0,a.MZ)({type:j.apiValues,value:null,json:{type:j.jsonValues,read:j.read,write:j.write,origins:{"web-document":{default:"manual",type:j.jsonValues,read:j.read,write:j.write}}}})],F.prototype,"classificationMethod",null),(0,l.Cg)([(0,a.MZ)({types:A.g,json:{write:!0}})],F.prototype,"colorRamp",void 0),(0,l.Cg)([(0,p.w)("colorRamp")],F.prototype,"readColorRamp",null),(0,l.Cg)([(0,a.MZ)({json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],F.prototype,"fadeRatio",void 0),(0,l.Cg)([(0,a.MZ)({type:[String],value:null,json:{write:!0}})],F.prototype,"fields",null),(0,l.Cg)([(0,a.MZ)({type:y,value:null,json:{write:!0}})],F.prototype,"field1",null),(0,l.Cg)([(0,a.MZ)({type:y,value:null,json:{write:!0}})],F.prototype,"field2",null),(0,l.Cg)([(0,a.MZ)({type:["flow-line","wave-front"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],F.prototype,"flowTheme",null),(0,l.Cg)([(0,a.MZ)({type:["HH","HL","LH","LL"],value:null,json:{write:!0}})],F.prototype,"focus",null),(0,l.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1}}}})],F.prototype,"isAutoGenerated",void 0),(0,l.Cg)([(0,a.MZ)({type:Number,value:null,json:{type:u.jz,write:!0}})],F.prototype,"numClasses",null),(0,l.Cg)([(0,a.MZ)({type:q,json:{type:q,read:!1,write:!1,origins:{"web-scene":{read:!0,write:!0}}}})],F.prototype,"lengthUnit",void 0),(0,l.Cg)([(0,a.MZ)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],F.prototype,"maxSliderValue",void 0),(0,l.Cg)([(0,a.MZ)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],F.prototype,"minSliderValue",void 0),(0,l.Cg)([(0,a.MZ)({type:Object,value:null,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],F.prototype,"statistics",null),(0,l.Cg)([(0,a.MZ)({type:[.25,.33,.5,1],value:null,json:{type:[.25,.33,.5,1],write:!0}})],F.prototype,"standardDeviationInterval",null),(0,l.Cg)([(0,a.MZ)({type:Z.apiValues,value:null,json:{type:Z.jsonValues,read:Z.read,write:Z.write}})],F.prototype,"type",null),(0,l.Cg)([(0,a.MZ)({type:[I],json:{write:!0}})],F.prototype,"visualVariables",void 0),(0,l.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}}}})],F.prototype,"univariateSymbolStyle",null),(0,l.Cg)([(0,a.MZ)({type:["high-to-low","above-and-below","above","below"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],F.prototype,"univariateTheme",null),F=_=(0,l.Cg)([(0,c.$)("esri.renderers.support.AuthoringInfo")],F)},41078:(e,t,i)=>{i.d(t,{A:()=>u});var s=i(31635),l=i(69540),r=i(25482),n=i(10107),o=(i(44208),i(53966),i(87811),i(64108));let a=class extends((0,l.OU)(r.o)){constructor(){super(...arguments),this.showLegend=null,this.title=null}};(0,s.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0}})],a.prototype,"showLegend",void 0),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"title",void 0),a=(0,s.Cg)([(0,o.$)("esri.renderers.visualVariables.support.VisualVariableLegendOptions")],a);const u=a},48940:(e,t,i)=>{i.d(t,{A:()=>M});var s=i(31635),l=i(49186),r=i(66552),n=i(53966),o=i(10107),a=i(79901),u=i(36005),p=i(64108),c=i(43937),d=i(2795),h=i(90629),y=i(12330),m=(i(44208),i(87811),i(41078));let f=class extends m.A{constructor(){super(...arguments),this.customValues=null}};(0,s.Cg)([(0,o.MZ)({type:[Number],json:{write:!0}})],f.prototype,"customValues",void 0),f=(0,s.Cg)([(0,p.$)("esri.renderers.visualVariables.support.SizeVariableLegendOptions")],f);const g=f;var v,b=i(98205),w=i(29266);const V=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 C(e){if(null!=e)return"string"==typeof e||"number"==typeof e?function(e){return(0,h.cr)(e)}(e):"size"===e.type?(0,b.of)(e)?e:(delete(e={...e}).type,new M(e)):void 0}function x(e,t,i){if("object"!=typeof e)return e;const s=new M;return s.read(e,i),s}let M=v=class extends d.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&&w.RV.test(this.valueExpression)}}set index(e){(0,b.of)(this.maxSize)&&(this.maxSize.index=`visualVariables[${e}].maxSize`),(0,b.of)(this.minSize)&&(this.minSize.index=`visualVariables[${e}].minSize`),this._set("index",e)}get inputValueType(){return(0,b.eh)(this)}set maxDataValue(e){e&&this.stops&&(n.A.getLogger(this).warn("cannot set maxDataValue when stops is not null."),e=null),this._set("maxDataValue",e)}set maxSize(e){e&&this.stops&&(n.A.getLogger(this).warn("cannot set maxSize when stops is not null."),e=null),this._set("maxSize",e)}castMaxSize(e){return C(e)}readMaxSize(e,t,i){return x(e,0,i)}set minDataValue(e){e&&this.stops&&(n.A.getLogger(this).warn("cannot set minDataValue when stops is not null."),e=null),this._set("minDataValue",e)}set minSize(e){e&&this.stops&&(n.A.getLogger(this).warn("cannot set minSize when stops is not null."),e=null),this._set("minSize",e)}castMinSize(e){return C(e)}readMinSize(e,t,i){return x(e,0,i)}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&&(n.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,b.KZ)(this,this.inputValueType)}readValueExpression(e,t){return e||t.expression&&"$view.scale"}writeValueExpressionWebScene(e,t,i,s){if("$view.scale"===e){if(s?.messages){const e=this.index,t="string"==typeof e?e:`visualVariables[${e}]`;s.messages.push(new l.A("property:unsupported",this.type+"VisualVariable.valueExpression = '$view.scale' is not supported in Web Scene. Please remove this property to save the Web Scene.",{instance:this,propertyName:t+".valueExpression",context:s}))}}else t[i]=e}readValueUnit(e){return e?S.read(e):null}clone(){return new v({axis:this.axis,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,maxDataValue:this.maxDataValue,maxSize:(0,b.of)(this.maxSize)?this.maxSize.clone():this.maxSize,minDataValue:this.minDataValue,minSize:(0,b.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}getAttributeHash(){return`${super.getAttributeHash()}-${this.target}-${this.normalizationField}`}_interpolateData(){return this.stops?.map(e=>e.value||0)}};(0,s.Cg)([(0,o.MZ)({readOnly:!0})],M.prototype,"cache",null),(0,s.Cg)([(0,o.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,o.MZ)()],M.prototype,"index",null),(0,s.Cg)([(0,o.MZ)({type:String,readOnly:!0})],M.prototype,"inputValueType",null),(0,s.Cg)([(0,o.MZ)({type:g,json:{write:!0}})],M.prototype,"legendOptions",void 0),(0,s.Cg)([(0,o.MZ)({type:Number,value:null,json:{write:!0}})],M.prototype,"maxDataValue",null),(0,s.Cg)([(0,o.MZ)({type:Number,value:null,json:{write:!0}})],M.prototype,"maxSize",null),(0,s.Cg)([(0,a.w)("maxSize")],M.prototype,"castMaxSize",null),(0,s.Cg)([(0,u.w)("maxSize")],M.prototype,"readMaxSize",null),(0,s.Cg)([(0,o.MZ)({type:Number,value:null,json:{write:!0}})],M.prototype,"minDataValue",null),(0,s.Cg)([(0,o.MZ)({type:Number,value:null,json:{write:!0}})],M.prototype,"minSize",null),(0,s.Cg)([(0,a.w)("minSize")],M.prototype,"castMinSize",null),(0,s.Cg)([(0,u.w)("minSize")],M.prototype,"readMinSize",null),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],M.prototype,"normalizationField",void 0),(0,s.Cg)([(0,o.MZ)({readOnly:!0})],M.prototype,"arcadeRequired",null),(0,s.Cg)([(0,o.MZ)({type:String})],M.prototype,"scaleBy",void 0),(0,s.Cg)([(0,o.MZ)({type:[y.A],value:null,json:{write:!0}})],M.prototype,"stops",null),(0,s.Cg)([(0,o.MZ)({type:["outline"],json:{write:!0}})],M.prototype,"target",void 0),(0,s.Cg)([(0,o.MZ)({type:String,readOnly:!0})],M.prototype,"transformationType",null),(0,s.Cg)([(0,o.MZ)({type:["size"],json:{type:["sizeInfo"]}})],M.prototype,"type",void 0),(0,s.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0,origins:{"web-map":{read:!1}}}})],M.prototype,"useSymbolValue",void 0),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],M.prototype,"valueExpression",void 0),(0,s.Cg)([(0,u.w)("valueExpression",["valueExpression","expression"])],M.prototype,"readValueExpression",null),(0,s.Cg)([(0,c.K)("web-scene","valueExpression")],M.prototype,"writeValueExpressionWebScene",null),(0,s.Cg)([(0,o.MZ)({type:["radius","diameter","area","width","distance"],json:{write:!0}})],M.prototype,"valueRepresentation",void 0),(0,s.Cg)([(0,o.MZ)({type:S.apiValues,json:{write:S.write,origins:{"web-map":{read:!1},"web-scene":{write:!0},"portal-item":{write:!0}}}})],M.prototype,"valueUnit",void 0),(0,s.Cg)([(0,u.w)("valueUnit")],M.prototype,"readValueUnit",null),M=v=(0,s.Cg)([(0,p.$)("esri.renderers.visualVariables.SizeVariable")],M)},49849:(e,t,i)=>{i.d(t,{As:()=>c,Ug:()=>d,Wp:()=>p,z4:()=>u});var s=i(93637),l=i(90360),r=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,l.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:r.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()}}}}},60999:(e,t,i)=>{i.d(t,{DZ:()=>y,Ke:()=>h,Tj:()=>p,UT:()=>m,aD:()=>g,jJ:()=>u});var s=i(31635),l=i(69622),r=i(97768),n=i(74887),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 m(e,t){return new f(e,t)}let f=class extends l.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,r.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,r.xt)(this._abortHandle),this._abortController=null}};(0,s.Cg)([(0,o.MZ)()],f.prototype,"value",null),(0,s.Cg)([(0,o.MZ)()],f.prototype,"error",null),(0,s.Cg)([(0,o.MZ)()],f.prototype,"finished",null),(0,s.Cg)([(0,o.MZ)()],f.prototype,"promise",void 0),(0,s.Cg)([(0,o.MZ)()],f.prototype,"_result",void 0),f=(0,s.Cg)([(0,a.$)("esri.core.asyncUtils.ReactiveTask")],f);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)}}}},62724:(e,t,i)=>{i.d(t,{A:()=>f});var s,l=i(31635),r=i(10107),n=(i(44208),i(53966),i(87811),i(64108)),o=i(2795),a=i(25482),u=i(56507),p=i(36005),c=i(43937),d=i(78553);let h=s=class extends a.o{constructor(e){super(e),this.label=null,this.opacity=null,this.value=null}readOpacity(e,t){return(0,d.D)(t.transparency)}writeOpacity(e,t,i){t[i]=(0,d.p)(e)}clone(){return new s({label:this.label,opacity:this.opacity,value:this.value})}};(0,l.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],h.prototype,"label",void 0),(0,l.Cg)([(0,r.MZ)({type:Number,json:{type:u.jz,write:{target:"transparency",isRequired:!0}}})],h.prototype,"opacity",void 0),(0,l.Cg)([(0,p.w)("opacity",["transparency"])],h.prototype,"readOpacity",null),(0,l.Cg)([(0,c.K)("opacity")],h.prototype,"writeOpacity",null),(0,l.Cg)([(0,r.MZ)({type:Number,json:{write:{isRequired:!0}}})],h.prototype,"value",void 0),h=s=(0,l.Cg)([(0,n.$)("esri.renderers.visualVariables.support.OpacityStop")],h);const y=h;var m;let f=m=class extends o.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 m({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()})}getAttributeHash(){return`${super.getAttributeHash()}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map(e=>e.value||0)}};(0,l.Cg)([(0,r.MZ)({readOnly:!0})],f.prototype,"cache",null),(0,l.Cg)([(0,r.MZ)({type:["opacity"],json:{type:["transparencyInfo"]}})],f.prototype,"type",void 0),(0,l.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],f.prototype,"normalizationField",void 0),(0,l.Cg)([(0,r.MZ)({type:[y],json:{write:!0}})],f.prototype,"stops",null),f=m=(0,l.Cg)([(0,n.$)("esri.renderers.visualVariables.OpacityVariable")],f)},63988:(e,t,i)=>{i.d(t,{h:()=>x});var s=i(31635),l=i(10107),r=(i(44208),i(53966)),n=(i(87811),i(36005)),o=i(64108),a=i(43937),u=i(30524),p=i(2024),c=i(62724),d=i(23461),h=i(48940),y=i(2795),m=i(69622),f=i(66552),g=i(67076);const v={color:p.A,size:h.A,opacity:c.A,rotation:d.A},b=new f.J({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"}),w=/^\[([^\]]+)\]$/i;let V=class extends m.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:l}=t,n=s?.match(w),o=n?.[1];if(o&&(e||(e=[]),e.push({type:"rotationInfo",rotationType:l,field:o})),e)return e.map(e=>{const t=b.read(e.type),s=v[t];s||(r.A.getLogger(this).warn(`Unknown variable type: ${t}`),i?.messages&&i.messages.push(new g.A("visual-variable:unsupported",`visualVariable of type '${t}' is not supported`,{definition:e,context:i})));const l=new s;return l.read(e,i),l})}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,l.MZ)()],V.prototype,"visualVariables",null),V=(0,s.Cg)([(0,o.$)("esri.renderers.visualVariables.VisualVariableFactory")],V);var S=i(69309);const C={base:y.A,key:"type",typeMap:{opacity:c.A,color:p.A,rotation:d.A,size:h.A}},x=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this._vvFactory=new V}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,u.rq)(e,t,s.field),s.normalizationField&&(0,u.rq)(e,t,s.normalizationField),s.valueExpression&&(M(s.valueExpression,e,t)||await(0,u.Dx)(e,t,null,s.valueExpression)))}};return(0,s.Cg)([(0,l.MZ)({types:[C],value:null,json:{write:!0}})],i.prototype,"visualVariables",null),(0,s.Cg)([(0,n.w)("visualVariables",["visualVariables","rotationType","rotationExpression"])],i.prototype,"readVisualVariables",null),(0,s.Cg)([(0,a.K)("visualVariables")],i.prototype,"writeVisualVariables",null),i=(0,s.Cg)([(0,o.$)("esri.renderers.mixins.VisualVariablesMixin")],i),i};function M(e,t,i){const s=(0,S.D)(e);return null!=s&&((0,u.rq)(t,i,s),!0)}},72500:(e,t,i)=>{i.d(t,{A:()=>d});var s,l=i(31635),r=i(68197),n=i(25482),o=i(10107),a=i(56507),u=(i(44208),i(87811),i(64108)),p=i(43937);let c=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,l.Cg)([(0,o.MZ)({type:r.A,json:{type:[a.jz],write:{isRequired:!0}}})],c.prototype,"color",void 0),(0,l.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,l.Cg)([(0,o.MZ)({type:Number,json:{write:{writerEnsuresNonNull:!0}}})],c.prototype,"value",void 0),(0,l.Cg)([(0,p.K)("value")],c.prototype,"writeValue",null),c=s=(0,l.Cg)([(0,u.$)("esri.renderers.visualVariables.support.ColorStop")],c);const d=c},72606:(e,t,i)=>{i.d(t,{A:()=>o});var s=i(31635),l=i(25482),r=i(10107),n=(i(44208),i(53966),i(87811),i(64108));let o=class extends l.o{constructor(e){super(e),this.type=null}};(0,s.Cg)([(0,r.MZ)({readOnly:!0,json:{read:!1,write:!0}})],o.prototype,"type",void 0),o=(0,s.Cg)([(0,n.$)("esri.rest.support.ColorRamp")],o)},73838:(e,t,i)=>{i.d(t,{rS:()=>k,M9:()=>j,oO:()=>Z});var s=i(49186),l=i(93637),r=i(77548),n=i(37757),o=i(13313),a=i(97887),u=i(68548),p=i(58592),c=i(75981),d=i(65365),h=i(94985),y=i(31593),m=i(53930),f=i(68249),g=i(68197),v=i(7762),b=(i(44208),i(90629)),w=i(27845),V=i(11506),S=i(39065),C=i(59868),x=i(93470);c.A.fromSimpleMarkerSymbol(C.UK),a.A.fromSimpleLineSymbol(C.A7),d.A.fromSimpleFillSymbol(C.Cx),new u.A({symbolLayers:new v.A([new w.A({material:{color:x.fT},edges:new S.A({size:(0,b.PN)(1),color:new g.A(x.JR)})})])});const M=new a.A({symbolLayers:new v.A([new V.A({material:{color:new g.A([0,0,0])},size:(0,b.PN)(1)})])}),z=new d.A({symbolLayers:new v.A([new w.A({outline:{color:new g.A([0,0,0]),size:(0,b.PN)(1)}})])});var I=i(33910);const _="#useCIMFallbackSymbology()",A={retainId:!1,ignoreDrivers:!1,hasLabelingContext:!0};function j(e,t,i,s){const r=F(e,{},{context:s,isLabelSymbol:!1});null!=r&&(0,l.sM)(i,r,t)}function Z(e,t,i,s){const l=F(e,{},{context:s,isLabelSymbol:!0});null!=l&&(t[i]=l)}function q(e){return(0,I.wk)(e)||e instanceof n.A}function F(e,t,i){if(null==e)return null;const{context:l,isLabelSymbol:g}=i,v=l?.origin,b=l?.messages;if("web-scene"===v&&!q(e)){const i=function(e,t=A){if(!e)return{symbol:null};const{retainId:i=A.retainId,ignoreDrivers:l=A.ignoreDrivers,hasLabelingContext:r=A.hasLabelingContext,retainCIM:g=A.retainCIM,cimFallbackEnabled:v=A.cimFallbackEnabled}=t;let b=null;if((0,I.wk)(e))b=e.clone();else if("web-style"===e.type)b=e.clone();else if("cim"===e.type){const i=e.data?.symbol?.type;switch(i){case"CIMPointSymbol":b=g?e.clone():c.A.fromCIMSymbol(e);break;case"CIMLineSymbol":v&&(b=M.clone(),t?.logWarning?.(_,"Unsupported CIM line symbology converted to fallback 3D line symbology"));break;case"CIMPolygonSymbol":v&&(b=z.clone(),t?.logWarning?.(_,"Unsupported CIM polygon symbology converted to fallback 3D polygon symbology"))}if(!b)return{error:new s.A("symbol-conversion:unsupported-cim-symbol",`CIM symbol of type '${i||"unknown"}' is unsupported in 3D`,{symbol:e})}}else if(e instanceof y.A)b=a.A.fromSimpleLineSymbol(e);else if(e instanceof m.A)b=c.A.fromSimpleMarkerSymbol(e);else if(e instanceof p.A)b=c.A.fromPictureMarkerSymbol(e);else if(e instanceof h.A)b=t.geometryType&&"mesh"===t.geometryType?u.A.fromSimpleFillSymbol(e):d.A.fromSimpleFillSymbol(e);else{if(!(e instanceof f.A))return{error:new s.A("symbol-conversion:unsupported-2d-symbol",`2D symbol of type '${e.type||e.declaredClass}' is unsupported in 3D`,{symbol:e})};b=r?o.A.fromTextSymbol(e):c.A.fromTextSymbol(e)}return i&&b&&"cim"!==b.type&&(b.id=e.id),!l||"cim"===b.type||b instanceof n.A||b.symbolLayers.forEach(e=>e.ignoreDrivers=!0),{symbol:b}}(e,{retainCIM:!0,hasLabelingContext:g});return null!=i.symbol?i.symbol.write(t,l):(b?.push(new s.A("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported in scenes. Use 3D symbology instead when working with WebScene and SceneView`,{symbol:e,context:l,error:i.error})),null)}return(0,r.TU)(l?.layer)&&(w=e,"polygon-3d"===w?.type||"line-3d"===w?.type)?(b?.push(new s.A("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported on layers of type '${l?.layer?.declaredClass}'.`,{symbol:e,context:l})),null):("web-map"===v||"portal-item"===v&&!(0,r.TU)(l?.layer))&&q(e)?(b?.push(new s.A("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported in web maps and portal items. Use 2D symbology and CIMSymbol instead when working with MapView`,{symbol:e,context:l})),null):e.write(t,l);var w}function k(e,t){return(0,I.Bu)(e,null,t)}},85594:(e,t,i)=>{i.d(t,{jg:()=>v,cF:()=>c,bo:()=>d,yA:()=>m,o5:()=>h});var s=i(11254),l=i(49186),r=i(44208),n=i(74887),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 m(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 r;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:${f} AND type:${g} AND typekeywords:"${e}"`});return t.queryItems(s,i)}).then(({results:t})=>{let s=null;const r=e.toLowerCase();if(t&&Array.isArray(t))for(const e of t){const t=e.typeKeywords?.some(e=>e.toLowerCase()===r);if(t&&e.type===g&&e.owner===f){s=e;break}}if(!s)throw new l.A("symbolstyleutils:style-not-found",`The style '${e}' could not be found`,{styleName:e});return s.load(i)})}(e,s,i).then(e=>(r=e,e.fetchData())).then(t=>({data:t,baseUrl:r.itemUrl??"",styleName:e}));return p.set(n,c),c}(e.styleName,t,i):Promise.reject(new l.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,r.A)("enable-feature:force-wosr"))return e.formatInfos?.find(e=>e.type===t)?.href}function m(e,t){const i={responseType:"json",query:{f:"json"},...t};return(0,s.A)((0,o.S8)(e),i)}const f="esri_en",g="Style",v="https://cdn.arcgis.com/sharing/rest/content/items/220936cc6ed342c9937abd8f180e7d1e/resources/styles/cim/{SymbolName}.json?f=json"},86162:(e,t,i)=>{i.d(t,{A:()=>I});var s,l=i(31635),r=i(66552),n=i(4718),o=i(53966),a=i(10107),u=i(79901),p=i(93223),c=i(36005),d=i(64108),h=i(43937),y=i(56507),m=i(30524),f=i(92438),g=i(63988),v=i(88542),b=i(49849),w=i(20061),V=i(43668),S=i(33910);const C="percent-of-total",x="field",M=new r.J({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:C,esriNormalizeByField:x}),z=(0,y.dp)(v.A);let I=s=class extends((0,g.h)(f.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 v.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 l=e.map(e=>e.write({},s));this._areClassBreaksConsecutive()&&l.forEach(e=>delete e.classMinValue),t[i]=l}castField(e){return null==e?e:"function"==typeof e?(o.A.getLogger(this).error(".field: field must be a string value"),null):(0,y.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&&x||i&&C||null,t&&i&&o.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==x&&e!==C||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}addClassBreakInfo(e,t,i){let s=null;s="number"==typeof e?new v.A({minValue:e,maxValue:t,symbol:(0,S.dp)(i)}):z((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,V.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,V.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)}),this.defaultSymbol&&e.push(this.defaultSymbol),e}getAttributeHash(){return this.visualVariables?.reduce((e,t)=>e+t.getAttributeHash(),"")??""}getMeshHash(){const e=JSON.stringify(this.backgroundFillSymbol),t=JSON.stringify(this.defaultSymbol),i=`${this.normalizationField}.${this.normalizationType}.${this.normalizationTotal}`;return`${e}.${t}.${this.classBreakInfos.reduce((e,t)=>e+t.getMeshHash(),"")}.${i}.${this.field}.${this.valueExpression}`}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,m.Dx)(e,t,null,this.valueExpression)];(0,m.rq)(e,t,this.field),(0,m.rq)(e,t,this.normalizationField),await Promise.all(i)}_getBreakIndexForExpression(e,t){const{viewingMode:i,scale:s,spatialReference:l,arcade:r,timeZone:n}=t??{},{valueExpression:o}=this;let a=this._compiledValueExpression.valueExpression===o?this._compiledValueExpression.compiledFunction:null;const u=r.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:l}),n));return this._getBreakIndexfromInfos(p)}_getBreakIndexForField(e){const t=this.field,i=e.attributes,s=this.normalizationType;let l=parseFloat(i[t]);if(s){const e=this.normalizationTotal,t=parseFloat(this.normalizationField?i[this.normalizationField]:void 0);if("log"===s)l=Math.log(l)*Math.LOG10E;else if(s!==C||null==e||isNaN(e)){if(s===x&&!isNaN(t)){if(isNaN(l)||isNaN(t))return-1;l/=t}}else l=l/e*100}return this._getBreakIndexfromInfos(l)}_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,l.Cg)([(0,a.MZ)(b.As)],I.prototype,"backgroundFillSymbol",void 0),(0,l.Cg)([(0,a.MZ)({type:[v.A],json:{write:{isRequired:!0}}})],I.prototype,"classBreakInfos",void 0),(0,l.Cg)([(0,c.w)("classBreakInfos")],I.prototype,"readClassBreakInfos",null),(0,l.Cg)([(0,h.K)("classBreakInfos")],I.prototype,"writeClassBreakInfos",null),(0,l.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],I.prototype,"defaultLabel",void 0),(0,l.Cg)([(0,a.MZ)(b.z4)],I.prototype,"defaultSymbol",void 0),(0,l.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],I.prototype,"field",void 0),(0,l.Cg)([(0,u.w)("field")],I.prototype,"castField",null),(0,l.Cg)([(0,a.MZ)({type:Boolean})],I.prototype,"isMaxInclusive",void 0),(0,l.Cg)([(0,a.MZ)({type:w.A,json:{write:!0}})],I.prototype,"legendOptions",void 0),(0,l.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}}}}})],I.prototype,"minValue",null),(0,l.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],I.prototype,"normalizationField",void 0),(0,l.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],I.prototype,"normalizationTotal",void 0),(0,l.Cg)([(0,a.MZ)({type:M.apiValues,value:null,json:{type:M.jsonValues,read:M.read,write:M.write}})],I.prototype,"normalizationType",null),(0,l.Cg)([(0,p.e)({classBreaks:"class-breaks"})],I.prototype,"type",void 0),(0,l.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],I.prototype,"valueExpression",void 0),(0,l.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],I.prototype,"valueExpressionTitle",void 0),I=s=(0,l.Cg)([(0,d.$)("esri.renderers.ClassBreaksRenderer")],I)},88542:(e,t,i)=>{i.d(t,{A:()=>u});var s,l=i(31635),r=i(25482),n=i(10107),o=(i(44208),i(53966),i(87811),i(64108)),a=i(49849);let u=s=class extends r.o{constructor(e){super(e),this.description=null,this.label=null,this.minValue=null,this.maxValue=0,this.symbol=null}clone(){return new s({description:this.description,label:this.label,minValue:this.minValue,maxValue:this.maxValue,symbol:this.symbol?.clone()??null})}getMeshHash(){const e=JSON.stringify(this.symbol);return`${this.minValue}.${this.maxValue}.${e}`}};(0,l.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,l.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,l.Cg)([(0,n.MZ)({type:Number,json:{read:{source:"classMinValue"},write:{target:"classMinValue"}}})],u.prototype,"minValue",void 0),(0,l.Cg)([(0,n.MZ)({type:Number,json:{read:{source:"classMaxValue"},write:{target:"classMaxValue"}}})],u.prototype,"maxValue",void 0),(0,l.Cg)([(0,n.MZ)(a.Wp)],u.prototype,"symbol",void 0),u=s=(0,l.Cg)([(0,o.$)("esri.renderers.support.ClassBreakInfo")],u)},92438:(e,t,i)=>{i.d(t,{A:()=>p});var s=i(31635),l=i(66552),r=i(25482),n=i(10107),o=(i(44208),i(53966),i(87811),i(64108)),a=i(30943);const u=new l.J({simple:"simple",uniqueValue:"unique-value",classBreaks:"class-breaks",heatmap:"heatmap",dotDensity:"dot-density",dictionary:"dictionary",pieChart:"pie-chart"},{ignoreUnknown:!0});let p=class extends r.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}getAttributeHash(){return JSON.stringify(this)}getMeshHash(){return JSON.stringify(this)}};(0,s.Cg)([(0,n.MZ)({type:a.A,json:{write:!0}})],p.prototype,"authoringInfo",void 0),(0,s.Cg)([(0,n.MZ)({type:u.apiValues,readOnly:!0,json:{type:u.jsonValues,read:!1,write:{writer:u.write,ignoreOrigin:!0,isRequired:!0}}})],p.prototype,"type",void 0),p=(0,s.Cg)([(0,o.$)("esri.renderers.Renderer")],p)},93618:(e,t,i)=>{i.d(t,{A:()=>R});var s=i(31635),l=i(49186),r=i(4718),n=i(53966),o=i(93637),a=i(36708),u=i(10107),p=i(79901),c=i(93223),d=i(36005),h=i(64108),y=i(43937),m=i(6797),f=i(56507),g=i(30524),v=i(20655),b=i(92438),w=i(63988),V=i(49849),S=i(20061),C=i(69540),x=i(25482);i(44208),i(87811);let M=class extends((0,C.OU)(x.o)){constructor(e){super(e),this.value=null,this.value2=null,this.value3=null}};(0,s.Cg)([(0,u.MZ)(V.Ug)],M.prototype,"value",void 0),(0,s.Cg)([(0,u.MZ)(V.Ug)],M.prototype,"value2",void 0),(0,s.Cg)([(0,u.MZ)(V.Ug)],M.prototype,"value3",void 0),M=(0,s.Cg)([(0,h.$)("esri.renderers.support.UniqueValue")],M);var z=i(4576);let I=class extends((0,C.OU)(x.o)){constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.values=null}castValues(e){if(null==e)return null;const t=typeof(e=Array.isArray(e)?e:[e])[0];return"string"===t||"number"===t?e.map(e=>new M({value:e})):"object"===t?e[0]instanceof M?e:e.map(e=>new M(e)):null}};(0,s.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],I.prototype,"description",void 0),(0,s.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],I.prototype,"label",void 0),(0,s.Cg)([(0,u.MZ)(V.z4)],I.prototype,"symbol",void 0),(0,s.Cg)([(0,u.MZ)({type:[M],json:{type:[[String]],read:{reader:e=>e?e.map(e=>new M({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(z.Ru).map(e=>e.toString());i.push(e)}t.values=i}}}})],I.prototype,"values",void 0),(0,s.Cg)([(0,p.w)("values")],I.prototype,"castValues",null),I=(0,s.Cg)([(0,h.$)("esri.renderers.support.UniqueValueClass")],I);let _=class extends((0,C.OU)(x.o)){constructor(e){super(e),this.heading=null,this.classes=null}};(0,s.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],_.prototype,"heading",void 0),(0,s.Cg)([(0,u.MZ)({type:[I],json:{write:{isRequired:!0}}})],_.prototype,"classes",void 0),_=(0,s.Cg)([(0,h.$)("esri.renderers.support.UniqueValueGroup")],_);var A,j=i(94833),Z=i(43668),q=i(97159),F=i(37757),k=i(85594),E=i(33910);const U="uvInfos-watcher",T="uvGroups-watcher",O=(0,f.dp)(j.A);function D(e){return null!=e&&""!==e&&("string"!=typeof e||""!==e.trim()&&"<null>"!==e.toLowerCase())||(e=null),e+""}let R=A=class extends((0,w.h)(b.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 l=0;l<t.length;l++){const r=e.find(e=>e.value===t[l].value);r?(0,m.Ui)(r,t[l])?(s.changed.push({type:"complete",oldValue:r,newValue:t[l]}),i=!0):s.unchanged.push({oldValue:r,newValue:t[l]}):(s.added.push(t[l]),i=!0)}for(let l=0;l<e.length;l++)t.find(t=>t.value===e[l].value)||(s.removed.push(e[l]),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,f.GX)(e)}writeField(e,t,i,s){"string"==typeof e?t[i]=e:s?.messages?s.messages.push(new l.A("property:unsupported","UniqueValueRenderer.field set to a function cannot be written to JSON")):n.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||v.A.getDefault()}readStyleOrigin(e,t,i){if(t.styleName)return Object.freeze({styleName:t.styleName});if(t.styleUrl){const e=(0,q.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,q.t)(e.styleUrl,s))}set uniqueValueGroups(e){this.styleOrigin?n.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?n.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 n.A.getLogger(this).error("#addUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");let i;i="object"==typeof e?O(e):new j.A({value:e,symbol:(0,E.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 n.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,Z.l)()}),this._getUniqueValueInfo(e,i)}getSymbol(e,t){if(this.valueExpression&&null==t?.arcade)return void n.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,Z.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);else for(const t of this.uniqueValueGroups??[])for(const i of t.classes??[])i.symbol&&e.push(i.symbol);return this.defaultSymbol&&e.push(this.defaultSymbol),e}getAttributeHash(){return this.visualVariables?.reduce((e,t)=>e+t.getAttributeHash(),"")??""}getMeshHash(){const e=JSON.stringify(this.backgroundFillSymbol),t=JSON.stringify(this.defaultSymbol),i=this.uniqueValueInfos?.reduce((e,t)=>e+t.getMeshHash(),"");return`${e}.${t}.${i}.${this.field}.${this.field2}.${this.field3}.${this.fieldDelimiter}.${this.valueExpression}`}clone(){const e=new A({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,g.Dx)(e,t,null,this.valueExpression)];(0,g.rq)(e,t,this.field),(0,g.rq)(e,t,this.field2),(0,g.rq)(e,t,this.field3),await Promise.all(i)}populateFromStyle(){return(0,k.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 F.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 l=new j.A({value:i.name,symbol:s});t.push(l),this._valueInfoMap[D(i.name)]=l}),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(U);const{uniqueValueInfos:e}=this;if(e){const t=[];for(const i of e)t.push((0,a.wB)(()=>({symbol:i.symbol,value:i.value,label:i.label,description:i.description}),(e,t)=>{e!==t&&(this._updateGroupsFromInfos(),this._isInfosSource=!0)},{sync:!0}));this.addHandles(t,U)}}_watchUniqueValueGroups(){this.removeHandles(T);const{uniqueValueGroups:e}=this;if(e){const t=[];for(const i of e){t.push((0,a.wB)(()=>({classes:i.classes}),(e,t)=>{e!==t&&(this._updateInfosFromGroups(),this._isInfosSource=!1)},{sync:!0}));for(const e of i.classes??[])t.push((0,a.wB)(()=>({symbol:e.symbol,values:e.values,label:e.label,description:e.description}),(e,t)=>{e!==t&&(this._updateInfosFromGroups(),this._isInfosSource=!1)},{sync:!0}))}this.addHandles(t,T)}}_updateInfosFromGroups(){if(!this.uniqueValueGroups)return this._set("uniqueValueInfos",null),this._updateValueInfoMap(),void this._watchUniqueValueInfos();const e=[],{field:t,field2:i,field3:s,fieldDelimiter:l,uniqueValueGroups:r,valueExpression:n}=this;if(!t&&!n)return this._set("uniqueValueInfos",e),this._updateValueInfoMap(),void this._watchUniqueValueInfos();const o=!(!t||!i);for(const t of r)for(const r of t.classes??[]){const{symbol:t,label:n,values:a,description:u}=r;for(const r of a??[]){const{value:a,value2:p,value3:c}=r,d=[a];i&&d.push(p),s&&d.push(c);const h=o?d.join(l||""):d[0]??void 0;e.push(new j.A({symbol:t,label:n,value:h,description:u}))}}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:l,uniqueValueInfos:r}=this;if(!t&&!s||!r.length)return this._set("uniqueValueGroups",[]),void this._watchUniqueValueGroups();const n=!(!t||!i),o=r.map(e=>{const{symbol:t,label:i,value:s,description:r}=e,[o,a,u]=n?s?.toString()?.split(l||"")||[]:[s];return new I({symbol:t,label:i,description:r,values:[new M({value:o,value2:a,value3:u})]})}),a=[new _({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:l,arcade:r,timeZone:n}=t??{};let o=this._cache.compiledFunc;const a=r.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:l}),n));return this._valueInfoMap[D(u)]}_getUnqiueValueInfoForFields(e){const t=this.field,i=e.attributes;let s;if(this.field2){const e=this.field2,l=this.field3,r=[];t&&r.push(i[t]),e&&r.push(i[e]),l&&r.push(i[l]),s=r.join(this.fieldDelimiter||"")}else t&&(s=i[t]);return this._valueInfoMap[D(s)]}static fromPortalStyle(e,t){const i=new A(t?.properties);i._set("styleOrigin",Object.freeze({styleName:e})),i._set("portal",t?.portal||v.A.getDefault());const s=i.populateFromStyle();return s.catch(t=>{n.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 A(t?.properties);i._set("styleOrigin",Object.freeze({styleUrl:e}));const s=i.populateFromStyle();return s.catch(t=>{n.A.getLogger(this.prototype).error(`#fromStyleUrl('${e}'[, ...])`,"Failed to create unique value renderer from style URL",t)}),s}};(0,s.Cg)([(0,u.MZ)({readOnly:!0})],R.prototype,"_cache",null),(0,s.Cg)([(0,c.e)({uniqueValue:"unique-value"})],R.prototype,"type",void 0),(0,s.Cg)([(0,u.MZ)(V.As)],R.prototype,"backgroundFillSymbol",void 0),(0,s.Cg)([(0,u.MZ)({value:null,json:{type:String,read:{source:"field1"},write:{target:"field1"}}})],R.prototype,"field",null),(0,s.Cg)([(0,p.w)("field")],R.prototype,"castField",null),(0,s.Cg)([(0,y.K)("field")],R.prototype,"writeField",null),(0,s.Cg)([(0,u.MZ)({type:String,value:null,json:{write:!0}})],R.prototype,"field2",null),(0,s.Cg)([(0,u.MZ)({type:String,value:null,json:{write:!0}})],R.prototype,"field3",null),(0,s.Cg)([(0,u.MZ)({type:Boolean,json:{name:"drawInClassOrder",default:!1,write:!0,origins:{"web-scene":{write:!1}}}})],R.prototype,"orderByClassesEnabled",void 0),(0,s.Cg)([(0,u.MZ)({type:String,value:null,json:{write:!0}})],R.prototype,"valueExpression",null),(0,s.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],R.prototype,"valueExpressionTitle",void 0),(0,s.Cg)([(0,u.MZ)({type:S.A,json:{write:!0}})],R.prototype,"legendOptions",void 0),(0,s.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],R.prototype,"defaultLabel",void 0),(0,s.Cg)([(0,u.MZ)((0,o.$N)({...V.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,u.MZ)({type:String,value:null,json:{write:!0}})],R.prototype,"fieldDelimiter",null),(0,s.Cg)([(0,u.MZ)({type:v.A,readOnly:!0})],R.prototype,"portal",void 0),(0,s.Cg)([(0,d.w)("portal",["styleName"])],R.prototype,"readPortal",null),(0,s.Cg)([(0,u.MZ)({readOnly:!0,json:{write:{enabled:!1,overridePolicy:()=>({enabled:!0})}}})],R.prototype,"styleOrigin",void 0),(0,s.Cg)([(0,d.w)("styleOrigin",["styleName","styleUrl"])],R.prototype,"readStyleOrigin",null),(0,s.Cg)([(0,y.K)("styleOrigin",{styleName:{type:String},styleUrl:{type:String}})],R.prototype,"writeStyleOrigin",null),(0,s.Cg)([(0,u.MZ)({type:[_],json:{read:{source:["uniqueValueGroups","uniqueValueInfos"],reader:(e,t,i)=>(t.uniqueValueGroups||function(e){const{field1:t,field2:i,field3:s,fieldDelimiter:l,uniqueValueInfos:r,valueExpression:n}=e,o=!(!t||!i);return[{classes:(r??[]).map(e=>{const{symbol:r,label:a,value:u,description:p}=e,[c,d,h]=o?u?.toString()?.split(l||"")||[]:[u],y=[];return(t||n)&&y.push(c),i&&y.push(d),s&&y.push(h),{symbol:r,label:a,values:[y],description:p}})}]}(t)).map(e=>_.fromJSON(e,i))},write:{overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0}}}}})],R.prototype,"uniqueValueGroups",null),(0,s.Cg)([(0,u.MZ)({type:[j.A],json:{read:!1,write:{isRequired:!0,overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0,isRequired:!0}}}}})],R.prototype,"uniqueValueInfos",null),R=A=(0,s.Cg)([(0,h.$)("esri.renderers.UniqueValueRenderer")],R)},94833:(e,t,i)=>{i.d(t,{A:()=>u});var s,l=i(31635),r=i(25482),n=i(10107),o=(i(44208),i(53966),i(87811),i(64108)),a=i(49849);let u=s=class extends r.o{constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.value=null}clone(){return new s({value:this.value,description:this.description,label:this.label,symbol:this.symbol?this.symbol.clone():null})}getMeshHash(){const e=JSON.stringify(this.symbol?.toJSON());return`${this.value}.${e}`}};(0,l.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,l.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,l.Cg)([(0,n.MZ)(a.Wp)],u.prototype,"symbol",void 0),(0,l.Cg)([(0,n.MZ)(a.Ug)],u.prototype,"value",void 0),u=s=(0,l.Cg)([(0,o.$)("esri.renderers.support.UniqueValueInfo")],u)},95349:(e,t,i)=>{i.d(t,{g:()=>n,r:()=>o});var s=i(2485),l=i(72606),r=i(1626);const n={key:"type",base:l.A,typeMap:{algorithmic:s.A,multipart:r.A}};function o(e){return e?.type?"algorithmic"===e.type?s.A.fromJSON(e):"multipart"===e.type?r.A.fromJSON(e):null:null}},98205:(e,t,i)=>{function s(e){return e&&"esri.renderers.visualVariables.SizeVariable"===e.declaredClass}function l(e){return null!=e&&!isNaN(e)&&isFinite(e)}function r(e){return e.valueExpression?"expression":e.field&&"string"==typeof e.field?"field":"unknown"}function n(e,t){const i=t||r(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:()=>r,gf:()=>l,of:()=>s})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3359,5740],{7861:(e,t,r)=>{r.d(t,{L:()=>n});var a=r(11254);async function n(e,t){return(await(0,a.A)(e,{responseType:"json",query:{f:"json",...t?.customParameters,token:t?.apiKey}})).data}},23154:(e,t,r)=>{r.d(t,{K:()=>d,Q:()=>s});var a=r(77548),n=r(7861);const o=new Set(["Catalog Layer","Feature Layer","Oriented Imagery Layer"]);async function s(e,t){const{loadContext:r,...o}=t||{},s=r?await r.fetchServiceMetadata(e,o):await(0,n.L)(e,o),i=(0,a.G$)();p(s),u(s);const l={serviceJSON:s,preferredHost:i};if((s.currentVersion??0)<10.5)return l;const c=`${(0,a.$x)()??e}/layers`,y=r?await r.fetchServiceMetadata(c,o):await(0,n.L)(c,o);return p(y),u(y),l.layersJSON={layers:y.layers,tables:y.tables},l}function i(e){const{type:t}=e;return!!t&&o.has(t)}function l(e){return"Table"===e.type}function u(e){e.layers=e.layers?.filter(i),e.tables=e.tables?.filter(l)}function c(e){e.type||="Feature Layer"}function y(e){e.type||="Table"}function p(e){e.layers?.forEach(c),e.tables?.forEach(y)}function d(e){switch(e){case"Feature Layer":case"Table":return"FeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Catalog Layer":return"CatalogLayer"}return"FeatureLayer"}},26121:(e,t,r)=>{r.d(t,{ci:()=>s,dL:()=>n});var a=r(49186);async function n(e){const t=[];for(const r of e.allLayers)if("beforeSave"in r&&"function"==typeof r.beforeSave){const e=r.beforeSave();e&&t.push(e)}await Promise.allSettled(t)}r(77548);const o=new Set(["layer:unsupported","property:unsupported","symbol:unsupported","symbol-layer:unsupported","url:unsupported"]);function s(e,t,r){let n=(e.messages??[]).filter(({type:e})=>"error"===e).map(({name:e,message:t,details:r})=>new a.A(e,t,r));if(e.blockedRelativeUrls&&(n=n.concat(e.blockedRelativeUrls.map(e=>new a.A("url:unsupported",`Relative url '${e}' is not supported`)))),r){const{ignoreUnsupported:e,supplementalUnsupportedErrors:t=[],requiredPropertyChecksDisabled:a}=r;e&&(n=n.filter(({name:e})=>!(o.has(e)||t.includes(e)))),a&&(n=n.filter(e=>"web-document-write:property-required"!==e.name))}if(n.length>0)throw new a.A(t.errorName,"Failed to save due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:n})}},33359:(e,t,r)=>{r.d(t,{save:()=>N,saveAs:()=>R});var a=r(4576),n=(r(44208),r(49186),r(71530)),o=r(60694),s=r(23154),i=r(77548),l=r(88788),u=r(10407);const c="Feature Service",y="feature-layer-utils",p=`${y}-save`,d=`${y}-save-as`;function f(e){return{isValid:(0,i.W_)(e)&&(!("dynamicDataSource"in e)||!e.dynamicDataSource),errorMessage:"Feature layer should be a layer or table in a map or feature service"}}function m(e,t){const r=(0,l.m)(e,"portal-item");return t?.isTable&&(r.layerContainerType="tables"),r}function w(e){const t=[],r=[];for(const{layer:a,layerJSON:n}of e)h(a)?r.push(n):t.push(n);return{layers:t,tables:r}}function h(e,t){return e.isTable}function b(e){return w([e])}async function v(e,t){return/\/\d+\/?$/.test(e.url)?b(t[0]):async function(e,t){if(e.reverse(),!t)return w(e);const a=await async function(e,t){let a=await e.fetchData("json");if(function(e){return!!(e&&Array.isArray(e.layers)&&Array.isArray(e.tables))}(a)&&!(0,u.Y)(e,u.mm.HOSTED_SERVICE))return a;a||={},function(e){e.layers||=[],e.tables||=[]}(a);const{layer:{url:n,customParameters:o,apiKey:i}}=t[0];return await async function(e,t,a){const{url:n,customParameters:o,apiKey:i}=t,{serviceJSON:l,layersJSON:u}=await(0,s.Q)(n,{customParameters:o,apiKey:i}),c=I(e.layers,l.layers,a),y=I(e.tables,l.tables,a);e.layers=c.itemResources,e.tables=y.itemResources;const p=[...c.added,...y.added],d=u?[...u.layers,...u.tables]:[];await async function(e,t,a,n){const o=await async function(e){const t=[];e.forEach(({type:e})=>{switch((0,s.K)(e)){case"CatalogLayer":t.push(Promise.all([r.e(1214),r.e(708),r.e(893),r.e(8628),r.e(2593),r.e(9279)]).then(r.bind(r,83508)).then(e=>e.default));break;case"FeatureLayer":t.push(Promise.all([r.e(1214),r.e(9953),r.e(1017),r.e(8654),r.e(4342)]).then(r.bind(r,68654)).then(e=>e.default));break;case"OrientedImageryLayer":t.push(Promise.all([r.e(1214),r.e(9953),r.e(1017),r.e(8654),r.e(9361)]).then(r.bind(r,9352)).then(e=>e.default))}});const a=await Promise.all(t),n=new Map;return e.forEach(({type:e},t)=>{n.set(e,a[t])}),n}(t),i=t.map(({id:e,type:t})=>new(o.get(t))({url:a,layerId:e,sourceJSON:n.find(({id:t})=>t===e)}));await Promise.allSettled(i.map(e=>e.load())),i.forEach(t=>{const{layerId:r,loaded:a,defaultPopupTemplate:n}=t;if(!a||null==n)return;const o={id:r,popupInfo:n.toJSON()};L(t,"ArcGISFeatureLayer"===t.operationalLayerType?o:{...o,layerType:t.operationalLayerType},e)})}(e,p,n,d)}(a,{url:n??"",customParameters:o,apiKey:i},t.map(e=>e.layer.layerId)),a}(t,e);for(const t of e)L(t.layer,t.layerJSON,a);return function(e,t){const r=[],a=[];for(const{layer:e}of t){const{isTable:t,layerId:n}=e;t?a.push(n):r.push(n)}S(e.layers,r),S(e.tables,a)}(a,e),a}(t,e)}function S(e,t){if(e.length<2)return;const r=[];for(const{id:t}of e)r.push(t);(0,a.aI)(r.sort(g),t.slice().sort(g))&&e.sort((e,r)=>{const a=t.indexOf(e.id),n=t.indexOf(r.id);return a<n?-1:a>n?1:0})}function g(e,t){return e<t?-1:e>t?1:0}function I(e,t,r){const n=(0,a.iv)(e,t,(e,t)=>e.id===t.id);e=e.filter(e=>!n.removed.some(t=>t.id===e.id));const o=n.added;return o.forEach(({id:t})=>{e.push({id:t})}),{itemResources:e,added:o.filter(({id:e})=>!r.includes(e))}}function L(e,t,r){e.isTable?P(r.tables,t):P(r.layers,t)}function P(e,t){const r=e.findIndex(({id:e})=>e===t.id);-1===r?e.push(t):e[r]=t}function T(e){if(!("layerType"in e))return!!e.charts?.length;switch(e.layerType){case"OrientedImageryLayer":return!!e.charts?.length;case"SubtypeGroupLayer":return!!e.layers.some(e=>!!e.charts?.length);case"SubtypeGroupTable":return!!e.tables.some(e=>!!e.charts?.length);case"CatalogLayer":return!!e.footprintLayer?.charts?.length}}function O(e,t){let r=0,a=0,n=0,o=0;for(const e of[...t.layers,...t.tables])if(T(e)&&o++,"layerType"in e)switch(e.layerType){case"OrientedImageryLayer":r++;break;case"SubtypeGroupLayer":a++;break;case"SubtypeGroupTable":n++}(0,u.Sm)(e,u.mm.ORIENTED_IMAGERY_LAYER,r>0),(0,u.Sm)(e,u.mm.SUBTYPE_GROUP_LAYER,a>0),(0,u.Sm)(e,u.mm.SUBTYPE_GROUP_TABLE,n>0),(0,u.Sm)(e,u.mm.CHARTS,o>0)}async function A(e,t,r){O(t,r)}async function E(e,t,r){const{url:a,layerId:n,title:s,fullExtent:i,isTable:l}=e,c=(0,o.qg)(a);t.url=("FeatureServer"===c?.serverType?a:`${a}/${n}`)??null,t.title||=s,t.extent=null,l||null==i||(t.extent=await(0,u.sQ)(i)),function(e,t,r){(0,u.OM)(t,u.mm.METADATA),(0,u.Sm)(t,u.mm.MULTI_LAYER,e.length>1),(0,u.Sm)(t,u.mm.SINGLE_LAYER,1===e.length),(0,u.Sm)(t,u.mm.TABLE,r.tables.length>0&&0===r.layers.length),O(t,r)}([e],t,r)}async function N(e,t){return(0,n.UN)({layer:e,itemType:c,validateLayer:f,createJSONContext:t=>m(t,e),createItemData:(e,t)=>v(t,[e]),errorNamePrefix:p,setItemProperties:A},t)}async function R(e,t,r){return(0,n.Uh)({layer:e,itemType:c,validateLayer:f,createJSONContext:t=>m(t,e),createItemData:(e,t)=>Promise.resolve(b(e)),errorNamePrefix:d,newItem:t,setItemProperties:E},r)}},46130:(e,t,r)=>{r.d(t,{v:()=>n});var a=r(76553);function n(e){e?.writtenProperties&&e.writtenProperties.forEach(({target:e,propName:t,newOrigin:r})=>{(0,a.H)(e)&&r&&e.originOf(t)!==r&&e.updateOrigin(t,r)})}},71530:(e,t,r)=>{r.d(t,{UN:()=>b,Uh:()=>v});var a=r(49186),n=r(46130),o=r(20655),s=r(80812),i=r(88788),l=r(10407),u=r(26121);async function c(e){const{layer:t,errorNamePrefix:r,validateLayer:n}=e;await t.load(),function(e,t,r){const n=r(e);if(!n.isValid)throw new a.A(`${t}:invalid-parameters`,n.errorMessage,{layer:e})}(t,r,n)}function y(e,t){return`Layer (title: ${e.title}, id: ${e.id}) of type '${e.declaredClass}' ${t}`}function p(e){const{item:t,errorNamePrefix:r,layer:n,validateItem:o}=e;if(function(e){const{item:t,itemType:r,additionalItemType:n,errorNamePrefix:o,layer:s}=e,i=[r];if(n&&i.push(n),!i.includes(t.type)){const e=i.map(e=>`'${e}'`).join(", ");throw new a.A(`${o}:portal-item-wrong-type`,`Portal item type should be one of: "${e}"`,{item:t,layer:s})}}(e),o){const e=o(t);if(!e.isValid)throw new a.A(`${r}:invalid-parameters`,e.errorMessage,{layer:n})}}function d(e){const{layer:t,errorNamePrefix:r}=e,{portalItem:n}=t;if(!n)throw new a.A(`${r}:portal-item-not-set`,y(t,"requires the portalItem property to be set"));if(!n.loaded)throw new a.A(`${r}:portal-item-not-loaded`,y(t,"cannot be saved to a portal item that does not exist or is inaccessible"));p({...e,item:n})}function f(e){const{newItem:t,itemType:r}=e;let a=s.default.from(t);return a.id&&(a=a.clone(),a.id=null),a.type??=r,a.portal??=o.A.getDefault(),p({...e,item:a}),a}function m(e){return(0,i.m)(e,"portal-item")}async function w(e,t,r){"beforeSave"in e&&"function"==typeof e.beforeSave&&await e.beforeSave();const a=e.write({},t);return await Promise.all(t.resources?.pendingOperations??[]),(0,u.ci)(t,{errorName:"layer-write:unsupported"},r),a}function h(e){(0,l.LG)(e,l.mm.JSAPI),e.typeKeywords&&(e.typeKeywords=e.typeKeywords.filter((e,t,r)=>r.indexOf(e)===t))}async function b(e,t){const{layer:r,createItemData:a,createJSONContext:o,setItemProperties:s,saveResources:i,supplementalUnsupportedErrors:l}=e;await c(e),d(e);const u=r.portalItem,y=o?o(u):m(u),p=await w(r,y,{...t,supplementalUnsupportedErrors:l}),f=await a({layer:r,layerJSON:p},u);return await(s?.(r,u,f)),h(u),await u.update({data:f}),(0,n.v)(y),await(i?.(u,y)),u}async function v(e,t){const{layer:r,createItemData:a,createJSONContext:o,setItemProperties:s,saveResources:i,supplementalUnsupportedErrors:l}=e;await c(e);const u=f(e),y=o?o(u):m(u),p=await w(r,y,{...t,supplementalUnsupportedErrors:l}),d=await a({layer:r,layerJSON:p},u);return await s(r,u,d),h(u),await async function(e,t,r){const a=e.portal;await a.signIn(),await a.user.addItem({item:e,data:t,folder:r?.folder})}(u,d,t),r.portalItem=u,(0,n.v)(y),await(i?.(u,y)),u}},76553:(e,t,r)=>{function a(e){return e&&"getAtOrigin"in e&&"originOf"in e}r.d(t,{H:()=>a})},88788:(e,t,r)=>{r.d(t,{m:()=>s,v:()=>o});var a=r(84952),n=r(20655);function o(e,t){return{...i(e,t),readResourcePaths:[]}}function s(e,t,r){const n=(0,a.An)(e.itemUrl);return{...i(e,t),messages:[],writtenProperties:[],blockedRelativeUrls:[],verifyItemRelativeUrls:n?{rootPath:n.path,writtenUrls:[]}:null,resources:r?{toAdd:[],toUpdate:[],toKeep:[],pendingOperations:[]}:null}}function i(e,t){return{origin:t,url:(0,a.An)(e.itemUrl),portal:e.portal||n.A.getDefault(),portalItem:e}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2288],{159:(e,n,t)=>{t.d(n,{A:()=>u});var r,o=t(31635),i=t(69622),a=t(10107),l=(t(44208),t(53966),t(87811),t(64108)),s=t(99157);let u=r=class extends i.A{constructor(e){super(e),this.steps=[]}getInverse(){const e=new r;for(let n=this.steps.length-1;n>=0;n--){const t=this.steps[n];e.steps.push(t.getInverse())}return e}};(0,o.Cg)([(0,a.MZ)({type:[s.A],nonNullable:!0})],u.prototype,"steps",void 0),u=r=(0,o.Cg)([(0,l.$)("esri.geometry.operators.support.GeographicTransformation")],u)},9762:(e,n,t)=>{t.r(n),t.d(n,{projectBuffer:()=>o});var r=t(37539);function o(e,n,t,o,i,a,l=Math.floor(e.length/3)){const s=(0,r.jd)(n,i);if(null==s)return!1;if(s===r.pO){if(e===o&&t===a)return!0;const n=t+3*l;for(let r=t,i=a;r<n;r++,i++)o[i]=e[r];return!0}const u=t+3*l;for(let n=t,r=a;n<u;n+=3,r+=3)s(e,n,o,r);return!0}},23150:(e,n,t)=>{t.d(n,{A:()=>s});var r=t(31635),o=t(10107),i=(t(44208),t(53966),t(87811),t(64108)),a=t(82799),l=t(54238);let s=class extends l.A{constructor(e){super(e),this.originId=null,this.destinationId=null,this.layoutGeometry=null}};(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],s.prototype,"originId",void 0),(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],s.prototype,"destinationId",void 0),(0,r.Cg)([(0,o.MZ)({type:a.A,json:{write:!0}})],s.prototype,"layoutGeometry",void 0),s=(0,r.Cg)([(0,i.$)("esri.rest.knowledgeGraph.Relationship")],s)},25927:(e,n,t)=>{t.d(n,{A:()=>s});var r=t(31635),o=t(10107),i=(t(44208),t(53966),t(87811),t(64108)),a=t(86738),l=t(54238);let s=class extends l.A{constructor(e){super(e),this.layoutGeometry=null}};(0,r.Cg)([(0,o.MZ)({type:a.A,json:{write:!0}})],s.prototype,"layoutGeometry",void 0),s=(0,r.Cg)([(0,i.$)("esri.rest.knowledgeGraph.Entity")],s)},37539:(e,n,t)=>{t.d(n,{pO:()=>g,jd:()=>f,Tp:()=>d,w5:()=>p});var r=t(34727),o=t(83047),i=t(73941),a=t(79258);Math.PI;const l=a.$O.radius,s=a.$O.eccentricitySquared,u={a1:l*s,a2:l*s*l*s,a3:l*s*s/2,a4:l*s*l*s*2.5,a5:l*s+l*s*s/2,a6:1-s};a.$O.radius,a.$O.flattening,a.Sw.radius,a.Sw.flattening,a.sH.radius,a.sH.flattening,a.sH.radius;var c=t(21325);const p={2:{5:g,7:null,9:null,10:g,1:A,6:null,8:null,0:null,3:y,11:w,2:g,4:C},5:{5:g,7:null,9:null,10:g,1:A,6:null,8:null,0:null,3:y,11:w,2:g,4:C},7:{5:null,7:g,9:null,10:g,1:null,6:x,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:g,10:g,1:null,6:null,8:M,0:null,3:null,11:null,2:null,4:null},3:{5:m,7:null,9:null,10:m,1:function(e,n,t,r){const o=e[n]/T,i=$-2*Math.atan(Math.exp(-e[n+1]/T)),a=T+e[n+2],l=Math.cos(i)*a;t[r]=Math.cos(o)*l,t[r+1]=Math.sin(o)*l,t[r+2]=Math.sin(i)*a},6:null,8:null,0:null,3:g,11:function(e,n,t,r){m(e,n,t,r),w(t,r,t,r)},2:m,4:function(e,n,t,r){m(e,n,t,r),C(t,r,t,r)}},4:{5:k,7:null,9:null,10:k,1:function(e,n,t,r){k(e,n,t,r),A(t,r,t,r)},6:null,8:null,0:null,3:function(e,n,t,r){k(e,n,t,r),y(t,r,t,r)},11:function(e,n,t,r){k(e,n,t,r),w(t,r,t,r)},2:k,4:g},1:{5:P,7:null,9:null,10:P,1:g,6:null,8:null,0:null,3:function(e,n,t,r){P(e,n,t,r),y(t,r,t,r)},11:function(e,n,t,r){P(e,n,t,r),w(t,r,t,r)},2:P,4:function(e,n,t,r){P(e,n,t,r),C(t,r,t,r)}},6:{5:null,7:I,9:null,10:I,1:null,6:g,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:j,10:j,1:null,6:null,8:g,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:g,3:null,11:null,2:null,4:null},10:{5:g,7:g,9:g,10:g,1:A,6:x,8:M,0:null,3:y,11:w,2:g,4:C},11:{5:R,7:null,9:null,10:R,1:function(e,n,t,r){R(e,n,t,r),A(t,r,t,r)},6:null,8:null,0:null,3:function(e,n,t,r){R(e,n,t,r),y(t,r,t,r)},11:g,2:R,4:function(e,n,t,r){R(e,n,t,r),C(t,r,t,r)}}};function f(e,n){return d(e,n)?.projector}function d(e,n){if(null==e||null==n)return null;if(G.source.spatialReference===e&&G.dest.spatialReference===n)return G;const t=h(e,G.source),r=h(n,G.dest);return 0===t&&0===r?(0,c.aI)(e,n)?G.projector=g:G.projector=null:G.projector=p[t][r],G}function h(e,n){return e?n.spatialReference===e?n.spatialReferenceId:(n.spatialReference=e,"metersPerUnit"in n&&(n.metersPerUnit=(0,o.GA)(e,1)),(0,i.jA)(e)?n.spatialReferenceId=1:(0,c.oT)(e)?n.spatialReferenceId=2:(0,c.K8)(e)?n.spatialReferenceId=3:(0,c.r1)(e)?n.spatialReferenceId=11:e.wkt===i.Ro.wkt?n.spatialReferenceId=4:4490===e.wkid?n.spatialReferenceId=5:e.wkt===i.FY.wkt?n.spatialReferenceId=6:e.wkt===i.LJ.wkt?n.spatialReferenceId=8:(0,c.q8)(e)?n.spatialReferenceId=7:(0,c.KQ)(e)?n.spatialReferenceId=9:n.spatialReferenceId=0):0}function g(e,n,t,r){e!==t&&(t[r++]=e[n++],t[r++]=e[n++],t[r]=e[n])}function m(e,n,t,r){t[r]=O*(e[n]/T),t[r+1]=O*($-2*Math.atan(Math.exp(-e[n+1]/T))),t[r+2]=e[n+2]}function y(e,n,t,o){!function(e,n,t,o,i){const a=.4999999*Math.PI,l=(0,r.qE)(Z*e[n+1],-a,a),s=Math.sin(l);t[o++]=Z*e[n]*i.radius,t[o++]=i.halfSemiMajorAxis*Math.log((1+s)/(1-s)),t[o]=e[n+2]}(e,n,t,o,a.$O)}function w(e,n,t,r){t[r]=e[n]*b,t[r+1]=e[n+1]*b,t[r+2]=e[n+2]}function R(e,n,t,r){t[r]=e[n]*z,t[r+1]=e[n+1]*z,t[r+2]=e[n+2]}function v(e,n,t,r,o){const i=o+e[n+2],a=Z*e[n+1],l=Z*e[n],s=Math.cos(a)*i;t[r]=Math.cos(l)*s,t[r+1]=Math.sin(l)*s,t[r+2]=Math.sin(a)*i}function M(e,n,t,r){v(e,n,t,r,a.Sw.radius)}function x(e,n,t,r){v(e,n,t,r,a.sH.radius)}function A(e,n,t,r){v(e,n,t,r,a.$O.radius)}function S(e,n,t,o,i){const a=e[n],l=e[n+1],s=e[n+2],u=Math.sqrt(a*a+l*l+s*s),c=(0,r.YN)(s/(0===u?1:u)),p=Math.atan2(l,a);t[o++]=O*p,t[o++]=O*c,t[o]=u-i}function j(e,n,t,r){S(e,n,t,r,a.Sw.radius)}function I(e,n,t,r){S(e,n,t,r,a.sH.radius)}function P(e,n,t,r){S(e,n,t,r,a.$O.radius)}function C(e,n,t,r){!function(e,n,t,r,o){const i=Z*e[n],a=Z*e[n+1],l=e[n+2],s=Math.sin(a),u=Math.cos(a),c=o.radius/Math.sqrt(1-o.eccentricitySquared*s*s);t[r++]=(c+l)*u*Math.cos(i),t[r++]=(c+l)*u*Math.sin(i),t[r++]=(c*(1-o.eccentricitySquared)+l)*s}(e,n,t,r,a.$O)}function k(e,n,t,r){const o=u,i=e[n],l=e[n+1],s=e[n+2];let c,p,f,d,h,g,m,y,w,R,v,M,x,A,S,j,I,P,C,k,G;c=Math.abs(s),p=i*i+l*l,f=Math.sqrt(p),d=p+s*s,h=Math.sqrt(d),k=Math.atan2(l,i),g=s*s/d,m=p/d,A=o.a2/h,S=o.a3-o.a4/h,m>.3?(y=c/h*(1+m*(o.a1+A+g*S)/h),C=Math.asin(y),R=y*y,w=Math.sqrt(1-R)):(w=f/h*(1-g*(o.a5-A-m*S)/h),C=Math.acos(w),R=1-w*w,y=Math.sqrt(R)),v=1-a.$O.eccentricitySquared*R,M=a.$O.radius/Math.sqrt(v),x=o.a6*M,A=f-M*w,S=c-x*y,I=w*A+y*S,j=w*S-y*A,P=j/(x/v+I),C+=P,G=I+j*P/2,s<0&&(C=-C),t[r++]=O*k,t[r++]=O*C,t[r]=G}const G={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:g},Z=(0,r.kU)(1),O=(0,r.KJ)(1),$=.5*Math.PI,T=a.$O.radius,b=T*Math.PI/180,z=180/(T*Math.PI)},40662:(e,n,t)=>{t.d(n,{A:()=>a});var r=t(31635),o=(t(53966),t(44208),t(87811),t(49186),t(64108)),i=t(77901);let a=class extends i.A{constructor(e){super(e)}};a=(0,r.Cg)([(0,o.$)("esri.rest.knowledgeGraph.ObjectValue")],a)},42095:(e,n,t)=>{t.d(n,{A:()=>s});var r=t(31635),o=t(25482),i=t(10107),a=(t(44208),t(53966),t(87811),t(64108)),l=t(77901);let s=class extends o.o{constructor(e){super(e),this.path=[]}};(0,r.Cg)([(0,i.MZ)({type:[l.A],json:{write:!0}})],s.prototype,"path",void 0),s=(0,r.Cg)([(0,a.$)("esri.rest.knowledgeGraph.Path")],s)},42538:(e,n,t)=>{t.d(n,{A:()=>u});var r=t(31635),o=t(10107),i=(t(44208),t(53966),t(87811),t(64108)),a=t(16930),l=t(69622);let s=class extends l.A{constructor(e){super(e),this.openCypherQuery=""}};(0,r.Cg)([(0,o.MZ)()],s.prototype,"openCypherQuery",void 0),s=(0,r.Cg)([(0,i.$)("esri.rest.knowledgeGraph.GraphQuery")],s);let u=class extends s{constructor(e){super(e),this.bindParameters=null,this.bindGeometryQuantizationParameters=null,this.outputQuantizationParameters=null,this.outputSpatialReference=null,this.provenanceBehavior=null}};(0,r.Cg)([(0,o.MZ)()],u.prototype,"bindParameters",void 0),(0,r.Cg)([(0,o.MZ)()],u.prototype,"bindGeometryQuantizationParameters",void 0),(0,r.Cg)([(0,o.MZ)()],u.prototype,"outputQuantizationParameters",void 0),(0,r.Cg)([(0,o.MZ)({type:a.A})],u.prototype,"outputSpatialReference",void 0),(0,r.Cg)([(0,o.MZ)()],u.prototype,"provenanceBehavior",void 0),u=(0,r.Cg)([(0,i.$)("esri.rest.knowledgeGraph.GraphQueryStreaming")],u)},54238:(e,n,t)=>{t.d(n,{A:()=>l});var r=t(31635),o=t(10107),i=(t(44208),t(53966),t(87811),t(64108)),a=t(77901);let l=class extends a.A{constructor(e){super(e),this.typeName=null,this.id=null}};(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],l.prototype,"typeName",void 0),(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],l.prototype,"id",void 0),l=(0,r.Cg)([(0,i.$)("esri.rest.knowledgeGraph.GraphNamedObject")],l)},62815:(e,n,t)=>{t.d(n,{N:()=>a});var r=t(83047),o=t(73941),i=t(21325);function a(e,n,t){if(null==n||null==t||t.vcsWkid||(0,i.aI)(n,t)||(0,o.xP)(n)||(0,o.xP)(t))return null;const a=(0,r.G9)(n)/(0,r.G9)(t);if(1===a)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,n){null!=e?.z&&(e.z*=n)}(e,a);case"polyline":case"esriGeometryPolyline":return e=>function(e,n){if(e)for(const t of e.paths)for(const e of t)e.length>2&&(e[2]*=n)}(e,a);case"polygon":case"esriGeometryPolygon":return e=>function(e,n){if(e)for(const t of e.rings)for(const e of t)e.length>2&&(e[2]*=n)}(e,a);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,n){if(e)for(const t of e.points)t.length>2&&(t[2]*=n)}(e,a);case"extent":case"esriGeometryEnvelope":return e=>function(e,n){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=n,e.zmax*=n)}(e,a);default:return null}}},77901:(e,n,t)=>{t.d(n,{A:()=>l});var r=t(31635),o=t(25482),i=t(10107),a=(t(44208),t(53966),t(87811),t(64108));let l=class extends o.o{constructor(e){super(e),this.properties=null}};(0,r.Cg)([(0,i.MZ)({json:{write:!0}})],l.prototype,"properties",void 0),l=(0,r.Cg)([(0,a.$)("esri.rest.knowledgeGraph.GraphObject")],l)},80672:(e,n,t)=>{t.d(n,{R:()=>o});var r=t(20655);function o(e,n){return null===e?n:new r.A({url:e.field("url")})}},91218:(e,n,t)=>{t.r(n),t.d(n,{canProjectWithoutEngine:()=>E,initializeProjection:()=>K,isEqualBaseGCS:()=>F,isLoaded:()=>G,isLoadedOrLoad:()=>Z,isLoadedOrLoadFor:()=>O,load:()=>T,project:()=>b,projectExtent:()=>te,projectMany:()=>z,projectMultipoint:()=>V,projectOrLoad:()=>q,projectOrLoadMany:()=>N,projectPoint:()=>H,projectPolygon:()=>ee,projectPolyline:()=>X,projectWithZConversion:()=>L,projectWithoutEngine:()=>Q,requiresLoad:()=>$,test:()=>J,tryProjectWithZConversion:()=>D,unload:()=>B});var r=t(49186),o=t(74887),i=t(62788),a=t(95488),l=t(51850),s=t(21276),u=t(73941),c=t(5443),p=t(91075),f=t(48526),d=t(86738),h=t(39829),g=t(82799),m=t(16930),y=t(159),w=t(9762),R=t(37539);function v(e,n,t,r,o,i){return M[0]=e,M[1]=n,M[2]=t,(0,w.projectBuffer)(M,r,0,o,i,0)}const M=(0,l.vt)();var x=t(21325),A=t(62815);let S=null,j=null,I=null,P=null,C={};const k=new a.I;function G(){return!!(j?.isLoaded()&&I?.isLoaded()&&P?.isLoaded())}function Z(){return!!G()||((0,i.gc)(k),T(),!1)}function O(e,n){return!e||!n||E(e,n)||Z()}function $(e,n){return!E(e,n)&&!G()}async function T(e){null==S&&(S=Promise.all([t.e(3276).then(t.bind(t,83276)).then(e=>(j=e,j.load())),t.e(8377).then(t.bind(t,8377)).then(e=>(I=e,I.load())),t.e(2158).then(t.bind(t,12158)).then(e=>(P=e,P.load()))])),await S,(0,o.Te)(e),k.notify()}function b(e,n,t){return Array.isArray(e)?0===e.length?[]:((0,s.H)(e),z(e,e[0].spatialReference,n,t)):((0,s.f)(e),z([e],e.spatialReference,n,t)[0])}function z(e,n,t,r){if(null==n||null==t)return e;if(E(n,t,r))return e.map(e=>Q(e,n,t));if(null==r?.geographicTransformation&&(0,u.jA)(n))return e.map(e=>Q(e,n,m.A.WGS84)).map(e=>D(e,t));if(null==r?.geographicTransformation&&(0,u.jA)(t))return e.map(e=>D(e,m.A.WGS84)).map(e=>Q(e,m.A.WGS84,t));if(!G())throw new W;if(!r?.geographicTransformation)if(r?.extendedParams)r={...r,geographicTransformation:P.getTransformation(n,t,r.areaOfInterestExtent)||new y.A};else if(!r?.areaOfInterestExtent){const e=function(e,n){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",n.wkid?.toString()??"-1",n.wkt?.toString()??"",n.wkt2?.toString()??""].join()}(n,t);let o=C[e];o||(o=P.getTransformation(n,t)||new y.A,C[e]=o),r={geographicTransformation:o}}return e[0].spatialReference||(e[0].spatialReference=n),e[0]instanceof p.A?j.executeMany(e,t,r):I.executeMany(e,t,r)}function q(e,n){const t=N([e],n);return null!=t.pending?{pending:t.pending,geometry:null}:null!=t.geometries?{pending:null,geometry:t.geometries[0]}:{pending:null,geometry:null}}function N(e,n){if(!G())for(const t of e)if(null!=t&&!(0,x.aI)(t.spatialReference,n)&&(0,x.fn)(t.spatialReference)&&(0,x.fn)(n)&&!E(t.spatialReference,n))return(0,i.gc)(k),{pending:T(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,x.aI)(e.spatialReference,n)?e:(0,x.fn)(e.spatialReference)&&(0,x.fn)(n)?D(e,n):null)}}class W extends r.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function B(){S=null,j=null,I=null,P=null,C={}}const J={get loadPromise(){return S}};function D(e,n){try{const t=b(e,n);if(null==t)return null;"xmin"in e&&"xmin"in t&&(t.zmin=e.zmin,t.zmax=e.zmax);const r=(0,A.N)(t.type,e.spatialReference,n);return null!=r&&r(t),t}catch(e){if(!(e instanceof W))throw e;return null}}async function L(e,n,t){const r=e.spatialReference;return null!=r&&null!=n&&await K(r,n,null,t),D(e,n)}function E(e,n,t){return!(t?.areaOfInterestExtent||t?.extendedParams||t?.geographicTransformation)&&(!!(0,x.aI)(e,n)||(0,x.fn)(e)&&(0,x.fn)(n)&&!!(0,R.jd)(e,n))}function F(e,n){if((0,x.aI)(e,n))return!0;if(!(0,x.fn)(e)||!(0,x.fn)(n))return!1;const t=(0,x.oT)(e)||(0,x.K8)(e)||(0,x.x1)(e),r=(0,x.oT)(n)||(0,x.K8)(n)||(0,x.x1)(n);return t&&r}async function K(e,n,t,r){if(G())return(0,o.NO)(r);if(Array.isArray(e)){for(const{source:n,dest:t,options:o}of e)if(n&&t&&!E(n,t,o))return T(r)}else if(e&&n&&!E(e,n,t))return T(r);return(0,o.NO)(r)}function Q(e,n,t){return e?"x"in e?U(e,n,new d.A,t,0):"xmin"in e?re(e,n,new c.A,t,0):"rings"in e?ne(e,n,new h.A,t,0):"paths"in e?_(e,n,new g.A,t,0):"points"in e?Y(e,n,new f.A,t,0):null:null}function H(e,n,t=n.spatialReference,r=0){return null!=t&&null!=e.spatialReference&&null!=U(e,e.spatialReference,n,t,r)}function U(e,n,t,r,o){ie[0]=e.x,ie[1]=e.y;const i=e.z;return ie[2]=void 0!==i?i:o,(0,w.projectBuffer)(ie,n,0,ie,r,0)?(t.x=ie[0],t.y=ie[1],t.spatialReference=r,void 0!==i||(0,u.xP)(r)?(t.z=ie[2],t.hasZ=!0):(t.z=void 0,t.hasZ=!1),void 0===e.m?(t.m=void 0,t.hasM=!1):(t.m=e.m,t.hasM=!0),t):null}function V(e,n,t=n.spatialReference,r=0){return null!=e.spatialReference&&null!=t&&null!=Y(e,e.spatialReference,n,t,r)}function Y(e,n,t,r,o){const{points:i,hasZ:a,hasM:l}=e,s=[],c=i.length,p=[];for(const e of i)p.push(e[0],e[1],a?e[2]:o);if(!(0,w.projectBuffer)(p,n,0,p,r,0,c))return null;const f=a||(0,u.xP)(r);for(let e=0;e<c;++e){const n=3*e,t=p[n],r=p[n+1];f&&l?s.push([t,r,p[n+2],i[e][3]]):f?s.push([t,r,p[n+2]]):l?s.push([t,r,i[e][2]]):s.push([t,r])}return t.points=s,t.spatialReference=r,t.hasZ=a,t.hasM=l,t}function X(e,n,t=n.spatialReference,r=0){return null!=e.spatialReference&&null!=t&&null!=_(e,e.spatialReference,n,t,r)}function _(e,n,t,r,o){const{paths:i,hasZ:a,hasM:l}=e,s=[];if(!oe(i,a??!1,l??!1,n,s,r,o))return null;const c=a||(0,u.xP)(r);return t.paths=s,t.spatialReference=r,t.hasZ=c,t.hasM=l,t}function ee(e,n,t=n.spatialReference,r=0){return null!=e.spatialReference&&null!=t&&null!=ne(e,e.spatialReference,n,t,r)}function ne(e,n,t,r,o){const{rings:i,hasZ:a,hasM:l}=e,s=[];if(!oe(i,a??!1,l??!1,n,s,r,o))return null;const c=a||(0,u.xP)(r);return t.rings=s,t.spatialReference=r,t.hasZ=c,t.hasM=l,t}function te(e,n,t=n.spatialReference,r=0){return null!=e.spatialReference&&null!=t&&null!=re(e,e.spatialReference,n,t,r)}function re(e,n,t,r,o){const{xmin:i,ymin:a,xmax:l,ymax:s,hasZ:c,hasM:p}=e;if(!v(i,a,c?e.zmin:o,n,ie,r))return null;const f=c||(0,u.xP)(r);return t.xmin=ie[0],t.ymin=ie[1],f&&(t.zmin=ie[2]),v(l,s,c?e.zmax:o,n,ie,r)?(t.xmax=ie[0],t.ymax=ie[1],f&&(t.zmax=ie[2]),p&&(t.mmin=e.mmin,t.mmax=e.mmax),t.spatialReference=r,t):null}function oe(e,n,t,r,o,i,a=0){const l=new Array;for(const t of e)for(const e of t)l.push(e[0],e[1],n?e[2]:a);if(!(0,w.projectBuffer)(l,r,0,l,i,0))return!1;let s=0;o.length=0;const c=n||(0,u.xP)(i);for(const n of e){const e=new Array;for(const r of n)c&&t?e.push([l[s++],l[s++],l[s++],r[3]]):c?e.push([l[s++],l[s++],l[s++]]):t?(e.push([l[s++],l[s++],r[2]]),s++):(e.push([l[s++],l[s++]]),s++);o.push(e)}return!0}const ie=(0,l.vt)()},92288:(e,n,t)=>{t.r(n),t.d(n,{registerFunctions:()=>N});var r=t(92602),o=t(47609),i=t(66395),a=t(85935),l=t(78878),s=t(80672),u=t(91075),c=t(91218),p=t(16930),f=t(28735),d=t(20655),h=t(80812),g=t(43773),m=t(56507),y=t(65864),w=t(2272),R=t(92300),v=t(31635),M=t(25482),x=t(10107),A=(t(44208),t(53966),t(87811),t(64108)),S=t(21325);let j=class extends M.o{constructor(e){super(e),this.geometries=[],this.outSpatialReference=null,this.transformation=null,this.transformForward=null}toJSON(){const e=this.geometries.map(e=>e.toJSON()),n=this.geometries[0],t={};return t.outSR=(0,S.YX)(this.outSpatialReference),t.inSR=(0,S.YX)(n.spatialReference),t.geometries=JSON.stringify({geometryType:(0,y.$B)(n),geometries:e}),this.transformation&&(t.transformation=this.transformation.wkid||JSON.stringify(this.transformation)),null!=this.transformForward&&(t.transformForward=this.transformForward),t}};(0,v.Cg)([(0,x.MZ)()],j.prototype,"geometries",void 0),(0,v.Cg)([(0,x.MZ)({type:p.A,json:{read:{source:"outSR"}}})],j.prototype,"outSpatialReference",void 0),(0,v.Cg)([(0,x.MZ)()],j.prototype,"transformation",void 0),(0,v.Cg)([(0,x.MZ)()],j.prototype,"transformForward",void 0),j=(0,v.Cg)([(0,A.$)("esri.rest.support.ProjectParameters")],j);const I=(0,m.dp)(j);var P=t(25927),C=t(42538),k=t(40662),G=t(42095),Z=t(23150),O=t(54218);let $=null;async function T(e,n){const r=new h.default({portal:e,id:n});return await r.load(),null===$&&($=await Promise.all([t.e(2869),t.e(3910),t.e(5323),t.e(217),t.e(2568),t.e(4755)]).then(t.bind(t,62568))),await $.fetchKnowledgeGraph(r.url)}function b(e,n,t,r,o){if(null===e)return null;if((0,O.Kg)(e)||(0,O.Et)(e))return e;if((0,l.e)(e))return e.toJSDate();if((0,l.e)(e))return e.toJSDate();if((0,l.f)(e))return e.toStorageFormat();if((0,l.g)(e))return e.toStorageString();if((0,l.n)(e)){const i={};for(const a of e.keys())i[a]=b(e.field(a),n,t,r,o),i[a]instanceof u.A&&o.push({container:i,indexer:a});return i}if((0,O.cy)(e)){const i=e.map(e=>b(e,n,t,r,o));for(let e=0;e<i.length;e++)i[e]instanceof u.A&&o.push({container:i,indexer:e});return i}return(0,l.h)(e)?e.spatialReference.isWGS84?e:e.spatialReference.isWebMercator&&n?(0,f.ci)(e):e:void 0}function z(e,n){if(!e)return null;const t={};for(const r in e)t[r]=q(e[r],n);return t}function q(e,n){return null===e?null:(0,O.cy)(e)?e.map(e=>q(e,n)):e instanceof P.A?{graphTypeName:e.typeName,id:e.id,graphType:"entity",properties:z(e.properties,n)}:e instanceof k.A?{graphType:"object",properties:z(e.properties,n)}:e instanceof Z.A?{graphTypeName:e.typeName,id:e.id,graphType:"relationship",originId:e.originId??null,destinationId:e.destinationId??null,properties:z(e.properties,n)}:e instanceof G.A?{graphType:"path",path:e.path?e.path.map(e=>q(e,n)):null}:(0,l.h)(e)?function(e,n){if(!e)return e;if(e.spatialReference.isWGS84&&n.spatialReference.isWebMercator)return(0,f.Gh)(e);if(e.spatialReference.equals(n.spatialReference))return e;throw new a.D$(n,"WrongSpatialReference",null)}(e,n):(0,O.Kg)(e)||(0,O.Et)(e)||(0,O.$P)(e)?e:null}function N(e){"async"===e.mode&&(e.functions.knowledgegraphbyportalitem=function(n,t){return e.standardFunctionAsync(n,t,(e,r,i)=>{if((0,l.B)(i,2,2,n,t),null===i[0])throw new a.D$(n,"PortalRequired",t);if(i[0]instanceof o.A){const e=(0,l.u)(i[1]);let t;return t=n.services?.portal?n.services.portal:d.A.getDefault(),T((0,s.R)(i[0],t),e)}if(!1===(0,O.Kg)(i[0]))throw new a.D$(n,"InvalidParameter",t);const u=(0,l.u)(i[0]);return T(n.services?.portal??d.A.getDefault(),u)})},e.signatures.push({name:"knowledgegraphbyportalitem",min:2,max:2}),e.functions.querygraph=function(n,o){return e.standardFunctionAsync(n,o,async(e,s,u)=>{(0,l.B)(u,2,4,n,o);const f=u[0];if(!(0,l.o)(f))throw new a.D$(n,"InvalidParameter",o);const d=u[1];if(!(0,O.Kg)(d))throw new a.D$(n,"InvalidParameter",o);null===$&&($=await Promise.all([t.e(2869),t.e(3910),t.e(5323),t.e(217),t.e(2568),t.e(4755)]).then(t.bind(t,62568)));let h=null;const m=(0,l.J)(u[2],null);if(!(m instanceof i.A||null===m))throw new a.D$(n,"InvalidParameter",o);if(m){let e=[];h=b(m,!0,!1,n,e),e=e.filter(e=>!e.container[e.indexer].spatialReference.isWGS84),e.length>0&&await async function(e){const n=r.A.geometryServiceUrl??"";if(!n){(0,c.isLoaded)()||await(0,c.load)();for(const n of e)n.container[n.indexer]=(0,c.project)(n.container[n.indexer],p.A.WGS84);return}const t=e.map(e=>e.container[e.indexer]),o=new j({geometries:t,outSpatialReference:p.A.WGS84}),i=await async function(e,n){n=I(n);const t=(0,w.Dl)(e),r={...t.query,f:"json",...n.toJSON()},o=n.outSpatialReference,i=(0,y.$B)(n.geometries[0]),a=(0,w.jV)(r,void 0);return(0,g.A)(t.path+"/project",a).then(({data:{geometries:e}})=>(0,R.V)(e,i,o))}(n,o);for(let n=0;n<i.length;n++){const t=e[n];t.container[t.indexer]=i[n]}}(e)}const v=(0,l.J)(u[3],!1),M=new C.A({openCypherQuery:d,bindParameters:h,provenanceBehavior:v?"include":"exclude"});(f?.serviceDefinition?.currentVersion??11.3)>11.2&&(M.outputSpatialReference=n.spatialReference);const x=(await $.executeQueryStreaming(f,M)).resultRowsStream.getReader(),A=[];try{for(;;){const{done:e,value:t}=await x.read();if(e)break;if((0,O.cy)(t))for(const e of t)A.push(q(e,n));else{const e=[];for(const r of t)e.push(q(t[r],n));A.push(e)}}}catch(e){throw e}return i.A.convertJsonToArcade(A,(0,l.K)(n),!1,!0)})},e.signatures.push({name:"querygraph",min:2,max:4}))}},92300:(e,n,t)=>{t.d(n,{V:()=>i,X:()=>o});var r=t(65864);function o(e){return{geometryType:(0,r.$B)(e[0]),geometries:e.map(e=>e.toJSON())}}function i(e,n,t){const o=(0,r.xD)(n);return e.map(e=>{const n=o.fromJSON(e);return n.spatialReference=t,n})}},99157:(e,n,t)=>{t.d(n,{A:()=>s});var r,o=t(31635),i=t(69622),a=t(10107),l=(t(44208),t(53966),t(87811),t(64108));let s=r=class extends i.A{constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new r({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,o.Cg)([(0,a.MZ)()],s.prototype,"isInverse",void 0),(0,o.Cg)([(0,a.MZ)()],s.prototype,"wkt",void 0),(0,o.Cg)([(0,a.MZ)()],s.prototype,"wkid",void 0),s=r=(0,o.Cg)([(0,l.$)("esri.geometry.operators.support.GeographicTransformationStep")],s)}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2288],{159:(e,n,t)=>{t.d(n,{A:()=>u});var r,o=t(31635),i=t(69622),a=t(10107),l=(t(44208),t(53966),t(87811),t(64108)),s=t(99157);let u=r=class extends i.A{constructor(e){super(e),this.steps=[]}getInverse(){const e=new r;for(let n=this.steps.length-1;n>=0;n--){const t=this.steps[n];e.steps.push(t.getInverse())}return e}};(0,o.Cg)([(0,a.MZ)({type:[s.A],nonNullable:!0})],u.prototype,"steps",void 0),u=r=(0,o.Cg)([(0,l.$)("esri.geometry.operators.support.GeographicTransformation")],u)},9762:(e,n,t)=>{t.r(n),t.d(n,{projectBuffer:()=>o});var r=t(37539);function o(e,n,t,o,i,a,l=Math.floor(e.length/3)){const s=(0,r.jd)(n,i);if(null==s)return!1;if(s===r.pO){if(e===o&&t===a)return!0;const n=t+3*l;for(let r=t,i=a;r<n;r++,i++)o[i]=e[r];return!0}const u=t+3*l;for(let n=t,r=a;n<u;n+=3,r+=3)s(e,n,o,r);return!0}},23150:(e,n,t)=>{t.d(n,{A:()=>s});var r=t(31635),o=t(10107),i=(t(44208),t(53966),t(87811),t(64108)),a=t(82799),l=t(54238);let s=class extends l.A{constructor(e){super(e),this.originId=null,this.destinationId=null,this.layoutGeometry=null}};(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],s.prototype,"originId",void 0),(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],s.prototype,"destinationId",void 0),(0,r.Cg)([(0,o.MZ)({type:a.A,json:{write:!0}})],s.prototype,"layoutGeometry",void 0),s=(0,r.Cg)([(0,i.$)("esri.rest.knowledgeGraph.Relationship")],s)},25927:(e,n,t)=>{t.d(n,{A:()=>s});var r=t(31635),o=t(10107),i=(t(44208),t(53966),t(87811),t(64108)),a=t(86738),l=t(54238);let s=class extends l.A{constructor(e){super(e),this.layoutGeometry=null}};(0,r.Cg)([(0,o.MZ)({type:a.A,json:{write:!0}})],s.prototype,"layoutGeometry",void 0),s=(0,r.Cg)([(0,i.$)("esri.rest.knowledgeGraph.Entity")],s)},37539:(e,n,t)=>{t.d(n,{pO:()=>g,jd:()=>f,Tp:()=>d,w5:()=>p});var r=t(34727),o=t(83047),i=t(73941),a=t(79258);Math.PI;const l=a.$O.radius,s=a.$O.eccentricitySquared,u={a1:l*s,a2:l*s*l*s,a3:l*s*s/2,a4:l*s*l*s*2.5,a5:l*s+l*s*s/2,a6:1-s};a.$O.radius,a.$O.flattening,a.Sw.radius,a.Sw.flattening,a.sH.radius,a.sH.flattening,a.sH.radius;var c=t(21325);const p={2:{5:g,7:null,9:null,10:g,1:A,6:null,8:null,0:null,3:y,11:w,2:g,4:C},5:{5:g,7:null,9:null,10:g,1:A,6:null,8:null,0:null,3:y,11:w,2:g,4:C},7:{5:null,7:g,9:null,10:g,1:null,6:x,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:g,10:g,1:null,6:null,8:M,0:null,3:null,11:null,2:null,4:null},3:{5:m,7:null,9:null,10:m,1:function(e,n,t,r){const o=e[n]/T,i=$-2*Math.atan(Math.exp(-e[n+1]/T)),a=T+e[n+2],l=Math.cos(i)*a;t[r]=Math.cos(o)*l,t[r+1]=Math.sin(o)*l,t[r+2]=Math.sin(i)*a},6:null,8:null,0:null,3:g,11:function(e,n,t,r){m(e,n,t,r),w(t,r,t,r)},2:m,4:function(e,n,t,r){m(e,n,t,r),C(t,r,t,r)}},4:{5:k,7:null,9:null,10:k,1:function(e,n,t,r){k(e,n,t,r),A(t,r,t,r)},6:null,8:null,0:null,3:function(e,n,t,r){k(e,n,t,r),y(t,r,t,r)},11:function(e,n,t,r){k(e,n,t,r),w(t,r,t,r)},2:k,4:g},1:{5:P,7:null,9:null,10:P,1:g,6:null,8:null,0:null,3:function(e,n,t,r){P(e,n,t,r),y(t,r,t,r)},11:function(e,n,t,r){P(e,n,t,r),w(t,r,t,r)},2:P,4:function(e,n,t,r){P(e,n,t,r),C(t,r,t,r)}},6:{5:null,7:I,9:null,10:I,1:null,6:g,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:j,10:j,1:null,6:null,8:g,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:g,3:null,11:null,2:null,4:null},10:{5:g,7:g,9:g,10:g,1:A,6:x,8:M,0:null,3:y,11:w,2:g,4:C},11:{5:R,7:null,9:null,10:R,1:function(e,n,t,r){R(e,n,t,r),A(t,r,t,r)},6:null,8:null,0:null,3:function(e,n,t,r){R(e,n,t,r),y(t,r,t,r)},11:g,2:R,4:function(e,n,t,r){R(e,n,t,r),C(t,r,t,r)}}};function f(e,n){return d(e,n)?.projector}function d(e,n){if(null==e||null==n)return null;if(G.source.spatialReference===e&&G.dest.spatialReference===n)return G;const t=h(e,G.source),r=h(n,G.dest);return 0===t&&0===r?(0,c.aI)(e,n)?G.projector=g:G.projector=null:G.projector=p[t][r],G}function h(e,n){return e?n.spatialReference===e?n.spatialReferenceId:(n.spatialReference=e,"metersPerUnit"in n&&(n.metersPerUnit=(0,o.GA)(e,1)),(0,i.jA)(e)?n.spatialReferenceId=1:(0,c.oT)(e)?n.spatialReferenceId=2:(0,c.K8)(e)?n.spatialReferenceId=3:(0,c.r1)(e)?n.spatialReferenceId=11:e.wkt===i.Ro.wkt?n.spatialReferenceId=4:4490===e.wkid?n.spatialReferenceId=5:e.wkt===i.FY.wkt?n.spatialReferenceId=6:e.wkt===i.LJ.wkt?n.spatialReferenceId=8:(0,c.q8)(e)?n.spatialReferenceId=7:(0,c.KQ)(e)?n.spatialReferenceId=9:n.spatialReferenceId=0):0}function g(e,n,t,r){e!==t&&(t[r++]=e[n++],t[r++]=e[n++],t[r]=e[n])}function m(e,n,t,r){t[r]=O*(e[n]/T),t[r+1]=O*($-2*Math.atan(Math.exp(-e[n+1]/T))),t[r+2]=e[n+2]}function y(e,n,t,o){!function(e,n,t,o,i){const a=.4999999*Math.PI,l=(0,r.qE)(Z*e[n+1],-a,a),s=Math.sin(l);t[o++]=Z*e[n]*i.radius,t[o++]=i.halfSemiMajorAxis*Math.log((1+s)/(1-s)),t[o]=e[n+2]}(e,n,t,o,a.$O)}function w(e,n,t,r){t[r]=e[n]*b,t[r+1]=e[n+1]*b,t[r+2]=e[n+2]}function R(e,n,t,r){t[r]=e[n]*z,t[r+1]=e[n+1]*z,t[r+2]=e[n+2]}function v(e,n,t,r,o){const i=o+e[n+2],a=Z*e[n+1],l=Z*e[n],s=Math.cos(a)*i;t[r]=Math.cos(l)*s,t[r+1]=Math.sin(l)*s,t[r+2]=Math.sin(a)*i}function M(e,n,t,r){v(e,n,t,r,a.Sw.radius)}function x(e,n,t,r){v(e,n,t,r,a.sH.radius)}function A(e,n,t,r){v(e,n,t,r,a.$O.radius)}function S(e,n,t,o,i){const a=e[n],l=e[n+1],s=e[n+2],u=Math.sqrt(a*a+l*l+s*s),c=(0,r.YN)(s/(0===u?1:u)),p=Math.atan2(l,a);t[o++]=O*p,t[o++]=O*c,t[o]=u-i}function j(e,n,t,r){S(e,n,t,r,a.Sw.radius)}function I(e,n,t,r){S(e,n,t,r,a.sH.radius)}function P(e,n,t,r){S(e,n,t,r,a.$O.radius)}function C(e,n,t,r){!function(e,n,t,r,o){const i=Z*e[n],a=Z*e[n+1],l=e[n+2],s=Math.sin(a),u=Math.cos(a),c=o.radius/Math.sqrt(1-o.eccentricitySquared*s*s);t[r++]=(c+l)*u*Math.cos(i),t[r++]=(c+l)*u*Math.sin(i),t[r++]=(c*(1-o.eccentricitySquared)+l)*s}(e,n,t,r,a.$O)}function k(e,n,t,r){const o=u,i=e[n],l=e[n+1],s=e[n+2];let c,p,f,d,h,g,m,y,w,R,v,M,x,A,S,j,I,P,C,k,G;c=Math.abs(s),p=i*i+l*l,f=Math.sqrt(p),d=p+s*s,h=Math.sqrt(d),k=Math.atan2(l,i),g=s*s/d,m=p/d,A=o.a2/h,S=o.a3-o.a4/h,m>.3?(y=c/h*(1+m*(o.a1+A+g*S)/h),C=Math.asin(y),R=y*y,w=Math.sqrt(1-R)):(w=f/h*(1-g*(o.a5-A-m*S)/h),C=Math.acos(w),R=1-w*w,y=Math.sqrt(R)),v=1-a.$O.eccentricitySquared*R,M=a.$O.radius/Math.sqrt(v),x=o.a6*M,A=f-M*w,S=c-x*y,I=w*A+y*S,j=w*S-y*A,P=j/(x/v+I),C+=P,G=I+j*P/2,s<0&&(C=-C),t[r++]=O*k,t[r++]=O*C,t[r]=G}const G={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:g},Z=(0,r.kU)(1),O=(0,r.KJ)(1),$=.5*Math.PI,T=a.$O.radius,b=T*Math.PI/180,z=180/(T*Math.PI)},40662:(e,n,t)=>{t.d(n,{A:()=>a});var r=t(31635),o=(t(53966),t(44208),t(87811),t(49186),t(64108)),i=t(77901);let a=class extends i.A{constructor(e){super(e)}};a=(0,r.Cg)([(0,o.$)("esri.rest.knowledgeGraph.ObjectValue")],a)},42095:(e,n,t)=>{t.d(n,{A:()=>s});var r=t(31635),o=t(25482),i=t(10107),a=(t(44208),t(53966),t(87811),t(64108)),l=t(77901);let s=class extends o.o{constructor(e){super(e),this.path=[]}};(0,r.Cg)([(0,i.MZ)({type:[l.A],json:{write:!0}})],s.prototype,"path",void 0),s=(0,r.Cg)([(0,a.$)("esri.rest.knowledgeGraph.Path")],s)},42538:(e,n,t)=>{t.d(n,{A:()=>u});var r=t(31635),o=t(10107),i=(t(44208),t(53966),t(87811),t(64108)),a=t(16930),l=t(69622);let s=class extends l.A{constructor(e){super(e),this.openCypherQuery=""}};(0,r.Cg)([(0,o.MZ)()],s.prototype,"openCypherQuery",void 0),s=(0,r.Cg)([(0,i.$)("esri.rest.knowledgeGraph.GraphQuery")],s);let u=class extends s{constructor(e){super(e),this.bindParameters=null,this.bindGeometryQuantizationParameters=null,this.outputQuantizationParameters=null,this.outputSpatialReference=null,this.provenanceBehavior=null}};(0,r.Cg)([(0,o.MZ)()],u.prototype,"bindParameters",void 0),(0,r.Cg)([(0,o.MZ)()],u.prototype,"bindGeometryQuantizationParameters",void 0),(0,r.Cg)([(0,o.MZ)()],u.prototype,"outputQuantizationParameters",void 0),(0,r.Cg)([(0,o.MZ)({type:a.A})],u.prototype,"outputSpatialReference",void 0),(0,r.Cg)([(0,o.MZ)()],u.prototype,"provenanceBehavior",void 0),u=(0,r.Cg)([(0,i.$)("esri.rest.knowledgeGraph.GraphQueryStreaming")],u)},54238:(e,n,t)=>{t.d(n,{A:()=>l});var r=t(31635),o=t(10107),i=(t(44208),t(53966),t(87811),t(64108)),a=t(77901);let l=class extends a.A{constructor(e){super(e),this.typeName=null,this.id=null}};(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],l.prototype,"typeName",void 0),(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],l.prototype,"id",void 0),l=(0,r.Cg)([(0,i.$)("esri.rest.knowledgeGraph.GraphNamedObject")],l)},62815:(e,n,t)=>{t.d(n,{N:()=>a});var r=t(83047),o=t(73941),i=t(21325);function a(e,n,t){if(null==n||null==t||t.vcsWkid||(0,i.aI)(n,t)||(0,o.xP)(n)||(0,o.xP)(t))return null;const a=(0,r.G9)(n)/(0,r.G9)(t);if(1===a)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,n){null!=e?.z&&(e.z*=n)}(e,a);case"polyline":case"esriGeometryPolyline":return e=>function(e,n){if(e)for(const t of e.paths)for(const e of t)e.length>2&&(e[2]*=n)}(e,a);case"polygon":case"esriGeometryPolygon":return e=>function(e,n){if(e)for(const t of e.rings)for(const e of t)e.length>2&&(e[2]*=n)}(e,a);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,n){if(e)for(const t of e.points)t.length>2&&(t[2]*=n)}(e,a);case"extent":case"esriGeometryEnvelope":return e=>function(e,n){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=n,e.zmax*=n)}(e,a);default:return null}}},77901:(e,n,t)=>{t.d(n,{A:()=>l});var r=t(31635),o=t(25482),i=t(10107),a=(t(44208),t(53966),t(87811),t(64108));let l=class extends o.o{constructor(e){super(e),this.properties=null}};(0,r.Cg)([(0,i.MZ)({json:{write:!0}})],l.prototype,"properties",void 0),l=(0,r.Cg)([(0,a.$)("esri.rest.knowledgeGraph.GraphObject")],l)},80672:(e,n,t)=>{t.d(n,{R:()=>o});var r=t(20655);function o(e,n){return null===e?n:new r.A({url:e.field("url")})}},91218:(e,n,t)=>{t.r(n),t.d(n,{canProjectWithoutEngine:()=>E,initializeProjection:()=>K,isEqualBaseGCS:()=>F,isLoaded:()=>G,isLoadedOrLoad:()=>Z,isLoadedOrLoadFor:()=>O,load:()=>T,project:()=>b,projectExtent:()=>te,projectMany:()=>z,projectMultipoint:()=>V,projectOrLoad:()=>q,projectOrLoadMany:()=>N,projectPoint:()=>H,projectPolygon:()=>ee,projectPolyline:()=>X,projectWithZConversion:()=>L,projectWithoutEngine:()=>Q,requiresLoad:()=>$,test:()=>J,tryProjectWithZConversion:()=>D,unload:()=>B});var r=t(49186),o=t(74887),i=t(62788),a=t(95488),l=t(51850),s=t(21276),u=t(73941),c=t(5443),p=t(91075),f=t(48526),d=t(86738),h=t(39829),g=t(82799),m=t(16930),y=t(159),w=t(9762),R=t(37539);function v(e,n,t,r,o,i){return M[0]=e,M[1]=n,M[2]=t,(0,w.projectBuffer)(M,r,0,o,i,0)}const M=(0,l.vt)();var x=t(21325),A=t(62815);let S=null,j=null,I=null,P=null,C={};const k=new a.I;function G(){return!!(j?.isLoaded()&&I?.isLoaded()&&P?.isLoaded())}function Z(){return!!G()||((0,i.gc)(k),T(),!1)}function O(e,n){return!e||!n||E(e,n)||Z()}function $(e,n){return!E(e,n)&&!G()}async function T(e){null==S&&(S=Promise.all([t.e(3276).then(t.bind(t,83276)).then(e=>(j=e,j.load())),t.e(8377).then(t.bind(t,8377)).then(e=>(I=e,I.load())),t.e(2158).then(t.bind(t,12158)).then(e=>(P=e,P.load()))])),await S,(0,o.Te)(e),k.notify()}function b(e,n,t){return Array.isArray(e)?0===e.length?[]:((0,s.H)(e),z(e,e[0].spatialReference,n,t)):((0,s.f)(e),z([e],e.spatialReference,n,t)[0])}function z(e,n,t,r){if(null==n||null==t)return e;if(E(n,t,r))return e.map(e=>Q(e,n,t));if(null==r?.geographicTransformation&&(0,u.jA)(n))return e.map(e=>Q(e,n,m.A.WGS84)).map(e=>D(e,t));if(null==r?.geographicTransformation&&(0,u.jA)(t))return e.map(e=>D(e,m.A.WGS84)).map(e=>Q(e,m.A.WGS84,t));if(!G())throw new W;if(!r?.geographicTransformation)if(r?.extendedParams)r={...r,geographicTransformation:P.getTransformation(n,t,r.areaOfInterestExtent)||new y.A};else if(!r?.areaOfInterestExtent){const e=function(e,n){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",n.wkid?.toString()??"-1",n.wkt?.toString()??"",n.wkt2?.toString()??""].join()}(n,t);let o=C[e];o||(o=P.getTransformation(n,t)||new y.A,C[e]=o),r={geographicTransformation:o}}return e[0].spatialReference||(e[0].spatialReference=n),e[0]instanceof p.A?j.executeMany(e,t,r):I.executeMany(e,t,r)}function q(e,n){const t=N([e],n);return null!=t.pending?{pending:t.pending,geometry:null}:null!=t.geometries?{pending:null,geometry:t.geometries[0]}:{pending:null,geometry:null}}function N(e,n){if(!G())for(const t of e)if(null!=t&&!(0,x.aI)(t.spatialReference,n)&&(0,x.fn)(t.spatialReference)&&(0,x.fn)(n)&&!E(t.spatialReference,n))return(0,i.gc)(k),{pending:T(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,x.aI)(e.spatialReference,n)?e:(0,x.fn)(e.spatialReference)&&(0,x.fn)(n)?D(e,n):null)}}class W extends r.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function B(){S=null,j=null,I=null,P=null,C={}}const J={get loadPromise(){return S}};function D(e,n){try{const t=b(e,n);if(null==t)return null;"xmin"in e&&"xmin"in t&&(t.zmin=e.zmin,t.zmax=e.zmax);const r=(0,A.N)(t.type,e.spatialReference,n);return null!=r&&r(t),t}catch(e){if(!(e instanceof W))throw e;return null}}async function L(e,n,t){const r=e.spatialReference;return null!=r&&null!=n&&await K(r,n,null,t),D(e,n)}function E(e,n,t){return!(t?.areaOfInterestExtent||t?.extendedParams||t?.geographicTransformation)&&(!!(0,x.aI)(e,n)||(0,x.fn)(e)&&(0,x.fn)(n)&&!!(0,R.jd)(e,n))}function F(e,n){if((0,x.aI)(e,n))return!0;if(!(0,x.fn)(e)||!(0,x.fn)(n))return!1;const t=(0,x.oT)(e)||(0,x.K8)(e)||(0,x.x1)(e),r=(0,x.oT)(n)||(0,x.K8)(n)||(0,x.x1)(n);return t&&r}async function K(e,n,t,r){if(G())return(0,o.NO)(r);if(Array.isArray(e)){for(const{source:n,dest:t,options:o}of e)if(n&&t&&!E(n,t,o))return T(r)}else if(e&&n&&!E(e,n,t))return T(r);return(0,o.NO)(r)}function Q(e,n,t){return e?"x"in e?U(e,n,new d.A,t,0):"xmin"in e?re(e,n,new c.A,t,0):"rings"in e?ne(e,n,new h.A,t,0):"paths"in e?_(e,n,new g.A,t,0):"points"in e?Y(e,n,new f.A,t,0):null:null}function H(e,n,t=n.spatialReference,r=0){return null!=t&&null!=e.spatialReference&&null!=U(e,e.spatialReference,n,t,r)}function U(e,n,t,r,o){ie[0]=e.x,ie[1]=e.y;const i=e.z;return ie[2]=void 0!==i?i:o,(0,w.projectBuffer)(ie,n,0,ie,r,0)?(t.x=ie[0],t.y=ie[1],t.spatialReference=r,void 0!==i||(0,u.xP)(r)?(t.z=ie[2],t.hasZ=!0):(t.z=void 0,t.hasZ=!1),void 0===e.m?(t.m=void 0,t.hasM=!1):(t.m=e.m,t.hasM=!0),t):null}function V(e,n,t=n.spatialReference,r=0){return null!=e.spatialReference&&null!=t&&null!=Y(e,e.spatialReference,n,t,r)}function Y(e,n,t,r,o){const{points:i,hasZ:a,hasM:l}=e,s=[],c=i.length,p=[];for(const e of i)p.push(e[0],e[1],a?e[2]:o);if(!(0,w.projectBuffer)(p,n,0,p,r,0,c))return null;const f=a||(0,u.xP)(r);for(let e=0;e<c;++e){const n=3*e,t=p[n],r=p[n+1];f&&l?s.push([t,r,p[n+2],i[e][3]]):f?s.push([t,r,p[n+2]]):l?s.push([t,r,i[e][2]]):s.push([t,r])}return t.points=s,t.spatialReference=r,t.hasZ=a,t.hasM=l,t}function X(e,n,t=n.spatialReference,r=0){return null!=e.spatialReference&&null!=t&&null!=_(e,e.spatialReference,n,t,r)}function _(e,n,t,r,o){const{paths:i,hasZ:a,hasM:l}=e,s=[];if(!oe(i,a??!1,l??!1,n,s,r,o))return null;const c=a||(0,u.xP)(r);return t.paths=s,t.spatialReference=r,t.hasZ=c,t.hasM=l,t}function ee(e,n,t=n.spatialReference,r=0){return null!=e.spatialReference&&null!=t&&null!=ne(e,e.spatialReference,n,t,r)}function ne(e,n,t,r,o){const{rings:i,hasZ:a,hasM:l}=e,s=[];if(!oe(i,a??!1,l??!1,n,s,r,o))return null;const c=a||(0,u.xP)(r);return t.rings=s,t.spatialReference=r,t.hasZ=c,t.hasM=l,t}function te(e,n,t=n.spatialReference,r=0){return null!=e.spatialReference&&null!=t&&null!=re(e,e.spatialReference,n,t,r)}function re(e,n,t,r,o){const{xmin:i,ymin:a,xmax:l,ymax:s,hasZ:c,hasM:p}=e;if(!v(i,a,c?e.zmin:o,n,ie,r))return null;const f=c||(0,u.xP)(r);return t.xmin=ie[0],t.ymin=ie[1],f&&(t.zmin=ie[2]),v(l,s,c?e.zmax:o,n,ie,r)?(t.xmax=ie[0],t.ymax=ie[1],f&&(t.zmax=ie[2]),p&&(t.mmin=e.mmin,t.mmax=e.mmax),t.spatialReference=r,t):null}function oe(e,n,t,r,o,i,a=0){const l=new Array;for(const t of e)for(const e of t)l.push(e[0],e[1],n?e[2]:a);if(!(0,w.projectBuffer)(l,r,0,l,i,0))return!1;let s=0;o.length=0;const c=n||(0,u.xP)(i);for(const n of e){const e=new Array;for(const r of n)c&&t?e.push([l[s++],l[s++],l[s++],r[3]]):c?e.push([l[s++],l[s++],l[s++]]):t?(e.push([l[s++],l[s++],r[2]]),s++):(e.push([l[s++],l[s++]]),s++);o.push(e)}return!0}const ie=(0,l.vt)()},92288:(e,n,t)=>{t.r(n),t.d(n,{registerFunctions:()=>N});var r=t(92602),o=t(47609),i=t(66395),a=t(85935),l=t(78878),s=t(80672),u=t(91075),c=t(91218),p=t(16930),f=t(28735),d=t(20655),h=t(80812),g=t(11254),m=t(56507),y=t(65864),w=t(2272),R=t(92300),v=t(31635),M=t(25482),x=t(10107),A=(t(44208),t(53966),t(87811),t(64108)),S=t(21325);let j=class extends M.o{constructor(e){super(e),this.geometries=[],this.outSpatialReference=null,this.transformation=null,this.transformForward=null}toJSON(){const e=this.geometries.map(e=>e.toJSON()),n=this.geometries[0],t={};return t.outSR=(0,S.YX)(this.outSpatialReference),t.inSR=(0,S.YX)(n.spatialReference),t.geometries=JSON.stringify({geometryType:(0,y.$B)(n),geometries:e}),this.transformation&&(t.transformation=this.transformation.wkid||JSON.stringify(this.transformation)),null!=this.transformForward&&(t.transformForward=this.transformForward),t}};(0,v.Cg)([(0,x.MZ)()],j.prototype,"geometries",void 0),(0,v.Cg)([(0,x.MZ)({type:p.A,json:{read:{source:"outSR"}}})],j.prototype,"outSpatialReference",void 0),(0,v.Cg)([(0,x.MZ)()],j.prototype,"transformation",void 0),(0,v.Cg)([(0,x.MZ)()],j.prototype,"transformForward",void 0),j=(0,v.Cg)([(0,A.$)("esri.rest.support.ProjectParameters")],j);const I=(0,m.dp)(j);var P=t(25927),C=t(42538),k=t(40662),G=t(42095),Z=t(23150),O=t(54218);let $=null;async function T(e,n){const r=new h.default({portal:e,id:n});return await r.load(),null===$&&($=await Promise.all([t.e(2869),t.e(3910),t.e(5323),t.e(217),t.e(2568),t.e(490)]).then(t.bind(t,62568))),await $.fetchKnowledgeGraph(r.url)}function b(e,n,t,r,o){if(null===e)return null;if((0,O.Kg)(e)||(0,O.Et)(e))return e;if((0,l.e)(e))return e.toJSDate();if((0,l.e)(e))return e.toJSDate();if((0,l.f)(e))return e.toStorageFormat();if((0,l.g)(e))return e.toStorageString();if((0,l.n)(e)){const i={};for(const a of e.keys())i[a]=b(e.field(a),n,t,r,o),i[a]instanceof u.A&&o.push({container:i,indexer:a});return i}if((0,O.cy)(e)){const i=e.map(e=>b(e,n,t,r,o));for(let e=0;e<i.length;e++)i[e]instanceof u.A&&o.push({container:i,indexer:e});return i}return(0,l.h)(e)?e.spatialReference.isWGS84?e:e.spatialReference.isWebMercator&&n?(0,f.ci)(e):e:void 0}function z(e,n){if(!e)return null;const t={};for(const r in e)t[r]=q(e[r],n);return t}function q(e,n){return null===e?null:(0,O.cy)(e)?e.map(e=>q(e,n)):e instanceof P.A?{graphTypeName:e.typeName,id:e.id,graphType:"entity",properties:z(e.properties,n)}:e instanceof k.A?{graphType:"object",properties:z(e.properties,n)}:e instanceof Z.A?{graphTypeName:e.typeName,id:e.id,graphType:"relationship",originId:e.originId??null,destinationId:e.destinationId??null,properties:z(e.properties,n)}:e instanceof G.A?{graphType:"path",path:e.path?e.path.map(e=>q(e,n)):null}:(0,l.h)(e)?function(e,n){if(!e)return e;if(e.spatialReference.isWGS84&&n.spatialReference.isWebMercator)return(0,f.Gh)(e);if(e.spatialReference.equals(n.spatialReference))return e;throw new a.D$(n,"WrongSpatialReference",null)}(e,n):(0,O.Kg)(e)||(0,O.Et)(e)||(0,O.$P)(e)?e:null}function N(e){"async"===e.mode&&(e.functions.knowledgegraphbyportalitem=function(n,t){return e.standardFunctionAsync(n,t,(e,r,i)=>{if((0,l.B)(i,2,2,n,t),null===i[0])throw new a.D$(n,"PortalRequired",t);if(i[0]instanceof o.A){const e=(0,l.u)(i[1]);let t;return t=n.services?.portal?n.services.portal:d.A.getDefault(),T((0,s.R)(i[0],t),e)}if(!1===(0,O.Kg)(i[0]))throw new a.D$(n,"InvalidParameter",t);const u=(0,l.u)(i[0]);return T(n.services?.portal??d.A.getDefault(),u)})},e.signatures.push({name:"knowledgegraphbyportalitem",min:2,max:2}),e.functions.querygraph=function(n,o){return e.standardFunctionAsync(n,o,async(e,s,u)=>{(0,l.B)(u,2,4,n,o);const f=u[0];if(!(0,l.o)(f))throw new a.D$(n,"InvalidParameter",o);const d=u[1];if(!(0,O.Kg)(d))throw new a.D$(n,"InvalidParameter",o);null===$&&($=await Promise.all([t.e(2869),t.e(3910),t.e(5323),t.e(217),t.e(2568),t.e(490)]).then(t.bind(t,62568)));let h=null;const m=(0,l.J)(u[2],null);if(!(m instanceof i.A||null===m))throw new a.D$(n,"InvalidParameter",o);if(m){let e=[];h=b(m,!0,!1,n,e),e=e.filter(e=>!e.container[e.indexer].spatialReference.isWGS84),e.length>0&&await async function(e){const n=r.A.geometryServiceUrl??"";if(!n){(0,c.isLoaded)()||await(0,c.load)();for(const n of e)n.container[n.indexer]=(0,c.project)(n.container[n.indexer],p.A.WGS84);return}const t=e.map(e=>e.container[e.indexer]),o=new j({geometries:t,outSpatialReference:p.A.WGS84}),i=await async function(e,n){n=I(n);const t=(0,w.Dl)(e),r={...t.query,f:"json",...n.toJSON()},o=n.outSpatialReference,i=(0,y.$B)(n.geometries[0]),a=(0,w.jV)(r,void 0);return(0,g.A)(t.path+"/project",a).then(({data:{geometries:e}})=>(0,R.V)(e,i,o))}(n,o);for(let n=0;n<i.length;n++){const t=e[n];t.container[t.indexer]=i[n]}}(e)}const v=(0,l.J)(u[3],!1),M=new C.A({openCypherQuery:d,bindParameters:h,provenanceBehavior:v?"include":"exclude"});(f?.serviceDefinition?.currentVersion??11.3)>11.2&&(M.outputSpatialReference=n.spatialReference);const x=(await $.executeQueryStreaming(f,M)).resultRowsStream.getReader(),A=[];try{for(;;){const{done:e,value:t}=await x.read();if(e)break;if((0,O.cy)(t))for(const e of t)A.push(q(e,n));else{const e=[];for(const r of t)e.push(q(t[r],n));A.push(e)}}}catch(e){throw e}return i.A.convertJsonToArcade(A,(0,l.K)(n),!1,!0)})},e.signatures.push({name:"querygraph",min:2,max:4}))}},92300:(e,n,t)=>{t.d(n,{V:()=>i,X:()=>o});var r=t(65864);function o(e){return{geometryType:(0,r.$B)(e[0]),geometries:e.map(e=>e.toJSON())}}function i(e,n,t){const o=(0,r.xD)(n);return e.map(e=>{const n=o.fromJSON(e);return n.spatialReference=t,n})}},99157:(e,n,t)=>{t.d(n,{A:()=>s});var r,o=t(31635),i=t(69622),a=t(10107),l=(t(44208),t(53966),t(87811),t(64108));let s=r=class extends i.A{constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new r({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,o.Cg)([(0,a.MZ)()],s.prototype,"isInverse",void 0),(0,o.Cg)([(0,a.MZ)()],s.prototype,"wkt",void 0),(0,o.Cg)([(0,a.MZ)()],s.prototype,"wkid",void 0),s=r=(0,o.Cg)([(0,l.$)("esri.geometry.operators.support.GeographicTransformationStep")],s)}}]);
|