@arcgis/core 5.2.0-next.74 → 5.2.0-next.76
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/013c9cc198736a72f7f2.js +1 -0
- package/assets/esri/core/workers/chunks/0194244a3f437ad74045.js +1 -0
- package/assets/esri/core/workers/chunks/0502641d9a214b37ff29.js +1 -0
- package/assets/esri/core/workers/chunks/{4dcd4a052b40047a9230.js → 08cac27df6c216ae1995.js} +1 -1
- package/assets/esri/core/workers/chunks/08ec5461af74356e7570.js +1 -0
- package/assets/esri/core/workers/chunks/0909816f13d25cacf250.js +1 -0
- package/assets/esri/core/workers/chunks/0933203eee15ea50e123.js +1 -0
- package/assets/esri/core/workers/chunks/0d9fe49812554e7d7ba7.js +1 -0
- package/assets/esri/core/workers/chunks/{0e81c6d4f1c81f9b0a1b.js → 1142f8e9c80207d6bdae.js} +1 -1
- package/assets/esri/core/workers/chunks/16929524565a677db4dc.js +1 -0
- package/assets/esri/core/workers/chunks/16a04fc184728d66e6e1.js +1 -0
- package/assets/esri/core/workers/chunks/177c3b23c1cbd4737049.js +1 -0
- package/assets/esri/core/workers/chunks/18e0e993c0c39c962e61.js +1 -0
- package/assets/esri/core/workers/chunks/1a467da4c0b33f655199.js +1 -0
- package/assets/esri/core/workers/chunks/1ef28d4457c8c943ad19.js +1 -0
- package/assets/esri/core/workers/chunks/20b54e7872d967f3be32.js +1 -0
- package/assets/esri/core/workers/chunks/{5f31b375971ab067121e.js → 21f763694a41968ac21a.js} +1 -1
- package/assets/esri/core/workers/chunks/230925079cee040a8d77.js +1 -0
- package/assets/esri/core/workers/chunks/2501d9459f6d14c797e5.js +1 -0
- package/assets/esri/core/workers/chunks/257f1e8316877f611e11.js +1 -0
- package/assets/esri/core/workers/chunks/270ed3070d118edb3f37.js +1 -0
- package/assets/esri/core/workers/chunks/2740f755c3a322cbd477.js +1 -0
- package/assets/esri/core/workers/chunks/2e7c830b5b1fe406169f.js +1 -0
- package/assets/esri/core/workers/chunks/2f4ed8a63d57636a4ebe.js +1 -0
- package/assets/esri/core/workers/chunks/{31d19bb72a9e79b30070.js → 30818b5ff0ce51b25d6f.js} +1 -1
- package/assets/esri/core/workers/chunks/315031323e11a18154e3.js +1 -0
- package/assets/esri/core/workers/chunks/393f79843d5a78c1cc37.js +1 -0
- package/assets/esri/core/workers/chunks/3b5c5356353f1a2303a0.js +1 -0
- package/assets/esri/core/workers/chunks/3c28e2040cb4fb716eaa.js +1 -0
- package/assets/esri/core/workers/chunks/{99e3aa4832ed87474ab4.js → 44857a76be2c0ac65bb9.js} +1 -1
- package/assets/esri/core/workers/chunks/44a786aba84918f2b247.js +1 -0
- package/assets/esri/core/workers/chunks/{3e2b4e734aa20a308f3e.js → 46e56fac44e0fd26ba1d.js} +1 -1
- package/assets/esri/core/workers/chunks/{4491dc227c28e2ab4f8e.js → 484b251fbcbffcb58323.js} +1 -1
- package/assets/esri/core/workers/chunks/48e2d0bfb62e1f4f2ad9.js +1 -0
- package/assets/esri/core/workers/chunks/4945d6b0ca1812864185.js +1 -0
- package/assets/esri/core/workers/chunks/{7f2f2a92dce3f68e579b.js → 4b54444c04fbd6f42c18.js} +1 -1
- package/assets/esri/core/workers/chunks/4c82f5f23004f905a18f.js +1 -0
- package/assets/esri/core/workers/chunks/4d7a3b3aaf876da0891b.js +1 -0
- package/assets/esri/core/workers/chunks/4f8ce5887102971bfa34.js +2 -0
- package/assets/esri/core/workers/chunks/50b08415e072a49bc572.js +1 -0
- package/assets/esri/core/workers/chunks/{186bedc377cc97731ca2.js → 532e3a59888e4cc13bd3.js} +2 -2
- package/assets/esri/core/workers/chunks/53eed0941a39b56cc034.js +1 -0
- package/assets/esri/core/workers/chunks/{1a3afee3ecd806b4aa81.js → 552d6aecc7d88d16227b.js} +1 -1
- package/assets/esri/core/workers/chunks/56e6d8c4a9ed893ce951.js +1 -0
- package/assets/esri/core/workers/chunks/57159bcac86d660dcceb.js +1 -0
- package/assets/esri/core/workers/chunks/58026fc30d8a0ded4102.js +1 -0
- package/assets/esri/core/workers/chunks/59598023c0aea62a6297.js +1 -0
- package/assets/esri/core/workers/chunks/5bf2ce280ea35ea4c96b.js +1 -0
- package/assets/esri/core/workers/chunks/5fd2aa0be03dfb494efa.js +1 -0
- package/assets/esri/core/workers/chunks/619aa1381296172ff47b.js +1 -0
- package/assets/esri/core/workers/chunks/62f37d1075390a177ae9.js +1 -0
- package/assets/esri/core/workers/chunks/{2baa16ec8559e77c226f.js → 64a1ffc221e5b63b43fb.js} +1 -1
- package/assets/esri/core/workers/chunks/65d1e338612e59063eba.js +1 -0
- package/assets/esri/core/workers/chunks/680dd7b7638465eb33de.js +1 -0
- package/assets/esri/core/workers/chunks/69b0dcd7bcd8ec42e2c3.js +1 -0
- package/assets/esri/core/workers/chunks/6c740c411b085d2d08c4.js +1 -0
- package/assets/esri/core/workers/chunks/6c982779d6d47ec99899.js +1 -0
- package/assets/esri/core/workers/chunks/6dddd3df31961b9fda12.js +1 -0
- package/assets/esri/core/workers/chunks/{1ca04ecf010e68863014.js → 6e45ecf359bce3417f5d.js} +1 -1
- package/assets/esri/core/workers/chunks/702b2381acf4d1f90094.js +1 -0
- package/assets/esri/core/workers/chunks/{a52c88e2d837b525ff6c.js → 71ee7c51d2c60a180f1e.js} +1 -1
- package/assets/esri/core/workers/chunks/{ad1d06a91121ebfe9162.js → 755b2d883fba90c4e688.js} +2 -2
- package/assets/esri/core/workers/chunks/75fc0b1db8e2e3fd2458.js +1 -0
- package/assets/esri/core/workers/chunks/{9e25f715cda59c686a4c.js → 792303e4090c0c70c4ff.js} +1 -1
- package/assets/esri/core/workers/chunks/79429c8be5da85713200.js +1 -0
- package/assets/esri/core/workers/chunks/7b470d6ad182548b9e95.js +1 -0
- package/assets/esri/core/workers/chunks/7d8eb4dbea1916320f74.js +1 -0
- package/assets/esri/core/workers/chunks/83e54166ba634ec2bd89.js +1717 -0
- package/assets/esri/core/workers/chunks/841c81c280114412c95b.js +1 -0
- package/assets/esri/core/workers/chunks/87eaed6fdabd482d142e.js +1 -0
- package/assets/esri/core/workers/chunks/88d5541679e77117bf03.js +1 -0
- package/assets/esri/core/workers/chunks/894ebc64b698e5d7604b.js +1 -0
- package/assets/esri/core/workers/chunks/8a36b999cbd65dd2f16c.js +1 -0
- package/assets/esri/core/workers/chunks/8ae3a6ddc87bf8315583.js +1 -0
- package/assets/esri/core/workers/chunks/{67f54586156d1ab80257.js → 8b980c6b92cc4ea68ede.js} +1 -1
- package/assets/esri/core/workers/chunks/8d9a7fa14489897780d3.js +1 -0
- package/assets/esri/core/workers/chunks/8e225dd0319672103561.js +1 -0
- package/assets/esri/core/workers/chunks/9199300ffd225a1bbef1.js +1 -0
- package/assets/esri/core/workers/chunks/94b9a61b4dbb83425a78.js +1 -0
- package/assets/esri/core/workers/chunks/98613fded899c59f34a4.js +1 -0
- package/assets/esri/core/workers/chunks/{9ca59077712e45ef4d56.js → 9c3e6325dc60bcaf44d7.js} +1 -1
- package/assets/esri/core/workers/chunks/9e1392a0c608a13ab036.js +1 -0
- package/assets/esri/core/workers/chunks/9e2e4d197a7a57c2a691.js +1 -0
- package/assets/esri/core/workers/chunks/{d03e7be74c57c3dbf003.js → a014c17fc210620da738.js} +2 -2
- package/assets/esri/core/workers/chunks/{8302bffd28cc6720e0fe.js → a19be304219808268039.js} +2 -2
- package/assets/esri/core/workers/chunks/{bd311c85437743cf7d2f.js → a4e4fa4dd1a122bbf7cd.js} +1 -1
- package/assets/esri/core/workers/chunks/a5240c8a47842138f31f.js +1 -0
- package/assets/esri/core/workers/chunks/a69c10bfd632a5546b34.js +1 -0
- package/assets/esri/core/workers/chunks/{b6d26d9738c0787acc38.js → a6a2a4a2bae0d327d7ed.js} +1 -1
- package/assets/esri/core/workers/chunks/a7727a2377470d586ff9.js +1 -0
- package/assets/esri/core/workers/chunks/a91c1d782346a9c7e1ef.js +1 -0
- package/assets/esri/core/workers/chunks/{6cd6d0cfd313f0475d98.js → ac59218847e5ef4c4160.js} +1 -1
- package/assets/esri/core/workers/chunks/ac87be2210f868524996.js +1 -0
- package/assets/esri/core/workers/chunks/aed16c3e26652960ad3f.js +1 -0
- package/assets/esri/core/workers/chunks/b084829a3fd709dc47a8.js +1 -0
- package/assets/esri/core/workers/chunks/{05f6887805d92da03122.js → b24fc7eeda580ef020d2.js} +1 -1
- package/assets/esri/core/workers/chunks/b37a20c5c4a4686257d4.js +1 -0
- package/assets/esri/core/workers/chunks/{a0a1f0bd3648738354a6.js → b4abf82b8ac974a55ae1.js} +1 -1
- package/assets/esri/core/workers/chunks/b950ddafba8125c84a5b.js +1 -0
- package/assets/esri/core/workers/chunks/b9d1bb106737a05290e1.js +1 -0
- package/assets/esri/core/workers/chunks/bab5f4b2424b487b87ac.js +1 -0
- package/assets/esri/core/workers/chunks/bad2c7219e95750906e1.js +1 -0
- package/assets/esri/core/workers/chunks/bbc6b270d2032189107c.js +1 -0
- package/assets/esri/core/workers/chunks/{faa55265020591fd2224.js → bc0395777c5c1adb1ddb.js} +1 -1
- package/assets/esri/core/workers/chunks/bc6e488f5fbd50f9f3d0.js +1 -0
- package/assets/esri/core/workers/chunks/bd7d87d175ba933ab2ce.js +1 -0
- package/assets/esri/core/workers/chunks/{859dd86c921053bf03a1.js → c17dda6fadb8bfad0d51.js} +1 -1
- package/assets/esri/core/workers/chunks/c1e5ffe9a251be5a0744.js +1 -0
- package/assets/esri/core/workers/chunks/{94368a097e6190ce3c7a.js → c37b28f200b704ae6002.js} +1 -1
- package/assets/esri/core/workers/chunks/ca6652c6304ad0e37e8f.js +1 -0
- package/assets/esri/core/workers/chunks/{762be5d3e6aeaea33f74.js → cef02ed3942c010da2e8.js} +1 -1
- package/assets/esri/core/workers/chunks/cff6390b863361eaeeed.js +1 -0
- package/assets/esri/core/workers/chunks/d2172583ee6e481a66aa.js +1 -0
- package/assets/esri/core/workers/chunks/d520d407043bc52e5410.js +1 -0
- package/assets/esri/core/workers/chunks/da0ef984509057ec8507.js +1 -0
- package/assets/esri/core/workers/chunks/dbdd96e558936955acdb.js +1 -0
- package/assets/esri/core/workers/chunks/ddd8f6154e265dbb6f9f.js +1 -0
- package/assets/esri/core/workers/chunks/de601f0d5a2a282d2efd.js +1 -0
- package/assets/esri/core/workers/chunks/de927b1460bc384f5b87.js +1 -0
- package/assets/esri/core/workers/chunks/de9a1cce70581920f248.js +1 -0
- package/assets/esri/core/workers/chunks/dff932682d6386a861ce.js +1 -0
- package/assets/esri/core/workers/chunks/{2c31648a4b95275516ee.js → e227eb44cd139fe2bc1b.js} +1 -1
- package/assets/esri/core/workers/chunks/e4e5a171a4874c5af4a4.js +1 -0
- package/assets/esri/core/workers/chunks/{fdca9873914b9dbd9244.js → e59101f1d060d0a30a65.js} +1 -1
- package/assets/esri/core/workers/chunks/{ddb92c815d17c67a45e6.js → e5d114f2b57d2b8e2f1c.js} +1 -1
- package/assets/esri/core/workers/chunks/e89e6eea380ca2c13b64.js +1 -0
- package/assets/esri/core/workers/chunks/e9d352d030dcad1619a6.js +1 -0
- package/assets/esri/core/workers/chunks/{3de6e54b6ed0feae1940.js → eae51e827f629ab37207.js} +1 -1
- package/assets/esri/core/workers/chunks/eee1fd629619021ea279.js +1 -0
- package/assets/esri/core/workers/chunks/ef47a5da641cb0d33fdf.js +1 -0
- package/assets/esri/core/workers/chunks/f35e749bb5be39880cbe.js +1 -0
- package/assets/esri/core/workers/chunks/{3dff36f6de181d9dcdc5.js → f40e4433e7608d0962a6.js} +1 -1
- package/assets/esri/core/workers/chunks/f4aa6e90200f61e623e5.js +1 -0
- package/assets/esri/core/workers/chunks/ff578f0ca68d652fece5.js +1 -0
- package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
- package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
- package/assets/esri/libs/text/pkg/bundle_bg.wasm +0 -0
- package/chunks/GaussianSplat.glsl.js +8 -8
- package/chunks/GaussianSplatShadow.glsl.js +4 -5
- package/chunks/HeatmapDensity.glsl.js +5 -5
- package/chunks/OccludedGeometryDepth.glsl.js +5 -0
- package/chunks/ShadowCastVisualize.glsl.js +2 -2
- package/chunks/bundle2.js +1 -1
- package/chunks/lyr3DMain.js +1 -1
- package/chunks/lyr3DWorker.js +1 -1
- package/config.js +1 -1
- package/core/importUtils.js +2 -0
- package/geometry/geometryEngine.js +1 -1
- package/geometry/operators/importUtils.js +2 -0
- package/geometry/support/centroid.js +1 -1
- package/geometry/support/curves/densifyCurvedGeometry.js +1 -1
- package/geometry/support/extentUtils.js +1 -1
- package/geometry/support/frustum.js +1 -1
- package/geometry/support/normalizeUtils.d.ts +17 -15
- package/geometry/support/normalizeUtils.js +1 -1
- package/kernel.js +1 -1
- package/layers/FeatureLayer.d.ts +1 -1
- package/layers/Lyr3DWasmPerSceneView.js +1 -1
- package/layers/graphics/data/QueryEngine.js +1 -1
- package/layers/graphics/data/QueryEngineResult.js +1 -1
- package/layers/graphics/data/projectionSupport.js +1 -1
- package/layers/graphics/data/queryUtils.js +1 -1
- package/layers/graphics/hydratedFeatures.js +1 -1
- package/layers/graphics/sources/support/sourceUtils.js +1 -1
- package/package.json +2 -2
- package/portal/schemas/definitions.js +1 -1
- package/rest/geoprocessor/utils.js +1 -1
- package/rest/identify.js +1 -1
- package/rest/imageService.js +1 -1
- package/rest/query/operations/query.js +1 -1
- package/rest/query/operations/queryAttributeBins.js +1 -1
- package/rest/query/operations/queryPivot.js +1 -1
- package/rest/query/operations/queryTopFeatures.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/CIMEffects.js +1 -1
- package/symbols/cim/animationUtils.js +1 -1
- package/symbols/cim/cimAnalyzer.js +1 -1
- package/symbols/cim/effects/EffectCircularSector.js +1 -1
- package/symbols/cim/utils.js +1 -1
- package/views/2d/engine/BitmapTile.js +1 -1
- package/views/2d/engine/flow/styles/Imagery.js +1 -1
- package/views/2d/engine/flow/styles/Particles.js +1 -1
- package/views/2d/engine/flow/styles/Streamlines.js +1 -1
- package/views/2d/engine/imagery/RasterTile.js +1 -1
- package/views/2d/engine/imagery/RasterVFTile.js +1 -1
- package/views/2d/engine/vectorTiles/SpriteMosaic.js +1 -1
- package/views/2d/engine/vectorTiles/TileHandler3D.js +1 -1
- package/views/2d/engine/vectorTiles/VTLPainter3D.js +1 -1
- package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
- package/views/2d/engine/vectorTiles/VectorTileRendererHelper3D.js +1 -1
- package/views/2d/engine/webgl/FeatureDisplayList.js +1 -1
- package/views/2d/engine/webgl/Painter.js +1 -1
- package/views/2d/engine/webgl/RenderingDevice.js +1 -1
- package/views/2d/engine/webgl/TileContainer.js +1 -1
- package/views/2d/engine/webgl/TiledDisplayObject.js +1 -1
- package/views/2d/engine/webgl/animations/infos.js +1 -1
- package/views/2d/engine/webgl/animations/instructions.js +1 -1
- package/views/2d/engine/webgl/normalizedTileUtils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/GraphShaderModule.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/graph/ShaderGraphContext.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AAnimatedShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedFillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedLineShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedMarkerShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/bitmap/BitmapTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/clip/ClipTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityPointShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/drop-shadow/DropShadowTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/featureTechniqueUtils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/ComplexFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/ComplexOutlineFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/FillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/GradientFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/OutlineFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternOutlineFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/flow/FlowTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/heatmap/HeatmapTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/line/GradientStrokeTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/line/LineTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/line/TexturedLineTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/overlay/OverlayTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/pieChart/PieChartShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/pieChart/PieChartTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/RasterColorizerTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/VectorFieldTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/AFeatureShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BitmapShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BlendShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ComplexFillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/FillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/GradientFillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/GradientStrokeShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/HeatmapAccumulateShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/LineShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/OutlineFillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/PatternFillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TexturedLineShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/Tile.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TileDebugInfoShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TileInfo.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TileStencilShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ViewInfo.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/hittestUtils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/BaseRasterColorizerShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/MagDirShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/ScalarShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderBackground.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderCircle.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderFill.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderIcon.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderLine.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderOutline.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderText.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/tile/TileDebugInfoTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/tile/TileStencilTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/utility/DebugOverlayTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueBackground.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueCircle.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueFill.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueLine.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueSymbol.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/typed/TypedShaderProgram.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/types.js +2 -0
- package/views/2d/engine/webgl/shaderGraph/uniformBufferUtils.js +2 -0
- package/views/2d/layers/MediaLayerView2D.js +1 -1
- package/views/2d/layers/TileLayerView2D.js +1 -1
- package/views/2d/layers/support/DisplayGL.js +1 -1
- package/views/2d/layers/support/RouteLayerInteraction.js +1 -1
- package/views/2d/viewpointUtils.js +1 -1
- package/views/3d/environment/EnvironmentManager.js +1 -1
- package/views/3d/interactive/Manipulator3D.js +1 -1
- package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
- package/views/3d/interactive/manipulatorUtils.js +1 -1
- package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/VerticesVisualElement.js +1 -1
- package/views/3d/layers/MediaLayerView3D.js +1 -1
- package/views/3d/layers/VectorTileLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
- package/views/3d/layers/support/HeatmapFeatureProcessor.js +1 -1
- package/views/3d/support/GaussianSplatSortWorker.js +1 -1
- package/views/3d/support/GaussianSplatWorkerHandle.js +1 -1
- package/views/3d/support/flow/geometryUtils.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
- package/views/3d/support/hitTest.js +1 -1
- package/views/3d/support/renderInfoUtils/line.js +1 -1
- package/views/3d/support/renderInfoUtils/polygon.js +1 -1
- package/views/3d/terrain/DrapedZ.js +2 -0
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/terrain/TileCompositor.js +1 -1
- package/views/3d/webgl/RenderCamera.js +1 -1
- package/views/3d/webgl/RenderNode.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/TextureBackedBuffer.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/TextureBackedBufferFields.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/util/GaussianSplatCovariance.glsl.js +8 -3
- package/views/3d/webgl-engine/core/shaderLibrary/util/GaussianSplatEvaluation.glsl.js +8 -2
- package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowAccumulator.js +2 -0
- package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastAccumulate.glsl.js +2 -0
- package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastAccumulateTechnique.js +2 -0
- package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastAccumulateTechniqueConfiguration.js +2 -0
- package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastClear.glsl.js +2 -0
- package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastClearTechnique.js +2 -0
- package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastMaskTechnique.js +2 -0
- package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastRenderer.js +2 -0
- package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastVisualize.glsl.js +2 -0
- package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastVisualizeTechnique.js +2 -0
- package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastVisualizeTechniqueConfiguration.js +2 -0
- package/views/3d/webgl-engine/lib/CutFillVisualization.js +1 -1
- package/views/3d/webgl-engine/lib/PositionReader.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBackedBuffer.js +1 -1
- package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBackedBufferFields.js +1 -1
- package/views/3d/webgl-engine/lib/screenPolygonOverlapUtils.js +1 -1
- package/views/3d/webgl-engine/materials/HeatmapDensityMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/internal/bufferWriterUtils.js +1 -1
- package/views/3d/webgl-engine/parts/RenderView.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterialTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/GaussianSplatPass.glsl.js +28 -21
- package/views/3d/webgl-engine/shaders/HeatmapDensity.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/HeatmapDensityTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/OccludedGeometryDepth.glsl.js +2 -0
- package/views/3d/webgl-engine/shaders/OccludedGeometryDepthTechnique.js +2 -0
- package/views/VideoView.js +1 -1
- package/views/selection/SelectionOperation.js +1 -1
- package/views/webgl/RenderingContext.js +1 -1
- package/views/webgl/UniformBufferLayout.js +1 -1
- package/views/webgl/UniformBufferObject.js +1 -1
- package/widgets/BatchAttributeForm/inputs/FieldInput.d.ts +20 -6
- package/widgets/BatchAttributeForm/inputs/FieldInput.js +1 -1
- package/widgets/BatchAttributeForm/inputs/support/MultipleChoiceController.d.ts +100 -0
- package/widgets/BatchAttributeForm/inputs/support/MultipleChoiceController.js +2 -0
- package/widgets/BatchAttributeForm/inputs/support/createBatchFormInputs.js +1 -1
- package/widgets/BatchAttributeForm/inputs/support/multipleChoiceInputUtils.js +1 -1
- package/widgets/BatchAttributeForm.js +1 -1
- package/widgets/Feature/FeatureRelationship/FeatureRelationshipViewModel.js +1 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.js +1 -1
- package/widgets/UtilityNetworkTrace/support/GeometryHandler.js +1 -1
- package/widgets/UtilityNetworkTrace/support/ResultAreaHandler.js +1 -1
- package/widgets/support/SelectionList/GroupLayerItem.d.ts +8 -1
- package/widgets/support/SelectionList/GroupLayerItem.js +1 -1
- package/widgets/support/SelectionList/LayerItem.d.ts +8 -1
- package/widgets/support/SelectionList/LayerItem.js +1 -1
- package/widgets/support/SelectionList/SelectionListViewModel.d.ts +29 -1
- package/widgets/support/SelectionList/SelectionListViewModel.js +1 -1
- package/widgets/support/SelectionList.js +1 -1
- package/widgets/support/SelectionToolbar.js +1 -1
- package/assets/esri/core/workers/chunks/01c92e68fb17cf2d0e08.js +0 -1
- package/assets/esri/core/workers/chunks/02dd79beb13eff6be85e.js +0 -1
- package/assets/esri/core/workers/chunks/0823961e5d0bdedbf8cf.js +0 -2
- package/assets/esri/core/workers/chunks/0aedeb837399d3f92e4a.js +0 -1
- package/assets/esri/core/workers/chunks/0bf644f93c180a2bc2f8.js +0 -705
- package/assets/esri/core/workers/chunks/0dbf31a663b5220a3136.js +0 -1
- package/assets/esri/core/workers/chunks/0df660dfd941cff3ea1d.js +0 -1
- package/assets/esri/core/workers/chunks/1119a33245138e7b3914.js +0 -1
- package/assets/esri/core/workers/chunks/1418c03c4ab87f7ab5f4.js +0 -1
- package/assets/esri/core/workers/chunks/160b204cbf5bda2a29e9.js +0 -1
- package/assets/esri/core/workers/chunks/193aed69de2dec4f36b6.js +0 -1
- package/assets/esri/core/workers/chunks/1cc063aa2ddf44bbd515.js +0 -1
- package/assets/esri/core/workers/chunks/264fd750691d517ab1f3.js +0 -1
- package/assets/esri/core/workers/chunks/2791f3fe16ca5ee2f39a.js +0 -1
- package/assets/esri/core/workers/chunks/2a2ed7bd44010f24c2dd.js +0 -1
- package/assets/esri/core/workers/chunks/2bdb9b5365869081c936.js +0 -1
- package/assets/esri/core/workers/chunks/2d45daacec0d5ed38782.js +0 -1
- package/assets/esri/core/workers/chunks/2e44978ee677aa23163d.js +0 -256
- package/assets/esri/core/workers/chunks/2ea3ca68cfa4d34e8f3b.js +0 -1
- package/assets/esri/core/workers/chunks/2f81047790c4890ae625.js +0 -1
- package/assets/esri/core/workers/chunks/32f5112c848efec6c33b.js +0 -1
- package/assets/esri/core/workers/chunks/35fd2f765d2cb3f59a22.js +0 -1462
- package/assets/esri/core/workers/chunks/3bc2943035391b44d4cf.js +0 -29
- package/assets/esri/core/workers/chunks/3d6b2d5ae647e140abaf.js +0 -1
- package/assets/esri/core/workers/chunks/44e8cd4b3dad777ab0c9.js +0 -1
- package/assets/esri/core/workers/chunks/45ccca01db0027b9dc16.js +0 -1
- package/assets/esri/core/workers/chunks/4710f21b138a2c9a0345.js +0 -1
- package/assets/esri/core/workers/chunks/4abd54518e35050feb90.js +0 -1
- package/assets/esri/core/workers/chunks/4b5bd0c9a55ea2998601.js +0 -1
- package/assets/esri/core/workers/chunks/4c2794687aea172775a0.js +0 -1
- package/assets/esri/core/workers/chunks/4cf2b0558a4acc141429.js +0 -1
- package/assets/esri/core/workers/chunks/4d9bde9f66817a92ceca.js +0 -1
- package/assets/esri/core/workers/chunks/4e129b9f5772a06e580c.js +0 -1
- package/assets/esri/core/workers/chunks/509aecafbc629bee1c15.js +0 -1
- package/assets/esri/core/workers/chunks/5441f96cdd0660229efe.js +0 -1
- package/assets/esri/core/workers/chunks/553be2bd69bd311477ea.js +0 -1
- package/assets/esri/core/workers/chunks/5600fc334d20c4f0c83d.js +0 -1
- package/assets/esri/core/workers/chunks/56bbde1dff96b423fbb9.js +0 -1
- package/assets/esri/core/workers/chunks/5bf4ab72b9634b06cc5d.js +0 -1
- package/assets/esri/core/workers/chunks/5e3d5347223f0111f40f.js +0 -1
- package/assets/esri/core/workers/chunks/613e799377bdb767c955.js +0 -1
- package/assets/esri/core/workers/chunks/623d5518bca227f643bd.js +0 -1
- package/assets/esri/core/workers/chunks/62811bca7ad2100c023c.js +0 -1
- package/assets/esri/core/workers/chunks/64176f7ae719289a2f79.js +0 -1
- package/assets/esri/core/workers/chunks/6f58cb9dffe8016397a2.js +0 -1
- package/assets/esri/core/workers/chunks/73f77f5a6907cb8d9a35.js +0 -1
- package/assets/esri/core/workers/chunks/76b573143d1a65fdbcb6.js +0 -1
- package/assets/esri/core/workers/chunks/7aaa051b51a8e34bbfb0.js +0 -1
- package/assets/esri/core/workers/chunks/7b5b66ae79e0287e3ade.js +0 -1
- package/assets/esri/core/workers/chunks/7e373d9c98ce910db9d2.js +0 -1
- package/assets/esri/core/workers/chunks/7f91e45156bbe88f9a62.js +0 -1
- package/assets/esri/core/workers/chunks/86a4057572755b403548.js +0 -1
- package/assets/esri/core/workers/chunks/877594b6db08da98acd7.js +0 -1
- package/assets/esri/core/workers/chunks/8a48a6760c33ed50b650.js +0 -1
- package/assets/esri/core/workers/chunks/8d21e2dabc5165f1c8ca.js +0 -1
- package/assets/esri/core/workers/chunks/903e1cd8b76eff19ebdf.js +0 -1
- package/assets/esri/core/workers/chunks/917c11cb40a7742d7f98.js +0 -1
- package/assets/esri/core/workers/chunks/91d133c04ca764d74934.js +0 -1
- package/assets/esri/core/workers/chunks/92c4464b67fce6cea134.js +0 -1
- package/assets/esri/core/workers/chunks/947f1ea4dbc3e3419ecc.js +0 -1
- package/assets/esri/core/workers/chunks/9482a6d7baa24bbf5693.js +0 -1
- package/assets/esri/core/workers/chunks/96cec8a02ca96175d602.js +0 -1
- package/assets/esri/core/workers/chunks/98e6c1d035755a074d24.js +0 -1
- package/assets/esri/core/workers/chunks/9902fcd2070c8eb6d043.js +0 -1
- package/assets/esri/core/workers/chunks/9b76c8974424a1908e86.js +0 -1
- package/assets/esri/core/workers/chunks/9be6827e5756031a56c1.js +0 -1
- package/assets/esri/core/workers/chunks/a101152066dd56259619.js +0 -1
- package/assets/esri/core/workers/chunks/a27cdf4c29dd50a6dab1.js +0 -1
- package/assets/esri/core/workers/chunks/a294dd12b5c708ce04af.js +0 -1
- package/assets/esri/core/workers/chunks/a2a2c7e274fb32fecffa.js +0 -1
- package/assets/esri/core/workers/chunks/a3bf8aa81ee398da5b52.js +0 -1
- package/assets/esri/core/workers/chunks/a9053ad0f4e8c4705665.js +0 -1
- package/assets/esri/core/workers/chunks/afeeb11b39e140303b5a.js +0 -1
- package/assets/esri/core/workers/chunks/b1a175b3b2d1a7ddde8e.js +0 -1
- package/assets/esri/core/workers/chunks/b33d870cbfa238762c5e.js +0 -1
- package/assets/esri/core/workers/chunks/b3b53cf0a3a30164d337.js +0 -1
- package/assets/esri/core/workers/chunks/b599b7dadce8b8bc88f6.js +0 -1
- package/assets/esri/core/workers/chunks/b858adff7043683fe41c.js +0 -1
- package/assets/esri/core/workers/chunks/b984b808d383974ca3d8.js +0 -1
- package/assets/esri/core/workers/chunks/be1d2c3a61e6447fbbc7.js +0 -1
- package/assets/esri/core/workers/chunks/bff75cc7413bf0d319db.js +0 -1
- package/assets/esri/core/workers/chunks/c02ae1d40c1fe95ae6c5.js +0 -1
- package/assets/esri/core/workers/chunks/c1189316d24fb4cdb2a0.js +0 -1
- package/assets/esri/core/workers/chunks/c1a4d499a30f3d80567b.js +0 -1
- package/assets/esri/core/workers/chunks/c25dc9073e73d6b44d88.js +0 -1
- package/assets/esri/core/workers/chunks/c45a5bcf26659daf02a1.js +0 -1
- package/assets/esri/core/workers/chunks/c46f79d5b7712adbbd1c.js +0 -1
- package/assets/esri/core/workers/chunks/c53b2be005721591e29b.js +0 -1
- package/assets/esri/core/workers/chunks/c82ab4f0908290e70ee9.js +0 -1
- package/assets/esri/core/workers/chunks/c866b66ba72d96453899.js +0 -1
- package/assets/esri/core/workers/chunks/c873383e7dae35dc1a61.js +0 -1
- package/assets/esri/core/workers/chunks/cc5ec6e99aa09342c704.js +0 -1
- package/assets/esri/core/workers/chunks/cd892c9603710d6130a9.js +0 -1
- package/assets/esri/core/workers/chunks/cf360767310fb45660a8.js +0 -1
- package/assets/esri/core/workers/chunks/d021775cf747556660a5.js +0 -1
- package/assets/esri/core/workers/chunks/d08f81d545930a79fb2e.js +0 -1
- package/assets/esri/core/workers/chunks/d607cf154218d20e4114.js +0 -1
- package/assets/esri/core/workers/chunks/d79ce047afbc034f6008.js +0 -1
- package/assets/esri/core/workers/chunks/da6134c7883531f21afe.js +0 -1
- package/assets/esri/core/workers/chunks/dbc9249dae41096d750d.js +0 -1
- package/assets/esri/core/workers/chunks/e4a2eefffe16cd5bb20f.js +0 -1
- package/assets/esri/core/workers/chunks/e602b91d8fdc36a92530.js +0 -1
- package/assets/esri/core/workers/chunks/ebfb3cdc0df15eb05d75.js +0 -1
- package/assets/esri/core/workers/chunks/ec1841e6e498d54012eb.js +0 -1
- package/assets/esri/core/workers/chunks/ed1de8b7406269e217b9.js +0 -29
- package/assets/esri/core/workers/chunks/f1727b4a32cb6f36a5e6.js +0 -1
- package/assets/esri/core/workers/chunks/f2ab8e49c7f17f488aa8.js +0 -1
- package/assets/esri/core/workers/chunks/f721756a6c1593f96409.js +0 -1
- package/assets/esri/core/workers/chunks/fb51f823b25c827c6b29.js +0 -1
- package/chunks/geometryEngineBase.js +0 -2
- package/geometry/geometryAdapters/json.js +0 -2
- package/geometry/geometryEngineJSON.js +0 -2
- package/views/3d/webgl-engine/lib/ShadowAccumulator.js +0 -2
- package/views/3d/webgl-engine/lib/ShadowCastRenderer.js +0 -2
- package/views/3d/webgl-engine/shaders/ShadowCastAccumulate.glsl.js +0 -2
- package/views/3d/webgl-engine/shaders/ShadowCastAccumulateTechnique.js +0 -2
- package/views/3d/webgl-engine/shaders/ShadowCastAccumulateTechniqueConfiguration.js +0 -2
- package/views/3d/webgl-engine/shaders/ShadowCastClear.glsl.js +0 -2
- package/views/3d/webgl-engine/shaders/ShadowCastClearTechnique.js +0 -2
- package/views/3d/webgl-engine/shaders/ShadowCastMaskTechnique.js +0 -2
- package/views/3d/webgl-engine/shaders/ShadowCastVisualize.glsl.js +0 -2
- package/views/3d/webgl-engine/shaders/ShadowCastVisualizeTechnique.js +0 -2
- package/views/3d/webgl-engine/shaders/ShadowCastVisualizeTechniqueConfiguration.js +0 -2
- /package/assets/esri/core/workers/chunks/{0823961e5d0bdedbf8cf.js.LICENSE.txt → 4f8ce5887102971bfa34.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{186bedc377cc97731ca2.js.LICENSE.txt → 532e3a59888e4cc13bd3.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{ad1d06a91121ebfe9162.js.LICENSE.txt → 755b2d883fba90c4e688.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{d03e7be74c57c3dbf003.js.LICENSE.txt → a014c17fc210620da738.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{8302bffd28cc6720e0fe.js.LICENSE.txt → a19be304219808268039.js.LICENSE.txt} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7379],{11006(t,e,s){function i(t,e,s,i,r){n(t,e,s||0,i||t.length-1,r||o)}function n(t,e,s,i,o){for(;i>s;){if(i-s>600){var h=i-s+1,a=e-s+1,l=Math.log(h),u=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*u*(h-u)/h)*(a-h/2<0?-1:1);n(t,e,Math.max(s,Math.floor(e-a*u/h+c)),Math.min(i,Math.floor(e+(h-a)*u/h+c)),o)}var f=t[e],y=s,_=i;for(r(t,s,e),o(t[i],f)>0&&r(t,s,i);y<_;){for(r(t,y,_),y++,_--;o(t[y],f)<0;)y++;for(;o(t[_],f)>0;)_--}0===o(t[s],f)?r(t,s,_):r(t,++_,i),_<=e&&(s=_+1),e<=_&&(i=_-1)}}function r(t,e,s){var i=t[e];t[e]=t[s],t[s]=i}function o(t,e){return t<e?-1:t>e?1:0}s.d(e,{q:()=>i})},69540(t,e,s){var i=s(5482),n=s(69622),r=(s(44208),s(4718)),o=(s(53966),s(97768)),h=s(88620),a=s(64108);const l=Symbol("ClonableMixin"),u=t=>{var e;const s=t;let n=class extends s{constructor(){super(...arguments),this[e]=!0}static{e=l}clone(t){const e=(0,h.oY)(this);(0,o.Lw)(e,"unable to clone instance of non-accessor class");const s=e.metadata,i=e.store,n={},a=new Map;for(const e in s){const o=s[e],h=i?.originOf(e),l=o.clonable;if(o.readOnly||!1===l||7!==h&&0!==h&&5!==h&&4!==h)continue;const u=this[e];let c=null;if("function"==typeof l)c=l(u,t);else if("reference"===l)c=u;else if(c=(0,r.TU)(u,t),null!=u&&null==c)continue;0===h?a.set(e,c):n[e]=c}const l=new(0,Object.getPrototypeOf(this).constructor)(n);if(a.size){const t=(0,h.oY)(l)?.store;if(t)for(const[e,s]of a)t.set(e,s,0)}return l}};return n=(0,i.Cg)([(0,a.$)("esri.core.Clonable")],n),n},c=u(n.A);s.d(e,["OU",0,u,"Pw",0,c])},67482(t,e,s){function i(t){return null!==n(t)}function n(t){return function(t){const e=r.exec(t);if(!e?.groups)return null;const s=e.groups,i=+s.year,n=+s.month-1,o=+s.day,h=+(s.hours??"0"),a=+(s.minutes??"0"),l=+(s.seconds??"0");if(h>23)return null;if(a>59)return null;if(l>59)return null;const u=s.ms??"0",c=u?+u.padEnd(3,"0").slice(0,3):0;let f;if(s.isUTC||!s.offsetSign)f=Date.UTC(i,n,o,h,a,l,c);else{const t=+s.offsetHours,e=+s.offsetMinutes;f=6e4*("+"===s.offsetSign?-1:1)*(60*t+e)+Date.UTC(i,n,o,h,a,l,c)}return Number.isNaN(f)?null:f}(t)??function(t){const e=new Date(t),s=e.getTime();return Number.isNaN(s)?null:t.toLowerCase()===e.toUTCString().toLowerCase()?s:null}(t)??function(t){if(!o.test(t))return null;const e=new Date(t);return Number.isNaN(e.getTime())?null:e.getTime()-6e4*e.getTimezoneOffset()}(t)}s.d(e,{C:()=>i,_:()=>n});const r=/^(?:(?<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},75503(t,e,s){s.d(e,{wq:()=>h});var i=s(4576),n=s(21818),r=(s(44208),s(15142)),o=s(11006);class h{constructor(t=9,e){this._compareMinX=f,this._compareMinY=y,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&("function"==typeof e?this._toBBox=e:this._initFormat(e)),this.clear()}destroy(){this.clear(),M.prune(),b.prune(),v.prune(),I.prune()}all(t){a(this._data,t)}search(t,e){let s=this._data;const i=this._toBBox;if(g(t,s))for(M.clear();s;){for(let n=0,r=s.children.length;n<r;n++){const r=s.children[n],o=s.leaf?i(r):r;g(t,o)&&(s.leaf?e(r):x(t,o)?a(r,e):M.push(r))}s=M.pop()}}collides(t){let e=this._data;const s=this._toBBox;if(!g(t,e))return!1;for(M.clear();e;){for(let i=0,n=e.children.length;i<n;i++){const n=e.children[i],r=e.leaf?s(n):n;if(g(t,r)){if(e.leaf||x(t,r))return!0;M.push(n)}}e=M.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let e=0,s=t.length;e<s;e++)this.insert(t[e]);return this}let e=this._build(t.slice(),0,t.length-1,0);if(this._data.children.length)if(this._data.height===e.height)this._splitRoot(this._data,e);else{if(this._data.height<e.height){const t=this._data;this._data=e,e=t}this._insert(e,this._data.height-e.height-1,!0)}else this._data=e;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new P([]),this}remove(t){if(!t)return this;let e,s=this._data,r=null,o=0,h=!1;const a=this._toBBox(t);for(v.clear(),I.clear();s||v.length>0;){if(s||(s=v.pop(),r=v.data[v.length-1],o=I.pop()??0,h=!0),s.leaf&&(e=(0,i.qh)(s.children,(0,n.z)(t),s.children.length,s.indexHint),-1!==e))return s.children.splice(e,1),v.push(s),this._condense(v),this;h||s.leaf||!x(s,a)?r?(o++,s=r.children[o],h=!1):s=null:(v.push(s),I.push(o),o=0,r=s,s=s.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_build(t,e,s,i){const n=s-e+1;let r=this._maxEntries;if(n<=r){const i=new P(t.slice(e,s+1));return l(i,this._toBBox),i}i||(i=Math.ceil(Math.log(n)/Math.log(r)),r=Math.ceil(n/r**(i-1)));const o=new A([]);o.height=i;const h=Math.ceil(n/r),a=h*Math.ceil(Math.sqrt(r));w(t,e,s,a,this._compareMinX);for(let n=e;n<=s;n+=a){const e=Math.min(n+a-1,s);w(t,n,e,h,this._compareMinY);for(let s=n;s<=e;s+=h){const n=Math.min(s+h-1,e);o.children.push(this._build(t,s,n,i-1))}}return l(o,this._toBBox),o}_insert(t,e,s){const i=this._toBBox,n=s?t:i(t);v.clear();const r=function(t,e,s,i){for(;i.push(e),!0!==e.leaf&&i.length-1!==s;){let s,i=1/0,n=1/0;for(let r=0,o=e.children.length;r<o;r++){const o=e.children[r],h=_(o),a=m(t,o)-h;a<n?(n=a,i=h<i?h:i,s=o):a===n&&h<i&&(i=h,s=o)}e=s||e.children[0]}return e}(n,this._data,e,v);for(r.children.push(t),c(r,n);e>=0&&v.data[e].children.length>this._maxEntries;)this._split(v,e),e--;!function(t,e,s){for(let i=s;i>=0;i--)c(e.data[i],t)}(n,v,e)}_split(t,e){const s=t.data[e],i=s.children.length,n=this._minEntries;this._chooseSplitAxis(s,n,i);const r=this._chooseSplitIndex(s,n,i);if(!r)return;const o=s.children.splice(r,s.children.length-r),h=s.leaf?new P(o):new A(o);h.height=s.height,l(s,this._toBBox),l(h,this._toBBox),e?t.data[e-1].children.push(h):this._splitRoot(s,h)}_splitRoot(t,e){this._data=new A([t,e]),this._data.height=t.height+1,l(this._data,this._toBBox)}_chooseSplitIndex(t,e,s){let i,n,r;i=n=1/0;for(let o=e;o<=s-e;o++){const e=u(t,0,o,this._toBBox),h=u(t,o,s,this._toBBox),a=p(e,h),l=_(e)+_(h);a<i?(i=a,r=o,n=l<n?l:n):a===i&&l<n&&(n=l,r=o)}return r}_chooseSplitAxis(t,e,s){const i=t.leaf?this._compareMinX:f,n=t.leaf?this._compareMinY:y;this._allDistMargin(t,e,s,i)<this._allDistMargin(t,e,s,n)&&t.children.sort(i)}_allDistMargin(t,e,s,i){t.children.sort(i);const n=this._toBBox,r=u(t,0,e,n),o=u(t,s-e,s,n);let h=d(r)+d(o);for(let i=e;i<s-e;i++){const e=t.children[i];c(r,t.leaf?n(e):e),h+=d(r)}for(let i=s-e-1;i>=e;i--){const e=t.children[i];c(o,t.leaf?n(e):e),h+=d(o)}return h}_condense(t){for(let e=t.length-1;e>=0;e--){const s=t.data[e];if(0===s.children.length)if(e>0){const n=t.data[e-1],r=n.children;r.splice((0,i.qh)(r,s,r.length,n.indexHint),1)}else this.clear();else l(s,this._toBBox)}}_initFormat(t){const e=["return a"," - b",";"];this._compareMinX=new Function("a","b",e.join(t[0])),this._compareMinY=new Function("a","b",e.join(t[1])),this._toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function a(t,e){let s=t;for(b.clear();s;){if(!0===s.leaf)for(const t of s.children)e((0,n.z)(t));else b.pushArray(s.children);s=b.pop()??null}}function l(t,e){u(t,0,t.children.length,e,t)}function u(t,e,s,i,n){n||(n=new P([])),n.minX=1/0,n.minY=1/0,n.maxX=-1/0,n.maxY=-1/0;for(let r,o=e;o<s;o++)r=t.children[o],c(n,t.leaf?i(r):r);return n}function c(t,e){t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY)}function f(t,e){return t.minX-e.minX}function y(t,e){return t.minY-e.minY}function _(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function d(t){return t.maxX-t.minX+(t.maxY-t.minY)}function m(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function p(t,e){const s=Math.max(t.minX,e.minX),i=Math.max(t.minY,e.minY),n=Math.min(t.maxX,e.maxX),r=Math.min(t.maxY,e.maxY);return Math.max(0,n-s)*Math.max(0,r-i)}function x(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function g(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function w(t,e,s,i,n){const r=[e,s];for(;r.length;){const e=r.pop(),s=r.pop();if(e-s<=i)continue;const h=s+Math.ceil((e-s)/i/2)*i;(0,o.q)(t,h,s,e,n),r.push(s,h,h,e)}}const M=new r.A,b=new r.A,v=new r.A,I=new r.A({deallocator:void 0});class T{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class B extends T{constructor(){super(...arguments),this.height=1,this.indexHint=new i.vW}}class P extends B{constructor(t){super(),this.children=t,this.leaf=!0}}class A extends B{constructor(t){super(),this.children=t,this.leaf=!1}}},69397(t,e,s){s.d(e,{Qf:()=>h,Qh:()=>r,lM:()=>n});var i=s(34275);function n(t){if(!t)return 0;let e=l;for(const s in t)t.hasOwnProperty(s)&&(e+=o(t[s],!1));return e}function r(t){if(!t)return 0;if("number"==typeof t[0])return h(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return a(t,8);let s=u;for(let i=0;i<e;i++)s+=o(t[i]);return s}(t);let e=l;for(const s in t)t.hasOwnProperty(s)&&(e+=o(t[s]));return e}function o(t,e=!0){switch(typeof t){case"object":return e?r(t):l;case"string":return function(t){return 32+t.length}(t);case"number":return 16;case"boolean":return 4;default:return 8}}function h(...t){return t.reduce((t,e)=>t+(e?(0,i.iu)(e)?e.byteLength+c:Array.isArray(e)?a(e,16):0:0),0)}function a(t,e){return u+t.length*e}const l=32,u=16,c=145},48526(t,e,s){s.d(e,{A:()=>m});var i,n=s(5482),r=s(4576),o=s(4718),h=s(91429),a=s(5443),l=s(91075),u=s(86738),c=s(16930),f=s(90634),y=s(47610),_=s(56993),d=s(43937);let m=i=class extends l.A{constructor(t){super(function(t){if(!t)return;let{points:e,hasM:s,hasZ:i,spatialReference:n}=t;switch(e??=[],e?.at(0)?.length){case 4:i??=!0,s??=!0;break;case 3:i??=!0!==s,s??=!i;break;default:i??=!1,s??=!1}return n??=c.A.WGS84,{...t,hasM:s,hasZ:i,points:e,spatialReference:n}}(t)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const t=(0,f.ge)(this);return t?new a.A({...t,spatialReference:this.spatialReference}):null}writePoints(t,e){e.points=(0,o.o8)(this.points)}clone(){const{points:t,spatialReference:e,hasM:s,hasZ:n}=this;return new i({points:(0,o.o8)(t),spatialReference:e.clone(),hasM:s,hasZ:n})}equals(t){if(this===t)return!0;if(null==t)return!1;const e=this.spatialReference,s=t.spatialReference;return null!=e==(null!=s)&&!(null!=e&&null!=s&&!e.equals(s))&&(0,r.aI)(this.points,t.points,y.v6)}addPoint(t){return(0,_.h)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}getPoint(t){if(!this._validateInputs(t))return null;const e=this.points[t],s={x:e[0],y:e[1],spatialReference:this.spatialReference};let i=2;return this.hasZ&&(s.z=e[2],i=3),this.hasM&&(s.m=e[i]),new u.A(s)}removePoint(t){if(!this._validateInputs(t))return null;const e=new u.A(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),e}setPoint(t,e){return this._validateInputs(t)?((0,_.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.points[t]=e,this.notifyChange("points"),this):this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,n.Cg)([(0,h.MZ)({readOnly:!0})],m.prototype,"cache",null),(0,n.Cg)([(0,h.MZ)({readOnly:!0})],m.prototype,"extent",null),(0,n.Cg)([(0,h.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],m.prototype,"points",void 0),(0,n.Cg)([(0,d.K)("points")],m.prototype,"writePoints",null),m=i=(0,n.Cg)([(0,h.$K)("esri.geometry.Multipoint")],m),m.prototype.toJSON.isDefaultToJSON=!0},82799(t,e,s){s.d(e,{A:()=>_});var i,n=s(5482),r=s(4718),o=s(91429),h=s(5443),a=s(91075),l=s(86738),u=s(16930),c=s(90634),f=s(56993),y=s(43937);let _=i=class extends a.A{constructor(t){super(function(t){if(!t)return;let{paths:e,hasM:s,hasZ:i,spatialReference:n}=t;switch(e??=[],function(t){return"number"==typeof t[0]?.[0]}(e)&&(e=[e]),e[0]?.[0]?.length){case 4:i??=!0,s??=!0;break;case 3:i??=!0!==s,s??=!i;break;default:i??=!1,s??=!1}return n??=u.A.WGS84,{...t,hasM:s,hasZ:i,paths:e,spatialReference:n}}(t)),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(t,e){e.curvePaths=(0,r.o8)(t)}get extent(){const t=(0,c.Z3)(this),{spatialReference:e}=this;return t?new h.A({...t,spatialReference:e}):null}writePaths(t,e){e.paths=(0,r.o8)(this.paths)}addPath(t){if(!t)return;const e=this.paths,s=e.length;if(function(t){return!Array.isArray(t[0])}(t)){const i=[];for(let e=0,s=t.length;e<s;e++)i[e]=t[e].toArray();e[s]=i}else e[s]=t.slice();return this.notifyChange("paths"),this}clone(){const t=new i;return t.spatialReference=this.spatialReference,t.paths=(0,r.o8)(this.paths),t.curvePaths=(0,r.o8)(this.curvePaths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,e){if(!this._validateInputs(t,e))return null;const s=this.paths[t][e],i=this.hasZ,n=this.hasM;return i&&!n?new l.A(s[0],s[1],s[2],void 0,this.spatialReference):n&&!i?new l.A(s[0],s[1],void 0,s[2],this.spatialReference):i&&n?new l.A(s[0],s[1],s[2],s[3],this.spatialReference):new l.A(s[0],s[1],this.spatialReference)}insertPoint(t,e,s){return this._validateInputs(t,e,!0)?((0,f.h)(this,s),Array.isArray(s)||(s=s.toArray()),this.paths[t].splice(e,0,s),this.notifyChange("paths"),this):this}removePath(t){if(!this._validateInputs(t,null))return null;const e=this.paths.splice(t,1)[0],s=this.spatialReference,i=e.map(t=>new l.A(t,s));return this.notifyChange("paths"),i}removePoint(t,e){if(!this._validateInputs(t,e))return null;const s=new l.A(this.paths[t].splice(e,1)[0],this.spatialReference);return this.notifyChange("paths"),s}setPoint(t,e,s){return this._validateInputs(t,e)?((0,f.h)(this,s),Array.isArray(s)||(s=s.toArray()),this.paths[t][e]=s,this.notifyChange("paths"),this):this}_validateInputs(t,e,s=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=e){const i=this.paths[t];if(s&&(e<0||e>i.length))return!1;if(!s&&(e<0||e>=i.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,n.Cg)([(0,o.MZ)({readOnly:!0})],_.prototype,"cache",null),(0,n.Cg)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],_.prototype,"curvePaths",void 0),(0,n.Cg)([(0,y.K)("curvePaths")],_.prototype,"writeCurvePaths",null),(0,n.Cg)([(0,o.MZ)({readOnly:!0})],_.prototype,"extent",null),(0,n.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],_.prototype,"paths",void 0),(0,n.Cg)([(0,y.K)("paths")],_.prototype,"writePaths",null),_=i=(0,n.Cg)([(0,o.$K)("esri.geometry.Polyline")],_),_.prototype.toJSON.isDefaultToJSON=!0},6774(t,e,s){s.d(e,{O3:()=>r,Ox:()=>o,bR:()=>i});class i{constructor(t,e){this.x=t,this.y=e}static fromArray(t){return new i(t[0],t[1])}clone(){return new i(this.x,this.y)}equals(t,e){return t===this.x&&e===this.y}isEqual(t){return t.x===this.x&&t.y===this.y}setCoords(t,e){return this.x=t,this.y=e,this}normalize(){const t=this.x,e=this.y,s=Math.sqrt(t*t+e*e);return this.x/=s,this.y/=s,this}rightPerpendicular(){const t=this.x;return this.x=this.y,this.y=-t,this}leftPerpendicular(){const t=this.x;return this.x=-this.y,this.y=t,this}move(t,e){return this.x+=t,this.y+=e,this}assign(t){return this.x=t.x,this.y=t.y,this}assignAdd(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this}assignSub(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this}rotate(t,e){const s=this.x,i=this.y;return this.x=s*t-i*e,this.y=s*e+i*t,this}rotateReverse(t,e){const s=this.x,i=this.y;return this.x=s*t+i*e,this.y=-s*e+i*t,this}scale(t){return this.x*=t,this.y*=t,this}length(){const t=this.x,e=this.y;return Math.sqrt(t*t+e*e)}sub(t){return this.x-=t.x,this.y-=t.y,this}add(t){return this.x+=t.x,this.y+=t.y,this}static distance(t,e){const s=e.x-t.x,i=e.y-t.y;return Math.sqrt(s*s+i*i)}static add(t,e){return new i(t.x+e.x,t.y+e.y)}static sub(t,e){return new i(t.x-e.x,t.y-e.y)}}class n{constructor(t,e,s){this.ratio=t,this.x=e,this.y=s}}class r{constructor(t,e,s,i=8,n=8){this._lines=[],this._starts=[],this.validateTessellation=!0,this._pixelRatio=i,this._pixelMargin=n,this._tileSize=512*i,this._dz=t,this._yPos=e,this._xPos=s}setPixelMargin(t){t!==this._pixelMargin&&(this._pixelMargin=t,this.setExtent(this._extent))}setExtent(t){this._extent=t,this._finalRatio=this._tileSize/t*(1<<this._dz);let e=this._pixelRatio*this._pixelMargin;e/=this._finalRatio;const s=t>>this._dz;e>s&&(e=s),this._margin=e,this._xmin=s*this._xPos-e,this._ymin=s*this._yPos-e,this._xmax=this._xmin+s+2*e,this._ymax=this._ymin+s+2*e}reset(t){this._type=t,this._lines=[],this._starts=[],this._line=null,this._start=0}moveTo(t,e){this._pushLine(),this._prevIsIn=this._isIn(t,e),this._moveTo(t,e,this._prevIsIn),this._prevPt=new i(t,e),this._firstPt=new i(t,e),this._dist=0}lineTo(t,e){const s=this._isIn(t,e),r=new i(t,e),o=i.distance(this._prevPt,r);let h,a,l,u,c,f,y,_;if(s)this._prevIsIn?this._lineTo(t,e,!0):(h=this._prevPt,a=r,l=this._intersect(a,h),this._start=this._dist+o*(1-this._r),this._lineTo(l.x,l.y,!0),this._lineTo(a.x,a.y,!0));else if(this._prevIsIn)a=this._prevPt,h=r,l=this._intersect(a,h),this._lineTo(l.x,l.y,!0),this._lineTo(h.x,h.y,!1);else{const t=this._prevPt,e=r;if(t.x<=this._xmin&&e.x<=this._xmin||t.x>=this._xmax&&e.x>=this._xmax||t.y<=this._ymin&&e.y<=this._ymin||t.y>=this._ymax&&e.y>=this._ymax)this._lineTo(e.x,e.y,!1);else{const s=[];if((t.x<this._xmin&&e.x>this._xmin||t.x>this._xmin&&e.x<this._xmin)&&(u=(this._xmin-t.x)/(e.x-t.x),_=t.y+u*(e.y-t.y),_<=this._ymin?f=!1:_>=this._ymax?f=!0:s.push(new n(u,this._xmin,_))),(t.x<this._xmax&&e.x>this._xmax||t.x>this._xmax&&e.x<this._xmax)&&(u=(this._xmax-t.x)/(e.x-t.x),_=t.y+u*(e.y-t.y),_<=this._ymin?f=!1:_>=this._ymax?f=!0:s.push(new n(u,this._xmax,_))),(t.y<this._ymin&&e.y>this._ymin||t.y>this._ymin&&e.y<this._ymin)&&(u=(this._ymin-t.y)/(e.y-t.y),y=t.x+u*(e.x-t.x),y<=this._xmin?c=!1:y>=this._xmax?c=!0:s.push(new n(u,y,this._ymin))),(t.y<this._ymax&&e.y>this._ymax||t.y>this._ymax&&e.y<this._ymax)&&(u=(this._ymax-t.y)/(e.y-t.y),y=t.x+u*(e.x-t.x),y<=this._xmin?c=!1:y>=this._xmax?c=!0:s.push(new n(u,y,this._ymax))),0===s.length)c?f?this._lineTo(this._xmax,this._ymax,!0):this._lineTo(this._xmax,this._ymin,!0):f?this._lineTo(this._xmin,this._ymax,!0):this._lineTo(this._xmin,this._ymin,!0);else if(s.length>1&&s[0].ratio>s[1].ratio)this._start=this._dist+o*s[1].ratio,this._lineTo(s[1].x,s[1].y,!0),this._lineTo(s[0].x,s[0].y,!0);else{this._start=this._dist+o*s[0].ratio;for(let t=0;t<s.length;t++)this._lineTo(s[t].x,s[t].y,!0)}this._lineTo(e.x,e.y,!1)}}this._dist+=o,this._prevIsIn=s,this._prevPt=r}close(){if(this._line.length>2){const t=this._firstPt,e=this._prevPt;t.x===e.x&&t.y===e.y||this.lineTo(t.x,t.y);const s=this._line;let i=s.length;for(;i>=4&&(s[0].x===s[1].x&&s[0].x===s[i-2].x||s[0].y===s[1].y&&s[0].y===s[i-2].y);)s.pop(),s[0].x=s[i-2].x,s[0].y=s[i-2].y,--i}}result(t=!0){return this._pushLine(),0===this._lines.length?null:(3===this._type&&t&&h.simplify(this._tileSize,this._margin*this._finalRatio,this._lines),this._lines)}resultWithStarts(){if(2!==this._type)throw new Error("Only valid for lines");this._pushLine();const t=this._lines,e=t.length;if(0===e)return null;const s=[];for(let i=0;i<e;i++)s.push({line:t[i],start:this._starts[i]||0});return s}_isIn(t,e){return t>=this._xmin&&t<=this._xmax&&e>=this._ymin&&e<=this._ymax}_intersect(t,e){let s,n,r;if(e.x>=this._xmin&&e.x<=this._xmax)n=e.y<=this._ymin?this._ymin:this._ymax,r=(n-t.y)/(e.y-t.y),s=t.x+r*(e.x-t.x);else if(e.y>=this._ymin&&e.y<=this._ymax)s=e.x<=this._xmin?this._xmin:this._xmax,r=(s-t.x)/(e.x-t.x),n=t.y+r*(e.y-t.y);else{n=e.y<=this._ymin?this._ymin:this._ymax,s=e.x<=this._xmin?this._xmin:this._xmax;const i=(s-t.x)/(e.x-t.x),o=(n-t.y)/(e.y-t.y);i<o?(r=i,n=t.y+i*(e.y-t.y)):(r=o,s=t.x+o*(e.x-t.x))}return this._r=r,new i(s,n)}_pushLine(){this._line&&(1===this._type?this._line.length>0&&(this._lines.push(this._line),this._starts.push(this._start)):2===this._type?this._line.length>1&&(this._lines.push(this._line),this._starts.push(this._start)):3===this._type&&this._line.length>3&&(this._lines.push(this._line),this._starts.push(this._start))),this._line=[],this._start=0}_moveTo(t,e,s){3!==this._type?s&&(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.push(new i(t,e))):(s||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),e<this._ymin&&(e=this._ymin),e>this._ymax&&(e=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.push(new i(t,e)),this._isH=!1,this._isV=!1)}_lineTo(t,e,s){let n,r;if(3!==this._type)if(s){if(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.length>0&&(n=this._line[this._line.length-1],n.equals(t,e)))return;this._line.push(new i(t,e))}else this._line&&this._line.length>0&&this._pushLine();else if(s||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),e<this._ymin&&(e=this._ymin),e>this._ymax&&(e=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line&&this._line.length>0){n=this._line[this._line.length-1];const s=n.x===t,o=n.y===e;if(s&&o)return;this._isH&&s||this._isV&&o?(n.x=t,n.y=e,r=this._line[this._line.length-2],r.x===t&&r.y===e?(this._line.pop(),this._line.length<=1?(this._isH=!1,this._isV=!1):(r=this._line[this._line.length-2],this._isH=r.x===t,this._isV=r.y===e)):(this._isH=r.x===t,this._isV=r.y===e)):(this._line.push(new i(t,e)),this._isH=s,this._isV=o)}else this._line.push(new i(t,e))}}class o{setExtent(t){this._ratio=4096===t?1:4096/t}get validateTessellation(){return this._ratio<1}reset(t){this._lines=[],this._line=null}moveTo(t,e){this._line&&this._lines.push(this._line),this._line=[];const s=this._ratio;this._line.push(new i(t*s,e*s))}lineTo(t,e){const s=this._ratio;this._line.push(new i(t*s,e*s))}close(){const t=this._line;t&&!t[0].isEqual(t[t.length-1])&&t.push(t[0])}result(){return this._line&&this._lines.push(this._line),0===this._lines.length?null:this._lines}}class h{static simplify(t,e,s){if(!s)return;const i=-e,n=t+e,r=-e,o=t+e,a=[],l=[],u=s.length;for(let t=0;t<u;++t){const e=s[t];if(!e||e.length<2)continue;let h,u=e[0];const c=e.length;for(let s=1;s<c;++s)h=e[s],u.x===h.x&&(u.x<=i&&(u.y>h.y?(a.push(t),a.push(s),a.push(0),a.push(-1)):(l.push(t),l.push(s),l.push(0),l.push(-1))),u.x>=n&&(u.y<h.y?(a.push(t),a.push(s),a.push(1),a.push(-1)):(l.push(t),l.push(s),l.push(1),l.push(-1)))),u.y===h.y&&(u.y<=r&&(u.x<h.x?(a.push(t),a.push(s),a.push(2),a.push(-1)):(l.push(t),l.push(s),l.push(2),l.push(-1))),u.y>=o&&(u.x>h.x?(a.push(t),a.push(s),a.push(3),a.push(-1)):(l.push(t),l.push(s),l.push(3),l.push(-1)))),u=h}if(0===a.length||0===l.length)return;h.fillParent(s,l,a),h.fillParent(s,a,l);const c=[];h.calcDeltas(c,l,a),h.calcDeltas(c,a,l),h.addDeltas(c,s)}static fillParent(t,e,s){const i=s.length,n=e.length;for(let r=0;r<n;r+=4){const n=e[r],o=e[r+1],h=e[r+2],l=t[n][o-1],u=t[n][o];let c=8092,f=-1;for(let e=0;e<i;e+=4){if(s[e+2]!==h)continue;const i=s[e],n=s[e+1],r=t[i][n-1],o=t[i][n];switch(h){case 0:case 1:if(a(l.y,r.y,o.y)&&a(u.y,r.y,o.y)){const t=Math.abs(o.y-r.y);t<c&&(c=t,f=e)}break;case 2:case 3:if(a(l.x,r.x,o.x)&&a(u.x,r.x,o.x)){const t=Math.abs(o.x-r.x);t<c&&(c=t,f=e)}}}e[r+3]=f}}static calcDeltas(t,e,s){const i=e.length;for(let n=0;n<i;n+=4){const i=[],r=h.calcDelta(n,e,s,i);t.push(e[n]),t.push(e[n+1]),t.push(e[n+2]),t.push(r)}}static calcDelta(t,e,s,i){const n=e[t+3];if(-1===n)return 0;const r=i.length;return r>1&&i[r-2]===n?0:(i.push(n),h.calcDelta(n,s,e,i)+1)}static addDeltas(t,e){const s=t.length;let i=0;for(let e=0;e<s;e+=4){const s=t[e+3];s>i&&(i=s)}for(let n=0;n<s;n+=4){const s=e[t[n]],r=t[n+1],o=i-t[n+3];switch(t[n+2]){case 0:s[r-1].x-=o,s[r].x-=o,1===r&&(s[s.length-1].x-=o),r===s.length-1&&(s[0].x-=o);break;case 1:s[r-1].x+=o,s[r].x+=o,1===r&&(s[s.length-1].x+=o),r===s.length-1&&(s[0].x+=o);break;case 2:s[r-1].y-=o,s[r].y-=o,1===r&&(s[s.length-1].y-=o),r===s.length-1&&(s[0].y-=o);break;case 3:s[r-1].y+=o,s[r].y+=o,1===r&&(s[s.length-1].y+=o),r===s.length-1&&(s[0].y+=o)}}}}const a=(t,e,s)=>t>=e&&t<=s||t>=s&&t<=e},6518(t,e,s){s.d(e,{F:()=>h});var i=s(44208),n=s(75503),r=s(19419);const o={minX:0,minY:0,maxX:0,maxY:0};class h{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new n.wq(9,(0,i.A)("esri-csp-restrictions")?t=>({minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const t=new Array(this._idByBounds.size);let e=0;this._idByBounds.forEach((s,i)=>{t[e++]=i}),this._indexInvalid=!1,this._index.clear(),this._index.load(t)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter(t=>this._idByBounds.has(t))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const t=(0,r.Ie)();for(const e of this._boundsById.values())e&&(t[0]=Math.min(e[0],t[0]),t[1]=Math.min(e[1],t[1]),t[2]=Math.max(e[2],t[2]),t[3]=Math.max(e[3],t[3]));return t}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(t){const e=this._boundsById.get(t);this._boundsById.delete(t),e&&(this._idByBounds.delete(e),this._indexInvalid||this._index.remove(e))}forEachInBounds(t,e){this._loadIndex(),function(t,e,s){(function(t){o.minX=t[0],o.minY=t[1],o.maxX=t[2],o.maxY=t[3]})(e),t.search(o,s)}(this._index,t,t=>e(this._idByBounds.get(t)))}get(t){return this._boundsById.get(t)}has(t){return this._boundsById.has(t)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(t,e){if(!this._indexInvalid){const e=this._boundsById.get(t);e&&(this._index.remove(e),this._idByBounds.delete(e))}this._boundsById.set(t,e),e&&(this._idByBounds.set(e,t),this._indexInvalid||(this._boundsToLoad.push(e),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},83221(t,e,s){s.d(e,{A:()=>_});var i=s(4576),n=s(49186),r=s(65529),o=s(53966),h=s(70328),a=s(19419),l=s(90708),u=s(6518),c=s(51441),f=s(37730);const y=(0,h.vt)();class _{constructor(t){this.geometryInfo=t,this._boundsStore=new u.F,this._featuresById=new Map,this._usedMemory=0,this.events=new r.bk,this.featureAdapter=f.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 t=0;return this._featuresById.forEach(e=>{null!=e.geometry&&e.geometry.coords&&(t+=e.geometry.coords.length)}),{featureCount:this._featuresById.size,vertexCount:t/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(t){if(null==this.fullBounds)return null;const[e,s,i,n]=this.fullBounds;return{xmin:e,ymin:s,xmax:i,ymax:n,spatialReference:(0,c.ag)(t)}}add(t){this._add(t),this._emitChanged()}addMany(t){for(const e of t)this._add(e);this._emitChanged()}upsertMany(t){const e=t.map(t=>this._upsert(t));return this._emitChanged(),e.filter(i.Ru)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged(),this._usedMemory=0}removeById(t){const e=this._featuresById.get(t);return e?(this._remove(e),this._emitChanged(),e):null}removeManyById(t){this._boundsStore.invalidateIndex();for(const e of t){const t=this._featuresById.get(e);t&&this._remove(t)}this._emitChanged()}forEachBounds(t,e){for(const s of t){const t=this._boundsStore.get(s.objectId);t&&e((0,h.Jt)(y,t))}}getFeature(t){return this._featuresById.get(t)}has(t){return this._featuresById.has(t)}forEach(t){this._featuresById.forEach(e=>t(e))}forEachInBounds(t,e){this._boundsStore.forEachInBounds(t,t=>{e(this._featuresById.get(t))})}_emitChanged(){this.events.emit("changed",void 0)}_add(t){if(!t)return;const e=t.objectId;if(null==e)return void o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new n.A("featurestore:invalid-feature","feature id is missing",{feature:t}));const s=this._featuresById.get(e);let i;if(s?(t.displayId=s.displayId,i=this._boundsStore.get(e),this._boundsStore.delete(e),this._usedMemory-=this.estimateFeatureUsedMemory?.(s)??0):null!=this.onFeatureAdd&&this.onFeatureAdd(t),!t.geometry?.coords?.length)return this._boundsStore.set(e,null),void this._featuresById.set(e,t);i=(0,l.jQ)(null!=i?i:(0,a.vt)(),t.geometry),null!=i&&this._boundsStore.set(e,i),this._featuresById.set(e,t),this._usedMemory+=this.estimateFeatureUsedMemory?.(t)??0}_upsert(t){const e=t?.objectId;if(null==e)return o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new n.A("featurestore:invalid-feature","feature id is missing",{feature:t})),null;const s=this._featuresById.get(e);if(!s)return this._add(t),t;this._usedMemory-=this.estimateFeatureUsedMemory?.(s)??0;const{geometry:i,attributes:r}=t;for(const t in r)s.attributes[t]=r[t];return i&&(s.geometry=i,this._boundsStore.set(e,(0,l.jQ)((0,a.vt)(),i)??null)),this._usedMemory+=this.estimateFeatureUsedMemory?.(s)??0,s}_remove(t){null!=this.onFeatureRemove&&this.onFeatureRemove(t);const e=t.objectId;return this._boundsStore.delete(e),this._featuresById.delete(e),this._usedMemory-=this.estimateFeatureUsedMemory?.(t)??0,t}}},51441(t,e,s){s.d(e,{LQ:()=>n,ag:()=>o,pL:()=>r});var i=s(90708);function n(t,e,s,n=t.hasZ,r=t.hasM){if(null==e)return null;const o=t.hasZ&&n,h=t.hasM&&r;if(s){const t=(0,i.Nl)(e,"esriGeometryPoint",s,n,r);return(0,i.DF)(t,o,h)}return(0,i.DF)(e,o,h)}function r(t,e,s,n,r,o){if(null==e)return null;const h="coords"in e?e:e.geometry;if(null==h)return null;const{hasZ:a,hasM:l}=h,u=a&&(r??=a),c=l&&(o??=l);if(s){let e=(0,i.kz)(h,t,s,r,o);return n&&(e=(0,i.Nl)(e,t,n)),(0,i.zv)(e,t,u,c)}if(n){const e=(0,i.Nl)(h,t,n,r,o);return(0,i.zv)(e,t,u,c)}return(0,i.zv)(h,t,u,c)}function o(t){return t&&h in t?JSON.parse(JSON.stringify(t,a)):t}const h="_geVersion",a=(t,e)=>t===h?void 0:e},37730(t,e,s){var i=s(43334);const n={getObjectId:t=>t.objectId,getAttributes:t=>t.attributes,getAttribute:(t,e)=>t.attributes[e],cloneWithGeometry:(t,e,s)=>new i.Om(e,t.attributes,null,t.objectId,t.displayId,t.distance,t.vertexCount),getGeometry:t=>t.geometry,getCentroid:(t,e)=>t.ensureCentroid(e)};s.d(e,["T",0,n])},31464(t,e,s){s.d(e,{Cv:()=>_,Nk:()=>c,lK:()=>m});var i=s(4576),n=s(91218),r=s(21325),o=s(28735);const h=[0,0];function a(t,e){if(!e)return null;if("x"in e){const s={x:0,y:0};return[s.x,s.y]=t(e.x,e.y,h),null!=e.z&&(s.z=e.z),null!=e.m&&(s.m=e.m),s}if("xmin"in e){const s={xmin:0,ymin:0,xmax:0,ymax:0};return[s.xmin,s.ymin]=t(e.xmin,e.ymin,h),[s.xmax,s.ymax]=t(e.xmax,e.ymax,h),e.hasZ&&(s.zmin=e.zmin,s.zmax=e.zmax,s.hasZ=!0),e.hasM&&(s.mmin=e.mmin,s.mmax=e.mmax,s.hasM=!0),s}return"rings"in e?{rings:l(e.rings,t),hasM:e.hasM,hasZ:e.hasZ}:"paths"in e?{paths:l(e.paths,t),hasM:e.hasM,hasZ:e.hasZ}:"points"in e?{points:u(e.points,t),hasM:e.hasM,hasZ:e.hasZ}:null}function l(t,e){const s=[];for(const i of t)s.push(u(i,e));return s}function u(t,e){const s=[];for(const i of t){const t=e(i[0],i[1],[0,0]);s.push(t),i.length>2&&t.push(i[2]),i.length>3&&t.push(i[3])}return s}async function c(t,e){if(!t||!e)return;const s=Array.isArray(t)?t.map(t=>null!=t.geometry?t.geometry.spatialReference:null).filter(i.Ru):[t];await(0,n.initializeProjection)(s.map(t=>({source:t,dest:e})))}const f=a.bind(null,o.je),y=a.bind(null,o.tD);function _(t,e,s,i){if(!t)return null;if(s||(s=e,e=t.spatialReference),!(0,r.fn)(e)||!(0,r.fn)(s)||(0,r.aI)(e,s))return t;if((0,o.y7)(e,s)){const e=(0,r.K8)(s)?f(t):y(t);return e.spatialReference=s,e}return(0,n.projectMany)([t],e,s,i)[0]}const d=new class{constructor(){this._jobs=[],this._timer=null,this._process=this._process.bind(this)}async push(t,e,s,i){if(!t?.length||!e||!s||(0,r.aI)(e,s))return t;const n={geometries:t,inSpatialReference:e,outSpatialReference:s,options:i,resolve:Promise.withResolvers()};return this._jobs.push(n),this._timer??=setTimeout(this._process,10),n.resolve.promise}_process(){this._timer=null;const t=this._jobs.shift();if(!t)return;const{geometries:e,inSpatialReference:s,outSpatialReference:i,resolve:h,options:a}=t,l=e.filter(t=>null!=t);let u;u=(0,o.y7)(s,i)&&null==a?.extendedParams?(0,r.K8)(i)?l.map(f):l.map(y):(0,n.projectMany)(l,s,i,a);let c=0;const _=e.map(t=>null==t?null:u[c++]);h.resolve(_),this._jobs.length>0&&(this._timer=setTimeout(this._process,10))}};function m(t,e,s,i){return d.push(t,e,s,i)}},85113(t,e,s){s.d(e,{BM:()=>T,bd:()=>B,sO:()=>I,xD:()=>c});var i=s(67482),n=s(49186),r=s(21325),o=s(90708),h=s(43334),a=s(92722),l=s(30524);const u={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function c(t){return u[t]}function*f(t){switch(t.type){case"Feature":yield t;break;case"FeatureCollection":for(const e of t.features)e&&(yield e)}}function*y(t){if(t)switch(t.type){case"Point":yield t.coordinates;break;case"LineString":case"MultiPoint":yield*t.coordinates;break;case"MultiLineString":case"Polygon":for(const e of t.coordinates)yield*e;break;case"MultiPolygon":for(const e of t.coordinates)for(const t of e)yield*t}}function _(t){for(const e of t)if(e.length>2)return!0;return!1}function d(t){let e=0;for(let s=0;s<t.length;s++){const i=t[s],n=t[(s+1)%t.length];e+=i[0]*n[1]-n[0]*i[1]}return e<=0}function m(t){const e=t[0],s=t[t.length-1];e[0]===s[0]&&e[1]===s[1]&&e[2]===s[2]||t.push(e)}function p(t,e){const{coordinates:s,type:i}=t,n=e.hasZ??!1,r=!0;switch(i){case"Point":return new a.A([],[...s],n,!1);case"LineString":return(0,o.Ap)({paths:[s],hasZ:r},n,!1);case"MultiLineString":return(0,o.Ap)({paths:s,hasZ:r},n,!1);case"MultiPoint":return(0,o.PR)({points:s,hasZ:r},n,!1);case"Polygon":case"MultiPolygon":{const t=new a.A([],[],n,!1);for(const e of"Polygon"===i?[s]:s){x(t,e[0],n);for(let s=1;s<e.length;s++)g(t,e[s],n)}return t}}}function x(t,e,s){m(e),function(t){return!d(t)}(e)?M(t,e,s):w(t,e,s)}function g(t,e,s){m(e),function(t){return d(t)}(e)?M(t,e,s):w(t,e,s)}function w(t,e,s){for(const i of e)b(t,i,s);t.lengths.push(e.length)}function M(t,e,s){for(let i=e.length-1;i>=0;i--)b(t,e[i],s);t.lengths.push(e.length)}function b(t,[e,s,i],n){t.coords.push(e,s),n&&t.coords.push(i||0)}function v(t){switch(typeof t){case"string":return(0,i.C)(t)?"esriFieldTypeDate":"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function I(t,e=4326){if(!t)throw new n.A("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==t.type&&"FeatureCollection"!==t.type)throw new n.A("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:t});const{crs:s}=t;if(!s)return;const i="string"==typeof s?s:"name"===s.type?s.properties.name:"EPSG"===s.type?s.properties.code:null,o=(0,r.oT)({wkid:e})?new RegExp(".*(CRS84H?|4326)$","i"):new RegExp(`.*(${e})$`,"i");if(!i||!o.test(i))throw new n.A("geojson:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:s})}function T(t,e={}){const s=[],i=new Set,n=new Set;let r,o=!1,h=null,a=!1,{geometryType:u=null}=e;for(const e of f(t)){const{geometry:t,properties:f,id:d}=e;if((!t||(u||(u=c(t.type)),c(t.type)===u))&&(o||(o=_(y(t))),a||(a=null!=d,a&&(r=typeof d,f&&(h=Object.keys(f).filter(t=>f[t]===d)))),f&&h&&a&&null!=d&&(h.length>1?h=h.filter(t=>f[t]===d):1===h.length&&(h=f[h[0]]===d?h:[])),f))for(const t in f){if(i.has(t))continue;const e=v(f[t]);if("unknown"===e){n.add(t);continue}n.delete(t),i.add(t);const r=(0,l.rS)(t);r&&s.push({name:r,alias:t,type:e})}}const d=(0,l.rS)(1===h?.length&&h[0]||null)??void 0;if(d)for(const t of s)if(t.name===d&&(0,l.WA)(t)){t.type="esriFieldTypeOID";break}return{fields:s,geometryType:u,hasZ:o,objectIdFieldName:d,objectIdFieldType:r,unknownFields:Array.from(n)}}function B(t,e){return Array.from(function*(t,e={}){const{geometryType:s,objectIdField:i}=e;for(const n of t){const{geometry:t,properties:r,id:o}=n;if(t&&c(t.type)!==s)continue;const a=r||{};let l;i&&(l=a[i],null==o||l||(a[i]=l=o)),yield new h.Om(t&&p(t,e),a,null,l)}}(f(t),e))}},14289(t,e,s){s.r(e),s.d(e,{default:()=>A});var i=s(11254),n=s(17676),r=s(19419),o=s(21325),h=s(6774),a=s(90708),l=s(92722),u=s(83221),c=s(31464),f=s(85113);const y=new TextEncoder;class _{constructor(){this._bytes=[]}finish(){return new Uint8Array(this._bytes)}writeBooleanField(t,e){this._writeTag(t,0),this.writeVarint(e?1:0)}writeDoubleField(t,e){this._writeTag(t,1);const s=new ArrayBuffer(8);new DataView(s).setFloat64(0,e,!0),this._writeBytes(new Uint8Array(s))}writeMessage(t,e,s){this._writeTag(t,2);const i=this._bytes.length;for(let t=0;t<5;t++)this._bytes.push(0);const n=this._bytes.length;e(s,this),this._writeMessageLength(i,this._bytes.length-n)}writeStringField(t,e){const s=y.encode(e);this._writeTag(t,2),this.writeVarint(s.byteLength),this._writeBytes(s)}writeSVarintField(t,e){this._writeTag(t,0),this.writeVarint(e<0?2*-e-1:2*e)}writeVarint(t){for(;t>127;)this._bytes.push(127&t|128),t=Math.floor(t/128);this._bytes.push(t)}writeVarintField(t,e){this._writeTag(t,0),this.writeVarint(e)}_writeBytes(t){for(const e of t)this._bytes.push(e)}_writeMessageLength(t,e){let s=0;for(;e>127;)this._bytes[t+s++]=127&e|128,e=Math.floor(e/128);this._bytes[t+s++]=e,this._bytes.splice(t+s,5-s)}_writeTag(t,e){this.writeVarint(t<<3|e)}}function d(t,e,s){const i=new _;return i.writeMessage(3,m,{cursor:e,extent:s,keyIndices:new Map,keys:[],name:t,valueIndices:new Map,values:[]}),Uint8Array.from(i.finish()).buffer}function m(t,e){for(e.writeVarintField(15,1),e.writeStringField(1,t.name),e.writeVarintField(5,t.extent);t.cursor.next();)e.writeMessage(2,p,t);for(const s of t.keys)e.writeStringField(3,s);for(const s of t.values)e.writeMessage(4,w,s)}function p(t,e){const s=t.cursor.getId();"number"==typeof s&&e.writeVarintField(1,s),e.writeMessage(2,x,t),e.writeVarintField(3,t.cursor.getType()),e.writeMessage(4,g,t.cursor)}function x(t,e){const s=t.cursor.getAttributes();if(s)for(const i of Object.keys(s)){const n=M(s[i]);if(null==n)continue;let r=t.keyIndices.get(i);null==r&&(r=t.keys.length,t.keyIndices.set(i,r),t.keys.push(i));const o=`${typeof n}:${n}`;let h=t.valueIndices.get(o);null==h&&(h=t.values.length,t.valueIndices.set(o,h),t.values.push(n)),e.writeVarint(r),e.writeVarint(h)}}function g(t,e){const s=t.getType();let i=0,n=0;for(let r=0;r<t.getPathCount();r++){const o=t.getPathLength(r),h=1===s?o:1;e.writeVarint(b(1,h));const a=3===s?o-1:o;for(let o=0;o<a;o++){1===o&&1!==s&&e.writeVarint(b(2,a-1));const h=t.getX(r,o),l=t.getY(r,o);e.writeVarint(v(h-i)),e.writeVarint(v(l-n)),i=h,n=l}3===s&&e.writeVarint(b(7,1))}}function w(t,e){"string"==typeof t?e.writeStringField(1,t):"boolean"==typeof t?e.writeBooleanField(7,t):Number.isInteger(t)?t<0?e.writeSVarintField(6,t):e.writeVarintField(5,t):e.writeDoubleField(3,t)}function M(t){return"string"==typeof t||"boolean"==typeof t||"number"==typeof t?t:null==t?null:JSON.stringify(t)??null}function b(t,e){return(e<<3)+(7&t)}function v(t){return t<<1^t>>31}const I=4096,T=20037508.342787,B=2*T,P=[{geometryType:"esriGeometryPolygon",vectorTileGeometryType:3},{geometryType:"esriGeometryPolyline",vectorTileGeometryType:2},{geometryType:"esriGeometryPoint",vectorTileGeometryType:1},{geometryType:"esriGeometryMultipoint",vectorTileGeometryType:1}];class A{constructor(){this._buffer=128,this._featureIds=new Map,this._name="",this._stores=[],this._tolerance=.375}destroy(){for(const{store:t}of this._stores)t.clear();this._featureIds.clear(),this._stores.length=0}async initialize({definition:t,name:e,requestOptions:s},r={}){if(null==t.data)throw new Error(`GeoJSON source '${e}' must define a data property.`);if(!0===t.lineMetrics)throw new Error("GeoJSON lineMetrics are not supported.");if(t.promoteId&&t.generateId)throw new Error("GeoJSON promoteId and generateId cannot be used together.");const o="string"==typeof t.data?(await(0,i.A)(t.data,{...s,responseType:"json",signal:r.signal})).data:t.data;(0,n.Te)(r),(0,f.sO)(o),this.destroy(),this._buffer=t.buffer??128,this._name=e,this._tolerance=t.tolerance??.375;let h=0;for(const{geometryType:e,vectorTileGeometryType:s}of P){const i=(0,f.bd)(o,{geometryType:e,hasZ:!1}),n=S(o,e,t);if(0===i.length)continue;const r=new u.A({geometryType:e,hasM:!1,hasZ:!1}),a=[];let l=0;for(const t of i){const s=R(t.geometry,e);s&&(t.objectId=h++,t.geometry=s,this._featureIds.set(t.objectId,n[l++]??null),a.push(t))}a.length>0&&(r.addMany(a),this._stores.push({geometryType:e,store:r,vectorTileGeometryType:s}))}return(0,n.Te)(r),{geometryTypes:["polygon","line","point"].filter(t=>this._stores.some(({vectorTileGeometryType:e})=>e===function(t){switch(t){case"polygon":return 3;case"line":return 2;case"point":return 1}}(t)))}}requestTile({col:t,level:e,row:s},i={}){(0,n.Te)(i);const r=this._getTileFeatures(e,s,t),o=r.length>0?d(this._name,new F(r),I):new ArrayBuffer(0);return(0,n.Te)(i),{result:o,transferList:[o]}}_getTileFeatures(t,e,s){const i=B/2**t,n=s*i-T,o=T-e*i,h=i/I,a=this._buffer*h,l=this._tolerance*h,u=[];for(const t of[-B,0,B]){const e=(0,r.fA)(n-a-t,o-i-a,n+i+a-t,o+a),s={scale:[h,-h,1,1],translate:[n-t,o,0,0]};for(const{geometryType:t,store:i,vectorTileGeometryType:n}of this._stores)i.forEachInBounds(e,e=>{const i=C(e,t,n,s,l,this._buffer);i&&u.push({attributes:e.attributes,geometry:i,id:this._featureIds.get(e.objectId),type:n})})}return u}}function S(t,e,s){const i=[],n="FeatureCollection"===t.type?t.features:[t];for(let t=0;t<n.length;t++){const r=n[t];if(!r.geometry||(0,f.xD)(r.geometry.type)!==e)continue;const o=s.promoteId?r.properties?.[s.promoteId]:!0===s.generateId?t:r.id;i.push("number"==typeof o||"string"==typeof o?o:null)}return i}function R(t,e){return t?(0,a.Ux)((0,c.Cv)((0,a.zv)(t,e,!1,!1),o.KK,o.ch))??null:null}function C(t,e,s,i,n,r){if(!t.geometry)return null;const o=n>0?(0,a.kz)(t.geometry,e,n,!1,!1):t.geometry;return function(t,e,s){if(!t)return null;const i=new h.O3(0,0,0,8,s/8);if(i.setExtent(I),i.reset(e),1===e)for(let e=0;e<t.size;e++){const s=e*t.stride;i.moveTo(t.coords[s],t.coords[s+1])}else{let s=0;for(const n of t.lengths){i.moveTo(t.coords[s],t.coords[s+1]);for(let e=1;e<n;e++){const n=s+e*t.stride;i.lineTo(t.coords[n],t.coords[n+1])}3===e&&i.close(),s+=n*t.stride}}const n=i.result();if(!n)return null;const r=1===e?[n.length]:n.map(t=>t.length),o=[];for(const t of n)for(const e of t)o.push(e.x,e.y);return new l.A(r,o)}((0,a.Nl)(o,e,i,!1,!1,!0),s,r)}class F{constructor(t){this._features=t,this._index=-1,this._pathOffsets=[]}get _feature(){return this._features[this._index]}destroy(){}getAttributes(){return this._feature.attributes}getId(){return this._feature.id}getPathCount(){return 1===this._feature.type?1:this._feature.geometry.lengths.length}getPathLength(t){return 1===this._feature.type?this._feature.geometry.size:this._feature.geometry.lengths[t]}getType(){return this._feature.type}getX(t,e){return this._feature.geometry.coords[this._getCoordinateIndex(t,e)]}getY(t,e){return this._feature.geometry.coords[this._getCoordinateIndex(t,e)+1]}next(){return!(++this._index>=this._features.length||(this._pathOffsets=function(t){const e=new Array(t.lengths.length);let s=0;for(let i=0;i<t.lengths.length;i++)e[i]=s,s+=t.lengths[i];return e}(this._feature.geometry),0))}_getCoordinateIndex(t,e){return(1===this._feature.type?e:this._pathOffsets[t]+e)*this._feature.geometry.stride}}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7379],{11006(t,e,s){function i(t,e,s,i,r){n(t,e,s||0,i||t.length-1,r||o)}function n(t,e,s,i,o){for(;i>s;){if(i-s>600){var h=i-s+1,a=e-s+1,l=Math.log(h),u=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*u*(h-u)/h)*(a-h/2<0?-1:1);n(t,e,Math.max(s,Math.floor(e-a*u/h+c)),Math.min(i,Math.floor(e+(h-a)*u/h+c)),o)}var f=t[e],y=s,_=i;for(r(t,s,e),o(t[i],f)>0&&r(t,s,i);y<_;){for(r(t,y,_),y++,_--;o(t[y],f)<0;)y++;for(;o(t[_],f)>0;)_--}0===o(t[s],f)?r(t,s,_):r(t,++_,i),_<=e&&(s=_+1),e<=_&&(i=_-1)}}function r(t,e,s){var i=t[e];t[e]=t[s],t[s]=i}function o(t,e){return t<e?-1:t>e?1:0}s.d(e,{q:()=>i})},69540(t,e,s){var i=s(5482),n=s(69622),r=(s(44208),s(4718)),o=(s(53966),s(97768)),h=s(88620),a=s(64108);const l=Symbol("ClonableMixin"),u=t=>{var e;const s=t;let n=class extends s{constructor(){super(...arguments),this[e]=!0}static{e=l}clone(t){const e=(0,h.oY)(this);(0,o.Lw)(e,"unable to clone instance of non-accessor class");const s=e.metadata,i=e.store,n={},a=new Map;for(const e in s){const o=s[e],h=i?.originOf(e),l=o.clonable;if(o.readOnly||!1===l||7!==h&&0!==h&&5!==h&&4!==h)continue;const u=this[e];let c=null;if("function"==typeof l)c=l(u,t);else if("reference"===l)c=u;else if(c=(0,r.TU)(u,t),null!=u&&null==c)continue;0===h?a.set(e,c):n[e]=c}const l=new(0,Object.getPrototypeOf(this).constructor)(n);if(a.size){const t=(0,h.oY)(l)?.store;if(t)for(const[e,s]of a)t.set(e,s,0)}return l}};return n=(0,i.Cg)([(0,a.$)("esri.core.Clonable")],n),n},c=u(n.A);s.d(e,["OU",0,u,"Pw",0,c])},67482(t,e,s){function i(t){return null!==n(t)}function n(t){return function(t){const e=r.exec(t);if(!e?.groups)return null;const s=e.groups,i=+s.year,n=+s.month-1,o=+s.day,h=+(s.hours??"0"),a=+(s.minutes??"0"),l=+(s.seconds??"0");if(h>23)return null;if(a>59)return null;if(l>59)return null;const u=s.ms??"0",c=u?+u.padEnd(3,"0").slice(0,3):0;let f;if(s.isUTC||!s.offsetSign)f=Date.UTC(i,n,o,h,a,l,c);else{const t=+s.offsetHours,e=+s.offsetMinutes;f=6e4*("+"===s.offsetSign?-1:1)*(60*t+e)+Date.UTC(i,n,o,h,a,l,c)}return Number.isNaN(f)?null:f}(t)??function(t){const e=new Date(t),s=e.getTime();return Number.isNaN(s)?null:t.toLowerCase()===e.toUTCString().toLowerCase()?s:null}(t)??function(t){if(!o.test(t))return null;const e=new Date(t);return Number.isNaN(e.getTime())?null:e.getTime()-6e4*e.getTimezoneOffset()}(t)}s.d(e,{C:()=>i,_:()=>n});const r=/^(?:(?<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},75503(t,e,s){s.d(e,{wq:()=>h});var i=s(4576),n=s(21818),r=(s(44208),s(15142)),o=s(11006);class h{constructor(t=9,e){this._compareMinX=f,this._compareMinY=y,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&("function"==typeof e?this._toBBox=e:this._initFormat(e)),this.clear()}destroy(){this.clear(),M.prune(),b.prune(),v.prune(),I.prune()}all(t){a(this._data,t)}search(t,e){let s=this._data;const i=this._toBBox;if(x(t,s))for(M.clear();s;){for(let n=0,r=s.children.length;n<r;n++){const r=s.children[n],o=s.leaf?i(r):r;x(t,o)&&(s.leaf?e(r):g(t,o)?a(r,e):M.push(r))}s=M.pop()}}collides(t){let e=this._data;const s=this._toBBox;if(!x(t,e))return!1;for(M.clear();e;){for(let i=0,n=e.children.length;i<n;i++){const n=e.children[i],r=e.leaf?s(n):n;if(x(t,r)){if(e.leaf||g(t,r))return!0;M.push(n)}}e=M.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let e=0,s=t.length;e<s;e++)this.insert(t[e]);return this}let e=this._build(t.slice(),0,t.length-1,0);if(this._data.children.length)if(this._data.height===e.height)this._splitRoot(this._data,e);else{if(this._data.height<e.height){const t=this._data;this._data=e,e=t}this._insert(e,this._data.height-e.height-1,!0)}else this._data=e;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new P([]),this}remove(t){if(!t)return this;let e,s=this._data,r=null,o=0,h=!1;const a=this._toBBox(t);for(v.clear(),I.clear();s||v.length>0;){if(s||(s=v.pop(),r=v.data[v.length-1],o=I.pop()??0,h=!0),s.leaf&&(e=(0,i.qh)(s.children,(0,n.z)(t),s.children.length,s.indexHint),-1!==e))return s.children.splice(e,1),v.push(s),this._condense(v),this;h||s.leaf||!g(s,a)?r?(o++,s=r.children[o],h=!1):s=null:(v.push(s),I.push(o),o=0,r=s,s=s.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_build(t,e,s,i){const n=s-e+1;let r=this._maxEntries;if(n<=r){const i=new P(t.slice(e,s+1));return l(i,this._toBBox),i}i||(i=Math.ceil(Math.log(n)/Math.log(r)),r=Math.ceil(n/r**(i-1)));const o=new A([]);o.height=i;const h=Math.ceil(n/r),a=h*Math.ceil(Math.sqrt(r));w(t,e,s,a,this._compareMinX);for(let n=e;n<=s;n+=a){const e=Math.min(n+a-1,s);w(t,n,e,h,this._compareMinY);for(let s=n;s<=e;s+=h){const n=Math.min(s+h-1,e);o.children.push(this._build(t,s,n,i-1))}}return l(o,this._toBBox),o}_insert(t,e,s){const i=this._toBBox,n=s?t:i(t);v.clear();const r=function(t,e,s,i){for(;i.push(e),!0!==e.leaf&&i.length-1!==s;){let s,i=1/0,n=1/0;for(let r=0,o=e.children.length;r<o;r++){const o=e.children[r],h=_(o),a=m(t,o)-h;a<n?(n=a,i=h<i?h:i,s=o):a===n&&h<i&&(i=h,s=o)}e=s||e.children[0]}return e}(n,this._data,e,v);for(r.children.push(t),c(r,n);e>=0&&v.data[e].children.length>this._maxEntries;)this._split(v,e),e--;!function(t,e,s){for(let i=s;i>=0;i--)c(e.data[i],t)}(n,v,e)}_split(t,e){const s=t.data[e],i=s.children.length,n=this._minEntries;this._chooseSplitAxis(s,n,i);const r=this._chooseSplitIndex(s,n,i);if(!r)return;const o=s.children.splice(r,s.children.length-r),h=s.leaf?new P(o):new A(o);h.height=s.height,l(s,this._toBBox),l(h,this._toBBox),e?t.data[e-1].children.push(h):this._splitRoot(s,h)}_splitRoot(t,e){this._data=new A([t,e]),this._data.height=t.height+1,l(this._data,this._toBBox)}_chooseSplitIndex(t,e,s){let i,n,r;i=n=1/0;for(let o=e;o<=s-e;o++){const e=u(t,0,o,this._toBBox),h=u(t,o,s,this._toBBox),a=p(e,h),l=_(e)+_(h);a<i?(i=a,r=o,n=l<n?l:n):a===i&&l<n&&(n=l,r=o)}return r}_chooseSplitAxis(t,e,s){const i=t.leaf?this._compareMinX:f,n=t.leaf?this._compareMinY:y;this._allDistMargin(t,e,s,i)<this._allDistMargin(t,e,s,n)&&t.children.sort(i)}_allDistMargin(t,e,s,i){t.children.sort(i);const n=this._toBBox,r=u(t,0,e,n),o=u(t,s-e,s,n);let h=d(r)+d(o);for(let i=e;i<s-e;i++){const e=t.children[i];c(r,t.leaf?n(e):e),h+=d(r)}for(let i=s-e-1;i>=e;i--){const e=t.children[i];c(o,t.leaf?n(e):e),h+=d(o)}return h}_condense(t){for(let e=t.length-1;e>=0;e--){const s=t.data[e];if(0===s.children.length)if(e>0){const n=t.data[e-1],r=n.children;r.splice((0,i.qh)(r,s,r.length,n.indexHint),1)}else this.clear();else l(s,this._toBBox)}}_initFormat(t){const e=["return a"," - b",";"];this._compareMinX=new Function("a","b",e.join(t[0])),this._compareMinY=new Function("a","b",e.join(t[1])),this._toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function a(t,e){let s=t;for(b.clear();s;){if(!0===s.leaf)for(const t of s.children)e((0,n.z)(t));else b.pushArray(s.children);s=b.pop()??null}}function l(t,e){u(t,0,t.children.length,e,t)}function u(t,e,s,i,n){n||(n=new P([])),n.minX=1/0,n.minY=1/0,n.maxX=-1/0,n.maxY=-1/0;for(let r,o=e;o<s;o++)r=t.children[o],c(n,t.leaf?i(r):r);return n}function c(t,e){t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY)}function f(t,e){return t.minX-e.minX}function y(t,e){return t.minY-e.minY}function _(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function d(t){return t.maxX-t.minX+(t.maxY-t.minY)}function m(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function p(t,e){const s=Math.max(t.minX,e.minX),i=Math.max(t.minY,e.minY),n=Math.min(t.maxX,e.maxX),r=Math.min(t.maxY,e.maxY);return Math.max(0,n-s)*Math.max(0,r-i)}function g(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function x(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function w(t,e,s,i,n){const r=[e,s];for(;r.length;){const e=r.pop(),s=r.pop();if(e-s<=i)continue;const h=s+Math.ceil((e-s)/i/2)*i;(0,o.q)(t,h,s,e,n),r.push(s,h,h,e)}}const M=new r.A,b=new r.A,v=new r.A,I=new r.A({deallocator:void 0});class T{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class B extends T{constructor(){super(...arguments),this.height=1,this.indexHint=new i.vW}}class P extends B{constructor(t){super(),this.children=t,this.leaf=!0}}class A extends B{constructor(t){super(),this.children=t,this.leaf=!1}}},69397(t,e,s){s.d(e,{Qf:()=>h,Qh:()=>r,lM:()=>n});var i=s(34275);function n(t){if(!t)return 0;let e=l;for(const s in t)t.hasOwnProperty(s)&&(e+=o(t[s],!1));return e}function r(t){if(!t)return 0;if("number"==typeof t[0])return h(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return a(t,8);let s=u;for(let i=0;i<e;i++)s+=o(t[i]);return s}(t);let e=l;for(const s in t)t.hasOwnProperty(s)&&(e+=o(t[s]));return e}function o(t,e=!0){switch(typeof t){case"object":return e?r(t):l;case"string":return function(t){return 32+t.length}(t);case"number":return 16;case"boolean":return 4;default:return 8}}function h(...t){return t.reduce((t,e)=>t+(e?(0,i.iu)(e)?e.byteLength+c:Array.isArray(e)?a(e,16):0:0),0)}function a(t,e){return u+t.length*e}const l=32,u=16,c=145},48526(t,e,s){s.d(e,{A:()=>m});var i,n=s(5482),r=s(4576),o=s(4718),h=s(91429),a=s(5443),l=s(91075),u=s(86738),c=s(16930),f=s(90634),y=s(47610),_=s(56993),d=s(43937);let m=i=class extends l.A{constructor(t){super(function(t){if(!t)return;let{points:e,hasM:s,hasZ:i,spatialReference:n}=t;switch(e??=[],e?.at(0)?.length){case 4:i??=!0,s??=!0;break;case 3:i??=!0!==s,s??=!i;break;default:i??=!1,s??=!1}return n??=c.A.WGS84,{...t,hasM:s,hasZ:i,points:e,spatialReference:n}}(t)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const t=(0,f.ge)(this);return t?new a.A({...t,spatialReference:this.spatialReference}):null}writePoints(t,e){e.points=(0,o.o8)(this.points)}clone(){const{points:t,spatialReference:e,hasM:s,hasZ:n}=this;return new i({points:(0,o.o8)(t),spatialReference:e.clone(),hasM:s,hasZ:n})}equals(t){if(this===t)return!0;if(null==t)return!1;const e=this.spatialReference,s=t.spatialReference;return null!=e==(null!=s)&&!(null!=e&&null!=s&&!e.equals(s))&&(0,r.aI)(this.points,t.points,y.v6)}addPoint(t){return(0,_.h)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}getPoint(t){if(!this._validateInputs(t))return null;const e=this.points[t],s={x:e[0],y:e[1],spatialReference:this.spatialReference};let i=2;return this.hasZ&&(s.z=e[2],i=3),this.hasM&&(s.m=e[i]),new u.A(s)}removePoint(t){if(!this._validateInputs(t))return null;const e=new u.A(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),e}setPoint(t,e){return this._validateInputs(t)?((0,_.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.points[t]=e,this.notifyChange("points"),this):this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,n.Cg)([(0,h.MZ)({readOnly:!0})],m.prototype,"cache",null),(0,n.Cg)([(0,h.MZ)({readOnly:!0})],m.prototype,"extent",null),(0,n.Cg)([(0,h.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],m.prototype,"points",void 0),(0,n.Cg)([(0,d.K)("points")],m.prototype,"writePoints",null),m=i=(0,n.Cg)([(0,h.$K)("esri.geometry.Multipoint")],m),m.prototype.toJSON.isDefaultToJSON=!0},82799(t,e,s){s.d(e,{A:()=>_});var i,n=s(5482),r=s(4718),o=s(91429),h=s(5443),a=s(91075),l=s(86738),u=s(16930),c=s(90634),f=s(56993),y=s(43937);let _=i=class extends a.A{constructor(t){super(function(t){if(!t)return;let{paths:e,hasM:s,hasZ:i,spatialReference:n}=t;switch(e??=[],function(t){return"number"==typeof t[0]?.[0]}(e)&&(e=[e]),e[0]?.[0]?.length){case 4:i??=!0,s??=!0;break;case 3:i??=!0!==s,s??=!i;break;default:i??=!1,s??=!1}return n??=u.A.WGS84,{...t,hasM:s,hasZ:i,paths:e,spatialReference:n}}(t)),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(t,e){e.curvePaths=(0,r.o8)(t)}get extent(){const t=(0,c.Z3)(this),{spatialReference:e}=this;return t?new h.A({...t,spatialReference:e}):null}writePaths(t,e){e.paths=(0,r.o8)(this.paths)}addPath(t){if(!t)return;const e=this.paths,s=e.length;if(function(t){return!Array.isArray(t[0])}(t)){const i=[];for(let e=0,s=t.length;e<s;e++)i[e]=t[e].toArray();e[s]=i}else e[s]=t.slice();return this.notifyChange("paths"),this}clone(){const t=new i;return t.spatialReference=this.spatialReference,t.paths=(0,r.o8)(this.paths),t.curvePaths=(0,r.o8)(this.curvePaths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,e){if(!this._validateInputs(t,e))return null;const s=this.paths[t][e],i=this.hasZ,n=this.hasM;return i&&!n?new l.A(s[0],s[1],s[2],void 0,this.spatialReference):n&&!i?new l.A(s[0],s[1],void 0,s[2],this.spatialReference):i&&n?new l.A(s[0],s[1],s[2],s[3],this.spatialReference):new l.A(s[0],s[1],this.spatialReference)}insertPoint(t,e,s){return this._validateInputs(t,e,!0)?((0,f.h)(this,s),Array.isArray(s)||(s=s.toArray()),this.paths[t].splice(e,0,s),this.notifyChange("paths"),this):this}removePath(t){if(!this._validateInputs(t,null))return null;const e=this.paths.splice(t,1)[0],s=this.spatialReference,i=e.map(t=>new l.A(t,s));return this.notifyChange("paths"),i}removePoint(t,e){if(!this._validateInputs(t,e))return null;const s=new l.A(this.paths[t].splice(e,1)[0],this.spatialReference);return this.notifyChange("paths"),s}setPoint(t,e,s){return this._validateInputs(t,e)?((0,f.h)(this,s),Array.isArray(s)||(s=s.toArray()),this.paths[t][e]=s,this.notifyChange("paths"),this):this}_validateInputs(t,e,s=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=e){const i=this.paths[t];if(s&&(e<0||e>i.length))return!1;if(!s&&(e<0||e>=i.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,n.Cg)([(0,o.MZ)({readOnly:!0})],_.prototype,"cache",null),(0,n.Cg)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],_.prototype,"curvePaths",void 0),(0,n.Cg)([(0,y.K)("curvePaths")],_.prototype,"writeCurvePaths",null),(0,n.Cg)([(0,o.MZ)({readOnly:!0})],_.prototype,"extent",null),(0,n.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],_.prototype,"paths",void 0),(0,n.Cg)([(0,y.K)("paths")],_.prototype,"writePaths",null),_=i=(0,n.Cg)([(0,o.$K)("esri.geometry.Polyline")],_),_.prototype.toJSON.isDefaultToJSON=!0},6774(t,e,s){s.d(e,{O3:()=>r,Ox:()=>o,bR:()=>i});class i{constructor(t,e){this.x=t,this.y=e}static fromArray(t){return new i(t[0],t[1])}clone(){return new i(this.x,this.y)}equals(t,e){return t===this.x&&e===this.y}isEqual(t){return t.x===this.x&&t.y===this.y}setCoords(t,e){return this.x=t,this.y=e,this}normalize(){const t=this.x,e=this.y,s=Math.sqrt(t*t+e*e);return this.x/=s,this.y/=s,this}rightPerpendicular(){const t=this.x;return this.x=this.y,this.y=-t,this}leftPerpendicular(){const t=this.x;return this.x=-this.y,this.y=t,this}move(t,e){return this.x+=t,this.y+=e,this}assign(t){return this.x=t.x,this.y=t.y,this}assignAdd(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this}assignSub(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this}rotate(t,e){const s=this.x,i=this.y;return this.x=s*t-i*e,this.y=s*e+i*t,this}rotateReverse(t,e){const s=this.x,i=this.y;return this.x=s*t+i*e,this.y=-s*e+i*t,this}scale(t){return this.x*=t,this.y*=t,this}length(){const t=this.x,e=this.y;return Math.sqrt(t*t+e*e)}sub(t){return this.x-=t.x,this.y-=t.y,this}add(t){return this.x+=t.x,this.y+=t.y,this}static distance(t,e){const s=e.x-t.x,i=e.y-t.y;return Math.sqrt(s*s+i*i)}static add(t,e){return new i(t.x+e.x,t.y+e.y)}static sub(t,e){return new i(t.x-e.x,t.y-e.y)}}class n{constructor(t,e,s){this.ratio=t,this.x=e,this.y=s}}class r{constructor(t,e,s,i=8,n=8){this._lines=[],this._starts=[],this.validateTessellation=!0,this._pixelRatio=i,this._pixelMargin=n,this._tileSize=512*i,this._dz=t,this._yPos=e,this._xPos=s}setPixelMargin(t){t!==this._pixelMargin&&(this._pixelMargin=t,this.setExtent(this._extent))}setExtent(t){this._extent=t,this._finalRatio=this._tileSize/t*(1<<this._dz);let e=this._pixelRatio*this._pixelMargin;e/=this._finalRatio;const s=t>>this._dz;e>s&&(e=s),this._margin=e,this._xmin=s*this._xPos-e,this._ymin=s*this._yPos-e,this._xmax=this._xmin+s+2*e,this._ymax=this._ymin+s+2*e}reset(t){this._type=t,this._lines=[],this._starts=[],this._line=null,this._start=0}moveTo(t,e){this._pushLine(),this._prevIsIn=this._isIn(t,e),this._moveTo(t,e,this._prevIsIn),this._prevPt=new i(t,e),this._firstPt=new i(t,e),this._dist=0}lineTo(t,e){const s=this._isIn(t,e),r=new i(t,e),o=i.distance(this._prevPt,r);let h,a,l,u,c,f,y,_;if(s)this._prevIsIn?this._lineTo(t,e,!0):(h=this._prevPt,a=r,l=this._intersect(a,h),this._start=this._dist+o*(1-this._r),this._lineTo(l.x,l.y,!0),this._lineTo(a.x,a.y,!0));else if(this._prevIsIn)a=this._prevPt,h=r,l=this._intersect(a,h),this._lineTo(l.x,l.y,!0),this._lineTo(h.x,h.y,!1);else{const t=this._prevPt,e=r;if(t.x<=this._xmin&&e.x<=this._xmin||t.x>=this._xmax&&e.x>=this._xmax||t.y<=this._ymin&&e.y<=this._ymin||t.y>=this._ymax&&e.y>=this._ymax)this._lineTo(e.x,e.y,!1);else{const s=[];if((t.x<this._xmin&&e.x>this._xmin||t.x>this._xmin&&e.x<this._xmin)&&(u=(this._xmin-t.x)/(e.x-t.x),_=t.y+u*(e.y-t.y),_<=this._ymin?f=!1:_>=this._ymax?f=!0:s.push(new n(u,this._xmin,_))),(t.x<this._xmax&&e.x>this._xmax||t.x>this._xmax&&e.x<this._xmax)&&(u=(this._xmax-t.x)/(e.x-t.x),_=t.y+u*(e.y-t.y),_<=this._ymin?f=!1:_>=this._ymax?f=!0:s.push(new n(u,this._xmax,_))),(t.y<this._ymin&&e.y>this._ymin||t.y>this._ymin&&e.y<this._ymin)&&(u=(this._ymin-t.y)/(e.y-t.y),y=t.x+u*(e.x-t.x),y<=this._xmin?c=!1:y>=this._xmax?c=!0:s.push(new n(u,y,this._ymin))),(t.y<this._ymax&&e.y>this._ymax||t.y>this._ymax&&e.y<this._ymax)&&(u=(this._ymax-t.y)/(e.y-t.y),y=t.x+u*(e.x-t.x),y<=this._xmin?c=!1:y>=this._xmax?c=!0:s.push(new n(u,y,this._ymax))),0===s.length)c?f?this._lineTo(this._xmax,this._ymax,!0):this._lineTo(this._xmax,this._ymin,!0):f?this._lineTo(this._xmin,this._ymax,!0):this._lineTo(this._xmin,this._ymin,!0);else if(s.length>1&&s[0].ratio>s[1].ratio)this._start=this._dist+o*s[1].ratio,this._lineTo(s[1].x,s[1].y,!0),this._lineTo(s[0].x,s[0].y,!0);else{this._start=this._dist+o*s[0].ratio;for(let t=0;t<s.length;t++)this._lineTo(s[t].x,s[t].y,!0)}this._lineTo(e.x,e.y,!1)}}this._dist+=o,this._prevIsIn=s,this._prevPt=r}close(){if(this._line.length>2){const t=this._firstPt,e=this._prevPt;t.x===e.x&&t.y===e.y||this.lineTo(t.x,t.y);const s=this._line;let i=s.length;for(;i>=4&&(s[0].x===s[1].x&&s[0].x===s[i-2].x||s[0].y===s[1].y&&s[0].y===s[i-2].y);)s.pop(),s[0].x=s[i-2].x,s[0].y=s[i-2].y,--i}}result(t=!0){return this._pushLine(),0===this._lines.length?null:(3===this._type&&t&&h.simplify(this._tileSize,this._margin*this._finalRatio,this._lines),this._lines)}resultWithStarts(){if(2!==this._type)throw new Error("Only valid for lines");this._pushLine();const t=this._lines,e=t.length;if(0===e)return null;const s=[];for(let i=0;i<e;i++)s.push({line:t[i],start:this._starts[i]||0});return s}_isIn(t,e){return t>=this._xmin&&t<=this._xmax&&e>=this._ymin&&e<=this._ymax}_intersect(t,e){let s,n,r;if(e.x>=this._xmin&&e.x<=this._xmax)n=e.y<=this._ymin?this._ymin:this._ymax,r=(n-t.y)/(e.y-t.y),s=t.x+r*(e.x-t.x);else if(e.y>=this._ymin&&e.y<=this._ymax)s=e.x<=this._xmin?this._xmin:this._xmax,r=(s-t.x)/(e.x-t.x),n=t.y+r*(e.y-t.y);else{n=e.y<=this._ymin?this._ymin:this._ymax,s=e.x<=this._xmin?this._xmin:this._xmax;const i=(s-t.x)/(e.x-t.x),o=(n-t.y)/(e.y-t.y);i<o?(r=i,n=t.y+i*(e.y-t.y)):(r=o,s=t.x+o*(e.x-t.x))}return this._r=r,new i(s,n)}_pushLine(){this._line&&(1===this._type?this._line.length>0&&(this._lines.push(this._line),this._starts.push(this._start)):2===this._type?this._line.length>1&&(this._lines.push(this._line),this._starts.push(this._start)):3===this._type&&this._line.length>3&&(this._lines.push(this._line),this._starts.push(this._start))),this._line=[],this._start=0}_moveTo(t,e,s){3!==this._type?s&&(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.push(new i(t,e))):(s||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),e<this._ymin&&(e=this._ymin),e>this._ymax&&(e=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.push(new i(t,e)),this._isH=!1,this._isV=!1)}_lineTo(t,e,s){let n,r;if(3!==this._type)if(s){if(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.length>0&&(n=this._line[this._line.length-1],n.equals(t,e)))return;this._line.push(new i(t,e))}else this._line&&this._line.length>0&&this._pushLine();else if(s||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),e<this._ymin&&(e=this._ymin),e>this._ymax&&(e=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line&&this._line.length>0){n=this._line[this._line.length-1];const s=n.x===t,o=n.y===e;if(s&&o)return;this._isH&&s||this._isV&&o?(n.x=t,n.y=e,r=this._line[this._line.length-2],r.x===t&&r.y===e?(this._line.pop(),this._line.length<=1?(this._isH=!1,this._isV=!1):(r=this._line[this._line.length-2],this._isH=r.x===t,this._isV=r.y===e)):(this._isH=r.x===t,this._isV=r.y===e)):(this._line.push(new i(t,e)),this._isH=s,this._isV=o)}else this._line.push(new i(t,e))}}class o{setExtent(t){this._ratio=4096===t?1:4096/t}get validateTessellation(){return this._ratio<1}reset(t){this._lines=[],this._line=null}moveTo(t,e){this._line&&this._lines.push(this._line),this._line=[];const s=this._ratio;this._line.push(new i(t*s,e*s))}lineTo(t,e){const s=this._ratio;this._line.push(new i(t*s,e*s))}close(){const t=this._line;t&&!t[0].isEqual(t[t.length-1])&&t.push(t[0])}result(){return this._line&&this._lines.push(this._line),0===this._lines.length?null:this._lines}}class h{static simplify(t,e,s){if(!s)return;const i=-e,n=t+e,r=-e,o=t+e,a=[],l=[],u=s.length;for(let t=0;t<u;++t){const e=s[t];if(!e||e.length<2)continue;let h,u=e[0];const c=e.length;for(let s=1;s<c;++s)h=e[s],u.x===h.x&&(u.x<=i&&(u.y>h.y?(a.push(t),a.push(s),a.push(0),a.push(-1)):(l.push(t),l.push(s),l.push(0),l.push(-1))),u.x>=n&&(u.y<h.y?(a.push(t),a.push(s),a.push(1),a.push(-1)):(l.push(t),l.push(s),l.push(1),l.push(-1)))),u.y===h.y&&(u.y<=r&&(u.x<h.x?(a.push(t),a.push(s),a.push(2),a.push(-1)):(l.push(t),l.push(s),l.push(2),l.push(-1))),u.y>=o&&(u.x>h.x?(a.push(t),a.push(s),a.push(3),a.push(-1)):(l.push(t),l.push(s),l.push(3),l.push(-1)))),u=h}if(0===a.length||0===l.length)return;h.fillParent(s,l,a),h.fillParent(s,a,l);const c=[];h.calcDeltas(c,l,a),h.calcDeltas(c,a,l),h.addDeltas(c,s)}static fillParent(t,e,s){const i=s.length,n=e.length;for(let r=0;r<n;r+=4){const n=e[r],o=e[r+1],h=e[r+2],l=t[n][o-1],u=t[n][o];let c=8092,f=-1;for(let e=0;e<i;e+=4){if(s[e+2]!==h)continue;const i=s[e],n=s[e+1],r=t[i][n-1],o=t[i][n];switch(h){case 0:case 1:if(a(l.y,r.y,o.y)&&a(u.y,r.y,o.y)){const t=Math.abs(o.y-r.y);t<c&&(c=t,f=e)}break;case 2:case 3:if(a(l.x,r.x,o.x)&&a(u.x,r.x,o.x)){const t=Math.abs(o.x-r.x);t<c&&(c=t,f=e)}}}e[r+3]=f}}static calcDeltas(t,e,s){const i=e.length;for(let n=0;n<i;n+=4){const i=[],r=h.calcDelta(n,e,s,i);t.push(e[n]),t.push(e[n+1]),t.push(e[n+2]),t.push(r)}}static calcDelta(t,e,s,i){const n=e[t+3];if(-1===n)return 0;const r=i.length;return r>1&&i[r-2]===n?0:(i.push(n),h.calcDelta(n,s,e,i)+1)}static addDeltas(t,e){const s=t.length;let i=0;for(let e=0;e<s;e+=4){const s=t[e+3];s>i&&(i=s)}for(let n=0;n<s;n+=4){const s=e[t[n]],r=t[n+1],o=i-t[n+3];switch(t[n+2]){case 0:s[r-1].x-=o,s[r].x-=o,1===r&&(s[s.length-1].x-=o),r===s.length-1&&(s[0].x-=o);break;case 1:s[r-1].x+=o,s[r].x+=o,1===r&&(s[s.length-1].x+=o),r===s.length-1&&(s[0].x+=o);break;case 2:s[r-1].y-=o,s[r].y-=o,1===r&&(s[s.length-1].y-=o),r===s.length-1&&(s[0].y-=o);break;case 3:s[r-1].y+=o,s[r].y+=o,1===r&&(s[s.length-1].y+=o),r===s.length-1&&(s[0].y+=o)}}}}const a=(t,e,s)=>t>=e&&t<=s||t>=s&&t<=e},6518(t,e,s){s.d(e,{F:()=>h});var i=s(44208),n=s(75503),r=s(19419);const o={minX:0,minY:0,maxX:0,maxY:0};class h{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new n.wq(9,(0,i.A)("esri-csp-restrictions")?t=>({minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const t=new Array(this._idByBounds.size);let e=0;this._idByBounds.forEach((s,i)=>{t[e++]=i}),this._indexInvalid=!1,this._index.clear(),this._index.load(t)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter(t=>this._idByBounds.has(t))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const t=(0,r.Ie)();for(const e of this._boundsById.values())e&&(t[0]=Math.min(e[0],t[0]),t[1]=Math.min(e[1],t[1]),t[2]=Math.max(e[2],t[2]),t[3]=Math.max(e[3],t[3]));return t}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(t){const e=this._boundsById.get(t);this._boundsById.delete(t),e&&(this._idByBounds.delete(e),this._indexInvalid||this._index.remove(e))}forEachInBounds(t,e){this._loadIndex(),function(t,e,s){(function(t){o.minX=t[0],o.minY=t[1],o.maxX=t[2],o.maxY=t[3]})(e),t.search(o,s)}(this._index,t,t=>e(this._idByBounds.get(t)))}get(t){return this._boundsById.get(t)}has(t){return this._boundsById.has(t)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(t,e){if(!this._indexInvalid){const e=this._boundsById.get(t);e&&(this._index.remove(e),this._idByBounds.delete(e))}this._boundsById.set(t,e),e&&(this._idByBounds.set(e,t),this._indexInvalid||(this._boundsToLoad.push(e),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},83221(t,e,s){s.d(e,{A:()=>_});var i=s(4576),n=s(49186),r=s(65529),o=s(53966),h=s(70328),a=s(19419),l=s(90708),u=s(6518),c=s(51441),f=s(37730);const y=(0,h.vt)();class _{constructor(t){this.geometryInfo=t,this._boundsStore=new u.F,this._featuresById=new Map,this._usedMemory=0,this.events=new r.bk,this.featureAdapter=f.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 t=0;return this._featuresById.forEach(e=>{null!=e.geometry&&e.geometry.coords&&(t+=e.geometry.coords.length)}),{featureCount:this._featuresById.size,vertexCount:t/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(t){if(null==this.fullBounds)return null;const[e,s,i,n]=this.fullBounds;return{xmin:e,ymin:s,xmax:i,ymax:n,spatialReference:(0,c.ag)(t)}}add(t){this._add(t),this._emitChanged()}addMany(t){for(const e of t)this._add(e);this._emitChanged()}upsertMany(t){const e=t.map(t=>this._upsert(t));return this._emitChanged(),e.filter(i.Ru)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged(),this._usedMemory=0}removeById(t){const e=this._featuresById.get(t);return e?(this._remove(e),this._emitChanged(),e):null}removeManyById(t){this._boundsStore.invalidateIndex();for(const e of t){const t=this._featuresById.get(e);t&&this._remove(t)}this._emitChanged()}forEachBounds(t,e){for(const s of t){const t=this._boundsStore.get(s.objectId);t&&e((0,h.Jt)(y,t))}}getFeature(t){return this._featuresById.get(t)}has(t){return this._featuresById.has(t)}forEach(t){this._featuresById.forEach(e=>t(e))}forEachInBounds(t,e){this._boundsStore.forEachInBounds(t,t=>{e(this._featuresById.get(t))})}_emitChanged(){this.events.emit("changed",void 0)}_add(t){if(!t)return;const e=t.objectId;if(null==e)return void o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new n.A("featurestore:invalid-feature","feature id is missing",{feature:t}));const s=this._featuresById.get(e);let i;if(s?(t.displayId=s.displayId,i=this._boundsStore.get(e),this._boundsStore.delete(e),this._usedMemory-=this.estimateFeatureUsedMemory?.(s)??0):null!=this.onFeatureAdd&&this.onFeatureAdd(t),!t.geometry?.coords?.length)return this._boundsStore.set(e,null),void this._featuresById.set(e,t);i=(0,l.jQ)(null!=i?i:(0,a.vt)(),t.geometry),null!=i&&this._boundsStore.set(e,i),this._featuresById.set(e,t),this._usedMemory+=this.estimateFeatureUsedMemory?.(t)??0}_upsert(t){const e=t?.objectId;if(null==e)return o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new n.A("featurestore:invalid-feature","feature id is missing",{feature:t})),null;const s=this._featuresById.get(e);if(!s)return this._add(t),t;this._usedMemory-=this.estimateFeatureUsedMemory?.(s)??0;const{geometry:i,attributes:r}=t;for(const t in r)s.attributes[t]=r[t];return i&&(s.geometry=i,this._boundsStore.set(e,(0,l.jQ)((0,a.vt)(),i)??null)),this._usedMemory+=this.estimateFeatureUsedMemory?.(s)??0,s}_remove(t){null!=this.onFeatureRemove&&this.onFeatureRemove(t);const e=t.objectId;return this._boundsStore.delete(e),this._featuresById.delete(e),this._usedMemory-=this.estimateFeatureUsedMemory?.(t)??0,t}}},51441(t,e,s){s.d(e,{LQ:()=>n,ag:()=>o,pL:()=>r});var i=s(90708);function n(t,e,s,n=t.hasZ,r=t.hasM){if(null==e)return null;const o=t.hasZ&&n,h=t.hasM&&r;if(s){const t=(0,i.Nl)(e,"esriGeometryPoint",s,n,r);return(0,i.DF)(t,o,h)}return(0,i.DF)(e,o,h)}function r(t,e,s,n,r,o){if(null==e)return null;const h="coords"in e?e:e.geometry;if(null==h)return null;const{hasZ:a,hasM:l}=h,u=a&&(r??=a),c=l&&(o??=l);if(s){let e=(0,i.kz)(h,t,s,r,o);return n&&(e=(0,i.Nl)(e,t,n)),(0,i.zv)(e,t,u,c)}if(n){const e=(0,i.Nl)(h,t,n,r,o);return(0,i.zv)(e,t,u,c)}return(0,i.zv)(h,t,u,c)}function o(t){return t&&h in t?JSON.parse(JSON.stringify(t,a)):t}const h="_geVersion",a=(t,e)=>t===h?void 0:e},37730(t,e,s){var i=s(43334);const n={getObjectId:t=>t.objectId,getAttributes:t=>t.attributes,getAttribute:(t,e)=>t.attributes[e],cloneWithGeometry:(t,e,s)=>new i.Om(e,t.attributes,null,t.objectId,t.displayId,t.distance,t.vertexCount),getGeometry:t=>t.geometry,getCentroid:(t,e)=>t.ensureCentroid(e)};s.d(e,["T",0,n])},31464(t,e,s){s.d(e,{Cv:()=>y,Nk:()=>f,lK:()=>d});var i=s(4576),n=s(91218),r=s(60408),o=s(21325),h=s(28735);const a=[0,0];function l(t,e){const s=(0,o.K8)(t)?h.je:h.tD;if((0,r.fT)(e)){const t={x:0,y:0};return[t.x,t.y]=s(e.x,e.y,a),null!=e.z&&(t.z=e.z),null!=e.m&&(t.m=e.m),t}if((0,r.ZC)(e)){const t={xmin:0,ymin:0,xmax:0,ymax:0};return[t.xmin,t.ymin]=s(e.xmin,e.ymin,a),[t.xmax,t.ymax]=s(e.xmax,e.ymax,a),e.hasZ&&(t.zmin=e.zmin,t.zmax=e.zmax,t.hasZ=!0),e.hasM&&(t.mmin=e.mmin,t.mmax=e.mmax,t.hasM=!0),t}if((0,r.Bi)(e))return{rings:u(e.rings,s),hasM:e.hasM,hasZ:e.hasZ};if((0,r.Rg)(e))return{paths:u(e.paths,s),hasM:e.hasM,hasZ:e.hasZ};if((0,r.U9)(e))return{points:c(e.points,s),hasM:e.hasM,hasZ:e.hasZ};throw new Error}function u(t,e){const s=[];for(const i of t)s.push(c(i,e));return s}function c(t,e){const s=[];for(const i of t){const t=e(i[0],i[1],[0,0]);s.push(t),i.length>2&&t.push(i[2]),i.length>3&&t.push(i[3])}return s}async function f(t,e){if(!t||!e)return;const s=Array.isArray(t)?t.map(t=>null!=t.geometry?t.geometry.spatialReference:null).filter(i.Ru):[t];await(0,n.initializeProjection)(s.map(t=>({source:t,dest:e})))}function y(t,e,s,i){if(!t)return null;if(s||(s=e,e=t.spatialReference),!(0,o.fn)(e)||!(0,o.fn)(s)||(0,o.aI)(e,s))return t;if((0,h.y7)(e,s)){const e=l(s,t);return e.spatialReference=s,e}return(0,n.projectMany)([t],e,s,i)[0]}const _=new class{constructor(){this._jobs=[],this._timer=null,this._process=this._process.bind(this)}async push(t,e,s,i){if(!t?.length||!e||!s||(0,o.aI)(e,s))return t;const n={geometries:t,inSpatialReference:e,outSpatialReference:s,options:i,resolve:Promise.withResolvers()};return this._jobs.push(n),this._timer??=setTimeout(this._process,10),n.resolve.promise}_process(){this._timer=null;const t=this._jobs.shift();if(!t)return;const{geometries:e,inSpatialReference:s,outSpatialReference:i,resolve:r,options:o}=t,a=e.filter(t=>null!=t);let u;u=(0,h.y7)(s,i)&&null==o?.extendedParams?a.map(t=>l(i,t)):(0,n.projectMany)(a,s,i,o);let c=0;const f=e.map(t=>null==t?null:u[c++]);r.resolve(f),this._jobs.length>0&&(this._timer=setTimeout(this._process,10))}};function d(t,e,s,i){return _.push(t,e,s,i)}},85113(t,e,s){s.d(e,{BM:()=>T,bd:()=>B,sO:()=>I,xD:()=>c});var i=s(67482),n=s(49186),r=s(21325),o=s(90708),h=s(43334),a=s(92722),l=s(30524);const u={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function c(t){return u[t]}function*f(t){switch(t.type){case"Feature":yield t;break;case"FeatureCollection":for(const e of t.features)e&&(yield e)}}function*y(t){if(t)switch(t.type){case"Point":yield t.coordinates;break;case"LineString":case"MultiPoint":yield*t.coordinates;break;case"MultiLineString":case"Polygon":for(const e of t.coordinates)yield*e;break;case"MultiPolygon":for(const e of t.coordinates)for(const t of e)yield*t}}function _(t){for(const e of t)if(e.length>2)return!0;return!1}function d(t){let e=0;for(let s=0;s<t.length;s++){const i=t[s],n=t[(s+1)%t.length];e+=i[0]*n[1]-n[0]*i[1]}return e<=0}function m(t){const e=t[0],s=t[t.length-1];e[0]===s[0]&&e[1]===s[1]&&e[2]===s[2]||t.push(e)}function p(t,e){const{coordinates:s,type:i}=t,n=e.hasZ??!1,r=!0;switch(i){case"Point":return new a.A([],[...s],n,!1);case"LineString":return(0,o.Ap)({paths:[s],hasZ:r},n,!1);case"MultiLineString":return(0,o.Ap)({paths:s,hasZ:r},n,!1);case"MultiPoint":return(0,o.PR)({points:s,hasZ:r},n,!1);case"Polygon":case"MultiPolygon":{const t=new a.A([],[],n,!1);for(const e of"Polygon"===i?[s]:s){g(t,e[0],n);for(let s=1;s<e.length;s++)x(t,e[s],n)}return t}}}function g(t,e,s){m(e),function(t){return!d(t)}(e)?M(t,e,s):w(t,e,s)}function x(t,e,s){m(e),function(t){return d(t)}(e)?M(t,e,s):w(t,e,s)}function w(t,e,s){for(const i of e)b(t,i,s);t.lengths.push(e.length)}function M(t,e,s){for(let i=e.length-1;i>=0;i--)b(t,e[i],s);t.lengths.push(e.length)}function b(t,[e,s,i],n){t.coords.push(e,s),n&&t.coords.push(i||0)}function v(t){switch(typeof t){case"string":return(0,i.C)(t)?"esriFieldTypeDate":"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function I(t,e=4326){if(!t)throw new n.A("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==t.type&&"FeatureCollection"!==t.type)throw new n.A("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:t});const{crs:s}=t;if(!s)return;const i="string"==typeof s?s:"name"===s.type?s.properties.name:"EPSG"===s.type?s.properties.code:null,o=(0,r.oT)({wkid:e})?new RegExp(".*(CRS84H?|4326)$","i"):new RegExp(`.*(${e})$`,"i");if(!i||!o.test(i))throw new n.A("geojson:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:s})}function T(t,e={}){const s=[],i=new Set,n=new Set;let r,o=!1,h=null,a=!1,{geometryType:u=null}=e;for(const e of f(t)){const{geometry:t,properties:f,id:d}=e;if((!t||(u||(u=c(t.type)),c(t.type)===u))&&(o||(o=_(y(t))),a||(a=null!=d,a&&(r=typeof d,f&&(h=Object.keys(f).filter(t=>f[t]===d)))),f&&h&&a&&null!=d&&(h.length>1?h=h.filter(t=>f[t]===d):1===h.length&&(h=f[h[0]]===d?h:[])),f))for(const t in f){if(i.has(t))continue;const e=v(f[t]);if("unknown"===e){n.add(t);continue}n.delete(t),i.add(t);const r=(0,l.rS)(t);r&&s.push({name:r,alias:t,type:e})}}const d=(0,l.rS)(1===h?.length&&h[0]||null)??void 0;if(d)for(const t of s)if(t.name===d&&(0,l.WA)(t)){t.type="esriFieldTypeOID";break}return{fields:s,geometryType:u,hasZ:o,objectIdFieldName:d,objectIdFieldType:r,unknownFields:Array.from(n)}}function B(t,e){return Array.from(function*(t,e={}){const{geometryType:s,objectIdField:i}=e;for(const n of t){const{geometry:t,properties:r,id:o}=n;if(t&&c(t.type)!==s)continue;const a=r||{};let l;i&&(l=a[i],null==o||l||(a[i]=l=o)),yield new h.Om(t&&p(t,e),a,null,l)}}(f(t),e))}},14289(t,e,s){s.r(e),s.d(e,{default:()=>A});var i=s(11254),n=s(17676),r=s(19419),o=s(21325),h=s(6774),a=s(90708),l=s(92722),u=s(83221),c=s(31464),f=s(85113);const y=new TextEncoder;class _{constructor(){this._bytes=[]}finish(){return new Uint8Array(this._bytes)}writeBooleanField(t,e){this._writeTag(t,0),this.writeVarint(e?1:0)}writeDoubleField(t,e){this._writeTag(t,1);const s=new ArrayBuffer(8);new DataView(s).setFloat64(0,e,!0),this._writeBytes(new Uint8Array(s))}writeMessage(t,e,s){this._writeTag(t,2);const i=this._bytes.length;for(let t=0;t<5;t++)this._bytes.push(0);const n=this._bytes.length;e(s,this),this._writeMessageLength(i,this._bytes.length-n)}writeStringField(t,e){const s=y.encode(e);this._writeTag(t,2),this.writeVarint(s.byteLength),this._writeBytes(s)}writeSVarintField(t,e){this._writeTag(t,0),this.writeVarint(e<0?2*-e-1:2*e)}writeVarint(t){for(;t>127;)this._bytes.push(127&t|128),t=Math.floor(t/128);this._bytes.push(t)}writeVarintField(t,e){this._writeTag(t,0),this.writeVarint(e)}_writeBytes(t){for(const e of t)this._bytes.push(e)}_writeMessageLength(t,e){let s=0;for(;e>127;)this._bytes[t+s++]=127&e|128,e=Math.floor(e/128);this._bytes[t+s++]=e,this._bytes.splice(t+s,5-s)}_writeTag(t,e){this.writeVarint(t<<3|e)}}function d(t,e,s){const i=new _;return i.writeMessage(3,m,{cursor:e,extent:s,keyIndices:new Map,keys:[],name:t,valueIndices:new Map,values:[]}),Uint8Array.from(i.finish()).buffer}function m(t,e){for(e.writeVarintField(15,1),e.writeStringField(1,t.name),e.writeVarintField(5,t.extent);t.cursor.next();)e.writeMessage(2,p,t);for(const s of t.keys)e.writeStringField(3,s);for(const s of t.values)e.writeMessage(4,w,s)}function p(t,e){const s=t.cursor.getId();"number"==typeof s&&e.writeVarintField(1,s),e.writeMessage(2,g,t),e.writeVarintField(3,t.cursor.getType()),e.writeMessage(4,x,t.cursor)}function g(t,e){const s=t.cursor.getAttributes();if(s)for(const i of Object.keys(s)){const n=M(s[i]);if(null==n)continue;let r=t.keyIndices.get(i);null==r&&(r=t.keys.length,t.keyIndices.set(i,r),t.keys.push(i));const o=`${typeof n}:${n}`;let h=t.valueIndices.get(o);null==h&&(h=t.values.length,t.valueIndices.set(o,h),t.values.push(n)),e.writeVarint(r),e.writeVarint(h)}}function x(t,e){const s=t.getType();let i=0,n=0;for(let r=0;r<t.getPathCount();r++){const o=t.getPathLength(r),h=1===s?o:1;e.writeVarint(b(1,h));const a=3===s?o-1:o;for(let o=0;o<a;o++){1===o&&1!==s&&e.writeVarint(b(2,a-1));const h=t.getX(r,o),l=t.getY(r,o);e.writeVarint(v(h-i)),e.writeVarint(v(l-n)),i=h,n=l}3===s&&e.writeVarint(b(7,1))}}function w(t,e){"string"==typeof t?e.writeStringField(1,t):"boolean"==typeof t?e.writeBooleanField(7,t):Number.isInteger(t)?t<0?e.writeSVarintField(6,t):e.writeVarintField(5,t):e.writeDoubleField(3,t)}function M(t){return"string"==typeof t||"boolean"==typeof t||"number"==typeof t?t:null==t?null:JSON.stringify(t)??null}function b(t,e){return(e<<3)+(7&t)}function v(t){return t<<1^t>>31}const I=4096,T=20037508.342787,B=2*T,P=[{geometryType:"esriGeometryPolygon",vectorTileGeometryType:3},{geometryType:"esriGeometryPolyline",vectorTileGeometryType:2},{geometryType:"esriGeometryPoint",vectorTileGeometryType:1},{geometryType:"esriGeometryMultipoint",vectorTileGeometryType:1}];class A{constructor(){this._buffer=128,this._featureIds=new Map,this._name="",this._stores=[],this._tolerance=.375}destroy(){for(const{store:t}of this._stores)t.clear();this._featureIds.clear(),this._stores.length=0}async initialize({definition:t,name:e,requestOptions:s},r={}){if(null==t.data)throw new Error(`GeoJSON source '${e}' must define a data property.`);if(!0===t.lineMetrics)throw new Error("GeoJSON lineMetrics are not supported.");if(t.promoteId&&t.generateId)throw new Error("GeoJSON promoteId and generateId cannot be used together.");const o="string"==typeof t.data?(await(0,i.A)(t.data,{...s,responseType:"json",signal:r.signal})).data:t.data;(0,n.Te)(r),(0,f.sO)(o),this.destroy(),this._buffer=t.buffer??128,this._name=e,this._tolerance=t.tolerance??.375;let h=0;for(const{geometryType:e,vectorTileGeometryType:s}of P){const i=(0,f.bd)(o,{geometryType:e,hasZ:!1}),n=S(o,e,t);if(0===i.length)continue;const r=new u.A({geometryType:e,hasM:!1,hasZ:!1}),a=[];let l=0;for(const t of i){const s=R(t.geometry,e);s&&(t.objectId=h++,t.geometry=s,this._featureIds.set(t.objectId,n[l++]??null),a.push(t))}a.length>0&&(r.addMany(a),this._stores.push({geometryType:e,store:r,vectorTileGeometryType:s}))}return(0,n.Te)(r),{geometryTypes:["polygon","line","point"].filter(t=>this._stores.some(({vectorTileGeometryType:e})=>e===function(t){switch(t){case"polygon":return 3;case"line":return 2;case"point":return 1}}(t)))}}requestTile({col:t,level:e,row:s},i={}){(0,n.Te)(i);const r=this._getTileFeatures(e,s,t),o=r.length>0?d(this._name,new F(r),I):new ArrayBuffer(0);return(0,n.Te)(i),{result:o,transferList:[o]}}_getTileFeatures(t,e,s){const i=B/2**t,n=s*i-T,o=T-e*i,h=i/I,a=this._buffer*h,l=this._tolerance*h,u=[];for(const t of[-B,0,B]){const e=(0,r.fA)(n-a-t,o-i-a,n+i+a-t,o+a),s={scale:[h,-h,1,1],translate:[n-t,o,0,0]};for(const{geometryType:t,store:i,vectorTileGeometryType:n}of this._stores)i.forEachInBounds(e,e=>{const i=C(e,t,n,s,l,this._buffer);i&&u.push({attributes:e.attributes,geometry:i,id:this._featureIds.get(e.objectId),type:n})})}return u}}function S(t,e,s){const i=[],n="FeatureCollection"===t.type?t.features:[t];for(let t=0;t<n.length;t++){const r=n[t];if(!r.geometry||(0,f.xD)(r.geometry.type)!==e)continue;const o=s.promoteId?r.properties?.[s.promoteId]:!0===s.generateId?t:r.id;i.push("number"==typeof o||"string"==typeof o?o:null)}return i}function R(t,e){return t?(0,a.Ux)((0,c.Cv)((0,a.zv)(t,e,!1,!1),o.KK,o.ch))??null:null}function C(t,e,s,i,n,r){if(!t.geometry)return null;const o=n>0?(0,a.kz)(t.geometry,e,n,!1,!1):t.geometry;return function(t,e,s){if(!t)return null;const i=new h.O3(0,0,0,8,s/8);if(i.setExtent(I),i.reset(e),1===e)for(let e=0;e<t.size;e++){const s=e*t.stride;i.moveTo(t.coords[s],t.coords[s+1])}else{let s=0;for(const n of t.lengths){i.moveTo(t.coords[s],t.coords[s+1]);for(let e=1;e<n;e++){const n=s+e*t.stride;i.lineTo(t.coords[n],t.coords[n+1])}3===e&&i.close(),s+=n*t.stride}}const n=i.result();if(!n)return null;const r=1===e?[n.length]:n.map(t=>t.length),o=[];for(const t of n)for(const e of t)o.push(e.x,e.y);return new l.A(r,o)}((0,a.Nl)(o,e,i,!1,!1,!0),s,r)}class F{constructor(t){this._features=t,this._index=-1,this._pathOffsets=[]}get _feature(){return this._features[this._index]}destroy(){}getAttributes(){return this._feature.attributes}getId(){return this._feature.id}getPathCount(){return 1===this._feature.type?1:this._feature.geometry.lengths.length}getPathLength(t){return 1===this._feature.type?this._feature.geometry.size:this._feature.geometry.lengths[t]}getType(){return this._feature.type}getX(t,e){return this._feature.geometry.coords[this._getCoordinateIndex(t,e)]}getY(t,e){return this._feature.geometry.coords[this._getCoordinateIndex(t,e)+1]}next(){return!(++this._index>=this._features.length||(this._pathOffsets=function(t){const e=new Array(t.lengths.length);let s=0;for(let i=0;i<t.lengths.length;i++)e[i]=s,s+=t.lengths[i];return e}(this._feature.geometry),0))}_getCoordinateIndex(t,e){return(1===this._feature.type?e:this._pathOffsets[t]+e)*this._feature.geometry.stride}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3649,6344],{68197(e,t,n){n.d(t,{A:()=>u});var r=n(40876),i=n(4576),s=n(34727),o=n(56507);function a(e){return(0,s.qE)((0,o.Vr)(e),0,255)}function l(e,t){const n=e.toString(16).padStart(2,"0");return t?n.slice(0,1):n}class u{static blendColors(e,t,n,r=new u){return r.r=Math.round(e.r+(t.r-e.r)*n),r.g=Math.round(e.g+(t.g-e.g)*n),r.b=Math.round(e.b+(t.b-e.b)*n),r.a=e.a+(t.a-e.a)*n,r._sanitize()}static fromRgb(e,t){const n=(0,r.lT)(e);return n?u.fromArray(n,t):null}static fromHex(e,t=new u){const n=(0,r.oW)(e);return n?u.fromArray(n,t):null}static fromArray(e,t=new u){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const n=(0,r.Eq)(e);return n?u.fromArray(n,t):null}static fromJSON(e){return null!=e?new u([e[0],e[1],e[2],(e[3]??255)/255]):void 0}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(e){return e??=[0,0,0,0],e[0]=this.r/255,e[1]=this.g/255,e[2]=this.b/255,e[3]=null!=this.a?this.a:1,e}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){if("string"==typeof e)u.fromString(e,this);else if((0,i.yc)(e))u.fromArray(e,this);else{const t=e;this._set(t.r??0,t.g??0,t.b??0,t.a??1),e instanceof u||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){const t=e?.capitalize??!1,n=e?.digits??6,r=3===n||4===n,i=4===n||8===n,s=`#${l(this.r,r)}${l(this.g,r)}${l(this.b,r)}${i?l(Math.round(255*this.a),r):""}`;return t?s.toUpperCase():s}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=0){const t=a(this.r),n=a(this.g),r=a(this.b);return 0===e||1!==this.a?[t,n,r,a(255*this.a)]:[t,n,r]}clone(){return new u(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=(0,r.c1)(this.r),this.g=(0,r.c1)(this.g),this.b=(0,r.c1)(this.b),this.a=(0,r.G1)(this.a),this}_set(e,t,n,r){this.r=e,this.g=t,this.b=n,this.a=r}}u.prototype.declaredClass="esri.Color"},52106(e,t,n){n.d(t,{A:()=>w});var r,i,s=n(5482),o=n(37838),a=n(69540),l=n(51447),u=n(25482),c=n(53966),h=n(36708),f=n(24326),d=n(91429),m=n(12195),p=n(65864),g=n(50498),y=n(55156),b=n(60950),v=n(54339),_=n(94128),x=n(33910);function M(e){if(null==e)return null;const t={};for(const n in e){const r=e[n];r&&(t[n]=r.toJSON())}return 0!==Object.keys(t).length?t:null}let w=class extends((0,a.OU)(u.o)){static{r=_.Z}static{i=this}constructor(e){super(e),this[r]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperty(this,"uid",{value:(0,f.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,l.eF)(c.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),"mesh"!==e?.type&&this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new i({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=(0,b.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const n=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[n,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const n=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",n,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,y.I)(this.origin);if(e)return(0,v.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,v.r)(this,t):null}getGlobalId(){const e=(0,y.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);const t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){const e={aggregateGeometries:M(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,m.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const n={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",n,n,e.action)}}_notifyLayer(e,t,n,r){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const i={graphic:this,property:e,oldValue:t,newValue:n};"origin-transform"===e&&(i.action=r),"attributes"===e&&(i.attributeName=r),this.layer.graphicChanged(i)}_watchMeshGeometryChanges(){this.addHandles([(0,h.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,h.z7)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const e=this.geometry;"mesh"===e?.type&&e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)},{equals:(e,t)=>e===t,sync:!0})])}};(0,s.Cg)([(0,d.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const n in e){const r=(0,p.rS)(e[n]);r&&(t[n]=r)}return 0!==Object.keys(t).length?t:null}}})],w.prototype,"aggregateGeometries",null),(0,s.Cg)([(0,d.MZ)({value:null})],w.prototype,"attributes",null),(0,s.Cg)([(0,d.MZ)({value:null,types:g.yR,json:{read:p.rS}})],w.prototype,"geometry",null),(0,s.Cg)([(0,d.MZ)()],w.prototype,"distance",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean})],w.prototype,"isAggregate",void 0),(0,s.Cg)([(0,d.MZ)({clonable:!1})],w.prototype,"layer",void 0),(0,s.Cg)([(0,d.MZ)({clonable:"reference"})],w.prototype,"origin",void 0),(0,s.Cg)([(0,d.MZ)({type:o.A,value:null})],w.prototype,"popupTemplate",null),(0,s.Cg)([(0,d.MZ)({clonable:"reference"})],w.prototype,"sourceLayer",void 0),(0,s.Cg)([(0,d.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],w.prototype,"statisticsAggregatedIds",void 0),(0,s.Cg)([(0,d.MZ)({value:null,types:x.Es})],w.prototype,"symbol",null),(0,s.Cg)([(0,d.MZ)({clonable:!1,json:{read:!1,write:!1}})],w.prototype,"_version",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean,value:!0})],w.prototype,"visible",null),w=i=(0,s.Cg)([(0,d.$K)("esri.Graphic")],w)},40876(e,t,n){n.d(t,{Eq:()=>d,G1:()=>p,TS:()=>s,V6:()=>i,Vm:()=>m,ay:()=>l,c1:()=>g,c4:()=>o,j5:()=>u,lT:()=>h,oW:()=>c,xV:()=>v});const r={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function i(e){return!!r[e]||!!r[e.toLowerCase()]}function s(e){return r[e]??r[e.toLowerCase()]}function o(e){return[...s(e)]}function a(e,t,n){n<0&&++n,n>1&&--n;const r=6*n;return r<1?e+(t-e)*r:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function l(e,t,n,r=1){const i=(e%360+360)%360/360,s=n<=.5?n*(t+1):n+t-n*t,o=2*n-s;return[Math.round(255*a(o,s,i+1/3)),Math.round(255*a(o,s,i)),Math.round(255*a(o,s,i-1/3)),r]}function u(e){const t=e.length>5,n=t?8:4,r=(1<<n)-1,i=t?1:17,s=t?9===e.length:5===e.length;let o=Number("0x"+e.slice(1));if(isNaN(o))return null;const a=[0,0,0,1];let l;return s&&(l=o&r,o>>=n,a[3]=i*l/255),l=o&r,o>>=n,a[2]=i*l,l=o&r,o>>=n,a[1]=i*l,l=o&r,o>>=n,a[0]=i*l,a}function c(e){if(!e.startsWith("#")||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{const t=parseInt(e.slice(1,2),16),n=parseInt(e.slice(2,3),16),r=parseInt(e.slice(3,4),16),i=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,n+16*n,r+16*r,(i+16*i)/255]}case 7:case 9:return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16),(7===e.length?255:parseInt(e.slice(7),16))/255];default:return null}}function h(e){const t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){const e=t[2].split(/\s*,\s*/),n=t[1];if("rgb"===n&&3===e.length||"rgba"===n&&4===e.length){if(e[0].endsWith("%")){const t=e.map(e=>2.56*parseFloat(e));return 4===e.length&&(t[3]=parseFloat(e[3])),f(t)}return f(e.map(e=>parseFloat(e)))}if("hsl"===n&&3===e.length||"hsla"===n&&4===e.length)return l(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function f(e){return e[0]=g(e[0]),e[1]=g(e[1]),e[2]=g(e[2]),e[3]=4===e.length?p(e[3]):1,e}function d(e){let t=i(e)?s(e):null;return t??=h(e),t??=c(e),t}function m(e){const t=d(e);return null!=t?[t[0]/255,t[1]/255,t[2]/255,t[3]]:null}function p(e){return y(e,0,1)}function g(e){return Math.round(y(e,0,255))}function y(e,t,n){return e=Number(e),isNaN(e)?n:e<t?t:e>n?n:e}const b=1/2.2;function v(e){return e**b}n.d(t,["iw",0,b])},66344(e,t,n){n.d(t,{q:()=>a});const r=!!(0,n(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class i{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){const n=this._db.get(e.id+t);return n?.size??0}put(e,t,n,i,o){t=e.id+t;const a=this._db.get(t);if(a&&(this._size-=a.size,e.size-=a.size,this._db.delete(t),a.entry!==n&&this._notifyRemove(t,a.entry,a.size,0)),i>this._maxSize)return void this._notifyRemove(t,n,i,0);if(void 0===n)return void console.warn("Refusing to cache undefined entry ");if(!i||i<0)return r||console.warn(`Refusing to cache entry with size ${i} for key ${t}`),void this._notifyRemove(t,n,0,0);const l=1+Math.max(o,-4)- -3;this._db.set(t,new s(n,i,l)),this._size+=i,e.size+=i,this._checkSize()}updateSize(e,t){t=e.id+t;const n=this._db.get(t);if(!n)return;this._size-=n.size,e.size-=n.size;let r=n.entry.usedMemory;for(;r>this._maxSize;){const e=this._notifyRemove(t,n.entry,r,1);if(!(null!=e&&e>0))return void this._db.delete(t);r=e}n.size=r,this._size+=r,e.size+=r,this._checkSize()}pop(e,t){t=e.id+t;const n=this._db.get(t);if(n)return this._size-=n.size,e.size-=n.size,this._db.delete(t),++this._hit,n.entry;++this._miss}get(e,t){t=e.id+t;const n=this._db.get(t);if(void 0!==n)return this._db.delete(t),n.lives=n.lifetime,this._db.set(t,n),++this._hit,n.entry;++this._miss}peek(e,t){const n=this._db.get(e.id+t);return n?++this._hit:++this._miss,n?.entry}get performanceInfo(){const 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={},n=new Array;this._db.forEach((e,r)=>{const i=e.lifetime;n[i]=(n[i]||0)+e.size,this._clients.forEach(n=>{const{id:i,name:s}=n;if(r.startsWith(i)){const n=t[s]||0;t[s]=n+e.size}})});const r={};this._clients.forEach(e=>{const n=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){const i=t[n]||0;t[n]=i,r[n]=Math.round(100*e.hitRate)+"%"}else r[n]="0%"});const i=Object.keys(t);i.sort((e,n)=>t[n]-t[e]),i.forEach(n=>e[n]=Math.round(t[n]/2**20)+"MB / "+r[n]);for(let t=n.length-1;t>=0;--t){const r=n[t];r&&(e["Priority "+(t+-3-1)]=Math.round(r/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._clients.forEach(e=>e.resetHitRate())}clear(e){const t=e.id;this._db.forEach((e,n)=>{n.startsWith(t)&&(this._size-=e.size,this._db.delete(n),this._notifyRemove(n,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(const[t,n]of this._db)t.startsWith(e.id)&&(yield n.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,n,r){const i=this._clients.get(e.split(o)[0])?.removeFunc,s=i?.(t,r,n);return"number"==typeof s?s: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){const n=t??this;if(n.size<=e)return;const r=t?.id;let i=!0;for(;i;){i=!1;for(const[s,a]of this._db)if(0===a.lifetime&&(!r||s.startsWith(r))){const r=t??this._clients.get(s.split(o)[0]);if(this._purgeItem(s,a,r),n.size<=.9*e)return;i||=this._db.has(s)}}for(const[i,s]of this._db)if(!r||i.startsWith(r)){const r=t??this._clients.get(i.split(o)[0]);if(this._purgeItem(i,s,r),n.size<=.9*e)return}}_purgeItem(e,t,n){if(this._db.delete(e),t.lives<=1){this._size-=t.size,n&&(n.size-=t.size);const r=this._notifyRemove(e,t.entry,t.size,1);null!=r&&r>0&&(this._size+=r,n&&(n.size+=r),t.lives=t.lifetime,t.size=r,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}new i(0);class s{constructor(e,t,n){this.entry=e,this.size=t,this.lifetime=n,this.lives=n}}const o=":";class a{constructor(e,t){this.removeFunc=t,this.id="",this.name="",this.size=0,this._storage=new i(e,1),this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(e,t,n=1){this._storage.put(this,e,t,n,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(){}}},9093(e,t,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(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]]}n.d(t,{o8:()=>i,vt:()=>r});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:i,create:r,fromValues:function(e,t,n,r,i,s,o,a,l,u,c,h,f,d,m,p){return[e,t,n,r,i,s,o,a,l,u,c,h,f,d,m,p]}},Symbol.toStringTag,{value:"Module"})),n.d(t,["zK",0,s])},35522(e,t,n){n.d(t,{$A:()=>S,Bw:()=>s,C:()=>o,Cc:()=>z,DI:()=>M,Io:()=>b,Ln:()=>y,Om:()=>A,Qr:()=>h,Re:()=>u,S8:()=>w,T9:()=>p,WQ:()=>l,Z0:()=>F,_S:()=>d,aI:()=>k,ei:()=>N,fw:()=>C,gL:()=>I,hG:()=>v,hZ:()=>a,hs:()=>g,jk:()=>m,lw:()=>c,m3:()=>_,oW:()=>R,t2:()=>E,tn:()=>f,ze:()=>x});var r=n(51850),i=n(34304);function s(e){const t=e[0],n=e[1],r=e[2];return Math.sqrt(t*t+n*n+r*r)}function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(e,t,n,r){return e[0]=t,e[1]=n,e[2]=r,e}function l(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e}function u(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e}function c(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e}function h(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e}function f(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function d(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,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e}function p(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e}function g(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e}function y(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e}function b(e,t){const n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return Math.sqrt(n*n+r*r+i*i)}function v(e,t){const n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return n*n+r*r+i*i}function _(e){const t=e[0],n=e[1],r=e[2];return t*t+n*n+r*r}function x(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function M(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function w(e,t){const n=t[0],r=t[1],i=t[2];let s=n*n+r*r+i*i;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 A(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function S(e,t,n){const r=t[0],i=t[1],s=t[2],o=n[0],a=n[1],l=n[2];return e[0]=i*l-s*a,e[1]=s*o-r*l,e[2]=r*a-i*o,e}function z(e,t,n,r){const i=t[0],s=t[1],o=t[2];return e[0]=i+r*(n[0]-i),e[1]=s+r*(n[1]-s),e[2]=o+r*(n[2]-o),e}function F(e,t,n){const r=t[0],i=t[1],s=t[2];return e[0]=n[0]*r+n[4]*i+n[8]*s+n[12],e[1]=n[1]*r+n[5]*i+n[9]*s+n[13],e[2]=n[2]*r+n[6]*i+n[10]*s+n[14],e}function N(e,t,n){const r=t[0],i=t[1],s=t[2];return e[0]=r*n[0]+i*n[3]+s*n[6],e[1]=r*n[1]+i*n[4]+s*n[7],e[2]=r*n[2]+i*n[5]+s*n[8],e}function I(e,t,n){return C(e,t,n[0],n[1],n[2],n[3])}function C(e,t,n,r,i,s){const o=t[0],a=t[1],l=t[2],u=r*l-i*a,c=i*o-n*l,h=n*a-r*o,f=r*h-i*c,d=i*u-n*h,m=n*c-r*u,p=2*s;return e[0]=o+u*p+2*f,e[1]=a+c*p+2*d,e[2]=l+h*p+2*m,e}const T=(0,r.vt)(),$=(0,r.vt)();function E(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function k(e,t){if(e===t)return!0;const n=e[0],r=e[1],s=e[2],o=t[0],a=t[1],l=t[2],u=(0,i.FD)();return Math.abs(n-o)<=u*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-a)<=u*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(s-l)<=u*Math.max(1,Math.abs(s),Math.abs(l))}function R(e,t,n){const r=n[0]-t[0],i=n[1]-t[1],s=n[2]-t[2];let o=r*r+i*i+s*s;return o>0?(o=1/Math.sqrt(o),e[0]=r*o,e[1]=i*o,e[2]=s*o,e):(e[0]=0,e[1]=0,e[2]=0,e)}const O=u,L=c,j=h,Z=b,G=v,q=s,P=_;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:l,angle:function(e,t){w(T,e),w($,t);const n=A(T,$);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(e,t,n,r,i,s){const o=1-s,a=o*o,l=s*s,u=a*o,c=3*s*a,h=3*l*o,f=l*s;return e[0]=t[0]*u+n[0]*c+r[0]*h+i[0]*f,e[1]=t[1]*u+n[1]*c+r[1]*h+i[1]*f,e[2]=t[2]*u+n[2]*c+r[2]*h+i[2]*f,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,n=1){return e[0]=Math.min(Math.max(e[0],t),n),e[1]=Math.min(Math.max(e[1],t),n),e[2]=Math.min(Math.max(e[2],t),n),e},copy:o,cross:S,crossAndNormalize:function(e,t,n){const r=t[0],i=t[1],s=t[2],o=n[0],a=n[1],l=n[2],u=i*l-s*a,c=s*o-r*l,h=r*a-i*o,f=Math.sqrt(u*u+c*c+h*h);return e[0]=u/f,e[1]=c/f,e[2]=h/f,e},direction:R,dist:Z,distance:b,div:j,divide:h,dot:A,equals:k,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,n,r,i,s){const o=s*s,a=o*(2*s-3)+1,l=o*(s-2)+s,u=o*(s-1),c=o*(3-2*s);return e[0]=t[0]*a+n[0]*l+r[0]*u+i[0]*c,e[1]=t[1]*a+n[1]*l+r[1]*u+i[1]*c,e[2]=t[2]*a+n[2]*l+r[2]*u+i[2]*c,e},inverse:M,len:q,length:s,lerp:z,max:p,min:m,mul:L,multiply:c,negate:x,normalize:w,random:function(e,t=1){const n=i.Ov,r=2*n()*Math.PI,s=2*n()-1,o=Math.sqrt(1-s*s)*t;return e[0]=Math.cos(r)*o,e[1]=Math.sin(r)*o,e[2]=s*t,e},rotateX:function(e,t,n,r){const i=[],s=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],s[0]=i[0],s[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),s[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),e[0]=s[0]+n[0],e[1]=s[1]+n[1],e[2]=s[2]+n[2],e},rotateY:function(e,t,n,r){const i=[],s=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],s[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),s[1]=i[1],s[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),e[0]=s[0]+n[0],e[1]=s[1]+n[1],e[2]=s[2]+n[2],e},rotateZ:function(e,t,n,r){const i=[],s=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],s[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),s[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),s[2]=i[2],e[0]=s[0]+n[0],e[1]=s[1]+n[1],e[2]=s[2]+n[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:g,scaleAndAdd:y,set:a,sign:d,sqrDist:G,sqrLen:P,squaredDistance:v,squaredLength:_,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:O,subtract:u,transformMat3:N,transformMat4:F,transformMat4Z:function(e,t){return t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]},transformQuat:I,transformQuatValues:C},Symbol.toStringTag,{value:"Module"})),n.d(t,["Il",0,q,"jb",0,O,"lo",0,G,"uE",0,P,"xg",0,Z])},90629(e,t,n){n.d(t,{Lz:()=>i,PN:()=>s,cr:()=>o,gs:()=>l,r_:()=>u,tc:()=>a}),n(39829);const r=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i;function i(e){return e?e/72*96:0}function s(e){return e?72*e/96:0}function o(e){if("string"==typeof e){const t=e.match(r);if(t){const n=Number(t[1]),r=t[3]&&t[3].toLowerCase(),i=e.startsWith("-"),o="px"===r?s(n):n;return i?-o:o}return console.warn("screenUtils.toPt: input not recognized!"),null}return e}function a(e=0,t=0){return{x:e,y:t}}function l(e=0,t=0){return[e,t]}function u(e=0,t=0,n=0){return[e,t,n]}},13069(e,t,n){n.d(t,{AG:()=>a,lk:()=>i,vD:()=>o,yS:()=>s});const r="randomUUID"in crypto;function i(){if(r)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function s(){return`{${i().toUpperCase()}}`}function o(){return`{${i()}}`}function a(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},83027(e,t,n){const r=n(29953).ho;n.d(t,["h",0,r])},4197(e,t,n){n.d(t,{Vj:()=>c,cj:()=>u,jh:()=>s,l5:()=>a,yH:()=>l});var r=n(34275),i=n(9093);function s(e){return e<=1024?new Array(e).fill(0):new Float64Array(e)}function o(e){return((0,r.iu)(e)?e.byteLength/8:e.length)<=1024?Array.from(e):new Float64Array(e)}function a(e,t,n){return Array.isArray(e)?e.slice(t,t+n):e.subarray(t,t+n)}function l(e,t){if(0===t.length)return o(e);if(0===e.length)return o(t);const n=s(e.length+t.length);for(let t=0;t<e.length;++t)n[t]=e[t];for(let r=0;r<t.length;++r)n[e.length+r]=t[r];return n}function u(e){return[...e]}function c(e){const t=(0,i.vt)();for(let n=0;n<16;++n)t[n]=e[n];return t}},70328(e,t,n){n.d(t,{BI:()=>F,C:()=>o,DC:()=>f,Ej:()=>v,Ie:()=>S,Jt:()=>z,Lu:()=>x,Ne:()=>M,RF:()=>h,TF:()=>y,VL:()=>m,aI:()=>I,fA:()=>a,gE:()=>u,gX:()=>b,hZ:()=>A,iT:()=>d,is:()=>N,pg:()=>_,uJ:()=>g,vI:()=>w,vY:()=>l,vt:()=>s,w1:()=>c,yr:()=>p}),n(35522);var r=n(5443),i=(n(19419),n(4197));function s(e=T){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t){for(let n=0;n<6;n++)e[n]=t[n];return e}function a(e,t,n,r,i,o,a=s()){return a[0]=e,a[1]=t,a[2]=n,a[3]=r,a[4]=i,a[5]=o,a}function l(e,t=s()){return function(e,t,n,r=s()){return A(r,C),function(e,t,n=0,r=t.length/3){let i=e[0],s=e[1],o=e[2],a=e[3],l=e[4],u=e[5];for(let e=0;e<r;e++)i=Math.min(i,t[n+3*e]),s=Math.min(s,t[n+3*e+1]),o=Math.min(o,t[n+3*e+2]),a=Math.max(a,t[n+3*e]),l=Math.max(l,t[n+3*e+1]),u=Math.max(u,t[n+3*e+2]);e[0]=i,e[1]=s,e[2]=o,e[3]=a,e[4]=l,e[5]=u}(r,e,t,n),r}(e,0,e.length/3,t)}function u(e,t=(0,i.jh)(24)){const[n,r,s,o,a,l]=e;return t[0]=n,t[1]=r,t[2]=s,t[3]=n,t[4]=r,t[5]=l,t[6]=n,t[7]=a,t[8]=s,t[9]=n,t[10]=a,t[11]=l,t[12]=o,t[13]=r,t[14]=s,t[15]=o,t[16]=r,t[17]=l,t[18]=o,t[19]=a,t[20]=s,t[21]=o,t[22]=a,t[23]=l,t}function c(e,t){const n=isFinite(e[2])||isFinite(e[5]);return new r.A(n?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function h(e,t,n=e){n[0]=Math.min(e[0],t[0]),n[1]=Math.min(e[1],t[1]),n[2]=Math.min(e[2],t[2]),n[3]=Math.max(e[3],t[3]),n[4]=Math.max(e[4],t[4]),n[5]=Math.max(e[5],t[5])}function f(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 d(e,[t,n,r]){!function(e,t,n,r){e[0]=Math.min(e[0],t),e[1]=Math.min(e[1],n),e[2]=Math.min(e[2],r),e[3]=Math.max(e[3],t),e[4]=Math.max(e[4],n),e[5]=Math.max(e[5],r)}(e,t,n,r)}function m(e){return e[0]>=e[3]?0:e[3]-e[0]}function p(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 y(e){const t=m(e),n=g(e),r=p(e);return t*t+n*n+r*r}function b(e,t=[0,0,0]){return t[0]=e[0]+m(e)/2,t[1]=e[1]+p(e)/2,t[2]=e[2]+g(e)/2,t}function v(e,t=[0,0,0]){return t[0]=m(e),t[1]=p(e),t[2]=g(e),t}function _(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 M(e,t,n=e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n!==e&&(n[3]=e[3],n[4]=e[4],n[5]=e[5]),n}function w(e,t,n=e){return n[3]=t[0],n[4]=t[1],n[5]=t[2],n!==e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),e}function A(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 S(e){return e?A(e,C):s(C)}function z(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function F(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=Number.NEGATIVE_INFINITY,e[3]=r,e[4]=i,e[5]=Number.POSITIVE_INFINITY,e}function N(e){return 6===e.length}function I(e,t,n){if(null==e||null==t)return e===t;if(!N(e)||!N(t))return!1;if(n){for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const C=[1/0,1/0,1/0,-1/0,-1/0,-1/0],T=[0,0,0,0,0,0];s(),n.d(t,["qv",0,C,"v_",0,T])},60408(e,t,n){function r(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function i(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":r(e)?"esriGeometryEnvelope":i(e)?"esriGeometryMultipoint":null:null}function c(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function h(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}n.d(t,{$B:()=>u,Bi:()=>a,Pv:()=>c,Rg:()=>o,U9:()=>i,W0:()=>h,ZC:()=>r,fT:()=>s,uW:()=>l})},65864(e,t,n){n.d(t,{rS:()=>c,xD:()=>f});var r=n(5443),i=n(91075),s=n(48526),o=n(86738),a=n(39829),l=n(82799),u=n(60408);function c(e){return null==e?null:e instanceof i.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)?r.A.fromJSON(e):null}const h={esriGeometryPoint:o.A,esriGeometryPolyline:l.A,esriGeometryPolygon:a.A,esriGeometryEnvelope:r.A,esriGeometryMultipoint:s.A,esriGeometryMultiPatch:a.A};function f(e){return e&&h[e]||null}},50498(e,t,n){var r=n(66552),i=n(5443),s=n(91075),o=n(48526),a=n(86738),l=n(39829),u=n(82799);const c=(0,r.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),h=(0,r.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),f={base:s.A,key:"type",typeMap:{extent:i.A,multipoint:o.A,point:a.A,polyline:u.A,polygon:l.A}},d=new r.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0});n.d(t,["Ye",0,h,"gy",0,c,"iI",0,d,"yR",0,f])},55156(e,t,n){n.d(t,{I:()=>i});const r=Symbol("idFieldsProviderSymbol");function i(e){return(t=e)&&r in t?e[r]:void 0;var t}n.d(t,["e",0,r])},76369(e,t,n){n.d(t,{LF:()=>M,M9:()=>w});var r=n(49186),i=n(93637),s=n(40876),o=n(59247),a=n(27865);class l extends SyntaxError{constructor(e,t,n,r){super(e),this.expected=t,this.found=n,this.location=r,this.name="SyntaxError"}format(e){let t="Error: "+this.message;if(this.location){let n=null;const r=e.find(e=>e.source===this.location.source);r&&(n=r.text.split(/\r\n|\n|\r/g));const i=this.location.start,s=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(i):i,o=this.location.source+":"+s.line+":"+s.column;if(n){const e=this.location.end,r="".padEnd(s.line.toString().length," "),a=n[i.line-1],l=(i.line===e.line?e.column:a.length+1)-i.column||1;t+="\n --\x3e "+o+"\n"+r+" |\n"+s.line+" | "+a+"\n"+r+" | "+"".padEnd(i.column-1," ")+"".padEnd(l,"^")}else t+="\n at "+o}return t}static buildMessage(e,t){function n(e){return e.codePointAt(0).toString(16).toUpperCase()}const r=Object.prototype.hasOwnProperty.call(RegExp.prototype,"unicode")?new RegExp("[\\p{C}\\p{Mn}\\p{Mc}]","gu"):null;function i(e){return r?e.replace(r,e=>"\\u{"+n(e)+"}"):e}function s(e){return i(e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,e=>"\\x0"+n(e)).replace(/[\x10-\x1F\x7F-\x9F]/g,e=>"\\x"+n(e)))}function o(e){return i(e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,e=>"\\x0"+n(e)).replace(/[\x10-\x1F\x7F-\x9F]/g,e=>"\\x"+n(e)))}const a={literal:e=>'"'+s(e.text)+'"',class(e){const t=e.parts.map(e=>Array.isArray(e)?o(e[0])+"-"+o(e[1]):o(e));return"["+(e.inverted?"^":"")+t.join("")+"]"+(e.unicode?"u":"")},any:()=>"any character",end:()=>"end of input",other:e=>e.description};function l(e){return a[e.type](e)}return"Expected "+function(e){const t=e.map(l);if(t.sort(),t.length>0){let e=1;for(let n=1;n<t.length;n++)t[n-1]!==t[n]&&(t[e]=t[n],e++);t.length=e}switch(t.length){case 1:return t[0];case 2:return t[0]+" or "+t[1];default:return t.slice(0,-1).join(", ")+", or "+t[t.length-1]}}(e)+" but "+function(e){return e?'"'+s(e)+'"':"end of input"}(t)+" found."}}function u(e){if(!e||0===e.length)return null;if("string"==typeof e){const t=c(e);return t&&0!==t.length?t:null}const t=e.map(e=>{if(!Number.isFinite(e.scale)||e.scale<=0)throw new r.A("effect:invalid-scale","scale must be finite and greater than 0",{stop:e});return{scale:e.scale,effects:c(e.value)}});t.sort((e,t)=>t.effects.length-e.effects.length);for(let e=0;e<t.length-1;e++){if(!(0,a.mj)(t[e].effects,t[e+1].effects))throw new r.A("effect:interpolation-impossible","Cannot interpolate by scale between 2 lists of mixed effects",{a:t[e].effects,b:t[e+1].effects});(0,a.O9)(t[e].effects,t[e+1].effects)}return t.sort((e,t)=>t.scale-e.scale),t}function c(e){let t;if(!e)return[];try{t=function(e,t){const n={},r=(t=void 0!==t?t:{}).grammarSource,i={start:xe};let s=xe;const o="none",a=")",u=",",c="(",h="%",f="px",d="cm",m="mm",p="in",g="pt",y="pc",b="deg",v="rad",_="grad",x="turn",M="#",w=".",A="e",S=/^[ \t\n\r]/,z=/^[a-z\-]/,F=/^[0-9a-fA-F]/,N=/^[+\-]/,I=/^[0-9]/,C=ye("none"),T=pe("none",!1),$=pe(")",!1),E=pe(",",!1),k=ge([" ","\t","\n","\r"],!1,!1,!1),R=ye("function"),O=pe("(",!1),L=ye("identifier"),j=ge([["a","z"],"-"],!1,!1,!1),Z=ye("percentage"),G=pe("%",!1),q=ye("length"),P=pe("px",!1),J=pe("cm",!1),B=pe("mm",!1),D=pe("in",!1),U=pe("pt",!1),V=pe("pc",!1),W=ye("angle"),H=pe("deg",!1),K=pe("rad",!1),Y=pe("grad",!1),X=pe("turn",!1),Q=ye("number"),ee=ye("color"),te=pe("#",!1),ne=ge([["0","9"],["a","f"],["A","F"]],!1,!1,!1),re=ge(["+","-"],!1,!1,!1),ie=ge([["0","9"]],!1,!1,!1),se=pe(".",!1),oe=pe("e",!1);let ae=0|t.peg$currPos,le=ae;const ue=[{line:1,column:1}];let ce,he=ae,fe=t.peg$maxFailExpected||[],de=0|t.peg$silentFails;if(t.startRule){if(!(t.startRule in i))throw new Error("Can't start parsing from rule \""+t.startRule+'".');s=i[t.startRule]}function me(){return e.substring(le,ae)}function pe(e,t){return{type:"literal",text:e,ignoreCase:t}}function ge(e,t,n,r){return{type:"class",parts:e,inverted:t,ignoreCase:n,unicode:r}}function ye(e){return{type:"other",description:e}}function be(t){let n,r=ue[t];if(r)return r;if(t>=ue.length)n=ue.length-1;else for(n=t;!ue[--n];);for(r=ue[n],r={line:r.line,column:r.column};n<t;)10===e.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return ue[t]=r,r}function ve(e,t,n){const i=be(e),s=be(t);return{source:r,start:{offset:e,line:i.line,column:i.column},end:{offset:t,line:s.line,column:s.column}}}function _e(e){ae<he||(ae>he&&(he=ae,fe=[]),fe.push(e))}function xe(){let e;return e=Me(),e===n&&(e=function(){let e,t;if(e=[],t=we(),t!==n)for(;t!==n;)e.push(t),t=we();else e=n;return e}()),e}function Me(){let t,r;return de++,t=ae,Se(),e.substr(ae,4)===o?(r=o,ae+=4):(r=n,0===de&&_e(T)),r!==n?(Se(),le=t,t=[]):(ae=t,t=n),de--,t===n&&0===de&&_e(C),t}function we(){let t,r,i,s;return t=ae,Se(),r=function(){let t,r,i;return de++,t=ae,r=ze(),r!==n?(40===e.charCodeAt(ae)?(i=c,ae++):(i=n,0===de&&_e(O)),i!==n?(le=t,t=r):(ae=t,t=n)):(ae=t,t=n),de--,t===n&&(r=n,0===de&&_e(R)),t}(),r!==n?(Se(),i=function(){let t,r,i,s,o,a,l,c;if(t=ae,r=Ae(),r!==n){for(i=[],s=ae,o=Se(),44===e.charCodeAt(ae)?(a=u,ae++):(a=n,0===de&&_e(E)),a===n&&(a=null),l=Se(),c=Ae(),c!==n?(o=[o,a,l,c],s=o):(ae=s,s=n);s!==n;)i.push(s),s=ae,o=Se(),44===e.charCodeAt(ae)?(a=u,ae++):(a=n,0===de&&_e(E)),a===n&&(a=null),l=Se(),c=Ae(),c!==n?(o=[o,a,l,c],s=o):(ae=s,s=n);le=t,t=function(e,t){return t.length>0?function(e,t){return[e].concat(function(e){return e.map(function(e){return e[3]})}(t))}(e,t):[e]}(r,i)}else ae=t,t=n;return t}(),i===n&&(i=null),Se(),41===e.charCodeAt(ae)?(s=a,ae++):(s=n,0===de&&_e($)),s!==n?(Se(),le=t,t=function(e,t){return{type:"function",name:e,parameters:t||[]}}(r,i)):(ae=t,t=n)):(ae=t,t=n),t}function Ae(){let e,t;return e=ae,t=Fe(),t===n&&(t=Ne(),t===n&&(t=Ie(),t===n&&(t=function(){let e,t;return de++,e=ae,Se(),t=Te(),t!==n?(le=e,e=function(e){return{value:e,unit:null}}(t)):(ae=e,e=n),de--,e===n&&0===de&&_e(Q),e}()))),t!==n&&(le=e,t=function(e){return{type:"quantity",value:e.value,unit:e.unit}}(t)),e=t,e===n&&(e=ae,t=Ce(),t!==n&&(le=e,t=function(e){return{type:"color",colorType:e.type,value:e.value}}(t)),e=t),e}function Se(){let t,r;for(de++,t=[],r=e.charAt(ae),S.test(r)?ae++:(r=n,0===de&&_e(k));r!==n;)t.push(r),r=e.charAt(ae),S.test(r)?ae++:(r=n,0===de&&_e(k));return de--,t}function ze(){let t,r,i;if(de++,t=ae,r=[],i=e.charAt(ae),z.test(i)?ae++:(i=n,0===de&&_e(j)),i!==n)for(;i!==n;)r.push(i),i=e.charAt(ae),z.test(i)?ae++:(i=n,0===de&&_e(j));else r=n;return r!==n&&(le=t,r=me()),t=r,de--,t===n&&(r=n,0===de&&_e(L)),t}function Fe(){let t,r,i;return de++,t=ae,Se(),r=Te(),r!==n?(37===e.charCodeAt(ae)?(i=h,ae++):(i=n,0===de&&_e(G)),i!==n?(le=t,t=function(e){return{value:e,unit:"%"}}(r)):(ae=t,t=n)):(ae=t,t=n),de--,t===n&&0===de&&_e(Z),t}function Ne(){let t,r,i;return de++,t=ae,Se(),r=Te(),r!==n?(e.substr(ae,2)===f?(i=f,ae+=2):(i=n,0===de&&_e(P)),i!==n?(le=t,t=function(e){return{value:e,unit:"px"}}(r)):(ae=t,t=n)):(ae=t,t=n),t===n&&(t=ae,Se(),r=Te(),r!==n?(e.substr(ae,2)===d?(i=d,ae+=2):(i=n,0===de&&_e(J)),i!==n?(le=t,t=function(e){return{value:e,unit:"cm"}}(r)):(ae=t,t=n)):(ae=t,t=n),t===n&&(t=ae,Se(),r=Te(),r!==n?(e.substr(ae,2)===m?(i=m,ae+=2):(i=n,0===de&&_e(B)),i!==n?(le=t,t=function(e){return{value:e,unit:"mm"}}(r)):(ae=t,t=n)):(ae=t,t=n),t===n&&(t=ae,Se(),r=Te(),r!==n?(e.substr(ae,2)===p?(i=p,ae+=2):(i=n,0===de&&_e(D)),i!==n?(le=t,t=function(e){return{value:e,unit:"in"}}(r)):(ae=t,t=n)):(ae=t,t=n),t===n&&(t=ae,Se(),r=Te(),r!==n?(e.substr(ae,2)===g?(i=g,ae+=2):(i=n,0===de&&_e(U)),i!==n?(le=t,t=function(e){return{value:e,unit:"pt"}}(r)):(ae=t,t=n)):(ae=t,t=n),t===n&&(t=ae,Se(),r=Te(),r!==n?(e.substr(ae,2)===y?(i=y,ae+=2):(i=n,0===de&&_e(V)),i!==n?(le=t,t=function(e){return{value:e,unit:"pc"}}(r)):(ae=t,t=n)):(ae=t,t=n)))))),de--,t===n&&0===de&&_e(q),t}function Ie(){let t,r,i;return de++,t=ae,r=Te(),r!==n?(e.substr(ae,3)===b?(i=b,ae+=3):(i=n,0===de&&_e(H)),i!==n?(le=t,t=function(e){return{value:e,unit:"deg"}}(r)):(ae=t,t=n)):(ae=t,t=n),t===n&&(t=ae,r=Te(),r!==n?(e.substr(ae,3)===v?(i=v,ae+=3):(i=n,0===de&&_e(K)),i!==n?(le=t,t=function(e){return{value:e,unit:"rad"}}(r)):(ae=t,t=n)):(ae=t,t=n),t===n&&(t=ae,r=Te(),r!==n?(e.substr(ae,4)===_?(i=_,ae+=4):(i=n,0===de&&_e(Y)),i!==n?(le=t,t=function(e){return{value:e,unit:"grad"}}(r)):(ae=t,t=n)):(ae=t,t=n),t===n&&(t=ae,r=Te(),r!==n?(e.substr(ae,4)===x?(i=x,ae+=4):(i=n,0===de&&_e(X)),i!==n?(le=t,t=function(e){return{value:e,unit:"turn"}}(r)):(ae=t,t=n)):(ae=t,t=n)))),de--,t===n&&(r=n,0===de&&_e(W)),t}function Ce(){let t,r,i,s;if(de++,t=ae,35===e.charCodeAt(ae)?(r=M,ae++):(r=n,0===de&&_e(te)),r!==n){if(i=[],s=e.charAt(ae),F.test(s)?ae++:(s=n,0===de&&_e(ne)),s!==n)for(;s!==n;)i.push(s),s=e.charAt(ae),F.test(s)?ae++:(s=n,0===de&&_e(ne));else i=n;i!==n?(le=t,t={type:"hex",value:me()}):(ae=t,t=n)}else ae=t,t=n;return t===n&&(t=ae,r=we(),r!==n&&(le=t,r=function(e){return{type:"function",value:e}}(r)),t=r,t===n&&(t=ae,r=ze(),r!==n&&(le=t,r={type:"named",value:me()}),t=r)),de--,t===n&&(r=n,0===de&&_e(ee)),t}function Te(){let t,r,i,s,o,a,l,u;for(t=ae,r=e.charAt(ae),N.test(r)?ae++:(r=n,0===de&&_e(re)),r===n&&(r=null),i=ae,s=[],o=e.charAt(ae),I.test(o)?ae++:(o=n,0===de&&_e(ie));o!==n;)s.push(o),o=e.charAt(ae),I.test(o)?ae++:(o=n,0===de&&_e(ie));if(46===e.charCodeAt(ae)?(o=w,ae++):(o=n,0===de&&_e(se)),o!==n){if(a=[],l=e.charAt(ae),I.test(l)?ae++:(l=n,0===de&&_e(ie)),l!==n)for(;l!==n;)a.push(l),l=e.charAt(ae),I.test(l)?ae++:(l=n,0===de&&_e(ie));else a=n;a!==n?(s=[s,o,a],i=s):(ae=i,i=n)}else ae=i,i=n;if(i===n)if(i=[],s=e.charAt(ae),I.test(s)?ae++:(s=n,0===de&&_e(ie)),s!==n)for(;s!==n;)i.push(s),s=e.charAt(ae),I.test(s)?ae++:(s=n,0===de&&_e(ie));else i=n;if(i!==n){if(s=ae,101===e.charCodeAt(ae)?(o=A,ae++):(o=n,0===de&&_e(oe)),o!==n){if(a=e.charAt(ae),N.test(a)?ae++:(a=n,0===de&&_e(re)),a===n&&(a=null),l=[],u=e.charAt(ae),I.test(u)?ae++:(u=n,0===de&&_e(ie)),u!==n)for(;u!==n;)l.push(u),u=e.charAt(ae),I.test(u)?ae++:(u=n,0===de&&_e(ie));else l=n;l!==n?(o=[o,a,l],s=o):(ae=s,s=n)}else ae=s,s=n;s===n&&(s=null),le=t,t=parseFloat(me())}else ae=t,t=n;return t}ce=s();const $e=ce!==n&&ae===e.length;function Ee(){throw ce!==n&&ae<e.length&&_e({type:"end"}),function(e,t,n){return new l(l.buildMessage(e,t),e,t,n)}(fe,he<e.length?function(t=ae){const n=e.codePointAt(t);return void 0===n?"":String.fromCodePoint(n)}(he):null,he<e.length?ve(he,he+1):ve(he,he))}return t.peg$library?{peg$result:ce,peg$currPos:ae,peg$FAILED:n,peg$maxFailExpected:fe,peg$maxFailPos:he,peg$success:$e,peg$throw:$e?void 0:Ee}:$e?ce:void Ee()}(e)}catch(t){throw new r.A("effect:invalid-syntax","Invalid effect syntax",{value:e,error:t})}return t.map(e=>function(e){try{switch(e.name){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":return function(e){let t=1;return h(e.parameters,1),1===e.parameters.length&&(t=g(e.parameters[0])),new o.yG(e.name,t)}(e);case"opacity":return function(e){let t=1;return h(e.parameters,1),1===e.parameters.length&&(t=g(e.parameters[0])),new o.jm(t)}(e);case"hue-rotate":return function(e){let t=0;return h(e.parameters,1),1===e.parameters.length&&(t=function(e){return function(e){if("quantity"!==e.type||!(0===e.value&&null===e.unit||e.unit&&null!=m[e.unit]))throw new r.A("effect:type-error",`Expected <angle>, Actual: ${f(e)}`,{term:e})}(e),e.value*m[e.unit]||0}(e.parameters[0])),new o.Nd(t)}(e);case"blur":return function(e){let t=0;return h(e.parameters,1),1===e.parameters.length&&(t=y(e.parameters[0]),d(t,e.parameters[0])),new o.Fk(t)}(e);case"drop-shadow":return function(e){const t=[];let n=null;for(const i of e.parameters)if("color"===i.type){if(t.length&&Object.freeze(t),n)throw new r.A("effect:type-error","Accepts only one color",{});n=b(i)}else{const e=y(i);if(Object.isFrozen(t))throw new r.A("effect:type-error","<length> parameters not consecutive",{lengths:t});t.push(e),3===t.length&&d(e,i)}if(t.length<2||t.length>3)throw new r.A("effect:type-error",`Expected <length>{2,3}, Actual: <length>{${t.length}}`,{lengths:t});return new o.$b(t[0],t[1],t[2]||0,n||v("black"))}(e);case"bloom":return function(e){let t=1,n=0,r=0;return h(e.parameters,3),e.parameters[0]&&(t=g(e.parameters[0])),e.parameters[1]&&(n=y(e.parameters[1]),d(n,e.parameters[1])),e.parameters[2]&&(r=g(e.parameters[2])),new o.bv(t,n,r)}(e)}}catch(t){throw t.details.filter=e,t}throw new r.A("effect:unknown-effect",`Effect '${e.name}' is not supported`,{effect:e})}(e))}function h(e,t){if(e.length>t)throw new r.A("effect:type-error",`Function supports up to ${t} parameters, Actual: ${e.length}`,{parameters:e})}function f(e){if("color"===e.type)return"<color>";if(e.unit){if(e.unit in p)return"<length>";if(e.unit in m)return"<angle>";if("%"===e.unit)return"<percentage>"}return"<double>"}function d(e,t){if(e<0)throw new r.A("effect:type-error",`Negative values are not allowed, Actual: ${e}`,{term:t})}const m={deg:1,grad:.9,rad:180/Math.PI,turn:360},p={px:1,cm:96/2.54,mm:96/2.54/10,in:96,pc:16,pt:96/72};function g(e){!function(e){if("quantity"!==e.type||null!==e.unit&&"%"!==e.unit)throw new r.A("effect:type-error",`Expected <double> or <percentage>, Actual: ${f(e)}`,{term:e})}(e);const t=e.value;return d(t,e),"%"===e.unit?.01*t:t}function y(e){return function(e){if("quantity"!==e.type||!(0===e.value&&null===e.unit||e.unit&&null!=p[e.unit]))throw new r.A("effect:type-error",`Expected <length>, Actual: ${f(e)}`,{term:e})}(e),e.value*p[e.unit]||0}function b(e){switch(e.colorType){case"hex":return(0,s.j5)(e.value);case"named":return v(e.value);case"function":return function(e){if(h(e.parameters,4),_.test(e.name))return[g(e.parameters[0]),g(e.parameters[1]),g(e.parameters[2]),e.parameters[3]?g(e.parameters[3]):1];if(x.test(e.name))return(0,s.ay)(function(e){return function(e){if("quantity"!==e.type||null!==e.unit)throw new r.A("effect:type-error",`Expected <double>, Actual: ${f(e)}`,{term:e})}(e),d(e.value,e),e.value}(e.parameters[0]),g(e.parameters[1]),g(e.parameters[2]),e.parameters[3]?g(e.parameters[3]):1);throw new r.A("effect:syntax-error",`Invalid color function '${e.name}'`,{colorFunction:e})}(e.value)}}function v(e){if(!(0,s.V6)(e))throw new r.A("effect:unknown-color",`color '${e}' isn't valid`,{namedColor:e});return(0,s.c4)(e)}const _=/^rgba?/i,x=/^hsla?/i;function M(e,t,n){try{return function(e){if(!e||0===e.length)return null;if(function(e){const t=e[0];return!!t&&"scale"in t}(e)){const t=[];for(const n of e)t.push({scale:n.scale,value:A(n.value)});return t}return A(e)}(e)}catch(e){n?.messages?.push(e)}return null}function w(e,t,n,r){try{const r=function(e){const t=u(e);return t?(0,a.dw)(t)?t.map(e=>e.toJSON()):t.map(({scale:e,effects:t})=>({scale:e,value:t.map(e=>e.toJSON())})):null}(e);(0,i.sM)(n,r,t)}catch(e){r.messages&&r.messages.push(e)}}function A(e){if(!e?.length)return"";const t=[];for(const n of e){let e=[];switch(n.type){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":case"opacity":e=[S(n,"amount")];break;case"blur":e=[S(n,"radius","pt")];break;case"hue-rotate":e=[S(n,"angle","deg")];break;case"drop-shadow":e=[S(n,"xoffset","pt"),S(n,"yoffset","pt"),S(n,"blurRadius","pt"),z(n,"color")];break;case"bloom":e=[S(n,"strength"),S(n,"radius","pt"),S(n,"threshold")]}const r=`${n.type}(${e.filter(Boolean).join(" ")})`;u(r),t.push(r)}return t.join(" ")}function S(e,t,n){if(null==e[t])throw new r.A("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});return n?e[t]+n:""+e[t]}function z(e,t){if(null==e[t])throw new r.A("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});const n=e[t];return`rgba(${n[0]||0}, ${n[1]||0}, ${n[2]||0}, ${n[3]/255||0})`}},54339(e,t,n){function r(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{const n=[];for(const r of t.fieldNames)n.push(e.attributes[r]??null);return JSON.stringify(n)}}}function i(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const n=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(n)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}n.d(t,{W:()=>r,r:()=>i})},63074(e,t,n){var r=n(5482),i=n(91429),s=n(89317),o=n(76369);const a={type:["average","color-burn","color-dodge","color","darken","destination-atop","destination-in","destination-out","destination-over","difference","exclusion","hard-light","hue","invert","lighten","lighter","luminosity","minus","multiply","normal","overlay","plus","reflect","saturation","screen","soft-light","source-atop","source-in","source-out","vivid-light","xor"],nonNullable:!0,json:{read:!1,write:!1,origins:{"web-map":{read:!0,write:{layerContainerTypes:s.K}},"portal-item":{read:!0,write:{layerContainerTypes:s.K}}}}},l={read:{reader:o.LF},write:{allowNull:!0,writer:o.M9,layerContainerTypes:s.K}},u={json:{read:!1,write:!1,origins:{"web-map":l,"portal-item":l}}};n.d(t,["LF",0,u,"dM",0,e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.blendMode="normal",this.effect=null}};return(0,r.Cg)([(0,i.MZ)(a)],n.prototype,"blendMode",void 0),(0,r.Cg)([(0,i.MZ)(u)],n.prototype,"effect",void 0),n=(0,r.Cg)([(0,i.$K)("esri.layers.mixins.BlendLayer")],n),n},"sU",0,a])},69208(e,t,n){var r=n(5482),i=n(91429);n.d(t,["d",0,e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,r.Cg)([(0,i.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],n.prototype,"customParameters",void 0),n=(0,r.Cg)([(0,i.$K)("esri.layers.mixins.CustomParametersMixin")],n),n}])},25036(e,t,n){var r=n(5482),i=n(91429);n.d(t,["j",0,e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;void 0!==t?.effectiveScaleRange&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const n=this._get("effectiveScaleRange");return n&&n.minScale===e.minScale&&n.maxScale===e.maxScale?n:e}};return(0,r.Cg)([(0,i.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],n.prototype,"minScale",void 0),(0,r.Cg)([(0,i.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],n.prototype,"maxScale",void 0),(0,r.Cg)([(0,i.MZ)({readOnly:!0})],n.prototype,"effectiveScaleRange",null),n=(0,r.Cg)([(0,i.$K)("esri.layers.mixins.ScaleRangeLayer")],n),n}])},95466(e,t,n){n.d(t,{A:()=>u});var r=n(49186),i=n(53966),s=n(12195),o=n(30524),a=n(98623),l=n(56400);class u{static fromJSON(e){return new u(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new u(e.fields??[],h(e))}static fromLayerJSON(e){return new u(e.fields??[],h(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;const n=[];for(const e of this.fields){const t=e?.name,r=(0,o.GZ)(t);if(t&&r){const i=(0,o.NF)(t);this._fieldsMap.set(t,e),this._fieldsMap.set(i,e),this._normalizedFieldsMap.set(r,e),n.push(`${i}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,o.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,o.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,o.te)(e)||(0,o.Xz)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}n.sort(),this.uid=n.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,o.te)(e)||(0,o.Xz)(e)||e.nullable||void 0!==(0,o.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,o.Vb)({fieldName:e,fieldsMap:this._fieldsMap,normalizedFieldsMap:this._normalizedFieldsMap})}getTimeZone(e){const 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?(i.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new r.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),"UTC"):c.has(t.type)?a.L:null:null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,o.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 c=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function h(e){const t=new Map;if(!e.fields)return t;const n=!0===e.datesInUnknownTimezone,{timeInfo:r,editFieldsInfo:i}=e,s=(r?"startField"in r?r.startField:r.startTimeField:"")??"",u=(r?"endField"in r?r.endField:r.endTimeField:"")??"",h=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,l.ZS)(e.dateFieldsTimeReference):null,f=i?function(e){return"timeZone"in e}(i)?i.timeZone??h:i.dateFieldsTimeReference?(0,l.ZS)(i.dateFieldsTimeReference):h??"UTC":null,d=r?function(e){return"timeZone"in e}(r)?r.timeZone??h:r.timeReference?(0,l.ZS)(r.timeReference):h:null,m=new Map([[(0,o.NF)(i?.creationDateField??""),f],[(0,o.NF)(i?.editDateField??""),f],[(0,o.NF)(s),d],[(0,o.NF)(u),d]]);for(const{name:r,type:i}of e.fields)if(c.has(i))t.set(r,a.L);else if("date"!==i&&"esriFieldTypeDate"!==i)t.set(r,null);else if(n)t.set(r,a.L);else{const e=m.get((0,o.NF)(r??""))??h;t.set(r,e)}return t}},17036(e,t,n){n.d(t,{p:()=>l});var r=n(44208),i=n(53966),s=n(20437),o=n(95466),a=n(30524);function l(){return{fields:{type:[s.A],value:null,set:function(e){if(e&&(0,r.A)("big-integer-warning-enabled")){const t=e.filter(e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8);if(t.length){const e=t.map(e=>`'${e.name}'`).join(", ");i.A.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return o.A.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const n=this.fieldsIndex?.has(t);n||i.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,a.DB)(this.fieldsIndex,e)}}}}},32730(e,t,n){n.d(t,{BI:()=>d,D3:()=>h,XJ:()=>f,lc:()=>c,mX:()=>p,rU:()=>m,tH:()=>_,zA:()=>M});var r=n(799);const i="__begin__",s="__end__",o=new RegExp(i,"ig"),a=new RegExp(s,"ig"),l=new RegExp("^"+i,"i"),u=new RegExp(s+"$","i");function c(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function h(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function f(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=c(e.labelExpression),t.type="conventional"),t}function d(e){const t=f(e);if(!t)return null;switch(t.type){case"conventional":return p(t.expression);case"arcade":return t.expression}return null}function m(e){const t=f(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e?.match(g);return t?.[1].trim()||null}(t.expression);case"arcade":return _(t.expression)}return null}function p(e){let t;return e?(t=(0,r.HC)(e,e=>i+'$feature["'+e+'"]'+s),t=l.test(t)?t.replace(l,""):'"'+t,t=u.test(t)?t.replace(u,""):t+'"',t=t.replaceAll(o,'" + ').replaceAll(a,' + "')):t='""',t}const g=/^\s*\{([^}]+)\}\s*$/i,y=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,b=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,v=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function _(e){if(!e)return null;let t=y.exec(e)||b.exec(e);return t?t[1]||t[3]:(t=v.exec(e),t?t[2]:null)}const x=Symbol("LabelClassInstance");function M(e){return null!=e&&"object"==typeof e&&x in e}n.d(t,["vK",0,x])},5757(e,t,n){n.d(t,{B:()=>i});const r=Symbol("PopupTemplateInstance");function i(e){return null!=e&&"object"==typeof e&&r in e}n.d(t,["P",0,r])},98205(e,t,n){n.d(t,{KZ:()=>a,eh:()=>o,gf:()=>s,of:()=>i});const r=Symbol("SizeVariableInstance");function i(e){return null!=e&&"object"==typeof e&&r in e}function s(e){return null!=e&&!isNaN(e)&&isFinite(e)}function o(e){return e.valueExpression?"expression":e.field&&"string"==typeof e.field?"field":"unknown"}function a(e,t){const n=t||o(e),r=e.valueUnit||"unknown";return"unknown"===n?"constant":e.stops?"stops":null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?"clamped-linear":"unknown"===r?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?"proportional":"additive":"identity":"real-world-size"}n.d(t,["uY",0,r])}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6344,9526],{68197(e,t,i){i.d(t,{A:()=>u});var n=i(40876),r=i(4576),s=i(34727),o=i(56507);function l(e){return(0,s.qE)((0,o.Vr)(e),0,255)}function a(e,t){const i=e.toString(16).padStart(2,"0");return t?i.slice(0,1):i}class u{static blendColors(e,t,i,n=new u){return n.r=Math.round(e.r+(t.r-e.r)*i),n.g=Math.round(e.g+(t.g-e.g)*i),n.b=Math.round(e.b+(t.b-e.b)*i),n.a=e.a+(t.a-e.a)*i,n._sanitize()}static fromRgb(e,t){const i=(0,n.lT)(e);return i?u.fromArray(i,t):null}static fromHex(e,t=new u){const i=(0,n.oW)(e);return i?u.fromArray(i,t):null}static fromArray(e,t=new u){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const i=(0,n.Eq)(e);return i?u.fromArray(i,t):null}static fromJSON(e){return null!=e?new u([e[0],e[1],e[2],(e[3]??255)/255]):void 0}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(e){return e??=[0,0,0,0],e[0]=this.r/255,e[1]=this.g/255,e[2]=this.b/255,e[3]=null!=this.a?this.a:1,e}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){if("string"==typeof e)u.fromString(e,this);else if((0,r.yc)(e))u.fromArray(e,this);else{const t=e;this._set(t.r??0,t.g??0,t.b??0,t.a??1),e instanceof u||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){const t=e?.capitalize??!1,i=e?.digits??6,n=3===i||4===i,r=4===i||8===i,s=`#${a(this.r,n)}${a(this.g,n)}${a(this.b,n)}${r?a(Math.round(255*this.a),n):""}`;return t?s.toUpperCase():s}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=0){const t=l(this.r),i=l(this.g),n=l(this.b);return 0===e||1!==this.a?[t,i,n,l(255*this.a)]:[t,i,n]}clone(){return new u(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=(0,n.c1)(this.r),this.g=(0,n.c1)(this.g),this.b=(0,n.c1)(this.b),this.a=(0,n.G1)(this.a),this}_set(e,t,i,n){this.r=e,this.g=t,this.b=i,this.a=n}}u.prototype.declaredClass="esri.Color"},52106(e,t,i){i.d(t,{A:()=>S});var n,r,s=i(5482),o=i(37838),l=i(69540),a=i(51447),u=i(25482),c=i(53966),h=i(36708),f=i(24326),d=i(91429),p=i(12195),y=i(65864),g=i(50498),m=i(55156),b=i(60950),M=i(54339),v=i(94128),_=i(33910);function w(e){if(null==e)return null;const t={};for(const i in e){const n=e[i];n&&(t[i]=n.toJSON())}return 0!==Object.keys(t).length?t:null}let S=class extends((0,l.OU)(u.o)){static{n=v.Z}static{r=this}constructor(e){super(e),this[n]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperty(this,"uid",{value:(0,f.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,a.eF)(c.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),"mesh"!==e?.type&&this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new r({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=(0,b.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const i=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[i,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const i=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",i,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,m.I)(this.origin);if(e)return(0,M.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,M.r)(this,t):null}getGlobalId(){const e=(0,m.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);const t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){const e={aggregateGeometries:w(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,p.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const i={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",i,i,e.action)}}_notifyLayer(e,t,i,n){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const r={graphic:this,property:e,oldValue:t,newValue:i};"origin-transform"===e&&(r.action=n),"attributes"===e&&(r.attributeName=n),this.layer.graphicChanged(r)}_watchMeshGeometryChanges(){this.addHandles([(0,h.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,h.z7)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const e=this.geometry;"mesh"===e?.type&&e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)},{equals:(e,t)=>e===t,sync:!0})])}};(0,s.Cg)([(0,d.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const i in e){const n=(0,y.rS)(e[i]);n&&(t[i]=n)}return 0!==Object.keys(t).length?t:null}}})],S.prototype,"aggregateGeometries",null),(0,s.Cg)([(0,d.MZ)({value:null})],S.prototype,"attributes",null),(0,s.Cg)([(0,d.MZ)({value:null,types:g.yR,json:{read:y.rS}})],S.prototype,"geometry",null),(0,s.Cg)([(0,d.MZ)()],S.prototype,"distance",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean})],S.prototype,"isAggregate",void 0),(0,s.Cg)([(0,d.MZ)({clonable:!1})],S.prototype,"layer",void 0),(0,s.Cg)([(0,d.MZ)({clonable:"reference"})],S.prototype,"origin",void 0),(0,s.Cg)([(0,d.MZ)({type:o.A,value:null})],S.prototype,"popupTemplate",null),(0,s.Cg)([(0,d.MZ)({clonable:"reference"})],S.prototype,"sourceLayer",void 0),(0,s.Cg)([(0,d.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],S.prototype,"statisticsAggregatedIds",void 0),(0,s.Cg)([(0,d.MZ)({value:null,types:_.Es})],S.prototype,"symbol",null),(0,s.Cg)([(0,d.MZ)({clonable:!1,json:{read:!1,write:!1}})],S.prototype,"_version",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean,value:!0})],S.prototype,"visible",null),S=r=(0,s.Cg)([(0,d.$K)("esri.Graphic")],S)},40876(e,t,i){i.d(t,{Eq:()=>d,G1:()=>y,TS:()=>s,V6:()=>r,Vm:()=>p,ay:()=>a,c1:()=>g,c4:()=>o,j5:()=>u,lT:()=>h,oW:()=>c,xV:()=>M});const n={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function r(e){return!!n[e]||!!n[e.toLowerCase()]}function s(e){return n[e]??n[e.toLowerCase()]}function o(e){return[...s(e)]}function l(e,t,i){i<0&&++i,i>1&&--i;const n=6*i;return n<1?e+(t-e)*n:2*i<1?t:3*i<2?e+(t-e)*(2/3-i)*6:e}function a(e,t,i,n=1){const r=(e%360+360)%360/360,s=i<=.5?i*(t+1):i+t-i*t,o=2*i-s;return[Math.round(255*l(o,s,r+1/3)),Math.round(255*l(o,s,r)),Math.round(255*l(o,s,r-1/3)),n]}function u(e){const t=e.length>5,i=t?8:4,n=(1<<i)-1,r=t?1:17,s=t?9===e.length:5===e.length;let o=Number("0x"+e.slice(1));if(isNaN(o))return null;const l=[0,0,0,1];let a;return s&&(a=o&n,o>>=i,l[3]=r*a/255),a=o&n,o>>=i,l[2]=r*a,a=o&n,o>>=i,l[1]=r*a,a=o&n,o>>=i,l[0]=r*a,l}function c(e){if(!e.startsWith("#")||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{const t=parseInt(e.slice(1,2),16),i=parseInt(e.slice(2,3),16),n=parseInt(e.slice(3,4),16),r=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,i+16*i,n+16*n,(r+16*r)/255]}case 7:case 9:return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16),(7===e.length?255:parseInt(e.slice(7),16))/255];default:return null}}function h(e){const t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){const e=t[2].split(/\s*,\s*/),i=t[1];if("rgb"===i&&3===e.length||"rgba"===i&&4===e.length){if(e[0].endsWith("%")){const t=e.map(e=>2.56*parseFloat(e));return 4===e.length&&(t[3]=parseFloat(e[3])),f(t)}return f(e.map(e=>parseFloat(e)))}if("hsl"===i&&3===e.length||"hsla"===i&&4===e.length)return a(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function f(e){return e[0]=g(e[0]),e[1]=g(e[1]),e[2]=g(e[2]),e[3]=4===e.length?y(e[3]):1,e}function d(e){let t=r(e)?s(e):null;return t??=h(e),t??=c(e),t}function p(e){const t=d(e);return null!=t?[t[0]/255,t[1]/255,t[2]/255,t[3]]:null}function y(e){return m(e,0,1)}function g(e){return Math.round(m(e,0,255))}function m(e,t,i){return e=Number(e),isNaN(e)?i:e<t?t:e>i?i:e}const b=1/2.2;function M(e){return e**b}i.d(t,["iw",0,b])},38961(e,t,i){var n=i(5482),r=i(7762),s=i(36708),o=i(10107),l=i(64108),a=i(80559);let u=class extends r.A{constructor(e){super(e),this.getCollections=null}initialize(){this.addHandles((0,a.fm)(()=>this._refresh(),s.OH))}destroy(){this.getCollections=null}_refresh(){const e=this.getCollections?.();if(null==e)return void this.removeAll();let t=0;for(const i of e)null!=i&&(t=this._processCollection(t,i));this.splice(t)}_createNewInstance(e){return new r.A(e)}_processCollection(e,t){if(!t)return e;const i=this.itemFilterFunction??(e=>!!e);for(const n of t)if(n){if(i(n)){const t=this.indexOf(n,e);t>=0?t!==e&&this.reorder(n,e):this.add(n,e),++e}if(this.getChildrenFunction){const t=this.getChildrenFunction(n);if(Array.isArray(t))for(const i of t)e=this._processCollection(e,i);else e=this._processCollection(e,t)}}return e}};(0,n.Cg)([(0,o.MZ)()],u.prototype,"getCollections",void 0),(0,n.Cg)([(0,o.MZ)()],u.prototype,"getChildrenFunction",void 0),(0,n.Cg)([(0,o.MZ)()],u.prototype,"itemFilterFunction",void 0),u=(0,n.Cg)([(0,l.$)("esri.core.CollectionFlattener")],u);const c=u;i.d(t,["A",0,c])},66344(e,t,i){i.d(t,{q:()=>l});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){const i=this._db.get(e.id+t);return i?.size??0}put(e,t,i,r,o){t=e.id+t;const l=this._db.get(t);if(l&&(this._size-=l.size,e.size-=l.size,this._db.delete(t),l.entry!==i&&this._notifyRemove(t,l.entry,l.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);const a=1+Math.max(o,-4)- -3;this._db.set(t,new s(i,r,a)),this._size+=r,e.size+=r,this._checkSize()}updateSize(e,t){t=e.id+t;const 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;){const 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;const 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;const 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){const i=this._db.get(e.id+t);return i?++this._hit:++this._miss,i?.entry}get performanceInfo(){const 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=new Array;this._db.forEach((e,n)=>{const r=e.lifetime;i[r]=(i[r]||0)+e.size,this._clients.forEach(i=>{const{id:r,name:s}=i;if(n.startsWith(r)){const i=t[s]||0;t[s]=i+e.size}})});const n={};this._clients.forEach(e=>{const i=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){const r=t[i]||0;t[i]=r,n[i]=Math.round(100*e.hitRate)+"%"}else n[i]="0%"});const 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){const 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){const 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(const[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){const r=this._clients.get(e.split(o)[0])?.removeFunc,s=r?.(t,n,i);return"number"==typeof s?s: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){const i=t??this;if(i.size<=e)return;const n=t?.id;let r=!0;for(;r;){r=!1;for(const[s,l]of this._db)if(0===l.lifetime&&(!n||s.startsWith(n))){const n=t??this._clients.get(s.split(o)[0]);if(this._purgeItem(s,l,n),i.size<=.9*e)return;r||=this._db.has(s)}}for(const[r,s]of this._db)if(!n||r.startsWith(n)){const 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);const 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 l{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(){}}},6797(e,t,i){i.d(t,{Ui:()=>f});var n=i(69622),r=i(7762),s=i(88620);const o=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function l(e){return e instanceof n.A}function a(e){return e instanceof r.A?Object.keys(e.items):l(e)?(0,s.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof r.A?e.items[t]:e[t]}function c(e){return e?e.declaredClass:null}function h(e,t){const i=e.diff;if(i&&"function"==typeof i)return i(e,t);const n=a(e),r=a(t);if(0===n.length&&0===r.length)return;if(!n.length||!r.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const s=r.filter(e=>!n.includes(e)),f=n.filter(e=>!r.includes(e)),d=n.filter(i=>r.includes(i)&&u(e,i)!==u(t,i)).concat(s,f).sort(),p=c(e);if(p&&o.has(p)&&d.length)return{type:"complete",oldValue:e,newValue:t};let y;const g=l(e)&&l(t);for(const n of d){const r=u(e,n),s=u(t,n);let o;if((g||"function"!=typeof r&&"function"!=typeof s)&&r!==s&&(null!=r||null!=s)){if(i&&i[n]&&"function"==typeof i[n])o=i[n]?.(r,s);else if(r instanceof Date&&s instanceof Date){if(r.getTime()===s.getTime())continue;o={type:"complete",oldValue:r,newValue:s}}else o="object"==typeof r&&"object"==typeof s&&c(r)===c(s)?h(r,s):{type:"complete",oldValue:r,newValue:s};null!=o&&(null!=y?y.diff[n]=o:y={type:"partial",diff:{[n]:o}})}}return y}function f(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&c(e)!==c(t)?{type:"complete",oldValue:e,newValue:t}:h(e,t)}},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,l,a,u,c,h,f,d,p,y){return[e,t,i,n,r,s,o,l,a,u,c,h,f,d,p,y]}},Symbol.toStringTag,{value:"Module"})),i.d(t,["zK",0,s])},35522(e,t,i){i.d(t,{$A:()=>A,Bw:()=>s,C:()=>o,Cc:()=>x,DI:()=>w,Io:()=>b,Ln:()=>m,Om:()=>I,Qr:()=>h,Re:()=>u,S8:()=>S,T9:()=>y,WQ:()=>a,Z0:()=>C,_S:()=>d,aI:()=>L,ei:()=>F,fw:()=>R,gL:()=>z,hG:()=>M,hZ:()=>l,hs:()=>g,jk:()=>p,lw:()=>c,m3:()=>v,oW:()=>k,t2:()=>O,tn:()=>f,ze:()=>_});var n=i(51850),r=i(34304);function s(e){const 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 l(e,t,i,n){return e[0]=t,e[1]=i,e[2]=n,e}function a(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e[2]=t[2]+i[2],e}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 c(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 f(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function d(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function p(e,t,i){return e[0]=Math.min(t[0],i[0]),e[1]=Math.min(t[1],i[1]),e[2]=Math.min(t[2],i[2]),e}function y(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 g(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e}function m(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 b(e,t){const 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){const i=t[0]-e[0],n=t[1]-e[1],r=t[2]-e[2];return i*i+n*n+r*r}function v(e){const t=e[0],i=e[1],n=e[2];return t*t+i*i+n*n}function _(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function w(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function S(e,t){const i=t[0],n=t[1],r=t[2];let 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 I(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function A(e,t,i){const n=t[0],r=t[1],s=t[2],o=i[0],l=i[1],a=i[2];return e[0]=r*a-s*l,e[1]=s*o-n*a,e[2]=n*l-r*o,e}function x(e,t,i,n){const 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 C(e,t,i){const 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 F(e,t,i){const 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 z(e,t,i){return R(e,t,i[0],i[1],i[2],i[3])}function R(e,t,i,n,r,s){const o=t[0],l=t[1],a=t[2],u=n*a-r*l,c=r*o-i*a,h=i*l-n*o,f=n*h-r*c,d=r*u-i*h,p=i*c-n*u,y=2*s;return e[0]=o+u*y+2*f,e[1]=l+c*y+2*d,e[2]=a+h*y+2*p,e}const T=(0,n.vt)(),P=(0,n.vt)();function O(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function L(e,t){if(e===t)return!0;const i=e[0],n=e[1],s=e[2],o=t[0],l=t[1],a=t[2],u=(0,r.FD)();return Math.abs(i-o)<=u*Math.max(1,Math.abs(i),Math.abs(o))&&Math.abs(n-l)<=u*Math.max(1,Math.abs(n),Math.abs(l))&&Math.abs(s-a)<=u*Math.max(1,Math.abs(s),Math.abs(a))}function k(e,t,i){const n=i[0]-t[0],r=i[1]-t[1],s=i[2]-t[2];let 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 E=u,Z=c,N=h,G=b,j=M,q=s,U=v;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:a,angle:function(e,t){S(T,e),S(P,t);const i=I(T,P);return i>1?0:i<-1?Math.PI:Math.acos(i)},bezier:function(e,t,i,n,r,s){const o=1-s,l=o*o,a=s*s,u=l*o,c=3*s*l,h=3*a*o,f=a*s;return e[0]=t[0]*u+i[0]*c+n[0]*h+r[0]*f,e[1]=t[1]*u+i[1]*c+n[1]*h+r[1]*f,e[2]=t[2]*u+i[2]*c+n[2]*h+r[2]*f,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:A,crossAndNormalize:function(e,t,i){const n=t[0],r=t[1],s=t[2],o=i[0],l=i[1],a=i[2],u=r*a-s*l,c=s*o-n*a,h=n*l-r*o,f=Math.sqrt(u*u+c*c+h*h);return e[0]=u/f,e[1]=c/f,e[2]=h/f,e},direction:k,dist:G,distance:b,div:N,divide:h,dot:I,equals:L,exactEquals:O,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){const o=s*s,l=o*(2*s-3)+1,a=o*(s-2)+s,u=o*(s-1),c=o*(3-2*s);return e[0]=t[0]*l+i[0]*a+n[0]*u+r[0]*c,e[1]=t[1]*l+i[1]*a+n[1]*u+r[1]*c,e[2]=t[2]*l+i[2]*a+n[2]*u+r[2]*c,e},inverse:w,len:q,length:s,lerp:x,max:y,min:p,mul:Z,multiply:c,negate:_,normalize:S,random:function(e,t=1){const 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){const 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){const 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){const 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:g,scaleAndAdd:m,set:l,sign:d,sqrDist:j,sqrLen:U,squaredDistance:M,squaredLength:v,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:E,subtract:u,transformMat3:F,transformMat4:C,transformMat4Z:function(e,t){return t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]},transformQuat:z,transformQuatValues:R},Symbol.toStringTag,{value:"Module"})),i.d(t,["Il",0,q,"jb",0,E,"lo",0,j,"uE",0,U,"xg",0,G])},90629(e,t,i){i.d(t,{Lz:()=>r,PN:()=>s,cr:()=>o,gs:()=>a,r_:()=>u,tc:()=>l}),i(39829);const n=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i;function r(e){return e?e/72*96:0}function s(e){return e?72*e/96:0}function o(e){if("string"==typeof e){const t=e.match(n);if(t){const i=Number(t[1]),n=t[3]&&t[3].toLowerCase(),r=e.startsWith("-"),o="px"===n?s(i):i;return r?-o:o}return console.warn("screenUtils.toPt: input not recognized!"),null}return e}function l(e=0,t=0){return{x:e,y:t}}function a(e=0,t=0){return[e,t]}function u(e=0,t=0,i=0){return[e,t,i]}},159(e,t,i){i.d(t,{A:()=>u});var n,r=i(5482),s=i(69540),o=i(25482),l=i(91429),a=i(99157);let u=n=class extends((0,s.OU)(o.o)){constructor(e){super(e),this.steps=[]}getInverse(){const e=new n;for(let t=this.steps.length-1;t>=0;t--){const i=this.steps[t];e.steps.push(i.getInverse())}return e}};(0,r.Cg)([(0,l.MZ)({type:[a.A],nonNullable:!0,json:{name:"geoTransforms"}})],u.prototype,"steps",void 0),u=n=(0,r.Cg)([(0,l.$K)("esri.geometry.operators.support.GeographicTransformation")],u)},99157(e,t,i){i.d(t,{A:()=>a});var n,r=i(5482),s=i(69540),o=i(25482),l=i(91429);let a=n=class extends((0,s.OU)(o.o)){constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new n({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,r.Cg)([(0,l.MZ)({json:{name:"transformForward",read:e=>!e,write:(e,t,i)=>{t[i]=!e}}})],a.prototype,"isInverse",void 0),(0,r.Cg)([(0,l.MZ)({json:{write:!0}})],a.prototype,"wkt",void 0),(0,r.Cg)([(0,l.MZ)({json:{write:!0}})],a.prototype,"wkid",void 0),a=n=(0,r.Cg)([(0,l.$K)("esri.geometry.operators.support.GeographicTransformationStep")],a)},9762(e,t,i){i.r(t),i.d(t,{projectBuffer:()=>r});var n=i(49208);function r(e,t,i,r,s,o,l=Math.floor(e.length/3)){const a=(0,n.jd)(t,s);if(null==a)return!1;if(a===n.pO){if(e===r&&i===o)return!0;const t=i+3*l;for(let n=i,s=o;n<t;n++,s++)r[s]=e[n]??0;return!0}const u=i+3*l;for(let t=i,n=o;t<u;t+=3,n+=3)a(e,t,r,n);return!0}},49208(e,t,i){i.d(t,{Tp:()=>h,jd:()=>c,pO:()=>d});var n=i(34727),r=i(86211),s=i(73941),o=i(79258),l=i(34403),a=i(21325);const u={2:{5:d,7:null,9:null,10:d,1:_,6:null,8:null,0:null,3:y,11:g,2:d,4:x},5:{5:d,7:null,9:null,10:d,1:_,6:null,8:null,0:null,3:y,11:g,2:d,4:x},7:{5:null,7:d,9:null,10:d,1:null,6:v,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:d,10:d,1:null,6:null,8:M,0:null,3:null,11:null,2:null,4:null},3:{5:p,7:null,9:null,10:p,1:function(e,t,i,n){const r=e[t]/P,s=T-2*Math.atan(Math.exp(-e[t+1]/P)),o=P+(e[t+2]??0),l=Math.cos(s)*o;i[n]=Math.cos(r)*l,i[n+1]=Math.sin(r)*l,i[n+2]=Math.sin(s)*o},6:null,8:null,0:null,3:d,11:function(e,t,i,n){p(e,t,i,n),g(i,n,i,n)},2:p,4:function(e,t,i,n){p(e,t,i,n),x(i,n,i,n)}},4:{5:C,7:null,9:null,10:C,1:function(e,t,i,n){C(e,t,i,n),_(i,n,i,n)},6:null,8:null,0:null,3:function(e,t,i,n){C(e,t,i,n),y(i,n,i,n)},11:function(e,t,i,n){C(e,t,i,n),g(i,n,i,n)},2:C,4:d},1:{5:A,7:null,9:null,10:A,1:d,6:null,8:null,0:null,3:function(e,t,i,n){A(e,t,i,n),y(i,n,i,n)},11:function(e,t,i,n){A(e,t,i,n),g(i,n,i,n)},2:A,4:function(e,t,i,n){A(e,t,i,n),x(i,n,i,n)}},6:{5:null,7:I,9:null,10:I,1:null,6:d,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:S,10:S,1:null,6:null,8:d,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:d,3:null,11:null,2:null,4:null},10:{5:d,7:d,9:d,10:d,1:_,6:v,8:M,0:null,3:y,11:g,2:d,4:x},11:{5:m,7:null,9:null,10:m,1:function(e,t,i,n){m(e,t,i,n),_(i,n,i,n)},6:null,8:null,0:null,3:function(e,t,i,n){m(e,t,i,n),y(i,n,i,n)},11:d,2:m,4:function(e,t,i,n){m(e,t,i,n),x(i,n,i,n)}}};function c(e,t){return h(e,t)?.projector}function h(e,t){if(null==e||null==t)return null;if(F.source.spatialReference===e&&F.dest.spatialReference===t)return F;const i=f(e,F.source),n=f(t,F.dest);return 0===i&&0===n?(0,a.aI)(e,t)?F.projector=d:F.projector=null:F.projector=u[i][n],F}function f(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,r.GA)(e,1)),(0,s.jA)(e)?t.spatialReferenceId=1:(0,a.oT)(e)?t.spatialReferenceId=2:(0,a.K8)(e)?t.spatialReferenceId=3:(0,a.r1)(e)?t.spatialReferenceId=11:e.wkt===s.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===s.FY.wkt?t.spatialReferenceId=6:e.wkt===s.LJ.wkt?t.spatialReferenceId=8:(0,s.q8)(e)?t.spatialReferenceId=7:(0,s.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function d(e,t,i,n){e!==i&&(i[n++]=e[t++],i[n++]=e[t++],i[n]=e[t]??0)}function p(e,t,i,n){i[n]=R*(e[t]/P),i[n+1]=R*(T-2*Math.atan(Math.exp(-e[t+1]/P))),i[n+2]=e[t+2]??0}function y(e,t,i,r){!function(e,t,i,r,s){const o=.4999999*Math.PI,l=(0,n.qE)(z*e[t+1],-o,o),a=Math.sin(l);i[r++]=z*e[t]*s.radius,i[r++]=s.halfSemiMajorAxis*Math.log((1+a)/(1-a)),i[r]=e[t+2]??0}(e,t,i,r,o.$O)}function g(e,t,i,n){i[n]=e[t]*O,i[n+1]=e[t+1]*O,i[n+2]=e[t+2]??0}function m(e,t,i,n){i[n]=e[t]*L,i[n+1]=e[t+1]*L,i[n+2]=e[t+2]??0}function b(e,t,i,n,r){const s=r+(e[t+2]??0),o=z*e[t],l=z*e[t+1],a=Math.cos(l)*s;i[n]=Math.cos(o)*a,i[n+1]=Math.sin(o)*a,i[n+2]=Math.sin(l)*s}function M(e,t,i,n){b(e,t,i,n,o.Sw.radius)}function v(e,t,i,n){b(e,t,i,n,o.sH.radius)}function _(e,t,i,n){b(e,t,i,n,o.$O.radius)}function w(e,t,i,r,s){const o=e[t],l=e[t+1],a=e[t+2]??0,u=Math.sqrt(o*o+l*l+a*a),c=(0,n.YN)(a/(0===u?1:u)),h=Math.atan2(l,o);i[r++]=R*h,i[r++]=R*c,i[r]=u-s}function S(e,t,i,n){w(e,t,i,n,o.Sw.radius)}function I(e,t,i,n){w(e,t,i,n,o.sH.radius)}function A(e,t,i,n){w(e,t,i,n,o.$O.radius)}function x(e,t,i,n){!function(e,t,i,n,r){const s=z*e[t],o=z*e[t+1],l=e[t+2]??0,a=Math.sin(o),u=Math.cos(o),c=r.radius/Math.sqrt(1-r.eccentricitySquared*a*a);i[n++]=(c+l)*u*Math.cos(s),i[n++]=(c+l)*u*Math.sin(s),i[n++]=(c*(1-r.eccentricitySquared)+l)*a}(e,t,i,n,o.$O)}function C(e,t,i,n){const r=l.TP,s=e[t],a=e[t+1],u=e[t+2]??0;let c,h,f,d,p,y,g,m,b,M,v,_,w,S,I,A,x,C,F,z,T;c=Math.abs(u),h=s*s+a*a,f=Math.sqrt(h),d=h+u*u,p=Math.sqrt(d),z=Math.atan2(a,s),y=u*u/d,g=h/d,S=r.a2/p,I=r.a3-r.a4/p,g>.3?(m=c/p*(1+g*(r.a1+S+y*I)/p),F=Math.asin(m),M=m*m,b=Math.sqrt(1-M)):(b=f/p*(1-y*(r.a5-S-g*I)/p),F=Math.acos(b),M=1-b*b,m=Math.sqrt(M)),v=1-o.$O.eccentricitySquared*M,_=o.$O.radius/Math.sqrt(v),w=r.a6*_,S=f-_*b,I=c-w*m,x=b*S+m*I,A=b*I-m*S,C=A/(w/v+x),F+=C,T=x+A*C/2,u<0&&(F=-F),i[n++]=R*z,i[n++]=R*F,i[n]=T}const F={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:d},z=(0,n.kU)(1),R=(0,n.KJ)(1),T=.5*Math.PI,P=o.$O.radius,O=P*Math.PI/180,L=180/(P*Math.PI);i.d(t,["w5",0,u])},91218(e,t,i){i.r(t),i.d(t,{canProjectWithoutEngine:()=>H,initializeProjection:()=>V,isEqualBaseGCS:()=>D,isLoaded:()=>P,isLoadedOrLoad:()=>O,isLoadedOrLoadFor:()=>L,load:()=>E,project:()=>Z,projectAsync:()=>B,projectExtent:()=>re,projectMany:()=>N,projectMultipoint:()=>Q,projectOrLoad:()=>j,projectOrLoadMany:()=>q,projectPoint:()=>K,projectPolygon:()=>ie,projectPolyline:()=>ee,projectWithoutEngine:()=>W,requiresLoad:()=>k,test:()=>J,tryProject:()=>G,unload:()=>$});var n=i(49186),r=i(17676),s=i(62788),o=i(95488),l=i(51850),a=i(21276),u=i(73941),c=i(5443),h=i(91075),f=i(48526),d=i(86738),p=i(39829),y=i(82799),g=i(16930),m=i(98764),b=i(159),M=i(9762),v=i(49208);function _(e,t,i,n,r,s){return w[0]=e,w[1]=t,w[2]=i,(0,M.projectBuffer)(w,n,0,r,s,0)}const w=(0,l.vt)();var S=i(60408),I=i(21325),A=i(52006);let x=null,C=null,F=null,z=null,R={};const T=new o.I;function P(){return!!(C?.isLoaded()&&F?.isLoaded()&&z?.isLoaded())}function O(){return!!P()||((0,s.gc)(T),E(),!1)}function L(e,t){return!e||!t||H(e,t)||O()}function k(e,t){return!H(e,t)&&!P()}async function E(e){null==x&&(x=Promise.all([i.e(3276).then(i.bind(i,83276)).then(e=>(C=e,C.load())),i.e(8377).then(i.bind(i,8377)).then(e=>(F=e,F.load())),i.e(2158).then(i.bind(i,12158)).then(e=>(z=e,z.load()))])),await x,(0,r.Te)(e),T.notify()}function Z(e,t,i){return Array.isArray(e)?0===e.length?[]:((0,a.H)(e),N(e,e[0].spatialReference,t,i)):((0,a.f)(e),N([e],e.spatialReference,t,i)[0])}function N(e,t,i,n){if(null==t||null==i)return e;if(H(t,i,n))return e.map(e=>W(e,t,i));if(null==n?.geographicTransformation&&(0,u.jA)(t))return N(e.map(e=>W(e,t,g.A.WGS84)),g.A.WGS84,i,{zConversionDisabled:n?.zConversionDisabled});if(null==n?.geographicTransformation&&(0,u.jA)(i))return N(e,t,g.A.WGS84).map(e=>W(e,g.A.WGS84,i));if(!P())throw new U;if(!n?.geographicTransformation)if(n?.extendedParams)n={...n,geographicTransformation:z.getTransformation(t,i,n.areaOfInterestExtent)||new b.A};else if(!n?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,i);let r=R[e];r||(r=z.getTransformation(t,i)||new b.A,R[e]=r),n={geographicTransformation:r,zConversionDisabled:n?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof h.A?C.executeMany(e,i,n):F.executeMany(e,i,n)}function G(e,t,i){try{return Z(e,t,i)}catch(e){return null}}function j(e,t){const i=q([e],t);return null!=i.pending?{pending:i.pending,geometry:null}:null!=i.geometries?{pending:null,geometry:i.geometries[0]}:{pending:null,geometry:null}}function q(e,t,i){if(!P())for(const i of e)if(null!=i&&!(0,I.aI)(i.spatialReference,t)&&(0,I.fn)(i.spatialReference)&&(0,I.fn)(t)&&!H(i.spatialReference,t))return(0,s.gc)(T),{pending:E(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,I.aI)(e.spatialReference,t)?e:(0,I.fn)(e.spatialReference)&&(0,I.fn)(t)?Z(e,t,i):null)}}class U extends n.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function $(){x=null,C=null,F=null,z=null,R={}}const J={get loadPromise(){return x}};async function B(e,t,i){if((0,r.Te)(i),!e)return e;const n=q(Array.isArray(e)?e:[e],t,i);if(n.pending)return await n.pending,(0,r.Te)(i),B(e,t,i);const s=n.geometries??[];return Array.isArray(e)?s:s[0]}function H(e,t,i){return!(i?.areaOfInterestExtent||i?.extendedParams||i?.geographicTransformation)&&(!!(0,I.aI)(e,t)||(0,I.fn)(e)&&(0,I.fn)(t)&&!!(0,v.jd)(e,t))}function D(e,t){if((0,I.aI)(e,t))return!0;if(!(0,I.fn)(e)||!(0,I.fn)(t))return!1;const i=(0,I.oT)(e)||(0,I.K8)(e)||(0,I.x1)(e),n=(0,I.oT)(t)||(0,I.K8)(t)||(0,I.x1)(t);return i&&n}async function V(e,t,i,n){if(P())return(0,r.NO)(n);if(Array.isArray(e)){for(const{source:t,dest:i,options:r}of e)if(t&&i&&!H(t,i,r))return E(n)}else if(e&&t&&!H(e,t,i))return E(n);return(0,r.NO)(n)}function W(e,t,i){return e?(0,S.fT)(e)?Y(e,t,new d.A,i,0):(0,S.ZC)(e)?se(e,t,new c.A,i,0):(0,S.Bi)(e)?ne(e,t,new p.A,i,0):(0,S.Rg)(e)?te(e,t,new y.A,i,0):(0,S.U9)(e)?X(e,t,new f.A,i,0):null:null}function K(e,t,i=t.spatialReference,n=0){return null!=i&&null!=e.spatialReference&&null!=Y(e,e.spatialReference,t,i,n)}function Y(e,t,i,n,r){ue[0]=e.x,ue[1]=e.y;const s=e.z;return ue[2]=void 0!==s?s:r,(0,M.projectBuffer)(ue,t,0,ue,n,0)?(i.x=ue[0],i.y=ue[1],i.spatialReference=n,void 0!==s||(0,u.xP)(n)?(i.z=ue[2],i.hasZ=!0):(i.z=void 0,i.hasZ=!1),void 0===e.m?(i.m=void 0,i.hasM=!1):(i.m=e.m,i.hasM=!0),i):null}function Q(e,t,i=t.spatialReference,n=0){return null!=e.spatialReference&&null!=i&&null!=X(e,e.spatialReference,t,i,n)}function X(e,t,i,n,r){const{points:s,hasZ:o,hasM:l}=e,a=[],u=s.length,c=[];for(const e of s)c.push(e[0],e[1],o?e[2]:r);if(!(0,M.projectBuffer)(c,t,0,c,n,0,u))return null;const h=ae(o,n);for(let e=0;e<u;++e){const t=3*e,i=c[t],n=c[t+1];h&&l?a.push([i,n,c[t+2],s[e][3]]):h?a.push([i,n,c[t+2]]):l?a.push([i,n,s[e][2]]):a.push([i,n])}return i.points=a,i.spatialReference=n,i.hasZ=o,i.hasM=l,i}function ee(e,t,i=t.spatialReference,n=0){return null!=e.spatialReference&&null!=i&&null!=te(e,e.spatialReference,t,i,n)}function te(e,t,i,n,r){const{curvePaths:s,paths:o,hasZ:l,hasM:a}=e;if(!(s?le(s,l??!1,a??!1,t,i.curvePaths=[],n,r):oe(o,l??!1,a??!1,t,i.paths,n,r)))return null;const u=ae(l,n);return i.spatialReference=n,i.hasZ=u,i.hasM=a,i}function ie(e,t,i=t.spatialReference,n=0){return null!=e.spatialReference&&null!=i&&null!=ne(e,e.spatialReference,t,i,n)}function ne(e,t,i,n,r){const{curveRings:s,rings:o,hasZ:l,hasM:a}=e;return(s?le(s,l??!1,a??!1,t,i.curveRings=[],n,r):oe(o,l??!1,a??!1,t,i.rings,n,r))?(i.spatialReference=n,i.hasZ=ae(l,n),i.hasM=a,i):null}function re(e,t,i=t.spatialReference,n=0){return null!=e.spatialReference&&null!=i&&null!=se(e,e.spatialReference,t,i,n)}function se(e,t,i,n,r){const{xmin:s,ymin:o,xmax:l,ymax:a,hasZ:u,hasM:c}=e;if(!_(s,o,u?e.zmin:r,t,ue,n))return null;const h=ae(u,n);return i.xmin=ue[0],i.ymin=ue[1],h&&(i.zmin=ue[2]),_(l,a,u?e.zmax:r,t,ue,n)?(i.xmax=ue[0],i.ymax=ue[1],h&&(i.zmax=ue[2]),c&&(i.mmin=e.mmin,i.mmax=e.mmax),i.spatialReference=n,i):null}function oe(e,t,i,n,r,s,o=0){const l=new Array;for(const i of e)for(const e of i)l.push(e[0],e[1],t?e[2]:o);if(!(0,M.projectBuffer)(l,n,0,l,s,0))return!1;let a=0;r.length=0;const u=t?3:2,c=ae(t,s);for(const t of e){const e=new Array;for(const n of t){const t=l.slice(a,a+=3);c||t.pop(),i&&t.push(n[u]),e.push(t)}r.push(e)}return!0}function le(e,t,i,n,r,s,o=0){const l=new Array;for(const i of e)for(const e of i){if((0,A.FG)(e))return!1;if((0,A.aO)(e)){const[i,n]=e.c;l.push(i[0],i[1],t?i[2]:o,n[0],n[1],o);continue}if((0,A.n1)(e)){const[i,n,r]=e.b;l.push(i[0],i[1],t?i[2]:o,n[0],n[1],o,r[0],r[1],o);continue}const i=e;l.push(i[0],i[1],t?i[2]:o)}if(!(0,M.projectBuffer)(l,n,0,l,s,0))return!1;let a=0;r.length=0;const u=t?3:2,c=ae(t,s);for(const t of e){const e=new Array;for(const n of t){const t=l.slice(a,a+=3);if(c||t.pop(),i&&t.push((0,A.yP)(n)[u]),(0,A.FG)(n))return!1;if((0,A.aO)(n)){const i=l[a++],n=l[a++];++a,e.push({c:[t,[i,n]]});continue}if((0,A.n1)(n)){const i=l[a++],n=l[a++];++a;const r=l[a++],s=l[a++];++a,e.push({b:[t,[i,n],[r,s]]});continue}e.push(t)}r.push(e)}return!0}function ae(e,t){return e||(0,u.xP)(t)||(0,I.aI)(t,m.Y0)}const ue=(0,l.vt)()},98764(e,t,i){i.d(t,{lO:()=>c});var n=i(73941),r=i(16930),s=i(21325);const o=new r.A(n.fv),l=new r.A(n.FY),a=new r.A(n.LJ),u=new r.A(n.Ro);function c(e){const t=h.get(e);if(t)return t;let i=o;if(e)if(e===l)i=l;else if(e===a)i=a;else{const t=e.wkid,n=e.latestWkid;if(null!=t||null!=n)(0,s.tl)(t)||(0,s.tl)(n)?i=l:((0,s.ZL)(t)||(0,s.ZL)(n))&&(i=a);else{const t=e.wkt2??e.wkt;if(t){const e=t.toUpperCase();e===f?i=l:e===d&&(i=a)}}}return h.set(e,i),i}const h=new Map,f=l.wkt.toUpperCase(),d=a.wkt.toUpperCase();i.d(t,["GD",0,o,"Y0",0,u])},4197(e,t,i){i.d(t,{Vj:()=>c,cj:()=>u,jh:()=>s,l5:()=>l,yH:()=>a});var n=i(34275),r=i(9093);function s(e){return e<=1024?new Array(e).fill(0):new Float64Array(e)}function o(e){return((0,n.iu)(e)?e.byteLength/8:e.length)<=1024?Array.from(e):new Float64Array(e)}function l(e,t,i){return Array.isArray(e)?e.slice(t,t+i):e.subarray(t,t+i)}function a(e,t){if(0===t.length)return o(e);if(0===e.length)return o(t);const i=s(e.length+t.length);for(let t=0;t<e.length;++t)i[t]=e[t];for(let n=0;n<t.length;++n)i[e.length+n]=t[n];return i}function u(e){return[...e]}function c(e){const t=(0,r.vt)();for(let i=0;i<16;++i)t[i]=e[i];return t}},70328(e,t,i){i.d(t,{BI:()=>C,C:()=>o,DC:()=>f,Ej:()=>M,Ie:()=>A,Jt:()=>x,Lu:()=>_,Ne:()=>w,RF:()=>h,TF:()=>m,VL:()=>p,aI:()=>z,fA:()=>l,gE:()=>u,gX:()=>b,hZ:()=>I,iT:()=>d,is:()=>F,pg:()=>v,uJ:()=>g,vI:()=>S,vY:()=>a,vt:()=>s,w1:()=>c,yr:()=>y}),i(35522);var n=i(5443),r=(i(19419),i(4197));function s(e=T){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 l(e,t,i,n,r,o,l=s()){return l[0]=e,l[1]=t,l[2]=i,l[3]=n,l[4]=r,l[5]=o,l}function a(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],l=e[3],a=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]),l=Math.max(l,t[i+3*e]),a=Math.max(a,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]=l,e[4]=a,e[5]=u}(n,e,t,i),n}(e,0,e.length/3,t)}function u(e,t=(0,r.jh)(24)){const[i,n,s,o,l,a]=e;return t[0]=i,t[1]=n,t[2]=s,t[3]=i,t[4]=n,t[5]=a,t[6]=i,t[7]=l,t[8]=s,t[9]=i,t[10]=l,t[11]=a,t[12]=o,t[13]=n,t[14]=s,t[15]=o,t[16]=n,t[17]=a,t[18]=o,t[19]=l,t[20]=s,t[21]=o,t[22]=l,t[23]=a,t}function c(e,t){const i=isFinite(e[2])||isFinite(e[5]);return new n.A(i?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function h(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 f(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 d(e,[t,i,n]){!function(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)}(e,t,i,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 m(e){const t=p(e),i=g(e),n=y(e);return t*t+i*i+n*n}function b(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 M(e,t=[0,0,0]){return t[0]=p(e),t[1]=y(e),t[2]=g(e),t}function v(e,t){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function _(e,t){return t[0]=e[3],t[1]=e[4],t[2]=e[5],t}function w(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 S(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 A(e){return e?I(e,R):s(R)}function x(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function C(e,t,i,n,r){return e[0]=t,e[1]=i,e[2]=Number.NEGATIVE_INFINITY,e[3]=n,e[4]=r,e[5]=Number.POSITIVE_INFINITY,e}function F(e){return 6===e.length}function z(e,t,i){if(null==e||null==t)return e===t;if(!F(e)||!F(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],T=[0,0,0,0,0,0];s(),i.d(t,["qv",0,R,"v_",0,T])},34403(e,t,i){var n=i(79258);Math.PI;const r=n.$O.radius,s=n.$O.eccentricitySquared,o={a1:r*s,a2:r*s*r*s,a3:r*s*s/2,a4:r*s*r*s*2.5,a5:r*s+r*s*s/2,a6:1-s};n.$O.radius,n.$O.flattening,n.Sw.radius,n.Sw.flattening,n.sH.radius,n.sH.flattening,n.sH.radius,i.d(t,["TP",0,o])},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 l(e){return void 0!==e.rings||void 0!==e.curveRings}function a(e){return"object"==typeof e&&"vertexAttributes"in e}function u(e){return e?s(e)?"esriGeometryPoint":o(e)?"esriGeometryPolyline":l(e)?"esriGeometryPolygon":n(e)?"esriGeometryEnvelope":r(e)?"esriGeometryMultipoint":null:null}function c(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function h(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}i.d(t,{$B:()=>u,Bi:()=>l,Pv:()=>c,Rg:()=>o,U9:()=>r,W0:()=>h,ZC:()=>n,fT:()=>s,uW:()=>a})},65864(e,t,i){i.d(t,{rS:()=>c,xD:()=>f});var n=i(5443),r=i(91075),s=i(48526),o=i(86738),l=i(39829),a=i(82799),u=i(60408);function c(e){return null==e?null:e instanceof r.A?e:(0,u.fT)(e)?o.A.fromJSON(e):(0,u.Rg)(e)?a.A.fromJSON(e):(0,u.Bi)(e)?l.A.fromJSON(e):(0,u.U9)(e)?s.A.fromJSON(e):(0,u.ZC)(e)?n.A.fromJSON(e):null}const h={esriGeometryPoint:o.A,esriGeometryPolyline:a.A,esriGeometryPolygon:l.A,esriGeometryEnvelope:n.A,esriGeometryMultipoint:s.A,esriGeometryMultiPatch:l.A};function f(e){return e&&h[e]||null}},50498(e,t,i){var n=i(66552),r=i(5443),s=i(91075),o=i(48526),l=i(86738),a=i(39829),u=i(82799);const c=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),h=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),f={base:s.A,key:"type",typeMap:{extent:r.A,multipoint:o.A,point:l.A,polyline:u.A,polygon:a.A}},d=new n.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0});i.d(t,["Ye",0,h,"gy",0,c,"iI",0,d,"yR",0,f])},99959(e,t,i){i.d(t,{A:()=>s});var n=i(5482),r=i(91429);let s=class{};s=(0,n.Cg)([(0,r.$K)("esri.graphic.GraphicOrigin")],s)},55156(e,t,i){i.d(t,{I:()=>r});const n=Symbol("idFieldsProviderSymbol");function r(e){return(t=e)&&n in t?e[n]:void 0;var t}i.d(t,["e",0,n])},89808(e,t,i){const n=Symbol("getSliceableSymbol");i.d(t,["Q",0,n])},162(e,t,i){i.r(t),i.d(t,{default:()=>V});var n=i(5482),r=i(7762),s=i(38961),o=i(25728),l=i(17676),a=i(36708),u=i(84952),c=i(91429),h=i(5443),f=i(16930),d=i(4146),p=i(63074),y=i(34287),g=i(8303),m=i(54310),b=i(25036),M=i(10873),v=i(65529),_=i(25482),w=i(92474),S=i(799),I=i(56507),A=i(89808),x=i(99959);const C=Symbol("isKMLGraphicOrigin");var F;class z extends x.A{get[(F=C,A.Q)](){return this.layer}constructor(e,t){super(),this[F]=!0,this.type="kml",this.layer=e,this.sublayer=t}get id(){return`${this.layer.id}:__${this.sublayer.id}__`}}var R=i(92602),T=i(70333),P=(i(37838),i(11254)),O=i(4718),L=i(70328),k=i(537);i(65494),i(22671);const E={esriGeometryPoint:"points",esriGeometryPolyline:"polylines",esriGeometryPolygon:"polygons"};function Z(e){const t=e.folders||[],i=t.slice(),n=new Map,r=new Map,s=new Map,o=new Map,l=new Map,a={esriGeometryPoint:r,esriGeometryPolyline:s,esriGeometryPolygon:o};(e.featureCollection?.layers||[]).forEach(e=>{const t=(0,O.o8)(e);t.featureSet.features=[];const i=e.featureSet.geometryType;n.set(i,t);const l=e.layerDefinition.objectIdField;"esriGeometryPoint"===i?j(r,l,e.featureSet.features):"esriGeometryPolyline"===i?j(s,l,e.featureSet.features):"esriGeometryPolygon"===i&&j(o,l,e.featureSet.features)}),e.groundOverlays&&e.groundOverlays.forEach(e=>{l.set(e.id,e)}),t.forEach(t=>{t.networkLinkIds.forEach(n=>{const r=function(e,t,i){const n=function(e,t){let i;return t.some(t=>t.id===e&&(i=t,!0)),i}(e,i);return n&&(n.parentFolderId=t,n.networkLink=n),n}(n,t.id,e.networkLinks);r&&i.push(r)})}),i.forEach(e=>{if(e.featureInfos){e.points=(0,O.o8)(n.get("esriGeometryPoint")),e.polylines=(0,O.o8)(n.get("esriGeometryPolyline")),e.polygons=(0,O.o8)(n.get("esriGeometryPolygon")),e.mapImages=[];for(const t of e.featureInfos)switch(t.type){case"esriGeometryPoint":case"esriGeometryPolyline":case"esriGeometryPolygon":{const i=a[t.type].get(t.id);i&&e[E[t.type]]?.featureSet.features.push(i);break}case"GroundOverlay":{const i=l.get(t.id);i&&e.mapImages.push(i);break}}e.fullExtent=q([e])}});const u=q(i);return{folders:t,sublayers:i,extent:u}}function N(e,t,i,n){const r=T.id?.findCredential(e);e=(0,u.a6)(e,{token:r?.token});const s=R.A.kmlServiceUrl;return(0,P.A)(s,{query:{url:e,model:"simple",folders:"",refresh:0!==i||void 0,outSR:JSON.stringify(t)},responseType:"json",signal:n})}function G(e,t,i=null,n=[]){const r=[],s={},o=t.sublayers,l=new Set(t.folders.map(e=>e.id));return o.forEach(t=>{const o=new e;if(i?o.read(t,i):o.read(t),n.length&&l.has(o.id)&&(o.visible=n.includes(o.id)),s[t.id]=o,null!=t.parentFolderId&&-1!==t.parentFolderId){const e=s[t.parentFolderId];e.sublayers||(e.sublayers=[]),e.sublayers?.unshift(o)}else r.unshift(o)}),r}function j(e,t,i){i.forEach(i=>{e.set(i.attributes[t],i)})}function q(e){const t=(0,L.vt)(L.qv),i=(0,L.vt)(L.qv);for(const n of e){if(n.polygons?.featureSet?.features)for(const e of n.polygons.featureSet.features)(0,k.LJ)(t,e.geometry),(0,L.RF)(i,t);if(n.polylines?.featureSet?.features)for(const e of n.polylines.featureSet.features)(0,k.LJ)(t,e.geometry),(0,L.RF)(i,t);if(n.points?.featureSet?.features)for(const e of n.points.featureSet.features)(0,k.LJ)(t,e.geometry),(0,L.RF)(i,t);if(n.mapImages)for(const e of n.mapImages)(0,k.LJ)(t,e.extent),(0,L.RF)(i,t)}return(0,L.aI)(i,L.qv)?void 0:{xmin:i[0],ymin:i[1],zmin:i[2],xmax:i[3],ymax:i[4],zmax:i[5],spatialReference:f.A.WGS84}}var U,$=i(36005);let J=U=class extends((0,v.Zt)((0,_.T)(w.x_))){constructor(...e){super(...e),this.description=null,this.fullExtent=null,this.id=null,this.networkLink=null,this.parent=null,this.sublayers=null,this.title=null,this.sourceJSON=null,this.layer=null,this.addHandles([(0,a.on)(()=>this.sublayers,"after-add",({item:e})=>{e.parent=this,e.layer=this.layer},a.OH),(0,a.on)(()=>this.sublayers,"after-remove",({item:e})=>{e.layer=e.parent=null},a.OH),(0,a.wB)(()=>this.sublayers,(e,t)=>{if(t)for(const e of t)e.layer=e.parent=null;if(e)for(const t of e)t.parent=this,t.layer=this.layer},a.OH),(0,a.wB)(()=>this.layer,e=>{if(this.sublayers)for(const t of this.sublayers)t.layer=e},a.OH)])}initialize(){(0,a.C_)(()=>this.networkLink).then(()=>(0,a.C_)(()=>!0===this.visible)).then(()=>this.load())}async load(e){if(!this.networkLink)return this;if(this.networkLink.viewFormat)return this;const t=null!=e?e.signal:null,i=this._fetchService(this._get("networkLink")?.href??"",t).then(e=>{const t=q(e.sublayers);this.fullExtent=h.A.fromJSON(t),this.sourceJSON=e;const i=(0,I.dp)(r.A.ofType(U),G(U,e));this.sublayers?this.sublayers.addMany(i):this.sublayers=i,this.layer?.emit("sublayer-update"),this.layer&&this.layer.notifyChange("visibleSublayers")});return this.addResolvingPromise(i),this}get visible(){return this._get("visible")}set visible(e){this._get("visible")!==e&&(this._set("visible",e),this.layer&&this.layer.notifyChange("visibleSublayers"))}readVisible(e,t){return!!t.visibility}get origin(){return this.layer?new z(this.layer,this):null}_fetchService(e,t){return N(e,this.layer.outSpatialReference,this.layer.refreshInterval,t).then(e=>Z(e.data))}};(0,n.Cg)([(0,c.MZ)()],J.prototype,"description",void 0),(0,n.Cg)([(0,c.MZ)({type:h.A})],J.prototype,"fullExtent",void 0),(0,n.Cg)([(0,c.MZ)()],J.prototype,"id",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0,value:null})],J.prototype,"networkLink",void 0),(0,n.Cg)([(0,c.MZ)({json:{write:{allowNull:!0}}})],J.prototype,"parent",void 0),(0,n.Cg)([(0,c.MZ)({type:r.A.ofType(U),json:{write:{allowNull:!0}}})],J.prototype,"sublayers",void 0),(0,n.Cg)([(0,c.MZ)({value:null,json:{read:{source:"name",reader:e=>(0,S._e)(e)}}})],J.prototype,"title",void 0),(0,n.Cg)([(0,c.MZ)({value:!0})],J.prototype,"visible",null),(0,n.Cg)([(0,$.w)("visible",["visibility"])],J.prototype,"readVisible",null),(0,n.Cg)([(0,c.MZ)()],J.prototype,"sourceJSON",void 0),(0,n.Cg)([(0,c.MZ)()],J.prototype,"layer",void 0),(0,n.Cg)([(0,c.MZ)()],J.prototype,"origin",null),J=U=(0,n.Cg)([(0,c.$K)("esri.layers.support.KMLSublayer")],J);var B=i(43937);const H=["kml","xml"];let D=class extends((0,p.dM)((0,m.J)((0,b.j)((0,y.q)((0,g.A)((0,o.M)(d.A))))))){constructor(...e){super(...e),this._visibleFolders=[],this.allSublayers=new s.A({getCollections:()=>[this.sublayers],getChildrenFunction:e=>e.sublayers}),this.outSpatialReference=f.A.WGS84,this.path=null,this.legendEnabled=!1,this.operationalLayerType="KML",this.sublayers=null,this.type="kml",this.url=null}initialize(){this.addHandles([(0,a.wB)(()=>this.sublayers,(e,t)=>{t&&t.forEach(e=>{e.parent=null,e.layer=null}),e&&e.forEach(e=>{e.parent=this,e.layer=this})},a.OH),this.on("sublayer-update",()=>this.notifyChange("fullExtent"))])}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}get sublayerById(){const e=new Map;for(const t of this.allSublayers)e.set(t.id,t);return e}readSublayersFromItemOrWebMap(e,t){this._visibleFolders=t.visibleFolders}readSublayers(e,t,i){return G(J,t,i,this._visibleFolders)}writeSublayers(e,t){const i=[],n=e.toArray();for(;n.length;){const e=n[0];e.networkLink||(e.visible&&i.push(e.id),e.sublayers&&n.push(...e.sublayers.toArray())),n.shift()}t.visibleFolders=i}get title(){const e=this._get("title");return e&&"defaults"!==this.originOf("title")?e:this.url?(0,u.e7)(this.url,H)||"KML":e}set title(e){this._set("title",e)}get visibleSublayers(){const e=this.sublayers,t=[],i=e=>{e.visible&&(t.push(e),e.sublayers&&e.sublayers.forEach(i))};return e?.forEach(i),t}get fullExtent(){return this._recomputeFullExtent()}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["KML"],supportsData:!1},e).catch(l.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}destroy(){super.destroy(),this.allSublayers.destroy()}async _fetchService(e){const t=Z((await Promise.resolve().then(()=>this.resourceInfo?{ssl:!1,data:this.resourceInfo}:N(this.url??"",this.outSpatialReference,this.refreshInterval,e))).data);t&&this.read(t,{origin:"service"})}_recomputeFullExtent(){let e=null;null!=this.extent&&(e=this.extent.clone());const t=i=>{if(i.sublayers)for(const n of i.sublayers.items)t(n),n.visible&&n.fullExtent&&(null!=e?e.union(n.fullExtent):e=n.fullExtent.clone())};return t(this),e}};(0,n.Cg)([(0,c.MZ)({readOnly:!0})],D.prototype,"allSublayers",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0})],D.prototype,"sublayerById",null),(0,n.Cg)([(0,c.MZ)({type:f.A})],D.prototype,"outSpatialReference",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],D.prototype,"path",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1,write:!1}})],D.prototype,"legendEnabled",void 0),(0,n.Cg)([(0,c.MZ)({type:["show","hide","hide-children"]})],D.prototype,"listMode",void 0),(0,n.Cg)([(0,c.MZ)({type:["KML"]})],D.prototype,"operationalLayerType",void 0),(0,n.Cg)([(0,c.MZ)({})],D.prototype,"resourceInfo",void 0),(0,n.Cg)([(0,c.MZ)({type:r.A.ofType(J),json:{write:{ignoreOrigin:!0}}})],D.prototype,"sublayers",void 0),(0,n.Cg)([(0,$.w)(["web-map","portal-item"],"sublayers",["visibleFolders"])],D.prototype,"readSublayersFromItemOrWebMap",null),(0,n.Cg)([(0,$.w)("service","sublayers",["sublayers"])],D.prototype,"readSublayers",null),(0,n.Cg)([(0,B.K)("sublayers")],D.prototype,"writeSublayers",null),(0,n.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1}})],D.prototype,"type",void 0),(0,n.Cg)([(0,c.MZ)({json:{origins:{"web-map":{read:{source:"title"}}},write:{ignoreOrigin:!0}}})],D.prototype,"title",null),(0,n.Cg)([(0,c.MZ)(M.OZ)],D.prototype,"url",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0})],D.prototype,"visibleSublayers",null),(0,n.Cg)([(0,c.MZ)({type:h.A})],D.prototype,"extent",void 0),(0,n.Cg)([(0,c.MZ)()],D.prototype,"fullExtent",null),D=(0,n.Cg)([(0,c.$K)("esri.layers.KMLLayer")],D);const V=D},54339(e,t,i){function n(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{const i=[];for(const n of t.fieldNames)i.push(e.attributes[n]??null);return JSON.stringify(i)}}}function r(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const i=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(i)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}i.d(t,{W:()=>n,r:()=>r})},8303(e,t,i){var n=i(5482),r=i(92602),s=i(70333),o=i(11254),l=i(60999),a=i(49186),u=i(36563),c=i(53966),h=i(97768),f=i(17676),d=i(84952),p=i(91429),y=i(77548),g=i(20655),m=i(80812),b=i(41318),M=i(10407),v=i(36005),_=i(43937);const w={credential:null,user:null};i.d(t,["A",0,e=>{const t=e;let S=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){super.destroy(),this.portalItem=(0,h.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,i){if(t.itemId)return new m.default({id:t.itemId,portal:i?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:n}=await i.e(1204).then(i.bind(i,41204));return(0,f.Te)(t),await n({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,f.zf)(e)||c.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async reloadFromPortal(e){if(!this.loaded||!this.portalItem?.id)return!1;try{const{reload:t}=await i.e(1204).then(i.bind(i,41204)),n=new AbortController,r=(0,u.rE)(n);return this.addHandles(r,"reloadFromPortal"),await t({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},{signal:n.signal})}catch(e){throw(0,f.zf)(e)||c.A.getLogger(this).warn(`Failed to reload layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}finally{this.removeHandles("reloadFromPortal")}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,f.QP)(e),!0)))}async setUserPrivileges(e,t){if(!r.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:i,fullEdit:n},content:{updateItem:r}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",i),this._set("userHasFullEditingPrivileges",n),this._set("userHasUpdateItemPrivileges",r)}catch(e){(0,f.QP)(e)}}async _fetchUserPrivileges(e,t){let i=this.portalItem;if(!e||!i||!i.loaded||i.sourceUrl)return this._fetchFallbackUserPrivileges(t);const n=!s.id?.findCredential(this.url),r=e===i.id;if(r&&i.portal.user)return this._getUserPrivileges(i,n);let o,l;if(r)o=i.portal.url;else try{o=await(0,y.wI)(this.url,t)}catch(e){(0,f.QP)(e)}if(!o||!(0,d.b8)(o,i.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;l=await(s.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,f.QP)(e)}const a=!0,u=!1,c=!1;if(!l)return{features:{edit:a,fullEdit:u},content:{updateItem:c}};try{if(r?await i.reload():(i=new m.default({id:e,portal:{url:o}}),await i.load(t)),i.portal.user)return this._getUserPrivileges(i,n)}catch(e){(0,f.QP)(e)}return{features:{edit:a,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(e,t){const i=(0,M.It)(e);return t&&(i.features.edit=!0),i}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,f.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const i=w.credential===t?w.user:await this._fetchEditingUser(e);return w.credential=t,w.user=i,null==i?.privileges||i.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const i=s.id?.findServerInfo(this.url??"");if(!i?.owningSystemUrl)return null;const n=`${i.owningSystemUrl}/sharing/rest`,r=g.A.getDefault();if(r&&r.loaded&&(0,d.S8)(r.restUrl)===(0,d.S8)(n))return r.user;const a=`${n}/community/self`,u=null!=e?e.signal:null,c=await(0,l.Ke)((0,o.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?b.A.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const i=t?.portal,n=this.portalItem?.id&&(this.portalItem.portal||g.A.getDefault());return i&&n&&!(0,d.ut)(n.restUrl,i.restUrl)?(t.messages&&t.messages.push(new a.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,n.Cg)([(0,p.MZ)({type:m.default})],S.prototype,"portalItem",null),(0,n.Cg)([(0,v.w)("web-document","portalItem",["itemId"])],S.prototype,"readPortalItem",null),(0,n.Cg)([(0,_.K)("web-document","portalItem",{itemId:{type:String}})],S.prototype,"writePortalItem",null),(0,n.Cg)([(0,p.MZ)({clonable:!1})],S.prototype,"resourceReferences",void 0),(0,n.Cg)([(0,p.MZ)({type:Boolean,readOnly:!0})],S.prototype,"userHasEditingPrivileges",void 0),(0,n.Cg)([(0,p.MZ)({type:Boolean,readOnly:!0})],S.prototype,"userHasFullEditingPrivileges",void 0),(0,n.Cg)([(0,p.MZ)({type:Boolean,readOnly:!0})],S.prototype,"userHasUpdateItemPrivileges",void 0),S=(0,n.Cg)([(0,p.$K)("esri.layers.mixins.PortalLayer")],S),S}])},95466(e,t,i){i.d(t,{A:()=>u});var n=i(49186),r=i(53966),s=i(12195),o=i(30524),l=i(98623),a=i(56400);class u{static fromJSON(e){return new u(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new u(e.fields??[],h(e))}static fromLayerJSON(e){return new u(e.fields??[],h(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;const i=[];for(const e of this.fields){const t=e?.name,n=(0,o.GZ)(t);if(t&&n){const r=(0,o.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,o.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,o.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,o.te)(e)||(0,o.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(const e of this.fields)(0,o.te)(e)||(0,o.Xz)(e)||e.nullable||void 0!==(0,o.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,o.Vb)({fieldName:e,fieldsMap:this._fieldsMap,normalizedFieldsMap:this._normalizedFieldsMap})}getTimeZone(e){const 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"):c.has(t.type)?l.L:null:null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,o.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 c=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function h(e){const t=new Map;if(!e.fields)return t;const 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:"")??"",h=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,a.ZS)(e.dateFieldsTimeReference):null,f=r?function(e){return"timeZone"in e}(r)?r.timeZone??h:r.dateFieldsTimeReference?(0,a.ZS)(r.dateFieldsTimeReference):h??"UTC":null,d=n?function(e){return"timeZone"in e}(n)?n.timeZone??h:n.timeReference?(0,a.ZS)(n.timeReference):h:null,p=new Map([[(0,o.NF)(r?.creationDateField??""),f],[(0,o.NF)(r?.editDateField??""),f],[(0,o.NF)(s),d],[(0,o.NF)(u),d]]);for(const{name:n,type:r}of e.fields)if(c.has(r))t.set(n,l.L);else if("date"!==r&&"esriFieldTypeDate"!==r)t.set(n,null);else if(i)t.set(n,l.L);else{const e=p.get((0,o.NF)(n??""))??h;t.set(n,e)}return t}},5757(e,t,i){i.d(t,{B:()=>r});const n=Symbol("PopupTemplateInstance");function r(e){return null!=e&&"object"==typeof e&&n in e}i.d(t,["P",0,n])},10407(e,t,i){i.d(t,{It:()=>d,LG:()=>o,OM:()=>u,Sm:()=>c,Y:()=>l,bK:()=>a,sQ:()=>h});var n=i(91218),r=i(16930),s=i(28735);function o(e,t){if(!l(e,t)){const i=e.typeKeywords;i?i.push(t):e.typeKeywords=[t]}}function l(e,t){return!!e.typeKeywords?.includes(t)}function a(e){return l(e,f.HOSTED_SERVICE)}function u(e,t){const i=e.typeKeywords;if(i){const e=i.indexOf(t);e>-1&&i.splice(e,1)}}function c(e,t,i){i?o(e,t):u(e,t)}async function h(e){const t=e.clone().normalize();let i;if(t.length>1)for(const e of t)i?e.width>i.width&&(i=e):i=e;else i=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,s.ci)(e);const i=r.A.WGS84;return await(0,n.initializeProjection)(t,i),(0,n.project)(e,i)}(i)}const f={CHARTS:"Charts",CATALOG_LAYER:"CatalogLayer",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",PARCEL_FABRIC:"ParcelFabric",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery",UTILITY_NETWORK:"UtilityNetwork"};function d(e){const{portal:t,isOrgItem:i,itemControl:n}=e,r=t.user?.privileges;let s=!r||r.includes("features:user:edit"),o=!!i&&!!r?.includes("features:user:fullEdit");const l="update"===n||"admin"===n;return l?o=s=!0:o&&(s=!0),{features:{edit:s,fullEdit:o},content:{updateItem:l}}}i.d(t,["mm",0,f])},96576(e,t,i){i.d(t,{A:()=>h});var n,r=i(5482),s=i(4718),o=i(91429),l=i(92438),a=i(63988),u=i(49849),c=i(93223);let h=n=class extends((0,a.h)(l.A)){constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.type="simple"}async collectRequiredFields(e,t){await Promise.all([this.collectSymbolFields(e,t),this.collectVVRequiredFields(e,t)])}async collectSymbolFields(e,t){await Promise.all(this.symbols.map(i=>i.collectRequiredFields(e,t)))}getSymbol(e,t){return this.symbol}async getSymbolAsync(e,t){return this.symbol}get symbols(){return this.symbol?[this.symbol]:[]}get arcadeRequired(){return this.arcadeRequiredForVisualVariables}clone(){return new n({description:this.description,label:this.label,symbol:(0,s.o8)(this.symbol),visualVariables:(0,s.o8)(this.visualVariables),authoringInfo:(0,s.o8)(this.authoringInfo)})}};(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],h.prototype,"description",void 0),(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],h.prototype,"label",void 0),(0,r.Cg)([(0,o.MZ)(u.Wp)],h.prototype,"symbol",void 0),(0,r.Cg)([(0,c.e)({simple:"simple"})],h.prototype,"type",void 0),h=n=(0,r.Cg)([(0,o.$K)("esri.renderers.SimpleRenderer")],h)},65494(e,t,i){i.d(t,{L:()=>a,r:()=>o});var n=i(90360),r=i(41214),s=i(59923);function o(e,t){return a(e,null,t)}const l=(0,n.C)({types:r.Hg});function a(e,t,i){return e?e&&(e.styleName||e.styleUrl)&&"uniqueValue"!==e.type?((0,s.Yc)(i,"warning","renderer",`Only UniqueValueRenderer can be referenced from a web style, but found '${e.type}'`,{definition:e}),null):l(e,t,i):null}},98205(e,t,i){i.d(t,{KZ:()=>l,eh:()=>o,gf:()=>s,of:()=>r});const n=Symbol("SizeVariableInstance");function r(e){return null!=e&&"object"==typeof e&&n in e}function s(e){return null!=e&&!isNaN(e)&&isFinite(e)}function o(e){return e.valueExpression?"expression":e.field&&"string"==typeof e.field?"field":"unknown"}function l(e,t){const i=t||o(e),n=e.valueUnit||"unknown";return"unknown"===i?"constant":e.stops?"stops":null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?"clamped-linear":"unknown"===n?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?"proportional":"additive":"identity":"real-world-size"}i.d(t,["uY",0,n])},22671(e,t,i){i.d(t,{A:()=>b});var n,r=i(5482),s=i(52106),o=i(66552),l=i(25482),a=i(4718),u=i(91429),c=i(16930),h=i(60408),f=i(65864),d=i(50498),p=i(20437),y=i(36005),g=i(43937);const m=new o.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let b=n=class extends l.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,s.A)}writeGeometryType(e,t,i,n){if(e)return void m.write(e,t,i,n);const{features:r}=this;if(r)for(const e of r)if(null!=e?.geometry)return void m.write(e.geometry.type,t,i,n)}readQueryGeometry(e,t){if(!e)return null;const i=!!e.spatialReference,n=(0,f.rS)(e);return n&&!i&&t.spatialReference&&(n.spatialReference=c.A.fromJSON(t.spatialReference)),n}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:i}=this;if(i)for(const e of i)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new n(this.cloneProperties())}cloneProperties(){return(0,a.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let i=0;i<t.features.length;i++){const n=t.features[i];if(n.geometry){const t=e?.[i];n.geometry=t?.toJSON()||n.geometry}}return t}quantize(e){const{scale:[t,i],translate:[n,r]}=e,s=this.features,o=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-n)/t),e=>Math.round((r-e)/i));for(let e=0,t=s.length;e<t;e++)o?.(s[e].geometry)||(s.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:i}=this;if(!i)return this;const{translate:[n,r],scale:[s,o]}=i;let l=null,a=null;if(this.hasZ&&null!=i?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=i;l=i=>i*t+e}if(this.hasM&&null!=i?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=i;a=i=>null==i?i:i*t+e}const u=this._getHydrationFunction(e,e=>e*s+n,e=>r-e*o,l,a);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,i){const n=c.A.fromJSON(t.spatialReference),r=[];for(let t=0;t<e.length;t++){const s=e[t],o=i.fromJSON(s),l=s.geometry?.spatialReference;null==o.geometry||l||(o.geometry.spatialReference=n);const a=s.aggregateGeometries,u=o.aggregateGeometries;if(a&&null!=u)for(const e in u){const t=u[e],i=a[e],r=i?.spatialReference;null==t||r||(t.spatialReference=n)}r.push(o)}return r}_quantizePoints(e,t,i){let n,r;const s=[];for(let o=0,l=e.length;o<l;o++){const l=e[o];if(o>0){const e=t(l[0]),o=i(l[1]);e===n&&o===r||(s.push([e-n,o-r]),n=e,r=o)}else n=t(l[0]),r=i(l[1]),s.push([n,r])}return s.length>0?s:null}_getQuantizationFunction(e,t,i){return"point"===e?e=>(e.x=t(e.x),e.y=i(e.y),e):"polyline"===e||"polygon"===e?e=>{const n=(0,h.Bi)(e)?e.rings:e.paths,r=[];for(let e=0,s=n.length;e<s;e++){const s=n[e],o=this._quantizePoints(s,t,i);o&&r.push(o)}return r.length>0?((0,h.Bi)(e)?e.rings=r:e.paths=r,e):null}:"multipoint"===e?e=>{const n=this._quantizePoints(e.points,t,i);return n&&n.length>0?(e.points=n,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,i,n,r){return"point"===e?e=>{e.x=t(e.x),e.y=i(e.y),n&&(e.z=n(e.z))}:"polyline"===e||"polygon"===e?e=>{const s=(0,h.Bi)(e)?e.rings:e.paths;let o,l;for(let e=0,n=s.length;e<n;e++){const n=s[e];for(let e=0,r=n.length;e<r;e++){const r=n[e];e>0?(o+=r[0],l+=r[1]):(o=r[0],l=r[1]),r[0]=t(o),r[1]=i(l)}}if(n&&r)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=n(i[2]),i[3]=r(i[3])}}else if(n)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=n(i[2])}}else if(r)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=r(i[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=i(e.ymin),e.xmax=t(e.xmax),e.ymax=i(e.ymax),n&&null!=e.zmax&&null!=e.zmin&&(e.zmax=n(e.zmax),e.zmin=n(e.zmin)),r&&null!=e.mmax&&null!=e.mmin&&(e.mmax=r(e.mmax),e.mmin=r(e.mmin))}:"multipoint"===e?e=>{const s=e.points;let o,l;for(let e=0,n=s.length;e<n;e++){const n=s[e];e>0?(o+=n[0],l+=n[1]):(o=n[0],l=n[1]),n[0]=t(o),n[1]=i(l)}if(n&&r)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=n(t[2]),t[3]=r(t[3])}else if(n)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=n(t[2])}else if(r)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=r(t[2])}}:null}};(0,r.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],b.prototype,"displayFieldName",void 0),(0,r.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"exceededTransferLimit",void 0),(0,r.Cg)([(0,u.MZ)({type:[s.A],json:{write:!0}})],b.prototype,"features",void 0),(0,r.Cg)([(0,y.w)("features")],b.prototype,"readFeatures",null),(0,r.Cg)([(0,u.MZ)({type:[p.A],json:{write:!0}})],b.prototype,"fields",void 0),(0,r.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:m.read}}})],b.prototype,"geometryType",void 0),(0,r.Cg)([(0,g.K)("geometryType")],b.prototype,"writeGeometryType",null),(0,r.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasM",void 0),(0,r.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasZ",void 0),(0,r.Cg)([(0,u.MZ)({types:d.yR,json:{write:!0}})],b.prototype,"queryGeometry",void 0),(0,r.Cg)([(0,y.w)("queryGeometry")],b.prototype,"readQueryGeometry",null),(0,r.Cg)([(0,u.MZ)({type:c.A,json:{write:!0}})],b.prototype,"spatialReference",void 0),(0,r.Cg)([(0,g.K)("spatialReference")],b.prototype,"writeSpatialReference",null),(0,r.Cg)([(0,u.MZ)({json:{write:!0}})],b.prototype,"transform",void 0),b=n=(0,r.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],b),b.prototype.toJSON.isDefaultToJSON=!0},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])}}]);
|