@arcgis/core 6.0.0-next.55 → 6.0.0-next.57
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/arcgisGlobal.d.ts +1 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/00c227bcecc28fe278bb.js +1 -0
- package/assets/esri/core/workers/chunks/033b9fcd9833db3b6e7d.js +1 -0
- package/assets/esri/core/workers/chunks/0978e12dd6a1cbc50b80.js +1 -0
- package/assets/esri/core/workers/chunks/{88df1b8b295d3aed649f.js → 10499abb7678e95d9f05.js} +1 -1
- package/assets/esri/core/workers/chunks/{e956845255bce0910944.js → 1507297550c3cd1268e2.js} +1 -1
- package/assets/esri/core/workers/chunks/1afc8820c283ef785729.js +1 -0
- package/assets/esri/core/workers/chunks/1c0f5c42331fb6fc26cb.js +1 -0
- package/assets/esri/core/workers/chunks/1c874f86bfd0963aa3d2.js +1 -0
- package/assets/esri/core/workers/chunks/2a84c9a81ec2bed3d4e5.js +1 -0
- package/assets/esri/core/workers/chunks/2cd2fcf4a37d180d5d5c.js +1 -0
- package/assets/esri/core/workers/chunks/2f31766bc0f9d1d70c5a.js +1 -0
- package/assets/esri/core/workers/chunks/2f9adf0b809ce8797ebf.js +1 -0
- package/assets/esri/core/workers/chunks/35109db6a6be66f895f7.js +1 -0
- package/assets/esri/core/workers/chunks/373b140f92eda3857f82.js +1 -0
- package/assets/esri/core/workers/chunks/38bba952c38af5a150e7.js +1 -0
- package/assets/esri/core/workers/chunks/3982409149571a827390.js +1 -0
- package/assets/esri/core/workers/chunks/3aea09191b737dc1de70.js +1 -0
- package/assets/esri/core/workers/chunks/3d851710f7fcc27c5b60.js +2 -0
- package/assets/esri/core/workers/chunks/3e8d70039800f2395d66.js +1 -0
- package/assets/esri/core/workers/chunks/3fc4b7d0ee460fc96176.js +1 -0
- package/assets/esri/core/workers/chunks/457bd1bd37c67b61efe8.js +1 -0
- package/assets/esri/core/workers/chunks/4d8539674fc2e4fea03c.js +1 -0
- package/assets/esri/core/workers/chunks/{e61082f56c08abe54b3a.js → 5954f02c3901b28d8e73.js} +1 -1
- package/assets/esri/core/workers/chunks/5ba6007c3c49a8153256.js +1 -0
- package/assets/esri/core/workers/chunks/5bdd95eeb8f34dbf26f2.js +2 -0
- package/assets/esri/core/workers/chunks/{ced5dfb2bf46fc5eac8c.js → 5e47026c681238038955.js} +2 -2
- package/assets/esri/core/workers/chunks/{2baf35b1b19482d603b5.js → 5f7505ada0991cfbdd84.js} +1 -1
- package/assets/esri/core/workers/chunks/601d668e70c5d72fe58c.js +1 -0
- package/assets/esri/core/workers/chunks/651e33be8bb3995d749f.js +1 -0
- package/assets/esri/core/workers/chunks/{542a9c414c99d84d52ab.js → 6a202ef9ba9b89e09153.js} +1 -1
- package/assets/esri/core/workers/chunks/{0826feebdca8a31eb630.js → 6ba6fece5c11fe2a6ace.js} +1 -1
- package/assets/esri/core/workers/chunks/{5eb69e2895e5aec81051.js → 6fd10891506925560443.js} +1 -1
- package/assets/esri/core/workers/chunks/721f43554b9654481de7.js +1 -0
- package/assets/esri/core/workers/chunks/75274ac3ddf7c45f47d7.js +1 -0
- package/assets/esri/core/workers/chunks/7b6fd287e7043ad50f4e.js +1 -0
- package/assets/esri/core/workers/chunks/7baa49055bc31618b56e.js +1 -0
- package/assets/esri/core/workers/chunks/80d1267606383ae537f2.js +1 -0
- package/assets/esri/core/workers/chunks/8570e3df90fb76a8741a.js +1 -0
- package/assets/esri/core/workers/chunks/{c3c0f24a9e0047232ae1.js → 8679dfc0c53355b6feb0.js} +1 -1
- package/assets/esri/core/workers/chunks/8920d0b11951b57d6a66.js +1 -0
- package/assets/esri/core/workers/chunks/8a636dc51372e14c98f5.js +1 -0
- package/assets/esri/core/workers/chunks/{14259910f44c08fd5bbd.js → 9117c9b720c9ba6e7a6e.js} +1 -1
- package/assets/esri/core/workers/chunks/92d97e0fcc20dd5f5ac4.js +1 -0
- package/assets/esri/core/workers/chunks/9ca84fa9423654061d05.js +1 -0
- package/assets/esri/core/workers/chunks/9e372af03d62fa5ad10e.js +1 -0
- package/assets/esri/core/workers/chunks/a22458e5272332d86cb9.js +1 -0
- package/assets/esri/core/workers/chunks/{3ea480cebf8ee56228a5.js → a7dfca326883384d2751.js} +1 -1
- package/assets/esri/core/workers/chunks/{723d8316f5d4b6ce2942.js → a9539393e2f1812a973a.js} +1 -1
- package/assets/esri/core/workers/chunks/{be0b8bb4f09aae6ff5de.js → ab784764ddf9d7f693a1.js} +1 -1
- package/assets/esri/core/workers/chunks/b10c534cbe311d17b7d5.js +1 -0
- package/assets/esri/core/workers/chunks/b38b6fe08a367e9de4f5.js +1 -0
- package/assets/esri/core/workers/chunks/{4e651869e9a196494694.js → b6e628b5d2643af4c19b.js} +1 -1
- package/assets/esri/core/workers/chunks/{b37ab6b1cb4cfc85cd9d.js → b7828d7e2c5b75644057.js} +1 -1
- package/assets/esri/core/workers/chunks/{ec465abb0344ad719e9d.js → bd8e329ec74d921d311a.js} +1 -1
- package/assets/esri/core/workers/chunks/{9e508f930086d2ef5f22.js → be0133fa63c5d6545a7f.js} +40 -41
- package/assets/esri/core/workers/chunks/{56e6e70aa40e51827290.js → c3f94024c6c9eed9f273.js} +1 -1
- package/assets/esri/core/workers/chunks/{6d17b45022dfd2548098.js → c5ddf8b347c31fe772a3.js} +1 -1
- package/assets/esri/core/workers/chunks/{ee9af58ae202b803bba7.js → c7a0c4ca37ebd1d98cf1.js} +1 -1
- package/assets/esri/core/workers/chunks/cb0e3614b78c78040662.js +1 -0
- package/assets/esri/core/workers/chunks/d22e3b5d836dffdf91cc.js +1 -0
- package/assets/esri/core/workers/chunks/d7763c42754152510e13.js +2 -0
- package/assets/esri/core/workers/chunks/e0341def2d81e679a200.js +1 -0
- package/assets/esri/core/workers/chunks/e42e9dd3c933f5f864ab.js +1 -0
- package/assets/esri/core/workers/chunks/e566102c7ed7a8ebf89e.js +1 -0
- package/assets/esri/core/workers/chunks/e74586b074d0fa6abb4b.js +1 -0
- package/assets/esri/core/workers/chunks/e7dff025780726d5feae.js +1 -0
- package/assets/esri/core/workers/chunks/e96fa029acba59c04e4e.js +2 -0
- package/assets/esri/core/workers/chunks/f4fcf87da4495584223d.js +1 -0
- package/assets/esri/core/workers/chunks/f989588dfdbb69056491.js +1 -0
- package/assets/esri/core/workers/chunks/fc5b920f9756e11c2f88.js +1 -0
- package/assets/esri/core/workers/chunks/fdfbd201be372d3796bf.js +2 -0
- package/assets/esri/core/workers/chunks/ff0a0819bba5e8264c47.js +1 -0
- package/chunks/BlendLayers.glsl.js +1 -1
- package/chunks/ColorMaterial.glsl.js +14 -14
- package/chunks/Component.glsl.js +38 -37
- package/chunks/DefaultMaterial.glsl.js +15 -15
- package/chunks/GlobalIllumination.glsl.js +12 -11
- package/chunks/GlobalIlluminationBlur.glsl.js +6 -4
- package/chunks/HUDMaterial.glsl.js +3 -3
- package/chunks/Path.glsl.js +15 -15
- package/chunks/Pattern.glsl.js +20 -20
- package/chunks/RasterColorizer.glsl.js +1 -1
- package/chunks/ShadowHighlight.glsl.js +1 -1
- package/chunks/Terrain.glsl.js +28 -27
- package/chunks/Water.glsl.js +30 -20
- package/chunks/pdf.js +57 -0
- package/config.js +1 -1
- package/core/accessorSupport/write.js +1 -1
- package/core/memoryEstimations.js +1 -1
- package/core/scheduling.js +1 -1
- package/interfaces.d.ts +0 -1
- package/kernel.js +1 -1
- package/layers/LinkChartLayer.js +1 -1
- package/layers/VoxelWasmPerSceneView.js +1 -1
- package/layers/geospatialPDF/GeospatialPDFFrame.js +1 -1
- package/layers/geospatialPDF/GeospatialPDFLayerWorker.js +1 -56
- package/layers/geospatialPDF/GeospatialPDFWorkerClient.js +1 -1
- package/layers/geospatialPDF/parserUtils.js +2 -0
- package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
- package/layers/graphics/dehydratedFeatures.js +1 -1
- package/layers/graphics/transferFeatures.js +1 -1
- package/layers/support/ControlPoint.js +1 -1
- package/layers/support/ControlPointsGeoreference.js +1 -1
- package/layers/support/commonProperties.js +1 -1
- package/layers/support/fieldUtils.d.ts +129 -57
- package/layers/support/fieldUtils.js +1 -1
- package/layers/support/geospatialPDFUtils.d.ts +63 -0
- package/layers/support/geospatialPDFUtils.js +2 -0
- package/networks/Network.js +1 -1
- package/networks/support/TopologyValidationJobInfo.js +1 -1
- package/package.json +5 -5
- package/symbols/CIMSymbol.d.ts +9 -9
- package/symbols/PathSymbol3DLayer.d.ts +1 -1
- package/symbols/WaterSymbol3DLayer.d.ts +13 -1
- package/symbols/WaterSymbol3DLayer.js +1 -1
- package/views/3d/GroundView3D.js +1 -1
- package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedObserverManipulatedObject3D.js +1 -1
- package/views/3d/camera/constraintUtils/tilt.js +1 -1
- package/views/3d/camera/intersectionUtils.js +1 -1
- package/views/3d/environment/EnvironmentView.js +1 -1
- package/views/3d/input/handlers/ground/GroundNavigation.js +1 -1
- package/views/3d/interactive/Manipulator3D.js +1 -1
- package/views/3d/interactive/Manipulator3DBase.js +1 -1
- package/views/3d/interactive/editingTools/dragEventPipeline3D.js +1 -1
- package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DView.js +1 -1
- package/views/3d/interactive/visualElements/Object3DVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
- package/views/3d/layers/BuildingSceneLayerView3D.js +1 -1
- package/views/3d/layers/DrapedSubView3D.js +1 -1
- package/views/3d/layers/DynamicLayerView3D.js +1 -1
- package/views/3d/layers/FeatureLikeLayerViewBase3D.js +1 -1
- package/views/3d/layers/FlowSubView3D.js +1 -1
- package/views/3d/layers/GraphicsLayerView3D.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/RouteLayerView3D.js +1 -1
- package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
- package/views/3d/layers/VectorTileLayerView3D.js +1 -1
- package/views/3d/layers/VoxelLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Deconflictor.js +1 -1
- package/views/3d/layers/graphics/Graphics3DFrustumVisibility.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
- package/views/3d/layers/i3s/I3SIndex.js +1 -1
- package/views/3d/layers/i3s/I3SIntersectionHandler.js +1 -1
- package/views/3d/layers/i3s/I3SUtil.js +1 -1
- package/views/3d/layers/support/Tiles3DBVH.js +1 -1
- package/views/3d/layers/support/Tiles3DMeshIntersectionHandler.js +1 -1
- package/views/3d/layers/support/createTileBVHForLayer.js +1 -1
- package/views/3d/state/controllers/PinchAndPanControllerGlobal.js +1 -1
- package/views/3d/state/controllers/PinchAndPanControllerLocal.js +1 -1
- package/views/3d/state/controllers/RotateController.js +1 -1
- package/views/3d/state/controllers/ZoomControllerGlobal.js +1 -1
- package/views/3d/state/controllers/ZoomStepControllerGlobal.js +1 -1
- package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
- package/views/3d/state/utils/groundNavigationUtils.js +1 -1
- package/views/3d/state/utils/navigationUtils.js +1 -1
- package/views/3d/support/GroundAndIMSurface.js +1 -1
- package/views/3d/support/QualityProfile.js +1 -1
- package/views/3d/support/QualitySettings.js +1 -1
- package/views/3d/support/flow/StreamlineResources3DShape.js +1 -1
- package/views/3d/support/pointsOfInterest/CenterOnSurface.js +1 -1
- package/views/3d/support/pointsOfInterest/PointsOfInterest.js +1 -1
- package/views/3d/terrain/BlendLayersTechniqueConfiguration.js +1 -1
- package/views/3d/terrain/OverlayManager.js +1 -1
- package/views/3d/terrain/PatchGeometryFactory.js +1 -1
- package/views/3d/terrain/RasterColorizerTechniqueConfiguration.js +1 -1
- package/views/3d/terrain/TerrainRenderer.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObjectFixedBVH.js +1 -1
- package/views/3d/webgl-engine/collections/Component/IntersectionGeometry.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/Component.glsl.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/clampShadowPosition.glsl.js +2 -0
- package/views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialAuxiliaryPasses.glsl.js +14 -14
- package/views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/lastFrameUniforms.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +15 -12
- package/views/3d/webgl-engine/core/shaderLibrary/terrain/TileComposite.glsl.js +2 -3
- package/views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationBlur.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/globalIlluminationUniforms.js +1 -1
- package/views/3d/webgl-engine/lib/BufferGeometry.js +1 -1
- package/views/3d/webgl-engine/lib/BufferObject3D.js +1 -1
- package/views/3d/webgl-engine/lib/GridLocalOriginFactory.js +1 -1
- package/views/3d/webgl-engine/lib/Object3D.js +1 -1
- package/views/3d/webgl-engine/lib/Program.js +1 -1
- package/views/3d/webgl-engine/lib/RayIntersections.js +1 -1
- package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/TriangleIntersectionData.js +1 -1
- package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultLayouts.js +1 -1
- package/views/3d/webgl-engine/materials/Path.glsl.js +1 -1
- package/views/3d/webgl-engine/materials/Water.glsl.js +1 -1
- package/views/3d/webgl-engine/materials/WaterMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/WaterTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/materials/getWaterColor.glsl.js +89 -0
- package/views/3d/webgl-engine/parts/Model.js +1 -1
- package/views/3d/webgl-engine/shaders/ColorMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/Pattern.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/Terrain.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/TerrainTechniqueConfiguration.js +1 -1
- package/views/Attribution.js +5 -5
- package/views/DOMContainer.d.ts +2 -1
- package/views/SceneView.js +1 -1
- package/views/draw/DrawGraphicTool.js +1 -1
- package/views/draw/support/surfaceCoordinateSystems.js +1 -1
- package/views/webgl/Program.js +3 -3
- package/views/webgl/ShaderBuilder.js +23 -23
- package/webscene/Slide.js +1 -1
- package/webscene/VirtualLighting.d.ts +2 -4
- package/widgets/BatchAttributeForm/inputs/FieldInput.d.ts +17 -1
- package/widgets/BatchAttributeForm/inputs/FieldInput.js +1 -1
- package/widgets/BatchAttributeForm/inputs/support/inputUtils.d.ts +7 -0
- package/widgets/BatchAttributeForm/inputs/support/inputUtils.js +1 -1
- package/widgets/BatchAttributeForm.js +1 -1
- package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
- package/widgets/Sketch/SketchViewModel.js +1 -1
- package/widgets/Weather/WeatherViewModel.js +1 -1
- package/widgets/support/ContingentValuesManager.js +1 -1
- package/widgets/support/forms/types.d.ts +23 -1
- package/assets/esri/core/workers/chunks/144f18a3dd2c8cf07cf7.js +0 -1
- package/assets/esri/core/workers/chunks/193a73a2c7f4f8482c21.js +0 -1
- package/assets/esri/core/workers/chunks/20acb6f3ed5140b6c6c6.js +0 -1
- package/assets/esri/core/workers/chunks/23fc1c1ed483ed3b2298.js +0 -1
- package/assets/esri/core/workers/chunks/249a687ce1b6d0815242.js +0 -1
- package/assets/esri/core/workers/chunks/2634927d26cb1139c6d0.js +0 -1
- package/assets/esri/core/workers/chunks/2d1b8154ee40afc9d40b.js +0 -1
- package/assets/esri/core/workers/chunks/2d4788be418a4e5f6606.js +0 -1
- package/assets/esri/core/workers/chunks/333140b18aeb5a50b654.js +0 -1
- package/assets/esri/core/workers/chunks/4401b3f8ebb658abe789.js +0 -1
- package/assets/esri/core/workers/chunks/4761cd436abceee858bf.js +0 -1
- package/assets/esri/core/workers/chunks/4a41bf3d1e2e9bb79771.js +0 -2
- package/assets/esri/core/workers/chunks/4de08ead94660025075b.js +0 -1
- package/assets/esri/core/workers/chunks/56f227e1a9e51d1fd742.js +0 -1
- package/assets/esri/core/workers/chunks/5bd451c7db17ee8f0315.js +0 -1
- package/assets/esri/core/workers/chunks/5c34d49a6c9cc34b7626.js +0 -1
- package/assets/esri/core/workers/chunks/5f324d88785ffcb73ae0.js +0 -1
- package/assets/esri/core/workers/chunks/703373f529c1c334cfad.js +0 -1
- package/assets/esri/core/workers/chunks/70695e0fb53018d48e7b.js +0 -2
- package/assets/esri/core/workers/chunks/723c9ad4c25be2b82476.js +0 -1
- package/assets/esri/core/workers/chunks/733c32d8091427d84de7.js +0 -1
- package/assets/esri/core/workers/chunks/766a1357be2ed7f4e125.js +0 -1
- package/assets/esri/core/workers/chunks/844c593754b2692257f4.js +0 -1
- package/assets/esri/core/workers/chunks/846248697c398468d8e6.js +0 -1
- package/assets/esri/core/workers/chunks/860552f49f17de2f3353.js +0 -1
- package/assets/esri/core/workers/chunks/89e55895683369b5277a.js +0 -1
- package/assets/esri/core/workers/chunks/8c94e987754b3919181e.js +0 -1
- package/assets/esri/core/workers/chunks/919115788da38049aea7.js +0 -2
- package/assets/esri/core/workers/chunks/976303f47c342b9d1cc0.js +0 -1
- package/assets/esri/core/workers/chunks/9b727f45dfea84357b57.js +0 -1
- package/assets/esri/core/workers/chunks/a05a2c2aaf0c288f9681.js +0 -1
- package/assets/esri/core/workers/chunks/a116dd204921e7464944.js +0 -1
- package/assets/esri/core/workers/chunks/ab76170c374fd67ce8cd.js +0 -1
- package/assets/esri/core/workers/chunks/aebd12488b4004e207a3.js +0 -1
- package/assets/esri/core/workers/chunks/b33e7e74cf8fa3926617.js +0 -1
- package/assets/esri/core/workers/chunks/bb2af16e55cb39163827.js +0 -1
- package/assets/esri/core/workers/chunks/c7b1c6d57603fa385c54.js +0 -1
- package/assets/esri/core/workers/chunks/cd8181600623e18f511c.js +0 -1
- package/assets/esri/core/workers/chunks/cef537fa9705dd1cf685.js +0 -1
- package/assets/esri/core/workers/chunks/d33403d578fbeecaf844.js +0 -1
- package/assets/esri/core/workers/chunks/d5bb9f9b7b341c671525.js +0 -1
- package/assets/esri/core/workers/chunks/d96e63d66f7b1f4ea54a.js +0 -2
- package/assets/esri/core/workers/chunks/ddbfa664e69612295785.js +0 -1
- package/assets/esri/core/workers/chunks/ded81c504bf44806ca7d.js +0 -1
- package/assets/esri/core/workers/chunks/e0466387b2ab54d706ca.js +0 -1
- package/assets/esri/core/workers/chunks/e3bcd2e356f75afc316a.js +0 -1
- package/assets/esri/core/workers/chunks/e80526571f1a34de3278.js +0 -1
- package/assets/esri/core/workers/chunks/ea71850ba87ae6038000.js +0 -1
- package/assets/esri/core/workers/chunks/ee70be138831cc2a0f56.js +0 -1
- package/assets/esri/core/workers/chunks/f23c4fd014126ea7abc6.js +0 -1
- package/assets/esri/core/workers/chunks/f537a5e808dc546813c7.js +0 -1
- package/assets/esri/core/workers/chunks/f6e40f3faf0c80cf1b3a.js +0 -1
- package/assets/esri/core/workers/chunks/fe811d651d201f698b8f.js +0 -2
- package/chunks/NativeLine.glsl.js +0 -8
- package/layers/geospatialPDF/geospatialPDFParserUtils.js +0 -2
- package/views/3d/webgl-engine/core/shaderLibrary/shading/WaterColor.glsl.js +0 -70
- package/views/3d/webgl-engine/materials/NativeLineMaterial.js +0 -2
- package/views/3d/webgl-engine/shaders/NativeLine.glsl.js +0 -2
- package/views/3d/webgl-engine/shaders/NativeLineTechnique.js +0 -2
- package/views/3d/webgl-engine/shaders/NativeLineTechniqueConfiguration.js +0 -2
- /package/assets/esri/core/workers/chunks/{919115788da38049aea7.js.LICENSE.txt → 3d851710f7fcc27c5b60.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{fe811d651d201f698b8f.js.LICENSE.txt → 5bdd95eeb8f34dbf26f2.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{ced5dfb2bf46fc5eac8c.js.LICENSE.txt → 5e47026c681238038955.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{4a41bf3d1e2e9bb79771.js.LICENSE.txt → d7763c42754152510e13.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{d96e63d66f7b1f4ea54a.js.LICENSE.txt → e96fa029acba59c04e4e.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{70695e0fb53018d48e7b.js.LICENSE.txt → fdfbd201be372d3796bf.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[433],{15142(t,e,i){i.d(e,{A:()=>o});var s=i(4576),a=i(21818);const h=(t,e,i,s)=>{let a=e,h=e,n=i>>>1,l=t[a-1];for(;h<=n;){h=a<<1,h<i&&s(t[h-1],t[h])<0&&++h;let e=t[h-1];if(s(e,l)<=0)break;t[a-1]=e,a=h}t[a-1]=l},n=(t,e)=>t<e?-1:+(t>e);function l(t,e,i,s){void 0===e&&(e=0),void 0===i&&(i=t.length),void 0===s&&(s=n);for(let a=i>>>1;a>e;a--)h(t,a,i,s);let a=e+1;for(let n=i-1;n>e;n--){let i=t[e];t[e]=t[n],t[n]=i,h(t,a,n,s)}}function*r(t,e,i,s){void 0===e&&(e=0),void 0===i&&(i=t.length),void 0===s&&(s=n);for(let a=i>>>1;a>e;a--)h(t,a,i,s),yield;let a=e+1;for(let n=i-1;n>e;n--){let i=t[e];t[e]=t[n],t[n]=i,h(t,a,n,s),yield}}class o{constructor(t){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new s.vW,t&&(t.initialSize&&(this.data=Array(t.initialSize)),t.allocator&&(this._allocator=t.allocator),void 0!==t.deallocator&&(this._deallocator=t.deallocator),t.shrink&&(this._shrink=()=>d(this)))}toArray(){return this.data.slice(0,this.length)}filter(t){let e=[];for(let i=0;i<this._length;i++){let s=this.data[i];t(s)&&e.push(s)}return e}at(t){if((t=Math.trunc(t)||0)<0&&(t+=this._length),!(t<0||t>=this._length))return this.data[t]}includes(t,e){let i=this.data.indexOf(t,e);return-1!==i&&i<this.length}get length(){return this._length}set length(t){if(t>this._length){if(this._allocator){for(;this._length<t;)this.data[this._length++]=this._allocator(this.data[this._length]);return}this._length=t}else{if(this._deallocator)for(let e=t;e<this._length;++e)this.data[e]=this._deallocator(this.data[e]);this._length=t,this._shrink()}}clear(){this.length=0}prune(){this.clear(),this.data=[]}push(t){this.data[this._length++]=t}pushArray(t,e=t.length){for(let i=0;i<e;i++)this.data[this._length++]=t[i]}pushAll(t){for(let e of t)this.data[this._length++]=e}fill(t,e){for(let i=0;i<e;i++)this.data[this._length++]=t}pushNew(){this._allocator&&(this.data[this.length]=this._allocator(this.data[this.length]));let t=this.data[this._length];return++this._length,t}unshift(t){this.data.unshift(t),this._length++,d(this)}pop(){if(0===this.length)return;let t=this.data[this.length-1];return--this.length,this._shrink(),t}remove(t){let e=(0,s.qh)(this.data,(0,a.z)(t),this.length,this._hint);if(-1!==e)return this.data.splice(e,1),--this.length,t}removeUnordered(t){return this.removeUnorderedIndex((0,s.qh)(this.data,(0,a.z)(t),this.length,this._hint))}removeUnorderedIndex(t){if(!(t>=this.length||t<0))return this.swapElements(t,this.length-1),this.pop()}removeUnorderedMany(t,e=t.length,i){this.length=(0,s.mW)(this.data,t,this.length,e,this._hint,i),this._shrink()}front(){if(0!==this.length)return this.data[0]}back(){if(0!==this.length)return this.data[this.length-1]}swapElements(t,e){if(t>=this.length||e>=this.length||t===e)return;let i=this.data[t];this.data[t]=this.data[e],this.data[e]=i}sort(t){l(this.data,0,this.length,t)}stableSort(t){let e=this.toArray().sort(t);for(let t=0;t<e.length;++t)this.data[t]=e[t]}iterableSort(t){return r(this.data,0,this.length,t)}some(t,e){for(let i=0;i<this.length;++i)if(t.call(e,this.data[i],i,this.data))return!0;return!1}find(t,e){let{data:i,length:s}=this;for(let a=0;a<s;++a)if(t.call(e,i[a]))return i[a]}filterInPlace(t,e){let i=0;for(let s=0;s<this._length;++s){let a=this.data[s];t.call(e,a,s,this.data)&&(this.data[s]=this.data[i],this.data[i]=a,i++)}if(this._deallocator)for(let t=i;t<this._length;t++)this.data[t]=this._deallocator(this.data[t]);return this._length=i,this._shrink(),this}forAll(t,e){let{data:i,length:s}=this;for(let a=0;a<s;++a)t.call(e,i[a],a,i)}forEach(t,e){this.data.slice(0,this.length).forEach(t,e)}map(t,e){let i=Array(this.length);for(let s=0;s<this.length;++s)i[s]=t.call(e,this.data[s],s,this.data);return i}reduce(t,e){let i=e;for(let e=0;e<this.length;++e)i=t(i,this.data[e],e,this.data);return i}has(t){let e=this.length,i=this.data;for(let s=0;s<e;++s)if(i[s]===t)return!0;return!1}*[Symbol.iterator](){for(let t=0;t<this.length;++t)yield this.data[t]}}function d(t){t.data.length>1.5*t.length&&(t.data.length=Math.floor(1.1*t.length))}},71936(t,e,i){i.r(e),i.d(e,{default:()=>r});var s=i(1843);function a(t,e){return e.push(t.buffer),{buffer:t.buffer,layout:new s.l5(t.layout)}}var h=i(99058),n=i(93406),l=i(44801);class r{async extract(t){let e=o(t),i=(0,l.o6)(e),s=[e.data.buffer];return{result:d(i,s),transferList:s}}async extractComponentsEdgeLocations(t){let e=o(t),i=(0,l.hx)(e.data,e.skipDeduplicate,e.indices,e.indicesLength),s=[];return{result:a((0,n.K)(i,u).regular.instancesData,s),transferList:s}}async extractEdgeLocations(t){let e=o(t),i=(0,l.hx)(e.data,e.skipDeduplicate,e.indices,e.indicesLength),s=[];return{result:a((0,n.K)(i,c).regular.instancesData,s),transferList:s}}}function o(t){return{data:h.I$.createView(t.dataBuffer),indices:"Uint32Array"===t.indicesType?new Uint32Array(t.indices):"Uint16Array"===t.indicesType?new Uint16Array(t.indices):"Uint8Array"===t.indicesType?new Uint8Array(t.indices):t.indices,indicesLength:t.indicesLength,writerSettings:t.writerSettings,skipDeduplicate:t.skipDeduplicate}}function d(t,e){return e.push(t.regular.lodInfo.lengths.buffer),e.push(t.silhouette.lodInfo.lengths.buffer),{regular:{instancesData:a(t.regular.instancesData,e),lodInfo:{lengths:t.regular.lodInfo.lengths.buffer}},silhouette:{instancesData:a(t.silhouette.instancesData,e),lodInfo:{lengths:t.silhouette.lodInfo.lengths.buffer}},averageEdgeLength:t.averageEdgeLength}}const c=new class{allocate(t){return l.Jb.createBuffer(t)}trim(t,e){return t.slice(0,e)}write(t,e,i){t.position0.setVec(e,i.position0),t.position1.setVec(e,i.position1)}},u=new class{allocate(t){return l.HY.createBuffer(t)}trim(t,e){return t.slice(0,e)}write(t,e,i){t.position0.setVec(e,i.position0),t.position1.setVec(e,i.position1),t.componentIndex.set(e,i.componentIndex)}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[4189],{59231(e,t,r){r.d(t,{a:()=>a,b:()=>l,c:()=>p,d:()=>s,f:()=>d,h:()=>u});const s=Symbol.for("controller");let i;const o=e=>i;let n=[];const a=e=>{if(void 0===e)return void(n=[]);const t=n.indexOf(e);n=-1===t?[...n,e]:n.slice(0,t+1),queueMicrotask(()=>n=[])},l=()=>n;let h;const d=e=>{h!==e&&(h=e,queueMicrotask(()=>h===e?h=void 0:0))},c=e=>{const t=o().manager.X(e);if(void 0!==t)return t;if((e=>"object"==typeof e&&null!==e&&(s in e||"hostConnected"in e||"hostDisconnected"in e||"hostUpdate"in e||"hostUpdated"in e))(e))return e;const r=(()=>{const e=h;return h=void 0,e})();return void 0!==r?r:void 0};let u=!1;const p=e=>{u=!0;try{return e()}finally{u=!1}};r.d(t,["i",0,e=>"function"==typeof e?.then,"j",0,async e=>{const t=c(e);return await t.ready,t},"k",0,c,"r",0,o,"s",0,e=>{i!==e&&(i=e,queueMicrotask(()=>i===e?i=void 0:0))},"u",0,async(e,t)=>{const r=c(e);if(void 0===r)return e;if(await r.ready,"function"==typeof t){const e=r.watchExports(r=>t(r,e))}return r.exports}])},64336(e,t,r){r.d(t,{C:()=>p});var s=r(71785),i=r(59231),o=r(58933),n=r(44613);let a;const l=()=>{a?.forEach(({callbacks:e},t)=>{const r=Object.keys(t);e.forEach(e=>e(r))}),a=void 0},h=(e,t,r)=>{const i=e.manager;return i.V!==o.s6&&i.V!==r&&i.S(void 0,void 0),0===i.T.length&&queueMicrotask(()=>i.S(void 0,void 0)),i.V=r,i.T.push((e,i)=>(0,s.UF)(t,void 0,r===i?e:void 0)),r},d=(e=[(0,i.r)(),...(0,i.b)()],t,r)=>{const o=Array.isArray(e)?e:[e];let n=o.length+1;const d=e=>{n-=1,void 0!==e&&(n=Math.min(n,0)),0===n&&t(e)};o.forEach(e=>((e,t,r)=>{const i=Object.keys(e),o=i.length;void 0===a&&queueMicrotask(l),a??=new Map;let n=a.get(e);return void 0===n&&(n={callbacks:[],keyCount:o},a.set(e,n)),n.keyCount!==o&&(n.callbacks.forEach(e=>e(i)),n.callbacks=[],n.keyCount=o),n.callbacks.push(i=>{const n=e=>(0,s.UF)(t,null,e),a=i[o];void 0===a?n(void 0):e[a]===r?n(a):n(void 0)}),r})(e,t=>d(void 0===t?void 0:{key:t,host:e,isReactive:!1}),r));for(const e of o)if("manager"in e&&e.manager.component===e){h(e,t=>d(void 0===t?void 0:{key:t,host:e,isReactive:!0}),r);break}return r},c=((e="",t={},r=(0,i.r)())=>{const s={emit:s=>{""===e&&l();const i=new CustomEvent(e,{detail:s,cancelable:!0,bubbles:!0,composed:!0,...t});return r.el.dispatchEvent(i),i}};return""===e&&d(void 0,t=>e=t.key,s),s}).bind(null,"");var u;u=i.d;class p{constructor(e){this.#e=[],this.#t=[],this.#r=[],this.#s=[],this.#i=[],this.#o=[],this.#n=[],this.#a=[],this.#l=[],this.#h=!1,this.P=Promise.withResolvers(),this.connectedCalled=!1,this.loadedCalled=!1,this[u]=!0,this.#d=[];const t=this,r=e??(0,i.r)(new.target.name);t.#c=r,t.ready=t.P.promise,t.#u=g(t),t.component=r,t.#c.addController(t),void 0===t.#c.manager||((0,i.a)(t),queueMicrotask(()=>t.catchUpLifecycle()))}#e;#t;#r;#s;#i;#o;#n;#a;#l;#h;#c;catchUpLifecycle(){const{manager:e}=this.#c;!e.connectedCalled||this.connectedCalled||this.triggerConnected(),!e.#h||this.triggerLoad().then(()=>e.loadedCalled&&this.triggerLoaded()).catch((0,n.G3)(this.#c))}#u;get exports(){return this.#u}set exports(e){const t=this.#u;t!==e&&(this.#u=e,this.#d.forEach(s.UF),this.connectedCalled&&!1!==this.O&&this.#c.requestUpdate(this.O,t)),this.P.resolve(e)}setProvisionalExports(e,t=!0){this.#u=t?g(e):e,this.#d.forEach(s.UF)}#d;watchExports(e){const t=()=>e(this.#u);return this.#d.push(t),()=>{this.#d.splice(this.#d.indexOf(t),1)}}get use(){return(0,i.s)(this.#c),i.u}get useRef(){return(0,i.s)(this.#c),i.j}get useRefSync(){return(0,i.s)(this.#c),i.k}controllerRemoved(){this.#c.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(e){this.#e.push(e)}onDisconnected(e){this.#t.push(e)}onLoad(e){this.#r.push(e)}onLoaded(e){this.#s.push(e)}onUpdate(e){this.#i.push(e)}onUpdated(e){this.#o.push(e)}onDestroy(e){this.#n.push(e)}onLifecycle(e){this.#a.push(e),this.connectedCalled&&this.#c.el.isConnected&&this.#p(e)}triggerConnected(){const e=this;e.hostConnected&&(0,s.UF)(e.hostConnected,e),e.#e.forEach(s.UF),e.triggerLifecycle(),e.connectedCalled=!0}triggerDisconnected(){const e=this;e.hostDisconnected&&(0,s.UF)(e.hostDisconnected,e),e.#t.forEach(s.UF),e.#l.forEach(s.UF),e.#l=[]}async triggerLoad(){if(this.#h)return;this.#h=!0;const e=this;e.hostLoad&&await(0,s.ao)(e.hostLoad,e),this.#r.length>0&&await Promise.allSettled(this.#r.map(s.ao)),this.P.resolve(this.#u)}triggerLoaded(){this.loadedCalled||(this.hostLoaded&&(0,s.UF)(this.hostLoaded,this),this.#s.forEach(s.UF),this.loadedCalled=!0)}triggerUpdate(e){this.hostUpdate&&(0,s.UF)(this.hostUpdate,this,e),this.#i.forEach(f,e)}triggerUpdated(e){this.hostUpdated&&(0,s.UF)(this.hostUpdated,this,e),this.#o.forEach(f,e)}triggerDestroy(){this.hostDestroy&&(0,s.UF)(this.hostDestroy,this),this.#n.forEach(s.UF)}triggerLifecycle(){this.hostLifecycle&&this.#p(()=>this.hostLifecycle()),this.#a.forEach(this.#p,this)}#p(e){(0,i.s)(this.#c);const t=(0,s.UF)(e);(Array.isArray(t)?t:[t]).forEach(e=>{"function"==typeof e?this.#l.push(e):"object"==typeof e&&"function"==typeof e.remove&&this.#l.push(e.remove)})}}function f(e){(0,s.UF)(e,void 0,this)}const g=e=>{if("object"!=typeof e&&"function"!=typeof e||null===e)return e;const t=new Proxy(e,{get(e,r,s){if("exports"!==r&&"_exports"!==r||!(r in e)||e[r]!==t)return r in e||r in Promise.prototype||"symbol"==typeof r?"function"==typeof e?e[r]:Reflect.get(e,r,s):void 0}});return t},m=p;r.d(t,["G",0,m,"a",0,d,"b",0,c,"p",0,l])},83978(e,t,r){r.d(t,{WF:()=>I,le:()=>b,s6:()=>x,CP:()=>C,zl:()=>U,Bq:()=>P,pf:()=>R});var s=r(64336);function i(e){for(const t of["Associated","Disabled","Reset","StateRestore"]){const r=`orm${t}Callback`;e.prototype["f"+r]=async function(...e){await this.componentOnReady(),(this.el??this).dispatchEvent(new CustomEvent(`luminaF${r}`,{detail:e}))}}}r(25856),r(66047);const o=e=>{let t=e;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){const r=t;return r.manager?.loadedCalled||(r.J??r._offspring).push(e),(r.I??r._postLoad).promise}return!1},n={};function a(){}const l=Object.defineProperty,h=globalThis.HTMLElement??a;class d extends h{constructor(){super(),this.#f={},this.#g=[],this.I=Promise.withResolvers(),this.H=Promise.withResolvers(),this.J=[];const e=this,t=e.constructor;e._offspring=e.J,e._postLoad=e.I,t.C?.forEach(t=>{Object.hasOwn(e,t)&&(e.#f[t]=e[t],delete e[t])}),t.A?e.#m({a:t.A}):t.B.then(async r=>{await t.K.p,e.#m(await(r.default?.then(e=>"function"==typeof e?{a:e}:e)??r))}).catch(t=>{e.H.reject(t),setTimeout(()=>{throw t})})}static{this.lumina=!0}static F(){for(const e of this.C??[])l(this.prototype,e,{configurable:!0,enumerable:!0,get(){return this.#f[e]},set(t){this.#f[e]=t}});for(const e of this.E??[])l(this.prototype,e,{async value(...t){this.#v||await this.H.promise;const r=this.#v;return await r[e](...t)},configurable:!0});for(const e of this.D??[])l(this.prototype,e,{value(...t){return this.#v[e](...t)},configurable:!0})}static{i(this)}#v;#f;#g;get manager(){return this.#v?.manager}attributeChangedCallback(e,t,r){this.#v?.attributeChangedCallback(e,t,r),this.#v||this.#g.push(e)}connectedCallback(){this.#v?this.#v.connectedCallback?.():queueMicrotask(()=>this.G=o(this))}disconnectedCallback(){this.#v?.disconnectedCallback?.()}async componentOnReady(){return await this.H.promise,this}#m(e){const t=this.constructor,r=t.L,s=this.#f,i=Object.values(e).find(e=>e.L===r),o=`${r}--lazy`;let n=i;for(;n&&!Object.hasOwn(n,"lumina");)n=Object.getPrototypeOf(n);u(n),!t.A&&(t.A=i,customElements.define(o,i)),i.N=this;const a=document.createElement(o);i.N=void 0,this.#v=a,this.#f=a,this.#g.forEach(e=>a.attributeChangedCallback(e,null,this.getAttribute(e))),Object.entries(s).forEach(c,a);const l=this.isConnected;(l||this.G)&&(a.connectedCallback?.(),l||a.disconnectedCallback())}addController(){}requestUpdate(){this.#v?.requestUpdate()}}function c([e,t]){this[e]=t}const u=e=>{const t=e.prototype,r=Element.prototype;Object.hasOwn(t,"isConnected")||(t.setAttribute=function(e,t){r.setAttribute.call(this.el,e,t)},t.removeAttribute=function(e){r.removeAttribute.call(this.el,e)},t.hasAttribute=function(e){return r.hasAttribute.call(this.el,e)},l(t,"isConnected",{get(){return Reflect.get(r,"isConnected",this.el)}}))};var p=r(71785),f=r(60026),g=r(58933),m=r(59231);class v extends s.G{constructor(e){super(e),this.destroyed=!1,this.R=!1,this.V=g.s6,this.T=[],this.#y=new WeakMap,this.#c=e,this.exports=void 0,this.hasDestroy=_ in e&&"function"==typeof e.destroy,g.WF.prototype.addController.call(e,{hostConnected:()=>{if(this.destroyed){const t=e.el.localName;throw e.el.remove(),new Error(`The ${t} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${_} prop.`)}void 0!==this.#_&&clearTimeout(this.#_),(0,s.p)();for(const t of e.M)"triggerConnected"in t?t.triggerConnected():(0,p.UF)(t.hostConnected,t)},hostDisconnected:()=>{for(const t of e.M)"triggerDisconnected"in t?t.triggerDisconnected():(0,p.UF)(t.hostDisconnected,t);this.hasDestroy&&!this.destroyed&&this.U()},hostUpdate:()=>{for(const t of e.M)"triggerUpdate"in t?t.triggerUpdate(this.Q):(0,p.UF)(t.hostUpdate,t,this.Q)},hostUpdated:()=>{for(const t of e.M)"triggerUpdated"in t?t.triggerUpdated(this.Q):(0,p.UF)(t.hostUpdated,t,this.Q);this.Q=void 0}}),queueMicrotask(()=>this.R=!0),(0,m.a)(void 0),(0,m.s)(e)}#_;#c;async destroy(){if(!this.destroyed){this.#c.el.isConnected&&(this.hasDestroy=!1,this.#c.el.remove()),this.#_=void 0,this.destroyed=!0;for(const e of this.#c.M)"triggerDestroy"in e?e.triggerDestroy():(0,p.UF)(e.hostDestroy,e);this.#c.M.splice(0)}}U(){if(void 0!==this.#_&&clearTimeout(this.#_),!this.#c.el.isConnected&&!this.#c.autoDestroyDisabled){const e=()=>{this.#c.destroy()};this.#_=((e,t)=>{const r=t>4e3?2e3:t/4;let s=0;const i=setInterval(()=>{s+=r,s>=t&&(clearInterval(i),e())},r);return i})(e,y)}}S(e,t){const r=this.T;this.V=g.s6,this.T=[],r.forEach(r=>r(e,t))}#y;W(e,t){("object"==typeof t&&null!==t||"function"==typeof t)&&this.#y.set(t,e)}X(e){return"object"==typeof e&&null!==e||"function"==typeof e?this.#y.get(e):void 0}}let y=1e3;const _="autoDestroyDisabled";var w=r(66567),S=r(10845),k=(r(98171),r(83435)),A=r(84);class I extends g.WF{constructor(){super(),this.M=[],this.manager=new v(this);const e=this,t=e.constructor,r=t.N,s=t.K.o,i=I.prototype.shouldUpdate;e.#w=r?.H??Promise.withResolvers(),e.I=r?.I??Promise.withResolvers(),e.J=r?.J??[],e._offspring=e.J,e._postLoad=e.I,e.el=r??e,e.#S=e.enableUpdating,e.enableUpdating=a,e.shouldUpdate!==i&&(e.#k=e.shouldUpdate,e.shouldUpdate=i),s&&(e.#A=new Map,t.elementProperties.forEach((t,r)=>e.#A.set(r,s()))),g.S$&&e.el.setAttribute(t.K.hydratedAttribute,"")}static finalizeStyles(e){const t=super.finalizeStyles(e),r=this.shadowRootOptions===n;return void 0===this.K?.commonStyles||r?t:[this.K.commonStyles,...t]}static createProperty(e,t){const r="number"==typeof t?t:Array.isArray(t)?t[0]:0,s=Array.isArray(t)?t[1]:void 0,i=s?.hasChanged??g.Ec,o={attribute:!!(1&r&&"string"==typeof e)&&(0,f.j1)(e),reflect:!!(2&r),type:4&r?Boolean:8&r?Number:void 0,state:!!(16&r),readOnly:!!(32&r),noAccessor:!!(64&r),useDefault:!!(128&r),c:!1,...s,hasChanged(e,t){const r=i(e,t);return o.c=r,r}};super.createProperty(e,o)}static getPropertyDescriptor(e,t,r){const i=this.K,o=super.getPropertyDescriptor(e,t,r);return r.d=o,{...o,get(){return i.t?.(this.#A.get(e)),o.get?.call(this)},set(t){const i=this.manager;if(r.readOnly&&!m.h&&(i.R||i.connectedCalled))throw Error(`Cannot assign to read-only property "${e}" of ${this.el.localName}. Trying to assign "${t}"`);o.set.call(this,t??void 0),r.c&&this.#A?.get(e)?.notify(),i.T.length>0&&((0,s.p)(),i?.S(e,t))}}}static{this.lumina=!0}static{i(this)}#A;#k;#S;#w;#I;#b;get elementInternals(){return this.#b??=this.el.attachInternals(),this.#b}connectedCallback(){this.hasAttribute("defer-hydration")||this.#C(!0)}#C(e){const t=this.constructor.K.c?.(()=>this.requestUpdate());this.#I=t;const r=!this.manager.connectedCalled;e&&super.connectedCallback(),r?queueMicrotask(()=>this.#U().catch(e=>{this.#w.reject(e),setTimeout(()=>{throw e})})):t&&this.requestUpdate()}#T(e){try{this.#I.clear(),this.constructor.K.r(this.#I,()=>super.update(e))}catch(e){throw this.#I.clear(),e}}disconnectedCallback(){super.disconnectedCallback(),this.#I?.destroy(),this.#I=void 0}createRenderRoot(){const e=this.el.shadowRoot,t=this.constructor,r=t.shadowRootOptions,s=e??(r===n?this.el:this.el.attachShadow(r));if(e)return this.manager.connectedCalled||this.#C(!1),g.WF.prototype.createRenderRoot.call(this),e;if(this.isConnected){const e=s.getRootNode();e.adoptedStyleSheets=[...e.adoptedStyleSheets,...t.elementStyles.map(e=>"styleSheet"in e?e.styleSheet:e)]}return s}async#U(){const e=this.el.G??o(this.el);e&&await e;const t=[];for(const e of this.M)"triggerLoad"in e?t.push(e.triggerLoad()):t.push((0,p.ao)(e.hostLoad,e));await Promise.all(t),await(this.load?.()),this.manager.hasDestroy&&this.manager.onUpdate(e=>e.has(_)&&this.manager.U()),this.#S(!0),this.performUpdate(),this.I.resolve(),await 0;const r=this.J.filter(e=>!e.manager?.loadedCalled);r.length&&await Promise.allSettled(r.map(async e=>await e.componentOnReady())),this.J.length=0,this.el.setAttribute(this.constructor.K.hydratedAttribute,"");for(const e of this.M)"triggerLoaded"in e?e.triggerLoaded():(0,p.UF)(e.hostLoaded,e);this.loaded?.(),this.#w.resolve()}shouldUpdate(e){return!this.manager.destroyed&&(this.manager.Q=e,this.#k?.(e)??!0)}update(e){this.#I?this.#T(e):super.update(e)}listen(e,t,r){const s=t?.bind(this)??t;this.manager.onLifecycle(()=>(this.el.addEventListener(e,s,r),()=>this.el.removeEventListener(e,s,r)))}listenOn(e,t,r,s){const i=r?.bind(this)??r;this.manager.onLifecycle(()=>(e.addEventListener(t,i,s),()=>e.removeEventListener(t,i,s)))}async componentOnReady(){return await this.#w.promise,this}addController(e){this.M.push(e),!(m.d in e)&&this.renderRoot&&this.el.isConnected&&e.hostConnected?.()}removeController(e){this.M.splice(this.M.indexOf(e),1),e.controllerRemoved?.()}}const b=e=>{let t;const r=e=>{t=new URL(e,globalThis.location?.href||void 0).href},s={...e,getAssetPath(e){const r=new URL(e,t);return r.origin!==globalThis.location?.origin?r.href:r.pathname},setAssetPath:r,customElement(e,t){t.K=s,t.L=e,g.S$?function(){try{customElements.define(e,t)}catch{}}():customElements.get(e)||customElements.define(e,t)}};return r(e.defaultAssetPath),s},C=e=>"object"==typeof e&&null!=e?(0,S.H)(e):e,U=e=>"object"==typeof e&&null!=e?(0,A.W)(e):e;class T extends w.WL{#x;#P;constructor(e){super(e);const t=this;this.#P=function(e){return t.#x.call(this,e)}}render(e){return"function"==typeof e?(this.#x=e,(0,k.K)(this.#P)):(0,k.K)(e)}}(0,w.u$)(T);const x=g.s6;function P(e,t,r){null==r?e.removeAttribute(t):e.setAttribute(t,r)}const R={toAttribute:e=>!0===e?"":!1===e?null:e}},49411(e,t,r){r.d(t,{Yt:()=>s,Zj:()=>l,eg:()=>a});const s=(e,t,r)=>(0,o(t).subscribe)(t=>{const s=t.some(t=>((e,t)=>{let r=e;for(;r;){if(r===t)return!0;if(!r.parentNode)return!1;r=r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}return!1})(e,t.target));s&&r()}),i={},o=e=>{const t=e.join(","),r=i[t];if(void 0!==r)return r;const s=new Set,o=new MutationObserver(e=>s.forEach(t=>t(e)));globalThis.document&&o.observe(document.documentElement,{attributes:!0,attributeFilter:e,subtree:!0});const n={subscribe:e=>(s.add(e),()=>{s.delete(e),0===s.size&&(o.disconnect(),i[t]=void 0)})};return i[t]=n,n},n=(e,t)=>{let r=e;for(;r;){const e=r.closest?.(t);if(e)return e;const s=r.getRootNode?.();if(s===globalThis.document)return;r=s?.host}};function a(e){const t=n(e,".calcite-mode-dark, .calcite-mode-light, .calcite-mode-auto");return t?.classList.contains("calcite-mode-dark")||t?.classList.contains("calcite-mode-auto")&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}const l=(e,t,r)=>{const s=n(e,`[${t}]`);return s?.getAttribute(t)??r}},71785(e,t,r){r.d(t,["UF",0,(e,t,...r)=>{try{return e?.call(t,...r)}catch(t){console.error(t,e)}},"ao",0,async(e,t,...r)=>{try{const s=e?.call(t,...r);return await s}catch(t){console.error(t,e)}}])},44613(e,t,r){const s=new Set;const i=e=>"string"==typeof e?e:"el"in e?e.el.localName:"localName"in e?e.localName:e.declaredClass;r.d(t,["G3",0,e=>{const t=`[${i(e)}] `;return e=>{const r=e instanceof Error&&e.message?e:new Error(String(e));r.message=`${t}${r.message}`,setTimeout(()=>{throw e})}},"Rm",0,(e,t,r,o)=>{const n=i(t);if(o?.once){const t=`${e}${n}${r}`;if(s.has(t))return;s.add(t)}let a;if(o?.detail){a={};for(const[e,t]of Object.entries(o.detail))if("object"!=typeof t&&"function"!=typeof t||null===t)a[e]=t;else{const r=new WeakRef(t);Object.defineProperty(a,e,{enumerable:!0,get:()=>r.deref()})}console[e](`[${n}]: ${r}`,a)}else console[e](`[${n}]: ${r}`)}])},60026(e,t,r){const s=/[A-Z]+(?![a-z])|[A-Z]/gu,i=e=>e.charAt(0).toUpperCase()+e.slice(1);crypto,r.d(t,["TK",0,e=>e.split("-").map(i).join(""),"YF",0,e=>e.charAt(0).toLowerCase()+e.slice(1),"j1",0,e=>e.replace(s,(e,t)=>`${0===t?"":"-"}${e.toLowerCase()}`)])},65529(e,t,r){var s=r(56372),i=r(36563);const o=e=>{let t=e;return class extends t{constructor(){super(...arguments),this._listenersMap=null}clearEvents(){this._listenersMap?.clear(),this._listenersMap=null}destroy(){this.clearEvents()}emit(e,t){let r=this._listenersMap?.get(e);if(!r)return!1;let s=!1;for(let e of r.slice()){let r="deref"in e?e.deref():e;r?r?.call(this,t):s=!0}return s&&(r=r.filter(e=>!("deref"in e)||null!=e.deref()),this._listenersMap.set(e,r)),r.length>0}on(e,t){if(Array.isArray(e)){let r=e.map(e=>this.on(e,t));return(0,i.vE)(r)}if(e.includes(","))throw TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap??=new Map;let r=this._listenersMap.get(e)||[];return r.push(t),this._listenersMap.set(e,r),(0,i.hA)(()=>{let r=this._listenersMap?.get(e),s=r?.indexOf(t)??-1;s>=0&&r.splice(s,1)})}once(e,t){let r=this.on(e,e=>{r.remove(),("deref"in t?t.deref():t)?.call(null,e)});return r}hasEventListener(e){let t=this._listenersMap?.get(e);return null!=t&&t.length>0}}},n=o(class{}),a=n,l=o(s.A);r.d(t,["Zt",0,o,"a$",0,n,"bk",0,a,"nJ",0,l])},36708(e,t,r){r.d(t,{C_:()=>u,OH:()=>g,Vh:()=>m,on:()=>c,pc:()=>v,wB:()=>l,z7:()=>h});var s=r(14012),i=r(37955),o=r(36563),n=r(97768),a=r(17676);function l(e,t,r={}){return d(e,t,r,p)}function h(e,t,r={}){return d(e,t,r,f)}function d(e,t,r={},i){let o=null,a=r.once?(e,r)=>{i(e)&&((0,n.xt)(o),t(e,r))}:(e,r)=>{i(e)&&t(e,r)};if(o=(0,s.Cn)(e,a,r.sync,r.equals),r.initial){let t=e();a(t,t)}return o}function c(e,t,r,s={}){let a=null,h=null,d=null;function c(){a&&h&&(h.remove(),s.onListenerRemove?.(a),a=null,h=null)}function u(e){s.once&&s.once&&(0,n.xt)(d),r(e)}let p=l(e,(e,r)=>{c(),(0,i.wb)(e)&&(a=e,h=(0,i.on)(e,t,u),s.onListenerAdd?.(e))},{sync:s.sync,initial:!0});return d=(0,o.hA)(()=>{p.remove(),c()}),d}function u(e,t){return function(e,t,r){if((0,a.G4)(r))return Promise.reject((0,a.NK)());let s=e();if(t?.(s))return Promise.resolve(s);let i=null;function l(){i=(0,n.xt)(i)}return new Promise((s,n)=>{i=(0,o.vE)([(0,a.u7)(r,()=>{l(),n((0,a.NK)())}),d(e,e=>{l(),s(e)},{sync:!1,once:!0},t??p)])})}(e,f,t)}function p(e){return!0}function f(e){return!!e}r(80559);const g={sync:!0},m={initial:!0},v={sync:!0,initial:!0}},16494(e,t,r){var s=r(8673);const i=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup",..."animate.animatetransform.circle.clippath.defs.ellipse.g.image.line.lineargradient.marker.mask.path.pattern.polygon.polyline.radialgradient.rect.stop.svg.switch.symbol.text.textpath.tspan.use".split(".")].reduce((e,t)=>(e[t]=[],e),{}),o="align.alink.alt.bgcolor.border.cellpadding.cellspacing.class.color.cols.colspan.coords.d.dir.face.height.hspace.ismap.lang.marginheight.marginwidth.multiple.nohref.noresize.noshade.nowrap.ref.rel.rev.rows.rowspan.scrolling.shape.span.summary.tabindex.title.usemap.valign.value.vlink.vspace.width".split("."),n=new s.I({whiteList:i,onTagAttr:(e,t,r)=>{let s=`${t}="${r}"`;if(o.includes(t))return s},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0),a={sanitizeHtml:e=>n.sanitize(e)},l=new s.I({whiteList:{br:[]},stripIgnoreTag:!0,escapeHtml:e=>e},!1);r.d(t,["KO",0,a,"Nd",0,l,"W5",0,n])},98232(e,t,r){r.r(t),r.d(t,{default:()=>ot});var s=r(70333),i=r(92602),o=r(49186),n=r(65529),a=r(37955),l=r(4718),h=r(93637),d=r(17676),c=r(84952),u=r(39131),p=r(78888),f=r(32198),g=r(91429),m=r(64108);let v=class extends n.nJ{constructor(e){super(e),this._oAuthCred=null,this.tokenRefreshBuffer=2,e?._oAuthCred&&(this._oAuthCred=e._oAuthCred)}initialize(){this.resources=this.resources||[],this.creationTime??=Date.now()}refreshToken(){return s.id.refreshToken(this)}refreshServerTokens(){return s.id.refreshServerTokens(this)}emitTokenChange(e){clearTimeout(this._refreshTimer);let t=s.id,r=(this.server?t.findServerInfo(this.server):null)?.owningSystemUrl,i=r?t.findServerInfo(r):null;!1===e||r&&"portal"!==this.scope&&(!i?.webTierAuth||t.normalizeWebTierAuth)||null==this.expires&&null==this.validity||this._startRefreshTimer(),this.emit("token-change")}destroy(){this.userId=this.server=this.token=this.expires=this.validity=this.resources=this.creationTime=null,this._oAuthCred&&=(this._oAuthCred.destroy(),null);let e=s.id,t=e.credentials.indexOf(this);t>-1&&e.credentials.splice(t,1),this.emitTokenChange(),this.emit("destroy")}toJSON(){let e=(0,l.oy)({userId:this.userId,server:this.server,token:this.token,expires:this.expires,validity:this.validity,ssl:this.ssl,isAdmin:this.isAdmin,creationTime:this.creationTime,scope:this.scope}),t=this.resources;return t&&t.length>0&&(e.resources=t.slice()),e}_startRefreshTimer(){clearTimeout(this._refreshTimer);let e=6e4*this.tokenRefreshBuffer,t=2**31-1,r=(this.validity?this.creationTime+6e4*this.validity:this.expires)-Date.now();r<0?r=0:r>t&&(r=t),this._refreshTimer=setTimeout(this.refreshToken.bind(this),r>e?r-e:r)}};(0,f.Cg)([(0,g.MZ)()],v.prototype,"creationTime",void 0),(0,f.Cg)([(0,g.MZ)()],v.prototype,"expires",void 0),(0,f.Cg)([(0,g.MZ)()],v.prototype,"isAdmin",void 0),(0,f.Cg)([(0,g.MZ)()],v.prototype,"oAuthState",void 0),(0,f.Cg)([(0,g.MZ)()],v.prototype,"resources",void 0),(0,f.Cg)([(0,g.MZ)()],v.prototype,"scope",void 0),(0,f.Cg)([(0,g.MZ)()],v.prototype,"server",void 0),(0,f.Cg)([(0,g.MZ)()],v.prototype,"ssl",void 0),(0,f.Cg)([(0,g.MZ)()],v.prototype,"token",void 0),(0,f.Cg)([(0,g.MZ)()],v.prototype,"tokenRefreshBuffer",void 0),(0,f.Cg)([(0,g.MZ)()],v.prototype,"userId",void 0),(0,f.Cg)([(0,g.MZ)()],v.prototype,"validity",void 0),v=(0,f.Cg)([(0,m.$K)("esri.identity.Credential")],v);const y=v;var _=r(79783),w=r(49411);function S(e){return function(){let e=getComputedStyle(document.body).getPropertyValue("--esri-calcite-mode-name").replaceAll(/\W/g,"").toLowerCase();return"dark"===e||"light"===e?e:void 0}()??(0,w.eg)(e??document.body)}function k(e){return function(e){return`calcite-mode-${e}`}(S(e))}var A=r(42226),I=r(2741);r(44208);var b=r(36563);const C=Symbol("widget"),U=Symbol("widget-test-data"),T=[],x={},P=new Map;function R(e,t){let r=t.vnodeSelector;if(M(r)){let s=t.properties||x,i=s.key||r,o=t.children?.length?t.children:T,n={key:i,afterCreate:O,afterUpdate:D,afterRemoved:L,parentWidget:e,widgetConstructor:r,widgetProperties:{...s,key:i,children:o}};return{vnodeSelector:r.vnodeSelector,properties:n,children:void 0,text:void 0,domNode:null}}let s=t.children;if(s?.length)for(let t=0;t<s.length;++t)s[t]=R(e,s[t]);return t}function O(e,t,r,{parentWidget:s,widgetConstructor:i,widgetProperties:o}){let n=new i(o);n.container=e,P.set(e,n),n.afterCreate?.(n,e),s.addHandles((0,b.hA)(()=>L(e))),queueMicrotask(()=>{n[U].projector?.renderNow()})}function D(e,t,r,{widgetProperties:s}){let i=P.get(e);i&&(i.set(s),i.afterUpdate?.(i,e))}function L(e){let t=P.get(e);t&&(t.afterRemoved?.(t,e),t.destroy(),P.delete(e))}function M(e){return"function"==typeof e&&e[C]}var E=r(98291),N=r(53966),j=r(36708),$=r(76030);const F=new Map;function q(){F.clear()}function Z(e){F.delete(e)}function V(e){return e.matches(":focus-within")||document.activeElement===e}(()=>{let e=new Map;new ResizeObserver(t=>{q();for(let r of t)e.get(r.target)?.(r)})})();var z=function(e){return{vnodeSelector:"",properties:void 0,children:void 0,text:e.toString(),domNode:null}},B=function(e,t){for(var r=0,s=e.length;r<s;r++){var i=e[r];Array.isArray(i)?B(i,t):null!=i&&!1!==i&&(i.hasOwnProperty("vnodeSelector")||(i=z(i)),t.push(i))}};const H=function(...e){let t=E.A.acquire();for(let r=0;r<e.length;r++){let s=e[r],i=typeof s;if("string"===i)t.push(s);else if(Array.isArray(s))t.push.apply(t,s);else if("object"===i)for(let e in s)s[e]&&t.push(e)}let r=t.join(" ");return E.A.release(t),r},W=function(e){return(t,r)=>{t.hasOwnProperty("_messageBundleProps")||(t._messageBundleProps=t._messageBundleProps?t._messageBundleProps.slice():[]),t._messageBundleProps.push({bundlePath:e,propertyName:r})}};function J(e,t,...r){return"function"!=typeof e||M(e)?function(e,t){var r=[...arguments].slice(2);if(1===r.length&&"string"==typeof r[0])return{vnodeSelector:e,properties:t||void 0,children:void 0,text:r[0],domNode:null};var s=[];return B(r,s),{vnodeSelector:e,properties:t||void 0,children:s,text:void 0,domNode:null}}(e,t??null,...r):e(t,...r)}var G=r(62788),K=r(71429),Y=r(97768),Q=r(61893),X=r(13069),ee="http://www.w3.org/",te=ee+"2000/svg",re=ee+"1999/xlink",se=[],ie=function(e,t){var r={};return Object.keys(e).forEach(function(t){r[t]=e[t]}),t&&Object.keys(t).forEach(function(e){r[e]=t[e]}),r},oe=function(e,t){return e.vnodeSelector===t.vnodeSelector&&(e.properties&&t.properties?e.properties.key===t.properties.key&&e.properties.bind===t.properties.bind:!e.properties&&!t.properties)},ne=function(e){if("string"!=typeof e)throw Error("Style values must be strings")},ae=function(e,t,r){if(""!==t.vnodeSelector)for(var s=r;s<e.length;s++)if(oe(e[s],t))return s;return-1},le=function(e,t,r,s){var i=e[t];if(""!==i.vnodeSelector){var o=i.properties;if(!o||!(void 0===o.key?o.bind:o.key))for(var n=0;n<e.length;n++)if(n!==t&&oe(e[n],i))throw Error(r.vnodeSelector+" had a "+i.vnodeSelector+" child "+("added"===s?s:"removed")+", but there is now more than one. You must add unique key properties to make them distinguishable.")}},he=function(e){if(e.properties){var t=e.properties.enterAnimation;t&&t(e.domNode,e.properties)}},de=[],ce=!1,ue=function(e){(e.children||[]).forEach(ue),e.properties&&e.properties.afterRemoved&&e.properties.afterRemoved.apply(e.properties.bind||e.properties,[e.domNode])},pe=function(){ce=!1,de.forEach(ue),de.length=0},fe=function(e){de.push(e),ce||(ce=!0,typeof window<"u"&&"requestIdleCallback"in window?window.requestIdleCallback(pe,{timeout:16}):setTimeout(pe,16))},ge=function(e){var t=e.domNode;if(e.properties){var r=e.properties.exitAnimation;if(r)return t.style.pointerEvents="none",void r(t,function(){t.parentNode&&(t.parentNode.removeChild(t),fe(e))},e.properties)}t.parentNode&&(t.parentNode.removeChild(t),fe(e))};function me(e){if(!(e instanceof Element&&e.tagName.includes("-")))return!1;var t=window.customElements.get(e.tagName.toLowerCase());return!!t&&e instanceof t}var ve,ye=function(e,t,r){(function(e,t,r){if(t)for(var s=0,i=t;s<i.length;s++)_e(i[s],e,void 0,r)})(e,t.children,r),t.text&&(e.textContent=t.text),function(e,t,r){if(t)for(var s=r.eventHandlerInterceptor,i=Object.keys(t),o=i.length,n=function(o){var n=i[o],a=t[n];if("className"===n)throw Error('Property "className" is not supported, use "class".');if("class"===n)we(e,a,!0);else if("classes"===n)for(var l=Object.keys(a),h=l.length,d=0;d<h;d++){var c=l[d];a[c]&&e.classList.add(c)}else if("styles"===n){var u=Object.keys(a),p=u.length;for(d=0;d<p;d++){var f=u[d],g=a[f];g&&(ne(g),r.styleApplyer(e,f,g))}}else if("key"!==n&&null!=a){var m=typeof a;"function"===m?(0===n.lastIndexOf("on",0)&&(s&&(a=s(n,a,e,t)),"oninput"===n&&function(){var e=a;a=function(t){e.apply(this,[t]),t.target["oninput-value"]=t.target.value}}()),e[n]=a):r.namespace===te?"href"===n?e.setAttributeNS(re,n,a):e.setAttribute(n,a):"string"===m&&"value"!==n?"innerHTML"===n?e[n]=r.sanitizeHtml(a):me(e)&&n in e?e[n]=a:e.setAttribute(n,a):e[n]=a}},a=0;a<o;a++)n(a)}(e,t.properties,r),t.properties&&t.properties.afterCreate&&t.properties.afterCreate.apply(t.properties.bind||t.properties,[e,r,t.vnodeSelector,t.properties,t.children])},_e=function(e,t,r,s){var i,o=0,n=e.vnodeSelector,a=t.ownerDocument;if(""===n)i=e.domNode=a.createTextNode(e.text),void 0===r?t.appendChild(i):t.insertBefore(i,r);else{for(var l=0;l<=n.length;++l){var h=n.charAt(l);if(l===n.length||"."===h||"#"===h){var d=n.charAt(o-1),c=n.slice(o,l);"."===d?i.classList.add(c):"#"===d?i.id=c:("svg"===c&&(s=ie(s,{namespace:te})),void 0===s.namespace?(i=e.domNode=e.domNode||a.createElement(c),"input"===c&&e.properties&&void 0!==e.properties.type&&i.setAttribute("type",e.properties.type)):i=e.domNode=a.createElementNS(s.namespace,c),void 0===r?i.parentNode!==t&&t.appendChild(i):t.insertBefore(i,r)),o=l+1}}ye(i,e,s)}},we=function(e,t,r){t&&t.split(" ").forEach(function(t){t&&e.classList.toggle(t,r)})};ve=function(e,t,r){var s=e.domNode,i=!1;if(e===t)return!1;var o=!1;if(""===t.vnodeSelector){if(t.text!==e.text){var n=s.ownerDocument.createTextNode(t.text);return s.parentNode.replaceChild(n,s),t.domNode=n,!0}t.domNode=s}else 0===t.vnodeSelector.lastIndexOf("svg",0)&&(r=ie(r,{namespace:te})),e.text!==t.text&&(o=!0,void 0===t.text?s.removeChild(s.firstChild):s.textContent=t.text),t.domNode=s,o=function(e,t,r,s,i){if(r===s)return!1;r||=se,s||=se;for(var o,n=r.length,a=s.length,l=0,h=0,d=!1;h<a;){var c=l<n?r[l]:void 0,u=s[h];if(void 0!==c&&oe(c,u))d=ve(c,u,i)||d,l++;else{var p=ae(r,u,l+1);if(p>=0){for(o=l;o<p;o++)ge(r[o]),le(r,o,e,"removed");d=ve(r[p],u,i)||d,l=p+1}else _e(u,t,l<n?r[l].domNode:void 0,i),he(u),le(s,h,e,"added")}h++}if(n>l)for(o=l;o<n;o++)ge(r[o]),le(r,o,e,"removed");return d}(t,s,e.children,t.children,r)||o,o=function(e,t,r,s){if(r){for(var i=!1,o=Object.keys(r),n=o.length,a=0;a<n;a++){var l=o[a],h=r[l],d=t[l];if("class"===l)d!==h&&(we(e,d,!1),we(e,h,!0));else if("classes"===l)for(var c=e.classList,u=Object.keys(h),p=u.length,f=0;f<p;f++){var g=u[f],m=!!h[g];m!==!!d[g]&&(i=!0,m?c.add(g):c.remove(g))}else if("styles"===l){var v=Object.keys(h),y=v.length;for(f=0;f<y;f++){var _=v[f],w=h[_];w!==d[_]&&(i=!0,w?(ne(w),s.styleApplyer(e,_,w)):s.styleApplyer(e,_,""))}}else if(!h&&"string"==typeof d&&(h=""),"value"!==l||me(e)){if(h!==d){var S=typeof h;"function"===S&&s.eventHandlerInterceptor||(s.namespace===te?"href"===l?e.setAttributeNS(re,l,h):e.setAttribute(l,h):"string"===S?"innerHTML"===l?e[l]=s.sanitizeHtml(h):"role"===l&&""===h?e.removeAttribute(l):me(e)&&l in e?e[l]=h:e.setAttribute(l,h):e[l]!==h&&(e[l]=h),i=!0)}}else{var k=e[l];k!==h&&(e["oninput-value"]?k===e["oninput-value"]:h!==d)&&(e[l]=h,e["oninput-value"]=void 0),h!==d&&(i=!0)}}return i}}(s,e.properties,t.properties,r)||o,t.properties&&t.properties.afterUpdate&&t.properties.afterUpdate.apply(t.properties.bind||t.properties,[s,r,t.vnodeSelector,t.properties,t.children]);return o&&t.properties&&t.properties.updateAnimation&&t.properties.updateAnimation(s,t.properties,e.properties),i};var Se=function(e,t){return{getLastRender:function(){return e},update:function(r){if(e.vnodeSelector!==r.vnodeSelector)throw Error("The selector for the root VNode may not be changed. (consider using dom.merge and add one extra level to the virtual DOM)");var s=e;e=r,ve(s,r,t)},domNode:e.domNode}},ke={namespace:void 0,performanceLogger:function(){},eventHandlerInterceptor:void 0,styleApplyer:function(e,t,r){"-"===t.charAt(0)?e.style.setProperty(t,r):e.style[t]=r}},Ae=function(e){return ie(ke,e)},Ie=function(e,t,r){return r=Ae(r),_e(t,e,void 0,r),Se(t,r)},be=function(e,t,r){return r=Ae(r),_e(t,e.parentNode,e,r),Se(t,r)},Ce=function(e,t,r){return r=Ae(r),t.domNode=e,ye(e,t,r),Se(t,r)},Ue=function(e,t,r){return r=Ae(r),_e(t,e.parentNode,e,r),e.parentNode.removeChild(e),Se(t,r)},Te=(Array.prototype.find,r(16494));const xe={handleInterceptedEvent:(e,t,r,s)=>(e.scheduleRender(),t.properties[`on${s.type}`].apply(t.properties.bind||r,[s]))},Pe={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(e,t,r)=>{t.startsWith("-")?e.style.setProperty(t,r):e.style[t]=r}},Re=(e,t,r=!1)=>{let s=e;return t.forEach((e,i)=>{let o=s?.children?((e,t)=>e.find(t))(s.children,t=>t.domNode===e):void 0;(!r||o||i===t.length-1)&&(s=o)}),s},Oe=new Set;var De,Le;new Map;let Me=0;function Ee(e,t){let r=Object.prototype.hasOwnProperty;for(let s in t)r.call(t,s)&&r.call(e,s)&&(null!=e[s]&&null!=t[s]&&"object"==typeof e[s]&&"object"==typeof t[s]?Ee(e[s],t[s]):e[s]=t[s]);return e}const Ne=(e=>{let t,r,s={...xe,...e},i=(u=s,{...Pe,...u}),o=i.performanceLogger,n=!0,a=!1,l=[],h=[],d=(e,r,n)=>{let a;i.eventHandlerInterceptor=(e,r,i,n)=>function(e){o("domEvent",e);let r,i,n=((e,t)=>{let r=[];for(;e&&e!==t;)r.push(e),e=e.parentNode;return r})(e.currentTarget,a.domNode),l=n.some(e=>customElements.get(e?.tagName?.toLowerCase()));if(e.eventPhase!==Event.CAPTURING_PHASE&&l){let t=e.composedPath(),s=t.slice(t.indexOf(e.currentTarget),t.indexOf(a.domNode)).reverse();r=Re(a.getLastRender(),s,!0)}else n.reverse(),r=Re(a.getLastRender(),n);return r&&(i=s.handleInterceptedEvent(t,r,this,e)),o("domEventProcessed",e),i},s.postProcessProjectionOptions?.(i);let d=n();a=e(r,d,{...i,...Te.KO}),i.eventHandlerInterceptor=void 0,l.push(a),h.push(n),s.afterFirstVNodeRendered&&s.afterFirstVNodeRendered(a,d)},c=()=>{if(r=void 0,n){n=!1,o("renderStart",void 0);for(let e=0;e<l.length;e++){let t=h[e]();o("rendered",void 0);try{l[e].update(t)}catch(e){console.error(e)}o("patched",void 0)}o("renderDone",void 0),n=!0}};var u;return s.modifyDoRenderImplementation&&(c=s.modifyDoRenderImplementation(c,l,h)),t={renderNow:c,scheduleRender:()=>{!r&&!a&&(r=requestAnimationFrame(c))},stop:()=>{r&&=void cancelAnimationFrame(r),a=!0},resume:()=>{a=!1,n=!0,t.scheduleRender()},append:(e,t)=>{d(Ie,e,t)},insertBefore:(e,t)=>{d(be,e,t)},merge:(e,t)=>{d(Ce,e,t)},replace:(e,t)=>{d(Ue,e,t)},detach:e=>{for(let t=0;t<h.length;t++)if(h[t]===e)return h.splice(t,1),l.splice(t,1)[0];throw Error("renderFunction was not found")}},t})({postProcessProjectionOptions(e){let t=e.eventHandlerInterceptor,r=/capture$/i;e.eventHandlerInterceptor=(e,s,i,o)=>{let n=t?.(e,s,i,o),a=r.test(e);if(!((e=e.replace(r,"")).toLowerCase()in i)||a){let t=e[2].toLowerCase()+e.slice(3),r=e=>n?.call(i,e);i.addEventListener(t,r,a);let s=()=>i.removeEventListener(t,r,a),l=o.afterRemoved;o.afterRemoved=e=>{l?.(e),s()}}return n}},handleInterceptedEvent(e,t,r,s){let{eventPhase:i,type:o}=s,n=i===Event.CAPTURING_PHASE,a=`on${o}${n?"capture":""}`,l=t.properties;(!l||!(a in l))&&(a=`on${o[0].toUpperCase()}${o.slice(1)}${n?"Capture":""}`,!l||!(a in l))||(q(),e.scheduleRender(),l[a].call(l.bind||r,s))}});let je=!1,$e=class extends((0,Q.g)(n.nJ)){static{this[De]=!0}constructor(e){super({...e}),this[Le]=!0,this._attached=!1,this._projector=Ne,this._readyForTrueRender=!1,this.key=this,this.autoRenderingEnabled=!0,this.topLayerDisabled=!1,this._loadLocale=(0,d.sg)(async()=>{if(this._messageBundleProps?.length){let e=await Promise.allSettled(this._messageBundleProps.map(async({bundlePath:e,propertyName:t})=>{if(this.destroyed)return;let r=await(0,_.ud)(e);this.destroyed||(this.uiStrings&&Object.keys(this.uiStrings)&&(r=Ee((0,l.o8)(r),this.uiStrings)),this[t]=r)}));if(this.destroyed)return;for(let t of e)"rejected"===t.status&&N.A.getLogger(this).error("widget-intl:locale-error",this.declaredClass,t.reason)}await this.loadLocale()}),this.addHandles((0,b.hA)()),A.qu||(0,A.Qu)((0,c.s2)((0,I.s)("components/assets")));let t="esri-widget-uid-"+(0,X.lk)(),r=this.render.bind(this);this._trackingTarget=new K.r(()=>{this.autoRenderingEnabled&&this.scheduleRender()});let s=()=>{if(!this._readyForTrueRender||this.destroyed)return null;let e=r()??{vnodeSelector:"div",properties:{key:`${t}-hidden`,class:"",styles:{display:"none"}},domNode:null,children:void 0,text:void 0},s=e.properties??={};s.key??=t,M(e.vnodeSelector)?s.visible=this.visible&&!1!==s.visible:(this.visible?s.styles||={}:(s.class="",s.styles={display:"none"}),s.styles.display??="");let i=0;return e.children?.forEach(e=>{M(e.vnodeSelector)||(e.properties??={},e.properties.key??=`${this.id}--${i++}`)}),R(this,e)};this.render=()=>{if(je)return s();let e=function(e){return F.get(e)}(this)??null;if(e)return e;this._trackingTarget.clear(),je=!0;try{e=(0,G.a)(this._trackingTarget,s)}catch(e){throw N.A.getLogger(this).error(e),e}finally{je=!1}return e&&function(e,t){F.set(e,t)}(this,e),e};let i=this.beforeFirstRender();i?this._resourcesFetch=i.then(()=>{this.destroyed||(this._readyForTrueRender=!0,this._postInitialize())}):(this._resourcesFetch=Promise.resolve().then(()=>{this.destroyed||this._postInitialize()}),this._readyForTrueRender=!0),this.addResolvingPromise(this._resourcesFetch),function(e){Oe.add(e),e.finally(()=>Oe.delete(e)).catch(()=>{})}(this._resourcesFetch)}postInitialize(){}beforeFirstRender(){let e=this.loadDependencies();return this._messageBundleProps?.length||e?Promise.all([e,this._loadLocale()]).then(()=>{}).catch(d.jH):null}loadDependencies(){return null}loadLocale(){return null}destroy(){this.destroyed||((0,Y.pR)(this._trackingTarget),!this.viewModel?.destroyed&&!this.viewModel?.destroying&&(0,Y.pR)(this.viewModel),this._detach(this.container),this._set("container",null),this.render=()=>null,this._projector=null,Z(this))}get container(){return this._get("container")}set container(e){this._get("container")||this._set("container",function(e){return"string"==typeof e?document.getElementById(e):e??null}(e))}get destroyed(){return super.destroyed}get domNode(){return this.container}set domNode(e){this.container=e}get icon(){return null}set icon(e){this._overrideIfSome("icon",e)}get id(){return this._get("id")||this.container?.id||Date.now().toString(16)+"-widget-"+Me++}set id(e){e&&this._set("id",e)}get label(){return this.declaredClass.split(".").pop()}set label(e){this._overrideIfSome("label",e)}get renderable(){return this._resourcesFetch}get visible(){return this._get("visible")}set visible(e){this._set("visible",e)}get[(De=C,Le=C,U)](){return{projector:this._projector}}static{this.vnodeSelector="div"}render(){throw Error("not implemented")}removeContainer(){this._set("container",null)}scheduleRender(){this.destroyed||(Z(this),this._projector.scheduleRender())}classes(...e){return H.apply(this,e)}renderNow(){this.destroyed||(Z(this),this._projector.renderNow())}_postInitialize(){if(this.destroyed)return;this.scheduleRender(),this._delegatedEventNames?.length&&this.addHandles((0,j.wB)(()=>this.viewModel,(e,t)=>{t&&this.removeHandles("delegated-events"),e&&(0,a.wb)(e)&&this.addHandles(this._delegatedEventNames.map(t=>(0,a.on)(e,t,e=>{this.emit(t,e)})),"delegated-events")},j.pc)),this.postInitialize();let e=async()=>{await this._loadLocale().catch(d.jH),this.scheduleRender()};this.addHandles([(0,_.oQ)(e),(0,j.wB)(()=>this.uiStrings,e)]),this.addHandles((0,j.z7)(()=>this.container,e=>{this.destroyed||(e.closest("[arcgis-widget-wrapped]")||(this.topLayerDisabled=!0,this.announceDeprecation?.()),this._attach(e))},{initial:!0,once:!0}))}_attach(e){e&&(this._projector.merge(e,this.render),this._attached=!0)}_detach(e){this._attached&&=(this._projector.detach(this.render),!1),e?.parentNode?.removeChild(e)}};(0,f.Cg)([(0,g.MZ)()],$e.prototype,"_readyForTrueRender",void 0),(0,f.Cg)([(0,g.MZ)({value:null})],$e.prototype,"container",null),(0,f.Cg)([(0,g.MZ)()],$e.prototype,"icon",null),(0,f.Cg)([(0,g.MZ)()],$e.prototype,"id",null),(0,f.Cg)([(0,g.MZ)()],$e.prototype,"label",null),(0,f.Cg)([(0,g.MZ)()],$e.prototype,"renderable",null),(0,f.Cg)([(0,g.MZ)()],$e.prototype,"uiStrings",void 0),(0,f.Cg)([(0,g.MZ)()],$e.prototype,"viewModel",void 0),(0,f.Cg)([(0,g.MZ)({value:!0})],$e.prototype,"visible",null),(0,f.Cg)([(0,g.MZ)()],$e.prototype,"key",void 0),(0,f.Cg)([(0,g.MZ)()],$e.prototype,"children",void 0),(0,f.Cg)([(0,g.MZ)()],$e.prototype,"afterCreate",void 0),(0,f.Cg)([(0,g.MZ)()],$e.prototype,"afterUpdate",void 0),(0,f.Cg)([(0,g.MZ)()],$e.prototype,"afterRemoved",void 0),(0,f.Cg)([(0,g.MZ)()],$e.prototype,"topLayerDisabled",void 0),$e=(0,f.Cg)([(0,g.$K)("esri.widgets.Widget")],$e);const Fe=$e,qe="esri-identity-modal",Ze={base:qe,info:`${qe}__info`,notice:`${qe}__notice`};let Ve=class extends Fe{constructor(e){super(e),this.container=document.createElement("div"),this.error=null,this.oAuthPrompt=!1,this.open=!1,this.signingIn=!1,this.server=null,this.resource=null,this._usernameInputNode=null,this._passwordInputNode=null,document.body.appendChild(this.container)}loadDependencies(){return function(e){let t=[];for(let r of Object.keys(e))customElements.get(`calcite-${r}`)||t.push(e[r]?.());return t.length>0?Promise.all(t):null}({button:()=>Promise.all([r.e(569),r.e(4682),r.e(5313)]).then(()=>r(35313)),dialog:()=>Promise.all([r.e(569),r.e(4682),r.e(3424),r.e(858)]).then(()=>r(53424)),input:()=>Promise.all([r.e(569),r.e(4682),r.e(4061),r.e(8477)]).then(()=>r(54061)),label:()=>Promise.all([r.e(569),r.e(3275)]).then(()=>r(73275)),notice:()=>Promise.all([r.e(569),r.e(4682),r.e(2754)]).then(()=>r(17241))})}get title(){return this.commonMessages?.auth.signIn}render(){let{open:e,title:t,messages:r,signingIn:s,oAuthPrompt:i,server:o,resource:n,error:a}=this,{info:l,oAuthInfo:h,lblItem:d,invalidUser:c,noAuthService:u,lblUser:p,lblPwd:f,lblCancel:g,lblSigning:m,lblOk:v}=r;return J("div",{class:this.classes(Ze.base,k(this.container))},J("form",{bind:this,onsubmit:this._submit},J("calcite-dialog",{bind:this,heading:t,modal:!0,open:e,outsideCloseDisabled:!0,scale:"s",width:"s",onCalciteDialogClose:this._cancel,onCalciteDialogOpen:this._focusUsernameInput},J("div",{class:Ze.info},(0,_.V2)(i?h:l,{server:o&&/\.arcgis\.com/i.test(o)?"ArcGIS Online":o,resource:`(${n||d})`})),a?J("calcite-notice",{class:Ze.notice,icon:"exclamation-mark-triangle",kind:"danger",open:!0},J("div",{slot:"message"},a.details?.httpStatus?c:u)):null,i?null:[J("calcite-label",null,p,J("calcite-input",{afterCreate:e=>this._usernameInputNode=e,autocomplete:"off",bind:this,name:"username",required:!0,spellcheck:!1,type:"text",value:""})),J("calcite-label",null,f,J("calcite-input",{afterCreate:e=>this._passwordInputNode=e,bind:this,name:"password",required:!0,type:"password",value:""}))],J("calcite-button",{appearance:"outline",bind:this,slot:"footer-end",type:"button",onclick:this._cancel},g),J("calcite-button",{loading:!!s,slot:"footer-end",type:"submit"},s?m:v))))}_focusUsernameInput(){return async function(e,t){let r=(0,d.YL)(t,1e4),s=(0,d.Mq)(r);await(0,$.$m)(s);let i=e();if(!i)return;let o=async()=>{"setFocus"in i&&"function"==typeof i.setFocus?await i.setFocus():i instanceof HTMLElement&&i.focus()};for(true;!V(i)&&!(0,d.G4)(r);)await(0,$.$m)(s),await o()}(()=>this._usernameInputNode)}_cancel(){this._set("signingIn",!1),this.open=!1,this._usernameInputNode&&(this._usernameInputNode.value=""),this._passwordInputNode&&(this._passwordInputNode.value=""),this.emit("cancel")}_submit(e){e.preventDefault(),this._set("signingIn",!0);let t=this.oAuthPrompt?{}:{username:this._usernameInputNode?.value,password:this._passwordInputNode?.value};this.emit("submit",t)}};(0,f.Cg)([(0,g.MZ)({readOnly:!0})],Ve.prototype,"container",void 0),(0,f.Cg)([(0,g.MZ)(),W("esri/t9n/common")],Ve.prototype,"commonMessages",void 0),(0,f.Cg)([(0,g.MZ)()],Ve.prototype,"error",void 0),(0,f.Cg)([(0,g.MZ)(),W("esri/identity/t9n/identity")],Ve.prototype,"messages",void 0),(0,f.Cg)([(0,g.MZ)()],Ve.prototype,"oAuthPrompt",void 0),(0,f.Cg)([(0,g.MZ)()],Ve.prototype,"open",void 0),(0,f.Cg)([(0,g.MZ)()],Ve.prototype,"signingIn",void 0),(0,f.Cg)([(0,g.MZ)()],Ve.prototype,"server",void 0),(0,f.Cg)([(0,g.MZ)({readOnly:!0})],Ve.prototype,"title",null),(0,f.Cg)([(0,g.MZ)()],Ve.prototype,"resource",void 0),Ve=(0,f.Cg)([(0,g.$K)("esri.identity.IdentityModal")],Ve);const ze=Ve,Be="esriJSAPIOAuth";class He{constructor(e,t){this.oAuthInfo=null,this.storage=null,this.appId=null,this.codeVerifier=null,this.expires=null,this.refreshToken=null,this.ssl=null,this.stateUID=null,this.token=null,this.userId=null,this.oAuthInfo=e,this.storage=t,this._init()}isValid(){let e=!1;if(this.oAuthInfo&&this.userId&&(this.refreshToken||this.token))if(null==this.expires&&this.refreshToken)e=!0;else if(this.expires){let t=Date.now();this.expires>t&&(this.expires-t)/1e3>60*this.oAuthInfo.minTimeUntilExpiration&&(e=!0)}return e}save(){if(!this.storage)return!1;let e=this._load(),t=this.oAuthInfo;if(t?.authNamespace&&t.portalUrl){let r=e[t.authNamespace];r||=e[t.authNamespace]={},this.appId||=t.appId,r[t.portalUrl]={appId:this.appId,codeVerifier:this.codeVerifier,expires:this.expires,refreshToken:this.refreshToken,ssl:this.ssl,stateUID:this.stateUID,token:this.token,userId:this.userId};try{this.storage.setItem(Be,JSON.stringify(e))}catch(e){return console.warn(e),!1}return!0}return!1}destroy(){let e=this._load(),t=this.oAuthInfo;if(t?.appId&&t?.portalUrl&&(null==this.expires||this.expires>Date.now())&&(this.refreshToken||this.token)){let e=t.portalUrl.replace(/^http:/i,"https:")+"/sharing/rest/oauth2/revokeToken";(0,p.A)(e,{authMode:"anonymous",keepAlive:!0,method:"post",query:{f:"json",auth_token:this.refreshToken||this.token,client_id:t.appId,token_type_hint:this.refreshToken?"refresh_token":"access_token"}}).catch(()=>{})}if(t?.authNamespace&&t.portalUrl&&this.storage){let r=e[t.authNamespace];if(r){delete r[t.portalUrl];try{this.storage.setItem(Be,JSON.stringify(e))}catch(e){console.log(e)}}}t&&(t._oAuthCred=null,this.oAuthInfo=null)}_init(){let e=this._load(),t=this.oAuthInfo;if(t?.authNamespace&&t.portalUrl){let r=e[t.authNamespace];r&&(r=r[t.portalUrl],r&&(this.appId=r.appId,this.codeVerifier=r.codeVerifier,this.expires=r.expires,this.refreshToken=r.refreshToken,this.ssl=r.ssl,this.stateUID=r.stateUID,this.token=r.token,this.userId=r.userId))}}_load(){let e={};if(this.storage){let t=this.storage.getItem(Be);if(t)try{e=JSON.parse(t)}catch(e){console.warn(e)}}return e}}He.prototype.declaredClass="esri.identity.OAuthCredential";var We,Je=r(25482);let Ge=class extends Je.o{static{We=this}constructor(e){super(e),this._oAuthCred=null,this.appId=null,this.authNamespace="/",this.expiration=20160,this.flowType="auto",this.forceLogin=!1,this.forceUserId=!1,this.locale=null,this.minTimeUntilExpiration=30,this.popup=!1,this.popupCallbackUrl="oauth-callback.html",this.popupWindowFeatures="height=490,width=800,resizable,scrollbars,status",this.portalUrl="https://www.arcgis.com",this.preserveUrlHash=!1,this.userId=null}clone(){return We.fromJSON(this.toJSON())}};(0,f.Cg)([(0,g.MZ)({json:{write:!0}})],Ge.prototype,"appId",void 0),(0,f.Cg)([(0,g.MZ)({json:{write:!0}})],Ge.prototype,"authNamespace",void 0),(0,f.Cg)([(0,g.MZ)({json:{write:!0}})],Ge.prototype,"expiration",void 0),(0,f.Cg)([(0,g.MZ)({json:{write:!0}})],Ge.prototype,"flowType",void 0),(0,f.Cg)([(0,g.MZ)({json:{write:!0}})],Ge.prototype,"forceLogin",void 0),(0,f.Cg)([(0,g.MZ)({json:{write:!0}})],Ge.prototype,"forceUserId",void 0),(0,f.Cg)([(0,g.MZ)({json:{write:!0}})],Ge.prototype,"locale",void 0),(0,f.Cg)([(0,g.MZ)({json:{write:!0}})],Ge.prototype,"minTimeUntilExpiration",void 0),(0,f.Cg)([(0,g.MZ)({json:{write:!0}})],Ge.prototype,"popup",void 0),(0,f.Cg)([(0,g.MZ)({json:{write:!0}})],Ge.prototype,"popupCallbackUrl",void 0),(0,f.Cg)([(0,g.MZ)({json:{write:!0}})],Ge.prototype,"popupWindowFeatures",void 0),(0,f.Cg)([(0,g.MZ)({json:{write:!0}})],Ge.prototype,"portalUrl",void 0),(0,f.Cg)([(0,g.MZ)({json:{write:!0}})],Ge.prototype,"preserveUrlHash",void 0),(0,f.Cg)([(0,g.MZ)({json:{write:!0}})],Ge.prototype,"userId",void 0),Ge=We=(0,f.Cg)([(0,g.$K)("esri.identity.OAuthInfo")],Ge);const Ke=Ge;let Ye=class extends Je.o{constructor(e){super(e),this.adminTokenServiceUrl=null,this.currentVersion=null,this.hasPortal=null,this.hasServer=null,this.owningSystemUrl=null,this.owningTenant=null,this.server=null,this.shortLivedTokenValidity=null,this.tokenServiceUrl=null,this.webTierAuth=null}};(0,f.Cg)([(0,g.MZ)({json:{write:!0}})],Ye.prototype,"adminTokenServiceUrl",void 0),(0,f.Cg)([(0,g.MZ)({json:{write:!0}})],Ye.prototype,"currentVersion",void 0),(0,f.Cg)([(0,g.MZ)({json:{write:!0}})],Ye.prototype,"hasPortal",void 0),(0,f.Cg)([(0,g.MZ)({json:{write:!0}})],Ye.prototype,"hasServer",void 0),(0,f.Cg)([(0,g.MZ)({json:{write:!0}})],Ye.prototype,"owningSystemUrl",void 0),(0,f.Cg)([(0,g.MZ)({json:{write:!0}})],Ye.prototype,"owningTenant",void 0),(0,f.Cg)([(0,g.MZ)({json:{write:!0}})],Ye.prototype,"server",void 0),(0,f.Cg)([(0,g.MZ)({json:{write:!0}})],Ye.prototype,"shortLivedTokenValidity",void 0),(0,f.Cg)([(0,g.MZ)({json:{write:!0}})],Ye.prototype,"tokenServiceUrl",void 0),(0,f.Cg)([(0,g.MZ)({json:{write:!0}})],Ye.prototype,"webTierAuth",void 0),Ye=(0,f.Cg)([(0,g.$K)("esri.identity.ServerInfo")],Ye);const Qe=Ye,Xe={},et=e=>{let t=new c.s0(e.owningSystemUrl).host,r=new c.s0(e.server).host,s=/.+\.arcgis\.com$/i;return s.test(t)&&s.test(r)},tt=(e,t)=>!!(et(e)&&t&&t.some(t=>t.test(e.server)));let rt=null,st=null;try{rt=window.localStorage,st=window.sessionStorage}catch{}class it extends n.a${constructor(){super(),this._portalConfig=globalThis.esriGeowConfig,this.serverInfos=[],this.oAuthInfos=[],this.credentials=[],this._soReqs=[],this._xoReqs=[],this._portals=[],this._defaultOAuthInfo=null,this._defaultTokenValidity=60,this.dialog=null,this.tokenValidity=null,this.normalizeWebTierAuth=!1,this._appOrigin="null"===window.origin?window.location.origin:window.origin,this._appUrlObj=(0,c.An)(window.location.href),this._busy=null,this._rejectOnPersistedPageShow=!1,this._oAuthLocationParams=null,this._gwTokenUrl="/sharing/rest/generateToken",this._agsRest="/rest/services",this._agsPortal=/\/sharing(\/|$)/i,this._agsAdmin=/(https?:\/\/[^/]+\/[^/]+)\/admin\/?(\/.*)?$/i,this._adminSvcs=/\/rest\/admin\/services(\/|$)/i,this._gwDomains=[{regex:/^https?:\/\/www\.arcgis\.com/i,customBaseUrl:"maps.arcgis.com",tokenServiceUrl:"https://www.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/(?:dev|[a-z\d-]+\.mapsdev)\.arcgis\.com/i,customBaseUrl:"mapsdev.arcgis.com",tokenServiceUrl:"https://dev.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/(?:devext|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,customBaseUrl:"mapsdevext.arcgis.com",tokenServiceUrl:"https://devext.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/(?:qaext|[a-z\d-]+\.mapsqa)\.arcgis\.com/i,customBaseUrl:"mapsqa.arcgis.com",tokenServiceUrl:"https://qaext.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/[a-z\d-]+\.maps\.arcgis\.com/i,customBaseUrl:"maps.arcgis.com",tokenServiceUrl:"https://www.arcgis.com/sharing/rest/generateToken"}],this._legacyFed=[],this._regexSDirUrl=/http.+\/rest\/services\/?/gi,this._regexServerType=/(\/(FeatureServer|GPServer|GeoDataServer|GeocodeServer|GeoenrichmentServer|GeometryServer|GlobeServer|ImageServer|KnowledgeGraphServer|MapServer|MissionServer|MobileServer|NAServer|NetworkDiagramServer|OGCFeatureServer|ParcelFabricServer|RelationalCatalogServer|SceneServer|StreamServer|UtilityNetworkServer|ValidationServer|VectorTileServer|VersionManagementServer|VideoServer|3DTilesServer)).*/gi,this._gwUser=/http.+\/users\/([^/]+).*/i,this._gwItem=/http.+\/items\/([^/]+).*/i,this._gwGroup=/http.+\/groups\/([^/]+).*/i,this._rePortalTokenSvc=/\/sharing(\/rest)?\/generatetoken/i,this._createDefaultOAuthInfo=!0,this._hasTestedIfAppIsOnPortal=!1,this._getPlatformSelfError=null,this._getOAuthLocationParams(),window.addEventListener("pageshow",e=>{this._pageShowHandler(e)})}registerServers(e){let t=this.serverInfos;t?(e=e.filter(e=>!this.findServerInfo(e.server)),this.serverInfos=t.concat(e)):this.serverInfos=e,e.forEach(e=>{e.owningSystemUrl&&this._portals.push(e.owningSystemUrl),e.hasPortal&&this._portals.push(e.server)})}registerOAuthInfos(e){let t=this.oAuthInfos;if(t){for(let r of e){let e=this.findOAuthInfo(r.portalUrl);e&&t.splice(t.indexOf(e),1)}this.oAuthInfos=t.concat(e)}else this.oAuthInfos=e}registerToken(e){e={...e};let t,r=this._sanitizeUrl(e.server),s=this._isServerRsrc(r),i=this.findServerInfo(r),o=!0;i||(i=new Qe,i.server=this._getServerInstanceRoot(r),s?i.hasServer=!0:(i.tokenServiceUrl=this._getTokenSvcUrl(r),i.hasPortal=!0),this.registerServers([i])),t=this._findCredential(r),t?(delete e.server,Object.assign(t,e),o=!1):(t=new y({userId:e.userId,server:i.server??void 0,token:e.token,expires:e.expires,ssl:e.ssl,scope:s?"server":"portal"}),t.resources=[r],this.credentials.push(t)),t.emitTokenChange(!1),o||t.refreshServerTokens()}toJSON(){return(0,l.oy)({serverInfos:this.serverInfos.map(e=>e.toJSON()),oAuthInfos:this.oAuthInfos.map(e=>e.toJSON()),credentials:this.credentials.map(e=>e.toJSON())})}initialize(e){if(!e)return;"string"==typeof e&&(e=JSON.parse(e));let t=e.serverInfos,r=e.oAuthInfos,s=e.credentials;if(t){let e=[];t.forEach(t=>{t.server&&t.tokenServiceUrl&&e.push(t.declaredClass?t:new Qe(t))}),e.length&&this.registerServers(e)}if(r){let e=[];r.forEach(t=>{t.appId&&e.push(t.declaredClass?t:new Ke(t))}),e.length&&this.registerOAuthInfos(e)}s&&s.forEach(e=>{e.server&&e.token&&e.expires&&e.expires>Date.now()&&((e=e.declaredClass?e:new y(e)).emitTokenChange(),this.credentials.push(e))})}findServerInfo(e){let t;e=this._sanitizeUrl(e);for(let r of this.serverInfos)if(this._hasSameServerInstance(r.server,e)){t=r;break}return t}findOAuthInfo(e){let t;e=this._sanitizeUrl(e);for(let r of this.oAuthInfos)if(this._hasSameServerInstance(r.portalUrl,e)){t=r;break}return t}findCredential(e,t){if(!e)return;let r;e=this._sanitizeUrl(e);let s=this._isServerRsrc(e)?"server":"portal";if(t){for(let i of this.credentials)if(this._hasSameServerInstance(i.server,e)&&t===i.userId&&i.scope===s){r=i;break}}else for(let t of this.credentials)if(this._hasSameServerInstance(t.server,e)&&-1!==this._getIdenticalSvcIdx(e,t)&&t.scope===s){r=t;break}return r}getCredential(e,t){let r,s=!1,i=!0;t&&(s=!(!t.token&&!t.credential),r=t.error,i=!1!==t.prompt),t={...t},e=this._sanitizeUrl(e);let n=new AbortController,a=Promise.withResolvers();if(t.signal&&(0,d.u7)(t.signal,()=>{n.abort()}),(0,d.u7)(n,()=>{a.reject(new o.A("identity-manager:user-aborted","ABORTED"))}),(0,d.G4)(n))return a.promise;t.signal=n.signal;let l,h=this._isAdminResource(e),u=s?this.findCredential(e):null;if(u&&498===r?.details?.httpStatus)u.destroy();else if(u)return l=new o.A("identity-manager:not-authorized","You are currently signed in as: '"+u.userId+"'. You do not have access to this resource: "+e,{error:r}),a.reject(l),a.promise;let p=this._findCredential(e,t);if(p)return a.resolve(p),a.promise;let f=this.findServerInfo(e);if(f)!f.hasPortal&&f.server&&f.owningSystemUrl&&this._hasSameServerInstance(f.server,f.owningSystemUrl)&&(f.hasPortal=!0),!f.hasServer&&this._isServerRsrc(e)&&(f._restInfoPms=this._getTokenSvcUrl(e),f.hasServer=!0);else{let t=this._getTokenSvcUrl(e);if(!t)return l=new o.A("identity-manager:unknown-resource","Unknown resource - could not find token service endpoint."),a.reject(l),a.promise;f=new Qe,f.server=this._getServerInstanceRoot(e),"string"==typeof t?(f.tokenServiceUrl=t,f.hasPortal=!0):(f._restInfoPms=t,f.hasServer=!0),this.registerServers([f])}return f.hasPortal&&void 0===f._selfReq&&(i||(0,c.FX)(f.tokenServiceUrl,this._appOrigin)||this._gwDomains.some(e=>e.tokenServiceUrl===f.tokenServiceUrl))&&(f._selfReq={owningTenant:t?.owningTenant,selfDfd:this._getPortalSelf(f.tokenServiceUrl.replace(this._rePortalTokenSvc,"/sharing/rest/portals/self"),e)}),this._enqueue(e,f,t,a,h)}getResourceName(e){return this._isRESTService(e)?e.replace(this._regexSDirUrl,"").replace(this._regexServerType,"")||"":this._gwUser.test(e)&&e.replace(this._gwUser,"$1")||this._gwItem.test(e)&&e.replace(this._gwItem,"$1")||this._gwGroup.test(e)&&e.replace(this._gwGroup,"$1")||""}generateToken(e,t,r){let s,i,n,a,l,h,d,u,f=this._rePortalTokenSvc.test(e.tokenServiceUrl),g=new c.s0(this._appOrigin),m=e.shortLivedTokenValidity;t&&(u=this.tokenValidity||m||this._defaultTokenValidity,u>m&&m>0&&(u=m)),r&&(s=r.isAdmin,i=r.serverUrl,n=r.token,h=r.signal,d=r.ssl,e.customParameters=r.customParameters),s?a=e.adminTokenServiceUrl:(a=e.tokenServiceUrl,l=new c.s0(a.toLowerCase()),e.webTierAuth&&r?.serverUrl&&!d&&"http"===g.scheme&&((0,c.FX)(g.uri,a,!0)||"https"===l.scheme&&g.host===l.host&&"7080"===g.port&&"7443"===l.port)&&(a=a.replace(/^https:/i,"http:").replace(/:7443/i,":7080")));let v={query:{request:"getToken",username:t?.username,password:t?.password,serverUrl:i,token:n,expiration:u,referer:s||f?this._appOrigin:null,client:s?"referer":null,f:"json",...e.customParameters},method:"post",authMode:"anonymous",useProxy:this._useProxy(e,r),signal:h};return f||(v.withCredentials=!1),(0,p.A)(a,v).then(r=>{let s=r.data;if(!s?.token)return new o.A("identity-manager:authentication-failed","Unable to generate token");let i=e.server;return Xe[i]||(Xe[i]={}),t&&(Xe[i][t.username]=t.password),s.validity=u,s})}isBusy(){return!!this._busy}async checkSignInStatus(e){return(await this.checkAppAccess(e,"")).credential}checkAppAccess(e,t,r){let s=!1;return this.getCredential(e,{prompt:!1}).then(i=>{let n,a={f:"json"};if("portal"===i.scope)if(t&&(this._doPortalSignIn(e)||r?.force))n=i.server+"/sharing/rest/oauth2/validateAppAccess",a.client_id=t;else{if(!i.token)return{credential:i};n=i.server+"/sharing/rest"}else{if(!i.token)return{credential:i};n=i.server+"/rest/services"}return i.token&&(a.token=i.token),(0,p.A)(n,{query:a,authMode:"anonymous"}).then(e=>{if(!1===e.data.valid)throw new o.A("identity-manager:not-authorized",`You are currently signed in as: '${i.userId}'.`,e.data);return s=!!e.data.viewOnlyUserTypeApp,{credential:i}}).catch(e=>{if("identity-manager:not-authorized"===e.name)throw e;let t=e.details?.httpStatus;if(498===t)throw i.destroy(),new o.A("identity-manager:not-authenticated","User is not signed in.");if(400===t)throw new o.A("identity-manager:invalid-request","Bad request");return{credential:i}})}).then(e=>({credential:e.credential,viewOnly:s}))}setOAuthResponseHash(e){e&&(e.startsWith("#")&&(e=e.slice(1)),this._processOAuthPopupParams((0,c.zf)(e)))}setOAuthRedirectionHandler(e){this._oAuthRedirectFunc=e}setProtocolErrorHandler(e){this._protocolFunc=e}signIn(e,t,r={}){let s=Promise.withResolvers(),i=()=>{l?.remove(),h?.remove(),this.dialog?.destroy(),this.dialog=l=h=null},n=()=>{i(),this._oAuthDfd=null,s.reject(new o.A("identity-manager:user-aborted","ABORTED"))};r.signal&&(0,d.u7)(r.signal,()=>{n()});let a=new ze({open:!0,resource:this.getResourceName(e),server:t.server});this.dialog=a,this.emit("dialog-create");let l=a.on("cancel",n),h=a.on("submit",e=>{this.generateToken(t,e,{isAdmin:r.isAdmin,signal:r.signal}).then(o=>{i();let n=new y({userId:e.username,server:t.server??void 0,token:o.token,expires:null==o.expires?null:Number(o.expires),ssl:!!o.ssl,isAdmin:r.isAdmin,validity:o.validity});s.resolve(n)}).catch(e=>{a.error=e,a.signingIn=!1})});return s.promise}oAuthSignIn(e,t,r,s){this._oAuthDfd=Promise.withResolvers();let i=this._oAuthDfd;s?.signal&&(0,d.u7)(s.signal,()=>{let e=this._oAuthDfd&&this._oAuthDfd.oAuthWin_;e&&!e.closed?e.close():this.dialog&&u()}),i.resUrl_=e,i.sinfo_=t,i.oinfo_=r;let n,a=r._oAuthCred;if(a.storage&&("authorization-code"===r.flowType||"auto"===r.flowType&&t.currentVersion>=8.4)){let e=crypto.getRandomValues(new Uint8Array(32));n=(0,c.$1)(e),a.codeVerifier=n,e=crypto.getRandomValues(new Uint8Array(32)),a.stateUID=(0,c.$1)(e),a.save()||(a.codeVerifier=n=null)}else a.codeVerifier=null;this._getCodeChallenge(n).then(i=>{let o=!s||!1!==s.oAuthPopupConfirmation;if(!r.popup||!o)return void this._doOAuthSignIn(e,t,r,i);let n=new ze({oAuthPrompt:!0,server:t.server,open:!0});this.dialog=n,this.emit("dialog-create"),l=n.on("cancel",u),h=n.on("submit",()=>{p(),this._doOAuthSignIn(e,t,r,i)})});let l,h,u=()=>{p(),this._oAuthDfd=null,i.reject(new o.A("identity-manager:user-aborted","ABORTED"))},p=()=>{l?.remove(),h?.remove(),this.dialog?.destroy(),this.dialog=null};return i.promise}async refreshToken(e){let t,r=this.findServerInfo(e.server),s=r?.owningSystemUrl,i=!!s&&"server"===e.scope,o=i&&tt(r,this._legacyFed),n=r.webTierAuth,a=n&&this.normalizeWebTierAuth,l=Xe[e.server]?.[e.userId],h=e.resources&&e.resources[0],d=i?this.findServerInfo(s):null,c={username:e.userId,password:l};if(n&&!a)return;i&&!d&&this.serverInfos.some(e=>(this._isIdProvider(s,e.server)&&(d=e),!!d));let u=d?this.findCredential(d.server,e.userId):null;if(!i||u){if(!o){if(i)t={serverUrl:h,token:u?.token,ssl:u?.ssl};else if(a)c=null,t={ssl:e.ssl};else{if(!l){let t;return h&&(h=this._sanitizeUrl(h),e._enqueued=1,t=this._enqueue(h,r,null,null,e.isAdmin,e),t.then(()=>{e._enqueued=0,e.refreshServerTokens()}).catch(()=>{e._enqueued=0})),t}e.isAdmin&&(t={isAdmin:!0})}return this.generateToken(i?d:r,i?null:c,t).then(t=>{e.token=t.token,e.expires=null==t.expires?null:Number(t.expires),e.creationTime=Date.now(),e.validity=t.validity,e.emitTokenChange(),e.refreshServerTokens()}).catch(()=>{})}u?.refreshToken()}}refreshServerTokens(e){"portal"===e.scope&&this.credentials.forEach(t=>{let r=this.findServerInfo(t.server),s=r?.owningSystemUrl;t!==e&&t.userId===e.userId&&s&&"server"===t.scope&&(this._hasSameServerInstance(e.server,s)||this._isIdProvider(s,e.server))&&(tt(r,this._legacyFed)?(t.token=e.token,t.expires=e.expires,t.creationTime=e.creationTime,t.validity=e.validity,t.emitTokenChange()):t.refreshToken())})}destroyCredentials(){this.credentials&&this.credentials.slice().forEach(e=>{e.destroy()}),this.emit("credentials-destroy")}enablePostMessageAuth(e="https://www.arcgis.com/sharing/rest"){this._postMessageAuthHandle&&this._postMessageAuthHandle.remove(),this._postMessageAuthHandle=(0,a.on)(window,"message",t=>{if((t.origin===this._appOrigin||t.origin.endsWith(".arcgis.com"))&&"arcgis:auth:requestCredential"===t.data?.type){let r=t.source;this.getCredential(e).then(e=>{r.postMessage({type:"arcgis:auth:credential",credential:{expires:e.expires,server:e.server,ssl:e.ssl,token:e.token,userId:e.userId}},t.origin)}).catch(e=>{r.postMessage({type:"arcgis:auth:error",error:{name:e.name,message:e.message}},t.origin)})}})}disablePostMessageAuth(){this._postMessageAuthHandle&&=(this._postMessageAuthHandle.remove(),null)}_getOAuthLocationParams(){let e=window.location.hash;if(e){e.startsWith("#")&&(e=e.slice(1));let t=(0,c.zf)(e),r=!1;if(t.access_token&&t.expires_in&&t.state&&t.hasOwnProperty("username"))try{t.state=JSON.parse(t.state),t.state.portalUrl&&(this._oAuthLocationParams=t,r=!0)}catch{}else if(t.error&&t.error_description&&(console.log("IdentityManager OAuth Error: ",t.error," - ",t.error_description),"access_denied"===t.error&&(r=!0,t.state)))try{t.state=JSON.parse(t.state)}catch{}r&&(window.location.hash=t.state?.hash||"")}let t=window.location.search;if(t){t.startsWith("?")&&(t=t.slice(1));let e=(0,c.zf)(t),r=!1;if(e.code&&e.state)try{e.state=JSON.parse(e.state),e.state.portalUrl&&e.state.uid&&(this._oAuthLocationParams=e,r=!0)}catch{}else if(e.error&&e.error_description&&(console.log("IdentityManager OAuth Error: ",e.error," - ",e.error_description),"access_denied"===e.error&&(r=!0,e.state)))try{e.state=JSON.parse(e.state)}catch{}if(r){let t={...e};["code","error","error_description","message_code","persist","state"].forEach(e=>{delete t[e]});let r=(0,c.x0)(t),s=window.location.pathname+(r?`?${r}`:"")+(e.state?.hash||"");window.history.replaceState(window.history.state,"",s)}}}_getOAuthToken(e,t,r,s,i){return e=e.replace(/^http:/i,"https:"),(0,p.A)(`${e}/sharing/rest/oauth2/token`,{authMode:"anonymous",method:"post",query:s&&i?{grant_type:"authorization_code",code:t,redirect_uri:s,client_id:r,code_verifier:i}:{grant_type:"refresh_token",refresh_token:t,client_id:r}}).then(e=>e.data)}async _getCodeChallenge(e){if(e&&globalThis.isSecureContext){let t=(new TextEncoder).encode(e),r=await crypto.subtle.digest("SHA-256",t);return(0,c.$1)(new Uint8Array(r))}return null}_pageShowHandler(e){if(e.persisted&&this.isBusy()&&this._rejectOnPersistedPageShow){let e=new o.A("identity-manager:user-aborted","ABORTED");this._errbackFunc(e)}}_findCredential(e,t){let r,s,i,o,n=-1,a=t?.token,l=t?.resource,h=this._isServerRsrc(e)?"server":"portal",d=this.credentials.filter(t=>this._hasSameServerInstance(t.server,e)&&t.scope===h);if(e=l||e,d.length)if(1===d.length){if(r=d[0],i=this.findServerInfo(r.server),s=i?.owningSystemUrl,o=s?this.findCredential(s,r.userId):void 0,n=this._getIdenticalSvcIdx(e,r),!a)return-1===n&&r.resources.push(e),this._addResource(e,o),r;-1!==n&&(r.resources.splice(n,1),this._removeResource(e,o))}else{let t,r;if(d.some(a=>(r=this._getIdenticalSvcIdx(e,a),-1!==r&&(t=a,i=this.findServerInfo(t.server),s=i?.owningSystemUrl,o=s?this.findCredential(s,t.userId):void 0,n=r,!0))),a)t&&(t.resources.splice(n,1),this._removeResource(e,o));else if(t)return this._addResource(e,o),t}}_findOAuthInfo(e){let t=this.findOAuthInfo(e);if(!t)for(let r of this.oAuthInfos)if(this._isIdProvider(r.portalUrl,e)){t=r;break}return t}_addResource(e,t){t&&-1===this._getIdenticalSvcIdx(e,t)&&t.resources.push(e)}_removeResource(e,t){let r=-1;t&&(r=this._getIdenticalSvcIdx(e,t),r>-1&&t.resources.splice(r,1))}_useProxy(e,t){return t?.isAdmin&&!(0,c.FX)(e.adminTokenServiceUrl,this._appOrigin)||!this._isPortalDomain(e.tokenServiceUrl)&&"10.1"===String(e.currentVersion)&&!(0,c.FX)(e.tokenServiceUrl,this._appOrigin)}_getOrigin(e){let t=new c.s0(e);return t.scheme+"://"+t.host+(null==t.port?"":":"+t.port)}_getServerInstanceRoot(e){let t=e.toLowerCase(),r=t.indexOf(this._agsRest);return-1===r&&this._isAdminResource(e)&&(r=this._agsAdmin.test(e)?e.replace(this._agsAdmin,"$1").length:e.search(this._adminSvcs)),-1===r&&!(0,u.$E)(t)&&(r=t.indexOf("/sharing")),-1===r&&t.endsWith("/")&&(r=t.length-1),r>-1?e.slice(0,r):e}_hasSameServerInstance(e,t){return e.endsWith("/")&&(e=e.slice(0,-1)),e=e.toLowerCase(),t=this._getServerInstanceRoot(t).toLowerCase(),e=(0,u.qG)(e),t=(0,u.qG)(t),(e=e.slice(Math.max(0,e.indexOf(":"))))===t.slice(Math.max(0,t.indexOf(":")))}_sanitizeUrl(e){let t=(i.A.request.proxyUrl||"").toLowerCase(),r=t?e.toLowerCase().indexOf(t+"?"):-1;return-1!==r&&(e=e.slice(r+t.length+1)),e=(0,c.S8)(e),(0,c.An)(e).path}_isRESTService(e){return e.includes(this._agsRest)}_isAdminResource(e){return this._agsAdmin.test(e)||this._adminSvcs.test(e)}_isServerRsrc(e){return this._isRESTService(e)||this._isAdminResource(e)}_isIdenticalService(e,t){let r=!1;if(this._isRESTService(e)&&this._isRESTService(t)){let s=this._getSuffix(e).toLowerCase(),i=this._getSuffix(t).toLowerCase();if(r=s===i,!r){let e=/(.*)\/(MapServer|FeatureServer|UtilityNetworkServer).*/gi;r=s.replaceAll(e,"$1")===i.replaceAll(e,"$1")}}else(this._isAdminResource(e)&&this._isAdminResource(t)||!this._isServerRsrc(e)&&!this._isServerRsrc(t)&&this._isPortalDomain(e))&&(r=!0);return r}_isPortalDomain(e){let t=new c.s0(e.toLowerCase()),r=this._portalConfig,s=this._gwDomains.some(e=>e.regex.test(t.uri));return!s&&r&&(s=this._hasSameServerInstance(this._getServerInstanceRoot(r.restBaseUrl),t.uri)),s||i.A.portalUrl&&(s=(0,c.FX)(t,i.A.portalUrl,!0)),s||=this._portals.some(e=>this._hasSameServerInstance(e,t.uri)),s||=this._agsPortal.test(t.path),s}_isIdProvider(e,t){let r=-1,s=-1;this._gwDomains.forEach((i,o)=>{-1===r&&i.regex.test(e)&&(r=o),-1===s&&i.regex.test(t)&&(s=o)});let i=!1;if(r>-1&&s>-1&&(0===r||4===r?(0===s||4===s)&&(i=!0):1===r?(1===s||2===s)&&(i=!0):2===r?2===s&&(i=!0):3===r&&3===s&&(i=!0)),!i){let r=this.findServerInfo(t),s=r?.owningSystemUrl;s&&et(r)&&this._isPortalDomain(s)&&this._isIdProvider(e,s)&&(i=!0)}return i}_getIdenticalSvcIdx(e,t){let r=-1;for(let s=0;s<t.resources.length;s++){let i=t.resources[s];if(this._isIdenticalService(e,i)){r=s;break}}return r}_getSuffix(e){return e.replace(this._regexSDirUrl,"").replace(this._regexServerType,"$1")}_getTokenSvcUrl(e){let t,r,s;if(this._isRESTService(e)||this._isAdminResource(e)){let s=this._getServerInstanceRoot(e);return t=s+"/admin/generateToken",e=s+"/rest/info",r=(0,p.A)(e,{query:{f:"json"}}).then(e=>e.data),{adminUrl:t,promise:r}}if(this._isPortalDomain(e)){let t="";if(this._gwDomains.some(r=>(r.regex.test(e)&&(t=r.tokenServiceUrl),!!t)),t||this._portals.some(r=>(this._hasSameServerInstance(r,e)&&(t=r+this._gwTokenUrl),!!t)),t||(s=e.toLowerCase().indexOf("/sharing"),-1!==s&&(t=e.slice(0,s)+this._gwTokenUrl)),t||=this._getOrigin(e)+this._gwTokenUrl,t){let r=new c.s0(e).port;/^http:\/\//i.test(e)&&"7080"===r&&(t=t.replace(/:7080/i,":7443")),t=t.replace(/http:/i,"https:")}return t}}_processOAuthResponseParams(e,t,r){let s=t._oAuthCred;if(e.code){let i=s.codeVerifier;return s.codeVerifier=null,s.stateUID=null,s.save(),this._getOAuthToken(r.server,e.code,t.appId,this._getRedirectURI(t,!0),i).then(i=>{let o=new y({userId:i.username,server:r.server??void 0,token:i.access_token,expires:Date.now()+1e3*i.expires_in,ssl:i.ssl,oAuthState:e.state,_oAuthCred:s});return t.userId=o.userId,s.storage=i.persist?rt:st,s.refreshToken=i.refresh_token,s.token=null,s.expires=i.refresh_token_expires_in?Date.now()+1e3*i.refresh_token_expires_in:null,s.userId=o.userId,s.ssl=o.ssl,s.save(),o})}let i=new y({userId:e.username,server:r.server??void 0,token:e.access_token,expires:Date.now()+1e3*Number(e.expires_in),ssl:"true"===e.ssl,oAuthState:e.state,_oAuthCred:s});return t.userId=i.userId,s.storage=e.persist?rt:st,s.refreshToken=null,s.token=i.token,s.expires=i.expires,s.userId=i.userId,s.ssl=i.ssl,s.save(),Promise.resolve(i)}_processOAuthPopupParams(e){let t=this._oAuthDfd;if(this._oAuthDfd=null,t)if(clearInterval(this._oAuthIntervalId),this._oAuthOnPopupHandle?.remove(),e.error){let r="access_denied"===e.error,s=new o.A(r?"identity-manager:user-aborted":"identity-manager:authentication-failed",r?"ABORTED":"OAuth: "+e.error+" - "+e.error_description);t.reject(s)}else this._processOAuthResponseParams(e,t.oinfo_,t.sinfo_).then(e=>{t.resolve(e)}).catch(e=>{t.reject(e)})}_setOAuthResponseQueryString(e){e&&(e.startsWith("?")&&(e=e.slice(1)),this._processOAuthPopupParams((0,c.zf)(e)))}async _exchangeToken(e,t,r){return(await(0,p.A)(`${e}/sharing/rest/oauth2/exchangeToken`,{authMode:"anonymous",method:"post",query:{f:"json",client_id:t,token:r}})).data.token}async _getPlatformSelf(e,t){if(this._getPlatformSelfError&&Date.now()-this._getPlatformSelfError[1]<1e3)throw this._getPlatformSelfError[0];e=e.replace(/^http:/i,"https:");try{let r=await(0,p.A)(`${e}/sharing/rest/oauth2/platformSelf`,{authMode:"anonymous",headers:{"X-Esri-Auth-Client-Id":t,"X-Esri-Auth-Redirect-Uri":window.location.href.replace(/#.*$/,"")},method:"post",query:{f:"json",expiration:30},withCredentials:!0});return this._getPlatformSelfError=null,r.data}catch(e){throw"OAUTH_0066"===e.details?.messageCode&&(this._getPlatformSelfError=[e,Date.now()]),e}}_getPortalSelf(e,t){let r;return this._gwDomains.some(t=>(t.regex.test(e)&&(r=t.customBaseUrl),!!r)),r?Promise.resolve({allSSL:!0,currentVersion:"8.4",customBaseUrl:r,portalMode:"multitenant",supportsOAuth:!0}):(this._appOrigin.startsWith("https:")?e=e.replace(/^http:/i,"https:").replace(/:7080/i,":7443"):/^http:/i.test(t)&&(e=e.replace(/^https:/i,"http:").replace(/:7443/i,":7080")),(0,p.A)(e,{query:{f:"json"},authMode:"anonymous",withCredentials:!0}).then(e=>e.data))}_doPortalSignIn(e){let t=this._portalConfig,r=window.location.href,s=this.findServerInfo(e);return!(!t&&!this._isPortalDomain(r)||!(s?s.hasPortal||s.owningSystemUrl&&this._isPortalDomain(s.owningSystemUrl):this._isPortalDomain(e))||!(this._isIdProvider(r,e)||t&&(this._hasSameServerInstance(this._getServerInstanceRoot(t.restBaseUrl),e)||this._isIdProvider(t.restBaseUrl,e))||(0,c.FX)(r,e,!0)))}_checkProtocol(e,t,r,s){let i=!0,n=s?t.adminTokenServiceUrl:t.tokenServiceUrl;return n.trim().toLowerCase().startsWith("https:")&&!this._appOrigin.startsWith("https:")&&(0,c.zs)(n)&&(i=!!this._protocolFunc&&!!this._protocolFunc({resourceUrl:e,serverInfo:t}),i||r(new o.A("identity-manager:aborted","Aborted the Sign-In process to avoid sending password over insecure connection."))),i}_enqueue(e,t,r,s,i,o){return s||=Promise.withResolvers(),s.resUrl_=e,s.sinfo_=t,s.options_=r??{},s.admin_=i,s.refresh_=o,this._busy?this._hasSameServerInstance(this._getServerInstanceRoot(e),this._busy.resUrl_)?(this._oAuthDfd&&this._oAuthDfd.oAuthWin_&&this._oAuthDfd.oAuthWin_.focus(),this._soReqs.push(s)):this._xoReqs.push(s):this._doSignIn(s),s.promise}_doSignIn(e){this._busy=e,this._rejectOnPersistedPageShow=!1;let t=(t,r=!1)=>{let s=e.options_?.resource,i=e.resUrl_,o=e.refresh_,n=r;this.credentials.includes(t)||(o&&this.credentials.includes(o)?(o.userId=t.userId,o.token=t.token,o.expires=t.expires,o.validity=t.validity,o.ssl=t.ssl,o.creationTime=t.creationTime,n=!0,t=o):this.credentials.push(t)),t.resources||(t.resources=[]),t.resources.includes(i)||t.resources.push(i),s&&!t.resources.includes(s)&&t.resources.push(s),t.scope=this._isServerRsrc(i)?"server":"portal",r||t.emitTokenChange();let a=this._soReqs,l={};this._soReqs=[],a.forEach(e=>{if(!this._isIdenticalService(i,e.resUrl_)){let r=this._getSuffix(e.resUrl_);l[r]||(l[r]=!0,t.resources.push(e.resUrl_))}}),e.resolve(t),a.forEach(e=>{this._hasSameServerInstance(this._getServerInstanceRoot(i),e.resUrl_)?e.resolve(t):this._soReqs.push(e)}),this._busy=e.resUrl_=e.sinfo_=e.refresh_=null,n||this.emit("credential-create",{credential:t}),this._soReqs.length?this._doSignIn(this._soReqs.shift()):this._xoReqs.length&&this._doSignIn(this._xoReqs.shift())},r=t=>{e.reject(t),this._busy=e.resUrl_=e.sinfo_=e.refresh_=null,this._soReqs.length?this._doSignIn(this._soReqs.shift()):this._xoReqs.length&&this._doSignIn(this._xoReqs.shift())},s=(i,n,l,h)=>{let u,p,f=e.sinfo_,g=!e.options_||!1!==e.options_.prompt,m=f.hasPortal&&this._findOAuthInfo(e.resUrl_);if(i)t(new y({userId:i,server:f.server??void 0,token:l??void 0,expires:null==h?null:Number(h),ssl:!!n}));else if(window!==window.parent&&this._appUrlObj.query?.["arcgis-auth-origin"]&&this._appUrlObj.query?.["arcgis-auth-portal"]&&this._hasSameServerInstance(this._getServerInstanceRoot(this._appUrlObj.query["arcgis-auth-portal"]),e.resUrl_)){window.parent.postMessage({type:"arcgis:auth:requestCredential"},this._appUrlObj.query["arcgis-auth-origin"]);let s=(0,a.on)(window,"message",e=>{e.source===window.parent&&e.data&&("arcgis:auth:credential"===e.data.type?(s.remove(),e.data.credential.expires<Date.now()?r(new o.A("identity-manager:credential-request-failed","Parent application's token has expired.")):t(new y(e.data.credential))):"arcgis:auth:error"===e.data.type&&(s.remove(),"tokenExpiredError"===e.data.error.name?r(new o.A("identity-manager:credential-request-failed","Parent application's token has expired.")):r(o.A.fromJSON(e.data.error))))});(0,d.u7)(e.options_?.signal,()=>{s.remove()})}else if(m){let i=m._oAuthCred;if(!i){let e=new He(m,rt),t=new He(m,st);e.isValid()&&t.isValid()?e.expires>t.expires?(i=e,t.destroy()):(i=t,e.destroy()):i=e.isValid()?e:t,m._oAuthCred=i}if(i.isValid()){u=new y({userId:i.userId??void 0,server:f.server??void 0,token:i.token??void 0,expires:i.expires,ssl:i.ssl??void 0,_oAuthCred:i});let o=m.appId!==i.appId&&this._doPortalSignIn(e.resUrl_);o||i.refreshToken?(e._pendingDfd=i.refreshToken?this._getOAuthToken(f.server,i.refreshToken,i.appId).then(e=>(u.expires=Date.now()+1e3*e.expires_in,u.token=e.access_token,u)):Promise.resolve(u),e._pendingDfd.then(e=>o?this._exchangeToken(e.server,m.appId,e.token).then(t=>(e.token=t,e)).catch(()=>e):e).then(e=>{t(e)}).catch(e=>{let t=e.details?.httpStatus;t>0&&404!==t?(i.destroy(),s()):r(e)})):t(u)}else if(this._oAuthLocationParams&&this._hasSameServerInstance(m.portalUrl,this._oAuthLocationParams.state.portalUrl)&&(this._oAuthLocationParams.access_token||this._oAuthLocationParams.code&&this._oAuthLocationParams.state.uid===i.stateUID&&i.codeVerifier)){let s=this._oAuthLocationParams;this._oAuthLocationParams=null,e._pendingDfd=this._processOAuthResponseParams(s,m,f).then(e=>{t(e)}).catch(r)}else{let s=()=>{g?e._pendingDfd=this.oAuthSignIn(e.resUrl_,f,m,e.options_).then(t,r):(p=new o.A("identity-manager:not-authenticated","User is not signed in."),r(p))};this._doPortalSignIn(e.resUrl_)?e._pendingDfd=this._getPlatformSelf(f.server,m.appId).then(e=>{(0,c.FX)(e.portalUrl,this._appOrigin,!0)?(u=new y({userId:e.username,server:f.server??void 0,expires:Date.now()+1e3*e.expires_in,token:e.token}),t(u)):s()}).catch(s):s()}}else if(g){if(this._checkProtocol(e.resUrl_,f,r,e.admin_)){let s=e.options_;e.admin_&&(s||={},s.isAdmin=!0),e._pendingDfd=this.signIn(e.resUrl_,f,s).then(t,r)}}else p=new o.A("identity-manager:not-authenticated","User is not signed in."),r(p)},i=()=>{let s,i,o,n=e.sinfo_,a=n.owningSystemUrl,l=e.options_;if(l&&(s=l.token,i=l.prompt),o=this._findCredential(a,{resource:e.resUrl_}),!o)for(let e of this.credentials)if(this._isIdProvider(a,e.server)){o=e;break}if(o){let s=this.findCredential(e.resUrl_,o.userId);if(s)t(s);else if(tt(n,this._legacyFed)){let e=o.toJSON();e.server=n.server,e.resources=null,t(new y(e))}else(e._pendingDfd=this.generateToken(this.findServerInfo(o.server),null,{serverUrl:e.resUrl_,token:o.token,signal:e.options_.signal,ssl:o.ssl})).then(r=>{t(new y({userId:o?.userId,server:n.server??void 0,token:r.token,expires:null==r.expires?null:Number(r.expires),ssl:!!r.ssl,isAdmin:e.admin_,validity:r.validity}))},r)}else this._busy=null,s&&(e.options_.token=null),(e._pendingDfd=this.getCredential(a.replace(/\/?$/,"/sharing"),{resource:e.resUrl_,owningTenant:n.owningTenant,signal:e.options_.signal,prompt:i})).then(()=>{this._enqueue(e.resUrl_,e.sinfo_,e.options_,e,e.admin_)},t=>{e.resUrl_=e.sinfo_=e.refresh_=null,e.reject(t)})};if(this._errbackFunc=r,e.options_?.signal?.aborted)return void r(new o.A("identity-manager:user-aborted","ABORTED"));if(!e.refresh_&&!e.options_?.token&&!e.options_?.credential){let r=this._findCredential(e.resUrl_,e.options_);if(r)return void t(r,!0)}let n=e.sinfo_.owningSystemUrl,l=this._isServerRsrc(e.resUrl_),u=e.sinfo_._restInfoPms;u?u.promise.then(t=>{let r=e.sinfo_;if(r._restInfoPms){r.adminTokenServiceUrl=r._restInfoPms.adminUrl,r._restInfoPms=null,r.tokenServiceUrl=((0,h.wc)("authInfo.tokenServicesUrl",t)||(0,h.wc)("authInfo.tokenServiceUrl",t)||(0,h.wc)("tokenServiceUrl",t))??null,r.shortLivedTokenValidity=(0,h.wc)("authInfo.shortLivedTokenValidity",t)??null,r.currentVersion=t.currentVersion,r.owningTenant=t.owningTenant;let e=r.owningSystemUrl=t.owningSystemUrl;e&&this._portals.push(e)}l&&r.owningSystemUrl?i():s()},()=>{e.sinfo_._restInfoPms=null;let t=new o.A("identity-manager:server-identification-failed","Unknown resource - could not find token service endpoint.");r(t)}):l&&n?i():e.sinfo_._selfReq?e.sinfo_._selfReq.selfDfd.then(t=>{let r,s,i,o,n={};return t&&(r=t.user?.username,n.username=r,n.allSSL=t.allSSL,s=t.supportsOAuth,o=parseFloat(t.currentVersion),"multitenant"===t.portalMode&&(i=t.customBaseUrl),e.sinfo_.currentVersion=o),e.sinfo_.webTierAuth=!!r,r&&this.normalizeWebTierAuth?this.generateToken(e.sinfo_,null,{ssl:n.allSSL}).catch(()=>null).then(e=>(n.portalToken=e?.token,n.tokenExpiration=e?.expires,n)):!r&&s&&o>=4.4&&!this._findOAuthInfo(e.resUrl_)?this._generateOAuthInfo({portalUrl:e.sinfo_.server,customBaseUrl:i,owningTenant:e.sinfo_._selfReq.owningTenant}).catch(()=>null).then(()=>n):n}).catch(()=>null).then(t=>{e.sinfo_._selfReq=null,t?s(t.username,t.allSSL,t.portalToken,t.tokenExpiration):s()}):s()}_generateOAuthInfo(e){let t,r=null,s=e.portalUrl,i=e.customBaseUrl,o=e.owningTenant,n=!this._defaultOAuthInfo&&this._createDefaultOAuthInfo&&!this._hasTestedIfAppIsOnPortal;if(n){r=this._appUrlObj.path;let e=r.search(/\/(apps|home)\//);r=e>-1?r.slice(0,e):null}return n&&r?(this._hasTestedIfAppIsOnPortal=!0,t=(0,p.A)(r+"/sharing/rest",{query:{f:"json"}}).then(()=>{this._defaultOAuthInfo=new Ke({appId:"arcgisonline",popupCallbackUrl:r+"/home/oauth-callback.html"})})):t=Promise.resolve(),t.then(()=>{if(this._defaultOAuthInfo)return s=s.replace(/^http:/i,"https:"),(0,p.A)(s+"/sharing/rest/oauth2/validateRedirectUri",{query:{accountId:o,client_id:this._defaultOAuthInfo.appId,redirect_uri:(0,c.s2)(this._defaultOAuthInfo.popupCallbackUrl),f:"json"}}).then(e=>{if(e.data.valid){let t=this._defaultOAuthInfo.clone();t.portalUrl=e.data.urlKey&&i?"https://"+e.data.urlKey.toLowerCase()+"."+i:s,t.popup=window!==window.top||!((0,c.FX)(s,this._appOrigin)||this._gwDomains.some(e=>e.regex.test(s)&&e.regex.test(this._appOrigin))),this.oAuthInfos.push(t)}})})}_doOAuthSignIn(e,t,r,s){let i=r._oAuthCred,n={portalUrl:r.portalUrl};!r.popup&&r.preserveUrlHash&&window.location.hash&&(n.hash=window.location.hash),i.stateUID&&(n.uid=i.stateUID);let l={client_id:r.appId,response_type:i.codeVerifier?"code":"token",state:JSON.stringify(n),expiration:r.expiration,locale:r.locale,redirect_uri:this._getRedirectURI(r,!!i.codeVerifier)};r.forceLogin&&(l.force_login=!0),r.forceUserId&&r.userId&&(l.prepopulatedusername=r.userId),!r.popup&&this._doPortalSignIn(e)&&(l.redirectToUserOrgUrl=!0),i.codeVerifier&&(l.code_challenge=s||i.codeVerifier,l.code_challenge_method=s?"S256":"plain");let h=this._getAuthorizeUrl(r.portalUrl),d=h+"?"+(0,c.x0)(l);if(r.popup){let e=window.open(d,"esriJSAPIOAuth",r.popupWindowFeatures);if(e)e.focus(),this._oAuthDfd.oAuthWin_=e,this._oAuthIntervalId=setInterval(()=>{if(e.closed){clearInterval(this._oAuthIntervalId),this._oAuthOnPopupHandle.remove();let e=this._oAuthDfd;if(e){let t=new o.A("identity-manager:user-aborted","ABORTED");e.reject(t)}}},500),this._oAuthOnPopupHandle=(0,a.on)(window,["arcgis:auth:hash","arcgis:auth:location:search"],e=>{"arcgis:auth:hash"===e.type?this.setOAuthResponseHash(e.detail):this._setOAuthResponseQueryString(e.detail)});else{let e=new o.A("identity-manager:popup-blocked","ABORTED");this._oAuthDfd.reject(e)}}else this._rejectOnPersistedPageShow=!0,this._oAuthRedirectFunc?this._oAuthRedirectFunc({authorizeParams:l,authorizeUrl:h,resourceUrl:e,serverInfo:t,oAuthInfo:r}):window.location.href=d}_getAuthorizeUrl(e){let t=e.replace(/^http:/i,"https:")+"/sharing/oauth2/authorize",r=(0,u.py)(t);if(r?.portalHostname){let{customBaseUrl:e,portalHostname:t,urlKey:s}=r}return t}_getRedirectURI(e,t){let r=window.location.href.replace(/#.*$/,"");if(e.popup)return(0,c.s2)(e.popupCallbackUrl);if(t){let e=(0,c.An)(r);return e.query&&["code","error","error_description","message_code","persist","state"].forEach(t=>{delete e.query[t]}),(0,c.a6)(e.path,e.query)}return r}}it.prototype.declaredClass="esri.identity.IdentityManagerBase";const ot=new it;(0,s.Aq)(ot)},79783(e,t,r){r.d(t,{ud:()=>S,JK:()=>k,oQ:()=>A,V2:()=>b});var s=r(2741),i=r(97770),o=r(73444),n=r(10838),a=r(18047),l=r(53966),h=r(93637),d=r(799);const c=()=>l.A.getLogger("esri.intl.substitute");function u(e,t){switch(t.type){case"date":return(0,i.Yq)(e,t.intlOptions);case"number":return(0,a.ZV)(e,t.intlOptions);default:return c().warn("missing format descriptor for key {key}"),f(e)}}function p(e,t){switch(t.toLowerCase()){case"dateformat":return(0,i.Yq)(e);case"numberformat":return(0,a.ZV)(e);default:return c().warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?(0,i.Yq)(e):/^numberformat/i.test(t)?(0,a.ZV)(e):f(e)}}function f(e){switch(typeof e){case"string":return e;case"number":return(0,a.ZV)(e);case"boolean":return""+e;default:return e instanceof Date?(0,i.Yq)(e):""}}var g=r(49186),m=r(78888);const v={"esri/t9n/basemaps":"esri/support/basemaps/t9n/basemaps","esri/t9n/common":"esri/common/t9n/common","esri/widgets/support/t9n/ColorPicker":"esri/widgets/support/ColorPicker/t9n/ColorPicker","esri/widgets/support/t9n/timezone":"esri/widgets/support/TimezonePicker/t9n/timezone","esri/widgets/support/t9n/uriUtils":"esri/widgets/support/uriUtils/t9n/uriUtils"};async function y(e){if(null!=w.fetchBundleAsset)return w.fetchBundleAsset(e);let t=await(0,m.A)(e,{responseType:"text"});return JSON.parse(t.data)}class _{constructor({base:e="",pattern:t,location:r=new URL(window.location.href)}){let s;s="string"==typeof r?e=>new URL(e,new URL(r,window.location.href)).href:r instanceof URL?e=>new URL(e,r).href:r,this.pattern="string"==typeof t?RegExp(`^${t}`):t,this.getAssetUrl=s,e=e?e.endsWith("/")?e:e+"/":"",this.matcher=RegExp(`^${e}(?:(.*)\\/)?(.*)$`)}fetchMessageBundle(e,t){return async function(e,t,r,s){let i=v[r]??r,o=t.exec(i);if(!o)throw new g.A("esri-intl:invalid-bundle",`Bundle id "${r}" is not compatible with the pattern "${t}"`);let a=o[1]?`${o[1]}/`:"",l=o[2],h=(0,n.xO)(s),d=i.startsWith("esri/"),c=`${a}${l}.json`,u=h?`${a}${l}_${h}.json`:c,p=d?`${a}messages.en.json`:c,f=d?`${a}messages.${h??"en"}.json`:u,m=[...new Set(d?[f,u,p,c]:[f,p])];for(let[t,s]of m.entries())try{return await y(e(s))}catch(e){if(t===m.length-1)throw new g.A("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:e})}throw new g.A("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`)}(this.getAssetUrl,this.matcher,e,t)}}const w={},S=n.ud,k=o.JK,A=o.oQ,I=n.ao,b=function(e,t,r={}){let{format:s={}}=r;return(0,d.HC)(e,e=>function(e,t,r){let s,i,o=e.indexOf(":");if(-1===o?s=e.trim():(s=e.slice(0,o).trim(),i=e.slice(o+1).trim()),!s)return"";let n=(0,h.wc)(s,t);if(null==n)return"";let a=(i?r?.[i]:null)??r?.[s];return a?u(n,a):i?p(n,i):f(n)}(e,t,s))};var C;I((C={pattern:"esri/",location:s.s},new _(C)))},97770(e,t,r){r.d(t,{Ey:()=>P,F8:()=>x,J2:()=>b,Yq:()=>U,_m:()=>C,_v:()=>w,iS:()=>T,wj:()=>R});var s=r(34747),i=r(66552),o=r(98623),n=r(73444);const a={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},l={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},h={timeZone:"UTC"},d={year:"numeric",month:"numeric",day:"numeric"},c={year:"numeric",month:"long",day:"numeric"},u={year:"numeric",month:"short",day:"numeric"},p={year:"numeric",month:"long",weekday:"long",day:"numeric"},f={hour:"numeric",minute:"numeric"},g={...f,second:"numeric"},m={hourCycle:"h23"},v={...f,...m},y={...g,...m},_={"short-date":d,"short-date-short-time":{...d,...f},"short-date-short-time-24":{...d,...v},"short-date-long-time":{...d,...g},"short-date-long-time-24":{...d,...y},"short-date-le":d,"short-date-le-short-time":{...d,...f},"short-date-le-short-time-24":{...d,...v},"short-date-le-long-time":{...d,...g},"short-date-le-long-time-24":{...d,...y},"long-month-day-year":c,"long-month-day-year-short-time":{...c,...f},"long-month-day-year-short-time-24":{...c,...v},"long-month-day-year-long-time":{...c,...g},"long-month-day-year-long-time-24":{...c,...y},"day-short-month-year":u,"day-short-month-year-short-time":{...u,...f},"day-short-month-year-short-time-24":{...u,...v},"day-short-month-year-long-time":{...u,...g},"day-short-month-year-long-time-24":{...u,...y},"long-date":p,"long-date-short-time":{...p,...f},"long-date-short-time-24":{...p,...v},"long-date-long-time":{...p,...g},"long-date-long-time-24":{...p,...y},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":f,"long-time":g},w=(0,i.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),S={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"};function k(){let e=(0,n.lR)();return(e&&S[e])??(0,n.QC)()}"mart"!==new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)).find(({type:e})=>"month"===e)?.value.toLowerCase()&&(S.bs="sr-Latn-CS");let A=new WeakMap;const I=_["short-date-short-time"];function b(e){return _[e]}function C(e){let{dateStyle:t,timeStyle:r,hour12:s,year:i,month:o}=e,n={};return t?n.dateStyle=t:i&&(n.year=i,n.month=o||void 0),r&&!n.year&&(n.timeStyle=r,n.hour12="auto"===s?void 0:"always"===s),n}function U(e,t=I){return function(e){let t=A.get(e);if(!t){let r=k(),s=R(e.timeZone??"system"),i={...e,timeZone:s};t=new Intl.DateTimeFormat(r,i),A.set(e,t)}return t}(t).format(e)}function T(e,t=I){return U(new Date(e),{...t,...h,...l})}function x(e,t=I){return U(new Date(`1970-01-01T${e}Z`),{...t,...h,...a})}function P(e,t=I){let r=s.c9.fromISO(e,{setZone:!0});if(!r.isValid)return e;if(t.timeZone)return U(r.toJSDate(),t);let i=0===r.offset?"UTC":t.timeZone,o={...t,timeZone:i};return r.toLocaleString(o,{locale:k()})}function R(e){switch(e){case"system":return o.N;case o.L:return"UTC";default:return e}}(0,n.Ml)(()=>{A=new WeakMap})},10838(e,t,r){r.d(t,{ao:()=>c,ud:()=>u,xO:()=>p});var s=r(49186),i=r(36563),o=r(73444);const n={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:"no",nl:!0,no:!0,nn:"no",pl:!0,pt:"pt-BR","pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,zh:"zh-CN","zh-CN":!0,"zh-HK":!0,"zh-TW":!0};function a(e){if(function(e){return e in n}(e)){let t=n[e];return!0===t?e:t}return null}const l=[],h=new Map;function d(e){for(let t of h.keys())f(e.pattern,t)&&h.delete(t)}function c(e){return l.includes(e)||(d(e),l.unshift(e)),(0,i.hA)(()=>{let t=l.indexOf(e);t>-1&&(l.splice(t,1),d(e))})}async function u(e){let t=(0,o.JK)();h.has(e)||h.set(e,async function(e,t){let r=[];for(let s of l)if(f(s.pattern,e))try{return await s.fetchMessageBundle(e,t)}catch(e){r.push(e)}throw r.length?new s.A("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:r}):new s.A("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}(e,t));let r=h.get(e);return r&&await g.add(r),r}function p(e){let t=(0,o.lR)(e);return t?a(e)??a(t):null}function f(e,t){return"string"==typeof e?t.startsWith(e):e.test(t)}(0,o.Ml)(()=>{h.clear()});const g=new class{constructor(){this._numLoading=0,this._dfd=null}async waitForAll(){this._dfd&&await this._dfd.promise}add(e){return this._increase(),e.then(()=>this._decrease(),()=>this._decrease()),this.waitForAll()}_increase(){this._numLoading++,this._dfd||=Promise.withResolvers()}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},18047(e,t,r){r.d(t,{Up:()=>l,ZV:()=>h,yx:()=>a});var s=r(73444);const i={ar:"ar-u-nu-latn",bs:"sr-Latn-CS",nn:"no-NN"};let o=new WeakMap,n={};function a(e={}){let t={};return null!=e.digitSeparator&&(t.useGrouping=e.digitSeparator),null!=e.places&&(t.minimumFractionDigits=t.maximumFractionDigits=e.places),t}function l(e){let{minimumFractionDigits:t,maximumFractionDigits:r,useGrouping:s}=e;return{minimumFractionDigits:t,maximumFractionDigits:r,useGrouping:"auto"===s?"auto":"always"===s}}function h(e,t){return Object.is(e,-0)&&(e=0),function(e){let t=e||n;if(!o.has(t)){let r=(0,s.lR)(),n=r&&i[r]||(0,s.QC)();o.set(t,new Intl.NumberFormat(n,e))}return o.get(t)}(t).format(e)}(0,s.Ml)(()=>{o=new WeakMap,n={}}),new Map}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[3642],{69540(e,t,i){var n=i(32198),r=i(56372),s=i(64108),o=i(88620),a=(i(44208),i(4718)),l=(i(53966),i(97768));const u=Symbol("ClonableMixin"),h=e=>{var t;let i=e,r=class extends i{constructor(){super(...arguments),this[t]=!0}static{t=u}clone(e){let t=(0,o.oY)(this);(0,l.Lw)(t,"unable to clone instance of non-accessor class");let i=t.metadata,n=t.store,r={},s=new Map;for(let t in i){let o=i[t],l=n?.originOf(t),u=o.clonable;if(o.readOnly||!1===u||7!==l&&0!==l&&5!==l&&4!==l)continue;let h=this[t],d=null;if("function"==typeof u)d=u(h,e);else if("reference"===u)d=h;else if(d=(0,a.TU)(h,e),null!=h&&null==d)continue;0===l?s.set(t,d):r[t]=d}let u=new(Object.getPrototypeOf(this).constructor)(r);if(s.size){let e=(0,o.oY)(u)?.store;if(e)for(let[t,i]of s)e.set(t,i,0)}return u}};return r=(0,n.Cg)([(0,s.$K)("esri.core.Clonable")],r),r},d=h(r.A);i.d(t,["OU",0,h,"Pw",0,d])},65529(e,t,i){var n=i(56372),r=i(36563);const s=e=>{let t=e;return class extends t{constructor(){super(...arguments),this._listenersMap=null}clearEvents(){this._listenersMap?.clear(),this._listenersMap=null}destroy(){this.clearEvents()}emit(e,t){let i=this._listenersMap?.get(e);if(!i)return!1;let n=!1;for(let e of i.slice()){let i="deref"in e?e.deref():e;i?i?.call(this,t):n=!0}return n&&(i=i.filter(e=>!("deref"in e)||null!=e.deref()),this._listenersMap.set(e,i)),i.length>0}on(e,t){if(Array.isArray(e)){let i=e.map(e=>this.on(e,t));return(0,r.vE)(i)}if(e.includes(","))throw TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap??=new Map;let i=this._listenersMap.get(e)||[];return i.push(t),this._listenersMap.set(e,i),(0,r.hA)(()=>{let i=this._listenersMap?.get(e),n=i?.indexOf(t)??-1;n>=0&&i.splice(n,1)})}once(e,t){let i=this.on(e,e=>{i.remove(),("deref"in t?t.deref():t)?.call(null,e)});return i}hasEventListener(e){let t=this._listenersMap?.get(e);return null!=t&&t.length>0}}},o=s(class{}),a=o,l=s(n.A);i.d(t,["Zt",0,s,"a$",0,o,"bk",0,a,"nJ",0,l])},66344(e,t,i){i.d(t,{q:()=>a});const n=!!(0,i(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class r{get size(){return this._size}constructor(e=10485760,t=.3){this._maxSize=e,this._maxClientSizeRatio=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._clients=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._clients.clear(),this._db.clear()}register(e){this._clients.set(e.id.slice(0,-1),e)}deregister(e){this.clear(e),this._sizeLimits.delete(e),this._clients.delete(e.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,-1),this._checkSize()}get _maxClientSize(){return this._maxSize*this._maxClientSizeRatio}getSize(e,t){return this._db.get(e.id+t)?.size??0}put(e,t,i,r,o){t=e.id+t;let a=this._db.get(t);if(a&&(this._size-=a.size,e.size-=a.size,this._db.delete(t),a.entry!==i&&this._notifyRemove(t,a.entry,a.size,0)),r>this._maxSize)return void this._notifyRemove(t,i,r,0);if(void 0===i)return void console.warn("Refusing to cache undefined entry ");if(!r||r<0)return n||console.warn(`Refusing to cache entry with size ${r} for key ${t}`),void this._notifyRemove(t,i,0,0);let l=1+Math.max(o,-4)- -3;this._db.set(t,new s(i,r,l)),this._size+=r,e.size+=r,this._checkSize()}updateSize(e,t){t=e.id+t;let i=this._db.get(t);if(!i)return;this._size-=i.size,e.size-=i.size;let n=i.entry.usedMemory;for(;n>this._maxSize;){let e=this._notifyRemove(t,i.entry,n,1);if(!(null!=e&&e>0))return void this._db.delete(t);n=e}i.size=n,this._size+=n,e.size+=n,this._checkSize()}pop(e,t){t=e.id+t;let i=this._db.get(t);if(i)return this._size-=i.size,e.size-=i.size,this._db.delete(t),++this._hit,i.entry;++this._miss}get(e,t){t=e.id+t;let i=this._db.get(t);if(void 0!==i)return this._db.delete(t),i.lives=i.lifetime,this._db.set(t,i),++this._hit,i.entry;++this._miss}peek(e,t){let i=this._db.get(e.id+t);return i?++this._hit:++this._miss,i?.entry}get performanceInfo(){let e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},i=[];this._db.forEach((e,n)=>{let r=e.lifetime;i[r]=(i[r]||0)+e.size,this._clients.forEach(i=>{let{id:r,name:s}=i;if(n.startsWith(r)){let i=t[s]||0;t[s]=i+e.size}})});let n={};this._clients.forEach(e=>{let i=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){let r=t[i]||0;t[i]=r,n[i]=Math.round(100*e.hitRate)+"%"}else n[i]="0%"});let r=Object.keys(t);r.sort((e,i)=>t[i]-t[e]),r.forEach(i=>e[i]=Math.round(t[i]/2**20)+"MB / "+n[i]);for(let t=i.length-1;t>=0;--t){let n=i[t];n&&(e["Priority "+(t+-3-1)]=Math.round(n/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._clients.forEach(e=>e.resetHitRate())}clear(e){let t=e.id;this._db.forEach((e,i)=>{i.startsWith(t)&&(this._size-=e.size,this._db.delete(i),this._notifyRemove(i,e.entry,e.size,0))}),e.size=0}clearAll(){this._db.forEach((e,t)=>this._notifyRemove(t,e.entry,e.size,0)),this._clients.forEach(e=>e.size=0),this._size=0,this._db.clear()}*values(e){for(let[t,i]of this._db)t.startsWith(e.id)&&(yield i.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,i,n){let r=(0,this._clients.get(e.split(o)[0])?.removeFunc)?.(t,n,i);return"number"==typeof r?r:null}_checkSize(){this._sizeLimits.forEach((e,t)=>this._checkSizeLimits(e,t)),this._clients.forEach(e=>this._checkSizeLimits(this._maxClientSize,e)),this._checkSizeLimits(this.maxSize)}setMaxClientSize(e,t){null==t||t<=0?this._sizeLimits.delete(e):this._sizeLimits.set(e,t)}_checkSizeLimits(e,t){let i=t??this;if(i.size<=e)return;let n=t?.id,r=!0;for(;r;){r=!1;for(let[s,a]of this._db)if(0===a.lifetime&&(!n||s.startsWith(n))){let n=t??this._clients.get(s.split(o)[0]);if(this._purgeItem(s,a,n),i.size<=.9*e)return;r||=this._db.has(s)}}for(let[r,s]of this._db)if(!n||r.startsWith(n)){let n=t??this._clients.get(r.split(o)[0]);if(this._purgeItem(r,s,n),i.size<=.9*e)return}}_purgeItem(e,t,i){if(this._db.delete(e),t.lives<=1){this._size-=t.size,i&&(i.size-=t.size);let n=this._notifyRemove(e,t.entry,t.size,1);null!=n&&n>0&&(this._size+=n,i&&(i.size+=n),t.lives=t.lifetime,t.size=n,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}new r(0);class s{constructor(e,t,i){this.entry=e,this.size=t,this.lifetime=i,this.lives=i}}const o=":";class a{constructor(e,t){this.removeFunc=t,this.id=":",this.name="",this.size=0,this._storage=new r(e,1),this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(e,t,i=1){this._storage.put(this,e,t,i,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}},60999(e,t,i){i.d(t,{DZ:()=>m,Ke:()=>f,QA:()=>p,Tj:()=>h,UT:()=>y,aD:()=>_,jJ:()=>u});var n=i(32198),r=i(56372),s=i(10107),o=i(64108),a=i(97768),l=i(17676);function u(e,t,i){return(0,l.Lx)(e.map((e,n)=>t.apply(i,[e,n])))}async function h(e,t,i){return(await(0,l.Lx)(e.map((e,n)=>t.apply(i,[e,n])))).map(e=>e.value)}function d(e){return{ok:!0,value:e}}function c(e){return{ok:!1,error:e}}async function f(e){if(null==e)return{ok:!1,error:Error("no promise provided")};try{return d(await e)}catch(e){return c(e)}}async function m(e){try{return d(await e)}catch(e){return(0,l.QP)(e),c(e)}}function p(e){if(!0===e.ok)return e.value;throw e.error}function y(e,t){return new g(e,t)}let g=class extends r.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super(),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,a.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;let{signal:i}=this._abortController;this.promise=e(i),this.promise.then(e=>{this._result=d(e),this._cleanup()},e=>{this._result=c(e),this._cleanup()}),this._abortHandle=(0,l.u7)(t,this.abort)}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,a.xt)(this._abortHandle),this._abortController=null}};(0,n.Cg)([(0,s.MZ)()],g.prototype,"value",null),(0,n.Cg)([(0,s.MZ)()],g.prototype,"error",null),(0,n.Cg)([(0,s.MZ)()],g.prototype,"finished",null),(0,n.Cg)([(0,s.MZ)()],g.prototype,"promise",void 0),(0,n.Cg)([(0,s.MZ)()],g.prototype,"_result",void 0),g=(0,n.Cg)([(0,o.$K)("esri.core.asyncUtils.ReactiveTask")],g);class _{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});let t=await e;return{[Symbol.dispose]:t}}async run(e){let t={stack:[],error:void 0,hasError:!1};try{return(0,n.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,n.hk)(t)}}}},67482(e,t,i){function n(e){return null!==r(e)}function r(e){return function(e){let t=s.exec(e);if(!t?.groups)return null;let i=t.groups,n=+i.year,r=i.month-1,o=+i.day,a=+(i.hours??"0"),l=+(i.minutes??"0"),u=+(i.seconds??"0");if(a>23||l>59||u>59)return null;let h,d=i.ms??"0",c=d?+d.padEnd(3,"0").slice(0,3):0;if(i.isUTC||!i.offsetSign)h=Date.UTC(n,r,o,a,l,u,c);else{let e=+i.offsetHours,t=+i.offsetMinutes;h=6e4*("+"===i.offsetSign?-1:1)*(60*e+t)+Date.UTC(n,r,o,a,l,u,c)}return Number.isNaN(h)?null:h}(e)??function(e){let t=new Date(e),i=t.getTime();return Number.isNaN(i)?null:e.toLowerCase()===t.toUTCString().toLowerCase()?i:null}(e)??function(e){if(!o.test(e))return null;let t=new Date(e);return Number.isNaN(t.getTime())?null:t.getTime()-6e4*t.getTimezoneOffset()}(e)}i.d(t,{C:()=>n,_:()=>r});const s=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,o=/^((\d{1,2}[/-]\d{1,2}[/-]\d{4})|(\d{4}[/-]\d{1,2}[/-]\d{1,2}))( \d{1,2}:\d{1,2}:\d{1,2}( ((AM)|(PM)))?)?$/i},9093(e,t,i){function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function r(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}i.d(t,{o8:()=>r,vt:()=>n});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:r,create:n,fromValues:function(e,t,i,n,r,s,o,a,l,u,h,d,c,f,m,p){return[e,t,i,n,r,s,o,a,l,u,h,d,c,f,m,p]}},Symbol.toStringTag,{value:"Module"})),i.d(t,["zK",0,s])},35522(e,t,i){i.d(t,{$A:()=>I,Bw:()=>s,C:()=>o,Cc:()=>F,DI:()=>x,Il:()=>L,Io:()=>_,Ln:()=>g,Om:()=>w,Qr:()=>d,Re:()=>u,S8:()=>v,T9:()=>p,WQ:()=>l,Z0:()=>T,_S:()=>f,aI:()=>P,ei:()=>A,fw:()=>z,gL:()=>C,hG:()=>M,hZ:()=>a,hs:()=>y,jb:()=>O,jk:()=>m,lo:()=>j,lw:()=>h,m3:()=>b,oW:()=>D,t2:()=>E,tn:()=>c,uE:()=>k,ze:()=>S});var n=i(51850),r=i(34304);function s(e){let t=e[0],i=e[1],n=e[2];return Math.sqrt(t*t+i*i+n*n)}function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(e,t,i,n){return e[0]=t,e[1]=i,e[2]=n,e}function l(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e[2]=t[2]+i[2],e}function u(e,t,i){return e[0]=t[0]-i[0],e[1]=t[1]-i[1],e[2]=t[2]-i[2],e}function h(e,t,i){return e[0]=t[0]*i[0],e[1]=t[1]*i[1],e[2]=t[2]*i[2],e}function d(e,t,i){return e[0]=t[0]/i[0],e[1]=t[1]/i[1],e[2]=t[2]/i[2],e}function c(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function f(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function m(e,t,i){return e[0]=Math.min(t[0],i[0]),e[1]=Math.min(t[1],i[1]),e[2]=Math.min(t[2],i[2]),e}function p(e,t,i){return e[0]=Math.max(t[0],i[0]),e[1]=Math.max(t[1],i[1]),e[2]=Math.max(t[2],i[2]),e}function y(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e}function g(e,t,i,n){return e[0]=t[0]+i[0]*n,e[1]=t[1]+i[1]*n,e[2]=t[2]+i[2]*n,e}function _(e,t){let i=t[0]-e[0],n=t[1]-e[1],r=t[2]-e[2];return Math.sqrt(i*i+n*n+r*r)}function M(e,t){let i=t[0]-e[0],n=t[1]-e[1],r=t[2]-e[2];return i*i+n*n+r*r}function b(e){let t=e[0],i=e[1],n=e[2];return t*t+i*i+n*n}function S(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function x(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function v(e,t=e){let i=t[0],n=t[1],r=t[2],s=i*i+n*n+r*r;return s>0&&(s=1/Math.sqrt(s),e[0]=t[0]*s,e[1]=t[1]*s,e[2]=t[2]*s),e}function w(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function I(e,t,i){let n=t[0],r=t[1],s=t[2],o=i[0],a=i[1],l=i[2];return e[0]=r*l-s*a,e[1]=s*o-n*l,e[2]=n*a-r*o,e}function F(e,t,i,n){let r=t[0],s=t[1],o=t[2];return e[0]=r+n*(i[0]-r),e[1]=s+n*(i[1]-s),e[2]=o+n*(i[2]-o),e}function T(e,t,i){let n=t[0],r=t[1],s=t[2];return e[0]=i[0]*n+i[4]*r+i[8]*s+i[12],e[1]=i[1]*n+i[5]*r+i[9]*s+i[13],e[2]=i[2]*n+i[6]*r+i[10]*s+i[14],e}function A(e,t,i){let n=t[0],r=t[1],s=t[2];return e[0]=n*i[0]+r*i[3]+s*i[6],e[1]=n*i[1]+r*i[4]+s*i[7],e[2]=n*i[2]+r*i[5]+s*i[8],e}function C(e,t,i){return z(e,t,i[0],i[1],i[2],i[3])}function z(e,t,i,n,r,s){let o=t[0],a=t[1],l=t[2],u=n*l-r*a,h=r*o-i*l,d=i*a-n*o,c=n*d-r*h,f=r*u-i*d,m=i*h-n*u,p=2*s;return e[0]=o+u*p+2*c,e[1]=a+h*p+2*f,e[2]=l+d*p+2*m,e}const R=(0,n.vt)(),B=(0,n.vt)();function E(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function P(e,t){if(e===t)return!0;let i=e[0],n=e[1],s=e[2],o=t[0],a=t[1],l=t[2],u=(0,r.FD)();return Math.abs(i-o)<=u*Math.max(1,Math.abs(i),Math.abs(o))&&Math.abs(n-a)<=u*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(s-l)<=u*Math.max(1,Math.abs(s),Math.abs(l))}function D(e,t,i){let n=i[0]-t[0],r=i[1]-t[1],s=i[2]-t[2],o=n*n+r*r+s*s;return o>0?(o=1/Math.sqrt(o),e[0]=n*o,e[1]=r*o,e[2]=s*o,e):(e[0]=0,e[1]=0,e[2]=0,e)}const O=u,q=h,N=d,Z=_,j=M,L=s,k=b;Object.freeze(Object.defineProperty({__proto__:null,abs:c,add:l,angle:function(e,t){v(R,e),v(B,t);let i=w(R,B);return i>1?0:i<-1?Math.PI:Math.acos(i)},applyTranslation:function(e,t,i){return e[0]=t[0]+i[12],e[1]=t[1]+i[13],e[2]=t[2]+i[14],e},bezier:function(e,t,i,n,r,s){let o=1-s,a=o*o,l=s*s,u=a*o,h=3*s*a,d=3*l*o,c=l*s;return e[0]=t[0]*u+i[0]*h+n[0]*d+r[0]*c,e[1]=t[1]*u+i[1]*h+n[1]*d+r[1]*c,e[2]=t[2]*u+i[2]*h+n[2]*d+r[2]*c,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,i=1){return e[0]=Math.min(Math.max(e[0],t),i),e[1]=Math.min(Math.max(e[1],t),i),e[2]=Math.min(Math.max(e[2],t),i),e},copy:o,cross:I,crossAndNormalize:function(e,t,i){let n=t[0],r=t[1],s=t[2],o=i[0],a=i[1],l=i[2],u=r*l-s*a,h=s*o-n*l,d=n*a-r*o,c=Math.sqrt(u*u+h*h+d*d);return e[0]=u/c,e[1]=h/c,e[2]=d/c,e},direction:D,dist:Z,distance:_,div:N,divide:d,dot:w,equals:P,exactEquals:E,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,i,n,r,s){let o=s*s,a=o*(2*s-3)+1,l=o*(s-2)+s,u=o*(s-1),h=o*(3-2*s);return e[0]=t[0]*a+i[0]*l+n[0]*u+r[0]*h,e[1]=t[1]*a+i[1]*l+n[1]*u+r[1]*h,e[2]=t[2]*a+i[2]*l+n[2]*u+r[2]*h,e},inverse:x,len:L,length:s,lerp:F,max:p,min:m,mul:q,multiply:h,negate:S,normalize:v,random:function(e,t=1){let i=r.Ov,n=2*i()*Math.PI,s=2*i()-1,o=Math.sqrt(1-s*s)*t;return e[0]=Math.cos(n)*o,e[1]=Math.sin(n)*o,e[2]=s*t,e},rotateX:function(e,t,i,n){let r=[],s=[];return r[0]=t[0]-i[0],r[1]=t[1]-i[1],r[2]=t[2]-i[2],s[0]=r[0],s[1]=r[1]*Math.cos(n)-r[2]*Math.sin(n),s[2]=r[1]*Math.sin(n)+r[2]*Math.cos(n),e[0]=s[0]+i[0],e[1]=s[1]+i[1],e[2]=s[2]+i[2],e},rotateY:function(e,t,i,n){let r=[],s=[];return r[0]=t[0]-i[0],r[1]=t[1]-i[1],r[2]=t[2]-i[2],s[0]=r[2]*Math.sin(n)+r[0]*Math.cos(n),s[1]=r[1],s[2]=r[2]*Math.cos(n)-r[0]*Math.sin(n),e[0]=s[0]+i[0],e[1]=s[1]+i[1],e[2]=s[2]+i[2],e},rotateZ:function(e,t,i,n){let r=[],s=[];return r[0]=t[0]-i[0],r[1]=t[1]-i[1],r[2]=t[2]-i[2],s[0]=r[0]*Math.cos(n)-r[1]*Math.sin(n),s[1]=r[0]*Math.sin(n)+r[1]*Math.cos(n),s[2]=r[2],e[0]=s[0]+i[0],e[1]=s[1]+i[1],e[2]=s[2]+i[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:y,scaleAndAdd:g,scaleTo:function(e,t){return y(e,e,t/L(e))},set:a,sign:f,sqrDist:j,sqrLen:k,squaredDistance:M,squaredLength:b,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:O,subtract:u,transformMat3:A,transformMat4:T,transformMat4Z:function(e,t){return t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]},transformQuat:C,transformQuatValues:z},Symbol.toStringTag,{value:"Module"}))},75503(e,t,i){i.d(t,{wq:()=>a});var n=i(4576),r=i(21818),s=(i(44208),i(15142)),o=i(11006);class a{constructor(e=9,t){this._compareMinX=c,this._compareMinY=f,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),S.prune(),x.prune(),v.prune(),w.prune()}all(e){l(this._data,e)}search(e,t){let i=this._data,n=this._toBBox;if(M(e,i))for(S.clear();i;){for(let r=0,s=i.children.length;r<s;r++){let s=i.children[r],o=i.leaf?n(s):s;M(e,o)&&(i.leaf?t(s):_(e,o)?l(s,t):S.push(s))}i=S.pop()}}collides(e){let t=this._data,i=this._toBBox;if(!M(e,t))return!1;for(S.clear();t;){for(let n=0,r=t.children.length;n<r;n++){let r=t.children[n],s=t.leaf?i(r):r;if(M(e,s)){if(t.leaf||_(e,s))return!0;S.push(r)}}t=S.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,i=e.length;t<i;t++)this.insert(e[t]);return this}let t=this._build(e.slice(),0,e.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){let e=this._data;this._data=t,t=e}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(e){return e&&this._insert(e,this._data.height-1),this}clear(){return this._data=new T([]),this}remove(e){if(!e)return this;let t,i=this._data,s=null,o=0,a=!1,l=this._toBBox(e);for(v.clear(),w.clear();i||v.length>0;){if(i||(i=v.pop(),s=v.data[v.length-1],o=w.pop()??0,a=!0),i.leaf&&(t=(0,n.qh)(i.children,(0,r.z)(e),i.children.length,i.indexHint),-1!==t))return i.children.splice(t,1),v.push(i),this._condense(v),this;a||i.leaf||!_(i,l)?s?(o++,i=s.children[o],a=!1):i=null:(v.push(i),w.push(o),o=0,s=i,i=i.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_build(e,t,i,n){let r=i-t+1,s=this._maxEntries;if(r<=s){let n=new T(e.slice(t,i+1));return u(n,this._toBBox),n}n||(n=Math.ceil(Math.log(r)/Math.log(s)),s=Math.ceil(r/s**(n-1)));let o=new A([]);o.height=n;let a=Math.ceil(r/s),l=a*Math.ceil(Math.sqrt(s));b(e,t,i,l,this._compareMinX);for(let r=t;r<=i;r+=l){let t=Math.min(r+l-1,i);b(e,r,t,a,this._compareMinY);for(let i=r;i<=t;i+=a){let r=Math.min(i+a-1,t);o.children.push(this._build(e,i,r,n-1))}}return u(o,this._toBBox),o}_insert(e,t,i){let n=this._toBBox,r=i?e:n(e);v.clear();let s=function(e,t,i,n){for(;n.push(t),!0!==t.leaf&&n.length-1!==i;){let i,n=1/0,r=1/0;for(let s=0,o=t.children.length;s<o;s++){let o=t.children[s],a=m(o),l=y(e,o)-a;l<r?(r=l,n=a<n?a:n,i=o):l===r&&a<n&&(n=a,i=o)}t=i||t.children[0]}return t}(r,this._data,t,v);for(s.children.push(e),d(s,r);t>=0&&v.data[t].children.length>this._maxEntries;)this._split(v,t),t--;!function(e,t,i){for(let n=i;n>=0;n--)d(t.data[n],e)}(r,v,t)}_split(e,t){let i=e.data[t],n=i.children.length,r=this._minEntries;this._chooseSplitAxis(i,r,n);let s=this._chooseSplitIndex(i,r,n);if(!s)return;let o=i.children.splice(s,i.children.length-s),a=i.leaf?new T(o):new A(o);a.height=i.height,u(i,this._toBBox),u(a,this._toBBox),t?e.data[t-1].children.push(a):this._splitRoot(i,a)}_splitRoot(e,t){this._data=new A([e,t]),this._data.height=e.height+1,u(this._data,this._toBBox)}_chooseSplitIndex(e,t,i){let n,r,s;n=r=1/0;for(let o=t;o<=i-t;o++){let t=h(e,0,o,this._toBBox),a=h(e,o,i,this._toBBox),l=g(t,a),u=m(t)+m(a);l<n?(n=l,s=o,r=u<r?u:r):l===n&&u<r&&(r=u,s=o)}return s}_chooseSplitAxis(e,t,i){let n=e.leaf?this._compareMinX:c,r=e.leaf?this._compareMinY:f;this._allDistMargin(e,t,i,n)<this._allDistMargin(e,t,i,r)&&e.children.sort(n)}_allDistMargin(e,t,i,n){e.children.sort(n);let r=this._toBBox,s=h(e,0,t,r),o=h(e,i-t,i,r),a=p(s)+p(o);for(let n=t;n<i-t;n++){let t=e.children[n];d(s,e.leaf?r(t):t),a+=p(s)}for(let n=i-t-1;n>=t;n--){let t=e.children[n];d(o,e.leaf?r(t):t),a+=p(o)}return a}_condense(e){for(let t=e.length-1;t>=0;t--){let i=e.data[t];if(0===i.children.length)if(t>0){let r=e.data[t-1],s=r.children;s.splice((0,n.qh)(s,i,s.length,r.indexHint),1)}else this.clear();else u(i,this._toBBox)}}_initFormat(e){let t=["return a"," - b",";"];this._compareMinX=Function("a","b",t.join(e[0])),this._compareMinY=Function("a","b",t.join(e[1])),this._toBBox=Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function l(e,t){let i=e;for(x.clear();i;){if(!0===i.leaf)for(let e of i.children)t((0,r.z)(e));else x.pushArray(i.children);i=x.pop()??null}}function u(e,t){h(e,0,e.children.length,t,e)}function h(e,t,i,n,r){r||=new T([]),r.minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(let s,o=t;o<i;o++)s=e.children[o],d(r,e.leaf?n(s):s);return r}function d(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function c(e,t){return e.minX-t.minX}function f(e,t){return e.minY-t.minY}function m(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function p(e){return e.maxX-e.minX+(e.maxY-e.minY)}function y(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function g(e,t){let i=Math.max(e.minX,t.minX),n=Math.max(e.minY,t.minY),r=Math.min(e.maxX,t.maxX),s=Math.min(e.maxY,t.maxY);return Math.max(0,r-i)*Math.max(0,s-n)}function _(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function M(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function b(e,t,i,n,r){let s=[t,i];for(;s.length;){let t=s.pop(),i=s.pop();if(t-i<=n)continue;let a=i+Math.ceil((t-i)/n/2)*n;(0,o.q)(e,a,i,t,r),s.push(i,a,a,t)}}const S=new s.A,x=new s.A,v=new s.A,w=new s.A({deallocator:void 0});class I{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class F extends I{constructor(){super(...arguments),this.height=1,this.indexHint=new n.vW}}class T extends F{constructor(e){super(),this.children=e,this.leaf=!0}}class A extends F{constructor(e){super(),this.children=e,this.leaf=!1}}},69397(e,t,i){i.d(t,{JY:()=>f,Qf:()=>l,Qh:()=>o,lM:()=>s,ro:()=>u,rq:()=>h});var n=i(44208),r=i(34275);function s(e){if(!e)return 0;let t=d;for(let i in e)e.hasOwnProperty(i)&&(t+=a(e[i],!1));return t}function o(e){if(!e)return 0;if("number"==typeof e[0])return l(e);if(Array.isArray(e))return function(e){let t=e.length;if(0===t||"number"==typeof e[0])return h(e,8);let i=c;for(let n=0;n<t;n++)i+=a(e[n]);return i}(e);let t=d;for(let i in e)e.hasOwnProperty(i)&&(t+=a(e[i]));return t}function a(e,t=!0){switch(typeof e){case"object":return t?o(e):d;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function l(...e){return e.reduce((e,t)=>e+u(t),0)}function u(e,t=16){return e?(0,r.iu)(e)?e.byteLength+m:Array.isArray(e)?h(e,t):0:0}function h(e,t){return c+e.length*t}const d=32,c=16,f=(0,n.A)("ios")||!(0,n.A)("chrome")&&!(0,n.A)("opr")?8:4,m=145},36708(e,t,i){i.d(t,{C_:()=>c,OH:()=>p,Vh:()=>y,on:()=>d,pc:()=>g,wB:()=>l,z7:()=>u});var n=i(14012),r=i(37955),s=i(36563),o=i(97768),a=i(17676);function l(e,t,i={}){return h(e,t,i,f)}function u(e,t,i={}){return h(e,t,i,m)}function h(e,t,i={},r){let s=null,a=i.once?(e,i)=>{r(e)&&((0,o.xt)(s),t(e,i))}:(e,i)=>{r(e)&&t(e,i)};if(s=(0,n.Cn)(e,a,i.sync,i.equals),i.initial){let t=e();a(t,t)}return s}function d(e,t,i,n={}){let a=null,u=null,h=null;function d(){a&&u&&(u.remove(),n.onListenerRemove?.(a),a=null,u=null)}function c(e){n.once&&n.once&&(0,o.xt)(h),i(e)}let f=l(e,(e,i)=>{d(),(0,r.wb)(e)&&(a=e,u=(0,r.on)(e,t,c),n.onListenerAdd?.(e))},{sync:n.sync,initial:!0});return h=(0,s.hA)(()=>{f.remove(),d()}),h}function c(e,t){return function(e,t,i){if((0,a.G4)(i))return Promise.reject((0,a.NK)());let n=e();if(t?.(n))return Promise.resolve(n);let r=null;function l(){r=(0,o.xt)(r)}return new Promise((n,o)=>{r=(0,s.vE)([(0,a.u7)(i,()=>{l(),o((0,a.NK)())}),h(e,e=>{l(),n(e)},{sync:!1,once:!0},t??f)])})}(e,m,t)}function f(e){return!0}function m(e){return!!e}i(80559);const p={sync:!0},y={initial:!0},g={sync:!0,initial:!0}},44794(e,t,i){i.d(t,{v:()=>a});var n=i(62788),r=i(95488),s=i(4718);class o{constructor(e,t){this._observable=new r.I,this._value=e,this._equalityFunction=t}get value(){return(0,n.gc)(this._observable),this._value}set value(e){this._equalityFunction(e,this._value)||(this._value=e,this._observable.notify())}mutate(e){e(this._value),this._observable.notify()}}function a(e,t=s.gh){return new o(e,t)}},88930(e,t,i){i.d(t,{S1:()=>a,VW:()=>l,lL:()=>u,rb:()=>h,t:()=>d});var n=i(34747),r=i(97770);i(98623);const s=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,o={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function a(e,t,i,s="system"){if("unknown"===i)return e;let o=new n.oh((0,r.wj)(s)),a=n.c9.fromJSDate(e,{zone:o}),l="decades"===i||"centuries"===i?"year":function(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}(i);return"decades"===i&&(t*=10),"centuries"===i&&(t*=100),a.plus({[l]:t}).toJSDate()}function l(e,t,i="milliseconds"){let n=e.getTime(),r=d(t,i,"milliseconds");return new Date(n+r)}function u(e,t,i="system"){let{unit:s}=t,o=Math.max(1,Math.trunc(t.value)),a=new n.oh((0,r.wj)(i)),l=n.c9.fromJSDate(e,{zone:a}),u=e=>e-e%o;switch(s){case"milliseconds":return l.startOf("second").plus({millisecond:u(l.millisecond)}).toJSDate();case"seconds":return l.startOf("minute").plus({second:u(l.second)}).toJSDate();case"minutes":return l.startOf("hour").plus({minute:u(l.minute)}).toJSDate();case"hours":return l.startOf("day").plus({hour:u(l.hour)}).toJSDate();case"days":return l.startOf("month").plus({day:u(l.day-1)}).toJSDate();case"weeks":{let e=l.startOf("year").startOf("week"),t=Math.floor(l.diff(e,"weeks").weeks);return e.plus({week:u(t)}).toJSDate()}case"months":return l.startOf("year").plus({month:u(l.month-1)}).toJSDate();case"years":case"decades":case"centuries":{let e=l.startOf("year"),t=("decades"===s?10:"centuries"===s?100:1)*o,i=e.year-e.year%t;return e.set({year:i}).toJSDate()}case"unknown":return e}}function h(e){let t=s.exec(e);if(!t)return null;let{hh:i,mm:n,ss:r,ms:a}=t.groups;return Number(i)*o.hours+Number(n)*o.minutes+Number(r||0)*o.seconds+Number(a||0)}function d(e,t,i){return 0===e?0:e*o[t]/o[i]}},48526(e,t,i){var n,r=i(32198),s=i(91429),o=i(4576),a=i(4718),l=i(5443),u=i(91075),h=i(86738),d=i(16930),c=i(90634),f=i(47610),m=i(56993),p=i(43937);let y=n=class extends u.A{constructor(e){super(function(e){if(!e)return;let{points:t,hasM:i,hasZ:n,spatialReference:r}=e;switch(t??=[],t?.at(0)?.length){case 4:n??=!0,i??=!0;break;case 3:n??=!0!==i,i??=!n;break;default:n??=!1,i??=!1}return r??=d.A.WGS84,{...e,hasM:i,hasZ:n,points:t,spatialReference:r}}(e)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){let e=(0,c.ge)(this);return e?new l.A({...e,spatialReference:this.spatialReference}):null}writePoints(e,t){t.points=(0,a.o8)(this.points)}clone(){let{points:e,spatialReference:t,hasM:i,hasZ:r}=this;return new n({points:(0,a.o8)(e),spatialReference:t.clone(),hasM:i,hasZ:r})}equals(e){if(this===e)return!0;if(null==e)return!1;let t=this.spatialReference,i=e.spatialReference;return!(null!=t!=(null!=i)||null!=t&&null!=i&&!t.equals(i))&&(0,o.aI)(this.points,e.points,f.v6)}addPoint(e){return(0,m.h)(this,e),Array.isArray(e)?this.points.push(e):this.points.push(e.toArray()),this.notifyChange("points"),this}getPoint(e){if(!this._validateInputs(e))return null;let t=this.points[e],i={x:t[0],y:t[1],spatialReference:this.spatialReference},n=2;return this.hasZ&&(i.z=t[2],n=3),this.hasM&&(i.m=t[n]),new h.A(i)}removePoint(e){if(!this._validateInputs(e))return null;let[t,i,n,r]=this.points.splice(e,1)[0],s=new h.A({x:t,y:i,z:n,m:r,spatialReference:this.spatialReference});return this.notifyChange("points"),s}setPoint(e,t){return this._validateInputs(e)&&((0,m.h)(this,t),Array.isArray(t)||(t=t.toArray()),this.points[e]=t,this.notifyChange("points")),this}toJSON(e){return this.write({},e)}_validateInputs(e){return null!=e&&e>=0&&e<this.points.length}};(0,r.Cg)([(0,s.MZ)({readOnly:!0})],y.prototype,"cache",null),(0,r.Cg)([(0,s.MZ)({readOnly:!0})],y.prototype,"extent",null),(0,r.Cg)([(0,s.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],y.prototype,"points",void 0),(0,r.Cg)([(0,p.K)("points")],y.prototype,"writePoints",null),y=n=(0,r.Cg)([(0,s.$K)("esri.geometry.Multipoint")],y);const g=y;y.prototype.toJSON.isDefaultToJSON=!0,i.d(t,["A",0,g])},82799(e,t,i){var n,r=i(32198),s=i(91429),o=i(4718),a=i(5443),l=i(91075),u=i(86738),h=i(16930),d=i(90634),c=i(56993),f=i(43937);let m=n=class extends l.A{constructor(e){super(function(e){if(!e)return;let{paths:t,hasM:i,hasZ:n,spatialReference:r}=e;switch(t??=[],function(e){return"number"==typeof e[0]?.[0]}(t)&&(t=[t]),t[0]?.[0]?.length){case 4:n??=!0,i??=!0;break;case 3:n??=!0!==i,i??=!n;break;default:n??=!1,i??=!1}return r??=h.A.WGS84,{...e,hasM:i,hasZ:n,paths:t,spatialReference:r}}(e)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(e,t){t.curvePaths=(0,o.o8)(e)}get extent(){let e=(0,d.Z3)(this),{spatialReference:t}=this;return e?new a.A({...e,spatialReference:t}):null}writePaths(e,t){t.paths=(0,o.o8)(this.paths)}addPath(e){if(!e)return;let t=this.paths,i=t.length;if(function(e){return!Array.isArray(e[0])}(e)){let n=[];for(let t=0,i=e.length;t<i;t++)n[t]=e[t].toArray();t[i]=n}else t[i]=e.slice();return this.notifyChange("paths"),this}clone(){let e=new n;return e.spatialReference=this.spatialReference,e.paths=(0,o.o8)(this.paths),e.curvePaths=(0,o.o8)(this.curvePaths),e.hasZ=this.hasZ,e.hasM=this.hasM,e}getPoint(e,t){if(!this._validateInputs(e,t))return null;let i=this.paths[e][t],n=this.hasZ,r=this.hasM;return n&&!r?new u.A({x:i[0],y:i[1],z:i[2],spatialReference:this.spatialReference}):r&&!n?new u.A({x:i[0],y:i[1],m:i[2],spatialReference:this.spatialReference}):n&&r?new u.A({x:i[0],y:i[1],z:i[2],m:i[3],spatialReference:this.spatialReference}):new u.A({x:i[0],y:i[1],spatialReference:this.spatialReference})}insertPoint(e,t,i){return this._validateInputs(e,t,!0)&&((0,c.h)(this,i),Array.isArray(i)||(i=i.toArray()),this.paths[e].splice(t,0,i),this.notifyChange("paths")),this}removePath(e){if(!this._validateInputs(e,null))return null;let t=this.paths.splice(e,1)[0],i=this.spatialReference,n=t.map(e=>new u.A({x:e[0],y:e[1],z:e[2],m:e[3],spatialReference:i}));return this.notifyChange("paths"),n}removePoint(e,t){if(!this._validateInputs(e,t))return null;let[i,n,r,s]=this.paths[e].splice(t,1)[0],o=new u.A({x:i,y:n,z:r,m:s,spatialReference:this.spatialReference});return this.notifyChange("paths"),o}setPoint(e,t,i){return this._validateInputs(e,t)&&((0,c.h)(this,i),Array.isArray(i)||(i=i.toArray()),this.paths[e][t]=i,this.notifyChange("paths")),this}_validateInputs(e,t,i=!1){if(null==e||e<0||e>=this.paths.length)return!1;if(null!=t){let n=this.paths[e];if(i&&(t<0||t>n.length)||!i&&(t<0||t>=n.length))return!1}return!0}toJSON(e){return this.write({},e)}};(0,r.Cg)([(0,s.MZ)({readOnly:!0})],m.prototype,"cache",null),(0,r.Cg)([(0,s.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],m.prototype,"curvePaths",void 0),(0,r.Cg)([(0,f.K)("curvePaths")],m.prototype,"writeCurvePaths",null),(0,r.Cg)([(0,s.MZ)({readOnly:!0})],m.prototype,"extent",null),(0,r.Cg)([(0,s.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],m.prototype,"paths",void 0),(0,r.Cg)([(0,f.K)("paths")],m.prototype,"writePaths",null),m=n=(0,r.Cg)([(0,s.$K)("esri.geometry.Polyline")],m);const p=m;m.prototype.toJSON.isDefaultToJSON=!0,i.d(t,["A",0,p])},4197(e,t,i){i.d(t,{Vj:()=>o,cj:()=>s,jh:()=>r});var n=i(9093);function r(e){return e<=1024?Array(e).fill(0):new Float64Array(e)}function s(e){return[...e]}function o(e){let t=(0,n.vt)();for(let i=0;i<16;++i)t[i]=e[i];return t}},70328(e,t,i){i.d(t,{BI:()=>A,C:()=>o,DC:()=>c,Dg:()=>m,Ej:()=>b,Ie:()=>F,Jt:()=>T,Lu:()=>x,Ne:()=>v,RF:()=>d,TF:()=>_,VL:()=>p,aI:()=>z,fA:()=>a,gE:()=>u,gX:()=>M,hZ:()=>I,iT:()=>f,is:()=>C,pg:()=>S,qv:()=>R,uJ:()=>g,vI:()=>w,vY:()=>l,v_:()=>B,vt:()=>s,w1:()=>h,yr:()=>y}),i(35522);var n=i(5443),r=(i(19419),i(4197));function s(e=B){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t){for(let i=0;i<6;i++)e[i]=t[i];return e}function a(e,t,i,n,r,o,a=s()){return a[0]=e,a[1]=t,a[2]=i,a[3]=n,a[4]=r,a[5]=o,a}function l(e,t=s()){return function(e,t,i,n=s()){return I(n,R),function(e,t,i=0,n=t.length/3){let r=e[0],s=e[1],o=e[2],a=e[3],l=e[4],u=e[5];for(let e=0;e<n;e++)r=Math.min(r,t[i+3*e]),s=Math.min(s,t[i+3*e+1]),o=Math.min(o,t[i+3*e+2]),a=Math.max(a,t[i+3*e]),l=Math.max(l,t[i+3*e+1]),u=Math.max(u,t[i+3*e+2]);e[0]=r,e[1]=s,e[2]=o,e[3]=a,e[4]=l,e[5]=u}(n,e,t,i),n}(e,0,e.length/3,t)}function u(e,t=(0,r.jh)(24)){let[i,n,s,o,a,l]=e;return t[0]=i,t[1]=n,t[2]=s,t[3]=i,t[4]=n,t[5]=l,t[6]=i,t[7]=a,t[8]=s,t[9]=i,t[10]=a,t[11]=l,t[12]=o,t[13]=n,t[14]=s,t[15]=o,t[16]=n,t[17]=l,t[18]=o,t[19]=a,t[20]=s,t[21]=o,t[22]=a,t[23]=l,t}function h(e,t){return isFinite(e[2])||isFinite(e[5])?new n.A({xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}):new n.A({xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function d(e,t,i=e){i[0]=Math.min(e[0],t[0]),i[1]=Math.min(e[1],t[1]),i[2]=Math.min(e[2],t[2]),i[3]=Math.max(e[3],t[3]),i[4]=Math.max(e[4],t[4]),i[5]=Math.max(e[5],t[5])}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function f(e,[t,i,n]){m(e,t,i,n)}function m(e,t,i,n){e[0]=Math.min(e[0],t),e[1]=Math.min(e[1],i),e[2]=Math.min(e[2],n),e[3]=Math.max(e[3],t),e[4]=Math.max(e[4],i),e[5]=Math.max(e[5],n)}function p(e){return e[0]>=e[3]?0:e[3]-e[0]}function y(e){return e[1]>=e[4]?0:e[4]-e[1]}function g(e){return e[2]>=e[5]?0:e[5]-e[2]}function _(e){let t=p(e),i=g(e),n=y(e);return t*t+i*i+n*n}function M(e,t=[0,0,0]){return t[0]=e[0]+p(e)/2,t[1]=e[1]+y(e)/2,t[2]=e[2]+g(e)/2,t}function b(e,t=[0,0,0]){return t[0]=p(e),t[1]=y(e),t[2]=g(e),t}function S(e,t){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function x(e,t){return t[0]=e[3],t[1]=e[4],t[2]=e[5],t}function v(e,t,i=e){return i[0]=t[0],i[1]=t[1],i[2]=t[2],i!==e&&(i[3]=e[3],i[4]=e[4],i[5]=e[5]),i}function w(e,t,i=e){return i[3]=t[0],i[4]=t[1],i[5]=t[2],i!==e&&(i[0]=e[0],i[1]=e[1],i[2]=e[2]),e}function I(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function F(e){return e?I(e,R):s(R)}function T(e,t){return e[0]=t[0],e[1]=t[1],e[2]=-1/0,e[3]=t[2],e[4]=t[3],e[5]=1/0,e}function A(e,t,i,n,r){return e[0]=t,e[1]=i,e[2]=-1/0,e[3]=n,e[4]=r,e[5]=1/0,e}function C(e){return 6===e.length}function z(e,t,i){if(null==e||null==t)return e===t;if(!C(e)||!C(t))return!1;if(i){for(let n=0;n<e.length;n++)if(!i(e[n],t[n]))return!1}else for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}const R=[1/0,1/0,1/0,-1/0,-1/0,-1/0],B=[0,0,0,0,0,0];s()},46329(e,t,i){i.d(t,{y:()=>d});var n=i(49186),r=i(4305),s=i(513),o=i(50954),a=i(52006),l=i(49663),u=i(46068),h=i(59803);function d(e,t,i){if((0,a.Xq)(t))return(0,h.T)(e,t,i);if((0,a.n1)(t)){let s=(0,r.m_)(e,t,i)[0];if(null==s)throw new n.A("closestPointOnCurve:unexpected-error","Failed to find close point on bezier curve");return s}if((0,a.aO)(t)){let n=(0,o.pM)(e,t);return(0,s.fM)(n,i)}if((0,a.DA)(t)){let n=(0,l.io)(e,t);return(0,s.fM)(n,i)}let d=(0,u.SW)(e,t);return(0,u.pb)(d,i)}},60408(e,t,i){function n(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function r(e){return void 0!==e.points}function s(e){return void 0!==e.x&&void 0!==e.y}function o(e){return void 0!==e.paths||void 0!==e.curvePaths}function a(e){return void 0!==e.rings||void 0!==e.curveRings}function l(e){return"object"==typeof e&&"vertexAttributes"in e}function u(e){return e?s(e)?"esriGeometryPoint":o(e)?"esriGeometryPolyline":a(e)?"esriGeometryPolygon":n(e)?"esriGeometryEnvelope":r(e)?"esriGeometryMultipoint":null:null}function h(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function d(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}i.d(t,{$B:()=>u,Bi:()=>a,Pv:()=>h,Rg:()=>o,U9:()=>r,W0:()=>d,ZC:()=>n,fT:()=>s,uW:()=>l})},65864(e,t,i){i.d(t,{rS:()=>h,xD:()=>c});var n=i(5443),r=i(91075),s=i(48526),o=i(86738),a=i(39829),l=i(82799),u=i(60408);function h(e){return null==e?null:e instanceof r.A?e:(0,u.fT)(e)?o.A.fromJSON(e):(0,u.Rg)(e)?l.A.fromJSON(e):(0,u.Bi)(e)?a.A.fromJSON(e):(0,u.U9)(e)?s.A.fromJSON(e):(0,u.ZC)(e)?n.A.fromJSON(e):null}const d={esriGeometryPoint:o.A,esriGeometryPolyline:l.A,esriGeometryPolygon:a.A,esriGeometryEnvelope:n.A,esriGeometryMultipoint:s.A,esriGeometryMultiPatch:a.A};function c(e){return e&&d[e]||null}},97770(e,t,i){i.d(t,{Ey:()=>z,F8:()=>C,J2:()=>I,Yq:()=>T,_m:()=>F,_v:()=>b,iS:()=>A,wj:()=>R});var n=i(34747),r=i(66552),s=i(98623),o=i(73444);const a={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},l={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},u={timeZone:"UTC"},h={year:"numeric",month:"numeric",day:"numeric"},d={year:"numeric",month:"long",day:"numeric"},c={year:"numeric",month:"short",day:"numeric"},f={year:"numeric",month:"long",weekday:"long",day:"numeric"},m={hour:"numeric",minute:"numeric"},p={...m,second:"numeric"},y={hourCycle:"h23"},g={...m,...y},_={...p,...y},M={"short-date":h,"short-date-short-time":{...h,...m},"short-date-short-time-24":{...h,...g},"short-date-long-time":{...h,...p},"short-date-long-time-24":{...h,..._},"short-date-le":h,"short-date-le-short-time":{...h,...m},"short-date-le-short-time-24":{...h,...g},"short-date-le-long-time":{...h,...p},"short-date-le-long-time-24":{...h,..._},"long-month-day-year":d,"long-month-day-year-short-time":{...d,...m},"long-month-day-year-short-time-24":{...d,...g},"long-month-day-year-long-time":{...d,...p},"long-month-day-year-long-time-24":{...d,..._},"day-short-month-year":c,"day-short-month-year-short-time":{...c,...m},"day-short-month-year-short-time-24":{...c,...g},"day-short-month-year-long-time":{...c,...p},"day-short-month-year-long-time-24":{...c,..._},"long-date":f,"long-date-short-time":{...f,...m},"long-date-short-time-24":{...f,...g},"long-date-long-time":{...f,...p},"long-date-long-time-24":{...f,..._},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":m,"long-time":p},b=(0,r.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),S={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"};function x(){let e=(0,o.lR)();return(e&&S[e])??(0,o.QC)()}"mart"!==new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)).find(({type:e})=>"month"===e)?.value.toLowerCase()&&(S.bs="sr-Latn-CS");let v=new WeakMap;const w=M["short-date-short-time"];function I(e){return M[e]}function F(e){let{dateStyle:t,timeStyle:i,hour12:n,year:r,month:s}=e,o={};return t?o.dateStyle=t:r&&(o.year=r,o.month=s||void 0),i&&!o.year&&(o.timeStyle=i,o.hour12="auto"===n?void 0:"always"===n),o}function T(e,t=w){return function(e){let t=v.get(e);if(!t){let i=x(),n=R(e.timeZone??"system"),r={...e,timeZone:n};t=new Intl.DateTimeFormat(i,r),v.set(e,t)}return t}(t).format(e)}function A(e,t=w){return T(new Date(e),{...t,...u,...l})}function C(e,t=w){return T(new Date(`1970-01-01T${e}Z`),{...t,...u,...a})}function z(e,t=w){let i=n.c9.fromISO(e,{setZone:!0});if(!i.isValid)return e;if(t.timeZone)return T(i.toJSDate(),t);let r=0===i.offset?"UTC":t.timeZone,s={...t,timeZone:r};return i.toLocaleString(s,{locale:x()})}function R(e){switch(e){case"system":return s.N;case s.L:return"UTC";default:return e}}(0,o.Ml)(()=>{v=new WeakMap})},73444(e,t,i){i.d(t,{JK:()=>l,Ml:()=>y,QC:()=>d,lR:()=>h,oQ:()=>m});var n=i(36563);let r;i(44208);const s=globalThis.esriConfig?.locale,o=globalThis.document?.documentElement;function a(){let e=o?.getAttribute("lang"),t=globalThis.navigator?.language;return s??e??t??"en"}function l(){return void 0===r&&(r=a()),r}const u=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function h(e=l()){return c(e)?.language}function d(e=l()){let t=c(e);return t?.language&&t?.extlang?e.replace(`${t.language}-`,""):e}function c(e=l()){return u.exec(e)?.groups}const f=[];function m(e){return f.push(e),(0,n.hA)(()=>{f.splice(f.indexOf(e),1)})}new Map;const p=[];function y(e){return p.push(e),(0,n.hA)(()=>p.splice(p.indexOf(e),1))}function g(){let e=a();r!==e&&([...p].forEach(t=>t(e)),r=e,[...f].forEach(t=>t(e)))}globalThis.addEventListener?.("languagechange",g),o&&new MutationObserver(()=>{g()}).observe(o,{attributeFilter:["lang"]})},6518(e,t,i){i.d(t,{F:()=>a});var n=i(44208),r=i(75503),s=i(19419);const o={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new r.wq(9,(0,n.A)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){let e=Array(this._idByBounds.size),t=0;this._idByBounds.forEach((i,n)=>{e[t++]=n}),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter(e=>this._idByBounds.has(e))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;let e=(0,s.Ie)();for(let t of this._boundsById.values())t&&(e[0]=Math.min(t[0],e[0]),e[1]=Math.min(t[1],e[1]),e[2]=Math.max(t[2],e[2]),e[3]=Math.max(t[3],e[3]));return e}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){let t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,i){(function(e){o.minX=e[0],o.minY=e[1],o.maxX=e[2],o.maxY=e[3]})(t),e.search(o,i)}(this._index,e,e=>t(this._idByBounds.get(e)))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){let t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},83221(e,t,i){i.d(t,{A:()=>f});var n=i(4576),r=i(49186),s=i(65529),o=i(53966),a=i(70328),l=i(19419),u=i(90708),h=i(6518),d=i(37730);const c=(0,a.vt)();class f{constructor(e){this.geometryInfo=e,this._boundsStore=new h.F,this._featuresById=new Map,this._usedMemory=0,this.events=new s.bk,this.featureAdapter=d.T}get usedMemory(){return this._usedMemory}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let e=0;return this._featuresById.forEach(t=>{null!=t.geometry&&t.geometry.coords&&(e+=t.geometry.coords.length)}),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(e){if(null==this.fullBounds)return null;let[t,i,n,r]=this.fullBounds;return{xmin:t,ymin:i,xmax:n,ymax:r,spatialReference:e}}add(e){this._add(e),this._emitChanged()}addMany(e){for(let t of e)this._add(t);this._emitChanged()}upsertMany(e){let t=e.map(e=>this._upsert(e));return this._emitChanged(),t.filter(n.Ru)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged(),this._usedMemory=0}removeById(e){let t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(let t of e){let e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t){for(let i of e){let e=this._boundsStore.get(i.objectId);e&&t((0,a.Jt)(c,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach(t=>e(t))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,e=>{t(this._featuresById.get(e))})}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;let t=e.objectId;if(null==t)return void o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new r.A("featurestore:invalid-feature","feature id is missing",{feature:e}));let i,n=this._featuresById.get(t);n?(e.displayId=n.displayId,i=this._boundsStore.get(t),this._boundsStore.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(n)??0):null!=this.onFeatureAdd&&this.onFeatureAdd(e),e.geometry?.coords?.length?(i=(0,u.jQ)(i??(0,l.vt)(),e.geometry),null!=i&&this._boundsStore.set(t,i),this._featuresById.set(t,e),this._usedMemory+=this.estimateFeatureUsedMemory?.(e)??0):(this._boundsStore.set(t,null),this._featuresById.set(t,e))}_upsert(e){let t=e?.objectId;if(null==t)return o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new r.A("featurestore:invalid-feature","feature id is missing",{feature:e})),null;let i=this._featuresById.get(t);if(!i)return this._add(e),e;this._usedMemory-=this.estimateFeatureUsedMemory?.(i)??0;let{geometry:n,attributes:s}=e;for(let e in s)i.attributes[e]=s[e];return n&&(i.geometry=n,this._boundsStore.set(t,(0,u.jQ)((0,l.vt)(),n)??null)),this._usedMemory+=this.estimateFeatureUsedMemory?.(i)??0,i}_remove(e){null!=this.onFeatureRemove&&this.onFeatureRemove(e);let t=e.objectId;return this._boundsStore.delete(t),this._featuresById.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(e)??0,e}}},37730(e,t,i){var n=i(43334);const r={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t,i)=>new n.Om(t,e.attributes,null,e.objectId,e.displayId,e.distance,e.vertexCount),getGeometry:e=>e.geometry,getCentroid:(e,t)=>e.ensureCentroid(t)};i.d(t,["T",0,r])},71202(e,t,i){i.r(t),i.d(t,{default:()=>b});var n=i(60999),r=i(49186),s=i(53966),o=i(17676),a=i(60408),l=i(21325),u=i(78888),h=(i(98623),i(95466)),d=i(98453),c=i(30524),f=i(83221),m=i(31464),p=i(75752),y=i(90708),g=i(64714),_=i(82832),M=i(85113);class b{constructor(){this._featureIdInfo=null,this._queryEngine=null,this._snapshotFeatures=async e=>{let t=await this._fetch(e);return this._createFeatures(t)}}destroy(){this._queryEngine?.destroy(),this._queryEngine=this._createDefaultAttributes=null}async load(e,t={}){this._loadOptions={url:e.url,customParameters:e.customParameters};let i=[],[n]=await Promise.all([e.url?this._fetch(t?.signal):null,this._checkProjection(e.spatialReference)]),s=(0,M.BM)(n,{geometryType:e.geometryType}),o=e.fields||s.fields||[],a=null==e.hasZ?s.hasZ:e.hasZ,u=s.geometryType,m=!u,y=e.objectIdField||s.objectIdFieldName||"__OBJECTID",b=e.spatialReference||l.KK,S=e.timeInfo;this._addParentIdField(n,o,s,y),o===s.fields&&s.unknownFields.length>0&&i.push({name:"geojson-layer:unknown-field-types",message:"Some fields types couldn't be inferred from the features and were dropped",details:{unknownFields:s.unknownFields}});let x=new h.A(o),v=x.dateFields.length>0,w=x.get(y);w?("esriFieldTypeString"!==w.type&&(w.type="esriFieldTypeOID"),w.editable=!1,w.nullable=!1,y=w.name):(w={alias:y,name:y,type:"string"===s.objectIdFieldType?"esriFieldTypeString":"esriFieldTypeOID",editable:!1,nullable:!1},o.unshift(w));let I={};for(let e of o){if(e.name??=e.alias,e.alias??=e.name,!e.name)throw new r.A("geojson-layer:invalid-field-name","field name is missing",{field:e});if(!d.m.jsonValues.includes(e.type))throw new r.A("geojson-layer:invalid-field-type",`invalid type for field "${e.name}"`,{field:e});if(e.name!==w.name){let t=(0,c.lD)(e);void 0!==t&&(I[e.name]=t)}e.length??=(0,c._b)(e)}if(S){if(S.startTimeField){let e=x.get(S.startTimeField);e?(S.startTimeField=e.name,e.type="esriFieldTypeDate",v=!0):S.startTimeField=null}if(S.endTimeField){let e=x.get(S.endTimeField);e?(S.endTimeField=e.name,e.type="esriFieldTypeDate",v=!0):S.endTimeField=null}if(S.trackIdField){let e=x.get(S.trackIdField);e?S.trackIdField=e.name:(S.trackIdField=null,i.push({name:"geojson-layer:invalid-timeInfo-trackIdField",message:"trackIdField is missing",details:{timeInfo:S}}))}!S.startTimeField&&!S.endTimeField&&(i.push({name:"geojson-layer:invalid-timeInfo",message:"startTimeField and endTimeField are missing",details:{timeInfo:S}}),S=null)}let F=u?(0,g.F0)(u):void 0,T=v?{timeZoneIANA:"UTC"}:null,A={warnings:i,featureErrors:[],layerDefinition:{...m?_.Xn:_.CI,drawingInfo:F??void 0,templates:(0,g.e2)(I),extent:void 0,geometryType:u,objectIdField:y,fields:o,hasZ:!!a,timeInfo:S,dateFieldsTimeReference:T}};this._featureIdInfo={type:"object-id",fieldName:y},this._queryEngine=new p.do({fieldsIndex:h.A.fromLayerJSON({fields:o,timeInfo:S,dateFieldsTimeReference:T}),geometryType:u,hasM:!1,hasZ:a,featureIdInfo:this._featureIdInfo,spatialReference:b,timeInfo:S,featureStore:new f.A({geometryType:u,hasM:!1,hasZ:a})});let C=this._queryEngine.fieldsIndex.requiredFields.indexOf(w);C>-1&&this._queryEngine.fieldsIndex.requiredFields.splice(C,1),this._createDefaultAttributes=(0,g.Vx)(I,y);let z=this._createFeatures(n);this._objectIdGenerator=this._createObjectIdGenerator(this._queryEngine,z);let R=this._normalizeFeatures(z,A.featureErrors);this._queryEngine.featureStore.addMany(R);let{fullExtent:B,timeExtent:E}=await this._queryEngine.fetchRecomputedExtents();if(A.layerDefinition.extent=B,E){let{start:e,end:t}=E;A.layerDefinition.timeInfo.timeExtent=[e,t]}return A}async applyEdits(e){let{spatialReference:t,geometryType:i}=this._queryEngine;return await Promise.all([(0,_.$1)(t,i),(0,m.Nk)(e.adds,t),(0,m.Nk)(e.updates,t)]),await this._waitSnapshotComplete(),this._applyEdits(e)}async queryFeatures(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQuery(e,t.signal)}async queryFeatureCount(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForCount(e,t.signal)}async queryObjectIds(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForIds(e,t.signal)}async queryExtent(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForExtent(e,t.signal)}async querySnapping(e,t={}){return await this._waitSnapshotComplete(),await this._queryEngine.executeQueryForSnapping(e,t.signal)}async queryAttributeBins(e,t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeAttributeBinsQuery(e,t.signal)}async refresh(e){this._loadOptions.customParameters=e,this._snapshotTask?.abort(),this._snapshotTask=(0,n.UT)(this._snapshotFeatures),this._snapshotTask.promise.then(e=>{this._queryEngine.featureStore.clear(),this._objectIdGenerator=this._createObjectIdGenerator(this._queryEngine,e);let t=this._normalizeFeatures(e);t&&this._queryEngine.featureStore.addMany(t)},e=>{this._queryEngine.featureStore.clear(),(0,o.zf)(e)||s.A.getLogger("esri.layers.GeoJSONLayer").error(new r.A("geojson-layer:refresh","An error occurred during refresh",{error:e}))}),await this._waitSnapshotComplete();let{fullExtent:t,timeExtent:i}=await this._queryEngine.fetchRecomputedExtents();return{extent:t,timeExtent:i}}_addParentIdField(e,t,i,n){if(!e||!(0,M.S_)(e))return;let r=new h.A([...t,...i.fields,...[...i.unknownFields,n].map(e=>({name:e,alias:e,type:"esriFieldTypeString"}))]),s="__PARENTID";for(let e=1;r.has(s);e++)s=`__PARENTID_${e}`;this._parentIdField=s,t.push({name:s,alias:s,type:"esriFieldTypeString",editable:!1,nullable:!0})}_createFeatures(e){if(null==e)return[];let{geometryType:t,hasZ:i}=this._queryEngine,n=this._featureIdInfo.fieldName,r=(0,M.bd)(e,{geometryType:t,hasZ:i,objectIdField:n,parentIdField:this._parentIdField});if(!(0,l.aI)(this._queryEngine.spatialReference,l.KK))for(let e of r)null!=e.geometry&&(e.geometry=(0,y.Ux)((0,m.Cv)((0,y.zv)(e.geometry,this._queryEngine.geometryType,this._queryEngine.hasZ,!1),l.KK,this._queryEngine.spatialReference)));return r}async _waitSnapshotComplete(){if(this._snapshotTask&&!this._snapshotTask.finished){try{await this._snapshotTask.promise}catch{}return this._waitSnapshotComplete()}}async _fetch(e){let{url:t,customParameters:i}=this._loadOptions,n=(await(0,u.A)(t??"",{responseType:"json",query:{...i},signal:e})).data;return(0,M.sO)(n),n}_normalizeFeatures(e,t){let{fieldsIndex:i}=this._queryEngine,n=[],r=this._featureIdInfo.fieldName;for(let s of e){let e=this._createDefaultAttributes(),o=(0,_.MB)(i,e,s.attributes,!0);o?t?.push(o):(this._assignObjectId(e,s.attributes,!0),s.attributes=e,s.objectId=e[r],n.push(s))}return n}async _applyEdits(e){let{adds:t,updates:i,deletes:n}=e,r={addResults:[],deleteResults:[],updateResults:[],uidToObjectId:{}};if(t?.length&&this._applyAddEdits(r,t),i?.length&&this._applyUpdateEdits(r,i),n?.length){for(let e of n)r.deleteResults.push((0,_.bP)(e));this._queryEngine.featureStore.removeManyById(n)}let{fullExtent:s,timeExtent:o}=await this._queryEngine.fetchRecomputedExtents();return{extent:s,timeExtent:o,featureEditResults:r}}_applyAddEdits(e,t){let{addResults:i}=e,{geometryType:n,hasM:r,hasZ:s,spatialReference:o,featureStore:l,fieldsIndex:u}=this._queryEngine,h=this._featureIdInfo.fieldName,d=[];for(let r of t){if(r.geometry&&n!==(0,a.$B)(r.geometry)){i.push((0,_.Yx)("Incorrect geometry type."));continue}let t=this._createDefaultAttributes(),s=(0,_.MB)(u,t,r.attributes);if(s)i.push(s);else{if(this._assignObjectId(t,r.attributes),r.attributes=t,null!=r.uid){let t=r.attributes[h];e.uidToObjectId[r.uid]=t}if(null!=r.geometry){let e=r.geometry.spatialReference??o;r.geometry=(0,m.Cv)((0,_.CR)(r.geometry,e),e,o)}d.push(r),i.push((0,_.bP)(r.attributes[h]))}}l.addMany((0,y.Di)([],d,n,s,r,this._featureIdInfo))}_applyUpdateEdits({updateResults:e},t){let{geometryType:i,hasM:n,hasZ:r,spatialReference:s,featureStore:o,fieldsIndex:l}=this._queryEngine,u=this._featureIdInfo.fieldName;for(let h of t){let{attributes:t,geometry:d}=h,c=t?.[u];if(null==c){e.push((0,_.Yx)(`Identifier field ${u} missing`));continue}if(!o.has(c)){e.push((0,_.Yx)(`Feature with object id ${c} missing`));continue}let f=(0,y.oN)(o.getFeature(c),i,r,n);if(null!=d){if(i!==(0,a.$B)(d)){e.push((0,_.Yx)("Incorrect geometry type."));continue}let t=d.spatialReference??s;f.geometry=(0,m.Cv)((0,_.CR)(d,t),t,s)}if(t){let i=(0,_.MB)(l,f.attributes,t);if(i){e.push(i);continue}}o.add((0,y.E2)(f,i,r,n,this._featureIdInfo)),e.push((0,_.bP)(c))}}_createObjectIdGenerator(e,t){let i=this._featureIdInfo.fieldName,n=e.fieldsIndex.get(i);if("esriFieldTypeString"===n.type){let e=new Set(t.map(({objectId:e})=>e)),i=1;return()=>{for(;e.has(`${n.name}-${i}`);)i++;return`${n.name}-${i++}`}}let r=-1/0;for(let e of t)e.objectId&&(r=Math.max(r,e.objectId));return r=Math.max(0,r)+1,()=>r++}_assignObjectId(e,t,i=!1){let n=this._featureIdInfo.fieldName;e[n]=i&&n in t?t[n]:this._objectIdGenerator()}async _checkProjection(e){try{await(0,m.Nk)(l.KK,e)}catch{throw new r.A("geojson-layer","Projection not supported")}}}},85113(e,t,i){i.d(t,{BM:()=>A,S_:()=>f,bd:()=>C,sO:()=>T,xD:()=>d});var n=i(67482),r=i(49186),s=i(21325),o=i(30524),a=i(90708),l=i(43334),u=i(92722);const h={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function d(e){return h[e]}function*c(e){switch(e.type){case"Feature":yield e;break;case"FeatureCollection":for(let t of e.features)t&&(yield t);break;default:yield{type:"Feature",geometry:e,properties:null}}}function f(e){for(let t of c(e))if("GeometryCollection"===t.geometry?.type)return!0;return!1}function*m(e){let t=0;for(let i of c(e)){let e="GeometryCollection"===i.geometry?.type,n=[{geometry:i.geometry,depth:0}];for(;n.length>0;){let{geometry:s,depth:o}=n.pop();if("GeometryCollection"===s?.type){if(o>=1024)throw new r.A("geojson-layer:invalid-geometry","GeometryCollection nesting exceeds 1024 levels.");for(let e=s.geometries.length-1;e>=0;e--)n.push({geometry:s.geometries[e],depth:o+1})}else yield{feature:i,geometry:s,index:t,isCollection:e}}t++}}function*p(e){if(e)switch(e.type){case"Point":yield e.coordinates;break;case"LineString":case"MultiPoint":yield*e.coordinates;break;case"MultiLineString":case"Polygon":for(let t of e.coordinates)yield*t;break;case"MultiPolygon":for(let t of e.coordinates)for(let e of t)yield*e}}function y(e,t,i,n,s){if(!n)throw new r.A("geojson-layer:geometry-collection-schema","Recreate the layer to add the parent ID field required by GeometryCollections.");let a=t;for(let t in e){let n=s.get(t);void 0===n&&(n=(0,o.rS)(t)?.toLowerCase()===i,s.set(t,n)),n&&(a??=e[t]??void 0,delete e[t])}e[n]=null==a?null:String(a)}function g(e){for(let t of e)if(t.length>2)return!0;return!1}function _(e){let t=0;for(let i=0;i<e.length;i++){let n=e[i],r=e[(i+1)%e.length];t+=n[0]*r[1]-r[0]*n[1]}return t<=0}function M(e){let t=e[0],i=e[e.length-1];(t[0]!==i[0]||t[1]!==i[1]||t[2]!==i[2])&&e.push(t)}function b(e,t){let{coordinates:i,type:n}=e,r=t.hasZ??!1;switch(n){case"Point":{let e=r||3!==i.length?r&&2===i.length?[...i,0]:[...i]:i.slice(0,2);return new u.A([],e,r,!1)}case"LineString":return(0,a.Ap)({paths:[i],hasZ:!0},r,!1);case"MultiLineString":return(0,a.Ap)({paths:i,hasZ:!0},r,!1);case"MultiPoint":return(0,a.PR)({points:i,hasZ:!0},r,!1);case"Polygon":case"MultiPolygon":{let e=new u.A([],[],r,!1);for(let t of"Polygon"===n?[i]:i){S(e,t[0],r);for(let i=1;i<t.length;i++)x(e,t[i],r)}return e}}}function S(e,t,i){M(t),function(e){return!_(e)}(t)?w(e,t,i):v(e,t,i)}function x(e,t,i){M(t),function(e){return _(e)}(t)?w(e,t,i):v(e,t,i)}function v(e,t,i){for(let n of t)I(e,n,i);e.lengths.push(t.length)}function w(e,t,i){for(let n=t.length-1;n>=0;n--)I(e,t[n],i);e.lengths.push(t.length)}function I(e,[t,i,n],r){e.coords.push(t,i),r&&e.coords.push(n||0)}function F(e){switch(typeof e){case"string":return(0,n.C)(e)?"esriFieldTypeDate":"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function T(e,t=4326){if(!e)throw new r.A("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==e.type&&"FeatureCollection"!==e.type&&"GeometryCollection"!==e.type)throw new r.A("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:e});let{crs:i}=e;if(!i)return;let n="string"==typeof i?i:"name"===i.type?i.properties.name:"EPSG"===i.type?i.properties.code:null,o=(0,s.oT)({wkid:t})?RegExp(".*(CRS84H?|4326)$","i"):RegExp(`.*(${t})$`,"i");if(!n||!o.test(n))throw new r.A("geojson:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:i})}function A(e,t={}){let i,n=[],r=new Set,s=new Set,a=!1,l=null,u=!1,{geometryType:h=null}=t;for(let{feature:t,geometry:c}of m(e)){let{properties:e,id:f}=t;if((!c||(h||=d(c.type),d(c.type)===h))&&(a||=g(p(c)),u||(u=null!=f,u&&(i=typeof f,e&&(l=Object.keys(e).filter(t=>e[t]===f)))),e&&l&&u&&null!=f&&(l.length>1?l=l.filter(t=>e[t]===f):1===l.length&&(l=e[l[0]]===f?l:[])),e))for(let t in e){if(r.has(t))continue;let i=F(e[t]);if("unknown"===i){s.add(t);continue}s.delete(t),r.add(t);let a=(0,o.rS)(t);a&&n.push({name:a,alias:t,type:i})}}let c=(0,o.rS)(1===l?.length&&l[0]||null)??void 0;if(c)for(let e of n)if(e.name===c&&(0,o.WA)(e)){e.type="esriFieldTypeOID";break}return{fields:n,geometryType:h,hasZ:a,objectIdFieldName:c,objectIdFieldType:i,unknownFields:Array.from(s)}}function C(e,t){return Array.from(function*(e,t={}){let{geometryType:i,objectIdField:n,parentIdField:r,getObjectId:s}=t,a=(0,o.rS)(n)?.toLowerCase(),u=new Map;for(let{feature:o,geometry:h,index:c,isCollection:f}of e){let{properties:e,id:m}=o;if(h&&d(h.type)!==i)continue;let p=f?{...e}:e??{},g=s?.(o,c);n&&(f?(y(p,m,a,r,u),g=void 0):(g=p[n],null!=m&&null==g&&(p[n]=g=m))),yield new l.Om(h&&b(h,t),p,null,g)}}(m(e),t))}},64714(e,t,i){i.d(t,{F0:()=>a,Vx:()=>h,e2:()=>c,f:()=>p});var n=i(44208),r=i(4718),s=i(93470),o=i(99352);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?s.Cb:"esriGeometryPolyline"===e?s.yM:s.WR}}}const l=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let u=1;function h(e,t){if((0,n.A)("esri-csp-restrictions"))return()=>t?{[t]:null,...e}:{...e};try{let i="";t&&(i+=`this${d(t)} = null;`);for(let t in e)i+=`this${d(t)} = ${JSON.stringify(e[t])};`;let n=Function(`\n return class AttributesClass$${u++} {\n constructor() {\n ${i};\n }\n }\n `)();return()=>new n}catch{return()=>t?{[t]:null,...e}:{...e}}}function d(e){return l.test(e)?`.${e}`:`[${JSON.stringify(e)}]`}function c(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,r.o8)(e)}}]}const f={...o.F,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!1,supportsDistance:!1,supportsExtent:!1,supportsQuantization:!1,supportsQueryGeometry:!1,supportsDisjointSpatialRelationship:!1},m={...o.P,supportedStatistics:{...o.P.supportedStatistics,envelope:!1,centroid:!1,convexHull:!1}};function p(e,t,i=!1){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:i?f:o.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:i?m:o.P,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:t,supportsTrueCurveUpdateByTrueCurveClientsOnly:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},82832(e,t,i){i.d(t,{$1:()=>_,CI:()=>b,CR:()=>g,MB:()=>m,Xn:()=>S,Yx:()=>h,bP:()=>c});var n=i(67482),r=i(18370),s=i(60408),o=i(21325),a=i(30524);class l{constructor(e){this.description=e,this.code=null}}class u{constructor(e){this.globalId=null,this.objectId=null,this.success=!1,this.uniqueId=null,this.error=new l(e)}}function h(e){return new u(e)}class d{constructor(e){this.globalId=null,this.success=!0,this.objectId=this.uniqueId=e}}function c(e){return new d(e)}const f=new Set;function m(e,t,i,n=!1){f.clear();for(let r in i){let s=e.get(r);if(!s)continue;let o=p(s,i[r]);if(f.add(s.name),s&&(n||s.editable)){let e=(0,a.CJ)(s,o);if(e)return h((0,a.uo)(e,s,o));t[s.name]=o}}for(let t of e.requiredFields??[])if(!f.has(t.name))return h(`missing required field "${t.name}"`);return null}function p(e,t){let i=t;return(0,a.WA)(e)&&"string"==typeof t?i=(0,a.XT)(t):(0,a.yM)(e)&&null!=t&&"string"!=typeof t?i=String(t):(0,a.vE)(e)&&"string"==typeof t&&(i=(0,n._)(t)),(0,a.WX)(i)}const y=(0,r.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(3456)]).then(()=>i(3637)));function g(e,t){if(!(0,s.Bi)(e)&&!(0,s.Rg)(e)||!(0,o.fn)(t))return e;let i=y.module;if(null==i)throw TypeError("simplify operator not loaded");return i.simplifyExecute({...e,spatialReference:t})??e}async function _(e,t){(0,o.fn)(e)&&("esriGeometryPolygon"===t||"esriGeometryPolyline"===t)&&await y.getImportPromise()}const M={supportsAutoIntervalBin:!0,supportsFixedIntervalBin:!0,supportsFixedBoundariesBin:!0,supportsDateBin:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsNormalization:!0,supportedStatisticTypes:["COUNT","SUM","AVG","VAR","STDDEV","MIN","MAX","PERCENTILE_CONT","PERCENTILE_DISC","CentroidAggregate","EnvelopeAggregate","ConvexHullAggregate"],supportedNormalizationTypes:["field","log","naturalLog","percentOfTotal","squareRoot"]},b={hasAttachments:!1,capabilities:"query, editing, create, delete, update",useStandardizedQueries:!0,supportsCoordinatesQuantization:!0,supportsReturningQueryGeometry:!0,advancedQueryCapabilities:{supportsQueryAttachments:!1,supportsQueryAttachmentsCountOnly:!1,supportsQueryAttachmentOrderByFields:!1,supportsQueryAttachmentWithTypeWildcard:!1,supportsQueryBins:!0,supportsQueryPivot:!1,supportsSpatialAggregationStatistics:!0,supportedSpatialAggregationStatistics:["EnvelopeAggregate","CentroidAggregate","ConvexHullAggregate"],supportsStatistics:!0,supportsPercentileStatistics:!0,supportsReturningGeometryCentroid:!0,supportsQueryWithDistance:!0,supportsOutDistance:!1,supportsDistinct:!0,supportsReturningQueryExtent:!0,supportsReturningGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQueryWithResultType:!0,supportsSqlExpression:!0,supportsDisjointSpatialRel:!0,supportsQueryWithCacheHint:!0},queryBinsCapabilities:M},S={...b,supportsCoordinatesQuantization:!1,supportsReturningQueryGeometry:!1,advancedQueryCapabilities:{...b.advancedQueryCapabilities,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:[],supportsReturningGeometryCentroid:!1,supportsQueryWithDistance:!1,supportsReturningQueryExtent:!1,supportsDisjointSpatialRel:!1},queryBinsCapabilities:{...M,supportedStatisticTypes:M.supportedStatisticTypes.filter(e=>"EnvelopeAggregate"!==e&&"CentroidAggregate"!==e&&"ConvexHullAggregate"!==e)}}},95466(e,t,i){i.d(t,{A:()=>u});var n=i(49186),r=i(53966),s=i(12195),o=i(98623),a=i(56400),l=i(30524);class u{static fromJSON(e){return new u(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new u(e.fields??[],d(e))}static fromLayerJSON(e){return new u(e.fields??[],d(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;let i=[];for(let e of this.fields){let t=e?.name,n=(0,l.GZ)(t);if(t&&n){let r=(0,l.NF)(t);this._fieldsMap.set(t,e),this._fieldsMap.set(r,e),this._normalizedFieldsMap.set(n,e),i.push(`${r}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,l.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,l.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),!(0,l.te)(e)&&!(0,l.Xz)(e)&&(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}i.sort(),this.uid=i.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(let e of this.fields)(0,l.te)(e)||(0,l.Xz)(e)||e.nullable||void 0!==(0,l.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){return(0,l.Vb)({fieldName:e,fieldsMap:this._fieldsMap,normalizedFieldsMap:this._normalizedFieldsMap})}getTimeZone(e){let t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(r.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new n.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),"UTC"):h.has(t.type)?o.L:null:null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,l.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,s.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}const h=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function d(e){let t=new Map;if(!e.fields)return t;let i=!0===e.datesInUnknownTimezone,{timeInfo:n,editFieldsInfo:r}=e,s=(n?"startField"in n?n.startField:n.startTimeField:"")??"",u=(n?"endField"in n?n.endField:n.endTimeField:"")??"",d=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,a.ZS)(e.dateFieldsTimeReference):null,c=r?function(e){return"timeZone"in e}(r)?r.timeZone??d:r.dateFieldsTimeReference?(0,a.ZS)(r.dateFieldsTimeReference):d??"UTC":null,f=n?function(e){return"timeZone"in e}(n)?n.timeZone??d:n.timeReference?(0,a.ZS)(n.timeReference):d:null,m=new Map([[(0,l.NF)(r?.creationDateField??""),c],[(0,l.NF)(r?.editDateField??""),c],[(0,l.NF)(s),f],[(0,l.NF)(u),f]]);for(let{name:n,type:r}of e.fields)if(h.has(r))t.set(n,o.L);else if("date"!==r&&"esriFieldTypeDate"!==r)t.set(n,null);else if(i)t.set(n,o.L);else{let e=m.get((0,l.NF)(n??""))??d;t.set(n,e)}return t}},98453(e,t,i){const n=new(i(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"});i.d(t,["m",0,n])},93470(e,t,i){const n=[252,146,31,255],r={type:"esriSMS",style:"esriSMSCircle",size:6,color:n,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},s={type:"esriSLS",style:"esriSLSSolid",width:.75,color:n};i.d(t,["Cb",0,r,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,n,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,s])}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[7992],{69397(t,e,r){r.d(e,{JY:()=>m,Qf:()=>o,Qh:()=>a,lM:()=>i,ro:()=>l,rq:()=>u});var s=r(44208),n=r(34275);function i(t){if(!t)return 0;let e=f;for(let r in t)t.hasOwnProperty(r)&&(e+=h(t[r],!1));return e}function a(t){if(!t)return 0;if("number"==typeof t[0])return o(t);if(Array.isArray(t))return function(t){let e=t.length;if(0===e||"number"==typeof t[0])return u(t,8);let r=g;for(let s=0;s<e;s++)r+=h(t[s]);return r}(t);let e=f;for(let r in t)t.hasOwnProperty(r)&&(e+=h(t[r]));return e}function h(t,e=!0){switch(typeof t){case"object":return e?a(t):f;case"string":return function(t){return 32+t.length}(t);case"number":return 16;case"boolean":return 4;default:return 8}}function o(...t){return t.reduce((t,e)=>t+l(e),0)}function l(t,e=16){return t?(0,n.iu)(t)?t.byteLength+c:Array.isArray(t)?u(t,e):0:0}function u(t,e){return g+t.length*e}const f=32,g=16,m=(0,s.A)("ios")||!(0,s.A)("chrome")&&!(0,s.A)("opr")?8:4,c=145},87992(t,e,r){r.d(e,{JR:()=>A,ME:()=>M,MY:()=>Z,NO:()=>C,Nh:()=>O,V2:()=>w,_s:()=>R,e6:()=>I,gh:()=>E,jm:()=>P,tr:()=>X,uX:()=>x});var s=r(32198),n=(r(69397),r(92722)),i=r(16930),a=r(19419),h=r(513),o=r(50954),l=r(79567),u=r(52006),f=r(49663),g=r(46068),m=r(60408),c=r(21325);class x{constructor({type:t,spatialReference:e,vertexCount:r,vertexXY:s,vertexZ:n,vertexM:i,partCount:a,partOffsets:h,partFlags:o,segmentFlags:l,segmentIndices:u,segmentParams:f,segmentCountArc:g,segmentCountBezier:m}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=r,this.vertexXY=s,this.vertexZ=n,this.vertexM=i,this.partCount=a,this.partOffsets=h,this.partFlags=o,this.segmentFlags=l,this.segmentIndices=u,this.segmentParams=f,this.segmentCountArc=g,this.segmentCountBezier=m}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){let{segmentCount:t,segmentCountArc:e,segmentCountBezier:r}=this;return t&&t-e-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return this.segmentCountArc+this.segmentCountBezier>0}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function t(t){return t?64+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){let{type:t,vertexCount:e,partCount:r,hasZ:s,hasM:n,segmentCountArc:i,segmentCountBezier:a}=this,h=w(t,e,r,s,n,this.hasCurves(),i,a);h.spatialReference=this.spatialReference;let{vertexXY:o,vertexZ:l,vertexM:u}=this;if(h.vertexXY.set(o.subarray(0,2*e),0),h.vertexZ?.set(l.subarray(0,e),0),h.vertexM?.set(u.subarray(0,e),0),this.isMultipart()){let{partOffsets:t,partFlags:e}=this;h.partFlags.set(e.subarray(0,r+1)),h.partOffsets.set(t.subarray(0,r+1))}if(this.hasCurves()){let{segmentFlags:t,segmentIndices:r,segmentParams:s,segmentParamCount:n}=this;h.segmentFlags.set(t.subarray(0,e),0),h.segmentIndices.set(r.subarray(0,e),0),h.segmentParams.set(s.subarray(0,n),0)}return h}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,c.aI)(this.spatialReference,t.spatialReference)||this.vertexCount!==t.vertexCount||this.partCount!==t.partCount||this.hasZ!==t.hasZ||this.hasM!==t.hasM||this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;let r=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,r)=>Math.abs(t-r)>e||isNaN(t)!==isNaN(r);for(let e=0;e<this.vertexCount;++e)if(r(this.vertexXY[2*e],t.vertexXY[2*e])||r(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexM[e],t.vertexM[e]))return!1;for(let e=0;e<this.partCount;++e)if(this.partFlags[e]!==t.partFlags[e]||this.partOffsets[e]!==t.partOffsets[e])return!1;if(this.hasCurves()){for(let e=0;e<this.vertexCount;++e)if(this.segmentFlags[e]!==t.segmentFlags[e]||this.segmentIndices[e]!==t.segmentIndices[e])return!1;for(let e=0;e<this.segmentParamCount;++e)if(r(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new p(this):[][Symbol.iterator]()}}class p{constructor(t){this.geometry=t,this.value=new d(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class d{constructor(t){this.geometry=t,this.index=-1,this._readVertex=b(t),this._segments=new v(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){let t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class v{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this.value=new y(t.geometry)}get _partIsClosed(){return!!(1&this._part.geometry.partFlags?.[this._part.index])}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;let t=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=t&&this._partIsClosed?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){let{index:t}=this._part,e=this._part.geometry.partOffsets;this._partStart=e[t],this._partEnd=e[t+1]-(this._partIsClosed?1:2),this.value.indexOfStartVertex=this._partStart-1}}class y{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=b(t)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){let t=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===t)return this.end;let e=this.geometry.segmentParams,r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){let t=e[r++],s=e[r++],n=e[r++],i=e[r++];return{b:[this.end,[t,s],[n,i]]}}let s=e[r++],n=e[r++],i=e[r++],a=e[r++],h=e[r++],o=e[r++];r++,r++;let l=e[r++],u=e[r++];if(!(4&s)&&1===i)return{c:[this.end,[l,u]]};let f=2&s?0:1,g=1&s?0:1;return{a:[this.end,[h,o],f,g,a,n,i]}}}function C(t,e){let r={stack:[],error:void 0,hasError:!1};try{return e??=(0,a.Ie)(),(0,s.mS)(r,new S(t,["vertexZ","vertexM","spatialReference"]),!1),(0,a.bx)(e,function(t){let e,{vertexCount:r,vertexXY:n,vertexZ:i,vertexM:h}=t,o=F(t);if(t.hasCurves()){let r={stack:[],error:void 0,hasError:!1};try{(0,s.mS)(r,new S(t,["vertexZ","vertexM"]),!1);let n=(0,a.Ie)();for(let e of t.parts){let t=e.startVertex;for(let{curve:r}of e.segments)(0,l.e)(n,t,r),t=(0,u.yP)(r)}let[i,h,f,g]=n;e={xmin:i,ymin:h,xmax:f,ymax:g,spatialReference:o}}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}else{let t,s,i,a;t=s=1/0,i=a=-1/0;for(let e=0;e<r;++e){let r=n[2*e],h=n[2*e+1];t=Math.min(t,r),i=Math.max(i,r),s=Math.min(s,h),a=Math.max(a,h)}e={xmin:t,ymin:s,xmax:i,ymax:a,spatialReference:o}}if(i){let t=1/0,r=-1/0;for(let e of i)t=Math.min(t,e),r=Math.max(r,e);e.zmin=t,e.zmax=r}if(h){let t=1/0,r=-1/0;for(let e of h)t=Math.min(t,e),r=Math.max(r,e);e.mmin=t,e.mmax=r}return e}(t)),e}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}function M(t){let e,r,s;if((0,m.fT)(t)){s="point";let{x:n,y:i,z:a,m:h}=t,o=[n,i];null!=a&&o.push(a),null!=h&&o.push(h),r=[[o]],e=1}else(0,m.U9)(t)?(s="multipoint",r=[t.points],e=t.points.length):(0,m.Rg)(t)?(s="polyline",r=t.curvePaths??t.paths,e=r.reduce((t,e)=>t+e.length,0)):(s="polygon",r=t.curveRings??t.rings,e=r.reduce((t,e)=>(0===e.length||(t+=e.length,_(e[0],(0,u.yP)(e.at(-1)))&&--t),t),0));let n=w(s,e,s.includes("point")?0:r.length,(0,m.Pv)(t),(0,m.W0)(t),(0,u.Ed)(t)),{hasZ:i,hasM:a,vertexXY:h,vertexZ:o,vertexM:l}=n;function f(t){h[2*c]=t[0],h[2*c+1]=t[1],i&&(o[c]=t[2]),a&&(l[c]=t[g]),++c}n.spatialReference=t.spatialReference??void 0;let g=n.hasZ?3:2,c=0;if(!n.isMultipart()){if(!i&&!a){for(let[t,e]of r[0])h[2*c]=t,h[2*c+1]=e,++c;return n}for(let t of r[0])f(t);return n}let x="polygon"===s,{partOffsets:p}=n,d=0;if(!(0,u.Ed)(t)){for(let t of r){if(p[d++]=c,0===t.length)continue;let e=t.length;if(x&&_(t[0],t.at(-1))&&--e,i||a)for(let r=0;r<e;++r)f(t[r]);else for(let r=0;r<e;++r){let[e,s]=t[r];h[2*c]=e,h[2*c+1]=s,++c}}return p[d]=c,n}function v(t){let e=y+t;if(e<=(n.segmentParams?.length??0))return;let r=e*k;r=20*Math.ceil(r/20);let s=n.segmentParams;n.segmentParams=new Float64Array(r),null!=s&&n.segmentParams.set(s)}let y=0;for(let t of r){if(n.partOffsets[d++]=c,0===t.length)continue;let e=t[0],r=e;for(let e=1;e<t.length;++e){let s=t[e];f(r);let i=c-1;(0,u.wY)(s)?(v(10),++n.segmentCountArc,y=R(r,s,n,i,y),r=s.a[0]):(0,u.DA)(s)?(v(10),++n.segmentCountArc,y=Y(r,s,n,i,y),r=s.a[0]):(0,u.aO)(s)?(v(10),++n.segmentCountArc,y=I(r,s,n,i,y),r=s.c[0]):(0,u.n1)(s)?(v(4),++n.segmentCountBezier,y=X(0,s,n,i,y),r=s.b[0]):r=s}x&&_(e,r)||f(r)}return n.partOffsets[d]=c,n}function E(t){let e=b(t),{vertexCount:r,partCount:s,hasZ:n,hasM:i}=t,a=F(t),h=0;if(!t.isMultipart()){if("point"===t.type){let[e,r]=t.vertexXY;return{x:e,y:r,z:t.vertexZ?.[0],m:t.vertexM?.[0],spatialReference:a}}let s=[];for(;h<r;)s.push(e(h++));return{points:s,spatialReference:a,hasZ:n,hasM:i}}if(!t.hasCurves()){let r=[];for(let n=0;n<s;++n){let s=!!(1&t.partFlags[n]),i=t.partOffsets[n+1],a=[];for(;h<i;)a.push(e(h++));s&&a.length>0&&a.push([...a[0]]),r.push(a)}return"polygon"===t.type?{rings:r,hasZ:n,hasM:i,spatialReference:a}:{paths:r,hasZ:n,hasM:i,spatialReference:a}}let o=[];for(let{segments:e,startVertex:r}of t.parts){let t=[r];for(let{curve:r}of e)t.push(r);o.push(t)}return"polygon"===t.type?{rings:[],curveRings:o,hasZ:n,hasM:i,spatialReference:a}:{paths:[],curvePaths:o,hasZ:n,hasM:i,spatialReference:a}}function O(t,{lengths:e,coords:r,hasZ:s,hasM:n},i){let a=t.includes("point")?0:e.length,h="polygon"===t,o="point"===t?1:e.reduce((t,e)=>t+e,0)-(h?a:0);s??=!1,n??=!1;let l=w(t,o,a,s,n,!1,0,0);if(l.spatialReference=i??void 0,!l.isMultipart()){for(let t=0,e=0;t<o;++t)l.vertexXY[2*t]=r[e++],l.vertexXY[2*t+1]=r[e++],s&&(l.vertexZ[t]=r[e++]),n&&(l.vertexM[t]=r[e++]);return l}let u=2+Number(s)+Number(n),f=0,g=0;l.partOffsets[0]=0;for(let t of e){let e=l.partOffsets[g],i=e+t-Number(h);l.partOffsets[++g]=i;for(let t=e;t<i;++t)l.vertexXY[2*t]=r[f++],l.vertexXY[2*t+1]=r[f++],s&&(l.vertexZ[t]=r[f++]),n&&(l.vertexM[t]=r[f++]);h&&(f+=u)}return l}function A({type:t,vertexCount:e,vertexXY:r,vertexZ:s,vertexM:i,partCount:a,partOffsets:h,partFlags:o,hasZ:l,hasM:u}){let f=new n.A([],[],l,u);a=Math.max(a,1);let g=0;for(let t=0;t<a;++t){let n=h?.[t+1]??e,a=f.coords.length;for(let t=g;t<n;++t)f.coords.push(r[2*t],r[2*t+1]),l&&f.coords.push(s[t]),u&&f.coords.push(i[t]);if(o&&1&o[t]){let t=g;f.coords.push(r[2*t],r[2*t+1]),l&&f.coords.push(s[t]),u&&f.coords.push(i[t])}f.lengths.push((f.coords.length-a)/f.stride),g=n}return"point"===t&&(f.lengths.length=0),f}function P(...t){let e=new Set;for(let r of t){if(!r)continue;let t=[r.vertexXY,r.vertexZ,r.vertexM,r.partOffsets,r.partFlags,r.segmentFlags,r.segmentIndices,r.segmentParams];for(let r of t){let t=r?.buffer;t&&e.add(t)}}return Array.from(e)}function Z(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;let e=t.getText()||void 0,r=t.isCustomWkid()?0:t.getOldID();if(r<=0)return{wkt:e};let s=t.getLatestID();(s<=0||s===r)&&(s=void 0);let n=t.getVCS();if(null==n)return{wkid:r,latestWkid:s,wkt:e};let i=n.isCustomWkid()?0:n.getOldID();if(i<=0)return{wkt:e};let a=t.getLatestVerticalID();return(a<=0||a===i)&&(a=void 0),{wkid:r,wkt:e,latestWkid:s,vcsWkid:i,latestVcsWkid:a}}(t.getSpatialReference()),t=t.getGeometry()),new x({...t.toFlatGeometry(),spatialReference:e})}class S{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(let r of e)t[r]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function F({spatialReference:t}){return t instanceof i.A?t.toJSON():t}function b({vertexXY:t,vertexZ:e,vertexM:r}){return e?r?s=>[t[2*s],t[2*s+1],e[s],r[s]]:r=>[t[2*r],t[2*r+1],e[r]]:r?e=>[t[2*e],t[2*e+1],r[e]]:e=>[t[2*e],t[2*e+1]]}function _(t,e){return t.every((t,r)=>t===e[r])}function w(t,e,r,s,n,i,a,h){a??=0,h??=0;let o=new x({type:t,vertexCount:e,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:a,segmentCountBezier:h}),l=2*Float64Array.BYTES_PER_ELEMENT*e;s&&(l+=Float64Array.BYTES_PER_ELEMENT*e),n&&(l+=Float64Array.BYTES_PER_ELEMENT*e),o.isMultipart()&&(l+=(r+1)*Int32Array.BYTES_PER_ELEMENT,l+=(r+1)*Int8Array.BYTES_PER_ELEMENT),i&&(l+=e*Int8Array.BYTES_PER_ELEMENT,l+=e*Int32Array.BYTES_PER_ELEMENT,l+=o.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);let u=new ArrayBuffer(l),f=0;return o.vertexXY=new Float64Array(u,f,2*e),f+=o.vertexXY.byteLength,s&&(o.vertexZ=new Float64Array(u,f,e),f+=o.vertexZ.byteLength),n&&(o.vertexM=new Float64Array(u,f,e),f+=o.vertexM.byteLength),i&&(o.segmentParams=new Float64Array(u,f,o.segmentParamCount),f+=o.segmentParams.byteLength,o.segmentIndices=new Int32Array(u,f,e),o.segmentIndices.fill(N),f+=o.segmentIndices.byteLength),o.isMultipart()&&(o.partOffsets=new Int32Array(u,f,r+1),f+=o.partOffsets.byteLength,o.partFlags=new Int8Array(u,f,r+1),f+=o.partFlags.byteLength,"polygon"===o.type&&o.partFlags.subarray(0,r).fill(1)),i&&(o.segmentFlags=new Int8Array(u,f,e),o.segmentFlags.fill(1),f+=o.segmentFlags.byteLength),o}function R(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){r[i]=4,s[i]=a;let[h,[o,l],u,f,m,c,x]=e.a,p=4;f||(p|=1),u||(p|=2);let d=(0,g.SW)(t,e),[v,y]=(0,g.Uk)(d,.5);return n[a++]=p,n[a++]=c,n[a++]=x,n[a++]=m,n[a++]=o,n[a++]=l,n[a++]=d.u2-d.u1,n[a++]=d.u1,n[a++]=v,n[a++]=y,a}function Y(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){r[i]=4,s[i]=a;let o=(0,f.io)(t,e);return V(o,4,...(0,h.mq)(o,.5),n,a)}function I(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){return r[i]=4,s[i]=a,V((0,o.pM)(t,e),0,...e.c[1],n,a)}function V(t,e,r,s,n,i){let{cx:a,cy:h,thetaStart:o,thetaEnd:l,radius:u}=t;return o>l||(e|=1),Math.abs(l-o)<=Math.PI||(e|=2),n[i++]=e,n[i++]=u,n[i++]=1,n[i++]=0,n[i++]=a,n[i++]=h,n[i++]=l-o,n[i++]=o,n[i++]=r,n[i++]=s,i}function X(t,{b:[e,[r,s],[n,i]]},{segmentFlags:a,segmentIndices:h,segmentParams:o},l,u){return a[l]=2,h[l]=u,o[u++]=r,o[u++]=s,o[u++]=n,o[u++]=i,u}const k=1.61803,N=-1},92722(t,e,r){r.d(e,{A:()=>n});var s=r(69397);class n{constructor(t=[],e=[],r=!1,s=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=r,this.hasM=s}static fromJSON({lengths:t,coords:e,hasZ:r,hasM:s}){return new n(t,e,r||!1,s||!1)}static fromRect([t,e,r,s]){let i=r-t,a=s-e;return new n([5],[t,e,i,0,0,a,-i,0,0,-a])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,s.Qf)(this.lengths,this.coords)}get stride(){return+!!this.hasZ+2+ +!!this.hasM}area(){if(this.isPoint)return 0;let t=0,e=0;for(let r of this.lengths){if(r<3)continue;let{stride:s}=this,n=this.coords[s*e],i=this.coords[s*e+1];for(let a=1;a<r;a+=1){let r=s*(e+a),h=this.coords[r],o=this.coords[r+1];t+=-.5*(h-n)*(o+i),n=h,i=o}e+=r}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);let{stride:r}=this;for(let s of this.lengths){for(let n=0;n<s;n++){let s=r*(e+n);t(this.coords[s],this.coords[s+1])}e+=s}}deltaDecode(){let t=this.clone(),{coords:e,lengths:r}=t,s=0,{stride:n}=this;for(let t of r){for(let r=1;r<t;r++){let t=n*(s+r);e[t]+=e[t-n],e[t+1]+=e[t+1-n]}s+=t}return t}clone(t){if(this.isPoint)return new n([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);let e=Array.from(this.lengths),{stride:r,size:s}=this,i=this.coords.slice(0,s*r);return t?(t.set(i),new n(e,t,this.hasZ,this.hasM)):new n(e,Array.from(i),this.hasZ,this.hasM)}justXY(){let{stride:t,size:e}=this;if(2===t)return this;let r=Array(e*t);for(let e=0,s=0;e<r.length;e+=t)r[s++]=this.coords[e],r[s++]=this.coords[e+1];return new n(this.lengths,r,!1,!1)}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[5443],{5443(t,e,i){var n,r=i(32198),s=i(91429),a=i(799),l=i(91075),h=i(86738),m=i(16930),o=i(94078),u=i(12176),x=i(21325),y=i(28735);function c(t,e,i){return null==e?i:null==i?e:t(e,i)}let f=n=class extends l.A{constructor(t){super(t),this.type="extent",this.xmin=0,this.ymin=0,this.mmin=void 0,this.zmin=void 0,this.xmax=0,this.ymax=0,this.mmax=void 0,this.zmax=void 0}static fromPoint(t){return new n({xmin:t.x,ymin:t.y,zmin:t.z,xmax:t.x,ymax:t.y,zmax:t.z,spatialReference:t.spatialReference})}get cache(){return this.commitProperty("xmin"),this.commitProperty("ymin"),this.commitProperty("zmin"),this.commitProperty("mmin"),this.commitProperty("xmax"),this.commitProperty("ymax"),this.commitProperty("zmax"),this.commitProperty("mmax"),this.commitProperty("spatialReference"),{}}get center(){let t=new h.A({x:.5*(this.xmin+this.xmax),y:.5*(this.ymin+this.ymax),spatialReference:this.spatialReference});return this.hasZ&&(t.z=.5*(this.zmin+this.zmax)),this.hasM&&(t.m=.5*(this.mmin+this.mmax)),t}get extent(){return this.clone()}get hasM(){return null!=this.mmin&&null!=this.mmax}get hasZ(){return null!=this.zmin&&null!=this.zmax}get height(){return Math.abs(this.ymax-this.ymin)}get width(){return Math.abs(this.xmax-this.xmin)}centerAt(t){let e=this.center;return null!=t.z&&this.hasZ?this.offset(t.x-e.x,t.y-e.y,t.z-e.z):this.offset(t.x-e.x,t.y-e.y)}clone(){let t=new n;return t.xmin=this.xmin,t.ymin=this.ymin,t.xmax=this.xmax,t.ymax=this.ymax,t.spatialReference=this.spatialReference,null!=this.zmin&&(t.zmin=this.zmin,t.zmax=this.zmax),null!=this.mmin&&(t.mmin=this.mmin,t.mmax=this.mmax),t}contains(t){if(!t)return!1;let e=this.spatialReference,i=t.spatialReference;return e&&i&&!e.equals(i)&&(0,y.y7)(e,i)&&(t=e.isWebMercator?(0,y.Gh)(t):(0,y.ci)(t,!0)),"point"===t.type?(0,o.qz)(this,t):"extent"===t.type&&(0,o.gH)(this,t)}equals(t){if(this===t)return!0;if(null==t)return!1;let e=this.spatialReference,i=t.spatialReference;return e&&i&&!e.equals(i)&&(0,y.y7)(e,i)&&(t=e.isWebMercator?(0,y.Gh)(t):(0,y.ci)(t,!0)),this.xmin===t.xmin&&this.ymin===t.ymin&&this.zmin===t.zmin&&this.mmin===t.mmin&&this.xmax===t.xmax&&this.ymax===t.ymax&&this.zmax===t.zmax&&this.mmax===t.mmax}expand(t){let e=.5*(1-t),i=this.width*e,n=this.height*e;if(this.xmin+=i,this.ymin+=n,this.xmax-=i,this.ymax-=n,this.hasZ){let t=(this.zmax-this.zmin)*e;this.zmin+=t,this.zmax-=t}if(this.hasM){let t=(this.mmax-this.mmin)*e;this.mmin+=t,this.mmax-=t}return this}intersects(t){if(null==t)return!1;"mesh"===t.type&&(t=t.extent);let e=this.spatialReference,i=t.spatialReference;return e&&i&&!(0,x.aI)(e,i)&&(0,y.y7)(e,i)&&(t=e.isWebMercator?(0,y.Gh)(t):(0,y.ci)(t,!0)),(0,u.xK)(t.type)(this,t)}normalize(){let t=this._normalize(!1,!0);return Array.isArray(t)?t:[t]}normalizeAsSingleGeometry(t){return this._normalize(!1,!1,t)}offset(t,e,i){return this.xmin+=t,this.ymin+=e,this.xmax+=t,this.ymax+=e,null!=i&&(this.zmin+=i,this.zmax+=i),this}shiftCentralMeridian(){return this._normalize(!0)}union(t){return this===t||(this.xmin=Math.min(this.xmin,t.xmin),this.ymin=Math.min(this.ymin,t.ymin),this.xmax=Math.max(this.xmax,t.xmax),this.ymax=Math.max(this.ymax,t.ymax),(this.hasZ||t.hasZ)&&(this.zmin=c(Math.min,this.zmin,t.zmin),this.zmax=c(Math.max,this.zmax,t.zmax)),(this.hasM||t.hasM)&&(this.mmin=c(Math.min,this.mmin,t.mmin),this.mmax=c(Math.max,this.mmax,t.mmax))),this}intersection(t){return this===t?this:null!=t&&this.intersects(t)?(this.xmin=Math.max(this.xmin,t.xmin),this.ymin=Math.max(this.ymin,t.ymin),this.xmax=Math.min(this.xmax,t.xmax),this.ymax=Math.min(this.ymax,t.ymax),(this.hasZ||t.hasZ)&&(this.zmin=c(Math.max,this.zmin,t.zmin),this.zmax=c(Math.min,this.zmax,t.zmax)),(this.hasM||t.hasM)&&(this.mmin=c(Math.max,this.mmin,t.mmin),this.mmax=c(Math.min,this.mmax,t.mmax)),this):null}toJSON(t){return this.write({},t)}_shiftCM(t=(0,x.Vp)(this.spatialReference)){if(!t||!this.spatialReference)return this;let e=this.spatialReference,i=this._getCM(t);if(i){let n=e.isWebMercator?(0,y.ci)(i):i;this.xmin-=i.x,this.xmax-=i.x,e.isWebMercator||(n.x=p(n.x,t).x),this.spatialReference=new m.A((0,a.HC)((e.isWGS84?t.altTemplate:null)??t.wkTemplate,{Central_Meridian:n.x}))}return this}_getCM(t){let e=null,[i,n]=t.valid,r=this.xmin,s=this.xmax;return r>=i&&r<=n&&s>=i&&s<=n||(e=this.center),e}_normalize(t,e,i){let n=this.spatialReference;if(!n)return this;let r=i??(0,x.Vp)(n);if(null==r)return this;let s=this._getParts(r).map(t=>t.extent);if(s.length<2)return s[0]||this;if(s.length>2)return t?this._shiftCM(r):this.set({xmin:r.valid[0],xmax:r.valid[1]});if(t)return this._shiftCM(r);if(e)return s;let a=!0,l=!0;return s.forEach(t=>{t.hasZ||(a=!1),t.hasM||(l=!1)}),{rings:s.map(t=>{let e=[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]];if(a){let i=(t.zmax-t.zmin)/2;for(let t=0;t<e.length;t++)e[t].push(i)}if(l){let i=(t.mmax-t.mmin)/2;for(let t=0;t<e.length;t++)e[t].push(i)}return e}),hasZ:a,hasM:l,spatialReference:n}}_getParts(t){let e=this.cache._parts;if(!e){e=[];let i,{ymin:r,ymax:s,spatialReference:a}=this,l=this.width,h=this.xmin,m=this.xmax;t||=(0,x.Vp)(a);let[o,u]=t.valid;i=p(this.xmin,t);let y=i.x,c=i.frameId;i=p(this.xmax,t);let f=i.x,d=i.frameId,g=y===f&&l>0;if(l>2*u){let t=new n({xmin:h<m?y:f,ymin:r,xmax:u,ymax:s,spatialReference:a}),i=new n({xmin:o,ymin:r,xmax:h<m?f:y,ymax:s,spatialReference:a}),l=new n({xmin:0,ymin:r,xmax:u,ymax:s,spatialReference:a}),x=new n({xmin:o,ymin:r,xmax:0,ymax:s,spatialReference:a}),p=[],g=[];t.contains(l)&&p.push(c),t.contains(x)&&g.push(c),i.contains(l)&&p.push(d),i.contains(x)&&g.push(d);for(let t=c+1;t<d;t++)p.push(t),g.push(t);e.push({extent:t,frameIds:[c]},{extent:i,frameIds:[d]},{extent:l,frameIds:p},{extent:x,frameIds:g})}else y>f||g?e.push({extent:new n({xmin:y,ymin:r,xmax:u,ymax:s,spatialReference:a}),frameIds:[c]},{extent:new n({xmin:o,ymin:r,xmax:f,ymax:s,spatialReference:a}),frameIds:[d]}):e.push({extent:new n({xmin:y,ymin:r,xmax:f,ymax:s,spatialReference:a}),frameIds:[c]});this.cache._parts=e}let i=this.hasZ,r=this.hasM;if(i||r){let t={};i&&(t.zmin=this.zmin,t.zmax=this.zmax),r&&(t.mmin=this.mmin,t.mmax=this.mmax);for(let i=0;i<e.length;i++)e[i].extent.set(t)}return e}};function p(t,e){let i,[n,r]=e.valid,s=2*r,a=0;return t>r?(i=Math.ceil(Math.abs(t-r)/s),t-=i*s,a=i):t<n&&(i=Math.ceil(Math.abs(t-n)/s),t+=i*s,a=-i),{x:t,frameId:a}}(0,r.Cg)([(0,s.MZ)({readOnly:!0})],f.prototype,"cache",null),(0,r.Cg)([(0,s.MZ)({readOnly:!0})],f.prototype,"center",null),(0,r.Cg)([(0,s.MZ)({readOnly:!0})],f.prototype,"extent",null),(0,r.Cg)([(0,s.MZ)({readOnly:!0,json:{write:{enabled:!1,overridePolicy:null}}})],f.prototype,"hasM",null),(0,r.Cg)([(0,s.MZ)({readOnly:!0,json:{write:{enabled:!1,overridePolicy:null}}})],f.prototype,"hasZ",null),(0,r.Cg)([(0,s.MZ)({readOnly:!0})],f.prototype,"height",null),(0,r.Cg)([(0,s.MZ)({type:m.A,json:{write:!0},value:m.A.WGS84})],f.prototype,"spatialReference",void 0),(0,r.Cg)([(0,s.MZ)({readOnly:!0})],f.prototype,"width",null),(0,r.Cg)([(0,s.MZ)({type:Number,json:{type:[Number,String],write:{enabled:!0,allowNull:!0}}})],f.prototype,"xmin",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],f.prototype,"ymin",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{origins:{"web-scene":{write:!1}},read:t=>t??void 0,write:{overridePolicy(){return{enabled:this.hasM}}}}})],f.prototype,"mmin",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasZ}}}}})],f.prototype,"zmin",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],f.prototype,"xmax",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],f.prototype,"ymax",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{origins:{"web-scene":{write:!1}},read:t=>t??void 0,write:{overridePolicy(){return{enabled:this.hasM}}}}})],f.prototype,"mmax",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasZ}}}}})],f.prototype,"zmax",void 0),f=n=(0,r.Cg)([(0,s.$K)("esri.geometry.Extent")],f),f.prototype.toJSON.isDefaultToJSON=!0;const d=f;i.d(e,["A",0,d])},91075(t,e,i){var n=i(32198),r=i(91429),s=i(25482),a=i(16930),l=i(36005);let h=class extends s.o{constructor(t){super(t),this.type=null,this.hasM=!1,this.hasZ=!1,this.spatialReference=a.A.WGS84}get cache(){return this.commitProperty("spatialReference"),{}}get extent(){return null}readSpatialReference(t,e){if(t instanceof a.A)return t;if(null!=t){let i=new a.A;return i.read(t,e),i}return t}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}clearCache(){this.notifyChange("cache")}getCacheValue(t){return this.cache[t]}setCacheValue(t,e){this.cache[t]=e}};(0,n.Cg)([(0,r.MZ)()],h.prototype,"type",void 0),(0,n.Cg)([(0,r.MZ)({readOnly:!0})],h.prototype,"cache",null),(0,n.Cg)([(0,r.MZ)({readOnly:!0})],h.prototype,"extent",null),(0,n.Cg)([(0,r.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],h.prototype,"hasM",void 0),(0,n.Cg)([(0,r.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],h.prototype,"hasZ",void 0),(0,n.Cg)([(0,r.MZ)({type:a.A,json:{write:!0},value:a.A.WGS84})],h.prototype,"spatialReference",void 0),(0,n.Cg)([(0,l.w)("spatialReference")],h.prototype,"readSpatialReference",null),h=(0,n.Cg)([(0,r.$K)("esri.geometry.Geometry")],h);const m=h;i.d(e,["A",0,m])},86738(t,e,i){i.d(e,{A:()=>z});var n=i(32198),r=i(56372),s=i(91429),a=i(56507),l=i(53966),h=i(91075),m=i(16930),o=i(21325),u=i(28735);function x({x:t,y:e,spatialReference:i},n=[0,0]){if(i){if((0,o.K8)(i))return(0,u.tD)(t,e,n);if((0,o.EA)(i))return n[0]=t,n[1]=e,n}return null}const y=[0,0];var c,f=i(43937),p=i(36005);const d=()=>l.A.getLogger("esri.geometry.Point"),g=[0,0];let M=c=class extends h.A{static copy(t,e){e._set("x",t._get("x")),e._set("y",t._get("y")),e._set("z",t._get("z")),e._set("m",t._get("m"));let i=t._get("spatialReference");e._set("spatialReference",r.A.isFrozen(i)?i:i.clone())}constructor(t){super(function(t){if(void 0===t)return{};let e,i,n,r,s;if(Array.isArray(t))[e,i,n,r]=t;else if(t&&"object"==typeof t){let a=t;if(e=a.x??a.longitude,i=a.y??a.latitude,n=a.z,r=a.m,s=a.spatialReference,s&&"esri.geometry.SpatialReference"!==s.declaredClass&&(s=new m.A(s)),null!=a.longitude||null!=a.latitude)if(null==a.longitude)d().warn(".longitude=","Latitude was defined without longitude");else if(null==a.latitude)d().warn(".latitude=","Longitude was defined without latitude");else if(!a.declaredClass&&s?.isWebMercator){let t=(0,u.je)(a.longitude,a.latitude,g);e=t[0],i=t[1]}}let a={x:e,y:i};return null==a.x&&null!=a.y?d().warn(".y=","Y coordinate was defined without an X coordinate"):null==a.y&&null!=a.x&&d().warn(".x=","X coordinate was defined without a Y coordinate"),null!=s&&(a.spatialReference=s),null!=n&&(a.z=n),null!=r&&(a.m=r),a}(t)),this.x=0,this.y=0,this.z=void 0,this.m=void 0,this.type="point"}get cache(){return this.commitProperty("x"),this.commitProperty("y"),this.commitProperty("z"),this.commitProperty("m"),this.commitProperty("spatialReference"),{}}get hasM(){return void 0!==this.m}set hasM(t){t!==(void 0!==this._get("m"))&&(this._set("m",t?0:void 0),this._set("hasM",t))}get hasZ(){return void 0!==this.z}set hasZ(t){t!==(void 0!==this._get("z"))&&(this._set("z",t?0:void 0),this._set("hasZ",t))}get latitude(){return x(this,y)?.[1]??null}set latitude(t){let{spatialReference:e,x:i}=this;null!=t&&e&&(e.isWebMercator?this._set("y",(0,u.je)(i,t,g)[1]):e.isGeographic&&this._set("y",t),this._set("latitude",t))}get longitude(){return x(this,y)?.[0]??null}set longitude(t){let{y:e,spatialReference:i}=this;null!=t&&i&&(i.isWebMercator?this._set("x",(0,u.je)(t,e,g)[0]):i.isGeographic&&this._set("x",t),this._set("longitude",t))}writeX(t,e,i){e[i]=isNaN(t)?"NaN":t}readX(t){return"string"==typeof t?NaN:t}clone(){let t=new c;return t.x=this.x,t.y=this.y,t.z=this.z,t.m=this.m,t.spatialReference=this.spatialReference,t}copy(t){return c.copy(t,this),this}equals(t){if(null==t)return!1;let{x:e,y:i,z:n,m:r,spatialReference:s}=this,{z:a,m:l}=t,{x:h,y:m,spatialReference:o}=t;if(!s.equals(o))if(s.isWebMercator&&o.isWGS84)[h,m]=(0,u.je)(h,m),o=s;else{if(!s.isWGS84||!o.isWebMercator)return!1;[h,m]=(0,u.tD)(h,m),o=s}return e===h&&i===m&&n===a&&r===l&&s.wkid===o.wkid}offset(t,e,i){return this.x+=t,this.y+=e,null!=i&&(this.z=(this.z??0)+i),this}normalize(){if(!this.spatialReference)return this;let t=(0,o.Vp)(this.spatialReference);if(!t)return this;let e,i=this.x,[n,r]=t.valid,s=2*r;return i>r?(e=Math.ceil(Math.abs(i-r)/s),i-=e*s):i<n&&(e=Math.ceil(Math.abs(i-n)/s),i+=e*s),this._set("x",i),this}distance(t){return function(t,e){let i=t.x-e.x,n=t.y-e.y,r=null!=t.z&&null!=e.z?t.z-e.z:0;return Math.sqrt(i*i+n*n+r*r)}(this,t)}toArray(){let t=this.hasZ,e=this.hasM;return t&&e?[this.x,this.y,this.z,this.m]:t?[this.x,this.y,this.z]:e?[this.x,this.y,this.m]:[this.x,this.y]}toJSON(t){return this.write({},t)}};(0,n.Cg)([(0,s.MZ)({readOnly:!0})],M.prototype,"cache",null),(0,n.Cg)([(0,s.MZ)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],M.prototype,"hasM",null),(0,n.Cg)([(0,s.MZ)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],M.prototype,"hasZ",null),(0,n.Cg)([(0,s.MZ)({type:Number})],M.prototype,"latitude",null),(0,n.Cg)([(0,s.MZ)({type:Number})],M.prototype,"longitude",null),(0,n.Cg)([(0,s.MZ)({type:Number,json:{type:[Number,String],write:{isRequired:!0,allowNull:!0}}}),(0,s.wg)(t=>isNaN(t)?t:(0,a.GB)(t))],M.prototype,"x",void 0),(0,n.Cg)([(0,f.K)("x")],M.prototype,"writeX",null),(0,n.Cg)([(0,p.w)("x")],M.prototype,"readX",null),(0,n.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],M.prototype,"y",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasZ}}}}})],M.prototype,"z",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasM}}}}})],M.prototype,"m",void 0),M=c=(0,n.Cg)([(0,s.$K)("esri.geometry.Point")],M),M.prototype.toJSON.isDefaultToJSON=!0;const z=M},21276(t,e,i){i.d(e,{H:()=>s,f:()=>r});var n=i(49186);function r(t){if(t&&"object"==typeof t&&"type"in t&&"mesh"===t.type)throw new n.A("internal:mesh","Mesh geometries are not supported for this operation")}function s(t){t.forEach(r)}},94078(t,e,i){i.d(e,{CW:()=>l,F8:()=>h,gH:()=>a,m3:()=>o,qz:()=>r,rL:()=>s,t1:()=>u});const n=[0,0];function r(t,e){return null!=e&&m(t,e.x,e.y,e.z)}function s(t,e){if(!e.points?.length)return!1;for(let i of e.points)if(!l(t,i))return!1;return!0}function a(t,e){let{xmin:i,ymin:n,zmin:r,xmax:s,ymax:a,zmax:l}=e;return t.hasZ&&e.hasZ?m(t,i,n,r)&&m(t,i,a,r)&&m(t,s,a,r)&&m(t,s,n,r)&&m(t,i,n,l)&&m(t,i,a,l)&&m(t,s,a,l)&&m(t,s,n,l):m(t,i,n)&&m(t,i,a)&&m(t,s,a)&&m(t,s,n)}function l(t,e){return m(t,e[0],e[1])}function h(t,e){return m(t,e[0],e[1],e[2])}function m(t,e,i,n){return e>=t.xmin&&e<=t.xmax&&i>=t.ymin&&i<=t.ymax&&(null==n||!t.hasZ||n>=t.zmin&&n<=t.zmax)}function o(t,e){return n[1]=e.y,n[0]=e.x,function(t,e){return u(t.rings,e)}(t,n)}function u(t,e){if(!t||t.length<1)return!1;if(function(t){return!Array.isArray(t[0][0])}(t))return x(!1,t,e);let i=!1;for(let n=0,r=t.length;n<r;n++)i=x(i,t[n],e);return i}function x(t,e,i){let[n,r]=i,s=t,a=0;for(let t=0,i=e.length;t<i;t++){a++,a===i&&(a=0);let[l,h]=e[t],[m,o]=e[a];(h<r&&o>=r||o<r&&h>=r)&&l+(r-h)/(o-h)*(m-l)<n&&(s=!s)}return s}},12176(t,e,i){i.d(e,{M5:()=>w,Ql:()=>p,VK:()=>d,fA:()=>y,s3:()=>z,xB:()=>s,xK:()=>C});var n=i(94078);function r(t,e){return(0,n.qz)(t,e)}function s(t,e){let i,n,r,s=t.hasZ&&e.hasZ;if(t.xmin<=e.xmin){if(i=e.xmin,t.xmax<i)return!1}else if(i=t.xmin,e.xmax<i)return!1;if(t.ymin<=e.ymin){if(n=e.ymin,t.ymax<n)return!1}else if(n=t.ymin,e.ymax<n)return!1;if(s&&e.hasZ)if(t.zmin<=e.zmin){if(r=e.zmin,t.zmax<r)return!1}else if(r=t.zmin,e.zmax<r)return!1;return!0}function a(t,e){let{points:i,hasZ:r}=e,s=r?n.F8:n.CW;for(let e of i)if(s(t,e))return!0;return!1}const l=[0,0],h=[0,0],m=[0,0],o=[0,0],u=[l,h,m,o],x=[[m,l],[l,h],[h,o],[o,m]];function y(t,e){return function(t,e){l[0]=t.xmin,l[1]=t.ymax,h[0]=t.xmax,h[1]=t.ymax,m[0]=t.xmin,m[1]=t.ymin,o[0]=t.xmax,o[1]=t.ymin;for(let t of u)if((0,n.t1)(e,t))return!0;for(let i of e){if(!i.length)continue;let e=i[0];if((0,n.CW)(t,e))return!0;for(let r=1;r<i.length;r++){let s=i[r];if((0,n.CW)(t,s)||f(e,s,x))return!0;e=s}}return!1}(t,e.rings)}function c(t,e){l[0]=t.xmin,l[1]=t.ymax,h[0]=t.xmax,h[1]=t.ymax,m[0]=t.xmin,m[1]=t.ymin,o[0]=t.xmax,o[1]=t.ymin;let i=e.paths;for(let e of i){if(!i.length)continue;let r=e[0];if((0,n.CW)(t,r))return!0;for(let i=1;i<e.length;i++){let s=e[i];if((0,n.CW)(t,s)||f(r,s,x))return!0;r=s}}return!1}function f(t,e,i){for(let n=0;n<i.length;n++)if(p(t,e,i[n][0],i[n][1]))return!0;return!1}function p(t,e,i,n,r){let[s,a]=t,[l,h]=e,[m,o]=i,[u,x]=n,y=u-m,c=s-m,f=l-s,p=x-o,d=a-o,g=h-a,M=p*f-y*g;if(0===M)return!1;let z=(y*d-p*c)/M,w=(f*d-g*c)/M;return z>=0&&z<=1&&w>=0&&w<=1&&(r&&(r[0]=s+z*(l-s),r[1]=a+z*(h-a)),!0)}function d(t,e,i){for(let n of e){let e=n.length;for(let r=1;r<e;r++){let e=n[r-1],s=n[r],a=(s[0]-e[0])*(s[0]-e[0])+(s[1]-e[1])*(s[1]-e[1]);if(0===a)continue;a=Math.sqrt(a);let l=((s[0]-e[0])*(t[1]-e[1])-(s[1]-e[1])*(t[0]-e[0]))/a;if(Math.abs(l)<i){let n=((s[0]-e[0])*(t[0]-e[0])+(s[1]-e[1])*(t[1]-e[1]))/a;if(n>-i&&n<a+i)return!0}}}return!1}function g(t){let e=1e-6,i=t[0],n=t[t.length-1];return Math.abs(i[0]-n[0])<=e&&Math.abs(i[1]-n[1])<=e}function M(t,e,i){let[n,r]=t,[s,a]=e,[l,h]=i;return!(a>r&&h>r||a<=r&&h<=r)&&s+(r-a)*(l-s)/(h-a)>n}function z(t,e){let i=0;for(let n of e){let e=n.length;for(let r=1;r<e;r++){let e=n[r-1],s=n[r];M([t[0],t[1]],[e[0],e[1]],[s[0],s[1]])&&i++}}return i%2==1}function w(t,e){let i=t.length>1&&!g(t)?[...t,t[0]]:t;for(let t of e){if(t.some(t=>z(t,[i])))return!0;if(g(t))for(let t of i)if(z(t,e))return!0;for(let e=1;e<t.length;e++){let n=t[e-1],r=t[e];for(let t=0;t<i.length;t++)if(p(n,r,i[t],i[(t+1)%i.length]))return!0}}return!1}function C(t){switch(t){case"esriGeometryEnvelope":case"extent":return s;case"esriGeometryMultipoint":case"multipoint":return a;case"esriGeometryPoint":case"point":return r;case"esriGeometryMultiPatch":case"multipatch":case"esriGeometryPolygon":case"polygon":return y;case"esriGeometryPolyline":case"polyline":return c}}},28735(t,e,i){i.d(e,{Gh:()=>g,ci:()=>M,je:()=>p,jg:()=>o,tD:()=>d,y:()=>f,y7:()=>c});var n=i(4718),r=i(21276),s=i(16930),a=i(79258),l=i(21325);function h(t){return 57.29577951308232*t}function m(t){return.017453292519943*t}function o(t){return Math.PI/2-2*Math.atan(Math.exp(-t/a.$O.radius))}function u(t){return null!=t.wkid||null!=t.wkt}const x=[0,0];function y(t,e,i,n,r){let s=t,a=r;if(a.spatialReference=i,"x"in s&&"x"in a)[a.x,a.y]=e(s.x,s.y,x,n);else if("xmin"in s&&"xmin"in a)[a.xmin,a.ymin]=e(s.xmin,s.ymin,x,n),[a.xmax,a.ymax]=e(s.xmax,s.ymax,x,n);else if("paths"in s&&"paths"in a||"rings"in s&&"rings"in a){let t,i="paths"in s?s.paths:s.rings,r=[];for(let s=0;s<i.length;s++){let a=i[s];t=[],r.push(t);for(let i=0;i<a.length;i++)t.push(e(a[i][0],a[i][1],[0,0],n)),a[i].length>2&&t[i].push(a[i][2]),a[i].length>3&&t[i].push(a[i][3])}"paths"in a?a.paths=r:a.rings=r}else if("points"in s&&"points"in a){let t=s.points,i=[];for(let r=0;r<t.length;r++)i[r]=e(t[r][0],t[r][1],[0,0],n),t[r].length>2&&i[r].push(t[r][2]),t[r].length>3&&i[r].push(t[r][3]);a.points=i}return r}function c(t,e){let i=t&&(u(t)?t:t.spatialReference),n=e&&(u(e)?e:e.spatialReference);return!(t&&"type"in t&&"mesh"===t.type||e&&"type"in e&&"mesh"===e.type||!i||!n)&&(!!(0,l.aI)(n,i)||(0,l.K8)(n)&&(0,l.oT)(i)||(0,l.K8)(i)&&(0,l.oT)(n))}function f(t,e){if(null==t)return null;let i=t.spatialReference,r=e&&(u(e)?e:e.spatialReference);return c(i,r)?(0,l.aI)(i,r)?t:(0,l.K8)(r)?y(t,p,s.A.WebMercator,!1,(0,n.o8)(t)):(0,l.oT)(r)?y(t,d,s.A.WGS84,!1,(0,n.o8)(t)):null:null}function p(t,e,i=[0,0]){e>89.99999?e=89.99999:e<-89.99999&&(e=-89.99999);let n=m(e);return i[0]=m(t)*a.$O.radius,i[1]=a.$O.halfSemiMajorAxis*Math.log((1+Math.sin(n))/(1-Math.sin(n))),i}function d(t,e,i=[0,0],n=!1){if(t===l.Mc[0])i[0]=-180;else if(t===l.Mc[1])i[0]=180;else{let e=h(t/a.$O.radius);i[0]=n?e:e-360*Math.floor((e+180)/360)}return i[1]=h(Math.PI/2-2*Math.atan(Math.exp(-e/a.$O.radius))),i}function g(t,e=!1,i=(0,n.o8)(t)){return(0,r.f)(t),(0,r.f)(i),y(t,p,s.A.WebMercator,e,i)}function M(t,e=!1,i=(0,n.o8)(t)){return(0,r.f)(t),(0,r.f)(i),y(t,d,s.A.WGS84,e,i)}}}]);
|