@arcgis/core 5.2.0-next.167 → 5.2.0-next.168
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Map.d.ts +6 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/057f245d70e57a1bcb46.js +1 -0
- package/assets/esri/core/workers/chunks/{1419bf346978b81b08cc.js → 094eb9677cdebfaa9e1b.js} +1 -1
- package/assets/esri/core/workers/chunks/0d52e1b6d38f2670658c.js +1 -0
- package/assets/esri/core/workers/chunks/0f7455dbe8c2ee464194.js +1 -0
- package/assets/esri/core/workers/chunks/10878932826ddb60fac4.js +1 -0
- package/assets/esri/core/workers/chunks/144bad0c2415c345736a.js +1 -0
- package/assets/esri/core/workers/chunks/{3dddae78286d05eb10fc.js → 181b58bbbbfe4557ab5d.js} +1 -1
- package/assets/esri/core/workers/chunks/1a614bac5db42c6263f8.js +1 -0
- package/assets/esri/core/workers/chunks/{99a0a434ea2162166754.js → 2095f220dc2b8f8f62db.js} +1 -1
- package/assets/esri/core/workers/chunks/{5daa9429808ca31279f2.js → 216a239142dfe1306c6c.js} +1 -1
- package/assets/esri/core/workers/chunks/25c3be410d1c03f8f39d.js +1 -0
- package/assets/esri/core/workers/chunks/294276ed397023dcda44.js +1 -0
- package/assets/esri/core/workers/chunks/2a2a4650dd9b953d317c.js +1 -0
- package/assets/esri/core/workers/chunks/2b6684d057d9ad17ac13.js +1 -0
- package/assets/esri/core/workers/chunks/{ad96132bc89671e595f3.js → 2d3e0e4442dbc6ec6def.js} +1 -1
- package/assets/esri/core/workers/chunks/2d83ba260dd6bbe38206.js +1 -0
- package/assets/esri/core/workers/chunks/{69d5f8ef78b9b8b3d33d.js → 3286cf2afeb7f48564d9.js} +1 -1
- package/assets/esri/core/workers/chunks/3321cb0d4cb68b2ec8bf.js +1 -0
- package/assets/esri/core/workers/chunks/{e99c8c71c757bb161d87.js → 3636c2ac9b77950776d6.js} +1 -1
- package/assets/esri/core/workers/chunks/367b2f25cfe37847a48d.js +1 -0
- package/assets/esri/core/workers/chunks/379ef56f6b32494832a6.js +1 -0
- package/assets/esri/core/workers/chunks/3c881b1adc8a5dea9a90.js +1 -0
- package/assets/esri/core/workers/chunks/{6a2562cc00727155fc01.js → 4024becaf4012c1f15a7.js} +1 -1
- package/assets/esri/core/workers/chunks/435ad7e6ed326da2b969.js +1 -0
- package/assets/esri/core/workers/chunks/4419732baf3459a80e6d.js +1 -0
- package/assets/esri/core/workers/chunks/46f0510846a309a390ca.js +1 -0
- package/assets/esri/core/workers/chunks/4e17665dd9048c300d87.js +1 -0
- package/assets/esri/core/workers/chunks/509a74e9334f31b931d4.js +1 -0
- package/assets/esri/core/workers/chunks/50e8943d2c0b96fab2c1.js +1 -0
- package/assets/esri/core/workers/chunks/5396b6e99a0546a25d19.js +1 -0
- package/assets/esri/core/workers/chunks/561c48cb4d49b150765b.js +1 -0
- package/assets/esri/core/workers/chunks/{d90a3bfd45b5ed4092e0.js → 590fe0f56bc4c33a50e7.js} +1 -1
- package/assets/esri/core/workers/chunks/5d42f0898bf30ae940ea.js +1 -0
- package/assets/esri/core/workers/chunks/5f1cb79aec9c4a9b7ddc.js +29 -0
- package/assets/esri/core/workers/chunks/{5d2f043ebe1051326c56.js → 63b5418a1c3fe0a97a86.js} +1 -1
- package/assets/esri/core/workers/chunks/63c3a573dfe703056f8f.js +1 -0
- package/assets/esri/core/workers/chunks/673c61c964524150d9bc.js +1 -0
- package/assets/esri/core/workers/chunks/692f0093c444fcc752b5.js +1 -0
- package/assets/esri/core/workers/chunks/69627b2634da64dd885f.js +1 -0
- package/assets/esri/core/workers/chunks/{e6d10136bc08aef255ff.js → 712559f121f76c4e71ab.js} +1 -1
- package/assets/esri/core/workers/chunks/71a51795f715332fb4fe.js +1 -0
- package/assets/esri/core/workers/chunks/735c1dffc3439bdba3cc.js +1 -0
- package/assets/esri/core/workers/chunks/7862abd24fb5c3b12e6b.js +1 -0
- package/assets/esri/core/workers/chunks/{44d5508042cacdfcac47.js → 7d2be06dfbd92c8b9484.js} +1 -1
- package/assets/esri/core/workers/chunks/7f5b887a753bb67c8486.js +1 -0
- package/assets/esri/core/workers/chunks/822f83d7c09ef0a9bbdf.js +1 -0
- package/assets/esri/core/workers/chunks/849f446c718e892f39ce.js +1 -0
- package/assets/esri/core/workers/chunks/{76196c414e48834f7b92.js → 8f008eedb11685ee2048.js} +1 -1
- package/assets/esri/core/workers/chunks/98760040f0c9d47c718d.js +1 -0
- package/assets/esri/core/workers/chunks/{4b99b4cf729881e616bc.js → 98d1efb6f2439c6344cf.js} +1 -1
- package/assets/esri/core/workers/chunks/{18f20fd43ec9ce03cef1.js → 9e04703ee5f5ec47db43.js} +1 -1
- package/assets/esri/core/workers/chunks/9e0b0262dec496451762.js +1 -0
- package/assets/esri/core/workers/chunks/{23fd4de56de352f63e2d.js → a2196a49f89d57a0a1c7.js} +1 -1
- package/assets/esri/core/workers/chunks/{89c8b0f684c1f27d149e.js → a2f0894218e665780a21.js} +1 -1
- package/assets/esri/core/workers/chunks/a79cae328e866272754a.js +1 -0
- package/assets/esri/core/workers/chunks/a85cdafbaf1848bb924b.js +1 -0
- package/assets/esri/core/workers/chunks/b01688ccc29d33bfc82d.js +1 -0
- package/assets/esri/core/workers/chunks/b0a612d8ffa5c46d7db4.js +1 -0
- package/assets/esri/core/workers/chunks/b5eff28cf482d920b9ea.js +1 -0
- package/assets/esri/core/workers/chunks/b70885deebc6106597ad.js +1 -0
- package/assets/esri/core/workers/chunks/bedaa5e64ed81803829a.js +1 -0
- package/assets/esri/core/workers/chunks/c0a956d57fa28fd31052.js +1 -0
- package/assets/esri/core/workers/chunks/{a88f346786b04bd194dc.js → c0b38f8c808d434af5f6.js} +1 -1
- package/assets/esri/core/workers/chunks/c1cf3edce15f09648eb4.js +1 -0
- package/assets/esri/core/workers/chunks/c249a91dd23104723fab.js +1 -0
- package/assets/esri/core/workers/chunks/c45edd0a7d57263bb7d6.js +1 -0
- package/assets/esri/core/workers/chunks/c4bbe4707e90b7cd0379.js +1 -0
- package/assets/esri/core/workers/chunks/c52466eb1f3c33ae1f5a.js +1 -0
- package/assets/esri/core/workers/chunks/c570b90995c65bbb2e14.js +1 -0
- package/assets/esri/core/workers/chunks/c576bef77e34920af188.js +1 -0
- package/assets/esri/core/workers/chunks/c7699edd14497d174445.js +1 -0
- package/assets/esri/core/workers/chunks/c80a3b039e510c118399.js +1 -0
- package/assets/esri/core/workers/chunks/{196979cc6a765be3c5cd.js → c88a70f68c8ce8c30e9b.js} +1 -1
- package/assets/esri/core/workers/chunks/c9feffb9884cfed52c4b.js +1 -0
- package/assets/esri/core/workers/chunks/caaf6306cc73f618d27d.js +1 -0
- package/assets/esri/core/workers/chunks/{b704f489d0f072a0bfcd.js → ccd19c490ca24db6ffb1.js} +1 -1
- package/assets/esri/core/workers/chunks/cdacc3e42f01c3b852d6.js +1 -0
- package/assets/esri/core/workers/chunks/d1d6154b4af1c9cc497b.js +1 -0
- package/assets/esri/core/workers/chunks/d20dcd4ce4b0111d924f.js +1 -0
- package/assets/esri/core/workers/chunks/{784a2fba3e18286958d1.js → d56fdf5ce5ff53dc0e69.js} +1 -1
- package/assets/esri/core/workers/chunks/d7cf32a8c6060a208f06.js +1 -0
- package/assets/esri/core/workers/chunks/daae21cf77864f3293ef.js +1 -0
- package/assets/esri/core/workers/chunks/dd08dff19a2ffd36f284.js +1 -0
- package/assets/esri/core/workers/chunks/de3f140058aa0b907b65.js +1 -0
- package/assets/esri/core/workers/chunks/df375d1b0dab5ecbd1be.js +1 -0
- package/assets/esri/core/workers/chunks/{e2775b4b753306dc8477.js → df7603ef7d2a7cbeaaa2.js} +1 -1
- package/assets/esri/core/workers/chunks/e9cdb0b0f074583edebd.js +1 -0
- package/assets/esri/core/workers/chunks/eaab787a5f2445be5e5a.js +1 -0
- package/assets/esri/core/workers/chunks/edd36a1fc80b1d29907e.js +1 -0
- package/assets/esri/core/workers/chunks/{444e5f214abce3d607cd.js → eeb068c265bd3a22a8c1.js} +1 -1
- package/assets/esri/core/workers/chunks/f2cfee8a761ae91f7a3e.js +1 -0
- package/assets/esri/core/workers/chunks/f3fdf75843ade0ca591e.js +1 -0
- package/assets/esri/core/workers/chunks/f5cc78291b53931b91e8.js +1 -0
- package/assets/esri/core/workers/chunks/f9dc38761b314d33890f.js +1 -0
- package/assets/esri/core/workers/chunks/feb6e041dd0aa1c59c31.js +1 -0
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ar.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.bg.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.bs.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ca.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.cs.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.da.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.de.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.el.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.es.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.et.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.fi.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.fr.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.he.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.hr.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.hu.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.id.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.it.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ja.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ko.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.lt.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.lv.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.nl.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.no.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pl.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pt-BR.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pt-PT.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ro.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ru.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sk.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sl.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sr.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sv.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.th.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.tr.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.uk.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.vi.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-CN.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-HK.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-TW.json +1 -1
- package/config.js +1 -1
- package/core/workers/workers.js +2 -2
- package/core/workers.d.ts +1 -1
- package/graphic/MapNotesGraphicOrigin.d.ts +1 -0
- package/kernel.js +1 -1
- package/layers/ElevationLayer.d.ts +6 -2
- package/layers/VectorTileLayer.d.ts +10 -1
- package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
- package/layers/orientedImagery/core/coverageUtils.js +1 -1
- package/layers/orientedImagery/transformations/imageToWorld.js +1 -1
- package/layers/orientedImagery/transformations/rectifyMapPoint.js +1 -1
- package/layers/orientedImagery/transformations/rotationUtils.js +2 -0
- package/layers/orientedImagery/transformations/utils.js +1 -1
- package/package.json +2 -2
- package/support/BasemapStyle.d.ts +2 -2
- package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriterVertexPack.js +1 -1
- package/widgets/OrientedImageryViewer/ImageMeasurementWorker.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/sketch/MeasurementAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/view/SceneViewAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
- package/widgets/OrientedImageryViewer/imageMeasurementWorkerUtils.js +2 -0
- package/widgets/OrientedImageryViewer/services/ImageMeasurementService.js +1 -1
- package/widgets/OrientedImageryViewer/services/SuperimposeService.js +1 -1
- package/widgets/OrientedImageryViewer/support/superimposeUtils.js +1 -1
- package/widgets/OrientedImageryViewer.js +2 -2
- package/assets/esri/core/workers/chunks/010f57ec7fdbedf78d02.js +0 -1
- package/assets/esri/core/workers/chunks/02e10f44edf911832c2a.js +0 -1
- package/assets/esri/core/workers/chunks/07f7177bfaf9de73bc25.js +0 -1
- package/assets/esri/core/workers/chunks/090adefe20412e8a5084.js +0 -1
- package/assets/esri/core/workers/chunks/0d9c4c6c571ce26d356b.js +0 -1
- package/assets/esri/core/workers/chunks/1201b8c5852830836eac.js +0 -1
- package/assets/esri/core/workers/chunks/151e5799ede763a03ee2.js +0 -1
- package/assets/esri/core/workers/chunks/168a523bdc3653081f8a.js +0 -1
- package/assets/esri/core/workers/chunks/175c268e64ccd01f8c25.js +0 -1
- package/assets/esri/core/workers/chunks/18787aa685524b958561.js +0 -1
- package/assets/esri/core/workers/chunks/1e1c45f75020d5e05dc3.js +0 -1
- package/assets/esri/core/workers/chunks/28104681ba161967039f.js +0 -1
- package/assets/esri/core/workers/chunks/2a36fe3f3f257a779a1b.js +0 -1
- package/assets/esri/core/workers/chunks/30af63b3b750142faadb.js +0 -1
- package/assets/esri/core/workers/chunks/3f946c13ad97fbed867b.js +0 -1
- package/assets/esri/core/workers/chunks/40d803584eeade4df433.js +0 -1
- package/assets/esri/core/workers/chunks/41773d858e212468db88.js +0 -1
- package/assets/esri/core/workers/chunks/426b4eb500fdfe9df325.js +0 -1
- package/assets/esri/core/workers/chunks/45367aa8e5c5d574de94.js +0 -1
- package/assets/esri/core/workers/chunks/47d074136a7f8e551a9a.js +0 -1
- package/assets/esri/core/workers/chunks/4932773663469919d10a.js +0 -1
- package/assets/esri/core/workers/chunks/49b967d89d2841cea675.js +0 -1
- package/assets/esri/core/workers/chunks/4a6b92ecbb1f1c55cc43.js +0 -1
- package/assets/esri/core/workers/chunks/4cb751dc8d00bdaeb04c.js +0 -1
- package/assets/esri/core/workers/chunks/4d3d7ec407ee5cd5f036.js +0 -1
- package/assets/esri/core/workers/chunks/4fd0d9688df6fcc0d0b8.js +0 -1
- package/assets/esri/core/workers/chunks/53ff68d4f9e365fc15cd.js +0 -1
- package/assets/esri/core/workers/chunks/548b8f74a6883e364931.js +0 -1
- package/assets/esri/core/workers/chunks/5af8fb4ec2c72697e35b.js +0 -1
- package/assets/esri/core/workers/chunks/5d76f4d97beee494bbbf.js +0 -1
- package/assets/esri/core/workers/chunks/5dc604e3691f36f03959.js +0 -1
- package/assets/esri/core/workers/chunks/611e3cdf67283c11576f.js +0 -1
- package/assets/esri/core/workers/chunks/61552b4b8111a8624d84.js +0 -1
- package/assets/esri/core/workers/chunks/6299be5e7e26bf3c6859.js +0 -1
- package/assets/esri/core/workers/chunks/632fdf1d95ad69109427.js +0 -1
- package/assets/esri/core/workers/chunks/652faf4359ac072c5dde.js +0 -1
- package/assets/esri/core/workers/chunks/6b9961261241fdce0e94.js +0 -1
- package/assets/esri/core/workers/chunks/710b8251a59884aee31e.js +0 -1
- package/assets/esri/core/workers/chunks/7159d9c36869cd82599e.js +0 -29
- package/assets/esri/core/workers/chunks/7393f63043a1da3d05a6.js +0 -1
- package/assets/esri/core/workers/chunks/7449568eb2305bf2d650.js +0 -1
- package/assets/esri/core/workers/chunks/771dd92cb3e6a3427f66.js +0 -1
- package/assets/esri/core/workers/chunks/7748c2886d0122b40eeb.js +0 -1
- package/assets/esri/core/workers/chunks/78c4e43cfa1eda06b4d9.js +0 -1
- package/assets/esri/core/workers/chunks/7e0f04a5038e2a4f6e4b.js +0 -1
- package/assets/esri/core/workers/chunks/7f0f9dddc44b1f1600f0.js +0 -1
- package/assets/esri/core/workers/chunks/7f16ae01ccd9b6114d1c.js +0 -1
- package/assets/esri/core/workers/chunks/82a022cc21364c9a8539.js +0 -1
- package/assets/esri/core/workers/chunks/8924e2f3b7d03afb3a6a.js +0 -1
- package/assets/esri/core/workers/chunks/90153b5230b3a4985c14.js +0 -1
- package/assets/esri/core/workers/chunks/9189dfe19a2a2ccd5173.js +0 -1
- package/assets/esri/core/workers/chunks/9215b59c5ccecf9add58.js +0 -1
- package/assets/esri/core/workers/chunks/943a0f140813ee4ab04a.js +0 -1
- package/assets/esri/core/workers/chunks/967b4992b400517ee712.js +0 -1
- package/assets/esri/core/workers/chunks/9dd1fc56eb1ea6eb705e.js +0 -1
- package/assets/esri/core/workers/chunks/a163c6005aba3378edaa.js +0 -1
- package/assets/esri/core/workers/chunks/a53823cf03dbdce1aecd.js +0 -1
- package/assets/esri/core/workers/chunks/a62c12925303ff802c3d.js +0 -1
- package/assets/esri/core/workers/chunks/acb265a22be5e12f38e5.js +0 -1
- package/assets/esri/core/workers/chunks/acdfd275dbf8533a67f3.js +0 -1
- package/assets/esri/core/workers/chunks/ace802483484519658f3.js +0 -1
- package/assets/esri/core/workers/chunks/b3007aedbf731dacaff1.js +0 -1
- package/assets/esri/core/workers/chunks/b4334713bacdfe40ce3d.js +0 -1
- package/assets/esri/core/workers/chunks/b83cef2d3f528726d492.js +0 -1
- package/assets/esri/core/workers/chunks/be97a629e2ae4d13ceb3.js +0 -1
- package/assets/esri/core/workers/chunks/c337fc0e6dc69c233e6d.js +0 -1
- package/assets/esri/core/workers/chunks/c47d095434d09b5f10c6.js +0 -1
- package/assets/esri/core/workers/chunks/c4b7111dcedd9d6e1c2a.js +0 -1
- package/assets/esri/core/workers/chunks/c5d85be6e16bc895e7fb.js +0 -1
- package/assets/esri/core/workers/chunks/c8d6bb5cca49926a0214.js +0 -1
- package/assets/esri/core/workers/chunks/cb4be68cc5085d421615.js +0 -1
- package/assets/esri/core/workers/chunks/cb4db5489388559d6bd9.js +0 -1
- package/assets/esri/core/workers/chunks/cc794bb94ebc1cb66024.js +0 -1
- package/assets/esri/core/workers/chunks/cc94bf05b235e65291fc.js +0 -1
- package/assets/esri/core/workers/chunks/d4af9faa5d901274fad2.js +0 -1
- package/assets/esri/core/workers/chunks/d77c68e0fc3b259bf4f9.js +0 -1
- package/assets/esri/core/workers/chunks/daf9b691817e83a11f3c.js +0 -1
- package/assets/esri/core/workers/chunks/de0f335f702ae85a1df3.js +0 -1
- package/assets/esri/core/workers/chunks/e11159e3dc3353b27c57.js +0 -1
- package/assets/esri/core/workers/chunks/f8379cd45f750f28a3d8.js +0 -1
- package/assets/esri/core/workers/chunks/f905f1a1aa4c123cbe83.js +0 -1
- package/assets/esri/core/workers/chunks/fd4635410b27bcedb752.js +0 -1
- package/assets/esri/core/workers/chunks/fda83bcb8e40e8044c24.js +0 -1
- package/assets/esri/core/workers/chunks/feb4f8c807bb0dca488f.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3527],{68197(e,t,r){r.d(t,{A:()=>h});var n=r(40876),i=r(4576),a=r(34727),s=r(78888);function o(e){return(0,a.qE)((0,s.Vr)(e),0,255)}function l(e,t){let r=e.toString(16).padStart(2,"0");return t?r.slice(0,1):r}function u(e){return.2126*(0,n.Q6)(e.r)+.7152*(0,n.Q6)(e.g)+.0722*(0,n.Q6)(e.b)}class h{static blendColors(e,t,r,n=new h){return n.r=Math.round(e.r+(t.r-e.r)*r),n.g=Math.round(e.g+(t.g-e.g)*r),n.b=Math.round(e.b+(t.b-e.b)*r),n.a=e.a+(t.a-e.a)*r,n._sanitize()}static fromRgb(e,t){let r=(0,n.lT)(e);return r?h.fromArray(r,t):null}static fromHex(e,t=new h){let r=(0,n.oW)(e);return r?h.fromArray(r,t):null}static fromArray(e,t=new h){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){let r=(0,n.Eq)(e);return r?h.fromArray(r,t):null}static fromJSON(e){return null==e?void 0:new h([e[0],e[1],e[2],(e[3]??255)/255])}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(e){return e??=[0,0,0,0],e[0]=this.r/255,e[1]=this.g/255,e[2]=this.b/255,e[3]=null==this.a?1:this.a,e}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return this.toYiq()>=127}isLowContrastBlend(e,t=3){let r=e instanceof h?e:new h(e),n=u(this),i=u(r);return(Math.max(n,i)+.05)/(Math.min(n,i)+.05)<t}setColor(e){if("string"==typeof e)h.fromString(e,this);else if((0,i.yc)(e))h.fromArray(e,this);else{let t=e;this._set(t.r??0,t.g??0,t.b??0,t.a??1),e instanceof h||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){let t=e?.capitalize??!1,r=e?.digits??6,n=3===r||4===r,i=4===r||8===r,a=`#${l(this.r,n)}${l(this.g,n)}${l(this.b,n)}${i?l(Math.round(255*this.a),n):""}`;return t?a.toUpperCase():a}toYiq(){return.299*this.r+.587*this.g+.114*this.b}toCss(e=!1){let t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=0){let t=o(this.r),r=o(this.g),n=o(this.b);return 0===e||1!==this.a?[t,r,n,o(255*this.a)]:[t,r,n]}clone(){return new h(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=(0,n.c1)(this.r),this.g=(0,n.c1)(this.g),this.b=(0,n.c1)(this.b),this.a=(0,n.G1)(this.a),this}_set(e,t,r,n){this.r=e,this.g=t,this.b=r,this.a=n}}h.prototype.declaredClass="esri.Color"},40876(e,t,r){r.d(t,{Eq:()=>f,G1:()=>m,Q6:()=>y,TS:()=>a,V6:()=>i,Vm:()=>g,ay:()=>l,c1:()=>p,c4:()=>s,j5:()=>u,lT:()=>c,oW:()=>h,xV:()=>v});const n={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function i(e){return!!n[e]||!!n[e.toLowerCase()]}function a(e){return n[e]??n[e.toLowerCase()]}function s(e){return[...a(e)]}function o(e,t,r){r<0&&++r,r>1&&--r;let n=6*r;return n<1?e+(t-e)*n:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function l(e,t,r,n=1){let i=(e%360+360)%360/360,a=r<=.5?r*(t+1):r+t-r*t,s=2*r-a;return[Math.round(255*o(s,a,i+1/3)),Math.round(255*o(s,a,i)),Math.round(255*o(s,a,i-1/3)),n]}function u(e){let t=e.length>5,r=t?8:4,n=(1<<r)-1,i=t?1:17,a=t?9===e.length:5===e.length,s=Number("0x"+e.slice(1));if(isNaN(s))return null;let o,l=[0,0,0,1];return a&&(o=s&n,s>>=r,l[3]=i*o/255),o=s&n,s>>=r,l[2]=i*o,o=s&n,s>>=r,l[1]=i*o,o=s&n,s>>=r,l[0]=i*o,l}function h(e){if(!e.startsWith("#")||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{let t=parseInt(e.slice(1,2),16),r=parseInt(e.slice(2,3),16),n=parseInt(e.slice(3,4),16),i=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,r+16*r,n+16*n,(i+16*i)/255]}case 7:case 9:return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16),(7===e.length?255:parseInt(e.slice(7),16))/255];default:return null}}function c(e){let t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){let e=t[2].split(/\s*,\s*/),r=t[1];if("rgb"===r&&3===e.length||"rgba"===r&&4===e.length){if(e[0].endsWith("%")){let t=e.map(e=>2.56*parseFloat(e));return 4===e.length&&(t[3]=parseFloat(e[3])),d(t)}return d(e.map(e=>parseFloat(e)))}if("hsl"===r&&3===e.length||"hsla"===r&&4===e.length)return l(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function d(e){return e[0]=p(e[0]),e[1]=p(e[1]),e[2]=p(e[2]),e[3]=4===e.length?m(e[3]):1,e}function f(e){let t=i(e)?a(e):null;return t??=c(e),t??=h(e),t}function g(e){let t=f(e);return null==t?null:[t[0]/255,t[1]/255,t[2]/255,t[3]]}function m(e){return _(e,0,1)}function p(e){return Math.round(_(e,0,255))}function _(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}const b=1/2.2;function y(e){return e**2.2}function v(e){return e**b}r.d(t,["iw",0,b])},85334(e,t,r){r.d(t,{$:()=>b,IB:()=>o,Iy:()=>S,KV:()=>E,N2:()=>y,RH:()=>R,ZD:()=>v,sn:()=>M});var n=r(68197),i=r(4576),a=r(4718),s=r(34727);function o(e){return"r"in e&&"g"in e&&"b"in e}function l(e){return"h"in e&&"s"in e&&"v"in e}function u(e){return"l"in e&&"a"in e&&"b"in e}function h(e){return"l"in e&&"c"in e&&"h"in e}r(78955),r(91829);const c=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],d=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];function f(e,t){let r,n,i=[];if(e[0].length!==t.length)throw Error("dimensions do not match");let a=e.length,s=e[0].length,o=0;for(r=0;r<a;r++){for(o=0,n=0;n<s;n++)o+=e[r][n]*t[n];i.push(o)}return i}function g(e){let t=[e.r/255,e.g/255,e.b/255].map(e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4),r=f(c,t);return{x:100*r[0],y:100*r[1],z:100*r[2]}}function m(e){let t=f(d,[e.x/100,e.y/100,e.z/100]).map(e=>{let t=e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055;return Math.min(1,Math.max(t,0))});return{r:Math.round(255*t[0]),g:Math.round(255*t[1]),b:Math.round(255*t[2])}}function p(e){let t=[e.x/95.047,e.y/100,e.z/108.883].map(e=>e>(6/29)**3?e**(1/3):1/3*(29/6)**2*e+4/29);return{l:116*t[1]-16,a:500*(t[0]-t[1]),b:200*(t[1]-t[2])}}function _(e){let t=e.l,r=[(t+16)/116+e.a/500,(t+16)/116,(t+16)/116-e.b/200].map(e=>e>6/29?e**3:3*(6/29)**2*(e-4/29));return{x:95.047*r[0],y:100*r[1],z:108.883*r[2]}}function b(e){return o(e)?e:h(e)?function(e){return m(_(function(e){let t=e.l,r=e.c,n=e.h;return{l:t,a:r*Math.cos(n),b:r*Math.sin(n)}}(e)))}(e):u(e)?function(e){return m(_(e))}(e):function(e){return"x"in e&&"y"in e&&"z"in e}(e)?m(e):l(e)?function(e){let t,r=(e.h+360)%360/60,n=e.s/100,i=e.v/100*255,a=i*n,s=a*(1-Math.abs(r%2-1));switch(Math.floor(r)){case 0:t={r:a,g:s,b:0};break;case 1:t={r:s,g:a,b:0};break;case 2:t={r:0,g:a,b:s};break;case 3:t={r:0,g:s,b:a};break;case 4:t={r:s,g:0,b:a};break;case 5:case 6:t={r:a,g:0,b:s};break;default:t={r:0,g:0,b:0}}return t.r=Math.round(t.r+i-a),t.g=Math.round(t.g+i-a),t.b=Math.round(t.b+i-a),t}(e):e}function y(e){return l(e)?e:function(e){let{r:t,g:r,b:n}=e,i=Math.max(t,r,n),a=i-Math.min(t,r,n),s=i,o=0===a?0:i===t?(r-n)/a%6:i===r?(n-t)/a+2:(t-r)/a+4,l=0===a?0:a/s;return o<0&&(o+=6),o*=60,l*=100,s*=100/255,{h:o,s:l,v:s}}(b(e))}function v(e){return u(e)?e:function(e){return p(g(e))}(b(e))}function R(e){return h(e)?e:function(e){return function(e){let t=e.l,r=e.a,n=e.b,i=Math.sqrt(r*r+n*n),a=Math.atan2(n,r);return a=a>0?a:a+2*Math.PI,{l:t,c:i,h:a}}(p(g(e)))}(b(e))}function E(e){return e[0]??=0,e[1]??=0,e[2]??=0,e}function M(e){return e.length=4,E(e),e[3]??=1,(0,s.qE)(e[3],0,1),e}function S(e,t,r={}){if(0===e.length||t<=0)return[];if(1===(e=e.map(e=>"string"==typeof e?new n.A(e):e)).length||1===t){let r=[],n=e[0];for(let e=0;e<t;e++)r.push(n.clone());return r}if(r.shuffle&&(e=(0,i.k4)((0,a.o8)(e),r.seed)),e.length>=t){let r=[],n=(e.length-1)/(t-1);for(let i=0;i<t;i++){let t=Math.round(i*n);r.push(e[t].clone())}return r}return function(e,t,r={}){let n=[],a=e.length-1,s=Math.ceil((t-e.length)/a);e:for(let i=0;i<a;i++){let a=e[i],o=e[i+1];for(let i=1;i<=s;i++){let l=i/(s+1);if(n.push(I(a,o,l,r)),n.length+e.length===t)break e}}return[...e.map(e=>e.clone()),...(0,i.k4)(n,r.seed??1)]}(e,t,r)}const T=(e,t)=>{let r=Math.floor(10*t())-5;return Math.min(255,Math.max(0,e+r))};function I(e,t,r,a={}){let s=e.r,o=e.g,l=e.b,u=t.r,h=t.g,c=t.b,d=Math.round(s+(u-s)*r),f=Math.round(o+(h-o)*r),g=Math.round(l+(c-l)*r);if(!a.offset)return new n.A([d,f,g]);let m=(0,i.Mo)(a.seed);return new n.A([T(d,m),T(f,m),T(g,m)])}},9093(e,t,r){function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}r.d(t,{o8:()=>i,vt:()=>n});const a=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:i,create:n,fromValues:function(e,t,r,n,i,a,s,o,l,u,h,c,d,f,g,m){return[e,t,r,n,i,a,s,o,l,u,h,c,d,f,g,m]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["zK",0,a])},58083(e,t,r){r.d(t,{$0:()=>_,$h:()=>A,B8:()=>h,C:()=>a,D_:()=>o,N9:()=>y,O7:()=>I,Qw:()=>u,Tl:()=>d,X_:()=>M,e$:()=>g,eL:()=>m,hM:()=>b,hZ:()=>s,hs:()=>f,kN:()=>p,l:()=>S,lw:()=>c,mg:()=>l,o1:()=>T,sC:()=>E,t2:()=>C,t5:()=>x,tZ:()=>O,ut:()=>N});var n=r(51850),i=r(34304);function a(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function s(e,t,r,n,i,a,s,o,l,u,h,c,d,f,g,m,p){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e[4]=a,e[5]=s,e[6]=o,e[7]=l,e[8]=u,e[9]=h,e[10]=c,e[11]=d,e[12]=f,e[13]=g,e[14]=m,e[15]=p,e}function o(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function l(e,t){if(e===t){let r=t[1],n=t[2],i=t[3],a=t[6],s=t[7],o=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=a,e[11]=t[14],e[12]=i,e[13]=s,e[14]=o}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}function u(e,t){return h(e,t)||o(e),e}function h(e,t){let r=t[0],n=t[1],i=t[2],a=t[3],s=t[4],o=t[5],l=t[6],u=t[7],h=t[8],c=t[9],d=t[10],f=t[11],g=t[12],m=t[13],p=t[14],_=t[15],b=r*o-n*s,y=r*l-i*s,v=r*u-a*s,R=n*l-i*o,E=n*u-a*o,M=i*u-a*l,S=h*m-c*g,T=h*p-d*g,I=h*_-f*g,A=c*p-d*m,x=c*_-f*m,w=d*_-f*p,C=b*w-y*x+v*A+R*I-E*T+M*S;return C?(C=1/C,e[0]=(o*w-l*x+u*A)*C,e[1]=(i*x-n*w-a*A)*C,e[2]=(m*M-p*E+_*R)*C,e[3]=(d*E-c*M-f*R)*C,e[4]=(l*I-s*w-u*T)*C,e[5]=(r*w-i*I+a*T)*C,e[6]=(p*v-g*M-_*y)*C,e[7]=(h*M-d*v+f*y)*C,e[8]=(s*x-o*I+u*S)*C,e[9]=(n*I-r*x-a*S)*C,e[10]=(g*E-m*v+_*b)*C,e[11]=(c*v-h*E-f*b)*C,e[12]=(o*T-s*A-l*S)*C,e[13]=(r*A-n*T+i*S)*C,e[14]=(m*y-g*R-p*b)*C,e[15]=(h*R-c*y+d*b)*C,e):null}function c(e,t,r){let n=t[0],i=t[1],a=t[2],s=t[3],o=t[4],l=t[5],u=t[6],h=t[7],c=t[8],d=t[9],f=t[10],g=t[11],m=t[12],p=t[13],_=t[14],b=t[15],y=r[0],v=r[1],R=r[2],E=r[3];return e[0]=y*n+v*o+R*c+E*m,e[1]=y*i+v*l+R*d+E*p,e[2]=y*a+v*u+R*f+E*_,e[3]=y*s+v*h+R*g+E*b,y=r[4],v=r[5],R=r[6],E=r[7],e[4]=y*n+v*o+R*c+E*m,e[5]=y*i+v*l+R*d+E*p,e[6]=y*a+v*u+R*f+E*_,e[7]=y*s+v*h+R*g+E*b,y=r[8],v=r[9],R=r[10],E=r[11],e[8]=y*n+v*o+R*c+E*m,e[9]=y*i+v*l+R*d+E*p,e[10]=y*a+v*u+R*f+E*_,e[11]=y*s+v*h+R*g+E*b,y=r[12],v=r[13],R=r[14],E=r[15],e[12]=y*n+v*o+R*c+E*m,e[13]=y*i+v*l+R*d+E*p,e[14]=y*a+v*u+R*f+E*_,e[15]=y*s+v*h+R*g+E*b,e}function d(e,t,r){let n=r[0],i=r[1],a=r[2];if(t===e)e[12]=t[0]*n+t[4]*i+t[8]*a+t[12],e[13]=t[1]*n+t[5]*i+t[9]*a+t[13],e[14]=t[2]*n+t[6]*i+t[10]*a+t[14],e[15]=t[3]*n+t[7]*i+t[11]*a+t[15];else{let r=t[0],s=t[1],o=t[2],l=t[3],u=t[4],h=t[5],c=t[6],d=t[7],f=t[8],g=t[9],m=t[10],p=t[11];e[0]=r,e[1]=s,e[2]=o,e[3]=l,e[4]=u,e[5]=h,e[6]=c,e[7]=d,e[8]=f,e[9]=g,e[10]=m,e[11]=p,e[12]=r*n+u*i+f*a+t[12],e[13]=s*n+h*i+g*a+t[13],e[14]=o*n+c*i+m*a+t[14],e[15]=l*n+d*i+p*a+t[15]}return e}function f(e,t,r){let n=r[0],i=r[1],a=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function g(e,t,r,n){let s=n[0],o=n[1],l=n[2],u=Math.sqrt(s*s+o*o+l*l);if(u<=(0,i.FD)())return void a(e,t);u=1/u,s*=u,o*=u,l*=u;let h=Math.sin(r),c=Math.cos(r),d=1-c,f=t[0],g=t[1],m=t[2],p=t[3],_=t[4],b=t[5],y=t[6],v=t[7],R=t[8],E=t[9],M=t[10],S=t[11],T=s*s*d+c,I=o*s*d+l*h,A=l*s*d-o*h,x=s*o*d-l*h,w=o*o*d+c,C=l*o*d+s*h,N=s*l*d+o*h,O=o*l*d-s*h,L=l*l*d+c;e[0]=f*T+_*I+R*A,e[1]=g*T+b*I+E*A,e[2]=m*T+y*I+M*A,e[3]=p*T+v*I+S*A,e[4]=f*x+_*w+R*C,e[5]=g*x+b*w+E*C,e[6]=m*x+y*w+M*C,e[7]=p*x+v*w+S*C,e[8]=f*N+_*O+R*L,e[9]=g*N+b*O+E*L,e[10]=m*N+y*O+M*L,e[11]=p*N+v*O+S*L,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15])}function m(e,t,r){let n=Math.sin(r),i=Math.cos(r),a=t[4],s=t[5],o=t[6],l=t[7],u=t[8],h=t[9],c=t[10],d=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=a*i+u*n,e[5]=s*i+h*n,e[6]=o*i+c*n,e[7]=l*i+d*n,e[8]=u*i-a*n,e[9]=h*i-s*n,e[10]=c*i-o*n,e[11]=d*i-l*n,e}function p(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}function _(e,t,r){if(0===t)return o(e);let n=r[0],a=r[1],s=r[2],l=Math.sqrt(n*n+a*a+s*s);if(l<=(0,i.FD)())return null;l=1/l,n*=l,a*=l,s*=l;let u=Math.sin(t),h=Math.cos(t),c=1-h;return e[0]=n*n*c+h,e[1]=a*n*c+s*u,e[2]=s*n*c-a*u,e[3]=0,e[4]=n*a*c-s*u,e[5]=a*a*c+h,e[6]=s*a*c+n*u,e[7]=0,e[8]=n*s*c+a*u,e[9]=a*s*c-n*u,e[10]=s*s*c+h,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function b(e,t){let r=Math.sin(t),n=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function y(e,t){let r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function v(e,t,r){let n=t[0],i=t[1],a=t[2],s=t[3],o=n+n,l=i+i,u=a+a,h=n*o,c=n*l,d=n*u,f=i*l,g=i*u,m=a*u,p=s*o,_=s*l,b=s*u;return e[0]=1-(f+m),e[1]=c+b,e[2]=d-_,e[3]=0,e[4]=c-b,e[5]=1-(h+m),e[6]=g+p,e[7]=0,e[8]=d+_,e[9]=g-p,e[10]=1-(h+f),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}const R=(0,n.vt)();function E(e,t){return e[0]=t[12],e[1]=t[13],e[2]=t[14],e}function M(e,t){let r=t[0],n=t[1],i=t[2],a=t[4],s=t[5],o=t[6],l=t[8],u=t[9],h=t[10];return e[0]=Math.sqrt(r*r+n*n+i*i),e[1]=Math.sqrt(a*a+s*s+o*o),e[2]=Math.sqrt(l*l+u*u+h*h),e}function S(e,t){let r=t[0]+t[5]+t[10],n=0;return r>0?(n=2*Math.sqrt(r+1),e[3]=.25*n,e[0]=(t[6]-t[9])/n,e[1]=(t[8]-t[2])/n,e[2]=(t[1]-t[4])/n):t[0]>t[5]&&t[0]>t[10]?(n=2*Math.sqrt(1+t[0]-t[5]-t[10]),e[3]=(t[6]-t[9])/n,e[0]=.25*n,e[1]=(t[1]+t[4])/n,e[2]=(t[8]+t[2])/n):t[5]>t[10]?(n=2*Math.sqrt(1+t[5]-t[0]-t[10]),e[3]=(t[8]-t[2])/n,e[0]=(t[1]+t[4])/n,e[1]=.25*n,e[2]=(t[6]+t[9])/n):(n=2*Math.sqrt(1+t[10]-t[0]-t[5]),e[3]=(t[1]-t[4])/n,e[0]=(t[8]+t[2])/n,e[1]=(t[6]+t[9])/n,e[2]=.25*n),e}function T(e,t,r,n){let i=t[0],a=t[1],s=t[2],o=t[3],l=i+i,u=a+a,h=s+s,c=i*l,d=i*u,f=i*h,g=a*u,m=a*h,p=s*h,_=o*l,b=o*u,y=o*h,v=n[0],R=n[1],E=n[2];return e[0]=(1-(g+p))*v,e[1]=(d+y)*v,e[2]=(f-b)*v,e[3]=0,e[4]=(d-y)*R,e[5]=(1-(c+p))*R,e[6]=(m+_)*R,e[7]=0,e[8]=(f+b)*E,e[9]=(m-_)*E,e[10]=(1-(c+g))*E,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}function I(e,t,r,n,i){let a=t[0],s=t[1],o=t[2],l=t[3],u=a+a,h=s+s,c=o+o,d=a*u,f=a*h,g=a*c,m=s*h,p=s*c,_=o*c,b=l*u,y=l*h,v=l*c,R=n[0],E=n[1],M=n[2],S=i[0],T=i[1],I=i[2],A=(1-(m+_))*R,x=(f+v)*R,w=(g-y)*R,C=(f-v)*E,N=(1-(d+_))*E,O=(p+b)*E,L=(g+y)*M,P=(p-b)*M,D=(1-(d+m))*M;return e[0]=A,e[1]=x,e[2]=w,e[3]=0,e[4]=C,e[5]=N,e[6]=O,e[7]=0,e[8]=L,e[9]=P,e[10]=D,e[11]=0,e[12]=r[0]+S-(A*S+C*T+L*I),e[13]=r[1]+T-(x*S+N*T+P*I),e[14]=r[2]+I-(w*S+O*T+D*I),e[15]=1,e}function A(e,t,r,n,i,a,s){let o=1/(r-t),l=1/(i-n),u=1/(a-s);return e[0]=2*a*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*a*l,e[6]=0,e[7]=0,e[8]=(r+t)*o,e[9]=(i+n)*l,e[10]=(s+a)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=s*a*2*u,e[15]=0,e}function x(e,t,r,n){let a=t[0],s=t[1],l=t[2],u=a-r[0],h=s-r[1],c=l-r[2],d=(0,i.FD)();if(Math.abs(u)<d&&Math.abs(h)<d&&Math.abs(c)<d)return void o(e);let f=1/Math.sqrt(u*u+h*h+c*c);u*=f,h*=f,c*=f;let g=n[0],m=n[1],p=n[2],_=m*c-p*h,b=p*u-g*c,y=g*h-m*u;f=Math.sqrt(_*_+b*b+y*y),f?(f=1/f,_*=f,b*=f,y*=f):(_=0,b=0,y=0);let v=h*y-c*b,R=c*_-u*y,E=u*b-h*_;f=Math.sqrt(v*v+R*R+E*E),f?(f=1/f,v*=f,R*=f,E*=f):(v=0,R=0,E=0),e[0]=_,e[1]=v,e[2]=u,e[3]=0,e[4]=b,e[5]=R,e[6]=h,e[7]=0,e[8]=y,e[9]=E,e[10]=c,e[11]=0,e[12]=-(_*a+b*s+y*l),e[13]=-(v*a+R*s+E*l),e[14]=-(u*a+h*s+c*l),e[15]=1}function w(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e[4]=t[4]-r[4],e[5]=t[5]-r[5],e[6]=t[6]-r[6],e[7]=t[7]-r[7],e[8]=t[8]-r[8],e[9]=t[9]-r[9],e[10]=t[10]-r[10],e[11]=t[11]-r[11],e[12]=t[12]-r[12],e[13]=t[13]-r[13],e[14]=t[14]-r[14],e[15]=t[15]-r[15],e}function C(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]}function N(e){let t=(0,i.FD)(),r=e[0],n=e[1],a=e[2],s=e[4],o=e[5],l=e[6],u=e[8],h=e[9],c=e[10];return Math.abs(1-(r*r+s*s+u*u))<=t&&Math.abs(1-(n*n+o*o+h*h))<=t&&Math.abs(1-(a*a+l*l+c*c))<=t}function O(e){return 1===e[0]&&0===e[1]&&0===e[2]&&0===e[4]&&1===e[5]&&0===e[6]&&0===e[8]&&0===e[9]&&1===e[10]}const L=c,P=w;Object.freeze(Object.defineProperty({__proto__:null,add:function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e[4]=t[4]+r[4],e[5]=t[5]+r[5],e[6]=t[6]+r[6],e[7]=t[7]+r[7],e[8]=t[8]+r[8],e[9]=t[9]+r[9],e[10]=t[10]+r[10],e[11]=t[11]+r[11],e[12]=t[12]+r[12],e[13]=t[13]+r[13],e[14]=t[14]+r[14],e[15]=t[15]+r[15],e},adjoint:function(e,t){let r=t[0],n=t[1],i=t[2],a=t[3],s=t[4],o=t[5],l=t[6],u=t[7],h=t[8],c=t[9],d=t[10],f=t[11],g=t[12],m=t[13],p=t[14],_=t[15];return e[0]=o*(d*_-f*p)-c*(l*_-u*p)+m*(l*f-u*d),e[1]=-(n*(d*_-f*p)-c*(i*_-a*p)+m*(i*f-a*d)),e[2]=n*(l*_-u*p)-o*(i*_-a*p)+m*(i*u-a*l),e[3]=-(n*(l*f-u*d)-o*(i*f-a*d)+c*(i*u-a*l)),e[4]=-(s*(d*_-f*p)-h*(l*_-u*p)+g*(l*f-u*d)),e[5]=r*(d*_-f*p)-h*(i*_-a*p)+g*(i*f-a*d),e[6]=-(r*(l*_-u*p)-s*(i*_-a*p)+g*(i*u-a*l)),e[7]=r*(l*f-u*d)-s*(i*f-a*d)+h*(i*u-a*l),e[8]=s*(c*_-f*m)-h*(o*_-u*m)+g*(o*f-u*c),e[9]=-(r*(c*_-f*m)-h*(n*_-a*m)+g*(n*f-a*c)),e[10]=r*(o*_-u*m)-s*(n*_-a*m)+g*(n*u-a*o),e[11]=-(r*(o*f-u*c)-s*(n*f-a*c)+h*(n*u-a*o)),e[12]=-(s*(c*p-d*m)-h*(o*p-l*m)+g*(o*d-l*c)),e[13]=r*(c*p-d*m)-h*(n*p-i*m)+g*(n*d-i*c),e[14]=-(r*(o*p-l*m)-s*(n*p-i*m)+g*(n*l-i*o)),e[15]=r*(o*d-l*c)-s*(n*d-i*c)+h*(n*l-i*o),e},copy:a,determinant:function(e){let t=e[0],r=e[1],n=e[2],i=e[3],a=e[4],s=e[5],o=e[6],l=e[7],u=e[8],h=e[9],c=e[10],d=e[11],f=e[12],g=e[13],m=e[14],p=e[15];return(t*s-r*a)*(c*p-d*m)-(t*o-n*a)*(h*p-d*g)+(t*l-i*a)*(h*m-c*g)+(r*o-n*s)*(u*p-d*f)-(r*l-i*s)*(u*m-c*f)+(n*l-i*o)*(u*g-h*f)},equals:function(e,t){if(e===t)return!0;let r=e[0],n=e[1],a=e[2],s=e[3],o=e[4],l=e[5],u=e[6],h=e[7],c=e[8],d=e[9],f=e[10],g=e[11],m=e[12],p=e[13],_=e[14],b=e[15],y=t[0],v=t[1],R=t[2],E=t[3],M=t[4],S=t[5],T=t[6],I=t[7],A=t[8],x=t[9],w=t[10],C=t[11],N=t[12],O=t[13],L=t[14],P=t[15],D=(0,i.FD)();return Math.abs(r-y)<=D*Math.max(1,Math.abs(r),Math.abs(y))&&Math.abs(n-v)<=D*Math.max(1,Math.abs(n),Math.abs(v))&&Math.abs(a-R)<=D*Math.max(1,Math.abs(a),Math.abs(R))&&Math.abs(s-E)<=D*Math.max(1,Math.abs(s),Math.abs(E))&&Math.abs(o-M)<=D*Math.max(1,Math.abs(o),Math.abs(M))&&Math.abs(l-S)<=D*Math.max(1,Math.abs(l),Math.abs(S))&&Math.abs(u-T)<=D*Math.max(1,Math.abs(u),Math.abs(T))&&Math.abs(h-I)<=D*Math.max(1,Math.abs(h),Math.abs(I))&&Math.abs(c-A)<=D*Math.max(1,Math.abs(c),Math.abs(A))&&Math.abs(d-x)<=D*Math.max(1,Math.abs(d),Math.abs(x))&&Math.abs(f-w)<=D*Math.max(1,Math.abs(f),Math.abs(w))&&Math.abs(g-C)<=D*Math.max(1,Math.abs(g),Math.abs(C))&&Math.abs(m-N)<=D*Math.max(1,Math.abs(m),Math.abs(N))&&Math.abs(p-O)<=D*Math.max(1,Math.abs(p),Math.abs(O))&&Math.abs(_-L)<=D*Math.max(1,Math.abs(_),Math.abs(L))&&Math.abs(b-P)<=D*Math.max(1,Math.abs(b),Math.abs(P))},exactEquals:C,frob:function(e){return Math.sqrt(e[0]**2+e[1]**2+e[2]**2+e[3]**2+e[4]**2+e[5]**2+e[6]**2+e[7]**2+e[8]**2+e[9]**2+e[10]**2+e[11]**2+e[12]**2+e[13]**2+e[14]**2+e[15]**2)},fromQuat:function(e,t){let r=t[0],n=t[1],i=t[2],a=t[3],s=r+r,o=n+n,l=i+i,u=r*s,h=n*s,c=n*o,d=i*s,f=i*o,g=i*l,m=a*s,p=a*o,_=a*l;return e[0]=1-c-g,e[1]=h+_,e[2]=d-p,e[3]=0,e[4]=h-_,e[5]=1-u-g,e[6]=f+m,e[7]=0,e[8]=d+p,e[9]=f-m,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromQuat2:function(e,t){let r=R,n=-t[0],i=-t[1],a=-t[2],s=t[3],o=t[4],l=t[5],u=t[6],h=t[7],c=n*n+i*i+a*a+s*s;return c>0?(r[0]=2*(o*s+h*n+l*a-u*i)/c,r[1]=2*(l*s+h*i+u*n-o*a)/c,r[2]=2*(u*s+h*a+o*i-l*n)/c):(r[0]=2*(o*s+h*n+l*a-u*i),r[1]=2*(l*s+h*i+u*n-o*a),r[2]=2*(u*s+h*a+o*i-l*n)),v(e,t,r),e},fromRotation:_,fromRotationTranslation:v,fromRotationTranslationScale:T,fromRotationTranslationScaleOrigin:I,fromScaling:function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromTranslation:p,fromXRotation:b,fromYRotation:function(e,t){let r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromZRotation:y,frustum:A,getRotation:S,getScale:M,getTranslation:E,hasIdentityRotation:O,identity:o,invert:h,invertOrIdentity:u,isOrthoNormal:N,lookAt:x,mul:L,multiply:c,multiplyScalar:function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*r,e[5]=t[5]*r,e[6]=t[6]*r,e[7]=t[7]*r,e[8]=t[8]*r,e[9]=t[9]*r,e[10]=t[10]*r,e[11]=t[11]*r,e[12]=t[12]*r,e[13]=t[13]*r,e[14]=t[14]*r,e[15]=t[15]*r,e},multiplyScalarAndAdd:function(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e[3]=t[3]+r[3]*n,e[4]=t[4]+r[4]*n,e[5]=t[5]+r[5]*n,e[6]=t[6]+r[6]*n,e[7]=t[7]+r[7]*n,e[8]=t[8]+r[8]*n,e[9]=t[9]+r[9]*n,e[10]=t[10]+r[10]*n,e[11]=t[11]+r[11]*n,e[12]=t[12]+r[12]*n,e[13]=t[13]+r[13]*n,e[14]=t[14]+r[14]*n,e[15]=t[15]+r[15]*n,e},ortho:function(e,t,r,n,i,a,s){let o=1/(t-r),l=1/(n-i),u=1/(a-s);return e[0]=-2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+r)*o,e[13]=(i+n)*l,e[14]=(s+a)*u,e[15]=1,e},perspective:function(e,t,r,n,i){let a,s=1/Math.tan(t/2);return e[0]=s/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=i&&i!==1/0?(a=1/(n-i),e[10]=(i+n)*a,e[14]=2*i*n*a):(e[10]=-1,e[14]=-2*n),e},perspectiveFromFieldOfView:function(e,t,r,n){let i=Math.tan(t.upDegrees*Math.PI/180),a=Math.tan(t.downDegrees*Math.PI/180),s=Math.tan(t.leftDegrees*Math.PI/180),o=Math.tan(t.rightDegrees*Math.PI/180),l=2/(s+o),u=2/(i+a);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-(s-o)*l*.5,e[9]=(i-a)*u*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e},rotate:g,rotateX:m,rotateY:function(e,t,r){let n=Math.sin(r),i=Math.cos(r),a=t[0],s=t[1],o=t[2],l=t[3],u=t[8],h=t[9],c=t[10],d=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i-u*n,e[1]=s*i-h*n,e[2]=o*i-c*n,e[3]=l*i-d*n,e[8]=a*n+u*i,e[9]=s*n+h*i,e[10]=o*n+c*i,e[11]=l*n+d*i,e},rotateZ:function(e,t,r){let n=Math.sin(r),i=Math.cos(r),a=t[0],s=t[1],o=t[2],l=t[3],u=t[4],h=t[5],c=t[6],d=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i+u*n,e[1]=s*i+h*n,e[2]=o*i+c*n,e[3]=l*i+d*n,e[4]=u*i-a*n,e[5]=h*i-s*n,e[6]=c*i-o*n,e[7]=d*i-l*n,e},scale:f,set:s,str:function(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"},sub:P,subtract:w,targetTo:function(e,t,r,n){let i=t[0],a=t[1],s=t[2],o=n[0],l=n[1],u=n[2],h=i-r[0],c=a-r[1],d=s-r[2],f=h*h+c*c+d*d;f>0&&(f=1/Math.sqrt(f),h*=f,c*=f,d*=f);let g=l*d-u*c,m=u*h-o*d,p=o*c-l*h;return f=g*g+m*m+p*p,f>0&&(f=1/Math.sqrt(f),g*=f,m*=f,p*=f),e[0]=g,e[1]=m,e[2]=p,e[3]=0,e[4]=c*p-d*m,e[5]=d*g-h*p,e[6]=h*m-c*g,e[7]=0,e[8]=h,e[9]=c,e[10]=d,e[11]=0,e[12]=i,e[13]=a,e[14]=s,e[15]=1,e},translate:d,transpose:l},Symbol.toStringTag,{value:"Module"}))},90629(e,t,r){r.d(t,{Lz:()=>i,PN:()=>a,cr:()=>s,gs:()=>l,r_:()=>u,tc:()=>o}),r(39829);const n=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i;function i(e){return e?e/72*96:0}function a(e){return e?72*e/96:0}function s(e){if("string"==typeof e){let t=e.match(n);if(t){let r=Number(t[1]),n=t[3]&&t[3].toLowerCase(),i=e.startsWith("-"),s="px"===n?a(r):r;return i?-s:s}return console.warn("screenUtils.toPt: input not recognized!"),null}return e}function o(e=0,t=0){return{x:e,y:t}}function l(e=0,t=0){return[e,t]}function u(e=0,t=0,r=0){return[e,t,r]}},4197(e,t,r){r.d(t,{Vj:()=>h,cj:()=>u,jh:()=>a,l5:()=>o,yH:()=>l});var n=r(34275),i=r(9093);function a(e){return e<=1024?Array(e).fill(0):new Float64Array(e)}function s(e){return((0,n.iu)(e)?e.byteLength/8:e.length)<=1024?Array.from(e):new Float64Array(e)}function o(e,t,r){return Array.isArray(e)?e.slice(t,t+r):e.subarray(t,t+r)}function l(e,t){if(0===t.length)return s(e);if(0===e.length)return s(t);let r=a(e.length+t.length);for(let t=0;t<e.length;++t)r[t]=e[t];for(let n=0;n<t.length;++n)r[e.length+n]=t[n];return r}function u(e){return[...e]}function h(e){let t=(0,i.vt)();for(let r=0;r<16;++r)t[r]=e[r];return t}},70328(e,t,r){r.d(t,{BI:()=>A,C:()=>s,DC:()=>d,Ej:()=>y,Ie:()=>T,Jt:()=>I,Lu:()=>R,Ne:()=>E,RF:()=>c,TF:()=>_,VL:()=>g,aI:()=>w,fA:()=>o,gE:()=>u,gX:()=>b,hZ:()=>S,iT:()=>f,is:()=>x,pg:()=>v,uJ:()=>p,vI:()=>M,vY:()=>l,vt:()=>a,w1:()=>h,yr:()=>m}),r(35522);var n=r(5443),i=(r(19419),r(4197));function a(e=N){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function s(e,t){for(let r=0;r<6;r++)e[r]=t[r];return e}function o(e,t,r,n,i,s,o=a()){return o[0]=e,o[1]=t,o[2]=r,o[3]=n,o[4]=i,o[5]=s,o}function l(e,t=a()){return function(e,t,r,n=a()){return S(n,C),function(e,t,r=0,n=t.length/3){let i=e[0],a=e[1],s=e[2],o=e[3],l=e[4],u=e[5];for(let e=0;e<n;e++)i=Math.min(i,t[r+3*e]),a=Math.min(a,t[r+3*e+1]),s=Math.min(s,t[r+3*e+2]),o=Math.max(o,t[r+3*e]),l=Math.max(l,t[r+3*e+1]),u=Math.max(u,t[r+3*e+2]);e[0]=i,e[1]=a,e[2]=s,e[3]=o,e[4]=l,e[5]=u}(n,e,t,r),n}(e,0,e.length/3,t)}function u(e,t=(0,i.jh)(24)){let[r,n,a,s,o,l]=e;return t[0]=r,t[1]=n,t[2]=a,t[3]=r,t[4]=n,t[5]=l,t[6]=r,t[7]=o,t[8]=a,t[9]=r,t[10]=o,t[11]=l,t[12]=s,t[13]=n,t[14]=a,t[15]=s,t[16]=n,t[17]=l,t[18]=s,t[19]=o,t[20]=a,t[21]=s,t[22]=o,t[23]=l,t}function h(e,t){return isFinite(e[2])||isFinite(e[5])?new n.A({xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}):new n.A({xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function c(e,t,r=e){r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r[2]=Math.min(e[2],t[2]),r[3]=Math.max(e[3],t[3]),r[4]=Math.max(e[4],t[4]),r[5]=Math.max(e[5],t[5])}function d(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function f(e,[t,r,n]){!function(e,t,r,n){e[0]=Math.min(e[0],t),e[1]=Math.min(e[1],r),e[2]=Math.min(e[2],n),e[3]=Math.max(e[3],t),e[4]=Math.max(e[4],r),e[5]=Math.max(e[5],n)}(e,t,r,n)}function g(e){return e[0]>=e[3]?0:e[3]-e[0]}function m(e){return e[1]>=e[4]?0:e[4]-e[1]}function p(e){return e[2]>=e[5]?0:e[5]-e[2]}function _(e){let t=g(e),r=p(e),n=m(e);return t*t+r*r+n*n}function b(e,t=[0,0,0]){return t[0]=e[0]+g(e)/2,t[1]=e[1]+m(e)/2,t[2]=e[2]+p(e)/2,t}function y(e,t=[0,0,0]){return t[0]=g(e),t[1]=m(e),t[2]=p(e),t}function v(e,t){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function R(e,t){return t[0]=e[3],t[1]=e[4],t[2]=e[5],t}function E(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function M(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function S(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function T(e){return e?S(e,C):a(C)}function I(e,t){return e[0]=t[0],e[1]=t[1],e[2]=-1/0,e[3]=t[2],e[4]=t[3],e[5]=1/0,e}function A(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=-1/0,e[3]=n,e[4]=i,e[5]=1/0,e}function x(e){return 6===e.length}function w(e,t,r){if(null==e||null==t)return e===t;if(!x(e)||!x(t))return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const C=[1/0,1/0,1/0,-1/0,-1/0,-1/0],N=[0,0,0,0,0,0];a(),r.d(t,["qv",0,C,"v_",0,N])},50498(e,t,r){var n=r(66552),i=r(5443),a=r(91075),s=r(48526),o=r(86738),l=r(39829),u=r(82799);const h=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),c=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),d={base:a.A,key:"type",typeMap:{extent:i.A,multipoint:s.A,point:o.A,polyline:u.A,polygon:l.A}},f=new n.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0});r.d(t,["Ye",0,c,"gy",0,h,"iI",0,f,"yR",0,d])},49013(e,t,r){r.r(t),r.d(t,{default:()=>pt});var n=r(32198),i=r(4576),a=r(69540),s=r(49186),o=r(36563),l=r(44208),u=r(53966),h=r(25728),c=r(17676),d=r(36708),f=r(91429),g=r(87024),m=r(4146),p=r(52136),_=r(18768),b=r(69208),y=r(34287),v=r(8303),R=r(25036),E=r(58947),M=r(10873),S=r(10292),T=r(58083),I=r(9093),A=r(35522),x=r(51850),w=r(34727),C=r(49208),N=r(79258);function O(e,t,r,n){let i=n+t;if(i<n/2||r>i)return Number.MAX_VALUE;let a=Math.abs(P*e)+Math.asin(r/i);return a>=Math.PI/2?Number.MAX_VALUE:r/Math.cos(a)}const L=(0,x.vt)(),P=(0,w.kU)(1);var D=r(27993),q=(r(73941),r(16930)),F=r(98764),U=r(4341),k=r(19419),Q=r(11964),G=r(27921),V=r(71351),j=r(44280),W=r(32114);const Z=()=>u.A.getLogger("esri.views.3d.support.geometryUtils.boundedPlane");function z(e=he){return{plane:(0,G.vt)(e.plane),origin:(0,x.o8)(e.origin),basis1:(0,x.o8)(e.basis1),basis2:(0,x.o8)(e.basis2)}}function B(e,t=z()){return $(e.origin,e.basis1,e.basis2,t)}function $(e,t,r,n=z()){return(0,A.C)(n.origin,e),(0,A.C)(n.basis1,t),(0,A.C)(n.basis2,r),H(n),function(e,t){Math.abs((0,A.Om)(e.basis1,e.basis2)/((0,A.Bw)(e.basis1)*(0,A.Bw)(e.basis2)))>1e-6&&Z().warn(t,"Provided basis vectors are not perpendicular"),Math.abs((0,A.Om)(e.basis1,ae(e)))>1e-6&&Z().warn(t,"Basis vectors and plane normal are not perpendicular"),Math.abs(-(0,A.Om)(ae(e),e.origin)-e.plane[3])>1e-6&&Z().warn(t,"Plane offset is not consistent with plane origin")}(n,"fromValues()"),n}function H(e){(0,G.mR)(e.basis2,e.basis1,e.origin,e.plane)}function Y(e,t,r){e!==r&&B(e,r);let n=(0,A.hs)(W.rq.get(),ae(e),t);return(0,A.WQ)(r.origin,r.origin,n),r.plane[3]-=t,r}function X(e,t=z()){let r=(e[2]-e[0])/2,n=(e[3]-e[1])/2;return(0,A.hZ)(t.origin,e[0]+r,e[1]+n,0),(0,A.hZ)(t.basis1,r,0,0),(0,A.hZ)(t.basis2,0,n,0),(0,G.fA)(0,0,1,0,t.plane),t}function K(e,t,r){return!!(0,G.Ui)(e.plane,t,r)&&se(e,r)}function J(e,t,r){let n=ce.get();ue(e,t,n,ce.get());let i=1/0;for(let a of me){let s=le(e,a,de.get()),o=W.rq.get();if((0,G.T7)(n,s,o)){let e=(0,A.oW)(W.rq.get(),t.origin,o),n=Math.abs((0,w.XM)((0,A.Om)(t.direction,e)));n<i&&(i=n,(0,A.C)(r,o))}}return i===1/0?ee(e,t,r):r}function ee(e,t,r){if(K(e,t,r))return r;let n=ce.get(),i=ce.get();ue(e,t,n,i);let a=1/0;for(let s of me){let o=le(e,s,de.get()),l=W.rq.get();if((0,G.gv)(n,o,l)){let e=(0,V.kb)(t,l);if(!(0,G.BX)(i,l))continue;e<a&&(a=e,(0,A.C)(r,l))}}return ne(e,t.origin)<a&&te(e,t.origin,r),r}function te(e,t,r){let n=(0,G._I)(e.plane,t,W.rq.get()),i=(0,Q.H6)(oe(e,e.basis1),n,-1,1,W.rq.get()),a=(0,Q.H6)(oe(e,e.basis2),n,-1,1,W.rq.get());return(0,A.Re)(r,(0,A.WQ)(W.rq.get(),i,a),e.origin),r}function re(e,t,r){let{origin:n,basis1:i,basis2:a}=e,s=(0,A.Re)(W.rq.get(),t,n),o=(0,j.gr)(i,s),l=(0,j.gr)(a,s),u=(0,j.gr)(ae(e),s);return(0,A.hZ)(r,o,l,u)}function ne(e,t){let r=re(e,t,W.rq.get()),{basis1:n,basis2:i}=e,a=(0,A.Bw)(n),s=(0,A.Bw)(i),o=Math.max(Math.abs(r[0])-a,0),l=Math.max(Math.abs(r[1])-s,0),u=r[2];return o*o+l*l+u*u}function ie(e,t){let r=-e.plane[3];return(0,j.gr)(ae(e),t)-r}function ae(e){return(0,G.Qj)(e.plane)}function se(e,t){let r=(0,A.Re)(W.rq.get(),t,e.origin),n=(0,A.m3)(e.basis1),i=(0,A.m3)(e.basis2),a=(0,A.Om)(e.basis1,r),s=(0,A.Om)(e.basis2,r);return-a-n<0&&a-n<0&&-s-i<0&&s-i<0}function oe(e,t){let r=de.get();return(0,A.C)(r.origin,e.origin),(0,A.C)(r.vector,t),r}function le(e,t,r){let{basis1:n,basis2:i,origin:a}=e,s=(0,A.hs)(W.rq.get(),n,t.origin[0]),o=(0,A.hs)(W.rq.get(),i,t.origin[1]);(0,A.WQ)(r.origin,s,o),(0,A.WQ)(r.origin,r.origin,a);let l=(0,A.hs)(W.rq.get(),n,t.direction[0]),u=(0,A.hs)(W.rq.get(),i,t.direction[1]);return(0,A.hs)(r.vector,(0,A.WQ)(l,l,u),2),r}function ue(e,t,r,n){let i=ae(e);(0,G.mR)(i,t.direction,t.origin,r),(0,G.mR)((0,G.Qj)(r),i,t.origin,n)}const he={plane:(0,G.vt)(),origin:(0,x.fA)(0,0,0),basis1:(0,x.fA)(1,0,0),basis2:(0,x.fA)(0,1,0)},ce=new U.I(G.vt),de=new U.I(Q.vt),fe=(0,x.vt)(),ge=new U.I(()=>z()),me=[{origin:[-1,-1],direction:[1,0]},{origin:[1,-1],direction:[0,1]},{origin:[1,1],direction:[-1,0]},{origin:[-1,1],direction:[0,-1]}],pe=(0,I.vt)(),_e=(0,I.vt)();Object.freeze(Object.defineProperty({__proto__:null,altitudeAt:ie,axisAt:function(e,t,r,n){return function(e,t,r){switch(t){case 0:(0,A.C)(r,e.basis1),(0,A.S8)(r,r);break;case 1:(0,A.C)(r,e.basis2),(0,A.S8)(r,r);break;case 2:(0,A.C)(r,ae(e))}return r}(e,r,n)},cameraFrustumCoverage:function(e,t){return(t-e)/t},closestPoint:ee,closestPointOnSilhouette:J,copy:B,copyWithoutVerify:function(e,t){(0,A.C)(t.origin,e.origin),(0,A.C)(t.basis1,e.basis1),(0,A.C)(t.basis2,e.basis2),(0,G.C)(t.plane,e.plane)},create:z,distance:function(e,t){return Math.sqrt(ne(e,t))},distance2:ne,distanceToSilhouette:function(e,t){let r=-1/0;for(let n of me){let i=le(e,n,de.get()),a=(0,Q.kb)(i,t);a>r&&(r=a)}return Math.sqrt(r)},elevate:Y,equals:function(e,t){return e===t||null==e&&null==t||null!=e&&null!=t&&(0,A.t2)(e.basis1,t.basis1)&&(0,A.t2)(e.basis2,t.basis2)&&(0,A.t2)(e.origin,t.origin)},extrusionContainsPoint:function(e,t){return(0,G.mN)(e.plane,t)>0&&se(e,t)},fromAABoundingRect:X,fromValues:$,getExtent:function(e,t){let r=e.basis1[0],n=e.basis2[1],[i,a]=e.origin;return(0,k.fA)(i-r,a-n,i+r,a+n,t)},intersectRay:K,intersectRayClosestSilhouette:function(e,t,r){if(K(e,t,r))return r;let n=J(e,t,W.rq.get());return(0,A.WQ)(r,t.origin,(0,A.hs)(W.rq.get(),t.direction,(0,A.Io)(t.origin,n)/(0,A.Bw)(t.direction))),r},normal:ae,projectPoint:te,projectPointLocal:re,rotate:function(e,t,r,n){return e!==n&&B(e,n),(0,T.$0)(_e,t,r),(0,A.Z0)(n.basis1,e.basis1,_e),(0,A.Z0)(n.basis2,e.basis2,_e),H(n),n},setAltitudeAt:function(e,t,r,n){let i=ie(e,t),a=(0,A.hs)(fe,ae(e),r-i);return(0,A.WQ)(n,t,a),n},setExtent:function(e,t,r){return X(t,r),Y(r,ie(e,e.origin),r),r},transform:function(e,t,r){return e!==r&&B(e,r),(0,T.B8)(pe,t),(0,T.mg)(pe,pe),(0,A.Z0)(r.basis1,e.basis1,pe),(0,A.Z0)(r.basis2,e.basis2,pe),(0,A.Z0)((0,G.Qj)(r.plane),(0,G.Qj)(e.plane),pe),(0,A.Z0)(r.origin,e.origin,t),(0,G.mP)(r.plane,r.plane,r.origin),r},up:he,updateUnboundedPlane:H,wrap:function(e,t,r){let n=ge.get();return n.origin=e,n.basis1=t,n.basis2=r,n.plane=(0,G.LV)(0,0,0,0),H(n),n}},Symbol.toStringTag,{value:"Module"}));var be=r(94008);(0,x.vt)(),(0,x.vt)();var ye=r(89707);class ve extends ye.H{constructor(e,t){super(NaN,NaN),this.id=e,this.serviceMbsInIndexSR=t,this._serviceMbsInRenderSRElevationAdjusted=new be.iy(0,0,0,-1),this._serviceMbsInRenderSR=new be.iy(0,0,0,-1),this._mbsConeInRenderSR=null}get serviceMbsInRenderSRElevationAdjusted(){return this._serviceMbsInRenderSRElevationAdjusted}updateServiceMbsInRenderSRElevationAdjusted(e){return this._serviceMbsInRenderSRElevationAdjusted.copyFrom(e),this._serviceMbsInRenderSRElevationAdjusted}get serviceMbsInRenderSR(){return this._serviceMbsInRenderSR}updateServiceMbsInRenderSR(e){return this._serviceMbsInRenderSR.copyFrom(e),this._serviceMbsInRenderSR}get mbsConeInRenderSR(){return this._mbsConeInRenderSR}updateMbsConeInRenderSR(e){return this._mbsConeInRenderSR=e.clone(),this._mbsConeInRenderSR}invalidateServiceBVsInRenderSR(){this._serviceMbsInRenderSRElevationAdjusted.invalidate(),this._serviceMbsInRenderSR.invalidate(),this._mbsConeInRenderSR=null,this.serviceObbInRenderSR?.invalidate()}shareServiceBVsInRenderSRWith(e){this.serviceObbInRenderSR=e.serviceObbInRenderSR,this._serviceMbsInRenderSRElevationAdjusted=e._serviceMbsInRenderSRElevationAdjusted,this._serviceMbsInRenderSR=e._serviceMbsInRenderSR,this._mbsConeInRenderSR=e._mbsConeInRenderSR}}class Re extends ve{constructor(e,t,r,n,i,a,s,o,l,u,h){super(e,r),this.index=t,this.childCount=n,this.level=i,this.resources=a,this.version=s,this.lodMetric=o,this.maxError=l,this.numFeatures=u,this.failed=!1,this.cacheState=0,this.vertexCount=0,this.memory=0,this.childrenLoaded=0,this.hasModifications=!1,this.imModificationImpact=4,this.elevationAgnosticBoundingVolume=new Ee,this.serviceObbInIndexSR=h}invalidateServiceBVsInRenderSR(){super.invalidateServiceBVsInRenderSR(),this.elevationAgnosticBoundingVolume.invalidate()}}class Ee{constructor(){this._data=[0,0,0,Ee.invalidRadius]}static{this.invalidRadius=-2}invalidate(){this._data[3]=Ee.invalidRadius}get valid(){return this._data[3]!==Ee.invalidRadius}get radius(){return this._data[3]}getAxis(e){return e[0]=this._data[0],e[1]=this._data[1],e[2]=this._data[2],e}set(e,t){this._data[0]=e[0],this._data[1]=e[1],this._data[2]=e[2],this._data[3]=t}intersectsFrustumConservative(e,t,r){if(!this.valid)return!0;let n=this.getAxis(Me),{center:i,radius:a}=e.boundingSphere,s=a+r;return 1===t?this.radius>Se||function(e,t,r,n){let i=(0,A.Bw)(r);if(i<=n)return!0;let a=(0,A.Om)(e,r);if(a<=0)return-a<=n;let s=(0,w.qE)(a/i,-1,1),o=Math.sqrt(1-s*s),l=(0,w.qE)(n/i,0,1);return o*Math.sqrt(1-l*l)-l*s<=t}(n,this.radius,i,s):function(e,t,r,n){let i=r[0]-e[0],a=r[1]-e[1],s=t+n;return i*i+a*a<=s*s}(n,this.radius,i,s)&&function(e,t,r,n,i){for(let a of i){let i=a[0],s=a[1],o=a[2],l=o>0?r:n;if(i*e[0]+s*e[1]+o*l+a[3]-Math.hypot(i,s)*t>0)return!1}return!0}(n,this.radius,i[2]-s,i[2]+s,e.planes)}}const Me=(0,x.vt)(),Se=.9;var Te=r(25992),Ie=r(66480),Ae=r(57005),xe=r(4431),we=r(62747),Ce=r(58682),Ne=r(92359);class Oe{constructor(e,t,r){this._layer=e,this._descriptor=t,this._options=r,this._subtaskAbortController=new AbortController,this._highest=-1/0,this._signal=AbortSignal.any([r.signal,this._subtaskAbortController.signal]),this._indexSpatialReference=(0,Ie.Rm)(e),this._vertexSpatialReference=(0,Ie.Dd)(e),this._intersectionSpaceSpatialReference=function(e,t){return e?(0,F.lO)(t):t.isGeographic?q.A.PlateCarree:t}(this._indexSpatialReference.isGeographic,this._indexSpatialReference),this._indexToVertexProjector=(0,C.wy)(this._indexSpatialReference,this._vertexSpatialReference),this._vertexToIntersectionSpaceProjector=(0,C.wy)(this._vertexSpatialReference,this._intersectionSpaceSpatialReference),this.frameTask=r.scheduler.registerTask(Ne.W6.ELEVATION_QUERY),this.promise=this._run()}async _run(){let e={stack:[],error:void 0,hasError:!1};try{(0,n.mS)(e,this.frameTask,!1);try{let e=this._descriptor;if("point"!==e.geometry.type)throw new s.A("elevation-query:invalid-geometry","Only point geometries can be used to query elevation");if(null==this._indexToVertexProjector||null==this._vertexToIntersectionSpaceProjector)throw new s.A("integrated-mesh-elevation-query:projection","Failed to create projection for elevation query.");let t=await e.project(this._indexSpatialReference,this._signal);(0,c.Te)(this._signal),t??this._throwSpatialReferenceMismatchError();let r=t.coordinates[0],n=function(e,t,r,n,i){let a=(0,x.fA)(e,t,r),s=(0,x.fA)(e,t,r-1e3),o=(0,x.vt)(),l=(0,x.vt)();return(0,D.F)(a,n,o,i)&&(0,D.F)(s,n,l,i)?(0,V.Cr)(o,l):null}(r.x,r.y,this.getRootRayOriginZ(),this._indexSpatialReference,this._intersectionSpaceSpatialReference);return n??this._throwSpatialReferenceMismatchError(),this._queryRay=n,await this.visitRoot(),(0,c.Te)(this._signal),r.z=this._highest===-1/0?De:this._highest,t}catch(e){throw this._subtaskAbortController.abort(),e}}catch(t){e.error=t,e.hasError=!0}finally{(0,n.hk)(e)}}_throwSpatialReferenceMismatchError(){throw new s.A("elevation-query:spatial-reference-mismatch",`Cannot query elevation in '${this._descriptor.spatialReference.wkid}' on an elevation service in '${this._indexSpatialReference.wkid}'`)}_intersectsQueryObb(e){let t=this._queryRay,r=new Ae.ab;return e.transform(r,this._indexSpatialReference,this._intersectionSpaceSpatialReference),r.intersectRay(t.origin,t.direction)}intersectsQueryBounds(e){if(null==e)return!0;let t=this._queryRay;if(null!=e.obb)return this._intersectsQueryObb(Ae.ab.fromJSON(e.obb));let r=new be.iy;return!function(e,t,r,n){if(null==e||null==t||null==n)return!1;let i=(0,C.Tp)(t,n);if(null==i?.projector)return!1;if(i.projector===C.pO)return r.copyFrom(e),!0;let{source:a,dest:s,projector:o}=i;if(3===s.spatialReferenceId){let t=C.w5[a.spatialReferenceId][2];return null!=t&&(t(e.center,0,L,0),(0,C.s7)(L,0,r.center,0),r.radius=O(L[1],e.center[2],e.radius,N.$O.radius),!0)}if(2!==a.spatialReferenceId&&5!==a.spatialReferenceId||11!==s.spatialReferenceId){o(e.center,0,r.center,0);let t=a.metersPerUnit??1,n=s.metersPerUnit??1;r.radius=e.radius*t/n}else{let t=C.w5[a.spatialReferenceId][1],n=C.w5[1][11],i=e.radius;null!=t&&null!=n&&(i=O(e.center[1],e.center[2],e.radius,N.$O.radius)),o(e.center,0,r.center,0),r.radius=i}return!0}(new be.iy(e.mbs),this._indexSpatialReference,r,this._intersectionSpaceSpatialReference)||r.intersectRay(t)}async _processLeafNode(e){let t=await this._layer.elevationQueryNodeLoader.loadNodeData(e,this._signal);if((0,c.Te)(this._signal),null==t.geometryBuffer||null==t.geometryDescriptor)return;let r=await this.transformNode(e,t);(0,c.Te)(this._signal),null!=r&&await this.frameTask.schedule(()=>{this._highest=this.intersectTransformedGeometry(r,this._highest,this._options.elevationOffset)},this._signal)}async transformNode(e,t){let r=e.serviceMbsInIndexSR;if(null==r)return null;let n=(0,Te.C)(r,0,qe,this._indexSpatialReference,this._intersectionSpaceSpatialReference),i={context:`i3s-elevation-query-${this._layer.uid}`,geometryBuffer:t.geometryBuffer,geometryData:null,geometryDescriptor:t.geometryDescriptor,layouts:[Fe],globalTrafo:n,geometryElevationOffset:0,mbs:r.toJSON(),obbData:e.serviceObbInIndexSR?.data,elevationOffset:0,planetRadiusInGlobalMode:0,needNormals:!1,computeNormals:!1,normalReferenceFrame:qe,indexToVertexProjector:this._indexToVertexProjector,vertexToRenderProjector:this._vertexToIntersectionSpaceProjector},a=await this._layer.processElevationQueryGeometry(i,this._signal);return(0,c.Te)(this._signal),a}intersectTransformedGeometry(e,t,r){let n=e.globalTrafo;if(null==(0,T.B8)(Ue,n))return t;let i=this._queryRay,a=(0,A.Z0)(ke,i.origin,Ue),s=(0,A.WQ)(Qe,i.origin,i.direction),o=(0,A.Z0)(Ge,s,Ue),l=(0,A.jb)(Ve,o,a),{data:u,indices:h}=e.transformedGeometry.positionData,c=h.length/3,d=t;return(0,Ce.h7)(a,l,0,c,h,u,3,!1,e=>{let t=(0,A.hs)(je,l,e);(0,A.WQ)(t,t,a);let i=(0,A.Z0)(We,t,n),s=Ze;if((0,D.F)(i,this._intersectionSpaceSpatialReference,s,this._layer.spatialReference)){let e=s[2]+r;d=Math.max(d,e)}}),d}async requestJSON(e){let t=await this._layer.elevationQueryDataRequester.request(e,"json",this._signal);return(0,c.Te)(this._signal),t}}class Le extends Oe{constructor(e,t,r,n){super(e,t,r),this._pendingPages=new Map,this._loadedPages=new Map,this._pageSize=n.pageSize,this._rootIndex=n.rootIndex,this._urlPrefix=n.urlPrefix;let i=this._pageId(this._rootIndex),a=this._rootIndex-i*this._pageSize,s=Ae.ab.fromJSON(n.rootPage.nodes[a].obb);this._rootRayOriginZ=s.centerZ+s.radius+1,this._loadedPages.set(i,n.rootPage)}visitRoot(){return this._visitNode(this._rootIndex)}getRootRayOriginZ(){return this._rootRayOriginZ}_pageId(e){return Math.floor(e/this._pageSize)}getPage(e){let t=this._loadedPages.get(e);if(null!=t)return Promise.resolve(t);let r=this._pendingPages.get(e);if(null!=r)return r;let n=this.requestJSON(`${this._urlPrefix}${e}`);return this._pendingPages.set(e,n),n.then(t=>{this._loadedPages.set(e,t),this._pendingPages.delete(e)},()=>this._pendingPages.delete(e)),n}async _visitNode(e){let t=this._pageId(e),r=await this.getPage(t);(0,c.Te)(this._signal);let n=r.nodes[e-t*this._pageSize],i=Ae.ab.fromJSON(n.obb);if(!this._intersectsQueryObb(i))return;let{children:a}=n;if(null!=a&&a.length>0)return await Promise.all(a.map(e=>this._visitNode(e))),void(0,c.Te)(this._signal);let s=this._createNode(e,n,i);null!=s&&(await this._processLeafNode(s),(0,c.Te)(this._signal))}_createNode(e,t,r){let{mesh:n}=t;if(null==n?.geometry)return null;let i=new be.iy(r.getCenter((0,x.vt)()),r.radius),{geometry:a,material:s}=n;return new Re(`${e}`,e,i,t.children?.length??0,0,{hasSharedResource:!1,isEmpty:!1,geometry:`${a.resource}`,geometryDefinition:a.definition,materialDefinition:s?.definition??-1},"",0,0,a.featureCount??null,r)}}class Pe extends Oe{constructor(e,t,r,n){super(e,t,r),this._rootNode=n.rootNode,this._urlPrefix=n.urlPrefix}visitRoot(){return this.intersectsQueryBounds(this._rootNode)?this._visitNodeData(this._rootNode,null!=this._rootNode.obb):Promise.resolve()}getRootRayOriginZ(){return this._rootNode.mbs[2]+this._rootNode.mbs[3]+1}_visitNode(e){return this.intersectsQueryBounds(e)?this._visitNodeAsync(e):Promise.resolve()}async _visitNodeAsync(e){let t=await this.requestJSON(`${this._urlPrefix}${e.id}`);(0,c.Te)(this._signal),await this._visitNodeData(t,null!=e.obb),(0,c.Te)(this._signal)}async _visitNodeData(e,t){if(!t&&null!=e.obb&&!this._intersectsQueryObb(Ae.ab.fromJSON(e.obb)))return;let{children:r}=e;if(null!=r&&r.length>0)return await Promise.all(r.map(e=>this._visitNode(e))),void(0,c.Te)(this._signal);let n=this._createNode(e);null!=n&&(await this._processLeafNode(n),(0,c.Te)(this._signal))}_createNode(e){let{geometryData:t,id:r}=e;if(null==t||0===t.length)return null;let n=null==e.obb?null:Ae.ab.fromJSON(e.obb),i=new be.iy(e.mbs);return new Re(r,0,i,e.children?.length??0,0,{hasSharedResource:null!=e.sharedResource,isEmpty:!1,geometry:r,geometryDefinition:0},e.version??"",0,0,null,n)}}const De=Number.MAX_VALUE,qe="none",Fe=(0,xe.U)((0,we.hH)(new we.W7(!1,!1,0))),Ue=(0,I.vt)(),ke=(0,x.vt)(),Qe=(0,x.vt)(),Ge=(0,x.vt)(),Ve=(0,x.vt)(),je=(0,x.vt)(),We=(0,x.vt)(),Ze=(0,x.vt)();var ze=r(50805),Be=r(58325),$e=r(24212),He=r(80215),Ye=r(97159),Xe=r(16215),Ke=r(98697),Je=r(56507),et=r(97768),tt=r(50075);class rt{constructor(e,t){this._customParameters=e,this._apiKey=t,this._activeRequests=new Set}isFull(e){return(0,tt._i)(e)}request(e,t,r){let n=new AbortController,i=(0,c.NY)(r,()=>n.abort()),a={...tt.Fz,signal:n.signal,responseType:t,query:{...this._customParameters,token:this._apiKey}},s=(0,Je.A)(e,a),o={abortController:n,abortHandle:i};return this._activeRequests.add(o),s.then(({data:e})=>e).finally(()=>{o.abortController=null,o.abortHandle=(0,et.xt)(o.abortHandle),this._activeRequests.delete(o)})}cancelAll(){this._activeRequests.forEach(e=>{e.abortController=(0,et.DC)(e.abortController),e.abortHandle=(0,et.xt)(e.abortHandle)}),this._activeRequests.clear()}}var nt=r(60999),it=r(4718),at=r(84952),st=r(59418),ot=r(85334);r(91829),r(46859);var lt=r(74810),ut=r(49788);function ht(e){return e.sort((e,t)=>e.encoding-t.encoding)}const ct={ktx2:1,basis:2,dds:4,png:8,jpg:16,"ktx-etc2":32},dt={"image/ktx2":2,"image/x.basis":2,"image/vnd-ms.dds":4,"image/png":8,"image/jpg":16,"image/jpeg":16,"image/ktx":32};class ft{constructor(e,t,r,n,i,a){if(this._requester=t,this._logger=r,this._defaultGeometrySchema=n,this._requiredAttributes=i,this._options=a,this._logLayer=e,this._layerUrl=e.parsedUrl.path,this._geometryDefinitions=e.geometryDefinitions,e.materialDefinitions){let t=e.textureSetDefinitions;this._materialAndTextures=e.materialDefinitions.map(r=>function(e,t,r){let n=new Map,i=(e,t)=>{if(null==e)return-1;let r=n.get(e.id);if(r)return r.usage|=t,r.id;let i=n.size;return n.set(e.id,{id:i,usage:t}),i},a=t.pbrMetallicRoughness,s=a?.baseColorFactor?(0,ot.sn)(a.baseColorFactor):null,o=t.emissiveFactor,l=r&&0===a?.metallicFactor||(0,lt.Jr)({normalTexture:t.normalTexture,emissiveTexture:t.emissiveTexture,emissiveFactor:t.emissiveFactor,occlusionTexture:t.occlusionTexture,metallicRoughnessTexture:a?.metallicRoughnessTexture,metallicFactor:a?.metallicFactor,roughnessFactor:a?.roughnessFactor}),u=l?lt.Bt[0]:a?.metallicFactor??lt.mb[0],h=l?lt.Bt[1]:a?.roughnessFactor??lt.mb[1],c="mask"===t.alphaMode?33:1,d={baseColorFactor:s?[s[0],s[1],s[2],s[3]]:[1,1,1,1],baseColorTextureId:i(a?.baseColorTexture,c),metallicRoughnessTextureId:i(a?.metallicRoughnessTexture,2),metallicFactor:u,roughnessFactor:h},f={alphaMode:t.alphaMode,alphaCutoff:t.alphaCutoff,doubleSided:t.doubleSided,cullFace:"none"===t.cullFace?0:"back"===t.cullFace?2:+("front"===t.cullFace),normalTextureId:i(t.normalTexture,4),emissiveTextureId:i(t.emissiveTexture,16),occlusionTextureId:i(t.occlusionTexture,8),emissiveFactor:o?[o[0],o[1],o[2]]:[0,0,0],metallicRoughness:d,wrapTextures:!1,hasParametersFromSource:l},g=[];return n.forEach(({usage:t},r)=>{let n=null!=e&&e[r]&&e[r].formats,i=n?ht(n.map(({name:e,format:t})=>({name:e,encoding:ct[t]}))):[];g.push({id:r,usage:t,encodings:i})}),{material:f,textures:g}}(t,r,"integrated-mesh"===e.type))}}_loadAttribute(e,t,r){let n=`${this._layerUrl}/nodes/${e.resources.attributes}/attributes/${t.key}/0`;return this._requester.request(n,"array-buffer",r).then(e=>(0,st.m0)(t,e))}async loadAttributes(e,t,r){let n=await Promise.allSettled(t.map(t=>this._loadAttribute(e,t.attributeStorageInfo,r))),i={};for(let r=0;r<t.length;++r){let a=n[r],s=t[r];if("fulfilled"===a.status){let e=a.value;i[s.name]=e}else{let t=a.reason;(0,c.QP)(t),this._logger.error("#loadAttributes",this._logLayer,`Failed to load attributeData for '${s.name}' on node '${e.id}'`,t)}}return i}async loadNodeData(e,t){let r=null!=this._requiredAttributes&&e.resources.attributes?(0,nt.Ke)(this.loadAttributes(e,this._requiredAttributes,t)):null,{bufferDefinition:n,bufferIndex:i}=function(e,t){let r={bufferDefinition:null,bufferIndex:0},n=t.resources.geometryDefinition;if(null==e||null==n||n<0)return r;let i=n>=0?e[n].geometryBuffers:null;if(null==i)return r;for(let e=0;e<i.length;e++){let t=i[e];if(null==t.compressedAttributes)r.bufferIndex=e,r.bufferDefinition=i[e];else if("draco"===t.compressedAttributes.encoding&&!(0,l.A)("disable-feature:i3s-draco"))return r.bufferIndex=e,r.bufferDefinition=t,r}return r}(this._geometryDefinitions,e),a=!!e.resources.geometry,s=a?(0,nt.Ke)(this._loadGeometry(e.resources.geometry,i,t)):null,o=e.resources.hasSharedResource?await this._loadShared(e,t):null,u=e.resources.materialDefinition,h=this._materialAndTextures&&null!=u&&u>=0?this._materialAndTextures[u]:null==o?null:function(e){let t=e?.materialDefinitions?Object.keys(e.materialDefinitions)[0]:null,r=e?.textureDefinitions?Object.keys(e.textureDefinitions)[0]:null,n=t?e.materialDefinitions?.[t]:null,i=r?e.textureDefinitions?.[r]:null,a={alphaMode:"opaque",alphaCutoff:ut.Q,doubleSided:!0,cullFace:0,normalTextureId:-1,emissiveTextureId:-1,occlusionTextureId:-1,emissiveFactor:[0,0,0],metallicRoughness:{baseColorFactor:[.8,.8,.8,1],baseColorTextureId:-1,metallicRoughnessTextureId:-1,metallicFactor:0,roughnessFactor:.6},wrapTextures:!1,hasParametersFromSource:!0};if(null!=n){let e=n.params;e.diffuse&&((0,ot.KV)(e.diffuse),a.metallicRoughness.baseColorFactor=[e.diffuse[0],e.diffuse[1],e.diffuse[2],1]),null!=e.doubleSided&&(a.doubleSided=e.doubleSided,a.cullFace=e.doubleSided?0:2),("none"===e.cullFace||"front"===e.cullFace||"back"===e.cullFace)&&(a.cullFace="none"===e.cullFace?0:"back"===e.cullFace?2:1),e.transparency&&(a.metallicRoughness.baseColorFactor[3]=(0,w.qE)(1-e.transparency,0,1)),(e.useVertexColorAlpha||a.metallicRoughness.baseColorFactor[3]<1)&&(a.alphaMode="blend")}let s=[];if(null!=i){i.wrap&&("repeat"===i.wrap[0]||"repeat"===i.wrap[1])&&(a.wrapTextures=!0);let e=1;"rgba"===i.channels&&(a.alphaMode="blend",e|=32);let t=i.images.length-1,r=i.images[t],n=e=>e?.split("/").pop(),o=Array.isArray(i.encoding)?ht(i.encoding.map((e,t)=>({name:n(r.href[t]),encoding:dt[e]||0}))):[{name:n(r.href),encoding:dt[i.encoding]||0}];s.push({id:0,usage:e,encodings:o}),a.metallicRoughness.baseColorTextureId=0}return{material:a,textures:s}}(o),c=h?.material,d=h?.textures??[],f=`${e.id}`,g=!a&&this._options.loadFeatureData,m=g?await this._loadFeatureData(f,t):null,p=g?function(e){if(!e)return null;for(let t of e.featureData){let e=t.geometries;if(null!=e)for(let r of e)return{featureIds:[t.id],featureDataPosition:t.position,geometries:[r]}}return null}(m):{featureIds:[],geometries:[{type:"ArrayBufferView",params:{material:c}}],featureDataPosition:[0,0,0]},_=null==p?function(e){if(!e)return null;let t=[];for(let r of e.featureData)null!=r.position&&t.push({featureIds:[r.id],featureDataPosition:r.position,geometries:[]});return t}(m):null,b=d.length>0?(0,nt.Ke)(this.loadTextures(e,d,t)):null,y=null,v=null;if(s){y=(0,nt.QA)(await s);let e=function(e,t){if(!e||!t?.materialDefinitions)return e;let r=Object.keys(t.materialDefinitions)[0];return!t.materialDefinitions[r].params.vertexRegions&&e.vertexAttributes.region&&delete(e=(0,it.o8)(e)).vertexAttributes.region,e}(this._defaultGeometrySchema,o);v=(0,st.qs)(n,e)}let R=b?(0,nt.QA)(await b):null,E=r?(0,nt.QA)(await r):{},M=E?{attributeData:E,loadedAttributes:this._requiredAttributes}:null;if(null!=p)return{geometryData:p,attributeDataInfo:M,geometryBuffer:y,geometryDescriptor:v,requiredTextures:d,textureData:R};if(null!=_)return{pointData:_,attributeDataInfo:M,geometryBuffer:y,geometryDescriptor:v,requiredTextures:d,textureData:R};throw Error()}static _addAbsoluteHrefTexture(e,t){let r=e.textureDefinitions;if(null!=r)for(let e of Object.keys(r))for(let n of r[e].images)n.hrefConcat=Array.isArray(n.href)?n.href.map(e=>(0,at.s2)(e,t)):(0,at.s2)(n.href,t)}static _fixTextureEncodings(e){let t=e.textureDefinitions;if(null!=t)for(let e in t){let r=t[e];if(Array.isArray(r.encoding))for(let e=0;e<r.encoding.length;e++){let t=r.encoding[e];t.startsWith("data:")&&(r.encoding[e]=t.slice(5))}else{let e=r.encoding;e.startsWith("data:")&&(r.encoding=e.slice(5))}}}async _loadShared(e,t){if(null==e.resources.geometry)return{};let r=`${this._layerUrl}/nodes/${e.resources.geometry}/shared`,n=await this._requester.request(r,"json",t);return ft._fixTextureEncodings(n),ft._addAbsoluteHrefTexture(n,r),n}_loadTexture(e,t,r,n,i){return 4===n||1===n||2===n?this._requester.request(e,"array-buffer",i).then(e=>({id:t,usage:r,data:e,encoding:n})):this._requester.request(e,"image",i).then(e=>({id:t,usage:r,data:e,encoding:n}))}loadTextures(e,t,r){let n=this._options.textureUsageMask;return Promise.all(t.map(t=>{if(0===(t.usage&n))return null;let i=function(e,t){if(null!=t)return e.find(e=>0!==(e.encoding&t))}(t.encodings,this._options.textureEncodings);if(null==i)return this._logger.error("#loadTextures",this._logLayer,`No known encoding for texture found on node ${e.id}`),Promise.reject();let a=e.resources.texture||e.id,s=`${this._layerUrl}/nodes/${a}/textures/${i.name}`;return this._loadTexture(s,t.id,t.usage,i.encoding,r)}))}_loadFeatureData(e,t){let r=`${this._layerUrl}/nodes/${e}/features/0`;return this._requester.request(r,"json",t)}_loadGeometry(e,t,r){let n=`${this._layerUrl}/nodes/${e}/geometries/${t}`;return this._requester.request(n,"array-buffer",r)}}var gt=r(36005);let mt=class extends((0,E.w6)((0,_.b)((0,y.q)((0,v.A)((0,R.j)((0,h.M)((0,b.d)((0,p.p)((0,a.OU)(m.A)))))))))){constructor(...e){super(...e),this.geometryType="mesh",this.operationalLayerType="IntegratedMeshLayer",this.type="integrated-mesh",this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.profile="mesh-pyramids",this.modifications=null,this._modificationsSource=null,this.path=null,this.definitionExpression=null,this._elevationQueryAbortController=new AbortController,this._elevationQueryWorkerContext=`i3s-elevation-query-${this.uid}`,this._elevationQueryWorkerHandle=null,this._elevationQueryWorkerSetup=null,this._modificationsGeneration=0}destroy(){this._elevationQueryAbortController.abort();let e=this._elevationQueryWorkerHandle;this._elevationQueryWorkerHandle=null,this._elevationQueryWorkerSetup=null,e?.destroyContextAndSelf(this._elevationQueryWorkerContext),super.destroy()}initialize(){this.addHandles([(0,d.on)(()=>this.modifications,"after-changes",()=>{this.modifications=this.modifications,this._modificationsGeneration++},d.OH),(0,d.wB)(()=>this.modifications,()=>this._modificationsGeneration++,d.OH),(0,d.wB)(()=>this.memoizedElevationQueryDependencies,()=>this._abortElevationQueriesAfterDependencyChange(),d.OH)])}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}readModifications(e,t,r){this._modificationsSource={url:(0,Ye.f)(e,r),context:r}}set elevationInfo(e){(null==e||"absolute-height"===e.mode)&&this._set("elevationInfo",e),this._validateElevationInfo(e)}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}get _elevationQueryWorker(){return this._elevationQueryWorkerHandle??=new Ke.Cm((e,t)=>Ne.nu.schedule(e,t))}get memoizedElevationQueryDependencies(){return[this.elevationInfo?.offset,this._modificationsGeneration]}async queryElevation(e,t,r){let a={stack:[],error:void 0,hasError:!1};try{let l=r?.noDataValue??Number.MAX_VALUE,u=this._elevationQueryWorker,h=new AbortController;e.addHandles((0,o.rE)(h),h),(0,n.mS)(a,(0,o.Bf)((0,o.hA)(()=>e.removeHandles(h))),!1);let d=AbortSignal.any([r?.signal,this._elevationQueryAbortController.signal,h.signal].filter(i.Ru));await this.load({signal:d}),(0,c.Te)(d);let f=S.q.fromGeometry(t),g={signal:d,elevationOffset:this.elevationInfo?.offset??0,scheduler:e.resourceController.scheduler};if(null==this._elevationQueryWorkerSetup){let e=this.store?.defaultGeometrySchema;null!=e&&(this._elevationQueryWorkerSetup=u.setLegacySchema(this._elevationQueryWorkerContext,e))}let m=await async function(e,t,r){let n=await e.indexInfo;if((0,c.Te)(r.signal),null==n)throw new s.A("integrated-mesh-elevation-query:index-missing","I3S index information is missing.");return"page"===n.type?new Le(e,t,r,n).promise:new Pe(e,t,r,n).promise}(this,f,g);(0,c.Te)(d);let p=m.coordinates[0].z===De;p&&(m.coordinates[0].z=l);let _=await m.project(t.spatialReference,d);(0,c.Te)(d);let b=_??f.clone(),y={geometry:b.export(),noDataValue:l};return r?.returnSampleInfo&&(y.sampleInfo=b.coordinates.map(()=>({demResolution:p?-1:1}))),y}catch(e){a.error=e,a.hasError=!0}finally{(0,n.hk)(a)}}_abortElevationQueriesAfterDependencyChange(){let e=this._elevationQueryAbortController;this._elevationQueryAbortController=new AbortController,e.abort()}async processElevationQueryGeometry(e,t){return await this._elevationQueryWorkerSetup,(0,c.Te)(t),this._elevationQueryWorker.invoke(e,t)}async _doLoad(e){let t=e?.signal;try{await this.loadFromPortal({supportedTypes:["Scene Service"]},e)}catch(e){(0,c.QP)(e)}if((0,c.Te)(t),await this._fetchService(t),(0,c.Te)(t),null!=this._modificationsSource){let r=await Be.A.fromUrl(this._modificationsSource.url,this.spatialReference,e);(0,c.Te)(t),this.setAtOrigin("modifications",r,this._modificationsSource.context.origin),this._modificationsSource=null}await this._fetchIndexAndUpdateExtent(this.nodePages,t),(0,c.Te)(t)}beforeSave(){if(null!=this._modificationsSource)return this.load().then(()=>{},()=>{})}async saveAs(e,t){return this._debouncedSaveOperations(1,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"},e)}async save(){return this._debouncedSaveOperations(0,{getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"})}get isUsedAsGroundLayer(){return!(0,l.A)("enable-feature:im-as-ground")||(0,Xe.S)(this.parent)||(0,He.Q)(this.parent)}get replacesTerrain(){return!1}validateLayer(e){if(e.layerType&&"IntegratedMesh"!==e.layerType)throw new s.A("integrated-mesh-layer:layer-type-not-supported","IntegratedMeshLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new s.A("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"});if(this.version.major>1)throw new s.A("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"})}_getTypeKeywords(){return["IntegratedMeshLayer"]}get elevationQueryDataRequester(){return new rt(this.customParameters,this.apiKey)}get elevationQueryNodeLoader(){return new ft(this,this.elevationQueryDataRequester,u.A.getLogger("esri.layers.IntegratedMeshLayer"),this.store?.defaultGeometrySchema,[],{loadFeatureData:!1,textureUsageMask:0})}_validateElevationInfo(e){let t="Integrated mesh layers";(0,$e.XF)(u.A.getLogger(this),(0,$e.B)(t,"absolute-height",e)),(0,$e.XF)(u.A.getLogger(this),(0,$e.tW)(t,e))}};(0,n.Cg)([(0,f.MZ)({type:String,readOnly:!0})],mt.prototype,"geometryType",void 0),(0,n.Cg)([(0,f.MZ)({type:["show","hide"]})],mt.prototype,"listMode",void 0),(0,n.Cg)([(0,f.MZ)({type:["IntegratedMeshLayer"]})],mt.prototype,"operationalLayerType",void 0),(0,n.Cg)([(0,f.MZ)({json:{read:!1},readOnly:!0})],mt.prototype,"type",void 0),(0,n.Cg)([(0,f.MZ)({type:ze.W4,readOnly:!0,clonable:!1})],mt.prototype,"nodePages",void 0),(0,n.Cg)([(0,f.MZ)({type:[ze.uV],readOnly:!0,clonable:!1})],mt.prototype,"materialDefinitions",void 0),(0,n.Cg)([(0,f.MZ)({type:[ze.Ot],readOnly:!0,clonable:!1})],mt.prototype,"textureSetDefinitions",void 0),(0,n.Cg)([(0,f.MZ)({type:[ze.L0],readOnly:!0,clonable:!1})],mt.prototype,"geometryDefinitions",void 0),(0,n.Cg)([(0,f.MZ)({readOnly:!0})],mt.prototype,"serviceUpdateTimeStamp",void 0),(0,n.Cg)([(0,f.MZ)({type:Be.A,clonable:e=>e?.clone()??e}),(0,g.P)({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],mt.prototype,"modifications",void 0),(0,n.Cg)([(0,f.MZ)({clonable:e=>e?{...e}:null})],mt.prototype,"_modificationsSource",void 0),(0,n.Cg)([(0,gt.w)(["web-scene","portal-item"],"modifications")],mt.prototype,"readModifications",null),(0,n.Cg)([(0,f.MZ)(M.Yj)],mt.prototype,"elevationInfo",null),(0,n.Cg)([(0,f.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],mt.prototype,"path",void 0),(0,n.Cg)([(0,f.MZ)({clonable:!1})],mt.prototype,"_elevationQueryWorker",null),(0,n.Cg)([(0,f.MZ)()],mt.prototype,"_modificationsGeneration",void 0),(0,n.Cg)([(0,f.MZ)()],mt.prototype,"memoizedElevationQueryDependencies",null),(0,n.Cg)([(0,f.MZ)()],mt.prototype,"isUsedAsGroundLayer",null),(0,n.Cg)([(0,f.MZ)()],mt.prototype,"replacesTerrain",null),(0,n.Cg)([(0,f.MZ)({clonable:!1})],mt.prototype,"elevationQueryDataRequester",null),(0,n.Cg)([(0,f.MZ)({clonable:!1})],mt.prototype,"elevationQueryNodeLoader",null),mt=(0,n.Cg)([(0,f.$K)("esri.layers.IntegratedMeshLayer")],mt);const pt=mt},85707(e,t,r){var n=r(32198),i=r(91429),a=r(54239);r.d(t,["a",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.heightModelInfo=null}read(e,t){super.read(e,t),"service"===t?.origin&&2===this.heightModelInfo?.origin&&(this.heightModelInfo.associatedSpatialReference=this.getAtOrigin("spatialReference","service"))}};return(0,n.Cg)([(0,i.MZ)({readOnly:!0,type:a.A})],r.prototype,"heightModelInfo",void 0),r=(0,n.Cg)([(0,i.$K)("esri.layers.mixins.HeightModelInfoMixin")],r),r}])},10292(e,t,r){r.d(t,{q:()=>o});var n=r(48526),i=r(86738),a=r(82799),s=r(99917);class o{constructor(e){this.geometry=e,this.spatialReference=e.spatialReference}export(){return this._exporter(this.coordinates,this.spatialReference)}clone(e){let t=new o(this.geometry);return t.spatialReference=this.spatialReference,t.coordinates=e??this.coordinates.map(e=>e.clone()),t._exporter=this._exporter,t}async project(e,t){if(this.spatialReference.equals(e))return this.clone();await(0,s.initializeProjection)([{source:this.spatialReference,dest:e}],{signal:t});let r=new n.A({spatialReference:this.spatialReference,points:this.coordinates.map(e=>[e.x,e.y])}),i=(0,s.project)(r,e);if(!i)return null;let a=this.coordinates.map((e,t)=>{let r=e.clone(),n=i.points[t];return r.x=n[0],r.y=n[1],r}),o=this.clone(a);return o.spatialReference=e,o}projectSync(e){if(this.spatialReference.equals(e))return this.clone();let t=new n.A({spatialReference:this.spatialReference,points:this.coordinates.map(e=>[e.x,e.y])}),r=(0,s.project)(t,e);if(!r)return null;let i=this.coordinates.map((e,t)=>{let n=e.clone(),i=r.points[t];return n.x=i[0],n.y=i[1],n}),a=this.clone(i);return a.spatialReference=e,a}static fromGeometry(e){let t=new o(e);if(e instanceof o)return t.coordinates=e.coordinates.map(e=>e.clone()),t._exporter=(t,r)=>{let n=e.clone(t);return n.spatialReference=r,n},t;switch(e.type){case"point":{let r=e,{hasZ:n,hasM:a}=r;return t.coordinates=n&&a?[new l(r.x,r.y,r.z,r.m)]:n?[new l(r.x,r.y,r.z)]:a?[new l(r.x,r.y,null,r.m)]:[new l(r.x,r.y)],t._exporter=(t,r)=>e.hasM?new i.A(t[0].x,t[0].y,t[0].z,t[0].m,r):new i.A(t[0].x,t[0].y,t[0].z,r),t}case"multipoint":{let r=e,{hasZ:i,hasM:a}=r;return t.coordinates=i&&a?r.points.map(e=>new l(e[0],e[1],e[2],e[3])):i?r.points.map(e=>new l(e[0],e[1],e[2])):a?r.points.map(e=>new l(e[0],e[1],null,e[2])):r.points.map(e=>new l(e[0],e[1])),t._exporter=(t,r)=>e.hasM?new n.A({points:t.map(e=>[e.x,e.y,e.z??0,e.m??0]),hasZ:!0,hasM:!0,spatialReference:r}):new n.A({points:t.map(e=>[e.x,e.y,e.z??0]),spatialReference:r}),t}case"polyline":{let r=e,n=[],i=[],{hasZ:s,hasM:o}=e,u=0;for(let e of r.paths)if(i.push([u,u+e.length]),u+=e.length,s&&o)for(let t of e)n.push(new l(t[0],t[1],t[2],t[3]));else if(s)for(let t of e)n.push(new l(t[0],t[1],t[2]));else if(o)for(let t of e)n.push(new l(t[0],t[1],null,t[2]));else for(let t of e)n.push(new l(t[0],t[1]));return t.coordinates=n,t._exporter=(t,r)=>{let n=e.hasM?t.map(e=>[e.x,e.y,e.z??0,e.m??0]):t.map(e=>[e.x,e.y,e.z??0]),s=i.map(e=>n.slice(e[0],e[1]));return new a.A({paths:s,hasM:e.hasM,hasZ:!0,spatialReference:r})},t}}}}class l{constructor(e,t,r=null,n=null,i=null,a=null){this.x=e,this.y=t,this.z=r,this.m=n,this.tile=i,this.elevationTile=a}clone(){return new l(this.x,this.y,this.z,this.m)}}},73179(e,t,r){r.d(t,{b:()=>l,h:()=>u});var n=r(4718),i=r(53966),a=r(84952),s=r(60694),o=r(10873);function l(e){let{nonStandardUrlAllowed:t=!1,separator:r}=e??{},a=(0,n.o8)(o.OZ),l=a.json?.write;return"object"==typeof l&&l&&(l.writer=function(e,t,n,i){(0,s.LS)(this,e,r,t,i)}),{...a,set:function(e){if(null==e)return void this._set("url",e);let r=(0,s.HZ)({layer:this,url:e,nonStandardUrlAllowed:t,logger:i.A.getLogger(this)});this._set("url",r.url),null!=r.layerId&&this._set("layerId",r.layerId)}}}function u(e,t){let{separator:r}=t??{},n=(0,a.An)(e.url);return null!=n&&(null==e.dynamicDataSource?null!=e.layerId&&(n.path=(0,a.fj)(n.path,r??"",e.layerId.toString())):n.path=(0,a.fj)(n.path,"dynamicLayer")),n}},89707(e,t,r){r.d(t,{H:()=>n});class n{constructor(e=1/0,t=-1/0){this.minElevation=e,this.maxElevation=t}get elevationRangeValid(){return!Number.isNaN(this.minElevation)}get isEmpty(){return!(this.minElevation<=this.maxElevation)}contains(e){return this.minElevation<=e.minElevation&&this.maxElevation>=e.maxElevation}invalidateElevationRange(){this.minElevation=NaN}initializeEmpty(){this.minElevation=1/0,this.maxElevation=-1/0}expandElevationRange(e){let t=Math.min(this.minElevation,e.minElevation),r=Math.max(this.maxElevation,e.maxElevation),n=t!==this.minElevation||r!==this.maxElevation;return this.minElevation=t,this.maxElevation=r,n}expandElevationRangeValues(e,t){let r=Math.min(this.minElevation,e),n=Math.max(this.maxElevation,t),i=r!==this.minElevation||n!==this.maxElevation;return this.minElevation=r,this.maxElevation=n,i}setElevationRange(e){this.minElevation=e.minElevation,this.maxElevation=e.maxElevation}setElevationRangeValues(e,t){this.minElevation=e,this.maxElevation=t}equals(e){return this.minElevation===e.minElevation&&this.maxElevation===e.maxElevation}}},62747(e,t,r){r.d(t,{W7:()=>a,hH:()=>s});var n=r(1843),i=r(65786);i.Y;class a extends i.Y{constructor(e,t,r){super(),this.hasVertexColors=e,this.hasNormals=t,this.textureCoordinateType=r}}function s(e){let t=(0,n.BP)().vec3f("position");return e.hasNormals&&t.vec2i16("normalCompressed",{glNormalized:!0}),1===e.textureCoordinateType?t.vec2f("uv0"):2===e.textureCoordinateType&&(t.vec2f("uv0"),t.vec4u16("uvRegion",{glNormalized:!0})),e.hasVertexColors&&t.vec4u8("color",{glNormalized:!0}),t.freeze()}},92359(e,t,r){r.d(t,{nu:()=>d,W6:()=>u}),r(4576),r(71511),r(44208),r(53966);var n=r(17676),i=(r(36708),r(44794),r(78659)),a=r(32198),s=r(69622),o=r(91429);let l=class extends s.A{constructor(){super(...arguments),this.SCHEDULER_LOG_SLOW_TASKS=!1,this.FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES=!1}};(0,a.Cg)([(0,o.MZ)()],l.prototype,"SCHEDULER_LOG_SLOW_TASKS",void 0),(0,a.Cg)([(0,o.MZ)()],l.prototype,"FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES",void 0),l=(0,a.Cg)([(0,o.$K)("esri.views.support.debugFlags")],l),new l,r(49186),Symbol("Yield");const u={RESOURCE_CONTROLLER_IMMEDIATE:"immediate",RESOURCE_CONTROLLER:"schedule",SLIDE:"slide",STREAM_DATA_LOADER:"stream loader",ELEVATION_QUERY:"elevation query",TERRAIN_SURFACE:"terrain",SURFACE_GEOMETRY_UPDATES:"surface geometry updates",LOD_RENDERER:"LoD renderer",GRAPHICS_CORE:"Graphics3D",I3S:"I3S",LYR3D:"Lyr3D",TILES3D:"3DTiles",POINT_CLOUD_LAYER:"point cloud",FEATURE_TILE_FETCHER:"feature fetcher",STREAM_CONTROLLER:"stream controller",SCREEN_POLYGON_INTERSECTION:"screen polygon intersection",OCCLUSION_QUERY:"occlusion query",OVERLAY:"overlay",OVERLAY_RENDERER:"overlay renderer",STAGE:"stage",GRAPHICS_DECONFLICTOR:"graphics deconflictor",FILTER_VISIBILITY:"graphics filter visibility",SCALE_VISIBILITY:"graphics scale visibility",FRUSTUM_VISIBILITY:"graphics frustum visibility",POINT_OF_INTEREST_FREQUENT:"POI frequent",POINT_OF_INTEREST_INFREQUENT:"POI infrequent",LABELER:"labeler",FEATURE_QUERY_ENGINE:"feature query",FEATURE_TILE_TREE:"feature tile tree",FEATURE_TILE_TREE_ACTIVE:"fast feature tile tree",ELEVATION_ALIGNMENT:"elevation alignment",ELEVATION_ALIGNMENT_SCENE:"elevation alignment scene",TEXT_TEXTURE_ATLAS:"text texture atlas",TEXTURE_UNLOAD:"texture unload",LINE_OF_SIGHT_TOOL:"line of sight tool",LINE_OF_SIGHT_TOOL_INTERACTIVE:"interactive line of sight tool",VOLUME_MEASUREMENT:"volume measurement",ELEVATION_PROFILE:"elevation profile",SNAPPING:"snapping",SHADOW_ACCUMULATOR:"shadow accumulator",CLOUDS_GENERATOR:"clouds generator",FLOW_GENERATOR:"flow generator",GAUSSIAN_SPLAT_SORTING:"gaussian splat sorting",GAUSSIAN_SPLAT_TEXTURE_ATLAS:"gaussian splat texture atlas",MAPVIEW_FETCH_QUEUE:"mapview fetch queue",MAPVIEW_LAYERVIEW_UPDATE:"mapview layerview update",MAPVIEW_VECTOR_TILE_PARSING_QUEUE:"mapview vector tile parsing queue",NONE:0,TEST_PRIO:1};new Map([[u.RESOURCE_CONTROLLER_IMMEDIATE,0],[u.RESOURCE_CONTROLLER,4],[u.SLIDE,0],[u.STREAM_DATA_LOADER,0],[u.ELEVATION_QUERY,0],[u.TERRAIN_SURFACE,1],[u.SURFACE_GEOMETRY_UPDATES,1],[u.LOD_RENDERER,2],[u.GRAPHICS_CORE,2],[u.I3S,2],[u.LYR3D,2],[u.TILES3D,3],[u.POINT_CLOUD_LAYER,2],[u.FEATURE_TILE_FETCHER,2],[u.STREAM_CONTROLLER,2],[u.SCREEN_POLYGON_INTERSECTION,0],[u.CLOUDS_GENERATOR,2],[u.OCCLUSION_QUERY,2],[u.OVERLAY,4],[u.OVERLAY_RENDERER,4],[u.STAGE,4],[u.GRAPHICS_DECONFLICTOR,4],[u.FILTER_VISIBILITY,4],[u.SCALE_VISIBILITY,4],[u.FRUSTUM_VISIBILITY,4],[u.POINT_OF_INTEREST_FREQUENT,6],[u.POINT_OF_INTEREST_INFREQUENT,30],[u.LABELER,8],[u.FEATURE_QUERY_ENGINE,8],[u.FEATURE_TILE_TREE,16],[u.FEATURE_TILE_TREE_ACTIVE,0],[u.ELEVATION_ALIGNMENT,12],[u.ELEVATION_ALIGNMENT_SCENE,14],[u.TEXT_TEXTURE_ATLAS,12],[u.TEXTURE_UNLOAD,12],[u.LINE_OF_SIGHT_TOOL,16],[u.LINE_OF_SIGHT_TOOL_INTERACTIVE,0],[u.VOLUME_MEASUREMENT,4],[u.SNAPPING,0],[u.SHADOW_ACCUMULATOR,30],[u.FLOW_GENERATOR,12],[u.GAUSSIAN_SPLAT_SORTING,2],[u.GAUSSIAN_SPLAT_TEXTURE_ATLAS,12],[u.MAPVIEW_FETCH_QUEUE,0],[u.MAPVIEW_LAYERVIEW_UPDATE,2],[u.MAPVIEW_VECTOR_TILE_PARSING_QUEUE,0]]),(0,i.l5)(6.5),(0,i.l5)(1),(0,i.l5)(30),(0,i.l5)(1e3/30),(0,i.l5)(100),Symbol.dispose;const h=new class{constructor(){this._begin=performance?.now()??0,this._budget=0,this._done=!1,this._progressed=!1,this._enabled=!0}run(e){return!this.done&&(!0===e()&&this.madeProgress(),!0)}get done(){return this._done}get budget(){return this._budget}madeProgress(){return this._progressed=!0,this._done=this.elapsed>=this._budget&&this._enabled,this._done}get enabled(){return this._enabled}set enabled(e){this._enabled=e}reset(e){this._begin=this.now(),this._budget=e,this.resetProgress()}get remaining(){return Math.max(this._budget-this.elapsed,0)}now(){return performance.now()}get elapsed(){return this.now()-this._begin}resetProgress(){this._progressed=!1,this._done=!1}get hasProgressed(){return this._progressed}};h.enabled=!1;class c{remove(){}[Symbol.dispose](){this.remove()}processQueue(){}schedule(e,t,r){try{if((0,n.G4)(t)){let e=(0,n.NK)();return r?Promise.resolve(r(e)):Promise.reject(e)}return(0,n.z7)(e(h))}catch(e){return Promise.reject(e)}}reschedule(e,t,r){return this.schedule(e,t,r)}async scheduleGenerator(e,t,r){if((0,n.G4)(t)){let e=(0,n.NK)();if(r)return r(e);throw e}let i=e(h);for(;;){let e=i.next(h),a=(0,n.$X)(e)?await e:e;if((0,n.G4)(t)){let e=(0,n.NK)();if(r){let t=r(e),a=i.return(null);return(0,n.$X)(a)&&await(0,n.QZ)(a),t}let t=i.throw(e);throw(0,n.$X)(t)&&await(0,n.QZ)(t),e}if(a.done)return a.value}}}const d=new c}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3527],{68197(e,t,r){r.d(t,{A:()=>h});var n=r(40876),i=r(4576),a=r(34727),s=r(78888);function o(e){return(0,a.qE)((0,s.Vr)(e),0,255)}function l(e,t){let r=e.toString(16).padStart(2,"0");return t?r.slice(0,1):r}function u(e){return.2126*(0,n.Q6)(e.r)+.7152*(0,n.Q6)(e.g)+.0722*(0,n.Q6)(e.b)}class h{static blendColors(e,t,r,n=new h){return n.r=Math.round(e.r+(t.r-e.r)*r),n.g=Math.round(e.g+(t.g-e.g)*r),n.b=Math.round(e.b+(t.b-e.b)*r),n.a=e.a+(t.a-e.a)*r,n._sanitize()}static fromRgb(e,t){let r=(0,n.lT)(e);return r?h.fromArray(r,t):null}static fromHex(e,t=new h){let r=(0,n.oW)(e);return r?h.fromArray(r,t):null}static fromArray(e,t=new h){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){let r=(0,n.Eq)(e);return r?h.fromArray(r,t):null}static fromJSON(e){return null==e?void 0:new h([e[0],e[1],e[2],(e[3]??255)/255])}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(e){return e??=[0,0,0,0],e[0]=this.r/255,e[1]=this.g/255,e[2]=this.b/255,e[3]=null==this.a?1:this.a,e}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return this.toYiq()>=127}isLowContrastBlend(e,t=3){let r=e instanceof h?e:new h(e),n=u(this),i=u(r);return(Math.max(n,i)+.05)/(Math.min(n,i)+.05)<t}setColor(e){if("string"==typeof e)h.fromString(e,this);else if((0,i.yc)(e))h.fromArray(e,this);else{let t=e;this._set(t.r??0,t.g??0,t.b??0,t.a??1),e instanceof h||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){let t=e?.capitalize??!1,r=e?.digits??6,n=3===r||4===r,i=4===r||8===r,a=`#${l(this.r,n)}${l(this.g,n)}${l(this.b,n)}${i?l(Math.round(255*this.a),n):""}`;return t?a.toUpperCase():a}toYiq(){return.299*this.r+.587*this.g+.114*this.b}toCss(e=!1){let t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=0){let t=o(this.r),r=o(this.g),n=o(this.b);return 0===e||1!==this.a?[t,r,n,o(255*this.a)]:[t,r,n]}clone(){return new h(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=(0,n.c1)(this.r),this.g=(0,n.c1)(this.g),this.b=(0,n.c1)(this.b),this.a=(0,n.G1)(this.a),this}_set(e,t,r,n){this.r=e,this.g=t,this.b=r,this.a=n}}h.prototype.declaredClass="esri.Color"},40876(e,t,r){r.d(t,{Eq:()=>f,G1:()=>m,Q6:()=>y,TS:()=>a,V6:()=>i,Vm:()=>g,ay:()=>l,c1:()=>p,c4:()=>s,j5:()=>u,lT:()=>c,oW:()=>h,xV:()=>v});const n={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function i(e){return!!n[e]||!!n[e.toLowerCase()]}function a(e){return n[e]??n[e.toLowerCase()]}function s(e){return[...a(e)]}function o(e,t,r){r<0&&++r,r>1&&--r;let n=6*r;return n<1?e+(t-e)*n:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function l(e,t,r,n=1){let i=(e%360+360)%360/360,a=r<=.5?r*(t+1):r+t-r*t,s=2*r-a;return[Math.round(255*o(s,a,i+1/3)),Math.round(255*o(s,a,i)),Math.round(255*o(s,a,i-1/3)),n]}function u(e){let t=e.length>5,r=t?8:4,n=(1<<r)-1,i=t?1:17,a=t?9===e.length:5===e.length,s=Number("0x"+e.slice(1));if(isNaN(s))return null;let o,l=[0,0,0,1];return a&&(o=s&n,s>>=r,l[3]=i*o/255),o=s&n,s>>=r,l[2]=i*o,o=s&n,s>>=r,l[1]=i*o,o=s&n,s>>=r,l[0]=i*o,l}function h(e){if(!e.startsWith("#")||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{let t=parseInt(e.slice(1,2),16),r=parseInt(e.slice(2,3),16),n=parseInt(e.slice(3,4),16),i=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,r+16*r,n+16*n,(i+16*i)/255]}case 7:case 9:return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16),(7===e.length?255:parseInt(e.slice(7),16))/255];default:return null}}function c(e){let t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){let e=t[2].split(/\s*,\s*/),r=t[1];if("rgb"===r&&3===e.length||"rgba"===r&&4===e.length){if(e[0].endsWith("%")){let t=e.map(e=>2.56*parseFloat(e));return 4===e.length&&(t[3]=parseFloat(e[3])),d(t)}return d(e.map(e=>parseFloat(e)))}if("hsl"===r&&3===e.length||"hsla"===r&&4===e.length)return l(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function d(e){return e[0]=p(e[0]),e[1]=p(e[1]),e[2]=p(e[2]),e[3]=4===e.length?m(e[3]):1,e}function f(e){let t=i(e)?a(e):null;return t??=c(e),t??=h(e),t}function g(e){let t=f(e);return null==t?null:[t[0]/255,t[1]/255,t[2]/255,t[3]]}function m(e){return _(e,0,1)}function p(e){return Math.round(_(e,0,255))}function _(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}const b=1/2.2;function y(e){return e**2.2}function v(e){return e**b}r.d(t,["iw",0,b])},85334(e,t,r){r.d(t,{$:()=>b,IB:()=>o,Iy:()=>S,KV:()=>E,N2:()=>y,RH:()=>R,ZD:()=>v,sn:()=>M});var n=r(68197),i=r(4576),a=r(4718),s=r(34727);function o(e){return"r"in e&&"g"in e&&"b"in e}function l(e){return"h"in e&&"s"in e&&"v"in e}function u(e){return"l"in e&&"a"in e&&"b"in e}function h(e){return"l"in e&&"c"in e&&"h"in e}r(78955),r(91829);const c=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],d=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];function f(e,t){let r,n,i=[];if(e[0].length!==t.length)throw Error("dimensions do not match");let a=e.length,s=e[0].length,o=0;for(r=0;r<a;r++){for(o=0,n=0;n<s;n++)o+=e[r][n]*t[n];i.push(o)}return i}function g(e){let t=[e.r/255,e.g/255,e.b/255].map(e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4),r=f(c,t);return{x:100*r[0],y:100*r[1],z:100*r[2]}}function m(e){let t=f(d,[e.x/100,e.y/100,e.z/100]).map(e=>{let t=e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055;return Math.min(1,Math.max(t,0))});return{r:Math.round(255*t[0]),g:Math.round(255*t[1]),b:Math.round(255*t[2])}}function p(e){let t=[e.x/95.047,e.y/100,e.z/108.883].map(e=>e>(6/29)**3?e**(1/3):1/3*(29/6)**2*e+4/29);return{l:116*t[1]-16,a:500*(t[0]-t[1]),b:200*(t[1]-t[2])}}function _(e){let t=e.l,r=[(t+16)/116+e.a/500,(t+16)/116,(t+16)/116-e.b/200].map(e=>e>6/29?e**3:3*(6/29)**2*(e-4/29));return{x:95.047*r[0],y:100*r[1],z:108.883*r[2]}}function b(e){return o(e)?e:h(e)?function(e){return m(_(function(e){let t=e.l,r=e.c,n=e.h;return{l:t,a:r*Math.cos(n),b:r*Math.sin(n)}}(e)))}(e):u(e)?function(e){return m(_(e))}(e):function(e){return"x"in e&&"y"in e&&"z"in e}(e)?m(e):l(e)?function(e){let t,r=(e.h+360)%360/60,n=e.s/100,i=e.v/100*255,a=i*n,s=a*(1-Math.abs(r%2-1));switch(Math.floor(r)){case 0:t={r:a,g:s,b:0};break;case 1:t={r:s,g:a,b:0};break;case 2:t={r:0,g:a,b:s};break;case 3:t={r:0,g:s,b:a};break;case 4:t={r:s,g:0,b:a};break;case 5:case 6:t={r:a,g:0,b:s};break;default:t={r:0,g:0,b:0}}return t.r=Math.round(t.r+i-a),t.g=Math.round(t.g+i-a),t.b=Math.round(t.b+i-a),t}(e):e}function y(e){return l(e)?e:function(e){let{r:t,g:r,b:n}=e,i=Math.max(t,r,n),a=i-Math.min(t,r,n),s=i,o=0===a?0:i===t?(r-n)/a%6:i===r?(n-t)/a+2:(t-r)/a+4,l=0===a?0:a/s;return o<0&&(o+=6),o*=60,l*=100,s*=100/255,{h:o,s:l,v:s}}(b(e))}function v(e){return u(e)?e:function(e){return p(g(e))}(b(e))}function R(e){return h(e)?e:function(e){return function(e){let t=e.l,r=e.a,n=e.b,i=Math.sqrt(r*r+n*n),a=Math.atan2(n,r);return a=a>0?a:a+2*Math.PI,{l:t,c:i,h:a}}(p(g(e)))}(b(e))}function E(e){return e[0]??=0,e[1]??=0,e[2]??=0,e}function M(e){return e.length=4,E(e),e[3]??=1,(0,s.qE)(e[3],0,1),e}function S(e,t,r={}){if(0===e.length||t<=0)return[];if(1===(e=e.map(e=>"string"==typeof e?new n.A(e):e)).length||1===t){let r=[],n=e[0];for(let e=0;e<t;e++)r.push(n.clone());return r}if(r.shuffle&&(e=(0,i.k4)((0,a.o8)(e),r.seed)),e.length>=t){let r=[],n=(e.length-1)/(t-1);for(let i=0;i<t;i++){let t=Math.round(i*n);r.push(e[t].clone())}return r}return function(e,t,r={}){let n=[],a=e.length-1,s=Math.ceil((t-e.length)/a);e:for(let i=0;i<a;i++){let a=e[i],o=e[i+1];for(let i=1;i<=s;i++){let l=i/(s+1);if(n.push(I(a,o,l,r)),n.length+e.length===t)break e}}return[...e.map(e=>e.clone()),...(0,i.k4)(n,r.seed??1)]}(e,t,r)}const T=(e,t)=>{let r=Math.floor(10*t())-5;return Math.min(255,Math.max(0,e+r))};function I(e,t,r,a={}){let s=e.r,o=e.g,l=e.b,u=t.r,h=t.g,c=t.b,d=Math.round(s+(u-s)*r),f=Math.round(o+(h-o)*r),g=Math.round(l+(c-l)*r);if(!a.offset)return new n.A([d,f,g]);let m=(0,i.Mo)(a.seed);return new n.A([T(d,m),T(f,m),T(g,m)])}},9093(e,t,r){function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}r.d(t,{o8:()=>i,vt:()=>n});const a=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:i,create:n,fromValues:function(e,t,r,n,i,a,s,o,l,u,h,c,d,f,g,m){return[e,t,r,n,i,a,s,o,l,u,h,c,d,f,g,m]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["zK",0,a])},58083(e,t,r){r.d(t,{$0:()=>_,$h:()=>A,B8:()=>h,C:()=>a,D_:()=>o,N9:()=>y,O7:()=>I,Qw:()=>u,Tl:()=>d,X_:()=>M,e$:()=>g,eL:()=>m,hM:()=>b,hZ:()=>s,hs:()=>f,kN:()=>p,l:()=>S,lw:()=>c,mg:()=>l,o1:()=>T,sC:()=>E,t2:()=>C,t5:()=>x,tZ:()=>O,ut:()=>N});var n=r(51850),i=r(34304);function a(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function s(e,t,r,n,i,a,s,o,l,u,h,c,d,f,g,m,p){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e[4]=a,e[5]=s,e[6]=o,e[7]=l,e[8]=u,e[9]=h,e[10]=c,e[11]=d,e[12]=f,e[13]=g,e[14]=m,e[15]=p,e}function o(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function l(e,t){if(e===t){let r=t[1],n=t[2],i=t[3],a=t[6],s=t[7],o=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=a,e[11]=t[14],e[12]=i,e[13]=s,e[14]=o}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}function u(e,t){return h(e,t)||o(e),e}function h(e,t){let r=t[0],n=t[1],i=t[2],a=t[3],s=t[4],o=t[5],l=t[6],u=t[7],h=t[8],c=t[9],d=t[10],f=t[11],g=t[12],m=t[13],p=t[14],_=t[15],b=r*o-n*s,y=r*l-i*s,v=r*u-a*s,R=n*l-i*o,E=n*u-a*o,M=i*u-a*l,S=h*m-c*g,T=h*p-d*g,I=h*_-f*g,A=c*p-d*m,x=c*_-f*m,w=d*_-f*p,C=b*w-y*x+v*A+R*I-E*T+M*S;return C?(C=1/C,e[0]=(o*w-l*x+u*A)*C,e[1]=(i*x-n*w-a*A)*C,e[2]=(m*M-p*E+_*R)*C,e[3]=(d*E-c*M-f*R)*C,e[4]=(l*I-s*w-u*T)*C,e[5]=(r*w-i*I+a*T)*C,e[6]=(p*v-g*M-_*y)*C,e[7]=(h*M-d*v+f*y)*C,e[8]=(s*x-o*I+u*S)*C,e[9]=(n*I-r*x-a*S)*C,e[10]=(g*E-m*v+_*b)*C,e[11]=(c*v-h*E-f*b)*C,e[12]=(o*T-s*A-l*S)*C,e[13]=(r*A-n*T+i*S)*C,e[14]=(m*y-g*R-p*b)*C,e[15]=(h*R-c*y+d*b)*C,e):null}function c(e,t,r){let n=t[0],i=t[1],a=t[2],s=t[3],o=t[4],l=t[5],u=t[6],h=t[7],c=t[8],d=t[9],f=t[10],g=t[11],m=t[12],p=t[13],_=t[14],b=t[15],y=r[0],v=r[1],R=r[2],E=r[3];return e[0]=y*n+v*o+R*c+E*m,e[1]=y*i+v*l+R*d+E*p,e[2]=y*a+v*u+R*f+E*_,e[3]=y*s+v*h+R*g+E*b,y=r[4],v=r[5],R=r[6],E=r[7],e[4]=y*n+v*o+R*c+E*m,e[5]=y*i+v*l+R*d+E*p,e[6]=y*a+v*u+R*f+E*_,e[7]=y*s+v*h+R*g+E*b,y=r[8],v=r[9],R=r[10],E=r[11],e[8]=y*n+v*o+R*c+E*m,e[9]=y*i+v*l+R*d+E*p,e[10]=y*a+v*u+R*f+E*_,e[11]=y*s+v*h+R*g+E*b,y=r[12],v=r[13],R=r[14],E=r[15],e[12]=y*n+v*o+R*c+E*m,e[13]=y*i+v*l+R*d+E*p,e[14]=y*a+v*u+R*f+E*_,e[15]=y*s+v*h+R*g+E*b,e}function d(e,t,r){let n=r[0],i=r[1],a=r[2];if(t===e)e[12]=t[0]*n+t[4]*i+t[8]*a+t[12],e[13]=t[1]*n+t[5]*i+t[9]*a+t[13],e[14]=t[2]*n+t[6]*i+t[10]*a+t[14],e[15]=t[3]*n+t[7]*i+t[11]*a+t[15];else{let r=t[0],s=t[1],o=t[2],l=t[3],u=t[4],h=t[5],c=t[6],d=t[7],f=t[8],g=t[9],m=t[10],p=t[11];e[0]=r,e[1]=s,e[2]=o,e[3]=l,e[4]=u,e[5]=h,e[6]=c,e[7]=d,e[8]=f,e[9]=g,e[10]=m,e[11]=p,e[12]=r*n+u*i+f*a+t[12],e[13]=s*n+h*i+g*a+t[13],e[14]=o*n+c*i+m*a+t[14],e[15]=l*n+d*i+p*a+t[15]}return e}function f(e,t,r){let n=r[0],i=r[1],a=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function g(e,t,r,n){let s=n[0],o=n[1],l=n[2],u=Math.sqrt(s*s+o*o+l*l);if(u<=(0,i.FD)())return void a(e,t);u=1/u,s*=u,o*=u,l*=u;let h=Math.sin(r),c=Math.cos(r),d=1-c,f=t[0],g=t[1],m=t[2],p=t[3],_=t[4],b=t[5],y=t[6],v=t[7],R=t[8],E=t[9],M=t[10],S=t[11],T=s*s*d+c,I=o*s*d+l*h,A=l*s*d-o*h,x=s*o*d-l*h,w=o*o*d+c,C=l*o*d+s*h,N=s*l*d+o*h,O=o*l*d-s*h,L=l*l*d+c;e[0]=f*T+_*I+R*A,e[1]=g*T+b*I+E*A,e[2]=m*T+y*I+M*A,e[3]=p*T+v*I+S*A,e[4]=f*x+_*w+R*C,e[5]=g*x+b*w+E*C,e[6]=m*x+y*w+M*C,e[7]=p*x+v*w+S*C,e[8]=f*N+_*O+R*L,e[9]=g*N+b*O+E*L,e[10]=m*N+y*O+M*L,e[11]=p*N+v*O+S*L,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15])}function m(e,t,r){let n=Math.sin(r),i=Math.cos(r),a=t[4],s=t[5],o=t[6],l=t[7],u=t[8],h=t[9],c=t[10],d=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=a*i+u*n,e[5]=s*i+h*n,e[6]=o*i+c*n,e[7]=l*i+d*n,e[8]=u*i-a*n,e[9]=h*i-s*n,e[10]=c*i-o*n,e[11]=d*i-l*n,e}function p(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}function _(e,t,r){if(0===t)return o(e);let n=r[0],a=r[1],s=r[2],l=Math.sqrt(n*n+a*a+s*s);if(l<=(0,i.FD)())return null;l=1/l,n*=l,a*=l,s*=l;let u=Math.sin(t),h=Math.cos(t),c=1-h;return e[0]=n*n*c+h,e[1]=a*n*c+s*u,e[2]=s*n*c-a*u,e[3]=0,e[4]=n*a*c-s*u,e[5]=a*a*c+h,e[6]=s*a*c+n*u,e[7]=0,e[8]=n*s*c+a*u,e[9]=a*s*c-n*u,e[10]=s*s*c+h,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function b(e,t){let r=Math.sin(t),n=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function y(e,t){let r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function v(e,t,r){let n=t[0],i=t[1],a=t[2],s=t[3],o=n+n,l=i+i,u=a+a,h=n*o,c=n*l,d=n*u,f=i*l,g=i*u,m=a*u,p=s*o,_=s*l,b=s*u;return e[0]=1-(f+m),e[1]=c+b,e[2]=d-_,e[3]=0,e[4]=c-b,e[5]=1-(h+m),e[6]=g+p,e[7]=0,e[8]=d+_,e[9]=g-p,e[10]=1-(h+f),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}const R=(0,n.vt)();function E(e,t){return e[0]=t[12],e[1]=t[13],e[2]=t[14],e}function M(e,t){let r=t[0],n=t[1],i=t[2],a=t[4],s=t[5],o=t[6],l=t[8],u=t[9],h=t[10];return e[0]=Math.sqrt(r*r+n*n+i*i),e[1]=Math.sqrt(a*a+s*s+o*o),e[2]=Math.sqrt(l*l+u*u+h*h),e}function S(e,t){let r=t[0]+t[5]+t[10],n=0;return r>0?(n=2*Math.sqrt(r+1),e[3]=.25*n,e[0]=(t[6]-t[9])/n,e[1]=(t[8]-t[2])/n,e[2]=(t[1]-t[4])/n):t[0]>t[5]&&t[0]>t[10]?(n=2*Math.sqrt(1+t[0]-t[5]-t[10]),e[3]=(t[6]-t[9])/n,e[0]=.25*n,e[1]=(t[1]+t[4])/n,e[2]=(t[8]+t[2])/n):t[5]>t[10]?(n=2*Math.sqrt(1+t[5]-t[0]-t[10]),e[3]=(t[8]-t[2])/n,e[0]=(t[1]+t[4])/n,e[1]=.25*n,e[2]=(t[6]+t[9])/n):(n=2*Math.sqrt(1+t[10]-t[0]-t[5]),e[3]=(t[1]-t[4])/n,e[0]=(t[8]+t[2])/n,e[1]=(t[6]+t[9])/n,e[2]=.25*n),e}function T(e,t,r,n){let i=t[0],a=t[1],s=t[2],o=t[3],l=i+i,u=a+a,h=s+s,c=i*l,d=i*u,f=i*h,g=a*u,m=a*h,p=s*h,_=o*l,b=o*u,y=o*h,v=n[0],R=n[1],E=n[2];return e[0]=(1-(g+p))*v,e[1]=(d+y)*v,e[2]=(f-b)*v,e[3]=0,e[4]=(d-y)*R,e[5]=(1-(c+p))*R,e[6]=(m+_)*R,e[7]=0,e[8]=(f+b)*E,e[9]=(m-_)*E,e[10]=(1-(c+g))*E,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}function I(e,t,r,n,i){let a=t[0],s=t[1],o=t[2],l=t[3],u=a+a,h=s+s,c=o+o,d=a*u,f=a*h,g=a*c,m=s*h,p=s*c,_=o*c,b=l*u,y=l*h,v=l*c,R=n[0],E=n[1],M=n[2],S=i[0],T=i[1],I=i[2],A=(1-(m+_))*R,x=(f+v)*R,w=(g-y)*R,C=(f-v)*E,N=(1-(d+_))*E,O=(p+b)*E,L=(g+y)*M,P=(p-b)*M,D=(1-(d+m))*M;return e[0]=A,e[1]=x,e[2]=w,e[3]=0,e[4]=C,e[5]=N,e[6]=O,e[7]=0,e[8]=L,e[9]=P,e[10]=D,e[11]=0,e[12]=r[0]+S-(A*S+C*T+L*I),e[13]=r[1]+T-(x*S+N*T+P*I),e[14]=r[2]+I-(w*S+O*T+D*I),e[15]=1,e}function A(e,t,r,n,i,a,s){let o=1/(r-t),l=1/(i-n),u=1/(a-s);return e[0]=2*a*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*a*l,e[6]=0,e[7]=0,e[8]=(r+t)*o,e[9]=(i+n)*l,e[10]=(s+a)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=s*a*2*u,e[15]=0,e}function x(e,t,r,n){let a=t[0],s=t[1],l=t[2],u=a-r[0],h=s-r[1],c=l-r[2],d=(0,i.FD)();if(Math.abs(u)<d&&Math.abs(h)<d&&Math.abs(c)<d)return void o(e);let f=1/Math.sqrt(u*u+h*h+c*c);u*=f,h*=f,c*=f;let g=n[0],m=n[1],p=n[2],_=m*c-p*h,b=p*u-g*c,y=g*h-m*u;f=Math.sqrt(_*_+b*b+y*y),f?(f=1/f,_*=f,b*=f,y*=f):(_=0,b=0,y=0);let v=h*y-c*b,R=c*_-u*y,E=u*b-h*_;f=Math.sqrt(v*v+R*R+E*E),f?(f=1/f,v*=f,R*=f,E*=f):(v=0,R=0,E=0),e[0]=_,e[1]=v,e[2]=u,e[3]=0,e[4]=b,e[5]=R,e[6]=h,e[7]=0,e[8]=y,e[9]=E,e[10]=c,e[11]=0,e[12]=-(_*a+b*s+y*l),e[13]=-(v*a+R*s+E*l),e[14]=-(u*a+h*s+c*l),e[15]=1}function w(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e[4]=t[4]-r[4],e[5]=t[5]-r[5],e[6]=t[6]-r[6],e[7]=t[7]-r[7],e[8]=t[8]-r[8],e[9]=t[9]-r[9],e[10]=t[10]-r[10],e[11]=t[11]-r[11],e[12]=t[12]-r[12],e[13]=t[13]-r[13],e[14]=t[14]-r[14],e[15]=t[15]-r[15],e}function C(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]}function N(e){let t=(0,i.FD)(),r=e[0],n=e[1],a=e[2],s=e[4],o=e[5],l=e[6],u=e[8],h=e[9],c=e[10];return Math.abs(1-(r*r+s*s+u*u))<=t&&Math.abs(1-(n*n+o*o+h*h))<=t&&Math.abs(1-(a*a+l*l+c*c))<=t}function O(e){return 1===e[0]&&0===e[1]&&0===e[2]&&0===e[4]&&1===e[5]&&0===e[6]&&0===e[8]&&0===e[9]&&1===e[10]}const L=c,P=w;Object.freeze(Object.defineProperty({__proto__:null,add:function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e[4]=t[4]+r[4],e[5]=t[5]+r[5],e[6]=t[6]+r[6],e[7]=t[7]+r[7],e[8]=t[8]+r[8],e[9]=t[9]+r[9],e[10]=t[10]+r[10],e[11]=t[11]+r[11],e[12]=t[12]+r[12],e[13]=t[13]+r[13],e[14]=t[14]+r[14],e[15]=t[15]+r[15],e},adjoint:function(e,t){let r=t[0],n=t[1],i=t[2],a=t[3],s=t[4],o=t[5],l=t[6],u=t[7],h=t[8],c=t[9],d=t[10],f=t[11],g=t[12],m=t[13],p=t[14],_=t[15];return e[0]=o*(d*_-f*p)-c*(l*_-u*p)+m*(l*f-u*d),e[1]=-(n*(d*_-f*p)-c*(i*_-a*p)+m*(i*f-a*d)),e[2]=n*(l*_-u*p)-o*(i*_-a*p)+m*(i*u-a*l),e[3]=-(n*(l*f-u*d)-o*(i*f-a*d)+c*(i*u-a*l)),e[4]=-(s*(d*_-f*p)-h*(l*_-u*p)+g*(l*f-u*d)),e[5]=r*(d*_-f*p)-h*(i*_-a*p)+g*(i*f-a*d),e[6]=-(r*(l*_-u*p)-s*(i*_-a*p)+g*(i*u-a*l)),e[7]=r*(l*f-u*d)-s*(i*f-a*d)+h*(i*u-a*l),e[8]=s*(c*_-f*m)-h*(o*_-u*m)+g*(o*f-u*c),e[9]=-(r*(c*_-f*m)-h*(n*_-a*m)+g*(n*f-a*c)),e[10]=r*(o*_-u*m)-s*(n*_-a*m)+g*(n*u-a*o),e[11]=-(r*(o*f-u*c)-s*(n*f-a*c)+h*(n*u-a*o)),e[12]=-(s*(c*p-d*m)-h*(o*p-l*m)+g*(o*d-l*c)),e[13]=r*(c*p-d*m)-h*(n*p-i*m)+g*(n*d-i*c),e[14]=-(r*(o*p-l*m)-s*(n*p-i*m)+g*(n*l-i*o)),e[15]=r*(o*d-l*c)-s*(n*d-i*c)+h*(n*l-i*o),e},copy:a,determinant:function(e){let t=e[0],r=e[1],n=e[2],i=e[3],a=e[4],s=e[5],o=e[6],l=e[7],u=e[8],h=e[9],c=e[10],d=e[11],f=e[12],g=e[13],m=e[14],p=e[15];return(t*s-r*a)*(c*p-d*m)-(t*o-n*a)*(h*p-d*g)+(t*l-i*a)*(h*m-c*g)+(r*o-n*s)*(u*p-d*f)-(r*l-i*s)*(u*m-c*f)+(n*l-i*o)*(u*g-h*f)},equals:function(e,t){if(e===t)return!0;let r=e[0],n=e[1],a=e[2],s=e[3],o=e[4],l=e[5],u=e[6],h=e[7],c=e[8],d=e[9],f=e[10],g=e[11],m=e[12],p=e[13],_=e[14],b=e[15],y=t[0],v=t[1],R=t[2],E=t[3],M=t[4],S=t[5],T=t[6],I=t[7],A=t[8],x=t[9],w=t[10],C=t[11],N=t[12],O=t[13],L=t[14],P=t[15],D=(0,i.FD)();return Math.abs(r-y)<=D*Math.max(1,Math.abs(r),Math.abs(y))&&Math.abs(n-v)<=D*Math.max(1,Math.abs(n),Math.abs(v))&&Math.abs(a-R)<=D*Math.max(1,Math.abs(a),Math.abs(R))&&Math.abs(s-E)<=D*Math.max(1,Math.abs(s),Math.abs(E))&&Math.abs(o-M)<=D*Math.max(1,Math.abs(o),Math.abs(M))&&Math.abs(l-S)<=D*Math.max(1,Math.abs(l),Math.abs(S))&&Math.abs(u-T)<=D*Math.max(1,Math.abs(u),Math.abs(T))&&Math.abs(h-I)<=D*Math.max(1,Math.abs(h),Math.abs(I))&&Math.abs(c-A)<=D*Math.max(1,Math.abs(c),Math.abs(A))&&Math.abs(d-x)<=D*Math.max(1,Math.abs(d),Math.abs(x))&&Math.abs(f-w)<=D*Math.max(1,Math.abs(f),Math.abs(w))&&Math.abs(g-C)<=D*Math.max(1,Math.abs(g),Math.abs(C))&&Math.abs(m-N)<=D*Math.max(1,Math.abs(m),Math.abs(N))&&Math.abs(p-O)<=D*Math.max(1,Math.abs(p),Math.abs(O))&&Math.abs(_-L)<=D*Math.max(1,Math.abs(_),Math.abs(L))&&Math.abs(b-P)<=D*Math.max(1,Math.abs(b),Math.abs(P))},exactEquals:C,frob:function(e){return Math.sqrt(e[0]**2+e[1]**2+e[2]**2+e[3]**2+e[4]**2+e[5]**2+e[6]**2+e[7]**2+e[8]**2+e[9]**2+e[10]**2+e[11]**2+e[12]**2+e[13]**2+e[14]**2+e[15]**2)},fromQuat:function(e,t){let r=t[0],n=t[1],i=t[2],a=t[3],s=r+r,o=n+n,l=i+i,u=r*s,h=n*s,c=n*o,d=i*s,f=i*o,g=i*l,m=a*s,p=a*o,_=a*l;return e[0]=1-c-g,e[1]=h+_,e[2]=d-p,e[3]=0,e[4]=h-_,e[5]=1-u-g,e[6]=f+m,e[7]=0,e[8]=d+p,e[9]=f-m,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromQuat2:function(e,t){let r=R,n=-t[0],i=-t[1],a=-t[2],s=t[3],o=t[4],l=t[5],u=t[6],h=t[7],c=n*n+i*i+a*a+s*s;return c>0?(r[0]=2*(o*s+h*n+l*a-u*i)/c,r[1]=2*(l*s+h*i+u*n-o*a)/c,r[2]=2*(u*s+h*a+o*i-l*n)/c):(r[0]=2*(o*s+h*n+l*a-u*i),r[1]=2*(l*s+h*i+u*n-o*a),r[2]=2*(u*s+h*a+o*i-l*n)),v(e,t,r),e},fromRotation:_,fromRotationTranslation:v,fromRotationTranslationScale:T,fromRotationTranslationScaleOrigin:I,fromScaling:function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromTranslation:p,fromXRotation:b,fromYRotation:function(e,t){let r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromZRotation:y,frustum:A,getRotation:S,getScale:M,getTranslation:E,hasIdentityRotation:O,identity:o,invert:h,invertOrIdentity:u,isOrthoNormal:N,lookAt:x,mul:L,multiply:c,multiplyScalar:function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*r,e[5]=t[5]*r,e[6]=t[6]*r,e[7]=t[7]*r,e[8]=t[8]*r,e[9]=t[9]*r,e[10]=t[10]*r,e[11]=t[11]*r,e[12]=t[12]*r,e[13]=t[13]*r,e[14]=t[14]*r,e[15]=t[15]*r,e},multiplyScalarAndAdd:function(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e[3]=t[3]+r[3]*n,e[4]=t[4]+r[4]*n,e[5]=t[5]+r[5]*n,e[6]=t[6]+r[6]*n,e[7]=t[7]+r[7]*n,e[8]=t[8]+r[8]*n,e[9]=t[9]+r[9]*n,e[10]=t[10]+r[10]*n,e[11]=t[11]+r[11]*n,e[12]=t[12]+r[12]*n,e[13]=t[13]+r[13]*n,e[14]=t[14]+r[14]*n,e[15]=t[15]+r[15]*n,e},ortho:function(e,t,r,n,i,a,s){let o=1/(t-r),l=1/(n-i),u=1/(a-s);return e[0]=-2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+r)*o,e[13]=(i+n)*l,e[14]=(s+a)*u,e[15]=1,e},perspective:function(e,t,r,n,i){let a,s=1/Math.tan(t/2);return e[0]=s/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=i&&i!==1/0?(a=1/(n-i),e[10]=(i+n)*a,e[14]=2*i*n*a):(e[10]=-1,e[14]=-2*n),e},perspectiveFromFieldOfView:function(e,t,r,n){let i=Math.tan(t.upDegrees*Math.PI/180),a=Math.tan(t.downDegrees*Math.PI/180),s=Math.tan(t.leftDegrees*Math.PI/180),o=Math.tan(t.rightDegrees*Math.PI/180),l=2/(s+o),u=2/(i+a);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-(s-o)*l*.5,e[9]=(i-a)*u*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e},rotate:g,rotateX:m,rotateY:function(e,t,r){let n=Math.sin(r),i=Math.cos(r),a=t[0],s=t[1],o=t[2],l=t[3],u=t[8],h=t[9],c=t[10],d=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i-u*n,e[1]=s*i-h*n,e[2]=o*i-c*n,e[3]=l*i-d*n,e[8]=a*n+u*i,e[9]=s*n+h*i,e[10]=o*n+c*i,e[11]=l*n+d*i,e},rotateZ:function(e,t,r){let n=Math.sin(r),i=Math.cos(r),a=t[0],s=t[1],o=t[2],l=t[3],u=t[4],h=t[5],c=t[6],d=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i+u*n,e[1]=s*i+h*n,e[2]=o*i+c*n,e[3]=l*i+d*n,e[4]=u*i-a*n,e[5]=h*i-s*n,e[6]=c*i-o*n,e[7]=d*i-l*n,e},scale:f,set:s,str:function(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"},sub:P,subtract:w,targetTo:function(e,t,r,n){let i=t[0],a=t[1],s=t[2],o=n[0],l=n[1],u=n[2],h=i-r[0],c=a-r[1],d=s-r[2],f=h*h+c*c+d*d;f>0&&(f=1/Math.sqrt(f),h*=f,c*=f,d*=f);let g=l*d-u*c,m=u*h-o*d,p=o*c-l*h;return f=g*g+m*m+p*p,f>0&&(f=1/Math.sqrt(f),g*=f,m*=f,p*=f),e[0]=g,e[1]=m,e[2]=p,e[3]=0,e[4]=c*p-d*m,e[5]=d*g-h*p,e[6]=h*m-c*g,e[7]=0,e[8]=h,e[9]=c,e[10]=d,e[11]=0,e[12]=i,e[13]=a,e[14]=s,e[15]=1,e},translate:d,transpose:l},Symbol.toStringTag,{value:"Module"}))},90629(e,t,r){r.d(t,{Lz:()=>i,PN:()=>a,cr:()=>s,gs:()=>l,r_:()=>u,tc:()=>o}),r(39829);const n=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i;function i(e){return e?e/72*96:0}function a(e){return e?72*e/96:0}function s(e){if("string"==typeof e){let t=e.match(n);if(t){let r=Number(t[1]),n=t[3]&&t[3].toLowerCase(),i=e.startsWith("-"),s="px"===n?a(r):r;return i?-s:s}return console.warn("screenUtils.toPt: input not recognized!"),null}return e}function o(e=0,t=0){return{x:e,y:t}}function l(e=0,t=0){return[e,t]}function u(e=0,t=0,r=0){return[e,t,r]}},4197(e,t,r){r.d(t,{Vj:()=>h,cj:()=>u,jh:()=>a,l5:()=>o,yH:()=>l});var n=r(34275),i=r(9093);function a(e){return e<=1024?Array(e).fill(0):new Float64Array(e)}function s(e){return((0,n.iu)(e)?e.byteLength/8:e.length)<=1024?Array.from(e):new Float64Array(e)}function o(e,t,r){return Array.isArray(e)?e.slice(t,t+r):e.subarray(t,t+r)}function l(e,t){if(0===t.length)return s(e);if(0===e.length)return s(t);let r=a(e.length+t.length);for(let t=0;t<e.length;++t)r[t]=e[t];for(let n=0;n<t.length;++n)r[e.length+n]=t[n];return r}function u(e){return[...e]}function h(e){let t=(0,i.vt)();for(let r=0;r<16;++r)t[r]=e[r];return t}},70328(e,t,r){r.d(t,{BI:()=>A,C:()=>s,DC:()=>d,Ej:()=>y,Ie:()=>T,Jt:()=>I,Lu:()=>R,Ne:()=>E,RF:()=>c,TF:()=>_,VL:()=>g,aI:()=>w,fA:()=>o,gE:()=>u,gX:()=>b,hZ:()=>S,iT:()=>f,is:()=>x,pg:()=>v,uJ:()=>p,vI:()=>M,vY:()=>l,vt:()=>a,w1:()=>h,yr:()=>m}),r(35522);var n=r(5443),i=(r(19419),r(4197));function a(e=N){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function s(e,t){for(let r=0;r<6;r++)e[r]=t[r];return e}function o(e,t,r,n,i,s,o=a()){return o[0]=e,o[1]=t,o[2]=r,o[3]=n,o[4]=i,o[5]=s,o}function l(e,t=a()){return function(e,t,r,n=a()){return S(n,C),function(e,t,r=0,n=t.length/3){let i=e[0],a=e[1],s=e[2],o=e[3],l=e[4],u=e[5];for(let e=0;e<n;e++)i=Math.min(i,t[r+3*e]),a=Math.min(a,t[r+3*e+1]),s=Math.min(s,t[r+3*e+2]),o=Math.max(o,t[r+3*e]),l=Math.max(l,t[r+3*e+1]),u=Math.max(u,t[r+3*e+2]);e[0]=i,e[1]=a,e[2]=s,e[3]=o,e[4]=l,e[5]=u}(n,e,t,r),n}(e,0,e.length/3,t)}function u(e,t=(0,i.jh)(24)){let[r,n,a,s,o,l]=e;return t[0]=r,t[1]=n,t[2]=a,t[3]=r,t[4]=n,t[5]=l,t[6]=r,t[7]=o,t[8]=a,t[9]=r,t[10]=o,t[11]=l,t[12]=s,t[13]=n,t[14]=a,t[15]=s,t[16]=n,t[17]=l,t[18]=s,t[19]=o,t[20]=a,t[21]=s,t[22]=o,t[23]=l,t}function h(e,t){return isFinite(e[2])||isFinite(e[5])?new n.A({xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}):new n.A({xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function c(e,t,r=e){r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r[2]=Math.min(e[2],t[2]),r[3]=Math.max(e[3],t[3]),r[4]=Math.max(e[4],t[4]),r[5]=Math.max(e[5],t[5])}function d(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function f(e,[t,r,n]){!function(e,t,r,n){e[0]=Math.min(e[0],t),e[1]=Math.min(e[1],r),e[2]=Math.min(e[2],n),e[3]=Math.max(e[3],t),e[4]=Math.max(e[4],r),e[5]=Math.max(e[5],n)}(e,t,r,n)}function g(e){return e[0]>=e[3]?0:e[3]-e[0]}function m(e){return e[1]>=e[4]?0:e[4]-e[1]}function p(e){return e[2]>=e[5]?0:e[5]-e[2]}function _(e){let t=g(e),r=p(e),n=m(e);return t*t+r*r+n*n}function b(e,t=[0,0,0]){return t[0]=e[0]+g(e)/2,t[1]=e[1]+m(e)/2,t[2]=e[2]+p(e)/2,t}function y(e,t=[0,0,0]){return t[0]=g(e),t[1]=m(e),t[2]=p(e),t}function v(e,t){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function R(e,t){return t[0]=e[3],t[1]=e[4],t[2]=e[5],t}function E(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function M(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function S(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function T(e){return e?S(e,C):a(C)}function I(e,t){return e[0]=t[0],e[1]=t[1],e[2]=-1/0,e[3]=t[2],e[4]=t[3],e[5]=1/0,e}function A(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=-1/0,e[3]=n,e[4]=i,e[5]=1/0,e}function x(e){return 6===e.length}function w(e,t,r){if(null==e||null==t)return e===t;if(!x(e)||!x(t))return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const C=[1/0,1/0,1/0,-1/0,-1/0,-1/0],N=[0,0,0,0,0,0];a(),r.d(t,["qv",0,C,"v_",0,N])},50498(e,t,r){var n=r(66552),i=r(5443),a=r(91075),s=r(48526),o=r(86738),l=r(39829),u=r(82799);const h=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),c=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),d={base:a.A,key:"type",typeMap:{extent:i.A,multipoint:s.A,point:o.A,polyline:u.A,polygon:l.A}},f=new n.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0});r.d(t,["Ye",0,c,"gy",0,h,"iI",0,f,"yR",0,d])},49013(e,t,r){r.r(t),r.d(t,{default:()=>pt});var n=r(32198),i=r(4576),a=r(69540),s=r(49186),o=r(36563),l=r(44208),u=r(53966),h=r(25728),c=r(17676),d=r(36708),f=r(91429),g=r(87024),m=r(4146),p=r(52136),_=r(18768),b=r(69208),y=r(34287),v=r(8303),R=r(25036),E=r(58947),M=r(10873),S=r(10292),T=r(58083),I=r(9093),A=r(35522),x=r(51850),w=r(34727),C=r(37539),N=r(79258);function O(e,t,r,n){let i=n+t;if(i<n/2||r>i)return Number.MAX_VALUE;let a=Math.abs(P*e)+Math.asin(r/i);return a>=Math.PI/2?Number.MAX_VALUE:r/Math.cos(a)}const L=(0,x.vt)(),P=(0,w.kU)(1);var D=r(27993),q=(r(73941),r(16930)),F=r(98764),U=r(4341),k=r(19419),Q=r(11964),G=r(27921),V=r(71351),j=r(44280),W=r(32114);const Z=()=>u.A.getLogger("esri.views.3d.support.geometryUtils.boundedPlane");function z(e=he){return{plane:(0,G.vt)(e.plane),origin:(0,x.o8)(e.origin),basis1:(0,x.o8)(e.basis1),basis2:(0,x.o8)(e.basis2)}}function B(e,t=z()){return $(e.origin,e.basis1,e.basis2,t)}function $(e,t,r,n=z()){return(0,A.C)(n.origin,e),(0,A.C)(n.basis1,t),(0,A.C)(n.basis2,r),H(n),function(e,t){Math.abs((0,A.Om)(e.basis1,e.basis2)/((0,A.Bw)(e.basis1)*(0,A.Bw)(e.basis2)))>1e-6&&Z().warn(t,"Provided basis vectors are not perpendicular"),Math.abs((0,A.Om)(e.basis1,ae(e)))>1e-6&&Z().warn(t,"Basis vectors and plane normal are not perpendicular"),Math.abs(-(0,A.Om)(ae(e),e.origin)-e.plane[3])>1e-6&&Z().warn(t,"Plane offset is not consistent with plane origin")}(n,"fromValues()"),n}function H(e){(0,G.mR)(e.basis2,e.basis1,e.origin,e.plane)}function Y(e,t,r){e!==r&&B(e,r);let n=(0,A.hs)(W.rq.get(),ae(e),t);return(0,A.WQ)(r.origin,r.origin,n),r.plane[3]-=t,r}function X(e,t=z()){let r=(e[2]-e[0])/2,n=(e[3]-e[1])/2;return(0,A.hZ)(t.origin,e[0]+r,e[1]+n,0),(0,A.hZ)(t.basis1,r,0,0),(0,A.hZ)(t.basis2,0,n,0),(0,G.fA)(0,0,1,0,t.plane),t}function K(e,t,r){return!!(0,G.Ui)(e.plane,t,r)&&se(e,r)}function J(e,t,r){let n=ce.get();ue(e,t,n,ce.get());let i=1/0;for(let a of me){let s=le(e,a,de.get()),o=W.rq.get();if((0,G.T7)(n,s,o)){let e=(0,A.oW)(W.rq.get(),t.origin,o),n=Math.abs((0,w.XM)((0,A.Om)(t.direction,e)));n<i&&(i=n,(0,A.C)(r,o))}}return i===1/0?ee(e,t,r):r}function ee(e,t,r){if(K(e,t,r))return r;let n=ce.get(),i=ce.get();ue(e,t,n,i);let a=1/0;for(let s of me){let o=le(e,s,de.get()),l=W.rq.get();if((0,G.gv)(n,o,l)){let e=(0,V.kb)(t,l);if(!(0,G.BX)(i,l))continue;e<a&&(a=e,(0,A.C)(r,l))}}return ne(e,t.origin)<a&&te(e,t.origin,r),r}function te(e,t,r){let n=(0,G._I)(e.plane,t,W.rq.get()),i=(0,Q.H6)(oe(e,e.basis1),n,-1,1,W.rq.get()),a=(0,Q.H6)(oe(e,e.basis2),n,-1,1,W.rq.get());return(0,A.Re)(r,(0,A.WQ)(W.rq.get(),i,a),e.origin),r}function re(e,t,r){let{origin:n,basis1:i,basis2:a}=e,s=(0,A.Re)(W.rq.get(),t,n),o=(0,j.gr)(i,s),l=(0,j.gr)(a,s),u=(0,j.gr)(ae(e),s);return(0,A.hZ)(r,o,l,u)}function ne(e,t){let r=re(e,t,W.rq.get()),{basis1:n,basis2:i}=e,a=(0,A.Bw)(n),s=(0,A.Bw)(i),o=Math.max(Math.abs(r[0])-a,0),l=Math.max(Math.abs(r[1])-s,0),u=r[2];return o*o+l*l+u*u}function ie(e,t){let r=-e.plane[3];return(0,j.gr)(ae(e),t)-r}function ae(e){return(0,G.Qj)(e.plane)}function se(e,t){let r=(0,A.Re)(W.rq.get(),t,e.origin),n=(0,A.m3)(e.basis1),i=(0,A.m3)(e.basis2),a=(0,A.Om)(e.basis1,r),s=(0,A.Om)(e.basis2,r);return-a-n<0&&a-n<0&&-s-i<0&&s-i<0}function oe(e,t){let r=de.get();return(0,A.C)(r.origin,e.origin),(0,A.C)(r.vector,t),r}function le(e,t,r){let{basis1:n,basis2:i,origin:a}=e,s=(0,A.hs)(W.rq.get(),n,t.origin[0]),o=(0,A.hs)(W.rq.get(),i,t.origin[1]);(0,A.WQ)(r.origin,s,o),(0,A.WQ)(r.origin,r.origin,a);let l=(0,A.hs)(W.rq.get(),n,t.direction[0]),u=(0,A.hs)(W.rq.get(),i,t.direction[1]);return(0,A.hs)(r.vector,(0,A.WQ)(l,l,u),2),r}function ue(e,t,r,n){let i=ae(e);(0,G.mR)(i,t.direction,t.origin,r),(0,G.mR)((0,G.Qj)(r),i,t.origin,n)}const he={plane:(0,G.vt)(),origin:(0,x.fA)(0,0,0),basis1:(0,x.fA)(1,0,0),basis2:(0,x.fA)(0,1,0)},ce=new U.I(G.vt),de=new U.I(Q.vt),fe=(0,x.vt)(),ge=new U.I(()=>z()),me=[{origin:[-1,-1],direction:[1,0]},{origin:[1,-1],direction:[0,1]},{origin:[1,1],direction:[-1,0]},{origin:[-1,1],direction:[0,-1]}],pe=(0,I.vt)(),_e=(0,I.vt)();Object.freeze(Object.defineProperty({__proto__:null,altitudeAt:ie,axisAt:function(e,t,r,n){return function(e,t,r){switch(t){case 0:(0,A.C)(r,e.basis1),(0,A.S8)(r,r);break;case 1:(0,A.C)(r,e.basis2),(0,A.S8)(r,r);break;case 2:(0,A.C)(r,ae(e))}return r}(e,r,n)},cameraFrustumCoverage:function(e,t){return(t-e)/t},closestPoint:ee,closestPointOnSilhouette:J,copy:B,copyWithoutVerify:function(e,t){(0,A.C)(t.origin,e.origin),(0,A.C)(t.basis1,e.basis1),(0,A.C)(t.basis2,e.basis2),(0,G.C)(t.plane,e.plane)},create:z,distance:function(e,t){return Math.sqrt(ne(e,t))},distance2:ne,distanceToSilhouette:function(e,t){let r=-1/0;for(let n of me){let i=le(e,n,de.get()),a=(0,Q.kb)(i,t);a>r&&(r=a)}return Math.sqrt(r)},elevate:Y,equals:function(e,t){return e===t||null==e&&null==t||null!=e&&null!=t&&(0,A.t2)(e.basis1,t.basis1)&&(0,A.t2)(e.basis2,t.basis2)&&(0,A.t2)(e.origin,t.origin)},extrusionContainsPoint:function(e,t){return(0,G.mN)(e.plane,t)>0&&se(e,t)},fromAABoundingRect:X,fromValues:$,getExtent:function(e,t){let r=e.basis1[0],n=e.basis2[1],[i,a]=e.origin;return(0,k.fA)(i-r,a-n,i+r,a+n,t)},intersectRay:K,intersectRayClosestSilhouette:function(e,t,r){if(K(e,t,r))return r;let n=J(e,t,W.rq.get());return(0,A.WQ)(r,t.origin,(0,A.hs)(W.rq.get(),t.direction,(0,A.Io)(t.origin,n)/(0,A.Bw)(t.direction))),r},normal:ae,projectPoint:te,projectPointLocal:re,rotate:function(e,t,r,n){return e!==n&&B(e,n),(0,T.$0)(_e,t,r),(0,A.Z0)(n.basis1,e.basis1,_e),(0,A.Z0)(n.basis2,e.basis2,_e),H(n),n},setAltitudeAt:function(e,t,r,n){let i=ie(e,t),a=(0,A.hs)(fe,ae(e),r-i);return(0,A.WQ)(n,t,a),n},setExtent:function(e,t,r){return X(t,r),Y(r,ie(e,e.origin),r),r},transform:function(e,t,r){return e!==r&&B(e,r),(0,T.B8)(pe,t),(0,T.mg)(pe,pe),(0,A.Z0)(r.basis1,e.basis1,pe),(0,A.Z0)(r.basis2,e.basis2,pe),(0,A.Z0)((0,G.Qj)(r.plane),(0,G.Qj)(e.plane),pe),(0,A.Z0)(r.origin,e.origin,t),(0,G.mP)(r.plane,r.plane,r.origin),r},up:he,updateUnboundedPlane:H,wrap:function(e,t,r){let n=ge.get();return n.origin=e,n.basis1=t,n.basis2=r,n.plane=(0,G.LV)(0,0,0,0),H(n),n}},Symbol.toStringTag,{value:"Module"}));var be=r(94008);(0,x.vt)(),(0,x.vt)();var ye=r(89707);class ve extends ye.H{constructor(e,t){super(NaN,NaN),this.id=e,this.serviceMbsInIndexSR=t,this._serviceMbsInRenderSRElevationAdjusted=new be.iy(0,0,0,-1),this._serviceMbsInRenderSR=new be.iy(0,0,0,-1),this._mbsConeInRenderSR=null}get serviceMbsInRenderSRElevationAdjusted(){return this._serviceMbsInRenderSRElevationAdjusted}updateServiceMbsInRenderSRElevationAdjusted(e){return this._serviceMbsInRenderSRElevationAdjusted.copyFrom(e),this._serviceMbsInRenderSRElevationAdjusted}get serviceMbsInRenderSR(){return this._serviceMbsInRenderSR}updateServiceMbsInRenderSR(e){return this._serviceMbsInRenderSR.copyFrom(e),this._serviceMbsInRenderSR}get mbsConeInRenderSR(){return this._mbsConeInRenderSR}updateMbsConeInRenderSR(e){return this._mbsConeInRenderSR=e.clone(),this._mbsConeInRenderSR}invalidateServiceBVsInRenderSR(){this._serviceMbsInRenderSRElevationAdjusted.invalidate(),this._serviceMbsInRenderSR.invalidate(),this._mbsConeInRenderSR=null,this.serviceObbInRenderSR?.invalidate()}shareServiceBVsInRenderSRWith(e){this.serviceObbInRenderSR=e.serviceObbInRenderSR,this._serviceMbsInRenderSRElevationAdjusted=e._serviceMbsInRenderSRElevationAdjusted,this._serviceMbsInRenderSR=e._serviceMbsInRenderSR,this._mbsConeInRenderSR=e._mbsConeInRenderSR}}class Re extends ve{constructor(e,t,r,n,i,a,s,o,l,u,h){super(e,r),this.index=t,this.childCount=n,this.level=i,this.resources=a,this.version=s,this.lodMetric=o,this.maxError=l,this.numFeatures=u,this.failed=!1,this.cacheState=0,this.vertexCount=0,this.memory=0,this.childrenLoaded=0,this.hasModifications=!1,this.imModificationImpact=4,this.elevationAgnosticBoundingVolume=new Ee,this.serviceObbInIndexSR=h}invalidateServiceBVsInRenderSR(){super.invalidateServiceBVsInRenderSR(),this.elevationAgnosticBoundingVolume.invalidate()}}class Ee{constructor(){this._data=[0,0,0,Ee.invalidRadius]}static{this.invalidRadius=-2}invalidate(){this._data[3]=Ee.invalidRadius}get valid(){return this._data[3]!==Ee.invalidRadius}get radius(){return this._data[3]}getAxis(e){return e[0]=this._data[0],e[1]=this._data[1],e[2]=this._data[2],e}set(e,t){this._data[0]=e[0],this._data[1]=e[1],this._data[2]=e[2],this._data[3]=t}intersectsFrustumConservative(e,t,r){if(!this.valid)return!0;let n=this.getAxis(Me),{center:i,radius:a}=e.boundingSphere,s=a+r;return 1===t?this.radius>Se||function(e,t,r,n){let i=(0,A.Bw)(r);if(i<=n)return!0;let a=(0,A.Om)(e,r);if(a<=0)return-a<=n;let s=(0,w.qE)(a/i,-1,1),o=Math.sqrt(1-s*s),l=(0,w.qE)(n/i,0,1);return o*Math.sqrt(1-l*l)-l*s<=t}(n,this.radius,i,s):function(e,t,r,n){let i=r[0]-e[0],a=r[1]-e[1],s=t+n;return i*i+a*a<=s*s}(n,this.radius,i,s)&&function(e,t,r,n,i){for(let a of i){let i=a[0],s=a[1],o=a[2],l=o>0?r:n;if(i*e[0]+s*e[1]+o*l+a[3]-Math.hypot(i,s)*t>0)return!1}return!0}(n,this.radius,i[2]-s,i[2]+s,e.planes)}}const Me=(0,x.vt)(),Se=.9;var Te=r(25992),Ie=r(66480),Ae=r(57005),xe=r(4431),we=r(62747),Ce=r(58682),Ne=r(92359);class Oe{constructor(e,t,r){this._layer=e,this._descriptor=t,this._options=r,this._subtaskAbortController=new AbortController,this._highest=-1/0,this._signal=AbortSignal.any([r.signal,this._subtaskAbortController.signal]),this._indexSpatialReference=(0,Ie.Rm)(e),this._vertexSpatialReference=(0,Ie.Dd)(e),this._intersectionSpaceSpatialReference=function(e,t){return e?(0,F.lO)(t):t.isGeographic?q.A.PlateCarree:t}(this._indexSpatialReference.isGeographic,this._indexSpatialReference),this._indexToVertexProjector=(0,C.wy)(this._indexSpatialReference,this._vertexSpatialReference),this._vertexToIntersectionSpaceProjector=(0,C.wy)(this._vertexSpatialReference,this._intersectionSpaceSpatialReference),this.frameTask=r.scheduler.registerTask(Ne.W6.ELEVATION_QUERY),this.promise=this._run()}async _run(){let e={stack:[],error:void 0,hasError:!1};try{(0,n.mS)(e,this.frameTask,!1);try{let e=this._descriptor;if("point"!==e.geometry.type)throw new s.A("elevation-query:invalid-geometry","Only point geometries can be used to query elevation");if(null==this._indexToVertexProjector||null==this._vertexToIntersectionSpaceProjector)throw new s.A("integrated-mesh-elevation-query:projection","Failed to create projection for elevation query.");let t=await e.project(this._indexSpatialReference,this._signal);(0,c.Te)(this._signal),t??this._throwSpatialReferenceMismatchError();let r=t.coordinates[0],n=function(e,t,r,n,i){let a=(0,x.fA)(e,t,r),s=(0,x.fA)(e,t,r-1e3),o=(0,x.vt)(),l=(0,x.vt)();return(0,D.F)(a,n,o,i)&&(0,D.F)(s,n,l,i)?(0,V.Cr)(o,l):null}(r.x,r.y,this.getRootRayOriginZ(),this._indexSpatialReference,this._intersectionSpaceSpatialReference);return n??this._throwSpatialReferenceMismatchError(),this._queryRay=n,await this.visitRoot(),(0,c.Te)(this._signal),r.z=this._highest===-1/0?De:this._highest,t}catch(e){throw this._subtaskAbortController.abort(),e}}catch(t){e.error=t,e.hasError=!0}finally{(0,n.hk)(e)}}_throwSpatialReferenceMismatchError(){throw new s.A("elevation-query:spatial-reference-mismatch",`Cannot query elevation in '${this._descriptor.spatialReference.wkid}' on an elevation service in '${this._indexSpatialReference.wkid}'`)}_intersectsQueryObb(e){let t=this._queryRay,r=new Ae.ab;return e.transform(r,this._indexSpatialReference,this._intersectionSpaceSpatialReference),r.intersectRay(t.origin,t.direction)}intersectsQueryBounds(e){if(null==e)return!0;let t=this._queryRay;if(null!=e.obb)return this._intersectsQueryObb(Ae.ab.fromJSON(e.obb));let r=new be.iy;return!function(e,t,r,n){if(null==e||null==t||null==n)return!1;let i=(0,C.Tp)(t,n);if(null==i?.projector)return!1;if(i.projector===C.pO)return r.copyFrom(e),!0;let{source:a,dest:s,projector:o}=i;if(3===s.spatialReferenceId){let t=C.w5[a.spatialReferenceId][2];return null!=t&&(t(e.center,0,L,0),(0,C.s7)(L,0,r.center,0),r.radius=O(L[1],e.center[2],e.radius,N.$O.radius),!0)}if(2!==a.spatialReferenceId&&5!==a.spatialReferenceId||11!==s.spatialReferenceId){o(e.center,0,r.center,0);let t=a.metersPerUnit??1,n=s.metersPerUnit??1;r.radius=e.radius*t/n}else{let t=C.w5[a.spatialReferenceId][1],n=C.w5[1][11],i=e.radius;null!=t&&null!=n&&(i=O(e.center[1],e.center[2],e.radius,N.$O.radius)),o(e.center,0,r.center,0),r.radius=i}return!0}(new be.iy(e.mbs),this._indexSpatialReference,r,this._intersectionSpaceSpatialReference)||r.intersectRay(t)}async _processLeafNode(e){let t=await this._layer.elevationQueryNodeLoader.loadNodeData(e,this._signal);if((0,c.Te)(this._signal),null==t.geometryBuffer||null==t.geometryDescriptor)return;let r=await this.transformNode(e,t);(0,c.Te)(this._signal),null!=r&&await this.frameTask.schedule(()=>{this._highest=this.intersectTransformedGeometry(r,this._highest,this._options.elevationOffset)},this._signal)}async transformNode(e,t){let r=e.serviceMbsInIndexSR;if(null==r)return null;let n=(0,Te.C)(r,0,qe,this._indexSpatialReference,this._intersectionSpaceSpatialReference),i={context:`i3s-elevation-query-${this._layer.uid}`,geometryBuffer:t.geometryBuffer,geometryData:null,geometryDescriptor:t.geometryDescriptor,layouts:[Fe],globalTrafo:n,geometryElevationOffset:0,mbs:r.toJSON(),obbData:e.serviceObbInIndexSR?.data,elevationOffset:0,planetRadiusInGlobalMode:0,needNormals:!1,computeNormals:!1,normalReferenceFrame:qe,indexToVertexProjector:this._indexToVertexProjector,vertexToRenderProjector:this._vertexToIntersectionSpaceProjector},a=await this._layer.processElevationQueryGeometry(i,this._signal);return(0,c.Te)(this._signal),a}intersectTransformedGeometry(e,t,r){let n=e.globalTrafo;if(null==(0,T.B8)(Ue,n))return t;let i=this._queryRay,a=(0,A.Z0)(ke,i.origin,Ue),s=(0,A.WQ)(Qe,i.origin,i.direction),o=(0,A.Z0)(Ge,s,Ue),l=(0,A.jb)(Ve,o,a),{data:u,indices:h}=e.transformedGeometry.positionData,c=h.length/3,d=t;return(0,Ce.h7)(a,l,0,c,h,u,3,!1,e=>{let t=(0,A.hs)(je,l,e);(0,A.WQ)(t,t,a);let i=(0,A.Z0)(We,t,n),s=Ze;if((0,D.F)(i,this._intersectionSpaceSpatialReference,s,this._layer.spatialReference)){let e=s[2]+r;d=Math.max(d,e)}}),d}async requestJSON(e){let t=await this._layer.elevationQueryDataRequester.request(e,"json",this._signal);return(0,c.Te)(this._signal),t}}class Le extends Oe{constructor(e,t,r,n){super(e,t,r),this._pendingPages=new Map,this._loadedPages=new Map,this._pageSize=n.pageSize,this._rootIndex=n.rootIndex,this._urlPrefix=n.urlPrefix;let i=this._pageId(this._rootIndex),a=this._rootIndex-i*this._pageSize,s=Ae.ab.fromJSON(n.rootPage.nodes[a].obb);this._rootRayOriginZ=s.centerZ+s.radius+1,this._loadedPages.set(i,n.rootPage)}visitRoot(){return this._visitNode(this._rootIndex)}getRootRayOriginZ(){return this._rootRayOriginZ}_pageId(e){return Math.floor(e/this._pageSize)}getPage(e){let t=this._loadedPages.get(e);if(null!=t)return Promise.resolve(t);let r=this._pendingPages.get(e);if(null!=r)return r;let n=this.requestJSON(`${this._urlPrefix}${e}`);return this._pendingPages.set(e,n),n.then(t=>{this._loadedPages.set(e,t),this._pendingPages.delete(e)},()=>this._pendingPages.delete(e)),n}async _visitNode(e){let t=this._pageId(e),r=await this.getPage(t);(0,c.Te)(this._signal);let n=r.nodes[e-t*this._pageSize],i=Ae.ab.fromJSON(n.obb);if(!this._intersectsQueryObb(i))return;let{children:a}=n;if(null!=a&&a.length>0)return await Promise.all(a.map(e=>this._visitNode(e))),void(0,c.Te)(this._signal);let s=this._createNode(e,n,i);null!=s&&(await this._processLeafNode(s),(0,c.Te)(this._signal))}_createNode(e,t,r){let{mesh:n}=t;if(null==n?.geometry)return null;let i=new be.iy(r.getCenter((0,x.vt)()),r.radius),{geometry:a,material:s}=n;return new Re(`${e}`,e,i,t.children?.length??0,0,{hasSharedResource:!1,isEmpty:!1,geometry:`${a.resource}`,geometryDefinition:a.definition,materialDefinition:s?.definition??-1},"",0,0,a.featureCount??null,r)}}class Pe extends Oe{constructor(e,t,r,n){super(e,t,r),this._rootNode=n.rootNode,this._urlPrefix=n.urlPrefix}visitRoot(){return this.intersectsQueryBounds(this._rootNode)?this._visitNodeData(this._rootNode,null!=this._rootNode.obb):Promise.resolve()}getRootRayOriginZ(){return this._rootNode.mbs[2]+this._rootNode.mbs[3]+1}_visitNode(e){return this.intersectsQueryBounds(e)?this._visitNodeAsync(e):Promise.resolve()}async _visitNodeAsync(e){let t=await this.requestJSON(`${this._urlPrefix}${e.id}`);(0,c.Te)(this._signal),await this._visitNodeData(t,null!=e.obb),(0,c.Te)(this._signal)}async _visitNodeData(e,t){if(!t&&null!=e.obb&&!this._intersectsQueryObb(Ae.ab.fromJSON(e.obb)))return;let{children:r}=e;if(null!=r&&r.length>0)return await Promise.all(r.map(e=>this._visitNode(e))),void(0,c.Te)(this._signal);let n=this._createNode(e);null!=n&&(await this._processLeafNode(n),(0,c.Te)(this._signal))}_createNode(e){let{geometryData:t,id:r}=e;if(null==t||0===t.length)return null;let n=null==e.obb?null:Ae.ab.fromJSON(e.obb),i=new be.iy(e.mbs);return new Re(r,0,i,e.children?.length??0,0,{hasSharedResource:null!=e.sharedResource,isEmpty:!1,geometry:r,geometryDefinition:0},e.version??"",0,0,null,n)}}const De=Number.MAX_VALUE,qe="none",Fe=(0,xe.U)((0,we.hH)(new we.W7(!1,!1,0))),Ue=(0,I.vt)(),ke=(0,x.vt)(),Qe=(0,x.vt)(),Ge=(0,x.vt)(),Ve=(0,x.vt)(),je=(0,x.vt)(),We=(0,x.vt)(),Ze=(0,x.vt)();var ze=r(50805),Be=r(58325),$e=r(24212),He=r(80215),Ye=r(97159),Xe=r(16215),Ke=r(98697),Je=r(56507),et=r(97768),tt=r(50075);class rt{constructor(e,t){this._customParameters=e,this._apiKey=t,this._activeRequests=new Set}isFull(e){return(0,tt._i)(e)}request(e,t,r){let n=new AbortController,i=(0,c.NY)(r,()=>n.abort()),a={...tt.Fz,signal:n.signal,responseType:t,query:{...this._customParameters,token:this._apiKey}},s=(0,Je.A)(e,a),o={abortController:n,abortHandle:i};return this._activeRequests.add(o),s.then(({data:e})=>e).finally(()=>{o.abortController=null,o.abortHandle=(0,et.xt)(o.abortHandle),this._activeRequests.delete(o)})}cancelAll(){this._activeRequests.forEach(e=>{e.abortController=(0,et.DC)(e.abortController),e.abortHandle=(0,et.xt)(e.abortHandle)}),this._activeRequests.clear()}}var nt=r(60999),it=r(4718),at=r(84952),st=r(59418),ot=r(85334);r(91829),r(46859);var lt=r(74810),ut=r(49788);function ht(e){return e.sort((e,t)=>e.encoding-t.encoding)}const ct={ktx2:1,basis:2,dds:4,png:8,jpg:16,"ktx-etc2":32},dt={"image/ktx2":2,"image/x.basis":2,"image/vnd-ms.dds":4,"image/png":8,"image/jpg":16,"image/jpeg":16,"image/ktx":32};class ft{constructor(e,t,r,n,i,a){if(this._requester=t,this._logger=r,this._defaultGeometrySchema=n,this._requiredAttributes=i,this._options=a,this._logLayer=e,this._layerUrl=e.parsedUrl.path,this._geometryDefinitions=e.geometryDefinitions,e.materialDefinitions){let t=e.textureSetDefinitions;this._materialAndTextures=e.materialDefinitions.map(r=>function(e,t,r){let n=new Map,i=(e,t)=>{if(null==e)return-1;let r=n.get(e.id);if(r)return r.usage|=t,r.id;let i=n.size;return n.set(e.id,{id:i,usage:t}),i},a=t.pbrMetallicRoughness,s=a?.baseColorFactor?(0,ot.sn)(a.baseColorFactor):null,o=t.emissiveFactor,l=r&&0===a?.metallicFactor||(0,lt.Jr)({normalTexture:t.normalTexture,emissiveTexture:t.emissiveTexture,emissiveFactor:t.emissiveFactor,occlusionTexture:t.occlusionTexture,metallicRoughnessTexture:a?.metallicRoughnessTexture,metallicFactor:a?.metallicFactor,roughnessFactor:a?.roughnessFactor}),u=l?lt.Bt[0]:a?.metallicFactor??lt.mb[0],h=l?lt.Bt[1]:a?.roughnessFactor??lt.mb[1],c="mask"===t.alphaMode?33:1,d={baseColorFactor:s?[s[0],s[1],s[2],s[3]]:[1,1,1,1],baseColorTextureId:i(a?.baseColorTexture,c),metallicRoughnessTextureId:i(a?.metallicRoughnessTexture,2),metallicFactor:u,roughnessFactor:h},f={alphaMode:t.alphaMode,alphaCutoff:t.alphaCutoff,doubleSided:t.doubleSided,cullFace:"none"===t.cullFace?0:"back"===t.cullFace?2:+("front"===t.cullFace),normalTextureId:i(t.normalTexture,4),emissiveTextureId:i(t.emissiveTexture,16),occlusionTextureId:i(t.occlusionTexture,8),emissiveFactor:o?[o[0],o[1],o[2]]:[0,0,0],metallicRoughness:d,wrapTextures:!1,hasParametersFromSource:l},g=[];return n.forEach(({usage:t},r)=>{let n=null!=e&&e[r]&&e[r].formats,i=n?ht(n.map(({name:e,format:t})=>({name:e,encoding:ct[t]}))):[];g.push({id:r,usage:t,encodings:i})}),{material:f,textures:g}}(t,r,"integrated-mesh"===e.type))}}_loadAttribute(e,t,r){let n=`${this._layerUrl}/nodes/${e.resources.attributes}/attributes/${t.key}/0`;return this._requester.request(n,"array-buffer",r).then(e=>(0,st.m0)(t,e))}async loadAttributes(e,t,r){let n=await Promise.allSettled(t.map(t=>this._loadAttribute(e,t.attributeStorageInfo,r))),i={};for(let r=0;r<t.length;++r){let a=n[r],s=t[r];if("fulfilled"===a.status){let e=a.value;i[s.name]=e}else{let t=a.reason;(0,c.QP)(t),this._logger.error("#loadAttributes",this._logLayer,`Failed to load attributeData for '${s.name}' on node '${e.id}'`,t)}}return i}async loadNodeData(e,t){let r=null!=this._requiredAttributes&&e.resources.attributes?(0,nt.Ke)(this.loadAttributes(e,this._requiredAttributes,t)):null,{bufferDefinition:n,bufferIndex:i}=function(e,t){let r={bufferDefinition:null,bufferIndex:0},n=t.resources.geometryDefinition;if(null==e||null==n||n<0)return r;let i=n>=0?e[n].geometryBuffers:null;if(null==i)return r;for(let e=0;e<i.length;e++){let t=i[e];if(null==t.compressedAttributes)r.bufferIndex=e,r.bufferDefinition=i[e];else if("draco"===t.compressedAttributes.encoding&&!(0,l.A)("disable-feature:i3s-draco"))return r.bufferIndex=e,r.bufferDefinition=t,r}return r}(this._geometryDefinitions,e),a=!!e.resources.geometry,s=a?(0,nt.Ke)(this._loadGeometry(e.resources.geometry,i,t)):null,o=e.resources.hasSharedResource?await this._loadShared(e,t):null,u=e.resources.materialDefinition,h=this._materialAndTextures&&null!=u&&u>=0?this._materialAndTextures[u]:null==o?null:function(e){let t=e?.materialDefinitions?Object.keys(e.materialDefinitions)[0]:null,r=e?.textureDefinitions?Object.keys(e.textureDefinitions)[0]:null,n=t?e.materialDefinitions?.[t]:null,i=r?e.textureDefinitions?.[r]:null,a={alphaMode:"opaque",alphaCutoff:ut.Q,doubleSided:!0,cullFace:0,normalTextureId:-1,emissiveTextureId:-1,occlusionTextureId:-1,emissiveFactor:[0,0,0],metallicRoughness:{baseColorFactor:[.8,.8,.8,1],baseColorTextureId:-1,metallicRoughnessTextureId:-1,metallicFactor:0,roughnessFactor:.6},wrapTextures:!1,hasParametersFromSource:!0};if(null!=n){let e=n.params;e.diffuse&&((0,ot.KV)(e.diffuse),a.metallicRoughness.baseColorFactor=[e.diffuse[0],e.diffuse[1],e.diffuse[2],1]),null!=e.doubleSided&&(a.doubleSided=e.doubleSided,a.cullFace=e.doubleSided?0:2),("none"===e.cullFace||"front"===e.cullFace||"back"===e.cullFace)&&(a.cullFace="none"===e.cullFace?0:"back"===e.cullFace?2:1),e.transparency&&(a.metallicRoughness.baseColorFactor[3]=(0,w.qE)(1-e.transparency,0,1)),(e.useVertexColorAlpha||a.metallicRoughness.baseColorFactor[3]<1)&&(a.alphaMode="blend")}let s=[];if(null!=i){i.wrap&&("repeat"===i.wrap[0]||"repeat"===i.wrap[1])&&(a.wrapTextures=!0);let e=1;"rgba"===i.channels&&(a.alphaMode="blend",e|=32);let t=i.images.length-1,r=i.images[t],n=e=>e?.split("/").pop(),o=Array.isArray(i.encoding)?ht(i.encoding.map((e,t)=>({name:n(r.href[t]),encoding:dt[e]||0}))):[{name:n(r.href),encoding:dt[i.encoding]||0}];s.push({id:0,usage:e,encodings:o}),a.metallicRoughness.baseColorTextureId=0}return{material:a,textures:s}}(o),c=h?.material,d=h?.textures??[],f=`${e.id}`,g=!a&&this._options.loadFeatureData,m=g?await this._loadFeatureData(f,t):null,p=g?function(e){if(!e)return null;for(let t of e.featureData){let e=t.geometries;if(null!=e)for(let r of e)return{featureIds:[t.id],featureDataPosition:t.position,geometries:[r]}}return null}(m):{featureIds:[],geometries:[{type:"ArrayBufferView",params:{material:c}}],featureDataPosition:[0,0,0]},_=null==p?function(e){if(!e)return null;let t=[];for(let r of e.featureData)null!=r.position&&t.push({featureIds:[r.id],featureDataPosition:r.position,geometries:[]});return t}(m):null,b=d.length>0?(0,nt.Ke)(this.loadTextures(e,d,t)):null,y=null,v=null;if(s){y=(0,nt.QA)(await s);let e=function(e,t){if(!e||!t?.materialDefinitions)return e;let r=Object.keys(t.materialDefinitions)[0];return!t.materialDefinitions[r].params.vertexRegions&&e.vertexAttributes.region&&delete(e=(0,it.o8)(e)).vertexAttributes.region,e}(this._defaultGeometrySchema,o);v=(0,st.qs)(n,e)}let R=b?(0,nt.QA)(await b):null,E=r?(0,nt.QA)(await r):{},M=E?{attributeData:E,loadedAttributes:this._requiredAttributes}:null;if(null!=p)return{geometryData:p,attributeDataInfo:M,geometryBuffer:y,geometryDescriptor:v,requiredTextures:d,textureData:R};if(null!=_)return{pointData:_,attributeDataInfo:M,geometryBuffer:y,geometryDescriptor:v,requiredTextures:d,textureData:R};throw Error()}static _addAbsoluteHrefTexture(e,t){let r=e.textureDefinitions;if(null!=r)for(let e of Object.keys(r))for(let n of r[e].images)n.hrefConcat=Array.isArray(n.href)?n.href.map(e=>(0,at.s2)(e,t)):(0,at.s2)(n.href,t)}static _fixTextureEncodings(e){let t=e.textureDefinitions;if(null!=t)for(let e in t){let r=t[e];if(Array.isArray(r.encoding))for(let e=0;e<r.encoding.length;e++){let t=r.encoding[e];t.startsWith("data:")&&(r.encoding[e]=t.slice(5))}else{let e=r.encoding;e.startsWith("data:")&&(r.encoding=e.slice(5))}}}async _loadShared(e,t){if(null==e.resources.geometry)return{};let r=`${this._layerUrl}/nodes/${e.resources.geometry}/shared`,n=await this._requester.request(r,"json",t);return ft._fixTextureEncodings(n),ft._addAbsoluteHrefTexture(n,r),n}_loadTexture(e,t,r,n,i){return 4===n||1===n||2===n?this._requester.request(e,"array-buffer",i).then(e=>({id:t,usage:r,data:e,encoding:n})):this._requester.request(e,"image",i).then(e=>({id:t,usage:r,data:e,encoding:n}))}loadTextures(e,t,r){let n=this._options.textureUsageMask;return Promise.all(t.map(t=>{if(0===(t.usage&n))return null;let i=function(e,t){if(null!=t)return e.find(e=>0!==(e.encoding&t))}(t.encodings,this._options.textureEncodings);if(null==i)return this._logger.error("#loadTextures",this._logLayer,`No known encoding for texture found on node ${e.id}`),Promise.reject();let a=e.resources.texture||e.id,s=`${this._layerUrl}/nodes/${a}/textures/${i.name}`;return this._loadTexture(s,t.id,t.usage,i.encoding,r)}))}_loadFeatureData(e,t){let r=`${this._layerUrl}/nodes/${e}/features/0`;return this._requester.request(r,"json",t)}_loadGeometry(e,t,r){let n=`${this._layerUrl}/nodes/${e}/geometries/${t}`;return this._requester.request(n,"array-buffer",r)}}var gt=r(36005);let mt=class extends((0,E.w6)((0,_.b)((0,y.q)((0,v.A)((0,R.j)((0,h.M)((0,b.d)((0,p.p)((0,a.OU)(m.A)))))))))){constructor(...e){super(...e),this.geometryType="mesh",this.operationalLayerType="IntegratedMeshLayer",this.type="integrated-mesh",this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.profile="mesh-pyramids",this.modifications=null,this._modificationsSource=null,this.path=null,this.definitionExpression=null,this._elevationQueryAbortController=new AbortController,this._elevationQueryWorkerContext=`i3s-elevation-query-${this.uid}`,this._elevationQueryWorkerHandle=null,this._elevationQueryWorkerSetup=null,this._modificationsGeneration=0}destroy(){this._elevationQueryAbortController.abort();let e=this._elevationQueryWorkerHandle;this._elevationQueryWorkerHandle=null,this._elevationQueryWorkerSetup=null,e?.destroyContextAndSelf(this._elevationQueryWorkerContext),super.destroy()}initialize(){this.addHandles([(0,d.on)(()=>this.modifications,"after-changes",()=>{this.modifications=this.modifications,this._modificationsGeneration++},d.OH),(0,d.wB)(()=>this.modifications,()=>this._modificationsGeneration++,d.OH),(0,d.wB)(()=>this.memoizedElevationQueryDependencies,()=>this._abortElevationQueriesAfterDependencyChange(),d.OH)])}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}readModifications(e,t,r){this._modificationsSource={url:(0,Ye.f)(e,r),context:r}}set elevationInfo(e){(null==e||"absolute-height"===e.mode)&&this._set("elevationInfo",e),this._validateElevationInfo(e)}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}get _elevationQueryWorker(){return this._elevationQueryWorkerHandle??=new Ke.Cm((e,t)=>Ne.nu.schedule(e,t))}get memoizedElevationQueryDependencies(){return[this.elevationInfo?.offset,this._modificationsGeneration]}async queryElevation(e,t,r){let a={stack:[],error:void 0,hasError:!1};try{let l=r?.noDataValue??Number.MAX_VALUE,u=this._elevationQueryWorker,h=new AbortController;e.addHandles((0,o.rE)(h),h),(0,n.mS)(a,(0,o.Bf)((0,o.hA)(()=>e.removeHandles(h))),!1);let d=AbortSignal.any([r?.signal,this._elevationQueryAbortController.signal,h.signal].filter(i.Ru));await this.load({signal:d}),(0,c.Te)(d);let f=S.q.fromGeometry(t),g={signal:d,elevationOffset:this.elevationInfo?.offset??0,scheduler:e.resourceController.scheduler};if(null==this._elevationQueryWorkerSetup){let e=this.store?.defaultGeometrySchema;null!=e&&(this._elevationQueryWorkerSetup=u.setLegacySchema(this._elevationQueryWorkerContext,e))}let m=await async function(e,t,r){let n=await e.indexInfo;if((0,c.Te)(r.signal),null==n)throw new s.A("integrated-mesh-elevation-query:index-missing","I3S index information is missing.");return"page"===n.type?new Le(e,t,r,n).promise:new Pe(e,t,r,n).promise}(this,f,g);(0,c.Te)(d);let p=m.coordinates[0].z===De;p&&(m.coordinates[0].z=l);let _=await m.project(t.spatialReference,d);(0,c.Te)(d);let b=_??f.clone(),y={geometry:b.export(),noDataValue:l};return r?.returnSampleInfo&&(y.sampleInfo=b.coordinates.map(()=>({demResolution:p?-1:1}))),y}catch(e){a.error=e,a.hasError=!0}finally{(0,n.hk)(a)}}_abortElevationQueriesAfterDependencyChange(){let e=this._elevationQueryAbortController;this._elevationQueryAbortController=new AbortController,e.abort()}async processElevationQueryGeometry(e,t){return await this._elevationQueryWorkerSetup,(0,c.Te)(t),this._elevationQueryWorker.invoke(e,t)}async _doLoad(e){let t=e?.signal;try{await this.loadFromPortal({supportedTypes:["Scene Service"]},e)}catch(e){(0,c.QP)(e)}if((0,c.Te)(t),await this._fetchService(t),(0,c.Te)(t),null!=this._modificationsSource){let r=await Be.A.fromUrl(this._modificationsSource.url,this.spatialReference,e);(0,c.Te)(t),this.setAtOrigin("modifications",r,this._modificationsSource.context.origin),this._modificationsSource=null}await this._fetchIndexAndUpdateExtent(this.nodePages,t),(0,c.Te)(t)}beforeSave(){if(null!=this._modificationsSource)return this.load().then(()=>{},()=>{})}async saveAs(e,t){return this._debouncedSaveOperations(1,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"},e)}async save(){return this._debouncedSaveOperations(0,{getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"})}get isUsedAsGroundLayer(){return!(0,l.A)("enable-feature:im-as-ground")||(0,Xe.S)(this.parent)||(0,He.Q)(this.parent)}get replacesTerrain(){return!1}validateLayer(e){if(e.layerType&&"IntegratedMesh"!==e.layerType)throw new s.A("integrated-mesh-layer:layer-type-not-supported","IntegratedMeshLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new s.A("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"});if(this.version.major>1)throw new s.A("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"})}_getTypeKeywords(){return["IntegratedMeshLayer"]}get elevationQueryDataRequester(){return new rt(this.customParameters,this.apiKey)}get elevationQueryNodeLoader(){return new ft(this,this.elevationQueryDataRequester,u.A.getLogger("esri.layers.IntegratedMeshLayer"),this.store?.defaultGeometrySchema,[],{loadFeatureData:!1,textureUsageMask:0})}_validateElevationInfo(e){let t="Integrated mesh layers";(0,$e.XF)(u.A.getLogger(this),(0,$e.B)(t,"absolute-height",e)),(0,$e.XF)(u.A.getLogger(this),(0,$e.tW)(t,e))}};(0,n.Cg)([(0,f.MZ)({type:String,readOnly:!0})],mt.prototype,"geometryType",void 0),(0,n.Cg)([(0,f.MZ)({type:["show","hide"]})],mt.prototype,"listMode",void 0),(0,n.Cg)([(0,f.MZ)({type:["IntegratedMeshLayer"]})],mt.prototype,"operationalLayerType",void 0),(0,n.Cg)([(0,f.MZ)({json:{read:!1},readOnly:!0})],mt.prototype,"type",void 0),(0,n.Cg)([(0,f.MZ)({type:ze.W4,readOnly:!0,clonable:!1})],mt.prototype,"nodePages",void 0),(0,n.Cg)([(0,f.MZ)({type:[ze.uV],readOnly:!0,clonable:!1})],mt.prototype,"materialDefinitions",void 0),(0,n.Cg)([(0,f.MZ)({type:[ze.Ot],readOnly:!0,clonable:!1})],mt.prototype,"textureSetDefinitions",void 0),(0,n.Cg)([(0,f.MZ)({type:[ze.L0],readOnly:!0,clonable:!1})],mt.prototype,"geometryDefinitions",void 0),(0,n.Cg)([(0,f.MZ)({readOnly:!0})],mt.prototype,"serviceUpdateTimeStamp",void 0),(0,n.Cg)([(0,f.MZ)({type:Be.A,clonable:e=>e?.clone()??e}),(0,g.P)({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],mt.prototype,"modifications",void 0),(0,n.Cg)([(0,f.MZ)({clonable:e=>e?{...e}:null})],mt.prototype,"_modificationsSource",void 0),(0,n.Cg)([(0,gt.w)(["web-scene","portal-item"],"modifications")],mt.prototype,"readModifications",null),(0,n.Cg)([(0,f.MZ)(M.Yj)],mt.prototype,"elevationInfo",null),(0,n.Cg)([(0,f.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],mt.prototype,"path",void 0),(0,n.Cg)([(0,f.MZ)({clonable:!1})],mt.prototype,"_elevationQueryWorker",null),(0,n.Cg)([(0,f.MZ)()],mt.prototype,"_modificationsGeneration",void 0),(0,n.Cg)([(0,f.MZ)()],mt.prototype,"memoizedElevationQueryDependencies",null),(0,n.Cg)([(0,f.MZ)()],mt.prototype,"isUsedAsGroundLayer",null),(0,n.Cg)([(0,f.MZ)()],mt.prototype,"replacesTerrain",null),(0,n.Cg)([(0,f.MZ)({clonable:!1})],mt.prototype,"elevationQueryDataRequester",null),(0,n.Cg)([(0,f.MZ)({clonable:!1})],mt.prototype,"elevationQueryNodeLoader",null),mt=(0,n.Cg)([(0,f.$K)("esri.layers.IntegratedMeshLayer")],mt);const pt=mt},85707(e,t,r){var n=r(32198),i=r(91429),a=r(54239);r.d(t,["a",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.heightModelInfo=null}read(e,t){super.read(e,t),"service"===t?.origin&&2===this.heightModelInfo?.origin&&(this.heightModelInfo.associatedSpatialReference=this.getAtOrigin("spatialReference","service"))}};return(0,n.Cg)([(0,i.MZ)({readOnly:!0,type:a.A})],r.prototype,"heightModelInfo",void 0),r=(0,n.Cg)([(0,i.$K)("esri.layers.mixins.HeightModelInfoMixin")],r),r}])},10292(e,t,r){r.d(t,{q:()=>o});var n=r(48526),i=r(86738),a=r(82799),s=r(99917);class o{constructor(e){this.geometry=e,this.spatialReference=e.spatialReference}export(){return this._exporter(this.coordinates,this.spatialReference)}clone(e){let t=new o(this.geometry);return t.spatialReference=this.spatialReference,t.coordinates=e??this.coordinates.map(e=>e.clone()),t._exporter=this._exporter,t}async project(e,t){if(this.spatialReference.equals(e))return this.clone();await(0,s.initializeProjection)([{source:this.spatialReference,dest:e}],{signal:t});let r=new n.A({spatialReference:this.spatialReference,points:this.coordinates.map(e=>[e.x,e.y])}),i=(0,s.project)(r,e);if(!i)return null;let a=this.coordinates.map((e,t)=>{let r=e.clone(),n=i.points[t];return r.x=n[0],r.y=n[1],r}),o=this.clone(a);return o.spatialReference=e,o}projectSync(e){if(this.spatialReference.equals(e))return this.clone();let t=new n.A({spatialReference:this.spatialReference,points:this.coordinates.map(e=>[e.x,e.y])}),r=(0,s.project)(t,e);if(!r)return null;let i=this.coordinates.map((e,t)=>{let n=e.clone(),i=r.points[t];return n.x=i[0],n.y=i[1],n}),a=this.clone(i);return a.spatialReference=e,a}static fromGeometry(e){let t=new o(e);if(e instanceof o)return t.coordinates=e.coordinates.map(e=>e.clone()),t._exporter=(t,r)=>{let n=e.clone(t);return n.spatialReference=r,n},t;switch(e.type){case"point":{let r=e,{hasZ:n,hasM:a}=r;return t.coordinates=n&&a?[new l(r.x,r.y,r.z,r.m)]:n?[new l(r.x,r.y,r.z)]:a?[new l(r.x,r.y,null,r.m)]:[new l(r.x,r.y)],t._exporter=(t,r)=>e.hasM?new i.A(t[0].x,t[0].y,t[0].z,t[0].m,r):new i.A(t[0].x,t[0].y,t[0].z,r),t}case"multipoint":{let r=e,{hasZ:i,hasM:a}=r;return t.coordinates=i&&a?r.points.map(e=>new l(e[0],e[1],e[2],e[3])):i?r.points.map(e=>new l(e[0],e[1],e[2])):a?r.points.map(e=>new l(e[0],e[1],null,e[2])):r.points.map(e=>new l(e[0],e[1])),t._exporter=(t,r)=>e.hasM?new n.A({points:t.map(e=>[e.x,e.y,e.z??0,e.m??0]),hasZ:!0,hasM:!0,spatialReference:r}):new n.A({points:t.map(e=>[e.x,e.y,e.z??0]),spatialReference:r}),t}case"polyline":{let r=e,n=[],i=[],{hasZ:s,hasM:o}=e,u=0;for(let e of r.paths)if(i.push([u,u+e.length]),u+=e.length,s&&o)for(let t of e)n.push(new l(t[0],t[1],t[2],t[3]));else if(s)for(let t of e)n.push(new l(t[0],t[1],t[2]));else if(o)for(let t of e)n.push(new l(t[0],t[1],null,t[2]));else for(let t of e)n.push(new l(t[0],t[1]));return t.coordinates=n,t._exporter=(t,r)=>{let n=e.hasM?t.map(e=>[e.x,e.y,e.z??0,e.m??0]):t.map(e=>[e.x,e.y,e.z??0]),s=i.map(e=>n.slice(e[0],e[1]));return new a.A({paths:s,hasM:e.hasM,hasZ:!0,spatialReference:r})},t}}}}class l{constructor(e,t,r=null,n=null,i=null,a=null){this.x=e,this.y=t,this.z=r,this.m=n,this.tile=i,this.elevationTile=a}clone(){return new l(this.x,this.y,this.z,this.m)}}},73179(e,t,r){r.d(t,{b:()=>l,h:()=>u});var n=r(4718),i=r(53966),a=r(84952),s=r(60694),o=r(10873);function l(e){let{nonStandardUrlAllowed:t=!1,separator:r}=e??{},a=(0,n.o8)(o.OZ),l=a.json?.write;return"object"==typeof l&&l&&(l.writer=function(e,t,n,i){(0,s.LS)(this,e,r,t,i)}),{...a,set:function(e){if(null==e)return void this._set("url",e);let r=(0,s.HZ)({layer:this,url:e,nonStandardUrlAllowed:t,logger:i.A.getLogger(this)});this._set("url",r.url),null!=r.layerId&&this._set("layerId",r.layerId)}}}function u(e,t){let{separator:r}=t??{},n=(0,a.An)(e.url);return null!=n&&(null==e.dynamicDataSource?null!=e.layerId&&(n.path=(0,a.fj)(n.path,r??"",e.layerId.toString())):n.path=(0,a.fj)(n.path,"dynamicLayer")),n}},89707(e,t,r){r.d(t,{H:()=>n});class n{constructor(e=1/0,t=-1/0){this.minElevation=e,this.maxElevation=t}get elevationRangeValid(){return!Number.isNaN(this.minElevation)}get isEmpty(){return!(this.minElevation<=this.maxElevation)}contains(e){return this.minElevation<=e.minElevation&&this.maxElevation>=e.maxElevation}invalidateElevationRange(){this.minElevation=NaN}initializeEmpty(){this.minElevation=1/0,this.maxElevation=-1/0}expandElevationRange(e){let t=Math.min(this.minElevation,e.minElevation),r=Math.max(this.maxElevation,e.maxElevation),n=t!==this.minElevation||r!==this.maxElevation;return this.minElevation=t,this.maxElevation=r,n}expandElevationRangeValues(e,t){let r=Math.min(this.minElevation,e),n=Math.max(this.maxElevation,t),i=r!==this.minElevation||n!==this.maxElevation;return this.minElevation=r,this.maxElevation=n,i}setElevationRange(e){this.minElevation=e.minElevation,this.maxElevation=e.maxElevation}setElevationRangeValues(e,t){this.minElevation=e,this.maxElevation=t}equals(e){return this.minElevation===e.minElevation&&this.maxElevation===e.maxElevation}}},62747(e,t,r){r.d(t,{W7:()=>a,hH:()=>s});var n=r(1843),i=r(65786);i.Y;class a extends i.Y{constructor(e,t,r){super(),this.hasVertexColors=e,this.hasNormals=t,this.textureCoordinateType=r}}function s(e){let t=(0,n.BP)().vec3f("position");return e.hasNormals&&t.vec2i16("normalCompressed",{glNormalized:!0}),1===e.textureCoordinateType?t.vec2f("uv0"):2===e.textureCoordinateType&&(t.vec2f("uv0"),t.vec4u16("uvRegion",{glNormalized:!0})),e.hasVertexColors&&t.vec4u8("color",{glNormalized:!0}),t.freeze()}},92359(e,t,r){r.d(t,{nu:()=>d,W6:()=>u}),r(4576),r(71511),r(44208),r(53966);var n=r(17676),i=(r(36708),r(44794),r(78659)),a=r(32198),s=r(69622),o=r(91429);let l=class extends s.A{constructor(){super(...arguments),this.SCHEDULER_LOG_SLOW_TASKS=!1,this.FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES=!1}};(0,a.Cg)([(0,o.MZ)()],l.prototype,"SCHEDULER_LOG_SLOW_TASKS",void 0),(0,a.Cg)([(0,o.MZ)()],l.prototype,"FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES",void 0),l=(0,a.Cg)([(0,o.$K)("esri.views.support.debugFlags")],l),new l,r(49186),Symbol("Yield");const u={RESOURCE_CONTROLLER_IMMEDIATE:"immediate",RESOURCE_CONTROLLER:"schedule",SLIDE:"slide",STREAM_DATA_LOADER:"stream loader",ELEVATION_QUERY:"elevation query",TERRAIN_SURFACE:"terrain",SURFACE_GEOMETRY_UPDATES:"surface geometry updates",LOD_RENDERER:"LoD renderer",GRAPHICS_CORE:"Graphics3D",I3S:"I3S",LYR3D:"Lyr3D",TILES3D:"3DTiles",POINT_CLOUD_LAYER:"point cloud",FEATURE_TILE_FETCHER:"feature fetcher",STREAM_CONTROLLER:"stream controller",SCREEN_POLYGON_INTERSECTION:"screen polygon intersection",OCCLUSION_QUERY:"occlusion query",OVERLAY:"overlay",OVERLAY_RENDERER:"overlay renderer",STAGE:"stage",GRAPHICS_DECONFLICTOR:"graphics deconflictor",FILTER_VISIBILITY:"graphics filter visibility",SCALE_VISIBILITY:"graphics scale visibility",FRUSTUM_VISIBILITY:"graphics frustum visibility",POINT_OF_INTEREST_FREQUENT:"POI frequent",POINT_OF_INTEREST_INFREQUENT:"POI infrequent",LABELER:"labeler",FEATURE_QUERY_ENGINE:"feature query",FEATURE_TILE_TREE:"feature tile tree",FEATURE_TILE_TREE_ACTIVE:"fast feature tile tree",ELEVATION_ALIGNMENT:"elevation alignment",ELEVATION_ALIGNMENT_SCENE:"elevation alignment scene",TEXT_TEXTURE_ATLAS:"text texture atlas",TEXTURE_UNLOAD:"texture unload",LINE_OF_SIGHT_TOOL:"line of sight tool",LINE_OF_SIGHT_TOOL_INTERACTIVE:"interactive line of sight tool",VOLUME_MEASUREMENT:"volume measurement",ELEVATION_PROFILE:"elevation profile",SNAPPING:"snapping",SHADOW_ACCUMULATOR:"shadow accumulator",CLOUDS_GENERATOR:"clouds generator",FLOW_GENERATOR:"flow generator",GAUSSIAN_SPLAT_SORTING:"gaussian splat sorting",GAUSSIAN_SPLAT_TEXTURE_ATLAS:"gaussian splat texture atlas",MAPVIEW_FETCH_QUEUE:"mapview fetch queue",MAPVIEW_LAYERVIEW_UPDATE:"mapview layerview update",MAPVIEW_VECTOR_TILE_PARSING_QUEUE:"mapview vector tile parsing queue",NONE:0,TEST_PRIO:1};new Map([[u.RESOURCE_CONTROLLER_IMMEDIATE,0],[u.RESOURCE_CONTROLLER,4],[u.SLIDE,0],[u.STREAM_DATA_LOADER,0],[u.ELEVATION_QUERY,0],[u.TERRAIN_SURFACE,1],[u.SURFACE_GEOMETRY_UPDATES,1],[u.LOD_RENDERER,2],[u.GRAPHICS_CORE,2],[u.I3S,2],[u.LYR3D,2],[u.TILES3D,3],[u.POINT_CLOUD_LAYER,2],[u.FEATURE_TILE_FETCHER,2],[u.STREAM_CONTROLLER,2],[u.SCREEN_POLYGON_INTERSECTION,0],[u.CLOUDS_GENERATOR,2],[u.OCCLUSION_QUERY,2],[u.OVERLAY,4],[u.OVERLAY_RENDERER,4],[u.STAGE,4],[u.GRAPHICS_DECONFLICTOR,4],[u.FILTER_VISIBILITY,4],[u.SCALE_VISIBILITY,4],[u.FRUSTUM_VISIBILITY,4],[u.POINT_OF_INTEREST_FREQUENT,6],[u.POINT_OF_INTEREST_INFREQUENT,30],[u.LABELER,8],[u.FEATURE_QUERY_ENGINE,8],[u.FEATURE_TILE_TREE,16],[u.FEATURE_TILE_TREE_ACTIVE,0],[u.ELEVATION_ALIGNMENT,12],[u.ELEVATION_ALIGNMENT_SCENE,14],[u.TEXT_TEXTURE_ATLAS,12],[u.TEXTURE_UNLOAD,12],[u.LINE_OF_SIGHT_TOOL,16],[u.LINE_OF_SIGHT_TOOL_INTERACTIVE,0],[u.VOLUME_MEASUREMENT,4],[u.SNAPPING,0],[u.SHADOW_ACCUMULATOR,30],[u.FLOW_GENERATOR,12],[u.GAUSSIAN_SPLAT_SORTING,2],[u.GAUSSIAN_SPLAT_TEXTURE_ATLAS,12],[u.MAPVIEW_FETCH_QUEUE,0],[u.MAPVIEW_LAYERVIEW_UPDATE,2],[u.MAPVIEW_VECTOR_TILE_PARSING_QUEUE,0]]),(0,i.l5)(6.5),(0,i.l5)(1),(0,i.l5)(30),(0,i.l5)(1e3/30),(0,i.l5)(100),Symbol.dispose;const h=new class{constructor(){this._begin=performance?.now()??0,this._budget=0,this._done=!1,this._progressed=!1,this._enabled=!0}run(e){return!this.done&&(!0===e()&&this.madeProgress(),!0)}get done(){return this._done}get budget(){return this._budget}madeProgress(){return this._progressed=!0,this._done=this.elapsed>=this._budget&&this._enabled,this._done}get enabled(){return this._enabled}set enabled(e){this._enabled=e}reset(e){this._begin=this.now(),this._budget=e,this.resetProgress()}get remaining(){return Math.max(this._budget-this.elapsed,0)}now(){return performance.now()}get elapsed(){return this.now()-this._begin}resetProgress(){this._progressed=!1,this._done=!1}get hasProgressed(){return this._progressed}};h.enabled=!1;class c{remove(){}[Symbol.dispose](){this.remove()}processQueue(){}schedule(e,t,r){try{if((0,n.G4)(t)){let e=(0,n.NK)();return r?Promise.resolve(r(e)):Promise.reject(e)}return(0,n.z7)(e(h))}catch(e){return Promise.reject(e)}}reschedule(e,t,r){return this.schedule(e,t,r)}async scheduleGenerator(e,t,r){if((0,n.G4)(t)){let e=(0,n.NK)();if(r)return r(e);throw e}let i=e(h);for(;;){let e=i.next(h),a=(0,n.$X)(e)?await e:e;if((0,n.G4)(t)){let e=(0,n.NK)();if(r){let t=r(e),a=i.return(null);return(0,n.$X)(a)&&await(0,n.QZ)(a),t}let t=i.throw(e);throw(0,n.$X)(t)&&await(0,n.QZ)(t),e}if(a.done)return a.value}}}const d=new c}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5248],{54639(e,t,s){s.d(t,{R:()=>i,b:()=>n});class i{static{this._nextId=0}constructor(e,t,s,i,r){this.type=e,this.spatialReference=t,this.hasZ=s,this.hasM=i,this._geometry=r,this.arcadeDeclaredClass="esri.arcade.Geometry",this._json=null,this._gx=null,this._accessor=null,this._id=null}static of(e,t,s,r,n){return new i(e,t,s,r,n)}clone(e=!0){let t=new i(this.type,e?this.spatialReference:this.spatialReference.clone(),this.hasZ,this.hasM,this._geometry);return t._json=this._json,t._gx=this._gx,t._accessor=e?this._accessor:null,t}get id(){return this._id??=i._nextId++}set id(e){this._id??=e}asJsonGeometry(){return this._json??=this._geometry.toJsonGeometry(),this._json}asGxGeometry(e){return this._gx??=this._geometry.toGxGeometry(e),this._gx}asAccessorGeometry(){return this._accessor??=this._geometry.toAccessorGeometry(this.spatialReference),this._accessor}asJsonLikeGeometry(){return null==this._json?null==this._accessor?this.asJsonGeometry():this._accessor:this._json}castAsJson(){switch(this.type){case"point":{let{x:e,y:t,z:s,m:i}=this.asJsonLikeGeometry(),r={x:e,y:t,spatialReference:this.spatialReference.toJSON()};return this.hasZ&&(r.z=s??0),this.hasM&&(r.m=i??NaN),r}case"multipoint":{let{points:e}=this.asJsonLikeGeometry(),t={points:e,spatialReference:this.spatialReference.toJSON()};return this.hasZ&&(t.hasZ=!0),this.hasM&&(t.hasM=!0),t}case"polyline":{let{paths:e=[],curvePaths:t}=this.asJsonLikeGeometry(),s={paths:e,spatialReference:this.spatialReference.toJSON()};return null!=t&&(s.curvePaths=t),this.hasZ&&(s.hasZ=!0),this.hasM&&(s.hasM=!0),s}case"polygon":{let{rings:e=[],curveRings:t}=this.asJsonLikeGeometry(),s={rings:e,spatialReference:this.spatialReference.toJSON()};return null!=t&&(s.curveRings=t),this.hasZ&&(s.hasZ=!0),this.hasM&&(s.hasM=!0),s}case"extent":{let{xmin:e,ymin:t,xmax:s,ymax:i,zmin:r,zmax:n,mmin:l,mmax:a}=this.asJsonLikeGeometry(),o={xmin:e,ymin:t,xmax:s,ymax:i,spatialReference:this.spatialReference.toJSON()};return this.hasZ&&(o.zmin=r??0,o.zmax=n??0),this.hasM&&(o.mmin=l??NaN,o.mmax=a??NaN),o}default:throw this.type,Error(`Unsupported geometry type: ${this.type}`)}}castAsJsonAsync(){return Promise.resolve(this.castAsJson())}}const r="_arcadeGxJson";function n(e){let t=e.cache[r];if(null!=t)return t;let s=e.toJSON();return null!=e.wkt2&&(s.wkt2=e.wkt2),(s.latestVcsWkid||s.vcsWkid)&&(delete s.latestVcsWkid,delete s.vcsWkid),e.cache[r]=s}},9775(e,t,s){s.d(t,{A:()=>n});var i=s(62788),r=s(95488);class n{constructor(e=e=>e.values().next().value){this._peeker=e,this._observable=new r.I,this._items=new Set}get length(){return(0,i.gc)(this._observable),this._items.size}clear(){0!==this.length&&(this._items.clear(),this._observable.notify())}last(){if(0===this.length)return;let e;for(e of this._items);return e}peek(){if(0!==this.length)return this._peeker(this._items)}push(e){this.contains(e)||(this._items.add(e),this._observable.notify())}contains(e){return(0,i.gc)(this._observable),this._items.has(e)}pop(){if(0===this.length)return;let e=this.peek();return this._items.delete(e),this._observable.notify(),e}popLast(){if(0===this.length)return;let e=this.last();return this._items.delete(e),this._observable.notify(),e}remove(e){this.contains(e)&&(this._items.delete(e),this._observable.notify())}filter(e){let t=this.length;return this._items.forEach(t=>{e(t)||this._items.delete(t)}),t!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){(0,i.gc)(this._observable),yield*this._items}}},563(e,t,s){s.d(t,{QueueProcessor:()=>h,SharedConcurrency:()=>c});var i=s(97768),r=s(17676),n=s(9775),l=s(32587),a=s(76030),o=s(44794);class h{constructor(e){this._schedule=null,this._deferreds=new l.A,this._controllers=new l.A,this._processingItems=new l.A,this._pausedSignal=(0,o.v)(!1),this.process=e.process,this.concurrency=e.concurrency,this.sharedConcurrency=e.sharedConcurrency??p,this._queue=new n.A(e.peeker)}destroy(){this.clear(),this._schedule=(0,i.xt)(this._schedule)}get updating(){return this.running}get length(){return this._processingItems.size+this._queue.length}get running(){return!this._pausedSignal.value&&this._queue.length>0&&!this.full}get full(){return this._processingItems.size>=this.concurrency||this.sharedConcurrency.full}abort(e){this._controllers.get(e)?.abort()}clear(){this._queue.clear();let e=Array.from(this._controllers.values());this._controllers.clear(),e.forEach(e=>e.abort()),this.sharedConcurrency.current.value-=this._processingItems.size,this._processingItems.clear(),this._cancelNext()}forEach(e){this._deferreds.forEach((t,s)=>e(s))}_get(e){return this._deferreds.get(e)?.promise}pause(){this._pausedSignal.value||(this._pausedSignal.value=!0,this._cancelNext())}push(e,t){let s=this._get(e);if(s)return s;let i=new AbortController,n=Promise.withResolvers(),l=t?(0,r.u7)(t,()=>i.abort()):null,a=(0,r.NY)(i.signal,()=>{let t=this._processingItems.get(e);t&&t.controller.abort(),o(),n.reject((0,r.NK)())}),o=()=>{a.remove(),l?.remove(),this._removeItem(e),this._queue.remove(e),this._scheduleNext()};return this._deferreds.set(e,n),this._controllers.set(e,i),n.promise.then(o,o),this._queue.push(e),this._scheduleNext(),n.promise}last(){return this._queue.last()}reset(){let e=Array.from(this._processingItems.values());this.sharedConcurrency.current.value-=this._processingItems.size,this._processingItems.clear();for(let t of e)this._queue.push(t.item),t.controller.abort();this._scheduleNext()}resume(){this._pausedSignal.value&&(this._pausedSignal.value=!1,this._scheduleNext())}takeAll(){let e=[];for(;this._queue.length;)e.push(this._queue.pop());return this.clear(),e}_removeItem(e){this._deferreds.delete(e),this._controllers.delete(e),this._processingItems.has(e)&&(this._processingItems.delete(e),--this.sharedConcurrency.current.value)}_scheduleNext(){this._pausedSignal.value||this._schedule||(this._schedule=(0,a._)(()=>{this._schedule=null,this._next()}))}_next(){for(;this._queue.length>0&&this._processingItems.size<this.concurrency&&!this.sharedConcurrency.full;)this._process(this._queue.pop())}_cancelNext(){this._schedule&&=(this._schedule.remove(),null)}_processResult(e,t){this._canProcessFulfillment(e)&&(this._scheduleNext(),this._deferreds.get(e.item).resolve(t))}_processError(e,t){this._canProcessFulfillment(e)&&(this._scheduleNext(),this._deferreds.get(e.item).reject(t))}_canProcessFulfillment(e){return!(!this._deferreds.get(e.item)||this._processingItems.get(e.item)!==e)}_process(e){if(null==e)return;let t,s=new AbortController,i=new u(e,s);this._processingItems.set(e,i),this.sharedConcurrency.current.value+=1;try{t=this.process(e,s.signal)}catch(e){this._processError(i,e)}(0,r.$X)(t)?(i.promise=t,t.then(e=>this._processResult(i,e),e=>this._processError(i,e))):this._processResult(i,t)}}class u{constructor(e,t){this.item=e,this.controller=t,this.promise=null}}class c{constructor(e){this.limit=e,this.current=(0,o.v)(0)}get full(){return this.current.value>=this.limit}}const p=new c(1/0)},32587(e,t,s){s.d(t,{A:()=>n});var i=s(62788),r=s(95488);class n{constructor(e){this._observable=new r.I,this._notifyPending=!1,this._batchDepth=0,this._map=new Map(e)}get size(){return(0,i.gc)(this._observable),this._map.size}batch(e){try{this._batchDepth++,e()}finally{this._batchDepth--,this._notifyPending&&0===this._batchDepth&&(this._notifyPending=!1,this._notify())}}clear(){this._map.size>0&&(this._map.clear(),this._notify())}delete(e){let t=this._map.delete(e);return t&&this._notify(),t}entries(){return(0,i.gc)(this._observable),this._map.entries()}forEach(e,t){(0,i.gc)(this._observable),this._map.forEach((s,i)=>e.call(t,s,i,this),t)}get(e){return(0,i.gc)(this._observable),this._map.get(e)}has(e){return(0,i.gc)(this._observable),this._map.has(e)}keys(){return(0,i.gc)(this._observable),this._map.keys()}set(e,t){return this._map.set(e,t),this._notify(),this}transformValues(e,t=this._map.keys()){this.batch(()=>{for(let s of t){if(!this._map.has(s))continue;let t=this._map.get(s),i=e(t,s);i!==t&&this.set(s,i)}})}values(){return(0,i.gc)(this._observable),this._map.values()}[Symbol.iterator](){return(0,i.gc)(this._observable),this._map[Symbol.iterator]()}[Symbol.dispose](){this._observable.destroy()}get[Symbol.toStringTag](){return this._map[Symbol.toStringTag]}_notify(){this._batchDepth>0?this._notifyPending=!0:this._observable.notify()}}},44794(e,t,s){s.d(t,{v:()=>a});var i=s(4718),r=s(62788),n=s(95488);class l{constructor(e,t){this._observable=new n.I,this._value=e,this._equalityFunction=t}get value(){return(0,r.gc)(this._observable),this._value}set value(e){this._equalityFunction(e,this._value)||(this._value=e,this._observable.notify())}mutate(e){e(this._value),this._observable.notify()}}function a(e,t=i.gh){return new l(e,t)}},48526(e,t,s){s.d(t,{A:()=>g});var i,r=s(32198),n=s(4576),l=s(4718),a=s(91429),o=s(5443),h=s(91075),u=s(86738),c=s(16930),p=s(90634),d=s(47610),m=s(56993),y=s(43937);let g=i=class extends h.A{constructor(e){super(function(e){if(!e)return;let{points:t,hasM:s,hasZ:i,spatialReference:r}=e;switch(t??=[],t?.at(0)?.length){case 4:i??=!0,s??=!0;break;case 3:i??=!0!==s,s??=!i;break;default:i??=!1,s??=!1}return r??=c.A.WGS84,{...e,hasM:s,hasZ:i,points:t,spatialReference:r}}(e)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){let e=(0,p.ge)(this);return e?new o.A({...e,spatialReference:this.spatialReference}):null}writePoints(e,t){t.points=(0,l.o8)(this.points)}clone(){let{points:e,spatialReference:t,hasM:s,hasZ:r}=this;return new i({points:(0,l.o8)(e),spatialReference:t.clone(),hasM:s,hasZ:r})}equals(e){if(this===e)return!0;if(null==e)return!1;let t=this.spatialReference,s=e.spatialReference;return!(null!=t!=(null!=s)||null!=t&&null!=s&&!t.equals(s))&&(0,n.aI)(this.points,e.points,d.v6)}addPoint(e){return(0,m.h)(this,e),Array.isArray(e)?this.points.push(e):this.points.push(e.toArray()),this.notifyChange("points"),this}getPoint(e){if(!this._validateInputs(e))return null;let t=this.points[e],s={x:t[0],y:t[1],spatialReference:this.spatialReference},i=2;return this.hasZ&&(s.z=t[2],i=3),this.hasM&&(s.m=t[i]),new u.A(s)}removePoint(e){if(!this._validateInputs(e))return null;let t=new u.A(this.points.splice(e,1)[0],this.spatialReference);return this.notifyChange("points"),t}setPoint(e,t){return this._validateInputs(e)?((0,m.h)(this,t),Array.isArray(t)||(t=t.toArray()),this.points[e]=t,this.notifyChange("points"),this):this}toJSON(e){return this.write({},e)}_validateInputs(e){return null!=e&&e>=0&&e<this.points.length}};(0,r.Cg)([(0,a.MZ)({readOnly:!0})],g.prototype,"cache",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],g.prototype,"extent",null),(0,r.Cg)([(0,a.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],g.prototype,"points",void 0),(0,r.Cg)([(0,y.K)("points")],g.prototype,"writePoints",null),g=i=(0,r.Cg)([(0,a.$K)("esri.geometry.Multipoint")],g),g.prototype.toJSON.isDefaultToJSON=!0},82799(e,t,s){s.d(t,{A:()=>m});var i,r=s(32198),n=s(4718),l=s(91429),a=s(5443),o=s(91075),h=s(86738),u=s(16930),c=s(90634),p=s(56993),d=s(43937);let m=i=class extends o.A{constructor(e){super(function(e){if(!e)return;let{paths:t,hasM:s,hasZ:i,spatialReference:r}=e;switch(t??=[],function(e){return"number"==typeof e[0]?.[0]}(t)&&(t=[t]),t[0]?.[0]?.length){case 4:i??=!0,s??=!0;break;case 3:i??=!0!==s,s??=!i;break;default:i??=!1,s??=!1}return r??=u.A.WGS84,{...e,hasM:s,hasZ:i,paths:t,spatialReference:r}}(e)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(e,t){t.curvePaths=(0,n.o8)(e)}get extent(){let e=(0,c.Z3)(this),{spatialReference:t}=this;return e?new a.A({...e,spatialReference:t}):null}writePaths(e,t){t.paths=(0,n.o8)(this.paths)}addPath(e){if(!e)return;let t=this.paths,s=t.length;if(function(e){return!Array.isArray(e[0])}(e)){let i=[];for(let t=0,s=e.length;t<s;t++)i[t]=e[t].toArray();t[s]=i}else t[s]=e.slice();return this.notifyChange("paths"),this}clone(){let e=new i;return e.spatialReference=this.spatialReference,e.paths=(0,n.o8)(this.paths),e.curvePaths=(0,n.o8)(this.curvePaths),e.hasZ=this.hasZ,e.hasM=this.hasM,e}getPoint(e,t){if(!this._validateInputs(e,t))return null;let s=this.paths[e][t],i=this.hasZ,r=this.hasM;return i&&!r?new h.A(s[0],s[1],s[2],void 0,this.spatialReference):r&&!i?new h.A(s[0],s[1],void 0,s[2],this.spatialReference):i&&r?new h.A(s[0],s[1],s[2],s[3],this.spatialReference):new h.A(s[0],s[1],this.spatialReference)}insertPoint(e,t,s){return this._validateInputs(e,t,!0)?((0,p.h)(this,s),Array.isArray(s)||(s=s.toArray()),this.paths[e].splice(t,0,s),this.notifyChange("paths"),this):this}removePath(e){if(!this._validateInputs(e,null))return null;let t=this.paths.splice(e,1)[0],s=this.spatialReference,i=t.map(e=>new h.A(e,s));return this.notifyChange("paths"),i}removePoint(e,t){if(!this._validateInputs(e,t))return null;let s=new h.A(this.paths[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("paths"),s}setPoint(e,t,s){return this._validateInputs(e,t)?((0,p.h)(this,s),Array.isArray(s)||(s=s.toArray()),this.paths[e][t]=s,this.notifyChange("paths"),this):this}_validateInputs(e,t,s=!1){if(null==e||e<0||e>=this.paths.length)return!1;if(null!=t){let i=this.paths[e];if(s&&(t<0||t>i.length)||!s&&(t<0||t>=i.length))return!1}return!0}toJSON(e){return this.write({},e)}};(0,r.Cg)([(0,l.MZ)({readOnly:!0})],m.prototype,"cache",null),(0,r.Cg)([(0,l.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],m.prototype,"curvePaths",void 0),(0,r.Cg)([(0,d.K)("curvePaths")],m.prototype,"writeCurvePaths",null),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],m.prototype,"extent",null),(0,r.Cg)([(0,l.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],m.prototype,"paths",void 0),(0,r.Cg)([(0,d.K)("paths")],m.prototype,"writePaths",null),m=i=(0,r.Cg)([(0,l.$K)("esri.geometry.Polyline")],m),m.prototype.toJSON.isDefaultToJSON=!0},46329(e,t,s){s.d(t,{y:()=>c});var i=s(49186),r=s(4305),n=s(513),l=s(50954),a=s(52006),o=s(49663),h=s(46068),u=s(59803);function c(e,t,s){if((0,a.Xq)(t))return(0,u.T)(e,t,s);if((0,a.n1)(t)){let n=(0,r.m_)(e,t,s)[0];if(null==n)throw new i.A("closestPointOnCurve:unexpected-error","Failed to find close point on bezier curve");return n}if((0,a.aO)(t)){let i=(0,l.pM)(e,t);return(0,n.fM)(i,s)}if((0,a.DA)(t)){let i=(0,o.io)(e,t);return(0,n.fM)(i,s)}let c=(0,h.SW)(e,t);return(0,h.pb)(c,s)}},60408(e,t,s){function i(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function r(e){return void 0!==e.points}function n(e){return void 0!==e.x&&void 0!==e.y}function l(e){return void 0!==e.paths||void 0!==e.curvePaths}function a(e){return void 0!==e.rings||void 0!==e.curveRings}function o(e){return"object"==typeof e&&"vertexAttributes"in e}function h(e){return e?n(e)?"esriGeometryPoint":l(e)?"esriGeometryPolyline":a(e)?"esriGeometryPolygon":i(e)?"esriGeometryEnvelope":r(e)?"esriGeometryMultipoint":null:null}function u(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function c(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}s.d(t,{$B:()=>h,Bi:()=>a,Pv:()=>u,Rg:()=>l,U9:()=>r,W0:()=>c,ZC:()=>i,fT:()=>n,uW:()=>o})},65864(e,t,s){s.d(t,{rS:()=>u,xD:()=>p});var i=s(5443),r=s(91075),n=s(48526),l=s(86738),a=s(39829),o=s(82799),h=s(60408);function u(e){return null==e?null:e instanceof r.A?e:(0,h.fT)(e)?l.A.fromJSON(e):(0,h.Rg)(e)?o.A.fromJSON(e):(0,h.Bi)(e)?a.A.fromJSON(e):(0,h.U9)(e)?n.A.fromJSON(e):(0,h.ZC)(e)?i.A.fromJSON(e):null}const c={esriGeometryPoint:l.A,esriGeometryPolyline:o.A,esriGeometryPolygon:a.A,esriGeometryEnvelope:i.A,esriGeometryMultipoint:n.A,esriGeometryMultiPatch:a.A};function p(e){return e&&c[e]||null}},73444(e,t,s){s.d(t,{JK:()=>o,Ml:()=>g,QC:()=>c,lR:()=>u,oQ:()=>m});var i=s(36563);let r;s(44208);const n=globalThis.esriConfig?.locale,l=globalThis.document?.documentElement;function a(){let e=l?.getAttribute("lang"),t=globalThis.navigator?.language;return n??e??t??"en"}function o(){return void 0===r&&(r=a()),r}const h=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function u(e=o()){return p(e)?.language}function c(e=o()){let t=p(e);return t?.language&&t?.extlang?e.replace(`${t.language}-`,""):e}function p(e=o()){return h.exec(e)?.groups}const d=[];function m(e){return d.push(e),(0,i.hA)(()=>{d.splice(d.indexOf(e),1)})}new Map;const y=[];function g(e){return y.push(e),(0,i.hA)(()=>y.splice(y.indexOf(e),1))}function f(){let e=a();r!==e&&([...y].forEach(t=>t(e)),r=e,[...d].forEach(t=>t(e)))}globalThis.addEventListener?.("languagechange",f),l&&new MutationObserver(()=>{f()}).observe(l,{attributeFilter:["lang"]})},39357(e,t,s){s.d(t,{A:()=>a});var i,r=s(32198),n=s(25482),l=s(91429);let a=i=class extends n.o{constructor(e){super(e),this.name=null,this.code=null}clone(){return new i({name:this.name,code:this.code})}};(0,r.Cg)([(0,l.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"name",void 0),(0,r.Cg)([(0,l.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],a.prototype,"code",void 0),a=i=(0,r.Cg)([(0,l.$K)("esri.layers.support.CodedValue")],a)},53177(e,t,s){s.d(t,{A:()=>u});var i,r=s(32198),n=s(4718),l=s(91429),a=s(39357),o=s(76357),h=s(93223);let u=class extends o.A{static{i=this}constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){let s=String(e);this.codedValues.some(e=>(String(e.code)===s&&(t=e.name),!!t))}return t}clone(){return new i({codedValues:(0,n.o8)(this.codedValues),name:this.name})}};(0,r.Cg)([(0,l.MZ)({type:[a.A],json:{write:{isRequired:!0}}})],u.prototype,"codedValues",void 0),(0,r.Cg)([(0,h.e)({codedValue:"coded-value"})],u.prototype,"type",void 0),u=i=(0,r.Cg)([(0,l.$K)("esri.layers.support.CodedValueDomain")],u)},76357(e,t,s){s.d(t,{A:()=>h});var i=s(32198),r=s(66552),n=s(25482),l=s(91429),a=s(93223);const o=new r.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let h=class extends n.o{constructor(e){super(e),this.name=null,this.type=null}};(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],h.prototype,"name",void 0),(0,i.Cg)([(0,a.e)(o),(0,l.MZ)({json:{write:{isRequired:!0}}})],h.prototype,"type",void 0),h=(0,i.Cg)([(0,l.$K)("esri.layers.support.Domain")],h)},20437(e,t,s){s.d(t,{A:()=>m});var i,r=s(32198),n=s(66552),l=s(25482),a=s(91429),o=s(78888),h=s(8631),u=s(98453),c=s(36005),p=s(93223);const d=new n.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",currency:"currency",dateAndTime:"date-and-time",description:"description",emailAddress:"email-address",locationOrPlaceName:"location-or-place-name",marginOfError:"margin-of-error",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",phoneNumber:"phone-number",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier",url:"url"});let m=class extends l.o{static{i=this}constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let s=null;try{s=t?JSON.parse(t):null}catch{}return s?.value??null}readValueType(e,{description:t}){let s=null;try{s=t?JSON.parse(t):null}catch{}return s?d.fromJSON(s.fieldValueType):null}clone(){return new i({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],m.prototype,"alias",void 0),(0,r.Cg)([(0,a.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],m.prototype,"defaultValue",void 0),(0,r.Cg)([(0,a.MZ)()],m.prototype,"description",void 0),(0,r.Cg)([(0,c.w)("description")],m.prototype,"readDescription",null),(0,r.Cg)([(0,a.MZ)({types:h.g,json:{read:{reader:h.r},write:!0}})],m.prototype,"domain",void 0),(0,r.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"editable",void 0),(0,r.Cg)([(0,a.MZ)({type:o.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],m.prototype,"length",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,r.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"nullable",void 0),(0,r.Cg)([(0,p.e)(u.m)],m.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)()],m.prototype,"valueType",void 0),(0,r.Cg)([(0,c.w)("valueType",["description"])],m.prototype,"readValueType",null),(0,r.Cg)([(0,a.MZ)({type:Boolean,json:{read:!1}})],m.prototype,"visible",void 0),m=i=(0,r.Cg)([(0,a.$K)("esri.layers.support.Field")],m)},95466(e,t,s){s.d(t,{A:()=>h});var i=s(49186),r=s(53966),n=s(12195),l=s(30524),a=s(98623),o=s(56400);class h{static fromJSON(e){return new h(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new h(e.fields??[],c(e))}static fromLayerJSON(e){return new h(e.fields??[],c(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;let s=[];for(let e of this.fields){let t=e?.name,i=(0,l.GZ)(t);if(t&&i){let r=(0,l.NF)(t);this._fieldsMap.set(t,e),this._fieldsMap.set(r,e),this._normalizedFieldsMap.set(i,e),s.push(`${r}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,l.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,l.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),!(0,l.te)(e)&&!(0,l.Xz)(e)&&(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}s.sort(),this.uid=s.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(let e of this.fields)!(0,l.te)(e)&&!(0,l.Xz)(e)&&!e.nullable&&void 0===(0,l.lD)(e)&&this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){return(0,l.Vb)({fieldName:e,fieldsMap:this._fieldsMap,normalizedFieldsMap:this._normalizedFieldsMap})}getTimeZone(e){let t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(r.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new i.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),"UTC"):u.has(t.type)?a.L:null:null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,l.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,n.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}const u=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function c(e){let t=new Map;if(!e.fields)return t;let s=!0===e.datesInUnknownTimezone,{timeInfo:i,editFieldsInfo:r}=e,n=(i?"startField"in i?i.startField:i.startTimeField:"")??"",h=(i?"endField"in i?i.endField:i.endTimeField:"")??"",c=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,o.ZS)(e.dateFieldsTimeReference):null,p=r?function(e){return"timeZone"in e}(r)?r.timeZone??c:r.dateFieldsTimeReference?(0,o.ZS)(r.dateFieldsTimeReference):c??"UTC":null,d=i?function(e){return"timeZone"in e}(i)?i.timeZone??c:i.timeReference?(0,o.ZS)(i.timeReference):c:null,m=new Map([[(0,l.NF)(r?.creationDateField??""),p],[(0,l.NF)(r?.editDateField??""),p],[(0,l.NF)(n),d],[(0,l.NF)(h),d]]);for(let{name:i,type:r}of e.fields)if(u.has(r))t.set(i,a.L);else if("date"!==r&&"esriFieldTypeDate"!==r)t.set(i,null);else if(s)t.set(i,a.L);else{let e=m.get((0,l.NF)(i??""))??c;t.set(i,e)}return t}},41628(e,t,s){s.d(t,{A:()=>o});var i,r=s(32198),n=s(91429),l=s(76357),a=s(93223);let o=class extends l.A{static{i=this}constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new i({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,r.Cg)([(0,n.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,s){t[s]=[this.minValue||0,e]},isRequired:!0}}})],o.prototype,"maxValue",void 0),(0,r.Cg)([(0,n.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,s){t[s]=[e,this.maxValue||0]},isRequired:!0}}})],o.prototype,"minValue",void 0),(0,r.Cg)([(0,a.e)({range:"range"})],o.prototype,"type",void 0),o=i=(0,r.Cg)([(0,n.$K)("esri.layers.support.RangeDomain")],o)},8631(e,t,s){s.d(t,{r:()=>p,g:()=>c});var i,r=s(53177),n=s(76357),l=s(32198),a=s(91429),o=s(93223);let h=class extends n.A{static{i=this}constructor(e){super(e),this.type="inherited"}clone(){return new i}};(0,l.Cg)([(0,o.e)({inherited:"inherited"})],h.prototype,"type",void 0),h=i=(0,l.Cg)([(0,a.$K)("esri.layers.support.InheritedDomain")],h);var u=s(41628);const c={key:"type",base:n.A,typeMap:{range:u.A,"coded-value":r.A,inherited:h}};function p(e){if(!e?.type)return null;switch(e.type){case"range":return u.A.fromJSON(e);case"codedValue":return r.A.fromJSON(e);case"inherited":return h.fromJSON(e)}return null}},98453(e,t,s){const i=new(s(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"});s.d(t,["m",0,i])}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[737,7420],{52106(e,t,i){i.d(t,{A:()=>I});var r,s,o=i(32198),l=i(40124),n=i(69540),a=i(51447),d=i(25482),u=i(53966),p=i(36708),h=i(24326),y=i(91429),c=i(12195),g=i(65864),m=i(50498),f=i(55156),b=i(60950),v=i(54339),M=i(94128),S=i(33910);const C=Symbol("meshGeometryHandles");function w(e){if(null==e)return null;let t={};for(let i in e){let r=e[i];r&&(t[i]=r.toJSON())}return 0===Object.keys(t).length?null:t}let I=class extends((0,n.OU)(d.o)){static{r=M.Z}static{s=this}constructor(e){super(e),this[r]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperty(this,"uid",{value:(0,h.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,a.eF)(u.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,b.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;let i=this.origin&&"layer"in this.origin?this.origin.layer:null;for(let t of[i,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 i=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",i,t,e)}else this.attributes={[e]:t}}getObjectId(){let e=(0,f.I)(this.origin);if(e)return(0,v.r)(this,e);let t=this.sourceLayer??this.layer;return t?(0,v.r)(this,t):null}getGlobalId(){let e=(0,f.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:w(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,c.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){let{geometry:t}=this;if("mesh"===t?.type){let i={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",i,i,e.action)}}_notifyLayer(e,t,i,r){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;let s={graphic:this,property:e,oldValue:t,newValue:i};"origin-transform"===e&&(s.action=r),"attributes"===e&&(s.attributeName=r),this.layer.graphicChanged(s)}_watchMeshGeometryChanges(){this.removeHandles(C);let e=this.geometry;"mesh"===e?.type&&this.addHandles([(0,p.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,p.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 i in e){let r=(0,g.rS)(e[i]);r&&(t[i]=r)}return 0===Object.keys(t).length?null:t}}})],I.prototype,"aggregateGeometries",null),(0,o.Cg)([(0,y.MZ)({value:null})],I.prototype,"attributes",null),(0,o.Cg)([(0,y.MZ)({value:null,types:m.yR,json:{read:g.rS}})],I.prototype,"geometry",null),(0,o.Cg)([(0,y.MZ)()],I.prototype,"distance",void 0),(0,o.Cg)([(0,y.MZ)({type:Boolean})],I.prototype,"isAggregate",void 0),(0,o.Cg)([(0,y.MZ)({clonable:!1})],I.prototype,"layer",void 0),(0,o.Cg)([(0,y.MZ)({clonable:"reference"})],I.prototype,"origin",void 0),(0,o.Cg)([(0,y.MZ)({type:l.A,value:null})],I.prototype,"popupTemplate",null),(0,o.Cg)([(0,y.MZ)({clonable:"reference"})],I.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)}})],I.prototype,"statisticsAggregatedIds",void 0),(0,o.Cg)([(0,y.MZ)({value:null,types:S.Es})],I.prototype,"symbol",null),(0,o.Cg)([(0,y.MZ)({clonable:!1,json:{read:!1,write:!1}})],I.prototype,"_version",void 0),(0,o.Cg)([(0,y.MZ)({type:Boolean,value:!0})],I.prototype,"visible",null),I=s=(0,o.Cg)([(0,y.$K)("esri.Graphic")],I)},6797(e,t,i){i.d(t,{Ui:()=>h});var r=i(69622),s=i(7762),o=i(88620);const l=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function n(e){return e instanceof r.A}function a(e){return e instanceof s.A?Object.keys(e.items):n(e)?(0,o.oY)(e).keys():e?Object.keys(e):[]}function d(e,t){return e instanceof s.A?e.items[t]:e[t]}function u(e){return e?e.declaredClass:null}function p(e,t){let i=e.diff;if(i&&"function"==typeof i)return i(e,t);let r=a(e),s=a(t);if(0===r.length&&0===s.length)return;if(!r.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=>!r.includes(e)),h=r.filter(e=>!s.includes(e)),y=r.filter(i=>s.includes(i)&&d(e,i)!==d(t,i)).concat(o,h).sort(),c=u(e);if(c&&l.has(c)&&y.length)return{type:"complete",oldValue:e,newValue:t};let g,m=n(e)&&n(t);for(let r of y){let s,o=d(e,r),l=d(t,r);if((m||"function"!=typeof o&&"function"!=typeof l)&&o!==l&&(null!=o||null!=l)){if(i&&i[r]&&"function"==typeof i[r])s=i[r]?.(o,l);else if(o instanceof Date&&l instanceof Date){if(o.getTime()===l.getTime())continue;s={type:"complete",oldValue:o,newValue:l}}else s="object"==typeof o&&"object"==typeof l&&u(o)===u(l)?p(o,l):{type:"complete",oldValue:o,newValue:l};null!=s&&(null==g?g={type:"partial",diff:{[r]:s}}:g.diff[r]=s)}}return g}function h(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&u(e)!==u(t)?{type:"complete",oldValue:e,newValue:t}:p(e,t)}},55156(e,t,i){i.d(t,{I:()=>s});const r=Symbol("idFieldsProviderSymbol");function s(e){return(t=e)&&r in t?e[r]:void 0;var t}i.d(t,["e",0,r])},20737(e,t,i){i.r(t),i.d(t,{default:()=>ie});var r=i(32198),s=i(40124),o=i(56507),l=i(69540),n=i(7762),a=i(49186),d=i(36563),u=i(25728),p=i(17676),h=i(36708),y=i(91429),c=i(16930),g=i(41910),m=i(55156),f=i(60950),b=i(89808),v=i(99959);const M=Symbol("isAnnotationFeatureGraphicOrigin");var S;class C extends v.A{get[(S=M,f.ym)](){return this.layer}get[m.e](){return this.layer}get[b.Q](){return this.layer}get[g.e7](){return this.layer}constructor(e,t){super(),this[S]=!0,this.type="annotation-feature",this.layer=e,this.sublayer=t}get id(){return`${this.layer.id}:__${this.sublayer?.subtypeCode??null}__`}}var w=i(4146),I=i(52136),F=i(18768),A=i(63074),T=i(69208),Z=i(40775),j=i(47685),_=i(10086),O=i(34287),L=i(8303),x=i(54310),E=i(23502),P=i(25036),D=i(82935),k=i(4902),R=i(25482),V=i(4718),z=i(92474),N=i(10873);let q=0,G=class extends((0,R.T)((0,l.OU)((0,k.s)(z.x_)))){constructor(e){super(e),this.id=`${Date.now().toString(16)}-annotation-feature-sublayer-${q++}`,this.layerType="ArcGISAnnotationSubLayer",this.maxScale=0,this.minScale=0,this.parent=null,this.subtypeCode=null,this.type="annotation-feature-sublayer",this.visible=!0}get graphicOrigin(){return new C(this.parent,this)}get title(){return this._isOverridden("title")?this._get("title"):this.parent?.subtypes?.find(e=>e.code===this.subtypeCode)?.name??this.subtypeCode?.toString()??null}set title(e){this._override("title",e)}clone(){let e=super.clone();return this._isOverridden("title")&&(e.title=this.title),e}};(0,r.Cg)([(0,y.MZ)({readOnly:!0,clonable:!1})],G.prototype,"graphicOrigin",null),(0,r.Cg)([(0,y.MZ)({type:String,nonNullable:!0,clonable:!1,json:{write:{isRequired:!0}}})],G.prototype,"id",void 0),(0,r.Cg)([(0,y.MZ)({type:["ArcGISAnnotationSubLayer"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],G.prototype,"layerType",void 0),(0,r.Cg)([(0,y.MZ)((()=>{let e=(0,V.o8)(N.hG);return e.json??={},e.json.default=0,e})())],G.prototype,"maxScale",void 0),(0,r.Cg)([(0,y.MZ)((()=>{let e=(0,V.o8)(N.hn);return e.json??={},e.json.default=0,e})())],G.prototype,"minScale",void 0),(0,r.Cg)([(0,y.MZ)({clonable:!1})],G.prototype,"parent",void 0),(0,r.Cg)([(0,y.MZ)({type:Number,nonNullable:!0,json:{name:"subLayerId",write:{isRequired:!0}}})],G.prototype,"subtypeCode",void 0),(0,r.Cg)([(0,y.MZ)({type:String,nonNullable:!0,clonable:!1,json:{write:{isRequired:!0}}})],G.prototype,"title",null),(0,r.Cg)([(0,y.MZ)({readOnly:!0,json:{read:!1}})],G.prototype,"type",void 0),(0,r.Cg)([(0,y.MZ)({type:Boolean,nonNullable:!0,json:{default:!0,name:"visibility",write:!0}})],G.prototype,"visible",void 0),G=(0,r.Cg)([(0,y.$K)("esri.layers.support.AnnotationFeatureSublayer")],G);var J=i(60694),K=i(15426),$=i(17036),H=i(30524),U=i(91908),B=i(97552),W=i(30291),Q=i(36005);const Y="annotation-feature-layer",X=(0,$.p)(),ee=n.A.ofType(G);let te=class extends((0,E.Z)((0,Z.I)((0,_.j)((0,A.dM)((0,D.e)((0,j.w6)((0,P.j)((0,x.J)((0,F.b)((0,O.q)((0,L.A)((0,u.M)((0,T.d)((0,I.p)((0,l.OU)(w.A)))))))))))))))){constructor(e){super(e),this._sublayerLookup=new Map,this.barrierWeight="high",this.elementField="element",this.fields=null,this.fieldsIndex=null,this.graphicOrigin=new C(this,null),this.operationalLayerType="ArcGISAnnotationLayer",this.outFields=null,this.popupEnabled=!0,this.popupTemplate=null,this.referenceScale=0,this.source=null,this.statusField="status",this.sublayers=new ee,this.sublayerTitleMode="item-title",this.supportedPortalItemTypes=["Feature Service"],this.supportedSourceTypes=new Set(["Annotation Layer"]),this.symbolCollection=null,this.type="annotation-feature",this.unplacedAnnotationsVisible=!1,this._debouncedSaveOperations=(0,p.sg)(async(e,t,r)=>{let{save:s,saveAs:o}=await i.e(5740).then(()=>i(33359));switch(e){case 0:return s(this,t);case 1:return o(this,r,t)}}),this.addHandles((0,h.wB)(()=>this.sublayers,(e,t)=>this._handleSublayersChange(e,t),h.OH))}destroy(){this.source?.destroy()}load(e){let t=e?.signal,i=this.loadFromPortal({supportedTypes:this.supportedPortalItemTypes},e).catch(p.QP).then(async()=>{if(this.url&&null==this.layerId&&/FeatureServer|MapServer\/*$/i.test(this.url)){let e=await this._fetchFirstValidLayerId(t);null!=e&&(this.layerId=e)}if(!this.url)throw new a.A(`${Y}:missing-url`,"AnnotationFeatureLayer must be created with a url");return Promise.all([this.loadDataElement(e).then(()=>{if(!this.symbolCollection)throw new a.A(`${Y}:missing-symbol-collection`,"Invalid service with no symbol collection")}),this.initLayerProperties(await this.createGraphicsSource(t))])}).then(()=>(0,K.VA)(this,"load",e));return this.addResolvingPromise(i),Promise.resolve(this)}get editingEnabled(){return this._isOverridden("editingEnabled")?this._get("editingEnabled"):this.loaded&&null!=this.capabilities&&this.capabilities.operations.supportsEditing&&this.userHasEditingPrivileges}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}get effectiveEditingEnabled(){return!1}get defaultPopupTemplate(){return this.createPopupTemplate()}readSublayers(e,t){let i=new ee(t.subtypes.map(({code:e})=>new G({subtypeCode:e})).reverse());if(this.visibleLayers){let e=new Set(this.visibleLayers);i.forEach(t=>{t.visible=e.has(t.subtypeCode)})}return i}readTitleFromService(e,t){let{url:i}=this,r=t.name||(0,J.qg)(i)?.title;switch(this.sublayerTitleMode){case"item-title":if(i)return(0,J.yG)(i,r);break;case"item-title-and-service-name":{let e=this.portalItem?.title;if(e&&e!==r)return e=(0,J.cr)(e),r?`${e} - ${(0,J.cr)(r)}`:e;break}}return r?(0,J.cr)(r):void 0}readTitleFromPortalItem(e){return"item-title"===this.sublayerTitleMode?e:void 0}get visibleLayers(){return 0===this.sublayers.length?this._get("visibleLayers")??null:Array.from(new Set(function(e){return e.sublayers?.toArray().filter(e=>e.visible).map(e=>e.subtypeCode).sort((e,t)=>e-t)??null}(this)))}set visibleLayers(e){this._set("visibleLayers",e)}createPopupTemplate(e){return(0,W.tn)(this,e)}async createGraphicsSource(e){let t={stack:[],error:void 0,hasError:!1};try{let{default:s}=await(0,p.qr)(Promise.all([i.e(893),i.e(7),i.e(514)]).then(()=>i(60845)),e),o=new s({layer:this,supportedSourceTypes:this.supportedSourceTypes});return(0,r.mS)(t,(0,d.Bf)((0,p.u7)(e,()=>o.cancelLoad())??(0,d.hA)()),!1),await o.load({signal:e}),o}catch(e){t.error=e,t.hasError=!0}finally{(0,r.hk)(t)}}createQuery(){let e=(0,K.VZ)(this);return e.where=this.definitionExpression||"1=1",e}findSublayerForFeature(e){let t=this.fieldsIndex.get(this.subtypeField),i=e.attributes[t.name];return this.findSublayerForSubtypeCode(i)}findSublayerForSubtypeCode(e){return this._sublayerLookup.get(e)}getFieldDomain(e,t){return(0,K.Vq)(this,e,t,this.getField(e)?.domain??null)}async queryFeatures(e,t){let i=await this.load(),r=await i.source.queryFeatures(B.A.from(e)??i.createQuery(),t);if(r?.features)for(let e of r.features)e.origin=this.findSublayerForFeature(e)?.graphicOrigin??this.graphicOrigin,e.layer=e.sourceLayer=this;return r}async queryObjectIds(e,t){let i=await this.load();return i.source.queryObjectIds(B.A.from(e)??i.createQuery(),t)}async queryFeatureCount(e,t){let i=await this.load();return i.source.queryFeatureCount(B.A.from(e)??i.createQuery(),t)}async queryExtent(e,t){let i=await this.load();return i.source.queryExtent(B.A.from(e)??i.createQuery(),t)}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}serviceSupportsSpatialReference(e){return this.loaded&&(0,U.D)(this,e)}async initLayerProperties(e){this._set("source",e),e.sourceJSON&&(this.sourceJSON=e.sourceJSON,this.read(e.sourceJSON,{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl})),this._verifySource(),(0,H.sv)(this.timeInfo,this.fieldsIndex)}async reloadFromService(e){let t=this.source;await Promise.all([t.reload({signal:e}),this.loadDataElement({signal:e})]),await this.initLayerProperties(t)}async hasDataChanged(){return(0,K.jp)(this)}_verifySource(){if(this.version&&this.version<10.8)throw new a.A(Y+":unsupported-version","The feature service must be version 10.8 or above.");let e=["ZOrder","AnnotationClassID","Element","SymbolID","Status"],t=e.filter(e=>!this.fieldsIndex.has(e));if(!this.fieldsIndex.has("FeatureID")&&!this.fieldsIndex.has("FeatureGlobalID")&&t.unshift("FeatureID","FeatureGlobalID"),t.length)throw new a.A(Y+":missing-fields","There are missing fields to operate properly",{requiredFields:e,missingFields:t})}_fetchFirstValidLayerId(e){return(0,o.A)(this.url??"",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e}).then(e=>{let t=e.data;return t?(this.applyPreferredHost(t),[...t.layers||[],...t.tables||[]].find(({type:e})=>!e||this.supportedSourceTypes.has(e))?.id):void 0})}_handleSublayersChange(e,t){t&&(t.forEach(e=>{e.parent=null}),this.removeHandles("sublayers-owner"),this._sublayerLookup.clear()),e&&(e.forEach(e=>{e.parent=this,this._sublayerLookup.set(e.subtypeCode,e)}),this.addHandles([e.on("after-add",({item:e})=>{e.parent=this,this._sublayerLookup.set(e.subtypeCode,e)}),e.on("after-remove",({item:e})=>{e.parent=null,this._sublayerLookup.delete(e.subtypeCode)})],"sublayers-owner"))}};(0,r.Cg)([(0,y.MZ)({type:c.A,json:{origins:{service:{read:{source:"sourceSpatialReference"}}}}})],te.prototype,"attributeSpatialReference",void 0),(0,r.Cg)([(0,y.MZ)(N.es)],te.prototype,"barrierWeight",void 0),(0,r.Cg)([(0,y.MZ)({nonNullable:!0,json:{name:"enableEditing",write:!0}})],te.prototype,"editingEnabled",null),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],te.prototype,"effectiveEditingEnabled",null),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],te.prototype,"elementField",void 0),(0,r.Cg)([(0,y.MZ)({...X.fields,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],te.prototype,"fields",void 0),(0,r.Cg)([(0,y.MZ)(X.fieldsIndex)],te.prototype,"fieldsIndex",void 0),(0,r.Cg)([(0,y.MZ)({readOnly:!0,clonable:!1})],te.prototype,"graphicOrigin",void 0),(0,r.Cg)([(0,y.MZ)(N.id)],te.prototype,"id",void 0),(0,r.Cg)([(0,y.MZ)({type:["show","hide","hide-children"],json:{origins:{"portal-item":{read:!1,write:!1}}}})],te.prototype,"listMode",void 0),(0,r.Cg)([(0,y.MZ)({type:["ArcGISAnnotationLayer"],json:{origins:{"portal-item":{name:"layerType",write:{enabled:!0,ignoreOrigin:!0,isRequired:!0}}}}})],te.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,y.MZ)(X.outFields)],te.prototype,"outFields",void 0),(0,r.Cg)([(0,y.MZ)(N.M6)],te.prototype,"popupEnabled",void 0),(0,r.Cg)([(0,y.MZ)({type:s.A,json:{name:"popupInfo",write:!0}})],te.prototype,"popupTemplate",void 0),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],te.prototype,"defaultPopupTemplate",null),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],te.prototype,"referenceScale",void 0),(0,r.Cg)([(0,y.MZ)({clonable:!1,readOnly:!0})],te.prototype,"source",void 0),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],te.prototype,"statusField",void 0),(0,r.Cg)([(0,y.MZ)({type:ee,json:{name:"layers",write:{ignoreOrigin:!0}}})],te.prototype,"sublayers",void 0),(0,r.Cg)([(0,Q.w)("service","sublayers",["subtypes"])],te.prototype,"readSublayers",null),(0,r.Cg)([(0,y.MZ)({type:String})],te.prototype,"sublayerTitleMode",void 0),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],te.prototype,"symbolCollection",void 0),(0,r.Cg)([(0,Q.w)("service","title",["name"])],te.prototype,"readTitleFromService",null),(0,r.Cg)([(0,Q.w)("portal-item","title")],te.prototype,"readTitleFromPortalItem",null),(0,r.Cg)([(0,y.MZ)({json:{read:!1},value:"annotation-feature",readOnly:!0})],te.prototype,"type",void 0),(0,r.Cg)([(0,y.MZ)()],te.prototype,"unplacedAnnotationsVisible",void 0),(0,r.Cg)([(0,y.MZ)({type:[Number]})],te.prototype,"visibleLayers",null),te=(0,r.Cg)([(0,y.$K)("esri.layers.AnnotationFeatureLayer")],te);const ie=te},54339(e,t,i){function r(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{let i=[];for(let r of t.fieldNames)i.push(e.attributes[r]??null);return JSON.stringify(i)}}}function s(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];let i=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(i)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}i.d(t,{W:()=>r,r:()=>s})},52136(e,t,i){var r=i(32198),s=i(91429);i.d(t,["p",0,e=>{let t=e,i=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null==e?(this._clearOverride("apiKey"),this.clear("apiKey","user")):this._override("apiKey",e)}};return(0,r.Cg)([(0,s.MZ)({type:String})],i.prototype,"apiKey",null),i=(0,r.Cg)([(0,s.$K)("esri.layers.mixins.APIKeyMixin")],i),i}])},40775(e,t,i){var r=i(32198),s=i(56507),o=i(49186),l=i(84952),n=i(91429),a=i(95250);function d(e,t){let i=e.indexOf(t);return-1===i?void 0:e[i+1]}function u(e,t){let i=d(e,t);return i&&"string"==typeof i?JSON.parse(i):null}function p(e){let t=d(e,"ReferenceScale")??0;return"string"==typeof t?parseFloat(t):t}function h(e){return u(e,"SymbolCollection")??void 0}function y(e){return u(e,"StyleCollection")??void 0}i.d(t,["I",0,e=>{let t=e,i=class extends t{async loadDataElement(e){if(!this.url||null==this.layerId)throw new o.A("fetchDataElement:missing-url-or-layerId","The layer must have a url and a layerId to fetch the data element.");let t=(0,l.fj)(this.url,"queryDataElements"),i={f:"json",layers:this.layerId},{data:r}=await(0,s.A)(t,{...e,responseType:"json",query:i}),n=r.layerDataElements.find(e=>e.layerId===this.layerId)?.dataElement;if(!n)throw new o.A("fetchDataElement:not-available","A data element for this layer could not be retrieved.");let d=n.extensionProperties?.propertySetItems??[],u=p(d),c=(0,a.S)(h(d)),g=(0,a.S)(y(d));this.read({referenceScale:u,symbolCollection:c,styleCollection:g},{origin:"service"})}};return i=(0,r.Cg)([(0,n.$K)("esri.layers.mixins.DataElementMixin")],i),i}])},47685(e,t,i){i.d(t,{Mk:()=>y,Zk:()=>p});var r=i(32198),s=i(65529),o=i(4718),l=i(91429),n=i(20816);const a=new s.bk;function d(e){return a.on("apply-edits",new WeakRef(e))}function u(e){return a.on("update-moment",new WeakRef(e))}function p(e,t,i=null,r=!1){let s=Promise.withResolvers();return r=null==t||r,a.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:i,mayReceiveServiceEdits:r,result:s.promise}),s}const h=Symbol();function y(e){return"object"==typeof e&&!!e&&h in e}function c(e){return"object"==typeof e&&!!e&&"gdbVersion"in e}function g(e,t,i){let r=new URL(e).host,s=n.Z3.get(r),o=e=>!e||e===s;return o(t)&&o(i)||t===i}i.d(t,["w6",0,e=>{var t;let i=e,s=class extends i{static{t=h}constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{let{serviceUrl:t,layerId:i,gdbVersion:r,mayReceiveServiceEdits:s,result:l}=e,n=t===this.url,a=null!=i&&null!=this.layerId&&i===this.layerId,d=null!=i&&this.relationships?.some(e=>e.relatedTableId===i),u=c(this),p=c(this)&&g(t,r,this.gdbVersion);if(!n||u&&!p||!a&&!d&&!s)return;let h=l.then(e=>{if(this.lastEditsEventDate=new Date,a&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,o.o8)(e)),e;let i=e.editedFeatures?.find(({layerId:e})=>e===this.layerId);if(i){let{adds:t,updates:r,deletes:s}=i.editedFeatures,l={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:t?t.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],deletedFeatures:s?s.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],updatedFeatures:r?r.map(({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],editedFeatures:(0,o.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,o.o8)(e.historicMoment)};return this.emit("edits",l),l}let s={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,o.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,o.o8)(e.historicMoment)};return"historicMoment"in this&&this._shouldUpdateHistoricMoment(t,r,s.historicMoment)&&this.emit("edits",s),s}).then(e=>("historicMoment"in this&&this._shouldUpdateHistoricMoment(t,r,e.historicMoment)&&(this.historicMoment=e.historicMoment),e));h.catch(()=>{}),this.emit("apply-edits",{result:h})},this._updateMomentHandler=e=>{let{serviceUrl:t,gdbVersion:i,moment:r}=e,s=t===this.url,o=c(this),l=c(this)&&g(t,i,this.gdbVersion),n=c(this)&&!g(t,this.gdbVersion,null);s&&o&&l&&n&&"historicMoment"in this&&this.historicMoment!==r&&(this.historicMoment=r)},this.when().then(()=>{this.addHandles(d(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(u(this._updateMomentHandler))},()=>{})}_shouldUpdateHistoricMoment(e,t,i){return"historicMoment"in this&&this.historicMoment!==i&&(0,n.w5)(e,t)}};return(0,r.Cg)([(0,l.MZ)()],s.prototype,"lastEditsEventDate",void 0),s=(0,r.Cg)([(0,l.$K)("esri.layers.mixins.EditBusLayer")],s),s}])},28032(e,t,i){i.d(t,{A:()=>a});var r=i(32198),s=i(69540),o=i(25482),l=i(91429),n=i(56400);let a=class extends((0,s.OU)(o.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,r.Cg)([(0,l.MZ)()],a.prototype,"creatorField",void 0),(0,r.Cg)([(0,l.MZ)()],a.prototype,"creationDateField",void 0),(0,r.Cg)([(0,l.MZ)()],a.prototype,"editorField",void 0),(0,r.Cg)([(0,l.MZ)()],a.prototype,"editDateField",void 0),(0,r.Cg)([(0,l.MZ)()],a.prototype,"realm",void 0),(0,r.Cg)([(0,l.MZ)((0,n.P6)("dateFieldsTimeReference",!0))],a.prototype,"timeZone",void 0),a=(0,r.Cg)([(0,l.$K)("esri.layers.support.EditFieldsInfo")],a)},37352(e,t,i){i.d(t,{A:()=>a});var r,s=i(32198),o=i(7762),l=i(25482),n=i(91429);let a=r=class extends l.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new o.A}clone(){return new r({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,s.Cg)([(0,n.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"floorField",void 0),(0,s.Cg)([(0,n.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllMode",void 0),(0,s.Cg)([(0,n.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllLevelIds",void 0),a=r=(0,s.Cg)([(0,n.$K)("esri.layers.support.LayerFloorInfo")],a)},45067(e,t,i){i.d(t,{A:()=>u});var r=i(32198),s=i(69540),o=i(66552),l=i(25482),n=i(91429);const a=new o.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),d=new o.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let u=class extends((0,s.OU)(l.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,r.Cg)([(0,n.MZ)({json:{read:a.read,write:a.write}})],u.prototype,"cardinality",void 0),(0,r.Cg)([(0,n.MZ)({json:{name:"catalogID"}})],u.prototype,"catalogId",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],u.prototype,"composite",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],u.prototype,"id",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],u.prototype,"keyField",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],u.prototype,"keyFieldInRelationshipTable",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],u.prototype,"name",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],u.prototype,"relatedTableId",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],u.prototype,"relationshipTableId",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:d.read,write:d.write}})],u.prototype,"role",void 0),u=(0,r.Cg)([(0,n.$K)("esri.layers.support.Relationship")],u)},41366(e,t,i){var r=i(32198),s=i(66552),o=i(53966),l=i(91429),n=i(93223);const a=(0,s.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),d="percent-of-total",u="field";i.d(t,["K",0,e=>{let t=e,i=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,i=null!=this.normalizationTotal;return t||i?(e=t&&u||i&&d||null,t&&i&&o.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):(e===u||e===d)&&(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,r.Cg)([(0,l.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],i.prototype,"normalizationField",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],i.prototype,"normalizationMaxValue",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],i.prototype,"normalizationMinValue",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],i.prototype,"normalizationTotal",void 0),(0,r.Cg)([(0,n.e)(a,{name:"parameters.normalizationType"})],i.prototype,"normalizationType",null),i=(0,r.Cg)([(0,l.$K)("esri.rest.support.NormalizationBinParametersMixin")],i),i},"Q",0,a])},95250(e,t,i){function r(e){return s(e,{CIMRGBColor:o,CIMCharacterMarker:l})}function s(e,t){if(null==e)return e;if(Array.isArray(e))return e.map(e=>s(e,t));if("object"==typeof e){if("type"in e&&"string"==typeof e.type&&t[e.type])return t[e.type](e);let i={};for(let[r,o]of Object.entries(e))i[r]=s(o,t);return i}return e}function o(e){let[t,i,r,s]=e.values;return[t,i,r,255*s/100]}function l(){return{type:"CIMVectorMarker",enable:!0,size:40,colorLocked:!1,anchorPointUnits:"Relative",frame:{xmin:-10,ymin:-10,xmax:10,ymax:10},markerGraphics:[{type:"CIMMarkerGraphic",textString:"■",geometry:{x:0,y:0},symbol:{type:"CIMTextSymbol",underline:!1,blockProgression:"TTB",depth3D:0,extrapolateBaselines:!0,flipAngle:90,fontEffects:"Normal",fontEncoding:"Unicode",haloSize:0,height:8,hinting:"Default",horizontalAlignment:"Center",kerning:!0,letterSpacing:10,letterWidth:100,ligatures:!1,lineGapType:"ExtraLeading",symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:[0,0,0,255]}]},symbol3DProperties:{type:"CIM3DSymbolProperties",dominantSizeAxis3D:"Z",rotationOrder3D:"XYZ",scaleZ:1,scaleY:1},textCase:"Normal",textDirection:"LTR",verticalAlignment:"Center",verticalGlyphOrientation:"Right",wordSpacing:100,billboardMode3D:"FaceNearPlane"}}],scaleSymbolsProportionally:!0,respectFrame:!0}}i.d(t,{S:()=>r})},93470(e,t,i){const r=[252,146,31,255],s={type:"esriSMS",style:"esriSMSCircle",size:6,color:r,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},o={type:"esriSLS",style:"esriSLSSolid",width:.75,color:r};i.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,r,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,o])},20816(e,t,i){i.d(t,{We:()=>n,ZJ:()=>a,w5:()=>d});var r=i(56507);const s=(0,i(13069).vD)(),o=new Map,l=new Map;async function n(e,t,i){if(!e||!i)return!1;if(!t)return!0;let s=new URL(e).host,l=o.get(s);if(!l){let t=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,"");l=(await(0,r.A)(t,{responseType:"json",query:{f:"json"}})).data.defaultVersionName}return l===t}async function a(e,t,r=!1){if(!e||!t)return!0;let o=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),n=l.get(o)?.entries();if(n)for(let[e,l]of n)if(l.name===t){let t=!l.stack?.hasForwardEdits();if(!t&&r){let[{deleteForwardEdits:t},{default:r}]=await Promise.all([i.e(2186).then(()=>i(32186)),i.e(2558).then(()=>i(32558))]),n=await t(o,e,new r({sessionId:s,moment:l.moment}));return n.success&&l.stack?.clearForwardEdits(),n.success}return t}return!0}function d(e,t){if(!e)return!1;let i=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),r=l.get(i)?.entries();if(r)for(let[e,i]of r)if(i.name===t)return"edit"===i.lockType;return!1}new Map,i.d(t,["TA",0,s,"Z3",0,o])}}]);
|