@arcgis/core 4.33.0-next.20250327 → 4.33.0-next.20250329
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/applications/Components/reactiveUtils.d.ts +4 -0
- package/applications/Components/reactiveUtils.js +1 -1
- package/applications/KnowledgeStudio/layerInternalAccessUtils.d.ts +1 -0
- package/applications/KnowledgeStudio/layerInternalAccessUtils.js +1 -1
- package/applications/MapViewer/templateUtils.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{66cae76da0582cfa8656.js → 0943695a1dcd21c45e83.js} +1 -1
- package/assets/esri/core/workers/chunks/{c6bcfa99fb222894fa0e.js → 0a0e5d699ddb7052c5c0.js} +1 -1
- package/assets/esri/core/workers/chunks/0a675f9f69b8b13b7443.js +1 -0
- package/assets/esri/core/workers/chunks/{0a98dc3ea67ce97a6e7b.js → 0b6ceb0194a07bbc3433.js} +1 -1
- package/assets/esri/core/workers/chunks/0eed612e82a279ac8d1e.js +1 -0
- package/assets/esri/core/workers/chunks/{458f4c6c8820c1f62f69.js → 1322096a72e910f23167.js} +1 -1
- package/assets/esri/core/workers/chunks/{cbe22c58b3230b12b31a.js → 13ad4ee2e064d13ca34d.js} +1 -1
- package/assets/esri/core/workers/chunks/176e7c7c2a871bcb512e.js +1 -0
- package/assets/esri/core/workers/chunks/1cd9b5ef62582b25df9b.js +1 -0
- package/assets/esri/core/workers/chunks/1cf8a431e5da946c7d27.js +1 -0
- package/assets/esri/core/workers/chunks/{add0770399a63b7635b5.js → 1df34b7fd68f5ab55bd3.js} +1 -1
- package/assets/esri/core/workers/chunks/201db423e3c6f947b77c.js +1 -0
- package/assets/esri/core/workers/chunks/213e82a7e3fa5b253ec1.js +1 -0
- package/assets/esri/core/workers/chunks/{22618753349eb9d8b3df.js → 222446da9cb58c3c3b7e.js} +1 -1
- package/assets/esri/core/workers/chunks/{e1b42fc5c1d89333e834.js → 239821543abbd63c5787.js} +2 -2
- package/assets/esri/core/workers/chunks/{0f37b3a797d8a55439a4.js → 277b61af8982092a4c81.js} +1 -1
- package/assets/esri/core/workers/chunks/2a654d8de99be40dd0e6.js +1 -0
- package/assets/esri/core/workers/chunks/2b07bdb6c4c4a5b2f968.js +1 -0
- package/assets/esri/core/workers/chunks/2bda2cfc6e81818d7d33.js +1 -0
- package/assets/esri/core/workers/chunks/2cbab0c078d0b844934c.js +1 -0
- package/assets/esri/core/workers/chunks/{193b4fecdfee927d6200.js → 37e4f588a6896f98bce3.js} +1 -1
- package/assets/esri/core/workers/chunks/392e64a573f67817db02.js +1 -0
- package/assets/esri/core/workers/chunks/3a743653b786b010a57f.js +1 -0
- package/assets/esri/core/workers/chunks/3be007f32ea1e18b8b3b.js +1 -0
- package/assets/esri/core/workers/chunks/451555af283b32a10fef.js +1 -0
- package/assets/esri/core/workers/chunks/{835fa4484c58d9b31c78.js → 460afde071df9f35182d.js} +1 -1
- package/assets/esri/core/workers/chunks/{26bedec014488e1fc5e4.js → 4816cf647eca2f4cecc2.js} +1 -1
- package/assets/esri/core/workers/chunks/{fdc9bd8f309af610fa62.js → 48ad7beb48dcc2693cc3.js} +1 -1
- package/assets/esri/core/workers/chunks/{1e631e34ee495eb0e76e.js → 49ed3ab9bd6d7c52e864.js} +1 -1
- package/assets/esri/core/workers/chunks/{09c9e4e94f09ba9f4c22.js → 4aa0a58ded4465ea28bd.js} +1 -1
- package/assets/esri/core/workers/chunks/{82692bff98b4ec781544.js → 4d798da25a726f179089.js} +1 -1
- package/assets/esri/core/workers/chunks/51339193abddfe37745d.js +1 -0
- package/assets/esri/core/workers/chunks/52d160cb7921ae7a4f57.js +1 -0
- package/assets/esri/core/workers/chunks/{630a9afdf0523c27ddb6.js → 555c95b149e3a82a4460.js} +1 -1
- package/assets/esri/core/workers/chunks/{eab1e3c101158675abba.js → 5660f479c005149bce8d.js} +1 -1
- package/assets/esri/core/workers/chunks/5a51c75a2932d9da001a.js +1 -0
- package/assets/esri/core/workers/chunks/{37a3533f004bf2e888da.js → 5d01f0b86566d08ba29d.js} +1 -1
- package/assets/esri/core/workers/chunks/{0576b035c1654a43ad5c.js → 5de3aee547113bfd59df.js} +1 -1
- package/assets/esri/core/workers/chunks/5e79642851e888eddfe4.js +1 -0
- package/assets/esri/core/workers/chunks/{45eee326f7a649c5a15b.js → 626db8488f9d931cf55c.js} +2 -2
- package/assets/esri/core/workers/chunks/{5a6f7360183693f8490d.js → 6339a24874c698594101.js} +1 -1
- package/assets/esri/core/workers/chunks/63dade3e1cc7f5b76846.js +1 -0
- package/assets/esri/core/workers/chunks/6c378e7a6ca29d530880.js +1 -0
- package/assets/esri/core/workers/chunks/71e46e866c23372b0b58.js +1 -0
- package/assets/esri/core/workers/chunks/{c591527543fd75a917d4.js → 72c7126dbd27fa48fcdb.js} +1 -1
- package/assets/esri/core/workers/chunks/738e4f46feb3758456e0.js +1 -0
- package/assets/esri/core/workers/chunks/{d459c790a3b89ac53d2d.js → 759c12b0715279e3c0f6.js} +1 -1
- package/assets/esri/core/workers/chunks/75fa861b5757551f8fdc.js +1 -0
- package/assets/esri/core/workers/chunks/7655be1470ce39f0e494.js +1 -0
- package/assets/esri/core/workers/chunks/77660e18ea793ae85f83.js +1 -0
- package/assets/esri/core/workers/chunks/796cf1c2ca9955595836.js +1 -0
- package/assets/esri/core/workers/chunks/79c4f10da8360ee60cd2.js +1 -0
- package/assets/esri/core/workers/chunks/{49c346d2fb8538990f45.js → 7d1c39c2a80e20a0595f.js} +1 -1
- package/assets/esri/core/workers/chunks/7f36cffc6ed984b7e467.js +1 -0
- package/assets/esri/core/workers/chunks/82353e59ac6d909dcf41.js +1 -0
- package/assets/esri/core/workers/chunks/82493f51a2182f76dd2f.js +1 -0
- package/assets/esri/core/workers/chunks/84d301e1b6b0d0b48f51.js +1 -0
- package/assets/esri/core/workers/chunks/86931186095c23e47c0c.js +1 -0
- package/assets/esri/core/workers/chunks/879d672d12f9ef2e1b50.js +1 -0
- package/assets/esri/core/workers/chunks/{59e4e780dcdfed555ca5.js → 8ef5e6f1c606e5e41002.js} +1 -1
- package/assets/esri/core/workers/chunks/90c893959145827961ac.js +1 -0
- package/assets/esri/core/workers/chunks/921b41b101957cfc1cfd.js +1 -0
- package/assets/esri/core/workers/chunks/931275cfa2c55eb0f504.js +1 -0
- package/assets/esri/core/workers/chunks/{f128d3431da86e484117.js → 94292c7afff18694d55e.js} +1 -1
- package/assets/esri/core/workers/chunks/{7e0e9ca84490a0c67197.js → 98da74243df03e0cc70d.js} +1 -1
- package/assets/esri/core/workers/chunks/{354117429b3a0a0794c9.js → 999e8dbe6f4d0665b3ab.js} +1 -1
- package/assets/esri/core/workers/chunks/{c0400c25c53fd90fc90e.js → 9e156e135f34f9b06032.js} +1 -1
- package/assets/esri/core/workers/chunks/9f18de17fbcad0e5c140.js +1 -0
- package/assets/esri/core/workers/chunks/{4eb1a2433f675bde12ad.js → a01c86910fe4984eb788.js} +1 -1
- package/assets/esri/core/workers/chunks/a348ff2dd936c6bf9399.js +1 -0
- package/assets/esri/core/workers/chunks/a53e9f5092de715da025.js +1 -0
- package/assets/esri/core/workers/chunks/a9b6377f1fef5826f28d.js +1 -0
- package/assets/esri/core/workers/chunks/{21016d58428b15f7427c.js → aa712f850fd129ca5ed8.js} +1 -1
- package/assets/esri/core/workers/chunks/ab0113d1269675dcd520.js +1 -0
- package/assets/esri/core/workers/chunks/ba4d91816f6a0bf0d812.js +1 -0
- package/assets/esri/core/workers/chunks/bf453744067267e84d1b.js +1 -0
- package/assets/esri/core/workers/chunks/c2f38c66fae2cdb57445.js +1 -0
- package/assets/esri/core/workers/chunks/c7aa4a8263e21f631004.js +1 -0
- package/assets/esri/core/workers/chunks/{3be465c653236d6d8c1f.js → d2c7067bb6654c0e2793.js} +1 -1
- package/assets/esri/core/workers/chunks/{bc3f42401131a12fce9b.js → d2eb3802fa003c2d497e.js} +1 -1
- package/assets/esri/core/workers/chunks/da7c14ae1a25fc7163ce.js +1 -0
- package/assets/esri/core/workers/chunks/da8a002d18544def5383.js +1 -0
- package/assets/esri/core/workers/chunks/daa54c8a317c27881763.js +1 -0
- package/assets/esri/core/workers/chunks/dde03a893f9cef8e0f45.js +1 -0
- package/assets/esri/core/workers/chunks/e15c612caadf7bac4ab9.js +1 -0
- package/assets/esri/core/workers/chunks/{a2377969f76640f1d6fe.js → e2029267cddb8e2effab.js} +1 -1
- package/assets/esri/core/workers/chunks/e3ef0451dcdc2e966628.js +1 -0
- package/assets/esri/core/workers/chunks/{fc7ce48c7b31a4665a9b.js → e792603b7cc3ddd133f3.js} +1 -1
- package/assets/esri/core/workers/chunks/e7e987558cf017c62458.js +1 -0
- package/assets/esri/core/workers/chunks/eabfab23246d4a052ea3.js +1 -0
- package/assets/esri/core/workers/chunks/ed3d1d0465f4a4d8df4a.js +1 -0
- package/assets/esri/core/workers/chunks/{0c9e933b392616460e62.js → f0c864425f000ab87a7b.js} +1 -1
- package/assets/esri/core/workers/chunks/{ed4afafbcb31491c2049.js → f452ca61842dbe8de9af.js} +1 -1
- package/assets/esri/core/workers/chunks/f54546c155fba2fd3a7e.js +1 -0
- package/assets/esri/core/workers/chunks/{4c8164955f8d844c09ee.js → f8d1c7df671733c3325c.js} +1 -1
- package/assets/esri/core/workers/chunks/{e45404a982e173459990.js → f92d521ed3df3c9f737b.js} +1 -1
- package/assets/esri/core/workers/chunks/{b2289c18c02c868a2939.js → f9bedb421d4e115a888f.js} +1 -1
- package/assets/esri/core/workers/chunks/{55f7b1de8882569861c0.js → faed301a25252c619cff.js} +1 -1
- package/assets/esri/core/workers/chunks/fb22b2e4988ecf4d6376.js +1 -0
- package/assets/esri/core/workers/chunks/fb455fd89b74b70a6a2b.js +1 -0
- package/assets/esri/core/workers/chunks/{6d77c7e9dec323fc4145.js → fb603edd374e24f366ff.js} +1 -1
- package/assets/esri/core/workers/chunks/fc5ca7b08915177c5e33.js +1 -0
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_en.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_en.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_en.json +1 -1
- package/core/Accessor.js +1 -1
- package/core/accessorSupport/utils.js +1 -1
- package/core/workers/registry.js +1 -1
- package/geometry/operators/gx/operatorPolygonOverlay.js +1 -1
- package/geometry/operators/polygonOverlayOperator.js +1 -1
- package/geometry/support/meshUtils/elevation.js +1 -1
- package/geometry/support/meshUtils.js +1 -1
- package/interfaces.d.ts +152 -16
- package/intl/locale.js +1 -1
- package/layers/OrientedImageryLayer.js +1 -1
- package/layers/SceneLayer.js +1 -1
- package/layers/graphics/sources/WFSSourceWorker.js +1 -1
- package/layers/support/RasterWorker.js +1 -1
- package/layers/support/VideoElement.js +1 -1
- package/layers/support/commonProperties.js +1 -1
- package/layers/support/rasterDatasets/FunctionRaster.js +1 -1
- package/layers/support/rasterFunctions/clipUtils.js +1 -1
- package/layers/support/rasterFunctions/rasterProjectionHelper.js +1 -1
- package/networks/RulesTable.js +1 -1
- package/networks/UtilityNetwork.js +1 -1
- package/networks/support/utils.js +1 -1
- package/package.json +2 -2
- package/portal/schemas/definitions.js +1 -1
- package/portal/schemas/sceneLayerItem.js +1 -1
- package/rest/networks/queryAssociations.js +1 -1
- package/support/actions/actionUtils.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/WebStyleSymbol.js +1 -1
- package/symbols/support/symbolUtils.js +1 -1
- package/tables/AttributeTableTemplate.js +1 -1
- package/tables/elements/AttributeTableAttachmentElement.js +1 -1
- package/tables/elements/AttributeTableFieldElement.js +1 -1
- package/tables/elements/AttributeTableGroupElement.js +1 -1
- package/tables/elements/AttributeTableRelationshipElement.js +1 -1
- package/tables/support/FieldOrder.js +5 -0
- package/tables/support/tablesUtils.js +1 -1
- package/views/2d/LabelManager.js +1 -1
- package/views/2d/engine/webgl/Overlay.js +1 -1
- package/views/2d/layers/features/layerAdapters/OGCFeatureLayerAdapter.js +1 -1
- package/views/2d/layers/features/schema/processor/symbols/SymbolSchema.js +1 -1
- package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DWebStyleSymbol.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/terrain/Tile.js +1 -1
- package/views/3d/terrain/TileRenderer.js +1 -1
- package/views/DOMContainer.js +1 -1
- package/views/FocusArea.js +1 -1
- package/views/GroundView.js +1 -1
- package/views/PopupView.js +1 -1
- package/views/VideoView.js +1 -1
- package/views/support/GroundViewElevationSampler.js +1 -1
- package/views/support/TextureCompressionHelper.js +1 -1
- package/views/support/TextureCompressionWorker.js +5 -0
- package/views/support/TextureCompressionWorkerHandle.js +5 -0
- package/views/support/imageReprojection.js +1 -1
- package/views/webgl/Texture.js +1 -1
- package/webscene/Slide.js +1 -1
- package/widgets/CatalogLayerList/CatalogLayerListViewModel.js +1 -1
- package/widgets/CatalogLayerList.js +1 -1
- package/widgets/Directions.js +1 -1
- package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/UtilityNetworkAssociationItemList.js +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/FeatureTable/Grid/Grid.js +1 -1
- package/widgets/FeatureTable/Grid/GridViewModel.js +1 -1
- package/widgets/FeatureTable/support/FeatureStore.js +1 -1
- package/widgets/FeatureTable.js +1 -1
- package/widgets/Features/FeaturesDrillIn.js +1 -1
- package/widgets/Features.js +1 -1
- package/widgets/LayerList/LayerListItem.js +1 -1
- package/widgets/LayerList/ListItem.js +1 -1
- package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
- package/widgets/Legend.js +1 -1
- package/widgets/Search.js +1 -1
- package/widgets/TableList/ListItem.js +1 -1
- package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.js +1 -1
- package/widgets/UtilityNetworkTrace.js +1 -1
- package/widgets/ValuePicker.js +1 -1
- package/widgets/Widget.js +1 -1
- package/widgets/support/tests.js +1 -1
- package/widgets/support/uriUtils.js +1 -1
- package/assets/esri/core/workers/chunks/07910d16d1efae41d4bc.js +0 -1
- package/assets/esri/core/workers/chunks/0a3c1642cfabf9acd5c5.js +0 -1
- package/assets/esri/core/workers/chunks/0b7331613f91a3258352.js +0 -1
- package/assets/esri/core/workers/chunks/1a09dfb2c9fd7cd84cd4.js +0 -1
- package/assets/esri/core/workers/chunks/1dd6d68d23ba07587ae4.js +0 -1
- package/assets/esri/core/workers/chunks/2079f9d28e4199714f22.js +0 -1
- package/assets/esri/core/workers/chunks/29ba2022c2978e9bd53e.js +0 -1
- package/assets/esri/core/workers/chunks/29fe3e9a0ecab74bb729.js +0 -1
- package/assets/esri/core/workers/chunks/2bb508701ad8ccc3d6ab.js +0 -1
- package/assets/esri/core/workers/chunks/2ce80c764cca9e6a20cd.js +0 -1
- package/assets/esri/core/workers/chunks/2f23fc27d005ffa18f47.js +0 -1
- package/assets/esri/core/workers/chunks/35f3eef81fac7924a487.js +0 -1
- package/assets/esri/core/workers/chunks/4539a802cba77a7a7cc7.js +0 -1
- package/assets/esri/core/workers/chunks/470cf066294b053c2732.js +0 -1
- package/assets/esri/core/workers/chunks/4d7bd2bbe9045a2fee7a.js +0 -1
- package/assets/esri/core/workers/chunks/50b6be13c270d7ac80d3.js +0 -1
- package/assets/esri/core/workers/chunks/54ace3e4802934f3f9f2.js +0 -1
- package/assets/esri/core/workers/chunks/55c7c51e56d72f507c22.js +0 -1
- package/assets/esri/core/workers/chunks/5656cc44e3d4547668db.js +0 -1
- package/assets/esri/core/workers/chunks/597f450a57750637cb4d.js +0 -1
- package/assets/esri/core/workers/chunks/605eddec7aac891ed141.js +0 -1
- package/assets/esri/core/workers/chunks/6e7577cb6378ff34e722.js +0 -1
- package/assets/esri/core/workers/chunks/6eb8d7edafeafeb10cae.js +0 -1
- package/assets/esri/core/workers/chunks/71bd94cc789a55910f92.js +0 -1
- package/assets/esri/core/workers/chunks/74541f1a6d4228275c52.js +0 -1
- package/assets/esri/core/workers/chunks/75ec4d2ae9d427a1434f.js +0 -1
- package/assets/esri/core/workers/chunks/762567124623f6d11e67.js +0 -1
- package/assets/esri/core/workers/chunks/77845cd5d824c1004bfa.js +0 -1
- package/assets/esri/core/workers/chunks/78683f1aadc1377be5fd.js +0 -1
- package/assets/esri/core/workers/chunks/7a4413a188a8f1affb2f.js +0 -1
- package/assets/esri/core/workers/chunks/7d3b2bdc75525d47389c.js +0 -1
- package/assets/esri/core/workers/chunks/8063e35dacf8f99471d8.js +0 -1
- package/assets/esri/core/workers/chunks/81f2f1614ea27f4c2e65.js +0 -1
- package/assets/esri/core/workers/chunks/85a9025c2990a8bbd61b.js +0 -1
- package/assets/esri/core/workers/chunks/901c957c049f53318e87.js +0 -1
- package/assets/esri/core/workers/chunks/94f41ef15f6c61562e5e.js +0 -1
- package/assets/esri/core/workers/chunks/95f23bd17ce9e07fc8ef.js +0 -1
- package/assets/esri/core/workers/chunks/96d7f47ea8fbf345101c.js +0 -1
- package/assets/esri/core/workers/chunks/9f312f7284e506a84ed7.js +0 -1
- package/assets/esri/core/workers/chunks/a68b48fd1a529f69705e.js +0 -1
- package/assets/esri/core/workers/chunks/ac86d0b31f6368bd1fb1.js +0 -1
- package/assets/esri/core/workers/chunks/ad9b3b83aa96db7b79ea.js +0 -1
- package/assets/esri/core/workers/chunks/b02ac03503bfff1ff922.js +0 -1
- package/assets/esri/core/workers/chunks/b2666b89755323a84fcb.js +0 -1
- package/assets/esri/core/workers/chunks/b948fe33b4d650eea796.js +0 -1
- package/assets/esri/core/workers/chunks/be002f24beb832a369ce.js +0 -1
- package/assets/esri/core/workers/chunks/bf3c4c1bff8b71bc0b13.js +0 -1
- package/assets/esri/core/workers/chunks/d45ff061bf71b73e9f26.js +0 -1
- package/assets/esri/core/workers/chunks/d8ddff920725acb99200.js +0 -1
- package/assets/esri/core/workers/chunks/db4c110ab4c26c4b768c.js +0 -1
- package/assets/esri/core/workers/chunks/dfa4be2e07cc4c0938b0.js +0 -1
- package/assets/esri/core/workers/chunks/e491daf73ab1264aa1b9.js +0 -1
- package/assets/esri/core/workers/chunks/f2a6287c8d28be24f71e.js +0 -1
- package/assets/esri/core/workers/chunks/f4861d73c62096f73e48.js +0 -1
- package/assets/esri/core/workers/chunks/f70dd16f14279bb7e60d.js +0 -1
- package/assets/esri/core/workers/chunks/fa011ad649c05201e92a.js +0 -1
- package/views/3d/webgl-engine/lib/TextureCompressionWorker.js +0 -5
- package/views/3d/webgl-engine/lib/TextureCompressionWorkerHandle.js +0 -5
- /package/assets/esri/core/workers/chunks/{e1b42fc5c1d89333e834.js.LICENSE.txt → 239821543abbd63c5787.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8256,9655],{4146:(e,t,r)=>{r.d(t,{A:()=>_});var i=r(90237),s=r(78888),n=r(49186),o=r(65529),a=r(4902),l=r(92474),u=r(53966),c=r(74887),p=r(84952),d=r(10107),h=(r(44208),r(87811),r(40608)),y=r(5443),g=r(16930),f=r(92602),m=r(79677);let v=0,w=class extends(o.A.EventedMixin(a.A.IdentifiableMixin(l.A))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new y.A(-180,-90,180,90,g.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+v++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=g.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await r.e(7982).then(r.bind(r,27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:i}=await r.e(5613).then(r.bind(r,45613));try{return await i(t)}catch(e){const r=t?.portalItem,i=r?.id||"unset",s=r?.portal?.url||f.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+s+"', id: '"+i+"')",e),e}}(e)}initialize(){this.when().catch((e=>{(0,c.zf)(e)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})}))}destroy(){const e=this.parent;if(e){const t=this;"layers"in e&&e.layers.includes(t)?e.layers.remove(t):"tables"in e&&e.tables.includes(t)?e.tables.remove(t):"baseLayers"in e&&e.baseLayers.includes(t)?e.baseLayers.remove(t):"referenceLayers"in e&&e.referenceLayers.includes(t)&&e.referenceLayers.remove(t),this._set("parent",null)}}get effectiveVisible(){let e=this.visible;const t=this.parent;return e&&t&&"effectiveVisible"in t&&(e&&=t.effectiveVisible),e}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,p.An)(this.url)}createLayerView(e,t){return Promise.reject(new n.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,s.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new n.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,i._)([(0,d.MZ)({type:String})],w.prototype,"attributionDataUrl",void 0),(0,i._)([(0,d.MZ)({readOnly:!0})],w.prototype,"effectiveVisible",null),(0,i._)([(0,d.MZ)({type:y.A})],w.prototype,"fullExtent",void 0),(0,i._)([(0,d.MZ)({readOnly:!0})],w.prototype,"hasAttributionData",null),(0,i._)([(0,d.MZ)({type:String,clonable:!1})],w.prototype,"id",void 0),(0,i._)([(0,d.MZ)({type:Boolean,nonNullable:!0})],w.prototype,"legendEnabled",void 0),(0,i._)([(0,d.MZ)({type:["show","hide","hide-children"]})],w.prototype,"listMode",void 0),(0,i._)([(0,d.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],w.prototype,"opacity",void 0),(0,i._)([(0,d.MZ)({clonable:!1})],w.prototype,"parent",void 0),(0,i._)([(0,d.MZ)({readOnly:!0})],w.prototype,"parsedUrl",null),(0,i._)([(0,d.MZ)({type:Boolean,readOnly:!0})],w.prototype,"persistenceEnabled",void 0),(0,i._)([(0,d.MZ)({type:Boolean})],w.prototype,"popupEnabled",void 0),(0,i._)([(0,d.MZ)({type:Boolean})],w.prototype,"attributionVisible",void 0),(0,i._)([(0,d.MZ)({type:g.A})],w.prototype,"spatialReference",void 0),(0,i._)([(0,d.MZ)({type:String})],w.prototype,"title",void 0),(0,i._)([(0,d.MZ)({readOnly:!0,json:{read:!1}})],w.prototype,"type",void 0),(0,i._)([(0,d.MZ)()],w.prototype,"url",void 0),(0,i._)([(0,d.MZ)({type:m.A})],w.prototype,"visibilityTimeExtent",void 0),(0,i._)([(0,d.MZ)({type:Boolean,nonNullable:!0})],w.prototype,"visible",void 0),w=(0,i._)([(0,h.$)("esri.layers.Layer")],w);const _=w},4902:(e,t,r)=>{r.d(t,{A:()=>u});var i=r(90237),s=r(40608);let n=0;const o=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+n++})}};return t=(0,i._)([(0,s.$)("esri.core.Identifiable")],t),t};let a=class extends(o(class{})){};var l;a=(0,i._)([(0,s.$)("esri.core.Identifiable")],a),(l=a||(a={})).IdentifiableMixin=o,l.NumericIdentifiableMixin=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:n++})}};return t=(0,i._)([(0,s.$)("esri.core.Identifiable.NumericIdentifiable")],t),t};const u=a},8303:(e,t,r)=>{r.d(t,{A:()=>b});var i=r(90237),s=r(92602),n=r(70333),o=r(78888),a=r(60999),l=r(49186),u=r(53966),c=r(97768),p=r(74887),d=r(84952),h=r(10107),y=(r(44208),r(87811),r(36005)),g=r(40608),f=r(43937),m=r(83531),v=r(20655),w=r(80812),_=r(41318),S=r(10407);const b=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new w.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:i}=await r.e(1204).then(r.bind(r,41204));return(0,p.Te)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,p.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,p.QP)(e),!0))))}async setUserPrivileges(e,t){if(!s.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:s}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",s)}catch(e){(0,p.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=!n.id?.findCredential(this.url),s=e===r.id;if(s&&r.portal.user)return this._getUserPrivileges(r,i);let o,a;if(s)o=r.portal.url;else try{o=await(0,m.wI)(this.url,t)}catch(e){(0,p.QP)(e)}if(!o||!(0,d.b8)(o,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;a=await(n.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.QP)(e)}const l=!0,u=!1,c=!1;if(!a)return{features:{edit:l,fullEdit:u},content:{updateItem:c}};try{if(s?await r.reload():(r=new w.default({id:e,portal:{url:o}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,i)}catch(e){(0,p.QP)(e)}return{features:{edit:l,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(e,t){const r=(0,S.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?n.id?.findCredential(this.url):null;if(!t)return!0;const r=M.credential===t?M.user:await this._fetchEditingUser(e);return M.credential=t,M.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=n.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,s=v.A.getDefault();if(s&&s.loaded&&(0,d.S8)(s.restUrl)===(0,d.S8)(i))return s.user;const l=`${i}/community/self`,u=null!=e?e.signal:null,c=await(0,a.Ke)((0,o.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?_.A.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||v.A.getDefault());return r&&i&&!(0,d.ut)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i._)([(0,h.MZ)({type:w.default})],t.prototype,"portalItem",null),(0,i._)([(0,y.w)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,i._)([(0,f.K)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,i._)([(0,h.MZ)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,i._)([(0,h.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,i._)([(0,h.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,i._)([(0,h.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,i._)([(0,g.$)("esri.layers.mixins.PortalLayer")],t),t},M={credential:null,user:null}},18768:(e,t,r)=>{r.d(t,{b:()=>l});var i=r(90237),s=r(53966),n=r(10107),o=(r(44208),r(87811),r(40608)),a=r(60694);const l=e=>{let t=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,a.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,a.Jf)(e,s.A.getLogger(this)))}};return(0,i._)([(0,n.MZ)()],t.prototype,"title",null),(0,i._)([(0,n.MZ)({type:String})],t.prototype,"url",null),t=(0,i._)([(0,o.$)("esri.layers.mixins.ArcGISService")],t),t}},25036:(e,t,r)=>{r.d(t,{j:()=>o});var i=r(90237),s=r(10107),n=(r(44208),r(53966),r(87811),r(40608));const o=e=>{let t=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;t&&"effectiveScaleRange"in t&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,i._)([(0,s.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"minScale",void 0),(0,i._)([(0,s.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"maxScale",void 0),(0,i._)([(0,s.MZ)({readOnly:!0})],t.prototype,"effectiveScaleRange",null),t=(0,i._)([(0,n.$)("esri.layers.mixins.ScaleRangeLayer")],t),t}},36708:(e,t,r)=>{r.d(t,{C_:()=>d,OH:()=>g,Vh:()=>f,on:()=>p,pc:()=>m,wB:()=>l,z7:()=>u});var i=r(37955),s=r(36563),n=r(97768),o=r(74887),a=r(14012);function l(e,t,r={}){return c(e,t,r,h)}function u(e,t,r={}){return c(e,t,r,y)}function c(e,t,r={},i){let s=null;const o=r.once?(e,r)=>{i(e)&&((0,n.xt)(s),t(e,r))}:(e,r)=>{i(e)&&t(e,r)};if(s=(0,a.Cn)(e,o,r.sync,r.equals),r.initial){const t=e();o(t,t)}return s}function p(e,t,r,o={}){let a=null,u=null,c=null;function p(){a&&u&&(u.remove(),o.onListenerRemove?.(a),a=null,u=null)}function d(e){o.once&&o.once&&(0,n.xt)(c),r(e)}const h=l(e,((e,r)=>{p(),(0,i.wb)(e)&&(a=e,u=(0,i.on)(e,t,d),o.onListenerAdd?.(e))}),{sync:o.sync,initial:!0});return c=(0,s.hA)((()=>{h.remove(),p()})),c}function d(e,t){return function(e,t,r){if((0,o.G4)(r))return Promise.reject((0,o.NK)());const i=e();if(t?.(i))return Promise.resolve(i);let a=null;function l(){a=(0,n.xt)(a)}return new Promise(((i,n)=>{a=(0,s.vE)([(0,o.u7)(r,(()=>{l(),n((0,o.NK)())})),c(e,(e=>{l(),i(e)}),{sync:!1,once:!0},t??h)])}))}(e,y,t)}function h(e){return!0}function y(e){return!!e}r(80559);const g={sync:!0},f={initial:!0},m={sync:!0,initial:!0}},52136:(e,t,r)=>{r.d(t,{p:()=>o});var i=r(90237),s=r(10107),n=(r(44208),r(53966),r(87811),r(40608));const o=e=>{let t=class extends e{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,i._)([(0,s.MZ)({type:String})],t.prototype,"apiKey",null),t=(0,i._)([(0,n.$)("esri.layers.mixins.APIKeyMixin")],t),t}},54239:(e,t,r)=>{r.d(t,{A:()=>w});var i,s=r(90237),n=r(4576),o=r(66552),a=r(25482),l=r(83047),u=r(67076),c=r(10107),p=(r(44208),r(53966),r(36005)),d=r(40608),h=r(43937);const y=(0,o.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),g=y.jsonValues.slice();(0,n.Xy)(g,"orthometric");const f=(0,o.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let m=i=class extends a.A{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,r){return y.write(e,t,r)}readHeightModel(e,t,r){return y.read(e)||(r?.messages&&r.messages.push(function(e,t){return new u.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return f.read(e)||(r?.messages&&r.messages.push(v(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,l.LA)(e)||f.read(e)||(r?.messages&&r.messages.push(v(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new i({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const r=(0,l.k1)(t);return new i({heightModel:e.heightModel,heightUnit:r??void 0,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new i;return t.read(e,{origin:"web-scene"}),t}};function v(e,t){return new u.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,s._)([(0,c.MZ)({type:y.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g,default:"ellipsoidal",write:{isRequired:!0}}}}})],m.prototype,"heightModel",void 0),(0,s._)([(0,h.K)("web-scene","heightModel")],m.prototype,"writeHeightModel",null),(0,s._)([(0,p.w)(["web-scene","service"],"heightModel")],m.prototype,"readHeightModel",null),(0,s._)([(0,c.MZ)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f.jsonValues,write:{writer:f.write,isRequired:!0}}}}})],m.prototype,"heightUnit",void 0),(0,s._)([(0,p.w)("web-scene","heightUnit")],m.prototype,"readHeightUnit",null),(0,s._)([(0,p.w)("service","heightUnit")],m.prototype,"readHeightUnitService",null),(0,s._)([(0,c.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],m.prototype,"vertCRS",void 0),(0,s._)([(0,p.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],m.prototype,"readVertCRS",null),m=i=(0,s._)([(0,d.$)("esri.geometry.HeightModelInfo")],m);const w=m},69208:(e,t,r)=>{r.d(t,{d:()=>o});var i=r(90237),s=r(10107),n=(r(44208),r(53966),r(87811),r(40608));const o=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,i._)([(0,s.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,i._)([(0,n.$)("esri.layers.mixins.CustomParametersMixin")],t),t}},78553:(e,t,r)=>{r.d(t,{D:()=>n,p:()=>s});var i=r(56507);function s(e){const t=(0,i.Vr)(100*(1-e));return Math.max(0,Math.min(t,100))}function n(e){const t=1-e/100;return Math.max(0,Math.min(t,1))}},79677:(e,t,r)=>{r.d(t,{A:()=>h});var i,s=r(90237),n=r(25482),o=r(88930),a=r(10107),l=(r(44208),r(53966),r(87811),r(36005)),u=r(40608),c=r(43937),p=r(98623);let d=class extends n.A{static{i=this}static get allTime(){return y}static get empty(){return g}static fromArray(e){return new i({start:null!=e[0]?new Date(e[0]):e[0],end:null!=e[1]?new Date(e[1]):e[1]})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new i({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,i=e.start?.getTime()??e.start,s=e.end?.getTime()??e.end;return t===i&&r===s}expandTo(e,t=p.qU){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,o.lL)(r,e,t));let s=this.end;if(s){const r=(0,o.lL)(s,e,t);s=s.getTime()===r.getTime()?r:(0,o.S1)(r,1,e,t)}return new i({start:r,end:s})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return i.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,s=e.start?.getTime()??-1/0,n=e.end?.getTime()??1/0;let o,a;return s>=t&&s<=r?o=s:t>=s&&t<=n&&(o=t),r>=s&&r<=n?a=r:n>=t&&n<=r&&(a=n),null==o||null==a||isNaN(o)||isNaN(a)?i.empty:new i({start:o===-1/0?null:new Date(o),end:a===1/0?null:new Date(a)})}offset(e,t,r=p.qU){if(this.isEmpty||this.isAllTime)return this.clone();const s=new i,{start:n,end:a}=this;return null!=n&&(s.start=(0,o.S1)(n,e,t,r)),null!=a&&(s.end=(0,o.S1)(a,e,t,r)),s}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return y.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new i({start:t,end:r})}};(0,s._)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"end",void 0),(0,s._)([(0,l.w)("end")],d.prototype,"readEnd",null),(0,s._)([(0,c.K)("end")],d.prototype,"writeEnd",null),(0,s._)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isAllTime",null),(0,s._)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isEmpty",null),(0,s._)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"start",void 0),(0,s._)([(0,l.w)("start")],d.prototype,"readStart",null),(0,s._)([(0,c.K)("start")],d.prototype,"writeStart",null),d=i=(0,s._)([(0,u.$)("esri.time.TimeExtent")],d);const h=d,y=new d,g=new d({start:void 0,end:void 0})},80200:(e,t,r)=>{r.d(t,{T:()=>i,d:()=>g});const i={Base64:0,Hex:1,String:2,Raw:3},s=8,n=(1<<s)-1;function o(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function a(e){const t=[];for(let r=0,i=e.length*s;r<i;r+=s)t[r>>5]|=(e.charCodeAt(r/s)&n)<<r%32;return t}function l(e){const t=[];for(let r=0,i=32*e.length;r<i;r+=s)t.push(String.fromCharCode(e[r>>5]>>>r%32&n));return t.join("")}function u(e,t,r,i,s,n){return o(function(e,t){return e<<t|e>>>32-t}(o(o(t,e),o(i,n)),s),r)}function c(e,t,r,i,s,n,o){return u(t&r|~t&i,e,t,s,n,o)}function p(e,t,r,i,s,n,o){return u(t&i|r&~i,e,t,s,n,o)}function d(e,t,r,i,s,n,o){return u(t^r^i,e,t,s,n,o)}function h(e,t,r,i,s,n,o){return u(r^(t|~i),e,t,s,n,o)}function y(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let r=1732584193,i=-271733879,s=-1732584194,n=271733878;for(let t=0;t<e.length;t+=16){const a=r,l=i,u=s,y=n;r=c(r,i,s,n,e[t],7,-680876936),n=c(n,r,i,s,e[t+1],12,-389564586),s=c(s,n,r,i,e[t+2],17,606105819),i=c(i,s,n,r,e[t+3],22,-1044525330),r=c(r,i,s,n,e[t+4],7,-176418897),n=c(n,r,i,s,e[t+5],12,1200080426),s=c(s,n,r,i,e[t+6],17,-1473231341),i=c(i,s,n,r,e[t+7],22,-45705983),r=c(r,i,s,n,e[t+8],7,1770035416),n=c(n,r,i,s,e[t+9],12,-1958414417),s=c(s,n,r,i,e[t+10],17,-42063),i=c(i,s,n,r,e[t+11],22,-1990404162),r=c(r,i,s,n,e[t+12],7,1804603682),n=c(n,r,i,s,e[t+13],12,-40341101),s=c(s,n,r,i,e[t+14],17,-1502002290),i=c(i,s,n,r,e[t+15],22,1236535329),r=p(r,i,s,n,e[t+1],5,-165796510),n=p(n,r,i,s,e[t+6],9,-1069501632),s=p(s,n,r,i,e[t+11],14,643717713),i=p(i,s,n,r,e[t],20,-373897302),r=p(r,i,s,n,e[t+5],5,-701558691),n=p(n,r,i,s,e[t+10],9,38016083),s=p(s,n,r,i,e[t+15],14,-660478335),i=p(i,s,n,r,e[t+4],20,-405537848),r=p(r,i,s,n,e[t+9],5,568446438),n=p(n,r,i,s,e[t+14],9,-1019803690),s=p(s,n,r,i,e[t+3],14,-187363961),i=p(i,s,n,r,e[t+8],20,1163531501),r=p(r,i,s,n,e[t+13],5,-1444681467),n=p(n,r,i,s,e[t+2],9,-51403784),s=p(s,n,r,i,e[t+7],14,1735328473),i=p(i,s,n,r,e[t+12],20,-1926607734),r=d(r,i,s,n,e[t+5],4,-378558),n=d(n,r,i,s,e[t+8],11,-2022574463),s=d(s,n,r,i,e[t+11],16,1839030562),i=d(i,s,n,r,e[t+14],23,-35309556),r=d(r,i,s,n,e[t+1],4,-1530992060),n=d(n,r,i,s,e[t+4],11,1272893353),s=d(s,n,r,i,e[t+7],16,-155497632),i=d(i,s,n,r,e[t+10],23,-1094730640),r=d(r,i,s,n,e[t+13],4,681279174),n=d(n,r,i,s,e[t],11,-358537222),s=d(s,n,r,i,e[t+3],16,-722521979),i=d(i,s,n,r,e[t+6],23,76029189),r=d(r,i,s,n,e[t+9],4,-640364487),n=d(n,r,i,s,e[t+12],11,-421815835),s=d(s,n,r,i,e[t+15],16,530742520),i=d(i,s,n,r,e[t+2],23,-995338651),r=h(r,i,s,n,e[t],6,-198630844),n=h(n,r,i,s,e[t+7],10,1126891415),s=h(s,n,r,i,e[t+14],15,-1416354905),i=h(i,s,n,r,e[t+5],21,-57434055),r=h(r,i,s,n,e[t+12],6,1700485571),n=h(n,r,i,s,e[t+3],10,-1894986606),s=h(s,n,r,i,e[t+10],15,-1051523),i=h(i,s,n,r,e[t+1],21,-2054922799),r=h(r,i,s,n,e[t+8],6,1873313359),n=h(n,r,i,s,e[t+15],10,-30611744),s=h(s,n,r,i,e[t+6],15,-1560198380),i=h(i,s,n,r,e[t+13],21,1309151649),r=h(r,i,s,n,e[t+4],6,-145523070),n=h(n,r,i,s,e[t+11],10,-1120210379),s=h(s,n,r,i,e[t+2],15,718787259),i=h(i,s,n,r,e[t+9],21,-343485551),r=o(r,a),i=o(i,l),s=o(s,u),n=o(n,y)}return[r,i,s,n]}function g(e,t=i.Hex){const r=t||i.Base64,n=y(a(e),e.length*s);switch(r){case i.Raw:return n;case i.Hex:return function(e){const t="0123456789abcdef",r=[];for(let i=0,s=4*e.length;i<s;i++)r.push(t.charAt(e[i>>2]>>i%4*8+4&15)+t.charAt(e[i>>2]>>i%4*8&15));return r.join("")}(n);case i.String:return l(n);case i.Base64:return function(e){const t=[];for(let r=0,i=4*e.length;r<i;r+=3){const i=(e[r>>2]>>r%4*8&255)<<16|(e[r+1>>2]>>(r+1)%4*8&255)<<8|e[r+2>>2]>>(r+2)%4*8&255;for(let s=0;s<4;s++)8*r+6*s>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(i>>6*(3-s)&63))}return t.join("")}(n)}}},84453:(e,t,r)=>{r.r(t),r.d(t,{default:()=>C});var i,s=r(90237),n=r(49186),o=r(53966),a=r(92071),l=r(74887),u=r(36708),c=r(10107),p=(r(44208),r(87811),r(36005)),d=r(40608),h=r(87024),y=r(4146),g=r(52136),f=r(18768),m=r(69208),v=r(16131),w=r(8303),_=r(25036),S=r(58947),b=r(10873),M=r(50805),A=r(78888),O=r(5503),x=r(25482),I=r(84952),U=r(4718),P=r(67076),E=r(43937),T=r(39829),R=r(57251);let j=i=class extends x.A{constructor(e){super(e),this.geometry=null,this.type="clip"}writeGeometry(e,t,r,i){if(i.layer?.spatialReference&&!i.layer.spatialReference.equals(this.geometry.spatialReference)){if(!(0,R.canProjectWithoutEngine)(e.spatialReference,i.layer.spatialReference))return void(i?.messages&&i.messages.push(new P.A("scenemodification:unsupported","Scene modifications with incompatible spatial references are not supported",{modification:this,spatialReference:i.layer.spatialReference,context:i})));const s=new T.A;(0,R.projectPolygon)(e,s,i.layer.spatialReference),t[r]=s.toJSON(i)}else t[r]=e.toJSON(i);delete t[r].spatialReference}clone(){return new i({geometry:(0,U.o8)(this.geometry),type:this.type})}};(0,s._)([(0,c.MZ)({type:T.A}),(0,h.P)()],j.prototype,"geometry",void 0),(0,s._)([(0,E.K)(["web-scene","portal-item"],"geometry")],j.prototype,"writeGeometry",null),(0,s._)([(0,c.MZ)({type:["clip","mask","replace"],nonNullable:!0}),(0,h.P)()],j.prototype,"type",void 0),j=i=(0,s._)([(0,d.$)("esri.layers.support.SceneModification")],j);const Z=j;var N;let L=N=class extends(x.A.JSONSupportMixin(O.A.ofType(Z))){constructor(e){super(e),this.url=null}clone(){return new N({url:this.url,items:this.items.map((e=>e.clone()))})}toJSON(e){return this.toArray().map((t=>t.toJSON(e))).filter((e=>!!e.geometry))}static fromJSON(e,t){const r=new N;for(const i of e)r.add(Z.fromJSON(i,t));return r}static async fromUrl(e,t,r){const i={url:(0,I.An)(e),origin:"service"},s=await(0,A.A)(e,{responseType:"json",signal:r?.signal}),n=t.toJSON(),o=[];for(const e of s.data)o.push(Z.fromJSON({...e,geometry:{...e.geometry,spatialReference:n}},i));return new N({url:e,items:o})}};(0,s._)([(0,c.MZ)({type:String})],L.prototype,"url",void 0),L=N=(0,s._)([(0,d.$)("esri.layers.support.SceneModifications")],L);const $=L;var D=r(24212),k=r(97159);let H=class extends((0,S.w6)((0,f.b)((0,v.q)((0,w.A)((0,_.j)((0,a.P)((0,m.d)((0,g.p)(y.A))))))))){constructor(...e){super(...e),this.geometryType="mesh",this.operationalLayerType="IntegratedMeshLayer",this.type="integrated-mesh",this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.profile="mesh-pyramids",this.modifications=null,this._modificationsSource=null,this.path=null,this.definitionExpression=null}initialize(){this.addHandles((0,u.on)((()=>this.modifications),"after-changes",(()=>this.modifications=this.modifications),u.OH))}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}readModifications(e,t,r){this._modificationsSource={url:(0,k.f)(e,r),context:r}}set elevationInfo(e){null!=e&&"absolute-height"!==e.mode||this._set("elevationInfo",e),this._validateElevationInfo(e)}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}async _doLoad(e){const t=e?.signal;try{await this.loadFromPortal({supportedTypes:["Scene Service"]},e)}catch(e){(0,l.QP)(e)}if(await this._fetchService(t),null!=this._modificationsSource){const t=await $.fromUrl(this._modificationsSource.url,this.spatialReference,e);this.setAtOrigin("modifications",t,this._modificationsSource.context.origin),this._modificationsSource=null}await this._fetchIndexAndUpdateExtent(this.nodePages,t)}beforeSave(){if(null!=this._modificationsSource)return this.load().then((()=>{}),(()=>{}))}async saveAs(e,t){return this._debouncedSaveOperations(S.Xh.SAVE_AS,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"};return this._debouncedSaveOperations(S.Xh.SAVE,e)}validateLayer(e){if(e.layerType&&"IntegratedMesh"!==e.layerType)throw new n.A("integrated-mesh-layer:layer-type-not-supported","IntegratedMeshLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new n.A("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"});if(this.version.major>1)throw new n.A("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"})}_getTypeKeywords(){return["IntegratedMeshLayer"]}_validateElevationInfo(e){const t="Integrated mesh layers";(0,D.XF)(o.A.getLogger(this),(0,D.B)(t,"absolute-height",e)),(0,D.XF)(o.A.getLogger(this),(0,D.tW)(t,e))}};(0,s._)([(0,c.MZ)({type:String,readOnly:!0})],H.prototype,"geometryType",void 0),(0,s._)([(0,c.MZ)({type:["show","hide"]})],H.prototype,"listMode",void 0),(0,s._)([(0,c.MZ)({type:["IntegratedMeshLayer"]})],H.prototype,"operationalLayerType",void 0),(0,s._)([(0,c.MZ)({json:{read:!1},readOnly:!0})],H.prototype,"type",void 0),(0,s._)([(0,c.MZ)({type:M.W4,readOnly:!0})],H.prototype,"nodePages",void 0),(0,s._)([(0,c.MZ)({type:[M.uV],readOnly:!0})],H.prototype,"materialDefinitions",void 0),(0,s._)([(0,c.MZ)({type:[M.Ot],readOnly:!0})],H.prototype,"textureSetDefinitions",void 0),(0,s._)([(0,c.MZ)({type:[M.L0],readOnly:!0})],H.prototype,"geometryDefinitions",void 0),(0,s._)([(0,c.MZ)({readOnly:!0})],H.prototype,"serviceUpdateTimeStamp",void 0),(0,s._)([(0,c.MZ)({type:$}),(0,h.P)({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],H.prototype,"modifications",void 0),(0,s._)([(0,p.w)(["web-scene","portal-item"],"modifications")],H.prototype,"readModifications",null),(0,s._)([(0,c.MZ)(b.Yj)],H.prototype,"elevationInfo",null),(0,s._)([(0,c.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],H.prototype,"path",void 0),H=(0,s._)([(0,d.$)("esri.layers.IntegratedMeshLayer")],H);const C=H},85648:(e,t,r)=>{r.d(t,{n:()=>s});var i=r(84952);function s(e){return n[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){const t=(0,i.Zo)(e);return l[t]||o}(e.url)}(e)]||a}const n={},o="text/plain",a=n[o],l={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const e in l)n[l[e]]=e},87024:(e,t,r)=>{r.d(t,{P:()=>h});var i=r(49186),s=r(80200),n=r(76553),o=r(84952),a=r(13069),l=r(96156),u=r(35666),c=r(10107),p=r(85648),d=r(97159);function h(e){const t=e?.origins??[void 0];return(r,i)=>{const s=function(e,t,r){if("resource"===e?.type)return function(e,t,r){const i=(0,l.z4)(t,r);return{type:String,read:(e,t,r)=>{const s=(0,d.r)(e,t,r);return i.type===String?s:"function"==typeof i.type?new i.type({url:s}):void 0},write:{isRequired:i.json?.write?.isRequired,writer(t,s,a,l){if(!l?.resources)return"string"==typeof t?void(s[a]=(0,d.t)(t,l)):void(s[a]=t.write({},l));const c=function(e){return null==e?null:"string"==typeof e?e:e.url}(t),h=(0,d.t)(c,{...l,verifyItemRelativeUrls:l?.verifyItemRelativeUrls?{writtenUrls:l.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},d.M.NO),m=i.type!==String&&(!(0,n.H)(this)||l?.origin&&this.originIdOf(r)>(0,u.aB)(l.origin)),v={object:this,propertyName:r,value:t,targetUrl:h,dest:s,targetPropertyName:a,context:l,params:e};l?.portalItem&&h&&!(0,o.oP)(h)?m&&e?.contentAddressed?y(v):m?function(e){const{context:t,targetUrl:r,params:i,value:s,dest:n,targetPropertyName:a}=e;if(!t.portalItem)return;const l=t.portalItem.resourceFromPath(r),u=f(s,r,t),c=(0,p.n)(u),d=(0,o.Zo)(l.path),h=i?.compress??!1;c===d?(t.resources&&g({...e,resource:l,content:u,compress:h,updates:t.resources.toUpdate}),n[a]=r):y(e)}(v):function({context:e,targetUrl:t,dest:r,targetPropertyName:i}){e.portalItem&&e.resources&&(e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(t),compress:!1}),r[i]=t)}(v):l?.portalItem&&(null==h||null!=(0,d.i)(h)||(0,o.w8)(h)||m)?y(v):s[a]=h}}}}(e,t,r);switch(e?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:e,write:t}=d.b;return{read:e,write:t}}}}(e,r,i);for(const e of t){const t=(0,c.rM)(r,e,i);for(const e in s)t[e]=s[e]}}}function y(e){const{targetUrl:t,params:r,value:n,context:l,dest:u,targetPropertyName:c}=e;if(!l.portalItem)return;const h=(0,d.p)(t),y=f(n,t,l);if(r?.contentAddressed&&"json"!==y.type)return void l.messages?.push(new i.A("persistable:contentAddressingUnsupported",`Property "${c}" is trying to serializing a resource with content of type ${y.type} with content addressing. Content addressing is only supported for json resources.`,{content:y}));const m=r?.contentAddressed&&"json"===y.type?(0,s.d)(y.jsonString):h?.filename??(0,a.lk)(),v=(0,o.fj)(r?.prefix??h?.prefix,m),w=`${v}.${(0,p.n)(y)}`;if(r?.contentAddressed&&l.resources&&"json"===y.type){const e=l.resources.toKeep.find((({resource:e})=>e.path===w))??l.resources.toAdd.find((({resource:e})=>e.path===w));if(e)return void(u[c]=e.resource.itemRelativeUrl)}const _=l.portalItem.resourceFromPath(w);(0,o.w8)(t)&&l.resources&&l.resources.pendingOperations.push((0,o.tk)(t).then((e=>{_.path=`${v}.${(0,p.n)({type:"blob",blob:e})}`,u[c]=_.itemRelativeUrl})).catch((()=>{})));const S=r?.compress??!1;l.resources&&g({...e,resource:_,content:y,compress:S,updates:l.resources.toAdd}),u[c]=_.itemRelativeUrl}function g({object:e,propertyName:t,updates:r,resource:i,content:s,compress:n}){r.push({resource:i,content:s,compress:n,finish:r=>{!function(e,t,r){"string"==typeof e[t]?e[t]=r.url:e[t].url=r.url}(e,t,r)}})}function f(e,t,r){return"string"==typeof e?{type:"url",url:t}:{type:"json",jsonString:JSON.stringify(e.toJSON(r))}}},92071:(e,t,r)=>{r.d(t,{P:()=>w,L:()=>_});var i=r(90237),s=r(69622),n=r(76953),o=r(4718),a=r(35666);class l{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(a.AU),this._values=new Map,this.multipleOriginsSupported=!0}clone(e){const t=new l,r=this._originStores[a.Gr.DEFAULTS];r&&r.forEach(((e,r)=>{t.set(r,(0,o.o8)(e),a.Gr.DEFAULTS)}));for(let r=a.Gr.SERVICE;r<a.AU;r++){const i=this._originStores[r];i&&i.forEach(((i,s)=>{e&&e.has(s)||t.set(s,(0,o.o8)(i),r)}))}return t}get(e,t){const r=void 0===t?this._values:this._originStores[t];return r?r.get(e):void 0}keys(e){const t=null==e?this._values:this._originStores[e];return t?[...t.keys()]:[]}set(e,t,r=a.Gr.USER){let i=this._originStores[r];if(i||(i=new Map,this._originStores[r]=i),i.set(e,t),!this._values.has(e)||this._propertyOriginMap.get(e)<=r){const i=this._values.get(e);return this._values.set(e,t),this._propertyOriginMap.set(e,r),i!==t}return!1}delete(e,t=a.Gr.USER){const r=this._originStores[t];if(!r)return;const i=r.get(e);if(r.delete(e),this._values.has(e)&&this._propertyOriginMap.get(e)===t){this._values.delete(e);for(let r=t-1;r>=0;r--){const t=this._originStores[r];if(t&&t.has(e)){this._values.set(e,t.get(e)),this._propertyOriginMap.set(e,r);break}}}return i}has(e,t){const r=void 0===t?this._values:this._originStores[t];return!!r&&r.has(e)}revert(e,t){for(;t>0&&!this.has(e,t);)--t;const r=this._originStores[t],i=r?.get(e),s=this._values.get(e);return this._values.set(e,i),this._propertyOriginMap.set(e,t),s!==i}originOf(e){return this._propertyOriginMap.get(e)||a.Gr.DEFAULTS}forEach(e){this._values.forEach(e)}}var u=r(45917),c=r(88620),p=r(40608);const d=e=>{let t=class extends e{constructor(...e){super(...e);const t=(0,c.oY)(this),r=t.store,i=new l;t.store=i,(0,n.k)(t,r,i)}read(e,t){(0,u.L)(this,e,t)}getAtOrigin(e,t){const r=h(this),i=(0,a.aB)(t);if("string"==typeof e)return r.get(e,i);const s={};return e.forEach((e=>{s[e]=r.get(e,i)})),s}originOf(e){return(0,a.OL)(this.originIdOf(e))}originIdOf(e){return h(this).originOf(e)}revert(e,t){const r=h(this),i=(0,a.aB)(t),s=(0,c.oY)(this);let n;n="string"==typeof e?"*"===e?r.keys(i):[e]:e,n.forEach((e=>{s.invalidate(e),r.revert(e,i),s.commit(e)}))}};return t=(0,i._)([(0,p.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],t),t};function h(e){return(0,c.oY)(e).store}let y=class extends(d(s.A)){};y=(0,i._)([(0,p.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],y);var g=r(16649),f=r(49422);const m=e=>{let t=class extends e{constructor(...e){super(...e)}clear(e,t="user"){return v(this).delete(e,(0,a.aB)(t))}write(e,t){return(0,f.M)(this,e=e||{},t),e}setAtOrigin(e,t,r){(0,c.oY)(this).setAtOrigin(e,t,(0,a.aB)(r))}removeOrigin(e){const t=v(this),r=(0,a.aB)(e),i=t.keys(r);for(const e of i)t.originOf(e)===r&&t.set(e,t.get(e,r),a.Gr.USER)}updateOrigin(e,t){const r=v(this),i=(0,a.aB)(t),s=(0,g.Jt)(this,e);for(let t=i+1;t<a.AU;++t)r.delete(e,t);r.set(e,s,i)}toJSON(e){return this.write({},e)}};return t=(0,i._)([(0,p.$)("esri.core.MultiOriginJSONSupport.WriteableMultiOriginJSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};function v(e){return(0,c.oY)(e).store}const w=e=>{let t=class extends(m(d(e))){constructor(...e){super(...e)}};return t=(0,i._)([(0,p.$)("esri.core.MultiOriginJSONSupport")],t),t};let _=class extends(w(s.A)){};_=(0,i._)([(0,p.$)("esri.core.MultiOriginJSONSupport")],_)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[427],{5808:(e,t,n)=>{n.d(t,{O:()=>r});const r={geodesic:0,loxodrome:1,"great-elliptic":2,"normal-section":3,"shape-preserving":4}},35223:(e,t,n)=>{n.d(t,{Hh:()=>s,fz:()=>u,g7:()=>l,s1:()=>i});var r=n(83290);let o;function i(){return!!o&&(0,r.i)()}async function s(){if(!i()){const[e,t]=await Promise.all([Promise.all([n.e(1878),n.e(2189),n.e(4167)]).then(n.bind(n,28879)),Promise.all([n.e(1878),n.e(2189),n.e(6061)]).then(n.bind(n,12189)).then((e=>e.aG)).then((({injectPe:e})=>e)),(0,r.l)()]);o=new e.OperatorGeodeticLength,t(r.p)}}function l(e,t,n){return o.execute(e,t,n,null)}function u(){return o.supportsCurves()}},39663:(e,t,n)=>{n.d(t,{e:()=>f,g:()=>p,i:()=>c,l:()=>d,s:()=>a});var r=n(83047),o=n(35223),i=n(5808);let s,l,u,a;function c(){return!!s&&(0,o.s1)()}async function d(){if(!c()){const[e]=await Promise.all([Promise.all([n.e(1878),n.e(2189),n.e(3299),n.e(3169)]).then(n.bind(n,78125)),(0,o.Hh)()]);s=e.fromGeometry,l=e.fromSpatialReference,u=e.getSpatialReference,a=(0,o.fz)()}}function f(e,t={}){const{curveType:n="geodesic",unit:a}=t,c=u(e);let d=(0,o.g7)(s(e),l(c),i.O[n]);return d&&a&&(d=(0,r.oU)(d,"meters",a)),d}const p=Object.freeze(Object.defineProperty({__proto__:null,execute:f,isLoaded:c,load:d,get supportsCurves(){return a}},Symbol.toStringTag,{value:"Module"}))},40427:(e,t,n)=>{n.r(t),n.d(t,{execute:()=>r.e,isLoaded:()=>r.i,load:()=>r.l,supportsCurves:()=>r.s}),n(83047),n(35223),n(5808);var r=n(39663)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1088,4163,6061],{31088:(e,t,n)=>{n.r(t),n.d(t,{OperatorGeodeticDensifyByLength:()=>a,OperatorGeodeticDensifyCursor:()=>o});var s=n(76061),i=n(55537),r=n(12189);class a{getOperatorType(){return 10310}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,n,s,i){return new o(e,n,s,t,-1,-1,i)}execute(e,t,n,r,a){const o=new s.S([e]),_=this.executeMany(o,t,n,r,a).next();return _||(0,i.c)("null output"),_}}class o extends s.G{constructor(e,t,n,s,r,a,o){super(),this.m_progressTracker=o,a>0&&(0,i.b)(""),4!==n&&r>0&&(0,i.b)(""),t||(0,i.t)(""),0===t.getCoordinateSystemType()&&(0,i.t)(""),s>0||r>0||(0,i.t)(""),this.m_index=-1,this.m_inputGeoms=e,this.m_spatialReference=t,this.m_curveType=n,this.m_maxLengthMeters=s,this.m_maxDeviationMeters=r,this.m_maxAngle=a}next(){{let e;for(;e=this.m_inputGeoms.next();)return(0,i.d)(e),this.m_index=this.m_inputGeoms.getGeometryID(),this.geodeticDensify(e);return null}}getGeometryID(){return this.m_index}tock(){return!0}getRank(){return 1}geodeticDensify(e){return(0,r.u)(e,this.m_spatialReference,this.m_curveType,this.m_maxLengthMeters,this.m_maxDeviationMeters,this.m_progressTracker)}}},47591:(e,t,n)=>{n.d(t,{O:()=>p});var s=n(55537),i=n(12189),r=n(35368),a=n(83661),o=n(95213),_=n(79187),h=n(5247),m=n(31139);function u(){return{m_pGcs:new a.P,m_xyz:new o.h,m_factor:Number.NaN,m_geoLength:Number.NaN,setValues:c,setLength:l,assign:g}}function c(e,t,n,s){this.m_factor=e,this.m_pGcs.assign(t),this.m_xyz.assign(s),this.m_geoLength=n}function l(e){this.m_geoLength=e}function g(e){this.m_pGcs.assign(e.m_pGcs),this.m_xyz.assign(e.m_xyz),this.m_factor=e.m_factor,this.m_geoLength=e.m_geoLength}class p{getOperatorType(){return 10315}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}_ExecuteShapePreservingLength(e,t,n,s,r){if(e.hasNonLinearSegments()&&(e=(new h.O).execute(e,0,t.getTolerance(0),0,r)),t.isPannable()){let s=90,a=-90;if(1===n.getUnit().getUnitToBaseFactor()&&(s*=Math.PI/180,a*=Math.PI/180),2===t.getCoordinateSystemType()){let e=null;const n=[0,0,0,0];e=t.getPECoordSys(),n[0]=0,n[1]=s,n[2]=0,n[3]=a,i.Z.geogToProj(e,2,n),s=n[1],a=n[3]}const o=new _.J;e.queryEnvelope(o),o.ymin=a,o.ymax=s,e=(new m.O).execute(e,o,t,r)}else{const n=t.getPCSHorizon();if((e=(new i.f).execute(e,n,t,r))===n){const t=e.clone();e=t}}return e.isEmpty()?0:this._ExecuteIterativeApproach(e,t,n,s,1,r)}_ExecuteIterativeApproach(e,t,n,r,_,h){const m=(0,i.G)();n.querySpheroidData(m);const c=m.majorSemiAxis,l=m.e2,g=n.getUnit().getUnitToBaseFactor(),p=(0,a.p)(u,40),P=(0,a.d)(40,Number.NaN),f=u(),E=u();let S;const x=[0,0,0,0],v=t.getPECoordSys(),N=new a.P,A=new a.P,M=new a.P,D=new a.P,b=new a.P;let C=0;const T=e.querySegmentIterator();for(;T.nextPath();)for(;T.hasNextSegment();){const e=T.nextSegment();N.assign(e.getStartXY()),A.assign(e.getEndXY()),2===t.getCoordinateSystemType()?(x[0]=N.x,x[1]=N.y,x[2]=A.x,x[3]=A.y,i.Z.projToGeog(v,2,x),M.x=x[0]*g,M.y=x[1]*g,D.x=x[2]*g,D.y=x[3]*g):(M.setCoordsPoint2D(N),D.setCoordsPoint2D(A),M.scale(g),D.scale(g));const n=new o.h,r=new o.h;y(c,l,M,n),y(c,l,D,r);let a=d(c,n,r);f.setValues(0,M,Number.NaN,n),E.setValues(1,D,a,r),S=_,p[0].assign(E),P[0]=_;let h=0;for(;;){h>128&&(0,s.c)("iterations exceeded");const n=.5*(f.m_factor+E.m_factor),r=e.getCoord2D(n);2===t.getCoordinateSystemType()?(x[0]=r.x,x[1]=r.y,i.Z.projToGeog(v,1,x),b.x=x[0]*g,b.y=x[1]*g):(b.setCoordsPoint2D(r),b.scale(g)),M.setCoordsPoint2D(f.m_pGcs),D.setCoordsPoint2D(E.m_pGcs);const m=new o.h;y(c,l,b,m);const u=d(c,f.m_xyz,m),N=d(c,E.m_xyz,m);a=E.m_geoLength,Number.isNaN(a)&&(a=d(c,f.m_xyz,E.m_xyz));const A=u+N,T=S===_&&A>=20&&Math.abs(A-a)>1e-8*(a+A);if(h+2<40&&(T||Math.abs(A-a)>0&&S>0))E.setLength(N),p[h].assign(E),E.setValues(n,b,u,m),p[++h].assign(E),T?(S=_,P[h]=_):(S--,P[h-1]=S,P[h]=S);else{if(C+=A,0===h)break;f.assign(E),E.assign(p[--h]),S=P[h]}}}return C}execute(e,t,n){if(t&&0!==t.getCoordinateSystemType()||(0,s.t)(""),e.isEmpty()||e.getDimension()<1)return 0;let a=null;const o=t.getGCS();o!==t&&(a=(0,i.p)(t,o,null));const _=e.getGeometryType();if(_===s.G.enumEnvelope){const s=new r.a;return s.addEnvelope(e,!1),this._ExecuteShapePreservingLength(s,t,o,a,n)}if((0,s.f)(_)){const s=new r.P;return s.addSegment(e,!0),this._ExecuteShapePreservingLength(s,t,o,a,n)}return this._ExecuteShapePreservingLength(e,t,o,a,n)}}function y(e,t,n,s){s.assign((0,i.Q)(e,t,n))}function d(e,t,n){const s=e,i=new o.h;i.setSub(t,n);const r=i.length();return 2*s*Math.asin(r/(2*s))}},74163:(e,t,n)=>{n.r(t),n.d(t,{OperatorGeodeticArea:()=>T});var s=n(55537),i=n(35368),r=n(5247),a=n(12189),o=n(83661),_=n(79187),h=n(95213),m=n(31139),u=n(47591),c=n(90237),l=n(11878);n(90135),n(76061),n(31088),Symbol.dispose;class g{constructor(e,t,n,s,i=0,r=4){this.m_ptDistFrom=new o.P,this.m_segStartPt=new o.P,this.m_segEndPt=new o.P,this.m_geodeticLength=new a.E,this.m_az12=new a.E,this.m_minGeodeticDist=new a.E,this.m_segStartPt3d=new h.h,this.m_segEndPt3d=new h.h,this.m_sr=s,this.m_distCurveType=i,this.m_segCurveType=r,this.m_inputGCS=this.m_sr.getGCS(),this.m_rpu=this.m_inputGCS.getUnit().getUnitToBaseFactor(),this.m_bIsPannablePcs=2===this.m_sr.getCoordinateSystemType()&&this.m_sr.isPannable();const _=(0,a.G)();this.m_inputGCS.querySpheroidData(_),this.m_a=_.majorSemiAxis,this.m_eSquared=_.e2,this.setPointDistFrom(e),this.setSegmentEndPoints(t,n)}setSegmentEndPoints(e,t){this.m_segStartPt.assign(e),this.m_segEndPt.assign(t),this.m_bIsPannablePcs||(this.m_segStartPt.mulThis(this.m_rpu),this.m_segEndPt.mulThis(this.m_rpu)),2===this.m_segCurveType&&(this.m_segStartPt3d.assign((0,a.Q)(this.m_a,this.m_eSquared,this.m_segStartPt)),this.m_segEndPt3d.assign((0,a.Q)(this.m_a,this.m_eSquared,this.m_segEndPt))),this.calculateAndUpdateSegmentLength()}setPointDistFrom(e){this.m_ptDistFrom.assign(e),this.m_ptDistFrom.scale(this.m_rpu)}setSegmentCurveType(e){this.m_segCurveType=e}setDistanceCurveType(e){this.m_distCurveType=e}makeFunctor(){return e=>{let t;switch(this.m_segCurveType){case 0:case 1:case 3:{const n={stack:[],error:void 0,hasError:!1};try{const s=(0,c.b)(n,new a.E,!1),i=(0,c.b)(n,new a.E,!1);a.F.geodeticCoordinate(this.m_a,this.m_eSquared,this.m_segStartPt.x,this.m_segStartPt.y,this.m_geodeticLength.val*e,this.m_az12.val,s,i,this.m_segCurveType),t=new o.P(s.val,i.val);break}catch(e){n.error=e,n.hasError=!0}finally{(0,c.c)(n)}}case 2:{const n=h.h.lerp(this.m_segStartPt3d,this.m_segEndPt3d,e);t=(0,a.Y)(this.m_a,this.m_eSquared,n);break}case 4:t=o.P.lerp(this.m_segStartPt,this.m_segEndPt,e),this.m_bIsPannablePcs&&((0,a.S)(this.m_sr,0,[t],1),t.mulThis(this.m_rpu));break;default:(0,s.c)("Invalid curve type")}return a.F.geodeticDistance(this.m_a,this.m_eSquared,this.m_ptDistFrom.x,this.m_ptDistFrom.y,t.x,t.y,this.m_minGeodeticDist,null,null,this.m_distCurveType),this.m_minGeodeticDist.val}}calculateAndUpdateSegmentLength(){switch(this.m_segCurveType){case 0:case 2:case 1:case 3:a.F.geodeticDistance(this.m_a,this.m_eSquared,this.m_segStartPt.x,this.m_segStartPt.y,this.m_segEndPt.x,this.m_segEndPt.y,this.m_geodeticLength,this.m_az12,null,this.m_segCurveType);break;case 4:this.m_geodeticLength.val=o.P.distance(this.m_segStartPt,this.m_segEndPt);break;default:(0,s.c)("Invalid curve type")}}[Symbol.dispose](){this.m_geodeticLength[Symbol.dispose](),this.m_az12[Symbol.dispose](),this.m_minGeodeticDist[Symbol.dispose]()}}Symbol.dispose;class p{constructor(e,t,n,s,i=100){this.m_startPt=e.clone(),this.m_endPt=t.clone(),this.m_cE2=s,this.m_cE=Math.sqrt(this.m_cE2),this.m_c1By2e=1/(2*this.m_cE),this.m_cRpu=n.getGCS().getUnit().getUnitToBaseFactor(),this.isPcs=2===n.getCoordinateSystemType(),this.PEProjcs=n.getPECoordSys(),this.m_points=(0,o.d)(2*i,Number.NaN)}setSegmentEndPoints(e,t){this.m_startPt.assign(e),this.m_endPt.assign(t)}makeFunctor(){return e=>{const t=[0,0];t[0]=this.m_startPt.x*(1-e)+this.m_endPt.x*e,t[1]=this.m_startPt.y*(1-e)+this.m_endPt.y*e,this.isPcs&&a.Z.projToGeogCenter(this.PEProjcs,1,t,0);const n=Math.sin(t[1]*this.m_cRpu);return 0===this.m_cE2?n:-Math.log((1-this.m_cE*n)/(1+this.m_cE*n))*this.m_c1By2e+n/(1-this.m_cE2*n*n)}}}function y(e,t,n,s,i){const o=(new r.O).execute(e,t,0,0,i);let h;h=s?(new a.v).execute(o,s,i):o;const m=1===n.getUnit().getUnitToBaseFactor()?Math.PI/180:1,u=new _.J;h.queryEnvelope(u);const c=new _.J,l=new _.J,g=new _.J;c.setCoords({xmin:u.xmin,ymin:75*m,xmax:u.xmax,ymax:90*m}),l.setCoords({xmin:u.xmin,ymin:-60*m,xmax:u.xmax,ymax:75*m}),g.setCoords({xmin:u.xmin,ymin:-90*m,xmax:u.xmax,ymax:-60*m}),c.inflateCoords(.01*c.width(),0),l.inflateCoords(.01*l.width(),0),g.inflateCoords(.01*g.width(),0);let p=0;return p+=d(h,c,n,i),p+=d(h,l,n,i),p+=d(h,g,n,i),p}function d(e,t,n,i){const r=(new m.O).execute(e,t,n,i);if(null!==r&&!r.isEmpty()){const e=new _.J;r.queryEnvelope(e);const{first:t,second:h}=function(e,t){const n=function(e,t){const n=e.getUnit().getUnitToBaseFactor(),i=t.getCenter();i.scale(180*n/Math.PI);const r=new o.P;r.x=0,r.y=0;let _=0;if(0===_){i.y>45?(r.y=o.l,_=0):i.y<-45?(r.y=-o.l,_=1):i.x>=45&&i.x<135?(r.x=o.l,_=2):i.x>=135||i.x<-135?(r.x=o.l,_=3):i.x<-45&&i.x>=-135?(r.x=-o.l,_=4):(r.x=0,_=5);const e=n*Math.sqrt((0,o.s)(t.xmin-t.xmax)+(0,o.s)(t.ymin-t.ymax)),s=r.clone(),a=t.getCenter();if(a.scale(n),_<2&&(s.x=a.x),o.P.distance(s,a)+.5*e>o.l)return null}const h=P[_];if(null!==h&&h.getGCS().equalHorizontal(e))return h;const m=e.getText(),u=r.x,c=r.y;let l=0,g=-1;6!==_?g=a.a4.PE_PRJ_LAMBERT_AZIMUTHAL_EQAREA:((0,s.g)(false),l=0,g=a.a4.PE_PRJ_CYLINDRICAL_EQAREA);const p=(0,a.aw)("EqualAreaPCS");let y;g===a.a4.PE_PRJ_LAMBERT_AZIMUTHAL_EQAREA?y=`PROJCS["${p}",${m},PROJECTION["Lambert_Azimuthal_Equal_Area"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",${u}],PARAMETER["Latitude_of_Origin",${c}],UNIT["Meter",1.0]]`:g===a.a4.PE_PRJ_CYLINDRICAL_EQAREA?y=`PROJCS["${p}",${m},PROJECTION["Cylindrical_Equal_Area"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",${u}],PARAMETER["Standard_Parallel_1",${l}],PARAMETER["Latitude_of_Origin",${c}],UNIT["Meter",1.0]]`:(0,s.c)("getEqualAreaPcsFixed");const d=(0,a.b)(y);return P[_]&&P[_].destroy(),P[_]=d,d}(e,t);if(null!==n)return(0,o.n)(n,!1);const i=e.getText(),r=e.getUnit().getUnitToBaseFactor(),_=(t.xmin+t.width()/2)*r,h=(t.ymin+t.height()/2)*r;let m=0,u=0,c=-1;t.ymin*r>=75*Math.PI/180||t.ymax*r<=-60*Math.PI/180?c=a.a4.PE_PRJ_LAMBERT_AZIMUTHAL_EQAREA:t.ymin>0||t.ymax<0?(m=(t.ymin+1/3*t.height())*r,u=(t.ymin+2/3*t.height())*r,c=a.a4.PE_PRJ_ALBERS):(m=(t.ymin+2/3*t.height())*r,c=a.a4.PE_PRJ_CYLINDRICAL_EQAREA);const l=(0,a.aw)("EqualAreaPCS");let g;return c===a.a4.PE_PRJ_LAMBERT_AZIMUTHAL_EQAREA?g=`PROJCS["${l}",${i},PROJECTION["Lambert_Azimuthal_Equal_Area"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",${_}],PARAMETER["Latitude_of_Origin",${h}],UNIT["Meter",1.0]]`:c===a.a4.PE_PRJ_ALBERS?g=`PROJCS["${l}",${i},PROJECTION["Albers"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",${_}],PARAMETER["Standard_Parallel_1",${m}],PARAMETER["Standard_Parallel_2",${u}],PARAMETER["Latitude_of_Origin",${h}],UNIT["Meter",1.0]]`:c===a.a4.PE_PRJ_CYLINDRICAL_EQAREA?g=`PROJCS["${l}",${i},PROJECTION["Cylindrical_Equal_Area"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",${_}],PARAMETER["Standard_Parallel_1",${m}],PARAMETER["Latitude_of_Origin",${h}],UNIT["Meter",1.0]]`:(0,s.c)("getEqualAreaPCSInstance"),(0,o.n)((0,a.b)(g),!0)}(n,e),m=(0,a.p)(n,t,null),u=(new a.v).execute(r,m,i).calculateArea2D();return h&&t.destroy(),u}return 0}const P=[null,null,null,null,null,null,null];class f{getOperatorType(){return 10314}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}execute(e,t,n){if(0===t.getCoordinateSystemType()&&(0,s.t)(""),e.isEmpty()||e.getDimension()<2)return 0;if((0,s.d)(e),e.getGeometryType()===s.G.enumEnvelope){const s=new i.a;return s.addEnvelope(e,!1),this.execute(s,t,n)}let c=e;e.getDescription().getAttributeCount()>1&&(c=e.clone(),c.dropAllAttributes());const l=(new r.O).execute(c,0,t.getTolerance(0),0,n);let g=null;const d=t.getGCS();d!==t&&(g=(0,a.p)(t,d));let P=(new a.g).execute(l,t,!1,n);return P.isEmpty()?0:(P===e&&(P=e.clone()),t.isPannable()?function(e,t,n){const s=new _.J;e.queryEnvelope(s);const r=(0,h.a)(t,s,!0).total(),u=t.getPannableExtent();u.xmin=s.xmin-10*r,u.xmax=s.xmax+10*r;const c=(new m.O).execute(e,u,t,n).getImpl().querySegmentIterator();c.stripAttributes();const l=(0,a.G)();t.querySpheroidData(l);const g=l.e2,y=0===g?2:1,d=new o.P(0,0),P=new o.P(0,0),f=new o.K(0),E=new p(d,P,t,g,100);for(;c.nextPath();)for(;c.hasNextSegment();){const e=c.nextSegment();d.assign(e.getStartXY()),P.assign(e.getEndXY()),E.setSegmentEndPoints(d,P);const t=(0,i.v)(6,0,1,1e-12,1e-15,E.makeFunctor());f.pe((P.x-d.x)*t)}const S=l.majorSemiAxis;return y*S*S*(1-g)*Math.PI*f.getResult()/t.getPannableExtent().width()}(P,t,n):function(e,t,n,s,i){const r=function(e,t,n){const s=e.calculateLength2D(),i=(new u.O).execute(e,t,n)/25e3,r=s/e.getSegmentCount()*2;let a=Math.min(r,s/i);return 0===a&&(a=1),(0,o.n)(a,s/a)}(e,t,i);let a=y(e,r.first,n,s,i),_=1,h=0,m=0;do{if(_++,r.first*=.5,r.first<50*t.getTolerance(0))return a;r.second*=2,m=y(e,r.first,n,s,i),h=Math.abs(m-a),a=m}while(Math.abs(a)>1&&h>1e-8*Math.abs(a)&&(r.second<65e3&&_<8||_<4));return m}(P,t,d,g,n))}}function E(){return{m_p_PCS:new o.P,m_factor:Number.NaN,setValues:S,assign:x}}function S(e,t){this.m_factor=e,this.m_p_PCS.assign(t)}function x(e){this.m_factor=e.m_factor,this.m_p_PCS.assign(e.m_p_PCS)}class v{constructor(e,t,n,s){this.m_ptStart=new h.h,this.m_ptEnd=new h.h,this.m_ptStart.assign(t),this.m_ptEnd.assign(n),this.m_deltaX=this.m_ptEnd.x-this.m_ptStart.x,this.m_deltaY=this.m_ptEnd.y-this.m_ptStart.y,this.m_e=Math.sqrt(e),this.m_e2=e,this.m_c1MinusE2=1-e;const i=Math.sin(s);let r;r=0===this.m_e2?2*i:i*((0,o.y)(this.m_e*i)+1/(1-this.m_e2*i*i)),this.m_baseA=r}setSegmentEndPoints(e,t){this.m_ptStart.assign(e),this.m_ptEnd.assign(t),this.m_deltaX=this.m_ptEnd.x-this.m_ptStart.x,this.m_deltaY=this.m_ptEnd.y-this.m_ptStart.y}makeFunctor(){return e=>{const t=1-e,n=t*this.m_ptStart.x+e*this.m_ptEnd.x,s=t*this.m_ptStart.y+e*this.m_ptEnd.y,i=t*this.m_ptStart.z+e*this.m_ptEnd.z,r=n*n+s*s,a=i/Math.sqrt(i*i+this.m_c1MinusE2*this.m_c1MinusE2*r);let _;return _=0===this.m_e2?2*a:a*((0,o.y)(this.m_e*a)+1/(1-this.m_e2*a*a)),(this.m_deltaY*n-this.m_deltaX*s)/r*(_-this.m_baseA)}}}function N(){return{sin_phi:Number.NaN,one_p_sin_phi:Number.NaN,one_m_sin_phi:Number.NaN,one_m_e_2_sin_2_phi:Number.NaN,sin_half_phi_pf:Number.NaN,sin_half_phi_pz:Number.NaN,sin_half_asin_e_sin_phi_pf:Number.NaN,sin_half_asin_e_sin_phi_pz:Number.NaN,atanh_sin_phi:Number.NaN,atanh_esin_phi:Number.NaN,make_negative:!1,initialize:A,changeSign:M,assign:D,clone:b}}function A(e,t,n,s){const i=.5*e;this.sin_phi=Math.sin(e);const r=t*this.sin_phi,a=.5*Math.asin(r);this.one_p_sin_phi=1+this.sin_phi,this.one_m_sin_phi=1-this.sin_phi,this.one_m_e_2_sin_2_phi=(1+r)*(1-r),this.sin_half_phi_pf=Math.sin(i+n),this.sin_half_phi_pz=Math.sin(i+s),this.sin_half_asin_e_sin_phi_pf=Math.sin(a+n),this.sin_half_asin_e_sin_phi_pz=Math.sin(a+s),this.atanh_sin_phi=Math.log(this.sin_half_phi_pf/this.sin_half_phi_pz),this.atanh_esin_phi=Math.log(this.sin_half_asin_e_sin_phi_pf/this.sin_half_asin_e_sin_phi_pz)}function M(){this.sin_phi=-this.sin_phi;let e=this.one_p_sin_phi;this.one_p_sin_phi=this.one_m_sin_phi,this.one_m_sin_phi=e,e=this.sin_half_phi_pf,this.sin_half_phi_pf=this.sin_half_phi_pz,this.sin_half_phi_pz=e,e=this.sin_half_asin_e_sin_phi_pf,this.sin_half_asin_e_sin_phi_pf=this.sin_half_asin_e_sin_phi_pz,this.sin_half_asin_e_sin_phi_pz=e,this.atanh_sin_phi=-this.atanh_sin_phi,this.atanh_esin_phi=-this.atanh_esin_phi}function D(e){this.sin_phi=e.sin_phi,this.one_p_sin_phi=e.one_p_sin_phi,this.one_m_sin_phi=e.one_m_sin_phi,this.one_m_e_2_sin_2_phi=e.one_m_e_2_sin_2_phi,this.sin_half_phi_pf=e.sin_half_phi_pf,this.sin_half_phi_pz=e.sin_half_phi_pz,this.sin_half_asin_e_sin_phi_pf=e.sin_half_asin_e_sin_phi_pf,this.sin_half_asin_e_sin_phi_pz=e.sin_half_asin_e_sin_phi_pz,this.atanh_sin_phi=e.atanh_sin_phi,this.atanh_esin_phi=e.atanh_esin_phi,this.make_negative=e.make_negative}function b(){return{...this}}class C{constructor(e,t,n){this.m_transformPCS2GCS=null,this.m_scaleToRadians=new l.T,this.m_scaleToDegrees=new l.T,this.m_progressTracker=n,(0,s.g)(4!==t),this.m_curveType=t,this.m_inputSR=e,e&&0!==e.getCoordinateSystemType()||(0,s.t)(""),this.m_inputGCS=e.getGCS(),this.m_a=0,this.m_eSquared=0,this.m_b=0,this.m_rpu=0}executePolygonGeodeticArea(e){let t,n=e.clone();if(n.dropAllAttributes(),e.hasNonLinearSegments()&&(n=(new r.O).execute(n,0,this.m_inputSR.getTolerance(0),0,this.m_progressTracker)),this.m_inputSR.isPannable()){const e=new _.J;n.queryEnvelope(e);const t=this.m_inputSR.getPannableExtent();if(!t.containsEnvelope(e)){const s=t.getCenterX()-e.getCenterX(),i=new l.T;i.setShiftCoords(s,0),n.applyTransformation(i),e.move(s,0);const r=new o.E;t.queryIntervalX(r);const _=new o.E;e.queryIntervalX(_),n=r.contains(_)?(0,a.w)(n,this.m_inputSR):(new a.v).foldInto360RangeGeodetic(n,this.m_inputSR,this.m_curveType)}}if(this.m_transformPCS2GCS?(n=(new a.g).execute(n,this.m_inputSR,!1,this.m_progressTracker),t=n.createInstance(),(0,a.$)(this.m_transformPCS2GCS,n,t,this.m_progressTracker)||(t=(new a.v).execute(n,this.m_transformPCS2GCS,this.m_progressTracker))):t=(new a.g).execute(n,this.m_inputGCS,!1,this.m_progressTracker),t.isEmpty())return 0;if(1===this.m_curveType){const e=(0,a.G)();return this.m_inputGCS.querySpheroidData(e),this.m_a=e.majorSemiAxis,this.m_eSquared=e.e2,this.loxodromeArea(t)}const s=t.getImpl();this.m_rpu=this.m_inputGCS.getUnit().getUnitToBaseFactor(),this.m_scaleToRadians.setScale(this.m_rpu),s.applyTransformation(this.m_scaleToRadians),this.m_scaleToDegrees=this.m_scaleToRadians,this.m_scaleToDegrees.invertThis();const i=(0,a.G)();if(this.m_inputGCS.querySpheroidData(i),this.m_a=i.majorSemiAxis,this.m_b=i.minorSemiAxis,this.m_eSquared=i.e2,2===this.m_curveType)return this.executeClippedPolygonGreatEllipticArea(t);{const e={stack:[],error:void 0,hasError:!1};try{const n=a.ax.unit(9101),s=this.m_inputGCS.getPECoordSys(),i=(0,c.b)(e,s.cloneAlterUnits(n),!1);let r,o,_=this.executeClippedPolygonGeodeticArea(t,i,0),h=0;do{h++,r=this.executeClippedPolygonGeodeticArea(t,i,h),o=Math.abs(r-_),_=r}while(Math.abs(r)>1&&o>1e-8*Math.abs(r)&&h<7);return r}catch(t){e.error=t,e.hasError=!0}finally{(0,c.c)(e)}}}executeClippedPolygonGeodeticArea(e,t,n){const s={stack:[],error:void 0,hasError:!1};try{const i=new _.J;e.queryEnvelope(i);const r=(0,c.b)(s,this.getEqualAreaPCSInstance(t,i),!1),h=e.clone();(0,a.ay)(r,h);const m=50,u=h.getImpl().getAttributeStreamRef(0),l=e.getImpl().getAttributeStreamRef(0),g=(0,c.b)(s,new a.E,!1),p=(0,c.b)(s,new a.E,!1),y=40,d=[0,0],P=(0,o.p)(E,y),f=(0,o.d)(y,-1),S=E(),x=E();let v,N;const A=r;let M=h.calculateArea2D();const D=new o.K(0),b=.5*Math.PI,C=1e-10*Math.abs(M)+1e-6,T=e.getPathCount();let q,w,I,G;const R=new o.P,L=new o.P,B=new o.P,z=new o.P,F=new o.P,Y=new o.P;let O,k;for(w=e.getPathStart(0),q=0;q<T;q++,w=I)for(I=e.getPathEnd(q),u.queryPoint2D(I-1<<1,B),l.queryPoint2D(I-1<<1,R),Math.abs(R.y)>b&&(R.y=(0,o.f)(b,R.y)),G=w;G<I;G++,B.assign(z),R.assign(L)){if(u.queryPoint2D(G<<1,z),l.queryPoint2D(G<<1,L),Math.abs(L.y)>b&&(L.y=(0,o.f)(b,L.y)),O=o.P.distance(B,z),O<m||0===R.y&&0===L.y)continue;a.F.geodeticDistance(this.m_a,this.m_eSquared,R.x,R.y,L.x,L.y,g,p,null,this.m_curveType);const e=g.val,t=p.val;for(S.setValues(0,B),x.setValues(1,z),N=n,P[0].assign(x),f[0]=n,v=0;v>=0;){k=.5*(S.m_factor+x.m_factor),a.F.geodeticCoordinate(this.m_a,this.m_eSquared,R.x,R.y,e*k,t,g,p,this.m_curveType),F.x=g.val,F.y=p.val,d[0]=F.x,d[1]=F.y,a.Z.geogToProj(A,1,d),Y.x=d[0],Y.y=d[1];const n=.5*-Y.offset(S.m_p_PCS,x.m_p_PCS)*o.P.distance(S.m_p_PCS,x.m_p_PCS);if(D.pe(n),Math.abs(n)>C||Math.abs(n)>0&&N>0)x.setValues(k,Y),v++,P[v].assign(x),Math.abs(n)<=C?(N--,f[v-1]=N,f[v]=N):(N=f[v-1],f[v]=N);else{if(v<=0)break;S.assign(x),v--,x.assign(P[v]),N=f[v]}}}return M+=D.getResult(),Math.abs(M)}catch(e){s.error=e,s.hasError=!0}finally{(0,c.c)(s)}}executeClippedPolygonGreatEllipticArea(e){const t=[],n=[],s=new o.P,i=new o.P,r=(0,a.Q)(1,this.m_eSquared,new o.P(0,.5*Math.PI)),m=new o.K(0),u=new o.K(0),c=new o.K(0),l=new h.h,g=new h.h,p=new _.J;e.queryLooseEnvelope(p);let y=0;p.containsCoords(p.xmin,0)||(y=Math.abs(p.ymin)<Math.abs(p.ymax)?p.ymin:p.ymax);const d=new v(this.m_eSquared,l,g,y),P=this.m_a*this.m_a,f=e.getImpl().querySegmentIterator();for(f.stripAttributes();f.nextPath();)for(;f.hasNextSegment();){const e=f.nextSegment();s.assign(e.getStartXY()),i.assign(e.getEndXY()),i.x-s.x>Math.PI?s.x+=2*Math.PI:i.x-s.x<-Math.PI&&(i.x+=2*Math.PI),this.splitSegmentCrossingItegralThreshold(e,t,n);for(let e of t)l.assign((0,a.Q)(this.m_a,this.m_eSquared,e.getStartXY())),g.assign((0,a.Q)(this.m_a,this.m_eSquared,e.getEndXY())),d.setSegmentEndPoints(l,g),this.adaptiveIntegrationWithRomberg(d,m);for(let e of n){let t=e.getStartXY(),n=e.getEndXY(),s=y;t.y<0&&(n=(0,o.b)(t,t=n),t.y=-t.y,n.y=-n.y,s=-s);const i=(0,a.Q)(1,this.m_eSquared,t),_=(0,a.Q)(1,this.m_eSquared,n),m=Math.min(t.y,n.y),l=(0,a.az)(this.m_eSquared,t.x,n.x,s,m);u.pe(l);const g=Math.abs((0,a.az)(this.m_eSquared,t.x,n.x,m,o.l)),p=new h.h;p.setSub(i,r);const d=new h.h;d.setSub(_,r);const f=new h.h;f.setCrossProductVector(p,d);let E=P*(g-.5*f.length());E=(0,o.f)(E,n.x-t.x),c.pe(E)}t.length=0,n.length=0}return c.getResult()+P*(.5*(1-this.m_eSquared)*m.getResult()+u.getResult())}getEqualAreaPCSInstance(e,t){const n=t.getCenterX();let s,i;const r=t.height();let _,h;(_=t.ymin>45*Math.PI/180||t.ymax<45*-Math.PI/180)?s=(0,o.f)(.5*Math.PI,t.getCenterY()):(s=t.getCenterY(),i=t.ymin+r*(2/3));const m=(0,a.aw)("EqualAreaPCS"),u=e.toString();return h=_?a.ax.fromString(a.a4.PE_TYPE_PROJCS,`PROJCS["${m}", ${u}, PROJECTION["Lambert_Azimuthal_Equal_Area"],PARAMETER["False_Easting",0],PARAMETER["False_Northing", 0],PARAMETER["Central_Meridian", ${n}], PARAMETER["Latitude_of_Origin", ${s}], UNIT["Meter",1.0]]`):a.ax.fromString(a.a4.PE_TYPE_PROJCS,`PROJCS["${m}", ${u}, PROJECTION["Cylindrical_Equal_Area"],PARAMETER["False_Easting", 0],PARAMETER["False_Northing", 0],PARAMETER["Central_Meridian", ${n}],PARAMETER["Standard_Parallel_1", ${i}],PARAMETER["Latitude_of_Origin", ${s}],UNIT["Meter",1.0]]`),h}splitSegmentCrossingItegralThreshold(e,t,n){const s=100,r=400,_=(0,a.Q)(this.m_a,this.m_eSquared,new o.P(0,o.l)),m=(0,a.Q)(this.m_a,this.m_eSquared,new o.P(0,-o.l)),u=this.splitSegmentPassingThroughPole(e);for(let e of u){const u=e.getStartXY(),c=e.getEndXY(),l=(0,a.Q)(this.m_a,this.m_eSquared,u),g=(0,a.Q)(this.m_a,this.m_eSquared,c),p=new o.P,y=new h.h;let d=h.h.sqrDistance(_,l),P=h.h.sqrDistance(l,g);if(d<=s){if(!(P>r)){n.push(new i.L({start:u,end:c}));continue}y.assign(g.sub(l)),y.normalizeThis(),y.assign(l.add(y.mul(20))),p.assign((0,a.Y)(this.m_a,this.m_eSquared,y)),n.push(new i.L({start:u,end:p})),u.assign(p)}if(l.assign((0,a.Q)(this.m_a,this.m_eSquared,u)),d=h.h.sqrDistance(_,g),P=h.h.sqrDistance(l,g),d<=s){if(!(P>r)){n.push(new i.L({start:u,end:c}));continue}y.assign(g.sub(l)),y.normalizeThis(),y.assign(g.sub(y.mul(20))),p.assign((0,a.Y)(this.m_a,this.m_eSquared,y)),n.push(new i.L({start:p,end:c})),c.assign(p)}if(l.assign((0,a.Q)(this.m_a,this.m_eSquared,u)),g.assign((0,a.Q)(this.m_a,this.m_eSquared,c)),d=h.h.sqrDistance(m,l),P=h.h.sqrDistance(l,g),d<=s){if(!(P>r)){n.push(new i.L({start:u,end:c}));continue}y.assign(g.sub(l)),y.normalizeThis(),y.assign(l.add(y.mul(20))),p.assign((0,a.Y)(this.m_a,this.m_eSquared,y)),n.push(new i.L({start:u,end:p})),u.assign(p)}if(l.assign((0,a.Q)(this.m_a,this.m_eSquared,u)),g.assign((0,a.Q)(this.m_a,this.m_eSquared,c)),d=h.h.sqrDistance(m,g),P=h.h.sqrDistance(l,g),d<=s){if(!(P>r)){n.push(new i.L({start:u,end:c}));continue}y.assign(g.sub(l)),y.normalizeThis(),y.assign(g.sub(y.mul(20))),p.assign((0,a.Y)(this.m_a,this.m_eSquared,y)),n.push(new i.L({start:p,end:c})),c.assign(p)}t.push(new i.L({start:u,end:c}))}}splitSegmentPassingThroughPole(e){const t={stack:[],error:void 0,hasError:!1};try{const n=[],s=new h.h,r=new h.h,_=new h.h,m=new o.P,u=20,l=3.124139361,p=10,y=e.getStartXY(),d=e.getEndXY(),P=(0,c.b)(t,new a.E,!1);if(a.F.geodeticDistance(this.m_a,this.m_eSquared,y.x,y.y,d.x,d.y,P,null,null,2),Math.abs(d.x-y.x)>l&&P.val>u){const e=new g(new o.P(0,90),y.divide(this.m_rpu),d.divide(this.m_rpu),this.m_inputGCS,2,2);let t=(0,a.U)(e.makeFunctor(),0,1,1e-10);if(t.second<=p&&t.first>0&&t.first<1)return s.assign((0,a.Q)(this.m_a,this.m_eSquared,y)),r.assign((0,a.Q)(this.m_a,this.m_eSquared,d)),(0,o.x)(s,r,t.first,_),m.assign((0,a.Y)(this.m_a,this.m_eSquared,_)),n.push(new i.L({start:y,end:m})),n.push(new i.L({start:m,end:d})),n;if(e.setPointDistFrom(new o.P(0,-90)),t=(0,a.U)(e.makeFunctor(),0,1,1e-10),t.second<=p&&t.first>0&&t.first<1)return s.assign((0,a.Q)(this.m_a,this.m_eSquared,y)),r.assign((0,a.Q)(this.m_a,this.m_eSquared,d)),(0,o.x)(s,r,t.first,_),m.assign((0,a.Y)(this.m_a,this.m_eSquared,_)),n.push(new i.L({start:y,end:m})),n.push(new i.L({start:m,end:d})),n}return n.push(new i.L({start:y,end:d})),n}catch(e){t.error=e,t.hasError=!0}finally{(0,c.c)(t)}}adaptiveIntegrationWithRomberg(e,t){const n=e.makeFunctor();let s=0,r=1,a=n(s),o=n(r);const _=1e-17,h=1e-14;let m=(s+r)/2,u=n(m),c=Math.abs(u-a),l=Math.abs(o-u),g=0;for(;g++<32&&(c/l<.1||l/c<.1);)c<l?(t.pe((0,i.v)(5,s,m,h,_,n)),s=m,a=u):(t.pe((0,i.v)(5,m,r,h,_,n)),r=m,o=u),m=(s+r)/2,u=Math.abs(n(m)),c=Math.abs(u-a),l=Math.abs(o-u);t.pe((0,i.v)(5,s,r,h,_,n))}loxodromeAreaHemi(e,t,n,s,i){const r=n.clone(),a=i.clone();let _,h,m,u,c,l,g,p,y,d,P,f,E,S,x,v;return r.make_negative&&r.changeSign(),a.make_negative&&a.changeSign(),P=s-t,1===Math.abs(r.sin_phi)||1===Math.abs(a.sin_phi)?e.half_qp*P:r.sin_phi===a.sin_phi?(d=.5*e.one_m_e_2*r.sin_phi*(1/r.one_m_e_2_sin_2_phi+(0,o.y)(e.e*r.sin_phi))*P,d):(x=Math.log(a.sin_half_phi_pf*r.sin_half_phi_pz/(a.sin_half_phi_pz*r.sin_half_phi_pf)),v=Math.log(a.sin_half_asin_e_sin_phi_pf*r.sin_half_asin_e_sin_phi_pz/(a.sin_half_asin_e_sin_phi_pz*r.sin_half_asin_e_sin_phi_pf)),1===this.m_eSquared?(c=0,_=.5*(x+a.sin_phi/a.one_m_e_2_sin_2_phi-r.sin_phi/r.one_m_e_2_sin_2_phi),h=0):(c=-2*e.atanh_e_over_e*(Math.log(a.one_p_sin_phi/r.one_p_sin_phi)-e.e*v),_=(x-e.e*v)/e.one_m_e_2,h=(Math.log(a.one_m_e_2_sin_2_phi/r.one_m_e_2_sin_2_phi)+c/e.atanh_e_over_e)/e.one_m_e_2),m=-v*(r.atanh_esin_phi+a.atanh_esin_phi),u=1/r.one_m_e_2_sin_2_phi-1/a.one_m_e_2_sin_2_phi,l=(0,o.z)(a.one_m_sin_phi/e.one_p_e,e.e)-(0,o.z)(r.one_m_sin_phi/e.one_p_e,e.e),g=(0,o.z)(a.one_p_sin_phi/e.one_p_e,e.e)-(0,o.z)(r.one_p_sin_phi/e.one_p_e,e.e),p=(0,o.z)(r.one_m_sin_phi/-e.one_m_e,e.e)-(0,o.z)(a.one_m_sin_phi/-e.one_m_e,e.e),y=(0,o.z)(r.one_p_sin_phi/-e.one_m_e,e.e)-(0,o.z)(a.one_p_sin_phi/-e.one_m_e,e.e),d=.25/_*(h+m+u+c+.5*(l+g+p+y)),d+=e.half_qp,f=.5*e.one_m_e_2*r.sin_phi*(1/r.one_m_e_2_sin_2_phi+(0,o.y)(e.e*r.sin_phi)),E=.5*e.one_m_e_2*a.sin_phi*(1/a.one_m_e_2_sin_2_phi+(0,o.y)(e.e*a.sin_phi)),E<f&&(S=f,f=E,E=S),d<f&&(d=f),d>E&&(d=E),d*=P,d)}loxodromeArea(e){const t=Math.PI/180;let n=0;const s={e:Number.NaN,one_p_e:Number.NaN,one_m_e:Number.NaN,one_m_e_2:Number.NaN,atanh_e_over_e:Number.NaN,half_qp:Number.NaN,f:Number.NaN,z:Number.NaN},i=N(),r=N();s.e=Math.sqrt(this.m_eSquared),s.one_p_e=1+s.e,s.one_m_e=1-s.e,s.one_m_e_2=1-this.m_eSquared,s.atanh_e_over_e=(0,o.y)(s.e),this.m_eSquared>=1?s.half_qp=1:s.half_qp=.5*(1+s.atanh_e_over_e*s.one_m_e_2),s.f=.25*Math.PI,s.z=.75*Math.PI,r.initialize(0,s.e,s.f,s.z);const a=e.getPathCount(),_=new o.P,h=new o.P,m=e.getImpl().getAttributeStreamRef(0);for(let o=0;o<a;o++){const a=e.getPathStart(o),u=e.getPathEnd(o);if(!(u-a<=1)){m.queryPoint2D(2*(u-1),_);for(let e=a;e<u;e++){m.queryPoint2D(2*e,h);const o=_.y*t,u=h.y*t;if(e===a?(i.initialize(o,s.e,s.f,s.z),i.make_negative=!1):i.assign(r),r.initialize(u,s.e,s.f,s.z),r.make_negative=!1,_.y*h.y<0){if(_.y>=90&&h.y<=-90||h.y>=90&&_.y<=-90)return Number.NaN;const e=N();e.initialize(0,s.e,s.f,s.z),e.make_negative=!1;const a=i.atanh_sin_phi-s.e*i.atanh_esin_phi,m=r.atanh_sin_phi-s.e*r.atanh_esin_phi,u=(m*_.x-a*h.x)/(m-a);o<0?(i.make_negative=!0,n-=this.loxodromeAreaHemi(s,_.x*t,i,u*t,e),i.make_negative=!1,n+=this.loxodromeAreaHemi(s,u*t,e,h.x*t,r)):(n+=this.loxodromeAreaHemi(s,_.x*t,i,u*t,e),r.make_negative=!0,n-=this.loxodromeAreaHemi(s,u*t,e,h.x*t,r),r.make_negative=!1)}else _.y>=0?n+=this.loxodromeAreaHemi(s,_.x*t,i,h.x*t,r):(i.make_negative=!0,r.make_negative=!0,n-=this.loxodromeAreaHemi(s,_.x*t,i,h.x*t,r),i.make_negative=!1,r.make_negative=!1);_.assign(h)}}}return this.m_a*n*this.m_a}calculate(e){if(e.isEmpty()||e.getDimension()<2)return 0;if(e.getGeometryType()===s.G.enumEnvelope){const t=new i.a;return t.addEnvelope(e,!1),this.calculate(t)}return this.m_inputSR!==this.m_inputGCS&&null===this.m_transformPCS2GCS&&(this.m_transformPCS2GCS=(0,a.p)(this.m_inputSR,this.m_inputGCS,null)),this.executePolygonGeodeticArea(e)}}class T{getOperatorType(){return 10311}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}execute(e,t,n,i){return(0,s.d)(e),4===n?(new f).execute(e,t,i):new C(t,n,i).calculate(e)}}},76061:(e,t,n)=>{n.d(t,{G:()=>s,S:()=>i});class s{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}class i extends s{constructor(e){super(),this.m_iGeom=-1,this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},90135:(e,t,n)=>{n.d(t,{D:()=>E,m:()=>m,s:()=>d,w:()=>y});var s=n(90237),i=n(55537),r=n(35368),a=n(12189),o=n(83661),_=n(79187),h=n(95213);function m(){return{outPoint:new o.P,index:-1,t:Number.NaN}}function u(e,t,n){return{outPoint:e.clone(),index:t,t:n}}function c(e,t,n,s){e.outPoint.assign(t),e.index=n,e.t=s}function l(e,t){e.outPoint.assign(t.outPoint),e.index=t.index,e.t=t.t}function g(e,t,n,s){e.index=n,e.t=s,t.queryCoord2D(e.t,e.outPoint)}function p(e,t){const n=m();l(n,e),l(e,t),l(t,n)}function y(e,t,n,s,r,o){if(e.getGeometryType()===i.G.enumPolygon){for(;s.nextPath();)if(s.hasNextSegment()){const t=s.nextSegment();if(0!==(0,a.i)(e,t.getEndXY(),0))return c(r,t.getEndXY(),-1,Number.NaN),c(o,t.getEndXY(),-1,Number.NaN),!0}s.resetToFirstPath()}if(t.getGeometryType()===i.G.enumPolygon){for(;n.nextPath();)if(n.hasNextSegment()){const e=n.nextSegment();if(0!==(0,a.i)(t,e.getEndXY(),0))return c(r,e.getEndXY(),-1,Number.NaN),c(o,e.getEndXY(),-1,Number.NaN),!0}n.resetToFirstPath()}return!1}function d(e){const t=e.getPathCount(),n=(0,o.d)(e.getSegmentCount(),0);let s=0;for(let i=0;i<t;++i){const t=s+e.getSegmentCountPath(i);for(let r=s,a=e.getPathStart(i);r<t;++r,++a)n[r]=a;s=t}return(0,r.s)(e.getPointCount(),n),n}function P(e,t){return!!Number.isNaN(t)||e<=t}function f(e){const t=new r.a;return t.addEnvelope(e,!1),t}class E{constructor(e,t){if(this.m_env2DgeometryA=null,this.m_env2DgeometryB=null,this.m_progressCounter=0,this.m_progressTracker=t,this.m_maxSqrDistance=e*e,this.m_maxDistance=e,this.m_bIsNearCalc=!1,Number.isNaN(this.m_maxDistance)?this.m_maxDistance=Number.POSITIVE_INFINITY:this.m_maxDistance=e,this.m_maxSqrDistance=this.m_maxDistance*this.m_maxDistance,Number.isFinite(this.m_maxSqrDistance)){let e=Math.sqrt(this.m_maxSqrDistance);for(;e<this.m_maxDistance;)this.m_maxSqrDistance*=1+Number.EPSILON,e=Math.sqrt(this.m_maxSqrDistance)}}calculate(e,t,n,s){if((e.getGeometryType()!==h.P.type||t.getGeometryType()!==h.P.type)&&(this.m_env2DgeometryA=new _.J,this.m_env2DgeometryB=new _.J,e.queryEnvelope(this.m_env2DgeometryA),t.queryEnvelope(this.m_env2DgeometryB),!P(this.m_env2DgeometryA.distanceFromEnvelope(this.m_env2DgeometryB),this.m_maxDistance)))return Number.POSITIVE_INFINITY;const i=u(new o.P,(0,o.j)(),Number.NaN),r=u(new o.P,(0,o.j)(),Number.NaN),a=this._ExecuteBruteForce(e,t,i,r);return P(a,this.m_maxDistance)?(null!==n&&l(n,i),null!==s&&l(s,r),a):Number.POSITIVE_INFINITY}isNear(e,t){if(this.m_bIsNearCalc=!0,e.isEmpty()||t.isEmpty())return!1;if(e===t)return!0;let n=!0;if(e.getGeometryType()!==h.P.type&&e.getGeometryType()!==h.E.type||t.getGeometryType()!==h.P.type&&t.getGeometryType()!==h.E.type||(n=!1),n){if(this.m_env2DgeometryA=new _.J,this.m_env2DgeometryB=new _.J,e.queryEnvelope(this.m_env2DgeometryA),t.queryEnvelope(this.m_env2DgeometryB),!(this.m_env2DgeometryA.sqrMaxMinDistanceEnvelope(this.m_env2DgeometryB)>this.m_maxSqrDistance))return!0;if(this.m_env2DgeometryA.sqrDistanceEnvelope(this.m_env2DgeometryB,null,null)>this.m_maxSqrDistance)return!1}const s=u(new o.P,(0,o.j)(),Number.NaN),i=u(new o.P,(0,o.j)(),Number.NaN);return this._ExecuteBruteForce(e,t,s,i)<=this.m_maxDistance}progress_(e=!1){}_ExecuteBruteForce(e,t,n,s){switch(e.getGeometryType()){case i.G.enumPoint:return this.distancePointGeometry(e,t,n,s);case i.G.enumMultiPoint:return this.distanceMultipointGeometry(e,t,n,s);case i.G.enumEnvelope:return this.distanceEnvelopeGeometry(e,t,n,s);case i.G.enumPolyline:case i.G.enumPolygon:return this.distanceMultipathGeometry(e,t,n,s);default:return Number.NaN}}distancePointGeometry(e,t,n,s){switch(t.getGeometryType()){case i.G.enumPoint:return this.distancePointPoint(e,t,n,s);case i.G.enumMultiPoint:return this.distancePointMultipoint(e,t,n,s);case i.G.enumPolyline:case i.G.enumPolygon:return this.distancePointMultipath(e,t,n,s);case i.G.enumEnvelope:return this.distancePointEnvelope(e,t,n,s);default:return Number.NaN}}distancePointPoint(e,t,n,s){const i=e.getXY(),r=t.getXY();return c(n,i,0,0),c(s,r,0,0),Math.sqrt(o.P.sqrDistance(i,r))}distancePointMultipoint(e,t,n,s){const i=e.getXY();let r=this.m_maxSqrDistance,a=r,_=!1;const h=t.getPointCount(),m=new o.P;for(let e=0;e<h;++e)if(t.queryXY(e,m),a=o.P.sqrDistance(i,m),this.m_bIsNearCalc){if(a<=r)return 0}else if(!(a>r)&&(!_&&a===r||a<r)&&(r=a,c(n,i,0,0),c(s,m,e,0),_=!0,0===r))return 0;return _?Math.sqrt(r):Number.POSITIVE_INFINITY}distancePointMultipath(e,t,n,s){const r=!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB),h=e.getXY();if(!r&&t.getGeometryType()===i.G.enumPolygon&&0!==(0,a.i)(t,h,0))return c(n,h,0,0),c(s,h,-1,Number.NaN),0;t.getImpl().getAccelerators();let m=this.m_maxSqrDistance,u=m,l=-1;const g=new _.J,p=t.querySegmentIterator();let y=!1;for(;p.nextPath();)for(;p.hasNextSegment();){const e=p.nextSegment();e.queryEnvelope(g);const t=g.sqrDistance(h);if(t>m)continue;if(!this.m_bIsNearCalc&&y&&t===m)continue;l=e.getClosestCoordinate(h,!1);const i=e.getCoord2D(l);if(u=o.P.sqrDistance(h,i),this.m_bIsNearCalc){if(u<=m)return 0}else if(!(u>m)&&(!y||u<m)&&(m=u,c(n,h,0,0),c(s,i,p.getStartPointIndex(),l),y=!0,0===m))return 0}return y?Math.sqrt(m):Number.POSITIVE_INFINITY}distancePointEnvelope(e,t,n,s){const i=e.getXY();c(n,i,0,0),c(s,i,-1,Number.NaN);const r=t.asEnvelope2D();return r.contains(i)?0:Math.sqrt(r.sqrDistance(i,s.outPoint))}distanceMultipointGeometry(e,t,n,s){switch(t.getGeometryType()){case i.G.enumPoint:{this.m_env2DgeometryB=(0,o.b)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const i=this.distancePointMultipoint(t,e,s,n);return this.m_env2DgeometryB=(0,o.b)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),i}case i.G.enumMultiPoint:return this.distanceMultipointMultipoint(e,t,n,s,1,1);case i.G.enumPolyline:case i.G.enumPolygon:return this.distanceMultipointMultipath(e,t,n,s);case i.G.enumEnvelope:return this.distanceMultipointMultipath(e,f(t),n,s);default:return Number.NaN}}distanceMultipointMultipoint(e,t,n,i,r,a){const _={stack:[],error:void 0,hasError:!1};try{if(this.m_bIsNearCalc&&1===r&&1===a){const s=Math.trunc((0,o.c)(Math.sqrt(e.getPointCount())+1,1,(0,o.i)())),r=Math.trunc((0,o.c)(Math.sqrt(t.getPointCount())+1,1,(0,o.i)()));if((s>=4||r>=4)&&this.distanceMultipointMultipoint(e,t,n,i,s,r)<=this.m_maxSqrDistance)return 0}let h=this.m_maxSqrDistance;const m=[e],u=[t],l=this.swapGeometriesIfBGtA(m,u);l&&(this.m_env2DgeometryB=(0,o.b)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),a=(0,o.b)(r,r=a),p(n,i)),(0,s.b)(_,(0,o.h)((()=>{p(n,i),this.m_env2DgeometryB=(0,o.b)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB)}),!l),!1);const g=m[0].getImpl(),y=u[0].getImpl(),d=g.getPointCount(),P=y.getPointCount(),f=P>1;let E=!1;const S=new o.P,x=new o.P;for(let e=0;e<d;e+=r){if(g.queryXY(e,S),f){const e=this.m_env2DgeometryB.sqrDistance(S);if(this.m_bIsNearCalc){if(e>h)continue;if(this.m_env2DgeometryB.sqrMaxMinDistance(S)<=h)return 0}else if(e>=h)continue}for(let t=0;t<P;t+=a){y.queryXY(t,x);const s=o.P.sqrDistance(S,x);if(this.m_bIsNearCalc){if(s<=h)return 0}else if(!(s>h||E&&s===h)&&(!E||s<h)&&(c(n,S,e,0),c(i,x,t,0),E=!0,h=s,0===h))return E?Math.sqrt(h):Number.POSITIVE_INFINITY}}return E?Math.sqrt(h):Number.POSITIVE_INFINITY}catch(e){_.error=e,_.hasError=!0}finally{(0,s.c)(_)}}distanceMultipointMultipath(e,t,n,s){let r=!!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB)&&t.getGeometryType()===i.G.enumPolygon;const h=t.querySegmentIterator();h.stripAttributes();const m=new _.J,u=new o.P;let l=this.m_maxSqrDistance;const g=e.getImpl(),p=g.getPointCount(),y=p>1;let d=!1;for(;h.nextPath();)for(;h.hasNextSegment();){const e=h.nextSegment();if(e.queryLooseEnvelope(m),y){const e=m.sqrDistanceEnvelope(this.m_env2DgeometryA,null,null);if(this.m_bIsNearCalc){if(e>l)continue}else if(e>l||d&&e===l)continue}for(let i=0;i<p;i++){if(g.queryXY(i,u),r&&0!==(0,a.i)(t,u,0))return c(n,u,-1,Number.NaN),c(s,u,i,0),0;{const e=m.sqrDistance(u);if(this.m_bIsNearCalc){if(e>l)continue}else if(e>l)continue}const o=e.getClosestCoordinate(u,!1),_=e.getCoord2D(o);u.subThis(_);const p=u.sqrLength();if(this.m_bIsNearCalc){if(p<=l)return 0}else if(!(p>l)&&(!d||p<l)&&(l=p,c(n,g.getXY(i),i,0),c(s,_,h.getStartPointIndex(),o),d=!0,0===l))return 0}r=!1}return d?Math.sqrt(l):Number.POSITIVE_INFINITY}distanceEnvelopeGeometry(e,t,n,s){switch(t.getGeometryType()){case i.G.enumPoint:return this.distancePointEnvelope(t,e,s,n);case i.G.enumMultiPoint:{this.m_env2DgeometryB=(0,o.b)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const i=this.distanceMultipointMultipath(t,f(e),s,n);return this.m_env2DgeometryB=(0,o.b)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),i}case i.G.enumPolyline:case i.G.enumPolygon:return this.distanceMultipathMultipath(f(e),t,n,s);case i.G.enumEnvelope:return this.distanceEnvelopeEnvelope(e,t,n,s);default:return Number.NaN}}distanceEnvelopeEnvelope(e,t,n,s){n.t=Number.NaN,n.index=-1,s.t=Number.NaN,s.index=-1;const i=e.asEnvelope2D(),r=t.asEnvelope2D();return Math.sqrt(i.sqrDistanceEnvelope(r,n.outPoint,s.outPoint))}distanceMultipathGeometry(e,t,n,s){switch(t.getGeometryType()){case i.G.enumPoint:{this.m_env2DgeometryB=(0,o.b)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const i=this.distancePointMultipath(t,e,s,n);return this.m_env2DgeometryB=(0,o.b)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),i}case i.G.enumMultiPoint:{this.m_env2DgeometryB=(0,o.b)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const i=this.distanceMultipointMultipath(t,e,s,n);return this.m_env2DgeometryB=(0,o.b)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),i}case i.G.enumPolyline:case i.G.enumPolygon:return this.distanceMultipathMultipath(e,t,n,s);case i.G.enumEnvelope:return this.distanceMultipathMultipath(e,f(t),n,s);default:return Number.NaN}}distanceMultipathMultipath(e,t,n,i){const a={stack:[],error:void 0,hasError:!1};try{const h=[e],u=[t],c=this.swapGeometriesIfAGtB(h,u);c&&(this.m_env2DgeometryB=(0,o.b)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),p(n,i)),(0,s.b)(a,(0,o.h)((()=>{p(n,i),this.m_env2DgeometryB=(0,o.b)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB)}),!c),!1);const P=h[0],f=u[0],E=P.querySegmentIterator();E.stripAttributes();const S=f.querySegmentIterator();if(S.stripAttributes(),this.m_bIsNearCalc&&this.m_env2DgeometryA.sqrMaxMinDistanceEnvelope(this.m_env2DgeometryB)<=this.m_maxSqrDistance)return 0;if(this.m_bIsNearCalc){const e=Math.trunc((0,o.c)(Math.sqrt(P.getPointCount())+1,1,(0,o.i)())),t=Math.trunc((0,o.c)(Math.sqrt(P.getPointCount())+1,1,(0,o.i)()));if(this.distanceMultipointMultipoint(P,f,n,i,e,t)<=this.m_maxSqrDistance)return 0}if(this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB)){const e=m(),t=m();if(y(P,f,E,S,e,t))return l(n,e),l(i,t),0}const x=d(P),v=[],N=new r.S,A=new _.J,M=new _.J,D=new _.J;let b=this.m_maxSqrDistance,C=!0,T=!1;for(let e=0,t=x.length;e<t;++e){P.querySegment(x[e],N,!0);const t=N.get();if(t.queryEnvelope(A),!(A.sqrDistanceEnvelope(this.m_env2DgeometryB,null,null)>b)){if(this.m_bIsNearCalc&&A.sqrMaxDistanceEnvelope(this.m_env2DgeometryB)<=b)return 0;for(;S.nextPath();){if(this.progress_(),C)f.queryPathEnvelope(S.getPathIndex(),D),v[S.getPathIndex()]=D.clone();else if(A.sqrDistanceEnvelope(v[S.getPathIndex()],null,null)>b)continue;for(;S.hasNextSegment();){const s=S.nextSegment();if(s.queryEnvelope(M),A.sqrDistanceEnvelope(M,null,null)<=b){const r=!A.isIntersecting(M),a=[0],o=[0];let _=t.distance(s,r,a,o);if(_*=_,this.m_bIsNearCalc&&_<=this.m_maxSqrDistance)return 0;if(_<b||_===b&&x[e]<n.index){if(T=!0,g(n,t,x[e],a[0]),g(i,s,S.getStartPointIndex(),o[0]),0===_)return 0;b=_}}}}S.resetToFirstPath(),C=!1}}return T?Math.sqrt(b):Number.POSITIVE_INFINITY}catch(e){a.error=e,a.hasError=!0}finally{(0,s.c)(a)}}swapGeometriesIfAGtB(e,t){return(0,i.v)(e[0])>(0,i.v)(t[0])&&(t[0]=(0,o.b)(e[0],e[0]=t[0]),!0)}swapGeometriesIfBGtA(e,t){return this.swapGeometriesIfAGtB(t,e)}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3920,8256],{1689:(t,e,r)=>{r.r(e),r.d(e,{default:()=>B});var n=r(90237),o=r(78888),s=r(49186),i=r(34727),a=r(92071),l=r(36708),u=r(10107),p=(r(44208),r(53966),r(87811),r(36005)),c=r(40608),d=r(5443),f=r(82799),h=r(16930),y=r(4146),m=r(63074),g=r(69208),v=r(25036),b=r(60694),M=r(10873),w=r(69540),_=r(25482);let x=class extends(w.A.ClonableMixin(_.A)){constructor(t){super(t),this.framerate=null,this.containerFormat=null,this.gop=null,this.aspectRatio=null,this.klv=null}};(0,n._)([(0,u.MZ)({type:String})],x.prototype,"framerate",void 0),(0,n._)([(0,u.MZ)({type:String})],x.prototype,"containerFormat",void 0),(0,n._)([(0,u.MZ)({type:Number})],x.prototype,"gop",void 0),(0,n._)([(0,u.MZ)({type:String})],x.prototype,"aspectRatio",void 0),(0,n._)([(0,u.MZ)({type:Object})],x.prototype,"klv",void 0),x=(0,n._)([(0,c.$)("esri.layers.support.PlaybackInfo")],x);const A=x;var S=r(22453),O=r(64422);let E=class extends(w.A.ClonableMixin(_.A)){constructor(t){super(t),this.frame=null,this.frameCenter=null,this.frameOutline=null,this.lineOfSight=null,this.sensorLocation=null,this.sensorTrail=null}};(0,n._)([(0,u.MZ)({type:Boolean})],E.prototype,"frame",void 0),(0,n._)([(0,u.MZ)({type:Boolean})],E.prototype,"frameCenter",void 0),(0,n._)([(0,u.MZ)({type:Boolean})],E.prototype,"frameOutline",void 0),(0,n._)([(0,u.MZ)({type:Boolean})],E.prototype,"lineOfSight",void 0),(0,n._)([(0,u.MZ)({type:Boolean})],E.prototype,"sensorLocation",void 0),(0,n._)([(0,u.MZ)({type:Boolean})],E.prototype,"sensorTrail",void 0),E=(0,n._)([(0,c.$)("esri.layers.support.TelemetryDisplay")],E);const T=E;var C=r(69622),Z=r(43937),F=r(86738);let I=class extends C.A{constructor(){super(...arguments),this.sourcePoint=null,this.mapPoint=null}};(0,n._)([(0,u.MZ)()],I.prototype,"sourcePoint",void 0),(0,n._)([(0,u.MZ)({type:F.A})],I.prototype,"mapPoint",void 0),I=(0,n._)([(0,c.$)("esri.layers.support.VideoFrame.ControlPoint")],I);let j=class extends(w.A.ClonableMixin(_.A)){constructor(t){super(t),this.frame=null,this.controlPoints=null}readControlPoints(t){return t.map((t=>({sourcePoint:{x:t.frameX,y:t.frameY},mapPoint:new F.A(t.point)})))}writeControlPoints(t,e){null!=t&&function(t){return null!=t?.sourcePoint&&null!=t.mapPoint}(t[0])&&(e.controlPoints=t.map((t=>{const e=t.sourcePoint,r=t.mapPoint;return{frameX:e.x,frameY:e.y,point:r.toJSON()}})))}};(0,n._)([(0,u.MZ)({type:String})],j.prototype,"frame",void 0),(0,n._)([(0,u.MZ)({type:[I],json:{write:{allowNull:!1,isRequired:!0}}})],j.prototype,"controlPoints",void 0),(0,n._)([(0,p.w)("controlPoints")],j.prototype,"readControlPoints",null),(0,n._)([(0,Z.K)("controlPoints")],j.prototype,"writeControlPoints",null),j=(0,n._)([(0,c.$)("esri.layers.support.VideoFrame")],j);const R=j;var D=r(3930),P=r(48457);let N=class extends((0,m.dM)((0,v.j)((0,a.P)((0,g.d)(y.A))))){constructor(t){super(t),this._trailPoints=[],this.capabilities=null,this.connectionInfo=null,this.controller=new D.default,this.copyright=null,this.created=null,this.description=null,this.elevationSource=null,this.frame=null,this.frameCount=null,this.fullExtent=null,this.initialExtent=null,this.layerId=null,this.playbackInfo=null,this.posterUrl=null,this.qualities=null,this.serviceItemId=null,this.sourceJSON=null,this.sourceQuality=null,this.sourceType=null,this.spatialReference=h.A.WGS84,this.telemetryDisplay=null,this.title=null,this.type="video",this.url=null,this.videoLayersInfo=null,this.videoTimeExtent=null}initialize(){this.telemetryDisplay=new T({frame:!1,frameCenter:!1,frameOutline:!0,lineOfSight:!0,sensorLocation:!0,sensorTrail:!0}),this.addHandles([(0,l.wB)((()=>this.metadata),(()=>{this.notifyChange("telemetry"),this.notifyChange("groundControlPoints"),this.notifyChange("frameHorizonPoints")})),(0,l.wB)((()=>this.telemetry?.sensorLocation),(t=>this._setSensorTrail(t)),l.Vh)])}load(t){const e=null!=t?t.signal:null;return this.addResolvingPromise(this._fetchService(e)),Promise.resolve(this)}get buffered(){return this.controller.buffered}readCapabilitiesFromService(t,e){return(0,S.d)(e)}readConnectionInfo(t,e){const r=Object.values(e.connectionUrl);return r?.length&&(this.controller.playerUrl=r[0]),e.connectionUrl}get currentTime(){return this.controller.currentTime}get duration(){return this.controller.duration}get ended(){return this.controller.ended}get frameHorizonPoints(){return(0,P.SC)(this.metadata)}get groundControlPoints(){return(0,P.I0)(this.metadata)}get loop(){return this.controller.loop}set loop(t){this.controller.loop=t}get metadata(){return this.controller?.currentMetadata}get mimeType(){return this.controller?.mimeType}get muted(){return this.controller.muted}set muted(t){this.controller.muted=t}get playbackRate(){return this.controller.rate}set playbackRate(t){this.controller.rate=t}get playerUrl(){return this.controller.playerUrl}get playing(){return this.controller.playing}get state(){return this.controller.state}get telemetry(){return(0,P.YI)(this.metadata)}get videoElement(){return this.controller?.element}get videoHeight(){return this.controller?.videoHeight}readLayerInfosFromService(t,e){return(0,P.Yv)(e)}get videoWidth(){return this.controller?.videoWidth}get waiting(){return this.controller.waiting}play(){this.controller.play()}pause(){this.controller.pause()}reset(){this.controller.reset()}setCurrentTime(t){if(!this.duration)return;const e=(0,i.qE)(t,0,this.duration);this.controller.setCurrentTime(e)}toGround(t,e){return this.controller?.sensorModel?.metadataSupportsTransforms?this.controller.sensorModel.transformImageToGeo(t,e):null}toVideo(t){if(!this.controller?.sensorModel?.metadataSupportsTransforms)return null;const e=this.controller.sensorModel.transformGeoToImage(t.x,t.y,t.z);return{x:e[0],y:e[1]}}async _fetchService(t){if(this.sourceJSON)return void this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl});const e=(0,b.qg)(this.parsedUrl?.path);if(null==e)throw new s.A("arcgis-layers:url-mismatch","The url is not a valid arcgis resource");let r=null;const{data:n,ssl:i}=await(0,o.A)(e.url.path,{query:{f:"json",...this.parsedUrl.query,...this.customParameters},signal:t}),a=n;if(this.url=e.url.path,i&&(this.url=this.url.replace(/^http:/i,"https:")),!a?.currentVersion)return a.currentVersion="11.2",this.sourceJSON=a,void this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl});let l=e?.sublayer;if(null==l&&a.layers?.length&&(l=a.layers[0].id),null==l)throw new s.A("arcgis-layers:url-mismatch","The url is not a valid arcgis resource");this.url=`${e.url.path}/${l}`,r=await(0,o.A)(this.url,{query:{f:"json",...this.customParameters},signal:t});const u={...a,...r.data};this.sourceJSON=u,this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl})}_setSensorTrail(t){if(!t)return;const e=(0,P.yQ)(t,this._trailPoints);this._trailPoints=[...e];const r=this._trailPoints.map((t=>t.toArray())),n=new f.A({hasZ:t.hasZ,paths:[r]});this.telemetry.sensorTrail=n.clone()}};(0,n._)([(0,u.MZ)({readOnly:!0})],N.prototype,"buffered",null),(0,n._)([(0,u.MZ)({readOnly:!0,json:{read:!1}})],N.prototype,"capabilities",void 0),(0,n._)([(0,p.w)("service","capabilities",["supportsAppend","supportsCoverageQuery","supportsExportClip","supportsExportFrameset","supportsMensuration","supportsUpdate"])],N.prototype,"readCapabilitiesFromService",null),(0,n._)([(0,u.MZ)({readOnly:!0})],N.prototype,"connectionInfo",void 0),(0,n._)([(0,p.w)("connectionInfo",["connectionUrl"])],N.prototype,"readConnectionInfo",null),(0,n._)([(0,u.MZ)()],N.prototype,"controller",void 0),(0,n._)([(0,u.MZ)({type:String})],N.prototype,"copyright",void 0),(0,n._)([(0,u.MZ)({readOnly:!0,type:Date})],N.prototype,"created",void 0),(0,n._)([(0,u.MZ)({type:Number})],N.prototype,"currentTime",null),(0,n._)([(0,u.MZ)({type:String})],N.prototype,"description",void 0),(0,n._)([(0,u.MZ)({type:Number})],N.prototype,"duration",null),(0,n._)([(0,u.MZ)({readOnly:!0})],N.prototype,"elevationSource",void 0),(0,n._)([(0,u.MZ)({type:Boolean})],N.prototype,"ended",null),(0,n._)([(0,u.MZ)({type:R})],N.prototype,"frame",void 0),(0,n._)([(0,u.MZ)({readOnly:!0,type:Number})],N.prototype,"frameCount",void 0),(0,n._)([(0,u.MZ)({type:d.A})],N.prototype,"fullExtent",void 0),(0,n._)([(0,u.MZ)({readOnly:!0})],N.prototype,"frameHorizonPoints",null),(0,n._)([(0,u.MZ)({readOnly:!0})],N.prototype,"groundControlPoints",null),(0,n._)([(0,u.MZ)({type:d.A})],N.prototype,"initialExtent",void 0),(0,n._)([(0,u.MZ)({readOnly:!0,json:{read:{source:"id"}}})],N.prototype,"layerId",void 0),(0,n._)([(0,u.MZ)({type:Boolean})],N.prototype,"loop",null),(0,n._)([(0,u.MZ)({readOnly:!0})],N.prototype,"metadata",null),(0,n._)([(0,u.MZ)({readOnly:!0})],N.prototype,"mimeType",null),(0,n._)([(0,u.MZ)({type:Boolean})],N.prototype,"muted",null),(0,n._)([(0,u.MZ)({type:A})],N.prototype,"playbackInfo",void 0),(0,n._)([(0,u.MZ)({type:Number})],N.prototype,"playbackRate",null),(0,n._)([(0,u.MZ)({type:String})],N.prototype,"playerUrl",null),(0,n._)([(0,u.MZ)({readOnly:!0})],N.prototype,"playing",null),(0,n._)([(0,u.MZ)({readOnly:!0,json:{read:{source:"poster"}}})],N.prototype,"posterUrl",void 0),(0,n._)([(0,u.MZ)({readOnly:!0})],N.prototype,"qualities",void 0),(0,n._)([(0,u.MZ)({readOnly:!0})],N.prototype,"serviceItemId",void 0),(0,n._)([(0,u.MZ)()],N.prototype,"sourceJSON",void 0),(0,n._)([(0,u.MZ)({readOnly:!0})],N.prototype,"sourceQuality",void 0),(0,n._)([(0,u.MZ)({readOnly:!0,json:{name:"serviceType"}})],N.prototype,"sourceType",void 0),(0,n._)([(0,u.MZ)()],N.prototype,"spatialReference",void 0),(0,n._)([(0,u.MZ)({readOnly:!0,type:String})],N.prototype,"state",null),(0,n._)([(0,u.MZ)({readOnly:!0,type:O.A})],N.prototype,"telemetry",null),(0,n._)([(0,u.MZ)({type:T})],N.prototype,"telemetryDisplay",void 0),(0,n._)([(0,u.MZ)({readOnly:!1,json:{read:{source:"name"}}})],N.prototype,"title",void 0),(0,n._)([(0,u.MZ)({readOnly:!0})],N.prototype,"type",void 0),(0,n._)([(0,u.MZ)(M.OZ)],N.prototype,"url",void 0),(0,n._)([(0,u.MZ)({readOnly:!0})],N.prototype,"videoElement",null),(0,n._)([(0,u.MZ)({readOnly:!0})],N.prototype,"videoHeight",null),(0,n._)([(0,u.MZ)({readOnly:!0,json:{read:!1}})],N.prototype,"videoLayersInfo",void 0),(0,n._)([(0,p.w)("service","videoLayersInfo",["id","name","poster","serviceType","type"])],N.prototype,"readLayerInfosFromService",null),(0,n._)([(0,u.MZ)({readOnly:!0,nonNullable:!1,json:{read:{reader:P.nX,source:"time"}}})],N.prototype,"videoTimeExtent",void 0),(0,n._)([(0,u.MZ)({readOnly:!0})],N.prototype,"videoWidth",null),(0,n._)([(0,u.MZ)({readOnly:!0})],N.prototype,"waiting",null),N=(0,n._)([(0,c.$)("esri.layers.VideoLayer")],N);const B=N},4146:(t,e,r)=>{r.d(e,{A:()=>M});var n=r(90237),o=r(78888),s=r(49186),i=r(65529),a=r(4902),l=r(92474),u=r(53966),p=r(74887),c=r(84952),d=r(10107),f=(r(44208),r(87811),r(40608)),h=r(5443),y=r(16930),m=r(92602),g=r(79677);let v=0,b=class extends(i.A.EventedMixin(a.A.IdentifiableMixin(l.A))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new h.A(-180,-90,180,90,y.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+v++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=y.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(t){const e="string"==typeof t?{url:t}:t;return(await r.e(7982).then(r.bind(r,27982))).fromUrl(e)}static fromPortalItem(t){return async function(t){const e="portalItem"in t?t:{portalItem:t},{fromItem:n}=await r.e(5613).then(r.bind(r,45613));try{return await n(e)}catch(t){const r=e?.portalItem,n=r?.id||"unset",o=r?.portal?.url||m.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+o+"', id: '"+n+"')",t),t}}(t)}initialize(){this.when().catch((t=>{(0,p.zf)(t)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:t})}))}destroy(){const t=this.parent;if(t){const e=this;"layers"in t&&t.layers.includes(e)?t.layers.remove(e):"tables"in t&&t.tables.includes(e)?t.tables.remove(e):"baseLayers"in t&&t.baseLayers.includes(e)?t.baseLayers.remove(e):"referenceLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e),this._set("parent",null)}}get effectiveVisible(){let t=this.visible;const e=this.parent;return t&&e&&"effectiveVisible"in e&&(t&&=e.effectiveVisible),t}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,c.An)(this.url)}createLayerView(t,e){return Promise.reject(new s.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const t=this.attributionDataUrl;if(this.hasAttributionData&&t)return(await(0,o.A)(t,{query:{f:"json"},responseType:"json"})).data;throw new s.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,n._)([(0,d.MZ)({type:String})],b.prototype,"attributionDataUrl",void 0),(0,n._)([(0,d.MZ)({readOnly:!0})],b.prototype,"effectiveVisible",null),(0,n._)([(0,d.MZ)({type:h.A})],b.prototype,"fullExtent",void 0),(0,n._)([(0,d.MZ)({readOnly:!0})],b.prototype,"hasAttributionData",null),(0,n._)([(0,d.MZ)({type:String,clonable:!1})],b.prototype,"id",void 0),(0,n._)([(0,d.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"legendEnabled",void 0),(0,n._)([(0,d.MZ)({type:["show","hide","hide-children"]})],b.prototype,"listMode",void 0),(0,n._)([(0,d.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],b.prototype,"opacity",void 0),(0,n._)([(0,d.MZ)({clonable:!1})],b.prototype,"parent",void 0),(0,n._)([(0,d.MZ)({readOnly:!0})],b.prototype,"parsedUrl",null),(0,n._)([(0,d.MZ)({type:Boolean,readOnly:!0})],b.prototype,"persistenceEnabled",void 0),(0,n._)([(0,d.MZ)({type:Boolean})],b.prototype,"popupEnabled",void 0),(0,n._)([(0,d.MZ)({type:Boolean})],b.prototype,"attributionVisible",void 0),(0,n._)([(0,d.MZ)({type:y.A})],b.prototype,"spatialReference",void 0),(0,n._)([(0,d.MZ)({type:String})],b.prototype,"title",void 0),(0,n._)([(0,d.MZ)({readOnly:!0,json:{read:!1}})],b.prototype,"type",void 0),(0,n._)([(0,d.MZ)()],b.prototype,"url",void 0),(0,n._)([(0,d.MZ)({type:g.A})],b.prototype,"visibilityTimeExtent",void 0),(0,n._)([(0,d.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"visible",void 0),b=(0,n._)([(0,f.$)("esri.layers.Layer")],b);const M=b},4902:(t,e,r)=>{r.d(e,{A:()=>u});var n=r(90237),o=r(40608);let s=0;const i=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+s++})}};return e=(0,n._)([(0,o.$)("esri.core.Identifiable")],e),e};let a=class extends(i(class{})){};var l;a=(0,n._)([(0,o.$)("esri.core.Identifiable")],a),(l=a||(a={})).IdentifiableMixin=i,l.NumericIdentifiableMixin=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:s++})}};return e=(0,n._)([(0,o.$)("esri.core.Identifiable.NumericIdentifiable")],e),e};const u=a},10873:(t,e,r)=>{r.d(e,{C1:()=>A,Fm:()=>M,Ih:()=>b,M6:()=>c,OZ:()=>f,PY:()=>p,Qo:()=>m,Yj:()=>y,fV:()=>h,hG:()=>x,hn:()=>_,id:()=>w,kF:()=>d,ke:()=>v,zQ:()=>S});var n=r(89317),o=r(5443),s=r(16930),i=r(97159),a=r(88625),l=r(85360),u=r(78553);const p={type:Boolean,value:!0,json:{origins:{service:{read:!1,write:!1},"web-map":{read:!1,write:!1}},name:"screenSizePerspective",write:{enabled:!0,layerContainerTypes:n.K}}},c={type:Boolean,value:!0,json:{name:"disablePopup",read:{reader:(t,e)=>!e.disablePopup},write:{enabled:!0,writer(t,e,r){e[r]=!t}}}},d={type:Boolean,value:!0,nonNullable:!0,json:{name:"showLabels",write:{enabled:!0,layerContainerTypes:n.K}}},f={type:String,json:{origins:{"portal-item":{write:!1}},write:{isRequired:!0,ignoreOrigin:!0,writer:i.w}}},h={type:Boolean,value:!0,nonNullable:!0,json:{origins:{service:{read:{enabled:!1}}},name:"showLegend",write:{enabled:!0,layerContainerTypes:n.K}}},y={value:null,type:a.A,json:{origins:{service:{name:"elevationInfo",write:!0}},name:"layerDefinition.elevationInfo",write:{enabled:!0,layerContainerTypes:n.K}}};function m(t){return{type:t,readOnly:!0,json:{origins:{service:{read:!0}},read:!1}}}const g={write:{enabled:!0,layerContainerTypes:n.K},read:!0},v={type:Number,json:{origins:{"web-document":g,"portal-item":{write:{layerContainerTypes:n.K}}}}},b={...v,json:{...v.json,origins:{"web-document":{...g,write:{enabled:!0,layerContainerTypes:n.K,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}}}},read:{source:["layerDefinition.drawingInfo.transparency","drawingInfo.transparency"],reader:(t,e,r)=>r&&"service"!==r.origin||!e.drawingInfo||void 0===e.drawingInfo.transparency?e.layerDefinition?.drawingInfo&&void 0!==e.layerDefinition.drawingInfo.transparency?(0,u.D)(e.layerDefinition.drawingInfo.transparency):void 0:(0,u.D)(e.drawingInfo.transparency)}}},M={type:o.A,readOnly:!0,json:{origins:{service:{read:{source:["fullExtent","spatialReference"],reader:(t,e)=>{const r=o.A.fromJSON(t);return null!=e.spatialReference&&"object"==typeof e.spatialReference&&(r.spatialReference=s.A.fromJSON(e.spatialReference)),r}}}},read:!1}},w={type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}}}},_={type:Number,json:{origins:{service:{write:{enabled:!1}}},name:"layerDefinition.minScale",write:{layerContainerTypes:n.K}}},x={type:Number,json:{origins:{service:{write:{enabled:!1}}},name:"layerDefinition.maxScale",write:{layerContainerTypes:n.K}}},A={json:{write:{ignoreOrigin:!0,layerContainerTypes:n.K},origins:{"web-map":{read:!1,write:!1}}}},S={type:l.A,json:{name:"attributeTableInfo",write:!0,origins:{"web-scene":{read:!1,write:!1}}}}},16271:(t,e,r)=>{r.d(e,{Ao:()=>s,KQ:()=>i});var n=r(4576),o=r(31756);function s(t){return 1/(o.j[t]||1)}const i=function(){const t=Object.keys(o.j);return(0,n.TF)(t,"decimal-degrees"),t.sort(),t}()},20557:(t,e,r)=>{r.d(e,{Fm:()=>l,Hz:()=>f,JQ:()=>d,JZ:()=>M,ND:()=>y,R_:()=>i,U9:()=>c,fu:()=>o,nr:()=>h,oF:()=>s,rq:()=>u,z$:()=>p});const n=[["binary","application/octet-stream","bin",""]];function o(t,e){return null!=g(e.name,t?.supportedFormats??[])}function s(t,e){if(!t)return!1;const r=u(e,t.supportedFormats??[]);return null!=r&&t.editFormats.includes(r)}function i(t,e){return v(function(t,e){const r=t.toLowerCase();return m(e).find((t=>b(t)===r))}(t,e))}function a(t,e){return v(g(t,e))}function l(t,e){return b(function(t,e){return m(e).find((e=>v(e)===t))}(t,e))}function u(t,e){return a(t.name,e)??i(t.type,e)}function p(t,e,r){return i(t,r)??a(e,r)}function c({supportedFormats:t}){return p("model/gltf-binary","glb",t)}function d(t){const e=c(t);return null!=e&&t.editFormats.includes(e)}function f(t){if(!t)return null;const e=c(t),r=function({supportedFormats:t}){return p("model/gltf+json","gltf",t)}(t);let n=null;for(const o of t.queryFormats){if(o===e)return o;o===r&&(n=o)}return n}function h({supportedFormats:t}){return p("application/esri3do-SR_world","wld",t)}function y({supportedFormats:t}){return p("application/esri3do-SR_prj","prj",t)}function m(t){return[...n,...t]}function g(t,e){const r=t.toLowerCase();return m(e).find((t=>function(t){return t?.[2].split(",").map((t=>t.toLowerCase()))??[]}(t).some((t=>r.endsWith(t)))))}function v(t){return t?.[0]}function b(t){return t?.[1].toLowerCase()}function M(t){return t.tables?.find((t=>"assetMaps"===t.role))}},22453:(t,e,r)=>{r.d(e,{S:()=>h,d:()=>S});var n=r(44208),o=r(60694),s=r(20557);function i(t,e,r){return!!l(t,e,r)}function a(t,e,r){return l(t,e,r)}function l(t,e,r){return t&&t.hasOwnProperty(e)?t[e]:r}const u={name:"supportsName",size:"supportsSize",contentType:"supportsContentType",keywords:"supportsKeywords",exifInfo:"supportsExifInfo"};function p(t){const e=t?.supportedSpatialAggregationStatistics?.map((t=>t.toLowerCase()));return{envelope:!!e?.includes("envelopeaggregate"),centroid:!!e?.includes("centroidaggregate"),convexHull:!!e?.includes("convexhullaggregate")}}function c(t,e){const r=t?.supportedOperationsWithCacheHint?.map((t=>t.toLowerCase()));return!!r?.includes(e.toLowerCase())}function d(t){const e=t?.supportedStatisticTypes?.map((t=>t.toLowerCase()));return{count:!!e?.includes("count"),sum:!!e?.includes("sum"),min:!!e?.includes("min"),max:!!e?.includes("max"),avg:!!e?.includes("avg"),var:!!e?.includes("var"),stddev:!!e?.includes("stddev"),percentileContinuous:!!e?.includes("percentile_continuous"),percentileDiscrete:!!e?.includes("percentile_discrete"),envelope:!!e?.includes("envelopeaggregate"),centroid:!!e?.includes("centroidaggregate"),convexHull:!!e?.includes("convexhullaggregate")}}function f(t){const e=t?.supportedNormalizationTypes?.map((t=>t.toLowerCase()));return{field:!!e?.includes("field"),log:!!e?.includes("log"),naturalLog:!!e?.includes("naturallog"),percentOfTotal:!!e?.includes("percentoftotal"),squareRoot:!!e?.includes("squareroot")}}function h(t,e){return{analytics:y(t),attachment:m(t),data:g(t),metadata:v(t),operations:b(t.capabilities,t,e),query:M(t,e),queryAttributeBins:x(t),queryRelated:w(t),queryTopFeatures:_(t),editing:A(t)}}function y(t){return{supportsCacheHint:c(t.advancedQueryCapabilities,"queryAnalytics")}}function m(t){const e=t.attachmentProperties,r={supportsName:!1,supportsSize:!1,supportsContentType:!1,supportsKeywords:!1,supportsExifInfo:!1,supportsCacheHint:c(t.advancedQueryCapabilities,"queryAttachments"),supportsOrderByFields:i(t.advancedQueryCapabilities,"supportsQueryAttachmentOrderByFields",!1),supportsResize:i(t,"supportsAttachmentsResizing",!1)};return e&&Array.isArray(e)&&e.forEach((t=>{const e=u[t.name];e&&(r[e]=!!t.isEnabled)})),r}function g(t){return{isVersioned:i(t,"isDataVersioned",!1),isBranchVersioned:i(t,"isDataBranchVersioned",!1),supportsAttachment:i(t,"hasAttachments",!1),supportsM:i(t,"hasM",!1),supportsZ:i(t,"hasZ",!1)}}function v(t){return{supportsAdvancedFieldProperties:i(t,"supportsFieldDescriptionProperty",!1)}}function b(t,e,r){const n=t?t.toLowerCase().split(",").map((t=>t.trim())):[],s=r?(0,o.qg)(r):null,a=n.includes(null!=s&&"MapServer"===s.serverType?"data":"query"),l=n.includes("editing")&&!e.datesInUnknownTimezone;let u=l&&n.includes("create"),p=l&&n.includes("delete"),c=l&&n.includes("update");const d=n.includes("changetracking"),f=e.advancedQueryCapabilities;return l&&!(u||p||c)&&(u=p=c=!0),{supportsCalculate:i(e,"supportsCalculate",!1),supportsTruncate:i(e,"supportsTruncate",!1),supportsValidateSql:i(e,"supportsValidateSql",!1),supportsAdd:u,supportsDelete:p,supportsEditing:l,supportsChangeTracking:d,supportsQuery:a,supportsQueryAnalytics:i(f,"supportsQueryAnalytic",!1),supportsQueryAttachments:i(f,"supportsQueryAttachments",!1),supportsQueryBins:i(f,"supportsQueryBins",!1),supportsQueryTopFeatures:i(f,"supportsTopFeaturesQuery",!1),supportsResizeAttachments:i(e,"supportsAttachmentsResizing",!1),supportsSync:n.includes("sync"),supportsUpdate:c,supportsExceedsLimitStatistics:i(e,"supportsExceedsLimitStatistics",!1),supportsAsyncConvert3D:i(e,"supportsAsyncConvert3D",!1)}}function M(t,e){const r=t.advancedQueryCapabilities,l=t.ownershipBasedAccessControlForFeatures,u=t.archivingInfo,d=t.currentVersion,f=e?.includes("MapServer"),h=!f||d>=(0,n.A)("mapserver-pbf-version-support"),y=(0,o.Wo)(e),m=new Set((t.supportedQueryFormats??"").split(",").map((t=>t.toLowerCase().trim())));return{maxRecordCount:a(t,"maxRecordCount",void 0),maxRecordCountFactor:a(t,"maxRecordCountFactor",void 0),standardMaxRecordCount:a(t,"standardMaxRecordCount",void 0),supportedSpatialAggregationStatistics:p(r),supportsCacheHint:i(r,"supportsQueryWithCacheHint",!1)||c(r,"query"),supportsCentroid:i(r,"supportsReturningGeometryCentroid",!1),supportsCompactGeometry:y,supportsCurrentUser:i(r,"supportsCurrentUserQueries",!1),supportsDefaultSpatialReference:i(r,"supportsDefaultSR",!1),supportsDisjointSpatialRelationship:i(r,"supportsDisjointSpatialRel",!1),supportsDistance:i(r,"supportsQueryWithDistance",!1),supportsDistinct:i(r,"supportsDistinct",t.supportsAdvancedQueries),supportsExtent:i(r,"supportsReturningQueryExtent",!1),supportsFormatPBF:h&&m.has("pbf"),supportsFullTextSearch:i(r,"supportsFullTextSearch",!1),supportsGeometryProperties:i(r,"supportsReturningGeometryProperties",!1),supportsHavingClause:i(r,"supportsHavingClause",!1),supportsHistoricMoment:i(u,"supportsQueryWithHistoricMoment",!1),supportsMaxRecordCountFactor:i(r,"supportsMaxRecordCountFactor",!1),supportsOrderBy:i(r,"supportsOrderBy",t.supportsAdvancedQueries),supportsPagination:i(r,"supportsPagination",!1),supportsPercentileStatistics:i(r,"supportsPercentileStatistics",!1),supportsQuantization:i(t,"supportsCoordinatesQuantization",!1),supportsQuantizationEditMode:i(t,"supportsQuantizationEditMode",!1),supportsQueryByAnonymous:i(l,"allowAnonymousToQuery",!0),supportsQueryByOthers:i(l,"allowOthersToQuery",!0),supportsQueryGeometry:i(t,"supportsReturningQueryGeometry",!1),supportsResultType:i(r,"supportsQueryWithResultType",!1),supportsReturnMesh:!!(0,s.Hz)(t.infoFor3D),supportsSpatialAggregationStatistics:i(r,"supportsSpatialAggregationStatistics",!1),supportsSqlExpression:i(r,"supportsSqlExpression",!1),supportsStandardizedQueriesOnly:i(t,"useStandardizedQueries",!1),supportsStatistics:i(r,"supportsStatistics",t.supportsStatistics),supportsTopFeaturesQuery:i(r,"supportsTopFeaturesQuery",!1),supportsTrueCurve:i(r,"supportsTrueCurve",!1),tileMaxRecordCount:a(t,"tileMaxRecordCount",void 0)}}function w(t){const e=t.advancedQueryCapabilities,r=i(e,"supportsAdvancedQueryRelated",!1);return{supportsPagination:i(e,"supportsQueryRelatedPagination",!1),supportsCount:r,supportsOrderBy:r,supportsCacheHint:c(e,"queryRelated")}}function _(t){return{supportsCacheHint:c(t.advancedQueryCapabilities,"queryTopFilter")}}function x(t){const e=t?t.queryBinsCapabilities:void 0;return{supportsDate:i(e,"supportsDateBin",!1),supportsFixedInterval:i(e,"supportsFixedIntervalBin",!1),supportsAutoInterval:i(e,"supportsAutoIntervalBin",!1),supportsFixedBoundaries:i(e,"supportsFixedBoundariesBin",!1),supportsStackBy:i(e,"supportsStackBy",!1),supportsSplitBy:i(e,"supportsSplitBy",!1),supportsSnapToData:i(e,"supportsSnapToData",!1),supportsReturnFullIntervalBin:i(e,"supportsReturnFullIntervalBin",!1),supportsFirstDayOfWeek:i(e,"supportsFirstDayOfWeek",!1),supportsNormalization:i(e,"supportsNormalization",!1),supportedStatistics:d(e),supportedNormalizationTypes:f(e)}}function A(t){const e=t.ownershipBasedAccessControlForFeatures,r=t?t.advancedEditingCapabilities:void 0;return{supportsGeometryUpdate:i(t,"allowGeometryUpdates",!0),supportsGlobalId:i(t,"supportsApplyEditsWithGlobalIds",!1),supportsReturnServiceEditsInSourceSpatialReference:i(t,"supportsReturnServiceEditsInSourceSR",!1),supportsRollbackOnFailure:i(t,"supportsRollbackOnFailureParameter",!1),supportsUpdateWithoutM:i(t,"allowUpdateWithoutMValues",!1),supportsUploadWithItemId:i(t,"supportsAttachmentsByUploadId",!1),supportsDeleteByAnonymous:i(e,"allowAnonymousToDelete",!0),supportsDeleteByOthers:i(e,"allowOthersToDelete",!0),supportsUpdateByAnonymous:i(e,"allowAnonymousToUpdate",!0),supportsUpdateByOthers:i(e,"allowOthersToUpdate",!0),supportsAsyncApplyEdits:i(r,"supportsAsyncApplyEdits",!1),zDefault:a(t,"zDefault",void 0)}}function S(t){return{operations:{supportsAppend:i(t,"supportsAppend",!1),supportsCoverageQuery:t?.playbackInfo?.klv["0601"]??!1,supportsExportClip:i(t,"supportsExportClip",!1),supportsExportFrameset:i(t,"supportsExportFrameset",!1),supportsMensuration:i(t,"supportsMensuration",!1),supportsUpdate:i(t,"supportsUpdate",!1)}}}},25036:(t,e,r)=>{r.d(e,{j:()=>i});var n=r(90237),o=r(10107),s=(r(44208),r(53966),r(87811),r(40608));const i=t=>{let e=class extends t{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const t={minScale:this.minScale,maxScale:this.maxScale},e=this.parent;e&&"effectiveScaleRange"in e&&function(t,e){t.minScale=t.minScale>0?e.minScale>0?Math.min(t.minScale,e.minScale):t.minScale:e.minScale,t.maxScale=t.maxScale>0?e.maxScale>0?Math.max(t.maxScale,e.maxScale):t.maxScale:e.maxScale}(t,e.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===t.minScale&&r.maxScale===t.maxScale?r:t}};return(0,n._)([(0,o.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],e.prototype,"minScale",void 0),(0,n._)([(0,o.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],e.prototype,"maxScale",void 0),(0,n._)([(0,o.MZ)({readOnly:!0})],e.prototype,"effectiveScaleRange",null),e=(0,n._)([(0,s.$)("esri.layers.mixins.ScaleRangeLayer")],e),e}},29242:(t,e,r)=>{function n(){return[1,0,0,0,1,0,0,0,1]}function o(t,e,r,n,o,s,i,a,l){return[t,e,r,n,o,s,i,a,l]}r.d(e,{fA:()=>o,vt:()=>n,zK:()=>s});const s=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:n,fromValues:o},Symbol.toStringTag,{value:"Module"}))},31756:(t,e,r)=>{r.d(e,{j:()=>s});var n=r(83047),o=r(79258);const s={unknown:1,inches:(0,n.oU)(1,"meters","inches"),feet:(0,n.oU)(1,"meters","feet"),"us-feet":(0,n.oU)(1,"meters","us-feet"),yards:(0,n.oU)(1,"meters","yards"),miles:(0,n.oU)(1,"meters","miles"),"nautical-miles":(0,n.oU)(1,"meters","nautical-miles"),millimeters:(0,n.oU)(1,"meters","millimeters"),centimeters:(0,n.oU)(1,"meters","centimeters"),decimeters:(0,n.oU)(1,"meters","decimeters"),meters:(0,n.oU)(1,"meters","meters"),kilometers:(0,n.oU)(1,"meters","kilometers"),"decimal-degrees":1/(0,n.vl)(1,"meters",o.$O.radius)}},36708:(t,e,r)=>{r.d(e,{C_:()=>d,OH:()=>y,Vh:()=>m,on:()=>c,pc:()=>g,wB:()=>l,z7:()=>u});var n=r(37955),o=r(36563),s=r(97768),i=r(74887),a=r(14012);function l(t,e,r={}){return p(t,e,r,f)}function u(t,e,r={}){return p(t,e,r,h)}function p(t,e,r={},n){let o=null;const i=r.once?(t,r)=>{n(t)&&((0,s.xt)(o),e(t,r))}:(t,r)=>{n(t)&&e(t,r)};if(o=(0,a.Cn)(t,i,r.sync,r.equals),r.initial){const e=t();i(e,e)}return o}function c(t,e,r,i={}){let a=null,u=null,p=null;function c(){a&&u&&(u.remove(),i.onListenerRemove?.(a),a=null,u=null)}function d(t){i.once&&i.once&&(0,s.xt)(p),r(t)}const f=l(t,((t,r)=>{c(),(0,n.wb)(t)&&(a=t,u=(0,n.on)(t,e,d),i.onListenerAdd?.(t))}),{sync:i.sync,initial:!0});return p=(0,o.hA)((()=>{f.remove(),c()})),p}function d(t,e){return function(t,e,r){if((0,i.G4)(r))return Promise.reject((0,i.NK)());const n=t();if(e?.(n))return Promise.resolve(n);let a=null;function l(){a=(0,s.xt)(a)}return new Promise(((n,s)=>{a=(0,o.vE)([(0,i.u7)(r,(()=>{l(),s((0,i.NK)())})),p(t,(t=>{l(),n(t)}),{sync:!1,once:!0},e??f)])}))}(t,h,e)}function f(t){return!0}function h(t){return!!t}r(80559);const y={sync:!0},m={initial:!0},g={sync:!0,initial:!0}},38954:(t,e,r)=>{r.d(e,{A:()=>h,B:()=>f,C:()=>p,D:()=>y,E:()=>c,G:()=>N,I:()=>U,a:()=>R,b:()=>g,c:()=>i,d:()=>u,e:()=>S,f:()=>A,g:()=>l,h:()=>m,i:()=>a,j:()=>v,k:()=>M,l:()=>s,m:()=>O,n:()=>x,o:()=>j,p:()=>I,q:()=>T,s:()=>b,t:()=>E,u:()=>_,v:()=>w,w:()=>C,x:()=>d,y:()=>B,z:()=>$});var n=r(51850),o=r(34304);function s(t){const e=t[0],r=t[1],n=t[2];return Math.sqrt(e*e+r*r+n*n)}function i(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function a(t,e,r,n){return t[0]=e,t[1]=r,t[2]=n,t}function l(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t}function u(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t}function p(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t}function c(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t}function d(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function f(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function h(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t}function y(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t}function m(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t}function g(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t}function v(t,e){const r=e[0]-t[0],n=e[1]-t[1],o=e[2]-t[2];return Math.sqrt(r*r+n*n+o*o)}function b(t,e){const r=e[0]-t[0],n=e[1]-t[1],o=e[2]-t[2];return r*r+n*n+o*o}function M(t){const e=t[0],r=t[1],n=t[2];return e*e+r*r+n*n}function w(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function _(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function x(t,e){const r=e[0],n=e[1],o=e[2];let s=r*r+n*n+o*o;return s>0&&(s=1/Math.sqrt(s),t[0]=e[0]*s,t[1]=e[1]*s,t[2]=e[2]*s),t}function A(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function S(t,e,r){const n=e[0],o=e[1],s=e[2],i=r[0],a=r[1],l=r[2];return t[0]=o*l-s*a,t[1]=s*i-n*l,t[2]=n*a-o*i,t}function O(t,e,r,n){const o=e[0],s=e[1],i=e[2];return t[0]=o+n*(r[0]-o),t[1]=s+n*(r[1]-s),t[2]=i+n*(r[2]-i),t}function E(t,e,r){const n=e[0],o=e[1],s=e[2];return t[0]=r[0]*n+r[4]*o+r[8]*s+r[12],t[1]=r[1]*n+r[5]*o+r[9]*s+r[13],t[2]=r[2]*n+r[6]*o+r[10]*s+r[14],t}function T(t,e,r){const n=e[0],o=e[1],s=e[2];return t[0]=n*r[0]+o*r[3]+s*r[6],t[1]=n*r[1]+o*r[4]+s*r[7],t[2]=n*r[2]+o*r[5]+s*r[8],t}function C(t,e,r){const n=r[0],o=r[1],s=r[2],i=r[3],a=e[0],l=e[1],u=e[2],p=o*u-s*l,c=s*a-n*u,d=n*l-o*a,f=o*d-s*c,h=s*p-n*d,y=n*c-o*p,m=2*i;return t[0]=a+p*m+2*f,t[1]=l+c*m+2*h,t[2]=u+d*m+2*y,t}const Z=(0,n.vt)(),F=(0,n.vt)();function I(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function j(t,e,r){const n=r[0]-e[0],o=r[1]-e[1],s=r[2]-e[2];let i=n*n+o*o+s*s;return i>0?(i=1/Math.sqrt(i),t[0]=n*i,t[1]=o*i,t[2]=s*i,t):(t[0]=0,t[1]=0,t[2]=0,t)}const R=u,D=p,P=c,N=v,B=b,U=s,$=M;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:l,angle:function(t,e){x(Z,t),x(F,e);const r=A(Z,F);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(t,e,r,n,o,s){const i=1-s,a=i*i,l=s*s,u=a*i,p=3*s*a,c=3*l*i,d=l*s;return t[0]=e[0]*u+r[0]*p+n[0]*c+o[0]*d,t[1]=e[1]*u+r[1]*p+n[1]*c+o[1]*d,t[2]=e[2]*u+r[2]*p+n[2]*c+o[2]*d,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,r=1){return t[0]=Math.min(Math.max(t[0],e),r),t[1]=Math.min(Math.max(t[1],e),r),t[2]=Math.min(Math.max(t[2],e),r),t},copy:i,cross:S,crossAndNormalize:function(t,e,r){const n=e[0],o=e[1],s=e[2],i=r[0],a=r[1],l=r[2],u=o*l-s*a,p=s*i-n*l,c=n*a-o*i,d=Math.sqrt(u*u+p*p+c*c);return t[0]=u/d,t[1]=p/d,t[2]=c/d,t},direction:j,dist:N,distance:v,div:P,divide:c,dot:A,equals:function(t,e){if(t===e)return!0;const r=t[0],n=t[1],s=t[2],i=e[0],a=e[1],l=e[2],u=(0,o.FD)();return Math.abs(r-i)<=u*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(n-a)<=u*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(s-l)<=u*Math.max(1,Math.abs(s),Math.abs(l))},exactEquals:I,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,r,n,o,s){const i=s*s,a=i*(2*s-3)+1,l=i*(s-2)+s,u=i*(s-1),p=i*(3-2*s);return t[0]=e[0]*a+r[0]*l+n[0]*u+o[0]*p,t[1]=e[1]*a+r[1]*l+n[1]*u+o[1]*p,t[2]=e[2]*a+r[2]*l+n[2]*u+o[2]*p,t},inverse:_,len:U,length:s,lerp:O,max:y,min:h,mul:D,multiply:p,negate:w,normalize:x,random:function(t,e=1){const r=o.Ov,n=2*r()*Math.PI,s=2*r()-1,i=Math.sqrt(1-s*s)*e;return t[0]=Math.cos(n)*i,t[1]=Math.sin(n)*i,t[2]=s*e,t},rotateX:function(t,e,r,n){const o=[],s=[];return o[0]=e[0]-r[0],o[1]=e[1]-r[1],o[2]=e[2]-r[2],s[0]=o[0],s[1]=o[1]*Math.cos(n)-o[2]*Math.sin(n),s[2]=o[1]*Math.sin(n)+o[2]*Math.cos(n),t[0]=s[0]+r[0],t[1]=s[1]+r[1],t[2]=s[2]+r[2],t},rotateY:function(t,e,r,n){const o=[],s=[];return o[0]=e[0]-r[0],o[1]=e[1]-r[1],o[2]=e[2]-r[2],s[0]=o[2]*Math.sin(n)+o[0]*Math.cos(n),s[1]=o[1],s[2]=o[2]*Math.cos(n)-o[0]*Math.sin(n),t[0]=s[0]+r[0],t[1]=s[1]+r[1],t[2]=s[2]+r[2],t},rotateZ:function(t,e,r,n){const o=[],s=[];return o[0]=e[0]-r[0],o[1]=e[1]-r[1],o[2]=e[2]-r[2],s[0]=o[0]*Math.cos(n)-o[1]*Math.sin(n),s[1]=o[0]*Math.sin(n)+o[1]*Math.cos(n),s[2]=o[2],t[0]=s[0]+r[0],t[1]=s[1]+r[1],t[2]=s[2]+r[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:m,scaleAndAdd:g,set:a,sign:f,sqrDist:B,sqrLen:$,squaredDistance:b,squaredLength:M,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:R,subtract:u,transformMat3:T,transformMat4:E,transformQuat:C},Symbol.toStringTag,{value:"Module"}))},63074:(t,e,r)=>{r.d(e,{LF:()=>p,dM:()=>c,sU:()=>l});var n=r(90237),o=r(10107),s=(r(44208),r(53966),r(87811),r(40608)),i=r(89317),a=r(76369);const l={type:["average","color-burn","color-dodge","color","darken","destination-atop","destination-in","destination-out","destination-over","difference","exclusion","hard-light","hue","invert","lighten","lighter","luminosity","minus","multiply","normal","overlay","plus","reflect","saturation","screen","soft-light","source-atop","source-in","source-out","vivid-light","xor"],nonNullable:!0,json:{read:!1,write:!1,origins:{"web-map":{read:!0,write:{layerContainerTypes:i.K}},"portal-item":{read:!0,write:{layerContainerTypes:i.K}}}}},u={read:{reader:a.LF},write:{allowNull:!0,writer:a.M9,layerContainerTypes:i.K}},p={json:{read:!1,write:!1,origins:{"web-map":u,"portal-item":u}}},c=t=>{let e=class extends t{constructor(){super(...arguments),this.blendMode="normal",this.effect=null}};return(0,n._)([(0,o.MZ)(l)],e.prototype,"blendMode",void 0),(0,n._)([(0,o.MZ)(p)],e.prototype,"effect",void 0),e=(0,n._)([(0,s.$)("esri.layers.mixins.BlendLayer")],e),e}},69208:(t,e,r)=>{r.d(e,{d:()=>i});var n=r(90237),o=r(10107),s=(r(44208),r(53966),r(87811),r(40608));const i=t=>{let e=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,n._)([(0,o.MZ)({type:Object,json:{write:{overridePolicy:t=>({enabled:!!(t&&Object.keys(t).length>0)})}}})],e.prototype,"customParameters",void 0),e=(0,n._)([(0,s.$)("esri.layers.mixins.CustomParametersMixin")],e),e}},69540:(t,e,r)=>{r.d(e,{A:()=>d});var n=r(90237),o=r(69622),s=(r(44208),r(4718)),i=(r(53966),r(97768)),a=r(35666),l=r(88620),u=r(40608);const p=t=>{let e=class extends t{clone(){const t=(0,l.oY)(this);(0,i.Lw)(t,"unable to clone instance of non-accessor class");const e=t.metadata,r=t.store,n={},o=new Map;for(const t in e){const i=e[t],l=r?.originOf(t),u=i.clonable;if(i.readOnly||!1===u||l!==a.Gr.USER&&l!==a.Gr.DEFAULTS&&l!==a.Gr.WEB_MAP&&l!==a.Gr.WEB_SCENE)continue;const p=this[t];let c=null;c="function"==typeof u?u(p):"reference"===u?p:(0,s.TU)(p),null!=p&&null==c||(l===a.Gr.DEFAULTS?o.set(t,c):n[t]=c)}const u=new(0,Object.getPrototypeOf(this).constructor)(n);if(o.size){const t=(0,l.oY)(u)?.store;if(t)for(const[e,r]of o)t.set(e,r,a.Gr.DEFAULTS)}return u}};return e=(0,n._)([(0,u.$)("esri.core.Clonable")],e),e};let c=class extends(p(o.A)){};c=(0,n._)([(0,u.$)("esri.core.Clonable")],c),(c||(c={})).ClonableMixin=p;const d=c},76369:(t,e,r)=>{r.d(e,{LF:()=>x,M9:()=>A});var n=r(49186),o=r(93637),s=r(40876),i=r(59247),a=r(27865);function l(t,e,r,n){var o=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(o,l.prototype),o.expected=e,o.found=r,o.location=n,o.name="SyntaxError",o}function u(t,e,r){return r=r||" ",t.length>e?t:(e-=t.length,t+(r+=r.repeat(e)).slice(0,e))}function p(t){if(!t||0===t.length)return null;if("string"==typeof t){const e=c(t);return e&&0!==e.length?e:null}const e=t.map((t=>{if(!Number.isFinite(t.scale)||t.scale<=0)throw new n.A("effect:invalid-scale","scale must be finite and greater than 0",{stop:t});return{scale:t.scale,effects:c(t.value)}}));e.sort(((t,e)=>e.effects.length-t.effects.length));for(let t=0;t<e.length-1;t++){if(!(0,a.mj)(e[t].effects,e[t+1].effects))throw new n.A("effect:interpolation-impossible","Cannot interpolate by scale between 2 lists of mixed effects",{a:e[t].effects,b:e[t+1].effects});(0,a.O9)(e[t].effects,e[t+1].effects)}return e.sort(((t,e)=>e.scale-t.scale)),e}function c(t){let e;if(!t)return[];try{e=function(t,e){var r,n={},o=(e=void 0!==e?e:{}).grammarSource,s={start:zt},i=zt,a="none",u=")",p=",",c="(",d="%",f="px",h="cm",y="mm",m="in",g="pt",v="pc",b="deg",M="rad",w="grad",_="turn",x="#",A=".",S="e",O=/^[ \t\n\r]/,E=/^[a-z\-]/,T=/^[0-9a-fA-F]/,C=/^[+\-]/,Z=/^[0-9]/,F=qt("none"),I=Ut("none",!1),j=Ut(")",!1),R=Ut(",",!1),D=qt("whitespace"),P=$t([" ","\t","\n","\r"],!1,!1),N=qt("function"),B=Ut("(",!1),U=qt("identifier"),$=$t([["a","z"],"-"],!1,!1),q=qt("percentage"),L=Ut("%",!1),Q=qt("length"),k=Ut("px",!1),z=Ut("cm",!1),G=Ut("mm",!1),V=Ut("in",!1),W=Ut("pt",!1),J=Ut("pc",!1),K=qt("angle"),H=Ut("deg",!1),Y=Ut("rad",!1),X=Ut("grad",!1),tt=Ut("turn",!1),et=qt("number"),rt=qt("color"),nt=Ut("#",!1),ot=$t([["0","9"],["a","f"],["A","F"]],!1,!1),st=$t(["+","-"],!1,!1),it=$t([["0","9"]],!1,!1),at=Ut(".",!1),lt=Ut("e",!1),ut=function(){return[]},pt=function(t,e){return{type:"function",name:t,parameters:e||[]}},ct=function(t,e){return e.length>0?function(t,e){return[t].concat(function(t){return t.map((function(t){return t[3]}))}(e))}(t,e):[t]},dt=function(t){return{type:"quantity",value:t.value,unit:t.unit}},ft=function(t){return{type:"color",colorType:t.type,value:t.value}},ht=function(t){return t},yt=function(){return Bt()},mt=function(t){return{value:t,unit:"%"}},gt=function(t){return{value:t,unit:"px"}},vt=function(t){return{value:t,unit:"cm"}},bt=function(t){return{value:t,unit:"mm"}},Mt=function(t){return{value:t,unit:"in"}},wt=function(t){return{value:t,unit:"pt"}},_t=function(t){return{value:t,unit:"pc"}},xt=function(t){return{value:t,unit:"deg"}},At=function(t){return{value:t,unit:"rad"}},St=function(t){return{value:t,unit:"grad"}},Ot=function(t){return{value:t,unit:"turn"}},Et=function(t){return{value:t,unit:null}},Tt=function(){return{type:"hex",value:Bt()}},Ct=function(t){return{type:"function",value:t}},Zt=function(){return{type:"named",value:Bt()}},Ft=function(){return parseFloat(Bt())},It=0|e.peg$currPos,jt=It,Rt=[{line:1,column:1}],Dt=It,Pt=e.peg$maxFailExpected||[],Nt=0|e.peg$silentFails;if(e.startRule){if(!(e.startRule in s))throw new Error("Can't start parsing from rule \""+e.startRule+'".');i=s[e.startRule]}function Bt(){return t.substring(jt,It)}function Ut(t,e){return{type:"literal",text:t,ignoreCase:e}}function $t(t,e,r){return{type:"class",parts:t,inverted:e,ignoreCase:r}}function qt(t){return{type:"other",description:t}}function Lt(e){var r,n=Rt[e];if(n)return n;if(e>=Rt.length)r=Rt.length-1;else for(r=e;!Rt[--r];);for(n={line:(n=Rt[r]).line,column:n.column};r<e;)10===t.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return Rt[e]=n,n}function Qt(t,e,r){var n=Lt(t),s=Lt(e);return{source:o,start:{offset:t,line:n.line,column:n.column},end:{offset:e,line:s.line,column:s.column}}}function kt(t){It<Dt||(It>Dt&&(Dt=It,Pt=[]),Pt.push(t))}function zt(){var t;return(t=Gt())===n&&(t=function(){var t,e;if(t=[],(e=Vt())!==n)for(;e!==n;)t.push(e),e=Vt();else t=n;return t}()),t}function Gt(){var e,r;return Nt++,e=It,Jt(),t.substr(It,4)===a?(r=a,It+=4):(r=n,0===Nt&&kt(I)),r!==n?(Jt(),jt=e,e=ut()):(It=e,e=n),Nt--,e===n&&0===Nt&&kt(F),e}function Vt(){var e,r,o,s;return e=It,Jt(),(r=function(){var e,r,o;return Nt++,e=It,(r=Kt())!==n?(40===t.charCodeAt(It)?(o=c,It++):(o=n,0===Nt&&kt(B)),o!==n?(jt=e,e=ht(r)):(It=e,e=n)):(It=e,e=n),Nt--,e===n&&(r=n,0===Nt&&kt(N)),e}())!==n?(Jt(),(o=function(){var e,r,o,s,i,a,l,u;if(e=It,(r=Wt())!==n){for(o=[],s=It,i=Jt(),44===t.charCodeAt(It)?(a=p,It++):(a=n,0===Nt&&kt(R)),a===n&&(a=null),l=Jt(),(u=Wt())!==n?s=i=[i,a,l,u]:(It=s,s=n);s!==n;)o.push(s),s=It,i=Jt(),44===t.charCodeAt(It)?(a=p,It++):(a=n,0===Nt&&kt(R)),a===n&&(a=null),l=Jt(),(u=Wt())!==n?s=i=[i,a,l,u]:(It=s,s=n);jt=e,e=ct(r,o)}else It=e,e=n;return e}())===n&&(o=null),Jt(),41===t.charCodeAt(It)?(s=u,It++):(s=n,0===Nt&&kt(j)),s!==n?(Jt(),jt=e,e=pt(r,o)):(It=e,e=n)):(It=e,e=n),e}function Wt(){var t,e;return t=It,(e=Ht())===n&&(e=Yt())===n&&(e=Xt())===n&&(e=function(){var t,e;return Nt++,t=It,Jt(),(e=ee())!==n?(jt=t,t=Et(e)):(It=t,t=n),Nt--,t===n&&0===Nt&&kt(et),t}()),e!==n&&(jt=t,e=dt(e)),(t=e)===n&&(t=It,(e=te())!==n&&(jt=t,e=ft(e)),t=e),t}function Jt(){var e,r;for(Nt++,e=[],r=t.charAt(It),O.test(r)?It++:(r=n,0===Nt&&kt(P));r!==n;)e.push(r),r=t.charAt(It),O.test(r)?It++:(r=n,0===Nt&&kt(P));return Nt--,r=n,0===Nt&&kt(D),e}function Kt(){var e,r,o;if(Nt++,e=It,r=[],o=t.charAt(It),E.test(o)?It++:(o=n,0===Nt&&kt($)),o!==n)for(;o!==n;)r.push(o),o=t.charAt(It),E.test(o)?It++:(o=n,0===Nt&&kt($));else r=n;return r!==n&&(jt=e,r=yt()),Nt--,(e=r)===n&&(r=n,0===Nt&&kt(U)),e}function Ht(){var e,r,o;return Nt++,e=It,Jt(),(r=ee())!==n?(37===t.charCodeAt(It)?(o=d,It++):(o=n,0===Nt&&kt(L)),o!==n?(jt=e,e=mt(r)):(It=e,e=n)):(It=e,e=n),Nt--,e===n&&0===Nt&&kt(q),e}function Yt(){var e,r,o;return Nt++,e=It,Jt(),(r=ee())!==n?(t.substr(It,2)===f?(o=f,It+=2):(o=n,0===Nt&&kt(k)),o!==n?(jt=e,e=gt(r)):(It=e,e=n)):(It=e,e=n),e===n&&(e=It,Jt(),(r=ee())!==n?(t.substr(It,2)===h?(o=h,It+=2):(o=n,0===Nt&&kt(z)),o!==n?(jt=e,e=vt(r)):(It=e,e=n)):(It=e,e=n),e===n&&(e=It,Jt(),(r=ee())!==n?(t.substr(It,2)===y?(o=y,It+=2):(o=n,0===Nt&&kt(G)),o!==n?(jt=e,e=bt(r)):(It=e,e=n)):(It=e,e=n),e===n&&(e=It,Jt(),(r=ee())!==n?(t.substr(It,2)===m?(o=m,It+=2):(o=n,0===Nt&&kt(V)),o!==n?(jt=e,e=Mt(r)):(It=e,e=n)):(It=e,e=n),e===n&&(e=It,Jt(),(r=ee())!==n?(t.substr(It,2)===g?(o=g,It+=2):(o=n,0===Nt&&kt(W)),o!==n?(jt=e,e=wt(r)):(It=e,e=n)):(It=e,e=n),e===n&&(e=It,Jt(),(r=ee())!==n?(t.substr(It,2)===v?(o=v,It+=2):(o=n,0===Nt&&kt(J)),o!==n?(jt=e,e=_t(r)):(It=e,e=n)):(It=e,e=n)))))),Nt--,e===n&&0===Nt&&kt(Q),e}function Xt(){var e,r,o;return Nt++,e=It,(r=ee())!==n?(t.substr(It,3)===b?(o=b,It+=3):(o=n,0===Nt&&kt(H)),o!==n?(jt=e,e=xt(r)):(It=e,e=n)):(It=e,e=n),e===n&&(e=It,(r=ee())!==n?(t.substr(It,3)===M?(o=M,It+=3):(o=n,0===Nt&&kt(Y)),o!==n?(jt=e,e=At(r)):(It=e,e=n)):(It=e,e=n),e===n&&(e=It,(r=ee())!==n?(t.substr(It,4)===w?(o=w,It+=4):(o=n,0===Nt&&kt(X)),o!==n?(jt=e,e=St(r)):(It=e,e=n)):(It=e,e=n),e===n&&(e=It,(r=ee())!==n?(t.substr(It,4)===_?(o=_,It+=4):(o=n,0===Nt&&kt(tt)),o!==n?(jt=e,e=Ot(r)):(It=e,e=n)):(It=e,e=n)))),Nt--,e===n&&(r=n,0===Nt&&kt(K)),e}function te(){var e,r,o,s;if(Nt++,e=It,35===t.charCodeAt(It)?(r=x,It++):(r=n,0===Nt&&kt(nt)),r!==n){if(o=[],s=t.charAt(It),T.test(s)?It++:(s=n,0===Nt&&kt(ot)),s!==n)for(;s!==n;)o.push(s),s=t.charAt(It),T.test(s)?It++:(s=n,0===Nt&&kt(ot));else o=n;o!==n?(jt=e,e=Tt()):(It=e,e=n)}else It=e,e=n;return e===n&&(e=It,(r=Vt())!==n&&(jt=e,r=Ct(r)),(e=r)===n&&(e=It,(r=Kt())!==n&&(jt=e,r=Zt()),e=r)),Nt--,e===n&&(r=n,0===Nt&&kt(rt)),e}function ee(){var e,r,o,s,i,a,l,u;for(e=It,r=t.charAt(It),C.test(r)?It++:(r=n,0===Nt&&kt(st)),r===n&&(r=null),o=It,s=[],i=t.charAt(It),Z.test(i)?It++:(i=n,0===Nt&&kt(it));i!==n;)s.push(i),i=t.charAt(It),Z.test(i)?It++:(i=n,0===Nt&&kt(it));if(46===t.charCodeAt(It)?(i=A,It++):(i=n,0===Nt&&kt(at)),i!==n){if(a=[],l=t.charAt(It),Z.test(l)?It++:(l=n,0===Nt&&kt(it)),l!==n)for(;l!==n;)a.push(l),l=t.charAt(It),Z.test(l)?It++:(l=n,0===Nt&&kt(it));else a=n;a!==n?o=s=[s,i,a]:(It=o,o=n)}else It=o,o=n;if(o===n)if(o=[],s=t.charAt(It),Z.test(s)?It++:(s=n,0===Nt&&kt(it)),s!==n)for(;s!==n;)o.push(s),s=t.charAt(It),Z.test(s)?It++:(s=n,0===Nt&&kt(it));else o=n;if(o!==n){if(s=It,101===t.charCodeAt(It)?(i=S,It++):(i=n,0===Nt&&kt(lt)),i!==n){if(a=t.charAt(It),C.test(a)?It++:(a=n,0===Nt&&kt(st)),a===n&&(a=null),l=[],u=t.charAt(It),Z.test(u)?It++:(u=n,0===Nt&&kt(it)),u!==n)for(;u!==n;)l.push(u),u=t.charAt(It),Z.test(u)?It++:(u=n,0===Nt&&kt(it));else l=n;l!==n?s=i=[i,a,l]:(It=s,s=n)}else It=s,s=n;s===n&&(s=null),jt=e,e=Ft()}else It=e,e=n;return e}if(r=i(),e.peg$library)return{peg$result:r,peg$currPos:It,peg$FAILED:n,peg$maxFailExpected:Pt,peg$maxFailPos:Dt};if(r!==n&&It===t.length)return r;throw r!==n&&It<t.length&&kt({type:"end"}),function(t,e,r){return new l(l.buildMessage(t,e),t,e,r)}(Pt,Dt<t.length?t.charAt(Dt):null,Dt<t.length?Qt(Dt,Dt+1):Qt(Dt,Dt))}(t)}catch(e){throw new n.A("effect:invalid-syntax","Invalid effect syntax",{value:t,error:e})}return e.map((t=>function(t){try{switch(t.name){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":return function(t){let e=1;return d(t.parameters,1),1===t.parameters.length&&(e=g(t.parameters[0])),new i.yG(t.name,e)}(t);case"opacity":return function(t){let e=1;return d(t.parameters,1),1===t.parameters.length&&(e=g(t.parameters[0])),new i.jm(e)}(t);case"hue-rotate":return function(t){let e=0;return d(t.parameters,1),1===t.parameters.length&&(e=function(t){return function(t){if("quantity"!==t.type||!(0===t.value&&null===t.unit||t.unit&&null!=y[t.unit]))throw new n.A("effect:type-error",`Expected <angle>, Actual: ${f(t)}`,{term:t})}(t),t.value*y[t.unit]||0}(t.parameters[0])),new i.Nd(e)}(t);case"blur":return function(t){let e=0;return d(t.parameters,1),1===t.parameters.length&&(e=v(t.parameters[0]),h(e,t.parameters[0])),new i.Fk(e)}(t);case"drop-shadow":return function(t){const e=[];let r=null;for(const o of t.parameters)if("color"===o.type){if(e.length&&Object.freeze(e),r)throw new n.A("effect:type-error","Accepts only one color",{});r=b(o)}else{const t=v(o);if(Object.isFrozen(e))throw new n.A("effect:type-error","<length> parameters not consecutive",{lengths:e});e.push(t),3===e.length&&h(t,o)}if(e.length<2||e.length>3)throw new n.A("effect:type-error",`Expected <length>{2,3}, Actual: <length>{${e.length}}`,{lengths:e});return new i.$b(e[0],e[1],e[2]||0,r||M("black"))}(t);case"bloom":return function(t){let e=1,r=0,n=0;return d(t.parameters,3),t.parameters[0]&&(e=g(t.parameters[0])),t.parameters[1]&&(r=v(t.parameters[1]),h(r,t.parameters[1])),t.parameters[2]&&(n=g(t.parameters[2])),new i.bv(e,r,n)}(t)}}catch(e){throw e.details.filter=t,e}throw new n.A("effect:unknown-effect",`Effect '${t.name}' is not supported`,{effect:t})}(t)))}function d(t,e){if(t.length>e)throw new n.A("effect:type-error",`Function supports up to ${e} parameters, Actual: ${t.length}`,{parameters:t})}function f(t){if("color"===t.type)return"<color>";if(t.unit){if(t.unit in m)return"<length>";if(t.unit in y)return"<angle>";if("%"===t.unit)return"<percentage>"}return"<double>"}function h(t,e){if(t<0)throw new n.A("effect:type-error",`Negative values are not allowed, Actual: ${t}`,{term:e})}(function(t,e){function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r})(l,Error),l.prototype.format=function(t){var e="Error: "+this.message;if(this.location){var r,n=null;for(r=0;r<t.length;r++)if(t[r].source===this.location.source){n=t[r].text.split(/\r\n|\n|\r/g);break}var o=this.location.start,s=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(o):o,i=this.location.source+":"+s.line+":"+s.column;if(n){var a=this.location.end,l=u("",s.line.toString().length," "),p=n[o.line-1],c=(o.line===a.line?a.column:p.length+1)-o.column||1;e+="\n --\x3e "+i+"\n"+l+" |\n"+s.line+" | "+p+"\n"+l+" | "+u("",o.column-1," ")+u("",c,"^")}else e+="\n at "+i}return e},l.buildMessage=function(t,e){var r={literal:function(t){return'"'+o(t.text)+'"'},class:function(t){var e=t.parts.map((function(t){return Array.isArray(t)?s(t[0])+"-"+s(t[1]):s(t)}));return"["+(t.inverted?"^":"")+e.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(t){return t.description}};function n(t){return t.charCodeAt(0).toString(16).toUpperCase()}function o(t){return t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+n(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+n(t)}))}function s(t){return t.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+n(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+n(t)}))}function i(t){return r[t.type](t)}return"Expected "+function(t){var e,r,n=t.map(i);if(n.sort(),n.length>0){for(e=1,r=1;e<n.length;e++)n[e-1]!==n[e]&&(n[r]=n[e],r++);n.length=r}switch(n.length){case 1:return n[0];case 2:return n[0]+" or "+n[1];default:return n.slice(0,-1).join(", ")+", or "+n[n.length-1]}}(t)+" but "+function(t){return t?'"'+o(t)+'"':"end of input"}(e)+" found."};const y={deg:1,grad:.9,rad:180/Math.PI,turn:360},m={px:1,cm:96/2.54,mm:96/2.54/10,in:96,pc:16,pt:96/72};function g(t){!function(t){if("quantity"!==t.type||null!==t.unit&&"%"!==t.unit)throw new n.A("effect:type-error",`Expected <double> or <percentage>, Actual: ${f(t)}`,{term:t})}(t);const e=t.value;return h(e,t),"%"===t.unit?.01*e:e}function v(t){return function(t){if("quantity"!==t.type||!(0===t.value&&null===t.unit||t.unit&&null!=m[t.unit]))throw new n.A("effect:type-error",`Expected <length>, Actual: ${f(t)}`,{term:t})}(t),t.value*m[t.unit]||0}function b(t){switch(t.colorType){case"hex":return(0,s.qh)(t.value);case"named":return M(t.value);case"function":return function(t){if(d(t.parameters,4),w.test(t.name))return[g(t.parameters[0]),g(t.parameters[1]),g(t.parameters[2]),t.parameters[3]?g(t.parameters[3]):1];if(_.test(t.name))return(0,s.z$)(function(t){return function(t){if("quantity"!==t.type||null!==t.unit)throw new n.A("effect:type-error",`Expected <double>, Actual: ${f(t)}`,{term:t})}(t),h(t.value,t),t.value}(t.parameters[0]),g(t.parameters[1]),g(t.parameters[2]),t.parameters[3]?g(t.parameters[3]):1);throw new n.A("effect:syntax-error",`Invalid color function '${t.name}'`,{colorFunction:t})}(t.value)}}function M(t){if(!(0,s.V6)(t))throw new n.A("effect:unknown-color",`color '${t}' isn't valid`,{namedColor:t});return(0,s.c4)(t)}const w=/^rgba?/i,_=/^hsla?/i;function x(t,e,r){try{return function(t){if(!t||0===t.length)return null;if(function(t){const e=t[0];return!!e&&"scale"in e}(t)){const e=[];for(const r of t)e.push({scale:r.scale,value:S(r.value)});return e}return S(t)}(t)}catch(t){r?.messages?.push(t)}return null}function A(t,e,r,n){try{const n=function(t){const e=p(t);return e?(0,a.dw)(e)?e.map((t=>t.toJSON())):e.map((({scale:t,effects:e})=>({scale:t,value:e.map((t=>t.toJSON()))}))):null}(t);(0,o.sM)(r,n,e)}catch(t){n.messages&&n.messages.push(t)}}function S(t){if(!t?.length)return"";const e=[];for(const r of t){let t=[];switch(r.type){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":case"opacity":t=[O(r,"amount")];break;case"blur":t=[O(r,"radius","pt")];break;case"hue-rotate":t=[O(r,"angle","deg")];break;case"drop-shadow":t=[O(r,"xoffset","pt"),O(r,"yoffset","pt"),O(r,"blurRadius","pt"),E(r,"color")];break;case"bloom":t=[O(r,"strength"),O(r,"radius","pt"),O(r,"threshold")]}const n=`${r.type}(${t.filter(Boolean).join(" ")})`;p(n),e.push(n)}return e.join(" ")}function O(t,e,r){if(null==t[e])throw new n.A("effect:missing-parameter",`Missing parameter '${e}' in ${t.type} effect`,{effect:t});return r?t[e]+r:""+t[e]}function E(t,e){if(null==t[e])throw new n.A("effect:missing-parameter",`Missing parameter '${e}' in ${t.type} effect`,{effect:t});const r=t[e];return`rgba(${r[0]||0}, ${r[1]||0}, ${r[2]||0}, ${r[3]/255||0})`}},77690:(t,e,r)=>{r.d(e,{B8:()=>a,Ge:()=>d,I0:()=>c,KC:()=>l,hZ:()=>s,hs:()=>p,lw:()=>u,mg:()=>i,z0:()=>o});var n=r(34304);function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function s(t,e,r,n,o,s,i,a,l,u){return t[0]=e,t[1]=r,t[2]=n,t[3]=o,t[4]=s,t[5]=i,t[6]=a,t[7]=l,t[8]=u,t}function i(t,e){if(t===e){const r=e[1],n=e[2],o=e[5];t[1]=e[3],t[2]=e[6],t[3]=r,t[5]=e[7],t[6]=n,t[7]=o}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function a(t,e){const r=e[0],n=e[1],o=e[2],s=e[3],i=e[4],a=e[5],l=e[6],u=e[7],p=e[8],c=p*i-a*u,d=-p*s+a*l,f=u*s-i*l;let h=r*c+n*d+o*f;return h?(h=1/h,t[0]=c*h,t[1]=(-p*n+o*u)*h,t[2]=(a*n-o*i)*h,t[3]=d*h,t[4]=(p*r-o*l)*h,t[5]=(-a*r+o*s)*h,t[6]=f*h,t[7]=(-u*r+n*l)*h,t[8]=(i*r-n*s)*h,t):null}function l(t,e){const r=e[0],n=e[1],o=e[2],s=e[3],i=e[4],a=e[5],l=e[6],u=e[7],p=e[8];return t[0]=i*p-a*u,t[1]=o*u-n*p,t[2]=n*a-o*i,t[3]=a*l-s*p,t[4]=r*p-o*l,t[5]=o*s-r*a,t[6]=s*u-i*l,t[7]=n*l-r*u,t[8]=r*i-n*s,t}function u(t,e,r){const n=e[0],o=e[1],s=e[2],i=e[3],a=e[4],l=e[5],u=e[6],p=e[7],c=e[8],d=r[0],f=r[1],h=r[2],y=r[3],m=r[4],g=r[5],v=r[6],b=r[7],M=r[8];return t[0]=d*n+f*i+h*u,t[1]=d*o+f*a+h*p,t[2]=d*s+f*l+h*c,t[3]=y*n+m*i+g*u,t[4]=y*o+m*a+g*p,t[5]=y*s+m*l+g*c,t[6]=v*n+b*i+M*u,t[7]=v*o+b*a+M*p,t[8]=v*s+b*l+M*c,t}function p(t,e,r){const n=r[0],o=r[1],s=r[2];return t[0]=n*e[0],t[1]=n*e[1],t[2]=n*e[2],t[3]=o*e[3],t[4]=o*e[4],t[5]=o*e[5],t[6]=s*e[6],t[7]=s*e[7],t[8]=s*e[8],t}function c(t,e){const r=e[0],n=e[1],o=e[2],s=e[3],i=r+r,a=n+n,l=o+o,u=r*i,p=n*i,c=n*a,d=o*i,f=o*a,h=o*l,y=s*i,m=s*a,g=s*l;return t[0]=1-c-h,t[3]=p-g,t[6]=d+m,t[1]=p+g,t[4]=1-u-h,t[7]=f-y,t[2]=d-m,t[5]=f+y,t[8]=1-u-c,t}function d(t,e){const r=e[0],n=e[1],o=e[2],s=e[3],i=e[4],a=e[5],l=e[6],u=e[7],p=e[8],c=e[9],d=e[10],f=e[11],h=e[12],y=e[13],m=e[14],g=e[15],v=r*a-n*i,b=r*l-o*i,M=r*u-s*i,w=n*l-o*a,_=n*u-s*a,x=o*u-s*l,A=p*y-c*h,S=p*m-d*h,O=p*g-f*h,E=c*m-d*y,T=c*g-f*y,C=d*g-f*m;let Z=v*C-b*T+M*E+w*O-_*S+x*A;return Z?(Z=1/Z,t[0]=(a*C-l*T+u*E)*Z,t[1]=(l*O-i*C-u*S)*Z,t[2]=(i*T-a*O+u*A)*Z,t[3]=(o*T-n*C-s*E)*Z,t[4]=(r*C-o*O+s*S)*Z,t[5]=(n*O-r*T-s*A)*Z,t[6]=(y*x-m*_+g*w)*Z,t[7]=(m*M-h*x-g*b)*Z,t[8]=(h*_-y*M+g*v)*Z,t):null}function f(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t[4]=e[4]-r[4],t[5]=e[5]-r[5],t[6]=e[6]-r[6],t[7]=e[7]-r[7],t[8]=e[8]-r[8],t}const h=u,y=f;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t[4]=e[4]+r[4],t[5]=e[5]+r[5],t[6]=e[6]+r[6],t[7]=e[7]+r[7],t[8]=e[8]+r[8],t},adjoint:l,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[6]=e[6],t[7]=e[7],t[8]=e[8],t},determinant:function(t){const e=t[0],r=t[1],n=t[2],o=t[3],s=t[4],i=t[5],a=t[6],l=t[7],u=t[8];return e*(u*s-i*l)+r*(-u*o+i*a)+n*(l*o-s*a)},equals:function(t,e){const r=t[0],o=t[1],s=t[2],i=t[3],a=t[4],l=t[5],u=t[6],p=t[7],c=t[8],d=e[0],f=e[1],h=e[2],y=e[3],m=e[4],g=e[5],v=e[6],b=e[7],M=e[8],w=(0,n.FD)();return Math.abs(r-d)<=w*Math.max(1,Math.abs(r),Math.abs(d))&&Math.abs(o-f)<=w*Math.max(1,Math.abs(o),Math.abs(f))&&Math.abs(s-h)<=w*Math.max(1,Math.abs(s),Math.abs(h))&&Math.abs(i-y)<=w*Math.max(1,Math.abs(i),Math.abs(y))&&Math.abs(a-m)<=w*Math.max(1,Math.abs(a),Math.abs(m))&&Math.abs(l-g)<=w*Math.max(1,Math.abs(l),Math.abs(g))&&Math.abs(u-v)<=w*Math.max(1,Math.abs(u),Math.abs(v))&&Math.abs(p-b)<=w*Math.max(1,Math.abs(p),Math.abs(b))&&Math.abs(c-M)<=w*Math.max(1,Math.abs(c),Math.abs(M))},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]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},fromMat4:o,fromQuat:c,fromRotation:function(t,e){const r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=-r,t[4]=n,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:a,isOrthoNormal:function(t){const e=(0,n.FD)(),r=t[0],o=t[1],s=t[2],i=t[3],a=t[4],l=t[5],u=t[6],p=t[7],c=t[8];return Math.abs(1-(r*r+i*i+u*u))<=e&&Math.abs(1-(o*o+a*a+p*p))<=e&&Math.abs(1-(s*s+l*l+c*c))<=e},mul:h,multiply:u,multiplyScalar:function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*r,t[5]=e[5]*r,t[6]=e[6]*r,t[7]=e[7]*r,t[8]=e[8]*r,t},multiplyScalarAndAdd:function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t[4]=e[4]+r[4]*n,t[5]=e[5]+r[5]*n,t[6]=e[6]+r[6]*n,t[7]=e[7]+r[7]*n,t[8]=e[8]+r[8]*n,t},normalFromMat4:d,normalFromMat4Legacy:function(t,e){const r=e[0],n=e[1],o=e[2],s=e[4],i=e[5],a=e[6],l=e[8],u=e[9],p=e[10],c=p*i-a*u,d=-p*s+a*l,f=u*s-i*l,h=r*c+n*d+o*f;if(!h)return null;const y=1/h;return t[0]=c*y,t[1]=(-p*n+o*u)*y,t[2]=(a*n-o*i)*y,t[3]=d*y,t[4]=(p*r-o*l)*y,t[5]=(-a*r+o*s)*y,t[6]=f*y,t[7]=(-u*r+n*l)*y,t[8]=(i*r-n*s)*y,t},projection:function(t,e,r){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/r,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,e,r){const n=e[0],o=e[1],s=e[2],i=e[3],a=e[4],l=e[5],u=e[6],p=e[7],c=e[8],d=Math.sin(r),f=Math.cos(r);return t[0]=f*n+d*i,t[1]=f*o+d*a,t[2]=f*s+d*l,t[3]=f*i-d*n,t[4]=f*a-d*o,t[5]=f*l-d*s,t[6]=u,t[7]=p,t[8]=c,t},scale:p,scaleByVec2:function(t,e,r){const n=r[0],o=r[1];return t[0]=n*e[0],t[1]=n*e[1],t[2]=n*e[2],t[3]=o*e[3],t[4]=o*e[4],t[5]=o*e[5],t},set:s,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:y,subtract:f,translate:function(t,e,r){const n=e[0],o=e[1],s=e[2],i=e[3],a=e[4],l=e[5],u=e[6],p=e[7],c=e[8],d=r[0],f=r[1];return t[0]=n,t[1]=o,t[2]=s,t[3]=i,t[4]=a,t[5]=l,t[6]=d*n+f*i+u,t[7]=d*o+f*a+p,t[8]=d*s+f*l+c,t},transpose:i},Symbol.toStringTag,{value:"Module"}))},78553:(t,e,r)=>{r.d(e,{D:()=>s,p:()=>o});var n=r(56507);function o(t){const e=(0,n.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function s(t){const e=1-t/100;return Math.max(0,Math.min(e,1))}},79677:(t,e,r)=>{r.d(e,{A:()=>f});var n,o=r(90237),s=r(25482),i=r(88930),a=r(10107),l=(r(44208),r(53966),r(87811),r(36005)),u=r(40608),p=r(43937),c=r(98623);let d=class extends s.A{static{n=this}static get allTime(){return h}static get empty(){return y}static fromArray(t){return new n({start:null!=t[0]?new Date(t[0]):t[0],end:null!=t[1]?new Date(t[1]):t[1]})}constructor(t){super(t),this.end=null,this.start=null}readEnd(t,e){return null!=e.end?new Date(e.end):null}writeEnd(t,e){e.end=t?.getTime()??null}get isAllTime(){return this.equals(n.allTime)}get isEmpty(){return this.equals(n.empty)}readStart(t,e){return null!=e.start?new Date(e.start):null}writeStart(t,e){e.start=t?.getTime()??null}clone(){return new n({end:this.end,start:this.start})}equals(t){if(!t)return!1;const e=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,n=t.start?.getTime()??t.start,o=t.end?.getTime()??t.end;return e===n&&r===o}expandTo(t,e=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,i.lL)(r,t,e));let o=this.end;if(o){const r=(0,i.lL)(o,t,e);o=o.getTime()===r.getTime()?r:(0,i.S1)(r,1,t,e)}return new n({start:r,end:o})}intersection(t){if(!t)return this.clone();if(this.isEmpty||t.isEmpty)return n.empty;if(this.isAllTime)return t.clone();if(t.isAllTime)return this.clone();const e=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,o=t.start?.getTime()??-1/0,s=t.end?.getTime()??1/0;let i,a;return o>=e&&o<=r?i=o:e>=o&&e<=s&&(i=e),r>=o&&r<=s?a=r:s>=e&&s<=r&&(a=s),null==i||null==a||isNaN(i)||isNaN(a)?n.empty:new n({start:i===-1/0?null:new Date(i),end:a===1/0?null:new Date(a)})}offset(t,e,r=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();const o=new n,{start:s,end:a}=this;return null!=s&&(o.start=(0,i.S1)(s,t,e,r)),null!=a&&(o.end=(0,i.S1)(a,t,e,r)),o}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(t){if(!t||t.isEmpty)return this.clone();if(this.isEmpty)return t.clone();if(this.isAllTime||t.isAllTime)return h.clone();const e=null!=this.start&&null!=t.start?new Date(Math.min(this.start.getTime(),t.start.getTime())):null,r=null!=this.end&&null!=t.end?new Date(Math.max(this.end.getTime(),t.end.getTime())):null;return new n({start:e,end:r})}};(0,o._)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"end",void 0),(0,o._)([(0,l.w)("end")],d.prototype,"readEnd",null),(0,o._)([(0,p.K)("end")],d.prototype,"writeEnd",null),(0,o._)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isAllTime",null),(0,o._)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isEmpty",null),(0,o._)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"start",void 0),(0,o._)([(0,l.w)("start")],d.prototype,"readStart",null),(0,o._)([(0,p.K)("start")],d.prototype,"writeStart",null),d=n=(0,o._)([(0,u.$)("esri.time.TimeExtent")],d);const f=d,h=new d,y=new d({start:void 0,end:void 0})},85360:(t,e,r)=>{r.d(e,{A:()=>j});var n=r(90237),o=r(25482),s=r(4718),i=r(10107),a=r(79901),l=r(36005),u=r(40608),p=r(43937);r(44208),r(53966),r(87811);let c=class extends o.A{constructor(t){super(t),this.description=null,this.label=null,this.type=null}};(0,n._)([(0,i.MZ)({type:String,json:{write:!0}})],c.prototype,"description",void 0),(0,n._)([(0,i.MZ)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,n._)([(0,i.MZ)()],c.prototype,"type",void 0),c=(0,n._)([(0,u.$)("esri.tables.elements.AttributeTableElement")],c);const d=c;var f;let h=f=class extends d{constructor(t){super(t),this.displayType="auto",this.type="attachment"}clone(){return new f({description:this.description,displayType:this.displayType,label:this.label})}};(0,n._)([(0,i.MZ)({type:["auto"],json:{write:!0}})],h.prototype,"displayType",void 0),(0,n._)([(0,i.MZ)({type:["attachment"],readOnly:!0,json:{read:!1,write:!0}})],h.prototype,"type",void 0),h=f=(0,n._)([(0,u.$)("esri.tables.elements.AttributeTableAttachmentElement")],h);const y=h;var m;let g=m=class extends d{constructor(t){super(t),this.fieldName=null,this.type="field"}clone(){return new m({description:this.description,fieldName:this.fieldName,label:this.label})}};(0,n._)([(0,i.MZ)({type:String,json:{write:!0}})],g.prototype,"fieldName",void 0),(0,n._)([(0,i.MZ)({type:String,json:{read:!1,write:!0}})],g.prototype,"type",void 0),g=m=(0,n._)([(0,u.$)("esri.tables.elements.AttributeTableFieldElement")],g);const v=g;var b,M=r(56507);let w=b=class extends d{constructor(t){super(t),this.relationshipId=null,this.type="relationship"}clone(){return new b({description:this.description,label:this.label,relationshipId:this.relationshipId})}};(0,n._)([(0,i.MZ)({type:Number,json:{write:!0}})],w.prototype,"relationshipId",void 0),(0,n._)([(0,i.MZ)({type:["relationship"],json:{read:!1,write:!0}})],w.prototype,"type",void 0),w=b=(0,n._)([(0,u.$)("esri.tables.elements.AttributeTableRelationshipElement")],w);const _=w;function x(t){return{typesWithGroup:{base:d,key:"type",typeMap:{attachment:y,field:v,group:t,relationship:_}},typesWithoutGroup:{base:d,key:"type",typeMap:{attachment:y,field:v,relationship:_}}}}function A(t,e,r=!0){if(!t)return null;const n=r?e.typesWithGroup.typeMap:e.typesWithoutGroup.typeMap;return t.filter((t=>n[t.type])).map((t=>n[t.type].fromJSON(t)))}function S(t,e,r=!0){if(!t)return null;const n=r?e.typesWithGroup.typeMap:e.typesWithoutGroup.typeMap;return t.filter((t=>n[t.type])).map((t=>t.toJSON()))}function O(t,e,r=!0){return t?t.map((t=>(0,M.aq)(r?e.typesWithGroup:e.typesWithoutGroup,t))):null}var E;let T=E=class extends d{constructor(t){super(t),this.elements=null,this.type="group"}castElements(t){return O(t,C,!1)}readElements(t,e){return A(e.attributeTableElements,C,!1)}writeElements(t,e){e.attributeTableElements=S(t,C,!1)}clone(){return new E({description:this.description,elements:(0,s.o8)(this.elements),label:this.label})}};(0,n._)([(0,i.MZ)({json:{write:!0}})],T.prototype,"elements",void 0),(0,n._)([(0,a.w)("elements")],T.prototype,"castElements",null),(0,n._)([(0,l.w)("elements",["attributeTableElements"])],T.prototype,"readElements",null),(0,n._)([(0,p.K)("elements")],T.prototype,"writeElements",null),(0,n._)([(0,i.MZ)({type:String,json:{read:!1,write:!0}})],T.prototype,"type",void 0),T=E=(0,n._)([(0,u.$)("esri.tables.elements.AttributeTableGroupElement")],T);const C=x(T);var Z;const F=x(T);let I=Z=class extends o.A{constructor(t){super(t),this.elements=null,this.orderByFields=null}castElements(t){return O(t,F)}readElements(t,e){return A(e.attributeTableElements,F)}writeElements(t,e){e.attributeTableElements=S(t,F)}clone(){return new Z({elements:(0,s.o8)(this.elements),orderByFields:this.orderByFields})}};(0,n._)([(0,i.MZ)({json:{write:!0}})],I.prototype,"elements",void 0),(0,n._)([(0,a.w)("elements")],I.prototype,"castElements",null),(0,n._)([(0,l.w)("elements",["attributeTableElements"])],I.prototype,"readElements",null),(0,n._)([(0,p.K)("elements")],I.prototype,"writeElements",null),(0,n._)([(0,i.MZ)({type:[Object],json:{write:!0}})],I.prototype,"orderByFields",void 0),I=Z=(0,n._)([(0,u.$)("esri.tables.AttributeTableTemplate")],I);const j=I},88625:(t,e,r)=>{r.d(e,{A:()=>M});var n,o=r(90237),s=r(66552),i=r(25482),a=r(97768),l=r(10107),u=(r(44208),r(53966),r(87811),r(36005)),p=r(40608),c=r(43937),d=r(30524);let f=n=class extends i.A{constructor(t){super(t)}async collectRequiredFields(t,e){return(0,d.Dx)(t,e,this.expression)}clone(){return new n({expression:this.expression,title:this.title})}equals(t){return this.expression===t.expression&&this.title===t.title}};(0,o._)([(0,l.MZ)({type:String,json:{write:{isRequired:!0}}})],f.prototype,"expression",void 0),(0,o._)([(0,l.MZ)({type:String,json:{write:!0}})],f.prototype,"title",void 0),f=n=(0,o._)([(0,p.$)("esri.symbols.support.FeatureExpressionInfo")],f);const h=f;var y,m=r(16271);const g=(0,s.O)()({onTheGround:"on-the-ground",relativeToGround:"relative-to-ground",relativeToScene:"relative-to-scene",absoluteHeight:"absolute-height"}),v=new s.J({foot:"feet",kilometer:"kilometers",meter:"meters",mile:"miles","us-foot":"us-feet",yard:"yards"});let b=class extends i.A{static{y=this}constructor(t){super(t),this.featureExpressionInfo=void 0,this.offset=null}readFeatureExpressionInfo(t,e){return null!=t?t:e.featureExpression&&0===e.featureExpression.value?{expression:"0"}:void 0}writeFeatureExpressionInfo(t,e,r,n){e[r]=t.write({},n),"0"===t.expression&&(e.featureExpression={value:0})}get mode(){const{offset:t,featureExpressionInfo:e}=this;return this._isOverridden("mode")?this._get("mode"):null!=t||e?"relative-to-ground":"on-the-ground"}set mode(t){this._override("mode",t)}set unit(t){this._set("unit",t)}write(t,e){return this.offset||this.mode||this.featureExpressionInfo||this.unit?super.write(t,e):null}clone(){return new y({mode:this.mode,offset:this.offset,featureExpressionInfo:this.featureExpressionInfo?this.featureExpressionInfo.clone():void 0,unit:this.unit})}equals(t){return this.mode===t.mode&&this.offset===t.offset&&this.unit===t.unit&&(0,a.CM)(this.featureExpressionInfo,t.featureExpressionInfo)}};(0,o._)([(0,l.MZ)({type:h,json:{write:!0}})],b.prototype,"featureExpressionInfo",void 0),(0,o._)([(0,u.w)("featureExpressionInfo",["featureExpressionInfo","featureExpression"])],b.prototype,"readFeatureExpressionInfo",null),(0,o._)([(0,c.K)("featureExpressionInfo",{featureExpressionInfo:{type:h},"featureExpression.value":{type:[0]}})],b.prototype,"writeFeatureExpressionInfo",null),(0,o._)([(0,l.MZ)({type:g.apiValues,nonNullable:!0,json:{type:g.jsonValues,read:g.read,write:{writer:g.write,isRequired:!0}}})],b.prototype,"mode",null),(0,o._)([(0,l.MZ)({type:Number,json:{write:!0}})],b.prototype,"offset",void 0),(0,o._)([(0,l.MZ)({type:m.KQ,json:{type:String,read:v.read,write:v.write}})],b.prototype,"unit",null),b=y=(0,o._)([(0,p.$)("esri.symbols.support.ElevationInfo")],b);const M=b},89317:(t,e,r)=>{r.d(e,{K:()=>n});const n=["operational-layers","basemap","ground"]},92071:(t,e,r)=>{r.d(e,{P:()=>b,L:()=>M});var n=r(90237),o=r(69622),s=r(76953),i=r(4718),a=r(35666);class l{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(a.AU),this._values=new Map,this.multipleOriginsSupported=!0}clone(t){const e=new l,r=this._originStores[a.Gr.DEFAULTS];r&&r.forEach(((t,r)=>{e.set(r,(0,i.o8)(t),a.Gr.DEFAULTS)}));for(let r=a.Gr.SERVICE;r<a.AU;r++){const n=this._originStores[r];n&&n.forEach(((n,o)=>{t&&t.has(o)||e.set(o,(0,i.o8)(n),r)}))}return e}get(t,e){const r=void 0===e?this._values:this._originStores[e];return r?r.get(t):void 0}keys(t){const e=null==t?this._values:this._originStores[t];return e?[...e.keys()]:[]}set(t,e,r=a.Gr.USER){let n=this._originStores[r];if(n||(n=new Map,this._originStores[r]=n),n.set(t,e),!this._values.has(t)||this._propertyOriginMap.get(t)<=r){const n=this._values.get(t);return this._values.set(t,e),this._propertyOriginMap.set(t,r),n!==e}return!1}delete(t,e=a.Gr.USER){const r=this._originStores[e];if(!r)return;const n=r.get(t);if(r.delete(t),this._values.has(t)&&this._propertyOriginMap.get(t)===e){this._values.delete(t);for(let r=e-1;r>=0;r--){const e=this._originStores[r];if(e&&e.has(t)){this._values.set(t,e.get(t)),this._propertyOriginMap.set(t,r);break}}}return n}has(t,e){const r=void 0===e?this._values:this._originStores[e];return!!r&&r.has(t)}revert(t,e){for(;e>0&&!this.has(t,e);)--e;const r=this._originStores[e],n=r?.get(t),o=this._values.get(t);return this._values.set(t,n),this._propertyOriginMap.set(t,e),o!==n}originOf(t){return this._propertyOriginMap.get(t)||a.Gr.DEFAULTS}forEach(t){this._values.forEach(t)}}var u=r(45917),p=r(88620),c=r(40608);const d=t=>{let e=class extends t{constructor(...t){super(...t);const e=(0,p.oY)(this),r=e.store,n=new l;e.store=n,(0,s.k)(e,r,n)}read(t,e){(0,u.L)(this,t,e)}getAtOrigin(t,e){const r=f(this),n=(0,a.aB)(e);if("string"==typeof t)return r.get(t,n);const o={};return t.forEach((t=>{o[t]=r.get(t,n)})),o}originOf(t){return(0,a.OL)(this.originIdOf(t))}originIdOf(t){return f(this).originOf(t)}revert(t,e){const r=f(this),n=(0,a.aB)(e),o=(0,p.oY)(this);let s;s="string"==typeof t?"*"===t?r.keys(n):[t]:t,s.forEach((t=>{o.invalidate(t),r.revert(t,n),o.commit(t)}))}};return e=(0,n._)([(0,c.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],e),e};function f(t){return(0,p.oY)(t).store}let h=class extends(d(o.A)){};h=(0,n._)([(0,c.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],h);var y=r(16649),m=r(49422);const g=t=>{let e=class extends t{constructor(...t){super(...t)}clear(t,e="user"){return v(this).delete(t,(0,a.aB)(e))}write(t,e){return(0,m.M)(this,t=t||{},e),t}setAtOrigin(t,e,r){(0,p.oY)(this).setAtOrigin(t,e,(0,a.aB)(r))}removeOrigin(t){const e=v(this),r=(0,a.aB)(t),n=e.keys(r);for(const t of n)e.originOf(t)===r&&e.set(t,e.get(t,r),a.Gr.USER)}updateOrigin(t,e){const r=v(this),n=(0,a.aB)(e),o=(0,y.Jt)(this,t);for(let e=n+1;e<a.AU;++e)r.delete(t,e);r.set(t,o,n)}toJSON(t){return this.write({},t)}};return e=(0,n._)([(0,c.$)("esri.core.MultiOriginJSONSupport.WriteableMultiOriginJSONSupport")],e),e.prototype.toJSON.isDefaultToJSON=!0,e};function v(t){return(0,p.oY)(t).store}const b=t=>{let e=class extends(g(d(t))){constructor(...t){super(...t)}};return e=(0,n._)([(0,c.$)("esri.core.MultiOriginJSONSupport")],e),e};let M=class extends(b(o.A)){};M=(0,n._)([(0,c.$)("esri.core.MultiOriginJSONSupport")],M)}}]);
|