@arcgis/core 4.34.0-next.33 → 4.34.0-next.35
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.js +1 -1
- package/arcade/ArcadeDate.js +1 -1
- package/arcade/ArcadeModuleResolver.js +1 -1
- package/arcade/featureset/actions/GroupBy.js +1 -1
- package/arcade/functions/date.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{28e04ef3575f164f611a.js → 00870a35b254295bc408.js} +1 -1
- package/assets/esri/core/workers/chunks/017adbbb77c9c9b4d49f.js +1 -0
- package/assets/esri/core/workers/chunks/{c6edf028dd04d47d7580.js → 087ae1e3e767f0e678e5.js} +1 -1
- package/assets/esri/core/workers/chunks/{b4b30a7f1b673461dc55.js → 0997e09fe5b0aba1f804.js} +1 -1
- package/assets/esri/core/workers/chunks/{341507901f3858559c82.js → 125fdea50620d4db2678.js} +1 -1
- package/assets/esri/core/workers/chunks/{9bc6d974b0fce9db64ef.js → 15a5a89cd228a9364332.js} +1 -1
- package/assets/esri/core/workers/chunks/{847455bf4fc33d6e6efc.js → 1dc410bc070cabb7198d.js} +1 -1
- package/assets/esri/core/workers/chunks/{971b16677b66c16fb6b9.js → 20aed6e1d9b6bf06a398.js} +1 -1
- package/assets/esri/core/workers/chunks/{94a3474e3f45efa4a4fe.js → 2c816d3a737e39e6eb84.js} +1 -1
- package/assets/esri/core/workers/chunks/2de11a8e5d426c381991.js +1 -0
- package/assets/esri/core/workers/chunks/{fb71e533995c54cd806f.js → 319fe6a02ec630a827ea.js} +1 -1
- package/assets/esri/core/workers/chunks/3a7e43675163f7bed6ac.js +1 -0
- package/assets/esri/core/workers/chunks/{1aa6719be3afbdc7c880.js → 3cd1ab26396052f17832.js} +1 -1
- package/assets/esri/core/workers/chunks/{359c282fd67148fda5fa.js → 3d5954478864a975e65e.js} +1 -1
- package/assets/esri/core/workers/chunks/{2fdf457786d2d5d7414f.js → 3eb792863a789b97ec58.js} +1 -1
- package/assets/esri/core/workers/chunks/40b0c5368b8322498189.js +1 -0
- package/assets/esri/core/workers/chunks/{89999baefa341bd3329c.js → 4193691ca076948f4f90.js} +1 -1
- package/assets/esri/core/workers/chunks/{4778acd0cfaf0cebeec7.js → 439128f23fa091633d2d.js} +1 -1
- package/assets/esri/core/workers/chunks/{057df92b981c9b311d68.js → 43fba9d6be5971ec20a9.js} +1 -1
- package/assets/esri/core/workers/chunks/{74f3bc6c6b82de49d6ee.js → 4ac6bf9ff1cfbde87c7b.js} +1 -1
- package/assets/esri/core/workers/chunks/{0b3a200b97d790d08248.js → 4b9003ddfe61dc3729f4.js} +1 -1
- package/assets/esri/core/workers/chunks/{5192f38682f1f9be7da0.js → 549e073fe276363a9896.js} +1 -1
- package/assets/esri/core/workers/chunks/6000a302369799ea42a6.js +1 -0
- package/assets/esri/core/workers/chunks/{5d0c92aaa5891e6cb8f0.js → 641ca71d7c1a07bde66a.js} +1 -1
- package/assets/esri/core/workers/chunks/646227b500b92999f2c8.js +1 -0
- package/assets/esri/core/workers/chunks/{50b0d96e1a5ccffeb803.js → 64fab4e1e28c06c83403.js} +1 -1
- package/assets/esri/core/workers/chunks/{d3cb21cdc5b9483dd1f4.js → 69ae235423f0b1bdfcb4.js} +1 -1
- package/assets/esri/core/workers/chunks/{3323646096474740fed5.js → 6c72e2c09ed62cb2fd79.js} +1 -1
- package/assets/esri/core/workers/chunks/{63cb3dcd359e96733b1b.js → 6ce2f86b9b1d2f2b8675.js} +1 -1
- package/assets/esri/core/workers/chunks/752eabfbed7b8b65cf3f.js +1 -0
- package/assets/esri/core/workers/chunks/{98f6d4ea026ed96fd3f3.js → 773feb0e0fad26df57ef.js} +1 -1
- package/assets/esri/core/workers/chunks/7b1d14a921d30c95d68b.js +1 -0
- package/assets/esri/core/workers/chunks/{b78d00c4e493086741e1.js → 7d25f57299c642e727a6.js} +1 -1
- package/assets/esri/core/workers/chunks/{3a0da512562ba492609d.js → 827bebb4bcdde23adc91.js} +1 -1
- package/assets/esri/core/workers/chunks/8b7f6f2d1692b6b6dbd5.js +1 -0
- package/assets/esri/core/workers/chunks/{9152d62c55d3396763bd.js → 8be81e1530b952c97936.js} +1 -1
- package/assets/esri/core/workers/chunks/90a0c1c5c851cc9b6d6d.js +1 -0
- package/assets/esri/core/workers/chunks/91d48c32bf11ad1405c8.js +1 -0
- package/assets/esri/core/workers/chunks/9228f760129e48585b54.js +1 -0
- package/assets/esri/core/workers/chunks/9a54c96b48e94d816881.js +1 -0
- package/assets/esri/core/workers/chunks/a36be186ad10200c420c.js +1 -0
- package/assets/esri/core/workers/chunks/{c18167a0790241f80bf7.js → a6767d75e718f2e1e714.js} +1 -1
- package/assets/esri/core/workers/chunks/aa12ba96fb8c91105473.js +1 -0
- package/assets/esri/core/workers/chunks/{ea240d9e594bfbd8af68.js → aaf696a1026de569c82d.js} +1 -1
- package/assets/esri/core/workers/chunks/{b1ef40ef898a8c7f43a2.js → acb95ae6203f708d71b4.js} +1 -1
- package/assets/esri/core/workers/chunks/{22f38cad0213f2112394.js → b1982490762972ae023d.js} +1 -1
- package/assets/esri/core/workers/chunks/{bc0f5477b4491ab48b3a.js → b28855db6a30d4d4f348.js} +1 -1
- package/assets/esri/core/workers/chunks/b331543767c35e5edcc6.js +1 -0
- package/assets/esri/core/workers/chunks/{6ccd6171d3c572883034.js → b877142a275188a16e17.js} +1 -1
- package/assets/esri/core/workers/chunks/{7d852617e91b51121ea7.js → ba29c535128c4e8ae2d3.js} +1 -1
- package/assets/esri/core/workers/chunks/bf60d4da0dff1e14da8e.js +1 -0
- package/assets/esri/core/workers/chunks/{39bff604d4b4a1295038.js → c038472cb7f60af9426e.js} +1 -1
- package/assets/esri/core/workers/chunks/{ca46f78aac1133d127fa.js → c1e5e2a6e7e2d7a1d63c.js} +1 -1
- package/assets/esri/core/workers/chunks/{1c3578d5e956a4587973.js → c30adbead0ba4722acf9.js} +1 -1
- package/assets/esri/core/workers/chunks/{0260b33daf48fc207880.js → c9b11c7170c99f9e0e93.js} +1 -1
- package/assets/esri/core/workers/chunks/{a809042fdce7ced2a415.js → cc3ca1729af33688c1e3.js} +1 -1
- package/assets/esri/core/workers/chunks/cde79c3644166d4798a8.js +1 -0
- package/assets/esri/core/workers/chunks/{181f8bbe670b4468307a.js → ce8f0ed9179c0d314df8.js} +1 -1
- package/assets/esri/core/workers/chunks/{58393ab52d0b8f718241.js → d3fd11da3a823e148957.js} +1 -1
- package/assets/esri/core/workers/chunks/{ac30cf2f9a94597f7665.js → d6b2ab614f308db50c4a.js} +2 -2
- package/assets/esri/core/workers/chunks/{41d36b87e3dfc01be38d.js → d7b3e81cc313fd0a33b0.js} +1 -1
- package/assets/esri/core/workers/chunks/{abe2cdfc2eda46b00812.js → d9045b964f536695840b.js} +1 -1
- package/assets/esri/core/workers/chunks/dde6000aa2f69f6ecad0.js +1 -0
- package/assets/esri/core/workers/chunks/dec9656997683ef01ba6.js +1 -0
- package/assets/esri/core/workers/chunks/{1e20e43d1dc5273708c7.js → e1472dbf0795d737d6f8.js} +1 -1
- package/assets/esri/core/workers/chunks/e18bb372457cedbf4f8c.js +1 -0
- package/assets/esri/core/workers/chunks/e892ed8b0b990d7eba28.js +1 -0
- package/assets/esri/core/workers/chunks/{dc5a8cf2a44a5ac201c5.js → ed05399f9a07fea66685.js} +1 -1
- package/assets/esri/core/workers/chunks/{300a5257969d3835ceeb.js → f19426eb53d8430ded51.js} +1 -1
- package/assets/esri/core/workers/chunks/f3358b19af0f03f16543.js +1 -0
- package/assets/esri/core/workers/chunks/{1b5923dfd70d464dfb25.js → f4c38a9c01c29b5a6244.js} +1 -1
- package/assets/esri/core/workers/chunks/{c854c3bb4440fd942c12.js → f6c1854f36b029fa6c37.js} +1 -1
- package/assets/esri/core/workers/chunks/{039979cbf35a241ed0a4.js → fdc8300b6374ef2b8b3e.js} +1 -1
- package/chunks/Distance2DCalculator-CXhBP-8I.js +1 -1
- package/chunks/OperatorCrosses.js +1 -1
- package/chunks/OperatorGeodesicBuffer.js +1 -1
- package/chunks/OperatorIntersects.js +1 -1
- package/chunks/OperatorOverlaps.js +1 -1
- package/chunks/OperatorProximity.js +1 -1
- package/chunks/OperatorShapePreservingLength.js +1 -1
- package/chunks/OperatorShapePreservingProject.js +1 -1
- package/chunks/OperatorTouches.js +1 -1
- package/chunks/OperatorWithin.js +1 -1
- package/chunks/SideCalculator2D-BNwb5gvz.js +1 -1
- package/chunks/UnitFactory.js +1 -1
- package/chunks/equalsOperator.js +1 -1
- package/config.js +1 -1
- package/core/BidiEngine.js +1 -1
- package/core/Clonable.js +1 -1
- package/core/Promise.js +1 -1
- package/core/promiseUtils.js +1 -1
- package/core/sql/SqlInterval.js +1 -1
- package/core/sql/sqlDateParsingUtils.js +1 -1
- package/core/unitUtils.js +1 -1
- package/geometry/operators/gx/operatorDifference.js +1 -1
- package/geometry/operators/gx/operatorIntersection.js +1 -1
- package/geometry/operators/gx/operatorLabelPoint.js +1 -1
- package/geometry/support/coordinateSystem.js +1 -1
- package/graphic/BuildingGraphicOrigin.d.ts +4 -0
- package/graphic/BuildingGraphicOrigin.js +5 -0
- package/graphic/CSVGraphicOrigin.d.ts +4 -0
- package/graphic/CSVGraphicOrigin.js +5 -0
- package/graphic/CatalogGraphicOrigin.d.ts +4 -0
- package/graphic/CatalogGraphicOrigin.js +5 -0
- package/graphic/FeatureGraphicOrigin.d.ts +4 -0
- package/graphic/FeatureGraphicOrigin.js +5 -0
- package/graphic/GeoJSONGraphicOrigin.d.ts +4 -0
- package/graphic/GeoJSONGraphicOrigin.js +5 -0
- package/graphic/GraphicOrigin.d.ts +4 -0
- package/graphic/GraphicOrigin.js +5 -0
- package/graphic/IntegratedMesh3DTilesGraphicOrigin.d.ts +4 -0
- package/graphic/IntegratedMesh3DTilesGraphicOrigin.js +5 -0
- package/graphic/IntegratedMeshGraphicOrigin.d.ts +4 -0
- package/graphic/IntegratedMeshGraphicOrigin.js +5 -0
- package/graphic/OGCFeatureGraphicOrigin.d.ts +4 -0
- package/graphic/OGCFeatureGraphicOrigin.js +5 -0
- package/graphic/PointCloudGraphicOrigin.d.ts +4 -0
- package/graphic/PointCloudGraphicOrigin.js +5 -0
- package/graphic/SceneGraphicOrigin.d.ts +4 -0
- package/graphic/SceneGraphicOrigin.js +5 -0
- package/graphic/StreamGraphicOrigin.d.ts +4 -0
- package/graphic/StreamGraphicOrigin.js +5 -0
- package/graphic/VectorTileGraphicOrigin.d.ts +4 -0
- package/graphic/VectorTileGraphicOrigin.js +5 -0
- package/graphic/VoxelGraphicOrigin.d.ts +4 -0
- package/graphic/VoxelGraphicOrigin.js +5 -0
- package/graphic/WFSGraphicOrigin.d.ts +4 -0
- package/graphic/WFSGraphicOrigin.js +5 -0
- package/graphic/graphicOriginUtils.js +5 -0
- package/graphic/graphicOrigins.d.ts +14 -0
- package/graphic/graphicOrigins.js +5 -0
- package/graphic/isBuildingGraphicOrigin.js +5 -0
- package/graphic/isCSVGraphicOrigin.js +5 -0
- package/graphic/isCatalogGraphicOrigin.js +5 -0
- package/graphic/isFeatureGraphicOrigin.js +5 -0
- package/graphic/isGeoJSONGraphicOrigin.js +5 -0
- package/graphic/isIntegratedMesh3DTilesGraphicOrigin.js +5 -0
- package/graphic/isIntegratedMeshGraphicOrigin.js +5 -0
- package/graphic/isOGCFeatureGraphicOrigin.js +5 -0
- package/graphic/isPointCloudGraphicOrigin.js +5 -0
- package/graphic/isSceneGraphicOrigin.js +5 -0
- package/graphic/isStreamGraphicOrigin.js +5 -0
- package/graphic/isVectorTileGraphicOrigin.js +5 -0
- package/graphic/isVoxelGraphicOrigin.js +5 -0
- package/graphic/isWFSGraphicOrigin.js +5 -0
- package/interfaces.d.ts +354 -13
- package/kernel.js +1 -1
- package/layers/graphics/controllers/FeatureTileController3D.js +1 -1
- package/layers/support/Field.js +1 -1
- package/layers/support/featurePopupQueryUtils.js +1 -1
- package/layers/voxel/NCTimeParser.js +1 -1
- package/package.json +3 -3
- package/rest/knowledgeGraphService.js +1 -1
- package/smartMapping/statistics/support/utils.js +1 -1
- package/support/arcadeExpressionUtils.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/support/svgUtils.js +1 -1
- package/views/2d/engine/vectorTiles/VectorTileFeatureIndex.js +1 -1
- package/views/2d/engine/webgl/FeatureDisplayList.js +1 -1
- package/views/2d/engine/webgl/Painter.js +1 -1
- package/views/2d/engine/webgl/mesh/templates/segmentUtils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelTechnique.js +1 -1
- package/views/2d/layers/FeatureLayerView2D.js +1 -1
- package/views/2d/layers/GraphicsLayerView2D.js +1 -1
- package/views/2d/layers/ImageryLayerView2D.js +1 -1
- package/views/2d/layers/MapImageLayerView2D.js +1 -1
- package/views/2d/layers/TileLayerView2D.js +1 -1
- package/views/2d/layers/VectorTileLayerView2D.js +1 -1
- package/views/2d/layers/features/layerAdapters/CatalogFootprintLayerAdapter.js +1 -1
- package/views/3d/analysis/Slice/SliceController.js +1 -1
- package/views/3d/analysis/ViewshedAnalysisView3D.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/CutFillVolumeMeasurementComputation.js +5 -0
- package/views/3d/analysis/VolumeMeasurement/CutFillVolumeMeasurementController.js +1 -1
- package/views/3d/analysis/VolumeMeasurementAnalysisView3D.js +1 -1
- package/views/3d/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiles3D.js +1 -1
- package/views/3d/layers/BuildingComponentSublayerView3D.js +1 -1
- package/views/3d/layers/CSVLayerView3D.js +1 -1
- package/views/3d/layers/CatalogFootprintLayerView3D.js +1 -1
- package/views/3d/layers/FeatureLayerView3D.js +1 -1
- package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
- package/views/3d/layers/FlowSubView3D.js +1 -1
- package/views/3d/layers/GeoJSONLayerView3D.js +1 -1
- package/views/3d/layers/GraphicsLayerView3D.js +1 -1
- package/views/3d/layers/GraphicsView3D.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
- package/views/3d/layers/MediaLayerView3D.js +1 -1
- package/views/3d/layers/OGCFeatureLayerView3D.js +1 -1
- package/views/3d/layers/PointCloudLayerView3D.js +1 -1
- package/views/3d/layers/RouteLayerView3D.js +1 -1
- package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
- package/views/3d/layers/SceneLayerView3D.js +1 -1
- package/views/3d/layers/StreamLayerView3D.js +1 -1
- package/views/3d/layers/WFSLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DFeatureProcessor.js +1 -1
- package/views/3d/layers/graphics/StreamController.js +1 -1
- package/views/3d/layers/graphics/pipeline/Feature3DPipeline.js +1 -1
- package/views/3d/layers/graphics/pipeline/Feature3DPipelineWorkerHandle.js +1 -1
- package/views/3d/layers/graphics/pipeline/Tile3DManager.js +1 -1
- package/views/3d/layers/support/FeatureTileDescriptor.js +1 -1
- package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
- package/views/3d/layers/support/FeatureTileFetcher3DContext.js +1 -1
- package/views/3d/layers/support/FeatureTileMeasurements3D.js +1 -1
- package/views/3d/layers/support/FeatureTileTree3D.js +1 -1
- package/views/3d/layers/support/FeatureTileTree3DDebugger.js +1 -1
- package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
- package/views/3d/layers/support/Tiles3DIntersectionHandler.js +1 -1
- package/views/3d/state/ConstraintsManager.js +1 -1
- package/views/3d/support/flow/geometryUtils.js +1 -1
- package/views/3d/terrain/OverlayManager.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/terrain/Tile.js +1 -1
- package/views/3d/webgl-engine/core/FBOCache.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLineTechniqueConfiguration.js +1 -1
- package/views/SceneView.js +1 -1
- package/views/interactive/Tooltip.js +1 -1
- package/views/layers/FeatureLayerView.js +1 -1
- package/views/layers/support/popupUtils.js +1 -1
- package/views/support/Scheduler.js +1 -1
- package/views/support/highlightOptionsUtils.js +1 -1
- package/views/webgl/FramebufferObject.js +1 -1
- package/views/webgl/RenderbufferDescriptor.js +1 -1
- package/widgets/Editor/UpdateFeaturesWorkflow.js +1 -1
- package/widgets/OrientedImageryViewer/components/ImageViewerViewModel.js +1 -1
- package/assets/esri/core/workers/chunks/07b2cc0f6b064277632f.js +0 -1
- package/assets/esri/core/workers/chunks/0fc620d6d0c4ac282d72.js +0 -1
- package/assets/esri/core/workers/chunks/0fe32bdf2055bcd1e928.js +0 -1
- package/assets/esri/core/workers/chunks/13f9e92e7e5d44d9f95c.js +0 -1
- package/assets/esri/core/workers/chunks/140efe4735605258ecc9.js +0 -1
- package/assets/esri/core/workers/chunks/23eae849ee0ca7b3fd81.js +0 -1
- package/assets/esri/core/workers/chunks/2b76e716f478468b6798.js +0 -1
- package/assets/esri/core/workers/chunks/386ab72a45102c2d47f2.js +0 -1
- package/assets/esri/core/workers/chunks/3fb6146d914f9b410c2e.js +0 -1
- package/assets/esri/core/workers/chunks/432365fcd7becd508541.js +0 -1
- package/assets/esri/core/workers/chunks/439ce953a25b2776cb7f.js +0 -1
- package/assets/esri/core/workers/chunks/4c8d2334fcdb1354ff43.js +0 -1
- package/assets/esri/core/workers/chunks/5f321be63ed5447b04a1.js +0 -1
- package/assets/esri/core/workers/chunks/6006fbdb90c3bfc493a6.js +0 -1
- package/assets/esri/core/workers/chunks/7c35c61e3673cf94cdfd.js +0 -1
- package/assets/esri/core/workers/chunks/7c75876a0c6460585055.js +0 -1
- package/assets/esri/core/workers/chunks/949dc266ac6f3505d357.js +0 -1
- package/assets/esri/core/workers/chunks/99e3f7b3ea0bfe9b8d34.js +0 -1
- package/assets/esri/core/workers/chunks/a84af1b8b64b86b49bd3.js +0 -1
- package/assets/esri/core/workers/chunks/a9d83a442d8d7a376fc0.js +0 -1
- package/assets/esri/core/workers/chunks/ba1b21a90b257ac9a342.js +0 -1
- package/assets/esri/core/workers/chunks/c50c2f014e8567870686.js +0 -1
- package/assets/esri/core/workers/chunks/f9ad37dfbe1d14c6a352.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5845],{9093:(t,n,e)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[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]]}e.d(n,{o8:()=>o,vt:()=>r,zK:()=>i});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:o,create:r,fromValues:function(t,n,e,r,o,i,l,a,s,u,c,f,h,d,p,m){return[t,n,e,r,o,i,l,a,s,u,c,f,h,d,p,m]}},Symbol.toStringTag,{value:"Module"}))},9762:(t,n,e)=>{e.r(n),e.d(n,{projectBuffer:()=>o});var r=e(37539);function o(t,n,e,o,i,l,a=Math.floor(t.length/3)){const s=(0,r.jd)(n,i);if(null==s)return!1;if(s===r.pO){if(t===o&&e===l)return!0;const n=e+3*a;for(let r=e,i=l;r<n;r++,i++)o[i]=t[r];return!0}const u=e+3*a;for(let n=e,r=l;n<u;n+=3,r+=3)s(t,n,o,r);return!0}},11006:(t,n,e)=>{function r(t,n,e,r,i){o(t,n,e||0,r||t.length-1,i||l)}function o(t,n,e,r,l){for(;r>e;){if(r-e>600){var a=r-e+1,s=n-e+1,u=Math.log(a),c=.5*Math.exp(2*u/3),f=.5*Math.sqrt(u*c*(a-c)/a)*(s-a/2<0?-1:1);o(t,n,Math.max(e,Math.floor(n-s*c/a+f)),Math.min(r,Math.floor(n+(a-s)*c/a+f)),l)}var h=t[n],d=e,p=r;for(i(t,e,n),l(t[r],h)>0&&i(t,e,r);d<p;){for(i(t,d,p),d++,p--;l(t[d],h)<0;)d++;for(;l(t[p],h)>0;)p--}0===l(t[e],h)?i(t,e,p):i(t,++p,r),p<=n&&(e=p+1),n<=p&&(r=p-1)}}function i(t,n,e){var r=t[n];t[n]=t[e],t[e]=r}function l(t,n){return t<n?-1:t>n?1:0}e.d(n,{q:()=>r})},18251:(t,n,e)=>{e.d(n,{A:()=>c});var r=e(31635),o=e(69540),i=e(25482),l=e(10107),a=(e(44208),e(53966),e(87811),e(93223)),s=e(40608),u=e(51850);let c=class extends(o.A.ClonableMixin(i.A)){constructor(t){super(t),this.type="local",this.origin=(0,u.vt)()}};(0,r.Cg)([(0,a.e)({local:"local"},{readOnly:!0})],c.prototype,"type",void 0),(0,r.Cg)([(0,l.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],c.prototype,"origin",void 0),c=(0,r.Cg)([(0,s.$)("esri.geometry.support.MeshLocalVertexSpace")],c)},22141:(t,n,e)=>{e.d(n,{$5:()=>v,CN:()=>M,JP:()=>y,KM:()=>S,Mv:()=>B,X4:()=>w,gr:()=>b,qs:()=>_,si:()=>x,xA:()=>A});var r=e(34727),o=e(77690),i=e(29242),l=e(58083),a=e(9093),s=e(38954),u=e(51850),c=e(48353),f=e(9762),h=(e(79258),e(21325)),d=e(28735),p=e(13030),m=e(73354),g=e(65686);const y="Projection may be possible after calling projection.load().";function M(t,n,e,r){t.error(`Failed to project from (wkid:${n.wkid}) to (wkid:${e.wkid}).${r?" ":""}${r}`)}function w(t,n,e,r,o,i){return j(0,p.xs.fromTypedArray(t),0,p.Xm.fromTypedArray(n),e,p.Xm.fromTypedArray(r),o,p.xs.fromTypedArray(i))?i:null}function x(t,n,e,r,o,i){return j(1,p.xs.fromTypedArray(t),0,p.Xm.fromTypedArray(n),e,p.Xm.fromTypedArray(r),o,p.xs.fromTypedArray(i))?i:null}function b(t,n,e,r){return(0,f.projectBuffer)(t,n,0,e,r,0)?e:null}function v(t,n,e,r){return(0,f.projectBuffer)(t,n,0,e,r,0)?e:null}function _(t,n,e){return(0,o.Ge)(O,e),(0,m.b)(n,t,O),(0,r.or)(O)&&(0,m.n)(n,n),n}function S(t,n,e){return(0,o.z0)(O,e),(0,g.t)(n,t,O),(0,r.or)(O)&&(0,m.n)(n,n,4),n}function A(t,n,e,r,o,i){if(!j(0,p.xs.fromTypedArray(t,4*Float32Array.BYTES_PER_ELEMENT),1,p.Xm.fromTypedArray(n),e,p.Xm.fromTypedArray(r),o,p.xs.fromTypedArray(i,4*Float32Array.BYTES_PER_ELEMENT)))return null;for(let n=3;n<t.length;n+=4)i[n]=t[n];return i}function B(t,n,e,r,o,i){if(!j(1,p.xs.fromTypedArray(t,16),1,p.Xm.fromTypedArray(n),e,p.Xm.fromTypedArray(r),o,p.xs.fromTypedArray(i,16)))return null;for(let n=3;n<t.length;n+=4)i[n]=t[n];return i}function k(t,n,e,r,i){switch((0,c.l)(r,e,T,r),1===t&&(0,l.B8)(T,T),n){case 0:return(0,o.Ge)(i,T);case 1:return(0,o.z0)(i,T)}}function j(t,n,e,r,o,i,l,a){if(!n)return;const u=r.count;if(function(t){return t.isWGS84||(0,h.x1)(t)||(0,h.q8)(t)||(0,h.KQ)(t)}(o))for(let r=0;r<u;r++)i.getVec(r,R),n.getVec(r,I),(0,s.o)(I,I,k(t,e,R,l,O)),a.setVec(r,I);else for(let o=0;o<u;o++){i.getVec(o,R),n.getVec(o,I);const u=(0,d.jg)(r.get(o,1));let c=Math.cos(u);1===e!=(0===t)&&(c=1/c),k(t,e,R,l,O),0===t?(O[0]*=c,O[1]*=c,O[2]*=c,O[3]*=c,O[4]*=c,O[5]*=c):(O[0]*=c,O[3]*=c,O[6]*=c,O[1]*=c,O[4]*=c,O[7]*=c),(0,s.o)(I,I,O),(0,s.n)(I,I),a.setVec(o,I)}return a}const R=(0,u.vt)(),I=(0,u.vt)(),T=(0,a.vt)(),O=(0,i.vt)()},27615:(t,n,e)=>{e.d(n,{CK:()=>s,Hq:()=>a,MW:()=>u,TE:()=>c,yJ:()=>f});var r=e(38954),o=e(86738),i=e(95696),l=e(18251);function a(t){return null!=t.origin}function s(t){return a(t.vertexSpace)}function u(t,n){if(!a(t))return null;const[e,r,i]=t.origin;return new o.A({x:e,y:r,z:i,spatialReference:n})}function c(t,n){const{x:e,y:r,z:o,spatialReference:a}=t,s=[e,r,o??0];return"local"===(n?.vertexSpace??function(t){return t.isGeographic||t.isWebMercator?"local":"georeferenced"}(a))?new l.A({origin:s}):new i.A({origin:s})}function f(t,n){return t.type===n.type&&(t.origin===n.origin||null!=t.origin&&null!=n.origin&&(0,r.q)(t.origin,n.origin))}},29242:(t,n,e)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function o(t,n,e,r,o,i,l,a,s){return[t,n,e,r,o,i,l,a,s]}e.d(n,{fA:()=>o,vt:()=>r,zK:()=>i});const i=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,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:o},Symbol.toStringTag,{value:"Module"}))},31635:(t,n,e)=>{function r(t,n,e,r){var o,i=arguments.length,l=i<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,n,e,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(l=(i<3?o(l):i>3?o(n,e,l):o(n,e))||l);return i>3&&l&&Object.defineProperty(n,e,l),l}function o(t,n,e){if(null!=n){if("object"!=typeof n&&"function"!=typeof n)throw new TypeError("Object expected.");var r,o;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&&(o=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");o&&(r=function(){try{o.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:()=>l,mS:()=>o}),Object.create,Object.create;var i="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 l(t){function n(n){t.error=t.hasError?new i(n,t.error,"An error was suppressed during disposal."):n,t.hasError=!0}var e,r=0;return function o(){for(;e=t.stack.pop();)try{if(!e.async&&1===r)return r=0,t.stack.push(e),Promise.resolve().then(o);if(e.dispose){var i=e.dispose.call(e.value);if(e.async)return r|=2,Promise.resolve(i).then(o,function(t){return n(t),o()})}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}()}},37539:(t,n,e)=>{e.d(n,{pO:()=>m,jd:()=>h,Tp:()=>d,w5:()=>f});var r=e(34727),o=e(83047),i=e(73941),l=e(79258);Math.PI;const a=l.$O.radius,s=l.$O.eccentricitySquared,u={a1:a*s,a2:a*s*a*s,a3:a*s*s/2,a4:a*s*a*s*2.5,a5:a*s+a*s*s/2,a6:1-s};l.$O.radius,l.$O.flattening,l.Sw.radius,l.Sw.flattening,l.sH.radius,l.sH.flattening,l.sH.radius;var c=e(21325);const f={2:{5:m,7:null,9:null,10:m,1:_,6:null,8:null,0:null,3:y,11:M,2:m,4:j},5:{5:m,7:null,9:null,10:m,1:_,6:null,8:null,0:null,3:y,11:M,2:m,4:j},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:b,0:null,3:null,11:null,2:null,4:null},3:{5:g,7:null,9:null,10:g,1:function(t,n,e,r){const o=t[n]/q,i=P-2*Math.atan(Math.exp(-t[n+1]/q)),l=q+t[n+2],a=Math.cos(i)*l;e[r]=Math.cos(o)*a,e[r+1]=Math.sin(o)*a,e[r+2]=Math.sin(i)*l},6:null,8:null,0:null,3:m,11:function(t,n,e,r){g(t,n,e,r),M(e,r,e,r)},2:g,4:function(t,n,e,r){g(t,n,e,r),j(e,r,e,r)}},4:{5:R,7:null,9:null,10:R,1:function(t,n,e,r){R(t,n,e,r),_(e,r,e,r)},6:null,8:null,0:null,3:function(t,n,e,r){R(t,n,e,r),y(e,r,e,r)},11:function(t,n,e,r){R(t,n,e,r),M(e,r,e,r)},2:R,4:m},1:{5:k,7:null,9:null,10:k,1:m,6:null,8:null,0:null,3:function(t,n,e,r){k(t,n,e,r),y(e,r,e,r)},11:function(t,n,e,r){k(t,n,e,r),M(e,r,e,r)},2:k,4:function(t,n,e,r){k(t,n,e,r),j(e,r,e,r)}},6:{5:null,7:B,9:null,10:B,1:null,6:m,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:A,10:A,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:_,6:v,8:b,0:null,3:y,11:M,2:m,4:j},11:{5:w,7:null,9:null,10:w,1:function(t,n,e,r){w(t,n,e,r),_(e,r,e,r)},6:null,8:null,0:null,3:function(t,n,e,r){w(t,n,e,r),y(e,r,e,r)},11:m,2:w,4:function(t,n,e,r){w(t,n,e,r),j(e,r,e,r)}}};function h(t,n){return d(t,n)?.projector}function d(t,n){if(null==t||null==n)return null;if(I.source.spatialReference===t&&I.dest.spatialReference===n)return I;const e=p(t,I.source),r=p(n,I.dest);return 0===e&&0===r?(0,c.aI)(t,n)?I.projector=m:I.projector=null:I.projector=f[e][r],I}function p(t,n){return t?n.spatialReference===t?n.spatialReferenceId:(n.spatialReference=t,"metersPerUnit"in n&&(n.metersPerUnit=(0,o.GA)(t,1)),(0,i.jA)(t)?n.spatialReferenceId=1:(0,c.oT)(t)?n.spatialReferenceId=2:(0,c.K8)(t)?n.spatialReferenceId=3:(0,c.r1)(t)?n.spatialReferenceId=11:t.wkt===i.Ro.wkt?n.spatialReferenceId=4:4490===t.wkid?n.spatialReferenceId=5:t.wkt===i.FY.wkt?n.spatialReferenceId=6:t.wkt===i.LJ.wkt?n.spatialReferenceId=8:(0,c.q8)(t)?n.spatialReferenceId=7:(0,c.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])}function g(t,n,e,r){e[r]=O*(t[n]/q),e[r+1]=O*(P-2*Math.atan(Math.exp(-t[n+1]/q))),e[r+2]=t[n+2]}function y(t,n,e,o){!function(t,n,e,o,i){const l=.4999999*Math.PI,a=(0,r.qE)(T*t[n+1],-l,l),s=Math.sin(a);e[o++]=T*t[n]*i.radius,e[o++]=i.halfSemiMajorAxis*Math.log((1+s)/(1-s)),e[o]=t[n+2]}(t,n,e,o,l.$O)}function M(t,n,e,r){e[r]=t[n]*Y,e[r+1]=t[n+1]*Y,e[r+2]=t[n+2]}function w(t,n,e,r){e[r]=t[n]*X,e[r+1]=t[n+1]*X,e[r+2]=t[n+2]}function x(t,n,e,r,o){const i=o+t[n+2],l=T*t[n+1],a=T*t[n],s=Math.cos(l)*i;e[r]=Math.cos(a)*s,e[r+1]=Math.sin(a)*s,e[r+2]=Math.sin(l)*i}function b(t,n,e,r){x(t,n,e,r,l.Sw.radius)}function v(t,n,e,r){x(t,n,e,r,l.sH.radius)}function _(t,n,e,r){x(t,n,e,r,l.$O.radius)}function S(t,n,e,o,i){const l=t[n],a=t[n+1],s=t[n+2],u=Math.sqrt(l*l+a*a+s*s),c=(0,r.YN)(s/(0===u?1:u)),f=Math.atan2(a,l);e[o++]=O*f,e[o++]=O*c,e[o]=u-i}function A(t,n,e,r){S(t,n,e,r,l.Sw.radius)}function B(t,n,e,r){S(t,n,e,r,l.sH.radius)}function k(t,n,e,r){S(t,n,e,r,l.$O.radius)}function j(t,n,e,r){!function(t,n,e,r,o){const i=T*t[n],l=T*t[n+1],a=t[n+2],s=Math.sin(l),u=Math.cos(l),c=o.radius/Math.sqrt(1-o.eccentricitySquared*s*s);e[r++]=(c+a)*u*Math.cos(i),e[r++]=(c+a)*u*Math.sin(i),e[r++]=(c*(1-o.eccentricitySquared)+a)*s}(t,n,e,r,l.$O)}function R(t,n,e,r){const o=u,i=t[n],a=t[n+1],s=t[n+2];let c,f,h,d,p,m,g,y,M,w,x,b,v,_,S,A,B,k,j,R,I;c=Math.abs(s),f=i*i+a*a,h=Math.sqrt(f),d=f+s*s,p=Math.sqrt(d),R=Math.atan2(a,i),m=s*s/d,g=f/d,_=o.a2/p,S=o.a3-o.a4/p,g>.3?(y=c/p*(1+g*(o.a1+_+m*S)/p),j=Math.asin(y),w=y*y,M=Math.sqrt(1-w)):(M=h/p*(1-m*(o.a5-_-g*S)/p),j=Math.acos(M),w=1-M*M,y=Math.sqrt(w)),x=1-l.$O.eccentricitySquared*w,b=l.$O.radius/Math.sqrt(x),v=o.a6*b,_=h-b*M,S=c-v*y,B=M*_+y*S,A=M*S-y*_,k=A/(v/x+B),j+=k,I=B+A*k/2,s<0&&(j=-j),e[r++]=O*R,e[r++]=O*j,e[r]=I}const I={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:m},T=(0,r.kU)(1),O=(0,r.KJ)(1),P=.5*Math.PI,q=l.$O.radius,Y=q*Math.PI/180,X=180/(q*Math.PI)},38419:(t,n,e)=>{e.r(n),e.d(n,{default:()=>a});var r=e(44208),o=e(75503),i=e(95696),l=e(72258);class a{async createIndex(t,n){const e=new Array;if(!t.vertexAttributes?.position)return new o.wq;const r=function(t){const{vertexAttributes:{position:n},vertexSpace:e,spatialReference:r,transform:o}=t,a=(0,l.UR)({vertexAttributes:{position:n},vertexSpace:e,spatialReference:r,transform:o},i.A.absolute,{allowBufferReuse:!0})?.position;return a?!t.components||t.components.some(t=>!t.faces)?{position:a.buffer}:{position:a.buffer,components:t.components.map(t=>t.faces)}:null}(t),a=null!=n?await n.invoke("createIndexThread",r,{transferList:e}):this.createIndexThread(r).result;return s().fromJSON(a)}createIndexThread(t){const n=s();if(!t)return{result:n.toJSON()};const e=new Float64Array(t.position);return t.components?function(t,n,e){let r=0;for(const t of e)r+=t.length/3;const o=new Array(r);let i=0;for(const t of e)for(let e=0;e<t.length;e+=3)o[i++]=u(n,3*t[e],3*t[e+1],3*t[e+2]);return t.load(o),{result:t.toJSON()}}(n,e,t.components.map(t=>new Uint32Array(t))):function(t,n){const e=new Array(n.length/9);let r=0;for(let t=0;t<n.length;t+=9)e[r++]=u(n,t,t+3,t+6);return t.load(e),{result:t.toJSON()}}(n,e)}}function s(){return new o.wq(9,(0,r.A)("esri-csp-restrictions")?t=>t:[".minX",".minY",".maxX",".maxY"])}function u(t,n,e,r){return{minX:Math.min(t[n],t[e],t[r]),maxX:Math.max(t[n],t[e],t[r]),minY:Math.min(t[n+1],t[e+1],t[r+1]),maxY:Math.max(t[n+1],t[e+1],t[r+1]),p0:[t[n],t[n+1],t[n+2]],p1:[t[e],t[e+1],t[e+2]],p2:[t[r],t[r+1],t[r+2]]}}},38954:(t,n,e)=>{e.d(n,{A:()=>p,B:()=>d,C:()=>c,D:()=>f,E:()=>P,F:()=>E,H:()=>N,a:()=>q,b:()=>y,c:()=>l,d:()=>u,e:()=>S,f:()=>s,g:()=>g,h:()=>A,i:()=>a,j:()=>M,k:()=>x,l:()=>i,m:()=>B,n:()=>_,o:()=>j,q:()=>O,r:()=>v,s:()=>w,t:()=>k,u:()=>b,v:()=>R,w:()=>h,x:()=>z,y:()=>C,z:()=>m});var r=e(51850),o=e(34304);function i(t){const n=t[0],e=t[1],r=t[2];return Math.sqrt(n*n+e*e+r*r)}function l(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function a(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,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}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}function c(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t}function f(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t}function h(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function d(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function p(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}function m(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}function g(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function y(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}function M(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2];return Math.sqrt(e*e+r*r+o*o)}function w(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2];return e*e+r*r+o*o}function x(t){const n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function b(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function v(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function _(t,n){const e=n[0],r=n[1],o=n[2];let i=e*e+r*r+o*o;return i>0&&(i=1/Math.sqrt(i),t[0]=n[0]*i,t[1]=n[1]*i,t[2]=n[2]*i),t}function S(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function A(t,n,e){const r=n[0],o=n[1],i=n[2],l=e[0],a=e[1],s=e[2];return t[0]=o*s-i*a,t[1]=i*l-r*s,t[2]=r*a-o*l,t}function B(t,n,e,r){const o=n[0],i=n[1],l=n[2];return t[0]=o+r*(e[0]-o),t[1]=i+r*(e[1]-i),t[2]=l+r*(e[2]-l),t}function k(t,n,e){const r=n[0],o=n[1],i=n[2];return t[0]=e[0]*r+e[4]*o+e[8]*i+e[12],t[1]=e[1]*r+e[5]*o+e[9]*i+e[13],t[2]=e[2]*r+e[6]*o+e[10]*i+e[14],t}function j(t,n,e){const r=n[0],o=n[1],i=n[2];return t[0]=r*e[0]+o*e[3]+i*e[6],t[1]=r*e[1]+o*e[4]+i*e[7],t[2]=r*e[2]+o*e[5]+i*e[8],t}function R(t,n,e){const r=e[0],o=e[1],i=e[2],l=e[3],a=n[0],s=n[1],u=n[2],c=o*u-i*s,f=i*a-r*u,h=r*s-o*a,d=o*h-i*f,p=i*c-r*h,m=r*f-o*c,g=2*l;return t[0]=a+c*g+2*d,t[1]=s+f*g+2*p,t[2]=u+h*g+2*m,t}const I=(0,r.vt)(),T=(0,r.vt)();function O(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function P(t,n,e){const r=e[0]-n[0],o=e[1]-n[1],i=e[2]-n[2];let l=r*r+o*o+i*i;return l>0?(l=1/Math.sqrt(l),t[0]=r*l,t[1]=o*l,t[2]=i*l,t):(t[0]=0,t[1]=0,t[2]=0,t)}const q=u,Y=c,X=f,E=M,z=w,N=i,C=x;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:s,angle:function(t,n){_(I,t),_(T,n);const e=S(I,T);return e>1?0:e<-1?Math.PI:Math.acos(e)},bezier:function(t,n,e,r,o,i){const l=1-i,a=l*l,s=i*i,u=a*l,c=3*i*a,f=3*s*l,h=s*i;return t[0]=n[0]*u+e[0]*c+r[0]*f+o[0]*h,t[1]=n[1]*u+e[1]*c+r[1]*f+o[1]*h,t[2]=n[2]*u+e[2]*c+r[2]*f+o[2]*h,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},clamp:function(t,n=0,e=1){return t[0]=Math.min(Math.max(t[0],n),e),t[1]=Math.min(Math.max(t[1],n),e),t[2]=Math.min(Math.max(t[2],n),e),t},copy:l,cross:A,crossAndNormalize:function(t,n,e){const r=n[0],o=n[1],i=n[2],l=e[0],a=e[1],s=e[2],u=o*s-i*a,c=i*l-r*s,f=r*a-o*l,h=Math.sqrt(u*u+c*c+f*f);return t[0]=u/h,t[1]=c/h,t[2]=f/h,t},direction:P,dist:E,distance:M,div:X,divide:f,dot:S,equals:function(t,n){if(t===n)return!0;const e=t[0],r=t[1],i=t[2],l=n[0],a=n[1],s=n[2],u=(0,o.FD)();return Math.abs(e-l)<=u*Math.max(1,Math.abs(e),Math.abs(l))&&Math.abs(r-a)<=u*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(i-s)<=u*Math.max(1,Math.abs(i),Math.abs(s))},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},hermite:function(t,n,e,r,o,i){const l=i*i,a=l*(2*i-3)+1,s=l*(i-2)+i,u=l*(i-1),c=l*(3-2*i);return t[0]=n[0]*a+e[0]*s+r[0]*u+o[0]*c,t[1]=n[1]*a+e[1]*s+r[1]*u+o[1]*c,t[2]=n[2]*a+e[2]*s+r[2]*u+o[2]*c,t},inverse:v,len:N,length:i,lerp:B,max:m,min:p,mul:Y,multiply:c,negate:b,normalize:_,random:function(t,n=1){const e=o.Ov,r=2*e()*Math.PI,i=2*e()-1,l=Math.sqrt(1-i*i)*n;return t[0]=Math.cos(r)*l,t[1]=Math.sin(r)*l,t[2]=i*n,t},rotateX:function(t,n,e,r){const o=[],i=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],i[0]=o[0],i[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),i[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],t},rotateY:function(t,n,e,r){const o=[],i=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],i[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),i[1]=o[1],i[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],t},rotateZ:function(t,n,e,r){const o=[],i=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],i[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),i[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),i[2]=o[2],t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},scale:g,scaleAndAdd:y,set:a,sign:d,sqrDist:z,sqrLen:C,squaredDistance:w,squaredLength:x,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:q,subtract:u,transformMat3:j,transformMat4:k,transformQuat:R},Symbol.toStringTag,{value:"Module"}))},40876:(t,n,e)=>{e.d(n,{Eq:()=>d,G1:()=>m,TS:()=>i,Tf:()=>M,V6:()=>o,Vm:()=>p,ay:()=>s,c1:()=>g,c4:()=>l,j5:()=>u,lT:()=>f,oW:()=>c});const r={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function o(t){return!!r[t]||!!r[t.toLowerCase()]}function i(t){return r[t]??r[t.toLowerCase()]}function l(t){return[...i(t)]}function a(t,n,e){e<0&&++e,e>1&&--e;const r=6*e;return r<1?t+(n-t)*r:2*e<1?n:3*e<2?t+(n-t)*(2/3-e)*6:t}function s(t,n,e,r=1){const o=(t%360+360)%360/360,i=e<=.5?e*(n+1):e+n-e*n,l=2*e-i;return[Math.round(255*a(l,i,o+1/3)),Math.round(255*a(l,i,o)),Math.round(255*a(l,i,o-1/3)),r]}function u(t){const n=t.length>5,e=n?8:4,r=(1<<e)-1,o=n?1:17,i=n?9===t.length:5===t.length;let l=Number("0x"+t.slice(1));if(isNaN(l))return null;const a=[0,0,0,1];let s;return i&&(s=l&r,l>>=e,a[3]=o*s/255),s=l&r,l>>=e,a[2]=o*s,s=l&r,l>>=e,a[1]=o*s,s=l&r,l>>=e,a[0]=o*s,a}function c(t){if("#"!==t[0]||isNaN(Number(`0x${t.slice(1)}`)))return null;switch(t.length){case 4:case 5:{const n=parseInt(t.slice(1,2),16),e=parseInt(t.slice(2,3),16),r=parseInt(t.slice(3,4),16),o=4===t.length?15:parseInt(t.slice(4),16);return[n+16*n,e+16*e,r+16*r,(o+16*o)/255]}case 7:case 9:return[parseInt(t.slice(1,3),16),parseInt(t.slice(3,5),16),parseInt(t.slice(5,7),16),(7===t.length?255:parseInt(t.slice(7),16))/255];default:return null}}function f(t){const n=t.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(n){const t=n[2].split(/\s*,\s*/),e=n[1];if("rgb"===e&&3===t.length||"rgba"===e&&4===t.length){const n=t[0];if("%"===n.charAt(n.length-1)){const n=t.map(t=>2.56*parseFloat(t));return 4===t.length&&(n[3]=parseFloat(t[3])),h(n)}return h(t.map(t=>parseFloat(t)))}if("hsl"===e&&3===t.length||"hsla"===e&&4===t.length)return s(parseFloat(t[0]),parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3]??"1"))}return null}function h(t){return t[0]=g(t[0]),t[1]=g(t[1]),t[2]=g(t[2]),t[3]=4===t.length?m(t[3]):1,t}function d(t){let n=o(t)?i(t):null;return n??=f(t),n??=c(t),n}function p(t){const n=d(t);return null!=n?[n[0]/255,n[1]/255,n[2]/255,n[3]]:null}function m(t){return y(t,0,1)}function g(t){return Math.round(y(t,0,255))}function y(t,n,e){return t=Number(t),isNaN(t)?e:t<n?n:t>e?e:t}const M=2.2},48163:(t,n,e)=>{function r(){return[0,0]}function o(t){return[t[0],t[1]]}function i(t,n){return[t,n]}function l(){return i(1,1)}function a(){return i(1,0)}function s(){return i(0,1)}e.d(n,{Un:()=>u,fA:()=>i,o8:()=>o,vt:()=>r});const u=l(),c=a(),f=s();Object.freeze(Object.defineProperty({__proto__:null,ONES:u,UNIT_X:c,UNIT_Y:f,ZEROS:[0,0],clone:o,create:r,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){const e=Math.min(2,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:i,ones:l,unitX:a,unitY:s,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},48353:(t,n,e)=>{e.d(n,{l:()=>u});var r=e(34727),o=e(58083),i=e(51850);function l(t,n,e){const r=Math.sin(t),o=Math.cos(t),i=Math.sin(n),l=Math.cos(n),a=e;return a[0]=-r,a[4]=-i*o,a[8]=l*o,a[12]=0,a[1]=o,a[5]=-i*r,a[9]=l*r,a[13]=0,a[2]=0,a[6]=l,a[10]=i,a[14]=0,a[3]=0,a[7]=0,a[11]=0,a[15]=1,a}var a=e(37539),s=e(21325);function u(t,n,e,r){const i=(0,a.Tp)(t,r);if(null==i)return!1;const u=i.source.spatialReferenceId,p=i.dest.spatialReferenceId;if(u===p&&!c(p)&&(0!==u||(0,s.aI)(t,r)))return(0,o.kN)(e,n),!0;if(c(p)){const t=a.w5[u][10],r=a.w5[10][p];return null!=t&&null!=r&&(t(n,0,h,0),r(h,0,d,0),l(f*h[0],f*h[1],e),e[12]=d[0],e[13]=d[1],e[14]=d[2],!0)}const m=c(u);if((3===p||11===p||2===p||5===p)&&(2===u||m||3===u||5===u)){const t=a.w5[u][10],r=a.w5[10][p];return null!=t&&null!=r&&(t(n,0,h,0),r(h,0,d,0),m?function(t,n,e){l(t,n,e),(0,o.mg)(e,e)}(f*h[0],f*h[1],e):(0,o.D_)(e),e[12]=d[0],e[13]=d[1],e[14]=d[2],!0)}return!1}function c(t){return 1===t||6===t||8===t||4===t}const f=(0,r.kU)(1),h=(0,i.vt)(),d=(0,i.vt)()},51850:(t,n,e)=>{function r(){return[0,0,0]}function o(t){return[t[0],t[1],t[2]]}function i(t,n,e){return[t,n,e]}function l(t,n,e){return[t,n,e]}function a(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 s(){return i(1,1,1)}function u(){return i(1,0,0)}function c(){return i(0,1,0)}function f(){return i(0,0,1)}e.d(n,{CN:()=>l,Cb:()=>g,Cw:()=>p,JP:()=>m,Un:()=>d,ci:()=>a,fA:()=>i,o8:()=>o,uY:()=>h,vt:()=>r});const h=[0,0,0],d=s(),p=u(),m=c(),g=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:d,UNIT_X:p,UNIT_Y:m,UNIT_Z:g,ZEROS:h,clone:o,create:r,freeze:l,fromArray:a,fromValues:i,ones:s,unitX:u,unitY:c,unitZ:f,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"}))},62815:(t,n,e)=>{e.d(n,{N:()=>l});var r=e(83047),o=e(73941),i=e(21325);function l(t,n,e){if(null==n||null==e||e.vcsWkid||(0,i.aI)(n,e)||(0,o.xP)(n)||(0,o.xP)(e))return null;const l=(0,r.G9)(n)/(0,r.G9)(e);if(1===l)return null;switch(t){case"point":case"esriGeometryPoint":return t=>function(t,n){null!=t?.z&&(t.z*=n)}(t,l);case"polyline":case"esriGeometryPolyline":return t=>function(t,n){if(t)for(const e of t.paths)for(const t of e)t.length>2&&(t[2]*=n)}(t,l);case"polygon":case"esriGeometryPolygon":return t=>function(t,n){if(t)for(const e of t.rings)for(const t of e)t.length>2&&(t[2]*=n)}(t,l);case"multipoint":case"esriGeometryMultipoint":return t=>function(t,n){if(t)for(const e of t.points)e.length>2&&(e[2]*=n)}(t,l);case"extent":case"esriGeometryEnvelope":return t=>function(t,n){t&&null!=t.zmin&&null!=t.zmax&&(t.zmin*=n,t.zmax*=n)}(t,l);default:return null}}},65686:(t,n,e)=>{e.d(n,{a:()=>i,b:()=>c,l:()=>u,n:()=>a,t:()=>l});var r=e(40876),o=(e(44208),e(53966));function i(t,n,e){l(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function l(t,n,e,r=4,o=r){if(t.length/r!==n.length/o)return;const i=t.length/r,l=e[0],a=e[1],s=e[2],u=e[3],c=e[4],f=e[5],h=e[6],d=e[7],p=e[8];let m=0,g=0;for(let e=0;e<i;e++){const e=n[m],i=n[m+1],y=n[m+2],M=n[m+3];t[g]=l*e+u*i+h*y,t[g+1]=a*e+c*i+d*y,t[g+2]=s*e+f*i+p*y,t[g+3]=M,m+=o,g+=r}}function a(t,n){const e=Math.min(t.count,n.count),r=t.typedBuffer,o=t.typedBufferStride,i=n.typedBuffer,l=n.typedBufferStride;for(let t=0;t<e;t++){const n=t*o,e=t*l,a=i[e],s=i[e+1],u=i[e+2],c=a*a+s*s+u*u;if(c>0){const t=1/Math.sqrt(c);r[n]=t*a,r[n+1]=t*s,r[n+2]=t*u}}}function s(t,n,e,r=4){const o=Math.min(t.length/r,n.count),i=n.typedBuffer,l=n.typedBufferStride;let a=0,s=0;for(let n=0;n<o;n++)t[s]=e*i[a],t[s+1]=e*i[a+1],t[s+2]=e*i[a+2],t[s+3]=e*i[a+3],a+=l,s+=r}function u(t,n,e,r){c(t.typedBuffer,n,e,r,t.typedBufferStride)}function c(t,n,e,o,i=4){const l=Math.min(t.length/i,n.count),a=n.typedBuffer,s=n.typedBufferStride;let u=0,c=0;const f=1/r.Tf;for(let n=0;n<l;n++)t[c]=o*(e*a[u])**f,t[c+1]=o*(e*a[u+1])**f,t[c+2]=o*(e*a[u+2])**f,t[c+3]=o*e*a[u+3],u+=s,c+=i}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:c,linearToSRGBView:u,normalize:a,scale:s,scaleView:function(t,n,e){s(t.typedBuffer,n,e,t.typedBufferStride)},transformMat3:l,transformMat3View:i,transformMat4:function(t,n,e,r=4,i=r){if(t.length/r!==n.length/i)return void o.A.getLogger("esri.views.3d.support.buffer.math").error("source and destination buffers need to have the same number of elements");const l=t.length/r,a=e[0],s=e[1],u=e[2],c=e[3],f=e[4],h=e[5],d=e[6],p=e[7],m=e[8],g=e[9],y=e[10],M=e[11],w=e[12],x=e[13],b=e[14],v=e[15];let _=0,S=0;for(let e=0;e<l;e++){const e=n[_],o=n[_+1],l=n[_+2],A=n[_+3];t[S]=a*e+f*o+m*l+w*A,t[S+1]=s*e+h*o+g*l+x*A,t[S+2]=u*e+d*o+y*l+b*A,t[S+3]=c*e+p*o+M*l+v*A,_+=i,S+=r}},transformMat4View:function(t,n,e){if(t.count!==n.count)return;const r=t.count,o=e[0],i=e[1],l=e[2],a=e[3],s=e[4],u=e[5],c=e[6],f=e[7],h=e[8],d=e[9],p=e[10],m=e[11],g=e[12],y=e[13],M=e[14],w=e[15],x=t.typedBuffer,b=t.typedBufferStride,v=n.typedBuffer,_=n.typedBufferStride;for(let t=0;t<r;t++){const n=t*b,e=t*_,r=v[e],S=v[e+1],A=v[e+2],B=v[e+3];x[n]=o*r+s*S+h*A+g*B,x[n+1]=i*r+u*S+d*A+y*B,x[n+2]=l*r+c*S+p*A+M*B,x[n+3]=a*r+f*S+m*A+w*B}}},Symbol.toStringTag,{value:"Module"}))},65806:(t,n,e)=>{e.d(n,{g:()=>l});var r=e(51850),o=e(98988),i=e(9762);function l(t,n,e,r){if((0,o.canProjectWithoutEngine)(t.spatialReference,e)){a[0]=t.x,a[1]=t.y;const o=t.z;return a[2]=o??r??0,(0,i.projectBuffer)(a,t.spatialReference,0,n,e,0)}const l=(0,o.tryProjectWithZConversion)(t,e);return!!l&&(n[0]=l?.x,n[1]=l?.y,n[2]=l?.z??r??0,!0)}const a=(0,r.vt)()},69540:(t,n,e)=>{e.d(n,{A:()=>f});var r=e(31635),o=e(69622),i=(e(44208),e(4718)),l=(e(53966),e(97768)),a=e(88620),s=e(40608);const u=t=>{const n=t;let e=class extends n{clone(t){const n=(0,a.oY)(this);(0,l.Lw)(n,"unable to clone instance of non-accessor class");const e=n.metadata,r=n.store,o={},s=new Map;for(const n in e){const l=e[n],a=r?.originOf(n),u=l.clonable;if(l.readOnly||!1===u||7!==a&&0!==a&&5!==a&&4!==a)continue;const c=this[n];let f=null;f="function"==typeof u?u(c,t):"reference"===u?c:(0,i.TU)(c,t),null!=c&&null==f||(0===a?s.set(n,f):o[n]=f)}const u=new(0,Object.getPrototypeOf(this).constructor)(o);if(s.size){const t=(0,a.oY)(u)?.store;if(t)for(const[n,e]of s)t.set(n,e,0)}return u}};return e=(0,r.Cg)([(0,s.$)("esri.core.Clonable")],e),e};let c=class extends(u(o.A)){};c=(0,r.Cg)([(0,s.$)("esri.core.Clonable")],c),(c||(c={})).ClonableMixin=u;const f=c},72258:(t,n,e)=>{e.d(n,{UR:()=>b,p5:()=>x,xK:()=>k});var r=e(53966),o=e(34727),i=e(83047),l=e(77690),a=e(29242),s=e(58083),u=e(9093),c=e(38954),f=e(51850),h=e(98764),d=e(48353),p=e(65806),m=e(27615),g=e(21325),y=e(73354),M=e(22141);const w=()=>r.A.getLogger("esri.geometry.support.meshUtils.vertexSpaceConversion");function x(t,n,{vertexSpace:e,spatialReference:r}){if("georeferenced"===e.type){const o=t;if(!(0,p.g)(n,o,r))return!1;const{origin:i}=e;return(0,c.d)(t,o,i),!0}const o=(0,h.lO)(r),i=t;if(!(0,p.g)(n,i,o))return!1;const{origin:l}=e,a=O;if(!(0,d.l)(r,l,a,o))return!1;const u=(0,s.B8)(O,a);return null!=u&&((0,c.t)(t,i,u),!0)}function b(t,n,e){const{vertexSpace:r,transform:o,vertexAttributes:i}=t,a=(0,m.Hq)(r)?o:null,f=A(t.spatialReference,e,3);if((0,m.yJ)(r,n)&&(!a||(0,s.t2)(a.localMatrix,u.zK))&&B(f)){const{position:t,normal:n,tangent:r}=i,o=e?.allowBufferReuse;return{position:o?t:t.slice(),normal:o?n:n?.slice(),tangent:o?r:r?.slice()}}switch(t.vertexSpace.type){case"local":return"local"===n.type?function({vertexAttributes:t,spatialReference:n,transform:e},{origin:r},o,i){const l=v(n,i);if(!(0,d.l)(n,r,j,l))return(0,M.CN)(w(),n,l),null;if(e&&(0,s.lw)(j,j,e.localMatrix),!(0,d.l)(n,o,R,l))return(0,M.CN)(w(),l,n),null;(0,s.B8)(R,R);const a=(0,s.lw)(j,R,j);return S(a,n,i,3),_(t,a)}(t,t.vertexSpace,n.origin,e):function({spatialReference:t,vertexAttributes:n,transform:e},{origin:r},o,i){const l=v(t,i);if(!(0,d.l)(t,r,j,l))return(0,M.CN)(w(),t,l),null;e&&(0,s.lw)(j,j,e.localMatrix),S(j,t,i,1);const a=new Float64Array(n.position.length),u=function(t,n,e,r,o){(0,y.t)(r,t,n);const i=new Float64Array(t.length);return(0,M.$5)(r,o,i,e)?i:((0,M.CN)(w(),o,e),null)}(n.position,j,t,a,l);if(!u)return null;const f=function(t,n,e,r,o,i){if(null==o)return null;const l=new Float32Array(o.length);return(0,M.qs)(o,l,i),(0,M.si)(l,t,n,e,r,l)?l:((0,M.CN)(w(),r,n),null)}(u,t,a,l,n.normal,j);if(n.normal&&!f)return null;const h=function(t,n,e,r,o,i){if(null==o)return null;const l=new Float32Array(o.length);return(0,M.KM)(o,l,i),(0,M.Mv)(l,t,n,e,r,l)?l:((0,M.CN)(w(),r,n),null)}(u,t,a,l,n.tangent,j);if(n.tangent&&!h)return null;if(o){const t=(0,c.u)(T,o);(0,y.a)(u,u,t)}return{position:u,normal:f,tangent:h}}(t,t.vertexSpace,n.origin,e);case"georeferenced":return"local"===n.type?function({vertexAttributes:t,spatialReference:n,transform:e},{origin:r},o,i){const a=v(n,i);if(!(0,d.l)(n,o,j,a))return(0,M.CN)(w(),n,a),null;const u=1/A(n,i,2);(0,s.hs)(j,j,[u,u,u]);const c=(0,s.B8)(R,j),{position:f,normal:h,tangent:p}=function(t,n,e){if(!n)return t;if(!e){const{position:e,normal:r,tangent:o}=t;return{position:(0,y.a)(new Float64Array(e.length),e,n),tangent:o,normal:r}}const r=_(t,e.localMatrix);return(0,y.a)(r.position,r.position,n),r}(t,r,e),m=new Float64Array(f.length),g=function(t,n,e,r,o){const i=(0,M.gr)(t,n,r,o);if(!i)return(0,M.CN)(w(),n,o),null;const l=new Float64Array(i.length);return(0,y.t)(l,i,e),l}(f,n,c,m,a);if(!g)return null;const x=(0,l.Ge)(I,c),b=function(t,n,e,r,o,i,l){if(null==t)return null;const a=l??new Float32Array(t.length);return(0,M.X4)(t,n,e,r,o,a)?((0,y.b)(a,a,i),a):((0,M.CN)(w(),e,o),null)}(h,f,n,m,a,x,h!==t.normal?h:void 0);if(!b&&h)return null;const S=function(t,n,e,r,o,i,l){if(null==t)return null;const a=l??new Float32Array(t.length);return(0,M.xA)(t,n,e,r,o,a)?((0,y.b)(a,a,i,4),a):((0,M.CN)(w(),e,o),null)}(p,f,n,m,a,x,p!==t.tangent?p:void 0);return!S&&p?null:{position:g,normal:b,tangent:S}}(t,t.vertexSpace,n.origin,e):function({vertexAttributes:t,transform:n,spatialReference:e},{origin:r},o,i){const l=A(e,i,3),a=r||!B(l)?(0,s.C)(j,n?.localMatrix??u.zK):null;a&&S(a,e,i,3);const{position:f,normal:h,tangent:d}=a?_(t,a):t,p=i?.allowBufferReuse,m=p?f:new Float64Array(f.length);let g=f;if(r&&(g=(0,y.a)(m,g,r)),o){const t=(0,c.u)(T,o);g=(0,y.a)(m,g,t)}return{position:g!==t.position||p?g:g.slice(),normal:h!==t.normal||p?h:h?.slice(),tangent:d!==t.tangent||p?d:d?.slice()}}(t,t.vertexSpace,n.origin,e)}}function v(t,n){return n?.useEllipsoid&&(0,g.B3)(t)?h.Y0:(0,h.lO)(t)}function _(t,n){const e=new Float64Array(t.position.length);(0,y.t)(e,t.position,n);const r=t.normal?new Float32Array(t.normal.length):null,o=t.tangent?new Float32Array(t.tangent.length):null;return r&&t.normal&&(0,M.qs)(t.normal,r,n),o&&t.tangent&&(0,M.KM)(t.tangent,o,n),{position:e,normal:r,tangent:o}}function S(t,n,e,r){const o=A(n,e,r);B(o)||(0,s.hs)(t,t,[o,o,o])}function A(t,n,e){const r=!!(1&e),o=!!(2&e),i=n?.sourceUnit,l=n?.targetUnit;if(!i&&!l)return 1;let a=k(i,t);r||!i||B(a)||(w().warn("source unit conversion not supported"),a=1);let s=1/k(l,t);return o||!l||B(s)||(w().warn("target unit conversion not supported"),s=1),a*s}function B(t){return(0,o.Io)(t,1)}function k(t,n){if(null==t)return 1;const e=(0,i.KX)(n);return 1/(0,i.oU)(e,"meters",t)}const j=(0,u.vt)(),R=(0,u.vt)(),I=(0,a.vt)(),T=(0,f.vt)(),O=(0,u.vt)()},73354:(t,n,e)=>{e.d(n,{a:()=>f,b:()=>a,c:()=>l,d:()=>o,e:()=>h,f:()=>c,l:()=>u,n:()=>d,t:()=>i});var r=e(40876);function o(t,n,e){i(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function i(t,n,e,r=3,o=r){if(t.length/r!==Math.ceil(n.length/o))return t;const i=t.length/r,l=e[0],a=e[1],s=e[2],u=e[4],c=e[5],f=e[6],h=e[8],d=e[9],p=e[10],m=e[12],g=e[13],y=e[14];let M=0,w=0;for(let e=0;e<i;e++){const e=n[M],i=n[M+1],x=n[M+2];t[w]=l*e+u*i+h*x+m,t[w+1]=a*e+c*i+d*x+g,t[w+2]=s*e+f*i+p*x+y,M+=o,w+=r}return t}function l(t,n,e){a(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function a(t,n,e,r=3,o=r){if(t.length/r!==Math.ceil(n.length/o))return;const i=t.length/r,l=e[0],a=e[1],s=e[2],u=e[3],c=e[4],f=e[5],h=e[6],d=e[7],p=e[8];let m=0,g=0;for(let e=0;e<i;e++){const e=n[m],i=n[m+1],y=n[m+2];t[g]=l*e+u*i+h*y,t[g+1]=a*e+c*i+d*y,t[g+2]=s*e+f*i+p*y,m+=o,g+=r}}function s(t,n,e,r=3,o=r){const i=Math.min(t.length/r,n.length/o);let l=0,a=0;for(let s=0;s<i;s++)t[a]=e*n[l],t[a+1]=e*n[l+1],t[a+2]=e*n[l+2],l+=o,a+=r;return t}function u(t,n,e,r){c(t.typedBuffer,n.typedBuffer,e,r,t.typedBufferStride,n.typedBufferStride)}function c(t,n,e,o,i=3,l=i){const a=Math.min(t.length/i,n.length/l);let s=0,u=0;const c=1/r.Tf;for(let r=0;r<a;r++)t[u]=o*(e*n[s])**c,t[u+1]=o*(e*n[s+1])**c,t[u+2]=o*(e*n[s+2])**c,s+=l,u+=i}function f(t,n,e,r=3,o=r){const i=t.length/r;if(i!==Math.ceil(n.length/o))return t;let l=0,a=0;for(let s=0;s<i;s++)t[a]=n[l]+e[0],t[a+1]=n[l+1]+e[1],t[a+2]=n[l+2]+e[2],l+=o,a+=r;return t}function h(t,n){d(t.typedBuffer,n.typedBuffer,t.typedBufferStride,n.typedBufferStride)}function d(t,n,e=3,r=e){const o=Math.min(t.length/e,n.length/r);let i=0,l=0;for(let a=0;a<o;a++){const o=n[i],a=n[i+1],s=n[i+2],u=o*o+a*a+s*s;if(u>0){const n=1/Math.sqrt(u);t[l]=n*o,t[l+1]=n*a,t[l+2]=n*s}i+=r,l+=e}}e(44208),e(53966),Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:c,linearToSRGBView:u,normalize:d,normalizeView:h,scale:s,scaleView:function(t,n,e){s(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)},shiftRight:function(t,n,e){const r=Math.min(t.count,n.count),o=t.typedBuffer,i=t.typedBufferStride,l=n.typedBuffer,a=n.typedBufferStride;let s=0,u=0;for(let t=0;t<r;t++)o[u]=l[s]>>e,o[u+1]=l[s+1]>>e,o[u+2]=l[s+2]>>e,s+=a,u+=i},transformMat3:a,transformMat3View:l,transformMat4:i,transformMat4View:o,translate:f},Symbol.toStringTag,{value:"Module"}))},75503:(t,n,e)=>{e.d(n,{EC:()=>A,wq:()=>a});var r=e(4576),o=e(21818),i=(e(44208),e(15142)),l=e(11006);class a{constructor(t=9,n){this._compareMinX=h,this._compareMinY=d,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),n&&("function"==typeof n?this._toBBox=n:this._initFormat(n)),this.clear()}destroy(){this.clear(),b.prune(),v.prune(),_.prune(),S.prune()}all(t){s(this._data,t)}search(t,n){let e=this._data;const r=this._toBBox;if(w(t,e))for(b.clear();e;){for(let o=0,i=e.children.length;o<i;o++){const i=e.children[o],l=e.leaf?r(i):i;w(t,l)&&(e.leaf?n(i):M(t,l)?s(i,n):b.push(i))}e=b.pop()}}collides(t){let n=this._data;const e=this._toBBox;if(!w(t,n))return!1;for(b.clear();n;){for(let r=0,o=n.children.length;r<o;r++){const o=n.children[r],i=n.leaf?e(o):o;if(w(t,i)){if(n.leaf||M(t,i))return!0;b.push(o)}}n=b.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let n=0,e=t.length;n<e;n++)this.insert(t[n]);return this}let n=this._build(t.slice(),0,t.length-1,0);if(this._data.children.length)if(this._data.height===n.height)this._splitRoot(this._data,n);else{if(this._data.height<n.height){const t=this._data;this._data=n,n=t}this._insert(n,this._data.height-n.height-1,!0)}else this._data=n;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new k([]),this}remove(t){if(!t)return this;let n,e=this._data,i=null,l=0,a=!1;const s=this._toBBox(t);for(_.clear(),S.clear();e||_.length>0;){if(e||(e=_.pop(),i=_.data[_.length-1],l=S.pop()??0,a=!0),e.leaf&&(n=(0,r.qh)(e.children,(0,o.zI)(t),e.children.length,e.indexHint),-1!==n))return e.children.splice(n,1),_.push(e),this._condense(_),this;a||e.leaf||!M(e,s)?i?(l++,e=i.children[l],a=!1):e=null:(_.push(e),S.push(l),l=0,i=e,e=e.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_build(t,n,e,r){const o=e-n+1;let i=this._maxEntries;if(o<=i){const r=new k(t.slice(n,e+1));return u(r,this._toBBox),r}r||(r=Math.ceil(Math.log(o)/Math.log(i)),i=Math.ceil(o/i**(r-1)));const l=new j([]);l.height=r;const a=Math.ceil(o/i),s=a*Math.ceil(Math.sqrt(i));x(t,n,e,s,this._compareMinX);for(let o=n;o<=e;o+=s){const n=Math.min(o+s-1,e);x(t,o,n,a,this._compareMinY);for(let e=o;e<=n;e+=a){const o=Math.min(e+a-1,n);l.children.push(this._build(t,e,o,r-1))}}return u(l,this._toBBox),l}_insert(t,n,e){const r=this._toBBox,o=e?t:r(t);_.clear();const i=function(t,n,e,r){for(;r.push(n),!0!==n.leaf&&r.length-1!==e;){let e,r=1/0,o=1/0;for(let i=0,l=n.children.length;i<l;i++){const l=n.children[i],a=p(l),s=g(t,l)-a;s<o?(o=s,r=a<r?a:r,e=l):s===o&&a<r&&(r=a,e=l)}n=e||n.children[0]}return n}(o,this._data,n,_);for(i.children.push(t),f(i,o);n>=0&&_.data[n].children.length>this._maxEntries;)this._split(_,n),n--;!function(t,n,e){for(let r=e;r>=0;r--)f(n.data[r],t)}(o,_,n)}_split(t,n){const e=t.data[n],r=e.children.length,o=this._minEntries;this._chooseSplitAxis(e,o,r);const i=this._chooseSplitIndex(e,o,r);if(!i)return;const l=e.children.splice(i,e.children.length-i),a=e.leaf?new k(l):new j(l);a.height=e.height,u(e,this._toBBox),u(a,this._toBBox),n?t.data[n-1].children.push(a):this._splitRoot(e,a)}_splitRoot(t,n){this._data=new j([t,n]),this._data.height=t.height+1,u(this._data,this._toBBox)}_chooseSplitIndex(t,n,e){let r,o,i;r=o=1/0;for(let l=n;l<=e-n;l++){const n=c(t,0,l,this._toBBox),a=c(t,l,e,this._toBBox),s=y(n,a),u=p(n)+p(a);s<r?(r=s,i=l,o=u<o?u:o):s===r&&u<o&&(o=u,i=l)}return i}_chooseSplitAxis(t,n,e){const r=t.leaf?this._compareMinX:h,o=t.leaf?this._compareMinY:d;this._allDistMargin(t,n,e,r)<this._allDistMargin(t,n,e,o)&&t.children.sort(r)}_allDistMargin(t,n,e,r){t.children.sort(r);const o=this._toBBox,i=c(t,0,n,o),l=c(t,e-n,e,o);let a=m(i)+m(l);for(let r=n;r<e-n;r++){const n=t.children[r];f(i,t.leaf?o(n):n),a+=m(i)}for(let r=e-n-1;r>=n;r--){const n=t.children[r];f(l,t.leaf?o(n):n),a+=m(l)}return a}_condense(t){for(let n=t.length-1;n>=0;n--){const e=t.data[n];if(0===e.children.length)if(n>0){const o=t.data[n-1],i=o.children;i.splice((0,r.qh)(i,e,i.length,o.indexHint),1)}else this.clear();else u(e,this._toBBox)}}_initFormat(t){const n=["return a"," - b",";"];this._compareMinX=new Function("a","b",n.join(t[0])),this._compareMinY=new Function("a","b",n.join(t[1])),this._toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function s(t,n){let e=t;for(v.clear();e;){if(!0===e.leaf)for(const t of e.children)n((0,o.zI)(t));else v.pushArray(e.children);e=v.pop()??null}}function u(t,n){c(t,0,t.children.length,n,t)}function c(t,n,e,r,o){o||(o=new k([])),o.minX=1/0,o.minY=1/0,o.maxX=-1/0,o.maxY=-1/0;for(let i,l=n;l<e;l++)i=t.children[l],f(o,t.leaf?r(i):i);return o}function f(t,n){t.minX=Math.min(t.minX,n.minX),t.minY=Math.min(t.minY,n.minY),t.maxX=Math.max(t.maxX,n.maxX),t.maxY=Math.max(t.maxY,n.maxY)}function h(t,n){return t.minX-n.minX}function d(t,n){return t.minY-n.minY}function p(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function m(t){return t.maxX-t.minX+(t.maxY-t.minY)}function g(t,n){return(Math.max(n.maxX,t.maxX)-Math.min(n.minX,t.minX))*(Math.max(n.maxY,t.maxY)-Math.min(n.minY,t.minY))}function y(t,n){const e=Math.max(t.minX,n.minX),r=Math.max(t.minY,n.minY),o=Math.min(t.maxX,n.maxX),i=Math.min(t.maxY,n.maxY);return Math.max(0,o-e)*Math.max(0,i-r)}function M(t,n){return t.minX<=n.minX&&t.minY<=n.minY&&n.maxX<=t.maxX&&n.maxY<=t.maxY}function w(t,n){return n.minX<=t.maxX&&n.minY<=t.maxY&&n.maxX>=t.minX&&n.maxY>=t.minY}function x(t,n,e,r,o){const i=[n,e];for(;i.length;){const n=i.pop(),e=i.pop();if(n-e<=r)continue;const a=e+Math.ceil((n-e)/r/2)*r;(0,l.q)(t,a,e,n,o),i.push(e,a,a,n)}}const b=new i.A,v=new i.A,_=new i.A,S=new i.A({deallocator:void 0});class A{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class B extends A{constructor(){super(...arguments),this.height=1,this.indexHint=new r.vW}}class k extends B{constructor(t){super(),this.children=t,this.leaf=!0}}class j extends B{constructor(t){super(),this.children=t,this.leaf=!1}}},77690:(t,n,e)=>{e.d(n,{B8:()=>a,Ge:()=>h,I0:()=>f,KC:()=>s,hZ:()=>i,hs:()=>c,lw:()=>u,mg:()=>l,z0:()=>o});var r=e(34304);function o(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 i(t,n,e,r,o,i,l,a,s,u){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t[4]=i,t[5]=l,t[6]=a,t[7]=s,t[8]=u,t}function l(t,n){if(t===n){const e=n[1],r=n[2],o=n[5];t[1]=n[3],t[2]=n[6],t[3]=e,t[5]=n[7],t[6]=r,t[7]=o}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 a(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],l=n[4],a=n[5],s=n[6],u=n[7],c=n[8],f=c*l-a*u,h=-c*i+a*s,d=u*i-l*s;let p=e*f+r*h+o*d;return p?(p=1/p,t[0]=f*p,t[1]=(-c*r+o*u)*p,t[2]=(a*r-o*l)*p,t[3]=h*p,t[4]=(c*e-o*s)*p,t[5]=(-a*e+o*i)*p,t[6]=d*p,t[7]=(-u*e+r*s)*p,t[8]=(l*e-r*i)*p,t):null}function s(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],l=n[4],a=n[5],s=n[6],u=n[7],c=n[8];return t[0]=l*c-a*u,t[1]=o*u-r*c,t[2]=r*a-o*l,t[3]=a*s-i*c,t[4]=e*c-o*s,t[5]=o*i-e*a,t[6]=i*u-l*s,t[7]=r*s-e*u,t[8]=e*l-r*i,t}function u(t,n,e){const r=n[0],o=n[1],i=n[2],l=n[3],a=n[4],s=n[5],u=n[6],c=n[7],f=n[8],h=e[0],d=e[1],p=e[2],m=e[3],g=e[4],y=e[5],M=e[6],w=e[7],x=e[8];return t[0]=h*r+d*l+p*u,t[1]=h*o+d*a+p*c,t[2]=h*i+d*s+p*f,t[3]=m*r+g*l+y*u,t[4]=m*o+g*a+y*c,t[5]=m*i+g*s+y*f,t[6]=M*r+w*l+x*u,t[7]=M*o+w*a+x*c,t[8]=M*i+w*s+x*f,t}function c(t,n,e){const r=e[0],o=e[1],i=e[2];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t[6]=i*n[6],t[7]=i*n[7],t[8]=i*n[8],t}function f(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],l=e+e,a=r+r,s=o+o,u=e*l,c=r*l,f=r*a,h=o*l,d=o*a,p=o*s,m=i*l,g=i*a,y=i*s;return t[0]=1-f-p,t[3]=c-y,t[6]=h+g,t[1]=c+y,t[4]=1-u-p,t[7]=d-m,t[2]=h-g,t[5]=d+m,t[8]=1-u-f,t}function h(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],l=n[4],a=n[5],s=n[6],u=n[7],c=n[8],f=n[9],h=n[10],d=n[11],p=n[12],m=n[13],g=n[14],y=n[15],M=e*a-r*l,w=e*s-o*l,x=e*u-i*l,b=r*s-o*a,v=r*u-i*a,_=o*u-i*s,S=c*m-f*p,A=c*g-h*p,B=c*y-d*p,k=f*g-h*m,j=f*y-d*m,R=h*y-d*g;let I=M*R-w*j+x*k+b*B-v*A+_*S;return I?(I=1/I,t[0]=(a*R-s*j+u*k)*I,t[1]=(s*B-l*R-u*A)*I,t[2]=(l*j-a*B+u*S)*I,t[3]=(o*j-r*R-i*k)*I,t[4]=(e*R-o*B+i*A)*I,t[5]=(r*B-e*j-i*S)*I,t[6]=(m*_-g*v+y*b)*I,t[7]=(g*x-p*_-y*w)*I,t[8]=(p*v-m*x+y*M)*I,t):null}function d(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 p=u,m=d;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:s,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:function(t){const n=t[0],e=t[1],r=t[2],o=t[3],i=t[4],l=t[5],a=t[6],s=t[7],u=t[8];return n*(u*i-l*s)+e*(-u*o+l*a)+r*(s*o-i*a)},equals:function(t,n){const e=t[0],o=t[1],i=t[2],l=t[3],a=t[4],s=t[5],u=t[6],c=t[7],f=t[8],h=n[0],d=n[1],p=n[2],m=n[3],g=n[4],y=n[5],M=n[6],w=n[7],x=n[8],b=(0,r.FD)();return Math.abs(e-h)<=b*Math.max(1,Math.abs(e),Math.abs(h))&&Math.abs(o-d)<=b*Math.max(1,Math.abs(o),Math.abs(d))&&Math.abs(i-p)<=b*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(l-m)<=b*Math.max(1,Math.abs(l),Math.abs(m))&&Math.abs(a-g)<=b*Math.max(1,Math.abs(a),Math.abs(g))&&Math.abs(s-y)<=b*Math.max(1,Math.abs(s),Math.abs(y))&&Math.abs(u-M)<=b*Math.max(1,Math.abs(u),Math.abs(M))&&Math.abs(c-w)<=b*Math.max(1,Math.abs(c),Math.abs(w))&&Math.abs(f-x)<=b*Math.max(1,Math.abs(f),Math.abs(x))},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:o,fromQuat:f,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:a,isOrthoNormal:function(t){const n=(0,r.FD)(),e=t[0],o=t[1],i=t[2],l=t[3],a=t[4],s=t[5],u=t[6],c=t[7],f=t[8];return Math.abs(1-(e*e+l*l+u*u))<=n&&Math.abs(1-(o*o+a*a+c*c))<=n&&Math.abs(1-(i*i+s*s+f*f))<=n},mul:p,multiply:u,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:h,normalFromMat4Legacy:function(t,n){const e=n[0],r=n[1],o=n[2],i=n[4],l=n[5],a=n[6],s=n[8],u=n[9],c=n[10],f=c*l-a*u,h=-c*i+a*s,d=u*i-l*s,p=e*f+r*h+o*d;if(!p)return null;const m=1/p;return t[0]=f*m,t[1]=(-c*r+o*u)*m,t[2]=(a*r-o*l)*m,t[3]=h*m,t[4]=(c*e-o*s)*m,t[5]=(-a*e+o*i)*m,t[6]=d*m,t[7]=(-u*e+r*s)*m,t[8]=(l*e-r*i)*m,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],o=n[1],i=n[2],l=n[3],a=n[4],s=n[5],u=n[6],c=n[7],f=n[8],h=Math.sin(e),d=Math.cos(e);return t[0]=d*r+h*l,t[1]=d*o+h*a,t[2]=d*i+h*s,t[3]=d*l-h*r,t[4]=d*a-h*o,t[5]=d*s-h*i,t[6]=u,t[7]=c,t[8]=f,t},scale:c,scaleByVec2:function(t,n,e){const r=e[0],o=e[1];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t},set:i,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:m,subtract:d,translate:function(t,n,e){const r=n[0],o=n[1],i=n[2],l=n[3],a=n[4],s=n[5],u=n[6],c=n[7],f=n[8],h=e[0],d=e[1];return t[0]=r,t[1]=o,t[2]=i,t[3]=l,t[4]=a,t[5]=s,t[6]=h*r+d*l+u,t[7]=h*o+d*a+c,t[8]=h*i+d*s+f,t},transpose:l},Symbol.toStringTag,{value:"Module"}))},93223:(t,n,e)=>{e.d(n,{e:()=>i});var r=e(66552),o=e(10107);function i(t,n={}){const e=t instanceof r.J?t:new r.J(t,n),{alwaysWriteDefaults:i,default:l,ignoreUnknown:a=!0,name:s,nonNullable:u,readOnly:c=!1}=n;return(0,o.MZ)({type:a?e.apiValues:String,json:{type:e.jsonValues,default:l,name:s,read:!c&&{reader:e.read},write:{writer:e.write,alwaysWriteDefaults:i}},nonNullable:u,readOnly:c})}},95488:(t,n,e)=>{e.d(n,{I:()=>o});var r=e(11406);class o extends r.T{notify(){const t=this._observers;if(t&&t.length>0){const n=t.slice();for(const t of n)t.onInvalidated(),t.onCommitted()}}}},95696:(t,n,e)=>{e.d(n,{A:()=>c});var r,o=e(31635),i=e(69540),l=e(25482),a=e(10107),s=(e(44208),e(53966),e(87811),e(93223)),u=e(40608);let c=class extends(i.A.ClonableMixin(l.A)){static{r=this}constructor(t){super(t),this.type="georeferenced",this.origin=null}static{this.absolute=new r}};(0,o.Cg)([(0,s.e)({georeferenced:"georeferenced"},{readOnly:!0})],c.prototype,"type",void 0),(0,o.Cg)([(0,a.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],c.prototype,"origin",void 0),c=r=(0,o.Cg)([(0,u.$)("esri.geometry.support.MeshGeoreferencedVertexSpace")],c)},98764:(t,n,e)=>{e.d(n,{Y0:()=>u,lO:()=>c});var r=e(73941),o=e(16930),i=e(21325);const l=new o.A(r.fv),a=new o.A(r.FY),s=new o.A(r.LJ),u=new o.A(r.Ro);function c(t){const n=f.get(t);if(n)return n;let e=l;if(t)if(t===a)e=a;else if(t===s)e=s;else{const n=t.wkid,r=t.latestWkid;if(null!=n||null!=r)(0,i.tl)(n)||(0,i.tl)(r)?e=a:((0,i.ZL)(n)||(0,i.ZL)(r))&&(e=s);else{const n=t.wkt2??t.wkt;if(n){const t=n.toUpperCase();t===h?e=a:t===d&&(e=s)}}}return f.set(t,e),e}const f=new Map,h=a.wkt.toUpperCase(),d=s.wkt.toUpperCase()},98988:(t,n,e)=>{e.r(n),e.d(n,{canProjectWithoutEngine:()=>$,getTransformation:()=>C,getTransformations:()=>F,initializeProjection:()=>D,isEqualBaseGCS:()=>K,isLoaded:()=>T,isLoadedOrLoad:()=>O,isLoadedOrLoadFor:()=>P,load:()=>Y,project:()=>X,projectExtent:()=>it,projectMany:()=>E,projectMultipoint:()=>Q,projectOrLoad:()=>z,projectOrLoadMany:()=>N,projectPoint:()=>J,projectPolygon:()=>rt,projectPolyline:()=>nt,projectWithZConversion:()=>Z,projectWithoutEngine:()=>W,requiresLoad:()=>q,test:()=>V,tryProjectWithZConversion:()=>U,unload:()=>L});var r=e(49186),o=e(74887),i=e(62788),l=e(95488),a=e(51850),s=e(21276),u=e(73941),c=e(5443),f=e(48526),h=e(83290),d=e(86738),p=e(39829),m=e(82799),g=e(16930),y=e(9762),M=e(37539);function w(t,n,e,r,o,i){return x[0]=t,x[1]=n,x[2]=e,(0,y.projectBuffer)(x,r,0,o,i,0)}const x=(0,a.vt)();let b=0;class v{static fromGE(t){const n=new v;return n._wkt=t.wkt,n._wkid=t.wkid,n._isInverse=t.isInverse,n}constructor(t){this.uid=b++,t?(this._wkt=null!=t.wkt?t.wkt:null,this._wkid=null!=t.wkid?t.wkid:-1,this._isInverse=null!=t.isInverse&&!0===t.isInverse):(this._wkt=null,this._wkid=-1,this._isInverse=!1)}get wkt(){return this._wkt}set wkt(t){this._wkt=t,this.uid=b++}get wkid(){return this._wkid}set wkid(t){this._wkid=t,this.uid=b++}get isInverse(){return this._isInverse}set isInverse(t){this._isInverse=t,this.uid=b++}getInverse(){const t=new v;return t._wkt=this.wkt,t._wkid=this._wkid,t._isInverse=!this.isInverse,t}}class _{static cacheKey(t,n){return[t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??"",n.wkid?.toString()??"-1",n.wkt?.toString()??"",n.wkt2?.toString()??""].join()}static fromGE(t){const n=new _;let e="";for(const r of t.steps){const t=v.fromGE(r);n.steps.push(t),e+=t.uid.toString()+","}return n._cachedProjection={},n._gtlistentry=null,n._chain=e,n}constructor(t){if(this.steps=[],this._cachedProjection={},this._chain="",this._gtlistentry=null,t?.steps)for(const n of t.steps)n instanceof v?this.steps.push(n):this.steps.push(new v({wkid:n.wkid,wkt:n.wkt,isInverse:n.isInverse}))}getInverse(){const t=new _;t.steps=[];for(let n=this.steps.length-1;n>=0;n--){const e=this.steps[n];t.steps.push(e.getInverse())}return t}getGTListEntry(){let t="";for(const n of this.steps)t+=n.uid.toString()+",";return t!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=t),this._gtlistentry}assignCachedGe(t,n,e){this._cachedProjection[_.cacheKey(t,n)]=e}getCachedGeTransformation(t,n){let e="";for(const t of this.steps)e+=t.uid.toString()+",";e!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=e);const r=this._cachedProjection[_.cacheKey(t,n)];return void 0===r?null:r}}var S=e(21325),A=e(62815);let B=null,k=null,j=null,R={};const I=new l.I;function T(){return!!B&&(0,h.i)()}function O(){return!!T()||((0,i.gc)(I),Y(),!1)}function P(t,n){return!t||!n||$(t,n)||O()}function q(t,n){return!$(t,n)&&!T()}function Y(t){return null==j&&(j=Promise.all([(0,h.l)(),e.e(9930).then(e.bind(e,49930)).then(t=>t.g),e.e(2731).then(e.bind(e,12731))])),j.then(([,n,{hydratedAdapter:e}])=>{(0,o.Te)(t),k=e,B=n.default,B._enableProjection(h.p),I.notify()})}function X(t,n,e=null,r=null){return Array.isArray(t)?0===t.length?[]:((0,s.H)(t),E(k,t,t[0].spatialReference,n,e,r)):((0,s.f)(t),E(k,[t],t.spatialReference,n,e,r)[0])}function E(t,n,e,r,o=null,i=null){if(null==e||null==r)return n;if($(e,r,o))return n.map(t=>W(t,e,r));if(null==o&&(0,u.jA)(e))return n.map(t=>W(t,e,g.A.WGS84)).map(t=>U(t,r));if(null==o&&(0,u.jA)(r))return n.map(t=>U(t,g.A.WGS84)).map(t=>W(t,g.A.WGS84,r));if(null==o){const t=_.cacheKey(e,r);void 0!==R[t]?o=R[t]:(null==(o=C(e,r,void 0))&&(o=new _),R[t]=o)}if(null==B||null==t)throw new G;return null!=i?B._project(t,n,e,r,o,i):B._project(t,n,e,r,o)}function z(t,n){const e=N([t],n);return null!=e.pending?{pending:e.pending,geometry:null}:null!=e.geometries?{pending:null,geometry:e.geometries[0]}:{pending:null,geometry:null}}function N(t,n){if(!T())for(const e of t)if(null!=e&&!(0,S.aI)(e.spatialReference,n)&&(0,S.fn)(e.spatialReference)&&(0,S.fn)(n)&&!$(e.spatialReference,n))return(0,i.gc)(I),{pending:Y(),geometries:null};return{pending:null,geometries:t.map(t=>null==t?null:(0,S.aI)(t.spatialReference,n)?t:(0,S.fn)(t.spatialReference)&&(0,S.fn)(n)?U(t,n):null)}}function C(t,n,e=null){if(null==t||null==n)return null;if(null==B||null==k)throw new G;const r=B._getTransformation(k,t,n,e,e?.spatialReference);return null!==r?_.fromGE(r):null}function F(t,n,e=null){if(null==B||null==k)throw new G;const r=B._getTransformationBySuitability(k,t,n,e,e?.spatialReference);if(null!==r){const t=[];for(const n of r)t.push(_.fromGE(n));return t}return[]}class G extends r.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function L(){B=null,k=null,j=null,R={}}const V={get loadPromise(){return j}};function U(t,n){try{const e=X(t,n);if(null==e)return null;"xmin"in t&&"xmin"in e&&(e.zmin=t.zmin,e.zmax=t.zmax);const r=(0,A.N)(e.type,t.spatialReference,n);return null!=r&&r(e),e}catch(t){if(!(t instanceof G))throw t;return null}}async function Z(t,n,e){const r=t.spatialReference;return null!=r&&null!=n&&await D(r,n,null,e),U(t,n)}function $(t,n,e){return!e&&(!!(0,S.aI)(t,n)||(0,S.fn)(t)&&(0,S.fn)(n)&&!!(0,M.jd)(t,n))}function K(t,n){if((0,S.aI)(t,n))return!0;if(!(0,S.fn)(t)||!(0,S.fn)(n))return!1;const e=(0,S.oT)(t)||(0,S.K8)(t)||(0,S.x1)(t),r=(0,S.oT)(n)||(0,S.K8)(n)||(0,S.x1)(n);return e&&r}async function D(t,n,e,r){if(T())return(0,o.NO)(r);if(Array.isArray(t)){for(const{source:n,dest:e,geographicTransformation:o}of t)if(n&&e&&!$(n,e,o))return Y(r)}else if(t&&n&&!$(t,n,e))return Y(r);return(0,o.NO)(r)}function W(t,n,e){return t?"x"in t?H(t,n,new d.A,e,0):"xmin"in t?lt(t,n,new c.A,e,0):"rings"in t?ot(t,n,new p.A,e,0):"paths"in t?et(t,n,new m.A,e,0):"points"in t?tt(t,n,new f.A,e,0):null:null}function J(t,n,e=n.spatialReference,r=0){return null!=e&&null!=t.spatialReference&&null!=H(t,t.spatialReference,n,e,r)}function H(t,n,e,r,o){st[0]=t.x,st[1]=t.y;const i=t.z;return st[2]=void 0!==i?i:o,(0,y.projectBuffer)(st,n,0,st,r,0)?(e.x=st[0],e.y=st[1],e.spatialReference=r,void 0!==i||(0,u.xP)(r)?(e.z=st[2],e.hasZ=!0):(e.z=void 0,e.hasZ=!1),void 0===t.m?(e.m=void 0,e.hasM=!1):(e.m=t.m,e.hasM=!0),e):null}function Q(t,n,e=n.spatialReference,r=0){return null!=t.spatialReference&&null!=e&&null!=tt(t,t.spatialReference,n,e,r)}function tt(t,n,e,r,o){const{points:i,hasZ:l,hasM:a}=t,s=[],c=i.length,f=[];for(const t of i)f.push(t[0],t[1],l?t[2]:o);if(!(0,y.projectBuffer)(f,n,0,f,r,0,c))return null;const h=l||(0,u.xP)(r);for(let t=0;t<c;++t){const n=3*t,e=f[n],r=f[n+1];h&&a?s.push([e,r,f[n+2],i[t][3]]):h?s.push([e,r,f[n+2]]):a?s.push([e,r,i[t][2]]):s.push([e,r])}return e.points=s,e.spatialReference=r,e.hasZ=l,e.hasM=a,e}function nt(t,n,e=n.spatialReference,r=0){return null!=t.spatialReference&&null!=e&&null!=et(t,t.spatialReference,n,e,r)}function et(t,n,e,r,o){const{paths:i,hasZ:l,hasM:a}=t,s=[];if(!at(i,l??!1,a??!1,n,s,r,o))return null;const c=l||(0,u.xP)(r);return e.paths=s,e.spatialReference=r,e.hasZ=c,e.hasM=a,e}function rt(t,n,e=n.spatialReference,r=0){return null!=t.spatialReference&&null!=e&&null!=ot(t,t.spatialReference,n,e,r)}function ot(t,n,e,r,o){const{rings:i,hasZ:l,hasM:a}=t,s=[];if(!at(i,l??!1,a??!1,n,s,r,o))return null;const c=l||(0,u.xP)(r);return e.rings=s,e.spatialReference=r,e.hasZ=c,e.hasM=a,e}function it(t,n,e=n.spatialReference,r=0){return null!=t.spatialReference&&null!=e&&null!=lt(t,t.spatialReference,n,e,r)}function lt(t,n,e,r,o){const{xmin:i,ymin:l,xmax:a,ymax:s,hasZ:c,hasM:f}=t;if(!w(i,l,c?t.zmin:o,n,st,r))return null;const h=c||(0,u.xP)(r);return e.xmin=st[0],e.ymin=st[1],h&&(e.zmin=st[2]),w(a,s,c?t.zmax:o,n,st,r)?(e.xmax=st[0],e.ymax=st[1],h&&(e.zmax=st[2]),f&&(e.mmin=t.mmin,e.mmax=t.mmax),e.spatialReference=r,e):null}function at(t,n,e,r,o,i,l=0){const a=new Array;for(const e of t)for(const t of e)a.push(t[0],t[1],n?t[2]:l);if(!(0,y.projectBuffer)(a,r,0,a,i,0))return!1;let s=0;o.length=0;const c=n||(0,u.xP)(i);for(const n of t){const t=new Array;for(const r of n)c&&e?t.push([a[s++],a[s++],a[s++],r[3]]):c?t.push([a[s++],a[s++],a[s++]]):e?(t.push([a[s++],a[s++],r[2]]),s++):(t.push([a[s++],a[s++]]),s++);o.push(t)}return!0}const st=(0,a.vt)()}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5845],{9093:(t,n,e)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[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]]}e.d(n,{o8:()=>o,vt:()=>r,zK:()=>i});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:o,create:r,fromValues:function(t,n,e,r,o,i,l,a,s,u,c,f,h,d,p,m){return[t,n,e,r,o,i,l,a,s,u,c,f,h,d,p,m]}},Symbol.toStringTag,{value:"Module"}))},9762:(t,n,e)=>{e.r(n),e.d(n,{projectBuffer:()=>o});var r=e(37539);function o(t,n,e,o,i,l,a=Math.floor(t.length/3)){const s=(0,r.jd)(n,i);if(null==s)return!1;if(s===r.pO){if(t===o&&e===l)return!0;const n=e+3*a;for(let r=e,i=l;r<n;r++,i++)o[i]=t[r];return!0}const u=e+3*a;for(let n=e,r=l;n<u;n+=3,r+=3)s(t,n,o,r);return!0}},11006:(t,n,e)=>{function r(t,n,e,r,i){o(t,n,e||0,r||t.length-1,i||l)}function o(t,n,e,r,l){for(;r>e;){if(r-e>600){var a=r-e+1,s=n-e+1,u=Math.log(a),c=.5*Math.exp(2*u/3),f=.5*Math.sqrt(u*c*(a-c)/a)*(s-a/2<0?-1:1);o(t,n,Math.max(e,Math.floor(n-s*c/a+f)),Math.min(r,Math.floor(n+(a-s)*c/a+f)),l)}var h=t[n],d=e,p=r;for(i(t,e,n),l(t[r],h)>0&&i(t,e,r);d<p;){for(i(t,d,p),d++,p--;l(t[d],h)<0;)d++;for(;l(t[p],h)>0;)p--}0===l(t[e],h)?i(t,e,p):i(t,++p,r),p<=n&&(e=p+1),n<=p&&(r=p-1)}}function i(t,n,e){var r=t[n];t[n]=t[e],t[e]=r}function l(t,n){return t<n?-1:t>n?1:0}e.d(n,{q:()=>r})},18251:(t,n,e)=>{e.d(n,{A:()=>c});var r=e(31635),o=e(69540),i=e(25482),l=e(10107),a=(e(44208),e(53966),e(87811),e(93223)),s=e(40608),u=e(51850);let c=class extends(o.A.ClonableMixin(i.A)){constructor(t){super(t),this.type="local",this.origin=(0,u.vt)()}};(0,r.Cg)([(0,a.e)({local:"local"},{readOnly:!0})],c.prototype,"type",void 0),(0,r.Cg)([(0,l.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],c.prototype,"origin",void 0),c=(0,r.Cg)([(0,s.$)("esri.geometry.support.MeshLocalVertexSpace")],c)},22141:(t,n,e)=>{e.d(n,{$5:()=>v,CN:()=>M,JP:()=>y,KM:()=>S,Mv:()=>B,X4:()=>w,gr:()=>b,qs:()=>_,si:()=>x,xA:()=>A});var r=e(34727),o=e(77690),i=e(29242),l=e(58083),a=e(9093),s=e(38954),u=e(51850),c=e(48353),f=e(9762),h=(e(79258),e(21325)),d=e(28735),p=e(13030),m=e(73354),g=e(65686);const y="Projection may be possible after calling projection.load().";function M(t,n,e,r){t.error(`Failed to project from (wkid:${n.wkid}) to (wkid:${e.wkid}).${r?" ":""}${r}`)}function w(t,n,e,r,o,i){return j(0,p.xs.fromTypedArray(t),0,p.Xm.fromTypedArray(n),e,p.Xm.fromTypedArray(r),o,p.xs.fromTypedArray(i))?i:null}function x(t,n,e,r,o,i){return j(1,p.xs.fromTypedArray(t),0,p.Xm.fromTypedArray(n),e,p.Xm.fromTypedArray(r),o,p.xs.fromTypedArray(i))?i:null}function b(t,n,e,r){return(0,f.projectBuffer)(t,n,0,e,r,0)?e:null}function v(t,n,e,r){return(0,f.projectBuffer)(t,n,0,e,r,0)?e:null}function _(t,n,e){return(0,o.Ge)(O,e),(0,m.b)(n,t,O),(0,r.or)(O)&&(0,m.n)(n,n),n}function S(t,n,e){return(0,o.z0)(O,e),(0,g.t)(n,t,O),(0,r.or)(O)&&(0,m.n)(n,n,4),n}function A(t,n,e,r,o,i){if(!j(0,p.xs.fromTypedArray(t,4*Float32Array.BYTES_PER_ELEMENT),1,p.Xm.fromTypedArray(n),e,p.Xm.fromTypedArray(r),o,p.xs.fromTypedArray(i,4*Float32Array.BYTES_PER_ELEMENT)))return null;for(let n=3;n<t.length;n+=4)i[n]=t[n];return i}function B(t,n,e,r,o,i){if(!j(1,p.xs.fromTypedArray(t,16),1,p.Xm.fromTypedArray(n),e,p.Xm.fromTypedArray(r),o,p.xs.fromTypedArray(i,16)))return null;for(let n=3;n<t.length;n+=4)i[n]=t[n];return i}function k(t,n,e,r,i){switch((0,c.l)(r,e,T,r),1===t&&(0,l.B8)(T,T),n){case 0:return(0,o.Ge)(i,T);case 1:return(0,o.z0)(i,T)}}function j(t,n,e,r,o,i,l,a){if(!n)return;const u=r.count;if(function(t){return t.isWGS84||(0,h.x1)(t)||(0,h.q8)(t)||(0,h.KQ)(t)}(o))for(let r=0;r<u;r++)i.getVec(r,R),n.getVec(r,I),(0,s.o)(I,I,k(t,e,R,l,O)),a.setVec(r,I);else for(let o=0;o<u;o++){i.getVec(o,R),n.getVec(o,I);const u=(0,d.jg)(r.get(o,1));let c=Math.cos(u);1===e!=(0===t)&&(c=1/c),k(t,e,R,l,O),0===t?(O[0]*=c,O[1]*=c,O[2]*=c,O[3]*=c,O[4]*=c,O[5]*=c):(O[0]*=c,O[3]*=c,O[6]*=c,O[1]*=c,O[4]*=c,O[7]*=c),(0,s.o)(I,I,O),(0,s.n)(I,I),a.setVec(o,I)}return a}const R=(0,u.vt)(),I=(0,u.vt)(),T=(0,a.vt)(),O=(0,i.vt)()},27615:(t,n,e)=>{e.d(n,{CK:()=>s,Hq:()=>a,MW:()=>u,TE:()=>c,yJ:()=>f});var r=e(38954),o=e(86738),i=e(95696),l=e(18251);function a(t){return null!=t.origin}function s(t){return a(t.vertexSpace)}function u(t,n){if(!a(t))return null;const[e,r,i]=t.origin;return new o.A({x:e,y:r,z:i,spatialReference:n})}function c(t,n){const{x:e,y:r,z:o,spatialReference:a}=t,s=[e,r,o??0];return"local"===(n?.vertexSpace??function(t){return t.isGeographic||t.isWebMercator?"local":"georeferenced"}(a))?new l.A({origin:s}):new i.A({origin:s})}function f(t,n){return t.type===n.type&&(t.origin===n.origin||null!=t.origin&&null!=n.origin&&(0,r.q)(t.origin,n.origin))}},29242:(t,n,e)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function o(t,n,e,r,o,i,l,a,s){return[t,n,e,r,o,i,l,a,s]}e.d(n,{fA:()=>o,vt:()=>r,zK:()=>i});const i=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,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:o},Symbol.toStringTag,{value:"Module"}))},31635:(t,n,e)=>{function r(t,n,e,r){var o,i=arguments.length,l=i<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,n,e,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(l=(i<3?o(l):i>3?o(n,e,l):o(n,e))||l);return i>3&&l&&Object.defineProperty(n,e,l),l}function o(t,n,e){if(null!=n){if("object"!=typeof n&&"function"!=typeof n)throw new TypeError("Object expected.");var r,o;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&&(o=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");o&&(r=function(){try{o.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:()=>l,mS:()=>o}),Object.create,Object.create;var i="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 l(t){function n(n){t.error=t.hasError?new i(n,t.error,"An error was suppressed during disposal."):n,t.hasError=!0}var e,r=0;return function o(){for(;e=t.stack.pop();)try{if(!e.async&&1===r)return r=0,t.stack.push(e),Promise.resolve().then(o);if(e.dispose){var i=e.dispose.call(e.value);if(e.async)return r|=2,Promise.resolve(i).then(o,function(t){return n(t),o()})}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}()}},37539:(t,n,e)=>{e.d(n,{pO:()=>m,jd:()=>h,Tp:()=>d,w5:()=>f});var r=e(34727),o=e(83047),i=e(73941),l=e(79258);Math.PI;const a=l.$O.radius,s=l.$O.eccentricitySquared,u={a1:a*s,a2:a*s*a*s,a3:a*s*s/2,a4:a*s*a*s*2.5,a5:a*s+a*s*s/2,a6:1-s};l.$O.radius,l.$O.flattening,l.Sw.radius,l.Sw.flattening,l.sH.radius,l.sH.flattening,l.sH.radius;var c=e(21325);const f={2:{5:m,7:null,9:null,10:m,1:_,6:null,8:null,0:null,3:y,11:M,2:m,4:j},5:{5:m,7:null,9:null,10:m,1:_,6:null,8:null,0:null,3:y,11:M,2:m,4:j},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:b,0:null,3:null,11:null,2:null,4:null},3:{5:g,7:null,9:null,10:g,1:function(t,n,e,r){const o=t[n]/q,i=P-2*Math.atan(Math.exp(-t[n+1]/q)),l=q+t[n+2],a=Math.cos(i)*l;e[r]=Math.cos(o)*a,e[r+1]=Math.sin(o)*a,e[r+2]=Math.sin(i)*l},6:null,8:null,0:null,3:m,11:function(t,n,e,r){g(t,n,e,r),M(e,r,e,r)},2:g,4:function(t,n,e,r){g(t,n,e,r),j(e,r,e,r)}},4:{5:R,7:null,9:null,10:R,1:function(t,n,e,r){R(t,n,e,r),_(e,r,e,r)},6:null,8:null,0:null,3:function(t,n,e,r){R(t,n,e,r),y(e,r,e,r)},11:function(t,n,e,r){R(t,n,e,r),M(e,r,e,r)},2:R,4:m},1:{5:k,7:null,9:null,10:k,1:m,6:null,8:null,0:null,3:function(t,n,e,r){k(t,n,e,r),y(e,r,e,r)},11:function(t,n,e,r){k(t,n,e,r),M(e,r,e,r)},2:k,4:function(t,n,e,r){k(t,n,e,r),j(e,r,e,r)}},6:{5:null,7:B,9:null,10:B,1:null,6:m,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:A,10:A,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:_,6:v,8:b,0:null,3:y,11:M,2:m,4:j},11:{5:w,7:null,9:null,10:w,1:function(t,n,e,r){w(t,n,e,r),_(e,r,e,r)},6:null,8:null,0:null,3:function(t,n,e,r){w(t,n,e,r),y(e,r,e,r)},11:m,2:w,4:function(t,n,e,r){w(t,n,e,r),j(e,r,e,r)}}};function h(t,n){return d(t,n)?.projector}function d(t,n){if(null==t||null==n)return null;if(I.source.spatialReference===t&&I.dest.spatialReference===n)return I;const e=p(t,I.source),r=p(n,I.dest);return 0===e&&0===r?(0,c.aI)(t,n)?I.projector=m:I.projector=null:I.projector=f[e][r],I}function p(t,n){return t?n.spatialReference===t?n.spatialReferenceId:(n.spatialReference=t,"metersPerUnit"in n&&(n.metersPerUnit=(0,o.GA)(t,1)),(0,i.jA)(t)?n.spatialReferenceId=1:(0,c.oT)(t)?n.spatialReferenceId=2:(0,c.K8)(t)?n.spatialReferenceId=3:(0,c.r1)(t)?n.spatialReferenceId=11:t.wkt===i.Ro.wkt?n.spatialReferenceId=4:4490===t.wkid?n.spatialReferenceId=5:t.wkt===i.FY.wkt?n.spatialReferenceId=6:t.wkt===i.LJ.wkt?n.spatialReferenceId=8:(0,c.q8)(t)?n.spatialReferenceId=7:(0,c.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])}function g(t,n,e,r){e[r]=O*(t[n]/q),e[r+1]=O*(P-2*Math.atan(Math.exp(-t[n+1]/q))),e[r+2]=t[n+2]}function y(t,n,e,o){!function(t,n,e,o,i){const l=.4999999*Math.PI,a=(0,r.qE)(T*t[n+1],-l,l),s=Math.sin(a);e[o++]=T*t[n]*i.radius,e[o++]=i.halfSemiMajorAxis*Math.log((1+s)/(1-s)),e[o]=t[n+2]}(t,n,e,o,l.$O)}function M(t,n,e,r){e[r]=t[n]*Y,e[r+1]=t[n+1]*Y,e[r+2]=t[n+2]}function w(t,n,e,r){e[r]=t[n]*X,e[r+1]=t[n+1]*X,e[r+2]=t[n+2]}function x(t,n,e,r,o){const i=o+t[n+2],l=T*t[n+1],a=T*t[n],s=Math.cos(l)*i;e[r]=Math.cos(a)*s,e[r+1]=Math.sin(a)*s,e[r+2]=Math.sin(l)*i}function b(t,n,e,r){x(t,n,e,r,l.Sw.radius)}function v(t,n,e,r){x(t,n,e,r,l.sH.radius)}function _(t,n,e,r){x(t,n,e,r,l.$O.radius)}function S(t,n,e,o,i){const l=t[n],a=t[n+1],s=t[n+2],u=Math.sqrt(l*l+a*a+s*s),c=(0,r.YN)(s/(0===u?1:u)),f=Math.atan2(a,l);e[o++]=O*f,e[o++]=O*c,e[o]=u-i}function A(t,n,e,r){S(t,n,e,r,l.Sw.radius)}function B(t,n,e,r){S(t,n,e,r,l.sH.radius)}function k(t,n,e,r){S(t,n,e,r,l.$O.radius)}function j(t,n,e,r){!function(t,n,e,r,o){const i=T*t[n],l=T*t[n+1],a=t[n+2],s=Math.sin(l),u=Math.cos(l),c=o.radius/Math.sqrt(1-o.eccentricitySquared*s*s);e[r++]=(c+a)*u*Math.cos(i),e[r++]=(c+a)*u*Math.sin(i),e[r++]=(c*(1-o.eccentricitySquared)+a)*s}(t,n,e,r,l.$O)}function R(t,n,e,r){const o=u,i=t[n],a=t[n+1],s=t[n+2];let c,f,h,d,p,m,g,y,M,w,x,b,v,_,S,A,B,k,j,R,I;c=Math.abs(s),f=i*i+a*a,h=Math.sqrt(f),d=f+s*s,p=Math.sqrt(d),R=Math.atan2(a,i),m=s*s/d,g=f/d,_=o.a2/p,S=o.a3-o.a4/p,g>.3?(y=c/p*(1+g*(o.a1+_+m*S)/p),j=Math.asin(y),w=y*y,M=Math.sqrt(1-w)):(M=h/p*(1-m*(o.a5-_-g*S)/p),j=Math.acos(M),w=1-M*M,y=Math.sqrt(w)),x=1-l.$O.eccentricitySquared*w,b=l.$O.radius/Math.sqrt(x),v=o.a6*b,_=h-b*M,S=c-v*y,B=M*_+y*S,A=M*S-y*_,k=A/(v/x+B),j+=k,I=B+A*k/2,s<0&&(j=-j),e[r++]=O*R,e[r++]=O*j,e[r]=I}const I={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:m},T=(0,r.kU)(1),O=(0,r.KJ)(1),P=.5*Math.PI,q=l.$O.radius,Y=q*Math.PI/180,X=180/(q*Math.PI)},38419:(t,n,e)=>{e.r(n),e.d(n,{default:()=>a});var r=e(44208),o=e(75503),i=e(95696),l=e(72258);class a{async createIndex(t,n){const e=new Array;if(!t.vertexAttributes?.position)return new o.wq;const r=function(t){const{vertexAttributes:{position:n},vertexSpace:e,spatialReference:r,transform:o}=t,a=(0,l.UR)({vertexAttributes:{position:n},vertexSpace:e,spatialReference:r,transform:o},i.A.absolute,{allowBufferReuse:!0})?.position;return a?!t.components||t.components.some(t=>!t.faces)?{position:a.buffer}:{position:a.buffer,components:t.components.map(t=>t.faces)}:null}(t),a=null!=n?await n.invoke("createIndexThread",r,{transferList:e}):this.createIndexThread(r).result;return s().fromJSON(a)}createIndexThread(t){const n=s();if(!t)return{result:n.toJSON()};const e=new Float64Array(t.position);return t.components?function(t,n,e){let r=0;for(const t of e)r+=t.length/3;const o=new Array(r);let i=0;for(const t of e)for(let e=0;e<t.length;e+=3)o[i++]=u(n,3*t[e],3*t[e+1],3*t[e+2]);return t.load(o),{result:t.toJSON()}}(n,e,t.components.map(t=>new Uint32Array(t))):function(t,n){const e=new Array(n.length/9);let r=0;for(let t=0;t<n.length;t+=9)e[r++]=u(n,t,t+3,t+6);return t.load(e),{result:t.toJSON()}}(n,e)}}function s(){return new o.wq(9,(0,r.A)("esri-csp-restrictions")?t=>t:[".minX",".minY",".maxX",".maxY"])}function u(t,n,e,r){return{minX:Math.min(t[n],t[e],t[r]),maxX:Math.max(t[n],t[e],t[r]),minY:Math.min(t[n+1],t[e+1],t[r+1]),maxY:Math.max(t[n+1],t[e+1],t[r+1]),p0:[t[n],t[n+1],t[n+2]],p1:[t[e],t[e+1],t[e+2]],p2:[t[r],t[r+1],t[r+2]]}}},38954:(t,n,e)=>{e.d(n,{A:()=>p,B:()=>d,C:()=>c,D:()=>f,E:()=>P,F:()=>E,H:()=>N,a:()=>q,b:()=>y,c:()=>l,d:()=>u,e:()=>S,f:()=>s,g:()=>g,h:()=>A,i:()=>a,j:()=>M,k:()=>x,l:()=>i,m:()=>B,n:()=>_,o:()=>j,q:()=>O,r:()=>v,s:()=>w,t:()=>k,u:()=>b,v:()=>R,w:()=>h,x:()=>z,y:()=>C,z:()=>m});var r=e(51850),o=e(34304);function i(t){const n=t[0],e=t[1],r=t[2];return Math.sqrt(n*n+e*e+r*r)}function l(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function a(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,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}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}function c(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t}function f(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t}function h(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function d(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function p(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}function m(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}function g(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function y(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}function M(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2];return Math.sqrt(e*e+r*r+o*o)}function w(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2];return e*e+r*r+o*o}function x(t){const n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function b(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function v(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function _(t,n){const e=n[0],r=n[1],o=n[2];let i=e*e+r*r+o*o;return i>0&&(i=1/Math.sqrt(i),t[0]=n[0]*i,t[1]=n[1]*i,t[2]=n[2]*i),t}function S(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function A(t,n,e){const r=n[0],o=n[1],i=n[2],l=e[0],a=e[1],s=e[2];return t[0]=o*s-i*a,t[1]=i*l-r*s,t[2]=r*a-o*l,t}function B(t,n,e,r){const o=n[0],i=n[1],l=n[2];return t[0]=o+r*(e[0]-o),t[1]=i+r*(e[1]-i),t[2]=l+r*(e[2]-l),t}function k(t,n,e){const r=n[0],o=n[1],i=n[2];return t[0]=e[0]*r+e[4]*o+e[8]*i+e[12],t[1]=e[1]*r+e[5]*o+e[9]*i+e[13],t[2]=e[2]*r+e[6]*o+e[10]*i+e[14],t}function j(t,n,e){const r=n[0],o=n[1],i=n[2];return t[0]=r*e[0]+o*e[3]+i*e[6],t[1]=r*e[1]+o*e[4]+i*e[7],t[2]=r*e[2]+o*e[5]+i*e[8],t}function R(t,n,e){const r=e[0],o=e[1],i=e[2],l=e[3],a=n[0],s=n[1],u=n[2],c=o*u-i*s,f=i*a-r*u,h=r*s-o*a,d=o*h-i*f,p=i*c-r*h,m=r*f-o*c,g=2*l;return t[0]=a+c*g+2*d,t[1]=s+f*g+2*p,t[2]=u+h*g+2*m,t}const I=(0,r.vt)(),T=(0,r.vt)();function O(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function P(t,n,e){const r=e[0]-n[0],o=e[1]-n[1],i=e[2]-n[2];let l=r*r+o*o+i*i;return l>0?(l=1/Math.sqrt(l),t[0]=r*l,t[1]=o*l,t[2]=i*l,t):(t[0]=0,t[1]=0,t[2]=0,t)}const q=u,Y=c,X=f,E=M,z=w,N=i,C=x;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:s,angle:function(t,n){_(I,t),_(T,n);const e=S(I,T);return e>1?0:e<-1?Math.PI:Math.acos(e)},bezier:function(t,n,e,r,o,i){const l=1-i,a=l*l,s=i*i,u=a*l,c=3*i*a,f=3*s*l,h=s*i;return t[0]=n[0]*u+e[0]*c+r[0]*f+o[0]*h,t[1]=n[1]*u+e[1]*c+r[1]*f+o[1]*h,t[2]=n[2]*u+e[2]*c+r[2]*f+o[2]*h,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},clamp:function(t,n=0,e=1){return t[0]=Math.min(Math.max(t[0],n),e),t[1]=Math.min(Math.max(t[1],n),e),t[2]=Math.min(Math.max(t[2],n),e),t},copy:l,cross:A,crossAndNormalize:function(t,n,e){const r=n[0],o=n[1],i=n[2],l=e[0],a=e[1],s=e[2],u=o*s-i*a,c=i*l-r*s,f=r*a-o*l,h=Math.sqrt(u*u+c*c+f*f);return t[0]=u/h,t[1]=c/h,t[2]=f/h,t},direction:P,dist:E,distance:M,div:X,divide:f,dot:S,equals:function(t,n){if(t===n)return!0;const e=t[0],r=t[1],i=t[2],l=n[0],a=n[1],s=n[2],u=(0,o.FD)();return Math.abs(e-l)<=u*Math.max(1,Math.abs(e),Math.abs(l))&&Math.abs(r-a)<=u*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(i-s)<=u*Math.max(1,Math.abs(i),Math.abs(s))},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},hermite:function(t,n,e,r,o,i){const l=i*i,a=l*(2*i-3)+1,s=l*(i-2)+i,u=l*(i-1),c=l*(3-2*i);return t[0]=n[0]*a+e[0]*s+r[0]*u+o[0]*c,t[1]=n[1]*a+e[1]*s+r[1]*u+o[1]*c,t[2]=n[2]*a+e[2]*s+r[2]*u+o[2]*c,t},inverse:v,len:N,length:i,lerp:B,max:m,min:p,mul:Y,multiply:c,negate:b,normalize:_,random:function(t,n=1){const e=o.Ov,r=2*e()*Math.PI,i=2*e()-1,l=Math.sqrt(1-i*i)*n;return t[0]=Math.cos(r)*l,t[1]=Math.sin(r)*l,t[2]=i*n,t},rotateX:function(t,n,e,r){const o=[],i=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],i[0]=o[0],i[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),i[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],t},rotateY:function(t,n,e,r){const o=[],i=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],i[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),i[1]=o[1],i[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],t},rotateZ:function(t,n,e,r){const o=[],i=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],i[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),i[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),i[2]=o[2],t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},scale:g,scaleAndAdd:y,set:a,sign:d,sqrDist:z,sqrLen:C,squaredDistance:w,squaredLength:x,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:q,subtract:u,transformMat3:j,transformMat4:k,transformQuat:R},Symbol.toStringTag,{value:"Module"}))},40876:(t,n,e)=>{e.d(n,{Eq:()=>d,G1:()=>m,TS:()=>i,Tf:()=>M,V6:()=>o,Vm:()=>p,ay:()=>s,c1:()=>g,c4:()=>l,j5:()=>u,lT:()=>f,oW:()=>c});const r={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function o(t){return!!r[t]||!!r[t.toLowerCase()]}function i(t){return r[t]??r[t.toLowerCase()]}function l(t){return[...i(t)]}function a(t,n,e){e<0&&++e,e>1&&--e;const r=6*e;return r<1?t+(n-t)*r:2*e<1?n:3*e<2?t+(n-t)*(2/3-e)*6:t}function s(t,n,e,r=1){const o=(t%360+360)%360/360,i=e<=.5?e*(n+1):e+n-e*n,l=2*e-i;return[Math.round(255*a(l,i,o+1/3)),Math.round(255*a(l,i,o)),Math.round(255*a(l,i,o-1/3)),r]}function u(t){const n=t.length>5,e=n?8:4,r=(1<<e)-1,o=n?1:17,i=n?9===t.length:5===t.length;let l=Number("0x"+t.slice(1));if(isNaN(l))return null;const a=[0,0,0,1];let s;return i&&(s=l&r,l>>=e,a[3]=o*s/255),s=l&r,l>>=e,a[2]=o*s,s=l&r,l>>=e,a[1]=o*s,s=l&r,l>>=e,a[0]=o*s,a}function c(t){if("#"!==t[0]||isNaN(Number(`0x${t.slice(1)}`)))return null;switch(t.length){case 4:case 5:{const n=parseInt(t.slice(1,2),16),e=parseInt(t.slice(2,3),16),r=parseInt(t.slice(3,4),16),o=4===t.length?15:parseInt(t.slice(4),16);return[n+16*n,e+16*e,r+16*r,(o+16*o)/255]}case 7:case 9:return[parseInt(t.slice(1,3),16),parseInt(t.slice(3,5),16),parseInt(t.slice(5,7),16),(7===t.length?255:parseInt(t.slice(7),16))/255];default:return null}}function f(t){const n=t.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(n){const t=n[2].split(/\s*,\s*/),e=n[1];if("rgb"===e&&3===t.length||"rgba"===e&&4===t.length){const n=t[0];if("%"===n.charAt(n.length-1)){const n=t.map(t=>2.56*parseFloat(t));return 4===t.length&&(n[3]=parseFloat(t[3])),h(n)}return h(t.map(t=>parseFloat(t)))}if("hsl"===e&&3===t.length||"hsla"===e&&4===t.length)return s(parseFloat(t[0]),parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3]??"1"))}return null}function h(t){return t[0]=g(t[0]),t[1]=g(t[1]),t[2]=g(t[2]),t[3]=4===t.length?m(t[3]):1,t}function d(t){let n=o(t)?i(t):null;return n??=f(t),n??=c(t),n}function p(t){const n=d(t);return null!=n?[n[0]/255,n[1]/255,n[2]/255,n[3]]:null}function m(t){return y(t,0,1)}function g(t){return Math.round(y(t,0,255))}function y(t,n,e){return t=Number(t),isNaN(t)?e:t<n?n:t>e?e:t}const M=2.2},48163:(t,n,e)=>{function r(){return[0,0]}function o(t){return[t[0],t[1]]}function i(t,n){return[t,n]}function l(){return i(1,1)}function a(){return i(1,0)}function s(){return i(0,1)}e.d(n,{Un:()=>u,fA:()=>i,o8:()=>o,vt:()=>r});const u=l(),c=a(),f=s();Object.freeze(Object.defineProperty({__proto__:null,ONES:u,UNIT_X:c,UNIT_Y:f,ZEROS:[0,0],clone:o,create:r,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){const e=Math.min(2,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:i,ones:l,unitX:a,unitY:s,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},48353:(t,n,e)=>{e.d(n,{l:()=>u});var r=e(34727),o=e(58083),i=e(51850);function l(t,n,e){const r=Math.sin(t),o=Math.cos(t),i=Math.sin(n),l=Math.cos(n),a=e;return a[0]=-r,a[4]=-i*o,a[8]=l*o,a[12]=0,a[1]=o,a[5]=-i*r,a[9]=l*r,a[13]=0,a[2]=0,a[6]=l,a[10]=i,a[14]=0,a[3]=0,a[7]=0,a[11]=0,a[15]=1,a}var a=e(37539),s=e(21325);function u(t,n,e,r){const i=(0,a.Tp)(t,r);if(null==i)return!1;const u=i.source.spatialReferenceId,p=i.dest.spatialReferenceId;if(u===p&&!c(p)&&(0!==u||(0,s.aI)(t,r)))return(0,o.kN)(e,n),!0;if(c(p)){const t=a.w5[u][10],r=a.w5[10][p];return null!=t&&null!=r&&(t(n,0,h,0),r(h,0,d,0),l(f*h[0],f*h[1],e),e[12]=d[0],e[13]=d[1],e[14]=d[2],!0)}const m=c(u);if((3===p||11===p||2===p||5===p)&&(2===u||m||3===u||5===u)){const t=a.w5[u][10],r=a.w5[10][p];return null!=t&&null!=r&&(t(n,0,h,0),r(h,0,d,0),m?function(t,n,e){l(t,n,e),(0,o.mg)(e,e)}(f*h[0],f*h[1],e):(0,o.D_)(e),e[12]=d[0],e[13]=d[1],e[14]=d[2],!0)}return!1}function c(t){return 1===t||6===t||8===t||4===t}const f=(0,r.kU)(1),h=(0,i.vt)(),d=(0,i.vt)()},51850:(t,n,e)=>{function r(){return[0,0,0]}function o(t){return[t[0],t[1],t[2]]}function i(t,n,e){return[t,n,e]}function l(t,n,e){return[t,n,e]}function a(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 s(){return i(1,1,1)}function u(){return i(1,0,0)}function c(){return i(0,1,0)}function f(){return i(0,0,1)}e.d(n,{CN:()=>l,Cb:()=>g,Cw:()=>p,JP:()=>m,Un:()=>d,ci:()=>a,fA:()=>i,o8:()=>o,uY:()=>h,vt:()=>r});const h=[0,0,0],d=s(),p=u(),m=c(),g=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:d,UNIT_X:p,UNIT_Y:m,UNIT_Z:g,ZEROS:h,clone:o,create:r,freeze:l,fromArray:a,fromValues:i,ones:s,unitX:u,unitY:c,unitZ:f,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"}))},62815:(t,n,e)=>{e.d(n,{N:()=>l});var r=e(83047),o=e(73941),i=e(21325);function l(t,n,e){if(null==n||null==e||e.vcsWkid||(0,i.aI)(n,e)||(0,o.xP)(n)||(0,o.xP)(e))return null;const l=(0,r.G9)(n)/(0,r.G9)(e);if(1===l)return null;switch(t){case"point":case"esriGeometryPoint":return t=>function(t,n){null!=t?.z&&(t.z*=n)}(t,l);case"polyline":case"esriGeometryPolyline":return t=>function(t,n){if(t)for(const e of t.paths)for(const t of e)t.length>2&&(t[2]*=n)}(t,l);case"polygon":case"esriGeometryPolygon":return t=>function(t,n){if(t)for(const e of t.rings)for(const t of e)t.length>2&&(t[2]*=n)}(t,l);case"multipoint":case"esriGeometryMultipoint":return t=>function(t,n){if(t)for(const e of t.points)e.length>2&&(e[2]*=n)}(t,l);case"extent":case"esriGeometryEnvelope":return t=>function(t,n){t&&null!=t.zmin&&null!=t.zmax&&(t.zmin*=n,t.zmax*=n)}(t,l);default:return null}}},65686:(t,n,e)=>{e.d(n,{a:()=>i,b:()=>c,l:()=>u,n:()=>a,t:()=>l});var r=e(40876),o=(e(44208),e(53966));function i(t,n,e){l(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function l(t,n,e,r=4,o=r){if(t.length/r!==n.length/o)return;const i=t.length/r,l=e[0],a=e[1],s=e[2],u=e[3],c=e[4],f=e[5],h=e[6],d=e[7],p=e[8];let m=0,g=0;for(let e=0;e<i;e++){const e=n[m],i=n[m+1],y=n[m+2],M=n[m+3];t[g]=l*e+u*i+h*y,t[g+1]=a*e+c*i+d*y,t[g+2]=s*e+f*i+p*y,t[g+3]=M,m+=o,g+=r}}function a(t,n){const e=Math.min(t.count,n.count),r=t.typedBuffer,o=t.typedBufferStride,i=n.typedBuffer,l=n.typedBufferStride;for(let t=0;t<e;t++){const n=t*o,e=t*l,a=i[e],s=i[e+1],u=i[e+2],c=a*a+s*s+u*u;if(c>0){const t=1/Math.sqrt(c);r[n]=t*a,r[n+1]=t*s,r[n+2]=t*u}}}function s(t,n,e,r=4){const o=Math.min(t.length/r,n.count),i=n.typedBuffer,l=n.typedBufferStride;let a=0,s=0;for(let n=0;n<o;n++)t[s]=e*i[a],t[s+1]=e*i[a+1],t[s+2]=e*i[a+2],t[s+3]=e*i[a+3],a+=l,s+=r}function u(t,n,e,r){c(t.typedBuffer,n,e,r,t.typedBufferStride)}function c(t,n,e,o,i=4){const l=Math.min(t.length/i,n.count),a=n.typedBuffer,s=n.typedBufferStride;let u=0,c=0;const f=1/r.Tf;for(let n=0;n<l;n++)t[c]=o*(e*a[u])**f,t[c+1]=o*(e*a[u+1])**f,t[c+2]=o*(e*a[u+2])**f,t[c+3]=o*e*a[u+3],u+=s,c+=i}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:c,linearToSRGBView:u,normalize:a,scale:s,scaleView:function(t,n,e){s(t.typedBuffer,n,e,t.typedBufferStride)},transformMat3:l,transformMat3View:i,transformMat4:function(t,n,e,r=4,i=r){if(t.length/r!==n.length/i)return void o.A.getLogger("esri.views.3d.support.buffer.math").error("source and destination buffers need to have the same number of elements");const l=t.length/r,a=e[0],s=e[1],u=e[2],c=e[3],f=e[4],h=e[5],d=e[6],p=e[7],m=e[8],g=e[9],y=e[10],M=e[11],w=e[12],x=e[13],b=e[14],v=e[15];let _=0,S=0;for(let e=0;e<l;e++){const e=n[_],o=n[_+1],l=n[_+2],A=n[_+3];t[S]=a*e+f*o+m*l+w*A,t[S+1]=s*e+h*o+g*l+x*A,t[S+2]=u*e+d*o+y*l+b*A,t[S+3]=c*e+p*o+M*l+v*A,_+=i,S+=r}},transformMat4View:function(t,n,e){if(t.count!==n.count)return;const r=t.count,o=e[0],i=e[1],l=e[2],a=e[3],s=e[4],u=e[5],c=e[6],f=e[7],h=e[8],d=e[9],p=e[10],m=e[11],g=e[12],y=e[13],M=e[14],w=e[15],x=t.typedBuffer,b=t.typedBufferStride,v=n.typedBuffer,_=n.typedBufferStride;for(let t=0;t<r;t++){const n=t*b,e=t*_,r=v[e],S=v[e+1],A=v[e+2],B=v[e+3];x[n]=o*r+s*S+h*A+g*B,x[n+1]=i*r+u*S+d*A+y*B,x[n+2]=l*r+c*S+p*A+M*B,x[n+3]=a*r+f*S+m*A+w*B}}},Symbol.toStringTag,{value:"Module"}))},65806:(t,n,e)=>{e.d(n,{g:()=>l});var r=e(51850),o=e(98988),i=e(9762);function l(t,n,e,r){if((0,o.canProjectWithoutEngine)(t.spatialReference,e)){a[0]=t.x,a[1]=t.y;const o=t.z;return a[2]=o??r??0,(0,i.projectBuffer)(a,t.spatialReference,0,n,e,0)}const l=(0,o.tryProjectWithZConversion)(t,e);return!!l&&(n[0]=l?.x,n[1]=l?.y,n[2]=l?.z??r??0,!0)}const a=(0,r.vt)()},69540:(t,n,e)=>{e.d(n,{A:()=>f});var r=e(31635),o=e(69622),i=(e(44208),e(4718)),l=(e(53966),e(97768)),a=e(88620),s=e(40608);const u=t=>{const n=t;let e=class extends n{clone(t){const n=(0,a.oY)(this);(0,l.Lw)(n,"unable to clone instance of non-accessor class");const e=n.metadata,r=n.store,o={},s=new Map;for(const n in e){const l=e[n],a=r?.originOf(n),u=l.clonable;if(l.readOnly||!1===u||7!==a&&0!==a&&5!==a&&4!==a)continue;const c=this[n];let f=null;if("function"==typeof u)f=u(c,t);else if("reference"===u)f=c;else if(f=(0,i.TU)(c,t),null!=c&&null==f)continue;0===a?s.set(n,f):o[n]=f}const u=new(0,Object.getPrototypeOf(this).constructor)(o);if(s.size){const t=(0,a.oY)(u)?.store;if(t)for(const[n,e]of s)t.set(n,e,0)}return u}};return e=(0,r.Cg)([(0,s.$)("esri.core.Clonable")],e),e};let c=class extends(u(o.A)){};c=(0,r.Cg)([(0,s.$)("esri.core.Clonable")],c),(c||(c={})).ClonableMixin=u;const f=c},72258:(t,n,e)=>{e.d(n,{UR:()=>b,p5:()=>x,xK:()=>k});var r=e(53966),o=e(34727),i=e(83047),l=e(77690),a=e(29242),s=e(58083),u=e(9093),c=e(38954),f=e(51850),h=e(98764),d=e(48353),p=e(65806),m=e(27615),g=e(21325),y=e(73354),M=e(22141);const w=()=>r.A.getLogger("esri.geometry.support.meshUtils.vertexSpaceConversion");function x(t,n,{vertexSpace:e,spatialReference:r}){if("georeferenced"===e.type){const o=t;if(!(0,p.g)(n,o,r))return!1;const{origin:i}=e;return(0,c.d)(t,o,i),!0}const o=(0,h.lO)(r),i=t;if(!(0,p.g)(n,i,o))return!1;const{origin:l}=e,a=O;if(!(0,d.l)(r,l,a,o))return!1;const u=(0,s.B8)(O,a);return null!=u&&((0,c.t)(t,i,u),!0)}function b(t,n,e){const{vertexSpace:r,transform:o,vertexAttributes:i}=t,a=(0,m.Hq)(r)?o:null,f=A(t.spatialReference,e,3);if((0,m.yJ)(r,n)&&(!a||(0,s.t2)(a.localMatrix,u.zK))&&B(f)){const{position:t,normal:n,tangent:r}=i,o=e?.allowBufferReuse;return{position:o?t:t.slice(),normal:o?n:n?.slice(),tangent:o?r:r?.slice()}}switch(t.vertexSpace.type){case"local":return"local"===n.type?function({vertexAttributes:t,spatialReference:n,transform:e},{origin:r},o,i){const l=v(n,i);if(!(0,d.l)(n,r,j,l))return(0,M.CN)(w(),n,l),null;if(e&&(0,s.lw)(j,j,e.localMatrix),!(0,d.l)(n,o,R,l))return(0,M.CN)(w(),l,n),null;(0,s.B8)(R,R);const a=(0,s.lw)(j,R,j);return S(a,n,i,3),_(t,a)}(t,t.vertexSpace,n.origin,e):function({spatialReference:t,vertexAttributes:n,transform:e},{origin:r},o,i){const l=v(t,i);if(!(0,d.l)(t,r,j,l))return(0,M.CN)(w(),t,l),null;e&&(0,s.lw)(j,j,e.localMatrix),S(j,t,i,1);const a=new Float64Array(n.position.length),u=function(t,n,e,r,o){(0,y.t)(r,t,n);const i=new Float64Array(t.length);return(0,M.$5)(r,o,i,e)?i:((0,M.CN)(w(),o,e),null)}(n.position,j,t,a,l);if(!u)return null;const f=function(t,n,e,r,o,i){if(null==o)return null;const l=new Float32Array(o.length);return(0,M.qs)(o,l,i),(0,M.si)(l,t,n,e,r,l)?l:((0,M.CN)(w(),r,n),null)}(u,t,a,l,n.normal,j);if(n.normal&&!f)return null;const h=function(t,n,e,r,o,i){if(null==o)return null;const l=new Float32Array(o.length);return(0,M.KM)(o,l,i),(0,M.Mv)(l,t,n,e,r,l)?l:((0,M.CN)(w(),r,n),null)}(u,t,a,l,n.tangent,j);if(n.tangent&&!h)return null;if(o){const t=(0,c.u)(T,o);(0,y.a)(u,u,t)}return{position:u,normal:f,tangent:h}}(t,t.vertexSpace,n.origin,e);case"georeferenced":return"local"===n.type?function({vertexAttributes:t,spatialReference:n,transform:e},{origin:r},o,i){const a=v(n,i);if(!(0,d.l)(n,o,j,a))return(0,M.CN)(w(),n,a),null;const u=1/A(n,i,2);(0,s.hs)(j,j,[u,u,u]);const c=(0,s.B8)(R,j),{position:f,normal:h,tangent:p}=function(t,n,e){if(!n)return t;if(!e){const{position:e,normal:r,tangent:o}=t;return{position:(0,y.a)(new Float64Array(e.length),e,n),tangent:o,normal:r}}const r=_(t,e.localMatrix);return(0,y.a)(r.position,r.position,n),r}(t,r,e),m=new Float64Array(f.length),g=function(t,n,e,r,o){const i=(0,M.gr)(t,n,r,o);if(!i)return(0,M.CN)(w(),n,o),null;const l=new Float64Array(i.length);return(0,y.t)(l,i,e),l}(f,n,c,m,a);if(!g)return null;const x=(0,l.Ge)(I,c),b=function(t,n,e,r,o,i,l){if(null==t)return null;const a=l??new Float32Array(t.length);return(0,M.X4)(t,n,e,r,o,a)?((0,y.b)(a,a,i),a):((0,M.CN)(w(),e,o),null)}(h,f,n,m,a,x,h!==t.normal?h:void 0);if(!b&&h)return null;const S=function(t,n,e,r,o,i,l){if(null==t)return null;const a=l??new Float32Array(t.length);return(0,M.xA)(t,n,e,r,o,a)?((0,y.b)(a,a,i,4),a):((0,M.CN)(w(),e,o),null)}(p,f,n,m,a,x,p!==t.tangent?p:void 0);return!S&&p?null:{position:g,normal:b,tangent:S}}(t,t.vertexSpace,n.origin,e):function({vertexAttributes:t,transform:n,spatialReference:e},{origin:r},o,i){const l=A(e,i,3),a=r||!B(l)?(0,s.C)(j,n?.localMatrix??u.zK):null;a&&S(a,e,i,3);const{position:f,normal:h,tangent:d}=a?_(t,a):t,p=i?.allowBufferReuse,m=p?f:new Float64Array(f.length);let g=f;if(r&&(g=(0,y.a)(m,g,r)),o){const t=(0,c.u)(T,o);g=(0,y.a)(m,g,t)}return{position:g!==t.position||p?g:g.slice(),normal:h!==t.normal||p?h:h?.slice(),tangent:d!==t.tangent||p?d:d?.slice()}}(t,t.vertexSpace,n.origin,e)}}function v(t,n){return n?.useEllipsoid&&(0,g.B3)(t)?h.Y0:(0,h.lO)(t)}function _(t,n){const e=new Float64Array(t.position.length);(0,y.t)(e,t.position,n);const r=t.normal?new Float32Array(t.normal.length):null,o=t.tangent?new Float32Array(t.tangent.length):null;return r&&t.normal&&(0,M.qs)(t.normal,r,n),o&&t.tangent&&(0,M.KM)(t.tangent,o,n),{position:e,normal:r,tangent:o}}function S(t,n,e,r){const o=A(n,e,r);B(o)||(0,s.hs)(t,t,[o,o,o])}function A(t,n,e){const r=!!(1&e),o=!!(2&e),i=n?.sourceUnit,l=n?.targetUnit;if(!i&&!l)return 1;let a=k(i,t);r||!i||B(a)||(w().warn("source unit conversion not supported"),a=1);let s=1/k(l,t);return o||!l||B(s)||(w().warn("target unit conversion not supported"),s=1),a*s}function B(t){return(0,o.Io)(t,1)}function k(t,n){if(null==t)return 1;const e=(0,i.KX)(n);return 1/(0,i.oU)(e,"meters",t)}const j=(0,u.vt)(),R=(0,u.vt)(),I=(0,a.vt)(),T=(0,f.vt)(),O=(0,u.vt)()},73354:(t,n,e)=>{e.d(n,{a:()=>f,b:()=>a,c:()=>l,d:()=>o,e:()=>h,f:()=>c,l:()=>u,n:()=>d,t:()=>i});var r=e(40876);function o(t,n,e){i(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function i(t,n,e,r=3,o=r){if(t.length/r!==Math.ceil(n.length/o))return t;const i=t.length/r,l=e[0],a=e[1],s=e[2],u=e[4],c=e[5],f=e[6],h=e[8],d=e[9],p=e[10],m=e[12],g=e[13],y=e[14];let M=0,w=0;for(let e=0;e<i;e++){const e=n[M],i=n[M+1],x=n[M+2];t[w]=l*e+u*i+h*x+m,t[w+1]=a*e+c*i+d*x+g,t[w+2]=s*e+f*i+p*x+y,M+=o,w+=r}return t}function l(t,n,e){a(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function a(t,n,e,r=3,o=r){if(t.length/r!==Math.ceil(n.length/o))return;const i=t.length/r,l=e[0],a=e[1],s=e[2],u=e[3],c=e[4],f=e[5],h=e[6],d=e[7],p=e[8];let m=0,g=0;for(let e=0;e<i;e++){const e=n[m],i=n[m+1],y=n[m+2];t[g]=l*e+u*i+h*y,t[g+1]=a*e+c*i+d*y,t[g+2]=s*e+f*i+p*y,m+=o,g+=r}}function s(t,n,e,r=3,o=r){const i=Math.min(t.length/r,n.length/o);let l=0,a=0;for(let s=0;s<i;s++)t[a]=e*n[l],t[a+1]=e*n[l+1],t[a+2]=e*n[l+2],l+=o,a+=r;return t}function u(t,n,e,r){c(t.typedBuffer,n.typedBuffer,e,r,t.typedBufferStride,n.typedBufferStride)}function c(t,n,e,o,i=3,l=i){const a=Math.min(t.length/i,n.length/l);let s=0,u=0;const c=1/r.Tf;for(let r=0;r<a;r++)t[u]=o*(e*n[s])**c,t[u+1]=o*(e*n[s+1])**c,t[u+2]=o*(e*n[s+2])**c,s+=l,u+=i}function f(t,n,e,r=3,o=r){const i=t.length/r;if(i!==Math.ceil(n.length/o))return t;let l=0,a=0;for(let s=0;s<i;s++)t[a]=n[l]+e[0],t[a+1]=n[l+1]+e[1],t[a+2]=n[l+2]+e[2],l+=o,a+=r;return t}function h(t,n){d(t.typedBuffer,n.typedBuffer,t.typedBufferStride,n.typedBufferStride)}function d(t,n,e=3,r=e){const o=Math.min(t.length/e,n.length/r);let i=0,l=0;for(let a=0;a<o;a++){const o=n[i],a=n[i+1],s=n[i+2],u=o*o+a*a+s*s;if(u>0){const n=1/Math.sqrt(u);t[l]=n*o,t[l+1]=n*a,t[l+2]=n*s}i+=r,l+=e}}e(44208),e(53966),Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:c,linearToSRGBView:u,normalize:d,normalizeView:h,scale:s,scaleView:function(t,n,e){s(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)},shiftRight:function(t,n,e){const r=Math.min(t.count,n.count),o=t.typedBuffer,i=t.typedBufferStride,l=n.typedBuffer,a=n.typedBufferStride;let s=0,u=0;for(let t=0;t<r;t++)o[u]=l[s]>>e,o[u+1]=l[s+1]>>e,o[u+2]=l[s+2]>>e,s+=a,u+=i},transformMat3:a,transformMat3View:l,transformMat4:i,transformMat4View:o,translate:f},Symbol.toStringTag,{value:"Module"}))},75503:(t,n,e)=>{e.d(n,{EC:()=>A,wq:()=>a});var r=e(4576),o=e(21818),i=(e(44208),e(15142)),l=e(11006);class a{constructor(t=9,n){this._compareMinX=h,this._compareMinY=d,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),n&&("function"==typeof n?this._toBBox=n:this._initFormat(n)),this.clear()}destroy(){this.clear(),b.prune(),v.prune(),_.prune(),S.prune()}all(t){s(this._data,t)}search(t,n){let e=this._data;const r=this._toBBox;if(w(t,e))for(b.clear();e;){for(let o=0,i=e.children.length;o<i;o++){const i=e.children[o],l=e.leaf?r(i):i;w(t,l)&&(e.leaf?n(i):M(t,l)?s(i,n):b.push(i))}e=b.pop()}}collides(t){let n=this._data;const e=this._toBBox;if(!w(t,n))return!1;for(b.clear();n;){for(let r=0,o=n.children.length;r<o;r++){const o=n.children[r],i=n.leaf?e(o):o;if(w(t,i)){if(n.leaf||M(t,i))return!0;b.push(o)}}n=b.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let n=0,e=t.length;n<e;n++)this.insert(t[n]);return this}let n=this._build(t.slice(),0,t.length-1,0);if(this._data.children.length)if(this._data.height===n.height)this._splitRoot(this._data,n);else{if(this._data.height<n.height){const t=this._data;this._data=n,n=t}this._insert(n,this._data.height-n.height-1,!0)}else this._data=n;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new k([]),this}remove(t){if(!t)return this;let n,e=this._data,i=null,l=0,a=!1;const s=this._toBBox(t);for(_.clear(),S.clear();e||_.length>0;){if(e||(e=_.pop(),i=_.data[_.length-1],l=S.pop()??0,a=!0),e.leaf&&(n=(0,r.qh)(e.children,(0,o.zI)(t),e.children.length,e.indexHint),-1!==n))return e.children.splice(n,1),_.push(e),this._condense(_),this;a||e.leaf||!M(e,s)?i?(l++,e=i.children[l],a=!1):e=null:(_.push(e),S.push(l),l=0,i=e,e=e.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_build(t,n,e,r){const o=e-n+1;let i=this._maxEntries;if(o<=i){const r=new k(t.slice(n,e+1));return u(r,this._toBBox),r}r||(r=Math.ceil(Math.log(o)/Math.log(i)),i=Math.ceil(o/i**(r-1)));const l=new j([]);l.height=r;const a=Math.ceil(o/i),s=a*Math.ceil(Math.sqrt(i));x(t,n,e,s,this._compareMinX);for(let o=n;o<=e;o+=s){const n=Math.min(o+s-1,e);x(t,o,n,a,this._compareMinY);for(let e=o;e<=n;e+=a){const o=Math.min(e+a-1,n);l.children.push(this._build(t,e,o,r-1))}}return u(l,this._toBBox),l}_insert(t,n,e){const r=this._toBBox,o=e?t:r(t);_.clear();const i=function(t,n,e,r){for(;r.push(n),!0!==n.leaf&&r.length-1!==e;){let e,r=1/0,o=1/0;for(let i=0,l=n.children.length;i<l;i++){const l=n.children[i],a=p(l),s=g(t,l)-a;s<o?(o=s,r=a<r?a:r,e=l):s===o&&a<r&&(r=a,e=l)}n=e||n.children[0]}return n}(o,this._data,n,_);for(i.children.push(t),f(i,o);n>=0&&_.data[n].children.length>this._maxEntries;)this._split(_,n),n--;!function(t,n,e){for(let r=e;r>=0;r--)f(n.data[r],t)}(o,_,n)}_split(t,n){const e=t.data[n],r=e.children.length,o=this._minEntries;this._chooseSplitAxis(e,o,r);const i=this._chooseSplitIndex(e,o,r);if(!i)return;const l=e.children.splice(i,e.children.length-i),a=e.leaf?new k(l):new j(l);a.height=e.height,u(e,this._toBBox),u(a,this._toBBox),n?t.data[n-1].children.push(a):this._splitRoot(e,a)}_splitRoot(t,n){this._data=new j([t,n]),this._data.height=t.height+1,u(this._data,this._toBBox)}_chooseSplitIndex(t,n,e){let r,o,i;r=o=1/0;for(let l=n;l<=e-n;l++){const n=c(t,0,l,this._toBBox),a=c(t,l,e,this._toBBox),s=y(n,a),u=p(n)+p(a);s<r?(r=s,i=l,o=u<o?u:o):s===r&&u<o&&(o=u,i=l)}return i}_chooseSplitAxis(t,n,e){const r=t.leaf?this._compareMinX:h,o=t.leaf?this._compareMinY:d;this._allDistMargin(t,n,e,r)<this._allDistMargin(t,n,e,o)&&t.children.sort(r)}_allDistMargin(t,n,e,r){t.children.sort(r);const o=this._toBBox,i=c(t,0,n,o),l=c(t,e-n,e,o);let a=m(i)+m(l);for(let r=n;r<e-n;r++){const n=t.children[r];f(i,t.leaf?o(n):n),a+=m(i)}for(let r=e-n-1;r>=n;r--){const n=t.children[r];f(l,t.leaf?o(n):n),a+=m(l)}return a}_condense(t){for(let n=t.length-1;n>=0;n--){const e=t.data[n];if(0===e.children.length)if(n>0){const o=t.data[n-1],i=o.children;i.splice((0,r.qh)(i,e,i.length,o.indexHint),1)}else this.clear();else u(e,this._toBBox)}}_initFormat(t){const n=["return a"," - b",";"];this._compareMinX=new Function("a","b",n.join(t[0])),this._compareMinY=new Function("a","b",n.join(t[1])),this._toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function s(t,n){let e=t;for(v.clear();e;){if(!0===e.leaf)for(const t of e.children)n((0,o.zI)(t));else v.pushArray(e.children);e=v.pop()??null}}function u(t,n){c(t,0,t.children.length,n,t)}function c(t,n,e,r,o){o||(o=new k([])),o.minX=1/0,o.minY=1/0,o.maxX=-1/0,o.maxY=-1/0;for(let i,l=n;l<e;l++)i=t.children[l],f(o,t.leaf?r(i):i);return o}function f(t,n){t.minX=Math.min(t.minX,n.minX),t.minY=Math.min(t.minY,n.minY),t.maxX=Math.max(t.maxX,n.maxX),t.maxY=Math.max(t.maxY,n.maxY)}function h(t,n){return t.minX-n.minX}function d(t,n){return t.minY-n.minY}function p(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function m(t){return t.maxX-t.minX+(t.maxY-t.minY)}function g(t,n){return(Math.max(n.maxX,t.maxX)-Math.min(n.minX,t.minX))*(Math.max(n.maxY,t.maxY)-Math.min(n.minY,t.minY))}function y(t,n){const e=Math.max(t.minX,n.minX),r=Math.max(t.minY,n.minY),o=Math.min(t.maxX,n.maxX),i=Math.min(t.maxY,n.maxY);return Math.max(0,o-e)*Math.max(0,i-r)}function M(t,n){return t.minX<=n.minX&&t.minY<=n.minY&&n.maxX<=t.maxX&&n.maxY<=t.maxY}function w(t,n){return n.minX<=t.maxX&&n.minY<=t.maxY&&n.maxX>=t.minX&&n.maxY>=t.minY}function x(t,n,e,r,o){const i=[n,e];for(;i.length;){const n=i.pop(),e=i.pop();if(n-e<=r)continue;const a=e+Math.ceil((n-e)/r/2)*r;(0,l.q)(t,a,e,n,o),i.push(e,a,a,n)}}const b=new i.A,v=new i.A,_=new i.A,S=new i.A({deallocator:void 0});class A{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class B extends A{constructor(){super(...arguments),this.height=1,this.indexHint=new r.vW}}class k extends B{constructor(t){super(),this.children=t,this.leaf=!0}}class j extends B{constructor(t){super(),this.children=t,this.leaf=!1}}},77690:(t,n,e)=>{e.d(n,{B8:()=>a,Ge:()=>h,I0:()=>f,KC:()=>s,hZ:()=>i,hs:()=>c,lw:()=>u,mg:()=>l,z0:()=>o});var r=e(34304);function o(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 i(t,n,e,r,o,i,l,a,s,u){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t[4]=i,t[5]=l,t[6]=a,t[7]=s,t[8]=u,t}function l(t,n){if(t===n){const e=n[1],r=n[2],o=n[5];t[1]=n[3],t[2]=n[6],t[3]=e,t[5]=n[7],t[6]=r,t[7]=o}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 a(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],l=n[4],a=n[5],s=n[6],u=n[7],c=n[8],f=c*l-a*u,h=-c*i+a*s,d=u*i-l*s;let p=e*f+r*h+o*d;return p?(p=1/p,t[0]=f*p,t[1]=(-c*r+o*u)*p,t[2]=(a*r-o*l)*p,t[3]=h*p,t[4]=(c*e-o*s)*p,t[5]=(-a*e+o*i)*p,t[6]=d*p,t[7]=(-u*e+r*s)*p,t[8]=(l*e-r*i)*p,t):null}function s(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],l=n[4],a=n[5],s=n[6],u=n[7],c=n[8];return t[0]=l*c-a*u,t[1]=o*u-r*c,t[2]=r*a-o*l,t[3]=a*s-i*c,t[4]=e*c-o*s,t[5]=o*i-e*a,t[6]=i*u-l*s,t[7]=r*s-e*u,t[8]=e*l-r*i,t}function u(t,n,e){const r=n[0],o=n[1],i=n[2],l=n[3],a=n[4],s=n[5],u=n[6],c=n[7],f=n[8],h=e[0],d=e[1],p=e[2],m=e[3],g=e[4],y=e[5],M=e[6],w=e[7],x=e[8];return t[0]=h*r+d*l+p*u,t[1]=h*o+d*a+p*c,t[2]=h*i+d*s+p*f,t[3]=m*r+g*l+y*u,t[4]=m*o+g*a+y*c,t[5]=m*i+g*s+y*f,t[6]=M*r+w*l+x*u,t[7]=M*o+w*a+x*c,t[8]=M*i+w*s+x*f,t}function c(t,n,e){const r=e[0],o=e[1],i=e[2];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t[6]=i*n[6],t[7]=i*n[7],t[8]=i*n[8],t}function f(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],l=e+e,a=r+r,s=o+o,u=e*l,c=r*l,f=r*a,h=o*l,d=o*a,p=o*s,m=i*l,g=i*a,y=i*s;return t[0]=1-f-p,t[3]=c-y,t[6]=h+g,t[1]=c+y,t[4]=1-u-p,t[7]=d-m,t[2]=h-g,t[5]=d+m,t[8]=1-u-f,t}function h(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],l=n[4],a=n[5],s=n[6],u=n[7],c=n[8],f=n[9],h=n[10],d=n[11],p=n[12],m=n[13],g=n[14],y=n[15],M=e*a-r*l,w=e*s-o*l,x=e*u-i*l,b=r*s-o*a,v=r*u-i*a,_=o*u-i*s,S=c*m-f*p,A=c*g-h*p,B=c*y-d*p,k=f*g-h*m,j=f*y-d*m,R=h*y-d*g;let I=M*R-w*j+x*k+b*B-v*A+_*S;return I?(I=1/I,t[0]=(a*R-s*j+u*k)*I,t[1]=(s*B-l*R-u*A)*I,t[2]=(l*j-a*B+u*S)*I,t[3]=(o*j-r*R-i*k)*I,t[4]=(e*R-o*B+i*A)*I,t[5]=(r*B-e*j-i*S)*I,t[6]=(m*_-g*v+y*b)*I,t[7]=(g*x-p*_-y*w)*I,t[8]=(p*v-m*x+y*M)*I,t):null}function d(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 p=u,m=d;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:s,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:function(t){const n=t[0],e=t[1],r=t[2],o=t[3],i=t[4],l=t[5],a=t[6],s=t[7],u=t[8];return n*(u*i-l*s)+e*(-u*o+l*a)+r*(s*o-i*a)},equals:function(t,n){const e=t[0],o=t[1],i=t[2],l=t[3],a=t[4],s=t[5],u=t[6],c=t[7],f=t[8],h=n[0],d=n[1],p=n[2],m=n[3],g=n[4],y=n[5],M=n[6],w=n[7],x=n[8],b=(0,r.FD)();return Math.abs(e-h)<=b*Math.max(1,Math.abs(e),Math.abs(h))&&Math.abs(o-d)<=b*Math.max(1,Math.abs(o),Math.abs(d))&&Math.abs(i-p)<=b*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(l-m)<=b*Math.max(1,Math.abs(l),Math.abs(m))&&Math.abs(a-g)<=b*Math.max(1,Math.abs(a),Math.abs(g))&&Math.abs(s-y)<=b*Math.max(1,Math.abs(s),Math.abs(y))&&Math.abs(u-M)<=b*Math.max(1,Math.abs(u),Math.abs(M))&&Math.abs(c-w)<=b*Math.max(1,Math.abs(c),Math.abs(w))&&Math.abs(f-x)<=b*Math.max(1,Math.abs(f),Math.abs(x))},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:o,fromQuat:f,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:a,isOrthoNormal:function(t){const n=(0,r.FD)(),e=t[0],o=t[1],i=t[2],l=t[3],a=t[4],s=t[5],u=t[6],c=t[7],f=t[8];return Math.abs(1-(e*e+l*l+u*u))<=n&&Math.abs(1-(o*o+a*a+c*c))<=n&&Math.abs(1-(i*i+s*s+f*f))<=n},mul:p,multiply:u,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:h,normalFromMat4Legacy:function(t,n){const e=n[0],r=n[1],o=n[2],i=n[4],l=n[5],a=n[6],s=n[8],u=n[9],c=n[10],f=c*l-a*u,h=-c*i+a*s,d=u*i-l*s,p=e*f+r*h+o*d;if(!p)return null;const m=1/p;return t[0]=f*m,t[1]=(-c*r+o*u)*m,t[2]=(a*r-o*l)*m,t[3]=h*m,t[4]=(c*e-o*s)*m,t[5]=(-a*e+o*i)*m,t[6]=d*m,t[7]=(-u*e+r*s)*m,t[8]=(l*e-r*i)*m,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],o=n[1],i=n[2],l=n[3],a=n[4],s=n[5],u=n[6],c=n[7],f=n[8],h=Math.sin(e),d=Math.cos(e);return t[0]=d*r+h*l,t[1]=d*o+h*a,t[2]=d*i+h*s,t[3]=d*l-h*r,t[4]=d*a-h*o,t[5]=d*s-h*i,t[6]=u,t[7]=c,t[8]=f,t},scale:c,scaleByVec2:function(t,n,e){const r=e[0],o=e[1];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t},set:i,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:m,subtract:d,translate:function(t,n,e){const r=n[0],o=n[1],i=n[2],l=n[3],a=n[4],s=n[5],u=n[6],c=n[7],f=n[8],h=e[0],d=e[1];return t[0]=r,t[1]=o,t[2]=i,t[3]=l,t[4]=a,t[5]=s,t[6]=h*r+d*l+u,t[7]=h*o+d*a+c,t[8]=h*i+d*s+f,t},transpose:l},Symbol.toStringTag,{value:"Module"}))},93223:(t,n,e)=>{e.d(n,{e:()=>i});var r=e(66552),o=e(10107);function i(t,n={}){const e=t instanceof r.J?t:new r.J(t,n),{alwaysWriteDefaults:i,default:l,ignoreUnknown:a=!0,name:s,nonNullable:u,readOnly:c=!1}=n;return(0,o.MZ)({type:a?e.apiValues:String,json:{type:e.jsonValues,default:l,name:s,read:!c&&{reader:e.read},write:{writer:e.write,alwaysWriteDefaults:i}},nonNullable:u,readOnly:c})}},95488:(t,n,e)=>{e.d(n,{I:()=>o});var r=e(11406);class o extends r.T{notify(){const t=this._observers;if(t&&t.length>0){const n=t.slice();for(const t of n)t.onInvalidated(),t.onCommitted()}}}},95696:(t,n,e)=>{e.d(n,{A:()=>c});var r,o=e(31635),i=e(69540),l=e(25482),a=e(10107),s=(e(44208),e(53966),e(87811),e(93223)),u=e(40608);let c=class extends(i.A.ClonableMixin(l.A)){static{r=this}constructor(t){super(t),this.type="georeferenced",this.origin=null}static{this.absolute=new r}};(0,o.Cg)([(0,s.e)({georeferenced:"georeferenced"},{readOnly:!0})],c.prototype,"type",void 0),(0,o.Cg)([(0,a.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],c.prototype,"origin",void 0),c=r=(0,o.Cg)([(0,u.$)("esri.geometry.support.MeshGeoreferencedVertexSpace")],c)},98764:(t,n,e)=>{e.d(n,{Y0:()=>u,lO:()=>c});var r=e(73941),o=e(16930),i=e(21325);const l=new o.A(r.fv),a=new o.A(r.FY),s=new o.A(r.LJ),u=new o.A(r.Ro);function c(t){const n=f.get(t);if(n)return n;let e=l;if(t)if(t===a)e=a;else if(t===s)e=s;else{const n=t.wkid,r=t.latestWkid;if(null!=n||null!=r)(0,i.tl)(n)||(0,i.tl)(r)?e=a:((0,i.ZL)(n)||(0,i.ZL)(r))&&(e=s);else{const n=t.wkt2??t.wkt;if(n){const t=n.toUpperCase();t===h?e=a:t===d&&(e=s)}}}return f.set(t,e),e}const f=new Map,h=a.wkt.toUpperCase(),d=s.wkt.toUpperCase()},98988:(t,n,e)=>{e.r(n),e.d(n,{canProjectWithoutEngine:()=>$,getTransformation:()=>C,getTransformations:()=>F,initializeProjection:()=>D,isEqualBaseGCS:()=>K,isLoaded:()=>T,isLoadedOrLoad:()=>O,isLoadedOrLoadFor:()=>P,load:()=>Y,project:()=>X,projectExtent:()=>it,projectMany:()=>E,projectMultipoint:()=>Q,projectOrLoad:()=>z,projectOrLoadMany:()=>N,projectPoint:()=>J,projectPolygon:()=>rt,projectPolyline:()=>nt,projectWithZConversion:()=>Z,projectWithoutEngine:()=>W,requiresLoad:()=>q,test:()=>V,tryProjectWithZConversion:()=>U,unload:()=>L});var r=e(49186),o=e(74887),i=e(62788),l=e(95488),a=e(51850),s=e(21276),u=e(73941),c=e(5443),f=e(48526),h=e(83290),d=e(86738),p=e(39829),m=e(82799),g=e(16930),y=e(9762),M=e(37539);function w(t,n,e,r,o,i){return x[0]=t,x[1]=n,x[2]=e,(0,y.projectBuffer)(x,r,0,o,i,0)}const x=(0,a.vt)();let b=0;class v{static fromGE(t){const n=new v;return n._wkt=t.wkt,n._wkid=t.wkid,n._isInverse=t.isInverse,n}constructor(t){this.uid=b++,t?(this._wkt=null!=t.wkt?t.wkt:null,this._wkid=null!=t.wkid?t.wkid:-1,this._isInverse=null!=t.isInverse&&!0===t.isInverse):(this._wkt=null,this._wkid=-1,this._isInverse=!1)}get wkt(){return this._wkt}set wkt(t){this._wkt=t,this.uid=b++}get wkid(){return this._wkid}set wkid(t){this._wkid=t,this.uid=b++}get isInverse(){return this._isInverse}set isInverse(t){this._isInverse=t,this.uid=b++}getInverse(){const t=new v;return t._wkt=this.wkt,t._wkid=this._wkid,t._isInverse=!this.isInverse,t}}class _{static cacheKey(t,n){return[t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??"",n.wkid?.toString()??"-1",n.wkt?.toString()??"",n.wkt2?.toString()??""].join()}static fromGE(t){const n=new _;let e="";for(const r of t.steps){const t=v.fromGE(r);n.steps.push(t),e+=t.uid.toString()+","}return n._cachedProjection={},n._gtlistentry=null,n._chain=e,n}constructor(t){if(this.steps=[],this._cachedProjection={},this._chain="",this._gtlistentry=null,t?.steps)for(const n of t.steps)n instanceof v?this.steps.push(n):this.steps.push(new v({wkid:n.wkid,wkt:n.wkt,isInverse:n.isInverse}))}getInverse(){const t=new _;t.steps=[];for(let n=this.steps.length-1;n>=0;n--){const e=this.steps[n];t.steps.push(e.getInverse())}return t}getGTListEntry(){let t="";for(const n of this.steps)t+=n.uid.toString()+",";return t!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=t),this._gtlistentry}assignCachedGe(t,n,e){this._cachedProjection[_.cacheKey(t,n)]=e}getCachedGeTransformation(t,n){let e="";for(const t of this.steps)e+=t.uid.toString()+",";e!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=e);const r=this._cachedProjection[_.cacheKey(t,n)];return void 0===r?null:r}}var S=e(21325),A=e(62815);let B=null,k=null,j=null,R={};const I=new l.I;function T(){return!!B&&(0,h.i)()}function O(){return!!T()||((0,i.gc)(I),Y(),!1)}function P(t,n){return!t||!n||$(t,n)||O()}function q(t,n){return!$(t,n)&&!T()}function Y(t){return null==j&&(j=Promise.all([(0,h.l)(),e.e(9930).then(e.bind(e,49930)).then(t=>t.g),e.e(2731).then(e.bind(e,12731))])),j.then(([,n,{hydratedAdapter:e}])=>{(0,o.Te)(t),k=e,B=n.default,B._enableProjection(h.p),I.notify()})}function X(t,n,e=null,r=null){return Array.isArray(t)?0===t.length?[]:((0,s.H)(t),E(k,t,t[0].spatialReference,n,e,r)):((0,s.f)(t),E(k,[t],t.spatialReference,n,e,r)[0])}function E(t,n,e,r,o=null,i=null){if(null==e||null==r)return n;if($(e,r,o))return n.map(t=>W(t,e,r));if(null==o&&(0,u.jA)(e))return n.map(t=>W(t,e,g.A.WGS84)).map(t=>U(t,r));if(null==o&&(0,u.jA)(r))return n.map(t=>U(t,g.A.WGS84)).map(t=>W(t,g.A.WGS84,r));if(null==o){const t=_.cacheKey(e,r);void 0!==R[t]?o=R[t]:(null==(o=C(e,r,void 0))&&(o=new _),R[t]=o)}if(null==B||null==t)throw new G;return null!=i?B._project(t,n,e,r,o,i):B._project(t,n,e,r,o)}function z(t,n){const e=N([t],n);return null!=e.pending?{pending:e.pending,geometry:null}:null!=e.geometries?{pending:null,geometry:e.geometries[0]}:{pending:null,geometry:null}}function N(t,n){if(!T())for(const e of t)if(null!=e&&!(0,S.aI)(e.spatialReference,n)&&(0,S.fn)(e.spatialReference)&&(0,S.fn)(n)&&!$(e.spatialReference,n))return(0,i.gc)(I),{pending:Y(),geometries:null};return{pending:null,geometries:t.map(t=>null==t?null:(0,S.aI)(t.spatialReference,n)?t:(0,S.fn)(t.spatialReference)&&(0,S.fn)(n)?U(t,n):null)}}function C(t,n,e=null){if(null==t||null==n)return null;if(null==B||null==k)throw new G;const r=B._getTransformation(k,t,n,e,e?.spatialReference);return null!==r?_.fromGE(r):null}function F(t,n,e=null){if(null==B||null==k)throw new G;const r=B._getTransformationBySuitability(k,t,n,e,e?.spatialReference);if(null!==r){const t=[];for(const n of r)t.push(_.fromGE(n));return t}return[]}class G extends r.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function L(){B=null,k=null,j=null,R={}}const V={get loadPromise(){return j}};function U(t,n){try{const e=X(t,n);if(null==e)return null;"xmin"in t&&"xmin"in e&&(e.zmin=t.zmin,e.zmax=t.zmax);const r=(0,A.N)(e.type,t.spatialReference,n);return null!=r&&r(e),e}catch(t){if(!(t instanceof G))throw t;return null}}async function Z(t,n,e){const r=t.spatialReference;return null!=r&&null!=n&&await D(r,n,null,e),U(t,n)}function $(t,n,e){return!e&&(!!(0,S.aI)(t,n)||(0,S.fn)(t)&&(0,S.fn)(n)&&!!(0,M.jd)(t,n))}function K(t,n){if((0,S.aI)(t,n))return!0;if(!(0,S.fn)(t)||!(0,S.fn)(n))return!1;const e=(0,S.oT)(t)||(0,S.K8)(t)||(0,S.x1)(t),r=(0,S.oT)(n)||(0,S.K8)(n)||(0,S.x1)(n);return e&&r}async function D(t,n,e,r){if(T())return(0,o.NO)(r);if(Array.isArray(t)){for(const{source:n,dest:e,geographicTransformation:o}of t)if(n&&e&&!$(n,e,o))return Y(r)}else if(t&&n&&!$(t,n,e))return Y(r);return(0,o.NO)(r)}function W(t,n,e){return t?"x"in t?H(t,n,new d.A,e,0):"xmin"in t?lt(t,n,new c.A,e,0):"rings"in t?ot(t,n,new p.A,e,0):"paths"in t?et(t,n,new m.A,e,0):"points"in t?tt(t,n,new f.A,e,0):null:null}function J(t,n,e=n.spatialReference,r=0){return null!=e&&null!=t.spatialReference&&null!=H(t,t.spatialReference,n,e,r)}function H(t,n,e,r,o){st[0]=t.x,st[1]=t.y;const i=t.z;return st[2]=void 0!==i?i:o,(0,y.projectBuffer)(st,n,0,st,r,0)?(e.x=st[0],e.y=st[1],e.spatialReference=r,void 0!==i||(0,u.xP)(r)?(e.z=st[2],e.hasZ=!0):(e.z=void 0,e.hasZ=!1),void 0===t.m?(e.m=void 0,e.hasM=!1):(e.m=t.m,e.hasM=!0),e):null}function Q(t,n,e=n.spatialReference,r=0){return null!=t.spatialReference&&null!=e&&null!=tt(t,t.spatialReference,n,e,r)}function tt(t,n,e,r,o){const{points:i,hasZ:l,hasM:a}=t,s=[],c=i.length,f=[];for(const t of i)f.push(t[0],t[1],l?t[2]:o);if(!(0,y.projectBuffer)(f,n,0,f,r,0,c))return null;const h=l||(0,u.xP)(r);for(let t=0;t<c;++t){const n=3*t,e=f[n],r=f[n+1];h&&a?s.push([e,r,f[n+2],i[t][3]]):h?s.push([e,r,f[n+2]]):a?s.push([e,r,i[t][2]]):s.push([e,r])}return e.points=s,e.spatialReference=r,e.hasZ=l,e.hasM=a,e}function nt(t,n,e=n.spatialReference,r=0){return null!=t.spatialReference&&null!=e&&null!=et(t,t.spatialReference,n,e,r)}function et(t,n,e,r,o){const{paths:i,hasZ:l,hasM:a}=t,s=[];if(!at(i,l??!1,a??!1,n,s,r,o))return null;const c=l||(0,u.xP)(r);return e.paths=s,e.spatialReference=r,e.hasZ=c,e.hasM=a,e}function rt(t,n,e=n.spatialReference,r=0){return null!=t.spatialReference&&null!=e&&null!=ot(t,t.spatialReference,n,e,r)}function ot(t,n,e,r,o){const{rings:i,hasZ:l,hasM:a}=t,s=[];if(!at(i,l??!1,a??!1,n,s,r,o))return null;const c=l||(0,u.xP)(r);return e.rings=s,e.spatialReference=r,e.hasZ=c,e.hasM=a,e}function it(t,n,e=n.spatialReference,r=0){return null!=t.spatialReference&&null!=e&&null!=lt(t,t.spatialReference,n,e,r)}function lt(t,n,e,r,o){const{xmin:i,ymin:l,xmax:a,ymax:s,hasZ:c,hasM:f}=t;if(!w(i,l,c?t.zmin:o,n,st,r))return null;const h=c||(0,u.xP)(r);return e.xmin=st[0],e.ymin=st[1],h&&(e.zmin=st[2]),w(a,s,c?t.zmax:o,n,st,r)?(e.xmax=st[0],e.ymax=st[1],h&&(e.zmax=st[2]),f&&(e.mmin=t.mmin,e.mmax=t.mmax),e.spatialReference=r,e):null}function at(t,n,e,r,o,i,l=0){const a=new Array;for(const e of t)for(const t of e)a.push(t[0],t[1],n?t[2]:l);if(!(0,y.projectBuffer)(a,r,0,a,i,0))return!1;let s=0;o.length=0;const c=n||(0,u.xP)(i);for(const n of t){const t=new Array;for(const r of n)c&&e?t.push([a[s++],a[s++],a[s++],r[3]]):c?t.push([a[s++],a[s++],a[s++]]):e?(t.push([a[s++],a[s++],r[2]]),s++):(t.push([a[s++],a[s++]]),s++);o.push(t)}return!0}const st=(0,a.vt)()}}]);
|