@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 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2288],{23150:(e,t,r)=>{r.d(t,{A:()=>l});var n=r(90237),o=r(10107),i=(r(44208),r(53966),r(87811),r(40608)),a=r(82799),s=r(54238);let p=class extends s.A{constructor(e){super(e),this.originId=null,this.destinationId=null,this.layoutGeometry=null}};(0,n._)([(0,o.MZ)({type:String,json:{write:!0}})],p.prototype,"originId",void 0),(0,n._)([(0,o.MZ)({type:String,json:{write:!0}})],p.prototype,"destinationId",void 0),(0,n._)([(0,o.MZ)({type:a.A,json:{write:!0}})],p.prototype,"layoutGeometry",void 0),p=(0,n._)([(0,i.$)("esri.rest.knowledgeGraph.Relationship")],p);const l=p},25927:(e,t,r)=>{r.d(t,{A:()=>l});var n=r(90237),o=r(10107),i=(r(44208),r(53966),r(87811),r(40608)),a=r(86738),s=r(54238);let p=class extends s.A{constructor(e){super(e),this.layoutGeometry=null}};(0,n._)([(0,o.MZ)({type:a.A,json:{write:!0}})],p.prototype,"layoutGeometry",void 0),p=(0,n._)([(0,i.$)("esri.rest.knowledgeGraph.Entity")],p);const l=p},40662:(e,t,r)=>{r.d(t,{A:()=>s});var n=r(90237),o=(r(53966),r(44208),r(87811),r(49186),r(40608)),i=r(77901);let a=class extends i.A{constructor(e){super(e)}};a=(0,n._)([(0,o.$)("esri.rest.knowledgeGraph.ObjectValue")],a);const s=a},42095:(e,t,r)=>{r.d(t,{A:()=>l});var n=r(90237),o=r(25482),i=r(10107),a=(r(44208),r(53966),r(87811),r(40608)),s=r(77901);let p=class extends o.A{constructor(e){super(e),this.path=[]}};(0,n._)([(0,i.MZ)({type:[s.A],json:{write:!0}})],p.prototype,"path",void 0),p=(0,n._)([(0,a.$)("esri.rest.knowledgeGraph.Path")],p);const l=p},42538:(e,t,r)=>{r.d(t,{A:()=>c});var n=r(90237),o=r(10107),i=(r(44208),r(53966),r(87811),r(40608)),a=r(16930),s=r(69622);let p=class extends s.A{constructor(e){super(e),this.openCypherQuery=""}};(0,n._)([(0,o.MZ)()],p.prototype,"openCypherQuery",void 0),p=(0,n._)([(0,i.$)("esri.rest.knowledgeGraph.GraphQuery")],p);const l=p;let u=class extends l{constructor(e){super(e),this.bindParameters=null,this.bindGeometryQuantizationParameters=null,this.outputQuantizationParameters=null,this.outputSpatialReference=null,this.provenanceBehavior=null}};(0,n._)([(0,o.MZ)()],u.prototype,"bindParameters",void 0),(0,n._)([(0,o.MZ)()],u.prototype,"bindGeometryQuantizationParameters",void 0),(0,n._)([(0,o.MZ)()],u.prototype,"outputQuantizationParameters",void 0),(0,n._)([(0,o.MZ)({type:a.A})],u.prototype,"outputSpatialReference",void 0),(0,n._)([(0,o.MZ)()],u.prototype,"provenanceBehavior",void 0),u=(0,n._)([(0,i.$)("esri.rest.knowledgeGraph.GraphQueryStreaming")],u);const c=u},54238:(e,t,r)=>{r.d(t,{A:()=>p});var n=r(90237),o=r(10107),i=(r(44208),r(53966),r(87811),r(40608)),a=r(77901);let s=class extends a.A{constructor(e){super(e),this.typeName=null,this.id=null}};(0,n._)([(0,o.MZ)({type:String,json:{write:!0}})],s.prototype,"typeName",void 0),(0,n._)([(0,o.MZ)({type:String,json:{write:!0}})],s.prototype,"id",void 0),s=(0,n._)([(0,i.$)("esri.rest.knowledgeGraph.GraphNamedObject")],s);const p=s},77901:(e,t,r)=>{r.d(t,{A:()=>p});var n=r(90237),o=r(25482),i=r(10107),a=(r(44208),r(53966),r(87811),r(40608));let s=class extends o.A{constructor(e){super(e),this.properties=null}};(0,n._)([(0,i.MZ)({json:{write:!0}})],s.prototype,"properties",void 0),s=(0,n._)([(0,a.$)("esri.rest.knowledgeGraph.GraphObject")],s);const p=s},80672:(e,t,r)=>{r.d(t,{R:()=>o});var n=r(20655);function o(e,t){return null===e?t:new n.A({url:e.field("url")})}},92288:(e,t,r)=>{r.r(t),r.d(t,{registerFunctions:()=>F});var n=r(92602),o=r(47609),i=r(66395),a=r(85935),s=r(78878),p=r(80672),l=r(91075),u=r(
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2288],{23150:(e,t,r)=>{r.d(t,{A:()=>l});var n=r(90237),o=r(10107),i=(r(44208),r(53966),r(87811),r(40608)),a=r(82799),s=r(54238);let p=class extends s.A{constructor(e){super(e),this.originId=null,this.destinationId=null,this.layoutGeometry=null}};(0,n._)([(0,o.MZ)({type:String,json:{write:!0}})],p.prototype,"originId",void 0),(0,n._)([(0,o.MZ)({type:String,json:{write:!0}})],p.prototype,"destinationId",void 0),(0,n._)([(0,o.MZ)({type:a.A,json:{write:!0}})],p.prototype,"layoutGeometry",void 0),p=(0,n._)([(0,i.$)("esri.rest.knowledgeGraph.Relationship")],p);const l=p},25927:(e,t,r)=>{r.d(t,{A:()=>l});var n=r(90237),o=r(10107),i=(r(44208),r(53966),r(87811),r(40608)),a=r(86738),s=r(54238);let p=class extends s.A{constructor(e){super(e),this.layoutGeometry=null}};(0,n._)([(0,o.MZ)({type:a.A,json:{write:!0}})],p.prototype,"layoutGeometry",void 0),p=(0,n._)([(0,i.$)("esri.rest.knowledgeGraph.Entity")],p);const l=p},40662:(e,t,r)=>{r.d(t,{A:()=>s});var n=r(90237),o=(r(53966),r(44208),r(87811),r(49186),r(40608)),i=r(77901);let a=class extends i.A{constructor(e){super(e)}};a=(0,n._)([(0,o.$)("esri.rest.knowledgeGraph.ObjectValue")],a);const s=a},42095:(e,t,r)=>{r.d(t,{A:()=>l});var n=r(90237),o=r(25482),i=r(10107),a=(r(44208),r(53966),r(87811),r(40608)),s=r(77901);let p=class extends o.A{constructor(e){super(e),this.path=[]}};(0,n._)([(0,i.MZ)({type:[s.A],json:{write:!0}})],p.prototype,"path",void 0),p=(0,n._)([(0,a.$)("esri.rest.knowledgeGraph.Path")],p);const l=p},42538:(e,t,r)=>{r.d(t,{A:()=>c});var n=r(90237),o=r(10107),i=(r(44208),r(53966),r(87811),r(40608)),a=r(16930),s=r(69622);let p=class extends s.A{constructor(e){super(e),this.openCypherQuery=""}};(0,n._)([(0,o.MZ)()],p.prototype,"openCypherQuery",void 0),p=(0,n._)([(0,i.$)("esri.rest.knowledgeGraph.GraphQuery")],p);const l=p;let u=class extends l{constructor(e){super(e),this.bindParameters=null,this.bindGeometryQuantizationParameters=null,this.outputQuantizationParameters=null,this.outputSpatialReference=null,this.provenanceBehavior=null}};(0,n._)([(0,o.MZ)()],u.prototype,"bindParameters",void 0),(0,n._)([(0,o.MZ)()],u.prototype,"bindGeometryQuantizationParameters",void 0),(0,n._)([(0,o.MZ)()],u.prototype,"outputQuantizationParameters",void 0),(0,n._)([(0,o.MZ)({type:a.A})],u.prototype,"outputSpatialReference",void 0),(0,n._)([(0,o.MZ)()],u.prototype,"provenanceBehavior",void 0),u=(0,n._)([(0,i.$)("esri.rest.knowledgeGraph.GraphQueryStreaming")],u);const c=u},54238:(e,t,r)=>{r.d(t,{A:()=>p});var n=r(90237),o=r(10107),i=(r(44208),r(53966),r(87811),r(40608)),a=r(77901);let s=class extends a.A{constructor(e){super(e),this.typeName=null,this.id=null}};(0,n._)([(0,o.MZ)({type:String,json:{write:!0}})],s.prototype,"typeName",void 0),(0,n._)([(0,o.MZ)({type:String,json:{write:!0}})],s.prototype,"id",void 0),s=(0,n._)([(0,i.$)("esri.rest.knowledgeGraph.GraphNamedObject")],s);const p=s},77901:(e,t,r)=>{r.d(t,{A:()=>p});var n=r(90237),o=r(25482),i=r(10107),a=(r(44208),r(53966),r(87811),r(40608));let s=class extends o.A{constructor(e){super(e),this.properties=null}};(0,n._)([(0,i.MZ)({json:{write:!0}})],s.prototype,"properties",void 0),s=(0,n._)([(0,a.$)("esri.rest.knowledgeGraph.GraphObject")],s);const p=s},80672:(e,t,r)=>{r.d(t,{R:()=>o});var n=r(20655);function o(e,t){return null===e?t:new n.A({url:e.field("url")})}},92288:(e,t,r)=>{r.r(t),r.d(t,{registerFunctions:()=>F});var n=r(92602),o=r(47609),i=r(66395),a=r(85935),s=r(78878),p=r(80672),l=r(91075),u=r(80586),c=r(16930),d=r(28735),f=r(20655),h=r(80812),y=r(78888),m=r(56507),g=r(65864),w=r(2272),v=r(92300),A=r(90237),S=r(25482),R=r(10107),_=(r(44208),r(53966),r(87811),r(40608)),G=r(21325);let x=class extends S.A{constructor(e){super(e),this.geometries=[],this.outSpatialReference=null,this.transformation=null,this.transformForward=null}toJSON(){const e=this.geometries.map((e=>e.toJSON())),t=this.geometries[0],r={};return r.outSR=(0,G.YX)(this.outSpatialReference),r.inSR=(0,G.YX)(t.spatialReference),r.geometries=JSON.stringify({geometryType:(0,g.$B)(t),geometries:e}),this.transformation&&(r.transformation=this.transformation.wkid||JSON.stringify(this.transformation)),null!=this.transformForward&&(r.transformForward=this.transformForward),r}};(0,A._)([(0,R.MZ)()],x.prototype,"geometries",void 0),(0,A._)([(0,R.MZ)({type:c.A,json:{read:{source:"outSR"}}})],x.prototype,"outSpatialReference",void 0),(0,A._)([(0,R.MZ)()],x.prototype,"transformation",void 0),(0,A._)([(0,R.MZ)()],x.prototype,"transformForward",void 0),x=(0,A._)([(0,_.$)("esri.rest.support.ProjectParameters")],x);const M=x,j=(0,m.dp)(M);var $=r(25927),b=r(42538),k=r(40662),P=r(42095),Z=r(23150),D=r(54218);let T=null;async function N(e){const t=n.A.geometryServiceUrl??"";if(!t){(0,u.isLoaded)()||await(0,u.load)();for(const t of e)t.container[t.indexer]=(0,u.project)(t.container[t.indexer],c.A.WGS84);return}const r=e.map((e=>e.container[e.indexer])),o=new M({geometries:r,outSpatialReference:c.A.WGS84}),i=await async function(e,t){t=j(t);const r=(0,w.Dl)(e),n={...r.query,f:"json",...t.toJSON()},o=t.outSpatialReference,i=(0,g.$B)(t.geometries[0]),a=(0,w.jV)(n,void 0);return(0,y.A)(r.path+"/project",a).then((({data:{geometries:e}})=>(0,v.V)(e,i,o)))}(t,o);for(let t=0;t<i.length;t++){const r=e[t];r.container[r.indexer]=i[t]}}async function I(e,t){const n=new h.default({portal:e,id:t});return await n.load(),null===T&&(T=await Promise.all([r.e(8948),r.e(2106),r.e(5721),r.e(8613),r.e(7136)]).then(r.bind(r,88613))),await T.fetchKnowledgeGraph(n.url)}function J(e,t,r,n,o){if(null===e)return null;if((0,D.Kg)(e)||(0,D.Et)(e))return e;if((0,s.g)(e))return e.toJSDate();if((0,s.g)(e))return e.toJSDate();if((0,s.j)(e))return e.toStorageFormat();if((0,s.k)(e))return e.toStorageString();if((0,s.q)(e)){const i={};for(const a of e.keys())i[a]=J(e.field(a),t,r,n,o),i[a]instanceof l.A&&o.push({container:i,indexer:a});return i}if((0,D.cy)(e)){const i=e.map((e=>J(e,t,r,n,o)));for(let e=0;e<i.length;e++)i[e]instanceof l.A&&o.push({container:i,indexer:e});return i}return(0,s.l)(e)?e.spatialReference.isWGS84?e:e.spatialReference.isWebMercator&&t?(0,d.ci)(e):e:void 0}function O(e,t){if(!e)return null;const r={};for(const n in e)r[n]=Q(e[n],t);return r}function Q(e,t){return null===e?null:(0,D.cy)(e)?e.map((e=>Q(e,t))):e instanceof $.A?{graphTypeName:e.typeName,id:e.id,graphType:"entity",properties:O(e.properties,t)}:e instanceof k.A?{graphType:"object",properties:O(e.properties,t)}:e instanceof Z.A?{graphTypeName:e.typeName,id:e.id,graphType:"relationship",originId:e.originId??null,destinationId:e.destinationId??null,properties:O(e.properties,t)}:e instanceof P.A?{graphType:"path",path:e.path?e.path.map((e=>Q(e,t))):null}:(0,s.l)(e)?function(e,t){if(!e)return e;if(e.spatialReference.isWGS84&&t.spatialReference.isWebMercator)return(0,d.Gh)(e);if(e.spatialReference.equals(t.spatialReference))return e;throw new a.D$(t,a.TX.WrongSpatialReference,null)}(e,t):(0,D.Kg)(e)||(0,D.Et)(e)||(0,D.$P)(e)?e:null}function F(e){"async"===e.mode&&(e.functions.knowledgegraphbyportalitem=function(t,r){return e.standardFunctionAsync(t,r,((e,n,i)=>{if((0,s.D)(i,2,2,t,r),null===i[0])throw new a.D$(t,a.TX.PortalRequired,r);if(i[0]instanceof o.A){const e=(0,s.f)(i[1]);let r;return r=t.services?.portal?t.services.portal:f.A.getDefault(),I((0,p.R)(i[0],r),e)}if(!1===(0,D.Kg)(i[0]))throw new a.D$(t,a.TX.InvalidParameter,r);const l=(0,s.f)(i[0]);return I(t.services?.portal??f.A.getDefault(),l)}))},e.signatures.push({name:"knowledgegraphbyportalitem",min:2,max:2}),e.functions.querygraph=function(t,n){return e.standardFunctionAsync(t,n,(async(e,o,p)=>{(0,s.D)(p,2,4,t,n);const l=p[0];if(!(0,s.r)(l))throw new a.D$(t,a.TX.InvalidParameter,n);const u=p[1];if(!(0,D.Kg)(u))throw new a.D$(t,a.TX.InvalidParameter,n);null===T&&(T=await Promise.all([r.e(8948),r.e(2106),r.e(5721),r.e(8613),r.e(7136)]).then(r.bind(r,88613)));let c=null;const d=(0,s.K)(p[2],null);if(!(d instanceof i.A||null===d))throw new a.D$(t,a.TX.InvalidParameter,n);if(d){let e=[];c=J(d,!0,!1,t,e),e=e.filter((e=>!e.container[e.indexer].spatialReference.isWGS84)),e.length>0&&await N(e)}const f=new b.A({openCypherQuery:u,bindParameters:c});(l?.serviceDefinition?.currentVersion??11.3)>11.2&&(f.outputSpatialReference=t.spatialReference);const h=(await T.executeQueryStreaming(l,f)).resultRowsStream.getReader(),y=[];try{for(;;){const{done:e,value:r}=await h.read();if(e)break;if((0,D.cy)(r))for(const e of r)y.push(Q(e,t));else{const e=[];for(const n of r)e.push(Q(r[n],t));y.push(e)}}}catch(e){throw e}return i.A.convertJsonToArcade(y,(0,s.L)(t),!1,!0)}))},e.signatures.push({name:"querygraph",min:2,max:4}))}},92300:(e,t,r)=>{r.d(t,{V:()=>i,X:()=>o});var n=r(65864);function o(e){return{geometryType:(0,n.$B)(e[0]),geometries:e.map((e=>e.toJSON()))}}function i(e,t,r){const o=(0,n.xD)(t);return e.map((e=>{const t=o.fromJSON(e);return t.spatialReference=r,t}))}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6187],{11053:(e,t,_)=>{_.d(t,{c:()=>r,g:()=>o});var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}},46187:(e,t,_)=>{_.r(t),_.d(t,{p:()=>i});var r,o=_(11053),n={exports:{}};const p=(0,o.g)(function(){return r||(r=1,e=n,t="undefined"!=typeof document?document.currentScript?.src:void 0,"undefined"!=typeof __filename&&(t=t||__filename),_=function(e={}){var _,r,o,n,p=e,i=new Promise(((e,t)=>{_=e,r=t})),c="object"==typeof window,s="undefined"!=typeof WorkerGlobalScope,P="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node&&"renderer"!=process.type,a=Object.assign({},p),g="./this.program",y="";if(P){var d=require("fs"),u=require("path");y=__dirname+"/",n=e=>(e=F(e)?new URL(e):u.normalize(e),d.readFileSync(e)),o=(e,t=!0)=>(e=F(e)?new URL(e):u.normalize(e),new Promise(((_,r)=>{d.readFile(e,t?void 0:"utf8",((e,o)=>{e?r(e):_(t?o.buffer:o)}))}))),!p.thisProgram&&process.argv.length>1&&(g=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2)}else(c||s)&&(s?y=self.location.href:"undefined"!=typeof document&&document.currentScript&&(y=document.currentScript.src),t&&(y=t),y=y.startsWith("blob:")?"":y.substr(0,y.replace(/[?#].*/,"").lastIndexOf("/")+1),s&&(n=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),o=e=>F(e)?new Promise(((t,_)=>{var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=()=>{200==r.status||0==r.status&&r.response?t(r.response):_(r.status)},r.onerror=_,r.send(null)})):fetch(e,{credentials:"same-origin"}).then((e=>e.ok?e.arrayBuffer():Promise.reject(new Error(e.status+" : "+e.url)))));var b,f=console.log.bind(console),E=console.error.bind(console);Object.assign(p,a),a=null;var m,T,O,S,l,h,N,M=!1;function D(e,t){e||I(t)}function v(){var e=b.buffer;p.HEAP8=m=new Int8Array(e),p.HEAP16=O=new Int16Array(e),p.HEAPU8=T=new Uint8Array(e),p.HEAPU16=new Uint16Array(e),p.HEAP32=S=new Int32Array(e),p.HEAPU32=l=new Uint32Array(e),p.HEAPF32=h=new Float32Array(e),p.HEAPF64=N=new Float64Array(e)}var A=[],j=[],R=[],G=0,C=null;function I(e){E(e="Aborted("+e+")"),M=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw r(t),t}var L,U=e=>e.startsWith("data:application/octet-stream;base64,"),F=e=>e.startsWith("file://");function w(e,t,_){return function(e){return o(e).then((e=>new Uint8Array(e)),(()=>function(e){if(n)return n(e);throw"both async and sync fetching of the wasm failed"}(e)))}(e).then((e=>WebAssembly.instantiate(e,t))).then(_,(e=>{E(`failed to asynchronously prepare wasm: ${e}`),I(e)}))}var Y=e=>{for(;e.length>0;)e.shift()(p)},x="undefined"!=typeof TextDecoder?new TextDecoder:void 0,H=(e,t=0,_=NaN)=>{for(var r=t+_,o=t;e[o]&&!(o>=r);)++o;if(o-t>16&&e.buffer&&x)return x.decode(e.subarray(t,o));for(var n="";t<o;){var p=e[t++];if(128&p){var i=63&e[t++];if(192!=(224&p)){var c=63&e[t++];if((p=224==(240&p)?(15&p)<<12|i<<6|c:(7&p)<<18|i<<12|c<<6|63&e[t++])<65536)n+=String.fromCharCode(p);else{var s=p-65536;n+=String.fromCharCode(55296|s>>10,56320|1023&s)}}else n+=String.fromCharCode((31&p)<<6|i)}else n+=String.fromCharCode(p)}return n},X=(e,t)=>e?H(T,e,t):"",z=(e,t,_,r)=>{if(!(r>0))return 0;for(var o=_,n=_+r-1,p=0;p<e.length;++p){var i=e.charCodeAt(p);if(i>=55296&&i<=57343&&(i=65536+((1023&i)<<10)|1023&e.charCodeAt(++p)),i<=127){if(_>=n)break;t[_++]=i}else if(i<=2047){if(_+1>=n)break;t[_++]=192|i>>6,t[_++]=128|63&i}else if(i<=65535){if(_+2>=n)break;t[_++]=224|i>>12,t[_++]=128|i>>6&63,t[_++]=128|63&i}else{if(_+3>=n)break;t[_++]=240|i>>18,t[_++]=128|i>>12&63,t[_++]=128|i>>6&63,t[_++]=128|63&i}}return t[_]=0,_-o},W=(e,t,_)=>z(e,T,t,_),Z=[0,31,60,91,121,152,182,213,244,274,305,335],q=[0,31,59,90,120,151,181,212,243,273,304,334],B=(e,t)=>Math.ceil(e/t)*t,K=e=>{var t=(e-b.buffer.byteLength+65535)/65536|0;try{return b.grow(t),v(),1}catch(e){}},V={},k=()=>{if(!k.strings){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:g||"./this.program"};for(var t in V)void 0===V[t]?delete e[t]:e[t]=V[t];var _=[];for(var t in e)_.push(`${t}=${e[t]}`);k.strings=_}return k.strings},$=[null,[],[]],J=(e,t)=>{var _=$[e];0===t||10===t?((1===e?f:E)(H(_)),_.length=0):_.push(t)},Q={c:function(e,t,_){return 0},q:(e,t,_)=>{},h:function(e,t,_){return 0},d:function(e,t,_,r){},o:e=>{},n:(e,t)=>{},p:(e,t,_)=>{},l:()=>{I("")},s:(e,t,_)=>T.copyWithin(e,t,t+_),j:function(e,t,_){var r=((e,t)=>t+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*t:NaN)(e,t),o=new Date(1e3*r);S[_>>2]=o.getSeconds(),S[_+4>>2]=o.getMinutes(),S[_+8>>2]=o.getHours(),S[_+12>>2]=o.getDate(),S[_+16>>2]=o.getMonth(),S[_+20>>2]=o.getFullYear()-1900,S[_+24>>2]=o.getDay();var n=0|(e=>((e=>e%4==0&&(e%100!=0||e%400==0))(e.getFullYear())?Z:q)[e.getMonth()]+e.getDate()-1)(o);S[_+28>>2]=n,S[_+36>>2]=-60*o.getTimezoneOffset();var p=new Date(o.getFullYear(),0,1),i=new Date(o.getFullYear(),6,1).getTimezoneOffset(),c=p.getTimezoneOffset(),s=0|(i!=c&&o.getTimezoneOffset()==Math.min(c,i));S[_+32>>2]=s},r:(e,t,_,r)=>{var o=(new Date).getFullYear(),n=new Date(o,0,1),p=new Date(o,6,1),i=n.getTimezoneOffset(),c=p.getTimezoneOffset(),s=Math.max(i,c);l[e>>2]=60*s,S[t>>2]=Number(i!=c);var P=e=>{var t=e>=0?"-":"+",_=Math.abs(e);return`UTC${t}${String(Math.floor(_/60)).padStart(2,"0")}${String(_%60).padStart(2,"0")}`},a=P(i),g=P(c);c<i?(W(a,_,17),W(g,r,17)):(W(a,r,17),W(g,_,17))},i:()=>Date.now(),m:e=>{var t=T.length,_=2147483648;if((e>>>=0)>_)return!1;for(var r=1;r<=4;r*=2){var o=t*(1+.2/r);o=Math.min(o,e+100663296);var n=Math.min(_,B(Math.max(e,o),65536));if(K(n))return!0}return!1},e:(e,t)=>{var _=0;return k().forEach(((r,o)=>{var n=t+_;l[e+4*o>>2]=n,((e,t)=>{for(var _=0;_<e.length;++_)m[t++]=e.charCodeAt(_);m[t]=0})(r,n),_+=r.length+1})),0},f:(e,t)=>{var _=k();l[e>>2]=_.length;var r=0;return _.forEach((e=>r+=e.length+1)),l[t>>2]=r,0},a:e=>52,g:(e,t,_,r)=>52,k:function(e,t,_,r,o){return 70},b:(e,t,_,r)=>{for(var o=0,n=0;n<_;n++){var p=l[t>>2],i=l[t+4>>2];t+=8;for(var c=0;c<i;c++)J(e,T[p+c]);o+=i}return l[r>>2]=o,0}},ee=function(){var e={a:Q};return G++,L??=function(){var e="pe-wasm.wasm";return U(e)?e:function(e){return p.locateFile?p.locateFile(e,y):y+e}(e)}(),function(e,t,_,r){return"function"!=typeof WebAssembly.instantiateStreaming||U(t)||F(t)||P||"function"!=typeof fetch?w(t,_,r):fetch(t,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,_).then(r,(function(e){return E(`wasm streaming compile failed: ${e}`),E("falling back to ArrayBuffer instantiation"),w(t,_,r)}))))}(0,L,e,(function(e){!function(e){ee=e.exports,b=ee.t,v(),function(e){j.unshift(e)}(ee.u),function(){if(0==--G&&C){var e=C;C=null,e()}}()}(e.instance)})).catch(r),{}}();p._webidl_free=e=>(p._webidl_free=ee.v)(e),p._webidl_malloc=e=>(p._webidl_malloc=ee.w)(e);var te,_e=p._emscripten_bind_PeObject_getCode_0=e=>(_e=p._emscripten_bind_PeObject_getCode_0=ee.x)(e),re=p._emscripten_bind_PeObject_getName_1=(e,t)=>(re=p._emscripten_bind_PeObject_getName_1=ee.y)(e,t),oe=p._emscripten_bind_PeObject_getType_0=e=>(oe=p._emscripten_bind_PeObject_getType_0=ee.z)(e),ne=p._emscripten_bind_PeCoordsys_isEqual_1=(e,t)=>(ne=p._emscripten_bind_PeCoordsys_isEqual_1=ee.A)(e,t),pe=p._emscripten_bind_PeCoordsys_getCode_0=e=>(pe=p._emscripten_bind_PeCoordsys_getCode_0=ee.B)(e),ie=p._emscripten_bind_PeCoordsys_getName_1=(e,t)=>(ie=p._emscripten_bind_PeCoordsys_getName_1=ee.C)(e,t),ce=p._emscripten_bind_PeCoordsys_getType_0=e=>(ce=p._emscripten_bind_PeCoordsys_getType_0=ee.D)(e),se=p._emscripten_bind_PeUnit_getUnitFactor_0=e=>(se=p._emscripten_bind_PeUnit_getUnitFactor_0=ee.E)(e),Pe=p._emscripten_bind_PeUnit_getCode_0=e=>(Pe=p._emscripten_bind_PeUnit_getCode_0=ee.F)(e),ae=p._emscripten_bind_PeUnit_getName_1=(e,t)=>(ae=p._emscripten_bind_PeUnit_getName_1=ee.G)(e,t),ge=p._emscripten_bind_PeUnit_getType_0=e=>(ge=p._emscripten_bind_PeUnit_getType_0=ee.H)(e),ye=p._emscripten_bind_VoidPtr___destroy___0=e=>(ye=p._emscripten_bind_VoidPtr___destroy___0=ee.I)(e),de=p._emscripten_bind_PeAngunit_getCode_0=e=>(de=p._emscripten_bind_PeAngunit_getCode_0=ee.J)(e),ue=p._emscripten_bind_PeAngunit_getName_1=(e,t)=>(ue=p._emscripten_bind_PeAngunit_getName_1=ee.K)(e,t),be=p._emscripten_bind_PeAngunit_getType_0=e=>(be=p._emscripten_bind_PeAngunit_getType_0=ee.L)(e),fe=p._emscripten_bind_PeAngunit_getUnitFactor_0=e=>(fe=p._emscripten_bind_PeAngunit_getUnitFactor_0=ee.M)(e),Ee=p._emscripten_bind_PeDatum_getSpheroid_0=e=>(Ee=p._emscripten_bind_PeDatum_getSpheroid_0=ee.N)(e),me=p._emscripten_bind_PeDatum_getCode_0=e=>(me=p._emscripten_bind_PeDatum_getCode_0=ee.O)(e),Te=p._emscripten_bind_PeDatum_getName_1=(e,t)=>(Te=p._emscripten_bind_PeDatum_getName_1=ee.P)(e,t),Oe=p._emscripten_bind_PeDatum_getType_0=e=>(Oe=p._emscripten_bind_PeDatum_getType_0=ee.Q)(e),Se=p._emscripten_bind_PeDefs_get_PE_BUFFER_MAX_0=e=>(Se=p._emscripten_bind_PeDefs_get_PE_BUFFER_MAX_0=ee.R)(e),le=p._emscripten_bind_PeDefs_get_PE_NAME_MAX_0=e=>(le=p._emscripten_bind_PeDefs_get_PE_NAME_MAX_0=ee.S)(e),he=p._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0=e=>(he=p._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0=ee.T)(e),Ne=p._emscripten_bind_PeDefs_get_PE_USNG_MAX_0=e=>(Ne=p._emscripten_bind_PeDefs_get_PE_USNG_MAX_0=ee.U)(e),Me=p._emscripten_bind_PeDefs_get_PE_DD_MAX_0=e=>(Me=p._emscripten_bind_PeDefs_get_PE_DD_MAX_0=ee.V)(e),De=p._emscripten_bind_PeDefs_get_PE_DMS_MAX_0=e=>(De=p._emscripten_bind_PeDefs_get_PE_DMS_MAX_0=ee.W)(e),ve=p._emscripten_bind_PeDefs_get_PE_DDM_MAX_0=e=>(ve=p._emscripten_bind_PeDefs_get_PE_DDM_MAX_0=ee.X)(e),Ae=p._emscripten_bind_PeDefs_get_PE_UTM_MAX_0=e=>(Ae=p._emscripten_bind_PeDefs_get_PE_UTM_MAX_0=ee.Y)(e),je=p._emscripten_bind_PeDefs_get_PE_PARM_MAX_0=e=>(je=p._emscripten_bind_PeDefs_get_PE_PARM_MAX_0=ee.Z)(e),Re=p._emscripten_bind_PeDefs_get_PE_TYPE_NONE_0=e=>(Re=p._emscripten_bind_PeDefs_get_PE_TYPE_NONE_0=ee._)(e),Ge=p._emscripten_bind_PeDefs_get_PE_TYPE_GEOGCS_0=e=>(Ge=p._emscripten_bind_PeDefs_get_PE_TYPE_GEOGCS_0=ee.$)(e),Ce=p._emscripten_bind_PeDefs_get_PE_TYPE_PROJCS_0=e=>(Ce=p._emscripten_bind_PeDefs_get_PE_TYPE_PROJCS_0=ee.aa)(e),Ie=p._emscripten_bind_PeDefs_get_PE_TYPE_GEOGTRAN_0=e=>(Ie=p._emscripten_bind_PeDefs_get_PE_TYPE_GEOGTRAN_0=ee.ba)(e),Le=p._emscripten_bind_PeDefs_get_PE_TYPE_COORDSYS_0=e=>(Le=p._emscripten_bind_PeDefs_get_PE_TYPE_COORDSYS_0=ee.ca)(e),Ue=p._emscripten_bind_PeDefs_get_PE_TYPE_UNIT_0=e=>(Ue=p._emscripten_bind_PeDefs_get_PE_TYPE_UNIT_0=ee.da)(e),Fe=p._emscripten_bind_PeDefs_get_PE_TYPE_LINUNIT_0=e=>(Fe=p._emscripten_bind_PeDefs_get_PE_TYPE_LINUNIT_0=ee.ea)(e),we=p._emscripten_bind_PeDefs_get_PE_STR_OPTS_NONE_0=e=>(we=p._emscripten_bind_PeDefs_get_PE_STR_OPTS_NONE_0=ee.fa)(e),Ye=p._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0=e=>(Ye=p._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0=ee.ga)(e),xe=p._emscripten_bind_PeDefs_get_PE_STR_AUTH_TOP_0=e=>(xe=p._emscripten_bind_PeDefs_get_PE_STR_AUTH_TOP_0=ee.ha)(e),He=p._emscripten_bind_PeDefs_get_PE_STR_NAME_CANON_0=e=>(He=p._emscripten_bind_PeDefs_get_PE_STR_NAME_CANON_0=ee.ia)(e),Xe=p._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT_0=e=>(Xe=p._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT_0=ee.ja)(e),ze=p._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT2_0=e=>(ze=p._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT2_0=ee.ka)(e),We=p._emscripten_bind_PeDefs_get_PE_PARM_X0_0=e=>(We=p._emscripten_bind_PeDefs_get_PE_PARM_X0_0=ee.la)(e),Ze=p._emscripten_bind_PeDefs_get_PE_PARM_ND_0=e=>(Ze=p._emscripten_bind_PeDefs_get_PE_PARM_ND_0=ee.ma)(e),qe=p._emscripten_bind_PeDefs_get_PE_TRANSFORM_1_TO_2_0=e=>(qe=p._emscripten_bind_PeDefs_get_PE_TRANSFORM_1_TO_2_0=ee.na)(e),Be=p._emscripten_bind_PeDefs_get_PE_TRANSFORM_2_TO_1_0=e=>(Be=p._emscripten_bind_PeDefs_get_PE_TRANSFORM_2_TO_1_0=ee.oa)(e),Ke=p._emscripten_bind_PeDefs_get_PE_TRANSFORM_P_TO_G_0=e=>(Ke=p._emscripten_bind_PeDefs_get_PE_TRANSFORM_P_TO_G_0=ee.pa)(e),Ve=p._emscripten_bind_PeDefs_get_PE_TRANSFORM_G_TO_P_0=e=>(Ve=p._emscripten_bind_PeDefs_get_PE_TRANSFORM_G_TO_P_0=ee.qa)(e),ke=p._emscripten_bind_PeDefs_get_PE_HORIZON_RECT_0=e=>(ke=p._emscripten_bind_PeDefs_get_PE_HORIZON_RECT_0=ee.ra)(e),$e=p._emscripten_bind_PeDefs_get_PE_HORIZON_POLY_0=e=>($e=p._emscripten_bind_PeDefs_get_PE_HORIZON_POLY_0=ee.sa)(e),Je=p._emscripten_bind_PeDefs_get_PE_HORIZON_LINE_0=e=>(Je=p._emscripten_bind_PeDefs_get_PE_HORIZON_LINE_0=ee.ta)(e),Qe=p._emscripten_bind_PeDefs_get_PE_HORIZON_DELTA_0=e=>(Qe=p._emscripten_bind_PeDefs_get_PE_HORIZON_DELTA_0=ee.ua)(e),et=p._emscripten_bind_PeDouble_PeDouble_1=e=>(et=p._emscripten_bind_PeDouble_PeDouble_1=ee.va)(e),tt=p._emscripten_bind_PeDouble_get_val_0=e=>(tt=p._emscripten_bind_PeDouble_get_val_0=ee.wa)(e),_t=p._emscripten_bind_PeDouble_set_val_1=(e,t)=>(_t=p._emscripten_bind_PeDouble_set_val_1=ee.xa)(e,t),rt=p._emscripten_bind_PeDouble___destroy___0=e=>(rt=p._emscripten_bind_PeDouble___destroy___0=ee.ya)(e),ot=p._emscripten_bind_PeFactory_initialize_1=e=>(ot=p._emscripten_bind_PeFactory_initialize_1=ee.za)(e),nt=p._emscripten_bind_PeFactory_factoryByType_2=(e,t)=>(nt=p._emscripten_bind_PeFactory_factoryByType_2=ee.Aa)(e,t),pt=p._emscripten_bind_PeFactory_fromString_2=(e,t)=>(pt=p._emscripten_bind_PeFactory_fromString_2=ee.Ba)(e,t),it=p._emscripten_bind_PeFactory_getCode_1=e=>(it=p._emscripten_bind_PeFactory_getCode_1=ee.Ca)(e),ct=p._emscripten_bind_PeGCSExtent_PeGCSExtent_6=(e,t,_,r,o,n)=>(ct=p._emscripten_bind_PeGCSExtent_PeGCSExtent_6=ee.Da)(e,t,_,r,o,n),st=p._emscripten_bind_PeGCSExtent_getLLon_0=e=>(st=p._emscripten_bind_PeGCSExtent_getLLon_0=ee.Ea)(e),Pt=p._emscripten_bind_PeGCSExtent_getSLat_0=e=>(Pt=p._emscripten_bind_PeGCSExtent_getSLat_0=ee.Fa)(e),at=p._emscripten_bind_PeGCSExtent_getRLon_0=e=>(at=p._emscripten_bind_PeGCSExtent_getRLon_0=ee.Ga)(e),gt=p._emscripten_bind_PeGCSExtent_getNLat_0=e=>(gt=p._emscripten_bind_PeGCSExtent_getNLat_0=ee.Ha)(e),yt=p._emscripten_bind_PeGCSExtent___destroy___0=e=>(yt=p._emscripten_bind_PeGCSExtent___destroy___0=ee.Ia)(e),dt=p._emscripten_bind_PeGeogcs_Delete_0=e=>(dt=p._emscripten_bind_PeGeogcs_Delete_0=ee.Ja)(e),ut=p._emscripten_bind_PeGeogcs_cloneAlterUnits_1=(e,t)=>(ut=p._emscripten_bind_PeGeogcs_cloneAlterUnits_1=ee.Ka)(e,t),bt=p._emscripten_bind_PeGeogcs_getDatum_0=e=>(bt=p._emscripten_bind_PeGeogcs_getDatum_0=ee.La)(e),ft=p._emscripten_bind_PeGeogcs_getPrimem_0=e=>(ft=p._emscripten_bind_PeGeogcs_getPrimem_0=ee.Ma)(e),Et=p._emscripten_bind_PeGeogcs_getUnit_0=e=>(Et=p._emscripten_bind_PeGeogcs_getUnit_0=ee.Na)(e),mt=p._emscripten_bind_PeGeogcs_isEqual_1=(e,t)=>(mt=p._emscripten_bind_PeGeogcs_isEqual_1=ee.Oa)(e,t),Tt=p._emscripten_bind_PeGeogcs_getCode_0=e=>(Tt=p._emscripten_bind_PeGeogcs_getCode_0=ee.Pa)(e),Ot=p._emscripten_bind_PeGeogcs_getName_1=(e,t)=>(Ot=p._emscripten_bind_PeGeogcs_getName_1=ee.Qa)(e,t),St=p._emscripten_bind_PeGeogcs_getType_0=e=>(St=p._emscripten_bind_PeGeogcs_getType_0=ee.Ra)(e),lt=p._emscripten_bind_PeGeogtran_isEqual_1=(e,t)=>(lt=p._emscripten_bind_PeGeogtran_isEqual_1=ee.Sa)(e,t),ht=p._emscripten_bind_PeGeogtran_getGeogcs1_0=e=>(ht=p._emscripten_bind_PeGeogtran_getGeogcs1_0=ee.Ta)(e),Nt=p._emscripten_bind_PeGeogtran_getGeogcs2_0=e=>(Nt=p._emscripten_bind_PeGeogtran_getGeogcs2_0=ee.Ua)(e),Mt=p._emscripten_bind_PeGeogtran_getParameters_0=e=>(Mt=p._emscripten_bind_PeGeogtran_getParameters_0=ee.Va)(e),Dt=p._emscripten_bind_PeGeogtran_loadConstants_0=e=>(Dt=p._emscripten_bind_PeGeogtran_loadConstants_0=ee.Wa)(e),vt=p._emscripten_bind_PeGeogtran_getCode_0=e=>(vt=p._emscripten_bind_PeGeogtran_getCode_0=ee.Xa)(e),At=p._emscripten_bind_PeGeogtran_getName_1=(e,t)=>(At=p._emscripten_bind_PeGeogtran_getName_1=ee.Ya)(e,t),jt=p._emscripten_bind_PeGeogtran_getType_0=e=>(jt=p._emscripten_bind_PeGeogtran_getType_0=ee.Za)(e),Rt=p._emscripten_bind_PeGTlistExtended_getGTlist_6=(e,t,_,r,o,n)=>(Rt=p._emscripten_bind_PeGTlistExtended_getGTlist_6=ee._a)(e,t,_,r,o,n),Gt=p._emscripten_bind_PeGTlistExtended_get_PE_GTLIST_OPTS_COMMON_0=e=>(Gt=p._emscripten_bind_PeGTlistExtended_get_PE_GTLIST_OPTS_COMMON_0=ee.$a)(e),Ct=p._emscripten_bind_PeGTlistExtendedEntry_getEntries_0=e=>(Ct=p._emscripten_bind_PeGTlistExtendedEntry_getEntries_0=ee.ab)(e),It=p._emscripten_bind_PeGTlistExtendedEntry_getSteps_0=e=>(It=p._emscripten_bind_PeGTlistExtendedEntry_getSteps_0=ee.bb)(e),Lt=p._emscripten_bind_PeGTlistExtendedEntry_Delete_1=e=>(Lt=p._emscripten_bind_PeGTlistExtendedEntry_Delete_1=ee.cb)(e),Ut=p._emscripten_bind_PeGTlistExtendedGTs_getDirection_0=e=>(Ut=p._emscripten_bind_PeGTlistExtendedGTs_getDirection_0=ee.db)(e),Ft=p._emscripten_bind_PeGTlistExtendedGTs_getGeogtran_0=e=>(Ft=p._emscripten_bind_PeGTlistExtendedGTs_getGeogtran_0=ee.eb)(e),wt=p._emscripten_bind_PeHorizon_getNump_0=e=>(wt=p._emscripten_bind_PeHorizon_getNump_0=ee.fb)(e),Yt=p._emscripten_bind_PeHorizon_getKind_0=e=>(Yt=p._emscripten_bind_PeHorizon_getKind_0=ee.gb)(e),xt=p._emscripten_bind_PeHorizon_getInclusive_0=e=>(xt=p._emscripten_bind_PeHorizon_getInclusive_0=ee.hb)(e),Ht=p._emscripten_bind_PeHorizon_getSize_0=e=>(Ht=p._emscripten_bind_PeHorizon_getSize_0=ee.ib)(e),Xt=p._emscripten_bind_PeHorizon_getCoord_0=e=>(Xt=p._emscripten_bind_PeHorizon_getCoord_0=ee.jb)(e),zt=p._emscripten_bind_PeInteger_PeInteger_1=e=>(zt=p._emscripten_bind_PeInteger_PeInteger_1=ee.kb)(e),Wt=p._emscripten_bind_PeInteger_get_val_0=e=>(Wt=p._emscripten_bind_PeInteger_get_val_0=ee.lb)(e),Zt=p._emscripten_bind_PeInteger_set_val_1=(e,t)=>(Zt=p._emscripten_bind_PeInteger_set_val_1=ee.mb)(e,t),qt=p._emscripten_bind_PeInteger___destroy___0=e=>(qt=p._emscripten_bind_PeInteger___destroy___0=ee.nb)(e),Bt=p._emscripten_bind_PeLineType_geodetic_distance_10=(e,t,_,r,o,n,i,c,s,P)=>(Bt=p._emscripten_bind_PeLineType_geodetic_distance_10=ee.ob)(e,t,_,r,o,n,i,c,s,P),Kt=p._emscripten_bind_PeLineType_geodetic_coordinate_9=(e,t,_,r,o,n,i,c,s)=>(Kt=p._emscripten_bind_PeLineType_geodetic_coordinate_9=ee.pb)(e,t,_,r,o,n,i,c,s),Vt=p._emscripten_bind_PeLineType_geodesic_coordinate_8=(e,t,_,r,o,n,i,c)=>(Vt=p._emscripten_bind_PeLineType_geodesic_coordinate_8=ee.qb)(e,t,_,r,o,n,i,c),kt=p._emscripten_bind_PeLineType_great_elliptic_distance_9=(e,t,_,r,o,n,i,c,s)=>(kt=p._emscripten_bind_PeLineType_great_elliptic_distance_9=ee.rb)(e,t,_,r,o,n,i,c,s),$t=p._emscripten_bind_PeMath_phi_to_eta_2=(e,t)=>($t=p._emscripten_bind_PeMath_phi_to_eta_2=ee.sb)(e,t),Jt=p._emscripten_bind_PeMath_eta_to_phi_2=(e,t)=>(Jt=p._emscripten_bind_PeMath_eta_to_phi_2=ee.tb)(e,t),Qt=p._emscripten_bind_PeMath_phi_to_phig_2=(e,t)=>(Qt=p._emscripten_bind_PeMath_phi_to_phig_2=ee.ub)(e,t),e_=p._emscripten_bind_PeMath_q_3=(e,t,_)=>(e_=p._emscripten_bind_PeMath_q_3=ee.vb)(e,t,_),t_=p._emscripten_bind_PeMath_q90_2=(e,t)=>(t_=p._emscripten_bind_PeMath_q90_2=ee.wb)(e,t),__=p._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_NEW_0=e=>(__=p._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_NEW_0=ee.xb)(e),r_=p._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_OLD_0=e=>(r_=p._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_OLD_0=ee.yb)(e),o_=p._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_AUTO_0=e=>(o_=p._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_AUTO_0=ee.zb)(e),n_=p._emscripten_bind_PeNotationMgrs_get_PE_MGRS_180_ZONE_1_PLUS_0=e=>(n_=p._emscripten_bind_PeNotationMgrs_get_PE_MGRS_180_ZONE_1_PLUS_0=ee.Ab)(e),p_=p._emscripten_bind_PeNotationMgrs_get_PE_MGRS_ADD_SPACES_0=e=>(p_=p._emscripten_bind_PeNotationMgrs_get_PE_MGRS_ADD_SPACES_0=ee.Bb)(e),i_=p._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NONE_0=e=>(i_=p._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NONE_0=ee.Cb)(e),c_=p._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_0=e=>(c_=p._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_0=ee.Db)(e),s_=p._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_STRICT_0=e=>(s_=p._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_STRICT_0=ee.Eb)(e),P_=p._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_ADD_SPACES_0=e=>(P_=p._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_ADD_SPACES_0=ee.Fb)(e),a_=p._emscripten_bind_PeParameter_getValue_0=e=>(a_=p._emscripten_bind_PeParameter_getValue_0=ee.Gb)(e),g_=p._emscripten_bind_PeParameter_getCode_0=e=>(g_=p._emscripten_bind_PeParameter_getCode_0=ee.Hb)(e),y_=p._emscripten_bind_PeParameter_getName_1=(e,t)=>(y_=p._emscripten_bind_PeParameter_getName_1=ee.Ib)(e,t),d_=p._emscripten_bind_PeParameter_getType_0=e=>(d_=p._emscripten_bind_PeParameter_getType_0=ee.Jb)(e),u_=p._emscripten_bind_PePCSInfo_getCentralMeridian_0=e=>(u_=p._emscripten_bind_PePCSInfo_getCentralMeridian_0=ee.Kb)(e),b_=p._emscripten_bind_PePCSInfo_getDomainMinx_0=e=>(b_=p._emscripten_bind_PePCSInfo_getDomainMinx_0=ee.Lb)(e),f_=p._emscripten_bind_PePCSInfo_getDomainMiny_0=e=>(f_=p._emscripten_bind_PePCSInfo_getDomainMiny_0=ee.Mb)(e),E_=p._emscripten_bind_PePCSInfo_getDomainMaxx_0=e=>(E_=p._emscripten_bind_PePCSInfo_getDomainMaxx_0=ee.Nb)(e),m_=p._emscripten_bind_PePCSInfo_getDomainMaxy_0=e=>(m_=p._emscripten_bind_PePCSInfo_getDomainMaxy_0=ee.Ob)(e),T_=p._emscripten_bind_PePCSInfo_getNorthPoleLocation_0=e=>(T_=p._emscripten_bind_PePCSInfo_getNorthPoleLocation_0=ee.Pb)(e),O_=p._emscripten_bind_PePCSInfo_getNorthPoleGeometry_0=e=>(O_=p._emscripten_bind_PePCSInfo_getNorthPoleGeometry_0=ee.Qb)(e),S_=p._emscripten_bind_PePCSInfo_getSouthPoleLocation_0=e=>(S_=p._emscripten_bind_PePCSInfo_getSouthPoleLocation_0=ee.Rb)(e),l_=p._emscripten_bind_PePCSInfo_getSouthPoleGeometry_0=e=>(l_=p._emscripten_bind_PePCSInfo_getSouthPoleGeometry_0=ee.Sb)(e),h_=p._emscripten_bind_PePCSInfo_isDensificationNeeded_0=e=>(h_=p._emscripten_bind_PePCSInfo_isDensificationNeeded_0=ee.Tb)(e),N_=p._emscripten_bind_PePCSInfo_isGcsHorizonMultiOverlap_0=e=>(N_=p._emscripten_bind_PePCSInfo_isGcsHorizonMultiOverlap_0=ee.Ub)(e),M_=p._emscripten_bind_PePCSInfo_isPannableRectangle_0=e=>(M_=p._emscripten_bind_PePCSInfo_isPannableRectangle_0=ee.Vb)(e),D_=p._emscripten_bind_PePCSInfo_generate_2=(e,t)=>(D_=p._emscripten_bind_PePCSInfo_generate_2=ee.Wb)(e,t),v_=p._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_NONE_0=e=>(v_=p._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_NONE_0=ee.Xb)(e),A_=p._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_DOMAIN_0=e=>(A_=p._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_DOMAIN_0=ee.Yb)(e),j_=p._emscripten_bind_PePCSInfo_get_PE_POLE_OUTSIDE_BOUNDARY_0=e=>(j_=p._emscripten_bind_PePCSInfo_get_PE_POLE_OUTSIDE_BOUNDARY_0=ee.Zb)(e),R_=p._emscripten_bind_PePCSInfo_get_PE_POLE_POINT_0=e=>(R_=p._emscripten_bind_PePCSInfo_get_PE_POLE_POINT_0=ee._b)(e),G_=p._emscripten_bind_PePrimem_getLongitude_0=e=>(G_=p._emscripten_bind_PePrimem_getLongitude_0=ee.$b)(e),C_=p._emscripten_bind_PePrimem_getCode_0=e=>(C_=p._emscripten_bind_PePrimem_getCode_0=ee.ac)(e),I_=p._emscripten_bind_PePrimem_getName_1=(e,t)=>(I_=p._emscripten_bind_PePrimem_getName_1=ee.bc)(e,t),L_=p._emscripten_bind_PePrimem_getType_0=e=>(L_=p._emscripten_bind_PePrimem_getType_0=ee.cc)(e),U_=p._emscripten_bind_PeProjcs_Delete_0=e=>(U_=p._emscripten_bind_PeProjcs_Delete_0=ee.dc)(e),F_=p._emscripten_bind_PeProjcs_getGeogcs_0=e=>(F_=p._emscripten_bind_PeProjcs_getGeogcs_0=ee.ec)(e),w_=p._emscripten_bind_PeProjcs_getProjection_0=e=>(w_=p._emscripten_bind_PeProjcs_getProjection_0=ee.fc)(e),Y_=p._emscripten_bind_PeProjcs_getParameters_0=e=>(Y_=p._emscripten_bind_PeProjcs_getParameters_0=ee.gc)(e),x_=p._emscripten_bind_PeProjcs_getUnit_0=e=>(x_=p._emscripten_bind_PeProjcs_getUnit_0=ee.hc)(e),H_=p._emscripten_bind_PeProjcs_loadConstants_0=e=>(H_=p._emscripten_bind_PeProjcs_loadConstants_0=ee.ic)(e),X_=p._emscripten_bind_PeProjcs_horizonGcsGenerate_0=e=>(X_=p._emscripten_bind_PeProjcs_horizonGcsGenerate_0=ee.jc)(e),z_=p._emscripten_bind_PeProjcs_horizonPcsGenerate_0=e=>(z_=p._emscripten_bind_PeProjcs_horizonPcsGenerate_0=ee.kc)(e),W_=p._emscripten_bind_PeProjcs_isEqual_1=(e,t)=>(W_=p._emscripten_bind_PeProjcs_isEqual_1=ee.lc)(e,t),Z_=p._emscripten_bind_PeProjcs_getCode_0=e=>(Z_=p._emscripten_bind_PeProjcs_getCode_0=ee.mc)(e),q_=p._emscripten_bind_PeProjcs_getName_1=(e,t)=>(q_=p._emscripten_bind_PeProjcs_getName_1=ee.nc)(e,t),B_=p._emscripten_bind_PeProjcs_getType_0=e=>(B_=p._emscripten_bind_PeProjcs_getType_0=ee.oc)(e),K_=p._emscripten_bind_PeSpheroid_getAxis_0=e=>(K_=p._emscripten_bind_PeSpheroid_getAxis_0=ee.pc)(e),V_=p._emscripten_bind_PeSpheroid_getFlattening_0=e=>(V_=p._emscripten_bind_PeSpheroid_getFlattening_0=ee.qc)(e),k_=p._emscripten_bind_PeSpheroid_getCode_0=e=>(k_=p._emscripten_bind_PeSpheroid_getCode_0=ee.rc)(e),$_=p._emscripten_bind_PeSpheroid_getName_1=(e,t)=>($_=p._emscripten_bind_PeSpheroid_getName_1=ee.sc)(e,t),J_=p._emscripten_bind_PeSpheroid_getType_0=e=>(J_=p._emscripten_bind_PeSpheroid_getType_0=ee.tc)(e),Q_=p._emscripten_bind_PeVersion_version_string_0=e=>(Q_=p._emscripten_bind_PeVersion_version_string_0=ee.uc)(e);function er(){G>0||(Y(A),G>0||te||(te=!0,p.calledRun=!0,M||(Y(j),_(p),Y(R))))}function tr(){}function _r(e){return(e||tr).__cache__}function rr(e,t){var _=_r(t),r=_[e];return r||((r=Object.create((t||tr).prototype)).ptr=e,_[e]=r)}p._pe_getPeGTlistExtendedEntrySize=()=>(p._pe_getPeGTlistExtendedEntrySize=ee.vc)(),p._pe_getPeGTlistExtendedGTsSize=()=>(p._pe_getPeGTlistExtendedGTsSize=ee.wc)(),p._pe_getPeHorizonSize=()=>(p._pe_getPeHorizonSize=ee.xc)(),p._pe_geog_to_geog=(e,t,_,r,o)=>(p._pe_geog_to_geog=ee.zc)(e,t,_,r,o),p._pe_geog_to_proj=(e,t,_)=>(p._pe_geog_to_proj=ee.Ac)(e,t,_),p._pe_geog_to_dd=(e,t,_,r,o)=>(p._pe_geog_to_dd=ee.Bc)(e,t,_,r,o),p._pe_dd_to_geog=(e,t,_,r)=>(p._pe_dd_to_geog=ee.Cc)(e,t,_,r),p._pe_geog_to_ddm=(e,t,_,r,o)=>(p._pe_geog_to_ddm=ee.Dc)(e,t,_,r,o),p._pe_ddm_to_geog=(e,t,_,r)=>(p._pe_ddm_to_geog=ee.Ec)(e,t,_,r),p._pe_geog_to_dms=(e,t,_,r,o)=>(p._pe_geog_to_dms=ee.Fc)(e,t,_,r,o),p._pe_dms_to_geog=(e,t,_,r)=>(p._pe_dms_to_geog=ee.Gc)(e,t,_,r),p._pe_geog_to_mgrs_extended=(e,t,_,r,o,n,i)=>(p._pe_geog_to_mgrs_extended=ee.Hc)(e,t,_,r,o,n,i),p._pe_mgrs_to_geog_extended=(e,t,_,r,o)=>(p._pe_mgrs_to_geog_extended=ee.Ic)(e,t,_,r,o),p._pe_geog_to_usng=(e,t,_,r,o,n,i)=>(p._pe_geog_to_usng=ee.Jc)(e,t,_,r,o,n,i),p._pe_usng_to_geog=(e,t,_,r)=>(p._pe_usng_to_geog=ee.Kc)(e,t,_,r),p._pe_geog_to_utm=(e,t,_,r,o)=>(p._pe_geog_to_utm=ee.Lc)(e,t,_,r,o),p._pe_utm_to_geog=(e,t,_,r,o)=>(p._pe_utm_to_geog=ee.Mc)(e,t,_,r,o),p._pe_object_to_string_ext=(e,t,_)=>(p._pe_object_to_string_ext=ee.Nc)(e,t,_),p._pe_proj_to_geog_center=(e,t,_,r)=>(p._pe_proj_to_geog_center=ee.Oc)(e,t,_,r),p.getValue=function(e,t="i8"){switch(t.endsWith("*")&&(t="*"),t){case"i1":case"i8":return m[e];case"i16":return O[e>>1];case"i32":return S[e>>2];case"i64":I("to do getValue(i64) use WASM_BIGINT");case"float":return h[e>>2];case"double":return N[e>>3];case"*":return l[e>>2];default:I(`invalid type for getValue: ${t}`)}},p.UTF8ToString=X,C=function e(){te||er(),te||(C=e)},er(),tr.prototype=Object.create(tr.prototype),tr.prototype.constructor=tr,tr.prototype.__class__=tr,tr.__cache__={},p.WrapperObject=tr,p.getCache=_r,p.wrapPointer=rr,p.castObject=function(e,t){return rr(e.ptr,t)},p.NULL=rr(0),p.destroy=function(e){if(!e.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";e.__destroy__(),delete _r(e.__class__)[e.ptr]},p.compare=function(e,t){return e.ptr===t.ptr},p.getPointer=function(e){return e.ptr},p.getClass=function(e){return e.__class__};var or={buffer:0,size:0,pos:0,temps:[],needed:0,prepare(){if(or.needed){for(var e=0;e<or.temps.length;e++)p._webidl_free(or.temps[e]);or.temps.length=0,p._webidl_free(or.buffer),or.buffer=0,or.size+=or.needed,or.needed=0}or.buffer||(or.size+=128,or.buffer=p._webidl_malloc(or.size),D(or.buffer)),or.pos=0},alloc(e,t){D(or.buffer);var _,r=t.BYTES_PER_ELEMENT,o=e.length*r;return o=B(o,8),or.pos+o>=or.size?(D(o>0),or.needed+=o,_=p._webidl_malloc(o),or.temps.push(_)):(_=or.buffer+or.pos,or.pos+=o),_},copy(e,t,_){_/=t.BYTES_PER_ELEMENT;for(var r=0;r<e.length;r++)t[_+r]=e[r]}};function nr(e){if("string"==typeof e){var t=function(e){var t=(e=>{for(var t=0,_=0;_<e.length;++_){var r=e.charCodeAt(_);r<=127?t++:r<=2047?t+=2:r>=55296&&r<=57343?(t+=4,++_):t+=3}return t})(e)+1,_=new Array(t);return z(e,_,0,_.length),_}(e),_=or.alloc(t,m);return or.copy(t,m,_),_}return e}function pr(e){if("object"==typeof e){var t=or.alloc(e,m);return or.copy(e,m,t),t}return e}function ir(){throw"cannot construct a PeObject, no constructor in IDL"}function cr(){throw"cannot construct a PeCoordsys, no constructor in IDL"}function sr(){throw"cannot construct a PeUnit, no constructor in IDL"}function Pr(){throw"cannot construct a VoidPtr, no constructor in IDL"}function ar(){throw"cannot construct a PeAngunit, no constructor in IDL"}function gr(){throw"cannot construct a PeDatum, no constructor in IDL"}function yr(){throw"cannot construct a PeDefs, no constructor in IDL"}function dr(e){e&&"object"==typeof e&&(e=e.ptr),this.ptr=et(e),_r(dr)[this.ptr]=this}function ur(){throw"cannot construct a PeFactory, no constructor in IDL"}function br(e,t,_,r,o,n){e&&"object"==typeof e&&(e=e.ptr),t&&"object"==typeof t&&(t=t.ptr),_&&"object"==typeof _&&(_=_.ptr),r&&"object"==typeof r&&(r=r.ptr),o&&"object"==typeof o&&(o=o.ptr),n&&"object"==typeof n&&(n=n.ptr),this.ptr=ct(e,t,_,r,o,n),_r(br)[this.ptr]=this}function fr(){throw"cannot construct a PeGeogcs, no constructor in IDL"}function Er(){throw"cannot construct a PeGeogtran, no constructor in IDL"}function mr(){throw"cannot construct a PeGTlistExtended, no constructor in IDL"}function Tr(){throw"cannot construct a PeGTlistExtendedEntry, no constructor in IDL"}function Or(){throw"cannot construct a PeGTlistExtendedGTs, no constructor in IDL"}function Sr(){throw"cannot construct a PeHorizon, no constructor in IDL"}function lr(e){e&&"object"==typeof e&&(e=e.ptr),this.ptr=zt(e),_r(lr)[this.ptr]=this}function hr(){throw"cannot construct a PeLineType, no constructor in IDL"}function Nr(){throw"cannot construct a PeMath, no constructor in IDL"}function Mr(){throw"cannot construct a PeNotationMgrs, no constructor in IDL"}function Dr(){throw"cannot construct a PeNotationUtm, no constructor in IDL"}function vr(){throw"cannot construct a PeParameter, no constructor in IDL"}function Ar(){throw"cannot construct a PePCSInfo, no constructor in IDL"}function jr(){throw"cannot construct a PePrimem, no constructor in IDL"}function Rr(){throw"cannot construct a PeProjcs, no constructor in IDL"}function Gr(){throw"cannot construct a PeSpheroid, no constructor in IDL"}function Cr(){throw"cannot construct a PeVersion, no constructor in IDL"}return ir.prototype=Object.create(tr.prototype),ir.prototype.constructor=ir,ir.prototype.__class__=ir,ir.__cache__={},p.PeObject=ir,ir.prototype.getCode=ir.prototype.getCode=function(){var e=this.ptr;return _e(e)},ir.prototype.getName=ir.prototype.getName=function(e){var t=this.ptr;return or.prepare(),"object"==typeof e&&(e=pr(e)),X(re(t,e))},ir.prototype.getType=ir.prototype.getType=function(){var e=this.ptr;return oe(e)},cr.prototype=Object.create(ir.prototype),cr.prototype.constructor=cr,cr.prototype.__class__=cr,cr.__cache__={},p.PeCoordsys=cr,cr.prototype.isEqual=cr.prototype.isEqual=function(e){var t=this.ptr;return e&&"object"==typeof e&&(e=e.ptr),!!ne(t,e)},cr.prototype.getCode=cr.prototype.getCode=function(){var e=this.ptr;return pe(e)},cr.prototype.getName=cr.prototype.getName=function(e){var t=this.ptr;return or.prepare(),"object"==typeof e&&(e=pr(e)),X(ie(t,e))},cr.prototype.getType=cr.prototype.getType=function(){var e=this.ptr;return ce(e)},sr.prototype=Object.create(ir.prototype),sr.prototype.constructor=sr,sr.prototype.__class__=sr,sr.__cache__={},p.PeUnit=sr,sr.prototype.getUnitFactor=sr.prototype.getUnitFactor=function(){var e=this.ptr;return se(e)},sr.prototype.getCode=sr.prototype.getCode=function(){var e=this.ptr;return Pe(e)},sr.prototype.getName=sr.prototype.getName=function(e){var t=this.ptr;return or.prepare(),"object"==typeof e&&(e=pr(e)),X(ae(t,e))},sr.prototype.getType=sr.prototype.getType=function(){var e=this.ptr;return ge(e)},Pr.prototype=Object.create(tr.prototype),Pr.prototype.constructor=Pr,Pr.prototype.__class__=Pr,Pr.__cache__={},p.VoidPtr=Pr,Pr.prototype.__destroy__=Pr.prototype.__destroy__=function(){var e=this.ptr;ye(e)},ar.prototype=Object.create(sr.prototype),ar.prototype.constructor=ar,ar.prototype.__class__=ar,ar.__cache__={},p.PeAngunit=ar,ar.prototype.getCode=ar.prototype.getCode=function(){var e=this.ptr;return de(e)},ar.prototype.getName=ar.prototype.getName=function(e){var t=this.ptr;return or.prepare(),"object"==typeof e&&(e=pr(e)),X(ue(t,e))},ar.prototype.getType=ar.prototype.getType=function(){var e=this.ptr;return be(e)},ar.prototype.getUnitFactor=ar.prototype.getUnitFactor=function(){var e=this.ptr;return fe(e)},gr.prototype=Object.create(ir.prototype),gr.prototype.constructor=gr,gr.prototype.__class__=gr,gr.__cache__={},p.PeDatum=gr,gr.prototype.getSpheroid=gr.prototype.getSpheroid=function(){var e=this.ptr;return rr(Ee(e),Gr)},gr.prototype.getCode=gr.prototype.getCode=function(){var e=this.ptr;return me(e)},gr.prototype.getName=gr.prototype.getName=function(e){var t=this.ptr;return or.prepare(),"object"==typeof e&&(e=pr(e)),X(Te(t,e))},gr.prototype.getType=gr.prototype.getType=function(){var e=this.ptr;return Oe(e)},yr.prototype=Object.create(tr.prototype),yr.prototype.constructor=yr,yr.prototype.__class__=yr,yr.__cache__={},p.PeDefs=yr,yr.prototype.get_PE_BUFFER_MAX=yr.prototype.get_PE_BUFFER_MAX=function(){var e=this.ptr;return Se(e)},Object.defineProperty(yr.prototype,"PE_BUFFER_MAX",{get:yr.prototype.get_PE_BUFFER_MAX}),yr.prototype.get_PE_NAME_MAX=yr.prototype.get_PE_NAME_MAX=function(){var e=this.ptr;return le(e)},Object.defineProperty(yr.prototype,"PE_NAME_MAX",{get:yr.prototype.get_PE_NAME_MAX}),yr.prototype.get_PE_MGRS_MAX=yr.prototype.get_PE_MGRS_MAX=function(){var e=this.ptr;return he(e)},Object.defineProperty(yr.prototype,"PE_MGRS_MAX",{get:yr.prototype.get_PE_MGRS_MAX}),yr.prototype.get_PE_USNG_MAX=yr.prototype.get_PE_USNG_MAX=function(){var e=this.ptr;return Ne(e)},Object.defineProperty(yr.prototype,"PE_USNG_MAX",{get:yr.prototype.get_PE_USNG_MAX}),yr.prototype.get_PE_DD_MAX=yr.prototype.get_PE_DD_MAX=function(){var e=this.ptr;return Me(e)},Object.defineProperty(yr.prototype,"PE_DD_MAX",{get:yr.prototype.get_PE_DD_MAX}),yr.prototype.get_PE_DMS_MAX=yr.prototype.get_PE_DMS_MAX=function(){var e=this.ptr;return De(e)},Object.defineProperty(yr.prototype,"PE_DMS_MAX",{get:yr.prototype.get_PE_DMS_MAX}),yr.prototype.get_PE_DDM_MAX=yr.prototype.get_PE_DDM_MAX=function(){var e=this.ptr;return ve(e)},Object.defineProperty(yr.prototype,"PE_DDM_MAX",{get:yr.prototype.get_PE_DDM_MAX}),yr.prototype.get_PE_UTM_MAX=yr.prototype.get_PE_UTM_MAX=function(){var e=this.ptr;return Ae(e)},Object.defineProperty(yr.prototype,"PE_UTM_MAX",{get:yr.prototype.get_PE_UTM_MAX}),yr.prototype.get_PE_PARM_MAX=yr.prototype.get_PE_PARM_MAX=function(){var e=this.ptr;return je(e)},Object.defineProperty(yr.prototype,"PE_PARM_MAX",{get:yr.prototype.get_PE_PARM_MAX}),yr.prototype.get_PE_TYPE_NONE=yr.prototype.get_PE_TYPE_NONE=function(){var e=this.ptr;return Re(e)},Object.defineProperty(yr.prototype,"PE_TYPE_NONE",{get:yr.prototype.get_PE_TYPE_NONE}),yr.prototype.get_PE_TYPE_GEOGCS=yr.prototype.get_PE_TYPE_GEOGCS=function(){var e=this.ptr;return Ge(e)},Object.defineProperty(yr.prototype,"PE_TYPE_GEOGCS",{get:yr.prototype.get_PE_TYPE_GEOGCS}),yr.prototype.get_PE_TYPE_PROJCS=yr.prototype.get_PE_TYPE_PROJCS=function(){var e=this.ptr;return Ce(e)},Object.defineProperty(yr.prototype,"PE_TYPE_PROJCS",{get:yr.prototype.get_PE_TYPE_PROJCS}),yr.prototype.get_PE_TYPE_GEOGTRAN=yr.prototype.get_PE_TYPE_GEOGTRAN=function(){var e=this.ptr;return Ie(e)},Object.defineProperty(yr.prototype,"PE_TYPE_GEOGTRAN",{get:yr.prototype.get_PE_TYPE_GEOGTRAN}),yr.prototype.get_PE_TYPE_COORDSYS=yr.prototype.get_PE_TYPE_COORDSYS=function(){var e=this.ptr;return Le(e)},Object.defineProperty(yr.prototype,"PE_TYPE_COORDSYS",{get:yr.prototype.get_PE_TYPE_COORDSYS}),yr.prototype.get_PE_TYPE_UNIT=yr.prototype.get_PE_TYPE_UNIT=function(){var e=this.ptr;return Ue(e)},Object.defineProperty(yr.prototype,"PE_TYPE_UNIT",{get:yr.prototype.get_PE_TYPE_UNIT}),yr.prototype.get_PE_TYPE_LINUNIT=yr.prototype.get_PE_TYPE_LINUNIT=function(){var e=this.ptr;return Fe(e)},Object.defineProperty(yr.prototype,"PE_TYPE_LINUNIT",{get:yr.prototype.get_PE_TYPE_LINUNIT}),yr.prototype.get_PE_STR_OPTS_NONE=yr.prototype.get_PE_STR_OPTS_NONE=function(){var e=this.ptr;return we(e)},Object.defineProperty(yr.prototype,"PE_STR_OPTS_NONE",{get:yr.prototype.get_PE_STR_OPTS_NONE}),yr.prototype.get_PE_STR_AUTH_NONE=yr.prototype.get_PE_STR_AUTH_NONE=function(){var e=this.ptr;return Ye(e)},Object.defineProperty(yr.prototype,"PE_STR_AUTH_NONE",{get:yr.prototype.get_PE_STR_AUTH_NONE}),yr.prototype.get_PE_STR_AUTH_TOP=yr.prototype.get_PE_STR_AUTH_TOP=function(){var e=this.ptr;return xe(e)},Object.defineProperty(yr.prototype,"PE_STR_AUTH_TOP",{get:yr.prototype.get_PE_STR_AUTH_TOP}),yr.prototype.get_PE_STR_NAME_CANON=yr.prototype.get_PE_STR_NAME_CANON=function(){var e=this.ptr;return He(e)},Object.defineProperty(yr.prototype,"PE_STR_NAME_CANON",{get:yr.prototype.get_PE_STR_NAME_CANON}),yr.prototype.get_PE_STR_FMT_WKT=yr.prototype.get_PE_STR_FMT_WKT=function(){var e=this.ptr;return Xe(e)},Object.defineProperty(yr.prototype,"PE_STR_FMT_WKT",{get:yr.prototype.get_PE_STR_FMT_WKT}),yr.prototype.get_PE_STR_FMT_WKT2=yr.prototype.get_PE_STR_FMT_WKT2=function(){var e=this.ptr;return ze(e)},Object.defineProperty(yr.prototype,"PE_STR_FMT_WKT2",{get:yr.prototype.get_PE_STR_FMT_WKT2}),yr.prototype.get_PE_PARM_X0=yr.prototype.get_PE_PARM_X0=function(){var e=this.ptr;return We(e)},Object.defineProperty(yr.prototype,"PE_PARM_X0",{get:yr.prototype.get_PE_PARM_X0}),yr.prototype.get_PE_PARM_ND=yr.prototype.get_PE_PARM_ND=function(){var e=this.ptr;return Ze(e)},Object.defineProperty(yr.prototype,"PE_PARM_ND",{get:yr.prototype.get_PE_PARM_ND}),yr.prototype.get_PE_TRANSFORM_1_TO_2=yr.prototype.get_PE_TRANSFORM_1_TO_2=function(){var e=this.ptr;return qe(e)},Object.defineProperty(yr.prototype,"PE_TRANSFORM_1_TO_2",{get:yr.prototype.get_PE_TRANSFORM_1_TO_2}),yr.prototype.get_PE_TRANSFORM_2_TO_1=yr.prototype.get_PE_TRANSFORM_2_TO_1=function(){var e=this.ptr;return Be(e)},Object.defineProperty(yr.prototype,"PE_TRANSFORM_2_TO_1",{get:yr.prototype.get_PE_TRANSFORM_2_TO_1}),yr.prototype.get_PE_TRANSFORM_P_TO_G=yr.prototype.get_PE_TRANSFORM_P_TO_G=function(){var e=this.ptr;return Ke(e)},Object.defineProperty(yr.prototype,"PE_TRANSFORM_P_TO_G",{get:yr.prototype.get_PE_TRANSFORM_P_TO_G}),yr.prototype.get_PE_TRANSFORM_G_TO_P=yr.prototype.get_PE_TRANSFORM_G_TO_P=function(){var e=this.ptr;return Ve(e)},Object.defineProperty(yr.prototype,"PE_TRANSFORM_G_TO_P",{get:yr.prototype.get_PE_TRANSFORM_G_TO_P}),yr.prototype.get_PE_HORIZON_RECT=yr.prototype.get_PE_HORIZON_RECT=function(){var e=this.ptr;return ke(e)},Object.defineProperty(yr.prototype,"PE_HORIZON_RECT",{get:yr.prototype.get_PE_HORIZON_RECT}),yr.prototype.get_PE_HORIZON_POLY=yr.prototype.get_PE_HORIZON_POLY=function(){var e=this.ptr;return $e(e)},Object.defineProperty(yr.prototype,"PE_HORIZON_POLY",{get:yr.prototype.get_PE_HORIZON_POLY}),yr.prototype.get_PE_HORIZON_LINE=yr.prototype.get_PE_HORIZON_LINE=function(){var e=this.ptr;return Je(e)},Object.defineProperty(yr.prototype,"PE_HORIZON_LINE",{get:yr.prototype.get_PE_HORIZON_LINE}),yr.prototype.get_PE_HORIZON_DELTA=yr.prototype.get_PE_HORIZON_DELTA=function(){var e=this.ptr;return Qe(e)},Object.defineProperty(yr.prototype,"PE_HORIZON_DELTA",{get:yr.prototype.get_PE_HORIZON_DELTA}),dr.prototype=Object.create(tr.prototype),dr.prototype.constructor=dr,dr.prototype.__class__=dr,dr.__cache__={},p.PeDouble=dr,dr.prototype.get_val=dr.prototype.get_val=function(){var e=this.ptr;return tt(e)},dr.prototype.set_val=dr.prototype.set_val=function(e){var t=this.ptr;e&&"object"==typeof e&&(e=e.ptr),_t(t,e)},Object.defineProperty(dr.prototype,"val",{get:dr.prototype.get_val,set:dr.prototype.set_val}),dr.prototype.__destroy__=dr.prototype.__destroy__=function(){var e=this.ptr;rt(e)},ur.prototype=Object.create(tr.prototype),ur.prototype.constructor=ur,ur.prototype.__class__=ur,ur.__cache__={},p.PeFactory=ur,ur.prototype.initialize=ur.prototype.initialize=function(e){or.prepare(),e=e&&"object"==typeof e?e.ptr:nr(e),ot(e)},ur.prototype.factoryByType=ur.prototype.factoryByType=function(e,t){return e&&"object"==typeof e&&(e=e.ptr),t&&"object"==typeof t&&(t=t.ptr),rr(nt(e,t),ir)},ur.prototype.fromString=ur.prototype.fromString=function(e,t){return or.prepare(),e&&"object"==typeof e&&(e=e.ptr),t=t&&"object"==typeof t?t.ptr:nr(t),rr(pt(e,t),ir)},ur.prototype.getCode=ur.prototype.getCode=function(e){return e&&"object"==typeof e&&(e=e.ptr),it(e)},br.prototype=Object.create(tr.prototype),br.prototype.constructor=br,br.prototype.__class__=br,br.__cache__={},p.PeGCSExtent=br,br.prototype.getLLon=br.prototype.getLLon=function(){var e=this.ptr;return st(e)},br.prototype.getSLat=br.prototype.getSLat=function(){var e=this.ptr;return Pt(e)},br.prototype.getRLon=br.prototype.getRLon=function(){var e=this.ptr;return at(e)},br.prototype.getNLat=br.prototype.getNLat=function(){var e=this.ptr;return gt(e)},br.prototype.__destroy__=br.prototype.__destroy__=function(){var e=this.ptr;yt(e)},fr.prototype=Object.create(cr.prototype),fr.prototype.constructor=fr,fr.prototype.__class__=fr,fr.__cache__={},p.PeGeogcs=fr,fr.prototype.Delete=fr.prototype.Delete=function(){var e=this.ptr;dt(e)},fr.prototype.cloneAlterUnits=fr.prototype.cloneAlterUnits=function(e){var t=this.ptr;return e&&"object"==typeof e&&(e=e.ptr),rr(ut(t,e),fr)},fr.prototype.getDatum=fr.prototype.getDatum=function(){var e=this.ptr;return rr(bt(e),gr)},fr.prototype.getPrimem=fr.prototype.getPrimem=function(){var e=this.ptr;return rr(ft(e),jr)},fr.prototype.getUnit=fr.prototype.getUnit=function(){var e=this.ptr;return rr(Et(e),ar)},fr.prototype.isEqual=fr.prototype.isEqual=function(e){var t=this.ptr;return e&&"object"==typeof e&&(e=e.ptr),!!mt(t,e)},fr.prototype.getCode=fr.prototype.getCode=function(){var e=this.ptr;return Tt(e)},fr.prototype.getName=fr.prototype.getName=function(e){var t=this.ptr;return or.prepare(),"object"==typeof e&&(e=pr(e)),X(Ot(t,e))},fr.prototype.getType=fr.prototype.getType=function(){var e=this.ptr;return St(e)},Er.prototype=Object.create(ir.prototype),Er.prototype.constructor=Er,Er.prototype.__class__=Er,Er.__cache__={},p.PeGeogtran=Er,Er.prototype.isEqual=Er.prototype.isEqual=function(e){var t=this.ptr;return e&&"object"==typeof e&&(e=e.ptr),!!lt(t,e)},Er.prototype.getGeogcs1=Er.prototype.getGeogcs1=function(){var e=this.ptr;return rr(ht(e),fr)},Er.prototype.getGeogcs2=Er.prototype.getGeogcs2=function(){var e=this.ptr;return rr(Nt(e),fr)},Er.prototype.getParameters=Er.prototype.getParameters=function(){var e=this.ptr;return Mt(e)},Er.prototype.loadConstants=Er.prototype.loadConstants=function(){var e=this.ptr;return!!Dt(e)},Er.prototype.getCode=Er.prototype.getCode=function(){var e=this.ptr;return vt(e)},Er.prototype.getName=Er.prototype.getName=function(e){var t=this.ptr;return or.prepare(),"object"==typeof e&&(e=pr(e)),X(At(t,e))},Er.prototype.getType=Er.prototype.getType=function(){var e=this.ptr;return jt(e)},mr.prototype=Object.create(tr.prototype),mr.prototype.constructor=mr,mr.prototype.__class__=mr,mr.__cache__={},p.PeGTlistExtended=mr,mr.prototype.getGTlist=mr.prototype.getGTlist=function(e,t,_,r,o,n){return e&&"object"==typeof e&&(e=e.ptr),t&&"object"==typeof t&&(t=t.ptr),_&&"object"==typeof _&&(_=_.ptr),r&&"object"==typeof r&&(r=r.ptr),o&&"object"==typeof o&&(o=o.ptr),n&&"object"==typeof n&&(n=n.ptr),rr(Rt(e,t,_,r,o,n),Tr)},mr.prototype.get_PE_GTLIST_OPTS_COMMON=mr.prototype.get_PE_GTLIST_OPTS_COMMON=function(){var e=this.ptr;return Gt(e)},Object.defineProperty(mr.prototype,"PE_GTLIST_OPTS_COMMON",{get:mr.prototype.get_PE_GTLIST_OPTS_COMMON}),Tr.prototype=Object.create(tr.prototype),Tr.prototype.constructor=Tr,Tr.prototype.__class__=Tr,Tr.__cache__={},p.PeGTlistExtendedEntry=Tr,Tr.prototype.getEntries=Tr.prototype.getEntries=function(){var e=this.ptr;return rr(Ct(e),Or)},Tr.prototype.getSteps=Tr.prototype.getSteps=function(){var e=this.ptr;return It(e)},Tr.prototype.Delete=Tr.prototype.Delete=function(e){e&&"object"==typeof e&&(e=e.ptr),Lt(e)},Or.prototype=Object.create(tr.prototype),Or.prototype.constructor=Or,Or.prototype.__class__=Or,Or.__cache__={},p.PeGTlistExtendedGTs=Or,Or.prototype.getDirection=Or.prototype.getDirection=function(){var e=this.ptr;return Ut(e)},Or.prototype.getGeogtran=Or.prototype.getGeogtran=function(){var e=this.ptr;return rr(Ft(e),Er)},Sr.prototype=Object.create(tr.prototype),Sr.prototype.constructor=Sr,Sr.prototype.__class__=Sr,Sr.__cache__={},p.PeHorizon=Sr,Sr.prototype.getNump=Sr.prototype.getNump=function(){var e=this.ptr;return wt(e)},Sr.prototype.getKind=Sr.prototype.getKind=function(){var e=this.ptr;return Yt(e)},Sr.prototype.getInclusive=Sr.prototype.getInclusive=function(){var e=this.ptr;return xt(e)},Sr.prototype.getSize=Sr.prototype.getSize=function(){var e=this.ptr;return Ht(e)},Sr.prototype.getCoord=Sr.prototype.getCoord=function(){var e=this.ptr;return Xt(e)},lr.prototype=Object.create(tr.prototype),lr.prototype.constructor=lr,lr.prototype.__class__=lr,lr.__cache__={},p.PeInteger=lr,lr.prototype.get_val=lr.prototype.get_val=function(){var e=this.ptr;return Wt(e)},lr.prototype.set_val=lr.prototype.set_val=function(e){var t=this.ptr;e&&"object"==typeof e&&(e=e.ptr),Zt(t,e)},Object.defineProperty(lr.prototype,"val",{get:lr.prototype.get_val,set:lr.prototype.set_val}),lr.prototype.__destroy__=lr.prototype.__destroy__=function(){var e=this.ptr;qt(e)},hr.prototype=Object.create(tr.prototype),hr.prototype.constructor=hr,hr.prototype.__class__=hr,hr.__cache__={},p.PeLineType=hr,hr.prototype.geodetic_distance=hr.prototype.geodetic_distance=function(e,t,_,r,o,n,p,i,c,s){e&&"object"==typeof e&&(e=e.ptr),t&&"object"==typeof t&&(t=t.ptr),_&&"object"==typeof _&&(_=_.ptr),r&&"object"==typeof r&&(r=r.ptr),o&&"object"==typeof o&&(o=o.ptr),n&&"object"==typeof n&&(n=n.ptr),p&&"object"==typeof p&&(p=p.ptr),i&&"object"==typeof i&&(i=i.ptr),c&&"object"==typeof c&&(c=c.ptr),s&&"object"==typeof s&&(s=s.ptr),Bt(e,t,_,r,o,n,p,i,c,s)},hr.prototype.geodetic_coordinate=hr.prototype.geodetic_coordinate=function(e,t,_,r,o,n,p,i,c){e&&"object"==typeof e&&(e=e.ptr),t&&"object"==typeof t&&(t=t.ptr),_&&"object"==typeof _&&(_=_.ptr),r&&"object"==typeof r&&(r=r.ptr),o&&"object"==typeof o&&(o=o.ptr),n&&"object"==typeof n&&(n=n.ptr),p&&"object"==typeof p&&(p=p.ptr),i&&"object"==typeof i&&(i=i.ptr),c&&"object"==typeof c&&(c=c.ptr),Kt(e,t,_,r,o,n,p,i,c)},hr.prototype.geodesic_coordinate=hr.prototype.geodesic_coordinate=function(e,t,_,r,o,n,p,i){e&&"object"==typeof e&&(e=e.ptr),t&&"object"==typeof t&&(t=t.ptr),_&&"object"==typeof _&&(_=_.ptr),r&&"object"==typeof r&&(r=r.ptr),o&&"object"==typeof o&&(o=o.ptr),n&&"object"==typeof n&&(n=n.ptr),p&&"object"==typeof p&&(p=p.ptr),i&&"object"==typeof i&&(i=i.ptr),Vt(e,t,_,r,o,n,p,i)},hr.prototype.great_elliptic_distance=hr.prototype.great_elliptic_distance=function(e,t,_,r,o,n,p,i,c){e&&"object"==typeof e&&(e=e.ptr),t&&"object"==typeof t&&(t=t.ptr),_&&"object"==typeof _&&(_=_.ptr),r&&"object"==typeof r&&(r=r.ptr),o&&"object"==typeof o&&(o=o.ptr),n&&"object"==typeof n&&(n=n.ptr),p&&"object"==typeof p&&(p=p.ptr),i&&"object"==typeof i&&(i=i.ptr),c&&"object"==typeof c&&(c=c.ptr),kt(e,t,_,r,o,n,p,i,c)},Nr.prototype=Object.create(tr.prototype),Nr.prototype.constructor=Nr,Nr.prototype.__class__=Nr,Nr.__cache__={},p.PeMath=Nr,Nr.prototype.phi_to_eta=Nr.prototype.phi_to_eta=function(e,t){return e&&"object"==typeof e&&(e=e.ptr),t&&"object"==typeof t&&(t=t.ptr),$t(e,t)},Nr.prototype.eta_to_phi=Nr.prototype.eta_to_phi=function(e,t){return e&&"object"==typeof e&&(e=e.ptr),t&&"object"==typeof t&&(t=t.ptr),Jt(e,t)},Nr.prototype.phi_to_phig=Nr.prototype.phi_to_phig=function(e,t){return e&&"object"==typeof e&&(e=e.ptr),t&&"object"==typeof t&&(t=t.ptr),Qt(e,t)},Nr.prototype.q=Nr.prototype.q=function(e,t,_){return e&&"object"==typeof e&&(e=e.ptr),t&&"object"==typeof t&&(t=t.ptr),_&&"object"==typeof _&&(_=_.ptr),e_(e,t,_)},Nr.prototype.q90=Nr.prototype.q90=function(e,t){return e&&"object"==typeof e&&(e=e.ptr),t&&"object"==typeof t&&(t=t.ptr),t_(e,t)},Mr.prototype=Object.create(tr.prototype),Mr.prototype.constructor=Mr,Mr.prototype.__class__=Mr,Mr.__cache__={},p.PeNotationMgrs=Mr,Mr.prototype.get_PE_MGRS_STYLE_NEW=Mr.prototype.get_PE_MGRS_STYLE_NEW=function(){var e=this.ptr;return __(e)},Object.defineProperty(Mr.prototype,"PE_MGRS_STYLE_NEW",{get:Mr.prototype.get_PE_MGRS_STYLE_NEW}),Mr.prototype.get_PE_MGRS_STYLE_OLD=Mr.prototype.get_PE_MGRS_STYLE_OLD=function(){var e=this.ptr;return r_(e)},Object.defineProperty(Mr.prototype,"PE_MGRS_STYLE_OLD",{get:Mr.prototype.get_PE_MGRS_STYLE_OLD}),Mr.prototype.get_PE_MGRS_STYLE_AUTO=Mr.prototype.get_PE_MGRS_STYLE_AUTO=function(){var e=this.ptr;return o_(e)},Object.defineProperty(Mr.prototype,"PE_MGRS_STYLE_AUTO",{get:Mr.prototype.get_PE_MGRS_STYLE_AUTO}),Mr.prototype.get_PE_MGRS_180_ZONE_1_PLUS=Mr.prototype.get_PE_MGRS_180_ZONE_1_PLUS=function(){var e=this.ptr;return n_(e)},Object.defineProperty(Mr.prototype,"PE_MGRS_180_ZONE_1_PLUS",{get:Mr.prototype.get_PE_MGRS_180_ZONE_1_PLUS}),Mr.prototype.get_PE_MGRS_ADD_SPACES=Mr.prototype.get_PE_MGRS_ADD_SPACES=function(){var e=this.ptr;return p_(e)},Object.defineProperty(Mr.prototype,"PE_MGRS_ADD_SPACES",{get:Mr.prototype.get_PE_MGRS_ADD_SPACES}),Dr.prototype=Object.create(tr.prototype),Dr.prototype.constructor=Dr,Dr.prototype.__class__=Dr,Dr.__cache__={},p.PeNotationUtm=Dr,Dr.prototype.get_PE_UTM_OPTS_NONE=Dr.prototype.get_PE_UTM_OPTS_NONE=function(){var e=this.ptr;return i_(e)},Object.defineProperty(Dr.prototype,"PE_UTM_OPTS_NONE",{get:Dr.prototype.get_PE_UTM_OPTS_NONE}),Dr.prototype.get_PE_UTM_OPTS_NS=Dr.prototype.get_PE_UTM_OPTS_NS=function(){var e=this.ptr;return c_(e)},Object.defineProperty(Dr.prototype,"PE_UTM_OPTS_NS",{get:Dr.prototype.get_PE_UTM_OPTS_NS}),Dr.prototype.get_PE_UTM_OPTS_NS_STRICT=Dr.prototype.get_PE_UTM_OPTS_NS_STRICT=function(){var e=this.ptr;return s_(e)},Object.defineProperty(Dr.prototype,"PE_UTM_OPTS_NS_STRICT",{get:Dr.prototype.get_PE_UTM_OPTS_NS_STRICT}),Dr.prototype.get_PE_UTM_OPTS_ADD_SPACES=Dr.prototype.get_PE_UTM_OPTS_ADD_SPACES=function(){var e=this.ptr;return P_(e)},Object.defineProperty(Dr.prototype,"PE_UTM_OPTS_ADD_SPACES",{get:Dr.prototype.get_PE_UTM_OPTS_ADD_SPACES}),vr.prototype=Object.create(ir.prototype),vr.prototype.constructor=vr,vr.prototype.__class__=vr,vr.__cache__={},p.PeParameter=vr,vr.prototype.getValue=vr.prototype.getValue=function(){var e=this.ptr;return a_(e)},vr.prototype.getCode=vr.prototype.getCode=function(){var e=this.ptr;return g_(e)},vr.prototype.getName=vr.prototype.getName=function(e){var t=this.ptr;return or.prepare(),"object"==typeof e&&(e=pr(e)),X(y_(t,e))},vr.prototype.getType=vr.prototype.getType=function(){var e=this.ptr;return d_(e)},Ar.prototype=Object.create(tr.prototype),Ar.prototype.constructor=Ar,Ar.prototype.__class__=Ar,Ar.__cache__={},p.PePCSInfo=Ar,Ar.prototype.getCentralMeridian=Ar.prototype.getCentralMeridian=function(){var e=this.ptr;return u_(e)},Ar.prototype.getDomainMinx=Ar.prototype.getDomainMinx=function(){var e=this.ptr;return b_(e)},Ar.prototype.getDomainMiny=Ar.prototype.getDomainMiny=function(){var e=this.ptr;return f_(e)},Ar.prototype.getDomainMaxx=Ar.prototype.getDomainMaxx=function(){var e=this.ptr;return E_(e)},Ar.prototype.getDomainMaxy=Ar.prototype.getDomainMaxy=function(){var e=this.ptr;return m_(e)},Ar.prototype.getNorthPoleLocation=Ar.prototype.getNorthPoleLocation=function(){var e=this.ptr;return T_(e)},Ar.prototype.getNorthPoleGeometry=Ar.prototype.getNorthPoleGeometry=function(){var e=this.ptr;return O_(e)},Ar.prototype.getSouthPoleLocation=Ar.prototype.getSouthPoleLocation=function(){var e=this.ptr;return S_(e)},Ar.prototype.getSouthPoleGeometry=Ar.prototype.getSouthPoleGeometry=function(){var e=this.ptr;return l_(e)},Ar.prototype.isDensificationNeeded=Ar.prototype.isDensificationNeeded=function(){var e=this.ptr;return!!h_(e)},Ar.prototype.isGcsHorizonMultiOverlap=Ar.prototype.isGcsHorizonMultiOverlap=function(){var e=this.ptr;return!!N_(e)},Ar.prototype.isPannableRectangle=Ar.prototype.isPannableRectangle=function(){var e=this.ptr;return!!M_(e)},Ar.prototype.generate=Ar.prototype.generate=function(e,t){return e&&"object"==typeof e&&(e=e.ptr),t&&"object"==typeof t&&(t=t.ptr),rr(D_(e,t),Ar)},Ar.prototype.get_PE_PCSINFO_OPTION_NONE=Ar.prototype.get_PE_PCSINFO_OPTION_NONE=function(){var e=this.ptr;return v_(e)},Object.defineProperty(Ar.prototype,"PE_PCSINFO_OPTION_NONE",{get:Ar.prototype.get_PE_PCSINFO_OPTION_NONE}),Ar.prototype.get_PE_PCSINFO_OPTION_DOMAIN=Ar.prototype.get_PE_PCSINFO_OPTION_DOMAIN=function(){var e=this.ptr;return A_(e)},Object.defineProperty(Ar.prototype,"PE_PCSINFO_OPTION_DOMAIN",{get:Ar.prototype.get_PE_PCSINFO_OPTION_DOMAIN}),Ar.prototype.get_PE_POLE_OUTSIDE_BOUNDARY=Ar.prototype.get_PE_POLE_OUTSIDE_BOUNDARY=function(){var e=this.ptr;return j_(e)},Object.defineProperty(Ar.prototype,"PE_POLE_OUTSIDE_BOUNDARY",{get:Ar.prototype.get_PE_POLE_OUTSIDE_BOUNDARY}),Ar.prototype.get_PE_POLE_POINT=Ar.prototype.get_PE_POLE_POINT=function(){var e=this.ptr;return R_(e)},Object.defineProperty(Ar.prototype,"PE_POLE_POINT",{get:Ar.prototype.get_PE_POLE_POINT}),jr.prototype=Object.create(ir.prototype),jr.prototype.constructor=jr,jr.prototype.__class__=jr,jr.__cache__={},p.PePrimem=jr,jr.prototype.getLongitude=jr.prototype.getLongitude=function(){var e=this.ptr;return G_(e)},jr.prototype.getCode=jr.prototype.getCode=function(){var e=this.ptr;return C_(e)},jr.prototype.getName=jr.prototype.getName=function(e){var t=this.ptr;return or.prepare(),"object"==typeof e&&(e=pr(e)),X(I_(t,e))},jr.prototype.getType=jr.prototype.getType=function(){var e=this.ptr;return L_(e)},Rr.prototype=Object.create(cr.prototype),Rr.prototype.constructor=Rr,Rr.prototype.__class__=Rr,Rr.__cache__={},p.PeProjcs=Rr,Rr.prototype.Delete=Rr.prototype.Delete=function(){var e=this.ptr;U_(e)},Rr.prototype.getGeogcs=Rr.prototype.getGeogcs=function(){var e=this.ptr;return rr(F_(e),fr)},Rr.prototype.getProjection=Rr.prototype.getProjection=function(){var e=this.ptr;return rr(w_(e),ir)},Rr.prototype.getParameters=Rr.prototype.getParameters=function(){var e=this.ptr;return Y_(e)},Rr.prototype.getUnit=Rr.prototype.getUnit=function(){var e=this.ptr;return rr(x_(e),sr)},Rr.prototype.loadConstants=Rr.prototype.loadConstants=function(){var e=this.ptr;return!!H_(e)},Rr.prototype.horizonGcsGenerate=Rr.prototype.horizonGcsGenerate=function(){var e=this.ptr;return rr(X_(e),Sr)},Rr.prototype.horizonPcsGenerate=Rr.prototype.horizonPcsGenerate=function(){var e=this.ptr;return rr(z_(e),Sr)},Rr.prototype.isEqual=Rr.prototype.isEqual=function(e){var t=this.ptr;return e&&"object"==typeof e&&(e=e.ptr),!!W_(t,e)},Rr.prototype.getCode=Rr.prototype.getCode=function(){var e=this.ptr;return Z_(e)},Rr.prototype.getName=Rr.prototype.getName=function(e){var t=this.ptr;return or.prepare(),"object"==typeof e&&(e=pr(e)),X(q_(t,e))},Rr.prototype.getType=Rr.prototype.getType=function(){var e=this.ptr;return B_(e)},Gr.prototype=Object.create(ir.prototype),Gr.prototype.constructor=Gr,Gr.prototype.__class__=Gr,Gr.__cache__={},p.PeSpheroid=Gr,Gr.prototype.getAxis=Gr.prototype.getAxis=function(){var e=this.ptr;return K_(e)},Gr.prototype.getFlattening=Gr.prototype.getFlattening=function(){var e=this.ptr;return V_(e)},Gr.prototype.getCode=Gr.prototype.getCode=function(){var e=this.ptr;return k_(e)},Gr.prototype.getName=Gr.prototype.getName=function(e){var t=this.ptr;return or.prepare(),"object"==typeof e&&(e=pr(e)),X($_(t,e))},Gr.prototype.getType=Gr.prototype.getType=function(){var e=this.ptr;return J_(e)},Cr.prototype=Object.create(tr.prototype),Cr.prototype.constructor=Cr,Cr.prototype.__class__=Cr,Cr.__cache__={},p.PeVersion=Cr,Cr.prototype.version_string=Cr.prototype.version_string=function(){var e=this.ptr;return X(Q_(e))},p.ensureCache=or,p.ensureString=nr,p.ensureInt8=pr,p.ensureInt16=function(e){if("object"==typeof e){var t=or.alloc(e,O);return or.copy(e,O,t),t}return e},p.ensureInt32=function(e){if("object"==typeof e){var t=or.alloc(e,S);return or.copy(e,S,t),t}return e},p.ensureFloat32=function(e){if("object"==typeof e){var t=or.alloc(e,h);return or.copy(e,h,t),t}return e},p.ensureFloat64=function(e){if("object"==typeof e){var t=or.alloc(e,N);return or.copy(e,N,t),t}return e},i},e.exports=_),n.exports;var e,t,_}()),i=Object.freeze(Object.defineProperty({__proto__:null,default:p},Symbol.toStringTag,{value:"Module"}))}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4060],{4902:(e,t,i)=>{i.d(t,{A:()=>u});var r=i(90237),s=i(40608);let l=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-"+l++})}};return t=(0,r._)([(0,s.$)("esri.core.Identifiable")],t),t};let n=class extends(o(class{})){};var a;n=(0,r._)([(0,s.$)("esri.core.Identifiable")],n),(a=n||(n={})).IdentifiableMixin=o,a.NumericIdentifiableMixin=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:l++})}};return t=(0,r._)([(0,s.$)("esri.core.Identifiable.NumericIdentifiable")],t),t};const u=n},8303:(e,t,i)=>{i.d(t,{A:()=>S});var r=i(90237),s=i(92602),l=i(70333),o=i(78888),n=i(60999),a=i(49186),u=i(53966),h=i(97768),c=i(74887),p=i(84952),d=i(10107),y=(i(44208),i(87811),i(36005)),f=i(40608),m=i(43937),g=i(83531),_=i(20655),w=i(80812),A=i(41318),v=i(10407);const S=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,h.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,i){if(t.itemId)return new w.default({id:t.itemId,portal:i?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:r}=await i.e(1204).then(i.bind(i,41204));return(0,c.Te)(t),await r({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,c.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,c.QP)(e),!0))))}async setUserPrivileges(e,t){if(!s.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:i,fullEdit:r},content:{updateItem:s}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",i),this._set("userHasFullEditingPrivileges",r),this._set("userHasUpdateItemPrivileges",s)}catch(e){(0,c.QP)(e)}}async _fetchUserPrivileges(e,t){let i=this.portalItem;if(!e||!i||!i.loaded||i.sourceUrl)return this._fetchFallbackUserPrivileges(t);const r=!l.id?.findCredential(this.url),s=e===i.id;if(s&&i.portal.user)return this._getUserPrivileges(i,r);let o,n;if(s)o=i.portal.url;else try{o=await(0,g.wI)(this.url,t)}catch(e){(0,c.QP)(e)}if(!o||!(0,p.b8)(o,i.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;n=await(l.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,c.QP)(e)}const a=!0,u=!1,h=!1;if(!n)return{features:{edit:a,fullEdit:u},content:{updateItem:h}};try{if(s?await i.reload():(i=new w.default({id:e,portal:{url:o}}),await i.load(t)),i.portal.user)return this._getUserPrivileges(i,r)}catch(e){(0,c.QP)(e)}return{features:{edit:a,fullEdit:u},content:{updateItem:h}}}_getUserPrivileges(e,t){const i=(0,v.It)(e);return t&&(i.features.edit=!0),i}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,c.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?l.id?.findCredential(this.url):null;if(!t)return!0;const i=x.credential===t?x.user:await this._fetchEditingUser(e);return x.credential=t,x.user=i,null==i?.privileges||i.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const i=l.id?.findServerInfo(this.url??"");if(!i?.owningSystemUrl)return null;const r=`${i.owningSystemUrl}/sharing/rest`,s=_.A.getDefault();if(s&&s.loaded&&(0,p.S8)(s.restUrl)===(0,p.S8)(r))return s.user;const a=`${r}/community/self`,u=null!=e?e.signal:null,h=await(0,n.Ke)((0,o.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return h.ok?A.A.fromJSON(h.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const i=t?.portal,r=this.portalItem?.id&&(this.portalItem.portal||_.A.getDefault());return i&&r&&!(0,p.ut)(r.restUrl,i.restUrl)?(t.messages&&t.messages.push(new a.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,r._)([(0,d.MZ)({type:w.default})],t.prototype,"portalItem",null),(0,r._)([(0,y.w)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,r._)([(0,m.K)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,r._)([(0,d.MZ)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,r._)([(0,d.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,r._)([(0,d.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,r._)([(0,d.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,r._)([(0,f.$)("esri.layers.mixins.PortalLayer")],t),t},x={credential:null,user:null}},18768:(e,t,i)=>{i.d(t,{b:()=>a});var r=i(90237),s=i(53966),l=i(10107),o=(i(44208),i(87811),i(40608)),n=i(60694);const a=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,n.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,n.Jf)(e,s.A.getLogger(this)))}};return(0,r._)([(0,l.MZ)()],t.prototype,"title",null),(0,r._)([(0,l.MZ)({type:String})],t.prototype,"url",null),t=(0,r._)([(0,o.$)("esri.layers.mixins.ArcGISService")],t),t}},36708:(e,t,i)=>{i.d(t,{C_:()=>p,OH:()=>f,Vh:()=>m,on:()=>c,pc:()=>g,wB:()=>a,z7:()=>u});var r=i(37955),s=i(36563),l=i(97768),o=i(74887),n=i(14012);function a(e,t,i={}){return h(e,t,i,d)}function u(e,t,i={}){return h(e,t,i,y)}function h(e,t,i={},r){let s=null;const o=i.once?(e,i)=>{r(e)&&((0,l.xt)(s),t(e,i))}:(e,i)=>{r(e)&&t(e,i)};if(s=(0,n.Cn)(e,o,i.sync,i.equals),i.initial){const t=e();o(t,t)}return s}function c(e,t,i,o={}){let n=null,u=null,h=null;function c(){n&&u&&(u.remove(),o.onListenerRemove?.(n),n=null,u=null)}function p(e){o.once&&o.once&&(0,l.xt)(h),i(e)}const d=a(e,((e,i)=>{c(),(0,r.wb)(e)&&(n=e,u=(0,r.on)(e,t,p),o.onListenerAdd?.(e))}),{sync:o.sync,initial:!0});return h=(0,s.hA)((()=>{d.remove(),c()})),h}function p(e,t){return function(e,t,i){if((0,o.G4)(i))return Promise.reject((0,o.NK)());const r=e();if(t?.(r))return Promise.resolve(r);let n=null;function a(){n=(0,l.xt)(n)}return new Promise(((r,l)=>{n=(0,s.vE)([(0,o.u7)(i,(()=>{a(),l((0,o.NK)())})),h(e,(e=>{a(),r(e)}),{sync:!1,once:!0},t??d)])}))}(e,y,t)}function d(e){return!0}function y(e){return!!e}i(80559);const f={sync:!0},m={initial:!0},g={sync:!0,initial:!0}},44159:(e,t,i)=>{i.d(t,{A:()=>s});var r=i(93687);class s{static{this.pool=new r.A(s,null,null,25,50)}static getId(e,t,i,r){return"object"==typeof e?`${e.level}/${e.row}/${e.col}/${e.world}`:`${e}/${t}/${i}/${r}`}constructor(e,t,i,r){this.set(e,t,i,r)}get key(){return this}get id(){return this.toString()}get normalizedId(){return`${this.level}/${this.row}/${this.col}`}set id(e){this.set(e)}get hash(){const e=4095&this.row,t=4095&this.col,i=63&this.level;return(3&this.world)<<30|t<<22|e<<8|i}acquire(e,t,i,r){this.set(e,t,i,r)}contains(e){const t=e.level-this.level;return t>=0&&this.row===e.row>>t&&this.col===e.col>>t&&this.world===e.world}containsChild(e){const t=e.level-this.level;return t>0&&this.row===e.row>>t&&this.col===e.col>>t&&this.world===e.world}equals(e){return this.level===e.level&&this.row===e.row&&this.col===e.col&&this.world===e.world}clone(){return new s(this)}release(){this.level=0,this.row=0,this.col=0,this.world=0}set(e,t,i,r){if(null==e)this.level=0,this.row=0,this.col=0,this.world=0;else if("object"==typeof e)this.level=e.level||0,this.row=e.row||0,this.col=e.col||0,this.world=e.world||0;else if("string"==typeof e){const[t,i,r,s]=e.split("/");this.level=parseFloat(t),this.row=parseFloat(i),this.col=parseFloat(r),this.world=parseFloat(s)}else this.level=+e,this.row=+t,this.col=+i,this.world=+r||0;return this}toString(){return`${this.level}/${this.row}/${this.col}/${this.world}`}getParentKey(){return this.level<=0?null:new s(this.level-1,this.row>>1,this.col>>1,this.world)}getNormalizedNeighbor(e,t,i){const r=this.clone();return r.col+=e,r.row+=t,i.normalizeKey(r),r}getChildKeys(){const e=this.level+1,t=this.row<<1,i=this.col<<1,r=this.world;return[new s(e,t,i,r),new s(e,t,i+1,r),new s(e,t+1,i,r),new s(e,t+1,i+1,r)]}compareRowMajor(e){return this.row<e.row?-1:this.row>e.row?1:this.col<e.col?-1:this.col>e.col?1:0}}},48757:(e,t,i)=>{i.r(t),i.d(t,{default:()=>ce});var r=i(90237),s=i(78888),l=i(60999),o=i(49186),n=i(4718),a=i(92071),u=i(74887),h=i(84952),c=i(10107),p=(i(44208),i(53966)),d=i(36005),y=i(40608),f=i(43937),m=i(5443),g=i(16930),_=i(4146),w=i(52136),A=i(89186),v=i(18768),S=i(63074),x=i(69208),b=i(16131),I=i(8303),P=i(54310),R=i(25036);let M=null;var T=i(34275);class E{constructor(e,t){this._spriteSource=e,this._maxTextureSize=t,this.devicePixelRatio=1,this._spriteImageFormat="png",this._isRetina=!1,this._spritesData={},this.image=null,this.width=null,this.height=null,this.loadStatus="not-loaded","url"===e.type&&e.spriteFormat&&(this._spriteImageFormat=e.spriteFormat),e.pixelRatio&&(this.devicePixelRatio=e.pixelRatio),this.baseURL=e.spriteUrl}get spriteNames(){const e=[];for(const t in this._spritesData)e.push(t);return e.sort(),e}getSpriteInfo(e){return this._spritesData?this._spritesData[e]:null}async load(e){if(this.baseURL){this.loadStatus="loading";try{await this._loadSprites(e),this.loadStatus="loaded"}catch{this.loadStatus="failed"}}else this.loadStatus="failed"}async _loadSprites(e){this._isRetina=this.devicePixelRatio>1.15;const{width:t,height:i,data:r,json:s}=await this._getSpriteData(this._spriteSource,e),l=Object.keys(s);if(!l||0===l.length||!r)return this._spritesData=this.image=null,void(this.width=this.height=0);this._spritesData=s,this.width=t,this.height=i;const n=Math.max(this._maxTextureSize,4096);if(t>n||i>n){const e=`Sprite resource for style ${this.baseURL} is bigger than the maximum allowed of ${n} pixels}`;throw p.A.getLogger("esri.layers.support.SpriteSource").error(e),new o.A("SpriteSource",e)}let a;for(let e=0;e<r.length;e+=4)a=r[e+3]/255,r[e]=r[e]*a,r[e+1]=r[e+1]*a,r[e+2]=r[e+2]*a;this.image=r}async _getSpriteData(e,t){if("image"===e.type){let t,i;if(this.devicePixelRatio<1.15){if(!e.spriteSource1x)throw new o.A("SpriteSource","no image data provided for low resolution sprites!");t=e.spriteSource1x.image,i=e.spriteSource1x.json}else{if(!e.spriteSource2x)throw new o.A("SpriteSource","no image data provided for high resolution sprites!");t=e.spriteSource2x.image,i=e.spriteSource2x.json}return"width"in t&&"height"in t&&"data"in t&&((0,T.mw)(t.data)||(0,T.UR)(t.data))?{width:t.width,height:t.height,data:new Uint8Array(t.data),json:i}:{...U(t),json:i}}const i=(0,h.An)(this.baseURL),r=i.query?"?"+(0,h.x0)(i.query):"",l=this._isRetina?"@2x":"",n=`${i.path}${l}.${this._spriteImageFormat}${r}`,a=`${i.path}${l}.json${r}`,[u,c]=await Promise.all([(0,s.A)(a,t),(0,s.A)(n,{responseType:"image",...t})]);return{...U(c.data),json:u.data}}}function U(e){const t=document.createElement("canvas"),i=t.getContext("2d");t.width=e.width,t.height=e.height,i.drawImage(e,0,0,e.width,e.height);const r=i.getImageData(0,0,e.width,e.height);return{width:e.width,height:e.height,data:new Uint8Array(r.data)}}var z=i(87045),L=i(25943),O=i(21325),D=i(28735),j=i(44159);class C{constructor(e){this.url=e}destroy(){this._tileIndexPromise=null}async fetchTileIndex(){return this._tileIndexPromise||(this._tileIndexPromise=(0,s.A)(this.url).then((e=>e.data.index))),this._tileIndexPromise}async dataKey(e,t){const i=await this.fetchTileIndex();return(0,u.Te)(t),this._getIndexedDataKey(i,e)}_getIndexedDataKey(e,t){const i=[t];if(t.level<0||t.row<0||t.col<0||t.row>>t.level>0||t.col>>t.level>0)return null;let r=t;for(;0!==r.level;)r=new j.A(r.level-1,r.row>>1,r.col>>1,r.world),i.push(r);let s,l,o=e,n=i.pop();if(1===o)return n;for(;i.length;)if(s=i.pop(),l=(1&s.col)+((1&s.row)<<1),o){if(0===o[l]){n=null;break}if(1===o[l]){n=s;break}n=s,o=o[l]}return n}}var k=i(97768);class ${constructor(e,t){this._tilemap=e,this._tileIndexUrl=t}destroy(){this._tilemap=(0,k.pR)(this._tilemap),this._tileIndexPromise=null}async fetchTileIndex(e){return this._tileIndexPromise||(this._tileIndexPromise=(0,s.A)(this._tileIndexUrl,{query:{...e?.query}}).then((e=>e.data.index))),this._tileIndexPromise}dataKey(e,t){const{level:i,row:r,col:s}=e,l=new j.A(e);return this._tilemap.fetchAvailabilityUpsample(i,r,s,l,t).then((()=>(l.world=e.world,l))).catch((e=>{if((0,u.zf)(e))throw e;return null}))}}var B=i(91869);class N{constructor(e){this._tileUrl=e,this._promise=null,this._abortController=null,this._abortOptions=[]}getData(e){(null==this._promise||(0,u.G4)(this._abortController?.signal))&&(this._promise=this._makeRequest(this._tileUrl));const t=this._abortOptions;return t.push(e),(0,u.u7)(e,(()=>{t.every((e=>(0,u.G4)(e)))&&this._abortController.abort()})),this._promise.then((e=>(0,n.o8)(e)))}async _makeRequest(e){this._abortController=new AbortController;const{data:t}=await(0,s.A)(e,{responseType:"array-buffer",signal:this._abortController.signal});return t}}const F=new Map;function K(e,t){return(0,B.tE)(F,e,(()=>new N(e))).getData(t).finally((()=>F.delete(e)))}class Z{constructor(e,t,i){this.tilemap=null,this.tileInfo=null,this.capabilities=null,this.fullExtent=null,this.initialExtent=null,this.name=e,this.sourceUrl=t;const r=(0,h.An)(this.sourceUrl),s=(0,n.o8)(i),l=s.tiles;if(r)for(let e=0;e<l.length;e++){const t=(0,h.An)(l[e]);t&&((0,h.oP)(t.path)||(t.path=(0,h.fj)(r.path,t.path)),l[e]=(0,h.a6)(t.path,{...r.query,...t.query}))}this.tileServers=l;const o=i.capabilities&&i.capabilities.split(",").map((e=>e.toLowerCase().trim())),a=!0===i?.exportTilesAllowed,u=!0===o?.includes("tilemap"),c=a&&i.hasOwnProperty("maxExportTilesCount")?i.maxExportTilesCount:0;this.capabilities={operations:{supportsExportTiles:a,supportsTileMap:u},exportTiles:a?{maxExportTilesCount:+c}:null},this.tileInfo=z.A.fromJSON(s.tileInfo);const p=i.tileMap?(0,h.a6)((0,h.fj)(r.path,i.tileMap),r.query??{}):null;u?(this.type="vector-tile",this.tilemap=new $(new L.d({layer:{parsedUrl:r,tileInfo:this.tileInfo},minLOD:s.minLOD??this.tileInfo.lods[0].level,maxLOD:s.maxLOD??this.tileInfo.lods[this.tileInfo.lods.length-1].level}),p)):p&&(this.tilemap=new C(p)),this.fullExtent=m.A.fromJSON(i.fullExtent),this.initialExtent=m.A.fromJSON(i.initialExtent)}destroy(){this.tilemap?.destroy()}async getRefKey(e,t){return this.tilemap?this.tilemap.dataKey(e,t):e}requestTile(e,t,i,r){return function(e,t,i,r,s){const l=(0,h.An)(e),o=l.query;if(o)for(const[e,s]of Object.entries(o))switch(s){case"{x}":o[e]=r.toString();break;case"{y}":o[e]=i.toString();break;case"{z}":o[e]=t.toString()}const n=l.path;return K((0,h.a6)(n.replaceAll(/\{z\}/gi,t.toString()).replaceAll(/\{y\}/gi,i.toString()).replaceAll(/\{x\}/gi,r.toString()),{...l.query}),s)}(this.tileServers[t%this.tileServers.length],e,t,i,r)}isCompatibleWith(e){const t=this.tileInfo,i=e.tileInfo;if(!t.spatialReference.equals(i.spatialReference))return!1;if(!t.origin.equals(i.origin))return!1;if(Math.round(t.dpi)!==Math.round(i.dpi))return!1;const r=t.lods,s=i.lods,l=Math.min(r.length,s.length);for(let e=0;e<l;e++){const t=r[e],i=s[e];if(t.level!==i.level||Math.round(t.scale)!==Math.round(i.scale))return!1}return!0}}function q(...e){let t;for(const i of e)if(null!=i)if((0,h.BQ)(i)){if(t){const e=t.split("://")[0];t=e+":"+i.trim()}}else t=(0,h.oP)(i)?i:(0,h.fj)(t,i);return t?(0,h.UC)(t):void 0}async function Q(e,t,i,r,l){let o,n,a;if((0,u.Te)(l),"string"==typeof i){const e=(0,h.S8)(i);a=await(0,s.A)(e,{...l,responseType:"json",query:{f:"json",...l?.query}}),a.ssl&&(o&&(o=o.replace(/^http:/i,"https:")),n&&(n=n.replace(/^http:/i,"https:"))),o=e,n=e}else null!=i&&(a={data:i},o=i.jsonUrl||null,n=r);const c=a?.data;if(G(c))return e.styleUrl=o||null,async function(e,t,i,r){const s=i?(0,h.nM)(i):(0,h.gd)();e.styleBase=s,e.style=t,t["sprite-format"]&&"webp"===t["sprite-format"].toLowerCase()&&(e.spriteFormat="webp");const l=[];if(t.sources&&t.sources.esri){const i=t.sources.esri;i.url?await Q(e,"esri",q(s,i.url),void 0,r):l.push(Q(e,"esri",i,s,r))}for(const i of Object.keys(t.sources))"esri"!==i&&"vector"===t.sources[i].type&&(t.sources[i].url?l.push(Q(e,i,q(s,t.sources[i].url),void 0,r)):t.sources[i].tiles&&l.push(Q(e,i,t.sources[i],s,r)));await Promise.all(l)}(e,c,n,l);if(function(e){return!G(e)}(c))return e.sourceUrl?V(e,c,n,!1,t,l):(e.sourceUrl=o||null,V(e,c,n,!0,t,l));throw new Error("You must specify the URL or the JSON for a service or for a style.")}function H(e){return"object"==typeof e&&!!e&&"tilejson"in e&&null!=e.tilejson}function G(e){return!!e&&"sources"in e&&!!e.sources}async function V(e,t,i,r,s,l){const o=i?(0,h.UC)(i)+"/":(0,h.gd)(),a=function(e){const t=512;if(function(e){return e.hasOwnProperty("tileInfo")}(e)){const i=e?.tileInfo;return null!=i&&(null==i.rows&&(i.rows=t),null==i.cols&&(i.cols=t)),e}const i={xmin:-20037507.067161843,ymin:-20037507.067161843,xmax:20037507.067161843,ymax:20037507.067161843,spatialReference:{wkid:102100,latestWkid:3857}};let r=null;if(H(e)){const{bounds:t}=e;if(t){const e=(0,D.Gh)({x:t[0],y:t[1],spatialReference:(0,n.o8)(O.KK)}),i=(0,D.Gh)({x:t[2],y:t[3],spatialReference:(0,n.o8)(O.KK)});r={xmin:e.x,ymin:e.y,xmax:i.x,ymax:i.y,spatialReference:(0,n.o8)(O.ch)}}}null===r&&(r=i);let s=78271.51696400007,l=295828763.7957775;const o=[],a=e.hasOwnProperty("maxzoom")&&null!=e.maxzoom?+e.maxzoom:22;for(let e=0;e<=a;e++)o.push({level:e,scale:l,resolution:s}),s/=2,l/=2;return{capabilities:"TilesOnly",initialExtent:r,fullExtent:i,minScale:0,maxScale:0,tiles:e.tiles,tileInfo:{rows:t,cols:t,dpi:96,format:"pbf",origin:{x:-20037508.342787,y:20037508.342787},lods:o,spatialReference:(0,n.o8)(O.ch)}}}(t),u=new Z(s,(0,h.a6)(o,l?.query??{}),a);if(!r&&e.primarySourceName in e.sourceNameToSource){const t=e.sourceNameToSource[e.primarySourceName];if(!t.isCompatibleWith(u))return;null!=u.fullExtent&&(null!=t.fullExtent?t.fullExtent.union(u.fullExtent):t.fullExtent=u.fullExtent.clone()),t.tileInfo&&u.tileInfo&&t.tileInfo.lods.length<u.tileInfo.lods.length&&(t.tileInfo=u.tileInfo)}if(r&&(e.sourceBase=o,e.source=t,e.validatedSource=a,e.primarySourceName=s),e.sourceNameToSource[s]=u,!H(e)&&"defaultStyles"in t&&!e.style){if(null==t.defaultStyles)throw new Error;return"string"==typeof t.defaultStyles?Q(e,"",q(o,t.defaultStyles,"root.json"),void 0,l):Q(e,"",t.defaultStyles,q(o,"root.json"),l)}}var W=i(88788),J=i(39131),X=i(97159),Y=i(86738),ee=i(91806);const te=1e-6;function ie(e,t){if(e===t)return!0;if(null==e&&null!=t)return!1;if(null!=e&&null==t)return!1;if(null==e||null==t)return!1;if(!e.spatialReference.equals(t.spatialReference)||e.dpi!==t.dpi)return!1;const i=e.origin,r=t.origin;if(Math.abs(i.x-r.x)>=te||Math.abs(i.y-r.y)>=te)return!1;let s,l;e.lods[0].scale>t.lods[0].scale?(s=e,l=t):(l=e,s=t);for(let e=s.lods[0].scale;e>=l.lods[l.lods.length-1].scale-te;e/=2)if(Math.abs(e-l.lods[0].scale)<te)return!0;return!1}function re(e,t){if(e===t)return e;if(null==e&&null!=t)return t;if(null!=e&&null==t)return e;if(null==e||null==t)return null;const i=e.size[0],r=e.format,s=e.dpi,l=new Y.A({x:e.origin.x,y:e.origin.y}),o=e.spatialReference,n=e.lods[0].scale>t.lods[0].scale?e.lods[0]:t.lods[0],a=e.lods[e.lods.length-1].scale<=t.lods[t.lods.length-1].scale?e.lods[e.lods.length-1]:t.lods[t.lods.length-1],u=n.scale,h=n.resolution,c=a.scale,p=[];let d=u,y=h,f=0;for(;d>=c;)p.push(new ee.A({level:f,resolution:y,scale:d})),f++,d/=2,y/=2;return new z.A({size:[i,i],dpi:s,format:r||"pbf",origin:l,lods:p,spatialReference:o})}var se=i(45013);class le{constructor(e){this.getUnmaskedRenderer=e}}function oe(e){const t=e.getExtension("WEBGL_debug_renderer_info");return t?new le((()=>e.getParameter(t.UNMASKED_RENDERER_WEBGL))):null}let ne;function ae(){return ne??=function(){const e=new ue,t=function(e){if("undefined"==typeof WebGL2RenderingContext)return null;const t=document.createElement("canvas");if(!t)return null;let i=t.getContext("webgl2",{failIfMajorPerformanceCaveat:!0});if(null==i&&(i=t.getContext("webgl2"),null!=i&&(e.majorPerformanceCaveat=!0,e.unmaskedRenderer=oe(i)?.getUnmaskedRenderer()??"unknown")),null==i)return i;e.available=!0,e.maxTextureSize=i.getParameter(i.MAX_TEXTURE_SIZE),e.supportsVertexShaderSamplers=i.getParameter(i.MAX_VERTEX_TEXTURE_IMAGE_UNITS)>0;const r=i.getShaderPrecisionFormat(i.FRAGMENT_SHADER,i.HIGH_FLOAT);return r&&(e.supportsHighPrecisionFragment=r.precision>0),i}(e);return null==t||(e.supportsColorBufferFloat=null!==t.getExtension("EXT_color_buffer_float"),e.supportsColorBufferFloatBlend=null!==t.getExtension("EXT_float_blend"),e.supportsColorBufferHalfFloat=e.supportsColorBufferFloat||null!==t.getExtension("EXT_color_buffer_half_float")),e}(),ne}class ue{constructor(){this.available=!1,this.majorPerformanceCaveat=!1,this.maxTextureSize=0,this.supportsVertexShaderSamplers=!1,this.supportsHighPrecisionFragment=!1,this.supportsColorBufferFloat=!1,this.supportsColorBufferFloatBlend=!1,this.supportsColorBufferHalfFloat=!1,this.unmaskedRenderer="unloaded"}}let he=class extends((0,S.dM)((0,R.j)((0,P.J)((0,A.f)((0,v.b)((0,b.q)((0,I.A)((0,x.d)((0,w.p)((0,a.P)(_.A))))))))))){constructor(...e){super(...e),this._spriteSourceMap=new Map,this.currentStyleInfo=null,this.isReference=null,this.operationalLayerType="VectorTileLayer",this.path=null,this.refreshInterval=0,this.style=null,this.tilemapCache=null,this.type="vector-tile",this.url=null}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){if(this.sourceNameToSource)for(const e of Object.values(this.sourceNameToSource))e?.destroy();this.primarySource?.destroy(),this._spriteSourceMap.clear()}async prefetchResources(e){await this.loadSpriteSource(globalThis.devicePixelRatio||1,e)}load(e){const t=this.loadFromPortal({supportedTypes:["Vector Tile Service"],supportsData:!1},e).catch(u.QP).then((async()=>{if(!this.portalItem?.id)return;const t=`${this.portalItem.itemCdnUrl}/resources/styles/root.json`;(await(0,s.A)(t,{...e,query:{f:"json",...this.customParameters,token:this.apiKey},authMode:this.portalItem.portal.authMode})).data&&this.read({url:t},(0,W.v)(this.portalItem,"portal-item"))})).catch(u.QP).then((()=>this._loadStyle(e)));return this.addResolvingPromise(t),Promise.resolve(this)}get attributionDataUrl(){const e=this.currentStyleInfo,t=e?.serviceUrl&&(0,h.An)(e.serviceUrl);if(!t)return null;const i=this._getDefaultAttribution(t.path);return i?(0,h.a6)(i,{...this.customParameters,token:this.apiKey}):null}get capabilities(){const e=this.primarySource;return e?e.capabilities:{operations:{supportsExportTiles:!1,supportsTileMap:!1},exportTiles:null}}get fullExtent(){return this.primarySource?.fullExtent||null}get initialExtent(){return this.primarySource?.initialExtent||null}get parsedUrl(){return this.serviceUrl?(0,h.An)(this.serviceUrl):null}get serviceUrl(){return this.currentStyleInfo?.serviceUrl||null}get spatialReference(){return this.tileInfo?.spatialReference??null}get styleUrl(){return this.currentStyleInfo?.styleUrl||null}writeStyleUrl(e,t){e&&(0,h.BQ)(e)&&(e=`https:${e}`);const i=(0,J.py)(e);t.styleUrl=(0,X.e)(e,i)}get tileInfo(){const e=[];for(const t in this.sourceNameToSource)e.push(this.sourceNameToSource[t]);let t=this.primarySource?.tileInfo||new z.A;if(e.length>1)for(let i=0;i<e.length;i++)ie(t,e[i].tileInfo)&&(t=re(t,e[i].tileInfo));return t}readTilemapCache(e,t){const i=t.capabilities?.includes("Tilemap");return i?new L.d({layer:this}):null}readVersion(e,t){return t.version?parseFloat(t.version):parseFloat(t.currentVersion)}async loadSpriteSource(e=1,t){if(!this._spriteSourceMap.has(e)){const i=ae().maxTextureSize,r=this.currentStyleInfo?.spriteUrl?(0,h.a6)(this.currentStyleInfo.spriteUrl,{...this.customParameters,token:this.apiKey}):null,s=new E({type:"url",spriteUrl:r,pixelRatio:e,spriteFormat:this.currentStyleInfo?.spriteFormat},i);await s.load(t),this._spriteSourceMap.set(e,s)}return this._spriteSourceMap.get(e)}async setSpriteSource(e,t){if(!e)return null;const i=ae().maxTextureSize,r=e.spriteUrl,s=r?(0,h.a6)(r,{...this.customParameters,token:this.apiKey}):null;if(!s&&"url"===e.type)return null;const l=new E(e,i);try{await l.load(t);const i=e.pixelRatio||1;return this._spriteSourceMap.clear(),this._spriteSourceMap.set(i,l),s&&this.currentStyleInfo&&(this.currentStyleInfo.spriteUrl=s),this.emit("spriteSource-change",{spriteSource:l}),l}catch(e){(0,u.QP)(e)}return null}async loadStyle(e,t){const i=e||this.style||this.url;return this._loadingTask&&"string"==typeof i&&this.url===i||(this._loadingTask?.abort(),this._loadingTask=(0,l.UT)((e=>(this._spriteSourceMap.clear(),this._getSourceAndStyle(i,{signal:e}))),t)),this._loadingTask.promise}getStyleLayerId(e){return this.styleRepository.getStyleLayerId(e)}getStyleLayerIndex(e){return this.styleRepository.getStyleLayerIndex(e)}getPaintProperties(e){return(0,n.o8)(this.styleRepository?.getPaintProperties(e))}setPaintProperties(e,t){const i=this.styleRepository.isPainterDataDriven(e);this.styleRepository.setPaintProperties(e,t);const r=this.styleRepository.isPainterDataDriven(e);this.emit("paint-change",{layer:e,paint:t,isDataDriven:i||r})}getStyleLayer(e){return(0,n.o8)(this.styleRepository.getStyleLayer(e))}setStyleLayer(e,t){this.styleRepository.setStyleLayer(e,t),this.emit("style-layer-change",{layer:e,index:t})}deleteStyleLayer(e){this.styleRepository.deleteStyleLayer(e),this.emit("delete-style-layer",{layer:e})}getLayoutProperties(e){return(0,n.o8)(this.styleRepository.getLayoutProperties(e))}setLayoutProperties(e,t){this.styleRepository.setLayoutProperties(e,t),this.emit("layout-change",{layer:e,layout:t})}setStyleLayerVisibility(e,t){this.styleRepository.setStyleLayerVisibility(e,t),this.emit("style-layer-visibility-change",{layer:e,visibility:t})}getStyleLayerVisibility(e){return this.styleRepository.getStyleLayerVisibility(e)}write(e,t){return t?.origin&&!this.styleUrl?(t.messages&&t.messages.push(new o.A("vectortilelayer:unsupported",`VectorTileLayer (${this.title}, ${this.id}) with style defined by JSON only are not supported`,{layer:this})),null):super.write(e,t)}getTileUrl(e,t,i){return null}async _getSourceAndStyle(e,t){if(!e)throw new Error("invalid style!");const i=await async function(e,t){const i={source:null,sourceBase:null,sourceUrl:null,validatedSource:null,style:null,styleBase:null,styleUrl:null,sourceNameToSource:{},primarySourceName:"",spriteFormat:"png"},[r,s]="string"==typeof e?[e,null]:[null,e.jsonUrl];return await Q(i,"esri",e,s,t),{layerDefinition:i.validatedSource,url:r,serviceUrl:i.sourceUrl,style:i.style,styleUrl:i.styleUrl,spriteUrl:i.style.sprite&&q(i.styleBase,i.style.sprite),spriteFormat:i.spriteFormat,glyphsUrl:i.style.glyphs&&q(i.styleBase,i.style.glyphs),sourceNameToSource:i.sourceNameToSource,primarySourceName:i.primarySourceName}}(e,{...t,query:{...this.customParameters,token:this.apiKey}});"webp"===i.spriteFormat&&(await function(){if(M)return M;const e={lossy:"UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",lossless:"UklGRhoAAABXRUJQVlA4TA0AAAAvAAAAEAcQERGIiP4HAA==",alpha:"UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAARBxAR/Q9ERP8DAABWUDggGAAAABQBAJ0BKgEAAQAAAP4AAA3AAP7mtQAAAA==",animation:"UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA"};return M=new Promise((t=>{const i=new Image;i.onload=()=>{i.onload=i.onerror=null,t(i.width>0&&i.height>0)},i.onerror=()=>{i.onload=i.onerror=null,t(!1)},i.src="data:image/webp;base64,"+e.lossy})),M}()||(i.spriteFormat="png")),this._set("currentStyleInfo",{...i}),"string"==typeof e?(this.url=e,this.style=null):(this.url=null,this.style=e),this._set("sourceNameToSource",i.sourceNameToSource),this._set("primarySource",i.sourceNameToSource[i.primarySourceName]),this._set("styleRepository",new se.A(i.style)),this.read(i.layerDefinition,{origin:"service"}),this.emit("load-style")}_getDefaultAttribution(e){const t=e.match(/^https?:\/\/(?:basemaps|basemapsbeta|basemapsdev)(?:-api)?\.arcgis\.com(\/[^/]+)?\/arcgis\/rest\/services\/([^/]+(\/[^/]+)*)\/vectortileserver/i),i=["OpenBasemap_v2","OpenBasemap_GCS_v2","OpenStreetMap_v2","OpenStreetMap_Daylight_v2","OpenStreetMap_Export_v2","OpenStreetMap_FTS_v2","OpenStreetMap_GCS_v2","World_Basemap","World_Basemap_v2","World_Basemap_Export_v2","World_Basemap_GCS_v2","World_Basemap_WGS84","World_Contours_v2","World_Hillshade_v2"];if(!t)return;const r=t[2]&&t[2].toLowerCase();if(!r)return;const s=t[1]||"";for(const e of i)if(e.toLowerCase().includes(r))return(0,h.S8)(`//static.arcgis.com/attribution/Vector${s}/${e}`)}async _loadStyle(e){return this._loadingTask?.promise??this.loadStyle(null,e)}};(0,r._)([(0,c.MZ)({readOnly:!0})],he.prototype,"attributionDataUrl",null),(0,r._)([(0,c.MZ)({type:["show","hide"]})],he.prototype,"listMode",void 0),(0,r._)([(0,c.MZ)({json:{read:!0,write:!0}})],he.prototype,"blendMode",void 0),(0,r._)([(0,c.MZ)({readOnly:!0,json:{read:!1}})],he.prototype,"capabilities",null),(0,r._)([(0,c.MZ)({readOnly:!0})],he.prototype,"currentStyleInfo",void 0),(0,r._)([(0,c.MZ)({json:{read:!1},readOnly:!0,type:m.A})],he.prototype,"fullExtent",null),(0,r._)([(0,c.MZ)({json:{read:!1},readOnly:!0,type:m.A})],he.prototype,"initialExtent",null),(0,r._)([(0,c.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],he.prototype,"isReference",void 0),(0,r._)([(0,c.MZ)({type:["VectorTileLayer"]})],he.prototype,"operationalLayerType",void 0),(0,r._)([(0,c.MZ)({readOnly:!0})],he.prototype,"parsedUrl",null),(0,r._)([(0,c.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],he.prototype,"path",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{write:!1,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],he.prototype,"refreshInterval",void 0),(0,r._)([(0,c.MZ)()],he.prototype,"style",void 0),(0,r._)([(0,c.MZ)({readOnly:!0})],he.prototype,"serviceUrl",null),(0,r._)([(0,c.MZ)({type:g.A,readOnly:!0})],he.prototype,"spatialReference",null),(0,r._)([(0,c.MZ)({readOnly:!0})],he.prototype,"styleRepository",void 0),(0,r._)([(0,c.MZ)({readOnly:!0})],he.prototype,"sourceNameToSource",void 0),(0,r._)([(0,c.MZ)({readOnly:!0})],he.prototype,"primarySource",void 0),(0,r._)([(0,c.MZ)({type:String,readOnly:!0,json:{write:{ignoreOrigin:!0},origins:{"web-document":{write:{ignoreOrigin:!0,isRequired:!0}}}}})],he.prototype,"styleUrl",null),(0,r._)([(0,f.K)(["portal-item","web-document"],"styleUrl")],he.prototype,"writeStyleUrl",null),(0,r._)([(0,c.MZ)({json:{read:!1,origins:{service:{read:!1}}},readOnly:!0,type:z.A})],he.prototype,"tileInfo",null),(0,r._)([(0,c.MZ)()],he.prototype,"tilemapCache",void 0),(0,r._)([(0,d.w)("service","tilemapCache",["capabilities","tileInfo"])],he.prototype,"readTilemapCache",null),(0,r._)([(0,c.MZ)({json:{read:!1},readOnly:!0,value:"vector-tile"})],he.prototype,"type",void 0),(0,r._)([(0,c.MZ)({json:{origins:{"web-document":{read:{source:"styleUrl"}},"portal-item":{read:{source:"url"}}},write:!1,read:!1}})],he.prototype,"url",void 0),(0,r._)([(0,c.MZ)({readOnly:!0})],he.prototype,"version",void 0),(0,r._)([(0,d.w)("version",["version","currentVersion"])],he.prototype,"readVersion",null),he=(0,r._)([(0,y.$)("esri.layers.VectorTileLayer")],he);const ce=he},52136:(e,t,i)=>{i.d(t,{p:()=>o});var r=i(90237),s=i(10107),l=(i(44208),i(53966),i(87811),i(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,r._)([(0,s.MZ)({type:String})],t.prototype,"apiKey",null),t=(0,r._)([(0,l.$)("esri.layers.mixins.APIKeyMixin")],t),t}},66344:(e,t,i)=>{var r,s;i.d(t,{q:()=>a}),(s=r||(r={}))[s.ALL=0]="ALL",s[s.SOME=1]="SOME";class l{get size(){return this._size}constructor(e=10485760){this._maxSize=e,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._users=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._users.clear()}register(e){this._users.set(e.id.slice(0,-1),e)}deregister(e){this.clear(e),this._sizeLimits.delete(e),this._users.delete(e.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,-1),this._checkSize()}getSize(e,t){const i=this._db.get(e.id+t);return i?.size??0}put(e,t,i,s,l){t=e.id+t;const n=this._db.get(t);if(n&&(this._size-=n.size,e.size-=n.size,this._db.delete(t),n.entry!==i&&this._notifyRemove(t,n.entry,n.size,r.ALL)),s>this._maxSize)return void this._notifyRemove(t,i,s,r.ALL);if(void 0===i)return void console.warn("Refusing to cache undefined entry ");if(!s||s<0)return console.warn(`Refusing to cache entry with size ${s} for key ${t}`),void this._notifyRemove(t,i,0,r.ALL);const a=1+Math.max(l,-4)- -3;this._db.set(t,new o(i,s,a)),this._size+=s,e.size+=s,this._checkSize()}updateSize(e,t,i,s){t=e.id+t;const l=this._db.get(t);if(l&&l.entry===i){for(this._size-=l.size,e.size-=l.size;s>this._maxSize;){const e=this._notifyRemove(t,i,s,r.SOME);if(!(null!=e&&e>0))return void this._db.delete(t);s=e}l.size=s,this._size+=s,e.size+=s,this._checkSize()}}pop(e,t){t=e.id+t;const i=this._db.get(t);if(i)return this._size-=i.size,e.size-=i.size,this._db.delete(t),++this._hit,i.entry;++this._miss}get(e,t){t=e.id+t;const i=this._db.get(t);if(void 0!==i)return this._db.delete(t),i.lives=i.lifetime,this._db.set(t,i),++this._hit,i.entry;++this._miss}peek(e,t){const i=this._db.get(e.id+t);return i?++this._hit:++this._miss,i?.entry}get performanceInfo(){const e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},i=new Array;this._db.forEach(((e,r)=>{const s=e.lifetime;i[s]=(i[s]||0)+e.size,this._users.forEach((i=>{const{id:s,name:l}=i;if(r.startsWith(s)){const i=t[l]||0;t[l]=i+e.size}}))}));const r={};this._users.forEach((e=>{const i=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){const s=t[i]||0;t[i]=s,r[i]=Math.round(100*e.hitRate)+"%"}else r[i]="0%"}));const s=Object.keys(t);s.sort(((e,i)=>t[i]-t[e])),s.forEach((i=>e[i]=Math.round(t[i]/2**20)+"MB / "+r[i]));for(let t=i.length-1;t>=0;--t){const r=i[t];r&&(e["Priority "+(t+-3-1)]=Math.round(r/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._users.forEach((e=>e.resetHitRate()))}clear(e){const t=e.id;this._db.forEach(((e,i)=>{i.startsWith(t)&&(this._size-=e.size,this._db.delete(i),this._notifyRemove(i,e.entry,e.size,r.ALL))})),e.size=0}clearAll(){this._db.forEach(((e,t)=>this._notifyRemove(t,e.entry,e.size,r.ALL))),this._users.forEach((e=>e.size=0)),this._size=0,this._db.clear()}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,i,r){const s=this._users.get(e.split(n)[0])?.removeFunc,l=s?.(t,r,i);return"number"==typeof l?l:null}_checkSize(){this._sizeLimits.forEach(((e,t)=>this._checkSizeLimits(e,t))),this._checkSizeLimits(this.maxSize)}setMaxSize(e,t){null==t||t<=0?this._sizeLimits.delete(e):this._sizeLimits.set(e,t)}_checkSizeLimits(e,t){const i=t??this;if(i.size<=e)return;const r=t?.id;let s=!0;for(;s;){s=!1;for(const[l,o]of this._db)if(0===o.lifetime&&(!r||l.startsWith(r))){const r=t??this._users.get(l.split(n)[0]);if(this._purgeItem(l,o,r),i.size<=.9*e)return;s||=this._db.has(l)}}for(const[s,l]of this._db)if(!r||s.startsWith(r)){const r=t??this._users.get(s.split(n)[0]);if(this._purgeItem(s,l,r),i.size<=.9*e)return}}_purgeItem(e,t,i){if(this._db.delete(e),t.lives<=1){this._size-=t.size,i&&(i.size-=t.size);const s=this._notifyRemove(e,t.entry,t.size,r.SOME);null!=s&&s>0&&(this._size+=s,i&&(i.size+=s),t.lives=t.lifetime,t.size=s,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}class o{constructor(e,t,i){this.entry=e,this.size=t,this.lifetime=i,this.lives=i}}const n=":";class a{constructor(e,t){this.removeFunc=t,this._storage=new l,this.id="",this.name="",this.size=0,this._storage.maxSize=e,this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(e,t,i=1){this._storage.put(this,e,t,i,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}},69208:(e,t,i)=>{i.d(t,{d:()=>o});var r=i(90237),s=i(10107),l=(i(44208),i(53966),i(87811),i(40608));const o=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,r._)([(0,s.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,r._)([(0,l.$)("esri.layers.mixins.CustomParametersMixin")],t),t}},78553:(e,t,i)=>{i.d(t,{D:()=>l,p:()=>s});var r=i(56507);function s(e){const t=(0,r.Vr)(100*(1-e));return Math.max(0,Math.min(t,100))}function l(e){const t=1-e/100;return Math.max(0,Math.min(t,1))}},79677:(e,t,i)=>{i.d(t,{A:()=>d});var r,s=i(90237),l=i(25482),o=i(88930),n=i(10107),a=(i(44208),i(53966),i(87811),i(36005)),u=i(40608),h=i(43937),c=i(98623);let p=class extends l.A{static{r=this}static get allTime(){return y}static get empty(){return f}static fromArray(e){return new r({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(r.allTime)}get isEmpty(){return this.equals(r.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new r({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,i=this.end?.getTime()??this.end,r=e.start?.getTime()??e.start,s=e.end?.getTime()??e.end;return t===r&&i===s}expandTo(e,t=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();let i=this.start;i&&(i=(0,o.lL)(i,e,t));let s=this.end;if(s){const i=(0,o.lL)(s,e,t);s=s.getTime()===i.getTime()?i:(0,o.S1)(i,1,e,t)}return new r({start:i,end:s})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return r.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,i=this.end?.getTime()??1/0,s=e.start?.getTime()??-1/0,l=e.end?.getTime()??1/0;let o,n;return s>=t&&s<=i?o=s:t>=s&&t<=l&&(o=t),i>=s&&i<=l?n=i:l>=t&&l<=i&&(n=l),null==o||null==n||isNaN(o)||isNaN(n)?r.empty:new r({start:o===-1/0?null:new Date(o),end:n===1/0?null:new Date(n)})}offset(e,t,i=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();const s=new r,{start:l,end:n}=this;return null!=l&&(s.start=(0,o.S1)(l,e,t,i)),null!=n&&(s.end=(0,o.S1)(n,e,t,i)),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,i=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new r({start:t,end:i})}};(0,s._)([(0,n.MZ)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"end",void 0),(0,s._)([(0,a.w)("end")],p.prototype,"readEnd",null),(0,s._)([(0,h.K)("end")],p.prototype,"writeEnd",null),(0,s._)([(0,n.MZ)({readOnly:!0,json:{read:!1}})],p.prototype,"isAllTime",null),(0,s._)([(0,n.MZ)({readOnly:!0,json:{read:!1}})],p.prototype,"isEmpty",null),(0,s._)([(0,n.MZ)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"start",void 0),(0,s._)([(0,a.w)("start")],p.prototype,"readStart",null),(0,s._)([(0,h.K)("start")],p.prototype,"writeStart",null),p=r=(0,s._)([(0,u.$)("esri.time.TimeExtent")],p);const d=p,y=new p,f=new p({start:void 0,end:void 0})},88788:(e,t,i)=>{i.d(t,{m:()=>o,v:()=>l});var r=i(84952),s=i(20655);function l(e,t){return{...n(e,t),readResourcePaths:[]}}function o(e,t,i){const s=(0,r.An)(e.itemUrl);return{...n(e,t),messages:[],writtenProperties:[],blockedRelativeUrls:[],verifyItemRelativeUrls:s?{rootPath:s.path,writtenUrls:[]}:null,resources:i?{toAdd:[],toUpdate:[],toKeep:[],pendingOperations:[]}:null}}function n(e,t){return{origin:t,url:(0,r.An)(e.itemUrl),portal:e.portal||s.A.getDefault(),portalItem:e}}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4429],{4902:(e,t,i)=>{i.d(t,{A:()=>u});var r=i(90237),s=i(40608);let l=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-"+l++})}};return t=(0,r._)([(0,s.$)("esri.core.Identifiable")],t),t};let n=class extends(o(class{})){};var a;n=(0,r._)([(0,s.$)("esri.core.Identifiable")],n),(a=n||(n={})).IdentifiableMixin=o,a.NumericIdentifiableMixin=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:l++})}};return t=(0,r._)([(0,s.$)("esri.core.Identifiable.NumericIdentifiable")],t),t};const u=n},8303:(e,t,i)=>{i.d(t,{A:()=>S});var r=i(90237),s=i(92602),l=i(70333),o=i(78888),n=i(60999),a=i(49186),u=i(53966),h=i(97768),c=i(74887),p=i(84952),d=i(10107),y=(i(44208),i(87811),i(36005)),f=i(40608),m=i(43937),g=i(83531),_=i(20655),w=i(80812),A=i(41318),v=i(10407);const S=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,h.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,i){if(t.itemId)return new w.default({id:t.itemId,portal:i?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:r}=await i.e(1204).then(i.bind(i,41204));return(0,c.Te)(t),await r({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,c.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,c.QP)(e),!0))))}async setUserPrivileges(e,t){if(!s.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:i,fullEdit:r},content:{updateItem:s}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",i),this._set("userHasFullEditingPrivileges",r),this._set("userHasUpdateItemPrivileges",s)}catch(e){(0,c.QP)(e)}}async _fetchUserPrivileges(e,t){let i=this.portalItem;if(!e||!i||!i.loaded||i.sourceUrl)return this._fetchFallbackUserPrivileges(t);const r=!l.id?.findCredential(this.url),s=e===i.id;if(s&&i.portal.user)return this._getUserPrivileges(i,r);let o,n;if(s)o=i.portal.url;else try{o=await(0,g.wI)(this.url,t)}catch(e){(0,c.QP)(e)}if(!o||!(0,p.b8)(o,i.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;n=await(l.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,c.QP)(e)}const a=!0,u=!1,h=!1;if(!n)return{features:{edit:a,fullEdit:u},content:{updateItem:h}};try{if(s?await i.reload():(i=new w.default({id:e,portal:{url:o}}),await i.load(t)),i.portal.user)return this._getUserPrivileges(i,r)}catch(e){(0,c.QP)(e)}return{features:{edit:a,fullEdit:u},content:{updateItem:h}}}_getUserPrivileges(e,t){const i=(0,v.It)(e);return t&&(i.features.edit=!0),i}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,c.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?l.id?.findCredential(this.url):null;if(!t)return!0;const i=x.credential===t?x.user:await this._fetchEditingUser(e);return x.credential=t,x.user=i,null==i?.privileges||i.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const i=l.id?.findServerInfo(this.url??"");if(!i?.owningSystemUrl)return null;const r=`${i.owningSystemUrl}/sharing/rest`,s=_.A.getDefault();if(s&&s.loaded&&(0,p.S8)(s.restUrl)===(0,p.S8)(r))return s.user;const a=`${r}/community/self`,u=null!=e?e.signal:null,h=await(0,n.Ke)((0,o.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return h.ok?A.A.fromJSON(h.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const i=t?.portal,r=this.portalItem?.id&&(this.portalItem.portal||_.A.getDefault());return i&&r&&!(0,p.ut)(r.restUrl,i.restUrl)?(t.messages&&t.messages.push(new a.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,r._)([(0,d.MZ)({type:w.default})],t.prototype,"portalItem",null),(0,r._)([(0,y.w)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,r._)([(0,m.K)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,r._)([(0,d.MZ)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,r._)([(0,d.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,r._)([(0,d.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,r._)([(0,d.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,r._)([(0,f.$)("esri.layers.mixins.PortalLayer")],t),t},x={credential:null,user:null}},18768:(e,t,i)=>{i.d(t,{b:()=>a});var r=i(90237),s=i(53966),l=i(10107),o=(i(44208),i(87811),i(40608)),n=i(60694);const a=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,n.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,n.Jf)(e,s.A.getLogger(this)))}};return(0,r._)([(0,l.MZ)()],t.prototype,"title",null),(0,r._)([(0,l.MZ)({type:String})],t.prototype,"url",null),t=(0,r._)([(0,o.$)("esri.layers.mixins.ArcGISService")],t),t}},36708:(e,t,i)=>{i.d(t,{C_:()=>p,OH:()=>f,Vh:()=>m,on:()=>c,pc:()=>g,wB:()=>a,z7:()=>u});var r=i(37955),s=i(36563),l=i(97768),o=i(74887),n=i(14012);function a(e,t,i={}){return h(e,t,i,d)}function u(e,t,i={}){return h(e,t,i,y)}function h(e,t,i={},r){let s=null;const o=i.once?(e,i)=>{r(e)&&((0,l.xt)(s),t(e,i))}:(e,i)=>{r(e)&&t(e,i)};if(s=(0,n.Cn)(e,o,i.sync,i.equals),i.initial){const t=e();o(t,t)}return s}function c(e,t,i,o={}){let n=null,u=null,h=null;function c(){n&&u&&(u.remove(),o.onListenerRemove?.(n),n=null,u=null)}function p(e){o.once&&o.once&&(0,l.xt)(h),i(e)}const d=a(e,((e,i)=>{c(),(0,r.wb)(e)&&(n=e,u=(0,r.on)(e,t,p),o.onListenerAdd?.(e))}),{sync:o.sync,initial:!0});return h=(0,s.hA)((()=>{d.remove(),c()})),h}function p(e,t){return function(e,t,i){if((0,o.G4)(i))return Promise.reject((0,o.NK)());const r=e();if(t?.(r))return Promise.resolve(r);let n=null;function a(){n=(0,l.xt)(n)}return new Promise(((r,l)=>{n=(0,s.vE)([(0,o.u7)(i,(()=>{a(),l((0,o.NK)())})),h(e,(e=>{a(),r(e)}),{sync:!1,once:!0},t??d)])}))}(e,y,t)}function d(e){return!0}function y(e){return!!e}i(80559);const f={sync:!0},m={initial:!0},g={sync:!0,initial:!0}},44159:(e,t,i)=>{i.d(t,{A:()=>s});var r=i(93687);class s{static{this.pool=new r.A(s,null,null,25,50)}static getId(e,t,i,r){return"object"==typeof e?`${e.level}/${e.row}/${e.col}/${e.world}`:`${e}/${t}/${i}/${r}`}constructor(e,t,i,r){this.set(e,t,i,r)}get key(){return this}get id(){return this.toString()}get normalizedId(){return`${this.level}/${this.row}/${this.col}`}set id(e){this.set(e)}get hash(){const e=4095&this.row,t=4095&this.col,i=63&this.level;return(3&this.world)<<30|t<<22|e<<8|i}acquire(e,t,i,r){this.set(e,t,i,r)}contains(e){const t=e.level-this.level;return t>=0&&this.row===e.row>>t&&this.col===e.col>>t&&this.world===e.world}containsChild(e){const t=e.level-this.level;return t>0&&this.row===e.row>>t&&this.col===e.col>>t&&this.world===e.world}equals(e){return this.level===e.level&&this.row===e.row&&this.col===e.col&&this.world===e.world}clone(){return new s(this)}release(){this.level=0,this.row=0,this.col=0,this.world=0}set(e,t,i,r){if(null==e)this.level=0,this.row=0,this.col=0,this.world=0;else if("object"==typeof e)this.level=e.level||0,this.row=e.row||0,this.col=e.col||0,this.world=e.world||0;else if("string"==typeof e){const[t,i,r,s]=e.split("/");this.level=parseFloat(t),this.row=parseFloat(i),this.col=parseFloat(r),this.world=parseFloat(s)}else this.level=+e,this.row=+t,this.col=+i,this.world=+r||0;return this}toString(){return`${this.level}/${this.row}/${this.col}/${this.world}`}getParentKey(){return this.level<=0?null:new s(this.level-1,this.row>>1,this.col>>1,this.world)}getNormalizedNeighbor(e,t,i){const r=this.clone();return r.col+=e,r.row+=t,i.normalizeKey(r),r}getChildKeys(){const e=this.level+1,t=this.row<<1,i=this.col<<1,r=this.world;return[new s(e,t,i,r),new s(e,t,i+1,r),new s(e,t+1,i,r),new s(e,t+1,i+1,r)]}compareRowMajor(e){return this.row<e.row?-1:this.row>e.row?1:this.col<e.col?-1:this.col>e.col?1:0}}},48757:(e,t,i)=>{i.r(t),i.d(t,{default:()=>ce});var r=i(90237),s=i(78888),l=i(60999),o=i(49186),n=i(4718),a=i(92071),u=i(74887),h=i(84952),c=i(10107),p=(i(44208),i(53966)),d=i(36005),y=i(40608),f=i(43937),m=i(5443),g=i(16930),_=i(4146),w=i(52136),A=i(89186),v=i(18768),S=i(63074),x=i(69208),b=i(16131),I=i(8303),E=i(54310),M=i(25036);let P=null;var T=i(34275);class R{constructor(e,t){this._spriteSource=e,this._maxTextureSize=t,this.devicePixelRatio=1,this._spriteImageFormat="png",this._isRetina=!1,this._spritesData={},this.image=null,this.width=null,this.height=null,this.loadStatus="not-loaded","url"===e.type&&e.spriteFormat&&(this._spriteImageFormat=e.spriteFormat),e.pixelRatio&&(this.devicePixelRatio=e.pixelRatio),this.baseURL=e.spriteUrl}get spriteNames(){const e=[];for(const t in this._spritesData)e.push(t);return e.sort(),e}getSpriteInfo(e){return this._spritesData?this._spritesData[e]:null}async load(e){if(this.baseURL){this.loadStatus="loading";try{await this._loadSprites(e),this.loadStatus="loaded"}catch{this.loadStatus="failed"}}else this.loadStatus="failed"}async _loadSprites(e){this._isRetina=this.devicePixelRatio>1.15;const{width:t,height:i,data:r,json:s}=await this._getSpriteData(this._spriteSource,e),l=Object.keys(s);if(!l||0===l.length||!r)return this._spritesData=this.image=null,void(this.width=this.height=0);this._spritesData=s,this.width=t,this.height=i;const n=Math.max(this._maxTextureSize,4096);if(t>n||i>n){const e=`Sprite resource for style ${this.baseURL} is bigger than the maximum allowed of ${n} pixels}`;throw p.A.getLogger("esri.layers.support.SpriteSource").error(e),new o.A("SpriteSource",e)}let a;for(let e=0;e<r.length;e+=4)a=r[e+3]/255,r[e]=r[e]*a,r[e+1]=r[e+1]*a,r[e+2]=r[e+2]*a;this.image=r}async _getSpriteData(e,t){if("image"===e.type){let t,i;if(this.devicePixelRatio<1.15){if(!e.spriteSource1x)throw new o.A("SpriteSource","no image data provided for low resolution sprites!");t=e.spriteSource1x.image,i=e.spriteSource1x.json}else{if(!e.spriteSource2x)throw new o.A("SpriteSource","no image data provided for high resolution sprites!");t=e.spriteSource2x.image,i=e.spriteSource2x.json}return"width"in t&&"height"in t&&"data"in t&&((0,T.mw)(t.data)||(0,T.UR)(t.data))?{width:t.width,height:t.height,data:new Uint8Array(t.data),json:i}:{...U(t),json:i}}const i=(0,h.An)(this.baseURL),r=i.query?"?"+(0,h.x0)(i.query):"",l=this._isRetina?"@2x":"",n=`${i.path}${l}.${this._spriteImageFormat}${r}`,a=`${i.path}${l}.json${r}`,[u,c]=await Promise.all([(0,s.A)(a,t),(0,s.A)(n,{responseType:"image",...t})]);return{...U(c.data),json:u.data}}}function U(e){const t=document.createElement("canvas"),i=t.getContext("2d");t.width=e.width,t.height=e.height,i.drawImage(e,0,0,e.width,e.height);const r=i.getImageData(0,0,e.width,e.height);return{width:e.width,height:e.height,data:new Uint8Array(r.data)}}var z=i(87045),L=i(25943),O=i(21325),D=i(28735),C=i(44159);class j{constructor(e){this.url=e}destroy(){this._tileIndexPromise=null}async fetchTileIndex(){return this._tileIndexPromise||(this._tileIndexPromise=(0,s.A)(this.url).then((e=>e.data.index))),this._tileIndexPromise}async dataKey(e,t){const i=await this.fetchTileIndex();return(0,u.Te)(t),this._getIndexedDataKey(i,e)}_getIndexedDataKey(e,t){const i=[t];if(t.level<0||t.row<0||t.col<0||t.row>>t.level>0||t.col>>t.level>0)return null;let r=t;for(;0!==r.level;)r=new C.A(r.level-1,r.row>>1,r.col>>1,r.world),i.push(r);let s,l,o=e,n=i.pop();if(1===o)return n;for(;i.length;)if(s=i.pop(),l=(1&s.col)+((1&s.row)<<1),o){if(0===o[l]){n=null;break}if(1===o[l]){n=s;break}n=s,o=o[l]}return n}}var k=i(97768);class ${constructor(e,t){this._tilemap=e,this._tileIndexUrl=t}destroy(){this._tilemap=(0,k.pR)(this._tilemap),this._tileIndexPromise=null}async fetchTileIndex(e){return this._tileIndexPromise||(this._tileIndexPromise=(0,s.A)(this._tileIndexUrl,{query:{...e?.query}}).then((e=>e.data.index))),this._tileIndexPromise}dataKey(e,t){const{level:i,row:r,col:s}=e,l=new C.A(e);return this._tilemap.fetchAvailabilityUpsample(i,r,s,l,t).then((()=>(l.world=e.world,l))).catch((e=>{if((0,u.zf)(e))throw e;return null}))}}var B=i(91869);class N{constructor(e){this._tileUrl=e,this._promise=null,this._abortController=null,this._abortOptions=[]}getData(e){(null==this._promise||(0,u.G4)(this._abortController?.signal))&&(this._promise=this._makeRequest(this._tileUrl));const t=this._abortOptions;return t.push(e),(0,u.u7)(e,(()=>{t.every((e=>(0,u.G4)(e)))&&this._abortController.abort()})),this._promise.then((e=>(0,n.o8)(e)))}async _makeRequest(e){this._abortController=new AbortController;const{data:t}=await(0,s.A)(e,{responseType:"array-buffer",signal:this._abortController.signal});return t}}const F=new Map;function K(e,t){return(0,B.tE)(F,e,(()=>new N(e))).getData(t).finally((()=>F.delete(e)))}class Z{constructor(e,t,i){this.tilemap=null,this.tileInfo=null,this.capabilities=null,this.fullExtent=null,this.initialExtent=null,this.name=e,this.sourceUrl=t;const r=(0,h.An)(this.sourceUrl),s=(0,n.o8)(i),l=s.tiles;if(r)for(let e=0;e<l.length;e++){const t=(0,h.An)(l[e]);t&&((0,h.oP)(t.path)||(t.path=(0,h.fj)(r.path,t.path)),l[e]=(0,h.a6)(t.path,{...r.query,...t.query}))}this.tileServers=l;const o=i.capabilities&&i.capabilities.split(",").map((e=>e.toLowerCase().trim())),a=!0===i?.exportTilesAllowed,u=!0===o?.includes("tilemap"),c=a&&i.hasOwnProperty("maxExportTilesCount")?i.maxExportTilesCount:0;this.capabilities={operations:{supportsExportTiles:a,supportsTileMap:u},exportTiles:a?{maxExportTilesCount:+c}:null},this.tileInfo=z.A.fromJSON(s.tileInfo);const p=i.tileMap?(0,h.a6)((0,h.fj)(r.path,i.tileMap),r.query??{}):null;u?(this.type="vector-tile",this.tilemap=new $(new L.d({layer:{parsedUrl:r,tileInfo:this.tileInfo},minLOD:s.minLOD??this.tileInfo.lods[0].level,maxLOD:s.maxLOD??this.tileInfo.lods[this.tileInfo.lods.length-1].level}),p)):p&&(this.tilemap=new j(p)),this.fullExtent=m.A.fromJSON(i.fullExtent),this.initialExtent=m.A.fromJSON(i.initialExtent)}destroy(){this.tilemap?.destroy()}async getRefKey(e,t){return this.tilemap?this.tilemap.dataKey(e,t):e}requestTile(e,t,i,r){return function(e,t,i,r,s){const l=(0,h.An)(e),o=l.query;if(o)for(const[e,s]of Object.entries(o))switch(s){case"{x}":o[e]=r.toString();break;case"{y}":o[e]=i.toString();break;case"{z}":o[e]=t.toString()}const n=l.path;return K((0,h.a6)(n.replaceAll(/\{z\}/gi,t.toString()).replaceAll(/\{y\}/gi,i.toString()).replaceAll(/\{x\}/gi,r.toString()),{...l.query}),s)}(this.tileServers[t%this.tileServers.length],e,t,i,r)}isCompatibleWith(e){const t=this.tileInfo,i=e.tileInfo;if(!t.spatialReference.equals(i.spatialReference))return!1;if(!t.origin.equals(i.origin))return!1;if(Math.round(t.dpi)!==Math.round(i.dpi))return!1;const r=t.lods,s=i.lods,l=Math.min(r.length,s.length);for(let e=0;e<l;e++){const t=r[e],i=s[e];if(t.level!==i.level||Math.round(t.scale)!==Math.round(i.scale))return!1}return!0}}function q(...e){let t;for(const i of e)if(null!=i)if((0,h.BQ)(i)){if(t){const e=t.split("://")[0];t=e+":"+i.trim()}}else t=(0,h.oP)(i)?i:(0,h.fj)(t,i);return t?(0,h.UC)(t):void 0}async function G(e,t,i,r,l){let o,n,a;if((0,u.Te)(l),"string"==typeof i){const e=(0,h.S8)(i);a=await(0,s.A)(e,{...l,responseType:"json",query:{f:"json",...l?.query}}),a.ssl&&(o&&(o=o.replace(/^http:/i,"https:")),n&&(n=n.replace(/^http:/i,"https:"))),o=e,n=e}else null!=i&&(a={data:i},o=i.jsonUrl||null,n=r);const c=a?.data;if(H(c))return e.styleUrl=o||null,async function(e,t,i,r){const s=i?(0,h.nM)(i):(0,h.gd)();e.styleBase=s,e.style=t,t["sprite-format"]&&"webp"===t["sprite-format"].toLowerCase()&&(e.spriteFormat="webp");const l=[];if(t.sources&&t.sources.esri){const i=t.sources.esri;i.url?await G(e,"esri",q(s,i.url),void 0,r):l.push(G(e,"esri",i,s,r))}for(const i of Object.keys(t.sources))"esri"!==i&&"vector"===t.sources[i].type&&(t.sources[i].url?l.push(G(e,i,q(s,t.sources[i].url),void 0,r)):t.sources[i].tiles&&l.push(G(e,i,t.sources[i],s,r)));await Promise.all(l)}(e,c,n,l);if(function(e){return!H(e)}(c))return e.sourceUrl?W(e,c,n,!1,t,l):(e.sourceUrl=o||null,W(e,c,n,!0,t,l));throw new Error("You must specify the URL or the JSON for a service or for a style.")}function Q(e){return"object"==typeof e&&!!e&&"tilejson"in e&&null!=e.tilejson}function H(e){return!!e&&"sources"in e&&!!e.sources}async function W(e,t,i,r,s,l){const o=i?(0,h.UC)(i)+"/":(0,h.gd)(),a=function(e){const t=512;if(function(e){return e.hasOwnProperty("tileInfo")}(e)){const i=e?.tileInfo;return null!=i&&(null==i.rows&&(i.rows=t),null==i.cols&&(i.cols=t)),e}const i={xmin:-20037507.067161843,ymin:-20037507.067161843,xmax:20037507.067161843,ymax:20037507.067161843,spatialReference:{wkid:102100,latestWkid:3857}};let r=null;if(Q(e)){const{bounds:t}=e;if(t){const e=(0,D.Gh)({x:t[0],y:t[1],spatialReference:(0,n.o8)(O.KK)}),i=(0,D.Gh)({x:t[2],y:t[3],spatialReference:(0,n.o8)(O.KK)});r={xmin:e.x,ymin:e.y,xmax:i.x,ymax:i.y,spatialReference:(0,n.o8)(O.ch)}}}null===r&&(r=i);let s=78271.51696400007,l=295828763.7957775;const o=[],a=e.hasOwnProperty("maxzoom")&&null!=e.maxzoom?+e.maxzoom:22;for(let e=0;e<=a;e++)o.push({level:e,scale:l,resolution:s}),s/=2,l/=2;return{capabilities:"TilesOnly",initialExtent:r,fullExtent:i,minScale:0,maxScale:0,tiles:e.tiles,tileInfo:{rows:t,cols:t,dpi:96,format:"pbf",origin:{x:-20037508.342787,y:20037508.342787},lods:o,spatialReference:(0,n.o8)(O.ch)}}}(t),u=new Z(s,(0,h.a6)(o,l?.query??{}),a);if(!r&&e.primarySourceName in e.sourceNameToSource){const t=e.sourceNameToSource[e.primarySourceName];if(!t.isCompatibleWith(u))return;null!=u.fullExtent&&(null!=t.fullExtent?t.fullExtent.union(u.fullExtent):t.fullExtent=u.fullExtent.clone()),t.tileInfo&&u.tileInfo&&t.tileInfo.lods.length<u.tileInfo.lods.length&&(t.tileInfo=u.tileInfo)}if(r&&(e.sourceBase=o,e.source=t,e.validatedSource=a,e.primarySourceName=s),e.sourceNameToSource[s]=u,!Q(e)&&"defaultStyles"in t&&!e.style){if(null==t.defaultStyles)throw new Error;return"string"==typeof t.defaultStyles?G(e,"",q(o,t.defaultStyles,"root.json"),void 0,l):G(e,"",t.defaultStyles,q(o,"root.json"),l)}}var V=i(88788),J=i(39131),X=i(97159),Y=i(86738),ee=i(91806);const te=1e-6;function ie(e,t){if(e===t)return!0;if(null==e&&null!=t)return!1;if(null!=e&&null==t)return!1;if(null==e||null==t)return!1;if(!e.spatialReference.equals(t.spatialReference)||e.dpi!==t.dpi)return!1;const i=e.origin,r=t.origin;if(Math.abs(i.x-r.x)>=te||Math.abs(i.y-r.y)>=te)return!1;let s,l;e.lods[0].scale>t.lods[0].scale?(s=e,l=t):(l=e,s=t);for(let e=s.lods[0].scale;e>=l.lods[l.lods.length-1].scale-te;e/=2)if(Math.abs(e-l.lods[0].scale)<te)return!0;return!1}function re(e,t){if(e===t)return e;if(null==e&&null!=t)return t;if(null!=e&&null==t)return e;if(null==e||null==t)return null;const i=e.size[0],r=e.format,s=e.dpi,l=new Y.A({x:e.origin.x,y:e.origin.y}),o=e.spatialReference,n=e.lods[0].scale>t.lods[0].scale?e.lods[0]:t.lods[0],a=e.lods[e.lods.length-1].scale<=t.lods[t.lods.length-1].scale?e.lods[e.lods.length-1]:t.lods[t.lods.length-1],u=n.scale,h=n.resolution,c=a.scale,p=[];let d=u,y=h,f=0;for(;d>=c;)p.push(new ee.A({level:f,resolution:y,scale:d})),f++,d/=2,y/=2;return new z.A({size:[i,i],dpi:s,format:r||"pbf",origin:l,lods:p,spatialReference:o})}var se=i(45013);class le{constructor(e){this.getUnmaskedRenderer=e}}function oe(e){const t=e.getExtension("WEBGL_debug_renderer_info");return t?new le((()=>e.getParameter(t.UNMASKED_RENDERER_WEBGL))):null}let ne;function ae(){return ne??=function(){const e=new ue,t=function(e){if("undefined"==typeof WebGL2RenderingContext)return null;const t=document.createElement("canvas");if(!t)return null;let i=t.getContext("webgl2",{failIfMajorPerformanceCaveat:!0});if(null==i&&(i=t.getContext("webgl2"),null!=i&&(e.majorPerformanceCaveat=!0,e.unmaskedRenderer=oe(i)?.getUnmaskedRenderer()??"unknown")),null==i)return i;e.available=!0,e.maxTextureSize=i.getParameter(i.MAX_TEXTURE_SIZE),e.supportsVertexShaderSamplers=i.getParameter(i.MAX_VERTEX_TEXTURE_IMAGE_UNITS)>0;const r=i.getShaderPrecisionFormat(i.FRAGMENT_SHADER,i.HIGH_FLOAT);return r&&(e.supportsHighPrecisionFragment=r.precision>0),i}(e);return null==t||(e.supportsColorBufferFloat=null!==t.getExtension("EXT_color_buffer_float"),e.supportsColorBufferFloatBlend=null!==t.getExtension("EXT_float_blend"),e.supportsColorBufferHalfFloat=e.supportsColorBufferFloat||null!==t.getExtension("EXT_color_buffer_half_float")),e}(),ne}class ue{constructor(){this.available=!1,this.majorPerformanceCaveat=!1,this.maxTextureSize=0,this.supportsVertexShaderSamplers=!1,this.supportsHighPrecisionFragment=!1,this.supportsColorBufferFloat=!1,this.supportsColorBufferFloatBlend=!1,this.supportsColorBufferHalfFloat=!1,this.unmaskedRenderer="unloaded"}}let he=class extends((0,S.dM)((0,M.j)((0,E.J)((0,A.f)((0,v.b)((0,b.q)((0,I.A)((0,x.d)((0,w.p)((0,a.P)(_.A))))))))))){constructor(...e){super(...e),this._spriteSourceMap=new Map,this.currentStyleInfo=null,this.isReference=null,this.operationalLayerType="VectorTileLayer",this.path=null,this.refreshInterval=0,this.style=null,this.tilemapCache=null,this.type="vector-tile",this.url=null}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){if(this.sourceNameToSource)for(const e of Object.values(this.sourceNameToSource))e?.destroy();this.primarySource?.destroy(),this._spriteSourceMap.clear()}async prefetchResources(e){await this.loadSpriteSource(globalThis.devicePixelRatio||1,e)}load(e){const t=this.loadFromPortal({supportedTypes:["Vector Tile Service"],supportsData:!1},e).catch(u.QP).then((async()=>{if(!this.portalItem?.id)return;const t=`${this.portalItem.itemCdnUrl}/resources/styles/root.json`;(await(0,s.A)(t,{...e,query:{f:"json",...this.customParameters,token:this.apiKey},authMode:this.portalItem.portal.authMode})).data&&this.read({url:t},(0,V.v)(this.portalItem,"portal-item"))})).catch(u.QP).then((()=>this._loadStyle(e)));return this.addResolvingPromise(t),Promise.resolve(this)}get attributionDataUrl(){const e=this.currentStyleInfo,t=e?.serviceUrl&&(0,h.An)(e.serviceUrl);if(!t)return null;const i=this._getDefaultAttribution(t.path);return i?(0,h.a6)(i,{...this.customParameters,token:this.apiKey}):null}get capabilities(){const e=this.primarySource;return e?e.capabilities:{operations:{supportsExportTiles:!1,supportsTileMap:!1},exportTiles:null}}get fullExtent(){return this.primarySource?.fullExtent||null}get initialExtent(){return this.primarySource?.initialExtent||null}get parsedUrl(){return this.serviceUrl?(0,h.An)(this.serviceUrl):null}get serviceUrl(){return this.currentStyleInfo?.serviceUrl||null}get spatialReference(){return this.tileInfo?.spatialReference??null}get styleUrl(){return this.currentStyleInfo?.styleUrl||null}writeStyleUrl(e,t){e&&(0,h.BQ)(e)&&(e=`https:${e}`);const i=(0,J.py)(e);t.styleUrl=(0,X.e)(e,i)}get tileInfo(){const e=[];for(const t in this.sourceNameToSource)e.push(this.sourceNameToSource[t]);let t=this.primarySource?.tileInfo||new z.A;if(e.length>1)for(let i=0;i<e.length;i++)ie(t,e[i].tileInfo)&&(t=re(t,e[i].tileInfo));return t}readTilemapCache(e,t){const i=t.capabilities?.includes("Tilemap");return i?new L.d({layer:this}):null}readVersion(e,t){return t.version?parseFloat(t.version):parseFloat(t.currentVersion)}async loadSpriteSource(e=1,t){if(!this._spriteSourceMap.has(e)){const i=ae().maxTextureSize,r=this.currentStyleInfo?.spriteUrl?(0,h.a6)(this.currentStyleInfo.spriteUrl,{...this.customParameters,token:this.apiKey}):null,s=new R({type:"url",spriteUrl:r,pixelRatio:e,spriteFormat:this.currentStyleInfo?.spriteFormat},i);await s.load(t),this._spriteSourceMap.set(e,s)}return this._spriteSourceMap.get(e)}async setSpriteSource(e,t){if(!e)return null;const i=ae().maxTextureSize,r=e.spriteUrl,s=r?(0,h.a6)(r,{...this.customParameters,token:this.apiKey}):null;if(!s&&"url"===e.type)return null;const l=new R(e,i);try{await l.load(t);const i=e.pixelRatio||1;return this._spriteSourceMap.clear(),this._spriteSourceMap.set(i,l),s&&this.currentStyleInfo&&(this.currentStyleInfo.spriteUrl=s),this.emit("spriteSource-change",{spriteSource:l}),l}catch(e){(0,u.QP)(e)}return null}async loadStyle(e,t){const i=e||this.style||this.url;return this._loadingTask&&"string"==typeof i&&this.url===i||(this._loadingTask?.abort(),this._loadingTask=(0,l.UT)((e=>(this._spriteSourceMap.clear(),this._getSourceAndStyle(i,{signal:e}))),t)),this._loadingTask.promise}getStyleLayerId(e){return this.styleRepository.getStyleLayerId(e)}getStyleLayerIndex(e){return this.styleRepository.getStyleLayerIndex(e)}getPaintProperties(e){return(0,n.o8)(this.styleRepository?.getPaintProperties(e))}setPaintProperties(e,t){const i=this.styleRepository.isPainterDataDriven(e);this.styleRepository.setPaintProperties(e,t);const r=this.styleRepository.isPainterDataDriven(e);this.emit("paint-change",{layer:e,paint:t,isDataDriven:i||r})}getStyleLayer(e){return(0,n.o8)(this.styleRepository.getStyleLayer(e))}setStyleLayer(e,t){this.styleRepository.setStyleLayer(e,t),this.emit("style-layer-change",{layer:e,index:t})}deleteStyleLayer(e){this.styleRepository.deleteStyleLayer(e),this.emit("delete-style-layer",{layer:e})}getLayoutProperties(e){return(0,n.o8)(this.styleRepository.getLayoutProperties(e))}setLayoutProperties(e,t){this.styleRepository.setLayoutProperties(e,t),this.emit("layout-change",{layer:e,layout:t})}setStyleLayerVisibility(e,t){this.styleRepository.setStyleLayerVisibility(e,t),this.emit("style-layer-visibility-change",{layer:e,visibility:t})}getStyleLayerVisibility(e){return this.styleRepository.getStyleLayerVisibility(e)}write(e,t){return t?.origin&&!this.styleUrl?(t.messages&&t.messages.push(new o.A("vectortilelayer:unsupported",`VectorTileLayer (${this.title}, ${this.id}) with style defined by JSON only are not supported`,{layer:this})),null):super.write(e,t)}getTileUrl(e,t,i){return null}async _getSourceAndStyle(e,t){if(!e)throw new Error("invalid style!");const i=await async function(e,t){const i={source:null,sourceBase:null,sourceUrl:null,validatedSource:null,style:null,styleBase:null,styleUrl:null,sourceNameToSource:{},primarySourceName:"",spriteFormat:"png"},[r,s]="string"==typeof e?[e,null]:[null,e.jsonUrl];return await G(i,"esri",e,s,t),{layerDefinition:i.validatedSource,url:r,serviceUrl:i.sourceUrl,style:i.style,styleUrl:i.styleUrl,spriteUrl:i.style.sprite&&q(i.styleBase,i.style.sprite),spriteFormat:i.spriteFormat,glyphsUrl:i.style.glyphs&&q(i.styleBase,i.style.glyphs),sourceNameToSource:i.sourceNameToSource,primarySourceName:i.primarySourceName}}(e,{...t,query:{...this.customParameters,token:this.apiKey}});"webp"===i.spriteFormat&&(await function(){if(P)return P;const e={lossy:"UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",lossless:"UklGRhoAAABXRUJQVlA4TA0AAAAvAAAAEAcQERGIiP4HAA==",alpha:"UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAARBxAR/Q9ERP8DAABWUDggGAAAABQBAJ0BKgEAAQAAAP4AAA3AAP7mtQAAAA==",animation:"UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA"};return P=new Promise((t=>{const i=new Image;i.onload=()=>{i.onload=i.onerror=null,t(i.width>0&&i.height>0)},i.onerror=()=>{i.onload=i.onerror=null,t(!1)},i.src="data:image/webp;base64,"+e.lossy})),P}()||(i.spriteFormat="png")),this._set("currentStyleInfo",{...i}),"string"==typeof e?(this.url=e,this.style=null):(this.url=null,this.style=e),this._set("sourceNameToSource",i.sourceNameToSource),this._set("primarySource",i.sourceNameToSource[i.primarySourceName]),this._set("styleRepository",new se.A(i.style)),this.read(i.layerDefinition,{origin:"service"}),this.emit("load-style")}_getDefaultAttribution(e){const t=e.match(/^https?:\/\/(?:basemaps|basemapsbeta|basemapsdev)(?:-api)?\.arcgis\.com(\/[^/]+)?\/arcgis\/rest\/services\/([^/]+(\/[^/]+)*)\/vectortileserver/i),i=["OpenBasemap_v2","OpenBasemap_GCS_v2","OpenStreetMap_v2","OpenStreetMap_Daylight_v2","OpenStreetMap_Export_v2","OpenStreetMap_FTS_v2","OpenStreetMap_GCS_v2","World_Basemap","World_Basemap_v2","World_Basemap_Export_v2","World_Basemap_GCS_v2","World_Basemap_WGS84","World_Contours_v2","World_Hillshade_v2"];if(!t)return;const r=t[2]&&t[2].toLowerCase();if(!r)return;const s=t[1]||"";for(const e of i)if(e.toLowerCase().includes(r))return(0,h.S8)(`//static.arcgis.com/attribution/Vector${s}/${e}`)}async _loadStyle(e){return this._loadingTask?.promise??this.loadStyle(null,e)}};(0,r._)([(0,c.MZ)({readOnly:!0})],he.prototype,"attributionDataUrl",null),(0,r._)([(0,c.MZ)({type:["show","hide"]})],he.prototype,"listMode",void 0),(0,r._)([(0,c.MZ)({json:{read:!0,write:!0}})],he.prototype,"blendMode",void 0),(0,r._)([(0,c.MZ)({readOnly:!0,json:{read:!1}})],he.prototype,"capabilities",null),(0,r._)([(0,c.MZ)({readOnly:!0})],he.prototype,"currentStyleInfo",void 0),(0,r._)([(0,c.MZ)({json:{read:!1},readOnly:!0,type:m.A})],he.prototype,"fullExtent",null),(0,r._)([(0,c.MZ)({json:{read:!1},readOnly:!0,type:m.A})],he.prototype,"initialExtent",null),(0,r._)([(0,c.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],he.prototype,"isReference",void 0),(0,r._)([(0,c.MZ)({type:["VectorTileLayer"]})],he.prototype,"operationalLayerType",void 0),(0,r._)([(0,c.MZ)({readOnly:!0})],he.prototype,"parsedUrl",null),(0,r._)([(0,c.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],he.prototype,"path",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{write:!1,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],he.prototype,"refreshInterval",void 0),(0,r._)([(0,c.MZ)()],he.prototype,"style",void 0),(0,r._)([(0,c.MZ)({readOnly:!0})],he.prototype,"serviceUrl",null),(0,r._)([(0,c.MZ)({type:g.A,readOnly:!0})],he.prototype,"spatialReference",null),(0,r._)([(0,c.MZ)({readOnly:!0})],he.prototype,"styleRepository",void 0),(0,r._)([(0,c.MZ)({readOnly:!0})],he.prototype,"sourceNameToSource",void 0),(0,r._)([(0,c.MZ)({readOnly:!0})],he.prototype,"primarySource",void 0),(0,r._)([(0,c.MZ)({type:String,readOnly:!0,json:{write:{ignoreOrigin:!0},origins:{"web-document":{write:{ignoreOrigin:!0,isRequired:!0}}}}})],he.prototype,"styleUrl",null),(0,r._)([(0,f.K)(["portal-item","web-document"],"styleUrl")],he.prototype,"writeStyleUrl",null),(0,r._)([(0,c.MZ)({json:{read:!1,origins:{service:{read:!1}}},readOnly:!0,type:z.A})],he.prototype,"tileInfo",null),(0,r._)([(0,c.MZ)()],he.prototype,"tilemapCache",void 0),(0,r._)([(0,d.w)("service","tilemapCache",["capabilities","tileInfo"])],he.prototype,"readTilemapCache",null),(0,r._)([(0,c.MZ)({json:{read:!1},readOnly:!0,value:"vector-tile"})],he.prototype,"type",void 0),(0,r._)([(0,c.MZ)({json:{origins:{"web-document":{read:{source:"styleUrl"}},"portal-item":{read:{source:"url"}}},write:!1,read:!1}})],he.prototype,"url",void 0),(0,r._)([(0,c.MZ)({readOnly:!0})],he.prototype,"version",void 0),(0,r._)([(0,d.w)("version",["version","currentVersion"])],he.prototype,"readVersion",null),he=(0,r._)([(0,y.$)("esri.layers.VectorTileLayer")],he);const ce=he},52136:(e,t,i)=>{i.d(t,{p:()=>o});var r=i(90237),s=i(10107),l=(i(44208),i(53966),i(87811),i(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,r._)([(0,s.MZ)({type:String})],t.prototype,"apiKey",null),t=(0,r._)([(0,l.$)("esri.layers.mixins.APIKeyMixin")],t),t}},66344:(e,t,i)=>{var r,s;i.d(t,{q:()=>a}),(s=r||(r={}))[s.ALL=0]="ALL",s[s.SOME=1]="SOME";class l{get size(){return this._size}constructor(e=10485760){this._maxSize=e,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._users=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._users.clear()}register(e){this._users.set(e.id.slice(0,-1),e)}deregister(e){this.clear(e),this._sizeLimits.delete(e),this._users.delete(e.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,-1),this._checkSize()}getSize(e,t){const i=this._db.get(e.id+t);return i?.size??0}put(e,t,i,s,l){t=e.id+t;const n=this._db.get(t);if(n&&(this._size-=n.size,e.size-=n.size,this._db.delete(t),n.entry!==i&&this._notifyRemove(t,n.entry,n.size,r.ALL)),s>this._maxSize)return void this._notifyRemove(t,i,s,r.ALL);if(void 0===i)return void console.warn("Refusing to cache undefined entry ");if(!s||s<0)return console.warn(`Refusing to cache entry with size ${s} for key ${t}`),void this._notifyRemove(t,i,0,r.ALL);const a=1+Math.max(l,-4)- -3;this._db.set(t,new o(i,s,a)),this._size+=s,e.size+=s,this._checkSize()}updateSize(e,t,i,s){t=e.id+t;const l=this._db.get(t);if(l&&l.entry===i){for(this._size-=l.size,e.size-=l.size;s>this._maxSize;){const e=this._notifyRemove(t,i,s,r.SOME);if(!(null!=e&&e>0))return void this._db.delete(t);s=e}l.size=s,this._size+=s,e.size+=s,this._checkSize()}}pop(e,t){t=e.id+t;const i=this._db.get(t);if(i)return this._size-=i.size,e.size-=i.size,this._db.delete(t),++this._hit,i.entry;++this._miss}get(e,t){t=e.id+t;const i=this._db.get(t);if(void 0!==i)return this._db.delete(t),i.lives=i.lifetime,this._db.set(t,i),++this._hit,i.entry;++this._miss}peek(e,t){const i=this._db.get(e.id+t);return i?++this._hit:++this._miss,i?.entry}get performanceInfo(){const e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},i=new Array;this._db.forEach(((e,r)=>{const s=e.lifetime;i[s]=(i[s]||0)+e.size,this._users.forEach((i=>{const{id:s,name:l}=i;if(r.startsWith(s)){const i=t[l]||0;t[l]=i+e.size}}))}));const r={};this._users.forEach((e=>{const i=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){const s=t[i]||0;t[i]=s,r[i]=Math.round(100*e.hitRate)+"%"}else r[i]="0%"}));const s=Object.keys(t);s.sort(((e,i)=>t[i]-t[e])),s.forEach((i=>e[i]=Math.round(t[i]/2**20)+"MB / "+r[i]));for(let t=i.length-1;t>=0;--t){const r=i[t];r&&(e["Priority "+(t+-3-1)]=Math.round(r/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._users.forEach((e=>e.resetHitRate()))}clear(e){const t=e.id;this._db.forEach(((e,i)=>{i.startsWith(t)&&(this._size-=e.size,this._db.delete(i),this._notifyRemove(i,e.entry,e.size,r.ALL))})),e.size=0}clearAll(){this._db.forEach(((e,t)=>this._notifyRemove(t,e.entry,e.size,r.ALL))),this._users.forEach((e=>e.size=0)),this._size=0,this._db.clear()}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,i,r){const s=this._users.get(e.split(n)[0])?.removeFunc,l=s?.(t,r,i);return"number"==typeof l?l:null}_checkSize(){this._sizeLimits.forEach(((e,t)=>this._checkSizeLimits(e,t))),this._checkSizeLimits(this.maxSize)}setMaxSize(e,t){null==t||t<=0?this._sizeLimits.delete(e):this._sizeLimits.set(e,t)}_checkSizeLimits(e,t){const i=t??this;if(i.size<=e)return;const r=t?.id;let s=!0;for(;s;){s=!1;for(const[l,o]of this._db)if(0===o.lifetime&&(!r||l.startsWith(r))){const r=t??this._users.get(l.split(n)[0]);if(this._purgeItem(l,o,r),i.size<=.9*e)return;s||=this._db.has(l)}}for(const[s,l]of this._db)if(!r||s.startsWith(r)){const r=t??this._users.get(s.split(n)[0]);if(this._purgeItem(s,l,r),i.size<=.9*e)return}}_purgeItem(e,t,i){if(this._db.delete(e),t.lives<=1){this._size-=t.size,i&&(i.size-=t.size);const s=this._notifyRemove(e,t.entry,t.size,r.SOME);null!=s&&s>0&&(this._size+=s,i&&(i.size+=s),t.lives=t.lifetime,t.size=s,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}class o{constructor(e,t,i){this.entry=e,this.size=t,this.lifetime=i,this.lives=i}}const n=":";class a{constructor(e,t){this.removeFunc=t,this._storage=new l,this.id="",this.name="",this.size=0,this._storage.maxSize=e,this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(e,t,i=1){this._storage.put(this,e,t,i,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}},69208:(e,t,i)=>{i.d(t,{d:()=>o});var r=i(90237),s=i(10107),l=(i(44208),i(53966),i(87811),i(40608));const o=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,r._)([(0,s.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,r._)([(0,l.$)("esri.layers.mixins.CustomParametersMixin")],t),t}},69540:(e,t,i)=>{i.d(t,{A:()=>p});var r=i(90237),s=i(69622),l=(i(44208),i(4718)),o=(i(53966),i(97768)),n=i(35666),a=i(88620),u=i(40608);const h=e=>{let t=class extends e{clone(){const e=(0,a.oY)(this);(0,o.Lw)(e,"unable to clone instance of non-accessor class");const t=e.metadata,i=e.store,r={},s=new Map;for(const e in t){const o=t[e],a=i?.originOf(e),u=o.clonable;if(o.readOnly||!1===u||a!==n.Gr.USER&&a!==n.Gr.DEFAULTS&&a!==n.Gr.WEB_MAP&&a!==n.Gr.WEB_SCENE)continue;const h=this[e];let c=null;c="function"==typeof u?u(h):"reference"===u?h:(0,l.TU)(h),null!=h&&null==c||(a===n.Gr.DEFAULTS?s.set(e,c):r[e]=c)}const u=new(0,Object.getPrototypeOf(this).constructor)(r);if(s.size){const e=(0,a.oY)(u)?.store;if(e)for(const[t,i]of s)e.set(t,i,n.Gr.DEFAULTS)}return u}};return t=(0,r._)([(0,u.$)("esri.core.Clonable")],t),t};let c=class extends(h(s.A)){};c=(0,r._)([(0,u.$)("esri.core.Clonable")],c),(c||(c={})).ClonableMixin=h;const p=c},78553:(e,t,i)=>{i.d(t,{D:()=>l,p:()=>s});var r=i(56507);function s(e){const t=(0,r.Vr)(100*(1-e));return Math.max(0,Math.min(t,100))}function l(e){const t=1-e/100;return Math.max(0,Math.min(t,1))}},79677:(e,t,i)=>{i.d(t,{A:()=>d});var r,s=i(90237),l=i(25482),o=i(88930),n=i(10107),a=(i(44208),i(53966),i(87811),i(36005)),u=i(40608),h=i(43937),c=i(98623);let p=class extends l.A{static{r=this}static get allTime(){return y}static get empty(){return f}static fromArray(e){return new r({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(r.allTime)}get isEmpty(){return this.equals(r.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new r({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,i=this.end?.getTime()??this.end,r=e.start?.getTime()??e.start,s=e.end?.getTime()??e.end;return t===r&&i===s}expandTo(e,t=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();let i=this.start;i&&(i=(0,o.lL)(i,e,t));let s=this.end;if(s){const i=(0,o.lL)(s,e,t);s=s.getTime()===i.getTime()?i:(0,o.S1)(i,1,e,t)}return new r({start:i,end:s})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return r.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,i=this.end?.getTime()??1/0,s=e.start?.getTime()??-1/0,l=e.end?.getTime()??1/0;let o,n;return s>=t&&s<=i?o=s:t>=s&&t<=l&&(o=t),i>=s&&i<=l?n=i:l>=t&&l<=i&&(n=l),null==o||null==n||isNaN(o)||isNaN(n)?r.empty:new r({start:o===-1/0?null:new Date(o),end:n===1/0?null:new Date(n)})}offset(e,t,i=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();const s=new r,{start:l,end:n}=this;return null!=l&&(s.start=(0,o.S1)(l,e,t,i)),null!=n&&(s.end=(0,o.S1)(n,e,t,i)),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,i=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new r({start:t,end:i})}};(0,s._)([(0,n.MZ)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"end",void 0),(0,s._)([(0,a.w)("end")],p.prototype,"readEnd",null),(0,s._)([(0,h.K)("end")],p.prototype,"writeEnd",null),(0,s._)([(0,n.MZ)({readOnly:!0,json:{read:!1}})],p.prototype,"isAllTime",null),(0,s._)([(0,n.MZ)({readOnly:!0,json:{read:!1}})],p.prototype,"isEmpty",null),(0,s._)([(0,n.MZ)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"start",void 0),(0,s._)([(0,a.w)("start")],p.prototype,"readStart",null),(0,s._)([(0,h.K)("start")],p.prototype,"writeStart",null),p=r=(0,s._)([(0,u.$)("esri.time.TimeExtent")],p);const d=p,y=new p,f=new p({start:void 0,end:void 0})},88788:(e,t,i)=>{i.d(t,{m:()=>o,v:()=>l});var r=i(84952),s=i(20655);function l(e,t){return{...n(e,t),readResourcePaths:[]}}function o(e,t,i){const s=(0,r.An)(e.itemUrl);return{...n(e,t),messages:[],writtenProperties:[],blockedRelativeUrls:[],verifyItemRelativeUrls:s?{rootPath:s.path,writtenUrls:[]}:null,resources:i?{toAdd:[],toUpdate:[],toKeep:[],pendingOperations:[]}:null}}function n(e,t){return{origin:t,url:(0,r.An)(e.itemUrl),portal:e.portal||s.A.getDefault(),portalItem:e}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3169,6061,8125,9041],{68613:(e,t,n)=>{n.d(t,{fz:()=>y,g7:()=>h,zo:()=>p});var r=n(76061),o=n(55537),s=n(83661),i=n(35368),a=n(79187),u=n(95213),c=n(12189);function m(e,t,n,r){const o=e.getImpl().getAttributeStreamRef(0),i=e.getPointCount(),c=t.getXY(),m=e.createInstance(),l=(0,u.d)(n),f=new a.Envelope2D;if(e.queryEnvelope(f),f.inflateCoords(l,l),f.contains(c)){const n=l*l;let r=!1;const a=(0,s.d)(i,!1);for(let e=0;e<i;e++){const t=o.read(2*e),s=o.read(2*e+1),i=t-c.x,u=s-c.y;i*i+u*u<=n&&(r=!0,a[e]=!0)}if(r)for(let t=0;t<i;t++)a[t]||m.addPoints(e,t,t+1);else m.addPoints(e,0,i),m.add(t)}else m.addPoints(e,0,i),m.add(t);return m}class l extends r.G{constructor(e,t,n,r){super(),this.m_progressTracker=r,this.m_index=-1,this.m_inputGeoms=e,this.m_spatialReference=n,this.m_rightGeom=t.next(),this.m_bEmpty=!this.m_rightGeom,(0,o.d)(this.m_rightGeom)}tock(){return!0}getRank(){return 1}next(){if(this.m_bEmpty)return null;const e=this.m_inputGeoms.next();return e?((0,o.d)(e),this.m_index=this.m_inputGeoms.getGeometryID(),function(e,t,n,r){const l=e.getDimension(),f=t.getDimension();if(l!==f)return l>f?e:t;if(e.isEmpty())return t;if(t.isEmpty())return e;const h=new a.Envelope2D,p=new a.Envelope2D,y=new a.Envelope2D;e.queryEnvelope(h),t.queryEnvelope(p),y.setCoords({env2D:h}),y.mergeEnvelope2D(p);const g=(0,u.a)(n,y,!0),G=e.getGeometryType(),d=t.getGeometryType();return G===o.G.enumPoint&&d===o.G.enumPoint?function(e,t,n){const r=(0,u.d)(n),o=r*r,a=e.getXY(),c=t.getXY(),m=new i.M({vd:e.getDescription()});return s.P.sqrDistance(a,c)>o&&(m.add(e),m.add(t)),m}(e,t,g):G===o.G.enumPoint&&d===o.G.enumMultiPoint?m(t,e,g):G===o.G.enumMultiPoint&&d===o.G.enumPoint?m(e,t,g):(0,c.ai)(e,t,n,r)}(e,this.m_rightGeom,this.m_spatialReference,this.m_progressTracker)):null}getGeometryID(){return this.m_index}}const f=new class{getOperatorType(){return 10003}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,n,r){return new l(e,t,n,r)}execute(e,t,n,s){const i=new r.S([e]),a=new r.S([t]),u=this.executeMany(i,a,n,s).next();return u||(0,o.c)("null output"),u}};function h(e,t,n){return f.execute(e,t,n,null)}function p(e,t,n){const o=f.executeMany(new r.S(e),new r.S([t]),n,null);return Array.from(o)}function y(){return f.supportsCurves()}},76061:(e,t,n)=>{n.d(t,{G:()=>r,S:()=>o});class r{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}class o extends r{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}}},78125:(e,t,n)=>{n.r(t),n.d(t,{fromExtent:()=>x,fromGeometry:()=>d,fromMultipoint:()=>C,fromPoint:()=>v,fromPolygon:()=>M,fromPolyline:()=>w,fromSpatialReference:()=>P,getSpatialReference:()=>G,toExtent:()=>R,toGeometry:()=>_,toMultipoint:()=>E,toPoint:()=>V,toPolygon:()=>S,toPolyline:()=>D});var r=n(83661),o=(n(79187),n(55537)),s=n(95213),i=n(35368),a=n(12189),u=n(5443),c=n(48526),m=n(86738),l=n(39829),f=n(82799),h=(n(90293),n(83299));const p="_gxVersion",y=2,g=1;function G(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function d(e){switch(e.type){case"point":return v(e);case"multipoint":return C(e);case"polyline":return w(e);case"polygon":return M(e);case"extent":return x(e);default:throw new Error(`Unsupported geometry type: ${e.type}`)}}function x(e){if(!e.getCacheValue(p)){const t=new s.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(y,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(g,0,e.zmin,e.zmax),e.setCacheValue(p,t)}return e.getCacheValue(p)}function C(e){if(!e.getCacheValue(p)){const t=new i.M,n=new s.P,r=e.points,o=e.hasM,a=e.hasZ,u=a?3:2;for(let e=0,s=r.length;e<s;e++){const s=r[e];n.setXYCoords(s[0],s[1]),a&&n.setZ(s[2]??0),o&&n.setM(s[u]??NaN),t.add(n)}e.setCacheValue(p,t)}return e.getCacheValue(p)}function v(e){if(!e.getCacheValue(p)){const t=new s.P;t.setXYCoords(e.x,e.y),e.hasM&&t.setM(e.m),e.hasZ&&t.setZ(e.z),e.setCacheValue(p,t)}return e.getCacheValue(p)}function M(e){if(!e.getCacheValue(p)){const{curveRings:t,hasM:n,hasZ:r,rings:o}=e,s=(0,h.fromGeometryToGXGeometry)({curveRings:t,hasM:n,hasZ:r,rings:o});e.setCacheValue(p,s)}return e.getCacheValue(p)}function w(e){if(!e.getCacheValue(p)){const{curvePaths:t,hasM:n,hasZ:r,paths:o}=e,s=(0,h.fromGeometryToGXGeometry)({curvePaths:t,hasM:n,hasZ:r,paths:o});e.setCacheValue(p,s)}return e.getCacheValue(p)}function P(e){if(e.wkid)return(0,a.c)(e.wkid);const t=e.wkt2||e.wkt;return t?(0,a.b)(t):null}function _(e,t){if(e)switch(e.getGeometryType()){case o.G.enumPoint:return V(e,t);case o.G.enumEnvelope:return R(e,t);case o.G.enumMultiPoint:return E(e,t);case o.G.enumPolyline:return D(e,t);case o.G.enumPolygon:return S(e,t)}return null}function R(e,t){if(e.isEmpty())return null;const n=new u.A({xmin:e.getXMin(),ymin:e.getYMin(),xmax:e.getXMax(),ymax:e.getYMax(),spatialReference:t}),r=e.getDescription();if(r.hasM()){const t=e.queryInterval(y,0);n.mmin=t.vmin,n.mmax=t.vmax}if(r.hasZ()){const t=e.queryInterval(g,0);n.zmin=t.vmin,n.zmax=t.vmax}return n.setCacheValue(p,e),n}function E(e,t){if(e.isEmpty())return null;const n=e.getDescription(),r=n.hasM(),o=n.hasZ(),i=[],a=new s.P;for(let t=0,n=e.getPointCount();t<n;t++){e.getPointByVal(t,a);const n=[a.getX(),a.getY()];o&&n.push(a.getZ()),r&&n.push(a.getM()),i.push(n)}const u=new c.A({hasM:r,hasZ:o,points:i,spatialReference:t});return u.setCacheValue(p,e),u}function V(e,t){if(e instanceof r.P)return new m.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;const n=new m.A({x:e.getX(),y:e.getY(),spatialReference:t}),o=e.getDescription();return o.hasM()&&(n.m=e.getM()),o.hasZ()&&(n.z=e.getZ()),n.setCacheValue(p,e),n}function S(e,t){if(e.isEmpty())return null;const n=l.A.fromJSON({spatialReference:t,...(0,h.toGeometry)(e,null)});return n.setCacheValue(p,e),n}function D(e,t){if(e.isEmpty())return null;const n=f.A.fromJSON({spatialReference:t,...(0,h.toGeometry)(e,null)});return n.setCacheValue(p,e),n}},89041:(e,t,n)=>{n.r(t),n.d(t,{execute:()=>r.e,executeMany:()=>r.a,supportsCurves:()=>r.b}),n(4576),n(68613),n(78125);var r=n(96957)},96957:(e,t,n)=>{n.d(t,{a:()=>a,b:()=>u,e:()=>i,s:()=>c});var r=n(4576),o=n(68613),s=n(78125);function i(e,t){const n=(0,s.getSpatialReference)(e);return(0,s.toGeometry)((0,o.g7)((0,s.fromGeometry)(e),(0,s.fromGeometry)(t),(0,s.fromSpatialReference)(n)),n)}function a(e,t){const n=e.map(s.fromGeometry),i=(0,s.getSpatialReference)(e);return(0,o.zo)(n,(0,s.fromGeometry)(t),(0,s.fromSpatialReference)(i)).map((e=>(0,s.toGeometry)(e,i))).filter(r.Ru)}const u=(0,o.fz)(),c=Object.freeze(Object.defineProperty({__proto__:null,execute:i,executeMany:a,supportsCurves:u},Symbol.toStringTag,{value:"Module"}))}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2390],{11053:(e,t,r)=>{r.d(t,{c:()=>n,g:()=>i});var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}},22390:(e,t,r)=>{r.d(t,{isAnimatedPNG:()=>f,parseApng:()=>l});var n,i=r(11053),s=r(74887),a=r(78659),o={exports:{}};o.exports;const u=(0,i.g)((n||(n=1,h=function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={exports:{},id:n,loaded:!1};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}return r.m=e,r.c=t,r.p="",r(0)}([function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.isNotPNG=function(e){return e===s},t.isNotAPNG=function(e){return e===a},t.default=function(e){var t=new Uint8Array(e);if(Array.prototype.some.call(o,(function(e,r){return e!==t[r]})))return s;var r=!1;if(u(t,(function(e){return!(r="acTL"===e)})),!r)return a;var n=[],h=[],p=null,m=null,d=0,v=new i.APNG;if(u(t,(function(e,t,r,s){var a=new DataView(t.buffer);switch(e){case"IHDR":p=t.subarray(r+8,r+8+s),v.width=a.getUint32(r+8),v.height=a.getUint32(r+12);break;case"acTL":v.numPlays=a.getUint32(r+8+4);break;case"fcTL":m&&(v.frames.push(m),d++),(m=new i.Frame).width=a.getUint32(r+8+4),m.height=a.getUint32(r+8+8),m.left=a.getUint32(r+8+12),m.top=a.getUint32(r+8+16);var o=a.getUint16(r+8+20),u=a.getUint16(r+8+22);0===u&&(u=100),m.delay=1e3*o/u,m.delay<=10&&(m.delay=100),v.playTime+=m.delay,m.disposeOp=a.getUint8(r+8+24),m.blendOp=a.getUint8(r+8+25),m.dataParts=[],0===d&&2===m.disposeOp&&(m.disposeOp=1);break;case"fdAT":m&&m.dataParts.push(t.subarray(r+8+4,r+8+s));break;case"IDAT":m&&m.dataParts.push(t.subarray(r+8,r+8+s));break;case"IEND":h.push(l(t,r,12+s));break;default:n.push(l(t,r,12+s))}})),m&&v.frames.push(m),0==v.frames.length)return a;var _=new Blob(n),g=new Blob(h);return v.frames.forEach((function(e){var t=[];t.push(o),p.set(f(e.width),0),p.set(f(e.height),4),t.push(c("IHDR",p)),t.push(_),e.dataParts.forEach((function(e){return t.push(c("IDAT",e))})),t.push(g),e.imageData=new Blob(t,{type:"image/png"}),delete e.dataParts,t=null})),v};var n=function(e){return e&&e.__esModule?e:{default:e}}(r(1)),i=r(2),s=new Error("Not a PNG"),a=new Error("Not an animated PNG"),o=new Uint8Array([137,80,78,71,13,10,26,10]);function u(e,t){var r=new DataView(e.buffer),n=8,i=void 0,s=void 0,a=void 0;do{s=r.getUint32(n),a=t(i=h(e,n+4,4),e,n,s),n+=12+s}while(!1!==a&&"IEND"!=i&&n<e.length)}function h(e,t,r){var n=Array.prototype.slice.call(e.subarray(t,t+r));return String.fromCharCode.apply(String,n)}function l(e,t,r){var n=new Uint8Array(r);return n.set(e.subarray(t,t+r)),n}var c=function(e,t){var r=e.length+t.length,i=new Uint8Array(r+8),s=new DataView(i.buffer);s.setUint32(0,t.length),i.set(function(e){for(var t=new Uint8Array(e.length),r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}(e),4),i.set(t,8);var a=(0,n.default)(i,4,r);return s.setUint32(r+4,a),i},f=function(e){return new Uint8Array([e>>>24&255,e>>>16&255,e>>>8&255,255&e])}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1,i=t,s=t+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length-t);i<s;i++)n=n>>>8^r[255&(n^e[i])];return~n};for(var r=new Uint32Array(256),n=0;n<256;n++){for(var i=n,s=0;s<8;s++)i=1&i?3988292384^i>>>1:i>>>1;r[n]=i}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.Frame=t.APNG=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function(e){return e&&e.__esModule?e:{default:e}}(r(3));function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.APNG=function(){function e(){s(this,e),this.width=0,this.height=0,this.numPlays=0,this.playTime=0,this.frames=[]}return n(e,[{key:"createImages",value:function(){return Promise.all(this.frames.map((function(e){return e.createImage()})))}},{key:"getPlayer",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.createImages().then((function(){return new i.default(t,e,r)}))}}]),e}(),t.Frame=function(){function e(){s(this,e),this.left=0,this.top=0,this.width=0,this.height=0,this.delay=0,this.disposeOp=0,this.blendOp=0,this.imageData=null,this.imageElement=null}return n(e,[{key:"createImage",value:function(){var e=this;return this.imageElement?Promise.resolve():new Promise((function(t,r){var n=URL.createObjectURL(e.imageData);e.imageElement=document.createElement("img"),e.imageElement.onload=function(){URL.revokeObjectURL(n),t()},e.imageElement.onerror=function(){URL.revokeObjectURL(n),e.imageElement=null,r(new Error("Image creation error"))},e.imageElement.src=n}))}}]),e}()},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function(e){function t(e,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return i.playbackRate=1,i._currentFrameNumber=0,i._ended=!1,i._paused=!0,i._numPlays=0,i._rafId=null,i._apng=e,i.context=r,i.stop(),n&&i.play(),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"renderNextFrame",value:function(){this._currentFrameNumber=(this._currentFrameNumber+1)%this._apng.frames.length,this._currentFrameNumber===this._apng.frames.length-1&&(this._numPlays++,0!==this._apng.numPlays&&this._numPlays>=this._apng.numPlays&&(this._ended=!0,this._paused=!0)),this._prevFrame&&1==this._prevFrame.disposeOp?this.context.clearRect(this._prevFrame.left,this._prevFrame.top,this._prevFrame.width,this._prevFrame.height):this._prevFrame&&2==this._prevFrame.disposeOp&&this.context.putImageData(this._prevFrameData,this._prevFrame.left,this._prevFrame.top);var e=this.currentFrame;this._prevFrame=e,this._prevFrameData=null,2==e.disposeOp&&(this._prevFrameData=this.context.getImageData(e.left,e.top,e.width,e.height)),0==e.blendOp&&this.context.clearRect(e.left,e.top,e.width,e.height),this.context.drawImage(e.imageElement,e.left,e.top),this.emit("frame",this._currentFrameNumber),this._ended&&this.emit("end")}},{key:"play",value:function(){var e=this;this._rafId&&cancelAnimationFrame(this._rafId),this.emit("play"),this._ended&&this.stop(),this._paused=!1;var t=performance.now()+this.currentFrame.delay/this.playbackRate;this._rafId=requestAnimationFrame((function r(n){if(!e._ended&&!e._paused){if(n>=t){for(;n-t>=e._apng.playTime/e.playbackRate;)t+=e._apng.playTime/e.playbackRate,e._numPlays++;do{e.renderNextFrame(),t+=e.currentFrame.delay/e.playbackRate}while(!e._ended&&!e._paused&&n>t)}e._rafId=requestAnimationFrame(r)}}))}},{key:"pause",value:function(){this._paused||(this._rafId&&(cancelAnimationFrame(this._rafId),this._rafId=null),this.emit("pause"),this._paused=!0)}},{key:"stop",value:function(){this._rafId&&(cancelAnimationFrame(this._rafId),this._rafId=null),this.emit("stop"),this._numPlays=0,this._ended=!1,this._paused=!0,this._currentFrameNumber=-1,this.context.clearRect(0,0,this._apng.width,this._apng.height),this.renderNextFrame()}},{key:"currentFrameNumber",get:function(){return this._currentFrameNumber}},{key:"currentFrame",get:function(){return this._apng.frames[this._currentFrameNumber]}},{key:"paused",get:function(){return this._paused}},{key:"ended",get:function(){return this._ended}}]),t}(function(e){return e&&e.__esModule?e:{default:e}}(r(4)).default);t.default=i},function(e,t){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function n(e){return"function"==typeof e}function i(e){return"object"==typeof e&&null!==e}function s(e){return void 0===e}e.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(e){if(!function(e){return"number"==typeof e}(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},r.prototype.emit=function(e){var t,r,a,o,u,h;if(this._events||(this._events={}),"error"===e&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}if(s(r=this._events[e]))return!1;if(n(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:o=Array.prototype.slice.call(arguments,1),r.apply(this,o)}else if(i(r))for(o=Array.prototype.slice.call(arguments,1),a=(h=r.slice()).length,u=0;u<a;u++)h[u].apply(this,o);return!0},r.prototype.addListener=function(e,t){var a;if(!n(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,n(t.listener)?t.listener:t),this._events[e]?i(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,i(this._events[e])&&!this._events[e].warned&&(a=s(this._maxListeners)?r.defaultMaxListeners:this._maxListeners)&&a>0&&this._events[e].length>a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(e,t){if(!n(t))throw TypeError("listener must be a function");var r=!1;function i(){this.removeListener(e,i),r||(r=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},r.prototype.removeListener=function(e,t){var r,s,a,o;if(!n(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(r=this._events[e]).length,s=-1,r===t||n(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(i(r)){for(o=a;o-- >0;)if(r[o]===t||r[o].listener&&r[o].listener===t){s=o;break}if(s<0)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(s,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n(r=this._events[e]))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){return this._events&&this._events[e]?n(this._events[e])?[this._events[e]]:this._events[e].slice():[]},r.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(n(t))return 1;if(t)return t.length}return 0},r.listenerCount=function(e,t){return e.listenerCount(t)}}])},o.exports=h()),o.exports));var h;async function l(e,t){const r=u(e);if(r instanceof Error)throw r;await r.createImages(),(0,s.Te)(t);const{frames:n,width:i,height:o}=r,h=document.createElement("canvas");h.width=i,h.height=o;const l=h.getContext("2d",{willReadFrequently:!0}),c=[],f=[];let p=0;for(const e of n){const t=(0,a.l5)(e.delay||100);f.push(t),p+=t;const r=e.imageElement;0===e.blendOp?l.globalCompositeOperation="copy":l.globalCompositeOperation="source-over";const n=2===e.disposeOp?l.getImageData(e.left,e.top,e.width,e.height):void 0;l.drawImage(r,e.left,e.top);const s=l.getImageData(0,0,i,o);c.push(s),0===e.disposeOp||(1===e.disposeOp?l.clearRect(e.left,e.top,e.width,e.height):2===e.disposeOp&&l.putImageData(n,e.left,e.top))}return{frameCount:n.length,duration:p,frameDurations:f,getFrame:e=>c[e],width:i,height:o}}const c=[137,80,78,71,13,10,26,10];function f(e){if(!function(e){const t=new Uint8Array(e);return!c.some(((e,r)=>e!==t[r]))}(e))return!1;const t=new DataView(e),r=new Uint8Array(e);let n,i=8;do{const e=t.getUint32(i);if(n=String.fromCharCode.apply(String,Array.prototype.slice.call(r.subarray(i+4,i+8))),"acTL"===n)return!0;i+=12+e}while("IEND"!==n&&i<r.length);return!1}}}]);
|