@arcgis/core 5.2.0-next.167 → 5.2.0-next.169
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/Map.d.ts +6 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/057f245d70e57a1bcb46.js +1 -0
- package/assets/esri/core/workers/chunks/{1419bf346978b81b08cc.js → 094eb9677cdebfaa9e1b.js} +1 -1
- package/assets/esri/core/workers/chunks/0d52e1b6d38f2670658c.js +1 -0
- package/assets/esri/core/workers/chunks/0f7455dbe8c2ee464194.js +1 -0
- package/assets/esri/core/workers/chunks/10878932826ddb60fac4.js +1 -0
- package/assets/esri/core/workers/chunks/144bad0c2415c345736a.js +1 -0
- package/assets/esri/core/workers/chunks/1a614bac5db42c6263f8.js +1 -0
- package/assets/esri/core/workers/chunks/{99a0a434ea2162166754.js → 2095f220dc2b8f8f62db.js} +1 -1
- package/assets/esri/core/workers/chunks/{5daa9429808ca31279f2.js → 216a239142dfe1306c6c.js} +1 -1
- package/assets/esri/core/workers/chunks/25c3be410d1c03f8f39d.js +1 -0
- package/assets/esri/core/workers/chunks/294276ed397023dcda44.js +1 -0
- package/assets/esri/core/workers/chunks/2a2a4650dd9b953d317c.js +1 -0
- package/assets/esri/core/workers/chunks/2b6684d057d9ad17ac13.js +1 -0
- package/assets/esri/core/workers/chunks/{ad96132bc89671e595f3.js → 2d3e0e4442dbc6ec6def.js} +1 -1
- package/assets/esri/core/workers/chunks/2d83ba260dd6bbe38206.js +1 -0
- package/assets/esri/core/workers/chunks/{69d5f8ef78b9b8b3d33d.js → 3286cf2afeb7f48564d9.js} +1 -1
- package/assets/esri/core/workers/chunks/3321cb0d4cb68b2ec8bf.js +1 -0
- package/assets/esri/core/workers/chunks/{e99c8c71c757bb161d87.js → 3636c2ac9b77950776d6.js} +1 -1
- package/assets/esri/core/workers/chunks/367b2f25cfe37847a48d.js +1 -0
- package/assets/esri/core/workers/chunks/379ef56f6b32494832a6.js +1 -0
- package/assets/esri/core/workers/chunks/3c881b1adc8a5dea9a90.js +1 -0
- package/assets/esri/core/workers/chunks/{6a2562cc00727155fc01.js → 4024becaf4012c1f15a7.js} +1 -1
- package/assets/esri/core/workers/chunks/435ad7e6ed326da2b969.js +1 -0
- package/assets/esri/core/workers/chunks/4419732baf3459a80e6d.js +1 -0
- package/assets/esri/core/workers/chunks/46f0510846a309a390ca.js +1 -0
- package/assets/esri/core/workers/chunks/4e17665dd9048c300d87.js +1 -0
- package/assets/esri/core/workers/chunks/509a74e9334f31b931d4.js +1 -0
- package/assets/esri/core/workers/chunks/50e8943d2c0b96fab2c1.js +1 -0
- package/assets/esri/core/workers/chunks/5396b6e99a0546a25d19.js +1 -0
- package/assets/esri/core/workers/chunks/546f5f57c9249627bb89.js +1 -0
- package/assets/esri/core/workers/chunks/561c48cb4d49b150765b.js +1 -0
- package/assets/esri/core/workers/chunks/{d90a3bfd45b5ed4092e0.js → 590fe0f56bc4c33a50e7.js} +1 -1
- package/assets/esri/core/workers/chunks/5d42f0898bf30ae940ea.js +1 -0
- package/assets/esri/core/workers/chunks/5f1cb79aec9c4a9b7ddc.js +29 -0
- package/assets/esri/core/workers/chunks/{5d2f043ebe1051326c56.js → 63b5418a1c3fe0a97a86.js} +1 -1
- package/assets/esri/core/workers/chunks/63c3a573dfe703056f8f.js +1 -0
- package/assets/esri/core/workers/chunks/673c61c964524150d9bc.js +1 -0
- package/assets/esri/core/workers/chunks/692f0093c444fcc752b5.js +1 -0
- package/assets/esri/core/workers/chunks/69627b2634da64dd885f.js +1 -0
- package/assets/esri/core/workers/chunks/{e6d10136bc08aef255ff.js → 712559f121f76c4e71ab.js} +1 -1
- package/assets/esri/core/workers/chunks/71a51795f715332fb4fe.js +1 -0
- package/assets/esri/core/workers/chunks/735c1dffc3439bdba3cc.js +1 -0
- package/assets/esri/core/workers/chunks/7862abd24fb5c3b12e6b.js +1 -0
- package/assets/esri/core/workers/chunks/{44d5508042cacdfcac47.js → 7d2be06dfbd92c8b9484.js} +1 -1
- package/assets/esri/core/workers/chunks/7f5b887a753bb67c8486.js +1 -0
- package/assets/esri/core/workers/chunks/822f83d7c09ef0a9bbdf.js +1 -0
- package/assets/esri/core/workers/chunks/849f446c718e892f39ce.js +1 -0
- package/assets/esri/core/workers/chunks/8d86b0cb0e004ad72040.js +1 -0
- package/assets/esri/core/workers/chunks/{76196c414e48834f7b92.js → 8f008eedb11685ee2048.js} +1 -1
- package/assets/esri/core/workers/chunks/98760040f0c9d47c718d.js +1 -0
- package/assets/esri/core/workers/chunks/{4b99b4cf729881e616bc.js → 98d1efb6f2439c6344cf.js} +1 -1
- package/assets/esri/core/workers/chunks/{18f20fd43ec9ce03cef1.js → 9e04703ee5f5ec47db43.js} +1 -1
- package/assets/esri/core/workers/chunks/9e0b0262dec496451762.js +1 -0
- package/assets/esri/core/workers/chunks/{23fd4de56de352f63e2d.js → a2196a49f89d57a0a1c7.js} +1 -1
- package/assets/esri/core/workers/chunks/{89c8b0f684c1f27d149e.js → a2f0894218e665780a21.js} +1 -1
- package/assets/esri/core/workers/chunks/a79cae328e866272754a.js +1 -0
- package/assets/esri/core/workers/chunks/a85cdafbaf1848bb924b.js +1 -0
- package/assets/esri/core/workers/chunks/b01688ccc29d33bfc82d.js +1 -0
- package/assets/esri/core/workers/chunks/b0a612d8ffa5c46d7db4.js +1 -0
- package/assets/esri/core/workers/chunks/b5eff28cf482d920b9ea.js +1 -0
- package/assets/esri/core/workers/chunks/b70885deebc6106597ad.js +1 -0
- package/assets/esri/core/workers/chunks/bedaa5e64ed81803829a.js +1 -0
- package/assets/esri/core/workers/chunks/{a88f346786b04bd194dc.js → c0b38f8c808d434af5f6.js} +1 -1
- package/assets/esri/core/workers/chunks/c1cf3edce15f09648eb4.js +1 -0
- package/assets/esri/core/workers/chunks/c249a91dd23104723fab.js +1 -0
- package/assets/esri/core/workers/chunks/c45edd0a7d57263bb7d6.js +1 -0
- package/assets/esri/core/workers/chunks/c4bbe4707e90b7cd0379.js +1 -0
- package/assets/esri/core/workers/chunks/c52466eb1f3c33ae1f5a.js +1 -0
- package/assets/esri/core/workers/chunks/c570b90995c65bbb2e14.js +1 -0
- package/assets/esri/core/workers/chunks/c576bef77e34920af188.js +1 -0
- package/assets/esri/core/workers/chunks/c7699edd14497d174445.js +1 -0
- package/assets/esri/core/workers/chunks/c80a3b039e510c118399.js +1 -0
- package/assets/esri/core/workers/chunks/{196979cc6a765be3c5cd.js → c88a70f68c8ce8c30e9b.js} +1 -1
- package/assets/esri/core/workers/chunks/c9feffb9884cfed52c4b.js +1 -0
- package/assets/esri/core/workers/chunks/caaf6306cc73f618d27d.js +1 -0
- package/assets/esri/core/workers/chunks/{b704f489d0f072a0bfcd.js → ccd19c490ca24db6ffb1.js} +1 -1
- package/assets/esri/core/workers/chunks/cdacc3e42f01c3b852d6.js +1 -0
- package/assets/esri/core/workers/chunks/d1d6154b4af1c9cc497b.js +1 -0
- package/assets/esri/core/workers/chunks/d20dcd4ce4b0111d924f.js +1 -0
- package/assets/esri/core/workers/chunks/{784a2fba3e18286958d1.js → d56fdf5ce5ff53dc0e69.js} +1 -1
- package/assets/esri/core/workers/chunks/d7cf32a8c6060a208f06.js +1 -0
- package/assets/esri/core/workers/chunks/daae21cf77864f3293ef.js +1 -0
- package/assets/esri/core/workers/chunks/dd08dff19a2ffd36f284.js +1 -0
- package/assets/esri/core/workers/chunks/de3f140058aa0b907b65.js +1 -0
- package/assets/esri/core/workers/chunks/df375d1b0dab5ecbd1be.js +1 -0
- package/assets/esri/core/workers/chunks/{e2775b4b753306dc8477.js → df7603ef7d2a7cbeaaa2.js} +1 -1
- package/assets/esri/core/workers/chunks/e9cdb0b0f074583edebd.js +1 -0
- package/assets/esri/core/workers/chunks/eaab787a5f2445be5e5a.js +1 -0
- package/assets/esri/core/workers/chunks/edd36a1fc80b1d29907e.js +1 -0
- package/assets/esri/core/workers/chunks/{444e5f214abce3d607cd.js → eeb068c265bd3a22a8c1.js} +1 -1
- package/assets/esri/core/workers/chunks/f2cfee8a761ae91f7a3e.js +1 -0
- package/assets/esri/core/workers/chunks/f3fdf75843ade0ca591e.js +1 -0
- package/assets/esri/core/workers/chunks/f5cc78291b53931b91e8.js +1 -0
- package/assets/esri/core/workers/chunks/f9dc38761b314d33890f.js +1 -0
- package/assets/esri/core/workers/chunks/feb6e041dd0aa1c59c31.js +1 -0
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ar.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.bg.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.bs.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ca.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.cs.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.da.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.de.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.el.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.es.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.et.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.fi.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.fr.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.he.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.hr.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.hu.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.id.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.it.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ja.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ko.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.lt.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.lv.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.nl.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.no.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pl.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pt-BR.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pt-PT.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ro.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ru.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sk.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sl.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sr.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sv.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.th.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.tr.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.uk.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.vi.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-CN.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-HK.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-TW.json +1 -1
- package/config.js +1 -1
- package/core/workers/workers.js +2 -2
- package/core/workers.d.ts +1 -1
- package/form/elements/inputs/DynamicChoiceInput.d.ts +2 -2
- package/geometry/operators/containsOperator.d.ts +1 -1
- package/geometry/operators/densifyOperator.d.ts +1 -1
- package/geometry/operators/differenceOperator.d.ts +6 -4
- package/geometry/operators/distanceOperator.d.ts +1 -1
- package/geometry/operators/geodesicProximityOperator.d.ts +8 -8
- package/geometry/operators/graphicBufferOperator.d.ts +6 -6
- package/geometry/operators/integrateOperator.d.ts +2 -2
- package/geometry/operators/intersectsOperator.d.ts +3 -3
- package/geometry/operators/linesToPolygonsOperator.d.ts +2 -2
- package/geometry/operators/locateBetweenOperator.d.ts +2 -2
- package/geometry/operators/minimumBoundingCircleOperator.d.ts +1 -1
- package/geometry/operators/multiPartToSinglePartOperator.d.ts +2 -2
- package/geometry/operators/polygonSlicerOperator.d.ts +2 -2
- package/geometry/operators/projectOperator.d.ts +2 -2
- package/geometry/operators/proximityOperator.d.ts +15 -15
- package/geometry/operators/shapePreservingProjectOperator.d.ts +2 -2
- package/geometry/operators/simplifyOperator.d.ts +2 -2
- package/geometry/operators/support/GeographicTransformationStep.d.ts +3 -3
- package/geometry/operators/support/Transformation.d.ts +8 -8
- package/geometry/operators/support/geographicTransformationUtils.d.ts +3 -3
- package/geometry/operators/symmetricDifferenceOperator.d.ts +2 -2
- package/geometry/operators/withinOperator.d.ts +3 -3
- package/graphic/MapNotesGraphicOrigin.d.ts +1 -0
- package/kernel.js +1 -1
- package/layers/ElevationLayer.d.ts +6 -2
- package/layers/GeospatialPDFLayer.d.ts +2 -2
- package/layers/ParquetLayer.d.ts +1 -1
- package/layers/VectorTileLayer.d.ts +10 -1
- package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
- package/layers/orientedImagery/core/coverageUtils.js +1 -1
- package/layers/orientedImagery/transformations/imageToWorld.js +1 -1
- package/layers/orientedImagery/transformations/rectifyMapPoint.js +1 -1
- package/layers/orientedImagery/transformations/rotationUtils.js +2 -0
- package/layers/orientedImagery/transformations/utils.js +1 -1
- package/package.json +2 -2
- package/popup/FeaturesModel.js +1 -1
- package/popup/support/featureUtils.js +1 -1
- package/rest/featureService/FeatureService.d.ts +0 -5
- package/rest/networks/support/TraceLocation.d.ts +2 -1
- package/rest/networks/support/TraceResult.d.ts +0 -4
- package/rest/support/OutDistance.d.ts +0 -1
- package/smartMapping/statistics/histogramForTimeSeries.js +1 -1
- package/smartMapping/statistics/summaryStatisticsForTimeSeries.js +1 -1
- package/support/BasemapStyle.d.ts +2 -2
- package/symbols/cim/types.d.ts +7 -9
- package/views/2d/engine/webgl/collisions/LabelMetric.js +1 -1
- package/views/2d/engine/webgl/collisions/LabelStore.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriterVertexPack.js +1 -1
- package/views/2d/layers/features/FeatureContainer.js +1 -1
- package/views/2d/layers/support/visualVariableSimpleUtils.js +1 -1
- package/views/3d/environment/SunLighting.d.ts +15 -2
- package/views/3d/environment/VirtualLighting.d.ts +15 -2
- package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
- package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
- package/views/draw/DrawOperation.js +1 -1
- package/views/draw/DrawScreenTool.js +1 -1
- package/views/input/types.d.ts +2 -4
- package/views/interactive/options/LabelOptions.d.ts +5 -5
- package/views/interactive/options/SnappingOptions.d.ts +2 -2
- package/widgets/BatchAttributeForm/inputs/FieldInput.d.ts +0 -1
- package/widgets/Editor/VisibleElements.d.ts +4 -0
- package/widgets/Editor.d.ts +2 -0
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/FeatureTable.js +1 -1
- package/widgets/Features/FeaturesViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/ImageMeasurementWorker.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/sketch/MeasurementAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/view/SceneViewAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
- package/widgets/OrientedImageryViewer/imageMeasurementWorkerUtils.js +2 -0
- package/widgets/OrientedImageryViewer/services/ImageMeasurementService.js +1 -1
- package/widgets/OrientedImageryViewer/services/SuperimposeService.js +1 -1
- package/widgets/OrientedImageryViewer/support/NonPanoramicMedia.js +1 -1
- package/widgets/OrientedImageryViewer/support/dataCaptureUtils.js +1 -1
- package/widgets/OrientedImageryViewer/support/superimposeUtils.js +1 -1
- package/widgets/OrientedImageryViewer.js +2 -2
- package/widgets/PanoramicViewer/utils.js +1 -1
- package/widgets/Search/LayerSearchSource.d.ts +1 -1
- package/widgets/Sketch/VisibleElements.d.ts +4 -0
- package/widgets/Sketch.d.ts +2 -0
- package/widgets/support/iconUtils.js +1 -1
- package/assets/esri/core/workers/chunks/010f57ec7fdbedf78d02.js +0 -1
- package/assets/esri/core/workers/chunks/02e10f44edf911832c2a.js +0 -1
- package/assets/esri/core/workers/chunks/07f7177bfaf9de73bc25.js +0 -1
- package/assets/esri/core/workers/chunks/090adefe20412e8a5084.js +0 -1
- package/assets/esri/core/workers/chunks/0d9c4c6c571ce26d356b.js +0 -1
- package/assets/esri/core/workers/chunks/1201b8c5852830836eac.js +0 -1
- package/assets/esri/core/workers/chunks/151e5799ede763a03ee2.js +0 -1
- package/assets/esri/core/workers/chunks/168a523bdc3653081f8a.js +0 -1
- package/assets/esri/core/workers/chunks/175c268e64ccd01f8c25.js +0 -1
- package/assets/esri/core/workers/chunks/18787aa685524b958561.js +0 -1
- package/assets/esri/core/workers/chunks/1e1c45f75020d5e05dc3.js +0 -1
- package/assets/esri/core/workers/chunks/28104681ba161967039f.js +0 -1
- package/assets/esri/core/workers/chunks/2a36fe3f3f257a779a1b.js +0 -1
- package/assets/esri/core/workers/chunks/30af63b3b750142faadb.js +0 -1
- package/assets/esri/core/workers/chunks/3dddae78286d05eb10fc.js +0 -1
- package/assets/esri/core/workers/chunks/3f946c13ad97fbed867b.js +0 -1
- package/assets/esri/core/workers/chunks/40d803584eeade4df433.js +0 -1
- package/assets/esri/core/workers/chunks/41773d858e212468db88.js +0 -1
- package/assets/esri/core/workers/chunks/426b4eb500fdfe9df325.js +0 -1
- package/assets/esri/core/workers/chunks/45367aa8e5c5d574de94.js +0 -1
- package/assets/esri/core/workers/chunks/47d074136a7f8e551a9a.js +0 -1
- package/assets/esri/core/workers/chunks/4932773663469919d10a.js +0 -1
- package/assets/esri/core/workers/chunks/49b967d89d2841cea675.js +0 -1
- package/assets/esri/core/workers/chunks/4a6b92ecbb1f1c55cc43.js +0 -1
- package/assets/esri/core/workers/chunks/4cb751dc8d00bdaeb04c.js +0 -1
- package/assets/esri/core/workers/chunks/4d3d7ec407ee5cd5f036.js +0 -1
- package/assets/esri/core/workers/chunks/4fd0d9688df6fcc0d0b8.js +0 -1
- package/assets/esri/core/workers/chunks/53ff68d4f9e365fc15cd.js +0 -1
- package/assets/esri/core/workers/chunks/548b8f74a6883e364931.js +0 -1
- package/assets/esri/core/workers/chunks/5af8fb4ec2c72697e35b.js +0 -1
- package/assets/esri/core/workers/chunks/5d76f4d97beee494bbbf.js +0 -1
- package/assets/esri/core/workers/chunks/5dc604e3691f36f03959.js +0 -1
- package/assets/esri/core/workers/chunks/611e3cdf67283c11576f.js +0 -1
- package/assets/esri/core/workers/chunks/61552b4b8111a8624d84.js +0 -1
- package/assets/esri/core/workers/chunks/6299be5e7e26bf3c6859.js +0 -1
- package/assets/esri/core/workers/chunks/632fdf1d95ad69109427.js +0 -1
- package/assets/esri/core/workers/chunks/652faf4359ac072c5dde.js +0 -1
- package/assets/esri/core/workers/chunks/6b9961261241fdce0e94.js +0 -1
- package/assets/esri/core/workers/chunks/710b8251a59884aee31e.js +0 -1
- package/assets/esri/core/workers/chunks/7159d9c36869cd82599e.js +0 -29
- package/assets/esri/core/workers/chunks/7393f63043a1da3d05a6.js +0 -1
- package/assets/esri/core/workers/chunks/7449568eb2305bf2d650.js +0 -1
- package/assets/esri/core/workers/chunks/771dd92cb3e6a3427f66.js +0 -1
- package/assets/esri/core/workers/chunks/7748c2886d0122b40eeb.js +0 -1
- package/assets/esri/core/workers/chunks/78c4e43cfa1eda06b4d9.js +0 -1
- package/assets/esri/core/workers/chunks/7e0f04a5038e2a4f6e4b.js +0 -1
- package/assets/esri/core/workers/chunks/7f0f9dddc44b1f1600f0.js +0 -1
- package/assets/esri/core/workers/chunks/7f16ae01ccd9b6114d1c.js +0 -1
- package/assets/esri/core/workers/chunks/82a022cc21364c9a8539.js +0 -1
- package/assets/esri/core/workers/chunks/8924e2f3b7d03afb3a6a.js +0 -1
- package/assets/esri/core/workers/chunks/90153b5230b3a4985c14.js +0 -1
- package/assets/esri/core/workers/chunks/9189dfe19a2a2ccd5173.js +0 -1
- package/assets/esri/core/workers/chunks/9215b59c5ccecf9add58.js +0 -1
- package/assets/esri/core/workers/chunks/943a0f140813ee4ab04a.js +0 -1
- package/assets/esri/core/workers/chunks/967b4992b400517ee712.js +0 -1
- package/assets/esri/core/workers/chunks/9dd1fc56eb1ea6eb705e.js +0 -1
- package/assets/esri/core/workers/chunks/a163c6005aba3378edaa.js +0 -1
- package/assets/esri/core/workers/chunks/a53823cf03dbdce1aecd.js +0 -1
- package/assets/esri/core/workers/chunks/a62c12925303ff802c3d.js +0 -1
- package/assets/esri/core/workers/chunks/acb265a22be5e12f38e5.js +0 -1
- package/assets/esri/core/workers/chunks/acdfd275dbf8533a67f3.js +0 -1
- package/assets/esri/core/workers/chunks/ace802483484519658f3.js +0 -1
- package/assets/esri/core/workers/chunks/b3007aedbf731dacaff1.js +0 -1
- package/assets/esri/core/workers/chunks/b4334713bacdfe40ce3d.js +0 -1
- package/assets/esri/core/workers/chunks/b83cef2d3f528726d492.js +0 -1
- package/assets/esri/core/workers/chunks/be97a629e2ae4d13ceb3.js +0 -1
- package/assets/esri/core/workers/chunks/c337fc0e6dc69c233e6d.js +0 -1
- package/assets/esri/core/workers/chunks/c47d095434d09b5f10c6.js +0 -1
- package/assets/esri/core/workers/chunks/c4b7111dcedd9d6e1c2a.js +0 -1
- package/assets/esri/core/workers/chunks/c5d85be6e16bc895e7fb.js +0 -1
- package/assets/esri/core/workers/chunks/c8d6bb5cca49926a0214.js +0 -1
- package/assets/esri/core/workers/chunks/cb4be68cc5085d421615.js +0 -1
- package/assets/esri/core/workers/chunks/cb4db5489388559d6bd9.js +0 -1
- package/assets/esri/core/workers/chunks/cc794bb94ebc1cb66024.js +0 -1
- package/assets/esri/core/workers/chunks/cc94bf05b235e65291fc.js +0 -1
- package/assets/esri/core/workers/chunks/d4af9faa5d901274fad2.js +0 -1
- package/assets/esri/core/workers/chunks/d77c68e0fc3b259bf4f9.js +0 -1
- package/assets/esri/core/workers/chunks/daf9b691817e83a11f3c.js +0 -1
- package/assets/esri/core/workers/chunks/de0f335f702ae85a1df3.js +0 -1
- package/assets/esri/core/workers/chunks/e11159e3dc3353b27c57.js +0 -1
- package/assets/esri/core/workers/chunks/f8379cd45f750f28a3d8.js +0 -1
- package/assets/esri/core/workers/chunks/f905f1a1aa4c123cbe83.js +0 -1
- package/assets/esri/core/workers/chunks/fd4635410b27bcedb752.js +0 -1
- package/assets/esri/core/workers/chunks/fda83bcb8e40e8044c24.js +0 -1
- package/assets/esri/core/workers/chunks/feb4f8c807bb0dca488f.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3354,6707],{73354(t,e,n){n.d(e,{a:()=>f,b:()=>a,c:()=>i,d:()=>o,e:()=>c,f:()=>u,l:()=>h,n:()=>m,t:()=>s}),n(44208);var r=n(72727);function i(t,e,n){s(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function s(t,e,n,i=3,s=i){let o=(0,r.k)(t.length,i,3),a=(0,r.k)(e.length,s,3),l=Math.min(o,a),h=n[0],u=n[1],f=n[2],c=n[4],m=n[5],d=n[6],p=n[8],y=n[9],g=n[10],_=n[12],M=n[13],b=n[14],v=0,x=0;for(let n=0;n<l;n++){let n=e[v],r=e[v+1],o=e[v+2];t[x]=h*n+c*r+p*o+_,t[x+1]=u*n+m*r+y*o+M,t[x+2]=f*n+d*r+g*o+b,v+=s,x+=i}return t}function o(t,e,n){a(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function a(t,e,n,i=3,s=i){let o=(0,r.k)(t.length,i,3),a=(0,r.k)(e.length,s,3),l=Math.min(o,a),h=n[0],u=n[1],f=n[2],c=n[3],m=n[4],d=n[5],p=n[6],y=n[7],g=n[8],_=0,M=0;for(let n=0;n<l;n++){let n=e[_],r=e[_+1],o=e[_+2];t[M]=h*n+c*r+p*o,t[M+1]=u*n+m*r+y*o,t[M+2]=f*n+d*r+g*o,_+=s,M+=i}}function l(t,e,n,r=3,i=r){let s=Math.min(t.length/r,e.length/i),o=0,a=0;for(let l=0;l<s;l++)t[a]=n*e[o],t[a+1]=n*e[o+1],t[a+2]=n*e[o+2],o+=i,a+=r;return t}function h(t,e,n,r){u(t.typedBuffer,e.typedBuffer,n,r,t.typedBufferStride,e.typedBufferStride)}function u(t,e,n,r,i=3,s=i){let o=Math.min(t.length/i,e.length/s),a=0,l=0,h=1/2.2;for(let u=0;u<o;u++)t[l]=r*(n*e[a])**h,t[l+1]=r*(n*e[a+1])**h,t[l+2]=r*(n*e[a+2])**h,a+=s,l+=i}function f(t,e,n,i=3,s=i){let o=(0,r.k)(t.length,i,3),a=(0,r.k)(e.length,s,3),l=Math.min(o,a),h=0,u=0;for(let r=0;r<l;r++)t[u]=e[h]+n[0],t[u+1]=e[h+1]+n[1],t[u+2]=e[h+2]+n[2],h+=s,u+=i;return t}function c(t,e){m(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function m(t,e,n=3,r=n){let i=Math.min(t.length/n,e.length/r),s=0,o=0;for(let a=0;a<i;a++){let i=e[s],a=e[s+1],l=e[s+2],h=i*i+a*a+l*l;if(h>0){let e=1/Math.sqrt(h);t[o]=e*i,t[o+1]=e*a,t[o+2]=e*l}s+=r,o+=n}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:u,linearToSRGBView:h,normalize:m,normalizeView:c,scale:l,scaleView:function(t,e,n){l(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)},shiftRight:function(t,e,n){let r=Math.min(t.count,e.count),i=t.typedBuffer,s=t.typedBufferStride,o=e.typedBuffer,a=e.typedBufferStride,l=0,h=0;for(let t=0;t<r;t++)i[h]=o[l]>>n,i[h+1]=o[l+1]>>n,i[h+2]=o[l+2]>>n,l+=a,h+=s},transformMat3:a,transformMat3View:o,transformMat4:s,transformMat4View:i,translate:f},Symbol.toStringTag,{value:"Module"}))},69540(t,e,n){var r=n(32198),i=n(69622),s=(n(44208),n(4718)),o=(n(53966),n(97768)),a=n(88620),l=n(64108);const h=Symbol("ClonableMixin"),u=t=>{var e;let n=t,i=class extends n{constructor(){super(...arguments),this[e]=!0}static{e=h}clone(t){let e=(0,a.oY)(this);(0,o.Lw)(e,"unable to clone instance of non-accessor class");let n=e.metadata,r=e.store,i={},l=new Map;for(let e in n){let o=n[e],a=r?.originOf(e),h=o.clonable;if(o.readOnly||!1===h||7!==a&&0!==a&&5!==a&&4!==a)continue;let u=this[e],f=null;if("function"==typeof h)f=h(u,t);else if("reference"===h)f=u;else if(f=(0,s.TU)(u,t),null!=u&&null==f)continue;0===a?l.set(e,f):i[e]=f}let h=new(0,Object.getPrototypeOf(this).constructor)(i);if(l.size){let t=(0,a.oY)(h)?.store;if(t)for(let[e,n]of l)t.set(e,n,0)}return h}};return i=(0,r.Cg)([(0,l.$)("esri.core.Clonable")],i),i},f=u(i.A);n.d(e,["OU",0,u,"Pw",0,f])},9775(t,e,n){n.d(e,{A:()=>s});var r=n(62788),i=n(95488);class s{constructor(t=t=>t.values().next().value){this._peeker=t,this._observable=new i.I,this._items=new Set}get length(){return(0,r.gc)(this._observable),this._items.size}clear(){0!==this.length&&(this._items.clear(),this._observable.notify())}last(){if(0===this.length)return;let t;for(t of this._items);return t}peek(){if(0!==this.length)return this._peeker(this._items)}push(t){this.contains(t)||(this._items.add(t),this._observable.notify())}contains(t){return(0,r.gc)(this._observable),this._items.has(t)}pop(){if(0===this.length)return;let t=this.peek();return this._items.delete(t),this._observable.notify(),t}popLast(){if(0===this.length)return;let t=this.last();return this._items.delete(t),this._observable.notify(),t}remove(t){this.contains(t)&&(this._items.delete(t),this._observable.notify())}filter(t){let e=this.length;return this._items.forEach(e=>{t(e)||this._items.delete(e)}),e!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){(0,r.gc)(this._observable),yield*this._items}}},95488(t,e,n){n.d(e,{I:()=>i});var r=n(11406);class i extends r.T{notify(){let t=this._observers;if(t&&t.length>0){let e=t.slice();for(let t of e)t.onInvalidated(),t.onCommitted()}}}},9093(t,e,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(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]]}n.d(e,{o8:()=>i,vt:()=>r});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:i,create:r,fromValues:function(t,e,n,r,i,s,o,a,l,h,u,f,c,m,d,p){return[t,e,n,r,i,s,o,a,l,h,u,f,c,m,d,p]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["zK",0,s])},58083(t,e,n){n.d(e,{$0:()=>g,$h:()=>T,B8:()=>u,C:()=>s,D_:()=>a,N9:()=>M,O7:()=>w,Qw:()=>h,Tl:()=>c,X_:()=>S,e$:()=>d,eL:()=>p,hM:()=>_,hZ:()=>o,hs:()=>m,kN:()=>y,l:()=>A,lw:()=>f,mg:()=>l,o1:()=>R,sC:()=>x,t2:()=>I,t5:()=>C,tZ:()=>N,ut:()=>O});var r=n(51850),i=n(34304);function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function o(t,e,n,r,i,s,o,a,l,h,u,f,c,m,d,p,y){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=s,t[5]=o,t[6]=a,t[7]=l,t[8]=h,t[9]=u,t[10]=f,t[11]=c,t[12]=m,t[13]=d,t[14]=p,t[15]=y,t}function a(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function l(t,e){if(t===e){let n=e[1],r=e[2],i=e[3],s=e[6],o=e[7],a=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=s,t[11]=e[14],t[12]=i,t[13]=o,t[14]=a}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function h(t,e){return u(t,e)||a(t),t}function u(t,e){let n=e[0],r=e[1],i=e[2],s=e[3],o=e[4],a=e[5],l=e[6],h=e[7],u=e[8],f=e[9],c=e[10],m=e[11],d=e[12],p=e[13],y=e[14],g=e[15],_=n*a-r*o,M=n*l-i*o,b=n*h-s*o,v=r*l-i*a,x=r*h-s*a,S=i*h-s*l,A=u*p-f*d,R=u*y-c*d,w=u*g-m*d,T=f*y-c*p,C=f*g-m*p,E=c*g-m*y,I=_*E-M*C+b*T+v*w-x*R+S*A;return I?(I=1/I,t[0]=(a*E-l*C+h*T)*I,t[1]=(i*C-r*E-s*T)*I,t[2]=(p*S-y*x+g*v)*I,t[3]=(c*x-f*S-m*v)*I,t[4]=(l*w-o*E-h*R)*I,t[5]=(n*E-i*w+s*R)*I,t[6]=(y*b-d*S-g*M)*I,t[7]=(u*S-c*b+m*M)*I,t[8]=(o*C-a*w+h*A)*I,t[9]=(r*w-n*C-s*A)*I,t[10]=(d*x-p*b+g*_)*I,t[11]=(f*b-u*x-m*_)*I,t[12]=(a*R-o*T-l*A)*I,t[13]=(n*T-r*R+i*A)*I,t[14]=(p*M-d*v-y*_)*I,t[15]=(u*v-f*M+c*_)*I,t):null}function f(t,e,n){let r=e[0],i=e[1],s=e[2],o=e[3],a=e[4],l=e[5],h=e[6],u=e[7],f=e[8],c=e[9],m=e[10],d=e[11],p=e[12],y=e[13],g=e[14],_=e[15],M=n[0],b=n[1],v=n[2],x=n[3];return t[0]=M*r+b*a+v*f+x*p,t[1]=M*i+b*l+v*c+x*y,t[2]=M*s+b*h+v*m+x*g,t[3]=M*o+b*u+v*d+x*_,M=n[4],b=n[5],v=n[6],x=n[7],t[4]=M*r+b*a+v*f+x*p,t[5]=M*i+b*l+v*c+x*y,t[6]=M*s+b*h+v*m+x*g,t[7]=M*o+b*u+v*d+x*_,M=n[8],b=n[9],v=n[10],x=n[11],t[8]=M*r+b*a+v*f+x*p,t[9]=M*i+b*l+v*c+x*y,t[10]=M*s+b*h+v*m+x*g,t[11]=M*o+b*u+v*d+x*_,M=n[12],b=n[13],v=n[14],x=n[15],t[12]=M*r+b*a+v*f+x*p,t[13]=M*i+b*l+v*c+x*y,t[14]=M*s+b*h+v*m+x*g,t[15]=M*o+b*u+v*d+x*_,t}function c(t,e,n){let r=n[0],i=n[1],s=n[2];if(e===t)t[12]=e[0]*r+e[4]*i+e[8]*s+e[12],t[13]=e[1]*r+e[5]*i+e[9]*s+e[13],t[14]=e[2]*r+e[6]*i+e[10]*s+e[14],t[15]=e[3]*r+e[7]*i+e[11]*s+e[15];else{let n=e[0],o=e[1],a=e[2],l=e[3],h=e[4],u=e[5],f=e[6],c=e[7],m=e[8],d=e[9],p=e[10],y=e[11];t[0]=n,t[1]=o,t[2]=a,t[3]=l,t[4]=h,t[5]=u,t[6]=f,t[7]=c,t[8]=m,t[9]=d,t[10]=p,t[11]=y,t[12]=n*r+h*i+m*s+e[12],t[13]=o*r+u*i+d*s+e[13],t[14]=a*r+f*i+p*s+e[14],t[15]=l*r+c*i+y*s+e[15]}return t}function m(t,e,n){let r=n[0],i=n[1],s=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*s,t[9]=e[9]*s,t[10]=e[10]*s,t[11]=e[11]*s,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function d(t,e,n,r){let o=r[0],a=r[1],l=r[2],h=Math.sqrt(o*o+a*a+l*l);if(h<=(0,i.FD)())return void s(t,e);h=1/h,o*=h,a*=h,l*=h;let u=Math.sin(n),f=Math.cos(n),c=1-f,m=e[0],d=e[1],p=e[2],y=e[3],g=e[4],_=e[5],M=e[6],b=e[7],v=e[8],x=e[9],S=e[10],A=e[11],R=o*o*c+f,w=a*o*c+l*u,T=l*o*c-a*u,C=o*a*c-l*u,E=a*a*c+f,I=l*a*c+o*u,O=o*l*c+a*u,N=a*l*c-o*u,P=l*l*c+f;t[0]=m*R+g*w+v*T,t[1]=d*R+_*w+x*T,t[2]=p*R+M*w+S*T,t[3]=y*R+b*w+A*T,t[4]=m*C+g*E+v*I,t[5]=d*C+_*E+x*I,t[6]=p*C+M*E+S*I,t[7]=y*C+b*E+A*I,t[8]=m*O+g*N+v*P,t[9]=d*O+_*N+x*P,t[10]=p*O+M*N+S*P,t[11]=y*O+b*N+A*P,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15])}function p(t,e,n){let r=Math.sin(n),i=Math.cos(n),s=e[4],o=e[5],a=e[6],l=e[7],h=e[8],u=e[9],f=e[10],c=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=s*i+h*r,t[5]=o*i+u*r,t[6]=a*i+f*r,t[7]=l*i+c*r,t[8]=h*i-s*r,t[9]=u*i-o*r,t[10]=f*i-a*r,t[11]=c*i-l*r,t}function y(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function g(t,e,n){if(0===e)return a(t);let r=n[0],s=n[1],o=n[2],l=Math.sqrt(r*r+s*s+o*o);if(l<=(0,i.FD)())return null;l=1/l,r*=l,s*=l,o*=l;let h=Math.sin(e),u=Math.cos(e),f=1-u;return t[0]=r*r*f+u,t[1]=s*r*f+o*h,t[2]=o*r*f-s*h,t[3]=0,t[4]=r*s*f-o*h,t[5]=s*s*f+u,t[6]=o*s*f+r*h,t[7]=0,t[8]=r*o*f+s*h,t[9]=s*o*f-r*h,t[10]=o*o*f+u,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function _(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function M(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function b(t,e,n){let r=e[0],i=e[1],s=e[2],o=e[3],a=r+r,l=i+i,h=s+s,u=r*a,f=r*l,c=r*h,m=i*l,d=i*h,p=s*h,y=o*a,g=o*l,_=o*h;return t[0]=1-(m+p),t[1]=f+_,t[2]=c-g,t[3]=0,t[4]=f-_,t[5]=1-(u+p),t[6]=d+y,t[7]=0,t[8]=c+g,t[9]=d-y,t[10]=1-(u+m),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}const v=(0,r.vt)();function x(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function S(t,e){let n=e[0],r=e[1],i=e[2],s=e[4],o=e[5],a=e[6],l=e[8],h=e[9],u=e[10];return t[0]=Math.sqrt(n*n+r*r+i*i),t[1]=Math.sqrt(s*s+o*o+a*a),t[2]=Math.sqrt(l*l+h*h+u*u),t}function A(t,e){let n=e[0]+e[5]+e[10],r=0;return n>0?(r=2*Math.sqrt(n+1),t[3]=.25*r,t[0]=(e[6]-e[9])/r,t[1]=(e[8]-e[2])/r,t[2]=(e[1]-e[4])/r):e[0]>e[5]&&e[0]>e[10]?(r=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/r,t[0]=.25*r,t[1]=(e[1]+e[4])/r,t[2]=(e[8]+e[2])/r):e[5]>e[10]?(r=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/r,t[0]=(e[1]+e[4])/r,t[1]=.25*r,t[2]=(e[6]+e[9])/r):(r=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/r,t[0]=(e[8]+e[2])/r,t[1]=(e[6]+e[9])/r,t[2]=.25*r),t}function R(t,e,n,r){let i=e[0],s=e[1],o=e[2],a=e[3],l=i+i,h=s+s,u=o+o,f=i*l,c=i*h,m=i*u,d=s*h,p=s*u,y=o*u,g=a*l,_=a*h,M=a*u,b=r[0],v=r[1],x=r[2];return t[0]=(1-(d+y))*b,t[1]=(c+M)*b,t[2]=(m-_)*b,t[3]=0,t[4]=(c-M)*v,t[5]=(1-(f+y))*v,t[6]=(p+g)*v,t[7]=0,t[8]=(m+_)*x,t[9]=(p-g)*x,t[10]=(1-(f+d))*x,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function w(t,e,n,r,i){let s=e[0],o=e[1],a=e[2],l=e[3],h=s+s,u=o+o,f=a+a,c=s*h,m=s*u,d=s*f,p=o*u,y=o*f,g=a*f,_=l*h,M=l*u,b=l*f,v=r[0],x=r[1],S=r[2],A=i[0],R=i[1],w=i[2],T=(1-(p+g))*v,C=(m+b)*v,E=(d-M)*v,I=(m-b)*x,O=(1-(c+g))*x,N=(y+_)*x,P=(d+M)*S,L=(y-_)*S,B=(1-(c+p))*S;return t[0]=T,t[1]=C,t[2]=E,t[3]=0,t[4]=I,t[5]=O,t[6]=N,t[7]=0,t[8]=P,t[9]=L,t[10]=B,t[11]=0,t[12]=n[0]+A-(T*A+I*R+P*w),t[13]=n[1]+R-(C*A+O*R+L*w),t[14]=n[2]+w-(E*A+N*R+B*w),t[15]=1,t}function T(t,e,n,r,i,s,o){let a=1/(n-e),l=1/(i-r),h=1/(s-o);return t[0]=2*s*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*s*l,t[6]=0,t[7]=0,t[8]=(n+e)*a,t[9]=(i+r)*l,t[10]=(o+s)*h,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*s*2*h,t[15]=0,t}function C(t,e,n,r){let s=e[0],o=e[1],l=e[2],h=s-n[0],u=o-n[1],f=l-n[2],c=(0,i.FD)();if(Math.abs(h)<c&&Math.abs(u)<c&&Math.abs(f)<c)return void a(t);let m=1/Math.sqrt(h*h+u*u+f*f);h*=m,u*=m,f*=m;let d=r[0],p=r[1],y=r[2],g=p*f-y*u,_=y*h-d*f,M=d*u-p*h;m=Math.sqrt(g*g+_*_+M*M),m?(m=1/m,g*=m,_*=m,M*=m):(g=0,_=0,M=0);let b=u*M-f*_,v=f*g-h*M,x=h*_-u*g;m=Math.sqrt(b*b+v*v+x*x),m?(m=1/m,b*=m,v*=m,x*=m):(b=0,v=0,x=0),t[0]=g,t[1]=b,t[2]=h,t[3]=0,t[4]=_,t[5]=v,t[6]=u,t[7]=0,t[8]=M,t[9]=x,t[10]=f,t[11]=0,t[12]=-(g*s+_*o+M*l),t[13]=-(b*s+v*o+x*l),t[14]=-(h*s+u*o+f*l),t[15]=1}function E(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function I(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function O(t){let e=(0,i.FD)(),n=t[0],r=t[1],s=t[2],o=t[4],a=t[5],l=t[6],h=t[8],u=t[9],f=t[10];return Math.abs(1-(n*n+o*o+h*h))<=e&&Math.abs(1-(r*r+a*a+u*u))<=e&&Math.abs(1-(s*s+l*l+f*f))<=e}function N(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const P=f,L=E;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t},adjoint:function(t,e){let n=e[0],r=e[1],i=e[2],s=e[3],o=e[4],a=e[5],l=e[6],h=e[7],u=e[8],f=e[9],c=e[10],m=e[11],d=e[12],p=e[13],y=e[14],g=e[15];return t[0]=a*(c*g-m*y)-f*(l*g-h*y)+p*(l*m-h*c),t[1]=-(r*(c*g-m*y)-f*(i*g-s*y)+p*(i*m-s*c)),t[2]=r*(l*g-h*y)-a*(i*g-s*y)+p*(i*h-s*l),t[3]=-(r*(l*m-h*c)-a*(i*m-s*c)+f*(i*h-s*l)),t[4]=-(o*(c*g-m*y)-u*(l*g-h*y)+d*(l*m-h*c)),t[5]=n*(c*g-m*y)-u*(i*g-s*y)+d*(i*m-s*c),t[6]=-(n*(l*g-h*y)-o*(i*g-s*y)+d*(i*h-s*l)),t[7]=n*(l*m-h*c)-o*(i*m-s*c)+u*(i*h-s*l),t[8]=o*(f*g-m*p)-u*(a*g-h*p)+d*(a*m-h*f),t[9]=-(n*(f*g-m*p)-u*(r*g-s*p)+d*(r*m-s*f)),t[10]=n*(a*g-h*p)-o*(r*g-s*p)+d*(r*h-s*a),t[11]=-(n*(a*m-h*f)-o*(r*m-s*f)+u*(r*h-s*a)),t[12]=-(o*(f*y-c*p)-u*(a*y-l*p)+d*(a*c-l*f)),t[13]=n*(f*y-c*p)-u*(r*y-i*p)+d*(r*c-i*f),t[14]=-(n*(a*y-l*p)-o*(r*y-i*p)+d*(r*l-i*a)),t[15]=n*(a*c-l*f)-o*(r*c-i*f)+u*(r*l-i*a),t},copy:s,determinant:function(t){let e=t[0],n=t[1],r=t[2],i=t[3],s=t[4],o=t[5],a=t[6],l=t[7],h=t[8],u=t[9],f=t[10],c=t[11],m=t[12],d=t[13],p=t[14],y=t[15];return(e*o-n*s)*(f*y-c*p)-(e*a-r*s)*(u*y-c*d)+(e*l-i*s)*(u*p-f*d)+(n*a-r*o)*(h*y-c*m)-(n*l-i*o)*(h*p-f*m)+(r*l-i*a)*(h*d-u*m)},equals:function(t,e){if(t===e)return!0;let n=t[0],r=t[1],s=t[2],o=t[3],a=t[4],l=t[5],h=t[6],u=t[7],f=t[8],c=t[9],m=t[10],d=t[11],p=t[12],y=t[13],g=t[14],_=t[15],M=e[0],b=e[1],v=e[2],x=e[3],S=e[4],A=e[5],R=e[6],w=e[7],T=e[8],C=e[9],E=e[10],I=e[11],O=e[12],N=e[13],P=e[14],L=e[15],B=(0,i.FD)();return Math.abs(n-M)<=B*Math.max(1,Math.abs(n),Math.abs(M))&&Math.abs(r-b)<=B*Math.max(1,Math.abs(r),Math.abs(b))&&Math.abs(s-v)<=B*Math.max(1,Math.abs(s),Math.abs(v))&&Math.abs(o-x)<=B*Math.max(1,Math.abs(o),Math.abs(x))&&Math.abs(a-S)<=B*Math.max(1,Math.abs(a),Math.abs(S))&&Math.abs(l-A)<=B*Math.max(1,Math.abs(l),Math.abs(A))&&Math.abs(h-R)<=B*Math.max(1,Math.abs(h),Math.abs(R))&&Math.abs(u-w)<=B*Math.max(1,Math.abs(u),Math.abs(w))&&Math.abs(f-T)<=B*Math.max(1,Math.abs(f),Math.abs(T))&&Math.abs(c-C)<=B*Math.max(1,Math.abs(c),Math.abs(C))&&Math.abs(m-E)<=B*Math.max(1,Math.abs(m),Math.abs(E))&&Math.abs(d-I)<=B*Math.max(1,Math.abs(d),Math.abs(I))&&Math.abs(p-O)<=B*Math.max(1,Math.abs(p),Math.abs(O))&&Math.abs(y-N)<=B*Math.max(1,Math.abs(y),Math.abs(N))&&Math.abs(g-P)<=B*Math.max(1,Math.abs(g),Math.abs(P))&&Math.abs(_-L)<=B*Math.max(1,Math.abs(_),Math.abs(L))},exactEquals:I,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,e){let n=e[0],r=e[1],i=e[2],s=e[3],o=n+n,a=r+r,l=i+i,h=n*o,u=r*o,f=r*a,c=i*o,m=i*a,d=i*l,p=s*o,y=s*a,g=s*l;return t[0]=1-f-d,t[1]=u+g,t[2]=c-y,t[3]=0,t[4]=u-g,t[5]=1-h-d,t[6]=m+p,t[7]=0,t[8]=c+y,t[9]=m-p,t[10]=1-h-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){let n=v,r=-e[0],i=-e[1],s=-e[2],o=e[3],a=e[4],l=e[5],h=e[6],u=e[7],f=r*r+i*i+s*s+o*o;return f>0?(n[0]=2*(a*o+u*r+l*s-h*i)/f,n[1]=2*(l*o+u*i+h*r-a*s)/f,n[2]=2*(h*o+u*s+a*i-l*r)/f):(n[0]=2*(a*o+u*r+l*s-h*i),n[1]=2*(l*o+u*i+h*r-a*s),n[2]=2*(h*o+u*s+a*i-l*r)),b(t,e,n),t},fromRotation:g,fromRotationTranslation:b,fromRotationTranslationScale:R,fromRotationTranslationScaleOrigin:w,fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:y,fromXRotation:_,fromYRotation:function(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:M,frustum:T,getRotation:A,getScale:S,getTranslation:x,hasIdentityRotation:N,identity:a,invert:u,invertOrIdentity:h,isOrthoNormal:O,lookAt:C,mul:P,multiply:f,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t},ortho:function(t,e,n,r,i,s,o){let a=1/(e-n),l=1/(r-i),h=1/(s-o);return t[0]=-2*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*h,t[11]=0,t[12]=(e+n)*a,t[13]=(i+r)*l,t[14]=(o+s)*h,t[15]=1,t},perspective:function(t,e,n,r,i){let s,o=1/Math.tan(e/2);return t[0]=o/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(s=1/(r-i),t[10]=(i+r)*s,t[14]=2*i*r*s):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,e,n,r){let i=Math.tan(e.upDegrees*Math.PI/180),s=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),a=Math.tan(e.rightDegrees*Math.PI/180),l=2/(o+a),h=2/(i+s);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=h,t[6]=0,t[7]=0,t[8]=-(o-a)*l*.5,t[9]=(i-s)*h*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},rotate:d,rotateX:p,rotateY:function(t,e,n){let r=Math.sin(n),i=Math.cos(n),s=e[0],o=e[1],a=e[2],l=e[3],h=e[8],u=e[9],f=e[10],c=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=s*i-h*r,t[1]=o*i-u*r,t[2]=a*i-f*r,t[3]=l*i-c*r,t[8]=s*r+h*i,t[9]=o*r+u*i,t[10]=a*r+f*i,t[11]=l*r+c*i,t},rotateZ:function(t,e,n){let r=Math.sin(n),i=Math.cos(n),s=e[0],o=e[1],a=e[2],l=e[3],h=e[4],u=e[5],f=e[6],c=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=s*i+h*r,t[1]=o*i+u*r,t[2]=a*i+f*r,t[3]=l*i+c*r,t[4]=h*i-s*r,t[5]=u*i-o*r,t[6]=f*i-a*r,t[7]=c*i-l*r,t},scale:m,set:o,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:L,subtract:E,targetTo:function(t,e,n,r){let i=e[0],s=e[1],o=e[2],a=r[0],l=r[1],h=r[2],u=i-n[0],f=s-n[1],c=o-n[2],m=u*u+f*f+c*c;m>0&&(m=1/Math.sqrt(m),u*=m,f*=m,c*=m);let d=l*c-h*f,p=h*u-a*c,y=a*f-l*u;return m=d*d+p*p+y*y,m>0&&(m=1/Math.sqrt(m),d*=m,p*=m,y*=m),t[0]=d,t[1]=p,t[2]=y,t[3]=0,t[4]=f*y-c*p,t[5]=c*d-u*y,t[6]=u*p-f*d,t[7]=0,t[8]=u,t[9]=f,t[10]=c,t[11]=0,t[12]=i,t[13]=s,t[14]=o,t[15]=1,t},translate:c,transpose:l},Symbol.toStringTag,{value:"Module"}))},35522(t,e,n){n.d(e,{$A:()=>R,Bw:()=>s,C:()=>o,Cc:()=>w,DI:()=>x,Io:()=>_,Ln:()=>g,Om:()=>A,Qr:()=>f,Re:()=>h,S8:()=>S,T9:()=>p,WQ:()=>l,Z0:()=>T,_S:()=>m,aI:()=>L,ei:()=>C,fw:()=>I,gL:()=>E,hG:()=>M,hZ:()=>a,hs:()=>y,jk:()=>d,lw:()=>u,m3:()=>b,oW:()=>B,t2:()=>P,tn:()=>c,ze:()=>v});var r=n(51850),i=n(34304);function s(t){let e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function a(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function l(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function h(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function u(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function f(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function c(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function m(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function d(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function p(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function y(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function g(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function _(t,e){let n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(n*n+r*r+i*i)}function M(t,e){let n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function b(t){let e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function v(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function x(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function S(t,e=t){let n=e[0],r=e[1],i=e[2],s=n*n+r*r+i*i;return s>0&&(s=1/Math.sqrt(s),t[0]=e[0]*s,t[1]=e[1]*s,t[2]=e[2]*s),t}function A(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function R(t,e,n){let r=e[0],i=e[1],s=e[2],o=n[0],a=n[1],l=n[2];return t[0]=i*l-s*a,t[1]=s*o-r*l,t[2]=r*a-i*o,t}function w(t,e,n,r){let i=e[0],s=e[1],o=e[2];return t[0]=i+r*(n[0]-i),t[1]=s+r*(n[1]-s),t[2]=o+r*(n[2]-o),t}function T(t,e,n){let r=e[0],i=e[1],s=e[2];return t[0]=n[0]*r+n[4]*i+n[8]*s+n[12],t[1]=n[1]*r+n[5]*i+n[9]*s+n[13],t[2]=n[2]*r+n[6]*i+n[10]*s+n[14],t}function C(t,e,n){let r=e[0],i=e[1],s=e[2];return t[0]=r*n[0]+i*n[3]+s*n[6],t[1]=r*n[1]+i*n[4]+s*n[7],t[2]=r*n[2]+i*n[5]+s*n[8],t}function E(t,e,n){return I(t,e,n[0],n[1],n[2],n[3])}function I(t,e,n,r,i,s){let o=e[0],a=e[1],l=e[2],h=r*l-i*a,u=i*o-n*l,f=n*a-r*o,c=r*f-i*u,m=i*h-n*f,d=n*u-r*h,p=2*s;return t[0]=o+h*p+2*c,t[1]=a+u*p+2*m,t[2]=l+f*p+2*d,t}const O=(0,r.vt)(),N=(0,r.vt)();function P(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function L(t,e){if(t===e)return!0;let n=t[0],r=t[1],s=t[2],o=e[0],a=e[1],l=e[2],h=(0,i.FD)();return Math.abs(n-o)<=h*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-a)<=h*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(s-l)<=h*Math.max(1,Math.abs(s),Math.abs(l))}function B(t,e,n){let r=n[0]-e[0],i=n[1]-e[1],s=n[2]-e[2],o=r*r+i*i+s*s;return o>0?(o=1/Math.sqrt(o),t[0]=r*o,t[1]=i*o,t[2]=s*o,t):(t[0]=0,t[1]=0,t[2]=0,t)}const D=h,G=u,U=f,F=_,k=M,j=s,Z=b;Object.freeze(Object.defineProperty({__proto__:null,abs:c,add:l,angle:function(t,e){S(O,t),S(N,e);let n=A(O,N);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(t,e,n,r,i,s){let o=1-s,a=o*o,l=s*s,h=a*o,u=3*s*a,f=3*l*o,c=l*s;return t[0]=e[0]*h+n[0]*u+r[0]*f+i[0]*c,t[1]=e[1]*h+n[1]*u+r[1]*f+i[1]*c,t[2]=e[2]*h+n[2]*u+r[2]*f+i[2]*c,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:o,cross:R,crossAndNormalize:function(t,e,n){let r=e[0],i=e[1],s=e[2],o=n[0],a=n[1],l=n[2],h=i*l-s*a,u=s*o-r*l,f=r*a-i*o,c=Math.sqrt(h*h+u*u+f*f);return t[0]=h/c,t[1]=u/c,t[2]=f/c,t},direction:B,dist:F,distance:_,div:U,divide:f,dot:A,equals:L,exactEquals:P,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,r,i,s){let o=s*s,a=o*(2*s-3)+1,l=o*(s-2)+s,h=o*(s-1),u=o*(3-2*s);return t[0]=e[0]*a+n[0]*l+r[0]*h+i[0]*u,t[1]=e[1]*a+n[1]*l+r[1]*h+i[1]*u,t[2]=e[2]*a+n[2]*l+r[2]*h+i[2]*u,t},inverse:x,len:j,length:s,lerp:w,max:p,min:d,mul:G,multiply:u,negate:v,normalize:S,random:function(t,e=1){let n=i.Ov,r=2*n()*Math.PI,s=2*n()-1,o=Math.sqrt(1-s*s)*e;return t[0]=Math.cos(r)*o,t[1]=Math.sin(r)*o,t[2]=s*e,t},rotateX:function(t,e,n,r){let i=[],s=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],s[0]=i[0],s[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),s[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=s[0]+n[0],t[1]=s[1]+n[1],t[2]=s[2]+n[2],t},rotateY:function(t,e,n,r){let i=[],s=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],s[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),s[1]=i[1],s[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=s[0]+n[0],t[1]=s[1]+n[1],t[2]=s[2]+n[2],t},rotateZ:function(t,e,n,r){let i=[],s=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],s[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),s[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),s[2]=i[2],t[0]=s[0]+n[0],t[1]=s[1]+n[1],t[2]=s[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:y,scaleAndAdd:g,scaleTo:function(t,e){return y(t,t,e/j(t))},set:a,sign:m,sqrDist:k,sqrLen:Z,squaredDistance:M,squaredLength:b,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:D,subtract:h,transformMat3:C,transformMat4:T,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:E,transformQuatValues:I},Symbol.toStringTag,{value:"Module"})),n.d(e,["Il",0,j,"jb",0,D,"lo",0,k,"uE",0,Z])},83027(t,e,n){const r=n(29953).ho;n.d(e,["h",0,r])},35982(t,e,n){n.d(e,{B:()=>u});var r=n(4576),i=n(71511),s=n(36563),o=n(53966),a=n(97768),l=n(17676),h=n(83027);class u{constructor(t,e,n,r,i={}){this._mainMethod=e,this._transferLists=n,this._listeners=[],this._onClientConnectedHandle=null,this._destroyed=!1,this._promise=(0,h.h)(t,{...i,schedule:r}).then(t=>{null!=this._thread||this._destroyed?t.close():(this._thread=t,this._promise=null,this._onClientConnectedHandle=this._thread.onClientConnected(t=>{i.hasInitialize&&t.invoke("initialize",{}).catch(()=>{});for(let e of this._listeners)this._connectListenerToClient(e,t);this._onClientConnected(t)}))}),this._promise.catch(e=>o.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${t} worker: ${e}`))}on(t,e){let n=new f(t,e);return this._listeners.push(n),this._connectListener(n),(0,s.hA)(()=>{(0,r.TF)(this._listeners,n),n.destroy()})}[Symbol.dispose](){this.destroy()}destroy(){this._onClientConnectedHandle=(0,a.xt)(this._onClientConnectedHandle),this._thread&&=(this._thread.close(),null),this._promise=null;for(let t of this._listeners)t.destroy();this._listeners.length=0,this._transferLists={},this._destroyed=!0}invoke(t,e,n){return this.invokeMethod(this._mainMethod,t,e,n)}invokeMethod(t,e,n,r){if(this._thread){let i=this._transferLists[t],s=i?i(e):[];return this._thread.invoke(t,e,{transferList:s,signal:n,jobPriority:r})}return this._promise?this._promise.then(()=>((0,l.Te)(n),this.invokeMethod(t,e,n))):Promise.reject((0,l.NK)())}broadcast(t,e){return this._thread?Promise.all(this._thread.broadcast(e,t)).then(c):this._promise?this._promise.then(()=>this.broadcast(t,e)):Promise.reject((0,l.NK)())}get promise(){return this._promise}_onClientConnected(t){}_connectListener(t){this._thread&&t.add(this._thread.on(t.eventName,t.callback))}_connectListenerToClient(t,e){t.add(e.on(t.eventName,t.callback))}}class f{constructor(t,e){this.eventName=t,this.callback=e,this._handles=new i.A}add(t){this._handles.add(t)}destroy(){this._handles.destroy()}}function c(){}},48526(t,e,n){n.d(e,{A:()=>y});var r,i=n(32198),s=n(4576),o=n(4718),a=n(91429),l=n(5443),h=n(91075),u=n(86738),f=n(16930),c=n(90634),m=n(47610),d=n(56993),p=n(43937);let y=r=class extends h.A{constructor(t){super(function(t){if(!t)return;let{points:e,hasM:n,hasZ:r,spatialReference:i}=t;switch(e??=[],e?.at(0)?.length){case 4:r??=!0,n??=!0;break;case 3:r??=!0!==n,n??=!r;break;default:r??=!1,n??=!1}return i??=f.A.WGS84,{...t,hasM:n,hasZ:r,points:e,spatialReference:i}}(t)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){let t=(0,c.ge)(this);return t?new l.A({...t,spatialReference:this.spatialReference}):null}writePoints(t,e){e.points=(0,o.o8)(this.points)}clone(){let{points:t,spatialReference:e,hasM:n,hasZ:i}=this;return new r({points:(0,o.o8)(t),spatialReference:e.clone(),hasM:n,hasZ:i})}equals(t){if(this===t)return!0;if(null==t)return!1;let e=this.spatialReference,n=t.spatialReference;return!(null!=e!=(null!=n)||null!=e&&null!=n&&!e.equals(n))&&(0,s.aI)(this.points,t.points,m.v6)}addPoint(t){return(0,d.h)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}getPoint(t){if(!this._validateInputs(t))return null;let e=this.points[t],n={x:e[0],y:e[1],spatialReference:this.spatialReference},r=2;return this.hasZ&&(n.z=e[2],r=3),this.hasM&&(n.m=e[r]),new u.A(n)}removePoint(t){if(!this._validateInputs(t))return null;let e=new u.A(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),e}setPoint(t,e){return this._validateInputs(t)?((0,d.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.points[t]=e,this.notifyChange("points"),this):this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,i.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"cache",null),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"extent",null),(0,i.Cg)([(0,a.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],y.prototype,"points",void 0),(0,i.Cg)([(0,p.K)("points")],y.prototype,"writePoints",null),y=r=(0,i.Cg)([(0,a.$K)("esri.geometry.Multipoint")],y),y.prototype.toJSON.isDefaultToJSON=!0},82799(t,e,n){n.d(e,{A:()=>d});var r,i=n(32198),s=n(4718),o=n(91429),a=n(5443),l=n(91075),h=n(86738),u=n(16930),f=n(90634),c=n(56993),m=n(43937);let d=r=class extends l.A{constructor(t){super(function(t){if(!t)return;let{paths:e,hasM:n,hasZ:r,spatialReference:i}=t;switch(e??=[],function(t){return"number"==typeof t[0]?.[0]}(e)&&(e=[e]),e[0]?.[0]?.length){case 4:r??=!0,n??=!0;break;case 3:r??=!0!==n,n??=!r;break;default:r??=!1,n??=!1}return i??=u.A.WGS84,{...t,hasM:n,hasZ:r,paths:e,spatialReference:i}}(t)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(t,e){e.curvePaths=(0,s.o8)(t)}get extent(){let t=(0,f.Z3)(this),{spatialReference:e}=this;return t?new a.A({...t,spatialReference:e}):null}writePaths(t,e){e.paths=(0,s.o8)(this.paths)}addPath(t){if(!t)return;let e=this.paths,n=e.length;if(function(t){return!Array.isArray(t[0])}(t)){let r=[];for(let e=0,n=t.length;e<n;e++)r[e]=t[e].toArray();e[n]=r}else e[n]=t.slice();return this.notifyChange("paths"),this}clone(){let t=new r;return t.spatialReference=this.spatialReference,t.paths=(0,s.o8)(this.paths),t.curvePaths=(0,s.o8)(this.curvePaths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,e){if(!this._validateInputs(t,e))return null;let n=this.paths[t][e],r=this.hasZ,i=this.hasM;return r&&!i?new h.A(n[0],n[1],n[2],void 0,this.spatialReference):i&&!r?new h.A(n[0],n[1],void 0,n[2],this.spatialReference):r&&i?new h.A(n[0],n[1],n[2],n[3],this.spatialReference):new h.A(n[0],n[1],this.spatialReference)}insertPoint(t,e,n){return this._validateInputs(t,e,!0)?((0,c.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[t].splice(e,0,n),this.notifyChange("paths"),this):this}removePath(t){if(!this._validateInputs(t,null))return null;let e=this.paths.splice(t,1)[0],n=this.spatialReference,r=e.map(t=>new h.A(t,n));return this.notifyChange("paths"),r}removePoint(t,e){if(!this._validateInputs(t,e))return null;let n=new h.A(this.paths[t].splice(e,1)[0],this.spatialReference);return this.notifyChange("paths"),n}setPoint(t,e,n){return this._validateInputs(t,e)?((0,c.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[t][e]=n,this.notifyChange("paths"),this):this}_validateInputs(t,e,n=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=e){let r=this.paths[t];if(n&&(e<0||e>r.length)||!n&&(e<0||e>=r.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,i.Cg)([(0,o.MZ)({readOnly:!0})],d.prototype,"cache",null),(0,i.Cg)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],d.prototype,"curvePaths",void 0),(0,i.Cg)([(0,m.K)("curvePaths")],d.prototype,"writeCurvePaths",null),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],d.prototype,"extent",null),(0,i.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],d.prototype,"paths",void 0),(0,i.Cg)([(0,m.K)("paths")],d.prototype,"writePaths",null),d=r=(0,i.Cg)([(0,o.$K)("esri.geometry.Polyline")],d),d.prototype.toJSON.isDefaultToJSON=!0},65806(t,e,n){n.d(e,{g:()=>o});var r=n(51850),i=n(99917),s=n(9762);function o(t,e,n,r){if((0,i.canProjectWithoutEngine)(t.spatialReference,n))return a[0]=t.x,a[1]=t.y,a[2]=t.z??0,(0,s.projectBuffer)(a,t.spatialReference,0,e,n,0);let o=(0,i.tryProject)(t,n,r);return!!o&&(e[0]=o.x,e[1]=o.y,e[2]=o.z??0,!0)}const a=(0,r.vt)()},27993(t,e,n){n.d(e,{F:()=>a});var r=n(99917),i=n(16930),s=n(9762),o=n(65806);function a(t,e,n,i){return!(null==e||null==i||t.length<2)&&((0,r.canProjectWithoutEngine)(e,i)?(0,s.projectBuffer)(t,e,0,n,i,0,1):(l.x=t[0],l.y=t[1],l.z=t[2],l.spatialReference=e,(0,o.g)(l,n,i)))}const l={x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:i.A.WGS84,type:"point"}},4197(t,e,n){n.d(e,{Vj:()=>u,cj:()=>h,jh:()=>s,l5:()=>a,yH:()=>l});var r=n(34275),i=n(9093);function s(t){return t<=1024?Array(t).fill(0):new Float64Array(t)}function o(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=1024?Array.from(t):new Float64Array(t)}function a(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function l(t,e){if(0===e.length)return o(t);if(0===t.length)return o(e);let n=s(t.length+e.length);for(let e=0;e<t.length;++e)n[e]=t[e];for(let r=0;r<e.length;++r)n[t.length+r]=e[r];return n}function h(t){return[...t]}function u(t){let e=(0,i.vt)();for(let n=0;n<16;++n)e[n]=t[n];return e}},95696(t,e,n){n.d(e,{A:()=>h});var r,i=n(32198),s=n(69540),o=n(25482),a=n(91429),l=n(93223);let h=class extends((0,s.OU)(o.o)){static{r=this}constructor(t){super(t),this.type="georeferenced",this.origin=null}static{this.absolute=new r}};(0,i.Cg)([(0,l.e)({georeferenced:"georeferenced"},{readOnly:!0})],h.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],h.prototype,"origin",void 0),h=r=(0,i.Cg)([(0,a.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],h)},18251(t,e,n){n.d(e,{A:()=>h});var r=n(32198),i=n(69540),s=n(25482),o=n(91429),a=n(51850),l=n(93223);let h=class extends((0,i.OU)(s.o)){constructor(t){super(t),this.type="local",this.origin=(0,a.vt)()}};(0,r.Cg)([(0,l.e)({local:"local"},{readOnly:!0})],h.prototype,"type",void 0),(0,r.Cg)([(0,o.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],h.prototype,"origin",void 0),h=(0,r.Cg)([(0,o.$K)("esri.geometry.support.MeshLocalVertexSpace")],h)},72727(t,e,n){function r(t,e,n){if(e<=0)return 0;let r=t-n;return r<0?0:Math.floor(r/e)+1}n.d(e,{k:()=>r}),n(53966)},60408(t,e,n){function r(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function i(t){return void 0!==t.points}function s(t){return void 0!==t.x&&void 0!==t.y}function o(t){return void 0!==t.paths||void 0!==t.curvePaths}function a(t){return void 0!==t.rings||void 0!==t.curveRings}function l(t){return"object"==typeof t&&"vertexAttributes"in t}function h(t){return t?s(t)?"esriGeometryPoint":o(t)?"esriGeometryPolyline":a(t)?"esriGeometryPolygon":r(t)?"esriGeometryEnvelope":i(t)?"esriGeometryMultipoint":null:null}function u(t){return null!=t&&("hasZ"in t&&t.hasZ||"z"in t&&null!=t.z)}function f(t){return null!=t&&("hasM"in t&&t.hasM||"m"in t&&null!=t.m)}n.d(e,{$B:()=>h,Bi:()=>a,Pv:()=>u,Rg:()=>o,U9:()=>i,W0:()=>f,ZC:()=>r,fT:()=>s,uW:()=>l})},80754(t,e,n){n.d(e,{kS:()=>h,kd:()=>l});var r=n(82799),i=n(16930),s=n(60408),o=n(52006);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:i.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:i.A.WGS84})}};function l(t,e){return Math.ceil((t-e)/(2*e))}function h(t,e){if((0,o.Ed)(t))for(let n of function(t){return(0,s.Bi)(t)?t.curveRings:t.curvePaths}(t))for(let t of n){if((0,o.aO)(t)){let[n,r]=t.c;n[0]+=e,r[0]+=e;continue}if((0,o.FG)(t)){let[n,r]=t.a;n[0]+=e,r[0]+=e;continue}if((0,o.n1)(t)){let[n,r,i]=t.b;n[0]+=e,r[0]+=e,i[0]+=e;continue}t[0]+=e}for(let n of function(t){return(0,s.Bi)(t)?t.rings:t.paths}(t))for(let t of n)t[0]+=e;return t}n.d(e,["j7",0,a])},89056(t,e,n){n.d(e,{b3:()=>f,jZ:()=>u});var r=n(12195),i=n(19419),s=n(537),o=n(95108),a=n(60408),l=n(80754),h=n(21325);function u(t){return c(t,!0)}function f(t){return c(t,!1)}function c(t,e){if(null==t)return null;let n=t.spatialReference,i=(0,h.Vp)(n),o=(0,r.W)(t)?t.toJSON():t;if(!i)return o;let u=(0,h.K8)(n)?102100:4326,f=l.j7[u].maxX,c=l.j7[u].minX;if((0,a.fT)(o))return d(o,f,c);if((0,a.U9)(o))return o.points=o.points.map(t=>d(t,f,c)),o;if((0,a.ZC)(o))return m(o,i);if((0,a.Bi)(o)||(0,a.Rg)(o)){let t=(0,s.Rg)(b,o),n={xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3]},r=(0,l.kd)(n.xmin,c),i=2*f*r,a=0===i?o:(0,l.kS)(o,i);return n.xmin+=i,n.xmax+=i,n.xmax>f?_(a,f,e):n.xmin<c?_(a,c,e):a}return o}function m(t,e){if(!e)return t;let n=function(t,e){let n=[],{ymin:r,ymax:i,xmin:s,xmax:o}=t,a=t.xmax-t.xmin,[l,h]=e.valid,{x:u,frameId:f}=p(t.xmin,e),{x:c,frameId:m}=p(t.xmax,e),d=u===c&&a>0;if(a>2*h){let t={xmin:s<o?u:c,ymin:r,xmax:h,ymax:i},e={xmin:l,ymin:r,xmax:s<o?c:u,ymax:i},a={xmin:0,ymin:r,xmax:h,ymax:i},d={xmin:l,ymin:r,xmax:0,ymax:i},p=[],g=[];y(t,a)&&p.push(f),y(t,d)&&g.push(f),y(e,a)&&p.push(m),y(e,d)&&g.push(m);for(let t=f+1;t<m;t++)p.push(t),g.push(t);n.push(new M(t,[f]),new M(e,[m]),new M(a,p),new M(d,g))}else u>c||d?n.push(new M({xmin:u,ymin:r,xmax:h,ymax:i},[f]),new M({xmin:l,ymin:r,xmax:c,ymax:i},[m])):n.push(new M({xmin:u,ymin:r,xmax:c,ymax:i},[f]));return n}(t,e).map(t=>t.extent);return n.length<2?n[0]||t:n.length>2?(t.xmin=e.valid[0],t.xmax=e.valid[1],t):{rings:n.map(t=>[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]])}}function d(t,e,n){if(Array.isArray(t)){let r=t[0];if(r>e){let n=(0,l.kd)(r,e);t[0]=r+-2*e*n}else if(r<n){let e=(0,l.kd)(r,n);t[0]=r+-2*n*e}}else{let r=t.x;if(r>e){let n=(0,l.kd)(r,e);t.x+=-2*e*n}else if(r<n){let e=(0,l.kd)(r,n);t.x+=-2*n*e}}return t}function p(t,e){let n,[r,i]=e.valid,s=2*i,o=0;return t>i?(n=Math.ceil(Math.abs(t-i)/s),t-=n*s,o=n):t<r&&(n=Math.ceil(Math.abs(t-r)/s),t+=n*s,o=-n),{x:t,frameId:o}}function y(t,e){let{xmin:n,ymin:r,xmax:i,ymax:s}=e;return g(t,n,r)&&g(t,n,s)&&g(t,i,s)&&g(t,i,r)}function g(t,e,n){return e>=t.xmin&&e<=t.xmax&&n>=t.ymin&&n<=t.ymax}function _(t,e,n=!0){let r=!(0,a.Rg)(t);if(r&&(0,o.m3)(t),n)return(new v).cut(t,e);let i=r?t.rings:t.paths,s=r?4:2,l=i.length,h=-2*e;for(let t=0;t<l;t++){let e=i[t];if(e&&e.length>=s){let t=[];for(let[n,...r]of e)t.push([n+h,...r]);i.push(t)}}return r?t.rings=i:t.paths=i,t}class M{constructor(t,e){this.extent=t,this.frameIds=e}}const b=(0,i.vt)();class v{constructor(){this._linesIn=[],this._linesOut=[]}cut(t,e){let n;if(this._xCut=e,t.rings)this._closed=!0,n=t.rings,this._minPts=4;else{if(!t.paths)return null;this._closed=!1,n=t.paths,this._minPts=2}for(let t of n){if(!t||t.length<this._minPts)continue;let e=!0;for(let n of t)e?(this.moveTo(n),e=!1):this.lineTo(n);this._closed&&this.close()}this._pushLineIn(),this._pushLineOut(),n=[];for(let t of this._linesIn)t&&t.length>=this._minPts&&n.push(t);let r=-2*this._xCut;for(let t of this._linesOut)if(t&&t.length>=this._minPts){for(let e of t)e[0]+=r;n.push(t)}return this._closed?t.rings=n:t.paths=n,t}moveTo(t){this._pushLineIn(),this._pushLineOut(),this._prevSide=this._side(t[0]),this._moveTo(t,this._prevSide),this._prevPt=t,this._firstPt=t}lineTo(t){let e=this._side(t[0]);if(e*this._prevSide===-1){let n=this._intersect(this._prevPt,t);this._lineTo(n,0),this._prevSide=0,this._lineTo(t,e)}else this._lineTo(t,e);this._prevSide=e,this._prevPt=t}close(){let t=this._firstPt,e=this._prevPt;(t[0]!==e[0]||t[1]!==e[1])&&this.lineTo(t),this._checkClosingPt(this._lineIn),this._checkClosingPt(this._lineOut)}_moveTo(t,e){this._closed?(this._lineIn.push(x(t,e<=0?t[0]:this._xCut)),this._lineOut.push(x(t,e>=0?t[0]:this._xCut))):(e<=0&&this._lineIn.push(t.slice()),e>=0&&this._lineOut.push(t.slice()))}_lineTo(t,e){this._closed?(S(this._lineIn,t,e<=0?t[0]:this._xCut),S(this._lineOut,t,e>=0?t[0]:this._xCut)):e<0?(0===this._prevSide&&this._pushLineOut(),this._lineIn.push(t.slice())):e>0?(0===this._prevSide&&this._pushLineIn(),this._lineOut.push(t.slice())):this._prevSide<0?(this._lineIn.push(t.slice()),this._lineOut.push(t.slice())):this._prevSide>0&&(this._lineOut.push(t.slice()),this._lineIn.push(t.slice()))}_checkClosingPt(t){let e=t.length;e>3&&t[0][0]===this._xCut&&t[e-2][0]===this._xCut&&t[1][0]===this._xCut&&(t[0]=t[e-2].slice(),t.pop())}_side(t){return t<this._xCut?-1:+(t>this._xCut)}_intersect(t,e){let n=(this._xCut-t[0])/(e[0]-t[0]),r=[this._xCut,t[1]+n*(e[1]-t[1])],i=Math.min(t.length,e.length);for(let s=2;s<i;s++)r.push(t[s]+n*(e[s]-t[s]));return r}_pushLineIn(){this._lineIn&&this._lineIn.length>=this._minPts&&this._linesIn.push(this._lineIn),this._lineIn=[]}_pushLineOut(){this._lineOut&&this._lineOut.length>=this._minPts&&this._linesOut.push(this._lineOut),this._lineOut=[]}}function x(t,e){let n=t.slice();return n[0]=e,n}function S(t,e,n){let r=t.length;r>1&&t[r-1][0]===n&&t[r-2][0]===n?t[r-1]=x(e,n):t.push(x(e,n))}},97770(t,e,n){n.d(e,{Ey:()=>I,F8:()=>E,J2:()=>R,Yq:()=>T,_m:()=>w,iS:()=>C,wj:()=>O});var r=n(66552),i=n(73444),s=n(98623),o=n(34747);const a={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},l={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},h={timeZone:"UTC"},u={year:"numeric",month:"numeric",day:"numeric"},f={year:"numeric",month:"long",day:"numeric"},c={year:"numeric",month:"short",day:"numeric"},m={year:"numeric",month:"long",weekday:"long",day:"numeric"},d={hour:"numeric",minute:"numeric"},p={...d,second:"numeric"},y={hourCycle:"h23"},g={...d,...y},_={...p,...y},M={"short-date":u,"short-date-short-time":{...u,...d},"short-date-short-time-24":{...u,...g},"short-date-long-time":{...u,...p},"short-date-long-time-24":{...u,..._},"short-date-le":u,"short-date-le-short-time":{...u,...d},"short-date-le-short-time-24":{...u,...g},"short-date-le-long-time":{...u,...p},"short-date-le-long-time-24":{...u,..._},"long-month-day-year":f,"long-month-day-year-short-time":{...f,...d},"long-month-day-year-short-time-24":{...f,...g},"long-month-day-year-long-time":{...f,...p},"long-month-day-year-long-time-24":{...f,..._},"day-short-month-year":c,"day-short-month-year-short-time":{...c,...d},"day-short-month-year-short-time-24":{...c,...g},"day-short-month-year-long-time":{...c,...p},"day-short-month-year-long-time-24":{...c,..._},"long-date":m,"long-date-short-time":{...m,...d},"long-date-short-time-24":{...m,...g},"long-date-long-time":{...m,...p},"long-date-long-time-24":{...m,..._},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":d,"long-time":p},b=(0,r.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),v={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"};function x(){let t=(0,i.lR)();return(t&&v[t])??(0,i.QC)()}"mart"!==new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)).find(({type:t})=>"month"===t)?.value.toLowerCase()&&(v.bs="sr-Latn-CS");let S=new WeakMap;const A=M["short-date-short-time"];function R(t){return M[t]}function w(t){let{dateStyle:e,timeStyle:n,hour12:r,year:i,month:s}=t,o={};return e?o.dateStyle=e:i&&(o.year=i,o.month=s||void 0),n&&!o.year&&(o.timeStyle=n,o.hour12="auto"===r?void 0:"always"===r),o}function T(t,e=A){return function(t){let e=S.get(t);if(!e){let n=x(),r=O(t.timeZone??"system"),i={...t,timeZone:r};e=new Intl.DateTimeFormat(n,i),S.set(t,e)}return e}(e).format(t)}function C(t,e=A){return T(new Date(t),{...e,...h,...l})}function E(t,e=A){return T(new Date(`1970-01-01T${t}Z`),{...e,...h,...a})}function I(t,e=A){let n=o.c9.fromISO(t,{setZone:!0});if(!n.isValid)return t;if(e.timeZone)return T(n.toJSDate(),e);let r=0===n.offset?"UTC":e.timeZone,i={...e,timeZone:r};return n.toLocaleString(i,{locale:x()})}function O(t){switch(t){case"system":return s.N;case s.L:return"UTC";default:return t}}(0,i.Ml)(()=>{S=new WeakMap}),n.d(e,["_v",0,b])},73444(t,e,n){n.d(e,{JK:()=>l,Ml:()=>y,QC:()=>f,lR:()=>u,oQ:()=>d});var r=n(36563);let i;n(44208);const s=globalThis.esriConfig?.locale,o=globalThis.document?.documentElement;function a(){let t=o?.getAttribute("lang"),e=globalThis.navigator?.language;return s??t??e??"en"}function l(){return void 0===i&&(i=a()),i}const h=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function u(t=l()){return c(t)?.language}function f(t=l()){let e=c(t);return e?.language&&e?.extlang?t.replace(`${e.language}-`,""):t}function c(t=l()){return h.exec(t)?.groups}const m=[];function d(t){return m.push(t),(0,r.hA)(()=>{m.splice(m.indexOf(t),1)})}new Map;const p=[];function y(t){return p.push(t),(0,r.hA)(()=>p.splice(p.indexOf(t),1))}function g(){let t=a();i!==t&&([...p].forEach(e=>e(t)),i=t,[...m].forEach(e=>e(t)))}globalThis.addEventListener?.("languagechange",g),o&&new MutationObserver(()=>{g()}).observe(o,{attributeFilter:["lang"]})},98623(t,e,n){const r=Intl.DateTimeFormat().resolvedOptions().timeZone;n.d(e,["L",0,"unknown","N",0,r])},89606(t,e,n){n.d(e,{GN:()=>f,MU:()=>u,yf:()=>m});var r=n(35522),i=n(51850),s=n(10614),o=n(63907),a=n(74038);class l{constructor(t,e){this.data=t,this.indices=e}}class h{constructor(t,e,n,r,i){this.indices=t,this.packedNormals=e,this.appendedVertexToOriginal=n,this.outputVertexCount=r,this.appendedVertexCount=i}}function u(t,e,n,h,u){return!h||n.some(({name:t})=>"normal"===t||"normalCompressed"===t)?function(t,e,n,o){let a=new l(t.slice().buffer,e);if(!o)return a;let h=n[0].stride,u=a.data.byteLength/h;for(let t of n)if("normalCompressed"===t.name){let{offset:e}=t,n=new Int16Array(a.data),l=(0,i.vt)();for(let t=0;t<u;++t)(0,s.Tz)(l,n,t,h/2,e/2),(0,r.ei)(l,l,o),(0,s.aT)(n,t,l[0],l[1],l[2],h/2,e/2)}else if("normal"===t.name){let{offset:e}=t,n=new Float32Array(a.data),s=(0,i.vt)();for(let t=0;t<u;++t){let i=(t*h+e)/4;s[0]=n[i],s[1]=n[i+1],s[2]=n[i+2],(0,r.ei)(s,s,o),n[i]=s[0],n[i+1]=s[1],n[i+2]=s[2]}}return a}(t,e,n,u):function(t,e,n,r){let i=n[0].stride,s=i/4,l=new Float32Array(t.buffer,t.byteOffset,t.byteLength/4),h=t.byteLength/i,u=1<n.length?n[1].offset/4:s,m=i+4;return n.forEach((t,e)=>{t.stride=m,e>=1&&(t.offset+=4)}),n.splice(1,0,new a._("normalCompressed",2,o.pe.SHORT,12,m,!0)),c(l,h,u,i,m,f(e,l,s,r))}(t,e,n,u)}function f(t,e,n,r){let i=t.length/3,s=e.length/n,{faceNormals:o,faceAreas:a,faceEdges:l,edgeFaces:h,vertexFaces:u,vertexFaceCountAndOffset:f}=function(t,e,n,r,i,s){let o=new Float32Array(3*i),a=new Float32Array(i),l=new Uint32Array(3*i),h=new Int32Array(2*(3*i)),u=3*i,f=new Uint32Array(u),c=new Uint32Array(2*n);for(let t=0;t<i;++t){let e=3*t;for(let t=0;t<3;++t)++c[2*r[e+t]]}{let t=0;for(let e=0;e<n;++e){let n=2*e;c[n+1]=t,t+=c[n]}for(let t=0;t<i;++t){let e=3*t;for(let n=0;n<3;++n)f[c[2*r[e+n]+1]++]=t}for(let t=0;t<n;++t)c[2*t+1]-=c[2*t]}let m=0,d=new Uint32Array(2*u*2),p=new Uint32Array(2*n);for(let t=0;t<n;++t){let e=2*t,n=4*c[e+1];p[e]=n,p[e+1]=n}function y(t,e,n){let r=Math.min(t,e),i=Math.max(t,e),s=t<e?0:1,o=2*r,a=p[o],l=p[o+1],u=-1;for(let t=a;t<l;t+=2)if(d[t]===i){u=d[t+1];break}return-1===u&&(u=m++,d[l]=i,d[l+1]=u,p[o+1]=l+2,h[2*u+(1-s)]=-1),h[2*u+s]=n,u}for(let n=0;n<r.length;n+=3){let i=r[n],h=i*e,u=t[h],f=t[h+1],c=t[h+2],m=r[n+1],d=m*e,p=t[d],g=t[d+1],_=t[d+2],M=r[n+2],b=M*e,v=u-p,x=f-g,S=c-_,A=u-t[b],R=f-t[b+1],w=c-t[b+2],T=x*w-S*R,C=S*A-v*w,E=v*R-x*A,I=Math.sqrt(T*T+C*C+E*E)||1,O=n/3;a[O]=.5*I;let N=1/I;if(s){let t=s[0]*T+s[3]*C+s[6]*E,e=s[1]*T+s[4]*C+s[7]*E,n=s[2]*T+s[5]*C+s[8]*E;o[3*O]=t*N,o[3*O+1]=e*N,o[3*O+2]=n*N}else o[3*O]=T*N,o[3*O+1]=C*N,o[3*O+2]=E*N;let P=y(i,m,O),L=y(m,M,O),B=y(M,i,O);l[3*O]=P,l[3*O+1]=L,l[3*O+2]=B}return{faceNormals:o,faceAreas:a,faceEdges:l,vertexFaces:f,vertexFaceCountAndOffset:c,edgeFaces:h}}(e,n,s,t,i,r);return function(t,e,n,r,i,s){let o=new Uint8Array(e),a=new Uint32Array(e),l=new Uint32Array(3*e),h=0,u=new Uint32Array(e),f=0;for(let e=0;e<t.length;e+=3){let t=e/3;if(1===o[t])continue;o[t]=1;let c=n[3*t],m=n[3*t+1],d=n[3*t+2];for(f=0,u[f++]=t,l[0]=i[3*t],l[1]=i[3*t+1],l[2]=i[3*t+2],h=3,a[t]=t+1;h>0;){let e=l[--h];for(let r=0;r<2;++r){let y=s[2*e+r];if(-1===y||a[y]===t+1)continue;a[y]=t+1;let g=n[3*y],_=n[3*y+1],M=n[3*y+2];if(Math.abs(1-(c*g+m*_+d*M))<p){u[f++]=y,o[y]=1;for(let t=0;t<3;++t){let n=i[3*y+t];n!==e&&(l[h++]=n)}}}}if(f>1){let t=0,e=0,i=0,s=0;for(let o=0;o<f;++o){let a=u[o],l=r[a];t+=l,e+=n[3*a]*l,i+=n[3*a+1]*l,s+=n[3*a+2]*l}let o=Math.sqrt(e*e+i*i+s*s)||1;e/=o,i/=o,s/=o;for(let o=0;o<f;++o){let a=u[o];n[3*a]=e,n[3*a+1]=i,n[3*a+2]=s,r[a]=t}}}}(t,i,o,a,l,h),d(i,s,t,o,a,u,f)}function c(t,e,n,r,i,s){let o=r/4,a=i/4,h=s.outputVertexCount,u=new Float32Array(h*a),f=new Uint32Array(u.buffer),c=new Uint32Array(t.buffer,t.byteOffset,t.length);return function(t,e,n,r,i,s,o){for(let a=0;a<s;++a){let s=a*i,l=a*e;for(let e=0;e<n;++e)t[l+e]=r[s+e];t[l+n]=o[a];for(let e=n;e<i;++e)t[l+e+1]=r[s+e]}}(f,a,n,c,o,e,s.packedNormals),m(f,a,n,c,o,e,h,s.appendedVertexToOriginal,s.packedNormals,!0),new l(u.buffer,s.indices)}function m(t,e,n,r,i,s,o,a,l,h){for(let u=s;u<o;++u){let o=a[u-s]*i,f=u*e;for(let e=0;e<i;++e)t[f+e+(h&&e>=n?1:0)]=r[o+e];t[f+n]=l[u]}}function d(t,e,n,r,i,s,o){let a=3*t,l=new(a<256?Uint8Array:a<65536?Uint16Array:Uint32Array)(n),u=e,f=new(e<256?Uint8Array:e<65536?Uint16Array:Uint32Array)(a-e),c=new ArrayBuffer(4*a),m=new Int16Array(c),d=new Uint32Array(c),p=0,g=0,_=new Uint32Array(t),M=0,b=1-y;for(let t=0;t<e;++t){p=o[2*t+1],g=p+o[2*t];let n=t;for(;p<g;){{let t=s[--g],e=3*t,o=r[e],a=r[e+1],l=r[e+2];M=0,_[M++]=t;let h=p;for(;h<g;){let t=s[h],e=3*t;if(o*r[e]+a*r[e+1]+l*r[e+2]>b){_[M++]=t;let e=--g;if(h<e){s[h]=s[e];continue}}++h}let u=0,f=0,c=0;if(1===M)u=o,f=a,c=l;else{for(let t=0;t<M;++t){let e=_[t],n=i[e],s=3*e;u+=r[s]*n,f+=r[s+1]*n,c+=r[s+2]*n}let t=Math.sqrt(u*u+f*f+c*c)||1;u/=t,f/=t,c/=t}{let t=1/(Math.abs(u)+Math.abs(f)+Math.abs(c)),e=u*t,r=f*t,i=e,s=r;c<=0&&(i=(e>=0?1:-1)*(1-Math.abs(r)),s=(r>=0?1:-1)*(1-Math.abs(e)));let o=2*n,a=Math.round(32767*i),l=Math.round(32767*s);m[o]=a<-32767?-32767:a>32767?32767:a,m[o+1]=l<-32767?-32767:l>32767?32767:l}}if(n!==t)for(let e=0;e<M;++e){let r=3*_[e];l[r]===t&&(l[r]=n),l[r+1]===t&&(l[r+1]=n),l[r+2]===t&&(l[r+2]=n)}if(p>=g)break;n=u++,f[n-e]=t}}return new h(l,d,f,u,u-e)}const p=.04,y=.8},94715(t,e,n){n.r(e),n.d(e,{destroyContext:()=>R,dracoDecompressPointCloudData:()=>M,filterObbsForModifications:()=>b,filterObbsForModificationsSync:()=>I,initialize:()=>P,interpretObbModificationResults:()=>E,process:()=>_,project:()=>S,setLegacySchema:()=>x,setModifications:()=>v,setModificationsSync:()=>T,test:()=>B,transformNormals:()=>A});var r=n(34727),i=n(77690),s=n(29242),o=n(58083),a=n(9093),l=n(16930),h=n(4197),u=n(95696),f=n(18251),c=n(73354),m=n(2741);function d(){p=null}let p;var y=n(89606),g=n(98697);async function _(t){w=await L();let e=[t.geometryBuffer];return{result:C(w,t,e),transferList:e}}async function M(t){w=await L();let e=[t.geometryBuffer],{geometryBuffer:n}=t,r=n.byteLength,i=w._malloc(r),s=new Uint8Array(w.HEAPU8.buffer,i,r);s.set(new Uint8Array(n));let o=w.dracoDecompressPointCloudData(i,s.byteLength);if(w._free(i),o.error.length>0)throw Error(`i3s.wasm: ${o.error}`);let a=o.featureIds?.length>0?o.featureIds.slice():null,l=o.positions.slice();return a&&e.push(a.buffer),e.push(l.buffer),{result:{positions:l,featureIds:a},transferList:e}}async function b(t){await L(),I(t);let e={buffer:t.buffer};return{result:e,transferList:[e.buffer]}}async function v(t){await L(),T(t)}async function x(t){w=await L(),w.setLegacySchema(t.context,t.jsonSchema)}async function S(t){let e,{localMatrix:r,origin:i,positions:s,vertexSpace:o}=t,a=l.A.fromJSON(t.inSpatialReference),c=l.A.fromJSON(t.outSpatialReference),m=r?(0,h.Vj)(r):void 0,d=(0,h.cj)(i),[{projectBuffer:p},{initializeProjection:y}]=await Promise.all([Promise.resolve().then(()=>n(9762)),Promise.resolve().then(()=>n(99917))]);await y(a,c);let g=[0,0,0];if(!p(d,a,0,g,c,0))throw Error("Failed to project");if("georeferenced"===o.type&&null==o.origin){if(e=new Float64Array(s.length),!p(s,a,0,e,c,0,e.length/3))throw Error("Failed to project")}else{let t="georeferenced"===o.type?u.A.fromJSON(o):f.A.fromJSON(o),{projectMeshVertexPositions:r}=await Promise.all([n.e(2258),n.e(2346)]).then(()=>n(74594)),i=r({vertexAttributes:{position:s},transform:m?{localMatrix:m}:void 0,vertexSpace:t,spatialReference:a},c);if(!i)throw Error("Failed to project");e=i}let _=e.length,[M,b,v]=g;for(let t=0;t<_;t+=3)e[t]-=M,e[t+1]-=b,e[t+2]-=v;return{result:{projected:e,original:s,projectedOrigin:g},transferList:[e.buffer,s.buffer]}}async function A({normalMatrix:t,normals:e}){let n=new Float32Array(e.length);return(0,c.b)(n,e,t),(0,r.or)(t)&&(0,c.n)(n,n),{result:{transformed:n,original:e},transferList:[n.buffer,e.buffer]}}function R(t){O(t)}let w;function T(t){if(!w)return;let e=t.modifications,n=w._malloc(8*e.length),r=new Float64Array(w.HEAPU8.buffer,n,e.length);for(let t=0;t<e.length;++t)r[t]=e[t];w.setModifications(t.context,n,e.length,t.isGeodetic),w._free(n)}function C(t,e,n){let{context:r,globalTrafo:l,geometryElevationOffset:h,mbs:u,obbData:f,layouts:c,needNormals:m,computeNormals:d,elevationOffset:p,planetRadiusInGlobalMode:_,geometryBuffer:M,geometryDescriptor:b,geometryData:v,indexToVertexProjector:x,vertexToRenderProjector:S,normalReferenceFrame:A}=e,R=t._malloc(M.byteLength),w=t._malloc(33*Float64Array.BYTES_PER_ELEMENT),T=new Uint8Array(t.HEAPU8.buffer,R,M.byteLength);T.set(new Uint8Array(M));let C=new Float64Array(t.HEAPU8.buffer,w,33);N(C,[NaN,NaN,NaN],0);let E=3;N(C,l,E),E+=16,N(C,u.center,E),E+=3,C[E++]=u.radius,f&&N(C,f,E++);let I={isDraco:!1,isLegacy:!1,color:c.some(t=>t.some(t=>"color"===t.name)),normal:m&&c.some(t=>t.some(t=>"normalCompressed"===t.name)),uv0:c.some(t=>t.some(t=>"uv0"===t.name)),uvRegion:c.some(t=>t.some(t=>"uvRegion"===t.name)),featureIndex:b.featureIndex},O=t.process(r,!!f,R,T.byteLength,b,I,w,p,x,S,A);if(t._free(w),t._free(R),O.error.length>0)throw Error(`i3s.wasm: ${O.error}`);if(O.discarded)return null;let P=O.componentOffsets.length>0?O.componentOffsets.slice():null,L=O.featureIds.length>0?O.featureIds.slice():null,B=O.anchorIds.length>0?Array.from(O.anchorIds):null,D=O.anchors.length>0?Array.from(O.anchors):null,G=1===O.indicesType?new Uint16Array(O.indices.buffer,O.indices.byteOffset,O.indices.byteLength/2).slice():new Uint32Array(O.indices.buffer,O.indices.byteOffset,O.indices.byteLength/4).slice(),U=c[0].slice(),F=(0,i.z0)((0,s.vt)(),l),k=(0,y.MU)(O.interleavedVertedData,G,U,d&&!I.normal,F),j=O.positions.slice(),Z=function(t,e,n,r,i){let s=n?(0,a.o8)(n):(0,a.vt)();(0,o.lw)(s,e,s);let l=s[0],h=s[1],u=s[2],f=s[4],c=s[5],m=s[6],d=s[8],p=s[9],y=s[10],g=s[12],_=s[13],M=s[14],b=1/0,v=-1/0;for(let e=0;e<t.length;e+=3){let n=t[e],s=t[e+1],o=t[e+2],a=n*u+s*m+o*y+M,x=0;if(r>0){let t=n*l+s*f+o*d+g,e=n*h+s*c+o*p+_;x=Math.sqrt(t*t+e*e+a*a)-r}else x=a;x-=i,b=Math.min(b,x),v=Math.max(v,x)}return{minElevation:b,maxElevation:v}}(j,l,v?.geometries[0]?.transformation,_,h),{buffer:H,byteOffset:q,byteLength:z}=O.positionIndices,V=1===O.positionIndicesType?new Uint16Array(H,q,z/2).slice():new Uint32Array(H,q,z/4).slice(),Y=new g._b(U,k.data,k.indices,O.hasColors,O.hasModifications,{data:j,indices:V});return L&&n.push(L.buffer),P&&n.push(P.buffer),n.push(k.data),n.push(k.indices.buffer),n.push(j.buffer),n.push(V.buffer),new g.sQ(P,L,B,D,Y,l,O.obb,Z.minElevation,Z.maxElevation)}function E(t){return 0===t?0:1===t?1:2===t?2:3}function I(t){if(!w)return;let{context:e,buffer:n}=t,r=w._malloc(n.byteLength),i=n.byteLength/Float64Array.BYTES_PER_ELEMENT,s=new Float64Array(w.HEAPU8.buffer,r,i),o=new Float64Array(n);s.set(o),w.filterOBBs(e,r,i),o.set(s),w._free(r)}function O(t){0===w?.destroy(t)&&(w=null,d())}function N(t,e,n){for(let r=0;r<e.length;++r)t[r+n]=e[r]}async function P(){w||await L()}async function L(){return w??=await(p??=(async()=>{try{return await(await n.e(2980).then(()=>n(82980))).default({locateFile:t=>(0,m.s)(`esri/libs/i3s/${t}`)})}catch(t){throw d(),t}})(),p),w}const B={transform:(t,e)=>w&&C(w,t,e),destroy:O}},98697(t,e,n){n.d(e,{Cm:()=>m,H1:()=>M,Ir:()=>y,_b:()=>f,sQ:()=>c});var r=n(53966),i=n(15142),s=n(51850),o=n(35982),a=n(39829),l=n(99917),h=n(27993),u=n(89056);class f{constructor(t,e,n,r,i,s){this.layout=t,this.interleavedVertexData=e,this.indices=n,this.hasColors=r,this.hasModifications=i,this.positionData=s}}class c{constructor(t,e,n,r,i,s,o,a,l){this.componentOffsets=t,this.featureIds=e,this.anchorIds=n,this.anchors=r,this.transformedGeometry=i,this.globalTrafo=s,this.obb=o,this.geometryMinElevation=a,this.geometryMaxElevation=l}}class m extends o.B{constructor(t){super("SceneLayerWorker","process",{process:t=>[t.geometryBuffer],project:t=>[t.positions.buffer],transformNormals:t=>[t.normals.buffer]},t,{hasInitialize:!0}),this._schemasByContext=new Map,this._modificationsByContext=new Map}_onClientConnected(t){for(let[e,n]of this._schemasByContext)t.invoke("setLegacySchema",{context:e,jsonSchema:n}).catch(()=>{});for(let e of this._modificationsByContext.values())t.invoke("setModifications",e).catch(()=>{})}setModifications(t,e,n){let r={context:t,modifications:e,isGeodetic:n};return this._modificationsByContext.set(t,r),this.broadcast(r,"setModifications")}setLegacySchema(t,e){let n=JSON.stringify(e);return this._schemasByContext.set(t,n),this.broadcast({context:t,jsonSchema:n},"setLegacySchema")}destroyContext(t){return this._schemasByContext.delete(t),this._modificationsByContext.delete(t),this.broadcast(t,"destroyContext")}async destroyContextAndSelf(t){await this.destroyContext(t),this.destroy()}project(t,e){return this.invokeMethod("project",t,e)}transformNormals(t,e){return this.invokeMethod("transformNormals",t,e)}}const d=new i.A({deallocator:null}),p=(0,s.vt)();function y(t,e,n,i=!1){d.clear();let s=1/0,o=1/0,h=-1/0,f=-1/0,c=!1;for(let t of e){let e="clip"===t.type?2:+("mask"===t.type),m=t.geometry,p=m.spatialReference??n;if(p!==n&&!(0,l.canProjectWithoutEngine)(p,n)){r.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:m});continue}let y=m.rings;if(p!==n){let t=g(m.rings,p,n);if(null==t){r.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:m});continue}y=t}let M=y;if(i){let t=(0,u.jZ)(new a.A({rings:y,spatialReference:n}));null!=t&&(y=t.rings)}let b=1===M.length&&y.length>1?[...y.map(t=>[t]),M]:[y];if(b.some(t=>0===t.length||t.some(t=>t.length<3||t.some(t=>!_(t)))))r.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-invalid-polygon","Ignoring invalid modification polygon (empty ring, fewer than 3 vertices, or non-finite coordinates).",{polygon:m});else{c||=1===e;for(let t of b){d.push(e),d.push(t.length);for(let e of t){d.push(e.length);for(let t of e){let e=t[2]??0;d.push(t[0]),d.push(t[1]),d.push(e),s=Math.min(s,t[0]),o=Math.min(o,t[1]),h=Math.max(h,t[0]),f=Math.max(f,t[1])}}}}}if(null!=t)if(c){let e=1e-4;d.push(2),d.push(2),d.push(4),d.push(s-e),d.push(o-e),d.push(0),d.push(h+e),d.push(o-e),d.push(0),d.push(h+e),d.push(f+e),d.push(0),d.push(s-e),d.push(f+e),d.push(0),d.push(4),d.push(t[0]),d.push(t[1]),d.push(0),d.push(t[2]),d.push(t[1]),d.push(0),d.push(t[2]),d.push(t[3]),d.push(0),d.push(t[0]),d.push(t[3]),d.push(0)}else d.push(1),d.push(1),d.push(4),d.push(t[0]),d.push(t[1]),d.push(0),d.push(t[2]),d.push(t[1]),d.push(0),d.push(t[2]),d.push(t[3]),d.push(0),d.push(t[0]),d.push(t[3]),d.push(0);d.push(3);let m=new Float64Array(d.length);for(let t=0;t<d.length;++t)m[t]=d.at(t);return m}function g(t,e,n){let r=[];for(let i of t){let t=[];for(let r of i){if(!(0,h.F)(r,e,p,n)||!_(p))return null;t.push([p[0],p[1],p[2]])}r.push(t)}return r}function _(t){return Number.isFinite(t[0])&&Number.isFinite(t[1])&&(null==t[2]||Number.isFinite(t[2]))}function M(t,e){let n=0;for(let r of e){let e=r.geometry,i=e.rings.length,s=e.rings.some(t=>t.length<3);if(0!==i&&!s){n+=1,n+=1;for(let r=0;r<e.rings.length;++r){let i=e.rings[r];n+=1;for(let s=0;s<i.length;++s){let i=[t[n+0],t[n+1],t[n+2]];n+=3,e.setPoint(r,s,i)}}}}}},10614(t,e,n){n.d(e,{Tz:()=>o,aT:()=>s});var r=n(34727),i=n(35522);function s(t,e,n,r,i,s=2,o=0){let l=1/(Math.abs(n)+Math.abs(r)+Math.abs(i)),h=n*l,u=r*l,f=i<=0?(h>=0?1:-1)*(1-Math.abs(u)):h,c=i<=0?(u>=0?1:-1)*(1-Math.abs(h)):u,m=e*s+o;t[m]=a(f),t[m+1]=a(c)}function o(t,e,n,r=2,s=0){let o=n*r+s,a=l(e[o]),h=l(e[o+1]),u=1-Math.abs(a)-Math.abs(h);return t[2]=u,u<0?(t[0]=(a>=0?1:-1)*(1-Math.abs(h)),t[1]=(h>=0?1:-1)*(1-Math.abs(a))):(t[0]=a,t[1]=h),(0,i.S8)(t,t)}function a(t){return(0,r.qE)(Math.round(32767*t),-32767,32767)}function l(t){return(0,r.qE)(t/32767,-1,1)}n(51850)},74038(t,e,n){n.d(e,{_:()=>r});class r{constructor(t,e,n,r,i,s=!1,o=0,a=!1){this.name=t,this.count=e,this.type=n,this.offset=r,this.stride=i,this.normalized=s,this.divisor=o,this.integer=a}}},63907(t,e,n){const r={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,HALF_FLOAT:5131},i={RGBA4:32854,R16F:33325,RG16F:33327,RGB32F:34837,RGBA16F:34842,R32F:33326,RG32F:33328,RGBA32F:34836,R11F_G11F_B10F:35898,RGB8:32849,RGBA8:32856,RGB5_A1:32855,R8:33321,RG8:33323,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,RGB16F:34843,RGB9_E5:35901,SRGB8:35905,SRGB8_ALPHA8:35907,RGB565:36194,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,RGB10_A2:32857,RGB10_A2UI:36975},s=Object.values(i),o={FLOAT:r.FLOAT,UNSIGNED_BYTE:r.UNSIGNED_BYTE,UNSIGNED_INT_24_8:34042,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,BYTE:r.BYTE,UNSIGNED_SHORT:r.UNSIGNED_SHORT,SHORT:r.SHORT,UNSIGNED_INT:r.UNSIGNED_INT,INT:r.INT,HALF_FLOAT:5131,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269};n.d(e,["CQ",0,{COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_SRGB8_ETC2:37493,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37494,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37495,COMPRESSED_RGBA8_ETC2_EAC:37496,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37497},"H0",0,i,"SB",0,{DEPTH_COMPONENT16:33189,DEPTH_COMPONENT24:33190,DEPTH_COMPONENT32F:36012},"WR",0,{POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},"XN",0,s,"iE",0,{DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},"ld",0,o,"pe",0,r,"vt",0,{Texture:0,TileTexture:1,BufferObject:2,VertexArrayObject:3,Shader:4,Program:5,FramebufferObject:6,Renderbuffer:7,TransformFeedback:8,Sync:9,UNCOUNTED:10,LinesOfCode:10,Uniform:11,COUNT:12}])}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2754],{34930(e,t,n){n.d(t,{$Q:()=>s,Sd:()=>f,T5:()=>o,b7:()=>x});var i=n(86211),a=n(5443),l=n(86738),r=n(14140);function o(e,t){if(e.spatialReference.equals(t))return e;let n=(0,i.GA)(e.spatialReference),a=(0,i.GA)(t);if(n===a)return e;let l=n/a;return{x:e.x*l,y:e.y*l}}async function s(e,t,i){if("extent"===i.type)return function(e,t,n){let{width:i,height:a}=e,l=new Uint8Array(i*a),o=t.width/i,s=t.height/a;if(n.width/o<.5||n.height/s<.5)return new r.A({pixelType:e.pixelType,width:i,height:a,mask:l,pixels:[...e.pixels]});let{xmin:f,xmax:x,ymin:h,ymax:u}=t,{xmin:m,xmax:p,ymin:c,ymax:g}=n,y=Math.max(f,m),d=Math.min(x,p),w=Math.max(h,c),M=Math.min(u,g),R=.5*o,P=.5*s;if(d-y<R||M-w<P||d<f+R||y>x-R||w>u-P||M<h+P)return new r.A({pixelType:e.pixelType,width:i,height:a,mask:l,pixels:[...e.pixels]});let k=Math.max(0,(y-f)/o),A=Math.min(i,Math.max(0,(d-f)/o)),b=Math.max(0,(u-M)/s),E=Math.min(a,Math.max(0,(u-w)/s)),T=Math.round(k),S=Math.round(A)-1,G=Math.round(b),N=Math.round(E)-1;if(T===S&&k%1>.5&&A%1<.5||G===N&&b%1>.5&&E%1<.5)return new r.A({pixelType:e.pixelType,width:i,height:a,mask:l,pixels:[...e.pixels]});if(0===T&&0===G&&S===i&&N===a)return e;let C=e.mask;for(let e=G;e<=N;e++)for(let t=T;t<=S;t++){let n=e*i+t;l[n]=C?C[n]:255}return new r.A({pixelType:e.pixelType,width:i,height:a,mask:l,pixels:[...e.pixels]})}(e,t,i);let{width:a,height:l}=e,o=new Uint8Array(a*l),{intersectsExecute:s}=await Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(3299),n.e(1132)]).then(()=>n(25275));if(!s(t,i))return new r.A({pixelType:e.pixelType,width:a,height:l,mask:o,maskIsAlpha:!1,pixels:[...e.pixels]});if("polyline"===i.type)return function(e,t,n){let{width:i,height:a}=e,l=new Uint8Array(i*a),o=t.width/i,s=t.height/a,{xmin:f,ymax:x}=t,{paths:h}=n,u=e.mask;for(let e=0;e<h.length;e++){let t=h[e];for(let e=0;e<t.length-1;e++){let[n,r]=t[e],[h,m]=t[e+1],p=Math.min(r,m),c=Math.max(0,Math.floor((x-Math.max(r,m))/s)),g=Math.min(a-1,Math.floor((x-p)/s));if(!(g<c))if(c===g){let e=Math.min(n,h),t=Math.max(n,h),a=Math.max(0,Math.floor((e-f)/o)),r=Math.min(i-1,Math.floor((t-f)/o));if(r<a)continue;let s=c*i;for(let e=s+a;e<=s+r;e++)l[e]=u?u[e]:255}else{let e=(n-f)/o,t=(h-n)/(m-r)/o,a=s*t;for(let n=c;n<=g;n++){let o=t*(x-n*s-r)+e,f=Math.max(0,Math.floor(a>0?o-a:o)),h=Math.min(i-1,Math.floor(a>0?o:o-a));if(h<f)continue;let m=n*i;for(let e=m+f;e<=m+h;e++)l[e]=u?u[e]:255}}}}return new r.A({pixelType:e.pixelType,width:i,height:a,mask:l,pixels:[...e.pixels]})}(e,t,i);let{containsExecute:f}=await Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(3299),n.e(6671)]).then(()=>n(30912));return f(i,t)?e:function(e,t,n){if(!e)return e;let{width:i,height:a}=e,l=function(e){let t,{geometry:n,size:i,srcExtent:a,srcMask:l}=e,[r,o]=i,s=a.width/r,f=a.height/o,{xmin:x,ymax:h}=a;if("extent"===n.type){let e=(n.xmin-x)/s,i=(n.xmax-x)/s,a=(h-n.ymax)/f,l=(h-n.ymin)/f;t=[[[e,a],[e,l],[i,l],[i,a],[e,a]]]}else t=n.rings.map(e=>e.map(([e,t])=>[(e-x)/s,(h-t)/f]));return function(e,t,n){let[i,a]=t,l=new OffscreenCanvas(i,a).getContext("2d");l.fillStyle="#f00",l.beginPath(),e.forEach(e=>{l.moveTo(e[0][0],e[0][1]);for(let t=0;t<e.length;t++)l.lineTo(e[t][0],e[t][1]);l.closePath()}),l.fill();let r=l.getImageData(0,0,i,a).data,o=i*a,s=new Uint8Array(o),f=!1;for(let e=0;e<o;e++)(!n||n[e])&&(r[4*e+3]>127?s[e]=255:f=!0);return f||n?s:void 0}(t,i,l)}({geometry:n,size:[i,a],srcExtent:t,srcMask:e.mask});return new r.A({pixelType:e.pixelType,width:i,height:a,mask:l,maskIsAlpha:!1,pixels:[...e.pixels]})}(e,t,i)}function f(e,t){let{extent:n}=x(e,t,new l.A({x:e.pixelSize.x,y:e.pixelSize.y,spatialReference:e.spatialReference})),{extent:i}=e.extent;if(n.xmax=Math.min(n.xmax,i.xmax),n.ymax=Math.min(n.ymax,i.ymax),n.xmin<n.xmax&&n.ymin<n.ymax){let{x:t,y:i}=e.pixelSize,a=Math.round(n.width/t),l=Math.round(n.height/i);e.extent=n,e.width=a,e.height=l}}function x(e,t,n,i=!0){let l,r,s,{spatialReference:f}=e,{x,y:h}=o(n,f),{xmin:u,xmax:m,ymax:p,ymin:c}="extent"===t.type?t:t.extent,{xmin:g,ymax:y}=e.extent;return i?(u=g+(u>g?x*Math.round((u-g)/x):0),p=y-(p<y?h*Math.round((y-p)/h):0),m=g+(m>g?x*Math.round((m-g)/x):0),c=y-(c<y?h*Math.round((y-c)/h):0),l=new a.A({xmin:u,ymax:p,xmax:m,ymin:c,spatialReference:f}),r=Math.round(l.width/x),s=Math.round(l.height/h)):(r=Math.floor((m-u)/x+.8),s=Math.floor((p-c)/h+.8),u=g+(u>g?x*Math.floor((u-g)/x+.1):0),p=y-(p<y?h*Math.floor((y-p)/h+.1):0),m=u+r*x,c=p-s*h,l=new a.A({xmin:u,ymax:p,xmax:m,ymin:c,spatialReference:f})),{extent:l,width:r,height:s}}},37373(e,t,n){n.d(t,{DO:()=>O,FT:()=>j,Hh:()=>P,OM:()=>L,Ps:()=>q,Wo:()=>k,_I:()=>b,_l:()=>C,l0:()=>W,t$:()=>B,uk:()=>v});var i=n(4576),a=n(49186),l=n(86211),r=n(5443),o=n(83290),s=n(86738),f=n(39829),x=n(99917),h=n(16930),u=n(21325);function m(){if(!R)throw new a.A("rasterprojectionhelper-project","projection operator is not loaded")}const p=(e,t,n,i=0)=>{if(1===n[0])return[0,0];let a=1,l=-1,r=1,o=-1;for(let t=0;t<e.length;t+=2)isNaN(e[t])||(a=a>e[t]?e[t]:a,l=l>e[t]?l:e[t],r=r>e[t+1]?e[t+1]:r,o=o>e[t+1]?o:e[t+1]);let{cols:s,rows:f}=t,x=(l-a)/s/n[0],h=(o-r)/f/n[1],u=2*i,m=0,p=!1,c=[0,0];for(let t=0;t<s-3;t++){for(let n=0;n<f-3;n++){let i=t*f*2+2*n,a=(e[i]+e[i+4]+e[i+4*f]+e[i+4*f+4])/4,l=(e[i+1]+e[i+5]+e[i+4*f+1]+e[i+4*f+5])/4,r=Math.abs((a-e[i+2*f+2])/x),o=Math.abs((l-e[i+2*f+3])/h);if(r+o>m&&(m=r+o,c=[r,o]),u&&m>u){p=!0;break}}if(p)break}return c},c={3395:20037508.342789244,3410:17334193.943686873,3857:20037508.342788905,3975:17367530.445161372,4087:20037508.342789244,4088:20015108.787169147,6933:17367530.445161372,32662:20037508.342789244,53001:20015086.79602057,53002:10007543.39801029,53003:20015086.79602057,53004:20015086.79602057,53016:14152803.599503474,53017:17333573.624304302,53034:20015086.79602057,53079:20015114.352186374,53080:20015114.352186374,54001:20037508.342789244,54002:10018754.171394624,54003:20037508.342789244,54004:20037508.342789244,54016:14168658.027268292,54017:17367530.44516137,54034:20037508.342789244,54079:20037508.342789244,54080:20037508.342789244,54100:20037508.342789244,54101:20037508.342789244},g=new Map,y=new Map;let d,w,M,R=!1;async function P(){return d||(d=Promise.withResolvers(),w=await n.e(3276).then(()=>n(83276)),M=await n.e(2158).then(()=>n(12158)),w.projectIsLoaded()||await w.projectLoad(),M.isLoaded()||await M.load(),R=!0,d.resolve()),d.promise}function k(e,t,n,i){let a=e.spatialReference;if(!a||!t||a.equals(t))return e;m();let o=n.center,s=new r.A({xmin:o.x-e.x/2,xmax:o.x+e.x/2,ymin:o.y-e.y/2,ymax:o.y+e.y/2,spatialReference:a}),f=w.projectExecute(s,t,{geographicTransformation:i}),x=j(t);return null==f||null!=x&&f.width>=x?function(e,t,n){let i=(0,l.GA)(t)/(0,l.GA)(n);return{x:e.x*i,y:e.y*i}}(e,a,t):{x:f.width,y:f.height}}function A(e,t=.01){return(0,l.GA)(e)?t/(0,l.GA)(e):0}function b(e,t,n,i=!0){let a=e.spatialReference;if(a.equals(t))return e;m();let l=w.projectExecute(e,t,{geographicTransformation:n});return!i||!l||E([e],[l],a,t),l}function E(e,t,n,i){let a=z(n,!0),l=z(i,!0),r=A(n,500),o=A(i,500);if(r&&null!=a&&null!=l)for(let n=0;n<e.length;n++){let i=t[n];if(!i)continue;let{x:s}=e[n],{x:f}=i;f>=l[1]-o&&Math.abs(s-a[0])<r?i.x-=l[1]-l[0]:f<=l[0]+o&&Math.abs(s-a[1])<r&&(i.x+=l[1]-l[0])}}function T(e){let{inSR:t,outSR:n,preferPE:i}=e;if(t.equals(n)){let{points:t}=N(e,null);return t}return t.isWebMercator&&n.isWGS84||t.isWGS84&&n.isWebMercator?function(e){let{cols:t,rows:n,xres:i,yres:a,usePixelCenter:l,inSR:r,outSR:o}=e,{xmin:f,ymax:h}=e;l&&(f+=i/2,h-=a/2);let u=[],m=[],p=Math.max(t,n);for(let e=0;e<p;e++){let l=f+i*Math.min(t,e),p=h-a*Math.min(n,e),c=(0,x.projectWithoutEngine)(new s.A({x:l,y:p,spatialReference:r}),r,o);e<=t&&u.push(c.x),e<=n&&m.push(c.y)}let c=[];for(let e=0;e<t;e++)for(let t=0;t<n;t++)c.push([u[e],m[t]]);return c}(e):i&&(t.isGeographic||null!=S(t))?function(e){let{inSR:t,outSR:n,datumTransformation:i}=e,{points:a,mask:l}=N(e,S(t));if(!t.isGeographic){let e=t.wkid?o.P.coordsys(t.wkid):o.P.fromString(t.isGeographic?o.a.PE_TYPE_GEOGCS:o.a.PE_TYPE_PROJCS,t.wkt2||t.wkt);o.c.projToGeog(e,a.length,a)}if(null!=i&&i.steps.length){let e,t=179.9955;if(n.isGeographic&&(e=a.map(([e])=>e>t?1:e<-179.9955?-1:0)),i.steps.forEach(e=>{let t=e.wkid?o.P.geogtran(e.wkid):o.P.fromString(o.a.PE_TYPE_GEOGTRAN,e.wkt);o.d.geogToGeog(t,a.length,a,null,e.isInverse?o.a.PE_TRANSFORM_2_TO_1:o.a.PE_TRANSFORM_1_TO_2)}),e)for(let n=0;n<a.length;n++){let i=e[n],l=a[n][0],r=l>t?1:l<-179.9955?-1:0;i&&r&&i!==r&&(a[n][0]=i>0?l+360:l-360)}}if(!n.isGeographic){let e=S(n,!0);!function(e,t){let[n,i]=t;for(let t=0;t<e.length;t++){let a=e[t][1];(a<n||a>i)&&(e[t]=[NaN,NaN])}}(a,null!=e&&e.isEnvelope?[e.bbox[1],e.bbox[3]]:[-90,90]);let t=n.wkid?o.P.coordsys(n.wkid):o.P.fromString(n.isGeographic?o.a.PE_TYPE_GEOGCS:o.a.PE_TYPE_PROJCS,n.wkt2||n.wkt);o.c.geogToProj(t,a.length,a)}let r=a;if(l&&a.length!==l.length){r=[];for(let e=0,t=0;e<l.length;e++)l[e]?r.push(a[t++]):r.push([NaN,NaN])}return r}(e):function(e){let{points:t}=N(e,null),{inSR:n,outSR:i,datumTransformation:a}=e,l=t.map(e=>new s.A(e[0],e[1],n)),r=w.projectExecuteMany(l,i,{geographicTransformation:a});return a&&E(l,r,n,i),r.map(e=>e?[e.x,e.y]:[NaN,NaN])}(e)}function S(e,t=!1){let n=e.wkid||e.wkt2||e.wkt;if(!n||e.isGeographic)return null;if(n=String(n),g.has(n)){let e=g.get(n);return t?e?.gcs:e?.pcs}let i=e.wkid?o.P.coordsys(e.wkid):o.P.fromString(e.isGeographic?o.a.PE_TYPE_GEOGCS:o.a.PE_TYPE_PROJCS,e.wkt2||e.wkt),a=G(i,A(e,1e-4)),l=G(i,0,!0);return g.set(n,{pcs:a,gcs:l}),t?l:a}function G(e,t=0,n=!1){let i=o.b.generate(e),a=n?e.horizonGcsGenerate():e.horizonPcsGenerate();if(!i||!a?.length)return null;let l=!1,r=a.find(e=>1===e.getInclusive()&&1===e.getKind());if(!r){if(r=a.find(e=>1===e.getInclusive()&&0===e.getKind()),!r)return null;l=!0}let s=n?0:+(2===i.getNorthPoleLocation())|(2===i.getSouthPoleLocation()?2:0),f=i.isPannableRectangle(),x=r.getCoord();if(l)return{isEnvelope:l,isPannable:f,vertices:x,coef:null,bbox:[x[0][0]-t,x[0][1]-t,x[1][0]+t,x[1][1]+t],poleLocation:s};let h=0,u=[],[m,p]=x[0],[c,g]=x[0];for(let e=0,t=x.length;e<t;e++){h++,h===t&&(h=0);let[n,i]=x[e],[a,l]=x[h];if(l===i)u.push([n,a,i,l,2]);else{let e=(a-n)/(l-i||1e-4),t=n-e*i;i<l?u.push([e,t,i,l,0]):u.push([e,t,l,i,1])}m=m<n?m:n,p=p<i?p:i,c=c>n?c:n,g=g>i?g:i}return{isEnvelope:!1,isPannable:f,vertices:x,coef:u,bbox:[m,p,c,g],poleLocation:s}}function N(e,t){let n=[],{cols:i,rows:a,xres:l,yres:r,usePixelCenter:o}=e,{xmin:s,ymax:f}=e;if(o&&(s+=l/2,f-=r/2),null==t){for(let e=0;e<i;e++)for(let t=0;t<a;t++)n.push([s+l*e,f-r*t]);return{points:n}}let x=new Uint8Array(i*a);if(t.isEnvelope){let{isPannable:e,bbox:[o,h,u,m]}=t;for(let t=0,p=0;t<i;t++){let i=s+l*t,c=e||i>=o&&i<=u;for(let e=0;e<a;e++,p++){let t=f-r*e;c&&t>=h&&t<=m&&(n.push([i,t]),x[p]=1)}}return{points:n,mask:x}}let h=t.coef,u=[];for(let e=0;e<a;e++){let t=f-r*e,n=[],i=[];for(let e=0;e<h.length;e++){let[a,l,r,o,s]=h[e];if(t===r&&r===o)n.push(a),n.push(l),i.push(2),i.push(2);else if(t>=r&&t<=o){let e=a*t+l;n.push(e),i.push(s)}}let a=n;if(n.length>2){let e=2===i[0]?0:i[0],t=n[0];a=[];for(let l=1;l<i.length;l++)(2!==i[l]||l===i.length-1)&&(i[l]!==e&&(a.push(0===e?Math.min(t,n[l-1]):Math.max(t,n[l-1])),e=i[l],t=n[l]),l===i.length-1&&a.push(0===i[l]?Math.min(t,n[l]):Math.max(t,n[l])));a.sort((e,t)=>e-t)}else n[0]>n[1]&&(a=[n[1],n[0]]);u.push(a)}for(let e=0,t=0;e<i;e++){let i=s+l*e;for(let e=0;e<a;e++,t++){let a=f-r*e,l=u[e];if(2===l.length)i>=l[0]&&i<=l[1]&&(n.push([i,a]),x[t]=1);else if(l.length>2){let e=!1;for(let t=0;t<l.length;t+=2)if(i>=l[t]&&i<=l[t+1]){e=!0;break}e&&(n.push([i,a]),x[t]=1)}}}return{points:n,mask:x}}function C(e,t,n=null,a=!0){let l=e.spatialReference;if(l.equals(t)||!t)return e;let o=L(e),s=j(l,!0),x=j(t);if(0===o||null==s||null==x){let i=_(e,t,n,a);if(i&&null==s&&null!=x&&Math.abs(i.width-x)<A(t)&&w.projectIsLoaded()){let n=S(l);if(null!=n&&0===n.poleLocation&&e.width<(n.bbox[2]-n.bbox[0])/2)return function(e,t){let n=j(t);if(null==n)return null;let{xmin:i,ymin:a,xmax:l,ymax:o}=e,s=e.spatialReference,x=new f.A({spatialReference:s,rings:[[[i,a],[l,a],[l,o],[i,o],[i,a]]]}),h=w.projectExecute(x,t);if(2!==h.rings.length||!h.rings[0].length||!h.rings[1].length)return null;let{rings:u}=h,m=A(s),p=new r.A({spatialReference:t});for(let e=0;e<2;e++){i=l=u[e][0][0],a=o=u[e][0][1];for(let t=0;t<u[e].length;t++)i=i>u[e][t][0]?u[e][t][0]:i,l=l<u[e][t][0]?u[e][t][0]:l,a=a>u[e][t][1]?u[e][t][1]:a,o=o<u[e][t][1]?u[e][t][1]:o;if(0===e)p.ymin=a,p.ymax=o,p.xmin=i,p.xmax=l;else if(p.ymin=Math.min(p.ymin,a),p.ymax=Math.max(p.ymax,o),Math.abs(l-n/2)<m)p.xmin=i,p.xmax+=n;else{if(!(Math.abs(i+n/2)<m))return null;p.xmax=l+n}}return p}(e,t)||i}return i}let h=e.clone().normalize();if(1===h.length&&e.xmax<s&&e.xmax-s/2>A(l)){let{xmin:t,xmax:n}=e;for(let i=0;i<=o;i++){let a=0===i?t:-s/2,f=i===o?n-s*i:s/2;h[i]=new r.A({xmin:a,xmax:f,ymin:e.ymin,ymax:e.ymax,spatialReference:l})}}let u=h.map(e=>_(e,t,n,a)).filter(i.Ru);return 0===u.length?null:function(e,t){let n=j(e[0].spatialReference);if(e.length<2||null==n||(t??=A(e[0].spatialReference),1===(e=e.filter(e=>e.width>t)).length))return e[0];let{xmin:i,xmax:a,ymin:l,ymax:o}=e[0];for(let t=1;t<e.length;t++){let i=e[t];a=i.xmax+n*t,l=Math.min(l,i.ymin),o=Math.max(o,i.ymax)}return new r.A({xmin:i,xmax:a,ymin:l,ymax:o,spatialReference:e[0].spatialReference})}(u)}function v(e,t,n){if("extent"===e.type){let{xmin:t,ymin:n,xmax:i,ymax:a,spatialReference:l}=e;e=new f.A({rings:[[[t,a],[i,a],[i,n],[t,n],[t,a]]],spatialReference:l})}return e.spatialReference.equals(t)?e:(m(),w.projectExecute(e,t,{geographicTransformation:n}))}function _(e,t,n,i=!0,a=!0){let l=e.spatialReference;if(l.equals(t)||!t)return e;m();let r=w.projectExecute(e,t,{geographicTransformation:n});if(a&&t.isWebMercator&&r&&(r.ymax=Math.min(20037508.342787,r.ymax),r.ymin=Math.max(-20037508.342787,r.ymin),r.ymin>=r.ymax))return null;if(!i||!r)return r;let o=z(l,!0),f=z(t,!0);if(null==o||null==f)return r;let x=A(l,.001),h=A(l,500),u=A(t,.001);if(Math.abs(r.xmin-f[0])<u&&Math.abs(r.xmax-f[1])<u){let i=Math.abs(e.xmin-o[0]),a=Math.abs(o[1]-e.xmax);if(i<x&&a>h){r.xmin=f[0];let i=[];i.push(new s.A(e.xmax,e.ymin,l)),i.push(new s.A(e.xmax,(e.ymin+e.ymax)/2,l)),i.push(new s.A(e.xmax,e.ymax,l));let a=i.map(e=>b(e,t,n)).filter(e=>!isNaN(e?.x)).map(e=>e.x);r.xmax=Math.max.apply(null,a)}if(a<x&&i>h){r.xmax=f[1];let i=[];i.push(new s.A(e.xmin,e.ymin,l)),i.push(new s.A(e.xmin,(e.ymin+e.ymax)/2,l)),i.push(new s.A(e.xmin,e.ymax,l));let a=i.map(e=>b(e,t,n)).filter(e=>!isNaN(e?.x)).map(e=>e.x);r.xmin=Math.min.apply(null,a)}}else{let e=A(t,.001);Math.abs(r.xmin-f[0])<e&&(r.xmin=f[0]),Math.abs(r.xmax-f[1])<e&&(r.xmax=f[1])}return r}function j(e,t=!1){if(!e)return null;let n=t?20037508.342787:20037508.342788905;return e.isWebMercator?2*n:e.wkid&&e.isGeographic?360:2*c[e.wkid]||null}function z(e,t=!1){if(e.isGeographic)return[-180,180];let n=j(e,t);return n?[-n/2,n/2]:null}function I(e,t,n,i){let a=(e-t)/n;return a-Math.floor(a)===0?i&&--a:a=Math.floor(a),a}function L(e,t=!1){let n=j(e.spatialReference);if(null==n)return 0;let i=t?0:-n/2,a=A(e.spatialReference),l=!t&&Math.abs(e.xmax-n/2)<a?n/2:e.xmax,r=!t&&Math.abs(e.xmin+n/2)<a?-n/2:e.xmin;return I(l,i,n,!0)-I(r,i,n,!1)}function O(e){let t=e.storageInfo.origin.x,n=j(e.spatialReference,!0);if(null==n)return{originX:t,halfWorldWidth:null,pyramidsInfo:null};let i=n/2,{nativePixelSize:a,storageInfo:l,extent:r}=e,{maximumPyramidLevel:o,blockWidth:s,pyramidScalingFactor:f}=l,x=a.x,h=[],u=null!=e.transform&&"gcs-shift"===e.transform.type,m=t+(u?0:i),p=u?n-t:i-t;for(let e=0;e<=o;e++){let e=(r.xmax-t)/x/s,n=e-Math.floor(e)===0?e:Math.ceil(e),i=p/x/s,a=i-Math.floor(i)===0?i:Math.ceil(i),l=Math.floor(m/x/s),o=Math.round(m/x)%s,u=(s-Math.round(p/x)%s)%s;h.push({resolutionX:x,blockWidth:s,datasetColumnCount:n,worldColumnCountFromOrigin:a,leftMargin:o,rightPadding:u,originColumnOffset:l}),x*=f}return{originX:t,halfWorldWidth:i,pyramidsInfo:h,hasGCSSShiftTransform:u}}function W(e){let t=e.isAdaptive&&null==e.spacing,n=e.spacing||[32,32],i=F(e),a={cols:i.size[0]+1,rows:i.size[1]+1},l=i.outofBoundPointCount>0&&i.outofBoundPointCount<i.offsets.length/2,r=i.outofBoundPointCount===i.offsets.length/2||t&&l?[0,0]:p(i.offsets,a,n,4),s=(r[0]+r[1])/2,f=e.projectedExtent.spatialReference,x=e.srcBufferExtent.spatialReference;if(t&&(l||s>4)&&(f.isGeographic||S(f),n=[4,4],i=F({...e,spacing:n}),a={cols:i.size[0]+1,rows:i.size[1]+1},r=p(i.offsets,a,n,4)),i.error=r,n[0]>1&&(i.coefficients=Y(i.offsets,a,l)),e.includeGCSGrid&&!f.isGeographic&&!f.isWebMercator)if(x.isGeographic)i.gcsGrid={offsets:i.offsets,coefficients:i.coefficients,spacing:n};else{let t=S(f);if(null!=t&&!t.isEnvelope){let t=function(e){if(!e||e.isGeographic)return e;let t,n=String(e.wkid||e.wkt2||e.wkt);return y.has(n)?t=y.get(n):(t=(e.wkid?o.P.coordsys(e.wkid):o.P.fromString(o.a.PE_TYPE_PROJCS,e.wkt2||e.wkt)).getGeogcs().getCode(),y.set(n,t)),new h.A({wkid:t})}(f),r=C(e.projectedExtent,t),{offsets:s}=F({...e,srcBufferExtent:r,spacing:n}),x=Y(s,a,l);i.gcsGrid={offsets:s,coefficients:x,spacing:n}}}return i}function F(e){let{projectedExtent:t,srcBufferExtent:n,pixelSize:i,datumTransformation:a,rasterTransform:l}=e,r=t.spatialReference,o=n.spatialReference;m();let f,{xmin:x,ymin:h,xmax:u,ymax:p}=t,c=j(o),g=null!=c&&(e.hasWrapAround||"gcs-shift"===l?.type),y=e.spacing||[32,32],d=y[0]*i.x,w=y[1]*i.y,M=1===y[0],R=Math.ceil((u-x)/d-.1/y[0])+ +!M,P=Math.ceil((p-h)/w-.1/y[1])+ +!M,k=T({cols:R,rows:P,xmin:x,ymax:p,xres:d,yres:w,inSR:r,outSR:o,datumTransformation:a,preferPE:y[0]<=4,usePixelCenter:M}),b=[],E=0,G=M?-1:NaN,{xmin:N,xmax:C,ymax:v,width:_,height:z}=n,I=A(o,500),L=null!=c&&N>0&&C>c/2,O=S(r),W=null!=O&&O.poleLocation>0;for(let e=0;e<R;e++){let t=[];for(let n=0;n<P;n++){let i=k[e*P+n];if(g&&i[0]>C&&i[0]>c/2-I?i[0]-=c:g&&0===e&&i[0]<0&&L&&!l&&(i[0]+=c),!i||isNaN(i[0])||isNaN(i[1]))b.push(G),b.push(G),t.push(null),E++;else{if(l){let e=l.inverseTransform(new s.A({x:i[0],y:i[1],spatialReference:o}));i=[e.x,e.y]}t.push(i),e>0&&g&&f[n]&&i[0]<f[n][0]&&(i[0]+=c,W&&i[0]>C&&i[0]>c&&(i[0]-=c)),b.push((i[0]-N)/_),b.push((v-i[1])/z)}}f=t}return{offsets:b,error:null,coefficients:null,outofBoundPointCount:E,spacing:y,size:M?[R,P]:[R-1,P-1]}}function Y(e,t,n){let{cols:i,rows:a}=t,l=new Float32Array((i-1)*(a-1)*2*6),r=new Float32Array([-0,-1,1,-1,1,-0,1,-0,-0]),o=new Float32Array([-1,1,0,0,-1,1,1,0,0]);for(let t=0;t<i-1;t++){for(let n=0;n<a-1;n++){let s=t*a*2+2*n,f=e[s],x=e[s+1],h=e[s+2],u=e[s+3];s+=2*a;let m=e[s],p=e[s+1],c=e[s+2],g=e[s+3],y=0,d=12*(n*(i-1)+t);for(let e=0;e<3;e++)l[d++]=r[y++]*f+r[y++]*h+r[y++]*c;y=0;for(let e=0;e<3;e++)l[d++]=r[y++]*x+r[y++]*u+r[y++]*g;y=0;for(let e=0;e<3;e++)l[d++]=o[y++]*f+o[y++]*m+o[y++]*c;y=0;for(let e=0;e<3;e++)l[d++]=o[y++]*x+o[y++]*p+o[y++]*g}if(n)for(let e=0;e<l.length;e++)isNaN(l[e])&&(l[e]=-1)}return l}function q(e){let{spatialReference:t}=e,n=(0,u.Vp)(t);if(!n)return e;let[i,a]=n.valid,l=a-i,o=0;if(e.xmin<i){let t=i-e.xmin;o=Math.ceil(t/l)}else if(e.xmin>a){let t=e.xmin-a;o=-Math.ceil(t/l)}return new r.A({spatialReference:e.spatialReference,xmin:e.xmin+o*l,ymin:e.ymin,xmax:e.xmax+o*l,ymax:e.ymax})}function B(e,t,n){let{storageInfo:i,pixelSize:a}=t,r=0,o=!1,{pyramidResolutions:f}=i,x="mixed"===i.tileInfo.format?.toLowerCase()?Math.max(1,Math.min(3,i.tileInfo.dpi/96)):1,h=(e.x+e.y)/2/x;if(null!=f&&f.length){let e=f[f.length-1],i=(e.x+e.y)/2,x=(a.x+a.y)/2;if(h<=x)r=0;else if(h>=i)r=f.length,o=h/i>8;else{let e,t=x;for(let i=1;i<=f.length;i++){if(e=(f[i-1].x+f[i-1].y)/2,h<=e){h===e?r=i:"down"===n?(r=i-1,o=h/t>8):r="up"===n||h-t>e-h||h/t>2?i:i-1;break}t=e}}let u=0===r?a:f[r-1];return o&&Math.min(u.x,u.y)*(0,l.GA)(t.spatialReference)>19567&&(o=!1),{pyramidLevel:r,pyramidResolution:new s.A({x:u.x,y:u.y,spatialReference:t.spatialReference}),excessiveReading:o}}let u=Math.log(e.x/a.x)/Math.LN2,m=Math.log(e.y/a.y)/Math.LN2,p=t.storageInfo.maximumPyramidLevel||0;r="down"===n?Math.floor(Math.min(u,m)):"up"===n?Math.ceil(Math.max(u,m)):Math.round((u+m)/2),r<0?r=0:r>p&&(o=r>p+3,r=p);let c=2**r;return{pyramidLevel:r,pyramidResolution:new s.A({x:c*t.nativePixelSize.x,y:c*t.nativePixelSize.y,spatialReference:t.spatialReference}),excessiveReading:o}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3116],{83116(e,t,r){r.d(t,{default:()=>k});var i=r(32198),s=r(92602),n=r(56507),a=r(7762),o=r(62885),l=r(25482),h=r(4718),u=r(92474),c=r(81583),d=r(53966),g=r(97768),m=r(17676),y=r(84952),p=r(91429),f=r(16930),b=r(20655),v=r(80812),w=r(43281),_=r(69622),L=r(73444),C=r(10838);let A=class extends _.A{constructor(e){super(e),this.apiKey=null,this.id=null,this.language=null,this.places=null,this.serviceUrl="https://basemapstyles-api.arcgis.com/arcgis/rest/services/styles/v2",this.worldview=null}get languageParameter(){let e=this.language,t="local"===e||"global"===e?e:(0,C.xO)(e??(0,L.JK)())??"global";return t="no"===t?"nb":t,t}};(0,i.Cg)([(0,p.MZ)()],A.prototype,"apiKey",void 0),(0,i.Cg)([(0,p.MZ)()],A.prototype,"id",void 0),(0,i.Cg)([(0,p.MZ)()],A.prototype,"language",void 0),(0,i.Cg)([(0,p.MZ)()],A.prototype,"places",void 0),(0,i.Cg)([(0,p.MZ)()],A.prototype,"serviceUrl",void 0),(0,i.Cg)([(0,p.MZ)()],A.prototype,"worldview",void 0),A=(0,i.Cg)([(0,p.$K)("esri.support.BasemapStyle")],A);const M=A;var S,T,I=r(16215),D=r(751),x=r(43937);let E=class extends((0,l.T)(u.x_)){static{S=I.Y}static{T=this}constructor(e){super(e),this[S]=!0,this.id=null,this.portalItem=null,this.spatialReference=null,this.style=null,this.thumbnailUrl=null,this.title="Basemap",this.type="Basemap",this.id=Date.now().toString(16)+"-basemap-"+T.idCounter++,this.baseLayers=new a.A,this.referenceLayers=new a.A,this.groundLayers=new a.A;let t=e=>{let{parent:t}=e;t&&t!==this&&"remove"in t&&t.remove?.(e),e.parent=this,("elevation"===e.type||"integrated-mesh-3dtiles"===e.type)&&d.A.getLogger(this).error(`Layer '${e.title}, id:${e.id}' of type '${e.type}' is not supported as a basemap layer and will therefore be ignored.`)},r=e=>{let{parent:t}=e;t&&t!==this&&"remove"in t&&t.remove?.(e),e.parent=this},i=e=>{e.parent=null},s=e=>{e.parent===this&&(e.parent=null)};this.addHandles([this.baseLayers.on("after-add",e=>t(e.item)),this.baseLayers.on("after-remove",e=>i(e.item)),this.referenceLayers.on("after-add",e=>t(e.item)),this.referenceLayers.on("after-remove",e=>i(e.item)),this.groundLayers.on("before-add",e=>{let t=e.item;return t.parent===this?(d.A.getLogger(this).error(`Layer '${t.title}, id:${t.id}' of type '${t.type}' already a ground layer, second add will be ignored.`),void e.preventDefault()):"integrated-mesh-3dtiles"!==t.type?(d.A.getLogger(this).error(`Layer '${t.title}, id:${t.id}' of type '${t.type}' is not supported as a ground layer and will therefore be ignored.`),void e.preventDefault()):void 0}),this.groundLayers.on("after-add",e=>r(e.item)),this.groundLayers.on("after-remove",e=>s(e.item))])}static{this.idCounter=0}initialize(){this.when().catch(e=>{d.A.getLogger(this).error("#load()",`Failed to load basemap (title: '${this.title}', id: '${this.id}')`,e)}),this.resourceInfo&&this.read(this.resourceInfo.data,this.resourceInfo.context)}destroy(){let e=this.baseLayers.toArray();for(let t of e)t.destroyed||t.destroy();let t=this.groundLayers.toArray();for(let e of t)e.destroyed||e.destroy();let r=this.referenceLayers.toArray();for(let e of r)e.destroyed||e.destroy();this.baseLayers.destroy(),this.groundLayers.destroy(),this.referenceLayers.destroy(),this.portalItem=(0,g.pR)(this.portalItem)}removeChildLayer(e){for(let t of[this.baseLayers,this.referenceLayers,this.groundLayers])t.remove(e)}normalizeCtorArgs(e){return e&&"resourceInfo"in e&&(this._set("resourceInfo",e.resourceInfo),delete(e={...e}).resourceInfo),e}get baseLayers(){return this._get("baseLayers")}set baseLayers(e){this._set("baseLayers",(0,o.V)(e,this._get("baseLayers")))}_writeBaseLayers(e,t,r){let i=[];e?(r={...r,layerContainerType:"basemap-base-layers"},this.baseLayers.forEach(e=>{let t=(0,D.CJ)(e,r.webmap?r.webmap.getLayerJSONFromResourceInfo(e):null,r);null!=t&&i.push(t)}),this.referenceLayers.forEach(e=>{let t=(0,D.CJ)(e,r.webmap?r.webmap.getLayerJSONFromResourceInfo(e):null,r);null!=t&&("scene"!==e.type&&(t.isReference=!0),i.push(t))}),t.baseMapLayers=i):t.baseMapLayers=i}set groundLayers(e){this._set("groundLayers",(0,o.V)(e,this._get("groundLayers")))}_writeGroundLayers(e,t,r){let i=[];e&&(r={...r,layerContainerType:"basemap-ground-layers"},this.groundLayers.forEach(e=>{let t=(0,D.CJ)(e,r.webmap?r.webmap.getLayerJSONFromResourceInfo(e):null,r);null!=t&&i.push(t)}),i.length>0&&(t.groundLayers=i))}get loaded(){return super.loaded}get referenceLayers(){return this._get("referenceLayers")}set referenceLayers(e){this._set("referenceLayers",(0,o.V)(e,this._get("referenceLayers")))}writeTitle(e,t){t.title=e||"Basemap"}load(e){return this.addResolvingPromise(this._loadFromSource(e)),Promise.resolve(this)}loadAll(){return(0,c.g)(this,e=>{e(this.baseLayers,this.groundLayers,this.referenceLayers)})}clone(){let e={id:this.id,title:this.title,portalItem:this.portalItem,baseLayers:this.baseLayers.map(e=>(0,h.Nb)(e)?e.clone():e),groundLayers:this.groundLayers.map(e=>(0,h.Nb)(e)?e.clone():e),referenceLayers:this.referenceLayers.map(e=>(0,h.Nb)(e)?e.clone():e)};return this.loaded&&(e.loadStatus="loaded"),new T({resourceInfo:this.resourceInfo}).set(e)}read(e,t){this.resourceInfo||this._set("resourceInfo",{data:e,context:t}),super.read(e,t)}write(e,t){return e||={},t?.origin||(t={origin:"web-map",...t}),super.write(e,t),!this.loaded&&this.resourceInfo?.data.baseMapLayers&&(e.baseMapLayers=this.resourceInfo.data.baseMapLayers.map(e=>{let t=(0,h.o8)(e);return t.url&&(0,y.BQ)(t.url)&&(t.url=`https:${t.url}`),t.templateUrl&&(0,y.BQ)(t.templateUrl)&&(t.templateUrl=`https:${t.templateUrl}`),t})),e}async _loadFromSource(e){let{resourceInfo:t,portalItem:r,style:i}=this;(0,m.Te)(e);let s=[];if(t){let r=t.context?t.context.url:null;if(s.push(this._loadLayersFromJSON(t.data,r,e)),t.data.id&&!t.data.title){let e=t.data.id;s.push((0,w.q)(e).then(e=>{e&&this.read({title:e},t.context)}))}}else r?s.push(this._loadFromItem(r,e)):i&&s.push(this._loadFromStylesService(i,e));await Promise.all(s)}async _loadLayersFromJSON(e,t,i){let s=this.resourceInfo?.context,n=this.portalItem?.portal||s?.portal||null,a=Z[s?.origin||""]??"web-map",{populateOperationalLayers:o}=await Promise.all([r.e(9917),r.e(5356)]).then(()=>r(75356)),l=[];if((0,m.Te)(i),e.baseMapLayers&&Array.isArray(e.baseMapLayers)){let r={context:{...s,origin:a,url:t,portal:n,layerContainerType:"basemap-base-layers"},defaultLayerType:"DefaultTileLayer"},i=e=>"web-scene"===a&&"ArcGISSceneServiceLayer"===e.layerType||e.isReference,h=o(this.baseLayers,e.baseMapLayers.filter(e=>!i(e)),r);l.push(h);let u=o(this.referenceLayers,e.baseMapLayers.filter(i),r);l.push(u)}if(e.groundLayers&&Array.isArray(e.groundLayers)){let r={context:{...s,origin:a,url:t,portal:n,layerContainerType:"basemap-ground-layers"},defaultLayerType:"IntegratedMesh3DTilesLayer"},i=o(this.groundLayers,e.groundLayers,r);l.push(i)}await Promise.allSettled(l)}async _loadFromItem(e,t){let r=await(await e.load(t)).fetchData("json",t),i=(0,y.An)(e.itemUrl??"");return this._set("resourceInfo",{data:r.baseMap??{},context:{origin:O[e.type||""]??"web-map",portal:e.portal||b.A.getDefault(),url:i}}),this.read(this.resourceInfo.data,this.resourceInfo.context),this.read({spatialReference:r.spatialReference},this.resourceInfo.context),this.read({title:e.title,thumbnailUrl:e.thumbnailUrl},{origin:"portal-item",portal:e.portal||b.A.getDefault(),url:i}),this._loadLayersFromJSON(this.resourceInfo.data,i,t)}async _loadFromStylesService(e,t){let r=e.serviceUrl.endsWith("/webmaps")?e.serviceUrl.slice(0,-8):e.serviceUrl,i=`${r}/styles/${e.id}/self`,a=`${r}/webmaps/${e.id}`,o=e.apiKey??(s.A.sessions?.basemap?.enabled?void 0:s.A.apiKeys.basemapStyles),[l,h]=await Promise.all([(await(0,n.A)(i,{query:{token:o},signal:t?.signal})).data,(await(0,n.A)(a,{query:{language:e.languageParameter,places:e.places,worldview:e.worldview,token:o},signal:t?.signal})).data]);this.thumbnailUrl??=l.thumbnailUrl;let u=(0,y.An)(a);if(this._set("resourceInfo",{data:h.baseMap??{},context:{origin:"web-map",url:u}}),this.read(this.resourceInfo.data,this.resourceInfo.context),this.read({spatialReference:h.spatialReference},this.resourceInfo.context),await this._loadLayersFromJSON(this.resourceInfo.data,u,t),o)for(let e of[...this.baseLayers,...this.groundLayers,...this.referenceLayers])"apiKey"in e&&(e.apiKey=o)}static fromId(e){let t=w.H[e];return t?t.itemId?new T({portalItem:{id:t.itemId,portal:{url:"https://www.arcgis.com"}}}):T.fromJSON(t,t.is3d?{origin:"web-scene",portal:new b.A({url:"https://www.arcgis.com"})}:{origin:"web-map"}):null}};(0,i.Cg)([(0,p.MZ)({json:{read:!1,write:{ignoreOrigin:!0,target:"baseMapLayers",writer(e,t,r,i){this._writeBaseLayers(e,t,i)}},origins:{"web-scene":{write:{ignoreOrigin:!0,target:{baseMapLayers:{type:a.A}},writer(e,t,r,i){this._writeBaseLayers(e,t,i)}}}}}})],E.prototype,"baseLayers",null),(0,i.Cg)([(0,p.MZ)({json:{read:!1,write:{ignoreOrigin:!0,target:"groundLayers",writer(e,t,r,i){this._writeGroundLayers(e,t,i)}},origins:{"web-scene":{write:{ignoreOrigin:!0,target:{groundLayers:{type:a.A}},writer(e,t,r,i){this._writeGroundLayers(e,t,i)}}}}}})],E.prototype,"groundLayers",null),(0,i.Cg)([(0,p.MZ)({type:String,json:{origins:{"web-scene":{write:!0}}}})],E.prototype,"id",void 0),(0,i.Cg)([(0,p.MZ)({type:v.default})],E.prototype,"portalItem",void 0),(0,i.Cg)([(0,p.MZ)()],E.prototype,"referenceLayers",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],E.prototype,"resourceInfo",void 0),(0,i.Cg)([(0,p.MZ)({type:f.A})],E.prototype,"spatialReference",void 0),(0,i.Cg)([(0,p.MZ)({type:M})],E.prototype,"style",void 0),(0,i.Cg)([(0,p.MZ)()],E.prototype,"thumbnailUrl",void 0),(0,i.Cg)([(0,p.MZ)({type:String,json:{origins:{"web-scene":{write:{isRequired:!0}}}}})],E.prototype,"title",void 0),(0,i.Cg)([(0,x.K)("title")],E.prototype,"writeTitle",null),E=T=(0,i.Cg)([(0,p.$K)("esri.Basemap")],E);const O={"Web Scene":"web-scene","Web Map":"web-map","Link Chart":"link-chart"},Z={"web-scene":"web-scene","web-map":"web-map","link-chart":"link-chart"},k=E},69540(e,t,r){var i=r(32198),s=r(69622),n=(r(44208),r(4718)),a=(r(53966),r(97768)),o=r(88620),l=r(64108);const h=Symbol("ClonableMixin"),u=e=>{var t;let r=e,s=class extends r{constructor(){super(...arguments),this[t]=!0}static{t=h}clone(e){let t=(0,o.oY)(this);(0,a.Lw)(t,"unable to clone instance of non-accessor class");let r=t.metadata,i=t.store,s={},l=new Map;for(let t in r){let a=r[t],o=i?.originOf(t),h=a.clonable;if(a.readOnly||!1===h||7!==o&&0!==o&&5!==o&&4!==o)continue;let u=this[t],c=null;if("function"==typeof h)c=h(u,e);else if("reference"===h)c=u;else if(c=(0,n.TU)(u,e),null!=u&&null==c)continue;0===o?l.set(t,c):s[t]=c}let h=new(0,Object.getPrototypeOf(this).constructor)(s);if(l.size){let e=(0,o.oY)(h)?.store;if(e)for(let[t,r]of l)e.set(t,r,0)}return h}};return s=(0,i.Cg)([(0,l.$)("esri.core.Clonable")],s),s},c=u(s.A);r.d(t,["OU",0,u,"Pw",0,c])},7762(e,t,r){var i,s=r(32198),n=r(98291),a=r(4576),o=r(65529),l=r(36563),h=r(4718),u=r(53966),c=r(93687),d=r(76030),g=r(78888),m=r(62788),y=r(10107),p=r(7695),f=r(64108),b=r(95488),v=r(12195);class w{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(e){this.defaultPrevented=!1,this.item=e}}class _{constructor(e,t,r,i,s){this.target=e,this.added=t,this.removed=r,this.start=i,this.deleteCount=s}}const L=new c.A(()=>new w,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1});function C(e){e&&"object"==typeof e&&"destroy"in e&&"function"==typeof e.destroy&&e.destroy()}function A(e){return e?e instanceof Z?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function M(e){if(e?.length)return e[0]}function S(e,t,r,i){let s=Math.min(e.length-r,t.length-i),n=0;for(;n<s&&e[r+n]===t[i+n];)n++;return n}function T(e,t,r,i){t&&t.forEach((t,s,n)=>{e.push(t),T(e,r.call(i,t,s,n),r,i)})}const I=new Set,D=new Set,x=new Set,E=new Map;let O=0,Z=i=class extends o.nJ{static ofType(e){if(!e)return i;if(E.has(e))return E.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(let r in e.typeMap){let i=e.typeMap[r].prototype.declaredClass;t?t+=` | ${i}`:t=i}let r=class extends i{};return(0,s.Cg)([(0,p.u)({Type:e,ensureType:"function"==typeof e?(0,g.dp)(e):(0,g.aq)(e)})],r.prototype,"itemType",void 0),r=(0,s.Cg)([(0,f.$)(`esri.core.Collection<${t}>`)],r),E.set(e,r),r}static isCollection(e){return null!=e&&e instanceof i}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new b.I,this._length=0,this._items=[],Object.defineProperty(this,"uid",{value:O++})}normalizeCtorArgs(e){return e?(0,a.yc)(e)||e instanceof i?{items:e}:e:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),super.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get length(){return this._length}set length(e){e>this._length?u.A.getLogger(this).error("#length=","Cannot increase the length of the collection by assigning to the length property."):this.splice(e,Math.max(0,this._length-e))}get items(){return(0,m.gc)(this._observable),this._items}set items(e){this._emitBeforeChanges(1)||(this._splice(0,this.length,A(e)),this._emitAfterChanges(1))}hasEventListener(e){return!this.destroyed&&("change"===e?this._chgListeners.length>0:super.hasEventListener(e))}on(e,t){if(this.destroyed)return(0,l.hA)();if("change"===e){let e=this._chgListeners,r={removed:!1,callback:t};return e.push(r),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),(0,l.hA)(()=>{r.removed=!0,e.splice(e.indexOf(r),1)})}return super.on(e,t)}once(e,t){let r="deref"in t?()=>t.deref():()=>t,i=this.on(e,e=>{r()?.call(null,e),i.remove()});return i}add(e,t){if((0,m.gc)(this._observable),this._emitBeforeChanges(1))return this;let r=this.getNextIndex(t??null);return this._splice(r,0,[e]),this._emitAfterChanges(1),this}addMany(e,t=this._items.length){if((0,m.gc)(this._observable),!e?.length||this._emitBeforeChanges(1))return this;let r=this.getNextIndex(t);return this._splice(r,0,A(e)),this._emitAfterChanges(1),this}at(e){if((0,m.gc)(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return[];let e=this._removeAllRaw();return this._emitAfterChanges(2),e}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,m.gc)(this._observable),this._createNewInstance({items:this._items.map(h.o8)})}concat(...e){(0,m.gc)(this._observable);let t=e.map(A);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;let r=this._splice(0,this.length),i=r.length;for(let s=0;s<i;s++)e.call(t,r[s],s,r);this._emitAfterChanges(2)}destroyAll(){this.drain(C)}destroyMany(e){let t=this.removeMany(e);return t.forEach(C),t}every(e,t){return(0,m.gc)(this._observable),this._items.every(e,t)}filter(e,t){(0,m.gc)(this._observable);let r=2===arguments.length?this._items.filter(e,t):this._items.filter(e);return this._createNewInstance({items:r})}find(e,t){return(0,m.gc)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,m.gc)(this._observable),this._items.findIndex(e,t)}findLast(e,t){return(0,m.gc)(this._observable),this._items.findLast(e,t)}findLastIndex(e,t){return(0,m.gc)(this._observable),this._items.findLastIndex(e,t)}flatten(e,t){(0,m.gc)(this._observable);let r=[];return T(r,this,e,t),new i(r)}forEach(e,t){return(0,m.gc)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,m.gc)(this._observable),this._items[e]}getNextIndex(e){(0,m.gc)(this._observable);let t=this.length;return e??=t,e<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,m.gc)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,m.gc)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,m.gc)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,m.gc)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,m.gc)(this._observable);let r=this._items.map(e,t);return new i({items:r})}reorder(e,t=this.length-1){(0,m.gc)(this._observable);let r=this.indexOf(e);if(-1!==r){if(t<0?t=0:t>=this.length&&(t=this.length-1),r!==t){if(this._emitBeforeChanges(4))return e;this._splice(r,1),this._splice(t,0,[e]),this._emitAfterChanges(4)}return e}}pop(){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;let e=M(this._splice(this.length-1,1));return this._emitAfterChanges(2),e}push(...e){return(0,m.gc)(this._observable),this._emitBeforeChanges(1)||(this._splice(this.length,0,e),this._emitAfterChanges(1)),this.length}reduce(e,t){(0,m.gc)(this._observable);let r=this._items;return 2===arguments.length?r.reduce(e,t):r.reduce(e)}reduceRight(e,t){(0,m.gc)(this._observable);let r=this._items;return 2===arguments.length?r.reduceRight(e,t):r.reduceRight(e)}remove(e){return(0,m.gc)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,m.gc)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(2))return;let t=M(this._splice(e,1));return this._emitAfterChanges(2),t}removeMany(e){if((0,m.gc)(this._observable),!e?.length||this._emitBeforeChanges(2))return[];let t=e instanceof i?e.toArray():e,r=this._items,s=[],n=t.length;for(let e=0;e<n;e++){let i=t[e],n=r.indexOf(i);if(n>-1){let i=1+S(t,r,e+1,n+1),a=this._splice(n,i);a&&a.length>0&&s.push.apply(s,a),e+=i-1}}return this._emitAfterChanges(2),s}reverse(){if((0,m.gc)(this._observable),this._emitBeforeChanges(4))return this;let e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(4),this}shift(){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;let e=M(this._splice(0,1));return this._emitAfterChanges(2),e}slice(e=0,t=this.length){return(0,m.gc)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,m.gc)(this._observable),this._items.some(e,t)}sort(e){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(4)||!this._requiresSort(e))return this;let t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(4),this}_requiresSort(e=(e,t)=>e===t?0:e<t?-1:1){let t=this.length-1;for(let r=0;r<t;r++)if(e(this.items[r],this.items[r+1])>0)return!0;return!1}splice(e,t,...r){(0,m.gc)(this._observable),1===arguments.length&&(t=this.length),t??=0;let i=(t?2:0)|!!r.length;if(this._emitBeforeChanges(i))return[];let s=this._splice(e,t,r)||[];return this._emitAfterChanges(i),s}toArray(){return(0,m.gc)(this._observable),this._items.slice()}toJSON(e){return(0,m.gc)(this._observable),this.toArray().map(t=>(0,v.W)(t)?t.toJSON(e):t)}toLocaleString(){return(0,m.gc)(this._observable),this._items.toLocaleString()}toString(){return(0,m.gc)(this._observable),this._items.toString()}unshift(...e){return(0,m.gc)(this._observable),!e.length||this._emitBeforeChanges(1)||(this._splice(0,0,e),this._emitAfterChanges(1)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,r){let i,s,n=this._items,a=this.itemType;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=(0,d._)(()=>this._dispatchChange())),e<0&&(e+=this.length),t){if(s=n.splice(e,t),this.hasEventListener("before-remove")){let t=L.acquire();t.target=this,t.cancellable=!0;for(let r=0,a=s.length;r<a;r++)i=s[r],t.reset(i),this.emit("before-remove",t),t.defaultPrevented&&(s.splice(r,1),n.splice(e,0,i),e+=1,--r,--a);L.release(t)}if(this._length=this._items.length,this.hasEventListener("after-remove")){let e=L.acquire();e.target=this,e.cancellable=!1;let t=s.length;for(let r=0;r<t;r++)e.reset(s[r]),this.emit("after-remove",e);L.release(e)}}if(r?.length){if(a){let e=[];for(let t of r){let r=a.ensureType(t);(null!=r||null==t)&&e.push(r)}r=e}let t=this.hasEventListener("before-add"),i=this.hasEventListener("after-add"),s=e===this.length;if(t||i){let a=L.acquire();a.target=this,a.cancellable=!0;let o=L.acquire();o.target=this,o.cancellable=!1;for(let l of r)t?(a.reset(l),this.emit("before-add",a),a.defaultPrevented||(s?n.push(l):n.splice(e++,0,l),this._length=n.length,i&&(o.reset(l),this.emit("after-add",o)))):(s?n.push(l):n.splice(e++,0,l),this._length=n.length,o.reset(l),this.emit("after-add",o));L.release(o),L.release(a)}else{if(s)for(let e of r)n.push(e);else n.splice(e,0,...r);this._length=n.length}}if((r?.length||s?.length)&&this._notifyChangeEvent(r,s),this.hasEventListener("after-splice")){let i=new _(this,r,s,e,t);this.emit("after-splice",i)}return s}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){let r=L.acquire();r.target=this,r.cancellable=!0,r.type=e,this.emit("before-changes",r),t=r.defaultPrevented,L.release(r)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){let t=L.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),L.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&=(this._timer.remove(),null),this._updating=!1,!this._notifications)return;let e=this._notifications;this._notifications=null;for(let t of e){let e=t.changes;I.clear(),D.clear(),x.clear();for(let{added:t,removed:r}of e){if(t)if(0===x.size&&0===D.size)for(let e of t)I.add(e);else for(let e of t)D.has(e)?(x.add(e),D.delete(e)):x.has(e)||I.add(e);if(r)if(0===x.size&&0===I.size)for(let e of r)D.add(e);else for(let e of r)I.has(e)?I.delete(e):(x.delete(e),D.add(e))}let r=n.A.acquire();I.forEach(e=>{r.push(e)});let i=n.A.acquire();D.forEach(e=>{i.push(e)});let s=this._items,a=t.items,o=n.A.acquire();if(x.forEach(e=>{a.indexOf(e)!==s.indexOf(e)&&o.push(e)}),t.listeners&&(r.length||i.length||o.length)){let e={target:this,added:r,removed:i,moved:o},s=t.listeners.length;for(let r=0;r<s;r++){let i=t.listeners[r];i.removed||i.callback.call(this,e)}}n.A.release(r),n.A.release(i),n.A.release(o)}I.clear(),D.clear(),x.clear()}};(0,s.Cg)([(0,y.MZ)()],Z.prototype,"_updating",void 0),(0,s.Cg)([(0,y.MZ)()],Z.prototype,"_length",void 0),(0,s.Cg)([(0,y.MZ)()],Z.prototype,"length",null),(0,s.Cg)([(0,y.MZ)()],Z.prototype,"items",null),(0,s.Cg)([(0,y.MZ)({readOnly:!0})],Z.prototype,"updating",null),Z=i=(0,s.Cg)([(0,f.$)("esri.core.Collection")],Z);const k=Z;r.d(t,["A",0,k])},4902(e,t,r){var i=r(32198),s=r(64108);let n=0;const a=e=>{let t=e,r=class extends t{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+n++})}};return r=(0,i.Cg)([(0,s.$)("esri.core.Identifiable")],r),r};a(class{}),r.d(t,["s",0,a])},7695(e,t,r){function i(e){return(t,r)=>{t[r]=e}}r.d(t,{u:()=>i})},60999(e,t,r){r.d(t,{DZ:()=>m,Ke:()=>g,QA:()=>y,Tj:()=>u,UT:()=>p,aD:()=>b,jJ:()=>h});var i=r(32198),s=r(69622),n=r(97768),a=r(17676),o=r(10107),l=r(64108);function h(e,t,r){return(0,a.Lx)(e.map((e,i)=>t.apply(r,[e,i])))}async function u(e,t,r){return(await(0,a.Lx)(e.map((e,i)=>t.apply(r,[e,i])))).map(e=>e.value)}function c(e){return{ok:!0,value:e}}function d(e){return{ok:!1,error:e}}async function g(e){if(null==e)return{ok:!1,error:Error("no promise provided")};try{return c(await e)}catch(e){return d(e)}}async function m(e){try{return c(await e)}catch(e){return(0,a.QP)(e),d(e)}}function y(e){if(!0===e.ok)return e.value;throw e.error}function p(e,t){return new f(e,t)}let f=class extends s.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,n.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;let{signal:r}=this._abortController;this.promise=e(r),this.promise.then(e=>{this._result=c(e),this._cleanup()},e=>{this._result=d(e),this._cleanup()}),this._abortHandle=(0,a.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,n.xt)(this._abortHandle),this._abortController=null}};(0,i.Cg)([(0,o.MZ)()],f.prototype,"value",null),(0,i.Cg)([(0,o.MZ)()],f.prototype,"error",null),(0,i.Cg)([(0,o.MZ)()],f.prototype,"finished",null),(0,i.Cg)([(0,o.MZ)()],f.prototype,"promise",void 0),(0,i.Cg)([(0,o.MZ)()],f.prototype,"_result",void 0),f=(0,i.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],f);class b{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});let t=await e;return{[Symbol.dispose]:t}}async run(e){let t={stack:[],error:void 0,hasError:!1};try{return(0,i.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,i.hk)(t)}}}},62885(e,t,r){r.d(t,{H:()=>n,V:()=>s});var i=r(7762);function s(e,t,r=i.A){return t||=new r,t===e||t.destroyed||(t.removeAll(),(s=e)&&(Array.isArray(s)||"items"in s&&Array.isArray(s.items))?t.addMany(e):e&&t.add(e)),t;var s}function n(e){return e}},81583(e,t,r){r.d(t,{L:()=>o,g:()=>a});var i=r(60999),s=r(7762),n=r(92474);async function a(e,t){return await e.load(),o(e,t)}async function o(e,t){let r=[],a=(...e)=>{for(let t of e)if(null!=t){if(Array.isArray(t)){a(...t);continue}if(s.A.isCollection(t)){t.forEach(e=>a(e));continue}(0,n.Zm)(t)&&r.push(t)}};t(a);let o=null;if(await(0,i.Tj)(r,async e=>{let t=await(0,i.Ke)(function(e){return"loadAll"in e&&"function"==typeof e.loadAll}(e)?e.loadAll():e.load());!1===t.ok&&!o&&(o=t)}),o)throw o.error;return e}},36708(e,t,r){r.d(t,{C_:()=>d,on:()=>c,wB:()=>l,z7:()=>h});var i=r(37955),s=r(36563),n=r(97768),a=r(17676),o=r(14012);function l(e,t,r={}){return u(e,t,r,g)}function h(e,t,r={}){return u(e,t,r,m)}function u(e,t,r={},i){let s=null,a=r.once?(e,r)=>{i(e)&&((0,n.xt)(s),t(e,r))}:(e,r)=>{i(e)&&t(e,r)};if(s=(0,o.Cn)(e,a,r.sync,r.equals),r.initial){let t=e();a(t,t)}return s}function c(e,t,r,a={}){let o=null,h=null,u=null;function c(){o&&h&&(h.remove(),a.onListenerRemove?.(o),o=null,h=null)}function d(e){a.once&&a.once&&(0,n.xt)(u),r(e)}let g=l(e,(e,r)=>{c(),(0,i.wb)(e)&&(o=e,h=(0,i.on)(e,t,d),a.onListenerAdd?.(e))},{sync:a.sync,initial:!0});return u=(0,s.hA)(()=>{g.remove(),c()}),u}function d(e,t){return function(e,t,r){if((0,a.G4)(r))return Promise.reject((0,a.NK)());let i=e();if(t?.(i))return Promise.resolve(i);let o=null;function l(){o=(0,n.xt)(o)}return new Promise((i,n)=>{o=(0,s.vE)([(0,a.u7)(r,()=>{l(),n((0,a.NK)())}),u(e,e=>{l(),i(e)},{sync:!1,once:!0},t??g)])})}(e,m,t)}function g(e){return!0}function m(e){return!!e}r(80559),r.d(t,["OH",0,{sync:!0},"Vh",0,{initial:!0},"pc",0,{sync:!0,initial:!0}])},88930(e,t,r){r.d(t,{S1:()=>o,VW:()=>l,lL:()=>h,rb:()=>u,t:()=>c});var i=r(97770),s=(r(98623),r(34747));const n=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,a={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function o(e,t,r,n="system"){if("unknown"===r)return e;let a=new s.oh((0,i.wj)(n)),o=s.c9.fromJSDate(e,{zone:a}),l="decades"===r||"centuries"===r?"year":function(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}(r);return"decades"===r&&(t*=10),"centuries"===r&&(t*=100),o.plus({[l]:t}).toJSDate()}function l(e,t,r="milliseconds"){let i=e.getTime(),s=c(t,r,"milliseconds");return new Date(i+s)}function h(e,t,r="system"){let{unit:n}=t,a=Math.max(1,Math.trunc(t.value)),o=new s.oh((0,i.wj)(r)),l=s.c9.fromJSDate(e,{zone:o}),h=e=>e-e%a;switch(n){case"milliseconds":return l.startOf("second").plus({millisecond:h(l.millisecond)}).toJSDate();case"seconds":return l.startOf("minute").plus({second:h(l.second)}).toJSDate();case"minutes":return l.startOf("hour").plus({minute:h(l.minute)}).toJSDate();case"hours":return l.startOf("day").plus({hour:h(l.hour)}).toJSDate();case"days":return l.startOf("month").plus({day:h(l.day-1)}).toJSDate();case"weeks":{let e=l.startOf("year").startOf("week"),t=Math.floor(l.diff(e,"weeks").weeks);return e.plus({week:h(t)}).toJSDate()}case"months":return l.startOf("year").plus({month:h(l.month-1)}).toJSDate();case"years":case"decades":case"centuries":{let e=l.startOf("year"),t=("decades"===n?10:"centuries"===n?100:1)*a,r=e.year-e.year%t;return e.set({year:r}).toJSDate()}case"unknown":return e}}function u(e){let t=n.exec(e);if(!t)return null;let{hh:r,mm:i,ss:s,ms:o}=t.groups;return Number(r)*a.hours+Number(i)*a.minutes+Number(s||0)*a.seconds+Number(o||0)}function c(e,t,r){return 0===e?0:e*a[t]/a[r]}},97770(e,t,r){r.d(t,{Ey:()=>x,F8:()=>D,J2:()=>M,Yq:()=>T,_m:()=>S,iS:()=>I,wj:()=>E});var i=r(66552),s=r(73444),n=r(98623),a=r(34747);const o={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},l={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},h={timeZone:"UTC"},u={year:"numeric",month:"numeric",day:"numeric"},c={year:"numeric",month:"long",day:"numeric"},d={year:"numeric",month:"short",day:"numeric"},g={year:"numeric",month:"long",weekday:"long",day:"numeric"},m={hour:"numeric",minute:"numeric"},y={...m,second:"numeric"},p={hourCycle:"h23"},f={...m,...p},b={...y,...p},v={"short-date":u,"short-date-short-time":{...u,...m},"short-date-short-time-24":{...u,...f},"short-date-long-time":{...u,...y},"short-date-long-time-24":{...u,...b},"short-date-le":u,"short-date-le-short-time":{...u,...m},"short-date-le-short-time-24":{...u,...f},"short-date-le-long-time":{...u,...y},"short-date-le-long-time-24":{...u,...b},"long-month-day-year":c,"long-month-day-year-short-time":{...c,...m},"long-month-day-year-short-time-24":{...c,...f},"long-month-day-year-long-time":{...c,...y},"long-month-day-year-long-time-24":{...c,...b},"day-short-month-year":d,"day-short-month-year-short-time":{...d,...m},"day-short-month-year-short-time-24":{...d,...f},"day-short-month-year-long-time":{...d,...y},"day-short-month-year-long-time-24":{...d,...b},"long-date":g,"long-date-short-time":{...g,...m},"long-date-short-time-24":{...g,...f},"long-date-long-time":{...g,...y},"long-date-long-time-24":{...g,...b},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":m,"long-time":y},w=(0,i.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),_={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"};function L(){let e=(0,s.lR)();return(e&&_[e])??(0,s.QC)()}"mart"!==new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)).find(({type:e})=>"month"===e)?.value.toLowerCase()&&(_.bs="sr-Latn-CS");let C=new WeakMap;const A=v["short-date-short-time"];function M(e){return v[e]}function S(e){let{dateStyle:t,timeStyle:r,hour12:i,year:s,month:n}=e,a={};return t?a.dateStyle=t:s&&(a.year=s,a.month=n||void 0),r&&!a.year&&(a.timeStyle=r,a.hour12="auto"===i?void 0:"always"===i),a}function T(e,t=A){return function(e){let t=C.get(e);if(!t){let r=L(),i=E(e.timeZone??"system"),s={...e,timeZone:i};t=new Intl.DateTimeFormat(r,s),C.set(e,t)}return t}(t).format(e)}function I(e,t=A){return T(new Date(e),{...t,...h,...l})}function D(e,t=A){return T(new Date(`1970-01-01T${e}Z`),{...t,...h,...o})}function x(e,t=A){let r=a.c9.fromISO(e,{setZone:!0});if(!r.isValid)return e;if(t.timeZone)return T(r.toJSDate(),t);let i=0===r.offset?"UTC":t.timeZone,s={...t,timeZone:i};return r.toLocaleString(s,{locale:L()})}function E(e){switch(e){case"system":return n.N;case n.L:return"UTC";default:return e}}(0,s.Ml)(()=>{C=new WeakMap}),r.d(t,["_v",0,w])},4146(e,t,r){r.d(t,{A:()=>b});var i=r(32198),s=r(56507),n=r(49186),a=r(65529),o=r(4902),l=r(92474),h=r(53966),u=r(17676),c=r(84952),d=r(91429),g=r(5443),m=r(16930),y=r(92602),p=r(79677);let f=0,b=class extends((0,a.Zt)((0,o.s)(l.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new g.A(-180,-90,180,90,m.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+f++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=m.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){let t="string"==typeof e?{url:e}:e;return(await Promise.all([r.e(812),r.e(7982)]).then(()=>r(27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){let t="portalItem"in e?e:{portalItem:e},{fromItem:i}=await Promise.all([r.e(9917),r.e(812),r.e(5613)]).then(()=>r(45613));try{return await i(t)}catch(e){let r=t?.portalItem,i=r?.id||"unset",s=r?.portal?.url||y.A.portalUrl;throw h.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+s+"', id: '"+i+"')",e),e}}(e)}initialize(){this.when().catch(e=>{(0,u.zf)(e)||h.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})})}destroy(){let{parent:e}=this;e&&(this.parent=null,e.removeChildLayer?.(this))}get effectiveVisible(){return this.visible&&(this.parent?.effectiveVisible??!0)}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}removeFromParent(){let{parent:e}=this;e&&(e.removeChildLayer?.(this),this.parent=null)}get parsedUrl(){return(0,c.An)(this.url)}createLayerView(e,t){return Promise.reject(new n.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){let e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,s.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new n.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,i.Cg)([(0,d.MZ)({type:String})],b.prototype,"attributionDataUrl",void 0),(0,i.Cg)([(0,d.MZ)({readOnly:!0})],b.prototype,"effectiveVisible",null),(0,i.Cg)([(0,d.MZ)({type:g.A})],b.prototype,"fullExtent",void 0),(0,i.Cg)([(0,d.MZ)({readOnly:!0})],b.prototype,"hasAttributionData",null),(0,i.Cg)([(0,d.MZ)({type:String,clonable:!1})],b.prototype,"id",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,d.MZ)({type:["show","hide","hide-children"]})],b.prototype,"listMode",void 0),(0,i.Cg)([(0,d.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],b.prototype,"opacity",void 0),(0,i.Cg)([(0,d.MZ)({clonable:!1})],b.prototype,"parent",void 0),(0,i.Cg)([(0,d.MZ)({readOnly:!0})],b.prototype,"parsedUrl",null),(0,i.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],b.prototype,"persistenceEnabled",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean})],b.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean})],b.prototype,"attributionVisible",void 0),(0,i.Cg)([(0,d.MZ)({type:m.A})],b.prototype,"spatialReference",void 0),(0,i.Cg)([(0,d.MZ)({type:String})],b.prototype,"title",void 0),(0,i.Cg)([(0,d.MZ)({readOnly:!0,json:{read:!1}})],b.prototype,"type",void 0),(0,i.Cg)([(0,d.MZ)()],b.prototype,"url",void 0),(0,i.Cg)([(0,d.MZ)({type:p.A})],b.prototype,"visibilityTimeExtent",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"visible",void 0),b=(0,i.Cg)([(0,d.$K)("esri.layers.Layer")],b)},77548(e,t,r){r.d(t,{Gh:()=>E,tk:()=>S,BR:()=>M,p2:()=>C,qd:()=>T,wI:()=>A,G$:()=>D,$x:()=>I,Ov:()=>v,cM:()=>d,UC:()=>g,Qz:()=>m,OP:()=>x,TU:()=>b,F2:()=>y,XX:()=>f,Qi:()=>w,jy:()=>_});var i=r(70333),s=r(56507),n=r(7762),a=(r(84952),r(36563)),o=r(36708),l=r(4146);const h=new WeakMap;function u(e){return!e.destroyed&&(h.has(e)||e.addHandles([(0,o.wB)(()=>{let{parent:t}=e;return!!(t&&t instanceof l.A)&&("catalog-dynamic-group"===t.type||u(t))},t=>h.set(e,t),o.pc),(0,a.hA)(()=>h.delete(e))]),h.get(e))}function c(e,t){return"object"==typeof e&&!!e&&"type"in e&&e.type===t}function d(e){return c(e,"knowledge-graph")&&"layers"in e}function g(e){return c(e,"knowledge-graph-sublayer")}function m(e){return c(e,"link-chart")&&"layers"in e}function y(e){return c(e,"subtype-group")&&"sublayers"in e}function p(e){let t=e.parent;return function(e){return"group"===e?.type}(t)&&t.tables.includes(e)}r(16215);const f={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function b(e){let t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function v(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function w(e){return"object"==typeof e&&!!e&&"featureReduction"in e}function _(e){return function(e){return c(e,"catalog-footprint")}(e)||function(e){return c(e,"feature")}(e)&&function(e){return"feature"===e?.type&&"feature-layer"===e.source?.type}(e)||function(e){return c(e,"oriented-imagery")}(e)||function(e){return"subtype-sublayer"===e?.type}(e)}function L(e){let t=e?.type;return"binning"===t||"cluster"===t}function C(e,t){if(!_(e))return;let r=t?.graphic,i="featureReduction"in e?e.featureReduction:null;if(r){if(r.isAggregate){let e=r.origin;return e&&"featureReductionProvider"in e&&i?L(i)?i:null:void 0}return e}return t?.checkFeatureReduction&&i?L(i)?i:null:e}async function A(e,t){let r=i.id?.findServerInfo(e);if(null!=r?.currentVersion)return r.owningSystemUrl||null;let n=e.toLowerCase().indexOf("/rest/services");if(-1===n)return null;let a=`${e.slice(0,n)}/rest/info`,o=null==t?null:t.signal,{data:l}=await(0,s.A)(a,{query:{f:"json"},responseType:"json",signal:o});return l?.owningSystemUrl||null}function M(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"annotation-feature":case"catalog":case"catalog-footprint":case"csv":case"dimension-feature":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"parquet":case"scene":case"sublayer":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function S(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"knowledge-graph-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}function T(e){let t=new n.A;for(let r of e.allLayers.concat(e.allTables))u(r)||p(r)||"annotation-feature"===r.type||"dimension-feature"===r.type||("charts"in r&&t.push(r),"subtype-group"===r.type&&t.push(...r.sublayers));return t}function I(e,t){return null}function D(e){return null}function x(e){return!e||"Feature Service"===e.type&&!e.sourceUrl}function E(e,t){if(!t||!x(e))return;let r=(e.url,null);r&&(e.url=r)}},73133(e,t,r){const i=(0,r(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:"unknown"});r.d(t,["j",0,i])},16215(e,t,r){r.d(t,{S:()=>s});const i=Symbol("BasemapInstance");function s(e){return"object"==typeof e&&!!e&&i in e}r.d(t,["Y",0,i])},79677(e,t,r){r.d(t,{A:()=>c});var i,s=r(32198),n=r(25482),a=r(88930),o=r(91429),l=(r(98623),r(10184)),h=r(36005),u=r(43937);let c=class extends n.o{static{i=this}static get allTime(){return d}static get empty(){return g}static fromArray(e){return new i({start:null==e[0]?e[0]:new Date(e[0]),end:null==e[1]?e[1]:new Date(e[1])})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null==t.end?null:new Date(t.end)}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(e,t){return null==t.start?null:new Date(t.start)}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new i({end:this.end,start:this.start})}equals(e){if(!e)return!1;let t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,i=e.start?.getTime()??e.start,s=e.end?.getTime()??e.end;return t===i&&r===s}expandTo(e,t="system"){if(this.isEmpty||this.isAllTime||"unknown"===e)return this.clone();let r=this.start;r&&=(0,a.lL)(r,new l.A({value:1,unit:e}),t);let s=this.end;if(s){let r=(0,a.lL)(s,new l.A({value:1,unit:e}),t);s=s.getTime()===r.getTime()?r:(0,a.S1)(r,1,e,t)}return new i({start:r,end:s})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return i.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();let t,r,s=this.start?.getTime()??-1/0,n=this.end?.getTime()??1/0,a=e.start?.getTime()??-1/0,o=e.end?.getTime()??1/0;return a>=s&&a<=n?t=a:s>=a&&s<=o&&(t=s),n>=a&&n<=o?r=n:o>=s&&o<=n&&(r=o),null==t||null==r||isNaN(t)||isNaN(r)?i.empty:new i({start:t===-1/0?null:new Date(t),end:r===1/0?null:new Date(r)})}offset(e,t,r="system"){if(this.isEmpty||this.isAllTime||"unknown"===t)return this.clone();let s=new i,{start:n,end:o}=this;return null!=n&&(s.start=(0,a.S1)(n,e,t,r)),null!=o&&(s.end=(0,a.S1)(o,e,t,r)),s}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return d.clone();let t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new i({start:t,end:r})}};(0,s.Cg)([(0,o.MZ)({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"end",void 0),(0,s.Cg)([(0,h.w)("end")],c.prototype,"readEnd",null),(0,s.Cg)([(0,u.K)("end")],c.prototype,"writeEnd",null),(0,s.Cg)([(0,o.MZ)({readOnly:!0,json:{read:!1}})],c.prototype,"isAllTime",null),(0,s.Cg)([(0,o.MZ)({readOnly:!0,json:{read:!1}})],c.prototype,"isEmpty",null),(0,s.Cg)([(0,o.MZ)({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"start",void 0),(0,s.Cg)([(0,h.w)("start")],c.prototype,"readStart",null),(0,s.Cg)([(0,u.K)("start")],c.prototype,"writeStart",null),c=i=(0,s.Cg)([(0,o.$K)("esri.time.TimeExtent")],c);const d=new c,g=new c({start:void 0,end:void 0})},10184(e,t,r){r.d(t,{A:()=>u});var i=r(32198),s=r(69540),n=r(25482),a=r(88930),o=r(91429),l=r(73133),h=r(93223);let u=class extends((0,s.OU)(n.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,a.t)(this.value,this.unit,"milliseconds")}};(0,i.Cg)([(0,h.e)(l.j,{nonNullable:!0})],u.prototype,"unit",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{write:!0},nonNullable:!0})],u.prototype,"value",void 0),u=(0,i.Cg)([(0,o.$K)("esri.time.TimeInterval")],u)},751(e,t,r){r.d(t,{CJ:()=>m});var i=r(4718),s=r(93637),n=r(67124),a=r(77548),o=r(59923);const l=new Set(["bing-maps","imagery","imagery-tile","map-image","open-street-map","tile","unknown","unsupported","vector-tile","web-tile","wcs","wms","wmts"]),h=new Set(["integrated-mesh-3dtiles"]),u=new Set("annotation-feature.catalog.csv.dimension-feature.feature.geo-rss.geojson.group.imagery.imagery-tile.kml.knowledge-graph.map-image.map-notes.media.ogc-feature.oriented-imagery.parquet.route.sketch.stream.subtype-group.tile.unknown.unsupported.vector-tile.video.web-tile.wcs.wfs.wms.wmts".split(".")),c=new Set([...u,"link-chart"]);function d(e,t){if(t.restrictedWebMapWriting){let r=function(e){switch(e.layerContainerType){case"basemap-base-layers":return l;case"basemap-ground-layers":return h;case"operational-layers":return"link-chart"===e.origin?c:u;default:return null}}(t);return null==r||r.has(e.type)&&!(0,a.Ov)(e)}return!0}function g(e,t){"maxScale"in e&&(t.maxScale=(0,n.B)(e.maxScale)??void 0),"minScale"in e&&(t.minScale=(0,n.B)(e.minScale)??void 0)}function m(e,t,r){if(!e.persistenceEnabled)return null;if(!("write"in e)||!e.write)return(0,o.U4)(r,e),null;if((0,a.Ov)(e)&&!e.isTable)t=e.resourceInfo;else if(d(e,r)){let t={};return e.write(t,r)?t:null}return null!=t&&function(e,t){if(function(e,t){if(t)if((0,a.Ov)(e)){let r=(0,s.wc)("featureCollection.layers",t)?.[0]?.layerDefinition;r&&g(e,r)}else"group"!==e.type&&g(e,t)}(e,t),t&&(t.id=e.id,"blendMode"in e&&(t.blendMode=e.blendMode,"normal"===t.blendMode&&delete t.blendMode),t.opacity=(0,n.B)(e.opacity)??void 0,t.title=e.title||"Layer",t.visibility=e.visible,"legendEnabled"in e&&"wmts"!==e.type))if((0,a.Ov)(e)){let r=t.featureCollection;r&&(r.showLegend=e.legendEnabled)}else t.showLegend=e.legendEnabled}(e,t=(0,i.o8)(t)),t}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6553,9229],{56512(e,t,i){function r(e){let t,i,r=[],o=!1;return function(...n){return o&&t===this&&function(e,t){if(e.length!==t.length)return!1;for(let i=0;i<e.length;++i)if(e[i]!==t[i])return!1;return!0}(n,r)||(i=e.apply(this,n),t=this,r=n,o=!0),i}}i.d(t,{B:()=>r})},76553(e,t,i){function r(e){return e&&"getAtOrigin"in e&&"originOf"in e}i.d(t,{H:()=>r})},13069(e,t,i){i.d(t,{AG:()=>l,lk:()=>o,vD:()=>s,yS:()=>n});const r="randomUUID"in crypto;function o(){if(r)return crypto.randomUUID();let e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;let t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function n(){return`{${o().toUpperCase()}}`}function s(){return`{${o()}}`}function l(e){let t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},65806(e,t,i){i.d(t,{g:()=>s});var r=i(51850),o=i(99917),n=i(9762);function s(e,t,i,r){if((0,o.canProjectWithoutEngine)(e.spatialReference,i))return l[0]=e.x,l[1]=e.y,l[2]=e.z??0,(0,n.projectBuffer)(l,e.spatialReference,0,t,i,0);let s=(0,o.tryProject)(e,i,r);return!!s&&(t[0]=s.x,t[1]=s.y,t[2]=s.z??0,!0)}const l=(0,r.vt)()},27993(e,t,i){i.d(t,{F:()=>l});var r=i(99917),o=i(16930),n=i(9762),s=i(65806);function l(e,t,i,o){return!(null==t||null==o||e.length<2)&&((0,r.canProjectWithoutEngine)(t,o)?(0,n.projectBuffer)(e,t,0,i,o,0,1):(a.x=e[0],a.y=e[1],a.z=e[2],a.spatialReference=t,(0,s.g)(a,i,o)))}const a={x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:o.A.WGS84,type:"point"}},80754(e,t,i){i.d(t,{kS:()=>u,kd:()=>a});var r=i(82799),o=i(16930),n=i(60408),s=i(52006);const l={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:o.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:o.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:o.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:o.A.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function u(e,t){if((0,s.Ed)(e))for(let i of function(e){return(0,n.Bi)(e)?e.curveRings:e.curvePaths}(e))for(let e of i){if((0,s.aO)(e)){let[i,r]=e.c;i[0]+=t,r[0]+=t;continue}if((0,s.FG)(e)){let[i,r]=e.a;i[0]+=t,r[0]+=t;continue}if((0,s.n1)(e)){let[i,r,o]=e.b;i[0]+=t,r[0]+=t,o[0]+=t;continue}e[0]+=t}for(let i of function(e){return(0,n.Bi)(e)?e.rings:e.paths}(e))for(let e of i)e[0]+=t;return e}i.d(t,["j7",0,l])},61528(e,t,i){i.r(t);var r=i(32198),o=i(56507),n=i(69540),s=i(49186),l=i(44208),a=i(53966),u=i(25728),p=i(17676),c=i(36708),h=i(91429),d=i(87024),f=i(5443),y=i(16930),g=i(4146),m=i(52136),v=i(18768),S=i(69208),_=i(34287),C=i(8303),M=i(25036),A=i(10873),w=i(58325),R=i(88546),x=i(20655),T=i(24212),E=i(80215),b=i(97159),Z=i(16215),k=i(72772),I=i(98697),G=i(36005);let P=class extends((0,v.b)((0,_.q)((0,C.A)((0,M.j)((0,u.M)((0,S.d)((0,m.p)((0,n.OU)(g.A))))))))){readModifications(e,t,i){this._modificationsSource={url:(0,b.f)(e,i),context:i}}initialize(){this.addHandles([(0,c.on)(()=>this.modifications,"after-changes",()=>{this.modifications=this.modifications,this._modificationsGeneration++},c.OH),(0,c.wB)(()=>this.modifications,()=>this._modificationsGeneration++)])}constructor(e){super(e),this.operationalLayerType="IntegratedMesh3DTilesLayer",this.modifications=null,this._modificationsSource=null,this.spatialReference=R.Zx,this.fullExtent=R.zq,this.esriCrsSpatialReference=null,this.esriCrsFullExtent=null,this.url=null,this.type="integrated-mesh-3dtiles",this.path=null,this.minScale=0,this.maxScale=0,this._rootTilesetJSON=null,this._rootTileset=null,this._key=null,this._session=null,this._rootRequestPromise=null,this.queryElevationCallback=null,this._modificationsGeneration=0,this._simulateGoogleUrl=!1}get supportedSpatialReferences(){return this.initialized&&this.esriCrsSpatialReference?[y.A.WGS84,this.esriCrsSpatialReference]:[y.A.WGS84]}get fullExtents(){return this.initialized&&this.esriCrsFullExtent?[R.zq,this.esriCrsFullExtent]:[R.zq]}set elevationInfo(e){(null==e||"absolute-height"===e.mode)&&this._set("elevationInfo",e),this._validateElevationInfo(e)}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}get rootTilesetJSON(){return this._rootTilesetJSON}get rootTileset(){return this._rootTileset}get key(){return this._key}get session(){return this._session}_findSessionParameter(e){let t=[e];for(;t?.length>0;){let e=t.pop();if(!e)return;for(let[i,r]of Object.entries(e)){if("uri"===i)try{let e=new URL("https://tmp"+r).searchParams.get("session");if(e)return e}catch{}"object"==typeof r&&r&&t.push(r)}}return null}async requestRootAndSession(e){let t=(e,t)=>new s.A("3dtiles-init:"+e,t);return this._rootRequestPromise||=new Promise((i,r)=>{this.url||r(t("url-missing","Layer url missing")),this._key=this.customParameters?this.customParameters.key:null,new Promise((e,i)=>{if(this.replacesTerrain&&!this._key){let r=this.portalItem?.portal||this.parent?.portalItem?.portal||x.A.getDefault();r.signIn().then(()=>{r.g3dTilesEnabled?(0,o.A)(r.restUrl+"/portals/self/modules/g3dtiles",{responseType:"json",query:{f:"json"}}).then(t=>{this._key=t.data.keyString,e()},()=>i(t("g3dtiles-key-error","Error fetching Google 3D Tiles key from portal"))):i(t("g3dTilesEnabled-false","Google 3D Tiles are not enabled on Portal "+r.url))},()=>i(t("sign-in-failed","Error signing in to Portal")))}else e()}).then(()=>{(0,o.A)(this.url,{query:this._key?{key:this._key,token:this.apiKey}:{token:this.apiKey},responseType:"array-buffer",signal:e}).then(e=>{try{this._rootTilesetJSON=JSON.parse((new TextDecoder).decode(e.data))}catch(e){return void r(t("root-parse-failed","Error parsing root tile, details: "+e))}this._rootTilesetJSON?(this._session=this._findSessionParameter(this._rootTilesetJSON),this._rootTileset=e.data,this.fullExtent=(0,R.uB)(this._rootTilesetJSON),(0,R._8)(this._rootTilesetJSON)&&(this.esriCrsFullExtent=(0,R.uB)(this._rootTilesetJSON,!0),this.esriCrsSpatialReference=this.esriCrsFullExtent.spatialReference,this.spatialReference=this.esriCrsSpatialReference),i(),this._rootRequestPromise=null):r(t("root-is-null","Root tile is null."))},e=>{(0,p.QP)(e),r(t("root-load-failed","Error loading root tile")),this._rootRequestPromise=null,a.A.getLogger("IntegratedMesh3DTilesLayer").error("Layer loading failed",e)})},e=>r(e))}),this._rootRequestPromise}_haveWGS84ZModifications(e){for(let t of e)if(!t.geometry?.spatialReference||115700===t.geometry?.spatialReference.vcsWkid&&4326===t.geometry?.spatialReference.wkid)return!0;return!1}async _doLoad(e){let t=null==e?null:e.signal;try{await this.loadFromPortal({supportedTypes:["3DTiles Service"],validateItem:e=>{if(e.typeKeywords?.includes("IntegratedMesh"))return!0;throw new s.A("portal:invalid-layer-item-type","Invalid layer item, expected '${expectedType}' ",{expectedType:"3DTiles Service containing IntegratedMesh"})}},e)}catch(e){(0,p.QP)(e)}if(null!=this._modificationsSource){let t=await w.A.fromUrl(this._modificationsSource.url,this.spatialReference,e,!0);if(this._haveWGS84ZModifications(t)){await(0,k.initialize)();try{let e=(0,I.Ir)(null,t.toArray(),y.A.WGS84),i=(0,k.switchMeshModificationPolygonVCSSync)({modifications:e,inVCS:115700});i.success&&i.modifications&&(0,I.H1)(i.modifications,t)}catch(e){a.A.getLogger(this).error("convert-mesh-modification-z-error","Error when converting:",e)}}this.setAtOrigin("modifications",t,this._modificationsSource.context.origin),this._modificationsSource=null}await this.requestRootAndSession(t)}async beforeSave(){if(null==this._modificationsSource){let{modifications:e}=this;return void(e&&e.length>0&&await(0,k.initialize)())}await this.load().then(()=>{},()=>{})}get memoizedElevationQueryDependencies(){return[this.loadStatus,null!=this.queryElevationCallback,(0,T.M7)(this.elevationInfo),this._modificationsGeneration]}get hasAttributionData(){return!1}_validateElevationInfo(e){let t="Integrated mesh 3d tiles layers";(0,T.XF)(a.A.getLogger(this),(0,T.B)(t,"absolute-height",e)),(0,T.XF)(a.A.getLogger(this),(0,T.tW)(t,e))}get replacesTerrain(){return this.hasGoogleUrl&&this.isUsedAsGroundLayer}get isUsedAsGroundLayer(){return(0,l.A)("enable-feature:im-as-ground")?(0,Z.S)(this.parent)||(0,E.Q)(this.parent):(0,Z.S)(this.parent)}get hasGoogleUrl(){return this._simulateGoogleUrl||!!this.url?.match(/.+\.googleapis.com/)}get test(){}};(0,r.Cg)([(0,h.MZ)({type:["IntegratedMesh3DTilesLayer"]})],P.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,h.MZ)({type:w.A,clonable:e=>e?.clone()??null}),(0,d.P)({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],P.prototype,"modifications",void 0),(0,r.Cg)([(0,h.MZ)({clonable:e=>e?{...e}:null})],P.prototype,"_modificationsSource",void 0),(0,r.Cg)([(0,G.w)(["web-scene","portal-item"],"modifications")],P.prototype,"readModifications",null),(0,r.Cg)([(0,h.MZ)({type:y.A})],P.prototype,"spatialReference",void 0),(0,r.Cg)([(0,h.MZ)({type:f.A})],P.prototype,"fullExtent",void 0),(0,r.Cg)([(0,h.MZ)({readOnly:!0})],P.prototype,"supportedSpatialReferences",null),(0,r.Cg)([(0,h.MZ)({type:[f.A]})],P.prototype,"fullExtents",null),(0,r.Cg)([(0,h.MZ)(A.Yj)],P.prototype,"elevationInfo",null),(0,r.Cg)([(0,h.MZ)({type:["show","hide"]})],P.prototype,"listMode",void 0),(0,r.Cg)([(0,h.MZ)(A.OZ)],P.prototype,"url",void 0),(0,r.Cg)([(0,h.MZ)({readOnly:!0})],P.prototype,"type",void 0),(0,r.Cg)([(0,h.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],P.prototype,"path",void 0),(0,r.Cg)([(0,h.MZ)({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:!1,write:!1}}}})],P.prototype,"minScale",void 0),(0,r.Cg)([(0,h.MZ)({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:!1,write:!1}}}})],P.prototype,"maxScale",void 0),(0,r.Cg)([(0,h.MZ)()],P.prototype,"queryElevationCallback",void 0),(0,r.Cg)([(0,h.MZ)()],P.prototype,"_modificationsGeneration",void 0),(0,r.Cg)([(0,h.MZ)()],P.prototype,"memoizedElevationQueryDependencies",null),(0,r.Cg)([(0,h.MZ)({readOnly:!0})],P.prototype,"hasAttributionData",null),(0,r.Cg)([(0,h.MZ)()],P.prototype,"replacesTerrain",null),(0,r.Cg)([(0,h.MZ)()],P.prototype,"isUsedAsGroundLayer",null),(0,r.Cg)([(0,h.MZ)()],P.prototype,"hasGoogleUrl",null),(0,r.Cg)([(0,h.MZ)()],P.prototype,"_simulateGoogleUrl",void 0),P=(0,r.Cg)([(0,h.$K)("esri.layers.IntegratedMesh3DTilesLayer")],P);const O=P;i.d(t,["default",0,O])},52136(e,t,i){var r=i(32198),o=i(91429);i.d(t,["p",0,e=>{let t=e,i=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null==e?(this._clearOverride("apiKey"),this.clear("apiKey","user")):this._override("apiKey",e)}};return(0,r.Cg)([(0,o.MZ)({type:String})],i.prototype,"apiKey",null),i=(0,r.Cg)([(0,o.$K)("esri.layers.mixins.APIKeyMixin")],i),i}])},24212(e,t,i){i.d(t,{$7:()=>a,B:()=>l,M7:()=>c,XF:()=>p,tW:()=>u,w7:()=>s});var r=i(56512),o=i(86211),n=i(16271);function s(e,t){return function(e,t){return t?.mode?t.mode:function(e){return e?h:d}(e).mode}(null==e||(e.hasZ??!1),t)}function l(e,t,i){return i&&i.mode!==t?`${e} only support ${t} elevation mode`:null}function a(e,t,i){return i?.mode===t?`${e} do not support ${t} elevation mode`:null}function u(e,t){return null!=t?.featureExpressionInfo&&"0"!==t.featureExpressionInfo.expression?`${e} do not support featureExpressionInfo`:null}function p(e,t){t&&e.warn(".elevationInfo=",t)}function c(e){return(e?.offset??0)*(0,n.Ao)(e?.unit)}(0,r.B)((e,t,i)=>{if(!e||"decimal-degrees"===t)return 0;let r="unknown"!==t&&t?t:"meters",n=(0,o.mq)(i);return n?(0,o.oU)(e,r,n):0});const h={mode:"absolute-height",offset:0},d={mode:"on-the-ground",offset:null}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[118],{83349(e,t,n){n.d(t,{e:()=>o});const r=new Set;let i=!1;function o(e,t,n=2){let i=t&&t.length,o=i?t[0]*n:e.length;r.size&&r.clear();let l=s(e,0,o,n,!0),u=[];if(!l||l.next===l.prev)return u;let c=0,h=0,f=0;if(i&&(l=g(e,t,l,n)),e.length>80*n){c=e[0],h=e[1];let t=c,r=h;for(let i=n;i<o;i+=n){let n=e[i],o=e[i+1];n<c&&(c=n),o<h&&(h=o),n>t&&(t=n),o>r&&(r=o)}f=Math.max(t-c,r-h),f=0===f?0:32767/f}return a(l,u,c,h,f),u}function s(e,t,n,r,i){let o=null;if(i===k(e,t,n,r)>0)for(let i=t;i<n;i+=r)o=D(i/r|0,e[i],e[i+1],o);else for(let i=n-r;i>=t;i-=r)o=D(i/r|0,e[i],e[i+1],o);return o&&P(o,o.next)&&($(o),o=o.next),o}function l(e,t=e){let n,o=t===e,s=e;do{n=!1,s===s.next||0!==r.size&&r.has(s)||!P(s,s.next)&&0!==O(s.prev,s,s.next)?(o||s!==t)&&(s=s.next,n=!o):((o||s===t)&&(t=s.prev),i=!0,$(s),s=s.prev,n=!0)}while(n||s!==t);return t}function a(e,t,n,r,o){o&&function(e,t,n,r){let i=e,o=0;do{i.z=I(i.x,i.y,t,n,r),T[o++]=i,i=i.next}while(i!==e);!function(e){if(e<=32)for(let t=1;t<e;t++){let e=T[t],n=e.z,r=t-1;for(;r>=0&&T[r].z>n;)T[r+1]=T[r],r--;T[r+1]=e}else{S.length<e&&(S=new Uint32Array(e),E=new Uint32Array(e),R=Array(e));for(let t=0;t<e;t++)S[t]=T[t].z;U(e,T,S,R,E,0),U(e,R,E,T,S,8),U(e,T,S,R,E,16),U(e,R,E,T,S,24)}}(o);let s=null;for(let e=0;e<o;e++){let t=T[e];t.prevZ=s,s&&(s.nextZ=t),s=t}s.nextZ=null,T.fill(null,0,o),R.fill(null,0,o)}(e,n,r,o);let s=e,a=!1;for(;e.prev!==e.next;){let p=e.prev,g=e.next;if(O(p,e,g)<0&&(o?c(e,n,r,o):u(e)))t.push(p.i,e.i,g.i),$(e),e=g,s=g;else if((e=g)===s){if(i=!1,e=l(e),i){s=e;continue}if(!a){s=e=h(e,t),a=!0;continue}f(e,t,n,r,o);break}}}function u(e){let t=e.prev,n=e,r=e.next,i=t.x,o=n.x,s=r.x,l=t.y,a=n.y,u=r.y,c=Math.min(i,o,s),h=Math.min(l,a,u),f=Math.max(i,o,s),p=Math.max(l,a,u),g=r.next;for(;g!==t;){if(g.x>=c&&g.x<=f&&g.y>=h&&g.y<=p&&(i!==g.x||l!==g.y)&&_(i,l,o,a,s,u,g.x,g.y)&&O(g.prev,g,g.next)>=0)return!1;g=g.next}return!0}function c(e,t,n,r){let i=e.prev,o=e,s=e.next,l=i.x,a=o.x,u=s.x,c=i.y,h=o.y,f=s.y,p=Math.min(l,a,u),g=Math.min(c,h,f),d=Math.max(l,a,u),y=Math.max(c,h,f),m=I(p,g,t,n,r),x=I(d,y,t,n,r),v=e.prevZ;for(;v&&v.z>=m;){if(v.x>=p&&v.x<=d&&v.y>=g&&v.y<=y&&v!==s&&(l!==v.x||c!==v.y)&&_(l,c,a,h,u,f,v.x,v.y)&&O(v.prev,v,v.next)>=0)return!1;v=v.prevZ}let w=e.nextZ;for(;w&&w.z<=x;){if(w.x>=p&&w.x<=d&&w.y>=g&&w.y<=y&&w!==s&&(l!==w.x||c!==w.y)&&_(l,c,a,h,u,f,w.x,w.y)&&O(w.prev,w,w.next)>=0)return!1;w=w.nextZ}return!0}function h(e,t){let n=e,r=!1;do{let i=n.prev,o=n.next.next;j(i,n,n.next,o,!1)&&B(i,o)&&B(o,i)&&(t.push(i.i,n.i,o.i),$(n),$(n.next),n=e=o,r=!0),n=n.next}while(n!==e);return r?l(n):n}function f(e,t,n,r,i){let o=e;do{let e=o.next.next;for(;e!==o.prev;){if(o.i!==e.i&&N(o,e)){let s=z(o,e);return o=l(o,o.next),s=l(s,s.next),a(o,t,n,r,i),void a(s,t,n,r,i)}e=e.next}o=o.next}while(o!==e)}let p=!1;function g(e,t,n,i){let o=[];for(let n=0,l=t.length;n<l;n++){let a=s(e,t[n]*i,n<l-1?t[n+1]*i:e.length,i,!1);a===a.next&&r.add(a),o.push(Z(a))}o.sort(d),function(e,t){let n=Math.ceil((e+2*t)/16)+t+2;m.length<4*n&&(m=new Float64Array(4*n)),x=0}(e.length/i,t.length),A(n,n),p=!0;for(let e=0;e<o.length;e++)n=y(o[e],n);return p=!1,l(n)}function d(e,t){return e.x-t.x||e.y-t.y||(e.next.y-e.y)/(e.next.x-e.x)-(t.next.y-t.y)/(t.next.x-t.x)}function y(e,t){let n=function(e,t){let n,r=t,i=e.x,o=e.y,s=-1/0;if(P(e,r))return r;for(let t=0,l=0;t<x;t++,l+=4){if(o<m[l+1]||o>m[l+3]||m[l]>i||m[l+2]<=s)continue;let a=b(t);r=M(t);do{if(r.prev.next===r){if(P(e,r.next))return r.next;if(o<=r.y&&o>=r.next.y&&r.next.y!==r.y){let e=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(e<=i&&e>s&&(s=e,n=r.x<r.next.x?r:r.next,e===i))return n}}r=r.next}while(r!==a)}if(!n)return null;let l=n.x,a=n.y,u=Math.min(o,a),c=Math.max(o,a),h=1/0;for(let t=0,f=0;t<x;t++,f+=4){if(m[f+2]<l||m[f]>i||m[f+3]<u||m[f+1]>c)continue;let p=b(t);r=M(t);do{if(r.prev.next===r&&i>=r.x&&r.x>=l&&i!==r.x&&_(o<a?i:s,o,l,a,o<a?s:i,o,r.x,r.y)){let t=Math.abs(o-r.y)/(i-r.x);(B(r,e)||r.y===o&&r.next.y===o&&r.next.x>i)&&(t<h||t===h&&(r.x>n.x||r.x===n.x&&C(n,r)))&&(n=r,h=t)}r=r.next}while(r!==p)}return n}(e,t);if(!n)return t;let r=z(n,e);return A(n,r.next.next),l(r,r.next),l(n,n.next)}let m=new Float64Array,x=0;const v=[],w=[];function A(e,t){let n=e;do{let e=x++;v[e]=n;let r=1/0,i=1/0,o=-1/0,s=-1/0,l=0;do{let t=n.next;n.z=e,n.x<r&&(r=n.x),n.x>o&&(o=n.x),n.y<i&&(i=n.y),n.y>s&&(s=n.y),t.x<r&&(r=t.x),t.x>o&&(o=t.x),t.y<i&&(i=t.y),t.y>s&&(s=t.y),n=t}while(++l<16&&n!==t);w[e]=n;let a=4*e;m[a]=r,m[a+1]=i,m[a+2]=o,m[a+3]=s}while(n!==t)}function b(e){let t=w[e];for(;t.prev.next!==t;)t=t.next;return w[e]=t,t}function M(e){let t=v[e];for(;t.prev.next!==t;)t=t.next;return v[e]=t,t}function C(e,t){return O(e.prev,e,t.prev)<0&&O(t.next,e,e.next)<0}const T=[];let R=[],S=new Uint32Array,E=new Uint32Array;const L=new Uint32Array(256);function U(e,t,n,r,i,o){L.fill(0);for(let t=0;t<e;t++)L[n[t]>>>o&255]++;let s=0;for(let e=0;e<256;e++){let t=L[e];L[e]=s,s+=t}for(let s=0;s<e;s++){let e=n[s],l=L[e>>>o&255]++;r[l]=t[s],i[l]=e}}function I(e,t,n,r,i){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-n)*i|0)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-r)*i|0)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function Z(e){let t=e,n=e;do{(t.x<n.x||t.x===n.x&&t.y<n.y)&&(n=t),t=t.next}while(t!==e);return n}function _(e,t,n,r,i,o,s,l){return(i-s)*(t-l)>=(e-s)*(o-l)&&(e-s)*(r-l)>=(n-s)*(t-l)&&(n-s)*(o-l)>=(i-s)*(r-l)}function N(e,t){let n=P(e,t)&&O(e.prev,e,e.next)>0&&O(t.prev,t,t.next)>0;return e.next.i!==t.i&&(n||B(e,t)&&B(t,e)&&(0!==O(e.prev,e,t.prev)||0!==O(e,t.prev,t)))&&!function(e,t){let n=Math.min(e.x,t.x),r=Math.max(e.x,t.x),i=Math.min(e.y,t.y),o=Math.max(e.y,t.y),s=e;do{let l=s.next;if(s.x>r&&l.x>r||s.x<n&&l.x<n||s.y>o&&l.y>o||s.y<i&&l.y<i)s=l;else{if(s.i!==e.i&&l.i!==e.i&&s.i!==t.i&&l.i!==t.i&&j(s,l,e,t))return!0;s=l}}while(s!==e);return!1}(e,t)&&(n||function(e,t){let n=e,r=!1,i=(e.x+t.x)/2,o=(e.y+t.y)/2;do{let e=n.next;n.y>o!=e.y>o&&i<(e.x-n.x)*(o-n.y)/(e.y-n.y)+n.x&&(r=!r),n=e}while(n!==e);return r}(e,t))}function O(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function P(e,t){return e.x===t.x&&e.y===t.y}function j(e,t,n,r,i=!0){let o=O(e,t,n),s=O(e,t,r),l=O(n,r,e),a=O(n,r,t);return(o>0&&s<0||o<0&&s>0)&&(l>0&&a<0||l<0&&a>0)||!!i&&!!(0===o&&F(e,n,t)||0===s&&F(e,r,t)||0===l&&F(n,e,r)||0===a&&F(n,t,r))}function F(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function B(e,t){return O(e.prev,e,e.next)<0?O(e,t,e.next)>=0&&O(e,e.prev,t)>=0:O(e,t,e.prev)<0||O(e,e.next,t)<0}function z(e,t){let n=H(e.i,e.x,e.y),r=H(t.i,t.x,t.y),i=e.next,o=t.prev;return e.next=t,t.prev=e,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function D(e,t,n,r){let i=H(e,t,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function $(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ),p&&function(e,t){let n=4*e.z;t.x<m[n]&&(m[n]=t.x),t.y<m[n+1]&&(m[n+1]=t.y),t.x>m[n+2]&&(m[n+2]=t.x),t.y>m[n+3]&&(m[n+3]=t.y)}(e.prev,e.next)}function H(e,t,n){return{i:e,x:t,y:n,prev:null,next:null,z:0,prevZ:null,nextZ:null}}function k(e,t,n,r){let i=0;for(let o=t,s=n-r;o<n;o+=r)i+=(e[s]-e[o])*(e[o+1]+e[s+1]),s=o;return i}let G,V,Y,K,W,q=0,J=0;function Q(e,t,n,r,i,o){return(n-e)*(o-t)-(r-t)*(i-e)}function X(e,t,n,r,i,o,s,l){let a=e-s,u=t-l,c=n-s,h=r-l,f=i-s,p=o-l,g=a*a+u*u,d=c*c+h*h,y=f*f+p*p,m=g+d+y;return a*(h*y-d*p)-u*(c*y-d*f)+g*(c*p-h*f)<=1e-13*m*m}function ee(e){return e-e%3+(e+1)%3}o.deviation=function(e,t,n,r){let i=t&&t.length,o=i?t[0]*n:e.length,s=Math.abs(k(e,0,o,n));if(i)for(let r=0,i=t.length;r<i;r++){let o=t[r]*n,l=r<i-1?t[r+1]*n:e.length;s-=Math.abs(k(e,o,l,n))}let l=0;for(let t=0;t<r.length;t+=3){let i=r[t]*n,o=r[t+1]*n,s=r[t+2]*n;l+=Math.abs((e[i]-e[s])*(e[o+1]-e[i+1])-(e[i]-e[o])*(e[s+1]-e[i+1]))}return 0===s&&0===l?0:Math.abs((l-s)/s)},o.flatten=function(e){let t=[],n=[],r=e[0][0].length,i=0,o=0;for(let s of e){for(let e of s)for(let n=0;n<r;n++)t.push(e[n]);o&&(i+=o,n.push(i)),o=s.length}return{vertices:t,holes:n,dimensions:r}},o.refine=function(e,t,n=2){let r=e,i=r.length;if(i<6)return;(function(e){(!G||G.length<e)&&(G=new Int32Array(e)),(!V||V.length<e)&&(V=new Int32Array(e)),(!W||W.length<e)&&(W=new Uint8Array(e));let t=1;for(;t<4*e;)t<<=1;(!Y||Y.length<t)&&(Y=new Int32Array(t),K=new Uint32Array(t)),q=t-1})(i),J++,V.fill(-1,0,i);let o=0;for(let e=0;e<i;e++){let t=r[e],n=r[ee(e)],i=t<n?t:n,s=t<n?n:t,l=(Math.imul(i,2654435761)^Math.imul(s,2246822507))&q;for(;K[l]===J;){let t=Y[l];if(-1!==t){let n=r[t],a=r[ee(t)];if(n===i&&a===s||n===s&&a===i){V[e]=t,V[t]=e,Y[l]=-1,W[t]=1,G[o++]=t;break}}l=l+1&q}K[l]!==J&&(Y[l]=e,K[l]=J)}for(;o>0;){let e=G[--o];W[e]=0;let i=V[e];if(-1===i)continue;let s=e-e%3,l=i-i%3,a=s+(e+2)%3,u=s+(e+1)%3,c=l+(i+2)%3,h=l+(i+1)%3,f=r[a],p=r[e],g=r[u],d=r[c],y=t[f*n],m=t[f*n+1],x=t[p*n],v=t[p*n+1],w=t[g*n],A=t[g*n+1],b=t[d*n],M=t[d*n+1];if(!X(y,m,x,v,w,A,b,M)&&Q(y,m,x,v,b,M)>0&&Q(y,m,b,M,w,A)>0){r[e]=d,r[i]=f;let t=V[c],n=V[a];V[e]=t,-1!==t&&(V[t]=e),V[i]=n,-1!==n&&(V[n]=i),V[a]=c,V[c]=a,-1!==t&&0===W[e]&&(W[e]=1,G[o++]=e),-1!==n&&0===W[i]&&(W[i]=1,G[o++]=i),-1!==V[u]&&0===W[u]&&(W[u]=1,G[o++]=u),-1!==V[h]&&0===W[h]&&(W[h]=1,G[o++]=h)}}}},21287(e,t,n){n.d(t,{M5:()=>h,eV:()=>c});var r=n(56507),i=n(49186),o=n(17676),s=n(84952),l=n(26306);let a=null,u=!0;function c(e,t,n,r){if(!t||!n)throw Error("Cannot construct image data without dimensions");if(u)try{return new ImageData(e,t,n)}catch{u=!1}let i=function(e,t,n){return n||=(a||(a=document.createElement("canvas"),a.width=1,a.height=1),a),n.getContext("2d").createImageData(e,t)}(t,n,r);return i.data.set(e,0),i}async function h(e,t){let{arrayBuffer:a,mediaType:u}=await async function(e,t){let n=(0,s.r$)(e);if(n?.isBase64)return{arrayBuffer:(0,l.M)(n.data),mediaType:n.mediaType};let i=await(0,r.A)(e,{responseType:"array-buffer",...t});return{arrayBuffer:i.data,mediaType:i.getHeader?.("Content-Type")??""}}(e,t),c="image/png"===u;if("image/gif"===u){let{isAnimatedGIF:e,parseGif:r}=await n.e(820).then(()=>n(10820));if(e(a))return r(a,t)}if(c){let{isAnimatedPNG:e,parseApng:r}=await n.e(2390).then(()=>n(22390));if(e(a))return r(a,t)}return async function(e,t){let n=window.URL.createObjectURL(e);try{let{data:e}=await(0,r.A)(n,{...t,responseType:"image"});return e}catch(e){throw(0,o.zf)(e)?e:new i.A("invalid-image",`Could not fetch requested image at ${n}`)}finally{window.URL.revokeObjectURL(n)}}(new Blob([a],{type:u}),t)}},83300(e,t,n){n.r(t),n.d(t,{default:()=>Ee});var r=n(32198),i=n(69540),o=n(92474),s=n(53966),l=n(61893),a=n(17676),u=n(36708),c=n(91429),h=n(51850),f=n(91075),p=n(86738),g=n(39829),d=n(70328),y=n(24770),m=n(16939),x=n(49186);const v="Expected location to be a Point instance";class w extends x.A{constructor(){super("invalid-input:location",v)}}var A=n(95696),b=n(18251),M=n(73836),C=n(1193),T=n(27615),R=n(35522),S=n(65806);function E(e,t){switch(e.type){case"georeferenced":return t.isGeographic;case"local":return t.isGeographic||t.isWebMercator}}var L=n(22141),U=n(72258);const I=()=>s.A.getLogger("esri.geometry.support.meshUtils.centerAt");const Z=(0,h.vt)(),_=(0,h.vt)(),N=(0,h.vt)();var O=n(9093),P=n(5443),j=n(99917),F=n(98764),B=n(48353),z=n(9762),D=n(4197),$=n(73354);const H=(0,O.vt)(),k=(0,D.jh)(24);var G=n(84952);function V(e){let t=(0,G.nM)(e.url);return n=>{let r=(0,G.V1)(n,t,t),i=r?r.replace(/^ *\.\//,""):null;return(i?e.files.get(i):null)??n}}function Y(e){return ee.fromBlob(e,te(e.name,e.type))}const K=/^model\/gltf\+json$/,W=/^model\/gltf-binary$/,q=/\.gltf$/i,J=/\.glb$/i;function Q({mimeType:e,source:t,name:n}){return K.test(e)||q.test(n)?{url:t.url,type:"gltf"}:W.test(e)||J.test(n)?{url:t.url,type:"glb"}:null}function X(e){let t=new Map,n=null,r=null;for(let i of e){let{source:e,name:o}=i;n??=Q(i),"ESRI3DO_NORM.glb"===o&&(r=Q(i)),t.set(o,e.url),e.files.forEach((e,n)=>t.set(n,e))}let i=r??n;if(null==i)throw new x.A("mesh-load-external:missing-files","Missing files to load external mesh source");return new ee(i.url,()=>e.forEach(({source:e})=>e.dispose()),t,i.type)}class ee{constructor(e,t=()=>{},n=new Map,r){this.url=e,this.dispose=t,this.files=n,this.type=r}static fromBlob(e,t){let n=URL.createObjectURL(e);return new ee(n,()=>URL.revokeObjectURL(n),void 0,t)}}function te(e,t){return K.test(t)||q.test(e)?"gltf":W.test(t)||q.test(e)?"glb":void 0}var ne=n(66895),re=n(29461),ie=n(15070),oe=n(77690),se=n(29242),le=n(58083),ae=n(67026),ue=n(82534);const ce=()=>s.A.getLogger("esri.geometry.support.meshUtils.rotate");function he(e,t,n,r=h.uY){if(null!=e){(0,le.$0)(de,(0,y.$I)(t),(0,y.yo)(t));for(let t=0;t<e.length;t+=n){for(let n=0;n<3;n++)fe[n]=e[t+n]-r[n];(0,R.Z0)(fe,fe,de);for(let n=0;n<3;n++)e[t+n]=fe[n]+r[n]}}}const fe=(0,h.vt)(),pe=(0,O.vt)(),ge=(0,y.vt)(),de=(0,O.vt)(),ye=(0,se.vt)(),me=(0,h.vt)(),xe=(0,ue.vt)(),ve=()=>s.A.getLogger("esri.geometry.support.meshUtils.scale");function we(e,t,n=h.uY){if(e)for(let r=0;r<e.length;r+=3){for(let t=0;t<3;t++)Ae[t]=e[r+t]-n[t];(0,R.hs)(Ae,Ae,t);for(let t=0;t<3;t++)e[r+t]=Ae[t]+n[t]}}const Ae=(0,h.vt)(),be=(0,h.vt)(),Me=(0,O.vt)(),Ce=(0,h.vt)();var Te,Re=n(41618);const Se={base:null,key:"type",defaultKeyValue:"georeferenced",typeMap:{georeferenced:A.A,local:b.A}};let Ee=Te=class extends((0,i.OU)((0,o.WV)((0,l.g)(f.A)))){constructor(e){super(e),this.components=null,this.vertexSpace=new A.A,this.transform=null,this.metadata=new re.O,this.hasZ=!0,this.hasM=!1,this.vertexAttributes=new C.default,this.type="mesh"}initialize(){(0===this.metadata.externalSources.length||this.vertexAttributes.position.length)&&(this.loadStatus="loaded"),this.when(()=>{this.addHandles((0,u.wB)(()=>({vertexAttributes:this.vertexAttributes,components:this.components?.map(e=>e.clone())}),()=>this._clearSources(),{once:!0,sync:!0}))}).catch(()=>{})}get hasExtent(){return this.loaded?this.vertexAttributes.position.length>0&&(!this.components||this.components.length>0):null!=this.metadata.displaySource?.extent}get _transformedExtent(){let{spatialReference:e,vertexSpace:t}=this,n=this;return function(e){let{spatialReference:t,vertexSpace:n,untransformedBounds:r}=e,i=(0,d.gE)(r,k);if((0,T.Hq)(n)&&e.transform&&(0,$.t)(i,i,e.transform.localMatrix),"georeferenced"===n.type){let e=n.origin;return e&&(0,$.a)(i,i,e),(0,d.w1)((0,d.vY)(i),t)}let o=(0,F.lO)(t),s=n.origin;if(!(0,j.canProjectWithoutEngine)(o,t)){let[e,n,r]=s;return new P.A({xmin:e,ymin:n,zmin:r,xmax:e,ymax:n,zmax:r,spatialReference:t})}return(0,B.l)(t,s,H,o),(0,$.t)(i,i,H),(0,z.projectBuffer)(i,o,0,i,t,0),(0,d.w1)((0,d.vY)(i),t)}({get transform(){return n.transform},vertexSpace:t,spatialReference:e,untransformedBounds:this._untransformedBounds})}get _untransformedBounds(){let{vertexAttributes:{position:e},components:t}=this;return 0===e.length||0===t?.length?(0,d.vt)(d.v_):(0,d.vY)(e)}get origin(){let e=(0,T.MW)(this.vertexSpace,this.spatialReference);if(null!=e)return e;let{center:t,zmin:n}=this._transformedExtent;return new p.A({x:t.x,y:t.y,z:n,spatialReference:this.spatialReference})}get extent(){return this.loaded||null==this.metadata?.displaySource?.extent?this._transformedExtent:this.metadata.displaySource.extent.clone()}addComponent(e){this._checkIfLoaded("addComponent()")&&(this.components||=[],this.components.push(m.default.from(e)),this.notifyChange("components"))}removeComponent(e){if(this._checkIfLoaded("removeComponent()")){if(this.components){let t=this.components.indexOf(e);if(-1!==t)return this.components.splice(t,1),void this.notifyChange("components")}s.A.getLogger(this).error("removeComponent()","Provided component is not part of the list of components")}}rotate(e,t,n,r){return(0,y.AU)(e,t,n,Le),function(e,t,n){if(!e.vertexAttributes?.position||0===t[3])return;let{spatialReference:r,vertexSpace:i}=e,o=n?.origin??e.origin;(0,T.CK)(e)?function(e,t,n){e.transform??=new M.A;let{vertexSpace:r,transform:i,spatialReference:o}=e,[s,l,a]=r.origin,u=new p.A({x:s,y:l,z:a,spatialReference:o}),c=fe;if(u.equals(n))(0,R.hZ)(c,0,0,0);else if(!(0,U.p5)(c,n,e))return void(0,L.CN)(ce(),n.spatialReference,o,L.JP);(0,ae.x8)(xe,(0,y.yo)(t),(0,y.$I)(t));let f=(0,le.O7)(pe,xe,h.uY,h.Un,c),{localMatrix:g}=i,d=(0,le.lw)(pe,f,g);i.scale=(0,le.X_)((0,h.vt)(),d),(0,le.hs)(d,d,(0,R.DI)(fe,i.scale));let m=i.rotationAxis;i.rotation=(0,y.ui)(d),0===i.rotationAngle&&(i.rotationAxis=m),i.translation=(0,le.sC)((0,h.vt)(),d)}(e,t,o):E(i,r)?function(e,t,n){let r=e.spatialReference,i=(0,F.lO)(r),o=me;if(!(0,S.g)(n,o,i)&&((0,L.CN)(ce(),n.spatialReference,i,"Falling back to mesh origin"),!(0,S.g)(e.origin,o,i)))return void(0,L.CN)(ce(),e.origin.spatialReference,i);let s=e.vertexAttributes.position,l=e.vertexAttributes.normal,a=e.vertexAttributes.tangent,u=new Float64Array(s.length),c=null==l?null:new Float32Array(l.length),h=null==a?null:new Float32Array(a.length);(0,B.l)(i,o,de,i),(0,oe.z0)(ye,de);let f=ge;(0,R.ei)((0,y.yo)(ge),(0,y.yo)(t),ye),f[3]=t[3],!(0,L.gr)(s,r,u,i)||null!=l&&null!=c&&!(0,L.X4)(l,s,r,u,i,c)||null!=a&&null!=h&&!(0,L.xA)(a,s,r,u,i,h)?(0,L.CN)(ce(),r,i):(he(u,f,3,o),!(0,L.$5)(u,i,s,r)||null!=l&&null!=c&&(he(c,f,3),!(0,L.si)(c,s,r,u,i,l))||null!=a&&null!=h&&(he(h,f,4),!(0,L.Mv)(h,s,r,u,i,a))?(0,L.CN)(ce(),i,r):e.vertexAttributesChanged())}(e,t,o):function(e,t,n){let r=me;if(!(0,S.g)(n,r,e.spatialReference)){let t=e.origin;return r[0]=t.x,r[1]=t.y,r[2]=t.z,void(0,L.CN)(ce(),n.spatialReference,e.spatialReference,L.JP)}he(e.vertexAttributes.position,t,3,r),he(e.vertexAttributes.normal,t,3),he(e.vertexAttributes.tangent,t,4),e.vertexAttributesChanged()}(e,t,o)}(this,Le,r),this}offset(e,t,n){if(!this._checkIfLoaded("offset()"))return this;let{vertexSpace:r,vertexAttributes:i}=this,o=i?.position;if(!o)return this;if((0,T.Hq)(r)){let[i,o,s]=r.origin;r.origin=(0,h.fA)(i+e,o+t,s+n)}else{for(let r=0;r<o.length;r+=3)o[r]+=e,o[r+1]+=t,o[r+2]+=n;this.vertexAttributesChanged()}return this}scale(e,t){return this._checkIfLoaded("scale()")&&function(e,t,n){if(!e.vertexAttributes?.position)return;let{vertexSpace:r,spatialReference:i}=e,o=n?.origin??e.origin;(0,T.CK)(e)?function(e,t,n){e.transform??=new M.A;let{vertexSpace:r,transform:i,spatialReference:o}=e,[s,l,a]=r.origin,u=new p.A({x:s,y:l,z:a,spatialReference:o}),c=Ae;if(u.equals(n))(0,R.hZ)(c,0,0,0);else if(!(0,U.p5)(c,n,e))return void(0,L.CN)(ve(),n.spatialReference,o,L.JP);let f=(0,R.hZ)(be,t,t,t),g=(0,le.O7)(Me,ue.zK,h.uY,f,c),{localMatrix:d}=i,m=(0,le.lw)(Me,g,d);i.scale=(0,le.X_)((0,h.vt)(),m),(0,le.hs)(m,m,(0,R.DI)(Ae,i.scale));let x=i.rotationAxis;i.rotation=(0,y.ui)(m),0===i.rotationAngle&&(i.rotationAxis=x),i.translation=(0,le.sC)((0,h.vt)(),m)}(e,t,o):E(r,i)?function(e,t,n){let r=e.spatialReference,i=(0,F.lO)(r),o=Ce;if(!(0,S.g)(n,o,i)&&((0,L.CN)(ve(),n.spatialReference,i,"Falling back to mesh origin"),!(0,S.g)(e.origin,o,i)))return void(0,L.CN)(ve(),e.origin.spatialReference,i);let s=e.vertexAttributes.position,l=e.vertexAttributes.normal,a=e.vertexAttributes.tangent,u=new Float64Array(s.length),c=null==l?null:new Float32Array(l.length),h=null==a?null:new Float32Array(a.length);!(0,L.gr)(s,r,u,i)||null!=l&&null!=c&&!(0,L.X4)(l,s,r,u,i,c)||null!=a&&null!=h&&!(0,L.xA)(a,s,r,u,i,h)?(0,L.CN)(ve(),r,i):(we(u,t,o),!(0,L.$5)(u,i,s,r)||null!=l&&null!=c&&!(0,L.si)(c,s,r,u,i,l)||null!=a&&null!=h&&!(0,L.Mv)(h,s,r,u,i,a)?(0,L.CN)(ve(),i,r):e.vertexAttributesChanged())}(e,t,o):function(e,t,n){let r=Ce;if(!(0,S.g)(n,r,e.spatialReference)){let t=e.origin;return r[0]=t.x,r[1]=t.y,r[2]=t.z,void(0,L.CN)(ve(),n.spatialReference,e.spatialReference,L.JP)}we(e.vertexAttributes.position,t,r),e.vertexAttributesChanged()}(e,t,o)}(this,e,t),this}centerAt(e,t){return this._checkIfLoaded("centerAt()")&&function(e,t,n){if(!e.vertexAttributes?.position)return;let{vertexSpace:r}=e,i=n?.origin??e.origin;(0,T.Hq)(r)?function(e,t,n){let{vertexSpace:r}=e;if(!(0,T.Hq)(r))return;let i=_,o=Z;if(!(0,S.g)(t,o,e.spatialReference))return void(0,L.CN)(I(),t.spatialReference,e.spatialReference,L.JP);if(!(0,S.g)(n,i,e.spatialReference))return void(0,L.CN)(I(),n.spatialReference,e.spatialReference,L.JP);let s=(0,R.Re)(N,o,i);r.origin=(0,R.WQ)((0,h.vt)(),r.origin,s)}(e,t,i):E(r,i.spatialReference)?function(e,t,n){let r=(0,h.fA)(n.x,n.y,n.z??0),i=(0,U.UR)(e,new b.A({origin:r}));if(!i)return;let o=(0,h.fA)(t.x,t.y,t.z??0),s=(0,U.UR)({vertexAttributes:i,spatialReference:e.spatialReference,vertexSpace:new b.A({origin:o})},A.A.absolute);if(!s)return;let{position:l,normal:a,tangent:u}=s;e.vertexAttributes.position=l,e.vertexAttributes.normal=a,e.vertexAttributes.tangent=u,e.vertexAttributesChanged()}(e,t,i):function(e,t,n){let r=_,i=Z;if((0,S.g)(t,i,e.spatialReference)){if(!(0,S.g)(n,r,e.spatialReference)){let t=e.origin;return r[0]=t.x,r[1]=t.y,r[2]=t.z,void(0,L.CN)(I(),n.spatialReference,e.spatialReference,L.JP)}(function(e,t,n){if(e)for(let r=0;r<e.length;r+=3)for(let i=0;i<3;i++)e[r+i]+=t[i]-n[i]})(e.vertexAttributes.position,i,r),e.vertexAttributesChanged()}else(0,L.CN)(I(),t.spatialReference,e.spatialReference,L.JP)}(e,t,i)}(this,e,t),this}load(e){let{metadata:{displaySource:t}}=this;return t&&this.addResolvingPromise(async function(e,t,r){switch(t.source.type){case"client":case"service":return async function(e,t,r){let{source:i}=t,{loadGLTFMesh:o}=await(0,a.qr)(n.e(5841).then(()=>n(35841)),r),s=await async function(e,t){switch(e.type){case"client":return Array.isArray(e.files)?function(e){if(!e.length)throw new x.A("mesh-load-external:missing-assets","There must be at least one file to load");return X(e.map(e=>({name:e.name,mimeType:e.type,source:Y(e)})))}(e.files):Y(e.files);case"service":return async function(e,t){if(!e.length)throw new x.A("mesh-load-external:missing-assets","There must be at least one file to load");let n=await(0,a.nA)(e.map(async e=>{let n=await async function(e,t){let{parts:n,assetMimeType:r,assetName:i}=e;if(1===n.length)return new ee(n[0].partUrl);let o=await e.toBlob(t);return(0,a.Te)(t),ee.fromBlob(o,te(i,r))}(e);return(0,a.Te)(t),{name:e.assetName,mimeType:e.assetMimeType,source:n}}));if((0,a.G4)(t))throw n.forEach(e=>e.source.dispose()),(0,a.NK)();return X(n)}(e.assets,t);default:throw new x.A("mesh-load-external:invalid-source","Invalid source type")}}(i,r);(0,a.Te)(r);let{mesh:{vertexAttributes:l,components:u},meta:{isDracoDecompressed:c}}=await o(new p.A({x:0,y:0,z:0,spatialReference:e.spatialReference}),s.url,{resolveFile:V(s),signal:r?.signal,expectedType:s.type,unitConversionDisabled:t.unitConversionDisabled}).finally(()=>s.dispose());if(c)throw new x.A("mesh-load-external:draco-not-supported","The provided mesh uses Draco compression which is not supported.");e.vertexAttributes=l,e.components=u}(e,t,r);case"loadable":return t.source.load(e,r);default:t.source}}(this,t,e)),Promise.resolve(this)}addExternalSources(e){this.metadata.externalSources.addMany(e)}updateDisplaySource(e){this.metadata.displaySource=e}clone(e){return super.clone((0,ne.WO)((0,ne.QN)(e)))}cloneShallow(){return new Te({components:this.components,spatialReference:this.spatialReference,vertexAttributes:this.vertexAttributes,vertexSpace:this.vertexSpace.clone(),transform:this.transform,metadata:this.metadata})}vertexAttributesChanged(){this.notifyChange("vertexAttributes")}async toBinaryGLTF(e){let[{toBinaryGLTF:t}]=await Promise.all([n.e(4038).then(()=>n(84038)),this.load(e)]);return(0,a.Te)(e),await t(this,e)}get usedMemory(){return this.components?this.components.reduce((e,t)=>e+t.memoryUsage,this.vertexAttributes.usedMemory):this.vertexAttributes.usedMemory}_clearSources(){this.metadata.clearSources()}_checkIfLoaded(e){return!!this.loaded||(s.A.getLogger(this).error(e,"Mesh must be loaded before applying operations"),!1)}static createBox(e,t){if(!(e instanceof p.A))return s.A.getLogger(this.prototype).error(".createBox()",v),null;let n=new Te((0,ie.UG)((0,ie.H8)(),e,t));return t?.imageFace&&"all"!==t.imageFace?(0,ie.bQ)(n,t.imageFace):n}static createSphere(e,t){return e instanceof p.A?new Te((0,ie.UG)((0,ie.Dk)(t?.densificationFactor||0),e,t)):(s.A.getLogger(this.prototype).error(".createSphere()",v),null)}static createCylinder(e,t){return e instanceof p.A?new Te((0,ie.UG)((0,ie.ai)(t?.densificationFactor||0),e,t)):(s.A.getLogger(this.prototype).error(".createCylinder()",v),null)}static createPlane(e,t){if(!(e instanceof p.A))return s.A.getLogger(this.prototype).error(".createPlane()",v),null;let n=t?.facing??"up",r=(0,ie.uF)(n,t?.size);return new Te((0,ie.UG)((0,ie.Uh)(n),e,{...t,size:r}))}static createFromPolygon(e,t){if(!(e instanceof g.A))return s.A.getLogger(this.prototype).error(".createFromPolygon()","Expected polygon to be a Polygon instance"),null;let n=(0,Re.uM)(e,{method:"earcut"}),r=(0,a.$X)(n)?null:n,i=r?.positions??[],o=r?.polygonIndices??[];return new Te({vertexAttributes:new C.default({position:i}),components:[new m.default({faces:o,shading:"flat",material:t?.material??null})],spatialReference:e.spatialReference,vertexSpace:new A.A})}static async createFromGLTF(e,t,r){if(!(e instanceof p.A)){let e=new w;throw s.A.getLogger(this.prototype).error(".createfromGLTF()",e.message),e}let{loadGLTFMesh:i}=await(0,a.qr)(n.e(5841).then(()=>n(35841)),r);return new Te((await i(e,t,r)).mesh)}};(0,r.Cg)([(0,c.MZ)({type:[m.default],json:{write:!0}})],Ee.prototype,"components",void 0),(0,r.Cg)([(0,c.MZ)({nonNullable:!0,types:Se,constructOnly:!0,json:{write:!0},clonable:(e,t)=>(0,ne.o2)(t)?.vertexSpace??e.clone(t)})],Ee.prototype,"vertexSpace",void 0),(0,r.Cg)([(0,c.MZ)({type:M.A,clonable:(e,t)=>{let n=(0,ne.o2)(t);return n&&"transform"in n?n.transform:e?.clone()??e},json:{write:!0}})],Ee.prototype,"transform",void 0),(0,r.Cg)([(0,c.MZ)({constructOnly:!0,type:re.O,clonable:(e,t)=>(0,ne.o2)(t)?.metadata??e.clone()})],Ee.prototype,"metadata",void 0),(0,r.Cg)([(0,c.MZ)()],Ee.prototype,"hasExtent",null),(0,r.Cg)([(0,c.MZ)()],Ee.prototype,"_transformedExtent",null),(0,r.Cg)([(0,c.MZ)()],Ee.prototype,"_untransformedBounds",null),(0,r.Cg)([(0,c.MZ)()],Ee.prototype,"origin",null),(0,r.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1}})],Ee.prototype,"extent",null),(0,r.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1,write:!0,default:!0}})],Ee.prototype,"hasZ",void 0),(0,r.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1,write:!0,default:!1}})],Ee.prototype,"hasM",void 0),(0,r.Cg)([(0,c.MZ)({type:C.default,nonNullable:!0,json:{write:!0},clonable:(e,t)=>(0,ne.o2)(t)?.vertexAttributes??e.clone(t)})],Ee.prototype,"vertexAttributes",void 0),Ee=Te=(0,r.Cg)([(0,c.$K)("esri.geometry.Mesh")],Ee);const Le=(0,y.vt)()},15585(e,t,n){n.d(t,{If:()=>p,O5:()=>m,O9:()=>d,QT:()=>y,l3:()=>g});var r=n(32198),i=n(2741),o=n(49186),s=n(44208),l=n(34727);let a=null,u=null,c=null,h=null;const f=(new Float32Array,new Uint32Array,new Uint32Array,new Uint32Array,{vertices:new Float64Array,indices:new Uint32Array,outlineIndices:new Uint32Array,outlineRingLengths:new Uint32Array,vertexCount:0,indexCount:0,outlineIndexCount:0,outlineRingCount:0});async function p(){return a??=async function(){c=await(await n.e(2997).then(()=>n(42997))).default({locateFile:e=>(0,i.s)(`esri/core/libs/libtess/${e}`)})}(),a}async function g(){return u??=async function(){h=await(await n.e(9134).then(()=>n(99134))).default({locateFile:e=>(0,i.s)(`esri/core/libs/libtess/${e}`)})}(),u}function d(){return null!==h}function y(e,t,n=2){let i={stack:[],error:void 0,hasError:!1};try{let l=c;if(!l)throw new o.A("libtess:not-loaded","libtessF32 not loaded");let a=(0,r.mS)(i,A.from(l,e),!1),u=(0,r.mS)(i,M.from(l,t),!1),h=e.length/n*4,f=(0,r.mS)(i,new A(l,h*n),!1),p=l.triangulate(a.ptr,u.ptr,u.size,n,f.ptr,h);if((0,s.A)("esri-tessellation-debug")){let e=l.getError();0!==e&&console.warn("libtess:triangulation",C(e))}return{buffer:f.slice(0,p*n),vertexCount:p}}catch(e){i.error=e,i.hasError=!0}finally{(0,r.hk)(i)}}function m(e,t,n=2,i=!0){let a={stack:[],error:void 0,hasError:!1};try{let u=h;if(!u)throw new o.A("libtess:not-loaded","libtessF64 not loaded");let c=(0,r.mS)(a,b.from(u,e),!1),p=(0,r.mS)(a,M.from(u,t),!1),g=(0,r.mS)(a,new M(u,1),!1),d=(0,r.mS)(a,new M(u,1),!1),y=(0,r.mS)(a,new M(u,1),!1),m=(0,r.mS)(a,new M(u,1),!1),{maxVertexCount:x,maxIndexCount:v,maxOutlineIndexCount:A,maxOutlineRingCount:T}=function(e,t){let n=e.reduce((e,t)=>e+t,0),r=e.length,i=Math.max(0,e.length-1),o=Math.max(0,n+2*i-2),s=Math.max(0,Math.ceil(2*n)),a=Math.max(0,Math.ceil(3*o*2)),u=(0,l.mP)(a,3),c=n>0?Math.max(2,Math.ceil(.25*n)):0,h=n>0?Math.max(1,Math.ceil(c/3)):0;return{maxVertexCount:s,maxIndexCount:u,maxOutlineIndexCount:t?Math.max(0,n+r+c):0,maxOutlineRingCount:t?Math.max(0,r+h):0}}(t,i),R=0,S=0,E=0,L=0,U=0;{let e={stack:[],error:void 0,hasError:!1};try{let t=(0,r.mS)(e,new b(u,x*n),!1),o=(0,r.mS)(e,new M(u,v),!1),s=(0,r.mS)(e,i?new M(u,A):null,!1),l=(0,r.mS)(e,i?new M(u,T):null,!1);if(u.triangulateIndexed(c.ptr,p.ptr,p.size,n,t.ptr,x,n,o.ptr,v,g.ptr,d.ptr,s?.ptr??0,A,l?.ptr??0,T,y.ptr,m.ptr),U=u.getError(),R=w(u)[g.ptr/Int32Array.BYTES_PER_ELEMENT],S=w(u)[d.ptr/Int32Array.BYTES_PER_ELEMENT],E=w(u)[y.ptr/Int32Array.BYTES_PER_ELEMENT],L=w(u)[m.ptr/Int32Array.BYTES_PER_ELEMENT],0===U)return{vertices:t.slice(0,R*n),indices:o.slice(0,S),outlineIndices:i&&s?s.slice(0,E):f.outlineIndices,outlineRingLengths:i&&l?l.slice(0,L):f.outlineRingLengths,vertexCount:R,indexCount:S,outlineIndexCount:i?E:0,outlineRingCount:i?L:0}}catch(t){e.error=t,e.hasError=!0}finally{(0,r.hk)(e)}}if(100903!==U)return(0,s.A)("esri-tessellation-debug")&&console.warn("libtess:triangulation",C(U)),f;let I=(0,r.mS)(a,new b(u,R*n),!1),Z=(0,r.mS)(a,new M(u,S),!1),_=(0,r.mS)(a,i?new M(u,E):null,!1),N=(0,r.mS)(a,i?new M(u,L):null,!1);if(u.triangulateIndexed(c.ptr,p.ptr,p.size,n,I.ptr,R,n,Z.ptr,S,g.ptr,d.ptr,_?.ptr??0,i?E:0,N?.ptr??0,i?L:0,y.ptr,m.ptr),U=u.getError(),0!==U)return(0,s.A)("esri-tessellation-debug")&&console.warn("libtess:triangulation",C(U)),f;let O=w(u)[g.ptr/Int32Array.BYTES_PER_ELEMENT],P=w(u)[d.ptr/Int32Array.BYTES_PER_ELEMENT],j=w(u)[y.ptr/Int32Array.BYTES_PER_ELEMENT],F=w(u)[m.ptr/Int32Array.BYTES_PER_ELEMENT];return{vertices:I.slice(0,O*n),indices:Z.slice(0,P),outlineIndices:i&&_?_.slice(0,j):f.outlineIndices,outlineRingLengths:i&&N?N.slice(0,F):f.outlineRingLengths,vertexCount:O,indexCount:P,outlineIndexCount:i?j:0,outlineRingCount:i?F:0}}catch(e){a.error=e,a.hasError=!0}finally{(0,r.hk)(a)}}function x(e){return e.HEAPF64}function v(e){return e.HEAPF32}function w(e){return e.HEAP32}class A{static from(e,t){let n=new A(e,t.length);return n.set(t),n}constructor(e,t){this._libtess=e,this.size=t,this.ptr=e.allocateCoordinateArray(t)}destroy(){this._libtess.destroyCoordinateArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Float32Array.BYTES_PER_ELEMENT}set(e){v(this._libtess).set(e,this.ptr/this.bytesPerCoordinate)}slice(e,t){let n=this.ptr/this.bytesPerCoordinate;return v(this._libtess).slice(n+e,n+t)}}class b{static from(e,t){let n=new b(e,t.length);return n.set(t),n}constructor(e,t){this._libtess=e,this.size=t,this.ptr=e.allocateCoordinateArray(t)}destroy(){this._libtess.destroyCoordinateArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Float64Array.BYTES_PER_ELEMENT}set(e){x(this._libtess).set(e,this.ptr/this.bytesPerCoordinate)}slice(e,t){let n=this.ptr/this.bytesPerCoordinate;return x(this._libtess).slice(n+e,n+t)}}class M{static from(e,t){let n=new M(e,t.length);return n.set(t),n}constructor(e,t){this._libtess=e,this.size=t,this.ptr=e.allocateLengthsArray(t)}destroy(){this._libtess.destroyLengthsArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Int32Array.BYTES_PER_ELEMENT}set(e){w(this._libtess).set(e,this.ptr/this.bytesPerCoordinate)}slice(e,t){let n=this.ptr/this.bytesPerCoordinate;return function(e){let t=w(e);return new Uint32Array(t.buffer,t.byteOffset,t.length)}(this._libtess).slice(n+e,n+t)}}function C(e){switch(e){case 100903:return"Insufficient output buffer";case 100902:return"Out of memory";case 100151:return"Missing begin polygon";case 100152:return"Missing begin contour";case 100153:return"Missing end polygon";case 100154:return"Missing end countour";case 100155:return"Coordinates too large";case 100156:return"Missing combine callback";default:return`Unknown: ${e}`}}},97146(e,t,n){n.d(t,{Dg:()=>o,lC:()=>l,my:()=>s,tM:()=>h,uW:()=>i});var r=n(34275);function i(e){return o(e,!0)}function o(e,t){if(Array.isArray(e)){if(e.length<1024)return e}else if(e.length<1024)return Array.from(e);let n=!0,i=!0;return e.some((e,t)=>(n&&=0===e,i&&=e===t,!n&&!i)),n?function(e){if(1===e)return u;if(e<1024)return Array(e).fill(0);if(e>p.length){let t=Math.max(2*p.length,e);p=new Uint8Array(t)}return new Uint8Array(p.buffer,0,e)}(e.length):i?h(e.length):(0,r.iu)(e)&&e.BYTES_PER_ELEMENT===Uint16Array.BYTES_PER_ELEMENT?e:function(e,t){for(let n of e){if(n>=65536)return(0,r.iu)(e)?e:new Uint32Array(e);n>=256&&(t=!1)}return t?new Uint8Array(e):new Uint16Array(e)}(e,!t)}function s(e,t=e){return e<=1024?Array(e):t<=65536?new Uint16Array(e):new Uint32Array(e)}function l(e,t,n){if(0===t.length)return e.slice();if(0===e.length)return t.slice();let r=s(e.length+t.length,n);for(let t=0;t<e.length;++t)r[t]=e[t];for(let n=0;n<t.length;++n)r[e.length+n]=t[n];return r}let a=f(131072);const u=[0],c=(()=>{let e=new Uint16Array(65536);for(let t=0;t<e.length;++t)e[t]=t;return e})();function h(e){return 1===e?u:e<1024?function(e){let t=Array(e).fill(0);for(let n=0;n<e;n++)t[n]=n;return t}(e):e<c.length?new Uint16Array(c.buffer,0,e):(e>a.length&&(a=f(Math.max(2*a.length,e))),new Uint32Array(a.buffer,0,e))}function f(e){let t=new Uint32Array(e);for(let e=0;e<t.length;e++)t[e]=e;return t}let p=new Uint8Array(65536)},16939(e,t,n){n.r(t),n.d(t,{default:()=>p});var r,i=n(32198),o=n(69540),s=n(25482),l=n(53966),a=n(91429),u=n(78888),c=n(19211),h=n(80882),f=n(31199);let p=r=class extends((0,o.OU)(s.o)){static from(e){return(0,u.PZ)(r,e)}constructor(e){super(e),this.material=null,this.name=void 0,this.shading="source",this.trustSourceNormals=!1}get faces(){return this._get("faces")??null}set faces(e){this._set("faces",(0,f.b)(e,Uint32Array,[Uint16Array],{loggerTag:".faces=",stride:3},l.A.getLogger(this)))}castMaterial(e){return e&&"object"==typeof e&&("metallic"in e||"roughness"in e||"metallicRoughnessTexture"in e)?(0,u.PZ)(h.A,e):(0,u.PZ)(c.default,e)}get memoryUsage(){let e=0;return null!=this.faces&&(e+=this.faces.byteLength),null!=this.material&&(e+=this.material.memoryUsage),e}};(0,i.Cg)([(0,a.MZ)({json:{write:f.B}})],p.prototype,"faces",null),(0,i.Cg)([(0,a.MZ)({type:c.default,json:{write:!0}})],p.prototype,"material",void 0),(0,i.Cg)([(0,a.wg)("material")],p.prototype,"castMaterial",null),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],p.prototype,"name",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],p.prototype,"shading",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean})],p.prototype,"trustSourceNormals",void 0),p=r=(0,i.Cg)([(0,a.$K)("esri.geometry.support.MeshComponent")],p)},95696(e,t,n){n.d(t,{A:()=>u});var r,i=n(32198),o=n(69540),s=n(25482),l=n(91429),a=n(93223);let u=class extends((0,o.OU)(s.o)){static{r=this}constructor(e){super(e),this.type="georeferenced",this.origin=null}static{this.absolute=new r}};(0,i.Cg)([(0,a.e)({georeferenced:"georeferenced"},{readOnly:!0})],u.prototype,"type",void 0),(0,i.Cg)([(0,l.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],u.prototype,"origin",void 0),u=r=(0,i.Cg)([(0,l.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],u)},18251(e,t,n){n.d(t,{A:()=>u});var r=n(32198),i=n(69540),o=n(25482),s=n(91429),l=n(51850),a=n(93223);let u=class extends((0,i.OU)(o.o)){constructor(e){super(e),this.type="local",this.origin=(0,l.vt)()}};(0,r.Cg)([(0,a.e)({local:"local"},{readOnly:!0})],u.prototype,"type",void 0),(0,r.Cg)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],u.prototype,"origin",void 0),u=(0,r.Cg)([(0,s.$K)("esri.geometry.support.MeshLocalVertexSpace")],u)},19211(e,t,n){n.r(t),n.d(t,{default:()=>h});var r=n(32198),i=n(68197),o=n(69540),s=n(25482),l=n(91429),a=n(35063),u=n(51147),c=n(66895);let h=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.color=null,this.colorTextureTransform=null,this.normalTextureTransform=void 0,this.alphaMode="auto",this.alphaCutoff=.5,this.doubleSided=!0}get colorTexture(){return this._get("colorTexture")}set colorTexture(e){this._set("colorTexture",null==e?null:a.default.from(e))}get normalTexture(){return this._get("normalTexture")}set normalTexture(e){this._set("normalTexture",null==e?null:a.default.from(e))}clone(e){let t=(0,c.hz)(e),n=t?.materialMap?.get(this);if(n)return n;let r=super.clone((0,c.QN)(e));return t?.materialMap?.set(this,r),r}get memoryUsage(){return this.getMemoryUsage()}getMemoryUsage(){let e=0;return e+=null==this.color?0:16,null!=this.colorTexture&&(e+=this.colorTexture.memoryUsage),e+=null==this.colorTextureTransform?0:20,null!=this.normalTexture&&(e+=this.normalTexture.memoryUsage),e+=null==this.normalTextureTransform?0:20,e}};(0,r.Cg)([(0,l.MZ)({type:i.A,json:{write:!0}})],h.prototype,"color",void 0),(0,r.Cg)([(0,l.MZ)({type:a.default,json:{write:!0},value:null})],h.prototype,"colorTexture",null),(0,r.Cg)([(0,l.MZ)({type:u.A,json:{write:!0}})],h.prototype,"colorTextureTransform",void 0),(0,r.Cg)([(0,l.MZ)({type:a.default,json:{write:!0},value:null})],h.prototype,"normalTexture",null),(0,r.Cg)([(0,l.MZ)({type:u.A,json:{write:!0}})],h.prototype,"normalTextureTransform",void 0),(0,r.Cg)([(0,l.MZ)({nonNullable:!0,json:{write:!0}})],h.prototype,"alphaMode",void 0),(0,r.Cg)([(0,l.MZ)({nonNullable:!0,json:{write:!0}})],h.prototype,"alphaCutoff",void 0),(0,r.Cg)([(0,l.MZ)({nonNullable:!0,json:{write:!0}})],h.prototype,"doubleSided",void 0),h=(0,r.Cg)([(0,l.$K)("esri.geometry.support.MeshMaterial")],h)},80882(e,t,n){n.d(t,{A:()=>u});var r=n(32198),i=n(68197),o=n(91429),s=n(19211),l=n(35063),a=n(51147);let u=class extends s.default{constructor(e){super(e),this.emissiveColor=null,this.emissiveStrength=null,this.emissiveTextureTransform=void 0,this.occlusionTextureTransform=void 0,this.metallic=1,this.roughness=1,this.metallicRoughnessTextureTransform=void 0,this.unlit=!1}get emissiveTexture(){return this._get("emissiveTexture")}set emissiveTexture(e){this._set("emissiveTexture",null==e?null:l.default.from(e))}get occlusionTexture(){return this._get("occlusionTexture")}set occlusionTexture(e){this._set("occlusionTexture",null==e?null:l.default.from(e))}get metallicRoughnessTexture(){return this._get("metallicRoughnessTexture")}set metallicRoughnessTexture(e){this._set("metallicRoughnessTexture",null==e?null:l.default.from(e))}getMemoryUsage(){let e=super.getMemoryUsage();return e+=null==this.emissiveColor?0:16,null!=this.emissiveTexture&&(e+=this.emissiveTexture.memoryUsage),e+=null==this.emissiveTextureTransform?0:20,null!=this.occlusionTexture&&(e+=this.occlusionTexture.memoryUsage),e+=null==this.occlusionTextureTransform?0:20,null!=this.metallicRoughnessTexture&&(e+=this.metallicRoughnessTexture.memoryUsage),e+=null==this.metallicRoughnessTextureTransform?0:20,e}};(0,r.Cg)([(0,o.MZ)({type:i.A,json:{write:!0}})],u.prototype,"emissiveColor",void 0),(0,r.Cg)([(0,o.MZ)({json:{write:!0}})],u.prototype,"emissiveStrength",void 0),(0,r.Cg)([(0,o.MZ)({type:l.default,json:{write:!0},value:null})],u.prototype,"emissiveTexture",null),(0,r.Cg)([(0,o.MZ)({type:a.A,json:{write:!0}})],u.prototype,"emissiveTextureTransform",void 0),(0,r.Cg)([(0,o.MZ)({type:l.default,json:{write:!0},value:null})],u.prototype,"occlusionTexture",null),(0,r.Cg)([(0,o.MZ)({type:a.A,json:{write:!0}})],u.prototype,"occlusionTextureTransform",void 0),(0,r.Cg)([(0,o.MZ)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],u.prototype,"metallic",void 0),(0,r.Cg)([(0,o.MZ)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],u.prototype,"roughness",void 0),(0,r.Cg)([(0,o.MZ)({type:l.default,json:{write:!0},value:null})],u.prototype,"metallicRoughnessTexture",null),(0,r.Cg)([(0,o.MZ)({type:a.A,json:{write:!0}})],u.prototype,"metallicRoughnessTextureTransform",void 0),(0,r.Cg)([(0,o.MZ)({type:Boolean,nonNullable:!0,json:{write:!0}})],u.prototype,"unlit",void 0),u=(0,r.Cg)([(0,o.$K)("esri.geometry.support.MeshMaterialMetallicRoughness")],u)},35063(e,t,n){n.r(t),n.d(t,{default:()=>y});var r,i=n(32198),o=n(69540),s=n(21287),l=n(25482),a=n(91429),u=n(78888),c=n(66895),h=n(97159),f=n(43937),p=n(36005);const g=new WeakMap;let d=0,y=class extends((0,o.OU)(l.o)){static{r=this}constructor(e){super(e),this.wrap="repeat"}get url(){return this._get("url")||null}set url(e){this._set("url",e),e&&this._set("data",null)}get data(){return this._get("data")||null}set data(e){this._set("data",e),e&&this._set("url",null)}writeData(e,t,n,r){e instanceof HTMLImageElement?t[n]={type:"image-element",src:(0,h.t)(e.src,r),crossOrigin:e.crossOrigin}:e instanceof HTMLCanvasElement?t[n]={type:"canvas-element",imageData:m(e.getContext("2d").getImageData(0,0,e.width,e.height))}:e instanceof HTMLVideoElement?t[n]={type:"video-element",src:(0,h.t)(e.src,r),autoplay:e.autoplay,loop:e.loop,muted:e.muted,crossOrigin:e.crossOrigin,preload:e.preload}:e instanceof ImageData&&(t[n]={type:"image-data",imageData:m(e)})}readData(e){switch(e.type){case"image-element":{let t=new Image;return t.src=e.src,t.crossOrigin=e.crossOrigin,t}case"canvas-element":{let t=x(e.imageData),n=document.createElement("canvas");return n.width=t.width,n.height=t.height,n.getContext("2d").putImageData(t,0,0),n}case"image-data":return x(e.imageData);case"video-element":{let t=document.createElement("video");return t.src=e.src,t.crossOrigin=e.crossOrigin,t.autoplay=e.autoplay,t.loop=e.loop,t.muted=e.muted,t.preload=e.preload,t}default:return}}get transparent(){let{data:e,url:t}=this,n=e=>e?.toLowerCase().endsWith(".png")||e?.toLocaleLowerCase().startsWith("data:image/png;");return e instanceof HTMLCanvasElement?v(e.getContext("2d").getImageData(0,0,e.width,e.height)):e instanceof ImageData?v(e):!!(t&&n(t)||e instanceof HTMLImageElement&&n(e.src))}set transparent(e){this._overrideIfSome("transparent",e)}get contentHash(){let e="string"==typeof this.wrap?this.wrap:"object"==typeof this.wrap?`${this.wrap.horizontal}/${this.wrap.vertical}`:"",t=(t="")=>`d:${t},t:${this.transparent},w:${e}`;return null==this.url?null==this.data?t():this.data instanceof HTMLImageElement||this.data instanceof HTMLVideoElement?t(this.data.src):(g.has(this.data)||g.set(this.data,++d),t(g.get(this.data))):t(this.url)}get memoryUsage(){let e=0;if(e+=null==this.url?0:this.url.length,null!=this.data){let t=this.data;"data"in t?e+=t.data.byteLength:t instanceof HTMLImageElement?e+=t.naturalWidth*t.naturalHeight*3:t instanceof HTMLCanvasElement&&(e+=t.width*t.height*3)}return e}clone(e){let t=(0,c.$N)(e),n=t?.textureMap?.get(this);if(n)return n;let r=super.clone(e);return t?.textureMap?.set(this,r),r}static from(e){return"string"==typeof e?new r({url:e}):e instanceof HTMLImageElement||e instanceof HTMLCanvasElement||e instanceof ImageData||e instanceof HTMLVideoElement?new r({data:e}):(0,u.PZ)(r,e)}};function m(e){let t="";for(let n=0;n<e.data.length;n++)t+=String.fromCharCode(e.data[n]);return{data:btoa(t),width:e.width,height:e.height}}function x(e){let t=atob(e.data),n=new Uint8ClampedArray(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return(0,s.eV)(n,e.width,e.height)}function v(e){for(let t=3;t<e.data.length;t+=4)if(255!==e.data[t])return!0;return!1}(0,i.Cg)([(0,a.MZ)({type:String,json:{write:h.w}})],y.prototype,"url",null),(0,i.Cg)([(0,a.MZ)({clonable:"reference",json:{write:{overridePolicy(){return{enabled:!this.url}}}}})],y.prototype,"data",null),(0,i.Cg)([(0,f.K)("data")],y.prototype,"writeData",null),(0,i.Cg)([(0,p.w)("data")],y.prototype,"readData",null),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:{overridePolicy(){return{enabled:this._isOverridden("transparent")}}}}})],y.prototype,"transparent",null),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],y.prototype,"wrap",void 0),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"contentHash",null),y=r=(0,i.Cg)([(0,a.$K)("esri.geometry.support.MeshTexture")],y)},51147(e,t,n){n.d(t,{A:()=>l});var r=n(32198),i=n(69540),o=n(25482),s=n(91429);let l=class extends((0,i.OU)(o.o)){constructor(e){super(e),this.offset=[0,0],this.rotation=0,this.scale=[1,1]}};(0,r.Cg)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],l.prototype,"offset",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],l.prototype,"rotation",void 0),(0,r.Cg)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],l.prototype,"scale",void 0),l=(0,r.Cg)([(0,s.$K)("esri.geometry.support.MeshTextureTransform")],l)},1193(e,t,n){n.r(t),n.d(t,{default:()=>h});var r,i=n(32198),o=n(69540),s=n(25482),l=n(4718),a=n(53966),u=n(91429),c=n(31199);let h=r=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.color=null,this.position=new Float64Array,this.uv=null,this.normal=null,this.tangent=null}castColor(e){return(0,c.b)(e,Uint8Array,[Uint8ClampedArray],{loggerTag:".color=",stride:4},a.A.getLogger(this))}castPosition(e){return e&&e instanceof Float32Array&&a.A.getLogger(this).warn(".position=","Setting position attribute from a Float32Array may cause precision problems. Consider storing data in a Float64Array or a regular number array"),(0,c.b)(e,Float64Array,[Float32Array],{loggerTag:".position=",stride:3},a.A.getLogger(this))}castUv(e){return(0,c.b)(e,Float32Array,[Float64Array],{loggerTag:".uv=",stride:2},a.A.getLogger(this))}castNormal(e){return(0,c.b)(e,Float32Array,[Float64Array],{loggerTag:".normal=",stride:3},a.A.getLogger(this))}castTangent(e){return(0,c.b)(e,Float32Array,[Float64Array],{loggerTag:".tangent=",stride:4},a.A.getLogger(this))}clonePositional(){let e={position:(0,l.o8)(this.position),normal:(0,l.o8)(this.normal),tangent:(0,l.o8)(this.tangent),uv:this.uv,color:this.color};return new r(e)}get usedMemory(){return this.position.byteLength+(this.uv?.byteLength??0)+(this.normal?.byteLength??0)+(this.tangent?.byteLength??0)+(this.color?.byteLength??0)}};(0,i.Cg)([(0,u.MZ)({json:{write:c.B}})],h.prototype,"color",void 0),(0,i.Cg)([(0,u.wg)("color")],h.prototype,"castColor",null),(0,i.Cg)([(0,u.MZ)({nonNullable:!0,json:{write:c.B}})],h.prototype,"position",void 0),(0,i.Cg)([(0,u.wg)("position")],h.prototype,"castPosition",null),(0,i.Cg)([(0,u.MZ)({json:{write:c.B}})],h.prototype,"uv",void 0),(0,i.Cg)([(0,u.wg)("uv")],h.prototype,"castUv",null),(0,i.Cg)([(0,u.MZ)({json:{write:c.B}})],h.prototype,"normal",void 0),(0,i.Cg)([(0,u.wg)("normal")],h.prototype,"castNormal",null),(0,i.Cg)([(0,u.MZ)({json:{write:c.B}})],h.prototype,"tangent",void 0),(0,i.Cg)([(0,u.wg)("tangent")],h.prototype,"castTangent",null),h=r=(0,i.Cg)([(0,u.$K)("esri.geometry.support.MeshVertexAttributes")],h)},31199(e,t,n){function r(e,t,n,r){let{loggerTag:i,stride:o}=t;return e.length%o===0?e:(r.error(i,`Invalid array length, expected a multiple of ${o}`),new n([]))}function i(e,t,n,i,o){if(!e)return e;if(e instanceof t)return r(e,i,t,o);for(let s of n)if(e instanceof s)return r(new t(e),i,t,o);if(Array.isArray(e))return r(new t(e),i,t,o);{let r=n.map(e=>`'${e.name}'`);return o.error(`Failed to set property, expected one of ${r}, but got ${e.constructor.name}`),new t([])}}function o(e,t,n){t[n]=function(e){let t=Array(e.length);for(let n=0;n<e.length;n++)t[n]=e[n];return t}(e)}n.d(t,{B:()=>o,b:()=>i})},40118(e,t,n){n.d(t,{H5:()=>h,wh:()=>u,createWithExternalSource:()=>c});var r=n(49186),i=(n(17676),n(83300)),o=(n(16939),n(95696),n(73836)),s=(n(1193),n(27615));n(53966),n(35522),n(51850),n(66895),n(72258);var l=n(29461),a=n(15070);function u(e,t){return new i.default((0,a.UG)((0,a.Dk)(t?.densificationFactor||0),e,t))}function c(e,t,n){let r=n?.extent??null,{spatialReference:a}=e,u=n?.transform?.clone()??new o.A,c=(0,s.TE)(e,n),h={source:t,extent:r,unitConversionDisabled:n?.unitConversionDisabled},f=new l.O;return f.externalSources.push(h),new i.default({metadata:f,transform:u,vertexSpace:c,spatialReference:a})}function h(e,t){let{spatialReference:n}=e,l=t?.transform?.clone()??new o.A,a=(0,s.TE)(e,t),u=new i.default({transform:l,vertexSpace:a,spatialReference:n});return u.addResolvingPromise(Promise.reject(new r.A("mesh-incomplete","Mesh resources are not complete"))),u}n(41618)},63579(e,t,n){n.d(t,{Bq:()=>a,Qp:()=>l,WN:()=>y,dK:()=>m,eN:()=>p,fH:()=>d,in:()=>g,yr:()=>u});var r=n(56507),i=n(4576),o=n(17676),s=n(20557);class l{constructor(e,t,n){this.assetName=e,this.assetMimeType=t,this.parts=n}equals(e){return this===e||this.assetName===e.assetName&&this.assetMimeType===e.assetMimeType&&(0,i.aI)(this.parts,e.parts,(e,t)=>e.equals(t))}isOnService(e){return this.parts.every(t=>t.isOnService(e))}makeHash(){let e="";for(let t of this.parts)e+=t.partHash;return e}async toBlob(e){let{parts:t}=this;if(1===t.length)return t[0].toBlob(e);let n=await Promise.all(t.map(t=>t.toBlob(e)));return(0,o.Te)(e),new Blob(n)}}class a{constructor(e,t){this.partUrl=e,this.partHash=t}equals(e){return this===e||this.partUrl===e.partUrl&&this.partHash===e.partHash}isOnService(e){return this.partUrl.startsWith(`${e.path}/assets/`)}async toBlob(e){let{data:t}=await(0,r.A)(this.partUrl,{responseType:"blob"});return(0,o.Te)(e),t}}function u(e){return function(e){switch(e?.type){case"client":return Array.isArray(e.files)?e.files.some(f):f(e.files);case"service":return e.assets.some(f);case"loadable":return!0;default:return!1}}(e?.source)}const c=/^(model\/gltf\+json)|(model\/gltf-binary)$/,h=/\.(gltf|glb)/i;function f(e){if(e instanceof File){let{type:t,name:n}=e;return c.test(t)||h.test(n)}return c.test(e.assetMimeType)||h.test(e.assetName)}function p(e,t){if(!e)return!1;let{source:n}=e;return function(e,t){return"service"===e.type&&e.assets.every(e=>e.isOnService(t))}(n,t)}function g(e,t){if(e===t)return!0;let{source:n}=e,{source:r}=t;if(n===r)return!0;if("service"===n.type&&"service"===r.type){if(n.assets.length!==r.assets.length)return!1;let e=(e,t)=>e.assetName<t.assetName?-1:+(e.assetName>t.assetName),t=[...n.assets].sort(e),i=[...r.assets].sort(e);for(let e=0;e<t.length;++e)if(!t[e].equals(i[e]))return!1;return!0}return!1}function d(e,t){return e instanceof File?(0,s.rq)(e,t):(0,s.z$)(e.assetMimeType,e.assetName,t)}function y(e){switch(e.type){case"client":return Array.isArray(e.files)?e.files:[e.files];case"service":return e.assets;case"loadable":return}}function m(e){return!!e.original}},29461(e,t,n){n.d(t,{O:()=>u});var r=n(32198),i=n(69540),o=n(7762),s=n(36708),l=n(91429),a=n(63579);let u=class extends i.Pw{constructor(e){super(e),this.externalSources=new o.A,this._explicitDisplaySource=null,this.addHandles((0,s.on)(()=>this.externalSources,"after-remove",({item:e})=>{e===this._explicitDisplaySource&&(this._explicitDisplaySource=null)},{sync:!0,onListenerRemove:()=>this._explicitDisplaySource=null}))}get displaySource(){return this._explicitDisplaySource??this._implicitDisplaySource}set displaySource(e){if(null!=e&&!(0,a.yr)(e))throw Error("Cannot use this source for display: it is not in a supported format.");this._explicitDisplaySource=e,e&&this.externalSources.every(t=>!(0,a.in)(t,e))&&this.externalSources.add(e)}clearSources(){this.externalSources.removeAll()}getExternalSourcesOnService(e){return this.externalSources.items.filter(t=>(0,a.eN)(t,e))}get _implicitDisplaySource(){return this.externalSources.find(a.yr)}};(0,r.Cg)([(0,l.MZ)()],u.prototype,"externalSources",void 0),(0,r.Cg)([(0,l.MZ)()],u.prototype,"displaySource",null),(0,r.Cg)([(0,l.MZ)()],u.prototype,"_implicitDisplaySource",null),(0,r.Cg)([(0,l.MZ)()],u.prototype,"_explicitDisplaySource",void 0),u=(0,r.Cg)([(0,l.$K)("esri.geometry.support.meshUtils.Metadata")],u)},66895(e,t,n){n.d(t,{$N:()=>c,Lz:()=>o,QN:()=>h,WO:()=>a,hz:()=>l,o2:()=>i});const r=Symbol("meshContext");function i(e){return e&&"object"==typeof e&&r in e?e[r]:void 0}function o(e,t){let n=i(e);return{...e,[r]:{...n,...t}}}const s=Symbol("meshMaterialContext");function l(e){return e&&"object"==typeof e&&s in e?e[s]:void 0}function a(e){if(l(e)?.materialMap)return e;let t={materialMap:new Map};return{...e,[s]:t}}const u=Symbol("meshTextureContext");function c(e){return e&&"object"==typeof e&&u in e?e[u]:void 0}function h(e){if(c(e)?.textureMap)return e;let t={textureMap:new Map};return{...e,[u]:t}}},15070(e,t,n){n.d(t,{Dk:()=>f,H8:()=>c,UG:()=>m,Uh:()=>d,ai:()=>p,bQ:()=>h,uF:()=>g});var r=n(29242),i=n(35522),o=n(51850),s=n(16939),l=n(1193),a=n(27615),u=n(72258);function c(){let{faceDescriptions:e,faceVertexOffsets:t,uvScales:n}=x,r=4*e.length,i=new Float64Array(3*r),o=new Float32Array(3*r),s=new Float32Array(2*r),l=new Uint32Array(2*e.length*3),a=0,u=0,c=0,h=0;for(let r=0;r<e.length;r++){let f=e[r],p=a/3;for(let e of t)l[h++]=p+e;let g=f.corners;for(let e=0;e<4;e++){let t=g[e],r=0;s[c++]=.25*n[e][0]+f.uvOrigin[0],s[c++]=f.uvOrigin[1]-.25*n[e][1];for(let e=0;e<3;e++)0===f.axis[e]?(i[a++]=.5*t[r++],o[u++]=0):(i[a++]=.5*f.axis[e],o[u++]=f.axis[e])}}return{position:i,normal:o,uv:s,faces:l}}function h(e,t){let n=e.components[0],r=n.faces,i=v[t],o=6*i,l=[,,,,,,],a=Array(r.length-6),u=0,c=0;for(let e=0;e<r.length;e++)e>=o&&e<o+6?l[u++]=r[e]:a[c++]=r[e];if(null!=e.vertexAttributes.uv){let t=new Float32Array(e.vertexAttributes.uv),n=4*i*2,r=[0,1,1,1,1,0,0,0];for(let e=0;e<r.length;e++)t[n+e]=r[e];e.vertexAttributes.uv=t}return e.components=[new s.default({faces:l,material:n.material}),new s.default({faces:a})],e}function f(e=0){let t=Math.round(8*2**e),n=2*t,r=(t-1)*(n+1)+2*n,i=new Float64Array(3*r),o=new Float32Array(3*r),s=new Float32Array(2*r),l=new Uint32Array((t-1)*n*2*3),a=0,u=0,c=0,h=0;for(let e=0;e<=t;e++){let r=e/t*Math.PI+.5*Math.PI,f=Math.cos(r);w[2]=Math.sin(r);let p=0===e||e===t,g=p?n-1:n;for(let r=0;r<=g;r++){let d=r/g*2*Math.PI;w[0]=-Math.sin(d)*f,w[1]=Math.cos(d)*f;for(let e=0;e<3;e++)i[a]=.5*w[e],o[a]=w[e],++a;s[u++]=(r+(p?.5:0))/n,s[u++]=e/t,0!==e&&r!==n&&(e!==t&&(l[c++]=h,l[c++]=h+1,l[c++]=h-n),1!==e&&(l[c++]=h,l[c++]=h-n,l[c++]=h-n-1)),h++}}return{position:i,normal:o,uv:s,faces:l}}function p(e=0){let t=Math.round(16*2**e),n=4*(t+1)+2*t,r=new Float64Array(3*n),i=new Float32Array(3*n),o=new Float32Array(2*n),s=new Uint32Array(4*t*3),l=0,a=0,u=0,c=0,h=0;for(let e=0;e<=5;e++){let n=0===e||5===e,f=e<=1||e>=4,p=2===e||4===e,g=n?t-1:t;for(let d=0;d<=g;d++){let y=d/g*2*Math.PI,m=n?0:.5;w[0]=m*Math.sin(y),w[1]=m*-Math.cos(y),w[2]=e<=2?.5:-.5;for(let t=0;t<3;t++)r[l++]=w[t],i[a++]=f?2===t?e<=1?1:-1:0:2===t?0:w[t]/m;o[u++]=(d+(n?.5:0))/t,o[u++]=e<=1?1*e/3:e<=3?1*(e-2)/3+1/3:1*(e-4)/3+2/3,!p&&0!==e&&d!==t&&(5!==e&&(s[c++]=h,s[c++]=h+1,s[c++]=h-t),1!==e&&(s[c++]=h,s[c++]=h-t,s[c++]=h-t-1)),h++}}return{position:r,normal:i,uv:o,faces:s}}function g(e,t){let n="number"==typeof t?t:null==t?1:t.width,r="number"==typeof t?t:null==t?1:t.height;switch(e){case"up":case"down":return{width:n,depth:r};case"north":case"south":return{width:n,height:r};case"east":case"west":return{depth:n,height:r}}}function d(e){let t=y.facingAxisOrderSwap[e],n=y.position,r=y.normal,i=new Float64Array(n.length),o=new Float32Array(r.length),s=0;for(let e=0;e<4;e++){let e=s;for(let l=0;l<3;l++){let a=t[l],u=Math.abs(a)-1,c=a>=0?1:-1;i[s]=n[e+u]*c,o[s]=r[e+u]*c,s++}}return{position:i,normal:o,uv:new Float32Array(y.uv),faces:new Uint32Array(y.faces),isPlane:!0}}const y={position:[-.5,-.5,0,.5,-.5,0,.5,.5,0,-.5,.5,0],normal:[0,0,1,0,0,1,0,0,1,0,0,1],uv:[0,1,1,1,1,0,0,0],faces:[0,1,2,0,2,3],facingAxisOrderSwap:{east:[3,1,2],west:[-3,-1,2],north:[-1,3,2],south:[1,-3,2],up:[1,2,3],down:[1,-2,-3]}};function m(e,t,n){e.isPlane||function(e){for(let t=0;t<e.position.length;t+=3)e.position[t+2]+=.5}(e),function(e,t){if(null!=t){A[0]=t[0],A[4]=t[1],A[8]=t[2];for(let t=0;t<e.position.length;t+=3){for(let n=0;n<3;n++)w[n]=e.position[t+n];(0,i.ei)(w,w,A);for(let n=0;n<3;n++)e.position[t+n]=w[n]}if(t[0]!==t[1]||t[1]!==t[2]){A[0]=1/t[0],A[4]=1/t[1],A[8]=1/t[2];for(let t=0;t<e.normal.length;t+=3){for(let n=0;n<3;n++)w[n]=e.normal[t+n];(0,i.ei)(w,w,A),(0,i.S8)(w,w);for(let n=0;n<3;n++)e.normal[t+n]=w[n]}}}}(e,function(e,t,n){let r=(0,u.xK)(t,n);if(null==e&&1===r)return null;if(null==e)return[r,r,r];if("number"==typeof e){let t=e*r;return[t,t,t]}return[null==e.width?r:e.width*r,null==e.depth?r:e.depth*r,null==e.height?r:e.height*r]}(n?.size,n?.unit,t.spatialReference));let r=(0,a.TE)(t,n),o=t.spatialReference.isGeographic?(0,a.TE)(t):r,c=(0,u.UR)({vertexAttributes:e,vertexSpace:o,spatialReference:t.spatialReference},r,{allowBufferReuse:!0});return{vertexAttributes:new l.default({...c,uv:e.uv}),vertexSpace:r,components:[new s.default({faces:e.faces,material:n?.material||null})],spatialReference:t.spatialReference}}const x={faceDescriptions:[{axis:[0,-1,0],uvOrigin:[0,.625],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[1,0,0],uvOrigin:[.25,.625],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[0,1,0],uvOrigin:[.5,.625],corners:[[1,-1],[-1,-1],[-1,1],[1,1]]},{axis:[-1,0,0],uvOrigin:[.75,.625],corners:[[1,-1],[-1,-1],[-1,1],[1,1]]},{axis:[0,0,1],uvOrigin:[0,.375],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[0,0,-1],uvOrigin:[0,.875],corners:[[-1,1],[1,1],[1,-1],[-1,-1]]}],uvScales:[[0,0],[1,0],[1,1],[0,1]],faceVertexOffsets:[0,1,2,0,2,3]},v={south:0,east:1,north:2,west:3,up:4,down:5},w=(0,o.vt)(),A=(0,r.vt)()},27615(e,t,n){n.d(t,{CK:()=>a,Hq:()=>l,MW:()=>u,TE:()=>c,yJ:()=>h});var r=n(35522),i=n(86738),o=n(95696),s=n(18251);function l(e){return null!=e.origin}function a(e){return l(e.vertexSpace)}function u(e,t){if(!l(e))return null;let[n,r,o]=e.origin;return new i.A({x:n,y:r,z:o,spatialReference:t})}function c(e,t){let{x:n,y:r,z:i,spatialReference:l}=e,a=[n,r,i??0];return"local"===(t?.vertexSpace??function(e){return e.isGeographic||e.isWebMercator?"local":"georeferenced"}(l))?new s.A({origin:a}):new o.A({origin:a})}function h(e,t){return e.type===t.type&&(e.origin===t.origin||null!=e.origin&&null!=t.origin&&(0,r.t2)(e.origin,t.origin))}},41618(e,t,n){n.d(t,{uM:()=>P});var r=n(17676),i=(n(9762),n(4197)),o=(n(58083),n(9093)),s=n(51850);n(48353),(0,o.vt)(),new class{constructor(){this.verticalDistanceToGround=0,this.sampledElevation=0,this.z=0}},(0,s.vt)(),n(44208),n(53966);var l=n(62788),a=n(95488),u=n(83349),c=n(15585),h=n(95108),f=n(97146),p=n(34727),g=n(86211),d=n(35522),y=n(27921);function m(e,t,n){let r=function(e,t,n,r){let i=(e=>!Array.isArray(e[0]))(t)?(e,n)=>t[3*e+n]:(e,n)=>t[e][n],o=(0,g.GA)(r)/(0,g.G9)(r);return(0,y.lU)(e,(e,t)=>(0,d.hZ)(e,i(t,0)*o,i(t,1)*o,i(t,2)),n)}(x,e,t,n)?(0,y.Qj)(x):[0,0,1];return Math.abs(r[2])>Math.cos((0,p.kU)(80))?2:+(Math.abs(r[1])>Math.abs(r[0]))}const x=(0,y.vt)(),v="auto",w=void 0,A=void 0,b=void 0;function M(e,t,n){if(!t)return 2;let r=null;for(let i of e){let e=Z(i,t),o=e<3?2:m(i,e,n);if(r??=o,o!==r)return 2}return r??2}function C(e,t,n){if(!t)return!(0,h.$3)(e);if(e.length<3)return!1;switch(n){case 0:return!(0,h.$3)(e,1,2);case 1:return!(0,h.$3)(e,0,2);case 2:return!(0,h.$3)(e,0,1)}}const T=new a.I;let R=new WeakSet;function S(e,t){if(!(0,c.O9)())return _("libtess-not-loaded");let n=null!=t.outlines,{positions:r,mergedPathLengths:o}=function(e){let t=function(e){let t=e.reduce((e,t)=>e+t.pathLengths.length,0),n=Array(t),r=0;for(let t=0;t<e.length;t++){let i=e[t].pathLengths;for(let e=0;e<i.length;e++)n[r++]=i[e]}return n}(e.polygons),n=3*e.polygonVertexCount;return n===e.positions.length?{positions:e.positions,mergedPathLengths:t}:{positions:(0,i.l5)(e.positions,0,n),mergedPathLengths:t}}(e),s=performance.now(),{vertices:l,indices:a,outlineIndices:u,outlineRingLengths:h}=(0,c.O5)(r,o,3,n),p=performance.now()-s;if(null!=t.owner&&p>250&&R.add(t.owner),l.length%3!=0)return _("positions-not-multiple-of-3");let{positions:g,outlineIndexBuffer:d,mergedOutlineRingLengths:y}=n?function(e,t,n,r,o){let s=e.polygonVertexCount,l=n.length/3,a=(t??[]).values().filter(e=>e.index>=s).map(e=>({index:l+e.index-s,count:e.count})).toArray();if(0===a.length)return{positions:n,outlineIndexBuffer:r,mergedOutlineRingLengths:o};let u=3*s,c=(0,i.l5)(e.positions,u,e.positions.length-u),h=(0,i.yH)(n,c),{outlineIndexBuffer:p,outlineRingLengths:g}=L(a,h);return{positions:h,outlineIndexBuffer:(0,f.lC)(r,p,h.length/3),mergedOutlineRingLengths:(0,f.lC)(o,g,o.length+g.length)}}(e,t.outlines,l,u,h):{positions:l,outlineIndexBuffer:void 0,mergedOutlineRingLengths:void 0};return{succeeded:!0,positions:g,indices:a,outlineIndexBuffer:d,outlineRingLengths:y,vertexCount:g.length/3,method:"libtess"}}function E(e,t,n){for(let r=0;r<e.length;r+=3){let i=e[r+t];e[r+t]=e[r+n],e[r+n]=i}}function L(e,t){let n=(0,f.my)(e.length),r=0;for(let i=0;i<e.length;i++){let o=e[i],s=o.count;if(s<=0){n[i]=0;continue}let l=3*o.index,a=3*(o.index+s-1),u=s>1&&t[l]===t[a]&&t[l+1]===t[a+1]&&t[l+2]===t[a+2]?s-1:s,c=u>0?u+1:0;n[i]=c,r+=c}let i=(0,f.my)(r,t.length/3),o=0;for(let t=0;t<e.length;t++){let r=n[t];if(0===r)continue;let s=e[t].index,l=r-1;for(let e=0;e<l;e++)i[o++]=s+e;i[o++]=s}return{outlineIndexBuffer:i,outlineRingLengths:n}}function U(e,{index:t,count:n}){let r=3*t,o=3*n;return(0,i.l5)(e,r,o)}function I(e,t,n,r,i,o){let s=o?e.length-1:0,l=o?-1:1;n*=3;for(let o=0;o<r;++o){let r=e[s];t[n++]=r[0],t[n++]=r[1],t[n++]=i&&null!=r[2]?r[2]:0,s+=l}return n/3}function Z(e,t){return function(e,t){let n=e.length;if(n<2)return!1;let r=e[0],i=e[n-1];return r[0]===i[0]&&r[1]===i[1]&&(!t||r[2]===i[2])}(e,t)?e.length-1:e.length}function _(e){return{succeeded:!1,message:e}}class N{constructor(e,t,n,r){this.positions=e,this.polygonIndices=t,this.outline=n,this.projectionSuccess=r,this.count=e.length/3}get vertexCount(){return this.positions.length/3}get polygonIndexCount(){return this.polygonIndices.length}get outlineIndexCount(){let{outline:e}=this;if("tessellated-indices"!==e.output)return 0;let t=0;for(let n=0;n<e.outlineIndices.length;n++)t+=F(e.outlineIndices[n]);return t}get outlineSegmentCount(){let{outline:e}=this;if("tessellated-indices"!==e.output)return 0;let t=0;for(let n=0;n<e.outlineIndices.length;n++)t+=F(e.outlineIndices[n]);return t}}class O extends N{}function P(e,t){let{projectIfNearlyVertical:n=!1,outlineOutput:o="none",method:s,owner:a}=t??{},h="tessellated-indices"===o,p=M(e.rings,!!e.hasZ,e.spatialReference),g=function(e,t){let{hasZ:n,ccwRingsAsHoles:r,spatialReference:o}=t,s=t.axis??M(e,n,o),l=e.length,a=[],u=[],c=[],h=[],f=e.reduce((e,t)=>e+t.length,0),p=0,g=(0,i.jh)(3*f),d=0,y=r&&e[0]&&C(e[0],n,s);for(let t=l-1;t>=0;t--){let i=e[t],o=Z(i,n);if(o<3){o>1&&h.push(i);continue}let l=!!r&&C(i,n,s);if(y?!l:l)a[p++]=i;else{let e=i.length;for(let t=0;t<p;++t)e+=a[t].length;let t={index:d,pathLengths:Array(p+1),count:e,holeIndices:Array(p)};t.pathLengths[0]=i.length,i.length>0&&c.push({index:d,count:i.length}),d=I(i,g,d,i.length,n,y);for(let e=0;e<p;++e){let r=a[e];t.holeIndices[e]=d,t.pathLengths[e+1]=r.length,r.length>0&&c.push({index:d,count:r.length}),d=I(r,g,d,r.length,n,y)}p=0,t.count>0&&u.push(t)}}let m=d;for(let e of h)c.push({index:d,count:e.length}),d=I(e,g,d,e.length,n,y);return{positions:3*d===g.length?g:(0,i.l5)(g,0,3*d),polygonVertexCount:m,polygons:u,outlines:c}}(e.rings,{hasZ:!!e.hasZ,ccwRingsAsHoles:!0,spatialReference:e.spatialReference,axis:p}),d=function(e,t){let n=function(e,t){let n={method:t?.method??v,projectionAxis:t?.projectionAxis??w,outlines:t?.outlines??A,owner:t?.owner??b},{projectionAxis:r}=n,i=null!=r&&2!==r;i&&E(e.positions,r,2);let o=function(e,t){if("libtess"===t.method)return S(e,t);let n=function(e,t){let n=null!=t.owner&&R.has(t.owner);return"auto"===t.method&&!(n&&e.polygonVertexCount>=1e4)}(e,t),r=[],i=0,o=0;for(let s of e.polygons){let l=U(e.positions,s),a=(s.holeIndices??[]).map(e=>e-s.index),c=a.length>0?a:null,h=(0,u.e)(l,c,3),f=u.e.deviation(l,a,3,h);if(n&&f>1e-5)return S(e,t);r.push({indices:h,index:s.index}),i+=h.length,o=Math.max(o,f)}let s=(0,f.my)(i,e.positions.length/3),l=0;for(let e of r)for(let t=0;t<e.indices.length;t++)s[l++]=e.indices[t]+e.index;let{outlineIndexBuffer:a,outlineRingLengths:c}=null==t.outlines?{outlineIndexBuffer:void 0,outlineRingLengths:void 0}:L(t.outlines,e.positions);return{succeeded:!0,positions:e.positions,indices:(0,f.uW)(s),outlineIndexBuffer:a,outlineRingLengths:c,vertexCount:e.positions.length/3,method:"earcut",deviation:o}}(e,n);if(i){let t=o.succeeded?o.positions:null;null!=t&&t!==e.positions&&E(t,2,r),E(e.positions,2,r)}return o}(e,t);return n.succeeded||"libtess-not-loaded"!==n.message?n:((0,l.gc)(T),async function(){try{await(0,c.l3)(),T.notify()}catch(e){throw e}}())}(g,{projectionAxis:n?p:void 0,outlines:h?g.outlines:void 0,method:s,owner:a});if((0,r.$X)(d))return d;if(!d.succeeded)return null;let y={output:"none"};if("vertex-data"===o){let e=d.positions===g.positions?g.positions.slice():g.positions;y={output:"vertex-data",outlines:j(g.outlines,e)}}else"tessellated-indices"===o&&(y=function(e){let{outlineIndexBuffer:t,outlineRingLengths:n}=e;if(null==t||null==n)return{output:"none"};let r=Array(n.length),i=0;for(let e=0;e<n.length;e++){let o=n[e],s=t.slice(i,i+o);r[e]=s,i+=o}return{output:"tessellated-indices",outlineIndices:r}}(d));return new O(d.positions,d.indices,y,!0)}function j(e,t,n=null){return e.values().filter(({count:e})=>e>1).map(({index:e,count:r})=>{let o=3*e,s=3*r;return null==n?new B(e,r,(0,i.l5)(t,o,s)):new z(e,r,(0,i.l5)(t,o,s),(0,i.l5)(n,o,s))}).toArray()}function F(e,t=0,n=e.length){return n>1&&e[t]===e[t+n-1]?n-1:n}class B{constructor(e,t,n){this.index=e,this.count=t,this.position=n}}class z extends B{constructor(e,t,n,r){super(e,t,n),this.mapPositions=r}}}}]);
|