@arcgis/core 6.0.0-next.56 → 6.0.0-next.58
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/WebLinkChart.d.ts +0 -12
- package/WebLinkChart.js +1 -1
- package/applications/Components/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
- package/applications/WebEditor/sketchUtils.js +1 -1
- package/arcade/arcadeCompiler.js +5 -5
- package/arcade/containerUtils.js +1 -1
- package/arcade/featureset/actions/Adapted.js +1 -1
- package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
- package/arcade/featureset/sources/FeatureLayerMemory.js +1 -1
- package/arcade/featureset/support/shared.js +1 -1
- package/arcade/featureset/support/sqlUtils.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/00c227bcecc28fe278bb.js +1 -0
- package/assets/esri/core/workers/chunks/075e6c60e741482e673f.js +1 -0
- package/assets/esri/core/workers/chunks/076c2098570ee885d117.js +1 -0
- package/assets/esri/core/workers/chunks/091ce6b3de590e1d9ff6.js +1 -0
- package/assets/esri/core/workers/chunks/099dec4103f6e7556eb0.js +1 -0
- package/assets/esri/core/workers/chunks/{77267e0807cbbc00496d.js → 0be55d9bab7c3510a7f2.js} +1 -1
- package/assets/esri/core/workers/chunks/{da69e8cd52aa77aa4c2c.js → 0fc1facd26c9ef96e081.js} +1 -1
- package/assets/esri/core/workers/chunks/{f97dc99afe3375fc8e16.js → 1179a3574c580f7ce390.js} +1 -1
- package/assets/esri/core/workers/chunks/129140104be2620c0382.js +1 -0
- package/assets/esri/core/workers/chunks/1295fcf866e7347b2d53.js +1 -0
- package/assets/esri/core/workers/chunks/16219f0c56d6f6213c24.js +1 -0
- package/assets/esri/core/workers/chunks/185b317eec95f3370970.js +1 -0
- package/assets/esri/core/workers/chunks/1afc8820c283ef785729.js +1 -0
- package/assets/esri/core/workers/chunks/1bdef2e142e78341fec0.js +1 -0
- package/assets/esri/core/workers/chunks/1c874f86bfd0963aa3d2.js +1 -0
- package/assets/esri/core/workers/chunks/1ce0bf4ff14af8a68a5c.js +1 -0
- package/assets/esri/core/workers/chunks/1f1515313baeecc095a2.js +1 -0
- package/assets/esri/core/workers/chunks/1f710c91a82f6fd3d0f6.js +1 -0
- package/assets/esri/core/workers/chunks/{1894c39dabc78e7a5af8.js → 1fad7a7211bb8c9b58e3.js} +1 -1
- package/assets/esri/core/workers/chunks/24374aaa6fb3e12960d1.js +1 -0
- package/assets/esri/core/workers/chunks/24aa7b81814b4e519b01.js +1 -0
- package/assets/esri/core/workers/chunks/294097140e349e073b7e.js +1 -0
- package/assets/esri/core/workers/chunks/{c8c79d21dfce5695a089.js → 2b69fdf51b6f0b2abb75.js} +1 -1
- package/assets/esri/core/workers/chunks/2ba9b3b4d49eb2740a42.js +1 -0
- package/assets/esri/core/workers/chunks/2eb3297014f063fb4bc9.js +1 -0
- package/assets/esri/core/workers/chunks/2eb3cec44ce7587980a4.js +1 -0
- package/assets/esri/core/workers/chunks/2ee3cd6b2e5274932d31.js +1 -0
- package/assets/esri/core/workers/chunks/2f31766bc0f9d1d70c5a.js +1 -0
- package/assets/esri/core/workers/chunks/31df02c6f5b04a143ae6.js +1 -0
- package/assets/esri/core/workers/chunks/32d5aae2e0953420216a.js +1 -0
- package/assets/esri/core/workers/chunks/35109db6a6be66f895f7.js +1 -0
- package/assets/esri/core/workers/chunks/373b140f92eda3857f82.js +1 -0
- package/assets/esri/core/workers/chunks/3a1510650ce8de7edec8.js +1 -0
- package/assets/esri/core/workers/chunks/3b0933cea2a902a26bb7.js +1 -0
- package/assets/esri/core/workers/chunks/3d96676b94e8ecb6a4d1.js +1 -0
- package/assets/esri/core/workers/chunks/3edfd8ecf000b00a4a92.js +1 -0
- package/assets/esri/core/workers/chunks/3fc4b7d0ee460fc96176.js +1 -0
- package/assets/esri/core/workers/chunks/{f053cbfe671bd14c7d5b.js → 419d8116d8e7faccfed5.js} +1 -1
- package/assets/esri/core/workers/chunks/41d57b45cc2361305af3.js +1 -0
- package/assets/esri/core/workers/chunks/42ee1f8732e644371ea9.js +1 -0
- package/assets/esri/core/workers/chunks/4309f3e72c6332e01d75.js +1 -0
- package/assets/esri/core/workers/chunks/44ca7a56fb28227fdcbf.js +1 -0
- package/assets/esri/core/workers/chunks/4537f0866e903d2e9bb9.js +1 -0
- package/assets/esri/core/workers/chunks/49f61832e0d3b24e1608.js +1 -0
- package/assets/esri/core/workers/chunks/4a45505fb9a40b503672.js +29 -0
- package/assets/esri/core/workers/chunks/4b456c1f26d70392f7d4.js +1 -0
- package/assets/esri/core/workers/chunks/{28fae7da8cc4ae7a83e4.js → 4c510b1caffeec80dc6b.js} +1 -1
- package/assets/esri/core/workers/chunks/4ce5c9b658ba79a0b668.js +1 -0
- package/assets/esri/core/workers/chunks/{41694ee8990e799da225.js → 4d8f23b2e6721fb5b289.js} +1 -1
- package/assets/esri/core/workers/chunks/4fb8708666a614df583d.js +1 -0
- package/assets/esri/core/workers/chunks/4feec96a312dcc137911.js +1 -0
- package/assets/esri/core/workers/chunks/52ad9306fd40d488376d.js +1 -0
- package/assets/esri/core/workers/chunks/5375bdf46b602b19fa86.js +1 -0
- package/assets/esri/core/workers/chunks/549a8e7313f75ea3f85b.js +1 -0
- package/assets/esri/core/workers/chunks/55f97942c58455f47975.js +1 -0
- package/assets/esri/core/workers/chunks/566d72534d694c318e30.js +1 -0
- package/assets/esri/core/workers/chunks/5ce00674305e5716d27b.js +1 -0
- package/assets/esri/core/workers/chunks/5e032d209df500fad321.js +1 -0
- package/assets/esri/core/workers/chunks/{dfa1b0308e5e82d1ddfe.js → 5e4de4ddd3bdc74100e0.js} +34 -33
- package/assets/esri/core/workers/chunks/5ea8cdc28a81744913cd.js +1 -0
- package/assets/esri/core/workers/chunks/61565d4674cf77cbf1dd.js +1 -0
- package/assets/esri/core/workers/chunks/651e33be8bb3995d749f.js +1 -0
- package/assets/esri/core/workers/chunks/{d296c9561f6a6aeff973.js → 68b8dff748f1ef588653.js} +1 -1
- package/assets/esri/core/workers/chunks/690041373d03d02a3044.js +1 -0
- package/assets/esri/core/workers/chunks/{6d99e7e1aa007a6f1039.js → 69316db52d7bed746879.js} +1 -1
- package/assets/esri/core/workers/chunks/69384a9703abee1903c5.js +1 -0
- package/assets/esri/core/workers/chunks/6992a7728451c5a7b673.js +1 -0
- package/assets/esri/core/workers/chunks/69e5efe1acbdaddee90d.js +1 -0
- package/assets/esri/core/workers/chunks/6b2e09e43f449020d5ad.js +1 -0
- package/assets/esri/core/workers/chunks/6b5f8bf8b3480910666d.js +1 -0
- package/assets/esri/core/workers/chunks/70fe8b90f174ec64db2e.js +1 -0
- package/assets/esri/core/workers/chunks/720356fc6d5e18008471.js +1 -0
- package/assets/esri/core/workers/chunks/721f43554b9654481de7.js +1 -0
- package/assets/esri/core/workers/chunks/{3869ea1be105eaad4a38.js → 7328aca34c95fd0fc752.js} +1 -1
- package/assets/esri/core/workers/chunks/789567124c4a15235952.js +1 -0
- package/assets/esri/core/workers/chunks/{a24dc5350af001db417a.js → 7affab0d0692bdb76036.js} +1 -1
- package/assets/esri/core/workers/chunks/{b6e628b5d2643af4c19b.js → 7b4063f45b45ad8a7289.js} +1 -1
- package/assets/esri/core/workers/chunks/7c22d3669087f38c92b9.js +1 -0
- package/assets/esri/core/workers/chunks/7cb7bdc30f970eb9ff7f.js +1 -0
- package/assets/esri/core/workers/chunks/7d71cf65bbc1b3308856.js +1 -0
- package/assets/esri/core/workers/chunks/81cdb9705f7eee9e792f.js +1 -0
- package/assets/esri/core/workers/chunks/821003fe1be30d5d29aa.js +1 -0
- package/assets/esri/core/workers/chunks/822b9c1e172c835b9624.js +1 -0
- package/assets/esri/core/workers/chunks/{a7dfca326883384d2751.js → 823228f1fa6ba4e8bff2.js} +1 -1
- package/assets/esri/core/workers/chunks/84021d57822f374217ef.js +1 -0
- package/assets/esri/core/workers/chunks/847ec6b337cfb2e4a15b.js +1 -0
- package/assets/esri/core/workers/chunks/84f41ddd7366bfbf5b25.js +1 -0
- package/assets/esri/core/workers/chunks/8920d0b11951b57d6a66.js +1 -0
- package/assets/esri/core/workers/chunks/{c6e7c95391a54978402b.js → 893363ee500fc1288781.js} +1 -1
- package/assets/esri/core/workers/chunks/8b0cdbbf5c81283eae13.js +1 -0
- package/assets/esri/core/workers/chunks/{7850e306d7cd12653b23.js → 90de2f93b0ba1eb337fd.js} +1 -1
- package/assets/esri/core/workers/chunks/91b0035e3eae9e452fbc.js +1 -0
- package/assets/esri/core/workers/chunks/92d97e0fcc20dd5f5ac4.js +1 -0
- package/assets/esri/core/workers/chunks/93262d3616ac0cc4b532.js +1 -0
- package/assets/esri/core/workers/chunks/9748a0db6451336d51ef.js +1 -0
- package/assets/esri/core/workers/chunks/{69a09c6acb5ae03c67f6.js → 985ce51da8ae4984a4db.js} +1 -1
- package/assets/esri/core/workers/chunks/9bbff9230298b1bac46a.js +1 -0
- package/assets/esri/core/workers/chunks/9ca84fa9423654061d05.js +1 -0
- package/assets/esri/core/workers/chunks/9cae59db5b9cb37baea9.js +1 -0
- package/assets/esri/core/workers/chunks/{ed2626a895ca1d4a7216.js → 9dbb9e74754392b066a8.js} +1 -1
- package/assets/esri/core/workers/chunks/9dd3863b9d7c1a5ea20a.js +1 -0
- package/assets/esri/core/workers/chunks/9e62cfcb4e0188d51294.js +1 -0
- package/assets/esri/core/workers/chunks/a2a3edec2ee31273d609.js +1 -0
- package/assets/esri/core/workers/chunks/{d0e8d0f8b4e4cc13e837.js → a301aa62a03d3618eba9.js} +1 -1
- package/assets/esri/core/workers/chunks/a39d595fc11afedc1875.js +1 -0
- package/assets/esri/core/workers/chunks/a57b506c538e2186909d.js +1 -0
- package/assets/esri/core/workers/chunks/a722114f01e66a608cec.js +1 -0
- package/assets/esri/core/workers/chunks/{5bda285f6ecf725676b3.js → a7b4821fd3080cf2756f.js} +1 -1
- package/assets/esri/core/workers/chunks/a8d91c2654c5012400b4.js +1 -0
- package/assets/esri/core/workers/chunks/aa70d98e6bcbd06a8461.js +1 -0
- package/assets/esri/core/workers/chunks/add538f52c7bcfd154da.js +1 -0
- package/assets/esri/core/workers/chunks/ae0b0a562f0ab57e1883.js +1 -0
- package/assets/esri/core/workers/chunks/b10c534cbe311d17b7d5.js +1 -0
- package/assets/esri/core/workers/chunks/b2c3652c8ce9597dcf89.js +1 -0
- package/assets/esri/core/workers/chunks/b725d944ecd5da02fd9e.js +1 -0
- package/assets/esri/core/workers/chunks/b7fbbbeabaa5bfcdeabc.js +1 -0
- package/assets/esri/core/workers/chunks/{70ead4c231cba4084cf4.js → b856ef3a949ca06a4af5.js} +1 -1
- package/assets/esri/core/workers/chunks/{ae2cd50c2b938b39417b.js → b8b4f68305a4f654fa75.js} +1 -1
- package/assets/esri/core/workers/chunks/{97107e64407fa6825620.js → ba324fd300b6e6a584ae.js} +1 -1
- package/assets/esri/core/workers/chunks/bc40b96080346b91e507.js +1 -0
- package/assets/esri/core/workers/chunks/c5ca8245113576b35acc.js +1 -0
- package/assets/esri/core/workers/chunks/{c7a0c4ca37ebd1d98cf1.js → c629a676b707138e7a1c.js} +1 -1
- package/assets/esri/core/workers/chunks/c8a1aa90ec6d455ff82d.js +1 -0
- package/assets/esri/core/workers/chunks/c8dd8b67100177109619.js +1 -0
- package/assets/esri/core/workers/chunks/c8eb8744f1ed9d1897dc.js +1 -0
- package/assets/esri/core/workers/chunks/cb0e3614b78c78040662.js +1 -0
- package/assets/esri/core/workers/chunks/ccc89208aad7206aabd9.js +1 -0
- package/assets/esri/core/workers/chunks/cebd6732fe573f79849c.js +1 -0
- package/assets/esri/core/workers/chunks/d22e3b5d836dffdf91cc.js +1 -0
- package/assets/esri/core/workers/chunks/{c5ddf8b347c31fe772a3.js → d45769f8a02abe5d2917.js} +1 -1
- package/assets/esri/core/workers/chunks/d4b62e78bb27272a5f83.js +1 -0
- package/assets/esri/core/workers/chunks/d52b2a591e5e6abaa133.js +1 -0
- package/assets/esri/core/workers/chunks/{0978e12dd6a1cbc50b80.js → d572b125bed40a4d02b1.js} +1 -1
- package/assets/esri/core/workers/chunks/d65206fea850b1fc0712.js +1 -0
- package/assets/esri/core/workers/chunks/d6a42c936ead00ab7ad4.js +1 -0
- package/assets/esri/core/workers/chunks/d77887edc10d5be39ac9.js +1 -0
- package/assets/esri/core/workers/chunks/d7b9c16fe73f50a41099.js +1 -0
- package/assets/esri/core/workers/chunks/{7b6fd287e7043ad50f4e.js → d9bf0be2323e9df55834.js} +1 -1
- package/assets/esri/core/workers/chunks/dab98890d77a6b0b2741.js +1 -0
- package/assets/esri/core/workers/chunks/e2ac387e154d68fd10ca.js +1 -0
- package/assets/esri/core/workers/chunks/e39259ff441fb67cd3e4.js +1 -0
- package/assets/esri/core/workers/chunks/e3c152eeaa1c95f0f2d2.js +1 -0
- package/assets/esri/core/workers/chunks/e42e9dd3c933f5f864ab.js +1 -0
- package/assets/esri/core/workers/chunks/e4ae0fad312467f218df.js +1 -0
- package/assets/esri/core/workers/chunks/e50cc686db878d0a9399.js +1 -0
- package/assets/esri/core/workers/chunks/e7cd5eeb15d3783f803d.js +1 -0
- package/assets/esri/core/workers/chunks/e8042584e422044ca1d1.js +1 -0
- package/assets/esri/core/workers/chunks/e89640667b71c1bb4ee3.js +1 -0
- package/assets/esri/core/workers/chunks/e9649aa2d0fdd28d91ac.js +1 -0
- package/assets/esri/core/workers/chunks/ee31801144602ce816d3.js +1 -0
- package/assets/esri/core/workers/chunks/eff8a1a880e0eb1a6814.js +1 -0
- package/assets/esri/core/workers/chunks/f2b7c61462f530d812c4.js +1 -0
- package/assets/esri/core/workers/chunks/f56404d401dfbce29473.js +1 -0
- package/assets/esri/core/workers/chunks/f87416f2aa791cd1bebe.js +1 -0
- package/assets/esri/core/workers/chunks/{f3744b12a5d0d8ca8621.js → fa65aafac2b99478c32a.js} +1 -1
- package/assets/esri/core/workers/chunks/fb14a0c8d2edf868838c.js +1 -0
- package/assets/esri/core/workers/chunks/fb8a24aa04bd2fa43241.js +1 -0
- package/assets/esri/core/workers/chunks/fbb27d2cef962f725180.js +1 -0
- package/assets/esri/core/workers/chunks/{3c6e7dcb79d13e8aecc5.js → fc965ace82bef4c6111b.js} +1 -1
- package/assets/esri/core/workers/chunks/{5954f02c3901b28d8e73.js → fd9382e5207b6da74b91.js} +1 -1
- package/assets/esri/core/workers/chunks/fdb370546be4ad552959.js +1 -0
- package/assets/esri/core/workers/chunks/fefac70ebe29dff54b4c.js +1 -0
- package/chunks/BlurEmission.glsl.js +4 -17
- package/chunks/Bufferer-CclWhXVb.js +1 -1
- package/chunks/ColorMaterial.glsl.js +1 -1
- package/chunks/Component.glsl.js +2 -1
- package/chunks/EmissionComposite.glsl.js +2 -2
- package/chunks/Envelope.js +1 -1
- package/chunks/Envelope2D.js +1 -1
- package/chunks/Fog.glsl.js +3 -3
- package/chunks/GeodeticDistanceCalculator-zRp89-dW.js +1 -1
- package/chunks/GlobalIllumination.glsl.js +12 -11
- package/chunks/GlobalIlluminationBlur.glsl.js +6 -4
- package/chunks/ImageMaterial.glsl.js +1 -1
- package/chunks/LineMarker.glsl.js +2 -2
- package/chunks/MultiPathImpl.js +1 -1
- package/chunks/OperatorGeodesicBuffer.js +1 -1
- package/chunks/OperatorGeodeticArea.js +1 -1
- package/chunks/OperatorShapePreservingProject.js +1 -1
- package/chunks/Point2D.js +1 -1
- package/chunks/RealisticAtmosphere.glsl.js +7 -9
- package/chunks/RealisticAtmosphereCompositing.glsl.js +6 -10
- package/chunks/RibbonLine.glsl.js +2 -2
- package/chunks/Terrain.glsl.js +28 -27
- package/chunks/UPCPointRenderer.glsl.js +100 -0
- package/chunks/UnitFactory.js +1 -1
- package/chunks/Water.glsl.js +25 -24
- package/chunks/arcade.js +1 -1
- package/chunks/arcgis-knowledge-client-core-simd.js +4 -4
- package/chunks/arcgis-knowledge-client-core.js +4 -4
- package/chunks/array.js +1 -1
- package/chunks/basis_encoder.js +3 -3
- package/chunks/basis_transcoder.js +2 -2
- package/chunks/draco_mesh_decoder.js +2 -2
- package/chunks/dxt_encoder.js +3 -3
- package/chunks/i3s.js +2 -2
- package/chunks/languageUtils.js +1 -1
- package/chunks/lclayout.js +3 -3
- package/chunks/lerc-wasm.js +1 -1
- package/chunks/lyr3DWorker.js +2 -2
- package/chunks/pe.js +1 -1
- package/chunks/projector.js +1 -1
- package/chunks/qb3-wasm.js +1 -1
- package/chunks/vxlLayer.js +2 -2
- package/colorUtils.js +1 -1
- package/config.js +1 -1
- package/core/AsyncUpdate.js +1 -1
- package/core/Clonable.js +1 -1
- package/core/Identifiable.js +1 -1
- package/core/Loadable.js +1 -1
- package/core/MultiOriginJSONSupport.js +1 -1
- package/core/NumericIdentifiable.js +1 -1
- package/core/Promise.js +1 -1
- package/core/ReadOnlyMultiOriginJSONSupport.js +1 -1
- package/core/accessorSupport/metadata.js +1 -1
- package/core/accessorSupport/trackingUtils.js +1 -1
- package/core/asyncUtils.js +1 -1
- package/core/handleUtils.js +1 -1
- package/core/mapCollectionUtils.js +1 -1
- package/core/memoryEstimations.js +1 -1
- package/core/reactiveUtils.js +1 -1
- package/core/sql/SqlTimestampOffset.js +1 -1
- package/core/sql/WhereClause.js +1 -1
- package/core/sql/WhereGrammar.js +1 -1
- package/core/sql/writeUtils.js +1 -1
- package/core/sql.js +1 -1
- package/core/urlUtils.js +1 -1
- package/core/workers/workers.js +1 -1
- package/geohash/GeohashCell.js +1 -1
- package/geohash/GeohashTree.js +1 -1
- package/geometry/coordinateConversion/CoordinateConversionModel.d.ts +11 -56
- package/geometry/coordinateConversion/support/Conversion.d.ts +5 -17
- package/geometry/coordinateConversion/support/Format.d.ts +6 -30
- package/geometry/coordinateConversion/types.d.ts +15 -15
- package/geometry/operators/reshapeOperator.js +1 -1
- package/geometry/support/MeshMaterial.js +1 -1
- package/geometry/support/MeshMaterialMetallicRoughness.js +1 -1
- package/geometry/support/meshUtils/elevationSampler.js +1 -1
- package/graphic/AggregateGraphicOrigin.js +1 -1
- package/graphic/AnnotationFeatureGraphicOrigin.js +1 -1
- package/graphic/BuildingGraphicOrigin.js +1 -1
- package/graphic/CSVGraphicOrigin.js +1 -1
- package/graphic/CatalogGraphicOrigin.js +1 -1
- package/graphic/DimensionFeatureGraphicOrigin.js +1 -1
- package/graphic/FeatureGraphicOrigin.js +1 -1
- package/graphic/GeoJSONGraphicOrigin.js +1 -1
- package/graphic/GeoRSSGraphicOrigin.js +1 -1
- package/graphic/ImageryGraphicOrigin.js +1 -1
- package/graphic/ImageryTileGraphicOrigin.js +1 -1
- package/graphic/KMLGraphicOrigin.js +1 -1
- package/graphic/KnowledgeGraphGraphicOrigin.js +1 -1
- package/graphic/LinkChartGraphicOrigin.js +1 -1
- package/graphic/MapImageGraphicOrigin.js +1 -1
- package/graphic/MapNotesGraphicOrigin.js +1 -1
- package/graphic/OGCFeatureGraphicOrigin.js +1 -1
- package/graphic/OrientedImageryGraphicOrigin.js +1 -1
- package/graphic/ParquetGraphicOrigin.js +1 -1
- package/graphic/PointCloudGraphicOrigin.js +1 -1
- package/graphic/SceneGraphicOrigin.js +1 -1
- package/graphic/SketchGraphicOrigin.js +1 -1
- package/graphic/StreamGraphicOrigin.js +1 -1
- package/graphic/SubtypeGroupGraphicOrigin.js +1 -1
- package/graphic/TileGraphicOrigin.js +1 -1
- package/graphic/TrackGraphicOrigin.js +1 -1
- package/graphic/VectorTileGraphicOrigin.js +1 -1
- package/graphic/VoxelGraphicOrigin.js +1 -1
- package/graphic/WCSGraphicOrigin.js +1 -1
- package/graphic/WFSGraphicOrigin.js +1 -1
- package/graphic/getLayerViewLayer.js +2 -0
- package/identity/IdentityManagerBase.js +1 -1
- package/interfaces.d.ts +0 -1
- package/kernel.js +1 -1
- package/layers/ElevationLayer.js +1 -1
- package/layers/LinkChartLayer.d.ts +1 -1
- package/layers/LinkChartLayer.js +1 -1
- package/layers/Lyr3DWasmPerSceneView.js +1 -1
- package/layers/PointCloudLayer.js +3 -3
- package/layers/VectorTileLayer.d.ts +17 -10
- package/layers/VoxelWasmPerSceneView.js +1 -1
- package/layers/WMTSLayer.js +1 -1
- package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
- package/layers/graphics/dehydratedFeatures.js +1 -1
- package/layers/graphics/transferFeatures.js +1 -1
- package/layers/knowledgeGraph/KnowledgeGraphSublayerBase.js +1 -1
- package/layers/mixins/APIKeyMixin.js +1 -1
- package/layers/mixins/ArcGISCachedService.js +1 -1
- package/layers/mixins/ArcGISImageService.js +1 -1
- package/layers/mixins/ArcGISMapService.js +1 -1
- package/layers/mixins/ArcGISService.js +1 -1
- package/layers/mixins/BlendLayer.js +1 -1
- package/layers/mixins/CustomParametersMixin.js +1 -1
- package/layers/mixins/DataElementMixin.js +1 -1
- package/layers/mixins/DataSeriesLayer.js +1 -1
- package/layers/mixins/DisplayFilteredLayer.js +1 -1
- package/layers/mixins/EditBusLayer.js +1 -1
- package/layers/mixins/FeatureEffectLayer.js +1 -1
- package/layers/mixins/FeatureLayerBase.js +1 -1
- package/layers/mixins/FeatureReductionLayer.js +1 -1
- package/layers/mixins/HeightModelInfoMixin.js +1 -1
- package/layers/mixins/OperationalLayer.js +1 -1
- package/layers/mixins/OrderedLayer.js +1 -1
- package/layers/mixins/PortalLayer.js +1 -1
- package/layers/mixins/PublishableLayer.js +1 -1
- package/layers/mixins/RasterJobHandlerMixin.js +1 -1
- package/layers/mixins/RasterPresetRendererMixin.js +1 -1
- package/layers/mixins/RefreshableLayer.js +1 -1
- package/layers/mixins/ReloadableLayer.js +1 -1
- package/layers/mixins/ScaleRangeLayer.js +1 -1
- package/layers/mixins/SceneService.js +1 -1
- package/layers/mixins/SublayersOwner.js +1 -1
- package/layers/mixins/TemporalLayer.js +1 -1
- package/layers/mixins/TrackableLayer.js +1 -1
- package/layers/orientedImagery/transformations/utils.js +1 -1
- package/layers/raster/datasets/TIFFRaster.js +1 -1
- package/layers/raster/datasets/pixelReader.js +1 -1
- package/layers/raster/datasets/xmlUtilities.js +1 -1
- package/layers/raster/formats/Lerc.js +1 -1
- package/layers/raster/formats/Qb3.js +1 -1
- package/layers/raster/formats/TiffDecoder.js +1 -1
- package/layers/raster/formats/blosc.js +1 -1
- package/layers/raster/formats/tiffParser.js +1 -1
- package/layers/raster/formats/tiffSpatialReferenceUtils.js +2 -0
- package/layers/raster/formats/tiffTag.js +1 -1
- package/layers/raster/functions/colormaps.js +1 -1
- package/layers/support/TitleCreator.js +1 -1
- package/layers/support/WMTSSublayer.js +1 -1
- package/layers/support/fieldUtils.d.ts +129 -57
- package/layers/support/fieldUtils.js +1 -1
- package/layers/support/geospatialPDFUtils.js +1 -1
- package/layers/support/imageUtils.js +1 -1
- package/layers/support/labelUtils.js +1 -1
- package/layers/support/tiles3DUtils.js +1 -1
- package/layers/video/VideoController.js +14 -14
- package/legend/ActiveLayerInfo.js +1 -1
- package/legend/support/sizeRampUtils.js +1 -1
- package/libs/basisu/BasisUEncoder.js +1 -1
- package/libs/basisu/BasisUTranscoder.js +1 -1
- package/libs/dracoMeshDecoder/dracoMeshDecoder.js +1 -1
- package/libs/dxtEncoder/DXTEncoder.js +1 -1
- package/libs/i3s/I3SModule.js +1 -1
- package/libs/librust-parquet/loadParquetModule.js +1 -1
- package/libs/librust-text/loadTextModule.js +1 -1
- package/libs/linkchartlayout/LinkChartLayout.js +1 -1
- package/libs/maquette-advanced-projector/projector.js +1 -1
- package/networks/Network.js +1 -1
- package/networks/support/TopologyValidationJobInfo.js +1 -1
- package/package.json +2 -2
- package/popup/FeaturesModel.d.ts +6 -0
- package/popup/FeaturesModel.js +1 -1
- package/portal/PortalUser.js +1 -1
- package/renderers/mixins/VisualVariablesMixin.js +1 -1
- package/renderers/visualVariables/VisualVariableFactory.js +1 -1
- package/rest/identify.js +1 -1
- package/rest/knowledgeGraph/wasmInterface/knowledgeWasmAccess.js +1 -1
- package/rest/layerSources/utils.js +1 -1
- package/rest/networks/validateNetworkTopology.js +1 -1
- package/rest/support/CameraInfoMixin.js +1 -1
- package/rest/support/NormalizationBinParametersMixin.js +1 -1
- package/rest/support/generateRendererUtils.js +1 -1
- package/smartMapping/raster/renderers/vectorField.js +1 -1
- package/smartMapping/renderers/type.js +1 -1
- package/smartMapping/support/adapters/FeatureLayerAdapter.js +1 -1
- package/smartMapping/support/adapters/FeatureLayerBinningAdapter.js +1 -1
- package/smartMapping/symbology/color.js +1 -1
- package/smartMapping/symbology/support/Theme.js +1 -1
- package/support/BasemapStyle.js +1 -1
- package/support/LayersMixin.js +1 -1
- package/support/TablesMixin.js +1 -1
- package/support/actions/ActionBase.d.ts +14 -2
- package/support/actions/ActionBase.js +1 -1
- package/support/actions/ActionButton.js +1 -1
- package/support/actions/ActionToggle.js +1 -1
- package/support/loadArcade.js +1 -1
- package/views/2d/engine/flow/styles/Imagery.js +1 -1
- package/views/2d/engine/flow/utils.js +1 -1
- package/views/2d/engine/vectorTiles/TextShaping.js +1 -1
- package/views/2d/engine/vectorTiles/TileHandler3D.js +1 -1
- package/views/2d/engine/vectorTiles/buckets/SymbolBucket.js +1 -1
- package/views/2d/engine/vectorTiles/shaders/VTLMaterial.js +1 -1
- package/views/2d/engine/webgl/GlyphWorker.js +1 -1
- package/views/2d/engine/webgl/cpuMapped/CpuMeshData.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/AFeatureShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/bitmapUtils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/surface.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/utils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
- package/views/2d/layerViewModuleImportUtils.js +1 -1
- package/views/2d/layers/BitmapTileLayerView2D.js +1 -1
- package/views/2d/layers/ImageryLayerView2D.js +1 -1
- package/views/2d/layers/LayerView2D.js +1 -1
- package/views/2d/layers/MapImageLayerView2D.js +1 -1
- package/views/2d/layers/TileLayerView2D.js +1 -1
- package/views/2d/layers/features/FeatureContainer.js +1 -1
- package/views/2d/layers/features/layerAdapters/AnnotationLayerAdapter.js +1 -1
- package/views/2d/layers/features/support/AttributeStore.js +1 -1
- package/views/2d/layers/features/support/DisplayIdGenerator.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
- package/views/2d/layers/support/visualVariableSimpleUtils.js +1 -1
- package/views/3d/GroundView3D.js +1 -1
- package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
- package/views/3d/layerViewModuleImportUtils.js +1 -1
- package/views/3d/layers/BuildingSublayerView3D.js +1 -1
- package/views/3d/layers/DynamicLayerView3D.js +1 -1
- package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
- package/views/3d/layers/FeatureLikeLayerViewBase3D.js +1 -1
- package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/LayerView3D.js +1 -1
- package/views/3d/layers/Lyr3DWorker.js +1 -1
- package/views/3d/layers/PointCloudIntersector.js +2 -0
- package/views/3d/layers/PointCloudLayerView3D.js +1 -1
- package/views/3d/layers/SceneLayerWorker.js +1 -1
- package/views/3d/layers/TiledLayerView3D.js +1 -1
- package/views/3d/layers/UPCPointRenderer.js +2 -0
- package/views/3d/layers/UPCPointRendererNode.js +2 -0
- package/views/3d/layers/UpdatablePointCloudLayerView3D.js +2 -0
- package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
- package/views/3d/layers/i3s/I3SIntersectionHandler.js +1 -1
- package/views/3d/layers/i3s/PointCloudHighlights.js +1 -1
- package/views/3d/layers/i3s/PointCloudNodeHighlights.js +2 -0
- package/views/3d/layers/i3s/PointCloudRenderer.js +1 -1
- package/views/3d/layers/i3s/PointCloudRendererNode.js +1 -1
- package/views/3d/layers/support/DefinitionExpressionSceneLayerView.js +1 -1
- package/views/3d/layers/support/GraphicsProcessorLayerView3D.js +1 -1
- package/views/3d/layers/support/PopupSceneLayerView.js +1 -1
- package/views/3d/layers/support/TemporalSceneLayerView.js +1 -1
- package/views/3d/layers/support/Tiles3DBVH.js +1 -1
- package/views/3d/layers/support/Tiles3DLayerViewRegistration.js +1 -1
- package/views/3d/layers/support/Tiles3DMeshIntersectionHandler.js +1 -1
- package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
- package/views/3d/state/utils/groundNavigationUtils.js +1 -1
- package/views/3d/support/GroundAndIMSurface.js +1 -1
- package/views/3d/support/QualityProfile.js +1 -1
- package/views/3d/support/QualitySettings.js +1 -1
- package/views/3d/support/cameraUtils.js +1 -1
- package/views/3d/support/engineContent/sdfPrimitives.js +1 -1
- package/views/3d/support/flow/FlowSubViewTiles3D.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
- package/views/3d/support/pointsOfInterest/CenterOnSurface.js +1 -1
- package/views/3d/support/pointsOfInterest/PointsOfInterest.js +1 -1
- package/views/3d/terrain/TerrainRenderer.js +1 -1
- package/views/3d/webgl/RenderNode.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObjectFixedBVH.js +1 -1
- package/views/3d/webgl-engine/collections/Component/DepthRange.js +1 -1
- package/views/3d/webgl-engine/collections/Component/IntersectionGeometry.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentData.glsl.js +9 -9
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/collections/Component/RenderSubmitSystem.js +1 -1
- package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/RibbonVertexPosition.glsl.js +19 -19
- package/views/3d/webgl-engine/core/shaderLibrary/lastFrameUniforms.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/outputEmission.glsl.js +5 -0
- package/views/3d/webgl-engine/core/shaderLibrary/{util/CloudsParallaxShading.glsl.js → renderClouds.glsl.js} +5 -4
- package/views/3d/webgl-engine/core/shaderLibrary/shading/evaluateSceneLightingFragment.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/shading/forwardLocalUp.glsl.js +1 -5
- package/views/3d/webgl-engine/core/shaderLibrary/shading/readShadow.glsl.js +7 -7
- package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +15 -12
- package/views/3d/webgl-engine/core/shaderLibrary/terrain/blendLayers.glsl.js +9 -9
- package/views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderModules/glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechniqueRepository.js +1 -1
- package/views/3d/webgl-engine/effects/RenderNodes.js +1 -1
- package/views/3d/webgl-engine/effects/RenderPluginManager.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphere.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphere.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphereCompositing.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphereConfiguration.js +1 -1
- package/views/3d/webgl-engine/effects/fog/Fog.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationBlur.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/globalIlluminationUniforms.js +1 -1
- package/views/3d/webgl-engine/effects/glow/applyEmissiveGlow.glsl.js +30 -53
- package/views/3d/webgl-engine/lib/EmissionComposite.glsl.js +1 -1
- package/views/3d/webgl-engine/lib/EmissionComposite.js +1 -1
- package/views/3d/webgl-engine/lib/GaussianSplatShadows.js +1 -1
- package/views/3d/webgl-engine/lib/PathGeometry.js +1 -1
- package/views/3d/webgl-engine/lib/RayIntersections.js +1 -1
- package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/TriangleIntersectionData.js +1 -1
- package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
- package/views/3d/webgl-engine/materials/HUDMaterialBaseInstance.js +1 -1
- package/views/3d/webgl-engine/materials/LineCalloutMaterialBaseInstance.js +1 -1
- package/views/3d/webgl-engine/materials/Water.glsl.js +1 -1
- package/views/3d/webgl-engine/materials/WaterMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/WaterTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/materials/getWaterColor.glsl.js +89 -0
- package/views/3d/webgl-engine/materials/renderers/BufferCache.js +1 -1
- package/views/3d/webgl-engine/shaders/OutputColorHighlightOLID.glsl.js +12 -14
- package/views/3d/webgl-engine/shaders/Terrain.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/TerrainTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/UPCPointRenderer.glsl.js +2 -0
- package/views/3d/webgl-engine/shaders/UPCPointRendererTechnique.js +2 -0
- package/views/3d/webgl-engine/shaders/UPCPointRendererTechniqueConfiguration.js +2 -0
- package/views/BreakpointsOwner.js +1 -1
- package/views/DOMContainer.js +1 -1
- package/views/PopupView.js +1 -1
- package/views/View.d.ts +27 -1
- package/views/View.js +1 -1
- package/views/Viewport2DBaseMixin.js +1 -1
- package/views/Viewport2DMixin.js +1 -1
- package/views/animation/pointToPoint/Animation.js +1 -1
- package/views/interactive/Tooltip.d.ts +1 -1
- package/views/interactive/Tooltip.js +1 -1
- package/views/interactive/tooltip/components/TooltipEditableField.js +1 -1
- package/views/interactive/tooltip/content/TooltipContent.js +1 -1
- package/views/interactive/tooltip/infos/DynamicTooltipInfo.js +1 -1
- package/views/interactive/tooltip/infos/TooltipInfoWithCoordinates.js +1 -1
- package/views/layers/MapImageLayerView.js +1 -1
- package/views/layers/PointCloudLayerView.js +1 -1
- package/views/layers/RefreshableLayerView.js +1 -1
- package/views/layers/WMSLayerView.js +1 -1
- package/views/overlay/ViewOverlay.js +1 -1
- package/views/support/flow/utils.js +1 -1
- package/views/support/screenshotUtils.js +1 -1
- package/views/types.d.ts +15 -0
- package/views/webgl/AllocationTracer.js +1 -1
- package/views/webgl/InstanceCounter.js +1 -1
- package/views/webgl/RenderingContext.js +1 -1
- package/views/webgl/ShaderBuilder.js +23 -23
- package/views/webgl/ShaderTranspiler.js +1 -1
- package/views/webgl/capabilities/DisjointTimerQuery.js +1 -1
- package/views/webgl/capabilities.js +1 -1
- package/widgets/CoordinateConversion/CoordinateConversionViewModel.d.ts +1 -1
- package/widgets/CoordinateConversion/support/Conversion.d.ts +1 -0
- package/widgets/CoordinateConversion/support/Format.d.ts +1 -0
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/Feature/support/FeatureContentMixin.js +1 -1
- package/widgets/FeatureTable/support/EditableColumnTemplateMixin.js +1 -1
- package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
- package/widgets/Legend/support/sizeRampUtils.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/sketch/DataCaptureAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/mixins/DrawHandlerMixin.js +1 -1
- package/widgets/OrientedImageryViewer/mixins/ImageMeasurementMixin.js +1 -1
- package/widgets/OrientedImageryViewer/mixins/SketchHandlerMixin.js +1 -1
- package/widgets/OrientedImageryViewer/mixins/TriangulatedImageMeasurementMixin.js +1 -1
- package/widgets/OrientedImageryViewer/mixins/TriangulatedSketchHandlerMixin.js +1 -1
- package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
- package/widgets/Sketch/support/ResponsiveToolbar/ToolbarGroupBase.js +1 -1
- package/widgets/smartMapping/support/utils.js +1 -1
- package/widgets/support/AnalysisViewModelMixin.js +1 -1
- package/widgets/support/AnchorElementViewModel.js +1 -1
- package/widgets/support/GoTo.js +1 -1
- package/widgets/support/InteractiveToolViewModelMixin.js +1 -1
- package/assets/esri/core/workers/chunks/0329fa3aa3403f1c243b.js +0 -1
- package/assets/esri/core/workers/chunks/04f09e1afda92cbe09f5.js +0 -1
- package/assets/esri/core/workers/chunks/0a97b1974367382cfdf5.js +0 -1
- package/assets/esri/core/workers/chunks/0b74d353f80974ff6fea.js +0 -1
- package/assets/esri/core/workers/chunks/0e100855bb3832a68e4b.js +0 -1
- package/assets/esri/core/workers/chunks/0ede8ba757fd0976d485.js +0 -1
- package/assets/esri/core/workers/chunks/0f39576806866cff777d.js +0 -1
- package/assets/esri/core/workers/chunks/0fea695721a818955abf.js +0 -1
- package/assets/esri/core/workers/chunks/110f78d5e78732750097.js +0 -1
- package/assets/esri/core/workers/chunks/1507297550c3cd1268e2.js +0 -1
- package/assets/esri/core/workers/chunks/193a73a2c7f4f8482c21.js +0 -1
- package/assets/esri/core/workers/chunks/20acb6f3ed5140b6c6c6.js +0 -1
- package/assets/esri/core/workers/chunks/21aa29039a95debd7f44.js +0 -1
- package/assets/esri/core/workers/chunks/29b74a3ff03d3c8b65dc.js +0 -1
- package/assets/esri/core/workers/chunks/2ad6db80a508285a3e5d.js +0 -1
- package/assets/esri/core/workers/chunks/2b87d5b8931305b11ff6.js +0 -1
- package/assets/esri/core/workers/chunks/2d4788be418a4e5f6606.js +0 -1
- package/assets/esri/core/workers/chunks/2f07dc632e51fddb2d48.js +0 -1
- package/assets/esri/core/workers/chunks/2f9adf0b809ce8797ebf.js +0 -1
- package/assets/esri/core/workers/chunks/3169d639ab54bf508e2c.js +0 -1
- package/assets/esri/core/workers/chunks/333140b18aeb5a50b654.js +0 -1
- package/assets/esri/core/workers/chunks/3354f1fa90f8ce4c8fde.js +0 -1
- package/assets/esri/core/workers/chunks/3809a8b3f31bb811d964.js +0 -1
- package/assets/esri/core/workers/chunks/3982409149571a827390.js +0 -1
- package/assets/esri/core/workers/chunks/3b11e4d2e69b7aea1d65.js +0 -1
- package/assets/esri/core/workers/chunks/3c1651e9e8d2e83d22df.js +0 -1
- package/assets/esri/core/workers/chunks/3df6631895d0a7109e00.js +0 -1
- package/assets/esri/core/workers/chunks/3e8d70039800f2395d66.js +0 -1
- package/assets/esri/core/workers/chunks/3f8d66d8447036f122ae.js +0 -1
- package/assets/esri/core/workers/chunks/420c6a14107a77ddad36.js +0 -1
- package/assets/esri/core/workers/chunks/421b8244d01736d82e7a.js +0 -1
- package/assets/esri/core/workers/chunks/4761cd436abceee858bf.js +0 -1
- package/assets/esri/core/workers/chunks/48b60ff59afbae865de1.js +0 -1
- package/assets/esri/core/workers/chunks/4953314fd9afd52b6eec.js +0 -1
- package/assets/esri/core/workers/chunks/4cf8bddc3e0619e34424.js +0 -1
- package/assets/esri/core/workers/chunks/4d0bb5e4a1d789cc0d75.js +0 -1
- package/assets/esri/core/workers/chunks/4d8539674fc2e4fea03c.js +0 -1
- package/assets/esri/core/workers/chunks/4de08ead94660025075b.js +0 -1
- package/assets/esri/core/workers/chunks/5060be52a380fc4920f8.js +0 -1
- package/assets/esri/core/workers/chunks/5082cdc3e91e1c6d1070.js +0 -1
- package/assets/esri/core/workers/chunks/52ded087d19a93e29d93.js +0 -1
- package/assets/esri/core/workers/chunks/53bbb9aa6e4e4a0a8121.js +0 -1
- package/assets/esri/core/workers/chunks/54d3cb7d95d948998591.js +0 -1
- package/assets/esri/core/workers/chunks/560ebf5524ade7d1f85b.js +0 -1
- package/assets/esri/core/workers/chunks/56f227e1a9e51d1fd742.js +0 -1
- package/assets/esri/core/workers/chunks/5bd451c7db17ee8f0315.js +0 -1
- package/assets/esri/core/workers/chunks/5c34d49a6c9cc34b7626.js +0 -1
- package/assets/esri/core/workers/chunks/5d75fcaded78f76efd3e.js +0 -1
- package/assets/esri/core/workers/chunks/5f7505ada0991cfbdd84.js +0 -1
- package/assets/esri/core/workers/chunks/62ddd3a82864e26f009a.js +0 -1
- package/assets/esri/core/workers/chunks/6737b2a4a70bbdafaf67.js +0 -1
- package/assets/esri/core/workers/chunks/6a339a47e765b9937dd7.js +0 -1
- package/assets/esri/core/workers/chunks/6c21964eb7c25c8b1e9a.js +0 -1
- package/assets/esri/core/workers/chunks/6fd10891506925560443.js +0 -29
- package/assets/esri/core/workers/chunks/703373f529c1c334cfad.js +0 -1
- package/assets/esri/core/workers/chunks/71a05edd6f7f3197e621.js +0 -1
- package/assets/esri/core/workers/chunks/72b7e7b518c88b7569dd.js +0 -1
- package/assets/esri/core/workers/chunks/733c32d8091427d84de7.js +0 -1
- package/assets/esri/core/workers/chunks/73918ca7fdf41272d941.js +0 -1
- package/assets/esri/core/workers/chunks/7673217a688d739141e2.js +0 -1
- package/assets/esri/core/workers/chunks/76869c14dd7ffaae7eff.js +0 -1
- package/assets/esri/core/workers/chunks/7b156905d168bf973518.js +0 -1
- package/assets/esri/core/workers/chunks/7baa49055bc31618b56e.js +0 -1
- package/assets/esri/core/workers/chunks/7bd5a074d9f4ba137649.js +0 -1
- package/assets/esri/core/workers/chunks/7c13d7754fc914a87817.js +0 -1
- package/assets/esri/core/workers/chunks/7dc2e714234b2cee8701.js +0 -1
- package/assets/esri/core/workers/chunks/835e0315661003caa71f.js +0 -1
- package/assets/esri/core/workers/chunks/8570e3df90fb76a8741a.js +0 -1
- package/assets/esri/core/workers/chunks/860552f49f17de2f3353.js +0 -1
- package/assets/esri/core/workers/chunks/86578c191d76062157ec.js +0 -1
- package/assets/esri/core/workers/chunks/87d6e99d83db9a8cda7c.js +0 -1
- package/assets/esri/core/workers/chunks/88df1b8b295d3aed649f.js +0 -1
- package/assets/esri/core/workers/chunks/8c9934d30655dd2c48da.js +0 -1
- package/assets/esri/core/workers/chunks/9117c9b720c9ba6e7a6e.js +0 -1
- package/assets/esri/core/workers/chunks/939fb9a8c301ace07186.js +0 -1
- package/assets/esri/core/workers/chunks/94a38c9b3d086b37242f.js +0 -1
- package/assets/esri/core/workers/chunks/98e1751f888975532afc.js +0 -1
- package/assets/esri/core/workers/chunks/9b727f45dfea84357b57.js +0 -1
- package/assets/esri/core/workers/chunks/9d61f10f2bef15b5811d.js +0 -1
- package/assets/esri/core/workers/chunks/9dcf5be203f8b1e47d9d.js +0 -1
- package/assets/esri/core/workers/chunks/9eb00bb8dab995c2dcb3.js +0 -1
- package/assets/esri/core/workers/chunks/9ed81757937fe08363ed.js +0 -1
- package/assets/esri/core/workers/chunks/9fe07947cf4ec44014e8.js +0 -1
- package/assets/esri/core/workers/chunks/a05a2c2aaf0c288f9681.js +0 -1
- package/assets/esri/core/workers/chunks/a1d265614d038eb603f7.js +0 -1
- package/assets/esri/core/workers/chunks/a3d02885d6962b49eee4.js +0 -1
- package/assets/esri/core/workers/chunks/a66d6298236d59a615db.js +0 -1
- package/assets/esri/core/workers/chunks/a710c7a0584d9e45a469.js +0 -1
- package/assets/esri/core/workers/chunks/ab76170c374fd67ce8cd.js +0 -1
- package/assets/esri/core/workers/chunks/ab784764ddf9d7f693a1.js +0 -1
- package/assets/esri/core/workers/chunks/ace210d313ce53f3ae10.js +0 -1
- package/assets/esri/core/workers/chunks/aebd12488b4004e207a3.js +0 -1
- package/assets/esri/core/workers/chunks/b7426e5f290573cb9689.js +0 -1
- package/assets/esri/core/workers/chunks/b88e1084097a93a89f61.js +0 -1
- package/assets/esri/core/workers/chunks/baa5aa0670b23db86b50.js +0 -1
- package/assets/esri/core/workers/chunks/c0867890a84b4c98e0ba.js +0 -1
- package/assets/esri/core/workers/chunks/c1a551c4aa77f123d091.js +0 -1
- package/assets/esri/core/workers/chunks/c58f859dec9d6675dbd6.js +0 -1
- package/assets/esri/core/workers/chunks/c7425fb5e804f0f9d4dd.js +0 -1
- package/assets/esri/core/workers/chunks/c7b1c6d57603fa385c54.js +0 -1
- package/assets/esri/core/workers/chunks/c85184baccb4004bf42b.js +0 -1
- package/assets/esri/core/workers/chunks/ccf4b5fdcdace533bcb7.js +0 -1
- package/assets/esri/core/workers/chunks/cd8181600623e18f511c.js +0 -1
- package/assets/esri/core/workers/chunks/cef537fa9705dd1cf685.js +0 -1
- package/assets/esri/core/workers/chunks/d33403d578fbeecaf844.js +0 -1
- package/assets/esri/core/workers/chunks/d5bb6f479c0cdfc21d8a.js +0 -1
- package/assets/esri/core/workers/chunks/d689e7c685dd9a444d19.js +0 -1
- package/assets/esri/core/workers/chunks/d8b84d21144a58b6b911.js +0 -1
- package/assets/esri/core/workers/chunks/d8ffb1502def5c85740b.js +0 -1
- package/assets/esri/core/workers/chunks/db96d1d9f6d1a4d7fd2a.js +0 -1
- package/assets/esri/core/workers/chunks/ddbfa664e69612295785.js +0 -1
- package/assets/esri/core/workers/chunks/de35baceeb815e6befd5.js +0 -1
- package/assets/esri/core/workers/chunks/ded81c504bf44806ca7d.js +0 -1
- package/assets/esri/core/workers/chunks/e0466387b2ab54d706ca.js +0 -1
- package/assets/esri/core/workers/chunks/e164198dbb87ee202ba1.js +0 -1
- package/assets/esri/core/workers/chunks/e4eb6fdf5115bed48856.js +0 -1
- package/assets/esri/core/workers/chunks/e566102c7ed7a8ebf89e.js +0 -1
- package/assets/esri/core/workers/chunks/e59271f8b142a7602b7a.js +0 -1
- package/assets/esri/core/workers/chunks/ee70be138831cc2a0f56.js +0 -1
- package/assets/esri/core/workers/chunks/eef3fa804e456beac4c1.js +0 -1
- package/assets/esri/core/workers/chunks/efd6ea0966f60ab19520.js +0 -1
- package/assets/esri/core/workers/chunks/f23c4fd014126ea7abc6.js +0 -1
- package/assets/esri/core/workers/chunks/f319b59228b64e7f9008.js +0 -1
- package/assets/esri/core/workers/chunks/f42adcea81390fb21c66.js +0 -1
- package/assets/esri/core/workers/chunks/f52d081bbde5c95265cf.js +0 -1
- package/assets/esri/core/workers/chunks/f6e40f3faf0c80cf1b3a.js +0 -1
- package/assets/esri/core/workers/chunks/f7ab4bf14ec8e986ef7c.js +0 -1
- package/assets/esri/core/workers/chunks/f92c92c0fd1b5b33ca21.js +0 -1
- package/assets/esri/core/workers/chunks/fbd5f3b81cd9f061824d.js +0 -1
- package/assets/esri/core/workers/chunks/fdcc5fe4630a4ccf58de.js +0 -1
- package/assets/esri/core/workers/chunks/ff0a0819bba5e8264c47.js +0 -1
- package/assets/esri/core/workers/chunks/ff225735eba7f9130e19.js +0 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/WaterColor.glsl.js +0 -70
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[1737],{40876(e,t,n){n.d(t,{Eq:()=>m,G1:()=>g,Q6:()=>b,TS:()=>l,V6:()=>r,Vm:()=>f,ay:()=>o,c1:()=>p,c4:()=>a,iw:()=>v,j5:()=>u,lT:()=>c,oW:()=>h,xV:()=>_});const i={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!!i[e]||!!i[e.toLowerCase()]}function l(e){return i[e]??i[e.toLowerCase()]}function a(e){return[...l(e)]}function s(e,t,n){n<0&&++n,n>1&&--n;let i=6*n;return i<1?e+(t-e)*i:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function o(e,t,n,i=1){let r=(e%360+360)%360/360,l=n<=.5?n*(t+1):n+t-n*t,a=2*n-l;return[Math.round(255*s(a,l,r+1/3)),Math.round(255*s(a,l,r)),Math.round(255*s(a,l,r-1/3)),i]}function u(e){let t=e.length>5,n=t?8:4,i=(1<<n)-1,r=t?1:17,l=t?9===e.length:5===e.length,a=Number("0x"+e.slice(1));if(isNaN(a))return null;let s,o=[0,0,0,1];return l&&(s=a&i,a>>=n,o[3]=r*s/255),s=a&i,a>>=n,o[2]=r*s,s=a&i,a>>=n,o[1]=r*s,s=a&i,a>>=n,o[0]=r*s,o}function h(e){if(!e.startsWith("#")||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{let t=parseInt(e.slice(1,2),16),n=parseInt(e.slice(2,3),16),i=parseInt(e.slice(3,4),16),r=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,n+16*n,i+16*i,(r+16*r)/255]}case 7:case 9:return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16),(7===e.length?255:parseInt(e.slice(7),16))/255];default:return null}}function c(e){let t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){let e=t[2].split(/\s*,\s*/),n=t[1];if("rgb"===n&&3===e.length||"rgba"===n&&4===e.length){if(e[0].endsWith("%")){let t=e.map(e=>2.56*parseFloat(e));return 4===e.length&&(t[3]=parseFloat(e[3])),d(t)}return d(e.map(e=>parseFloat(e)))}if("hsl"===n&&3===e.length||"hsla"===n&&4===e.length)return o(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function d(e){return e[0]=p(e[0]),e[1]=p(e[1]),e[2]=p(e[2]),e[3]=4===e.length?g(e[3]):1,e}function m(e){let t=r(e)?l(e):null;return t??=c(e),t??=h(e),t}function f(e){let t=m(e);return null==t?null:[t[0]/255,t[1]/255,t[2]/255,t[3]]}function g(e){return y(e,0,1)}function p(e){return Math.round(y(e,0,255))}function y(e,t,n){return e=Number(e),isNaN(e)?n:e<t?t:e>n?n:e}const v=1/2.2;function b(e){return e**2.2}function _(e){return e**v}},7762(e,t,n){var i,r=n(32198),l=n(10107),a=n(7695),s=n(64108),o=n(56507),u=n(62788),h=n(95488),c=n(98291),d=n(4576),m=n(65529),f=n(36563),g=n(4718),p=n(53966),y=n(93687),v=n(76030),b=n(12195);class _{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(e){this.defaultPrevented=!1,this.item=e}}class M{constructor(e,t,n,i,r){this.target=e,this.added=t,this.removed=n,this.start=i,this.deleteCount=r}}const w=new y.A(()=>new _,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1});function T(e){e&&"object"==typeof e&&"destroy"in e&&"function"==typeof e.destroy&&e.destroy()}function x(e){return e?e instanceof N?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function F(e){if(e?.length)return e[0]}function C(e,t,n,i){let r=Math.min(e.length-n,t.length-i),l=0;for(;l<r&&e[n+l]===t[i+l];)l++;return l}function S(e,t,n,i){t&&t.forEach((t,r,l)=>{e.push(t),S(e,n.call(i,t,r,l),n,i)})}const z=new Set,V=new Set,D=new Set,I=new Map;let k=0,N=i=class extends m.nJ{static ofType(e){if(!e)return i;if(I.has(e))return I.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(let n in e.typeMap){let i=e.typeMap[n].prototype.declaredClass;t?t+=` | ${i}`:t=i}let n=class extends i{};return(0,r.Cg)([(0,a.u)({Type:e,ensureType:"function"==typeof e?(0,o.dp)(e):(0,o.aq)(e)})],n.prototype,"itemType",void 0),n=(0,r.Cg)([(0,s.$K)(`esri.core.Collection<${t}>`)],n),I.set(e,n),n}static isCollection(e){return null!=e&&e instanceof i}constructor(e){super(function(e){return e?(0,d.yc)(e)||e instanceof N?{items:e}:e:{}}(e)),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new h.I,this._length=0,this._items=[],Object.defineProperty(this,"uid",{value:k++})}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),super.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get length(){return this._length}set length(e){e>this._length?p.A.getLogger(this).error("#length=","Cannot increase the length of the collection by assigning to the length property."):this.splice(e,Math.max(0,this._length-e))}get items(){return(0,u.gc)(this._observable),this._items}set items(e){this._emitBeforeChanges(1)||(this._splice(0,this.length,x(e)),this._emitAfterChanges(1))}hasEventListener(e){return!this.destroyed&&("change"===e?this._chgListeners.length>0:super.hasEventListener(e))}on(e,t){if(this.destroyed)return(0,f.hA)();if("change"===e){let e=this._chgListeners,n={removed:!1,callback:t};return e.push(n),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),(0,f.hA)(()=>{n.removed=!0,e.splice(e.indexOf(n),1)})}return super.on(e,t)}once(e,t){let n="deref"in t?()=>t.deref():()=>t,i=this.on(e,e=>{n()?.call(null,e),i.remove()});return i}add(e,t){if((0,u.gc)(this._observable),this._emitBeforeChanges(1))return this;let n=this.getNextIndex(t??null);return this._splice(n,0,[e]),this._emitAfterChanges(1),this}addMany(e,t=this._items.length){if((0,u.gc)(this._observable),!e?.length||this._emitBeforeChanges(1))return this;let n=this.getNextIndex(t);return this._splice(n,0,x(e)),this._emitAfterChanges(1),this}at(e){if((0,u.gc)(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if((0,u.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return[];let e=this._removeAllRaw();return this._emitAfterChanges(2),e}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,u.gc)(this._observable),this._createNewInstance({items:this._items.map(g.o8)})}concat(...e){(0,u.gc)(this._observable);let t=e.map(x);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,u.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;let n=this._splice(0,this.length),i=n.length;for(let r=0;r<i;r++)e.call(t,n[r],r,n);this._emitAfterChanges(2)}destroyAll(){this.drain(T)}destroyMany(e){let t=this.removeMany(e);return t.forEach(T),t}every(e,t){return(0,u.gc)(this._observable),this._items.every(e,t)}filter(e,t){(0,u.gc)(this._observable);let n=2===arguments.length?this._items.filter(e,t):this._items.filter(e);return this._createNewInstance({items:n})}find(e,t){return(0,u.gc)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,u.gc)(this._observable),this._items.findIndex(e,t)}findLast(e,t){return(0,u.gc)(this._observable),this._items.findLast(e,t)}findLastIndex(e,t){return(0,u.gc)(this._observable),this._items.findLastIndex(e,t)}flatten(e,t){(0,u.gc)(this._observable);let n=[];return S(n,this,e,t),new i(n)}forEach(e,t){return(0,u.gc)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,u.gc)(this._observable),this._items[e]}getNextIndex(e){(0,u.gc)(this._observable);let t=this.length;return e??=t,e<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,u.gc)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,u.gc)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,u.gc)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,u.gc)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,u.gc)(this._observable);let n=this._items.map(e,t);return new i({items:n})}reorder(e,t=this.length-1){(0,u.gc)(this._observable);let n=this.indexOf(e);if(-1!==n){if(t<0?t=0:t>=this.length&&(t=this.length-1),n!==t){if(this._emitBeforeChanges(4))return e;this._splice(n,1),this._splice(t,0,[e]),this._emitAfterChanges(4)}return e}}pop(){if((0,u.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;let e=F(this._splice(this.length-1,1));return this._emitAfterChanges(2),e}push(...e){return(0,u.gc)(this._observable),this._emitBeforeChanges(1)||(this._splice(this.length,0,e),this._emitAfterChanges(1)),this.length}reduce(e,t){(0,u.gc)(this._observable);let n=this._items;return 2===arguments.length?n.reduce(e,t):n.reduce(e)}reduceRight(e,t){(0,u.gc)(this._observable);let n=this._items;return 2===arguments.length?n.reduceRight(e,t):n.reduceRight(e)}remove(e){return(0,u.gc)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,u.gc)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(2))return;let t=F(this._splice(e,1));return this._emitAfterChanges(2),t}removeMany(e){if((0,u.gc)(this._observable),!e?.length||this._emitBeforeChanges(2))return[];let t=e instanceof i?e.toArray():e,n=this._items,r=[],l=t.length;for(let e=0;e<l;e++){let i=t[e],l=n.indexOf(i);if(l>-1){let i=1+C(t,n,e+1,l+1),a=this._splice(l,i);a&&a.length>0&&r.push.apply(r,a),e+=i-1}}return this._emitAfterChanges(2),r}reverse(){if((0,u.gc)(this._observable),this._emitBeforeChanges(4))return this;let e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(4),this}shift(){if((0,u.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;let e=F(this._splice(0,1));return this._emitAfterChanges(2),e}slice(e=0,t=this.length){return(0,u.gc)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,u.gc)(this._observable),this._items.some(e,t)}sort(e){if((0,u.gc)(this._observable),!this.length||this._emitBeforeChanges(4)||!this._requiresSort(e))return this;let t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(4),this}_requiresSort(e=(e,t)=>e===t?0:e<t?-1:1){let t=this.length-1;for(let n=0;n<t;n++)if(e(this.items[n],this.items[n+1])>0)return!0;return!1}splice(e,t,...n){(0,u.gc)(this._observable),1===arguments.length&&(t=this.length),t??=0;let i=(t?2:0)|!!n.length;if(this._emitBeforeChanges(i))return[];let r=this._splice(e,t,n)||[];return this._emitAfterChanges(i),r}toArray(){return(0,u.gc)(this._observable),this._items.slice()}toJSON(e){return(0,u.gc)(this._observable),this.toArray().map(t=>(0,b.W)(t)?t.toJSON(e):t)}toLocaleString(){return(0,u.gc)(this._observable),this._items.toLocaleString()}toString(){return(0,u.gc)(this._observable),this._items.toString()}unshift(...e){return(0,u.gc)(this._observable),!e.length||this._emitBeforeChanges(1)||(this._splice(0,0,e),this._emitAfterChanges(1)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,n){let i,r,l=this._items,a=this.itemType;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=(0,v._)(()=>this._dispatchChange())),e<0&&(e+=this.length),t){if(r=l.splice(e,t),this.hasEventListener("before-remove")){let t=w.acquire();t.target=this,t.cancellable=!0;for(let n=0,a=r.length;n<a;n++)i=r[n],t.reset(i),this.emit("before-remove",t),t.defaultPrevented&&(r.splice(n,1),l.splice(e,0,i),e+=1,--n,--a);w.release(t)}if(this._length=this._items.length,this.hasEventListener("after-remove")){let e=w.acquire();e.target=this,e.cancellable=!1;let t=r.length;for(let n=0;n<t;n++)e.reset(r[n]),this.emit("after-remove",e);w.release(e)}}if(n?.length){if(a){let e=[];for(let t of n){let n=a.ensureType(t);(null!=n||null==t)&&e.push(n)}n=e}let t=this.hasEventListener("before-add"),i=this.hasEventListener("after-add"),r=e===this.length;if(t||i){let a=w.acquire();a.target=this,a.cancellable=!0;let s=w.acquire();s.target=this,s.cancellable=!1;for(let o of n)t?(a.reset(o),this.emit("before-add",a),a.defaultPrevented||(r?l.push(o):l.splice(e++,0,o),this._length=l.length,i&&(s.reset(o),this.emit("after-add",s)))):(r?l.push(o):l.splice(e++,0,o),this._length=l.length,s.reset(o),this.emit("after-add",s));w.release(s),w.release(a)}else{if(r)for(let e of n)l.push(e);else l.splice(e,0,...n);this._length=l.length}}if((n?.length||r?.length)&&this._notifyChangeEvent(n,r),this.hasEventListener("after-splice")){let i=new M(this,n,r,e,t);this.emit("after-splice",i)}return r}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){let n=w.acquire();n.target=this,n.cancellable=!0,n.type=e,this.emit("before-changes",n),t=n.defaultPrevented,w.release(n)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){let t=w.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),w.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&=(this._timer.remove(),null),this._updating=!1,!this._notifications)return;let e=this._notifications;this._notifications=null;for(let t of e){let e=t.changes;z.clear(),V.clear(),D.clear();for(let{added:t,removed:n}of e){if(t)if(0===D.size&&0===V.size)for(let e of t)z.add(e);else for(let e of t)V.has(e)?(D.add(e),V.delete(e)):D.has(e)||z.add(e);if(n)if(0===D.size&&0===z.size)for(let e of n)V.add(e);else for(let e of n)z.has(e)?z.delete(e):(D.delete(e),V.add(e))}let n=c.A.acquire();z.forEach(e=>{n.push(e)});let i=c.A.acquire();V.forEach(e=>{i.push(e)});let r=this._items,l=t.items,a=c.A.acquire();if(D.forEach(e=>{l.indexOf(e)!==r.indexOf(e)&&a.push(e)}),t.listeners&&(n.length||i.length||a.length)){let e={target:this,added:n,removed:i,moved:a},r=t.listeners.length;for(let n=0;n<r;n++){let i=t.listeners[n];i.removed||i.callback.call(this,e)}}c.A.release(n),c.A.release(i),c.A.release(a)}z.clear(),V.clear(),D.clear()}};(0,r.Cg)([(0,l.MZ)()],N.prototype,"_updating",void 0),(0,r.Cg)([(0,l.MZ)()],N.prototype,"_length",void 0),(0,r.Cg)([(0,l.MZ)()],N.prototype,"length",null),(0,r.Cg)([(0,l.MZ)()],N.prototype,"items",null),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],N.prototype,"updating",null),N=i=(0,r.Cg)([(0,s.$K)("esri.core.Collection")],N);const L=N;n.d(t,["A",0,L])},65529(e,t,n){var i=n(56372),r=n(36563);const l=e=>{let t=e;return class extends t{constructor(){super(...arguments),this._listenersMap=null}clearEvents(){this._listenersMap?.clear(),this._listenersMap=null}destroy(){this.clearEvents()}emit(e,t){let n=this._listenersMap?.get(e);if(!n)return!1;let i=!1;for(let e of n.slice()){let n="deref"in e?e.deref():e;n?n?.call(this,t):i=!0}return i&&(n=n.filter(e=>!("deref"in e)||null!=e.deref()),this._listenersMap.set(e,n)),n.length>0}on(e,t){if(Array.isArray(e)){let n=e.map(e=>this.on(e,t));return(0,r.vE)(n)}if(e.includes(","))throw TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap??=new Map;let n=this._listenersMap.get(e)||[];return n.push(t),this._listenersMap.set(e,n),(0,r.hA)(()=>{let n=this._listenersMap?.get(e),i=n?.indexOf(t)??-1;i>=0&&n.splice(i,1)})}once(e,t){let n=this.on(e,e=>{n.remove(),("deref"in t?t.deref():t)?.call(null,e)});return n}hasEventListener(e){let t=this._listenersMap?.get(e);return null!=t&&t.length>0}}},a=l(class{}),s=a,o=l(i.A);n.d(t,["Zt",0,l,"a$",0,a,"bk",0,s,"nJ",0,o])},7695(e,t,n){function i(e){return(t,n)=>{t[n]=e}}n.d(t,{u:()=>i})},91829(e,t,n){function i(){return[0,0,0,0]}function r(e,t,n,i){return[e,t,n,i]}function l(){return r(1,1,1,1)}function a(){return r(1,0,0,0)}function s(){return r(0,1,0,0)}function o(){return r(0,0,1,0)}function u(){return r(0,0,0,1)}n.d(t,{Un:()=>c,_Y:()=>u,fA:()=>r,uY:()=>h,vt:()=>i});const h=[0,0,0,0],c=l(),d=a(),m=s(),f=o(),g=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_W:g,UNIT_X:d,UNIT_Y:m,UNIT_Z:f,ZEROS:h,clone:function(e){return[e[0],e[1],e[2],e[3]]},create:i,freeze:function(e,t,n,i){return[e,t,n,i]},fromArray:function(e,t=[0,0,0,0]){let n=Math.min(4,e.length);for(let i=0;i<n;++i)t[i]=e[i];return t},fromValues:r,ones:l,unitW:u,unitX:a,unitY:s,unitZ:o,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},78955(e,t,n){n.d(t,{Bw:()=>p,C:()=>r,Cc:()=>_,LI:()=>d,Om:()=>b,S8:()=>v,T9:()=>c,WQ:()=>a,Z0:()=>M,aI:()=>T,hG:()=>g,hZ:()=>l,hs:()=>m,jk:()=>h,m3:()=>y,t2:()=>w});var i=n(34304);function r(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function l(e,t,n,i,r){return e[0]=t,e[1]=n,e[2]=i,e[3]=r,e}function a(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e}function s(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e}function o(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e[3]=t[3]*n[3],e}function u(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e[3]=t[3]/n[3],e}function h(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e[3]=Math.min(t[3],n[3]),e}function c(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e[3]=Math.max(t[3],n[3]),e}function d(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}function m(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e}function f(e,t){let n=t[0]-e[0],i=t[1]-e[1],r=t[2]-e[2],l=t[3]-e[3];return Math.sqrt(n*n+i*i+r*r+l*l)}function g(e,t){let n=t[0]-e[0],i=t[1]-e[1],r=t[2]-e[2],l=t[3]-e[3];return n*n+i*i+r*r+l*l}function p(e){let t=e[0],n=e[1],i=e[2],r=e[3];return Math.sqrt(t*t+n*n+i*i+r*r)}function y(e){let t=e[0],n=e[1],i=e[2],r=e[3];return t*t+n*n+i*i+r*r}function v(e,t){let n=t[0],i=t[1],r=t[2],l=t[3],a=n*n+i*i+r*r+l*l;return a>0&&(a=1/Math.sqrt(a),e[0]=n*a,e[1]=i*a,e[2]=r*a,e[3]=l*a),e}function b(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function _(e,t,n,i){let r=t[0],l=t[1],a=t[2],s=t[3];return e[0]=r+i*(n[0]-r),e[1]=l+i*(n[1]-l),e[2]=a+i*(n[2]-a),e[3]=s+i*(n[3]-s),e}function M(e,t,n){let i=t[0],r=t[1],l=t[2],a=t[3];return e[0]=n[0]*i+n[4]*r+n[8]*l+n[12]*a,e[1]=n[1]*i+n[5]*r+n[9]*l+n[13]*a,e[2]=n[2]*i+n[6]*r+n[10]*l+n[14]*a,e[3]=n[3]*i+n[7]*r+n[11]*l+n[15]*a,e}function w(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}function T(e,t){let n=e[0],r=e[1],l=e[2],a=e[3],s=t[0],o=t[1],u=t[2],h=t[3],c=(0,i.FD)();return Math.abs(n-s)<=c*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(r-o)<=c*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(l-u)<=c*Math.max(1,Math.abs(l),Math.abs(u))&&Math.abs(a-h)<=c*Math.max(1,Math.abs(a),Math.abs(h))}const x=s,F=o,C=u,S=f,z=g,V=p,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:S,distance:f,div:C,divide:u,dot:b,equals:T,exactEquals:w,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:V,length:p,lerp:_,max:c,min:h,mul:F,multiply:o,negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e},normalize:v,random:function(e,t=1){let n,r,l,a,s,o,u=i.Ov;do{n=2*u()-1,r=2*u()-1,s=n*n+r*r}while(s>=1);do{l=2*u()-1,a=2*u()-1,o=l*l+a*a}while(o>=1);let h=Math.sqrt((1-s)/o);return e[0]=t*n,e[1]=t*r,e[2]=t*l*h,e[3]=t*a*h,e},round:d,scale:m,scaleAndAdd:function(e,t,n,i){return e[0]=t[0]+n[0]*i,e[1]=t[1]+n[1]*i,e[2]=t[2]+n[2]*i,e[3]=t[3]+n[3]*i,e},set:l,sqrDist:z,sqrLen:D,squaredDistance:g,squaredLength:y,str:function(e){return"vec4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},sub:x,subtract:s,transformMat4:M,transformQuat:function(e,t,n){let i=t[0],r=t[1],l=t[2],a=n[0],s=n[1],o=n[2],u=n[3],h=u*i+s*l-o*r,c=u*r+o*i-a*l,d=u*l+a*r-s*i,m=-a*i-s*r-o*l;return e[0]=h*u+m*-a+c*-o-d*-s,e[1]=c*u+m*-s+d*-a-h*-o,e[2]=d*u+m*-o+h*-s-c*-a,e[3]=t[3],e}},Symbol.toStringTag,{value:"Module"}))},90629(e,t,n){n.d(t,{L7:()=>l,Lz:()=>a,PN:()=>s,cr:()=>o,gs:()=>h,ps:()=>r,r_:()=>c,tc:()=>u}),n(39829);const i=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i,r=s(1),l=a(1);function a(e){return e?e/72*96:0}function s(e){return e?72*e/96:0}function o(e){if("string"==typeof e){let t=e.match(i);if(t){let n=Number(t[1]),i=t[3]&&t[3].toLowerCase(),r=e.startsWith("-"),l="px"===i?s(n):n;return r?-l:l}return console.warn("screenUtils.toPt: input not recognized!"),null}return e}function u(e=0,t=0){return{x:e,y:t}}function h(e=0,t=0){return[e,t]}function c(e=0,t=0,n=0){return[e,t,n]}},88930(e,t,n){n.d(t,{S1:()=>s,VW:()=>o,lL:()=>u,rb:()=>h,t:()=>c});var i=n(34747),r=n(97770);n(98623);const l=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,a={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function s(e,t,n,l="system"){if("unknown"===n)return e;let a=new i.oh((0,r.wj)(l)),s=i.c9.fromJSDate(e,{zone:a}),o="decades"===n||"centuries"===n?"year":function(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}(n);return"decades"===n&&(t*=10),"centuries"===n&&(t*=100),s.plus({[o]:t}).toJSDate()}function o(e,t,n="milliseconds"){let i=e.getTime(),r=c(t,n,"milliseconds");return new Date(i+r)}function u(e,t,n="system"){let{unit:l}=t,a=Math.max(1,Math.trunc(t.value)),s=new i.oh((0,r.wj)(n)),o=i.c9.fromJSDate(e,{zone:s}),u=e=>e-e%a;switch(l){case"milliseconds":return o.startOf("second").plus({millisecond:u(o.millisecond)}).toJSDate();case"seconds":return o.startOf("minute").plus({second:u(o.second)}).toJSDate();case"minutes":return o.startOf("hour").plus({minute:u(o.minute)}).toJSDate();case"hours":return o.startOf("day").plus({hour:u(o.hour)}).toJSDate();case"days":return o.startOf("month").plus({day:u(o.day-1)}).toJSDate();case"weeks":{let e=o.startOf("year").startOf("week"),t=Math.floor(o.diff(e,"weeks").weeks);return e.plus({week:u(t)}).toJSDate()}case"months":return o.startOf("year").plus({month:u(o.month-1)}).toJSDate();case"years":case"decades":case"centuries":{let e=o.startOf("year"),t=("decades"===l?10:"centuries"===l?100:1)*a,n=e.year-e.year%t;return e.set({year:n}).toJSDate()}case"unknown":return e}}function h(e){let t=l.exec(e);if(!t)return null;let{hh:n,mm:i,ss:r,ms:s}=t.groups;return Number(n)*a.hours+Number(i)*a.minutes+Number(r||0)*a.seconds+Number(s||0)}function c(e,t,n){return 0===e?0:e*a[t]/a[n]}},62577(e,t,n){function i(e){return e?{originPosition:"upper-left"===e.originPosition?"upperLeft":"lower-left"===e.originPosition?"lowerLeft":e.originPosition,scale:e.tolerance?[e.tolerance,e.tolerance,1,1]:[1,1,1,1],translate:null==e.extent?[0,0,0,0]:[e.extent.xmin,e.extent.ymax,e.extent.zmin??0,e.extent.mmin??0]}:null}function r(e){if(function(e){return"lowerLeft"===e.originPosition&&4===e.scale.length&&4===e.translate.length}(e))return e;let{originPosition:t,scale:n,translate:i}=e,r=n[0]??1,l=n[1]??1;return{originPosition:"lowerLeft",scale:[r,"lowerLeft"===t?l:-l,n[2]??1,n[3]??1],translate:[i[0]??0,i[1]??0,i[2]??0,i[3]??0]}}function l({scale:e,translate:t},n){return Math.round((n-t[0])/e[0])}function a({scale:e,translate:t},n){return Math.round((n-t[1])/e[1])}function s({scale:e,translate:t},n){return n*e[0]+t[0]}function o({scale:e,translate:t},n){return n*e[1]+t[1]}function u({scale:e,translate:t},n){return(n??0)*e[2]+t[2]}function h({scale:e,translate:t},n){return n?n*e[3]+t[3]:0}function c(e,t){return e&&t?g:e&&!t?m:!e&&t?f:d}n.d(t,{$X:()=>_,B2:()=>a,Gy:()=>y,IE:()=>l,P5:()=>M,Q1:()=>r,SW:()=>v,Tr:()=>b,VV:()=>i});const d=(e,t)=>{let n=Array(t.length);if(!t.length)return n;let i=t[0],r=s(e,i[0]),l=o(e,i[1]);n[0]=[r,l];let{scale:a,originPosition:u}=e,h=a[0],c="lowerLeft"===u?a[1]:-a[1];for(let e=1;e<t.length;e++){let[i,a]=t[e];r+=h*i,l+=c*a,n[e]=[r,l]}return n},m=(e,t)=>{let n=Array(t.length);if(!t.length)return n;let i=t[0],r=s(e,i[0]),l=o(e,i[1]);n[0]=[r,l,u(e,i[2])];let{scale:a,originPosition:h}=e,c=a[0],d="lowerLeft"===h?a[1]:-a[1];for(let i=1;i<t.length;i++){let[a,s,o]=t[i];r+=c*a,l+=d*s,n[i]=[r,l,u(e,o)]}return n},f=(e,t)=>{let n=Array(t.length);if(!t.length)return n;let i=t[0],r=s(e,i[0]),l=o(e,i[1]);n[0]=[r,l,h(e,i[2])];let{scale:a,originPosition:u}=e,c=a[0],d="lowerLeft"===u?a[1]:-a[1];for(let i=1;i<t.length;i++){let[a,s,o]=t[i];r+=c*a,l+=d*s,n[i]=[r,l,h(e,o)]}return n},g=(e,t)=>{let n=Array(t.length);if(!t.length)return n;let i=t[0],r=s(e,i[0]),l=o(e,i[1]);n[0]=[r,l,u(e,i[2]),h(e,i[3])];let{scale:a,originPosition:c}=e,d=a[0],m="lowerLeft"===c?a[1]:-a[1];for(let i=1;i<t.length;i++){let[a,s,o,c]=t[i];r+=d*a,l+=m*s,n[i]=[r,l,u(e,o),h(e,c)]}return n};function p(e,t,n){let i=Array(n.length);for(let r=0;r<n.length;r++)i[r]=t(e,n[r]);return i}function y(e,t,n){let i=r(e);return t.x=l(i,n.x),t.y=a(i,n.y),null!=n.z&&(t.z=function({scale:e,translate:t},n){return Math.round(((n??0)-t[2])/e[2])}(i,n.z)),null!=n.m&&(t.m=function({scale:e,translate:t},n){return n?Math.round((n-t[3])/e[3]):0}(i,n.m)),t}function v(e,t,n,i=n?.hasZ??!1,l=n?.hasM??!1){if(null!=n){let a=r(e);t.points=c(i,l)(a,n.points),t.hasZ=i,t.hasM=l}return t}function b(e,t,n,i=null!=n?.z,l=null!=n?.m){if(null==n)return t;let a=r(e);return t.x=s(a,n.x),t.y=o(a,n.y),i&&(t.z=u(a,n.z)),l&&(t.m=h(a,n.m)),t}function _(e,t,n,i=n?.hasZ??!1,l=n?.hasM??!1){return null!=n&&(t.rings=p(r(e),c(i,l),n.rings),t.hasZ=i,t.hasM=l),t}function M(e,t,n,i=n?.hasZ??!1,l=n?.hasM??!1){return null!=n&&(t.paths=p(r(e),c(i,l),n.paths),t.hasZ=i,t.hasM=l),t}},97770(e,t,n){n.d(t,{Ey:()=>D,F8:()=>V,J2:()=>F,Yq:()=>S,_m:()=>C,_v:()=>_,iS:()=>z,wj:()=>I});var i=n(34747),r=n(66552),l=n(98623),a=n(73444);const s={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},o={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},u={timeZone:"UTC"},h={year:"numeric",month:"numeric",day:"numeric"},c={year:"numeric",month:"long",day:"numeric"},d={year:"numeric",month:"short",day:"numeric"},m={year:"numeric",month:"long",weekday:"long",day:"numeric"},f={hour:"numeric",minute:"numeric"},g={...f,second:"numeric"},p={hourCycle:"h23"},y={...f,...p},v={...g,...p},b={"short-date":h,"short-date-short-time":{...h,...f},"short-date-short-time-24":{...h,...y},"short-date-long-time":{...h,...g},"short-date-long-time-24":{...h,...v},"short-date-le":h,"short-date-le-short-time":{...h,...f},"short-date-le-short-time-24":{...h,...y},"short-date-le-long-time":{...h,...g},"short-date-le-long-time-24":{...h,...v},"long-month-day-year":c,"long-month-day-year-short-time":{...c,...f},"long-month-day-year-short-time-24":{...c,...y},"long-month-day-year-long-time":{...c,...g},"long-month-day-year-long-time-24":{...c,...v},"day-short-month-year":d,"day-short-month-year-short-time":{...d,...f},"day-short-month-year-short-time-24":{...d,...y},"day-short-month-year-long-time":{...d,...g},"day-short-month-year-long-time-24":{...d,...v},"long-date":m,"long-date-short-time":{...m,...f},"long-date-short-time-24":{...m,...y},"long-date-long-time":{...m,...g},"long-date-long-time-24":{...m,...v},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":f,"long-time":g},_=(0,r.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),M={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"};function w(){let e=(0,a.lR)();return(e&&M[e])??(0,a.QC)()}"mart"!==new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)).find(({type:e})=>"month"===e)?.value.toLowerCase()&&(M.bs="sr-Latn-CS");let T=new WeakMap;const x=b["short-date-short-time"];function F(e){return b[e]}function C(e){let{dateStyle:t,timeStyle:n,hour12:i,year:r,month:l}=e,a={};return t?a.dateStyle=t:r&&(a.year=r,a.month=l||void 0),n&&!a.year&&(a.timeStyle=n,a.hour12="auto"===i?void 0:"always"===i),a}function S(e,t=x){return function(e){let t=T.get(e);if(!t){let n=w(),i=I(e.timeZone??"system"),r={...e,timeZone:i};t=new Intl.DateTimeFormat(n,r),T.set(e,t)}return t}(t).format(e)}function z(e,t=x){return S(new Date(e),{...t,...u,...o})}function V(e,t=x){return S(new Date(`1970-01-01T${e}Z`),{...t,...u,...s})}function D(e,t=x){let n=i.c9.fromISO(e,{setZone:!0});if(!n.isValid)return e;if(t.timeZone)return S(n.toJSDate(),t);let r=0===n.offset?"UTC":t.timeZone,l={...t,timeZone:r};return n.toLocaleString(l,{locale:w()})}function I(e){switch(e){case"system":return l.N;case l.L:return"UTC";default:return e}}(0,a.Ml)(()=>{T=new WeakMap})},73444(e,t,n){n.d(t,{JK:()=>o,Ml:()=>p,QC:()=>c,lR:()=>h,oQ:()=>f});var i=n(36563);let r;n(44208);const l=globalThis.esriConfig?.locale,a=globalThis.document?.documentElement;function s(){let e=a?.getAttribute("lang"),t=globalThis.navigator?.language;return l??e??t??"en"}function o(){return void 0===r&&(r=s()),r}const u=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function h(e=o()){return d(e)?.language}function c(e=o()){let t=d(e);return t?.language&&t?.extlang?e.replace(`${t.language}-`,""):e}function d(e=o()){return u.exec(e)?.groups}const m=[];function f(e){return m.push(e),(0,i.hA)(()=>{m.splice(m.indexOf(e),1)})}new Map;const g=[];function p(e){return g.push(e),(0,i.hA)(()=>g.splice(g.indexOf(e),1))}function y(){let e=s();r!==e&&([...g].forEach(t=>t(e)),r=e,[...m].forEach(t=>t(e)))}globalThis.addEventListener?.("languagechange",y),a&&new MutationObserver(()=>{y()}).observe(a,{attributeFilter:["lang"]})},95466(e,t,n){n.d(t,{A:()=>u});var i=n(49186),r=n(53966),l=n(12195),a=n(98623),s=n(56400),o=n(30524);class u{static fromJSON(e){return new u(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new u(e.fields??[],c(e))}static fromLayerJSON(e){return new u(e.fields??[],c(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;let n=[];for(let e of this.fields){let t=e?.name,i=(0,o.GZ)(t);if(t&&i){let r=(0,o.NF)(t);this._fieldsMap.set(t,e),this._fieldsMap.set(r,e),this._normalizedFieldsMap.set(i,e),n.push(`${r}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,o.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,o.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),!(0,o.te)(e)&&!(0,o.Xz)(e)&&(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}n.sort(),this.uid=n.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(let e of this.fields)(0,o.te)(e)||(0,o.Xz)(e)||e.nullable||void 0!==(0,o.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){return(0,o.Vb)({fieldName:e,fieldsMap:this._fieldsMap,normalizedFieldsMap:this._normalizedFieldsMap})}getTimeZone(e){let t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(r.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new i.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),"UTC"):h.has(t.type)?a.L:null:null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,o.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,l.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}const h=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function c(e){let t=new Map;if(!e.fields)return t;let n=!0===e.datesInUnknownTimezone,{timeInfo:i,editFieldsInfo:r}=e,l=(i?"startField"in i?i.startField:i.startTimeField:"")??"",u=(i?"endField"in i?i.endField:i.endTimeField:"")??"",c=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,s.ZS)(e.dateFieldsTimeReference):null,d=r?function(e){return"timeZone"in e}(r)?r.timeZone??c:r.dateFieldsTimeReference?(0,s.ZS)(r.dateFieldsTimeReference):c??"UTC":null,m=i?function(e){return"timeZone"in e}(i)?i.timeZone??c:i.timeReference?(0,s.ZS)(i.timeReference):c:null,f=new Map([[(0,o.NF)(r?.creationDateField??""),d],[(0,o.NF)(r?.editDateField??""),d],[(0,o.NF)(l),m],[(0,o.NF)(u),m]]);for(let{name:i,type:r}of e.fields)if(h.has(r))t.set(i,a.L);else if("date"!==r&&"esriFieldTypeDate"!==r)t.set(i,null);else if(n)t.set(i,a.L);else{let e=f.get((0,o.NF)(i??""))??c;t.set(i,e)}return t}},61760(e,t,n){n.d(t,{PU:()=>l,YW:()=>s,hv:()=>a,zp:()=>r}),n(78955),n(91829),n(34727);var i=n(90629);function r(e){return(0,i.PN)(2.4*e)}function l(e){return(0,i.Lz)(e)/2.4}function a(e,t,n){let i=Math.sqrt(e**2+t**2)/n;return i>1?0:3/(Math.PI*n**2)*(1-i**2)**2}function s(e){return"function"==typeof e?e:e?t=>+t[e]:()=>1}},9760(e,t,n){n.d(t,{A:()=>h});var i=n(32198),r=n(91429),l=n(66552),a=n(25482),s=n(93223);const o=new l.J({esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation",esriClassifyDefinedInterval:"defined-interval"}),u=new l.J({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:"percent-of-total",esriNormalizeByField:"field"});let h=class extends a.o{constructor(e){super(e),this.type="class-breaks-definition",this.breakCount=null,this.classificationField=null,this.classificationMethod=null,this.normalizationField=null,this.normalizationType=null}set standardDeviationInterval(e){"standard-deviation"===this.classificationMethod&&this._set("standardDeviationInterval",e)}set definedInterval(e){"defined-interval"===this.classificationMethod&&this._set("definedInterval",e)}};(0,i.Cg)([(0,s.e)({classBreaksDef:"class-breaks-definition"})],h.prototype,"type",void 0),(0,i.Cg)([(0,r.MZ)({json:{write:!0}})],h.prototype,"breakCount",void 0),(0,i.Cg)([(0,r.MZ)({json:{write:!0}})],h.prototype,"classificationField",void 0),(0,i.Cg)([(0,r.MZ)({type:String,json:{read:o.read,write:o.write}})],h.prototype,"classificationMethod",void 0),(0,i.Cg)([(0,r.MZ)({json:{write:!0}})],h.prototype,"normalizationField",void 0),(0,i.Cg)([(0,r.MZ)({json:{read:u.read,write:u.write}})],h.prototype,"normalizationType",void 0),(0,i.Cg)([(0,r.MZ)({value:null,json:{write:!0}})],h.prototype,"standardDeviationInterval",null),(0,i.Cg)([(0,r.MZ)({value:null,json:{write:!0}})],h.prototype,"definedInterval",null),h=(0,i.Cg)([(0,r.$K)("esri.rest.support.ClassBreaksDefinition")],h)},84892(e,t,n){n.d(t,{t:()=>l});var i=n(53966);function r(e,t){return Number(e.toFixed(t))}function l(e,t){let{normalizationTotal:n}=e;return{classBreaks:a(e,t),normalizationTotal:n}}function a(e,t){let n=e.definition,{classificationMethod:i,normalizationType:l,definedInterval:a}=n,u=n.breakCount??1,h=[],c=e.values;if(0===c.length)return[];c=c.sort((e,t)=>e-t);let[d,m]=t??[c.at(0),c.at(-1)];if("equal-interval"===i)if(c.length>=u){let e=(m-d)/u,t=d;for(let n=1;n<u;n++){let i=r(d+n*e,6);h.push({minValue:t,maxValue:i,label:s(t,i,l)}),t=i}h.push({minValue:t,maxValue:m,label:s(t,m,l)})}else c.forEach(e=>{h.push({minValue:e,maxValue:e,label:s(e,e,l)})});else if("natural-breaks"===i){let t=function(e){let t=[],n=[],i=Number.MIN_VALUE,r=1,l=-1;for(let a=0;a<e.length;a++){let s=e[a];s===i?(r++,n[l]=r):null!==s&&(t.push(s),i=s,r=1,n.push(r),l++)}return{uniqueValues:t,valueFrequency:n}}(c),n=e.valueFrequency||t.valueFrequency,i=o(t.uniqueValues,n,u),a=d;for(let e=1;e<u;e++)if(t.uniqueValues.length>e){let n=r(t.uniqueValues[i[e]],6);h.push({minValue:a,maxValue:n,label:s(a,n,l)}),a=n}h.push({minValue:a,maxValue:m,label:s(a,m,l)})}else if("quantile"===i)if(c.length>=u&&d!==m){let e=d,t=Math.ceil(c.length/u),n=0;for(let i=1;i<u;i++){let r=t+n-1;r>c.length&&(r=c.length-1),r<0&&(r=0),h.push({minValue:e,maxValue:c[r],label:s(e,c[r],l)}),e=c[r],n+=t,t=Math.ceil((c.length-n)/(u-i))}h.push({minValue:e,maxValue:m,label:s(e,m,l)})}else{let e=-1;for(let t=0;t<c.length;t++){let n=c[t];n!==e&&(e=n,h.push({minValue:e,maxValue:n,label:s(e,n,l)}),e=n)}}else if("standard-deviation"===i){let e=function(e){let t=0;for(let n=0;n<e.length;n++)t+=e[n];return t/=e.length,t}(c),t=function(e,t){let n=0;for(let i=0;i<e.length;i++){let r=e[i];n+=(r-t)*(r-t)}return n/=e.length,Math.sqrt(n)}(c,e);if(0===t)h.push({minValue:c[0],maxValue:c[0],label:s(c[0],c[0],l)});else{let n=function(e,t,n,i,r){let l=Math.max(i-e,t-i)/r/n;return l=l>=1?1:l>=.5?.5:.25,l}(d,m,u,e,t)*t,i=0,a=d;for(let t=u;t>=1;t--){let o=r(e-(t-.5)*n,6);h.push({minValue:a,maxValue:o,label:s(a,o,l)}),a=o,i++}let o=r(e+.5*n,6);h.push({minValue:a,maxValue:o,label:s(a,o,l)}),a=o,i++;for(let t=1;t<=u;t++)o=i===2*u?m:r(e+(t+.5)*n,6),h.push({minValue:a,maxValue:o,label:s(a,o,l)}),a=o,i++}}else if("defined-interval"===i){if(!a)return h;let[e,n]=t??[c.at(0),c.at(-1)],i=Math.ceil((n-e)/a),o=e;for(let t=1;t<i;t++){let n=r(e+t*a,6);h.push({minValue:o,maxValue:n,label:s(o,n,l)}),o=n}h.push({minValue:o,maxValue:n,label:s(o,n,l)})}return h}function s(e,t,n){let i=null;return i=e===t?n&&"percent-of-total"===n?e+"%":e.toString():n&&"percent-of-total"===n?e+"% - "+t+"%":e+" - "+t,i}function o(e,t,n){let i=e.length,r=[];n>i&&(n=i);for(let e=0;e<n;e++)r.push(Math.round(e*i/n-1));r.push(i-1);let l=u(r,e,t,n);return function(e,t,n,i,r,l){let a=0,s=0,o=0,u=0,c=!0;for(let d=0;d<2&&c;d++){0===d&&(c=!1);for(let d=0;d<l-1;d++)for(;n[d+1]+1!==n[d+2];){n[d+1]=n[d+1]+1;let l=h(d,n,i,r);o=l.sbMean,a=l.sbSdcm;let m=h(d+1,n,i,r);if(u=m.sbMean,s=m.sbSdcm,!(a+s<t[d]+t[d+1])){n[d+1]=n[d+1]-1;break}t[d]=a,t[d+1]=s,e[d]=o,e[d+1]=u,c=!0}for(let d=l-1;d>0;d--)for(;n[d]!==n[d-1]+1;){n[d]=n[d]-1;let l=h(d-1,n,i,r);o=l.sbMean,a=l.sbSdcm;let m=h(d,n,i,r);if(u=m.sbMean,s=m.sbSdcm,!(a+s<t[d-1]+t[d])){n[d]=n[d]+1;break}t[d-1]=a,t[d]=s,e[d-1]=o,e[d]=u,c=!0}}return c}(l.mean,l.sdcm,r,e,t,n)&&(l=u(r,e,t,n)),r}function u(e,t,n,i){let r=[],l=[],a=[],s=0,o=[],u=[];for(let r=0;r<i;r++){let i=h(r,e,t,n);o.push(i.sbMean),u.push(i.sbSdcm),s+=u[r]}let c,d=s,m=!0;for(;m||s<d;){m=!1,r=[];for(let t=0;t<i;t++)r.push(e[t]);for(let n=0;n<i;n++)for(let r=e[n]+1;r<=e[n+1];r++)if(c=t[r],n>0&&r!==e[n+1]&&Math.abs(c-o[n])>Math.abs(c-o[n-1]))e[n]=r;else if(n<i-1&&e[n]!==r-1&&Math.abs(c-o[n])>Math.abs(c-o[n+1])){e[n+1]=r-1;break}d=s,s=0,l=[],a=[];for(let r=0;r<i;r++){l.push(o[r]),a.push(u[r]);let i=h(r,e,t,n);o[r]=i.sbMean,u[r]=i.sbSdcm,s+=u[r]}}if(s>d){for(let t=0;t<i;t++)e[t]=r[t],o[t]=l[t],u[t]=a[t];s=d}return{mean:o,sdcm:u}}function h(e,t,n,r){let l=0,a=0;for(let i=t[e]+1;i<=t[e+1];i++){let e=r[i];l+=n[i]*e,a+=e}a<=0&&i.A.getLogger("esri.rest.support.generateRendererUtils").warn("Exception in Natural Breaks calculation");let s=l/a,o=0;for(let i=t[e]+1;i<=t[e+1];i++)o+=r[i]*(n[i]-s)**2;return{sbMean:s,sbSdcm:o}}},26412(e,t,n){n.r(t),n.d(t,{classBreaks:()=>b,heatmapStatistics:()=>M,histogram:()=>_,summaryStatistics:()=>y,uniqueValues:()=>v});var i=n(1873),r=(n(49186),n(90629)),l=n(88930),a=n(86738),s=n(16930),o=n(62577),u=n(21325),h=n(95466),c=n(30524),d=n(61760),m=n(43668),f=n(4560);let g;async function p(e,t,n=!0){if(!t)return[];let r,{field:a,field2:o,field3:u,fieldDelimiter:d,sqlExpression:p,fieldInfos:y,timeZone:v}=e,b=a&&y?.find(e=>e.name.toLowerCase()===a.toLowerCase()),_=!!b&&(0,c.OH)(b),M=!!b&&(0,f.fs)(b),w=e.valueExpression,T=e.normalizationType,x=e.normalizationField,F=e.normalizationTotal,C=[],S=e.viewInfoParams,z=null;if(w){if(!g){let{arcadeUtils:e}=await(0,m.l)();g=e}g.hasGeometryOperations(w)&&await g.enableGeometryOperations(),z=g.createFunction(w),r=S?g.getViewInfo({viewingMode:S.viewingMode,scale:S.scale,spatialReference:new s.A(S.spatialReference)}):null}let V=e.fieldInfos,D=t[0]&&"declaredClass"in t[0]&&"esri.Graphic"===t[0].declaredClass||!V?null:{fields:V};for await(let e of t){let t,s=e.attributes;if(p){let n=await(0,f.j4)(p,new h.A(V));n&&(t=n.calculateValue(e.attributes))}else if(w){let n=D?Object.assign({},e,{layer:D}):e,i=g.createExecContext(n,r,v);t=g.executeFunction(z,i)}else s&&(t=s[a],o?(t=`${(0,i.gJ)(t)}${d}${(0,i.gJ)(s[o])}`,u&&(t=`${t}${d}${(0,i.gJ)(s[u])}`)):"string"==typeof t&&n&&(M?t=t?new Date(t).getTime():null:_&&(t=t?(0,l.rb)(t):null)));if(T&&"number"==typeof t&&isFinite(t)){let e=s&&parseFloat(s[x]);t=(0,i.zS)(t,T,e,F)}C.push(t)}return C}async function y(e){let{attribute:t,features:n}=e,{normalizationType:r,normalizationField:l,minValue:a,maxValue:s,fieldType:o,outStatisticTypes:u}=t,h=await p({field:t.field,valueExpression:t.valueExpression,normalizationType:r,normalizationField:l,normalizationTotal:t.normalizationTotal,viewInfoParams:t.viewInfoParams,timeZone:t.timeZone,fieldInfos:t.fieldInfos},n),c=(0,i.Vb)({normalizationType:r,normalizationField:l,minValue:a,maxValue:s}),d={value:.5,fieldType:o},m="esriFieldTypeString"===o?(0,i.z9)({values:h,supportsNullCount:c,percentileParams:d,outStatisticTypes:u}):(0,i.G_)({values:h,minValue:a,maxValue:s,useSampleStdDev:!r,supportsNullCount:c,percentileParams:d,outStatisticTypes:u});return(0,i.oZ)(m,u,"esriFieldTypeDate"===o)}async function v(e){let{attribute:t,features:n}=e,r=await p({field:t.field,field2:t.field2,field3:t.field3,fieldDelimiter:t.fieldDelimiter,valueExpression:t.valueExpression,viewInfoParams:t.viewInfoParams,timeZone:t.timeZone,fieldInfos:t.fieldInfos},n,!1),l=(0,i.b3)(r);return(0,i.lv)(l,t.domains,t.returnAllCodedValues,t.fieldDelimiter)}async function b(e){let{attribute:t,features:n}=e,{field:r,normalizationType:l,normalizationField:a,normalizationTotal:s,classificationMethod:o}=t,u=await p({field:r,valueExpression:t.valueExpression,normalizationType:l,normalizationField:a,normalizationTotal:s,viewInfoParams:t.viewInfoParams,timeZone:t.timeZone,fieldInfos:t.fieldInfos},n),h=(0,i.Rw)(u,{field:r,normalizationType:l,normalizationField:a,normalizationTotal:s,classificationMethod:o,standardDeviationInterval:t.standardDeviationInterval,numClasses:t.numClasses,minValue:t.minValue,maxValue:t.maxValue});return(0,i.jM)(h,o)}async function _(e){let{attribute:t,features:n}=e,{field:r,normalizationType:l,normalizationField:a,normalizationTotal:s,classificationMethod:o}=t,u=await p({field:r,valueExpression:t.valueExpression,sqlExpression:t.sqlExpression,normalizationType:l,normalizationField:a,normalizationTotal:s,viewInfoParams:t.viewInfoParams,timeZone:t.timeZone,fieldInfos:t.fieldInfos},n);return(0,i.$y)(u,{field:r,normalizationType:l,normalizationField:a,normalizationTotal:s,classificationMethod:o,standardDeviationInterval:t.standardDeviationInterval,numBins:t.numBins,minValue:t.minValue,maxValue:t.maxValue})}async function M(e){let{attribute:t,features:n}=e,{field:i,radius:l,transform:s,spatialReference:h}=t,c=t.size??[0,0],m=function(e,t,n,i){let r=(0,u.d9)(n)?(0,u.Vp)(n):null,l=r?Math.round((r.valid[1]-r.valid[0])/t.scale[0]):null;return e.map(e=>{let n=new a.A(e.geometry);return(0,o.Gy)(t,n,n),e.geometry=r?function(e,t,n){return e.x<0?e.x+=t:e.x>n&&(e.x-=t),e}(n,l??0,i[0]):n,e})}(n??[],s,h,c);return function(e,t=18,n,i,l){let a=new Float64Array(i*l);t=Math.round((0,r.Lz)(t));let s=1/0,o=-1/0,u=(0,d.YW)(n);for(let{geometry:n,attributes:r}of e){let{x:e,y:h}=n,c=Math.max(0,e-t),m=Math.max(0,h-t),f=Math.min(l,h+t),g=Math.min(i,e+t),p=+u(r);for(let n=m;n<f;n++)for(let r=c;r<g;r++){let l=n*i+r,u=(0,d.hv)(r-e,n-h,t)*p,c=a[l]+=u;s=Math.min(s,c),o=Math.max(o,c)}}return{min:s,max:o}}(m,l??void 0,i,c[0],c[1])}},4560(e,t,n){n.d(t,{i0:()=>u,j4:()=>o,fs:()=>s});var i=n(97770),r=n(30524);n(7762),n(84952),n(27865),n(43281),n(98623);var l=n(56400);let a;function s(e){return(0,r.vE)(e)||(0,r.zD)(e)||(0,r.Ah)(e)}async function o(e,t){return e?(a||=new(await Promise.all([n.e(9696),n.e(4123)]).then(()=>n(44123)).then(e=>e.WhereClauseCache))(50,500),a.get(e,t)):null}function u(e,t){let n,r,{format:a,fieldFormat:s,timeZoneOptions:o,fieldType:u}=t??{},h=s?(0,i._m)(s):null;if(o&&({timeZone:n,timeZoneName:r}=(0,l.hv)(o.layerTimeZone,o.datesInUnknownTimezone,o.viewTimeZone,h||(0,i.J2)(a||"short-date-short-time"),u)),"string"==typeof e&&isNaN(Date.parse("time-only"===u?`1970-01-01T${e}Z`:e)))return e;switch(u){case"date-only":{let t=h||(0,i.J2)(a||"short-date");return"string"==typeof e?(0,i.iS)(e,{...t}):(0,i.Yq)(e,{...t,timeZone:"UTC"})}case"time-only":{let t=h||(0,i.J2)(a||"short-time");return"string"==typeof e?(0,i.F8)(e,t):(0,i.Yq)(e,{...t,timeZone:"UTC"})}case"timestamp-offset":{let t=a||h||o?h||(0,i.J2)(a||"short-date-short-time"):void 0,l=t?{...t,timeZone:n,timeZoneName:r}:void 0;return"string"==typeof e?(0,i.Ey)(e,l):(0,i.Yq)(e,l)}default:{let t=a||h||o?h||(0,i.J2)(a||"short-date-short-time"):void 0;return(0,i.Yq)("string"==typeof e?new Date(e):e,t?{...t,timeZone:n,timeZoneName:r}:void 0)}}}new Set(["integer","small-integer"])},1873(e,t,n){n.d(t,{$y:()=>L,Ak:()=>Z,FM:()=>f,G_:()=>d,Rw:()=>k,Vb:()=>h,b3:()=>z,gJ:()=>u,jM:()=>N,lv:()=>D,oZ:()=>S,qg:()=>m,sU:()=>A,z9:()=>c,zS:()=>I});var i=n(9760),r=n(84892);const l=/\s*(\+|-)?((\d+(\.\d+)?)|(\.\d+))\s*/gi,a=new Set(["esriFieldTypeDate","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong","esriFieldTypeOID","esriFieldTypeBigInteger"]),s=new Set(["esriFieldTypeTimeOnly","esriFieldTypeDateOnly"]),o=["min","max","avg","stddev","count","sum","variance","nullcount","median"];function u(e){return null==e||"string"==typeof e&&!e?"<Null>":e}function h(e){let t=null!=e.normalizationField||null!=e.normalizationType,n=null!=e.minValue||null!=e.maxValue,i=!!e.sqlExpression&&e.supportsSQLExpression;return!t&&!n&&!i}function c(e){let{outStatisticTypes:t}=e,n=e.returnDistinct?[...new Set(e.values)]:e.values,i=n.filter(e=>null!=e).sort(),r=i.length,l={count:r,min:i[0],max:i[r-1]};return e.supportsNullCount&&(l.nullcount=n.length-r),!e.percentileParams||t?.include?.length&&!t.include.includes("median")||t?.exclude?.length&&t.exclude.includes("median")||(l.median=m(n,e.percentileParams)),l}function d(e){let{values:t,useSampleStdDev:n,supportsNullCount:i,outStatisticTypes:r}=e,l=1/0,a=-1/0,s=null,o=null,u=null,h=null,c=0,d=null==e.minValue?-1/0:e.minValue,f=null==e.maxValue?1/0:e.maxValue;for(let e of t)Number.isFinite(e)?e>=d&&e<=f&&(s=null===s?e:s+e,l=Math.min(l,e),a=Math.max(a,e),c++):"string"==typeof e&&c++;if(c&&null!=s){o=s/c;let e=0;for(let n of t)Number.isFinite(n)&&n>=d&&n<=f&&(e+=(n-o)**2);h=n?c>1?e/(c-1):0:c>0?e/c:0,u=Math.sqrt(h)}else l=null,a=null;let g={avg:o,count:c,max:a,min:l,stddev:u,sum:s,variance:h};return i&&(g.nullcount=t.length-c),!e.percentileParams||r?.include?.length&&!r.include.includes("median")||r?.exclude?.length&&r.exclude.includes("median")||(g.median=m(t,e.percentileParams)),g}function m(e,t){let{fieldType:n,value:i,orderBy:r,isDiscrete:l}=t,a=f(n,"desc"===r,"case-insensitive");if(e=[...e].filter(e=>null!=e).sort((e,t)=>a(e,t)),0===e.length)return null;if(i<=0)return e[0];if(i>=1)return e[e.length-1];let s=(e.length-1)*i,o=Math.floor(s),u=o+1,h=s%1,c=e[o],d=e[u];return u>=e.length||l||"string"==typeof c||"string"==typeof d?c:c*(1-h)+d*h}function f(e,t,n="case-sensitive"){if(e){if(a.has(e))return F(t);if(s.has(e))return w(t,!0);if("esriFieldTypeTimestampOffset"===e)return function(e){return e?b:v}(t);let i=w(t,"case-sensitive"===n);if("esriFieldTypeString"===e)return i;if("esriFieldTypeGUID"===e||"esriFieldTypeGlobalID"===e)return(e,t)=>i(C(e),C(t))}let i=t?1:-1,r=F(t),l=w(t,"case-sensitive"===n),o=y(t);return(e,t)=>"number"==typeof e&&"number"==typeof t?r(e,t):"string"==typeof e&&"string"==typeof t?l(e,t):o(e,t)??i}const g=(e,t)=>null==e?null==t?0:1:null==t?-1:null,p=(e,t)=>null==e?null==t?0:-1:null==t?1:null;function y(e){return e?g:p}const v=(e,t)=>p(e,t)??(e===t?0:new Date(e).getTime()-new Date(t).getTime()),b=(e,t)=>g(e,t)??(e===t?0:new Date(t).getTime()-new Date(e).getTime()),_=(e,t)=>p(e,t)??(e===t?0:e<t?-1:1),M=(e,t)=>g(e,t)??(e===t?0:e<t?1:-1);function w(e,t){if(t)return e?M:_;let n=y(e);return e?(e,t)=>n(e,t)??((e=e.toUpperCase())>(t=t.toUpperCase())?-1:+(e<t)):(e,t)=>n(e,t)??((e=e.toUpperCase())<(t=t.toUpperCase())?-1:+(e>t))}const T=(e,t)=>g(e,t)??t-e,x=(e,t)=>p(e,t)??e-t;function F(e){return e?T:x}function C(e){return e.slice(24,36)+e.slice(19,23)+e.slice(16,18)+e.slice(14,16)+e.slice(11,13)+e.slice(9,11)+e.slice(6,8)+e.slice(4,6)+e.slice(2,4)+e.slice(0,2)}function S(e,t,n){let i;for(i in e)t?.include?.length&&!t.include.includes(i)||t?.exclude?.length&&t.exclude.includes(i)?delete e[i]:o.includes(i)&&(Number.isFinite(e[i])||(e[i]=null));return n&&["avg","stddev","variance"].forEach(t=>{null!=e[t]&&(e[t]=Math.ceil(e[t]??0))}),e}function z(e){let t={};for(let n of e)(null==n||"string"==typeof n&&""===n.trim())&&(n=null),null==t[n]?t[n]={count:1,data:n}:t[n].count++;return{count:t}}function V(e){return"coded-value"===e?.type?e.codedValues.map(e=>e.code):[]}function D(e,t,n,i){let r=e.count,l=[];if(n&&t){let e=[],n=V(t[0]);for(let r of n)if(t[1]){let n=V(t[1]);for(let l of n)if(t[2]){let n=V(t[2]);for(let t of n)e.push(`${u(r)}${i}${u(l)}${i}${u(t)}`)}else e.push(`${u(r)}${i}${u(l)}`)}else e.push(r);for(let t of e)r.hasOwnProperty(t)||(r[t]={data:t,count:0})}for(let e in r){let t=r[e];l.push({value:t.data,count:t.count,label:t.label})}return{uniqueValueInfos:l}}function I(e,t,n,i){let r=null;switch(t){case"log":0!==e&&(r=Math.log(e)*Math.LOG10E);break;case"percent-of-total":Number.isFinite(i)&&0!==i&&(r=e/i*100);break;case"field":Number.isFinite(n)&&0!==n&&(r=e/n);break;case"natural-log":e>0&&(r=Math.log(e));break;case"square-root":e>0&&(r=e**.5)}return r}function k(e,t,n){let l=function(e){let{breakCount:t,field:n,normalizationField:r,normalizationType:l}=e,a=e.classificationMethod||"equal-interval",s="standard-deviation"===a?e.standardDeviationInterval||1:void 0,o="defined-interval"===a?e.definedInterval:void 0;return new i.A({breakCount:t,classificationField:n,classificationMethod:a,normalizationField:"field"===l?r:void 0,normalizationType:l,standardDeviationInterval:s,definedInterval:o})}({field:t.field,normalizationType:t.normalizationType,normalizationField:t.normalizationField,classificationMethod:t.classificationMethod,standardDeviationInterval:t.standardDeviationInterval,definedInterval:t.definedInterval,breakCount:t.numClasses||5});return e=function(e,t,n){let i=t??-1/0,r=n??1/0;return e.filter(e=>Number.isFinite(e)&&e>=i&&e<=r)}(e,t.minValue,t.maxValue),(0,r.t)({definition:l,values:e,normalizationTotal:t.normalizationTotal},n)}function N(e,t){let n=e.classBreaks,i=n.length,r=n[0]?.minValue,a=n[i-1]?.maxValue,s="standard-deviation"===t,o=l;return n=n.map(e=>{let t=e.label,n={minValue:e.minValue,maxValue:e.maxValue,label:t};if(s&&t){let e=t.match(o)?.map(e=>+e.trim())??[];2===e.length?(n.minStdDev=e[0],n.maxStdDev=e[1],e[0]<0&&e[1]>0&&(n.hasAvg=!0)):1===e.length&&(t.includes("<")?(n.minStdDev=null,n.maxStdDev=e[0]):t.includes(">")&&(n.minStdDev=e[0],n.maxStdDev=null))}return n}),{minValue:r,maxValue:a,classBreakInfos:n,normalizationTotal:e.normalizationTotal}}function L(e,t){let n=A(e,t);if(null==n.min&&null==n.max)return{bins:[],minValue:n.min,maxValue:n.max,normalizationTotal:t.normalizationTotal};let i=n.intervals,r=n.min??0,l=n.max??0,a=i.map((e,t)=>({minValue:i[t][0],maxValue:i[t][1],count:0}));for(let t of e)if(null!=t&&t>=r&&t<=l){let e=Z(i,t);e>-1&&a[e].count++}return{bins:a,minValue:r,maxValue:l,normalizationTotal:t.normalizationTotal}}function A(e,t,n=!1){let{field:i,classificationMethod:r,standardDeviationInterval:l,definedInterval:a,normalizationType:s,normalizationField:o,normalizationTotal:u,minValue:c,maxValue:m}=t,f=t.numBins||10,g=null,p=null,y=null;if(r&&"equal-interval"!==r||s){let{classBreaks:t}=k(e,{field:i,normalizationType:s,normalizationField:o,normalizationTotal:u,classificationMethod:r,standardDeviationInterval:l,definedInterval:a,minValue:c,maxValue:m,numClasses:f},null!=c&&null!=m?[c,m]:void 0);g=t[0]?.minValue,p=t[t.length-1]?.maxValue,y=t.map(e=>[e.minValue,e.maxValue])}else{if(null!=c&&null!=m)g=c,p=m;else{let t=d({values:e,minValue:c,maxValue:m,useSampleStdDev:!s,supportsNullCount:h({normalizationType:s,normalizationField:o,minValue:c,maxValue:m})});g=t.min??null,p=t.max??null}y=function(e,t,n){let i,r=(t-e)/n,l=[],a=e;for(let e=1;e<=n;e++)i=a+r,i=Number(i.toFixed(16)),l.push([a,e===n?t:i]),a=i;return l}(g??0,p??0,f)}if(n&&y.length){let e=y.at(-1)[1];y.push([e,e])}return{min:g,max:p,intervals:y}}function Z(e,t){let n=-1;for(let i=e.length-1;i>=0;i--)if(t>=e[i][0]){n=i;break}return n}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[6051],{56512(e,t,i){function r(e){let t,i,r=[],a=!1;return function(...n){return a&&t===this&&function(e,t){if(e.length!==t.length)return!1;for(let i=0;i<e.length;++i)if(e[i]!==t[i])return!1;return!0}(n,r)||(i=e.apply(this,n),t=this,r=n,a=!0),i}}i.d(t,{B:()=>r})},69397(e,t,i){i.d(t,{JY:()=>d,Qf:()=>o,Qh:()=>s,lM:()=>n,ro:()=>u,rq:()=>f});var r=i(44208),a=i(34275);function n(e){if(!e)return 0;let t=h;for(let i in e)e.hasOwnProperty(i)&&(t+=l(e[i],!1));return t}function s(e){if(!e)return 0;if("number"==typeof e[0])return o(e);if(Array.isArray(e))return function(e){let t=e.length;if(0===t||"number"==typeof e[0])return f(e,8);let i=c;for(let r=0;r<t;r++)i+=l(e[r]);return i}(e);let t=h;for(let i in e)e.hasOwnProperty(i)&&(t+=l(e[i]));return t}function l(e,t=!0){switch(typeof e){case"object":return t?s(e):h;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function o(...e){return e.reduce((e,t)=>e+u(t),0)}function u(e,t=16){return e?(0,a.iu)(e)?e.byteLength+p:Array.isArray(e)?f(e,t):0:0}function f(e,t){return c+e.length*t}const h=32,c=16,d=(0,r.A)("ios")||!(0,r.A)("chrome")&&!(0,r.A)("opr")?8:4,p=145},5359(e,t,i){i.d(t,{H:()=>r,Z:()=>a});const r=Symbol("isImageryTileGraphicOrigin");function a(e){return!!e&&r in e}},16051(e,t,i){i.r(t),i.d(t,{default:()=>It});var r,a=i(32198),n=i(91429),s=i(56507),l=i(69540),o=i(49186),u=i(53966),f=i(97768),h=i(25728),c=i(17676),d=i(36708),p=i(41910),m=i(60950),g=i(89808),y=i(99959),w=i(5359);class x extends y.A{get[(r=w.H,m.ym)](){return this.layer}get[g.Q](){return this.layer}get[p.e7](){return this.layer}constructor(e){super(),this[r]=!0,this.type="imagery-tile",this.layer=e}get id(){return this.layer.id}}var v=i(40124),b=i(24212),I=i(30291),A=i(88625),S=i(59923),C=i(4146),_=i(18768),R=i(63074),T=i(69208),M=i(34287),O=i(8303),k=i(72545),F=i(56551),D=i(54310),N=i(25036),P=i(82935),z=i(82806),L=i(7548),E=i(23636),B=i(22671),$=i(51927),J=i(49859),U=i(68197),H=i(5443),j=i(16930),Z=i(73444),V=i(14140),q=i(94778);function W(e){return["x","e","east","long","longitude"].includes(e.toLowerCase())}function G(e){return["y","n","west","lat","latitude"].includes(e.toLowerCase())}function X(e){let{axes:t}=e.domain,i=Object.keys(t),r=[],a=[],n=-1,s=-1,l=[];for(let e=0;e<i.length;e++){let o=i[e];W(o)?n=e:G(o)&&(s=e);let u=t[o],f=[];if("values"in u){u.values.forEach(e=>f.push("string"==typeof e?new Date(e).getTime():e));let e=f[1]-f[0];r.push([f[0]-.5*e,f[f.length-1]+.5*e]),a.push(e)}else{let{start:e,stop:t,num:i}=u,n=(t-e)/(i-1);r.push([e-.5*n,t+.5*n]),a.push(n);for(let t=0;t<i;t++)f.push(e+n*t)}l.push({name:o,values:f,extent:[f[0],f[f.length-1]]})}n>-1&&-1===s?s=+(0===n):s>-1&&-1===n?n=+(0===s):-1===s&&-1===n&&(n=0,s=1),l=l.filter((e,t)=>t!==n&&t!==s);let{referencing:o}=e.domain,u=o.find(e=>e.coordinates.includes(i[n])).system.id,f=u?.slice(u.lastIndexOf("/")+1),h=null==f||"CRS84"===f?4326:Number(f),c=new j.A({wkid:h}),[d,p]=r[n],[m,g]=r[s],y=new H.A({xmin:d,xmax:p,ymin:m,ymax:g,spatialReference:c});return{width:Math.round(y.width/a[n]),height:Math.round(y.height/a[s]),extent:y,dimensions:l}}function Y(e){let t=(0,Z.lR)();return t?e[t]??Object.values(e)[0]:Object.values(e)[0]}function K(){return Math.round(255*Math.random())}function Q(e){let t={},{parameters:i}=e;if(!i)return t;for(let[e,r]of Object.entries(i)){let{type:i,description:a,unit:n,categoryEncoding:s,observedProperty:l}=r;if("Parameter"===i&&(t[e]={},a&&(t[e].description=Y(a)),n&&(t[e].unit=n.label?Y(n.label):null,t[e].symbol=n.symbol?.value),s)){let i=Object.entries(s).map((e,t)=>({OID:t,Value:Number(e[1]),ClassName:e[0].slice(e[0].lastIndexOf("/")+1),Count:1})),r=!1;l?.categories?.length&&(l.categories.forEach(e=>{if(!e.id)return;let t=e.id.slice(e.id.lastIndexOf("/")+1),a=i.find(e=>e.ClassName===t);if(a&&(a.Label=e.label?Y(e.label):null,e.preferredColor)){let t=U.A.fromHex(e.preferredColor);t&&(r=!0,a.Red=t.r,a.Green=t.g,a.Blue=t.b)}}),r&&i.forEach(e=>{e.Red??(e.Red=K(),e.Green=K(),e.Blue=K())}));let a={objectIdFieldName:"",fields:[{name:"OID",type:"esriFieldTypeOID",alias:"OID",domain:null},{name:"Value",type:"esriFieldTypeInteger",alias:"Value",domain:null},{name:"Count",type:"esriFieldTypeDouble",alias:"Count",domain:null},{name:"ClassName",type:"esriFieldTypeString",alias:"ClassName",domain:null,length:50},{name:"Label",type:"esriFieldTypeString",alias:"Label",domain:null,length:50}],features:i.map(e=>({attributes:e}))};r&&a.fields.push({name:"Red",type:"esriFieldTypeInteger",alias:"Red",domain:null},{name:"Green",type:"esriFieldTypeInteger",alias:"Green",domain:null},{name:"Blue",type:"esriFieldTypeInteger",alias:"Blue",domain:null}),t[e].attributeTable=a}}return t}function ee(e){let t=Number.MAX_VALUE,i=-Number.MAX_VALUE;for(let r=0;r<e.length;r++){let a=e[r];null!=a&&(a<t&&(t=a),a>i&&(i=a))}return(0,q.X1)(t,i)}function te(e,t,i){let r=e.map((e,i)=>({name:e,count:t[i]})).sort((e,t)=>e.name>t.name?-1:1),a=(e=>t=>e*=t.count)(1),n=[...r.slice(1),{name:"",count:1}].reverse().map(a).reverse(),s=0;for(let a=e.length-1;a>=0;a--){let l=r.findIndex(({name:t})=>t===e[a]);s+=n[l]*(i%t[a]),i=Math.floor(i/t[a])}return s}var ie=i(45617),re=i(87186),ae=i(47520),ne=i(4366);let se=class extends J.A{constructor(){super(...arguments),this._pixelBlockTiles=new Map,this.datasetFormat="MEMORY",this.preGenerateTiles=!0,this.source=null}get url(){return""}async fetchRawTile(e,t,i,r={}){let a=`${e}/${t}/${i}`,n=this._pixelBlockTiles.get(a);if(n)return n;if(!this.source)return null;let{rasterInfo:s}=this,[l,o]=s.storageInfo.tileInfo.size,{sliceId:u}=r,{encodedData:f}=this.source;if(f){let n=await this.decodePixelBlock(f,{tileSize:[l,o],tileIndex:[e,t,i],canvasUsage:"canvas-only",cloneSource:!0,skipStatistics:!0},{signal:r.signal});return n&&this._pixelBlockTiles.set(a,n),n}let{pixelBlocks:h}=this.source,c=null==u?h[0]:h[u];if(null==c)return null;let d={pixelBlock:c,useBilinear:"thematic"!==s.dataType,tileSize:{width:l,height:o},level:e,row:t,col:i};return this.rasterJobHandler?this.rasterJobHandler.clipTile(d,r):(0,ae.J$)(d)}async _open(e){if(!this.source)throw new o.A("in-memory-raster:open","source is required to open an in memory raster");let t=this.source;this.datasetName=t.name;let{pixelBlocks:i,attributeTable:r,statistics:a,histograms:n,nativeExtent:s,transform:l,colormap:u}=t,f=i[0],{width:h,height:c,pixelType:d}=f??t.imageInfo,p=t.extent??new H.A({xmin:-.5,ymin:.5,xmax:h-.5,ymax:c-.5,spatialReference:new j.A({wkid:3857})}),m=t.isPseudoSpatialReference??!t.extent,g={x:p.width/h,y:p.height/c},y={...t.keyProperties};t.dataType&&(y.DataType=t.dataType),t.bandInfos&&(y.BandProperties=t.bandInfos.map(e=>e.toJSON())),r&&(y.DataType="Thematic");let w=new re.A({width:h,height:c,pixelType:d,extent:p,nativeExtent:s,attributeTable:r,colormap:u,transform:l,pixelSize:g,spatialReference:p.spatialReference,bandCount:f?.pixels.length??t.imageInfo.bandCount,keyProperties:y,multidimensionalInfo:t.multidimensionalInfo,statistics:a,isPseudoSpatialReference:m,histograms:n});this.ioConfig.skipMapInfo&&this.updateImageSpaceRasterInfo(w),this.createRemoteDatasetStorageInfo(w,512,512),this._set("rasterInfo",w),this.updateTileInfo(),w.multidimensionalInfo?await this._buildMDimStats(i,w.multidimensionalInfo):this.preGenerateTiles&&f&&(await this._buildInMemoryRaster(f,{width:512,height:512},e),this.source=null)}async _buildInMemoryRaster(e,t,i){let{rasterInfo:r}=this,a=r.storageInfo.maximumPyramidLevel??0,n="thematic"!==r.dataType,s=this.rasterJobHandler?this.rasterJobHandler.split({pixelBlock:e,tileSize:t,maximumPyramidLevel:a,useBilinear:n},i):Promise.resolve((0,ae.lD)(e,t,a,n)),l=null!=r.statistics,u=null!=r.histograms,f=this.ioConfig.skipStatistics||l?Promise.resolve({statistics:null,histograms:null}):this.rasterJobHandler?this.rasterJobHandler.estimateStatisticsHistograms({pixelBlock:e},i):Promise.resolve((0,$.f4)(e)),h=await(0,c.Lx)([s,f]);if(!h[0].value)throw new o.A("in-memory-raster:open","failed to build in memory raster");this._pixelBlockTiles=h[0].value,l||(r.statistics=h[1].value?.statistics),u||(r.histograms=h[1].value?.histograms)}async _buildMDimStats(e,t,i){for(let r=0;r<t.variables.length;r++){let a=t.variables[r];if(a.statistics)continue;let n=a.dimensions.map(e=>new ie.A({variableName:a.name,dimensionName:e.name,values:[e.values?.[0]??e.extent?.[0]],isSlice:!0})),s=(0,ne.NG)(n,t),l=null==s?null:e[s];if(null==l)continue;let o=this.rasterJobHandler?await this.rasterJobHandler.computeStatisticsHistograms({pixelBlock:l},i):(0,$.eH)(l);a.statistics=o.statistics,a.histograms||=o.histograms}}};(0,a.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],se.prototype,"datasetFormat",void 0),(0,a.Cg)([(0,n.MZ)({constructOnly:!0})],se.prototype,"preGenerateTiles",void 0),(0,a.Cg)([(0,n.MZ)()],se.prototype,"source",void 0),(0,a.Cg)([(0,n.MZ)()],se.prototype,"url",null),se=(0,a.Cg)([(0,n.$K)("esri.layers.raster.datasets.InMemoryRaster")],se);const le=se;let oe=class extends J.A{constructor(){super(...arguments),this.datasetFormat="CovJSON"}fetchRawTile(e,t,i,r={}){return this._inMemoryRaster.fetchRawTile(e,t,i,r)}async _open(e){let{extent:t,pixelBlocks:i,multidimensionalInfo:r,attributeTable:a,bandNames:n}=await this._fetchData(e),{statistics:s,histograms:l}=(0,$.eH)(i[0]),o=n?.map(e=>({BandName:e})),u={DataType:a?"Thematic":r?"Scientific":"Generic",BandProperties:o},f=new le({source:{extent:t,pixelBlocks:i,attributeTable:a?B.A.fromJSON(a):null,multidimensionalInfo:r,statistics:s,histograms:l,keyProperties:u,isPseudoSpatialReference:!1}});await f.open(),this._inMemoryRaster=f;let h=this.source?"":this.url.slice(this.url.lastIndexOf("/")+1);this._set("datasetName",h.slice(0,h.indexOf("."))),this._set("rasterInfo",f.rasterInfo)}async _fetchData(e){let t=this.source??(await this.request(this.url,{signal:e?.signal})).data,i="imagery-tile-layer:open-coverage-json";if("coverage"!==t.type?.toLowerCase()||"grid"!==t.domain?.domainType?.toLowerCase())throw new o.A(i,"Only coverage with Grid domain type is supported");if(!t.ranges)throw new o.A(i,"Missing ranges in the grid coverage data");if(!t.domain.referencing?.length)throw new o.A(i,"Missing domain referencing in the grid coverage data");let r=Object.values(t.ranges);for(let e=0;e<r.length;e++){let{axisNames:t,shape:a,type:n,values:s}=r[e];if(!("ndarray"===n.toLowerCase()&&s?.length&&t?.length&&a?.length))throw new o.A(i,"Only ranges with valid NdArray, axisNames, shape, and inline values are supported");if(!W(t[t.length-1])||!G(t[t.length-2]))throw new o.A(i,"Only row-major ordered pixel values are supported. X axis must be the last axis.")}return function(e){let{width:t,height:i,extent:r,dimensions:a}=X(e),{ranges:n}=e,s=Object.keys(n).sort((e,t)=>e<t?-1:1),l=[];for(let e=0;e<s.length;e++){let t=s[e];a?.length&&l.push({name:t,dimensions:a})}let o=Q(e);l.forEach(e=>o[e.name]&&Object.assign(e,o[e.name]));let u=l.length?{variables:l}:void 0,f=[];for(let e=0;e<s.length;e++){let{values:r,dataType:l,axisNames:o,shape:u}=n[s[e]],h=u.length>2?e*u.slice(0,-2).reduce((e,t)=>e*t):0,c=o.slice(0,-2),d=u.slice(0,-2),p="float"===l?"f32":ee(r),m=t*i,g=r.length/m;for(let n=0;n<g;n++){let s=V.A.createEmptyBand(p,m),l=new Uint8Array(m).fill(255),o=!1,u=n*m;for(let e=0;e<m;e++){let t=r[u+e];null==t?(l[e]=0,o=!0):s[e]=t}if(0===e||a?.length){let e=new V.A({width:t,height:i,mask:o?l:null,pixels:[s],pixelType:p});e.updateStatistics(),a?.length?f[te(c,d,n)+h]=e:f.push(e)}else{let e=f[n];e.pixels.push(s),o?e.mask&&=V.A.combineBandMasks([e.mask,l]):e.mask=o?l:null}}}return{extent:r,pixelBlocks:f,multidimensionalInfo:u,attributeTable:Object.values(o).find(e=>e.attributeTable)?.attributeTable,bandNames:u?void 0:s}}(t)}};(0,a.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],oe.prototype,"datasetFormat",void 0),(0,a.Cg)([(0,n.MZ)({constructOnly:!0})],oe.prototype,"source",void 0),oe=(0,a.Cg)([(0,n.$K)("esri.layers.raster.datasets.CovJSONRaster")],oe);const ue=oe;var fe=i(85951),he=i(33196),ce=i(43163),de=i(4576),pe=i(21325),me=i(330);function ge(e,t){if(!e||!t)return null;let i=[];for(let r=0;r<e.length;r++)i.push(e[r]),i.push(t[r]);return i}function ye(e){if(!e)return null;let t=Number(e);if(!isNaN(t)&&0!==t)return new j.A({wkid:t});if(e=String(e).trim(),(0,pe.jp)(e))return new j.A({wkt2:e});let i=e.toUpperCase();if(i.startsWith("COMPD_CS")){if(!i.includes("VERTCS")||!i.includes("GEOGCS")&&!i.startsWith("PROJCS"))return null;let r=i.indexOf("VERTCS"),a=i.indexOf("PROJCS"),n=a>-1?a:i.indexOf("GEOGCS");if(-1===n)return null;let s=e.slice(n,e.lastIndexOf("]",r)+1).trim(),l=e.slice(r,e.lastIndexOf("]")).trim();t=we(s);let o=t?new j.A({wkid:t}):new j.A({wkt:s}),u=we(l);return u&&(o.vcsWkid=u),o}return i.startsWith("GEOGCS")||i.startsWith("PROJCS")?(t=we(e),0===t?new j.A({wkt:e}):new j.A({wkid:t})):null}function we(e){let t=e.replaceAll("]","[").replaceAll('"',"").split("[").map(e=>e.trim()).filter(e=>""!==e),i=t[t.length-1].split(","),r=i[0]?.toLowerCase();if(("epsg"===r||"esri"===r)&&e.endsWith('"]]')){let e=Number(i[1]);if(!isNaN(e)&&0!==e)return e}return 0}function xe(e){if("pamdataset"!==e?.documentElement.tagName?.toLowerCase())return{};let t={spatialReference:null,transform:null,metadata:{},rasterBands:[],statistics:null,histograms:null};e.documentElement.childNodes.forEach(e=>{if(1===e.nodeType)if((0,me.g7)(e,"SRS")){if(!t.spatialReference){let i=(0,me.mX)(e);t.spatialReference=ye(i)}}else if((0,me.g7)(e,"Metadata"))if("xml:ESRI"===e.getAttribute("domain")){let{spatialReference:i,transform:r}=function(e){let t=(0,me.V6)(e,"GeodataXform"),i=ye((0,me.v7)(t,"SpatialReference/WKID")||(0,me.mX)(t,"SpatialReference/WKT"));if("typens:PolynomialXform"!==t.getAttribute("xsi:type"))return{spatialReference:i,transform:null};let r=(0,me.v7)(t,"PolynomialOrder")??1,a=(0,me.Ui)(t,"CoeffX/Double"),n=(0,me.Ui)(t,"CoeffY/Double"),s=(0,me.Ui)(t,"InverseCoeffX/Double"),l=(0,me.Ui)(t,"InverseCoeffY/Double"),o=ge(a,n),u=ge(s,l);return{spatialReference:i,transform:o&&u&&o.length&&u.length?new ce.A({spatialReference:i,polynomialOrder:r,forwardCoefficients:o,inverseCoefficients:u}):null}}(e);t.transform=r,t.spatialReference||=i}else(0,me.IC)(e,"MDI").forEach(e=>t.metadata[e.getAttribute("key")]=(0,me.mX)(e));else if((0,me.g7)(e,"PAMRasterBand")){let i=function(e){let t,i,r,a,n=(0,me.v7)(e,"NoDataValue"),s=(0,me.V6)(e,"Histograms/HistItem"),l=(0,me.v7)(s,"HistMin"),o=(0,me.v7)(s,"HistMax"),u=(0,me.v7)(s,"BucketCount"),f=(0,me.mX)(s,"HistCounts")?.split("|").map(e=>Number(e));(0,me.IC)(e,"Metadata/MDI").forEach(e=>{let n=Number(e.textContent??e.nodeValue);switch(e.getAttribute("key").toUpperCase()){case"STATISTICS_MINIMUM":t=n;break;case"STATISTICS_MAXIMUM":i=n;break;case"STATISTICS_MEAN":r=n;break;case"STATISTICS_STDDEV":a=n}});let h=(0,me.v7)(e,"Metadata/SourceBandIndex");return{noDataValue:n,histogram:f?.length&&null!=l&&null!=o?{min:l,max:o,size:u||f.length,counts:f}:null,sourceBandIndex:h,statistics:null!=t&&null!=i?{min:t,max:i,avg:r,stddev:a}:null}}(e);null!=i.sourceBandIndex&&null==t.rasterBands[i.sourceBandIndex]?t.rasterBands[i.sourceBandIndex]=i:t.rasterBands.push(i)}});let i=t.rasterBands;return i.length&&(t.statistics=i[0].statistics?i.map(e=>e.statistics).filter(de.Ru):null,t.histograms=i[0].histogram?i.map(e=>e.histogram).filter(de.Ru):null),t}const ve="image-aux-raster:open",be="The data is not a supported format.";let Ie=class extends J.A{set rasterJobHandler(e){this._set("rasterJobHandler",e),this._inMemoryRaster&&(this._inMemoryRaster.rasterJobHandler=e)}async fetchRawTile(e,t,i,r={}){return this._inMemoryRaster?.fetchRawTile(e,t,i,r)}async _open(e){let t,{data:i,format:r}=await this._fetchData(e),{tileGeneration:a}=this.ioConfig,n="immediate"===a||"jpg"!==r;if(n){let a=await this._decodeFullImage(i,r,e);if(!a)throw new o.A(ve,"The data cannot be decoded.");t=await this._createRasterSource(a,e)}else{let r=(0,fe.R)(i);if(!r)throw new o.A(ve,be);t=await this._createRasterSource(r,e),t.encodedData=i}let{rasterJobHandler:s,ioConfig:l}=this,u=new le({preGenerateTiles:n,rasterJobHandler:s,source:t,ioConfig:{...l,sampling:"closest",skipStatistics:!0}});await u.open(e),this._set("rasterInfo",u.rasterInfo),this._inMemoryRaster=u}async _createRasterSource(e,t){let{spatialReference:i,statistics:r,histograms:a,transform:n}=await this._fetchAuxiliaryData(t),s=!i;s&&(i=new j.A({wkid:3857})),a?.length&&null==r&&(r=(0,$.Pg)(a));let{width:l,height:o}=e,u=new H.A({xmin:-.5,ymin:.5-o,xmax:l-.5,ymax:.5,spatialReference:i}),f=n?n.forwardTransform(u):u,h=!0;if(n){let e=n.forwardCoefficients;h=e&&0===e[1]&&0===e[2],h&&(n=null,u=f)}let c=[];return"pixels"in e&&c.push(e),{name:this.datasetName,pixelBlocks:c,imageInfo:{width:l,height:o,pixelType:"u8",bandCount:3},extent:f,nativeExtent:u,transform:n,statistics:r,histograms:a,isPseudoSpatialReference:s,keyProperties:{DataType:"Processed"}}}async _fetchData(e){let{data:t}=await this.request(this.url,{responseType:"array-buffer",signal:e?.signal}),i=(0,he.g)(t);if("jpg"!==i&&"png"!==i&&"gif"!==i&&"bmp"!==i)throw new o.A(ve,be);return this._set("datasetFormat",i.toUpperCase()),{data:t,format:i}}async _decodeFullImage(e,t,i){try{return await this.decodePixelBlock(e,{format:t,canvasUsage:"canvas-only",cloneSource:!0,skipStatistics:!0},i)}catch{return(0,c.Te)(i?.signal),this.decodePixelBlock(e,{format:t,canvasUsage:"no-canvas",skipStatistics:!0},i)}}async _fetchAuxiliaryData(e){let t=e?.signal,{skipExtensions:i=[],skipMapInfo:r}=this.ioConfig,a=r||i.includes("aux.xml")?null:this.request(this.url+".aux.xml",{responseType:"xml",signal:t}),n=this.datasetFormat,s="JPG"===n?"jgw":"PNG"===n?"pgw":"BMP"===n?"bpw":null,l=r||null==s||i.includes(s)?null:this.request(this.url.slice(0,this.url.lastIndexOf("."))+"."+s,{responseType:"text",signal:t}),o=await(0,c.Lx)([a,l]);if(t?.aborted)throw(0,c.NK)();let u=xe(o[0].value?.data);if(!u.transform){let e=o[1].value?o[1].value.data.split("\n").slice(0,6).map(e=>Number(e)):null;u.transform=6===e?.length?new ce.A({forwardCoefficients:[e[4],e[5],e[0],-e[1],e[2],-e[3]]}):null}return u}};(0,a.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],Ie.prototype,"datasetFormat",void 0),(0,a.Cg)([(0,n.MZ)()],Ie.prototype,"rasterJobHandler",null),Ie=(0,a.Cg)([(0,n.$K)("esri.layers.raster.datasets.ImageAuxRaster")],Ie);const Ae=Ie;var Se=i(84952),Ce=i(86738),_e=i(82371),Re=i(20223),Te=i(87045),Me=i(25943);let Oe=class extends J.A{constructor(){super(...arguments),this._levelOffset=0,this._tilemapCache=null,this._slices=null,this.datasetFormat="RasterTileServer",this.tileType=null}async fetchRawTile(e,t,i,r={}){let{storageInfo:a,extent:n}=this.rasterInfo,{transposeInfo:s}=a,l=null!=s&&!!r.transposedVariableName;if(this._slices&&!l&&null==r.sliceId)return null;let o,u,f=l?0:a.maximumPyramidLevel-e+this._levelOffset,h=`${this.url}/tile/${f}/${t}/${i}`,c={...this._slices?l?{variable:r.transposedVariableName}:{sliceId:r.sliceId||0}:null,...r.refreshParameters};if(a.isBsqTile){let e=(r.bandIds?.length?r.bandIds:[0,1,2]).map(e=>this.request(h,{query:{...c,bandId:e},responseType:"array-buffer",signal:r.signal})),t=await Promise.all(e),i=t.map(e=>e.data.byteLength).reduce((e,t)=>e+t),a=new Uint8Array(i);u=[];let n=0;for(let{data:e}of t)u.push(n),a.set(new Uint8Array(e),n),n+=e.byteLength;o=a.buffer}else o=(await this.request(h,{query:c,responseType:"array-buffer",signal:r.signal})).data;if(!o)return null;let{tileInfo:d}=a,p=l?s.tileSize:d.size,m=/^(mixed|jp)/i.test(d.format),g="raw"===d.format,y=await this.decodePixelBlock(o,{format:g?"bsq":void 0,width:p[0],height:p[1],planes:u?.length,offsets:u,pixelType:g?this.rasterInfo.pixelType:void 0,isPoint:"Elevation"===this.tileType,returnInterleaved:l,noDataValue:this.rasterInfo.noDataValue,applyJpegMask:m},{signal:r.signal});if(null==y)return null;let w=a.blockBoundary[e];if("jpg"!==a.compression||i>w.minCol&&i<w.maxCol&&t>w.minRow&&t<w.maxRow)return y;let{origin:x,blockWidth:v,blockHeight:b}=a,{x:I,y:A}=this.getPyramidPixelSize(e),S=Math.round((n.xmin-x.x)/I)%v,C=Math.round((n.xmax-x.x)/I)%v||v,_=Math.round((x.y-n.ymax)/A)%b,R=Math.round((x.y-n.ymin)/A)%b||b,T=i===w.minCol?S:0,M=t===w.minRow?_:0,O=i===w.maxCol?C:v,k=t===w.maxRow?R:b;return(0,ae.z$)(y,{x:T,y:M},{width:O-T,height:k-M}),y}getSliceIndex(e){if(!this._slices||null==e||0===e.length)return null;let t=e;for(let e=0;e<this._slices.length;e++){let i=this._slices[e].multidimensionalDefinition;if(i.length===t.length&&!i.some(e=>{let i=t.find(t=>e.variableName===t.variableName&&t.dimensionName===e.dimensionName);return!i||(Array.isArray(e.values[0])?`${e.values[0][0]}-${e.values[0][1]}`:e.values[0])!==(Array.isArray(i.values[0])?`${i.values[0][0]}-${i.values[0][1]}`:i.values[0])}))return e}return null}async fetchVariableStatisticsHistograms(e,t){let i=this.request(this.url+"/statistics",{query:{variable:e,f:"json"},signal:t}).then(e=>e.data?.statistics),r=this.request(this.url+"/histograms",{query:{variable:e,f:"json"},signal:t}).then(e=>e.data?.histograms),a=await Promise.all([i,r]);return a[0]&&a[0].forEach(e=>{e.avg=e.mean,e.stddev=e.standardDeviation}),a[1]?.[0]?.counts?.length||(a[1]=null),{statistics:a[0]||null,histograms:a[1]||null}}async computeBestPyramidLevelForLocation(e,t={}){if(!this._tilemapCache)return 0;let i=this.identifyPixelLocation(e,0,t.datumTransformation);if(null===i)return null;let r=0,{maximumPyramidLevel:a}=this.rasterInfo.storageInfo,n=a-r+this._levelOffset,s=i.srcLocation;for(;n>=0;){try{if("available"===await this._tilemapCache.fetchAvailability(n,i.row,i.col,t))break}catch{}if(n--,r++,i=this.identifyPixelLocation(s,r,t.datumTransformation),null===i)return null}return-1===n||null==i?null:r}async _open(e){let t=e?.signal,i=this.sourceJSON?{data:this.sourceJSON}:await this.request(this.url,{query:{f:"json"},signal:t});i.ssl&&(this.url=this.url.replace(/^http:/i,"https:"));let r=i.data;if(this.sourceJSON=r,!r)throw new o.A("imageserverraster:open","cannot initialize tiled image service, missing service info");if(!r.tileInfo)throw new o.A("imageserverraster:open","use ImageryLayer to open non-tiled image services");this._fixScaleInServiceInfo();this.tileType=r.cacheType,this.tileType??=["jpg","jpeg","png","png8","png24","png32","mixed"].includes(r.tileInfo.format.toLowerCase())?"Map":"lerc"===r.tileInfo.format.toLowerCase()?"Elevation":"Raster",this.datasetName=r.name?.slice(r.name.indexOf("/")+1)??"";let a=this.rasterInfo??await this._fetchRasterInfo({signal:t});if(null==a)throw new o.A("image-server-raster:open","cannot initialize image service");(0,_e.E9)(a,r);let n="Map"===this.tileType?function(e,t){if(!e)return null;let{minScale:i,maxScale:r,minLOD:a,maxLOD:n}=t;if(null!=a&&null!=n)return Te.A.fromJSON({...e,lods:e.lods.filter(({level:e})=>null!=e&&e>=a&&e<=n)});if(0!==i&&0!==r){let t=e=>Math.round(1e4*e)/1e4,a=i?t(i):1/0,n=r?t(r):-1/0;return Te.A.fromJSON({...e,lods:e.lods.filter(e=>{let i=t(e.scale);return i<=a&&i>=n})})}return Te.A.fromJSON(e)}(r.tileInfo,r):Te.A.fromJSON(r.tileInfo);(0,f.Lw)(n);let[s,l]=this._computeMinMaxLOD(a,n),{extent:u,pixelSize:h}=a,c=.001*Math.min(h.x,h.y);(h.x!==h.y||Math.abs(s.resolution-h.x)>c)&&(h.x=h.y=s.resolution,a.width=Math.ceil((u.xmax-u.xmin)/h.x-.1),a.height=Math.ceil((u.ymax-u.ymin)/h.y-.1));let d=s.level-l.level,[p,m]=n.size,g=[],y=[],{lods:w}=n;w.forEach((e,t)=>{e.level>=l.level&&e.level<=s.level&&g.push({x:e.resolution,y:e.resolution}),t<w.length-1&&y.push(Math.round(10*e.resolution/w[t+1].resolution)/10)}),g.sort((e,t)=>e.x-t.x);let x,v=this.computeBlockBoundary(u,p,m,n.origin,g,d),b=g.length>1?g.slice(1):null;r.transposeInfo&&(x={tileSize:[r.transposeInfo.rows,r.transposeInfo.cols],packetSize:a.keyProperties?._yxs.PacketSize??0});let I=y.length<=1||y.length>=3&&y.slice(0,-1).every(e=>e===y[0])?y[0]??2:Math.round(10/(l.resolution/s.resolution)**(-1/d))/10,A=!!r.bsq&&"Raster"===this.tileType;if(a.storageInfo=new Re.A({blockWidth:n.size[0],blockHeight:n.size[1],pyramidBlockWidth:n.size[0],pyramidBlockHeight:n.size[1],pyramidResolutions:b,pyramidScalingFactor:I,compression:n.format,origin:n.origin,firstPyramidLevel:1,maximumPyramidLevel:d,tileInfo:n,isBsqTile:A,transposeInfo:x,blockBoundary:v}),(0,L.vj)(a),this._set("rasterInfo",a),r.capabilities.toLowerCase().includes("tilemap")){let e={tileInfo:a.storageInfo.tileInfo,parsedUrl:(0,Se.An)(this.url),url:this.url,tileServers:[]};this._tilemapCache=new Me.d({layer:e})}}async _fetchRasterInfo(e){let t=this.sourceJSON;if("Map"===this.tileType){let e=t.fullExtent||t.extent,i=Math.ceil((e.xmax-e.xmin)/t.pixelSizeX-.1),r=Math.ceil((e.ymax-e.ymin)/t.pixelSizeY-.1),a=j.A.fromJSON(t.spatialReference||e.spatialReference),n=new Ce.A({x:t.pixelSizeX,y:t.pixelSizeY,spatialReference:a});return new re.A({width:i,height:r,bandCount:3,extent:H.A.fromJSON(e),spatialReference:a,pixelSize:n,pixelType:"u8",statistics:null,keyProperties:{DataType:"processed"}})}let i={...e,query:{...this.ioConfig.customFetchParameters,f:"json"}},r=(0,_e.Tw)(this.url,this.sourceJSON,i),a=t.hasMultidimensions?this.request(`${this.url}/slices`,i).then(e=>e.data?.slices).catch(()=>null):null,n=await Promise.all([r,a]);return this._slices=n[1],n[0]}_fixScaleInServiceInfo(){let{sourceJSON:e}=this;e.minScale&&e.minScale<0&&(e.minScale=0),e.maxScale&&e.maxScale<0&&(e.maxScale=0)}_computeMinMaxLOD(e,t){let{pixelSize:i}=e,r=.5/e.width*i.x,{lods:a}=t,n=t.lodAt(Math.max.apply(null,a.map(e=>e.level))),s=t.lodAt(Math.min.apply(null,a.map(e=>e.level))),{tileType:l}=this;if("Map"===l)return this._levelOffset=a[0].level,[n,s];if("Raster"===l)return[a.find(e=>e.resolution===i.x)??n,s];let{minScale:o,maxScale:u}=this.sourceJSON,f=n;u>0&&(f=a.find(e=>Math.abs(e.scale-u)<r),f||=a.filter(e=>e.scale>u).sort((e,t)=>e.scale>t.scale?1:-1)[0]??n);let h=s;return o>0&&(h=a.find(e=>Math.abs(e.scale-o)<r)??s,this._levelOffset=h.level-s.level),[f,h]}};(0,a.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],Oe.prototype,"datasetFormat",void 0),(0,a.Cg)([(0,n.MZ)()],Oe.prototype,"tileType",void 0),Oe=(0,a.Cg)([(0,n.$K)("esri.layers.raster.datasets.ImageServerRaster")],Oe);const ke=Oe;var Fe=i(10713);const De=new Map([["byte","u8"],["signedbyte","s8"],["int8","s8"],["uint8","u8"],["int16","s16"],["uint16","u16"],["int32","s32"],["uint32","u32"],["float32","f32"],["float64","f64"],["double64","f64"]]),Ne=new Map;Ne.set("none",{blobExtension:".til",isOneSegment:!0,decoderFormat:"bip"}),Ne.set("lerc",{blobExtension:".lrc",isOneSegment:!1,decoderFormat:"lerc"}),Ne.set("deflate",{blobExtension:".pzp",isOneSegment:!0,decoderFormat:"deflate"}),Ne.set("jpeg",{blobExtension:".pjg",isOneSegment:!0,decoderFormat:"jpg"}),Ne.set("qb3",{blobExtension:".pq3",isOneSegment:!0,decoderFormat:"qb3"});let Pe=class extends J.A{constructor(){super(...arguments),this._files=null,this._storageIndex=null,this._isBsq=!1,this.datasetFormat="MRF"}async fetchRawTile(e,t,i,r={}){let{blockWidth:a,blockHeight:n,blockBoundary:s}=this.rasterInfo.storageInfo,l=s[e];if(!l||l.maxRow<t||l.maxCol<i||l.minRow>t||l.minCol>i)return null;let{bandCount:o,pixelType:u}=this.rasterInfo,{ranges:f,actualTileWidth:h,actualTileHeight:c}=this._getTileLocation(e,t,i);if(!f||0===f.length)return null;if(f.some(e=>e.from>e.to)){let e=new Uint8Array(a*n);return new V.A({width:a,height:n,pixels:void 0,mask:e,validPixelCount:0})}let{bandIds:d}=this.ioConfig,p=this._getBandSegmentCount(),m=[],g=0;for(g=0;g<p;g++)(!d||d.includes(g))&&m.push(this.request(this._files.data,{range:{from:f[g].from,to:f[g].to},responseType:"array-buffer",signal:r.signal}));let y=await Promise.all(m),w=y.map(e=>e.data.byteLength).reduce((e,t)=>e+t),x=new Uint8Array(w),v=[],b=0;for(g=0;g<p;g++)v.push(b),x.set(new Uint8Array(y[g].data),b),b+=y[g].data.byteLength;let I=Ne.get(this.rasterInfo.storageInfo.compression).decoderFormat,A="jpg"===I&&4===o&&1===v.length,S=await this.decodePixelBlock(x.buffer,{width:a,height:n,format:I,planes:d?.length||o,offsets:v,pixelType:u,canvasUsage:A?"no-canvas":void 0,decodeJpegAsRgb:!1},{signal:r.signal});if(null==S)return null;let{noDataValue:C}=this.rasterInfo;if(null!=C&&"lerc"!==I&&!S.mask&&(C=C[0],null!=C)){let e=S.width*S.height,t=new Uint8Array(e);if(Math.abs(C)>1e24)for(g=0;g<e;g++)Math.abs((S.pixels[0][g]-C)/C)>1e-6&&(t[g]=1);else for(g=0;g<e;g++)S.pixels[0][g]!==C&&(t[g]=1);S.mask=t}let _=0,R=0;if(h!==a||c!==n){let e=S.mask;if(e)for(g=0;g<n;g++)if(R=g*a,g<c)for(_=h;_<a;_++)e[R+_]=0;else for(_=0;_<a;_++)e[R+_]=0;else for(e=new Uint8Array(a*n),S.mask=e,g=0;g<c;g++)for(R=g*a,_=0;_<h;_++)e[R+_]=1}return S}async _open(e){this.datasetName=this.url.slice(this.url.lastIndexOf("/")+1);let t=e?e.signal:null,i=await this.request(this.url,{responseType:"xml",signal:t}),{rasterInfo:r,files:a}=this._parseHeader(i.data),{skipMapInfo:n,skipExtensions:s=[]}=this.ioConfig;if(!s.includes("aux.xml")&&!n){let t=await this._fetchAuxiliaryData(e);null!=t&&(r.statistics=t.statistics??r.statistics,r.histograms=t.histograms,t.histograms&&null==r.statistics&&(r.statistics=(0,$.Pg)(t.histograms)))}n&&this.updateImageSpaceRasterInfo(r),this._set("rasterInfo",r),this._files=a;let l=await this.request(a.index,{responseType:"array-buffer",signal:t});this._storageIndex=function(e){if(e.byteLength%16>0)throw Error("invalid array buffer must be multiples of 16");let t;if(Fe.Z){let i=new Uint8Array(e),r=new ArrayBuffer(e.byteLength),a=new Uint8Array(r);for(let t=0;t<e.byteLength/4;t++)for(let e=0;e<4;e++)a[4*t+e]=i[4*t+3-e];t=new Uint32Array(r)}else t=new Uint32Array(e);return t}(l.data);let{blockWidth:o,blockHeight:u}=this.rasterInfo.storageInfo,f=this.rasterInfo.storageInfo.pyramidScalingFactor,{width:h,height:c}=this.rasterInfo,d=[],p=this._getBandSegmentCount(),m=0,g=-1;for(;m<this._storageIndex.length;){g++;let e=Math.ceil(h/o/f**g)-1,t=Math.ceil(c/u/f**g)-1;m+=(e+1)*(t+1)*p*4,d.push({maxRow:t,maxCol:e,minCol:0,minRow:0})}this.rasterInfo.storageInfo.blockBoundary=d,g>0&&(this.rasterInfo.storageInfo.firstPyramidLevel=1,this.rasterInfo.storageInfo.maximumPyramidLevel=g),this.updateTileInfo()}_getBandSegmentCount(){return this._isBsq?this.rasterInfo.bandCount:1}_getTileLocation(e,t,i){let r,a,n,{blockWidth:s,blockHeight:l,pyramidScalingFactor:o}=this.rasterInfo.storageInfo,{width:u,height:f}=this.rasterInfo,h=this._getBandSegmentCount(),c=0,d=0;for(n=0;n<e;n++)d=o**n,r=Math.ceil(u/s/d),a=Math.ceil(f/l/d),c+=r*a;d=o**e,r=Math.ceil(u/s/d),a=Math.ceil(f/l/d),c+=t*r+i,c*=4*h;let p=this._storageIndex.subarray(c,c+4*h),m=0,g=0,y=[];for(let e=0;e<h;e++)m=p[4*e]*2**32+p[4*e+1],g=m+p[4*e+2]*2**32+p[4*e+3]-1,y.push({from:m,to:g});return{ranges:y,actualTileWidth:i<r-1?s:Math.ceil(u/d)-s*(r-1),actualTileHeight:t<a-1?l:Math.ceil(f/d)-l*(a-1)}}_parseHeader(e){let t=(0,me.V6)(e,"MRF_META/Raster");if(!t)throw new o.A("mrf:open","not a valid MRF format");let i=(0,me.V6)(t,"Size"),r=parseInt(i.getAttribute("x"),10),a=parseInt(i.getAttribute("y"),10),n=parseInt(i.getAttribute("c"),10),s=((0,me.mX)(t,"Compression")||"none").toLowerCase();if(!Ne.has(s))throw new o.A("mrf:open","currently does not support compression "+s);let l=(0,me.mX)(t,"DataType")||"UInt8",u=De.get(l.toLowerCase());if(null==u)throw new o.A("mrf:open","currently does not support pixel type "+l);let f=(0,me.V6)(t,"PageSize"),h=parseInt(f.getAttribute("x"),10),c=parseInt(f.getAttribute("y"),10),d=f.getAttribute("c"),p=d?d===String(n):Ne.get(s).isOneSegment;this._isBsq=!p;let m,g=(0,me.V6)(t,"DataValues");if(g){let e=g.getAttribute("NoData");null!=e&&(m=e.trim().split(" ").map(e=>parseFloat(e)))}if((0,me.V6)(e,"MRF_META/CachedSource"))throw new o.A("mrf:open","currently does not support MRF referencing other data files");let y,w=(0,me.V6)(e,"MRF_META/GeoTags"),x=(0,me.V6)(w,"BoundingBox"),v=!1;if(null!=x){let e=parseFloat(x.getAttribute("minx")),t=parseFloat(x.getAttribute("miny")),i=parseFloat(x.getAttribute("maxx")),r=parseFloat(x.getAttribute("maxy")),a=(0,me.mX)(w,"Projection")||"",n=j.A.WGS84;if("LOCAL_CS[]"!==a)if(a.toLowerCase().startsWith("epsg:")){let e=Number(a.slice(5));!isNaN(e)&&0!==e&&(n=new j.A({wkid:e}))}else n=ye(a)??j.A.WGS84;else v=!0,n=new j.A({wkid:3857});y=new H.A({xmin:e,ymin:t,xmax:i,ymax:r}),y.spatialReference=n}else v=!0,y=new H.A({xmin:-.5,ymin:.5-a,xmax:r-.5,ymax:.5,spatialReference:new j.A({wkid:3857})});let b=(0,me.V6)(e,"MRF_META/Rsets"),I=parseInt(b?.getAttribute("scale")||"2",10),A=y.spatialReference,S=new Re.A({origin:new Ce.A({x:y.xmin,y:y.ymax,spatialReference:A}),blockWidth:h,blockHeight:c,pyramidBlockWidth:h,pyramidBlockHeight:c,compression:s,pyramidScalingFactor:I}),C=new Ce.A({x:y.width/r,y:y.height/a,spatialReference:A}),_=new re.A({width:r,height:a,extent:y,isPseudoSpatialReference:v,spatialReference:A,bandCount:n,pixelType:u,pixelSize:C,noDataValue:m,storageInfo:S}),R=this._getAuxFullPath((0,me.mX)(t,"DataFile")),T=this._getAuxFullPath((0,me.mX)(t,"IndexFile"));return{rasterInfo:_,files:{mrf:this.url,index:T||this.url.replace(".mrf",".idx"),data:R||this.url.replace(".mrf",Ne.get(s).blobExtension)}}}_getAuxFullPath(e){return!e||e.includes("\\")?null:e.includes("/")?e.startsWith(new URL(this.url).origin)?e:null:`${this.url.slice(0,this.url.lastIndexOf("/"))}/${e}`}async _fetchAuxiliaryData(e){try{let{data:t}=await this.request(this.url+".aux.xml",{responseType:"xml",signal:e?.signal});return xe(t)}catch{return null}}};(0,a.Cg)([(0,n.MZ)()],Pe.prototype,"_files",void 0),(0,a.Cg)([(0,n.MZ)()],Pe.prototype,"_storageIndex",void 0),(0,a.Cg)([(0,n.MZ)()],Pe.prototype,"_isBsq",void 0),(0,a.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],Pe.prototype,"datasetFormat",void 0),Pe=(0,a.Cg)([(0,n.$K)("esri.layers.raster.datasets.MRFRaster")],Pe);const ze=Pe;i(44208);var Le=i(44094),Ee=i(94213),Be=i(9334);function $e(e){let t=e.fields,i=e.records,r=t.some(e=>"oid"===e.name.toLowerCase())?"OBJECTID":"OID",a=[{name:r,type:"esriFieldTypeOID",alias:"OID"}].concat(t.map(e=>({name:e.name,type:"esriFieldType"+e.typeName,alias:e.name}))),n=a.map(e=>e.name),s=[],l=0,o=0;return i.forEach(e=>{let t={};for(t[r]=l++,o=1;o<n.length;o++)t[n[o]]=e[o-1];s.push({attributes:t})}),{displayFieldName:"",fields:a,features:s}}function Je(e){let t=new DataView(e),i=3&t.getUint8(0);if(3!==i)return{header:{version:i},recordSet:null};let r=t.getUint32(4,!0),a=t.getUint16(8,!0),n=t.getUint16(10,!0),s={version:i,recordCount:r,headerByteCount:a,recordByteCount:n},l=32,o=[],u=[];for(;13!==t.getUint8(l);){let i=String.fromCharCode(t.getUint8(l+11)).trim();o.push({name:(0,Be.w)(new Uint8Array(e,l,11)),type:i,typeName:["String","Date","Double","Boolean","String","Integer"][["C","D","F","L","M","N"].indexOf(i)],length:t.getUint8(l+16)}),l+=32}if(l+=1,o.length>0)for(;u.length<r&&e.byteLength-l>n;){let i=[];32===t.getUint8(l)?(l+=1,o.forEach(t=>{if("C"===t.type)i.push((0,Be.w)(new Uint8Array(e,l,t.length)).trim());else if("N"===t.type)i.push(parseInt(String.fromCharCode.apply(null,new Uint8Array(e,l,t.length)).trim(),10));else if("F"===t.type)i.push(parseFloat(String.fromCharCode.apply(null,new Uint8Array(e,l,t.length)).trim()));else if("D"===t.type){let r=String.fromCharCode.apply(null,new Uint8Array(e,l,t.length)).trim();i.push(new Date(parseInt(r.slice(0,4),10),parseInt(r.slice(4,6),10)-1,parseInt(r.slice(6,8),10)))}l+=t.length}),u.push(i)):l+=n}return{header:s,fields:o,records:u,recordSet:$e({fields:o,records:u})}}const Ue="none-tiled tiff is not optimized for access, convert to COG and retry.";let He=class extends J.A{constructor(){super(...arguments),this._bufferSize=1048576,this._chunkSize=10485760,this._fileSize=-1,this._headerChunks=[],this.datasetFormat="TIFF",this.headerInfo=null}async fetchRawTile(e,t,i,r={}){if(!this.headerInfo?.isSupported||this.isBlockOutside(e,t,i))return null;let a=await this._fetchRawTiffTile(e,t,i,!1,r);if(null!=a&&this.headerInfo.hasMaskBand){let n=await this._fetchRawTiffTile(e,t,i,!0,r);null!=n&&n.pixels[0]instanceof Uint8Array&&(a.mask=n.pixels[0])}return a}async _open(e){this.datasetName=this.url.slice(this.url.lastIndexOf("/")+1,this.url.lastIndexOf(".")),await this._readHeader(e?.signal),await this._fetchAllAuxData(),this.ioConfig.skipMapInfo&&this.updateImageSpaceRasterInfo(this.rasterInfo),this.updateTileInfo()}async _readHeader(e){try{let t=await this._fetchHeaderData(0,this._bufferSize,e);if(!t)throw new o.A("tiffraster:open","failed to open url "+this.url);let{littleEndian:i,firstIFDPos:r,isBigTiff:a}=(0,Le.uT)(t),n=[],s={fileChunk:t,posIFD:r,fileOffset:0};await this._readIFDs(n,s,i,a?8:4,e);let{imageInfo:l,rasterInfo:u}=function(e){let t=(0,Le.uc)(e),{width:i,height:r,tileWidth:a,tileHeight:n,planes:s,pixelType:l,compression:o,firstPyramidLevel:u,maximumPyramidLevel:f,pyramidBlockWidth:h,pyramidBlockHeight:c,pyramidResolutions:d,tileBoundary:p,affine:m,metadata:g,colormap:y}=t,w=ye(t.extent.spatialReference?.wkt||t.extent.spatialReference?.wkid),x=!!t.isPseudoGeographic;w??=(x=!0,new j.A({wkid:3857}));let v=new H.A({...t.extent,spatialReference:w}),b=v?new Ce.A({x:v.xmin,y:v.ymax,spatialReference:w}):new Ce.A({x:0,y:0}),I=new Re.A({blockWidth:a,blockHeight:n,pyramidBlockWidth:h,pyramidBlockHeight:c,compression:o,origin:b,firstPyramidLevel:u,maximumPyramidLevel:f,pyramidResolutions:d,blockBoundary:p}),A=new Ce.A({x:(v.xmax-v.xmin)/i,y:(v.ymax-v.ymin)/r,spatialReference:w}),S=g?{BandProperties:g.bandProperties,DataType:g.dataType}:{},C=new re.A({width:i,height:r,bandCount:s,pixelType:l,pixelSize:A,storageInfo:I,spatialReference:w,isPseudoSpatialReference:x,keyProperties:S,extent:v,colormap:y,statistics:g?g.statistics:null});if(m?.length&&(C.nativeExtent=new H.A({xmin:-.5,ymin:.5-r,xmax:i-.5,ymax:.5,spatialReference:w}),C.transform=new ce.A({polynomialOrder:1,forwardCoefficients:[m[2]+m[0]/2,m[5]-m[3]/2,m[0],m[3],-m[1],-m[4]]}),C.extent=C.transform.forwardTransform(C.nativeExtent),C.pixelSize=new Ce.A({x:(v.xmax-v.xmin)/i,y:(v.ymax-v.ymin)/r,spatialReference:w}),I.origin.x=-.5,I.origin.y=.5),d){let{x:e,y:t}=C.pixelSize;d.forEach(i=>{i.x*=e,i.y*=t})}return{imageInfo:t,rasterInfo:C}}(n),f=(0,Le.zS)(n),h=(0,Le.r9)(n);this.headerInfo={littleEndian:i,isBigTiff:a,ifds:n,pyramidIFDs:f,maskIFDs:h,...l},this._set("rasterInfo",u),this._validateHeader()}finally{this._headerChunks.length=0}}_validateHeader(){let e=this.headerInfo;if(!e.isSupported)throw new o.A("tiffraster:open","this tiff is not supported: "+e.message);if(!e.tileWidth||!e.tileHeight)throw new o.A("tiffraster:open",Ue);this.rasterInfo.isPseudoSpatialReference&&u.A.getLogger(this).warn("The spatial reference for this tiff is unsupported. Only EPSG spatial reference codes and Esri WKTs are supported.");let t=e.ifds[0],i=t.get("PREDICTOR")?.values?.[0];if(3===t.get("SAMPLEFORMAT")?.values?.[0]&&2===i)throw new o.A("tiffraster:open","unsupported horizontal difference encoding. Predictor=3 is supported for floating point data")}async _fetchHeaderData(e,t,i){let r=this._getCachedHeaderData(e,t);if(r)return r;let a=Math.floor(e/this._bufferSize)*this._bufferSize,n=a+Math.max(1,Math.ceil((t-a)/this._bufferSize))*this._bufferSize,s=this._getMissingHeaderRanges(a,n).map(async e=>{let{from:t,to:r}=e,a=await this._fetchOffsets(t,r,i),n=this._fileSize;return{chunk:a,fileOffset:t,isEOF:n>0?t+a.byteLength>=n:a.byteLength<r-t+1}}),l=await Promise.all(s);this._headerChunks.push(...l),this._headerChunks.sort((e,t)=>e.fileOffset-t.fileOffset);let u=this._getCachedHeaderData(e,t);if(!u)throw new o.A("tiffraster:open",`failed to fetch byte range ${e}-${t} from ${this.url}`);return u}_getCachedHeaderData(e,t){let i=[],r=e;for(let{chunk:a,fileOffset:n,isEOF:s}of this._headerChunks){if(n+a.byteLength-1<r)continue;if(n>r)return null;let l=r-n,o=Math.min(t-n+1,a.byteLength);if(i.push({chunk:a,start:l,end:o}),r=n+o,r>t||s&&o===a.byteLength){let t=new Uint8Array(r-e),a=0;for(let e of i){let i=new Uint8Array(e.chunk,e.start,e.end-e.start);t.set(i,a),a+=i.byteLength}return t.buffer}}return null}_getMissingHeaderRanges(e,t){let i=[],r=(e,t)=>{let r=Math.floor(e/this._bufferSize)*this._bufferSize,a=Math.ceil(t/this._bufferSize)*this._bufferSize;i.push({from:r,to:a})},a=e;for(let{chunk:e,fileOffset:n,isEOF:s}of this._headerChunks){let l=n+e.byteLength-1;if(!(l<a)&&(n>a&&r(a,Math.min(n-1,t)),a=Math.max(a,l+1),a>t||s))return i}return a<=t&&r(a,t),i}async _validateOrFetchHeaderBuffer(e,t){let{fileChunk:i,fileOffset:r,posIFD:a}=e;if(a+8>=i.byteLength||a<0){if(r=a+r,r<0)throw new o.A("tiffraster:open",`invalid IFD position ${r}. failed to open url ${this.url}`);i=await this._fetchHeaderData(r,r+this._bufferSize/2,t),a=0}return{fileChunk:i,fileOffset:r,posIFD:a}}async _readIFDs(e,t,i,r=4,a){if(!t.posIFD)return null;t=await this._validateOrFetchHeaderBuffer(t,a);let n=await this._readIFD(t,i,Ee.NB,r,a);if(!n?.ifd)throw new o.A("tiffraster:open","cannot parse tiff header. failed to open url "+this.url);if(e.push(n.ifd),!n.nextIFD)return null;t.posIFD=n.nextIFD-t.fileOffset,await this._readIFDs(e,t,i,r,a)}async _readIFD(e,t,i=Ee.NB,r=4,a){let{fileChunk:n,posIFD:s,fileOffset:l}=e;if(!e.fileChunk)return null;let u=(0,Le.JM)(n,t,s,l,i,r);if(u.success){let{ifd:e}=u;if(!e)throw new o.A("tiffraster:open","cannot parse tiff header. failed to open url "+this.url);if(!(this.ioConfig.loadFullMetadata||i!==Ee.NB||e.has("TILEWIDTH")&&e.has("TILELENGTH")))throw new o.A("tiffraster:open",Ue);let r=[];e.forEach(e=>{e.values||r.push(e)}),r.length>0&&await this._fillOffsets(r,t,u.nextIFD,a),(0,Le.fM)(e),(0,Le.h_)(e);for(let[i,r]of Ee.RR){let o=e.get(i),u=null!=o?.data&&Array.from(o.data.values()).some(e=>null==e.values&&null!=e.offlineOffsetSize);if(o&&(!o.data||u)){s=o.valueOffset-l;let e=await this._validateOrFetchHeaderBuffer({fileChunk:n,posIFD:s,fileOffset:l},a);o.data=(await this._readIFD(e,t,r,4,a))?.ifd}}return u}return u.requiredBufferSize?(n=await this._fetchHeaderData(l,l+s+u.requiredBufferSize+8,a),n.byteLength<s+u.requiredBufferSize?null:(e.fileChunk=n,e.fileOffset=l,this._readIFD(e,t,i,r,a))):null}async _fillOffsets(e,t,i,r){let a=e.filter(e=>null!=e.offlineOffsetSize);if(0===a.length)return;let n=a.map(e=>e.offlineOffsetSize),s=Math.min.apply(null,n.map(e=>e[0])),l=Math.max.apply(null,n.map(e=>e[0]+e[1])),o=1===n.length||l-s<=this._bufferSize;if(!o&&n.length>1&&(n.sort((e,t)=>e[0]-t[0]),o=n.reduce((e,t)=>e===t[0]?t[0]+t[1]:0,n[0][0])===l),o){let e=Math.max(l,s+this._bufferSize/4),i=await this._fetchHeaderData(s,e,r);return void a.forEach(e=>(0,Le.Cr)(i,t,e,s))}let u=a.map(async e=>{let i=e.offlineOffsetSize,a=await this._fetchHeaderData(i[0],i[1]+i[0],r);(0,Le.Cr)(a,t,e,i[0])});await Promise.all(u)}async _fetchOffsets(e,t,i){let r=[],a=this._chunkSize;this._fileSize>0&&(t=Math.min(t,this._fileSize-1));let n=Math.ceil((t-e+1)/a),s=e;for(let e=0;e<n;e++)r.push(this.request(this.url,{range:{from:s,to:e===n-1?t:s+a-1},responseType:"array-buffer",signal:i})),s+=a;let l=await Promise.all(r);if(-1===this._fileSize&&206===l[0].httpStatus){let e=l[0].getHeader?.("Content-Range"),t=Number(e?.split("/",2)[1]);Number.isFinite(t)&&(this._fileSize=t)}if(1===l.length)return l[0].data;let o=l.reduce((e,t)=>e+t.data.byteLength,0),u=new Uint8Array(o),f=0;for(let e of l)u.set(new Uint8Array(e.data),f),f+=e.data.byteLength;return u.buffer}async _fetchRawTiffTile(e,t,i,r,a={}){let n=this._getTileLocation(e,t,i,r);if(!n)return null;let{ranges:s,actualTileWidth:l,actualTileHeight:o,ifd:u}=n,f=s.map(e=>this.request(this.url,{range:e,responseType:"array-buffer",signal:a.signal})),h=await Promise.all(f),c=h.map(e=>e.data.byteLength).reduce((e,t)=>e+t),d=1===h.length?h[0].data:new ArrayBuffer(c),p=[0],m=[d.byteLength];if(h.length>1){let e=new Uint8Array(d);for(let t=0,i=0;t<h.length;t++){let r=h[t].data;e.set(new Uint8Array(r),i),p[t]=i,i+=r.byteLength,m[t]=r.byteLength}}let{blockWidth:g,blockHeight:y}=this.getBlockWidthHeight(e),w=await this.decodePixelBlock(d,{format:"tiff",customOptions:{headerInfo:this.headerInfo,ifd:u,offsets:p,sizes:m},width:g,height:y,planes:null,pixelType:null},{signal:a.signal});if(null==w)return null;if(l!==g||o!==y){let e=w.mask;if(e)for(let t=0;t<y;t++){let i=t*g;if(t<o)for(let t=l;t<g;t++)e[i+t]=0;else for(let t=0;t<g;t++)e[i+t]=0}else{e=new Uint8Array(g*y),w.mask=e;for(let t=0;t<o;t++){let i=t*g;for(let t=0;t<l;t++)e[i+t]=1}}}return w}_getTileLocation(e,t,i,r=!1){let{firstPyramidLevel:a,blockBoundary:n}=this.rasterInfo.storageInfo,s=0===e?0:e-(a-1),{headerInfo:l}=this;if(!l)return null;let o=r?l.maskIFDs[s]:0===s?l.ifds[0]:l.pyramidIFDs[s-1];if(!o)return null;let u=(0,Le.XO)(o),f=(0,Le.wc)(o,"TILEOFFSETS"),h=(0,Le.wc)(o,"TILEBYTECOUNTS");if(!f?.length||!h?.length)return null;let{minRow:c,minCol:d,maxRow:p,maxCol:m}=n[s];if(t>p||i>m||t<c||i<d)return null;let g=(0,Le.LZ)(o,"IMAGEWIDTH"),y=(0,Le.LZ)(o,"IMAGELENGTH"),w=(0,Le.LZ)(o,"TILEWIDTH"),x=(0,Le.LZ)(o,"TILELENGTH"),v=[];if(u){let{bandCount:e}=this.rasterInfo;for(let r=0;r<e;r++){let e=r*(p+1)*(m+1)+t*(m+1)+i;v[r]={from:f[e],to:f[e]+h[e]-1}}}else{let e=t*(m+1)+i;v.push({from:f[e],to:f[e]+h[e]-1})}for(let e=0;e<v.length;e++)if(null==v[e].from||!v[e].to||v[e].to<0)return null;return{ranges:v,ifd:o,actualTileWidth:i===m&&g%w||w,actualTileHeight:t===p&&y%x||x}}async _fetchAllAuxData(e){if(this.ioConfig.skipMapInfo)return;let{rasterInfo:t}=this,{skipExtensions:i=[]}=this.ioConfig,r=i.includes("aux.xml")?Promise.resolve(null):this._fetchAuxiliaryMetaData(e),a=i.includes("vat.dbf")||1!==t.bandCount||"u8"!==t.pixelType?Promise.resolve(null):this._fetchAuxiliaryTable(e),[n,s]=await Promise.all([r,a]);null!=n&&function(e,t){if(t.statistics=e.statistics??t.statistics,t.histograms=e.histograms,e.histograms&&null==t.statistics&&(t.statistics=(0,$.Pg)(e.histograms)),e.transform&&null==t.transform){t.transform=e.transform,t.nativeExtent=t.extent;let i=t.transform.forwardTransform(t.nativeExtent);t.pixelSize=new Ce.A({x:(i.xmax-i.xmin)/t.width,y:(i.ymax-i.ymin)/t.height,spatialReference:t.spatialReference}),t.extent=i}t.isPseudoSpatialReference&&e.spatialReference&&(t.spatialReference=e.spatialReference,t.extent.spatialReference=t.nativeExtent.spatialReference=t.storageInfo.origin.spatialReference=t.spatialReference)}(n,t),null!=s&&(t.attributeTable=s,t.keyProperties.DataType="thematic")}async _fetchAuxiliaryMetaData(e){try{let{data:t}=await this.request(this.url+".aux.xml",{responseType:"xml",signal:e?.signal});return xe(t)}catch{return null}}async _fetchAuxiliaryTable(e){try{let{data:t}=await this.request(this.url+".vat.dbf",{responseType:"array-buffer",signal:e?.signal}),i=Je(t);return i?.recordSet?B.A.fromJSON(i.recordSet):null}catch{return null}}};(0,a.Cg)([(0,n.MZ)()],He.prototype,"_bufferSize",void 0),(0,a.Cg)([(0,n.MZ)()],He.prototype,"_chunkSize",void 0),(0,a.Cg)([(0,n.MZ)()],He.prototype,"_fileSize",void 0),(0,a.Cg)([(0,n.MZ)()],He.prototype,"_headerChunks",void 0),(0,a.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],He.prototype,"datasetFormat",void 0),(0,a.Cg)([(0,n.MZ)()],He.prototype,"headerInfo",void 0),He=(0,a.Cg)([(0,n.$K)("esri.layers.raster.datasets.TIFFRaster")],He);const je=He;var Ze=i(91806);const Ve=new Set(["x","lon","long","longitude","e","east","easting"]),qe=new Set(["y","lat","latitude","n","north","northing"]),We=new Map([["b1","u8"],["u1","u8"],["u2","u16"],["u4","u32"],["i1","s8"],["i2","s16"],["i4","s32"],["f2","f32"],["f4","f32"],["f8","f64"],["c8","c64"],["c16","c128"],["m","unknown"],["M","unknown"],["S","unknown"],["U","unknown"],["V","unknown"]]),Ge="zarr-raster:parse";function Xe(e,t){return e.slice(0,-t.length)}function Ye(e,t){!function(e){if(2!==e?.zarr_format)throw new o.A(Ge,"only zarr_format 2 is supported");let{shape:t,compressor:i,order:r,chunks:a,dimension_separator:n}=e;if(!Array.isArray(t)||!Array.isArray(a)||t.length!==a.length||t.some(e=>!Number.isSafeInteger(e)||e<0)||a.some(e=>!Number.isSafeInteger(e)||e<=0))throw new o.A(Ge,"invalid Zarr shape or chunks");if(null!=r&&"C"!==r&&"F"!==r)throw new o.A(Ge,"invalid Zarr array order");if(null!=n&&"."!==n&&"/"!==n)throw new o.A(Ge,"invalid Zarr dimension separator");if(null!==i&&("string"!=typeof i?.id||!i.id))throw new o.A(Ge,"Zarr compressor must be null or have a codec id")}(e);let{isBigEndian:i,pixelType:r,originalPixelType:a}=function(e){if("string"!=typeof e)throw new o.A(Ge,`Unsupported Zarr dtype: ${JSON.stringify(e)}`);let t=e.startsWith(">"),i=e.replace(/^[<>|=]/,""),r=We.get(i);if(!r||"unknown"===r||r.startsWith("c"))throw new o.A(Ge,`Unsupported Zarr dtype: ${JSON.stringify(e)}`);return{isBigEndian:t,pixelType:r,originalPixelType:i}}(e.dtype),{shape:n,compressor:s,order:l,chunks:u}=e,f=s?.id||"none",h="C"===l||null==l,c=function(e){if(null!==e){if("number"==typeof e)return e;switch(e){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new o.A(Ge,`Unsupported numeric Zarr fill value: ${e}`)}}}(e.fill_value);if(null!=c)if(Number.isFinite(c)){"f32"===r&&(c="f2"===a?new Float16Array([c])[0]:Math.fround(c));let[e,t]=(0,q.hP)("f2"===a?"f16":r);(c>t||c<e)&&(c=void 0)}else c=r.startsWith("f")?c:void 0;let d=e.dimension_separator??".";return{isBigEndian:i,pixelType:r,originalPixelType:a,compression:f,isRowMajor:h,shape:n,chunkSize:u,fillValue:c,scaleFactor:t?.scale_factor??1,addOffset:t?.add_offset??0,separator:d}}function Ke(e){return e.Description??e.description??e.long_name??e.standard_name??null}function Qe(e,t,i){let r=i?.[e];return!r?.length||t<=0?null:r.length<=t?r.toSorted((e,t)=>e-t):r.slice(0,t).toSorted((e,t)=>e-t)}function et(e){if(1===e.length)return[e[0]-.5,e[0]+.5];let t=e[0],i=e.at(-1),r=Math.abs(i-t)/(e.length-1)*.5;return[Math.min(t,i)-r,Math.max(t,i)+r]}function tt(e){let t;for(let i=0;i<e.length;i++){let r=e[i],a=it(r);if(a)return new j.A({wkid:a});t||=r?._CRS?.wkt?.trim()}return t?new j.A({wkt:t}):void 0}function it(e){let t=e?._CRS?.projjson?.id?.code,i="CRS84"===t?4326:"CRS83"===t?4269:"CRS27"===t?4267:Number(t);if(Number.isSafeInteger(i)&&i>0)return i;let r=e?._CRS?.url;return"string"==typeof r&&Number(r.slice(r.lastIndexOf("/")+1))||void 0}function rt(e){let t=e.attributes._ARRAY_DIMENSIONS,i=e.array.shape??[];return!t?.length||t.length!==i.length}function at(e,t){let i="x"===t?Ve:qe;return(e.find(e=>i.has(e.attributes.standard_name?.toLowerCase()??""))??e.find(e=>i.has(e.name.toLowerCase()??"")))?.name}function nt(e,t){return`${e}/${t=t.split("/").map(encodeURIComponent).join("/")}`}const st="zarr-raster:open",lt=new Set(["none","blosc"]);let ot=class extends J.A{constructor(){super(...arguments),this.datasetFormat="ZARR"}get _baseUrl(){let{url:e}=this;return e.endsWith("/.zmetadata")||e.endsWith("/.zgroup")?e.slice(0,e.lastIndexOf("/")):e}async fetchRawTile(e,t,i,r={}){let{multidimensionalDefinition:a}=r;if(!a?.length)return null;let n=a[0].variableName,s=this._metadata.dataVariables.find(e=>e.name===n);if(!s)return null;let{storageInfo:l}=s,u=Object.fromEntries(a.map(e=>[e.dimensionName,e.values[0]])),f=this._getDimensionIndices(s,t,i,u);if(!f)return null;let h=s.attributes._ARRAY_DIMENSIONS,{xDimension:c,yDimension:d}=this._metadata,p=function(e,t,i,r){let{chunkSize:a,shape:n,pixelType:s,separator:l,isRowMajor:o,fillValue:u,scaleFactor:f,addOffset:h}=e,c=Array(n.length),d=Array(n.length),p=Array(n.length),m=1;for(let e=0;e<n.length;e++){let i=t[e];if(i<0||i>=n[e])return null;let r=a[e],s=Math.floor(i/r);c[e]=s,d[e]=i-s*r,p[e]=Math.min(r,n[e]-s*r),m*=r}return{chunkPath:c.join(l),chunkSize:a,actualSize:p,offsets:d,xIndex:i,yIndex:r,pixelType:s,isRowMajor:o,elementCount:m,fillValue:u,scaleFactor:f,addOffset:h}}(l,f,h.indexOf(c),h.indexOf(d));if(!p)return null;let m=nt(this._baseUrl,`${n}/${p.chunkPath}`),{data:g}=await this.request(m,{responseType:"array-buffer",signal:r.signal}),{actualSize:y,elementCount:w}=p,x=await this._decodeChunk(g,l,r),v=y.reduce((e,t)=>e*t,1),b=x.length;if(b!==w&&b!==v)throw new o.A("zarr-raster:decode",`Invalid chunk length ${b} for "${m}"; expected ${w} or ${v} values`);return function(e,t){let i,{chunkSize:r,actualSize:a,xIndex:n,yIndex:s}=t,l=r[n],o=r[s],u=a[n],f=a[s],h=function(e,t){let{chunkSize:i,actualSize:r,xIndex:a,yIndex:n,pixelType:s,elementCount:l,isRowMajor:o}=t,u=i[a],f=i[n],h=e.length===l?i:r;return e.length===u*f&&h[a]===u&&h[n]===f?(o?n<a:a<n)?e:function(e,t,i,r){let a=new(V.A.getPixelArrayConstructor(r))(e.length);for(let r=0;r<i;r++)for(let n=0;n<t;n++)a[r*t+n]=e[n*i+r];return a}(e,u,f,s):function(e,t,i){let{chunkSize:r,actualSize:a,offsets:n,xIndex:s,yIndex:l,pixelType:o,isRowMajor:u}=t,f=r[s],h=r[l],c=a[s],d=a[l],p=Array(i.length),m=1;for(let e=0;e<i.length;e++){let t=u?i.length-1-e:e;p[t]=m,m*=i[t]}let g=new(V.A.getPixelArrayConstructor(o))(f*h);for(let t=0;t<d;t++)for(let r=0;r<c;r++){let a=0;for(let e=0;e<i.length;e++){let i=n[e];e===s?i=r:e===l&&(i=t),a+=i*p[e]}g[t*f+r]=e[a]}return g}(e,t,h)}(e,t);if(u<l||f<o){i=new Uint8Array(l*o);for(let e=0;e<f;e++)i.fill(1,e*l,e*l+u)}let{fillValue:c}=t;if(null!=c){let e=Number.isNaN(c);for(let t=0;t<f;t++)for(let r=0;r<u;r++){let a=t*l+r,n=h[a];(n===c||e&&Number.isNaN(n))&&(i??=new Uint8Array(l*o).fill(1),i[a]=0)}}let{pixelType:d,scaleFactor:p,addOffset:m}=t,g=d,y=h;if(1!==p||0!==m){g="f64"===d?"f64":"f32",y=new(V.A.getPixelArrayConstructor(g))(h.length);for(let e=0;e<h.length;e++)y[e]=0===i?.[e]?h[e]:h[e]*p+m}return new V.A({width:l,height:o,pixelType:g,pixels:[y],mask:i})}(x,p)}async _open(e){let t=this.url.slice(this.url.lastIndexOf("/")+1);if(t.endsWith(".zattrs")||t.endsWith(".zarray"))throw new o.A(st,`Unsupported Zarr URL: "${this.url}". Expect a v2 root url or consolidated metadata url`);let i=this._baseUrl;this.datasetName=i.slice(i.lastIndexOf("/")+1).replace(".zarr","");let r=e?.signal??void 0,{data:a}=await this.request(`${i}/.zmetadata`,{signal:r}),n=function(e){let t=e?.metadata;if("object"!=typeof t||!t||Array.isArray(t))throw new o.A(Ge,"missing consolidated metadata root");let i=new Map;for(let[e,r]of Object.entries(t))if(e.endsWith("/.zarray")){let a=r,n=Xe(e,"/.zarray"),s=t[`${n}/.zattrs`],l=Ye(a,s);if(s){let e=s._ARRAY_DIMENSIONS;if(!e?.length)throw new o.A(Ge,`missing required _ARRAY_DIMENSIONS attribute for array "${n}"`);if(null!=s.scale_factor&&!Number.isFinite(s.scale_factor)||null!=s.add_offset&&!Number.isFinite(s.add_offset))throw new o.A(Ge,`Invalid scale_factor or add_offset for array "${n}"`);let t=1===e.length&&e[0]===n,r=tt([s]),{shape:u,chunkSize:f}=l;if(e.length!==u.length||e.length!==f.length)throw new o.A(Ge,`variable dimensions do not match shape for array "${n}"`);i.set(n,{name:n,isDimension:t,storageInfo:l,spatialReference:r,array:a,attributes:s})}}if(0===i.size)throw new o.A(Ge,"no arrays found");let r=Array.from(i.values()),{xDimension:a,yDimension:n}=function(e){let t=e.filter(e=>e.isDimension),i=t.map(e=>e.name),r=at(t,"x"),a=at(t,"y");if(!r||!a){let t=(e.find(e=>!e.isDimension&&(e.attributes._ARRAY_DIMENSIONS?.length??0)>=2)?.attributes._ARRAY_DIMENSIONS)?.filter(e=>i.includes(e))??i;r??=t.findLast(e=>e!==a),a??=t.findLast(e=>e!==r)}if(!r||!a||r===a)throw new o.A(Ge,`Unable to determine x and y dimensions from variable dimensions "${i.join(", ")}"`);return{xDimension:r,yDimension:a}}(r),s=function(e,t,i){let r=e.filter(e=>{let r=!e.isDimension,a=e.attributes._ARRAY_DIMENSIONS,n=a?.includes(t)&&a.includes(i);return r&&n});if(0===r.length)throw new o.A(Ge,"no valid data variables found");if(r.some(rt))throw new o.A(Ge,"some variable dimensions do not match shape");let a=e.filter(e=>e.isDimension),n=r[0],s=n.attributes._ARRAY_DIMENSIONS,l=n.storageInfo.chunkSize[s.indexOf(t)],u=n.storageInfo.chunkSize[s.indexOf(i)];for(let e of r){let r=e.attributes._ARRAY_DIMENSIONS;if(r.some((t,i)=>{let r=a.find(e=>e.name===t);return r&&r.storageInfo.shape[0]!==e.storageInfo.shape[i]}))throw new o.A(Ge,`Coordinate dimensions do not match shape for "${e.name}"`);let{chunkSize:s}=e.storageInfo;if(s[r.indexOf(t)]!==l||s[r.indexOf(i)]!==u)throw new o.A(Ge,`X/Y chunk sizes must match across variables: compare ${e.name} ${n.name}`)}return r}(r,a,n),l=r.filter(e=>e.isDimension);return{dataDimensions:l,dataVariables:s,spatialReference:s.find(e=>e.spatialReference)?.spatialReference??l.find(e=>e.spatialReference)?.spatialReference,xDimension:a,yDimension:n,version:2}}(a);this._metadata=n;let s=[...n.dataDimensions,...n.dataVariables].find(({storageInfo:{compression:e}})=>!lt.has(e));if(s)throw new o.A(st,`Unsupported Zarr compression "${s.storageInfo.compression}" for array "${s.name}"`);let l={};await Promise.all(n.dataDimensions.map(e=>this._readDimensionValues(e,l,r)));let u=function(e,t){let{dataDimensions:i,dataVariables:r,spatialReference:a}=e,n=r[0],s=n.attributes._ARRAY_DIMENSIONS??[],{xDimension:l,yDimension:u}=e,f=i.find(e=>e.name===l)?.storageInfo.shape[0],h=i.find(e=>e.name===u)?.storageInfo.shape[0];if(!f||!h)throw new o.A(Ge,`Unable to determine width and height from dimensions "${l}" and "${u}"`);let c=t[l],d=t[u];if(c.some((e,t)=>t>0&&e<c[t-1])||d.some((e,t)=>t>0&&e>d[t-1]))throw new o.A(Ge,"Unsupported spatial coordinates order, must be ascending X and descending Y");let[p,m]=et(c),[g,y]=et(d),w=new H.A({xmin:p,ymin:g,xmax:m,ymax:y,spatialReference:a}),x=Math.abs((m-p)/f),v=Math.abs((y-g)/h),b={x,y:v},I=new Map;for(let e of i){let i=e.name;if(i===l||i===u)continue;let r=e.storageInfo.shape[0],a=Qe(i,r,t),{attributes:n}=e;I.set(i,{name:i,description:Ke(n),unit:n.units,values:a,extent:a?[a[0],a.at(-1)]:r>0?[0,r-1]:void 0})}let A=[];for(let e of r){let t=e.attributes._ARRAY_DIMENSIONS.map(e=>I.get(e)).filter(e=>!!e),{attributes:i}=e;A.push({name:e.name,description:Ke(i),unit:i.units??null,dimensions:t})}let S=A.length?{variables:A}:null,{pixelType:C}=n.storageInfo;for(let{storageInfo:e}of r){if("f64"===e.pixelType){C="f64";break}("f32"===e.pixelType||1!==e.scaleFactor||0!==e.addOffset)&&(C="f32")}let _={DataType:S?"Scientific":"Generic"},{chunkSize:R}=n.storageInfo,T=R[s.indexOf(l)],M=R[s.indexOf(u)],O=[{minCol:0,maxCol:Math.ceil(f/T)-1,minRow:0,maxRow:Math.ceil(h/M)-1}],k=new Ce.A({x:p,y,spatialReference:a}),F=(x+v)/2,D=new Te.A({origin:k,size:[T,M],spatialReference:a,lods:[new Ze.A({level:0,resolution:F,scale:1/.0254*96*F})]}),N=new Re.A({blockWidth:T,blockHeight:M,pyramidBlockWidth:T,pyramidBlockHeight:M,compression:n.storageInfo.compression,origin:k,firstPyramidLevel:0,maximumPyramidLevel:0,blockBoundary:O,tileInfo:D,isVirtualTileInfo:!1}),P=n.storageInfo.fillValue,z=new re.A({width:f,height:h,pixelSize:b,pixelType:C,bandCount:1,noDataValue:P,extent:w,spatialReference:a,keyProperties:_,multidimensionalInfo:S,isPseudoSpatialReference:!1,format:"zarr",storageInfo:N});return(0,L.vj)(z),z}(n,l);this._dimensionValues=l,this._set("rasterInfo",u)}_getDimensionIndices(e,t,i,r){let a=e.attributes._ARRAY_DIMENSIONS,{xDimension:n,yDimension:s}=this._metadata,{chunkSize:l}=e.storageInfo;if(!this.rasterInfo.multidimensionalInfo?.variables.find(t=>t.name===e.name)?.dimensions?.length)return null;let o=[];for(let e=0;e<a.length;e++){let u=a[e];if(u===n)o[e]=i*l[e];else if(u===s)o[e]=t*l[e];else{let t=this._dimensionValues[u],i=r[u],a=t?.indexOf(i)??-1;if(a<0)return null;o[e]=a}}return o}async _readDimensionValues(e,t,i){let{name:r,storageInfo:a}=e,n=a.chunkSize[0],s=a.shape[0];if(n<=0||s<=0)throw new o.A(st,`Invalid dimension array "${r}" with chunkSize ${n} and totalElements ${s}`);let l=Math.ceil(s/n),u=this._baseUrl,f=[];for(let e=0;e<l;e++){let t=nt(u,`${r}/${e}`),h=e===l-1?s-e*n:n;f.push(this.request(t,{responseType:"array-buffer",signal:i}).then(async e=>{let t=await this._decodeChunk(e.data,a,{signal:i});if(t.length!==n&&t.length!==h)throw new o.A(st,`Invalid dimension chunk length for "${r}"`);return t.slice(0,h)}).catch(e=>{throw(0,c.zf)(e)?e:new o.A(st,`Unable to fetch dimension data for "${r}"`)}))}let h=(await Promise.all(f)).flatMap(e=>Array.from(e)),{scaleFactor:d,addOffset:p}=a;if(1!==d||0!==p)for(let e=0;e<h.length;e++)h[e]=h[e]*d+p;t[r]="days since 1899-12-30 00:00:00 UTC"===e.attributes.units?h.map(ne.$E):h}async _decodeChunk(e,t,i){let{compression:r}=t;if(!lt.has(r))throw new o.A("zarr-raster:decode",`Unsupported Zarr compression "${r}"`);if("blosc"===r){let r="f2"===t.originalPixelType?2:(0,q.Qd)(t.pixelType),a=t.chunkSize.reduce((e,t)=>e*t,r),n=await this.decodePixelBlock(e,{format:"blosc",pixelType:"u8",skipStatistics:!0,maxUncompressedSize:a},i);if(!n)throw new o.A("zarr-raster:decode","Unable to decode Blosc chunk");e=n.pixels[0].buffer}return function(e,t){let{pixelType:i,originalPixelType:r}=t,a=!t.isBigEndian,n=V.A.getPixelArrayConstructor(i);if(a&&"f2"!==r)return new n(e);let s="f2"===r?2:(0,q.Qd)(i),l=e.byteLength/s,u=new DataView(e),f=new n(l);for(let e=0,t=0;e<l;t+=s,e++)switch(i){case"s8":f[e]=u.getInt8(t);break;case"u8":f[e]=u.getUint8(t);break;case"s16":f[e]=u.getInt16(t,a);break;case"u16":f[e]=u.getUint16(t,a);break;case"s32":f[e]=u.getInt32(t,a);break;case"u32":f[e]=u.getUint32(t,a);break;case"f32":f[e]="f2"===r?u.getFloat16(t,a):u.getFloat32(t,a);break;case"f64":f[e]=u.getFloat64(t,a);break;default:throw new o.A("zarr-raster:decode",`Unsupported coordinate pixel type: ${i}`)}return f}(e,t)}};(0,a.Cg)([(0,n.MZ)()],ot.prototype,"_baseUrl",null),(0,a.Cg)([(0,n.MZ)({json:{write:!0}})],ot.prototype,"_dimensionValues",void 0),(0,a.Cg)([(0,n.MZ)({json:{write:!0}})],ot.prototype,"_metadata",void 0),(0,a.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],ot.prototype,"datasetFormat",void 0),ot=(0,a.Cg)([(0,n.$K)("esri.layers.raster.datasets.ZarrRaster")],ot);const ut=ot,ft=new Map;ft.set("RasterTileServer",{desc:"Raster Tile Server",constructor:ke}),ft.set("TIFF",{desc:"Cloud Optimized GeoTIFF",constructor:je}),ft.set("MRF",{desc:"Meta Raster Format",constructor:ze}),ft.set("ZARR",{desc:"Zarr Raster Format",constructor:ut}),ft.set("JPG",{desc:"JPG Raster Format",constructor:Ae}),ft.set("PNG",{desc:"PNG Raster Format",constructor:Ae}),ft.set("GIF",{desc:"GIF Raster Format",constructor:Ae}),ft.set("BMP",{desc:"BMP Raster Format",constructor:Ae}),ft.set("CovJSON",{desc:"COVJSON Raster Format",constructor:ue}),ft.set("MEMORY",{desc:"In Memory Raster Format",constructor:le});class ht{static get supportedFormats(){let e=new Set;return ft.forEach((t,i)=>e.add(i)),e}static async open(e){let{url:t,ioConfig:i,source:r,sourceJSON:a}=e,n=e.datasetFormat??i?.datasetFormat;n??(/(?:\.zarr|\/\.(?:zmetadata|zarray|zgroup))$/.test(t)?n="ZARR":t.includes(".")?n=t.slice(t.lastIndexOf(".")+1).toUpperCase():"coverage"===r?.type?.toLowerCase()?n="CovJSON":r?.extent&&r.pixelblocks&&(n="MEMORY")),"OVR"===n||"TIF"===n||"DM"===n?n="TIFF":"JPG"===n||"JPEG"===n||"JFIF"===n?n="JPG":"COVJSON"===n&&(n="CovJSON"),t.toLowerCase().includes("/imageserver")&&!t.toLowerCase().includes("/wcsserver")&&(n="RasterTileServer");let s={url:t,source:r,sourceJSON:a,datasetFormat:n,ioConfig:i??{bandIds:null,sampling:null}};if(Object.keys(s).forEach(e=>{s[e]??delete s[e]}),n){if(!this.supportedFormats.has(n))throw new o.A("rasterfactory:open","not a supported format "+n);if("CRF"===n)throw new o.A("rasterfactory:open",`cannot open raster: ${t}`);let i=new(ft.get(n).constructor)(s);return i.rasterJobHandler=e.rasterJobHandler,i.rasterInfo=e.rasterInfo,await i.open({signal:e.signal}),i}let l=Array.from(ft.keys()).filter(e=>"CovJSON"!==e&&"Memory"!==e),u=0,f=()=>{if(n=l[u++],!n||"CRF"===n)return null;let t=new(ft.get(n).constructor)(s);return t.rasterJobHandler=e.rasterJobHandler,t.open({signal:e.signal}).then(()=>t).catch(()=>f())};return f()}static register(e,t,i){ft.has(e.toUpperCase())||ft.set(e.toUpperCase(),{desc:t,constructor:i})}}var ct=i(99235),dt=i(10873),pt=i(20437),mt=i(74797),gt=i(22796),yt=i(69409);const wt={instance:null,refCount:0,connectionPromise:null};async function xt(){if(wt.refCount++,wt.instance)return wt.instance;if(!wt.connectionPromise){let e=new yt.A;wt.connectionPromise=e.initialize().then(()=>{wt.instance=e})}return await wt.connectionPromise,wt.instance}function vt(){wt.refCount--,wt.refCount>0||(wt.instance?.destroy(),wt.instance=null,wt.connectionPromise=null,wt.refCount=0)}let bt=class extends((0,R.dM)((0,N.j)((0,M.q)((0,O.A)((0,F.H)((0,T.d)((0,z.b)((0,k.G)((0,P.e)((0,_.b)((0,D.J)((0,h.M)((0,l.OU)(C.A)))))))))))))){constructor(e){super(e),this._primaryRasters=[],this.charts=null,this.graphicOrigin=new x(this),this.legendEnabled=!0,this.isReference=null,this.listMode="show",this.sourceJSON=null,this.version=null,this.type="imagery-tile",this.operationalLayerType="ArcGISTiledImageServiceLayer",this.popupEnabled=!0,this.popupTemplate=null,this.screenSizePerspectiveEnabled=!0,this.fields=null,this.source=void 0,this._debouncedSaveOperations=(0,c.sg)(async(e,t,r)=>{let{save:a,saveAs:n}=await i.e(9838).then(()=>i(59838));switch(e){case 0:return a(this,t);case 1:return n(this,r,t)}})}load(e){let t=null==e?null:e.signal;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"]},e).catch(c.QP).then(()=>this._openRaster(t))),Promise.resolve(this)}destroy(){super.destroy(),this._releaseWorkerHandle=(0,f.xt)(this._releaseWorkerHandle)}set elevationInfo(e){"relative-to-scene"!==e?.mode&&this._set("elevationInfo",e),this._validateElevationInfo(e)}get defaultPopupTemplate(){return this.createPopupTemplate()}get rasterFields(){let e=[(0,mt.rZ)("Pixel Value"),(0,mt.dy)("Raw Pixel Value")],t=this.raster?.rasterInfo??this.serviceRasterInfo,i=t?.attributeTable;if(i){let t=(0,mt.jC)(i);e.push(...t)}let r=t?.dataType,a=t?.multidimensionalInfo;if(("vector-magdir"===r||"vector-uv"===r)&&null!=a){let t=a.variables[0].unit?.trim(),i=(0,mt.DV)(t),r=(0,mt.y6)();e.push(i,r)}if(a){let t=(0,mt.AL)(a);e.push(...t)}return e}get renderer(){return super.renderer}set renderer(e){super.renderer=e}createPopupTemplate(e){let{rasterFields:t}=this,i=e?.visibleFieldNames??new Set(t.map(({name:e})=>e).filter(e=>e!==mt.F_.rawServicePixelValue)),r=(0,I.tn)({fields:t,title:this.title},{...e,visibleFieldNames:i}),{rasterInfo:a}=this.raster;return r?.fieldInfos&&a&&(0,mt.h4)(r.fieldInfos,a),r}async generateRasterInfo(e,t){let i=(0,s.PZ)(gt.A,e);if(await this.load(),!i||"none"===i.functionName?.toLowerCase())return this.serviceRasterInfo;try{let{rasterInfo:e}=await this._openFunctionRaster(i,t);return e}catch(e){throw e instanceof o.A?e:new o.A("imagery-tile-layer","the given raster function is not supported")}}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}supportsExportMapTiles(){let e=this._primaryRasters[0]??this.raster,t="RasterTileServer"===e?.datasetFormat,i=!!this.sourceJSON?.exportTilesAllowed,r=this.sourceJSON?.datasetFormat?.toLowerCase(),a=!/\/tiledimageservices[^.]*\.arcgis\.com/i.test(this.url)&&"Raster"===e?.tileType&&("cache/jpegplus"===r||"cache/jpegpng"===r);return t&&i&&("Map"===e?.tileType||a)}supportsWrite(){let e=this._primaryRasters[0]??this.raster;return!!(this.loaded?"RasterTileServer"===e.datasetFormat&&("Raster"===e.tileType||"Map"===e.tileType):this.url&&/\/ImageServer(\/|\/?$)/i.test(this.url))}write(e,t){return this.supportsWrite()?super.write(e,t):((0,S.U4)(t,this),null)}async hasDataChanged(){try{let e=this._primaryRasters[0]??this.raster,{dataChanged:t,updates:i}=await e.refresh();return t&&(this.serviceRasterInfo!==e.rasterInfo&&this._set("serviceRasterInfo",e.rasterInfo),e.sourceJSON&&this.sourceJSON!==e.sourceJSON&&(this.sourceJSON=e.sourceJSON),i&&this.read(i,{origin:"service",url:this.parsedUrl,ignoreDefaults:!0})),t}catch{return!1}}async _openRaster(e){let t=!1;if(this.raster)await this._openFromRaster(this.raster,e),t=(0,L.qg)(this.raster),!t&&this.rasterFunction&&(this._primaryRasters=[this.raster],await this._initializeWithFunctionRaster(this.rasterFunction));else{let{url:t,rasterFunction:i,source:r}=this;if(!t&&!r)throw new o.A("imagery-tile-layer:open","missing url or source parameter");r?await this._openFromSource(r,e):i?await this._openFromUrlWithRasterFunction(t,i,e):await this._openFromUrl(t,e)}let i=this.raster.rasterInfo;if(!i)throw new o.A("imagery-tile-layer:load","cannot load resources on "+this.url);if(this._set("serviceRasterInfo",t?i:this._primaryRasters[0].rasterInfo),this._set("spatialReference",i.spatialReference),this.sourceJSON=this.sourceJSON||this.raster.sourceJSON,null!=this.sourceJSON){let e="Map"===this.raster.tileType&&null!=this.sourceJSON.minLOD&&null!=this.sourceJSON.maxLOD?this.sourceJSON:{...this.sourceJSON,minScale:0,maxScale:0};this.read(e,{origin:"service"})}else this.read({tileInfo:this.serviceRasterInfo?.storageInfo.tileInfo.toJSON()},{origin:"service"});this.title||=this.raster.datasetName,"Map"===this.raster.tileType&&(this.popupEnabled=!1),this._configDefaultSettings(),this.addHandles((0,d.wB)(()=>this.customParameters,e=>{this.raster&&(this.raster.ioConfig.customFetchParameters=e)}))}async _openFromRaster(e,t){e.rasterInfo||await e.open({signal:t}),this._primaryRasters=(0,L.pb)(e),this.url||=this._primaryRasters[0].url}async _openFromUrlWithRasterFunction(e,t,i){let r,a=[e];t&&(0,ct.UD)(t.toJSON(),a),a.some(e=>At(e,this.ioConfig))&&(r=await xt(),this._releaseWorkerHandle={remove:()=>vt()});let n=await Promise.all(a.map(e=>ht.open({url:e,rasterInfo:1===a.length?this.serviceRasterInfo:void 0,sourceJSON:1===a.length?this.sourceJSON:void 0,ioConfig:{sampling:"closest",...this.ioConfig,customFetchParameters:this.customParameters},rasterJobHandler:r,signal:i}))),s=n.findIndex(e=>null==e);if(s>-1)throw new o.A("imagery-tile-layer:open",`cannot open raster: ${a[s]}`);return this._primaryRasters=n,this._initializeWithFunctionRaster(t)}async _openFromUrl(e,t){let i;At(e,this.ioConfig)&&(i=await xt(),this._releaseWorkerHandle={remove:()=>vt()});let r=await ht.open({url:e,rasterInfo:this.serviceRasterInfo,sourceJSON:this.sourceJSON,ioConfig:{sampling:"closest",...this.ioConfig,customFetchParameters:this.customParameters},rasterJobHandler:i,signal:t});if(null==r)throw new o.A("imagery-tile-layer:open",`cannot open raster: ${e}`);this._primaryRasters=[r],this.raster=r}async _openFromSource(e,t){let i="the tiled imagery data source is not supported",r="coverage"===e.type?.toLowerCase()?"CovJSON":e.extent&&e.pixelBlock?"MEMORY":null;if(!r)throw new o.A("imagery-tile-layer:open",i);"MEMORY"===r&&(e={...e,pixelBlock:void 0,pixelBlocks:[e.pixelBlock]});let a=await ht.open({url:"",source:e,datasetFormat:r,ioConfig:{sampling:"closest",...this.ioConfig,customFetchParameters:this.customParameters},signal:t});if(null==a)throw new o.A("imagery-tile-layer:open",i);this._primaryRasters=[a],this.rasterFunction?await this._initializeWithFunctionRaster(this.rasterFunction):this.raster=a}async _openFunctionRaster(e,t){let i={raster:this._primaryRasters[0]};this._primaryRasters.length>1&&this._primaryRasters.forEach(e=>i[e.url]=e);let r=(0,ct.vt)(e.functionDefinition?.toJSON()??e.toJSON(),i),a=new E.A({rasterFunction:r});return await a.open(t),a}async _initializeWithFunctionRaster(e,t){try{this.raster=await this._openFunctionRaster(e,t)}catch(e){e instanceof o.A&&u.A.getLogger(this).error("imagery-tile-layer:open",e.message),u.A.getLogger(this).warn("imagery-tile-layer:open","the raster function cannot be applied and is removed"),this._set("rasterFunction",null),this.raster=this._primaryRasters[0]}}_validateElevationInfo(e){(0,b.XF)(u.A.getLogger(this),(0,b.$7)("ImageryTile layers","relative-to-scene",e)),(0,b.XF)(u.A.getLogger(this),(0,b.tW)("ImageryTile layers",e))}};(0,a.Cg)([(0,n.MZ)({clonable:!1})],bt.prototype,"_primaryRasters",void 0),(0,a.Cg)([(0,n.MZ)({clonable:!1})],bt.prototype,"_releaseWorkerHandle",void 0),(0,a.Cg)([(0,n.MZ)({json:{origins:{"web-scene":{write:!1}},write:!0}})],bt.prototype,"charts",void 0),(0,a.Cg)([(0,n.MZ)({type:A.A,value:null,json:{name:"layerDefinition.elevationInfo",write:!0,origins:{"portal-item":{read:!1,write:!1},"web-map":{read:!1,write:!1}}}})],bt.prototype,"elevationInfo",null),(0,a.Cg)([(0,n.MZ)({type:Te.A})],bt.prototype,"tileInfo",void 0),(0,a.Cg)([(0,n.MZ)({readOnly:!0,clonable:!1})],bt.prototype,"graphicOrigin",void 0),(0,a.Cg)([(0,n.MZ)(dt.fV)],bt.prototype,"legendEnabled",void 0),(0,a.Cg)([(0,n.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],bt.prototype,"isReference",void 0),(0,a.Cg)([(0,n.MZ)({type:["show","hide"]})],bt.prototype,"listMode",void 0),(0,a.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],bt.prototype,"blendMode",void 0),(0,a.Cg)([(0,n.MZ)({type:gt.A,json:{name:"renderingRule",write:!0}})],bt.prototype,"rasterFunction",void 0),(0,a.Cg)([(0,n.MZ)()],bt.prototype,"sourceJSON",void 0),(0,a.Cg)([(0,n.MZ)({readOnly:!0,json:{origins:{service:{read:{source:"currentVersion"}}}}})],bt.prototype,"version",void 0),(0,a.Cg)([(0,n.MZ)({readOnly:!0,json:{read:!1}})],bt.prototype,"type",void 0),(0,a.Cg)([(0,n.MZ)({type:["ArcGISTiledImageServiceLayer"]})],bt.prototype,"operationalLayerType",void 0),(0,a.Cg)([(0,n.MZ)({type:Boolean,value:!0,json:{read:{source:"disablePopup",reader:(e,t)=>!t.disablePopup},write:{target:"disablePopup",overridePolicy(){return{enabled:!this.loaded||"Raster"===this.raster.tileType}},writer(e,t,i){t[i]=!e}}}})],bt.prototype,"popupEnabled",void 0),(0,a.Cg)([(0,n.MZ)({type:v.A,json:{read:{source:"popupInfo"},write:{target:"popupInfo",overridePolicy(){return{enabled:!this.loaded||"Raster"===this.raster.tileType}}}}})],bt.prototype,"popupTemplate",void 0),(0,a.Cg)([(0,n.MZ)({readOnly:!0})],bt.prototype,"defaultPopupTemplate",null),(0,a.Cg)([(0,n.MZ)(dt.PY)],bt.prototype,"screenSizePerspectiveEnabled",void 0),(0,a.Cg)([(0,n.MZ)({readOnly:!0,type:[pt.A]})],bt.prototype,"fields",void 0),(0,a.Cg)([(0,n.MZ)({readOnly:!0,type:[pt.A]})],bt.prototype,"rasterFields",null),(0,a.Cg)([(0,n.MZ)({constructOnly:!0})],bt.prototype,"source",void 0),bt=(0,a.Cg)([(0,n.$K)("esri.layers.ImageryTileLayer")],bt);const It=bt;function At(e,t){let{tileGeneration:i}=t??{};return"immediate"===i||/\.(png|gif|bmp)$/i.test(e)}},18768(e,t,i){var r=i(32198),a=i(91429),n=i(53966),s=i(60694);i.d(t,["b",0,e=>{let t=e,i=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){let e=(0,s.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,s.Jf)(e,n.A.getLogger(this)))}};return(0,r.Cg)([(0,a.MZ)()],i.prototype,"title",null),(0,r.Cg)([(0,a.MZ)({type:String})],i.prototype,"url",null),i=(0,r.Cg)([(0,a.$K)("esri.layers.mixins.ArcGISService")],i),i}])},56551(e,t,i){i.d(t,{H:()=>h});var r=i(32198),a=i(91429),n=i(56507),s=i(69540),l=i(25482),o=i(94359),u=i(93223);let f=class extends((0,s.OU)(l.o)){constructor(e){super(e),this.name=void 0,this.method="none",this.value=void 0,this.bandIds=void 0,this.renderer=void 0}};(0,r.Cg)([(0,a.MZ)({type:String,json:{write:{isRequired:!0}}})],f.prototype,"name",void 0),(0,r.Cg)([(0,a.MZ)({type:["raster-function-template","variable","none"],json:{write:{isRequired:!0}}}),(0,u.e)({rasterFunctionTemplate:"raster-function-template",variable:"variable",none:"none"})],f.prototype,"method",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{write:{isRequired:!0}}})],f.prototype,"value",void 0),(0,r.Cg)([(0,a.MZ)({type:[n.jz],json:{write:{isRequired:!0}}})],f.prototype,"bandIds",void 0),(0,r.Cg)([(0,a.MZ)({types:o.uy,json:{write:!0,origins:{"web-scene":{types:o.Gj,write:{overridePolicy:e=>({enabled:e&&"vector-field"!==e.type})}}}}})],f.prototype,"renderer",void 0),f=(0,r.Cg)([(0,a.$K)("esri.renderers.support.RasterPresetRenderer")],f);const h=e=>{let t=e,i=class extends t{constructor(){super(...arguments),this.activePresetRendererName=null,this.presetRenderers=null}};return(0,r.Cg)([(0,a.MZ)({type:String,json:{name:"layerDefinition.activePresetRendererName",write:{allowNull:!0}}})],i.prototype,"activePresetRendererName",void 0),(0,r.Cg)([(0,a.MZ)({type:[f],json:{name:"layerDefinition.presetRenderers",write:!0}})],i.prototype,"presetRenderers",void 0),i=(0,r.Cg)([(0,a.$K)("esri.layers.mixins.RasterPresetRendererMixin")],i),i}},43163(e,t,i){i.d(t,{A:()=>p});var r,a=i(32198),n=i(91429),s=i(5443),l=i(86738),o=i(10333),u=i(36005),f=i(43937),h=i(93223);function c(e,t,i){let{x:r,y:a}=t;if(i<2)return{x:e[0]+r*e[2]+a*e[4],y:e[1]+r*e[3]+a*e[5]};if(2===i){let t=r*r,i=a*a,n=r*a;return{x:e[0]+r*e[2]+a*e[4]+t*e[6]+n*e[8]+i*e[10],y:e[1]+r*e[3]+a*e[5]+t*e[7]+n*e[9]+i*e[11]}}let n=r*r,s=a*a,l=r*a,o=n*r,u=n*a,f=r*s,h=a*s;return{x:e[0]+r*e[2]+a*e[4]+n*e[6]+l*e[8]+s*e[10]+o*e[12]+u*e[14]+f*e[16]+h*e[18],y:e[1]+r*e[3]+a*e[5]+n*e[7]+l*e[9]+s*e[11]+o*e[13]+u*e[15]+f*e[17]+h*e[19]}}function d(e,t,i){let{xmin:r,ymin:a,xmax:n,ymax:l,spatialReference:o}=t,u=[];if(i<2)u.push({x:r,y:l}),u.push({x:n,y:l}),u.push({x:r,y:a}),u.push({x:n,y:a});else{let e=10;for(let t=0;t<e;t++)u.push({x:r,y:a+(l-a)*t/(e-1)}),u.push({x:n,y:a+(l-a)*t/(e-1)});e=8;for(let t=1;t<=e;t++)u.push({x:r+(n-r)*t/e,y:a}),u.push({x:r+(n-r)*t/e,y:l})}u=u.map(t=>c(e,t,i));let f=u.map(e=>e.x),h=u.map(e=>e.y);return new s.A({xmin:Math.min.apply(null,f),xmax:Math.max.apply(null,f),ymin:Math.min.apply(null,h),ymax:Math.max.apply(null,h),spatialReference:o})}let p=r=class extends o.A{constructor(){super(...arguments),this.polynomialOrder=1,this.type="polynomial"}readForwardCoefficients(e,t){let{coeffX:i,coeffY:r}=t;if(!i?.length||!r?.length||i.length!==r.length)return null;let a=[];for(let e=0;e<i.length;e++)a.push(i[e]),a.push(r[e]);return a}writeForwardCoefficients(e,t,i){let r=[],a=[];for(let t=0;t<e?.length;t++)t%2==0?r.push(e[t]):a.push(e[t]);t.coeffX=r,t.coeffY=a}get inverseCoefficients(){let e=this._get("inverseCoefficients"),t=this._get("forwardCoefficients");return!e&&t&&this.polynomialOrder<2&&(e=function(e){let[t,i,r,a,n,s]=e,l=r*s-n*a,o=n*a-r*s;return[(n*i-t*s)/l,(r*i-t*a)/o,s/l,a/o,-n/l,-r/o]}(t)),e}set inverseCoefficients(e){this._set("inverseCoefficients",e)}readInverseCoefficients(e,t){let{inverseCoeffX:i,inverseCoeffY:r}=t;if(!i?.length||!r?.length||i.length!==r.length)return null;let a=[];for(let e=0;e<i.length;e++)a.push(i[e]),a.push(r[e]);return a}writeInverseCoefficients(e,t,i){let r=[],a=[];for(let t=0;t<e?.length;t++)t%2==0?r.push(e[t]):a.push(e[t]);t.inverseCoeffX=r,t.inverseCoeffY=a}get affectsPixelSize(){return this.polynomialOrder>0}forwardTransform(e){if("point"===e.type){let t=c(this.forwardCoefficients,e,this.polynomialOrder);return new l.A({x:t.x,y:t.y,spatialReference:e.spatialReference})}return d(this.forwardCoefficients,e,this.polynomialOrder)}inverseTransform(e){if("point"===e.type){let t=c(this.inverseCoefficients,e,this.polynomialOrder);return new l.A({x:t.x,y:t.y,spatialReference:e.spatialReference})}return d(this.inverseCoefficients,e,this.polynomialOrder)}clone(){return new r({polynomialOrder:this.polynomialOrder,forwardCoefficients:this.forwardCoefficients?[...this.forwardCoefficients]:null,inverseCoefficients:this.inverseCoefficients?[...this.inverseCoefficients]:null})}};(0,a.Cg)([(0,n.MZ)({json:{write:!0}})],p.prototype,"polynomialOrder",void 0),(0,a.Cg)([(0,n.MZ)()],p.prototype,"forwardCoefficients",void 0),(0,a.Cg)([(0,u.w)("forwardCoefficients",["coeffX","coeffY"])],p.prototype,"readForwardCoefficients",null),(0,a.Cg)([(0,f.K)("forwardCoefficients")],p.prototype,"writeForwardCoefficients",null),(0,a.Cg)([(0,n.MZ)({json:{write:!0}})],p.prototype,"inverseCoefficients",null),(0,a.Cg)([(0,u.w)("inverseCoefficients",["inverseCoeffX","inverseCoeffY"])],p.prototype,"readInverseCoefficients",null),(0,a.Cg)([(0,f.K)("inverseCoefficients")],p.prototype,"writeInverseCoefficients",null),(0,a.Cg)([(0,n.MZ)()],p.prototype,"affectsPixelSize",null),(0,a.Cg)([(0,h.e)({PolynomialXform:"polynomial"})],p.prototype,"type",void 0),p=r=(0,a.Cg)([(0,n.$K)("esri.layers.raster.transforms.PolynomialTransform")],p)},25943(e,t,i){i.d(t,{d:()=>I});var r,a=i(32198),n=i(56372),s=i(91429),l=i(49186),o=i(36563),u=(i(44208),i(66344)),f=i(15142),h=i(17676),c=i(36708),d=i(76030),p=i(84952),m=i(78888),g=i(72802),y=i(4718),w=i(69397);class x{constructor(e){!function(e){if(!e?.location)throw new l.A("tilemap:missing-location","Location missing from tilemap response");if(!1===e.valid)throw new l.A("tilemap:invalid","Tilemap response was marked as invalid");if(!e.data)throw new l.A("tilemap:missing-data","Data missing from tilemap response");if(!Array.isArray(e.data))throw new l.A("tilemap:data-mismatch","Data must be an array of numbers");if(e.data.length!==e.location.width*e.location.height)throw new l.A("tilemap:data-mismatch","Number of data items does not match width/height of tilemap")}(e);let{location:t,data:i}=e;this.location=Object.freeze((0,y.o8)(t));let r=this.location.width,a=this.location.height,n=!0,s=!0,o=function(e,t=!1){return e<=1024?t?Array(e).fill(0):Array(e):new Uint32Array(e)}(Math.ceil(r*a/32)),u=0;for(let e=0;e<i.length;e++){let t=e%32;i[e]?(s=!1,o[u]|=1<<t):n=!1,31===t&&++u}s?(this._availability="unavailable",this.byteSize=40):n?(this._availability="available",this.byteSize=40):(this._availability=o,this.byteSize=40+(0,w.Qf)(o))}getAvailability(e,t){if("unavailable"===this._availability||"available"===this._availability)return this._availability;let i=(e-this.location.top)*this.location.width+(t-this.location.left),r=i%32,a=i>>5,n=this._availability;return a<0||a>n.length?"unknown":n[a]&1<<r?"available":"unavailable"}static fromDefinition(e,t){let i=e.service.request||m.A,{row:r,col:a,width:n,height:s}=e,o={query:{f:"json"}};return t=t?{...o,...t}:o,i(function(e){let t;if(e.service.tileServers?.length){let i=e.service.tileServers;t=`${i&&i.length?i[e.row%i.length]:e.service.url}/tilemap/${e.level}/${e.row}/${e.col}/${e.width}/${e.height}`}else t=`${e.service.url}/tilemap/${e.level}/${e.row}/${e.col}/${e.width}/${e.height}`;let i=e.service.query;return i&&(t=`${t}?${i}`),t}(e),t).then(e=>e.data).catch(e=>{if(422===e?.details?.httpStatus)return{location:{top:r,left:a,width:n,height:s},valid:!0,data:Array(n*s).fill(0)};throw e}).then(e=>{if(e.location&&(e.location.top!==r||e.location.left!==a||e.location.width!==n||e.location.height!==s))throw new l.A("tilemap:location-mismatch","Tilemap response for different location than requested",{response:e,definition:{top:r,left:a,width:n,height:s}});return x.fromJSON(e)})}static fromJSON(e){return Object.freeze(new x(e))}}function v(e){return`${e.level}/${e.row}/${e.col}/${e.width}/${e.height}`}function b(e,t,i){return new l.A("tile-map:tile-unavailable","Tile is not available",{level:e,row:t,col:i})}let I=class extends n.A{static{r=this}constructor(e){super(e),this._pendingTilemapRequests={},this.request=m.A,this.size=32,this._prefetchingEnabled=!0}initialize(){this._tilemapCache=new u.q(2097152),this.addHandles((0,c.wB)(()=>{let{layer:e}=this;return[e?.parsedUrl,e?.tileServers,e?.apiKey,e?.customParameters]},()=>this._initializeTilemapDefinition(),c.Vh))}get effectiveMinLOD(){return this.minLOD??this.layer.tileInfo.lods[0].level}get effectiveMaxLOD(){return this.maxLOD??this.layer.tileInfo.lods[this.layer.tileInfo.lods.length-1].level}getAvailability(e,t,i){if(!this.layer.tileInfo.lodAt(e)||e<this.effectiveMinLOD||e>this.effectiveMaxLOD)return"unavailable";let r=this._tilemapFromCache(e,t,i,this._tmpTilemapDefinition);return r?r.getAvailability(t,i):"unknown"}fetchAvailability(e,t,i,r){return!this.layer.tileInfo.lodAt(e)||e<this.effectiveMinLOD||e>this.effectiveMaxLOD?Promise.reject(b(e,t,i)):this._fetchTilemap(e,t,i,r).catch(e=>e).then(r=>{if(r instanceof x){let a=r.getAvailability(t,i);if("unavailable"===a)throw b(e,t,i);return a}if((0,h.zf)(r))throw r;return"unknown"})}fetchAvailabilityUpsample(e,t,i,r,a){r.level=e,r.row=t,r.col=i;let n=this.layer.tileInfo;n.updateTileInfo(r);let s=this.fetchAvailability(e,t,i,a).catch(e=>{if((0,h.zf)(e))throw e;if(n.upsampleTile(r))return this.fetchAvailabilityUpsample(r.level,r.row,r.col,r,a);throw e});return this._fetchAvailabilityUpsamplePrefetch(e,t,i,a,s),s}async _fetchAvailabilityUpsamplePrefetch(e,t,i,a,n){if(!this._prefetchingEnabled)return;let s=`prefetch-${e}-${t}-${i}`;if(this.hasHandles(s))return;let l=new AbortController;n.then(()=>l.abort(),()=>l.abort());let u=!1,f=(0,o.hA)(()=>{u||(u=!0,l.abort())});if(this.addHandles(f,s),await(0,d.md)(10,l.signal).catch(()=>{}),u||(u=!0,this.removeHandles(s)),(0,h.G4)(l))return;let c=new g.U(e,t,i),p={...a,signal:l.signal},m=this.layer.tileInfo;for(let e=0;r._prefetches.length<r._maxPrefetch&&m.upsampleTile(c);++e){let e=this.fetchAvailability(c.level,c.row,c.col,p);r._prefetches.push(e);let t=()=>{r._prefetches.removeUnordered(e)};e.then(t,t)}}static{this._maxPrefetch=4}static{this._prefetches=new f.A({initialSize:r._maxPrefetch})}static cleanupTilemapCache(){this._prefetches.prune()}_fetchTilemap(e,t,i,r){if(!this.layer.tileInfo.lodAt(e)||e<this.effectiveMinLOD||e>this.effectiveMaxLOD)return Promise.reject(new l.A("tilemap-cache:level-unavailable",`Level ${e} is unavailable in the service`));let a=this._tmpTilemapDefinition,n=this._tilemapFromCache(e,t,i,a);if(n)return Promise.resolve(n);let s=r?.signal;return r={...r,signal:null},new Promise((e,t)=>{(0,h.u7)(s,()=>t((0,h.NK)()));let i=v(a),n=this._pendingTilemapRequests[i];if(!n){n=x.fromDefinition(a,r).then(e=>(this._tilemapCache.put(i,e,e.byteSize),e));let e=()=>{delete this._pendingTilemapRequests[i]};this._pendingTilemapRequests[i]=n,n.then(e,e)}n.then(e,t)})}_initializeTilemapDefinition(){if(!this.layer.parsedUrl)return;let{parsedUrl:e,apiKey:t,customParameters:i}=this.layer;this._tilemapCache.clear(),this._tmpTilemapDefinition={service:{url:e.path,query:(0,p.x0)({...e.query,...i,token:t??e.query?.token}),tileServers:this.layer.tileServers,request:this.request},width:this.size,height:this.size,level:0,row:0,col:0}}_tilemapFromCache(e,t,i,r){r.level=e,r.row=t-t%this.size,r.col=i-i%this.size;let a=v(r);return this._tilemapCache.get(a)}get test(){}};(0,a.Cg)([(0,s.MZ)({constructOnly:!0})],I.prototype,"layer",void 0),(0,a.Cg)([(0,s.MZ)({constructOnly:!0})],I.prototype,"minLOD",void 0),(0,a.Cg)([(0,s.MZ)({constructOnly:!0})],I.prototype,"maxLOD",void 0),(0,a.Cg)([(0,s.MZ)({constructOnly:!0})],I.prototype,"request",void 0),(0,a.Cg)([(0,s.MZ)({constructOnly:!0})],I.prototype,"size",void 0),I=r=(0,a.Cg)([(0,s.$K)("esri.layers.support.TilemapCache")],I)},82371(e,t,i){i.d(t,{E9:()=>p,Tw:()=>c,X6:()=>d});var r=i(5443),a=i(86738),n=i(16930),s=i(87186),l=i(20223),o=i(78888),u=i(22671),f=i(2272);async function h(e,t,i){let h=(0,f.Dl)(e),{rasterFunction:c,sourceJSON:d}=t||{},p=c?JSON.stringify(c.rasterFunctionDefinition||c):null,m=(0,f.lF)({...h.query,renderingRule:p,f:"json"}),g=(0,f.jV)(m,i);e=h.path;let y=d||await(0,o.A)(e,g).then(e=>e.data),{currentVersion:w}=y,x=y.hasRasterAttributeTable?(0,o.A)(`${e}/rasterAttributeTable`,g):null,v=y.hasColormap?(0,o.A)(`${e}/colormap`,g):null,b=y.hasHistograms?(0,o.A)(`${e}/histograms`,g):null,I=w>=10.3?(0,o.A)(`${e}/keyProperties`,g):null,A=y.hasMultidimensions?(0,o.A)(`${e}/multidimensionalInfo`,g):null,S=(c?w>=10.91:w>=10.81)?(0,o.A)(`${e}/statistics`,g):null,C=await Promise.allSettled([x,v,b,I,A,S]),_=r.A.fromJSON(y.extent),R=Math.ceil(_.width/y.pixelSizeX-.1),T=Math.ceil(_.height/y.pixelSizeY-.1),M=n.A.fromJSON(y.spatialReference||y.extent.spatialReference),O="fulfilled"===C[0].status?C[0].value?.data:null,k=O?.features?.length?u.A.fromJSON(O):null,F="fulfilled"===C[1].status?C[1].value?.data.colormap:null,D=F?.length?F:null,N="fulfilled"===C[2].status?C[2].value?.data.histograms:null,P=N?.[0]?.counts?.length?N:null,z="fulfilled"===C[3].status?C[3].value?.data??{}:{},L="fulfilled"===C[4].status?C[4].value?.data.multidimensionalInfo:null,E=L?.variables?.length?L:null;var B;(B=E)&&B.variables.forEach(e=>{e.statistics?.length&&e.statistics.forEach(e=>{e.avg=e.mean,e.stddev=e.standardDeviation}),e.dimensions?.forEach(e=>{"StdTime"===e.name&&!e.recurring&&!e.unit&&(e.unit="ISO8601")})});let $=function(e,t){let i=null;t&&t.length===e.bandCount&&(i=t.map(e=>{let t=e.covariances?.trim(),i=t?t.split(",").map(Number):void 0;return{avg:e.mean,count:e.count,max:e.max,median:e.median,min:e.min,mode:e.mode,stddev:e.standardDeviation,sum:e.sum,covariances:i}}));let r=e.minValues?.length===e.bandCount?e.minValues.map((t,i)=>({min:t,max:e.maxValues[i],avg:e.meanValues[i],stddev:e.stdvValues[i]})):null;return null==r||null==i||i.some((e,t)=>e.min!==r[t]?.min||e.max!==r[t]?.max||e.avg!==r[t]?.avg||e.stddev!==r[t]?.stddev)?r:i}(y,"fulfilled"===C[5].status?C[5].value?.data.statistics:null),{defaultVariable:J,serviceDataType:U}=y;J&&J!==z.DefaultVariable&&(z.DefaultVariable=J),U?.includes("esriImageServiceDataTypeVector")&&!U.includes(z.DataType)&&(z.DataType=U.replace("esriImageServiceDataType",""));let H=y.noDataValue;y.noDataValues?.length&&y.noDataValues.some(e=>e!==H)&&(H=y.noDataValues);let j=y.transposeInfo?new l.A({blockWidth:256,blockHeight:256,pyramidBlockWidth:256,pyramidBlockHeight:256,pyramidScalingFactor:2,compression:"lerc",origin:new a.A({x:y.extent.xmin,y:y.extent.ymax,spatialReference:M}),firstPyramidLevel:1,maximumPyramidLevel:Math.max(0,Math.round(Math.log(Math.max(R,T))/Math.LN2-8)),transposeInfo:y.transposeInfo}):void 0;return new s.A({width:R,height:T,bandCount:y.bandCount,extent:r.A.fromJSON(y.extent),spatialReference:M,pixelSize:new a.A({x:y.pixelSizeX,y:y.pixelSizeY,spatialReference:M}),pixelType:y.pixelType.toLowerCase(),statistics:$,attributeTable:k,colormap:D,histograms:P,keyProperties:z,noDataValue:H,multidimensionalInfo:E,storageInfo:j})}function c(e,t,i){return h(e,{sourceJSON:t},i)}function d(e,t,i){return h(e,{rasterFunction:t},i)}function p(e,t){e.attributeTable||(t.hasRasterAttributeTable=!1),e.histograms||(t.hasHistograms=!1),e.colormap||(t.hasColormap=!1),e.multidimensionalInfo||(t.hasMultidimensions=!1)}},2272(e,t,i){i.d(t,{Dl:()=>u,gf:()=>h,jV:()=>o,lF:()=>f});var r=i(92602),a=i(4718),n=i(84952),s=i(70333),l=i(926);function o(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,n.An)(e):(0,a.o8)(e)}function f(e,t,i){let r={};for(let a in e){if("declaredClass"===a)continue;let n=e[a];if(null!=n&&"function"!=typeof n)if(Array.isArray(n))r[a]=n.map(e=>f(e));else if("object"==typeof n)if(n.toJSON){let e=n.toJSON(i?.[a]);r[a]=t?e:JSON.stringify(e)}else r[a]=t?n:JSON.stringify(n);else r[a]=n}return r}async function h(e,t,a){return function(e,t){return e?t&&(0,l.Qc)(e)?t:(0,l.getApiKey)(e)??s.id?.findCredential(e)?.token:null}(e,t)||(!s.id&&r.A.request.useIdentity&&await Promise.all([i.e(8673),i.e(37),i.e(4189)]).then(()=>i(98232)),(await s.id.getCredential(e,a))?.token)}},24212(e,t,i){i.d(t,{$7:()=>o,B:()=>l,M7:()=>h,XF:()=>f,tW:()=>u,w7:()=>s});var r=i(56512),a=i(86211),n=i(16271);function s(e,t){return function(e,t){return t?.mode?t.mode:function(e){return e?c:d}(e).mode}(null==e||(e.hasZ??!1),t)}function l(e,t,i){return i&&i.mode!==t?`${e} only support ${t} elevation mode`:null}function o(e,t,i){return i?.mode===t?`${e} do not support ${t} elevation mode`:null}function u(e,t){return null!=t?.featureExpressionInfo&&"0"!==t.featureExpressionInfo.expression?`${e} do not support featureExpressionInfo`:null}function f(e,t){t&&e.warn(".elevationInfo=",t)}function h(e){return(e?.offset??0)*(0,n.Ao)(e?.unit)}(0,r.B)((e,t,i)=>{if(!e||"decimal-degrees"===t)return 0;let r="unknown"!==t&&t?t:"meters",n=(0,a.mq)(i);return n?(0,a.oU)(e,r,n):0});const c={mode:"absolute-height",offset:0},d={mode:"on-the-ground",offset:null}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[7992],{69397(t,e,r){r.d(e,{JY:()=>m,Qf:()=>o,Qh:()=>a,lM:()=>i,ro:()=>l,rq:()=>u});var s=r(44208),n=r(34275);function i(t){if(!t)return 0;let e=f;for(let r in t)t.hasOwnProperty(r)&&(e+=h(t[r],!1));return e}function a(t){if(!t)return 0;if("number"==typeof t[0])return o(t);if(Array.isArray(t))return function(t){let e=t.length;if(0===e||"number"==typeof t[0])return u(t,8);let r=g;for(let s=0;s<e;s++)r+=h(t[s]);return r}(t);let e=f;for(let r in t)t.hasOwnProperty(r)&&(e+=h(t[r]));return e}function h(t,e=!0){switch(typeof t){case"object":return e?a(t):f;case"string":return function(t){return 32+t.length}(t);case"number":return 16;case"boolean":return 4;default:return 8}}function o(...t){return t.reduce((t,e)=>t+l(e),0)}function l(t,e=16){return t?(0,n.iu)(t)?t.byteLength+c:Array.isArray(t)?u(t,e):0:0}function u(t,e){return g+t.length*e}const f=32,g=16,m=(0,s.A)("ios")||!(0,s.A)("chrome")&&!(0,s.A)("opr")?8:4,c=145},87992(t,e,r){r.d(e,{JR:()=>A,ME:()=>M,MY:()=>Z,NO:()=>C,Nh:()=>O,V2:()=>w,_s:()=>R,e6:()=>I,gh:()=>E,jm:()=>P,tr:()=>X,uX:()=>x});var s=r(32198),n=(r(69397),r(92722)),i=r(16930),a=r(19419),h=r(513),o=r(50954),l=r(79567),u=r(52006),f=r(49663),g=r(46068),m=r(60408),c=r(21325);class x{constructor({type:t,spatialReference:e,vertexCount:r,vertexXY:s,vertexZ:n,vertexM:i,partCount:a,partOffsets:h,partFlags:o,segmentFlags:l,segmentIndices:u,segmentParams:f,segmentCountArc:g,segmentCountBezier:m}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=r,this.vertexXY=s,this.vertexZ=n,this.vertexM=i,this.partCount=a,this.partOffsets=h,this.partFlags=o,this.segmentFlags=l,this.segmentIndices=u,this.segmentParams=f,this.segmentCountArc=g,this.segmentCountBezier=m}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){let{segmentCount:t,segmentCountArc:e,segmentCountBezier:r}=this;return t&&t-e-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return this.segmentCountArc+this.segmentCountBezier>0}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function t(t){return t?64+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){let{type:t,vertexCount:e,partCount:r,hasZ:s,hasM:n,segmentCountArc:i,segmentCountBezier:a}=this,h=w(t,e,r,s,n,this.hasCurves(),i,a);h.spatialReference=this.spatialReference;let{vertexXY:o,vertexZ:l,vertexM:u}=this;if(h.vertexXY.set(o.subarray(0,2*e),0),h.vertexZ?.set(l.subarray(0,e),0),h.vertexM?.set(u.subarray(0,e),0),this.isMultipart()){let{partOffsets:t,partFlags:e}=this;h.partFlags.set(e.subarray(0,r+1)),h.partOffsets.set(t.subarray(0,r+1))}if(this.hasCurves()){let{segmentFlags:t,segmentIndices:r,segmentParams:s,segmentParamCount:n}=this;h.segmentFlags.set(t.subarray(0,e),0),h.segmentIndices.set(r.subarray(0,e),0),h.segmentParams.set(s.subarray(0,n),0)}return h}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,c.aI)(this.spatialReference,t.spatialReference)||this.vertexCount!==t.vertexCount||this.partCount!==t.partCount||this.hasZ!==t.hasZ||this.hasM!==t.hasM||this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;let r=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,r)=>Math.abs(t-r)>e||isNaN(t)!==isNaN(r);for(let e=0;e<this.vertexCount;++e)if(r(this.vertexXY[2*e],t.vertexXY[2*e])||r(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexM[e],t.vertexM[e]))return!1;for(let e=0;e<this.partCount;++e)if(this.partFlags[e]!==t.partFlags[e]||this.partOffsets[e]!==t.partOffsets[e])return!1;if(this.hasCurves()){for(let e=0;e<this.vertexCount;++e)if(this.segmentFlags[e]!==t.segmentFlags[e]||this.segmentIndices[e]!==t.segmentIndices[e])return!1;for(let e=0;e<this.segmentParamCount;++e)if(r(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new p(this):[][Symbol.iterator]()}}class p{constructor(t){this.geometry=t,this.value=new d(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class d{constructor(t){this.geometry=t,this.index=-1,this._readVertex=b(t),this._segments=new v(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){let t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class v{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this.value=new y(t.geometry)}get _partIsClosed(){return!!(1&this._part.geometry.partFlags?.[this._part.index])}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;let t=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=t&&this._partIsClosed?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){let{index:t}=this._part,e=this._part.geometry.partOffsets;this._partStart=e[t],this._partEnd=e[t+1]-(this._partIsClosed?1:2),this.value.indexOfStartVertex=this._partStart-1}}class y{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=b(t)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){let t=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===t)return this.end;let e=this.geometry.segmentParams,r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){let t=e[r++],s=e[r++],n=e[r++],i=e[r++];return{b:[this.end,[t,s],[n,i]]}}let s=e[r++],n=e[r++],i=e[r++],a=e[r++],h=e[r++],o=e[r++];r++,r++;let l=e[r++],u=e[r++];if(!(4&s)&&1===i)return{c:[this.end,[l,u]]};let f=2&s?0:1,g=1&s?0:1;return{a:[this.end,[h,o],f,g,a,n,i]}}}function C(t,e){let r={stack:[],error:void 0,hasError:!1};try{return e??=(0,a.Ie)(),(0,s.mS)(r,new S(t,["vertexZ","vertexM","spatialReference"]),!1),(0,a.bx)(e,function(t){let e,{vertexCount:r,vertexXY:n,vertexZ:i,vertexM:h}=t,o=F(t);if(t.hasCurves()){let r={stack:[],error:void 0,hasError:!1};try{(0,s.mS)(r,new S(t,["vertexZ","vertexM"]),!1);let n=(0,a.Ie)();for(let e of t.parts){let t=e.startVertex;for(let{curve:r}of e.segments)(0,l.e)(n,t,r),t=(0,u.yP)(r)}let[i,h,f,g]=n;e={xmin:i,ymin:h,xmax:f,ymax:g,spatialReference:o}}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}else{let t,s,i,a;t=s=1/0,i=a=-1/0;for(let e=0;e<r;++e){let r=n[2*e],h=n[2*e+1];t=Math.min(t,r),i=Math.max(i,r),s=Math.min(s,h),a=Math.max(a,h)}e={xmin:t,ymin:s,xmax:i,ymax:a,spatialReference:o}}if(i){let t=1/0,r=-1/0;for(let e of i)t=Math.min(t,e),r=Math.max(r,e);e.zmin=t,e.zmax=r}if(h){let t=1/0,r=-1/0;for(let e of h)t=Math.min(t,e),r=Math.max(r,e);e.mmin=t,e.mmax=r}return e}(t)),e}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}function M(t){let e,r,s;if((0,m.fT)(t)){s="point";let{x:n,y:i,z:a,m:h}=t,o=[n,i];null!=a&&o.push(a),null!=h&&o.push(h),r=[[o]],e=1}else(0,m.U9)(t)?(s="multipoint",r=[t.points],e=t.points.length):(0,m.Rg)(t)?(s="polyline",r=t.curvePaths??t.paths,e=r.reduce((t,e)=>t+e.length,0)):(s="polygon",r=t.curveRings??t.rings,e=r.reduce((t,e)=>(0===e.length||(t+=e.length,_(e[0],(0,u.yP)(e.at(-1)))&&--t),t),0));let n=w(s,e,s.includes("point")?0:r.length,(0,m.Pv)(t),(0,m.W0)(t),(0,u.Ed)(t)),{hasZ:i,hasM:a,vertexXY:h,vertexZ:o,vertexM:l}=n;function f(t){h[2*c]=t[0],h[2*c+1]=t[1],i&&(o[c]=t[2]),a&&(l[c]=t[g]),++c}n.spatialReference=t.spatialReference??void 0;let g=n.hasZ?3:2,c=0;if(!n.isMultipart()){if(!i&&!a){for(let[t,e]of r[0])h[2*c]=t,h[2*c+1]=e,++c;return n}for(let t of r[0])f(t);return n}let x="polygon"===s,{partOffsets:p}=n,d=0;if(!(0,u.Ed)(t)){for(let t of r){if(p[d++]=c,0===t.length)continue;let e=t.length;if(x&&_(t[0],t.at(-1))&&--e,i||a)for(let r=0;r<e;++r)f(t[r]);else for(let r=0;r<e;++r){let[e,s]=t[r];h[2*c]=e,h[2*c+1]=s,++c}}return p[d]=c,n}function v(t){let e=y+t;if(e<=(n.segmentParams?.length??0))return;let r=e*k;r=20*Math.ceil(r/20);let s=n.segmentParams;n.segmentParams=new Float64Array(r),null!=s&&n.segmentParams.set(s)}let y=0;for(let t of r){if(n.partOffsets[d++]=c,0===t.length)continue;let e=t[0],r=e;for(let e=1;e<t.length;++e){let s=t[e];f(r);let i=c-1;(0,u.wY)(s)?(v(10),++n.segmentCountArc,y=R(r,s,n,i,y),r=s.a[0]):(0,u.DA)(s)?(v(10),++n.segmentCountArc,y=Y(r,s,n,i,y),r=s.a[0]):(0,u.aO)(s)?(v(10),++n.segmentCountArc,y=I(r,s,n,i,y),r=s.c[0]):(0,u.n1)(s)?(v(4),++n.segmentCountBezier,y=X(0,s,n,i,y),r=s.b[0]):r=s}x&&_(e,r)||f(r)}return n.partOffsets[d]=c,n}function E(t){let e=b(t),{vertexCount:r,partCount:s,hasZ:n,hasM:i}=t,a=F(t),h=0;if(!t.isMultipart()){if("point"===t.type){let[e,r]=t.vertexXY;return{x:e,y:r,z:t.vertexZ?.[0],m:t.vertexM?.[0],spatialReference:a}}let s=[];for(;h<r;)s.push(e(h++));return{points:s,spatialReference:a,hasZ:n,hasM:i}}if(!t.hasCurves()){let r=[];for(let n=0;n<s;++n){let s=!!(1&t.partFlags[n]),i=t.partOffsets[n+1],a=[];for(;h<i;)a.push(e(h++));s&&a.length>0&&a.push([...a[0]]),r.push(a)}return"polygon"===t.type?{rings:r,hasZ:n,hasM:i,spatialReference:a}:{paths:r,hasZ:n,hasM:i,spatialReference:a}}let o=[];for(let{segments:e,startVertex:r}of t.parts){let t=[r];for(let{curve:r}of e)t.push(r);o.push(t)}return"polygon"===t.type?{rings:[],curveRings:o,hasZ:n,hasM:i,spatialReference:a}:{paths:[],curvePaths:o,hasZ:n,hasM:i,spatialReference:a}}function O(t,{lengths:e,coords:r,hasZ:s,hasM:n},i){let a=t.includes("point")?0:e.length,h="polygon"===t,o="point"===t?1:e.reduce((t,e)=>t+e,0)-(h?a:0);s??=!1,n??=!1;let l=w(t,o,a,s,n,!1,0,0);if(l.spatialReference=i??void 0,!l.isMultipart()){for(let t=0,e=0;t<o;++t)l.vertexXY[2*t]=r[e++],l.vertexXY[2*t+1]=r[e++],s&&(l.vertexZ[t]=r[e++]),n&&(l.vertexM[t]=r[e++]);return l}let u=2+Number(s)+Number(n),f=0,g=0;l.partOffsets[0]=0;for(let t of e){let e=l.partOffsets[g],i=e+t-Number(h);l.partOffsets[++g]=i;for(let t=e;t<i;++t)l.vertexXY[2*t]=r[f++],l.vertexXY[2*t+1]=r[f++],s&&(l.vertexZ[t]=r[f++]),n&&(l.vertexM[t]=r[f++]);h&&(f+=u)}return l}function A({type:t,vertexCount:e,vertexXY:r,vertexZ:s,vertexM:i,partCount:a,partOffsets:h,partFlags:o,hasZ:l,hasM:u}){let f=new n.A([],[],l,u);a=Math.max(a,1);let g=0;for(let t=0;t<a;++t){let n=h?.[t+1]??e,a=f.coords.length;for(let t=g;t<n;++t)f.coords.push(r[2*t],r[2*t+1]),l&&f.coords.push(s[t]),u&&f.coords.push(i[t]);if(o&&1&o[t]){let t=g;f.coords.push(r[2*t],r[2*t+1]),l&&f.coords.push(s[t]),u&&f.coords.push(i[t])}f.lengths.push((f.coords.length-a)/f.stride),g=n}return"point"===t&&(f.lengths.length=0),f}function P(...t){let e=new Set;for(let r of t){if(!r)continue;let t=[r.vertexXY,r.vertexZ,r.vertexM,r.partOffsets,r.partFlags,r.segmentFlags,r.segmentIndices,r.segmentParams];for(let r of t){let t=r?.buffer;t&&e.add(t)}}return Array.from(e)}function Z(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;let e=t.getText()||void 0,r=t.isCustomWkid()?0:t.getOldID();if(r<=0)return{wkt:e};let s=t.getLatestID();(s<=0||s===r)&&(s=void 0);let n=t.getVCS();if(null==n)return{wkid:r,latestWkid:s,wkt:e};let i=n.isCustomWkid()?0:n.getOldID();if(i<=0)return{wkt:e};let a=t.getLatestVerticalID();return(a<=0||a===i)&&(a=void 0),{wkid:r,wkt:e,latestWkid:s,vcsWkid:i,latestVcsWkid:a}}(t.getSpatialReference()),t=t.getGeometry()),new x({...t.toFlatGeometry(),spatialReference:e})}class S{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(let r of e)t[r]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function F({spatialReference:t}){return t instanceof i.A?t.toJSON():t}function b({vertexXY:t,vertexZ:e,vertexM:r}){return e?r?s=>[t[2*s],t[2*s+1],e[s],r[s]]:r=>[t[2*r],t[2*r+1],e[r]]:r?e=>[t[2*e],t[2*e+1],r[e]]:e=>[t[2*e],t[2*e+1]]}function _(t,e){return t.every((t,r)=>t===e[r])}function w(t,e,r,s,n,i,a,h){a??=0,h??=0;let o=new x({type:t,vertexCount:e,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:a,segmentCountBezier:h}),l=2*Float64Array.BYTES_PER_ELEMENT*e;s&&(l+=Float64Array.BYTES_PER_ELEMENT*e),n&&(l+=Float64Array.BYTES_PER_ELEMENT*e),o.isMultipart()&&(l+=(r+1)*Int32Array.BYTES_PER_ELEMENT,l+=(r+1)*Int8Array.BYTES_PER_ELEMENT),i&&(l+=e*Int8Array.BYTES_PER_ELEMENT,l+=e*Int32Array.BYTES_PER_ELEMENT,l+=o.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);let u=new ArrayBuffer(l),f=0;return o.vertexXY=new Float64Array(u,f,2*e),f+=o.vertexXY.byteLength,s&&(o.vertexZ=new Float64Array(u,f,e),f+=o.vertexZ.byteLength),n&&(o.vertexM=new Float64Array(u,f,e),f+=o.vertexM.byteLength),i&&(o.segmentParams=new Float64Array(u,f,o.segmentParamCount),f+=o.segmentParams.byteLength,o.segmentIndices=new Int32Array(u,f,e),o.segmentIndices.fill(N),f+=o.segmentIndices.byteLength),o.isMultipart()&&(o.partOffsets=new Int32Array(u,f,r+1),f+=o.partOffsets.byteLength,o.partFlags=new Int8Array(u,f,r+1),f+=o.partFlags.byteLength,"polygon"===o.type&&o.partFlags.subarray(0,r).fill(1)),i&&(o.segmentFlags=new Int8Array(u,f,e),o.segmentFlags.fill(1),f+=o.segmentFlags.byteLength),o}function R(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){r[i]=4,s[i]=a;let[h,[o,l],u,f,m,c,x]=e.a,p=4;f||(p|=1),u||(p|=2);let d=(0,g.SW)(t,e),[v,y]=(0,g.Uk)(d,.5);return n[a++]=p,n[a++]=c,n[a++]=x,n[a++]=m,n[a++]=o,n[a++]=l,n[a++]=d.u2-d.u1,n[a++]=d.u1,n[a++]=v,n[a++]=y,a}function Y(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){r[i]=4,s[i]=a;let o=(0,f.io)(t,e);return V(o,4,...(0,h.mq)(o,.5),n,a)}function I(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){return r[i]=4,s[i]=a,V((0,o.pM)(t,e),0,...e.c[1],n,a)}function V(t,e,r,s,n,i){let{cx:a,cy:h,thetaStart:o,thetaEnd:l,radius:u}=t;return o>l||(e|=1),Math.abs(l-o)<=Math.PI||(e|=2),n[i++]=e,n[i++]=u,n[i++]=1,n[i++]=0,n[i++]=a,n[i++]=h,n[i++]=l-o,n[i++]=o,n[i++]=r,n[i++]=s,i}function X(t,{b:[e,[r,s],[n,i]]},{segmentFlags:a,segmentIndices:h,segmentParams:o},l,u){return a[l]=2,h[l]=u,o[u++]=r,o[u++]=s,o[u++]=n,o[u++]=i,u}const k=1.61803,N=-1},92722(t,e,r){r.d(e,{A:()=>n});var s=r(69397);class n{constructor(t=[],e=[],r=!1,s=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=r,this.hasM=s}static fromJSON({lengths:t,coords:e,hasZ:r,hasM:s}){return new n(t,e,r||!1,s||!1)}static fromRect([t,e,r,s]){let i=r-t,a=s-e;return new n([5],[t,e,i,0,0,a,-i,0,0,-a])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,s.Qf)(this.lengths,this.coords)}get stride(){return+!!this.hasZ+2+ +!!this.hasM}area(){if(this.isPoint)return 0;let t=0,e=0;for(let r of this.lengths){if(r<3)continue;let{stride:s}=this,n=this.coords[s*e],i=this.coords[s*e+1];for(let a=1;a<r;a+=1){let r=s*(e+a),h=this.coords[r],o=this.coords[r+1];t+=-.5*(h-n)*(o+i),n=h,i=o}e+=r}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);let{stride:r}=this;for(let s of this.lengths){for(let n=0;n<s;n++){let s=r*(e+n);t(this.coords[s],this.coords[s+1])}e+=s}}deltaDecode(){let t=this.clone(),{coords:e,lengths:r}=t,s=0,{stride:n}=this;for(let t of r){for(let r=1;r<t;r++){let t=n*(s+r);e[t]+=e[t-n],e[t+1]+=e[t+1-n]}s+=t}return t}clone(t){if(this.isPoint)return new n([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);let e=Array.from(this.lengths),{stride:r,size:s}=this,i=this.coords.slice(0,s*r);return t?(t.set(i),new n(e,t,this.hasZ,this.hasM)):new n(e,Array.from(i),this.hasZ,this.hasM)}justXY(){let{stride:t,size:e}=this;if(2===t)return this;let r=Array(e*t);for(let e=0,s=0;e<r.length;e+=t)r[s++]=this.coords[e],r[s++]=this.coords[e+1];return new n(this.lengths,r,!1,!1)}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[6026],{61893(e,s,t){var r=t(32198),i=t(56372),o=t(64108),n=t(36563),l=t(17676);class a{constructor(){this._resolver=Promise.withResolvers(),this._status=0,this._resolvingPromises=[],this._resolver.promise.then(()=>{this._status=1,this._cleanUp()},()=>{this._status=2,this._cleanUp()}),this.promise=this._resolver.promise}destroy(){this._cleanUp()}addResolvingPromise(e){this._resolvingPromises.push(e),this._tryResolve()}isResolved(){return 1===this._status}isRejected(){return 2===this._status}isFulfilled(){return 0!==this._status}abort(){this._resolver.reject((0,l.NK)())}_cleanUp(){this._allPromise=null,this._resolvingPromises=null}_tryResolve(){if(this.isFulfilled())return;let e=Promise.withResolvers(),s=[...this._resolvingPromises,e.promise],t=this._allPromise=Promise.all(s);t.then(()=>{this.isFulfilled()||this._allPromise!==t||this._resolver.resolve()},e=>{this.isFulfilled()||this._allPromise!==t||(0,l.zf)(e)||this._resolver.reject(e)}),e.resolve()}}const u=e=>{let s=e,t=class extends s{constructor(...e){super(...e),this._promiseProps=new a,this.addResolvingPromise(Promise.resolve())}destroy(){this._promiseProps.destroy()}isResolved(){return this._promiseProps.isResolved()}isRejected(){return this._promiseProps.isRejected()}isFulfilled(){return this._promiseProps.isFulfilled()}when(e,s){return this._promiseProps.promise.then(()=>this).then(e,s)}catch(e){return this.when(null,e)}addResolvingPromise(e){e&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in e?e.when():e)}addResolvingTask(e){e&&!this._promiseProps.isFulfilled()&&(this.addHandles((0,n.rE)(e)),this._promiseProps.addResolvingPromise(e.promise))}};return t=(0,r.Cg)([(0,o.$K)("esri.core.Promise")],t),t},h=u(i.A);t.d(s,["Z",0,h,"g",0,u])},13069(e,s,t){t.d(s,{AG:()=>l,lk:()=>i,vD:()=>n,yS:()=>o});const r="randomUUID"in crypto;function i(){if(r)return crypto.randomUUID();let e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;let s=s=>e[s].toString(16).padStart(4,"0");return s(0)+s(1)+"-"+s(2)+"-"+s(3)+"-"+s(4)+"-"+s(5)+s(6)+s(7)}function o(){return`{${i().toUpperCase()}}`}function n(){return`{${i()}}`}function l(e){let s=e.toUpperCase();return e.startsWith("{")?s:`{${s}}`}},73444(e,s,t){t.d(s,{JK:()=>a,Ml:()=>_,QC:()=>c,lR:()=>h,oQ:()=>m});var r=t(36563);let i;t(44208);const o=globalThis.esriConfig?.locale,n=globalThis.document?.documentElement;function l(){let e=n?.getAttribute("lang"),s=globalThis.navigator?.language;return o??e??s??"en"}function a(){return void 0===i&&(i=l()),i}const u=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function h(e=a()){return p(e)?.language}function c(e=a()){let s=p(e);return s?.language&&s?.extlang?e.replace(`${s.language}-`,""):e}function p(e=a()){return u.exec(e)?.groups}const d=[];function m(e){return d.push(e),(0,r.hA)(()=>{d.splice(d.indexOf(e),1)})}new Map;const g=[];function _(e){return g.push(e),(0,r.hA)(()=>g.splice(g.indexOf(e),1))}function v(){let e=l();i!==e&&([...g].forEach(s=>s(e)),i=e,[...d].forEach(s=>s(e)))}globalThis.addEventListener?.("languagechange",v),n&&new MutationObserver(()=>{v()}).observe(n,{attributeFilter:["lang"]})},98623(e,s,t){const r=Intl.DateTimeFormat().resolvedOptions().timeZone;t.d(s,["L",0,"unknown","N",0,r])}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[1560,7366,8169,8747],{52106(e,t,r){r.d(t,{A:()=>M});var i,o,l=r(32198),n=r(91429),s=r(69540),a=r(51447),u=r(25482),p=r(53966),d=r(36708),c=r(12195),y=r(24326),g=r(65864),h=r(50498),m=r(55156),f=r(60950),v=r(54339),b=r(40124),w=r(94128),S=r(33910);const C=Symbol("meshGeometryHandles");function x(e){if(null==e)return null;let t={};for(let r in e){let i=e[r];i&&(t[r]=i.toJSON())}return 0===Object.keys(t).length?null:t}let M=class extends((0,s.OU)(u.o)){static{i=w.Z}static{o=this}constructor(e){super(e),this[i]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperties(this,{uid:{value:(0,y.c)(),configurable:!0},_lastMeshTransform:{value:{},configurable:!0,writable:!0,enumerable:!1}}),arguments.length>1&&(0,a.eF)(p.A.getLogger(this),"Graphic",{version:"4.30"})}set aggregateGeometries(e){let t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){let t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){let t=this._get("geometry");t!==e&&(this._set("geometry",e),this._watchMeshGeometryChanges(),this._notifyLayer("geometry",t,e))}set popupTemplate(e){let t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){let t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){let t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new o({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;let t=(0,f.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;let r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(let t of[r,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){let r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){let e=(0,m.I)(this.origin);if(e)return(0,v.r)(this,e);let t=this.sourceLayer??this.layer;return t?(0,v.r)(this,t):null}getGlobalId(){let e=(0,m.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);let t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){let e={aggregateGeometries:x(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,c.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){let{geometry:t}=this;if("mesh"===t?.type){let r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,i){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;let o={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(o.action=i),"attributes"===e&&(o.attributeName=i),this.layer.graphicChanged(o)}_watchMeshGeometryChanges(){this.removeHandles(C);let e=this.geometry;"mesh"===e?.type&&this.addHandles([(0,d.z7)(()=>e.vertexSpace.origin?{localMatrix:e.transform?.localMatrix,origin:e.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{(this._lastMeshTransform.localMatrix!==e||this._lastMeshTransform.origin!==t)&&(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,d.z7)(()=>({vertexAttributes:e.vertexAttributes}),()=>{e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",e,e)},{equals:(e,t)=>e===t,sync:!0})],C)}};(0,l.Cg)([(0,n.MZ)({value:null,json:{read:function(e){if(!e)return null;let t={};for(let r in e){let i=(0,g.rS)(e[r]);i&&(t[r]=i)}return 0===Object.keys(t).length?null:t}}})],M.prototype,"aggregateGeometries",null),(0,l.Cg)([(0,n.MZ)({value:null})],M.prototype,"attributes",null),(0,l.Cg)([(0,n.MZ)({value:null,types:h.yR,json:{read:g.rS}})],M.prototype,"geometry",null),(0,l.Cg)([(0,n.MZ)()],M.prototype,"distance",void 0),(0,l.Cg)([(0,n.MZ)({type:Boolean})],M.prototype,"isAggregate",void 0),(0,l.Cg)([(0,n.MZ)({clonable:!1})],M.prototype,"layer",void 0),(0,l.Cg)([(0,n.MZ)({clonable:"reference"})],M.prototype,"origin",void 0),(0,l.Cg)([(0,n.MZ)({type:b.A,value:null})],M.prototype,"popupTemplate",null),(0,l.Cg)([(0,n.MZ)({clonable:"reference"})],M.prototype,"sourceLayer",void 0),(0,l.Cg)([(0,n.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],M.prototype,"statisticsAggregatedIds",void 0),(0,l.Cg)([(0,n.MZ)({value:null,types:S.Es})],M.prototype,"symbol",null),(0,l.Cg)([(0,n.MZ)({clonable:!1,json:{read:!1,write:!1}})],M.prototype,"_version",void 0),(0,l.Cg)([(0,n.MZ)({type:Boolean,value:!0})],M.prototype,"visible",null),M=o=(0,l.Cg)([(0,n.$K)("esri.Graphic")],M)},46140(e,t,r){r.d(t,{A:()=>o});var i=r(49186);class o{constructor(e,t,r=""){this.major=e,this.minor=t,this._context=r}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}toString(){return`${this.major}.${this.minor}`}validate(e){if(this.major!==e.major){let t=this._context&&this._context+":",r=this._context&&this._context+" ";throw new i.A(t+"unsupported-version",`Required major ${r}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new o(this.major,this.minor,this._context)}static parse(e,t=""){let[r,l]=e.split(".",2),n=/^\s*\d+\s*$/;if(!r?.match||!n.test(r)){let r=t&&t+":";throw new i.A(r+"invalid-version","Expected major version to be a number, but got '${version}'",{version:e})}if(!l?.match||!n.test(l)){let r=t&&t+":";throw new i.A(r+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:e})}return new o(parseInt(r,10),parseInt(l,10),t)}}},6797(e,t,r){r.d(t,{Ui:()=>c});var i=r(56372),o=r(7762),l=r(88620);const n=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function s(e){return e instanceof i.A}function a(e){return e instanceof o.A?Object.keys(e.items):s(e)?(0,l.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof o.A?e.items[t]:e[t]}function p(e){return e?e.declaredClass:null}function d(e,t){let r=e.diff;if(r&&"function"==typeof r)return r(e,t);let i=a(e),o=a(t);if(0===i.length&&0===o.length)return;if(!i.length||!o.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};let l=o.filter(e=>!i.includes(e)),c=i.filter(e=>!o.includes(e)),y=i.filter(r=>o.includes(r)&&u(e,r)!==u(t,r)).concat(l,c).sort(),g=p(e);if(g&&n.has(g)&&y.length)return{type:"complete",oldValue:e,newValue:t};let h,m=s(e)&&s(t);for(let i of y){let o,l=u(e,i),n=u(t,i);if((m||"function"!=typeof l&&"function"!=typeof n)&&l!==n&&(null!=l||null!=n)){if(r&&r[i]&&"function"==typeof r[i])o=r[i]?.(l,n);else if(l instanceof Date&&n instanceof Date){if(l.getTime()===n.getTime())continue;o={type:"complete",oldValue:l,newValue:n}}else o="object"==typeof l&&"object"==typeof n&&p(l)===p(n)?d(l,n):{type:"complete",oldValue:l,newValue:n};null!=o&&(null==h?h={type:"partial",diff:{[i]:o}}:h.diff[i]=o)}}return h}function c(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&p(e)!==p(t)?{type:"complete",oldValue:e,newValue:t}:d(e,t)}},55156(e,t,r){r.d(t,{I:()=>o});const i=Symbol("idFieldsProviderSymbol");function o(e){return(t=e)&&i in t?e[i]:void 0;var t}r.d(t,["e",0,i])},54339(e,t,r){function i(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{let r=[];for(let i of t.fieldNames)r.push(e.attributes[i]??null);return JSON.stringify(r)}}}function o(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];let r=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(r)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}r.d(t,{W:()=>i,r:()=>o})},52136(e,t,r){var i=r(32198),o=r(91429);r.d(t,["p",0,e=>{let t=e,r=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null==e?(this._clearOverride("apiKey"),this.clear("apiKey","user")):this._override("apiKey",e)}};return(0,i.Cg)([(0,o.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.APIKeyMixin")],r),r}])},32756(e,t,r){r.d(t,{Rr:()=>s});var i=r(32198),o=r(91429),l=r(93637),n=r(91880);function s(e,t,r){if(!e)return null;let i=e.find(e=>!!e.field);if(!i)return null;let o=new n.A;return o.read(i,r),[o]}const a={type:[n.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:s},write:{writer:function(e,t,r,i){let o=e.find(e=>!!e.field);o&&(0,l.sM)(r,[o.toJSON()],t)}}}};r.d(t,["fY",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,i.Cg)([(0,o.MZ)(a)],r.prototype,"orderBy",void 0),r=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.OrderedLayer")],r),r},"ne",0,a])},28032(e,t,r){r.d(t,{A:()=>a});var i=r(32198),o=r(91429),l=r(69540),n=r(25482),s=r(56400);let a=class extends((0,l.OU)(n.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,i.Cg)([(0,o.MZ)()],a.prototype,"creatorField",void 0),(0,i.Cg)([(0,o.MZ)()],a.prototype,"creationDateField",void 0),(0,i.Cg)([(0,o.MZ)()],a.prototype,"editorField",void 0),(0,i.Cg)([(0,o.MZ)()],a.prototype,"editDateField",void 0),(0,i.Cg)([(0,o.MZ)()],a.prototype,"realm",void 0),(0,i.Cg)([(0,o.MZ)((0,s.P6)("dateFieldsTimeReference",!0))],a.prototype,"timeZone",void 0),a=(0,i.Cg)([(0,o.$K)("esri.layers.support.EditFieldsInfo")],a)},29005(e,t,r){r.d(t,{A:()=>u});var i=r(32198),o=r(91429),l=r(69540),n=r(66552),s=r(25482);const a=new n.J({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let u=class extends((0,l.OU)(s.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],u.prototype,"description",void 0),(0,i.Cg)([(0,o.MZ)({json:{read:a.read,write:a.write}})],u.prototype,"drawingTool",void 0),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],u.prototype,"prototype",void 0),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],u.prototype,"thumbnail",void 0),u=(0,i.Cg)([(0,o.$K)("esri.layers.support.FeatureTemplate")],u)},33143(e,t,r){r.d(t,{A:()=>d});var i=r(32198),o=r(91429),l=r(69540),n=r(25482),s=r(8631),a=r(29005),u=r(36005),p=r(43937);let d=class extends((0,l.OU)(n.o)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){let t={};for(let r of Object.keys(e))t[r]=(0,s.r)(e[r]);return t}writeDomains(e,t){let r={};for(let t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],d.prototype,"id",void 0),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],d.prototype,"name",void 0),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],d.prototype,"domains",void 0),(0,i.Cg)([(0,u.w)("domains")],d.prototype,"readDomains",null),(0,i.Cg)([(0,p.K)("domains")],d.prototype,"writeDomains",null),(0,i.Cg)([(0,o.MZ)({type:[a.A],json:{write:!0}})],d.prototype,"templates",void 0),d=(0,i.Cg)([(0,o.$K)("esri.layers.support.FeatureType")],d)},46499(e,t,r){var i,o,l=r(32198),n=r(91429),s=r(90360),a=(r(44208),r(66552)),u=r(25482),p=r(4718),d=r(90629),c=r(59868),y=r(73838),g=r(33910),h=r(73913),m=r(32730),f=r(77548),v=r(36005),b=r(43937);const w=new a.J({esriServerPointLabelPlacementAboveCenter:"above-center",esriServerPointLabelPlacementAboveLeft:"above-left",esriServerPointLabelPlacementAboveRight:"above-right",esriServerPointLabelPlacementBelowCenter:"below-center",esriServerPointLabelPlacementBelowLeft:"below-left",esriServerPointLabelPlacementBelowRight:"below-right",esriServerPointLabelPlacementCenterCenter:"center-center",esriServerPointLabelPlacementCenterLeft:"center-left",esriServerPointLabelPlacementCenterRight:"center-right",esriServerLinePlacementAboveAfter:"above-after",esriServerLinePlacementAboveAlong:"above-along",esriServerLinePlacementAboveBefore:"above-before",esriServerLinePlacementAboveStart:"above-start",esriServerLinePlacementAboveEnd:"above-end",esriServerLinePlacementBelowAfter:"below-after",esriServerLinePlacementBelowAlong:"below-along",esriServerLinePlacementBelowBefore:"below-before",esriServerLinePlacementBelowStart:"below-start",esriServerLinePlacementBelowEnd:"below-end",esriServerLinePlacementCenterAfter:"center-after",esriServerLinePlacementCenterAlong:"center-along",esriServerLinePlacementCenterBefore:"center-before",esriServerLinePlacementCenterStart:"center-start",esriServerLinePlacementCenterEnd:"center-end",esriServerPolygonPlacementAlwaysHorizontal:"always-horizontal"},{ignoreUnknown:!0});function S(e,t,r){return{enabled:!(0,f.TU)(r?.layer)}}function C(e){return!e||"service"!==e.origin&&"map-image"!==e.layer?.type}function x(e){return!!function(e){return"map-image"===e?.type}(e)&&!!e.capabilities?.exportMap?.supportsArcadeExpressionForLabeling}let M=class extends u.o{static{i=m.vK}static{o=this}static evaluateWhere(e,t){let r=(e,t,r)=>{switch(t){case"=":return e==r;case"<>":return e!=r;case">":return e>r;case">=":return e>=r;case"<":return e<r;case"<=":return e<=r}return!1};try{if(null==e)return!0;let i=e.split(" ");if(3===i.length)return r(t[i[0]],i[1],i[2]);if(7===i.length){let e=r(t[i[0]],i[1],i[2]),o=i[3],l=r(t[i[4]],i[5],i[6]);switch(o){case"AND":return e&&l;case"OR":return e||l}}return!1}catch{}}constructor(e){super(e),this[i]=!0,this.type="label",this.name=null,this.allowOverrun=!1,this.deconflictionStrategy="static",this.labelExpression=null,this.labelExpressionInfo=null,this.labelPlacement=null,this.offsetDistance=0,this.labelPosition="curved",this.maxScale=0,this.minScale=0,this.repeatLabel=!0,this.symbol=c.Hk,this.useCodedValues=void 0,this.where=null}readLabelExpression(e,t){let r=t.labelExpressionInfo;if(!r||!r.value&&!r.expression)return e}writeLabelExpression(e,t,r){if(this.labelExpressionInfo)if(null!=this.labelExpressionInfo.value)e=(0,m.D3)(this.labelExpressionInfo.value);else if(null!=this.labelExpressionInfo.expression){let t=(0,m.tH)(this.labelExpressionInfo.expression);t&&(e="["+t+"]")}null!=e&&(t[r]=e)}writeLabelExpressionInfo(e,t,r,i){if(null==e&&null!=this.labelExpression&&C(i))e=new h.A({expression:this.getLabelExpressionArcade()});else if(!e)return;let o=e.toJSON(i);o.expression&&(t[r]=o)}writeMaxScale(e,t){(e||this.minScale)&&(t.maxScale=e)}writeMinScale(e,t){(e||this.maxScale)&&(t.minScale=e)}get repeatLabelDistance(){return this._get("repeatLabelDistance")}set repeatLabelDistance(e){this._set("repeatLabelDistance",e)}getLabelExpression(){return(0,m.XJ)(this)}getLabelExpressionArcade(){return(0,m.BI)(this)}getLabelExpressionSingleField(){return(0,m.rU)(this)}hash(){return JSON.stringify(this)}clone(){return new o({allowOverrun:this.allowOverrun,deconflictionStrategy:this.deconflictionStrategy,labelExpression:this.labelExpression,labelExpressionInfo:(0,p.o8)(this.labelExpressionInfo),labelPosition:this.labelPosition,labelPlacement:this.labelPlacement,offsetDistance:this.offsetDistance,maxScale:this.maxScale,minScale:this.minScale,name:this.name,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,symbol:(0,p.o8)(this.symbol),where:this.where,useCodedValues:this.useCodedValues})}};(0,l.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],M.prototype,"name",void 0),(0,l.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1},"portal-item":{default:!1,write:{overridePolicy:S}}}}})],M.prototype,"allowOverrun",void 0),(0,l.Cg)([(0,n.MZ)({type:String,json:{write:!0,default:"static",origins:{"web-scene":{write:!1},"portal-item":{default:"static",write:{overridePolicy:S}}}}})],M.prototype,"deconflictionStrategy",void 0),(0,l.Cg)([(0,n.MZ)({type:String,json:{write:{overridePolicy(e,t,r){return this.labelExpressionInfo&&"service"===r?.origin&&x(r.layer)?{enabled:!1}:{allowNull:!0}}}}})],M.prototype,"labelExpression",void 0),(0,l.Cg)([(0,v.w)("labelExpression")],M.prototype,"readLabelExpression",null),(0,l.Cg)([(0,b.K)("labelExpression")],M.prototype,"writeLabelExpression",null),(0,l.Cg)([(0,n.MZ)({type:h.A,json:{write:{overridePolicy:(e,t,r)=>function(e){return C(e)||x(e?.layer)}(r)?{allowNull:!0}:{enabled:!1}}}})],M.prototype,"labelExpressionInfo",void 0),(0,l.Cg)([(0,b.K)("labelExpressionInfo")],M.prototype,"writeLabelExpressionInfo",null),(0,l.Cg)([(0,n.MZ)({type:w.apiValues,json:{type:w.jsonValues,read:w.read,write:w.write}})],M.prototype,"labelPlacement",void 0),(0,l.Cg)([(0,n.MZ)({type:Number,json:{read:!0,write:!0,default:0,origins:{"web-scene":{write:!1}}}})],M.prototype,"offsetDistance",void 0),(0,l.Cg)([(0,n.MZ)({type:["curved","parallel"],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],M.prototype,"labelPosition",void 0),(0,l.Cg)([(0,n.MZ)({type:Number})],M.prototype,"maxScale",void 0),(0,l.Cg)([(0,b.K)("maxScale")],M.prototype,"writeMaxScale",null),(0,l.Cg)([(0,n.MZ)({type:Number})],M.prototype,"minScale",void 0),(0,l.Cg)([(0,b.K)("minScale")],M.prototype,"writeMinScale",null),(0,l.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:S}}}}})],M.prototype,"repeatLabel",void 0),(0,l.Cg)([(0,n.MZ)({type:Number,cast:d.cr,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:S}}}}})],M.prototype,"repeatLabelDistance",null),(0,l.Cg)([(0,n.MZ)({types:g.em,json:{types:g.em,origins:{"portal-item":{types:g.em,read:{reader:(0,s.C)({types:g.em})},default:null},"web-scene":{types:g.Rv,read:{reader:(0,s.C)({types:g.Rv})},write:y.oO,default:null}},write:y.oO,default:null}})],M.prototype,"symbol",void 0),(0,l.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0}})],M.prototype,"useCodedValues",void 0),(0,l.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],M.prototype,"where",void 0),M=o=(0,l.Cg)([(0,n.$K)("esri.layers.support.LabelClass")],M);const A=M;r.d(t,["A",0,A])},73913(e,t,r){var i,o=r(32198),l=r(91429),n=r(25482),s=r(32730),a=r(36005),u=r(43937);let p=class extends n.o{static{i=this}constructor(e){super(e),this.name=null,this.expression=null,this.title=null,this.value=null}readExpression(e,t){return t.value?(0,s.mX)(t.value):e}writeExpression(e,t,r){null!=this.value&&(e=(0,s.mX)(this.value)),null!=e&&(t[r]=e)}clone(){return new i({name:this.name,expression:this.expression,title:this.title,value:this.value})}};(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],p.prototype,"name",void 0),(0,o.Cg)([(0,l.MZ)({type:String,json:{write:{writerEnsuresNonNull:!0}}})],p.prototype,"expression",void 0),(0,o.Cg)([(0,a.w)("expression",["expression","value"])],p.prototype,"readExpression",null),(0,o.Cg)([(0,u.K)("expression")],p.prototype,"writeExpression",null),(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],p.prototype,"title",void 0),(0,o.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],p.prototype,"value",void 0),p=i=(0,o.Cg)([(0,l.$K)("esri.layers.support.LabelExpressionInfo")],p);const d=p;r.d(t,["A",0,d])},37352(e,t,r){r.d(t,{A:()=>a});var i,o=r(32198),l=r(91429),n=r(7762),s=r(25482);let a=i=class extends s.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new n.A}clone(){return new i({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,o.Cg)([(0,l.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"floorField",void 0),(0,o.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllMode",void 0),(0,o.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllLevelIds",void 0),a=i=(0,o.Cg)([(0,l.$K)("esri.layers.support.LayerFloorInfo")],a)},91880(e,t,r){r.d(t,{A:()=>u});var i,o=r(32198),l=r(91429),n=r(66552),s=r(25482);const a=new n.J({asc:"ascending",desc:"descending"});let u=class extends s.o{static{i=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],u.prototype,"valueExpression",void 0),(0,o.Cg)([(0,l.MZ)({type:a.apiValues,json:{type:a.jsonValues,read:a.read,write:a.write}})],u.prototype,"order",void 0),u=i=(0,o.Cg)([(0,l.$K)("esri.layers.support.OrderByInfo")],u)},45067(e,t,r){r.d(t,{A:()=>p});var i=r(32198),o=r(91429),l=r(69540),n=r(66552),s=r(25482);const a=new n.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),u=new n.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let p=class extends((0,l.OU)(s.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,i.Cg)([(0,o.MZ)({json:{read:a.read,write:a.write}})],p.prototype,"cardinality",void 0),(0,i.Cg)([(0,o.MZ)({json:{name:"catalogID"}})],p.prototype,"catalogId",void 0),(0,i.Cg)([(0,o.MZ)({json:{read:!0,write:!0}})],p.prototype,"composite",void 0),(0,i.Cg)([(0,o.MZ)({json:{read:!0,write:!0}})],p.prototype,"id",void 0),(0,i.Cg)([(0,o.MZ)({json:{read:!0,write:!0}})],p.prototype,"keyField",void 0),(0,i.Cg)([(0,o.MZ)({json:{read:!0,write:!0}})],p.prototype,"keyFieldInRelationshipTable",void 0),(0,i.Cg)([(0,o.MZ)({json:{read:!0,write:!0}})],p.prototype,"name",void 0),(0,i.Cg)([(0,o.MZ)({json:{read:!0,write:!0}})],p.prototype,"relatedTableId",void 0),(0,i.Cg)([(0,o.MZ)({json:{read:!0,write:!0}})],p.prototype,"relationshipTableId",void 0),(0,i.Cg)([(0,o.MZ)({json:{read:u.read,write:u.write}})],p.prototype,"role",void 0),p=(0,i.Cg)([(0,o.$K)("esri.layers.support.Relationship")],p)},41560(e,t,r){r.d(t,{Ch:()=>n,mW:()=>l});var i=r(34727),o=r(39516);function l(e,t){return{...t,filterMode:e.mode}}function n(e,t,r){let l=function(e){if("manual"===u(e))return null;let t=[-1/0,1/0];for(let{minScale:r,maxScale:i}of e.filters)t[0]=Math.max(t[0],p(r)),t[1]=Math.min(t[1],d(i));return t}(e);if(l&&((0,i.gg)(t,l[0])||(0,i.ZH)(r,l[1])))return"";let n=Array.from(s(e,t,r)),a=function(e,t,r){if(0===e.length)return!0;let o=p(e.at(0)?.minScale),l=d(e.at(-1)?.maxScale);if((0,i.ZH)(o,t)||(0,i.gg)(l,r))return!0;for(let t=0;t<e.length-1;t++){let r=e[t],o=e[t+1];if((0,i.ZH)(p(o.minScale),d(r.maxScale)))return!0}return!1}(n,t,r)?"1=1":n.map(e=>e.where||"1=1").reduce((e,t)=>(0,o.IW)(e,t),"");return a&&"1=1"!==a?a:""}function*s(e,t,r){if("manual"===u(e)){let t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(let i of e.filters)a(i.minScale,i.maxScale,t,r)&&(yield i)}}function a(e,t,r,o){return e=p(e),r=p(r),t=d(t),!(!(0,i.Sp)(r,e)&&(o??r)>e||(0,i.Hx)(t,r)||void 0!==o&&(0,i.Sp)(o,e))}function u(e){return"mode"in e?e.mode:e.filterMode}function p(e){return e||1/0}function d(e){return e||0}},39383(e,t,r){r.d(t,{w:()=>a,z:()=>d});var i=r(49186),o=r(53966),l=r(46499);const n=()=>o.A.getLogger("esri.layers.support.labelingInfo"),s=/\[([^[\]]+)\]/gi;function a(e,t,r){return e?e.map(e=>{let i=new l.A;if(i.read(e,r),i.labelExpression){let e=t.fields||t.layerDefinition?.fields||this.fields;i.labelExpression=i.labelExpression.replaceAll(s,(t,r)=>`[${function(e,t){if(!t)return e;let r=e.toLowerCase();for(let e=0;e<t.length;e++){let i=t[e].name;if(i.toLowerCase()===r)return i}return e}(r,e)}]`)}return i}):null}const u=["above-right","above-center","above-left","center-center","center-left","center-right","below-center","below-left","below-right"],p={esriGeometryPoint:u,esriGeometryMultiPatch:["always-horizontal"],esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along","above-along","below-along"],esriGeometryMultipoint:u,esriGeometryEnvelope:null};function d(e,t){let r=[];for(let o of e){let e=o.labelPlacement,l=p[t];if(!o.symbol)return n().warn("No ILabelClass symbol specified."),[];if(!l)return n().error(new i.A("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),[];if(l.includes(e))r.push(o);else{let i=l[0];e&&n().warn(`Found invalid label placement type ${e} for ${t}. Defaulting to ${i}`);let s=o.clone();s.labelPlacement=i,r.push(s)}}return r}},73681(e,t,r){r.d(t,{n:()=>a});var i=r(49186),o=r(53966),l=r(46140),n=r(95466),s=r(55674);class a{static async from(e,t,r){let n=e.dictionary_version?l.A.parse(e.dictionary_version):null,p=new Set(e.itemsNames),d={};if(t)for(let e in t)d[e]=t[e];if(e.authoringInfo.configuration)for(let t of e.authoringInfo.configuration)d.hasOwnProperty(t.name)||(d[t.name]=t.value);let c=new Set(e.authoringInfo.symbol);for(let e of Object.keys(r))c.delete(e);c.size&&o.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:c});let y=await(0,s.xR)(e.expression,null,d);if(!y)throw new i.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");let g=!n||!n.greaterEqual(4,0);g&&o.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:n});let h=new u(r,g);return new a(g,p,y,h)}constructor(e,t,r,i){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=r,this._reader=i}get itemNames(){return this._itemNames}evaluate(e,t,r,i){try{return this._reader.bind(e,r,i),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){o.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new n.A(e);let t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new n.A(t)}}class u extends s.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){let t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);let t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},22671(e,t,r){r.d(t,{A:()=>v});var i,o=r(32198),l=r(91429),n=r(66552),s=r(25482),a=r(4718),u=r(16930),p=r(60408),d=r(65864),c=r(50498),y=r(52106),g=r(20437),h=r(36005),m=r(43937);const f=new n.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=i=class extends s.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,y.A)}writeGeometryType(e,t,r,i){if(e)return void f.write(e,t,r,i);let{features:o}=this;if(o)for(let e of o)if(null!=e?.geometry)return void f.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;let r=!!e.spatialReference,i=(0,d.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=u.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());let{features:r}=this;if(r)for(let e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,a.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){let t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){let i=t.features[r];i.geometry&&=(e?.[r])?.toJSON()||i.geometry}return t}quantize(e){let{scale:[t,r],translate:[i,o]}=e,l=this.features,n=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((o-e)/r));for(let e=0,t=l.length;e<t;e++)n?.(l[e].geometry)||(l.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){let{geometryType:e,features:t,transform:r}=this;if(!r)return this;let{translate:[i,o],scale:[l,n]}=r,s=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){let{translate:[,,e],scale:[,,t]}=r;s=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){let{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}let u=this._getHydrationFunction(e,e=>e*l+i,e=>o-e*n,s,a);for(let{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){let i=u.A.fromJSON(t.spatialReference),o=[];for(let t=0;t<e.length;t++){let l=e[t],n=r.fromJSON(l),s=l.geometry?.spatialReference;null!=n.geometry&&!s&&(n.geometry.spatialReference=i);let a=l.aggregateGeometries,u=n.aggregateGeometries;if(a&&null!=u)for(let e in u){let t=u[e],r=a[e]?.spatialReference;null!=t&&!r&&(t.spatialReference=i)}o.push(n)}return o}_quantizePoints(e,t,r){let i,o,l=[];for(let n=0,s=e.length;n<s;n++){let s=e[n];if(n>0){let e=t(s[0]),n=r(s[1]);(e!==i||n!==o)&&(l.push([e-i,n-o]),i=e,o=n)}else i=t(s[0]),o=r(s[1]),l.push([i,o])}return l.length>0?l:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{let i=(0,p.Bi)(e)?e.rings:e.paths,o=[];for(let e=0,l=i.length;e<l;e++){let l=i[e],n=this._quantizePoints(l,t,r);n&&o.push(n)}return o.length>0?((0,p.Bi)(e)?e.rings=o:e.paths=o,e):null}:"multipoint"===e?e=>{let i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,o){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{let l,n,s=(0,p.Bi)(e)?e.rings:e.paths;for(let e=0,i=s.length;e<i;e++){let i=s[e];for(let e=0,o=i.length;e<o;e++){let o=i[e];e>0?(l+=o[0],n+=o[1]):(l=o[0],n=o[1]),o[0]=t(l),o[1]=r(n)}}if(i&&o)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2]),r[3]=o(r[3])}}else if(i)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2])}}else if(o)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=o(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),o&&null!=e.mmax&&null!=e.mmin&&(e.mmax=o(e.mmax),e.mmin=o(e.mmin))}:"multipoint"===e?e=>{let l,n,s=e.points;for(let e=0,i=s.length;e<i;e++){let i=s[e];e>0?(l+=i[0],n+=i[1]):(l=i[0],n=i[1]),i[0]=t(l),i[1]=r(n)}if(i&&o)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=i(t[2]),t[3]=o(t[3])}else if(i)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=i(t[2])}else if(o)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=o(t[2])}}:null}};(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,o.Cg)([(0,l.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,o.Cg)([(0,l.MZ)({type:[y.A],json:{write:!0}})],v.prototype,"features",void 0),(0,o.Cg)([(0,h.w)("features")],v.prototype,"readFeatures",null),(0,o.Cg)([(0,l.MZ)({type:[g.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,o.Cg)([(0,l.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:f.read}}})],v.prototype,"geometryType",void 0),(0,o.Cg)([(0,m.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,o.Cg)([(0,l.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,o.Cg)([(0,l.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,o.Cg)([(0,l.MZ)({types:c.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,o.Cg)([(0,h.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,o.Cg)([(0,l.MZ)({type:u.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,o.Cg)([(0,m.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,o.Cg)([(0,l.MZ)({json:{write:!0}})],v.prototype,"transform",void 0),v=i=(0,o.Cg)([(0,l.$K)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0},41366(e,t,r){var i=r(32198),o=r(91429),l=r(66552),n=r(53966),s=r(93223);const a=(0,l.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",p="field";r.d(t,["K",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType"),t=!!this.normalizationField,r=null!=this.normalizationTotal;return t||r?(e=t&&p||r&&u||null,t&&r&&n.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):(e===p||e===u)&&(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],r.prototype,"normalizationField",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],r.prototype,"normalizationMaxValue",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],r.prototype,"normalizationMinValue",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],r.prototype,"normalizationTotal",void 0),(0,i.Cg)([(0,s.e)(a,{name:"parameters.normalizationType"})],r.prototype,"normalizationType",null),r=(0,i.Cg)([(0,o.$K)("esri.rest.support.NormalizationBinParametersMixin")],r),r},"Q",0,a])},2991(e,t,r){r.d(t,{G9:()=>u,RZ:()=>a});var i=r(39516);const o="=",l=">=",n="<=";function s(e,t,r,o){let l=o.get(e)?.type,n=o.getTimeZone(e);return`${(0,i.iA)(e)} ${t} ${(0,i.YG)(r,{type:"date"},{type:l,timeZone:n})}`}function a(e,t,r,a){if(!t||!r)return;let{startField:u,endField:p}=t,{start:d,end:c}=e;if(!d&&!c||!u&&!p)return;let y=u??p,g=p??u;if(y&&g){if(d&&c){if(d.getTime()===c.getTime())return(0,i.mA)(a,s(y,o,d,r));if(!u||!p){let e=s(y,l,d,r),t=s(y,n,c,r);return(0,i.mA)(a,(0,i.mA)(e,t))}let e=s(u,l,d,r),t=s(p,n,c,r);return(0,i.mA)(a,(0,i.mA)(e,t))}if(d)return(0,i.mA)(a,s(y,l,d,r));if(c)return(0,i.mA)(a,s(g,n,c,r))}}function u(e){let{start:t,end:r}=e;if(t||r){if(!t&&r)return`null,${r.getTime()}`;if(!r&&t)return`${t.getTime()},null`;if(r&&t)return t.getTime()===r.getTime()?`${t.getTime()}`:`${t.getTime()},${r.getTime()}`}}},93470(e,t,r){const i=[252,146,31,255],o={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},l={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i};r.d(t,["Cb",0,o,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,i,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,l])}}]);
|