@arcgis/core 4.33.0-next.20250228 → 4.33.0-next.20250302
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/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/066844a51cd22cbef0e6.js +1 -0
- package/assets/esri/core/workers/chunks/0ce1bfcdcccb679569f8.js +1 -0
- package/assets/esri/core/workers/chunks/0e164b19e4ea3aa73843.js +1 -0
- package/assets/esri/core/workers/chunks/12d798775a96a45aada2.js +1 -0
- package/assets/esri/core/workers/chunks/{f298cda10a9ffe35ea49.js → 1377ddd582518e5fa051.js} +1 -1
- package/assets/esri/core/workers/chunks/{95a5ed95f0060b43f38f.js → 15fe629cd4da1bb2169f.js} +1 -1
- package/assets/esri/core/workers/chunks/1a5f96b1b892ecceb36a.js +1 -0
- package/assets/esri/core/workers/chunks/{b4002b4fd99748fdf5da.js → 1e631e34ee495eb0e76e.js} +1 -1
- package/assets/esri/core/workers/chunks/22618753349eb9d8b3df.js +1 -0
- package/assets/esri/core/workers/chunks/25a686f00479ac12a1ca.js +1 -0
- package/assets/esri/core/workers/chunks/25ef080163f3f795911a.js +1 -0
- package/assets/esri/core/workers/chunks/{afdbdc1569b56489c14d.js → 29fe3e9a0ecab74bb729.js} +1 -1
- package/assets/esri/core/workers/chunks/2c091edee3601f345f5f.js +1 -0
- package/assets/esri/core/workers/chunks/2f23fc27d005ffa18f47.js +1 -0
- package/assets/esri/core/workers/chunks/2f818b9a6b1f2b61410d.js +978 -0
- package/assets/esri/core/workers/chunks/3010a22d00f45fce5939.js +1 -0
- package/assets/esri/core/workers/chunks/{05869484d7de75f86916.js → 33005043f7084048296d.js} +1 -1
- package/assets/esri/core/workers/chunks/{835fa4484c58d9b31c78.js → 3315de71eb8791189c05.js} +1 -1
- package/assets/esri/core/workers/chunks/{f7a055be225f3498baaf.js → 354117429b3a0a0794c9.js} +1 -1
- package/assets/esri/core/workers/chunks/361a3253877acd3b4f07.js +1 -0
- package/assets/esri/core/workers/chunks/{53bc621e2cbc519b2535.js → 36b406131cd864567033.js} +1 -1
- package/assets/esri/core/workers/chunks/385dd6466fd967ce3ae9.js +1 -0
- package/assets/esri/core/workers/chunks/394b9723d108cff7136e.js +1 -0
- package/assets/esri/core/workers/chunks/4395b7263a299a8020d4.js +1 -0
- package/assets/esri/core/workers/chunks/47c04980098dc0c228d7.js +1 -0
- package/assets/esri/core/workers/chunks/{d6ee6ebdaf582f39c14b.js → 4c8164955f8d844c09ee.js} +1 -1
- package/assets/esri/core/workers/chunks/{e4d7f1e685f69b3bf54d.js → 4c9160e3d596fe75392d.js} +1 -1
- package/assets/esri/core/workers/chunks/534f3d7e4300b662191a.js +1 -0
- package/assets/esri/core/workers/chunks/55c7c51e56d72f507c22.js +1 -0
- package/assets/esri/core/workers/chunks/5802406d0a239a27a9a3.js +1 -0
- package/assets/esri/core/workers/chunks/6ce738960ee47904968f.js +314 -0
- package/assets/esri/core/workers/chunks/{b12f2eaa15f6753fa1a8.js → 6ff981ec0c725efe5525.js} +1 -1
- package/assets/esri/core/workers/chunks/7ca33e03a2fd217b9443.js +1 -0
- package/assets/esri/core/workers/chunks/7d93ff4f18fd21c7b9f2.js +1 -0
- package/assets/esri/core/workers/chunks/{983d787730bf8b74fe13.js → 7ec2f531217718e76469.js} +1 -1
- package/assets/esri/core/workers/chunks/8196ff250c0de00104f7.js +1 -0
- package/assets/esri/core/workers/chunks/{ae25c6108918d37e61bf.js → 8278d9263e9b7e3bf2d1.js} +1 -1
- package/assets/esri/core/workers/chunks/852c32b5e717c54e3ae0.js +1 -0
- package/assets/esri/core/workers/chunks/856b03020b2dd047291d.js +1 -0
- package/assets/esri/core/workers/chunks/85a9025c2990a8bbd61b.js +1 -0
- package/assets/esri/core/workers/chunks/8b057b5a606ac3669a78.js +1 -0
- package/assets/esri/core/workers/chunks/8bf623f560b1ed440004.js +1 -0
- package/assets/esri/core/workers/chunks/8d421e0a01e2c3f6980c.js +1 -0
- package/assets/esri/core/workers/chunks/{f27828ba83846d686072.js → 97078a7871e243c19b6b.js} +1 -1
- package/assets/esri/core/workers/chunks/a68b48fd1a529f69705e.js +1 -0
- package/assets/esri/core/workers/chunks/{272662e4e28341419b4f.js → a73a262ddc959a59819f.js} +1 -1
- package/assets/esri/core/workers/chunks/{4253438dd3045566892d.js → aba4353892c47de98eb3.js} +1 -1
- package/assets/esri/core/workers/chunks/{14cb593dfb50c724b9eb.js → ac6b582ca180210e596c.js} +1 -1
- package/assets/esri/core/workers/chunks/af27a3f646a4404d3b8d.js +1 -0
- package/assets/esri/core/workers/chunks/{fc07d47d44c04f123650.js → b1e275607d9754079f60.js} +1 -1
- package/assets/esri/core/workers/chunks/b3c126e8a0a722c03efc.js +1 -0
- package/assets/esri/core/workers/chunks/b464b7800a2ddd92b9a7.js +1 -0
- package/assets/esri/core/workers/chunks/b52a3a48d2d3ff22542d.js +1 -0
- package/assets/esri/core/workers/chunks/be883ebdbaf11647b718.js +1 -0
- package/assets/esri/core/workers/chunks/bf9b45604249520b596a.js +1 -0
- package/assets/esri/core/workers/chunks/c0400c25c53fd90fc90e.js +1 -0
- package/assets/esri/core/workers/chunks/c2939e0c45a6d074cac0.js +1 -0
- package/assets/esri/core/workers/chunks/{fccf505dbd98e59e721a.js → c3dc8d1958ddc71e1129.js} +1 -1
- package/assets/esri/core/workers/chunks/c68c68e918c72932b247.js +1 -0
- package/assets/esri/core/workers/chunks/c8cd9a3175f516624842.js +1 -0
- package/assets/esri/core/workers/chunks/cc1aedb2b3aa3854b0de.js +1 -0
- package/assets/esri/core/workers/chunks/d374d2a1487faee3672d.js +1 -0
- package/assets/esri/core/workers/chunks/d630e64463687090db92.js +1 -0
- package/assets/esri/core/workers/chunks/dbdca19978fbee8dc106.js +1 -0
- package/assets/esri/core/workers/chunks/ddfb5a2055a36576ba0d.js +1 -0
- package/assets/esri/core/workers/chunks/e1a90f63d2e6c761953b.js +1 -0
- package/assets/esri/core/workers/chunks/{5b5d89b94e020b4bfcc1.js → e3b0bb6850d5252d5f24.js} +1 -1
- package/assets/esri/core/workers/chunks/{4235bb1334c95f3c828d.js → e45404a982e173459990.js} +1 -1
- package/assets/esri/core/workers/chunks/{b7a3d9c5d18e59da378f.js → eab1e3c101158675abba.js} +1 -1
- package/assets/esri/core/workers/chunks/{8a3290ee6e6587fa39a6.js → ed4afafbcb31491c2049.js} +1 -1
- package/assets/esri/core/workers/chunks/ef46613c3aa363dc1cfc.js +1 -0
- package/assets/esri/core/workers/chunks/{6c5877e4ad108a6d074e.js → f0351930cbb3d8643119.js} +1 -1
- package/assets/esri/core/workers/chunks/f31986ea5cadfade8344.js +1 -0
- package/assets/esri/core/workers/chunks/f350aefc5e348ebad1da.js +1 -0
- package/assets/esri/core/workers/chunks/{a2e52b40eeeda4282c07.js → f70dd16f14279bb7e60d.js} +1 -1
- package/assets/esri/core/workers/chunks/f995a74bd9b58c069c07.js +1 -0
- package/assets/esri/core/workers/chunks/{7437b7423c8b7fb4f0dd.js → fe3ed029b07bb1e4aef3.js} +1 -1
- package/assets/esri/core/workers/chunks/{e6e6247ea5ce0c2b125f.js → fe8ee1938d196a70d809.js} +1 -1
- package/assets/esri/themes/base/widgets/_LabeledSwitch.scss +0 -2
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ar.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_bg.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_bs.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ca.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_cs.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_da.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_de.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_el.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_es.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_et.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_fi.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_fr.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_he.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_hr.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_hu.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_id.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_it.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ja.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ko.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_lt.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_lv.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_nl.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_no.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_pl.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_pt-BR.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_pt-PT.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ro.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ru.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_sk.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_sl.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_sr.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_sv.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_th.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_tr.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_uk.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_vi.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_zh-CN.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_zh-HK.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_zh-TW.json +1 -1
- package/chunks/Envelope.js +1 -1
- package/chunks/{GeodeticDistanceCalculator-D4iQ-_NX.js → GeodeticDistanceCalculator-CcF1gMZX.js} +1 -1
- package/chunks/LineSeries.js +1 -1
- package/chunks/OperatorGeodeticArea.js +1 -1
- package/chunks/OperatorGeodeticDistance.js +1 -1
- package/chunks/OperatorProximityGeodesic.js +1 -1
- package/chunks/Point2D.js +1 -1
- package/chunks/ProjectionTransformation.js +1 -1
- package/chunks/QuadraticBezier.js +1 -1
- package/chunks/Theme.js +1 -1
- package/chunks/chartUtilsAm5.js +1 -1
- package/chunks/distanceOperator.js +1 -1
- package/core/timeUtils.js +1 -1
- package/editing/sharedTemplates/SharedTemplateProvider.js +1 -1
- package/editing/sharedTemplates/executor/createTemplateExecutor.js +1 -1
- package/editing/sharedTemplates/support/sharedTemplateErrors.js +1 -1
- package/editing/sharedTemplates/templateDefinitions/GroupTemplateDefinition.js +1 -1
- package/editing/templateUtils.js +1 -1
- package/geometry/operators/extendOperator.js +1 -1
- package/geometry/operators/gx/operatorAlphaShape.js +1 -1
- package/geometry/operators/gx/operatorBuffer.js +1 -1
- package/geometry/operators/gx/operatorConvexHull.js +1 -1
- package/geometry/operators/gx/operatorGraphicBuffer.js +1 -1
- package/geometry/operators/gx/operatorMinimumBoundingCircle.js +1 -1
- package/geometry/operators/gx/operatorPolygonOverlay.js +1 -1
- package/geometry/operators/gx/operatorPolygonSlicer.js +1 -1
- package/geometry/operators/isNearOperator.js +1 -1
- package/geometry/operators/support/jsonConverter.js +1 -1
- package/geometry/support/PolylineBuilder.js +5 -0
- package/geometry/support/TileClipper.js +1 -1
- package/interfaces.d.ts +9 -9
- package/intl/date.js +1 -1
- package/layers/graphics/sources/WFSSource.js +1 -1
- package/layers/graphics/sources/WFSSourceWorker.js +1 -1
- package/layers/graphics/sources/geojson/GeoJSONSourceWorker.js +1 -1
- package/layers/graphics/sources/support/CSVSourceWorker.js +1 -1
- package/layers/graphics/sources/support/MemorySourceWorker.js +1 -1
- package/layers/mixins/ImageryTileMixin.js +1 -1
- package/layers/ogc/ogcFeatureUtils.js +1 -1
- package/layers/support/FieldsIndex.js +1 -1
- package/layers/support/rasterFunctions/RemapFunction.js +1 -1
- package/layers/support/rasterFunctions/pixelUtils.js +1 -1
- package/networks/support/UtilityNetworkLookupHelper.js +5 -0
- package/package.json +2 -2
- package/smartMapping/support/utils.js +1 -1
- package/support/guards.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/CIMOperators.js +1 -1
- package/symbols/cim/CIMSymbolRasterizer.js +1 -1
- package/symbols/cim/defaultCIMValues.js +1 -1
- package/symbols/cim/effects/EffectEnclosingPolygon.js +5 -0
- package/symbols/cim/effects/EffectRadial.js +5 -0
- package/symbols/cim/effects/EffectTaperedPolygon.js +5 -0
- package/symbols/cim/utils.js +1 -1
- package/time/TimeExtent.js +1 -1
- package/time/constants.js +5 -0
- package/time/timeZoneUtils.js +1 -1
- package/views/2d/engine/webgl/TextureManager.js +1 -1
- package/views/2d/engine/webgl/Utils.js +1 -1
- package/views/2d/engine/webgl/mesh/factories/ResourceProxy.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/ComplexOutlineFillMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ComplexOutlineFillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/constants.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/RemapShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/math.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/typed/TypedShaderProgram.js +1 -1
- package/views/2d/engine/webgl/textureUtils.js +5 -0
- package/views/2d/engine/webgl/urlUtils.js +5 -0
- package/views/2d/layers/MediaLayerView2D.js +1 -1
- package/views/2d/layers/TileLayerView2D.js +1 -1
- package/views/2d/layers/features/FeaturePipelineWorker.js +1 -1
- package/views/2d/layers/features/sources/FeatureSource.js +1 -1
- package/views/2d/layers/features/sources/strategies/chunks/Overrides.js +1 -1
- package/views/2d/layers/features/sources/strategies/chunks/SourceChunkStore.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
- package/views/3d/terrain/TileRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/TextureCompressionWorkerHandle.js +1 -1
- package/views/VideoView.js +1 -1
- package/views/View.js +1 -1
- package/views/support/TextureCompressionHelper.js +1 -1
- package/views/webgl/Texture.js +1 -1
- package/webmap/InitialViewProperties.js +1 -1
- package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
- package/widgets/BatchAttributeForm/inputs/FieldInput.js +1 -1
- package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
- package/widgets/Bookmarks.js +1 -1
- package/widgets/Directions/DirectionsViewModel.js +1 -1
- package/widgets/Editor/AddAssociationWorkflow.js +1 -1
- package/widgets/Feature/FeatureUtilityNetworkAssociationList.js +1 -1
- package/widgets/Feature/FeatureViewModel.js +1 -1
- package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/AssociationDetails.js +1 -1
- package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/FeatureFormUtilityNetworkAssociationList.js +1 -1
- package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/UtilityNetworkAssociationSettings.js +1 -1
- package/widgets/FeatureForm/FeatureFormViewModel.js +1 -1
- package/widgets/FeatureForm/UtilityNetworkAssociationAddAssociationViewModel.js +1 -1
- package/widgets/FeatureForm/UtilityNetworkAssociationInput.js +1 -1
- package/widgets/FeatureForm/featureFormUtils.js +1 -1
- package/widgets/FeatureTable/FieldColumn.js +1 -1
- package/widgets/Features/FeaturesViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/sketch/DataCaptureAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/dataCaptureUtils.js +1 -1
- package/widgets/OrientedImageryViewer/symbols.js +1 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/TimeSlider.js +1 -1
- package/widgets/TimeZoneLabel.js +1 -1
- package/widgets/support/LabeledSwitch.js +1 -1
- package/widgets/support/UtilityNetworkAssociations/utils/createAssociation.js +5 -0
- package/widgets/support/UtilityNetworkAssociations/utils/formatPercentAlong.js +5 -0
- package/widgets/support/UtilityNetworkAssociations/utils/getAssociationTitle.js +5 -0
- package/widgets/support/UtilityNetworkAssociations/utils/getFeatureTitle.js +5 -0
- package/widgets/support/UtilityNetworkAssociations/utils/isConnectivity.js +5 -0
- package/widgets/support/UtilityNetworkAssociations/utils/isConnectivityMidspan.js +5 -0
- package/widgets/support/UtilityNetworkAssociations/utils/isFromElement.js +5 -0
- package/widgets/support/dateUtils.js +1 -1
- package/assets/esri/core/workers/chunks/0509af0f6c732a847531.js +0 -1
- package/assets/esri/core/workers/chunks/1461ca910c3dba1d808b.js +0 -1
- package/assets/esri/core/workers/chunks/19f45bb389daf866dbc5.js +0 -1
- package/assets/esri/core/workers/chunks/1c4cafb879f21a42f7db.js +0 -978
- package/assets/esri/core/workers/chunks/2626f4201deb7bdd4866.js +0 -1
- package/assets/esri/core/workers/chunks/2e1126a35976b2d48197.js +0 -1
- package/assets/esri/core/workers/chunks/2eadc555038a38afdc9c.js +0 -1
- package/assets/esri/core/workers/chunks/36f0446d9d47685b7ce0.js +0 -1
- package/assets/esri/core/workers/chunks/3cf3aa74541f0cfff94f.js +0 -1
- package/assets/esri/core/workers/chunks/3d46327469ed5170e83e.js +0 -1
- package/assets/esri/core/workers/chunks/440afa7d26e721af578a.js +0 -1
- package/assets/esri/core/workers/chunks/460e5f78574cc0d157af.js +0 -1
- package/assets/esri/core/workers/chunks/4de09a997691305415b1.js +0 -1
- package/assets/esri/core/workers/chunks/5066fc5257296d95fe60.js +0 -1
- package/assets/esri/core/workers/chunks/53315ca098d76d34cf00.js +0 -1
- package/assets/esri/core/workers/chunks/539190038ac552e5374c.js +0 -1
- package/assets/esri/core/workers/chunks/55162949a2b2c8e1c95c.js +0 -1
- package/assets/esri/core/workers/chunks/58853056c16f2b525a9e.js +0 -1
- package/assets/esri/core/workers/chunks/5af9737d0530ca17b771.js +0 -1
- package/assets/esri/core/workers/chunks/5c0dfc75a9b654e6fa25.js +0 -1
- package/assets/esri/core/workers/chunks/6245c51d1525767ce2fe.js +0 -1
- package/assets/esri/core/workers/chunks/6728185fdf53b4921bf8.js +0 -1
- package/assets/esri/core/workers/chunks/68cb0c3462c90f2d1538.js +0 -1
- package/assets/esri/core/workers/chunks/6affa0f3d5bb74c7a1db.js +0 -1
- package/assets/esri/core/workers/chunks/6e108fb9884139dd3b52.js +0 -314
- package/assets/esri/core/workers/chunks/6f9bfa6ed34ef6efcc6f.js +0 -1
- package/assets/esri/core/workers/chunks/70943dc884d9ba8045a2.js +0 -1
- package/assets/esri/core/workers/chunks/7fe799c1e60e23a976e9.js +0 -1
- package/assets/esri/core/workers/chunks/80395a1d8ae91ff3961b.js +0 -1
- package/assets/esri/core/workers/chunks/87b78e491c800c96b503.js +0 -1
- package/assets/esri/core/workers/chunks/8abd2235aa702d8b239f.js +0 -1
- package/assets/esri/core/workers/chunks/8bf29e5e4c93d85a6abf.js +0 -1
- package/assets/esri/core/workers/chunks/99838ad20c10aa5aa471.js +0 -1
- package/assets/esri/core/workers/chunks/9fb568d25ed4f4660963.js +0 -1
- package/assets/esri/core/workers/chunks/9ff9cf156d024ade068b.js +0 -1
- package/assets/esri/core/workers/chunks/a288c2474ef193f9fbd3.js +0 -1
- package/assets/esri/core/workers/chunks/a2d0f7d82630dd8efb9b.js +0 -1
- package/assets/esri/core/workers/chunks/a66c3866888bd7e415e8.js +0 -1
- package/assets/esri/core/workers/chunks/b3bbe6f569ab6a3777b5.js +0 -1
- package/assets/esri/core/workers/chunks/ba33405a524c6bb88656.js +0 -1
- package/assets/esri/core/workers/chunks/bb1fb9990f8bf5f7a05f.js +0 -1
- package/assets/esri/core/workers/chunks/c22664f9f2b4ba7fe3d4.js +0 -1
- package/assets/esri/core/workers/chunks/c83245257deb230f79c0.js +0 -1
- package/assets/esri/core/workers/chunks/d2f8eed0b5b7cbdcd182.js +0 -1
- package/assets/esri/core/workers/chunks/d56426def776aae6fac6.js +0 -1
- package/assets/esri/core/workers/chunks/e12882be1b6820b8e9e8.js +0 -1
- package/assets/esri/core/workers/chunks/e648f1c96edf44c781eb.js +0 -1
- package/assets/esri/core/workers/chunks/ef6e9dbfc9a5bd38a7b6.js +0 -1
- package/assets/esri/core/workers/chunks/f2723d0c9c8d8ff4ec70.js +0 -1
- package/assets/esri/core/workers/chunks/f45ef721d21388846101.js +0 -1
- package/assets/esri/core/workers/chunks/fdab6921d007929ab288.js +0 -1
- package/widgets/support/UtilityNetworkAssociations/utilityNetworkUtils.js +0 -5
- /package/chunks/{Bufferer-B-V7yYm-.js → Bufferer-CicaNej1.js} +0 -0
- /package/chunks/{Distance2DCalculator-Coa0qAFt.js → Distance2DCalculator-C1KHhZwD.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[708],{4197:(t,e,n)=>{n.d(e,{jh:()=>o,l5:()=>u,xm:()=>s});var r=n(34275);function o(t,e=!1){return t<=r.y9?e?new Array(t).fill(0):new Array(t):new Float64Array(t)}function s(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=r.y9?Array.from(t):new Float64Array(t)}function u(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}},27647:(t,e,n)=>{function r(t,e){return t?e?4:3:e?3:2}function o(t,e,n,o){if(!e?.lengths.length)return null;t.lengths.length&&(t.lengths.length=0),t.coords.length&&(t.coords.length=0);const i=t.coords,l=[],c=n?[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY]:[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY],{lengths:h,coords:f}=e,a=r(n,o);let d=0;for(const t of h){const e=s(c,f,d,t,n,o);e&&l.push(e),d+=t*a}if(l.sort(((t,e)=>{let r=t[2]-e[2];return 0===r&&n&&(r=t[4]-e[4]),r})),l.length){let t=6*l[0][2];i[0]=l[0][0]/t,i[1]=l[0][1]/t,n&&(t=6*l[0][4],i[2]=0!==t?l[0][3]/t:0),(i[0]<c[0]||i[0]>c[1]||i[1]<c[2]||i[1]>c[3]||n&&(i[2]<c[4]||i[2]>c[5]))&&(i.length=0)}if(!i.length){const t=e.lengths[0]?u(f,0,h[0],n,o):null;if(!t)return null;i[0]=t[0],i[1]=t[1],n&&t.length>2&&(i[2]=t[2])}return t}function s(t,e,n,o,s,u){const i=r(s,u);let l=n,c=n+i,h=0,f=0,a=0,d=0,m=0;for(let n=0,r=o-1;n<r;n++,l+=i,c+=i){const n=e[l],r=e[l+1],o=e[l+2],u=e[c],i=e[c+1],g=e[c+2];let y=n*i-u*r;d+=y,h+=(n+u)*y,f+=(r+i)*y,s&&(y=n*g-u*o,a+=(o+g)*y,m+=y),n<t[0]&&(t[0]=n),n>t[1]&&(t[1]=n),r<t[2]&&(t[2]=r),r>t[3]&&(t[3]=r),s&&(o<t[4]&&(t[4]=o),o>t[5]&&(t[5]=o))}if(d>0&&(d*=-1),m>0&&(m*=-1),!d)return null;const g=[h,f,.5*d];return s&&(g[3]=a,g[4]=.5*m),g}function u(t,e,n,o,s){const u=r(o,s);let f=e,a=e+u,d=0,m=0,g=0,y=0;for(let e=0,r=n-1;e<r;e++,f+=u,a+=u){const e=t[f],n=t[f+1],r=t[f+2],s=t[a],u=t[a+1],I=t[a+2],p=o?l(e,n,r,s,u,I):i(e,n,s,u);if(p)if(d+=p,o){const t=h(e,n,r,s,u,I);m+=p*t[0],g+=p*t[1],y+=p*t[2]}else{const t=c(e,n,s,u);m+=p*t[0],g+=p*t[1]}}return d>0?o?[m/d,g/d,y/d]:[m/d,g/d]:n>0?o?[t[e],t[e+1],t[e+2]]:[t[e],t[e+1]]:null}function i(t,e,n,r){const o=n-t,s=r-e;return Math.sqrt(o*o+s*s)}function l(t,e,n,r,o,s){const u=r-t,i=o-e,l=s-n;return Math.sqrt(u*u+i*i+l*l)}function c(t,e,n,r){return[t+.5*(n-t),e+.5*(r-e)]}function h(t,e,n,r,o,s){return[t+.5*(r-t),e+.5*(o-e),n+.5*(s-n)]}n.d(e,{Q:()=>o})},43334:(t,e,n)=>{n.d(e,{N3:()=>i,Om:()=>u});var r=n(69397),o=n(27647),s=n(92722);class u{constructor(t=null,e={},n,r,o=0){this.geometry=t,this.attributes=e,this.centroid=n,this.objectId=r,this.displayId=o}static fromJSON(t){const e=t.geometry?s.A.fromJSON(t.geometry):null,n=t.centroid?s.A.fromJSON(t.centroid):null,r=t.objectId;return new u(e,t.attributes,n,r)}weakClone(){const t=new u(this.geometry,this.attributes,this.centroid,this.objectId);return t.displayId=this.displayId,t}clone(){const t=this.geometry?.clone(),e=new u(t,{...this.attributes},this.centroid?.clone(),this.objectId);return e.displayId=this.displayId,e}ensureCentroid(t){return this.centroid??=(0,o.Q)(new s.A,this.geometry,t.hasZ,t.hasM),this.centroid}get usedMemory(){return 128+(0,r.lM)(this.attributes)+(this.geometry?.usedMemory??0)}}function i(t){return!!t.geometry?.coords?.length}},58512:(t,e,n)=>{n.d(e,{A:()=>r});class r{constructor(){this.objectIdFieldName=null,this.globalIdFieldName=null,this.geohashFieldName=null,this.geometryProperties=null,this.geometryType=null,this.spatialReference=null,this.hasZ=!1,this.hasM=!1,this.features=[],this.fields=[],this.transform=null,this.exceededTransferLimit=!1,this.uniqueIdField=null,this.queryGeometryType=null,this.queryGeometry=null}weakClone(){const t=new r;return t.objectIdFieldName=this.objectIdFieldName,t.globalIdFieldName=this.globalIdFieldName,t.geohashFieldName=this.geohashFieldName,t.geometryProperties=this.geometryProperties,t.geometryType=this.geometryType,t.spatialReference=this.spatialReference,t.hasZ=this.hasZ,t.hasM=this.hasM,t.features=this.features,t.fields=this.fields,t.transform=this.transform,t.exceededTransferLimit=this.exceededTransferLimit,t.uniqueIdField=this.uniqueIdField,t.queryGeometry=this.queryGeometry,t.queryGeometryType=this.queryGeometryType,t}}},69397:(t,e,n)=>{n.d(e,{$B:()=>o,Qf:()=>c,Qh:()=>i,RS:()=>s,ez:()=>a,i5:()=>d,lM:()=>u,qK:()=>f});var r=n(34275);function o(t){return 32+t.length}const s=16;function u(t){if(!t)return 0;let e=f;for(const n in t)t.hasOwnProperty(n)&&(e+=l(t[n],!1));return e}function i(t){if(!t)return 0;if("number"==typeof t[0])return c(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return h(t,8);let n=a;for(let r=0;r<e;r++)n+=l(t[r]);return n}(t);let e=f;for(const n in t)t.hasOwnProperty(n)&&(e+=l(t[n]));return e}function l(t,e=!0){switch(typeof t){case"object":return e?i(t):f;case"string":return o(t);case"number":return s;case"boolean":return 4;default:return 8}}function c(...t){return t.reduce(((t,e)=>t+(e?(0,r.iu)(e)?e.byteLength+d:Array.isArray(e)?h(e,s):0:0)),0)}function h(t,e){return a+t.length*e}const f=32,a=16,d=145},70328:(t,e,n)=>{n.d(e,{BI:()=>T,Ej:()=>I,Ie:()=>M,Jt:()=>w,Ne:()=>p,RF:()=>h,_F:()=>g,aI:()=>A,fA:()=>u,gE:()=>l,gX:()=>y,hZ:()=>b,iT:()=>f,is:()=>F,qv:()=>G,vI:()=>N,vY:()=>i,v_:()=>x,vt:()=>s,w1:()=>c});var r=n(5443),o=(n(19419),n(4197));function s(t=x){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function u(t,e,n,r,o,u,i=s()){return i[0]=t,i[1]=e,i[2]=n,i[3]=r,i[4]=o,i[5]=u,i}function i(t,e=s()){return function(t,e,n,r=s()){return b(r,G),function(t,e,n=0,r=e.length/3){let o=t[0],s=t[1],u=t[2],i=t[3],l=t[4],c=t[5];for(let t=0;t<r;t++)o=Math.min(o,e[n+3*t]),s=Math.min(s,e[n+3*t+1]),u=Math.min(u,e[n+3*t+2]),i=Math.max(i,e[n+3*t]),l=Math.max(l,e[n+3*t+1]),c=Math.max(c,e[n+3*t+2]);t[0]=o,t[1]=s,t[2]=u,t[3]=i,t[4]=l,t[5]=c}(r,t,e,n),r}(t,0,t.length/3,e)}function l(t,e=(0,o.jh)(24)){const[n,r,s,u,i,l]=t;return e[0]=n,e[1]=r,e[2]=s,e[3]=n,e[4]=r,e[5]=l,e[6]=n,e[7]=i,e[8]=s,e[9]=n,e[10]=i,e[11]=l,e[12]=u,e[13]=r,e[14]=s,e[15]=u,e[16]=r,e[17]=l,e[18]=u,e[19]=i,e[20]=s,e[21]=u,e[22]=i,e[23]=l,e}function c(t,e){const n=isFinite(t[2])||isFinite(t[5]);return new r.A(n?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function h(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t[4]=Math.max(t[4],e[4]),t[5]=Math.max(t[5],e[5])}function f(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[0]),t[4]=Math.max(t[4],e[1]),t[5]=Math.max(t[5],e[2])}function a(t){return t[0]>=t[3]?0:t[3]-t[0]}function d(t){return t[1]>=t[4]?0:t[4]-t[1]}function m(t){return t[2]>=t[5]?0:t[5]-t[2]}function g(t){const e=a(t),n=m(t),r=d(t);return Math.sqrt(e*e+n*n+r*r)}function y(t,e=[0,0,0]){return e[0]=t[0]+a(t)/2,e[1]=t[1]+d(t)/2,e[2]=t[2]+m(t)/2,e}function I(t,e=[0,0,0]){return e[0]=a(t),e[1]=d(t),e[2]=m(t),e}function p(t,e,n=t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n!==t&&(n[3]=t[3],n[4]=t[4],n[5]=t[5]),n}function N(t,e,n=t){return n[3]=e[0],n[4]=e[1],n[5]=e[2],n!==t&&(n[0]=t[0],n[1]=t[1],n[2]=t[2]),t}function b(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}function M(t){return t?b(t,G):s(G)}function w(t,e){return t[0]=e[0],t[1]=e[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=e[2],t[4]=e[3],t[5]=Number.POSITIVE_INFINITY,t}function T(t,e,n,r,o){return t[0]=e,t[1]=n,t[2]=Number.NEGATIVE_INFINITY,t[3]=r,t[4]=o,t[5]=Number.POSITIVE_INFINITY,t}function F(t){return 6===t.length}function A(t,e,n){if(null==t||null==e)return t===e;if(!F(t)||!F(e))return!1;if(n){for(let r=0;r<t.length;r++)if(!n(t[r],e[r]))return!1}else for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}const G=[1/0,1/0,1/0,-1/0,-1/0,-1/0],x=[0,0,0,0,0,0];s()},90708:(t,e,n)=>{n.d(e,{B2:()=>M,BW:()=>k,Ch:()=>ut,DF:()=>A,Di:()=>B,E2:()=>Q,IE:()=>b,Nl:()=>et,Q4:()=>it,Rk:()=>ct,Ux:()=>$,Ye:()=>z,ZF:()=>H,eU:()=>L,eY:()=>X,hK:()=>ft,jH:()=>tt,jQ:()=>st,kz:()=>nt,oN:()=>J,q3:()=>W,qK:()=>_,qN:()=>Y,z5:()=>S,zv:()=>D});var r=n(49186),o=n(53966),s=n(97768),u=n(70328),i=n(19419),l=n(65864),c=n(43334),h=n(58512),f=n(92722);function a(t,e){return t?e?4:3:e?3:2}const d=()=>o.A.getLogger("esri.layers.graphics.featureConversionUtils"),m={esriGeometryPoint:0,esriGeometryPolyline:2,esriGeometryPolygon:3,esriGeometryMultipoint:0,esriGeometryMultiPatch:3,esriGeometryEnvelope:0},g=(t,e,n,r,o,s)=>{t[n]=o,t[n+1]=s},y=(t,e,n,r,o,s)=>{t[n]=o,t[n+1]=s,t[n+2]=e[r+2]},I=(t,e,n,r,o,s)=>{t[n]=o,t[n+1]=s,t[n+2]=e[r+3]},p=(t,e,n,r,o,s)=>{t[n]=o,t[n+1]=s,t[n+2]=e[r+2],t[n+3]=e[r+3]};function N(t,e,n,r){if(t){if(n)return e&&r?p:y;if(e&&r)return I}else if(e&&r)return y;return g}function b({scale:t,translate:e},n){return Math.round((n-e[0])/t[0])}function M({scale:t,translate:e},n){return Math.round((e[1]-n)/t[1])}function w({scale:t,translate:e},n){return Math.round((n-e[0])/t[0])}function T({scale:t,translate:e},n){return Math.round((n-e[1])/t[1])}function F({scale:t,translate:e},n,r){return n*t[r]+e[r]}function A(t,e,n){return t?e?n?q(t):P(t):n?v(t):G(t):null}function G(t){const e=t.coords;return{x:e[0],y:e[1]}}function x(t,e){return t.coords[0]=e.x,t.coords[1]=e.y,t}function P(t){const e=t.coords;return{x:e[0],y:e[1],z:e[2]}}function E(t,e){return t.coords[0]=e.x,t.coords[1]=e.y,t.coords[2]=e.z,t}function v(t){const e=t.coords;return{x:e[0],y:e[1],m:e[2]}}function Z(t,e){return t.coords[0]=e.x,t.coords[1]=e.y,t.coords[2]=e.m,t}function q(t){const e=t.coords;return{x:e[0],y:e[1],z:e[2],m:e[3]}}function O(t,e){return t.coords[0]=e.x,t.coords[1]=e.y,t.coords[2]=e.z,t.coords[3]=e.m,t}function j(t,e){return t&&e?O:t?E:e?Z:x}function Y(t,e,n=j(null!=e.z,null!=e.m)){return n(t,e)}function _(t,e,n){if(null==t)return null;const r=a(e,n),o=[];for(let e=0;e<t.coords.length;e+=r){const n=[];for(let o=0;o<r;o++)n.push(t.coords[e+o]);o.push(n)}return e?n?{points:o,hasZ:e,hasM:n}:{points:o,hasZ:e}:n?{points:o,hasM:n}:{points:o}}function V(t,e,n=a(e.hasZ,e.hasM)){t.lengths[0]=e.points.length;const r=t.coords;let o=0;for(const t of e.points)for(let e=0;e<n;e++)r[o++]=t[e];return t}function k(t,e,n){if(!t)return null;const r=a(e,n),{coords:o,lengths:s}=t,u=[];let i=0;for(const t of s){const e=[];for(let n=0;n<t;n++){const t=[];for(let e=0;e<r;e++)t.push(o[i++]);e.push(t)}u.push(e)}return e?n?{paths:u,hasZ:e,hasM:n}:{paths:u,hasZ:e}:n?{paths:u,hasM:n}:{paths:u}}function R(t,e,n=a(e.hasZ,e.hasM)){const{lengths:r,coords:o}=t;let s=0;for(const t of e.paths){for(const e of t)for(let t=0;t<n;t++)o[s++]=e[t];r.push(t.length)}return t}function S(t,e,n){if(!t)return null;const r=a(e,n),{coords:o,lengths:s}=t,u=[];let i=0;for(const t of s){const e=[];for(let n=0;n<t;n++){const t=[];for(let e=0;e<r;e++)t.push(o[i++]);e.push(t)}u.push(e)}return e?n?{rings:u,hasZ:e,hasM:n}:{rings:u,hasZ:e}:n?{rings:u,hasM:n}:{rings:u}}function z(t,e,n=e.hasZ,r=e.hasM){return L(t,e.rings,n,r)}function L(t,e,n,r){const o=a(n,r),{lengths:s,coords:u}=t;let i=0;at(t);for(const t of e){for(const e of t)for(let t=0;t<o;t++)u[i++]=e[t];s.push(t.length)}return t}const C=[],U=[];function Q(t,e,n,r,o){C[0]=t;const[s]=B(U,C,e,n,r,o);return dt(C),dt(U),s}function B(t,e,n,o,s,u){if(dt(t),!n){for(const n of e){const e=u?n.attributes[u]:void 0;t.push(new c.Om(null,n.attributes,null,e))}return t}switch(n){case"esriGeometryPoint":return function(t,e,n,r,o){const s=j(n,r);for(const{geometry:n,attributes:r}of e){const e=null!=n?s(new f.A,n):null;t.push(new c.Om(e,r,null,o?r[o]:void 0))}return t}(t,e,o,s,u);case"esriGeometryMultipoint":return function(t,e,n,r,o){const s=a(n,r);for(const{geometry:n,attributes:r}of e){const e=null!=n?V(new f.A,n,s):null;t.push(new c.Om(e,r,null,o?r[o]:void 0))}return t}(t,e,o,s,u);case"esriGeometryPolyline":return function(t,e,n,r,o){const s=a(n,r);for(const{geometry:n,attributes:r,centroid:u}of e){const e=null!=n?R(new f.A,n,s):null,i=null!=u?Y(new f.A,u):null;t.push(new c.Om(e,r,i,o?r[o]:void 0))}return t}(t,e,o,s,u);case"esriGeometryPolygon":case"esriGeometryMultiPatch":return function(t,e,n,r,o){for(const{geometry:s,centroid:u,attributes:i}of e){const e=null!=s?z(new f.A,s,n,r):null,l=o?i[o]:void 0;null!=u?t.push(new c.Om(e,i,x(new f.A,u),l)):t.push(new c.Om(e,i,null,l))}return t}(t,e,o,s,u);default:d().error("convertToFeatureSet:unknown-geometry",new r.A(`Unable to parse unknown geometry type '${n}'`)),dt(t)}return t}function J(t,e,n,r){U[0]=t,K(C,U,e,n,r);const o=C[0];return dt(C),dt(U),o}function $(t,e,n){if(null==t)return null;const o=new f.A;return"hasZ"in t&&null==e&&(e=t.hasZ),"hasM"in t&&null==n&&(n=t.hasM),(0,l.fT)(t)?j(null!=e?e:null!=t.z,null!=n?n:null!=t.m)(o,t):(0,l.Bi)(t)?z(o,t,e,n):(0,l.Rg)(t)?R(o,t,a(e,n)):(0,l.U9)(t)?V(o,t,a(e,n)):void d().error("convertFromGeometry:unknown-geometry",new r.A(`Unable to parse unknown geometry type '${t}'`))}function D(t,e,n,o){const s=t&&("coords"in t?t:t.geometry);if(null==s)return null;switch(e){case"esriGeometryPoint":{let t=G;return n&&o?t=q:n?t=P:o&&(t=v),t(s)}case"esriGeometryMultipoint":return _(s,n,o);case"esriGeometryPolyline":return k(s,n,o);case"esriGeometryPolygon":return S(s,n,o);default:return d().error("convertToGeometry:unknown-geometry",new r.A(`Unable to parse unknown geometry type '${e}'`)),null}}function K(t,e,n,o,s){if(dt(t),null==n)return function(t,e){for(const n of e)t.push({attributes:n.attributes});return t}(t,e);switch(n){case"esriGeometryPoint":return function(t,e,n,r){let o=G;n&&r?o=q:n?o=P:r&&(o=v);for(const n of e){const{geometry:e,attributes:r}=n,s=null!=e?o(e):null;t.push({attributes:r,geometry:s})}return t}(t,e,o,s);case"esriGeometryMultipoint":return function(t,e,n,r){for(const{geometry:o,attributes:s}of e)t.push({attributes:s,geometry:null!=o?_(o,n,r):null});return t}(t,e,o,s);case"esriGeometryPolyline":return function(t,e,n,r){for(const{geometry:o,attributes:s}of e)t.push({attributes:s,geometry:null!=o?k(o,n,r):null});return t}(t,e,o,s);case"esriGeometryPolygon":return function(t,e,n,r){for(const{geometry:o,attributes:s,centroid:u}of e){const e=null!=o?S(o,n,r):null;if(null!=u){const n=G(u);t.push({attributes:s,centroid:n,geometry:e})}else t.push({attributes:s,geometry:e})}return t}(t,e,o,s);default:d().error("convertToFeatureSet:unknown-geometry",new r.A(`Unable to parse unknown geometry type '${n}'`))}return t}function H(t){const{objectIdFieldName:e,spatialReference:n,transform:r,fields:o,hasM:s,hasZ:u,features:i,geometryType:l,exceededTransferLimit:c,uniqueIdField:h,queryGeometry:f,queryGeometryType:a}=t,d={features:K([],i,l,u,s),fields:o,geometryType:l,objectIdFieldName:e,spatialReference:n,uniqueIdField:h,queryGeometry:D(f,a,!1,!1)};return r&&(d.transform=r),c&&(d.exceededTransferLimit=c),s&&(d.hasM=s),u&&(d.hasZ=u),d}function W(t,e){const n=new h.A,{hasM:o,hasZ:s,features:u,objectIdFieldName:i,spatialReference:l,geometryType:c,exceededTransferLimit:f,transform:a,fields:m}=t;return m&&(n.fields=m),n.geometryType=c??null,n.objectIdFieldName=i??e??null,n.spatialReference=l??null,n.objectIdFieldName?(u&&B(n.features,u,c,s,o,n.objectIdFieldName),f&&(n.exceededTransferLimit=f),o&&(n.hasM=o),s&&(n.hasZ=s),a&&(n.transform=a),n):(d().error(new r.A("optimized-features:invalid-objectIdFieldName","objectIdFieldName is missing")),n)}function X(t){const{transform:e,features:n,hasM:r,hasZ:o}=t;if(!e)return t;for(const t of n)null!=t.geometry&&ut(t.geometry,t.geometry,r,o,e),null!=t.centroid&&ut(t.centroid,t.centroid,r,o,e);return t.transform=null,t}function tt(t,e){const{geometryType:n,features:r,hasM:o,hasZ:s}=e;if(!t)return e;for(let e=0;e<r.length;e++){const u=r[e],i=u.weakClone();i.geometry=new f.A,et(i.geometry,u.geometry,o,s,n,t),u.centroid&&(i.centroid=new f.A,et(i.centroid,u.centroid,o,s,"esriGeometryPoint",t)),r[e]=i}return e.transform=t,e}function et(t,e,n,r,o,s,u=n,i=r){if(at(t),!e?.coords.length)return null;const l=m[o],{coords:c,lengths:h}=e,f=a(n,r),d=a(n&&u,r&&i),g=N(n,r,u,i);if(!h.length)return g(t.coords,c,0,0,b(s,c[0]),M(s,c[1])),at(t,f,0),t;let y,I,p,w,T=0,F=0,A=F;for(const e of h){if(e<l)continue;let n=0;F=A,p=y=b(s,c[T]),w=I=M(s,c[T+1]),g(t.coords,c,F,T,p,w),n++,T+=f,F+=d;for(let r=1;r<e;r++,T+=f)p=b(s,c[T]),w=M(s,c[T+1]),p===y&&w===I||(g(t.coords,c,F,T,p-y,w-I),F+=d,n++,y=p,I=w);n>=l&&(t.lengths.push(n),A=F)}return dt(t.coords,A),t.coords.length?t:null}function nt(t,e,n,r,o,s,u=n,i=r){if(at(t),!e?.coords.length)return null;const l=m[o],{coords:c,lengths:h}=e,f=a(n,r),d=a(n&&u,r&&i),g=N(n,r,u,i);if(!h.length)return g(t.coords,c,0,0,c[0],c[1]),at(t,f,0),t;let y=0;const I=s*s;for(const e of h){if(e<l){y+=e*f;continue}const n=t.coords.length/d,r=y,o=y+(e-1)*f;g(t.coords,c,t.coords.length,r,c[r],c[r+1]),ot(t.coords,c,f,I,g,r,o),g(t.coords,c,t.coords.length,o,c[o],c[o+1]);const s=t.coords.length/d-n;s>=l?t.lengths.push(s):dt(t.coords,n*d),y+=e*f}return t.coords.length?t:null}function rt(t,e,n,r){const o=t[e],s=t[e+1],u=t[n],i=t[n+1],l=t[r],c=t[r+1];let h=u,f=i,a=l-h,d=c-f;if(0!==a||0!==d){const t=((o-h)*a+(s-f)*d)/(a*a+d*d);t>1?(h=l,f=c):t>0&&(h+=a*t,f+=d*t)}return a=o-h,d=s-f,a*a+d*d}function ot(t,e,n,r,o,s,u){let i,l=r,c=0;for(let t=s+n;t<u;t+=n)i=rt(e,t,s,u),i>l&&(c=t,l=i);l>r&&(c-s>n&&ot(t,e,n,r,o,s,c),o(t,e,t.length,c,e[c],e[c+1]),u-c>n&&ot(t,e,n,r,o,c,u))}function st(t,e,n,r){if(!e?.coords?.length)return null;const o=a(n,r);let s=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY,h=Number.NEGATIVE_INFINITY;if(e&&e.coords){const t=e.coords;for(let e=0;e<t.length;e+=o){const n=t[e],r=t[e+1];s=Math.min(s,n),c=Math.max(c,n),l=Math.min(l,r),h=Math.max(h,r)}}return(0,u.is)(t)?(0,u.BI)(t,s,l,c,h):(0,i.fA)(s,l,c,h,t),t}function ut(t,e,n,r,o){const{coords:u,lengths:i}=e,l=a(n,r);if(!u.length)return t!==e&&at(t),t;(0,s.Lw)(o);const{originPosition:c,scale:h,translate:f}=o,d=mt;d.originPosition=c;const m=d.scale;m[0]=h[0]??1,m[1]=-(h[1]??1),m[2]=h[2]??1,m[3]=h[3]??1;const g=d.translate;if(g[0]=f[0]??0,g[1]=f[1]??0,g[2]=f[2]??0,g[3]=f[3]??0,!i.length){for(let e=0;e<l;++e)t.coords[e]=F(d,u[e],e);return t!==e&&at(t,l,0),t}let y=0;for(let e=0;e<i.length;e++){const n=i[e];t.lengths[e]=n;for(let e=0;e<l;++e)t.coords[y+e]=F(d,u[y+e],e);let r=t.coords[y],o=t.coords[y+1];y+=l;for(let e=1;e<n;e++,y+=l){r+=u[y]*m[0],o+=u[y+1]*m[1],t.coords[y]=r,t.coords[y+1]=o;for(let e=2;e<l;++e)t.coords[y+e]=F(d,u[y+e],e)}}return t!==e&&at(t,u.length,i.length),t}function it(t,e,n,r,o,s){if(at(t),t.lengths.push(...e.lengths),n===o&&r===s)for(let n=0;n<e.coords.length;n++)t.coords.push(e.coords[n]);else{const u=a(n,r),i=N(n,r,o,s),l=e.coords;for(let e=0;e<l.length;e+=u)i(t.coords,l,t.coords.length,e,l[e],l[e+1])}return t}function lt(t,e,n,r){let o=0,s=t[r*e],u=t[r*(e+1)];for(let i=1;i<n;i++){const n=s+t[r*(e+i)],l=u+t[r*(e+i)+1],c=(n-s)*(l+u);s=n,u=l,o+=c}return.5*o}function ct(t,e){const{coords:n,lengths:r}=t;let o=0,s=0;for(let t=0;t<r.length;t++){const u=r[t];s+=lt(n,o,u,e),o+=u}return Math.abs(s)}function ht(t,e,n,r){return 0==t*r-n*e&&t*n+e*r>0}function ft(t,e,n,r,o){const s=a(r,o);if(!t.lengths.length){if(t.coords.length<2)return null;const[n,r]=t.coords,o=w(e,n),s=T(e,r);return new f.A([],[o,s])}const u=new f.A([],[0,0]),i=m[n],l="esriGeometryPolygon"===n||"esriGeometryPolyline"===n;let c=0,h=0;for(let n=0;n<t.lengths.length;n++){const r=t.lengths[n],o=h;let f=w(e,t.coords[s*c]),a=T(e,t.coords[s*c+1]);u.coords[h++]=f,u.coords[h++]=a;let d=0,m=0,g=1;for(let n=1;n<r;n++){const r=w(e,t.coords[s*(n+c)]),o=T(e,t.coords[s*(n+c)+1]);if(r!==f||o!==a){const t=r-f,e=o-a;l&&ht(d,m,t,e)?(u.coords[h-2]+=t,u.coords[h-1]+=e,f+=t,a+=e):(u.coords[h++]=r,u.coords[h++]=o,f=r,a=o,d=t,m=e,g+=1)}}g<i?h=o:u.lengths.push(g),c+=r}return 0===u.lengths.length?null:u}function at(t,e=0,n=0){dt(t.lengths,n),dt(t.coords,e)}function dt(t,e=0){t.length!==e&&(t.length=e)}const mt={originPosition:"lowerLeft",scale:[1,1,1,1],translate:[0,0,0,0]}},92722:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(69397);class o{constructor(t=[],e=[]){this.lengths=t??[],this.coords=e??[]}static fromJSON(t){return new o(t.lengths,t.coords)}static fromRect(t){const[e,n,r,s]=t,u=r-e,i=s-n;return new o([5],[e,n,u,0,0,i,-u,0,0,-i])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.lengths.reduce(((t,e)=>t+e))}get usedMemory(){return 64+(0,r.Qf)(this.lengths,this.coords)}area(){let t=0,e=0;if(!this.lengths.length)return 0;for(let n=0;n<this.lengths.length;n++){const r=this.lengths[n];if(r<3)continue;let o=this.coords[2*e],s=this.coords[2*e+1];for(let n=1;n<r;n+=1){const r=this.coords[2*(n+e)],u=this.coords[2*(n+e)+1];t+=-.5*(r-o)*(u+s),o=r,s=u}e+=r}return t}forEachVertex(t){let e=0;this.lengths.length||t(this.coords[0],this.coords[1]);for(let n=0;n<this.lengths.length;n++){const r=this.lengths[n];for(let n=0;n<r;n++)t(this.coords[2*(n+e)],this.coords[2*(n+e)+1]);e+=r}}deltaDecode(){const t=this.clone(),{coords:e,lengths:n}=t;let r=0;for(const t of n){for(let n=1;n<t;n++)e[2*(r+n)]+=e[2*(r+n)-2],e[2*(r+n)+1]+=e[2*(r+n)-1];r+=t}return t}clone(t){if(0===this.lengths.length)return new o([],[this.coords[0],this.coords[1]]);const e=2*(0===this.lengths.length?1:this.lengths.reduce(((t,e)=>t+e))),n=this.coords.slice(0,e);return t?(t.set(n),new o(this.lengths,t)):new o(Array.from(this.lengths),Array.from(n))}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3920,8256],{1689:(t,e,r)=>{r.r(e),r.d(e,{default:()=>D});var n=r(90237),o=r(78888),s=r(49186),i=r(34727),a=r(92071),u=r(36708),l=r(10107),p=(r(44208),r(53966),r(87811),r(36005)),c=r(40608),d=r(5443),f=r(82799),h=r(16930),y=r(4146),m=r(63074),g=r(69208),v=r(25036),b=r(60694),M=r(10873),w=r(69540),x=r(25482);let _=class extends(w.A.ClonableMixin(x.A)){constructor(t){super(t),this.framerate=null,this.containerFormat=null,this.gop=null,this.aspectRatio=null,this.klv=null}};(0,n._)([(0,l.MZ)({type:String})],_.prototype,"framerate",void 0),(0,n._)([(0,l.MZ)({type:String})],_.prototype,"containerFormat",void 0),(0,n._)([(0,l.MZ)({type:Number})],_.prototype,"gop",void 0),(0,n._)([(0,l.MZ)({type:String})],_.prototype,"aspectRatio",void 0),(0,n._)([(0,l.MZ)({type:Object})],_.prototype,"klv",void 0),_=(0,n._)([(0,c.$)("esri.layers.support.PlaybackInfo")],_);const S=_;var A=r(22453),O=r(64422);let C=class extends(w.A.ClonableMixin(x.A)){constructor(t){super(t),this.frame=null,this.frameCenter=null,this.frameOutline=null,this.lineOfSight=null,this.sensorLocation=null,this.sensorTrail=null}};(0,n._)([(0,l.MZ)({type:Boolean})],C.prototype,"frame",void 0),(0,n._)([(0,l.MZ)({type:Boolean})],C.prototype,"frameCenter",void 0),(0,n._)([(0,l.MZ)({type:Boolean})],C.prototype,"frameOutline",void 0),(0,n._)([(0,l.MZ)({type:Boolean})],C.prototype,"lineOfSight",void 0),(0,n._)([(0,l.MZ)({type:Boolean})],C.prototype,"sensorLocation",void 0),(0,n._)([(0,l.MZ)({type:Boolean})],C.prototype,"sensorTrail",void 0),C=(0,n._)([(0,c.$)("esri.layers.support.TelemetryDisplay")],C);const E=C;var Z=r(69622),T=r(43937),I=r(86738);let F=class extends Z.A{constructor(){super(...arguments),this.sourcePoint=null,this.mapPoint=null}};(0,n._)([(0,l.MZ)()],F.prototype,"sourcePoint",void 0),(0,n._)([(0,l.MZ)({type:I.A})],F.prototype,"mapPoint",void 0),F=(0,n._)([(0,c.$)("esri.layers.support.VideoFrame.ControlPoint")],F);let j=class extends(w.A.ClonableMixin(x.A)){constructor(t){super(t),this.frame=null,this.controlPoints=null}readControlPoints(t){return t.map((t=>({sourcePoint:{x:t.frameX,y:t.frameY},mapPoint:new I.A(t.point)})))}writeControlPoints(t,e){null!=t&&function(t){return null!=t?.sourcePoint&&null!=t.mapPoint}(t[0])&&(e.controlPoints=t.map((t=>{const e=t.sourcePoint,r=t.mapPoint;return{frameX:e.x,frameY:e.y,point:r.toJSON()}})))}};(0,n._)([(0,l.MZ)({type:String})],j.prototype,"frame",void 0),(0,n._)([(0,l.MZ)({type:[F],json:{write:{allowNull:!1,isRequired:!0}}})],j.prototype,"controlPoints",void 0),(0,n._)([(0,p.w)("controlPoints")],j.prototype,"readControlPoints",null),(0,n._)([(0,T.K)("controlPoints")],j.prototype,"writeControlPoints",null),j=(0,n._)([(0,c.$)("esri.layers.support.VideoFrame")],j);const R=j;var P=r(3930),N=r(48457);let B=class extends((0,m.dM)((0,v.j)((0,a.P)((0,g.d)(y.A))))){constructor(t){super(t),this._trailPoints=[],this.capabilities=null,this.connectionInfo=null,this.controller=new P.default,this.copyright=null,this.created=null,this.description=null,this.elevationSource=null,this.frame=null,this.frameCount=null,this.fullExtent=null,this.initialExtent=null,this.layerId=null,this.playbackInfo=null,this.posterUrl=null,this.qualities=null,this.serviceItemId=null,this.sourceJSON=null,this.sourceQuality=null,this.sourceType=null,this.spatialReference=h.A.WGS84,this.telemetryDisplay=null,this.title=null,this.type="video",this.url=null,this.videoLayersInfo=null,this.videoTimeExtent=null}initialize(){this.telemetryDisplay=new E({frame:!1,frameCenter:!1,frameOutline:!0,lineOfSight:!0,sensorLocation:!0,sensorTrail:!0}),this.addHandles([(0,u.wB)((()=>this.metadata),(()=>{this.notifyChange("telemetry"),this.notifyChange("groundControlPoints"),this.notifyChange("frameHorizonPoints")})),(0,u.wB)((()=>this.telemetry?.sensorLocation),(t=>this._setSensorTrail(t)),u.Vh)])}load(t){const e=null!=t?t.signal:null;return this.addResolvingPromise(this._fetchService(e)),Promise.resolve(this)}get buffered(){return this.controller.buffered}readCapabilitiesFromService(t,e){return(0,A.d)(e)}readConnectionInfo(t,e){const r=Object.values(e.connectionUrl);return r?.length&&(this.controller.playerUrl=r[0]),e.connectionUrl}get currentTime(){return this.controller.currentTime}get duration(){return this.controller.duration}get ended(){return this.controller.ended}get frameHorizonPoints(){return(0,N.SC)(this.metadata)}get groundControlPoints(){return(0,N.I0)(this.metadata)}get loop(){return this.controller.loop}set loop(t){this.controller.loop=t}get metadata(){return this.controller?.currentMetadata}get mimeType(){return this.controller?.mimeType}get muted(){return this.controller.muted}set muted(t){this.controller.muted=t}get playbackRate(){return this.controller.rate}set playbackRate(t){this.controller.rate=t}get playerUrl(){return this.controller.playerUrl}get playing(){return this.controller.playing}get state(){return this.controller.state}get telemetry(){return(0,N.YI)(this.metadata)}get videoElement(){return this.controller?.element}get videoHeight(){return this.controller?.videoHeight}readLayerInfosFromService(t,e){return(0,N.Yv)(e)}get videoWidth(){return this.controller?.videoWidth}get waiting(){return this.controller.waiting}play(){this.controller.play()}pause(){this.controller.pause()}reset(){this.controller.reset()}setCurrentTime(t){if(!this.duration)return;const e=(0,i.qE)(t,0,this.duration);this.controller.setCurrentTime(e)}toGround(t,e){return this.controller?.sensorModel?.metadataSupportsTransforms?this.controller.sensorModel.transformImageToGeo(t,e):null}toVideo(t){if(!this.controller?.sensorModel?.metadataSupportsTransforms)return null;const e=this.controller.sensorModel.transformGeoToImage(t.x,t.y,t.z);return{x:e[0],y:e[1]}}async _fetchService(t){if(this.sourceJSON)return void this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl});const e=(0,b.qg)(this.parsedUrl?.path);if(null==e)throw new s.A("arcgis-layers:url-mismatch","The url is not a valid arcgis resource");let r=null;const{data:n,ssl:i}=await(0,o.A)(e.url.path,{query:{f:"json",...this.parsedUrl.query,...this.customParameters},signal:t}),a=n;if(this.url=e.url.path,i&&(this.url=this.url.replace(/^http:/i,"https:")),!a?.currentVersion)return a.currentVersion="11.2",this.sourceJSON=a,void this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl});let u=e?.sublayer;if(null==u&&a.layers?.length&&(u=a.layers[0].id),null==u)throw new s.A("arcgis-layers:url-mismatch","The url is not a valid arcgis resource");this.url=`${e.url.path}/${u}`,r=await(0,o.A)(this.url,{query:{f:"json",...this.customParameters},signal:t});const l={...a,...r.data};this.sourceJSON=l,this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl})}_setSensorTrail(t){if(!t)return;const e=(0,N.yQ)(t,this._trailPoints);this._trailPoints=[...e];const r=this._trailPoints.map((t=>t.toArray())),n=new f.A({hasZ:t.hasZ,paths:[r]});this.telemetry.sensorTrail=n.clone()}};(0,n._)([(0,l.MZ)({readOnly:!0})],B.prototype,"buffered",null),(0,n._)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],B.prototype,"capabilities",void 0),(0,n._)([(0,p.w)("service","capabilities",["supportsAppend","supportsCoverageQuery","supportsExportClip","supportsExportFrameset","supportsMensuration","supportsUpdate"])],B.prototype,"readCapabilitiesFromService",null),(0,n._)([(0,l.MZ)({readOnly:!0})],B.prototype,"connectionInfo",void 0),(0,n._)([(0,p.w)("connectionInfo",["connectionUrl"])],B.prototype,"readConnectionInfo",null),(0,n._)([(0,l.MZ)()],B.prototype,"controller",void 0),(0,n._)([(0,l.MZ)({type:String})],B.prototype,"copyright",void 0),(0,n._)([(0,l.MZ)({readOnly:!0,type:Date})],B.prototype,"created",void 0),(0,n._)([(0,l.MZ)({type:Number})],B.prototype,"currentTime",null),(0,n._)([(0,l.MZ)({type:String})],B.prototype,"description",void 0),(0,n._)([(0,l.MZ)({type:Number})],B.prototype,"duration",null),(0,n._)([(0,l.MZ)({readOnly:!0})],B.prototype,"elevationSource",void 0),(0,n._)([(0,l.MZ)({type:Boolean})],B.prototype,"ended",null),(0,n._)([(0,l.MZ)({type:R})],B.prototype,"frame",void 0),(0,n._)([(0,l.MZ)({readOnly:!0,type:Number})],B.prototype,"frameCount",void 0),(0,n._)([(0,l.MZ)({type:d.A})],B.prototype,"fullExtent",void 0),(0,n._)([(0,l.MZ)({readOnly:!0})],B.prototype,"frameHorizonPoints",null),(0,n._)([(0,l.MZ)({readOnly:!0})],B.prototype,"groundControlPoints",null),(0,n._)([(0,l.MZ)({type:d.A})],B.prototype,"initialExtent",void 0),(0,n._)([(0,l.MZ)({readOnly:!0,json:{read:{source:"id"}}})],B.prototype,"layerId",void 0),(0,n._)([(0,l.MZ)({type:Boolean})],B.prototype,"loop",null),(0,n._)([(0,l.MZ)({readOnly:!0})],B.prototype,"metadata",null),(0,n._)([(0,l.MZ)({readOnly:!0})],B.prototype,"mimeType",null),(0,n._)([(0,l.MZ)({type:Boolean})],B.prototype,"muted",null),(0,n._)([(0,l.MZ)({type:S})],B.prototype,"playbackInfo",void 0),(0,n._)([(0,l.MZ)({type:Number})],B.prototype,"playbackRate",null),(0,n._)([(0,l.MZ)({type:String})],B.prototype,"playerUrl",null),(0,n._)([(0,l.MZ)({readOnly:!0})],B.prototype,"playing",null),(0,n._)([(0,l.MZ)({readOnly:!0,json:{read:{source:"poster"}}})],B.prototype,"posterUrl",void 0),(0,n._)([(0,l.MZ)({readOnly:!0})],B.prototype,"qualities",void 0),(0,n._)([(0,l.MZ)({readOnly:!0})],B.prototype,"serviceItemId",void 0),(0,n._)([(0,l.MZ)()],B.prototype,"sourceJSON",void 0),(0,n._)([(0,l.MZ)({readOnly:!0})],B.prototype,"sourceQuality",void 0),(0,n._)([(0,l.MZ)({readOnly:!0,json:{name:"serviceType"}})],B.prototype,"sourceType",void 0),(0,n._)([(0,l.MZ)()],B.prototype,"spatialReference",void 0),(0,n._)([(0,l.MZ)({readOnly:!0,type:String})],B.prototype,"state",null),(0,n._)([(0,l.MZ)({readOnly:!0,type:O.A})],B.prototype,"telemetry",null),(0,n._)([(0,l.MZ)({type:E})],B.prototype,"telemetryDisplay",void 0),(0,n._)([(0,l.MZ)({readOnly:!1,json:{read:{source:"name"}}})],B.prototype,"title",void 0),(0,n._)([(0,l.MZ)({readOnly:!0})],B.prototype,"type",void 0),(0,n._)([(0,l.MZ)(M.OZ)],B.prototype,"url",void 0),(0,n._)([(0,l.MZ)({readOnly:!0})],B.prototype,"videoElement",null),(0,n._)([(0,l.MZ)({readOnly:!0})],B.prototype,"videoHeight",null),(0,n._)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],B.prototype,"videoLayersInfo",void 0),(0,n._)([(0,p.w)("service","videoLayersInfo",["id","name","poster","serviceType","type"])],B.prototype,"readLayerInfosFromService",null),(0,n._)([(0,l.MZ)({readOnly:!0,nonNullable:!1,json:{read:{reader:N.nX,source:"time"}}})],B.prototype,"videoTimeExtent",void 0),(0,n._)([(0,l.MZ)({readOnly:!0})],B.prototype,"videoWidth",null),(0,n._)([(0,l.MZ)({readOnly:!0})],B.prototype,"waiting",null),B=(0,n._)([(0,c.$)("esri.layers.VideoLayer")],B);const D=B},4146:(t,e,r)=>{r.d(e,{A:()=>M});var n=r(90237),o=r(78888),s=r(49186),i=r(65529),a=r(4902),u=r(92474),l=r(53966),p=r(74887),c=r(84952),d=r(10107),f=(r(44208),r(87811),r(40608)),h=r(5443),y=r(16930),m=r(92602),g=r(79677);let v=0,b=class extends(i.A.EventedMixin(a.A.IdentifiableMixin(u.A))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new h.A(-180,-90,180,90,y.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+v++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=y.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(t){const e="string"==typeof t?{url:t}:t;return(await r.e(7982).then(r.bind(r,27982))).fromUrl(e)}static fromPortalItem(t){return async function(t){const e="portalItem"in t?t:{portalItem:t},{fromItem:n}=await r.e(5613).then(r.bind(r,45613));try{return await n(e)}catch(t){const r=e?.portalItem,n=r?.id||"unset",o=r?.portal?.url||m.A.portalUrl;throw l.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+o+"', id: '"+n+"')",t),t}}(t)}initialize(){this.when().catch((t=>{(0,p.zf)(t)||l.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:t})}))}destroy(){const t=this.parent;if(t){const e=this;"layers"in t&&t.layers.includes(e)?t.layers.remove(e):"tables"in t&&t.tables.includes(e)?t.tables.remove(e):"baseLayers"in t&&t.baseLayers.includes(e)?t.baseLayers.remove(e):"referenceLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e),this._set("parent",null)}}get effectiveVisible(){let t=this.visible;const e=this.parent;return t&&e&&"effectiveVisible"in e&&(t&&=e.effectiveVisible),t}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,c.An)(this.url)}createLayerView(t,e){return Promise.reject(new s.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const t=this.attributionDataUrl;if(this.hasAttributionData&&t)return(await(0,o.A)(t,{query:{f:"json"},responseType:"json"})).data;throw new s.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,n._)([(0,d.MZ)({type:String})],b.prototype,"attributionDataUrl",void 0),(0,n._)([(0,d.MZ)({readOnly:!0})],b.prototype,"effectiveVisible",null),(0,n._)([(0,d.MZ)({type:h.A})],b.prototype,"fullExtent",void 0),(0,n._)([(0,d.MZ)({readOnly:!0})],b.prototype,"hasAttributionData",null),(0,n._)([(0,d.MZ)({type:String,clonable:!1})],b.prototype,"id",void 0),(0,n._)([(0,d.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"legendEnabled",void 0),(0,n._)([(0,d.MZ)({type:["show","hide","hide-children"]})],b.prototype,"listMode",void 0),(0,n._)([(0,d.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],b.prototype,"opacity",void 0),(0,n._)([(0,d.MZ)({clonable:!1})],b.prototype,"parent",void 0),(0,n._)([(0,d.MZ)({readOnly:!0})],b.prototype,"parsedUrl",null),(0,n._)([(0,d.MZ)({type:Boolean,readOnly:!0})],b.prototype,"persistenceEnabled",void 0),(0,n._)([(0,d.MZ)({type:Boolean})],b.prototype,"popupEnabled",void 0),(0,n._)([(0,d.MZ)({type:Boolean})],b.prototype,"attributionVisible",void 0),(0,n._)([(0,d.MZ)({type:y.A})],b.prototype,"spatialReference",void 0),(0,n._)([(0,d.MZ)({type:String})],b.prototype,"title",void 0),(0,n._)([(0,d.MZ)({readOnly:!0,json:{read:!1}})],b.prototype,"type",void 0),(0,n._)([(0,d.MZ)()],b.prototype,"url",void 0),(0,n._)([(0,d.MZ)({type:g.A})],b.prototype,"visibilityTimeExtent",void 0),(0,n._)([(0,d.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"visible",void 0),b=(0,n._)([(0,f.$)("esri.layers.Layer")],b);const M=b},4902:(t,e,r)=>{r.d(e,{A:()=>l});var n=r(90237),o=r(40608);let s=0;const i=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+s++})}};return e=(0,n._)([(0,o.$)("esri.core.Identifiable")],e),e};let a=class extends(i(class{})){};var u;a=(0,n._)([(0,o.$)("esri.core.Identifiable")],a),(u=a||(a={})).IdentifiableMixin=i,u.NumericIdentifiableMixin=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:s++})}};return e=(0,n._)([(0,o.$)("esri.core.Identifiable.NumericIdentifiable")],e),e};const l=a},10873:(t,e,r)=>{r.d(e,{C1:()=>S,Fm:()=>M,Ih:()=>b,M6:()=>c,OZ:()=>f,PY:()=>p,Qo:()=>m,Yj:()=>y,fV:()=>h,hG:()=>_,hn:()=>x,id:()=>w,kF:()=>d,ke:()=>v,zQ:()=>A});var n=r(89317),o=r(5443),s=r(16930),i=r(97159),a=r(88625),u=r(85360),l=r(78553);const p={type:Boolean,value:!0,json:{origins:{service:{read:!1,write:!1},"web-map":{read:!1,write:!1}},name:"screenSizePerspective",write:{enabled:!0,layerContainerTypes:n.K}}},c={type:Boolean,value:!0,json:{name:"disablePopup",read:{reader:(t,e)=>!e.disablePopup},write:{enabled:!0,writer(t,e,r){e[r]=!t}}}},d={type:Boolean,value:!0,nonNullable:!0,json:{name:"showLabels",write:{enabled:!0,layerContainerTypes:n.K}}},f={type:String,json:{origins:{"portal-item":{write:!1}},write:{isRequired:!0,ignoreOrigin:!0,writer:i.w}}},h={type:Boolean,value:!0,nonNullable:!0,json:{origins:{service:{read:{enabled:!1}}},name:"showLegend",write:{enabled:!0,layerContainerTypes:n.K}}},y={value:null,type:a.A,json:{origins:{service:{name:"elevationInfo",write:!0}},name:"layerDefinition.elevationInfo",write:{enabled:!0,layerContainerTypes:n.K}}};function m(t){return{type:t,readOnly:!0,json:{origins:{service:{read:!0}},read:!1}}}const g={write:{enabled:!0,layerContainerTypes:n.K},read:!0},v={type:Number,json:{origins:{"web-document":g,"portal-item":{write:{layerContainerTypes:n.K}}}}},b={...v,json:{...v.json,origins:{"web-document":{...g,write:{enabled:!0,layerContainerTypes:n.K,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}}}},read:{source:["layerDefinition.drawingInfo.transparency","drawingInfo.transparency"],reader:(t,e,r)=>r&&"service"!==r.origin||!e.drawingInfo||void 0===e.drawingInfo.transparency?e.layerDefinition?.drawingInfo&&void 0!==e.layerDefinition.drawingInfo.transparency?(0,l.D)(e.layerDefinition.drawingInfo.transparency):void 0:(0,l.D)(e.drawingInfo.transparency)}}},M={type:o.A,readOnly:!0,json:{origins:{service:{read:{source:["fullExtent","spatialReference"],reader:(t,e)=>{const r=o.A.fromJSON(t);return null!=e.spatialReference&&"object"==typeof e.spatialReference&&(r.spatialReference=s.A.fromJSON(e.spatialReference)),r}}}},read:!1}},w={type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}}}},x={type:Number,json:{origins:{service:{write:{enabled:!1}}},name:"layerDefinition.minScale",write:{layerContainerTypes:n.K}}},_={type:Number,json:{origins:{service:{write:{enabled:!1}}},name:"layerDefinition.maxScale",write:{layerContainerTypes:n.K}}},S={json:{write:{ignoreOrigin:!0,layerContainerTypes:n.K},origins:{"web-map":{read:!1,write:!1}}}},A={type:u.A,json:{name:"attributeTableInfo",write:!0,origins:{"web-scene":{read:!1,write:!1}}}}},16271:(t,e,r)=>{r.d(e,{Ao:()=>s,KQ:()=>i});var n=r(4576),o=r(31756);function s(t){return 1/(o.j[t]||1)}const i=function(){const t=Object.keys(o.j);return(0,n.TF)(t,"decimal-degrees"),t.sort(),t}()},20557:(t,e,r)=>{r.d(e,{Fm:()=>u,Hz:()=>f,JQ:()=>d,JZ:()=>M,ND:()=>y,R_:()=>i,U9:()=>c,fu:()=>o,nr:()=>h,oF:()=>s,rq:()=>l,z$:()=>p});const n=[["binary","application/octet-stream","bin",""]];function o(t,e){return null!=g(e.name,t?.supportedFormats??[])}function s(t,e){if(!t)return!1;const r=l(e,t.supportedFormats??[]);return null!=r&&t.editFormats.includes(r)}function i(t,e){return v(function(t,e){const r=t.toLowerCase();return m(e).find((t=>b(t)===r))}(t,e))}function a(t,e){return v(g(t,e))}function u(t,e){return b(function(t,e){return m(e).find((e=>v(e)===t))}(t,e))}function l(t,e){return a(t.name,e)??i(t.type,e)}function p(t,e,r){return i(t,r)??a(e,r)}function c({supportedFormats:t}){return p("model/gltf-binary","glb",t)}function d(t){const e=c(t);return null!=e&&t.editFormats.includes(e)}function f(t){if(!t)return null;const e=c(t),r=function({supportedFormats:t}){return p("model/gltf+json","gltf",t)}(t);let n=null;for(const o of t.queryFormats){if(o===e)return o;o===r&&(n=o)}return n}function h({supportedFormats:t}){return p("application/esri3do-SR_world","wld",t)}function y({supportedFormats:t}){return p("application/esri3do-SR_prj","prj",t)}function m(t){return[...n,...t]}function g(t,e){const r=t.toLowerCase();return m(e).find((t=>function(t){return t?.[2].split(",").map((t=>t.toLowerCase()))??[]}(t).some((t=>r.endsWith(t)))))}function v(t){return t?.[0]}function b(t){return t?.[1].toLowerCase()}function M(t){return t.tables?.find((t=>"assetMaps"===t.role))}},22453:(t,e,r)=>{r.d(e,{S:()=>h,d:()=>A});var n=r(44208),o=r(60694),s=r(20557);function i(t,e,r){return!!u(t,e,r)}function a(t,e,r){return u(t,e,r)}function u(t,e,r){return t&&t.hasOwnProperty(e)?t[e]:r}const l={name:"supportsName",size:"supportsSize",contentType:"supportsContentType",keywords:"supportsKeywords",exifInfo:"supportsExifInfo"};function p(t){const e=t?.supportedSpatialAggregationStatistics?.map((t=>t.toLowerCase()));return{envelope:!!e?.includes("envelopeaggregate"),centroid:!!e?.includes("centroidaggregate"),convexHull:!!e?.includes("convexhullaggregate")}}function c(t,e){const r=t?.supportedOperationsWithCacheHint?.map((t=>t.toLowerCase()));return!!r?.includes(e.toLowerCase())}function d(t){const e=t?.supportedStatisticTypes?.map((t=>t.toLowerCase()));return{count:!!e?.includes("count"),sum:!!e?.includes("sum"),min:!!e?.includes("min"),max:!!e?.includes("max"),avg:!!e?.includes("avg"),var:!!e?.includes("var"),stddev:!!e?.includes("stddev"),percentileContinuous:!!e?.includes("percentile_continuous"),percentileDiscrete:!!e?.includes("percentile_discrete"),envelope:!!e?.includes("envelopeaggregate"),centroid:!!e?.includes("centroidaggregate"),convexHull:!!e?.includes("convexhullaggregate")}}function f(t){const e=t?.supportedNormalizationTypes?.map((t=>t.toLowerCase()));return{field:!!e?.includes("field"),log:!!e?.includes("log"),naturalLog:!!e?.includes("naturallog"),percentOfTotal:!!e?.includes("percentoftotal"),squareRoot:!!e?.includes("squareroot")}}function h(t,e){return{analytics:y(t),attachment:m(t),data:g(t),metadata:v(t),operations:b(t.capabilities,t,e),query:M(t,e),queryAttributeBins:_(t),queryRelated:w(t),queryTopFeatures:x(t),editing:S(t)}}function y(t){return{supportsCacheHint:c(t.advancedQueryCapabilities,"queryAnalytics")}}function m(t){const e=t.attachmentProperties,r={supportsName:!1,supportsSize:!1,supportsContentType:!1,supportsKeywords:!1,supportsExifInfo:!1,supportsCacheHint:c(t.advancedQueryCapabilities,"queryAttachments"),supportsOrderByFields:i(t.advancedQueryCapabilities,"supportsQueryAttachmentOrderByFields",!1),supportsResize:i(t,"supportsAttachmentsResizing",!1)};return e&&Array.isArray(e)&&e.forEach((t=>{const e=l[t.name];e&&(r[e]=!!t.isEnabled)})),r}function g(t){return{isVersioned:i(t,"isDataVersioned",!1),isBranchVersioned:i(t,"isDataBranchVersioned",!1),supportsAttachment:i(t,"hasAttachments",!1),supportsM:i(t,"hasM",!1),supportsZ:i(t,"hasZ",!1)}}function v(t){return{supportsAdvancedFieldProperties:i(t,"supportsFieldDescriptionProperty",!1)}}function b(t,e,r){const n=t?t.toLowerCase().split(",").map((t=>t.trim())):[],s=r?(0,o.qg)(r):null,a=n.includes(null!=s&&"MapServer"===s.serverType?"data":"query"),u=n.includes("editing")&&!e.datesInUnknownTimezone;let l=u&&n.includes("create"),p=u&&n.includes("delete"),c=u&&n.includes("update");const d=n.includes("changetracking"),f=e.advancedQueryCapabilities;return u&&!(l||p||c)&&(l=p=c=!0),{supportsCalculate:i(e,"supportsCalculate",!1),supportsTruncate:i(e,"supportsTruncate",!1),supportsValidateSql:i(e,"supportsValidateSql",!1),supportsAdd:l,supportsDelete:p,supportsEditing:u,supportsChangeTracking:d,supportsQuery:a,supportsQueryAnalytics:i(f,"supportsQueryAnalytic",!1),supportsQueryAttachments:i(f,"supportsQueryAttachments",!1),supportsQueryBins:i(f,"supportsQueryBins",!1),supportsQueryTopFeatures:i(f,"supportsTopFeaturesQuery",!1),supportsResizeAttachments:i(e,"supportsAttachmentsResizing",!1),supportsSync:n.includes("sync"),supportsUpdate:c,supportsExceedsLimitStatistics:i(e,"supportsExceedsLimitStatistics",!1),supportsAsyncConvert3D:i(e,"supportsAsyncConvert3D",!1)}}function M(t,e){const r=t.advancedQueryCapabilities,u=t.ownershipBasedAccessControlForFeatures,l=t.archivingInfo,d=t.currentVersion,f=e?.includes("MapServer"),h=!f||d>=(0,n.A)("mapserver-pbf-version-support"),y=(0,o.Wo)(e),m=new Set((t.supportedQueryFormats??"").split(",").map((t=>t.toLowerCase().trim())));return{maxRecordCount:a(t,"maxRecordCount",void 0),maxRecordCountFactor:a(t,"maxRecordCountFactor",void 0),standardMaxRecordCount:a(t,"standardMaxRecordCount",void 0),supportedSpatialAggregationStatistics:p(r),supportsCacheHint:i(r,"supportsQueryWithCacheHint",!1)||c(r,"query"),supportsCentroid:i(r,"supportsReturningGeometryCentroid",!1),supportsCompactGeometry:y,supportsCurrentUser:i(r,"supportsCurrentUserQueries",!1),supportsDefaultSpatialReference:i(r,"supportsDefaultSR",!1),supportsDisjointSpatialRelationship:i(r,"supportsDisjointSpatialRel",!1),supportsDistance:i(r,"supportsQueryWithDistance",!1),supportsDistinct:i(r,"supportsDistinct",t.supportsAdvancedQueries),supportsExtent:i(r,"supportsReturningQueryExtent",!1),supportsFormatPBF:h&&m.has("pbf"),supportsFullTextSearch:i(r,"supportsFullTextSearch",!1),supportsGeometryProperties:i(r,"supportsReturningGeometryProperties",!1),supportsHavingClause:i(r,"supportsHavingClause",!1),supportsHistoricMoment:i(l,"supportsQueryWithHistoricMoment",!1),supportsMaxRecordCountFactor:i(r,"supportsMaxRecordCountFactor",!1),supportsOrderBy:i(r,"supportsOrderBy",t.supportsAdvancedQueries),supportsPagination:i(r,"supportsPagination",!1),supportsPercentileStatistics:i(r,"supportsPercentileStatistics",!1),supportsQuantization:i(t,"supportsCoordinatesQuantization",!1),supportsQuantizationEditMode:i(t,"supportsQuantizationEditMode",!1),supportsQueryByAnonymous:i(u,"allowAnonymousToQuery",!0),supportsQueryByOthers:i(u,"allowOthersToQuery",!0),supportsQueryGeometry:i(t,"supportsReturningQueryGeometry",!1),supportsResultType:i(r,"supportsQueryWithResultType",!1),supportsReturnMesh:!!(0,s.Hz)(t.infoFor3D),supportsSpatialAggregationStatistics:i(r,"supportsSpatialAggregationStatistics",!1),supportsSqlExpression:i(r,"supportsSqlExpression",!1),supportsStandardizedQueriesOnly:i(t,"useStandardizedQueries",!1),supportsStatistics:i(r,"supportsStatistics",t.supportsStatistics),supportsTopFeaturesQuery:i(r,"supportsTopFeaturesQuery",!1),supportsTrueCurve:i(r,"supportsTrueCurve",!1),tileMaxRecordCount:a(t,"tileMaxRecordCount",void 0)}}function w(t){const e=t.advancedQueryCapabilities,r=i(e,"supportsAdvancedQueryRelated",!1);return{supportsPagination:i(e,"supportsQueryRelatedPagination",!1),supportsCount:r,supportsOrderBy:r,supportsCacheHint:c(e,"queryRelated")}}function x(t){return{supportsCacheHint:c(t.advancedQueryCapabilities,"queryTopFilter")}}function _(t){const e=t?t.queryBinsCapabilities:void 0;return{supportsDate:i(e,"supportsDateBin",!1),supportsFixedInterval:i(e,"supportsFixedIntervalBin",!1),supportsAutoInterval:i(e,"supportsAutoIntervalBin",!1),supportsFixedBoundaries:i(e,"supportsFixedBoundariesBin",!1),supportsStackBy:i(e,"supportsStackBy",!1),supportsSplitBy:i(e,"supportsSplitBy",!1),supportsSnapToData:i(e,"supportsSnapToData",!1),supportsReturnFullIntervalBin:i(e,"supportsReturnFullIntervalBin",!1),supportsFirstDayOfWeek:i(e,"supportsFirstDayOfWeek",!1),supportsNormalization:i(e,"supportsNormalization",!1),supportedStatistics:d(e),supportedNormalizationTypes:f(e)}}function S(t){const e=t.ownershipBasedAccessControlForFeatures,r=t?t.advancedEditingCapabilities:void 0;return{supportsGeometryUpdate:i(t,"allowGeometryUpdates",!0),supportsGlobalId:i(t,"supportsApplyEditsWithGlobalIds",!1),supportsReturnServiceEditsInSourceSpatialReference:i(t,"supportsReturnServiceEditsInSourceSR",!1),supportsRollbackOnFailure:i(t,"supportsRollbackOnFailureParameter",!1),supportsUpdateWithoutM:i(t,"allowUpdateWithoutMValues",!1),supportsUploadWithItemId:i(t,"supportsAttachmentsByUploadId",!1),supportsDeleteByAnonymous:i(e,"allowAnonymousToDelete",!0),supportsDeleteByOthers:i(e,"allowOthersToDelete",!0),supportsUpdateByAnonymous:i(e,"allowAnonymousToUpdate",!0),supportsUpdateByOthers:i(e,"allowOthersToUpdate",!0),supportsAsyncApplyEdits:i(r,"supportsAsyncApplyEdits",!1),zDefault:a(t,"zDefault",void 0)}}function A(t){return{operations:{supportsAppend:i(t,"supportsAppend",!1),supportsCoverageQuery:t?.playbackInfo?.klv["0601"]??!1,supportsExportClip:i(t,"supportsExportClip",!1),supportsExportFrameset:i(t,"supportsExportFrameset",!1),supportsMensuration:i(t,"supportsMensuration",!1),supportsUpdate:i(t,"supportsUpdate",!1)}}}},25036:(t,e,r)=>{r.d(e,{j:()=>i});var n=r(90237),o=r(10107),s=(r(44208),r(53966),r(87811),r(40608));const i=t=>{let e=class extends t{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const t={minScale:this.minScale,maxScale:this.maxScale},e=this.parent;e&&"effectiveScaleRange"in e&&function(t,e){t.minScale=t.minScale>0?e.minScale>0?Math.min(t.minScale,e.minScale):t.minScale:e.minScale,t.maxScale=t.maxScale>0?e.maxScale>0?Math.max(t.maxScale,e.maxScale):t.maxScale:e.maxScale}(t,e.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===t.minScale&&r.maxScale===t.maxScale?r:t}};return(0,n._)([(0,o.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],e.prototype,"minScale",void 0),(0,n._)([(0,o.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],e.prototype,"maxScale",void 0),(0,n._)([(0,o.MZ)({readOnly:!0})],e.prototype,"effectiveScaleRange",null),e=(0,n._)([(0,s.$)("esri.layers.mixins.ScaleRangeLayer")],e),e}},29242:(t,e,r)=>{function n(){return[1,0,0,0,1,0,0,0,1]}function o(t,e,r,n,o,s,i,a,u){return[t,e,r,n,o,s,i,a,u]}r.d(e,{fA:()=>o,vt:()=>n,zK:()=>s});const s=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:n,fromValues:o},Symbol.toStringTag,{value:"Module"}))},31756:(t,e,r)=>{r.d(e,{j:()=>s});var n=r(83047),o=r(79258);const s={unknown:1,inches:(0,n.oU)(1,"meters","inches"),feet:(0,n.oU)(1,"meters","feet"),"us-feet":(0,n.oU)(1,"meters","us-feet"),yards:(0,n.oU)(1,"meters","yards"),miles:(0,n.oU)(1,"meters","miles"),"nautical-miles":(0,n.oU)(1,"meters","nautical-miles"),millimeters:(0,n.oU)(1,"meters","millimeters"),centimeters:(0,n.oU)(1,"meters","centimeters"),decimeters:(0,n.oU)(1,"meters","decimeters"),meters:(0,n.oU)(1,"meters","meters"),kilometers:(0,n.oU)(1,"meters","kilometers"),"decimal-degrees":1/(0,n.vl)(1,"meters",o.$O.radius)}},36708:(t,e,r)=>{r.d(e,{C_:()=>d,OH:()=>y,Vh:()=>m,on:()=>c,pc:()=>g,wB:()=>u,z7:()=>l});var n=r(37955),o=r(36563),s=r(97768),i=r(74887),a=r(14012);function u(t,e,r={}){return p(t,e,r,f)}function l(t,e,r={}){return p(t,e,r,h)}function p(t,e,r={},n){let o=null;const i=r.once?(t,r)=>{n(t)&&((0,s.xt)(o),e(t,r))}:(t,r)=>{n(t)&&e(t,r)};if(o=(0,a.Cn)(t,i,r.sync,r.equals),r.initial){const e=t();i(e,e)}return o}function c(t,e,r,i={}){let a=null,l=null,p=null;function c(){a&&l&&(l.remove(),i.onListenerRemove?.(a),a=null,l=null)}function d(t){i.once&&i.once&&(0,s.xt)(p),r(t)}const f=u(t,((t,r)=>{c(),(0,n.wb)(t)&&(a=t,l=(0,n.on)(t,e,d),i.onListenerAdd?.(t))}),{sync:i.sync,initial:!0});return p=(0,o.hA)((()=>{f.remove(),c()})),p}function d(t,e){return function(t,e,r){if((0,i.G4)(r))return Promise.reject((0,i.NK)());const n=t();if(e?.(n))return Promise.resolve(n);let a=null;function u(){a=(0,s.xt)(a)}return new Promise(((n,s)=>{a=(0,o.vE)([(0,i.u7)(r,(()=>{u(),s((0,i.NK)())})),p(t,(t=>{u(),n(t)}),{sync:!1,once:!0},e??f)])}))}(t,h,e)}function f(t){return!0}function h(t){return!!t}r(80559);const y={sync:!0},m={initial:!0},g={sync:!0,initial:!0}},38954:(t,e,r)=>{r.d(e,{A:()=>h,B:()=>f,C:()=>p,D:()=>y,E:()=>c,G:()=>B,H:()=>U,a:()=>R,b:()=>g,c:()=>i,d:()=>l,e:()=>A,f:()=>S,g:()=>u,h:()=>m,i:()=>a,j:()=>v,k:()=>M,l:()=>s,m:()=>O,n:()=>_,o:()=>j,p:()=>F,q:()=>E,s:()=>b,t:()=>C,u:()=>x,v:()=>w,w:()=>Z,x:()=>d,y:()=>D,z:()=>$});var n=r(51850),o=r(34304);function s(t){const e=t[0],r=t[1],n=t[2];return Math.sqrt(e*e+r*r+n*n)}function i(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function a(t,e,r,n){return t[0]=e,t[1]=r,t[2]=n,t}function u(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t}function l(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t}function p(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t}function c(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t}function d(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function f(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function h(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t}function y(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t}function m(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t}function g(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t}function v(t,e){const r=e[0]-t[0],n=e[1]-t[1],o=e[2]-t[2];return Math.sqrt(r*r+n*n+o*o)}function b(t,e){const r=e[0]-t[0],n=e[1]-t[1],o=e[2]-t[2];return r*r+n*n+o*o}function M(t){const e=t[0],r=t[1],n=t[2];return e*e+r*r+n*n}function w(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function x(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function _(t,e){const r=e[0],n=e[1],o=e[2];let s=r*r+n*n+o*o;return s>0&&(s=1/Math.sqrt(s),t[0]=e[0]*s,t[1]=e[1]*s,t[2]=e[2]*s),t}function S(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function A(t,e,r){const n=e[0],o=e[1],s=e[2],i=r[0],a=r[1],u=r[2];return t[0]=o*u-s*a,t[1]=s*i-n*u,t[2]=n*a-o*i,t}function O(t,e,r,n){const o=e[0],s=e[1],i=e[2];return t[0]=o+n*(r[0]-o),t[1]=s+n*(r[1]-s),t[2]=i+n*(r[2]-i),t}function C(t,e,r){const n=e[0],o=e[1],s=e[2];return t[0]=r[0]*n+r[4]*o+r[8]*s+r[12],t[1]=r[1]*n+r[5]*o+r[9]*s+r[13],t[2]=r[2]*n+r[6]*o+r[10]*s+r[14],t}function E(t,e,r){const n=e[0],o=e[1],s=e[2];return t[0]=n*r[0]+o*r[3]+s*r[6],t[1]=n*r[1]+o*r[4]+s*r[7],t[2]=n*r[2]+o*r[5]+s*r[8],t}function Z(t,e,r){const n=r[0],o=r[1],s=r[2],i=r[3],a=e[0],u=e[1],l=e[2],p=o*l-s*u,c=s*a-n*l,d=n*u-o*a,f=o*d-s*c,h=s*p-n*d,y=n*c-o*p,m=2*i;return t[0]=a+p*m+2*f,t[1]=u+c*m+2*h,t[2]=l+d*m+2*y,t}const T=(0,n.vt)(),I=(0,n.vt)();function F(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function j(t,e,r){const n=r[0]-e[0],o=r[1]-e[1],s=r[2]-e[2];let i=n*n+o*o+s*s;return i>0?(i=1/Math.sqrt(i),t[0]=n*i,t[1]=o*i,t[2]=s*i,t):(t[0]=0,t[1]=0,t[2]=0,t)}const R=l,P=p,N=c,B=v,D=b,U=s,$=M;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:u,angle:function(t,e){_(T,t),_(I,e);const r=S(T,I);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(t,e,r,n,o,s){const i=1-s,a=i*i,u=s*s,l=a*i,p=3*s*a,c=3*u*i,d=u*s;return t[0]=e[0]*l+r[0]*p+n[0]*c+o[0]*d,t[1]=e[1]*l+r[1]*p+n[1]*c+o[1]*d,t[2]=e[2]*l+r[2]*p+n[2]*c+o[2]*d,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,r=1){return t[0]=Math.min(Math.max(t[0],e),r),t[1]=Math.min(Math.max(t[1],e),r),t[2]=Math.min(Math.max(t[2],e),r),t},copy:i,cross:A,crossAndNormalize:function(t,e,r){const n=e[0],o=e[1],s=e[2],i=r[0],a=r[1],u=r[2],l=o*u-s*a,p=s*i-n*u,c=n*a-o*i,d=Math.sqrt(l*l+p*p+c*c);return t[0]=l/d,t[1]=p/d,t[2]=c/d,t},direction:j,dist:B,distance:v,div:N,divide:c,dot:S,equals:function(t,e){if(t===e)return!0;const r=t[0],n=t[1],s=t[2],i=e[0],a=e[1],u=e[2],l=(0,o.FD)();return Math.abs(r-i)<=l*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(n-a)<=l*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(s-u)<=l*Math.max(1,Math.abs(s),Math.abs(u))},exactEquals:F,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,r,n,o,s){const i=s*s,a=i*(2*s-3)+1,u=i*(s-2)+s,l=i*(s-1),p=i*(3-2*s);return t[0]=e[0]*a+r[0]*u+n[0]*l+o[0]*p,t[1]=e[1]*a+r[1]*u+n[1]*l+o[1]*p,t[2]=e[2]*a+r[2]*u+n[2]*l+o[2]*p,t},inverse:x,len:U,length:s,lerp:O,max:y,min:h,mul:P,multiply:p,negate:w,normalize:_,random:function(t,e=1){const r=o.Ov,n=2*r()*Math.PI,s=2*r()-1,i=Math.sqrt(1-s*s)*e;return t[0]=Math.cos(n)*i,t[1]=Math.sin(n)*i,t[2]=s*e,t},rotateX:function(t,e,r,n){const o=[],s=[];return o[0]=e[0]-r[0],o[1]=e[1]-r[1],o[2]=e[2]-r[2],s[0]=o[0],s[1]=o[1]*Math.cos(n)-o[2]*Math.sin(n),s[2]=o[1]*Math.sin(n)+o[2]*Math.cos(n),t[0]=s[0]+r[0],t[1]=s[1]+r[1],t[2]=s[2]+r[2],t},rotateY:function(t,e,r,n){const o=[],s=[];return o[0]=e[0]-r[0],o[1]=e[1]-r[1],o[2]=e[2]-r[2],s[0]=o[2]*Math.sin(n)+o[0]*Math.cos(n),s[1]=o[1],s[2]=o[2]*Math.cos(n)-o[0]*Math.sin(n),t[0]=s[0]+r[0],t[1]=s[1]+r[1],t[2]=s[2]+r[2],t},rotateZ:function(t,e,r,n){const o=[],s=[];return o[0]=e[0]-r[0],o[1]=e[1]-r[1],o[2]=e[2]-r[2],s[0]=o[0]*Math.cos(n)-o[1]*Math.sin(n),s[1]=o[0]*Math.sin(n)+o[1]*Math.cos(n),s[2]=o[2],t[0]=s[0]+r[0],t[1]=s[1]+r[1],t[2]=s[2]+r[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:m,scaleAndAdd:g,set:a,sign:f,sqrDist:D,sqrLen:$,squaredDistance:b,squaredLength:M,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:R,subtract:l,transformMat3:E,transformMat4:C,transformQuat:Z},Symbol.toStringTag,{value:"Module"}))},63074:(t,e,r)=>{r.d(e,{LF:()=>p,dM:()=>c,sU:()=>u});var n=r(90237),o=r(10107),s=(r(44208),r(53966),r(87811),r(40608)),i=r(89317),a=r(76369);const u={type:["average","color-burn","color-dodge","color","darken","destination-atop","destination-in","destination-out","destination-over","difference","exclusion","hard-light","hue","invert","lighten","lighter","luminosity","minus","multiply","normal","overlay","plus","reflect","saturation","screen","soft-light","source-atop","source-in","source-out","vivid-light","xor"],nonNullable:!0,json:{read:!1,write:!1,origins:{"web-map":{read:!0,write:{layerContainerTypes:i.K}},"portal-item":{read:!0,write:{layerContainerTypes:i.K}}}}},l={read:{reader:a.LF},write:{allowNull:!0,writer:a.M9,layerContainerTypes:i.K}},p={json:{read:!1,write:!1,origins:{"web-map":l,"portal-item":l}}},c=t=>{let e=class extends t{constructor(){super(...arguments),this.blendMode="normal",this.effect=null}};return(0,n._)([(0,o.MZ)(u)],e.prototype,"blendMode",void 0),(0,n._)([(0,o.MZ)(p)],e.prototype,"effect",void 0),e=(0,n._)([(0,s.$)("esri.layers.mixins.BlendLayer")],e),e}},69208:(t,e,r)=>{r.d(e,{d:()=>i});var n=r(90237),o=r(10107),s=(r(44208),r(53966),r(87811),r(40608));const i=t=>{let e=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,n._)([(0,o.MZ)({type:Object,json:{write:{overridePolicy:t=>({enabled:!!(t&&Object.keys(t).length>0)})}}})],e.prototype,"customParameters",void 0),e=(0,n._)([(0,s.$)("esri.layers.mixins.CustomParametersMixin")],e),e}},76369:(t,e,r)=>{r.d(e,{LF:()=>_,M9:()=>S});var n=r(49186),o=r(93637),s=r(40876),i=r(59247),a=r(27865);function u(t,e,r,n){var o=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(o,u.prototype),o.expected=e,o.found=r,o.location=n,o.name="SyntaxError",o}function l(t,e,r){return r=r||" ",t.length>e?t:(e-=t.length,t+(r+=r.repeat(e)).slice(0,e))}function p(t){if(!t||0===t.length)return null;if("string"==typeof t){const e=c(t);return e&&0!==e.length?e:null}const e=t.map((t=>{if(!Number.isFinite(t.scale)||t.scale<=0)throw new n.A("effect:invalid-scale","scale must be finite and greater than 0",{stop:t});return{scale:t.scale,effects:c(t.value)}}));e.sort(((t,e)=>e.effects.length-t.effects.length));for(let t=0;t<e.length-1;t++){if(!(0,a.mj)(e[t].effects,e[t+1].effects))throw new n.A("effect:interpolation-impossible","Cannot interpolate by scale between 2 lists of mixed effects",{a:e[t].effects,b:e[t+1].effects});(0,a.O9)(e[t].effects,e[t+1].effects)}return e.sort(((t,e)=>e.scale-t.scale)),e}function c(t){let e;if(!t)return[];try{e=function(t,e){var r,n={},o=(e=void 0!==e?e:{}).grammarSource,s={start:zt},i=zt,a="none",l=")",p=",",c="(",d="%",f="px",h="cm",y="mm",m="in",g="pt",v="pc",b="deg",M="rad",w="grad",x="turn",_="#",S=".",A="e",O=/^[ \t\n\r]/,C=/^[a-z\-]/,E=/^[0-9a-fA-F]/,Z=/^[+\-]/,T=/^[0-9]/,I=qt("none"),F=Ut("none",!1),j=Ut(")",!1),R=Ut(",",!1),P=qt("whitespace"),N=$t([" ","\t","\n","\r"],!1,!1),B=qt("function"),D=Ut("(",!1),U=qt("identifier"),$=$t([["a","z"],"-"],!1,!1),q=qt("percentage"),L=Ut("%",!1),Q=qt("length"),k=Ut("px",!1),z=Ut("cm",!1),G=Ut("mm",!1),V=Ut("in",!1),J=Ut("pt",!1),W=Ut("pc",!1),K=qt("angle"),H=Ut("deg",!1),Y=Ut("rad",!1),X=Ut("grad",!1),tt=Ut("turn",!1),et=qt("number"),rt=qt("color"),nt=Ut("#",!1),ot=$t([["0","9"],["a","f"],["A","F"]],!1,!1),st=$t(["+","-"],!1,!1),it=$t([["0","9"]],!1,!1),at=Ut(".",!1),ut=Ut("e",!1),lt=function(){return[]},pt=function(t,e){return{type:"function",name:t,parameters:e||[]}},ct=function(t,e){return e.length>0?function(t,e){return[t].concat(function(t){return t.map((function(t){return t[3]}))}(e))}(t,e):[t]},dt=function(t){return{type:"quantity",value:t.value,unit:t.unit}},ft=function(t){return{type:"color",colorType:t.type,value:t.value}},ht=function(t){return t},yt=function(){return Dt()},mt=function(t){return{value:t,unit:"%"}},gt=function(t){return{value:t,unit:"px"}},vt=function(t){return{value:t,unit:"cm"}},bt=function(t){return{value:t,unit:"mm"}},Mt=function(t){return{value:t,unit:"in"}},wt=function(t){return{value:t,unit:"pt"}},xt=function(t){return{value:t,unit:"pc"}},_t=function(t){return{value:t,unit:"deg"}},St=function(t){return{value:t,unit:"rad"}},At=function(t){return{value:t,unit:"grad"}},Ot=function(t){return{value:t,unit:"turn"}},Ct=function(t){return{value:t,unit:null}},Et=function(){return{type:"hex",value:Dt()}},Zt=function(t){return{type:"function",value:t}},Tt=function(){return{type:"named",value:Dt()}},It=function(){return parseFloat(Dt())},Ft=0|e.peg$currPos,jt=Ft,Rt=[{line:1,column:1}],Pt=Ft,Nt=e.peg$maxFailExpected||[],Bt=0|e.peg$silentFails;if(e.startRule){if(!(e.startRule in s))throw new Error("Can't start parsing from rule \""+e.startRule+'".');i=s[e.startRule]}function Dt(){return t.substring(jt,Ft)}function Ut(t,e){return{type:"literal",text:t,ignoreCase:e}}function $t(t,e,r){return{type:"class",parts:t,inverted:e,ignoreCase:r}}function qt(t){return{type:"other",description:t}}function Lt(e){var r,n=Rt[e];if(n)return n;if(e>=Rt.length)r=Rt.length-1;else for(r=e;!Rt[--r];);for(n={line:(n=Rt[r]).line,column:n.column};r<e;)10===t.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return Rt[e]=n,n}function Qt(t,e,r){var n=Lt(t),s=Lt(e);return{source:o,start:{offset:t,line:n.line,column:n.column},end:{offset:e,line:s.line,column:s.column}}}function kt(t){Ft<Pt||(Ft>Pt&&(Pt=Ft,Nt=[]),Nt.push(t))}function zt(){var t;return(t=Gt())===n&&(t=function(){var t,e;if(t=[],(e=Vt())!==n)for(;e!==n;)t.push(e),e=Vt();else t=n;return t}()),t}function Gt(){var e,r;return Bt++,e=Ft,Wt(),t.substr(Ft,4)===a?(r=a,Ft+=4):(r=n,0===Bt&&kt(F)),r!==n?(Wt(),jt=e,e=lt()):(Ft=e,e=n),Bt--,e===n&&0===Bt&&kt(I),e}function Vt(){var e,r,o,s;return e=Ft,Wt(),(r=function(){var e,r,o;return Bt++,e=Ft,(r=Kt())!==n?(40===t.charCodeAt(Ft)?(o=c,Ft++):(o=n,0===Bt&&kt(D)),o!==n?(jt=e,e=ht(r)):(Ft=e,e=n)):(Ft=e,e=n),Bt--,e===n&&(r=n,0===Bt&&kt(B)),e}())!==n?(Wt(),(o=function(){var e,r,o,s,i,a,u,l;if(e=Ft,(r=Jt())!==n){for(o=[],s=Ft,i=Wt(),44===t.charCodeAt(Ft)?(a=p,Ft++):(a=n,0===Bt&&kt(R)),a===n&&(a=null),u=Wt(),(l=Jt())!==n?s=i=[i,a,u,l]:(Ft=s,s=n);s!==n;)o.push(s),s=Ft,i=Wt(),44===t.charCodeAt(Ft)?(a=p,Ft++):(a=n,0===Bt&&kt(R)),a===n&&(a=null),u=Wt(),(l=Jt())!==n?s=i=[i,a,u,l]:(Ft=s,s=n);jt=e,e=ct(r,o)}else Ft=e,e=n;return e}())===n&&(o=null),Wt(),41===t.charCodeAt(Ft)?(s=l,Ft++):(s=n,0===Bt&&kt(j)),s!==n?(Wt(),jt=e,e=pt(r,o)):(Ft=e,e=n)):(Ft=e,e=n),e}function Jt(){var t,e;return t=Ft,(e=Ht())===n&&(e=Yt())===n&&(e=Xt())===n&&(e=function(){var t,e;return Bt++,t=Ft,Wt(),(e=ee())!==n?(jt=t,t=Ct(e)):(Ft=t,t=n),Bt--,t===n&&0===Bt&&kt(et),t}()),e!==n&&(jt=t,e=dt(e)),(t=e)===n&&(t=Ft,(e=te())!==n&&(jt=t,e=ft(e)),t=e),t}function Wt(){var e,r;for(Bt++,e=[],r=t.charAt(Ft),O.test(r)?Ft++:(r=n,0===Bt&&kt(N));r!==n;)e.push(r),r=t.charAt(Ft),O.test(r)?Ft++:(r=n,0===Bt&&kt(N));return Bt--,r=n,0===Bt&&kt(P),e}function Kt(){var e,r,o;if(Bt++,e=Ft,r=[],o=t.charAt(Ft),C.test(o)?Ft++:(o=n,0===Bt&&kt($)),o!==n)for(;o!==n;)r.push(o),o=t.charAt(Ft),C.test(o)?Ft++:(o=n,0===Bt&&kt($));else r=n;return r!==n&&(jt=e,r=yt()),Bt--,(e=r)===n&&(r=n,0===Bt&&kt(U)),e}function Ht(){var e,r,o;return Bt++,e=Ft,Wt(),(r=ee())!==n?(37===t.charCodeAt(Ft)?(o=d,Ft++):(o=n,0===Bt&&kt(L)),o!==n?(jt=e,e=mt(r)):(Ft=e,e=n)):(Ft=e,e=n),Bt--,e===n&&0===Bt&&kt(q),e}function Yt(){var e,r,o;return Bt++,e=Ft,Wt(),(r=ee())!==n?(t.substr(Ft,2)===f?(o=f,Ft+=2):(o=n,0===Bt&&kt(k)),o!==n?(jt=e,e=gt(r)):(Ft=e,e=n)):(Ft=e,e=n),e===n&&(e=Ft,Wt(),(r=ee())!==n?(t.substr(Ft,2)===h?(o=h,Ft+=2):(o=n,0===Bt&&kt(z)),o!==n?(jt=e,e=vt(r)):(Ft=e,e=n)):(Ft=e,e=n),e===n&&(e=Ft,Wt(),(r=ee())!==n?(t.substr(Ft,2)===y?(o=y,Ft+=2):(o=n,0===Bt&&kt(G)),o!==n?(jt=e,e=bt(r)):(Ft=e,e=n)):(Ft=e,e=n),e===n&&(e=Ft,Wt(),(r=ee())!==n?(t.substr(Ft,2)===m?(o=m,Ft+=2):(o=n,0===Bt&&kt(V)),o!==n?(jt=e,e=Mt(r)):(Ft=e,e=n)):(Ft=e,e=n),e===n&&(e=Ft,Wt(),(r=ee())!==n?(t.substr(Ft,2)===g?(o=g,Ft+=2):(o=n,0===Bt&&kt(J)),o!==n?(jt=e,e=wt(r)):(Ft=e,e=n)):(Ft=e,e=n),e===n&&(e=Ft,Wt(),(r=ee())!==n?(t.substr(Ft,2)===v?(o=v,Ft+=2):(o=n,0===Bt&&kt(W)),o!==n?(jt=e,e=xt(r)):(Ft=e,e=n)):(Ft=e,e=n)))))),Bt--,e===n&&0===Bt&&kt(Q),e}function Xt(){var e,r,o;return Bt++,e=Ft,(r=ee())!==n?(t.substr(Ft,3)===b?(o=b,Ft+=3):(o=n,0===Bt&&kt(H)),o!==n?(jt=e,e=_t(r)):(Ft=e,e=n)):(Ft=e,e=n),e===n&&(e=Ft,(r=ee())!==n?(t.substr(Ft,3)===M?(o=M,Ft+=3):(o=n,0===Bt&&kt(Y)),o!==n?(jt=e,e=St(r)):(Ft=e,e=n)):(Ft=e,e=n),e===n&&(e=Ft,(r=ee())!==n?(t.substr(Ft,4)===w?(o=w,Ft+=4):(o=n,0===Bt&&kt(X)),o!==n?(jt=e,e=At(r)):(Ft=e,e=n)):(Ft=e,e=n),e===n&&(e=Ft,(r=ee())!==n?(t.substr(Ft,4)===x?(o=x,Ft+=4):(o=n,0===Bt&&kt(tt)),o!==n?(jt=e,e=Ot(r)):(Ft=e,e=n)):(Ft=e,e=n)))),Bt--,e===n&&(r=n,0===Bt&&kt(K)),e}function te(){var e,r,o,s;if(Bt++,e=Ft,35===t.charCodeAt(Ft)?(r=_,Ft++):(r=n,0===Bt&&kt(nt)),r!==n){if(o=[],s=t.charAt(Ft),E.test(s)?Ft++:(s=n,0===Bt&&kt(ot)),s!==n)for(;s!==n;)o.push(s),s=t.charAt(Ft),E.test(s)?Ft++:(s=n,0===Bt&&kt(ot));else o=n;o!==n?(jt=e,e=Et()):(Ft=e,e=n)}else Ft=e,e=n;return e===n&&(e=Ft,(r=Vt())!==n&&(jt=e,r=Zt(r)),(e=r)===n&&(e=Ft,(r=Kt())!==n&&(jt=e,r=Tt()),e=r)),Bt--,e===n&&(r=n,0===Bt&&kt(rt)),e}function ee(){var e,r,o,s,i,a,u,l;for(e=Ft,r=t.charAt(Ft),Z.test(r)?Ft++:(r=n,0===Bt&&kt(st)),r===n&&(r=null),o=Ft,s=[],i=t.charAt(Ft),T.test(i)?Ft++:(i=n,0===Bt&&kt(it));i!==n;)s.push(i),i=t.charAt(Ft),T.test(i)?Ft++:(i=n,0===Bt&&kt(it));if(46===t.charCodeAt(Ft)?(i=S,Ft++):(i=n,0===Bt&&kt(at)),i!==n){if(a=[],u=t.charAt(Ft),T.test(u)?Ft++:(u=n,0===Bt&&kt(it)),u!==n)for(;u!==n;)a.push(u),u=t.charAt(Ft),T.test(u)?Ft++:(u=n,0===Bt&&kt(it));else a=n;a!==n?o=s=[s,i,a]:(Ft=o,o=n)}else Ft=o,o=n;if(o===n)if(o=[],s=t.charAt(Ft),T.test(s)?Ft++:(s=n,0===Bt&&kt(it)),s!==n)for(;s!==n;)o.push(s),s=t.charAt(Ft),T.test(s)?Ft++:(s=n,0===Bt&&kt(it));else o=n;if(o!==n){if(s=Ft,101===t.charCodeAt(Ft)?(i=A,Ft++):(i=n,0===Bt&&kt(ut)),i!==n){if(a=t.charAt(Ft),Z.test(a)?Ft++:(a=n,0===Bt&&kt(st)),a===n&&(a=null),u=[],l=t.charAt(Ft),T.test(l)?Ft++:(l=n,0===Bt&&kt(it)),l!==n)for(;l!==n;)u.push(l),l=t.charAt(Ft),T.test(l)?Ft++:(l=n,0===Bt&&kt(it));else u=n;u!==n?s=i=[i,a,u]:(Ft=s,s=n)}else Ft=s,s=n;s===n&&(s=null),jt=e,e=It()}else Ft=e,e=n;return e}if(r=i(),e.peg$library)return{peg$result:r,peg$currPos:Ft,peg$FAILED:n,peg$maxFailExpected:Nt,peg$maxFailPos:Pt};if(r!==n&&Ft===t.length)return r;throw r!==n&&Ft<t.length&&kt({type:"end"}),function(t,e,r){return new u(u.buildMessage(t,e),t,e,r)}(Nt,Pt<t.length?t.charAt(Pt):null,Pt<t.length?Qt(Pt,Pt+1):Qt(Pt,Pt))}(t)}catch(e){throw new n.A("effect:invalid-syntax","Invalid effect syntax",{value:t,error:e})}return e.map((t=>function(t){try{switch(t.name){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":return function(t){let e=1;return d(t.parameters,1),1===t.parameters.length&&(e=g(t.parameters[0])),new i.yG(t.name,e)}(t);case"opacity":return function(t){let e=1;return d(t.parameters,1),1===t.parameters.length&&(e=g(t.parameters[0])),new i.jm(e)}(t);case"hue-rotate":return function(t){let e=0;return d(t.parameters,1),1===t.parameters.length&&(e=function(t){return function(t){if("quantity"!==t.type||!(0===t.value&&null===t.unit||t.unit&&null!=y[t.unit]))throw new n.A("effect:type-error",`Expected <angle>, Actual: ${f(t)}`,{term:t})}(t),t.value*y[t.unit]||0}(t.parameters[0])),new i.Nd(e)}(t);case"blur":return function(t){let e=0;return d(t.parameters,1),1===t.parameters.length&&(e=v(t.parameters[0]),h(e,t.parameters[0])),new i.Fk(e)}(t);case"drop-shadow":return function(t){const e=[];let r=null;for(const o of t.parameters)if("color"===o.type){if(e.length&&Object.freeze(e),r)throw new n.A("effect:type-error","Accepts only one color",{});r=b(o)}else{const t=v(o);if(Object.isFrozen(e))throw new n.A("effect:type-error","<length> parameters not consecutive",{lengths:e});e.push(t),3===e.length&&h(t,o)}if(e.length<2||e.length>3)throw new n.A("effect:type-error",`Expected <length>{2,3}, Actual: <length>{${e.length}}`,{lengths:e});return new i.$b(e[0],e[1],e[2]||0,r||M("black"))}(t);case"bloom":return function(t){let e=1,r=0,n=0;return d(t.parameters,3),t.parameters[0]&&(e=g(t.parameters[0])),t.parameters[1]&&(r=v(t.parameters[1]),h(r,t.parameters[1])),t.parameters[2]&&(n=g(t.parameters[2])),new i.bv(e,r,n)}(t)}}catch(e){throw e.details.filter=t,e}throw new n.A("effect:unknown-effect",`Effect '${t.name}' is not supported`,{effect:t})}(t)))}function d(t,e){if(t.length>e)throw new n.A("effect:type-error",`Function supports up to ${e} parameters, Actual: ${t.length}`,{parameters:t})}function f(t){if("color"===t.type)return"<color>";if(t.unit){if(t.unit in m)return"<length>";if(t.unit in y)return"<angle>";if("%"===t.unit)return"<percentage>"}return"<double>"}function h(t,e){if(t<0)throw new n.A("effect:type-error",`Negative values are not allowed, Actual: ${t}`,{term:e})}(function(t,e){function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r})(u,Error),u.prototype.format=function(t){var e="Error: "+this.message;if(this.location){var r,n=null;for(r=0;r<t.length;r++)if(t[r].source===this.location.source){n=t[r].text.split(/\r\n|\n|\r/g);break}var o=this.location.start,s=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(o):o,i=this.location.source+":"+s.line+":"+s.column;if(n){var a=this.location.end,u=l("",s.line.toString().length," "),p=n[o.line-1],c=(o.line===a.line?a.column:p.length+1)-o.column||1;e+="\n --\x3e "+i+"\n"+u+" |\n"+s.line+" | "+p+"\n"+u+" | "+l("",o.column-1," ")+l("",c,"^")}else e+="\n at "+i}return e},u.buildMessage=function(t,e){var r={literal:function(t){return'"'+o(t.text)+'"'},class:function(t){var e=t.parts.map((function(t){return Array.isArray(t)?s(t[0])+"-"+s(t[1]):s(t)}));return"["+(t.inverted?"^":"")+e.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(t){return t.description}};function n(t){return t.charCodeAt(0).toString(16).toUpperCase()}function o(t){return t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+n(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+n(t)}))}function s(t){return t.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+n(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+n(t)}))}function i(t){return r[t.type](t)}return"Expected "+function(t){var e,r,n=t.map(i);if(n.sort(),n.length>0){for(e=1,r=1;e<n.length;e++)n[e-1]!==n[e]&&(n[r]=n[e],r++);n.length=r}switch(n.length){case 1:return n[0];case 2:return n[0]+" or "+n[1];default:return n.slice(0,-1).join(", ")+", or "+n[n.length-1]}}(t)+" but "+function(t){return t?'"'+o(t)+'"':"end of input"}(e)+" found."};const y={deg:1,grad:.9,rad:180/Math.PI,turn:360},m={px:1,cm:96/2.54,mm:96/2.54/10,in:96,pc:16,pt:96/72};function g(t){!function(t){if("quantity"!==t.type||null!==t.unit&&"%"!==t.unit)throw new n.A("effect:type-error",`Expected <double> or <percentage>, Actual: ${f(t)}`,{term:t})}(t);const e=t.value;return h(e,t),"%"===t.unit?.01*e:e}function v(t){return function(t){if("quantity"!==t.type||!(0===t.value&&null===t.unit||t.unit&&null!=m[t.unit]))throw new n.A("effect:type-error",`Expected <length>, Actual: ${f(t)}`,{term:t})}(t),t.value*m[t.unit]||0}function b(t){switch(t.colorType){case"hex":return(0,s.qh)(t.value);case"named":return M(t.value);case"function":return function(t){if(d(t.parameters,4),w.test(t.name))return[g(t.parameters[0]),g(t.parameters[1]),g(t.parameters[2]),t.parameters[3]?g(t.parameters[3]):1];if(x.test(t.name))return(0,s.z$)(function(t){return function(t){if("quantity"!==t.type||null!==t.unit)throw new n.A("effect:type-error",`Expected <double>, Actual: ${f(t)}`,{term:t})}(t),h(t.value,t),t.value}(t.parameters[0]),g(t.parameters[1]),g(t.parameters[2]),t.parameters[3]?g(t.parameters[3]):1);throw new n.A("effect:syntax-error",`Invalid color function '${t.name}'`,{colorFunction:t})}(t.value)}}function M(t){if(!(0,s.V6)(t))throw new n.A("effect:unknown-color",`color '${t}' isn't valid`,{namedColor:t});return(0,s.c4)(t)}const w=/^rgba?/i,x=/^hsla?/i;function _(t,e,r){try{return function(t){if(!t||0===t.length)return null;if(function(t){const e=t[0];return!!e&&"scale"in e}(t)){const e=[];for(const r of t)e.push({scale:r.scale,value:A(r.value)});return e}return A(t)}(t)}catch(t){r?.messages?.push(t)}return null}function S(t,e,r,n){try{const n=function(t){const e=p(t);return e?(0,a.dw)(e)?e.map((t=>t.toJSON())):e.map((({scale:t,effects:e})=>({scale:t,value:e.map((t=>t.toJSON()))}))):null}(t);(0,o.sM)(r,n,e)}catch(t){n.messages&&n.messages.push(t)}}function A(t){if(!t?.length)return"";const e=[];for(const r of t){let t=[];switch(r.type){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":case"opacity":t=[O(r,"amount")];break;case"blur":t=[O(r,"radius","pt")];break;case"hue-rotate":t=[O(r,"angle","deg")];break;case"drop-shadow":t=[O(r,"xoffset","pt"),O(r,"yoffset","pt"),O(r,"blurRadius","pt"),C(r,"color")];break;case"bloom":t=[O(r,"strength"),O(r,"radius","pt"),O(r,"threshold")]}const n=`${r.type}(${t.filter(Boolean).join(" ")})`;p(n),e.push(n)}return e.join(" ")}function O(t,e,r){if(null==t[e])throw new n.A("effect:missing-parameter",`Missing parameter '${e}' in ${t.type} effect`,{effect:t});return r?t[e]+r:""+t[e]}function C(t,e){if(null==t[e])throw new n.A("effect:missing-parameter",`Missing parameter '${e}' in ${t.type} effect`,{effect:t});const r=t[e];return`rgba(${r[0]||0}, ${r[1]||0}, ${r[2]||0}, ${r[3]/255||0})`}},77690:(t,e,r)=>{r.d(e,{B8:()=>a,Ge:()=>d,I0:()=>c,KC:()=>u,hZ:()=>s,hs:()=>p,lw:()=>l,mg:()=>i,z0:()=>o});var n=r(34304);function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function s(t,e,r,n,o,s,i,a,u,l){return t[0]=e,t[1]=r,t[2]=n,t[3]=o,t[4]=s,t[5]=i,t[6]=a,t[7]=u,t[8]=l,t}function i(t,e){if(t===e){const r=e[1],n=e[2],o=e[5];t[1]=e[3],t[2]=e[6],t[3]=r,t[5]=e[7],t[6]=n,t[7]=o}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function a(t,e){const r=e[0],n=e[1],o=e[2],s=e[3],i=e[4],a=e[5],u=e[6],l=e[7],p=e[8],c=p*i-a*l,d=-p*s+a*u,f=l*s-i*u;let h=r*c+n*d+o*f;return h?(h=1/h,t[0]=c*h,t[1]=(-p*n+o*l)*h,t[2]=(a*n-o*i)*h,t[3]=d*h,t[4]=(p*r-o*u)*h,t[5]=(-a*r+o*s)*h,t[6]=f*h,t[7]=(-l*r+n*u)*h,t[8]=(i*r-n*s)*h,t):null}function u(t,e){const r=e[0],n=e[1],o=e[2],s=e[3],i=e[4],a=e[5],u=e[6],l=e[7],p=e[8];return t[0]=i*p-a*l,t[1]=o*l-n*p,t[2]=n*a-o*i,t[3]=a*u-s*p,t[4]=r*p-o*u,t[5]=o*s-r*a,t[6]=s*l-i*u,t[7]=n*u-r*l,t[8]=r*i-n*s,t}function l(t,e,r){const n=e[0],o=e[1],s=e[2],i=e[3],a=e[4],u=e[5],l=e[6],p=e[7],c=e[8],d=r[0],f=r[1],h=r[2],y=r[3],m=r[4],g=r[5],v=r[6],b=r[7],M=r[8];return t[0]=d*n+f*i+h*l,t[1]=d*o+f*a+h*p,t[2]=d*s+f*u+h*c,t[3]=y*n+m*i+g*l,t[4]=y*o+m*a+g*p,t[5]=y*s+m*u+g*c,t[6]=v*n+b*i+M*l,t[7]=v*o+b*a+M*p,t[8]=v*s+b*u+M*c,t}function p(t,e,r){const n=r[0],o=r[1],s=r[2];return t[0]=n*e[0],t[1]=n*e[1],t[2]=n*e[2],t[3]=o*e[3],t[4]=o*e[4],t[5]=o*e[5],t[6]=s*e[6],t[7]=s*e[7],t[8]=s*e[8],t}function c(t,e){const r=e[0],n=e[1],o=e[2],s=e[3],i=r+r,a=n+n,u=o+o,l=r*i,p=n*i,c=n*a,d=o*i,f=o*a,h=o*u,y=s*i,m=s*a,g=s*u;return t[0]=1-c-h,t[3]=p-g,t[6]=d+m,t[1]=p+g,t[4]=1-l-h,t[7]=f-y,t[2]=d-m,t[5]=f+y,t[8]=1-l-c,t}function d(t,e){const r=e[0],n=e[1],o=e[2],s=e[3],i=e[4],a=e[5],u=e[6],l=e[7],p=e[8],c=e[9],d=e[10],f=e[11],h=e[12],y=e[13],m=e[14],g=e[15],v=r*a-n*i,b=r*u-o*i,M=r*l-s*i,w=n*u-o*a,x=n*l-s*a,_=o*l-s*u,S=p*y-c*h,A=p*m-d*h,O=p*g-f*h,C=c*m-d*y,E=c*g-f*y,Z=d*g-f*m;let T=v*Z-b*E+M*C+w*O-x*A+_*S;return T?(T=1/T,t[0]=(a*Z-u*E+l*C)*T,t[1]=(u*O-i*Z-l*A)*T,t[2]=(i*E-a*O+l*S)*T,t[3]=(o*E-n*Z-s*C)*T,t[4]=(r*Z-o*O+s*A)*T,t[5]=(n*O-r*E-s*S)*T,t[6]=(y*_-m*x+g*w)*T,t[7]=(m*M-h*_-g*b)*T,t[8]=(h*x-y*M+g*v)*T,t):null}function f(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t[4]=e[4]-r[4],t[5]=e[5]-r[5],t[6]=e[6]-r[6],t[7]=e[7]-r[7],t[8]=e[8]-r[8],t}const h=l,y=f;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t[4]=e[4]+r[4],t[5]=e[5]+r[5],t[6]=e[6]+r[6],t[7]=e[7]+r[7],t[8]=e[8]+r[8],t},adjoint:u,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},determinant:function(t){const e=t[0],r=t[1],n=t[2],o=t[3],s=t[4],i=t[5],a=t[6],u=t[7],l=t[8];return e*(l*s-i*u)+r*(-l*o+i*a)+n*(u*o-s*a)},equals:function(t,e){const r=t[0],o=t[1],s=t[2],i=t[3],a=t[4],u=t[5],l=t[6],p=t[7],c=t[8],d=e[0],f=e[1],h=e[2],y=e[3],m=e[4],g=e[5],v=e[6],b=e[7],M=e[8],w=(0,n.FD)();return Math.abs(r-d)<=w*Math.max(1,Math.abs(r),Math.abs(d))&&Math.abs(o-f)<=w*Math.max(1,Math.abs(o),Math.abs(f))&&Math.abs(s-h)<=w*Math.max(1,Math.abs(s),Math.abs(h))&&Math.abs(i-y)<=w*Math.max(1,Math.abs(i),Math.abs(y))&&Math.abs(a-m)<=w*Math.max(1,Math.abs(a),Math.abs(m))&&Math.abs(u-g)<=w*Math.max(1,Math.abs(u),Math.abs(g))&&Math.abs(l-v)<=w*Math.max(1,Math.abs(l),Math.abs(v))&&Math.abs(p-b)<=w*Math.max(1,Math.abs(p),Math.abs(b))&&Math.abs(c-M)<=w*Math.max(1,Math.abs(c),Math.abs(M))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},fromMat4:o,fromQuat:c,fromRotation:function(t,e){const r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=-r,t[4]=n,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:a,isOrthoNormal:function(t){const e=(0,n.FD)(),r=t[0],o=t[1],s=t[2],i=t[3],a=t[4],u=t[5],l=t[6],p=t[7],c=t[8];return Math.abs(1-(r*r+i*i+l*l))<=e&&Math.abs(1-(o*o+a*a+p*p))<=e&&Math.abs(1-(s*s+u*u+c*c))<=e},mul:h,multiply:l,multiplyScalar:function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*r,t[5]=e[5]*r,t[6]=e[6]*r,t[7]=e[7]*r,t[8]=e[8]*r,t},multiplyScalarAndAdd:function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t[4]=e[4]+r[4]*n,t[5]=e[5]+r[5]*n,t[6]=e[6]+r[6]*n,t[7]=e[7]+r[7]*n,t[8]=e[8]+r[8]*n,t},normalFromMat4:d,normalFromMat4Legacy:function(t,e){const r=e[0],n=e[1],o=e[2],s=e[4],i=e[5],a=e[6],u=e[8],l=e[9],p=e[10],c=p*i-a*l,d=-p*s+a*u,f=l*s-i*u,h=r*c+n*d+o*f;if(!h)return null;const y=1/h;return t[0]=c*y,t[1]=(-p*n+o*l)*y,t[2]=(a*n-o*i)*y,t[3]=d*y,t[4]=(p*r-o*u)*y,t[5]=(-a*r+o*s)*y,t[6]=f*y,t[7]=(-l*r+n*u)*y,t[8]=(i*r-n*s)*y,t},projection:function(t,e,r){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/r,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,e,r){const n=e[0],o=e[1],s=e[2],i=e[3],a=e[4],u=e[5],l=e[6],p=e[7],c=e[8],d=Math.sin(r),f=Math.cos(r);return t[0]=f*n+d*i,t[1]=f*o+d*a,t[2]=f*s+d*u,t[3]=f*i-d*n,t[4]=f*a-d*o,t[5]=f*u-d*s,t[6]=l,t[7]=p,t[8]=c,t},scale:p,scaleByVec2:function(t,e,r){const n=r[0],o=r[1];return t[0]=n*e[0],t[1]=n*e[1],t[2]=n*e[2],t[3]=o*e[3],t[4]=o*e[4],t[5]=o*e[5],t},set:s,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:y,subtract:f,translate:function(t,e,r){const n=e[0],o=e[1],s=e[2],i=e[3],a=e[4],u=e[5],l=e[6],p=e[7],c=e[8],d=r[0],f=r[1];return t[0]=n,t[1]=o,t[2]=s,t[3]=i,t[4]=a,t[5]=u,t[6]=d*n+f*i+l,t[7]=d*o+f*a+p,t[8]=d*s+f*u+c,t},transpose:i},Symbol.toStringTag,{value:"Module"}))},78553:(t,e,r)=>{r.d(e,{D:()=>s,p:()=>o});var n=r(56507);function o(t){const e=(0,n.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function s(t){const e=1-t/100;return Math.max(0,Math.min(e,1))}},85360:(t,e,r)=>{r.d(e,{A:()=>j});var n=r(90237),o=r(25482),s=r(4718),i=r(10107),a=r(79901),u=r(36005),l=r(40608),p=r(43937);r(44208),r(53966),r(87811);let c=class extends o.A{constructor(t){super(t),this.description=null,this.label=null,this.type=null}};(0,n._)([(0,i.MZ)({type:String,json:{write:!0}})],c.prototype,"description",void 0),(0,n._)([(0,i.MZ)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,n._)([(0,i.MZ)()],c.prototype,"type",void 0),c=(0,n._)([(0,l.$)("esri.tables.elements.AttributeTableElement")],c);const d=c;var f;let h=f=class extends d{constructor(t){super(t),this.displayType="auto",this.type="attachment"}clone(){return new f({description:this.description,displayType:this.displayType,label:this.label})}};(0,n._)([(0,i.MZ)({type:["auto"],json:{write:!0}})],h.prototype,"displayType",void 0),(0,n._)([(0,i.MZ)({type:["attachment"],readOnly:!0,json:{read:!1,write:!0}})],h.prototype,"type",void 0),h=f=(0,n._)([(0,l.$)("esri.tables.elements.AttributeTableAttachmentElement")],h);const y=h;var m;let g=m=class extends d{constructor(t){super(t),this.fieldName=null,this.type="field"}clone(){return new m({description:this.description,fieldName:this.fieldName,label:this.label})}};(0,n._)([(0,i.MZ)({type:String,json:{write:!0}})],g.prototype,"fieldName",void 0),(0,n._)([(0,i.MZ)({type:String,json:{read:!1,write:!0}})],g.prototype,"type",void 0),g=m=(0,n._)([(0,l.$)("esri.tables.elements.AttributeTableFieldElement")],g);const v=g;var b,M=r(56507);let w=b=class extends d{constructor(t){super(t),this.relationshipId=null,this.type="relationship"}clone(){return new b({description:this.description,label:this.label,relationshipId:this.relationshipId})}};(0,n._)([(0,i.MZ)({type:Number,json:{write:!0}})],w.prototype,"relationshipId",void 0),(0,n._)([(0,i.MZ)({type:["relationship"],json:{read:!1,write:!0}})],w.prototype,"type",void 0),w=b=(0,n._)([(0,l.$)("esri.tables.elements.AttributeTableRelationshipElement")],w);const x=w;function _(t){return{typesWithGroup:{base:d,key:"type",typeMap:{attachment:y,field:v,group:t,relationship:x}},typesWithoutGroup:{base:d,key:"type",typeMap:{attachment:y,field:v,relationship:x}}}}function S(t,e,r=!0){if(!t)return null;const n=r?e.typesWithGroup.typeMap:e.typesWithoutGroup.typeMap;return t.filter((t=>n[t.type])).map((t=>n[t.type].fromJSON(t)))}function A(t,e,r=!0){if(!t)return null;const n=r?e.typesWithGroup.typeMap:e.typesWithoutGroup.typeMap;return t.filter((t=>n[t.type])).map((t=>t.toJSON()))}function O(t,e,r=!0){return t?t.map((t=>(0,M.aq)(r?e.typesWithGroup:e.typesWithoutGroup,t))):null}var C;let E=C=class extends d{constructor(t){super(t),this.elements=null,this.type="group"}castElements(t){return O(t,Z,!1)}readElements(t,e){return S(e.attributeTableElements,Z,!1)}writeElements(t,e){e.attributeTableElements=A(t,Z,!1)}clone(){return new C({description:this.description,elements:(0,s.o8)(this.elements),label:this.label})}};(0,n._)([(0,i.MZ)({json:{write:!0}})],E.prototype,"elements",void 0),(0,n._)([(0,a.w)("elements")],E.prototype,"castElements",null),(0,n._)([(0,u.w)("elements",["attributeTableElements"])],E.prototype,"readElements",null),(0,n._)([(0,p.K)("elements")],E.prototype,"writeElements",null),(0,n._)([(0,i.MZ)({type:String,json:{read:!1,write:!0}})],E.prototype,"type",void 0),E=C=(0,n._)([(0,l.$)("esri.tables.elements.AttributeTableGroupElement")],E);const Z=_(E);var T;const I=_(E);let F=T=class extends o.A{constructor(t){super(t),this.elements=null,this.orderByFields=null}castElements(t){return O(t,I)}readElements(t,e){return S(e.attributeTableElements,I)}writeElements(t,e){e.attributeTableElements=A(t,I)}clone(){return new T({elements:(0,s.o8)(this.elements),orderByFields:this.orderByFields})}};(0,n._)([(0,i.MZ)({json:{write:!0}})],F.prototype,"elements",void 0),(0,n._)([(0,a.w)("elements")],F.prototype,"castElements",null),(0,n._)([(0,u.w)("elements",["attributeTableElements"])],F.prototype,"readElements",null),(0,n._)([(0,p.K)("elements")],F.prototype,"writeElements",null),(0,n._)([(0,i.MZ)({type:[Object],json:{write:!0}})],F.prototype,"orderByFields",void 0),F=T=(0,n._)([(0,l.$)("esri.tables.AttributeTableTemplate")],F);const j=F},88625:(t,e,r)=>{r.d(e,{A:()=>M});var n,o=r(90237),s=r(66552),i=r(25482),a=r(97768),u=r(10107),l=(r(44208),r(53966),r(87811),r(36005)),p=r(40608),c=r(43937),d=r(30524);let f=n=class extends i.A{constructor(t){super(t)}async collectRequiredFields(t,e){return(0,d.Dx)(t,e,this.expression)}clone(){return new n({expression:this.expression,title:this.title})}equals(t){return this.expression===t.expression&&this.title===t.title}};(0,o._)([(0,u.MZ)({type:String,json:{write:{isRequired:!0}}})],f.prototype,"expression",void 0),(0,o._)([(0,u.MZ)({type:String,json:{write:!0}})],f.prototype,"title",void 0),f=n=(0,o._)([(0,p.$)("esri.symbols.support.FeatureExpressionInfo")],f);const h=f;var y,m=r(16271);const g=(0,s.O)()({onTheGround:"on-the-ground",relativeToGround:"relative-to-ground",relativeToScene:"relative-to-scene",absoluteHeight:"absolute-height"}),v=new s.J({foot:"feet",kilometer:"kilometers",meter:"meters",mile:"miles","us-foot":"us-feet",yard:"yards"});let b=class extends i.A{static{y=this}constructor(t){super(t),this.featureExpressionInfo=void 0,this.offset=null}readFeatureExpressionInfo(t,e){return null!=t?t:e.featureExpression&&0===e.featureExpression.value?{expression:"0"}:void 0}writeFeatureExpressionInfo(t,e,r,n){e[r]=t.write({},n),"0"===t.expression&&(e.featureExpression={value:0})}get mode(){const{offset:t,featureExpressionInfo:e}=this;return this._isOverridden("mode")?this._get("mode"):null!=t||e?"relative-to-ground":"on-the-ground"}set mode(t){this._override("mode",t)}set unit(t){this._set("unit",t)}write(t,e){return this.offset||this.mode||this.featureExpressionInfo||this.unit?super.write(t,e):null}clone(){return new y({mode:this.mode,offset:this.offset,featureExpressionInfo:this.featureExpressionInfo?this.featureExpressionInfo.clone():void 0,unit:this.unit})}equals(t){return this.mode===t.mode&&this.offset===t.offset&&this.unit===t.unit&&(0,a.CM)(this.featureExpressionInfo,t.featureExpressionInfo)}};(0,o._)([(0,u.MZ)({type:h,json:{write:!0}})],b.prototype,"featureExpressionInfo",void 0),(0,o._)([(0,l.w)("featureExpressionInfo",["featureExpressionInfo","featureExpression"])],b.prototype,"readFeatureExpressionInfo",null),(0,o._)([(0,c.K)("featureExpressionInfo",{featureExpressionInfo:{type:h},"featureExpression.value":{type:[0]}})],b.prototype,"writeFeatureExpressionInfo",null),(0,o._)([(0,u.MZ)({type:g.apiValues,nonNullable:!0,json:{type:g.jsonValues,read:g.read,write:{writer:g.write,isRequired:!0}}})],b.prototype,"mode",null),(0,o._)([(0,u.MZ)({type:Number,json:{write:!0}})],b.prototype,"offset",void 0),(0,o._)([(0,u.MZ)({type:m.KQ,json:{type:String,read:v.read,write:v.write}})],b.prototype,"unit",null),b=y=(0,o._)([(0,p.$)("esri.symbols.support.ElevationInfo")],b);const M=b},89317:(t,e,r)=>{r.d(e,{K:()=>n});const n=["operational-layers","basemap","ground"]},92071:(t,e,r)=>{r.d(e,{P:()=>b,L:()=>M});var n=r(90237),o=r(69622),s=r(76953),i=r(4718),a=r(35666);class u{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(a.AU),this._values=new Map,this.multipleOriginsSupported=!0}clone(t){const e=new u,r=this._originStores[a.Gr.DEFAULTS];r&&r.forEach(((t,r)=>{e.set(r,(0,i.o8)(t),a.Gr.DEFAULTS)}));for(let r=a.Gr.SERVICE;r<a.AU;r++){const n=this._originStores[r];n&&n.forEach(((n,o)=>{t&&t.has(o)||e.set(o,(0,i.o8)(n),r)}))}return e}get(t,e){const r=void 0===e?this._values:this._originStores[e];return r?r.get(t):void 0}keys(t){const e=null==t?this._values:this._originStores[t];return e?[...e.keys()]:[]}set(t,e,r=a.Gr.USER){let n=this._originStores[r];if(n||(n=new Map,this._originStores[r]=n),n.set(t,e),!this._values.has(t)||this._propertyOriginMap.get(t)<=r){const n=this._values.get(t);return this._values.set(t,e),this._propertyOriginMap.set(t,r),n!==e}return!1}delete(t,e=a.Gr.USER){const r=this._originStores[e];if(!r)return;const n=r.get(t);if(r.delete(t),this._values.has(t)&&this._propertyOriginMap.get(t)===e){this._values.delete(t);for(let r=e-1;r>=0;r--){const e=this._originStores[r];if(e&&e.has(t)){this._values.set(t,e.get(t)),this._propertyOriginMap.set(t,r);break}}}return n}has(t,e){const r=void 0===e?this._values:this._originStores[e];return!!r&&r.has(t)}revert(t,e){for(;e>0&&!this.has(t,e);)--e;const r=this._originStores[e],n=r?.get(t),o=this._values.get(t);return this._values.set(t,n),this._propertyOriginMap.set(t,e),o!==n}originOf(t){return this._propertyOriginMap.get(t)||a.Gr.DEFAULTS}forEach(t){this._values.forEach(t)}}var l=r(45917),p=r(88620),c=r(40608);const d=t=>{let e=class extends t{constructor(...t){super(...t);const e=(0,p.oY)(this),r=e.store,n=new u;e.store=n,(0,s.k)(e,r,n)}read(t,e){(0,l.L)(this,t,e)}getAtOrigin(t,e){const r=f(this),n=(0,a.aB)(e);if("string"==typeof t)return r.get(t,n);const o={};return t.forEach((t=>{o[t]=r.get(t,n)})),o}originOf(t){return(0,a.OL)(this.originIdOf(t))}originIdOf(t){return f(this).originOf(t)}revert(t,e){const r=f(this),n=(0,a.aB)(e),o=(0,p.oY)(this);let s;s="string"==typeof t?"*"===t?r.keys(n):[t]:t,s.forEach((t=>{o.invalidate(t),r.revert(t,n),o.commit(t)}))}};return e=(0,n._)([(0,c.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],e),e};function f(t){return(0,p.oY)(t).store}let h=class extends(d(o.A)){};h=(0,n._)([(0,c.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],h);var y=r(16649),m=r(49422);const g=t=>{let e=class extends t{constructor(...t){super(...t)}clear(t,e="user"){return v(this).delete(t,(0,a.aB)(e))}write(t,e){return(0,m.M)(this,t=t||{},e),t}setAtOrigin(t,e,r){(0,p.oY)(this).setAtOrigin(t,e,(0,a.aB)(r))}removeOrigin(t){const e=v(this),r=(0,a.aB)(t),n=e.keys(r);for(const t of n)e.originOf(t)===r&&e.set(t,e.get(t,r),a.Gr.USER)}updateOrigin(t,e){const r=v(this),n=(0,a.aB)(e),o=(0,y.Jt)(this,t);for(let e=n+1;e<a.AU;++e)r.delete(t,e);r.set(t,o,n)}toJSON(t){return this.write({},t)}};return e=(0,n._)([(0,c.$)("esri.core.MultiOriginJSONSupport.WriteableMultiOriginJSONSupport")],e),e.prototype.toJSON.isDefaultToJSON=!0,e};function v(t){return(0,p.oY)(t).store}const b=t=>{let e=class extends(g(d(t))){constructor(...t){super(...t)}};return e=(0,n._)([(0,c.$)("esri.core.MultiOriginJSONSupport")],e),e};let M=class extends(b(o.A)){};M=(0,n._)([(0,c.$)("esri.core.MultiOriginJSONSupport")],M)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5666,6061],{55666:(e,t,n)=>{n.r(t),n.d(t,{execute:()=>u,executeMany:()=>i,isConvex:()=>s});var r=n(91577),o=n(83299);function u(e){const t=(0,o.fromGeometry)(e);return(0,o.toGeometry)((0,r.g7)(t.getGeometry()),t.getSpatialReference())}function i(e,t={}){const{merge:n=!1}=t,[u,i]=(0,o.fromGeometries)(e);return(0,r.zo)(u,n).map((e=>(0,o.toGeometry)(e,i)))}function s(e){return(0,r.qT)((0,o.fromGeometryToGXGeometry)(e))}},76061:(e,t,n)=>{n.d(t,{G:()=>r,S:()=>o});class r{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}class o extends r{constructor(e){super(),this.m_iGeom=-1,this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},91577:(e,t,n)=>{n.d(t,{fz:()=>h,g7:()=>y,qT:()=>f,zo:()=>G});var r=n(76061),o=n(55537),u=n(95213),i=n(35368),s=n(79187);class m extends r.G{constructor(e,t,n){super(),t||(0,o.t)(""),this.m_progressTracker=n,this.m_index=-1,this.m_bMerge=e,this.m_bDone=!1,this.m_inputGeometryCursor=t}getGeometryID(){return this.m_index}tock(){return!0}getRank(){return 1}next(){if(this.m_bMerge){if(!this.m_bDone){const e=c(this.m_inputGeometryCursor);return this.m_bDone=!0,e}return null}if(!this.m_bDone){const e=this.m_inputGeometryCursor.next();if(null!==e)return(0,o.l)(e),(0,o.d)(e),this.m_index=this.m_inputGeometryCursor.getGeometryID(),l(e);this.m_bDone=!0}return null}}function c(e,t){const n=new i.C;let r;for(;r=e.next();)(0,o.l)(r),(0,o.d)(r),n.addGeometry(r);return n.getBoundingGeometry()}function l(e,t){if(e||(0,o.t)(""),(0,o.l)(e),(0,o.d)(e),e.isEmpty())return e.createInstance();const n=e.getGeometryType();if((0,o.f)(n)){const t=e;if(t.getStartXY().equals(t.getEndXY())){const e=new u.P;return t.queryStart(e),e}{const n=new u.P,r=new i.P({vd:e.getDescription()});return t.queryStart(n),r.startPathPoint(n),t.queryEnd(n),r.lineToPoint(n),r}}if(n===o.G.enumEnvelope){const t=e,n=new s.J;if(t.queryEnvelope(n),n.xmin===n.xmax&&n.ymin===n.ymax){const e=new u.P;return t.queryCornerByVal(0,e),e}if(n.xmin===n.xmax||n.ymin===n.ymax){const n=new u.P,r=new i.P({vd:e.getDescription()});return t.queryCornerByVal(0,n),r.startPathPoint(n),t.queryCornerByVal(1,n),r.lineToPoint(n),r}{const n=new i.a({vd:e.getDescription()});return n.addEnvelope(t,!1),n}}if(n===o.G.enumGeometryCollection)return c((0,i.g)(e,-1));if(a(e)){if(n===o.G.enumMultiPoint){const t=e,n=new u.P;return t.getPointByVal(0,n),n}return e}return(0,i.f)(e)}function a(e,t){if((0,o.l)(e),(0,o.d)(e),e.isEmpty())return!0;const n=e.getGeometryType();if(n===o.G.enumPoint)return!0;if(n===o.G.enumEnvelope){const t=e;return t.getXMin()!==t.getXMax()&&t.getYMin()!==t.getYMax()}if((0,o.f)(n)){const t=e;return!t.getStartXY().equals(t.getEndXY())}if(n===o.G.enumMultiPoint)return 1===e.getPointCount();if(n===o.G.enumPolyline){const t=e;return 1===t.getPathCount()&&2===t.getPointCount()&&!t.getXY(0).equals(t.getXY(1))}if(n===o.G.enumGeometryCollection){const t=e;return 1===t.getGeometryCount()&&a(t.getGeometry(0))}const r=e;return!(1!==r.getPathCount()||r.getPointCount()<3)&&(0,i.i)(r,0)}const g=new class{getOperatorType(){return 10102}supportsCurves(){return!1}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,n){return new m(t,e,n)}execute(e,t){return l(e)}isConvex(e,t){if((0,o.l)(e),(0,o.d)(e),e.isEmpty())return!0;const n=e.getGeometryType();if(n===o.G.enumPoint)return!0;if(n===o.G.enumEnvelope){const t=e;return t.getXMin()!==t.getXMax()&&t.getYMin()!==t.getYMax()}if((0,o.f)(n)){const t=e;return!t.getStartXY().equals(t.getEndXY())}if(n===o.G.enumMultiPoint)return 1===e.getPointCount();if(n===o.G.enumPolyline){const t=e;return 1===t.getPathCount()&&2===t.getPointCount()&&!t.getXY(0).equals(t.getXY(1))}if(n===o.G.enumGeometryCollection){const n=e;return 1===n.getGeometryCount()&&this.isConvex(n.getGeometry(0),t)}const r=e;return!(1!==r.getPathCount()||r.getPointCount()<3)&&(0,i.i)(r,0)}constructOrientedMinimumBoundingBox(e,t,n,r,o){(0,i.e)(e,t,n,r,o)}};function y(e){return g.execute(e,null)}function G(e,t){const n=g.executeMany(new r.S(e),t,null);return Array.from(n)}function f(e){return g.isConvex(e,null)}function h(){return g.supportsCurves()}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2015],{11764:(e,t,s)=>{s.r(t),s.d(t,{default:()=>X});var n=s(74887),r=s(89640),i=s(6774),a=s(13195);function o(e){return 746===e||747===e||!(e<4352)&&(e>=12704&&e<=12735||e>=12544&&e<=12591||e>=65072&&e<=65103&&!(e>=65097&&e<=65103)||e>=63744&&e<=64255||e>=13056&&e<=13311||e>=11904&&e<=12031||e>=12736&&e<=12783||e>=12288&&e<=12351&&!(e>=12296&&e<=12305||e>=12308&&e<=12319||12336===e)||e>=13312&&e<=19903||e>=19968&&e<=40959||e>=12800&&e<=13055||e>=12592&&e<=12687||e>=43360&&e<=43391||e>=55216&&e<=55295||e>=4352&&e<=4607||e>=44032&&e<=55215||e>=12352&&e<=12447||e>=12272&&e<=12287||e>=12688&&e<=12703||e>=12032&&e<=12255||e>=12784&&e<=12799||e>=12448&&e<=12543&&12540!==e||e>=65280&&e<=65519&&!(65288===e||65289===e||65293===e||e>=65306&&e<=65310||65339===e||65341===e||65343===e||e>=65371&&e<=65503||65507===e||e>=65512&&e<=65519)||e>=65104&&e<=65135&&!(e>=65112&&e<=65118||e>=65123&&e<=65126)||e>=5120&&e<=5759||e>=6320&&e<=6399||e>=65040&&e<=65055||e>=19904&&e<=19967||e>=40960&&e<=42127||e>=42128&&e<=42191)}function l(e){return!(e<11904)&&(e>=12704&&e<=12735||e>=12544&&e<=12591||e>=65072&&e<=65103||e>=63744&&e<=64255||e>=13056&&e<=13311||e>=11904&&e<=12031||e>=12736&&e<=12783||e>=12288&&e<=12351||e>=13312&&e<=19903||e>=19968&&e<=40959||e>=12800&&e<=13055||e>=65280&&e<=65519||e>=12352&&e<=12447||e>=12272&&e<=12287||e>=12032&&e<=12255||e>=12784&&e<=12799||e>=12448&&e<=12543||e>=65040&&e<=65055||e>=42128&&e<=42191||e>=40960&&e<=42127)}function h(e){switch(e){case 10:case 32:case 38:case 40:case 41:case 43:case 45:case 47:case 173:case 183:case 8203:case 8208:case 8211:case 8231:return!0}return!1}function c(e){switch(e){case 9:case 10:case 11:case 12:case 13:case 32:return!0}return!1}var u=s(18989);const f=24;class d{constructor(e,t,s,n,r,i,a){this._glyphItems=e,this._maxWidth=t,this._lineHeight=s,this._letterSpacing=n,this._hAnchor=r,this._vAnchor=i,this._justify=a}getShaping(e,t,s){const n=this._letterSpacing,r=this._lineHeight,i=this._justify,a=this._maxWidth,u=[];let f=0,d=0;for(const t of e){const e=t.codePointAt(0);if(null==e)continue;const r=s&&o(e);let i;for(const t of this._glyphItems)if(i=t[e],i)break;u.push({codePoint:e,x:f,y:d,vertical:r,glyphMosaicItem:i}),i&&(f+=i.metrics.advance+n)}let y=f;a>0&&(y=f/Math.max(1,Math.ceil(f/a)));const g=e.includes(""),x=[],p=u.length;for(let e=0;e<p-1;e++){const t=u[e].codePoint,s=l(t);if(h(t)||s){let n=0;if(10===t)n-=1e4;else if(s&&g)n+=150;else{40!==t&&65288!==t||(n+=50);const s=u[e+1].codePoint;41!==s&&65289!==s||(n+=50)}x.push(this._buildBreak(e+1,u[e].x,y,x,n,!1))}}const m=this._optimalBreaks(this._buildBreak(p,f,y,x,0,!0));let _=0;const I=t?-r:r;let b=0;for(let e=0;e<m.length;e++){const t=m[e];let s=b;for(;s<t&&c(u[s].codePoint);)u[s].glyphMosaicItem=null,++s;let n=t-1;for(;n>s&&c(u[n].codePoint);)u[n].glyphMosaicItem=null,--n;if(s<=n){const e=u[s].x;for(let t=s;t<=n;t++)u[t].x-=e,u[t].y=d;let t=u[n].x;u[n].glyphMosaicItem&&(t+=u[n].glyphMosaicItem.metrics.advance),_=Math.max(t,_),i&&this._applyJustification(u,s,n)}b=t,d+=I}if(u.length>0){const e=m.length-1,s=(i-this._hAnchor)*_;let n=(-this._vAnchor*(e+1)+.5)*r;t&&e&&(n+=e*r);for(const e of u)e.x+=s,e.y+=n}return u.filter((e=>e.glyphMosaicItem))}static getTextBox(e,t){if(!e.length)return null;let s=1/0,n=1/0,r=0,i=0;for(const a of e){const e=a.glyphMosaicItem.metrics.advance,o=a.x,l=a.y-17,h=o+e,c=l+t;s=Math.min(s,o),r=Math.max(r,h),n=Math.min(n,l),i=Math.max(i,c)}return{x:s,y:n,width:r-s,height:i-n}}static getBox(e){if(!e.length)return null;let t=1/0,s=1/0,n=0,r=0;for(const i of e){const{height:e,left:a,top:o,width:l}=i.glyphMosaicItem.metrics,h=i.x,c=i.y-(e-Math.abs(o)),u=h+l+a,f=c+e;t=Math.min(t,h),n=Math.max(n,u),s=Math.min(s,c),r=Math.max(r,f)}return{x:t,y:s,width:n-t,height:r-s}}static addDecoration(e,t){const s=e.length;if(0===s)return;let n=e[0].x+e[0].glyphMosaicItem.metrics.left,r=e[0].y;for(let i=1;i<s;i++){const s=e[i];if(s.y!==r){const a=e[i-1].x+e[i-1].glyphMosaicItem.metrics.left+e[i-1].glyphMosaicItem.metrics.width;e.push({codePoint:0,x:n,y:r+t-3,vertical:!1,glyphMosaicItem:{sdf:!0,rect:new u.A(4,0,4,8),metrics:{width:a-n,height:8,left:0,top:0,advance:0},page:0,code:0}}),r=s.y,n=s.x+s.glyphMosaicItem.metrics.left}}const i=e[s-1].x+e[s-1].glyphMosaicItem.metrics.left+e[s-1].glyphMosaicItem.metrics.width;e.push({codePoint:0,x:n,y:r+t-3,vertical:!1,glyphMosaicItem:{sdf:!0,rect:new u.A(4,0,4,8),metrics:{width:i-n,height:8,left:0,top:0,advance:0},page:0,code:0}})}_breakScore(e,t,s,n){const r=(e-t)*(e-t);return n?e<t?r/2:2*r:r+Math.abs(s)*s}_buildBreak(e,t,s,n,r,i){let a=null,o=this._breakScore(t,s,r,i);for(const e of n){const n=t-e.x,l=this._breakScore(n,s,r,i)+e.score;l<=o&&(a=e,o=l)}return{index:e,x:t,score:o,previousBreak:a}}_optimalBreaks(e){return e?this._optimalBreaks(e.previousBreak).concat(e.index):[]}_applyJustification(e,t,s){const n=e[s],r=n.vertical?f:n.glyphMosaicItem?n.glyphMosaicItem.metrics.advance:0,i=(n.x+r)*this._justify;for(let n=t;n<=s;n++)e[n].x-=i}}var y=s(4272);const g=.5;class x{constructor(e,t,s=0,n=-1,r=g){this.x=e,this.y=t,this.angle=s,this.segment=n,this.minzoom=r}}class p{constructor(e,t,s,n,r,i=g,o=a.MG){this.anchor=e,this.labelAngle=t,this.glyphAngle=s,this.page=n,this.alternateVerticalGlyph=r,this.minzoom=i,this.maxzoom=o}}class m{constructor(e,t,s,n,r,i,a,o,l,h,c,u){this.tl=e,this.tr=t,this.bl=s,this.br=n,this.mosaicRect=r,this.labelAngle=i,this.minAngle=a,this.maxAngle=o,this.anchor=l,this.minzoom=h,this.maxzoom=c,this.page=u}}class _{constructor(e){this.shapes=e}}class I{getIconPlacement(e,t,s){const n=new i.bR(e.x,e.y),r=s.rotationAlignment===y.I5.MAP,o=s.keepUpright;let l=s.rotate*a.os;r&&(l+=e.angle);const h=new _([]);return s.allowOverlap&&s.ignorePlacement||(h.iconColliders=[]),this._addIconPlacement(h,n,t,s,l),r&&o&&this._addIconPlacement(h,n,t,s,l+a.Jo),h}_addIconPlacement(e,t,s,n,r){const o=s.rasterizationScale,l=s.width/o,h=s.height/o,c=n.offset;let u=c[0],f=c[1];switch(n.anchor){case y.KI.CENTER:u-=l/2,f-=h/2;break;case y.KI.LEFT:f-=h/2;break;case y.KI.RIGHT:u-=l,f-=h/2;break;case y.KI.TOP:u-=l/2;break;case y.KI.BOTTOM:u-=l/2,f-=h;break;case y.KI.TOP_LEFT:break;case y.KI.BOTTOM_LEFT:f-=h;break;case y.KI.TOP_RIGHT:u-=l;break;case y.KI.BOTTOM_RIGHT:u-=l,f-=h}const d=s.rect,x=2/o,p=u-x,_=f-x,I=p+d.width/o,b=_+d.height/o,M=new i.bR(p,_),w=new i.bR(I,b),P=new i.bR(p,b),T=new i.bR(I,_);if(0!==r){const e=Math.cos(r),t=Math.sin(r);M.rotate(e,t),w.rotate(e,t),P.rotate(e,t),T.rotate(e,t)}const A=new m(M,T,P,w,d,r,0,256,t,g,a.MG,0);if(e.shapes.push(A),!n.allowOverlap||!n.ignorePlacement){const s=n.size,i=n.padding,o={xTile:t.x,yTile:t.y,dxPixels:u*s-i,dyPixels:f*s-i,hard:!n.optional,partIndex:0,width:l*s+2*i,height:h*s+2*i,angle:r,minLod:g,maxLod:a.MG};e.iconColliders.push(o)}}getTextPlacement(e,t,s,n){const r=new i.bR(e.x,e.y),o=n.rotate*a.os,l=n.rotationAlignment===y.I5.MAP,h=n.keepUpright,c=n.padding;let u=g;const x=l?e.angle:0,I=e.segment>=0&&l,b=n.allowOverlap&&n.ignorePlacement?null:[],M=[],w=!I;let P=Number.POSITIVE_INFINITY,T=Number.NEGATIVE_INFINITY,A=P,D=T;const k=(I||l)&&h,L=n.size/f;let B=!1;for(const e of t)if(e.vertical){B=!0;break}let v,V=0,R=0;if(!I&&B){const e=d.getTextBox(t,n.lineHeight*f);switch(n.anchor){case y.KI.LEFT:V=e.height/2,R=-e.width/2;break;case y.KI.RIGHT:V=-e.height/2,R=e.width/2;break;case y.KI.TOP:V=e.height/2,R=e.width/2;break;case y.KI.BOTTOM:V=-e.height/2,R=-e.width/2;break;case y.KI.TOP_LEFT:V=e.height;break;case y.KI.BOTTOM_LEFT:R=-e.width;break;case y.KI.TOP_RIGHT:R=e.width;break;case y.KI.BOTTOM_RIGHT:V=-e.height}}V+=n.offset[0]*f,R+=n.offset[1]*f;for(const f of t){const t=f.glyphMosaicItem;if(!t||t.rect.isEmpty)continue;const d=t.rect,y=t.metrics,_=t.page;if(b&&w){if(void 0!==v&&v!==f.y){let t,s,r,i;B?(t=-D+V,s=P+R,r=D-A,i=T-P):(t=P+V,s=A+R,r=T-P,i=D-A);const l={xTile:e.x,yTile:e.y,dxPixels:t*L-c,dyPixels:s*L-c,hard:!n.optional,partIndex:1,width:r*L+2*c,height:i*L+2*c,angle:o,minLod:g,maxLod:a.MG};b.push(l),P=Number.POSITIVE_INFINITY,T=Number.NEGATIVE_INFINITY,A=P,D=T}v=f.y}const S=[];if(I){const n=.5*t.metrics.width,r=(f.x+y.left-4+n)*L*8;if(u=this._placeGlyph(e,u,r,s,e.segment,1,f.vertical,_,S),h&&(u=this._placeGlyph(e,u,r,s,e.segment,-1,f.vertical,_,S)),u>=2)break}else S.push(new p(r,x,x,_,!1)),l&&h&&S.push(new p(r,x+a.Jo,x+a.Jo,_,!1));const C=f.x+y.left,O=f.y-17-y.top,E=C+y.width,z=O+y.height;let F,N,U,G,K,q,H,W;if(!I&&B)if(f.vertical){const e=(C+E)/2-y.height/2,t=(O+z)/2+y.width/2;F=new i.bR(-t-4+V,e-4+R),N=new i.bR(F.x+d.width,F.y+d.height),U=new i.bR(F.x,N.y),G=new i.bR(N.x,F.y)}else F=new i.bR(4-O+V,C-4+R),N=new i.bR(F.x-d.height,F.y+d.width),U=new i.bR(N.x,F.y),G=new i.bR(F.x,N.y);else F=new i.bR(C-4+V,O-4+R),N=new i.bR(F.x+d.width,F.y+d.height),U=new i.bR(F.x,N.y),G=new i.bR(N.x,F.y);for(const t of S){let s,r,a,l;if(t.alternateVerticalGlyph){if(!K){const e=(O+z)/2+R;K=new i.bR((C+E)/2+V-y.height/2-4,e+y.width/2+4),q=new i.bR(K.x+d.height,K.y-d.width),H=new i.bR(q.x,K.y),W=new i.bR(K.x,q.y)}s=K,r=H,a=W,l=q}else s=F,r=U,a=G,l=N;const h=O,u=z,g=t.glyphAngle+o;if(0!==g){const e=Math.cos(g),t=Math.sin(g);s=s.clone(),r=r?.clone(),a=a?.clone(),l=l?.clone(),s.rotate(e,t),l?.rotate(e,t),r?.rotate(e,t),a?.rotate(e,t)}let x=0,p=256;if(I&&B?f.vertical?t.alternateVerticalGlyph?(x=32,p=96):(x=224,p=32):(x=224,p=96):(x=192,p=64),M.push(new m(s,a,r,l,d,t.labelAngle,x,p,t.anchor,t.minzoom,t.maxzoom,t.page)),b&&(!k||this._legible(t.labelAngle)))if(w)C<P&&(P=C),h<A&&(A=h),E>T&&(T=E),u>D&&(D=u);else if(t.minzoom<2){const s={xTile:e.x,yTile:e.y,dxPixels:(C+V)*L-c,dyPixels:(h+V)*L-c,hard:!n.optional,partIndex:1,width:(E-C)*L+2*c,height:(u-h)*L+2*c,angle:g,minLod:t.minzoom,maxLod:t.maxzoom};b.push(s)}}}if(u>=2)return null;if(b&&w){let t,s,r,i;B?(t=-D+V,s=P+R,r=D-A,i=T-P):(t=P+V,s=A+R,r=T-P,i=D-A);const l={xTile:e.x,yTile:e.y,dxPixels:t*L-c,dyPixels:s*L-c,hard:!n.optional,partIndex:1,width:r*L+2*c,height:i*L+2*c,angle:o,minLod:g,maxLod:a.MG};b.push(l)}const S=new _(M);return b&&b.length>0&&(S.textColliders=b),S}_legible(e){const t=(0,a.z0)(e);return t<65||t>=193}_placeGlyph(e,t,s,n,r,o,l,h,c){let u=o;const f=u<0?(0,a.Wh)(e.angle+a.Jo,a.pJ):e.angle;let d=0;s<0&&(u*=-1,s*=-1,d=a.Jo),u>0&&++r;let y=new i.bR(e.x,e.y),g=n[r],x=a.MG;if(n.length<=r)return x;for(;;){const e=g.x-y.x,i=g.y-y.y,o=Math.sqrt(e*e+i*i),m=Math.max(s/o,t),_=e/o,I=i/o,b=(0,a.Wh)(Math.atan2(I,_)+d,a.pJ);if(c.push(new p(y,f,b,h,!1,m,x)),l&&c.push(new p(y,f,b,h,!0,m,x)),m<=t)return m;y=g.clone();do{if(r+=u,n.length<=r||r<0)return m;g=n[r]}while(y.isEqual(g));let M=g.x-y.x,w=g.y-y.y;const P=Math.sqrt(M*M+w*w);M*=o/P,w*=o/P,y.x-=M,y.y-=w,x=m}}}var b,M,w=s(51624),P=s(15585);(M=b||(b={}))[M.moveTo=1]="moveTo",M[M.lineTo=2]="lineTo",M[M.close=7]="close";class T{constructor(e,t,s=0){this.values={},this._geometry=void 0,this._pbfGeometry=null,this.featureIndex=s;const n=t.keys,r=t.values,i=e.asUnsafe();for(;i.next();)switch(i.tag()){case 1:this.id=i.getUInt64();break;case 2:{const e=i.getMessage().asUnsafe(),t=this.values;for(;!e.empty();){const s=e.getUInt32(),i=e.getUInt32();t[n[s]]=r[i]}e.release();break}case 3:this.type=i.getUInt32();break;case 4:this._pbfGeometry=i.getMessage();break;default:i.skip()}}getGeometry(e){if(void 0!==this._geometry)return this._geometry;if(!this._pbfGeometry)return null;const t=this._pbfGeometry.asUnsafe();let s,n;this._pbfGeometry=null,e?e.reset(this.type):s=[];let r,a=b.moveTo,o=0,l=0,h=0;for(;!t.empty();){if(0===o){const e=t.getUInt32();a=7&e,o=e>>3}switch(o--,a){case b.moveTo:l+=t.getSInt32(),h+=t.getSInt32(),e?e.moveTo(l,h):s&&(n&&s.push(n),n=[],n.push(new i.bR(l,h)));break;case b.lineTo:l+=t.getSInt32(),h+=t.getSInt32(),e?e.lineTo(l,h):n&&n.push(new i.bR(l,h));break;case b.close:e?e.close():n&&!n[0].equals(l,h)&&n.push(n[0].clone());break;default:throw t.release(),new Error("Invalid path operation")}}return e?r=e.result():s&&(n&&s.push(n),r=s),t.release(),this._geometry=r,r}}var A=s(80081);class D extends A.A{constructor(){super(12)}add(e,t,s){const n=this.array;n.push(e),n.push(t),n.push(s)}}A.A;class k{constructor(e){this.extent=4096,this.keys=[],this.values=[],this._pbfLayer=e.clone();const t=e.asUnsafe();for(;t.next();)switch(t.tag()){case 1:this.name=t.getString();break;case 3:this.keys.push(t.getString());break;case 4:this.values.push(t.processMessage(k._parseValue));break;case 5:this.extent=t.getUInt32();break;default:t.skip()}}getData(){return this._pbfLayer}static _parseValue(e){for(;e.next();)switch(e.tag()){case 1:return e.getString();case 2:return e.getFloat();case 3:return e.getDouble();case 4:return e.getInt64();case 5:return e.getUInt64();case 6:return e.getSInt64();case 7:return e.getBool();default:e.skip()}return null}}class L extends A.A{constructor(e){super(e)}add(e,t,s,n,r,i,a,o,l,h,c,u){const f=this.array;let d=A.A.i1616to32(e,t);f.push(d);const y=31;d=A.A.i8888to32(Math.round(y*s),Math.round(y*n),Math.round(y*r),Math.round(y*i)),f.push(d),d=A.A.i8888to32(Math.round(y*a),Math.round(y*o),Math.round(y*l),Math.round(y*h)),f.push(d),d=A.A.i1616to32(c,0),f.push(d),u&&f.push(...u)}}class B extends A.A{constructor(e){super(e)}add(e,t,s){const n=this.array;n.push(A.A.i1616to32(e,t)),s&&n.push(...s)}}class v extends A.A{constructor(e){super(e)}add(e,t,s,n,r,i,a){const o=this.array,l=this.index;let h=A.A.i1616to32(e,t);return o.push(h),h=A.A.i8888to32(Math.round(15*s),Math.round(15*n),r,i),o.push(h),a&&o.push(...a),l}}class V extends A.A{constructor(e){super(e)}add(e,t,s,n,r,i,o,l,h,c,u,f){const d=this.array;let y=A.A.i1616to32(e,t);d.push(y),y=A.A.i1616to32(Math.round(8*s),Math.round(8*n)),d.push(y),y=A.A.i8888to32(r/4,i/4,l,h),d.push(y),y=A.A.i8888to32(0,(0,a.z0)(o),10*c,Math.min(10*u,255)),d.push(y),f&&d.push(...f)}}class R extends A.A{constructor(e){super(e)}add(e,t,s,n,r){const i=this.array,a=A.A.i1616to32(2*e+s,2*t+n);i.push(a),r&&i.push(...r)}}class S{constructor(e,t,s){this.layerExtent=4096,this._features=[],this.layer=e,this.zoom=t,this._spriteInfo=s,this._filter=e.getFeatureFilter()}pushFeature(e){this._filter&&!this._filter.filter(e,this.zoom)||this._features.push(e)}hasFeatures(){return this._features.length>0}getResources(e,t,s){}}class C extends S{constructor(e,t,s,n,i){super(e,t,s),this.type=r.NP.CIRCLE,this._circleVertexBuffer=n,this._circleIndexBuffer=i}get circleIndexStart(){return this._circleIndexStart}get circleIndexCount(){return this._circleIndexCount}processFeatures(e){const t=this._circleVertexBuffer,s=this._circleIndexBuffer;this._circleIndexStart=3*s.index,this._circleIndexCount=0;const n=this.layer,r=this.zoom;e&&e.setExtent(this.layerExtent);for(const i of this._features){const a=i.getGeometry(e);if(!a)continue;const o=n.circleMaterial.encodeAttributes(i,r,n);for(const e of a)if(e)for(const n of e){const e=t.index;t.add(n.x,n.y,0,0,o),t.add(n.x,n.y,0,1,o),t.add(n.x,n.y,1,0,o),t.add(n.x,n.y,1,1,o),s.add(e,e+1,e+2),s.add(e+1,e+2,e+3),this._circleIndexCount+=6}}}serialize(){let e=6;e+=this.layerUIDs.length,e+=this._circleVertexBuffer.array.length,e+=this._circleIndexBuffer.array.length;const t=new Uint32Array(e),s=new Int32Array(t.buffer);let n=0;t[n++]=this.type,t[n++]=this.layerUIDs.length;for(let e=0;e<this.layerUIDs.length;e++)t[n++]=this.layerUIDs[e];t[n++]=this._circleIndexStart,t[n++]=this._circleIndexCount,t[n++]=this._circleVertexBuffer.array.length;for(let e=0;e<this._circleVertexBuffer.array.length;e++)s[n++]=this._circleVertexBuffer.array[e];t[n++]=this._circleIndexBuffer.array.length;for(let e=0;e<this._circleIndexBuffer.array.length;e++)t[n++]=this._circleIndexBuffer.array[e];return t.buffer}}var O=s(98291),E=s(83349);class z extends S{constructor(e,t,s,n,i,a,o){super(e,t,s),this.type=r.NP.FILL,this._patternMap=new Map,this._fillVertexBuffer=n,this._fillIndexBuffer=i,this._outlineVertexBuffer=a,this._outlineIndexBuffer=o}get fillIndexStart(){return this._fillIndexStart}get fillIndexCount(){return this._fillIndexCount}get outlineIndexStart(){return this._outlineIndexStart}get outlineIndexCount(){return this._outlineIndexCount}getResources(e,t,s){const n=this.layer,r=this.zoom,i=n.getPaintProperty("fill-pattern");if(i)if(i.isDataDriven)for(const e of this._features)t(i.getValue(r,e),!0);else t(i.getValue(r),!0)}processFeatures(e){this._fillIndexStart=3*this._fillIndexBuffer.index,this._fillIndexCount=0,this._outlineIndexStart=3*this._outlineIndexBuffer.index,this._outlineIndexCount=0;const t=this.layer,s=this.zoom,{fillMaterial:n,outlineMaterial:r,hasDataDrivenFill:i,hasDataDrivenOutline:a}=t;e&&e.setExtent(this.layerExtent);const o=t.getPaintProperty("fill-pattern"),l=o?.isDataDriven;let h=!o&&t.getPaintValue("fill-antialias",s);if(t.outlineUsesFillColor){if(h&&!t.hasDataDrivenOpacity){const e=t.getPaintValue("fill-opacity",s),n=t.getPaintValue("fill-opacity",s+1);e<1&&n<1&&(h=!1)}if(h&&!t.hasDataDrivenColor){const e=t.getPaintValue("fill-color",s),n=t.getPaintValue("fill-color",s+1);e[3]<1&&n[3]<1&&(h=!1)}}const c=this._features,u=e?.validateTessellation;if(l){const i=[];for(const l of c){const c=o.getValue(s,l),f=this._spriteInfo[c];if(!f?.rect)continue;const d=n.encodeAttributes(l,s,t,f),y=h&&a?r.encodeAttributes(l,s,t):[],g=l.getGeometry(e);i.push({ddFillAttributes:d,ddOutlineAttributes:y,page:f.page,geometry:g}),i.sort(((e,t)=>e.page-t.page));for(const{ddFillAttributes:e,ddOutlineAttributes:s,page:n,geometry:r}of i)this._processFeature(r,h,t.outlineUsesFillColor,e,s,u,n)}}else for(const o of c){const l=i?n.encodeAttributes(o,s,t):null,c=h&&a?r.encodeAttributes(o,s,t):null,f=o.getGeometry(e);this._processFeature(f,h,t.outlineUsesFillColor,l,c,u)}}serialize(){let e=10;e+=this.layerUIDs.length,e+=this._fillVertexBuffer.array.length,e+=this._fillIndexBuffer.array.length,e+=this._outlineVertexBuffer.array.length,e+=this._outlineIndexBuffer.array.length,e+=3*this._patternMap.size+1;const t=new Uint32Array(e),s=new Int32Array(t.buffer);let n=0;t[n++]=this.type,t[n++]=this.layerUIDs.length;for(let e=0;e<this.layerUIDs.length;e++)t[n++]=this.layerUIDs[e];t[n++]=this._fillIndexStart,t[n++]=this._fillIndexCount,t[n++]=this._outlineIndexStart,t[n++]=this._outlineIndexCount;const r=this._patternMap,i=r.size;if(t[n++]=i,i>0)for(const[e,[s,i]]of r)t[n++]=e,t[n++]=s,t[n++]=i;t[n++]=this._fillVertexBuffer.array.length;for(let e=0;e<this._fillVertexBuffer.array.length;e++)s[n++]=this._fillVertexBuffer.array[e];t[n++]=this._fillIndexBuffer.array.length;for(let e=0;e<this._fillIndexBuffer.array.length;e++)t[n++]=this._fillIndexBuffer.array[e];t[n++]=this._outlineVertexBuffer.array.length;for(let e=0;e<this._outlineVertexBuffer.array.length;e++)s[n++]=this._outlineVertexBuffer.array[e];t[n++]=this._outlineIndexBuffer.array.length;for(let e=0;e<this._outlineIndexBuffer.array.length;e++)t[n++]=this._outlineIndexBuffer.array[e];return t.buffer}_processFeature(e,t,s,n,r,i,a){if(!e)return;const o=e.length,l=!r||0===r.length;if(t&&(!s||l))for(let t=0;t<o;t++)this._processOutline(e[t],r);let h;for(let t=0;t<o;t++){const s=z._area(e[t]);s>32?(void 0!==h&&this._processFill(e,h,n,i,a),h=[t]):s<-32&&void 0!==h&&h.push(t)}void 0!==h&&this._processFill(e,h,n,i,a)}_processOutline(e,t){const s=this._outlineVertexBuffer,n=this._outlineIndexBuffer,r=n.index;let a,o,l;const h=new i.bR(0,0),c=new i.bR(0,0),u=new i.bR(0,0);let f=-1,d=-1,y=-1,g=-1,x=-1,p=!1,m=e.length;if(m<2)return;const _=e[0];let I=e[m-1];for(;m&&I.isEqual(_);)--m,I=e[m-1];if(!(m-0<2)){for(let r=0;r<m;++r){0===r?(a=e[m-1],o=e[0],l=e[1],h.assignSub(o,a),h.normalize(),h.rightPerpendicular()):(a=o,o=l,l=r!==m-1?e[r+1]:e[0],h.assign(c));const i=this._isClipEdge(a,o);-1===g&&(p=i),c.assignSub(l,o),c.normalize(),c.rightPerpendicular();const _=h.x*c.y-h.y*c.x;u.assignAdd(h,c),u.normalize();const I=-u.x*-h.x+-u.y*-h.y;let b=Math.abs(0!==I?1/I:1);b>8&&(b=8),_>=0?(y=s.add(o.x,o.y,h.x,h.y,0,1,t),-1===g&&(g=y),f>=0&&d>=0&&y>=0&&!i&&n.add(f,d,y),d=s.add(o.x,o.y,b*-u.x,b*-u.y,0,-1,t),-1===x&&(x=d),f>=0&&d>=0&&y>=0&&!i&&n.add(f,d,y),f=d,d=y,y=s.add(o.x,o.y,u.x,u.y,0,1,t),f>=0&&d>=0&&y>=0&&!i&&n.add(f,d,y),d=s.add(o.x,o.y,c.x,c.y,0,1,t),f>=0&&d>=0&&y>=0&&!i&&n.add(f,d,y)):(y=s.add(o.x,o.y,b*u.x,b*u.y,0,1,t),-1===g&&(g=y),f>=0&&d>=0&&y>=0&&!i&&n.add(f,d,y),d=s.add(o.x,o.y,-h.x,-h.y,0,-1,t),-1===x&&(x=d),f>=0&&d>=0&&y>=0&&!i&&n.add(f,d,y),f=d,d=y,y=s.add(o.x,o.y,-u.x,-u.y,0,-1,t),f>=0&&d>=0&&y>=0&&!i&&n.add(f,d,y),f=s.add(o.x,o.y,-c.x,-c.y,0,-1,t),f>=0&&d>=0&&y>=0&&!i&&n.add(f,d,y))}f>=0&&d>=0&&g>=0&&!p&&n.add(f,d,g),f>=0&&g>=0&&x>=0&&!p&&n.add(f,x,g),this._outlineIndexCount+=3*(n.index-r)}}_processFill(e,t,s,n,r){let i;t.length>1&&(i=[]);let a=0;for(const s of t)0!==a&&i.push(a),a+=e[s].length;const o=2*a,l=O.A.acquire();for(const s of t){const t=e[s],n=t.length;for(let e=0;e<n;++e)l.push(t[e].x,t[e].y)}const h=(0,E.e)(l,i,2);if(E.e.deviation(l,i,2,h)>0){const n=t.map((t=>e[t].length)),{buffer:i,vertexCount:a}=(0,P.l)(l,n);if(a>0){const e=this._fillVertexBuffer.index;for(let e=0;e<a;e++)this._fillVertexBuffer.add(i[2*e],i[2*e+1],s);for(let t=0;t<a;t+=3){const s=e+t;this._fillIndexBuffer.add(s,s+1,s+2)}if(void 0!==r){const e=this._patternMap,t=e.get(r);t?t[1]+=a:e.set(r,[this._fillIndexStart+this._fillIndexCount,a])}this._fillIndexCount+=a}}else{const e=h.length;if(e>0){const t=this._fillVertexBuffer.index;let n=0;for(;n<o;)this._fillVertexBuffer.add(l[n++],l[n++],s);let i=0;for(;i<e;)this._fillIndexBuffer.add(t+h[i++],t+h[i++],t+h[i++]);if(void 0!==r){const t=this._patternMap,s=t.get(r);s?s[1]+=e:t.set(r,[this._fillIndexStart+this._fillIndexCount,e])}this._fillIndexCount+=e}}O.A.release(l)}_isClipEdge(e,t){return e.x===t.x?e.x<=-64||e.x>=4160:e.y===t.y&&(e.y<=-64||e.y>=4160)}static _area(e){let t=0;const s=e.length-1;for(let n=0;n<s;n++)t+=(e[n].x-e[n+1].x)*(e[n].y+e[n+1].y);return t+=(e[s].x-e[0].x)*(e[s].y+e[0].y),.5*t}}var F=s(83773);class N extends S{constructor(e,t,s,n,i){super(e,t,s),this.type=r.NP.LINE,this._tessellationOptions={pixelCoordRatio:8,halfWidth:0,offset:0},this._patternMap=new Map,this.tessellationProperties={_lineVertexBuffer:null,_lineIndexBuffer:null,_ddValues:null},this.tessellationProperties._lineVertexBuffer=n,this.tessellationProperties._lineIndexBuffer=i,this._lineTessellator=new F.i(U(this.tessellationProperties),G(this.tessellationProperties),e.canUseThinTessellation)}get lineIndexStart(){return this._lineIndexStart}get lineIndexCount(){return this._lineIndexCount}getResources(e,t,s){const n=this.layer,r=this.zoom,i=n.getPaintProperty("line-pattern"),a=n.getPaintProperty("line-dasharray"),o=n.getLayoutProperty("line-cap");if(!i&&!a)return;const l=o?.getValue(r)||0,h=o?.isDataDriven,c=i?.isDataDriven,u=a?.isDataDriven;if(c||u)for(const e of this._features)t(c?i.getValue(r,e):this._getDashArrayKey(e,r,n,a,h,o,l));else if(i)t(i.getValue(r));else if(a){const e=a.getValue(r);t(n.getDashKey(e,l))}}processFeatures(e){this._lineIndexStart=3*this.tessellationProperties._lineIndexBuffer.index,this._lineIndexCount=0;const t=this.layer,s=this.zoom,n=this._features,r=this._tessellationOptions,{hasDataDrivenLine:i,lineMaterial:a}=t;e&&e.setExtent(this.layerExtent);const o=t.getPaintProperty("line-pattern"),l=t.getPaintProperty("line-dasharray"),h=o?.isDataDriven,c=l?.isDataDriven;let u;u=t.getLayoutProperty("line-cap");const f=u?.isDataDriven?u:null,d=f?null:t.getLayoutValue("line-cap",s),y=d||0,g=!!f;u=t.getLayoutProperty("line-join");const x=u?.isDataDriven?u:null,p=x?null:t.getLayoutValue("line-join",s);u=t.getLayoutProperty("line-miter-limit");const m=u?.isDataDriven?u:null,_=m?null:t.getLayoutValue("line-miter-limit",s);u=t.getLayoutProperty("line-round-limit");const I=u?.isDataDriven?u:null,b=I?null:t.getLayoutValue("line-round-limit",s);u=t.getPaintProperty("line-width");const M=u?.isDataDriven?u:null,w=M?null:t.getPaintValue("line-width",s);u=t.getPaintProperty("line-offset");const P=u?.isDataDriven?u:null,T=P?null:t.getPaintValue("line-offset",s);if(h||c){const i=[];for(const r of n){const n=h?o.getValue(s,r):this._getDashArrayKey(r,s,t,l,g,f,y),c=this._spriteInfo[n];if(!c?.rect)continue;const u=a.encodeAttributes(r,s,t,c),A=r.getGeometry(e);i.push({ddAttributes:u,page:c.page,cap:f?f.getValue(s,r):d,join:x?x.getValue(s,r):p,miterLimit:m?m.getValue(s,r):_,roundLimit:I?I.getValue(s,r):b,halfWidth:.5*(M?M.getValue(s,r):w),offset:P?P.getValue(s,r):T,geometry:A})}i.sort(((e,t)=>e.page-t.page)),r.textured=!0;for(const{ddAttributes:e,page:t,cap:s,join:n,miterLimit:a,roundLimit:o,halfWidth:l,offset:h,geometry:c}of i)r.capType=s,r.joinType=n,r.miterLimit=a,r.roundLimit=o,r.halfWidth=l,r.offset=h,this._processFeature(c,e,t)}else{if(o){const e=o.getValue(s),t=this._spriteInfo[e];if(!t?.rect)return}r.textured=!(!o&&!l),r.capType=d,r.joinType=p,r.miterLimit=_,r.roundLimit=b,r.halfWidth=.5*w,r.offset=T;for(const o of n){const n=i?a.encodeAttributes(o,s,t):null;f&&(r.capType=f.getValue(s,o)),x&&(r.joinType=x.getValue(s,o)),m&&(r.miterLimit=m.getValue(s,o)),I&&(r.roundLimit=I.getValue(s,o)),M&&(r.halfWidth=.5*M.getValue(s,o)),P&&(r.offset=P.getValue(s,o));const l=o.getGeometry(e);this._processFeature(l,n)}}}serialize(){let e=6;e+=this.layerUIDs.length,e+=this.tessellationProperties._lineVertexBuffer.array.length,e+=this.tessellationProperties._lineIndexBuffer.array.length,e+=3*this._patternMap.size+1;const t=new Uint32Array(e),s=new Int32Array(t.buffer);let n=0;t[n++]=this.type,t[n++]=this.layerUIDs.length;for(let e=0;e<this.layerUIDs.length;e++)t[n++]=this.layerUIDs[e];t[n++]=this._lineIndexStart,t[n++]=this._lineIndexCount;const r=this._patternMap,i=r.size;if(t[n++]=i,i>0)for(const[e,[s,i]]of r)t[n++]=e,t[n++]=s,t[n++]=i;t[n++]=this.tessellationProperties._lineVertexBuffer.array.length;for(let e=0;e<this.tessellationProperties._lineVertexBuffer.array.length;e++)s[n++]=this.tessellationProperties._lineVertexBuffer.array[e];t[n++]=this.tessellationProperties._lineIndexBuffer.array.length;for(let e=0;e<this.tessellationProperties._lineIndexBuffer.array.length;e++)t[n++]=this.tessellationProperties._lineIndexBuffer.array[e];return t.buffer}_processFeature(e,t,s){if(!e)return;const n=e.length;for(let r=0;r<n;r++)this._processGeometry(e[r],t,s)}_processGeometry(e,t,s){if(e.length<2)return;let n,r,i=e[0],a=1;for(;a<e.length;)n=e[a].x-i.x,r=e[a].y-i.y,n*n+r*r<1e-6?e.splice(a,1):(i=e[a],++a);if(e.length<2)return;const o=this.tessellationProperties._lineIndexBuffer,l=3*o.index;this._tessellationOptions.initialDistance=0,this._tessellationOptions.wrapDistance=65535,this.tessellationProperties._ddValues=t,this._lineTessellator.tessellate(e,this._tessellationOptions);const h=3*o.index-l;if(void 0!==s){const e=this._patternMap,t=e.get(s);t?t[1]+=h:e.set(s,[l+this._lineIndexCount,h])}this._lineIndexCount+=h}_getDashArrayKey(e,t,s,n,r,i,a){const o=r?i.getValue(t,e):a,l=n.getValue(t,e);return s.getDashKey(l,o)}}const U=e=>(t,s,n,r,i,a,o,l,h,c,u)=>(e._lineVertexBuffer.add(t,s,o,l,n,r,i,a,h,c,u,e._ddValues),e._lineVertexBuffer.index-1),G=e=>(t,s,n)=>{e._lineIndexBuffer.add(t,s,n)};var K,q=s(32488),H=s(97768),W=s(799),j=s(3057);function Y(e,t){return e.iconMosaicItem&&t.iconMosaicItem?e.iconMosaicItem.page===t.iconMosaicItem.page?0:e.iconMosaicItem.page-t.iconMosaicItem.page:e.iconMosaicItem&&!t.iconMosaicItem?1:!e.iconMosaicItem&&t.iconMosaicItem?-1:0}class J extends S{constructor(e,t,s,n,i,a,o,l,h){super(t,s,h.getSpriteItems()),this.type=r.NP.SYMBOL,this._markerMap=new Map,this._glyphMap=new Map,this._glyphBufferDataStorage=new Map,this._isIconSDF=!1,this._sourceTileKey=e,this._iconVertexBuffer=n,this._iconIndexBuffer=i,this._textVertexBuffer=a,this._textIndexBuffer=o,this._placementEngine=l,this._workerTileHandler=h}get markerPageMap(){return this._markerMap}get glyphsPageMap(){return this._glyphMap}get symbolInstances(){return this._symbolInstances}static{this._bidiEngine=new q.A}getResources(e,t,s){const n=this.layer,r=this.zoom;e&&e.setExtent(this.layerExtent);const i=n.getLayoutProperty("icon-image"),a=n.getLayoutProperty("text-field");let o=n.getLayoutProperty("text-transform"),l=n.getLayoutProperty("text-font");const h=[];let c,u,f,d;i&&!i.isDataDriven&&(c=i.getValue(r)),a&&!a.isDataDriven&&(u=a.getValue(r)),o&&o.isDataDriven||(f=n.getLayoutValue("text-transform",r),o=null),l&&l.isDataDriven||(d=n.getLayoutValue("text-font",r),l=null);for(const g of this._features){const x=g.getGeometry(e);if(!x||0===x.length)continue;let p,m;i&&(p=i.isDataDriven?i.getValue(r,g):this._replaceKeys(c,g.values),p&&t(p));let _=!1;if(a&&(m=a.isDataDriven?a.getValue(r,g):this._replaceKeys(u,g.values),m)){switch(m=m.replaceAll("\\n","\n"),o&&(f=o.getValue(r,g)),f){case y.Ms.LOWERCASE:m=m.toLowerCase();break;case y.Ms.UPPERCASE:m=m.toUpperCase()}if(J._bidiEngine.hasBidiChar(m)){let e;e="rtl"===J._bidiEngine.checkContextual(m)?"IDNNN":"ICNNN",m=J._bidiEngine.bidiTransform(m,e,"VLYSN"),_=!0}if(m.length>0){l&&(d=l.getValue(r,g));for(const e of d){let t=s[e];t||(t=s[e]=new Set);for(const e of m){const s=e.codePointAt(0);null!=s&&t.add(s)}}}}if(!p&&!m)continue;const I=n.getLayoutValue("symbol-sort-key",r,g),b={feature:g,sprite:p,label:m,rtl:_,geometry:x,hash:(m?(0,W.Wm)(m):0)^(p?(0,W.Wm)(p):0),priority:I,textFont:d};h.push(b)}this._symbolFeatures=h}processFeatures(e){e&&e.setExtent(this.layerExtent);const t=this.layer,s=this.zoom,n=t.getLayoutValue("symbol-placement",s),r=n!==y.kt.POINT,o=8*t.getLayoutValue("symbol-spacing",s),l=t.getLayoutProperty("icon-image"),h=t.getLayoutProperty("text-field"),c=l?new j.aR(t,s,r):null,u=h?new j.uU(t,s,r):null,g=this._workerTileHandler;let p;l&&(p=g.getSpriteItems()),this._iconIndexStart=3*this._iconIndexBuffer.index,this._textIndexStart=3*this._textIndexBuffer.index,this._iconIndexCount=0,this._textIndexCount=0,this._markerMap.clear(),this._glyphMap.clear();const m=[];let _=1;u?.size&&(_=u.size/f);const I=u?u.maxAngle*a.os:0,b=u?8*u.size:0;for(const e of this._symbolFeatures){let t,a;c&&p&&e.sprite&&(t=p[e.sprite],t&&t.sdf&&(this._isIconSDF=!0)),t&&c.update(s,e.feature);let l=0;const h=e.label;if(h){(0,H.Lw)(u),u.update(s,e.feature);const t=r&&u.rotationAlignment===y.I5.MAP?u.keepUpright:u.writingMode&&u.writingMode.includes(y.v9.VERTICAL);let n=.5;switch(u.anchor){case y.KI.TOP_LEFT:case y.KI.LEFT:case y.KI.BOTTOM_LEFT:n=0;break;case y.KI.TOP_RIGHT:case y.KI.RIGHT:case y.KI.BOTTOM_RIGHT:n=1}let i=.5;switch(u.anchor){case y.KI.TOP_LEFT:case y.KI.TOP:case y.KI.TOP_RIGHT:i=0;break;case y.KI.BOTTOM_LEFT:case y.KI.BOTTOM:case y.KI.BOTTOM_RIGHT:i=1}let o=.5;switch(u.justify){case y.O6.AUTO:o=n;break;case y.O6.LEFT:o=0;break;case y.O6.RIGHT:o=1}const c=u.letterSpacing*f,x=r?0:u.maxWidth*f,p=u.lineHeight*f,m=e.textFont.map((e=>g.getGlyphItems(e)));if(a=new d(m,x,p,c,n,i,o).getShaping(h,e.rtl,t),a&&a.length>0){let e=1e30,t=-1e30;for(const s of a)e=Math.min(e,s.x),t=Math.max(t,s.x);l=(t-e+48)*_*8}}for(let s of e.geometry){const h=[];if(n===y.kt.LINE){if(a?.length&&u?.size){const e=8*u.size*(2+Math.min(2,4*Math.abs(u.offset[1])));s=J._smoothVertices(s,e)}J._pushAnchors(h,s,o,l)}else n===y.kt.LINE_CENTER?J._pushCenterAnchor(h,s):e.feature.type===i.dC.Polygon?J._pushCentroid(h,s):h.push(new x(s[0].x,s[0].y));for(const n of h){if(n.x<0||n.x>4096||n.y<0||n.y>4096)continue;if(r&&l>0&&u?.rotationAlignment===y.I5.MAP&&!J._honorsTextMaxAngle(s,n,l,I,b))continue;const i={shaping:a,line:s,iconMosaicItem:t,anchor:n,symbolFeature:e,textColliders:[],iconColliders:[],textVertexRanges:[],iconVertexRanges:[]};m.push(i),this._processFeature(i,c,u)}}}m.sort(Y),this._addPlacedGlyphs(),this._symbolInstances=m}serialize(){let e=14;e+=this.layerUIDs.length,e+=3*this.markerPageMap.size,e+=3*this.glyphsPageMap.size,e+=J._symbolsSerializationLength(this._symbolInstances),e+=this._iconVertexBuffer.array.length,e+=this._iconIndexBuffer.array.length,e+=this._textVertexBuffer.array.length,e+=this._textIndexBuffer.array.length;const t=new Uint32Array(e),s=new Int32Array(t.buffer),n=new Float32Array(t.buffer),[r,i,a]=this._sourceTileKey.split("/");let o=0;t[o++]=this.type,t[o++]=this.layerUIDs.length;for(let e=0;e<this.layerUIDs.length;e++)t[o++]=this.layerUIDs[e];t[o++]=this._isIconSDF?1:0,t[o++]=parseFloat(r),t[o++]=parseFloat(i),t[o++]=parseFloat(a),t[o++]=this.markerPageMap.size;for(const[e,[s,n]]of this.markerPageMap)t[o++]=e,t[o++]=s,t[o++]=n;t[o++]=this.glyphsPageMap.size;for(const[e,[s,n]]of this.glyphsPageMap)t[o++]=e,t[o++]=s,t[o++]=n;t[o++]=this._iconVertexBuffer.index/4,t[o++]=this._textVertexBuffer.index/4,o=J.serializeSymbols(t,s,n,o,this._symbolInstances),t[o++]=this._iconVertexBuffer.array.length;for(let e=0;e<this._iconVertexBuffer.array.length;e++)s[o++]=this._iconVertexBuffer.array[e];t[o++]=this._iconIndexBuffer.array.length;for(let e=0;e<this._iconIndexBuffer.array.length;e++)t[o++]=this._iconIndexBuffer.array[e];t[o++]=this._textVertexBuffer.array.length;for(let e=0;e<this._textVertexBuffer.array.length;e++)s[o++]=this._textVertexBuffer.array[e];t[o++]=this._textIndexBuffer.array.length;for(let e=0;e<this._textIndexBuffer.array.length;e++)t[o++]=this._textIndexBuffer.array[e];return t.buffer}static _symbolsSerializationLength(e){let t=0;t+=1;for(const s of e||[]){t+=5,t+=1;for(const e of s.textColliders)t+=10;for(const e of s.iconColliders)t+=10;t+=1,t+=2*s.textVertexRanges.length,t+=1,t+=2*s.iconVertexRanges.length}return t}static serializeSymbols(e,t,s,n,r){r=r||[],t[n++]=r.length;for(const e of r){t[n++]=e.anchor.x,t[n++]=e.anchor.y,t[n++]=e.symbolFeature.hash,t[n++]=e.symbolFeature.priority,t[n++]=e.symbolFeature.feature.featureIndex,t[n++]=e.textColliders.length+e.iconColliders.length;for(const r of e.textColliders)t[n++]=r.xTile,t[n++]=r.yTile,t[n++]=r.dxPixels,t[n++]=r.dyPixels,t[n++]=r.hard?1:0,t[n++]=r.partIndex,s[n++]=r.minLod,s[n++]=r.maxLod,t[n++]=r.width,t[n++]=r.height;for(const r of e.iconColliders)t[n++]=r.xTile,t[n++]=r.yTile,t[n++]=r.dxPixels,t[n++]=r.dyPixels,t[n++]=r.hard?1:0,t[n++]=r.partIndex,s[n++]=r.minLod,s[n++]=r.maxLod,t[n++]=r.width,t[n++]=r.height;t[n++]=e.textVertexRanges.length;for(const[s,r]of e.textVertexRanges)t[n++]=s,t[n++]=r;t[n++]=e.iconVertexRanges.length;for(const[s,r]of e.iconVertexRanges)t[n++]=s,t[n++]=r}return n}_replaceKeys(e,t){return e.replaceAll(/{([^{}]+)}/g,((e,s)=>s in t?t[s]:""))}_processFeature(e,t,s){const{line:n,iconMosaicItem:r,shaping:i,anchor:o}=e,l=this.zoom,h=this.layer,c=!!r;let u=!0;c&&(u=t?.optional||!r);const f=i&&i.length>0,d=!f||s?.optional;let g,x;if(c&&(g=this._placementEngine.getIconPlacement(o,r,t)),(g||u)&&(f&&(x=this._placementEngine.getTextPlacement(o,i,n,s)),x||d)){if(g&&x||(d||u?d||x?u||g||(x=null):g=null:(g=null,x=null)),x){const t=h.hasDataDrivenText?h.textMaterial.encodeAttributes(e.symbolFeature.feature,l,h):null;if(this._storePlacedGlyphs(e,x.shapes,l,s.rotationAlignment,t),x.textColliders){e.textColliders=x.textColliders;for(const e of x.textColliders){e.minLod=Math.max(l+(0,a.p6)(e.minLod),0),e.maxLod=Math.min(l+(0,a.p6)(e.maxLod),25);const t=e.angle;if(t){const s=Math.cos(t),n=Math.sin(t),r=e.dxPixels*s-e.dyPixels*n,i=e.dxPixels*n+e.dyPixels*s,a=(e.dxPixels+e.width)*s-e.dyPixels*n,o=(e.dxPixels+e.width)*n+e.dyPixels*s,l=e.dxPixels*s-(e.dyPixels+e.height)*n,h=e.dxPixels*n+(e.dyPixels+e.height)*s,c=(e.dxPixels+e.width)*s-(e.dyPixels+e.height)*n,u=(e.dxPixels+e.width)*n+(e.dyPixels+e.height)*s,f=Math.min(r,a,l,c),d=Math.max(r,a,l,c),y=Math.min(i,o,h,u),g=Math.max(i,o,h,u);e.dxPixels=f,e.dyPixels=y,e.width=d-f,e.height=g-y}}}}if(g){const s=h.hasDataDrivenIcon?h.iconMaterial.encodeAttributes(e.symbolFeature.feature,l,h):null;if(this._addPlacedIcons(e,g.shapes,l,r.page,t.rotationAlignment===y.I5.VIEWPORT,s),g.iconColliders){e.iconColliders=g.iconColliders;for(const e of g.iconColliders){e.minLod=Math.max(l+(0,a.p6)(e.minLod),0),e.maxLod=Math.min(l+(0,a.p6)(e.maxLod),25);const t=e.angle;if(t){const s=Math.cos(t),n=Math.sin(t),r=e.dxPixels*s-e.dyPixels*n,i=e.dxPixels*n+e.dyPixels*s,a=(e.dxPixels+e.width)*s-e.dyPixels*n,o=(e.dxPixels+e.width)*n+e.dyPixels*s,l=e.dxPixels*s-(e.dyPixels+e.height)*n,h=e.dxPixels*n+(e.dyPixels+e.height)*s,c=(e.dxPixels+e.width)*s-(e.dyPixels+e.height)*n,u=(e.dxPixels+e.width)*n+(e.dyPixels+e.height)*s,f=Math.min(r,a,l,c),d=Math.max(r,a,l,c),y=Math.min(i,o,h,u),g=Math.max(i,o,h,u);e.dxPixels=f,e.dyPixels=y,e.width=d-f,e.height=g-y}}}}}}_addPlacedIcons(e,t,s,n,r,i){const o=Math.max(s-1,0),l=this._iconVertexBuffer,h=this._iconIndexBuffer,c=this._markerMap;for(const u of t){const t=r?0:Math.max(s+(0,a.p6)(u.minzoom),o),f=r?25:Math.min(s+(0,a.p6)(u.maxzoom),25);if(f<=t)continue;const d=u.tl,y=u.tr,g=u.bl,x=u.br,p=u.mosaicRect,m=u.labelAngle,_=u.minAngle,I=u.maxAngle,b=u.anchor,M=l.index,w=p.x,P=p.y,T=w+p.width,A=P+p.height,D=l.index;l.add(b.x,b.y,d.x,d.y,w,P,m,_,I,t,f,i),l.add(b.x,b.y,y.x,y.y,T,P,m,_,I,t,f,i),l.add(b.x,b.y,g.x,g.y,w,A,m,_,I,t,f,i),l.add(b.x,b.y,x.x,x.y,T,A,m,_,I,t,f,i),e.iconVertexRanges.length>0&&e.iconVertexRanges[0][0]+e.iconVertexRanges[0][1]===D?e.iconVertexRanges[0][1]+=4:e.iconVertexRanges.push([D,4]),h.add(M,M+1,M+2),h.add(M+1,M+2,M+3),c.has(n)?c.get(n)[1]+=6:c.set(n,[this._iconIndexStart+this._iconIndexCount,6]),this._iconIndexCount+=6}}_addPlacedGlyphs(){const e=this._textVertexBuffer,t=this._textIndexBuffer,s=this._glyphMap;for(const[n,r]of this._glyphBufferDataStorage)for(const i of r){const r=e.index,a=i.symbolInstance,o=i.ddAttributes,l=e.index;e.add(i.glyphAnchor[0],i.glyphAnchor[1],i.tl[0],i.tl[1],i.xmin,i.ymin,i.labelAngle,i.minAngle,i.maxAngle,i.minLod,i.maxLod,o),e.add(i.glyphAnchor[0],i.glyphAnchor[1],i.tr[0],i.tr[1],i.xmax,i.ymin,i.labelAngle,i.minAngle,i.maxAngle,i.minLod,i.maxLod,o),e.add(i.glyphAnchor[0],i.glyphAnchor[1],i.bl[0],i.bl[1],i.xmin,i.ymax,i.labelAngle,i.minAngle,i.maxAngle,i.minLod,i.maxLod,o),e.add(i.glyphAnchor[0],i.glyphAnchor[1],i.br[0],i.br[1],i.xmax,i.ymax,i.labelAngle,i.minAngle,i.maxAngle,i.minLod,i.maxLod,o),a.textVertexRanges.length>0&&a.textVertexRanges[0][0]+a.textVertexRanges[0][1]===l?a.textVertexRanges[0][1]+=4:a.textVertexRanges.push([l,4]),t.add(r,r+1,r+2),t.add(r+1,r+2,r+3),s.has(n)?s.get(n)[1]+=6:s.set(n,[this._textIndexStart+this._textIndexCount,6]),this._textIndexCount+=6}this._glyphBufferDataStorage.clear()}_storePlacedGlyphs(e,t,s,n,r){const i=Math.max(s-1,0),o=n===y.I5.VIEWPORT;let l,h,c,u,f,d,g,x,p,m,_;for(const n of t)l=o?0:Math.max(s+(0,a.p6)(n.minzoom),i),h=o?25:Math.min(s+(0,a.p6)(n.maxzoom),25),h<=l||(c=n.tl,u=n.tr,f=n.bl,d=n.br,g=n.labelAngle,x=n.minAngle,p=n.maxAngle,m=n.anchor,_=n.mosaicRect,this._glyphBufferDataStorage.has(n.page)||this._glyphBufferDataStorage.set(n.page,[]),this._glyphBufferDataStorage.get(n.page).push({glyphAnchor:[m.x,m.y],tl:[c.x,c.y],tr:[u.x,u.y],bl:[f.x,f.y],br:[d.x,d.y],xmin:_.x,ymin:_.y,xmax:_.x+_.width,ymax:_.y+_.height,labelAngle:g,minAngle:x,maxAngle:p,minLod:l,maxLod:h,placementLod:i,symbolInstance:e,ddAttributes:r}))}static _pushAnchors(e,t,s,n){s+=n;let r=0;const o=t.length-1;for(let e=0;e<o;e++)r+=i.bR.distance(t[e],t[e+1]);let l=n||s;if(l*=.5,r<=l)return;const h=l/r;let c=0,u=-(s=r/Math.max(Math.round(r/s),1))/2;const f=t.length-1;for(let n=0;n<f;n++){const r=t[n],i=t[n+1],o=i.x-r.x,l=i.y-r.y,f=Math.sqrt(o*o+l*l);let d;for(;u+s<c+f;){u+=s;const t=(u-c)/f,y=(0,a.GW)(r.x,i.x,t),g=(0,a.GW)(r.y,i.y,t);void 0===d&&(d=Math.atan2(l,o)),e.push(new x(y,g,d,n,h))}c+=f}}static _pushCenterAnchor(e,t){let s=0;const n=t.length-1;for(let e=0;e<n;e++)s+=i.bR.distance(t[e],t[e+1]);const r=s/2;let o=0;const l=t.length-1;for(let s=0;s<l;s++){const n=t[s],i=t[s+1],l=i.x-n.x,h=i.y-n.y,c=Math.sqrt(l*l+h*h);if(r<o+c){const t=(r-o)/c,u=(0,a.GW)(n.x,i.x,t),f=(0,a.GW)(n.y,i.y,t),d=Math.atan2(h,l);return void e.push(new x(u,f,d,s,0))}o+=c}}static _deviation(e,t,s){const n=(t.x-e.x)*(s.x-t.x)+(t.y-e.y)*(s.y-t.y),r=(t.x-e.x)*(s.y-t.y)-(t.y-e.y)*(s.x-t.x);return Math.atan2(r,n)}static _honorsTextMaxAngle(e,t,s,n,r){let a=0;const o=s/2;let l=new i.bR(t.x,t.y),h=t.segment+1;for(;a>-o;){if(--h,h<0)return!1;a-=i.bR.distance(e[h],l),l=e[h]}a+=i.bR.distance(e[h],e[h+1]);const c=[];let u=0;const f=e.length;for(;a<o;){const t=e[h];let s,o=h;do{if(++o,o===f)return!1;s=e[o]}while(s.isEqual(t));let l,d=o;do{if(++d,d===f)return!1;l=e[d]}while(l.isEqual(s));const y=this._deviation(t,s,l);for(c.push({deviation:y,distToAnchor:a}),u+=y;a-c[0].distToAnchor>r;)u-=c.shift().deviation;if(Math.abs(u)>n)return!1;a+=i.bR.distance(s,l),h=o}return!0}static _smoothVertices(e,t){if(t<=0)return e;let s=e.length;if(s<3)return e;const n=[];let r=0,a=0;n.push(0);for(let t=1;t<s;t++){const s=i.bR.distance(e[t],e[t-1]);s>0&&(r+=s,n.push(r),a++,a!==t&&(e[a]=e[t]))}if(s=a+1,s<3)return e;t=Math.min(t,.2*r);const o=e[0].x,l=e[0].y,h=e[s-1].x,c=e[s-1].y,u=i.bR.sub(e[0],e[1]);u.normalize(),e[0].x+=t*u.x,e[0].y+=t*u.y,u.assignSub(e[s-1],e[s-2]),u.normalize(),e[s-1].x+=t*u.x,e[s-1].y+=t*u.y,n[0]-=t,n[s-1]+=t;const f=[];f.push(new i.bR(o,l));const d=1e-6,y=.5*t;for(let r=1;r<s-1;r++){let a=0,o=0,l=0;for(let s=r-1;s>=0;s--){const i=y+n[s+1]-n[r];if(i<0)break;const h=n[s+1]-n[s],c=n[r]-n[s]<y?1:i/h;if(c<d)break;const u=c*c,f=c*i-.5*u*h,g=c*h/t,x=e[s+1],p=e[s].x-x.x,m=e[s].y-x.y;a+=g/f*(x.x*c*i+.5*u*(i*p-h*x.x)-u*c*h*p/3),o+=g/f*(x.y*c*i+.5*u*(i*m-h*x.y)-u*c*h*m/3),l+=g}for(let i=r+1;i<s;i++){const s=y-n[i-1]+n[r];if(s<0)break;const h=n[i]-n[i-1],c=n[i]-n[r]<y?1:s/h;if(c<d)break;const u=c*c,f=c*s-.5*u*h,g=c*h/t,x=e[i-1],p=e[i].x-x.x,m=e[i].y-x.y;a+=g/f*(x.x*c*s+.5*u*(s*p-h*x.x)-u*c*h*p/3),o+=g/f*(x.y*c*s+.5*u*(s*m-h*x.y)-u*c*h*m/3),l+=g}f.push(new i.bR(a/l,o/l))}return f.push(new i.bR(h,c)),e[0].x=o,e[0].y=l,e[s-1].x=h,e[s-1].y=c,f}static _pushCentroid(e,t){const s=4096,n=4096,r=t.length-1;let i=0,a=0,o=0,l=t[0].x,h=t[0].y;l>s&&(l=s),l<0&&(l=0),h>n&&(h=n),h<0&&(h=0);for(let e=1;e<r;e++){let r=t[e].x,c=t[e].y,u=t[e+1].x,f=t[e+1].y;r>s&&(r=s),r<0&&(r=0),c>n&&(c=n),c<0&&(c=0),u>s&&(u=s),u<0&&(u=0),f>n&&(f=n),f<0&&(f=0);const d=(r-l)*(f-h)-(u-l)*(c-h);i+=d*(l+r+u),a+=d*(h+c+f),o+=d}i/=3*o,a/=3*o,isNaN(i)||isNaN(a)||e.push(new x(i,a))}}!function(e){e[e.INITIALIZED=0]="INITIALIZED",e[e.NO_DATA=1]="NO_DATA",e[e.READY=2]="READY",e[e.MODIFIED=3]="MODIFIED",e[e.INVALID=4]="INVALID"}(K||(K={}));class Z{constructor(e,t,s,n,r,o){if(this._pbfTiles={},this._tileClippers={},this._client=s,this._tile=t,this._sourceDataMaxLOD=n,o){this._styleLayerUIDs=new Set;for(const e of o)this._styleLayerUIDs.add(e)}this._styleRepository=r,this._layers=this._styleRepository?.layers??[];const[l,h,c]=t.tileKey.split("/").map(parseFloat);this._level=l;const u=(0,a.IU)(this._level);for(const t of Object.keys(e)){const s=e[t];if(this._pbfTiles[t]=new w.A(new Uint8Array(s.protobuff),new DataView(s.protobuff)),s.refKey){const[e]=s.refKey.split("/").map(parseFloat),n=l-e;if(n>0){const e=(1<<n)-1,s=h&e,r=c&e;this._tileClippers[t]=new i.O3(n,s,r,8,u)}}this._tileClippers[t]||(this._tileClippers[t]=new i.Ox)}}_canParseStyleLayer(e){return!this._styleLayerUIDs||this._styleLayerUIDs.has(e)}async parse(e){const t=(0,P.F)(),s=this._initialize(e),{returnedBuckets:n}=s;this._processLayers(s),this._linkReferences(s),this._filterFeatures(s);const r=[],i=new Set,a=(e,t)=>{i.has(e)||(r.push({name:e,repeat:t}),i.add(e))},o={};for(const e of n)e.getResources(e.tileClipper,a,o);if(this._tile.status===K.INVALID)return[];const l=this._fetchResources(r,o,e);return Promise.all([...l,t]).then((()=>this._processFeatures(s.returnedBuckets)))}_initialize(e){const t=e?.signal;return{signal:t,sourceNameToTileData:this._parseTileData(this._pbfTiles),layers:this._layers,zoom:this._level,sourceNameToTileClipper:this._tileClippers,sourceNameToUniqueSourceLayerBuckets:{},sourceNameToUniqueSourceLayers:{},returnedBuckets:[],layerIdToBucket:{},referencerUIDToReferencedId:new Map}}_processLayers(e){const{sourceNameToTileData:t,zoom:s,layers:n,sourceNameToTileClipper:r,sourceNameToUniqueSourceLayerBuckets:i,sourceNameToUniqueSourceLayers:a,returnedBuckets:o,layerIdToBucket:l,referencerUIDToReferencedId:h}=e,c=this._sourceDataMaxLOD;for(let e=n.length-1;e>=0;e--){const u=n[e];if(s<c){if(u.minzoom&&s<Math.floor(u.minzoom)||u.maxzoom&&s>=u.maxzoom)continue}else if(u.maxzoom&&s>=u.maxzoom)continue;if(u.type===y.Dc.BACKGROUND||!this._canParseStyleLayer(u.uid)||!t[u.source]||!r[u.source])continue;const f=t[u.source],d=r[u.source],g=u.sourceLayer,x=f[g];if(x){let e=a[u.source];if(e||(e=a[u.source]=new Set),e.add(u.sourceLayer),u.refLayerId)h.set(u.uid,u.refLayerId);else{const e=this._createBucket(u);if(e){e.layerUIDs=[u.uid],e.layerExtent=x.extent,e.tileClipper=d;let t=i[u.source];t||(t=i[u.source]={});let s=t[g];s||(s=t[g]=[]),s.push(e),o.push(e),l[u.id]=e}}}}}_linkReferences(e){const{layerIdToBucket:t,referencerUIDToReferencedId:s}=e;s.forEach(((e,s)=>{t[e]&&t[e].layerUIDs.push(s)}))}_filterFeatures(e){const{signal:t,sourceNameToTileData:s,sourceNameToUniqueSourceLayerBuckets:r,sourceNameToUniqueSourceLayers:i}=e,a=10*this._level,o=10*(this._level+1),l=[],h=[];for(const e of Object.keys(i))i[e].forEach((t=>{l.push(t),h.push(e)}));for(let e=0;e<l.length;e++){const i=h[e],c=l[e];if(!s[i]||!r[i])continue;const u=s[i][c],f=r[i][c];if(!f||0===f.length)continue;if((0,n.G4)(t))return;let d=0;const y=u.getData();for(;y.nextTag(2);){const e=y.getMessage(),t=new T(e,u,d++);e.release();const s=t.values;if(s){const e=s._minzoom;if(e&&e>=o)continue;const t=s._maxzoom;if(t&&t<=a)continue}for(const e of f)e.pushFeature(t)}}}_fetchResources(e,t,s){const n=[],r=this._tile.getWorkerTileHandler();let i,a;e.length>0&&(i=r.fetchSprites(e,this._client,s),n.push(i));for(const e in t){const i=t[e];i.size>0&&(a=r.fetchGlyphs(this._tile.tileKey,e,i,this._client,s),n.push(a))}return n}_processFeatures(e){const t=e.filter((e=>e.hasFeatures()||this._canParseStyleLayer(e.layer.uid)));for(const e of t)e.processFeatures(e.tileClipper);return t}_parseTileData(e){const t={};for(const s of Object.keys(e)){const n=e[s],r={};for(;n.next();)switch(n.tag()){case 3:{const e=n.getMessage(),t=new k(e);e.release(),r[t.name]=t;break}default:n.skip()}t[s]=r}return t}_createBucket(e){switch(e.type){case y.Dc.BACKGROUND:return null;case y.Dc.FILL:return this._createFillBucket(e);case y.Dc.LINE:return this._createLineBucket(e);case y.Dc.CIRCLE:return this._createCircleBucket(e);case y.Dc.SYMBOL:return this._createSymbolBucket(e)}}_createFillBucket(e){return new z(e,this._level,this._tile.getWorkerTileHandler().getSpriteItems(),new B(e.fillMaterial.getStride()),new D,new v(e.outlineMaterial.getStride()),new D)}_createLineBucket(e){return new N(e,this._level,this._tile.getWorkerTileHandler().getSpriteItems(),new L(e.lineMaterial.getStride()),new D)}_createCircleBucket(e){return new C(e,this._level,this._tile.getWorkerTileHandler().getSpriteItems(),new R(e.circleMaterial.getStride()),new D)}_createSymbolBucket(e){const t=this._tile;return new J(t.tileKey,e,this._level,new V(e.iconMaterial.getStride()),new D,new V(e.textMaterial.getStride()),new D,t.placementEngine,t.getWorkerTileHandler())}}class ${constructor(e,t,s,n){this.status=K.INITIALIZED,this.placementEngine=new I,this.tileKey=e,this.refKeys=t,this._workerTileHandler=s,this._styleRepository=n}release(){this.tileKey="",this.refKeys=null,this.status=K.INITIALIZED,this._workerTileHandler=null}async parse(e,t){const s=t?.signal;if(null!=s){const e=()=>{s.removeEventListener("abort",e),this.status=K.INVALID};s.addEventListener("abort",e)}let r;const i={bucketsWithData:[],emptyBuckets:null};try{r=await this._parse(e,t)}catch(e){if((0,n.zf)(e))throw e;return{result:i,transferList:[]}}this.status=K.READY;const a=i.bucketsWithData,o=[];for(const e of r)if(e.hasFeatures()){const t=e.serialize();a.push(t)}else o.push(e.layer.uid);const l=[...a];let h=null;return o.length>0&&(h=Uint32Array.from(o),l.push(h.buffer)),i.emptyBuckets=h,{result:i,transferList:l}}setObsolete(){this.status=K.INVALID}getLayers(){return this._workerTileHandler.getLayers()}getWorkerTileHandler(){return this._workerTileHandler}async _parse(e,t){const s=e.sourceName2DataAndRefKey;return 0===Object.keys(s).length?[]:(this.status=K.MODIFIED,new Z(s,this,t.client,e.sourceDataMaxLOD,this._styleRepository,e.styleLayerUIDs).parse(t))}}var Q=s(45013);class X{constructor(){this._spriteInfo={},this._glyphInfo={},this._sourceDataMaxLOD=25}reset(){return this._spriteInfo={},this._glyphInfo={},Promise.resolve()}getLayers(){return this._styleRepository?.layers??[]}async createTileAndParse(e,t){const{key:s}=e,r={};for(const t of Object.keys(e.sourceName2DataAndRefKey)){const s=e.sourceName2DataAndRefKey[t];r[t]=s.refKey}const i=new $(s,r,this,this._styleRepository);try{return await i.parse({...e,sourceDataMaxLOD:this._sourceDataMaxLOD},t)}catch(e){if(i.setObsolete(),i.release(),!(0,n.zf)(e))throw e;return null}}updateStyle(e){if(!e||0===e.length||!this._styleRepository)return;const t=this._styleRepository;for(const s of e){const e=s.type,n=s.data;switch(e){case r.$q.PAINTER_CHANGED:t.setPaintProperties(n.layer,n.paint);break;case r.$q.LAYOUT_CHANGED:t.setLayoutProperties(n.layer,n.layout);break;case r.$q.LAYER_REMOVED:t.deleteStyleLayer(n.layer);break;case r.$q.LAYER_CHANGED:t.setStyleLayer(n.layer,n.index);break;case r.$q.SPRITES_CHANGED:this._spriteInfo={}}}}setStyle(e){const{style:t,sourceDataMaxLOD:s}=e;this._styleRepository=new Q.A(t),this._sourceDataMaxLOD=s,this._spriteInfo={},this._glyphInfo={}}fetchSprites(e,t,s){const n=[],r=this._spriteInfo;for(const t of e)void 0===r[t.name]&&n.push(t);return 0===n.length?Promise.resolve():t.invoke("getSprites",n,{signal:s?.signal}).then((e=>{for(const t in e){const s=e[t];r[t]=s}}))}getSpriteItems(){return this._spriteInfo}fetchGlyphs(e,t,s,n,r){const i=[];let a=this._glyphInfo[t];return a?s.forEach((e=>{a[e]||i.push(e)})):(a=this._glyphInfo[t]=[],s.forEach((e=>i.push(e)))),0===i.length?Promise.resolve():n.invoke("getGlyphs",{tileID:e,font:t,codePoints:i},r).then((e=>{for(let t=0;t<e.length;t++)e[t]&&(a[t]=e[t])}))}getGlyphItems(e){return this._glyphInfo[e]}}},34304:(e,t,s)=>{s.d(t,{DF:()=>l,FD:()=>r,Ov:()=>i,ct:()=>h});let n=1e-6;function r(){return n}const i=Math.random,a=Math.PI/180,o=180/Math.PI;function l(e){return e*a}function h(e){return e*o}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:i,equals:function(e,t){return Math.abs(e-t)<=n*Math.max(1,Math.abs(e),Math.abs(t))},getEpsilon:r,setEpsilon:function(e){n=e},toDegree:h,toRadian:l},Symbol.toStringTag,{value:"Module"}))},40876:(e,t,s)=>{s.d(t,{TS:()=>i,Tf:()=>c,V6:()=>r,c4:()=>a,qh:()=>h,z$:()=>l});const n={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function r(e){return!!n[e]||!!n[e.toLowerCase()]}function i(e){return n[e]??n[e.toLowerCase()]}function a(e){return[...i(e)]}function o(e,t,s){s<0&&++s,s>1&&--s;const n=6*s;return n<1?e+(t-e)*n:2*s<1?t:3*s<2?e+(t-e)*(2/3-s)*6:e}function l(e,t,s,n=1){const r=(e%360+360)%360/360,i=s<=.5?s*(t+1):s+t-s*t,a=2*s-i;return[Math.round(255*o(a,i,r+1/3)),Math.round(255*o(a,i,r)),Math.round(255*o(a,i,r-1/3)),n]}function h(e){const t=e.length>5,s=t?8:4,n=(1<<s)-1,r=t?1:17,i=t?9===e.length:5===e.length;let a=Number("0x"+e.slice(1));if(isNaN(a))return null;const o=[0,0,0,1];let l;return i&&(l=a&n,a>>=s,o[3]=r*l/255),l=a&n,a>>=s,o[2]=r*l,l=a&n,a>>=s,o[1]=r*l,l=a&n,a>>=s,o[0]=r*l,o}const c=2.2},69397:(e,t,s)=>{s.d(t,{$B:()=>r,Qf:()=>h,Qh:()=>o,RS:()=>i,ez:()=>f,i5:()=>d,lM:()=>a,qK:()=>u});var n=s(34275);function r(e){return 32+e.length}const i=16;function a(e){if(!e)return 0;let t=u;for(const s in e)e.hasOwnProperty(s)&&(t+=l(e[s],!1));return t}function o(e){if(!e)return 0;if("number"==typeof e[0])return h(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return c(e,8);let s=f;for(let n=0;n<t;n++)s+=l(e[n]);return s}(e);let t=u;for(const s in e)e.hasOwnProperty(s)&&(t+=l(e[s]));return t}function l(e,t=!0){switch(typeof e){case"object":return t?o(e):u;case"string":return r(e);case"number":return i;case"boolean":return 4;default:return 8}}function h(...e){return e.reduce(((e,t)=>e+(t?(0,n.iu)(t)?t.byteLength+d:Array.isArray(t)?c(t,i):0:0)),0)}function c(e,t){return f+e.length*t}const u=32,f=16,d=145},87317:(e,t,s)=>{s.d(t,{a:()=>_,b:()=>c,c:()=>r,d:()=>f,e:()=>I,f:()=>y,g:()=>a,h:()=>x,j:()=>d,l:()=>p,n:()=>g,s:()=>i,t:()=>m});var n=s(34304);function r(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function i(e,t,s,n,r){return e[0]=t,e[1]=s,e[2]=n,e[3]=r,e}function a(e,t,s){return e[0]=t[0]+s[0],e[1]=t[1]+s[1],e[2]=t[2]+s[2],e[3]=t[3]+s[3],e}function o(e,t,s){return e[0]=t[0]-s[0],e[1]=t[1]-s[1],e[2]=t[2]-s[2],e[3]=t[3]-s[3],e}function l(e,t,s){return e[0]=t[0]*s[0],e[1]=t[1]*s[1],e[2]=t[2]*s[2],e[3]=t[3]*s[3],e}function h(e,t,s){return e[0]=t[0]/s[0],e[1]=t[1]/s[1],e[2]=t[2]/s[2],e[3]=t[3]/s[3],e}function c(e,t,s){return e[0]=t[0]*s,e[1]=t[1]*s,e[2]=t[2]*s,e[3]=t[3]*s,e}function u(e,t){const s=t[0]-e[0],n=t[1]-e[1],r=t[2]-e[2],i=t[3]-e[3];return Math.sqrt(s*s+n*n+r*r+i*i)}function f(e,t){const s=t[0]-e[0],n=t[1]-e[1],r=t[2]-e[2],i=t[3]-e[3];return s*s+n*n+r*r+i*i}function d(e){const t=e[0],s=e[1],n=e[2],r=e[3];return Math.sqrt(t*t+s*s+n*n+r*r)}function y(e){const t=e[0],s=e[1],n=e[2],r=e[3];return t*t+s*s+n*n+r*r}function g(e,t){const s=t[0],n=t[1],r=t[2],i=t[3];let a=s*s+n*n+r*r+i*i;return a>0&&(a=1/Math.sqrt(a),e[0]=s*a,e[1]=n*a,e[2]=r*a,e[3]=i*a),e}function x(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function p(e,t,s,n){const r=t[0],i=t[1],a=t[2],o=t[3];return e[0]=r+n*(s[0]-r),e[1]=i+n*(s[1]-i),e[2]=a+n*(s[2]-a),e[3]=o+n*(s[3]-o),e}function m(e,t,s){const n=t[0],r=t[1],i=t[2],a=t[3];return e[0]=s[0]*n+s[4]*r+s[8]*i+s[12]*a,e[1]=s[1]*n+s[5]*r+s[9]*i+s[13]*a,e[2]=s[2]*n+s[6]*r+s[10]*i+s[14]*a,e[3]=s[3]*n+s[7]*r+s[11]*i+s[15]*a,e}function _(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}function I(e,t){const s=e[0],r=e[1],i=e[2],a=e[3],o=t[0],l=t[1],h=t[2],c=t[3],u=(0,n.FD)();return Math.abs(s-o)<=u*Math.max(1,Math.abs(s),Math.abs(o))&&Math.abs(r-l)<=u*Math.max(1,Math.abs(r),Math.abs(l))&&Math.abs(i-h)<=u*Math.max(1,Math.abs(i),Math.abs(h))&&Math.abs(a-c)<=u*Math.max(1,Math.abs(a),Math.abs(c))}const b=o,M=l,w=h,P=u,T=f,A=d,D=y;Object.freeze(Object.defineProperty({__proto__:null,add:a,ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e[3]=Math.ceil(t[3]),e},copy:r,copyVec3:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},dist:P,distance:u,div:w,divide:h,dot:x,equals:I,exactEquals:_,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e[3]=Math.floor(t[3]),e},inverse:function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e},len:A,length:d,lerp:p,max:function(e,t,s){return e[0]=Math.max(t[0],s[0]),e[1]=Math.max(t[1],s[1]),e[2]=Math.max(t[2],s[2]),e[3]=Math.max(t[3],s[3]),e},min:function(e,t,s){return e[0]=Math.min(t[0],s[0]),e[1]=Math.min(t[1],s[1]),e[2]=Math.min(t[2],s[2]),e[3]=Math.min(t[3],s[3]),e},mul:M,multiply:l,negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e},normalize:g,random:function(e,t=1){const s=n.Ov;let r,i,a,o,l,h;do{r=2*s()-1,i=2*s()-1,l=r*r+i*i}while(l>=1);do{a=2*s()-1,o=2*s()-1,h=a*a+o*o}while(h>=1);const c=Math.sqrt((1-l)/h);return e[0]=t*r,e[1]=t*i,e[2]=t*a*c,e[3]=t*o*c,e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e[3]=Math.round(t[3]),e},scale:c,scaleAndAdd:function(e,t,s,n){return e[0]=t[0]+s[0]*n,e[1]=t[1]+s[1]*n,e[2]=t[2]+s[2]*n,e[3]=t[3]+s[3]*n,e},set:i,sqrDist:T,sqrLen:D,squaredDistance:f,squaredLength:y,str:function(e){return"vec4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},sub:b,subtract:o,transformMat4:m,transformQuat:function(e,t,s){const n=t[0],r=t[1],i=t[2],a=s[0],o=s[1],l=s[2],h=s[3],c=h*n+o*i-l*r,u=h*r+l*n-a*i,f=h*i+a*r-o*n,d=-a*n-o*r-l*i;return e[0]=c*h+d*-a+u*-l-f*-o,e[1]=u*h+d*-o+f*-a-c*-l,e[2]=f*h+d*-l+c*-o-u*-a,e[3]=t[3],e}},Symbol.toStringTag,{value:"Module"}))},91829:(e,t,s)=>{function n(){return[0,0,0,0]}function r(e,t,s,n){return[e,t,s,n]}function i(e,t,s,n){return[e,t,s,n]}function a(e,t=[0,0,0,0]){const s=Math.min(4,e.length);for(let n=0;n<s;++n)t[n]=e[n];return t}function o(){return r(1,1,1,1)}function l(){return r(1,0,0,0)}function h(){return r(0,1,0,0)}function c(){return r(0,0,1,0)}function u(){return r(0,0,0,1)}s.d(t,{CN:()=>i,Un:()=>d,ci:()=>a,fA:()=>r,uY:()=>f,vt:()=>n});const f=[0,0,0,0],d=o(),y=l(),g=h(),x=c(),p=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:d,UNIT_W:p,UNIT_X:y,UNIT_Y:g,UNIT_Z:x,ZEROS:f,clone:function(e){return[e[0],e[1],e[2],e[3]]},create:n,freeze:i,fromArray:a,fromValues:r,ones:o,unitW:u,unitX:l,unitY:h,unitZ:c,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8432],{6518:(t,e,i)=>{i.d(e,{F:()=>h});var s=i(44208),n=i(75503),r=i(19419);const o={minX:0,minY:0,maxX:0,maxY:0};class h{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new n.w(9,(0,s.A)("esri-csp-restrictions")?t=>({minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const t=new Array(this._idByBounds.size);let e=0;this._idByBounds.forEach(((i,s)=>{t[e++]=s})),this._indexInvalid=!1,this._index.clear(),this._index.load(t)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter((t=>this._idByBounds.has(t)))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const t=(0,r.Ie)();for(const e of this._boundsById.values())e&&(t[0]=Math.min(e[0],t[0]),t[1]=Math.min(e[1],t[1]),t[2]=Math.max(e[2],t[2]),t[3]=Math.max(e[3],t[3]));return t}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(t){const e=this._boundsById.get(t);this._boundsById.delete(t),e&&(this._idByBounds.delete(e),this._indexInvalid||this._index.remove(e))}forEachInBounds(t,e){this._loadIndex(),function(t,e,i){(function(t){o.minX=t[0],o.minY=t[1],o.maxX=t[2],o.maxY=t[3]})(e),t.search(o,i)}(this._index,t,(t=>e(this._idByBounds.get(t))))}get(t){return this._boundsById.get(t)}has(t){return this._boundsById.has(t)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(t,e){if(!this._indexInvalid){const e=this._boundsById.get(t);e&&(this._index.remove(e),this._idByBounds.delete(e))}this._boundsById.set(t,e),e&&(this._idByBounds.set(e,t),this._indexInvalid||(this._boundsToLoad.push(e),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},36708:(t,e,i)=>{i.d(e,{C_:()=>c,OH:()=>f,Vh:()=>g,on:()=>u,pc:()=>x,wB:()=>a,z7:()=>d});var s=i(37955),n=i(36563),r=i(97768),o=i(74887),h=i(14012);function a(t,e,i={}){return l(t,e,i,_)}function d(t,e,i={}){return l(t,e,i,m)}function l(t,e,i={},s){let n=null;const o=i.once?(t,i)=>{s(t)&&((0,r.xt)(n),e(t,i))}:(t,i)=>{s(t)&&e(t,i)};if(n=(0,h.Cn)(t,o,i.sync,i.equals),i.initial){const e=t();o(e,e)}return n}function u(t,e,i,o={}){let h=null,d=null,l=null;function u(){h&&d&&(d.remove(),o.onListenerRemove?.(h),h=null,d=null)}function c(t){o.once&&o.once&&(0,r.xt)(l),i(t)}const _=a(t,((t,i)=>{u(),(0,s.wb)(t)&&(h=t,d=(0,s.on)(t,e,c),o.onListenerAdd?.(t))}),{sync:o.sync,initial:!0});return l=(0,n.hA)((()=>{_.remove(),u()})),l}function c(t,e){return function(t,e,i){if((0,o.G4)(i))return Promise.reject((0,o.NK)());const s=t();if(e?.(s))return Promise.resolve(s);let h=null;function a(){h=(0,r.xt)(h)}return new Promise(((s,r)=>{h=(0,n.vE)([(0,o.u7)(i,(()=>{a(),r((0,o.NK)())})),l(t,(t=>{a(),s(t)}),{sync:!1,once:!0},e??_)])}))}(t,m,e)}function _(t){return!0}function m(t){return!!t}i(80559);const f={sync:!0},g={initial:!0},x={sync:!0,initial:!0}},37730:(t,e,i)=>{i.d(e,{T:()=>n});var s=i(43334);const n={getObjectId:t=>t.objectId,getAttributes:t=>t.attributes,getAttribute:(t,e)=>t.attributes[e],cloneWithGeometry:(t,e)=>new s.Om(e,t.attributes,null,t.objectId),getGeometry:t=>t.geometry,getCentroid:(t,e)=>t.ensureCentroid(e)}},58376:(t,e,i)=>{i.d(e,{J:()=>m});var s=i(4718),n=i(74887),r=i(65864),o=i(17136),h=i(21325),a=i(31464),d=i(19730),l=i(8384),u=i(58727),c=i(62798),_=i(62660);async function m(t,e,i){const m=(0,n.Mq)(i),{point:f,distance:g,returnEdge:x,vertexMode:y}=e;if(!x&&"none"===y)return{candidates:[]};let p=(0,s.o8)(e.query);p=await t.schedule((()=>(0,u.T2)(p,t.definitionExpression,t.spatialReference)),m),p=await t.reschedule((()=>(0,c.B4)(p,{availableFields:t.availableFields,fieldsIndex:t.fieldsIndex,geometryType:t.geometryType,spatialReference:t.spatialReference})),m);const B=!(0,h.aI)(f.spatialReference,t.spatialReference);B&&await(0,a.Nk)(f.spatialReference,t.spatialReference);const b="number"==typeof g?g:g.x,M="number"==typeof g?g:g.y,v={xmin:f.x-b,xmax:f.x+b,ymin:f.y-M,ymax:f.y+M,spatialReference:f.spatialReference},z=B?(0,a.Cv)(v,t.spatialReference):v;if(!z)return{candidates:[]};const I=(await(0,o.el)((0,r.rS)(f),null,{signal:m}))[0],S=(await(0,o.el)((0,r.rS)(z),null,{signal:m}))[0];if(null==I||null==S)return{candidates:[]};const w=new l.G(await t.reschedule((()=>t.searchFeatures((0,d.ux)(S.toJSON()))),m),p,t);await t.reschedule((()=>t.executeObjectIdsQuery(w)),m),await t.reschedule((()=>t.executeTimeQuery(w)),m),await t.reschedule((()=>t.executeAttributesQuery(w)),m),await t.reschedule((()=>async function(t,e,i){const{query:s}=e,{spatialRel:n}=s;if(!e?.items?.length||!s.geometry||!n)return;const r=await(0,_.xt)(n,s.geometry,t.geometryType,t.hasZ,t.hasM),o=await t.runSpatialFilter(e.items,(t=>r(t.geometry)),i);e.items=o}(t,w,m)),m);const R=I.toJSON(),X=B?(0,a.Cv)(R,t.spatialReference):R,Y=B?Math.max(z.xmax-z.xmin,z.ymax-z.ymin)/2:g;return w.createSnappingResponse({...e,point:X,distance:Y},f.spatialReference)}},66344:(t,e,i)=>{i.d(e,{q:()=>a});var s,n,r=i(3694);(n=s||(s={}))[n.ALL=0]="ALL",n[n.SOME=1]="SOME";class o{get size(){return this._size}constructor(t=10485760){this._maxSize=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._removeFuncs=new r.A,this._users=new r.A}destroy(){this.clearAll(),this._removeFuncs.clear(),this._users.clear()}register(t){this._users.push(t)}deregister(t){this._users.removeUnordered(t)}registerRemoveFunc(t,e){this._removeFuncs.push([t,e])}deregisterRemoveFunc(t){this._removeFuncs.filterInPlace((e=>e[0]!==t))}get maxSize(){return this._maxSize}set maxSize(t){this._maxSize=Math.max(t,-1),this._checkSize()}getSize(t,e){const i=this._db.get(t.id+e);return i?.size??0}put(t,e,i,n,r){e=t.id+e;const o=this._db.get(e);if(o&&(this._size-=o.size,t.size-=o.size,this._db.delete(e),o.entry!==i&&this._notifyRemove(e,o.entry,o.size,s.ALL)),n>this._maxSize)return void this._notifyRemove(e,i,n,s.ALL);if(void 0===i)return void console.warn("Refusing to cache undefined entry ");if(!n||n<0)return console.warn(`Refusing to cache entry with size ${n} for key ${e}`),void this._notifyRemove(e,i,0,s.ALL);const a=1+Math.max(r,-4)- -3;this._db.set(e,new h(i,n,a)),this._size+=n,t.size+=n,this._checkSize()}updateSize(t,e,i,n){e=t.id+e;const r=this._db.get(e);if(r&&r.entry===i){for(this._size-=r.size,t.size-=r.size;n>this._maxSize;){const t=this._notifyRemove(e,i,n,s.SOME);if(!(null!=t&&t>0))return void this._db.delete(e);n=t}r.size=n,this._size+=n,t.size+=n,this._checkSize()}}pop(t,e){e=t.id+e;const i=this._db.get(e);if(i)return this._size-=i.size,t.size-=i.size,this._db.delete(e),++this._hit,i.entry;++this._miss}get(t,e){e=t.id+e;const i=this._db.get(e);if(void 0!==i)return this._db.delete(e),i.lives=i.lifetime,this._db.set(e,i),++this._hit,i.entry;++this._miss}peek(t,e){const i=this._db.get(t.id+e);return i?++this._hit:++this._miss,i?.entry}get performanceInfo(){const t={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},e={},i=new Array;this._db.forEach(((t,s)=>{const n=t.lifetime;i[n]=(i[n]||0)+t.size,this._users.forAll((i=>{const{id:n,name:r}=i;if(s.startsWith(n)){const i=e[r]||0;e[r]=i+t.size}}))}));const s={};this._users.forAll((t=>{const i=t.name;if("hitRate"in t&&"number"==typeof t.hitRate&&!isNaN(t.hitRate)&&t.hitRate>0){const n=e[i]||0;e[i]=n,s[i]=Math.round(100*t.hitRate)+"%"}else s[i]="0%"}));const n=Object.keys(e);n.sort(((t,i)=>e[i]-e[t])),n.forEach((i=>t[i]=Math.round(e[i]/2**20)+"MB / "+s[i]));for(let e=i.length-1;e>=0;--e){const s=i[e];s&&(t["Priority "+(e+-3-1)]=Math.round(s/this._size*100)+"%")}return t}resetStats(){this._hit=this._miss=0,this._users.forAll((t=>t.resetHitRate()))}clear(t){const e=t.id;this._db.forEach(((t,i)=>{i.startsWith(e)&&(this._size-=t.size,this._db.delete(i),this._notifyRemove(i,t.entry,t.size,s.ALL))})),t.size=0}clearAll(){this._db.forEach(((t,e)=>this._notifyRemove(e,t.entry,t.size,s.ALL))),this._users.forAll((t=>t.size=0)),this._size=0,this._db.clear()}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(t,e,i,s){let n;return this._removeFuncs.some((r=>{if(t.startsWith(r[0])){const t=r[1](e,s,i);return"number"==typeof t&&(n=t),!0}return!1})),n}_checkSize(){this._users.forAll((t=>this._checkSizeLimits(t))),this._checkSizeLimits()}_checkSizeLimits(t){const e=t??this;if(e.maxSize<0||e.size<=e.maxSize)return;const i=t?.id;let s=!0;for(;s;){s=!1;for(const[n,r]of this._db)if(0===r.lifetime&&(!i||n.startsWith(i))){if(this._purgeItem(n,r,t),e.size<=.9*e.maxSize)return;s||=this._db.has(n)}}for(const[s,n]of this._db)if((!i||s.startsWith(i))&&(this._purgeItem(s,n,t),e.size<=.9*e.maxSize))return}_purgeItem(t,e,i=this._users.find((e=>t.startsWith(e.id)))){if(this._db.delete(t),e.lives<=1){this._size-=e.size,i&&(i.size-=e.size);const n=this._notifyRemove(t,e.entry,e.size,s.SOME);null!=n&&n>0&&(this._size+=n,i&&(i.size+=n),e.lives=e.lifetime,e.size=n,this._db.set(t,e))}else--e.lives,this._db.set(t,e)}}class h{constructor(t,e,i){this.entry=t,this.size=e,this.lifetime=i,this.lives=i}}class a{constructor(t,e){this._storage=new o,this.id="",this.name="",this.size=0,this._storage.maxSize=t,this._storage.register(this),e&&this._storage.registerRemoveFunc("",e)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(t,e,i=1){this._storage.put(this,t,e,i,1)}pop(t){return this._storage.pop(this,t)}get(t){return this._storage.get(this,t)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(t){this._storage.maxSize=t}resetHitRate(){}}},75503:(t,e,i)=>{i.d(e,{E:()=>I,w:()=>h});var s=i(4576),n=i(21818),r=(i(44208),i(3694)),o=i(11006);class h{constructor(t=9,e){this._compareMinX=c,this._compareMinY=_,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&("function"==typeof e?this._toBBox=e:this._initFormat(e)),this.clear()}destroy(){this.clear(),b.prune(),M.prune(),v.prune(),z.prune()}all(t){a(this._data,t)}search(t,e){let i=this._data;const s=this._toBBox;if(p(t,i))for(b.clear();i;){for(let n=0,r=i.children.length;n<r;n++){const r=i.children[n],o=i.leaf?s(r):r;p(t,o)&&(i.leaf?e(r):y(t,o)?a(r,e):b.push(r))}i=b.pop()}}collides(t){let e=this._data;const i=this._toBBox;if(!p(t,e))return!1;for(b.clear();e;){for(let s=0,n=e.children.length;s<n;s++){const n=e.children[s],r=e.leaf?i(n):n;if(p(t,r)){if(e.leaf||y(t,r))return!0;b.push(n)}}e=b.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let e=0,i=t.length;e<i;e++)this.insert(t[e]);return this}let e=this._build(t.slice(),0,t.length-1,0);if(this._data.children.length)if(this._data.height===e.height)this._splitRoot(this._data,e);else{if(this._data.height<e.height){const t=this._data;this._data=e,e=t}this._insert(e,this._data.height-e.height-1,!0)}else this._data=e;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new w([]),this}remove(t){if(!t)return this;let e,i=this._data,r=null,o=0,h=!1;const a=this._toBBox(t);for(v.clear(),z.clear();i||v.length>0;){if(i||(i=v.pop(),r=v.data[v.length-1],o=z.pop()??0,h=!0),i.leaf&&(e=(0,s.qh)(i.children,(0,n.zI)(t),i.children.length,i.indexHint),-1!==e))return i.children.splice(e,1),v.push(i),this._condense(v),this;h||i.leaf||!y(i,a)?r?(o++,i=r.children[o],h=!1):i=null:(v.push(i),z.push(o),o=0,r=i,i=i.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_build(t,e,i,s){const n=i-e+1;let r=this._maxEntries;if(n<=r){const s=new w(t.slice(e,i+1));return d(s,this._toBBox),s}s||(s=Math.ceil(Math.log(n)/Math.log(r)),r=Math.ceil(n/r**(s-1)));const o=new R([]);o.height=s;const h=Math.ceil(n/r),a=h*Math.ceil(Math.sqrt(r));B(t,e,i,a,this._compareMinX);for(let n=e;n<=i;n+=a){const e=Math.min(n+a-1,i);B(t,n,e,h,this._compareMinY);for(let i=n;i<=e;i+=h){const n=Math.min(i+h-1,e);o.children.push(this._build(t,i,n,s-1))}}return d(o,this._toBBox),o}_insert(t,e,i){const s=this._toBBox,n=i?t:s(t);v.clear();const r=function(t,e,i,s){for(;s.push(e),!0!==e.leaf&&s.length-1!==i;){let i,s=1/0,n=1/0;for(let r=0,o=e.children.length;r<o;r++){const o=e.children[r],h=m(o),a=g(t,o)-h;a<n?(n=a,s=h<s?h:s,i=o):a===n&&h<s&&(s=h,i=o)}e=i||e.children[0]}return e}(n,this._data,e,v);for(r.children.push(t),u(r,n);e>=0&&v.data[e].children.length>this._maxEntries;)this._split(v,e),e--;!function(t,e,i){for(let s=i;s>=0;s--)u(e.data[s],t)}(n,v,e)}_split(t,e){const i=t.data[e],s=i.children.length,n=this._minEntries;this._chooseSplitAxis(i,n,s);const r=this._chooseSplitIndex(i,n,s);if(!r)return;const o=i.children.splice(r,i.children.length-r),h=i.leaf?new w(o):new R(o);h.height=i.height,d(i,this._toBBox),d(h,this._toBBox),e?t.data[e-1].children.push(h):this._splitRoot(i,h)}_splitRoot(t,e){this._data=new R([t,e]),this._data.height=t.height+1,d(this._data,this._toBBox)}_chooseSplitIndex(t,e,i){let s,n,r;s=n=1/0;for(let o=e;o<=i-e;o++){const e=l(t,0,o,this._toBBox),h=l(t,o,i,this._toBBox),a=x(e,h),d=m(e)+m(h);a<s?(s=a,r=o,n=d<n?d:n):a===s&&d<n&&(n=d,r=o)}return r}_chooseSplitAxis(t,e,i){const s=t.leaf?this._compareMinX:c,n=t.leaf?this._compareMinY:_;this._allDistMargin(t,e,i,s)<this._allDistMargin(t,e,i,n)&&t.children.sort(s)}_allDistMargin(t,e,i,s){t.children.sort(s);const n=this._toBBox,r=l(t,0,e,n),o=l(t,i-e,i,n);let h=f(r)+f(o);for(let s=e;s<i-e;s++){const e=t.children[s];u(r,t.leaf?n(e):e),h+=f(r)}for(let s=i-e-1;s>=e;s--){const e=t.children[s];u(o,t.leaf?n(e):e),h+=f(o)}return h}_condense(t){for(let e=t.length-1;e>=0;e--){const i=t.data[e];if(0===i.children.length)if(e>0){const n=t.data[e-1],r=n.children;r.splice((0,s.qh)(r,i,r.length,n.indexHint),1)}else this.clear();else d(i,this._toBBox)}}_initFormat(t){const e=["return a"," - b",";"];this._compareMinX=new Function("a","b",e.join(t[0])),this._compareMinY=new Function("a","b",e.join(t[1])),this._toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function a(t,e){let i=t;for(M.clear();i;){if(!0===i.leaf)for(const t of i.children)e((0,n.zI)(t));else M.pushArray(i.children);i=M.pop()??null}}function d(t,e){l(t,0,t.children.length,e,t)}function l(t,e,i,s,n){n||(n=new w([])),n.minX=1/0,n.minY=1/0,n.maxX=-1/0,n.maxY=-1/0;for(let r,o=e;o<i;o++)r=t.children[o],u(n,t.leaf?s(r):r);return n}function u(t,e){t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY)}function c(t,e){return t.minX-e.minX}function _(t,e){return t.minY-e.minY}function m(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function f(t){return t.maxX-t.minX+(t.maxY-t.minY)}function g(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function x(t,e){const i=Math.max(t.minX,e.minX),s=Math.max(t.minY,e.minY),n=Math.min(t.maxX,e.maxX),r=Math.min(t.maxY,e.maxY);return Math.max(0,n-i)*Math.max(0,r-s)}function y(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function p(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function B(t,e,i,s,n){const r=[e,i];for(;r.length;){const e=r.pop(),i=r.pop();if(e-i<=s)continue;const h=i+Math.ceil((e-i)/s/2)*s;(0,o.q)(t,h,i,e,n),r.push(i,h,h,e)}}const b=new r.A,M=new r.A,v=new r.A,z=new r.A({deallocator:void 0});class I{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class S extends I{constructor(){super(...arguments),this.height=1,this.indexHint=new s.vW}}class w extends S{constructor(t){super(),this.children=t,this.leaf=!0}}class R extends S{constructor(t){super(),this.children=t,this.leaf=!1}}},83221:(t,e,i)=>{i.d(e,{A:()=>m});var s=i(4576),n=i(49186),r=i(65529),o=i(53966),h=i(70328),a=i(19419),d=i(90708),l=i(6518),u=i(51441),c=i(37730);const _=(0,h.vt)();class m{constructor(t){this.geometryInfo=t,this._boundsStore=new l.F,this._featuresById=new Map,this._usedMemory=0,this.events=new r.A,this.featureAdapter=c.T}get usedMemory(){return this._usedMemory}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let t=0;return this._featuresById.forEach((e=>{null!=e.geometry&&e.geometry.coords&&(t+=e.geometry.coords.length)})),{featureCount:this._featuresById.size,vertexCount:t/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(t){if(null==this.fullBounds)return null;const[e,i,s,n]=this.fullBounds;return{xmin:e,ymin:i,xmax:s,ymax:n,spatialReference:(0,u.ag)(t)}}add(t){this._add(t),this._emitChanged()}addMany(t){for(const e of t)this._add(e);this._emitChanged()}upsertMany(t){const e=t.map((t=>this._upsert(t)));return this._emitChanged(),e.filter(s.Ru)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged(),this._usedMemory=0}removeById(t){const e=this._featuresById.get(t);return e?(this._remove(e),this._emitChanged(),e):null}removeManyById(t){this._boundsStore.invalidateIndex();for(const e of t){const t=this._featuresById.get(e);t&&this._remove(t)}this._emitChanged()}forEachBounds(t,e){for(const i of t){const t=this._boundsStore.get(i.objectId);t&&e((0,h.Jt)(_,t))}}getFeature(t){return this._featuresById.get(t)}has(t){return this._featuresById.has(t)}forEach(t){this._featuresById.forEach((e=>t(e)))}forEachInBounds(t,e){this._boundsStore.forEachInBounds(t,(t=>{e(this._featuresById.get(t))}))}_emitChanged(){this.events.emit("changed",void 0)}_add(t){if(!t)return;const e=t.objectId;if(null==e)return void o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new n.A("featurestore:invalid-feature","feature id is missing",{feature:t}));const i=this._featuresById.get(e);let s;if(i?(t.displayId=i.displayId,s=this._boundsStore.get(e),this._boundsStore.delete(e),this._usedMemory-=this.estimateFeatureUsedMemory?.(i)??0):null!=this.onFeatureAdd&&this.onFeatureAdd(t),!t.geometry?.coords?.length)return this._boundsStore.set(e,null),void this._featuresById.set(e,t);s=(0,d.jQ)(null!=s?s:(0,a.vt)(),t.geometry,this.geometryInfo.hasZ,this.geometryInfo.hasM),null!=s&&this._boundsStore.set(e,s),this._featuresById.set(e,t),this._usedMemory+=this.estimateFeatureUsedMemory?.(t)??0}_upsert(t){const e=t?.objectId;if(null==e)return o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new n.A("featurestore:invalid-feature","feature id is missing",{feature:t})),null;const i=this._featuresById.get(e);if(!i)return this._add(t),t;this._usedMemory-=this.estimateFeatureUsedMemory?.(i)??0;const{geometry:s,attributes:r}=t;for(const t in r)i.attributes[t]=r[t];return s&&(i.geometry=s,this._boundsStore.set(e,(0,d.jQ)((0,a.vt)(),s,this.geometryInfo.hasZ,this.geometryInfo.hasM)??null)),this._usedMemory+=this.estimateFeatureUsedMemory?.(i)??0,i}_remove(t){null!=this.onFeatureRemove&&this.onFeatureRemove(t);const e=t.objectId;return this._boundsStore.delete(e),this._featuresById.delete(e),this._usedMemory-=this.estimateFeatureUsedMemory?.(t)??0,t}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[587],{5760:(t,e,r)=>{r.d(e,{NM:()=>l,Tb:()=>a,_R:()=>n,h9:()=>s,rM:()=>h,x0:()=>p,y7:()=>u});var i=r(34727),o=r(56507);const s=["none","underline","line-through"],n=["normal","italic","oblique"],l=["normal","lighter","bold","bolder"],a={type:Number,cast:t=>{const e=(0,o.GB)(t);return 0===e?1:(0,i.qE)(e,.1,4)},nonNullable:!0},h={type:["left","right","center"],nonNullable:!0},p={type:["baseline","top","middle","bottom"],nonNullable:!0},u=8},11831:(t,e,r)=>{r.d(e,{A:()=>y});var i,o=r(90237),s=r(25482),n=r(90629),l=r(10107),a=r(79901),h=(r(44208),r(87811),r(40608)),p=r(5760);let u=i=class extends s.A{constructor(t){super(t),this.decoration="none",this.family="sans-serif",this.size=9,this.style="normal",this.weight="normal"}castSize(t){return(0,n.cr)(t)}clone(){return new i({decoration:this.decoration,family:this.family,size:this.size,style:this.style,weight:this.weight})}hash(){return`${this.decoration}.${this.family}.${this.size}.${this.style}.${this.weight}`}};(0,o._)([(0,l.MZ)({type:p.h9,json:{default:"none",write:!0}})],u.prototype,"decoration",void 0),(0,o._)([(0,l.MZ)({type:String,json:{write:!0}})],u.prototype,"family",void 0),(0,o._)([(0,l.MZ)({type:Number,json:{write:{overridePolicy:(t,e,r)=>({enabled:!r||!r.textSymbol3D})}}})],u.prototype,"size",void 0),(0,o._)([(0,a.w)("size")],u.prototype,"castSize",null),(0,o._)([(0,l.MZ)({type:p._R,json:{default:"normal",write:!0}})],u.prototype,"style",void 0),(0,o._)([(0,l.MZ)({type:p.NM,json:{default:"normal",write:!0}})],u.prototype,"weight",void 0),u=i=(0,o._)([(0,h.$)("esri.symbols.Font")],u);const y=u},20378:(t,e,r)=>{r.d(e,{A:()=>c});var i=r(90237),o=r(68197),s=r(66552),n=r(25482),l=r(10107),a=(r(44208),r(53966),r(87811),r(36005)),h=r(40608);const p=new s.J({esriSMS:"simple-marker",esriPMS:"picture-marker",esriSLS:"simple-line",esriSFS:"simple-fill",esriPFS:"picture-fill",esriTS:"text",esriSHD:"shield-label-symbol",PointSymbol3D:"point-3d",LineSymbol3D:"line-3d",PolygonSymbol3D:"polygon-3d",WebStyleSymbol:"web-style",MeshSymbol3D:"mesh-3d",LabelSymbol3D:"label-3d",CIMSymbolReference:"cim"});let u=0,y=class extends n.A{constructor(t){super(t),this.id="sym"+u++,this.type=null,this.color=new o.A([0,0,0,1])}readColor(t){return null!=t?.[0]?[t[0],t[1],t[2],t[3]/255]:t}async collectRequiredFields(t,e){}hash(){return JSON.stringify(this.toJSON())}clone(){}};(0,i._)([(0,l.MZ)({type:p.apiValues,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:p.write,isRequired:!0}}})],y.prototype,"type",void 0),(0,i._)([(0,l.MZ)({type:o.A,json:{write:{allowNull:!0}}})],y.prototype,"color",void 0),(0,i._)([(0,a.w)("color")],y.prototype,"readColor",null),y=(0,i._)([(0,h.$)("esri.symbols.Symbol")],y);const c=y},31593:(t,e,r)=>{r.d(e,{A:()=>A});var i=r(90237),o=r(66552),s=r(4718),n=r(90629),l=r(10107),a=(r(44208),r(53966),r(93223)),h=r(40608),p=(r(87811),r(20378));let u=class extends p.A{constructor(t){super(t),this.type="simple-line",this.width=.75}hash(){return`${this.type}.${this.width}`}};(0,i._)([(0,a.e)({esriSLS:"simple-line"},{readOnly:!0})],u.prototype,"type",void 0),(0,i._)([(0,l.MZ)({type:Number,cast:n.cr,json:{write:!0}})],u.prototype,"width",void 0),u=(0,i._)([(0,h.$)("esri.symbols.LineSymbol")],u);const y=u;var c,d=r(68197),m=r(25482),g=r(36005),S=r(43937),b=r(83213);let f=c=class extends m.A{constructor(t){super(t),this.placement="begin-end",this.type="line-marker",this.style="arrow"}writeStyle(t,e,r,i){e[r]="web-map"===i?.origin?"arrow":t}set color(t){this._set("color",t)}readColor(t){return null!=t?.[0]?[t[0],t[1],t[2],t[3]/255]:t}writeColor(t,e,r,i){"web-map"===i?.origin||(e[r]=t)}clone(){return new c({color:(0,s.o8)(this.color),placement:this.placement,style:this.style})}hash(){return`${this.placement}.${this.color?.hash()}.${this.style}`}};(0,i._)([(0,l.MZ)({type:["begin","end","begin-end"],json:{write:!0}})],f.prototype,"placement",void 0),(0,i._)([(0,a.e)({"line-marker":"line-marker"},{readOnly:!0}),(0,l.MZ)({json:{origins:{"web-map":{write:!1}}}})],f.prototype,"type",void 0),(0,i._)([(0,l.MZ)({type:b.z})],f.prototype,"style",void 0),(0,i._)([(0,S.K)("style")],f.prototype,"writeStyle",null),(0,i._)([(0,l.MZ)({type:d.A,value:null,json:{write:{allowNull:!0}}})],f.prototype,"color",null),(0,i._)([(0,g.w)("color")],f.prototype,"readColor",null),(0,i._)([(0,S.K)("color")],f.prototype,"writeColor",null),f=c=(0,i._)([(0,h.$)("esri.symbols.LineSymbolMarker")],f);const w=f;var _;const v=new o.J({esriSLSSolid:"solid",esriSLSDash:"dash",esriSLSDot:"dot",esriSLSDashDot:"dash-dot",esriSLSDashDotDot:"long-dash-dot-dot",esriSLSNull:"none",esriSLSShortDash:"short-dash",esriSLSShortDot:"short-dot",esriSLSShortDashDot:"short-dash-dot",esriSLSShortDashDotDot:"short-dash-dot-dot",esriSLSLongDash:"long-dash",esriSLSLongDashDot:"long-dash-dot"});let M=_=class extends y{constructor(...t){super(...t),this.type="simple-line",this.style="solid",this.cap="round",this.join="round",this.marker=null,this.miterLimit=2}normalizeCtorArgs(t,e,r,i,o,s){if(t&&"string"!=typeof t)return t;const l={};return null!=t&&(l.style=t),null!=e&&(l.color=e),null!=r&&(l.width=(0,n.cr)(r)),null!=i&&(l.cap=i),null!=o&&(l.join=o),null!=s&&(l.miterLimit=(0,n.cr)(s)),l}clone(){return new _({color:(0,s.o8)(this.color),style:this.style,width:this.width,cap:this.cap,join:this.join,miterLimit:this.miterLimit,marker:this.marker?.clone()})}hash(){return`${super.hash()}.${this.color?.hash()}.${this.style}.${this.cap}.${this.join}.${this.miterLimit}.${this.marker?.hash()}`}};(0,i._)([(0,a.e)({esriSLS:"simple-line"},{readOnly:!0})],M.prototype,"type",void 0),(0,i._)([(0,l.MZ)({type:v.apiValues,json:{read:v.read,write:v.write}})],M.prototype,"style",void 0),(0,i._)([(0,l.MZ)({type:["butt","round","square"],json:{write:{overridePolicy:(t,e,r)=>({enabled:"round"!==t&&null==r?.origin})}}})],M.prototype,"cap",void 0),(0,i._)([(0,l.MZ)({type:["miter","round","bevel"],json:{write:{overridePolicy:(t,e,r)=>({enabled:"round"!==t&&null==r?.origin})}}})],M.prototype,"join",void 0),(0,i._)([(0,l.MZ)({types:{key:"type",base:null,defaultKeyValue:"line-marker",typeMap:{"line-marker":w}},json:{write:!0,origins:{"web-scene":{write:!1}}}})],M.prototype,"marker",void 0),(0,i._)([(0,l.MZ)({type:Number,json:{read:!1,write:!1}})],M.prototype,"miterLimit",void 0),M=_=(0,i._)([(0,h.$)("esri.symbols.SimpleLineSymbol")],M);const A=M},36708:(t,e,r)=>{r.d(e,{C_:()=>y,OH:()=>m,Vh:()=>g,on:()=>u,pc:()=>S,wB:()=>a,z7:()=>h});var i=r(37955),o=r(36563),s=r(97768),n=r(74887),l=r(14012);function a(t,e,r={}){return p(t,e,r,c)}function h(t,e,r={}){return p(t,e,r,d)}function p(t,e,r={},i){let o=null;const n=r.once?(t,r)=>{i(t)&&((0,s.xt)(o),e(t,r))}:(t,r)=>{i(t)&&e(t,r)};if(o=(0,l.Cn)(t,n,r.sync,r.equals),r.initial){const e=t();n(e,e)}return o}function u(t,e,r,n={}){let l=null,h=null,p=null;function u(){l&&h&&(h.remove(),n.onListenerRemove?.(l),l=null,h=null)}function y(t){n.once&&n.once&&(0,s.xt)(p),r(t)}const c=a(t,((t,r)=>{u(),(0,i.wb)(t)&&(l=t,h=(0,i.on)(t,e,y),n.onListenerAdd?.(t))}),{sync:n.sync,initial:!0});return p=(0,o.hA)((()=>{c.remove(),u()})),p}function y(t,e){return function(t,e,r){if((0,n.G4)(r))return Promise.reject((0,n.NK)());const i=t();if(e?.(i))return Promise.resolve(i);let l=null;function a(){l=(0,s.xt)(l)}return new Promise(((i,s)=>{l=(0,o.vE)([(0,n.u7)(r,(()=>{a(),s((0,n.NK)())})),p(t,(t=>{a(),i(t)}),{sync:!1,once:!0},e??c)])}))}(t,d,e)}function c(t){return!0}function d(t){return!!t}r(80559);const m={sync:!0},g={initial:!0},S={sync:!0,initial:!0}},53930:(t,e,r)=>{r.d(e,{A:()=>S});var i,o=r(90237),s=r(68197),n=r(66552),l=r(4718),a=r(90629),h=r(10107),p=(r(44208),r(53966),r(93223)),u=r(40608),y=r(43937),c=r(89420),d=r(31593);const m=new n.J({esriSMSCircle:"circle",esriSMSSquare:"square",esriSMSCross:"cross",esriSMSX:"x",esriSMSDiamond:"diamond",esriSMSTriangle:"triangle",esriSMSPath:"path"});let g=i=class extends c.A{constructor(...t){super(...t),this.color=new s.A([255,255,255,.25]),this.type="simple-marker",this.size=12,this.style="circle",this.outline=new d.A}normalizeCtorArgs(t,e,r,i){if(t&&"string"!=typeof t)return t;const o={};return t&&(o.style=t),null!=e&&(o.size=(0,a.cr)(e)),r&&(o.outline=r),i&&(o.color=i),o}writeColor(t,e){t&&"x"!==this.style&&"cross"!==this.style&&(e.color=t.toJSON()),null===t&&(e.color=null)}set path(t){this.style="path",this._set("path",t)}clone(){return new i({angle:this.angle,color:(0,l.o8)(this.color),outline:this.outline&&this.outline.clone(),path:this.path,size:this.size,style:this.style,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${super.hash()}.${this.color&&this.color.hash()}.${this.path}.${this.style}.${this.outline?.hash()}`}};(0,o._)([(0,h.MZ)()],g.prototype,"color",void 0),(0,o._)([(0,y.K)("color")],g.prototype,"writeColor",null),(0,o._)([(0,p.e)({esriSMS:"simple-marker"},{readOnly:!0})],g.prototype,"type",void 0),(0,o._)([(0,h.MZ)()],g.prototype,"size",void 0),(0,o._)([(0,h.MZ)({type:m.apiValues,json:{read:m.read,write:m.write}})],g.prototype,"style",void 0),(0,o._)([(0,h.MZ)({type:String,json:{write:!0}})],g.prototype,"path",null),(0,o._)([(0,h.MZ)({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":d.A}},json:{default:null,write:!0}})],g.prototype,"outline",void 0),g=i=(0,o._)([(0,u.$)("esri.symbols.SimpleMarkerSymbol")],g);const S=g},65851:(t,e,r)=>{r.d(e,{A:()=>h});var i=r(90237),o=r(10107),s=(r(44208),r(53966),r(87811),r(40608)),n=r(31593),l=r(20378);let a=class extends l.A{constructor(t){super(t),this.outline=null,this.type=null}hash(){return`${this.type}.${this.outline?.hash()}`}};(0,i._)([(0,o.MZ)({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":n.A}},json:{default:null,write:!0}})],a.prototype,"outline",void 0),(0,i._)([(0,o.MZ)({type:["simple-fill","picture-fill"],readOnly:!0})],a.prototype,"type",void 0),a=(0,i._)([(0,s.$)("esri.symbols.FillSymbol")],a);const h=a},68197:(t,e,r)=>{r.d(e,{A:()=>u});var i,o,s=r(40876),n=r(34727),l=r(56507);function a(t){return(0,n.qE)((0,l.Vr)(t),0,255)}function h(t,e,r){return t=Number(t),isNaN(t)?r:t<e?e:t>r?r:t}function p(t,e){const r=t.toString(16).padStart(2,"0");return e?r.slice(0,1):r}class u{static blendColors(t,e,r,i=new u){return i.r=Math.round(t.r+(e.r-t.r)*r),i.g=Math.round(t.g+(e.g-t.g)*r),i.b=Math.round(t.b+(e.b-t.b)*r),i.a=t.a+(e.a-t.a)*r,i._sanitize()}static fromRgb(t,e){const r=t.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(r){const t=r[2].split(/\s*,\s*/),i=r[1];if("rgb"===i&&3===t.length||"rgba"===i&&4===t.length){const r=t[0];if("%"===r.charAt(r.length-1)){const r=t.map((t=>2.56*parseFloat(t)));return 4===t.length&&(r[3]=parseFloat(t[3])),u.fromArray(r,e)}return u.fromArray(t.map((t=>parseFloat(t))),e)}if("hsl"===i&&3===t.length||"hsla"===i&&4===t.length)return u.fromArray((0,s.z$)(parseFloat(t[0]),parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3])),e)}return null}static fromHex(t,e=new u){if("#"!==t[0]||isNaN(Number(`0x${t.slice(1)}`)))return null;switch(t.length){case 4:case 5:{const r=parseInt(t.slice(1,2),16),i=parseInt(t.slice(2,3),16),o=parseInt(t.slice(3,4),16),s=5===t.length?15:parseInt(t.slice(4),16);return u.fromArray([r+16*r,i+16*i,o+16*o,(s+16*s)/255],e)}case 7:case 9:{const r=parseInt(t.slice(1,3),16),i=parseInt(t.slice(3,5),16),o=parseInt(t.slice(5,7),16),s=7===t.length?255:parseInt(t.slice(7),16);return u.fromArray([r,i,o,s/255],e)}default:return null}}static fromArray(t,e=new u){return e._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(e.a)&&(e.a=1),e._sanitize()}static fromString(t,e){const r=(0,s.V6)(t)?(0,s.TS)(t):null;return r&&u.fromArray(r,e)||u.fromRgb(t,e)||u.fromHex(t,e)}static fromJSON(t){return null!=t?new u([t[0],t[1],t[2],(t[3]??255)/255]):void 0}static toUnitRGB(t){return null!=t?[t.r/255,t.g/255,t.b/255]:null}static toUnitRGBA(t){return null!=t?[t.r/255,t.g/255,t.b/255,null!=t.a?t.a:1]:null}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(t){return"string"==typeof t?u.fromString(t,this):Array.isArray(t)?u.fromArray(t,this):(this._set(t.r??0,t.g??0,t.b??0,t.a??1),t instanceof u||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(t){const e=t?.capitalize??!1,r=t?.digits??6,i=3===r||4===r,o=4===r||8===r,s=`#${p(this.r,i)}${p(this.g,i)}${p(this.b,i)}${o?p(Math.round(255*this.a),i):""}`;return e?s.toUpperCase():s}toCss(t=!1){const e=this.r+", "+this.g+", "+this.b;return t?`rgba(${e}, ${this.a})`:`rgb(${e})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=u.AlphaMode.ALWAYS){const e=a(this.r),r=a(this.g),i=a(this.b);return t===u.AlphaMode.ALWAYS||1!==this.a?[e,r,i,a(255*this.a)]:[e,r,i]}clone(){return new u(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=Math.round(h(this.r,0,255)),this.g=Math.round(h(this.g,0,255)),this.b=Math.round(h(this.b,0,255)),this.a=h(this.a,0,1),this}_set(t,e,r,i){this.r=t,this.g=e,this.b=r,this.a=i}}u.prototype.declaredClass="esri.Color",(o=(i=u).AlphaMode||(i.AlphaMode={}))[o.ALWAYS=0]="ALWAYS",o[o.UNLESS_OPAQUE=1]="UNLESS_OPAQUE"},68249:(t,e,r)=>{r.d(e,{A:()=>S});var i,o=r(90237),s=r(68197),n=r(4718),l=r(90629),a=r(10107),h=r(79901),p=r(93223),u=r(40608),y=r(43937),c=r(11831),d=r(20378),m=r(5760);let g=i=class extends d.A{constructor(...t){super(...t),this.backgroundColor=null,this.borderLineColor=null,this.borderLineSize=null,this.font=new c.A,this.horizontalAlignment="center",this.kerning=!0,this.haloColor=null,this.haloSize=null,this.rightToLeft=null,this.rotated=!1,this.text="",this.type="text",this.verticalAlignment="baseline",this.xoffset=0,this.yoffset=0,this.angle=0,this.width=null,this.lineWidth=192,this.lineHeight=1}normalizeCtorArgs(t,e,r){if(t&&"string"!=typeof t)return t;const i={};return t&&(i.text=t),e&&(i.font=e),r&&(i.color=r),i}writeLineWidth(t,e,r,i){i&&"string"!=typeof i?i.origin:e[r]=t}castLineWidth(t){return(0,l.cr)(t)}writeLineHeight(t,e,r,i){i&&"string"!=typeof i?i.origin:e[r]=t}clone(){return new i({angle:this.angle,backgroundColor:(0,n.o8)(this.backgroundColor),borderLineColor:(0,n.o8)(this.borderLineColor),borderLineSize:this.borderLineSize,color:(0,n.o8)(this.color),font:this.font&&this.font.clone(),haloColor:(0,n.o8)(this.haloColor),haloSize:this.haloSize,horizontalAlignment:this.horizontalAlignment,kerning:this.kerning,lineHeight:this.lineHeight,lineWidth:this.lineWidth,rightToLeft:this.rightToLeft,rotated:this.rotated,text:this.text,verticalAlignment:this.verticalAlignment,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${this.backgroundColor?.hash()}.${this.borderLineColor}.${this.borderLineSize}.${this.color?.hash()}.${this.font&&this.font.hash()}.${this.haloColor?.hash()}.${this.haloSize}.${this.horizontalAlignment}.${this.kerning}.${this.rightToLeft}.${this.rotated}.${this.text}.${this.verticalAlignment}.${this.width}.${this.xoffset}.${this.yoffset}.${this.lineHeight}.${this.lineWidth}.${this.angle}`}};(0,o._)([(0,a.MZ)({type:s.A,json:{write:!0}})],g.prototype,"backgroundColor",void 0),(0,o._)([(0,a.MZ)({type:s.A,json:{write:!0}})],g.prototype,"borderLineColor",void 0),(0,o._)([(0,a.MZ)({type:Number,json:{write:!0},cast:l.cr})],g.prototype,"borderLineSize",void 0),(0,o._)([(0,a.MZ)({type:c.A,json:{write:!0}})],g.prototype,"font",void 0),(0,o._)([(0,a.MZ)({...m.rM,json:{write:!0}})],g.prototype,"horizontalAlignment",void 0),(0,o._)([(0,a.MZ)({type:Boolean,json:{write:!0}})],g.prototype,"kerning",void 0),(0,o._)([(0,a.MZ)({type:s.A,json:{write:!0}})],g.prototype,"haloColor",void 0),(0,o._)([(0,a.MZ)({type:Number,cast:l.cr,json:{write:!0}})],g.prototype,"haloSize",void 0),(0,o._)([(0,a.MZ)({type:Boolean,json:{write:!0}})],g.prototype,"rightToLeft",void 0),(0,o._)([(0,a.MZ)({type:Boolean,json:{write:!0}})],g.prototype,"rotated",void 0),(0,o._)([(0,a.MZ)({type:String,json:{write:!0}})],g.prototype,"text",void 0),(0,o._)([(0,p.e)({esriTS:"text"},{readOnly:!0})],g.prototype,"type",void 0),(0,o._)([(0,a.MZ)({...m.x0,json:{write:!0}})],g.prototype,"verticalAlignment",void 0),(0,o._)([(0,a.MZ)({type:Number,cast:l.cr,json:{write:!0}})],g.prototype,"xoffset",void 0),(0,o._)([(0,a.MZ)({type:Number,cast:l.cr,json:{write:!0}})],g.prototype,"yoffset",void 0),(0,o._)([(0,a.MZ)({type:Number,json:{read:t=>t&&-1*t,write:(t,e)=>e.angle=t&&-1*t}})],g.prototype,"angle",void 0),(0,o._)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"width",void 0),(0,o._)([(0,a.MZ)({type:Number})],g.prototype,"lineWidth",void 0),(0,o._)([(0,y.K)("lineWidth")],g.prototype,"writeLineWidth",null),(0,o._)([(0,h.w)("lineWidth")],g.prototype,"castLineWidth",null),(0,o._)([(0,a.MZ)(m.Tb)],g.prototype,"lineHeight",void 0),(0,o._)([(0,y.K)("lineHeight")],g.prototype,"writeLineHeight",null),g=i=(0,o._)([(0,u.$)("esri.symbols.TextSymbol")],g);const S=g},83213:(t,e,r)=>{r.d(e,{x:()=>i,z:()=>o});const i=["begin","end","begin-end"],o=["arrow","circle","square","diamond","cross","x"]},89420:(t,e,r)=>{r.d(e,{A:()=>p});var i=r(90237),o=r(90629),s=r(10107),n=r(56507),l=(r(44208),r(87811),r(40608)),a=r(20378);let h=class extends a.A{constructor(t){super(t),this.angle=0,this.type=null,this.xoffset=0,this.yoffset=0,this.size=9}hash(){return`${this.type}.${this.angle}.${this.size}.${this.xoffset}.${this.yoffset}`}};(0,i._)([(0,s.MZ)({type:Number,json:{read:t=>t&&-1*t,write:(t,e)=>e.angle=t&&-1*t}})],h.prototype,"angle",void 0),(0,i._)([(0,s.MZ)({type:["simple-marker","picture-marker"],readOnly:!0})],h.prototype,"type",void 0),(0,i._)([(0,s.MZ)({type:Number,cast:o.cr,json:{write:!0}})],h.prototype,"xoffset",void 0),(0,i._)([(0,s.MZ)({type:Number,cast:o.cr,json:{write:!0}})],h.prototype,"yoffset",void 0),(0,i._)([(0,s.MZ)({cast:t=>"auto"===t?t:(0,n.GB)((0,o.cr)(t)),json:{write:!0}})],h.prototype,"size",void 0),h=(0,i._)([(0,l.$)("esri.symbols.MarkerSymbol")],h);const p=h},94985:(t,e,r)=>{r.d(e,{A:()=>m});var i,o=r(90237),s=r(68197),n=r(66552),l=r(4718),a=r(10107),h=(r(44208),r(53966),r(93223)),p=r(40608),u=r(65851),y=r(31593);const c=new n.J({esriSFSSolid:"solid",esriSFSNull:"none",esriSFSHorizontal:"horizontal",esriSFSVertical:"vertical",esriSFSForwardDiagonal:"forward-diagonal",esriSFSBackwardDiagonal:"backward-diagonal",esriSFSCross:"cross",esriSFSDiagonalCross:"diagonal-cross"});let d=i=class extends u.A{constructor(...t){super(...t),this.color=new s.A([0,0,0,.25]),this.outline=new y.A,this.type="simple-fill",this.style="solid"}normalizeCtorArgs(t,e,r){if(t&&"string"!=typeof t)return t;const i={};return t&&(i.style=t),e&&(i.outline=e),r&&(i.color=r),i}clone(){return new i({color:(0,l.o8)(this.color),outline:this.outline&&this.outline.clone(),style:this.style})}hash(){return`${super.hash()}${this.style}.${this.color&&this.color.hash()}`}};(0,o._)([(0,a.MZ)()],d.prototype,"color",void 0),(0,o._)([(0,a.MZ)()],d.prototype,"outline",void 0),(0,o._)([(0,h.e)({esriSFS:"simple-fill"},{readOnly:!0})],d.prototype,"type",void 0),(0,o._)([(0,a.MZ)({type:c.apiValues,json:{read:c.read,write:c.write}})],d.prototype,"style",void 0),d=i=(0,o._)([(0,p.$)("esri.symbols.SimpleFillSymbol")],d);const m=d}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5957],{18251:(e,t,r)=>{r.d(t,{A:()=>h});var n=r(90237),i=r(69540),s=r(25482),o=r(10107),a=(r(44208),r(53966),r(87811),r(93223)),l=r(40608),c=r(51850);let f=class extends(i.A.ClonableMixin(s.A)){constructor(e){super(e),this.type="local",this.origin=(0,c.vt)()}};(0,n._)([(0,a.e)({local:"local"},{readOnly:!0})],f.prototype,"type",void 0),(0,n._)([(0,o.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],f.prototype,"origin",void 0),f=(0,n._)([(0,l.$)("esri.geometry.support.MeshLocalVertexSpace")],f);const h=f},35982:(e,t,r)=>{r.d(t,{B:()=>l});var n=r(4576),i=r(36563),s=r(53966),o=r(74887),a=r(29953);class l{constructor(e,t,r,n,i={}){this._mainMethod=t,this._transferLists=r,this._listeners=[],this._promise=(0,a.ho)(e,{...i,schedule:n}).then((e=>{if(void 0===this._thread){this._thread=e,this._promise=null,i.hasInitialize&&this.broadcast({},"initialize");for(const e of this._listeners)this._connectListener(e)}else e.close()})),this._promise.catch((t=>s.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${e} worker: ${t}`)))}on(e,t){const r={removed:!1,eventName:e,callback:t,threadHandle:null};return this._listeners.push(r),this._connectListener(r),(0,i.hA)((()=>{r.removed=!0,(0,n.TF)(this._listeners,r),this._thread&&null!=r.threadHandle&&r.threadHandle.remove()}))}destroy(){this._thread&&(this._thread.close(),this._thread=null),this._promise=null,this._listeners.length=0,this._transferLists={}}invoke(e,t){return this.invokeMethod(this._mainMethod,e,t)}invokeMethod(e,t,r){if(this._thread){const n=this._transferLists[e],i=n?n(t):[];return this._thread.invoke(e,t,{transferList:i,signal:r})}return this._promise?this._promise.then((()=>((0,o.Te)(r),this.invokeMethod(e,t,r)))):Promise.reject(null)}broadcast(e,t){return this._thread?Promise.all(this._thread.broadcast(t,e)).then((()=>{})):this._promise?this._promise.then((()=>this.broadcast(e,t))):Promise.reject()}get promise(){return this._promise}_connectListener(e){this._thread&&this._thread.on(e.eventName,e.callback).then((t=>{e.removed||(e.threadHandle=t)}))}}},36233:(e,t,r)=>{r.r(t),r.d(t,{destroyContext:()=>F,dracoDecompressPointCloudData:()=>v,filterObbsForModifications:()=>B,filterObbsForModificationsSync:()=>T,initialize:()=>D,interpretObbModificationResults:()=>O,process:()=>N,project:()=>C,setLegacySchema:()=>E,setModifications:()=>L,setModificationsSync:()=>x,test:()=>z,transformNormals:()=>R});var n,i,s=r(34727),o=r(16930),a=r(95696),l=r(18251),c=r(73354);!function(e){e[e.None=0]="None",e[e.Int16=1]="Int16",e[e.Int32=2]="Int32"}(n||(n={})),function(e){e[e.Replace=0]="Replace",e[e.Outside=1]="Outside",e[e.Inside=2]="Inside",e[e.Finished=3]="Finished"}(i||(i={}));var f=r(2741);function h(e){return(0,f.s)(`esri/libs/i3s/${e}`)}let u;r(53966);var d,p,m,g,y,b,_=r(3694),A=r(51850),w=r(35982);r(57251),r(27993);class S{constructor(e,t,r,n,i,s){this.layout=e,this.interleavedVertexData=t,this.indices=r,this.hasColors=n,this.hasModifications=i,this.positionData=s}}class M{constructor(e,t,r,n,i,s,o){this.componentOffsets=e,this.featureIds=t,this.anchorIds=r,this.anchors=n,this.transformedGeometry=i,this.globalTrafo=s,this.obb=o}}async function N(e){I=await $();const t=[e.geometryBuffer];return{result:P(I,e,t),transferList:t}}async function v(e){I=await $();const t=[e.geometryBuffer],{geometryBuffer:r}=e,n=r.byteLength,i=I._malloc(n),s=new Uint8Array(I.HEAPU8.buffer,i,n);s.set(new Uint8Array(r));const o=I.dracoDecompressPointCloudData(i,s.byteLength);if(I._free(i),o.error.length>0)throw new Error(`i3s.wasm: ${o.error}`);const a=o.featureIds?.length>0?o.featureIds.slice():null,l=o.positions.slice();return a&&t.push(a.buffer),t.push(l.buffer),{result:{positions:l,featureIds:a},transferList:t}}async function B(e){await $(),T(e);const t={buffer:e.buffer};return{result:t,transferList:[t.buffer]}}async function L(e){await $(),x(e)}async function E(e){I=await $(),I.setLegacySchema(e.context,e.jsonSchema)}async function C(e){const{localMatrix:t,origin:n,positions:i,vertexSpace:s}=e,c=o.A.fromJSON(e.inSpatialReference),f=o.A.fromJSON(e.outSpatialReference);let h;const[{projectBuffer:u},{initializeProjection:d}]=await Promise.all([Promise.resolve().then(r.bind(r,9762)),Promise.resolve().then(r.bind(r,57251))]);await d(c,f);const p=[0,0,0];if(!u(n,c,0,p,f,0))throw new Error("Failed to project");if("georeferenced"===s.type&&null==s.origin){if(h=new Float64Array(i.length),!u(i,c,0,h,f,0,h.length/3))throw new Error("Failed to project")}else{const e="georeferenced"===s.type?a.A.fromJSON(s):l.A.fromJSON(s),{projectMeshVertexPositions:n}=await Promise.all([r.e(3030),r.e(4594)]).then(r.bind(r,74594)),o=n({vertexAttributes:{position:i},transform:t?{localMatrix:t}:void 0,vertexSpace:e,spatialReference:c},f);if(!o)throw new Error("Failed to project");h=o}const m=h.length,[g,y,b]=p;for(let e=0;e<m;e+=3)h[e]-=g,h[e+1]-=y,h[e+2]-=b;return{result:{projected:h,original:i,projectedOrigin:p},transferList:[h.buffer,i.buffer]}}async function R({normalMatrix:e,normals:t}){const r=new Float32Array(t.length);return(0,c.b)(r,t,e),(0,s.or)(e)&&(0,c.n)(r,r),{result:{transformed:r,original:t},transferList:[r.buffer,t.buffer]}}function F(e){k(e)}let U,I;function x(e){if(!I)return;const t=e.modifications,r=I._malloc(8*t.length),n=new Float64Array(I.HEAPU8.buffer,r,t.length);for(let e=0;e<t.length;++e)n[e]=t[e];I.setModifications(e.context,r,t.length,e.isGeodetic),I._free(r)}function P(e,t,r){const{context:i,globalTrafo:s,mbs:o,obbData:a,elevationOffset:l,geometryBuffer:c,geometryDescriptor:f,indexToVertexProjector:h,vertexToRenderProjector:u}=t,d=e._malloc(c.byteLength),p=e._malloc(33*Float64Array.BYTES_PER_ELEMENT),m=new Uint8Array(e.HEAPU8.buffer,d,c.byteLength);m.set(new Uint8Array(c));const g=new Float64Array(e.HEAPU8.buffer,p,33);j(g,[NaN,NaN,NaN]);let y=g.byteOffset+3*g.BYTES_PER_ELEMENT,b=new Float64Array(g.buffer,y);j(b,s),y+=16*g.BYTES_PER_ELEMENT,b=new Float64Array(g.buffer,y),j(b,o),y+=4*g.BYTES_PER_ELEMENT,a&&(b=new Float64Array(g.buffer,y),j(b,a));const _=f,A={isDraco:!1,isLegacy:!1,color:t.layouts.some((e=>e.some((e=>"color"===e.name)))),normal:t.needNormals&&t.layouts.some((e=>e.some((e=>"normalCompressed"===e.name)))),uv0:t.layouts.some((e=>e.some((e=>"uv0"===e.name)))),uvRegion:t.layouts.some((e=>e.some((e=>"uvRegion"===e.name)))),featureIndex:_.featureIndex},w=e.process(i,!!t.obbData,d,m.byteLength,_,A,p,l,h,u,t.normalReferenceFrame);if(e._free(p),e._free(d),w.error.length>0)throw new Error(`i3s.wasm: ${w.error}`);if(w.discarded)return null;const N=w.componentOffsets.length>0?w.componentOffsets.slice():null,v=w.featureIds.length>0?w.featureIds.slice():null,B=w.anchorIds.length>0?Array.from(w.anchorIds):null,L=w.anchors.length>0?Array.from(w.anchors):null,E=w.interleavedVertedData.slice().buffer,C=w.indicesType===n.Int16?new Uint16Array(w.indices.buffer,w.indices.byteOffset,w.indices.byteLength/2).slice():new Uint32Array(w.indices.buffer,w.indices.byteOffset,w.indices.byteLength/4).slice(),R=w.positions.slice(),{buffer:F,byteOffset:U,byteLength:I}=w.positionIndices,x=w.positionIndicesType===n.Int16?new Uint16Array(F,U,I/2).slice():new Uint32Array(F,U,I/4).slice(),P=new S(t.layouts[0],E,C,w.hasColors,w.hasModifications,{data:R,indices:x});return v&&r.push(v.buffer),N&&r.push(N.buffer),r.push(E),r.push(C.buffer),r.push(R.buffer),r.push(x.buffer),new M(N,v,B,L,P,s,w.obb)}function O(e){return 0===e?p.Unmodified:1===e?p.PotentiallyModified:2===e?p.Culled:p.Unknown}function T(e){if(!I)return;const{context:t,buffer:r}=e,n=I._malloc(r.byteLength),i=r.byteLength/Float64Array.BYTES_PER_ELEMENT,s=new Float64Array(I.HEAPU8.buffer,n,i),o=new Float64Array(r);s.set(o),I.filterOBBs(t,n,i),o.set(s),I._free(n)}function k(e){I&&0===I.destroy(e)&&(I=null)}function j(e,t){for(let r=0;r<t.length;++r)e[r]=t[r]}async function D(){I||await $()}async function $(){return I||(I=await(U??=(u||(u=new Promise((e=>r.e(2980).then(r.bind(r,82980)).then((e=>e.i)).then((({default:t})=>{const r=t({locateFile:h,onRuntimeInitialized:()=>e(r)});delete r.then})))).catch((e=>{throw e}))),u))),I}w.B,new _.A({deallocator:null}),(0,A.vt)(),r(91829),r(97937),r(4654),(b=d||(d={}))[b.Unmodified=0]="Unmodified",b[b.Culled=1]="Culled",b[b.NotChecked=2]="NotChecked",function(e){e[e.Unmodified=0]="Unmodified",e[e.PotentiallyModified=1]="PotentiallyModified",e[e.Culled=2]="Culled",e[e.Unknown=3]="Unknown",e[e.NotChecked=4]="NotChecked"}(p||(p={})),function(e){e[e.Unknown=0]="Unknown",e[e.Uncached=1]="Uncached",e[e.Cached=2]="Cached"}(m||(m={})),function(e){e[e.None=0]="None",e[e.MaxScreenThreshold=1]="MaxScreenThreshold",e[e.ScreenSpaceRelative=2]="ScreenSpaceRelative",e[e.RemovedFeatureDiameter=3]="RemovedFeatureDiameter",e[e.DistanceRangeFromDefaultCamera=4]="DistanceRangeFromDefaultCamera"}(g||(g={})),function(e){e[e.Hole=0]="Hole",e[e.Leaf=1]="Leaf"}(y||(y={}));const z={transform:(e,t)=>I&&P(I,e,t),destroy:k}},68197:(e,t,r)=>{r.d(t,{A:()=>h});var n,i,s=r(40876),o=r(34727),a=r(56507);function l(e){return(0,o.qE)((0,a.Vr)(e),0,255)}function c(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}function f(e,t){const r=e.toString(16).padStart(2,"0");return t?r.slice(0,1):r}class h{static blendColors(e,t,r,n=new h){return n.r=Math.round(e.r+(t.r-e.r)*r),n.g=Math.round(e.g+(t.g-e.g)*r),n.b=Math.round(e.b+(t.b-e.b)*r),n.a=e.a+(t.a-e.a)*r,n._sanitize()}static fromRgb(e,t){const r=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(r){const e=r[2].split(/\s*,\s*/),n=r[1];if("rgb"===n&&3===e.length||"rgba"===n&&4===e.length){const r=e[0];if("%"===r.charAt(r.length-1)){const r=e.map((e=>2.56*parseFloat(e)));return 4===e.length&&(r[3]=parseFloat(e[3])),h.fromArray(r,t)}return h.fromArray(e.map((e=>parseFloat(e))),t)}if("hsl"===n&&3===e.length||"hsla"===n&&4===e.length)return h.fromArray((0,s.z$)(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3])),t)}return null}static fromHex(e,t=new h){if("#"!==e[0]||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{const r=parseInt(e.slice(1,2),16),n=parseInt(e.slice(2,3),16),i=parseInt(e.slice(3,4),16),s=5===e.length?15:parseInt(e.slice(4),16);return h.fromArray([r+16*r,n+16*n,i+16*i,(s+16*s)/255],t)}case 7:case 9:{const r=parseInt(e.slice(1,3),16),n=parseInt(e.slice(3,5),16),i=parseInt(e.slice(5,7),16),s=7===e.length?255:parseInt(e.slice(7),16);return h.fromArray([r,n,i,s/255],t)}default:return null}}static fromArray(e,t=new h){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const r=(0,s.V6)(e)?(0,s.TS)(e):null;return r&&h.fromArray(r,t)||h.fromRgb(e,t)||h.fromHex(e,t)}static fromJSON(e){return null!=e?new h([e[0],e[1],e[2],(e[3]??255)/255]):void 0}static toUnitRGB(e){return null!=e?[e.r/255,e.g/255,e.b/255]:null}static toUnitRGBA(e){return null!=e?[e.r/255,e.g/255,e.b/255,null!=e.a?e.a:1]:null}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){return"string"==typeof e?h.fromString(e,this):Array.isArray(e)?h.fromArray(e,this):(this._set(e.r??0,e.g??0,e.b??0,e.a??1),e instanceof h||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){const t=e?.capitalize??!1,r=e?.digits??6,n=3===r||4===r,i=4===r||8===r,s=`#${f(this.r,n)}${f(this.g,n)}${f(this.b,n)}${i?f(Math.round(255*this.a),n):""}`;return t?s.toUpperCase():s}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=h.AlphaMode.ALWAYS){const t=l(this.r),r=l(this.g),n=l(this.b);return e===h.AlphaMode.ALWAYS||1!==this.a?[t,r,n,l(255*this.a)]:[t,r,n]}clone(){return new h(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=Math.round(c(this.r,0,255)),this.g=Math.round(c(this.g,0,255)),this.b=Math.round(c(this.b,0,255)),this.a=c(this.a,0,1),this}_set(e,t,r,n){this.r=e,this.g=t,this.b=r,this.a=n}}h.prototype.declaredClass="esri.Color",(i=(n=h).AlphaMode||(n.AlphaMode={}))[i.ALWAYS=0]="ALWAYS",i[i.UNLESS_OPAQUE=1]="UNLESS_OPAQUE"},73354:(e,t,r)=>{r.d(t,{a:()=>h,b:()=>a,c:()=>o,d:()=>i,e:()=>u,f:()=>f,l:()=>c,n:()=>d,t:()=>s});var n=r(40876);function i(e,t,r){s(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function s(e,t,r,n=3,i=n){if(e.length/n!==Math.ceil(t.length/i))return e;const s=e.length/n,o=r[0],a=r[1],l=r[2],c=r[4],f=r[5],h=r[6],u=r[8],d=r[9],p=r[10],m=r[12],g=r[13],y=r[14];let b=0,_=0;for(let r=0;r<s;r++){const r=t[b],s=t[b+1],A=t[b+2];e[_]=o*r+c*s+u*A+m,e[_+1]=a*r+f*s+d*A+g,e[_+2]=l*r+h*s+p*A+y,b+=i,_+=n}return e}function o(e,t,r){a(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function a(e,t,r,n=3,i=n){if(e.length/n!==Math.ceil(t.length/i))return;const s=e.length/n,o=r[0],a=r[1],l=r[2],c=r[3],f=r[4],h=r[5],u=r[6],d=r[7],p=r[8];let m=0,g=0;for(let r=0;r<s;r++){const r=t[m],s=t[m+1],y=t[m+2];e[g]=o*r+c*s+u*y,e[g+1]=a*r+f*s+d*y,e[g+2]=l*r+h*s+p*y,m+=i,g+=n}}function l(e,t,r,n=3,i=n){const s=Math.min(e.length/n,t.length/i);let o=0,a=0;for(let l=0;l<s;l++)e[a]=r*t[o],e[a+1]=r*t[o+1],e[a+2]=r*t[o+2],o+=i,a+=n;return e}function c(e,t,r,n){f(e.typedBuffer,t.typedBuffer,r,n,e.typedBufferStride,t.typedBufferStride)}function f(e,t,r,i,s=3,o=s){const a=Math.min(e.length/s,t.length/o);let l=0,c=0;const f=1/n.Tf;for(let n=0;n<a;n++)e[c]=i*(r*t[l])**f,e[c+1]=i*(r*t[l+1])**f,e[c+2]=i*(r*t[l+2])**f,l+=o,c+=s}function h(e,t,r,n=3,i=n){const s=e.length/n;if(s!==Math.ceil(t.length/i))return e;let o=0,a=0;for(let l=0;l<s;l++)e[a]=t[o]+r[0],e[a+1]=t[o+1]+r[1],e[a+2]=t[o+2]+r[2],o+=i,a+=n;return e}function u(e,t){d(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function d(e,t,r=3,n=r){const i=Math.min(e.length/r,t.length/n);let s=0,o=0;for(let a=0;a<i;a++){const i=t[s],a=t[s+1],l=t[s+2],c=i*i+a*a+l*l;if(c>0){const t=1/Math.sqrt(c);e[o]=t*i,e[o+1]=t*a,e[o+2]=t*l}s+=n,o+=r}}r(44208),r(53966),Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:f,linearToSRGBView:c,normalize:d,normalizeView:u,scale:l,scaleView:function(e,t,r){l(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)},shiftRight:function(e,t,r){const n=Math.min(e.count,t.count),i=e.typedBuffer,s=e.typedBufferStride,o=t.typedBuffer,a=t.typedBufferStride;let l=0,c=0;for(let e=0;e<n;e++)i[c]=o[l]>>r,i[c+1]=o[l+1]>>r,i[c+2]=o[l+2]>>r,l+=a,c+=s},transformMat3:a,transformMat3View:o,transformMat4:s,transformMat4View:i,translate:h},Symbol.toStringTag,{value:"Module"}))},95696:(e,t,r)=>{r.d(t,{A:()=>h});var n,i=r(90237),s=r(69540),o=r(25482),a=r(10107),l=(r(44208),r(53966),r(87811),r(93223)),c=r(40608);let f=class extends(s.A.ClonableMixin(o.A)){static{n=this}constructor(e){super(e),this.type="georeferenced",this.origin=null}static{this.absolute=new n}};(0,i._)([(0,l.e)({georeferenced:"georeferenced"},{readOnly:!0})],f.prototype,"type",void 0),(0,i._)([(0,a.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],f.prototype,"origin",void 0),f=n=(0,i._)([(0,c.$)("esri.geometry.support.MeshGeoreferencedVertexSpace")],f);const h=f}}]);
|