@arcgis/core 6.0.0-next.47 → 6.0.0-next.49
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/Ground.js +1 -1
- package/PopupTemplate.js +1 -1
- package/analysis/AreaMeasurementAnalysis.d.ts +12 -10
- package/analysis/AreaMeasurementAnalysis.js +1 -1
- package/applications/Components/formatUtils.d.ts +3 -2
- package/applications/MapViewer/mediaUtils.js +1 -1
- package/applications/MapViewer/templateUtils.d.ts +4 -1
- package/applications/Play/transformToolUtils.d.ts +74 -0
- package/applications/Play/transformToolUtils.js +2 -0
- package/applications/SceneViewer/sceneViewerUtils.d.ts +12 -1
- package/applications/SceneViewer/sceneViewerUtils.js +1 -1
- package/arcade/featureset/actions/SpatialFilter.js +1 -1
- package/arcade/functions/featuresetgeom.js +1 -1
- package/arcade/functions/geomasync.js +1 -1
- package/arcade/geometry/operatorsWorker.js +1 -1
- package/arcade/geometry/operatorsWorkerConnection.js +1 -1
- package/arcgisGlobal.d.ts +6 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/00331b59ca88e333fef8.js +1 -0
- package/assets/esri/core/workers/chunks/01f834149d0f89deaef8.js +1 -0
- package/assets/esri/core/workers/chunks/021bd07b9a3e70598840.js +1 -0
- package/assets/esri/core/workers/chunks/037c2d2ccb4bf4db4fec.js +1 -0
- package/assets/esri/core/workers/chunks/042d7669093a16d6e77e.js +1 -0
- package/assets/esri/core/workers/chunks/04ee9dc3e5a90d015f2f.js +1 -0
- package/assets/esri/core/workers/chunks/052b248db9ff46c6f36b.js +1 -0
- package/assets/esri/core/workers/chunks/05ec995edeb73ccba8b6.js +1 -0
- package/assets/esri/core/workers/chunks/0636a6629bd42b67ad00.js +1 -0
- package/assets/esri/core/workers/chunks/063cc462524646cd45e8.js +1 -0
- package/assets/esri/core/workers/chunks/06966406bee9c33beac7.js +1 -0
- package/assets/esri/core/workers/chunks/07ce1d788ed1c9b926db.js +2 -0
- package/assets/esri/core/workers/chunks/0a7d721d8ce5803124ed.js +1 -0
- package/assets/esri/core/workers/chunks/0c1f1eba7846a05c6fcc.js +1 -0
- package/assets/esri/core/workers/chunks/0c90f857976527db567e.js +1 -0
- package/assets/esri/core/workers/chunks/0d83237e9c7291ec3ef5.js +1 -0
- package/assets/esri/core/workers/chunks/0fd5ff5b6037c89257ec.js +1 -0
- package/assets/esri/core/workers/chunks/1053e9bc73cded8d403a.js +1 -0
- package/assets/esri/core/workers/chunks/110f78d5e78732750097.js +1 -0
- package/assets/esri/core/workers/chunks/119c62e9c9c7440a6129.js +1 -0
- package/assets/esri/core/workers/chunks/12add2003631fa314f25.js +1 -0
- package/assets/esri/core/workers/chunks/13a5d2c9d2ae6b0a297b.js +1 -0
- package/assets/esri/core/workers/chunks/1430be5ba5a20d587b37.js +1 -0
- package/assets/esri/core/workers/chunks/14a00ec7bc0f230d994c.js +1 -0
- package/assets/esri/core/workers/chunks/14bac20e21bad6bb95c8.js +1 -0
- package/assets/esri/core/workers/chunks/14c04fde8d33b739b415.js +1 -0
- package/assets/esri/core/workers/chunks/1680091022f0964d47b1.js +1 -0
- package/assets/esri/core/workers/chunks/16d0433d1b02606fdd00.js +1 -0
- package/assets/esri/core/workers/chunks/16e4686ec9e408716087.js +1 -0
- package/assets/esri/core/workers/chunks/1705e9d085499a854f14.js +1 -0
- package/assets/esri/core/workers/chunks/1908da6e2b1e5f6d2992.js +1 -0
- package/assets/esri/core/workers/chunks/1971dbb6ac3ce1d5e367.js +1 -0
- package/assets/esri/core/workers/chunks/1afe435a9a23858e694e.js +1 -0
- package/assets/esri/core/workers/chunks/1b4e53575290d7a3feb1.js +1 -0
- package/assets/esri/core/workers/chunks/1bde6b7b54f07573d031.js +1 -0
- package/assets/esri/core/workers/chunks/1c7a21387d11dc907ae4.js +1 -0
- package/assets/esri/core/workers/chunks/1c7bd11f6014ffe7aac5.js +1 -0
- package/assets/esri/core/workers/chunks/1d4db5c0de1b1440b7c8.js +1 -0
- package/assets/esri/core/workers/chunks/1d9e5298ee4309022ee1.js +1 -0
- package/assets/esri/core/workers/chunks/1e39f97cc9ffbc282ffe.js +1 -0
- package/assets/esri/core/workers/chunks/1f94ce4d7595018e7b90.js +1 -0
- package/assets/esri/core/workers/chunks/2019b43c545b01f2c3fd.js +1 -0
- package/assets/esri/core/workers/chunks/21911cdbbf068cbf8641.js +1 -0
- package/assets/esri/core/workers/chunks/21aa29039a95debd7f44.js +1 -0
- package/assets/esri/core/workers/chunks/22c131418a907bf09cc0.js +1 -0
- package/assets/esri/core/workers/chunks/230e5be597a8e8172513.js +1 -0
- package/assets/esri/core/workers/chunks/23ed0f61c49df3ae631e.js +1 -0
- package/assets/esri/core/workers/chunks/2415db54c6da71c857a6.js +1 -0
- package/assets/esri/core/workers/chunks/244816f7dc50581b826b.js +1 -0
- package/assets/esri/core/workers/chunks/2458d6504682c1877ddc.js +1 -0
- package/assets/esri/core/workers/chunks/2502688aa275d9064e78.js +1 -0
- package/assets/esri/core/workers/chunks/250e6c23dbf50dbcf749.js +1 -0
- package/assets/esri/core/workers/chunks/255f5b45c4d32f97f86c.js +1 -0
- package/assets/esri/core/workers/chunks/27a91b52d1bee92b6f20.js +1 -0
- package/assets/esri/core/workers/chunks/27dfc461e44b58e7fbc0.js +1 -0
- package/assets/esri/core/workers/chunks/28425ff10dc0b181a6ba.js +1 -0
- package/assets/esri/core/workers/chunks/297fc73f8018d870ab82.js +1 -0
- package/assets/esri/core/workers/chunks/29b74a3ff03d3c8b65dc.js +1 -0
- package/assets/esri/core/workers/chunks/2d106419cd3a161587bd.js +1 -0
- package/assets/esri/core/workers/chunks/2fcd168262942494452a.js +1 -0
- package/assets/esri/core/workers/chunks/2fe55882a9ff5a74867b.js +1 -0
- package/assets/esri/core/workers/chunks/31eb09e96f31bced71ad.js +1 -0
- package/assets/esri/core/workers/chunks/31f9d86b2a2bb05143b5.js +1 -0
- package/assets/esri/core/workers/chunks/{0ac38ca04285cd5ef1a0.js → 3236e18921955450fc0d.js} +41 -35
- package/assets/esri/core/workers/chunks/340a893f1003953adab7.js +1 -0
- package/assets/esri/core/workers/chunks/341970c3550c9ca3938d.js +1 -0
- package/assets/esri/core/workers/chunks/3695ed5d82ea1514147e.js +1 -0
- package/assets/esri/core/workers/chunks/3737025b8ed71099890f.js +1 -0
- package/assets/esri/core/workers/chunks/38b7ae210c9d39449853.js +1 -0
- package/assets/esri/core/workers/chunks/38ea54b715a08bd8d794.js +1 -0
- package/assets/esri/core/workers/chunks/3ab33631e0f6f8f2cbbc.js +1 -0
- package/assets/esri/core/workers/chunks/3ad149ec07285a3f5777.js +1 -0
- package/assets/esri/core/workers/chunks/3b434fc144f6b1a21f97.js +1 -0
- package/assets/esri/core/workers/chunks/3be49515f93ea3730be3.js +1 -0
- package/assets/esri/core/workers/chunks/3ce7120056040af3bab1.js +1 -0
- package/assets/esri/core/workers/chunks/3d9294dd813707e48e55.js +1 -0
- package/assets/esri/core/workers/chunks/3ddcf58242f02feea584.js +1 -0
- package/assets/esri/core/workers/chunks/3e4fda8f6fea1ce84712.js +1 -0
- package/assets/esri/core/workers/chunks/3e57f8128102a72e7930.js +1 -0
- package/assets/esri/core/workers/chunks/3e9a72ea2d6d37a543dd.js +1 -0
- package/assets/esri/core/workers/chunks/3fac9a1b43b1035b22d6.js +1 -0
- package/assets/esri/core/workers/chunks/3fdce20b9efc05dd1cbe.js +1 -0
- package/assets/esri/core/workers/chunks/40af4142bc92166aaaf2.js +1 -0
- package/assets/esri/core/workers/chunks/40b101a969ac2b113a99.js +1 -0
- package/assets/esri/core/workers/chunks/412c7d198ee121b34494.js +1 -0
- package/assets/esri/core/workers/chunks/41c9880c718f0aaba78a.js +1 -0
- package/assets/esri/core/workers/chunks/42953a1ea2872f087d25.js +1 -0
- package/assets/esri/core/workers/chunks/435dacf493aec07ff6e3.js +1 -0
- package/assets/esri/core/workers/chunks/45f02d1ec060615fa7c5.js +1 -0
- package/assets/esri/core/workers/chunks/4608f4ba5649f107827f.js +1 -0
- package/assets/esri/core/workers/chunks/476b42902f6d0cb03489.js +1 -0
- package/assets/esri/core/workers/chunks/47cd157c9d11986d8d3a.js +1 -0
- package/assets/esri/core/workers/chunks/4813bd8bff055eb29377.js +1 -0
- package/assets/esri/core/workers/chunks/48937df95a2e03412dfd.js +1 -0
- package/assets/esri/core/workers/chunks/48b60ff59afbae865de1.js +1 -0
- package/assets/esri/core/workers/chunks/49cde0a9b3f1c3965f26.js +1 -0
- package/assets/esri/core/workers/chunks/4a41bf3d1e2e9bb79771.js +2 -0
- package/assets/esri/core/workers/chunks/4a45f63b37f1e736e99d.js +1 -0
- package/assets/esri/core/workers/chunks/4c26d6408ee7a3b9d163.js +1 -0
- package/assets/esri/core/workers/chunks/4cf8bddc3e0619e34424.js +1 -0
- package/assets/esri/core/workers/chunks/4d2d9d4e31af8af43445.js +1 -0
- package/assets/esri/core/workers/chunks/4dc75d9c860177cfc012.js +1 -0
- package/assets/esri/core/workers/chunks/4e3414d75d8378490207.js +1 -0
- package/assets/esri/core/workers/chunks/4e4eedddd954f4ad3841.js +1 -0
- package/assets/esri/core/workers/chunks/50440f9865edd9b4851d.js +1 -0
- package/assets/esri/core/workers/chunks/506954fb374ea528d020.js +1 -0
- package/assets/esri/core/workers/chunks/5253933277d16dbe7ab6.js +1 -0
- package/assets/esri/core/workers/chunks/52f96030709bd29ef47d.js +1 -0
- package/assets/esri/core/workers/chunks/53277ccca55731e6eb36.js +1 -0
- package/assets/esri/core/workers/chunks/53daa71ecf0155eeb498.js +1 -0
- package/assets/esri/core/workers/chunks/5404ffa9aa1f3fa9973a.js +1 -0
- package/assets/esri/core/workers/chunks/54a99b10f2ecf76061af.js +1 -0
- package/assets/esri/core/workers/chunks/556f4ee089f71bf201c2.js +1 -0
- package/assets/esri/core/workers/chunks/55ac40a5257faf92c43d.js +1 -0
- package/assets/esri/core/workers/chunks/55d28d3f5b8ced061e39.js +1 -0
- package/assets/esri/core/workers/chunks/55db28616f810ca063b7.js +1 -0
- package/assets/esri/core/workers/chunks/560961eeacc861a690a1.js +1 -0
- package/assets/esri/core/workers/chunks/564b38915cc3a44a96ea.js +1 -0
- package/assets/esri/core/workers/chunks/5729baa3151ac10d0d04.js +1 -0
- package/assets/esri/core/workers/chunks/57cf2bd82b006e78f8e5.js +1 -0
- package/assets/esri/core/workers/chunks/5928c270c5bf4345dab5.js +1 -0
- package/assets/esri/core/workers/chunks/59ae5bd0ee1bae7a9fb3.js +1 -0
- package/assets/esri/core/workers/chunks/5af001311d2042f14738.js +1 -0
- package/assets/esri/core/workers/chunks/5afd379eaf3d37be0854.js +1 -0
- package/assets/esri/core/workers/chunks/5b2e95bd0f48f4b283bc.js +1 -0
- package/assets/esri/core/workers/chunks/5bda285f6ecf725676b3.js +1 -0
- package/assets/esri/core/workers/chunks/5bea201cb7e24b14b852.js +1 -0
- package/assets/esri/core/workers/chunks/5cd896edff4829aab42e.js +1 -0
- package/assets/esri/core/workers/chunks/5d14591449ef16c0976f.js +1 -0
- package/assets/esri/core/workers/chunks/5d3fa06eb5eb2b663a8f.js +1 -0
- package/assets/esri/core/workers/chunks/5d75fcaded78f76efd3e.js +1 -0
- package/assets/esri/core/workers/chunks/5e816e62664a9a968833.js +1 -0
- package/assets/esri/core/workers/chunks/6004a9582ffb96d31640.js +1 -0
- package/assets/esri/core/workers/chunks/6007b6b65154e477d96a.js +1 -0
- package/assets/esri/core/workers/chunks/6033eef7867f5c82fdc6.js +1 -0
- package/assets/esri/core/workers/chunks/60556278f4bfae63a49a.js +1 -0
- package/assets/esri/core/workers/chunks/621c5b3f1e29c17426e7.js +1 -0
- package/assets/esri/core/workers/chunks/6234a96aaf934ed36793.js +1 -0
- package/assets/esri/core/workers/chunks/6274f3192d2edbc2629e.js +1 -0
- package/assets/esri/core/workers/chunks/630a36c4817f33f4cad2.js +1 -0
- package/assets/esri/core/workers/chunks/641981a68199890bde27.js +1 -0
- package/assets/esri/core/workers/chunks/6538253abdafc8e6d112.js +1 -0
- package/assets/esri/core/workers/chunks/658eb6efe5c2210def01.js +1 -0
- package/assets/esri/core/workers/chunks/65a58ffdb651c948b52c.js +1 -0
- package/assets/esri/core/workers/chunks/6779afc2d6ee46c301b5.js +1 -0
- package/assets/esri/core/workers/chunks/690a3afeeb3dbd252524.js +1 -0
- package/assets/esri/core/workers/chunks/6a509ffb4852d694a097.js +1 -0
- package/assets/esri/core/workers/chunks/6ba6714da4dcb5a6fde4.js +1 -0
- package/assets/esri/core/workers/chunks/6bf81005fd647e3cc4bf.js +1 -0
- package/assets/esri/core/workers/chunks/6c20144cf05f29dd00fc.js +1 -0
- package/assets/esri/core/workers/chunks/6c21964eb7c25c8b1e9a.js +1 -0
- package/assets/esri/core/workers/chunks/6c4c06a4fa585f56e6a3.js +1 -0
- package/assets/esri/core/workers/chunks/6d25a7071fceb707858a.js +1 -0
- package/assets/esri/core/workers/chunks/6d30cf656be3bccd3ca7.js +1 -0
- package/assets/esri/core/workers/chunks/6d86eadd4d62c9218927.js +1 -0
- package/assets/esri/core/workers/chunks/6e30a6c3224207e13a7a.js +1 -0
- package/assets/esri/core/workers/chunks/70695e0fb53018d48e7b.js +2 -0
- package/assets/esri/core/workers/chunks/708ba5a28c093994c4bd.js +1 -0
- package/assets/esri/core/workers/chunks/72c66f2b5479a3f86b94.js +1 -0
- package/assets/esri/core/workers/chunks/72ef9199ded8deea05d1.js +1 -0
- package/assets/esri/core/workers/chunks/737b748d0fbfd2e0cf02.js +1 -0
- package/assets/esri/core/workers/chunks/755df811d724a46957c5.js +1 -0
- package/assets/esri/core/workers/chunks/7585a0d26bfe7efda194.js +1 -0
- package/assets/esri/core/workers/chunks/758fcf7000eb27ba75e2.js +1 -0
- package/assets/esri/core/workers/chunks/75bc76953bdb63a095e6.js +1 -0
- package/assets/esri/core/workers/chunks/762842aba4a1dd85db64.js +1 -0
- package/assets/esri/core/workers/chunks/765b18e66111d09447de.js +1 -0
- package/assets/esri/core/workers/chunks/766a1357be2ed7f4e125.js +1 -0
- package/assets/esri/core/workers/chunks/76e20d88983a77b003e1.js +1 -0
- package/assets/esri/core/workers/chunks/794f691166c0693993ac.js +1 -0
- package/assets/esri/core/workers/chunks/7960b6eb02fdaff6ada7.js +1 -0
- package/assets/esri/core/workers/chunks/7a97eec9823941fd210f.js +29 -0
- package/assets/esri/core/workers/chunks/7a98b29b3f82d82da1da.js +1 -0
- package/assets/esri/core/workers/chunks/7b29fc210b5878951cdc.js +1 -0
- package/assets/esri/core/workers/chunks/7ccec1d7e9aca860a150.js +1 -0
- package/assets/esri/core/workers/chunks/7d040257ebefcbe896c7.js +1 -0
- package/assets/esri/core/workers/chunks/7d74bcce7d8931f9486d.js +1 -0
- package/assets/esri/core/workers/chunks/80cf3a616922e3d15d67.js +1 -0
- package/assets/esri/core/workers/chunks/80da6d01bb1dcef9e004.js +1 -0
- package/assets/esri/core/workers/chunks/812cb2e9efc4d335e9e9.js +1 -0
- package/assets/esri/core/workers/chunks/8147bbc6c42d2071e149.js +1 -0
- package/assets/esri/core/workers/chunks/82bbf0c5e18fc1c795f4.js +1 -0
- package/assets/esri/core/workers/chunks/836b131247908097be7e.js +1 -0
- package/assets/esri/core/workers/chunks/837e421a81c7dae6b67c.js +1 -0
- package/assets/esri/core/workers/chunks/83bc862c242ff0629c8b.js +1 -0
- package/assets/esri/core/workers/chunks/840258be26978bc75609.js +1 -0
- package/assets/esri/core/workers/chunks/85979b277f282f4806fe.js +1 -0
- package/assets/esri/core/workers/chunks/85992d817e58af01fa70.js +1 -0
- package/assets/esri/core/workers/chunks/85d18a646f1c8e9e041d.js +1 -0
- package/assets/esri/core/workers/chunks/87c33e729d91fa119aa4.js +1 -0
- package/assets/esri/core/workers/chunks/892d99cc12110399fae3.js +1 -0
- package/assets/esri/core/workers/chunks/8b104a30814ecc0ef588.js +1 -0
- package/assets/esri/core/workers/chunks/8c0afb02e028a520cafc.js +1 -0
- package/assets/esri/core/workers/chunks/8c94e987754b3919181e.js +1 -0
- package/assets/esri/core/workers/chunks/91019e9dff63107f8cb4.js +1 -0
- package/assets/esri/core/workers/chunks/919115788da38049aea7.js +2 -0
- package/assets/esri/core/workers/chunks/9436749830e078ddba45.js +1 -0
- package/assets/esri/core/workers/chunks/954f9854a9bf4a852b81.js +1 -0
- package/assets/esri/core/workers/chunks/95784bb703ad5e9886d8.js +1 -0
- package/assets/esri/core/workers/chunks/96bbd5af1902cc7a0347.js +1 -0
- package/assets/esri/core/workers/chunks/972677041782aea9be46.js +1 -0
- package/assets/esri/core/workers/chunks/97cdcedfe853280f6258.js +1 -0
- package/assets/esri/core/workers/chunks/9846abf2d3991a15b2b5.js +1 -0
- package/assets/esri/core/workers/chunks/98af83f8126c043aa49c.js +1 -0
- package/assets/esri/core/workers/chunks/9a4498d5865c88a86755.js +1 -0
- package/assets/esri/core/workers/chunks/9b57dc3b74f43b2c17b3.js +1 -0
- package/assets/esri/core/workers/chunks/9bec57017e6c009b5d41.js +1 -0
- package/assets/esri/core/workers/chunks/9c52b6e951ec142653e0.js +1 -0
- package/assets/esri/core/workers/chunks/9cc0250d304d93f96c01.js +1 -0
- package/assets/esri/core/workers/chunks/9d0db1230a4b95c59f1e.js +1 -0
- package/assets/esri/core/workers/chunks/9d0dfc9765c1ce96a168.js +1 -0
- package/assets/esri/core/workers/chunks/9d1a6fb14475ce790149.js +1 -0
- package/assets/esri/core/workers/chunks/9d6d4fe9a73aa17a4840.js +1 -0
- package/assets/esri/core/workers/chunks/9dcf5be203f8b1e47d9d.js +1 -0
- package/assets/esri/core/workers/chunks/9eb00bb8dab995c2dcb3.js +1 -0
- package/assets/esri/core/workers/chunks/9f087fcaf30100e447d4.js +1 -0
- package/assets/esri/core/workers/chunks/9f63600039606e3ce5e0.js +1 -0
- package/assets/esri/core/workers/chunks/9f74b3f0f453bc957e3a.js +1 -0
- package/assets/esri/core/workers/chunks/9f8d5cc6c7c2c36c6c7b.js +1 -0
- package/assets/esri/core/workers/chunks/a0e2a1c6f37454547193.js +1 -0
- package/assets/esri/core/workers/chunks/a1c45e8f5bba471b3905.js +1 -0
- package/assets/esri/core/workers/chunks/a2825285d46f8cd5d814.js +1 -0
- package/assets/esri/core/workers/chunks/a2e25c964251c2f25340.js +1 -0
- package/assets/esri/core/workers/chunks/a3409f879cae2911ef3c.js +1 -0
- package/assets/esri/core/workers/chunks/a39c0ab14d6fe337f2f3.js +1 -0
- package/assets/esri/core/workers/chunks/a5ae717842c053f5bc9c.js +1 -0
- package/assets/esri/core/workers/chunks/a5fe0625f38f1b3f8c84.js +1 -0
- package/assets/esri/core/workers/chunks/a6a3d80e786edaa0156a.js +1 -0
- package/assets/esri/core/workers/chunks/a6b139e22bd0efe20b01.js +1 -0
- package/assets/esri/core/workers/chunks/a710c7a0584d9e45a469.js +1 -0
- package/assets/esri/core/workers/chunks/a7537388778e81c9d4b4.js +1 -0
- package/assets/esri/core/workers/chunks/a8314873ed823b6ac6d6.js +1 -0
- package/assets/esri/core/workers/chunks/a8bd42057e3543c17800.js +1 -0
- package/assets/esri/core/workers/chunks/a94291f7e98864091554.js +1 -0
- package/assets/esri/core/workers/chunks/a945f7f9504e9602b9b0.js +1 -0
- package/assets/esri/core/workers/chunks/a9f1d7e4432e74285a58.js +1 -0
- package/assets/esri/core/workers/chunks/aa1793102cb8e7c5b600.js +1 -0
- package/assets/esri/core/workers/chunks/aa702f65d735eb033812.js +1 -0
- package/assets/esri/core/workers/chunks/aae6a546d2aedc22debd.js +1 -0
- package/assets/esri/core/workers/chunks/ab78c25309395049d976.js +1 -0
- package/assets/esri/core/workers/chunks/ab7e6f8fff957daa2a33.js +1 -0
- package/assets/esri/core/workers/chunks/ab8476dfb0818fc388ba.js +1 -0
- package/assets/esri/core/workers/chunks/ad029f4f7c9b79fbce8d.js +1 -0
- package/assets/esri/core/workers/chunks/aed8a1a3843aabe819f2.js +1 -0
- package/assets/esri/core/workers/chunks/b33922def112150e565f.js +1 -0
- package/assets/esri/core/workers/chunks/b4fd8f232c3d09481127.js +1 -0
- package/assets/esri/core/workers/chunks/b511b5c68defefccde0b.js +1 -0
- package/assets/esri/core/workers/chunks/b51df1d7344d47a9b72a.js +1 -0
- package/assets/esri/core/workers/chunks/b58a003bd74f158cf62a.js +1 -0
- package/assets/esri/core/workers/chunks/b7c9f95af3473b005267.js +1 -0
- package/assets/esri/core/workers/chunks/b88e1084097a93a89f61.js +1 -0
- package/assets/esri/core/workers/chunks/b92b6dd6ca5c740bf509.js +1 -0
- package/assets/esri/core/workers/chunks/b9ccaaee349e058a78df.js +1 -0
- package/assets/esri/core/workers/chunks/ba80d7ac1074ba7530d4.js +1 -0
- package/assets/esri/core/workers/chunks/babb2683e688337ea054.js +1 -0
- package/assets/esri/core/workers/chunks/bafced37f9f20a4812d7.js +1 -0
- package/assets/esri/core/workers/chunks/bb3520800b085d43cd83.js +1 -0
- package/assets/esri/core/workers/chunks/bb3a0f07e1f758d82a81.js +1 -0
- package/assets/esri/core/workers/chunks/bbf28e8c5acd87771dc7.js +1 -0
- package/assets/esri/core/workers/chunks/bbf6c995039ade67de07.js +1 -0
- package/assets/esri/core/workers/chunks/bdaf880bf4663d8263cc.js +1 -0
- package/assets/esri/core/workers/chunks/bdc2617101988ab5e9f9.js +1 -0
- package/assets/esri/core/workers/chunks/bf81b3670b5323621e2d.js +1 -0
- package/assets/esri/core/workers/chunks/bfeb4b089dbd0165d2ab.js +1 -0
- package/assets/esri/core/workers/chunks/c117db5805b5ce292ac2.js +1 -0
- package/assets/esri/core/workers/chunks/c24d383a28da266922c2.js +1 -0
- package/assets/esri/core/workers/chunks/c36dd2f7f6ea1044cd62.js +1 -0
- package/assets/esri/core/workers/chunks/c3c0f24a9e0047232ae1.js +1 -0
- package/assets/esri/core/workers/chunks/c4794d692934098988e7.js +1 -0
- package/assets/esri/core/workers/chunks/c4974a4dc081e23899ba.js +1 -0
- package/assets/esri/core/workers/chunks/c6066041f8ca0dd94480.js +1 -0
- package/assets/esri/core/workers/chunks/c80c3b746c286f8b860a.js +1 -0
- package/assets/esri/core/workers/chunks/c85184baccb4004bf42b.js +1 -0
- package/assets/esri/core/workers/chunks/c945d36f5406ea4e4e3a.js +1 -0
- package/assets/esri/core/workers/chunks/ca1f98251f246d481ba2.js +1 -0
- package/assets/esri/core/workers/chunks/ca309b6aca9c0948ebae.js +1 -0
- package/assets/esri/core/workers/chunks/cbaade131e08ec123719.js +1 -0
- package/assets/esri/core/workers/chunks/cc834768685065ddc4c3.js +1 -0
- package/assets/esri/core/workers/chunks/cd21fc8eabb11e6ecdc8.js +1 -0
- package/assets/esri/core/workers/chunks/cd9100a7c8309dfa7569.js +1 -0
- package/assets/esri/core/workers/chunks/ce995e7c03e9e65c987a.js +1 -0
- package/assets/esri/core/workers/chunks/ced5dfb2bf46fc5eac8c.js +2 -0
- package/assets/esri/core/workers/chunks/cef537fa9705dd1cf685.js +1 -0
- package/assets/esri/core/workers/chunks/cf4b92ded0503f991c0e.js +1 -0
- package/assets/esri/core/workers/chunks/cf859cb25ceccba1588c.js +1 -0
- package/assets/esri/core/workers/chunks/d007762f05dbc9272587.js +1 -0
- package/assets/esri/core/workers/chunks/d036c6e9b7ef9f8434c8.js +1 -0
- package/assets/esri/core/workers/chunks/d0900a901197948bd7df.js +1 -0
- package/assets/esri/core/workers/chunks/d22a4124af837bae4c28.js +1 -0
- package/assets/esri/core/workers/chunks/d2ed93bbfa98395bbed7.js +1 -0
- package/assets/esri/core/workers/chunks/d3b646ca17b91e59bf48.js +1 -0
- package/assets/esri/core/workers/chunks/d486a8a61ff993f8202a.js +1 -0
- package/assets/esri/core/workers/chunks/d4a79c878e0a1a42fdc0.js +1 -0
- package/assets/esri/core/workers/chunks/d4b6ea046995dcb5872f.js +1 -0
- package/assets/esri/core/workers/chunks/d4d07419a4132f69941d.js +1 -0
- package/assets/esri/core/workers/chunks/d695d30949b881217bab.js +1 -0
- package/assets/esri/core/workers/chunks/d6a513171dcc14e52a84.js +1 -0
- package/assets/esri/core/workers/chunks/d82ff5c137227563c5dc.js +1 -0
- package/assets/esri/core/workers/chunks/d96e63d66f7b1f4ea54a.js +2 -0
- package/assets/esri/core/workers/chunks/da0e55fbc14502ce7c38.js +1 -0
- package/assets/esri/core/workers/chunks/da6328b16ef589c1d2ae.js +1 -0
- package/assets/esri/core/workers/chunks/da673ffb77ae29d361ae.js +1 -0
- package/assets/esri/core/workers/chunks/daa7b13e92230464850f.js +1 -0
- package/assets/esri/core/workers/chunks/dacbefe9706585e6c273.js +1 -0
- package/assets/esri/core/workers/chunks/db438bbfbb137bb4484e.js +1 -0
- package/assets/esri/core/workers/chunks/db66be88c52b1f5e5aad.js +1 -0
- package/assets/esri/core/workers/chunks/dc3206ae22700a216ec3.js +1 -0
- package/assets/esri/core/workers/chunks/dcc7b221c3fa712d0fd1.js +1 -0
- package/assets/esri/core/workers/chunks/dd744dcd5b8751b59c83.js +1 -0
- package/assets/esri/core/workers/chunks/de6b14d13977f967a627.js +1 -0
- package/assets/esri/core/workers/chunks/df968a32256df81c0f05.js +1 -0
- package/assets/esri/core/workers/chunks/e06036392a982dbf3ae3.js +1 -0
- package/assets/esri/core/workers/chunks/e0961f79f4f0dd68a4c6.js +1 -0
- package/assets/esri/core/workers/chunks/e1dfc05bebfbf4a2274e.js +1 -0
- package/assets/esri/core/workers/chunks/e4309f214162e9daa6ed.js +1 -0
- package/assets/esri/core/workers/chunks/e4a9a6dd8cc44a4b7f32.js +1 -0
- package/assets/esri/core/workers/chunks/e575375e7c43ec22f05e.js +1 -0
- package/assets/esri/core/workers/chunks/e80526571f1a34de3278.js +1 -0
- package/assets/esri/core/workers/chunks/e9376357f24e4f59c0ee.js +1 -0
- package/assets/esri/core/workers/chunks/e99d3d85b0f074a1dcd3.js +1 -0
- package/assets/esri/core/workers/chunks/ebbb1aed4cdbb41095d6.js +1 -0
- package/assets/esri/core/workers/chunks/ec334f87203096caef43.js +1 -0
- package/assets/esri/core/workers/chunks/ecd6743a95526e2c2cbe.js +1 -0
- package/assets/esri/core/workers/chunks/ecfa2a675da831ec99ff.js +1 -0
- package/assets/esri/core/workers/chunks/ed1db6571b0c61fe4f91.js +1 -0
- package/assets/esri/core/workers/chunks/edfb0a47ce9c3d89f833.js +1 -0
- package/assets/esri/core/workers/chunks/ee33e50a54752ac88d30.js +1 -0
- package/assets/esri/core/workers/chunks/ef353a93740a9d90cd8c.js +1 -0
- package/assets/esri/core/workers/chunks/ef928201beffbaa1c98d.js +1 -0
- package/assets/esri/core/workers/chunks/efadb45b4763c51e701b.js +1 -0
- package/assets/esri/core/workers/chunks/efe52385fe8efd933831.js +1 -0
- package/assets/esri/core/workers/chunks/f053cbfe671bd14c7d5b.js +1 -0
- package/assets/esri/core/workers/chunks/f10ccb31ed05c14a1740.js +1 -0
- package/assets/esri/core/workers/chunks/f3035559945bdd619544.js +1 -0
- package/assets/esri/core/workers/chunks/f3744b12a5d0d8ca8621.js +1 -0
- package/assets/esri/core/workers/chunks/f67b6f57d71ad09dca1f.js +1 -0
- package/assets/esri/core/workers/chunks/f7c84687a5e6e2072380.js +1 -0
- package/assets/esri/core/workers/chunks/f7ed22285229ff42e6ab.js +1 -0
- package/assets/esri/core/workers/chunks/f86d64f0adc7e23950a1.js +1 -0
- package/assets/esri/core/workers/chunks/f91682e4545b47b2d260.js +1 -0
- package/assets/esri/core/workers/chunks/f97dc99afe3375fc8e16.js +1 -0
- package/assets/esri/core/workers/chunks/f9dfa94f63a024d1860e.js +1 -0
- package/assets/esri/core/workers/chunks/facfea0ae3e204829326.js +1 -0
- package/assets/esri/core/workers/chunks/fba428cd4731872a74db.js +1 -0
- package/assets/esri/core/workers/chunks/fd64556a54111b4f37dd.js +1 -0
- package/assets/esri/core/workers/chunks/fd94fe2527f360af121e.js +1 -0
- package/assets/esri/core/workers/chunks/fe529524d1fca11e0f78.js +1 -0
- package/assets/esri/core/workers/chunks/fe811d651d201f698b8f.js +2 -0
- package/assets/esri/core/workers/chunks/ff7cd800558dd4aab51c.js +1 -0
- package/assets/esri/core/workers/chunks/ffac34a030dfe5cec258.js +1 -0
- package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
- package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
- package/chunks/BlendWeights.glsl.js +4 -5
- package/chunks/Blur.glsl.js +10 -7
- package/chunks/BlurEmission.glsl.js +27 -7
- package/chunks/CheckerBoard.glsl.js +1 -1
- package/chunks/Clouds.glsl.js +2 -2
- package/chunks/ColorMaterial.glsl.js +2 -1
- package/chunks/Component.glsl.js +48 -48
- package/chunks/DefaultMaterial.glsl.js +4 -6
- package/chunks/EdgeDetect.glsl.js +1 -1
- package/chunks/EdgeShader.glsl.js +1 -1
- package/chunks/EmissionComposite.glsl.js +2 -2
- package/chunks/Fog.glsl.js +4 -4
- package/chunks/GlobalIlluminationBlur.glsl.js +1 -1
- package/chunks/HighlightSharpApply.glsl.js +4 -1
- package/chunks/ImageMaterial.glsl.js +1 -1
- package/chunks/LineCallout.glsl.js +1 -1
- package/chunks/LineMarker.glsl.js +6 -5
- package/chunks/Magnifier.glsl.js +1 -1
- package/chunks/MeasurementArrow.glsl.js +1 -1
- package/chunks/NativeLine.glsl.js +1 -1
- package/chunks/NoiseTextureAtlas.glsl.js +3 -3
- package/chunks/Path.glsl.js +2 -2
- package/chunks/Pattern.glsl.js +35 -32
- package/chunks/{ChapmanAtmosphere.glsl.js → RealisticAtmosphere.glsl.js} +18 -9
- package/chunks/RealisticAtmosphereCompositing.glsl.js +35 -0
- package/chunks/RealisticTree.glsl.js +1 -1
- package/chunks/RibbonLine.glsl.js +1 -1
- package/chunks/SSAO.glsl.js +2 -2
- package/chunks/SimpleAtmosphere.glsl.js +1 -1
- package/chunks/SlicePlaneMaterial.glsl.js +1 -1
- package/chunks/Terrain.glsl.js +1 -1
- package/chunks/Water.glsl.js +1 -1
- package/chunks/lyr3DMain.js +1 -1
- package/chunks/lyr3DWorker.js +1 -1
- package/config.js +1 -1
- package/core/Logger.js +1 -1
- package/core/accessorSupport/ObservableBase.js +1 -1
- package/core/accessorSupport/tracking/ObservationHandle.js +1 -1
- package/core/accessorSupport/tracking/SimpleObservable.js +1 -1
- package/core/accessorSupport/tracking/SimpleTrackingTarget.js +1 -1
- package/core/accessorSupport/tracking/TrackingTarget.js +1 -1
- package/core/libs/gl-matrix-2/math/quat.js +1 -1
- package/core/quantity.js +1 -1
- package/core/timeUtils.js +1 -1
- package/core/workers/Connection.d.ts +3 -9
- package/core/workers/WorkerFallback.js +2 -4
- package/core/workers/WorkerOwner.js +1 -1
- package/core/workers/workerFactory.js +1 -1
- package/core/workers/workers.js +1 -1
- package/core/workers.d.ts +1 -14
- package/form/FormTemplate.js +1 -1
- package/geometry/Mesh.js +1 -1
- package/geometry/coordinateConversion/CoordinateConversionModel.d.ts +258 -0
- package/geometry/coordinateConversion/CoordinateConversionModel.js +2 -0
- package/geometry/coordinateConversion/support/Conversion.d.ts +73 -0
- package/geometry/coordinateConversion/support/Conversion.js +2 -0
- package/geometry/coordinateConversion/support/Format.d.ts +131 -0
- package/geometry/coordinateConversion/support/Format.js +2 -0
- package/geometry/coordinateConversion/support/coordinateConversionUtils.js +2 -0
- package/geometry/coordinateConversion/support/formatUtils.js +2 -0
- package/geometry/coordinateConversion/types.d.ts +116 -0
- package/geometry/support/curves/bezierCurveUtils.js +1 -1
- package/geometry/support/curves/ellipticArc7Utils.js +1 -1
- package/geometry/support/meshUtils/rotate.js +1 -1
- package/interfaces.d.ts +1 -7
- package/kernel.js +1 -1
- package/layers/IntegratedMesh3DTilesLayer.js +1 -1
- package/layers/IntegratedMeshLayer.js +1 -1
- package/layers/Lyr3DWasmPerSceneView.js +1 -1
- package/layers/ParquetLayer.d.ts +2 -3
- package/layers/VectorTileLayer.js +1 -1
- package/layers/catalog/CatalogFootprintLayer.d.ts +2 -2
- package/layers/graphics/data/QueryEngine.js +1 -1
- package/layers/knowledgeGraph/KnowledgeGraphLayerDataManager.js +1 -1
- package/layers/knowledgeGraph/cypherUtils.js +1 -1
- package/layers/mixins/FeatureLayerBase.d.ts +2 -2
- package/layers/raster/formats/Lzw.js +1 -1
- package/layers/raster/formats/Raw.js +1 -1
- package/layers/raster/formats/TiffDecoder.js +1 -1
- package/layers/raster/formats/tiffParser.js +1 -1
- package/layers/raster/formats/tiffTag.js +1 -1
- package/layers/raster/functions/rasterProjectionHelper.js +1 -1
- package/layers/support/AggregateFieldsIndex.js +1 -1
- package/layers/support/FieldCollector.js +2 -0
- package/layers/support/IntegratedMeshSemantics.js +2 -0
- package/layers/support/VideoElement.js +1 -1
- package/layers/support/fieldUtils.d.ts +214 -1
- package/layers/support/fieldUtils.js +1 -1
- package/layers/support/relativeTimeQueryUtils.js +1 -1
- package/layers/support/types.d.ts +1 -2
- package/legend/ActiveLayerInfo.js +1 -1
- package/legend/LegendModel.js +1 -1
- package/legend/types.d.ts +15 -1
- package/package.json +2 -2
- package/renderers/ClassBreaksRenderer.js +1 -1
- package/renderers/DictionaryRenderer.js +1 -1
- package/renderers/DotDensityRenderer.js +1 -1
- package/renderers/HeatmapRenderer.js +1 -1
- package/renderers/PieChartRenderer.js +1 -1
- package/renderers/Renderer.js +1 -1
- package/renderers/SimpleRenderer.js +1 -1
- package/renderers/UniqueValueRenderer.js +1 -1
- package/renderers/mixins/VisualVariablesMixin.js +1 -1
- package/rest/print.js +1 -1
- package/symbols/CIMSymbol.js +1 -1
- package/symbols/FillSymbol3DLayer.d.ts +1 -4
- package/symbols/Symbol.js +1 -1
- package/symbols/cim/Rasterizer.js +1 -1
- package/symbols/cim/cimAnalyzer.js +1 -1
- package/symbols/support/FeatureExpressionInfo.js +1 -1
- package/time/daylightUtils.d.ts +29 -0
- package/time/daylightUtils.js +2 -0
- package/time/timeZoneUtils.js +1 -1
- package/time/types.d.ts +57 -1
- package/views/2d/analysis/AreaMeasurement/AreaMeasurementTool.js +1 -1
- package/views/2d/analysis/AreaMeasurementAnalysisView2D.js +1 -1
- package/views/2d/engine/webgl/TextureManager.js +1 -1
- package/views/2d/engine/webgl/mesh/templates/shapingUtils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/markers/ComputedMarkerParams.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueSymbol.js +1 -1
- package/views/2d/interactive/editingTools/GraphicTransformTarget.js +2 -0
- package/views/2d/interactive/editingTools/MediaElementTransformTarget.js +2 -0
- package/views/2d/interactive/editingTools/MediaTransformToolsWrapper.js +1 -1
- package/views/2d/interactive/editingTools/TransformTool.js +1 -1
- package/views/2d/interactive/editingTools.js +1 -1
- package/views/2d/layers/GeospatialPDFLayerView2D.js +1 -1
- package/views/2d/layers/MediaLayerView2D.js +1 -1
- package/views/2d/layers/TileLayerView2D.js +1 -1
- package/views/2d/layers/support/MediaLayerInteraction.js +1 -1
- package/views/3d/GroundView3D.js +1 -1
- package/views/3d/analysis/AreaMeasurement/support/AreaMeasurementVisualization.js +1 -1
- package/views/3d/analysis/AreaMeasurementAnalysisView3D.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightRayIntersector.js +1 -1
- package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementController.js +1 -1
- package/views/3d/glTF/internal/TextureTransformUtils.js +1 -1
- package/views/3d/interactive/Manipulator3D.js +1 -1
- package/views/3d/interactive/Manipulator3DBase.js +2 -0
- package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/OutlineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
- package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
- package/views/3d/layers/graphics/Deconflictor.js +1 -1
- package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DSymbol.js +1 -1
- package/views/3d/layers/graphics/Graphics3DWebStyleSymbol.js +1 -1
- package/views/3d/layers/graphics/SymbolComplexity.js +1 -1
- package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
- package/views/3d/layers/graphics/webStyleUtils.js +1 -1
- package/views/3d/layers/i3s/I3SClientMaterialUtil.js +1 -1
- package/views/3d/layers/i3s/I3SIntersectionHandler.js +1 -1
- package/views/3d/layers/i3s/I3SMaterialUtil.js +1 -1
- package/views/3d/layers/support/SceneLayerViewRequiredFields.js +1 -1
- package/views/3d/layers/support/Tiles3DMeshIntersectionHandler.js +1 -1
- package/views/3d/layers/support/createFeatureFilterHighlight.js +1 -1
- package/views/3d/layers/support/patternUtils.js +1 -1
- package/views/3d/state/controllers/GamepadKeyboardController.js +1 -1
- package/views/3d/support/GroundAndIMSurface.js +1 -1
- package/views/3d/support/engineContent/line.js +1 -1
- package/views/3d/support/hitTest.js +1 -1
- package/views/3d/support/pointsOfInterest/StableSurfaceCenter.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/terrain/PatchGeometryFactory.js +1 -1
- package/views/3d/terrain/PatchRenderDataWaterproofness.js +1 -1
- package/views/3d/terrain/SphericalPatch.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentDrawParameters.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObject.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/Component.glsl.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterialInitParameters.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterialRepository.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/core/renderPasses/RenderPass.js +1 -1
- package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeNormalTexture.glsl.js +8 -8
- package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadBaseColorTexture.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceRayMarching.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/WaterColor.glsl.js +6 -4
- package/views/3d/webgl-engine/core/shaderLibrary/shading/evaluateSceneLightingFragment.glsl.js +3 -2
- package/views/3d/webgl-engine/core/shaderLibrary/util/BlendModes.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +10 -9
- package/views/3d/webgl-engine/core/shaderLibrary/util/GaussianSplatUnpacking.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/util/cameraUniforms.js +1 -1
- package/views/3d/webgl-engine/effects/WeatherFader.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/ChapmanApproximation.glsl.js +3 -3
- package/views/3d/webgl-engine/effects/atmosphere/{ChapmanAtmosphere.glsl.js → RealisticAtmosphere.glsl.js} +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphere.js +2 -0
- package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphereCompositing.glsl.js +2 -0
- package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphereCompositingTechnique.js +2 -0
- package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphereTechnique.js +2 -0
- package/views/3d/webgl-engine/effects/fog/Fog.js +1 -1
- package/views/3d/webgl-engine/effects/glow/BlurEmission.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/glow/applyEmissiveGlow.glsl.js +87 -41
- package/views/3d/webgl-engine/effects/precipitation/Precipitation.js +1 -1
- package/views/3d/webgl-engine/effects/snowcover/applySnow.glsl.js +4 -2
- package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
- package/views/3d/webgl-engine/lib/BufferGeometry.js +1 -1
- 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/GLTextureMaterial.js +1 -1
- package/views/3d/webgl-engine/lib/GeometryUtil.js +1 -1
- package/views/3d/webgl-engine/lib/ManagedTexture.js +1 -1
- package/views/3d/webgl-engine/lib/Material.js +1 -1
- package/views/3d/webgl-engine/lib/Octree.js +1 -1
- package/views/3d/webgl-engine/lib/PathEvaluator.js +1 -1
- package/views/3d/webgl-engine/lib/PathGeometry.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
- package/views/3d/webgl-engine/lib/intersectorUtilsConversions.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/InstanceOctree.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
- package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/internal/ribbonLineBufferUtils.js +1 -1
- package/views/3d/webgl-engine/parts/RenderView.js +1 -1
- package/views/3d/webgl-engine/shaders/ColorMaterialTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/OutputColorHighlightOLID.glsl.js +14 -13
- package/views/3d/webgl-engine/shaders/Pattern.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/PatternLayouts.js +1 -1
- package/views/3d/webgl-engine/shaders/PatternTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/PatternTechniqueConfiguration.js +1 -1
- package/views/SceneView.js +1 -1
- package/views/VideoView.js +1 -1
- package/views/interactive/Tooltip.js +1 -1
- package/views/interactive/keybindings.d.ts +67 -0
- package/views/interactive/snapping/RightAngleTriangleSnapper.js +1 -1
- package/views/interactive/snapping/SnappingAlgorithm.js +1 -1
- package/views/interactive/tooltip/content/TooltipContent.js +1 -1
- package/views/layers/FeatureLikeLayerView.js +1 -1
- package/views/layers/support/MapServiceLayerViewHelper.js +1 -1
- package/widgets/CoordinateConversion/CoordinateConversionViewModel.d.ts +3 -0
- package/widgets/CoordinateConversion/CoordinateConversionViewModel.js +1 -1
- package/widgets/CoordinateConversion.js +1 -1
- package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
- package/widgets/Sketch/SketchViewModel.js +1 -1
- package/widgets/support/GridControls/GridControlsViewModel.js +1 -1
- package/assets/esri/core/workers/chunks/00620a90b32352bcdc71.js +0 -1
- package/assets/esri/core/workers/chunks/01a24ae6e3d730e193e2.js +0 -1
- package/assets/esri/core/workers/chunks/0284f608d25c654fcc11.js +0 -1
- package/assets/esri/core/workers/chunks/02debe67e6fef9d88bdd.js +0 -1
- package/assets/esri/core/workers/chunks/02feb2550b6878e62e2d.js +0 -1
- package/assets/esri/core/workers/chunks/035204000954973b0ebc.js +0 -1
- package/assets/esri/core/workers/chunks/04a1d08c3b5b1dc7628f.js +0 -1
- package/assets/esri/core/workers/chunks/05225506fdba0c827407.js +0 -1
- package/assets/esri/core/workers/chunks/0523f893870a1546d7d9.js +0 -1
- package/assets/esri/core/workers/chunks/06101f3da5e2fc708402.js +0 -1
- package/assets/esri/core/workers/chunks/06326c8cbe0d644eca16.js +0 -1
- package/assets/esri/core/workers/chunks/075fe33152fd79fe6d72.js +0 -1
- package/assets/esri/core/workers/chunks/077b755688346e0dc8d3.js +0 -1
- package/assets/esri/core/workers/chunks/0864da8f8f147016cf1c.js +0 -1
- package/assets/esri/core/workers/chunks/08fe248e412bb170210d.js +0 -1
- package/assets/esri/core/workers/chunks/090a7d0b0128d20879be.js +0 -1
- package/assets/esri/core/workers/chunks/0979a48905742486f222.js +0 -1
- package/assets/esri/core/workers/chunks/0ac4a3029ba17a9e2492.js +0 -1
- package/assets/esri/core/workers/chunks/0ae2933ab9b4a6ca56f2.js +0 -1
- package/assets/esri/core/workers/chunks/0b480583373b69773333.js +0 -1
- package/assets/esri/core/workers/chunks/0b6941781e35ce0f7274.js +0 -1
- package/assets/esri/core/workers/chunks/0bfc4e7640058811e10c.js +0 -1
- package/assets/esri/core/workers/chunks/0c1d8e0c2eae21f97fc0.js +0 -1
- package/assets/esri/core/workers/chunks/0da6abe3ceabfe78f7a0.js +0 -1
- package/assets/esri/core/workers/chunks/0dc1ac5531f7c8854686.js +0 -1
- package/assets/esri/core/workers/chunks/0e57bac610d41c7c9ad4.js +0 -1
- package/assets/esri/core/workers/chunks/0fda0d8b0eaeed2ab39d.js +0 -1
- package/assets/esri/core/workers/chunks/10ad7b35b6800d40444e.js +0 -1
- package/assets/esri/core/workers/chunks/116293b1ee788a89ce1e.js +0 -1
- package/assets/esri/core/workers/chunks/11877d4dc97f756e4711.js +0 -1
- package/assets/esri/core/workers/chunks/11e313dfca2579e68419.js +0 -1
- package/assets/esri/core/workers/chunks/12a08d0ad0f5fea32642.js +0 -1
- package/assets/esri/core/workers/chunks/13b40a611224ff5f4697.js +0 -1
- package/assets/esri/core/workers/chunks/13c64087be3b2985a21b.js +0 -1
- package/assets/esri/core/workers/chunks/14ef986665b4a1f6ccdc.js +0 -1
- package/assets/esri/core/workers/chunks/158cbf4075d3eca83a6a.js +0 -1
- package/assets/esri/core/workers/chunks/15a18c803a3aafa9a65b.js +0 -1
- package/assets/esri/core/workers/chunks/15a7a3264915fc8d3188.js +0 -1
- package/assets/esri/core/workers/chunks/15f2b27b8edc0d53e399.js +0 -1
- package/assets/esri/core/workers/chunks/162de06e54c0f9cba012.js +0 -1
- package/assets/esri/core/workers/chunks/17c6d66b47aa690df0d4.js +0 -1
- package/assets/esri/core/workers/chunks/17f99b130384c1ff2e01.js +0 -1
- package/assets/esri/core/workers/chunks/181d24ced5ef6b1f959b.js +0 -1
- package/assets/esri/core/workers/chunks/18e7fa4d3e0b1a084cc6.js +0 -1
- package/assets/esri/core/workers/chunks/1ae0c9345626e70affd3.js +0 -2
- package/assets/esri/core/workers/chunks/1c61ced6079443fc0ce8.js +0 -1
- package/assets/esri/core/workers/chunks/1c94d4d79952dc4067be.js +0 -1
- package/assets/esri/core/workers/chunks/1ca9f823caff691e964d.js +0 -1
- package/assets/esri/core/workers/chunks/1d9b0db37d5f3819ffca.js +0 -1
- package/assets/esri/core/workers/chunks/1e37337f47f45d6d8005.js +0 -1
- package/assets/esri/core/workers/chunks/1eaaa896eea3f2ffe6a6.js +0 -1
- package/assets/esri/core/workers/chunks/1f51567f47c2e2fc8a23.js +0 -1
- package/assets/esri/core/workers/chunks/200da109115eab8b2480.js +0 -1
- package/assets/esri/core/workers/chunks/2050c844b5a29b1df28a.js +0 -1
- package/assets/esri/core/workers/chunks/21939ef53bc71b42370f.js +0 -1
- package/assets/esri/core/workers/chunks/21a4c3d8265aca775616.js +0 -1
- package/assets/esri/core/workers/chunks/230189a28552ab00546d.js +0 -1
- package/assets/esri/core/workers/chunks/23fff0505e02fd364909.js +0 -1
- package/assets/esri/core/workers/chunks/244ffdb91237d1cbade3.js +0 -1
- package/assets/esri/core/workers/chunks/24bdeafbb16ae83bb8c3.js +0 -1
- package/assets/esri/core/workers/chunks/2515ce2ef279cdd4d5fa.js +0 -1
- package/assets/esri/core/workers/chunks/2671035cc08027185737.js +0 -1
- package/assets/esri/core/workers/chunks/271ae7deccb94112c2df.js +0 -1
- package/assets/esri/core/workers/chunks/27a5c6be4f847900d6ed.js +0 -1
- package/assets/esri/core/workers/chunks/27f0bbde1e9fa3f06d46.js +0 -1
- package/assets/esri/core/workers/chunks/286e3e050b29e6158e6f.js +0 -1
- package/assets/esri/core/workers/chunks/29a437a2b7b3a9b3e104.js +0 -1
- package/assets/esri/core/workers/chunks/2a224bc845c9bf682c54.js +0 -1
- package/assets/esri/core/workers/chunks/2a8168e109caa87d596f.js +0 -1
- package/assets/esri/core/workers/chunks/2ad69cc496235702bbf2.js +0 -1
- package/assets/esri/core/workers/chunks/2b06e8507d71c4d9b5b5.js +0 -1
- package/assets/esri/core/workers/chunks/2b4dd42920d37b1ff0a9.js +0 -2
- package/assets/esri/core/workers/chunks/2bdd5f0e0364b9e5f52b.js +0 -1
- package/assets/esri/core/workers/chunks/2c619c50cdcc37652c0b.js +0 -1
- package/assets/esri/core/workers/chunks/2c7f3fb74a076acf9b30.js +0 -1
- package/assets/esri/core/workers/chunks/2e9a1673b1d51aa082b6.js +0 -1
- package/assets/esri/core/workers/chunks/2e9d2f0a4e3c84d2ac2e.js +0 -1
- package/assets/esri/core/workers/chunks/30c5b584e8658b2b3607.js +0 -1
- package/assets/esri/core/workers/chunks/30e20461958951a31a5c.js +0 -1
- package/assets/esri/core/workers/chunks/31ef7b7074b3e3829763.js +0 -1
- package/assets/esri/core/workers/chunks/32b9bedd4bb0504f0b1d.js +0 -1
- package/assets/esri/core/workers/chunks/32ba94e59b411d3ff063.js +0 -1
- package/assets/esri/core/workers/chunks/3463b52d633a9336af28.js +0 -1
- package/assets/esri/core/workers/chunks/348f1def9cd2ddf92e87.js +0 -1
- package/assets/esri/core/workers/chunks/348f28d7ab46df878c6f.js +0 -1
- package/assets/esri/core/workers/chunks/3537fe95b83a13b156cc.js +0 -1
- package/assets/esri/core/workers/chunks/35426786de409d42a87f.js +0 -1
- package/assets/esri/core/workers/chunks/359ab29c4509dce0ffbd.js +0 -1
- package/assets/esri/core/workers/chunks/35f8896b52adaf952657.js +0 -1
- package/assets/esri/core/workers/chunks/365825c51fad1bb7f51f.js +0 -1
- package/assets/esri/core/workers/chunks/369780276b2755361f7d.js +0 -1
- package/assets/esri/core/workers/chunks/377158a19c9d6ef11387.js +0 -1
- package/assets/esri/core/workers/chunks/394b329e64d880cdb500.js +0 -1
- package/assets/esri/core/workers/chunks/39c23a52d7c3e1ee121c.js +0 -1
- package/assets/esri/core/workers/chunks/3a295fab549ae3caf9df.js +0 -1
- package/assets/esri/core/workers/chunks/3a3b57abfb92494cac84.js +0 -1
- package/assets/esri/core/workers/chunks/3a8320a40916c755c031.js +0 -1
- package/assets/esri/core/workers/chunks/3bb1e06861cd0563ed9f.js +0 -1
- package/assets/esri/core/workers/chunks/3cbb3c4e0e60a874ac6d.js +0 -1
- package/assets/esri/core/workers/chunks/3e67d50a2b2f8f837831.js +0 -29
- package/assets/esri/core/workers/chunks/3f92afa58c895bf87e62.js +0 -1
- package/assets/esri/core/workers/chunks/3fe04f13215474accb09.js +0 -1
- package/assets/esri/core/workers/chunks/3fe4c89acd325d36618d.js +0 -1
- package/assets/esri/core/workers/chunks/40748b846cf6923478c9.js +0 -1
- package/assets/esri/core/workers/chunks/4136c4de42b8818e2710.js +0 -1
- package/assets/esri/core/workers/chunks/41d674e73b57c8abe838.js +0 -1
- package/assets/esri/core/workers/chunks/422784ceae0d511868a0.js +0 -1
- package/assets/esri/core/workers/chunks/425347186c279bcc595c.js +0 -1
- package/assets/esri/core/workers/chunks/42eec0421e3663019549.js +0 -1
- package/assets/esri/core/workers/chunks/434a7ef5b25d83593b50.js +0 -1
- package/assets/esri/core/workers/chunks/4521f72ab0ea872e5d7c.js +0 -1
- package/assets/esri/core/workers/chunks/46d0db736c6e7decbcf6.js +0 -1
- package/assets/esri/core/workers/chunks/474015def9652ddf0640.js +0 -1
- package/assets/esri/core/workers/chunks/478a89317a12e9b4d146.js +0 -1
- package/assets/esri/core/workers/chunks/47af220003adfca2167e.js +0 -1
- package/assets/esri/core/workers/chunks/4869e097261ded90b8bb.js +0 -1
- package/assets/esri/core/workers/chunks/489b37c459e1af116aeb.js +0 -1
- package/assets/esri/core/workers/chunks/49c21c11621ff077e401.js +0 -1
- package/assets/esri/core/workers/chunks/4a8903fb1a5d30a68df9.js +0 -1
- package/assets/esri/core/workers/chunks/4ba856605f711b615e4c.js +0 -1
- package/assets/esri/core/workers/chunks/4d62877f521cc9663535.js +0 -1
- package/assets/esri/core/workers/chunks/4d7063c4152953afb859.js +0 -1
- package/assets/esri/core/workers/chunks/4d818b231e6d1fa73cc5.js +0 -1
- package/assets/esri/core/workers/chunks/4eab4e74c6a479c5f930.js +0 -1
- package/assets/esri/core/workers/chunks/4f3e0d583cfa9d1d6727.js +0 -2
- package/assets/esri/core/workers/chunks/4f4bc4f809b8936cd010.js +0 -1
- package/assets/esri/core/workers/chunks/4f8a915795f107b772c5.js +0 -1
- package/assets/esri/core/workers/chunks/503ee206e7de1f65e291.js +0 -1
- package/assets/esri/core/workers/chunks/50b8b1cce0a5f77c8372.js +0 -1
- package/assets/esri/core/workers/chunks/52a0aa2d19a495e48ab1.js +0 -1
- package/assets/esri/core/workers/chunks/5565b4e7c31d31a7e546.js +0 -1
- package/assets/esri/core/workers/chunks/561c48cb4d49b150765b.js +0 -1
- package/assets/esri/core/workers/chunks/5622f3faa59434772857.js +0 -1
- package/assets/esri/core/workers/chunks/5736feefa261589b6273.js +0 -1
- package/assets/esri/core/workers/chunks/5744c7350e4e2eb73aa9.js +0 -1
- package/assets/esri/core/workers/chunks/5788c5ab258b36c8a897.js +0 -1
- package/assets/esri/core/workers/chunks/57e0bf4be8a166d5b1eb.js +0 -1
- package/assets/esri/core/workers/chunks/5864bce1498a13ee5b7e.js +0 -2
- package/assets/esri/core/workers/chunks/590fe0f56bc4c33a50e7.js +0 -1
- package/assets/esri/core/workers/chunks/5b1cebae74c7214ccda9.js +0 -1
- package/assets/esri/core/workers/chunks/5b3db2c40feaefb7cbc0.js +0 -1
- package/assets/esri/core/workers/chunks/5ba40e98e9300d1ebc85.js +0 -1
- package/assets/esri/core/workers/chunks/5be386b3af867b19ff39.js +0 -1
- package/assets/esri/core/workers/chunks/5c2e79f2ca401741bf3e.js +0 -1
- package/assets/esri/core/workers/chunks/5c3aa8386705c5e40358.js +0 -1
- package/assets/esri/core/workers/chunks/5c9ab86bec07264dc9f2.js +0 -1
- package/assets/esri/core/workers/chunks/5e6d6676a5c47c0e132a.js +0 -1
- package/assets/esri/core/workers/chunks/5fbd7d8d8896a224fff3.js +0 -1
- package/assets/esri/core/workers/chunks/60137300db0e0c3caf13.js +0 -1
- package/assets/esri/core/workers/chunks/6061232c96e11eb7b25d.js +0 -1
- package/assets/esri/core/workers/chunks/606ea251075fe81a1206.js +0 -1
- package/assets/esri/core/workers/chunks/608be1172a908e92b9f1.js +0 -1
- package/assets/esri/core/workers/chunks/6268aadb24e0b7c8d207.js +0 -1
- package/assets/esri/core/workers/chunks/62a0abcf45a2bd14ecbe.js +0 -1
- package/assets/esri/core/workers/chunks/63d2645a744dce469bbb.js +0 -1
- package/assets/esri/core/workers/chunks/64382363d6dc04ff1eac.js +0 -1
- package/assets/esri/core/workers/chunks/649e4ecb1d9e6da3fcd7.js +0 -1
- package/assets/esri/core/workers/chunks/6604272ef6fe85279032.js +0 -1
- package/assets/esri/core/workers/chunks/6637fb99033bfa7646d4.js +0 -1
- package/assets/esri/core/workers/chunks/66539ab0d88b47326ce9.js +0 -1
- package/assets/esri/core/workers/chunks/67f54efc817b241f8746.js +0 -1
- package/assets/esri/core/workers/chunks/68b4ce0b2e754ac2e552.js +0 -1
- package/assets/esri/core/workers/chunks/69b73251257088ce7099.js +0 -1
- package/assets/esri/core/workers/chunks/69c338d1d359075371bc.js +0 -1
- package/assets/esri/core/workers/chunks/6b646971cc15e33a9f33.js +0 -1
- package/assets/esri/core/workers/chunks/6cd17c3a254a0b5c2476.js +0 -1
- package/assets/esri/core/workers/chunks/6d863761f29f31a030eb.js +0 -1
- package/assets/esri/core/workers/chunks/7027a0e7bfabb3bb7fc2.js +0 -1
- package/assets/esri/core/workers/chunks/711cfb84659cb4437679.js +0 -1
- package/assets/esri/core/workers/chunks/72020d86e3fc7ecc139f.js +0 -1
- package/assets/esri/core/workers/chunks/72f4dad65e16a7d7c58f.js +0 -1
- package/assets/esri/core/workers/chunks/72f716a841463e0ba23f.js +0 -1
- package/assets/esri/core/workers/chunks/73ab4f0275a85b9671ec.js +0 -1
- package/assets/esri/core/workers/chunks/751a21288cf161b94a54.js +0 -1
- package/assets/esri/core/workers/chunks/7672c123cfb960f4ddad.js +0 -1
- package/assets/esri/core/workers/chunks/76dc8e3264a456f33e61.js +0 -1
- package/assets/esri/core/workers/chunks/77463141652bf1ca6fb2.js +0 -1
- package/assets/esri/core/workers/chunks/776b64a1e1a57878c34c.js +0 -1
- package/assets/esri/core/workers/chunks/77d80b6d65d761214a7c.js +0 -1
- package/assets/esri/core/workers/chunks/792d2b62356a1d953c88.js +0 -1
- package/assets/esri/core/workers/chunks/79483c05867ba1386f5a.js +0 -1
- package/assets/esri/core/workers/chunks/7aa9b61ca9b66f30449f.js +0 -1
- package/assets/esri/core/workers/chunks/7b7208237123e948f170.js +0 -1
- package/assets/esri/core/workers/chunks/7c75a8ee266c36baa902.js +0 -1
- package/assets/esri/core/workers/chunks/7d866911d1171d25ca78.js +0 -1
- package/assets/esri/core/workers/chunks/7db9e615e60d824eac1b.js +0 -1
- package/assets/esri/core/workers/chunks/7ddbde8fdd1cf3c53f50.js +0 -1
- package/assets/esri/core/workers/chunks/7eddde6c4249f46c67f3.js +0 -1
- package/assets/esri/core/workers/chunks/8102f0bf5707c3be3310.js +0 -1
- package/assets/esri/core/workers/chunks/8140ed6e44c3d8536d3e.js +0 -1
- package/assets/esri/core/workers/chunks/82160bd873cdb5a23557.js +0 -1
- package/assets/esri/core/workers/chunks/82e238375582f90dc94c.js +0 -1
- package/assets/esri/core/workers/chunks/831d896587d10fb689dc.js +0 -1
- package/assets/esri/core/workers/chunks/834bbda7719b04301f74.js +0 -1
- package/assets/esri/core/workers/chunks/835ccd95f2d312ecda5a.js +0 -1
- package/assets/esri/core/workers/chunks/8385bede56cc95d1a388.js +0 -1
- package/assets/esri/core/workers/chunks/85cd525705eec6803dd3.js +0 -1
- package/assets/esri/core/workers/chunks/85ec73dcba4b922f1948.js +0 -1
- package/assets/esri/core/workers/chunks/8766832c7253557da8fe.js +0 -1
- package/assets/esri/core/workers/chunks/892fd2c3533ce46a9258.js +0 -1
- package/assets/esri/core/workers/chunks/89cc1a5539b82fb46216.js +0 -1
- package/assets/esri/core/workers/chunks/89e9ebc8d5c1022cb265.js +0 -1
- package/assets/esri/core/workers/chunks/8a8c9a3969b7016c20d9.js +0 -1
- package/assets/esri/core/workers/chunks/8c1ae93dae934aedc6dc.js +0 -1
- package/assets/esri/core/workers/chunks/8cc8d7ffe43f5947b04f.js +0 -1
- package/assets/esri/core/workers/chunks/8cddfdbab3ad3809462f.js +0 -1
- package/assets/esri/core/workers/chunks/8cec3f48e995aab3d62e.js +0 -1
- package/assets/esri/core/workers/chunks/8e7a3b1b088c160f4db7.js +0 -1
- package/assets/esri/core/workers/chunks/8f1dd383502432d8a039.js +0 -1
- package/assets/esri/core/workers/chunks/90a7cd7564f2a92199cc.js +0 -1
- package/assets/esri/core/workers/chunks/914a0b5d9fef683cdf9c.js +0 -1
- package/assets/esri/core/workers/chunks/921917e53bac82693ec8.js +0 -1
- package/assets/esri/core/workers/chunks/926e0a3827eaf16ca8b4.js +0 -1
- package/assets/esri/core/workers/chunks/92809b209b68abcb97ee.js +0 -1
- package/assets/esri/core/workers/chunks/929ca32ddbb43328ef31.js +0 -1
- package/assets/esri/core/workers/chunks/92b03de8a7686b164f60.js +0 -1
- package/assets/esri/core/workers/chunks/98957dba728c93506e50.js +0 -1
- package/assets/esri/core/workers/chunks/98e3f7ab4bfbabf0b952.js +0 -1
- package/assets/esri/core/workers/chunks/99a72b65afdcd3ee091a.js +0 -1
- package/assets/esri/core/workers/chunks/99ffb839407cb3c26ad8.js +0 -1
- package/assets/esri/core/workers/chunks/9b048f80c2d28d527373.js +0 -1
- package/assets/esri/core/workers/chunks/9b517c8d26a86dedb921.js +0 -1
- package/assets/esri/core/workers/chunks/9bb90097368b200fa730.js +0 -1
- package/assets/esri/core/workers/chunks/9bf77f92760aacbd636f.js +0 -1
- package/assets/esri/core/workers/chunks/9c2436464b7dfd666678.js +0 -1
- package/assets/esri/core/workers/chunks/9c3f56f22e9baa80a387.js +0 -1
- package/assets/esri/core/workers/chunks/9d0ee6a816bb72068ab1.js +0 -1
- package/assets/esri/core/workers/chunks/9e7622379d777ea88018.js +0 -1
- package/assets/esri/core/workers/chunks/9fb4c10d5b3e32bc86e9.js +0 -1
- package/assets/esri/core/workers/chunks/a02c3c23bd87e0470b8b.js +0 -1
- package/assets/esri/core/workers/chunks/a1602995ef96beb7df29.js +0 -1
- package/assets/esri/core/workers/chunks/a553478664a688f32488.js +0 -1
- package/assets/esri/core/workers/chunks/a83815c028c9c80aa4c9.js +0 -1
- package/assets/esri/core/workers/chunks/a8bedc53d4a316953108.js +0 -1
- package/assets/esri/core/workers/chunks/a8fbef765a6fb68e1115.js +0 -1
- package/assets/esri/core/workers/chunks/a95186214f1206efd8ed.js +0 -1
- package/assets/esri/core/workers/chunks/aa4f3751f0d830113bed.js +0 -1
- package/assets/esri/core/workers/chunks/aa8ab28e0c1ae3b55ac0.js +0 -1
- package/assets/esri/core/workers/chunks/aaac620f93a20fbd3f08.js +0 -1
- package/assets/esri/core/workers/chunks/ab60e8fbe0f92340616a.js +0 -1
- package/assets/esri/core/workers/chunks/ab684cce869973ea71cf.js +0 -1
- package/assets/esri/core/workers/chunks/aba42885c5d6b2b5fe7f.js +0 -1
- package/assets/esri/core/workers/chunks/ac10c7d2c4829a150037.js +0 -1
- package/assets/esri/core/workers/chunks/ac69c0fd5867b493f1d2.js +0 -1
- package/assets/esri/core/workers/chunks/ad787100602e18dde650.js +0 -1
- package/assets/esri/core/workers/chunks/ae29fec228e70a93ced1.js +0 -1
- package/assets/esri/core/workers/chunks/ae40eac1eadd1a537bf4.js +0 -1
- package/assets/esri/core/workers/chunks/ae70972bf88d586fd453.js +0 -1
- package/assets/esri/core/workers/chunks/af3c6794334626b94f00.js +0 -1
- package/assets/esri/core/workers/chunks/af70a81620203c030f5b.js +0 -1
- package/assets/esri/core/workers/chunks/afc8a9847f31bb66b13b.js +0 -1
- package/assets/esri/core/workers/chunks/b021fa4654ede1d04279.js +0 -1
- package/assets/esri/core/workers/chunks/b10850c48f4eee60b8a9.js +0 -1
- package/assets/esri/core/workers/chunks/b18459c1bed75dbdec08.js +0 -1
- package/assets/esri/core/workers/chunks/b25104337f2495a4296a.js +0 -1
- package/assets/esri/core/workers/chunks/b2d922ecc2c4899dbee1.js +0 -1
- package/assets/esri/core/workers/chunks/b3707d2cd2f4b2f70889.js +0 -1
- package/assets/esri/core/workers/chunks/b3801d58c024224917df.js +0 -1
- package/assets/esri/core/workers/chunks/b3c0c9c91bcdbbb8e719.js +0 -1
- package/assets/esri/core/workers/chunks/b4928831a2a13b2da745.js +0 -1
- package/assets/esri/core/workers/chunks/b6a82775b83d20599635.js +0 -1
- package/assets/esri/core/workers/chunks/b6d365b9198b74b05338.js +0 -1
- package/assets/esri/core/workers/chunks/b6d71a4ab788a09714f3.js +0 -1
- package/assets/esri/core/workers/chunks/b89b634e9d38b5a51d33.js +0 -1
- package/assets/esri/core/workers/chunks/b976122bcd4e2170afaf.js +0 -1
- package/assets/esri/core/workers/chunks/bb6573d794bbe670216a.js +0 -1
- package/assets/esri/core/workers/chunks/bc21241bc9acb83d1b1c.js +0 -1
- package/assets/esri/core/workers/chunks/bdd76a0b6c14e7fb6984.js +0 -1
- package/assets/esri/core/workers/chunks/be11cec9979ed5e9738e.js +0 -1
- package/assets/esri/core/workers/chunks/c063de8f57a393280c39.js +0 -1
- package/assets/esri/core/workers/chunks/c473c8b480de9802711b.js +0 -1
- package/assets/esri/core/workers/chunks/c5bf19da62a3d31009fe.js +0 -2
- package/assets/esri/core/workers/chunks/c67ce7896789ac7275b2.js +0 -1
- package/assets/esri/core/workers/chunks/c752f1e732bb019f657d.js +0 -1
- package/assets/esri/core/workers/chunks/c75cc72a306a617d9cd8.js +0 -1
- package/assets/esri/core/workers/chunks/c85336a50a4994a2a7eb.js +0 -1
- package/assets/esri/core/workers/chunks/c9e7d4c277fbc82c4438.js +0 -1
- package/assets/esri/core/workers/chunks/cc817c9d3f8e8f8c56e4.js +0 -1
- package/assets/esri/core/workers/chunks/ccb0046b883286e65429.js +0 -1
- package/assets/esri/core/workers/chunks/ccb55245fe49d844ec50.js +0 -1
- package/assets/esri/core/workers/chunks/cdf0c7706d3e1221f49b.js +0 -1
- package/assets/esri/core/workers/chunks/cf684026e7f1ab7df4f7.js +0 -1
- package/assets/esri/core/workers/chunks/d0172d31389dbfaaa848.js +0 -1
- package/assets/esri/core/workers/chunks/d19ac8368bb769fa5fba.js +0 -1
- package/assets/esri/core/workers/chunks/d26c9db8c0a772d0923c.js +0 -1
- package/assets/esri/core/workers/chunks/d31f6598b76380e8688a.js +0 -1
- package/assets/esri/core/workers/chunks/d344c3fd9f6b113bbcd7.js +0 -1
- package/assets/esri/core/workers/chunks/d3cd09b2d78ce9f2ea42.js +0 -1
- package/assets/esri/core/workers/chunks/d4028536542db8b623cc.js +0 -1
- package/assets/esri/core/workers/chunks/d4eb24c82087a74ae670.js +0 -1
- package/assets/esri/core/workers/chunks/d4fe26716c4eca13d493.js +0 -1
- package/assets/esri/core/workers/chunks/d5916500514a41a4758f.js +0 -1
- package/assets/esri/core/workers/chunks/d63e181f0e48bde73395.js +0 -1
- package/assets/esri/core/workers/chunks/d7270a2db6f3bfcf0565.js +0 -1
- package/assets/esri/core/workers/chunks/d77888c84a8b49478807.js +0 -1
- package/assets/esri/core/workers/chunks/d85d1064ba87ea1b1410.js +0 -1
- package/assets/esri/core/workers/chunks/d8b9d14f8d3e82ad26dc.js +0 -1
- package/assets/esri/core/workers/chunks/d99d5aa04e2d74ef57a7.js +0 -1
- package/assets/esri/core/workers/chunks/d9e75266ac28f934eb61.js +0 -1
- package/assets/esri/core/workers/chunks/db1f7b2562de495b3401.js +0 -2
- package/assets/esri/core/workers/chunks/dbf37b1c4e0567d9fb32.js +0 -1
- package/assets/esri/core/workers/chunks/dc9792b2aa55975b8a95.js +0 -1
- package/assets/esri/core/workers/chunks/dca0e2505a6cbef6f7f5.js +0 -1
- package/assets/esri/core/workers/chunks/dcc782e4bf9e8a8202f9.js +0 -1
- package/assets/esri/core/workers/chunks/dd7e4c94a88452425750.js +0 -1
- package/assets/esri/core/workers/chunks/ddaa8f8098e4a663e4e5.js +0 -1
- package/assets/esri/core/workers/chunks/ddb4689624d091922471.js +0 -1
- package/assets/esri/core/workers/chunks/de3f140058aa0b907b65.js +0 -1
- package/assets/esri/core/workers/chunks/df375d1b0dab5ecbd1be.js +0 -1
- package/assets/esri/core/workers/chunks/df88bb9117967fe72eb4.js +0 -1
- package/assets/esri/core/workers/chunks/dfbe0efe453587ec5eb2.js +0 -1
- package/assets/esri/core/workers/chunks/dfc6b33f51dc81f3a7be.js +0 -1
- package/assets/esri/core/workers/chunks/e0650b1408197d3ac862.js +0 -1
- package/assets/esri/core/workers/chunks/e0a37d3bcb9a944e53dd.js +0 -1
- package/assets/esri/core/workers/chunks/e1f5da51115472347b55.js +0 -1
- package/assets/esri/core/workers/chunks/e209cb1f3f14bf576ebe.js +0 -1
- package/assets/esri/core/workers/chunks/e2535c83b97725e89256.js +0 -1
- package/assets/esri/core/workers/chunks/e2576c37cf13dc421f69.js +0 -1
- package/assets/esri/core/workers/chunks/e2ebf0ea3af2e6907987.js +0 -1
- package/assets/esri/core/workers/chunks/e4e2edfdc85dd14e66d4.js +0 -1
- package/assets/esri/core/workers/chunks/e55934eb4a17a5b24c94.js +0 -1
- package/assets/esri/core/workers/chunks/e5bdfef7c2cc5354be52.js +0 -1
- package/assets/esri/core/workers/chunks/e7719bfbc5875a515a2b.js +0 -1
- package/assets/esri/core/workers/chunks/eaa0e906b46ae4c84d72.js +0 -2
- package/assets/esri/core/workers/chunks/ead49b513e070951a964.js +0 -1
- package/assets/esri/core/workers/chunks/eb2652ec48faa78de3c5.js +0 -1
- package/assets/esri/core/workers/chunks/ec88631b5033c19f569e.js +0 -1
- package/assets/esri/core/workers/chunks/ee6679ef9efa1504e7eb.js +0 -1
- package/assets/esri/core/workers/chunks/ef8f9b61b829c3bdf999.js +0 -1
- package/assets/esri/core/workers/chunks/ef9740c4d1bd808af38a.js +0 -1
- package/assets/esri/core/workers/chunks/efcd38aad9aa667001b2.js +0 -1
- package/assets/esri/core/workers/chunks/f0b897319ca8578df63f.js +0 -1
- package/assets/esri/core/workers/chunks/f1c2f7c7ce4bd4096eb0.js +0 -1
- package/assets/esri/core/workers/chunks/f1e87e3ff65d8594e6b3.js +0 -1
- package/assets/esri/core/workers/chunks/f36376b126c80d0983fb.js +0 -1
- package/assets/esri/core/workers/chunks/f3ca7fa35eb8d55f5907.js +0 -1
- package/assets/esri/core/workers/chunks/f497968055af459c5da4.js +0 -1
- package/assets/esri/core/workers/chunks/f4d714d0a1a513861704.js +0 -1
- package/assets/esri/core/workers/chunks/f4e63c5f82b8c2bbfacb.js +0 -1
- package/assets/esri/core/workers/chunks/f7123ba1286f64e13e91.js +0 -1
- package/assets/esri/core/workers/chunks/f7f73de8c63924e347ab.js +0 -1
- package/assets/esri/core/workers/chunks/f91e36a104e84d985517.js +0 -1
- package/assets/esri/core/workers/chunks/f9259dc1d78d762c6ac0.js +0 -1
- package/assets/esri/core/workers/chunks/fa5d4b9a098441ebf505.js +0 -1
- package/assets/esri/core/workers/chunks/fc9d66fe2cc9e2d31964.js +0 -1
- package/assets/esri/core/workers/chunks/fcb4707c2e95099b9f30.js +0 -1
- package/assets/esri/core/workers/chunks/fccfe3aa45a2fb286012.js +0 -1
- package/assets/esri/core/workers/chunks/fe0248af95d3f37e099e.js +0 -1
- package/chunks/AtmosphereCompositing.glsl.js +0 -25
- package/layers/support/ParquetPortalItemData.d.ts +0 -39
- package/layers/support/ParquetPortalItemData.js +0 -2
- package/views/3d/analysis/ShadowCast/sunlightUtils.js +0 -2
- package/views/3d/webgl-engine/effects/atmosphere/ChapmanAtmosphere.js +0 -2
- package/views/3d/webgl-engine/effects/atmosphere/ChapmanAtmosphereTechnique.js +0 -2
- package/views/3d/webgl-engine/shaders/AtmosphereCompositing.glsl.js +0 -2
- package/views/3d/webgl-engine/shaders/AtmosphereCompositingTechnique.js +0 -2
- /package/assets/esri/core/workers/chunks/{c5bf19da62a3d31009fe.js.LICENSE.txt → 07ce1d788ed1c9b926db.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{4f3e0d583cfa9d1d6727.js.LICENSE.txt → 4a41bf3d1e2e9bb79771.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{5864bce1498a13ee5b7e.js.LICENSE.txt → 70695e0fb53018d48e7b.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{2b4dd42920d37b1ff0a9.js.LICENSE.txt → 919115788da38049aea7.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{db1f7b2562de495b3401.js.LICENSE.txt → ced5dfb2bf46fc5eac8c.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{eaa0e906b46ae4c84d72.js.LICENSE.txt → d96e63d66f7b1f4ea54a.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{1ae0c9345626e70affd3.js.LICENSE.txt → fe811d651d201f698b8f.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[382],{30382(t,r,e){async function n(t={}){var r,e=t,n=!!globalThis.window,i=!!globalThis.WorkerGlobalScope;globalThis.process?.versions?.node&&globalThis.process;var a,s,o="";if(n||i){try{o=new URL(".","").href}catch{}i&&(s=t=>{var r=new XMLHttpRequest;return r.open("GET",t,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}),a=async t=>{var r=await fetch(t,{credentials:"same-origin"});if(r.ok)return r.arrayBuffer();throw Error(r.status+" : "+r.url)}}console.log.bind(console);var u,c,f,h,l,p,w,y=console.error.bind(console),m=!1,g=!1;function d(){var t=B.buffer;h=new Int8Array(t),new Int16Array(t),l=new Uint8Array(t),new Uint16Array(t),new Int32Array(t),p=new Uint32Array(t),new Float32Array(t),new Float64Array(t),new BigInt64Array(t),new BigUint64Array(t)}function _(t){e.onAbort?.(t),y(t="Aborted("+t+")"),m=!0,t+=". Build with -sASSERTIONS for more info.";var r=new WebAssembly.RuntimeError(t);throw f?.(r),r}async function b(t,r,e){if(!t)try{var n=fetch(r,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(n,e)}catch(t){y(`wasm streaming compile failed: ${t}`),y("falling back to ArrayBuffer instantiation")}return async function(t,r){try{var e=await async function(t){if(!u)try{var r=await a(t);return new Uint8Array(r)}catch{}return function(t){if(t==w&&u)return new Uint8Array(u);if(s)return s(t);throw"both async and sync fetching of the wasm failed"}(t)}(t);return await WebAssembly.instantiate(e,r)}catch(t){y(`failed to asynchronously prepare wasm: ${t}`),_(t)}}(r,e)}var R=t=>{for(;t.length>0;)t.shift()(e)},A=[],v=t=>A.push(t),I=[],T=t=>I.push(t);class U{constructor(t){this.excPtr=t,this.ptr=t-24}set_type(t){p[this.ptr+4>>2]=t}get_type(){return p[this.ptr+4>>2]}set_destructor(t){p[this.ptr+8>>2]=t}get_destructor(){return p[this.ptr+8>>2]}set_caught(t){t=+!!t,h[this.ptr+12]=t}get_caught(){return 0!=h[this.ptr+12]}set_rethrown(t){t=+!!t,h[this.ptr+13]=t}get_rethrown(){return 0!=h[this.ptr+13]}init(t,r){this.set_adjusted_ptr(0),this.set_type(t),this.set_destructor(r)}set_adjusted_ptr(t){p[this.ptr+16>>2]=t}get_adjusted_ptr(){return p[this.ptr+16>>2]}}var B,E=(t,r)=>Math.ceil(t/r)*r,S=t=>{var r=(t-B.buffer.byteLength+65535)/65536|0;try{return B.grow(r),d(),1}catch{}};if(e.noExitRuntime&&e.noExitRuntime,e.print&&e.print,e.printErr&&(y=e.printErr),e.wasmBinary&&(u=e.wasmBinary),e.arguments&&e.arguments,e.thisProgram&&e.thisProgram,e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.shift()();var k={a:(t,r,e)=>{throw new U(t).init(r,e),t},b:()=>_(""),c:t=>{var r=l.length,e=2147483648;if((t>>>=0)>e)return!1;for(var n=1;n<=4;n*=2){var i=r*(1+.2/n);if(i=Math.min(i,t+100663296),S(Math.min(e,E(Math.max(t,i),65536))))return!0}return!1}},W=await async function(){function t(t,r){return function(t){e._lerc_getBlobInfo=t.f,e._lerc_getDataRanges=t.g,e._lerc_decode_4D=t.h,e._malloc=t.i,e._free=t.j,e.memory=B=t.d,t.__indirect_function_table}(W=t.exports),d(),W}var r={a:k};return e.instantiateWasm?new Promise((n,i)=>{e.instantiateWasm(r,(r,e)=>{n(t(r))})}):(w??=e.locateFile?function(t){return e.locateFile?e.locateFile(t,o):o+t}("lerc-wasm.wasm"):new URL("lerc-wasm.wasm","").href,function(r){return t(r.instance)}(await b(u,w,r)))}();return function(){function t(){e.calledRun=!0,m||(g=!0,W.e(),c?.(e),e.onRuntimeInitialized?.(),function(){if(e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;)v(e.postRun.shift());R(A)}())}!function(){if(e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)T(e.preRun.shift());R(I)}(),e.setStatus?(e.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>e.setStatus(""),1),t()},1)):t()}(),r=g?e:new Promise((t,r)=>{c=t,f=r}),r}e.d(r,{default:()=>n})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1560,8801],{52106(e,t,r){r.d(t,{A:()=>M});var i,s,o=r(32198),n=r(40124),l=r(69540),a=r(51447),u=r(25482),p=r(53966),d=r(36708),c=r(24326),y=r(91429),h=r(12195),g=r(65864),f=r(50498),m=r(55156),v=r(60950),b=r(54339),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,l.OU)(u.o)){static{i=w.Z}static{s=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,c.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 s({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,v.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,b.r)(this,e);let t=this.sourceLayer??this.layer;return t?(0,b.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,h.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 s={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(s.action=i),"attributes"===e&&(s.attributeName=i),this.layer.graphicChanged(s)}_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,o.Cg)([(0,y.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,o.Cg)([(0,y.MZ)({value:null})],M.prototype,"attributes",null),(0,o.Cg)([(0,y.MZ)({value:null,types:f.yR,json:{read:g.rS}})],M.prototype,"geometry",null),(0,o.Cg)([(0,y.MZ)()],M.prototype,"distance",void 0),(0,o.Cg)([(0,y.MZ)({type:Boolean})],M.prototype,"isAggregate",void 0),(0,o.Cg)([(0,y.MZ)({clonable:!1})],M.prototype,"layer",void 0),(0,o.Cg)([(0,y.MZ)({clonable:"reference"})],M.prototype,"origin",void 0),(0,o.Cg)([(0,y.MZ)({type:n.A,value:null})],M.prototype,"popupTemplate",null),(0,o.Cg)([(0,y.MZ)({clonable:"reference"})],M.prototype,"sourceLayer",void 0),(0,o.Cg)([(0,y.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],M.prototype,"statisticsAggregatedIds",void 0),(0,o.Cg)([(0,y.MZ)({value:null,types:S.Es})],M.prototype,"symbol",null),(0,o.Cg)([(0,y.MZ)({clonable:!1,json:{read:!1,write:!1}})],M.prototype,"_version",void 0),(0,o.Cg)([(0,y.MZ)({type:Boolean,value:!0})],M.prototype,"visible",null),M=s=(0,o.Cg)([(0,y.$K)("esri.Graphic")],M)},46140(e,t,r){r.d(t,{A:()=>s});var i=r(49186);class s{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 s(this.major,this.minor,this._context)}static parse(e,t=""){let[r,o]=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(!o?.match||!n.test(o)){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 s(parseInt(r,10),parseInt(o,10),t)}}},6797(e,t,r){r.d(t,{Ui:()=>c});var i=r(56372),s=r(7762),o=r(88620);const n=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function l(e){return e instanceof i.A}function a(e){return e instanceof s.A?Object.keys(e.items):l(e)?(0,o.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof s.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),s=a(t);if(0===i.length&&0===s.length)return;if(!i.length||!s.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 o=s.filter(e=>!i.includes(e)),c=i.filter(e=>!s.includes(e)),y=i.filter(r=>s.includes(r)&&u(e,r)!==u(t,r)).concat(o,c).sort(),h=p(e);if(h&&n.has(h)&&y.length)return{type:"complete",oldValue:e,newValue:t};let g,f=l(e)&&l(t);for(let i of y){let s,o=u(e,i),n=u(t,i);if((f||"function"!=typeof o&&"function"!=typeof n)&&o!==n&&(null!=o||null!=n)){if(r&&r[i]&&"function"==typeof r[i])s=r[i]?.(o,n);else if(o instanceof Date&&n instanceof Date){if(o.getTime()===n.getTime())continue;s={type:"complete",oldValue:o,newValue:n}}else s="object"==typeof o&&"object"==typeof n&&p(o)===p(n)?d(o,n):{type:"complete",oldValue:o,newValue:n};null!=s&&(null==g?g={type:"partial",diff:{[i]:s}}:g.diff[i]=s)}}return g}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)}},83027(e,t,r){const i=r(29953).ho;r.d(t,["h",0,i])},55156(e,t,r){r.d(t,{I:()=>s});const i=Symbol("idFieldsProviderSymbol");function s(e){return(t=e)&&i in t?e[i]:void 0;var t}r.d(t,["e",0,i])},15481(e,t,r){r.r(t),r.d(t,{default:()=>se});var i=r(32198),s=r(40124),o=r(25728),n=r(17676),l=r(84952),a=r(91429),u=r(5443),p=r(16930),d=r(50498),c=r(41910),y=r(55156),h=r(60950),g=r(89808),f=r(99959);const m=Symbol("isGeoJSONGraphicOrigin");var v;class b extends f.A{get[(v=m,h.ym)](){return this.layer}get[y.e](){return this.layer}get[g.Q](){return this.layer}get[c.e7](){return this.layer}constructor(e){super(),this[v]=!0,this.type="geojson",this.layer=e}get id(){return this.layer.id}}var w=r(4146),S=r(49186),C=r(92474),x=r(53966),M=r(83027),I=r(39829),A=r(64714),F=r(59288),P=r(22671);let T=class extends C.x_{constructor(){super(...arguments),this.type="geojson",this.refresh=(0,n.sg)(async e=>{await this.load();let{extent:t,timeExtent:r}=await this._connection.invoke("refresh",e);return this.sourceJSON.extent=t,r&&(this.sourceJSON.timeInfo.timeExtent=[r.start,r.end]),{dataChanged:!0,updates:{extent:this.sourceJSON.extent,timeInfo:this.sourceJSON.timeInfo}}})}load(e){let t=null==e?null:e.signal;return this.addResolvingPromise(this._startWorker(t)),Promise.resolve(this)}destroy(){this._connection?.close(),this._connection=null}applyEdits(e){return this.load().then(()=>this._applyEdits(e))}openPorts(){return this.load().then(()=>this._connection.openPorts())}queryFeatures(e,t={}){return this.load(t).then(()=>{let r=(0,F.$)(e,this.layer.timeInfo,this.sourceJSON.timeInfo,this.layer.fieldsIndex);return this._connection.invoke("queryFeatures",r.toJSON(),t)}).then(e=>P.A.fromJSON(e))}queryFeaturesJSON(e,t={}){return this.load(t).then(()=>{let r=(0,F.$)(e,this.layer.timeInfo,this.sourceJSON.timeInfo,this.layer.fieldsIndex);return this._connection.invoke("queryFeatures",r.toJSON(),t)})}queryFeatureCount(e,t={}){return this.load(t).then(()=>{let r=(0,F.$)(e,this.layer.timeInfo,this.sourceJSON.timeInfo,this.layer.fieldsIndex);return this._connection.invoke("queryFeatureCount",r.toJSON(),t)})}queryObjectIds(e,t={}){return this.load(t).then(()=>{let r=(0,F.$)(e,this.layer.timeInfo,this.sourceJSON.timeInfo,this.layer.fieldsIndex);return this._connection.invoke("queryObjectIds",r.toJSON(),t)})}queryExtent(e,t={}){return this.load(t).then(()=>{let r=(0,F.$)(e,this.layer.timeInfo,this.sourceJSON.timeInfo,this.layer.fieldsIndex);return this._connection.invoke("queryExtent",r.toJSON(),t)}).then(e=>({count:e.count,extent:u.A.fromJSON(e.extent)}))}querySnapping(e,t={}){return this.load(t).then(()=>this._connection.invoke("querySnapping",e,t))}async queryAttributeBins(e,t={}){await this.load();let r=(0,F.$)(e,this.layer.timeInfo,this.sourceJSON.timeInfo,this.layer.fieldsIndex);return this._connection.invoke("queryAttributeBins",r.toJSON(),t)}_applyEdits(e){if(!this._connection)throw new S.A("geojson-layer-source:edit-failure","Memory source not loaded");let t=this.layer.objectIdField,r=[],i=[],s=[];if(e.addFeatures)for(let t of e.addFeatures)r.push(this._serializeFeature(t));if(e.deleteFeatures)for(let r of e.deleteFeatures)"objectId"in r&&null!=r.objectId?i.push(r.objectId):"attributes"in r&&null!=r.attributes[t]&&i.push(r.attributes[t]);if(e.updateFeatures)for(let t of e.updateFeatures)s.push(this._serializeFeature(t));return this._connection.invoke("applyEdits",{adds:r,updates:s,deletes:i}).then(({extent:e,timeExtent:t,featureEditResults:r})=>(this.sourceJSON.extent=e,t&&(this.sourceJSON.timeInfo.timeExtent=[t.start,t.end]),this._createEditsResult(r)))}_createEditsResult(e){return{addFeatureResults:e.addResults?e.addResults.map(this._createFeatureEditResult,this):[],updateFeatureResults:e.updateResults?e.updateResults.map(this._createFeatureEditResult,this):[],deleteFeatureResults:e.deleteResults?e.deleteResults.map(this._createFeatureEditResult,this):[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]}}_createFeatureEditResult(e){let t=!0===e.success?null:e.error||{code:void 0,description:""};return{objectId:e.objectId,globalId:e.globalId,error:t?new S.A("geojson-layer-source:edit-failure",t.description,{code:t.code}):null}}_serializeFeature(e){let{attributes:t}=e,r=this._geometryForSerialization(e);return r?{geometry:r.toJSON(),attributes:t}:{attributes:t}}_geometryForSerialization(e){let{geometry:t}=e;return null==t?null:"mesh"===t.type||"extent"===t.type?I.A.fromExtent(t.extent):t}async _startWorker(e){this._connection=await(0,M.h)("GeoJSONSourceWorker",{strategy:"dedicated",signal:e,registryTarget:this});let{fields:t,spatialReference:r,hasZ:i,geometryType:s,objectIdField:o,url:n,timeInfo:l,customParameters:a}=this.layer,u="defaults"===this.layer.originOf("spatialReference"),p={url:n,customParameters:a,fields:t&&t.map(e=>e.toJSON()),geometryType:d.gy.toJSON(s),hasZ:i,objectIdField:o,timeInfo:l?l.toJSON():null,spatialReference:u?null:r&&r.toJSON()},c=await this._connection.invoke("load",p,{signal:e});for(let e of c.warnings)x.A.getLogger(this.layer).warn("#load()",`${e.message} (title: '${this.layer.title||"no title"}', id: '${this.layer.id??"no id"}')`,{warning:e});c.featureErrors.length&&x.A.getLogger(this.layer).warn("#load()",`Encountered ${c.featureErrors.length} validation errors while loading features. (title: '${this.layer.title||"no title"}', id: '${this.layer.id??"no id"}')`,{errors:c.featureErrors}),this.sourceJSON=c.layerDefinition,this.capabilities=(0,A.f)(this.sourceJSON.hasZ,!0,!this.sourceJSON.geometryType)}};(0,i.Cg)([(0,a.MZ)()],T.prototype,"capabilities",void 0),(0,i.Cg)([(0,a.MZ)()],T.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({constructOnly:!0})],T.prototype,"layer",void 0),(0,i.Cg)([(0,a.MZ)()],T.prototype,"sourceJSON",void 0),T=(0,i.Cg)([(0,a.$K)("esri.layers.graphics.sources.GeoJSONSource")],T);var O=r(63074),E=r(69208),Z=r(6455),_=r(87718),j=r(56658),L=r(34287),N=r(32756),R=r(8303),$=r(54310),J=r(25036),z=r(82935),D=r(63396),G=r(10873),q=r(15426),B=r(29005),k=r(20437),U=r(17036),H=r(30524),Q=r(46499),V=r(39383),K=r(41214),W=r(97552),Y=r(30291),X=r(79677),ee=r(10184),te=r(56400);const re=(0,U.p)();let ie=class extends((0,N.fY)((0,Z.FJ)((0,E.d)((0,j.J)((0,_.F)((0,O.dM)((0,z.e)((0,D.d)((0,J.j)((0,$.J)((0,L.q)((0,R.A)((0,o.M)(w.A)))))))))))))){constructor(e){super(e),this.timeInfo=null,this.attributeTableTemplate=null,this.copyright=null,this.dateFieldsTimeZone=null,this.definitionExpression=null,this.displayField=null,this.editingEnabled=!1,this.elevationInfo=null,this.fields=null,this.fieldsIndex=null,this.fullExtent=null,this.geometryType=null,this.graphicOrigin=new b(this),this.hasZ=void 0,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.objectIdField=null,this.operationalLayerType="GeoJSON",this.outFields=null,this.popupEnabled=!0,this.popupTemplate=null,this.screenSizePerspectiveEnabled=!0,this.source=new T({layer:this}),this.spatialReference=p.A.WGS84,this.templates=null,this.title="GeoJSON",this.type="geojson"}destroy(){this.source?.destroy()}load(e){let t=this.loadFromPortal({supportedTypes:["GeoJson"],supportsData:!1},e).catch(n.QP).then(()=>this.source.load(e)).then(()=>{this.read(this.source.sourceJSON,{origin:"service",url:this.parsedUrl}),(0,H.yp)(this.renderer,this.fieldsIndex),(0,H.sv)(this.timeInfo,this.fieldsIndex)});return this.addResolvingPromise(t),Promise.resolve(this)}get portalItem(){return super.portalItem}set portalItem(e){super.portalItem=e}get capabilities(){return this.source?this.source.capabilities:null}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("capabilities"),(this._get("createQueryVersion")||0)+1}get defaultPopupTemplate(){return this.createPopupTemplate()}get isTable(){return this.loaded&&null==this.geometryType}get parsedUrl(){return(0,l.An)(this.url)}set renderer(e){(0,H.yp)(e,this.fieldsIndex),this._set("renderer",e)}set url(e){if(!e)return void this._set("url",e);let t=(0,l.An)(e);this._set("url",t.path),t.query&&(this.customParameters={...this.customParameters,...t.query})}async applyEdits(e,t){let{applyEdits:i}=await r.e(8628).then(()=>r(78628));await this.load();let s=await i(this,this.source,e,t);return this.read({extent:this.source.sourceJSON.extent,timeInfo:this.source.sourceJSON.timeInfo},{origin:"service",ignoreDefaults:!0}),s}createPopupTemplate(e){return(0,Y.tn)(this,e)}createQuery(){let e=new W.A,t=this.capabilities?.data;e.returnGeometry=!0,t&&t.supportsZ&&(e.returnZ=!0),e.outFields=["*"],e.where=this.definitionExpression||"1=1";let{timeOffset:r,timeExtent:i}=this;return e.timeExtent=null!=r&&null!=i?i.offset(-r.value,r.unit):i||null,e}getFieldDomain(e,t){return this.getField(e)?.domain}getField(e){return this.fieldsIndex.get(e)}queryFeatures(e,t){return this.load().then(()=>this.source.queryFeatures(W.A.from(e)||this.createQuery(),t)).then(e=>{if(e?.features)for(let t of e.features)t.layer=t.sourceLayer=this,t.origin=this.graphicOrigin;return e})}queryObjectIds(e,t){return this.load().then(()=>this.source.queryObjectIds(W.A.from(e)||this.createQuery(),t))}queryFeatureCount(e,t){return this.load().then(()=>this.source.queryFeatureCount(W.A.from(e)||this.createQuery(),t))}queryExtent(e,t){return this.load().then(()=>this.source.queryExtent(W.A.from(e)||this.createQuery(),t))}async queryAttributeBins(e,t){let{source:i,capabilities:s}=await this.load();(0,q.ZJ)(e,s,"GeoJSONLayer");let o=await r.e(4575).then(()=>r(14575)),n=await i.queryAttributeBins(o.default.from(e),t);if(n.features)for(let e of n.features)e.layer=e.sourceLayer=this;return n}read(e,t){super.read(e,t),"service"===t?.origin&&["objectIdField","fields","timeInfo"].forEach(e=>this.revertToOrigin(e,"service"))}async hasDataChanged(){try{let{dataChanged:e,updates:t}=await this.source.refresh(this.customParameters);return null!=t&&this.read(t,{origin:"service",url:this.parsedUrl,ignoreDefaults:!0}),e}catch{}return!1}};(0,i.Cg)([(0,a.MZ)({type:X.A})],ie.prototype,"timeExtent",void 0),(0,i.Cg)([(0,a.MZ)({type:ee.A})],ie.prototype,"timeOffset",void 0),(0,i.Cg)([(0,a.MZ)((0,G.U$)({alwaysWriteNonItemOrigin:!0}))],ie.prototype,"timeInfo",void 0),(0,i.Cg)([(0,a.MZ)(G.zQ)],ie.prototype,"attributeTableTemplate",void 0),(0,i.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1,write:!1}})],ie.prototype,"capabilities",null),(0,i.Cg)([(0,a.MZ)({type:String})],ie.prototype,"copyright",void 0),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],ie.prototype,"createQueryVersion",null),(0,i.Cg)([(0,a.MZ)((0,te.P6)("dateFieldsTimeReference"))],ie.prototype,"dateFieldsTimeZone",void 0),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],ie.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,a.MZ)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],ie.prototype,"definitionExpression",void 0),(0,i.Cg)([(0,a.MZ)({type:String})],ie.prototype,"displayField",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean})],ie.prototype,"editingEnabled",void 0),(0,i.Cg)([(0,a.MZ)(G.Yj)],ie.prototype,"elevationInfo",void 0),(0,i.Cg)([(0,a.MZ)({type:[k.A],json:{name:"layerDefinition.fields",write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"fields"}}}})],ie.prototype,"fields",void 0),(0,i.Cg)([(0,a.MZ)(re.fieldsIndex)],ie.prototype,"fieldsIndex",void 0),(0,i.Cg)([(0,a.MZ)({type:u.A,json:{name:"extent"}})],ie.prototype,"fullExtent",void 0),(0,i.Cg)([(0,a.MZ)({type:["point","polygon","polyline","multipoint"],json:{read:{reader:d.gy.read}}})],ie.prototype,"geometryType",void 0),(0,i.Cg)([(0,a.MZ)({readOnly:!0,clonable:!1})],ie.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean})],ie.prototype,"hasZ",void 0),(0,i.Cg)([(0,a.MZ)(G.id)],ie.prototype,"id",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,readOnly:!0})],ie.prototype,"isTable",null),(0,i.Cg)([(0,a.MZ)(G.kF)],ie.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,a.MZ)({type:[Q.A],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:V.w},write:!0}})],ie.prototype,"labelingInfo",void 0),(0,i.Cg)([(0,a.MZ)(G.fV)],ie.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,a.MZ)({type:["show","hide"]})],ie.prototype,"listMode",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{name:"layerDefinition.objectIdField",write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"objectIdField"}}}})],ie.prototype,"objectIdField",void 0),(0,i.Cg)([(0,a.MZ)(G.ke)],ie.prototype,"opacity",void 0),(0,i.Cg)([(0,a.MZ)({type:["GeoJSON"]})],ie.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,a.MZ)(re.outFields)],ie.prototype,"outFields",void 0),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],ie.prototype,"parsedUrl",null),(0,i.Cg)([(0,a.MZ)(G.M6)],ie.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,a.MZ)({type:s.A,json:{name:"popupInfo",write:!0}})],ie.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,a.MZ)({types:K.Hg,json:{name:"layerDefinition.drawingInfo.renderer",write:!0,origins:{service:{name:"drawingInfo.renderer"},"web-scene":{types:K.XJ}}}})],ie.prototype,"renderer",null),(0,i.Cg)([(0,a.MZ)(G.PY)],ie.prototype,"screenSizePerspectiveEnabled",void 0),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],ie.prototype,"source",void 0),(0,i.Cg)([(0,a.MZ)({type:p.A})],ie.prototype,"spatialReference",void 0),(0,i.Cg)([(0,a.MZ)({type:[B.A]})],ie.prototype,"templates",void 0),(0,i.Cg)([(0,a.MZ)()],ie.prototype,"title",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!1},readOnly:!0})],ie.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)(G.OZ)],ie.prototype,"url",null),ie=(0,i.Cg)([(0,a.$K)("esri.layers.GeoJSONLayer")],ie);const se=ie},99352(e,t,r){r.d(t,["F",0,{supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!0,supportedSpatialAggregationStatistics:{envelope:!0,centroid:!0,convexHull:!0},supportsStatisticsAggregatedIds:!0,supportsCentroid:!0,supportsCentroidOnDegeneratedQuantizedGeometry:!0,supportsCacheHint:!0,supportsCurrentUser:!1,supportsDegeneratedQuantizedGeometry:!1,supportsDistance:!0,supportsOutDistance:!1,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsPaginationOnAggregatedQueries:!1,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!0,supportsReturnMesh:!1,supportsReturnExceededLimitGeometries:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByAnonymous:!0,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsFormatPBFWithCurves:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,maxUniqueIDCount:void 0,relativeTimeBinWindow:0,standardMaxRecordCount:void 0,standardMaxRecordCountNoGeometry:void 0,tileMaxRecordCount:void 0,supportsTrueCurve:!1},"P",0,{supportsDate:!0,supportsFixedInterval:!0,supportsAutoInterval:!0,supportsFixedBoundaries:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsSnapToData:!1,supportsReturnFullIntervalBin:!1,supportsFirstDayOfWeek:!1,supportsNormalization:!0,supportedStatistics:{count:!0,sum:!0,avg:!0,var:!0,stddev:!0,min:!0,max:!0,percentileContinuous:!0,percentileDiscrete:!0,envelope:!0,centroid:!0,convexHull:!0},supportedNormalizationTypes:{field:!0,log:!0,naturalLog:!0,percentOfTotal:!0,squareRoot:!0}}])},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 s(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:()=>s})},64714(e,t,r){r.d(t,{F0:()=>l,Vx:()=>p,e2:()=>c,f:()=>g});var i=r(44208),s=r(4718),o=r(99352),n=r(93470);function l(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?n.Cb:"esriGeometryPolyline"===e?n.yM:n.WR}}}const a=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let u=1;function p(e,t){if((0,i.A)("esri-csp-restrictions"))return()=>t?{[t]:null,...e}:{...e};try{let r="";t&&(r+=`this${d(t)} = null;`);for(let t in e)r+=`this${d(t)} = ${JSON.stringify(e[t])};`;let i=Function(`\n return class AttributesClass$${u++} {\n constructor() {\n ${r};\n }\n }\n `)();return()=>new i}catch{return()=>t?{[t]:null,...e}:{...e}}}function d(e){return a.test(e)?`.${e}`:`[${JSON.stringify(e)}]`}function c(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,s.o8)(e)}}]}const y={...o.F,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!1,supportsDistance:!1,supportsExtent:!1,supportsQuantization:!1,supportsQueryGeometry:!1,supportsDisjointSpatialRelationship:!1},h={...o.P,supportedStatistics:{...o.P.supportedStatistics,envelope:!1,centroid:!1,convexHull:!1}};function g(e,t,r=!1){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:r?y:o.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:r?h:o.P,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:t,supportsTrueCurveUpdateByTrueCurveClientsOnly:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},59288(e,t,r){r.d(t,{$:()=>n});var i=r(96184),s=r(36003),o=r(2991);function n(e,t,r,n){if(!e.timeExtent||!t&&!r)return e;let l=e.clone();if(t&&r){if(!(0,s.L)(t,i.A.fromJSON(r))){let r=(0,o.RZ)(e.timeExtent,t,n,e.where);r&&(l.where=r,l.timeExtent=void 0)}return l}return!t&&r?(l.timeExtent=void 0,l):(t&&!r&&(l.where=(0,o.RZ)(e.timeExtent,t,n,e.where),l.timeExtent=void 0),l)}},69208(e,t,r){var i=r(32198),s=r(91429);r.d(t,["d",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,i.Cg)([(0,s.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],r.prototype,"customParameters",void 0),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.CustomParametersMixin")],r),r}])},32756(e,t,r){r.d(t,{Rr:()=>l});var i=r(32198),s=r(93637),o=r(91429),n=r(91880);function l(e,t,r){if(!e)return null;let i=e.find(e=>!!e.field);if(!i)return null;let s=new n.A;return s.read(i,r),[s]}const a={type:[n.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:l},write:{writer:function(e,t,r,i){let o=e.find(e=>!!e.field);o&&(0,s.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])},8303(e,t,r){var i=r(32198),s=r(92602),o=r(70333),n=r(56507),l=r(60999),a=r(49186),u=r(36563),p=r(53966),d=r(97768),c=r(17676),y=r(84952),h=r(91429),g=r(77548),f=r(20655),m=r(80812),v=r(41318),b=r(10407),w=r(26121),S=r(36005),C=r(43937);const x={credential:null,user:null};r.d(t,["A",0,e=>{let t=e,M=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){super.destroy(),this.portalItem=(0,d.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new m.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{let{load:i}=await r.e(1204).then(()=>r(41204));return(0,c.Te)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,c.zf)(e)||p.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async reloadFromPortal(e,t){if(!this.loaded||!this.portalItem?.id)return!1;let i=t?.signal?null:new AbortController;try{let{reload:s}=await r.e(1204).then(()=>r(41204));return i&&this.addHandles((0,u.rE)(i),"reloadFromPortal"),await s({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t?.signal?t:{signal:i.signal})}catch(e){throw(0,c.zf)(e)||p.A.getLogger(this).warn(`Failed to reload layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}finally{i&&this.removeHandles("reloadFromPortal")}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,c.QP)(e),!0)))}async setUserPrivileges(e,t){if(!s.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{let{features:{edit:r,fullEdit:i},content:{updateItem:s}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",s)}catch(e){(0,c.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);let i,s,n=!o.id?.findCredential(this.url),l=e===r.id;if(l&&r.portal.user)return this._getUserPrivileges(r,n);if(l)i=r.portal.url;else try{i=await(0,g.wI)(this.url,t)}catch(e){(0,c.QP)(e)}if(!i||!(0,y.b8)(i,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{let e=null==t?null:t.signal;s=await(o.id?.getCredential(`${i}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,c.QP)(e)}if(!s)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(l?await r.reload():(r=new m.default({id:e,portal:{url:i}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,n)}catch(e){(0,c.QP)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}_getUserPrivileges(e,t){let r=(0,b.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,c.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){let t=this.url?o.id?.findCredential(this.url):null;if(!t)return!0;let r=x.credential===t?x.user:await this._fetchEditingUser(e);return x.credential=t,x.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){let t=this.portalItem?.portal?.user;if(t)return t;let r=o.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;let i=`${r.owningSystemUrl}/sharing/rest`,s=f.A.getDefault();if(s&&s.loaded&&(0,y.S8)(s.restUrl)===(0,y.S8)(i))return s.user;let a=`${i}/community/self`,u=null==e?null:e.signal,p=await(0,l.Ke)((0,n.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return p.ok?v.A.fromJSON(p.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){return(0,w.wN)(this.portalItem,t)?(t?.messages?.push(new a.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i.Cg)([(0,h.MZ)({type:m.default})],M.prototype,"portalItem",null),(0,i.Cg)([(0,S.w)("web-document","portalItem",["itemId"])],M.prototype,"readPortalItem",null),(0,i.Cg)([(0,C.K)("web-document","portalItem",{itemId:{type:String}})],M.prototype,"writePortalItem",null),(0,i.Cg)([(0,h.MZ)({clonable:!1})],M.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasUpdateItemPrivileges",void 0),M=(0,i.Cg)([(0,h.$K)("esri.layers.mixins.PortalLayer")],M),M}])},82935(e,t,r){var i=r(32198),s=r(91429),o=r(30524),n=r(96184),l=r(73133),a=r(79677),u=r(10184),p=r(36005);const d={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"}}};r.d(t,["B",0,d,"e",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){let r=t.timeInfo.exportOptions;if(!r)return null;let i=r.timeOffset,s=l.j.fromJSON(r.timeOffsetUnits);return i&&s?new u.A({value:i,unit:s}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,o.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i.Cg)([(0,s.MZ)({type:a.A,json:{write:!1}})],r.prototype,"timeExtent",void 0),(0,i.Cg)([(0,s.MZ)({type:u.A})],r.prototype,"timeOffset",void 0),(0,i.Cg)([(0,p.w)("service","timeOffset",["timeInfo.exportOptions"])],r.prototype,"readOffset",null),(0,i.Cg)([(0,s.MZ)({value:null,type:n.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],r.prototype,"timeInfo",null),(0,i.Cg)([(0,s.MZ)(d)],r.prototype,"useViewTime",void 0),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.TemporalLayer")],r),r}])},63396(e,t,r){r.d(t,{d:()=>x});var i=r(32198),s=r(91429),o=r(41910),n=r(60950),l=r(99959);class a extends l.A{constructor(e){super(),this.type="track",this.trackInfoProvider=e}get id(){return this.trackInfoProvider.id}get[n.ym](){return this.trackInfoProvider.trackInfo}get[o.e7](){return this.trackInfoProvider}}var u=r(40124),p=r(69540),d=r(25482),c=r(93637),y=r(50820),h=r(10873),g=r(46499),f=r(41214);let m=class extends((0,p.OU)(d.o)){constructor(e){super(e),this.labelingInfo=null,this.labelsVisible=!0,this.renderer=null,this.visible=!0}};(0,i.Cg)([(0,s.MZ)({type:[g.A],json:{write:!0}})],m.prototype,"labelingInfo",void 0),(0,i.Cg)([(0,s.MZ)(h.kF)],m.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,s.MZ)({types:f.Hg,json:{write:!0}})],m.prototype,"renderer",void 0),(0,i.Cg)([(0,s.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"visible",void 0),m=(0,i.Cg)([(0,s.$K)("esri.layers.support.TrackPartInfo")],m);var v=r(96576),b=r(59868),w=r(10184),S=r(43937);let C=class extends((0,p.OU)(d.o)){constructor(e){super(e),this.enabled=!0,this.fields=[],this.latestObservations=new m({renderer:new v.A({symbol:b.UK.clone()})}),this.maxDisplayDuration=null,this.maxDisplayObservationsPerTrack=0,this.popupEnabled=!0,this.popupTemplate=null,this.previousObservations=new m({renderer:new v.A({symbol:b.UK.clone()})}),this.trackLines=new m({renderer:new v.A({symbol:b.A7.clone()})}),this.timeField="startTimeField"}writeFields(e,t,r){let i=e.filter(e=>"avg_angle"!==e.statisticType).map(e=>e.toJSON());(0,c.sM)(r,i,t)}};(0,i.Cg)([(0,s.MZ)({type:Boolean,json:{write:!0}})],C.prototype,"enabled",void 0),(0,i.Cg)([(0,s.MZ)({type:[y.A],json:{write:!0}})],C.prototype,"fields",void 0),(0,i.Cg)([(0,S.K)("fields")],C.prototype,"writeFields",null),(0,i.Cg)([(0,s.MZ)({type:m,json:{write:!0}})],C.prototype,"latestObservations",void 0),(0,i.Cg)([(0,s.MZ)({type:w.A,json:{write:!0}})],C.prototype,"maxDisplayDuration",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],C.prototype,"maxDisplayObservationsPerTrack",void 0),(0,i.Cg)([(0,s.MZ)(h.M6)],C.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,s.MZ)({type:u.A,json:{name:"popupInfo",write:!0}})],C.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,s.MZ)({type:m,json:{write:!0}})],C.prototype,"previousObservations",void 0),(0,i.Cg)([(0,s.MZ)({type:m,json:{write:!0}})],C.prototype,"trackLines",void 0),(0,i.Cg)([(0,s.MZ)({type:["timeReceived","startTimeField","endTimeField"],json:{read:!0,write:!0}})],C.prototype,"timeField",void 0),C=(0,i.Cg)([(0,s.$K)("esri.layers.support.TrackInfo")],C);const x=e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.trackGraphicOrigin=new a(this),this.trackInfo=null}};return(0,i.Cg)([(0,s.MZ)({readOnly:!0,clonable:!1})],r.prototype,"trackGraphicOrigin",void 0),(0,i.Cg)([(0,s.MZ)({type:C})],r.prototype,"trackInfo",void 0),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.TrackableLayer")],r),r}},29005(e,t,r){r.d(t,{A:()=>u});var i=r(32198),s=r(69540),o=r(66552),n=r(25482),l=r(91429);const a=new o.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,s.OU)(n.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"description",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:a.read,write:a.write}})],u.prototype,"drawingTool",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"prototype",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"thumbnail",void 0),u=(0,i.Cg)([(0,l.$K)("esri.layers.support.FeatureTemplate")],u)},46499(e,t,r){var i,s,o=r(32198),n=(r(44208),r(66552)),l=r(25482),a=r(4718),u=r(90629),p=r(91429),d=r(90360),c=r(73913),y=r(32730),h=r(77548),g=r(59868),f=r(73838),m=r(33910),v=r(36005),b=r(43937);const w=new n.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,h.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 l.o{static{i=y.vK}static{s=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]),s=i[3],o=r(t[i[4]],i[5],i[6]);switch(s){case"AND":return e&&o;case"OR":return e||o}}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=g.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,y.D3)(this.labelExpressionInfo.value);else if(null!=this.labelExpressionInfo.expression){let t=(0,y.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 c.A({expression:this.getLabelExpressionArcade()});else if(!e)return;let s=e.toJSON(i);s.expression&&(t[r]=s)}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,y.XJ)(this)}getLabelExpressionArcade(){return(0,y.BI)(this)}getLabelExpressionSingleField(){return(0,y.rU)(this)}hash(){return JSON.stringify(this)}clone(){return new s({allowOverrun:this.allowOverrun,deconflictionStrategy:this.deconflictionStrategy,labelExpression:this.labelExpression,labelExpressionInfo:(0,a.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,a.o8)(this.symbol),where:this.where,useCodedValues:this.useCodedValues})}};(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],M.prototype,"name",void 0),(0,o.Cg)([(0,p.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,o.Cg)([(0,p.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,o.Cg)([(0,p.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,o.Cg)([(0,v.w)("labelExpression")],M.prototype,"readLabelExpression",null),(0,o.Cg)([(0,b.K)("labelExpression")],M.prototype,"writeLabelExpression",null),(0,o.Cg)([(0,p.MZ)({type:c.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,o.Cg)([(0,b.K)("labelExpressionInfo")],M.prototype,"writeLabelExpressionInfo",null),(0,o.Cg)([(0,p.MZ)({type:w.apiValues,json:{type:w.jsonValues,read:w.read,write:w.write}})],M.prototype,"labelPlacement",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{read:!0,write:!0,default:0,origins:{"web-scene":{write:!1}}}})],M.prototype,"offsetDistance",void 0),(0,o.Cg)([(0,p.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,o.Cg)([(0,p.MZ)({type:Number})],M.prototype,"maxScale",void 0),(0,o.Cg)([(0,b.K)("maxScale")],M.prototype,"writeMaxScale",null),(0,o.Cg)([(0,p.MZ)({type:Number})],M.prototype,"minScale",void 0),(0,o.Cg)([(0,b.K)("minScale")],M.prototype,"writeMinScale",null),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:S}}}}})],M.prototype,"repeatLabel",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,cast:u.cr,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:S}}}}})],M.prototype,"repeatLabelDistance",null),(0,o.Cg)([(0,p.MZ)({types:m.em,json:{types:m.em,origins:{"portal-item":{types:m.em,read:{reader:(0,d.C)({types:m.em})},default:null},"web-scene":{types:m.Rv,read:{reader:(0,d.C)({types:m.Rv})},write:f.oO,default:null}},write:f.oO,default:null}})],M.prototype,"symbol",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],M.prototype,"useCodedValues",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],M.prototype,"where",void 0),M=s=(0,o.Cg)([(0,p.$K)("esri.layers.support.LabelClass")],M);const I=M;r.d(t,["A",0,I])},73913(e,t,r){var i,s=r(32198),o=r(25482),n=r(91429),l=r(32730),a=r(36005),u=r(43937);let p=class extends o.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,l.mX)(t.value):e}writeExpression(e,t,r){null!=this.value&&(e=(0,l.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,s.Cg)([(0,n.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],p.prototype,"name",void 0),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:{writerEnsuresNonNull:!0}}})],p.prototype,"expression",void 0),(0,s.Cg)([(0,a.w)("expression",["expression","value"])],p.prototype,"readExpression",null),(0,s.Cg)([(0,u.K)("expression")],p.prototype,"writeExpression",null),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],p.prototype,"title",void 0),(0,s.Cg)([(0,n.MZ)({json:{read:!1,write:!1}})],p.prototype,"value",void 0),p=i=(0,s.Cg)([(0,n.$K)("esri.layers.support.LabelExpressionInfo")],p);const d=p;r.d(t,["A",0,d])},91880(e,t,r){r.d(t,{A:()=>u});var i,s=r(32198),o=r(66552),n=r(25482),l=r(91429);const a=new o.J({asc:"ascending",desc:"descending"});let u=class extends n.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,s.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,s.Cg)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],u.prototype,"valueExpression",void 0),(0,s.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,s.Cg)([(0,l.$K)("esri.layers.support.OrderByInfo")],u)},41560(e,t,r){r.d(t,{Ch:()=>n,mW:()=>o});var i=r(34727),s=r(39516);function o(e,t){return{...t,filterMode:e.mode}}function n(e,t,r){let o=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(o&&((0,i.gg)(t,o[0])||(0,i.ZH)(r,o[1])))return"";let n=Array.from(l(e,t,r)),a=function(e,t,r){if(0===e.length)return!0;let s=p(e.at(0)?.minScale),o=d(e.at(-1)?.maxScale);if((0,i.ZH)(s,t)||(0,i.gg)(o,r))return!0;for(let t=0;t<e.length-1;t++){let r=e[t],s=e[t+1];if((0,i.ZH)(p(s.minScale),d(r.maxScale)))return!0}return!1}(n,t,r)?"1=1":n.map(e=>e.where||"1=1").reduce((e,t)=>(0,s.IW)(e,t),"");return a&&"1=1"!==a?a:""}function*l(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,s){return e=p(e),r=p(r),t=d(t),!(!(0,i.Sp)(r,e)&&(s??r)>e||(0,i.Hx)(t,r)||void 0!==s&&(0,i.Sp)(s,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}},17036(e,t,r){r.d(t,{p:()=>a});var i=r(44208),s=r(53966),o=r(20437),n=r(95466),l=r(30524);function a(){return{fields:{type:[o.A],value:null,set:function(e){if(e&&(0,i.A)("big-integer-warning-enabled")){let t=e.filter(e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8);if(t.length){let e=t.map(e=>`'${e.name}'`).join(", ");s.A.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${2**53-1} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return n.A.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){let e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(let t of e)this.fieldsIndex?.has(t)||s.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e});return(0,l.DB)(this.fieldsIndex,e)}}}}},39383(e,t,r){r.d(t,{w:()=>a,z:()=>d});var i=r(49186),s=r(53966),o=r(46499);const n=()=>s.A.getLogger("esri.layers.support.labelingInfo"),l=/\[([^[\]]+)\]/gi;function a(e,t,r){return e?e.map(e=>{let i=new o.A;if(i.read(e,r),i.labelExpression){let e=t.fields||t.layerDefinition?.fields||this.fields;i.labelExpression=i.labelExpression.replaceAll(l,(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 s of e){let e=s.labelPlacement,o=p[t];if(!s.symbol)return n().warn("No ILabelClass symbol specified."),[];if(!o)return n().error(new i.A("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),[];if(o.includes(e))r.push(s);else{let i=o[0];e&&n().warn(`Found invalid label placement type ${e} for ${t}. Defaulting to ${i}`);let l=s.clone();l.labelPlacement=i,r.push(l)}}return r}},36003(e,t,r){function i(e,t){let r=e.startField===t.startField||!e.startField&&!t.startField,i=e.endField===t.endField||!e.endField&&!t.endField;return r&&i}r.d(t,{L:()=>i})},73681(e,t,r){r.d(t,{n:()=>a});var i=r(49186),s=r(53966),o=r(46140),n=r(95466),l=r(55674);class a{static async from(e,t,r){let n=e.dictionary_version?o.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&&s.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:c});let y=await(0,l.xR)(e.expression,null,d);if(!y)throw new i.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");let h=!n||!n.greaterEqual(4,0);h&&s.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:n});let g=new u(r,h);return new a(h,p,y,g)}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){s.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 l.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,s=r(32198),o=r(52106),n=r(66552),l=r(25482),a=r(4718),u=r(91429),p=r(16930),d=r(60408),c=r(65864),y=r(50498),h=r(20437),g=r(36005),f=r(43937);const m=new n.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=i=class extends l.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,o.A)}writeGeometryType(e,t,r,i){if(e)return void m.write(e,t,r,i);let{features:s}=this;if(s)for(let e of s)if(null!=e?.geometry)return void m.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;let r=!!e.spatialReference,i=(0,c.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=p.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,s]}=e,o=this.features,n=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((s-e)/r));for(let e=0,t=o.length;e<t;e++)n?.(o[e].geometry)||(o.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,s],scale:[o,n]}=r,l=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){let{translate:[,,e],scale:[,,t]}=r;l=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*o+i,e=>s-e*n,l,a);for(let{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){let i=p.A.fromJSON(t.spatialReference),s=[];for(let t=0;t<e.length;t++){let o=e[t],n=r.fromJSON(o),l=o.geometry?.spatialReference;null!=n.geometry&&!l&&(n.geometry.spatialReference=i);let a=o.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)}s.push(n)}return s}_quantizePoints(e,t,r){let i,s,o=[];for(let n=0,l=e.length;n<l;n++){let l=e[n];if(n>0){let e=t(l[0]),n=r(l[1]);(e!==i||n!==s)&&(o.push([e-i,n-s]),i=e,s=n)}else i=t(l[0]),s=r(l[1]),o.push([i,s])}return o.length>0?o: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,d.Bi)(e)?e.rings:e.paths,s=[];for(let e=0,o=i.length;e<o;e++){let o=i[e],n=this._quantizePoints(o,t,r);n&&s.push(n)}return s.length>0?((0,d.Bi)(e)?e.rings=s:e.paths=s,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,s){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 o,n,l=(0,d.Bi)(e)?e.rings:e.paths;for(let e=0,i=l.length;e<i;e++){let i=l[e];for(let e=0,s=i.length;e<s;e++){let s=i[e];e>0?(o+=s[0],n+=s[1]):(o=s[0],n=s[1]),s[0]=t(o),s[1]=r(n)}}if(i&&s)for(let e=0,t=l.length;e<t;e++){let t=l[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2]),r[3]=s(r[3])}}else if(i)for(let e=0,t=l.length;e<t;e++){let t=l[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2])}}else if(s)for(let e=0,t=l.length;e<t;e++){let t=l[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=s(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)),s&&null!=e.mmax&&null!=e.mmin&&(e.mmax=s(e.mmax),e.mmin=s(e.mmin))}:"multipoint"===e?e=>{let o,n,l=e.points;for(let e=0,i=l.length;e<i;e++){let i=l[e];e>0?(o+=i[0],n+=i[1]):(o=i[0],n=i[1]),i[0]=t(o),i[1]=r(n)}if(i&&s)for(let e=0,t=l.length;e<t;e++){let t=l[e];t[2]=i(t[2]),t[3]=s(t[3])}else if(i)for(let e=0,t=l.length;e<t;e++){let t=l[e];t[2]=i(t[2])}else if(s)for(let e=0,t=l.length;e<t;e++){let t=l[e];t[2]=s(t[2])}}:null}};(0,s.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,s.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,s.Cg)([(0,u.MZ)({type:[o.A],json:{write:!0}})],v.prototype,"features",void 0),(0,s.Cg)([(0,g.w)("features")],v.prototype,"readFeatures",null),(0,s.Cg)([(0,u.MZ)({type:[h.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,s.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:m.read}}})],v.prototype,"geometryType",void 0),(0,s.Cg)([(0,f.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,s.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,s.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,s.Cg)([(0,u.MZ)({types:y.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,s.Cg)([(0,g.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,s.Cg)([(0,u.MZ)({type:p.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,s.Cg)([(0,f.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,s.Cg)([(0,u.MZ)({json:{write:!0}})],v.prototype,"transform",void 0),v=i=(0,s.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0},41366(e,t,r){var i=r(32198),s=r(66552),o=r(53966),n=r(91429),l=r(93223);const a=(0,s.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&&o.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,n.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],r.prototype,"normalizationField",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],r.prototype,"normalizationMaxValue",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],r.prototype,"normalizationMinValue",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],r.prototype,"normalizationTotal",void 0),(0,i.Cg)([(0,l.e)(a,{name:"parameters.normalizationType"})],r.prototype,"normalizationType",null),r=(0,i.Cg)([(0,n.$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 s="=",o=">=",n="<=";function l(e,t,r,s){let o=s.get(e)?.type,n=s.getTimeZone(e);return`${(0,i.iA)(e)} ${t} ${(0,i.YG)(r,{type:"date"},{type:o,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,h=p??u;if(y&&h){if(d&&c){if(d.getTime()===c.getTime())return(0,i.mA)(a,l(y,s,d,r));if(!u||!p){let e=l(y,o,d,r),t=l(y,n,c,r);return(0,i.mA)(a,(0,i.mA)(e,t))}let e=l(u,o,d,r),t=l(p,n,c,r);return(0,i.mA)(a,(0,i.mA)(e,t))}if(d)return(0,i.mA)(a,l(y,o,d,r));if(c)return(0,i.mA)(a,l(h,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],s={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},o={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i};r.d(t,["Cb",0,s,"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,o])},26121(e,t,r){r.d(t,{I6:()=>p,ci:()=>u,dL:()=>a,wN:()=>d});var i=r(49186),s=r(84952),o=r(77548),n=r(20655),l=r(59923);async function a(e){let t=[];for(let r of e.allLayers)if("beforeSave"in r&&"function"==typeof r.beforeSave){let e=r.beforeSave();e&&t.push(e)}await Promise.allSettled(t)}function u(e,t,r){let s=(e.messages??[]).filter(({type:e})=>"error"===e).map(({name:e,message:t,details:r})=>new i.A(e,t,r));if(e.blockedRelativeUrls&&(s=s.concat(e.blockedRelativeUrls.map(e=>(0,l.GL)("url",`Relative url '${e}' is not supported`)))),r){let{ignoreUnsupported:e,supplementalUnsupportedErrors:t=[],requiredPropertyChecksDisabled:i}=r;e&&(s=s.filter(({name:e})=>!(l.MG.has(e)||t.includes(e)))),i&&(s=s.filter(e=>"web-document-write:property-required"!==e.name))}if(s.length>0)throw new i.A(t.errorName,"Failed to save due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:s})}function p(e){return(0,o.qd)(e).some(e=>!!e.charts?.length)}function d(e,t){let r=t?.portal,i=e?.id&&(e.portal||n.A.getDefault());return!!r&&!!i&&!(0,s.ut)(i.restUrl,r.restUrl)}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9235],{99235(e,t,r){r.d(t,{vt:()=>Vs,UD:()=>Ds});var s=r(85334),n=r(49186),i=r(4718),o=r(32198),a=r(91429),l=r(94778),u=r(25482);let p=class extends u.o{constructor(){super(...arguments),this.raster=void 0}};(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],p.prototype,"raster",void 0),p=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.BaseFunctionArguments")],p);const c=p;var h;let m=h=class extends c{constructor(){super(...arguments),this.raster2=void 0}get rasters(){return[this.raster,this.raster2]}clone(){return new h({raster:this.raster,raster2:this.raster2,operation:this.operation})}};(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],m.prototype,"operation",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],m.prototype,"raster2",void 0),(0,o.Cg)([(0,a.MZ)({readOnly:!0})],m.prototype,"rasters",null),m=h=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.ArithmeticFunctionArguments")],m);const f=m;var g=r(14140),d=r(87186);const y=new Set(["slope","aspect","curvature","hillshade","shadedrelief","statistics"]);let x=class extends u.o{constructor(){super(...arguments),this.functionArguments=null,this.readingBufferSize=0,this.id=-1,this.isNoopProcess=!1,this.rawInputBandIds=[],this.rawSourceRasterInfos=null,this.isInputBandIdsSwizzled=!1,this.swizzledBandSelection=[],this.isBranch=!1,this.isRoot=!1,this._bindingResult=null}get supportsGPU(){return this._bindingResult.supportsGPU}get flatWebGLFunctionChain(){let e=this.getWebGLProcessorDefinition();if(!e)return null;let t=[e],{parameters:r}=e,s=r.rasters||r.raster&&[r.raster];for(;s?.length;){t.unshift(...s);let e=[];for(let t=0;t<s.length;t++){let{parameters:r}=s[t],n=r.rasters||r.raster&&[r.raster];n?.length&&e.push(...n)}s=e}for(let e=t.length-1;e>=0;e--)t[e].isNoopProcess&&t.splice(e,1);let n=!1;for(let e=0;e<t.length;e++){let r=t[e];r.id=t.length-e-1;let{rasters:s}=r.parameters;n||=null!=s&&s.length>1}let i=t.some(({name:e})=>y.has(e.toLowerCase())),{rawSourceRasterInfos:o}=this;return{functions:t,hasBranches:n,hasFocalFunction:i,isSourceSingleBand:1===o?.[0]?.bandCount}}get neighborhoodSize(){let{rows:e,cols:t}=this._getNeighborhoodSize(),r=this.getImmediateChildFunctions();for(let s of r){let r=s.neighborhoodSize;e=Math.max(e,r.rows),t=Math.max(t,r.cols)}return{rows:e,cols:t}}bind(e,t=!1,r=-1){this.id=r+1;let s=this._getRasterValues(),n=!0;for(let r=0;r<s.length;r++){let i=s[r];if(null!=i&&this._isRasterFunctionValue(i)){let s=i.bind(e,t,this.id+r);if(!s.success)return this._bindingResult=s,s;n&&=s.supportsGPU}}return!this.rasterInfo||t?(this.sourceRasterInfos=this._getSourceRasterInfos(e),this._bindingResult=this._bindSourceRasters(),n&&=this._bindingResult.supportsGPU,this._bindingResult.success&&(this._patchRasterInfo(),n&&this.isRoot&&(this.processInputBandIds(),this.swizzleInputBandIds(this.rawInputBandIds)||(n=this.rawInputBandIds.length<=3))),this._bindingResult.supportsGPU=n,this._bindingResult):(this._bindingResult={success:!0,supportsGPU:!0},this._bindingResult)}queryRasterFunction(e){let t=[this];for(;t.length;){let r=t.pop();if(e(r))return r;let s=r.getImmediateChildFunctions();t.push(...s)}}getImmediateChildFunctions(){return this._getRasterValues().filter(e=>e&&"object"==typeof e&&"bind"in e)}process(e,t){let r=this._getRasterValues(),s=0===r.length?e.pixelBlocks??e.primaryPixelBlocks:r.map(r=>this._readRasterValue(r,e,t));return this._processPixels({...e,pixelBlocks:s},t)}processInputBandIds(){let e=this._getRasterValues().filter(this._isRasterFunctionValue);if(e.length>1){let t=e.map(e=>e.processInputBandIds());return this.rawInputBandIds=[...new Set(t.flat())],this.rawInputBandIds}let t=e[0];if(t)return this.rawInputBandIds=t.processInputBandIds(),this.rawInputBandIds;let{bandCount:r}=this.sourceRasterInfos[0],s=Array.from({length:r},(e,t)=>t);return this.rawInputBandIds=this._getInputBandIds(s),this.rawInputBandIds}swizzleInputBandIds(e){let t=this._getRasterValues().filter(this._isRasterFunctionValue),r=!0;for(let s of t)r=s.swizzleInputBandIds(e)&&r;return!!r&&this._swizzleBandIds(e)}getPrimaryRasters(){let e=[],t=[];return this._getPrimaryRasters(this,e,t),{rasters:e,rasterIds:t}}getWebGLProcessorDefinition(){let e=this._getWebGLParameters(),{raster:t,rasters:r}=this.functionArguments;return r&&Array.isArray(r)&&r.length?(e.rasters=r.map(e=>this._isRasterFunctionValue(e)?e.getWebGLProcessorDefinition():"number"==typeof e?{name:"Constant",parameters:{value:e},pixelType:"f32",id:-1,isNoopProcess:!1}:{name:"Identity",parameters:{value:e},pixelType:"f32",id:-1,isNoopProcess:!1}),e.rasters.some(e=>null!=e)||(e.rasters=null)):this._isRasterFunctionValue(t)&&(e.raster=t.getWebGLProcessorDefinition()),{name:this.functionName,parameters:e,pixelType:this.outputPixelType,id:this.id,isNoopProcess:this.isNoopProcess}}getClippingGeometries(){let e=[];"Clip"===this.functionName&&e.push(this.functionArguments);let{raster:t,rasters:r}=this.functionArguments;if(r&&Array.isArray(r)&&r.length)r.forEach(t=>{if(this._isRasterFunctionValue(t)){let r=t.getClippingGeometries();e.push(...r)}});else if(this._isRasterFunctionValue(t)){let r=t.getClippingGeometries();e.push(...r)}return e}_getOutputPixelType(e){return"unknown"===this.outputPixelType?e:this.outputPixelType??e}_getWebGLParameters(){return{}}_getInputBandIds(e){return e}_swizzleBandIds(e){return!0}_isInputRasterPrimaryOrConstant(){return!this._getRasterValues().some(e=>e&&"object"==typeof e&&"rasterFunction"in e&&e.rasterFunction)}_getNeighborhoodSize(){return{rows:1,cols:1}}_removeStatsHistColormapVAT(e){e.statistics=null,e.histograms=null,e.colormap=null,e.attributeTable=null,e.multidimensionalInfo?.variables.forEach(e=>{e.statistics=void 0,e.histograms=void 0})}_getRasterValues(){let{rasterArgumentNames:e}=this;return"rasters"===e[0]?this.functionArguments.rasters??[]:e.flatMap(e=>this.functionArguments[e])}_getSourceRasterInfos(e){let t=this._getRasterValues(),{rasterInfos:r,rasterIds:s}=e;if(0===t.length)return r;let n=t.map(e=>e&&"object"==typeof e&&"bind"in e&&e.rasterInfo?e.rasterInfo:"string"==typeof e&&s.includes(e)?r[s.indexOf(e)]:"number"!=typeof e?r[0]:void 0),i=n.find(e=>e)??r[0];return n.forEach((e,t)=>{void 0===e&&(n[t]=i)}),n}_getPrimaryRasterId(e){return e?.rasterId}_getPrimaryRasters(e,t=[],r=[]){for(let s=0;s<e.sourceRasters.length;s++){let n=e.sourceRasters[s];if("number"!=typeof n)if("bind"in n)this._getPrimaryRasters(n,t,r);else{let e=n,s=this._getPrimaryRasterId(e);if(null==s)continue;r.includes(s)||(this.mainPrimaryRasterId===s?(t.unshift(e),r.unshift(s)):(t.push(e),r.push(s)))}}}_isRasterFunctionValue(e){return"object"==typeof e&&!!e&&"getWebGLProcessorDefinition"in e}_readRasterValue(e,t,r){let{primaryPixelBlocks:s}=t;if(null==e||"$$"===e){let e=s[0];return null==e?null:e.clone()}if("string"==typeof e){let r=t.primaryRasterIds.indexOf(e);return-1===r?null:s[r]}if("number"==typeof e){let t=s[0];if(null==t)return null;let{width:r,height:n,pixelType:i}=t,o=new Float32Array(r*n);o.fill(e);let a=this.sourceRasterInfos[0].bandCount,l=Array(a).fill(o);return new g.A({width:r,height:n,pixelType:i,pixels:l})}return e.process(t,r)}_patchRasterInfo(){let{rasterInfo:e}=this;if(!e?.keyProperties)return;let{bandCount:t,keyProperties:r,statistics:s,histograms:n}=e,i=r.BandProperties;i&&i.length!==t&&(e.keyProperties={...r,BandProperties:void 0}),s&&s.length!==t&&(e.statistics=s.length>t?s.slice(0,t):null),n&&n.length!==t&&(e.histograms=n.length>t?n.slice(0,t):null),r.BAND_COUNT&&Number(r.BAND_COUNT)!==t&&(e.keyProperties={...r,BAND_COUNT:"string"==typeof r.BAND_COUNT?String(t):t})}};(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],x.prototype,"functionName",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],x.prototype,"functionArguments",void 0),(0,o.Cg)([(0,a.MZ)()],x.prototype,"rasterArgumentNames",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}}),(0,a.wg)(e=>e?.toLowerCase())],x.prototype,"outputPixelType",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],x.prototype,"mainPrimaryRasterId",void 0),(0,o.Cg)([(0,a.MZ)()],x.prototype,"sourceRasters",void 0),(0,o.Cg)([(0,a.MZ)({type:[d.A],json:{write:!0}})],x.prototype,"sourceRasterInfos",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],x.prototype,"rasterInfo",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],x.prototype,"readingBufferSize",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],x.prototype,"id",void 0),(0,o.Cg)([(0,a.MZ)()],x.prototype,"isNoopProcess",void 0),(0,o.Cg)([(0,a.MZ)()],x.prototype,"supportsGPU",null),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],x.prototype,"rawInputBandIds",void 0),(0,o.Cg)([(0,a.MZ)()],x.prototype,"rawSourceRasterInfos",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],x.prototype,"isInputBandIdsSwizzled",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],x.prototype,"swizzledBandSelection",void 0),(0,o.Cg)([(0,a.MZ)()],x.prototype,"isBranch",void 0),(0,o.Cg)([(0,a.MZ)()],x.prototype,"isRoot",void 0),(0,o.Cg)([(0,a.MZ)({readOnly:!0})],x.prototype,"flatWebGLFunctionChain",null),(0,o.Cg)([(0,a.MZ)({readOnly:!0})],x.prototype,"neighborhoodSize",null),(0,o.Cg)([(0,a.MZ)()],x.prototype,"_bindingResult",void 0),x=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.BaseRasterFunction")],x);const w=x,A={userDefined:-1,lineDetectionHorizontal:0,lineDetectionVertical:1,lineDetectionLeftDiagonal:2,lineDetectionRightDiagonal:3,gradientNorth:4,gradientWest:5,gradientEast:6,gradientSouth:7,gradientNorthEast:8,gradientNorthWest:9,smoothArithmeticMean:10,smoothing3x3:11,smoothing5x5:12,sharpening3x3:13,sharpening5x5:14,laplacian3x3:15,laplacian5x5:16,sobelHorizontal:17,sobelVertical:18,sharpen:19,sharpen2:20,pointSpread:21,none:255},v={bitwiseAnd:11,bitwiseLeftShift:12,bitwiseNot:13,bitwiseOr:14,bitwiseRightShift:15,bitwiseXOr:16,booleanAnd:17,booleanNot:18,booleanOr:19,booleanXOr:20,equalTo:24,greaterThan:28,greaterThanEqual:29,lessThan:33,lessThanEqual:34,isNull:31,notEqual:46},b={acos:6,asin:7,atan:8,atanh:9,cos:21,cosh:22,sin:51,sinh:52,tan:56,tanh:57,acosh:59,asinh:60,atan2:61},C={setNull:50,conditional:78},M={plus:1,minus:2,times:3,sqrt:4,power:5,abs:10,divide:23,exp:25,exp10:26,exp2:27,int:30,float:32,ln:35,log10:36,log2:37,mod:44,negate:45,roundDown:48,roundUp:49,square:53,floatDivide:64,floorDivide:65,...v,...b,majority:38,max:39,mean:40,med:41,min:42,minority:43,range:47,stddev:54,sum:55,variety:58,majorityIgnoreNoData:66,maxIgnoreNoData:67,meanIgnoreNoData:68,medIgnoreNoData:69,minIgnoreNoData:70,minorityIgnoreNoData:71,rangeIgnoreNoData:72,stddevIgnoreNoData:73,sumIgnoreNoData:74,varietyIgnoreNoData:75,...C},P=new Map([[b.acos,{domain:[0,Math.PI],isInteger:!1}],[b.asin,{domain:[-Math.PI/2,Math.PI/2],isInteger:!1}],[b.atan,{domain:[-Math.PI/2,Math.PI/2],isInteger:!1}],[b.cos,{domain:[-1,1],isInteger:!1}],[b.sin,{domain:[-1,1],isInteger:!1}],[v.booleanAnd,{domain:[0,1],isInteger:!0}],[v.booleanNot,{domain:[0,1],isInteger:!0}],[v.booleanOr,{domain:[0,1],isInteger:!0}],[v.booleanXOr,{domain:[0,1],isInteger:!0}],[v.equalTo,{domain:[0,1],isInteger:!0}],[v.notEqual,{domain:[0,1],isInteger:!0}],[v.greaterThan,{domain:[0,1],isInteger:!0}],[v.greaterThanEqual,{domain:[0,1],isInteger:!0}],[v.lessThan,{domain:[0,1],isInteger:!0}],[v.lessThanEqual,{domain:[0,1],isInteger:!0}],[v.isNull,{domain:[0,1],isInteger:!0}]]);function T(e){return P.get(e)}const R=[0,2,2,2,1,2,1,1,1,1,1,2,2,1,2,2,2,2,1,2,2,1,1,2,2,1,1,1,2,2,1,1,1,2,2,1,1,1,999,999,999,999,999,999,2,1,2,999,1,1,2,1,1,1,999,999,1,1,999,1,1,2,999,999,2,2,999,999,999,999,999,999,999,999,999,999,3,999,3];function N(e,t,r){let[s,n]=e,i=s.length,o=g.A.createEmptyBand(r,i);for(let e=0;e<i;e++)(!t||t[e])&&(o[e]=s[e]+n[e]);return o}function I(e,t,r){let[s]=e,n=s.length,i=g.A.createEmptyBand("f32",n);return i.set(s),i}function k(e,t,r){let[s]=e,n=s.length,i=g.A.createEmptyBand(r,n);for(let e=0;e<n;e++)(!t||t[e])&&(i[e]=s[e]*s[e]);return i}function S(e,t,r){let[s,n]=e,i=s.length,o=g.A.createEmptyBand(r,i);for(let e=0;e<i;e++)(!t||t[e])&&(o[e]=s[e]-n[e]);return o}function _(e,t,r){let[s,n]=e,i=s.length,o=g.A.createEmptyBand(r,i);for(let e=0;e<i;e++)(!t||t[e])&&(o[e]=s[e]*n[e]);return o}function F(e,t,r){let[s]=e,n=s.length,i=g.A.createEmptyBand(r,n);for(let e=0;e<n;e++)(!t||t[e])&&(i[e]=Math.sign(s[e])*Math.floor(Math.abs(s[e])));return i}function B(e,t,r){let[s,n]=e,i=s.length,o=g.A.createEmptyBand(r,i);for(let e=0;e<i;e++)(!t||t[e])&&(o[e]=s[e]/n[e]);return o}function j(e,t,r){return B(e,t,"f32")}function Z(e,t,r){let[s,n]=e,i=s.length,o=g.A.createEmptyBand(r,i);for(let e=0;e<i;e++)(!t||t[e])&&(o[e]=Math.floor(s[e]/n[e]));return o}function G(e,t,r,s){let n=e[0],i=n.length,o=g.A.createEmptyBand(r,i);if(s===b.atanh){for(let e=0;e<i;e++)if(t[e]){let r=n[e];Math.abs(r)>=1?t[e]=0:o[e]=Math.atanh(r)}return o}let a=s===b.asin?Math.asin:Math.acos;for(let e=0;e<i;e++)if(t[e]){let r=n[e];Math.abs(r)>1?t[e]=0:o[e]=a(r)}return o}function z(e,t,r,s){let[n]=e,i=n.length,o=g.A.createEmptyBand(r,i);for(let e=0;e<i;e++)(!t||t[e])&&(o[e]=s(n[e]));return o}function O(e,t,r,s){let[n,i]=e,o=n.length,a=g.A.createEmptyBand(r,o);for(let e=0;e<o;e++)(!t||t[e])&&(a[e]=s(n[e],i[e]));return a}function E(e,t,r){let[s,n]=e,i=s.length,o=g.A.createEmptyBand(r,i);for(let e=0;e<i;e++)(!t||t[e])&&(o[e]=s[e]&n[e]);return o}function D(e,t,r){let[s,n]=e,i=s.length,o=g.A.createEmptyBand(r,i);for(let e=0;e<i;e++)(!t||t[e])&&(o[e]=s[e]<<n[e]);return o}function V(e,t,r){let[s]=e,n=s.length,i=g.A.createEmptyBand(r,n);for(let e=0;e<n;e++)(!t||t[e])&&(i[e]=~s[e]);return i}function U(e,t,r){let[s,n]=e,i=s.length,o=g.A.createEmptyBand(r,i);for(let e=0;e<i;e++)(!t||t[e])&&(o[e]=s[e]|n[e]);return o}function L(e,t,r){let[s,n]=e,i=s.length,o=g.A.createEmptyBand(r,i);for(let e=0;e<i;e++)(!t||t[e])&&(o[e]=s[e]>>n[e]);return o}function W(e,t,r){let[s,n]=e,i=s.length,o=g.A.createEmptyBand(r,i);for(let e=0;e<i;e++)(!t||t[e])&&(o[e]=s[e]^n[e]);return o}function K(e,t,r){let[s,n]=e,i=s.length,o=g.A.createEmptyBand(r,i);for(let e=0;e<i;e++)(!t||t[e])&&(o[e]=s[e]&&n[e]?1:0);return o}function $(e,t,r){let[s]=e,n=s.length,i=g.A.createEmptyBand(r,n);for(let e=0;e<n;e++)(!t||t[e])&&(i[e]=+!s[e]);return i}function H(e,t,r){let[s,n]=e,i=s.length,o=g.A.createEmptyBand(r,i);for(let e=0;e<i;e++)(!t||t[e])&&(o[e]=s[e]||n[e]?1:0);return o}function q(e,t,r){let[s,n]=e,i=s.length,o=g.A.createEmptyBand(r,i);for(let e=0;e<i;e++)(!t||t[e])&&(o[e]=+!!s[e]^!!n[e]);return o}function J(e,t,r){let[s,n]=e,i=s.length,o=g.A.createEmptyBand(r,i);for(let e=0;e<i;e++)(!t||t[e])&&(o[e]=+(s[e]===n[e]));return o}function X(e,t,r,s){let[n]=e,i=n.length,o=g.A.createEmptyBand(r,i),a=s===Math.E;for(let e=0;e<i;e++)(!t||t[e])&&(o[e]=a?Math.exp(n[e]):s**n[e]);return o}function Y(e,t,r){return X(e,t,r,10)}function Q(e,t,r){return X(e,t,r,2)}function ee(e,t,r){return X(e,t,r,Math.E)}function te(e,t,r,s){let[n]=e,i=n.length,o=g.A.createEmptyBand(r,i);for(let e=0;e<i;e++)(!t||t[e])&&(n[e]<=0?t[e]=0:o[e]=s(n[e]));return o}function re(e,t,r){return te(e,t,r,Math.log10)}function se(e,t,r){return te(e,t,r,Math.log2)}function ne(e,t,r){return te(e,t,r,Math.log)}function ie(e,t,r){let[s,n]=e,i=s.length,o=g.A.createEmptyBand(r,i);for(let e=0;e<i;e++)(!t||t[e])&&(o[e]=+(s[e]>n[e]));return o}function oe(e,t,r){let[s,n]=e,i=s.length,o=g.A.createEmptyBand(r,i);for(let e=0;e<i;e++)(!t||t[e])&&(o[e]=+(s[e]>=n[e]));return o}function ae(e,t,r){let[s,n]=e,i=s.length,o=g.A.createEmptyBand(r,i);for(let e=0;e<i;e++)(!t||t[e])&&(o[e]=+(s[e]<n[e]));return o}function le(e,t,r){let[s,n]=e,i=s.length,o=g.A.createEmptyBand(r,i);for(let e=0;e<i;e++)(!t||t[e])&&(o[e]=+(s[e]<=n[e]));return o}function ue(e,t,r){let[s]=e,n=s.length,i=g.A.createEmptyBand(r,n);if(!t)return i;for(let e=0;e<n;e++)i[e]=+!t[e];return i}function pe(e,t,r){let[s,n]=e,i=s.length,o=g.A.createEmptyBand(r,i);for(let e=0;e<i;e++)(!t||t[e])&&(o[e]=s[e]%n[e]);return o}function ce(e,t,r){let[s]=e,n=s.length,i=g.A.createEmptyBand(r,n);for(let e=0;e<n;e++)(!t||t[e])&&(i[e]=-s[e]);return i}function he(e,t,r){let[s,n]=e,i=s.length,o=g.A.createEmptyBand(r,i);for(let e=0;e<i;e++)(!t||t[e])&&(o[e]=s[e]===n[e]?0:1);return o}function me(e,t,r){let[s,n]=e,i=s.length,o=g.A.createEmptyBand(r,i),a=new Uint8Array(i);for(let e=0;e<i;e++)(null==t||t[e])&&0===s[e]&&(o[e]=n[e],a[e]=255);return{band:o,mask:a}}function fe(e,t,r){let[s,n,i]=e,o=s.length,a=g.A.createEmptyBand(r,o);for(let e=0;e<o;e++)(!t||t[e])&&(a[e]=s[e]?n[e]:i[e]);return a}function ge(e,t,r){let s=e.length;if(s<2)return e[0];let[n]=e,i=n.length,o=g.A.createEmptyBand(r,i);for(let r=0;r<i;r++)if(!t||t[r]){let t=n[r];for(let n=1;n<s;n++){let s=e[n][r];t<s&&(t=s)}o[r]=t}return o}function de(e,t,r){let s=e.length;if(s<2)return e[0];let[n]=e,i=n.length,o=g.A.createEmptyBand(r,i);for(let r=0;r<i;r++)if(!t||t[r]){let t=n[r];for(let n=1;n<s;n++){let s=e[n][r];t>s&&(t=s)}o[r]=t}return o}function ye(e,t,r){let s=e.length;if(s<2)return e[0];let[n]=e,i=n.length,o=g.A.createEmptyBand(r,i);for(let r=0;r<i;r++)if(!t||t[r]){let t=n[r],i=t;for(let n=1;n<s;n++){let s=e[n][r];i<s?i=s:t>s&&(t=s)}o[r]=i-t}return o}function xe(e,t,r){let s=e.length;if(s<2)return e[0];let[n]=e,i=n.length,o=g.A.createEmptyBand(r,i);for(let r=0;r<i;r++)if(!t||t[r]){let t=0;for(let n=0;n<s;n++)t+=e[n][r];o[r]=t/s}return o}function we(e,t,r){let s=e.length;if(s<2)return e[0];let[n]=e,i=n.length,o=g.A.createEmptyBand(r,i);for(let r=0;r<i;r++)if(!t||t[r])for(let t=0;t<s;t++){let s=e[t];o[r]+=s[r]}return o}function Ae(e,t,r){let s=e.length;if(s<2)return e[0];let[n]=e,i=n.length,o=g.A.createEmptyBand(r,i);for(let r=0;r<i;r++)if(!t||t[r]){let t=new Float32Array(s),n=0;for(let i=0;i<s;i++){let s=e[i];n+=s[r],t[i]=s[r]}n/=s;let i=0;for(let e=0;e<s;e++)i+=(t[e]-n)**2;o[r]=Math.sqrt(i/s)}return o}function ve(e,t,r){let s=e.length;if(s<2)return e[0];let n=Math.floor(s/2),[i]=e,o=i.length,a=g.A.createEmptyBand(r,o),l=new Float32Array(s),u=s%2==1;for(let r=0;r<o;r++)if(!t||t[r]){for(let t=0;t<s;t++)l[t]=e[t][r];l.sort(),a[r]=u?l[n]:(l[n]+l[n-1])/2}return a}function be(e,t,r){let[s,n]=e;if(null==n)return s;let i=s.length,o=g.A.createEmptyBand(r,i);for(let e=0;e<i;e++)(!t||t[e])&&(o[e]=s[e]<n[e]?s[e]:n[e]);return o}function Ce(e,t,r){let s=e.length;if(s<=2)return be(e,t,r);let n=e[0].length,i=g.A.createEmptyBand(r,n),o=new Map;for(let r=0;r<n;r++)if(!t||t[r]){o.clear();for(let t=0;t<s;t++){let s=e[t][r];o.set(s,o.has(s)?o.get(s)+1:1)}let t=0,n=0,a=[];for(let e of o.keys())t=o.get(e),t>n?(n=t,a.length=0,a.push(e)):t===n&&a.push(e);a.length>1&&a.sort((e,t)=>e-t),i[r]=a[0]}return i}function Me(e,t,r){let s=e.length;if(s<=2)return be(e,t,r);let n=e[0].length,i=g.A.createEmptyBand(r,n),o=new Map;for(let r=0;r<n;r++)if(!t||t[r]){o.clear();for(let t=0;t<s;t++){let s=e[t][r];o.set(s,o.has(s)?o.get(s)+1:1)}let t=0,n=e.length,a=[];for(let e of o.keys())t=o.get(e),t<n?(n=t,a.length=0,a.push(e)):t===n&&a.push(e);a.length>1&&a.sort((e,t)=>e-t),i[r]=a[0]}return i}function Pe(e,t,r){let s=e.length;if(s<2)return e[0];let[n]=e,i=n.length,o=g.A.createEmptyBand(r,i),a=new Set;for(let r=0;r<i;r++)if(!t||t[r]){let t;a.clear();for(let n=0;n<s;n++)t=e[n][r],a.add(t);o[r]=a.size}return o}const Te=new Map,Re=new Map,Ne=new Map,Ie=new Map;function ke(){Te.size||(Te.set(4,Math.sqrt),Te.set(6,Math.acos),Te.set(7,Math.asin),Te.set(8,Math.atan),Te.set(9,Math.atanh),Te.set(10,Math.abs),Te.set(21,Math.cos),Te.set(22,Math.cosh),Te.set(48,Math.floor),Te.set(49,Math.ceil),Te.set(51,Math.sin),Te.set(52,Math.sinh),Te.set(56,Math.tan),Te.set(57,Math.tanh),Te.set(59,Math.acosh),Te.set(60,Math.asinh),Te.set(65,Math.floor),Re.set(5,Math.pow),Re.set(61,Math.atan2),Ne.set(1,N),Ne.set(2,S),Ne.set(3,_),Ne.set(11,E),Ne.set(12,D),Ne.set(13,V),Ne.set(14,U),Ne.set(15,L),Ne.set(16,W),Ne.set(17,K),Ne.set(18,$),Ne.set(19,H),Ne.set(20,q),Ne.set(23,B),Ne.set(24,J),Ne.set(25,ee),Ne.set(26,Y),Ne.set(27,Q),Ne.set(28,ie),Ne.set(29,oe),Ne.set(30,F),Ne.set(31,ue),Ne.set(32,I),Ne.set(33,ae),Ne.set(34,le),Ne.set(35,ne),Ne.set(36,re),Ne.set(37,se),Ne.set(44,pe),Ne.set(45,ce),Ne.set(46,he),Ne.set(53,k),Ne.set(64,j),Ne.set(65,Z),Ne.set(76,fe),Ne.set(78,fe),Ie.set(38,Ce),Ie.set(39,ge),Ie.set(40,xe),Ie.set(41,ve),Ie.set(42,de),Ie.set(43,Me),Ie.set(47,ye),Ie.set(54,Ae),Ie.set(55,we),Ie.set(58,Pe),Ie.set(66,Ce),Ie.set(67,ge),Ie.set(68,xe),Ie.set(69,ve),Ie.set(70,de),Ie.set(71,Me),Ie.set(72,ye),Ie.set(73,Ae),Ie.set(74,we),Ie.set(75,Pe))}function Se(e,t,r={}){ke();let s=function(e,t=!1){let r=e.map(e=>e.mask),s=r.filter(e=>null!=e),n=e[0].pixels[0].length;if(0===s.length||t&&s.length!==r.length)return new Uint8Array(n).fill(255);let i=s[0],o=new Uint8Array(i);if(1===s.length)return o;if(!t){for(let e=1;e<s.length;e++){let t=s[e];for(let e=0;e<o.length;e++)o[e]&&(o[e]=t[e]?255:0)}return o}for(let e=1;e<s.length;e++){let t=s[e];for(let e=0;e<o.length;e++)0===o[e]&&(o[e]=t[e]?255:0)}return o}(e,t>=66&&t<=75),{outputPixelType:n="f32"}=r,i=!Ie.has(t)||r.processAsMultiband,o=i?e[0].pixels.length:1,a=[];for(let r=0;r<o;r++){let o,u=Ie.has(t)&&!i?e.flatMap(e=>e.pixels):e.map(e=>e.pixels[r]),p=!0;if(t===C.setNull){let e=me(u,s,n);o=e.band,s=e.mask,p=!1}else Ne.has(t)?o=Ne.get(t)(u,s,"f64"):Te.has(t)?o=t===b.asin||t===b.acos||t===b.atanh?G(u,s,"f64",t):z(u,s,"f64",Te.get(t)):Re.has(t)?o=O(u,s,"f64",Re.get(t)):Ie.has(t)?o=Ie.get(t)(u,s,"f64"):(o=u[0],p=!1);if(p&&t!==v.isNull&&!P.has(t)){let e=g.A.createEmptyBand(n,o.length);s||=new Uint8Array(o.length).fill(255),(0,l.$p)(o,s),(0,l.yM)(o,s,n,e),o=e}a.push(o)}let u=e[0];return new g.A({width:u.width,height:u.height,pixelType:n,mask:t===v.isNull?null:s,pixels:a})}let _e=class extends w{constructor(){super(...arguments),this.functionName="Arithmetic",this.functionArguments=null,this.rasterArgumentNames=["raster","raster2"]}_bindSourceRasters(){let{operation:e}=this.functionArguments;if(e<1||e>6)return{success:!1,supportsGPU:!1,error:"unsupported operation"};let t=this.sourceRasterInfos[0].clone();return this.outputPixelType=this._getOutputPixelType(t.pixelType),t.pixelType=this.outputPixelType,this._removeStatsHistColormapVAT(t),this.rasterInfo=t,{success:!0,supportsGPU:t.bandCount<=3}}_processPixels(e){let{pixelBlocks:t}=e;return null==t?.[0]||null==t?.[1]?null:function(e,t,r){return Se(e,t=[null,1,2,3,23,5,44][t]??1,{outputPixelType:r})}(t,this.functionArguments.operation,this.outputPixelType)}_getWebGLParameters(){let{operation:e}=this.functionArguments,t=["","plus","minus","times","divide","power","mod"][e],r=this.outputPixelType??"f32",[s,n]=(0,l.hP)(r),i=(0,l.zw)(r);return i&&(s-=1e-4,n+=1e-4),{imageCount:2,operationName:t,domainRange:[s,n],isOutputRounded:i}}};(0,o.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],_e.prototype,"functionName",void 0),(0,o.Cg)([(0,a.MZ)({type:f,json:{write:!0,name:"rasterFunctionArguments"}})],_e.prototype,"functionArguments",void 0),(0,o.Cg)([(0,a.MZ)()],_e.prototype,"rasterArgumentNames",void 0),_e=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.ArithmeticFunction")],_e);const Fe=_e;var Be;let je=Be=class extends c{clone(){return new Be({raster:this.raster})}};je=Be=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.AspectFunctionArguments")],je);const Ze=je;var Ge=r(51181);let ze=class extends w{constructor(){super(...arguments),this.functionName="Aspect",this.functionArguments=null,this.rasterArgumentNames=["raster"],this.isGCS=!1}_bindSourceRasters(){let e=this.sourceRasterInfos[0];this.isGCS=e.spatialReference?.isGeographic??!1,this.outputPixelType=this._getOutputPixelType("f32");let t=e.clone();return t.pixelType=this.outputPixelType,this._removeStatsHistColormapVAT(t),t.statistics=[{min:-1,max:360,avg:180,stddev:30}],t.bandCount=1,this.rasterInfo=t,{success:!0,supportsGPU:!0}}_processPixels(e){let t=e.pixelBlocks?.[0];if(null==t)return null;let{extent:r,primaryPixelSizes:s}=e,n=s?.[0]??(r?{x:r.width/t.width,y:r.height/t.height}:{x:1,y:1});return(0,Ge.di)(t,{resolution:n})}_getNeighborhoodSize(){return{rows:3,cols:3}}};(0,o.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],ze.prototype,"functionName",void 0),(0,o.Cg)([(0,a.MZ)({type:Ze,json:{write:!0,name:"rasterFunctionArguments"}})],ze.prototype,"functionArguments",void 0),(0,o.Cg)([(0,a.MZ)()],ze.prototype,"rasterArgumentNames",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],ze.prototype,"isGCS",void 0),ze=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.AspectFunction")],ze);const Oe=ze;var Ee=r(66552);const De=new Set(["+","-","*","/","(",")"]);function Ve(e,t){return e.toLowerCase().startsWith("b")?t[parseInt(e.slice(1),10)-1]:parseFloat(e)}function Ue(e,t,r,s){if("number"==typeof r&&"number"==typeof s)return r+s;let n,i,o;"number"==typeof r?(o=s,n=o.length,i=new Float32Array(n),i.fill(r)):(n=r.length,i=r,s.constructor===Number?(o=new Float32Array(n),o.fill(s)):o=s);let a=new Float32Array(n);switch(t){case"+":for(let t=0;t<n;t++)(null==e||e[t])&&(a[t]=i[t]+o[t]);break;case"-":for(let t=0;t<n;t++)(null==e||e[t])&&(a[t]=i[t]-o[t]);break;case"*":for(let t=0;t<n;t++)(null==e||e[t])&&(a[t]=i[t]*o[t]);break;case"/":for(let t=0;t<n;t++)(null==e||e[t])&&o[t]&&(a[t]=i[t]/o[t]);break;case"(":case")":throw Error("encountered error with custom band index equation")}return a}function Le(e,t){e.splice(t,1);let r=0,s=0;do{r=0,s=0;for(let t=0;t<e.length;t++)if("("===e[t])r=t;else if(")"===e[t]){s=t;break}s===r+1&&e.splice(r,2)}while(s===r+1);return e}function We(e){if(1===e.length)return{opIndex:0,numIndex:0};let t=0,r=0;for(let s=0;s<e.length;s++)if("("===e[s])t=s;else if(")"===e[s]){r=s;break}let s=0===r?e:e.slice(t+1,r),n=-1;for(let e=0;e<s.length;e++)if("*"===s[e]||"/"===s[e]){n=e;break}if(n>-1)r>0&&(n+=t+1);else{for(let e=0;e<s.length;e++)if("+"===s[e]||"-"===s[e]){n=e;break}r>0&&(n+=t+1)}let i=0;for(let t=0;t<n;t++)"("===e[t]&&i++;return{opIndex:n,numIndex:n-i}}var Ke=r(47520);const $e=new Ee.J({0:"custom",1:"ndvi",2:"savi",3:"tsavi",4:"msavi",5:"gemi",6:"pvi",7:"gvitm",8:"sultan",9:"vari",10:"gndvi",11:"sr",12:"ndvi-re",13:"sr-re",14:"mtvi2",15:"rtvi-core",16:"ci-re",17:"ci-g",18:"ndwi",19:"evi",20:"iron-oxide",21:"ferrous-minerals",22:"clay-minerals",23:"wndwi",24:"bai",25:"nbr",26:"ndbi",27:"ndmi",28:"ndsi",29:"mndwi"},{useNumericKeys:!0});function He(e,t){if(!(0,Ke.AB)(e))return e;let r,{equation:s,method:n}=t,i=t.bandIndexes.map(e=>e-1),{pixels:o,mask:a}=e;switch(n){case"gndvi":case"nbr":case"ndbi":case"ndvi":case"ndvi-re":case"ndsi":case"ndmi":case"mndwi":r=Je(a,o[i[0]],o[i[1]]);break;case"ndwi":r=Je(a,o[i[1]],o[i[0]]);break;case"sr":case"sr-re":case"iron-oxide":case"ferrous-minerals":case"clay-minerals":r=function(e,t,r){let s=r.length,n=new Float32Array(s);for(let i=0;i<s;i++)if(null==e||e[i]){let e=t[i],s=r[i];s&&(n[i]=e/s)}return[n]}(a,o[i[0]],o[i[1]]);break;case"ci-g":case"ci-re":r=function(e,t,r){let s=t.length,n=new Float32Array(s);for(let i=0;i<s;i++)if(null==e||e[i]){let e=t[i],s=r[i];s&&(n[i]=e/s-1)}return[n]}(a,o[i[0]],o[i[1]]);break;case"savi":r=function(e,t,r,s){let n=r.length,i=new Float32Array(n);for(let o=0;o<n;o++)if(null==e||e[o]){let e=r[o],n=t[o],a=n+e+s;a&&(i[o]=(n-e)/a*(1+s))}return[i]}(a,o[i[0]],o[i[1]],i[2]+1);break;case"tsavi":r=function(e,t,r,s,n,i){let o=r.length,a=new Float32Array(o),l=-n*s+i*(1+s*s);for(let i=0;i<o;i++)if(null==e||e[i]){let e=r[i],o=t[i],u=n*o+e+l;u&&(a[i]=s*(o-s*e-n)/u)}return[a]}(a,o[i[0]],o[i[1]],i[2]+1,i[3]+1,i[4]+1);break;case"msavi":r=function(e,t,r){let s=r.length,n=new Float32Array(s);for(let i=0;i<s;i++)if(null==e||e[i]){let e=r[i],s=t[i],o=2*s+1;n[i]=.5*(o-Math.sqrt(o*o-8*(s-e)))}return[n]}(a,o[i[0]],o[i[1]]);break;case"gemi":r=function(e,t,r){let s=r.length,n=new Float32Array(s);for(let i=0;i<s;i++)if(null==e||e[i]){let e=r[i],s=t[i];if(1!==e&&s+e+.5!==0){let t=(2*(s*s-e*e)+1.5*s+.5*e)/(s+e+.5);n[i]=t*(1-.25*t)-(e-.125)/(1-e)}}return[n]}(a,o[i[0]],o[i[1]]);break;case"pvi":r=function(e,t,r,s,n){let i=r.length,o=new Float32Array(i),a=1/Math.sqrt(1+s*s);for(let l=0;l<i;l++)if(null==e||e[l]){let e=r[l],i=t[l];o[l]=(i-s*e-n)*a}return[o]}(a,o[i[0]],o[i[1]],i[2]+1,i[3]+1);break;case"gvitm":r=function(e,t){let[r,s,n,i,o,a]=t,l=r.length,u=new Float32Array(l);for(let t=0;t<l;t++)(null==e||e[t])&&(u[t]=-.2848*r[t]-.2435*s[t]-.5436*n[t]+.7243*i[t]+.084*o[t]-.18*a[t]);return[u]}(a,[o[i[0]],o[i[1]],o[i[2]],o[i[3]],o[i[4]],o[i[5]]]);break;case"sultan":r=function(e,t){let[r,s,n,i,o]=t,a=r.length,l=new Float32Array(a),u=new Float32Array(a),p=new Float32Array(a);for(let t=0;t<a;t++)(null==e||e[t])&&(l[t]=o[t]?i[t]/o[t]*100:0,u[t]=r[t]?i[t]/r[t]*100:0,p[t]=n[t]?s[t]/n[t]*(i[t]/n[t])*100:0);return[l,u,p]}(a,[o[i[0]],o[i[1]],o[i[2]],o[i[3]],o[i[4]]]);break;case"vari":r=function(e,t){let[r,s,n]=t,i=r.length,o=new Float32Array(i);for(let t=0;t<i;t++)if(null==e||e[t])for(t=0;t<i;t++){let e=r[t],i=s[t],a=i+e-n[t];a&&(o[t]=(i-e)/a)}return[o]}(a,[o[i[0]],o[i[1]],o[i[2]]]);break;case"mtvi2":r=function(e,t){let[r,s,n]=t,i=r.length,o=new Float32Array(i);for(let t=0;t<i;t++)if(null==e||e[t])for(t=0;t<i;t++){let e=r[t],i=s[t],a=n[t],l=Math.sqrt((2*e+1)**2-(6*e-5*Math.sqrt(i))-.5);if(l){let r=1.5*(1.2*(e-a)-2.5*(i-a));o[t]=r/l}}return[o]}(a,[o[i[0]],o[i[1]],o[i[2]]]);break;case"rtvi-core":r=function(e,t){let[r,s,n]=t,i=r.length,o=new Float32Array(i);for(let t=0;t<i;t++)if(null==e||e[t])for(t=0;t<i;t++){let e=r[t],i=s[t],a=n[t];o[t]=100*(e-i)-10*(e-a)}return[o]}(a,[o[i[0]],o[i[1]],o[i[2]]]);break;case"evi":r=function(e,t){let[r,s,n]=t,i=r.length,o=new Float32Array(i);for(let t=0;t<i;t++)if(null==e||e[t])for(t=0;t<i;t++){let e=r[t],i=s[t],a=e+6*i-7.5*n[t]+1;a&&(o[t]=2.5*(e-i)/a)}return[o]}(a,[o[i[0]],o[i[1]],o[i[2]]]);break;case"wndwi":r=function(e,t,r=.5){let[s,n,i]=t,o=n.length,a=new Float32Array(o);for(let t=0;t<o;t++)if(null==e||e[t])for(t=0;t<o;t++){let e=s[t],o=n[t],l=i[t],u=e+r*o+(1-r)*l;u&&(a[t]=(e-r*o-(1-r)*l)/u)}return[a]}(a,[o[i[0]],o[i[1]],o[i[2]]],i[3]?i[3]+1:.5);break;case"bai":r=function(e,t,r){let s=r.length,n=new Float32Array(s);for(let i=0;i<s;i++)if(null==e||e[i])for(i=0;i<s;i++){let e=(.1-t[i])**2+(.06-r[i])**2;e&&(n[i]=1/e)}return[n]}(a,o[i[0]],o[i[1]]);break;case"custom":r=function(e,t,r){let s,{ops:n,nums:i}=function(e,t){(e=e.replaceAll(" ","")).startsWith("-")&&(e="0"+e),e.startsWith("+")&&(e=e.slice(1));let r=e.split(""),s=[],n=[],i="";for(let e=0;e<r.length;e++){let o=r[e];De.has(o)?(i.length&&n.push(Ve(i,t)),s.push(o),i=""):i=i.concat(o)}return i.length&&n.push(Ve(i,t)),{ops:s,nums:n}}(r,t);if(0===n.length){let e=1===i.length?i[0]:t[0];if(e instanceof Float32Array)return[e];let r=new Float32Array(t[0].length);return"number"==typeof e?r.fill(e):r.set(e),[r]}for(;n.length>0;){let{numIndex:t,opIndex:r}=We(n);if(s=Ue(e,n[r],i[t],i[t+1]),1===n.length)break;n=Le(n,r),i.splice(t,2,s)}return[s]}(a,o,s);break;default:return e}let u,{outputPixelType:p="f32"}=t,c=null!=p&&(0,l.zw)(p);a?(u=new Uint8Array(e.width*e.height),u.set(a)):c&&(u=new Uint8Array(e.width*e.height).fill(255)),c&&(r=r.map(e=>{let t=g.A.createEmptyBand(p,e.length);return(0,l.yM)(e,u,p,t),t}));let h=new g.A({width:e.width,height:e.height,pixelType:p,pixels:r,mask:u});return h.updateStatistics(),h}function qe(e){let t=new Float32Array(9);return t[3*e[0]]=1,t[3*e[1]+1]=1,t[3*e[2]+2]=1,t}function Je(e,t,r){let s=r.length,n=new Float32Array(s);for(let i=0;i<s;i++)if(null==e||e[i]){let e=t[i],s=r[i],o=e+s;o&&(n[i]=(e-s)/o)}return[n]}var Xe,Ye=r(93223);let Qe=Xe=class extends c{constructor(){super(...arguments),this.method="custom"}clone(){return new Xe({method:this.method,bandIndexes:this.bandIndexes,raster:(0,i.o8)(this.raster)})}};(0,o.Cg)([(0,a.MZ)({json:{type:String,write:!0}})],Qe.prototype,"bandIndexes",void 0),(0,o.Cg)([(0,Ye.e)($e)],Qe.prototype,"method",void 0),Qe=Xe=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.BandArithmeticFunctionArguments")],Qe);const et=Qe,tt=new Set(["vari","mtvi2","rtvi-core","evi"]);let rt=class extends w{constructor(){super(...arguments),this.functionName="BandArithmetic",this.functionArguments=null,this.rasterArgumentNames=["raster"]}_bindSourceRasters(){this.outputPixelType=this._getOutputPixelType("f32");let e=this.sourceRasterInfos[0];if(e.bandCount<2)return{success:!1,supportsGPU:!1,error:"band-arithmetic-function: source raster has insufficient amount of raster bands"};let t=e.clone();return t.pixelType=this.outputPixelType,t.bandCount="sultan"===this.functionArguments.method?3:1,this._removeStatsHistColormapVAT(t),t.keyProperties={...t.keyProperties,BandProperties:void 0},this.rasterInfo=t,{success:!0,supportsGPU:!["custom","gvitm","sultan"].includes(this.functionArguments.method)}}_processPixels(e){let t=e.pixelBlocks?.[0];if(null==t)return t;let{method:r,bandIndexes:s}=this.functionArguments,n=s.split(" ").map(e=>parseFloat(e));if(this.rasterInfo.storageInfo.isBsqTile){let{rawInputBandIds:e}=this,t=tt.has(this.functionArguments.method)?3:2,r=n.slice(0,t).map(t=>e.indexOf(t-1));n.splice(0,t,...r)}return He(t,{method:r,bandIndexes:n,equation:s,outputPixelType:this.outputPixelType})}_getWebGLParameters(){let e=this.functionArguments.bandIndexes.split(" ").map(e=>parseFloat(e)-1);2===e.length&&e.push(0);let t,r,s=this.isInputBandIdsSwizzled?[0,1,2]:e,n=new Float32Array(3),{method:i}=this.functionArguments;switch(i){case"gndvi":case"nbr":case"ndbi":case"ndvi":case"ndvi-re":case"ndsi":case"ndmi":case"mndwi":t=qe([s[0],s[1],0]),r="ndxi";break;case"ndwi":t=qe([s[1],s[0],0]),r="ndxi";break;case"sr":case"sr-re":case"iron-oxide":case"ferrous-minerals":case"clay-minerals":t=qe([s[0],s[1],0]),r="sr";break;case"ci-g":case"ci-re":t=qe([s[0],s[1],0]),r="ci";break;case"savi":t=qe([s[0],s[1],0]),r="savi",n[0]=e[2]+1;break;case"tsavi":t=qe([s[0],s[1],0]),r="tsavi",n[0]=e[2]+1,n[1]=e[3]+1,n[2]=e[4]+1;break;case"msavi":t=qe([s[0],s[1],0]),r="msavi";break;case"gemi":t=qe([s[0],s[1],0]),r="gemi";break;case"pvi":t=qe([s[0],s[1],0]),r="tsavi",n[0]=e[2]+1,n[1]=e[3]+1;break;case"vari":t=qe([s[0],s[1],s[2]]),r="vari";break;case"mtvi2":t=qe([s[0],s[1],s[2]]),r="mtvi";break;case"rtvi-core":t=qe([s[0],s[1],s[2]]),r="rtvicore";break;case"evi":t=qe([s[0],s[1],s[2]]),r="evi";break;case"wndwi":t=qe([s[0],s[1],0]),r="wndwi",n[0]=e[3]?e[3]+1:.5;break;case"bai":t=qe([s[1],s[0],0]),r="bai";break;default:t=qe([0,1,2]),r="custom"}return{bandIndexMat3:t,indexType:r,adjustments:n,isOutputRounded:(0,l.zw)(this.outputPixelType)}}_getInputBandIds(e){if("custom"===this.functionArguments.method)return e;let t=this.functionArguments.bandIndexes.split(" ").map(e=>parseFloat(e)-1),r=e.length,s=t.map(e=>e>=r?r-1:e),n=tt.has(this.functionArguments.method)?3:2,i=s.slice(0,n).map(t=>e[t]);return 2===i.length&&i.push(0),i}_swizzleBandIds(e){let t=this.functionArguments.bandIndexes.split(" ").map(e=>parseFloat(e)-1);2===t.length&&t.push(0);let{method:r}=this.functionArguments,s=(["vari","mtvi2","rtvi-core","evi"].includes(r)?t.slice(0,3):"bai"===r||"ndwi"===r?[t[1],t[0]]:t.slice(0,2)).map(t=>e.indexOf(t));return s[2]??=s[1],this.isInputBandIdsSwizzled=!0,this.swizzledBandSelection=s,!1}};(0,o.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],rt.prototype,"functionName",void 0),(0,o.Cg)([(0,a.MZ)({type:et,json:{write:!0,name:"rasterFunctionArguments"}})],rt.prototype,"functionArguments",void 0),(0,o.Cg)([(0,a.MZ)()],rt.prototype,"rasterArgumentNames",void 0),rt=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.BandArithmeticFunction")],rt);const st=rt;var nt,it=r(65864),ot=r(50498);const at=new Ee.J({1:"outside",2:"inside"},{useNumericKeys:!0});let lt=nt=class extends c{constructor(){super(...arguments),this.clippingType="outside"}clone(){return new nt({clippingGeometry:this.clippingGeometry.clone(),clippingType:this.clippingType})}};(0,o.Cg)([(0,a.MZ)({types:ot.yR,json:{read:it.rS,write:!0}})],lt.prototype,"clippingGeometry",void 0),(0,o.Cg)([(0,a.MZ)({json:{read:at.read,write:at.write}})],lt.prototype,"clippingType",void 0),lt=nt=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.ClipFunctionArguments")],lt);const ut=lt;var pt=r(34930),ct=r(37373);let ht=class extends w{constructor(){super(...arguments),this.functionName="Clip",this.functionArguments=null,this.rasterArgumentNames=["raster"],this.isNoopProcess=!0}_bindSourceRasters(){let e=this.sourceRasterInfos[0].clone();this.outputPixelType=this._getOutputPixelType(e.pixelType),e.pixelType=this.outputPixelType,this.rasterInfo=e;let{functionArguments:t}=this,{clippingGeometry:r,clippingType:s}=t;if(!r)return{success:!1,supportsGPU:!1,error:"missing clipping geometry"};if("outside"===s)try{let{spatialReference:t}=e,s="extent"===r.type?(0,ct._l)(r,t):(0,ct.uk)(r,t).extent;s&&(0,pt.Sd)(e,s)}catch{}return{success:!0,supportsGPU:!0}}_processPixels(e){return e.pixelBlocks?.[0]}_getWebGLParameters(){let{clippingGeometry:e,clippingType:t}=this.functionArguments;return{clippingGeometry:e.toJSON(),clippingType:t}}};(0,o.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],ht.prototype,"functionName",void 0),(0,o.Cg)([(0,a.MZ)({type:ut,json:{write:!0,name:"rasterFunctionArguments"}})],ht.prototype,"functionArguments",void 0),(0,o.Cg)([(0,a.MZ)()],ht.prototype,"rasterArgumentNames",void 0),(0,o.Cg)([(0,a.MZ)()],ht.prototype,"isNoopProcess",void 0),ht=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.ClipFunction")],ht);const mt=ht;var ft,gt=r(67369),dt=r(95349),yt=r(36005);let xt=ft=class extends c{castColormapName(e){if(!e)return null;let t=e.toLowerCase();return gt.L7.includes(t)?t:null}readColorRamp(e){return(0,dt.r)(e)}readColorRampName(e,t){if(!e)return null;let r=gt.kH.jsonValues.find(t=>t.toLowerCase()===e.toLowerCase());return r?gt.kH.fromJSON(r):null}clone(){return new ft({colormap:(0,i.o8)(this.colormap),colormapName:this.colormapName,colorRamp:this.colorRamp?.clone(),colorRampName:this.colorRampName})}};(0,o.Cg)([(0,a.MZ)({type:[[Number]],json:{write:!0}})],xt.prototype,"colormap",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],xt.prototype,"colormapName",void 0),(0,o.Cg)([(0,a.wg)("colormapName")],xt.prototype,"castColormapName",null),(0,o.Cg)([(0,a.MZ)({types:dt.g,json:{write:!0}})],xt.prototype,"colorRamp",void 0),(0,o.Cg)([(0,yt.w)("colorRamp")],xt.prototype,"readColorRamp",null),(0,o.Cg)([(0,a.MZ)({type:gt.kH.apiValues,json:{type:gt.kH.jsonValues,write:gt.kH.write}})],xt.prototype,"colorRampName",void 0),(0,o.Cg)([(0,yt.w)("colorRampName")],xt.prototype,"readColorRampName",null),xt=ft=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.ColormapFunctionArguments")],xt);const wt=xt,At=[[36,0,255],[36,0,255],[36,0,255],[36,0,255],[112,75,3],[113,76,3],[114,77,3],[115,77,3],[116,78,3],[117,79,3],[118,79,3],[119,80,3],[121,81,4],[122,82,4],[123,82,4],[124,83,4],[125,84,4],[126,84,4],[127,85,4],[128,86,4],[129,86,4],[130,87,4],[131,88,4],[132,89,4],[133,89,4],[134,90,4],[135,91,4],[136,91,4],[137,92,4],[138,93,4],[139,94,4],[140,94,4],[142,95,5],[143,96,5],[144,96,5],[145,97,5],[146,98,5],[147,99,5],[148,99,5],[149,100,5],[150,101,5],[151,101,5],[152,102,5],[153,103,5],[154,104,5],[155,104,5],[156,105,5],[157,106,5],[158,106,5],[159,107,5],[160,108,5],[161,108,5],[162,109,5],[164,110,6],[165,111,6],[166,111,6],[167,112,6],[168,113,6],[169,113,6],[170,114,6],[171,115,6],[172,116,6],[173,116,6],[174,117,6],[245,0,0],[245,5,0],[245,10,0],[246,15,0],[246,20,0],[246,25,0],[246,30,0],[247,35,0],[247,40,0],[247,45,0],[247,50,0],[247,55,0],[248,60,0],[248,65,0],[248,70,0],[248,75,0],[249,81,0],[249,86,0],[249,91,0],[249,96,0],[250,101,0],[250,106,0],[250,111,0],[250,116,0],[250,121,0],[251,126,0],[251,131,0],[251,136,0],[251,141,0],[252,146,0],[252,151,0],[252,156,0],[252,156,0],[251,159,0],[250,162,0],[249,165,0],[248,168,0],[247,171,0],[246,174,0],[245,177,0],[245,179,0],[244,182,0],[243,185,0],[242,188,0],[241,191,0],[240,194,0],[239,197,0],[238,200,0],[237,203,0],[236,206,0],[235,209,0],[234,212,0],[233,215,0],[232,218,0],[231,221,0],[230,224,0],[230,226,0],[229,229,0],[228,232,0],[227,235,0],[226,238,0],[225,241,0],[224,244,0],[223,247,0],[165,247,0],[163,244,0],[161,240,0],[158,237,0],[156,233,1],[154,230,1],[152,227,1],[149,223,1],[147,220,1],[145,216,1],[143,213,1],[140,210,2],[138,206,2],[136,203,2],[134,200,2],[132,196,2],[129,193,2],[127,189,2],[125,186,3],[123,183,3],[120,179,3],[118,176,3],[116,172,3],[114,169,3],[111,166,3],[109,162,4],[107,159,4],[105,155,4],[103,152,4],[100,149,4],[98,145,4],[96,142,4],[94,138,5],[91,135,5],[89,132,5],[87,128,5],[85,125,5],[82,121,5],[80,118,5],[78,115,6],[76,111,6],[73,108,6],[71,105,6],[69,101,6],[67,98,6],[65,94,6],[62,91,7],[60,88,7],[58,84,7],[56,81,7],[53,77,7],[51,74,7],[49,71,7],[47,67,8],[44,64,8],[42,60,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8]],vt=[[36,0,255],[36,0,255],[36,0,255],[36,0,255],[245,20,0],[245,24,0],[245,29,0],[245,31,0],[247,33,0],[247,33,0],[247,37,0],[247,41,0],[247,41,0],[247,41,0],[247,45,0],[247,45,0],[247,47,0],[247,49,0],[247,49,0],[247,54,0],[247,54,0],[247,56,0],[247,58,0],[247,58,0],[250,62,0],[250,62,0],[250,62,0],[250,67,0],[250,67,0],[250,67,0],[250,69,0],[250,71,0],[250,71,0],[250,75,0],[250,75,0],[250,78,0],[250,79,0],[250,79,0],[250,79,0],[250,81,0],[250,83,0],[250,83,0],[250,87,0],[250,87,0],[250,90,0],[250,92,0],[252,93,0],[252,93,0],[252,97,0],[252,97,0],[252,97,0],[252,97,0],[252,101,0],[252,101,0],[252,101,0],[252,101,0],[252,105,0],[252,105,0],[252,107,0],[252,109,0],[252,109,0],[252,113,13],[255,118,20],[255,119,23],[255,121,25],[255,126,33],[255,132,38],[255,133,40],[255,135,43],[255,141,48],[255,144,54],[255,150,59],[255,152,61],[255,153,64],[255,159,69],[255,163,77],[255,165,79],[255,168,82],[255,174,87],[255,176,92],[255,181,97],[255,183,99],[255,186,102],[255,191,107],[255,197,115],[255,201,120],[255,203,123],[255,205,125],[255,209,130],[255,214,138],[255,216,141],[255,218,143],[255,224,150],[255,228,156],[255,234,163],[255,236,165],[255,238,168],[255,243,173],[255,248,181],[255,252,186],[253,252,186],[250,252,187],[244,250,180],[238,247,176],[234,246,173],[231,245,169],[223,240,163],[217,237,157],[211,235,150],[205,233,146],[200,230,142],[195,227,136],[189,224,132],[184,222,126],[180,220,123],[174,217,119],[169,214,114],[163,212,108],[160,210,105],[154,207,101],[148,204,96],[143,201,93],[138,199,88],[134,197,84],[130,194,81],[126,191,77],[117,189,70],[115,186,68],[112,184,64],[106,181,60],[100,179,55],[94,176,49],[92,174,47],[90,173,45],[81,168,37],[75,166,33],[71,163,28],[66,160,24],[62,158,21],[56,156,14],[51,153,0],[51,153,0],[51,153,0],[50,150,0],[50,150,0],[50,150,0],[50,150,0],[49,148,0],[49,148,0],[49,148,0],[48,145,0],[48,145,0],[48,145,0],[48,145,0],[48,143,0],[48,143,0],[48,143,0],[48,143,0],[47,140,0],[47,140,0],[47,140,0],[47,140,0],[46,138,0],[46,138,0],[46,138,0],[46,138,0],[45,135,0],[45,135,0],[45,135,0],[45,135,0],[44,133,0],[44,133,0],[44,133,0],[43,130,0],[43,130,0],[43,130,0],[43,130,0],[43,130,0],[43,130,0],[42,128,0],[42,128,0],[42,128,0],[42,125,0],[42,125,0],[42,125,0],[42,125,0],[41,122,0],[41,122,0],[41,122,0],[41,122,0],[40,120,0],[40,120,0],[40,120,0],[40,120,0],[40,120,0],[39,117,0],[39,117,0],[39,117,0],[39,117,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0]];function bt(e,t){let r=[],s=[];for(let t=0;t<e.length-1;t++)r.push({type:"algorithmic",algorithm:"esriHSVAlgorithm",fromColor:e[t].slice(1),toColor:e[t+1].slice(1)}),s.push(e[t+1][0]-e[t][0]);let n=e[e.length-1][0];return t??=s,(0,gt.iv)({type:"multipart",colorRamps:r},{numColors:n,weights:t})}let Ct=class extends w{constructor(){super(...arguments),this.functionName="Colormap",this.functionArguments=null,this.rasterArgumentNames=["raster"],this.isNoopProcess=!0}_bindSourceRasters(){let e=this.sourceRasterInfos[0];if(e.bandCount>1)return{success:!1,supportsGPU:!1,error:"colormap-function: source data must be single band"};let{colormap:t,colormapName:r,colorRamp:s,colorRampName:n}=this.functionArguments;if(!t?.length)if(s)this.colorRamp=s,t=(0,gt.R8)(s,{interpolateAlpha:!0});else if(n){let e=(0,gt.M5)(n);e&&(t=(0,gt.R8)(e),this.colorRamp=(0,dt.r)(e))}else r&&(t=function(e){let t;switch(e){case"elevation":t=bt([[0,0,191,191],[51,0,0,255],[102,255,0,255],[153,255,0,127],[204,191,63,127],[256,20,20,20]]);break;case"gray":t=(0,gt.iv)({type:"algorithmic",algorithm:"esriHSVAlgorithm",fromColor:[0,0,0],toColor:[255,255,255]});break;case"hillshade":t=bt([[0,38,41,54],[69,79,82,90],[131,156,156,156],[256,253,253,241]],[.268,.238,.495]);break;case"ndvi":t=At;break;case"ndvi2":t=function(){let e=bt([[0,255,255,255],[70,0,255,0],[80,205,173,193],[100,150,150,150],[110,120,51,100],[130,120,100,200],[140,28,3,144],[160,6,0,55],[180,10,25,30],[201,6,7,27]]);for(let t=e.length;t<256;t++)e.push([6,27,7]);return e}();break;case"ndvi3":t=vt;break;case"random":t=function(){let e=[];for(let t=0;t<256;t++){let t=[];for(let e=0;e<3;e++)t.push(Math.round(255*Math.random()));e.push(t)}return e}()}return t?(t=t.map((e,t)=>[t,...e]),t):null}(r));if(!t?.length)return{success:!1,supportsGPU:!1,error:"colormap-function: missing colormap argument"};let i=this._getOutputPixelType(e.pixelType);this.outputPixelType=i.startsWith("f")?"s32":i;let o=e.clone();return o.pixelType=this.outputPixelType,o.colormap=t,o.bandCount=1,this.rasterInfo=o,{success:!0,supportsGPU:!0}}_processPixels(e){let t=e.pixelBlocks?.[0];return!t||(0,l.zw)(t.pixelType)||(t=t.clone(),t.clamp(this.outputPixelType)),t}};(0,o.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],Ct.prototype,"functionName",void 0),(0,o.Cg)([(0,a.MZ)({type:wt,json:{write:!0,name:"rasterFunctionArguments"}})],Ct.prototype,"functionArguments",void 0),(0,o.Cg)([(0,a.MZ)()],Ct.prototype,"rasterArgumentNames",void 0),(0,o.Cg)([(0,a.MZ)()],Ct.prototype,"isNoopProcess",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],Ct.prototype,"indexedColormap",void 0),(0,o.Cg)([(0,a.MZ)()],Ct.prototype,"colorRamp",void 0),Ct=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.ColormapFunction")],Ct);const Mt=Ct;var Pt;let Tt=Pt=class extends c{clone(){return new Pt({raster:this.raster})}};Tt=Pt=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.ColormapToRGBFunctionArguments")],Tt);const Rt=Tt;var Nt=r(4151),It=r(88178);let kt=class extends w{constructor(){super(...arguments),this.functionName="ColormapToRGB",this.functionArguments=null,this.rasterArgumentNames=["raster"]}_bindSourceRasters(){let e=this.sourceRasterInfos[0];if(e.bandCount>1||!e.colormap?.length)return{success:!1,supportsGPU:!1,error:"colormap-to-rgb-function: source data must be single band with a colormap"};let t=e.clone();t.pixelType=this.outputPixelType=this._getOutputPixelType("u8"),this._removeStatsHistColormapVAT(t),t.bandCount=3,t.statistics=[{min:0,max:255,avg:100,stddev:20},{min:0,max:255,avg:100,stddev:20},{min:0,max:255,avg:100,stddev:20}],this.rasterInfo=t;let r=[...e.colormap].sort((e,t)=>e[0]-t[0]),{indexedColormap:s,offset:n}=(0,Ke.zg)({colormap:r});return s?(this.lookup={indexedColormap:s,offset:n},{success:!0,supportsGPU:(0,It.WN)(s)}):{success:!1,supportsGPU:!1,error:"colormap-to-rgb-function: the colormap is not supported"}}_processPixels(e){let t=e.pixelBlocks?.[0];if(!t||!this.lookup)return t;t=t.clone();let r=t.pixels[0],s=t.mask??new Uint8Array(r.length).fill(255),n=new Uint8Array(r.length),i=new Uint8Array(r.length),o=new Uint8Array(r.length),{indexedColormap:a,offset:l}=this.lookup,u=a.length;for(let e=0;e<r.length;e++)if(s[e]){let t=4*(r[e]-l);t<0||t>u-4?s[e]=0:(n[e]=a[t++],i[e]=a[t++],o[e]=a[t++])}return t.pixels=[n,i,o],t.statistics=[new Nt.A(0,255),new Nt.A(0,255),new Nt.A(0,255)],t.pixelType=this.outputPixelType,t}_getWebGLParameters(){return this.lookup}};(0,o.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],kt.prototype,"functionName",void 0),(0,o.Cg)([(0,a.MZ)({type:Rt,json:{write:!0,name:"rasterFunctionArguments"}})],kt.prototype,"functionArguments",void 0),(0,o.Cg)([(0,a.MZ)()],kt.prototype,"rasterArgumentNames",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],kt.prototype,"lookup",void 0),kt=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.ColormapToRGBFunction")],kt);const St=kt;var _t,Ft=r(43937);let Bt=_t=class extends c{constructor(){super(...arguments),this.rasters=[]}writeRasters(e,t){t.rasters=e.map(e=>"number"==typeof e||"string"==typeof e?e:e.toJSON())}clone(){return new _t({rasters:(0,i.o8)(this.rasters)})}};(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],Bt.prototype,"rasters",void 0),(0,o.Cg)([(0,Ft.K)("rasters")],Bt.prototype,"writeRasters",null),Bt=_t=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.CompositeBandFunctionArguments")],Bt);const jt=Bt;let Zt=class extends w{constructor(){super(...arguments),this.functionName="CompositeBand",this.functionArguments=null,this.rasterArgumentNames=["rasters"]}_bindSourceRasters(){let{sourceRasterInfos:e}=this,t=e[0];this.outputPixelType=this._getOutputPixelType(t.pixelType);let r=t.clone();if(r.attributeTable=null,r.colormap=null,r.pixelType=this.outputPixelType,r.bandCount=e.map(({bandCount:e})=>e).reduce((e,t)=>e+t),e.every(({statistics:e})=>null!=e&&e.length)){let t=[];e.forEach(({statistics:e})=>null!=e&&t.push(...e)),r.statistics=t}if(e.every(({histograms:e})=>null!=e&&e.length)){let t=[];e.forEach(({histograms:e})=>null!=e&&t.push(...e)),r.histograms=t}r.multidimensionalInfo&&r.multidimensionalInfo.variables.forEach(t=>{let r=e.map(e=>e.multidimensionalInfo?.variables.find(({name:e})=>e===t.name)),s=r.map(e=>e?.statistics?.length?e.statistics:null),n=r.map(e=>e?.histograms?.length?e.histograms:null);t.statistics=s.every(e=>null!=e)?s.flat():null,t.histograms=n.every(e=>null!=e)?n.flat():null}),r.bandCount>1&&(r.colormap=null,r.attributeTable=null);let s=e.every(e=>e.keyProperties.BandProperties?.length)?e.flatMap(e=>e.keyProperties.BandProperties):void 0;return r.keyProperties={...r.keyProperties,BandProperties:s},this.rasterInfo=r,{success:!0,supportsGPU:r.bandCount<=3}}_processPixels(e){let{pixelBlocks:t}=e;return t&&null!=t?.[0]?(0,Ke.Wy)(t):null}_getWebGLParameters(){return{bandCount:this.rasterInfo.bandCount}}};(0,o.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],Zt.prototype,"functionName",void 0),(0,o.Cg)([(0,a.MZ)({type:jt,json:{write:!0,name:"rasterFunctionArguments"}})],Zt.prototype,"functionArguments",void 0),(0,o.Cg)([(0,a.MZ)()],Zt.prototype,"rasterArgumentNames",void 0),Zt=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.CompositeBandFunction")],Zt);const Gt=Zt,zt=new Ee.J({0:"difference",1:"relative-difference",2:"categorical",3:"euclidean-distance",4:"angle-difference",5:"band-with-most-change"},{useNumericKeys:!0}),Ot=new Ee.J({0:"all",1:"changed",2:"unchanged"},{useNumericKeys:!0});var Et;let Dt=Et=class extends c{constructor(){super(...arguments),this.method="difference",this.keepMethod="all",this.raster2=void 0}get rasters(){return[this.raster,this.raster2]}clone(){return new Et({raster:this.raster,raster2:this.raster2,method:this.method,keepMethod:this.keepMethod})}};(0,o.Cg)([(0,Ye.e)(zt)],Dt.prototype,"method",void 0),(0,o.Cg)([(0,Ye.e)(Ot)],Dt.prototype,"keepMethod",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],Dt.prototype,"raster2",void 0),(0,o.Cg)([(0,a.MZ)({readOnly:!0})],Dt.prototype,"rasters",null),Dt=Et=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.ComputeChangeFunctionArguments")],Dt);const Vt=Dt;var Ut=r(20437);let Lt=class extends w{constructor(){super(...arguments),this.functionName="ComputeChange",this.functionArguments=null,this.rasterArgumentNames=["raster","raster2"]}_bindSourceRasters(){let{method:e}=this.functionArguments,t=this.sourceRasterInfos[0].clone();if(this.outputPixelType=this._getOutputPixelType(t.pixelType),t.pixelType=this.outputPixelType,this._removeStatsHistColormapVAT(t),"categorical"===e){let e=this.sourceRasterInfos.map(e=>e.attributeTable),r=this._getFieldNames(e,"value"),s=e.map(e=>this._getClassFieldName(e));if(null==r[0]||null==r[1]||null==s[0]||null==s[1])return{success:!1,supportsGPU:!1,error:"both inputs must have proper attribute table with value and class fields"};this._updateAttributeTable(t,r,s)}return t.bandCount=1,this.rasterInfo=t,{success:!0,supportsGPU:"difference"===e||"relative-difference"===e}}_processPixels(e){let{pixelBlocks:t}=e;if(null==t?.[0]||null==t?.[1])return null;let{method:r}=this.functionArguments;return function(e,t,r,s){let[n,i]=e,o=(0,l.zw)(r)&&!(0,l.zw)(n.pixelType)&&!(0,l.zw)(i.pixelType),a=[n.mask,i.mask].filter(e=>e),u=g.A.combineBandMasks(a),p=e.map(e=>e.pixels[0]),{width:c,height:h}=n,m=g.A.createEmptyBand(r,c*h);switch(t){case"difference":case"relative-difference":!function(e){let{bands:[t,r],mask:s,isRelative:n,isRoundingNeeded:i,outBand:o}=e,a=t.length;for(let e=0;e<a;e++)if(!s||s[e]){let s=t[e]-r[e];if(n){let n=Math.max(Math.abs(t[e]),Math.abs(r[e]));s=0===n?0:s/n}o[e]=i?Math.round(s):s}}({bands:p,mask:u,outBand:m,isRoundingNeeded:o,isRelative:"relative-difference"===t});break;case"categorical":!function(e){let{bands:[t,r],categoryIndexLookups:[s,n],classNames:[i,o],mask:a,keepMethod:l,outBand:u}=e,p=t.length,c=i.length,h=o.length,m=c*h,f=m+1,g=m+2;for(let e=0;e<p;e++)if(!a||a[e]){let a=t[e],p=r[e],c=s[a],d=n[p],y=i[c],x=o[d];u[e]=null==c||null==d?m:"changed"===l&&y===x?f:"unchanged"===l&&y!==x?g:c*h+d}}({bands:p,mask:u,outBand:m,...s});break;case"euclidean-distance":!function(e){let{pixels:[t,r],mask:s,outBand:n}=e,i=t[0].length,o=t.length;for(let e=0;e<i;e++)if(!s||s[e]){let s=0;for(let n=0;n<o;n++){let i=t[n][e]-r[n][e];s+=i*i}n[e]=Math.sqrt(s)}}({pixels:e.map(e=>e.pixels),mask:u,outBand:m});break;case"angle-difference":!function(e){let{pixels:[t,r],mask:s,outBand:n}=e,i=t[0].length,o=t.length;for(let e=0;e<i;e++)if(!s||s[e]){let s=0,i=0,a=0;for(let n=0;n<o;n++){let o=t[n][e],l=r[n][e];s+=o*l,i+=o*o,a+=l*l}let l=Math.sqrt(i*a);n[e]=l?Math.acos(s/l):1.5707963267948966}}({pixels:e.map(e=>e.pixels),mask:u,outBand:m});break;case"band-with-most-change":!function(e){let{pixels:[t,r],mask:s,outBand:n}=e,i=t[0].length,o=t.length;for(let e=0;e<i;e++)if(!s||s[e]){let s=0,i=0;for(let n=0;n<o;n++){let o=Math.abs(t[n][e]-r[n][e]);o>s&&(s=o,i=n)}n[e]=i}}({pixels:e.map(e=>e.pixels),mask:u,outBand:m})}let f=new g.A({width:c,height:h,pixels:[m],pixelType:r,mask:u});return f.updateStatistics(),f}(t,r,this.outputPixelType,this._categoryConfig)}_getWebGLParameters(){let e=this.outputPixelType??"f32",[t,r]=(0,l.hP)(e),s=(0,l.zw)(e);return s&&(t-=1e-4,r+=1e-4),{method:this.functionArguments.method,domainRange:[t,r],isOutputRounded:s}}_updateAttributeTable(e,t,r){let s=this.sourceRasterInfos.map(e=>e.attributeTable),n=s.map((e,r)=>e.features.map(e=>e.attributes[t[r]])),i=s.map((e,t)=>e.features.map(e=>e.attributes[r[t]])),o=n.map(e=>{let t=[];return e.forEach((e,r)=>t[e]=r),t}),{keepMethod:a}=this.functionArguments;this._categoryConfig={categoryIndexLookups:o,classNames:i,keepMethod:a};let l=s[0].clone();l.fields=[new Ut.A({name:"OID",type:"oid"}),new Ut.A({name:"Value",type:"integer"}),new Ut.A({name:"ClassName",type:"string"}),new Ut.A({name:"Class_From",type:"string"}),new Ut.A({name:"Class_To",type:"string"})];let u=this._getFieldNames(s,"red"),p=this._getFieldNames(s,"green"),c=this._getFieldNames(s,"blue"),h=[],m=2===u.length&&2===p.length&&2===c.length;m&&(h.push(...s.map((e,t)=>e.features.map(e=>[e.attributes[u[t]],e.attributes[p[t]],e.attributes[c[t]]]))),l.fields.push(new Ut.A({name:"Red",type:"integer"}),new Ut.A({name:"Green",type:"integer"}),new Ut.A({name:"Blue",type:"integer"})));let f=l.features[0].clone();f.geometry=null;let g=[],[d,y]=n.map(e=>e.length),x=1;for(let e=0;e<d;e++){let t=i[0][e];for(let r=0;r<y;r++){let s=i[1][r];if("changed"===a&&t===s||"unchanged"===a&&t!==s)continue;let n=f.clone();n.attributes={OID:x++,Value:e*y+r,ClassName:t===s?t:`${t} -> ${s}`,Class_From:t,Class_To:s},m&&(n.attributes.Red=h[0][e][0]+h[1][r][0]>>1,n.attributes.Green=h[0][e][1]+h[1][r][1]>>1,n.attributes.Blue=h[0][e][2]+h[1][r][2]>>1),g.push(n)}}if("changed"===a){let e=f.clone();e.attributes={OID:x++,Value:d*y+1,ClassName:"No Change",Class_From:"Same",Class_To:"Same"},g.push(e)}else if("unchanged"===a){let e=f.clone();e.attributes={OID:x++,Value:d*y+2,ClassName:"Changed",Class_From:"Any",Class_To:"Any"},g.push(e)}l.features=g,e.attributeTable=l}_getFieldNames(e,t){return e.map(({fields:e})=>e.find(e=>e.name.toLowerCase()===t)?.name).filter(e=>e)}_getClassFieldName(e){return(e.fields.find(e=>"string"===e.type&&e.name.toLowerCase().startsWith("class"))??e.fields.find(e=>"string"===e.type&&e.name.toLowerCase().includes("class")||e.name.toLowerCase().includes("type")||e.name.toLowerCase().includes("name"))??e.fields.find(e=>"string"===e.type))?.name}};(0,o.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],Lt.prototype,"functionName",void 0),(0,o.Cg)([(0,a.MZ)({type:Vt,json:{write:!0,name:"rasterFunctionArguments"}})],Lt.prototype,"functionArguments",void 0),(0,o.Cg)([(0,a.MZ)()],Lt.prototype,"rasterArgumentNames",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],Lt.prototype,"_categoryConfig",void 0),Lt=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.ComputeChangeFunction")],Lt);const Wt=Lt;var Kt;let $t=Kt=class extends c{constructor(){super(...arguments),this.contrastOffset=0,this.brightnessOffset=0}clone(){return new Kt({contrastOffset:this.contrastOffset,brightnessOffset:this.brightnessOffset,raster:this.raster})}};(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],$t.prototype,"contrastOffset",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],$t.prototype,"brightnessOffset",void 0),$t=Kt=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.ContrastBrightnessFunctionArguments")],$t);const Ht=$t;var qt=r(51927);let Jt=class extends w{constructor(){super(...arguments),this.functionName="ContrastBrightness",this.functionArguments=null,this.rasterArgumentNames=["raster"],this.lookup=null}_bindSourceRasters(){let{sourceRasterInfos:e}=this,t=e[0];if("u8"!==t.pixelType)return{success:!1,supportsGPU:!1,error:"Only unsigned 8 bit raster is supported by ContrastBrightness function."};this.outputPixelType=this._getOutputPixelType("u8");let r=t.clone();this._removeStatsHistColormapVAT(r),this.rasterInfo=r;let{contrastOffset:s,brightnessOffset:n}=this.functionArguments;return this.lookup=(0,qt.zj)(s,n),{success:!0,supportsGPU:!0}}_processPixels(e){let t=e.pixelBlocks?.[0];return null==t?null:(0,Ke.eH)(t,{lut:t.pixels.map(()=>this.lookup),offset:0,outputPixelType:"u8"})}_getWebGLParameters(){let{contrastOffset:e,brightnessOffset:t}=this.functionArguments;return{contrastOffset:e,brightnessOffset:t}}};(0,o.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],Jt.prototype,"functionName",void 0),(0,o.Cg)([(0,a.MZ)({type:Ht,json:{write:!0,name:"rasterFunctionArguments"}})],Jt.prototype,"functionArguments",void 0),(0,o.Cg)([(0,a.MZ)()],Jt.prototype,"rasterArgumentNames",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],Jt.prototype,"lookup",void 0),Jt=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.ContrastBrightnessFunction")],Jt);const Xt=Jt;function Yt(e,t,r,s,n){let i=Math.floor(s/2);for(let s=0;s<i;s++)for(let i=0;i<t;i++)e[s*t+i]=e[(n-1-s)*t+i],e[(r-1-s)*t+i]=e[(r-n+s)*t+i];let o=Math.floor(n/2);for(let s=0;s<r;s++){let r=s*t;for(let s=0;s<o;s++)e[r+s]=e[r+n-1-s],e[r+t-s-1]=e[r+t+s-n]}}const Qt=new Map;function er(e,t,r,s,n,i,o){let a=new Float32Array(t*r),l=i.length,u=o?0:s,p=o?s:0,c=o?1:t;for(let o=u;o<r-u;o++){let r=o*t;for(let o=p;o<t-p;o++){if(n&&!n[r+o])continue;let t=0;for(let n=0;n<l;n++)t+=e[r+o+(n-s)*c]*i[n];a[r+o]=t}}return a}function tr(e,t,r,s,n,i,o){let a=new Float32Array(t*r),l=Math.floor(s/2),u=Math.floor(n/2);for(let p=l;p<r-l;p++){let r=p*t;for(let p=u;p<t-u;p++){if(i&&!i[r+p])continue;let c=0;for(let i=0;i<s;i++)for(let s=0;s<n;s++)c+=e[r+p+(i-l)*t+s-u]*o[i*n+s];a[r+p]=c}}return a}var rr;Qt.set(A.none,[0,0,0,0,1,0,0,0,0]),Qt.set(A.lineDetectionHorizontal,[-1,-1,-1,2,2,2,-1,-1,-1]),Qt.set(A.lineDetectionVertical,[-1,2,-1,-1,2,-1,-1,2,-1]),Qt.set(A.lineDetectionLeftDiagonal,[2,-1,-1,-1,2,-1,-1,-1,2]),Qt.set(A.lineDetectionRightDiagonal,[-1,-1,2,-1,2,-1,2,-1,-1]),Qt.set(A.gradientNorth,[-1,-2,-1,0,0,0,1,2,1]),Qt.set(A.gradientWest,[-1,0,1,-2,0,2,-1,0,1]),Qt.set(A.gradientEast,[1,0,-1,2,0,-2,1,0,-1]),Qt.set(A.gradientSouth,[1,2,1,0,0,0,-1,-2,-1]),Qt.set(A.gradientNorthEast,[0,-1,-2,1,0,-1,2,1,0]),Qt.set(A.gradientNorthWest,[-2,-1,0,-1,0,1,0,1,2]),Qt.set(A.smoothArithmeticMean,[.111111111111,.111111111111,.111111111111,.111111111111,.111111111111,.111111111111,.111111111111,.111111111111,.111111111111]),Qt.set(A.smoothing3x3,[.0625,.125,.0625,.125,.25,.125,.0625,.125,.0625]),Qt.set(A.smoothing5x5,[1,1,1,1,1,1,4,4,4,1,1,4,12,4,1,1,4,4,4,1,1,1,1,1,1]),Qt.set(A.sharpening3x3,[-1,-1,-1,-1,9,-1,-1,-1,-1]),Qt.set(A.sharpening5x5,[-1,-3,-4,-3,-1,-3,0,6,0,-3,-4,6,21,6,-4,-3,0,6,0,-3,-1,-3,-4,-3,-1]),Qt.set(A.laplacian3x3,[0,-1,0,-1,4,-1,0,-1,0]),Qt.set(A.laplacian5x5,[0,0,-1,0,0,0,-1,-2,-1,0,-1,-2,17,-2,-1,0,-1,-2,-1,0,0,0,-1,0,0]),Qt.set(A.sobelHorizontal,[-1,-2,-1,0,0,0,1,2,1]),Qt.set(A.sobelVertical,[-1,0,1,-2,0,2,-1,0,1]),Qt.set(A.sharpen,[0,-.25,0,-.25,2,-.25,0,-.25,0]),Qt.set(A.sharpen2,[-.25,-.25,-.25,-.25,3,-.25,-.25,-.25,-.25]),Qt.set(A.pointSpread,[-.627,.352,-.627,.352,2.923,.352,-.627,.352,-.627]);let sr=rr=class extends c{constructor(){super(...arguments),this.rows=3,this.cols=3,this.kernel=[0,0,0,0,1,0,0,0,0]}set convolutionType(e){this._set("convolutionType",e);let t=Qt.get(e);if(!t||e===A.userDefined||e===A.none)return;let r=Math.round(Math.sqrt(t.length));this._set("kernel",t),this._set("cols",r),this._set("rows",r)}clone(){return new rr({cols:this.cols,rows:this.rows,kernel:[...this.kernel],convolutionType:this.convolutionType,raster:(0,i.o8)(this.raster)})}};(0,o.Cg)([(0,a.MZ)({json:{type:Number,write:!0}})],sr.prototype,"rows",void 0),(0,o.Cg)([(0,a.MZ)({json:{type:Number,write:!0,name:"columns"}})],sr.prototype,"cols",void 0),(0,o.Cg)([(0,a.MZ)({json:{name:"type",type:Number,write:!0}})],sr.prototype,"convolutionType",null),(0,o.Cg)([(0,a.MZ)({json:{type:[Number],write:!0}})],sr.prototype,"kernel",void 0),sr=rr=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.ConvolutionFunctionArguments")],sr);const nr=sr;let ir=class extends w{constructor(){super(...arguments),this.functionName="Convolution",this.rasterArgumentNames=["raster"]}get _normalizedKernel(){let{kernel:e,convolutionType:t}=this.functionArguments,r=e.reduce((e,t)=>e+t);return-1===t||0===r||1===r?e:e.map(e=>e/r)}_bindSourceRasters(){let{convolutionType:e,rows:t,cols:r,kernel:s}=this.functionArguments;if(!Object.values(A).includes(e))return{success:!1,supportsGPU:!1,error:`convolution-function: the specified kernel type is not supported ${e}`};if(e!==A.none&&t*r!==s.length)return{success:!1,supportsGPU:!1,error:"convolution-function: the specified rows and cols do not match the length of the kernel"};let n=this.sourceRasterInfos[0];this.outputPixelType=this._getOutputPixelType(n.pixelType);let i=n.clone();i.pixelType=this.outputPixelType;let o=[A.none,A.sharpen,A.sharpen2,A.sharpening3x3,A.sharpening5x5];return(-1===e||"u8"!==this.outputPixelType&&!o.includes(e))&&(i.statistics=null,i.histograms=null),i.colormap=null,i.attributeTable=null,this.rasterInfo=i,{success:!0,supportsGPU:s.length<=25}}_processPixels(e){let t=e.pixelBlocks?.[0];if(null==t||this.functionArguments.convolutionType===A.none)return t;let{rows:r,cols:s}=this.functionArguments,{_normalizedKernel:n}=this;return function(e,t){let r=function(e){let t=Math.sqrt(e.length),r=e.slice(0,t),s=[1];for(let r=1;r<t;r++){let n=null;for(let s=0;s<t;s++){let i=e[s+r*t],o=e[s];if(null==n)if(0===o){if(i)return{separable:!1,row:null,col:null}}else n=i/o;else if(i/o!==n)return{separable:!1,row:null,col:null}}if(null==n)return{separable:!1,row:null,col:null};s.push(n)}return{separable:!0,row:r,col:s}}(t.kernel),s=!1!==t.mirrorEdges,n=r.separable?function(e,t,r,s=!0){let{pixels:n,width:i,height:o,pixelType:a,mask:l}=e,u=n.length,p=[],c=t.length,h=r.length,m=Math.floor(c/2),f=Math.floor(h/2);for(let e=0;e<u;e++){let a=er(n[e],i,o,m,l,t,!0);a=er(a,i,o,f,l,r,!1),s&&Yt(a,i,o,c,h),p.push(a)}return new g.A({width:i,height:o,pixelType:a,pixels:p,mask:l})}(e,r.row,r.col,s):function(e,t,r=!0){let{pixels:s,width:n,height:i,pixelType:o,mask:a}=e,l=s.length,u=[],{kernel:p,rows:c,cols:h}=t;for(let e=0;e<l;e++){let t=tr(s[e],n,i,c,h,a,p);r&&Yt(t,n,i,c,h),u.push(t)}return new g.A({width:n,height:i,pixelType:o,pixels:u,mask:a})}(e,t,s),{outputPixelType:i}=t;return i&&n.clamp(i),n}(t,{kernel:n,rows:r,cols:s,outputPixelType:this.outputPixelType})}_getWebGLParameters(){let e=new Float32Array(25),{rows:t,cols:r}=this.functionArguments,{_normalizedKernel:s}=this;for(let n=0;n<t;n++)for(let t=0;t<r;t++)e[5*n+t]=s[n*r+t];return{kernelRows:t,kernelCols:r,kernel:e,clampRange:(0,l.hP)(this.outputPixelType)}}_getNeighborhoodSize(){let{rows:e,cols:t}=this.functionArguments;return{rows:e,cols:t}}};(0,o.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],ir.prototype,"functionName",void 0),(0,o.Cg)([(0,a.MZ)({type:nr,json:{write:!0,name:"rasterFunctionArguments"}})],ir.prototype,"functionArguments",void 0),(0,o.Cg)([(0,a.MZ)()],ir.prototype,"rasterArgumentNames",void 0),(0,o.Cg)([(0,a.MZ)()],ir.prototype,"_normalizedKernel",null),ir=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.ConvolutionFunction")],ir);const or=ir;var ar;const lr=new Ee.J({0:"standard",1:"planform",2:"profile"},{useNumericKeys:!0});let ur=ar=class extends c{constructor(){super(...arguments),this.curvatureType="standard",this.zFactor=1}readCurvatureType(e,t){return lr.fromJSON(t.type??t.curvatureType??0)}clone(){return new ar({curvatureType:this.curvatureType,zFactor:this.zFactor,raster:this.raster})}};(0,o.Cg)([(0,a.MZ)({json:{write:{target:"type"}}}),(0,Ye.e)(lr)],ur.prototype,"curvatureType",void 0),(0,o.Cg)([(0,yt.w)("curvatureType",["type","curvatureType"])],ur.prototype,"readCurvatureType",null),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],ur.prototype,"zFactor",void 0),ur=ar=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.CurvatureFunctionArguments")],ur);const pr=ur;let cr=class extends w{constructor(){super(...arguments),this.functionName="Curvature",this.functionArguments=null,this.rasterArgumentNames=["raster"],this.isGCS=!1}_bindSourceRasters(){this.outputPixelType=this._getOutputPixelType("f32");let e=this.sourceRasterInfos[0].clone();return e.pixelType=this.outputPixelType,e.bandCount=1,this._removeStatsHistColormapVAT(e),this.rasterInfo=e,this.isGCS=e.spatialReference?.isGeographic??!1,{success:!0,supportsGPU:!0}}_processPixels(e){let t=e.pixelBlocks?.[0];if(null==t)return null;let{zFactor:r,curvatureType:s}=this.functionArguments,{extent:n,primaryPixelSizes:i}=e,o=i?.[0]??(n?{x:n.width/t.width,y:n.height/t.height}:{x:1,y:1}),a=this.isGCS&&r>=1?r*Ge.rk:r;return(0,Ge.E0)(t,{zFactor:a,curvatureType:s,resolution:o})}_getWebGLParameters(){let{zFactor:e,curvatureType:t}=this.functionArguments;return{curvatureType:t,zFactor:this.isGCS&&e>=1?e*Ge.rk:e}}_getNeighborhoodSize(){return{rows:3,cols:3}}};(0,o.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],cr.prototype,"functionName",void 0),(0,o.Cg)([(0,a.MZ)({type:pr,json:{write:!0,name:"rasterFunctionArguments"}})],cr.prototype,"functionArguments",void 0),(0,o.Cg)([(0,a.MZ)()],cr.prototype,"rasterArgumentNames",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],cr.prototype,"isGCS",void 0),cr=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.CurvatureFunction")],cr);const hr=cr;var mr;let fr=mr=class extends c{constructor(){super(...arguments),this.bandIds=[],this.bandNames=[],this.bandWavelengths=[],this.missingBandAction=0}clone(){return new mr({bandIds:this.bandIds?.slice(),bandNames:this.bandNames?.slice(),bandWavelengths:this.bandWavelengths?.slice(),missingBandAction:this.missingBandAction,method:this.method,wavelengthMatchTolerance:this.wavelengthMatchTolerance})}};(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],fr.prototype,"bandIds",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],fr.prototype,"bandNames",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],fr.prototype,"bandWavelengths",void 0),(0,o.Cg)([(0,Ye.e)({0:"name",1:"wavelength",2:"id"})],fr.prototype,"method",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],fr.prototype,"missingBandAction",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],fr.prototype,"wavelengthMatchTolerance",void 0),fr=mr=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.ExtractBandFunctionArguments")],fr);const gr=fr;let dr=class extends w{constructor(){super(...arguments),this.functionName="ExtractBand",this.functionArguments=null,this.rasterArgumentNames=["raster"]}_bindSourceRasters(){let{functionArguments:e,sourceRasterInfos:t}=this,r=t[0],{method:s,bandNames:n,bandWavelengths:i,bandIds:o,missingBandAction:a}=e,l=n?.length&&("name"===s||"id"!==s&&!o?.length),u=i?.length&&("wavelength"===s||"id"!==s&&!o?.length),p=1===a,c=l?function(e,t){let r=e.bandInfos.map(({name:e})=>e.toLowerCase()),s=[];for(let e=0;e<t.length;e++){let n=t[e].toLowerCase(),i=r.indexOf(n);if(-1===i&&"nearinfrared"===n&&(i=r.findIndex(e=>e.startsWith("nearinfrared_1")),-1===i&&(i=r.findIndex(e=>e.startsWith("nearinfrared")))),-1===i)return null;s.push(i)}return s}(r,n):u?function(e,t,{wavelengthMatchTolerance:r},s){let{bandInfos:n}=e,i=[];for(let e=0;e<n.length;e++){let{minWavelength:t,maxWavelength:r}=n[e];if(!t||!r)return null;i.push({minWavelength:t,maxWavelength:r})}let o=[];for(let e=0;e<t.length;e++){let n=t[e],a=!1,l=-1,u=Number.MAX_VALUE;for(let e=0;e<i.length;e++){let t=i[e],r=n>=t.minWavelength&&n<=t.maxWavelength,s=Math.abs(n-(t.minWavelength+t.maxWavelength)/2);r?s<u&&(a=!0,l=e,u=s):!a&&s<u&&(l=e,u=s)}if(!a&&r&&u<r&&(a=!0),!a&&s)return null;o.push(l)}return o}(r,i,this.functionArguments,p):function(e,t,r){let{bandCount:s}=e;return!t?.length||r&&t.some(e=>e<0||e>=s)?null:t}(r,o,p);if(null==c)return{success:!1,supportsGPU:!1,error:`extract-band-function: Invalid ${l?"band names":u?"band wavelengths":"band ids"} for the imagery data source`};this.functionArguments.bandIds=c,this.functionArguments.method="id",this.outputPixelType=this._getOutputPixelType(r.pixelType);let h=r.clone();h.pixelType=this.outputPixelType,h.bandCount=c.length;let{statistics:m,histograms:f}=h;null!=m&&m.length&&(h.statistics=c.map(e=>m[e]||m[m.length-1])),null!=f&&f.length&&(h.histograms=c.map(e=>f[e]||f[f.length-1])),h.multidimensionalInfo&&h.multidimensionalInfo.variables.forEach(e=>{let{statistics:t,histograms:r}=e;null!=t&&t.length&&(e.statistics=c.map(e=>t[e]||t[t.length-1])),null!=r&&r.length&&(e.histograms=c.map(e=>r[e]||r[r.length-1]))});let g=h.keyProperties?.BandProperties;return g?.length&&(g=c.map(e=>e>=g.length?g[g.length-1]:g[e]),h.keyProperties={...h.keyProperties,BandProperties:g}),this.rasterInfo=h,{success:!0,supportsGPU:h.bandCount<=3}}_processPixels(e){let t=e.pixelBlocks?.[0];if(null==t)return null;let{bandIds:r}=this.functionArguments;if(this.rasterInfo.storageInfo.isBsqTile){let{rawInputBandIds:e}=this;r=r.map(t=>e.indexOf(t))}else{let e=t.pixels.length;r=r.map(t=>t>=e?e-1:t)}return t.extractBands(r)}_getWebGLParameters(){let e;if(this.isInputBandIdsSwizzled)e=this.swizzledBandSelection.length?this.swizzledBandSelection:[0,1,2];else{e=[...this.functionArguments.bandIds],0===e.length?e=[0,1,2]:e.length<3&&(e[1]=e[1]??e[0],e[2]=e[2]??e[1]);for(let t=0;t<3;t++)e[t]=Math.min(e[t],2)}return{bandIndexMat3:qe(e)}}_getInputBandIds(e){let t=e.length;return this.functionArguments.bandIds.map(e=>e>=t?t-1:e).map(t=>e[t])}_swizzleBandIds(e){let t=this.functionArguments.bandIds.map(t=>e.indexOf(t));return this.isInputBandIdsSwizzled=!0,t[1]??=t[0],t[2]??=t[1],this.swizzledBandSelection=t,!1}};(0,o.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],dr.prototype,"functionName",void 0),(0,o.Cg)([(0,a.MZ)({type:gr,json:{write:!0,name:"rasterFunctionArguments"}})],dr.prototype,"functionArguments",void 0),(0,o.Cg)([(0,a.MZ)()],dr.prototype,"rasterArgumentNames",void 0),dr=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.ExtractBandFunction")],dr);const yr=dr;function xr(e,t,r,s){let{pixels:n,width:i,height:o}=e,a=n.length,u=r.startsWith("f"),p=!u,[c,h]=(0,l.hP)(r),m=i*o,f=g.A.createEmptyBand(r,m);for(let e=0;e<o;e++){let r=e*i;for(let e=0;e<i;e++,r++)if(!s||s[r]){let e=0;for(let s=0;s<a;s++)e+=t[s]*n[s][r];u||(e=Math.round(e),p&&(e=e>h?h:e<c?c:e)),f[r]=e}}return f}var wr;let Ar=wr=class extends c{clone(){return new wr({conversionParameters:[...this.conversionParameters],raster:this.raster})}};(0,o.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],Ar.prototype,"conversionParameters",void 0),Ar=wr=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.GrayscaleFunctionArguments")],Ar);const vr=Ar;let br=class extends w{constructor(){super(...arguments),this.functionName="Grayscale",this.functionArguments=null,this.rasterArgumentNames=["raster"]}get _normalizedWeights(){let{conversionParameters:e}=this.functionArguments,t=e.reduce((e,t)=>e+t);return e.map(e=>e/t)}_bindSourceRasters(){let{conversionParameters:e}=this.functionArguments;if(!e?.length)return{success:!1,supportsGPU:!1,error:"missing valid conversion parameters."};let t=this.sourceRasterInfos[0].clone();this.outputPixelType=this._getOutputPixelType(t.pixelType),t.pixelType=this.outputPixelType;let r=3===e.length||3===t.bandCount&&e.length>3;return t.bandCount=1,this._removeStatsHistColormapVAT(t),this.rasterInfo=t,{success:!0,supportsGPU:r}}_processPixels(e){let t=e.pixelBlocks?.[0];return null==t?null:function(e,t,r){let{width:s,height:n,mask:i,bandMasks:o}=e,a=o?.length?g.A.combineBandMasks(o):i,l=xr(e,t,r,a),u=new g.A({width:s,height:n,pixels:[l],pixelType:r,mask:a});return u.updateStatistics(),u}(t,this._normalizedWeights,this.outputPixelType)}_getWebGLParameters(){return{weights:this._normalizedWeights}}};(0,o.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],br.prototype,"functionName",void 0),(0,o.Cg)([(0,a.MZ)({type:vr,json:{write:!0,name:"rasterFunctionArguments"}})],br.prototype,"functionArguments",void 0),(0,o.Cg)([(0,a.MZ)()],br.prototype,"rasterArgumentNames",void 0),(0,o.Cg)([(0,a.MZ)()],br.prototype,"_normalizedWeights",null),br=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.GrayscaleFunction")],br);const Cr=br;var Mr;const Pr=new Ee.J({0:"traditional",1:"multi-directional"},{useNumericKeys:!0}),Tr=new Ee.J({1:"degree",2:"percent-rise",3:"scaled"},{useNumericKeys:!0});let Rr=Mr=class extends c{constructor(){super(...arguments),this.altitude=45,this.azimuth=315,this.hillshadeType="traditional",this.pixelSizePower=.664,this.pixelSizeFactor=.024,this.slopeType="degree",this.zFactor=1,this.removeEdgeEffect=!1}clone(){return new Mr({hillshadeType:this.hillshadeType,altitude:this.altitude,azimuth:this.azimuth,zFactor:this.zFactor,slopeType:this.slopeType,pixelSizeFactor:this.pixelSizeFactor,pixelSizePower:this.pixelSizePower,removeEdgeEffect:this.removeEdgeEffect,raster:this.raster})}};(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],Rr.prototype,"altitude",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],Rr.prototype,"azimuth",void 0),(0,o.Cg)([(0,a.MZ)(),(0,Ye.e)(Pr)],Rr.prototype,"hillshadeType",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0,name:"psPower"}})],Rr.prototype,"pixelSizePower",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0,name:"psZFactor"}})],Rr.prototype,"pixelSizeFactor",void 0),(0,o.Cg)([(0,a.MZ)(),(0,Ye.e)(Tr)],Rr.prototype,"slopeType",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],Rr.prototype,"zFactor",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],Rr.prototype,"removeEdgeEffect",void 0),Rr=Mr=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.HillshadeFunctionArguments")],Rr);const Nr=Rr;let Ir=class extends w{constructor(){super(...arguments),this.functionName="Hillshade",this.functionArguments=null,this.rasterArgumentNames=["raster"],this.isGCS=!1}_bindSourceRasters(){let e=this.sourceRasterInfos[0];if(e.bandCount>1)return{success:!1,supportsGPU:!1,error:"hillshade-function: source data must be single band"};this.outputPixelType=this._getOutputPixelType("u8");let t=e.clone();return this._removeStatsHistColormapVAT(t),t.pixelType=this.outputPixelType,t.bandCount=1,t.statistics=[{min:0,max:255,avg:60,stddev:10}],this.rasterInfo=t,this.isGCS=t.spatialReference?.isGeographic??!1,{success:!0,supportsGPU:!0}}_processPixels(e){let t=e.pixelBlocks?.[0];if(!t)return null;let{extent:r,primaryPixelSizes:s}=e,n=s?.[0]??(r?{x:r.width/t.width,y:r.height/t.height}:{x:1,y:1}),i=(0,Ge.PP)(this.functionArguments,n,this.isGCS),o=(0,Ge.fw)(t,i);return o.pixelType=this.outputPixelType,o}_getWebGLParameters(){let e=(0,Ge.PP)(this.functionArguments,{x:1,y:1},this.isGCS),t=(0,Ge.ng)(e),{slopeType:r,zFactor:s,pixelSizeFactor:n,pixelSizePower:i}=this.functionArguments,o="scaled"===r,a=(0,l.zw)(this.outputPixelType);return{...t,zFactor:s,gcsFactor:this.isGCS?Ge.rk:1,pixelSizeFactor:o?n:0,pixelSizePower:o?i:0,isOutputRounded:a}}_getNeighborhoodSize(){return{rows:3,cols:3}}};(0,o.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],Ir.prototype,"functionName",void 0),(0,o.Cg)([(0,a.MZ)({type:Nr,json:{write:!0,name:"rasterFunctionArguments"}})],Ir.prototype,"functionArguments",void 0),(0,o.Cg)([(0,a.MZ)()],Ir.prototype,"rasterArgumentNames",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],Ir.prototype,"isGCS",void 0),Ir=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.HillshadeFunction")],Ir);const kr=Ir;var Sr;let _r=Sr=class extends c{constructor(){super(...arguments),this.rasters=[],this.processAsMultiband=!0}writeRasters(e,t){t.rasters=e.map(e=>"number"==typeof e||"string"==typeof e?e:e.toJSON())}clone(){return new Sr({operation:this.operation,processAsMultiband:this.processAsMultiband,rasters:(0,i.o8)(this.rasters)})}};(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],_r.prototype,"operation",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],_r.prototype,"rasters",void 0),(0,o.Cg)([(0,Ft.K)("rasters")],_r.prototype,"writeRasters",null),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],_r.prototype,"processAsMultiband",void 0),_r=Sr=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.LocalFunctionArguments")],_r);const Fr=_r;let Br=class extends w{constructor(){super(...arguments),this.functionName="Local",this.functionArguments=null,this.rasterArgumentNames=["rasters"]}_bindSourceRasters(){let{sourceRasterInfos:e}=this,t=e[0],{bandCount:r}=t,{processAsMultiband:s}=this.functionArguments;if(e.some(e=>e.bandCount!==r))return{success:!1,supportsGPU:!1,error:"local-function: input rasters do not have same band count"};let{operation:n,rasters:i}=this.functionArguments,o=R[n];if(!(999===o||i.length===o||i.length<=1&&1===o))return{success:!1,supportsGPU:!1,error:`local-function: the length of functionArguments.rasters does not match operation's requirement: ${o}`};let a=t.clone();return a.bandCount=999!==o||s?r:1,this._removeStatsHistColormapVAT(a),this._updateStatistics(a),this._updatePixelType(a),this.rasterInfo=a,{success:!0,supportsGPU:1===a.bandCount&&o<=3}}_processPixels(e){let{pixelBlocks:t}=e;return null==t||t.some(e=>null==e)?null:Se(t,this.functionArguments.operation,{processAsMultiband:this.functionArguments.processAsMultiband,outputPixelType:this.outputPixelType??void 0})}_getWebGLParameters(){let{operation:e}=this.functionArguments,t=R[e],r=Object.keys(M).find(t=>M[t]===e)?.toLowerCase()??"undefined",s=this.outputPixelType??"f32",[n,i]=(0,l.hP)(s),o=(0,l.zw)(s);return o&&(n-=1e-4,i+=1e-4),{imageCount:t,operationName:r,domainRange:[n,i],isOutputRounded:o}}_updateStatistics(e){let t=this.sourceRasterInfos[0],{operation:r}=this.functionArguments,s=T(r)?.domain;if(s){e.statistics=[];for(let t=0;t<e.bandCount;t++)e.statistics[t]={min:s[0],max:s[1],avg:(s[0]+s[1])/2,stddev:(s[0]+s[1])/10}}else 45===r&&t.statistics?.length&&(e.statistics=t.statistics.map(e=>({min:-e.max,max:-e.min,avg:null==e.avg?void 0:-e.avg,stddev:null==e.stddev?void 0:-e.stddev})))}_updatePixelType(e){let{statistics:t,pixelType:r}=this.sourceRasterInfos[0],{operation:s}=this.functionArguments,{domain:n,isInteger:i}=T(s)??{domain:null,isInteger:!1},o="f32";if(n&&i)o=(0,l.X1)(n[0],n[1]);else if(30===s){let e=t?.[0];o=e?(0,l.X1)(e.min,e.max):(0,l.zw)(r)?r:"s32"}else if(45===s&&(0,l.zw)(r)){let e=t?.map(({max:e})=>-e),s=t?.map(({min:e})=>-e),n=e?.length?Math.min(...e):null,i=s?.length?Math.min(...s):null;o=null!=n&&null!=i?(0,l.X1)(n,i):r.startsWith("s")?r.replace("s","u"):"u1"===r||"u2"===r||"u4"===r?"s8":"u8"===r?"s16":"s32"}e.pixelType=this.outputPixelType=this._getOutputPixelType(o)}};(0,o.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],Br.prototype,"functionName",void 0),(0,o.Cg)([(0,a.MZ)({type:Fr,json:{write:!0,name:"rasterFunctionArguments"}})],Br.prototype,"functionArguments",void 0),(0,o.Cg)([(0,a.MZ)()],Br.prototype,"rasterArgumentNames",void 0),Br=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.LocalFunction")],Br);const jr=Br;var Zr,Gr=r(34727);let zr=Zr=class extends c{constructor(){super(...arguments),this.includedRanges=null,this.noDataValues=null,this.noDataInterpretation=0}get normalizedNoDataValues(){let{noDataValues:e}=this;if(!e?.length)return null;let t=!1,r=e.map(e=>{if("number"==typeof e)return t=!0,[e];if("string"==typeof e){let r=e.trim().split(" ").filter(e=>""!==e.trim()).map(e=>Number(e));return t||=r.length>0,0===r.length?null:r}return null});return t?r:null}clone(){return new Zr({includedRanges:this.includedRanges?.slice()??[],noDataValues:this.noDataValues?.slice()??[],noDataInterpretation:this.noDataInterpretation})}};(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],zr.prototype,"includedRanges",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],zr.prototype,"noDataValues",void 0),(0,o.Cg)([(0,a.MZ)()],zr.prototype,"normalizedNoDataValues",null),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],zr.prototype,"noDataInterpretation",void 0),zr=Zr=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.MaskFunctionArguments")],zr);const Or=zr;let Er=class extends w{constructor(){super(...arguments),this.functionName="Mask",this.functionArguments=null,this.rasterArgumentNames=["raster"]}_bindSourceRasters(){let e=this.sourceRasterInfos[0].clone(),{pixelType:t}=e;this.outputPixelType=this._getOutputPixelType(t),e.pixelType=this.outputPixelType,this.rasterInfo=e;let{includedRanges:r,normalizedNoDataValues:s}=this.functionArguments;if(!r?.length&&!s?.length)return{success:!1,supportsGPU:!1,error:"missing includedRanges or noDataValues argument"};let n=[];for(let i=0;i<e.bandCount;i++){let e=(0,Ke.Wt)(t,r?.slice(2*i,2*i+2),s?.[i]);if(null==e){n=null;break}n.push(e)}this.lookups=n;let i=null!=s&&s.every(e=>e?.length===s[0]?.length);return{success:!0,supportsGPU:(!r||r.length<=18)&&(!s||i&&s[0].length<=9)}}_processPixels(e){let t=e.pixelBlocks?.[0];if(null==t)return null;let{outputPixelType:r,lookups:s}=this,{includedRanges:n,noDataInterpretation:i,normalizedNoDataValues:o}=this.functionArguments;return(0,Ke.dK)(t,{includedRanges:n,noDataValues:o,outputPixelType:r,matchAll:1===i,lookups:s})}_getWebGLParameters(){let{includedRanges:e,normalizedNoDataValues:t}=this.functionArguments,r=new Float32Array(9);r.fill(Gr.pq),t?.[0]?.length&&r.set(t[0]);let s=new Float32Array(6);for(let t=0;t<s.length;t+=2)s[t]=e?.[t]??-Gr.pq,s[t+1]=e?.[t+1]??Gr.pq;return e?.length&&s.set(e),{bandCount:this.sourceRasterInfos[0].bandCount,noDataValues:r,includedRanges:s}}};(0,o.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],Er.prototype,"functionName",void 0),(0,o.Cg)([(0,a.MZ)({type:Or,json:{write:!0,name:"rasterFunctionArguments"}})],Er.prototype,"functionArguments",void 0),(0,o.Cg)([(0,a.MZ)()],Er.prototype,"rasterArgumentNames",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],Er.prototype,"lookups",void 0),Er=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.MaskFunction")],Er);const Dr=Er;var Vr;let Ur=Vr=class extends c{constructor(){super(...arguments),this.visibleBandID=0,this.infraredBandID=1,this.scientificOutput=!1}clone(){let{visibleBandID:e,infraredBandID:t,scientificOutput:r}=this;return new Vr({visibleBandID:e,infraredBandID:t,scientificOutput:r})}};(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],Ur.prototype,"visibleBandID",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],Ur.prototype,"infraredBandID",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],Ur.prototype,"scientificOutput",void 0),Ur=Vr=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.NDVIFunctionArguments")],Ur);const Lr=Ur;let Wr=class extends w{constructor(){super(...arguments),this.functionName="NDVI",this.functionArguments=null,this.rasterArgumentNames=["raster"]}_bindSourceRasters(){let{scientificOutput:e,visibleBandID:t,infraredBandID:r}=this.functionArguments;this.outputPixelType=this._getOutputPixelType(e?"f32":"u8");let s=this.sourceRasterInfos[0],n=Math.max(t,r);if(s.bandCount<2||n>=s.bandCount)return{success:!1,supportsGPU:!1,error:"ndvi-function: source raster has insufficient amount of raster bands"};if(t<0||r<0)return{success:!1,supportsGPU:!1,error:"ndvi-function: invalid visible or infrared band id"};let i=s.clone();i.pixelType=this.outputPixelType,this._removeStatsHistColormapVAT(i),i.bandCount=1,i.keyProperties={...i.keyProperties,BandProperties:void 0};let[o,a,l,u]=e?[-1,1,0,.1]:[0,200,100,10];return i.statistics=[{min:o,max:a,avg:l,stddev:u}],this.rasterInfo=i,{success:!0,supportsGPU:!0}}_processPixels(e){let t=e.pixelBlocks?.[0];if(null==t)return null;let{visibleBandID:r,infraredBandID:s,scientificOutput:n}=this.functionArguments;if(this.rasterInfo.storageInfo.isBsqTile){let{rawInputBandIds:e}=this;s=e.indexOf(s),r=e.indexOf(r)}return function(e,t,r,s){let{mask:n,pixels:i,width:o,height:a}=e,l=i[r],u=i[t],p=u.length,c=s?new Uint8Array(p):new Float32Array(p),h=s?100:1,m=s?100.5:0;for(let e=0;e<p;e++)if(null==n||n[e]){let t=l[e],r=u[e],s=t+r;s&&(c[e]=(t-r)/s*h+m)}let f=new g.A({width:o,height:a,mask:n,pixelType:s?"u8":"f32",pixels:[c]});return f.updateStatistics(),f}(t,r,s,!n)}_getWebGLParameters(){let{visibleBandID:e,infraredBandID:t,scientificOutput:r}=this.functionArguments;return{bandIndexMat3:qe(this.isInputBandIdsSwizzled?[0,1,2]:[t,e,0]),scaled:!r}}_getInputBandIds(e){let{visibleBandID:t,infraredBandID:r}=this.functionArguments;return[r,t,0].map(t=>e[t])}_swizzleBandIds(e){let{visibleBandID:t,infraredBandID:r}=this.functionArguments,s=[t,r].map(t=>e.indexOf(t));return s[2]=s[1],this.isInputBandIdsSwizzled=!0,this.swizzledBandSelection=s,!1}};(0,o.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],Wr.prototype,"functionName",void 0),(0,o.Cg)([(0,a.MZ)({type:Lr,json:{write:!0,name:"rasterFunctionArguments"}})],Wr.prototype,"functionArguments",void 0),(0,o.Cg)([(0,a.MZ)()],Wr.prototype,"rasterArgumentNames",void 0),Wr=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.NDVIFunction")],Wr);const Kr=Wr;var $r;let Hr=$r=class extends c{constructor(){super(...arguments),this.inputRanges=null,this.outputValues=null,this.noDataRanges=null,this.allowUnmatched=!1,this.isLastInputRangeInclusive=!1}clone(){return new $r({inputRanges:[...this.inputRanges],outputValues:[...this.outputValues],noDataRanges:[...this.noDataRanges],allowUnmatched:this.allowUnmatched,isLastInputRangeInclusive:this.isLastInputRangeInclusive})}};(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],Hr.prototype,"inputRanges",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],Hr.prototype,"outputValues",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],Hr.prototype,"noDataRanges",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],Hr.prototype,"allowUnmatched",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],Hr.prototype,"replacementValue",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],Hr.prototype,"isLastInputRangeInclusive",void 0),Hr=$r=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.RemapFunctionArguments")],Hr);const qr=Hr;let Jr=class extends w{constructor(){super(...arguments),this.functionName="Remap",this.functionArguments=null,this.rasterArgumentNames=["raster"],this.lookup=null}_bindSourceRasters(){let e=this.sourceRasterInfos[0].clone(),{pixelType:t}=e;e.bandCount=1;let{statistics:r}=e;this._removeStatsHistColormapVAT(e);let{allowUnmatched:s,replacementValue:n,outputValues:i,inputRanges:o,noDataRanges:a,isLastInputRangeInclusive:u}=this.functionArguments,p="unknown"===this.outputPixelType||null==this.outputPixelType;if(this.outputPixelType=this._getOutputPixelType(t),i?.length){let o=r?.[0];if(s&&null==n){let t=o?.min??i[0],r=o?.max??i[0];t=Math.min.apply(null,[...i,t]),r=Math.max.apply(null,[...i,r]),e.statistics=[{min:t,max:r,avg:o?.avg??0,stddev:o?.stddev??-1}]}else{let t=i[0],r=t;for(let e=0;e<i.length;e++)t=t>i[e]?i[e]:t,r=r>i[e]?r:i[e];s&&null!=n&&(t=Math.min(t,n),r=Math.max(r,n)),e.statistics=[{min:t,max:r,avg:o?.avg??0,stddev:o?.stddev??-1}]}if(p){let{min:r,max:o}=e.statistics[0],a=["u8","s8","u16","s16","u32","s32","f32"],u=a.find(e=>{let[t,s]=(0,l.hP)(e);return r>=t&&o<=s})??"f64";this.outputPixelType=i.some(e=>Math.floor(e)!==e)?"f64"===u?"f64":"f32":s&&null==n&&a.indexOf(t)>a.indexOf(u)?t:u}}return e.pixelType=this.outputPixelType,this.rasterInfo=e,this.lookup=s?null:(0,Ke.XU)({srcPixelType:t,inputRanges:o,outputValues:i,noDataRanges:a,allowUnmatched:s,isLastInputRangeInclusive:u,outputPixelType:this.outputPixelType}),{success:!0,supportsGPU:(!i||i.length<=9)&&(!a||a.length<=9)}}_processPixels(e){let t=e.pixelBlocks?.[0];if(null==t)return null;let{lookup:r,outputPixelType:s}=this;if(r){let e=(0,Ke.eH)(t,{lut:[r.lut],offset:r.offset,outputPixelType:s});return null!=e&&r.mask&&(e.mask=(0,Ke.UK)(t.pixels[0],t.mask,r.mask,r.offset,"u8")),e}let{inputRanges:n,outputValues:i,noDataRanges:o,allowUnmatched:a,isLastInputRangeInclusive:l,replacementValue:u}=this.functionArguments;return(0,Ke.Ew)(t,{inputRanges:n,outputValues:i,noDataRanges:o,outputPixelType:s,allowUnmatched:a,isLastInputRangeInclusive:l,replacementValue:u})}_getWebGLParameters(){let{allowUnmatched:e,noDataRanges:t,isLastInputRangeInclusive:r}=this.functionArguments,s=this.functionArguments.inputRanges??[],n=this.functionArguments.outputValues??[],i=(0,Ke.bL)(s,n,r),o=new Float32Array(18);return o.fill(Gr.pq),t?.length&&o.set(t),{allowUnmatched:e,rangeMaps:i,noDataRanges:o,clampRange:(0,l.hP)(this.outputPixelType),replacementValue:this.functionArguments.replacementValue}}};(0,o.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],Jr.prototype,"functionName",void 0),(0,o.Cg)([(0,a.MZ)({type:qr,json:{write:!0,name:"rasterFunctionArguments"}})],Jr.prototype,"functionArguments",void 0),(0,o.Cg)([(0,a.MZ)()],Jr.prototype,"rasterArgumentNames",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],Jr.prototype,"lookup",void 0),Jr=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.RemapFunction")],Jr);const Xr=Jr;var Yr;let Qr=Yr=class extends Nr{readColorRamp(e){if("string"==typeof e){let t=gt.kH.jsonValues.find(t=>t.toLowerCase()===e.toLowerCase());return t?(0,gt.M5)(gt.kH.fromJSON(t)):null}return"toJSON"in e?e.toJSON():e}clone(){return new Yr({hillshadeType:this.hillshadeType,altitude:this.altitude,azimuth:this.azimuth,zFactor:this.zFactor,slopeType:this.slopeType,pixelSizeFactor:this.pixelSizeFactor,pixelSizePower:this.pixelSizePower,removeEdgeEffect:this.removeEdgeEffect,colorRamp:this.colorRamp,colormap:this.colormap,raster:this.raster})}};(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],Qr.prototype,"colorRamp",void 0),(0,o.Cg)([(0,yt.w)("colorRamp")],Qr.prototype,"readColorRamp",null),(0,o.Cg)([(0,a.MZ)({type:[[Number]],json:{write:!0}})],Qr.prototype,"colormap",void 0),Qr=Yr=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.ShadedReliefFunctionArguments")],Qr);const es=Qr;let ts=class extends w{constructor(){super(...arguments),this.functionName="ShadedRelief",this.functionArguments=null,this.rasterArgumentNames=["raster"],this.isGCS=!1}_bindSourceRasters(){let e=this.sourceRasterInfos[0];if(e.bandCount>1)return{success:!1,supportsGPU:!1,error:"shadedrelief-function: source data must be single band"};let{colorRamp:t,colormap:r}=this.functionArguments;if(!t&&!r?.length)return{success:!1,supportsGPU:!1,error:"shadedrelief-function: a color ramp argument must be specified"};this.outputPixelType=this._getOutputPixelType("u8");let s=e.clone();this._removeStatsHistColormapVAT(s),s.pixelType=this.outputPixelType,s.bandCount=3,s.statistics=[{min:0,max:255,avg:60,stddev:10},{min:0,max:255,avg:60,stddev:10},{min:0,max:255,avg:60,stddev:10}],this.rasterInfo=s,this.isGCS=s.spatialReference?.isGeographic??!1,r?.length||(r=(0,gt.R8)(t,{interpolateAlpha:!0}));let{indexedColormap:n,offset:i}=(0,Ke.zg)({colormap:r});if(!n?.length)return{success:!1,supportsGPU:!1,error:"shadedrelief-function: a valid colorramp is required"};let o=(0,gt.S2)(n);return this.lookup={indexedColormap:n,offset:i,hsvMap:o},{success:!0,supportsGPU:(0,It.WN)(n)}}_processPixels(e){let t=e.pixelBlocks?.[0];if(!t||!this.lookup)return null;let r=e.primaryPixelSizes?.[0];if(null==r){let{extent:s}=e;r=s?{x:s.width/t.width,y:s.height/t.height}:{x:1,y:1}}let s=(0,Ge.PP)(this.functionArguments,r,this.isGCS),n=(0,Ge.fw)(t,s),i=this.sourceRasterInfos[0].statistics?.[0]??{min:0,max:8e3};return(0,Ge.SC)(n,t,this.lookup.hsvMap,i),n.pixelType=this.outputPixelType,n}_getWebGLParameters(){let e=(0,Ge.PP)(this.functionArguments,{x:1,y:1},this.isGCS),t=(0,Ge.ng)(e),{slopeType:r,zFactor:s,pixelSizeFactor:n,pixelSizePower:i}=this.functionArguments,o="scaled"===r,{indexedColormap:a,offset:u}=this.lookup,p=this.sourceRasterInfos[0].statistics?.[0],c=(0,l.zw)(this.outputPixelType);return{...t,indexedColormap:a,offset:u,zFactor:s,gcsFactor:this.isGCS?Ge.rk:1,pixelSizeFactor:o?n:0,pixelSizePower:o?i:0,minValue:p?.min??0,maxValue:p?.max??8e3,isOutputRounded:c}}_getNeighborhoodSize(){return{rows:3,cols:3}}};(0,o.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],ts.prototype,"functionName",void 0),(0,o.Cg)([(0,a.MZ)({type:es,json:{write:!0,name:"rasterFunctionArguments"}})],ts.prototype,"functionArguments",void 0),(0,o.Cg)([(0,a.MZ)()],ts.prototype,"rasterArgumentNames",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],ts.prototype,"isGCS",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],ts.prototype,"lookup",void 0),ts=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.ShadedReliefFunction")],ts);const rs=ts;var ss;const ns=new Ee.J({1:"degree",2:"percent-rise",3:"adjusted"},{useNumericKeys:!0});let is=ss=class extends c{constructor(){super(...arguments),this.slopeType="degree",this.zFactor=1,this.pixelSizePower=.664,this.pixelSizeFactor=.024,this.removeEdgeEffect=!1}clone(){return new ss({slopeType:this.slopeType,zFactor:this.zFactor,pixelSizePower:this.pixelSizePower,pixelSizeFactor:this.pixelSizeFactor,removeEdgeEffect:this.removeEdgeEffect,raster:this.raster})}};(0,o.Cg)([(0,Ye.e)(ns)],is.prototype,"slopeType",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],is.prototype,"zFactor",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{name:"psPower",write:!0}})],is.prototype,"pixelSizePower",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{name:"psZFactor",write:!0}})],is.prototype,"pixelSizeFactor",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],is.prototype,"removeEdgeEffect",void 0),is=ss=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.SlopeFunctionArguments")],is);const os=is;let as=class extends w{constructor(){super(...arguments),this.functionName="Slope",this.functionArguments=null,this.rasterArgumentNames=["raster"],this.isGCS=!1}_bindSourceRasters(){this.outputPixelType=this._getOutputPixelType("f32");let e=this.sourceRasterInfos[0].clone();return e.pixelType=this.outputPixelType,this._removeStatsHistColormapVAT(e),e.statistics="percent-rise"===this.functionArguments.slopeType?null:[{min:0,max:90,avg:1,stddev:1}],e.bandCount=1,this.rasterInfo=e,this.isGCS=e.spatialReference?.isGeographic??!1,{success:!0,supportsGPU:!0}}_processPixels(e){let t=e.pixelBlocks?.[0];if(null==t)return null;let{zFactor:r,slopeType:s,pixelSizePower:n,pixelSizeFactor:i}=this.functionArguments,{isGCS:o}=this,{extent:a,primaryPixelSizes:l}=e,u=l?.[0]??(a?{x:a.width/t.width,y:a.height/t.height}:{x:1,y:1});return(0,Ge.yy)(t,{zFactor:r,slopeType:s,pixelSizePower:n,pixelSizeFactor:i,isGCS:o,resolution:u})}_getWebGLParameters(){let{zFactor:e,slopeType:t,pixelSizeFactor:r,pixelSizePower:s}=this.functionArguments;return{zFactor:this.isGCS&&e>=1?e*Ge.rk:e,slopeType:t,pixelSizeFactor:r??0,pixelSizePower:s??0,isOutputRounded:(0,l.zw)(this.outputPixelType)}}_getNeighborhoodSize(){return{rows:3,cols:3}}};(0,o.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],as.prototype,"functionName",void 0),(0,o.Cg)([(0,a.MZ)({type:os,json:{write:!0,name:"rasterFunctionArguments"}})],as.prototype,"functionArguments",void 0),(0,o.Cg)([(0,a.MZ)()],as.prototype,"rasterArgumentNames",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],as.prototype,"isGCS",void 0),as=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.SlopeFunction")],as);const ls=as;var us;let ps=us=class extends c{clone(){return new us({conversionMatrix:[...this.conversionMatrix],raster:this.raster})}};(0,o.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],ps.prototype,"conversionMatrix",void 0),ps=us=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.SpectralConversionFunctionArguments")],ps);const cs=ps;let hs=class extends w{constructor(){super(...arguments),this.functionName="SpectralConversion",this.functionArguments=null,this.rasterArgumentNames=["raster"]}_bindSourceRasters(){let e=this.sourceRasterInfos[0].clone();return this.outputPixelType=this._getOutputPixelType(e.pixelType),e.pixelType=this.outputPixelType,this._removeStatsHistColormapVAT(e),this.rasterInfo=e,{success:!0,supportsGPU:3===e.bandCount&&9===this.functionArguments.conversionMatrix.length}}_processPixels(e){let t=e.pixelBlocks?.[0];return null==t?null:function(e,t,r){let{width:s,height:n,mask:i,bandMasks:o}=e,a=o?.length?g.A.combineBandMasks(o):i,l=[],u=e.pixels.length;for(let s=0;s<t.length/u;s++){let n=xr(e,t.slice(s*u,(s+1)*u),r,a);l.push(n)}let p=new g.A({width:s,height:n,pixels:l,pixelType:r,mask:a});return p.updateStatistics(),p}(t,this.functionArguments.conversionMatrix,this.outputPixelType)}_getWebGLParameters(){let e=(0,l.hP)(this.outputPixelType),[t,r,s,n,i,o,a,u,p]=this.functionArguments.conversionMatrix;return{weights:[t,n,a,r,i,u,s,o,p],clampRange:e}}};(0,o.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],hs.prototype,"functionName",void 0),(0,o.Cg)([(0,a.MZ)({type:cs,json:{write:!0,name:"rasterFunctionArguments"}})],hs.prototype,"functionArguments",void 0),(0,o.Cg)([(0,a.MZ)()],hs.prototype,"rasterArgumentNames",void 0),hs=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.SpectralConversionFunction")],hs);const ms=hs,fs=new Ee.J({1:"min",2:"max",3:"mean",4:"stddev",5:"median",6:"majority",7:"minority"},{useNumericKeys:!0});function gs(e,t){let{fillNoDataOnly:r}=t,{band:s,width:n,height:i,mask:o,outBand:a}=e;if(r&&!o)return void a.set(s);let{statisticsType:l,kernelRows:u,kernelCols:p}=t,c="stddev"===l,h=n*i,m=new Float64Array(h),f=new Float64Array(h),g=new Uint32Array(h);for(let e=0;e<i;e++){let t=e*n,r=0,i=0,a=0;for(let e=0;e<p;e++)(!o||o[t+e])&&(r+=s[t+e],c&&(i+=s[t+e]**2),a++);m[t]=r,f[t]=i,g[t]=a;for(let e=1;e<=n-p;e++){let n=t+e-1,l=n+p;o?(o[n]&&(a--,r-=s[n],c&&(i-=s[n]**2)),o[l]&&(a++,r+=s[l],c&&(i+=s[l]**2))):(r-=s[n],r+=s[l],c&&(i-=s[n]**2,i+=s[l]**2)),m[t+e]=r,g[t+e]=a,c&&(f[t+e]=i)}}let d=new Float64Array(h),y=new Float64Array(h),x=new Uint32Array(h),w=u*n;for(let e=0;e<=n-p;e++){let t=0,r=0,s=0;for(let i=0;i<u;i++){let o=i*n+e;t+=m[o],s+=g[o],c&&(r+=f[o])}d[e]=t,y[e]=r,x[e]=s;for(let o=1;o<=i-u;o++){let i=(o-1)*n+e,a=i+w;t-=m[i],t+=m[a],s-=g[i],s+=g[a],c&&(r-=f[i],r+=f[a]),d[o*n+e]=t,y[o*n+e]=r,x[o*n+e]=s}}let A=Math.floor(u/2),v=Math.floor(p/2);for(let e=A;e<i-A;e++){let t=e*n;for(let s=v;s<n-v;s++){let i=(e-A)*n+s-v,l=x[i];if(0===l||r&&(!o||o[t+s]))continue;let u=d[i]/l,p=c?Math.sqrt((y[i]-d[i]*u)/l):u;a[t+s]=p,o&&(o[t+s]=255)}}}function ds(e,t){let{fillNoDataOnly:r}=t,{band:s,width:n,height:i,mask:o,outBand:a}=e;if(r&&!o)return void a.set(s);let{kernelRows:l,kernelCols:u,statisticsType:p}=t,c=Math.floor(l/2),h=Math.floor(u/2),m="min"===p,f=a.slice(),g=new Uint32Array(n*i);for(let e=c;e<i-c;e++){let t=e*n;for(let e=h;e<n-h;e++){let r=m?Number.MAX_VALUE:-Number.MAX_VALUE,i=0;for(let a=0;a<l;a++)for(let l=0;l<u;l++){let u=t+e+(a-c)*n+l-h;(!o||o[u])&&(r=m?Math.min(r,s[u]):Math.max(r,s[u]),i++)}o?(f[t+e]=0===i?0:r,g[t+e]=i):a[t+e]=0===i?0:r}}if(o)for(let e=c;e<i-c;e++){let t=e*n;for(let e=h;e<n-h;e++)if(g[t+e]){if(r&&o[t+e])continue;a[t+e]=f[t+e],o[t+e]=255}}}function ys(e,t){let{fillNoDataOnly:r}=t,{band:s,width:n,height:i,mask:o,outBand:a}=e;if(r&&!o)return void a.set(s);let{kernelRows:l,kernelCols:u}=t,p=Math.floor(l/2),c=Math.floor(u/2),h=a.slice(),m=new Uint32Array(n*i);for(let e=p;e<i-p;e++){let t=e*n;for(let e=c;e<n-c;e++){if(r&&o?.[t+e])continue;let i=[];for(let r=0;r<l;r++)for(let a=0;a<u;a++){let l=t+e+(r-p)*n+a-c;(!o||o[l])&&i.push(s[l])}i.length&&(i.sort((e,t)=>e-t),o?(h[t+e]=i[Math.floor((i.length-1)/2)],m[t+e]=i.length):a[t+e]=i[Math.floor((i.length-1)/2)])}}if(o)for(let e=p;e<i-p;e++){let t=e*n;for(let e=c;e<n-c;e++)if(m[t+e]){if(r&&o[t+e])continue;a[t+e]=h[t+e],o[t+e]=255}}}function xs(e,t){let{fillNoDataOnly:r}=t,{band:s,width:n,height:i,mask:o,outBand:a}=e;if(r&&!o)return void a.set(s);let{kernelRows:l,kernelCols:u}=t,p=Math.floor(l/2),c=Math.floor(u/2),h="majority"===t.statisticsType,m=l*u,f=a.slice(),g=new Uint32Array(n*i);for(let e=p;e<i-p;e++){let t=e*n;for(let e=c;e<n-c;e++){if(r&&o?.[t+e])continue;let i=new Map;for(let r=0;r<l;r++)for(let a=0;a<u;a++){let l=t+e+(r-p)*n+a-c;if(o&&!o[l])continue;let u=s[l];i.set(u,i.has(u)?i.get(u)+1:1)}if(0===i.size)continue;let d=0,y=0,x=h?0:m+1;for(let e of i.keys())y=i.get(e),h===y>x&&(x=y,d=e);o?(f[t+e]=d,g[t+e]=i.size):a[t+e]=d}}if(o)for(let e=p;e<i-p;e++){let t=e*n;for(let e=c;e<n-c;e++)if(g[t+e]){if(r&&o[t+e])continue;a[t+e]=f[t+e],o[t+e]=255}}}var ws;let As=ws=class extends c{constructor(){super(...arguments),this.rows=3,this.cols=3,this.fillNoDataOnly=!1,this.statisticsType="min"}clone(){return new ws({rows:this.rows,cols:this.cols,fillNoDataOnly:this.fillNoDataOnly,statisticsType:this.statisticsType,raster:(0,i.o8)(this.raster)})}};(0,o.Cg)([(0,a.MZ)({json:{write:!0,read:{source:["kernelRows","rows"],reader:(e,t)=>Number(e??t?.kernelRows??3)}}})],As.prototype,"rows",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0,read:{source:["kernelCols","cols"],reader:(e,t)=>Number(e??t?.kernelCols??3)}}})],As.prototype,"cols",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],As.prototype,"fillNoDataOnly",void 0),(0,o.Cg)([(0,a.MZ)({json:{read:{source:["statisticsType","type"],reader:(e,t)=>fs.fromJSON(t?.statisticsType??t?.type)??"min"},write:{target:"type"}}}),(0,Ye.e)(fs)],As.prototype,"statisticsType",void 0),As=ws=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.StatisticsFunctionArguments")],As);const vs=As;let bs=class extends w{constructor(){super(...arguments),this.functionName="Statistics",this.rasterArgumentNames=["raster"]}_bindSourceRasters(){let{type:e}=this.functionArguments.toJSON();if(e<1||e>7)return{success:!1,supportsGPU:!1,error:`statistics-function: the given statistics type is not supported ${e}`};let t=this.sourceRasterInfos[0];this.outputPixelType=this._getOutputPixelType(t.pixelType);let r=t.clone();r.pixelType=this.outputPixelType;let{statisticsType:s}=this.functionArguments;return"stddev"===s&&this._removeStatsHistColormapVAT(r),this.rasterInfo=r,{success:!0,supportsGPU:r.bandCount<=3&&e<5}}_processPixels(e){let t=e.pixelBlocks?.[0];if(null==t)return t;let{statisticsType:r,rows:s,cols:n,fillNoDataOnly:i}=this.functionArguments;return function(e,t){let{mask:r}=e,{fillNoDataOnly:s}=t;if(s&&!r)return e;let{pixels:n,width:i,height:o,bandMasks:a,pixelType:l}=e,u=n.length,p=i*o,c=[],{kernelRows:h,kernelCols:m,statisticsType:f,mirrorEdges:d}=t;if(s&&!r)return e;let y=t.outputPixelType??l,x=[];for(let e=0;e<u;e++){let l=n[e],u=g.A.createEmptyBand(y,p);s&&u.set(l);let w=(a?.[e]??r)?.slice()??null,A={band:l,width:i,height:o,mask:w,outBand:u};switch(f){case"min":case"max":ds(A,t);break;case"mean":case"stddev":gs(A,t);break;case"median":ys(A,t);break;case"majority":case"minority":xs(A,t)}d&&!s&&Yt(u,i,o,h,m),c.push(u),w&&x.push(w)}let w=x[0]??r;x.length!==u&&(x.length=0),u>1&&a?.length&&(w=g.A.combineBandMasks(a));let A=new g.A({pixelType:y,width:i,height:o,pixels:c,bandMasks:a&&x.length?x:null,mask:w});return A.updateStatistics(),A}(t,{kernelRows:s,kernelCols:n,fillNoDataOnly:i,outputPixelType:this.outputPixelType,statisticsType:r,mirrorEdges:!0})}_getWebGLParameters(){let{rows:e,cols:t,statisticsType:r,fillNoDataOnly:s}=this.functionArguments;return{fillNoDataOnly:s,kernelRows:e,kernelCols:t,statisticsType:r,clampRange:(0,l.hP)(this.outputPixelType)}}_getNeighborhoodSize(){let{rows:e,cols:t}=this.functionArguments;return{rows:e,cols:t}}};(0,o.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],bs.prototype,"functionName",void 0),(0,o.Cg)([(0,a.MZ)({type:vs,json:{write:!0,name:"rasterFunctionArguments"}})],bs.prototype,"functionArguments",void 0),(0,o.Cg)([(0,a.MZ)()],bs.prototype,"rasterArgumentNames",void 0),bs=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.StatisticsFunction")],bs);const Cs=bs;var Ms;let Ps=Ms=class extends c{constructor(){super(...arguments),this.statistics=null,this.histograms=null}readStatistics(e,t){if(!e?.length)return null;let r=[];return e.forEach(e=>{let t={min:e.min,max:e.max,avg:e.avg??e.mean,stddev:e.stddev??e.standardDeviation};r.push(t)}),r}writeStatistics(e,t,r){if(!e?.length)return;let s=[];e.forEach(e=>{let t={...e,mean:e.avg,standardDeviation:e.stddev};delete t.avg,delete t.stddev,s.push(t)}),t[r]=s}clone(){return new Ms({statistics:(0,i.o8)(this.statistics),histograms:(0,i.o8)(this.histograms)})}};(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],Ps.prototype,"statistics",void 0),(0,o.Cg)([(0,yt.w)("statistics")],Ps.prototype,"readStatistics",null),(0,o.Cg)([(0,Ft.K)("statistics")],Ps.prototype,"writeStatistics",null),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],Ps.prototype,"histograms",void 0),Ps=Ms=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.StatisticsHistogramFunctionArguments")],Ps);const Ts=Ps;let Rs=class extends w{constructor(){super(...arguments),this.functionName="StatisticsHistogram",this.functionArguments=null,this.rasterArgumentNames=["raster"],this.isNoopProcess=!0}_bindSourceRasters(){let e=this.sourceRasterInfos[0];this.outputPixelType=this._getOutputPixelType("u8");let t=e.clone(),{statistics:r,histograms:s}=this.functionArguments;return s&&(t.histograms=s),r&&(t.statistics=r),this.rasterInfo=t,{success:!0,supportsGPU:!0}}_processPixels(e){return e.pixelBlocks?.[0]}};(0,o.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],Rs.prototype,"functionName",void 0),(0,o.Cg)([(0,a.MZ)({type:Ts,json:{write:!0,name:"rasterFunctionArguments"}})],Rs.prototype,"functionArguments",void 0),(0,o.Cg)([(0,a.MZ)()],Rs.prototype,"rasterArgumentNames",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],Rs.prototype,"indexedColormap",void 0),(0,o.Cg)([(0,a.MZ)()],Rs.prototype,"isNoopProcess",void 0),Rs=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.StatisticsHistogramFunction")],Rs);const Ns=Rs;var Is;const ks=new Ee.J({0:"none",3:"standard-deviation",4:"histogram-equalization",5:"min-max",6:"percent-clip",9:"sigmoid"},{useNumericKeys:!0});let Ss=Is=class extends c{constructor(){super(...arguments),this.computeGamma=!1,this.dynamicRangeAdjustment=!1,this.gamma=[],this.histograms=null,this.statistics=null,this.stretchType="none",this.useGamma=!1}writeStatistics(e,t,r){e?.length&&(Array.isArray(e[0])||(e=e.map(e=>[e.min,e.max,e.avg,e.stddev])),t[r]=e)}clone(){return new Is({stretchType:this.stretchType,outputMin:this.outputMin,outputMax:this.outputMax,useGamma:this.useGamma,computeGamma:this.computeGamma,statistics:(0,i.o8)(this.statistics),gamma:(0,i.o8)(this.gamma),sigmoidStrengthLevel:this.sigmoidStrengthLevel,numberOfStandardDeviations:this.numberOfStandardDeviations,minPercent:this.minPercent,maxPercent:this.maxPercent,histograms:(0,i.o8)(this.histograms),dynamicRangeAdjustment:this.dynamicRangeAdjustment,raster:this.raster})}};(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],Ss.prototype,"computeGamma",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{name:"dra",write:!0}})],Ss.prototype,"dynamicRangeAdjustment",void 0),(0,o.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],Ss.prototype,"gamma",void 0),(0,o.Cg)([(0,a.MZ)()],Ss.prototype,"histograms",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],Ss.prototype,"maxPercent",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],Ss.prototype,"minPercent",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],Ss.prototype,"numberOfStandardDeviations",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{name:"max",write:!0}})],Ss.prototype,"outputMax",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{name:"min",write:!0}})],Ss.prototype,"outputMin",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],Ss.prototype,"sigmoidStrengthLevel",void 0),(0,o.Cg)([(0,a.MZ)({json:{type:[[Number]],write:!0}})],Ss.prototype,"statistics",void 0),(0,o.Cg)([(0,Ft.K)("statistics")],Ss.prototype,"writeStatistics",null),(0,o.Cg)([(0,Ye.e)(ks)],Ss.prototype,"stretchType",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],Ss.prototype,"useGamma",void 0),Ss=Is=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.StretchFunctionArguments")],Ss);const _s=Ss;let Fs=class extends w{constructor(){super(...arguments),this.functionName="Stretch",this.functionArguments=null,this.rasterArgumentNames=["raster"],this.lookup=null,this.cutOffs=null}_bindSourceRasters(){this.lookup=null,this.cutOffs=null;let e=this.sourceRasterInfos[0],{pixelType:t}=e,{functionArguments:r}=this,{dynamicRangeAdjustment:s,gamma:n,useGamma:i}=r;if(!s&&["u8","u16","s8","s16"].includes(t)){let s=(0,qt.DP)(r.toJSON(),{rasterInfo:e}),o=(0,l.zw)(this.outputPixelType)?"round":"float";this.lookup=(0,qt.RP)({pixelType:t,...s,gamma:i?n:null,rounding:o}),this.cutOffs=s}else s||(this.cutOffs=(0,qt.DP)(r.toJSON(),{rasterInfo:e}));this.outputPixelType=this._getOutputPixelType(t);let o=e.clone();o.pixelType=this.outputPixelType,this._removeStatsHistColormapVAT(o),"u8"===this.outputPixelType&&(o.keyProperties.DataType="processed");let{outputMin:a=0,outputMax:u=255}=this.functionArguments;o.statistics=[];for(let e=0;e<o.bandCount;e++)o.statistics[e]={min:a,max:u};return this.rasterInfo=o,{success:!0,supportsGPU:!s}}_processPixels(e,t){let r=e.pixelBlocks?.[0];if(null==r)return r;let{lookup:s}=this;if(s)return(0,Ke.eH)(r,{...s,outputPixelType:this.rasterInfo.pixelType});let{functionArguments:n}=this,i=t?.stretchCutoff??this.cutOffs??(0,qt.DP)(n.toJSON(),{rasterInfo:this.sourceRasterInfos[0],pixelBlock:r}),o=n.useGamma?n.gamma:null;return(0,qt._N)(r,{...i,gamma:o,outputPixelType:this.outputPixelType})}_getWebGLParameters(){let{outputMin:e=0,outputMax:t=255,gamma:r,useGamma:s}=this.functionArguments,n=this.rasterInfo.bandCount>=2?3:1,i=s&&r?.length?(0,qt.Nh)(n,r):[1,1,1],{minCutOff:o,maxCutOff:a}=this.cutOffs??{minCutOff:[0,0,0],maxCutOff:[255,255,255]};1===o.length&&(o[1]=o[2]=o[0],a[1]=a[2]=a[0]);let u=a.map((r,s)=>(t-e)/(a[s]-o[s])),p=(0,l.zw)(this.outputPixelType);return{bandCount:n,minOutput:e,maxOutput:t,minCutOff:o,maxCutOff:a,factor:u,useGamma:s,gamma:s&&r?[r[0],r[1]??r[0],r[2]??r[0]]:[1,1,1],gammaCorrection:s?[i[0],i[1]??i[0],i[2]??i[0]]:[1,1,1],stretchType:this.functionArguments.stretchType,isOutputRounded:p,type:"stretch"}}};(0,o.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],Fs.prototype,"functionName",void 0),(0,o.Cg)([(0,a.MZ)({type:_s,json:{write:!0,name:"rasterFunctionArguments"}})],Fs.prototype,"functionArguments",void 0),(0,o.Cg)([(0,a.MZ)()],Fs.prototype,"rasterArgumentNames",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],Fs.prototype,"lookup",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],Fs.prototype,"cutOffs",void 0),Fs=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.StretchFunction")],Fs);const Bs=Fs;var js;let Zs=js=class extends c{constructor(){super(...arguments),this.attributeTableAsRecordSet=null}clone(){return new js({attributeTableAsRecordSet:(0,i.o8)(this.attributeTableAsRecordSet)})}};(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],Zs.prototype,"attributeTableAsRecordSet",void 0),Zs=js=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.TableFunctionArguments")],Zs);const Gs=Zs;let zs=class extends w{constructor(){super(...arguments),this.functionName="Table",this.functionArguments=null,this.rasterArgumentNames=["raster"],this.isNoopProcess=!0}_bindSourceRasters(){let e=this.sourceRasterInfos[0];if(e.bandCount>1||e.pixelType.startsWith("f"))return{success:!1,supportsGPU:!1,error:"table-function: Source data must be single band and integer pixel type."};let{attributeTableAsRecordSet:t}=this.functionArguments;if(!t)return{success:!1,supportsGPU:!1,error:"table-function: Missing attributeTableAsRecordSet argument."};this.outputPixelType=this._getOutputPixelType(e.pixelType);let r=e.clone();return r.pixelType=this.outputPixelType,r.bandCount=1,"thematic"!==r.dataType&&(r.keyProperties=r.keyProperties?{...r.keyProperties,DataType:"thematic"}:{DataType:"thematic"}),this.rasterInfo=r,{success:!0,supportsGPU:!0}}_processPixels(e){return e.pixelBlocks?.[0]}};(0,o.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],zs.prototype,"functionName",void 0),(0,o.Cg)([(0,a.MZ)({type:Gs,json:{write:!0,name:"rasterFunctionArguments"}})],zs.prototype,"functionArguments",void 0),(0,o.Cg)([(0,a.MZ)()],zs.prototype,"rasterArgumentNames",void 0),(0,o.Cg)([(0,a.MZ)()],zs.prototype,"isNoopProcess",void 0),zs=(0,o.Cg)([(0,a.$K)("esri.layers.raster.functions.TableFunction")],zs);const Os=zs,Es=new Map;function Ds(e,t){let{rasterFunctionArguments:r}=e;r&&(r.rasters||[r.raster,r.raster2]).forEach(e=>{e&&"number"!=typeof e&&("string"==typeof e?e.startsWith("http")&&(t.includes(e)||t.push(e)):"rasterFunctionArguments"in e&&Ds(e,t))})}function Vs(e,t){t??={};try{if("function"in(e=(0,i.o8)(e))&&"arguments"in e&&e.arguments){let r=qs(e,new Map,t);if(Xs(r),!r.renderingRule)throw new n.A("raster-function-helper","Unsupported raster function json.");e=r.renderingRule}if("rasterFunction"in e){let r=Ws(e=Ls(e),t);return r.isRoot=!0,r}}catch{}throw new n.A("raster-function-helper","unsupported raster function json.")}function Us(e){return!!(e&&"object"==typeof e&&e.rasterFunction&&e.rasterFunctionArguments)}function Ls(e){let{rasterFunction:t,rasterFunctionArguments:r}=e,s={};for(let e in r){let t=r[e],n=e.toLowerCase();if("rasters"===n&&Array.isArray(t))s.rasters=t.map(e=>Us(e)?Ls(e):e);else switch(Us(t)&&(t=Ls(t)),n){case"dra":s.dra=t;break;case"pspower":s.psPower=t;break;case"pszfactor":s.psZFactor=t;break;case"bandids":s.bandIds=t;break;default:s[e[0].toLowerCase()+e.slice(1)]=t}}return"Local"===t&&!s.rasters?.length&&(s.rasters=["$$"]),{...e,rasterFunctionArguments:s}}function Ws(e,t){let{rasterFunction:r,rasterFunctionArguments:s}=e,i=e.outputPixelType?.toLowerCase();if(null==r||!Es.has(r))throw new n.A("raster-function-helper",`unsupported raster function: ${r}`);let o=Es.get(r),a=("function"==typeof o.ctor?o.ctor:o.ctor.default).fromJSON({...e,outputPixelType:i}),{rasterArgumentNames:l}=a,u=[],p=function(e,t){return"rasters"===t[0]&&Array.isArray(e.rasters)?e.rasters:t.map(t=>e[t])}(s,l),c="rasters"===l[0]||l.length>1,h=[];for(let e=0;e<p.length;e++){let r,s=p[e];null==s||"string"==typeof s&&s.startsWith("$")?u.push(t?.raster):"string"==typeof s?t[s]&&u.push(t[s]):"number"!=typeof s&&"rasterFunction"in s&&(r=Ws(s,t),c||(a.functionArguments[l[e]]=r),u.push(r)),c&&h.push(r??s)}if(c&&("rasters"===l[0]?a.functionArguments.rasters=h:l.forEach((e,t)=>{a.functionArguments[e]=h[t]})),t){a.sourceRasters=u;let e=t.raster?.url;e&&(a.mainPrimaryRasterId=e)}return a}function Ks(e,t){if(e&&t)for(let r in e){let s=e[r];s&&"object"==typeof s&&"type"in s&&("RasterFunctionTemplate"===s.type?Ks(s.arguments,t):"RasterFunctionVariable"===s.type&&null!=t[s.name]&&(s.value=t[s.name]))}}function $s(e,t){if(!e||"object"!=typeof e)return e;let{value:r}=e;if(!r||"object"!=typeof r)return e.isDataset?"$$":r;if(Array.isArray(r))return 0===r.length?[]:r.map(e=>e&&"object"==typeof e&&"RasterFunctionVariable"===e.type?$s(e,t):e);if("value"in r&&["number","string","boolean"].includes(typeof r.value))return r.value;if(e.isDataset&&"Scalar"!==r.type)return"$$";if(!("type"in r))return r;let s=r;switch(r.type){case"Scalar":s=r.value;break;case"AlgorithmicColorRamp":s=Hs(r);break;case"MultiPartColorRamp":s={type:"multipart",colorRamps:r.ArrayOfColorRamp.map(Hs)};break;case"ArgumentArray":if(r.elements?.length&&"RasterStatistics"!==r.elements[0].type){let e=[];for(let s=0;s<r.elements.length;s++){let i=r.elements[s],{type:o}=i;if(o)if("RasterFunctionTemplate"===o){let{renderingRule:r}=qs(i,t);e.push(r),null!=i._object_id&&t.set(i._object_id,r)}else{if("RasterFunctionVariable"!==o)throw new n.A("raster-function-helper","unsupported raster function json.");{let r=$s(i,t);e.push(r),null!=i._object_id&&t.set(i._object_id,r)}}else e.push(i)}s=e}else s=r.elements}return null!=r._object_id&&t.set(r._object_id,s),s}function Hs(e){let t=e.algorithm??"esriHSVAlgorithm",{FromColor:r,ToColor:n}=e;if(!Array.isArray(r)){let{r:e,g:t,b:n}=(0,s.$)({h:r.Hue,s:r.Saturation,v:r.Value});r=[e,t,n,r.AlphaValue]}if(!Array.isArray(n)){let{r:e,g:t,b:r}=(0,s.$)({h:n.Hue,s:n.Saturation,v:n.Value});n=[e,t,r,n.AlphaValue]}return{type:"algorithmic",algorithm:t,fromColor:r,toColor:n}}function qs(e,t,r){r&&Ks(e,r);let s={renderingRule:{},templates:t};return Js(e,s),s}function Js(e,t){if(!e||!t.renderingRule)return;let{renderingRule:r,templates:s}=t,{function:n,arguments:i,_object_id:o}=e;if(!n||!i)return;null!=o&&s.set(o,r),r.rasterFunction=n.type.replace("Function",""),r.outputPixelType=n.pixelType;let a={};r.rasterFunctionArguments=a;for(let e in i){if("type"===e||"object_id"===e||"_object_ref_id"===e)continue;let t=i[e];!t||"object"!=typeof t||!("type"in t)||"RasterFunctionTemplate"!==t.type&&"RasterFunctionVariable"!==t.type?a[e]=t:("RasterFunctionVariable"===t.type?a[e]=$s(t,s):(r.rasterFunctionArguments[e]={},Js(t,{renderingRule:r.rasterFunctionArguments[e],templates:s})),null!=t._object_id&&s.set(t._object_id,a[e]))}switch(a.DEM&&!a.Raster&&(a.Raster=a.DEM,delete a.DEM),r.rasterFunction){case"Stretch":!function(e){e.Statistics?.length&&"object"==typeof e.Statistics&&(e.Statistics=e.Statistics.map(e=>[e.min,e.max,e.mean,e.standardDeviation])),null!=e.NumberOfStandardDeviation&&(e.NumberOfStandardDeviations=e.NumberOfStandardDeviation,delete e.NumberOfStandardDeviation)}(a);break;case"Colormap":!function(e){"randomcolorramp"===e.ColorRamp?.type?.toLowerCase()&&(delete e.ColorRamp,e.ColormapName="Random"),0===e.ColorSchemeType&&delete e.ColorRamp}(a);break;case"Convolution":!function(e){null!=e.ConvolutionType&&(e.Type=e.ConvolutionType,delete e.ConvolutionType)}(a);break;case"Mask":!function(e){e.NoDataValues?.length&&"string"==typeof e.NoDataValues[0]&&(e.NoDataValues=e.NoDataValues.filter(e=>""!==e).map(e=>Number(e)))}(a)}}function Xs(e){let{renderingRule:t,templates:r}=e;if("object"!=typeof t||!t?.rasterFunctionArguments||!r.size)return;let{rasterFunctionArguments:s}=t;for(let e in s){let t=s[e],i="_object_ref_id"===e?t:t&&"object"==typeof t&&"_object_ref_id"in t?t._object_ref_id:null;if(null!=i){if(!r.has(i))throw new n.A("raster-function-helper",`unsupported raster function json. _object_ref_id: ${i} does not exist`);let t=r.get(i);"_object_ref_id"===e?t&&"object"==typeof t&&Object.assign(s,t):s[e]=t}else t&&"object"==typeof t&&(t.rasterFunctionArguments&&Xs({renderingRule:t,templates:r}),Array.isArray(t)&&t.forEach((e,s)=>{if(e&&"object"==typeof e)if(null!=e._object_ref_id){if(!r.has(e._object_ref_id))throw new n.A("raster-function-helper",`unsupported raster function json. _object_ref_id: ${t} does not exist`);let o=r.get(i);o&&"object"==typeof o?Object.assign(e,o):t[s]=o}else Xs({renderingRule:e,templates:r})}))}}Es.set("Arithmetic",{desc:"Arithmetic Function",ctor:Fe,rasterArgumentNames:["rasters"]}),Es.set("Aspect",{desc:"Aspect Function",ctor:Oe,rasterArgumentNames:["raster"]}),Es.set("BandArithmetic",{desc:"Band Arithmetic Function",ctor:st,rasterArgumentNames:["raster"]}),Es.set("Colormap",{desc:"Colormap Function",ctor:Mt,rasterArgumentNames:["raster"]}),Es.set("ColormapToRGB",{desc:"ColormapToRGB Function",ctor:St,rasterArgumentNames:["raster"]}),Es.set("CompositeBand",{desc:"CompositeBand Function",ctor:Gt,rasterArgumentNames:["rasters"]}),Es.set("ComputeChange",{desc:"ComputeChange Function",ctor:Wt,rasterArgumentNames:["rasters"]}),Es.set("Convolution",{desc:"Convolution Function",ctor:or,rasterArgumentNames:["raster"]}),Es.set("ContrastBrightness",{desc:"Contrast Brightness Function",ctor:Xt,rasterArgumentNames:["raster"]}),Es.set("ExtractBand",{desc:"ExtractBand Function",ctor:yr,rasterArgumentNames:["raster"]}),Es.set("Curvature",{desc:"Curvature Function",ctor:hr,rasterArgumentNames:["raster"]}),Es.set("Hillshade",{desc:"Hillshade Function",ctor:kr,rasterArgumentNames:["raster"]}),Es.set("ShadedRelief",{desc:"ShadedRelief Function",ctor:rs,rasterArgumentNames:["raster"]}),Es.set("Grayscale",{desc:"Grayscale Function",ctor:Cr,rasterArgumentNames:["raster"]}),Es.set("Clip",{desc:"Clip Function",ctor:mt,rasterArgumentNames:["raster"]}),Es.set("Local",{desc:"Local Function",ctor:jr,rasterArgumentNames:["rasters"]}),Es.set("Mask",{desc:"Mask Function",ctor:Dr,rasterArgumentNames:["raster"]}),Es.set("NDVI",{desc:"NDVI Function",ctor:Kr,rasterArgumentNames:["raster"]}),Es.set("Remap",{desc:"Remap Function",ctor:Xr,rasterArgumentNames:["raster"]}),Es.set("Slope",{desc:"Slope Function",ctor:ls,rasterArgumentNames:["raster"]}),Es.set("SpectralConversion",{desc:"Spectral Conversion",ctor:ms,rasterArgumentNames:["raster"]}),Es.set("Statistics",{desc:"Focal Statistics Function",ctor:Cs,rasterArgumentNames:["raster"]}),Es.set("StatisticsHistogram",{desc:"Statistics Histogram Function",ctor:Ns,rasterArgumentNames:["raster"]}),Es.set("Stretch",{desc:"Stretch Function",ctor:Bs,rasterArgumentNames:["raster"]}),Es.set("Table",{desc:"Attribute Table Function",ctor:Os,rasterArgumentNames:["raster"]})},37373(e,t,r){r.d(t,{DO:()=>z,FT:()=>B,Hh:()=>b,OM:()=>G,Ps:()=>V,Wo:()=>C,_I:()=>P,_l:()=>S,l0:()=>O,t$:()=>U,uk:()=>_});var s=r(4576),n=r(49186),i=r(86211),o=r(5443),a=r(83290),l=r(86738),u=r(39829),p=r(99917),c=r(16930),h=r(21325);function m(){if(!v)throw new n.A("rasterprojectionhelper-project","projection operator is not loaded")}const f=(e,t,r,s=0)=>{if(1===r[0])return[0,0];let n=1,i=-1,o=1,a=-1;for(let t=0;t<e.length;t+=2)isNaN(e[t])||(n=n>e[t]?e[t]:n,i=i>e[t]?i:e[t],o=o>e[t+1]?e[t+1]:o,a=a>e[t+1]?a:e[t+1]);let{cols:l,rows:u}=t,p=(i-n)/l/r[0],c=(a-o)/u/r[1],h=2*s,m=0,f=!1,g=[0,0];for(let t=0;t<l-3;t++){for(let r=0;r<u-3;r++){let s=t*u*2+2*r,n=(e[s]+e[s+4]+e[s+4*u]+e[s+4*u+4])/4,i=(e[s+1]+e[s+5]+e[s+4*u+1]+e[s+4*u+5])/4,o=Math.abs((n-e[s+2*u+2])/p),a=Math.abs((i-e[s+2*u+3])/c);if(o+a>m&&(m=o+a,g=[o,a]),h&&m>h){f=!0;break}}if(f)break}return g},g={3395:20037508.342789244,3410:17334193.943686873,3857:20037508.342788905,3975:17367530.445161372,4087:20037508.342789244,4088:20015108.787169147,6933:17367530.445161372,32662:20037508.342789244,53001:20015086.79602057,53002:10007543.39801029,53003:20015086.79602057,53004:20015086.79602057,53016:14152803.599503474,53017:17333573.624304302,53034:20015086.79602057,53079:20015114.352186374,53080:20015114.352186374,54001:20037508.342789244,54002:10018754.171394624,54003:20037508.342789244,54004:20037508.342789244,54016:14168658.027268292,54017:17367530.44516137,54034:20037508.342789244,54079:20037508.342789244,54080:20037508.342789244,54100:20037508.342789244,54101:20037508.342789244},d=new Map,y=new Map;let x,w,A,v=!1;async function b(){return x||(x=Promise.withResolvers(),w=await r.e(3276).then(()=>r(83276)),A=await r.e(2158).then(()=>r(12158)),w.projectIsLoaded()||await w.projectLoad(),A.isLoaded()||await A.load(),v=!0,x.resolve()),x.promise}function C(e,t,r,s){let n=e.spatialReference;if(!n||!t||n.equals(t))return e;m();let a=r.center,l=new o.A({xmin:a.x-e.x/2,xmax:a.x+e.x/2,ymin:a.y-e.y/2,ymax:a.y+e.y/2,spatialReference:n}),u=w.projectExecute(l,t,{geographicTransformation:s}),p=B(t);return null==u||null!=p&&u.width>=p?function(e,t,r){let s=(0,i.GA)(t)/(0,i.GA)(r);return{x:e.x*s,y:e.y*s}}(e,n,t):{x:u.width,y:u.height}}function M(e,t=.01){return(0,i.GA)(e)?t/(0,i.GA)(e):0}function P(e,t,r,s=!0){let n=e.spatialReference;if(n.equals(t))return e;m();let i=w.projectExecute(e,t,{geographicTransformation:r});return!s||!i||T([e],[i],n,t),i}function T(e,t,r,s){let n=j(r,!0),i=j(s,!0),o=M(r,500),a=M(s,500);if(o&&null!=n&&null!=i)for(let r=0;r<e.length;r++){let s=t[r];if(!s)continue;let{x:l}=e[r],{x:u}=s;u>=i[1]-a&&Math.abs(l-n[0])<o?s.x-=i[1]-i[0]:u<=i[0]+a&&Math.abs(l-n[1])<o&&(s.x+=i[1]-i[0])}}function R(e){let{inSR:t,outSR:r,preferPE:s}=e;if(t.equals(r)){let{points:t}=k(e,null);return t}return t.isWebMercator&&r.isWGS84||t.isWGS84&&r.isWebMercator?function(e){let{cols:t,rows:r,xres:s,yres:n,usePixelCenter:i,inSR:o,outSR:a}=e,{xmin:u,ymax:c}=e;i&&(u+=s/2,c-=n/2);let h=[],m=[],f=Math.max(t,r);for(let e=0;e<f;e++){let i=u+s*Math.min(t,e),f=c-n*Math.min(r,e),g=(0,p.projectWithoutEngine)(new l.A({x:i,y:f,spatialReference:o}),o,a);e<=t&&h.push(g.x),e<=r&&m.push(g.y)}let g=[];for(let e=0;e<t;e++)for(let t=0;t<r;t++)g.push([h[e],m[t]]);return g}(e):s&&(t.isGeographic||null!=N(t))?function(e){let{inSR:t,outSR:r,datumTransformation:s}=e,{points:n,mask:i}=k(e,N(t));if(!t.isGeographic){let e=t.wkid?a.P.coordsys(t.wkid):a.P.fromString(t.isGeographic?a.a.PE_TYPE_GEOGCS:a.a.PE_TYPE_PROJCS,t.wkt2||t.wkt);a.c.projToGeog(e,n.length,n)}if(null!=s&&s.steps.length){let e,t=179.9955;if(r.isGeographic&&(e=n.map(([e])=>e>t?1:e<-179.9955?-1:0)),s.steps.forEach(e=>{let t=e.wkid?a.P.geogtran(e.wkid):a.P.fromString(a.a.PE_TYPE_GEOGTRAN,e.wkt);a.d.geogToGeog(t,n.length,n,null,e.isInverse?a.a.PE_TRANSFORM_2_TO_1:a.a.PE_TRANSFORM_1_TO_2)}),e)for(let r=0;r<n.length;r++){let s=e[r],i=n[r][0],o=i>t?1:i<-179.9955?-1:0;s&&o&&s!==o&&(n[r][0]=s>0?i+360:i-360)}}if(!r.isGeographic){let e=N(r,!0);!function(e,t){let[r,s]=t;for(let t=0;t<e.length;t++){let n=e[t][1];(n<r||n>s)&&(e[t]=[NaN,NaN])}}(n,null!=e&&e.isEnvelope?[e.bbox[1],e.bbox[3]]:[-90,90]);let t=r.wkid?a.P.coordsys(r.wkid):a.P.fromString(r.isGeographic?a.a.PE_TYPE_GEOGCS:a.a.PE_TYPE_PROJCS,r.wkt2||r.wkt);a.c.geogToProj(t,n.length,n)}let o=n;if(i&&n.length!==i.length){o=[];for(let e=0,t=0;e<i.length;e++)i[e]?o.push(n[t++]):o.push([NaN,NaN])}return o}(e):function(e){let{points:t}=k(e,null),{inSR:r,outSR:s,datumTransformation:n}=e,i=t.map(e=>new l.A({x:e[0],y:e[1],spatialReference:r})),o=w.projectExecuteMany(i,s,{geographicTransformation:n});return n&&T(i,o,r,s),o.map(e=>e?[e.x,e.y]:[NaN,NaN])}(e)}function N(e,t=!1){let r=e.wkid||e.wkt2||e.wkt;if(!r||e.isGeographic)return null;if(r=String(r),d.has(r)){let e=d.get(r);return t?e?.gcs:e?.pcs}let s=e.wkid?a.P.coordsys(e.wkid):a.P.fromString(e.isGeographic?a.a.PE_TYPE_GEOGCS:a.a.PE_TYPE_PROJCS,e.wkt2||e.wkt),n=I(s,M(e,1e-4)),i=I(s,0,!0);return d.set(r,{pcs:n,gcs:i}),t?i:n}function I(e,t=0,r=!1){let s=a.b.generate(e),n=r?e.horizonGcsGenerate():e.horizonPcsGenerate();if(!s||!n?.length)return null;let i=!1,o=n.find(e=>1===e.getInclusive()&&1===e.getKind());if(!o){if(o=n.find(e=>1===e.getInclusive()&&0===e.getKind()),!o)return null;i=!0}let l=r?0:+(2===s.getNorthPoleLocation())|(2===s.getSouthPoleLocation()?2:0),u=s.isPannableRectangle(),p=o.getCoord();if(i)return{isEnvelope:i,isPannable:u,vertices:p,coef:null,bbox:[p[0][0]-t,p[0][1]-t,p[1][0]+t,p[1][1]+t],poleLocation:l};let c=0,h=[],[m,f]=p[0],[g,d]=p[0];for(let e=0,t=p.length;e<t;e++){c++,c===t&&(c=0);let[r,s]=p[e],[n,i]=p[c];if(i===s)h.push([r,n,s,i,2]);else{let e=(n-r)/(i-s||1e-4),t=r-e*s;s<i?h.push([e,t,s,i,0]):h.push([e,t,i,s,1])}m=m<r?m:r,f=f<s?f:s,g=g>r?g:r,d=d>s?d:s}return{isEnvelope:!1,isPannable:u,vertices:p,coef:h,bbox:[m,f,g,d],poleLocation:l}}function k(e,t){let r=[],{cols:s,rows:n,xres:i,yres:o,usePixelCenter:a}=e,{xmin:l,ymax:u}=e;if(a&&(l+=i/2,u-=o/2),null==t){for(let e=0;e<s;e++)for(let t=0;t<n;t++)r.push([l+i*e,u-o*t]);return{points:r}}let p=new Uint8Array(s*n);if(t.isEnvelope){let{isPannable:e,bbox:[a,c,h,m]}=t;for(let t=0,f=0;t<s;t++){let s=l+i*t,g=e||s>=a&&s<=h;for(let e=0;e<n;e++,f++){let t=u-o*e;g&&t>=c&&t<=m&&(r.push([s,t]),p[f]=1)}}return{points:r,mask:p}}let c=t.coef,h=[];for(let e=0;e<n;e++){let t=u-o*e,r=[],s=[];for(let e=0;e<c.length;e++){let[n,i,o,a,l]=c[e];if(t===o&&o===a)r.push(n),r.push(i),s.push(2),s.push(2);else if(t>=o&&t<=a){let e=n*t+i;r.push(e),s.push(l)}}let n=r;if(r.length>2){let e=2===s[0]?0:s[0],t=r[0];n=[];for(let i=1;i<s.length;i++)(2!==s[i]||i===s.length-1)&&(s[i]!==e&&(n.push(0===e?Math.min(t,r[i-1]):Math.max(t,r[i-1])),e=s[i],t=r[i]),i===s.length-1&&n.push(0===s[i]?Math.min(t,r[i]):Math.max(t,r[i])));n.sort((e,t)=>e-t)}else r[0]>r[1]&&(n=[r[1],r[0]]);h.push(n)}for(let e=0,t=0;e<s;e++){let s=l+i*e;for(let e=0;e<n;e++,t++){let n=u-o*e,i=h[e];if(2===i.length)s>=i[0]&&s<=i[1]&&(r.push([s,n]),p[t]=1);else if(i.length>2){let e=!1;for(let t=0;t<i.length;t+=2)if(s>=i[t]&&s<=i[t+1]){e=!0;break}e&&(r.push([s,n]),p[t]=1)}}}return{points:r,mask:p}}function S(e,t,r=null,n=!0){let i=e.spatialReference;if(i.equals(t)||!t)return e;let a=G(e),l=B(i,!0),p=B(t);if(0===a||null==l||null==p){let s=F(e,t,r,n);if(s&&null==l&&null!=p&&Math.abs(s.width-p)<M(t)&&w.projectIsLoaded()){let r=N(i);if(null!=r&&0===r.poleLocation&&e.width<(r.bbox[2]-r.bbox[0])/2)return function(e,t){let r=B(t);if(null==r)return null;let{xmin:s,ymin:n,xmax:i,ymax:a}=e,l=e.spatialReference,p=new u.A({spatialReference:l,rings:[[[s,n],[i,n],[i,a],[s,a],[s,n]]]}),c=w.projectExecute(p,t);if(2!==c.rings.length||!c.rings[0].length||!c.rings[1].length)return null;let{rings:h}=c,m=M(l),f=new o.A({spatialReference:t});for(let e=0;e<2;e++){s=i=h[e][0][0],n=a=h[e][0][1];for(let t=0;t<h[e].length;t++)s=s>h[e][t][0]?h[e][t][0]:s,i=i<h[e][t][0]?h[e][t][0]:i,n=n>h[e][t][1]?h[e][t][1]:n,a=a<h[e][t][1]?h[e][t][1]:a;if(0===e)f.ymin=n,f.ymax=a,f.xmin=s,f.xmax=i;else if(f.ymin=Math.min(f.ymin,n),f.ymax=Math.max(f.ymax,a),Math.abs(i-r/2)<m)f.xmin=s,f.xmax+=r;else{if(!(Math.abs(s+r/2)<m))return null;f.xmax=i+r}}return f}(e,t)||s}return s}let c=e.clone().normalize();if(1===c.length&&e.xmax<l&&e.xmax-l/2>M(i)){let{xmin:t,xmax:r}=e;for(let s=0;s<=a;s++){let n=0===s?t:-l/2,u=s===a?r-l*s:l/2;c[s]=new o.A({xmin:n,xmax:u,ymin:e.ymin,ymax:e.ymax,spatialReference:i})}}let h=c.map(e=>F(e,t,r,n)).filter(s.Ru);return 0===h.length?null:function(e,t){let r=B(e[0].spatialReference);if(e.length<2||null==r||(t??=M(e[0].spatialReference),1===(e=e.filter(e=>e.width>t)).length))return e[0];let{xmin:s,xmax:n,ymin:i,ymax:a}=e[0];for(let t=1;t<e.length;t++){let s=e[t];n=s.xmax+r*t,i=Math.min(i,s.ymin),a=Math.max(a,s.ymax)}return new o.A({xmin:s,xmax:n,ymin:i,ymax:a,spatialReference:e[0].spatialReference})}(h)}function _(e,t,r){if("extent"===e.type){let{xmin:t,ymin:r,xmax:s,ymax:n,spatialReference:i}=e;e=new u.A({rings:[[[t,n],[s,n],[s,r],[t,r],[t,n]]],spatialReference:i})}return e.spatialReference.equals(t)?e:(m(),w.projectExecute(e,t,{geographicTransformation:r}))}function F(e,t,r,s=!0,n=!0){let i=e.spatialReference;if(i.equals(t)||!t)return e;m();let o=w.projectExecute(e,t,{geographicTransformation:r});if(n&&t.isWebMercator&&o&&(o.ymax=Math.min(20037508.342787,o.ymax),o.ymin=Math.max(-20037508.342787,o.ymin),o.ymin>=o.ymax))return null;if(!s||!o)return o;let a=j(i,!0),u=j(t,!0);if(null==a||null==u)return o;let p=M(i,.001),c=M(i,500),h=M(t,.001);if(Math.abs(o.xmin-u[0])<h&&Math.abs(o.xmax-u[1])<h){let s=Math.abs(e.xmin-a[0]),n=Math.abs(a[1]-e.xmax);if(s<p&&n>c){o.xmin=u[0];let s=[];s.push(new l.A({x:e.xmax,y:e.ymin,spatialReference:i})),s.push(new l.A({x:e.xmax,y:(e.ymin+e.ymax)/2,spatialReference:i})),s.push(new l.A({x:e.xmax,y:e.ymax,spatialReference:i}));let n=s.map(e=>P(e,t,r)).filter(e=>!isNaN(e?.x)).map(e=>e.x);o.xmax=Math.max.apply(null,n)}if(n<p&&s>c){o.xmax=u[1];let s=[];s.push(new l.A({x:e.xmin,y:e.ymin,spatialReference:i})),s.push(new l.A({x:e.xmin,y:(e.ymin+e.ymax)/2,spatialReference:i})),s.push(new l.A({x:e.xmin,y:e.ymax,spatialReference:i}));let n=s.map(e=>P(e,t,r)).filter(e=>!isNaN(e?.x)).map(e=>e.x);o.xmin=Math.min.apply(null,n)}}else{let e=M(t,.001);Math.abs(o.xmin-u[0])<e&&(o.xmin=u[0]),Math.abs(o.xmax-u[1])<e&&(o.xmax=u[1])}return o}function B(e,t=!1){if(!e)return null;let r=t?20037508.342787:20037508.342788905;return e.isWebMercator?2*r:e.wkid&&e.isGeographic?360:2*g[e.wkid]||null}function j(e,t=!1){if(e.isGeographic)return[-180,180];let r=B(e,t);return r?[-r/2,r/2]:null}function Z(e,t,r,s){let n=(e-t)/r;return n-Math.floor(n)===0?s&&--n:n=Math.floor(n),n}function G(e,t=!1){let r=B(e.spatialReference);if(null==r)return 0;let s=t?0:-r/2,n=M(e.spatialReference),i=!t&&Math.abs(e.xmax-r/2)<n?r/2:e.xmax,o=!t&&Math.abs(e.xmin+r/2)<n?-r/2:e.xmin;return Z(i,s,r,!0)-Z(o,s,r,!1)}function z(e){let t=e.storageInfo.origin.x,r=B(e.spatialReference,!0);if(null==r)return{originX:t,halfWorldWidth:null,pyramidsInfo:null};let s=r/2,{nativePixelSize:n,storageInfo:i,extent:o}=e,{maximumPyramidLevel:a,blockWidth:l,pyramidScalingFactor:u}=i,p=n.x,c=[],h=null!=e.transform&&"gcs-shift"===e.transform.type,m=Math.max(0,t+(h?0:s));for(let e=0;e<=a;e++){let e=(o.xmax-t)/p/l,s=e-Math.floor(e)===0?e:Math.ceil(e),n=Math.round(m/p),i=Math.round(r/p)-n,a=Math.ceil(i/l),h=Math.floor(n/l),f=n%l,g=(l-i%l)%l;c.push({resolutionX:p,blockWidth:l,datasetColumnCount:s,worldColumnCountFromOrigin:a,leftMargin:f,rightPadding:g,originColumnOffset:h}),p*=u}return{originX:t,halfWorldWidth:s,pyramidsInfo:c,hasGCSSShiftTransform:h}}function O(e){let t=e.isAdaptive&&null==e.spacing,r=e.spacing||[32,32],s=E(e),n={cols:s.size[0]+1,rows:s.size[1]+1},i=s.outofBoundPointCount>0&&s.outofBoundPointCount<s.offsets.length/2,o=s.outofBoundPointCount===s.offsets.length/2||t&&i?[0,0]:f(s.offsets,n,r,4),l=(o[0]+o[1])/2,u=e.projectedExtent.spatialReference,p=e.srcBufferExtent.spatialReference;if(t&&(i||l>4)&&(u.isGeographic||N(u),r=[4,4],s=E({...e,spacing:r}),n={cols:s.size[0]+1,rows:s.size[1]+1},o=f(s.offsets,n,r,4)),s.error=o,r[0]>1&&(s.coefficients=D(s.offsets,n,i)),e.includeGCSGrid&&!u.isGeographic&&!u.isWebMercator)if(p.isGeographic)s.gcsGrid={offsets:s.offsets,coefficients:s.coefficients,spacing:r};else{let t=N(u);if(null!=t&&!t.isEnvelope){let t=function(e){if(!e||e.isGeographic)return e;let t,r=String(e.wkid||e.wkt2||e.wkt);return y.has(r)?t=y.get(r):(t=(e.wkid?a.P.coordsys(e.wkid):a.P.fromString(a.a.PE_TYPE_PROJCS,e.wkt2||e.wkt)).getGeogcs().getCode(),y.set(r,t)),new c.A({wkid:t})}(u),o=S(e.projectedExtent,t),{offsets:l}=E({...e,srcBufferExtent:o,spacing:r}),p=D(l,n,i);s.gcsGrid={offsets:l,coefficients:p,spacing:r}}}return s}function E(e){let{projectedExtent:t,srcBufferExtent:r,pixelSize:s,datumTransformation:n,rasterTransform:i}=e,o=t.spatialReference,a=r.spatialReference;m();let u,{xmin:p,ymin:c,xmax:h,ymax:f}=t,g=B(a),d=null!=g&&(e.hasWrapAround||"gcs-shift"===i?.type),y=e.spacing||[32,32],x=y[0]*s.x,w=y[1]*s.y,A=1===y[0],v=Math.ceil((h-p)/x-.1/y[0])+ +!A,b=Math.ceil((f-c)/w-.1/y[1])+ +!A,C=R({cols:v,rows:b,xmin:p,ymax:f,xres:x,yres:w,inSR:o,outSR:a,datumTransformation:n,preferPE:y[0]<=4,usePixelCenter:A}),P=[],T=0,I=A?-1:NaN,{xmin:k,xmax:S,ymax:_,width:F,height:j}=r,Z=M(a,500),G=null!=g&&k>0&&S>g/2,z=N(o),O=null!=z&&z.poleLocation>0;for(let e=0;e<v;e++){let t=[];for(let r=0;r<b;r++){let s=C[e*b+r];if(d&&s[0]>S&&s[0]>g/2-Z?s[0]-=g:d&&0===e&&s[0]<0&&G&&!i&&(s[0]+=g),!s||isNaN(s[0])||isNaN(s[1]))P.push(I),P.push(I),t.push(null),T++;else{if(i){let e=i.inverseTransform(new l.A({x:s[0],y:s[1],spatialReference:a}));s=[e.x,e.y]}t.push(s),e>0&&d&&u[r]&&s[0]<u[r][0]&&(s[0]+=g,O&&s[0]>S&&s[0]>g&&(s[0]-=g)),P.push((s[0]-k)/F),P.push((_-s[1])/j)}}u=t}return{offsets:P,error:null,coefficients:null,outofBoundPointCount:T,spacing:y,size:A?[v,b]:[v-1,b-1]}}function D(e,t,r){let{cols:s,rows:n}=t,i=new Float32Array((s-1)*(n-1)*2*6),o=new Float32Array([-0,-1,1,-1,1,-0,1,-0,-0]),a=new Float32Array([-1,1,0,0,-1,1,1,0,0]);for(let t=0;t<s-1;t++){for(let r=0;r<n-1;r++){let l=t*n*2+2*r,u=e[l],p=e[l+1],c=e[l+2],h=e[l+3];l+=2*n;let m=e[l],f=e[l+1],g=e[l+2],d=e[l+3],y=0,x=12*(r*(s-1)+t);for(let e=0;e<3;e++)i[x++]=o[y++]*u+o[y++]*c+o[y++]*g;y=0;for(let e=0;e<3;e++)i[x++]=o[y++]*p+o[y++]*h+o[y++]*d;y=0;for(let e=0;e<3;e++)i[x++]=a[y++]*u+a[y++]*m+a[y++]*g;y=0;for(let e=0;e<3;e++)i[x++]=a[y++]*p+a[y++]*f+a[y++]*d}if(r)for(let e=0;e<i.length;e++)isNaN(i[e])&&(i[e]=-1)}return i}function V(e){let{spatialReference:t}=e,r=(0,h.Vp)(t);if(!r)return e;let[s,n]=r.valid,i=n-s,a=0;if(e.xmin<s){let t=s-e.xmin;a=Math.ceil(t/i)}else if(e.xmin>n){let t=e.xmin-n;a=-Math.ceil(t/i)}return new o.A({spatialReference:e.spatialReference,xmin:e.xmin+a*i,ymin:e.ymin,xmax:e.xmax+a*i,ymax:e.ymax})}function U(e,t,r){let{storageInfo:s,pixelSize:n}=t,o=0,a=!1,{pyramidResolutions:u}=s,p="mixed"===s.tileInfo.format?.toLowerCase()?Math.max(1,Math.min(3,s.tileInfo.dpi/96)):1,c=(e.x+e.y)/2/p;if(null!=u&&u.length){let e=u[u.length-1],s=(e.x+e.y)/2,p=(n.x+n.y)/2;if(c<=p)o=0;else if(c>=s)o=u.length,a=c/s>8;else{let e,t=p;for(let s=1;s<=u.length;s++){if(e=(u[s-1].x+u[s-1].y)/2,c<=e){c===e?o=s:"down"===r?(o=s-1,a=c/t>8):o="up"===r||c-t>e-c||c/t>2?s:s-1;break}t=e}}let h=0===o?n:u[o-1];return a&&Math.min(h.x,h.y)*(0,i.GA)(t.spatialReference)>19567&&(a=!1),{pyramidLevel:o,pyramidResolution:new l.A({x:h.x,y:h.y,spatialReference:t.spatialReference}),excessiveReading:a}}let h=Math.log(e.x/n.x)/Math.LN2,m=Math.log(e.y/n.y)/Math.LN2,f=t.storageInfo.maximumPyramidLevel||0;o="down"===r?Math.floor(Math.min(h,m)):"up"===r?Math.ceil(Math.max(h,m)):Math.round((h+m)/2),o<0?o=0:o>f&&(a=o>f+3,o=f);let g=2**o;return{pyramidLevel:o,pyramidResolution:new l.A({x:g*t.nativePixelSize.x,y:g*t.nativePixelSize.y,spatialReference:t.spatialReference}),excessiveReading:a}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4144,8377],{61691(e,t,n){n.d(t,{G:()=>r});class r{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}},76061(e,t,n){n.d(t,{S:()=>o});var r=n(61691);class o extends r.G{m_aGeoms;m_iGeom=-1;constructor(e){super(),this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){let e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},4144(e,t,n){n.r(t),n.d(t,{clipToSpatialReference:()=>u,execute:()=>c,executeMany:()=>s,foldInto360Range:()=>f,foldInto360RangeGeodetic:()=>m,isLoaded:()=>a,load:()=>l,normalizeGeometry:()=>p,supportsCurves:()=>d,transform:()=>y});var r=n(76061),o=n(83290);let i;function a(){return!!i&&(0,o.i)()}async function l(){if(!a()){let[e,t]=await Promise.all([Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(9192)]).then(()=>n(9192)),Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(5756)]).then(()=>n(15756)).then(({injectPe:e})=>e),(0,o.l)()]);i=new e.OperatorProject,t(o.p)}}function u(e,t,n){return i.clipToSpatialReference(e,t,null,n)}function c(e,t){return i.execute(e,t,null)}function s(e,t){let n=i.executeMany(new r.S(e),t,null);return Array.from(n)}function f(e,t){return i.foldInto360Range(e,t)}function m(e,t,n){return i.foldInto360RangeGeodetic(e,t,n)}function p(e,t,n){return i.normalizeGeometry(e,t,n)}function d(){return i.supportsCurves()}function y(e,t,n,r,o){return i.transform(e,t,n,r,o)}},8377(e,t,n){n.r(t),n.d(t,{execute:()=>G,executeMany:()=>j,isLoaded:()=>d,load:()=>g,projectExecute:()=>h,projectExecuteMany:()=>x,projectIsLoaded:()=>p,projectLoad:()=>y});var r=n(4144),o=n(85036),i=n(17499),a=n(60408);let l,u,c,s,f,m;function p(){return!!l&&(0,r.isLoaded)()}function d(){return(0,o.Q)("json.projectOperator","isLoaded","projectIsLoaded"),p()}async function y(){if(!p()){let[e,t]=await Promise.all([Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(3299),n.e(7992)]).then(()=>n(83299)),Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(6129)]).then(()=>n(86129)),(0,r.load)()]);l=e.fromGeometries,u=e.fromGeometry,c=e.fromSpatialReference,s=e.toGeometry,f=e.getSpatialReference,m=t.createProjectionTransformation}}function g(){return(0,o.Q)("json.projectOperator","load","projectLoad"),y()}function h(e,t,n){let o=u(e),l=c(t),f=m(o.getSpatialReference(),l,n),p=s((0,r.execute)(o.getGeometry(),f),l);return!n?.zConversionDisabled&&p&&!(0,a.uW)(p)&&e.spatialReference&&(0,i.g)([p],e.spatialReference,t),p}function G(e,t,n){return(0,o.Q)("json.projectOperator","execute","projectExecute"),h(e,t,n)}function x(e,t,n){let[o,a]=l(e),u=c(t),p=m(a,u,n),d=(0,r.executeMany)(o,p).map(e=>s(e,u));if(!n?.zConversionDisabled&&d){let n=f(e);n&&(0,i.g)(d,n,t)}return d}function j(e,t,n){return(0,o.Q)("json.projectOperator","executeMany","projectExecuteMany"),x(e,t,n)}},85036(e,t,n){n.d(t,{Q:()=>i});var r=n(51447),o=n(53966);function i(e,t,n){(0,r.io)(o.A.getLogger(`esri.geometry.operators.${e}`),`${t} is deprecated. Refactor using @arcgis/codemod or manually replace usages with ${n} instead.`,{replacement:n,warnOnce:!0})}},17499(e,t,n){n.d(t,{g:()=>i});var r=n(60408),o=n(62815);function i(e,t,n){let i;for(let a of e)if(a&&(0,r.Pv)(a)&&!("vertexAttributes"in a)){if(!i){let e="type"in a?a.type:(0,r.$B)(a);if(i=(0,o.N)(e,t,n),!i)return}i(a)}}},62815(e,t,n){n.d(t,{N:()=>l,d:()=>u});var r=n(86211),o=n(73941),i=n(21325),a=n(52006);function l(e,t,n){let r=u(t,n);if(1!==r)switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,r);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e){if(e.curvePaths)for(let n of e.curvePaths)for(let e of n){let n=(0,a.yP)(e);n.length>2&&(n[2]*=t)}if(e.paths)for(let n of e.paths)for(let e of n)e.length>2&&(e[2]*=t)}}(e,r);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e){if(e.curveRings)for(let n of e.curveRings)for(let e of n){let n=(0,a.yP)(e);n.length>2&&(n[2]*=t)}if(e.rings)for(let n of e.rings)for(let e of n)e.length>2&&(e[2]*=t)}}(e,r);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(let n of e.points)n.length>2&&(n[2]*=t)}(e,r);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,r);default:return}}function u(e,t){return null==e||null==t||(0,i.aI)(e,t)||(0,o.xP)(e)||(0,o.xP)(t)?1:(0,r.G9)(e)/(0,r.G9)(t)}}}]);
|