@arcgis/core 6.0.0-next.15 → 6.0.0-next.17
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/analysis/LineOfSightAnalysis.d.ts +49 -32
- package/analysis/LineOfSightAnalysisObserver.d.ts +19 -3
- package/analysis/LineOfSightAnalysisTarget.d.ts +19 -3
- package/analysis/Viewshed.d.ts +23 -3
- package/analysis/ViewshedAnalysis.d.ts +33 -13
- package/arcade/geometry/operatorsWorkerConnection.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/00d66e3fba5ab4d2aa3c.js +1 -0
- package/assets/esri/core/workers/chunks/{d994bcf0a65d1c07160f.js → 0320cbd825f9a4222042.js} +1 -1
- package/assets/esri/core/workers/chunks/14d5d219e7fe017f23f0.js +1 -0
- package/assets/esri/core/workers/chunks/164c8eeefa8232b2b191.js +2 -0
- package/assets/esri/core/workers/chunks/164e74d586297946a717.js +1 -0
- package/assets/esri/core/workers/chunks/1967b9c96045a5802d08.js +1 -0
- package/assets/esri/core/workers/chunks/{1bca39e0e651426bdbb5.js → 1b1d3f6916d2cb751435.js} +1 -1
- package/assets/esri/core/workers/chunks/{ed6e9d7f71bfd2691717.js → 1c77de1e79860f8d2228.js} +1 -1
- package/assets/esri/core/workers/chunks/1e40a26dcce4d1dadc28.js +1 -0
- package/assets/esri/core/workers/chunks/{261fea092ee7d27608a0.js → 20a2124cbe43e5527c40.js} +1 -1
- package/assets/esri/core/workers/chunks/237a1f68a0efbfe5b77c.js +1 -0
- package/assets/esri/core/workers/chunks/{3418877328f4f0830300.js → 24dac4970526a4e0ae63.js} +1 -1
- package/assets/esri/core/workers/chunks/26ceb0ff8d93dbb9b84f.js +1 -0
- package/assets/esri/core/workers/chunks/2853606099602f73d379.js +1 -0
- package/assets/esri/core/workers/chunks/2981e904ab62f3ed80d0.js +2 -0
- package/assets/esri/core/workers/chunks/2acf2952cef69e382a35.js +1 -0
- package/assets/esri/core/workers/chunks/32cc59e126df8c96a0cf.js +2 -0
- package/assets/esri/core/workers/chunks/{4df6cb1bee5d0720a43e.js → 34e0a8a3a2beea50f4f5.js} +1 -1
- package/assets/esri/core/workers/chunks/{481589c3eddad6e026ad.js → 369780276b2755361f7d.js} +1 -1
- package/assets/esri/core/workers/chunks/{1e0d2715d603f48a7e0b.js → 370aad23df597db80d65.js} +1 -1
- package/assets/esri/core/workers/chunks/3e30b96a8c75bd5b9ae2.js +1 -0
- package/assets/esri/core/workers/chunks/{25f19fc929f25ddd628c.js → 42753cf4965a94bc91ca.js} +1 -1
- package/assets/esri/core/workers/chunks/42d44c7d532df5ee70e9.js +1 -0
- package/assets/esri/core/workers/chunks/42e985a576d7aaeed0cf.js +1 -0
- package/assets/esri/core/workers/chunks/{6400446b7615b97c3521.js → 45f826554499c38968c6.js} +1 -1
- package/assets/esri/core/workers/chunks/48cc58890fddbcf69cef.js +1 -0
- package/assets/esri/core/workers/chunks/494bd434fee9032e1d02.js +1 -0
- package/assets/esri/core/workers/chunks/{33e4ff228a8c81b99022.js → 4abd3753cd9b80e4d937.js} +1 -1
- package/assets/esri/core/workers/chunks/{b564ec4e03478f5659db.js → 4c240ca50f70bf30813f.js} +1 -1
- package/assets/esri/core/workers/chunks/4c389472b8cdb0c55154.js +1 -0
- package/assets/esri/core/workers/chunks/4e4f747de424941a0bfa.js +1 -0
- package/assets/esri/core/workers/chunks/{70d3055f15d8b0cf4074.js → 532e9cda8ac3601d8892.js} +1 -1
- package/assets/esri/core/workers/chunks/5529831dd891382c79df.js +1 -0
- package/assets/esri/core/workers/chunks/{953ba13299e7aa92c1a0.js → 564565246dae080f5e6c.js} +1 -1
- package/assets/esri/core/workers/chunks/576248e9ae2654569420.js +1 -0
- package/assets/esri/core/workers/chunks/{2145a512d269d64036b0.js → 58c3ae6030def2ed5f31.js} +1 -1
- package/assets/esri/core/workers/chunks/5a19a9c3e01d3d415188.js +1 -0
- package/assets/esri/core/workers/chunks/5a830bc35adbedd33783.js +1 -0
- package/assets/esri/core/workers/chunks/{eb04e1717a1002cda3ab.js → 5b91e2dffdc84c006539.js} +1 -1
- package/assets/esri/core/workers/chunks/{aeaaff7a4b1a99540f52.js → 5cb26bbaa08114aec5ce.js} +1 -1
- package/assets/esri/core/workers/chunks/603fdbbe9534c614928f.js +1 -0
- package/assets/esri/core/workers/chunks/{4e6f40cbdb8c508e6df1.js → 60f92eb03c6e17ab4747.js} +1 -1
- package/assets/esri/core/workers/chunks/{67ebc5a3d46b254b725c.js → 612345f17f5eeb99ea8f.js} +1 -1
- package/assets/esri/core/workers/chunks/{1b077c92345ffb5916c2.js → 65c98f3449044fa4fd79.js} +1 -1
- package/assets/esri/core/workers/chunks/{2bd4ee083ca4ad221f8b.js → 65cb5e39c467a35621ca.js} +1 -1
- package/assets/esri/core/workers/chunks/661c6324529dd17b297e.js +1 -0
- package/assets/esri/core/workers/chunks/67a35155b8b4d36f171e.js +1 -0
- package/assets/esri/core/workers/chunks/68dd1fd2025c7125ead1.js +1 -0
- package/assets/esri/core/workers/chunks/{89e76de5ae3328d821a4.js → 69f6d5997b8ff1326e39.js} +1 -1
- package/assets/esri/core/workers/chunks/{ae31fd416bbb41a81392.js → 6ad309154fe84210d23c.js} +1 -1
- package/assets/esri/core/workers/chunks/{a40b6d8b5c73e06e14d4.js → 6c255c029d67423e4dac.js} +1 -1
- package/assets/esri/core/workers/chunks/7446d0dfebf93e86c098.js +1 -0
- package/assets/esri/core/workers/chunks/{688f2dbf784e66082308.js → 74c866e0b66e61751861.js} +1 -1
- package/assets/esri/core/workers/chunks/784d6c6949284ed6e10b.js +1 -0
- package/assets/esri/core/workers/chunks/{3ffda5bf0b91700dc308.js → 78643f116677950ea29a.js} +1 -1
- package/assets/esri/core/workers/chunks/{916b363c342b61ba5461.js → 787c1a8bda7d745633f2.js} +1 -1
- package/assets/esri/core/workers/chunks/{e2190361247f35b02b32.js → 7b5cd150a4d0139850be.js} +1 -1
- package/assets/esri/core/workers/chunks/7bbfe9ff352afc566367.js +1 -0
- package/assets/esri/core/workers/chunks/7d2cbc767c336d15e4d5.js +1 -0
- package/assets/esri/core/workers/chunks/{ac5a6603f7fa78d3e4c8.js → 7e8611cb709f105946f5.js} +1 -1
- package/assets/esri/core/workers/chunks/{05cd33d41d91f8d09633.js → 7fb7493f483cd9878bfa.js} +1 -1
- package/assets/esri/core/workers/chunks/{590e6c70206122e4cc3c.js → 844eedda8f749972f707.js} +2 -2
- package/assets/esri/core/workers/chunks/{acfa03c65ba3ca6c5685.js → 8715661a838361d4211a.js} +1 -1
- package/assets/esri/core/workers/chunks/{601e1d020b8115497944.js → 8a485130781b49dbf608.js} +1 -1
- package/assets/esri/core/workers/chunks/{0ccab50877b24f862d6e.js → 8ac2098ecdc40ad41055.js} +1 -1
- package/assets/esri/core/workers/chunks/{a655ebdb4bf0660615a2.js → 8b4e9fd88c0c313416d4.js} +1 -1
- package/assets/esri/core/workers/chunks/{4e544de61f07ca660236.js → 8c12269d26f5a4c753cb.js} +1 -1
- package/assets/esri/core/workers/chunks/{46b4fb6a7fe4877b0efc.js → 94baa354e50c03b82b25.js} +2 -2
- package/assets/esri/core/workers/chunks/9503eedfdda55fc5adab.js +1 -0
- package/assets/esri/core/workers/chunks/950d4578dc450467404c.js +1 -0
- package/assets/esri/core/workers/chunks/{68be3fb88ca61f82fb90.js → 95dbbddac6581b9d671f.js} +1 -1
- package/assets/esri/core/workers/chunks/98be2f621801e230aa01.js +1 -0
- package/assets/esri/core/workers/chunks/999c23da883eb11cb29e.js +1 -0
- package/assets/esri/core/workers/chunks/9b6929faf649e81265fb.js +1 -0
- package/assets/esri/core/workers/chunks/9d61740ef8bdcc162be1.js +1 -0
- package/assets/esri/core/workers/chunks/{fafb92ca2c5e4b0b2c23.js → a09d2e1e2540921e4717.js} +1 -1
- package/assets/esri/core/workers/chunks/a35c69a4751d28c39907.js +1 -0
- package/assets/esri/core/workers/chunks/{3b3e519f15ed52c83f0c.js → a49fe94933b65b4b64f8.js} +1 -1
- package/assets/esri/core/workers/chunks/{1819c45655c836b9a8d7.js → a4d3944700f1cc240176.js} +1 -1
- package/assets/esri/core/workers/chunks/{ec8b7476eac4718eb0ac.js → a504a5e06cb89a620799.js} +1 -1
- package/assets/esri/core/workers/chunks/a596779eaeec7310671d.js +1 -0
- package/assets/esri/core/workers/chunks/{d5d0fe8e198ff5a902ee.js → a5c8f9f5be4ef5063b42.js} +1 -1
- package/assets/esri/core/workers/chunks/{900181f68449d8f82eeb.js → aa1ac7954e4f0fefe15b.js} +1 -1
- package/assets/esri/core/workers/chunks/{90bdf86f553e2742d67c.js → ab1660f5f8a5268c2fac.js} +1 -1
- package/assets/esri/core/workers/chunks/ac24b4370dc7194a3107.js +1 -0
- package/assets/esri/core/workers/chunks/{b8337492e2b753aefac4.js → ace41659a5ca0e5abfc3.js} +1 -1
- package/assets/esri/core/workers/chunks/ae0563d573baf91e01f7.js +1 -0
- package/assets/esri/core/workers/chunks/{3c0ed15b544df6fb0903.js → b48952e1fb4cb7360dd0.js} +1 -1
- package/assets/esri/core/workers/chunks/b5e7475cc5fbf31289d3.js +1 -0
- package/assets/esri/core/workers/chunks/b686cd74975da09b9c91.js +2 -0
- package/assets/esri/core/workers/chunks/{aa36c3a9bbaa086e3757.js → b8fd7c3b36981261378b.js} +1 -1
- package/assets/esri/core/workers/chunks/bd046399e05e759e0bc2.js +1 -0
- package/assets/esri/core/workers/chunks/bd46a04a9ee4ea9e6ef1.js +2 -0
- package/assets/esri/core/workers/chunks/{f3da30d7300b92bd8bb0.js → befa32b9e7b3fbdd431e.js} +1 -1
- package/assets/esri/core/workers/chunks/bfb39590c548188f5052.js +1 -0
- package/assets/esri/core/workers/chunks/c4ddac23bd649d24f3f2.js +1 -0
- package/assets/esri/core/workers/chunks/cddc3e285f763ccf33c2.js +1 -0
- package/assets/esri/core/workers/chunks/d08ff41e2a9bcd58b64a.js +1 -0
- package/assets/esri/core/workers/chunks/d62afb71f4ece4283994.js +1 -0
- package/assets/esri/core/workers/chunks/dc1761cba0454fda3cf9.js +1 -0
- package/assets/esri/core/workers/chunks/{0f617980c7dd9ad0444f.js → dd0310184fe4832755a8.js} +1 -1
- package/assets/esri/core/workers/chunks/dfa5f1311806473e473f.js +1 -0
- package/assets/esri/core/workers/chunks/{4ac1d3e49e242e373a92.js → e0650b1408197d3ac862.js} +1 -1
- package/assets/esri/core/workers/chunks/{3ff6d1ed3c0f1285f3e7.js → e0d9dc97985561320bd4.js} +1 -1
- package/assets/esri/core/workers/chunks/eaddffcc7004101fc230.js +1 -0
- package/assets/esri/core/workers/chunks/eb2652ec48faa78de3c5.js +1 -0
- package/assets/esri/core/workers/chunks/eca44e53bcee9b08d70a.js +1 -0
- package/assets/esri/core/workers/chunks/f00458654c7c34c369ef.js +1 -0
- package/assets/esri/core/workers/chunks/f3cd610084e3f4d8656b.js +1 -0
- package/assets/esri/core/workers/chunks/f47fe4433b05fca5c3ad.js +1 -0
- package/assets/esri/core/workers/chunks/f7bfa3d33b05b250ce33.js +1 -0
- package/assets/esri/core/workers/chunks/f91bc1cb1014e05be763.js +1 -0
- package/assets/esri/core/workers/chunks/{19676b2c5f8b0a5ee680.js → facd1ff23203fed67686.js} +1 -1
- package/assets/esri/core/workers/chunks/{634523cc7757da9020e4.js → fb70ab267a08e24b710f.js} +1 -1
- package/assets/esri/core/workers/chunks/fc139f251dc0523074e7.js +1 -0
- package/assets/esri/core/workers/chunks/{40a584cb952e94326e9e.js → fcb86d24fc7e0666b564.js} +1 -1
- package/assets/esri/themes/base/widgets/_Weather.scss +1 -0
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/chunks/Distance2DCalculator-DjIp2uQi.js +1 -1
- package/chunks/Envelope.js +1 -1
- package/chunks/MultiPathImpl.js +1 -1
- package/chunks/OperatorGeodeticArea.js +1 -1
- package/chunks/OperatorShapePreservingLength.js +1 -1
- package/chunks/OperatorShapePreservingProject.js +1 -1
- package/chunks/UnitFactory.js +1 -1
- package/chunks/basis_encoder.js +1 -1
- package/chunks/basis_transcoder.js +1 -1
- package/chunks/index.js +1 -1
- package/chunks/lclayout.js +1 -1
- package/chunks/lerc-wasm.js +1 -1
- package/config.d.ts +2 -0
- package/config.js +1 -1
- package/core/accessorSupport/DefaultsStore.js +1 -1
- package/core/accessorSupport/MultiOriginStore.js +1 -1
- package/core/accessorSupport/Store.js +1 -1
- package/core/accessorSupport/decorators/reader.js +1 -1
- package/core/accessorSupport/decorators/writer.js +1 -1
- package/core/sql/WhereGrammar.js +2 -2
- package/core/workers/WorkerOwner.js +1 -1
- package/core/workers/workerFactory.js +1 -1
- package/core/workers/workers.js +2 -2
- package/core/workers.d.ts +9 -0
- package/editing/sharedTemplates/executor/builders/equallySpaced.js +1 -1
- package/form/elements/inputs/DynamicChoiceInput.d.ts +4 -2
- package/geometry/Mesh.js +1 -1
- package/geometry/operators/gx/operatorAlphaShape.js +1 -1
- package/geometry/operators/gx/operatorOffset.js +1 -1
- package/geometry/operators/gx/operatorPolygonSlicer.js +1 -1
- package/geometry/operators/support/jsonConverter.js +1 -1
- package/geometry/support/curves/bezierCurveUtils.js +1 -1
- package/geometry/support/curves/ellipticArc7Utils.js +1 -1
- package/geometry/support/meshUtils/merge.js +1 -1
- package/geometry/support/meshUtils/rotate.js +1 -1
- package/geometry/support/polygonExtentClipping.js +1 -1
- package/identity/Credential.js +1 -1
- package/kernel.js +1 -1
- package/layers/AnnotationFeatureLayer.d.ts +2 -2
- package/layers/AnnotationFeatureLayer.js +1 -1
- package/layers/CatalogLayer.d.ts +2 -2
- package/layers/CatalogLayer.js +1 -1
- package/layers/DimensionFeatureLayer.d.ts +2 -2
- package/layers/DimensionFeatureLayer.js +1 -1
- package/layers/ElevationLayer.js +1 -1
- package/layers/FeatureLayer.d.ts +4 -4
- package/layers/FeatureLayer.js +1 -1
- package/layers/GeoJSONLayer.d.ts +1 -1
- package/layers/ImageryTileLayer.js +1 -1
- package/layers/LineOfSightLayer.d.ts +10 -8
- package/layers/SceneLayer.js +1 -1
- package/layers/SubtypeGroupLayer.d.ts +2 -2
- package/layers/SubtypeGroupLayer.js +1 -1
- package/layers/ViewshedLayer.d.ts +1 -1
- package/layers/VoxelLayer.js +1 -1
- package/layers/WMSLayer.js +1 -1
- package/layers/effects/parser.js +3 -3
- package/layers/geospatialPDF/GeospatialPDFFrame.js +1 -1
- package/layers/geospatialPDF/GeospatialPDFLayerWorker.js +9 -9
- package/layers/geospatialPDF/GeospatialPDFWorkerClient.js +1 -1
- package/layers/geospatialPDF/LGIDictMapFrame.js +1 -1
- package/layers/geospatialPDF/ViewportMeasureFrame.js +1 -1
- package/layers/geospatialPDF/geospatialPDFParserUtils.js +1 -1
- package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
- package/layers/graphics/data/QueryEngineResult.js +1 -1
- package/layers/graphics/sources/connections/WebSocketConnection.js +1 -1
- package/layers/graphics/sources/parquet/FileProvider.js +1 -1
- package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
- package/layers/mixins/{FeatureLayerReload.d.ts → ReloadableLayer.d.ts} +5 -3
- package/layers/mixins/ReloadableLayer.js +2 -0
- package/layers/raster/datasets/BaseRaster.js +1 -1
- package/layers/raster/datasets/GeospatialPDFRaster.js +1 -1
- package/layers/raster/datasets/ImageAuxRaster.js +2 -2
- package/layers/raster/datasets/ImageServerRaster.js +1 -1
- package/layers/raster/datasets/InMemoryRaster.js +1 -1
- package/layers/raster/datasets/MRFRaster.js +1 -1
- package/layers/raster/datasets/TIFFRaster.js +1 -1
- package/layers/raster/datasets/WCSRaster.js +1 -1
- package/layers/raster/formats/ElevationCodec.js +2 -0
- package/layers/raster/formats/ImageCanvasDecoder.js +1 -1
- package/layers/raster/formats/Lerc.js +1 -1
- package/layers/raster/formats/RasterCodec.js +1 -1
- package/layers/raster/formats/TiffDecoder.js +1 -1
- package/layers/raster/formats/Zlib.js +1 -1
- package/layers/raster/functions/stretchUtils.js +1 -1
- package/layers/raster/functions/vectorFieldUtils.js +1 -1
- package/layers/support/FieldsIndex.js +1 -1
- package/layers/support/LercWorker.js +1 -1
- package/layers/support/RasterWorker.js +1 -1
- package/layers/support/TileInfo.d.ts +1 -1
- package/layers/support/TileInfo.js +1 -1
- package/layers/support/featureReductionProperties.js +1 -1
- package/layers/support/kmlUtils.js +1 -1
- package/layers/support/layerOriginUtils.js +1 -1
- package/layers/video/VideoController.js +10 -10
- package/libs/maquette/projection.js +1 -1
- package/networks/UtilityNetworkTraceAnalysis.js +1 -1
- package/package.json +6 -6
- package/popup/FeatureModel.js +1 -1
- package/popup/FeaturesModel.js +1 -1
- package/portal/Portal.js +1 -1
- package/request/process.js +1 -1
- package/request/types.d.ts +7 -0
- package/rest/knowledgeGraphService.js +1 -1
- package/rest/networks/trace.js +1 -1
- package/rest/query/executeQuery.js +1 -1
- package/smartMapping/raster/renderers/shadedRelief.js +1 -1
- package/smartMapping/renderers/univariateColorSize.js +1 -1
- package/smartMapping/statistics/support/statsWorker.js +1 -1
- package/smartMapping/statistics/support/utils.js +1 -1
- package/smartMapping/support/adapters/FeatureLayerAdapter.js +1 -1
- package/smartMapping/support/adapters/FeatureLayerBinningAdapter.js +1 -1
- package/smartMapping/support/adapters/InMemoryLayerAdapter.js +1 -1
- package/smartMapping/support/adapters/OGCFeatureLayerAdapter.js +1 -1
- package/smartMapping/support/adapters/SceneLayerAdapter.js +1 -1
- package/smartMapping/support/adapters/support/utils.js +1 -1
- package/smartMapping/support/clusterUtils.js +1 -1
- package/statistics/utils.js +1 -1
- package/symbols/cim/CIMCursor.js +1 -1
- package/symbols/cim/CIMSymbolDrawHelper.js +1 -1
- package/symbols/cim/cimAnalyzer.js +1 -1
- package/symbols/support/ElevationInfo.d.ts +4 -3
- package/time/TimeExtent.d.ts +1 -1
- package/undoredo/support/Services.js +1 -1
- package/views/2d/engine/vectorTiles/buckets/SymbolBucket.js +2 -2
- package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
- package/views/2d/grid/GridView2D.js +1 -1
- package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
- package/views/2d/layers/features/sources/strategies/FeatureHybridTileLoadStrategy.js +1 -1
- package/views/2d/layers/features/sources/strategies/FeaturePagedTileLoadStrategy.js +1 -1
- package/views/2d/layers/features/sources/strategies/FeatureSnapshotLoadStrategy.js +1 -1
- package/views/2d/viewpointUtils.js +1 -1
- package/views/3d/analysis/AreaMeasurement/support/MeasurementData.js +1 -1
- package/views/3d/analysis/Dimension/LengthDimensionSubTool.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightController.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
- package/views/3d/analysis/LineOfSight/types.d.ts +14 -3
- package/views/3d/analysis/LineOfSightAnalysisView3D.d.ts +39 -13
- package/views/3d/analysis/Viewshed/ViewshedEditTool.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedTool.js +1 -1
- package/views/3d/analysis/Viewshed/types.d.ts +7 -0
- package/views/3d/analysis/ViewshedAnalysisView3D.d.ts +43 -15
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementTool.js +1 -1
- package/views/3d/input/handlers/KeyboardNavigation.js +1 -1
- package/views/3d/interactive/editingTools/draw/DrawGraphicTool3D.js +1 -1
- package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
- package/views/3d/interactive/editingTools/transform/ExtentTransformTool.js +1 -1
- package/views/3d/interactive/editingTools/transform/ScaleRotateTransform.js +1 -1
- package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DTool.js +1 -1
- package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DTool.js +1 -1
- package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/OutlineVisualElement.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
- package/views/3d/layers/graphics/Graphics3DElevationAlignment.js +1 -1
- package/views/3d/layers/graphics/Graphics3DGraphic.js +1 -1
- package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPathSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/SpatialIndex2D.js +1 -1
- package/views/3d/layers/i3s/I3SNode.js +1 -1
- package/views/3d/layers/i3s/I3SUtil.js +1 -1
- package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
- package/views/3d/layers/i3s/LayerElevationProvider.js +1 -1
- package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
- package/views/3d/layers/support/FeatureTileFetcher3DDebugger.js +1 -1
- package/views/3d/layers/support/ImageHighlightHelper3D.js +1 -1
- package/views/3d/layers/support/MediaLayerInteraction.js +1 -1
- package/views/3d/layers/support/StageLayerElevationProvider.js +1 -1
- package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
- package/views/3d/state/utils/navigationUtils.js +1 -1
- package/views/3d/support/elevationUpdateExtentUtils.js +1 -1
- package/views/3d/support/elevationUpdateUtils.js +1 -1
- package/views/3d/support/pointsOfInterest/Focus.js +1 -1
- package/views/3d/support/sphereExtentUtils.js +2 -0
- package/views/3d/terrain/OverlayFramebufferObject.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/terrain/PatchRenderData.js +1 -1
- package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
- package/views/3d/webgl-engine/lib/ManagedTexture.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/ViewshedShadowMap.js +1 -1
- package/views/3d/webgl-engine/materials/internal/MaterialUtil.js +1 -1
- package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
- package/views/3d/webgl-engine/materials/renderers/PerBufferData.js +1 -1
- package/views/SceneView.js +1 -1
- package/views/ToolViewManager.js +1 -1
- package/views/View.js +1 -1
- package/views/analysis/ElevationProfile/ElevationProfileTool.js +1 -1
- package/views/draw/DrawOperation.js +1 -1
- package/views/draw/support/InteractiveHandle.js +1 -1
- package/views/draw/support/Reshape.js +1 -1
- package/views/draw/support/createUtils.js +1 -1
- package/views/draw/support/editingSessionUtils.js +1 -1
- package/views/draw/support/managers/InteractiveHandleManager.js +1 -1
- package/views/interactive/SegmentLabels.js +1 -1
- package/views/interactive/editGeometry/EditGeometry.js +1 -1
- package/views/interactive/editGeometry/EditGeometryOperations.js +1 -1
- package/views/interactive/editGeometry/operations/SetAllVertexPositions.js +1 -1
- package/views/interactive/editGeometry/operations/UndoGroup.js +1 -1
- package/views/interactive/options/TooltipOptions.d.ts +2 -0
- package/views/interactive/sketch/SketchTooltipOptions.d.ts +2 -0
- package/views/interactive/sketch/constraintUtils.js +1 -1
- package/views/interactive/snapping/SnappingDragPipelineStep.js +1 -1
- package/views/interactive/snapping/SnappingManagerPool.js +1 -1
- package/views/interactive/snapping/allLayerSnapping.js +1 -1
- package/views/interactive/tooltip/components/TooltipEditableField.js +1 -1
- package/views/layers/LayerView.js +1 -1
- package/views/layers/LineOfSightLayerView.d.ts +35 -13
- package/views/layers/SketchLayerView.d.ts +1 -0
- package/views/layers/ViewshedLayerView.d.ts +36 -12
- package/views/webgl/Program.js +1 -1
- package/views/webgl/Texture.js +1 -1
- package/widgets/AreaMeasurement2D/AreaMeasurement2DViewModel.d.ts +2 -1
- package/widgets/BasemapToggle/BasemapToggleViewModel.d.ts +2 -0
- package/widgets/BasemapToggle/BasemapToggleViewModel.js +1 -1
- package/widgets/Directions.js +1 -1
- package/widgets/DistanceMeasurement2D/DistanceMeasurement2DViewModel.d.ts +2 -1
- package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
- package/widgets/Editor/legacy/CreateFeaturesWorkflow.js +1 -1
- package/widgets/ElevationProfile/components/Statistics.js +1 -1
- package/widgets/ElevationProfile/support/chartUtils.js +1 -1
- package/widgets/Expand/ExpandViewModel.d.ts +2 -0
- package/widgets/FeatureTable/support/FeatureStore.js +1 -1
- package/widgets/FeatureTable/support/GroupColumnTemplate.js +1 -1
- package/widgets/FeatureTable/support/TableTemplate.js +1 -1
- package/widgets/Fullscreen/FullscreenViewModel.d.ts +3 -1
- package/widgets/Home/HomeViewModel.d.ts +2 -0
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/Print.js +1 -1
- package/widgets/Sketch/SketchViewModel.js +1 -1
- package/widgets/Slice.js +1 -1
- package/widgets/Swipe/SwipeViewModel.d.ts +2 -0
- package/widgets/Swipe/types.d.ts +9 -2
- package/widgets/TimeSlider/TimeSliderViewModel.d.ts +9 -5
- package/widgets/TimeSlider/types.d.ts +7 -0
- package/widgets/TimeSlider.d.ts +2 -3
- package/widgets/TimeSlider.js +1 -1
- package/widgets/Track/TrackViewModel.d.ts +4 -0
- package/widgets/Track/types.d.ts +1 -0
- package/widgets/UtilityNetworkTraceAnalysis/UtilityNetworkTraceAnalysisViewModel.js +1 -1
- package/widgets/support/SelectionList/SelectionListViewModel.js +1 -1
- package/widgets/support/SelectionList.js +1 -1
- package/widgets/support/Selector3D/selectorUtils.js +1 -1
- package/widgets/support/componentsUtils.js +1 -1
- package/assets/esri/core/workers/chunks/0050916e462e3c9e0627.js +0 -1
- package/assets/esri/core/workers/chunks/024b44c0c8876627f904.js +0 -1
- package/assets/esri/core/workers/chunks/02c5d027bdaee67869cf.js +0 -1
- package/assets/esri/core/workers/chunks/03261b9451e293a0fac8.js +0 -1
- package/assets/esri/core/workers/chunks/0c8c01097847617261b9.js +0 -1
- package/assets/esri/core/workers/chunks/0d931c7579b6409a696d.js +0 -1
- package/assets/esri/core/workers/chunks/12c154342fff876f2f1e.js +0 -1
- package/assets/esri/core/workers/chunks/1e11d2e97d17685b878a.js +0 -1
- package/assets/esri/core/workers/chunks/1f339247b68b061ab0a4.js +0 -1
- package/assets/esri/core/workers/chunks/21ddb26526bcb2b122c3.js +0 -1
- package/assets/esri/core/workers/chunks/2eae542fe7f0f6576ac1.js +0 -1
- package/assets/esri/core/workers/chunks/34cbaf844730ac2d92c2.js +0 -2
- package/assets/esri/core/workers/chunks/3c301a689c7853c9fa67.js +0 -2
- package/assets/esri/core/workers/chunks/3f946c13ad97fbed867b.js +0 -1
- package/assets/esri/core/workers/chunks/444e5f214abce3d607cd.js +0 -1
- package/assets/esri/core/workers/chunks/46a7da93a63663878583.js +0 -1
- package/assets/esri/core/workers/chunks/4a1e23e021bac37a88ab.js +0 -1
- package/assets/esri/core/workers/chunks/4c4117e28ea358a32088.js +0 -1
- package/assets/esri/core/workers/chunks/54b18559280a7d2a8d93.js +0 -1
- package/assets/esri/core/workers/chunks/59b216b60464611742d4.js +0 -1
- package/assets/esri/core/workers/chunks/604f0f4150fb79ee54c8.js +0 -1
- package/assets/esri/core/workers/chunks/6299be5e7e26bf3c6859.js +0 -1
- package/assets/esri/core/workers/chunks/62ac588f7dd1d24d0c9d.js +0 -1
- package/assets/esri/core/workers/chunks/62c8c9ad09e0166207fd.js +0 -1
- package/assets/esri/core/workers/chunks/62d6e101e9bd9557a410.js +0 -1
- package/assets/esri/core/workers/chunks/6558488ea96620439f34.js +0 -1
- package/assets/esri/core/workers/chunks/665e31c494d2af505acc.js +0 -1
- package/assets/esri/core/workers/chunks/6f4e6022a52de0c54aab.js +0 -1
- package/assets/esri/core/workers/chunks/7267b17de212207142c9.js +0 -1
- package/assets/esri/core/workers/chunks/745a153d0cd34faa124e.js +0 -1
- package/assets/esri/core/workers/chunks/7572c2bc5062e66f6330.js +0 -1
- package/assets/esri/core/workers/chunks/76ab353d80d786777161.js +0 -2
- package/assets/esri/core/workers/chunks/7ef182e24cad50815b4e.js +0 -1
- package/assets/esri/core/workers/chunks/8293600f94553afc8c38.js +0 -1
- package/assets/esri/core/workers/chunks/8431ca60ad33d594e323.js +0 -1
- package/assets/esri/core/workers/chunks/8483c50ed8f280fd74bb.js +0 -1
- package/assets/esri/core/workers/chunks/876f7633c15f1e31078d.js +0 -1
- package/assets/esri/core/workers/chunks/8ca9648eacb894283513.js +0 -1
- package/assets/esri/core/workers/chunks/8cb716f110d164030309.js +0 -1
- package/assets/esri/core/workers/chunks/91ebb2ccab1889eb7e81.js +0 -1
- package/assets/esri/core/workers/chunks/94e427040edb469d58ad.js +0 -1
- package/assets/esri/core/workers/chunks/9ce91a909eccc4dfe388.js +0 -1
- package/assets/esri/core/workers/chunks/9e1a3b6a08c96dcefdde.js +0 -1
- package/assets/esri/core/workers/chunks/9e3e442a9874ed23a043.js +0 -1
- package/assets/esri/core/workers/chunks/ad76f7ab2f3e6d5a5b3c.js +0 -1
- package/assets/esri/core/workers/chunks/aff32980d91dab07dfb7.js +0 -1
- package/assets/esri/core/workers/chunks/b49df4ebd4be1181b0f9.js +0 -2
- package/assets/esri/core/workers/chunks/b557824bc1fa163d72a3.js +0 -2
- package/assets/esri/core/workers/chunks/bbf993dba74850bbf9d7.js +0 -1
- package/assets/esri/core/workers/chunks/d8f1cefcad02d7353d4b.js +0 -1
- package/assets/esri/core/workers/chunks/d938987344bce83cc660.js +0 -1
- package/assets/esri/core/workers/chunks/ddf0671976648f621269.js +0 -1
- package/assets/esri/core/workers/chunks/de02f60258e6985ef676.js +0 -1
- package/assets/esri/core/workers/chunks/e10b57aefcc89671116e.js +0 -1
- package/assets/esri/core/workers/chunks/e65dfa19f030ec298437.js +0 -1
- package/assets/esri/core/workers/chunks/ed8786fed345718ed684.js +0 -1
- package/assets/esri/core/workers/chunks/f122c18af10e56f9ec2b.js +0 -1
- package/assets/esri/core/workers/chunks/f92364afaefbac7e8f77.js +0 -1
- package/assets/esri/core/workers/chunks/fc44227c1756f65b95df.js +0 -1
- package/assets/esri/core/workers/chunks/fd9663952d5a94f3a83f.js +0 -1
- package/assets/esri/core/workers/chunks/fe9879ecd69ac4329291.js +0 -1
- package/layers/mixins/FeatureLayerReload.js +0 -2
- /package/assets/esri/core/workers/chunks/{b557824bc1fa163d72a3.js.LICENSE.txt → 164c8eeefa8232b2b191.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{b49df4ebd4be1181b0f9.js.LICENSE.txt → 2981e904ab62f3ed80d0.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{34cbaf844730ac2d92c2.js.LICENSE.txt → 32cc59e126df8c96a0cf.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{590e6c70206122e4cc3c.js.LICENSE.txt → 844eedda8f749972f707.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{3c301a689c7853c9fa67.js.LICENSE.txt → b686cd74975da09b9c91.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{76ab353d80d786777161.js.LICENSE.txt → bd46a04a9ee4ea9e6ef1.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9358],{69622(e,t,r){r.d(t,{A:()=>z});var i=r(51447),n=r(71511),s=r(53966),o=r(97768),a=r(56454),l=r(16649),u=r(85537),c=r(96156),h=(r(44208),r(4718)),f=r(93687),d=r(11406),p=r(62788),y=r(47328),g=r(67867);const _=new WeakMap;class v extends d.T{get trackingTarget(){return this._trackingTarget??=new g.R(this)}constructor(e,t){super(),this.propertyName=e,this.metadata=t,this.flags=function(e){let t=_.get(e);if(null!=t)return t;let r=y.i.Dirty|(e.nonNullable?y.i.NonNullable:0)|(e.hasOwnProperty("value")?y.i.HasDefaultValue:0)|(void 0===e.get?y.i.DepTrackingInitialized:0)|(void 0===e.dependsOn?y.i.AutoTracked:0);return _.set(e,r),r}(t)}destroy(){this.flags&y.i.Dirty&&this.onCommitted(),super.destroy(),this._trackingTarget?.destroy()}getComputed(e,t){e.mutable&&(0,p.gc)(this);let r=e.store,i=this.propertyName,n=this.flags,s=r.get(i);if(n&y.i.Computing||!(n&y.i.Dirty)&&r.has(i))return s;this.flags|=y.i.Computing;let o,{host:a}=e;n&y.i.AutoTracked?o=(0,p.a)(this.trackingTarget,t,a):((0,p.Xr)(a,this),o=t.call(a)),this.flags|=y.i.DepTrackingInitialized,r.set(i,o,1);let l=r.get(i);return l===s?this.flags&=~y.i.Dirty:(0,p.F_)(this.commit,this),this.flags&=~y.i.Computing,l}notifyChange(){this.onInvalidated(),this.onCommitted()}invalidate(){this.onInvalidated()}commit(){this.flags&=~y.i.Dirty,this.onCommitted()}onInvalidated(){~this.flags&y.i.Overridden&&(this.flags|=y.i.Dirty);let e=this._observers;if(e&&e.length>0)for(let t of e)t.onInvalidated()}onCommitted(){let e=this._observers;if(e&&e.length>0){let t=e.slice();for(let e of t)e.onCommitted()}}}var m=r(35666);class w{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(e){let t=new w;return this._values.forEach((r,i)=>{e&&e.has(i)||t.set(i,(0,h.o8)(r))}),t}get(e){return this._values.get(e)}originOf(){return 7}keys(){return[...this._values.keys()]}set(e,t){this._values.set(e,t)}delete(e){this._values.delete(e)}has(e){return this._values.has(e)}isAtOrigin(e,t){return this.has(e)}isBelowOrigin(e,t){return!this.has(e)}forEach(e){this._values.forEach(e)}}function b(e,t,r){return void 0!==e}function A(e,t,r,i){return!(void 0===e||null==r&&e.flags&y.i.NonNullable&&(i.lifecycle,u.v.INITIALIZING,1))}class O{constructor(e){this.host=e,this.propertiesByName=new Map,this.ctorArgs=null,this.lifecycle=u.v.INITIALIZING,this.store=new w,this.mutable=!0,this._origin=7;let t=this.host.constructor.__accessorMetadata__;for(let e in t){let r=new v(e,t[e]);this.propertiesByName.set(e,r)}this.metadata=t}initialize(){this.lifecycle=u.v.CONSTRUCTING}constructed(){this.lifecycle=u.v.CONSTRUCTED}destroy(){this.lifecycle=u.v.DESTROYED,this.propertiesByName.forEach(e=>e.destroy())}get initialized(){return this.lifecycle!==u.v.INITIALIZING}get(e){let t=this.propertiesByName.get(e);if(!b(t))return;let r=t.metadata.get;if(r)return t.getComputed(this,r);this.mutable&&(0,p.gc)(t);let i=this.store;return i.has(e)?i.get(e):t.metadata.value}originOf(e){let t=this.store.originOf(e);if(void 0===t){let t=this.propertiesByName.get(e);if(void 0!==t&&t.flags&y.i.HasDefaultValue)return"defaults"}return(0,m.OL)(t)}has(e){return this.propertiesByName.has(e)&&this.store.has(e)}keys(){return[...this.propertiesByName.keys()]}internalGet(e){let t=this.propertiesByName.get(e);if(b(t))return this.store.has(e)?this.store.get(e):t.metadata.value}internalSet(e,t){let r=this.propertiesByName.get(e);b(r)&&this._internalSet(r,t)}getDependsInfo(e,t,r){let i=this.propertiesByName.get(t);if(!b(i))return"";let n=new g.R,s=(0,p.a)(n,()=>i.metadata.get?.call(e)),o=`${r}${e.declaredClass.split(".").pop()}.${t}: ${s}\n`,a=n.accessed??new Set;if(0===a.size)return o;r+=" ";for(let e of a)e instanceof v&&(o+=`${r}${e.propertyName}: undefined\n`);return o}setAtOrigin(e,t,r){let i=this.propertiesByName.get(e);if(b(i))return this._setAtOrigin(i,t,r)}isOverridden(e){let t=this.propertiesByName.get(e);return void 0!==t&&!!(t.flags&y.i.Overridden)}clearOrigin(e,t){let r=this.store,i=this.propertiesByName.get(e);if(!b(i))return;let n=r.isAtOrigin(e,t)&&!(i.flags&y.i.Overridden);r.delete(e,t),n&&i.notifyChange()}clearOverride(e){let t=this.propertiesByName.get(e);t&&t.flags&y.i.Overridden&&(t.flags&=~y.i.Overridden,t.notifyChange())}override(e,t){let r=this.propertiesByName.get(e);if(!A(r,0,t,this))return;let i=r.metadata.cast;if(i){let e=this._cast(i,t),{valid:r,value:n}=e;if(k.release(e),!r)return;t=n}r.flags|=y.i.Overridden,this._internalSet(r,t)}set(e,t){let r=this.propertiesByName.get(e);if(!A(r,0,t,this))return;let i=r.metadata.cast;if(i){let e=this._cast(i,t),{valid:r,value:n}=e;if(k.release(e),!r)return;t=n}let n=r.metadata.set;n?n.call(this.host,t):this._internalSet(r,t)}setDefaultOrigin(e){this._origin=(0,m.aB)(e)}getDefaultOrigin(){return(0,m.OL)(this._origin)}notifyChange(e){this.propertiesByName.get(e)?.notifyChange()}invalidate(e){this.propertiesByName.get(e)?.invalidate()}commit(e){this.propertiesByName.get(e)?.commit()}_internalSet(e,t){let r=this.lifecycle===u.v.INITIALIZING?0:this._origin;this._setAtOrigin(e,t,r)}_setAtOrigin(e,t,r){let i=this.store,n=e.propertyName,s=i.isAtOrigin(n,r);if(s&&~e.flags&y.i.Overridden&&(0,h.aI)(t,i.get(n)))return;let o=i.isBelowOrigin(n,r)||s;o&&e.invalidate(),i.set(n,t,r),o&&e.commit(),(0,p.fE)(this.host,e)}_cast(e,t){let r=k.acquire();return r.valid=!0,r.value=t,e&&(r.value=e.call(this.host,t,r)),r}}class N{constructor(){this.value=null,this.valid=!0}acquire(){this.valid=!0}release(){this.value=null}}const k=new f.A(()=>new N);var S=r(47821);var j,T,C=r(14012),D=r(10107),E=r(64108);function $(e){if(null==e)return{value:e};if(Array.isArray(e))return{type:[e[0]],value:null};switch(typeof e){case"object":return e.constructor?.__accessorMetadata__||e instanceof Date?{type:e.constructor,value:e}:e;case"boolean":return{type:Boolean,value:e};case"string":return{type:String,value:e};case"number":return{type:Number,value:e};case"function":return{type:e,value:null};default:return}}const M=Symbol("Accessor-Handles"),I=Symbol("Accessor-Initialized");class z{static{j=M,T=I}static createSubclass(e={}){if(Array.isArray(e))throw Error("Multi-inheritance unsupported since 4.16");let{properties:t,declaredClass:r,constructor:i}=e;delete e.declaredClass,delete e.properties,delete e.constructor;let n=this;class s extends n{constructor(...e){super(...e),this.inherited=null,i&&i.apply(this,e)}}(0,c.tD)(s.prototype);for(let t in e){let r=e[t];s.prototype[t]="function"==typeof r?function(...e){let i,s=this.inherited;this.inherited=function(...e){if(n.prototype[t])return n.prototype[t].apply(this,e)};try{i=r.apply(this,e)}catch(e){throw this.inherited=s,e}return this.inherited=s,i}:e[t]}for(let e in t){let r=$(t[e]);(0,D.MZ)(r)(s.prototype,e)}return(0,E.$)(r)(s)}static freeze(e){return e instanceof z?e.__accessor__.mutable=!1:Object.freeze(e),e}static isFrozen(e){return e instanceof z?!e.__accessor__.mutable:Object.isFrozen(e)}constructor(...e){if(this[j]=null,this[T]=!1,this.constructor===z)throw Error("[accessor] cannot instantiate Accessor. This can be fixed by creating a subclass of Accessor");let t=new O(this);Object.defineProperty(this,"__accessor__",{enumerable:!1,value:t}),e.length>0&&(t.ctorArgs=this.normalizeCtorArgs?.apply(this,e)??e[0])}postscript(){let e=this.__accessor__,t=e.ctorArgs;e.initialize(),t&&(this.set(t),e.ctorArgs=null),e.constructed(),this.initialize(),this[I]=!0}initialize(){}[a.G](){this[M]=(0,o.pR)(this[M])}destroy(){this.destroyed||((0,C.iS)(this),this.__accessor__.destroy())}[Symbol.dispose](){this.destroy()}get constructed(){return this.__accessor__&&this.__accessor__.initialized||!1}get initialized(){return this[I]}get destroyed(){return this.__accessor__?.lifecycle===u.v.DESTROYED||!1}get destroying(){return this.__accessor__?.lifecycle===u.v.DESTROYING||!1}commitProperty(e){(0,l.Jt)(this,e)}hasOwnProperty(e){return this.__accessor__?this.__accessor__.has(e):Object.prototype.hasOwnProperty.call(this,e)}keys(){return this.__accessor__?this.__accessor__.keys():[]}set(e,t){return(0,S.h)(this,e,t),this}watch(e,t,r){return(0,i.eO)(s.A.getLogger(this),"`watch` is deprecated in favor of reactiveUtils.watch",{replacement:"reactiveUtils.watch",version:"4.32",see:"https://arcg.is/1vaqf42#watch",warnOnce:!0}),(0,C.wB)(this,e,t,r)}addHandles(e,t){if(this.destroyed){let t=Array.isArray(e)?e:[e];for(let e of t)e.remove()}else(this[M]??=new n.A).add(e,t)}removeHandles(e){this[M]?.remove(e)}removeAllHandles(){this[M]?.removeAll()}removeHandlesReference(e){this[M]?.removeReference(e)}hasHandles(e){return!0===this[M]?.has(e)}_override(e,t){void 0===t?this.__accessor__.clearOverride(e):this.__accessor__.override(e,t)}_clearOverride(e){return this.__accessor__.clearOverride(e)}_overrideIfSome(e,t){null==t?this.__accessor__.clearOverride(e):this.__accessor__.override(e,t)}_isOverridden(e){return this.__accessor__.isOverridden(e)}notifyChange(e){this.__accessor__.notifyChange(e)}_get(e){return this.__accessor__.internalGet(e)}_set(e,t){return this.__accessor__.internalSet(e,t),this}}},98291(e,t,r){r.d(t,{A:()=>s});var i=r(93687);function n(e){e.length=0}class s{constructor(e=50,t=50){this._pool=new i.A(()=>[],void 0,n,t,e)}acquire(){return this._pool.acquire()}release(e){this._pool.release(e)}prune(){this._pool.prune(0)}static acquire(){return o.acquire()}static release(e){return o.release(e)}static prune(){o.prune()}}const o=new s(100)},71511(e,t,r){r.d(t,{A:()=>n});var i=r(5479);class n{constructor(){this._groups=new Map}destroy(){this.removeAll()}get size(){let e=0;return this._groups.forEach(t=>{e+=t.length}),e}add(e,t){if((0,i.xZ)(e)){let r=this._getOrCreateGroup(t);for(let t of e)a(t)&&r.push(t)}else a(e)&&this._getOrCreateGroup(t).push(e);return this}forEach(e,t){if("function"==typeof e)this._groups.forEach(t=>t.forEach(e));else{let r=this._getGroup(e);r&&t&&r.forEach(t)}}has(e){return this._groups.has(s(e))}remove(e){if("string"!=typeof e&&(0,i.xZ)(e)){for(let t of e)this.remove(t);return this}return this.has(e)&&(o(this._getGroup(e)),this._groups.delete(s(e))),this}removeAll(){return this._groups.forEach(o),this._groups.clear(),this}removeReference(e){return this._groups.delete(e),this}_getOrCreateGroup(e){if(this.has(e))return this._getGroup(e);let t=[];return this._groups.set(s(e),t),t}_getGroup(e){return this._groups.get(s(e))}}function s(e){return e||"_default_"}function o(e){for(let t of e)t instanceof n?t.removeAll():t.remove()}function a(e){return null!=e&&(!!e.remove||e instanceof n)}},25482(e,t,r){r.d(t,{o:()=>y,T:()=>d});var i=r(32198),n=r(69622),s=r(4718);class o{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(e){let t=new o;return this._values.forEach((r,i)=>{e&&e.has(i)||t.set(i,(0,s.o8)(r.value),r.origin)}),t}get(e,t){t=this._normalizeOrigin(t);let r=this._values.get(e);return null==t||r?.origin===t?r?.value:void 0}originOf(e){return this._values.get(e)?.origin??7}keys(e){e=this._normalizeOrigin(e);let t=[...this._values.keys()];return null==e?t:t.filter(t=>this._values.get(t)?.origin===e)}set(e,t,r){if(0===(r=this._normalizeOrigin(r))){let t=this._values.get(e);if(null!=t?.origin&&t.origin>r)return}this._values.set(e,new a(t,r))}delete(e,t){(null==(t=this._normalizeOrigin(t))||this._values.get(e)?.origin===t)&&this._values.delete(e)}has(e,t){return null==(t=this._normalizeOrigin(t))?this._values.has(e):this._values.get(e)?.origin===t}isAtOrigin(e,t){return t=this._normalizeOrigin(t),this.has(e,t)&&this.originOf(e)===t}isBelowOrigin(e,t){return t=this._normalizeOrigin(t),!this.has(e)||this.originOf(e)<t}forEach(e){this._values.forEach(({value:t},r)=>e(t,r))}_normalizeOrigin(e){if(null!=e)return 0===e?e:7}}class a{constructor(e,t){this.value=e,this.origin=t}}var l=r(76953),u=r(45917),c=r(88620),h=r(49422),f=r(64108);const d=e=>{let t=e,r=class extends t{constructor(...e){super(...e);let t=(0,c.oY)(this),r=t.store,i=new o;t.store=i,(0,l.k)(t,r,i)}read(e,t){(0,u.L)(this,e,t)}write(e,t){return(0,h.M)(this,e??{},t)}toJSON(e){return this.write({},e)}static fromJSON(e,t){return p.call(this,e,t)}};return r=(0,i.Cg)([(0,f.$)("esri.core.JSONSupport")],r),r.prototype.toJSON.isDefaultToJSON=!0,r};function p(e,t){if(!e)return null;if(e.declaredClass)throw Error("JSON object is already hydrated");let r=new this;return r.read(e,t),r}const y=d(n.A)},93687(e,t,r){r.d(t,{A:()=>s});var i=r(44208);const n=()=>!!(0,i.A)("esri-tests-disable-memory-pools");class s{constructor(e,t,r,i=1,n=0){this._creator=e,this._acquireFunction=t,this._releaseFunction=r,this.allocationSize=i,this._pool=Array(n),this._initialSize=n;for(let e=0;e<n;e++)this._pool[e]=this._creator();this.allocationSize=Math.max(i,1)}destroy(){this.prune(0)}acquire(...e){let t;if(n())t=this._creator();else{if(0===this._pool.length){let e=this.allocationSize;for(let t=0;t<e;t++)this._pool[t]=this._creator()}t=this._pool.pop()}return this._acquireFunction?this._acquireFunction(t,...e):function(e){return e?.acquire&&"function"==typeof e.acquire}(t)&&t.acquire(...e),t}release(e){e&&!n()&&(this._releaseFunction?this._releaseFunction(e):function(e){return e?.release&&"function"==typeof e.release}(e)&&e.release(),this._pool.push(e))}prune(e=this._initialSize){if(!(e>=this._pool.length)){for(let t=e;t<this._pool.length;++t){let e=this._pool[t];this._dispose(e)}this._pool.length=e}}_dispose(e){e.dispose&&"function"==typeof e.dispose&&e.dispose()}}},15142(e,t,r){r.d(t,{A:()=>u});var i=r(4576),n=r(21818);const s=(e,t,r,i)=>{let n=t,s=t,o=r>>>1,a=e[n-1];for(;s<=o;){s=n<<1,s<r&&i(e[s-1],e[s])<0&&++s;let t=e[s-1];if(i(t,a)<=0)break;e[n-1]=t,n=s}e[n-1]=a},o=(e,t)=>e<t?-1:+(e>t);function a(e,t,r,i){void 0===t&&(t=0),void 0===r&&(r=e.length),void 0===i&&(i=o);for(let n=r>>>1;n>t;n--)s(e,n,r,i);let n=t+1;for(let o=r-1;o>t;o--){let r=e[t];e[t]=e[o],e[o]=r,s(e,n,o,i)}}function*l(e,t,r,i){void 0===t&&(t=0),void 0===r&&(r=e.length),void 0===i&&(i=o);for(let n=r>>>1;n>t;n--)s(e,n,r,i),yield;let n=t+1;for(let o=r-1;o>t;o--){let r=e[t];e[t]=e[o],e[o]=r,s(e,n,o,i),yield}}class u{constructor(e){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new i.vW,e&&(e.initialSize&&(this.data=Array(e.initialSize)),e.allocator&&(this._allocator=e.allocator),void 0!==e.deallocator&&(this._deallocator=e.deallocator),e.shrink&&(this._shrink=()=>c(this)))}toArray(){return this.data.slice(0,this.length)}filter(e){let t=[];for(let r=0;r<this._length;r++){let i=this.data[r];e(i)&&t.push(i)}return t}at(e){if((e=Math.trunc(e)||0)<0&&(e+=this._length),!(e<0||e>=this._length))return this.data[e]}includes(e,t){let r=this.data.indexOf(e,t);return-1!==r&&r<this.length}get length(){return this._length}set length(e){if(e>this._length){if(this._allocator){for(;this._length<e;)this.data[this._length++]=this._allocator(this.data[this._length]);return}this._length=e}else{if(this._deallocator)for(let t=e;t<this._length;++t)this.data[t]=this._deallocator(this.data[t]);this._length=e,this._shrink()}}clear(){this.length=0}prune(){this.clear(),this.data=[]}push(e){this.data[this._length++]=e}pushArray(e,t=e.length){for(let r=0;r<t;r++)this.data[this._length++]=e[r]}pushAll(e){for(let t of e)this.data[this._length++]=t}fill(e,t){for(let r=0;r<t;r++)this.data[this._length++]=e}pushNew(){this._allocator&&(this.data[this.length]=this._allocator(this.data[this.length]));let e=this.data[this._length];return++this._length,e}unshift(e){this.data.unshift(e),this._length++,c(this)}pop(){if(0===this.length)return;let e=this.data[this.length-1];return--this.length,this._shrink(),e}remove(e){let t=(0,i.qh)(this.data,(0,n.z)(e),this.length,this._hint);if(-1!==t)return this.data.splice(t,1),--this.length,e}removeUnordered(e){return this.removeUnorderedIndex((0,i.qh)(this.data,(0,n.z)(e),this.length,this._hint))}removeUnorderedIndex(e){if(!(e>=this.length||e<0))return this.swapElements(e,this.length-1),this.pop()}removeUnorderedMany(e,t=e.length,r){this.length=(0,i.mW)(this.data,e,this.length,t,this._hint,r),this._shrink()}front(){if(0!==this.length)return this.data[0]}back(){if(0!==this.length)return this.data[this.length-1]}swapElements(e,t){if(e>=this.length||t>=this.length||e===t)return;let r=this.data[e];this.data[e]=this.data[t],this.data[t]=r}sort(e){a(this.data,0,this.length,e)}stableSort(e){let t=this.toArray().sort(e);for(let e=0;e<t.length;++e)this.data[e]=t[e]}iterableSort(e){return l(this.data,0,this.length,e)}some(e,t){for(let r=0;r<this.length;++r)if(e.call(t,this.data[r],r,this.data))return!0;return!1}find(e,t){let{data:r,length:i}=this;for(let n=0;n<i;++n)if(e.call(t,r[n]))return r[n]}filterInPlace(e,t){let r=0;for(let i=0;i<this._length;++i){let n=this.data[i];e.call(t,n,i,this.data)&&(this.data[i]=this.data[r],this.data[r]=n,r++)}if(this._deallocator)for(let e=r;e<this._length;e++)this.data[e]=this._deallocator(this.data[e]);return this._length=r,this._shrink(),this}forAll(e,t){let{data:r,length:i}=this;for(let n=0;n<i;++n)e.call(t,r[n],n,r)}forEach(e,t){this.data.slice(0,this.length).forEach(e,t)}map(e,t){let r=Array(this.length);for(let i=0;i<this.length;++i)r[i]=e.call(t,this.data[i],i,this.data);return r}reduce(e,t){let r=t;for(let t=0;t<this.length;++t)r=e(r,this.data[t],t,this.data);return r}has(e){let t=this.length,r=this.data;for(let i=0;i<t;++i)if(r[i]===e)return!0;return!1}*[Symbol.iterator](){for(let e=0;e<this.length;++e)yield this.data[e]}}function c(e){e.data.length>1.5*e.length&&(e.data.length=Math.floor(1.1*e.length))}},67076(e,t,r){r.d(t,{A:()=>n});var i=r(799);class n{constructor(e,t,r){this.name=e,this.details=r,this.type="warning",this.message=t?(0,i.V2)(t,r):""}toString(){let{name:e,message:t}=this;return`[${e}]: ${t}`}}},85537(e,t,r){r.d(t,["v",0,{INITIALIZING:0,CONSTRUCTING:1,CONSTRUCTED:2,DESTROYING:3,DESTROYED:4}])},11406(e,t,r){r.d(t,{T:()=>s});var i=r(36563);class n{constructor(e,t){this._observers=e,this._observer=t}remove(){let{_observers:e,_observer:t}=this;if(e[e.length-1]===t)return void e.pop();let r=e.indexOf(this._observer);-1!==r&&e.splice(r,1)}}class s{constructor(){this._observers=null,this.destroyed=!1}observe(e){if(this.destroyed||e.destroyed)return o;this._observers??=[];let t=this._observers,r=!1,i=!1;for(let n of t)if(n.destroyed)i=!0;else if(n===e){r=!0;break}return r||(t.push(e),i&&this._removeDestroyedObservers()),new n(t,e)}_removeDestroyedObservers(){let e=this._observers;if(!e)return;let t=e.length;if(0===t)return;let r=0;for(let i=0;i<t;++i){for(;i+r<t&&e[i+r].destroyed;)++r;if(r>0){if(!(i+r<t))break;e[i]=e[i+r]}}e.length=t-r}destroy(){if(this.destroyed)return;this.destroyed=!0;let e=this._observers;if(null!=e){for(let t of e)t.onCommitted();this._observers=null}}}const o=(0,i.hA)()},35666(e,t,r){function i(e){switch(e){case"defaults":return 0;case"service":return 2;case"portal-item":return 3;case"web-scene":return 4;case"web-map":return 5;case"link-chart":return 6;case"user":return 7;default:return null}}function n(e){switch(e){case 0:return"defaults";case 2:return"service";case 3:return"portal-item";case 4:return"web-scene";case 5:return"web-map";case 6:return"link-chart";case 7:return"user"}}function s(e){return n(e)}r.d(t,{OL:()=>n,aB:()=>i,in:()=>s})},56454(e,t,r){const i=Symbol("Accessor-beforeDestroy");r.d(t,["G",0,i])},91429(e,t,r){r.d(t,{wg:()=>l,MZ:()=>o,$K:()=>a});var i=r(10107),n=r(79901),s=r(64108);r(93223),r(36005),r(43937);const o=i.MZ,a=s.$;function l(...e){return(0,n.w)(...e)}},79901(e,t,r){r.d(t,{w:()=>l});var i=r(78888),n=r(96156);const s=Object.prototype.toString;function o(e){let t="__accessorMetadata__"in e?(0,i.dp)(e):e;return function(...e){if(e.push(t),"number"==typeof e[2])throw Error("Using @cast has parameter decorator is not supported since 4.16");return a.apply(this,e)}}function a(e,t,r,i){(0,n.z4)(e,t).cast=i}function l(...e){if(3!==e.length||"string"!=typeof e[1]){if(1===e.length&&"[object Function]"===s.call(e[0]))return o(e[0]);if(1===e.length&&"string"==typeof e[0])return function(e){return(t,r)=>{(0,n.z4)(t,e).cast=t[r]}}(e[0])}}},93223(e,t,r){r.d(t,{e:()=>s});var i=r(66552),n=r(10107);function s(e,t={}){let r=e instanceof i.J?e:new i.J(e,t),{alwaysWriteDefaults:s,default:o,ignoreUnknown:a=!0,name:l,nonNullable:u,readOnly:c=!1}=t;return(0,n.MZ)({type:a?r.apiValues:String,json:{type:r.jsonValues,default:o,name:l,read:!c&&{reader:r.read},write:{writer:r.write,alwaysWriteDefaults:s}},nonNullable:u,readOnly:c})}},10107(e,t,r){r.d(t,{MZ:()=>l,rM:()=>u});var i=r(53966),n=r(78888),s=r(16649),o=r(96156),a=r(47821);function l(e={}){return(t,r)=>{if(t===Function.prototype)throw Error(`Inappropriate use of @property() on a static field: ${t.name}.${r}. Accessor does not support static properties.`);let l=Object.getOwnPropertyDescriptor(t,r),u=(0,o.z4)(t,r);l&&(l.get||l.set?(u.get=l.get||u.get,u.set=l.set||u.set):"value"in l&&("value"in e&&i.A.getLogger("esri.core.accessorSupport.decorators.property").warn(`@property() will redefine the value of "${r}" on "${t.constructor.name}" already defined in the metadata`,e),u.value=e.value=l.value)),null!=e.readOnly&&(u.readOnly=e.readOnly);let c=e.aliasOf;if(c){let e,t="string"==typeof c?c:c.source,i="string"==typeof c?null:!0===c.overridable;u.dependsOn=[t],u.get=function(){let r=(0,s.Jt)(this,t);if("function"==typeof r){e||=t.split(".").slice(0,-1).join(".");let i=(0,s.Jt)(this,e);i&&(r=r.bind(i))}return r},u.readOnly||(u.set=i?function(e){this._override(r,e)}:function(e){(0,a.h)(this,t,e)})}let h=e.type,f=e.types;if(!u.cast){let t;h&&!1!==e.useTypeForAutocast?t=function(e){let t=0,r=e;if((0,n.Zu)(e))return(0,n.Nd)(e);for(;Array.isArray(r)&&1===r.length&&"string"!=typeof r[0]&&"number"!=typeof r[0];)r=r[0],t++;let i=r;if((0,n.EK)(i))return 0===t?(0,n.MB)(i):(0,n._e)((0,n.MB)(i),t);if(1===t)return(0,n.eC)(i);if(t>1)return(0,n.e6)(i,t);let s=e;return s.from?s.from:(0,n.dp)(s)}(h):f&&(t=Array.isArray(f)?(0,n.wB)((0,n.aq)(f[0])):(0,n.aq)(f)),e.cast=function(e,t){if(e||t)return e?t?(r,i)=>t(e(r,i),i):e:t}(e.cast,t)}(0,o.CX)(u,e),e.range&&(u.cast=(0,n.Qp)(u.cast,e.range))}}function u(e,t,r){let i=(0,o.z4)(e,r);i.json||={};let n=i.json;return void 0!==t&&(n.origins||(n.origins={}),n.origins[t]||(n.origins[t]={}),n=n.origins[t]),n}},36005(e,t,r){r.d(t,{w:()=>n});var i=r(10107);function n(e,t,r){let n,s;return void 0===t||Array.isArray(t)?(s=e,r=t,n=[void 0]):(s=t,n=Array.isArray(e)?e:[e]),(e,t)=>{let o=e.constructor.prototype;n.forEach(n=>{let a=(0,i.rM)(e,n,s);a.read&&"object"==typeof a.read||(a.read={}),a.read.reader=o[t],r&&(a.read.source=(a.read.source||[]).concat(r))})}}},64108(e,t,r){r.d(t,{$:()=>w}),r(44208);var i=r(53966),n=r(56454),s=r(85537),o=r(96156),a=r(62788),l=r(78888),u=r(90360);function c(e){e.name&&(e.read&&"object"==typeof e.read?void 0===e.read.source&&(e.read.source=e.name):e.read={source:e.name},e.write&&"object"==typeof e.write?void 0===e.write.target&&(e.write.target=e.name):e.write={target:e.name})}function h(e){"boolean"==typeof e.read?e.read={enabled:e.read}:"function"==typeof e.read?e.read={enabled:!0,reader:e.read}:e.read&&"object"==typeof e.read&&void 0===e.read.enabled&&(e.read.enabled=!0)}function f(e){"boolean"==typeof e.write?e.write={enabled:e.write}:"function"==typeof e.write?e.write={enabled:!0,writer:e.write}:e.write&&"object"==typeof e.write&&void 0===e.write.enabled&&(e.write.enabled=!0)}var d=r(67124);function p(e){return e.type?y(e):g(e)}function y(e){if(!e.type)return;let t=0,r=e.type;for(;Array.isArray(r)&&!(0,l.EK)(r);)r=r[0],t++;return{type:r,ndimArray:t}}function g(e){if(!e.types)return;let t=0,r=e.types;for(;Array.isArray(r);)r=r[0],t++;return{types:r,ndimArray:t}}function _(e){(function(e){if(e.json||={},h(e.json),f(e.json),c(e.json),e.json.origins)for(let t in e.json.origins)h(e.json.origins[t]),f(e.json.origins[t]),c(e.json.origins[t]);return!0})(e)&&(function(e){if(e.json&&e.json.origins){let t=e.json.origins,r={"web-document":["web-scene","web-map"]};for(let e in r)if(t[e]){let i=t[e];r[e].forEach(e=>{t[e]=i}),delete t[e]}}}(e),function(e){let t=function(e){return e.json.types?g(e.json):e.type?y(e):g(e)}(e);if(e.json.origins)for(let r in e.json.origins){let i=e.json.origins[r],n=i.types?p(i):t;(0,u.v)(n,i,!1),i.types&&!i.write&&e.json.write?.enabled&&(i.write={...e.json.write}),(0,d.v)(n,i)}(0,u.v)(t,e.json,!0),(0,d.v)(t,e.json)}(e))}const v=new Set,m=new Set;function w(e){return t=>{e??="esri.core.Accessor",t.prototype.declaredClass=e,N(t);let r=[],i=[],a=t.prototype;for(;a;)a.hasOwnProperty("initialize")&&!v.has(a.initialize)&&(v.add(a.initialize),r.push(a.initialize)),a.hasOwnProperty("destroy")&&!m.has(a.destroy)&&(m.add(a.destroy),i.push(a.destroy)),a=Object.getPrototypeOf(a);v.clear(),m.clear();let l=class extends t{constructor(...e){if(super(...e),this.constructor===l&&"function"==typeof this.postscript){if(r.length&&Object.defineProperty(this,"initialize",{enumerable:!1,configurable:!0,value(){for(let e=r.length-1;e>=0;e--)r[e].call(this)}}),i.length){let e=!1,t=this[n.G];Object.defineProperty(this,"destroy",{enumerable:!1,configurable:!0,value(){if(!e){this.__accessor__.lifecycle=s.v.DESTROYING,e=!0,t.call(this);for(let e=0;e<i.length;e++)i[e].call(this)}}})}Object.defineProperty(this,Symbol.dispose,{enumerable:!1,configurable:!0,value(){this.destroy()}}),this.postscript()}}};l.__accessorMetadata__=(0,o.tD)(t.prototype),l.prototype.declaredClass=e;let u=(e||"AccessorSubclass").split(".").slice(-1)[0];return Object.defineProperty(l.prototype,Symbol.toStringTag,{value:u,configurable:!0,writable:!0,enumerable:!1}),l}}function b(e,{get:t,value:r}){return null==t?function(){let t=this.__accessor__,i=t.propertiesByName.get(e);if(void 0===i)return;t.mutable&&(0,a.gc)(i);let n=t.store;return n.has(e)?n.get(e):r}:function(){let r=this.__accessor__;return r.propertiesByName.get(e)?.getComputed(r,t)}}function A(e,t,r){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r})}function O(e,t){return t.readOnly&&t.constructOnly?function(r){let i=this.__accessor__;if(i){if(i.mutable){if(i.initialized&&t.readOnly)return k("read-only",e);if(i.lifecycle===s.v.CONSTRUCTED&&t.constructOnly)return k("construct-only",e);i.set(e,r)}}else A(this,e,r)}:t.readOnly?function(r){let i=this.__accessor__;if(i){if(i.mutable){if(i.initialized&&t.readOnly)return k("read-only",e);i.set(e,r)}}else A(this,e,r)}:t.constructOnly?function(r){let i=this.__accessor__;if(i){if(i.mutable){if(i.lifecycle===s.v.CONSTRUCTED&&t.constructOnly)return k("construct-only",e);i.set(e,r)}}else A(this,e,r)}:function(t){let r=this.__accessor__;r?r.mutable&&r.set(e,t):A(this,e,t)}}function N(e){let t=e.prototype,r=(0,o.tD)(t),i={};for(let e of Object.getOwnPropertyNames(r)){let t=r[e];_(t),i[e]={enumerable:!0,configurable:!0,get:b(e,t),set:O(e,t)}}Object.defineProperties(e.prototype,i)}const k=(e,t)=>{i.A.getLogger("esri.core.Accessor").error(`cannot assign to ${e} property '${t}'`)}},43937(e,t,r){r.d(t,{K:()=>n});var i=r(10107);function n(e,t,r){let n,s;return void 0===t?(s=e,n=[void 0]):"string"==typeof t?(s=t,n=Array.isArray(e)?e:[e]):(s=e,n=[void 0],r=t),(e,t)=>{let o=e.constructor.prototype;for(let a of n){let n=(0,i.rM)(e,a,s);n.write&&"object"==typeof n.write||(n.write={}),r&&(n.write.target=r),n.write.writer=o[t]}}}},76953(e,t,r){function i(e,t,r){t.keys().forEach(e=>{r.set(e,t.get(e),0)});let i=e.metadata;Object.keys(i).forEach(t=>{e.internalGet(t)&&r.set(t,e.internalGet(t),0)})}r.d(t,{k:()=>i})},78888(e,t,r){r.d(t,{EK:()=>C,GB:()=>u,GX:()=>l,MB:()=>D,Nd:()=>z,PZ:()=>v,Qp:()=>f,Uv:()=>M,Vr:()=>c,Zu:()=>I,_e:()=>j,aq:()=>E,dp:()=>A,e6:()=>T,eC:()=>k,jz:()=>$,qf:()=>O,wB:()=>N});var i=r(53966),n=r(91869);const s=()=>i.A.getLogger("esri.core.accessorSupport.ensureTypes");function o(e){if(null==e)return e;let t=new Date(e);return isNaN(t.getTime())?(s().error("Accessor#set",`Invalid date value: '${e}', falling back to current date`),new Date):t}function a(e){return null==e?e:!!e}function l(e){return null==e?e:e.toString()}function u(e,t=0){return null==e?e:(e=parseFloat(e),isNaN(e)?t:e)}function c(e){return null==e?e:Math.round(parseFloat(e))}function h(e){return null}function f(e,t){return r=>{let i=e(r);return null!=t.step&&(i=Math.round(i/t.step)*t.step),null!=t.min&&(i=Math.max(t.min,i)),null!=t.max&&(i=Math.min(t.max,i)),i}}function d(e){return e?.constructor&&void 0!==e.constructor.__accessorMetadata__}function p(e,t){return null!=t&&e&&!(t instanceof e)}function y(e){return e&&"isCollection"in e}function g(e){return e?.Type?"function"==typeof e.Type?e.Type:e.Type.base:null}function _(e,t){return!!d(t)&&(s().error("Accessor#set","Assigning an instance of '"+(t.declaredClass||"unknown")+"' which is not a subclass of '"+m(e)+"'"),!0)}function v(e,t){return null==t?t:y(e)?function(e,t){if(!t?.constructor||!y(t.constructor))return _(e,t)?t:new e(t);let r=g(e.prototype.itemType),i=g(t.constructor.prototype.itemType);return r?i?r===i?t:r.prototype.isPrototypeOf(i.prototype)?new e(t):(_(e,t),t):new e(t):t}(e,t):p(e,t)?_(e,t)?t:new e(t):t}function m(e){return e?.prototype?.declaredClass||"unknown"}const w=new WeakMap;function b(e){switch(e){case Number:return e=>u(e);case $:return c;case Boolean:return a;case String:return l;case Date:return o;case M:return h;default:return(0,n.tE)(w,e,()=>v.bind(null,e))}}function A(e,t){let r=b(e);return 1===arguments.length?r:r(t)}function O(e){let t=b(e);return e=>t(e)}function N(e,t,r){return 1===arguments.length?N.bind(null,e):t&&(Array.isArray(t)?t.map(t=>e(t,r)):[e(t,r)])}function k(e,t){return 1===arguments.length?N(t=>A(e,t)):N(t=>A(e,t),t)}function S(e,t,r){return 0!==t&&Array.isArray(r)?r.map(r=>S(e,t-1,r)):e(r)}function j(e,t,r){if(2===arguments.length)return r=>j(e,t,r);if(!r)return r;r=S(e,t,r);let i=t,n=r;for(;i>0&&Array.isArray(n);)i--,n=n[0];if(void 0!==n)for(let e=0;e<i;e++)r=[r];return r}function T(e,t,r){return 2===arguments.length?j(t=>A(e,t),t):j(t=>A(e,t),t,r)}function C(e){return!!Array.isArray(e)&&!e.some(t=>{let r=typeof t;return!("string"===r||"number"===r||"function"===r&&e.length>1)})}function D(e,t){if(2===arguments.length)return D(e).call(null,t);let r=new Set,i=e.filter(e=>"function"!=typeof e),n=e.filter(e=>"function"==typeof e);for(let t of e)("string"==typeof t||"number"==typeof t)&&r.add(t);let o=null,a=null;return(e,t)=>{if(null==e)return e;let l=typeof e,u="string"===l||"number"===l;return u&&(r.has(e)||n.some(e=>"string"===l&&e===String||"number"===l&&e===Number))||"object"===l&&n.some(t=>!p(t,e))?e:(u&&i.length?(o||=i.map(e=>"string"==typeof e?`'${e}'`:`${e}`).join(", "),s().error("Accessor#set",`'${e}' is not a valid value for this property, only the following values are valid: ${o}`)):"object"==typeof e&&n.length?(a||=n.map(e=>m(e)).join(", "),s().error("Accessor#set",`'${e}' is not a valid value for this property, value must be one of ${a}`)):s().error("Accessor#set",`'${e}' is not a valid value for this property`),t&&(t.valid=!1),null)}}function E(e,t){if(2===arguments.length)return E(e).call(null,t);let r={},i=[],n=[];for(let t in e.typeMap){let s=e.typeMap[t];r[t]=A(s),i.push(m(s)),n.push(t)}let o=()=>`'${i.join("', '")}'`,a=()=>`'${n.join("', '")}'`,l="string"==typeof e.key?t=>t[e.key]:e.key;return t=>{if(e.base&&!p(e.base,t)||null==t)return t;let i=l(t)||e.defaultKeyValue,n=r[i];if(!n)return s().error("Accessor#set",`Invalid property value, value needs to be one of ${o()}, or a plain object that can autocast (having .type = ${a()})`),null;if(!p(e.typeMap[i],t))return t;if("string"==typeof e.key&&!d(t)){let r={};for(let i in t)i!==e.key&&(r[i]=t[i]);return n(r)}return n(t)}}class ${}class M{}function I(e){if(!e||"object"!=typeof e&&"function"!=typeof e||!("type"in e))return!1;switch(e.type){case"native":case"array":case"one-of":return!0}return!1}function z(e){switch(e.type){case"native":return A(e.value);case"array":return N(z(e.value));case"one-of":return function(e){let t=null;return(r,i)=>q(r,e)?r:(t??=P(e),s().error("Accessor#set",`Invalid property value, value needs to be of type ${t}`),i&&(i.valid=!1),null)}(e);default:return null}}function P(e){switch(e.type){case"native":switch(e.value){case Number:return"number";case String:return"string";case Boolean:return"boolean";case $:return"integer";case Date:return"date";case M:return"null";default:return m(e.value)}case"array":return`array of ${P(e.value)}`;case"one-of":{let t=e.values.map(e=>P(e));return`one of ${t.slice(0,-1)} or ${t[t.length-1]}`}}return"unknown"}function q(e,t){if(null==e)return!0;switch(t.type){case"native":switch(t.value){case Number:case $:return"number"==typeof e;case Boolean:return"boolean"==typeof e;case String:return"string"==typeof e;case M:return null===e}return e instanceof t.value;case"array":return!!Array.isArray(e)&&!e.some(e=>!q(e,t.value));case"one-of":return t.values.some(t=>q(e,t))}}r.d(t,["gK",0,{native:e=>({type:"native",value:e}),array:e=>({type:"array",value:e}),oneOf:e=>({type:"one-of",values:e})}])},90360(e,t,r){r.d(t,{C:()=>h,v:()=>c});var i=r(53966),n=r(93637),s=r(96156),o=r(15903),a=r(7142),l=r(59923);const u=()=>i.A.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader");function c(e,t,r){e&&(!r&&!t.read||t.read?.reader||!1===t.read?.enabled||function(e){return"types"in e?_(e.types):g(e.type)}(e)&&(0,n.sM)("read.reader",h(e),t))}function h(e){let t=e.ndimArray??0;if(t>1)return function(e){let t=f(e),r=d.bind(null,t),i=e.ndimArray??0;return(e,t,n)=>{if(null==e)return e;e=r(e,n,i);let s=i,o=e;for(;s>0&&Array.isArray(o);)s--,o=o[0];if(void 0!==o)for(let t=0;t<s;t++)e=[e];return e}}(e);if(1===t)return p(e);if("type"in e&&y(e.type)){let t=e.type.prototype?.itemType?.Type,r=p("function"==typeof t?{type:t}:{types:t});return(t,i,n)=>{let s=r(t,i,n);return s&&new e.type(s)}}return f(e)}function f(e){return"type"in e?function(e){return e.prototype.read?(t,r,i)=>{if(null==t)return t;let n=typeof t;if("object"!==n)return void u().error(`Expected JSON value of type 'object' to deserialize type '${e.prototype.declaredClass}', but got '${n}'`);let s=new e;return s.read(t,i),s}:e.fromJSON}(e.type):function(e){let t=null,r=e.errorContext??"type",i=e.validate;return(n,o,c)=>{if(null==n)return n;let h=typeof n;if("object"!==h)return void u().error(`Expected JSON value of type 'object' to deserialize, but got '${h}'`);t||=function(e){let t={};for(let r in e.typeMap){let i=e.typeMap[r],n=(0,s.tD)(i.prototype);if("function"==typeof e.key)continue;let o=n[e.key];if(!o)continue;if(o.json?.type&&Array.isArray(o.json.type)&&1===o.json.type.length&&"string"==typeof o.json.type[0]){t[o.json.type[0]]=i;continue}let a=o.json?.write;if(!a?.writer){t[r]=i;continue}let l=a.target,u="string"==typeof l?l:e.key,c={};a.writer(r,c,u),c[u]&&(t[c[u]]=i)}return t}(e);let f=e.key;if("string"!=typeof f)return;let d=n[function(e,t,r){let i=Object.values(t)[0],n=(0,s.tD)(i.prototype)[e],o=(0,a.N5)(n,r)?.read?.source;return o&&"string"==typeof o?o:e}(f,t,c)],p=d?t[d]:e.defaultKeyValue?e.typeMap[e.defaultKeyValue]:void 0;if(!p){let e=`Type '${d||"unknown"}' is not supported`;return c?.messages&&n&&(0,l.Yc)(c,"warning",r,e,{definition:n,context:c}),void u().error(e)}let y=new p;return y.read(n,c),i?i(y):y}}(e.types)}function d(e,t,r,i){return 0!==i&&Array.isArray(t)?t.map(t=>d(e,t,r,i-1)):e(t,void 0,r)}function p(e){let t=f(e);return(e,r,i)=>{if(null==e)return e;if(Array.isArray(e)){let r=[];for(let n of e){let e=t(n,void 0,i);void 0!==e&&r.push(e)}return r}let n=t(e,void 0,i);return void 0===n?void 0:[n]}}function y(e){if(!(0,o.P)(e))return!1;let t=e.prototype.itemType;return!(!t||!t.Type)&&("function"==typeof t.Type?g(t.Type):_(t.Type))}function g(e){return!Array.isArray(e)&&!!e&&("object"==typeof e||"function"==typeof e)&&e.prototype&&("read"in e.prototype||"fromJSON"in e||y(e))}function _(e){for(let t in e.typeMap)if(!g(e.typeMap[t]))return!1;return!0}},15903(e,t,r){function i(e){return!!e&&e.prototype?.declaredClass&&0===e.prototype.declaredClass.indexOf("esri.core.Collection")}r.d(t,{P:()=>i})},7142(e,t,r){function i(e,t){return o(e,"any",t?.origin)}function n(e,t){return o(e,"read",t?.origin)}function s(e,t){return o(e,"write",t?.origin)}function o(e,t,r){let i=e?.json;if(i?.origins&&r){let e;e="link-chart"===r?i.origins[r]&&("any"===t||t in i.origins[r])?i.origins[r]:i.origins["web-map"]:i.origins[r],e&&("any"===t||t in e)&&(i=e)}return i}r.d(t,{N5:()=>n,k4:()=>s,xF:()=>i})},67124(e,t,r){r.d(t,{B:()=>h,v:()=>a});var i=r(53966),n=r(93637),s=r(15903),o=r(59923);function a(e,t){if(!t.write||t.write.writer||!1===t.write.enabled&&!t.write.overridePolicy)return;let r=e?.ndimArray??0;e&&(1===r||"type"in e&&(0,s.P)(e.type))?t.write.writer=f:r>1?t.write.writer=function(e){return(t,r,i,s)=>{let o;if(null===t)o=null;else{o=d(t,s,e);let r=e,i=o;for(;r>0&&Array.isArray(i);)r--,i=i[0];if(void 0!==i)for(let e=0;e<r;e++)o=[o]}(0,n.sM)(i,o,r)}}(r):t.types?Array.isArray(t.types)?t.write.writer=function(e){return(t,r,i,n)=>u(t&&Array.isArray(t)?t.filter(t=>l(t,e,n)):t,r,i,n)}(t.types[0]):t.write.writer=function(e){return(t,r,i,n)=>{if(!t||l(t,e,n))return u(t,r,i,n)}}(t.types):t.write.writer=u}function l(e,t,r){for(let r in t.typeMap)if(e instanceof t.typeMap[r])return!0;if(r?.messages){let n=t.errorContext??"type",s=`Values of type '${("function"==typeof t.key?e.declaredClass:e[t.key])??"Unknown"}' cannot be written`;r&&r.messages&&e&&(0,o.Yc)(r,"error",n,s,{definition:e,context:r}),i.A.getLogger("esri.core.accessorSupport.extensions.serializableProperty.writer").error(s)}return!1}function u(e,t,r,i){(0,n.sM)(r,c(e,i),t)}function c(e,t){return e&&"function"==typeof e.write?e.write({},t):e&&"function"==typeof e.toJSON?e.toJSON():"number"==typeof e?h(e):e}function h(e){return e===-1/0?-Number.MAX_VALUE:e===1/0?Number.MAX_VALUE:isNaN(e)?null:e}function f(e,t,r,i){let s;null===e?s=null:e&&"function"==typeof e.map?(s=e.map(e=>c(e,i)),"function"==typeof s.toArray&&(s=s.toArray())):s=[c(e,i)],(0,n.sM)(r,s,t)}function d(e,t,r){return 0!==r&&Array.isArray(e)?e.map(e=>d(e,t,r-1)):c(e,t)}},16649(e,t,r){r.d(t,{Jt:()=>a,RP:()=>o,t2:()=>l});var i=r(88620);function n(e,t){let r=e.endsWith("?")?e.slice(0,-1):e;if(null!=t.getItemAt||Array.isArray(t)){let e=parseInt(r,10);if(!isNaN(e))return Array.isArray(t)?t[e]:t.at(e)}let n=(0,i.oY)(t);return(0,i.yh)(n,r)?n.get(r):t[r]}function s(e,t,r){if(null==e)return e;let i=n(t[r],e);return!i&&r<t.length-1?void 0:r===t.length-1?i:s(i,t,r+1)}function o(e,t,r=0){return"string"!=typeof t||t.includes(".")?s(e,(0,i.AH)(t),r):n(t,e)}function a(e,t){return o(e,t)}function l(e,t){return void 0!==o(t,e)}},96156(e,t,r){r.d(t,{CX:()=>a,tD:()=>s,z4:()=>o});var i=r(4718),n=r(88620);function s(e){let t=e.constructor.__accessorMetadata__,r=Object.prototype.hasOwnProperty.call(e.constructor,"__accessorMetadata__");if(t){if(!r){t=Object.create(t);for(let e in t)t[e]=(0,i.o8)(t[e]);Object.defineProperty(e.constructor,"__accessorMetadata__",{value:t,enumerable:!1,configurable:!0,writable:!0})}}else t={},Object.defineProperty(e.constructor,"__accessorMetadata__",{value:t,enumerable:!1,configurable:!0,writable:!0});return e.constructor.__accessorMetadata__}function o(e,t){let r=s(e),i=r[t];return i||=r[t]={},i}function a(e,t){return(0,n.h1)(e,t,u)}const l=/^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/;function u(e){return l.test(e)?"replace":"merge"}},45917(e,t,r){r.d(t,{L:()=>c,t:()=>h});var i=r(16649),n=r(88620),s=r(7142);function o(e,t,r){if(!e?.read||!1===e.read.enabled||!e.read.source)return!1;let n=e.read.source;if("string"==typeof n){if(n===t||n.includes(".")&&n.startsWith(t)&&(0,i.t2)(n,r))return!0}else for(let e of n)if(e===t||e.includes(".")&&e.startsWith(t)&&(0,i.t2)(e,r))return!0;return!1}function a(e,t,r,i,n){let a=(0,s.N5)(t[r],n);(function(e){return e&&(!e.read||!1!==e.read.enabled&&!e.read.source)})(a)&&(e[r]=!0);for(let l of Object.getOwnPropertyNames(t))a=(0,s.N5)(t[l],n),o(a,r,i)&&(e[l]=!0)}function l(e,t,r,i){let n=r.metadata,o=(0,s.xF)(n[t],i)?.default;if(void 0===o)return;let a="function"==typeof o?o.call(e,t,i):o;void 0!==a&&r.set(t,a)}const u={origin:"service"};function c(e,t,r=u){if(!t||"object"!=typeof t)return;let o=(0,n.oY)(e),c=o.metadata,h={};for(let e of Object.getOwnPropertyNames(t))a(h,c,e,t,r);o.setDefaultOrigin(r.origin);for(let n of Object.getOwnPropertyNames(h)){let a,l=(0,s.N5)(c[n],r).read,u=l?.source;a=u&&"string"==typeof u?(0,i.RP)(t,u):t[n],l?.reader&&(a=l.reader.call(e,a,t,r)),void 0!==a&&o.set(n,a)}if(!r||!r.ignoreDefaults){o.setDefaultOrigin("defaults");for(let t of Object.getOwnPropertyNames(c))h[t]||l(e,t,o,r)}o.setDefaultOrigin("user")}function h(e,t,r,i=u){let n={...i,messages:[]};r(n),n.messages?.forEach(t=>{"warning"!==t.type||e.loaded?i?.messages&&i.messages.push(t):e.loadWarnings.push(t)})}},47821(e,t,r){r.d(t,{h:()=>o});var i=r(49186),n=r(44208),s=(r(53966),r(16649));function o(e,t,r){if(e&&t)if("object"==typeof t)for(let r of Object.getOwnPropertyNames(t))o(e,r,t[r]);else{if(t.includes(".")){let i=t.split("."),n=i.splice(-1,1)[0];return void o((0,s.Jt)(e,i),n,r)}let a=e.__accessor__;null!=a&&function(e,t){if((0,n.A)("esri-unknown-property-errors")&&!function(e,t){return null!=t.metadata[e]}(e,t))throw new i.A("set:unknown-property",function(e,t){return"setting unknown property '"+e+"' on instance of "+t.host.declaredClass}(e,t))}(t,a),e[t]=r}}},62788(e,t,r){r.d(t,{F_:()=>d,Xr:()=>v,a:()=>f,fE:()=>g,gc:()=>u}),r(44208);var i=r(53966),n=r(88620),s=r(47328);const o=new(r(67867).R),a=[];let l=o;function u(e){l.onAccessed(e)}let c=!1,h=!1;function f(e,t,r){if(c)return p(e,t,r);let n;if(h){l=e,a.push(e);try{n=t.call(r)}catch(e){throw i.A.getLogger("esri.core.accessorSupport.tracking").error(e),e}finally{y()}}else{l=e,a.push(e);try{n=t.call(r)}finally{y()}}return n}function d(e,t){return f(o,e,t)}function p(e,t,r){let n,s=c;c=!0,l=e,a.push(e);try{n=t.call(r)}catch(e){h&&i.A.getLogger("esri.core.accessorSupport.tracking").error(e)}return y(),c=s,n}function y(){let e=a.length;if(e>1){let t=a.pop();l=a[e-2],t.onTrackingEnd()}else if(1===e){let e=a.pop();l=o,e.onTrackingEnd()}else l=o}function g(e,t){if(t.flags&s.i.DepTrackingInitialized)return;t.flags|=s.i.DepTrackingInitialized;let r=h;h=!1,t.flags&s.i.AutoTracked?p(t.trackingTarget,t.metadata.get,e):v(e,t),h=r}const _=[];function v(e,t){t.flags&s.i.ExplicitlyTracking||(t.flags|=s.i.ExplicitlyTracking,p(t.trackingTarget,()=>{let r=t.metadata.dependsOn||_;for(let t of r)if("string"!=typeof t||t.includes(".")){let r=(0,n.AH)(t);for(let t=0,i=e;t<r.length&&"object"==typeof i&&i;++t)i=m(i,r[t],t!==r.length-1)}else m(e,t,!1)}),t.flags&=~s.i.ExplicitlyTracking)}function m(e,t,r){let i=t.endsWith("?")?t.slice(0,-1):t;if(null!=e.getItemAt||Array.isArray(e)){let t=parseInt(i,10);if(!isNaN(t))return Array.isArray(e)?e[t]:e.at(t)}let s=(0,n.oY)(e);if(s){let t=s.propertiesByName.get(i);t&&(u(t),g(e,t))}return r?e[i]:void 0}},47328(e,t,r){r.d(t,["i",0,{Dirty:1,Overridden:2,Computing:4,NonNullable:8,HasDefaultValue:16,DepTrackingInitialized:32,AutoTracked:64,ExplicitlyTracking:128}])},71429(e,t,r){r.d(t,{r:()=>n});var i=r(67867);class n extends i.R{constructor(e){super(new s(e)),this._observer&&o.register(this,new WeakRef(this._observer),this)}destroy(){this._observer&&o.unregister(this),this.accessed?.clear(),this.clear(),this._observer?.destroy()}}class s{constructor(e){this._notify=e,this._invalidCount=0,this.destroyed=!1}onInvalidated(){this._invalidCount++}onCommitted(){if(this.destroyed)return;let e=this._invalidCount;1===e?(this._invalidCount=0,this._notify()):this._invalidCount=e>0?e-1:0}destroy(){this.destroyed=!0,this._notify=a}}const o=new FinalizationRegistry(e=>{e.deref()?.destroy()});function a(){}},67867(e,t,r){r.d(t,{R:()=>i});class i{constructor(e){this.accessed=void 0,this._handles=void 0,this._observer=e}destroy(){this.clear(),this.accessed=void 0,this._observer=void 0}onAccessed(e){null!=this._observer&&e!==this._observer&&(this.accessed??=new Set,this.accessed.add(e))}onTrackingEnd(){null!=this._observer&&(this.clear(),null!=this.accessed&&(this._handles??=[],this.accessed.forEach(e=>{this._handles.push(e.observe(this._observer))}),this.accessed.clear()))}clear(){if(null!=this._handles)for(;this._handles.length;)this._handles.pop().remove()}}},80559(e,t,r){r.d(t,{Df:()=>u,fm:()=>c,mJ:()=>l});var i=r(36563),n=r(62788),s=r(71429);let o=!1;const a=[];function l(e,t){let r=new s.r(function i(){if(!r||l)return;if(o)return void h(i);let s=a;r.clear(),o=!0,l=!0,a=(0,n.a)(r,e),l=!1,o=!1,t(a,s),f()}),a=null,l=!1;return l=!0,a=(0,n.a)(r,e),l=!1,(0,i.hA)(function(){r&&(r.destroy(),r=null,a=null)})}function u(e,t){let r=new s.r(function(){t(o,a)}),o=null;function a(){return r?(r.clear(),o=(0,n.a)(r,e),o):null}return a(),(0,i.hA)(function(){r&&=(r.destroy(),null),o=null})}function c(e,t){let r=!1,a=!1,l=!!t?.sync,u=new s.r(()=>{!r&&!a&&(a=!0,l?c():queueMicrotask(c))});function c(){a=!1,u&&!r&&(o?h(c):(u.clear(),o=!0,r=!0,(0,n.a)(u,e),r=!1,o=!1,f()))}return r=!0,(0,n.a)(u,e),r=!1,(0,i.hA)(function(){u&&=(u.destroy(),null)})}function h(e){a.includes(e)||a.unshift(e)}function f(){for(;a.length;)a.pop()()}},88620(e,t,r){r.d(t,{AH:()=>u,h1:()=>a,oY:()=>s,qg:()=>h,yh:()=>o});var i=r(36563),n=r(4718);function s(e){return e.__accessor__??null}function o(e,t){return null!=e?.metadata?.[t]}function a(e,t,r){return l(e,t,r?{policy:r,path:""}:null)}function l(e,t,r){return t?Object.keys(t).reduce((e,i)=>{let s=i;if("__proto__"===s)return e;let o=null,a="merge";if(r&&(o=r.path?`${r.path}.${i}`:i,a=r.policy(o)),"replace"===a||"replace-arrays"===a&&Array.isArray(e[s]))return e[s]=t[s],e;if(void 0===e[s])return e[s]=(0,n.o8)(t[s]),e;let u=e[s],c=t[s];if(u===c)return e;if(Array.isArray(c)||Array.isArray(e))u=e[s]=u?Array.isArray(u)?u.slice():[u]:[],c&&(Array.isArray(c)||(c=[c]),c.forEach(e=>{u.includes(e)||u.push(e)}));else if(c&&"object"==typeof c)if(r){let t=r.path;r.path=o,e[s]=l(u,c,r),r.path=t}else e[s]=l(u,c,null);else(!e.hasOwnProperty(i)||t.hasOwnProperty(i))&&(e[s]=c);return e},e||{}):e}function u(e){return Array.isArray(e)?e:e.split(".")}function c(e){return e.includes(",")?e.split(",").map(e=>e.trim()):[e.trim()]}function h(e,t,r,n){let s=function(e){if(Array.isArray(e)){let t=[];for(let r of e)t.push(...c(r));return t}return c(e)}(t);if(1!==s.length){let t=s.map(t=>n(e,t,r));return(0,i.vE)(t)}return n(e,s[0],r)}},14012(e,t,r){r.d(t,{iS:()=>w,wB:()=>N,Cn:()=>k});var i=r(98291),n=r(36563),s=r(4718),o=r(93687);class a extends o.A{constructor(){super(...arguments),this._set=new Set}destroy(){super.destroy(),this._set=null}acquire(...e){let t=super.acquire(...e);return this._set.delete(t),t}release(e){e&&!this._set.has(e)&&(super.release(e),this._set.add(e))}_dispose(e){this._set.delete(e),super._dispose(e)}}var l=r(76030),u=r(24326),c=r(16649),h=r(85537),f=r(80559),d=r(88620);class p{constructor(){this.uid=(0,u.c)(),this.removed=!1,this.type=null,this.oldValue=null,this.callback=null,this.getValue=null,this.target=null,this.path=null,this.equals=null}static{this.pool=new a(()=>new p)}static acquireUntracked(e,t,r,i,n){return this.pool.acquire(0,e,t,r,i,n,s.aI)}static acquireTracked(e,t,r,i){return this.pool.acquire(1,e,t,r,null,null,i)}notify(e,t){0===this.type?this.callback.call(this.target,e,t,this.path,this.target):this.callback.call(null,e,t,void 0,void 0)}acquire(e,t,r,i,n,s,o){this.uid=(0,u.c)(),this.removed=!1,this.type=e,this.oldValue=t,this.callback=r,this.getValue=i,this.target=n,this.path=s,this.equals=o}release(){this.target=this.path=this.oldValue=this.callback=this.getValue=null,this.uid=(0,u.c)(),this.removed=!0}}const y=new i.A,g=new Set;let _;function v(e){g.delete(e),g.add(e),_||=(0,l._)(b)}function m(e){if(e.removed)return;let t=e.oldValue,r=e.getValue();e.equals(t,r)||(e.oldValue=r,e.notify(r,t))}function w(e){for(let t of g.values())t.target===e&&(t.removed=!0)}function b(){let e=10;for(;_&&e--;){_=null;let e=A(),t=y.acquire();for(let r of e){let e=r.uid;m(r),e===r.uid&&r.removed&&t.push(r)}for(let e of g)e.removed&&(t.push(e),g.delete(e));for(let e of t)p.pool.release(e);y.release(t),y.release(e),O.forEach(e=>e())}}function A(){let e=y.acquire();e.length=g.size;let t=0;for(let r of g)e[t]=r,++t;return g.clear(),e}const O=new Set;function N(e,t,r,i=!1){return e.__accessor__&&e.__accessor__.lifecycle!==h.v.DESTROYED?i?function(e,t,r){let i=(0,d.qg)(e,t,r,(e,t,r)=>{let n=!1;return(0,f.mJ)(()=>(0,c.RP)(e,t),(o,a)=>{e.__accessor__.lifecycle===h.v.DESTROYED?i.remove():n||=(n=!0,(0,s.aI)(a,o)||r.call(e,o,a,t,e),!1)})});return i}(e,t,r):function(e,t,r){let i=(0,d.qg)(e,t,r,(e,t,r)=>{let s,o,a=(0,f.Df)(()=>(0,c.RP)(e,t),(n,a)=>{e.__accessor__?.lifecycle===h.v.DESTROYED||s&&s.uid!==o?i.remove():(s||(s=p.acquireUntracked(n,r,a,e,t),o=s.uid),v(s))});return(0,n.hA)(()=>{a.remove(),s&&=(s.uid===o&&!s.removed&&(s.removed=!0,v(s)),null),i=a=null})});return i}(e,t,r):(0,n.hA)()}function k(e,t,r=!1,i=s.gh){return r?function(e,t,r){let i=!1;return(0,f.mJ)(e,(e,n)=>{i||=(i=!0,r(n,e)||t(e,n),!1)})}(e,t,i):function(e,t,r){let i,s,o=(0,f.Df)(e,(e,n)=>{i&&i.uid!==s?o.remove():(i||(i=p.acquireTracked(e,t,n,r),s=i.uid),v(i))});return(0,n.hA)(()=>{o.remove(),i&&=(i.uid===s&&!i.removed&&(i.removed=!0,v(i)),null),o=null})}(e,t,i)}},49422(e,t,r){r.d(t,{M:()=>d,R:()=>f});var i=r(4576),n=r(49186),s=r(53966),o=r(16649),a=r(35666),l=r(88620),u=r(7142);function c(e,t,r,i,n){let s={};return t.write?.writer?.call(e,i,s,r,n),s}function h(e,t,r,l,u,c){if(!l?.write)return!1;let h=(0,o.Jt)(e,r);if(!u&&l.write.overridePolicy){let t=l.write.overridePolicy.call(e,h,r,c??void 0);void 0!==t&&(u=t)}if(u||=l.write,!u||!1===u.enabled||u.layerContainerTypes&&c?.layerContainerType&&!u.layerContainerTypes.includes(c.layerContainerType))return!1;if((null===h&&!u.allowNull&&!u.writerEnsuresNonNull||void 0===h)&&u.isRequired){let t=new n.A("web-document-write:property-required",`Missing value for required property '${r}' on '${e.declaredClass}'`,{propertyName:r,target:e});return t&&c?.messages?c.messages.push(t):t&&!c&&s.A.getLogger("esri.core.accessorSupport.write").error(t.name,t.message),!1}return!(void 0===h||null===h&&!u.allowNull&&!u.writerEnsuresNonNull||!u.alwaysWriteDefaults&&(!t.store.multipleOriginsSupported||0===t.store.originOf(r))&&function(e,t,r,n,s){let o=n.default;if(void 0===o)return!1;if(null!=n.defaultEquals)return n.defaultEquals(s);if("function"==typeof o){if(Array.isArray(s)){let n=o.call(e,t,r??void 0);return(0,i.aI)(n,s)}return!1}return o===s}(e,r,c,l,h)||!u.ignoreOrigin&&c?.origin&&t.store.multipleOriginsSupported&&t.store.originOf(r)<(0,a.aB)(c.origin))}function f(e,t,r,i){let n=(0,l.oY)(e),s=n.metadata,o=(0,u.k4)(s[t],i);return!!o&&h(e,n,t,o,r,i)}function d(e,t,r){if(e&&"function"==typeof e.toJSON&&(!e.toJSON.isDefaultToJSON||!e.write))return(0,l.h1)(t,e.toJSON(r));let i=(0,l.oY)(e),n=i.metadata;for(let s in n){let f=(0,u.k4)(n[s],r);if(!h(e,i,s,f,void 0,r))continue;let d=(0,o.Jt)(e,s),p=c(e,f,f.write&&"string"==typeof f.write.target?f.write.target:s,d,r);Object.keys(p).length>0&&(t=(0,l.h1)(t,p),r?.resources?.pendingOperations?.length&&r.resources.pendingOperations.push(Promise.all(r.resources.pendingOperations).then(()=>(0,l.h1)(t,p,()=>"replace-arrays"))),r?.writtenProperties&&r.writtenProperties.push({target:e,propName:s,oldOrigin:(0,a.in)(i.store.originOf(s)),newOrigin:r.origin}))}return t}},5479(e,t,r){function i(e){let t=[];return function*(){yield*t;let r,i=t.length;for(;!(r=e.next()).done;)for(t.push(r.value),yield r.value;++i<t.length;)yield t[i]}}r.d(t,{I6:()=>o,N5:()=>s,PP:()=>i,xZ:()=>l,zN:()=>a});const n=Object.freeze({done:!0,value:void 0});function s(e){let t=[],r=null,i=null,s=!1;async function o(){if(s)return n;if(null!=i)return i;i=e.next();try{let e=await i;return i=null,e.done?(s=!0,n):(t.push(e.value),e)}catch(e){throw s=!0,i=null,r=e,e}}return async function*(){yield*t;let e,i=t.length;for(;!(e=await o()).done;)for(yield e.value;++i<t.length;)yield t[i];if(null!=r)throw r}}function o(e,t){for(let r of e)if(null!=r&&t(r))return r}function a(e,t){for(let r of e)if(t(r))return!0;return!1}function l(e){return null!=e&&"function"==typeof e[Symbol.iterator]}},66552(e,t,r){r.d(t,{J:()=>n,O:()=>o});var i=r(93637);class n{constructor(e,t={ignoreUnknown:!1,useNumericKeys:!1}){this._jsonToAPI=e,this._options=t,this.apiValues=[],this.jsonValues=[],this._apiToJSON=function(e){let t={};for(let r in e)t[e[r]]=r;return t}(e),this.apiValues=s(this._apiToJSON),this.jsonValues=s(this._jsonToAPI),this.read=e=>this.fromJSON(e),this.write=(e,t,r)=>{let n=this.toJSON(e);void 0!==n&&(0,i.sM)(r,n,t)},this.write.isJSONMapWriter=!0}toJSON(e){if(null==e)return null;if(this._apiToJSON.hasOwnProperty(e)){let t=this._apiToJSON[e];return this._options.useNumericKeys?+t:t}return this._options.ignoreUnknown?null:e}fromJSON(e){return null!=e&&this._jsonToAPI.hasOwnProperty(e)?this._jsonToAPI[e]:this._options.ignoreUnknown?void 0:e}}function s(e){let t=[];for(let r in e)t.push(r);return t.sort(),t}function o(){return function(e,t){return new n(e,{ignoreUnknown:!0,...t})}}},26390(e,t,r){r.d(t,{d:()=>n});const i=[];function n(e){i.push(e),1===i.length&&queueMicrotask(()=>{let e=i.slice();i.length=0;for(let t of e)t()})}},76030(e,t,r){r.d(t,{_:()=>g,$m:()=>O,md:()=>A});var i=r(26390);function n(e,t,r,i,n){console.timeStamp(e,t,r,n,i)}class s{constructor(e,t=30){this.name=e,this._counter=0,this._samples=Array(t)}push(e){null!=e&&(this._samples[++this._counter%this._samples.length]=e)}set(e){null!=e&&(this._samples[this._counter%this._samples.length]=e)}get median(){return this._samples.slice().sort((e,t)=>e-t)[Math.floor(this._samples.length/2)]}get average(){return this._samples.reduce((e,t)=>e+t,0)/this._samples.length}get last(){return this._samples[this._counter%this._samples.length]}}var o=r(15142),a=r(17676),l=r(78659);class u{constructor(e){this.callback=e,this.isActive=!0}remove(){this.isActive=!1}}let c=0;const h={time:(0,l.l5)(0),deltaTime:(0,l.l5)(0),elapsedFrameTime:(0,l.l5)(0),frameDuration:(0,l.l5)(0)},f=["prepare","preRender","render","postRender","update","finish"],d=[],p=new o.A,y={frameTasks:p,willDispatch:!1,clearFrameTasks:function(e=!1){p.forAll(e=>{e.removed=!0}),e&&w()},dispatch:b,executeFrameTasks:function(e){let t=(0,l.l5)(e-c);c=e;let r=1e3/60,i=Math.max(0,t-r);h.time=e,h.frameDuration=(0,l.l5)(r-i);for(let r=0;r<f.length;r++){let i=performance.now(),s=f[r];p.forAll(i=>{i.paused||i.removed||(0===r&&i.ticks++,!i.phases[s])||(h.elapsedFrameTime=(0,l.l5)(performance.now()-e),h.deltaTime=0===i.ticks?(0,l.l5)(0):t,i.phases[s]?.call(i,h))});let o=performance.now();N[r].push(o-i),n(s,i,o,"Maps SDK","Scheduling")}w();let s=performance.now();k.push(s-e),n("Animation Frame",e,s,"Maps SDK","Scheduling")},reschedule:function(){null!=_&&(cancelAnimationFrame(_),_=requestAnimationFrame(v))}};function g(e){let t=new u(e);return d.push(t),y.willDispatch||(y.willDispatch=!0,(0,i.d)(b)),t}let _=null;function v(){let e=performance.now();_=null,_=p.some(e=>!e.paused&&!e.removed)?requestAnimationFrame(v):null,y.executeFrameTasks(e)}const m=new o.A;function w(){p.forAll(e=>{e.removed&&m.push(e)}),p.removeUnorderedMany(m.data,m.length),m.clear()}function b(){for(;d.length;){let e=d.shift();e.isActive&&e.callback()}y.willDispatch=!1}function A(e=1,t){let r=Promise.withResolvers(),n=()=>{(0,a.G4)(t)?r.reject((0,a.NK)()):0===e?r.resolve():(--e,(0,i.d)(()=>n()))};return n(),r.promise}async function O(e){await function(e){return A(1,e)}(e),await new Promise(t=>requestAnimationFrame(()=>{e?.aborted||t()}))}const N=f.map(e=>new s(e)),k=new s("total")},78659(e,t,r){function i(e){return e}function n(e){return 1e3*e}function s(e){return e}r.d(t,{Kp:()=>s,gr:()=>n,l5:()=>i})},24326(e,t,r){r.d(t,{c:()=>n});let i=0;function n(){return++i}},59923(e,t,r){r.d(t,{GL:()=>h,U4:()=>a,Yc:()=>c,bA:()=>u,qt:()=>l});var i=r(49186),n=r(67076);const s=["layer","property","renderer","symbol","symbol-layer","url","visual-variable","type","elevation-profile-line","field-configuration-field-format","parquet-data"].map(e=>`${e}:unsupported`),o=new Set(s);function a(e,t,r){if(!e)return;let i=`${e.origin}/${e.layerContainerType||"operational-layers"}`;e?.messages?.push(h("layer",`Layer (${t.title}, ${t.id}) of type '${t.declaredClass}' is not supported in the context of '${i}'${r?`: ${r}`:""}`,{layer:t}))}function l(e,t,r){if(!e)return;let i=`${e.origin}/${e.layerContainerType||"operational-layers"}`;e?.messages?.push(h("property",`Property '${t}' is not supported in the context of '${i}'${r?`: ${r}`:""}`))}function u(e,t,r,i){if(!e)return;let n=`${e.origin}/${e.layerContainerType||"operational-layers"}`;e?.messages?.push(h("symbol",`Symbol '${t.declaredClass}' is not supported in the context of '${n}'${r?`: ${r}`:""}`,i))}function c(e,t,r,s,o){e&&e?.messages?.push(f("warning"===t?n.A:i.A,r,s,o))}function h(e,t,r){return f(i.A,e,t,r)}function f(e,t,r,i){return new e(`${t}:unsupported`,r,i)}r.d(t,["MG",0,o])}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4690],{19334(t,e,i){i.d(e,{e:()=>h});var s=i(54639),n=i(14112);class r{constructor(t){this._geometry=t}toJsonGeometry(){return this._geometry.toJSON()}toAccessorGeometry(t){return this._geometry}toGxGeometry(t){return t.fromAccessorGeometry(this._geometry)}}function h(t){if(null==t)return null;switch(t.type){case"point":if((0,n.e6)(t))return null;break;case"polygon":if((0,n.Wq)(t))return null;break;case"polyline":if((0,n.IY)(t))return null;break;case"multipoint":if((0,n.DG)(t))return null;break;case"extent":if((0,n.As)(t))return null;break;default:return null}let e=s.R.of(t.type,t.spatialReference,t.hasZ,t.hasM,new r(t));return e.asAccessorGeometry(),e}},36983(t,e,i){i.d(e,{R:()=>o,p:()=>u});var s=i(54639),n=i(14112),r=i(16930),h=i(60408),a=i(65864);class l{constructor(t){this._geometry=t}toJsonGeometry(){return this._geometry}toAccessorGeometry(t){let e=(0,a.rS)(this._geometry);return e.spatialReference=t,e}toGxGeometry(t){return t.fromJsonGeometry(this._geometry)}}function o(t,e){if("object"!=typeof t||!t)return null;let i=e;if("spatialReference"in t&&(t.spatialReference instanceof r.A?i=t.spatialReference:"object"==typeof t.spatialReference&&null!=t.spatialReference&&(i=new r.A,i.read(t.spatialReference))),null==i)throw Error("Spatial reference required");return(0,h.fT)(t)?u("point",t,i):(0,h.Rg)(t)?u("polyline",t,i):(0,h.Bi)(t)?u("polygon",t,i):(0,h.U9)(t)?u("multipoint",t,i):(0,h.ZC)(t)?u("extent",t,i):null}function u(t,e,i){if(null==e)return null;let r=!1,h=!1;switch(t){case"point":if((0,n.e6)(e))return null;r=void 0!==e.z,h=void 0!==e.m;break;case"polygon":if((0,n.Wq)(e))return null;r=!0===e.hasZ,h=!0===e.hasM;break;case"polyline":if((0,n.IY)(e))return null;r=!0===e.hasZ,h=!0===e.hasM;break;case"multipoint":if((0,n.DG)(e))return null;r=!0===e.hasZ,h=!0===e.hasM;break;case"extent":if((0,n.As)(e))return null;r=null!=e.zmin&&null!=e.zmax,h=null!=e.mmin&&null!=e.mmax;break;default:throw Error("Unsupported geometry type: "+e.type)}return s.R.of(t,i,r,h,new l(e))}},14112(t,e,i){function s(t){return"NaN"===t.x||null===t.x||isNaN(t.x)}function n(t){if(0===(t.curveRings??t.rings).length)return!0;for(let e of t.curveRings??t.rings)if(e.length>0)return!1;return!0}function r(t){if(0===(t.curvePaths??t.paths).length)return!0;for(let e of t.curvePaths??t.paths)if(e.length>0)return!1;return!0}function h(t){return 0===t.points.length}function a(t){return"NaN"===t.xmin||null===t.xmin||isNaN(t.xmin)}i.d(e,{As:()=>a,DG:()=>h,IY:()=>r,Wq:()=>n,e6:()=>s})},57582(t,e,i){i.d(e,{af:()=>n,rK:()=>r}),i(92602);const s="arial-unicode-ms";function n(t){if(!t)return s;let e=t.toLowerCase().split(" ").join("-");switch(e){case"serif":return"noto-serif";case"sans-serif":return"arial-unicode-ms";case"monospace":return"ubuntu-mono";case"fantasy":return"cabin-sketch";case"cursive":return"redressed";default:return e}}function r(t){let e=function(t){if(!t.weight)return"";switch(t.weight.toLowerCase()){case"bold":case"bolder":return"-bold"}return""}(t)+function(t){if(!t.style)return"";switch(t.style.toLowerCase()){case"italic":case"oblique":return"-italic"}return""}(t);return n(t.family)+(e.length>0?e:"-regular")}new Map,new Set,i.d(e,["Vb",0,s])},85560(t,e,i){function s(){let t=new Float32Array(6);return t[0]=1,t[3]=1,t}function n(t,e,i,s){let n=e[s],r=e[s+1];t[s]=i[0]*n+i[2]*r+i[4],t[s+1]=i[1]*n+i[3]*r+i[5]}i.d(e,{vt:()=>s}),Object.freeze(Object.defineProperty({__proto__:null,clone:function(t){let e=new Float32Array(6);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},create:s,fromValues:function(t,e,i,s,n,r){let h=new Float32Array(6);return h[0]=t,h[1]=e,h[2]=i,h[3]=s,h[4]=n,h[5]=r,h},transform:n,transformMany:function(t,e,i,s=0,r=0,h=2){let a=r||e.length/h;for(let r=s;r<a;r++)n(t,e,i,r*h)}},Symbol.toStringTag,{value:"Module"}))},88340(t,e,i){function s(){return new Float32Array(2)}function n(t,e){let i=new Float32Array(2);return i[0]=t,i[1]=e,i}function r(){return s()}function h(){return n(1,1)}function a(){return n(1,0)}function l(){return n(0,1)}i.d(e,{fA:()=>n,vt:()=>s});const o=r(),u=h(),c=a(),_=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:u,UNIT_X:c,UNIT_Y:_,ZEROS:o,clone:function(t){let e=new Float32Array(2);return e[0]=t[0],e[1]=t[1],e},create:s,fromValues:n,ones:h,unitX:a,unitY:l,zeros:r},Symbol.toStringTag,{value:"Module"})),i.d(e,["Un",0,u,"uY",0,o])},16905(t,e,i){i.d(e,{$0:()=>o,B8:()=>r,D_:()=>n,Tl:()=>l,e$:()=>a,lw:()=>h});var s=i(34304);function n(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function r(t,e){let i=e[0],s=e[1],n=e[2],r=e[3],h=e[4],a=e[5],l=i*r-s*n;return l?(l=1/l,t[0]=r*l,t[1]=-s*l,t[2]=-n*l,t[3]=i*l,t[4]=(n*a-r*h)*l,t[5]=(s*h-i*a)*l,t):null}function h(t,e,i){let s=e[0],n=e[1],r=e[2],h=e[3],a=e[4],l=e[5],o=i[0],u=i[1],c=i[2],_=i[3],p=i[4],f=i[5];return t[0]=s*o+r*u,t[1]=n*o+h*u,t[2]=s*c+r*_,t[3]=n*c+h*_,t[4]=s*p+r*f+a,t[5]=n*p+h*f+l,t}function a(t,e,i){let s=e[0],n=e[1],r=e[2],h=e[3],a=e[4],l=e[5],o=Math.sin(i),u=Math.cos(i);return t[0]=s*u+r*o,t[1]=n*u+h*o,t[2]=s*-o+r*u,t[3]=n*-o+h*u,t[4]=a,t[5]=l,t}function l(t,e,i){let s=e[0],n=e[1],r=e[2],h=e[3],a=e[4],l=e[5],o=i[0],u=i[1];return t[0]=s,t[1]=n,t[2]=r,t[3]=h,t[4]=s*o+r*u+a,t[5]=n*o+h*u+l,t}function o(t,e){let i=Math.sin(e),s=Math.cos(e);return t[0]=s,t[1]=i,t[2]=-i,t[3]=s,t[4]=0,t[5]=0,t}function u(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t[2]=e[2]-i[2],t[3]=e[3]-i[3],t[4]=e[4]-i[4],t[5]=e[5]-i[5],t}const c=h,_=u;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t[2]=e[2]+i[2],t[3]=e[3]+i[3],t[4]=e[4]+i[4],t[5]=e[5]+i[5],t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t},determinant:function(t){return t[0]*t[3]-t[1]*t[2]},equals:function(t,e){let i=t[0],n=t[1],r=t[2],h=t[3],a=t[4],l=t[5],o=e[0],u=e[1],c=e[2],_=e[3],p=e[4],f=e[5],m=(0,s.FD)();return Math.abs(i-o)<=m*Math.max(1,Math.abs(i),Math.abs(o))&&Math.abs(n-u)<=m*Math.max(1,Math.abs(n),Math.abs(u))&&Math.abs(r-c)<=m*Math.max(1,Math.abs(r),Math.abs(c))&&Math.abs(h-_)<=m*Math.max(1,Math.abs(h),Math.abs(_))&&Math.abs(a-p)<=m*Math.max(1,Math.abs(a),Math.abs(p))&&Math.abs(l-f)<=m*Math.max(1,Math.abs(l),Math.abs(f))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+1)},fromRotation:o,fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t[4]=0,t[5]=0,t},fromTranslation:function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=e[0],t[5]=e[1],t},identity:n,invert:r,mul:c,multiply:h,multiplyScalar:function(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t[3]=e[3]*i,t[4]=e[4]*i,t[5]=e[5]*i,t},multiplyScalarAndAdd:function(t,e,i,s){return t[0]=e[0]+i[0]*s,t[1]=e[1]+i[1]*s,t[2]=e[2]+i[2]*s,t[3]=e[3]+i[3]*s,t[4]=e[4]+i[4]*s,t[5]=e[5]+i[5]*s,t},rotate:a,scale:function(t,e,i){let s=e[0],n=e[1],r=e[2],h=e[3],a=e[4],l=e[5],o=i[0],u=i[1];return t[0]=s*o,t[1]=n*o,t[2]=r*u,t[3]=h*u,t[4]=a,t[5]=l,t},set:function(t,e,i,s,n,r,h){return t[0]=e,t[1]=i,t[2]=s,t[3]=n,t[4]=r,t[5]=h,t},str:function(t){return"mat2d("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+")"},sub:_,subtract:u,translate:l},Symbol.toStringTag,{value:"Module"}))},36745(t,e,i){i.d(e,{z:()=>a});var s=i(4718),n=i(51118),r=i(60408),h=i(92722);class a{static fromOptimized(t,e,i=1){return(new l).initialize(t,e,i)}static fromJSON(t){let[e,i]=u(t),s=(0,r.Pv)(t),n=(0,r.W0)(t);return(new c).initialize(e,i,s,n,1)}static fromOptimizedCIM(t,e,i=1){return(new _).initialize(t,e,i)}static fromJSONCIM(t,e=1){let[i,s]=u(t),n=(0,r.Pv)(t),h=(0,r.W0)(t);return(new p).initialize(i,s,n,h,e)}static fromFeatureSetReader(t){let e=t.readGeometryForDisplay(),i=t.geometryType;return e&&i?this.fromOptimized(e,i):null}static fromFeatureSetReaderCIM(t){let e=t.readGeometryForDisplay(),i=t.geometryType;return e&&i?this.fromOptimizedCIM(e,i):null}static createEmptyOptimized(t,e=!1,i=!1,s=1){return(new _).initialize(new h.A([],[],e,i),t,s)}static createEmptyJSON(t,e=!1,i=!1){return(new c).initialize([],t,e,i,1)}static createEmptyOptimizedCIM(t,e=!1,i=!1,s=1){return(new _).initialize(new h.A([],[],e,i),t,s)}static createEmptyJSONCIM(t,e=!1,i=!1,s=1){return(new p).initialize([],t,e,i,s)}asJSON(){let t=(0,n.x)(this),{hasZ:e,hasM:i}=this;return"esriGeometryEnvelope"===this.geometryType?{xmin:t[0][0][0],ymin:t[0][0][1],xmax:t[0][2][0],ymax:t[0][2][1]}:"esriGeometryMultipoint"===this.geometryType?{points:t.flat(),hasZ:e,hasM:i}:"esriGeometryPoint"===this.geometryType?{x:t[0][0][0],y:t[0][0][1],z:e?t[0][0][2]:void 0,m:i?t[0][0][e?3:2]:void 0}:"esriGeometryPolygon"===this.geometryType?{rings:t,hasZ:e,hasM:i}:{paths:t,hasZ:e,hasM:i}}getCurrentRingArea(){if(this.pathSize<3)return 0;let t,e,i=0;if(this.seekPathStart(),!this.nextPoint())return 0;t=this.x,e=this.y;let s=t,n=e;for(;this.nextPoint();)i+=(t-this.x)*(e+this.y),t=this.x,e=this.y;return i+=(t-s)*(e+n),-.5*i}invertY(){this.yFactor*=-1}}class l extends a{constructor(){super(...arguments),this._end=-1}get hasZ(){return this._geometry?.hasZ}get hasM(){return this._geometry?.hasM}initialize(t,e,i){return this.geometryType=e,this._stride=t.stride,this._geometry=t,this._pathIndex=-1,this._pathOffset=0,this._pointOffset=-this._stride,this._end=-1,this.yFactor=i,this}reset(){this.initialize(this._geometry,this.geometryType,this.yFactor)}seekPath(t){if(t>=0&&t<this.totalSize){if(this._pathIndex<t)for(;this._pathIndex<t&&this.nextPath(););else if(this._pathIndex>t)for(;this._pathIndex>t&&this.prevPath(););return!0}return!1}seekPathStart(){this._pointOffset=this._pathOffset-this._stride}seekPathEnd(){this._pointOffset=this._end}seekInPath(t){let e=this._pathOffset+t*this._stride;return e>=0&&e<this._end&&(this._pointOffset=e,!0)}nextPoint(){return(this._pointOffset+=this._stride)<this._end}prevPoint(){return(this._pointOffset-=this._stride)>=this._pathOffset}nextPath(){return!(this.pathIndex>=this.totalSize-1||(this._pathIndex>=0&&(this._pathOffset+=this._stride*this.pathSize),this._pathIndex++,this._pointOffset=this._pathOffset-this._stride,this._end=this._pointOffset+this._stride+this._stride*this.pathSize,0))}prevPath(){return!(this.pathIndex<=0||(this._pathIndex--,this._end=this._pathOffset,this._pathOffset-=this._stride*this.pathSize,this._pointOffset=this._pathOffset-this._stride,0))}getCurrentPath(){let t=this._end,e=this._geometry.coords,i=this._pathOffset;return(new l).initialize(new h.A([this.pathSize],e.slice(i,t),this.hasZ,this.hasM),this.geometryType,this.yFactor)}pathLength(){let t=this._end,e=this._stride,i=this._geometry.coords,s=0;for(let n=this._pathOffset+e;n<t;n+=e){let t=i[n-e],r=i[n-e+1],h=i[n]-t,a=i[n+1]-r;s+=Math.sqrt(h*h+a*a)}return s}startPath(){this._geometry.lengths.push(0)}pushPath(t){this.startPath(),this.pushPoints(t)}pushPoint(t){for(let e=0;e<this._stride;++e)this._geometry.coords.push(t[e]);this._geometry.lengths[this.totalSize-1]++}pushXY(t,e){this._geometry.coords.push(t,e),this._geometry.lengths[this.totalSize-1]++}pushPoints(t){for(let e of t)for(let t=0;t<this._stride;++t)this._geometry.coords.push(e[t]);this._geometry.lengths[this.totalSize-1]+=t.length}pushCursor(t){let e=t.asOptimized();this._geometry.coords.push(...e.coords),this._geometry.lengths.push(...e.lengths)}asOptimized(){let t=this._geometry.clone();if(1!==this.yFactor)for(let e=1;e<t.coords.length;e+=this._stride)t.coords[e]*=this.yFactor;return"esriGeometryPoint"===this.geometryType&&(t.lengths.length=0),t}isClosed(){let t=this._geometry.coords,e=this._pathOffset,i=this._end-this._stride;for(let s=0;s<this._stride;s++)if(t[e+s]!==t[i+s])return!1;return!0}clone(){return(new l).initialize(this._geometry.clone(),this.geometryType,this.yFactor)}get totalPoints(){return this._geometry.isPoint?1:this._geometry.lengths.reduce((t,e)=>t+e)}get pathSize(){let{lengths:t}=this._geometry;return this._geometry.isPoint?1:this._pathIndex<0||this._pathIndex>t.length-1?0:t[this._pathIndex]}get totalSize(){return this._geometry.isPoint?1:this._geometry.lengths.length}get x(){return this._geometry.coords[this._pointOffset]}set x(t){this._geometry.coords[this._pointOffset]=t}get y(){return this.yFactor*this._geometry.coords[this._pointOffset+1]}set y(t){this._geometry.coords[this._pointOffset+1]=this.yFactor*t}get z(){return this._geometry.coords[this._pointOffset+2]}set z(t){this._geometry.coords[this._pointOffset+2]=t}get m(){let t=this.hasZ?3:2;return this._geometry.coords[this._pointOffset+t]}set m(t){this._geometry.coords[this._pointOffset+3]=t}get pathIndex(){return this._pathIndex}get _coordIndex(){return this._pointOffset/this._stride}}function o(t){let e=[t.x,t.y];return t.z&&e.push(t.z),t.m&&e.push(t.m),e}function u(t){return(0,r.Bi)(t)?[t.rings,"esriGeometryPolygon"]:(0,r.Rg)(t)?[t.paths,"esriGeometryPolyline"]:(0,r.U9)(t)?[[t.points],"esriGeometryMultipoint"]:(0,r.ZC)(t)?[[[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]],"esriGeometryEnvelope"]:(0,r.fT)(t)?[[[o(t)]],"esriGeometryPoint"]:[[],"esriGeometryPolyline"]}class c extends a{initialize(t,e,i,s,n){return this._paths=t,this.geometryType=e,this.hasZ=i,this.hasM=s,this._pathIndex=this._pointIndex=-1,this.yFactor=n,this._mIndex=this.hasZ?3:2,this}reset(){this._pathIndex=this._pointIndex=-1}seekPath(t){return this._pathIndex=t,this._pointIndex=-1,t>=0&&t<this.totalSize&&(this._currentPath=this._paths[t],!0)}seekPathStart(){this._pointIndex=-1}seekPathEnd(){this._pointIndex=this._currentPath.length}seekInPath(t){return t>=0&&t<this._currentPath.length&&(this._pointIndex=t,this._currentPoint=this._currentPath[this._pointIndex],!0)}nextPoint(){return this._currentPoint=this._currentPath[++this._pointIndex],this._pointIndex<this._currentPath.length}prevPoint(){return this._currentPoint=this._currentPath[--this._pointIndex],this._pointIndex>=0}nextPath(){return this._pointIndex=-1,this._currentPath=this._paths[++this._pathIndex],this._pathIndex<this.totalSize}prevPath(){return this.pathIndex>0&&(this._pointIndex=-1,this._pathIndex--,this._currentPath=this._paths[this._pathIndex],!0)}pathLength(){let t=this._currentPath.length,e=this._currentPath,i=0;for(let s=1;s<t;s++){let t=e[s-1],n=e[s],r=t[0],h=t[1],a=n[0]-r,l=n[1]-h;i+=Math.sqrt(a*a+l*l)}return i}startPath(){this._paths.push([])}getCurrentPath(){return(new c).initialize([this._currentPath],this.geometryType,this.hasZ,this.hasM,this.yFactor)}pushPath(t){this._paths.push(t)}pushPoint(t){this._paths[this.totalSize-1].push(t)}pushXY(t,e){this._paths[this.totalSize-1].push([t,e])}pushPoints(t){this._paths[this.totalSize-1].push(...t)}pushCursor(t){let e=(0,n.x)(t);for(let t of e)this.pushPath(t)}asOptimized(){let{hasZ:t,hasM:e}=this,i=new h.A([],[],t,e),{coords:s,lengths:n}=i;if("esriGeometryPoint"===this.geometryType)s.push(...this._paths[0][0]),n.length=0;else for(let i of this._paths){for(let n of i)s.push(n[0]),s.push(n[1]*this.yFactor),t&&s.push(n[2]),e&&s.push(n[this._mIndex]);n.push(i.length)}return i}isClosed(){let t=this._currentPath[0],e=this._currentPath[this._currentPath.length-1];for(let i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}clone(){return(new c).initialize((0,s.o8)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}get totalPoints(){return this._paths.map(t=>t.length).reduce((t,e)=>t+e)}get pathSize(){return this._pathIndex<0||this._pathIndex>this.totalSize-1?-1:this._paths[this._pathIndex].length}get totalSize(){return this._paths.length}get x(){return this._currentPoint[0]}set x(t){this._currentPoint[0]=t}get y(){return this.yFactor*this._currentPoint[1]}set y(t){this._currentPoint[1]=this.yFactor*t}get z(){return this._currentPoint[2]}set z(t){this._currentPoint[2]=t}get m(){return this._currentPoint[this._mIndex]}set m(t){this._currentPoint[this._mIndex]=t}get pathIndex(){return this._pathIndex}}class _ extends l{initialize(t,e,i){return super.initialize(t,e,i),this._controlPoints||=this._controlPoints=Array(this.totalSize).fill(void 0).map(t=>new Set),this}startPath(){super.startPath(),this._controlPoints.push(new Set)}clone(){let t=(new _).initialize(this._geometry.clone(),this.geometryType,this.yFactor);return t._controlPoints=this._controlPoints,t}setControlPoint(){this._controlPoints[this.pathIndex].add(this._coordIndex)}getControlPoint(){return this._controlPoints[this.pathIndex].has(this._coordIndex)}setControlPointAt(t){this._controlPoints[this.pathIndex].add(t)}getControlPointAt(t){return this._controlPoints[this.pathIndex].has(t)}}class p extends c{initialize(t,e,i,s,n){return super.initialize(t,e,i,s,n)}clone(){return(new p).initialize((0,s.o8)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}setControlPoint(){this._paths[this.pathIndex][this._pointIndex][4]=1}getControlPoint(){return 1===this._paths[this.pathIndex][this._pointIndex][4]}setControlPointAt(t){this._paths[this.pathIndex][t][4]=1}getControlPointAt(t){return 1===this._paths[this.pathIndex][t][4]}}},78957(t,e,i){i.d(e,{d:()=>u,R:()=>M});class s{constructor(t=n){this._data=[],this._compare=t}get size(){return this._data.length}enqueue(t){if(null==t)return;let{_data:e,_compare:i}=this;e.push(t);let s=e.length-1>>>0,n=e[s];for(;s>0;){let t=s-1>>1,r=e[t];if(!(i(r,n)<=0))break;e[t]=n,e[s]=r,s=t}}dequeue(){let{_data:t,_compare:e}=this,i=t[0],s=t.pop();if(0===t.length)return i;t[0]=s;let n,r,h=0,a=t.length,l=t[0],o=null;for(;;){let i=2*h+1,s=2*h+2;if(o=null,i<a&&(n=t[i],e(n,l)>0&&(o=i)),s<a&&(r=t[s],(null===o&&e(r,l)<=0||null!==o&&e(r,n)<=0)&&(o=s)),null===o)break;t[h]=t[o],t[o]=l,h=o}return i}}const n=(t,e)=>t<e?-1:+(t>e);var r=i(19419),h=i(537),a=i(12359),l=i(95108),o=i(12176);function u(t){if(0===t.totalSize)return null;let e=(0,h.z8)(t);if(!e)return null;let i=4*(Math.abs(e[0])+Math.abs(e[2])+Math.abs(e[1])+Math.abs(e[3])+1)*222045e-19,s=0,n=0;t.reset();for(let e=0;t.nextPath();e++){let i=t.getCurrentRingArea();i>n&&(n=i,s=e)}if(t.seekPath(s),0===t.pathSize)return null;t.seekPathStart();let l=(0,h.B$)(t);if(Math.abs(n)<=2*i*i)return[(l[0]+l[2])/2,(l[1]+l[3])/2];t.seekPathStart();let o=(0,a.w2)(t,(0,r.vt)());if(null===o)return null;if(t.totalPoints<4)return o;let u=[[NaN,NaN],[NaN,NaN],[NaN,NaN],[NaN,NaN]],f=[NaN,NaN,NaN,NaN],m=[NaN,NaN,NaN,NaN],d=!1,P=_(o,t,!0);0===P.distance&&(d=!0,u[0][0]=o[0],u[0][1]=o[1],P=_(o,t,!1)),f[0]=P.distance,m[0]=0;let M=[NaN,NaN],b=!1,C=.25,v=-1,w=NaN;do{if(w=NaN,u[1]=p(t,g(l[0],l[2],C),0,e),!isNaN(u[1][0])&&!isNaN(u[1][1])&&(P=_(u[1],t,!1),w=P.distance),!isNaN(w)&&w>i&&c(u[1],t))b=!0,f[1]=w,m[1]=x(u[1],o);else if(!isNaN(w)&&w>v&&(v=w,M[0]=u[1][0],M[1]=u[1][1]),C-=.01,C<.1){if(!(v>=0))break;b=!0,f[1]=v,u[1][0]=M[0],u[1][1]=M[1],m[1]=x(u[1],o)}}while(!b);b=!1,C=.5,v=-1;let S=.01,I=1;do{if(w=NaN,u[2]=p(t,g(l[0],l[2],C),0,e),!isNaN(u[2][0])&&!isNaN(u[2][1])&&(P=_(u[2],t,!1),w=P.distance),!isNaN(w)&&w>i&&c(u[2],t))b=!0,f[2]=w,m[2]=x(u[2],o);else if(!isNaN(w)&&w>v)v=w,M[0]=u[2][0],M[1]=u[2][1];else if(w>v&&(v=w,M[0]=u[2][0],M[1]=u[2][1]),C=.5+S*I,S+=.01,I*=-1,C<.3||C>.7){if(!(v>=0))break;b=!0,f[2]=v,u[2][0]=M[0],u[2][1]=M[1],m[2]=x(u[2],o)}}while(!b);b=!1,C=.75,v=-1;do{if(w=NaN,u[3]=p(t,g(l[0],l[2],C),0,e),!isNaN(u[3][0])&&!isNaN(u[3][1])&&(P=_(u[3],t,!1),w=P.distance),!isNaN(w)&&w>i&&c(u[3],t))b=!0,f[3]=w,m[3]=x(u[3],o);else if(w>v&&(v=w,M[0]=u[3][0],M[1]=u[3][1]),C+=.01,C>.9){if(!(v>=0))break;b=!0,f[3]=v,u[3][0]=M[0],u[3][1]=M[1],m[3]=x(u[3],o)}}while(!b);let z,k=[0,1,2,3],A=+!d;for(let t=A;t<4;t++)for(let t=A;t<3;t++){let e=m[t],i=m[t+1];y(e,i)>0&&(z=k[t],k[t]=k[t+1],k[t+1]=z,m[t]=i,m[t+1]=e)}let T=A,E=0,G=0;for(let t=A;t<4;t++){switch(t){case 0:G=2*f[k[t]];break;case 1:G=1.66666666*f[k[t]];break;case 2:G=1.33333333*f[k[t]];break;case 3:G=f[k[t]]}G>E&&(E=G,T=k[t])}return u[T]}function c(t,e){let i,s,n,r,h=0;for(e.reset();e.nextPath()&&e.nextPoint();)for(i=e.x,s=e.y;e.nextPoint();i=n,s=r)n=e.x,r=e.y,s>t[1]!=r>t[1]&&((n-i)*(t[1]-s)-(r-s)*(t[0]-i)>0?h++:h--);return 0!==h}function _(t,e,i){if(i&&c(t,e))return{coord:t,distance:0};let s=1/0,n=0,r=0,h=[0,0],a=[0,0],o=[0,0];for(e.reset();e.nextPath()&&e.nextPoint();)if(!(e.pathSize<2))for(h[0]=e.x,h[1]=e.y;e.nextPoint();h=a){a=[e.x,e.y],(0,l.gR)(o,t,h,a);let i=x(t,o);i<s&&(s=i,n=o[0],r=o[1])}return{coord:[n,r],distance:Math.sqrt(s)}}function p(t,e,i,s){let n=[e,0],h=1/0,a=1/0,l=!1,u=!1,c=[[e,s[1]-1],[e,s[3]+1]],_=[0,0],p=[0,0],d=[0,0],g=[[0,0],[0,0]],x=(0,r.vt)();for(t.reset();t.nextPath()&&t.nextPoint();)if(!(t.pathSize<2))for(g[0][0]=t.x,g[0][1]=t.y;t.nextPoint();g[0][0]=g[1][0],g[0][1]=g[1][1]){if(g[1][0]=t.x,g[1][1]=t.y,null===f(x,g)||(p[0]=c[0][0],p[1]=c[0][1],d[0]=c[1][0],d[1]=c[1][1],0===m(x,p,d))||!(0,o.Ql)(c[0],c[1],g[0],g[1],_))continue;let e=_[1];h>a?e<h&&(h=e,l=!0):e<a&&(a=e,u=!0)}return l&&u?n[1]=(h+a)/2:n[0]=n[1]=NaN,n}function f(t,e){if(e.length<2)return null;t||=(0,r.vt)();let[i,s]=e[0],[n,h]=e[1];return t[0]=Math.min(i,n),t[1]=Math.min(s,h),t[2]=Math.max(i,n),t[3]=Math.max(s,h),t}function m(t,e,i){let s=d(e,t),n=d(i,t),r=t[0],h=t[1],a=t[2],l=t[3];if(s&n)return 0;if(!(s|n))return 4;let o=!!s|(n?2:0);do{let o=i[0]-e[0],u=i[1]-e[1];if(o>u)3&s?(1&s?(e[1]+=u*(r-e[0])/o,e[0]=r):(e[1]+=u*(a-e[0])/o,e[0]=a),s=d(e,t)):3&n?(1&n?(i[1]+=u*(r-i[0])/o,i[0]=r):(i[1]+=u*(a-i[0])/o,i[0]=a),n=d(i,t)):s?(4&s?(e[0]+=o*(h-e[1])/u,e[1]=h):(e[0]+=o*(l-e[1])/u,e[1]=l),s=d(e,t)):(4&n?(i[0]+=o*(h-i[1])/u,i[1]=h):(i[0]+=o*(l-i[1])/u,i[1]=l),n=d(i,t));else if(12&s?(4&s?(e[0]+=o*(h-e[1])/u,e[1]=h):(e[0]+=o*(l-e[1])/u,e[1]=l),s=d(e,t)):12&n?(4&n?(i[0]+=o*(h-i[1])/u,i[1]=h):(i[0]+=o*(l-i[1])/u,i[1]=l),n=d(i,t)):s?(1&s?(e[1]+=u*(r-e[0])/o,e[0]=r):(e[1]+=u*(a-e[0])/o,e[0]=a),s=d(e,t)):(1&n?(i[1]+=u*(r-i[0])/o,i[0]=r):(i[1]+=u*(a-i[0])/o,i[0]=a),n=d(i,t)),s&n)return 0}while(s|n);return o}function d(t,e){return+(t[0]<e[0])|(t[0]>e[2])<<1|(t[1]<e[1])<<2|(t[1]>e[3])<<3}function g(t,e,i){return t+(e-t)*i}function x(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function y(t,e){if(t<e)return-1;if(t>e)return 1;if(t===e)return 0;let i=isNaN(t),s=isNaN(e);return i<s?-1:+(i>s)}class P{constructor(t,e,i,s){this.x=t,this.y=e,this.cellSize=i,this.distancefromCellCenter=(0,l.Xf)(t,e,s),this.maxDistanceToPolygon=this.distancefromCellCenter+this.cellSize*Math.SQRT2}}function M(t){if(!t.nextPath()||!t.pathSize)return null;let e=(0,h.B$)(t),i=e[2]-e[0],n=e[3]-e[1];if(0===i||0===n)return[e[0]+i/2,e[1]+n/2];let r=Math.max(Math.min(i,n)/100,1),l=new s((t,e)=>e.maxDistanceToPolygon-t.maxDistanceToPolygon),o=Math.min(i,n),u=o/2,c=0,_=0;for(c=e[0];c<e[2];c+=o)for(_=e[1];_<e[3];_+=o)l.enqueue(new P(c+u,_+u,u,t));t.reset(),t.nextPath();let p=(0,a.IK)(t);if(null===p)return null;let f,m=new P(p[0],p[1],0,t);for(;l.size>0;)f=l.dequeue(),f.distancefromCellCenter>m.distancefromCellCenter&&(m=f),!(f.maxDistanceToPolygon-m.distancefromCellCenter<=r)&&(u=f.cellSize/2,l.enqueue(new P(f.x-u,f.y-u,u,t)),l.enqueue(new P(f.x+u,f.y-u,u,t)),l.enqueue(new P(f.x-u,f.y+u,u,t)),l.enqueue(new P(f.x+u,f.y+u,u,t)));return[m.x,m.y]}},35833(t,e,i){i.d(e,{ai:()=>d,g1:()=>g,kT:()=>x,qc:()=>y});var s=i(18370),n=i(36745),r=i(6774);const h=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(6870),i.e(1797)]).then(()=>i(46160))),a=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(6491)]).then(()=>i(55666))),l=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(8679)]).then(()=>i(51190))),o=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(837)]).then(()=>i(97528))),u=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(6870),i.e(3030)]).then(()=>i(50795))),c=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(6870),i.e(6936)]).then(()=>i(15605))),_=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(3456)]).then(()=>i(3637))),p=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(4790)]).then(()=>i(67520))),f=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(1948)]).then(()=>i(83299)));let m;function d(t){switch(t.type){case"CIMGeometricEffectDonut":case"CIMGeometricEffectBuffer":return h.getImportPromise();case"CIMGeometricEffectEnclosingPolygon":return a.getImportPromise();case"CIMGeometricEffectOffset":return Promise.all([p.getImportPromise(),c.getImportPromise(),u.getImportPromise()]);case"CIMGeometricEffectControlMeasureLine":return c.getImportPromise();case"CIMGeometricEffectTaperedPolygon":return Promise.all([_.getImportPromise(),l.getImportPromise(),o.getImportPromise()]);default:return Promise.resolve()}}function g(t){return"CIMMarkerPlacementAtMeasuredUnits"===t.type?f.getImportPromise():Promise.resolve()}class x{constructor(t){this._geometry=t}next(){let t=this._geometry;return this._geometry=null,t}}function y(t,e,i){if(!t)return null;m||=new r.O3(0,0,0,1);let s,h,a=i?-1:1,l="esriGeometryPolygon"===t.geometryType,o=l?3:2,u=l?3:2;for(m.reset(o),m.setPixelMargin(e+1),m.setExtent(512);t.nextPath();)if(!(t.pathSize<u)){for(t.nextPoint(),s=t.x,h=a*t.y,m.moveTo(s,h);t.nextPoint();)s=t.x,h=a*t.y,m.lineTo(s,h);l&&m.close()}let c=m.result(!1);if(c){let e=n.z.createEmptyOptimizedCIM(t.geometryType);for(let t of c){e.startPath();for(let i of t)e.pushXY(i.x,a*i.y)}return e.reset(),e}return null}i.d(e,["$Z",0,h,"NS",0,o,"Xs",0,l,"hd",0,u,"lX",0,a,"mO",0,c,"vZ",0,f,"xR",0,p,"yM",0,_])},78653(t,e,i){i.d(e,{A:()=>se,c:()=>ne});var s=i(34653);class n{constructor(){this.type="CIMBackgroundCallout"}static{this.instance=null}static local(){return null===n.instance&&(n.instance=new n),n.instance}execute(t,e,i){if("CIMBackgroundCallout"!==e?.type)throw Error("Invalid effect type for BackgroundCalloutEffect");return new r(t,e,i)}}class r{constructor(t,e,i){let{geomUnitsPerPoint:n}=i;if(!n)throw Error("geomUnitsPerPoint is required in EffectExecutionContext for BackgroundCalloutEffect");let r=n*(i.scaleFactor??1);this._inputGeometries=t,this._part=e.part,this._leaderTolerance=(e.leaderTolerance??0)*r,this._leaderOffset=(e.leaderOffset??0)*r,this._gap=(e.gap??0)*r,this._geomUnitsPerPoint=r,this._hasAccentBar=!0===e.hasAccentBar,this._lineStyle=e.lineStyle,this._margins=(0,s.QB)(e.margin,r),this._calloutContext=i.callout}next(){let t;for(;t=this._inputGeometries.next();){let e=(0,s.EE)(t,this._calloutContext);if(!e)continue;let i=(0,s.XD)(e.bounds,this._margins);switch(this._part){case"accent-bar":return(0,s.W)(i,e.anchor,this._gap,t.yFactor,this._lineStyle,e.bounds);case"background":return(0,s._T)(i,t.yFactor);default:{if((0,s.gR)(i,e.anchor))return null;let n=(0,s.sz)(i,e.anchor,this._lineStyle,this._gap,this._hasAccentBar,e.bounds);return(0,s.Io)(n,e.anchor)<this._leaderTolerance?null:(0,s.n_)(i,e.anchor,this._lineStyle,this._leaderOffset,this._gap,t.yFactor,this._geomUnitsPerPoint,this._hasAccentBar,e.bounds)}}}return null}}class h{constructor(){this.type="CIMBalloonCallout"}static{this.instance=null}static local(){return null===h.instance&&(h.instance=new h),h.instance}execute(t,e,i){if("CIMBalloonCallout"!==e?.type)throw Error("Invalid effect type for BalloonCalloutEffect");return new a(t,e,i)}}class a{constructor(t,e,i){let{geomUnitsPerPoint:n}=i;if(!n)throw Error("geomUnitsPerPoint is required in EffectExecutionContext for BalloonCalloutEffect");let r=n*(i.scaleFactor??1);this._inputGeometries=t,this._balloonStyle=e.balloonStyle,this._dartWidth=null==e.dartWidth?null:e.dartWidth*r,this._part=e.part,this._separateDart=!0===e.separateDart,this._leaderTolerance=(e.leaderTolerance??0)*r,this._margins=(0,s.QB)(e.margin,r),this._calloutContext=i.callout}next(){let t;for(;t=this._inputGeometries.next();){let e=(0,s.EE)(t,this._calloutContext);if(!e)continue;let i=(0,s.XD)(e.bounds,this._margins);if("dart"!==this._part)return(0,s.IF)(i,e.anchor,this._balloonStyle,this._leaderTolerance,t.yFactor,this._dartWidth,e.layoutAnchor,!this._separateDart);{let n=(0,s.ZO)(i,e.anchor,this._balloonStyle,this._leaderTolerance,t.yFactor,this._dartWidth,e.layoutAnchor);if(n)return n}}return null}}class l{constructor(){this.type="CIMPointSymbolCallout"}static{this.instance=null}static local(){return null===l.instance&&(l.instance=new l),l.instance}execute(t,e,i){if("CIMPointSymbolCallout"!==e?.type)throw Error("Invalid effect type for PointSymbolCalloutEffect");return new o(t,e,i)}}class o{constructor(t,e,i){let{geomUnitsPerPoint:s}=i;if(!s)throw Error("geomUnitsPerPoint is required in EffectExecutionContext for PointSymbolCalloutEffect");let n=s*(i.scaleFactor??1);this._inputGeometries=t,this._part=e.part,this._leaderTolerance=(e.leaderTolerance??0)*n,this._leaderOffset=(e.leaderOffset??0)*n,this._gap=(e.gap??0)*n,this._geomUnitsPerPoint=n,this._lineStyle=e.lineStyle,this._calloutContext=i.callout}next(){let t;for(;t=this._inputGeometries.next();){let e=(0,s.EE)(t,this._calloutContext);if(!e)continue;if("marker"===this._part)return(0,s.DJ)((0,s.gX)(e.bounds),t.yFactor);if((0,s.gR)(e.bounds,e.anchor))return null;let i=(0,s.sz)(e.bounds,e.anchor,this._lineStyle,this._gap);return(0,s.Io)(i,e.anchor)<this._leaderTolerance?null:(0,s.n_)(e.bounds,e.anchor,this._lineStyle,this._leaderOffset,this._gap,t.yFactor,this._geomUnitsPerPoint)}return null}}var u=i(36745);class c{constructor(){this.type="CIMSimpleLineCallout"}static{this.instance=null}static local(){return null===c.instance&&(c.instance=new c),c.instance}execute(t,e,i){if("CIMSimpleLineCallout"!==e?.type)throw Error("Invalid effect type for SimpleLineCalloutEffect");return new _(t,e,i)}}class _{constructor(t,e,i){this._inputGeometries=t,this._autoSnap=e.autoSnap??!0;let s=i.geomUnitsPerPoint*(i.scaleFactor??1);this._leaderTolerance=(e.leaderTolerance??0)*s,this._calloutContext=i.callout}next(){let t;for(;t=this._inputGeometries.next();){let e=this._createLeaderGeometry(t);if(e)return e}return null}_createLeaderGeometry(t){let e=(0,s.EE)(t,this._calloutContext);if(e){let i=this._autoSnap?(0,s.E0)(e.bounds,e.layoutAnchor):function(t){return{x:t.xmin,y:t.ymin}}(e.bounds);return function(t,e){return e.x>=t.xmin&&e.x<=t.xmax&&e.y>=t.ymin&&e.y<=t.ymax}(e.bounds,e.layoutAnchor)||!this._passesLeaderTolerance(i,e.layoutAnchor)?null:function(t,e,i){let s=u.z.createEmptyOptimizedCIM("esriGeometryPolyline",!1,!1,i);return s.startPath(),s.pushXY(t.x,i*t.y),s.pushXY(e.x,i*e.y),s.reset(),s}(i,e.anchor,t.yFactor)}return"esriGeometryPolyline"===t.geometryType&&this._passesPolylineTolerance(t)?t.clone():null}_passesLeaderTolerance(t,e){return this._leaderTolerance<=0||function(t,e){return Math.hypot(e.x-t.x,e.y-t.y)}(t,e)>=this._leaderTolerance}_passesPolylineTolerance(t){if(this._leaderTolerance<=0)return!0;let e=t.clone(),i=0;for(;e.nextPath();)i+=e.pathLength();return i>=this._leaderTolerance}}class p{static{this.instance=null}static local(){return null===p.instance&&(p.instance=new p),p.instance}execute(t,e,i){return new f(t,e)}}class f{constructor(t,e){this._inputGeometries=t,this._angleTolerance=void 0===e.angleTolerance?120:e.angleTolerance,this._maxCosAngle=Math.cos((1-Math.abs(this._angleTolerance)/180)*Math.PI)}next(){let t=this._inputGeometries.next();if(!t)return null;for(;t;){if("esriGeometryPolygon"===t.geometryType)this._isClosed=!0;else if("esriGeometryPolyline"===t.geometryType)this._isClosed=!1;else{if("esriGeometryEnvelope"!==t.geometryType){t=this._inputGeometries.next();continue}if(this._maxCosAngle)return t;this._isClosed=!0}for(;t.nextPath();)this._processPath(t);return t.reset(),t}return null}_processPath(t){if(t.nextPoint()){let e=t.x,i=t.y,s=e,n=i,r=t.pathSize,h=0,a=0,l=0,o=0,u=0,c=0;this._isClosed&&++r;for(let _=1;t.nextPoint()||_<r;++_){let p,f;this._isClosed&&_===r-1?(p=e,f=i):(p=t.x,f=t.y);let m=p-s,d=f-n,g=Math.sqrt(m*m+d*d);_>1&&g>0&&l>0&&(h*m+a*d)/g/l<=this._maxCosAngle&&t.setControlPointAt(_-1),1===_&&(o=m,u=d,c=g),g>0&&(s=p,n=f,h=m,a=d,l=g)}this._isClosed&&l>0&&c>0&&(h*o+a*u)/c/l<=this._maxCosAngle&&t.setControlPointAt(0)}}}var m=i(51118),d=i(98939);function g(t,e){t[4]=e}class x{constructor(t,e=!0,i=!0,s=0){this._angleToLine=!0,this._keepUpright=!1,this.isClosed=!1,this.geometryCursor=null,this.geometryCursor=!e&&"esriGeometryPolygon"===t.geometryType||!i&&"esriGeometryPolyline"===t.geometryType?null:t,this.geomUnitsPerPoint=s,this.iterateMultiPath=!1,this.iteratePath=!1,this.internalPlacement=new d.W}next(){if(!this.geometryCursor)return null;let t=this.processMultiPath(this.geometryCursor);if(this.iterateMultiPath&&t||(this.geometryCursor=null),!t)return null;let e=t.getAngle();if(this._angleToLine&&this._keepUpright&&Math.abs(e)>.5*Math.PI){let i=e+Math.PI,s=Math.atan2(Math.sin(i),Math.cos(i));Number.isNaN(s)||t.setRotate(s)}return t}processMultiPath(t){for(;this.iteratePath||t.pathIndex<t.totalSize-1;){this.iteratePath||t.nextPath(),this.iterateMultiPath=!0;let e=this.processPath(t);if(e)return e}return this.iterateMultiPath=!1,null}}class y{constructor(t,e,i,s=0){this.isClosed=!1,this.inputGeometries=t,this.acceptPolygon=e,this.acceptPolyline=i,this.geomUnitsPerPoint=s,this.iteratePath=!1,this.multiPathCursor=null}next(){for(;;){if(!this.multiPathCursor){let t=this.inputGeometries.next();for(;t&&(this.isClosed=this.acceptPolygon&&"esriGeometryPolygon"===t.geometryType||"esriGeometryEnvelope"===t.geometryType,this.multiPathCursor=t,!this.multiPathCursor);)t=this.inputGeometries.next();if(!this.multiPathCursor)return null}for(;this.iteratePath||this.multiPathCursor.nextPath();){this.multiPathCursor.seekPathStart();let t=this.processPath(this.multiPathCursor);if(t)return t}this.multiPathCursor=null}}}class P{constructor(t=0,e=!1){}isEmpty(t){if(!t.nextPoint())return!0;let e,i,s,n;for(e=t.x,i=t.y;t.nextPoint();e=i,i=n)if(s=t.x,n=t.y,s!==e||n!==i)return t.seekPathStart(),!1;return t.seekPathStart(),!0}normalize(t){let e=Math.sqrt(t[0]*t[0]+t[1]*t[1]);0!==e&&(t[0]/=e,t[1]/=e)}getLength(t,e,i,s){let n=i-t,r=s-e;return Math.sqrt(n*n+r*r)}getSegLength(t){let[[e,i],[s,n]]=t;return this.getLength(e,i,s,n)}getCoord2D(t,e,i,s,n){return[t+(i-t)*n,e+(s-e)*n]}getSegCoord2D(t,e){let[[i,s],[n,r]]=t;return this.getCoord2D(i,s,n,r,e)}getAngle(t,e,i,s,n){let r=i-t,h=s-e;return Math.atan2(h,r)}getAngleCS(t,e,i,s,n,r){t??=[0,0];let h=s-e,a=n-i,l=Math.sqrt(h*h+a*a);return 0===l?(t[0]=1,t[1]=0,t):(t[0]=h/l,t[1]=a/l,t)}getSegAngleCS(t,e,i){let[[s,n],[r,h]]=e;return this.getAngleCS(t,s,n,r,h,i)}cut(t,e,i,s,n,r){return[n<=0?[t,e]:this.getCoord2D(t,e,i,s,n),r>=1?[i,s]:this.getCoord2D(t,e,i,s,r)]}getSubCurve(t,e,i){let s=u.z.createEmptyOptimizedCIM("esriGeometryPolyline");return this.appendSubCurve(s,t,e,i)?s:null}appendSubCurve(t,e,i,s){t.startPath(),e.seekPathStart();let n=0,r=!0;if(!e.nextPoint())return!1;let h=e.x,a=e.y;for(;e.nextPoint();){let l=this.getLength(h,a,e.x,e.y);if(0===l)h=e.x,a=e.y;else{if(r){if(n+l>i){let o=(i-n)/l,u=1,c=!1;n+l>=s&&(u=(s-n)/l,c=!0);let _=this.cut(h,a,e.x,e.y,o,u);if(_&&t.pushPoints(_),c)break;r=!1}}else{if(n+l>s){let i=this.cut(h,a,e.x,e.y,0,(s-n)/l);i&&t.pushPoint(i[1]);break}t.pushXY(e.x,e.y)}n+=l,h=e.x,a=e.y}}return!0}getCIMPointAlong(t,e){if(!t.nextPoint())return null;let i,s,n,r,h=0;for(i=t.x,s=t.y;t.nextPoint();i=n,s=r){n=t.x,r=t.y;let a=this.getLength(i,s,n,r);if(0!==a){if(h+a>e){let t=(e-h)/a;return this.getCoord2D(i,s,n,r,t)}h+=a}}return null}offset(t,e,i,s,n){if(!t||t.length<2)return null;let r=0,h=t[r++],a=r;for(;r<t.length;){let e=t[r];(e[0]!==h[0]||e[1]!==h[1])&&(r!==a&&(t[a]=t[r]),h=t[a++]),r++}let l=t[0][0]===t[a-1][0]&&t[0][1]===t[a-1][1];if(l&&--a,a<(l?3:2))return null;let o=[];h=l?t[a-1]:null;let u=t[0];for(let n=0;n<a;n++){let r=n===a-1?l?t[0]:null:t[n+1];if(h)if(r){let t=[r[0]-u[0],r[1]-u[1]];this.normalize(t);let n=[u[0]-h[0],u[1]-h[1]];this.normalize(n);let a=n[0]*t[1]-n[1]*t[0],l=n[0]*t[0]+n[1]*t[1];if(0===a&&1===l){u=r;continue}if(a>=0==e<=0){if(l<1){let i=[t[0]-n[0],t[1]-n[1]];this.normalize(i);let r=Math.sqrt((1+l)/2);if(r>1/s){let t=-Math.abs(e)/r;o.push([u[0]-i[0]*t,u[1]-i[1]*t])}}}else switch(i){case"Mitered":{let i=Math.sqrt((1+l)/2);if(i>0&&1/i<s){let s=[t[0]-n[0],t[1]-n[1]];this.normalize(s);let r=Math.abs(e)/i;o.push([u[0]-s[0]*r,u[1]-s[1]*r]);break}}case"Bevelled":o.push([u[0]+n[1]*e,u[1]-n[0]*e]),o.push([u[0]+t[1]*e,u[1]-t[0]*e]);break;case"Rounded":if(l<1){o.push([u[0]+n[1]*e,u[1]-n[0]*e]);let i=Math.floor(2.5*(1-l));if(i>0){let s=1/i,r=s;for(let h=1;h<i;h++,r+=s){let i=[n[1]*(1-r)+t[1]*r,-n[0]*(1-r)-t[0]*r];this.normalize(i),o.push([u[0]+i[0]*e,u[1]+i[1]*e])}}o.push([u[0]+t[1]*e,u[1]-t[0]*e])}break;default:if(a<0)o.push([u[0]+(n[1]+n[0])*e,u[1]+(n[1]-n[0])*e]),o.push([u[0]+(t[1]-t[0])*e,u[1]-(t[0]+t[1])*e]);else{let i=Math.sqrt((1+Math.abs(l))/2),s=[t[0]-n[0],t[1]-n[1]];this.normalize(s);let r=e/i;o.push([u[0]-s[0]*r,u[1]-s[1]*r])}}}else{let t=[u[0]-h[0],u[1]-h[1]];this.normalize(t),o.push([u[0]+t[1]*e,u[1]-t[0]*e])}else{let t=[r[0]-u[0],r[1]-u[1]];this.normalize(t),o.push([u[0]+t[1]*e,u[1]-t[0]*e])}h=u,u=r}return o.length<(l?3:2)?null:(l&&o.push([o[0][0],o[0][1]]),o)}}class M{static{this.instance=null}static local(){return null===M.instance&&(M.instance=new M),M.instance}execute(t,e,i){return new b(t,e,i)}}class b extends y{constructor(t,e,i){super(t,!1,!0),this._curveHelper=new P;let s=i.geomUnitsPerPoint;this._width=(void 0===e.width?5:e.width)*s,this._arrowType=void 0===e.geometricEffectArrowType?void 0===e.arrowType?"OpenEnded":e.arrowType:e.geometricEffectArrowType,this._offsetFlattenError=.03*s}processPath(t){let e=u.z.createEmptyOptimizedCIM(t.geometryType);switch(this._arrowType){case"OpenEnded":default:this._constructSimpleArrow(e,t,!0);break;case"Block":this._constructSimpleArrow(e,t,!1);break;case"Crossed":this._constructCrossedArrow(e,t)}return e}_constructSimpleArrow(t,e,i){let s=e.pathLength(),n=this._width;s<2*n&&(n=s/2);let r=this._curveHelper.getSubCurve(e,0,s-n);if(!r||!r.nextPath())return;r.seekPathStart();let h=n/2;if(this._curveHelper.isEmpty(r))return;let a=(0,m.A)(r),l=this._constructOffset(a,-h);if(!l)return;let o=this._constructOffset(a,h);if(!o)return;let u=this._constructArrowBasePoint(l,-h/2);if(!u)return;let c=this._constructArrowBasePoint(o,h/2);if(!c)return;e.seekInPath(e.pathSize-1);let _=[e.x,e.y];t.pushPath(o),t.nextPath(),t.nextPoint(),t.setControlPoint(),t.pushPoint(c),t.nextPoint(),t.setControlPoint(),t.pushPoint(_),t.nextPoint(),t.setControlPoint(),t.pushPoint(u),t.nextPoint(),t.setControlPoint(),t.pushPoints(l.reverse()),t.setControlPoint(),i||(t.setControlPointAt(0),t.setControlPointAt(t.pathSize-1),t.pushPoint(o[0])),t.reset()}_constructCrossedArrow(t,e){let i=e.pathLength(),s=this._width;i<3.732050807568877*s&&(s=i/3.732050807568877),e.seekPathStart();let n=this._curveHelper.getSubCurve(e,0,i-2.732050807568877*s);if(!n)return;n.nextPath();let r=s/2;if(this._curveHelper.isEmpty(n))return;let h=(0,m.A)(n),a=this._constructOffset(h,r);if(!a)return;let l=this._constructOffset(h,-r);if(!l)return;let o=this._curveHelper.getSubCurve(e,0,i-s);if(!o||(o.nextPath(),this._curveHelper.isEmpty(o)))return;let u=(0,m.A)(o),c=this._constructOffset(u,r);if(!c)return;let _=this._constructOffset(u,-r);if(!_)return;let p=c[c.length-1],f=this._constructArrowBasePoint(c,r/2);if(!f)return;let d=_[_.length-1],g=this._constructArrowBasePoint(_,-r/2);if(!g)return;e.seekInPath(e.pathSize-1);let x=[e.x,e.y];t.pushPath(a),t.nextPath(),t.nextPoint(),t.setControlPoint(),t.pushPoint(d),t.nextPoint(),t.setControlPoint(),t.pushPoint(g),t.nextPoint(),t.setControlPoint(),t.pushPoint(x),t.nextPoint(),t.setControlPoint(),t.pushPoint(f),t.nextPoint(),t.setControlPoint(),t.pushPoint(p),t.nextPoint(),t.setControlPoint(),t.pushPoints(l.reverse()),t.nextPoint(),t.setControlPoint(),t.reset()}_constructOffset(t,e){return this._curveHelper.offset(t,e,"Rounded",4,this._offsetFlattenError)}_constructArrowBasePoint(t,e){if(!t||t.length<2)return null;let i=t[t.length-2],s=t[t.length-1],n=[s[0]-i[0],s[1]-i[1]];return this._curveHelper.normalize(n),[s[0]+n[1]*e,s[1]-n[0]*e]}}var C=i(16930),v=i(35833);class w{static{this.instance=null}static local(){return null===w.instance&&(w.instance=new w),w.instance}execute(t,e,i){return new S(t,e,i)}}class S{constructor(t,e,i){let s=i.geomUnitsPerPoint,n=i.tileKey,r=i.maxInflateSize;this._preventClipping=i.preventClipping,this._inputGeometries=t,this._tileKey=n,this._curveHelper=new P,this._size=(void 0===e.size?1:e.size)*s,this._maxInflateSize=r*s,this._offsetFlattenError=.03*s}next(){let t;for(;t=this._inputGeometries.next();){if(0===this._size)return t;if("esriGeometryEnvelope"===t.geometryType)if(this._size>0){let e=u.z.createEmptyOptimizedCIM(t.geometryType),i=(0,m.x)(t)[0],s=this._curveHelper.offset(i,this._size,"Rounded",4,this._offsetFlattenError);if(s)return e.pushPath(s),e}else if(this._size<0){let e=t.asJSON();if(Math.min(e.xmax-e.xmin,e.ymax-e.ymin)+2*this._size>0)return u.z.fromJSONCIM({xmin:e.xmin-this._size,xmax:e.xmax+this._size,ymin:e.ymin-this._size,ymax:e.ymax+this._size})}let e=!this._preventClipping&&this._tileKey?(0,v.qc)(t,this._maxInflateSize,!0):t;if(!e)continue;let{bufferExecute:i}=v.$Z.module,s=i({...e.asJSON(),spatialReference:{wkid:C.A.WebMercator.wkid}},this._size);return s?u.z.fromJSONCIM(s):null}return null}}var I=i(34727),z=i(28076);const k=Math.PI/180,A=2*Math.PI;class T{static{this.instance=null}static local(){return null===T.instance&&(T.instance=new T),T.instance}execute(t,e,i){return new E(t,e,i)}}class E{constructor(t,e,i){let s=i.geomUnitsPerPoint;this._inputGeometries=t,this._geomUnitsPerPoint=s,this._radius=(e.radius??z.D.CIMGeometricEffectCircularSector.radius)*s,this._startAngle=(e.startAngle??z.D.CIMGeometricEffectCircularSector.startangle)*k,this._endAngle=(e.endAngle??z.D.CIMGeometricEffectCircularSector.endangle)*k}next(){if(this._radius<=0)return null;let t=this._inputGeometries.next();for(;t;){if("esriGeometryPoint"===t.geometryType||"esriGeometryMultipoint"===t.geometryType){let e=u.z.createEmptyOptimizedCIM("esriGeometryPolygon",t.hasZ,!1),i=!1;for(;t.nextPath();)for(;t.nextPoint();)e.pushPath(this._buildRing(t.x,t.y,t.hasZ?t.z:void 0)),i=!0;if(i)return e}t=this._inputGeometries.next()}return null}_buildRing(t,e,i){let s=[this._makePoint(t,e,i)],n=G(this._startAngle),r=G(this._endAngle);for(;r<n;)r+=A;let h=r-n;if(0===h)return s.push(this._makePoint(t+this._radius*Math.cos(r),e+this._radius*Math.sin(r),i)),s.push(this._makePoint(t,e,i)),s;let a=.25*this._geomUnitsPerPoint,l=this._radius<=.5*a?A:2*Math.acos((0,I.qE)(1-a/this._radius,-1,1)),o=Math.max(1,Math.ceil(h/l)),u=h/o,c=r;for(let n=0;n<=o;n++,c-=u)s.push(this._makePoint(t+this._radius*Math.cos(c),e+this._radius*Math.sin(c),i));return s.push(this._makePoint(t,e,i)),s}_makePoint(t,e,i){return null==i?[t,e]:[t,e,i]}}function G(t){return(t%=A)<0?t+A:t}i(86211);var O=i(95108);class N{static{this.instance=null}static local(){return null===N.instance&&(N.instance=new N),N.instance}execute(t,e,i){return new L(t,e,i)}}class L{constructor(t,e,i){this._defaultPointSize=20,this._inputGeometries=t,this._geomUnitsPerPoint=i.geomUnitsPerPoint??1,this._scale=i?.scale,this._rule=e.rule??"FullGeometry",this._spatialReference=i?.spatialReference??C.A.WebMercator,this._width=this._computeWidth(e.width??25),this._defaultSize=this._defaultPointSize*this._geomUnitsPerPoint}next(){let t;for(;t=this._inputGeometries.next();){let e=this._processGeom((0,m.x)(t));if(e?.length)return u.z.fromJSONCIM({paths:e})}return null}_computeWidth(t){if(!function(t){return"ParallelOffsetByValue"===t}(this._rule)||null==this._scale||!this._spatialReference.metersPerUnit)return t*this._geomUnitsPerPoint;let e=this._scale/(96*39.37*this._spatialReference.metersPerUnit);return t/(this._spatialReference.metersPerUnit*e)}_clone(t){return[t[0],t[1]]}_mid(t,e){return[(t[0]+e[0])/2,(t[1]+e[1])/2]}_mix(t,e,i,s){return[t[0]*e+i[0]*s,t[1]*e+i[1]*s]}_add(t,e){return[t[0]+e[0],t[1]+e[1]]}_add2(t,e,i){return[t[0]+e,t[1]+i]}_sub(t,e){return[t[0]-e[0],t[1]-e[1]]}_dist(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}_norm(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}_normalize(t,e=1){let i=e/this._norm(t);t[0]*=i,t[1]*=i}_leftPerpendicular(t){let e=-t[1],i=t[0];t[0]=e,t[1]=i}_leftPerp(t){return[-t[1],t[0]]}_rightPerpendicular(t){let e=t[1],i=-t[0];t[0]=e,t[1]=i}_rightPerp(t){return[t[1],-t[0]]}_dotProduct(t,e){return t[0]*e[0]+t[1]*e[1]}_crossProduct(t,e){return t[0]*e[1]-t[1]*e[0]}_rotateDirect(t,e,i){let s=t[0]*e-t[1]*i,n=t[0]*i+t[1]*e;t[0]=s,t[1]=n}_makeCtrlPt(t){let e=[t[0],t[1]];return g(e,1),e}_addAngledTicks(t,e,i,s){let n=this._sub(i,e);this._normalize(n);let r,h=this._crossProduct(n,this._sub(s,e));r=h>0?this._rightPerp(n):this._leftPerp(n);let a=Math.abs(h)/2,l=[];l.push([e[0]+(r[0]-n[0])*a,e[1]+(r[1]-n[1])*a]),l.push(e),l.push(i),l.push([i[0]+(r[0]+n[0])*a,i[1]+(r[1]+n[1])*a]),t.push(l)}_addBezier2(t,e,i,s,n){if(0===n--)return void t.push(s);let r=this._mid(e,i),h=this._mid(i,s),a=this._mid(r,h);this._addBezier2(t,e,r,a,n),this._addBezier2(t,a,h,s,n)}_addBezier3(t,e,i,s,n,r){if(0===r--)return void t.push(n);let h=this._mid(e,i),a=this._mid(i,s),l=this._mid(s,n),o=this._mid(h,a),u=this._mid(a,l),c=this._mid(o,u);this._addBezier3(t,e,h,o,c,r),this._addBezier3(t,c,u,l,n,r)}_add90DegArc(t,e,i,s,n){let r=n??this._crossProduct(this._sub(i,e),this._sub(s,e))>0,h=this._mid(e,i),a=this._sub(h,e);r?this._leftPerpendicular(a):this._rightPerpendicular(a),h[0]+=a[0],h[1]+=a[1],this._addBezier3(t,e,this._mix(e,.33333,h,.66667),this._mix(i,.33333,h,.66667),i,4)}_addArrow(t,e,i){let s=e[0],n=e[1],r=e[e.length-1],h=this._sub(s,n),a=this._norm(h);this._normalize(h);let l=Math.abs(this._crossProduct(h,this._sub(r,n))),o=this._dotProduct(h,this._sub(r,n));o<.05*a?o=.05*a:o>.95*a&&(o=.95*a);let u=.5*l,c=this._leftPerp(h),_=[n[0]+h[0]*o,n[1]+h[1]*o],p=e.length-1,f=[];f.push(i?[-c[0],-c[1]]:c);let m=[-h[0],-h[1]];for(let t=1;t<p-1;t++){let i=this._sub(e[t+1],e[t]);this._normalize(i);let s=this._dotProduct(i,m),n=this._crossProduct(i,m),r=Math.sqrt((1+s)/2),h=this._sub(i,m);this._normalize(h),h[0]/=r,h[1]/=r,f.push(n<0?[-h[0],-h[1]]:h),m=i}f.push(this._rightPerp(m));for(let i=f.length-1;i>0;i--)t.push([e[i][0]+f[i][0]*u,e[i][1]+f[i][1]*u]);t.push([_[0]+f[0][0]*u,_[1]+f[0][1]*u]),t.push([_[0]+f[0][0]*l,_[1]+f[0][1]*l]),t.push(s),t.push([_[0]-f[0][0]*l,_[1]-f[0][1]*l]),t.push([_[0]-f[0][0]*u,_[1]-f[0][1]*u]);for(let i=1;i<f.length;i++)t.push([e[i][0]-f[i][0]*u,e[i][1]-f[i][1]*u])}_addDash(t,e,i){let s=this._norm(i)/7;this._normalize(i);let n=[];for(let r=0;r<=7;r++)n.push([e[0]+i[0]*r*s,e[1]+i[1]*r*s]),1&r&&(t.push(n),n=[])}_cp2(t,e,i){return t.length>=2?t[1]:this._add2(t[0],e*this._defaultSize,i*this._defaultSize)}_cp3(t,e,i,s){if(t.length>=3)return t[2];let n=this._mix(t[0],1-i,e,i),r=this._sub(e,t[0]);return this._normalize(r),this._rightPerpendicular(r),[n[0]+r[0]*s*this._defaultSize,n[1]+r[1]*s*this._defaultSize]}_arrowPath(t){if(t.length>2)return t;let e=t[0],i=this._cp2(t,-4,0),s=this._sub(e,i);this._normalize(s);let n=this._rightPerp(s);return[e,i,[e[0]+(n[0]-s[0])*this._defaultSize,e[1]+(n[1]-s[1])*this._defaultSize]]}_arrowLastSeg(t){let e,i=t[0],s=this._cp2(t,-4,0);if(t.length>=3)e=t[t.length-1];else{let t=this._sub(i,s);this._normalize(t);let n=this._rightPerp(t);e=[i[0]+(n[0]-t[0])*this._defaultSize,i[1]+(n[1]-t[1])*this._defaultSize]}return[s,e]}_offsetPath(t,e){let{offsetExecute:i}=v.mO.module,s=i({paths:[t],spatialReference:this._spatialReference.toJSON()},e,{joins:"miter",miterLimit:4}),[n]=(0,m.x)(u.z.fromJSONCIM(s));return n?.length?n:null}_processGeom(t){if(!t)return null;let e=[];for(let i of t){let t=i.length>1&&(0,O.Yl)(i)<this._defaultSize;if(!i||0===i.length||t)continue;let s=i.length,n=i[0];switch(this._rule){case"PerpendicularFromFirstSegment":{let t=this._cp2(i,0,-1),s=this._cp3(i,t,.5,4),r=[];r.push(s),r.push(this._mid(n,t)),e.push(r);break}case"ReversedFirstSegment":{let t=this._cp2(i,0,-1);e.push([t,n]);break}case"PerpendicularToSecondSegment":{if(i.length<3)return[];let t=this._cp2(i,-4,1),s=this._cp3(i,t,.882353,-1.94),r=[];r.push(this._mid(t,s)),r.push(n),e.push(r);break}case"SecondSegmentWithTicks":{if(i.length<3)return[];let t,s=this._cp2(i,-4,1),r=this._cp3(i,s,.882353,-1.94),h=this._sub(r,s);t=this._crossProduct(h,this._sub(n,s))>0?this._rightPerp(h):this._leftPerp(h);let a=[];a.push([s[0]+(t[0]-h[0])/3,s[1]+(t[1]-h[1])/3]),a.push(s),a.push(r),a.push([r[0]+(t[0]+h[0])/3,r[1]+(t[1]+h[1])/3]),e.push(a);break}case"DoublePerpendicular":{let t=this._cp2(i,0,-1),s=this._cp3(i,t,.5,3),r=this._mid(n,t),h=this._sub(r,s);this._normalize(h);let a=this._crossProduct(h,this._sub(n,s));this._leftPerpendicular(h);let l=[];l.push(n),l.push([s[0]+h[0]*a,s[1]+h[1]*a]),e.push(l);let o=[];o.push([s[0]-h[0]*a,s[1]-h[1]*a]),o.push(t),e.push(o);break}case"OppositeToFirstSegment":{let t=this._cp2(i,0,-1),s=this._cp3(i,t,.5,3),r=this._mid(n,t),h=this._sub(r,s);this._normalize(h);let a=this._crossProduct(h,this._sub(n,s));this._leftPerpendicular(h);let l=[];l.push([s[0]+h[0]*a,s[1]+h[1]*a]),l.push([s[0]-h[0]*a,s[1]-h[1]*a]),e.push(l);break}case"TriplePerpendicular":{let t=this._cp2(i,0,-1),s=this._cp3(i,t,.5,4),r=this._mid(n,t),h=this._sub(r,s);this._normalize(h);let a=this._crossProduct(h,this._sub(n,s));this._leftPerpendicular(h);let l=[];l.push([s[0]+h[0]*a*.8,s[1]+h[1]*a*.8]),l.push([r[0]+.8*(n[0]-r[0]),r[1]+.8*(n[1]-r[1])]),e.push(l),e.push([s,r]);let o=[];o.push([s[0]-h[0]*a*.8,s[1]-h[1]*a*.8]),o.push([r[0]+.8*(t[0]-r[0]),r[1]+.8*(t[1]-r[1])]),e.push(o);break}case"HalfCircleFirstSegment":{let t,s=this._cp2(i,0,-1),r=this._cp3(i,s,.5,4),h=this._mid(n,s),a=this._sub(s,n),l=Math.cos(Math.PI/18),o=Math.sin(Math.PI/18),u=Math.sqrt((1+l)/2),c=Math.sqrt((1-l)/2),_=[];this._crossProduct(a,this._sub(r,n))>0?(_.push(n),a=this._sub(n,h),t=s):(_.push(s),a=this._sub(s,h),t=n),this._rotateDirect(a,u,c),a[0]/=u,a[1]/=u;for(let t=1;t<=18;t++)_.push(this._add(h,a)),this._rotateDirect(a,l,o);_.push(t),e.push(_);break}case"HalfCircleSecondSegment":{let t=this._cp2(i,0,-1),s=this._cp3(i,t,1,-1),r=this._sub(n,t);this._normalize(r);let h=this._crossProduct(r,this._sub(s,t))/2;this._leftPerpendicular(r);let a=[t[0]+r[0]*h,t[1]+r[1]*h];r=this._sub(t,a);let l=Math.cos(Math.PI/18),o=Math.sin(Math.PI/18);h>0&&(o=-o);let u=[t];for(let t=1;t<=18;t++)this._rotateDirect(r,l,o),u.push(this._add(a,r));e.push(u);break}case"HalfCircleExtended":{let t,r=this._cp2(i,0,-2),h=this._cp3(i,r,1,-1);if(s>=4)t=i[3];else{let e=this._sub(n,r);t=this._add(h,e)}let a=this._dist(r,h)/2/.75,l=this._sub(r,n);this._normalize(l,a);let o=this._sub(h,t);this._normalize(o,a);let u=[t,h];e.push(u);let c=[this._clone(h)];this._addBezier3(c,h,this._add(h,o),this._add(r,l),r,4),c.push(n),e.push(c);break}case"OpenCircle":{let t=this._cp2(i,-2,0),s=this._sub(t,n),r=Math.cos(Math.PI/18),h=-Math.sin(Math.PI/18),a=[t];for(let t=1;t<=33;t++)this._rotateDirect(s,r,h),a.push(this._add(n,s));e.push(a);break}case"CoverageEdgesWithTicks":{let t,r,h=this._cp2(i,0,-1);if(s>=3)t=i[2];else{let e=this._sub(h,n),i=this._leftPerp(e);t=[n[0]+i[0]-.25*e[0],n[1]+i[1]-.25*e[1]]}if(s>=4)r=i[3];else{let e=this._mid(n,h),i=this._sub(n,h);this._normalize(i),this._leftPerpendicular(i);let s=this._crossProduct(i,this._sub(t,e));this._rightPerpendicular(i),r=[t[0]+i[0]*s*2,t[1]+i[1]*s*2]}let a,l,o=this._sub(h,n);a=this._crossProduct(o,this._sub(t,n))>0?this._rightPerp(o):this._leftPerp(o),l=[],l.push(t),l.push(n),l.push([n[0]+(a[0]-o[0])/3,n[1]+(a[1]-o[1])/3]),e.push(l),a=this._crossProduct(o,this._sub(r,h))>0?this._rightPerp(o):this._leftPerp(o),l=[],l.push([h[0]+(a[0]+o[0])/3,h[1]+(a[1]+o[1])/3]),l.push(h),l.push(r),e.push(l);break}case"GapExtentWithDoubleTicks":{let t,r=this._cp2(i,0,2),h=this._cp3(i,r,0,1);if(s>=4)t=i[3];else{let e=this._sub(r,n);t=this._add(h,e)}this._addAngledTicks(e,n,r,this._mid(h,t)),this._addAngledTicks(e,h,t,this._mid(n,r));break}case"GapExtentMidline":{let t,r=this._cp2(i,2,0),h=this._cp3(i,r,0,1);if(s>=4)t=i[3];else{let e=this._sub(r,n);t=this._add(h,e)}let a=[];a.push(this._mid(n,h)),a.push(this._mid(r,t)),e.push(a);break}case"Chevron":{let t,r=this._cp2(i,-1,-1);if(s>=3)t=i[2];else{let e=this._sub(r,n);this._leftPerpendicular(e),t=this._add(n,e)}e.push([r,this._makeCtrlPt(n),t]);break}case"PerpendicularWithArc":{let t=this._cp2(i,0,-2),r=this._cp3(i,t,.5,-1),h=this._sub(t,n),a=this._norm(h);h[0]/=a,h[1]/=a;let l=this._crossProduct(h,this._sub(r,n)),o=this._dotProduct(h,this._sub(r,n));o<.05*a?o=.05*a:o>.95*a&&(o=.95*a);let u=[n[0]+h[0]*o,n[1]+h[1]*o],c=this._leftPerp(h),_=[];if(_.push([u[0]-c[0]*l,u[1]-c[1]*l]),_.push([u[0]+c[0]*l,u[1]+c[1]*l]),e.push(_),s>=4){let t=i[3],s=this._dotProduct(h,this._sub(t,n));s<.1*a?s=.1*a:s>.9*a&&(s=.9*a);let r=[n[0]+h[0]*s,n[1]+h[1]*s],l=this._crossProduct(h,this._sub(t,n)),o=[];o.push([r[0]-c[0]*l,r[1]-c[1]*l]),o.push([r[0]+c[0]*l,r[1]+c[1]*l]),e.push(o)}let p=[t[0]+c[0]*l,t[1]+c[1]*l];c=this._sub(t,p);let f=Math.cos(Math.PI/18),m=Math.sin(Math.PI/18);l<0&&(m=-m),_=[n,t];for(let t=1;t<=9;t++)this._rotateDirect(c,f,m),_.push(this._add(p,c));e.push(_);break}case"ClosedHalfCircle":{let t=this._cp2(i,2,0),s=this._mid(n,t),r=this._sub(t,s),h=Math.cos(Math.PI/18),a=Math.sin(Math.PI/18),l=[n,t];for(let t=1;t<=18;t++)this._rotateDirect(r,h,a),l.push(this._add(s,r));e.push(l);break}case"TripleParallelExtended":{let t=this._cp2(i,0,-2),s=this._cp3(i,t,1,-2),r=this._mid(n,t),h=this._sub(s,t);this._normalize(h);let a=Math.abs(this._crossProduct(h,this._sub(r,t)))/2,l=this._dist(t,s),o=[t,n];o.push([n[0]+h[0]*l*.5,n[1]+h[1]*l*.5]),e.push(o);let u=[];u.push([r[0]-h[0]*a,r[1]-h[1]*a]),u.push([r[0]+h[0]*l*.375,r[1]+h[1]*l*.375]),g(u[u.length-1],1),u.push([r[0]+h[0]*l*.75,r[1]+h[1]*l*.75]),e.push(u);let c=[t,s];e.push(c);break}case"ParallelWithTicks":{let t=this._cp2(i,3,0),s=this._cp3(i,t,.5,-1),r=this._sub(t,n);this._normalize(r);let h=this._crossProduct(r,this._sub(s,n)),a=this._leftPerp(r);this._addAngledTicks(e,n,t,s),this._addAngledTicks(e,this._add2(n,a[0]*h,a[1]*h),this._add2(t,a[0]*h,a[1]*h),this._mid(n,t));break}case"Parallel":{let t=this._cp2(i,3,0),s=this._cp3(i,t,.5,-1),r=this._sub(t,n);this._normalize(r);let h=this._leftPerp(r),a=this._crossProduct(r,this._sub(s,n)),l=[n,t];e.push(l),l=[],l.push([n[0]+h[0]*a,n[1]+h[1]*a]),l.push([t[0]+h[0]*a,t[1]+h[1]*a]),e.push(l);break}case"PerpendicularToFirstSegment":{let t=this._cp2(i,3,0),s=this._cp3(i,t,.5,-1),r=this._mid(n,t),h=this._sub(t,n);this._normalize(h);let a=this._crossProduct(h,this._sub(s,n));this._leftPerpendicular(h);let l=[];l.push([r[0]-h[0]*a*.25,r[1]-h[1]*a*.25]),l.push([r[0]+h[0]*a*1.25,r[1]+h[1]*a*1.25]),e.push(l);break}case"ParallelOffset":{let t=this._cp2(i,3,0),s=this._cp3(i,t,.5,-1),r=this._sub(t,n);this._normalize(r);let h=this._crossProduct(r,this._sub(s,n));this._leftPerpendicular(r);let a=[];a.push([n[0]-r[0]*h,n[1]-r[1]*h]),a.push([t[0]-r[0]*h,t[1]-r[1]*h]),e.push(a);let l=[];l.push([n[0]+r[0]*h,n[1]+r[1]*h]),l.push([t[0]+r[0]*h,t[1]+r[1]*h]),e.push(l);break}case"OffsetOpposite":{let t=this._cp2(i,3,0),s=this._cp3(i,t,.5,-1),r=this._sub(t,n);this._normalize(r);let h=this._crossProduct(r,this._sub(s,n));this._leftPerpendicular(r);let a=[];a.push([n[0]-r[0]*h,n[1]-r[1]*h]),a.push([t[0]-r[0]*h,t[1]-r[1]*h]),e.push(a);break}case"OffsetSame":{let t=this._cp2(i,3,0),s=this._cp3(i,t,.5,-1),r=this._sub(t,n);this._normalize(r);let h=this._crossProduct(r,this._sub(s,n));this._leftPerpendicular(r);let a=[];a.push([n[0]+r[0]*h,n[1]+r[1]*h]),a.push([t[0]+r[0]*h,t[1]+r[1]*h]),e.push(a);break}case"CircleWithArc":{let t,r,h=this._cp2(i,3,0),a=this._cp3(i,h,.5,-1);if(s>=4)t=i[3],r=this._crossProduct(this._sub(t,h),this._sub(a,h))>0;else{t=h,r=this._crossProduct(this._sub(t,n),this._sub(a,n))>0;let e=24*this._geomUnitsPerPoint,i=this._sub(t,n);this._normalize(i,e);let s=Math.sqrt(2)/2;this._rotateDirect(i,s,r?s:-s),h=this._add(n,i)}let l=this._sub(h,n),o=Math.cos(Math.PI/18),u=Math.sin(Math.PI/18),c=[h];for(let t=1;t<=36;t++)this._rotateDirect(l,o,u),c.push(this._add(n,l));this._add90DegArc(c,h,t,a,r),g(c[c.length-8],1),e.push(c);break}case"DoubleJog":{let t,r=this._cp2(i,-3,1),h=this._cp3(i,r,-1,-.5);if(s>=4)t=i[3];else{let e=n;n=r,t=h;let i=this._dist(n,e),s=this._dist(t,e),a=30*this._geomUnitsPerPoint;.5*i<a&&(a=.5*i),.5*s<a&&(a=.5*s),r=this._mix(n,a/i,e,(i-a)/i),h=this._mix(t,a/s,e,(s-a)/s)}let a=this._mid(n,r),l=this._mid(t,h),o=this._dist(n,r),u=this._dist(h,t),c=Math.min(o,u)/8;c=Math.min(c,24*this._geomUnitsPerPoint);let _=Math.cos(Math.PI/4),p=this._sub(n,r);this._normalize(p,c),this._crossProduct(p,this._sub(t,r))>0?this._rotateDirect(p,_,-_):this._rotateDirect(p,_,_);let f=[];f.push(r),f.push(this._add(a,p)),f.push(this._sub(a,p)),f.push(n),e.push(f),p=this._sub(t,h),this._normalize(p,c),this._crossProduct(p,this._sub(n,h))<0?this._rotateDirect(p,_,_):this._rotateDirect(p,_,-_),f=[],f.push(h),f.push(this._add(l,p)),f.push(this._sub(l,p)),f.push(t),e.push(f);break}case"PerpendicularOffset":{let t=this._cp2(i,-4,1),s=this._cp3(i,t,.882353,-1.94),r=this._sub(s,t);this._crossProduct(r,this._sub(n,t))>0?this._rightPerpendicular(r):this._leftPerpendicular(r);let h=[r[0]/8,r[1]/8],a=this._sub(this._mid(t,s),h);e.push([a,n]);break}case"LineExcludingLastSegment":{let t=this._arrowPath(i),s=[],n=t.length-2;for(;n--;)s.push(t[n]);e.push(s);break}case"MultivertexArrow":{let t=this._arrowPath(i),s=[];this._addArrow(s,t,!1),e.push(s);break}case"CrossedArrow":{let t=this._arrowPath(i),s=[];this._addArrow(s,t,!0),e.push(s);break}case"ChevronArrow":{let[t,s]=this._arrowLastSeg(i),r=10*this._geomUnitsPerPoint,h=this._sub(n,t),a=this._norm(h);this._normalize(h);let l=this._crossProduct(h,this._sub(s,t)),o=this._dotProduct(h,this._sub(s,t));o<.05*a?o=.05*a:o>.95*a-r&&(o=.95*a-r);let u=[t[0]+h[0]*o,t[1]+h[1]*o],c=this._leftPerp(h),_=[];_.push([u[0]+c[0]*l+h[0]*r,u[1]+c[1]*l+h[1]*r]),_.push(n),_.push([u[0]-c[0]*l+h[0]*r,u[1]-c[1]*l+h[1]*r]),e.push(_);break}case"ChevronArrowOffset":{let[t,s]=this._arrowLastSeg(i),r=this._sub(n,t),h=this._norm(r);this._normalize(r);let a=this._crossProduct(r,this._sub(s,t)),l=this._dotProduct(r,this._sub(s,t));l<.05*h?l=.05*h:l>.95*h&&(l=.95*h);let o=[t[0]+r[0]*l,t[1]+r[1]*l];this._leftPerpendicular(r);let u=[];u.push([o[0]+r[0]*a*.5,o[1]+r[1]*a*.5]),u.push(this._mid(o,n)),u.push([o[0]-r[0]*a*.5,o[1]-r[1]*a*.5]),e.push(u);break}case"PartialFirstSegment":{let[t,s]=this._arrowLastSeg(i),r=this._sub(n,t),h=this._norm(r);this._normalize(r);let a=this._dotProduct(r,this._sub(s,t));a<.05*h?a=.05*h:a>.95*h&&(a=.95*h);let l=[t[0]+r[0]*a,t[1]+r[1]*a];e.push([t,l]);break}case"Arch":{let t=this._cp2(i,0,-1),s=this._cp3(i,t,.5,1),r=this._sub(n,t),h=this._mix(s,1,r,.55),a=this._mix(s,1,r,-.55),l=[n];this._addBezier2(l,n,h,s,4),this._addBezier2(l,s,a,t,4),e.push(l);break}case"CurvedParallelTicks":{let t=this._cp2(i,-4,1),s=this._cp3(i,t,.882353,-1.94),r=this._sub(s,t);this._crossProduct(r,this._sub(n,t))>0?this._rightPerpendicular(r):this._leftPerpendicular(r);let h=[r[0]/8,r[1]/8],a=this._sub(this._mid(t,s),h),l=this._sub(this._mix(t,.75,s,.25),h),o=this._sub(this._mix(t,.25,s,.75),h),u=[t];this._addBezier2(u,t,l,a,3),this._addBezier2(u,a,o,s,3),e.push(u);for(let t=0;t<8;t++){let i=u[2*t+1],s=[this._clone(i)];s.push(this._add(i,[r[0]/4,r[1]/4])),e.push(s)}break}case"Arc90Degrees":{let t=this._cp2(i,0,-1),s=this._cp3(i,t,.5,1),r=[t];this._add90DegArc(r,t,n,s),e.push(r);break}case"TipWithPerpendicularAndTicks":{let[t,s]=this._arrowLastSeg(i),r=10*this._geomUnitsPerPoint,h=this._sub(n,t),a=this._norm(h);this._normalize(h);let l=this._crossProduct(h,this._sub(s,t)),o=this._dotProduct(h,this._sub(s,t));o<.05*a?o=.05*a:o>.95*a-r&&(o=.95*a-r);let u=this._leftPerp(h),c=[n[0]-h[0]*r,n[1]-h[1]*r],_=.5*Math.max(a-o-r,r);l=Math.abs(l);let p=[];p.push([c[0]+u[0]*(l+_)-h[0]*_,c[1]+u[1]*(l+_)-h[1]*_]),p.push([c[0]+u[0]*l,c[1]+u[1]*l]),p.push([c[0]-u[0]*l,c[1]-u[1]*l]),p.push([c[0]-u[0]*(l+_)-h[0]*_,c[1]-u[1]*(l+_)-h[1]*_]),e.push(p),e.push([c,n]);break}case"ConcentricCircles":{let t=this._cp2(i,1,0),r=this._cp3(i,t,2,0),h=Math.cos(Math.PI/18),a=Math.sin(Math.PI/18),l=this._dist(t,n),o=[l,0],u=[];for(let t=0;t<=36;t++)u.push(this._add(n,o)),this._rotateDirect(o,h,a);if(e.push(u),s>=4){u=[];let t=i[3];l=this._dist(t,n),o=[l,0];for(let t=0;t<=36;t++)u.push(this._add(n,o)),0===t&&(u.push(this._add(n,o)),g(u[1],1)),this._rotateDirect(o,h,a);e.push(u)}u=[],l=this._dist(r,n),o=[l,0];for(let t=0;t<=36;t++)u.push(this._add(n,o)),this._rotateDirect(o,h,a);e.push(u);break}case"DoubleJogArrow":{n=this._arrowPath(i)[0];let[t,s]=this._arrowLastSeg(i),r=this._sub(n,t),h=this._norm(r);this._normalize(r);let a=Math.abs(this._crossProduct(r,this._sub(s,n))),l=Math.abs(this._dotProduct(r,this._sub(s,n)));l<.05*h?l=.05*h:l>.95*h&&(l=.95*h);let o=Math.max(a,l),u=this._leftPerp(r),c=[],_=[n[0]-r[0]*l*.5+u[0]*a*.5,n[1]-r[1]*l*.5+u[1]*a*.5];c.push([_[0],_[1]]),_[0]+=r[0]*o*.5+u[0]*o*.4,_[1]+=r[1]*o*.5+u[1]*o*.4,c.push([_[0],_[1]]),_[0]-=u[0]*o*.25,_[1]-=u[1]*o*.25,c.push([_[0],_[1]]),_[0]+=r[0]*o*.5+u[0]*o*.4,_[1]+=r[1]*o*.5+u[1]*o*.4,c.push([_[0],_[1]]),e.push(c),c=[],_[0]=n[0]-r[0]*l*.5-u[0]*a*.5,_[1]=n[1]-r[1]*l*.5-u[1]*a*.5,c.push([_[0],_[1]]),_[0]+=r[0]*o*.5-u[0]*o*.4,_[1]+=r[1]*o*.5-u[1]*o*.4,c.push([_[0],_[1]]),_[0]+=u[0]*o*.25,_[1]+=u[1]*o*.25,c.push([_[0],_[1]]),_[0]+=r[0]*o*.5-u[0]*o*.4,_[1]+=r[1]*o*.5-u[1]*o*.4,c.push([_[0],_[1]]),e.push(c);break}case"LinkedChevrons":{let t=this._cp2(i,-5,0),s=this._cp3(i,t,-.2,1),r=this._sub(n,t);this._normalize(r);let h=this._leftPerp(r),a=Math.abs(this._crossProduct(r,this._sub(s,t)));e.push([t,n]);let l=[];l.push([n[0]-r[0]*a+h[0]*a,n[1]-r[1]*a+h[1]*a]),l.push(n),l.push([n[0]-r[0]*a-h[0]*a,n[1]-r[1]*a-h[1]*a]),e.push(l),this._addDash(e,t,[-r[0]*a+h[0]*a,-r[1]*a+h[1]*a]),this._addDash(e,t,[-r[0]*a-h[0]*a,-r[1]*a-h[1]*a]);break}case"SegmentThenHalfCircle":{let t,r=this._cp2(i,2,0),h=this._cp3(i,r,1.5,0);t=s>=4?i[3]:this._cp3(i,r,1.25,-.5);let a=this._sub(r,n);this._normalize(a);let l=.5*this._dist(r,h),o=this._crossProduct(a,this._sub(t,n))>0,u=Math.cos(Math.PI/18),c=Math.sin(Math.PI/18);o&&(c=-c);let _=[n,r];a[0]*=l,a[1]*=l;let p=this._add(r,a);a[0]=-a[0],a[1]=-a[1];for(let t=1;t<=18;t++)this._rotateDirect(a,u,c),_.push(this._add(p,a));e.push(_);break}case"LineWithStraightTicks":{let t=this._cp2(i,-2,1),s=this._cp3(i,t,-1,-.5),r=this._sub(s,t);this._normalize(r);let h=this._dotProduct(r,this._sub(t,n)),a=this._dotProduct(r,this._sub(s,n)),l=[n];l.push([n[0]+r[0]*h,n[1]+r[1]*h]),l.push(t),e.push(l),l=[n],l.push([n[0]+r[0]*a,n[1]+r[1]*a]),l.push(s),e.push(l);break}case"DoubleCurve":{let t=this._cp2(i,-5,-1),s=this._cp3(i,t,2,0),r=Math.atan2(1,5),h=Math.cos(r),a=Math.sin(r),l=this._sub(t,n),o=this._dist(n,t);this._normalize(l),this._rotateDirect(l,h,-a);let u=[n];u.push([n[0]+l[0]*o*.5,n[1]+l[1]*o*.5]),g(u[1],1),u.push([n[0]+l[0]*o*.8,n[1]+l[1]*o*.8]),this._addBezier2(u,u[2],[n[0]+l[0]*o,n[1]+l[1]*o],t,3);let c=this._sub(s,t),_=this._dist(t,s);this._normalize(c),this._rotateDirect(c,h,-a),this._addBezier2(u,t,[s[0]-c[0]*_,s[1]-c[1]*_],[s[0]-c[0]*_*.8,s[1]-c[1]*_*.8],3),u.push(s),e.push(u);break}case"ParallelWithTicksByWidth":{let t=this._cp2(i,0,-1),s=this._cp3(i,t,.5,3),r=this._sub(t,n);this._normalize(r);let h=this._crossProduct(r,this._sub(s,n));this._leftPerpendicular(r),h>0?(this._addAngledTicks(e,n,[n[0]+r[0]*h,n[1]+r[1]*h],t),this._addAngledTicks(e,t,[t[0]+r[0]*h,t[1]+r[1]*h],n)):(this._addAngledTicks(e,[n[0]+r[0]*h,n[1]+r[1]*h],n,t),this._addAngledTicks(e,[t[0]+r[0]*h,t[1]+r[1]*h],n,t));break}case"EnclosingRoundedRectangle":{let t=this._cp2(i,3,-2),e=[Math.min(n[0],t[0]),Math.max(n[1],t[1])],s=[Math.max(n[0],t[0]),Math.min(n[1],t[1])],r=s[0]-e[0],h=e[1]-s[1],a=Math.min(r,h)/10,l=[];l.push([e[0]+a+.75*(r-2*a),e[1]]),l.push([s[0]-a,e[1]]),this._add90DegArc(l,[s[0]-a,e[1]],[s[0],e[1]-a],[s[0],e[1]]),l.push([s[0],s[1]+a]),this._add90DegArc(l,[s[0],s[1]+a],[s[0]-a,s[1]],s),l.push([e[0]+a,s[1]]),this._add90DegArc(l,[e[0]+a,s[1]],[e[0],s[1]+a],[e[0],s[1]]),l.push([e[0],e[1]-a]),this._add90DegArc(l,[e[0],e[1]-a],[e[0]+a,e[1]],e),l.push([e[0]+a+.75*(r-2*a),e[1]]);break}case"ParallelOffsetByValue":{if(i.length<2||0===this._width)break;let t=this._offsetPath(i,.5*this._width);t&&e.push(t);let s=this._offsetPath(i,.5*-this._width);s&&e.push(s);break}default:e.push(i)}}return e}}class R{static{this.instance=null}static local(){return null===R.instance&&(R.instance=new R),R.instance}execute(t,e,i){return new F(t,e,i)}}class F extends y{constructor(t,e,i){super(t,!0,!0),this._curveHelper=new P;let s=i?.geomUnitsPerPoint;this._beginCut=(void 0===e.beginCut?1:e.beginCut)*s,this._endCut=(void 0===e.endCut?1:e.endCut)*s,this._middleCut=(void 0===e.middleCut?0:e.middleCut)*s,this._invert=void 0!==e.invert&&e.invert,this._beginCut<0&&(this._beginCut=0),this._endCut<0&&(this._endCut=0),this._middleCut<0&&(this._middleCut=0)}processPath(t){let{_beginCut:e,_endCut:i,_middleCut:s}=this,n=t.pathLength(),r=u.z.createEmptyOptimizedCIM("esriGeometryPolyline");if(this._invert){if(0!==e||0!==i||0!==s)if(e+i+s>=n)for(r.startPath();t.nextPoint();)r.pushXY(t.x,t.y);else this._curveHelper.appendSubCurve(r,t,0,e),this._curveHelper.appendSubCurve(r,t,.5*(n-s),.5*(n+s)),this._curveHelper.appendSubCurve(r,t,n-i,i)}else if(0===e&&0===i&&0===s)for(r.startPath();t.nextPoint();)r.pushXY(t.x,t.y);else e+i+s<n&&(0===s?this._curveHelper.appendSubCurve(r,t,e,n-i):(this._curveHelper.appendSubCurve(r,t,e,.5*(n-s)),this._curveHelper.appendSubCurve(r,t,.5*(n+s),n-i)));return 0===r.totalSize?null:r}}var X=i(45733);class Y{constructor(){this._values=[],this.extPtGap=0,this.ctrlPtGap=0,this._length=0,this._currentValue=0}isEmpty(){return 0===this._values.length}size(){return this._values.length}init(t,e=!0){if(this._setEmpty(),!t||0===t.length)return!1;for(let i=0;i<t.length;i++){let s=Math.abs(t[i]);e&&s<1e-7&&(s=1e-7),this._values.push(s),this._length+=s}return 0!==this._length&&(this.ctrlPtGap=this.extPtGap=0,this._currentValue=-1,!0)}scale(t){let e=this._values?this._values.length:0;for(let i=0;i<e;++i)this._values[i]*=t;this._length*=t,this.extPtGap*=t,this.ctrlPtGap*=t}addValue(t){this._length+=t,this._values.push(t)}firstValue(){return this._values[0]}lastValue(){return this._values[this._values.length-1]}nextValue(){return this._currentValue++,this._currentValue===this._values.length&&(this._currentValue=0),this._values[this._currentValue]}reset(){this._currentValue=-1}length(){return this._length}_setEmpty(){this.extPtGap=this.ctrlPtGap=this._length=0,this._currentValue=-1,this._values.length=0}}class D{constructor(){this.pt=null,this.ca=0,this.sa=0}}class W{constructor(){this.reset()}reset(){this.segment=null,this.segmentLength=0,this.abscissa=0,this.isPathEnd=!1,this.isPartEnd=!1}isValid(){return null!==this.segment}copyTo(t){t.segment=this.segment,t.segmentLength=this.segmentLength,t.abscissa=this.abscissa,t.isPathEnd=this.isPathEnd,t.isPartEnd=this.isPartEnd}}class U extends P{constructor(t=0,e=!1){super(t,e),this._tempPos=new W,this._tempPt=[0,0],this._tolerance=.03,this._currentPosition=new W}updateTolerance(t){this._tolerance=.03*t}init(t,e,i=!0){return i?(this._patternLength=e.length(),this._partExtPtGap=e.extPtGap,this._partCtrlPtGap=e.ctrlPtGap):(this._patternLength=0,this._partExtPtGap=0,this._partCtrlPtGap=0),this._currentPosition.reset(),this._partSegCount=0,this._pathCursor=t,this._seg=-1,this._setPosAtNextPart()}curPositionIsValid(){return this._currentPosition.isValid()}nextPosition(t,e=0){let i=new W;return!!this._nextPosition(t,i,null,e)&&(i.copyTo(this._currentPosition),!0)}curPointAndAngle(t){t.pt=this._getPoint(this._currentPosition);let[e,i]=this._getAngleCS(this._tempPt,this._currentPosition);t.ca=e,t.sa=i}nextPointAndAngle(t,e,i=0){let s=this._tempPos;if(!this._nextPosition(t,s,null,i))return!1;s.copyTo(this._currentPosition),e.pt=this._getPoint(s);let[n,r]=this._getAngleCS(this._tempPt,s);return e.ca=n,e.sa=r,!0}nextCurve(t){if(0===t)return null;let e=u.z.createEmptyOptimizedCIM("esriGeometryPolyline");e.startPath(),e.nextPath();let i=new W;return this._nextPosition(t,i,e,1)?(i.copyTo(this._currentPosition),e):null}isPathEnd(){return this._currentPosition.isPathEnd}getPathEnd(){return this._currentPosition.segment[1]}getPt(t){return this._pathCursor.seekInPath(t),[this._pathCursor.x,this._pathCursor.y]}getSeg(t){return[this.getPt(t),this.getPt(t+1)]}_nextPosition(t,e,i,s){if(this._currentPosition.isPathEnd)return!1;let n=this._currentPosition.abscissa;for(this._currentPosition.segmentLength>0&&(n/=this._currentPosition.segmentLength),this._currentPosition.copyTo(e);e.abscissa+t*this._partLengthRatio>e.segmentLength+this._tolerance;){if(i){if(0===i.pathSize)if(0===n){let t=e.segment[0];i.pushXY(t[0],t[1])}else i.pushPoint(this.getSegCoord2D(e.segment,n));let t=e.segment[1];i.pushXY(t[0],t[1])}if(n=0,t-=(e.segmentLength-e.abscissa)/this._partLengthRatio,this._partSegCount)e.segment=this._nextSegment(),e.segmentLength=this.getSegLength(e.segment),e.abscissa=0,this._partSegCount--;else{if(!this._setPosAtNextPart())return 0!==s&&(e.segmentLength=this.getSegLength(e.segment),e.isPartEnd=!0,1===s?(e.abscissa=e.segmentLength,e.isPathEnd=!0):e.abscissa=e.segmentLength+t,!0);this._currentPosition.copyTo(e)}}if(e.abscissa+=t*this._partLengthRatio,i){0===i.pathSize&&(0===n?i.pushPoint(e.segment[0]):i.pushPoint(this.getSegCoord2D(e.segment,n)));let t=e.abscissa/e.segmentLength;1===t?i.pushPoint(e.segment[1]):i.pushPoint(this.getSegCoord2D(e.segment,t))}return this._partSegCount||Math.abs(e.abscissa-e.segmentLength)<this._tolerance&&(e.isPathEnd=this._partIsLast,e.isPartEnd=!0),!0}_getPoint(t){let e=t.segmentLength<=0?0:t.abscissa/t.segmentLength;return this.getSegCoord2D(this._currentPosition.segment,e)}_getAngleCS(t,e){let i=e.segmentLength<=0?0:e.abscissa/e.segmentLength;return this.getSegAngleCS(t,this._currentPosition.segment,i)}_setPosAtNextPart(){for(;this._partSegCount;)this._hasNextSegment()&&this._nextSegment(),this._partSegCount--;if(!this._hasNextSegment())return!1;for(this._partLength=0,this._partIsLast=!0,this._partSegCount=0;this._hasNextSegment();)if(this._partLength+=this.getSegLength(this._nextSegment()),this._partSegCount++,this._pathCursor.getControlPointAt(this._getEndPointIndex())){this._partIsLast=!this._hasNextSegment();break}let t=this._partSegCount;for(;t;)this._previousSegment(),--t;this._currentPosition.segment=this._nextSegment(),this._currentPosition.segmentLength=this.getSegLength(this._currentPosition.segment),this._currentPosition.abscissa=0,this._currentPosition.isPathEnd=this._currentPosition.isPartEnd=!1,--this._partSegCount;let e=this._getStartPointIndex();this._ctrlPtBegin=this._pathCursor.getControlPointAt(e);let i=e+this._partSegCount+1;if(i>=this._pathCursor.pathSize&&(i=0),this._ctrlPtEnd=this._pathCursor.getControlPointAt(i),this._patternLength>0){let t=this._ctrlPtBegin?this._partCtrlPtGap:this._partExtPtGap,e=this._ctrlPtEnd?this._partCtrlPtGap:this._partExtPtGap,i=Math.round((this._partLength-(t+e))/this._patternLength);i<=0&&(i=t+e>0?0:1),this._partLengthRatio=this._partLength/(t+e+i*this._patternLength),this._partLengthRatio<.01&&(this._partLengthRatio=1)}else this._partLengthRatio=1;return!0}_hasNextSegment(){return this._seg<this._pathCursor.pathSize-2}_previousSegment(){return this.getSeg(--this._seg)}_nextSegment(){return this.getSeg(++this._seg)}_getStartPointIndex(){return this._seg}_getEndPointIndex(){return this._seg+1}}class B{static{this.instance=null}static local(){return null===B.instance&&(B.instance=new B),B.instance}execute(t,e,i){return new H(t,e,i)}}class H extends y{constructor(t,e,i){super(t,!0,!0),this._firstCurve=null;let s=i.geomUnitsPerPoint;this._walker=new U,this._walker.updateTolerance(s),this._endings=e.lineDashEnding??"NoConstraint",this._customDashPos=-(e.offsetAlongLine??0)*s,this._offsetAtEnd=(e.customEndingOffset??0)*s;let n=(0,X.FH)(e).dashTemplate;n??=[];let r=(0,X.OI)(n);n=r.hidesLine?[-1]:r.dashTemplate,this._pattern=new Y,this._pattern.init(n,!1),this._pattern.scale(s)}processPath(t){if(this._pattern.size()%2==1)return null;if(0===this._pattern.length()){this.iteratePath=!1;let e=(0,m.A)(t);return u.z.fromJSONCIM({paths:[e]})}if(!this.iteratePath){let e=!0;switch(this._endings){case"HalfPattern":case"HalfGap":default:this._pattern.extPtGap=0;break;case"FullPattern":this.isClosed||(this._pattern.extPtGap=.5*this._pattern.firstValue());break;case"FullGap":this.isClosed||(this._pattern.extPtGap=.5*this._pattern.lastValue());break;case"NoConstraint":this.isClosed||(e=!1);break;case"Custom":this.isClosed||(this._pattern.extPtGap=.5*this._offsetAtEnd)}let i=t.pathLength();if(this._pattern.isEmpty()||i<.1*this._pattern.length()||!this._walker.init(t,this._pattern,e)){let e=(0,m.A)(t);return u.z.fromJSONCIM({paths:[e]})}}let e;if(this.iteratePath)e=this._pattern.nextValue();else{let t;switch(this._endings){case"HalfPattern":default:t=.5*this._pattern.firstValue();break;case"HalfGap":t=.5*-this._pattern.lastValue();break;case"FullGap":t=-this._pattern.lastValue();break;case"FullPattern":t=0;break;case"NoConstraint":case"Custom":t=-this._customDashPos}let i=t/this._pattern.length();i-=Math.floor(i),t=i*this._pattern.length(),this._pattern.reset(),e=this._pattern.nextValue();let s=!1;for(;t>=e;)t-=e,e=this._pattern.nextValue(),s=!s;e-=t,s?(this._walker.nextPosition(e),e=this._pattern.nextValue()):this.isClosed&&(this._firstCurve=this._walker.nextCurve(e),e=this._pattern.nextValue(),this._walker.nextPosition(e),e=this._pattern.nextValue())}0===e&&(e=this._pattern.nextValue(),this._walker.nextPosition(e),e=this._pattern.nextValue());let i=this._walker.nextCurve(e);if(i)if(this._walker.isPathEnd()){if(this.iteratePath=!1,this._firstCurve){for(this._firstCurve.nextPath();this._firstCurve.nextPoint();)i.pushXY(this._firstCurve.x,this._firstCurve.y);this._firstCurve=null}}else e=this._pattern.nextValue(),!this._walker.nextPosition(e)||this._walker.isPathEnd()?(this.iteratePath=!1,this._firstCurve&&=(i.pushCursor(this._firstCurve),null)):this.iteratePath=!0;else this.iteratePath=!1,i=this._firstCurve,this._firstCurve=null;return i?.reset(),i}}class V{static{this.instance=null}static local(){return null===V.instance&&(V.instance=new V),V.instance}execute(t,e,i){return new q(t,e,i)}}class q{constructor(t,e,i){this._inputGeometries=t,this._tileKey=i.tileKey,this._maxInflateSize=i.maxInflateSize*i.geomUnitsPerPoint,this._preventClipping=i.preventClipping,this._width=(void 0===e.width?2:e.width)*i.geomUnitsPerPoint,e.method,this._option=e.option??"Accurate"}next(){let t;for(;t=this._inputGeometries.next();){if("esriGeometryEnvelope"===t.geometryType&&this._width>0){let e=t.asJSON();return Math.min(e.xmax-e.xmin,e.ymax-e.ymin)-2*this._width<0?t:u.z.fromJSONCIM({paths:[[[e.xmin+this._width,e.ymin+this._width],[e.xmax-this._width,e.ymin+this._width],[e.xmax-this._width,e.ymax-this._width],[e.xmin+this._width,e.ymax-this._width],[e.xmin+this._width,e.ymin+this._width]],[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]]]})}if("esriGeometryPolygon"===t.geometryType){if(0===this._width)return t.clone();let{bufferExecute:e}=v.$Z.module,i=!this._preventClipping&&this._tileKey?(0,v.qc)(t,this._maxInflateSize,!0):t.clone();if(!i)continue;let s=e({...i.asJSON(),spatialReference:{wkid:C.A.WebMercator.wkid}},-this._width);if(s)for(let t of s.rings)if(t){i.startPath();for(let e of t.reverse())i.pushXY(e[0],i.yFactor*e[1])}return i}}return null}}var J=i(537);class Z{static{this.instance=null}static local(){return null===Z.instance&&(Z.instance=new Z),Z.instance}execute(t,e,i){return new $(t,e,i)}}class ${constructor(t,e,i){this._inputGeometries=t,this._medhod=e.method}next(){let t=this._inputGeometries.next(),e=this._medhod;for(;null!=t;){if(t.totalSize>0)switch(e){case"RectangularBox":return j(t);case"ConvexHull":return this._constructConvexHull(t);default:return K(t)}t=this._inputGeometries.next()}return null}_constructConvexHull(t){switch(t.geometryType){case"esriGeometryPolyline":case"esriGeometryPolygon":{let{convexHullExecute:e}=v.lX.module,i=e({...t.asJSON(),spatialReference:{wkid:C.A.WebMercator.wkid}});return i?u.z.fromJSONCIM(i):null}case"esriGeometryEnvelope":return t;default:return null}}}function j(t){let e=(0,J.z8)(t),i={xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3]};return u.z.fromJSONCIM(i)}function K(t){switch(t.geometryType){case"esriGeometryPolyline":{let e=[];for(;t.nextPath();)Q(t,e);return u.z.fromJSONCIM({rings:e})}case"esriGeometryPolygon":case"esriGeometryEnvelope":return t;default:return null}}function Q(t,e){if(t.seekPathStart(),!t.nextPoint())return;let i=t.x,s=t.y,n=[[i,s]];for(e.push(n);t.nextPoint();)n.push([t.x,t.y]);n.push([i,s])}class tt{static{this.instance=null}static local(){return null===tt.instance&&(tt.instance=new tt),tt.instance}execute(t,e,i){return new et(t,e,i)}}class et extends y{constructor(t,e,i){super(t,!1,!0),this._curveHelper=new P;let s=i.geomUnitsPerPoint;this._length=(void 0===e.length?20:e.length)*s,this._angle=void 0===e.angle?225:e.angle,this._position=void 0===e.position?50:e.position,this._length<0&&(this._length=-this._length),this._position<20&&(this._position=20),this._position>80&&(this._position=80),this._mirror=!1}processPath(t){let e=u.z.createEmptyOptimizedCIM("esriGeometryPolyline");if(this._curveHelper.isEmpty(t))return null;t.seekInPath(0);let i=t.x,s=t.y;t.seekInPath(t.pathSize-1);let n=t.x,r=t.y,h=[n-i,r-s];this._curveHelper.normalize(h);let a=i+(n-i)*this._position/100,l=s+(r-s)*this._position/100,o=Math.cos((90-this._angle)/180*Math.PI),c=Math.sin((90-this._angle)/180*Math.PI);this._mirror&&(c=-c),this._mirror=!this._mirror;let _=[a-this._length/2*o,l-this._length/2*c],p=[a+this._length/2*o,l+this._length/2*c];return e.pushPath([[i,s],_,p,[n,r]]),e}}class it{static{this.instance=null}static local(){return null===it.instance&&(it.instance=new it),it.instance}execute(t,e,i){return new st(t,e,i)}}class st{constructor(t,e,i){this._inputGeometries=t;let s=i.geomUnitsPerPoint;this._offsetX=void 0===e.offsetX?0:e.offsetX*s,this._offsetY=void 0===e.offsetY?0:e.offsetY*s}next(){let t=this._inputGeometries.next();for(;t;){if(t.totalSize>0)return this._move(t.clone(),this._offsetX,this._offsetY);t=this._inputGeometries.next()}return null}_move(t,e,i){for(;t.nextPath();)for(;t.nextPoint();)t.x+=e,t.y+=i;return t.reset(),t}}var nt=i(60408);class rt{static{this.instance=null}static local(){return null===rt.instance&&(rt.instance=new rt),rt.instance}execute(t,e,i){return new ht(t,e,i)}}class ht{constructor(t,e,i){let s=i.geomUnitsPerPoint,n=i.maxInflateSize;this._preventClipping=i.preventClipping,this._inputGeometries=t,this._tileKey=i.tileKey,this._curveHelper=new P,this._offset=(e.offset??1)*s,this._method=e.method??"Square",this._maxInflateSize=Math.max(Math.abs(n*s),10),this._offsetFlattenError=.03*s}next(){let t;for(;t=this._inputGeometries.next();){if(0===this._offset)return t.clone();if("esriGeometryEnvelope"===t.geometryType){if("Rounded"===this._method&&this._offset>0){let e=(0,m.A)(t),i=this._curveHelper.offset(e,-this._offset,this._method,4,this._offsetFlattenError);if(i){let e=u.z.createEmptyOptimizedCIM(t.geometryType);return e.pushPath(i),e}return null}let e=t.asJSON();if((0,nt.ZC)(e)&&Math.min(e.xmax-e.xmin,e.ymax-e.ymin)+2*this._offset>0)return u.z.fromJSONCIM({xmin:e.xmin-this._offset,xmax:e.xmax+this._offset,ymin:e.ymin-this._offset,ymax:e.ymax+this._offset})}let e=!this._preventClipping&&this._tileKey?(0,v.qc)(t,this._maxInflateSize,!0):t.clone();if(!e)continue;let{simplifyOGCExecute:i}=v.xR.module,{offsetExecute:s}=v.mO.module,{graphicBufferExecuteMany:n}=v.hd.module,r=i({...e.asJSON(),spatialReference:{wkid:C.A.WebMercator.wkid}});if(!r)continue;let h,a=at(this._method);return"esriGeometryPolygon"===t.geometryType?("square"===a&&(a="bevel"),h=n([r],[this._offset],a,"round")[0]):h=s(r,-this._offset,{joins:a,flattenError:this._offsetFlattenError,miterLimit:4}),h?u.z.fromJSONCIM(h):null}return null}}function at(t){switch(t){case"Rounded":return"round";case"Bevelled":return"bevel";case"Mitered":return"miter";case"Square":return"square"}}var lt=i(12359);class ot{static{this.instance=null}static local(){return null===ot.instance&&(ot.instance=new ot),ot.instance}execute(t,e,i){return new ut(t,e,i)}}class ut{constructor(t,e,i){let s=i.geomUnitsPerPoint;this._inputGeometries=t,this._executionContext=i,this._length=(void 0===e.length?z.D.CIMGeometricEffectRadial.length:e.length)*s,this._angle=void 0===e.angle?z.D.CIMGeometricEffectRadial.angle:e.angle*Math.PI/180,this._lx=Math.cos(this._angle)*this._length,this._ly=Math.sin(this._angle)*this._length}next(){let t=this._inputGeometries.next();for(;t;){if("esriGeometryPoint"===t.geometryType||"esriGeometryMultipoint"===t.geometryType){let e=u.z.createEmptyOptimizedCIM("esriGeometryPolyline");return t.nextPath()&&t.nextPoint()&&(this._executionContext.effectOrigin=[t.x,t.y],e.pushPath([[t.x,t.y],[t.x+this._lx,t.y+this._ly]])),e}if("esriGeometryPolygon"===t.geometryType){let e=(0,lt.IK)(t);if(!e)return null;let i=u.z.createEmptyOptimizedCIM("esriGeometryPolyline");return this._executionContext.effectOrigin=[e[0],e[1]],i.pushPath([[e[0],e[1]],[e[0]+this._lx,e[1]+this._ly]]),i}t=this._inputGeometries.next()}return null}}class ct{static{this.instance=null}static local(){return null===ct.instance&&(ct.instance=new ct),ct.instance}execute(t,e,i){return new _t(t,e,i)}}class _t{constructor(t,e,i){this._inputGeometries=t,this._reverse=void 0===e.reverse||e.reverse}next(){let t=this._inputGeometries.next();for(;t;){if(!this._reverse)return t;if("esriGeometryPolyline"===t.geometryType)return pt(t.clone());t=this._inputGeometries.next()}return null}}function pt(t){for(;t.nextPath();)for(let e=0;e<t.pathSize/2;e++){t.seekInPath(e);let i=t.x,s=t.y;t.seekInPath(t.pathSize-e-1);let n=t.x,r=t.y;t.x=i,t.y=s,t.seekInPath(e),t.x=n,t.y=r}return t.reset(),t}class ft{static{this.instance=null}static local(){return null===ft.instance&&(ft.instance=new ft),ft.instance}execute(t,e,i){return new mt(t,e,i)}}class mt{constructor(t,e,i){this._inputGeometries=t,this._rotateAngle=void 0===e.angle?0:e.angle*Math.PI/180}next(){let t=this._inputGeometries.next();for(;t;){if(0===this._rotateAngle||"esriGeometryPoint"===t.geometryType)return t;if(t.totalSize>0){let e=(0,J.z8)(t),i=(e[2]+e[0])/2,s=(e[3]+e[1])/2;return t.reset(),this._rotate(t.clone(),i,s)}t=this._inputGeometries.next()}return null}_rotate(t,e,i){let s=Math.cos(this._rotateAngle),n=Math.sin(this._rotateAngle);for(;t.nextPath();)for(;t.nextPoint();){let r=t.x-e,h=t.y-i;t.x=e+r*s-h*n,t.y=i+r*n+h*s}return t.reset(),t}}class dt{static{this.instance=null}static local(){return null===dt.instance&&(dt.instance=new dt),dt.instance}execute(t,e,i){return new gt(t,e,i)}}class gt{constructor(t,e,i){this._inputGeometries=t,this._xFactor=void 0===e.xScaleFactor?1.15:e.xScaleFactor,this._yFactor=void 0===e.yScaleFactor?1.15:e.yScaleFactor}next(){let t=this._inputGeometries.next();if(t){if(1===this._xFactor&&1===this._yFactor||"esriGeometryPoint"===t.geometryType)return t;if(t.totalSize>0){let e=(0,J.z8)(t),i=(e[2]+e[0])/2,s=(e[3]+e[1])/2;return t.reset(),this._scaleCursor(t.clone(),i,s)}}return null}_scaleCursor(t,e,i){for(;t.nextPath();)for(;t.nextPoint();)t.x=e+(t.x-e)*this._xFactor,t.y=i+(t.y-i)*this._yFactor;return t.reset(),t}}class xt{constructor(){this._polyline=[]}beginPath(t){this._polyline.push([t])}lineTo(t){if(0===this._polyline.length)throw Error("No path started. Call beginPath first.");this._polyline[this._polyline.length-1].push(t)}getPointCount(){return this._polyline.reduce((t,e)=>t+e.length,0)}addSegment(t,e,i){i&&this.beginPath(t),this.lineTo(e)}getXY(t){let e=0;for(let i of this._polyline){if(t<e+i.length)return i[t-e];e+=i.length}return null}getGeometry(){return this._polyline}}class yt{static{this.instance=null}static local(){return null===yt.instance&&(yt.instance=new yt),yt.instance}execute(t,e,i){return new Pt(t,e,i)}}class Pt extends y{constructor(t,e,i){super(t,!1,!0),this._suppress=void 0!==e.suppress&&e.suppress,this._invert=void 0!==e.invert&&e.invert}processPath(t){if(t.totalSize<=0)return null;if(!this._suppress){let e=u.z.createEmptyOptimizedCIM("esriGeometryPolygon",!1,!1,t.yFactor);for(t.seekPathEnd();t.nextPoint();)e.pushXY(t.x,t.y);return e}let e=[],i=Array(t.pathSize),s=0;for(t.seekPathStart();t.nextPoint();)i[s++]=t.getControlPoint(),e.push([t.x,t.y]);let n=!0,r=!0,h=!1,a=!this._invert;s=0;let l=new xt,o=e[0];for(;s<e.length-1;){let t=e[s+1],u=i[s],c=i[s+1];s++,r&&=(a=u||c?this._invert:!this._invert,!1),a?(l.addSegment(o,t,n),n=!1):h=!0,o=t,c&&(a?(a=!1,n=!0):a=!0)}let c=l.getGeometry();if(0===c.length)return null;if(!h&&e[0][0]===e[e.length-1][0]&&e[0][1]===e[e.length-1][1]){let t=c[c.length-1];return(t[0][0]!==t[t.length-1][0]||t[0][1]!==t[t.length-1][1])&&t.push([t[0][0],t[0][1]]),u.z.fromJSONCIM({paths:c})}let _=c[c.length-1];return l.getPointCount()>1&&"esriGeometryPolygon"===t.geometryType&&_[0][0]===_[_.length-1][0]&&_[0][1]===_[_.length-1][1]&&c.length>1&&(c[c.length-1].push(...c[0]),c.splice(0,1)),u.z.fromJSONCIM({paths:c})}}var Mt=i(49186),bt=i(53966),Ct=i(6774);const vt=()=>bt.A.getLogger("esri.symbols.cim.effects.EffectTaperedPolygon");class wt{static{this.instance=null}static local(){return null===wt.instance&&(wt.instance=new wt),wt.instance}execute(t,e,i){return new St(t,e,i)}}class St extends y{constructor(t,e,i){super(t,!1,!0),this._slopeS=0,this._slopeC=1,this._lastTangent1=new Ct.bR(NaN,NaN),this._lastWidth=0;let s=i.geomUnitsPerPoint;this._geomUnitsPerPoint=s,this._halfFromWidth=Math.abs(void 0===e.fromWidth?0:e.fromWidth)*s*.5,this._halfToWidth=Math.abs(void 0===e.toWidth?1:e.toWidth)*s*.5,this._originalLength=(void 0===e.length?0:e.length)*s,this._length=0}processPath(t){if(t.totalSize<=0)return null;if(this._halfFromWidth<=0&&this._halfToWidth<=0){let e=u.z.createEmptyOptimizedCIM("esriGeometryPolygon",!1,!1,t.yFactor);for(t.seekPathEnd();t.prevPoint();)e.pushXY(t.x,t.y);for(t.seekPathStart();t.nextPoint();)e.pushXY(t.x,t.y);return e}let e=t.getCurrentPath().asJSON(),{generalizeExecute:i}=v.NS.module,s=i(e,.25*this._geomUnitsPerPoint,{removeDegenerateParts:!0}),n=null==s?null:(0,nt.Bi)(s)?s.rings:(0,nt.Rg)(s)?s.paths:null;if(!n)return vt().error(new Mt.A("mapview-bad-resource","Unable to process geometry")),null;let{lengthExecute:r}=v.Xs.module,h=r(s);if((0===this._originalLength||this._originalLength>h)&&h>0){this._length=h;let t=(this._halfToWidth-this._halfFromWidth)/this._length;if(Math.abs(t)<1){let e=t*t;this._slopeC=Math.sqrt(1/(1+e)),this._slopeS=Math.sqrt(e/(1+e)),t<0&&(this._slopeS=-this._slopeS)}else this._slopeC=this._slopeS=.7071}else this._length=this._originalLength,this._slopeC=1,this._slopeS=0;let a=[];for(let t of n){let e=new xt,i=new xt,s=0;this._setFromOffset(t.slice(0,2),e,i);for(let n=0,r=3;r<=t.length;++n,++r)s=this._setOffset(t.slice(n,r),s,e,i);this._setToOffset(t.slice(-2),s,e,i);let[n]=e.getGeometry(),[r]=i.getGeometry();a.push([...n,...r.reverse()])}let l={rings:a,spatialReference:{wkid:C.A.WebMercator.wkid}},{simplifyExecute:o}=v.yM.module,c=o(l);return u.z.fromJSONCIM(c)}_setFromOffset([[t,e],[i,s]],n,r){let h=this._halfFromWidth,a=new Ct.bR(i-t,s-e).normalize().scale(h);n.beginPath([t-a.y,e+a.x]),r.beginPath([t+a.y,e-a.x])}_setToOffset([[t,e],[i,s]],n,r,h){let a;a=(n+=Math.sqrt((i-t)**2+(s-e)**2))>=this._length?this._halfToWidth:this._halfFromWidth+(this._halfToWidth-this._halfFromWidth)*n/this._length;let l=new Ct.bR(i-t,s-e).normalize().scale(a);r.lineTo([i-l.y,s+l.x]),h.lineTo([i+l.y,s-l.x])}_setOffset([[t,e],[i,s],[n,r]],h,a,l){let o,u=Math.sqrt((i-t)**2+(s-e)**2);o=h+u>=this._length?this._halfToWidth:this._halfFromWidth+(this._halfToWidth-this._halfFromWidth)*(h+u)/this._length,h+=u;let c=new Ct.bR(i,s),_=new Ct.bR(i-t,s-e).normalize(),p=new Ct.bR(n-i,r-s).normalize(),f=Ct.bR.sub(p,_),m=a.getPointCount(),d=l.getPointCount();_.leftPerpendicular(),p.leftPerpendicular();let g=_.x*p.x+_.y*p.y;if(g>.99){let t=Ct.bR.add(_,p).scale(o/2),e=t.clone().rotate(this._slopeC,this._slopeS);a.lineTo([c.x+e.x,c.y+e.y]);let i=t.rotateReverse(this._slopeC,this._slopeS);l.lineTo([c.x-i.x,c.y-i.y])}else{let i=_.x*p.y-_.y*p.x;if(f.scale(1/i),i<0){f.scale(-o).rotateReverse(this._slopeC,this._slopeS);let t=l.getXY(d-1);t||vt().error(new Mt.A("mapview-bad-resource","Unable to process geometry, index out of scope"));let e=Ct.bR.add(c,f).sub(Ct.bR.fromArray(t));if(_.x*e.y-_.y*e.x>0){let t=_.clone().scale(-o).rotateReverse(this._slopeC,this._slopeS),e=p.clone().scale(-o).rotateReverse(this._slopeC,this._slopeS);l.lineTo([c.x+t.x,c.y+t.y]),l.lineTo([c.x,c.y]),l.lineTo([c.x+e.x,c.y+e.y])}else l.lineTo([c.x+f.x,c.y+f.y])}else{f.scale(o).rotate(this._slopeC,this._slopeS);let t=a.getXY(m-1);t||vt().error(new Mt.A("mapview-bad-resource","Unable to process geometry, index out of scope"));let e=Ct.bR.add(c,f).sub(Ct.bR.fromArray(t));if(_.x*e.y-_.y*e.x>0){let t=_.clone().scale(o).rotate(this._slopeC,this._slopeS),e=p.clone().scale(o).rotate(this._slopeC,this._slopeS);a.lineTo([c.x+t.x,c.y+t.y]),a.lineTo([c.x,c.y]),a.lineTo([c.x+e.x,c.y+e.y])}else a.lineTo([c.x+f.x,c.y+f.y])}let s=Math.acos(g),n=1;if(o>.25){let t=2*Math.acos(1-.25/o);t<s&&(n=Math.round(s/t))}let r=Math.cos(s/n),h=Math.sin(s/n),u=_.clone();if(i<0){u.rotate(this._slopeC,this._slopeS);let i=a.getXY(m-1);i||vt().error(new Mt.A("mapview-bad-resource","Unable to process geometry, index out of scope"));let s=Ct.bR.add(c,u.clone().scale(this._lastWidth)),n=Ct.bR.sub(s,Ct.bR.fromArray(i)),r=_.x*n.y-_.y*n.x;if(!isNaN(this._lastTangent1.x)&&!isNaN(this._lastTangent1.y)&&r>0){let i=new Ct.bR(t,e),s=this._lastTangent1.clone().scale(this._lastWidth);s.rotate(this._slopeC,this._slopeS);let n=_.clone().scale(this._lastWidth);n.rotate(this._slopeC,this._slopeS),a.lineTo([i.x+s.x,i.y+s.y]),a.lineTo([i.x,i.y]),a.lineTo([i.x+n.x,i.y+n.y])}}else{u.scale(-1).rotateReverse(this._slopeC,this._slopeS);let i=l.getXY(d-1);i||vt().error(new Mt.A("mapview-bad-resource","Unable to process geometry, index out of scope"));let s=Ct.bR.add(c,u.clone().scale(this._lastWidth)),n=Ct.bR.sub(s,Ct.bR.fromArray(i)),r=_.x*n.y-_.y*n.x;if(!isNaN(this._lastTangent1.x)&&!isNaN(this._lastTangent1.y)&&r>0){let i=new Ct.bR(t,e),s=this._lastTangent1.clone().scale(-this._lastWidth);s.rotateReverse(this._slopeC,this._slopeS);let n=_.clone().scale(-this._lastWidth);n.rotateReverse(this._slopeC,this._slopeS),l.lineTo([i.x+s.x,i.y+s.y]),l.lineTo([i.x,i.y]),l.lineTo([i.x+n.x,i.y+n.y])}}u.scale(o);for(let t=0;t<=n;t++)i<0?(a.lineTo([c.x+u.x,c.y+u.y]),u.rotateReverse(r,h)):(l.lineTo([c.x+u.x,c.y+u.y]),u.rotate(r,h))}return this._lastTangent1.setCoords(_.x,_.y),this._lastWidth=o,h}}class It{static{this.instance=null}static local(){return null===It.instance&&(It.instance=new It),It.instance}execute(t,e,i){return new zt(t,e,i)}}class zt{constructor(t,e,i){this._inputGeometries=t;let s=i.geomUnitsPerPoint;this._height=(void 0===e.amplitude?2:e.amplitude)*s,this._period=(void 0===e.period?3:e.period)*s,this._style=e.waveform??"Sinus",this._height<=0&&(this._height=Math.abs(this._height)),this._period<=0&&(this._period=Math.abs(this._period)),this._pattern=new Y,this._pattern.addValue(this._period),this._pattern.addValue(this._period),this._walker=new U,this._walker.updateTolerance(s)}next(){let t=this._inputGeometries.next();for(;t;){if(0===this._height||0===this._period)return t;let e=this._processGeom(t);if(e)return e;t=this._inputGeometries.next()}return null}_processGeom(t){let e=u.z.createEmptyOptimizedCIM(t.geometryType);for(;t.nextPath();){e.startPath();let i=t.pathLength();if(this._walker.init(t,this._pattern))switch(this._style){case"Sinus":default:this._constructCurve(e,i,!1);break;case"Square":this._constructSquare(e,i);break;case"Triangle":this._constructTriangle(e,i);break;case"Random":this._constructCurve(e,i,!0)}else for(;t.nextPoint();)e.pushXY(t.x,t.y)}return e}_constructCurve(t,e,i){let s=Math.round(e/this._period);0===s&&(s=1);let n=16*s+1,r=e/s,h=this._period/16,a=1/n,l=2*Math.PI*e/r,o=2*Math.PI*Math.random(),u=2*Math.PI*Math.random(),c=2*Math.PI*Math.random(),_=.75-Math.random()/2,p=.75-Math.random()/2,f=new D;this._walker.curPointAndAngle(f),t.pushPoint(f.pt);let m=0;for(;;){if(!this._walker.nextPointAndAngle(h,f)){t.pushPoint(this._walker.getPathEnd());break}{let e,s=m;if(m+=a,i){let t=this._height/2*(1+.3*Math.sin(_*l*s+o));e=t*Math.sin(l*s+u),e+=t*Math.sin(p*l*s+c),e/=2}else e=.5*this._height*Math.sin(.5*l*s);t.pushXY(f.pt[0]-e*f.sa,f.pt[1]+e*f.ca)}}}_constructSquare(t,e){Math.round(e/this._period);let i=!0;for(;;){let e=!1;if(this._walker.curPositionIsValid()){let s=new D;this._walker.curPointAndAngle(s);let n=new D;if(this._walker.nextPointAndAngle(this._period,n)){let r=new D;this._walker.nextPointAndAngle(this._period,r)&&(i?(t.pushPoint(s.pt),i=!1):t.pushPoint(s.pt),t.pushXY(s.pt[0]-this._height/2*s.sa,s.pt[1]+this._height/2*s.ca),t.pushXY(n.pt[0]-this._height/2*n.sa,n.pt[1]+this._height/2*n.ca),t.pushXY(n.pt[0]+this._height/2*n.sa,n.pt[1]-this._height/2*n.ca),t.pushXY(r.pt[0]+this._height/2*r.sa,r.pt[1]-this._height/2*r.ca),e=!0)}}if(!e){t.pushPoint(this._walker.getPathEnd());break}}}_constructTriangle(t,e){Math.round(e/this._period);let i=!0;for(;;){let e=!1;if(this._walker.curPositionIsValid()){let s=new D;this._walker.curPointAndAngle(s);let n=new D;if(this._walker.nextPointAndAngle(this._period/2,n)){let r=new D;this._walker.nextPointAndAngle(this._period,r)&&(this._walker.nextPosition(this._period/2)&&(i?(t.pushPoint(s.pt),i=!1):t.pushPoint(s.pt),t.pushXY(n.pt[0]-this._height/2*n.sa,n.pt[1]+this._height/2*n.ca),t.pushXY(r.pt[0]+this._height/2*r.sa,r.pt[1]-this._height/2*r.ca)),e=!0)}}if(!e){t.pushPoint(this._walker.getPathEnd());break}}}}class kt{static{this.instance=null}static local(){return null===kt.instance&&(kt.instance=new kt),kt.instance}execute(t,e,i){return new At(t,e,i)}}class At extends x{constructor(t,e,i){super(t),this._geometryWalker=new U,this._geometryWalker.updateTolerance(i),this._angleToLine=e.angleToLine??!0,this._keepUpright=e.keepUpright??!1,this._offset=(e.offset?e.offset:0)*i,this._originalEndings=e.endings??"WithHalfGap",this._offsetAtEnd=(e.customEndingOffset?e.customEndingOffset:0)*i,this._position=-(e.offsetAlongLine?e.offsetAlongLine:0)*i,this._pattern=new Y,this._pattern.init(e.placementTemplate),this._pattern.scale(i),this._endings=this._originalEndings}processPath(t){if(this._pattern.isEmpty())return null;let e;if(this.iteratePath)e=this._pattern.nextValue();else{this._endings="WithFullGap"===this._originalEndings&&this.isClosed?"WithMarkers":this._originalEndings,this._pattern.extPtGap=0;let i,s=!0;switch(this._endings){case"NoConstraint":i=-this._position,i=this._adjustPosition(i),s=!1;break;case"WithHalfGap":default:i=-this._pattern.lastValue()/2;break;case"WithFullGap":i=-this._pattern.lastValue(),this._pattern.extPtGap=this._pattern.lastValue();break;case"WithMarkers":i=0;break;case"Custom":i=-this._position,i=this._adjustPosition(i),this._pattern.extPtGap=.5*this._offsetAtEnd}if(!this._geometryWalker.init(t,this._pattern,s))return null;this._pattern.reset();let n=0;for(;i>n;)i-=n,n=this._pattern.nextValue();n-=i,e=n,this.iteratePath=!0}let i=new D;return!this._geometryWalker.nextPointAndAngle(e,i)||"WithFullGap"===this._endings&&this._geometryWalker.isPathEnd()?(this.iteratePath=!1,null):"WithMarkers"===this._endings&&this._geometryWalker.isPathEnd()&&(this.iteratePath=!1,this.isClosed)?null:(this.internalPlacement.setTranslate(i.pt[0]-this._offset*i.sa,i.pt[1]+this._offset*i.ca),this._angleToLine&&this.internalPlacement.setRotateCS(i.ca,i.sa),this.internalPlacement)}_adjustPosition(t){let e=t/this._pattern.length();return e-=Math.floor(e),e*this._pattern.length()}}class Tt{static{this.instance=null}static local(){return null===Tt.instance&&(Tt.instance=new Tt),Tt.instance}execute(t,e,i){return new Et(t,e,i)}}class Et extends x{constructor(t,e,i){super(t,!1,!0),this._curveHelper=new P,this._placePerPart=e.placePerPart??!1,this._angleToLine=void 0===e.angleToLine||e.angleToLine,this._keepUpright=e.keepUpright??!1,this._offset=void 0===e.offset?0:e.offset*i,this._type=e.extremityPlacement??"Both",this._position=void 0===e.offsetAlongLine?0:e.offsetAlongLine*i,this._beginProcessed=!1}processMultiPath(t){return this._placePerPart?super.processMultiPath(t):this.processPath(t)}processPath(t){let e;switch(this._type){case"Both":default:this._beginProcessed?(e=this._atExtremities(t,this._position,!1),this._beginProcessed=!1,this.iterateMultiPath=!1,this.iteratePath=!1):(e=this._atExtremities(t,this._position,!0),this._beginProcessed=!0,this.iterateMultiPath=!0,this.iteratePath=!0);break;case"JustBegin":e=this._atExtremities(t,this._position,!0);break;case"JustEnd":e=this._atExtremities(t,this._position,!1);case"None":}return e}_atExtremities(t,e,i){if(this._placePerPart||(i?t.seekPath(0):t.seekPath(t.totalSize-1)),i||t.seekPathEnd(),i?t.nextPoint():t.prevPoint()){let s=0,[n,r]=[0,0],[h,a]=[t.x,t.y],l=[0,0];for(;i?t.nextPoint():t.prevPoint();){n=h,r=a,h=t.x,a=t.y;let i=this._curveHelper.getLength(n,r,h,a);if(s+i>e){let t=(e-s)/i,[o,u]=this._curveHelper.getAngleCS(l,n,r,h,a,t),c=this._curveHelper.getCoord2D(n,r,h,a,t);return this.internalPlacement.setTranslate(c[0]-this._offset*u,c[1]+this._offset*o),this._angleToLine&&this.internalPlacement.setRotateCS(-o,-u),this.internalPlacement}s+=i}}return null}}const Gt=.001;class Ot{static{this.instance=null}static local(){return null===Ot.instance&&(Ot.instance=new Ot),Ot.instance}execute(t,e,i){return new Nt(t,e,i)}}class Nt extends x{constructor(t,e,i){super(t),this._segmentIterator=null,this._segCount=0,this._firstSeg=!0,this._seg=null,this._ms=[],this._from=0,this._to=0,this._pt=null,this._walker=new U,this._walker.updateTolerance(i),this._placePerPart=e.placePerPart??!1,this._angleToLine=e.angleToLine??!1,this._keepUpright=e.keepUpright??!1,this._offset=(e.offset??0)*i,this._interval=e.interval??0,this._interval<=0&&(this._interval=.01),this._skipRate=e.skipMarkerRate??0,this._skipRate<=1&&(this._skipRate=0),this._placeAtExtremities=e.placeAtExtremities??!1}processPath(t){if(!this.iteratePath){let{fromGeometry:e}=v.vZ.module,i=e(t.getCurrentPath().asJSON()).getGeometry(),s=i.getPathStart(0);this._segmentIterator=i.querySegmentIteratorAtVertex(s),this._segCount=i.getSegmentCountPath(0),this._firstSeg=!0,this.iteratePath=!0,this._pt=i.getXY(0).clone()}for(;0===this._ms.length&&this._segmentIterator?.hasNextSegment();){--this._segCount,this._seg=this._segmentIterator.nextSegment(),this._from=this._seg.getStartAttributeAsDbl(2,0),this._to=this._seg.getEndAttributeAsDbl(2,0);let e=!isNaN(this._from),i=!isNaN(this._to);e&&(this._from=Math.round(this._from/Gt)*Gt,Math.abs(this._from)<Gt&&(this._from=0)),i&&(this._to=Math.round(this._to/Gt)*Gt,Math.abs(this._to)<Gt&&(this._to=0));let s=e?Math.floor(this._from/this._interval):0,n=i?Math.floor(this._to/this._interval):0;if(e&&(this._placeAtExtremities||!this._firstSeg||!this._placePerPart&&t.pathIndex>0)&&Math.abs(s*this._interval-this._from)<Gt&&(!this._skipRate||s%this._skipRate)&&this._ms.push(this._from),this._firstSeg=!1,e&&i&&!(Math.abs(this._from-this._to)<Gt))if(this._from<=this._to){s*this._interval<this._from+Gt&&++s,n*this._interval>this._to-Gt&&--n;for(let t=s;t<=n;++t)(!this._skipRate||t%this._skipRate)&&this._ms.push(t*this._interval)}else{s*this._interval>this._from-Gt&&--s,n*this._interval<this._to+Gt&&++n;for(let t=n;t<=s;++t)(!this._skipRate||t%this._skipRate)&&this._ms.push(t*this._interval)}}let e=0;if(0===this._ms.length){if(this.iteratePath=!1,!this._segCount&&this._placeAtExtremities&&!isNaN(this._to)&&(this._placePerPart||t.pathIndex===t.totalSize-1)){let t=Math.floor(this._to/this._interval);Math.abs(t*this._interval-this._to)<Gt&&(!this._skipRate||t%this._skipRate)&&(this._ms.push(this._to),e=1)}if(0===this._ms.length)return null}let i=this._ms.pop(),s=isNaN(this._from)||isNaN(this._to)||Math.abs(this._from-this._to)<Gt?e:(i-this._from)/(this._to-this._from);this._seg.queryCoord2D(s,this._pt);let{x:n,y:r}=this._seg.getTangent(s).normalize();return this.internalPlacement.setTranslate(this._pt.x-this._offset*r,this._pt.y+this._offset*n),this._angleToLine&&(this._keepUpright&&n<0&&(n=-n,r=-r),this.internalPlacement.setRotateCS(n,r)),this.internalPlacement.setMeasure(i),this.internalPlacement}}class Lt{static{this.instance=null}static local(){return null===Lt.instance&&(Lt.instance=new Lt),Lt.instance}execute(t,e,i){return new Rt(t,e,i)}}class Rt extends x{constructor(t,e,i){super(t),this._walker=new U,this._walker.updateTolerance(i),this._placePerPart=e.placePerPart??!1,this._angleToLine=void 0===e.angleToLine||e.angleToLine,this._keepUpright=e.keepUpright??!1,this._offset=void 0===e.offset?0:e.offset*i,this._beginGap=void 0===e.beginPosition?0:e.beginPosition*i,this._endGap=void 0===e.endPosition?0:e.endPosition*i,this._flipFirst=void 0===e.flipFirst||e.flipFirst,this._pattern=new Y,this._pattern.init(e.positionArray,!1),this._subPathLen=0,this._totalPathLen=0,this._posCount=this._pattern.size(),this._pathIndexes=[],this._pathLengths=[],this._pathStarts=[],this._posIndex=0,this._positions=[],this._isFirst=!0,this._prevPos=0}processMultiPath(t){return this._placePerPart?super.processMultiPath(t):this.processPath(t)}processPath(t){return this._pattern.isEmpty()?null:this._placePerPart?this._processPathPerPart(t):this._processMultiPart(t)}_processPathPerPart(t){let e;if(this.iteratePath){let t=this._pattern.nextValue()*this._subPathLen,i=this._beginGap+t;e=i-this._prevPos,this._prevPos=i}else{if(this._posCount=this._pattern.size(),this._isFirst=!0,this._prevPos=0,this._subPathLen=t.pathLength()-this._beginGap-this._endGap,this._subPathLen<0)return this.iteratePath=!1,null;if(!this._walker.init(t,this._pattern,!1))return null;this._pattern.reset();let i=this._pattern.nextValue()*this._subPathLen,s=this._beginGap+i;e=s-this._prevPos,this._prevPos=s,this.iteratePath=!0}let i=new D;return this._walker.nextPointAndAngle(e,i,1)?(this._posCount--,0===this._posCount&&(this.iteratePath=!1),this._setPlacement(i)):(this.iteratePath=!1,null)}_processMultiPart(t){if(!this.iteratePath){if(!this._initializeMultiPart(t))return null;this.iteratePath=!0}if(this._posIndex>=this._positions.length)return this.iteratePath=!1,null;let e=this._getPositionAtDistance(t,this._positions[this._posIndex]);if(null==e)return this.iterateMultiPath=!1,this.iteratePath=!1,null;this._posIndex++;let i=this._posIndex<this._positions.length;return this.iterateMultiPath=i,this.iteratePath=i,this._setPlacement(e)}_initializeMultiPart(t){this._pathIndexes.length=0,this._pathLengths.length=0,this._pathStarts.length=0,this._positions.length=0,this._totalPathLen=0,this._posIndex=0,this._isFirst=!0;for(let e=0;e<t.totalSize;e++){if(!t.seekPath(e))continue;let i=t.pathLength();i<=0||(this._pathIndexes.push(e),this._pathStarts.push(this._totalPathLen),this._pathLengths.push(i),this._totalPathLen+=i)}if(this._subPathLen=this._totalPathLen-this._beginGap-this._endGap,this._subPathLen<0||!this._pathIndexes.length)return!1;this._pattern.reset();for(let t=0;t<this._pattern.size();t++)this._positions.push(this._beginGap+this._pattern.nextValue()*this._subPathLen);return this._positions.length>0}_getPositionAtDistance(t,e){let i=Math.max(0,Math.min(e,this._totalPathLen)),s=this._pathIndexes.length-1;for(let t=0;t<this._pathIndexes.length-1;t++)if(i<=this._pathStarts[t]+this._pathLengths[t]){s=t;break}if(!t.seekPath(this._pathIndexes[s])||!this._walker.init(t,this._pattern,!1))return null;let n=new D,r=Math.max(0,Math.min(i-this._pathStarts[s],this._pathLengths[s]));return this._walker.nextPointAndAngle(r,n,1)?n:null}_setPlacement(t){this.internalPlacement.setTranslate(t.pt[0]-this._offset*t.sa,t.pt[1]+this._offset*t.ca);let e,i,s=this._isFirst&&this._flipFirst;return this._angleToLine?(e=t.ca,i=t.sa):(e=1,i=0),s&&(e=-e,i=-i),this.internalPlacement.setRotateCS(e,i),this._isFirst=!1,this.internalPlacement}}var Ft=i(87811);const Xt=1e-6;class Yt{static{this.instance=null}static local(){return null===Yt.instance&&(Yt.instance=new Yt),Yt.instance}execute(t,e,i,s){return new Dt(t,e,i,s)}}class Dt{constructor(t,e,i,s){if(this._xMin=0,this._xMax=0,this._yMin=0,this._yMax=0,this._currentX=0,this._currentY=0,this._accelerationMap=null,this._testInsidePolygon=!1,this._verticalSubdivision=!0,this._stepX=Math.abs(e.stepX??16)*i,this._stepY=Math.abs(e.stepY??16)*i,this._stepX=Math.round(128*this._stepX)/128,this._stepY=Math.round(128*this._stepY)/128,0!==this._stepX&&0!==this._stepY){if(this._gridType=e.gridType??"Fixed","Random"===this._gridType){let t=e.seed??13;this._randomLCG=new Ft.A(1*t),this._randomness=(e.randomness??100)/100,this._gridAngle=0,this._shiftOddRows=!1,this._cosAngle=1,this._sinAngle=0,this._offsetX=0,this._offsetY=0,this._buildRandomValues()}else{if(this._randomness=0,this._gridAngle=e.gridAngle??0,this._shiftOddRows=e.shiftOddRows??!1,this._offsetX=(e.offsetX??0)*i,this._offsetY=(e.offsetY??0)*i,this._cosAngle=Math.cos(this._gridAngle/180*Math.PI),this._sinAngle=-Math.sin(this._gridAngle/180*Math.PI),this._stepX)if(this._offsetX<0)for(;this._offsetX<-.5*this._stepX;)this._offsetX+=this._stepX;else for(;this._offsetX>=.5*this._stepX;)this._offsetX-=this._stepX;if(this._stepY)if(this._offsetY<0)for(;this._offsetY<-.5*this._stepY;)this._offsetY+=this._stepY;else for(;this._offsetY>=.5*this._stepY;)this._offsetY-=this._stepY}if(this._graphicOriginX=0,this._graphicOriginY=0,null!=s){let[t,e,i,n]=s.split("/"),r=parseFloat(t),h=parseFloat(e),a=parseFloat(i),l=parseFloat(n);this._graphicOriginX=512*-(l*2**r+a),this._graphicOriginY=512*h,this._testInsidePolygon=!0}this._internalPlacement=new d.W,this._calculateMinMax(t),this._geometryCursor=t}}next(){return this._geometryCursor?this._nextInside():null}_buildRandomValues(){if(!Dt._randValues){Dt._randValues=[];for(let t=0;t<24;t++)for(let t=0;t<24;t++)Dt._randValues.push(this._randomLCG.getFloat()),Dt._randValues.push(this._randomLCG.getFloat())}}_calculateMinMax(t){let e,i,s,n,r,h,a,l,o,u,c,_,p,f;this._xMin=0,this._xMax=0,this._yMin=0,this._yMax=0,a=l=p=c=Number.MAX_VALUE,o=u=f=_=-Number.MAX_VALUE;let m=1!==this._cosAngle;for(t.reset();t.nextPath();)for(;t.nextPoint();)h=t.x,r=t.y,e=h-this._graphicOriginX-this._offsetX,i=r-this._graphicOriginY-this._offsetY,m?(s=this._cosAngle*e-this._sinAngle*i,n=this._sinAngle*e+this._cosAngle*i):(s=e,n=i),a=Math.min(a,s),o=Math.max(o,s),l=Math.min(l,n),u=Math.max(u,n),c=Math.min(c,r),_=Math.max(_,r),p=Math.min(p,h),f=Math.max(f,h);c=c===Number.MAX_VALUE?-512-this._stepY:c,_=_===-Number.MAX_VALUE?this._stepY:_,p=p===Number.MAX_VALUE?-this._stepX:p,f=f===-Number.MAX_VALUE?512+this._stepX:f;let d=_-c,g=f-p;if(this._verticalSubdivision=d>=g,this._polygonMin=this._verticalSubdivision?c:p,this._testInsidePolygon){let t=0-this._graphicOriginX-this._offsetX-this._stepX,e=512-this._graphicOriginX-this._offsetX+this._stepX,i=-512-this._graphicOriginY-this._offsetY-this._stepY,s=0-this._graphicOriginY-this._offsetY+this._stepY;if(m){let n=[[t,i],[t,s],[e,i],[e,s]];t=i=Number.MAX_VALUE,e=s=-Number.MAX_VALUE;for(let r of n){let n=this._cosAngle*r[0]-this._sinAngle*r[1],h=this._sinAngle*r[0]+this._cosAngle*r[1];t=Math.min(t,n),e=Math.max(e,n),i=Math.min(i,h),s=Math.max(s,h)}}a=a===Number.MAX_VALUE?t:Math.max(a,t),l=l===Number.MAX_VALUE?i:Math.max(l,i),o=o===-Number.MAX_VALUE?e:Math.min(o,e),u=u===-Number.MAX_VALUE?s:Math.min(u,s)}this._xMin=Math.round(a/this._stepX),this._xMax=Math.round(o/this._stepX),this._yMin=Math.round(l/this._stepY),this._yMax=Math.round(u/this._stepY),this._currentX=this._xMax+1,this._currentY=this._yMin-1,this._buildAccelerationMap(t,p,f,c,_)}_buildAccelerationMap(t,e,i,s,n){t.reset();let r=new Map,h=this._verticalSubdivision,a=h?n-s:i-e,l=Math.ceil(a/10);if(l<=1)return;let o,u,c,_,p,f,m,d,g,x,y,P=Math.floor(a/l);for(l++,this._delta=P,h?(g=-512-2*this._stepY,x=2*this._stepY,y=s):(g=-2*this._stepX,x=512+2*this._stepX,y=e);t.nextPath();)if(!(t.pathSize<2)&&t.nextPoint())for(o=t.x,u=t.y;t.nextPoint();o=c,u=_){if(c=t.x,_=t.y,h){if(u===_||u<g&&_<g||u>x&&_>x)continue;p=Math.min(u,_),f=Math.max(u,_)}else{if(o===c||o<g&&c<g||o>x&&c>x)continue;p=Math.min(o,c),f=Math.max(o,c)}for(;p<f;)m=Math.floor((p-y)/P),Wt(m,o,u,c,_,r),p+=P;d=Math.floor((f-y)/P),d>m&&Wt(d,o,u,c,_,r)}this._accelerationMap=r}_nextInside(){for(;;){if(this._currentX>this._xMax){if(this._currentY++,this._currentY>this._yMax)return null;this._currentX=this._xMin,this._shiftOddRows&&this._currentY%2&&this._currentX--}let t=this._currentX*this._stepX+this._offsetX;this._shiftOddRows&&this._currentY%2&&(t+=.5*this._stepX);let e,i,s=this._currentY*this._stepY+this._offsetY;if(this._currentX++,"Random"===this._gridType){let n=(this._currentX%24+24)%24,r=(this._currentY%24+24)%24;e=this._graphicOriginX+t+this._stepX*this._randomness*(.5-Dt._randValues[24*r+n])*2/3,i=this._graphicOriginY+s+this._stepY*this._randomness*(.5-Dt._randValues[24*r+n+1])*2/3}else e=this._graphicOriginX+this._cosAngle*t+this._sinAngle*s,i=this._graphicOriginY-this._sinAngle*t+this._cosAngle*s;if(!this._testInsidePolygon||this._isInsidePolygon(e,i,this._geometryCursor))return this._internalPlacement.setTranslate(e,i),this._internalPlacement}}_isInsidePolygon(t,e,i){if(null==this._accelerationMap)return function(t,e,i){let s,n,r,h,a=0;for(t+=Xt,e+=Xt,i.reset();i.nextPath();)if(i.nextPoint())for(s=i.x,n=i.y;i.nextPoint();s=r,n=h)r=i.x,h=i.y,n>e!=h>e&&((r-s)*(e-n)-(h-n)*(t-s)>0?a++:a--);return 0!==a}(t,e,i);t+=Xt,e+=Xt;let s=this._verticalSubdivision,n=Math.floor(((s?e:t)-this._polygonMin)/this._delta),r=this._accelerationMap.get(n);if(!r)return!1;let h,a,l,o=0;for(let i of r){if(h=i[0],a=i[1],s){if(h[1]>e==a[1]>e)continue;l=(a[0]-h[0])*(e-h[1])-(a[1]-h[1])*(t-h[0])}else{if(h[0]>t==a[0]>t)continue;l=(a[1]-h[1])*(t-h[0])-(a[0]-h[0])*(e-h[1])}l>0?o++:o--}return 0!==o}}function Wt(t,e,i,s,n,r){let h=r.get(t);h||(h=[],r.set(t,h)),h.push([[e,i],[s,n]])}class Ut{static{this.instance=null}static local(){return null===Ut.instance&&(Ut.instance=new Ut),Ut.instance}execute(t,e,i){return new Bt(t,e,i)}}class Bt extends x{constructor(t,e,i){super(t),this._curveHelper=new P,this._angleToLine=void 0===e.angleToLine||e.angleToLine,this._keepUpright=e.keepUpright??!1,this._offset=void 0===e.offset?0:e.offset*i,this._relativeTo=e.relativeTo??"LineMiddle",this._position=void 0===e.startPointOffset?0:e.startPointOffset*i,this._epsilon=.001*i}processPath(t){let e=this._position;if("SegmentMidpoint"===this._relativeTo){if(this.iteratePath||=!0,t.nextPoint()){let[e,i]=[t.x,t.y],[s,n]=[0,0],r=[0,0];for(;t.nextPoint();){s=t.x,n=t.y;let h=this._curveHelper.getLength(e,i,s,n);if(h<this._epsilon){e=s,i=n;continue}let a=.5+this._position/h,[l,o]=this._curveHelper.getAngleCS(r,e,i,s,n,a),u=this._curveHelper.getCoord2D(e,i,s,n,a);return this.internalPlacement.setTranslate(u[0]-this._offset*o,u[1]+this._offset*l),this._angleToLine&&this.internalPlacement.setRotateCS(l,o),this.internalPlacement}}return this.iteratePath=!1,null}let i="LineEnd"===this._relativeTo;return this.onLine(t,e,i)}onLine(t,e,i){let s,n=!1;switch(this._relativeTo){case"LineMiddle":default:t.seekPathStart(),s=t.pathLength()/2+e;break;case"LineBeginning":s=e;break;case"LineEnd":s=e,n=!0}i?t.seekPathEnd():t.seekPathStart();let r=0;if(i?t.prevPoint():t.nextPoint()){let[e,h]=[t.x,t.y],[a,l]=[0,0],o=[0,0];for(;i?t.prevPoint():t.nextPoint();){a=t.x,l=t.y;let i=this._curveHelper.getLength(e,h,a,l);if(r+i>s){let t=(s-r)/i,[u,c]=this._curveHelper.getAngleCS(o,e,h,a,l,t),_=this._curveHelper.getCoord2D(e,h,a,l,t),p=n?-this._offset:this._offset;return this.internalPlacement.setTranslate(_[0]-p*c,_[1]+p*u),this._angleToLine&&(n?this.internalPlacement.setRotateCS(-u,-c):this.internalPlacement.setRotateCS(u,c)),this.internalPlacement}e=a,h=l,r+=i}}return null}}class Ht{static{this.instance=null}static local(){return null===Ht.instance&&(Ht.instance=new Ht),Ht.instance}execute(t,e,i){return new Vt(t,e,i)}}class Vt extends x{constructor(t,e,i){super(t),this._curveHelper=new P,this._angleToLine=void 0===e.angleToLine||e.angleToLine,this._keepUpright=e.keepUpright??!1,this._offset=void 0===e.offset?0:e.offset*i,this._endPoints=void 0===e.placeOnEndPoints||e.placeOnEndPoints,this._controlPoints=void 0===e.placeOnControlPoints||e.placeOnControlPoints,this._regularVertices=void 0===e.placeOnRegularVertices||e.placeOnRegularVertices,this._tags=[],this._tagIterator=0}processPath(t){if(this.iteratePath||=(this._preparePath(t),!0),this._tagIterator>=this._tags.length)return this._tags.length=0,this._tagIterator=0,this.iteratePath=!1,null;let e=this._tags[this._tagIterator];this._angleToLine&&this.internalPlacement.setRotate(e[2]);let i=e[0],s=e[1];if(0!==this._offset){let t=Math.cos(e[2]),n=Math.sin(e[2]);i-=this._offset*n,s+=this._offset*t}return this.internalPlacement.setTranslate(i,s),this._tagIterator++,this.internalPlacement}_preparePath(t){this._tags.length=0,this._tagIterator=0,t.seekPathStart();let e=t.isClosed(),i=0,s=!1,n=0,r=0;if(t.seekPathStart(),t.nextPoint()){let h=t.x,a=t.y,l=t.getControlPoint(),o=!0,u=t.nextPoint();for(;u;){let c=t.x,_=t.y,p=t.getControlPoint();(this._angleToLine||0!==this._offset)&&(n=this._curveHelper.getAngle(h,a,c,_,0)),o?(o=!1,e?(i=n,s=l):(this._endPoints||this._controlPoints&&l)&&this._tags.push([h,a,n])):l?this._controlPoints&&this._tags.push([h,a,qt(r,n)]):this._regularVertices&&this._tags.push([h,a,qt(r,n)]),(this._angleToLine||0!==this._offset)&&(r=this._curveHelper.getAngle(h,a,c,_,1)),u=t.nextPoint(),u||(e?p||s?this._controlPoints&&this._tags.push([c,_,qt(r,i)]):this._regularVertices&&this._tags.push([c,_,qt(r,i)]):(this._endPoints||this._controlPoints&&p)&&this._tags.push([c,_,r])),h=c,a=_,l=p}}this._tagIterator=0}}function qt(t,e){let i=Math.PI;for(;Math.abs(e-t)>i+2e-15;)e-t>i?e-=2*i:e+=2*i;return(t+e)/2}var Jt=i(78957);class Zt{static{this.instance=null}static local(){return null===Zt.instance&&(Zt.instance=new Zt),Zt.instance}execute(t,e,i){return new $t(t,e,i)}}class $t{constructor(t,e,i){this._geometryCursor=t,this._offsetX=void 0===e.offsetX?0:e.offsetX*i,this._offsetY=void 0===e.offsetY?0:e.offsetY*i,this._method=void 0===e.method?"OnPolygon":e.method,this._placementPerPart=void 0!==e.placePerPart&&e.placePerPart,this._internalPlacement=new d.W}next(){let t=this._geometryCursor;if(!t)return null;if(!this._placementPerPart)return this._geometryCursor=null,this._polygonCenter(t);for(;t.nextPath();)if(!(t.getCurrentRingArea()<0))return this._polygonCenter(t.getCurrentPath());return this._geometryCursor=null,null}_polygonCenter(t){let e=!1;switch(this._method){case"CenterOfMass":{let i=(0,lt.TP)(t);i&&(this._internalPlacement.setTranslate(i[0]+this._offsetX,i[1]+this._offsetY),e=!0)}break;case"BoundingBoxCenter":{let i=(0,J.z8)(t);i&&(this._internalPlacement.setTranslate((i[2]+i[0])/2+this._offsetX,(i[3]+i[1])/2+this._offsetY),e=!0)}break;default:{let i=(0,Jt.d)(t);null!==i&&(this._internalPlacement.setTranslate(i[0]+this._offsetX,i[1]+this._offsetY),e=!0)}}return e?this._internalPlacement:null}}var jt=i(86235),Kt=i(14057);class Qt{static{this.instance=null}static local(){return null===Qt.instance&&(Qt.instance=new Qt),Qt.instance}execute(t,e,i){return new te(t,i)}}class te{constructor(t,e){this._cursor=t,this._context=e}next(){let t=this._cursor.next();if(!t||0===t.totalSize)return null;if(this._context.callout?.preserveInputGeometry)return t;let{matcher:e,target:i,tileKey:s}=this._context,n=e&&i&&null!=s?e.getMatcherGeometryOverride((0,Kt.$)(s,i.getObjectId())):null;if(!n)return t;let r=u.z.fromOptimizedCIM(n.geometry.clone(),n.geometryType);return r.invertY(),r}}class ee{static{this.instance=null}static local(){return null===ee.instance&&(ee.instance=new ee),ee.instance}execute(t){return new ie(t)}}class ie extends x{constructor(t){super(t),this._curveHelper=new P}processPath(t){if(this.iteratePath=!0,t.nextPoint()){let[e,i]=[t.x,t.y];if(t.nextPoint()){let[s,n]=[t.x,t.y],r=(e+s)/2,h=(i+n)/2;this.internalPlacement.setTranslate(r,h);let a=this._curveHelper.getAngle(e,i,s,n,0);return this.internalPlacement.setRotate(a),this.internalPlacement}}return this.iteratePath=!1,null}}function se(t){if(!t)return null;switch(t.type){case"CIMGeometricEffectAddControlPoints":return p.local();case"CIMGeometricEffectArrow":return M.local();case"CIMGeometricEffectBuffer":return w.local();case"CIMGeometricEffectCircularSector":return T.local();case"CIMGeometricEffectControlMeasureLine":return N.local();case"CIMGeometricEffectCut":return R.local();case"CIMGeometricEffectDashes":return B.local();case"CIMGeometricEffectDonut":return V.local();case"CIMGeometricEffectJog":return tt.local();case"CIMGeometricEffectMove":return it.local();case"CIMGeometricEffectOffset":return rt.local();case"CIMGeometricEffectRadial":return ot.local();case"CIMGeometricEffectReverse":return ct.local();case"CIMGeometricEffectRotate":return ft.local();case"CIMGeometricEffectScale":return dt.local();case"CIMGeometricEffectSuppress":return yt.local();case"CIMGeometricEffectTaperedPolygon":return wt.local();case"CIMGeometricEffectWave":return It.local();case"CIMGeometricEffectEnclosingPolygon":return Z.local();case"CIMSimpleLineCallout":return c.local();case"CIMBackgroundCallout":return n.local();case"CIMBalloonCallout":return h.local();case"CIMPointSymbolCallout":return l.local();case"PrivateDimensionEffect":return jt.HZ.local();case"PrivateMatcherGeometryOverrideEffect":return Qt.local()}return null}function ne(t){if(!t)return null;switch(t.type){case"CIMMarkerPlacementAlongLineSameSize":return kt.local();case"CIMMarkerPlacementAtExtremities":return Tt.local();case"CIMMarkerPlacementAtMeasuredUnits":return Ot.local();case"CIMMarkerPlacementAtRatioPositions":return Lt.local();case"CIMMarkerPlacementInsidePolygon":return Yt.local();case"CIMMarkerPlacementOnLine":return Ut.local();case"PrivatePlacementMultipoint":return ee.local();case"CIMMarkerPlacementOnVertices":return Ht.local();case"CIMMarkerPlacementPolygonCenter":return Zt.local()}return null}},98939(t,e,i){i.d(e,{W:()=>s});class s{constructor(){this.setIdentity()}getAngle(){return this.rz}setIdentity(){this.tx=0,this.ty=0,this.tz=0,this.s=1,this.rx=0,this.ry=0,this.rz=0,this.rzCos=1,this.rzSin=0}setTranslate(t,e){this.tx=t,this.ty=e}setTranslateZ(t){this.tz=t}setRotateCS(t,e){this.rz=Math.atan2(e,t),this.rzCos=t,this.rzSin=e}setRotate(t){this.rz=t,this.rzCos=Math.cos(t),this.rzSin=Math.sin(t)}setRotateY(t){this.ry=t}setScale(t){this.s=t}setMeasure(t){this.m=t}}},23650(t,e,i){i.d(e,{OverrideHelper:()=>_});var s=i(68197),n=i(85334),r=i(4718),h=i(95466),a=i(55674),l=i(45733),o=i(93397),u=i(37615);const c=t=>{if(!t)return[0,0,0,0];let{r:e,g:i,b:s,a:n}=t;return[e,i,s,255*n]};class _{static findApplicableOverrides(t,e,i){if(t&&e){if(t.primitiveName){let s=!1;for(let e of i)if(e.primitiveName===t.primitiveName){s=!0;break}if(!s)for(let s of e)s.primitiveName===t.primitiveName&&i.push(s)}switch(t.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":if(t.effects)for(let s of t.effects)_.findApplicableOverrides(s,e,i);if(t.symbolLayers)for(let s of t.symbolLayers)_.findApplicableOverrides(s,e,i);break;case"CIMTextSymbol":break;case"CIMSolidStroke":case"CIMPictureStroke":case"CIMGradientStroke":case"CIMSolidFill":case"CIMPictureFill":case"CIMHatchFill":case"CIMGradientFill":case"CIMVectorMarker":case"CIMCharacterMarker":case"CIMPictureMarker":if(t.effects)for(let s of t.effects)_.findApplicableOverrides(s,e,i);if(t.markerPlacement&&_.findApplicableOverrides(t.markerPlacement,e,i),"CIMVectorMarker"===t.type){if(t.markerGraphics)for(let s of t.markerGraphics)_.findApplicableOverrides(s,e,i),_.findApplicableOverrides(s.symbol,e,i)}else"CIMCharacterMarker"===t.type?_.findApplicableOverrides(t.symbol,e,i):"CIMHatchFill"===t.type?_.findApplicableOverrides(t.lineSymbol,e,i):"CIMPictureMarker"===t.type&&_.findApplicableOverrides(t.animatedSymbolProperties,e,i)}}}static findEffectOverrides(t,e){if(!t)return null;if("CIMGeometricEffectDashes"===t.type&&(0,l.FH)(t),!e||!t.primitiveName)return{type:"cim-effect-param",effect:t,overrides:[]};let i=(0,o.rB)(t),s=t.primitiveName,n=[];for(let t of e)t.primitiveName===s&&n.push((0,o.rB)(t));return{type:"cim-effect-param",effect:i,overrides:(0,o.pk)(n)}}static async resolveSymbolOverrides(t,e,i,s,n,a,l){if(!t?.symbol)return null;let{symbol:u,primitiveOverrides:c}=t,p=!!c;if(!p&&!s)return u;u=(0,r.o8)(u),c=(0,r.o8)(c);let f=!0;if(e||(e={attributes:{}},f=!1),p){if(f||(c=c.filter(t=>!t.valueExpressionInfo?.expression.includes("$feature"))),l||(c=c.filter(t=>!t.valueExpressionInfo?.expression.includes("$view"))),c.length>0){let t=(0,o.O2)(e.attributes),s={spatialReference:i,fields:t,geometryType:n};await _.createRenderExpressions(c,s),_.evaluateOverrides(c,e,n??"esriGeometryPoint",a,l,new h.A(t))}_.applyOverrides(u,c)}return s&&_.applyDictionaryTextOverrides(u,e,s,null),u}static{this._expressionToRenderExpression=new Map}static async createRenderExpressions(t,e){let i=[];for(let s of t){let t=s.valueExpressionInfo;if(!t||_._expressionToRenderExpression.has(t.expression))continue;let n=(0,a.Ad)(t.expression,e.spatialReference);i.push(n),n.then(e=>_._expressionToRenderExpression.set(t.expression,e))}i.length>0&&await Promise.all(i)}static evaluateOverrides(t,e,i,s,r,h){let a={$view:{scale:r?.scale}};for(let r of t){r.value&&"object"==typeof r.value&&(0,n.IB)(r.value)&&("Color"===r.propertyName||"StrokeColor"===r.propertyName)&&(r.value=c(r.value));let t=r.valueExpressionInfo;if(!t)continue;let l=_._expressionToRenderExpression.get(t.expression);l&&(r.value=(0,u.A)(l,e,a,i,h,s),r.value=this.toValue(r.propertyName,r.value))}}static applyDictionaryTextOverrides(t,e,i,s,n="Normal"){if(t?.type)switch(t.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":case"CIMTextSymbol":{let r=t.symbolLayers;if(!r)return;for(let h of r)h&&"CIMVectorMarker"===h.type&&_.applyDictionaryTextOverrides(h,e,i,s,"CIMTextSymbol"===t.type?t.textCase:n)}break;case"CIMVectorMarker":{let n=t.markerGraphics;if(!n)return;for(let t of n)t&&_.applyDictionaryTextOverrides(t,e,i,s)}break;case"CIMMarkerGraphic":{let r=t.textString;if(r&&r.includes("[")){let h=(0,o.gQ)(r,i);t.textString=(0,o.FM)(e,h,s,n)}}}}static applyOverrides(t,e,i,s){if(t.primitiveName)for(let n of e)if(n.primitiveName===t.primitiveName){let e=(0,o.YF)(n.propertyName);if(s&&s.push({cim:t,nocapPropertyName:e,value:t[e]}),i){let e=!1;for(let s of i)s.primitiveName===t.primitiveName&&(e=!0);e||i.push(n)}null!=n.value&&(t[e]=n.value)}switch(t.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":if(t.effects)for(let n of t.effects)_.applyOverrides(n,e,i,s);if(t.symbolLayers)for(let n of t.symbolLayers)_.applyOverrides(n,e,i,s);break;case"CIMTextSymbol":_.applyOverrides(t.symbol,e,i,s);break;case"CIMSolidStroke":case"CIMSolidFill":case"CIMVectorMarker":if(t.effects)for(let n of t.effects)_.applyOverrides(n,e,i,s);if("CIMVectorMarker"===t.type&&t.markerGraphics)for(let n of t.markerGraphics)_.applyOverrides(n,e,i,s),_.applyOverrides(n.symbol,e,i,s)}}static restoreOverrides(t){for(let e of t)e.cim[e.nocapPropertyName]=e.value}static buildOverrideKey(t){let e="";for(let i of t)void 0!==i.value&&(e+=`${i.primitiveName}${i.propertyName}${JSON.stringify(i.value)}`);return e}static toValue(t,e){if(null==e)return null;if("DashTemplate"===t)return e.split(" ").map(t=>Number(t));if("Color"===t||"StrokeColor"===t){let t=new s.A(e).toRgba();return t[3]*=255,t}return e}}},34653(t,e,i){i.d(e,{E0:()=>c,gX:()=>u,gR:()=>o,W:()=>d,ZO:()=>y,IF:()=>x,n_:()=>_,DJ:()=>g,_T:()=>m,Io:()=>b,EE:()=>h,pT:()=>P,Je:()=>M,sz:()=>p,XD:()=>l,QB:()=>a});var s=i(36745);function n(t,e){let i=.5*(t.xmin+t.xmax),s=.5*(t.ymin+t.ymax),n=.5*(t.xmax-t.xmin),r=.5*(t.ymax-t.ymin),h=1/Math.sqrt(e.x*e.x/(n*n)+e.y*e.y/(r*r));return{x:i+e.x*h,y:s+e.y*h}}function r(t,e,i){let s=.5*(t.xmin+t.xmax),n=.5*(t.ymin+t.ymax),r=.5*(t.xmax-t.xmin),h=.5*(t.ymax-t.ymin),a=e.x-s,l=e.y-n,o=i.x-e.x,u=i.y-e.y,c=o*o/(r*r)+u*u/(h*h),_=2*(a*o/(r*r)+l*u/(h*h)),p=a*a/(r*r)+l*l/(h*h)-1,f=Math.max(_*_-4*c*p,0),m=(-_-Math.sqrt(f))/(2*c),d=(-_+Math.sqrt(f))/(2*c),g=m>=0&&m<=1?m:d;return{x:e.x+o*g,y:e.y+u*g}}function h(t,e){let{relativeAnchor:i,relativeLayoutAnchor:s,absoluteAnchor:n,bodyBounds:r}=e??{},h=t.clone();if("esriGeometryPoint"===h.geometryType||"esriGeometryMultipoint"===h.geometryType){if(!h.nextPath()||(h.seekPathStart(),!h.nextPoint()))return null;let t=n??(i?{x:h.x+i.x,y:h.y+i.y}:{x:h.x,y:h.y});return{anchor:t,layoutAnchor:n??(s?{x:h.x+s.x,y:h.y+s.y}:t),bounds:r?a(r,h.x,h.y):{xmin:h.x,ymin:h.y,xmax:h.x,ymax:h.y}}}if(r&&1===h.totalSize&&1===h.totalPoints){if(!h.seekPath(0)||(h.seekPathStart(),!h.nextPoint()))return null;let t=n??(i?{x:h.x+i.x,y:h.y+i.y}:{x:h.x,y:h.y});return{anchor:t,layoutAnchor:n??(s?{x:h.x+s.x,y:h.y+s.y}:t),bounds:a(r,h.x,h.y)}}if(h.totalSize<2)return null;function a(t,e,i){return{xmin:t.xmin+e,ymin:t.ymin+i,xmax:t.xmax+e,ymax:t.ymax+i}}let l=h.totalSize-1,o={xmin:1/0,ymin:1/0,xmax:-1/0,ymax:-1/0};for(let t=0;t<l;t++){if(!h.seekPath(t))return null;for(h.seekPathStart();h.nextPoint();)C(o,h.x,h.y)}return function(t){return Number.isFinite(t.xmin)&&Number.isFinite(t.ymin)&&Number.isFinite(t.xmax)&&Number.isFinite(t.ymax)}(o)&&h.seekPath(l)&&(h.seekPathStart(),h.nextPoint())?{anchor:n??{x:h.x,y:h.y},layoutAnchor:n??{x:h.x,y:h.y},bounds:o}:null}function a(t,e){return{left:(t?.left??0)*e,right:(t?.right??0)*e,top:(t?.top??0)*e,bottom:(t?.bottom??0)*e}}function l(t,e){return{xmin:t.xmin-e.left,ymin:t.ymin-e.bottom,xmax:t.xmax+e.right,ymax:t.ymax+e.top}}function o(t,e){return e.x>=t.xmin&&e.x<=t.xmax&&e.y>=t.ymin&&e.y<=t.ymax}function u(t){return{x:.5*(t.xmin+t.xmax),y:.5*(t.ymin+t.ymax)}}function c(t,e,i=0){let s,n,r=t.xmin-i,h=t.ymin-i,a=t.xmax+i,l=t.ymax+i,o=.5*(r+a),u=.5*(h+l);return s=e.x<r?r:e.x>a?a:e.x<o?Math.abs(e.x-r)<Math.abs(e.x-o)?r:o:Math.abs(e.x-a)<Math.abs(e.x-o)?a:o,n=e.y<h?h:e.y>l?l:e.y<u?Math.abs(e.y-h)<Math.abs(e.y-u)?h:u:Math.abs(e.y-l)<Math.abs(e.y-u)?l:u,{x:s,y:n}}function _(t,e,i,s,n,r,h=1,a=!1,l=t){let o=N(t,e,i??0,n,9*h,a,l);return v(function(t){return t.filter((e,i)=>0===i||e.x!==t[i-1].x||e.y!==t[i-1].y)}(s>0?function(t,e){return function(t,e){let i=e;for(let e=1;e<t.length;e++){let s=t[e-1],n=t[e],r=b(s,n);if(i<r){let h=i/r;return[{x:s.x+h*(n.x-s.x),y:s.y+h*(n.y-s.y)},...t.slice(e)]}i-=r}return[t[t.length-1]]}(t.slice().reverse(),e).reverse()}(o,s):o),r)}function p(t,e,i,s,n=!1,r=t){let h=i??0;return 0!==h||n?f(L(t,e,h,s,r),e,h):c(t,e,s)}function f(t,e,i){let s=R(t.start,t.end);switch(i){case 1:case 2:case 3:return s;case 4:return e.y>s.y?t.end:t.start;case 5:case 6:return b(t.start,e)>b(t.end,e)?t.end:t.start;default:return b(t.start,e)<b(t.end,e)?t.start:t.end}}function m(t,e){return w([{x:t.xmin,y:t.ymin},{x:t.xmin,y:t.ymax},{x:t.xmax,y:t.ymax},{x:t.xmax,y:t.ymin},{x:t.xmin,y:t.ymin}],e)}function d(t,e,i,s,n=null,r=t){let{start:h,end:a}=L(t,e,n??0,i,r);return v([h,a],s)}function g(t,e){let i=s.z.createEmptyOptimizedCIM("esriGeometryPoint",!1,!1,e);return i.startPath(),i.pushXY(t.x,e*t.y),i.reset(),i}function x(t,e,i,s,n,r=null,h=e,a=!0){let l=P(t,i),u=!a||o(l,h)?null:A(l,t,h,e,i,s,r);switch(i){case 1:return function(t,e,i){let s=function(t){let e=M(t,1),i=[{x:t.xmin+e,y:t.ymin}];return E(i,t.xmin+e,t.ymin+e,e,-Math.PI/2,-Math.PI),i.push({x:t.xmin,y:t.ymax-e}),E(i,t.xmin+e,t.ymax-e,e,Math.PI,Math.PI/2),i.push({x:t.xmax-e,y:t.ymax}),E(i,t.xmax-e,t.ymax-e,e,Math.PI/2,0),i.push({x:t.xmax,y:t.ymin+e}),E(i,t.xmax-e,t.ymin+e,e,0,-Math.PI/2),i.push(i[0]),i}(t);return e&&G(s,e),w(s,i)}(l,u,n);case 2:return function(t,e,i){if(!e)return function(t,e){return w(function(t){let e=[];for(let i=0;i<32;i++)e.push(z(t,2*Math.PI*i/32));return e}(t),e)}(t,i);let s=I(t,e.points[0]),n=I(t,e.points[e.points.length-1]),r=k(n-s),h=Math.min(r,2*Math.PI-r),a=r<=Math.PI?e.points.slice():[e.points[e.points.length-1],e.points[1],e.points[0]],l=r<=Math.PI?n:s,o=2*Math.PI-h,u=Math.max(1,Math.ceil(S*o/(2*Math.PI)));for(let e=1;e<u;e++)a.push(z(t,l+o*e/u));return w(a,i)}(l,u,n);default:return function(t,e,i){let s=[{x:t.xmin,y:t.ymin},{x:t.xmin,y:t.ymax},{x:t.xmax,y:t.ymax},{x:t.xmax,y:t.ymin},{x:t.xmin,y:t.ymin}];return e&&G(s,e),w(s,i)}(l,u,n)}}function y(t,e,i,s,n,r=null,h=e){let a=P(t,i),l=o(a,h)?null:A(a,t,h,e,i,s,r);return l?w(l.points,n):null}function P(t,e){if(2!==e)return t;let i=.5*(t.xmin+t.xmax),s=.5*(t.ymin+t.ymax),n=.5*(t.ymax-t.ymin),r=Math.max(.5*(t.xmax-t.xmin)*Math.SQRT2,1.25*n);return{xmin:i-r,ymin:s-n,xmax:i+r,ymax:s+n}}function M(t,e){return 1===e?Math.min(t.xmax-t.xmin,t.ymax-t.ymin)/8:0}function b(t,e){return Math.hypot(e.x-t.x,e.y-t.y)}function C(t,e,i){t.xmin=Math.min(t.xmin,e),t.ymin=Math.min(t.ymin,i),t.xmax=Math.max(t.xmax,e),t.ymax=Math.max(t.ymax,i)}function v(t,e){let i=s.z.createEmptyOptimizedCIM("esriGeometryPolyline",!1,!1,e);i.startPath();for(let s of t)i.pushXY(s.x,e*s.y);return i.reset(),i}function w(t,e){let i=s.z.createEmptyOptimizedCIM("esriGeometryPolygon",!1,!1,e);i.startPath();for(let s of function(t){if(!t.length)return t;let e=t[0],i=t[t.length-1];return e.x===i.x&&e.y===i.y?t:[...t,e]}(t))i.pushXY(s.x,e*s.y);return i.reset(),i}const S=32;function I(t,e){let i=.5*(t.xmin+t.xmax),s=.5*(t.ymin+t.ymax),n=.5*(t.xmax-t.xmin),r=.5*(t.ymax-t.ymin);return k(Math.atan2((e.y-s)/r,(e.x-i)/n))}function z(t,e){let i=.5*(t.xmin+t.xmax),s=.5*(t.ymin+t.ymax),n=.5*(t.xmax-t.xmin),r=.5*(t.ymax-t.ymin);return{x:i+n*Math.cos(e),y:s+r*Math.sin(e)}}function k(t){let e=t%(2*Math.PI);return e<0?e+2*Math.PI:e}function A(t,e,i,s,n,r,h){if(2===n)return T(t,e,i,s,r,h);let a=t.xmax-t.xmin,l=t.ymax-t.ymin,o=t.xmin+a/2,u=t.ymin+l/2,c=-1;if(i.x>=t.xmin&&i.x<=t.xmax?i.y<=t.ymin?c=i.x<=o?7:6:i.y>=t.ymax&&(c=i.x<=o?2:3):c=i.x<t.xmin?i.y<=u?0:1:i.y<=u?5:4,c<0)return null;let _=function(t){let e=t.xmax-t.xmin,i=t.ymax-t.ymin;return[{x:t.xmin,y:t.ymin+i/4},{x:t.xmin,y:t.ymax-i/4},{x:t.xmin+e/4,y:t.ymax},{x:t.xmax-e/4,y:t.ymax},{x:t.xmax,y:t.ymax-i/4},{x:t.xmax,y:t.ymin+i/4},{x:t.xmax-e/4,y:t.ymin},{x:t.xmin+e/4,y:t.ymin}]}(t)[c];if(b(_,i)<r)return null;let p,f,m=M(t,n),d=1===n?a/4-m:a/2,g=1===n?l/4-m:l/2,x=null==h?a/8:Math.min(h/2,Math.max(d,0)),y=null==h?l/8:Math.min(h/2,Math.max(g,0));switch(c){case 0:case 1:p={x:_.x,y:_.y-y},f={x:_.x,y:_.y+y};break;case 2:case 3:p={x:_.x-x,y:_.y},f={x:_.x+x,y:_.y};break;case 4:case 5:p={x:_.x,y:_.y+y},f={x:_.x,y:_.y-y};break;default:p={x:_.x+x,y:_.y},f={x:_.x-x,y:_.y}}return{index:c,points:[p,s,f]}}function T(t,e,i,s,h,a){let l={x:.5*(t.xmin+t.xmax),y:.5*(t.ymin+t.ymax)},o=i.x-l.x,u=i.y-l.y,c=Math.hypot(o,u);if(0===c)return null;let _={x:o/c,y:u/c};if(b(n(t,_),i)<h)return null;let p={x:-_.y,y:_.x},f=b(l,n(t,p)),m=Math.min(e.xmax-e.xmin,e.ymax-e.ymin)/8,d=Math.min(null==a?m:a/2,f),g={x:l.x-p.x*d,y:l.y-p.y*d};return{index:-1,points:[r(t,i,{x:l.x+p.x*d,y:l.y+p.y*d}),s,r(t,i,g)]}}function E(t,e,i,s,n,r){for(let h=1;h<=4;h++){let a=n+(r-n)*h/4;t.push({x:e+s*Math.cos(a),y:i+s*Math.sin(a)})}}function G(t,e){let[i,,s]=e.points;for(let n=0;n<t.length-1;n++)if(O(i,t[n],t[n+1])&&O(s,t[n],t[n+1]))return void t.splice(n+1,0,...e.points)}function O(t,e,i){let s=1e-9,n=(t.x-e.x)*(i.y-e.y)-(t.y-e.y)*(i.x-e.x);return!(Math.abs(n)>s)&&t.x>=Math.min(e.x,i.x)-s&&t.x<=Math.max(e.x,i.x)+s&&t.y>=Math.min(e.y,i.y)-s&&t.y<=Math.max(e.y,i.y)+s}function N(t,e,i,s,n,r,h){if(0===i&&!r)return[c(t,e,s),e];let a=L(t,e,i,s,h),l=f(a,e,i);switch(i){case 1:default:return[l,e];case 2:return[l,F(l,a.onLeft,n),e];case 3:{let t=F(l,a.onLeft,n),i=b(a.start,e)<b(a.end,e)?a.start:a.end;return[l,t,{x:t.x,y:i.y},e]}case 4:return[{x:a.onLeft?t.xmax:t.xmin,y:l.y},l,e];case 5:case 6:return function(t,e,i){let s=b(t,e);if(0===s)return[t];let n=.75*s,r=R(t,e),h=Math.sqrt(n*n-.25*s*s),a=-(e.y-t.y)/s,l=(e.x-t.x)/s,o=i?-1:1,u=r.x+o*h*a,c=r.y+o*h*l,_=Math.atan2(t.y-c,t.x-u),p=Math.atan2(e.y-c,e.x-u)-_;i&&p>0?p-=2*Math.PI:!i&&p<0&&(p+=2*Math.PI);let f=[t];for(let t=1;t<=12;t++){let e=_+p*t/12;f.push({x:u+n*Math.cos(e),y:c+n*Math.sin(e)})}return f[12]=e,f}(l,e,5===i)}}function L(t,e,i,s,n){let r=e.x<=.5*(n.xmin+n.xmax);3===i&&(r=!r);let h=r?t.xmin-s:t.xmax+s;return{start:{x:h,y:t.ymin},end:{x:h,y:t.ymax},onLeft:r}}function R(t,e){return{x:.5*(t.x+e.x),y:.5*(t.y+e.y)}}function F(t,e,i){return{x:t.x+(e?-i:i),y:t.y}}},35521(t,e,i){var s=i(28076);s.D.CIMSolidStroke.capstyle,s.D.CIMSolidStroke.joinstyle,s.D.CIMSolidStroke.miterlimit},75585(t,e,i){function s(t){let e="normal",i="normal";if(t){let s=t.toLowerCase();s.includes("italic")?e="italic":s.includes("oblique")&&(e="oblique"),s.includes("bold")?i="bold":s.includes("light")&&(i="lighter")}return{style:e,weight:i}}i.d(e,{_:()=>s})},69754(t,e,i){i.d(e,{Z:()=>o,q:()=>l});var s=i(68197),n=i(75585);const r=/([A-Za-z_][\w-]*)\s*=\s*(['"])(.*?)\2/g,h=/&(amp|lt|gt|quot|apos);/g,a=/<\s*\/?\s*(?:CLR|BOL|_BOL|ITA|_ITA|UND|_UND|FNT|CHR)\b/i;function l(t){return a.test(t)}function o(t){if(!t.supportsRichText||!t.textString.includes("<"))return null;let e=function(t){return{font:{...t.font},fontSize:t.symbol?.height&&!isNaN(t.symbol.height)?t.symbol.height:10,characterSpacing:0}}(t),i=[],s=[],n=u(e),r="",h=!1,a=t.textString,l=()=>{if(!r)return;let t=c(r);if(!t)return void(r="");let e=s[s.length-1];e&&function(t,e){return t.fontSize===e.fontSize&&t.characterSpacing===e.characterSpacing&&t.font.family===e.font.family&&t.font.style===e.font.style&&t.font.weight===e.font.weight&&t.font.decoration===e.font.decoration&&function(t,e){return t===e||!!t&&!!e&&t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}(t.color,e.color)}(e,n)?e.text+=t:s.push({text:t,font:{...n.font},fontSize:n.fontSize,characterSpacing:n.characterSpacing,color:n.color}),r=""},o=0;for(;o<a.length;){let t=a[o];if("<"!==t){r+=t,o++;continue}let e=a.indexOf(">",o+1);if(-1===e)return null;let s=_(a.slice(o+1,e));if(!s)return null;if(h=!0,l(),s.isEnd){let t=i.pop();if(!t||t.name!==s.name)return null;n=t.previous}else{let t=u(n);n=p(n,s),i.push({name:s.name,previous:t})}o=e+1}return i.length?null:(l(),h?s.filter(t=>t.text.length>0):null)}function u(t){return{font:{...t.font},fontSize:t.fontSize,characterSpacing:t.characterSpacing,color:t.color}}function c(t){return t.replaceAll(h,(t,e)=>{switch(e){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":return'"';case"apos":return"'";default:return t}})}function _(t){let e=t.trim();if(!e)return null;let i=e.startsWith("/"),s=i?e.slice(1).trim():e,n=/^([A-Za-z_][\w-]*)/.exec(s);if(!n)return null;let h,a=n[1],l=s.slice(a.length),o={};for(r.lastIndex=0;h=r.exec(l);)o[h[1]]=h[3];return{isEnd:i,name:a,attributes:o}}function p(t,e){let i=u(t);switch(e.name.toUpperCase()){case"BOL":i.font.weight="bold";break;case"_BOL":i.font.weight="normal";break;case"ITA":i.font.style="italic";break;case"_ITA":i.font.style="normal";break;case"UND":i.font.decoration="underline";break;case"_UND":i.font.decoration="none";break;case"FNT":!function(t,e){let{name:i,style:s,size:r,scale:h,wght:a,ital:l}=e;if(i&&(t.font.family=i),s){let e=(0,n._)(s);t.font.style=e.style,t.font.weight=e.weight}if(a){let e=Number(a);t.font.weight=e>=600?"bold":"normal"}if(l){let e=Number(l);isNaN(e)||(t.font.style=0===e?"normal":"italic")}if(r){let e=Number(r);!isNaN(e)&&e>0&&(t.fontSize=e)}if(h){let e=Number(h);!isNaN(e)&&e>0&&(t.fontSize*=e/100)}}(i,e.attributes);break;case"CLR":i.color=function(t){if(t.hex){let e=s.A.fromHex(t.hex)?.toArray();if(e){let i="alpha"in t?d(t.alpha):e[3];return[e[0],e[1],e[2],i]}}if("red"in t||"green"in t||"blue"in t)return[f(t.red),f(t.green),f(t.blue),d(t.alpha)];let e=m(t.cyan),i=m(t.magenta),n=m(t.yellow),r=m(t.black),h=d(t.alpha),a=m(t.tint,100)/100,l=1-r;return[Math.round(255*(1-e)*l*a),Math.round(255*(1-i)*l*a),Math.round(255*(1-n)*l*a),h]}(e.attributes);break;case"CHR":!function(t,e){let i=Number(e.spacing);!isNaN(i)&&i>=0&&(t.characterSpacing=i/100)}(i,e.attributes)}return i}function f(t){let e=Number(t);return function(t){return Math.max(0,Math.min(255,Math.round(t)))}(isNaN(e)?0:e)}function m(t,e=0){let i=Number(t);return function(t){return Math.max(0,Math.min(1,t))}((isNaN(i)?e:i)/100)}function d(t){return Math.round(255*m(t,100))}},37615(t,e,i){i.d(e,{A:()=>h});var s=i(49186),n=i(53966),r=i(62577);function h(t,e,i,s,r,h){if(null==t)return null;let a=t.references("geometry")&&h?l(e,s,h):e,o=t.repurposeFeature(a,r);try{return t.evaluate(o,i)}catch(t){return n.A.getLogger("esri.views.2d.support.arcadeOnDemand").warn("Feature arcade evaluation failed:",t),null}}const a=new Map;function l(t,e,i){let{transform:h,hasZ:l,hasM:o}=i;a.has(e)||a.set(e,function(t){let e={};switch(t){case"esriGeometryPoint":return(t,i,s,n)=>(0,r.Tr)(i,e,t,s,n);case"esriGeometryPolygon":return(t,i,s,n)=>(0,r.$X)(i,e,t,s,n);case"esriGeometryPolyline":return(t,i,s,n)=>(0,r.P5)(i,e,t,s,n);case"esriGeometryMultipoint":return(t,i,s,n)=>(0,r.SW)(i,e,t,s,n);default:return n.A.getLogger("esri.views.2d.support.arcadeOnDemand").error(new s.A("mapview-arcade",`Unable to handle geometryType: ${t}`)),t=>t}}(e));let u=a.get(e)(t.geometry,h,l,o);return{...t,geometry:u}}},18989(t,e,i){i.d(e,{A:()=>s});class s{constructor(t=0,e=0,i=0,s=0){this.x=t,this.y=e,this.width=i,this.height=s}get isEmpty(){return this.width<=0||this.height<=0}union(t){this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.width=Math.max(this.width,t.width),this.height=Math.max(this.height,t.height)}}},63933(t,e,i){function s(t){if(!t)return 0;switch(t){case"Left":case"left":return-1;case"Right":case"right":return 1;case"justify":case"Justify":return 2;case"Center":case"center":return 0}}function n(t){if(!t)return 0;switch(t){case"Top":case"top":return 1;case"Center":case"middle":return 0;case"Baseline":case"baseline":return 2;case"Bottom":case"bottom":return-1}}function r(t){switch(t){case 1:case"right":return-1;case 2:case"justify":return 1;case 0:case"center":return 0;case-1:case"left":return 1;default:return console.debug(`Found invalid horizontal alignment ${t}`),0}}function h(t){switch(t){case 1:case"top":return 1;case 0:case"middle":return 0;case-1:case 2:case"baseline":case"bottom":return-1;default:return console.debug(`Found invalid vertical alignment ${t}`),0}}i.d(e,{Dy:()=>h,UD:()=>n,iT:()=>r,xy:()=>s})},15660(t,e,i){i.d(e,{A:()=>n});var s=i(88340);class n{constructor(t,e,i,n){this.transformedX=0,this.transformedY=0,this.center=(0,s.fA)(t,e),this.centerT=(0,s.vt)(),this.halfWidth=i/2,this.halfHeight=n/2,this.width=i,this.height=n}get x(){return this.center[0]}get y(){return this.center[1]}get blX(){return this.center[0]+this.halfWidth}get blY(){return this.center[1]+this.halfHeight}get trX(){return this.center[0]-this.halfWidth}get trY(){return this.center[1]-this.halfHeight}get xmin(){return this.x-this.halfWidth}get xmax(){return this.x+this.halfWidth}get ymin(){return this.y-this.halfHeight}get ymax(){return this.y+this.halfHeight}set x(t){this.center[0]=t}set y(t){this.center[1]=t}clone(){return new n(this.x,this.y,this.width,this.height)}serialize(t){return t.writeF32(this.center[0]),t.writeF32(this.center[1]),t.push(this.width),t.push(this.height),t}findCollisionDelta(t,e=4){let i=Math.abs(t.centerT[0]-this.centerT[0]),s=Math.abs(t.centerT[1]-this.centerT[1]),n=(t.halfWidth+this.halfWidth+e)/i,r=(t.halfHeight+this.halfHeight+e)/s;return Math.log2(Math.min(n,r))}extend(t){let e=Math.min(this.xmin,t.xmin),i=Math.min(this.ymin,t.ymin),s=Math.max(this.xmax,t.xmax)-e,n=Math.max(this.ymax,t.ymax)-i,r=e+s/2,h=i+n/2;this.width=s,this.height=n,this.halfWidth=s/2,this.halfHeight=n/2,this.x=r,this.y=h}static deserialize(t){let e=t.readF32(),i=t.readF32(),s=t.readInt32(),r=t.readInt32();return new n(e,i,s,r)}}},75434(t,e,i){i.d(e,{HB:()=>v,tA:()=>C});var s=i(90629),n=i(16905),r=i(85560),h=i(37585),a=i(88340),l=i(63933),o=i(18989),u=i(15660);const c=Math.PI/180;class _{static fromGlyph(t,e,i,s,n){let{mosaicItem:r,rect:h,shaping:a,code:l}=i,o=r.rect;return new _({width:0===l?h.width:o.width*s,height:0===l?h.height:o.height*s,x:s*(t+a.xOffset+h.left),y:s*(e+a.yOffset-h.top),textureBinding:r.textureBinding,texcoords:{topLeft:[o.x,o.y],topRight:[o.x+o.width,o.y],bottomLeft:[o.x,o.y+o.height],bottomRight:[o.x+o.width,o.y+o.height]},fontSize:n?.fontSize,color:n?.color})}constructor(t){this._rotationT=(0,r.vt)(),this._transform=(0,r.vt)(),this._angle=0,this._bounds=null,this.width=t.width,this.height=t.height,this.x=t.x,this.y=t.y,this.textureBinding=t.textureBinding,this.texcoords=t.texcoords,this.fontSize=t.fontSize,this.color=t.color}set angle(t){this._angle=t,(0,n.$0)(this._rotationT,-t),this._offsets=this._bounds=null}get angle(){return this._angle}get offsets(){if(!this._offsets){let{x:t,y:e,width:i,height:s}=this,a=(0,n.$0)((0,r.vt)(),-this.angle),l=(0,n.lw)((0,r.vt)(),a,this._transform);this._offsets={topLeft:(0,h.l0)([0,0],[t,e],l),topRight:(0,h.l0)([0,0],[t+i,e],l),bottomLeft:(0,h.l0)([0,0],[t,e+s],l),bottomRight:(0,h.l0)([0,0],[t+i,e+s],l)}}return this._offsets}get bounds(){if(this.width<=0)return null;if(!this._bounds){let t=this.offsets,e=1/0,i=1/0,s=-1/0,n=-1/0;for(let[r,h]of[t.topLeft,t.topRight,t.bottomLeft,t.bottomRight])e=Math.min(e,r),i=Math.min(i,h),s=Math.max(s,r),n=Math.max(n,h);let r=s-e,h=n-i,a=e+r/2,l=i+h/2;this._bounds=new u.A(a,l,r,h)}return this._bounds}setTransform(t){this._transform=t,this._offsets=null}}const p=(t,e)=>({code:0,mosaicItem:{rect:new o.A(0,0,11,8),sdf:!0,page:0,textureBinding:e},rect:{height:4,width:t,left:0,top:0},shaping:{xOffset:0,yOffset:0,xAdvance:0,yAdvance:0}});function f(t){return"underline"===t?(0,s.Lz)(2):0}function m(t,e,i,s,n){switch(t){case"underline":return(i??n?.baseline??22)+4+f(t)/e;case"line-through":return s??n?.midline??16;default:return 0}}function d(t,e){return t.forEach(t=>(0,h.l0)(t,t,e)),{topLeft:t[0],topRight:t[1],bottomLeft:t[2],bottomRight:t[3]}}class g{constructor(t,e,i,s){this._rotation=0,this._decorate(t,e,i,s),this.glyphs=t,this.bounds=this._createBounds(t),this.isMultiline=e.length>1,this._hasRotation=0!==i.angle,this._transform=this._createGlyphTransform(this.bounds,i),this._borderLineSizePx=i.borderLineSizePx,(i.borderLineSizePx||i.hasBackground)&&([this.bounds,this.textBox]=this.shapeBackground(this._transform));for(let e of t)e.setTransform(this._transform)}setRotation(t){if(0===t&&0===this._rotation)return;this._rotation=t;let e=this._transform,i=(0,n.$0)((0,r.vt)(),t);(0,n.lw)(e,i,e);for(let t of this.glyphs)t.setTransform(this._transform)}_decorate(t,e,i,s){if(!i.decoration||"none"===i.decoration||!t.length)return;let n=i.scale,r=t[0].textureBinding;for(let h of e){let e=h.scale??n,a=m(i.decoration,e,h.baseline,h.midline,s),l=h.startX*e,o=h.startY*e,u=(h.width+h.glyphWidthEnd)*e;t.push(_.fromGlyph(l,o+a*e,p(u,r),1))}}shapeBackground(t){let e=(1.5+(this._borderLineSizePx||0))/2,i=this._borderLineSizePx?e:0,{xmin:s,ymin:n,xmax:r,ymax:h,x:a,y:l,width:o,height:c}=this.bounds,_=[s-8,n-8],p=[r+8,n-8],f=[s-8,h+8],m=[r+8,h+8],g=d([[_[0]-e,_[1]-e],[p[0]+e,p[1]-e],[_[0]+i,_[1]+i],[p[0]-i,p[1]+i]],t),x=d([[f[0]+i,f[1]-i],[m[0]-i,m[1]-i],[f[0]-e,f[1]+e],[m[0]+e,m[1]+e]],t),y=d([[_[0]-e,_[1]-e],[_[0]+i,_[1]+i],[f[0]-e,f[1]+e],[f[0]+i,f[1]-i]],t),P=d([[p[0]-i,p[1]+i],[p[0]+e,p[1]-e],[m[0]-i,m[1]-i],[m[0]+e,m[1]+e]],t),M={main:d([_,p,f,m],t),top:g,bot:x,left:y,right:P};return[new u.A(a,l,o+2*e,c+2*e),M]}get boundsT(){let t=this.bounds,e=(0,h.hZ)((0,a.vt)(),t.x,t.y);if((0,h.l0)(e,e,this._transform),this._hasRotation){let i=Math.max(t.width,t.height);return new u.A(e[0],e[1],i,i)}return new u.A(e[0],e[1],t.width,t.height)}_createBounds(t){let e=1/0,i=1/0,s=0,n=0;for(let r of t)e=Math.min(e,r.offsets.topLeft[0]),i=Math.min(i,r.offsets.topLeft[1]),s=Math.max(s,r.offsets.bottomRight[0]),n=Math.max(n,r.offsets.bottomRight[1]);let r=s-e,h=n-i,a=e+r/2,l=i+h/2;return new u.A(a,l,r,h)}_createGlyphTransform(t,e){let i=c*e.angle,s=(0,r.vt)(),l=(0,a.vt)();return(0,n.Tl)(s,s,(0,h.hZ)(l,e.xOffset,-e.yOffset)),e.useCIMAngleBehavior?(0,n.e$)(s,s,i):((0,n.Tl)(s,s,(0,h.hZ)(l,t.x,t.y)),(0,n.e$)(s,s,i),(0,n.Tl)(s,s,(0,h.hZ)(l,-t.x,-t.y))),s}}class x{constructor(t,e,i,s,n,r){this.glyphWidthEnd=0,this.startX=0,this.startY=0,this.start=Math.max(0,Math.min(e,i)),this.end=Math.max(0,Math.max(e,i)),this.end<t.length&&(this.glyphWidthEnd=t[this.end].rect.width),this.width=s,this.yMin=n,this.yMax=r}}const y=t=>10===t,P=t=>32===t;function M(t,e,i){let s=[],n=1/i.scale,r=i.maxLineWidth*n,h=e?t.length-1:0,a=e?-1:t.length,l=e?-1:1,o=h,u=0,c=0,_=o,p=_,f=0,m=1/0,d=0;for(;o!==a;){let{code:e,rect:i,shaping:n}=t[o],a=Math.abs(i.top);if(!y(e)&&!P(e)&&(m=Math.min(m,a),d=Math.max(d,a+i.height)),y(e))o!==h&&(s.push(new x(t,_,o-l,u,m===1/0?0:m,d)),m=1/0,d=0),u=0,_=o+l,p=o+l,c=0;else if(P(e))p=o+l,c=0,f=n.xAdvance,u+=n.xAdvance;else if(u>r){if(p!==_){let e=p-2*l;u-=f,s.push(new x(t,_,e,u-c,m,d)),m=1/0,d=0,_=p,u=c}else s.push(new x(t,_,o-l,u,m,d)),m=1/0,d=0,_=o,p=o,u=0;u+=n.xAdvance,c+=n.xAdvance}else u+=n.xAdvance,c+=n.xAdvance;o+=l}let g=new x(t,_,o-l,u,m,d);return g.start>=0&&g.end<t.length&&s.push(g),s}function b(t,e,i){let s=0;for(let n=e;n<i;n++)P(t[n].code)&&!y(t[n+1].code)&&s++;return s}function C(t,e){return"glyphs"===t.type?function(t,e){let i=e.scale,s=[],n=t.sdfPadding,{faceInfo:r,glyphs:h,isRightToLeft:a}=t,o="justify"===e.horizontalAlignment||"Justify"===e.horizontalAlignment,u=M(h,a,e),c=u.length?function(t,e){let i=0;for(let e=0;e<t.length;e++){let{width:s}=t[e];i=Math.max(s,i)}let s="underline"===e.decoration?4:0,n=t[0].yMin;return{x:0,y:n,height:t[t.length-1].yMax+e.lineHeight*(t.length-1)+s-n,width:i}}(u,e):{y:0,height:0,width:0},p=o?a?1:-1:(0,l.xy)(e.horizontalAlignment),f=(0,l.UD)(e.verticalAlignment),m=+(2===f),d=m?0:f-1,x=r?.baseline??22,C=u.length>1,v=m?C?-c.y-c.height:-x:-c.y+d*(c.height/2);for(let r=0;r<u.length;r++){let{start:a,end:l,width:f}=u[r],m=o&&r<u.length-1?b(h,a,l):0,d=m>0?(c.width-f)/m:0,g=-1*(p+1)*((d>0?c.width:f)/2)-n,x=(t.isRightToLeft?u.length-1-r:r)*e.lineHeight+v-n;u[r].startX=g,u[r].startY=x;for(let t=a;t<=l;t++){let e=h[t];if(y(e.code))continue;let n=_.fromGlyph(g,x,e,i);g+=e.shaping.xAdvance,d>0&&P(e.code)&&(g+=d),s.push(n)}}return new g(s,u,e,r)}(t,e):function(t,e){let i=w(t,e),s=function(t,e){let i=[],s=e.maxLineWidth,n=0,r=0,h=0,a=0,l=0,o=0;for(;n<t.length;){let e=t[n],{glyph:u}=e;if(y(u.code))0!==n&&i.push({width:r,start:a,end:n-1,glyphWidthEnd:t[n-1]?.glyph.rect.width*t[n-1]?.scale||0,yMin:0,yMax:0,lineHeight:0,baseline:0,midline:0,startX:0,startY:0,scale:1}),r=0,a=n+1,l=a,h=0,o=0;else if(P(u.code))l=n+1,h=0,o=e.xAdvance,r+=e.xAdvance;else if(r>s){if(l!==a){let e=l-2;r-=o,i.push({width:r-h,start:a,end:e,glyphWidthEnd:t[e]?.glyph.rect.width*t[e]?.scale||0,yMin:0,yMax:0,lineHeight:0,baseline:0,midline:0,startX:0,startY:0,scale:1}),a=l,r=h}else i.push({width:r,start:a,end:n-1,glyphWidthEnd:t[n-1]?.glyph.rect.width*t[n-1]?.scale||0,yMin:0,yMax:0,lineHeight:0,baseline:0,midline:0,startX:0,startY:0,scale:1}),a=n,l=n,r=0;r+=e.xAdvance,h+=e.xAdvance}else r+=e.xAdvance,h+=e.xAdvance;n++}if(a<t.length){let e=t.length-1;i.push({width:r,start:a,end:e,glyphWidthEnd:t[e]?.glyph.rect.width*t[e]?.scale||0,yMin:0,yMax:0,lineHeight:0,baseline:0,midline:0,startX:0,startY:0,scale:1})}return function(t,e){for(let i=0;i<e.length;i++){let s=e[i],n=0,r=1/0,h=0,a=0;for(let e=s.start;e<=s.end;e++){let i=t[e];"underline"===i.decoration&&(a=Math.max(a,i.underlineOffset)),!y(i.glyph.code)&&!P(i.glyph.code)&&(n=Math.max(n,i.baseline),h=Math.max(h,i.lineHeight))}let l=1/0,o=-1/0;for(let e=s.start;e<=s.end;e++){let i=t[e];y(i.glyph.code)||P(i.glyph.code)||(l=Math.min(l,n-i.baseline+i.top),o=Math.max(o,n-i.baseline+i.bottom),r=Math.min(r,n-i.baseline+i.midline))}a>0&&(o=Math.max(o,n+a)),s.baseline=n,s.midline=r===1/0?n:r,s.lineHeight=Math.max(h,o),s.yMin=l===1/0?0:l,s.yMax=o===-1/0?0:o,s.startY=i>0?e[i-1].startY+e[i-1].lineHeight:0}return e}(t,i)}(i,e),n=s.length?function(t){let e=0;for(let i of t)e=Math.max(i.width+i.glyphWidthEnd,e);let i=t[0].yMin;return{x:0,y:i,height:S(t[t.length-1])-i,width:e}}(s):{width:0},r=[],h="underline"===e.decoration?"none":e.decoration,a="justify"===e.horizontalAlignment||"Justify"===e.horizontalAlignment,o=a?-1:(0,l.xy)(e.horizontalAlignment),u=(0,l.UD)(e.verticalAlignment),c=2===u,p=s.length?s[0].yMin:0,f=s.length?S(s[s.length-1]):0,m=f-p,d=c?s.length>1?-f:-(s[0]?.baseline??0):1===u?-p:-1===u?-f:-(p+m/2);for(let t=0;t<s.length;t++){let e=s[t],h=a&&t<s.length-1?I(i,e.start,e.end):0,l=h>0?(n.width-e.width)/h:0,u=-1*(o+1)*((l>0?n.width:e.width)/2),c=e.startY+d,p=null;e.startX=u,e.startY=c;for(let t=e.start;t<=e.end;t++){let s=i[t],{glyph:n,scale:h,fontSize:a}=s,o=u;if(y(n.code)){p=z(r,p,c,e.baseline);continue}"underline"===s.decoration?(p&&p.underlineOffset!==s.underlineOffset||p&&!k(p.color,s.color))&&(p=z(r,p,c,e.baseline)):p=z(r,p,c,e.baseline);let f=c+e.baseline-s.baseline;r.push(_.fromGlyph(u/h,f/h,n,h,{fontSize:a,color:s.color})),u+=s.xAdvance,"underline"===s.decoration&&(p??={startX:o,endX:u,glyphWidthEnd:n.rect.width*h,textureBinding:n.mosaicItem.textureBinding,underlineOffset:s.underlineOffset,color:s.color},p.endX=u,p.glyphWidthEnd=n.rect.width*h,p.textureBinding=p.textureBinding??n.mosaicItem.textureBinding),l>0&&P(n.code)&&(u+=l,p&&(p.endX=u))}z(r,p,c,e.baseline)}return new g(r,s,{...e,decoration:h})}(t,e)}function v(t,e){return"glyphs"===t.type?function(t,e){let i=e.scale,{faceInfo:s,glyphs:n}=t,r=n.reduce((t,e)=>Math.max(t,e.rect.height),0),h=n.filter(t=>!y(t.code)&&t.mosaicItem.textureBinding).map(t=>_.fromGlyph(-t.rect.width/2,-r,t,i));return new g(h,[],e,s)}(t,e):function(t,e){let i=w(t,e),s=i.reduce((t,e)=>Math.max(t,e.glyph.rect.height*e.scale),0),n=i.filter(t=>!y(t.glyph.code)&&t.glyph.mosaicItem.textureBinding).map(t=>_.fromGlyph(-t.glyph.rect.width/2,-s/t.scale,t.glyph,t.scale,{fontSize:t.fontSize,color:t.color}));return new g(n,[],e)}(t,e)}function w(t,e){let i=e.lineHeightRatio??1,n=[];for(let e of t.runs){let t=(0,s.Lz)(e.fontSize),r=t/e.glyphs.sdfSize,h=29/24*t*i,a=(e.glyphs.faceInfo?.baseline??22)*r,l=(e.glyphs.faceInfo?.midline??16)*r,o=4*r+f(e.decoration),u=1+(e.characterSpacing??0);for(let i of e.glyphs.glyphs){let s=i.shaping.xAdvance*r,c=Math.abs(i.rect.top)*r,_=c+i.rect.height*r;n.push({glyph:i,scale:r,fontSize:t,decoration:e.decoration,underlineOffset:o,color:e.color,xAdvance:y(i.code)||P(i.code)?s:s*u,top:c,bottom:_,lineHeight:h,baseline:a,midline:l})}}return n}function S(t){return t.startY+t.lineHeight}function I(t,e,i){let s=0;for(let n=e;n<i;n++)P(t[n].glyph.code)&&!y(t[n+1].glyph.code)&&s++;return s}function z(t,e,i,s){return e&&t.push(_.fromGlyph(e.startX,i+s+e.underlineOffset,p(e.endX-e.startX+e.glyphWidthEnd,e.textureBinding),1,{color:e.color})),null}function k(t,e){return t===e||!!t&&!!e&&t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}},69221(t,e,i){i.d(e,{Lu:()=>r,hV:()=>n});var s=i(90629);function n(t){return(0,s.PN)(Math.round((0,s.Lz)(t)))}function r(t){let e=(0,s.PN)(32),i=(0,s.PN)(5e3);return Math.max(e,Math.min(t||i,i))}i(39829)},86235(t,e,i){i.d(e,{HZ:()=>r});var s=i(36745),n=i(14057);class r{static{this.instance=null}static local(){return null===r.instance&&(r.instance=new r),r.instance}execute(t,e,i){return new h(t,e,i)}}class h{constructor(t,e,i){this._cursor=t,this._effect=e,this._context=i}next(){let t=this._cursor.next();if(t&&t.totalSize>0){let e=t.asJSON(),i=l[this._effect.part](e,{...this._effect,target:this._context.target,scaleFactor:this._context.scaleFactor,matcher:this._context.matcher,tileKey:this._context.tileKey,geomUnitsPerPoint:this._context.geomUnitsPerPoint});return i?s.z.fromJSONCIM(i):null}return null}}function a(t,e){let i=e.matcher,s=e.target.getObjectId(),r=(0,n.$)(e.tileKey,s),h=i.getAnalyzedGraphic(r);return h?(h.evaluateWithGeometry(t,e.geomUnitsPerPoint*e.scaleFactor),h):null}const l={textPoint:function(t,e){let i=a(t,e);return i&&i.textPoint?{x:i.textPoint[0],y:i.textPoint[1],spatialReference:t.spatialReference}:t},beginDimensionLine:function(t,e){let i=a(t,e);if(!i||!i.dimensionLine)return t;let s=i.dimensionLine[0],n=s[1][0],r=s[1][1],h=s[0][0],l=s[0][1];return{spatialReference:t.spatialReference,paths:[[[n,r],[h,l]]]}},endDimensionLine:function(t,e){let i=a(t,e);if(!i||!i.dimensionLine)return t;let s=i.dimensionLine[1],n=s[1][0],r=s[1][1],h=s[0][0],l=s[0][1];return{spatialReference:t.spatialReference,paths:[[[n,r],[h,l]]]}},beginExtensionLine:function(t,e){let i=a(t,e);if(!i||!i.extensionLines)return t;let s=i.extensionLines[0],n=s[0][0],r=s[0][1],h=s[1][0],l=s[1][1];return{spatialReference:t.spatialReference,paths:[[[n,r],[h,l]]]}},endExtensionLine:function(t,e){let i=a(t,e);if(!i||!i.extensionLines)return t;let s=i.extensionLines[1],n=s[0][0],r=s[0][1],h=s[1][0],l=s[1][1];return{spatialReference:t.spatialReference,paths:[[[n,r],[h,l]]]}}};i.d(e,["Bd",0,"beginMarker","Cr",0,"beginExtensionLine","FF",0,"endMarker","Fn",0,"beginDimensionLine","NR",0,"textPoint","tz",0,"endDimensionLine","w0",0,"endExtensionLine"])},14057(t,e,i){function s(t,e){return`${t}_${e}`}i.d(e,{$:()=>s})}}]);
|