@arcgis/core 5.1.0-next.113 → 5.1.0-next.115
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/Graphic.d.ts +1 -0
- package/Map.js +1 -1
- package/analysis/ShadowCast/MinDurationOptions.d.ts +3 -5
- package/analysis/ShadowCastAnalysis.d.ts +1 -1
- package/arcgisGlobal.d.ts +4 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{31a8bc25aa1441c70caa.js → 009250a7bded12099dd1.js} +1 -1
- package/assets/esri/core/workers/chunks/05c47ca3a266a271974b.js +1 -0
- package/assets/esri/core/workers/chunks/{29bbc0d6d847b065d10e.js → 062aadf426fe97a76bbb.js} +1 -1
- package/assets/esri/core/workers/chunks/0954e82f739d25001bcb.js +1 -0
- package/assets/esri/core/workers/chunks/0a530fbbb4486c670ea2.js +1 -0
- package/assets/esri/core/workers/chunks/0aaee272520c6e5bb617.js +1 -0
- package/assets/esri/core/workers/chunks/{12053c1213465d07d2f6.js → 0b445c1cf281f158c1f1.js} +1 -1
- package/assets/esri/core/workers/chunks/{14b7b55c42af65ffa024.js → 0bd2b035c6ee89c725f9.js} +1 -1
- package/assets/esri/core/workers/chunks/0ded5c114cbb7574f2f4.js +1 -0
- package/assets/esri/core/workers/chunks/102ff3710db4ba5f083d.js +1 -0
- package/assets/esri/core/workers/chunks/{7dafe608c224b9d48ffa.js → 115664cb7d7b22a315bb.js} +1 -1
- package/assets/esri/core/workers/chunks/123a67e84ed68b96ac59.js +1 -0
- package/assets/esri/core/workers/chunks/163ce1be8bfe20e77f97.js +1 -0
- package/assets/esri/core/workers/chunks/16713986893adfbc9331.js +1 -0
- package/assets/esri/core/workers/chunks/{054ae729e7cefa2c7778.js → 170f8dc97614e9609443.js} +1 -1
- package/assets/esri/core/workers/chunks/{9bd713d96502ddc2ce25.js → 1765042635084f75d2b3.js} +1 -1
- package/assets/esri/core/workers/chunks/185c670eb99474906836.js +1 -0
- package/assets/esri/core/workers/chunks/18ebf1d3ed05c8057f7d.js +1 -0
- package/assets/esri/core/workers/chunks/{4a65bc9091d7ea7e80df.js → 19f07c8d0f32ec889861.js} +1 -1
- package/assets/esri/core/workers/chunks/1da2c34743897d1b6a24.js +1 -0
- package/assets/esri/core/workers/chunks/{ca92176d5348e2c533d7.js → 224a9f39876aa426a9bc.js} +1 -1
- package/assets/esri/core/workers/chunks/22d4521637806a8b828f.js +1 -0
- package/assets/esri/core/workers/chunks/233ff588798c8a5eedf4.js +1 -0
- package/assets/esri/core/workers/chunks/24d9e4f1c7b8ff0d2cce.js +1 -0
- package/assets/esri/core/workers/chunks/2562d8905bd05ef6fd07.js +1 -0
- package/assets/esri/core/workers/chunks/{8aac1155b8ac071cd2ad.js → 2855357a2c1f2ab03fb7.js} +1 -1
- package/assets/esri/core/workers/chunks/{e5d969214d9eda5c0b4c.js → 2a5dbed88bbd96cfac9f.js} +1 -1
- package/assets/esri/core/workers/chunks/{33329f5d88e60b4ec568.js → 2a8f198f6c272f92bad5.js} +1 -1
- package/assets/esri/core/workers/chunks/{cb3004998eff7c60930e.js → 2b2a09ce14d00b4b1187.js} +1 -1
- package/assets/esri/core/workers/chunks/2bcd4d395bfe6a19ccc8.js +1 -0
- package/assets/esri/core/workers/chunks/{bd17ac2e6f1eb8cf7abf.js → 2fa080539d039c92ce08.js} +1 -1
- package/assets/esri/core/workers/chunks/{ee635172be7fdea69367.js → 3109b05fe4fc40d4f25b.js} +1 -1
- package/assets/esri/core/workers/chunks/{92db9a6d273ae2862883.js → 315bf08dff4757ffbed3.js} +1 -1
- package/assets/esri/core/workers/chunks/3192586ec7fc73ed1165.js +1 -0
- package/assets/esri/core/workers/chunks/{593772bd8b19ac664b29.js → 35527a01d61cabbfd33e.js} +1 -1
- package/assets/esri/core/workers/chunks/38ca59db0e8f45bd7811.js +1 -0
- package/assets/esri/core/workers/chunks/3b10a962e4ff2f3da5bc.js +1 -0
- package/assets/esri/core/workers/chunks/3e9709e61015993b1c7d.js +1 -0
- package/assets/esri/core/workers/chunks/41074d383af3662673ca.js +1 -0
- package/assets/esri/core/workers/chunks/425c04b26a6ec6d04b08.js +1 -0
- package/assets/esri/core/workers/chunks/4364a3e706294bb6ae41.js +1 -0
- package/assets/esri/core/workers/chunks/44e52fe98ffafe6a2807.js +1 -0
- package/assets/esri/core/workers/chunks/49675e77a351abda2728.js +1 -0
- package/assets/esri/core/workers/chunks/4cecc582513b8a83f194.js +1 -0
- package/assets/esri/core/workers/chunks/5022413f5a41b5d435ea.js +1 -0
- package/assets/esri/core/workers/chunks/{8ade869fa9bae446266a.js → 51816d79c6be15e4bfcf.js} +1 -1
- package/assets/esri/core/workers/chunks/{cf9b0ba30a75c030ca92.js → 5524a71d1abc9568ce26.js} +1 -1
- package/assets/esri/core/workers/chunks/{ba31616de9d73d83d867.js → 557e39e5156b313597f9.js} +1 -1
- package/assets/esri/core/workers/chunks/{5ef37f37e405b3bb5450.js → 59dafa1e1340ea4043e6.js} +1 -1
- package/assets/esri/core/workers/chunks/{77ac243d4dcd901c2eec.js → 621d71d26bd20e296138.js} +1 -1
- package/assets/esri/core/workers/chunks/624b1bb269744142b835.js +1 -0
- package/assets/esri/core/workers/chunks/{52a91c314afec70199bc.js → 62b5972d0ef9bf173308.js} +1 -1
- package/assets/esri/core/workers/chunks/641b8622fbb93c84671d.js +1 -0
- package/assets/esri/core/workers/chunks/643c7506f8fe8e06acd2.js +1 -0
- package/assets/esri/core/workers/chunks/65f02eca694cc1c9f5a7.js +1 -0
- package/assets/esri/core/workers/chunks/{7e203e947846d40f897e.js → 67dffb896b6ef4b2038b.js} +1 -1
- package/assets/esri/core/workers/chunks/696967c8c6f53b94f851.js +1 -0
- package/assets/esri/core/workers/chunks/6d696beddcc5fbed5875.js +1 -0
- package/assets/esri/core/workers/chunks/7014e73dfd3c8baa704c.js +1 -0
- package/assets/esri/core/workers/chunks/728ad5bbbcbf88d6249f.js +1 -0
- package/assets/esri/core/workers/chunks/76a9b64fd573775bf6cd.js +1 -0
- package/assets/esri/core/workers/chunks/{0d2bc1be5802681666a4.js → 77859a61d059738d057f.js} +1 -1
- package/assets/esri/core/workers/chunks/{03a4543b94f9adeb1852.js → 7a3b05e25de2ff150f38.js} +1 -1
- package/assets/esri/core/workers/chunks/7bbffe07e62897928773.js +1 -0
- package/assets/esri/core/workers/chunks/7c292f7b181f3b93352b.js +1 -0
- package/assets/esri/core/workers/chunks/7c2d7df4ef4d775cd648.js +1 -0
- package/assets/esri/core/workers/chunks/{6d20d741b8ae1a45b422.js → 7dc2c21d61ba66a3f461.js} +1 -1
- package/assets/esri/core/workers/chunks/7df05c3c82cd27b77300.js +1 -0
- package/assets/esri/core/workers/chunks/{6c79e8e840c1d027fbb2.js → 7e0daf0864005cdd63c5.js} +1 -1
- package/assets/esri/core/workers/chunks/7eb94fc75926bc739233.js +1 -0
- package/assets/esri/core/workers/chunks/8461f50e9875db4ccfec.js +1 -0
- package/assets/esri/core/workers/chunks/{71e12db99589c98a4357.js → 8477b5fdd99c6ac5c27b.js} +1 -1
- package/assets/esri/core/workers/chunks/{be1e4c3ec53fc92a26f1.js → 8598997340682113a2a5.js} +1 -1
- package/assets/esri/core/workers/chunks/{2dc2487d05381de07e3f.js → 86229634bf008f53dad4.js} +1 -1
- package/assets/esri/core/workers/chunks/86443e47ad99e555753a.js +1 -0
- package/assets/esri/core/workers/chunks/8795c4895df229cb471c.js +1 -0
- package/assets/esri/core/workers/chunks/87a40e7f79f97ca637a9.js +1 -0
- package/assets/esri/core/workers/chunks/{7bc746ea17f4e336e0b0.js → 8b5ee6be52e892fbd325.js} +1 -1
- package/assets/esri/core/workers/chunks/{27d6ad4ca5ab8c9d62cd.js → 8c443c52c846a096a250.js} +1 -1
- package/assets/esri/core/workers/chunks/{86161025b53b916328ff.js → 8ca88cfc0b9f84dc5832.js} +1 -1
- package/assets/esri/core/workers/chunks/{340f2c996f62f7f5ceae.js → 8e7ce4835b3106349684.js} +1 -1
- package/assets/esri/core/workers/chunks/90b0fe5584fb6fc99766.js +1 -0
- package/assets/esri/core/workers/chunks/9133c1b7cc1c9da27deb.js +1 -0
- package/assets/esri/core/workers/chunks/{d4749eb8a47869477037.js → 9250615c78f8570a9cda.js} +1 -1
- package/assets/esri/core/workers/chunks/927c8ca7fd385b28a1b7.js +640 -0
- package/assets/esri/core/workers/chunks/92a7735973b2f82a66ce.js +1 -0
- package/assets/esri/core/workers/chunks/942e527b9b92999886c7.js +1 -0
- package/assets/esri/core/workers/chunks/94a5a834e32fc6cc6ed4.js +1 -0
- package/assets/esri/core/workers/chunks/986d8c3907aeeb18c4f6.js +1 -0
- package/assets/esri/core/workers/chunks/98e489c2b85feded7776.js +1 -0
- package/assets/esri/core/workers/chunks/{eb1d6614eeac6d26bb9c.js → 9a3344f1dd22c425b8cc.js} +1 -1
- package/assets/esri/core/workers/chunks/9a6e62ef984e9c5babc4.js +1 -0
- package/assets/esri/core/workers/chunks/{271e42b7cd3c3441839e.js → 9eab1e1535494ff2050d.js} +10 -22
- package/assets/esri/core/workers/chunks/{466c250537415f12eb59.js → a01f0ffbe555f690bdca.js} +1 -1
- package/assets/esri/core/workers/chunks/a03c4c0bf138734a002e.js +1 -0
- package/assets/esri/core/workers/chunks/a0b6eef4890cc61609dc.js +1 -0
- package/assets/esri/core/workers/chunks/{f37be7e517f0892014e3.js → a320c69bc7528ff0d0cf.js} +1 -1
- package/assets/esri/core/workers/chunks/{660713adb5a845dfa2ef.js → a40003dfe3c081d1a1d2.js} +1 -1
- package/assets/esri/core/workers/chunks/a814069325125466506b.js +1 -0
- package/assets/esri/core/workers/chunks/{e4b2120d7ee1c998b1fc.js → aa03f770178693167aa0.js} +1 -1
- package/assets/esri/core/workers/chunks/aea439d4c2308f88b295.js +1 -0
- package/assets/esri/core/workers/chunks/{7995e6983456c779adf9.js → b002304a45856b024b46.js} +1 -1
- package/assets/esri/core/workers/chunks/b0c242c4f5412e4cce73.js +1 -0
- package/assets/esri/core/workers/chunks/b44f1d08784f2e50c853.js +1 -0
- package/assets/esri/core/workers/chunks/b5937ce657c1fff3864f.js +1 -0
- package/assets/esri/core/workers/chunks/b7a0a5b895ddd2d3d038.js +1 -0
- package/assets/esri/core/workers/chunks/{f3161c47a572194f6017.js → c06ae3a6ecc4a4fc67b2.js} +1 -1
- package/assets/esri/core/workers/chunks/c1b6de0d728d25d7905a.js +1 -0
- package/assets/esri/core/workers/chunks/{970e91de5dfbbc247afb.js → c5b7ff8650235c464dbf.js} +1 -1
- package/assets/esri/core/workers/chunks/c8dedc010fcc2382af24.js +1 -0
- package/assets/esri/core/workers/chunks/{f8b884b529064df4a30a.js → caf80facb0322be054ab.js} +1 -1
- package/assets/esri/core/workers/chunks/{5a6523c903b11dea77d4.js → cdef9c3f80588ae45a04.js} +1 -1
- package/assets/esri/core/workers/chunks/{25d795a1697803d77e56.js → ce0e627a5e1cb78adce8.js} +1 -1
- package/assets/esri/core/workers/chunks/{e973cab79ec2541cb81b.js → d19600336cb6023d3e34.js} +1 -1
- package/assets/esri/core/workers/chunks/{10491b5b106bc5ad0b2b.js → d66f68a811c90739951a.js} +1 -1
- package/assets/esri/core/workers/chunks/{63378b0b4265a547656b.js → d8ec0afb2b91ccf32e55.js} +1 -1
- package/assets/esri/core/workers/chunks/d97c0c18202b8c578f8c.js +1 -0
- package/assets/esri/core/workers/chunks/da3c54e27a808f4fcc18.js +1 -0
- package/assets/esri/core/workers/chunks/db012650fb34c10cecd0.js +1 -0
- package/assets/esri/core/workers/chunks/dc6d50e1097a920ff820.js +1 -0
- package/assets/esri/core/workers/chunks/dce37324a2382d2eef0d.js +1 -0
- package/assets/esri/core/workers/chunks/e0bd550b10dd402c48f1.js +1 -0
- package/assets/esri/core/workers/chunks/{63513e706fe55a1def15.js → e227ae2c1a63e30e62d9.js} +1 -1
- package/assets/esri/core/workers/chunks/{e4c350dc65aae121171d.js → e29d182460564c2a52ad.js} +1 -1
- package/assets/esri/core/workers/chunks/e2ba57f7119b7182ba02.js +279 -0
- package/assets/esri/core/workers/chunks/e755477dc78e9d6038d4.js +1 -0
- package/assets/esri/core/workers/chunks/ea4057090cf15d602585.js +1 -0
- package/assets/esri/core/workers/chunks/ea8f642b1db933d2c26f.js +1 -0
- package/assets/esri/core/workers/chunks/eabd4a78221b7e733793.js +1 -0
- package/assets/esri/core/workers/chunks/eb16976b4eb7f1300f4a.js +1 -0
- package/assets/esri/core/workers/chunks/efae58f746b108163a50.js +1 -0
- package/assets/esri/core/workers/chunks/f0b5c140a5ba174572b6.js +1 -0
- package/assets/esri/core/workers/chunks/f231548c8ac7ecb59927.js +1 -0
- package/assets/esri/core/workers/chunks/{ce3b5b83237cf37ff523.js → f286680e363eefdf27df.js} +1 -1
- package/assets/esri/core/workers/chunks/f7698c855800e0af3038.js +1 -0
- package/assets/esri/core/workers/chunks/f931d560f3f14598f454.js +1 -0
- package/assets/esri/core/workers/chunks/fe2325efd0d8ad8369ed.js +1 -0
- package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core-simd.wasm +0 -0
- package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core.wasm +0 -0
- package/assets/esri/themes/base/widgets/_BatchAttributeForm.scss +26 -3
- package/assets/esri/themes/base/widgets/_OrientedImageryViewer.scss +4 -13
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_en.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_en.json +1 -1
- package/chunks/GlobalIllumination.glsl.js +22 -34
- package/chunks/Path.glsl.js +22 -17
- package/config.js +1 -1
- package/core/screenUtils.js +1 -1
- package/core/typedArrayUtil.js +1 -1
- package/editing/templates/TemplateListing.d.ts +32 -0
- package/editing/templates/TemplateListing.js +2 -0
- package/geometry/support/DoubleArray.js +1 -1
- package/geometry/support/Indices.js +1 -1
- package/geometry/support/buffer/BufferView.js +1 -1
- package/geometry/support/heightModelInfoUtils.js +1 -1
- package/interfaces.d.ts +14 -0
- package/kernel.js +1 -1
- package/layers/AnnotationLayer.d.ts +42 -0
- package/layers/AnnotationLayer.js +2 -0
- package/layers/DimensionFeatureLayer.d.ts +36 -1
- package/layers/DimensionFeatureLayer.js +1 -1
- package/layers/DimensionLayer.d.ts +22 -0
- package/layers/FeatureLayer.d.ts +15 -12
- package/layers/FeatureLayer.js +1 -1
- package/layers/GaussianSplatLayer.d.ts +22 -0
- package/layers/LineOfSightLayer.d.ts +22 -0
- package/layers/Lyr3DWasmPerSceneView.js +1 -1
- package/layers/PointCloudLayer.d.ts +22 -0
- package/layers/ViewshedLayer.d.ts +22 -0
- package/layers/graphics/sources/FeatureLayerSource.js +1 -1
- package/layers/graphics/sources/support/MemorySourceWorker.js +1 -1
- package/layers/support/Field.d.ts +1 -0
- package/layers/support/Field.js +1 -1
- package/layers/support/SceneModification.js +1 -1
- package/layers/support/types.d.ts +1 -1
- package/layers/types.d.ts +2 -1
- package/networks/support/networkFieldUtils.js +1 -1
- package/package.json +1 -1
- package/rest/support/OutDistance.js +1 -1
- package/rest/support/Query.d.ts +1 -0
- package/rest/support/Query.js +1 -1
- package/support/basemapEnsureType.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/CIMOperators.js +1 -1
- package/symbols/cim/CIMSymbolHelper.js +1 -1
- package/symbols/cim/animationUtils.js +1 -1
- package/symbols/cim/defaultCIMValues.js +1 -1
- package/symbols/cim/utils.js +1 -1
- package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
- package/views/2d/engine/webgl/animations/instructions.js +1 -1
- package/views/2d/engine/webgl/mesh/factories/FeatureMeshFactory.js +1 -1
- package/views/2d/engine/webgl/mesh/factories/ResourceProxy.js +1 -1
- package/views/2d/engine/webgl/mesh/templates/shapingUtils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/createTestMeshData.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/featureTechniqueUtils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/LineShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ViewInfo.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/engine/webgl/util/AnnotationMatcher.js +2 -0
- package/views/2d/engine/webgl/util/DimensionMatcher.js +2 -0
- package/views/2d/engine/webgl/util/Matcher.js +1 -1
- package/views/2d/engine/webgl/util/createMatcher.js +1 -1
- package/views/2d/layerViewModuleImportUtils.js +1 -1
- package/views/2d/layers/AnnotationLayerView2D.js +2 -0
- package/views/2d/layers/{DimensionLayerView2D.js → DimensionFeatureLayerView2D.js} +1 -1
- package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
- package/views/2d/layers/MapImageLayerView2D.js +1 -1
- package/views/2d/layers/RouteLayerView2D.js +1 -1
- package/views/2d/layers/TileLayerView2D.js +1 -1
- package/views/2d/layers/VectorTileLayerView2D.js +1 -1
- package/views/2d/layers/features/FeatureContainer.js +1 -1
- package/views/2d/layers/features/Processor.js +1 -1
- package/views/2d/layers/features/layerAdapters/AnnotationLayerAdapter.js +2 -0
- package/views/2d/layers/features/layerAdapters/CatalogFootprintLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/DimensionLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/FeatureLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/InMemoryLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/KnowledgeGraphSublayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/OGCFeatureLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/OrientedImageryLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/ParquetLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/StreamLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/SubtypeGroupLayerAdapter.js +1 -1
- package/views/2d/layers/features/schema/processor/SimpleProcessorSchema.js +1 -1
- package/views/2d/layers/features/sources/strategies/support/queryAdapters.js +1 -1
- package/views/2d/layers/features/support/FeatureMetadata.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReaderAnnotationJSON.js +2 -0
- package/views/2d/layers/features/support/FeatureSetReaderDimensionJSON.js +2 -0
- package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
- package/views/2d/layers/support/annodime/DimensionInfo.js +2 -0
- package/views/2d/layers/support/annodime/DimensionMatcherSchema.js +2 -0
- package/views/2d/layers/support/annodime/PrivateDimensionEffect.js +2 -0
- package/views/2d/layers/support/annodime/PrivatePlacementMultipoint.js +2 -0
- package/views/2d/layers/support/annodime/annotationGraphic.js +2 -0
- package/views/2d/layers/support/annodime/annotationSchema.js +2 -0
- package/views/2d/layers/support/annodime/annotationUtils.js +2 -0
- package/views/2d/layers/support/annodime/cimAnnotations.js +2 -0
- package/views/2d/layers/support/annodime/dimensionSchema.js +2 -0
- package/views/2d/layers/support/annodime/dimensionSymbols.js +2 -0
- package/views/2d/layers/support/annodime/dimensionUtils.js +2 -0
- package/views/2d/layers/support/annodime/fields.js +2 -0
- package/views/2d/layers/support/annodime/unsupported.js +2 -0
- package/views/2d/layers/support/annodime/utils.js +2 -0
- package/views/2d/layers/support/annodime/virtualFields.js +2 -0
- package/views/2d/support/clippingUtils.js +1 -1
- package/views/2d/support/hitTestUtils.js +1 -1
- package/views/2d/types.d.ts +5 -1
- package/views/3d/analysis/ShadowCast/ShadowCastTooltip.js +1 -1
- package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
- package/views/3d/input/SceneInputManager.js +1 -1
- package/views/3d/layerViewModuleImportUtils.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerWorkerHandle.js +1 -1
- package/views/3d/layers/MapImageLayerView3D.js +1 -1
- package/views/3d/layers/TileLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPathSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/extrudeUtils.js +1 -1
- package/views/3d/layers/graphics/tessellationUtils.js +1 -1
- package/views/3d/support/engineContent/line.js +1 -1
- package/views/3d/support/renderInfoUtils/polygon.js +1 -1
- package/views/3d/terrain/isTerrainSurfaceLayer.js +1 -1
- package/views/3d/types.d.ts +2 -0
- package/views/3d/webgl-engine/collections/Component/RenderSubmitSystem.js +1 -1
- package/views/3d/webgl-engine/core/renderPasses/RenderPass.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/TextureBackedBufferFields.glsl.js +8 -8
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/PathEvaluate.glsl.js +225 -0
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/PathVertexInfo.glsl.js +19 -0
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/PathVertexPosition.glsl.js +55 -40
- package/views/3d/webgl-engine/core/shaderModules/Float2sPassUniform.js +2 -0
- package/views/3d/webgl-engine/core/shaderModules/IntegersPassUniform.js +2 -0
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
- package/views/3d/webgl-engine/lib/PathBuilder.js +1 -1
- package/views/3d/webgl-engine/lib/PathEvaluator.js +1 -1
- package/views/3d/webgl-engine/lib/PathExtruder.js +1 -1
- package/views/3d/webgl-engine/lib/PathGeometryData.js +1 -1
- package/views/3d/webgl-engine/lib/PathProfile.js +1 -1
- package/views/3d/webgl-engine/lib/PathVertex.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
- package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBackedBufferFieldCreation.js +1 -1
- package/views/3d/webgl-engine/materials/PathLayouts.js +1 -1
- package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PathTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/materials/internal/bufferWriterUtils.js +1 -1
- package/views/3d/webgl-engine/shaders/ditherNoise.glsl.js +18 -1
- package/views/PopupView.d.ts +3 -3
- package/views/PopupView.js +1 -1
- package/views/SceneView.js +1 -1
- package/views/View2D.d.ts +1 -1
- package/views/View2D.js +1 -1
- package/views/draw/DrawTool.d.ts +34 -1
- package/views/input/EventMatch.js +1 -1
- package/views/layers/AnnotationLayerView.d.ts +18 -0
- package/views/layers/AnnotationLayerView.js +2 -0
- package/views/layers/DimensionFeatureLayerView.d.ts +18 -0
- package/views/layers/DimensionFeatureLayerView.js +2 -0
- package/views/layers/FeatureLikeLayerView.d.ts +2 -1
- package/views/layers/FeatureLikeLayerView.js +1 -1
- package/views/layers/ImageryLayerView.js +1 -1
- package/views/layers/ImageryTileLayerView.js +1 -1
- package/views/layers/WMSLayerView.js +1 -1
- package/views/layers/support/MapServiceLayerViewHelper.js +1 -1
- package/widgets/BasemapToggle/BasemapToggleViewModel.js +1 -1
- package/widgets/BatchAttributeForm/css.js +1 -1
- package/widgets/BatchAttributeForm/rendered-content/RelationshipDetails.js +2 -0
- package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
- package/widgets/BatchAttributeForm.js +1 -1
- package/widgets/Directions/DirectionsViewModel.js +1 -1
- package/widgets/Directions.js +1 -1
- package/widgets/FeatureForm.js +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.d.ts +7 -1
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/FeatureTable/support/FeatureStore.js +1 -1
- package/widgets/FeatureTable/support/types.d.ts +11 -1
- package/widgets/FeatureTable.d.ts +7 -1
- package/widgets/FeatureTable.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/css.js +1 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/support/iconUtils.js +1 -1
- package/assets/esri/core/workers/chunks/0175098da590a7109539.js +0 -1
- package/assets/esri/core/workers/chunks/01c70c27aa3a955e2928.js +0 -262
- package/assets/esri/core/workers/chunks/02c0640005b09007bb70.js +0 -1
- package/assets/esri/core/workers/chunks/040884cec4b84dd1bb17.js +0 -1
- package/assets/esri/core/workers/chunks/04ea806b933d4dd41609.js +0 -1
- package/assets/esri/core/workers/chunks/0550dc63b6b1274242b8.js +0 -1
- package/assets/esri/core/workers/chunks/0c8e6ccb5a8174718d62.js +0 -640
- package/assets/esri/core/workers/chunks/13a8346abe5509167578.js +0 -1
- package/assets/esri/core/workers/chunks/13d43a0683c42b94feb6.js +0 -1
- package/assets/esri/core/workers/chunks/13f0e08de2dfab07d212.js +0 -1
- package/assets/esri/core/workers/chunks/1c0e8808d14d8e6dde2c.js +0 -1
- package/assets/esri/core/workers/chunks/1c8c8050d60205cf2156.js +0 -1
- package/assets/esri/core/workers/chunks/1ebb613bbe09fcf274d8.js +0 -1
- package/assets/esri/core/workers/chunks/23119a1b1310b7dab2aa.js +0 -1
- package/assets/esri/core/workers/chunks/282f3d364411efac7b80.js +0 -1
- package/assets/esri/core/workers/chunks/2b9661700743d1f9717e.js +0 -1
- package/assets/esri/core/workers/chunks/2f0a3b22fc46d832e240.js +0 -1
- package/assets/esri/core/workers/chunks/2ffffc1931b2e27c6617.js +0 -1
- package/assets/esri/core/workers/chunks/313a89b334e3518d30a4.js +0 -1
- package/assets/esri/core/workers/chunks/34c11e7c8762fe0c19fb.js +0 -1
- package/assets/esri/core/workers/chunks/3835097520296b0517af.js +0 -1
- package/assets/esri/core/workers/chunks/389e57aab12d52d72695.js +0 -1
- package/assets/esri/core/workers/chunks/3fed503185ea1913fb84.js +0 -1
- package/assets/esri/core/workers/chunks/4020f95d8131493f799e.js +0 -1
- package/assets/esri/core/workers/chunks/4255ad7601c7a7621b71.js +0 -1
- package/assets/esri/core/workers/chunks/453c3b265481c80fc625.js +0 -1
- package/assets/esri/core/workers/chunks/4605a68e40c5c3ac6e3e.js +0 -1
- package/assets/esri/core/workers/chunks/4a41f98210f1da3b5041.js +0 -1
- package/assets/esri/core/workers/chunks/4afe76de6e82e86fe697.js +0 -1
- package/assets/esri/core/workers/chunks/4b130db9b7b4e2e32ea4.js +0 -1
- package/assets/esri/core/workers/chunks/4c5cdd2712c938fafc5d.js +0 -1
- package/assets/esri/core/workers/chunks/4fa3840672c33adb9171.js +0 -1
- package/assets/esri/core/workers/chunks/5a85cbc04c64091d7f46.js +0 -1
- package/assets/esri/core/workers/chunks/5d60253ea3d247cdb3d1.js +0 -1
- package/assets/esri/core/workers/chunks/5e5c7cc74ff1c9603aff.js +0 -1
- package/assets/esri/core/workers/chunks/5ea0096a282e87a269bd.js +0 -1
- package/assets/esri/core/workers/chunks/601edefd8da4eb2eda28.js +0 -1
- package/assets/esri/core/workers/chunks/63ea9035dcf9ce45560c.js +0 -1
- package/assets/esri/core/workers/chunks/66fe1634c6e8f72fc653.js +0 -1
- package/assets/esri/core/workers/chunks/6b66a6f69aa03338c346.js +0 -1
- package/assets/esri/core/workers/chunks/6d59a9cf533ebc590f70.js +0 -1
- package/assets/esri/core/workers/chunks/6f02681bcaa9bef501fc.js +0 -1
- package/assets/esri/core/workers/chunks/7b66691d133dabd87ce6.js +0 -1
- package/assets/esri/core/workers/chunks/7c077e1a63ab97bf3e87.js +0 -1
- package/assets/esri/core/workers/chunks/7dc9ff66e1eceadbae24.js +0 -1
- package/assets/esri/core/workers/chunks/825db2ea15308ee6e5dc.js +0 -1
- package/assets/esri/core/workers/chunks/85a200aecc7a844c9566.js +0 -1
- package/assets/esri/core/workers/chunks/89250d268dc2554a9ece.js +0 -1
- package/assets/esri/core/workers/chunks/8c8fed53c12fb80ef2ed.js +0 -1
- package/assets/esri/core/workers/chunks/8ff83c59462dea6e3427.js +0 -1
- package/assets/esri/core/workers/chunks/958617c3a9854ea04e06.js +0 -1
- package/assets/esri/core/workers/chunks/9890c85a238879490926.js +0 -1
- package/assets/esri/core/workers/chunks/a001e7e8a39f27284d87.js +0 -1
- package/assets/esri/core/workers/chunks/a5b9ae4c93f9af7589f2.js +0 -1
- package/assets/esri/core/workers/chunks/a93a058678c8c8996d54.js +0 -1
- package/assets/esri/core/workers/chunks/a9c9c00432ee41ec91ba.js +0 -1
- package/assets/esri/core/workers/chunks/acb8cff06142f828fb78.js +0 -1
- package/assets/esri/core/workers/chunks/af762422a65c551dcd54.js +0 -1
- package/assets/esri/core/workers/chunks/b041c22885193bdd3004.js +0 -1
- package/assets/esri/core/workers/chunks/b3e8ab68fc38306f13c6.js +0 -1
- package/assets/esri/core/workers/chunks/b432a5a829e309837db6.js +0 -1
- package/assets/esri/core/workers/chunks/b4badbcf1bdb7823d825.js +0 -1
- package/assets/esri/core/workers/chunks/b891d95b7858665cd6c1.js +0 -1
- package/assets/esri/core/workers/chunks/bb2f6b0fcdfb8b158e26.js +0 -1
- package/assets/esri/core/workers/chunks/c0c693c2e0043ecba4a5.js +0 -1
- package/assets/esri/core/workers/chunks/c5ab346a226df1894302.js +0 -1
- package/assets/esri/core/workers/chunks/c91d4f1b42cfe474df52.js +0 -1
- package/assets/esri/core/workers/chunks/cedf3e316d6f89cf7005.js +0 -1
- package/assets/esri/core/workers/chunks/d33a08e5f589355c57a3.js +0 -1
- package/assets/esri/core/workers/chunks/d52172439db02a349542.js +0 -1
- package/assets/esri/core/workers/chunks/dd29fd1b3da90d3ca6b1.js +0 -1
- package/assets/esri/core/workers/chunks/e393fd61deb2e7f22ee6.js +0 -1
- package/assets/esri/core/workers/chunks/e8518bd3596543b387f8.js +0 -1
- package/assets/esri/core/workers/chunks/ecf4d07917efc97eb991.js +0 -1
- package/assets/esri/core/workers/chunks/eda51e512eff551ad858.js +0 -1
- package/assets/esri/core/workers/chunks/ee56290e600cbeb25a00.js +0 -1
- package/assets/esri/core/workers/chunks/f14e3693cd644265f909.js +0 -1
- package/assets/esri/core/workers/chunks/f52c6efc5a2abf5ac845.js +0 -1
- package/assets/esri/core/workers/chunks/f635a8e3b0bfeda99ed5.js +0 -1
- package/assets/esri/core/workers/chunks/f91a2c69a93295cf4de6.js +0 -1
- package/assets/esri/core/workers/chunks/fec3fffcf854a6226df4.js +0 -1
- package/symbols/dimensions/effects/LinearDimensionArrowEffect.js +0 -2
- package/symbols/dimensions/effects/LinearDimensionExtensionLineEffect.js +0 -2
- package/symbols/dimensions/effects/LinearDimensionLeaderLineEffect.js +0 -2
- package/symbols/dimensions/effects/LinearDimensionLineEffect.js +0 -2
- package/symbols/dimensions/effects/LinearDimensionPointEffect.js +0 -2
- package/symbols/dimensions/effects/LinearDimensionTextEffect.js +0 -2
- package/views/2d/layers/features/support/FeatureSetReaderDimension.js +0 -2
- package/views/3d/webgl-engine/effects/globalIllumination/BlueNoise.js +0 -2
- package/views/layers/support/dimensionUtils.js +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3846],{5482(t,n,e){function r(t,n,e,r){var a,o=arguments.length,u=o<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(t,n,e,r);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(u=(o<3?a(u):o>3?a(n,e,u):a(n,e))||u);return o>3&&u&&Object.defineProperty(n,e,u),u}function a(t,n,e){if(null!=n){if("object"!=typeof n&&"function"!=typeof n)throw new TypeError("Object expected.");var r,a;if(e){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=n[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=n[Symbol.dispose],e&&(a=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");a&&(r=function(){try{a.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:n,dispose:r,async:e})}else e&&t.stack.push({async:!0});return n}e.d(n,{Cg:()=>r,hk:()=>u,mS:()=>a}),Object.create,Object.create;var o="function"==typeof SuppressedError?SuppressedError:function(t,n,e){var r=new Error(e);return r.name="SuppressedError",r.error=t,r.suppressed=n,r};function u(t){function n(n){t.error=t.hasError?new o(n,t.error,"An error was suppressed during disposal."):n,t.hasError=!0}var e,r=0;return function a(){for(;e=t.stack.pop();)try{if(!e.async&&1===r)return r=0,t.stack.push(e),Promise.resolve().then(a);if(e.dispose){var o=e.dispose.call(e.value);if(e.async)return r|=2,Promise.resolve(o).then(a,function(t){return n(t),a()})}else r|=1}catch(t){n(t)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}},69540(t,n,e){e.d(n,{OU:()=>c,Pw:()=>f});var r=e(5482),a=e(69622),o=(e(44208),e(4718)),u=(e(53966),e(97768)),s=e(88620),l=e(64108);const i=Symbol("ClonableMixin"),c=t=>{var n;const e=t;let a=class extends e{constructor(){super(...arguments),this[n]=!0}static{n=i}clone(t){const n=(0,s.oY)(this);(0,u.Lw)(n,"unable to clone instance of non-accessor class");const e=n.metadata,r=n.store,a={},l=new Map;for(const n in e){const u=e[n],s=r?.originOf(n),i=u.clonable;if(u.readOnly||!1===i||7!==s&&0!==s&&5!==s&&4!==s)continue;const c=this[n];let f=null;if("function"==typeof i)f=i(c,t);else if("reference"===i)f=c;else if(f=(0,o.TU)(c,t),null!=c&&null==f)continue;0===s?l.set(n,f):a[n]=f}const i=new(0,Object.getPrototypeOf(this).constructor)(a);if(l.size){const t=(0,s.oY)(i)?.store;if(t)for(const[n,e]of l)t.set(n,e,0)}return i}};return a=(0,r.Cg)([(0,l.$)("esri.core.Clonable")],a),a},f=c(a.A)},29242(t,n,e){function r(){return[1,0,0,0,1,0,0,0,1]}function a(t,n,e,r,a,o,u,s,l){return[t,n,e,r,a,o,u,s,l]}e.d(n,{fA:()=>a,vt:()=>r,zK:()=>o});const o=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,fromValues:a},Symbol.toStringTag,{value:"Module"}))},51850(t,n,e){function r(){return[0,0,0]}function a(t){return[t[0],t[1],t[2]]}function o(t,n,e){return[t,n,e]}function u(t,n,e){return[t,n,e]}function s(t,n=[0,0,0]){const e=Math.min(3,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n}function l(){return[0,0,0]}function i(){return o(1,1,1)}function c(){return o(1,0,0)}function f(){return o(0,1,0)}function h(){return o(0,0,1)}e.d(n,{CN:()=>u,Cb:()=>m,Cw:()=>d,JP:()=>p,S:()=>i,Ul:()=>l,Un:()=>b,ci:()=>s,fA:()=>o,o8:()=>a,uY:()=>M,vt:()=>r});const M=[0,0,0],b=i(),d=c(),p=f(),m=h();Object.freeze(Object.defineProperty({__proto__:null,ONES:b,UNIT_X:d,UNIT_Y:p,UNIT_Z:m,ZEROS:M,clone:a,create:r,freeze:u,fromArray:s,fromValues:o,ones:i,unitX:c,unitY:f,unitZ:h,zeros:l},Symbol.toStringTag,{value:"Module"}))},91829(t,n,e){function r(){return[0,0,0,0]}function a(t,n,e,r){return[t,n,e,r]}function o(t,n,e,r){return[t,n,e,r]}function u(){return a(1,1,1,1)}function s(){return a(1,0,0,0)}function l(){return a(0,1,0,0)}function i(){return a(0,0,1,0)}function c(){return a(0,0,0,1)}e.d(n,{CN:()=>o,Un:()=>h,fA:()=>a,uY:()=>f,vt:()=>r});const f=[0,0,0,0],h=u(),M=s(),b=l(),d=i(),p=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:h,UNIT_W:p,UNIT_X:M,UNIT_Y:b,UNIT_Z:d,ZEROS:f,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:r,freeze:o,fromArray:function(t,n=[0,0,0,0]){const e=Math.min(4,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:a,ones:u,unitW:c,unitX:s,unitY:l,unitZ:i,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},34304(t,n,e){e.d(n,{DF:()=>l,FD:()=>a,Ov:()=>o,ct:()=>i});let r=1e-6;function a(){return r}const o=Math.random,u=Math.PI/180,s=180/Math.PI;function l(t){return t*u}function i(t){return t*s}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:o,equals:function(t,n){return Math.abs(t-n)<=r*Math.max(1,Math.abs(t),Math.abs(n))},getEpsilon:a,setEpsilon:function(t){r=t},toDegree:i,toRadian:l},Symbol.toStringTag,{value:"Module"}))},77690(t,n,e){e.d(n,{B8:()=>s,Ge:()=>M,I0:()=>h,KC:()=>l,a4:()=>i,hZ:()=>o,hs:()=>f,lw:()=>c,mg:()=>u,z0:()=>a});var r=e(34304);function a(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t}function o(t,n,e,r,a,o,u,s,l,i){return t[0]=n,t[1]=e,t[2]=r,t[3]=a,t[4]=o,t[5]=u,t[6]=s,t[7]=l,t[8]=i,t}function u(t,n){if(t===n){const e=n[1],r=n[2],a=n[5];t[1]=n[3],t[2]=n[6],t[3]=e,t[5]=n[7],t[6]=r,t[7]=a}else t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8];return t}function s(t,n){const e=n[0],r=n[1],a=n[2],o=n[3],u=n[4],s=n[5],l=n[6],i=n[7],c=n[8],f=c*u-s*i,h=-c*o+s*l,M=i*o-u*l;let b=e*f+r*h+a*M;return b?(b=1/b,t[0]=f*b,t[1]=(-c*r+a*i)*b,t[2]=(s*r-a*u)*b,t[3]=h*b,t[4]=(c*e-a*l)*b,t[5]=(-s*e+a*o)*b,t[6]=M*b,t[7]=(-i*e+r*l)*b,t[8]=(u*e-r*o)*b,t):null}function l(t,n){const e=n[0],r=n[1],a=n[2],o=n[3],u=n[4],s=n[5],l=n[6],i=n[7],c=n[8];return t[0]=u*c-s*i,t[1]=a*i-r*c,t[2]=r*s-a*u,t[3]=s*l-o*c,t[4]=e*c-a*l,t[5]=a*o-e*s,t[6]=o*i-u*l,t[7]=r*l-e*i,t[8]=e*u-r*o,t}function i(t){const n=t[0],e=t[1],r=t[2],a=t[3],o=t[4],u=t[5],s=t[6],l=t[7],i=t[8];return n*(i*o-u*l)+e*(-i*a+u*s)+r*(l*a-o*s)}function c(t,n,e){const r=n[0],a=n[1],o=n[2],u=n[3],s=n[4],l=n[5],i=n[6],c=n[7],f=n[8],h=e[0],M=e[1],b=e[2],d=e[3],p=e[4],m=e[5],y=e[6],g=e[7],v=e[8];return t[0]=h*r+M*u+b*i,t[1]=h*a+M*s+b*c,t[2]=h*o+M*l+b*f,t[3]=d*r+p*u+m*i,t[4]=d*a+p*s+m*c,t[5]=d*o+p*l+m*f,t[6]=y*r+g*u+v*i,t[7]=y*a+g*s+v*c,t[8]=y*o+g*l+v*f,t}function f(t,n,e){const r=e[0],a=e[1],o=e[2];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=a*n[3],t[4]=a*n[4],t[5]=a*n[5],t[6]=o*n[6],t[7]=o*n[7],t[8]=o*n[8],t}function h(t,n){const e=n[0],r=n[1],a=n[2],o=n[3],u=e+e,s=r+r,l=a+a,i=e*u,c=r*u,f=r*s,h=a*u,M=a*s,b=a*l,d=o*u,p=o*s,m=o*l;return t[0]=1-f-b,t[3]=c-m,t[6]=h+p,t[1]=c+m,t[4]=1-i-b,t[7]=M-d,t[2]=h-p,t[5]=M+d,t[8]=1-i-f,t}function M(t,n){const e=n[0],r=n[1],a=n[2],o=n[3],u=n[4],s=n[5],l=n[6],i=n[7],c=n[8],f=n[9],h=n[10],M=n[11],b=n[12],d=n[13],p=n[14],m=n[15],y=e*s-r*u,g=e*l-a*u,v=e*i-o*u,w=r*l-a*s,O=r*i-o*s,I=a*i-o*l,S=c*d-f*b,x=c*p-h*b,R=c*m-M*b,A=f*p-h*d,q=f*m-M*d,_=h*m-M*p;let T=y*_-g*q+v*A+w*R-O*x+I*S;return T?(T=1/T,t[0]=(s*_-l*q+i*A)*T,t[1]=(l*R-u*_-i*x)*T,t[2]=(u*q-s*R+i*S)*T,t[3]=(a*q-r*_-o*A)*T,t[4]=(e*_-a*R+o*x)*T,t[5]=(r*R-e*q-o*S)*T,t[6]=(d*I-p*O+m*w)*T,t[7]=(p*v-b*I-m*g)*T,t[8]=(b*O-d*v+m*y)*T,t):null}function b(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[4]=n[4]-e[4],t[5]=n[5]-e[5],t[6]=n[6]-e[6],t[7]=n[7]-e[7],t[8]=n[8]-e[8],t}const d=c,p=b;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t[8]=n[8]+e[8],t},adjoint:l,copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},determinant:i,equals:function(t,n){const e=t[0],a=t[1],o=t[2],u=t[3],s=t[4],l=t[5],i=t[6],c=t[7],f=t[8],h=n[0],M=n[1],b=n[2],d=n[3],p=n[4],m=n[5],y=n[6],g=n[7],v=n[8],w=(0,r.FD)();return Math.abs(e-h)<=w*Math.max(1,Math.abs(e),Math.abs(h))&&Math.abs(a-M)<=w*Math.max(1,Math.abs(a),Math.abs(M))&&Math.abs(o-b)<=w*Math.max(1,Math.abs(o),Math.abs(b))&&Math.abs(u-d)<=w*Math.max(1,Math.abs(u),Math.abs(d))&&Math.abs(s-p)<=w*Math.max(1,Math.abs(s),Math.abs(p))&&Math.abs(l-m)<=w*Math.max(1,Math.abs(l),Math.abs(m))&&Math.abs(i-y)<=w*Math.max(1,Math.abs(i),Math.abs(y))&&Math.abs(c-g)<=w*Math.max(1,Math.abs(c),Math.abs(g))&&Math.abs(f-v)<=w*Math.max(1,Math.abs(f),Math.abs(v))},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=0,t[6]=n[4],t[7]=n[5],t[8]=1,t},fromMat4:a,fromQuat:h,fromRotation:function(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=0,t[3]=-e,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=n[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=n[0],t[7]=n[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:s,isOrthoNormal:function(t){const n=(0,r.FD)(),e=t[0],a=t[1],o=t[2],u=t[3],s=t[4],l=t[5],i=t[6],c=t[7],f=t[8];return Math.abs(1-(e*e+u*u+i*i))<=n&&Math.abs(1-(a*a+s*s+c*c))<=n&&Math.abs(1-(o*o+l*l+f*f))<=n},mul:d,multiply:c,multiplyScalar:function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t[8]=n[8]*e,t},multiplyScalarAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t[6]=n[6]+e[6]*r,t[7]=n[7]+e[7]*r,t[8]=n[8]+e[8]*r,t},normalFromMat4:M,normalFromMat4Legacy:function(t,n){const e=n[0],r=n[1],a=n[2],o=n[4],u=n[5],s=n[6],l=n[8],i=n[9],c=n[10],f=c*u-s*i,h=-c*o+s*l,M=i*o-u*l,b=e*f+r*h+a*M;if(!b)return null;const d=1/b;return t[0]=f*d,t[1]=(-c*r+a*i)*d,t[2]=(s*r-a*u)*d,t[3]=h*d,t[4]=(c*e-a*l)*d,t[5]=(-s*e+a*o)*d,t[6]=M*d,t[7]=(-i*e+r*l)*d,t[8]=(u*e-r*o)*d,t},projection:function(t,n,e){return t[0]=2/n,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/e,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,n,e){const r=n[0],a=n[1],o=n[2],u=n[3],s=n[4],l=n[5],i=n[6],c=n[7],f=n[8],h=Math.sin(e),M=Math.cos(e);return t[0]=M*r+h*u,t[1]=M*a+h*s,t[2]=M*o+h*l,t[3]=M*u-h*r,t[4]=M*s-h*a,t[5]=M*l-h*o,t[6]=i,t[7]=c,t[8]=f,t},scale:f,scaleByVec2:function(t,n,e){const r=e[0],a=e[1];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=a*n[3],t[4]=a*n[4],t[5]=a*n[5],t},set:o,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:p,subtract:b,translate:function(t,n,e){const r=n[0],a=n[1],o=n[2],u=n[3],s=n[4],l=n[5],i=n[6],c=n[7],f=n[8],h=e[0],M=e[1];return t[0]=r,t[1]=a,t[2]=o,t[3]=u,t[4]=s,t[5]=l,t[6]=h*r+M*u+i,t[7]=h*a+M*s+c,t[8]=h*o+M*l+f,t},transpose:u},Symbol.toStringTag,{value:"Module"}))},58083(t,n,e){e.d(n,{$0:()=>p,$h:()=>R,B8:()=>i,C:()=>o,D_:()=>s,N9:()=>y,O7:()=>x,Tl:()=>f,X_:()=>O,aI:()=>j,e$:()=>M,eL:()=>b,hM:()=>m,hZ:()=>u,hs:()=>h,kN:()=>d,l:()=>I,lw:()=>c,mg:()=>l,o1:()=>S,sC:()=>w,t2:()=>T,t5:()=>q,tZ:()=>P,ut:()=>D,v3:()=>A});var r=e(51850),a=e(34304);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function u(t,n,e,r,a,o,u,s,l,i,c,f,h,M,b,d,p){return t[0]=n,t[1]=e,t[2]=r,t[3]=a,t[4]=o,t[5]=u,t[6]=s,t[7]=l,t[8]=i,t[9]=c,t[10]=f,t[11]=h,t[12]=M,t[13]=b,t[14]=d,t[15]=p,t}function s(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function l(t,n){if(t===n){const e=n[1],r=n[2],a=n[3],o=n[6],u=n[7],s=n[11];t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=e,t[6]=n[9],t[7]=n[13],t[8]=r,t[9]=o,t[11]=n[14],t[12]=a,t[13]=u,t[14]=s}else t[0]=n[0],t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=n[1],t[5]=n[5],t[6]=n[9],t[7]=n[13],t[8]=n[2],t[9]=n[6],t[10]=n[10],t[11]=n[14],t[12]=n[3],t[13]=n[7],t[14]=n[11],t[15]=n[15];return t}function i(t,n){const e=n[0],r=n[1],a=n[2],o=n[3],u=n[4],s=n[5],l=n[6],i=n[7],c=n[8],f=n[9],h=n[10],M=n[11],b=n[12],d=n[13],p=n[14],m=n[15],y=e*s-r*u,g=e*l-a*u,v=e*i-o*u,w=r*l-a*s,O=r*i-o*s,I=a*i-o*l,S=c*d-f*b,x=c*p-h*b,R=c*m-M*b,A=f*p-h*d,q=f*m-M*d,_=h*m-M*p;let T=y*_-g*q+v*A+w*R-O*x+I*S;return T?(T=1/T,t[0]=(s*_-l*q+i*A)*T,t[1]=(a*q-r*_-o*A)*T,t[2]=(d*I-p*O+m*w)*T,t[3]=(h*O-f*I-M*w)*T,t[4]=(l*R-u*_-i*x)*T,t[5]=(e*_-a*R+o*x)*T,t[6]=(p*v-b*I-m*g)*T,t[7]=(c*I-h*v+M*g)*T,t[8]=(u*q-s*R+i*S)*T,t[9]=(r*R-e*q-o*S)*T,t[10]=(b*O-d*v+m*y)*T,t[11]=(f*v-c*O-M*y)*T,t[12]=(s*x-u*A-l*S)*T,t[13]=(e*A-r*x+a*S)*T,t[14]=(d*g-b*w-p*y)*T,t[15]=(c*w-f*g+h*y)*T,t):null}function c(t,n,e){const r=n[0],a=n[1],o=n[2],u=n[3],s=n[4],l=n[5],i=n[6],c=n[7],f=n[8],h=n[9],M=n[10],b=n[11],d=n[12],p=n[13],m=n[14],y=n[15];let g=e[0],v=e[1],w=e[2],O=e[3];return t[0]=g*r+v*s+w*f+O*d,t[1]=g*a+v*l+w*h+O*p,t[2]=g*o+v*i+w*M+O*m,t[3]=g*u+v*c+w*b+O*y,g=e[4],v=e[5],w=e[6],O=e[7],t[4]=g*r+v*s+w*f+O*d,t[5]=g*a+v*l+w*h+O*p,t[6]=g*o+v*i+w*M+O*m,t[7]=g*u+v*c+w*b+O*y,g=e[8],v=e[9],w=e[10],O=e[11],t[8]=g*r+v*s+w*f+O*d,t[9]=g*a+v*l+w*h+O*p,t[10]=g*o+v*i+w*M+O*m,t[11]=g*u+v*c+w*b+O*y,g=e[12],v=e[13],w=e[14],O=e[15],t[12]=g*r+v*s+w*f+O*d,t[13]=g*a+v*l+w*h+O*p,t[14]=g*o+v*i+w*M+O*m,t[15]=g*u+v*c+w*b+O*y,t}function f(t,n,e){const r=e[0],a=e[1],o=e[2];if(n===t)t[12]=n[0]*r+n[4]*a+n[8]*o+n[12],t[13]=n[1]*r+n[5]*a+n[9]*o+n[13],t[14]=n[2]*r+n[6]*a+n[10]*o+n[14],t[15]=n[3]*r+n[7]*a+n[11]*o+n[15];else{const e=n[0],u=n[1],s=n[2],l=n[3],i=n[4],c=n[5],f=n[6],h=n[7],M=n[8],b=n[9],d=n[10],p=n[11];t[0]=e,t[1]=u,t[2]=s,t[3]=l,t[4]=i,t[5]=c,t[6]=f,t[7]=h,t[8]=M,t[9]=b,t[10]=d,t[11]=p,t[12]=e*r+i*a+M*o+n[12],t[13]=u*r+c*a+b*o+n[13],t[14]=s*r+f*a+d*o+n[14],t[15]=l*r+h*a+p*o+n[15]}return t}function h(t,n,e){const r=e[0],a=e[1],o=e[2];return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t[4]=n[4]*a,t[5]=n[5]*a,t[6]=n[6]*a,t[7]=n[7]*a,t[8]=n[8]*o,t[9]=n[9]*o,t[10]=n[10]*o,t[11]=n[11]*o,t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function M(t,n,e,r){let u=r[0],s=r[1],l=r[2],i=Math.sqrt(u*u+s*s+l*l);if(i<=(0,a.FD)())return void o(t,n);i=1/i,u*=i,s*=i,l*=i;const c=Math.sin(e),f=Math.cos(e),h=1-f,M=n[0],b=n[1],d=n[2],p=n[3],m=n[4],y=n[5],g=n[6],v=n[7],w=n[8],O=n[9],I=n[10],S=n[11],x=u*u*h+f,R=s*u*h+l*c,A=l*u*h-s*c,q=u*s*h-l*c,_=s*s*h+f,T=l*s*h+u*c,j=u*l*h+s*c,D=s*l*h-u*c,P=l*l*h+f;t[0]=M*x+m*R+w*A,t[1]=b*x+y*R+O*A,t[2]=d*x+g*R+I*A,t[3]=p*x+v*R+S*A,t[4]=M*q+m*_+w*T,t[5]=b*q+y*_+O*T,t[6]=d*q+g*_+I*T,t[7]=p*q+v*_+S*T,t[8]=M*j+m*D+w*P,t[9]=b*j+y*D+O*P,t[10]=d*j+g*D+I*P,t[11]=p*j+v*D+S*P,n!==t&&(t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15])}function b(t,n,e){const r=Math.sin(e),a=Math.cos(e),o=n[4],u=n[5],s=n[6],l=n[7],i=n[8],c=n[9],f=n[10],h=n[11];return n!==t&&(t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[4]=o*a+i*r,t[5]=u*a+c*r,t[6]=s*a+f*r,t[7]=l*a+h*r,t[8]=i*a-o*r,t[9]=c*a-u*r,t[10]=f*a-s*r,t[11]=h*a-l*r,t}function d(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function p(t,n,e){if(0===n)return s(t);let r=e[0],o=e[1],u=e[2],l=Math.sqrt(r*r+o*o+u*u);if(l<=(0,a.FD)())return null;l=1/l,r*=l,o*=l,u*=l;const i=Math.sin(n),c=Math.cos(n),f=1-c;return t[0]=r*r*f+c,t[1]=o*r*f+u*i,t[2]=u*r*f-o*i,t[3]=0,t[4]=r*o*f-u*i,t[5]=o*o*f+c,t[6]=u*o*f+r*i,t[7]=0,t[8]=r*u*f+o*i,t[9]=o*u*f-r*i,t[10]=u*u*f+c,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function m(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=e,t[7]=0,t[8]=0,t[9]=-e,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function y(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=0,t[3]=0,t[4]=-e,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function g(t,n,e){const r=n[0],a=n[1],o=n[2],u=n[3],s=r+r,l=a+a,i=o+o,c=r*s,f=r*l,h=r*i,M=a*l,b=a*i,d=o*i,p=u*s,m=u*l,y=u*i;return t[0]=1-(M+d),t[1]=f+y,t[2]=h-m,t[3]=0,t[4]=f-y,t[5]=1-(c+d),t[6]=b+p,t[7]=0,t[8]=h+m,t[9]=b-p,t[10]=1-(c+M),t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}const v=(0,r.vt)();function w(t,n){return t[0]=n[12],t[1]=n[13],t[2]=n[14],t}function O(t,n){const e=n[0],r=n[1],a=n[2],o=n[4],u=n[5],s=n[6],l=n[8],i=n[9],c=n[10];return t[0]=Math.sqrt(e*e+r*r+a*a),t[1]=Math.sqrt(o*o+u*u+s*s),t[2]=Math.sqrt(l*l+i*i+c*c),t}function I(t,n){const e=n[0]+n[5]+n[10];let r=0;return e>0?(r=2*Math.sqrt(e+1),t[3]=.25*r,t[0]=(n[6]-n[9])/r,t[1]=(n[8]-n[2])/r,t[2]=(n[1]-n[4])/r):n[0]>n[5]&&n[0]>n[10]?(r=2*Math.sqrt(1+n[0]-n[5]-n[10]),t[3]=(n[6]-n[9])/r,t[0]=.25*r,t[1]=(n[1]+n[4])/r,t[2]=(n[8]+n[2])/r):n[5]>n[10]?(r=2*Math.sqrt(1+n[5]-n[0]-n[10]),t[3]=(n[8]-n[2])/r,t[0]=(n[1]+n[4])/r,t[1]=.25*r,t[2]=(n[6]+n[9])/r):(r=2*Math.sqrt(1+n[10]-n[0]-n[5]),t[3]=(n[1]-n[4])/r,t[0]=(n[8]+n[2])/r,t[1]=(n[6]+n[9])/r,t[2]=.25*r),t}function S(t,n,e,r){const a=n[0],o=n[1],u=n[2],s=n[3],l=a+a,i=o+o,c=u+u,f=a*l,h=a*i,M=a*c,b=o*i,d=o*c,p=u*c,m=s*l,y=s*i,g=s*c,v=r[0],w=r[1],O=r[2];return t[0]=(1-(b+p))*v,t[1]=(h+g)*v,t[2]=(M-y)*v,t[3]=0,t[4]=(h-g)*w,t[5]=(1-(f+p))*w,t[6]=(d+m)*w,t[7]=0,t[8]=(M+y)*O,t[9]=(d-m)*O,t[10]=(1-(f+b))*O,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function x(t,n,e,r,a){const o=n[0],u=n[1],s=n[2],l=n[3],i=o+o,c=u+u,f=s+s,h=o*i,M=o*c,b=o*f,d=u*c,p=u*f,m=s*f,y=l*i,g=l*c,v=l*f,w=r[0],O=r[1],I=r[2],S=a[0],x=a[1],R=a[2],A=(1-(d+m))*w,q=(M+v)*w,_=(b-g)*w,T=(M-v)*O,j=(1-(h+m))*O,D=(p+y)*O,P=(b+g)*I,k=(p-y)*I,C=(1-(h+d))*I;return t[0]=A,t[1]=q,t[2]=_,t[3]=0,t[4]=T,t[5]=j,t[6]=D,t[7]=0,t[8]=P,t[9]=k,t[10]=C,t[11]=0,t[12]=e[0]+S-(A*S+T*x+P*R),t[13]=e[1]+x-(q*S+j*x+k*R),t[14]=e[2]+R-(_*S+D*x+C*R),t[15]=1,t}function R(t,n,e,r,a,o,u){const s=1/(e-n),l=1/(a-r),i=1/(o-u);return t[0]=2*o*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*o*l,t[6]=0,t[7]=0,t[8]=(e+n)*s,t[9]=(a+r)*l,t[10]=(u+o)*i,t[11]=-1,t[12]=0,t[13]=0,t[14]=u*o*2*i,t[15]=0,t}function A(t,n,e,r,a,o,u){const s=1/(n-e),l=1/(r-a),i=1/(o-u);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*i,t[11]=0,t[12]=(n+e)*s,t[13]=(a+r)*l,t[14]=(u+o)*i,t[15]=1,t}function q(t,n,e,r){const o=n[0],u=n[1],l=n[2];let i=o-e[0],c=u-e[1],f=l-e[2];const h=(0,a.FD)();if(Math.abs(i)<h&&Math.abs(c)<h&&Math.abs(f)<h)return void s(t);let M=1/Math.sqrt(i*i+c*c+f*f);i*=M,c*=M,f*=M;const b=r[0],d=r[1],p=r[2];let m=d*f-p*c,y=p*i-b*f,g=b*c-d*i;M=Math.sqrt(m*m+y*y+g*g),M?(M=1/M,m*=M,y*=M,g*=M):(m=0,y=0,g=0);let v=c*g-f*y,w=f*m-i*g,O=i*y-c*m;M=Math.sqrt(v*v+w*w+O*O),M?(M=1/M,v*=M,w*=M,O*=M):(v=0,w=0,O=0),t[0]=m,t[1]=v,t[2]=i,t[3]=0,t[4]=y,t[5]=w,t[6]=c,t[7]=0,t[8]=g,t[9]=O,t[10]=f,t[11]=0,t[12]=-(m*o+y*u+g*l),t[13]=-(v*o+w*u+O*l),t[14]=-(i*o+c*u+f*l),t[15]=1}function _(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[4]=n[4]-e[4],t[5]=n[5]-e[5],t[6]=n[6]-e[6],t[7]=n[7]-e[7],t[8]=n[8]-e[8],t[9]=n[9]-e[9],t[10]=n[10]-e[10],t[11]=n[11]-e[11],t[12]=n[12]-e[12],t[13]=n[13]-e[13],t[14]=n[14]-e[14],t[15]=n[15]-e[15],t}function T(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]&&t[9]===n[9]&&t[10]===n[10]&&t[11]===n[11]&&t[12]===n[12]&&t[13]===n[13]&&t[14]===n[14]&&t[15]===n[15]}function j(t,n){if(t===n)return!0;const e=t[0],r=t[1],o=t[2],u=t[3],s=t[4],l=t[5],i=t[6],c=t[7],f=t[8],h=t[9],M=t[10],b=t[11],d=t[12],p=t[13],m=t[14],y=t[15],g=n[0],v=n[1],w=n[2],O=n[3],I=n[4],S=n[5],x=n[6],R=n[7],A=n[8],q=n[9],_=n[10],T=n[11],j=n[12],D=n[13],P=n[14],k=n[15],C=(0,a.FD)();return Math.abs(e-g)<=C*Math.max(1,Math.abs(e),Math.abs(g))&&Math.abs(r-v)<=C*Math.max(1,Math.abs(r),Math.abs(v))&&Math.abs(o-w)<=C*Math.max(1,Math.abs(o),Math.abs(w))&&Math.abs(u-O)<=C*Math.max(1,Math.abs(u),Math.abs(O))&&Math.abs(s-I)<=C*Math.max(1,Math.abs(s),Math.abs(I))&&Math.abs(l-S)<=C*Math.max(1,Math.abs(l),Math.abs(S))&&Math.abs(i-x)<=C*Math.max(1,Math.abs(i),Math.abs(x))&&Math.abs(c-R)<=C*Math.max(1,Math.abs(c),Math.abs(R))&&Math.abs(f-A)<=C*Math.max(1,Math.abs(f),Math.abs(A))&&Math.abs(h-q)<=C*Math.max(1,Math.abs(h),Math.abs(q))&&Math.abs(M-_)<=C*Math.max(1,Math.abs(M),Math.abs(_))&&Math.abs(b-T)<=C*Math.max(1,Math.abs(b),Math.abs(T))&&Math.abs(d-j)<=C*Math.max(1,Math.abs(d),Math.abs(j))&&Math.abs(p-D)<=C*Math.max(1,Math.abs(p),Math.abs(D))&&Math.abs(m-P)<=C*Math.max(1,Math.abs(m),Math.abs(P))&&Math.abs(y-k)<=C*Math.max(1,Math.abs(y),Math.abs(k))}function D(t){const n=(0,a.FD)(),e=t[0],r=t[1],o=t[2],u=t[4],s=t[5],l=t[6],i=t[8],c=t[9],f=t[10];return Math.abs(1-(e*e+u*u+i*i))<=n&&Math.abs(1-(r*r+s*s+c*c))<=n&&Math.abs(1-(o*o+l*l+f*f))<=n}function P(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const k=c,C=_;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t[8]=n[8]+e[8],t[9]=n[9]+e[9],t[10]=n[10]+e[10],t[11]=n[11]+e[11],t[12]=n[12]+e[12],t[13]=n[13]+e[13],t[14]=n[14]+e[14],t[15]=n[15]+e[15],t},adjoint:function(t,n){const e=n[0],r=n[1],a=n[2],o=n[3],u=n[4],s=n[5],l=n[6],i=n[7],c=n[8],f=n[9],h=n[10],M=n[11],b=n[12],d=n[13],p=n[14],m=n[15];return t[0]=s*(h*m-M*p)-f*(l*m-i*p)+d*(l*M-i*h),t[1]=-(r*(h*m-M*p)-f*(a*m-o*p)+d*(a*M-o*h)),t[2]=r*(l*m-i*p)-s*(a*m-o*p)+d*(a*i-o*l),t[3]=-(r*(l*M-i*h)-s*(a*M-o*h)+f*(a*i-o*l)),t[4]=-(u*(h*m-M*p)-c*(l*m-i*p)+b*(l*M-i*h)),t[5]=e*(h*m-M*p)-c*(a*m-o*p)+b*(a*M-o*h),t[6]=-(e*(l*m-i*p)-u*(a*m-o*p)+b*(a*i-o*l)),t[7]=e*(l*M-i*h)-u*(a*M-o*h)+c*(a*i-o*l),t[8]=u*(f*m-M*d)-c*(s*m-i*d)+b*(s*M-i*f),t[9]=-(e*(f*m-M*d)-c*(r*m-o*d)+b*(r*M-o*f)),t[10]=e*(s*m-i*d)-u*(r*m-o*d)+b*(r*i-o*s),t[11]=-(e*(s*M-i*f)-u*(r*M-o*f)+c*(r*i-o*s)),t[12]=-(u*(f*p-h*d)-c*(s*p-l*d)+b*(s*h-l*f)),t[13]=e*(f*p-h*d)-c*(r*p-a*d)+b*(r*h-a*f),t[14]=-(e*(s*p-l*d)-u*(r*p-a*d)+b*(r*l-a*s)),t[15]=e*(s*h-l*f)-u*(r*h-a*f)+c*(r*l-a*s),t},copy:o,determinant:function(t){const n=t[0],e=t[1],r=t[2],a=t[3],o=t[4],u=t[5],s=t[6],l=t[7],i=t[8],c=t[9],f=t[10],h=t[11],M=t[12],b=t[13],d=t[14],p=t[15];return(n*u-e*o)*(f*p-h*d)-(n*s-r*o)*(c*p-h*b)+(n*l-a*o)*(c*d-f*b)+(e*s-r*u)*(i*p-h*M)-(e*l-a*u)*(i*d-f*M)+(r*l-a*s)*(i*b-c*M)},equals:j,exactEquals:T,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,n){const e=n[0],r=n[1],a=n[2],o=n[3],u=e+e,s=r+r,l=a+a,i=e*u,c=r*u,f=r*s,h=a*u,M=a*s,b=a*l,d=o*u,p=o*s,m=o*l;return t[0]=1-f-b,t[1]=c+m,t[2]=h-p,t[3]=0,t[4]=c-m,t[5]=1-i-b,t[6]=M+d,t[7]=0,t[8]=h+p,t[9]=M-d,t[10]=1-i-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,n){const e=v,r=-n[0],a=-n[1],o=-n[2],u=n[3],s=n[4],l=n[5],i=n[6],c=n[7],f=r*r+a*a+o*o+u*u;return f>0?(e[0]=2*(s*u+c*r+l*o-i*a)/f,e[1]=2*(l*u+c*a+i*r-s*o)/f,e[2]=2*(i*u+c*o+s*a-l*r)/f):(e[0]=2*(s*u+c*r+l*o-i*a),e[1]=2*(l*u+c*a+i*r-s*o),e[2]=2*(i*u+c*o+s*a-l*r)),g(t,n,e),t},fromRotation:p,fromRotationTranslation:g,fromRotationTranslationScale:S,fromRotationTranslationScaleOrigin:x,fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=n[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:d,fromXRotation:m,fromYRotation:function(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=0,t[2]=-e,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=e,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:y,frustum:R,getRotation:I,getScale:O,getTranslation:w,hasIdentityRotation:P,identity:s,invert:i,invertOrIdentity:function(t,n){return i(t,n)||s(t),t},isOrthoNormal:D,lookAt:q,mul:k,multiply:c,multiplyScalar:function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t[8]=n[8]*e,t[9]=n[9]*e,t[10]=n[10]*e,t[11]=n[11]*e,t[12]=n[12]*e,t[13]=n[13]*e,t[14]=n[14]*e,t[15]=n[15]*e,t},multiplyScalarAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t[6]=n[6]+e[6]*r,t[7]=n[7]+e[7]*r,t[8]=n[8]+e[8]*r,t[9]=n[9]+e[9]*r,t[10]=n[10]+e[10]*r,t[11]=n[11]+e[11]*r,t[12]=n[12]+e[12]*r,t[13]=n[13]+e[13]*r,t[14]=n[14]+e[14]*r,t[15]=n[15]+e[15]*r,t},ortho:A,perspective:function(t,n,e,r,a){const o=1/Math.tan(n/2);let u;return t[0]=o/e,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=a&&a!==1/0?(u=1/(r-a),t[10]=(a+r)*u,t[14]=2*a*r*u):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,n,e,r){const a=Math.tan(n.upDegrees*Math.PI/180),o=Math.tan(n.downDegrees*Math.PI/180),u=Math.tan(n.leftDegrees*Math.PI/180),s=Math.tan(n.rightDegrees*Math.PI/180),l=2/(u+s),i=2/(a+o);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=i,t[6]=0,t[7]=0,t[8]=-(u-s)*l*.5,t[9]=(a-o)*i*.5,t[10]=r/(e-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*e/(e-r),t[15]=0,t},rotate:M,rotateX:b,rotateY:function(t,n,e){const r=Math.sin(e),a=Math.cos(e),o=n[0],u=n[1],s=n[2],l=n[3],i=n[8],c=n[9],f=n[10],h=n[11];return n!==t&&(t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=o*a-i*r,t[1]=u*a-c*r,t[2]=s*a-f*r,t[3]=l*a-h*r,t[8]=o*r+i*a,t[9]=u*r+c*a,t[10]=s*r+f*a,t[11]=l*r+h*a,t},rotateZ:function(t,n,e){const r=Math.sin(e),a=Math.cos(e),o=n[0],u=n[1],s=n[2],l=n[3],i=n[4],c=n[5],f=n[6],h=n[7];return n!==t&&(t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=o*a+i*r,t[1]=u*a+c*r,t[2]=s*a+f*r,t[3]=l*a+h*r,t[4]=i*a-o*r,t[5]=c*a-u*r,t[6]=f*a-s*r,t[7]=h*a-l*r,t},scale:h,set:u,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:C,subtract:_,targetTo:function(t,n,e,r){const a=n[0],o=n[1],u=n[2],s=r[0],l=r[1],i=r[2];let c=a-e[0],f=o-e[1],h=u-e[2],M=c*c+f*f+h*h;M>0&&(M=1/Math.sqrt(M),c*=M,f*=M,h*=M);let b=l*h-i*f,d=i*c-s*h,p=s*f-l*c;return M=b*b+d*d+p*p,M>0&&(M=1/Math.sqrt(M),b*=M,d*=M,p*=M),t[0]=b,t[1]=d,t[2]=p,t[3]=0,t[4]=f*p-h*d,t[5]=h*b-c*p,t[6]=c*d-f*b,t[7]=0,t[8]=c,t[9]=f,t[10]=h,t[11]=0,t[12]=a,t[13]=o,t[14]=u,t[15]=1,t},translate:f,transpose:l},Symbol.toStringTag,{value:"Module"}))},78955(t,n,e){e.d(n,{Bw:()=>p,C:()=>a,Cc:()=>v,LI:()=>h,Om:()=>g,S8:()=>y,T9:()=>f,WQ:()=>u,Z0:()=>w,aI:()=>I,hG:()=>d,hZ:()=>o,hs:()=>M,jk:()=>c,m3:()=>m,t2:()=>O});var r=e(34304);function a(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t}function o(t,n,e,r,a){return t[0]=n,t[1]=e,t[2]=r,t[3]=a,t}function u(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t}function s(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t}function l(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t[3]=n[3]*e[3],t}function i(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t[3]=n[3]/e[3],t}function c(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t[3]=Math.min(n[3],e[3]),t}function f(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t[3]=Math.max(n[3],e[3]),t}function h(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t[3]=Math.round(n[3]),t}function M(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t}function b(t,n){const e=n[0]-t[0],r=n[1]-t[1],a=n[2]-t[2],o=n[3]-t[3];return Math.sqrt(e*e+r*r+a*a+o*o)}function d(t,n){const e=n[0]-t[0],r=n[1]-t[1],a=n[2]-t[2],o=n[3]-t[3];return e*e+r*r+a*a+o*o}function p(t){const n=t[0],e=t[1],r=t[2],a=t[3];return Math.sqrt(n*n+e*e+r*r+a*a)}function m(t){const n=t[0],e=t[1],r=t[2],a=t[3];return n*n+e*e+r*r+a*a}function y(t,n){const e=n[0],r=n[1],a=n[2],o=n[3];let u=e*e+r*r+a*a+o*o;return u>0&&(u=1/Math.sqrt(u),t[0]=e*u,t[1]=r*u,t[2]=a*u,t[3]=o*u),t}function g(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]}function v(t,n,e,r){const a=n[0],o=n[1],u=n[2],s=n[3];return t[0]=a+r*(e[0]-a),t[1]=o+r*(e[1]-o),t[2]=u+r*(e[2]-u),t[3]=s+r*(e[3]-s),t}function w(t,n,e){const r=n[0],a=n[1],o=n[2],u=n[3];return t[0]=e[0]*r+e[4]*a+e[8]*o+e[12]*u,t[1]=e[1]*r+e[5]*a+e[9]*o+e[13]*u,t[2]=e[2]*r+e[6]*a+e[10]*o+e[14]*u,t[3]=e[3]*r+e[7]*a+e[11]*o+e[15]*u,t}function O(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]}function I(t,n){const e=t[0],a=t[1],o=t[2],u=t[3],s=n[0],l=n[1],i=n[2],c=n[3],f=(0,r.FD)();return Math.abs(e-s)<=f*Math.max(1,Math.abs(e),Math.abs(s))&&Math.abs(a-l)<=f*Math.max(1,Math.abs(a),Math.abs(l))&&Math.abs(o-i)<=f*Math.max(1,Math.abs(o),Math.abs(i))&&Math.abs(u-c)<=f*Math.max(1,Math.abs(u),Math.abs(c))}const S=s,x=l,R=i,A=b,q=d,_=p,T=m;Object.freeze(Object.defineProperty({__proto__:null,add:u,ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t[3]=Math.ceil(n[3]),t},copy:a,copyVec3:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t},dist:A,distance:b,div:R,divide:i,dot:g,equals:I,exactEquals:O,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t[3]=Math.floor(n[3]),t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t[3]=1/n[3],t},len:_,length:p,lerp:v,max:f,min:c,mul:x,multiply:l,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=-n[3],t},normalize:y,random:function(t,n=1){const e=r.Ov;let a,o,u,s,l,i;do{a=2*e()-1,o=2*e()-1,l=a*a+o*o}while(l>=1);do{u=2*e()-1,s=2*e()-1,i=u*u+s*s}while(i>=1);const c=Math.sqrt((1-l)/i);return t[0]=n*a,t[1]=n*o,t[2]=n*u*c,t[3]=n*s*c,t},round:h,scale:M,scaleAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t},set:o,sqrDist:q,sqrLen:T,squaredDistance:d,squaredLength:m,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:S,subtract:s,transformMat4:w,transformQuat:function(t,n,e){const r=n[0],a=n[1],o=n[2],u=e[0],s=e[1],l=e[2],i=e[3],c=i*r+s*o-l*a,f=i*a+l*r-u*o,h=i*o+u*a-s*r,M=-u*r-s*a-l*o;return t[0]=c*i+M*-u+f*-l-h*-s,t[1]=f*i+M*-s+h*-u-c*-l,t[2]=h*i+M*-l+c*-s-f*-u,t[3]=n[3],t}},Symbol.toStringTag,{value:"Module"}))},9762(t,n,e){e.r(n),e.d(n,{projectBuffer:()=>a});var r=e(49208);function a(t,n,e,a,o,u,s=Math.floor(t.length/3)){const l=(0,r.jd)(n,o);if(null==l)return!1;if(l===r.pO){if(t===a&&e===u)return!0;const n=e+3*s;for(let r=e,o=u;r<n;r++,o++)a[o]=t[r]??0;return!0}const i=e+3*s;for(let n=e,r=u;n<i;n+=3,r+=3)l(t,n,a,r);return!0}},49208(t,n,e){e.d(n,{Tp:()=>f,jd:()=>c,pO:()=>M,w5:()=>i});var r=e(34727),a=e(86211),o=e(73941),u=e(79258),s=e(34403),l=e(21325);const i={2:{5:M,7:null,9:null,10:M,1:w,6:null,8:null,0:null,3:d,11:p,2:M,4:R},5:{5:M,7:null,9:null,10:M,1:w,6:null,8:null,0:null,3:d,11:p,2:M,4:R},7:{5:null,7:M,9:null,10:M,1:null,6:v,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:M,10:M,1:null,6:null,8:g,0:null,3:null,11:null,2:null,4:null},3:{5:b,7:null,9:null,10:b,1:function(t,n,e,r){const a=t[n]/D,o=j-2*Math.atan(Math.exp(-t[n+1]/D)),u=D+(t[n+2]??0),s=Math.cos(o)*u;e[r]=Math.cos(a)*s,e[r+1]=Math.sin(a)*s,e[r+2]=Math.sin(o)*u},6:null,8:null,0:null,3:M,11:function(t,n,e,r){b(t,n,e,r),p(e,r,e,r)},2:b,4:function(t,n,e,r){b(t,n,e,r),R(e,r,e,r)}},4:{5:A,7:null,9:null,10:A,1:function(t,n,e,r){A(t,n,e,r),w(e,r,e,r)},6:null,8:null,0:null,3:function(t,n,e,r){A(t,n,e,r),d(e,r,e,r)},11:function(t,n,e,r){A(t,n,e,r),p(e,r,e,r)},2:A,4:M},1:{5:x,7:null,9:null,10:x,1:M,6:null,8:null,0:null,3:function(t,n,e,r){x(t,n,e,r),d(e,r,e,r)},11:function(t,n,e,r){x(t,n,e,r),p(e,r,e,r)},2:x,4:function(t,n,e,r){x(t,n,e,r),R(e,r,e,r)}},6:{5:null,7:S,9:null,10:S,1:null,6:M,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:I,10:I,1:null,6:null,8:M,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:M,3:null,11:null,2:null,4:null},10:{5:M,7:M,9:M,10:M,1:w,6:v,8:g,0:null,3:d,11:p,2:M,4:R},11:{5:m,7:null,9:null,10:m,1:function(t,n,e,r){m(t,n,e,r),w(e,r,e,r)},6:null,8:null,0:null,3:function(t,n,e,r){m(t,n,e,r),d(e,r,e,r)},11:M,2:m,4:function(t,n,e,r){m(t,n,e,r),R(e,r,e,r)}}};function c(t,n){return f(t,n)?.projector}function f(t,n){if(null==t||null==n)return null;if(q.source.spatialReference===t&&q.dest.spatialReference===n)return q;const e=h(t,q.source),r=h(n,q.dest);return 0===e&&0===r?(0,l.aI)(t,n)?q.projector=M:q.projector=null:q.projector=i[e][r],q}function h(t,n){return t?n.spatialReference===t?n.spatialReferenceId:(n.spatialReference=t,"metersPerUnit"in n&&(n.metersPerUnit=(0,a.GA)(t,1)),(0,o.jA)(t)?n.spatialReferenceId=1:(0,l.oT)(t)?n.spatialReferenceId=2:(0,l.K8)(t)?n.spatialReferenceId=3:(0,l.r1)(t)?n.spatialReferenceId=11:t.wkt===o.Ro.wkt?n.spatialReferenceId=4:4490===t.wkid?n.spatialReferenceId=5:t.wkt===o.FY.wkt?n.spatialReferenceId=6:t.wkt===o.LJ.wkt?n.spatialReferenceId=8:(0,o.q8)(t)?n.spatialReferenceId=7:(0,o.KQ)(t)?n.spatialReferenceId=9:n.spatialReferenceId=0):0}function M(t,n,e,r){t!==e&&(e[r++]=t[n++],e[r++]=t[n++],e[r]=t[n]??0)}function b(t,n,e,r){e[r]=T*(t[n]/D),e[r+1]=T*(j-2*Math.atan(Math.exp(-t[n+1]/D))),e[r+2]=t[n+2]??0}function d(t,n,e,a){!function(t,n,e,a,o){const u=.4999999*Math.PI,s=(0,r.qE)(_*t[n+1],-u,u),l=Math.sin(s);e[a++]=_*t[n]*o.radius,e[a++]=o.halfSemiMajorAxis*Math.log((1+l)/(1-l)),e[a]=t[n+2]??0}(t,n,e,a,u.$O)}function p(t,n,e,r){e[r]=t[n]*P,e[r+1]=t[n+1]*P,e[r+2]=t[n+2]??0}function m(t,n,e,r){e[r]=t[n]*k,e[r+1]=t[n+1]*k,e[r+2]=t[n+2]??0}function y(t,n,e,r,a){const o=a+(t[n+2]??0),u=_*t[n],s=_*t[n+1],l=Math.cos(s)*o;e[r]=Math.cos(u)*l,e[r+1]=Math.sin(u)*l,e[r+2]=Math.sin(s)*o}function g(t,n,e,r){y(t,n,e,r,u.Sw.radius)}function v(t,n,e,r){y(t,n,e,r,u.sH.radius)}function w(t,n,e,r){y(t,n,e,r,u.$O.radius)}function O(t,n,e,a,o){const u=t[n],s=t[n+1],l=t[n+2]??0,i=Math.sqrt(u*u+s*s+l*l),c=(0,r.YN)(l/(0===i?1:i)),f=Math.atan2(s,u);e[a++]=T*f,e[a++]=T*c,e[a]=i-o}function I(t,n,e,r){O(t,n,e,r,u.Sw.radius)}function S(t,n,e,r){O(t,n,e,r,u.sH.radius)}function x(t,n,e,r){O(t,n,e,r,u.$O.radius)}function R(t,n,e,r){!function(t,n,e,r,a){const o=_*t[n],u=_*t[n+1],s=t[n+2]??0,l=Math.sin(u),i=Math.cos(u),c=a.radius/Math.sqrt(1-a.eccentricitySquared*l*l);e[r++]=(c+s)*i*Math.cos(o),e[r++]=(c+s)*i*Math.sin(o),e[r++]=(c*(1-a.eccentricitySquared)+s)*l}(t,n,e,r,u.$O)}function A(t,n,e,r){const a=s.TP,o=t[n],l=t[n+1],i=t[n+2]??0;let c,f,h,M,b,d,p,m,y,g,v,w,O,I,S,x,R,A,q,_,j;c=Math.abs(i),f=o*o+l*l,h=Math.sqrt(f),M=f+i*i,b=Math.sqrt(M),_=Math.atan2(l,o),d=i*i/M,p=f/M,I=a.a2/b,S=a.a3-a.a4/b,p>.3?(m=c/b*(1+p*(a.a1+I+d*S)/b),q=Math.asin(m),g=m*m,y=Math.sqrt(1-g)):(y=h/b*(1-d*(a.a5-I-p*S)/b),q=Math.acos(y),g=1-y*y,m=Math.sqrt(g)),v=1-u.$O.eccentricitySquared*g,w=u.$O.radius/Math.sqrt(v),O=a.a6*w,I=h-w*y,S=c-O*m,R=y*I+m*S,x=y*S-m*I,A=x/(O/v+R),q+=A,j=R+x*A/2,i<0&&(q=-q),e[r++]=T*_,e[r++]=T*q,e[r]=j}const q={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:M},_=(0,r.kU)(1),T=(0,r.KJ)(1),j=.5*Math.PI,D=u.$O.radius,P=D*Math.PI/180,k=180/(D*Math.PI)},98764(t,n,e){e.d(n,{GD:()=>u,Y0:()=>i,lO:()=>c});var r=e(73941),a=e(16930),o=e(21325);const u=new a.A(r.fv),s=new a.A(r.FY),l=new a.A(r.LJ),i=new a.A(r.Ro);function c(t){const n=f.get(t);if(n)return n;let e=u;if(t)if(t===s)e=s;else if(t===l)e=l;else{const n=t.wkid,r=t.latestWkid;if(null!=n||null!=r)(0,o.tl)(n)||(0,o.tl)(r)?e=s:((0,o.ZL)(n)||(0,o.ZL)(r))&&(e=l);else{const n=t.wkt2??t.wkt;if(n){const t=n.toUpperCase();t===h?e=s:t===M&&(e=l)}}}return f.set(t,e),e}const f=new Map,h=s.wkt.toUpperCase(),M=l.wkt.toUpperCase()},34403(t,n,e){e.d(n,{TP:()=>u});var r=e(79258);Math.PI;const a=r.$O.radius,o=r.$O.eccentricitySquared,u={a1:a*o,a2:a*o*a*o,a3:a*o*o/2,a4:a*o*a*o*2.5,a5:a*o+a*o*o/2,a6:1-o};r.$O.radius,r.$O.flattening,r.Sw.radius,r.Sw.flattening,r.sH.radius,r.sH.flattening,r.sH.radius},64798(t,n,e){e.r(n),e.d(n,{default:()=>C});var r=e(4576),a=e(34275),o=e(67026),u=e(82534),s=e(35522);function l(){return new Float32Array(3)}function i(t){const n=new Float32Array(3);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n}function c(t,n,e){const r=new Float32Array(3);return r[0]=t,r[1]=n,r[2]=e,r}function f(){return l()}function h(){return c(1,1,1)}function M(){return c(1,0,0)}function b(){return c(0,1,0)}function d(){return c(0,0,1)}const p=f(),m=h(),y=M(),g=b(),v=d();Object.freeze(Object.defineProperty({__proto__:null,ONES:m,UNIT_X:y,UNIT_Y:g,UNIT_Z:v,ZEROS:p,clone:i,create:l,fromValues:c,ones:h,unitX:M,unitY:b,unitZ:d,zeros:f},Symbol.toStringTag,{value:"Module"}));var w=e(16930),O=e(9762),I=e(63531),S=e(69846),x=e(48425),R=e(59418),A=e(37203);function q(t,n,e){return t?.attributeInfo.useElevation?n?function(t,n){const e=new Float64Array(n);for(let r=0;r<n;r++)e[r]=t[3*r+2];return e}(n,e):null:t?.attributeInfo.storageInfo?(0,R.m0)(t.attributeInfo.storageInfo,t.buffer,e,!0):null}function _(t){switch(t){default:case null:case"none":return t=>t;case"low-four-bit":return t=>15&t;case"high-four-bit":return t=>(240&t)>>4;case"absolute-value":return t=>Math.abs(t);case"modulo-ten":return t=>t%10}}function T(t){let n=0;for(const e of t||[])n|=1<<e;return n}var j=e(57005);class D{transform(t){const n=this._transform(t),e=[n.points.buffer,n.rgb.buffer];null!=n.pointIdFilterMap&&e.push(n.pointIdFilterMap.buffer);for(const t of n.attributes)"buffer"in t.values&&(0,a.mw)(t.values.buffer)&&t.values.buffer!==n.rgb.buffer&&e.push(t.values.buffer);return Promise.resolve({result:n,transferList:e})}_transform(t){const n=function(t,n){if(null==t.encoding||""===t.encoding){const e=(0,R.wH)(n,t);if(null==e.vertexAttributes.position)return;const r=(0,R.MA)(n,e.vertexAttributes.position),a=e.header.fields,o=[a.offsetX,a.offsetY,a.offsetZ],u=[a.scaleX,a.scaleY,a.scaleZ],s=r.length/3,l=new Float64Array(3*s);for(let t=0;t<s;t++)l[3*t]=r[3*t]*u[0]+o[0],l[3*t+1]=r[3*t+1]*u[1]+o[1],l[3*t+2]=r[3*t+2]*u[2]+o[2];return l}if("lepcc-xyz"===t.encoding)return(0,A.Me)(n).result}(t.schema,t.geometryBuffer);let e=n.length/3,a=null;const o=new Array,u=q(t.primaryAttributeData,n,e);null!=t.primaryAttributeData&&u&&o.push({attributeInfo:t.primaryAttributeData.attributeInfo,values:u});const s=q(t.modulationAttributeData,n,e);null!=t.modulationAttributeData&&s&&o.push({attributeInfo:t.modulationAttributeData.attributeInfo,values:s});let l=function(t,n,e,r){const{rendererJSON:a,isRGBRenderer:o}=t;let u=null,s=null;if(n&&o)u=n;else if(n&&"pointCloudUniqueValueRenderer"===a?.type){s=x.A.fromJSON(a);const t=s.colorUniqueValueInfos;u=new Uint8Array(3*r);const e=_(s.fieldTransformType);for(let a=0;a<r;a++){const r=(e?e(n[a]):n[a])+"";for(let n=0;n<t.length;n++)if(t[n].values.includes(r)){u[3*a]=t[n].color.r,u[3*a+1]=t[n].color.g,u[3*a+2]=t[n].color.b;break}}}else if(n&&"pointCloudStretchRenderer"===a?.type){s=S.A.fromJSON(a);const t=s.stops;u=new Uint8Array(3*r);const e=_(s.fieldTransformType);for(let a=0;a<r;a++){const r=e?e(n[a]):n[a],o=t.length-1;if(r<t[0].value)u[3*a]=t[0].color.r,u[3*a+1]=t[0].color.g,u[3*a+2]=t[0].color.b;else if(r>=t[o].value)u[3*a]=t[o].color.r,u[3*a+1]=t[o].color.g,u[3*a+2]=t[o].color.b;else for(let n=1;n<t.length;n++)if(r<t[n].value){const e=(r-t[n-1].value)/(t[n].value-t[n-1].value);u[3*a]=t[n].color.r*e+t[n-1].color.r*(1-e),u[3*a+1]=t[n].color.g*e+t[n-1].color.g*(1-e),u[3*a+2]=t[n].color.b*e+t[n-1].color.b*(1-e);break}}}else if(n&&"pointCloudClassBreaksRenderer"===a?.type){s=I.A.fromJSON(a);const t=s.colorClassBreakInfos;u=new Uint8Array(3*r);const e=_(s.fieldTransformType);for(let a=0;a<r;a++){const r=e?e(n[a]):n[a];for(let n=0;n<t.length;n++)if(r>=t[n].minValue&&r<=t[n].maxValue){u[3*a]=t[n].color.r,u[3*a+1]=t[n].color.g,u[3*a+2]=t[n].color.b;break}}}else u=new Uint8Array(3*r).fill(255);if(e&&s?.colorModulation){const t=s.colorModulation.minValue,n=s.colorModulation.maxValue,a=.3;for(let o=0;o<r;o++){const r=e[o],s=r>=n?1:r<=t?a:a+(1-a)*(r-t)/(n-t);u[3*o]=s*u[3*o],u[3*o+1]=s*u[3*o+1],u[3*o+2]=s*u[3*o+2]}}return u}(t.rendererInfo,u,s,e);if(t.filterInfo&&t.filterInfo.length>0&&null!=t.filterAttributesData){const u=t.filterAttributesData.filter(r.Ru).map(t=>{const r=q(t,n,e),a={attributeInfo:t.attributeInfo,values:r};return o.push(a),a});a=new Uint32Array(e),e=function(t,n,e,r,a){const o=t.length/3;let u=0;for(let s=0;s<o;s++){let o=!0;for(let t=0;t<r.length&&o;t++){const{filterJSON:n}=r[t],e=a[t].values[s];switch(n.type){case"pointCloudValueFilter":{const t="exclude"===n.mode;n.values.includes(e)===t&&(o=!1);break}case"pointCloudBitfieldFilter":{const t=T(n.requiredSetBits),r=T(n.requiredClearBits);(e&t)===t&&0===(e&r)||(o=!1);break}case"pointCloudReturnFilter":{const t=15&e,r=e>>>4&15,a=r>1,u=1===t,s=t===r;let l=!1;for(const t of n.includedReturns)if("last"===t&&s||"firstOfMany"===t&&u&&a||"lastOfMany"===t&&s&&a||"single"===t&&!a){l=!0;break}l||(o=!1);break}}}o&&(e[u]=s,t[3*u]=t[3*s],t[3*u+1]=t[3*s+1],t[3*u+2]=t[3*s+2],n[3*u]=n[3*s],n[3*u+1]=n[3*s+1],n[3*u+2]=n[3*s+2],u++)}return u}(n,l,a,t.filterInfo,u)}for(const r of t.userAttributesData){const t=q(r,n,e);o.push({attributeInfo:r.attributeInfo,values:t})}3*e<l.length&&(l=l.slice(0,3*e)),function(t,n,e){if(0!==e)for(let r=0;r<n;r++)t[3*r+2]+=e}(n,e,t.elevationOffset);const i=P(n,e,j.ab.fromData(t.obbData),w.A.fromJSON(t.inSR),w.A.fromJSON(t.outSR));return{obbData:t.obbData,points:i,rgb:l,attributes:o,pointIdFilterMap:a}}}function P(t,n,e,r,a){if(!(0,O.projectBuffer)(t,r,0,t,a,0,n))throw new Error("Can't reproject");const u=i(e.center),c=l(),f=l(),h=i(e.halfSize);(0,o.Xr)(k,e.quaternion);const M=new Float32Array(3*n);for(let e=0;e<n;e++){let n=3*e;c[0]=t[n]-u[0],c[1]=t[n+1]-u[1],c[2]=t[n+2]-u[2],(0,s.gL)(f,c,k),h[0]=Math.max(h[0],Math.abs(f[0])),h[1]=Math.max(h[1],Math.abs(f[1])),h[2]=Math.max(h[2],Math.abs(f[2])),M[n++]=c[0],M[n++]=c[1],M[n]=c[2]}return e.halfSize=h,M}const k=(0,u.vt)();function C(){return new D}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9544],{76553(e,t,i){function r(e){return e&&"getAtOrigin"in e&&"originOf"in e}i.d(t,{H:()=>r})},65806(e,t,i){i.d(t,{g:()=>n});var r=i(51850),s=i(91218),o=i(9762);function n(e,t,i,r){if((0,s.canProjectWithoutEngine)(e.spatialReference,i))return a[0]=e.x,a[1]=e.y,a[2]=e.z??0,(0,o.projectBuffer)(a,e.spatialReference,0,t,i,0);const n=(0,s.tryProject)(e,i,r);return!!n&&(t[0]=n.x,t[1]=n.y,t[2]=n.z??0,!0)}const a=(0,r.vt)()},27993(e,t,i){i.d(t,{F:()=>a});var r=i(91218),s=i(16930),o=i(9762),n=i(65806);function a(e,t,i,s){return!(null==t||null==s||e.length<2)&&((0,r.canProjectWithoutEngine)(t,s)?(0,o.projectBuffer)(e,t,0,i,s,0,1):(l.x=e[0],l.y=e[1],l.z=e[2],l.spatialReference=t,(0,n.g)(l,i,s)))}const l={x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:s.A.WGS84,type:"point"}},61528(e,t,i){i.r(t),i.d(t,{default:()=>O});var r=i(5482),s=i(11254),o=i(69540),n=i(49186),a=i(44208),l=i(53966),u=i(25728),h=i(17676),c=i(36708),d=i(91429),p=i(87024),f=i(5443),g=i(16930),y=i(4146),m=i(52136),S=i(18768),_=i(69208),v=i(34287),C=i(8303),T=i(25036),M=i(10873),w=i(58325),A=i(88546),R=i(20655),x=i(24212),b=i(97159),Z=i(16215),P=i(72772),k=i(98697),E=i(36005);let L=class extends((0,S.b)((0,v.q)((0,C.A)((0,T.j)((0,u.M)((0,_.d)((0,m.p)((0,o.OU)(y.A))))))))){readModifications(e,t,i){this._modificationsSource={url:(0,b.a)(e,i),context:i}}initialize(){this.addHandles((0,c.on)(()=>this.modifications,"after-changes",()=>this.modifications=this.modifications,c.OH))}constructor(e){super(e),this.operationalLayerType="IntegratedMesh3DTilesLayer",this.modifications=null,this._modificationsSource=null,this.spatialReference=A.Zx,this.fullExtent=A.zq,this.esriCrsSpatialReference=null,this.esriCrsFullExtent=null,this.url=null,this.type="integrated-mesh-3dtiles",this.path=null,this.minScale=0,this.maxScale=0,this._rootTilesetJSON=null,this._rootTileset=null,this._key=null,this._session=null,this._rootRequestPromise=null,this.queryElevationCallback=null}get supportedSpatialReferences(){return this.initialized&&this.esriCrsSpatialReference?[A.Zx,this.esriCrsSpatialReference]:[A.Zx]}get fullExtents(){return this.initialized&&this.esriCrsFullExtent?[A.zq,this.esriCrsFullExtent]:[A.zq]}set elevationInfo(e){null!=e&&"absolute-height"!==e.mode||this._set("elevationInfo",e),this._validateElevationInfo(e)}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}get rootTilesetJSON(){return this._rootTilesetJSON}get rootTileset(){return this._rootTileset}get key(){return this._key}get session(){return this._session}_findSessionParameter(e){const t=[e];for(;t?.length>0;){const e=t.pop();if(!e)return;for(const[i,r]of Object.entries(e)){if("uri"===i)try{const e=new URL("https://tmp"+r).searchParams.get("session");if(e)return e}catch(e){}"object"==typeof r&&null!==r&&t.push(r)}}return null}async requestRootAndSession(e){const t=(e,t)=>new n.A("3dtiles-init:"+e,t);return this._rootRequestPromise||(this._rootRequestPromise=new Promise((i,r)=>{this.url||r(t("url-missing","Layer url missing")),this._key=this.customParameters?this.customParameters.key:null,new Promise((e,i)=>{if(this.replacesTerrain&&!this._key){const r=this.portalItem?.portal||this.parent?.portalItem?.portal||R.A.getDefault();r.signIn().then(()=>{r.g3dTilesEnabled?(0,s.A)(r.restUrl+"/portals/self/modules/g3dtiles",{responseType:"json",query:{f:"json"}}).then(t=>{this._key=t.data.keyString,e()},()=>i(t("g3dtiles-key-error","Error fetching Google 3D Tiles key from portal"))):i(t("g3dTilesEnabled-false","Google 3D Tiles are not enabled on Portal "+r.url))},()=>i(t("sign-in-failed","Error signing in to Portal")))}else e()}).then(()=>{(0,s.A)(this.url,{query:this._key?{key:this._key,token:this.apiKey}:{token:this.apiKey},responseType:"array-buffer",signal:e}).then(e=>{try{this._rootTilesetJSON=JSON.parse((new TextDecoder).decode(e.data))}catch(e){return void r(t("root-parse-failed","Error parsing root tile, details: "+e))}this._rootTilesetJSON?(this._session=this._findSessionParameter(this._rootTilesetJSON),this._rootTileset=e.data,this.fullExtent=(0,A.uB)(this._rootTilesetJSON),(0,A._8)(this._rootTilesetJSON)&&(this.esriCrsFullExtent=(0,A.uB)(this._rootTilesetJSON,!0),this.esriCrsSpatialReference=this.esriCrsFullExtent.spatialReference,this.spatialReference=this.esriCrsSpatialReference),i(),this._rootRequestPromise=null):r(t("root-is-null","Root tile is null."))},e=>{(0,h.QP)(e),r(t("root-load-failed","Error loading root tile")),this._rootRequestPromise=null,l.A.getLogger("IntegratedMesh3DTilesLayer").error("Layer loading failed",e)})},e=>r(e))})),this._rootRequestPromise}_haveWGS84ZModifications(e){for(const t of e){if(!t.geometry?.spatialReference)return!0;if(115700===t.geometry?.spatialReference.vcsWkid&&4326===t.geometry?.spatialReference.wkid)return!0}return!1}async _doLoad(e){const t=null!=e?e.signal:null;if(this.isUsedAsGroundLayer&&!(0,a.A)("enable-feature:basemap-groundlayers"))throw new n.A("3dtiles-init:not-supported-in-groundlayers","Layer is not supported in basemap.");try{await this.loadFromPortal({supportedTypes:["3DTiles Service"],validateItem:e=>{if(e.typeKeywords?.includes("IntegratedMesh"))return!0;throw new n.A("portal:invalid-layer-item-type","Invalid layer item, expected '${expectedType}' ",{expectedType:"3DTiles Service containing IntegratedMesh"})}},e)}catch(e){(0,h.QP)(e)}if(null!=this._modificationsSource){const t=await w.A.fromUrl(this._modificationsSource.url,this.spatialReference,e,!0);if(this._haveWGS84ZModifications(t)){await(0,P.initialize)();try{const e=(0,k.Ir)(null,t.toArray(),g.A.WGS84),i=(0,P.switchMeshModificationPolygonVCSSync)({modifications:e,inVCS:115700});i.success&&i.modifications&&(0,k.H1)(i.modifications,t)}catch(e){l.A.getLogger(this).error("convert-mesh-modification-z-error","Error when converting:",e)}}this.setAtOrigin("modifications",t,this._modificationsSource.context.origin),this._modificationsSource=null}await this.requestRootAndSession(t)}async beforeSave(){if(null==this._modificationsSource){const{modifications:e}=this;return void(e&&e.length>0&&await(0,P.initialize)())}await this.load().then(()=>{},()=>{})}get hasAttributionData(){return!1}_validateElevationInfo(e){const t="Integrated mesh 3d tiles layers";(0,x.XF)(l.A.getLogger(this),(0,x.B)(t,"absolute-height",e)),(0,x.XF)(l.A.getLogger(this),(0,x.tW)(t,e))}get replacesTerrain(){return!!(0,a.A)("enable-feature:basemap-groundlayers")&&this.hasGoogleUrl&&this.isUsedAsGroundLayer}get isUsedAsGroundLayer(){return(0,Z.S)(this.parent)}get hasGoogleUrl(){return!!this.url?.match(/.+\.googleapis.com/)}};(0,r.Cg)([(0,d.MZ)({type:["IntegratedMesh3DTilesLayer"]})],L.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,d.MZ)({type:w.A,clonable:e=>e?.clone()??null}),(0,p.P)({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],L.prototype,"modifications",void 0),(0,r.Cg)([(0,d.MZ)({clonable:e=>e?{...e}:null})],L.prototype,"_modificationsSource",void 0),(0,r.Cg)([(0,E.w)(["web-scene","portal-item"],"modifications")],L.prototype,"readModifications",null),(0,r.Cg)([(0,d.MZ)({type:g.A})],L.prototype,"spatialReference",void 0),(0,r.Cg)([(0,d.MZ)({type:f.A})],L.prototype,"fullExtent",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],L.prototype,"supportedSpatialReferences",null),(0,r.Cg)([(0,d.MZ)({type:[f.A]})],L.prototype,"fullExtents",null),(0,r.Cg)([(0,d.MZ)(M.Yj)],L.prototype,"elevationInfo",null),(0,r.Cg)([(0,d.MZ)({type:["show","hide"]})],L.prototype,"listMode",void 0),(0,r.Cg)([(0,d.MZ)(M.OZ)],L.prototype,"url",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],L.prototype,"type",void 0),(0,r.Cg)([(0,d.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],L.prototype,"path",void 0),(0,r.Cg)([(0,d.MZ)({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:!1,write:!1}}}})],L.prototype,"minScale",void 0),(0,r.Cg)([(0,d.MZ)({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:!1,write:!1}}}})],L.prototype,"maxScale",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],L.prototype,"hasAttributionData",null),(0,r.Cg)([(0,d.MZ)()],L.prototype,"replacesTerrain",null),(0,r.Cg)([(0,d.MZ)()],L.prototype,"isUsedAsGroundLayer",null),(0,r.Cg)([(0,d.MZ)()],L.prototype,"hasGoogleUrl",null),L=(0,r.Cg)([(0,d.$K)("esri.layers.IntegratedMesh3DTilesLayer")],L);const O=L}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8399],{99959(e,t,r){r.d(t,{A:()=>o});var n=r(5482),i=r(91429);let o=class{};o=(0,n.Cg)([(0,i.$K)("esri.graphic.GraphicOrigin")],o)},89808(e,t,r){r.d(t,{Q:()=>n});const n=Symbol("getSliceableSymbol")},46499(e,t,r){r.d(t,{A:()=>A});var n,i,o=r(5482),s=(r(44208),r(66552)),a=r(25482),l=r(4718),u=r(90629),c=r(91429),p=r(73913),d=r(32730),y=r(77548),h=r(59868),m=r(73838),f=r(33910),b=r(36005),w=r(43937);const g=new s.J({esriServerPointLabelPlacementAboveCenter:"above-center",esriServerPointLabelPlacementAboveLeft:"above-left",esriServerPointLabelPlacementAboveRight:"above-right",esriServerPointLabelPlacementBelowCenter:"below-center",esriServerPointLabelPlacementBelowLeft:"below-left",esriServerPointLabelPlacementBelowRight:"below-right",esriServerPointLabelPlacementCenterCenter:"center-center",esriServerPointLabelPlacementCenterLeft:"center-left",esriServerPointLabelPlacementCenterRight:"center-right",esriServerLinePlacementAboveAfter:"above-after",esriServerLinePlacementAboveAlong:"above-along",esriServerLinePlacementAboveBefore:"above-before",esriServerLinePlacementAboveStart:"above-start",esriServerLinePlacementAboveEnd:"above-end",esriServerLinePlacementBelowAfter:"below-after",esriServerLinePlacementBelowAlong:"below-along",esriServerLinePlacementBelowBefore:"below-before",esriServerLinePlacementBelowStart:"below-start",esriServerLinePlacementBelowEnd:"below-end",esriServerLinePlacementCenterAfter:"center-after",esriServerLinePlacementCenterAlong:"center-along",esriServerLinePlacementCenterBefore:"center-before",esriServerLinePlacementCenterStart:"center-start",esriServerLinePlacementCenterEnd:"center-end",esriServerPolygonPlacementAlwaysHorizontal:"always-horizontal"},{ignoreUnknown:!0});function v(e,t,r){return{enabled:!(0,y.TU)(r?.layer)}}function C(e){return!e||"service"!==e.origin&&!("map-image"===e.layer?.type)}function S(e){return!!function(e){return"map-image"===e?.type}(e)&&!!e.capabilities?.exportMap?.supportsArcadeExpressionForLabeling}let A=class extends a.o{static{n=d.vK}static{i=this}static evaluateWhere(e,t){const r=(e,t,r)=>{switch(t){case"=":return e==r;case"<>":return e!=r;case">":return e>r;case">=":return e>=r;case"<":return e<r;case"<=":return e<=r}return!1};try{if(null==e)return!0;const n=e.split(" ");if(3===n.length)return r(t[n[0]],n[1],n[2]);if(7===n.length){const e=r(t[n[0]],n[1],n[2]),i=n[3],o=r(t[n[4]],n[5],n[6]);switch(i){case"AND":return e&&o;case"OR":return e||o}}return!1}catch(e){}}constructor(e){super(e),this[n]=!0,this.type="label",this.name=null,this.allowOverrun=!1,this.deconflictionStrategy="static",this.labelExpression=null,this.labelExpressionInfo=null,this.labelPlacement=null,this.labelPosition="curved",this.maxScale=0,this.minScale=0,this.repeatLabel=!0,this.symbol=h.Hk,this.useCodedValues=void 0,this.where=null}readLabelExpression(e,t){const r=t.labelExpressionInfo;if(!r||!r.value&&!r.expression)return e}writeLabelExpression(e,t,r){if(this.labelExpressionInfo)if(null!=this.labelExpressionInfo.value)e=(0,d.D3)(this.labelExpressionInfo.value);else if(null!=this.labelExpressionInfo.expression){const t=(0,d.tH)(this.labelExpressionInfo.expression);t&&(e="["+t+"]")}null!=e&&(t[r]=e)}writeLabelExpressionInfo(e,t,r,n){if(null==e&&null!=this.labelExpression&&C(n))e=new p.A({expression:this.getLabelExpressionArcade()});else if(!e)return;const i=e.toJSON(n);i.expression&&(t[r]=i)}writeMaxScale(e,t){(e||this.minScale)&&(t.maxScale=e)}writeMinScale(e,t){(e||this.maxScale)&&(t.minScale=e)}get repeatLabelDistance(){return this._get("repeatLabelDistance")}set repeatLabelDistance(e){this._set("repeatLabelDistance",e)}getLabelExpression(){return(0,d.XJ)(this)}getLabelExpressionArcade(){return(0,d.BI)(this)}getLabelExpressionSingleField(){return(0,d.rU)(this)}hash(){return JSON.stringify(this)}clone(){return new i({allowOverrun:this.allowOverrun,deconflictionStrategy:this.deconflictionStrategy,labelExpression:this.labelExpression,labelExpressionInfo:(0,l.o8)(this.labelExpressionInfo),labelPosition:this.labelPosition,labelPlacement:this.labelPlacement,maxScale:this.maxScale,minScale:this.minScale,name:this.name,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,symbol:(0,l.o8)(this.symbol),where:this.where,useCodedValues:this.useCodedValues})}};(0,o.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],A.prototype,"name",void 0),(0,o.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1},"portal-item":{default:!1,write:{overridePolicy:v}}}}})],A.prototype,"allowOverrun",void 0),(0,o.Cg)([(0,c.MZ)({type:String,json:{write:!0,default:"static",origins:{"web-scene":{write:!1},"portal-item":{default:"static",write:{overridePolicy:v}}}}})],A.prototype,"deconflictionStrategy",void 0),(0,o.Cg)([(0,c.MZ)({type:String,json:{write:{overridePolicy(e,t,r){return this.labelExpressionInfo&&"service"===r?.origin&&S(r.layer)?{enabled:!1}:{allowNull:!0}}}}})],A.prototype,"labelExpression",void 0),(0,o.Cg)([(0,b.w)("labelExpression")],A.prototype,"readLabelExpression",null),(0,o.Cg)([(0,w.K)("labelExpression")],A.prototype,"writeLabelExpression",null),(0,o.Cg)([(0,c.MZ)({type:p.A,json:{write:{overridePolicy:(e,t,r)=>function(e){return C(e)||S(e?.layer)}(r)?{allowNull:!0}:{enabled:!1}}}})],A.prototype,"labelExpressionInfo",void 0),(0,o.Cg)([(0,w.K)("labelExpressionInfo")],A.prototype,"writeLabelExpressionInfo",null),(0,o.Cg)([(0,c.MZ)({type:g.apiValues,json:{type:g.jsonValues,read:g.read,write:g.write}})],A.prototype,"labelPlacement",void 0),(0,o.Cg)([(0,c.MZ)({type:["curved","parallel"],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],A.prototype,"labelPosition",void 0),(0,o.Cg)([(0,c.MZ)({type:Number})],A.prototype,"maxScale",void 0),(0,o.Cg)([(0,w.K)("maxScale")],A.prototype,"writeMaxScale",null),(0,o.Cg)([(0,c.MZ)({type:Number})],A.prototype,"minScale",void 0),(0,o.Cg)([(0,w.K)("minScale")],A.prototype,"writeMinScale",null),(0,o.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:v}}}}})],A.prototype,"repeatLabel",void 0),(0,o.Cg)([(0,c.MZ)({type:Number,cast:u.cr,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:v}}}}})],A.prototype,"repeatLabelDistance",null),(0,o.Cg)([(0,c.MZ)({types:f.em,json:{origins:{"web-scene":{types:f.Rv,write:m.oO,default:null}},write:m.oO,default:null}})],A.prototype,"symbol",void 0),(0,o.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],A.prototype,"useCodedValues",void 0),(0,o.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],A.prototype,"where",void 0),A=i=(0,o.Cg)([(0,c.$K)("esri.layers.support.LabelClass")],A)},73913(e,t,r){r.d(t,{A:()=>c});var n,i=r(5482),o=r(25482),s=r(91429),a=r(32730),l=r(36005),u=r(43937);let c=class extends o.o{static{n=this}constructor(e){super(e),this.expression=null,this.title=null,this.value=null}readExpression(e,t){return t.value?(0,a.mX)(t.value):e}writeExpression(e,t,r){null!=this.value&&(e=(0,a.mX)(this.value)),null!=e&&(t[r]=e)}clone(){return new n({expression:this.expression,title:this.title,value:this.value})}};(0,i.Cg)([(0,s.MZ)({type:String,json:{write:{writerEnsuresNonNull:!0}}})],c.prototype,"expression",void 0),(0,i.Cg)([(0,l.w)("expression",["expression","value"])],c.prototype,"readExpression",null),(0,i.Cg)([(0,u.K)("expression")],c.prototype,"writeExpression",null),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],c.prototype,"title",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!1,write:!1}})],c.prototype,"value",void 0),c=n=(0,i.Cg)([(0,s.$K)("esri.layers.support.LabelExpressionInfo")],c)},15426(e,t,r){r.d(t,{Xl:()=>I,ct:()=>j,pc:()=>H,C$:()=>X,PD:()=>ee,VZ:()=>V,mm:()=>E,VA:()=>W,WP:()=>Z,iX:()=>P,Nv:()=>K,xd:()=>ne,Vq:()=>z,GA:()=>re,rQ:()=>_,jp:()=>T,tG:()=>te,lV:()=>B,B5:()=>D,Ye:()=>R,sg:()=>O,hM:()=>N,S2:()=>q,jD:()=>G,Zm:()=>$,$4:()=>k,Pt:()=>ie,uU:()=>J,bt:()=>L,rn:()=>F,ZJ:()=>oe});var n=r(70333),i=(r(5757),r(60999)),o=r(49186),s=r(66552),a=r(53966),l=r(39516),u=r(13069),c=r(90360),p=r(60694),d=r(39357),y=r(53177),h=r(61956);async function m(e,t,r){t=t.clone(),e.capabilities.query.supportsMaxRecordCountFactor&&(t.maxRecordCountFactor=f(e));const n=function(e){return f(e)*function(e){return e.capabilities.query.maxRecordCount||2e3}(e)}(e),i=e.capabilities.query.supportsPagination;t.start=0,t.num=n;let o=null;for(;;){const s=await e.source.queryFeaturesJSON(t,r);if(null==o?o=s:o.features=o.features.concat(s.features),o.exceededTransferLimit=s.exceededTransferLimit,!i||!s.exceededTransferLimit)break;t.start+=n}return o}function f(e){return e.capabilities.query.supportsMaxRecordCountFactor?h.A.MAX_MAX_RECORD_COUNT_FACTOR:1}var b=r(30524),w=(r(32730),r(77548)),g=r(96576),v=r(93618),C=(r(98205),r(54546)),S=r(41366),A=r(26591),x=r(33910);const P=new s.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryMultiPatch:"multipatch"});async function I(e,t,r,n){const i=await U(e);if(await M(e,t,n),!i.addAttachment)throw new o.A(n,"Layer source does not support addAttachment capability");return i.addAttachment(t,r)}function M(e,t,r){const{attributes:n}=t,{objectIdField:i}=e;return e.capabilities?.data?.supportsAttachment?t?n?i&&n[i]?Promise.resolve():Promise.reject(new o.A(r,`feature is missing the identifying attribute ${i}`)):Promise.reject(new o.A(r,"'attributes' are required on a feature to query attachments")):Promise.reject(new o.A(r,"A feature is required to add/delete/update attachments")):Promise.reject(new o.A(r,"this layer doesn't support attachments"))}async function L(e,t,r,n,i){const s=await U(e);if(await M(e,t,i),!s.updateAttachment)throw new o.A(i,"Layer source does not support updateAttachment capability");return s.updateAttachment(t,r,n)}async function j(e,t,n){const{applyEdits:i}=await r.e(8628).then(r.bind(r,78628)),o=await e.load();let s=n;const{url:a,type:l,globalIdField:u}=o;return"feature"===l&&(0,p.Wo)(a)&&o.infoFor3D&&null!=t.deleteFeatures&&null!=u&&(s={...s,globalIdToObjectId:await re(o,t.deleteFeatures,u)}),i(o,o.source,t,s)}async function F(e,t,n){const{uploadAssets:i}=await r.e(8628).then(r.bind(r,78628)),o=await e.load();return i(o,o.source,t,n)}async function E(e,t,r,n){const i=await U(e);if(await M(e,t,n),!i.deleteAttachments)throw new o.A(n,"Layer source does not support deleteAttachments capability");return i.deleteAttachments(t,r)}async function Z(e,t,r){const n=(await e.load({signal:t?.signal})).source;if(!n.fetchRecomputedExtents)throw new o.A(r,"Layer source does not support fetchUpdates capability");return n.fetchRecomputedExtents(t)}async function B(e,t,r,n){let i=C.A.from(t);await e.load();const s=e.source,a=e.capabilities;if(!a?.data?.supportsAttachment)throw new o.A(n,"this layer doesn't support attachments");const{attachmentTypes:l,objectIds:u,globalIds:c,num:p,size:d,start:y,where:h}=i;if(!a?.operations?.supportsQueryAttachments&&(l?.length>0||c?.length>0||d?.length>0||p||y||h))throw new o.A(n,"when 'capabilities.operations.supportsQueryAttachments' is false, only objectIds is supported",i);if(!(u?.length||c?.length||h))throw new o.A(n,"'objectIds', 'globalIds', or 'where' are required to perform attachment query",i);if(!s.queryAttachments)throw new o.A(n,"Layer source does not support queryAttachments capability",i);return!a?.attachment?.supportsOrderByFields&&i.orderByFields?.length&&(i=i.clone(),i.orderByFields=null),s.queryAttachments(i)}async function O(e,t,r,n){const i=await U(e);if(!i.queryObjectIds)throw new o.A(n,"Layer source does not support queryObjectIds capability");return i.queryObjectIds(h.A.from(t)??e.createQuery(),r)}async function R(e,t,r,n){const i=await U(e);if(!i.queryFeatureCount)throw new o.A(n,"Layer source does not support queryFeatureCount capability");return i.queryFeatureCount(h.A.from(t)??e.createQuery(),r)}async function D(e,t,r,n){const i=await U(e);if(!i.queryExtent)throw new o.A(n,"Layer source does not support queryExtent capability");return i.queryExtent(h.A.from(t)??e.createQuery(),r)}async function N(e,t,r,n){const i=await U(e);if(!i.queryRelatedFeatures)throw new o.A(n,"Layer source does not support queryRelatedFeatures capability");return i.queryRelatedFeatures(A.default.from(t),r)}async function q(e,t,r,n){const i=await U(e);if(!i.queryRelatedFeaturesCount)throw new o.A(n,"Layer source does not support queryRelatedFeaturesCount capability");return i.queryRelatedFeaturesCount(A.default.from(t),r)}async function T(e){const t=e.source;if(t?.refresh)try{const{dataChanged:r,updates:n}=await t.refresh();if(null!=n&&(e.sourceJSON={...e.sourceJSON,...n},e.read(n,{origin:"service",url:e.parsedUrl})),r)return!0}catch{}if(e.definitionExpression)try{return(await(0,l.GP)(e.definitionExpression,e.fieldsIndex)).hasDateFunctions}catch{}return!1}function V(e){const t=new h.A;t.historicMoment=e.historicMoment,t.gdbVersion=e.gdbVersion,t.returnGeometry=!0,t.outFields=["*"],t.multipatchOption="multipatch"===e.geometryType?"xyFootprint":null;const r=e.capabilities?.query;r&&(t.compactGeometryEnabled=r.supportsCompactGeometry,t.defaultSpatialReferenceEnabled=r.supportsDefaultSpatialReference);const n=e.capabilities?.data;n?.supportsZ&&null!=e.returnZ&&(t.returnZ=e.returnZ),n?.supportsM&&null!=e.returnM&&(t.returnM=e.returnM);const{timeOffset:i,timeExtent:o}=e;return t.timeExtent=null!=i&&null!=o?o.offset(-i.value,i.unit):o||null,t}function G(e){const{globalIdField:t,fields:r}=e;if(t)return t;if(r)for(const e of r)if("esriFieldTypeGlobalID"===e.type)return e.name}function $(e){const{objectIdField:t,fields:r}=e;if(t)return t;if(r)for(const e of r)if("esriFieldTypeOID"===e.type)return e.name}function k(e){return e.currentVersion?e.currentVersion:e.hasOwnProperty("capabilities")||e.hasOwnProperty("drawingInfo")||e.hasOwnProperty("hasAttachments")||e.hasOwnProperty("htmlPopupType")||e.hasOwnProperty("relationships")||e.hasOwnProperty("timeInfo")||e.hasOwnProperty("typeIdField")||e.hasOwnProperty("types")?10:9.3}function z(e,t,r,n){const i=r?.feature,o=!!e.subtypes?.length;if(o&&!r?.excludeImpliedDomains){const r=H(e,t);if(r)return r}const s=o&&K(e,i);if(s){const e=s?.domains?.[t];return"inherited"===e?.type?n:e}const a=ne(e.types,e.typeIdField,i);if(a){const e=a.domains&&a.domains[t];if(e&&"inherited"!==e?.type)return e}if(n)return n;if(!r?.excludeImpliedDomains){const r=function(e,t){const{fieldsIndex:r}=e,{name:n,type:i}=r.get(t)??{};if(!n)return null;if(("typeIdField"in e?r.get(e.typeIdField)?.name:null)===n&&"types"in e&&e.types?.length&&J(e.types)){const t=e.types?.map(e=>new d.A({code:Q(e.id,i),name:e.name}));return new y.A({codedValues:t})}return null}(e,t);if(r)return r}return null}function K(e,t){const{subtypes:r,subtypeField:n}=e;if(!t?.attributes||!r?.length||!n)return null;const i=t.attributes[n];return null==i?null:r.find(e=>e.code===i)}function H(e,t){const{fieldsIndex:r,subtypeField:n}=e,{name:i,type:o}=r.get(t)??{};if(!i)return null;if((n&&r.get(n)?.name)===i&&e.subtypes?.length){const t=e.subtypes.map(e=>new d.A({code:Q(e.code,o),name:e.name}));if(t?.length)return new y.A({codedValues:t})}return null}function J(e){const t=new Set,r=new Set;for(const n of e){if(t.has(n.id)||r.has(n.name))return!1;t.add(n.id),r.add(n.name)}return!0}function Q(e,t){return t?(0,b.yM)({type:t})&&"number"==typeof e?`${e}`:(0,b.R3)({type:t})&&"string"==typeof e?Number.parseInt(e,10):e:e}async function U(e){return(await e.load()).source}async function W(e,t,r){const i=e.parsedUrl?.path;i&&e.authenticationTriggerEvent===t&&await async function(e,t){if(!n.id)return;if(n.id.findCredential(e))return;let r;try{const i=await(0,w.wI)(e,t);i&&(r=await n.id.checkSignInStatus(`${i}/sharing`))}catch(e){}if(r)try{const r=null!=t?t.signal:null;await n.id.getCredential(e,{signal:r})}catch(e){}}(i,r)}function _(e){return!!e?.toLowerCase().includes("current_user")}function X(e){return!ie(e)&&(e.userHasUpdateItemPrivileges||e.editingEnabled)}const Y=(0,c.C)({types:x.xK});function ee(e,t){if(e.defaultSymbol)return e.types?.length?new v.A({defaultSymbol:Y(e.defaultSymbol,e,t),field:e.typeIdField,uniqueValueInfos:e.types.map(e=>({id:e.id,symbol:Y(e.symbol,e,t)}))}):new g.A({symbol:Y(e.defaultSymbol,e,t)})}function te(e){let t=e.sourceJSON?.cacheMaxAge;if(!t)return!1;const r=e.editingInfo?.lastEditDate?.getTime();return null==r||(t*=1e3,Date.now()-r<t)}async function re(e,t,r){if(null==t)return null;const n=[],{objectIdField:o}=e;if(t.forEach(e=>{let t=null;if("attributes"in e){const{attributes:n}=e;t={globalId:n[r],objectId:null!=n[o]&&-1!==n[o]?n[o]:null}}else t={globalId:e.globalId,objectId:null!=e.objectId&&-1!==e.objectId?e.objectId:null};null!=t.globalId&&(null!=t.objectId&&-1!==t.objectId||n.push(t.globalId))}),0===n.length)return null;const s=e.createQuery();s.where=n.map(e=>`${r}='${e}'`).join(" OR "),s.returnGeometry=!1,s.outFields=[o,r],s.cacheHint=!1;const a=await(0,i.DZ)(m(e,s));if(!a.ok)return null;const l=new Map,c=a.value.features;for(const e of c){const t=e.attributes[r],n=e.attributes[o];null!=t&&null!=n&&-1!==n&&l.set((0,u.AG)(t),n)}return l}function ne(e,t,r){if(!t||!r||!e)return null;const n=r.getAttribute(t);if(null==n)return null;const i=e.filter(e=>{const{id:t}=e;return null!=t&&t.toString()===n.toString()});return i.length>1&&a.A.getLogger("esri.layers.support.featureLayerUtils").warn("getFeatureType",`Cannot unambiguously determine feature type because multiple types have the id ${n}.`),i[0]??null}function ie(e){return e.sourceJSON?.isMultiServicesView||function(e){return!!e.sourceJSON?.capabilities?.toLowerCase().split(",").map(e=>e.trim()).includes("map")}(e)}function oe(e,t,r){const n=t?.queryAttributeBins;if(!t?.operations?.supportsQueryBins||!n)throw new o.A(r,"Layer source does not support binning");switch(e.binParameters?.type){case"auto-interval":if(!n.supportsAutoInterval)throw new o.A(r,"Layer source does not support auto-interval binning");if(e.binParameters.normalizationType&&(!n.supportsNormalization||!se(e.binParameters.normalizationType,n.supportedNormalizationTypes)))throw new o.A(r,"Layer source does not support normalization binning");break;case"date":if(!n.supportsDate)throw new o.A(r,"Layer source does not support date binning");if(e.binParameters.snapToData&&!n.supportsSnapToData)throw new o.A(r,"Layer source does not support snapToData binning");if(e.binParameters.returnFullIntervalBin&&!n.supportsReturnFullIntervalBin)throw new o.A(r,"Layer source does not support returnFullIntervalBin binning");break;case"fixed-boundaries":if(!n.supportsFixedBoundaries)throw new o.A(r,"Layer source does not support fixed-boundaries binning");break;case"fixed-interval":if(!n.supportsFixedInterval)throw new o.A(r,"Layer source does not support fixed-interval binning");if(e.binParameters.normalizationType&&(!n.supportsNormalization||!se(e.binParameters.normalizationType,n.supportedNormalizationTypes)))throw new o.A(r,"Layer source does not support normalization binning")}if(e.binParameters?.stackBy&&!n.supportsStackBy)throw new o.A(r,"Layer source does not support stackBy binning");if(e.binParameters?.splitBy&&!n.supportsSplitBy)throw new o.A(r,"Layer source does not support splitBy binning");if(e.binParameters?.firstDayOfWeek&&!n.supportsFirstDayOfWeek)throw new o.A(r,"Layer source does not support firstDayOfWeek binning");const i=n?.supportedStatistics;if(e.outStatistics&&i){const t=new Map([["count","count"],["sum","sum"],["min","min"],["max","max"],["avg","avg"],["stddev","stddev"],["var","var"],["percentile-continuous","percentileContinuous"],["percentile-discrete","percentileDiscrete"],["centroid-aggregate","centroid"],["convex-hull-aggregate","convexHull"],["envelope-aggregate","envelope"]]);for(const{statisticType:n}of e.outStatistics){const e=t.get(n);if(e&&!i[e])throw new o.A(r,`Layer source does not support ${n} statistic type`)}}}function se(e,t){return null!=e&&!!t?.[S.Q.toJSON(e)]}},39383(e,t,r){r.d(t,{w:()=>l,z:()=>p});var n=r(49186),i=r(53966),o=r(46499);const s=()=>i.A.getLogger("esri.layers.support.labelingInfo"),a=/\[([^[\]]+)\]/gi;function l(e,t,r){return e?e.map(e=>{const n=new o.A;if(n.read(e,r),n.labelExpression){const e=t.fields||t.layerDefinition?.fields||this.fields;n.labelExpression=n.labelExpression.replaceAll(a,(t,r)=>`[${function(e,t){if(!t)return e;const r=e.toLowerCase();for(let e=0;e<t.length;e++){const n=t[e].name;if(n.toLowerCase()===r)return n}return e}(r,e)}]`)}return n}):null}const u=["above-right","above-center","above-left","center-center","center-left","center-right","below-center","below-left","below-right"],c={esriGeometryPoint:u,esriGeometryMultiPatch:["always-horizontal"],esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along","above-along","below-along"],esriGeometryMultipoint:u,esriGeometryEnvelope:null};function p(e,t){const r=[];for(const i of e){const e=i.labelPlacement,o=c[t];if(!i.symbol)return s().warn("No ILabelClass symbol specified."),[];if(!o)return s().error(new n.A("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),[];if(o.includes(e))r.push(i);else{const n=o[0];e&&s().warn(`Found invalid label placement type ${e} for ${t}. Defaulting to ${n}`);const a=i.clone();a.labelPlacement=n,r.push(a)}}return r}},96576(e,t,r){r.d(t,{A:()=>p});var n,i=r(5482),o=r(4718),s=r(91429),a=r(92438),l=r(63988),u=r(49849),c=r(93223);let p=n=class extends((0,l.h)(a.A)){constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.type="simple"}async collectRequiredFields(e,t){await Promise.all([this.collectSymbolFields(e,t),this.collectVVRequiredFields(e,t)])}async collectSymbolFields(e,t){await Promise.all(this.symbols.map(r=>r.collectRequiredFields(e,t)))}getSymbol(e,t){return this.symbol}async getSymbolAsync(e,t){return this.symbol}get symbols(){return this.symbol?[this.symbol]:[]}get arcadeRequired(){return this.arcadeRequiredForVisualVariables}clone(){return new n({description:this.description,label:this.label,symbol:(0,o.o8)(this.symbol),visualVariables:(0,o.o8)(this.visualVariables),authoringInfo:(0,o.o8)(this.authoringInfo)})}};(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],p.prototype,"description",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],p.prototype,"label",void 0),(0,i.Cg)([(0,s.MZ)(u.Wp)],p.prototype,"symbol",void 0),(0,i.Cg)([(0,c.e)({simple:"simple"})],p.prototype,"type",void 0),p=n=(0,i.Cg)([(0,s.$K)("esri.renderers.SimpleRenderer")],p)},54546(e,t,r){r.d(t,{A:()=>c});var n,i=r(5482),o=r(25482),s=r(4718),a=r(91429),l=r(56507),u=r(43937);let c=class extends o.o{static{n=this}constructor(e){super(e),this.attachmentTypes=null,this.attachmentsWhere=null,this.cacheHint=void 0,this.keywords=null,this.globalIds=null,this.name=null,this.num=null,this.objectIds=null,this.orderByFields=null,this.returnMetadata=!1,this.size=null,this.start=null,this.where=null}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10}clone(){return new n((0,s.o8)({attachmentTypes:this.attachmentTypes,attachmentsWhere:this.attachmentsWhere,cacheHint:this.cacheHint,keywords:this.keywords,where:this.where,globalIds:this.globalIds,name:this.name,num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,returnMetadata:this.returnMetadata,size:this.size,start:this.start}))}};(0,i.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],c.prototype,"attachmentTypes",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{read:{source:"attachmentsDefinitionExpression"},write:{target:"attachmentsDefinitionExpression"}}})],c.prototype,"attachmentsWhere",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],c.prototype,"cacheHint",void 0),(0,i.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],c.prototype,"keywords",void 0),(0,i.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],c.prototype,"globalIds",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"name",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{read:{source:"resultRecordCount"}}})],c.prototype,"num",void 0),(0,i.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],c.prototype,"objectIds",void 0),(0,i.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],c.prototype,"orderByFields",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],c.prototype,"returnMetadata",void 0),(0,i.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],c.prototype,"size",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{read:{source:"resultOffset"}}})],c.prototype,"start",void 0),(0,i.Cg)([(0,u.K)("start"),(0,u.K)("num")],c.prototype,"writeStart",null),(0,i.Cg)([(0,a.MZ)({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],c.prototype,"where",void 0),c=n=(0,i.Cg)([(0,a.$K)("esri.rest.support.AttachmentQuery")],c),c.from=(0,l.dp)(c)},26591(e,t,r){r.r(t),r.d(t,{default:()=>d});var n,i=r(5482),o=r(25482),s=r(4718),a=r(91429),l=r(56507),u=r(16930),c=r(65615),p=r(43937);let d=class extends o.o{static{n=this}constructor(e){super(e),this.cacheHint=void 0,this.dynamicDataSource=void 0,this.gdbVersion=null,this.geometryPrecision=void 0,this.historicMoment=null,this.maxAllowableOffset=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.relationshipId=void 0,this.start=void 0,this.num=void 0,this.returnGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.returnTrueCurves=void 0,this.where=null}_writeHistoricMoment(e,t){t.historicMoment=e&&e.getTime()}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10,this.start>0&&null==this.where&&(t.definitionExpression="1=1")}clone(){return new n((0,s.o8)({cacheHint:this.cacheHint,dynamicDataSource:this.dynamicDataSource,gdbVersion:this.gdbVersion,geometryPrecision:this.geometryPrecision,historicMoment:this.historicMoment&&new Date(this.historicMoment),maxAllowableOffset:this.maxAllowableOffset,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,relationshipId:this.relationshipId,start:this.start,num:this.num,returnGeometry:this.returnGeometry,where:this.where,returnZ:this.returnZ,returnTrueCurves:this.returnTrueCurves,returnM:this.returnM}))}};(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"cacheHint",void 0),(0,i.Cg)([(0,a.MZ)({type:c.A,json:{write:!0}})],d.prototype,"dynamicDataSource",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],d.prototype,"gdbVersion",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"geometryPrecision",void 0),(0,i.Cg)([(0,a.MZ)({type:Date})],d.prototype,"historicMoment",void 0),(0,i.Cg)([(0,p.K)("historicMoment")],d.prototype,"_writeHistoricMoment",null),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"maxAllowableOffset",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],d.prototype,"objectIds",void 0),(0,i.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],d.prototype,"orderByFields",void 0),(0,i.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],d.prototype,"outFields",void 0),(0,i.Cg)([(0,a.MZ)({type:u.A,json:{read:{source:"outSR"},write:{target:"outSR"}}})],d.prototype,"outSpatialReference",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],d.prototype,"relationshipId",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{read:{source:"resultOffset"}}})],d.prototype,"start",void 0),(0,i.Cg)([(0,p.K)("start"),(0,p.K)("num")],d.prototype,"writeStart",null),(0,i.Cg)([(0,a.MZ)({type:Number,json:{read:{source:"resultRecordCount"}}})],d.prototype,"num",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],d.prototype,"returnGeometry",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],d.prototype,"returnM",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],d.prototype,"returnZ",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"returnTrueCurves",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],d.prototype,"where",void 0),d=n=(0,i.Cg)([(0,a.$K)("esri.rest.support.RelationshipQuery")],d),d.from=(0,l.dp)(d)},30291(e,t,r){r.d(t,{tn:()=>u});var n=r(37838),i=r(30524),o=r(41227),s=r(89893),a=r(66159),l=r(68780);function u({displayField:e,editFieldsInfo:t,fields:r,objectIdField:l,title:u},y){if(!r)return null;const m=function(e,t){const r=t?.visibleFieldNames;return function({fields:e,ignoreFieldTypes:t,sortDisabled:r}){const n=e;return t&&(e=e.filter(e=>!t.includes(e.type))),e===n&&(e=e.slice()),!0!==r&&e.sort(p),e}({fields:e.fields??[],ignoreFieldTypes:t?.ignoreFieldTypes||h,sortDisabled:t?.sortDisabled}).map(t=>new o.A({fieldName:t.name,isEditable:(0,i.R$)(t,e),label:t.alias,format:d(t),visible:c(t,{...e,visibleFieldNames:r})}))}({editFieldsInfo:t,fields:r,objectIdField:l},y);if(!m.length)return null;const f=function(e){const t=(0,i.mB)(e),{titleBase:r}=e;return t?`${r}: {${t.trim()}}`:r??""}({titleBase:u,fields:r,displayField:e}),b=[new a.A,new s.A];return new n.A({title:f,content:b,fieldInfos:m})}const c=(e,t)=>t.visibleFieldNames?t.visibleFieldNames.has(e.name):(0,i.Bz)(e,t);function p(e,t){return"oid"===e.type?-1:"oid"===t.type?1:y(e)?-1:y(t)?1:(e.alias||e.name).toLocaleLowerCase().localeCompare((t.alias||t.name).toLocaleLowerCase())}function d(e){switch(e.type){case"small-integer":case"integer":return new l.A({digitSeparator:!0,places:0});case"single":case"double":return new l.A({digitSeparator:!0,places:2});case"string":return(0,i.JL)(e.name)?new l.A({digitSeparator:!0,places:0}):void 0;default:return}}function y(e){if("name"===(e.name&&e.name.toLowerCase()))return!0;const t=e.alias?.toLowerCase();return"name"===t}const h=["geometry","blob","raster","guid","xml"]}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8399],{99959(e,t,r){r.d(t,{A:()=>o});var n=r(5482),i=r(91429);let o=class{};o=(0,n.Cg)([(0,i.$K)("esri.graphic.GraphicOrigin")],o)},89808(e,t,r){r.d(t,{Q:()=>n});const n=Symbol("getSliceableSymbol")},46499(e,t,r){r.d(t,{A:()=>A});var n,i,o=r(5482),s=(r(44208),r(66552)),a=r(25482),l=r(4718),u=r(90629),c=r(91429),p=r(73913),d=r(32730),y=r(77548),h=r(59868),m=r(73838),f=r(33910),b=r(36005),w=r(43937);const g=new s.J({esriServerPointLabelPlacementAboveCenter:"above-center",esriServerPointLabelPlacementAboveLeft:"above-left",esriServerPointLabelPlacementAboveRight:"above-right",esriServerPointLabelPlacementBelowCenter:"below-center",esriServerPointLabelPlacementBelowLeft:"below-left",esriServerPointLabelPlacementBelowRight:"below-right",esriServerPointLabelPlacementCenterCenter:"center-center",esriServerPointLabelPlacementCenterLeft:"center-left",esriServerPointLabelPlacementCenterRight:"center-right",esriServerLinePlacementAboveAfter:"above-after",esriServerLinePlacementAboveAlong:"above-along",esriServerLinePlacementAboveBefore:"above-before",esriServerLinePlacementAboveStart:"above-start",esriServerLinePlacementAboveEnd:"above-end",esriServerLinePlacementBelowAfter:"below-after",esriServerLinePlacementBelowAlong:"below-along",esriServerLinePlacementBelowBefore:"below-before",esriServerLinePlacementBelowStart:"below-start",esriServerLinePlacementBelowEnd:"below-end",esriServerLinePlacementCenterAfter:"center-after",esriServerLinePlacementCenterAlong:"center-along",esriServerLinePlacementCenterBefore:"center-before",esriServerLinePlacementCenterStart:"center-start",esriServerLinePlacementCenterEnd:"center-end",esriServerPolygonPlacementAlwaysHorizontal:"always-horizontal"},{ignoreUnknown:!0});function v(e,t,r){return{enabled:!(0,y.TU)(r?.layer)}}function C(e){return!e||"service"!==e.origin&&!("map-image"===e.layer?.type)}function S(e){return!!function(e){return"map-image"===e?.type}(e)&&!!e.capabilities?.exportMap?.supportsArcadeExpressionForLabeling}let A=class extends a.o{static{n=d.vK}static{i=this}static evaluateWhere(e,t){const r=(e,t,r)=>{switch(t){case"=":return e==r;case"<>":return e!=r;case">":return e>r;case">=":return e>=r;case"<":return e<r;case"<=":return e<=r}return!1};try{if(null==e)return!0;const n=e.split(" ");if(3===n.length)return r(t[n[0]],n[1],n[2]);if(7===n.length){const e=r(t[n[0]],n[1],n[2]),i=n[3],o=r(t[n[4]],n[5],n[6]);switch(i){case"AND":return e&&o;case"OR":return e||o}}return!1}catch(e){}}constructor(e){super(e),this[n]=!0,this.type="label",this.name=null,this.allowOverrun=!1,this.deconflictionStrategy="static",this.labelExpression=null,this.labelExpressionInfo=null,this.labelPlacement=null,this.labelPosition="curved",this.maxScale=0,this.minScale=0,this.repeatLabel=!0,this.symbol=h.Hk,this.useCodedValues=void 0,this.where=null}readLabelExpression(e,t){const r=t.labelExpressionInfo;if(!r||!r.value&&!r.expression)return e}writeLabelExpression(e,t,r){if(this.labelExpressionInfo)if(null!=this.labelExpressionInfo.value)e=(0,d.D3)(this.labelExpressionInfo.value);else if(null!=this.labelExpressionInfo.expression){const t=(0,d.tH)(this.labelExpressionInfo.expression);t&&(e="["+t+"]")}null!=e&&(t[r]=e)}writeLabelExpressionInfo(e,t,r,n){if(null==e&&null!=this.labelExpression&&C(n))e=new p.A({expression:this.getLabelExpressionArcade()});else if(!e)return;const i=e.toJSON(n);i.expression&&(t[r]=i)}writeMaxScale(e,t){(e||this.minScale)&&(t.maxScale=e)}writeMinScale(e,t){(e||this.maxScale)&&(t.minScale=e)}get repeatLabelDistance(){return this._get("repeatLabelDistance")}set repeatLabelDistance(e){this._set("repeatLabelDistance",e)}getLabelExpression(){return(0,d.XJ)(this)}getLabelExpressionArcade(){return(0,d.BI)(this)}getLabelExpressionSingleField(){return(0,d.rU)(this)}hash(){return JSON.stringify(this)}clone(){return new i({allowOverrun:this.allowOverrun,deconflictionStrategy:this.deconflictionStrategy,labelExpression:this.labelExpression,labelExpressionInfo:(0,l.o8)(this.labelExpressionInfo),labelPosition:this.labelPosition,labelPlacement:this.labelPlacement,maxScale:this.maxScale,minScale:this.minScale,name:this.name,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,symbol:(0,l.o8)(this.symbol),where:this.where,useCodedValues:this.useCodedValues})}};(0,o.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],A.prototype,"name",void 0),(0,o.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1},"portal-item":{default:!1,write:{overridePolicy:v}}}}})],A.prototype,"allowOverrun",void 0),(0,o.Cg)([(0,c.MZ)({type:String,json:{write:!0,default:"static",origins:{"web-scene":{write:!1},"portal-item":{default:"static",write:{overridePolicy:v}}}}})],A.prototype,"deconflictionStrategy",void 0),(0,o.Cg)([(0,c.MZ)({type:String,json:{write:{overridePolicy(e,t,r){return this.labelExpressionInfo&&"service"===r?.origin&&S(r.layer)?{enabled:!1}:{allowNull:!0}}}}})],A.prototype,"labelExpression",void 0),(0,o.Cg)([(0,b.w)("labelExpression")],A.prototype,"readLabelExpression",null),(0,o.Cg)([(0,w.K)("labelExpression")],A.prototype,"writeLabelExpression",null),(0,o.Cg)([(0,c.MZ)({type:p.A,json:{write:{overridePolicy:(e,t,r)=>function(e){return C(e)||S(e?.layer)}(r)?{allowNull:!0}:{enabled:!1}}}})],A.prototype,"labelExpressionInfo",void 0),(0,o.Cg)([(0,w.K)("labelExpressionInfo")],A.prototype,"writeLabelExpressionInfo",null),(0,o.Cg)([(0,c.MZ)({type:g.apiValues,json:{type:g.jsonValues,read:g.read,write:g.write}})],A.prototype,"labelPlacement",void 0),(0,o.Cg)([(0,c.MZ)({type:["curved","parallel"],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],A.prototype,"labelPosition",void 0),(0,o.Cg)([(0,c.MZ)({type:Number})],A.prototype,"maxScale",void 0),(0,o.Cg)([(0,w.K)("maxScale")],A.prototype,"writeMaxScale",null),(0,o.Cg)([(0,c.MZ)({type:Number})],A.prototype,"minScale",void 0),(0,o.Cg)([(0,w.K)("minScale")],A.prototype,"writeMinScale",null),(0,o.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:v}}}}})],A.prototype,"repeatLabel",void 0),(0,o.Cg)([(0,c.MZ)({type:Number,cast:u.cr,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:v}}}}})],A.prototype,"repeatLabelDistance",null),(0,o.Cg)([(0,c.MZ)({types:f.em,json:{origins:{"web-scene":{types:f.Rv,write:m.oO,default:null}},write:m.oO,default:null}})],A.prototype,"symbol",void 0),(0,o.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],A.prototype,"useCodedValues",void 0),(0,o.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],A.prototype,"where",void 0),A=i=(0,o.Cg)([(0,c.$K)("esri.layers.support.LabelClass")],A)},73913(e,t,r){r.d(t,{A:()=>c});var n,i=r(5482),o=r(25482),s=r(91429),a=r(32730),l=r(36005),u=r(43937);let c=class extends o.o{static{n=this}constructor(e){super(e),this.expression=null,this.title=null,this.value=null}readExpression(e,t){return t.value?(0,a.mX)(t.value):e}writeExpression(e,t,r){null!=this.value&&(e=(0,a.mX)(this.value)),null!=e&&(t[r]=e)}clone(){return new n({expression:this.expression,title:this.title,value:this.value})}};(0,i.Cg)([(0,s.MZ)({type:String,json:{write:{writerEnsuresNonNull:!0}}})],c.prototype,"expression",void 0),(0,i.Cg)([(0,l.w)("expression",["expression","value"])],c.prototype,"readExpression",null),(0,i.Cg)([(0,u.K)("expression")],c.prototype,"writeExpression",null),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],c.prototype,"title",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!1,write:!1}})],c.prototype,"value",void 0),c=n=(0,i.Cg)([(0,s.$K)("esri.layers.support.LabelExpressionInfo")],c)},15426(e,t,r){r.d(t,{Xl:()=>I,ct:()=>j,pc:()=>H,C$:()=>X,PD:()=>ee,VZ:()=>V,mm:()=>E,VA:()=>W,WP:()=>Z,iX:()=>P,Nv:()=>K,xd:()=>ne,Vq:()=>z,GA:()=>re,rQ:()=>_,jp:()=>T,tG:()=>te,lV:()=>B,B5:()=>D,Ye:()=>R,sg:()=>O,hM:()=>N,S2:()=>q,jD:()=>G,Zm:()=>$,$4:()=>k,Pt:()=>ie,uU:()=>J,bt:()=>L,rn:()=>F,ZJ:()=>oe});var n=r(70333),i=(r(5757),r(60999)),o=r(49186),s=r(66552),a=r(53966),l=r(39516),u=r(13069),c=r(90360),p=r(60694),d=r(39357),y=r(53177),h=r(97552);async function m(e,t,r){t=t.clone(),e.capabilities.query.supportsMaxRecordCountFactor&&(t.maxRecordCountFactor=f(e));const n=function(e){return f(e)*function(e){return e.capabilities.query.maxRecordCount||2e3}(e)}(e),i=e.capabilities.query.supportsPagination;t.start=0,t.num=n;let o=null;for(;;){const s=await e.source.queryFeaturesJSON(t,r);if(null==o?o=s:o.features=o.features.concat(s.features),o.exceededTransferLimit=s.exceededTransferLimit,!i||!s.exceededTransferLimit)break;t.start+=n}return o}function f(e){return e.capabilities.query.supportsMaxRecordCountFactor?h.A.MAX_MAX_RECORD_COUNT_FACTOR:1}var b=r(30524),w=(r(32730),r(77548)),g=r(96576),v=r(93618),C=(r(98205),r(54546)),S=r(41366),A=r(26591),x=r(33910);const P=new s.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryMultiPatch:"multipatch"});async function I(e,t,r,n){const i=await U(e);if(await M(e,t,n),!i.addAttachment)throw new o.A(n,"Layer source does not support addAttachment capability");return i.addAttachment(t,r)}function M(e,t,r){const{attributes:n}=t,{objectIdField:i}=e;return e.capabilities?.data?.supportsAttachment?t?n?i&&n[i]?Promise.resolve():Promise.reject(new o.A(r,`feature is missing the identifying attribute ${i}`)):Promise.reject(new o.A(r,"'attributes' are required on a feature to query attachments")):Promise.reject(new o.A(r,"A feature is required to add/delete/update attachments")):Promise.reject(new o.A(r,"this layer doesn't support attachments"))}async function L(e,t,r,n,i){const s=await U(e);if(await M(e,t,i),!s.updateAttachment)throw new o.A(i,"Layer source does not support updateAttachment capability");return s.updateAttachment(t,r,n)}async function j(e,t,n){const{applyEdits:i}=await r.e(8628).then(r.bind(r,78628)),o=await e.load();let s=n;const{url:a,type:l,globalIdField:u}=o;return"feature"===l&&(0,p.Wo)(a)&&o.infoFor3D&&null!=t.deleteFeatures&&null!=u&&(s={...s,globalIdToObjectId:await re(o,t.deleteFeatures,u)}),i(o,o.source,t,s)}async function F(e,t,n){const{uploadAssets:i}=await r.e(8628).then(r.bind(r,78628)),o=await e.load();return i(o,o.source,t,n)}async function E(e,t,r,n){const i=await U(e);if(await M(e,t,n),!i.deleteAttachments)throw new o.A(n,"Layer source does not support deleteAttachments capability");return i.deleteAttachments(t,r)}async function Z(e,t,r){const n=(await e.load({signal:t?.signal})).source;if(!n.fetchRecomputedExtents)throw new o.A(r,"Layer source does not support fetchUpdates capability");return n.fetchRecomputedExtents(t)}async function B(e,t,r,n){let i=C.A.from(t);await e.load();const s=e.source,a=e.capabilities;if(!a?.data?.supportsAttachment)throw new o.A(n,"this layer doesn't support attachments");const{attachmentTypes:l,objectIds:u,globalIds:c,num:p,size:d,start:y,where:h}=i;if(!a?.operations?.supportsQueryAttachments&&(l?.length>0||c?.length>0||d?.length>0||p||y||h))throw new o.A(n,"when 'capabilities.operations.supportsQueryAttachments' is false, only objectIds is supported",i);if(!(u?.length||c?.length||h))throw new o.A(n,"'objectIds', 'globalIds', or 'where' are required to perform attachment query",i);if(!s.queryAttachments)throw new o.A(n,"Layer source does not support queryAttachments capability",i);return!a?.attachment?.supportsOrderByFields&&i.orderByFields?.length&&(i=i.clone(),i.orderByFields=null),s.queryAttachments(i)}async function O(e,t,r,n){const i=await U(e);if(!i.queryObjectIds)throw new o.A(n,"Layer source does not support queryObjectIds capability");return i.queryObjectIds(h.A.from(t)??e.createQuery(),r)}async function R(e,t,r,n){const i=await U(e);if(!i.queryFeatureCount)throw new o.A(n,"Layer source does not support queryFeatureCount capability");return i.queryFeatureCount(h.A.from(t)??e.createQuery(),r)}async function D(e,t,r,n){const i=await U(e);if(!i.queryExtent)throw new o.A(n,"Layer source does not support queryExtent capability");return i.queryExtent(h.A.from(t)??e.createQuery(),r)}async function N(e,t,r,n){const i=await U(e);if(!i.queryRelatedFeatures)throw new o.A(n,"Layer source does not support queryRelatedFeatures capability");return i.queryRelatedFeatures(A.default.from(t),r)}async function q(e,t,r,n){const i=await U(e);if(!i.queryRelatedFeaturesCount)throw new o.A(n,"Layer source does not support queryRelatedFeaturesCount capability");return i.queryRelatedFeaturesCount(A.default.from(t),r)}async function T(e){const t=e.source;if(t?.refresh)try{const{dataChanged:r,updates:n}=await t.refresh();if(null!=n&&(e.sourceJSON={...e.sourceJSON,...n},e.read(n,{origin:"service",url:e.parsedUrl})),r)return!0}catch{}if(e.definitionExpression)try{return(await(0,l.GP)(e.definitionExpression,e.fieldsIndex)).hasDateFunctions}catch{}return!1}function V(e){const t=new h.A;t.historicMoment=e.historicMoment,t.gdbVersion=e.gdbVersion,t.returnGeometry=!0,t.outFields=["*"],t.multipatchOption="multipatch"===e.geometryType?"xyFootprint":null;const r=e.capabilities?.query;r&&(t.compactGeometryEnabled=r.supportsCompactGeometry,t.defaultSpatialReferenceEnabled=r.supportsDefaultSpatialReference);const n=e.capabilities?.data;n?.supportsZ&&null!=e.returnZ&&(t.returnZ=e.returnZ),n?.supportsM&&null!=e.returnM&&(t.returnM=e.returnM);const{timeOffset:i,timeExtent:o}=e;return t.timeExtent=null!=i&&null!=o?o.offset(-i.value,i.unit):o||null,t}function G(e){const{globalIdField:t,fields:r}=e;if(t)return t;if(r)for(const e of r)if("esriFieldTypeGlobalID"===e.type)return e.name}function $(e){const{objectIdField:t,fields:r}=e;if(t)return t;if(r)for(const e of r)if("esriFieldTypeOID"===e.type)return e.name}function k(e){return e.currentVersion?e.currentVersion:e.hasOwnProperty("capabilities")||e.hasOwnProperty("drawingInfo")||e.hasOwnProperty("hasAttachments")||e.hasOwnProperty("htmlPopupType")||e.hasOwnProperty("relationships")||e.hasOwnProperty("timeInfo")||e.hasOwnProperty("typeIdField")||e.hasOwnProperty("types")?10:9.3}function z(e,t,r,n){const i=r?.feature,o=!!e.subtypes?.length;if(o&&!r?.excludeImpliedDomains){const r=H(e,t);if(r)return r}const s=o&&K(e,i);if(s){const e=s?.domains?.[t];return"inherited"===e?.type?n:e}const a=ne(e.types,e.typeIdField,i);if(a){const e=a.domains&&a.domains[t];if(e&&"inherited"!==e?.type)return e}if(n)return n;if(!r?.excludeImpliedDomains){const r=function(e,t){const{fieldsIndex:r}=e,{name:n,type:i}=r.get(t)??{};if(!n)return null;if(("typeIdField"in e?r.get(e.typeIdField)?.name:null)===n&&"types"in e&&e.types?.length&&J(e.types)){const t=e.types?.map(e=>new d.A({code:Q(e.id,i),name:e.name}));return new y.A({codedValues:t})}return null}(e,t);if(r)return r}return null}function K(e,t){const{subtypes:r,subtypeField:n}=e;if(!t?.attributes||!r?.length||!n)return null;const i=t.attributes[n];return null==i?null:r.find(e=>e.code===i)}function H(e,t){const{fieldsIndex:r,subtypeField:n}=e,{name:i,type:o}=r.get(t)??{};if(!i)return null;if((n&&r.get(n)?.name)===i&&e.subtypes?.length){const t=e.subtypes.map(e=>new d.A({code:Q(e.code,o),name:e.name}));if(t?.length)return new y.A({codedValues:t})}return null}function J(e){const t=new Set,r=new Set;for(const n of e){if(t.has(n.id)||r.has(n.name))return!1;t.add(n.id),r.add(n.name)}return!0}function Q(e,t){return t?(0,b.yM)({type:t})&&"number"==typeof e?`${e}`:(0,b.R3)({type:t})&&"string"==typeof e?Number.parseInt(e,10):e:e}async function U(e){return(await e.load()).source}async function W(e,t,r){const i=e.parsedUrl?.path;i&&e.authenticationTriggerEvent===t&&await async function(e,t){if(!n.id)return;if(n.id.findCredential(e))return;let r;try{const i=await(0,w.wI)(e,t);i&&(r=await n.id.checkSignInStatus(`${i}/sharing`))}catch(e){}if(r)try{const r=null!=t?t.signal:null;await n.id.getCredential(e,{signal:r})}catch(e){}}(i,r)}function _(e){return!!e?.toLowerCase().includes("current_user")}function X(e){return!ie(e)&&(e.userHasUpdateItemPrivileges||e.editingEnabled)}const Y=(0,c.C)({types:x.xK});function ee(e,t){if(e.defaultSymbol)return e.types?.length?new v.A({defaultSymbol:Y(e.defaultSymbol,e,t),field:e.typeIdField,uniqueValueInfos:e.types.map(e=>({id:e.id,symbol:Y(e.symbol,e,t)}))}):new g.A({symbol:Y(e.defaultSymbol,e,t)})}function te(e){let t=e.sourceJSON?.cacheMaxAge;if(!t)return!1;const r=e.editingInfo?.lastEditDate?.getTime();return null==r||(t*=1e3,Date.now()-r<t)}async function re(e,t,r){if(null==t)return null;const n=[],{objectIdField:o}=e;if(t.forEach(e=>{let t=null;if("attributes"in e){const{attributes:n}=e;t={globalId:n[r],objectId:null!=n[o]&&-1!==n[o]?n[o]:null}}else t={globalId:e.globalId,objectId:null!=e.objectId&&-1!==e.objectId?e.objectId:null};null!=t.globalId&&(null!=t.objectId&&-1!==t.objectId||n.push(t.globalId))}),0===n.length)return null;const s=e.createQuery();s.where=n.map(e=>`${r}='${e}'`).join(" OR "),s.returnGeometry=!1,s.outFields=[o,r],s.cacheHint=!1;const a=await(0,i.DZ)(m(e,s));if(!a.ok)return null;const l=new Map,c=a.value.features;for(const e of c){const t=e.attributes[r],n=e.attributes[o];null!=t&&null!=n&&-1!==n&&l.set((0,u.AG)(t),n)}return l}function ne(e,t,r){if(!t||!r||!e)return null;const n=r.getAttribute(t);if(null==n)return null;const i=e.filter(e=>{const{id:t}=e;return null!=t&&t.toString()===n.toString()});return i.length>1&&a.A.getLogger("esri.layers.support.featureLayerUtils").warn("getFeatureType",`Cannot unambiguously determine feature type because multiple types have the id ${n}.`),i[0]??null}function ie(e){return e.sourceJSON?.isMultiServicesView||function(e){return!!e.sourceJSON?.capabilities?.toLowerCase().split(",").map(e=>e.trim()).includes("map")}(e)}function oe(e,t,r){const n=t?.queryAttributeBins;if(!t?.operations?.supportsQueryBins||!n)throw new o.A(r,"Layer source does not support binning");switch(e.binParameters?.type){case"auto-interval":if(!n.supportsAutoInterval)throw new o.A(r,"Layer source does not support auto-interval binning");if(e.binParameters.normalizationType&&(!n.supportsNormalization||!se(e.binParameters.normalizationType,n.supportedNormalizationTypes)))throw new o.A(r,"Layer source does not support normalization binning");break;case"date":if(!n.supportsDate)throw new o.A(r,"Layer source does not support date binning");if(e.binParameters.snapToData&&!n.supportsSnapToData)throw new o.A(r,"Layer source does not support snapToData binning");if(e.binParameters.returnFullIntervalBin&&!n.supportsReturnFullIntervalBin)throw new o.A(r,"Layer source does not support returnFullIntervalBin binning");break;case"fixed-boundaries":if(!n.supportsFixedBoundaries)throw new o.A(r,"Layer source does not support fixed-boundaries binning");break;case"fixed-interval":if(!n.supportsFixedInterval)throw new o.A(r,"Layer source does not support fixed-interval binning");if(e.binParameters.normalizationType&&(!n.supportsNormalization||!se(e.binParameters.normalizationType,n.supportedNormalizationTypes)))throw new o.A(r,"Layer source does not support normalization binning")}if(e.binParameters?.stackBy&&!n.supportsStackBy)throw new o.A(r,"Layer source does not support stackBy binning");if(e.binParameters?.splitBy&&!n.supportsSplitBy)throw new o.A(r,"Layer source does not support splitBy binning");if(e.binParameters?.firstDayOfWeek&&!n.supportsFirstDayOfWeek)throw new o.A(r,"Layer source does not support firstDayOfWeek binning");const i=n?.supportedStatistics;if(e.outStatistics&&i){const t=new Map([["count","count"],["sum","sum"],["min","min"],["max","max"],["avg","avg"],["stddev","stddev"],["var","var"],["percentile-continuous","percentileContinuous"],["percentile-discrete","percentileDiscrete"],["centroid-aggregate","centroid"],["convex-hull-aggregate","convexHull"],["envelope-aggregate","envelope"]]);for(const{statisticType:n}of e.outStatistics){const e=t.get(n);if(e&&!i[e])throw new o.A(r,`Layer source does not support ${n} statistic type`)}}}function se(e,t){return null!=e&&!!t?.[S.Q.toJSON(e)]}},39383(e,t,r){r.d(t,{w:()=>l,z:()=>p});var n=r(49186),i=r(53966),o=r(46499);const s=()=>i.A.getLogger("esri.layers.support.labelingInfo"),a=/\[([^[\]]+)\]/gi;function l(e,t,r){return e?e.map(e=>{const n=new o.A;if(n.read(e,r),n.labelExpression){const e=t.fields||t.layerDefinition?.fields||this.fields;n.labelExpression=n.labelExpression.replaceAll(a,(t,r)=>`[${function(e,t){if(!t)return e;const r=e.toLowerCase();for(let e=0;e<t.length;e++){const n=t[e].name;if(n.toLowerCase()===r)return n}return e}(r,e)}]`)}return n}):null}const u=["above-right","above-center","above-left","center-center","center-left","center-right","below-center","below-left","below-right"],c={esriGeometryPoint:u,esriGeometryMultiPatch:["always-horizontal"],esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along","above-along","below-along"],esriGeometryMultipoint:u,esriGeometryEnvelope:null};function p(e,t){const r=[];for(const i of e){const e=i.labelPlacement,o=c[t];if(!i.symbol)return s().warn("No ILabelClass symbol specified."),[];if(!o)return s().error(new n.A("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),[];if(o.includes(e))r.push(i);else{const n=o[0];e&&s().warn(`Found invalid label placement type ${e} for ${t}. Defaulting to ${n}`);const a=i.clone();a.labelPlacement=n,r.push(a)}}return r}},96576(e,t,r){r.d(t,{A:()=>p});var n,i=r(5482),o=r(4718),s=r(91429),a=r(92438),l=r(63988),u=r(49849),c=r(93223);let p=n=class extends((0,l.h)(a.A)){constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.type="simple"}async collectRequiredFields(e,t){await Promise.all([this.collectSymbolFields(e,t),this.collectVVRequiredFields(e,t)])}async collectSymbolFields(e,t){await Promise.all(this.symbols.map(r=>r.collectRequiredFields(e,t)))}getSymbol(e,t){return this.symbol}async getSymbolAsync(e,t){return this.symbol}get symbols(){return this.symbol?[this.symbol]:[]}get arcadeRequired(){return this.arcadeRequiredForVisualVariables}clone(){return new n({description:this.description,label:this.label,symbol:(0,o.o8)(this.symbol),visualVariables:(0,o.o8)(this.visualVariables),authoringInfo:(0,o.o8)(this.authoringInfo)})}};(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],p.prototype,"description",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],p.prototype,"label",void 0),(0,i.Cg)([(0,s.MZ)(u.Wp)],p.prototype,"symbol",void 0),(0,i.Cg)([(0,c.e)({simple:"simple"})],p.prototype,"type",void 0),p=n=(0,i.Cg)([(0,s.$K)("esri.renderers.SimpleRenderer")],p)},54546(e,t,r){r.d(t,{A:()=>c});var n,i=r(5482),o=r(25482),s=r(4718),a=r(91429),l=r(56507),u=r(43937);let c=class extends o.o{static{n=this}constructor(e){super(e),this.attachmentTypes=null,this.attachmentsWhere=null,this.cacheHint=void 0,this.keywords=null,this.globalIds=null,this.name=null,this.num=null,this.objectIds=null,this.orderByFields=null,this.returnMetadata=!1,this.size=null,this.start=null,this.where=null}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10}clone(){return new n((0,s.o8)({attachmentTypes:this.attachmentTypes,attachmentsWhere:this.attachmentsWhere,cacheHint:this.cacheHint,keywords:this.keywords,where:this.where,globalIds:this.globalIds,name:this.name,num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,returnMetadata:this.returnMetadata,size:this.size,start:this.start}))}};(0,i.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],c.prototype,"attachmentTypes",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{read:{source:"attachmentsDefinitionExpression"},write:{target:"attachmentsDefinitionExpression"}}})],c.prototype,"attachmentsWhere",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],c.prototype,"cacheHint",void 0),(0,i.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],c.prototype,"keywords",void 0),(0,i.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],c.prototype,"globalIds",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"name",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{read:{source:"resultRecordCount"}}})],c.prototype,"num",void 0),(0,i.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],c.prototype,"objectIds",void 0),(0,i.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],c.prototype,"orderByFields",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],c.prototype,"returnMetadata",void 0),(0,i.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],c.prototype,"size",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{read:{source:"resultOffset"}}})],c.prototype,"start",void 0),(0,i.Cg)([(0,u.K)("start"),(0,u.K)("num")],c.prototype,"writeStart",null),(0,i.Cg)([(0,a.MZ)({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],c.prototype,"where",void 0),c=n=(0,i.Cg)([(0,a.$K)("esri.rest.support.AttachmentQuery")],c),c.from=(0,l.dp)(c)},26591(e,t,r){r.r(t),r.d(t,{default:()=>d});var n,i=r(5482),o=r(25482),s=r(4718),a=r(91429),l=r(56507),u=r(16930),c=r(65615),p=r(43937);let d=class extends o.o{static{n=this}constructor(e){super(e),this.cacheHint=void 0,this.dynamicDataSource=void 0,this.gdbVersion=null,this.geometryPrecision=void 0,this.historicMoment=null,this.maxAllowableOffset=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.relationshipId=void 0,this.start=void 0,this.num=void 0,this.returnGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.returnTrueCurves=void 0,this.where=null}_writeHistoricMoment(e,t){t.historicMoment=e&&e.getTime()}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10,this.start>0&&null==this.where&&(t.definitionExpression="1=1")}clone(){return new n((0,s.o8)({cacheHint:this.cacheHint,dynamicDataSource:this.dynamicDataSource,gdbVersion:this.gdbVersion,geometryPrecision:this.geometryPrecision,historicMoment:this.historicMoment&&new Date(this.historicMoment),maxAllowableOffset:this.maxAllowableOffset,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,relationshipId:this.relationshipId,start:this.start,num:this.num,returnGeometry:this.returnGeometry,where:this.where,returnZ:this.returnZ,returnTrueCurves:this.returnTrueCurves,returnM:this.returnM}))}};(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"cacheHint",void 0),(0,i.Cg)([(0,a.MZ)({type:c.A,json:{write:!0}})],d.prototype,"dynamicDataSource",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],d.prototype,"gdbVersion",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"geometryPrecision",void 0),(0,i.Cg)([(0,a.MZ)({type:Date})],d.prototype,"historicMoment",void 0),(0,i.Cg)([(0,p.K)("historicMoment")],d.prototype,"_writeHistoricMoment",null),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"maxAllowableOffset",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],d.prototype,"objectIds",void 0),(0,i.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],d.prototype,"orderByFields",void 0),(0,i.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],d.prototype,"outFields",void 0),(0,i.Cg)([(0,a.MZ)({type:u.A,json:{read:{source:"outSR"},write:{target:"outSR"}}})],d.prototype,"outSpatialReference",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],d.prototype,"relationshipId",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{read:{source:"resultOffset"}}})],d.prototype,"start",void 0),(0,i.Cg)([(0,p.K)("start"),(0,p.K)("num")],d.prototype,"writeStart",null),(0,i.Cg)([(0,a.MZ)({type:Number,json:{read:{source:"resultRecordCount"}}})],d.prototype,"num",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],d.prototype,"returnGeometry",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],d.prototype,"returnM",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],d.prototype,"returnZ",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"returnTrueCurves",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],d.prototype,"where",void 0),d=n=(0,i.Cg)([(0,a.$K)("esri.rest.support.RelationshipQuery")],d),d.from=(0,l.dp)(d)},30291(e,t,r){r.d(t,{tn:()=>u});var n=r(37838),i=r(30524),o=r(41227),s=r(89893),a=r(66159),l=r(68780);function u({displayField:e,editFieldsInfo:t,fields:r,objectIdField:l,title:u},y){if(!r)return null;const m=function(e,t){const r=t?.visibleFieldNames;return function({fields:e,ignoreFieldTypes:t,sortDisabled:r}){const n=e;return t&&(e=e.filter(e=>!t.includes(e.type))),e===n&&(e=e.slice()),!0!==r&&e.sort(p),e}({fields:e.fields??[],ignoreFieldTypes:t?.ignoreFieldTypes||h,sortDisabled:t?.sortDisabled}).map(t=>new o.A({fieldName:t.name,isEditable:(0,i.R$)(t,e),label:t.alias,format:d(t),visible:c(t,{...e,visibleFieldNames:r})}))}({editFieldsInfo:t,fields:r,objectIdField:l},y);if(!m.length)return null;const f=function(e){const t=(0,i.mB)(e),{titleBase:r}=e;return t?`${r}: {${t.trim()}}`:r??""}({titleBase:u,fields:r,displayField:e}),b=[new a.A,new s.A];return new n.A({title:f,content:b,fieldInfos:m})}const c=(e,t)=>t.visibleFieldNames?t.visibleFieldNames.has(e.name):(0,i.Bz)(e,t);function p(e,t){return"oid"===e.type?-1:"oid"===t.type?1:y(e)?-1:y(t)?1:(e.alias||e.name).toLocaleLowerCase().localeCompare((t.alias||t.name).toLocaleLowerCase())}function d(e){switch(e.type){case"small-integer":case"integer":return new l.A({digitSeparator:!0,places:0});case"single":case"double":return new l.A({digitSeparator:!0,places:2});case"string":return(0,i.JL)(e.name)?new l.A({digitSeparator:!0,places:0}):void 0;default:return}}function y(e){if("name"===(e.name&&e.name.toLowerCase()))return!0;const t=e.alias?.toLowerCase();return"name"===t}const h=["geometry","blob","raster","guid","xml"]}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4401,9397],{69052(e,t,n){n.d(t,{hr:()=>r,ie:()=>c,uC:()=>a});var s=n(34727);class r{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,n=!1){return i(this.range,this.min,this.max,e,t,n)}clamp(e,t=0){return(0,s.qE)(e-t,this.min,this.max)+t}monotonic(e,t,n){return e<t?t:t+o(this.range,e-t,n)}minimalMonotonic(e,t,n){return i(this.range,e,e+this.range,t,n)}center(e,t,n){return t=this.monotonic(e,t,n),this.normalize((e+t)/2,n)}diff(e,t,n){return this.monotonic(e,t,n)-e}shortestSignedDiff(e,t){e=this.normalize(e);const n=(t=this.normalize(t))-e,s=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(n)<Math.abs(s)?n:s}contains(e,t,n){return t=this.minimalMonotonic(e,t),(n=this.minimalMonotonic(e,n))>e&&n<t}}function i(e,t,n,s,r=0,i=!1){return(s-=r)<t?s+=o(e,t-s):s>n&&(s-=o(e,s-n)),i&&s===n&&(s=t),s+r}function o(e,t,n=0){return Math.ceil((t-n)/e)*e+n}const a=new r(0,2*Math.PI),c=(new r(-Math.PI,Math.PI),new r(0,360))},56512(e,t,n){function s(e){let t,n,s=[],r=!1;return function(...i){return r&&t===this&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(e[n]!==t[n])return!1;return!0}(i,s)||(n=e.apply(this,i),t=this,s=i,r=!0),n}}n.d(t,{B:()=>s})},69397(e,t,n){n.d(t,{Qf:()=>c,Qh:()=>o,RS:()=>r,Ul:()=>p,i5:()=>f,lM:()=>i,qK:()=>l});var s=n(34275);const r=16;function i(e){if(!e)return 0;let t=l;for(const n in e)e.hasOwnProperty(n)&&(t+=a(e[n],!1));return t}function o(e){if(!e)return 0;if("number"==typeof e[0])return c(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return u(e,8);let n=h;for(let s=0;s<t;s++)n+=a(e[s]);return n}(e);let t=l;for(const n in e)e.hasOwnProperty(n)&&(t+=a(e[n]));return t}function a(e,t=!0){switch(typeof e){case"object":return t?o(e):l;case"string":return function(e){return 32+e.length}(e);case"number":return r;case"boolean":return 4;default:return 8}}function c(...e){return e.reduce((e,t)=>e+(t?(0,s.iu)(t)?t.byteLength+f:Array.isArray(t)?u(t,r):0:0),0)}function u(e,t){return h+e.length*t}const l=32,h=16,f=145,p=64},31411(e,t,n){n.d(t,{GS:()=>x,gh:()=>M});var s=n(49186),r=n(56512),i=n(65864),o=n(4305),a=n(50954),c=n(52006),u=n(49663),l=n(46068),h=n(15507);const f=1e-6,p=[0,0];function d(e){return{maxSegmentLength:e.maxSegmentLength??0,maxDeviation:e.maxDeviation??0,maxSegmentsPerCurve:e.maxSegmentsPerCurve??12e3,minSegmentsPerCurve:Math.max(e.minSegmentsPerCurve??1,1)}}class g{constructor(e,t){this.curveStart=e,this.curveEnd=t,this.tStart=0,this.tEnd=0,this.tEndStack=[],this.arcEndStack=[]}get stackSize(){return this.tEndStack.length}initialize(e,t){this.tStart=0,this.arcStart=e,this.tEndStack.push(1),this.arcEndStack.push(t)}splitAt(e){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(e),this.arcEndStack.push(this.interpolate(e))}splitInHalf(){return this.splitAt((this.tStart+this.tEnd)/2)}pop(){this.tEnd=this.tEndStack.pop(),this.arcEnd=this.arcEndStack.pop()}next(){this.tStart=this.tEnd,this.arcStart=this.arcEnd}densify(e,{maxDeviation:t,maxSegmentLength:n,maxSegmentsPerCurve:s,minSegmentsPerCurve:r}){const i=n*n,o=t*t,a=1/s,c=this.interpolate(0),u=this.interpolate(1);(0,h.kb)(this.curveStart,c)>f&&e.push(c),this.initialize(c,u);const l=1/r;for(let e=r-1;e>0;e--){const t=e*l;this.pop(),this.splitAt(t)}for(;this.stackSize>0;)this.pop(),this.tStart===this.tEnd||this.tEnd-this.tStart<a||(0===i||!isFinite(i)||(0,h.kb)(this.arcStart,this.arcEnd)<i)&&(0===o||!isFinite(o)||this.getDeviation2()<o)?(e.push(this.arcEnd),this.next()):this.splitInHalf();return(0,h.kb)(this.curveEnd,u)>f&&e.push([...this.curveEnd]),e}}class m extends g{constructor(e,t){const[n,s,r]=t.b;super(e,n),this._controlPointsStack=[],this._curveControlPoints=[s,r],this._arcControlPoints=[s,r],this._controlPointsStack.push(this._arcControlPoints)}splitAt(e){const{arcStart:t,arcEnd:n,tStart:s,tEnd:r}=this,[i,o]=this._arcControlPoints,a=(e-s)/(r-s),c=(0,h.RS)([],t,i,a),u=(0,h.RS)(p,i,o,a),l=(0,h.RS)([],o,n,a),f=(0,h.RS)([],c,u,a),d=(0,h.RS)([],u,l,a),g=(0,h.RS)([],f,d,a);this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this._controlPointsStack.push([d,l]),this.tEndStack.push(e),this.arcEndStack.push(g),this._arcControlPoints[0]=c,this._arcControlPoints[1]=f,this._controlPointsStack.push(this._arcControlPoints)}pop(){super.pop(),this._arcControlPoints=this._controlPointsStack.pop()}interpolate(e){const{curveStart:t,curveEnd:n}=this,[s,r]=this._curveControlPoints;return(0,o.B4)(t,s,r,n,e)}getDeviation2(){const{arcStart:e,arcEnd:t}=this,[n,s]=this._arcControlPoints;return Math.max((0,h.yE)(n,e,t),(0,h.yE)(s,e,t))}}class y extends g{constructor(e,t){const[n]=t.a;super(e,n),this._derivedEllipse=(0,l.SW)(e,t)}pop(){super.pop(),this._tMid=(this.tStart+this.tEnd)/2,this._arcMid=this.interpolate(this._tMid)}splitInHalf(){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(this._tMid),this.arcEndStack.push(this._arcMid)}interpolate(e){return(0,l.Uk)(this._derivedEllipse,e)}getDeviation2(){return(0,h.yE)(this._arcMid,this.arcStart,this.arcEnd)}}function _(e,t,n,{cx:s,cy:r,radius:i,thetaStart:o,thetaEnd:a,isInvalid:c},{maxDeviation:u,maxSegmentLength:l,maxSegmentsPerCurve:p,minSegmentsPerCurve:d}){if(c)return e.push([...n]),e;const g=2*i,m=[s+i*Math.cos(o),r+i*Math.sin(o)],y=[s+i*Math.cos(a),r+i*Math.sin(a)];(0,h.kb)(t,m)>f&&e.push(m);const _=Math.abs(a-o),S=l>0&&l<g?2*Math.asin(l/g):_,w=u>0&&u<=i?2*Math.acos(1-u/i):_,b=Math.min(S,w),v=Math.min(p,Math.max(d,Math.ceil(Math.abs(_/b)))),k=1/v;for(let t=1;t<v;t++){const n=t*k,c=o*(1-n)+a*n;e.push([s+i*Math.cos(c),r+i*Math.sin(c)])}return e.push(y),(0,h.kb)(n,y)>f&&e.push([...n]),e}function S(e,t,n,s){return new m(t,n).densify(e,s)}function w(e,t,n,s){const r=(0,a.pM)(t,n),[i]=n.c;return _(e,t,i,r,s)}function b(e,t,n,s){const r=(0,u.io)(t,n),[i]=n.a;return _(e,t,i,r,s)}function v(e,t,n,s){const[r,i,o,a,c,u,l]=n.a;return 0===u||0===l?(e.push([...r]),e):new y(t,n).densify(e,s)}function k(e,t,n,s){return(0,c.Xq)(n)?(e.push([...n]),e):(0,c.n1)(n)?S(e,t,n,s):(0,c.aO)(n)?w(e,t,n,s):(0,c.DA)(n)?b(e,t,n,s):v(e,t,n,s)}function x(e,t={}){if(!(0,c.Ed)(e))return e;const n=d(t),s=(0,c.FD)(e),r=[];for(const e of s){const t=[];for(let s=0;s<e.length-1;s++){const r=s+1,i=[...(0,c.yP)(e[s])];0===s&&t.push(i),k(t,i,e[r],n)}r.push(t)}return"curvePaths"in e?{...void 0!==e.hasZ?{hasZ:e.hasZ}:{},...void 0!==e.hasM?{hasM:e.hasM}:{},paths:r,spatialReference:e.spatialReference}:{...void 0!==e.hasZ?{hasZ:e.hasZ}:{},...void 0!==e.hasM?{hasM:e.hasM}:{},rings:r,spatialReference:e.spatialReference}}const A=(0,r.B)(e=>({maxDeviation:0,maxSegmentLength:100*e,maxSegmentsPerCurve:12e3,minSegmentsPerCurve:1}));async function M(e,t,r){const o=new Set(t);return await async function(e,t,r){let i=null;for(const o of e)if(o&&(0,c.Ed)(o)&&null==o.spatialReference.xyTolerance&&(0,c.V8)(o,t)){const e=o.spatialReference;if(!e)throw new s.A("geometry:missing-spatial-reference","Geometry contains an unsupported curve type, but it cannot be densified because it has no spatial reference.");const t=R(e);if(r.has(t))o.spatialReference=r.get(t);else{i||(i=await Promise.all([n.e(6042),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(6312)]).then(n.bind(n,78125)));const a=i.fromSpatialReference(e),c=a?.getTolerance();if(null==c)throw new s.A("geometry:missing-tolerance","Geometry contains an unsupported curve type, but it cannot be densified because the tolerance of its spatial reference is unknown. Set the `xyTolerance` property of the spatial reference.");const u=o.spatialReference.clone();u.read({xyTolerance:c}),o.spatialReference=u,r.set(t,u)}}}(e,o,r),e.map(e=>{if(!e||!(0,c.Ed)(e))return e;const n=e.spatialReference.xyTolerance;if(null==n)return e;const s=A(n);return(0,i.rS)(function(e,t,n){if(!(0,c.Ed)(e))return e;const s=new Set(t),r=d(n),i=(0,c.FD)(e),o=[];let a=!1;for(const e of i){const t=[];for(let n=0;n<e.length-1;n++){const i=n+1,o=[...(0,c.yP)(e[n])];0===n&&t.push(o);const u=e[i];(0,c.Xq)(u)?t.push([...u]):(0,c.n1)(u)&&!s.has("cubic-bezier")?S(t,o,u,r):(0,c.aO)(u)&&!s.has("circular-arc")?w(t,o,u,r):(0,c.DA)(u)&&!s.has("elliptic-arc")?b(t,o,u,r):(0,c.wY)(u)&&!s.has("elliptic-arc")?v(t,o,u,r):(t.push((0,c.tk)(u)),a=!0)}o.push(t)}return"curvePaths"in e?{...void 0!==e.hasZ?{hasZ:e.hasZ}:{},...void 0!==e.hasM?{hasM:e.hasM}:{},spatialReference:e.spatialReference,...a?{curvePaths:o}:{paths:o}}:{hasZ:e.hasZ,hasM:e.hasM,spatialReference:e.spatialReference,...a?{curveRings:o}:{rings:o}}}(e,t,s))})}function R(e){if(null!=e.wkid)return`${e.wkid}`;if(null!=e.wkt)return e.wkt;const t="toJSON"in e&&"function"==typeof e.toJSON?e.toJSON():e;return JSON.stringify(t)}},17136(e,t,n){n.d(t,{Y_:()=>E,O7:()=>C,el:()=>R});var s=n(92602),r=n(69052),i=n(49186),o=n(53966),a=n(39829),c=n(82799),u=n(16930),l=n(80754),h=n(21325),f=n(28735),p=n(52006),d=n(31411),g=n(11254),m=n(60408),y=n(65864),_=n(2272),S=n(84952),w=n(92300);const b=()=>o.A.getLogger("esri.geometry.support.normalizeUtils");function v(e){return"polygon"===e[0].type}function k(e){return"polyline"===e[0].type}function x(e,t,n){const s=1e6;if(t){const t=(0,p.Ed)(e)?(0,d.GS)(e,{maxSegmentLength:s}):function(e,t){if(!(e instanceof c.A||e instanceof a.A)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw b().error(e),new i.A("internal:geometry",e)}const n=(0,l.r8)(e),s=[];for(const e of n){const n=[];s.push(n),n.push([e[0][0],e[0][1]]);for(let s=0;s<e.length-1;s++){const r=e[s][0],i=e[s][1],o=e[s+1][0],a=e[s+1][1],c=Math.sqrt((o-r)*(o-r)+(a-i)*(a-i)),u=(a-i)/c,l=(o-r)/c,h=c/t;if(h>1){for(let e=1;e<=h-1;e++){const s=e*t,o=l*s+r,a=u*s+i;n.push([o,a])}const e=(c+Math.floor(h-1)*t)/2,s=l*e+r,o=u*e+i;n.push([s,o])}n.push([o,a])}}return function(e){return"polygon"===e.type}(e)?new a.A({rings:s,spatialReference:e.spatialReference}):new c.A({paths:s,spatialReference:e.spatialReference})}(e,s);e=(0,f.ci)(t,!0)}return n&&(e=(0,l.kS)(e,n)),e}function A(e,t,n){if(Array.isArray(e)){const s=e[0];if(s>t){const n=(0,l.kd)(s,t);e[0]=s+n*(-2*t)}else if(s<n){const t=(0,l.kd)(s,n);e[0]=s+t*(-2*n)}}else{const s=e.x;if(s>t){const n=(0,l.kd)(s,t);e=e.clone().offset(n*(-2*t),0)}else if(s<n){const t=(0,l.kd)(s,n);e=e.clone().offset(t*(-2*n),0)}}return e}function M(e,t){let n=-1;for(let s=0;s<t.cutIndexes.length;s++){const r=t.cutIndexes[s],i=t.geometries[s],o=(0,l.r8)(i);for(let e=0;e<o.length;e++){const t=o[e];t.some(n=>{if(n[0]<180)return!0;{let n=0;for(let e=0;e<t.length;e++){const s=t[e][0];n=s>n?s:n}n=Number(n.toFixed(9));const s=-360*(0,l.kd)(n,180);for(let n=0;n<t.length;n++){const t=i.getPoint(e,n);i.setPoint(e,n,t.clone().offset(s,0))}return!0}})}if(r===n){if(v(e))for(const t of(0,l.r8)(i))e[r]=e[r].addRing(t);else if(k(e))for(const t of(0,l.r8)(i))e[r]=e[r].addPath(t)}else n=r,e[r]=i}return e}async function R(e,t,n){if(!Array.isArray(e))return R([e],t);t&&"string"!=typeof t&&b().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const r="string"==typeof t?t:t?.url??s.A.geometryServiceUrl;let i,o,u,p,d,v,k,C,P=0;const E=[],F=[];for(const t of e)if(null!=t)if(i||(i=t.spatialReference,o=(0,h.Vp)(i),u=i.isWebMercator,v=u?102100:4326,p=l.j7[v].maxX,d=l.j7[v].minX,k=l.j7[v].plus180Line,C=l.j7[v].minus180Line),o)if("mesh"===t.type)F.push(t);else if("point"===t.type)F.push(A(t.clone(),p,d));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map(e=>A(e,p,d)),F.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,o);F.push(e.rings?new a.A(e):e)}else if(t.extent){const e=t.extent,n=(0,l.kd)(e.xmin,d)*(2*p);let s=0===n?t.clone():(0,l.kS)(t.clone(),n);e.offset(n,0);let{xmin:r,xmax:i}=e;r=Number(r.toFixed(9)),i=Number(i.toFixed(9)),e.intersects(k)&&i!==p?(P=i>P?i:P,s=x(s,u),E.push(s),F.push("cut")):e.intersects(C)&&r!==d?(P=i*(2*p)>P?i*(2*p):P,s=x(s,u,360),E.push(s),F.push("cut")):F.push(s)}else F.push(t.clone());else F.push(t);else F.push(t);let T=(0,l.kd)(P,p),N=-90;const L=T,I=new c.A;for(;T>0;){const e=360*T-180;I.addPath([[e,N],[e,-1*N]]),N*=-1,T--}if(E.length>0&&L>0){const t=M(E,await async function(e,t,n,s){const r=(0,_.Dl)(e),i=t[0].spatialReference,o={...s,responseType:"json",query:{...r.query,f:"json",sr:(0,h.YX)(i),target:JSON.stringify({geometryType:(0,m.$B)(t[0]),geometries:t}),cutter:JSON.stringify(n)}},a=await(0,g.A)(r.path+"/cut",o),{cutIndexes:c,geometries:u=[]}=a.data;return{cutIndexes:c,geometries:u.map(e=>{const t=(0,y.rS)(e);return t.spatialReference=i,t})}}(r,E,I,n)),s=[],i=[];for(let n=0;n<F.length;n++){const r=F[n];if("cut"!==r)i.push(r);else{const r=t.shift(),o=e[n];null!=o&&"polygon"===o.type&&o.rings&&o.rings.length>1&&r.rings.length>=o.rings.length?(s.push(r),i.push("simplify")):i.push(u?(0,f.Gh)(r):r)}}if(!s.length)return i;const o=await async function(e,t,n){const s="string"==typeof e?(0,S.An)(e):e,r=t[0].spatialReference,i=(0,m.$B)(t[0]),o={...n,query:{...s.query,f:"json",sr:(0,h.YX)(r),geometries:JSON.stringify((0,w.X)(t))}},{data:a}=await(0,g.A)(s.path+"/simplify",o);return(0,w.V)(a.geometries,i,r)}(r,s,n),a=[];for(let e=0;e<i.length;e++){const t=i[e];"simplify"!==t?a.push(t):a.push(u?(0,f.Gh)(o.shift()):o.shift())}return a}const q=[];for(let e=0;e<F.length;e++){const t=F[e];if("cut"!==t)q.push(t);else{const e=E.shift();q.push(!0===u?(0,f.Gh)(e):e)}}return q}function C(e,t,n){const s=(0,h.Vp)(n);if(null==s)return e;const[r,i]=s.valid,o=2*i;let a=0,c=0;t>i?a=Math.ceil(Math.abs(t-i)/o):t<r&&(a=-Math.ceil(Math.abs(t-r)/o)),e>i?c=Math.ceil(Math.abs(e-i)/o):e<r&&(c=-Math.ceil(Math.abs(e-r)/o));let u=e+(a-c)*o;const l=u-t;return l>i?u-=o:l<r&&(u+=o),u}function P(e){const t=(0,h.Vp)(e);if(null==t)return null;const[n,s]=t.valid;return new r.hr(n,s)}const E=P(u.A.WGS84);P(u.A.WebMercator)},80754(e,t,n){n.d(t,{j7:()=>a,kS:()=>u,kd:()=>c,r8:()=>l});var s=n(82799),r=n(16930),i=n(60408),o=n(52006);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new s.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:r.A.WebMercator}),minus180Line:new s.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:r.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new s.A({paths:[[[180,-180],[180,180]]],spatialReference:r.A.WGS84}),minus180Line:new s.A({paths:[[[-180,-180],[-180,180]]],spatialReference:r.A.WGS84})}};function c(e,t){return Math.ceil((e-t)/(2*t))}function u(e,t){if((0,o.Ed)(e))for(const n of function(e){return(0,i.Bi)(e)?e.curveRings:e.curvePaths}(e))for(const e of n){if((0,o.aO)(e)){const[n,s]=e.c;n[0]+=t,s[0]+=t;continue}if((0,o.FG)(e)){const[n,s]=e.a;n[0]+=t,s[0]+=t;continue}if((0,o.n1)(e)){const[n,s,r]=e.b;n[0]+=t,s[0]+=t,r[0]+=t;continue}e[0]+=t}for(const n of l(e))for(const e of n)e[0]+=t;return e}function l(e){return(0,i.Bi)(e)?e.rings:e.paths}},62815(e,t,n){n.d(t,{N:()=>a,d:()=>c});var s=n(86211),r=n(73941),i=n(21325),o=n(52006);function a(e,t,n){const s=c(t,n);if(1!==s)switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,s);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e){if(e.curvePaths)for(const n of e.curvePaths)for(const e of n){const n=(0,o.yP)(e);n.length>2&&(n[2]*=t)}if(e.paths)for(const n of e.paths)for(const e of n)e.length>2&&(e[2]*=t)}}(e,s);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e){if(e.curveRings)for(const n of e.curveRings)for(const e of n){const n=(0,o.yP)(e);n.length>2&&(n[2]*=t)}if(e.rings)for(const n of e.rings)for(const e of n)e.length>2&&(e[2]*=t)}}(e,s);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const n of e.points)n.length>2&&(n[2]*=t)}(e,s);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,s);default:return}}function c(e,t){return null==e||null==t||t.vcsWkid||(0,i.aI)(e,t)||(0,r.xP)(e)||(0,r.xP)(t)?1:(0,s.G9)(e)/(0,s.G9)(t)}},31464(e,t,n){n.d(t,{Cv:()=>d,Nk:()=>h,lK:()=>m});var s=n(4576),r=n(91218),i=n(21325),o=n(28735);const a=[0,0];function c(e,t){if(!t)return null;if("x"in t){const n={x:0,y:0};return[n.x,n.y]=e(t.x,t.y,a),null!=t.z&&(n.z=t.z),null!=t.m&&(n.m=t.m),n}if("xmin"in t){const n={xmin:0,ymin:0,xmax:0,ymax:0};return[n.xmin,n.ymin]=e(t.xmin,t.ymin,a),[n.xmax,n.ymax]=e(t.xmax,t.ymax,a),t.hasZ&&(n.zmin=t.zmin,n.zmax=t.zmax,n.hasZ=!0),t.hasM&&(n.mmin=t.mmin,n.mmax=t.mmax,n.hasM=!0),n}return"rings"in t?{rings:u(t.rings,e),hasM:t.hasM,hasZ:t.hasZ}:"paths"in t?{paths:u(t.paths,e),hasM:t.hasM,hasZ:t.hasZ}:"points"in t?{points:l(t.points,e),hasM:t.hasM,hasZ:t.hasZ}:null}function u(e,t){const n=[];for(const s of e)n.push(l(s,t));return n}function l(e,t){const n=[];for(const s of e){const e=t(s[0],s[1],[0,0]);n.push(e),s.length>2&&e.push(s[2]),s.length>3&&e.push(s[3])}return n}async function h(e,t){if(!e||!t)return;const n=Array.isArray(e)?e.map(e=>null!=e.geometry?e.geometry.spatialReference:null).filter(s.Ru):[e];await(0,r.initializeProjection)(n.map(e=>({source:e,dest:t})))}const f=c.bind(null,o.je),p=c.bind(null,o.tD);function d(e,t,n,s){if(!e)return null;if(n||(n=t,t=e.spatialReference),!(0,i.fn)(t)||!(0,i.fn)(n)||(0,i.aI)(t,n))return e;if((0,o.y7)(t,n)){const t=(0,i.K8)(n)?f(e):p(e);return t.spatialReference=n,t}return(0,r.projectMany)([e],t,n,s)[0]}const g=new class{constructor(){this._jobs=[],this._timer=null,this._process=this._process.bind(this)}async push(e,t,n,s){if(!e?.length||!t||!n||(0,i.aI)(t,n))return e;const r={geometries:e,inSpatialReference:t,outSpatialReference:n,options:s,resolve:Promise.withResolvers()};return this._jobs.push(r),this._timer??=setTimeout(this._process,10),r.resolve.promise}_process(){this._timer=null;const e=this._jobs.shift();if(!e)return;const{geometries:t,inSpatialReference:n,outSpatialReference:s,resolve:a,options:c}=e,u=t.filter(e=>null!=e);let l;l=(0,o.y7)(n,s)&&null==c?.extendedParams?(0,i.K8)(s)?u.map(f):u.map(p):(0,r.projectMany)(u,n,s,c);let h=0;const d=t.map(e=>null==e?null:l[h++]);a.resolve(d),this._jobs.length>0&&(this._timer=setTimeout(this._process,10))}};function m(e,t,n,s){return g.push(e,t,n,s)}},60986(e,t,n){n.r(t),n.d(t,{createConnection:()=>C});var s=n(11254),r=n(49186),i=n(31464),o=n(9916),a=n(5482),c=n(65529),u=n(91429);let l=class extends c.nJ{destroy(){this.emit("destroy")}get connectionError(){return this.errorString?new r.A("stream-connection",this.errorString):null}onFeature(e){this.emit("data-received",e)}onMessage(e){this.emit("message-received",e)}};(0,a.Cg)([(0,u.MZ)({readOnly:!0})],l.prototype,"connectionError",null),l=(0,a.Cg)([(0,u.$K)("esri.layers.support.StreamConnection")],l);class h extends l{constructor(e,t){super(),this._config=e,this._outSpatialReference=t,this.connectionStatus="connected",this.errorString=null,this._isPolling=!1,this._lastIngestedAt=null,this._pollTimer=null,this._pollRecentData=async()=>{if(!this.destroyed&&!this._isPolling){this._isPolling=!0;try{const e=await this._queryChanges(this._lastIngestedAt);if(this.destroyed)return;this._handleResult(e)}catch(e){this.errorString=e instanceof Error?e.message:"Failed to fetch"}finally{this._isPolling=!1}}},this._initialize()}destroy(){super.destroy(),this._pollTimer&&(clearInterval(this._pollTimer),this._pollTimer=null)}sendMessageToSocket(e){throw new r.A("kusto:unsupported","sendMessageToSocket not supported for Kusto connections")}sendMessageToClient(e){throw new r.A("kusto:unsupported","sendMessageToClient not supported for Kusto connections")}updateCustomParameters(e){throw new r.A("kusto:unsupported","updateCustomParameters not supported for Kusto connections")}async _initialize(){await(0,i.Nk)(this._config.sourceSpatialReference,this._outSpatialReference);try{const e=await this._queryInitial();this._handleResult(e),this._pollTimer=setInterval(this._pollRecentData,6e4*this._config.refreshInterval)}catch{throw new r.A("kusto:connection","Failed to query KQL database")}}async _queryInitial(){const{trackIdField:e}=this._config,t=f(await this._executeQuery(`${(0,o.xw)(this._config.table)} | extend IngestedAt = ingestion_time() | summarize arg_max(IngestedAt, *) by ${(0,o.xw)(e)}`));if(!t)throw new r.A("kusto:connection","Unable to find primaryTable");return{ingestedAt:p(t),table:t}}async _queryChanges(e=null){const t=e??"1970-01-01T00:00:00Z",n=f(await this._executeQuery(`${(0,o.xw)(this._config.table)} | extend IngestedAt = ingestion_time() | where IngestedAt > todatetime('${(0,o.iD)(t)}') | order by IngestedAt asc`));if(!n)throw new r.A("kusto:connection","Unable to find primaryTable");return{ingestedAt:p(n),table:n}}async _executeQuery(e){const t=this._config.database,n=t.properties.queryServiceUri,{data:r}=await(0,s.A)(`${n}/v2/rest/query`,{responseType:"json",method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({db:t.displayName,csl:e})});return r}_handleResult(e){this._lastIngestedAt=e.ingestedAt;const t=this._createFeatures(e.table);if(null!=t){this.onMessage(t);for(const e of t)this.onFeature(e)}}_createFeatures(e){if(null==e||0===e.Rows.length)return null;const{xField:t,yField:n}=this._config.geometryEncoding,s=e.Columns.findIndex(e=>e.ColumnName===t),r=e.Columns.findIndex(e=>e.ColumnName===n);return e.Rows.map(t=>this._createFeature(e.Columns,s,r,t))}_createFeature(e,t,n,s){const{xField:r,yField:o}=this._config.geometryEncoding,a={};for(let t=0;t<e.length;t++){const n=e[t],i=s[t]??null;n.ColumnName!==o&&n.ColumnName!==r&&(a[n.ColumnName]=i)}let c=null;const u=s[t],l=s[n];return null!=l&&null!=u&&(c=(0,i.Cv)({x:u,y:l},this._config.sourceSpatialReference,this._outSpatialReference)),{attributes:a,geometry:c}}}function f(e){return e.find(e=>"DataTable"===e.FrameType&&"PrimaryResult"===e.TableKind)??null}function p(e){const t=e.Columns.findIndex(e=>"IngestedAt"===e.ColumnName);if(t<0)return null;let n=null;for(const s of e.Rows){const e=s[t];"string"==typeof e&&(null==n||e>n)&&(n=e)}return n}var d=n(53966),g=n(84952),m=n(16930),y=n(65864),_=n(17676),S=n(62815);function w(e,t){if(null==e&&null==t)return null;const n={};return null!=t&&(n.geometry=t),null!=e&&(n.where=e),n}let b=class extends l{constructor(e,t){super({}),this._outSpatialReference=t,this._outstandingMessages=[],this.errorString=null;const{geometryType:n,sourceSpatialReference:s}=e;this._config=e,this._featureZScaler=(0,S.N)(n,s,this._outSpatialReference),this._open()}normalizeCtorArgs(){return{}}async _open(){await this._tryCreateWebSocket(),this.destroyed||await this._handshake()}destroy(){super.destroy(),null!=this._websocket&&(this._websocket.onopen=null,this._websocket.onclose=null,this._websocket.onerror=null,this._websocket.onmessage=null,this._websocket.close()),this._websocket=null}get connectionStatus(){if(null==this._websocket)return"disconnected";switch(this._websocket.readyState){case 0:case 1:return"connected";case 2:case 3:return"disconnected"}}sendMessageToSocket(e){null!=this._websocket?this._websocket.send(JSON.stringify(e)):this._outstandingMessages.push(e)}sendMessageToClient(e){this._onMessage(e)}updateCustomParameters(e){this._config.customParameters=e,null!=this._websocket&&this._websocket.close()}async _tryCreateWebSocket(e=this._config.url.path,t=1e3,n=0){try{if(this.destroyed)return;const t=(0,g.a6)(e,this._config.customParameters??{});this._websocket=await this._createWebSocket(t),this.notifyChange("connectionStatus")}catch(s){const i=t/1e3;return this._config.maxReconnectionAttempts&&n>=this._config.maxReconnectionAttempts?(d.A.getLogger(this).error(new r.A("websocket-connection","Exceeded maxReconnectionAttempts attempts. No further attempts will be made")),void this.destroy()):(d.A.getLogger(this).error(new r.A("websocket-connection",`Failed to connect. Attempting to reconnect in ${i}s`,s)),await(0,_.Pl)(t),this._tryCreateWebSocket(e,Math.min(1.5*t,1e3*this._config.maxReconnectionInterval),n+1))}}_setWebSocketJSONParseHandler(e){e.onmessage=e=>{try{const t=JSON.parse(e.data);this._onMessage(t)}catch(e){return void d.A.getLogger(this).error(new r.A("websocket-connection","Failed to parse message, invalid JSON",{error:e}))}}}_createWebSocket(e){return new Promise((t,n)=>{const s=new WebSocket(e);s.onopen=()=>{if(s.onopen=null,this.destroyed)return s.onclose=null,void s.close();s.onclose=e=>this._onClose(e),s.onerror=e=>this._onError(e),this._setWebSocketJSONParseHandler(s),t(s)},s.onclose=e=>{s.onopen=s.onclose=null,n(e)}})}async _handshake(e=1e4){const t=this._websocket;if(null==t)return;const n=Promise.withResolvers(),s=t.onmessage,i=w(this._config.definitionExpression,this._config.geometryDefinition),{outFields:o}=this._config,a=setTimeout(()=>n.reject(),e),c=()=>{clearTimeout(a),n.reject()};return t.onmessage=e=>{let u=null;try{u=JSON.parse(e.data)}catch(e){}u&&"object"==typeof u||(d.A.getLogger(this).error(new r.A("websocket-connection","Protocol violation. Handshake failed - malformed message",e.data)),c(),this.destroy()),u.spatialReference?.wkid!==this._outSpatialReference?.wkid&&(d.A.getLogger(this).error(new r.A("websocket-connection",`Protocol violation. Handshake failed - expected wkid of ${this._outSpatialReference.wkid}`,e.data)),c(),this.destroy()),"json"!==u.format&&(d.A.getLogger(this).error(new r.A("websocket-connection","Protocol violation. Handshake failed - format is not set",e.data)),c(),this.destroy()),i&&u.filter!==i&&d.A.getLogger(this).error(new r.A("websocket-connection","Tried to set filter, but server doesn't support it")),o&&u.outFields!==o&&d.A.getLogger(this).error(new r.A("websocket-connection","Tried to set outFields, but server doesn't support it")),t.onmessage=s;for(const e of this._outstandingMessages)t.send(JSON.stringify(e));this._outstandingMessages=[],clearTimeout(a),n.resolve()},t.send(JSON.stringify({filter:i,outFields:o,format:"json",spatialReference:{wkid:this._outSpatialReference.wkid}})),n.promise}_onMessage(e){if(this.onMessage(e),"type"in e)switch(e.type){case"features":case"featureResult":for(const t of e.features)null!=this._featureZScaler&&this._featureZScaler(t.geometry),this.onFeature(t)}}_onError(e){const t="Encountered an error over WebSocket connection";this._set("errorString",t),d.A.getLogger(this).error("websocket-connection",t)}_onClose(e){this._websocket=null,this.notifyChange("connectionStatus"),1e3!==e.code&&d.A.getLogger(this).error("websocket-connection",`WebSocket closed unexpectedly with error code ${e.code}`),this.destroyed||this._open()}};(0,a.Cg)([(0,u.MZ)()],b.prototype,"connectionStatus",null),(0,a.Cg)([(0,u.MZ)()],b.prototype,"errorString",void 0),b=(0,a.Cg)([(0,u.$K)("esri.layers.graphics.sources.connections.WebSocketConnection")],b);var v=n(80893),k=n(61956);const x={maxQueryDepth:5,maxRecordCountFactor:3};let A=class extends b{constructor(e,t){super({...x,...e},t),this._buddyServicesQuery=null,this._relatedFeatures=null}async _open(){const e=await this._fetchServiceDefinition(this._config.url);e.timeInfo.trackIdField||d.A.getLogger(this).warn("GeoEvent service was configured without a TrackIdField. This may result in certain functionality being disabled. The purgeOptions.maxObservations property will have no effect.");const t=this._fetchWebSocketUrl(e.streamUrls,this._outSpatialReference);this._buddyServicesQuery||(this._buddyServicesQuery=this._queryBuddyServices()),await this._buddyServicesQuery,await this._tryCreateWebSocket(t);const n=w(this._config.definitionExpression,this._config.geometryDefinition),{outFields:s}=this._config;this.destroyed||this._setFilter(n,s)}_onMessage(e){if("attributes"in e){let t;try{t=this._enrich(e),null!=this._featureZScaler&&this._featureZScaler(t.geometry)}catch(e){return void d.A.getLogger(this).error(new r.A("geoevent-connection","Failed to parse message",e))}this.onFeature(t)}else this.onMessage(e)}async _fetchServiceDefinition(e){const t={f:"json",...this._config.customParameters},n=(0,s.A)(e.path,{query:t,responseType:"json"}),r=(await n).data;return this._serviceDefinition=r,r}_fetchWebSocketUrl(e,t){const n=e[0],{urls:s,token:r}=n,i=this._inferWebSocketBaseUrl(s);return(0,g.a6)(`${i}/subscribe`,{outSR:""+t.wkid,token:r})}_inferWebSocketBaseUrl(e){if(1===e.length)return e[0];for(const t of e)if(t.includes("wss"))return t;return d.A.getLogger(this).error(new r.A("geoevent-connection","Unable to infer WebSocket url",e)),null}async _setFilter(e,t){const n=this._websocket;if(null==n||null==e&&null==t)return;const s=JSON.stringify({filter:this._serializeFilter(e,t)});let i=!1;const o=Promise.withResolvers();return n.onmessage=e=>{const t=JSON.parse(e.data);t.filter&&(t.error&&(d.A.getLogger(this).error(new r.A("geoevent-connection","Failed to set service filter",t.error)),this._set("errorString",`Could not set service filter - ${t.error}`),o.reject(t.error)),this._setWebSocketJSONParseHandler(n),i=!0,o.resolve())},n.send(s),setTimeout(()=>{i||(this.destroyed||this._websocket!==n||d.A.getLogger(this).error(new r.A("geoevent-connection","Server timed out when setting filter")),o.reject())},1e4),o.promise}_serializeFilter(e,t){const n={};if(null==e&&null==t)return n;if(e?.geometry)try{const t=(0,y.rS)(e.geometry);if("extent"!==t.type)throw new r.A("geoevent-connection",`Expected extent but found type ${t.type}`);n.geometry=JSON.stringify(t.shiftCentralMeridian())}catch(e){d.A.getLogger(this).error(new r.A("geoevent-connection","Encountered an error when setting connection geometryDefinition",e))}return e?.where&&"1 = 1"!==e.where&&"1=1"!==e.where&&(n.where=e.where),null!=t&&(n.outFields=t.join(",")),n}_enrich(e){if(!this._relatedFeatures)return e;const t=this._serviceDefinition.relatedFeatures.joinField,n=e.attributes[t],s=this._relatedFeatures.get(n);if(!s)return d.A.getLogger(this).warn("geoevent-connection","Feature join failed. Is the join field configured correctly?",e),e;const{attributes:i,geometry:o}=s;for(const t in i)e.attributes[t]=i[t];return o&&(e.geometry=o),e.geometry||e.centroid||d.A.getLogger(this).error(new r.A("geoevent-connection","Found malformed feature - no geometry found",e)),e}async _queryBuddyServices(){try{const{relatedFeatures:e,keepLatestArchive:t}=this._serviceDefinition,n=this._queryRelatedFeatures(e),s=this._queryArchive(t);await n;const r=await s;if(!r)return;for(const e of r.features)this.onFeature(this._enrich(e))}catch(e){d.A.getLogger(this).error(new r.A("geoevent-connection","Encountered an error when querying buddy services",{error:e}))}}async _queryRelatedFeatures(e){if(!e)return;const t=await this._queryBuddy(e.featuresUrl);this._addRelatedFeatures(t)}async _queryArchive(e){if(e)return this._queryBuddy(e.featuresUrl)}async _queryBuddy(e){const t=new((await Promise.all([n.e(7632),n.e(8278),n.e(7865),n.e(6554),n.e(2869),n.e(3910),n.e(9953),n.e(1733),n.e(1214),n.e(8399),n.e(1017),n.e(4674),n.e(993),n.e(8589),n.e(7609),n.e(812),n.e(4460)]).then(n.bind(n,18589))).default)({url:e}),{capabilities:s}=await t.load(),r=s.query.supportsMaxRecordCountFactor,i=s.query.supportsPagination,o=s.query.supportsCentroid,a=this._config.maxRecordCountFactor,c=t.capabilities.query.maxRecordCount,u=r?c*a:c,l=new k.A;if(l.outFields=this._config.outFields??["*"],l.where=this._config.definitionExpression??"1=1",l.returnGeometry=!0,l.returnExceededLimitFeatures=!0,l.outSpatialReference=m.A.fromJSON(this._outSpatialReference),o&&(l.returnCentroid=!0),r&&(l.maxRecordCountFactor=a),i)return l.num=u,t.destroy(),this._queryPages(e,l);const h=await(0,v.eW)(e,l,this._config.sourceSpatialReference);return t.destroy(),h}async _queryPages(e,t,n=[],s=0){t.start=null!=t.num?s*t.num:null;const r=await(0,v.eW)(e,t,this._config.sourceSpatialReference);return r.exceededTransferLimit&&s<(this._config.maxQueryDepth??0)?(r.features.forEach(e=>n.push(e)),this._queryPages(e,t,n,s+1)):(n.forEach(e=>r.features.push(e)),r)}_addRelatedFeatures(e){const t=new Map,n=e.features,s=this._serviceDefinition.relatedFeatures.joinField;for(const e of n){const n=e.attributes[s];t.set(n,e)}this._relatedFeatures=t}};A=(0,a.Cg)([(0,u.$K)("esri.layers.graphics.sources.connections.GeoEventConnection")],A);var M=n(64108);let R=class extends l{constructor(e,t){super({}),this.connectionStatus="connected",this.errorString=null;const{geometryType:n,sourceSpatialReference:s}=e;this._featureZScaler=(0,S.N)(n,s,t)}normalizeCtorArgs(){return{}}updateCustomParameters(e){}sendMessageToSocket(e){}sendMessageToClient(e){if("type"in e)switch(e.type){case"features":case"featureResult":for(const t of e.features)null!=this._featureZScaler&&this._featureZScaler(t.geometry),this.onFeature(t)}this.onMessage(e)}};function C(e,t){switch(e.type){case"client":return new R(e,t);case"custom":return new b(e,t);case"geoevent":return new A(e,t);case"kusto":return new h(e,t)}}(0,a.Cg)([(0,u.MZ)()],R.prototype,"connectionStatus",void 0),(0,a.Cg)([(0,u.MZ)()],R.prototype,"errorString",void 0),R=(0,a.Cg)([(0,M.$)("esri.layers.support.ClientSideConnection")],R)},92300(e,t,n){n.d(t,{V:()=>o,X:()=>i});var s=n(60408),r=n(65864);function i(e){return{geometryType:(0,s.$B)(e[0]),geometries:e.map(e=>e.toJSON())}}function o(e,t,n){const s=(0,r.xD)(t);return e.map(e=>{const t=s.fromJSON(e);return t.spatialReference=n,t})}},58501(e,t,n){n.d(t,{q:()=>r});var s=n(62815);function r(e,t,n){if(!n?.features||!n.hasZ)return;const r=(0,s.N)(n.geometryType,t,e.outSpatialReference);if(r)for(const e of n.features)r(e.geometry)}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4401,9397],{69052(e,t,n){n.d(t,{hr:()=>r,ie:()=>c,uC:()=>a});var s=n(34727);class r{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,n=!1){return i(this.range,this.min,this.max,e,t,n)}clamp(e,t=0){return(0,s.qE)(e-t,this.min,this.max)+t}monotonic(e,t,n){return e<t?t:t+o(this.range,e-t,n)}minimalMonotonic(e,t,n){return i(this.range,e,e+this.range,t,n)}center(e,t,n){return t=this.monotonic(e,t,n),this.normalize((e+t)/2,n)}diff(e,t,n){return this.monotonic(e,t,n)-e}shortestSignedDiff(e,t){e=this.normalize(e);const n=(t=this.normalize(t))-e,s=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(n)<Math.abs(s)?n:s}contains(e,t,n){return t=this.minimalMonotonic(e,t),(n=this.minimalMonotonic(e,n))>e&&n<t}}function i(e,t,n,s,r=0,i=!1){return(s-=r)<t?s+=o(e,t-s):s>n&&(s-=o(e,s-n)),i&&s===n&&(s=t),s+r}function o(e,t,n=0){return Math.ceil((t-n)/e)*e+n}const a=new r(0,2*Math.PI),c=(new r(-Math.PI,Math.PI),new r(0,360))},56512(e,t,n){function s(e){let t,n,s=[],r=!1;return function(...i){return r&&t===this&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(e[n]!==t[n])return!1;return!0}(i,s)||(n=e.apply(this,i),t=this,s=i,r=!0),n}}n.d(t,{B:()=>s})},69397(e,t,n){n.d(t,{Qf:()=>c,Qh:()=>o,RS:()=>r,Ul:()=>p,i5:()=>f,lM:()=>i,qK:()=>l});var s=n(34275);const r=16;function i(e){if(!e)return 0;let t=l;for(const n in e)e.hasOwnProperty(n)&&(t+=a(e[n],!1));return t}function o(e){if(!e)return 0;if("number"==typeof e[0])return c(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return u(e,8);let n=h;for(let s=0;s<t;s++)n+=a(e[s]);return n}(e);let t=l;for(const n in e)e.hasOwnProperty(n)&&(t+=a(e[n]));return t}function a(e,t=!0){switch(typeof e){case"object":return t?o(e):l;case"string":return function(e){return 32+e.length}(e);case"number":return r;case"boolean":return 4;default:return 8}}function c(...e){return e.reduce((e,t)=>e+(t?(0,s.iu)(t)?t.byteLength+f:Array.isArray(t)?u(t,r):0:0),0)}function u(e,t){return h+e.length*t}const l=32,h=16,f=145,p=64},31411(e,t,n){n.d(t,{GS:()=>x,gh:()=>M});var s=n(49186),r=n(56512),i=n(65864),o=n(4305),a=n(50954),c=n(52006),u=n(49663),l=n(46068),h=n(15507);const f=1e-6,p=[0,0];function d(e){return{maxSegmentLength:e.maxSegmentLength??0,maxDeviation:e.maxDeviation??0,maxSegmentsPerCurve:e.maxSegmentsPerCurve??12e3,minSegmentsPerCurve:Math.max(e.minSegmentsPerCurve??1,1)}}class g{constructor(e,t){this.curveStart=e,this.curveEnd=t,this.tStart=0,this.tEnd=0,this.tEndStack=[],this.arcEndStack=[]}get stackSize(){return this.tEndStack.length}initialize(e,t){this.tStart=0,this.arcStart=e,this.tEndStack.push(1),this.arcEndStack.push(t)}splitAt(e){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(e),this.arcEndStack.push(this.interpolate(e))}splitInHalf(){return this.splitAt((this.tStart+this.tEnd)/2)}pop(){this.tEnd=this.tEndStack.pop(),this.arcEnd=this.arcEndStack.pop()}next(){this.tStart=this.tEnd,this.arcStart=this.arcEnd}densify(e,{maxDeviation:t,maxSegmentLength:n,maxSegmentsPerCurve:s,minSegmentsPerCurve:r}){const i=n*n,o=t*t,a=1/s,c=this.interpolate(0),u=this.interpolate(1);(0,h.kb)(this.curveStart,c)>f&&e.push(c),this.initialize(c,u);const l=1/r;for(let e=r-1;e>0;e--){const t=e*l;this.pop(),this.splitAt(t)}for(;this.stackSize>0;)this.pop(),this.tStart===this.tEnd||this.tEnd-this.tStart<a||(0===i||!isFinite(i)||(0,h.kb)(this.arcStart,this.arcEnd)<i)&&(0===o||!isFinite(o)||this.getDeviation2()<o)?(e.push(this.arcEnd),this.next()):this.splitInHalf();return(0,h.kb)(this.curveEnd,u)>f&&e.push([...this.curveEnd]),e}}class m extends g{constructor(e,t){const[n,s,r]=t.b;super(e,n),this._controlPointsStack=[],this._curveControlPoints=[s,r],this._arcControlPoints=[s,r],this._controlPointsStack.push(this._arcControlPoints)}splitAt(e){const{arcStart:t,arcEnd:n,tStart:s,tEnd:r}=this,[i,o]=this._arcControlPoints,a=(e-s)/(r-s),c=(0,h.RS)([],t,i,a),u=(0,h.RS)(p,i,o,a),l=(0,h.RS)([],o,n,a),f=(0,h.RS)([],c,u,a),d=(0,h.RS)([],u,l,a),g=(0,h.RS)([],f,d,a);this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this._controlPointsStack.push([d,l]),this.tEndStack.push(e),this.arcEndStack.push(g),this._arcControlPoints[0]=c,this._arcControlPoints[1]=f,this._controlPointsStack.push(this._arcControlPoints)}pop(){super.pop(),this._arcControlPoints=this._controlPointsStack.pop()}interpolate(e){const{curveStart:t,curveEnd:n}=this,[s,r]=this._curveControlPoints;return(0,o.B4)(t,s,r,n,e)}getDeviation2(){const{arcStart:e,arcEnd:t}=this,[n,s]=this._arcControlPoints;return Math.max((0,h.yE)(n,e,t),(0,h.yE)(s,e,t))}}class y extends g{constructor(e,t){const[n]=t.a;super(e,n),this._derivedEllipse=(0,l.SW)(e,t)}pop(){super.pop(),this._tMid=(this.tStart+this.tEnd)/2,this._arcMid=this.interpolate(this._tMid)}splitInHalf(){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(this._tMid),this.arcEndStack.push(this._arcMid)}interpolate(e){return(0,l.Uk)(this._derivedEllipse,e)}getDeviation2(){return(0,h.yE)(this._arcMid,this.arcStart,this.arcEnd)}}function _(e,t,n,{cx:s,cy:r,radius:i,thetaStart:o,thetaEnd:a,isInvalid:c},{maxDeviation:u,maxSegmentLength:l,maxSegmentsPerCurve:p,minSegmentsPerCurve:d}){if(c)return e.push([...n]),e;const g=2*i,m=[s+i*Math.cos(o),r+i*Math.sin(o)],y=[s+i*Math.cos(a),r+i*Math.sin(a)];(0,h.kb)(t,m)>f&&e.push(m);const _=Math.abs(a-o),S=l>0&&l<g?2*Math.asin(l/g):_,w=u>0&&u<=i?2*Math.acos(1-u/i):_,b=Math.min(S,w),v=Math.min(p,Math.max(d,Math.ceil(Math.abs(_/b)))),k=1/v;for(let t=1;t<v;t++){const n=t*k,c=o*(1-n)+a*n;e.push([s+i*Math.cos(c),r+i*Math.sin(c)])}return e.push(y),(0,h.kb)(n,y)>f&&e.push([...n]),e}function S(e,t,n,s){return new m(t,n).densify(e,s)}function w(e,t,n,s){const r=(0,a.pM)(t,n),[i]=n.c;return _(e,t,i,r,s)}function b(e,t,n,s){const r=(0,u.io)(t,n),[i]=n.a;return _(e,t,i,r,s)}function v(e,t,n,s){const[r,i,o,a,c,u,l]=n.a;return 0===u||0===l?(e.push([...r]),e):new y(t,n).densify(e,s)}function k(e,t,n,s){return(0,c.Xq)(n)?(e.push([...n]),e):(0,c.n1)(n)?S(e,t,n,s):(0,c.aO)(n)?w(e,t,n,s):(0,c.DA)(n)?b(e,t,n,s):v(e,t,n,s)}function x(e,t={}){if(!(0,c.Ed)(e))return e;const n=d(t),s=(0,c.FD)(e),r=[];for(const e of s){const t=[];for(let s=0;s<e.length-1;s++){const r=s+1,i=[...(0,c.yP)(e[s])];0===s&&t.push(i),k(t,i,e[r],n)}r.push(t)}return"curvePaths"in e?{...void 0!==e.hasZ?{hasZ:e.hasZ}:{},...void 0!==e.hasM?{hasM:e.hasM}:{},paths:r,spatialReference:e.spatialReference}:{...void 0!==e.hasZ?{hasZ:e.hasZ}:{},...void 0!==e.hasM?{hasM:e.hasM}:{},rings:r,spatialReference:e.spatialReference}}const A=(0,r.B)(e=>({maxDeviation:0,maxSegmentLength:100*e,maxSegmentsPerCurve:12e3,minSegmentsPerCurve:1}));async function M(e,t,r){const o=new Set(t);return await async function(e,t,r){let i=null;for(const o of e)if(o&&(0,c.Ed)(o)&&null==o.spatialReference.xyTolerance&&(0,c.V8)(o,t)){const e=o.spatialReference;if(!e)throw new s.A("geometry:missing-spatial-reference","Geometry contains an unsupported curve type, but it cannot be densified because it has no spatial reference.");const t=R(e);if(r.has(t))o.spatialReference=r.get(t);else{i||(i=await Promise.all([n.e(6042),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(6312)]).then(n.bind(n,78125)));const a=i.fromSpatialReference(e),c=a?.getTolerance();if(null==c)throw new s.A("geometry:missing-tolerance","Geometry contains an unsupported curve type, but it cannot be densified because the tolerance of its spatial reference is unknown. Set the `xyTolerance` property of the spatial reference.");const u=o.spatialReference.clone();u.read({xyTolerance:c}),o.spatialReference=u,r.set(t,u)}}}(e,o,r),e.map(e=>{if(!e||!(0,c.Ed)(e))return e;const n=e.spatialReference.xyTolerance;if(null==n)return e;const s=A(n);return(0,i.rS)(function(e,t,n){if(!(0,c.Ed)(e))return e;const s=new Set(t),r=d(n),i=(0,c.FD)(e),o=[];let a=!1;for(const e of i){const t=[];for(let n=0;n<e.length-1;n++){const i=n+1,o=[...(0,c.yP)(e[n])];0===n&&t.push(o);const u=e[i];(0,c.Xq)(u)?t.push([...u]):(0,c.n1)(u)&&!s.has("cubic-bezier")?S(t,o,u,r):(0,c.aO)(u)&&!s.has("circular-arc")?w(t,o,u,r):(0,c.DA)(u)&&!s.has("elliptic-arc")?b(t,o,u,r):(0,c.wY)(u)&&!s.has("elliptic-arc")?v(t,o,u,r):(t.push((0,c.tk)(u)),a=!0)}o.push(t)}return"curvePaths"in e?{...void 0!==e.hasZ?{hasZ:e.hasZ}:{},...void 0!==e.hasM?{hasM:e.hasM}:{},spatialReference:e.spatialReference,...a?{curvePaths:o}:{paths:o}}:{hasZ:e.hasZ,hasM:e.hasM,spatialReference:e.spatialReference,...a?{curveRings:o}:{rings:o}}}(e,t,s))})}function R(e){if(null!=e.wkid)return`${e.wkid}`;if(null!=e.wkt)return e.wkt;const t="toJSON"in e&&"function"==typeof e.toJSON?e.toJSON():e;return JSON.stringify(t)}},17136(e,t,n){n.d(t,{Y_:()=>E,O7:()=>C,el:()=>R});var s=n(92602),r=n(69052),i=n(49186),o=n(53966),a=n(39829),c=n(82799),u=n(16930),l=n(80754),h=n(21325),f=n(28735),p=n(52006),d=n(31411),g=n(11254),m=n(60408),y=n(65864),_=n(2272),S=n(84952),w=n(92300);const b=()=>o.A.getLogger("esri.geometry.support.normalizeUtils");function v(e){return"polygon"===e[0].type}function k(e){return"polyline"===e[0].type}function x(e,t,n){const s=1e6;if(t){const t=(0,p.Ed)(e)?(0,d.GS)(e,{maxSegmentLength:s}):function(e,t){if(!(e instanceof c.A||e instanceof a.A)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw b().error(e),new i.A("internal:geometry",e)}const n=(0,l.r8)(e),s=[];for(const e of n){const n=[];s.push(n),n.push([e[0][0],e[0][1]]);for(let s=0;s<e.length-1;s++){const r=e[s][0],i=e[s][1],o=e[s+1][0],a=e[s+1][1],c=Math.sqrt((o-r)*(o-r)+(a-i)*(a-i)),u=(a-i)/c,l=(o-r)/c,h=c/t;if(h>1){for(let e=1;e<=h-1;e++){const s=e*t,o=l*s+r,a=u*s+i;n.push([o,a])}const e=(c+Math.floor(h-1)*t)/2,s=l*e+r,o=u*e+i;n.push([s,o])}n.push([o,a])}}return function(e){return"polygon"===e.type}(e)?new a.A({rings:s,spatialReference:e.spatialReference}):new c.A({paths:s,spatialReference:e.spatialReference})}(e,s);e=(0,f.ci)(t,!0)}return n&&(e=(0,l.kS)(e,n)),e}function A(e,t,n){if(Array.isArray(e)){const s=e[0];if(s>t){const n=(0,l.kd)(s,t);e[0]=s+n*(-2*t)}else if(s<n){const t=(0,l.kd)(s,n);e[0]=s+t*(-2*n)}}else{const s=e.x;if(s>t){const n=(0,l.kd)(s,t);e=e.clone().offset(n*(-2*t),0)}else if(s<n){const t=(0,l.kd)(s,n);e=e.clone().offset(t*(-2*n),0)}}return e}function M(e,t){let n=-1;for(let s=0;s<t.cutIndexes.length;s++){const r=t.cutIndexes[s],i=t.geometries[s],o=(0,l.r8)(i);for(let e=0;e<o.length;e++){const t=o[e];t.some(n=>{if(n[0]<180)return!0;{let n=0;for(let e=0;e<t.length;e++){const s=t[e][0];n=s>n?s:n}n=Number(n.toFixed(9));const s=-360*(0,l.kd)(n,180);for(let n=0;n<t.length;n++){const t=i.getPoint(e,n);i.setPoint(e,n,t.clone().offset(s,0))}return!0}})}if(r===n){if(v(e))for(const t of(0,l.r8)(i))e[r]=e[r].addRing(t);else if(k(e))for(const t of(0,l.r8)(i))e[r]=e[r].addPath(t)}else n=r,e[r]=i}return e}async function R(e,t,n){if(!Array.isArray(e))return R([e],t);t&&"string"!=typeof t&&b().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const r="string"==typeof t?t:t?.url??s.A.geometryServiceUrl;let i,o,u,p,d,v,k,C,P=0;const E=[],F=[];for(const t of e)if(null!=t)if(i||(i=t.spatialReference,o=(0,h.Vp)(i),u=i.isWebMercator,v=u?102100:4326,p=l.j7[v].maxX,d=l.j7[v].minX,k=l.j7[v].plus180Line,C=l.j7[v].minus180Line),o)if("mesh"===t.type)F.push(t);else if("point"===t.type)F.push(A(t.clone(),p,d));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map(e=>A(e,p,d)),F.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,o);F.push(e.rings?new a.A(e):e)}else if(t.extent){const e=t.extent,n=(0,l.kd)(e.xmin,d)*(2*p);let s=0===n?t.clone():(0,l.kS)(t.clone(),n);e.offset(n,0);let{xmin:r,xmax:i}=e;r=Number(r.toFixed(9)),i=Number(i.toFixed(9)),e.intersects(k)&&i!==p?(P=i>P?i:P,s=x(s,u),E.push(s),F.push("cut")):e.intersects(C)&&r!==d?(P=i*(2*p)>P?i*(2*p):P,s=x(s,u,360),E.push(s),F.push("cut")):F.push(s)}else F.push(t.clone());else F.push(t);else F.push(t);let T=(0,l.kd)(P,p),N=-90;const L=T,I=new c.A;for(;T>0;){const e=360*T-180;I.addPath([[e,N],[e,-1*N]]),N*=-1,T--}if(E.length>0&&L>0){const t=M(E,await async function(e,t,n,s){const r=(0,_.Dl)(e),i=t[0].spatialReference,o={...s,responseType:"json",query:{...r.query,f:"json",sr:(0,h.YX)(i),target:JSON.stringify({geometryType:(0,m.$B)(t[0]),geometries:t}),cutter:JSON.stringify(n)}},a=await(0,g.A)(r.path+"/cut",o),{cutIndexes:c,geometries:u=[]}=a.data;return{cutIndexes:c,geometries:u.map(e=>{const t=(0,y.rS)(e);return t.spatialReference=i,t})}}(r,E,I,n)),s=[],i=[];for(let n=0;n<F.length;n++){const r=F[n];if("cut"!==r)i.push(r);else{const r=t.shift(),o=e[n];null!=o&&"polygon"===o.type&&o.rings&&o.rings.length>1&&r.rings.length>=o.rings.length?(s.push(r),i.push("simplify")):i.push(u?(0,f.Gh)(r):r)}}if(!s.length)return i;const o=await async function(e,t,n){const s="string"==typeof e?(0,S.An)(e):e,r=t[0].spatialReference,i=(0,m.$B)(t[0]),o={...n,query:{...s.query,f:"json",sr:(0,h.YX)(r),geometries:JSON.stringify((0,w.X)(t))}},{data:a}=await(0,g.A)(s.path+"/simplify",o);return(0,w.V)(a.geometries,i,r)}(r,s,n),a=[];for(let e=0;e<i.length;e++){const t=i[e];"simplify"!==t?a.push(t):a.push(u?(0,f.Gh)(o.shift()):o.shift())}return a}const q=[];for(let e=0;e<F.length;e++){const t=F[e];if("cut"!==t)q.push(t);else{const e=E.shift();q.push(!0===u?(0,f.Gh)(e):e)}}return q}function C(e,t,n){const s=(0,h.Vp)(n);if(null==s)return e;const[r,i]=s.valid,o=2*i;let a=0,c=0;t>i?a=Math.ceil(Math.abs(t-i)/o):t<r&&(a=-Math.ceil(Math.abs(t-r)/o)),e>i?c=Math.ceil(Math.abs(e-i)/o):e<r&&(c=-Math.ceil(Math.abs(e-r)/o));let u=e+(a-c)*o;const l=u-t;return l>i?u-=o:l<r&&(u+=o),u}function P(e){const t=(0,h.Vp)(e);if(null==t)return null;const[n,s]=t.valid;return new r.hr(n,s)}const E=P(u.A.WGS84);P(u.A.WebMercator)},80754(e,t,n){n.d(t,{j7:()=>a,kS:()=>u,kd:()=>c,r8:()=>l});var s=n(82799),r=n(16930),i=n(60408),o=n(52006);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new s.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:r.A.WebMercator}),minus180Line:new s.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:r.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new s.A({paths:[[[180,-180],[180,180]]],spatialReference:r.A.WGS84}),minus180Line:new s.A({paths:[[[-180,-180],[-180,180]]],spatialReference:r.A.WGS84})}};function c(e,t){return Math.ceil((e-t)/(2*t))}function u(e,t){if((0,o.Ed)(e))for(const n of function(e){return(0,i.Bi)(e)?e.curveRings:e.curvePaths}(e))for(const e of n){if((0,o.aO)(e)){const[n,s]=e.c;n[0]+=t,s[0]+=t;continue}if((0,o.FG)(e)){const[n,s]=e.a;n[0]+=t,s[0]+=t;continue}if((0,o.n1)(e)){const[n,s,r]=e.b;n[0]+=t,s[0]+=t,r[0]+=t;continue}e[0]+=t}for(const n of l(e))for(const e of n)e[0]+=t;return e}function l(e){return(0,i.Bi)(e)?e.rings:e.paths}},62815(e,t,n){n.d(t,{N:()=>a,d:()=>c});var s=n(86211),r=n(73941),i=n(21325),o=n(52006);function a(e,t,n){const s=c(t,n);if(1!==s)switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,s);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e){if(e.curvePaths)for(const n of e.curvePaths)for(const e of n){const n=(0,o.yP)(e);n.length>2&&(n[2]*=t)}if(e.paths)for(const n of e.paths)for(const e of n)e.length>2&&(e[2]*=t)}}(e,s);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e){if(e.curveRings)for(const n of e.curveRings)for(const e of n){const n=(0,o.yP)(e);n.length>2&&(n[2]*=t)}if(e.rings)for(const n of e.rings)for(const e of n)e.length>2&&(e[2]*=t)}}(e,s);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const n of e.points)n.length>2&&(n[2]*=t)}(e,s);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,s);default:return}}function c(e,t){return null==e||null==t||t.vcsWkid||(0,i.aI)(e,t)||(0,r.xP)(e)||(0,r.xP)(t)?1:(0,s.G9)(e)/(0,s.G9)(t)}},31464(e,t,n){n.d(t,{Cv:()=>d,Nk:()=>h,lK:()=>m});var s=n(4576),r=n(91218),i=n(21325),o=n(28735);const a=[0,0];function c(e,t){if(!t)return null;if("x"in t){const n={x:0,y:0};return[n.x,n.y]=e(t.x,t.y,a),null!=t.z&&(n.z=t.z),null!=t.m&&(n.m=t.m),n}if("xmin"in t){const n={xmin:0,ymin:0,xmax:0,ymax:0};return[n.xmin,n.ymin]=e(t.xmin,t.ymin,a),[n.xmax,n.ymax]=e(t.xmax,t.ymax,a),t.hasZ&&(n.zmin=t.zmin,n.zmax=t.zmax,n.hasZ=!0),t.hasM&&(n.mmin=t.mmin,n.mmax=t.mmax,n.hasM=!0),n}return"rings"in t?{rings:u(t.rings,e),hasM:t.hasM,hasZ:t.hasZ}:"paths"in t?{paths:u(t.paths,e),hasM:t.hasM,hasZ:t.hasZ}:"points"in t?{points:l(t.points,e),hasM:t.hasM,hasZ:t.hasZ}:null}function u(e,t){const n=[];for(const s of e)n.push(l(s,t));return n}function l(e,t){const n=[];for(const s of e){const e=t(s[0],s[1],[0,0]);n.push(e),s.length>2&&e.push(s[2]),s.length>3&&e.push(s[3])}return n}async function h(e,t){if(!e||!t)return;const n=Array.isArray(e)?e.map(e=>null!=e.geometry?e.geometry.spatialReference:null).filter(s.Ru):[e];await(0,r.initializeProjection)(n.map(e=>({source:e,dest:t})))}const f=c.bind(null,o.je),p=c.bind(null,o.tD);function d(e,t,n,s){if(!e)return null;if(n||(n=t,t=e.spatialReference),!(0,i.fn)(t)||!(0,i.fn)(n)||(0,i.aI)(t,n))return e;if((0,o.y7)(t,n)){const t=(0,i.K8)(n)?f(e):p(e);return t.spatialReference=n,t}return(0,r.projectMany)([e],t,n,s)[0]}const g=new class{constructor(){this._jobs=[],this._timer=null,this._process=this._process.bind(this)}async push(e,t,n,s){if(!e?.length||!t||!n||(0,i.aI)(t,n))return e;const r={geometries:e,inSpatialReference:t,outSpatialReference:n,options:s,resolve:Promise.withResolvers()};return this._jobs.push(r),this._timer??=setTimeout(this._process,10),r.resolve.promise}_process(){this._timer=null;const e=this._jobs.shift();if(!e)return;const{geometries:t,inSpatialReference:n,outSpatialReference:s,resolve:a,options:c}=e,u=t.filter(e=>null!=e);let l;l=(0,o.y7)(n,s)&&null==c?.extendedParams?(0,i.K8)(s)?u.map(f):u.map(p):(0,r.projectMany)(u,n,s,c);let h=0;const d=t.map(e=>null==e?null:l[h++]);a.resolve(d),this._jobs.length>0&&(this._timer=setTimeout(this._process,10))}};function m(e,t,n,s){return g.push(e,t,n,s)}},60986(e,t,n){n.r(t),n.d(t,{createConnection:()=>C});var s=n(11254),r=n(49186),i=n(31464),o=n(9916),a=n(5482),c=n(65529),u=n(91429);let l=class extends c.nJ{destroy(){this.emit("destroy")}get connectionError(){return this.errorString?new r.A("stream-connection",this.errorString):null}onFeature(e){this.emit("data-received",e)}onMessage(e){this.emit("message-received",e)}};(0,a.Cg)([(0,u.MZ)({readOnly:!0})],l.prototype,"connectionError",null),l=(0,a.Cg)([(0,u.$K)("esri.layers.support.StreamConnection")],l);class h extends l{constructor(e,t){super(),this._config=e,this._outSpatialReference=t,this.connectionStatus="connected",this.errorString=null,this._isPolling=!1,this._lastIngestedAt=null,this._pollTimer=null,this._pollRecentData=async()=>{if(!this.destroyed&&!this._isPolling){this._isPolling=!0;try{const e=await this._queryChanges(this._lastIngestedAt);if(this.destroyed)return;this._handleResult(e)}catch(e){this.errorString=e instanceof Error?e.message:"Failed to fetch"}finally{this._isPolling=!1}}},this._initialize()}destroy(){super.destroy(),this._pollTimer&&(clearInterval(this._pollTimer),this._pollTimer=null)}sendMessageToSocket(e){throw new r.A("kusto:unsupported","sendMessageToSocket not supported for Kusto connections")}sendMessageToClient(e){throw new r.A("kusto:unsupported","sendMessageToClient not supported for Kusto connections")}updateCustomParameters(e){throw new r.A("kusto:unsupported","updateCustomParameters not supported for Kusto connections")}async _initialize(){await(0,i.Nk)(this._config.sourceSpatialReference,this._outSpatialReference);try{const e=await this._queryInitial();this._handleResult(e),this._pollTimer=setInterval(this._pollRecentData,6e4*this._config.refreshInterval)}catch{throw new r.A("kusto:connection","Failed to query KQL database")}}async _queryInitial(){const{trackIdField:e}=this._config,t=f(await this._executeQuery(`${(0,o.xw)(this._config.table)} | extend IngestedAt = ingestion_time() | summarize arg_max(IngestedAt, *) by ${(0,o.xw)(e)}`));if(!t)throw new r.A("kusto:connection","Unable to find primaryTable");return{ingestedAt:p(t),table:t}}async _queryChanges(e=null){const t=e??"1970-01-01T00:00:00Z",n=f(await this._executeQuery(`${(0,o.xw)(this._config.table)} | extend IngestedAt = ingestion_time() | where IngestedAt > todatetime('${(0,o.iD)(t)}') | order by IngestedAt asc`));if(!n)throw new r.A("kusto:connection","Unable to find primaryTable");return{ingestedAt:p(n),table:n}}async _executeQuery(e){const t=this._config.database,n=t.properties.queryServiceUri,{data:r}=await(0,s.A)(`${n}/v2/rest/query`,{responseType:"json",method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({db:t.displayName,csl:e})});return r}_handleResult(e){this._lastIngestedAt=e.ingestedAt;const t=this._createFeatures(e.table);if(null!=t){this.onMessage(t);for(const e of t)this.onFeature(e)}}_createFeatures(e){if(null==e||0===e.Rows.length)return null;const{xField:t,yField:n}=this._config.geometryEncoding,s=e.Columns.findIndex(e=>e.ColumnName===t),r=e.Columns.findIndex(e=>e.ColumnName===n);return e.Rows.map(t=>this._createFeature(e.Columns,s,r,t))}_createFeature(e,t,n,s){const{xField:r,yField:o}=this._config.geometryEncoding,a={};for(let t=0;t<e.length;t++){const n=e[t],i=s[t]??null;n.ColumnName!==o&&n.ColumnName!==r&&(a[n.ColumnName]=i)}let c=null;const u=s[t],l=s[n];return null!=l&&null!=u&&(c=(0,i.Cv)({x:u,y:l},this._config.sourceSpatialReference,this._outSpatialReference)),{attributes:a,geometry:c}}}function f(e){return e.find(e=>"DataTable"===e.FrameType&&"PrimaryResult"===e.TableKind)??null}function p(e){const t=e.Columns.findIndex(e=>"IngestedAt"===e.ColumnName);if(t<0)return null;let n=null;for(const s of e.Rows){const e=s[t];"string"==typeof e&&(null==n||e>n)&&(n=e)}return n}var d=n(53966),g=n(84952),m=n(16930),y=n(65864),_=n(17676),S=n(62815);function w(e,t){if(null==e&&null==t)return null;const n={};return null!=t&&(n.geometry=t),null!=e&&(n.where=e),n}let b=class extends l{constructor(e,t){super({}),this._outSpatialReference=t,this._outstandingMessages=[],this.errorString=null;const{geometryType:n,sourceSpatialReference:s}=e;this._config=e,this._featureZScaler=(0,S.N)(n,s,this._outSpatialReference),this._open()}normalizeCtorArgs(){return{}}async _open(){await this._tryCreateWebSocket(),this.destroyed||await this._handshake()}destroy(){super.destroy(),null!=this._websocket&&(this._websocket.onopen=null,this._websocket.onclose=null,this._websocket.onerror=null,this._websocket.onmessage=null,this._websocket.close()),this._websocket=null}get connectionStatus(){if(null==this._websocket)return"disconnected";switch(this._websocket.readyState){case 0:case 1:return"connected";case 2:case 3:return"disconnected"}}sendMessageToSocket(e){null!=this._websocket?this._websocket.send(JSON.stringify(e)):this._outstandingMessages.push(e)}sendMessageToClient(e){this._onMessage(e)}updateCustomParameters(e){this._config.customParameters=e,null!=this._websocket&&this._websocket.close()}async _tryCreateWebSocket(e=this._config.url.path,t=1e3,n=0){try{if(this.destroyed)return;const t=(0,g.a6)(e,this._config.customParameters??{});this._websocket=await this._createWebSocket(t),this.notifyChange("connectionStatus")}catch(s){const i=t/1e3;return this._config.maxReconnectionAttempts&&n>=this._config.maxReconnectionAttempts?(d.A.getLogger(this).error(new r.A("websocket-connection","Exceeded maxReconnectionAttempts attempts. No further attempts will be made")),void this.destroy()):(d.A.getLogger(this).error(new r.A("websocket-connection",`Failed to connect. Attempting to reconnect in ${i}s`,s)),await(0,_.Pl)(t),this._tryCreateWebSocket(e,Math.min(1.5*t,1e3*this._config.maxReconnectionInterval),n+1))}}_setWebSocketJSONParseHandler(e){e.onmessage=e=>{try{const t=JSON.parse(e.data);this._onMessage(t)}catch(e){return void d.A.getLogger(this).error(new r.A("websocket-connection","Failed to parse message, invalid JSON",{error:e}))}}}_createWebSocket(e){return new Promise((t,n)=>{const s=new WebSocket(e);s.onopen=()=>{if(s.onopen=null,this.destroyed)return s.onclose=null,void s.close();s.onclose=e=>this._onClose(e),s.onerror=e=>this._onError(e),this._setWebSocketJSONParseHandler(s),t(s)},s.onclose=e=>{s.onopen=s.onclose=null,n(e)}})}async _handshake(e=1e4){const t=this._websocket;if(null==t)return;const n=Promise.withResolvers(),s=t.onmessage,i=w(this._config.definitionExpression,this._config.geometryDefinition),{outFields:o}=this._config,a=setTimeout(()=>n.reject(),e),c=()=>{clearTimeout(a),n.reject()};return t.onmessage=e=>{let u=null;try{u=JSON.parse(e.data)}catch(e){}u&&"object"==typeof u||(d.A.getLogger(this).error(new r.A("websocket-connection","Protocol violation. Handshake failed - malformed message",e.data)),c(),this.destroy()),u.spatialReference?.wkid!==this._outSpatialReference?.wkid&&(d.A.getLogger(this).error(new r.A("websocket-connection",`Protocol violation. Handshake failed - expected wkid of ${this._outSpatialReference.wkid}`,e.data)),c(),this.destroy()),"json"!==u.format&&(d.A.getLogger(this).error(new r.A("websocket-connection","Protocol violation. Handshake failed - format is not set",e.data)),c(),this.destroy()),i&&u.filter!==i&&d.A.getLogger(this).error(new r.A("websocket-connection","Tried to set filter, but server doesn't support it")),o&&u.outFields!==o&&d.A.getLogger(this).error(new r.A("websocket-connection","Tried to set outFields, but server doesn't support it")),t.onmessage=s;for(const e of this._outstandingMessages)t.send(JSON.stringify(e));this._outstandingMessages=[],clearTimeout(a),n.resolve()},t.send(JSON.stringify({filter:i,outFields:o,format:"json",spatialReference:{wkid:this._outSpatialReference.wkid}})),n.promise}_onMessage(e){if(this.onMessage(e),"type"in e)switch(e.type){case"features":case"featureResult":for(const t of e.features)null!=this._featureZScaler&&this._featureZScaler(t.geometry),this.onFeature(t)}}_onError(e){const t="Encountered an error over WebSocket connection";this._set("errorString",t),d.A.getLogger(this).error("websocket-connection",t)}_onClose(e){this._websocket=null,this.notifyChange("connectionStatus"),1e3!==e.code&&d.A.getLogger(this).error("websocket-connection",`WebSocket closed unexpectedly with error code ${e.code}`),this.destroyed||this._open()}};(0,a.Cg)([(0,u.MZ)()],b.prototype,"connectionStatus",null),(0,a.Cg)([(0,u.MZ)()],b.prototype,"errorString",void 0),b=(0,a.Cg)([(0,u.$K)("esri.layers.graphics.sources.connections.WebSocketConnection")],b);var v=n(80893),k=n(97552);const x={maxQueryDepth:5,maxRecordCountFactor:3};let A=class extends b{constructor(e,t){super({...x,...e},t),this._buddyServicesQuery=null,this._relatedFeatures=null}async _open(){const e=await this._fetchServiceDefinition(this._config.url);e.timeInfo.trackIdField||d.A.getLogger(this).warn("GeoEvent service was configured without a TrackIdField. This may result in certain functionality being disabled. The purgeOptions.maxObservations property will have no effect.");const t=this._fetchWebSocketUrl(e.streamUrls,this._outSpatialReference);this._buddyServicesQuery||(this._buddyServicesQuery=this._queryBuddyServices()),await this._buddyServicesQuery,await this._tryCreateWebSocket(t);const n=w(this._config.definitionExpression,this._config.geometryDefinition),{outFields:s}=this._config;this.destroyed||this._setFilter(n,s)}_onMessage(e){if("attributes"in e){let t;try{t=this._enrich(e),null!=this._featureZScaler&&this._featureZScaler(t.geometry)}catch(e){return void d.A.getLogger(this).error(new r.A("geoevent-connection","Failed to parse message",e))}this.onFeature(t)}else this.onMessage(e)}async _fetchServiceDefinition(e){const t={f:"json",...this._config.customParameters},n=(0,s.A)(e.path,{query:t,responseType:"json"}),r=(await n).data;return this._serviceDefinition=r,r}_fetchWebSocketUrl(e,t){const n=e[0],{urls:s,token:r}=n,i=this._inferWebSocketBaseUrl(s);return(0,g.a6)(`${i}/subscribe`,{outSR:""+t.wkid,token:r})}_inferWebSocketBaseUrl(e){if(1===e.length)return e[0];for(const t of e)if(t.includes("wss"))return t;return d.A.getLogger(this).error(new r.A("geoevent-connection","Unable to infer WebSocket url",e)),null}async _setFilter(e,t){const n=this._websocket;if(null==n||null==e&&null==t)return;const s=JSON.stringify({filter:this._serializeFilter(e,t)});let i=!1;const o=Promise.withResolvers();return n.onmessage=e=>{const t=JSON.parse(e.data);t.filter&&(t.error&&(d.A.getLogger(this).error(new r.A("geoevent-connection","Failed to set service filter",t.error)),this._set("errorString",`Could not set service filter - ${t.error}`),o.reject(t.error)),this._setWebSocketJSONParseHandler(n),i=!0,o.resolve())},n.send(s),setTimeout(()=>{i||(this.destroyed||this._websocket!==n||d.A.getLogger(this).error(new r.A("geoevent-connection","Server timed out when setting filter")),o.reject())},1e4),o.promise}_serializeFilter(e,t){const n={};if(null==e&&null==t)return n;if(e?.geometry)try{const t=(0,y.rS)(e.geometry);if("extent"!==t.type)throw new r.A("geoevent-connection",`Expected extent but found type ${t.type}`);n.geometry=JSON.stringify(t.shiftCentralMeridian())}catch(e){d.A.getLogger(this).error(new r.A("geoevent-connection","Encountered an error when setting connection geometryDefinition",e))}return e?.where&&"1 = 1"!==e.where&&"1=1"!==e.where&&(n.where=e.where),null!=t&&(n.outFields=t.join(",")),n}_enrich(e){if(!this._relatedFeatures)return e;const t=this._serviceDefinition.relatedFeatures.joinField,n=e.attributes[t],s=this._relatedFeatures.get(n);if(!s)return d.A.getLogger(this).warn("geoevent-connection","Feature join failed. Is the join field configured correctly?",e),e;const{attributes:i,geometry:o}=s;for(const t in i)e.attributes[t]=i[t];return o&&(e.geometry=o),e.geometry||e.centroid||d.A.getLogger(this).error(new r.A("geoevent-connection","Found malformed feature - no geometry found",e)),e}async _queryBuddyServices(){try{const{relatedFeatures:e,keepLatestArchive:t}=this._serviceDefinition,n=this._queryRelatedFeatures(e),s=this._queryArchive(t);await n;const r=await s;if(!r)return;for(const e of r.features)this.onFeature(this._enrich(e))}catch(e){d.A.getLogger(this).error(new r.A("geoevent-connection","Encountered an error when querying buddy services",{error:e}))}}async _queryRelatedFeatures(e){if(!e)return;const t=await this._queryBuddy(e.featuresUrl);this._addRelatedFeatures(t)}async _queryArchive(e){if(e)return this._queryBuddy(e.featuresUrl)}async _queryBuddy(e){const t=new((await Promise.all([n.e(7632),n.e(8278),n.e(7865),n.e(6554),n.e(2869),n.e(3910),n.e(9953),n.e(1733),n.e(1214),n.e(8399),n.e(1017),n.e(4674),n.e(993),n.e(8589),n.e(7609),n.e(812),n.e(4460)]).then(n.bind(n,18589))).default)({url:e}),{capabilities:s}=await t.load(),r=s.query.supportsMaxRecordCountFactor,i=s.query.supportsPagination,o=s.query.supportsCentroid,a=this._config.maxRecordCountFactor,c=t.capabilities.query.maxRecordCount,u=r?c*a:c,l=new k.A;if(l.outFields=this._config.outFields??["*"],l.where=this._config.definitionExpression??"1=1",l.returnGeometry=!0,l.returnExceededLimitFeatures=!0,l.outSpatialReference=m.A.fromJSON(this._outSpatialReference),o&&(l.returnCentroid=!0),r&&(l.maxRecordCountFactor=a),i)return l.num=u,t.destroy(),this._queryPages(e,l);const h=await(0,v.eW)(e,l,this._config.sourceSpatialReference);return t.destroy(),h}async _queryPages(e,t,n=[],s=0){t.start=null!=t.num?s*t.num:null;const r=await(0,v.eW)(e,t,this._config.sourceSpatialReference);return r.exceededTransferLimit&&s<(this._config.maxQueryDepth??0)?(r.features.forEach(e=>n.push(e)),this._queryPages(e,t,n,s+1)):(n.forEach(e=>r.features.push(e)),r)}_addRelatedFeatures(e){const t=new Map,n=e.features,s=this._serviceDefinition.relatedFeatures.joinField;for(const e of n){const n=e.attributes[s];t.set(n,e)}this._relatedFeatures=t}};A=(0,a.Cg)([(0,u.$K)("esri.layers.graphics.sources.connections.GeoEventConnection")],A);var M=n(64108);let R=class extends l{constructor(e,t){super({}),this.connectionStatus="connected",this.errorString=null;const{geometryType:n,sourceSpatialReference:s}=e;this._featureZScaler=(0,S.N)(n,s,t)}normalizeCtorArgs(){return{}}updateCustomParameters(e){}sendMessageToSocket(e){}sendMessageToClient(e){if("type"in e)switch(e.type){case"features":case"featureResult":for(const t of e.features)null!=this._featureZScaler&&this._featureZScaler(t.geometry),this.onFeature(t)}this.onMessage(e)}};function C(e,t){switch(e.type){case"client":return new R(e,t);case"custom":return new b(e,t);case"geoevent":return new A(e,t);case"kusto":return new h(e,t)}}(0,a.Cg)([(0,u.MZ)()],R.prototype,"connectionStatus",void 0),(0,a.Cg)([(0,u.MZ)()],R.prototype,"errorString",void 0),R=(0,a.Cg)([(0,M.$)("esri.layers.support.ClientSideConnection")],R)},92300(e,t,n){n.d(t,{V:()=>o,X:()=>i});var s=n(60408),r=n(65864);function i(e){return{geometryType:(0,s.$B)(e[0]),geometries:e.map(e=>e.toJSON())}}function o(e,t,n){const s=(0,r.xD)(t);return e.map(e=>{const t=s.fromJSON(e);return t.spatialReference=n,t})}},58501(e,t,n){n.d(t,{q:()=>r});var s=n(62815);function r(e,t,n){if(!n?.features||!n.hasZ)return;const r=(0,s.N)(n.geometryType,t,e.outSpatialReference);if(r)for(const e of n.features)r(e.geometry)}}}]);
|