@arcgis/core 4.23.0-next.20220126 → 4.23.0-next.20220127
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/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/02fbc76dfdc20e628c61.js +1 -0
- package/assets/esri/core/workers/chunks/0317f37b6c8705b363fd.js +1 -0
- package/assets/esri/core/workers/chunks/0453fad5cb819797b4f6.js +1 -0
- package/assets/esri/core/workers/chunks/{97ec9eef0048760fa260.js → 0d02c6ad1f4688bfa374.js} +1 -1
- package/assets/esri/core/workers/chunks/0d684f16f37d5dc385dd.js +1 -0
- package/assets/esri/core/workers/chunks/0e17691520d890d34efb.js +1 -0
- package/assets/esri/core/workers/chunks/12c0cabb6c59e65d8546.js +1 -0
- package/assets/esri/core/workers/chunks/16b6d0f8378582c051c3.js +1 -0
- package/assets/esri/core/workers/chunks/{b313ab14a643273e7d09.js → 1877ab1b6a115dbba1c5.js} +1 -1
- package/assets/esri/core/workers/chunks/1b2a961f776a0b57e57a.js +1 -0
- package/assets/esri/core/workers/chunks/1b3fd66577b19aa5f2b6.js +1 -0
- package/assets/esri/core/workers/chunks/1f8c6a179e39fd4c5e6f.js +1 -0
- package/assets/esri/core/workers/chunks/2076fcbae63f1bfb7143.js +1 -0
- package/assets/esri/core/workers/chunks/281b89dbf5574fc642ae.js +1 -0
- package/assets/esri/core/workers/chunks/2c8fe9bc988c3c5760a5.js +1 -0
- package/assets/esri/core/workers/chunks/322d917e8cb398816a93.js +1 -0
- package/assets/esri/core/workers/chunks/34b59d7099904dcb28b5.js +1 -0
- package/assets/esri/core/workers/chunks/{e6165e17fbb07bfc40a1.js → 391e96192d1ec4e55ce2.js} +1 -1
- package/assets/esri/core/workers/chunks/{23b15e7c2f96d260e16c.js → 392b6382e06652dd4c80.js} +1 -1
- package/assets/esri/core/workers/chunks/3aa73119b055e05bbbeb.js +1 -0
- package/assets/esri/core/workers/chunks/{c959e0d1cf7dce0421b9.js → 48fa8aed6c24877b44c4.js} +1 -1
- package/assets/esri/core/workers/chunks/{438f0b5ae5c53ae4f06a.js → 4954fd86b48cc68b737c.js} +1 -1
- package/assets/esri/core/workers/chunks/4ba6de8aa7e2960bad49.js +1 -0
- package/assets/esri/core/workers/chunks/52ea678ba1da0e349919.js +1 -0
- package/assets/esri/core/workers/chunks/56274b37ff74ca0d68a6.js +1 -0
- package/assets/esri/core/workers/chunks/{b9c177524b3e7de1ffd1.js → 5790d171072b3c7d108f.js} +1 -1
- package/assets/esri/core/workers/chunks/{5dfe1f8d520025e2118b.js → 57b349d1dbc0bed75b79.js} +1 -1
- package/assets/esri/core/workers/chunks/{b2ebe4f6d100e15b512d.js → 5948923e07bd1662c24a.js} +1 -1
- package/assets/esri/core/workers/chunks/{97a28641b3b2fd31bea2.js → 5bcb3240b3c005e5fe72.js} +1 -1
- package/assets/esri/core/workers/chunks/5dbe555a5a662ff3d9ce.js +1 -0
- package/assets/esri/core/workers/chunks/5ec98f4ddac707d0fbd1.js +1 -0
- package/assets/esri/core/workers/chunks/5ee497d5d7b0e580526a.js +1 -0
- package/assets/esri/core/workers/chunks/5f1dcb6556820cd0aa31.js +1 -0
- package/assets/esri/core/workers/chunks/64b7e8d812ea8fcf269e.js +1 -0
- package/assets/esri/core/workers/chunks/{b0b036ad3ad3cd956747.js → 69fd99b7c76e9992ccf3.js} +1 -1
- package/assets/esri/core/workers/chunks/6e6a3c5866e8d8820457.js +1 -0
- package/assets/esri/core/workers/chunks/75d812955a473d0e8960.js +1 -0
- package/assets/esri/core/workers/chunks/{cc146c57bbdac8029fd8.js → 7a5f5acfbd4ca1a5c1f3.js} +1 -1
- package/assets/esri/core/workers/chunks/8001b0e514bfffe9d7f8.js +1 -0
- package/assets/esri/core/workers/chunks/83b8fec1650e061aaa56.js +1 -0
- package/assets/esri/core/workers/chunks/83d00afae4406ec78bc9.js +1 -0
- package/assets/esri/core/workers/chunks/842db82733635dbf25cb.js +1 -0
- package/assets/esri/core/workers/chunks/{434b16731c6a81f868ef.js → 85b1f36790df95b17659.js} +1 -1
- package/assets/esri/core/workers/chunks/89820b200ee44e678af5.js +1 -0
- package/assets/esri/core/workers/chunks/{94b8dbf859df71858d1c.js → 929c9b7cdab7c4ca3d87.js} +1 -1
- package/assets/esri/core/workers/chunks/{010a71c2aa1b7681e191.js → 9d11f84e6c893b9d0019.js} +1 -1
- package/assets/esri/core/workers/chunks/a1930e4f035bc9aa1ae5.js +1 -0
- package/assets/esri/core/workers/chunks/a8692bffb76444c34760.js +1 -0
- package/assets/esri/core/workers/chunks/{f760a3e030b0f358a92a.js → aeaa1667c2d9f1b3366b.js} +1 -1
- package/assets/esri/core/workers/chunks/{a8b13fb804bb775e4967.js → b62e3dccd9f662c0afeb.js} +1 -1
- package/assets/esri/core/workers/chunks/b97953694f42bfec1b3c.js +1 -0
- package/assets/esri/core/workers/chunks/b9e9cb354822c6d995a4.js +1 -0
- package/assets/esri/core/workers/chunks/ba762bcfd74af0bb8218.js +1 -0
- package/assets/esri/core/workers/chunks/{e4b84ca8ddfd48dd79b1.js → bac9fc90e6756e211160.js} +1 -1
- package/assets/esri/core/workers/chunks/bf97a933ea3b220115e1.js +1 -0
- package/assets/esri/core/workers/chunks/bfedd6ebff817c9b31c0.js +1 -0
- package/assets/esri/core/workers/chunks/c093dff4592832ac0973.js +1 -0
- package/assets/esri/core/workers/chunks/c1135cb02ec46c491459.js +1 -0
- package/assets/esri/core/workers/chunks/{e4e2036373166c1d5cf5.js → c2253a9f29c1aabb2b75.js} +1 -1
- package/assets/esri/core/workers/chunks/c9cbf8135e95f0f42cd9.js +1 -0
- package/assets/esri/core/workers/chunks/d04fca5d46cca02500b7.js +1 -0
- package/assets/esri/core/workers/chunks/d07440469fe7d181c4fd.js +1 -0
- package/assets/esri/core/workers/chunks/d08efbc349dd9f999497.js +1 -0
- package/assets/esri/core/workers/chunks/d835b2a683fcd8aeeed8.js +1 -0
- package/assets/esri/core/workers/chunks/dbf192b4ce7e608610f6.js +1 -0
- package/assets/esri/core/workers/chunks/dd13772a5e2eccc6a2bc.js +1 -0
- package/assets/esri/core/workers/chunks/dedc333a61081772ca7b.js +1 -0
- package/assets/esri/core/workers/chunks/{22b09e276c9b9f22f0f8.js → dee9929d95e9fe26929c.js} +1 -1
- package/assets/esri/core/workers/chunks/{6f50a9647f026a8d4729.js → e0c8d61c7a85ce15499a.js} +1 -1
- package/assets/esri/core/workers/chunks/e12d91ef44d6f879a02a.js +1 -0
- package/assets/esri/core/workers/chunks/{0ce1dc14280d6f188468.js → e4896cf85fb2da8a9cc7.js} +1 -1
- package/assets/esri/core/workers/chunks/e657ba0cab29f05d02da.js +1 -0
- package/assets/esri/core/workers/chunks/e8741bf421f80213f1d3.js +1 -0
- package/assets/esri/core/workers/chunks/e8e775758b79c5a084c8.js +1 -0
- package/assets/esri/core/workers/chunks/e93dfdede0532a89ffa5.js +1 -0
- package/assets/esri/core/workers/chunks/ea595b0df5050eda2a13.js +1 -0
- package/assets/esri/core/workers/chunks/{1305ef8717da6e902a55.js → ec10151a2a95e95a0bb5.js} +1 -1
- package/assets/esri/core/workers/chunks/eccba071ced2d922bb85.js +1 -0
- package/assets/esri/core/workers/chunks/f2124f4d0f2b8a91f0ea.js +1 -0
- package/assets/esri/core/workers/chunks/f9ff3eaf4eb324429fbd.js +1 -0
- package/assets/esri/libs/vxl/vxlLayer.wasm +0 -0
- package/assets/esri/themes/base/widgets/_Weather.scss +1 -1
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/dark-blue/main.css +1 -1
- package/assets/esri/themes/dark-green/main.css +1 -1
- package/assets/esri/themes/dark-purple/main.css +1 -1
- package/assets/esri/themes/dark-red/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/assets/esri/themes/light-blue/main.css +1 -1
- package/assets/esri/themes/light-green/main.css +1 -1
- package/assets/esri/themes/light-purple/main.css +1 -1
- package/assets/esri/themes/light-red/main.css +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_ar.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_bg.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_bs.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_ca.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_cs.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_da.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_de.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_el.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_en.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_es.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_et.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_fi.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_fr.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_he.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_hr.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_hu.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_id.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_it.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_ja.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_ko.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_lt.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_lv.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_nb.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_nl.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_pl.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_pt-BR.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_pt-PT.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_ro.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_ru.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_sk.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_sl.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_sr.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_sv.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_th.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_tr.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_uk.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_vi.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_zh-CN.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_zh-HK.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_zh-TW.json +1 -1
- package/chunks/Precipitation.glsl.js +91 -0
- package/chunks/vxlLayer.js +1 -1
- package/core/clock.js +1 -1
- package/core/jsonMap.js +1 -1
- package/core/promiseUtils.js +1 -1
- package/core/reactiveUtils.js +1 -1
- package/form/ExpressionInfo.js +1 -1
- package/interfaces.d.ts +28 -28
- package/package.json +1 -1
- package/rest/print.js +1 -1
- package/support/arcadeOnDemand.js +1 -1
- package/support/featureFlags.js +1 -1
- package/support/revision.js +1 -1
- package/views/2d/MapViewConstraints.js +1 -1
- package/views/2d/viewpointUtils.js +1 -1
- package/views/3d/environment/CloudsPresets.js +1 -1
- package/views/3d/environment/EnvironmentRenderer.js +1 -1
- package/views/3d/environment/Precipitation.glsl.js +5 -0
- package/views/3d/environment/Precipitation.js +5 -0
- package/views/3d/environment/PrecipitationTechnique.js +5 -0
- package/views/3d/environment/RainyWeather.js +1 -1
- package/views/3d/environment/SnowyWeather.js +5 -0
- package/views/3d/environment/weather.js +1 -1
- package/views/3d/interactive/analysisTools/slice/SliceTool.js +1 -1
- package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
- package/views/3d/layers/GraphicsLayerView3D.js +1 -1
- package/views/3d/layers/GraphicsView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DFeatureProcessor.js +1 -1
- package/views/3d/layers/graphics/GraphicsProcessor.js +1 -1
- package/views/3d/support/sunUtils.js +1 -1
- package/views/3d/webgl-engine/lib/RenderPluginManager.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/MapView.js +1 -1
- package/views/View.js +1 -1
- package/views/input/recognizers/DoubleTapDrag.js +1 -1
- package/views/input/recognizers/ImmediateDoubleClick.js +1 -1
- package/views/input/recognizers/PointerClickHoldAndDrag.js +1 -1
- package/views/input/recognizers/SingleAndDoubleClick.js +1 -1
- package/views/support/DefaultsFromMap.js +1 -1
- package/views/support/projectionUtils.js +5 -0
- package/widgets/AreaMeasurement3D/AreaMeasurement3DViewModel.js +1 -1
- package/widgets/BasemapGallery/BasemapGalleryViewModel.js +1 -1
- package/widgets/BasemapGallery/support/BasemapGalleryItem.js +1 -1
- package/widgets/BasemapGallery/support/basemapCompatibilityUtils.js +1 -1
- package/widgets/BasemapGallery.js +1 -1
- package/widgets/DirectLineMeasurement3D/DirectLineMeasurement3DViewModel.js +1 -1
- package/widgets/LineOfSight/LineOfSightViewModel.js +1 -1
- package/widgets/Slice/SliceViewModel.js +1 -1
- package/widgets/Weather/WeatherViewModel.js +1 -1
- package/widgets/Weather/css.js +1 -1
- package/widgets/Weather/enums.js +5 -0
- package/widgets/Weather.js +1 -1
- package/widgets/support/InteractiveToolViewModel.js +1 -1
- package/assets/esri/core/workers/chunks/00c5bb5eecb0e89266df.js +0 -1
- package/assets/esri/core/workers/chunks/021a37e2b191298e80b7.js +0 -1
- package/assets/esri/core/workers/chunks/1370c92c40fd6271553c.js +0 -1
- package/assets/esri/core/workers/chunks/14bef72154b3a19561a7.js +0 -1
- package/assets/esri/core/workers/chunks/18668dc45eb9e35530df.js +0 -1
- package/assets/esri/core/workers/chunks/1e4d37c2b9dc83d20a11.js +0 -1
- package/assets/esri/core/workers/chunks/1fbcc8424452d0256bd6.js +0 -1
- package/assets/esri/core/workers/chunks/208a7e24e19fc5633dd7.js +0 -1
- package/assets/esri/core/workers/chunks/25a3e9bc0b4c7e0d3165.js +0 -1
- package/assets/esri/core/workers/chunks/2792ca40f1e92849247c.js +0 -1
- package/assets/esri/core/workers/chunks/2a96f1bba9ce6883e5e0.js +0 -1
- package/assets/esri/core/workers/chunks/3231ee3e090bb4cac3fc.js +0 -1
- package/assets/esri/core/workers/chunks/36a3f6fb4d1d18fcb642.js +0 -1
- package/assets/esri/core/workers/chunks/36e250278b5622ccf068.js +0 -1
- package/assets/esri/core/workers/chunks/395ba088d4864588ff66.js +0 -1
- package/assets/esri/core/workers/chunks/3aa4194dc5497c57647f.js +0 -1
- package/assets/esri/core/workers/chunks/3cc77692b2eee27b9c9e.js +0 -1
- package/assets/esri/core/workers/chunks/40a1e713f63ec77110c0.js +0 -1
- package/assets/esri/core/workers/chunks/4385a268c2a64281d1c1.js +0 -1
- package/assets/esri/core/workers/chunks/46b4bb66a54bbd8e2e57.js +0 -1
- package/assets/esri/core/workers/chunks/4bfbf5a34c9207fdcf44.js +0 -1
- package/assets/esri/core/workers/chunks/5a4a5585ec8027079f32.js +0 -1
- package/assets/esri/core/workers/chunks/5d4863a92b03bebc1b54.js +0 -1
- package/assets/esri/core/workers/chunks/5d991b74d958005c26c4.js +0 -1
- package/assets/esri/core/workers/chunks/634b5ccd7a3ac67f855d.js +0 -1
- package/assets/esri/core/workers/chunks/662d13f68cf3ec92439b.js +0 -1
- package/assets/esri/core/workers/chunks/7bc5cc5dbf1b7b70ddac.js +0 -1
- package/assets/esri/core/workers/chunks/7d661129a0d8c466eeec.js +0 -1
- package/assets/esri/core/workers/chunks/8070972c0efb78523b68.js +0 -1
- package/assets/esri/core/workers/chunks/85e27fd949475f9a6bbc.js +0 -1
- package/assets/esri/core/workers/chunks/8b6ab6202a40fe622833.js +0 -1
- package/assets/esri/core/workers/chunks/96ab518eb6ba11333dee.js +0 -1
- package/assets/esri/core/workers/chunks/98986e6601b0366376b4.js +0 -1
- package/assets/esri/core/workers/chunks/9cdcf9309d6feda70185.js +0 -1
- package/assets/esri/core/workers/chunks/aa861b8eae6c85f3dad4.js +0 -1
- package/assets/esri/core/workers/chunks/aace7e1fef256bb961c9.js +0 -1
- package/assets/esri/core/workers/chunks/ad081d8e49e7f90c3c26.js +0 -1
- package/assets/esri/core/workers/chunks/af5694b4d278cf1db2d9.js +0 -1
- package/assets/esri/core/workers/chunks/afbb4f802ca5774f0326.js +0 -1
- package/assets/esri/core/workers/chunks/b2c5f92e3d7606297ca9.js +0 -1
- package/assets/esri/core/workers/chunks/b8316c6469a543029bc6.js +0 -1
- package/assets/esri/core/workers/chunks/ba615f118a3a8970ef25.js +0 -1
- package/assets/esri/core/workers/chunks/ba6654a885be4b7a43f0.js +0 -1
- package/assets/esri/core/workers/chunks/bf0a65b4be31959f921d.js +0 -1
- package/assets/esri/core/workers/chunks/c11474b702dfb94e8e87.js +0 -1
- package/assets/esri/core/workers/chunks/c890c7fca27170e3341f.js +0 -1
- package/assets/esri/core/workers/chunks/c976785f2391c77d8a30.js +0 -1
- package/assets/esri/core/workers/chunks/ca2f5faa01d99c21ec14.js +0 -1
- package/assets/esri/core/workers/chunks/cef4af64860ebbfc1c47.js +0 -1
- package/assets/esri/core/workers/chunks/cfbffa429d88e7709c3f.js +0 -1
- package/assets/esri/core/workers/chunks/d24c4fbc567486b1188f.js +0 -1
- package/assets/esri/core/workers/chunks/e4f93c55eaefab4192b5.js +0 -1
- package/assets/esri/core/workers/chunks/ec89466f76d0ba22525e.js +0 -1
- package/assets/esri/core/workers/chunks/ee45618c45806ab654cb.js +0 -1
- package/assets/esri/core/workers/chunks/f467c8f1fce22f6f599c.js +0 -1
- package/assets/esri/core/workers/chunks/f4baa5ea2e42b1317941.js +0 -1
- package/assets/esri/core/workers/chunks/face43cf5abcd2f5bd9d.js +0 -1
- package/assets/esri/core/workers/chunks/ffaf091c6023225cf5aa.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7212,5732],{92835:(e,t,r)=>{r.d(t,{Z:()=>f});var s,i=r(43697),n=r(96674),o=r(70586),l=r(35463),a=r(5600),u=(r(67676),r(80442),r(75215),r(71715)),c=r(52011),h=r(30556);let p=s=class extends n.wq{constructor(e){super(e),this.end=null,this.start=null}static get allTime(){return d}static get empty(){return y}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?e.getTime():null}get isAllTime(){return this.equals(s.allTime)}get isEmpty(){return this.equals(s.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?e.getTime():null}clone(){return new s({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=(0,o.pC)(this.start)?this.start.getTime():this.start,r=(0,o.pC)(this.end)?this.end.getTime():this.end,s=(0,o.pC)(e.start)?e.start.getTime():e.start,i=(0,o.pC)(e.end)?e.end.getTime():e.end;return t===s&&r===i}expandTo(e){if(this.isEmpty||this.isAllTime)return this.clone();const t=(0,o.Po)(this.start,(t=>(0,l.JE)(t,e))),r=(0,o.Po)(this.end,(t=>(0,l.Nm)((0,l.JE)(t,e),1,e)));return new s({start:t,end:r})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return s.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=(0,o.R2)(this.start,-1/0,(e=>e.getTime())),r=(0,o.R2)(this.end,1/0,(e=>e.getTime())),i=(0,o.R2)(e.start,-1/0,(e=>e.getTime())),n=(0,o.R2)(e.end,1/0,(e=>e.getTime()));let l,a;if(i>=t&&i<=r?l=i:t>=i&&t<=n&&(l=t),r>=i&&r<=n?a=r:n>=t&&n<=r&&(a=n),!isNaN(l)&&!isNaN(a)){const e=new s;return e.start=l===-1/0?null:new Date(l),e.end=a===1/0?null:new Date(a),e}return s.empty}offset(e,t){if(this.isEmpty||this.isAllTime)return this.clone();const r=new s,{start:i,end:n}=this;return(0,o.pC)(i)&&(r.start=(0,l.Nm)(i,e,t)),(0,o.pC)(n)&&(r.end=(0,l.Nm)(n,e,t)),r}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return d.clone();const t=(0,o.pC)(this.start)&&(0,o.pC)(e.start)?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=(0,o.pC)(this.end)&&(0,o.pC)(e.end)?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new s({start:t,end:r})}};(0,i._)([(0,a.Cb)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"end",void 0),(0,i._)([(0,u.r)("end")],p.prototype,"readEnd",null),(0,i._)([(0,h.c)("end")],p.prototype,"writeEnd",null),(0,i._)([(0,a.Cb)({readOnly:!0,json:{read:!1}})],p.prototype,"isAllTime",null),(0,i._)([(0,a.Cb)({readOnly:!0,json:{read:!1}})],p.prototype,"isEmpty",null),(0,i._)([(0,a.Cb)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"start",void 0),(0,i._)([(0,u.r)("start")],p.prototype,"readStart",null),(0,i._)([(0,h.c)("start")],p.prototype,"writeStart",null),p=s=(0,i._)([(0,c.j)("esri.TimeExtent")],p);const d=new p,y=new p({start:void 0,end:void 0}),f=p},5732:(e,t,r)=>{r.d(t,{a:()=>n,c:()=>s,g:()=>i});var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function n(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}},52138:(e,t,r)=>{r.d(t,{a:()=>a,d:()=>f,e:()=>p,f:()=>d,h:()=>h,i:()=>o,j:()=>c,m:()=>u,p:()=>_,s:()=>n,t:()=>l,u:()=>y,v:()=>w,w:()=>b,y:()=>m});var s=r(65617),i=r(46851);function n(e,t,r,s,i,n,o,l,a,u,c,h,p,d,y,f,m){return e[0]=t,e[1]=r,e[2]=s,e[3]=i,e[4]=n,e[5]=o,e[6]=l,e[7]=a,e[8]=u,e[9]=c,e[10]=h,e[11]=p,e[12]=d,e[13]=y,e[14]=f,e[15]=m,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){const r=t[1],s=t[2],i=t[3],n=t[6],o=t[7],l=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]=s,e[9]=n,e[11]=t[14],e[12]=i,e[13]=o,e[14]=l}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 a(e,t){const r=t[0],s=t[1],i=t[2],n=t[3],o=t[4],l=t[5],a=t[6],u=t[7],c=t[8],h=t[9],p=t[10],d=t[11],y=t[12],f=t[13],m=t[14],g=t[15],v=r*l-s*o,S=r*a-i*o,b=r*u-n*o,w=s*a-i*l,_=s*u-n*l,M=i*u-n*a,A=c*f-h*y,x=c*m-p*y,I=c*g-d*y,U=h*m-p*f,C=h*g-d*f,E=p*g-d*m;let T=v*E-S*C+b*U+w*I-_*x+M*A;return T?(T=1/T,e[0]=(l*E-a*C+u*U)*T,e[1]=(i*C-s*E-n*U)*T,e[2]=(f*M-m*_+g*w)*T,e[3]=(p*_-h*M-d*w)*T,e[4]=(a*I-o*E-u*x)*T,e[5]=(r*E-i*I+n*x)*T,e[6]=(m*b-y*M-g*S)*T,e[7]=(c*M-p*b+d*S)*T,e[8]=(o*C-l*I+u*A)*T,e[9]=(s*I-r*C-n*A)*T,e[10]=(y*_-f*b+g*v)*T,e[11]=(h*b-c*_-d*v)*T,e[12]=(l*x-o*U-a*A)*T,e[13]=(r*U-s*x+i*A)*T,e[14]=(f*S-y*w-m*v)*T,e[15]=(c*w-h*S+p*v)*T,e):null}function u(e,t,r){const s=t[0],i=t[1],n=t[2],o=t[3],l=t[4],a=t[5],u=t[6],c=t[7],h=t[8],p=t[9],d=t[10],y=t[11],f=t[12],m=t[13],g=t[14],v=t[15];let S=r[0],b=r[1],w=r[2],_=r[3];return e[0]=S*s+b*l+w*h+_*f,e[1]=S*i+b*a+w*p+_*m,e[2]=S*n+b*u+w*d+_*g,e[3]=S*o+b*c+w*y+_*v,S=r[4],b=r[5],w=r[6],_=r[7],e[4]=S*s+b*l+w*h+_*f,e[5]=S*i+b*a+w*p+_*m,e[6]=S*n+b*u+w*d+_*g,e[7]=S*o+b*c+w*y+_*v,S=r[8],b=r[9],w=r[10],_=r[11],e[8]=S*s+b*l+w*h+_*f,e[9]=S*i+b*a+w*p+_*m,e[10]=S*n+b*u+w*d+_*g,e[11]=S*o+b*c+w*y+_*v,S=r[12],b=r[13],w=r[14],_=r[15],e[12]=S*s+b*l+w*h+_*f,e[13]=S*i+b*a+w*p+_*m,e[14]=S*n+b*u+w*d+_*g,e[15]=S*o+b*c+w*y+_*v,e}function c(e,t,r){const s=r[0],i=r[1],n=r[2];let o,l,a,u,c,h,p,d,y,f,m,g;return t===e?(e[12]=t[0]*s+t[4]*i+t[8]*n+t[12],e[13]=t[1]*s+t[5]*i+t[9]*n+t[13],e[14]=t[2]*s+t[6]*i+t[10]*n+t[14],e[15]=t[3]*s+t[7]*i+t[11]*n+t[15]):(o=t[0],l=t[1],a=t[2],u=t[3],c=t[4],h=t[5],p=t[6],d=t[7],y=t[8],f=t[9],m=t[10],g=t[11],e[0]=o,e[1]=l,e[2]=a,e[3]=u,e[4]=c,e[5]=h,e[6]=p,e[7]=d,e[8]=y,e[9]=f,e[10]=m,e[11]=g,e[12]=o*s+c*i+y*n+t[12],e[13]=l*s+h*i+f*n+t[13],e[14]=a*s+p*i+m*n+t[14],e[15]=u*s+d*i+g*n+t[15]),e}function h(e,t,r){const s=r[0],i=r[1],n=r[2];return e[0]=t[0]*s,e[1]=t[1]*s,e[2]=t[2]*s,e[3]=t[3]*s,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*n,e[9]=t[9]*n,e[10]=t[10]*n,e[11]=t[11]*n,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function p(e,t,r,s){let n,o,l,a,u,c,h,p,d,y,f,m,g,v,S,b,w,_,M,A,x,I,U,C,E=s[0],T=s[1],O=s[2],R=Math.sqrt(E*E+T*T+O*O);return R<i.E?null:(R=1/R,E*=R,T*=R,O*=R,n=Math.sin(r),o=Math.cos(r),l=1-o,a=t[0],u=t[1],c=t[2],h=t[3],p=t[4],d=t[5],y=t[6],f=t[7],m=t[8],g=t[9],v=t[10],S=t[11],b=E*E*l+o,w=T*E*l+O*n,_=O*E*l-T*n,M=E*T*l-O*n,A=T*T*l+o,x=O*T*l+E*n,I=E*O*l+T*n,U=T*O*l-E*n,C=O*O*l+o,e[0]=a*b+p*w+m*_,e[1]=u*b+d*w+g*_,e[2]=c*b+y*w+v*_,e[3]=h*b+f*w+S*_,e[4]=a*M+p*A+m*x,e[5]=u*M+d*A+g*x,e[6]=c*M+y*A+v*x,e[7]=h*M+f*A+S*x,e[8]=a*I+p*U+m*C,e[9]=u*I+d*U+g*C,e[10]=c*I+y*U+v*C,e[11]=h*I+f*U+S*C,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}function d(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 y(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}function f(e,t,r){let s,n,o,l=r[0],a=r[1],u=r[2],c=Math.sqrt(l*l+a*a+u*u);return c<i.E?null:(c=1/c,l*=c,a*=c,u*=c,s=Math.sin(t),n=Math.cos(t),o=1-n,e[0]=l*l*o+n,e[1]=a*l*o+u*s,e[2]=u*l*o-a*s,e[3]=0,e[4]=l*a*o-u*s,e[5]=a*a*o+n,e[6]=u*a*o+l*s,e[7]=0,e[8]=l*u*o+a*s,e[9]=a*u*o-l*s,e[10]=u*u*o+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}function m(e,t){const r=Math.sin(t),s=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=s,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function g(e,t,r){const s=t[0],i=t[1],n=t[2],o=t[3],l=s+s,a=i+i,u=n+n,c=s*l,h=s*a,p=s*u,d=i*a,y=i*u,f=n*u,m=o*l,g=o*a,v=o*u;return e[0]=1-(d+f),e[1]=h+v,e[2]=p-g,e[3]=0,e[4]=h-v,e[5]=1-(c+f),e[6]=y+m,e[7]=0,e[8]=p+g,e[9]=y-m,e[10]=1-(c+d),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}const v=(0,s.c)();function S(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 b(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 w(e,t){if(e===t)return!0;const r=e[0],s=e[1],n=e[2],o=e[3],l=e[4],a=e[5],u=e[6],c=e[7],h=e[8],p=e[9],d=e[10],y=e[11],f=e[12],m=e[13],g=e[14],v=e[15],S=t[0],b=t[1],w=t[2],_=t[3],M=t[4],A=t[5],x=t[6],I=t[7],U=t[8],C=t[9],E=t[10],T=t[11],O=t[12],R=t[13],P=t[14],D=t[15];return Math.abs(r-S)<=i.E*Math.max(1,Math.abs(r),Math.abs(S))&&Math.abs(s-b)<=i.E*Math.max(1,Math.abs(s),Math.abs(b))&&Math.abs(n-w)<=i.E*Math.max(1,Math.abs(n),Math.abs(w))&&Math.abs(o-_)<=i.E*Math.max(1,Math.abs(o),Math.abs(_))&&Math.abs(l-M)<=i.E*Math.max(1,Math.abs(l),Math.abs(M))&&Math.abs(a-A)<=i.E*Math.max(1,Math.abs(a),Math.abs(A))&&Math.abs(u-x)<=i.E*Math.max(1,Math.abs(u),Math.abs(x))&&Math.abs(c-I)<=i.E*Math.max(1,Math.abs(c),Math.abs(I))&&Math.abs(h-U)<=i.E*Math.max(1,Math.abs(h),Math.abs(U))&&Math.abs(p-C)<=i.E*Math.max(1,Math.abs(p),Math.abs(C))&&Math.abs(d-E)<=i.E*Math.max(1,Math.abs(d),Math.abs(E))&&Math.abs(y-T)<=i.E*Math.max(1,Math.abs(y),Math.abs(T))&&Math.abs(f-O)<=i.E*Math.max(1,Math.abs(f),Math.abs(O))&&Math.abs(m-R)<=i.E*Math.max(1,Math.abs(m),Math.abs(R))&&Math.abs(g-P)<=i.E*Math.max(1,Math.abs(g),Math.abs(P))&&Math.abs(v-D)<=i.E*Math.max(1,Math.abs(v),Math.abs(D))}function _(e){const t=i.E,r=e[0],s=e[1],n=e[2],o=e[4],l=e[5],a=e[6],u=e[8],c=e[9],h=e[10];return Math.abs(1-(r*r+o*o+u*u))<=t&&Math.abs(1-(s*s+l*l+c*c))<=t&&Math.abs(1-(n*n+a*a+h*h))<=t}const M=u,A=S;Object.freeze({__proto__:null,copy:function(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},set:n,identity:o,transpose:l,invert:a,adjoint:function(e,t){const r=t[0],s=t[1],i=t[2],n=t[3],o=t[4],l=t[5],a=t[6],u=t[7],c=t[8],h=t[9],p=t[10],d=t[11],y=t[12],f=t[13],m=t[14],g=t[15];return e[0]=l*(p*g-d*m)-h*(a*g-u*m)+f*(a*d-u*p),e[1]=-(s*(p*g-d*m)-h*(i*g-n*m)+f*(i*d-n*p)),e[2]=s*(a*g-u*m)-l*(i*g-n*m)+f*(i*u-n*a),e[3]=-(s*(a*d-u*p)-l*(i*d-n*p)+h*(i*u-n*a)),e[4]=-(o*(p*g-d*m)-c*(a*g-u*m)+y*(a*d-u*p)),e[5]=r*(p*g-d*m)-c*(i*g-n*m)+y*(i*d-n*p),e[6]=-(r*(a*g-u*m)-o*(i*g-n*m)+y*(i*u-n*a)),e[7]=r*(a*d-u*p)-o*(i*d-n*p)+c*(i*u-n*a),e[8]=o*(h*g-d*f)-c*(l*g-u*f)+y*(l*d-u*h),e[9]=-(r*(h*g-d*f)-c*(s*g-n*f)+y*(s*d-n*h)),e[10]=r*(l*g-u*f)-o*(s*g-n*f)+y*(s*u-n*l),e[11]=-(r*(l*d-u*h)-o*(s*d-n*h)+c*(s*u-n*l)),e[12]=-(o*(h*m-p*f)-c*(l*m-a*f)+y*(l*p-a*h)),e[13]=r*(h*m-p*f)-c*(s*m-i*f)+y*(s*p-i*h),e[14]=-(r*(l*m-a*f)-o*(s*m-i*f)+y*(s*a-i*l)),e[15]=r*(l*p-a*h)-o*(s*p-i*h)+c*(s*a-i*l),e},determinant:function(e){const t=e[0],r=e[1],s=e[2],i=e[3],n=e[4],o=e[5],l=e[6],a=e[7],u=e[8],c=e[9],h=e[10],p=e[11],d=e[12],y=e[13],f=e[14],m=e[15];return(t*o-r*n)*(h*m-p*f)-(t*l-s*n)*(c*m-p*y)+(t*a-i*n)*(c*f-h*y)+(r*l-s*o)*(u*m-p*d)-(r*a-i*o)*(u*f-h*d)+(s*a-i*l)*(u*y-c*d)},multiply:u,translate:c,scale:h,rotate:p,rotateX:function(e,t,r){const s=Math.sin(r),i=Math.cos(r),n=t[4],o=t[5],l=t[6],a=t[7],u=t[8],c=t[9],h=t[10],p=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]=n*i+u*s,e[5]=o*i+c*s,e[6]=l*i+h*s,e[7]=a*i+p*s,e[8]=u*i-n*s,e[9]=c*i-o*s,e[10]=h*i-l*s,e[11]=p*i-a*s,e},rotateY:function(e,t,r){const s=Math.sin(r),i=Math.cos(r),n=t[0],o=t[1],l=t[2],a=t[3],u=t[8],c=t[9],h=t[10],p=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]=n*i-u*s,e[1]=o*i-c*s,e[2]=l*i-h*s,e[3]=a*i-p*s,e[8]=n*s+u*i,e[9]=o*s+c*i,e[10]=l*s+h*i,e[11]=a*s+p*i,e},rotateZ:function(e,t,r){const s=Math.sin(r),i=Math.cos(r),n=t[0],o=t[1],l=t[2],a=t[3],u=t[4],c=t[5],h=t[6],p=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]=n*i+u*s,e[1]=o*i+c*s,e[2]=l*i+h*s,e[3]=a*i+p*s,e[4]=u*i-n*s,e[5]=c*i-o*s,e[6]=h*i-l*s,e[7]=p*i-a*s,e},fromTranslation:d,fromScaling:y,fromRotation:f,fromXRotation:m,fromYRotation:function(e,t){const r=Math.sin(t),s=Math.cos(t);return e[0]=s,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]=s,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromZRotation:function(e,t){const r=Math.sin(t),s=Math.cos(t);return e[0]=s,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=s,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},fromRotationTranslation:g,fromQuat2:function(e,t){const r=v,s=-t[0],i=-t[1],n=-t[2],o=t[3],l=t[4],a=t[5],u=t[6],c=t[7],h=s*s+i*i+n*n+o*o;return h>0?(r[0]=2*(l*o+c*s+a*n-u*i)/h,r[1]=2*(a*o+c*i+u*s-l*n)/h,r[2]=2*(u*o+c*n+l*i-a*s)/h):(r[0]=2*(l*o+c*s+a*n-u*i),r[1]=2*(a*o+c*i+u*s-l*n),r[2]=2*(u*o+c*n+l*i-a*s)),g(e,t,r),e},getTranslation:function(e,t){return e[0]=t[12],e[1]=t[13],e[2]=t[14],e},getScaling:function(e,t){const r=t[0],s=t[1],i=t[2],n=t[4],o=t[5],l=t[6],a=t[8],u=t[9],c=t[10];return e[0]=Math.sqrt(r*r+s*s+i*i),e[1]=Math.sqrt(n*n+o*o+l*l),e[2]=Math.sqrt(a*a+u*u+c*c),e},getRotation:function(e,t){const r=t[0]+t[5]+t[10];let s=0;return r>0?(s=2*Math.sqrt(r+1),e[3]=.25*s,e[0]=(t[6]-t[9])/s,e[1]=(t[8]-t[2])/s,e[2]=(t[1]-t[4])/s):t[0]>t[5]&&t[0]>t[10]?(s=2*Math.sqrt(1+t[0]-t[5]-t[10]),e[3]=(t[6]-t[9])/s,e[0]=.25*s,e[1]=(t[1]+t[4])/s,e[2]=(t[8]+t[2])/s):t[5]>t[10]?(s=2*Math.sqrt(1+t[5]-t[0]-t[10]),e[3]=(t[8]-t[2])/s,e[0]=(t[1]+t[4])/s,e[1]=.25*s,e[2]=(t[6]+t[9])/s):(s=2*Math.sqrt(1+t[10]-t[0]-t[5]),e[3]=(t[1]-t[4])/s,e[0]=(t[8]+t[2])/s,e[1]=(t[6]+t[9])/s,e[2]=.25*s),e},fromRotationTranslationScale:function(e,t,r,s){const i=t[0],n=t[1],o=t[2],l=t[3],a=i+i,u=n+n,c=o+o,h=i*a,p=i*u,d=i*c,y=n*u,f=n*c,m=o*c,g=l*a,v=l*u,S=l*c,b=s[0],w=s[1],_=s[2];return e[0]=(1-(y+m))*b,e[1]=(p+S)*b,e[2]=(d-v)*b,e[3]=0,e[4]=(p-S)*w,e[5]=(1-(h+m))*w,e[6]=(f+g)*w,e[7]=0,e[8]=(d+v)*_,e[9]=(f-g)*_,e[10]=(1-(h+y))*_,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e},fromRotationTranslationScaleOrigin:function(e,t,r,s,i){const n=t[0],o=t[1],l=t[2],a=t[3],u=n+n,c=o+o,h=l+l,p=n*u,d=n*c,y=n*h,f=o*c,m=o*h,g=l*h,v=a*u,S=a*c,b=a*h,w=s[0],_=s[1],M=s[2],A=i[0],x=i[1],I=i[2],U=(1-(f+g))*w,C=(d+b)*w,E=(y-S)*w,T=(d-b)*_,O=(1-(p+g))*_,R=(m+v)*_,P=(y+S)*M,D=(m-v)*M,B=(1-(p+f))*M;return e[0]=U,e[1]=C,e[2]=E,e[3]=0,e[4]=T,e[5]=O,e[6]=R,e[7]=0,e[8]=P,e[9]=D,e[10]=B,e[11]=0,e[12]=r[0]+A-(U*A+T*x+P*I),e[13]=r[1]+x-(C*A+O*x+D*I),e[14]=r[2]+I-(E*A+R*x+B*I),e[15]=1,e},fromQuat:function(e,t){const r=t[0],s=t[1],i=t[2],n=t[3],o=r+r,l=s+s,a=i+i,u=r*o,c=s*o,h=s*l,p=i*o,d=i*l,y=i*a,f=n*o,m=n*l,g=n*a;return e[0]=1-h-y,e[1]=c+g,e[2]=p-m,e[3]=0,e[4]=c-g,e[5]=1-u-y,e[6]=d+f,e[7]=0,e[8]=p+m,e[9]=d-f,e[10]=1-u-h,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},frustum:function(e,t,r,s,i,n,o){const l=1/(r-t),a=1/(i-s),u=1/(n-o);return e[0]=2*n*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*n*a,e[6]=0,e[7]=0,e[8]=(r+t)*l,e[9]=(i+s)*a,e[10]=(o+n)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*n*2*u,e[15]=0,e},perspective:function(e,t,r,s,i){const n=1/Math.tan(t/2);let o;return e[0]=n/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,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?(o=1/(s-i),e[10]=(i+s)*o,e[14]=2*i*s*o):(e[10]=-1,e[14]=-2*s),e},perspectiveFromFieldOfView:function(e,t,r,s){const i=Math.tan(t.upDegrees*Math.PI/180),n=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),l=Math.tan(t.rightDegrees*Math.PI/180),a=2/(o+l),u=2/(i+n);return e[0]=a,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-(o-l)*a*.5,e[9]=(i-n)*u*.5,e[10]=s/(r-s),e[11]=-1,e[12]=0,e[13]=0,e[14]=s*r/(r-s),e[15]=0,e},ortho:function(e,t,r,s,i,n,o){const l=1/(t-r),a=1/(s-i),u=1/(n-o);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+r)*l,e[13]=(i+s)*a,e[14]=(o+n)*u,e[15]=1,e},lookAt:function(e,t,r,s){let n,l,a,u,c,h,p,d,y,f;const m=t[0],g=t[1],v=t[2],S=s[0],b=s[1],w=s[2],_=r[0],M=r[1],A=r[2];return Math.abs(m-_)<i.E&&Math.abs(g-M)<i.E&&Math.abs(v-A)<i.E?o(e):(p=m-_,d=g-M,y=v-A,f=1/Math.sqrt(p*p+d*d+y*y),p*=f,d*=f,y*=f,n=b*y-w*d,l=w*p-S*y,a=S*d-b*p,f=Math.sqrt(n*n+l*l+a*a),f?(f=1/f,n*=f,l*=f,a*=f):(n=0,l=0,a=0),u=d*a-y*l,c=y*n-p*a,h=p*l-d*n,f=Math.sqrt(u*u+c*c+h*h),f?(f=1/f,u*=f,c*=f,h*=f):(u=0,c=0,h=0),e[0]=n,e[1]=u,e[2]=p,e[3]=0,e[4]=l,e[5]=c,e[6]=d,e[7]=0,e[8]=a,e[9]=h,e[10]=y,e[11]=0,e[12]=-(n*m+l*g+a*v),e[13]=-(u*m+c*g+h*v),e[14]=-(p*m+d*g+y*v),e[15]=1,e)},targetTo:function(e,t,r,s){const i=t[0],n=t[1],o=t[2],l=s[0],a=s[1],u=s[2];let c=i-r[0],h=n-r[1],p=o-r[2],d=c*c+h*h+p*p;d>0&&(d=1/Math.sqrt(d),c*=d,h*=d,p*=d);let y=a*p-u*h,f=u*c-l*p,m=l*h-a*c;return d=y*y+f*f+m*m,d>0&&(d=1/Math.sqrt(d),y*=d,f*=d,m*=d),e[0]=y,e[1]=f,e[2]=m,e[3]=0,e[4]=h*m-p*f,e[5]=p*y-c*m,e[6]=c*f-h*y,e[7]=0,e[8]=c,e[9]=h,e[10]=p,e[11]=0,e[12]=i,e[13]=n,e[14]=o,e[15]=1,e},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]+")"},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)},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},subtract:S,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,s){return e[0]=t[0]+r[0]*s,e[1]=t[1]+r[1]*s,e[2]=t[2]+r[2]*s,e[3]=t[3]+r[3]*s,e[4]=t[4]+r[4]*s,e[5]=t[5]+r[5]*s,e[6]=t[6]+r[6]*s,e[7]=t[7]+r[7]*s,e[8]=t[8]+r[8]*s,e[9]=t[9]+r[9]*s,e[10]=t[10]+r[10]*s,e[11]=t[11]+r[11]*s,e[12]=t[12]+r[12]*s,e[13]=t[13]+r[13]*s,e[14]=t[14]+r[14]*s,e[15]=t[15]+r[15]*s,e},exactEquals:b,equals:w,isOrthoNormal:_,mul:M,sub:A})},25929:(e,t,r)=>{r.d(t,{M:()=>d,f:()=>n,i:()=>h,p:()=>f,r:()=>l,t:()=>o,w:()=>a});var s=r(70586),i=r(17452);function n(e,t){const r=t&&t.url&&t.url.path;if(e&&r&&(e=(0,i.hF)(e,r,{preserveProtocolRelative:!0}),t.portalItem&&t.readResourcePaths)){const r=(0,i.PF)(e,t.portalItem.itemUrl);c.test(r)&&t.readResourcePaths.push(t.portalItem.resourceFromPath(r).path)}return p(e,t&&t.portal)}function o(e,t,r=d.YES){if(!e)return e;!(0,i.YP)(e)&&t&&t.blockedRelativeUrls&&t.blockedRelativeUrls.push(e);let s=(0,i.hF)(e);if(t){const r=t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.rootPath||t.url&&t.url.path;if(r){const n=p(r,t.portal);s=(0,i.PF)(p(s,t.portal),n,n),s!==e&&t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.writtenUrls.push(s)}}return s=function(e,t){return t&&!t.isPortal&&t.urlKey&&t.customBaseUrl?(0,i.Ie)(e,`${t.urlKey}.${t.customBaseUrl}`,t.portalHostname):e}(s,t&&t.portal),(0,i.YP)(s)&&(s=(0,i.Fv)(s)),null!=t&&t.resources&&null!=t&&t.portalItem&&!(0,i.YP)(s)&&!(0,i.HK)(s)&&r===d.YES&&t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(s)}),s}function l(e,t,r){return n(e,r)}function a(e,t,r,s){const i=o(e,s);void 0!==i&&(t[r]=i)}const u=/\/items\/([^\/]+)\/resources\//,c=/^\.\/resources\//;function h(e){const t=(0,s.pC)(e)?e.match(u):null;return(0,s.pC)(t)?t[1]:null}function p(e,t){if(!t||t.isPortal||!t.urlKey||!t.customBaseUrl)return e;const r=`${t.urlKey}.${t.customBaseUrl}`,s=(0,i.TI)();return(0,i.D6)(s,`${s.scheme}://${r}`)?(0,i.Ie)(e,t.portalHostname,r):(0,i.Ie)(e,r,t.portalHostname)}var d,y;(y=d||(d={}))[y.YES=0]="YES",y[y.NO=1]="NO";const f=Object.freeze({__proto__:null,fromJSON:n,toJSON:o,read:l,write:a,itemIdFromResourceUrl:h,get MarkKeep(){return d}})},3920:(e,t,r)=>{r.d(t,{r:()=>c,p:()=>u});var s=r(43697),i=r(15923),n=r(61247),o=r(5600),l=r(52011),a=r(89749);const u=e=>{let t=class extends e{destroy(){var e,t;this.destroyed||(null==(e=this._get("handles"))||e.destroy(),null==(t=this._get("updatingHandles"))||t.destroy())}get handles(){return this._get("handles")||new n.Z}get updatingHandles(){return this._get("updatingHandles")||new a.t}};return(0,s._)([(0,o.Cb)({readOnly:!0})],t.prototype,"handles",null),(0,s._)([(0,o.Cb)({readOnly:!0})],t.prototype,"updatingHandles",null),t=(0,s._)([(0,l.j)("esri.core.HandleOwner")],t),t};let c=class extends(u(i.Z)){};c=(0,s._)([(0,l.j)("esri.core.HandleOwner")],c)},10699:(e,t,r)=>{r.d(t,{I:()=>o});var s=r(43697),i=r(52011);let n=0;const o=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+n++})}};return t=(0,s._)([(0,i.j)("esri.core.Identifiable")],t),t};let l=class extends(o(class{})){};l=(0,s._)([(0,i.j)("esri.core.Identifiable")],l)},16453:(e,t,r)=>{r.d(t,{R:()=>S,w:()=>b});var s=r(43697),i=r(15923),n=r(70586),o=r(41103),l=r(22974),a=r(31263);class u{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(a.kk),this._values=new Map,this.multipleOriginsSupported=!0}clone(e){const t=new u,r=this._originStores[a.s3.DEFAULTS];r&&r.forEach(((e,r)=>{t.set(r,(0,l.d9)(e),a.s3.DEFAULTS)}));for(let r=a.s3.SERVICE;r<a.kk;r++){const s=this._originStores[r];s&&s.forEach(((s,i)=>{e&&e.has(i)||t.set(i,(0,l.d9)(s),r)}))}return t}get(e,t){const r=void 0===t?this._values:this._originStores[t];return r?r.get(e):void 0}keys(e){const t=null==e?this._values:this._originStores[e];return t?[...t.keys()]:[]}set(e,t,r=a.s3.USER){let s=this._originStores[r];if(s||(s=new Map,this._originStores[r]=s),s.set(e,t),!this._values.has(e)||(0,n.j0)(this._propertyOriginMap.get(e))<=r){const s=this._values.get(e);return this._values.set(e,t),this._propertyOriginMap.set(e,r),s!==t}return!1}delete(e,t=a.s3.USER){const r=this._originStores[t];if(!r)return;const s=r.get(e);if(r.delete(e),this._values.has(e)&&this._propertyOriginMap.get(e)===t){this._values.delete(e);for(let r=t-1;r>=0;r--){const t=this._originStores[r];if(t&&t.has(e)){this._values.set(e,t.get(e)),this._propertyOriginMap.set(e,r);break}}}return s}has(e,t){const r=void 0===t?this._values:this._originStores[t];return!!r&&r.has(e)}revert(e,t){for(;t>0&&!this.has(e,t);)--t;const r=this._originStores[t],s=r&&r.get(e),i=this._values.get(e);return this._values.set(e,s),this._propertyOriginMap.set(e,t),i!==s}originOf(e){return this._propertyOriginMap.get(e)||a.s3.DEFAULTS}forEach(e){this._values.forEach(e)}}var c=r(50549),h=r(1153),p=r(52011);const d=e=>{let t=class extends e{constructor(...e){super(...e);const t=(0,n.j0)((0,h.vw)(this)),r=t.store,s=new u;t.store=s,(0,o.M)(t,r,s)}read(e,t){(0,c.i)(this,e,t)}getAtOrigin(e,t){const r=y(this),s=(0,a.M9)(t);if("string"==typeof e)return r.get(e,s);const i={};return e.forEach((e=>{i[e]=r.get(e,s)})),i}originOf(e){return(0,a.x3)(this.originIdOf(e))}originIdOf(e){return y(this).originOf(e)}revert(e,t){const r=y(this),s=(0,a.M9)(t),i=(0,h.vw)(this);let n;n="string"==typeof e?"*"===e?r.keys(s):[e]:e,n.forEach((e=>{i.invalidate(e),r.revert(e,s),i.commit(e)}))}};return t=(0,s._)([(0,p.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],t),t};function y(e){return(0,h.vw)(e).store}let f=class extends(d(i.Z)){};f=(0,s._)([(0,p.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],f);var m=r(76169);const g=e=>{let t=class extends e{constructor(...e){super(...e)}clear(e,t="user"){return v(this).delete(e,(0,a.M9)(t))}write(e={},t){return(0,m.c)(this,e=e||{},t),e}setAtOrigin(e,t,r){(0,h.vw)(this).setAtOrigin(e,t,(0,a.M9)(r))}removeOrigin(e){const t=v(this),r=(0,a.M9)(e),s=t.keys(r);for(const e of s)t.originOf(e)===r&&t.set(e,t.get(e,r),a.s3.USER)}updateOrigin(e,t){const r=v(this),s=(0,a.M9)(t),i=this.get(e);for(let t=s+1;t<a.kk;++t)r.delete(e,t);r.set(e,i,s)}toJSON(e){return this.write({},e)}};return t=(0,s._)([(0,p.j)("esri.core.WriteableMultiOriginJSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};function v(e){return(0,h.vw)(e).store}const S=e=>{let t=class extends(g(d(e))){constructor(...e){super(...e)}};return t=(0,s._)([(0,p.j)("esri.core.MultiOriginJSONSupport")],t),t};let b=class extends(S(i.Z)){};b=(0,s._)([(0,p.j)("esri.core.MultiOriginJSONSupport")],b)},35463:(e,t,r)=>{r.d(t,{rJ:()=>l,Nm:()=>n,JE:()=>o}),r(80442);const s={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8},i={milliseconds:{getter:"getMilliseconds",setter:"setMilliseconds",multiplier:1},seconds:{getter:"getSeconds",setter:"setSeconds",multiplier:1},minutes:{getter:"getMinutes",setter:"setMinutes",multiplier:1},hours:{getter:"getHours",setter:"setHours",multiplier:1},days:{getter:"getDate",setter:"setDate",multiplier:1},weeks:{getter:"getDate",setter:"setDate",multiplier:7},months:{getter:"getMonth",setter:"setMonth",multiplier:1},years:{getter:"getFullYear",setter:"setFullYear",multiplier:1},decades:{getter:"getFullYear",setter:"setFullYear",multiplier:10},centuries:{getter:"getFullYear",setter:"setFullYear",multiplier:100}};function n(e,t,r){const s=new Date(e.getTime());if(t&&r){const e=i[r],{getter:n,setter:o,multiplier:l}=e;if("months"===r){const e=function(e,t){const r=new Date(e,t+1,1);return r.setDate(0),r.getDate()}(s.getFullYear(),s.getMonth()+t);s.getDate()>e&&s.setDate(e)}s[o](s[n]()+t*l)}return s}function o(e,t){switch(t){case"milliseconds":return new Date(e.getTime());case"seconds":return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds());case"minutes":return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes());case"hours":return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours());case"days":return new Date(e.getFullYear(),e.getMonth(),e.getDate());case"weeks":return new Date(e.getFullYear(),e.getMonth(),e.getDate()-e.getDay());case"months":return new Date(e.getFullYear(),e.getMonth(),1);case"years":return new Date(e.getFullYear(),0,1);case"decades":return new Date(e.getFullYear()-e.getFullYear()%10,0,1);case"centuries":return new Date(e.getFullYear()-e.getFullYear()%100,0,1);default:return new Date}}function l(e,t,r){return 0===e?0:e*s[t]/s[r]}},67900:(e,t,r)=>{r.d(t,{gV:()=>N,En:()=>M,Z7:()=>E,c9:()=>C,_R:()=>I,qE:()=>R,cM:()=>U,hd:()=>c,ty:()=>A,Jo:()=>L,$C:()=>x}),r(80442);var s=r(35454),i=r(70586),n=r(24678),o=r(82971),l=r(68441),a=r(8744),u=r(58116);const c=39.37,h=l.sv.radius*Math.PI/200,p=/UNIT\[([^\]]+)\]\]$/i,d=u.Z,y=/UNIT\[([^\]]+)\]/i,f=new Set([4261,4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104139,104140]),m=(0,s.w)()({meter:"meters",foot:"feet",foot_us:"us-feet",foot_clarke:"clarke-feet",yard_clarke:"clarke-yards",link_clarke:"clarke-links",yard_sears:"sears-yards",foot_sears:"sears-feet",chain_sears:"sears-chains",chain_benoit_1895_b:"benoit-1895-b-chains",yard_indian:"indian-yards",yard_indian_1937:"indian-1937-yards",foot_gold_coast:"gold-coast-feet",chain_sears_1922_truncated:"sears-1922-truncated-chains","50_kilometers":"50-kilometers","150_kilometers":"150-kilometers"}),g=e=>e*e,v=e=>e*e*e,S={length:{baseUnit:"meters",units:{millimeters:{inBaseUnits:.001},centimeters:{inBaseUnits:.01},decimeters:{inBaseUnits:.1},meters:{inBaseUnits:1},kilometers:{inBaseUnits:1e3},inches:{inBaseUnits:.0254},feet:{inBaseUnits:.3048},yards:{inBaseUnits:.9144},miles:{inBaseUnits:1609.344},"nautical-miles":{inBaseUnits:1852},"us-feet":{inBaseUnits:1200/3937}}},area:{baseUnit:"square-meters",units:{"square-millimeters":{inBaseUnits:g(.001)},"square-centimeters":{inBaseUnits:g(.01)},"square-decimeters":{inBaseUnits:g(.1)},"square-meters":{inBaseUnits:1},"square-kilometers":{inBaseUnits:g(1e3)},"square-inches":{inBaseUnits:g(.0254)},"square-feet":{inBaseUnits:g(.3048)},"square-yards":{inBaseUnits:g(.9144)},"square-miles":{inBaseUnits:g(1609.344)},"square-us-feet":{inBaseUnits:g(1200/3937)},acres:{inBaseUnits:.0015625*g(1609.344)},ares:{inBaseUnits:100},hectares:{inBaseUnits:1e4}}},volume:{baseUnit:"liters",units:{liters:{inBaseUnits:1},"cubic-millimeters":{inBaseUnits:1e3*v(.001)},"cubic-centimeters":{inBaseUnits:1e3*v(.01)},"cubic-decimeters":{inBaseUnits:1e3*v(.1)},"cubic-meters":{inBaseUnits:1e3},"cubic-kilometers":{inBaseUnits:1e3*v(1e3)},"cubic-inches":{inBaseUnits:1e3*v(.0254)},"cubic-feet":{inBaseUnits:1e3*v(.3048)},"cubic-yards":{inBaseUnits:1e3*v(.9144)},"cubic-miles":{inBaseUnits:1e3*v(1609.344)}}},angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},b=function(){const e={};for(const t in S)for(const r in S[t].units)e[r]=t;return e}();function w(e){const t=b[e];if(t)return t;throw new Error("unknown measure")}function _(e,t=null){return t=t||w(e),S[t].baseUnit===e}function M(e,t,r){if(t===r)return e;const s=w(t);if(s!==w(r))throw new Error("incompatible units");const i=_(t,s)?e:function(e,t,r){return e*S[r].units[t].inBaseUnits}(e,t,s);return _(r,s)?i:function(e,t,r){return e/S[r].units[t].inBaseUnits}(i,r,s)}function A(e,t,r){return M(e,t,"meters")/(r*Math.PI/180)}function x(e){return m.fromJSON(e.toLowerCase())||null}function I(e){if(e&&"object"==typeof e&&!(0,a.N$)(e))return 1;const t=C(e);return t>1e5?1:t}function U(e){return C(e)>=(e instanceof o.Z?(0,n.Iu)(e).metersPerDegree:1e5)?"meters":R(e)}function C(e,t=l.sv.metersPerDegree){return E(e,!0)||t}function E(e,t=!1){let r,s,i=null;if(null!=e&&("object"==typeof e?(r=e.wkid,s=e.wkt):"number"==typeof e?r=e:"string"==typeof e&&(s=e)),r){if((0,a.o$)(r))return l.yr.metersPerDegree;if((0,a.ME)(r))return l.Z1.metersPerDegree;i=d.values[d[r]],!i&&t&&f.has(r)&&(i=h)}else s&&(D(s)?i=T(p.exec(s),i):P(s)&&(i=T(y.exec(s),i)));return i}function T(e,t){return e&&e[1]?O(e[1]):t}function O(e){return parseFloat(e.split(",")[1])}function R(e){let t,r,s=null;if(null!=e&&("object"==typeof e?(t=e.wkid,r=e.wkt):"number"==typeof e?t=e:"string"==typeof e&&(r=e)),t)s=d.units[d[t]];else if(r){const e=D(r)?p:P(r)?y:null;if(e){const t=e.exec(r);t&&t[1]&&(s=function(e){const t=/[\\"\\']{1}([^\\"\\']+)/.exec(e);let r=t&&t[1];if(!r||-1===d.units.indexOf(r)){const t=O(e);r=null;const s=d.values;for(let e=0;e<s.length;++e)if(Math.abs(t-s[e])<1e-7){r=d.units[e];break}}return r}(t[1]))}}return(0,i.pC)(s)?x(s):null}function P(e){return/^GEOCCS/i.test(e)}function D(e){return/^PROJCS/i.test(e)}const B={esriAcres:"acres",esriAres:"ares",esriHectares:"hectares",esriSquareCentimeters:"square-centimeters",esriSquareDecimeters:"square-decimeters",esriSquareFeet:"square-feet",esriSquareInches:"square-inches",esriSquareKilometers:"square-kilometers",esriSquareMeters:"square-meters",esriSquareMiles:"square-miles",esriSquareMillimeters:"square-millimeters",esriSquareUsFeet:"square-us-feet",esriSquareYards:"square-yards"},k={esriCentimeters:"centimeters",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriYards:"yards"},N=(0,s.w)()(B),L=(0,s.w)()(k);(0,s.w)()({...B,...k})},24678:(e,t,r)=>{r.d(t,{GG:()=>l,HQ:()=>a,VY:()=>u,wY:()=>c,Iu:()=>p,e8:()=>d,rS:()=>h});var s=r(82971),i=r(68441),n=r(8744);function o(e){return new s.Z({wkt:`GEOCCS["Spherical geocentric",\n DATUM["Not specified",\n SPHEROID["Sphere",${e.radius},0]],\n PRIMEM["Greenwich",0.0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",EAST],\n AXIS["Geocentric Z",NORTH]\n ]`})}const l=o(i.sv),a=o(i.yr),u=o(i.Z1),c=new s.Z({wkt:`GEOCCS["WGS 84",\n DATUM["WGS_1984",\n SPHEROID["WGS 84",${i.sv.radius},298.257223563,\n AUTHORITY["EPSG","7030"]],\n AUTHORITY["EPSG","6326"]],\n PRIMEM["Greenwich",0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0,\n AUTHORITY["EPSG","9001"]],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",OTHER],\n AXIS["Geocentric Z",NORTH],\n AUTHORITY["EPSG","4978"]\n]`});function h(e){return e&&((0,n.BZ)(e)||e===a)?a:e&&((0,n.V2)(e)||e===u)?u:l}function p(e){return e&&((0,n.BZ)(e)||e===a)?i.yr:e&&((0,n.V2)(e)||e===u)?i.Z1:i.sv}function d(e){return(0,n.o$)(e)?i.yr:(0,n.ME)(e)?i.Z1:i.sv}},24470:(e,t,r)=>{r.d(t,{Gv:()=>p,SO:()=>u,r3:()=>h,Ue:()=>n,oJ:()=>l,al:()=>o,kK:()=>c,HH:()=>a}),r(80442),r(22021);var s=r(70586),i=r(6570);function n(e=d){return[e[0],e[1],e[2],e[3]]}function o(e,t,r,s,i=n()){return i[0]=e,i[1]=t,i[2]=r,i[3]=s,i}function l(e,t=n()){return t[0]=e.xmin,t[1]=e.ymin,t[2]=e.xmax,t[3]=e.ymax,t}function a(e,t){return new i.Z({xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3],spatialReference:t})}function u(e){return function(e){return(0,s.Wi)(e)||e[0]>=e[2]?0:e[2]-e[0]}(e)*function(e){return e[1]>=e[3]?0:e[3]-e[1]}(e)}function c(e,t){return Math.max(t[0],e[0])<=Math.min(t[2],e[2])&&Math.max(t[1],e[1])<=Math.min(t[3],e[3])}function h(e,t){return t[0]>=e[0]&&t[2]<=e[2]&&t[1]>=e[1]&&t[3]<=e[3]}const p=[1/0,1/0,-1/0,-1/0],d=[0,0,0,0]},29600:(e,t,r)=>{r.d(t,{Z:()=>b});var s=r(43697),i=r(68773),n=(r(66577),r(3172)),o=r(20102),l=r(32448),a=r(10699),u=r(83379),c=r(92604),h=r(95330),p=r(17452),d=r(5600),y=(r(67676),r(80442),r(75215),r(52011)),f=r(6570),m=r(82971);let g=0;const v=c.Z.getLogger("esri.layers.Layer");let S=class extends(l.Z.EventedMixin((0,a.I)(u.Z))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new f.Z(-180,-90,180,90,m.Z.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=m.Z.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e,s=await r.e(3529).then(r.bind(r,63529));try{return await s.fromUrl(t)}catch(e){throw v.error("#fromArcGISServerUrl({ url: '"+t.url+"'})","Failed to create layer from arcgis server url",e),e}}static async fromPortalItem(e){const t="portalItem"in e?e:{portalItem:e},s=await r.e(4579).then(r.bind(r,44579));try{return await s.fromItem(t)}catch(e){const r=t&&t.portalItem,s=r&&r.id||"unset",n=r&&r.portal&&r.portal.url||i.Z.portalUrl;throw v.error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+n+"', id: '"+s+"')",e),e}}initialize(){this.when().catch((e=>{var t,r;(0,h.D_)(e)||c.Z.getLogger(this.declaredClass).error("#load()",`Failed to load layer (title: '${null!=(t=this.title)?t:"no title"}', id: '${null!=(r=this.id)?r:"no id"}')`,{error:e})}))}destroy(){if(this.parent){const e=this,t=this.parent;"layers"in t&&t.layers.includes(e)?t.layers.remove(e):"tables"in t&&t.tables.includes(e)?t.tables.remove(e):"baseLayers"in t&&t.baseLayers.includes(e)?t.baseLayers.remove(e):"baseLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){const e=this.url;return e?(0,p.mN)(e):null}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,n.default)(e,{query:{f:"json"},responseType:"json"})).data;throw new o.Z("layer:no-attribution-data","Layer does not have attribution data")}};(0,s._)([(0,d.Cb)({type:String})],S.prototype,"attributionDataUrl",void 0),(0,s._)([(0,d.Cb)({type:f.Z})],S.prototype,"fullExtent",void 0),(0,s._)([(0,d.Cb)({readOnly:!0})],S.prototype,"hasAttributionData",null),(0,s._)([(0,d.Cb)({type:String})],S.prototype,"id",void 0),(0,s._)([(0,d.Cb)({type:Boolean,nonNullable:!0})],S.prototype,"legendEnabled",void 0),(0,s._)([(0,d.Cb)({type:["show","hide","hide-children"]})],S.prototype,"listMode",void 0),(0,s._)([(0,d.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0})],S.prototype,"opacity",void 0),(0,s._)([(0,d.Cb)()],S.prototype,"parent",void 0),(0,s._)([(0,d.Cb)({readOnly:!0})],S.prototype,"parsedUrl",null),(0,s._)([(0,d.Cb)({type:Boolean})],S.prototype,"popupEnabled",void 0),(0,s._)([(0,d.Cb)({type:Boolean})],S.prototype,"attributionVisible",void 0),(0,s._)([(0,d.Cb)({type:m.Z})],S.prototype,"spatialReference",void 0),(0,s._)([(0,d.Cb)({type:String})],S.prototype,"title",void 0),(0,s._)([(0,d.Cb)({type:String,readOnly:!0,json:{read:!1}})],S.prototype,"type",void 0),(0,s._)([(0,d.Cb)()],S.prototype,"url",void 0),(0,s._)([(0,d.Cb)({type:Boolean,nonNullable:!0})],S.prototype,"visible",void 0),S=(0,s._)([(0,y.j)("esri.layers.Layer")],S);const b=S},44854:(e,t,r)=>{r.r(t),r.d(t,{default:()=>re});var s=r(43697),i=r(3172),n=r(20102),o=r(22974),l=r(16453),a=r(95330),u=r(17452),c=r(5600),h=(r(75215),r(71715)),p=r(52011),d=r(30556),y=r(6570),f=r(82971),m=r(29600),g=r(54295),v=r(46486),S=r(17287),b=r(71612),w=r(17017),_=r(38009),M=r(16859),A=r(72965);let x=null;const I=r(92604).Z.getLogger("esri.layers.support.SpriteSource");class U{constructor(e,t,r,s){this.baseURL=e,this.devicePixelRatio=t,this.maxTextureSize=r,this._spriteImageFormat=s,this._isRetina=!1,this._spritesData={},this.image=null,this.width=null,this.height=null,this.loadStatus="not-loaded"}get spriteNames(){const e=[];for(const t in this._spritesData)e.push(t);return e.sort(),e}getSpriteInfo(e){return this._spritesData[e]}async load(e){if(this.baseURL){this.loadStatus="loading";try{await this._loadSprites(e),this.loadStatus="loaded"}catch{this.loadStatus="failed"}}else this.loadStatus="failed"}_loadSprites(e){this._isRetina=this.devicePixelRatio>1.15;const t=(0,u.mN)(this.baseURL),r=t.query?"?"+(0,u.B7)(t.query):"",s=this._isRetina?"@2x":"",o=`${t.path}${s}.${this._spriteImageFormat}${r}`,l=`${t.path}${s}.json${r}`;return Promise.all([(0,i.default)(l,e),(0,i.default)(o,{responseType:"image",...e})]).then((([e,r])=>{const s=Object.keys(e.data);if(!s||0===s.length||1===s.length&&"_ssl"===s[0]||!r||!r.data)return this._spritesData=this.image=null,this.width=this.height=0,Promise.resolve(null);this._spritesData=e.data;const i=r.data,o=Math.max(this.maxTextureSize,4096);if(i.width>o||i.height>o){const e=`Sprite resource for style ${t.path} is bigger than the maximum allowed of ${o} pixels}`;throw I.error(e),new n.Z("SpriteSource",e)}this.width=i.width,this.height=i.height;const l=document.createElement("canvas"),a=l.getContext("2d");l.width=i.width,l.height=i.height,a.drawImage(i,0,0,i.width,i.height);const u=a.getImageData(0,0,i.width,i.height),c=new Uint8Array(u.data);let h;for(let e=0;e<c.length;e+=4)h=c[e+3]/255,c[e]=c[e]*h,c[e+1]=c[e+1]*h,c[e+2]=c[e+2]*h;this.image=c}))}}var C=r(11145),E=r(68773),T=r(45322),O=r(56608),R=r(55415);class P{constructor(e){this.url=e}async fetchTileIndex(){return this._tileIndexPromise||(this._tileIndexPromise=(0,i.default)(this.url).then((e=>e.data.index))),this._tileIndexPromise}async dataKey(e,t){const r=await this.fetchTileIndex();return(0,a.k_)(t),this._getIndexedDataKey(r,e)}_getIndexedDataKey(e,t){const r=[t];if(t.level<0||t.row<0||t.col<0||t.row>>t.level>0||t.col>>t.level>0)return null;let s=t;for(;0!==s.level;)s=new R.Z(s.level-1,s.row>>1,s.col>>1,s.world),r.push(s);let i,n,o=e,l=r.pop();if(1===o)return l;for(;r.length;)if(i=r.pop(),n=(1&i.col)+((1&i.row)<<1),o){if(0===o[n]){l=null;break}if(1===o[n]){l=i;break}l=i,o=o[n]}return l}}class D{constructor(e,t){this._tilemap=e,this._tileIndexUrl=t}async fetchTileIndex(e){return this._tileIndexPromise||(this._tileIndexPromise=(0,i.default)(this._tileIndexUrl,{query:{...null==e?void 0:e.query}}).then((e=>e.data.index))),this._tileIndexPromise}dataKey(e,t){const{level:r,row:s,col:i}=e,n=new R.Z(e);return this._tilemap.fetchAvailabilityUpsample(r,s,i,n,t).then((()=>(n.world=e.world,n))).catch((e=>{if((0,a.D_)(e))throw e;return null}))}}const B=new Map;class k{constructor(e,t,r){this.tilemap=null,this.tileInfo=null,this.capabilities=null,this.fullExtent=null,this.name=e,this.sourceUrl=t;const s=(0,u.mN)(this.sourceUrl),i=(0,o.d9)(r),n=i.tiles;if(s)for(let e=0;e<n.length;e++){const t=(0,u.mN)(n[e]);t&&((0,u.YP)(t.path)||(t.path=(0,u.v_)(s.path,t.path)),n[e]=(0,u.fl)(t.path,{...s.query,...t.query}))}this.tileServers=n;const l=r.capabilities&&r.capabilities.split(",").map((e=>e.toLowerCase().trim())),a=!0===(null==r?void 0:r.exportTilesAllowed),c=!0===(null==l?void 0:l.includes("tilemap")),h=a&&r.hasOwnProperty("maxExportTilesCount")?r.maxExportTilesCount:0;this.capabilities={operations:{supportsExportTiles:a,supportsTileMap:c},exportTiles:a?{maxExportTilesCount:+h}:null},this.tileInfo=(0,T.d)(i.tileInfo,i,null,{ignoreMinMaxLOD:!0});const p=r.tileMap?(0,u.fl)((0,u.v_)(s.path,r.tileMap),s.query):null;c?(this.type="vector-tile",this.tilemap=new D(new O.y({layer:{parsedUrl:s,tileInfo:this.tileInfo,type:"vector-tile",tileServers:this.tileServers}}),p)):p&&(this.tilemap=new P(p)),this.fullExtent=y.Z.fromJSON(r.fullExtent)}destroy(){}async getRefKey(e,t){var r,s;return null!=(r=null==(s=this.tilemap)?void 0:s.dataKey(e,t))?r:e}requestTile(e,t,r,s){return function(e,t,r,s,n){return function(e,t){const r=B.get(e);if(r)return r.then((e=>(0,o.d9)(e)));const s=(0,i.default)(e,{responseType:"array-buffer",...t}).then((({data:t})=>(B.delete(e),t))).catch((t=>{throw B.delete(e),t}));return B.set(e,s),s}(e.replace(/\{z\}/gi,t.toString()).replace(/\{y\}/gi,r.toString()).replace(/\{x\}/gi,s.toString()),n)}(this.tileServers[t%this.tileServers.length],e,t,r,s)}isCompatibleWith(e){const t=this.tileInfo,r=e.tileInfo;if(!t.spatialReference.equals(r.spatialReference))return!1;if(!t.origin.equals(r.origin))return!1;if(Math.round(t.dpi)!==Math.round(r.dpi))return!1;const s=t.lods,i=r.lods,n=Math.min(s.length,i.length);for(let e=0;e<n;e++){const t=s[e],r=i[e];if(t.level!==r.level||Math.round(t.scale)!==Math.round(r.scale))return!1}return!0}}const N=E.Z.defaults&&E.Z.defaults.io.corsEnabledServers;function L(e){if(!e)return;const t=(0,u.P$)(e);N&&!N.includes(t)&&N.push(t)}function q(...e){let t;for(let r=0;r<e.length;++r)if((0,u.oC)(e[r])){if(t){const s=t.split("://")[0];t=s+":"+e[r].trim()}}else t=(0,u.YP)(e[r])?e[r]:(0,u.v_)(t,e[r]);return(0,u.Qj)(t)}async function j(e,t,r,s,n){let o,l,c;if((0,a.k_)(n),"string"==typeof r){const e=(0,u.Fv)(r);L(e),c=await(0,i.default)(e,{...n,responseType:"json",query:{f:"json",...null==n?void 0:n.query}}),c.ssl&&(o&&(o=o.replace(/^http:/i,"https:")),l&&(l=l.replace(/^http:/i,"https:"))),o=e,l=e}else c={data:r},o=r.jsonUrl||null,l=s;const h=c.data;return F(h)?(e.styleUrl=o||null,async function(e,t,r,s){const i=r?(0,u.Yd)(r):(0,u.L)();e.styleBase=i,e.style=t,e.styleUrl&&L(e.styleUrl),t["sprite-format"]&&"webp"===t["sprite-format"].toLowerCase()&&(e.spriteFormat="webp");const n=[];if(t.sources&&t.sources.esri){const r=t.sources.esri;r.url?await j(e,"esri",q(i,r.url),void 0,s):n.push(j(e,"esri",r,i,s))}for(const r of Object.keys(t.sources))"esri"!==r&&"vector"===t.sources[r].type&&(t.sources[r].url?n.push(j(e,r,q(i,t.sources[r].url),void 0,s)):t.sources[r].tiles&&n.push(j(e,r,t.sources[r],i,s)));await Promise.all(n)}(e,h,l,n)):function(e){return!F(e)}(h)?e.sourceUrl?G(e,h,l,!1,t,n):(e.sourceUrl=o||null,G(e,h,l,!0,t,n)):Promise.reject("You must specify the URL or the JSON for a service or for a style.")}function F(e){return!!e.sources}async function G(e,t,r,s,i,n){const o=r?(0,u.Qj)(r)+"/":(0,u.L)(),l=function(e,t){if(e.hasOwnProperty("tileInfo"))return e;const r={xmin:-20037507.067161843,ymin:-20037507.067161843,xmax:20037507.067161843,ymax:20037507.067161843,spatialReference:{wkid:102100}};let s=78271.51696400007,i=295828763.7957775;const n=[],o=e.hasOwnProperty("minzoom")?+e.minzoom:0,l=e.hasOwnProperty("maxzoom")?+e.maxzoom:22;for(let e=0;e<=l;e++)e>=o&&n.push({level:e,scale:i,resolution:s}),s/=2,i/=2;for(const r of e.tiles)L(q(t,r));return{capabilities:"TilesOnly",initialExtent:r,fullExtent:r,minScale:0,maxScale:0,tiles:e.tiles,tileInfo:{rows:512,cols:512,dpi:96,format:"pbf",origin:{x:-20037508.342787,y:20037508.342787},lods:n,spatialReference:{wkid:102100}}}}(t,o),a=new k(i,(0,u.fl)(o,null==n?void 0:n.query),l);if(!s&&e.primarySourceName in e.sourceNameToSource){const t=e.sourceNameToSource[e.primarySourceName];if(!t.isCompatibleWith(a))return Promise.resolve();null!=a.fullExtent&&(null!=t.fullExtent?t.fullExtent.union(a.fullExtent):t.fullExtent=a.fullExtent.clone()),t.tileInfo.lods.length<a.tileInfo.lods.length&&(t.tileInfo=a.tileInfo)}if(s?(e.sourceBase=o,e.source=t,e.validatedSource=l,e.primarySourceName=i,e.sourceUrl&&L(e.sourceUrl)):L(o),e.sourceNameToSource[i]=a,!e.style)return null==t.defaultStyles?Promise.reject():"string"==typeof t.defaultStyles?j(e,"",q(o,t.defaultStyles,"root.json"),void 0,n):j(e,"",t.defaultStyles,q(o,"root.json"),n)}var Z=r(33516),Y=r(39450);class ${constructor(e,t){this.lockedSchemaPixelSize=e,this.isGCS=t}getLevelRowColumn(e){return this.isGCS?[e[0],e[1]>>1,e[2]>>1]:256===this.lockedSchemaPixelSize&&e[0]>0?[e[0]-1,e[1]>>1,e[2]>>1]:e}adjustLevel(e){return this.isGCS?e:256===this.lockedSchemaPixelSize?e>0?e-1:0:e}getShift(e,t){let r=0,s=0;return(256===this.lockedSchemaPixelSize||this.isGCS)&&(e[2]%2&&(r=t),e[1]%2&&(s=t)),[r,s]}getScale(e){if(this.isGCS){if(512===this.lockedSchemaPixelSize)return 4}else if(256===this.lockedSchemaPixelSize&&0===e)return 1;return 2}static create256x256CompatibleTileInfo(e){if(!e)return null;if(256===e.size[0]&&256===e.size[1])return e;const t=e.spatialReference.isGeographic,r=[],s=e.lods.length;for(let i=0;i<s;i++){const s=e.lods[i],n=t?s.resolution:2*s.resolution;r.push(new Y.Z({level:s.level,scale:s.scale,resolution:n}))}return new C.Z({size:[256,256],dpi:e.dpi,format:e.format,compressionQuality:e.compressionQuality,origin:e.origin,spatialReference:e.spatialReference,lods:r})}static create512x512CompatibleTileInfo(e){if(!e)return null;if(256===e.size[0]||256===e.size[1])return null;const t=[],r=e.lods.length;for(let s=0;s<r;s++){const r=e.lods[s],i=.5*r.resolution;t.push(new Y.Z({level:r.level,scale:r.scale,resolution:i}))}return new C.Z({size:[512,512],dpi:e.dpi,format:e.format,compressionQuality:e.compressionQuality,origin:e.origin,spatialReference:e.spatialReference,lods:t})}}const H=1e-6;function W(e,t){if(e===t)return!0;if(!e&&null!=t)return!1;if(null!=e&&!t)return!1;if(!e.spatialReference.equals(t.spatialReference)||e.dpi!==t.dpi)return!1;const r=e.origin,s=t.origin;if(Math.abs(r.x-s.x)>=H||Math.abs(r.y-s.y)>=H)return!1;let i,n;e.lods[0].scale>t.lods[0].scale?(i=e,n=t):(n=e,i=t);for(let e=i.lods[0].scale;e>=n.lods[n.lods.length-1].scale-H;e/=2)if(Math.abs(e-n.lods[0].scale)<H)return!0;return!1}function z(e,t){if(e===t)return e;if(!e&&null!=t)return t;if(null!=e&&!t)return e;const r=e.size[0],s=e.format,i=e.dpi,n={x:e.origin.x,y:e.origin.y},o=e.spatialReference.toJSON(),l=e.lods[0].scale>t.lods[0].scale?e.lods[0]:t.lods[0],a=e.lods[e.lods.length-1].scale<=t.lods[t.lods.length-1].scale?e.lods[e.lods.length-1]:t.lods[t.lods.length-1],u=l.scale,c=l.resolution,h=a.scale,p=[];let d=u,y=c,f=0;for(;d>h;)p.push({level:f,resolution:y,scale:d}),f++,d/=2,y/=2;return new C.Z({size:[r,r],dpi:i,format:s||"pbf",origin:n,lods:p,spatialReference:o})}var V=r(51785),K=r(70586),Q=r(54738);let J;function X(){return J||(J=function(){const e=new ee,t=function(e,t){if(e===Q.zO.WEBGL1&&void 0===typeof WebGLRenderingContext||e===Q.zO.WEBGL2&&void 0===typeof WebGL2RenderingContext)return null;const r=document.createElement("canvas");if(!r)return null;let s=(0,Q.kr)(r,e,{failIfMajorPerformanceCaveat:!0});if((0,K.Wi)(s)&&(s=(0,Q.kr)(r,e),(0,K.pC)(s)&&(t.majorPerformanceCaveat=!0)),(0,K.Wi)(s))return s;if(e===Q.zO.WEBGL1){const e=s.getParameter(s.VERSION),r=null==e?void 0:e.match(/^WebGL\s+([\d.]*)/);if(r){const e=parseFloat(r[1]);t.available=e>=.94}}else t.available=!0;t.maxTextureSize=s.getParameter(s.MAX_TEXTURE_SIZE),t.supportsVertexShaderSamplers=s.getParameter(s.MAX_VERTEX_TEXTURE_IMAGE_UNITS)>0;const i=s.getShaderPrecisionFormat(s.FRAGMENT_SHADER,s.HIGH_FLOAT);return i&&(t.supportsHighPrecisionFragment=i.precision>0),s}(Q.zO.WEBGL1,e);return(0,K.Wi)(t)||(e.supportsElementIndexUint=null!==t.getExtension("OES_element_index_uint"),e.supportsStandardDerivatives=null!==t.getExtension("OES_standard_derivatives"),e.supportsInstancedArrays=null!==t.getExtension("ANGLE_instanced_arrays"),e.supportsTextureFloat=null!==t.getExtension("OES_texture_float")),e}()),J}class ee extends class{constructor(){this.available=!1,this.majorPerformanceCaveat=!1,this.maxTextureSize=0,this.supportsVertexShaderSamplers=!1,this.supportsHighPrecisionFragment=!1}}{constructor(){super(...arguments),this.type=Q.zO.WEBGL1,this.supportsElementIndexUint=!1,this.supportsStandardDerivatives=!1,this.supportsInstancedArrays=!1,this.supportsTextureFloat=!1}}let te=class extends((0,b.h)((0,A.M)((0,v.Z)((0,S.Y)((0,_.q)((0,M.I)((0,w.N)((0,g.V)((0,l.R)(m.Z)))))))))){constructor(...e){super(...e),this._spriteSourceMap=new Map,this.currentStyleInfo=null,this.style=null,this.isReference=null,this.operationalLayerType="VectorTileLayer",this.type="vector-tile",this.url=null,this.symbolCollisionBoxesVisible=!1,this.path=null}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){if(this.sourceNameToSource)for(const e of Object.values(this.sourceNameToSource))null==e||e.destroy();this._spriteSourceMap.clear()}async prefetchResources(e){await this.loadSpriteSource(globalThis.devicePixelRatio||1,e)}load(e){const t=this.loadFromPortal({supportedTypes:["Vector Tile Service"],supportsData:!1},e).catch(a.r9).then((async()=>{if(!this.portalItem||!this.portalItem.id)return;const t=`${this.portalItem.itemUrl}/resources/styles/root.json`;(await(0,i.default)(t,{...e,query:{f:"json",...this.customParameters,token:this.apiKey}})).data&&this.read({url:t},(0,Z.m)(this.portalItem))})).catch(a.r9).then((()=>this._loadStyle(e)));return this.addResolvingPromise(t),Promise.resolve(this)}get attributionDataUrl(){const e=this.currentStyleInfo,t=e&&e.serviceUrl&&(0,u.mN)(e.serviceUrl);if(!t)return null;const r=this._getDefaultAttribution(t.path);return r?(0,u.fl)(r,{...this.customParameters,token:this.apiKey}):null}get capabilities(){const e=this.primarySource;return e?e.capabilities:{operations:{supportsExportTiles:!1,supportsTileMap:!1},exportTiles:null}}get fullExtent(){var e;return(null==(e=this.primarySource)?void 0:e.fullExtent)||null}get parsedUrl(){return this.serviceUrl?(0,u.mN)(this.serviceUrl):null}get serviceUrl(){return this.currentStyleInfo&&this.currentStyleInfo.serviceUrl||null}get spatialReference(){return this.tileInfo&&this.tileInfo.spatialReference||null}get styleUrl(){return this.currentStyleInfo&&this.currentStyleInfo.styleUrl||null}writeStyleUrl(e,t){e&&(0,u.oC)(e)&&(e=`https:${e}`),t.styleUrl=e}get tileInfo(){var e;const t=[];for(const e in this.sourceNameToSource)t.push(this.sourceNameToSource[e]);let r=(null==(e=this.primarySource)?void 0:e.tileInfo)||new C.Z;if(t.length>1)for(let e=0;e<t.length;e++)W(r,t[e].tileInfo)&&(r=z(r,t[e].tileInfo));return r}readVersion(e,t){return t.version?parseFloat(t.version):parseFloat(t.currentVersion)}get compatibleTileInfo256(){return $.create256x256CompatibleTileInfo(this.tileInfo)}get compatibleTileInfo512(){return $.create512x512CompatibleTileInfo(this.tileInfo)}async loadSpriteSource(e=1,t){if(!this._spriteSourceMap.has(e)){var r;const s=X().maxTextureSize,i=null!=(r=this.currentStyleInfo)&&r.spriteUrl?(0,u.fl)(this.currentStyleInfo.spriteUrl,{...this.customParameters,token:this.apiKey}):null,n=new U(i,e,s,this.currentStyleInfo.spriteFormat);await n.load(t),this._spriteSourceMap.set(e,n)}return Promise.resolve(this._spriteSourceMap.get(e))}async loadStyle(e,t){var r;const s=e||this.style||this.url;return this._loadingTask&&"string"==typeof s&&this.url===s||(null==(r=this._loadingTask)||r.abort(),this._loadingTask=(0,a.vr)((e=>(this._spriteSourceMap.clear(),this._getSourceAndStyle(s,{signal:e}))),t)),this._loadingTask.promise}getStyleLayerId(e){return this.styleRepository.getStyleLayerId(e)}getStyleLayerIndex(e){return this.styleRepository.getStyleLayerIndex(e)}getPaintProperties(e){return(0,o.d9)(this.styleRepository.getPaintProperties(e))}setPaintProperties(e,t){const r=this.styleRepository.isPainterDataDriven(e);this.styleRepository.setPaintProperties(e,t);const s=this.styleRepository.isPainterDataDriven(e);this.emit("paint-change",{layer:e,paint:t,isDataDriven:r||s})}getStyleLayer(e){return(0,o.d9)(this.styleRepository.getStyleLayer(e))}setStyleLayer(e,t){this.styleRepository.setStyleLayer(e,t),this.emit("style-layer-change",{layer:e,index:t})}deleteStyleLayer(e){this.styleRepository.deleteStyleLayer(e),this.emit("delete-style-layer",{layer:e})}getLayoutProperties(e){return(0,o.d9)(this.styleRepository.getLayoutProperties(e))}setLayoutProperties(e,t){this.styleRepository.setLayoutProperties(e,t),this.emit("layout-change",{layer:e,layout:t})}setStyleLayerVisibility(e,t){this.styleRepository.setStyleLayerVisibility(e,t),this.emit("style-layer-visibility-change",{layer:e,visibility:t})}getStyleLayerVisibility(e){return this.styleRepository.getStyleLayerVisibility(e)}write(e,t){return null!=t&&t.origin&&!this.styleUrl?(t.messages&&t.messages.push(new n.Z("vectortilelayer:unsupported",`VectorTileLayer (${this.title}, ${this.id}) with style defined by JSON only are not supported`,{layer:this})),null):super.write(e,t)}getTileUrl(e,t,r){return null}async _getSourceAndStyle(e,t){if(!e)throw new Error("invalid style!");const r=await async function(e,t){const r={source:null,sourceBase:null,sourceUrl:null,validatedSource:null,style:null,styleBase:null,styleUrl:null,sourceNameToSource:{},primarySourceName:"",spriteFormat:"png"},[s,i]="string"==typeof e?[e,null]:[null,e.jsonUrl];await j(r,"esri",e,i,t);const n={layerDefinition:r.validatedSource,url:s,serviceUrl:r.sourceUrl,style:r.style,styleUrl:r.styleUrl,spriteUrl:r.style.sprite&&q(r.styleBase,r.style.sprite),spriteFormat:r.spriteFormat,glyphsUrl:r.style.glyphs&&q(r.styleBase,r.style.glyphs),sourceNameToSource:r.sourceNameToSource,primarySourceName:r.primarySourceName};return L(n.spriteUrl),L(n.glyphsUrl),n}(e,{...t,query:{...this.customParameters,token:this.apiKey}});"webp"===r.spriteFormat&&(await function(e){if(x)return x;const t={lossy:"UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",lossless:"UklGRhoAAABXRUJQVlA4TA0AAAAvAAAAEAcQERGIiP4HAA==",alpha:"UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAARBxAR/Q9ERP8DAABWUDggGAAAABQBAJ0BKgEAAQAAAP4AAA3AAP7mtQAAAA==",animation:"UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA"};return x=new Promise((e=>{const r=new Image;r.onload=()=>{r.onload=r.onerror=null,e(r.width>0&&r.height>0)},r.onerror=()=>{r.onload=r.onerror=null,e(!1)},r.src="data:image/webp;base64,"+t.lossy})),x}()||(r.spriteFormat="png")),this._set("currentStyleInfo",{...r}),"string"==typeof e?(this.url=e,this.style=null):(this.url=null,this.style=e),this._set("sourceNameToSource",r.sourceNameToSource),this._set("primarySource",r.sourceNameToSource[r.primarySourceName]),this._set("styleRepository",new V.Z(r.style)),this.read(r.layerDefinition,{origin:"service"}),this.emit("load-style")}_getDefaultAttribution(e){const t=e.match(/^https?:\/\/(?:basemaps|basemapsbeta|basemapsdev)(?:-api)?\.arcgis\.com(\/[^\/]+)?\/arcgis\/rest\/services\/([^\/]+(\/[^\/]+)*)\/vectortileserver/i),r=["OpenStreetMap_v2","OpenStreetMap_Daylight_v2","OpenStreetMap_Export_v2","OpenStreetMap_FTS_v2","OpenStreetMap_GCS_v2","World_Basemap","World_Basemap_v2","World_Basemap_Export_v2","World_Basemap_GCS_v2","World_Basemap_WGS84","World_Contours_v2"];if(!t)return;const s=t[2]&&t[2].toLowerCase();if(!s)return;const i=t[1]||"";for(const e of r)if(e.toLowerCase().includes(s))return(0,u.Fv)(`//static.arcgis.com/attribution/Vector${i}/${e}`)}async _loadStyle(e){var t,r;return null!=(t=null==(r=this._loadingTask)?void 0:r.promise)?t:this.loadStyle(null,e)}};(0,s._)([(0,c.Cb)({readOnly:!0})],te.prototype,"attributionDataUrl",null),(0,s._)([(0,c.Cb)({type:["show","hide"]})],te.prototype,"listMode",void 0),(0,s._)([(0,c.Cb)({readOnly:!0,json:{read:!1}})],te.prototype,"capabilities",null),(0,s._)([(0,c.Cb)({readOnly:!0})],te.prototype,"currentStyleInfo",void 0),(0,s._)([(0,c.Cb)({json:{read:!1},readOnly:!0,type:y.Z})],te.prototype,"fullExtent",null),(0,s._)([(0,c.Cb)()],te.prototype,"style",void 0),(0,s._)([(0,c.Cb)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],te.prototype,"isReference",void 0),(0,s._)([(0,c.Cb)({type:["VectorTileLayer"]})],te.prototype,"operationalLayerType",void 0),(0,s._)([(0,c.Cb)({readOnly:!0})],te.prototype,"parsedUrl",null),(0,s._)([(0,c.Cb)({readOnly:!0})],te.prototype,"serviceUrl",null),(0,s._)([(0,c.Cb)({type:f.Z,readOnly:!0})],te.prototype,"spatialReference",null),(0,s._)([(0,c.Cb)({readOnly:!0})],te.prototype,"styleRepository",void 0),(0,s._)([(0,c.Cb)({readOnly:!0})],te.prototype,"sourceNameToSource",void 0),(0,s._)([(0,c.Cb)({readOnly:!0})],te.prototype,"primarySource",void 0),(0,s._)([(0,c.Cb)({type:String,readOnly:!0,json:{write:{ignoreOrigin:!0},origins:{"web-document":{write:{ignoreOrigin:!0,isRequired:!0}}}}})],te.prototype,"styleUrl",null),(0,s._)([(0,d.c)(["portal-item","web-document"],"styleUrl")],te.prototype,"writeStyleUrl",null),(0,s._)([(0,c.Cb)({json:{read:!1,origins:{service:{read:!1}}},readOnly:!0,type:C.Z})],te.prototype,"tileInfo",null),(0,s._)([(0,c.Cb)({json:{read:!1},readOnly:!0,value:"vector-tile"})],te.prototype,"type",void 0),(0,s._)([(0,c.Cb)({json:{origins:{"web-document":{read:{source:"styleUrl"}},"portal-item":{read:{source:"url"}}},write:!1,read:!1}})],te.prototype,"url",void 0),(0,s._)([(0,c.Cb)({readOnly:!0})],te.prototype,"version",void 0),(0,s._)([(0,h.r)("version",["version","currentVersion"])],te.prototype,"readVersion",null),(0,s._)([(0,c.Cb)({readOnly:!0})],te.prototype,"compatibleTileInfo256",null),(0,s._)([(0,c.Cb)({readOnly:!0})],te.prototype,"compatibleTileInfo512",null),(0,s._)([(0,c.Cb)({type:Boolean})],te.prototype,"symbolCollisionBoxesVisible",void 0),(0,s._)([(0,c.Cb)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],te.prototype,"path",void 0),te=(0,s._)([(0,p.j)("esri.layers.VectorTileLayer")],te);const re=te},54295:(e,t,r)=>{r.d(t,{V:()=>o});var s=r(43697),i=r(5600),n=(r(67676),r(80442),r(75215),r(52011));const o=e=>{let t=class extends e{get apiKey(){var e;return this._isOverridden("apiKey")?this._get("apiKey"):function(e){return"portalItem"in e}(this)?null==(e=this.portalItem)?void 0:e.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,s._)([(0,i.Cb)({type:String})],t.prototype,"apiKey",null),t=(0,s._)([(0,n.j)("esri.layers.mixins.APIKeyMixin")],t),t}},46486:(e,t,r)=>{r.d(t,{Z:()=>c});var s=r(43697),i=(r(66577),r(5600)),n=(r(67676),r(80442),r(75215),r(71715)),o=r(52011),l=r(45322),a=r(56608),u=r(82971);const c=e=>{let t=class extends e{constructor(){super(...arguments),this.copyright=null,this.minScale=0,this.maxScale=0,this.spatialReference=null,this.tileInfo=null,this.tilemapCache=null}readMinScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}readMaxScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}get supportsBlankTile(){return this.version>=10.2}readTilemapCache(e,t){return t.capabilities&&t.capabilities.indexOf("Tilemap")>-1?new a.y({layer:this}):null}};return(0,s._)([(0,i.Cb)({json:{read:{source:"copyrightText"}}})],t.prototype,"copyright",void 0),(0,s._)([(0,i.Cb)()],t.prototype,"minScale",void 0),(0,s._)([(0,n.r)("service","minScale")],t.prototype,"readMinScale",null),(0,s._)([(0,i.Cb)()],t.prototype,"maxScale",void 0),(0,s._)([(0,n.r)("service","maxScale")],t.prototype,"readMaxScale",null),(0,s._)([(0,i.Cb)({type:u.Z})],t.prototype,"spatialReference",void 0),(0,s._)([(0,i.Cb)({readOnly:!0})],t.prototype,"supportsBlankTile",null),(0,s._)([(0,i.Cb)(l.h)],t.prototype,"tileInfo",void 0),(0,s._)([(0,i.Cb)()],t.prototype,"tilemapCache",void 0),(0,s._)([(0,n.r)("service","tilemapCache",["capabilities"])],t.prototype,"readTilemapCache",null),(0,s._)([(0,i.Cb)()],t.prototype,"version",void 0),t=(0,s._)([(0,o.j)("esri.layers.mixins.ArcGISCachedService")],t),t}},17287:(e,t,r)=>{r.d(t,{Y:()=>u});var s=r(43697),i=r(92604),n=r(70586),o=r(5600),l=(r(67676),r(80442),r(75215),r(52011)),a=r(66677);const u=e=>{let t=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,a.Qc)(this.url);if((0,n.pC)(e)&&e.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,a.Nm)(e,i.Z.getLogger(this.declaredClass)))}};return(0,s._)([(0,o.Cb)()],t.prototype,"title",null),(0,s._)([(0,o.Cb)({type:String})],t.prototype,"url",null),t=(0,s._)([(0,l.j)("esri.layers.mixins.ArcGISService")],t),t}},17017:(e,t,r)=>{r.d(t,{N:()=>o});var s=r(43697),i=r(5600),n=(r(67676),r(80442),r(75215),r(52011));const o=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,s._)([(0,i.Cb)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,s._)([(0,n.j)("esri.layers.mixins.CustomParametersMixin")],t),t}},66677:(e,t,r)=>{r.d(t,{ld:()=>y,B5:()=>h,M8:()=>m,G:()=>b,Qc:()=>p,DR:()=>d,Nm:()=>g,XG:()=>v,a7:()=>f,wH:()=>S});var s=r(70586),i=r(17452),n=r(25929);const o={mapserver:"MapServer",imageserver:"ImageServer",featureserver:"FeatureServer",sceneserver:"SceneServer",streamserver:"StreamServer",vectortileserver:"VectorTileServer"},l=Object.values(o),a=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/rest\\/services\\/(.+?)\\/(${l.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),u=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/([^\\/\\n]+)\\/(${l.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),c=/(.*?)\/(?:layers\/)?(\d+)\/?$/i;function h(e){return!!a.test(e)}function p(e){const t=(0,i.mN)(e),r=t.path.match(a)||t.path.match(u);if(!r)return null;const[,s,n,l,c]=r,h=n.indexOf("/");return{title:y(-1!==h?n.slice(h+1):n),serverType:o[l.toLowerCase()],sublayer:null!=c&&""!==c?parseInt(c,10):null,url:{path:s}}}function d(e){const t=(0,i.mN)(e).path.match(c);return t?{serviceUrl:t[1],sublayerId:Number(t[2])}:null}function y(e){return(e=e.replace(/\s*[/_]+\s*/g," "))[0].toUpperCase()+e.slice(1)}function f(e,t){const r=[];if(e){const t=p(e);(0,s.pC)(t)&&t.title&&r.push(t.title)}if(t){const e=y(t);r.push(e)}if(2===r.length){if(-1!==r[0].toLowerCase().indexOf(r[1].toLowerCase()))return r[0];if(-1!==r[1].toLowerCase().indexOf(r[0].toLowerCase()))return r[1]}return r.join(" - ")}function m(e){if(!e)return!1;const t=-1!==(e=e.toLowerCase()).indexOf(".arcgis.com/"),r=-1!==e.indexOf("//services")||-1!==e.indexOf("//tiles")||-1!==e.indexOf("//features");return t&&r}function g(e,t){return e?(0,i.Qj)((0,i.Hu)(e,t)):e}function v(e){let{url:t}=e;if(!t)return{url:t};t=(0,i.Hu)(t,e.logger);const r=(0,i.mN)(t),n=p(r.path);let o;if((0,s.pC)(n))null!=n.sublayer&&null==e.layer.layerId&&(o=n.sublayer),t=n.url.path;else if(e.nonStandardUrlAllowed){const e=d(r.path);(0,s.pC)(e)&&(t=e.serviceUrl,o=e.sublayerId)}return{url:(0,i.Qj)(t),layerId:o}}function S(e,t,r,s,o){(0,n.w)(t,s,"url",o),s.url&&null!=e.layerId&&(s.url=(0,i.v_)(s.url,r,e.layerId.toString()))}function b(e){if(!e)return!1;const t=e.toLowerCase(),r=-1!==t.indexOf("/services/"),s=-1!==t.indexOf("/mapserver/wmsserver"),i=-1!==t.indexOf("/imageserver/wmsserver"),n=-1!==t.indexOf("/wmsserver");return r&&(s||i||n)}},33516:(e,t,r)=>{r.d(t,{m:()=>n});var s=r(17452),i=r(65587);function n(e){return{origin:"portal-item",url:(0,s.mN)(e.itemUrl),portal:e.portal||i.Z.getDefault(),portalItem:e,readResourcePaths:[]}}},55415:(e,t,r)=>{r.d(t,{Z:()=>i});var s=r(71143);class i{constructor(e,t,r,s){this.set(e,t,r,s)}static getId(e,t,r,s){return"object"==typeof e?`${e.level}/${e.row}/${e.col}/${e.world}`:`${e}/${t}/${r}/${s}`}get key(){return this}get id(){return this.toString()}set id(e){this.set(e)}get hash(){const e=4095&this.row,t=4095&this.col,r=63&this.level;return(3&this.world)<<30|t<<22|e<<8|r}acquire(e,t,r,s){this.set(e,t,r,s)}contains(e){const t=e.level-this.level;return this.row===e.row>>t&&this.col===e.col>>t&&this.world===e.world}equals(e){return this.level===e.level&&this.row===e.row&&this.col===e.col&&this.world===e.world}clone(){return new i(this)}release(){this.level=0,this.row=0,this.col=0,this.world=0}set(e,t,r,s){if(null==e)this.level=0,this.row=0,this.col=0,this.world=0;else if("object"==typeof e)this.level=e.level||0,this.row=e.row||0,this.col=e.col||0,this.world=e.world||0;else if("string"==typeof e){const[t,r,s,i]=e.split("/");this.level=parseFloat(t),this.row=parseFloat(r),this.col=parseFloat(s),this.world=parseFloat(i)}else this.level=+e,this.row=+t,this.col=+r,this.world=+s||0;return this}toString(){return`${this.level}/${this.row}/${this.col}/${this.world}`}getParentKey(){return this.level<=0?null:new i(this.level-1,this.row>>1,this.col>>1,this.world)}getChildKeys(){const e=this.level+1,t=this.row<<1,r=this.col<<1,s=this.world;return[new i(e,t,r,s),new i(e,t,r+1,s),new i(e,t+1,r,s),new i(e,t+1,r+1,s)]}compareRowMajor(e){return this.row<e.row?-1:this.row>e.row?1:this.col<e.col?-1:this.col>e.col?1:0}}i.pool=new s.Z(i,null,null,25,50)},89749:(e,t,r)=>{r.d(t,{t:()=>h});var s=r(43697),i=r(15923),n=r(61247),o=r(70586),l=r(17445),a=r(1654),u=r(5600),c=r(52011);let h=class extends i.Z{constructor(){super(...arguments),this.updating=!1,this.handleId=0,this.handles=new n.Z,this.scheduleHandleId=0,this.pendingPromises=new Set}destroy(){this.removeAll(),this.handles.destroy()}add(e,t,r={}){const s=++this.handleId;r.sync||this._installSyncUpdatingWatch(e,s);const i=(0,l.YP)(e,t,r);return this.handles.add(i,s),{remove:()=>this.handles.remove(s)}}addOnCollectionChange(e,t,{initial:r=!1}={}){const s=++this.handleId;return this.handles.add([(0,l.on)(e,"after-changes",this._createSyncUpdatingCallback(),l.Z_),(0,l.on)(e,"change",t,{onListenerAdd:r?e=>t({added:e.items,removed:[],moved:[],target:e}):void 0})],s),{remove:()=>this.handles.remove(s)}}addPromise(e){if((0,o.Wi)(e))return e;const t=++this.handleId;this.handles.add({remove:()=>{this.pendingPromises.delete(e)&&(0!==this.pendingPromises.size||this.handles.has(p)||this._set("updating",!1))}},t),this.pendingPromises.add(e),this._set("updating",!0);const r=()=>this.handles.remove(t);return e.then(r,r),e}removeAll(){this.pendingPromises.clear(),this.handles.removeAll(),this._set("updating",!1)}_installSyncUpdatingWatch(e,t){const r=this._createSyncUpdatingCallback(),s=(0,l.YP)(e,r,{sync:!0,equals:()=>!1});return this.handles.add(s,t),s}_createSyncUpdatingCallback(){return()=>{this.handles.remove(p),++this.scheduleHandleId;const e=this.scheduleHandleId;this._get("updating")||this._set("updating",!0),this.handles.add((0,a.Os)((()=>{e===this.scheduleHandleId&&(this._set("updating",this.pendingPromises.size>0),this.handles.remove(p))})),p)}}};(0,s._)([(0,u.Cb)({readOnly:!0})],h.prototype,"updating",void 0),h=(0,s._)([(0,c.j)("esri.views.support.WatchUpdatingTracking")],h);const p=-42;var d,y;(y=d||(d={}))[y.NONE=0]="NONE",y[y.SYNC=1]="SYNC",y[y.INIT=2]="INIT"},54738:(e,t,r)=>{var s,i;function n(e,t,r={}){const i=t===s.WEBGL1?["webgl","experimental-webgl","webkit-3d","moz-webgl"]:["webgl2"];let n=null;for(const t of i){try{n=e.getContext(t,r)}catch(e){}if(n)break}return n}r.d(t,{zO:()=>s,kr:()=>n}),r(80442),(i=s||(s={}))[i.WEBGL1=1]="WEBGL1",i[i.WEBGL2=2]="WEBGL2"},65242:(e,t,r)=>{r.d(t,{a:()=>i,b:()=>n});var s=r(75215);function i(e){const t=(0,s.vU)(100*(1-e));return Math.max(0,Math.min(t,100))}function n(e){const t=1-e/100;return Math.max(0,Math.min(t,1))}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[368,6006],{28263:(e,t,r)=>{r.d(t,{E:()=>s});class i{constructor(e={}){this._options=e}toQueryParams(e){if(!e)return null;const t=e.toJSON(),r={};return Object.keys(t).forEach((e=>{const i=this._options[e];if(i){const s="boolean"!=typeof i&&i.name?i.name:e,o="boolean"!=typeof i&&i.getter?i.getter(t):t[e];null!=o&&(r[s]=(e=>{if(!Array.isArray(e))return!1;const[t]=e;return"number"==typeof t||"string"==typeof t})(o)?o.join(","):"object"==typeof o?JSON.stringify(o):o)}else r[e]=t[e]}),this),r}}function s(e){return new i(e)}},93924:(e,t,r)=>{r.d(t,{et:()=>g,ef:()=>w,bI:()=>N,Wf:()=>b});var i=r(3172),s=r(20102),o=r(70586),n=r(78286),a=r(17452),l=r(11282),u=r(43697),p=r(96674),c=r(5600),d=(r(67676),r(80442),r(75215),r(36030)),m=r(52011),y=r(49352),h=r(49827);let f=class extends p.wq{constructor(e){super(e),this.accumulateAttributeNames=null,this.currentVersion=null,this.defaultTravelMode=null,this.directionsLanguage=null,this.directionsLengthUnits=null,this.directionsSupportedLanguages=null,this.directionsTimeAttribute=null,this.hasZ=null,this.impedance=null,this.networkDataset=null,this.supportedTravelModes=null}};(0,u._)([(0,c.Cb)()],f.prototype,"accumulateAttributeNames",void 0),(0,u._)([(0,c.Cb)()],f.prototype,"currentVersion",void 0),(0,u._)([(0,c.Cb)()],f.prototype,"defaultTravelMode",void 0),(0,u._)([(0,c.Cb)()],f.prototype,"directionsLanguage",void 0),(0,u._)([(0,d.J)(y.GX)],f.prototype,"directionsLengthUnits",void 0),(0,u._)([(0,c.Cb)()],f.prototype,"directionsSupportedLanguages",void 0),(0,u._)([(0,c.Cb)()],f.prototype,"directionsTimeAttribute",void 0),(0,u._)([(0,c.Cb)()],f.prototype,"hasZ",void 0),(0,u._)([(0,c.Cb)()],f.prototype,"impedance",void 0),(0,u._)([(0,c.Cb)()],f.prototype,"networkDataset",void 0),(0,u._)([(0,c.Cb)({type:[h.Z]})],f.prototype,"supportedTravelModes",void 0),f=(0,u._)([(0,m.j)("esri.rest.support.NetworkServiceDescription")],f);const v=f;function g(e,t,r,i){i[r]=[t.length,t.length+e.length],e.forEach((e=>{t.push(e.geometry)}))}function w(e,t){for(let r=0;r<t.length;r++){const i=e[t[r]];if(i&&i.length)for(const e of i)e.z=void 0}console.log("The remote Network Analysis service is powered by a network dataset which is not Z-aware.\nZ-coordinates of the input geometry are ignored.")}function b(e,t){for(let r=0;r<t.length;r++){const i=e[t[r]];if(i&&i.length)for(const e of i)if((0,o.pC)(e)&&e.hasZ)return!0}return!1}async function N(e,t,r){if(!e)throw new s.Z("network-service:missing-url","Url to Network service is missing");const o=(0,l.lA)({f:"json",token:t},r),{data:u}=await(0,i.default)(e,o);u.supportedTravelModes||(u.supportedTravelModes=[]);for(let e=0;e<u.supportedTravelModes.length;e++)u.supportedTravelModes[e].id||(u.supportedTravelModes[e].id=u.supportedTravelModes[e].itemId);const p=u.currentVersion>=10.4?async function(e,t,r){try{const s=(0,l.lA)({f:"json",token:t},r),o=(0,a.Qj)(e)+"/retrieveTravelModes",{data:{supportedTravelModes:n,defaultTravelMode:u}}=await(0,i.default)(o,s);return{supportedTravelModes:n,defaultTravelMode:u}}catch(e){throw new s.Z("network-service:retrieveTravelModes","Could not get to the NAServer's retrieveTravelModes.",{error:e})}}(e,t,r):async function(e,t){var r,s;const o=(0,l.lA)({f:"json"},t),{data:u}=await(0,i.default)(e.replace(/\/rest\/.*$/i,"/info"),o);if(!u||!u.owningSystemUrl)return{supportedTravelModes:[],defaultTravelMode:null};const{owningSystemUrl:p}=u,c=(0,a.Qj)(p)+"/sharing/rest/portals/self",{data:d}=await(0,i.default)(c,o),m=(0,n.hS)("helperServices.routingUtilities.url",d);if(!m)return{supportedTravelModes:[],defaultTravelMode:null};const y=(0,l.en)(p),h=/\/solve$/i.test(y.path)?"Route":/\/solveclosestfacility$/i.test(y.path)?"ClosestFacility":"ServiceAreas",f=(0,l.lA)({f:"json",serviceName:h},t),v=(0,a.Qj)(m)+"/GetTravelModes/execute",g=await(0,i.default)(v,f),w=[];let b=null;if(null!=g&&null!=(r=g.data)&&null!=(s=r.results)&&s.length){const e=g.data.results;for(const t of e){var N;if("supportedTravelModes"===t.paramName){if(null!=(N=t.value)&&N.features)for(const{attributes:e}of t.value.features)if(e){const t=JSON.parse(e.TravelMode);w.push(t)}}else"defaultTravelMode"===t.paramName&&(b=t.value)}}return{supportedTravelModes:w,defaultTravelMode:b}}(e,r),{defaultTravelMode:c,supportedTravelModes:d}=await p;return u.defaultTravelMode=c,u.supportedTravelModes=d,v.fromJSON(u)}},95642:(e,t,r)=>{r.d(t,{Z:()=>v});var i=r(43697),s=(r(66577),r(70586)),o=r(5600),n=(r(67676),r(80442),r(75215),r(71715)),a=r(52011),l=r(1692);let u=class extends l.Z{};(0,i._)([(0,o.Cb)()],u.prototype,"events",void 0),(0,i._)([(0,o.Cb)()],u.prototype,"strings",void 0),u=(0,i._)([(0,a.j)("esri.rest.support.DirectionsFeature")],u);const p=u;var c=r(74889),d=r(6570),m=r(82971),y=r(58901),h=r(13473);let f=class extends c.default{constructor(e){super(e),this.extent=null,this.features=null,this.geometryType="polyline",this.routeId=null,this.routeName=null,this.totalDriveTime=null,this.totalLength=null,this.totalTime=null}readFeatures(e,t){var r;if(!e)return[];const i=null!=(r=t.summary.envelope.spatialReference)?r:t.spatialReference,s=i&&m.Z.fromJSON(i);return e.map((e=>{var t,r;const i=this._decompressGeometry(e.compressedGeometry),o=new y.Z({...i,spatialReference:s}),n=null!=(t=null==(r=e.events)?void 0:r.map((e=>{const{arriveTimeUTC:t,ETA:r,point:{x:i,y:o,z:n},strings:a}=e;return new p({geometry:new h.Z({x:i,y:o,z:n,hasZ:void 0!==n,spatialReference:s}),attributes:{ETA:r,arriveTimeUTC:t},strings:a})})))?t:[];return new p({attributes:e.attributes,events:n,geometry:o,strings:e.strings})}))}get mergedGeometry(){if(!this.features)return null;const e=this.features.map((({geometry:e})=>(0,s.Wg)(e))),t=this.get("extent.spatialReference");return this._mergePolylinesToSinglePath(e,t)}get strings(){return this.features.map((({strings:e})=>e))}_decompressGeometry(e){let t=0,r=0,i=0,s=0;const o=[];let n,a,l,u,p,c,d,m,y=0,h=0,f=0;if(p=e.match(/((\+|\-)[^\+\-\|]+|\|)/g),p||(p=[]),0===parseInt(p[y],32)){y=2;const e=parseInt(p[y],32);y++,c=parseInt(p[y],32),y++,1&e&&(h=p.indexOf("|")+1,d=parseInt(p[h],32),h++),2&e&&(f=p.indexOf("|",h)+1,m=parseInt(p[f],32),f++)}else c=parseInt(p[y],32),y++;for(;y<p.length&&"|"!==p[y];){n=parseInt(p[y],32)+t,y++,t=n,a=parseInt(p[y],32)+r,y++,r=a;const e=[n/c,a/c];h&&(u=parseInt(p[h],32)+i,h++,i=u,e.push(u/d)),f&&(l=parseInt(p[f],32)+s,f++,s=l,e.push(l/m)),o.push(e)}return{paths:[o],hasZ:h>0,hasM:f>0}}_mergePolylinesToSinglePath(e,t){if(0===e.length)return new y.Z({spatialReference:t});const r=[];for(const t of e)for(const e of t.paths)r.push(...e);const i=[];r.forEach(((e,t)=>{0!==t&&e[0]===r[t-1][0]&&e[1]===r[t-1][1]||i.push(e)}));const{hasM:s,hasZ:o}=e[0];return new y.Z({hasM:s,hasZ:o,paths:[i],spatialReference:t})}};(0,i._)([(0,o.Cb)({type:d.Z,json:{read:{source:"summary.envelope"}}})],f.prototype,"extent",void 0),(0,i._)([(0,o.Cb)()],f.prototype,"features",void 0),(0,i._)([(0,n.r)("features")],f.prototype,"readFeatures",null),(0,i._)([(0,o.Cb)()],f.prototype,"geometryType",void 0),(0,i._)([(0,o.Cb)({readOnly:!0})],f.prototype,"mergedGeometry",null),(0,i._)([(0,o.Cb)()],f.prototype,"routeId",void 0),(0,i._)([(0,o.Cb)()],f.prototype,"routeName",void 0),(0,i._)([(0,o.Cb)({value:null,readOnly:!0})],f.prototype,"strings",null),(0,i._)([(0,o.Cb)({json:{read:{source:"summary.totalDriveTime"}}})],f.prototype,"totalDriveTime",void 0),(0,i._)([(0,o.Cb)({json:{read:{source:"summary.totalLength"}}})],f.prototype,"totalLength",void 0),(0,i._)([(0,o.Cb)({json:{read:{source:"summary.totalTime"}}})],f.prototype,"totalTime",void 0),f=(0,i._)([(0,a.j)("esri.rest.support.DirectionsFeatureSet")],f);const v=f},74889:(e,t,r)=>{r.r(t),r.d(t,{default:()=>b});var i,s=r(43697),o=r(66577),n=r(1692),a=r(35454),l=r(96674),u=r(22974),p=r(70586),c=r(5600),d=(r(75215),r(71715)),m=r(52011),y=r(30556),h=r(82971),f=r(33955),v=r(1231);const g=new a.X({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let w=i=class extends l.wq{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){const r=h.Z.fromJSON(t.spatialReference),i=[];for(let t=0;t<e.length;t++){const s=e[t],o=n.Z.fromJSON(s),a=s.geometry&&s.geometry.spatialReference;(0,p.pC)(o.geometry)&&!a&&(o.geometry.spatialReference=r),i.push(o)}return i}writeGeometryType(e,t,r,i){if(e)return void g.write(e,t,r,i);const{features:s}=this;if(s)for(const e of s)if(e&&(0,p.pC)(e.geometry))return void g.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,i=(0,f.im)(e);return!r&&t.spatialReference&&(i.spatialReference=h.Z.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&(0,p.pC)(e.geometry)&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,u.d9)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const i=t.features[r];if(i.geometry){const t=e&&e[r];i.geometry=t&&t.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,r],translate:[i,s]}=e,o=this.features,n=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-i)/t)),(e=>Math.round((s-e)/r)));for(let e=0,t=o.length;e<t;e++)n((0,p.Wg)(o[e].geometry))||(o.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[i,s],scale:[o,n]}=r,a=this._getHydrationFunction(e,(e=>e*o+i),(e=>s-e*n));for(const{geometry:e}of t)(0,p.pC)(e)&&a(e);return this.transform=null,this}_quantizePoints(e,t,r){let i,s;const o=[];for(let n=0,a=e.length;n<a;n++){const a=e[n];if(n>0){const e=t(a[0]),n=r(a[1]);e===i&&n===s||(o.push([e-i,n-s]),i=e,s=n)}else i=t(a[0]),s=r(a[1]),o.push([i,s])}return o.length>0?o:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const i=(0,f.oU)(e)?e.rings:e.paths,s=[];for(let e=0,o=i.length;e<o;e++){const o=i[e],n=this._quantizePoints(o,t,r);n&&s.push(n)}return s.length>0?((0,f.oU)(e)?e.rings=s:e.paths=s,e):null}:"multipoint"===e?e=>{const i=this._quantizePoints(e.points,t,r);return i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y)}:"polyline"===e||"polygon"===e?e=>{const i=(0,f.oU)(e)?e.rings:e.paths;let s,o;for(let e=0,n=i.length;e<n;e++){const n=i[e];for(let e=0,i=n.length;e<i;e++){const i=n[e];e>0?(s+=i[0],o+=i[1]):(s=i[0],o=i[1]),i[0]=t(s),i[1]=r(o)}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax)}:"multipoint"===e?e=>{const i=e.points;let s,o;for(let e=0,n=i.length;e<n;e++){const n=i[e];e>0?(s+=n[0],o+=n[1]):(s=n[0],o=n[1]),n[0]=t(s),n[1]=r(o)}}:void 0}};(0,s._)([(0,c.Cb)({type:String,json:{write:!0}})],w.prototype,"displayFieldName",void 0),(0,s._)([(0,c.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"exceededTransferLimit",void 0),(0,s._)([(0,c.Cb)({type:[n.Z],json:{write:!0}})],w.prototype,"features",void 0),(0,s._)([(0,d.r)("features")],w.prototype,"readFeatures",null),(0,s._)([(0,c.Cb)({type:[v.Z],json:{write:!0}})],w.prototype,"fields",void 0),(0,s._)([(0,c.Cb)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],w.prototype,"geometryType",void 0),(0,s._)([(0,y.c)("geometryType")],w.prototype,"writeGeometryType",null),(0,s._)([(0,c.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasM",void 0),(0,s._)([(0,c.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasZ",void 0),(0,s._)([(0,c.Cb)({types:o.qM,json:{write:!0}})],w.prototype,"queryGeometry",void 0),(0,s._)([(0,d.r)("queryGeometry")],w.prototype,"readQueryGeometry",null),(0,s._)([(0,c.Cb)({type:h.Z,json:{write:!0}})],w.prototype,"spatialReference",void 0),(0,s._)([(0,y.c)("spatialReference")],w.prototype,"writeSpatialReference",null),(0,s._)([(0,c.Cb)({json:{write:!0}})],w.prototype,"transform",void 0),w=i=(0,s._)([(0,m.j)("esri.rest.support.FeatureSet")],w),w.prototype.toJSON.isDefaultToJSON=!0;const b=w},79166:(e,t,r)=>{r.d(t,{Z:()=>p});var i=r(43697),s=r(35454),o=r(5600),n=(r(67676),r(80442),r(75215),r(52011)),a=r(51623);const l=new s.X({0:"informative",1:"process-definition",2:"process-start",3:"process-stop",50:"warning",100:"error",101:"empty",200:"abort"});let u=class extends a.Z{constructor(e){super(e),this.type=null}};(0,i._)([(0,o.Cb)({type:String,json:{read:l.read,write:l.write}})],u.prototype,"type",void 0),u=(0,i._)([(0,n.j)("esri.rest.support.NAMessage")],u);const p=u},49827:(e,t,r)=>{r.d(t,{Z:()=>d});var i,s=r(43697),o=r(96674),n=r(22974),a=r(5600),l=(r(75215),r(36030)),u=r(52011),p=r(49352);let c=i=class extends o.wq{constructor(e){super(e),this.attributeParameterValues=null,this.description=null,this.distanceAttributeName=null,this.id=null,this.impedanceAttributeName=null,this.name=null,this.restrictionAttributeNames=null,this.simplificationTolerance=null,this.simplificationToleranceUnits=null,this.timeAttributeName=null,this.type=null,this.useHierarchy=null,this.uturnAtJunctions=null}clone(){return new i((0,n.d9)({attributeParameterValues:this.attributeParameterValues,description:this.description,distanceAttributeName:this.distanceAttributeName,id:this.id,impedanceAttributeName:this.impedanceAttributeName,name:this.name,restrictionAttributeNames:this.restrictionAttributeNames,simplificationTolerance:this.simplificationTolerance,simplificationToleranceUnits:this.simplificationToleranceUnits,timeAttributeName:this.timeAttributeName,type:this.type,useHierarchy:this.useHierarchy,uturnAtJunctions:this.uturnAtJunctions}))}};(0,s._)([(0,a.Cb)({type:[Object],json:{write:!0}})],c.prototype,"attributeParameterValues",void 0),(0,s._)([(0,a.Cb)({type:String,json:{write:!0}})],c.prototype,"description",void 0),(0,s._)([(0,a.Cb)({type:String,json:{write:!0}})],c.prototype,"distanceAttributeName",void 0),(0,s._)([(0,a.Cb)({type:String,json:{write:!0}})],c.prototype,"id",void 0),(0,s._)([(0,a.Cb)({type:String,json:{write:!0}})],c.prototype,"impedanceAttributeName",void 0),(0,s._)([(0,a.Cb)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,s._)([(0,a.Cb)({type:[String],json:{write:!0}})],c.prototype,"restrictionAttributeNames",void 0),(0,s._)([(0,a.Cb)({type:Number,json:{write:!0}})],c.prototype,"simplificationTolerance",void 0),(0,s._)([(0,l.J)(p.q$)],c.prototype,"simplificationToleranceUnits",void 0),(0,s._)([(0,a.Cb)({type:String,json:{write:!0}})],c.prototype,"timeAttributeName",void 0),(0,s._)([(0,l.J)(p.DJ)],c.prototype,"type",void 0),(0,s._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],c.prototype,"useHierarchy",void 0),(0,s._)([(0,l.J)(p.ip)],c.prototype,"uturnAtJunctions",void 0),c=i=(0,s._)([(0,u.j)("esri.rest.support.TravelMode")],c);const d=c},49352:(e,t,r)=>{r.d(t,{oi:()=>h,W7:()=>c,td:()=>g,cW:()=>v,GX:()=>o,$7:()=>a,hB:()=>n,Dd:()=>f,q$:()=>s,yP:()=>d,no:()=>l,ip:()=>u,BW:()=>y,SS:()=>m,DJ:()=>p});var i=r(35454);const s=(0,i.w)()({esriCentimeters:"centimeters",esriDecimalDegrees:"decimal-degrees",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriPoints:"points",esriYards:"yards"}),o=(0,i.w)()({esriNAUCentimeters:"centimeters",esriNAUDecimalDegrees:"decimal-degrees",esriNAUDecimeters:"decimeters",esriNAUFeet:"feet",esriNAUInches:"inches",esriNAUKilometers:"kilometers",esriNAUMeters:"meters",esriNAUMiles:"miles",esriNAUMillimeters:"millimeters",esriNAUNauticalMiles:"nautical-miles",esriNAUPoints:"points",esriNAUYards:"yards"}),n=(0,i.w)()({esriNAUDays:"days",esriNAUHours:"hours",esriNAUMinutes:"minutes",esriNAUSeconds:"seconds"}),a=(0,i.w)()({esriDOTComplete:"complete",esriDOTCompleteNoEvents:"complete-no-events",esriDOTFeatureSets:"featuresets",esriDOTInstructionsOnly:"instructions-only",esriDOTStandard:"standard",esriDOTSummaryOnly:"summary-only"}),l=(0,i.w)()({esriNAOutputLineNone:"none",esriNAOutputLineStraight:"straight",esriNAOutputLineTrueShape:"true-shape",esriNAOutputLineTrueShapeWithMeasure:"true-shape-with-measure"}),u=((0,i.w)()({esriNAOutputPolygonNone:"none",esriNAOutputPolygonSimplified:"simplified",esriNAOutputPolygonDetailed:"detailed"}),(0,i.w)()({esriNFSBAllowBacktrack:"allow-backtrack",esriNFSBAtDeadEndsOnly:"at-dead-ends-only",esriNFSBNoBacktrack:"no-backtrack",esriNFSBAtDeadEndsAndIntersections:"at-dead-ends-and-intersections"})),p=((0,i.w)()({esriNATravelDirectionFromFacility:"from-facility",esriNATravelDirectionToFacility:"to-facility"}),(0,i.w)()({esriNATimeOfDayNotUsed:"not-used",esriNATimeOfDayUseAsStartTime:"start",esriNATimeOfDayUseAsEndTime:"end"}),(0,i.w)()({AUTOMOBILE:"automobile",TRUCK:"truck",WALK:"walk",OTHER:"other"})),c=(0,i.w)()({0:"either-side-of-vehicle",1:"right-side-of-vehicle",2:"left-side-of-vehicle",3:"no-u-turn"},{useNumericKeys:!0}),d=(0,i.w)()({0:"stop",1:"waypoint",2:"break"},{useNumericKeys:!0}),m=(0,i.w)()({0:"ok",1:"not-located",2:"network-element-not-located",3:"element-not-traversable",4:"invalid-field-values",5:"not-reached",6:"time-window-violation",7:"not-located-on-closest"},{useNumericKeys:!0}),y=(0,i.w)()({1:"right",2:"left"},{useNumericKeys:!0}),h=(0,i.w)()({0:"restriction",1:"added-cost"},{useNumericKeys:!0}),f=(0,i.w)()({0:"permit",1:"restrict"},{useNumericKeys:!0}),v=(0,i.w)()({1:"header",50:"arrive",51:"depart",52:"straight",100:"on-ferry",101:"off-ferry",102:"central-fork",103:"roundabout",104:"u-turn",150:"door",151:"stairs",152:"elevator",153:"escalator",154:"pedestrian-ramp",200:"left-fork",201:"left-ramp",202:"clockwise-roundabout",203:"left-handed-u-turn",204:"bear-left",205:"left-turn",206:"sharp-left",207:"left-turn-and-immediate-left-turn",208:"left-turn-and-immediate-right-turn",300:"right-fork",301:"right-ramp",302:"counter-clockwise-roundabout",303:"right-handed-u-turn",304:"bear-right",305:"right-turn",306:"sharp-right",307:"right-turn-and-immediate-left-turn",308:"right-turn-and-immediate-right-turn",400:"up-elevator",401:"up-escalator",402:"up-stairs",500:"down-elevator",501:"down-escalator",502:"down-stairs",1e3:"general-event",1001:"landmark",1002:"time-zone-change",1003:"traffic-event",1004:"scaled-cost-barrier-event",1005:"boundary-crossing",1006:"restriction-violation"},{useNumericKeys:!0}),g=(0,i.w)()({0:"unknown",1:"segment",2:"maneuver-segment",3:"restriction-violation",4:"scaled-cost-barrier",5:"heavy-traffic",6:"slow-traffic",7:"moderate-traffic"},{useNumericKeys:!0})}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6678],{23334:(e,t,r)=>{r.d(t,{F:()=>N});var s=r(3172),o=r(70586),i=r(28263),l=r(38581),n=r(93924),a=r(11282),u=r(43697),p=r(1692),c=r(96674),y=r(5600),d=(r(67676),r(80442),r(75215),r(71715)),f=r(52011),m=r(74889),g=r(79166),b=r(95642);let h=class extends c.wq{constructor(e){super(e),this.directionLines=null,this.directionPoints=null,this.directions=null,this.route=null,this.routeName=null,this.stops=null}};(0,u._)([(0,y.Cb)({type:m.default,json:{write:!0}})],h.prototype,"directionLines",void 0),(0,u._)([(0,y.Cb)({type:m.default,json:{write:!0}})],h.prototype,"directionPoints",void 0),(0,u._)([(0,y.Cb)({type:b.Z,json:{write:!0}})],h.prototype,"directions",void 0),(0,u._)([(0,y.Cb)({type:p.Z,json:{write:!0}})],h.prototype,"route",void 0),(0,u._)([(0,y.Cb)({type:String,json:{write:!0}})],h.prototype,"routeName",void 0),(0,u._)([(0,y.Cb)({type:[p.Z],json:{write:!0}})],h.prototype,"stops",void 0),h=(0,u._)([(0,f.j)("esri.rest.support.RouteResult")],h);const v=h;function R(e){return e&&m.default.fromJSON(e).features.map((e=>e))}let S=class extends c.wq{constructor(e){super(e),this.messages=null,this.pointBarriers=null,this.polylineBarriers=null,this.polygonBarriers=null,this.routeResults=null}readPointBarriers(e,t){return R(t.barriers)}readPolylineBarriers(e){return R(e)}readPolygonBarriers(e){return R(e)}};(0,u._)([(0,y.Cb)({type:[g.Z]})],S.prototype,"messages",void 0),(0,u._)([(0,y.Cb)({type:[p.Z]})],S.prototype,"pointBarriers",void 0),(0,u._)([(0,d.r)("pointBarriers",["barriers"])],S.prototype,"readPointBarriers",null),(0,u._)([(0,y.Cb)({type:[p.Z]})],S.prototype,"polylineBarriers",void 0),(0,u._)([(0,d.r)("polylineBarriers")],S.prototype,"readPolylineBarriers",null),(0,u._)([(0,y.Cb)({type:[p.Z]})],S.prototype,"polygonBarriers",void 0),(0,u._)([(0,d.r)("polygonBarriers")],S.prototype,"readPolygonBarriers",null),(0,u._)([(0,y.Cb)({type:[v]})],S.prototype,"routeResults",void 0),S=(0,u._)([(0,f.j)("esri.rest.support.RouteSolveResult")],S);const B=S,_=(0,i.E)({accumulateAttributes:{name:"accumulateAttributeNames"},attributeParameterValues:!0,directionsTimeAttribute:{name:"directionsTimeAttributeName"},impedanceAttribute:{name:"impedanceAttributeName"},outSpatialReference:{name:"outSR",getter:e=>e.outSpatialReference.wkid},pointBarriers:{name:"barriers"},polylineBarriers:!0,polygonBarriers:!0,restrictionAttributes:{name:"restrictionAttributeNames"},stops:!0,travelMode:!0});function C(e){return"esri.rest.support.FeatureSet"===(null==e?void 0:e.declaredClass)}async function N(e,t,r){const i=[],u=[],p={},c={},y=(0,a.en)(e),{path:d}=y;C(t.stops)&&(0,n.et)(t.stops.features,u,"stops.features",p),C(t.pointBarriers)&&(0,n.et)(t.pointBarriers.features,u,"pointBarriers.features",p),C(t.polylineBarriers)&&(0,n.et)(t.polylineBarriers.features,u,"polylineBarriers.features",p),C(t.polygonBarriers)&&(0,n.et)(t.polygonBarriers.features,u,"polygonBarriers.features",p);const f=await(0,l.aX)(u);for(const e in p){const t=p[e];i.push(e),c[e]=f.slice(t[0],t[1])}if((0,n.Wf)(c,i)){let e=null;try{e=await(0,n.bI)(d,t.apiKey,r)}catch{}e&&!e.hasZ&&(0,n.ef)(c,i)}for(const e in c)c[e].forEach(((r,s)=>{t.get(e)[s].geometry=r}));const m={...r,query:{...y.query,..._.toQueryParams(t),f:"json"}},g=d.endsWith("/solve")?d:`${d}/solve`,{data:b}=await(0,s.default)(g,m);return function(e){var t,r,s,i,l;const n=new Map,{directionLines:a,directionPoints:u,directions:p,routes:c,stops:y,barriers:d,polygonBarriers:f,polylineBarriers:m,messages:g}=e,b=null!=(t=null!=(r=null!=(s=null!=(i=null==c?void 0:c.spatialReference)?i:null==y?void 0:y.spatialReference)?s:null==d?void 0:d.spatialReference)?r:null==f?void 0:f.spatialReference)?t:null==m?void 0:m.spatialReference;null==c||c.features.forEach((e=>{const t=e.attributes.Name,r=e.attributes.ObjectID;n.has(t)?(n.get(t).route=e,n.get(t).routeId=r):n.set(t,{route:e,routeId:r,routeName:t}),(0,o.pC)(e.geometry)&&(e.geometry.spatialReference=b)})),null==p||p.forEach((e=>{const t=e.routeName;n.has(t)?n.get(t).directions=e:n.set(t,{routeName:t,directions:e})})),null==y||y.features.forEach((e=>{var t;const r=null!=(t=e.attributes.RouteName)?t:null;n.has(r)?n.get(r).stops?n.get(r).stops.push(e):n.get(r).stops=[e]:n.set(r,{stops:[e],routeName:r}),(0,o.pC)(e.geometry)&&(e.geometry.spatialReference=b)}));const h=null==(l=null==y?void 0:y.features.every((e=>null==e.attributes.RouteName)))||l;if((null==y?void 0:y.features.length)>0&&h){const e=Array.from(n.keys())[0];n.get(e).stops=n.get(null).stops,n.delete(null)}null==a||a.features.forEach((e=>{var t;const r=e.attributes.RouteID,s=null==(t=Array.from(n.values()).find((e=>e.routeId===r)))?void 0:t.routeName;if(s)if(n.has(s))if(n.get(s).directionLines)n.get(s).directionLines.features.push(e);else{const{fieldAliases:t,geometryType:r,spatialReference:o}=a;n.get(s).directionLines={features:[e],fieldAliases:t,geometryType:r,spatialReference:o}}else{const{fieldAliases:t,geometryType:r,spatialReference:o}=a;n.set(s,{routeName:s,directionLines:{features:[e],fieldAliases:t,geometryType:r,spatialReference:o}})}})),null==u||u.features.forEach((e=>{var t;const r=e.attributes.RouteID,s=null==(t=Array.from(n.values()).find((e=>e.routeId===r)))?void 0:t.routeName;if(s)if(n.has(s))if(n.get(s).directionPoints)n.get(s).directionPoints.features.push(e);else{const{fieldAliases:t,geometryType:r,spatialReference:o}=u;n.get(s).directionPoints={features:[e],fieldAliases:t,geometryType:r,spatialReference:o}}else{const{fieldAliases:t,geometryType:r,spatialReference:o}=u;n.set(s,{routeName:s,directionPoints:{features:[e],fieldAliases:t,geometryType:r,spatialReference:o}})}}));const v=Array.from(n.values());return B.fromJSON({routeResults:v,barriers:d,polygonBarriers:f,polylineBarriers:m,messages:g})}(b)}},89164:(e,t,r)=>{r.d(t,{Z:()=>d});var s=r(43697),o=r(22303),i=r(35454),l=r(96674),n=r(5600),a=(r(67676),r(80442),r(75215),r(71715)),u=r(52011);const p=new i.
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6678],{23334:(e,t,r)=>{r.d(t,{F:()=>N});var s=r(3172),o=r(70586),i=r(28263),l=r(38581),n=r(93924),a=r(11282),u=r(43697),p=r(1692),c=r(96674),y=r(5600),d=(r(67676),r(80442),r(75215),r(71715)),f=r(52011),m=r(74889),g=r(79166),b=r(95642);let h=class extends c.wq{constructor(e){super(e),this.directionLines=null,this.directionPoints=null,this.directions=null,this.route=null,this.routeName=null,this.stops=null}};(0,u._)([(0,y.Cb)({type:m.default,json:{write:!0}})],h.prototype,"directionLines",void 0),(0,u._)([(0,y.Cb)({type:m.default,json:{write:!0}})],h.prototype,"directionPoints",void 0),(0,u._)([(0,y.Cb)({type:b.Z,json:{write:!0}})],h.prototype,"directions",void 0),(0,u._)([(0,y.Cb)({type:p.Z,json:{write:!0}})],h.prototype,"route",void 0),(0,u._)([(0,y.Cb)({type:String,json:{write:!0}})],h.prototype,"routeName",void 0),(0,u._)([(0,y.Cb)({type:[p.Z],json:{write:!0}})],h.prototype,"stops",void 0),h=(0,u._)([(0,f.j)("esri.rest.support.RouteResult")],h);const v=h;function R(e){return e&&m.default.fromJSON(e).features.map((e=>e))}let S=class extends c.wq{constructor(e){super(e),this.messages=null,this.pointBarriers=null,this.polylineBarriers=null,this.polygonBarriers=null,this.routeResults=null}readPointBarriers(e,t){return R(t.barriers)}readPolylineBarriers(e){return R(e)}readPolygonBarriers(e){return R(e)}};(0,u._)([(0,y.Cb)({type:[g.Z]})],S.prototype,"messages",void 0),(0,u._)([(0,y.Cb)({type:[p.Z]})],S.prototype,"pointBarriers",void 0),(0,u._)([(0,d.r)("pointBarriers",["barriers"])],S.prototype,"readPointBarriers",null),(0,u._)([(0,y.Cb)({type:[p.Z]})],S.prototype,"polylineBarriers",void 0),(0,u._)([(0,d.r)("polylineBarriers")],S.prototype,"readPolylineBarriers",null),(0,u._)([(0,y.Cb)({type:[p.Z]})],S.prototype,"polygonBarriers",void 0),(0,u._)([(0,d.r)("polygonBarriers")],S.prototype,"readPolygonBarriers",null),(0,u._)([(0,y.Cb)({type:[v]})],S.prototype,"routeResults",void 0),S=(0,u._)([(0,f.j)("esri.rest.support.RouteSolveResult")],S);const B=S,_=(0,i.E)({accumulateAttributes:{name:"accumulateAttributeNames"},attributeParameterValues:!0,directionsTimeAttribute:{name:"directionsTimeAttributeName"},impedanceAttribute:{name:"impedanceAttributeName"},outSpatialReference:{name:"outSR",getter:e=>e.outSpatialReference.wkid},pointBarriers:{name:"barriers"},polylineBarriers:!0,polygonBarriers:!0,restrictionAttributes:{name:"restrictionAttributeNames"},stops:!0,travelMode:!0});function C(e){return"esri.rest.support.FeatureSet"===(null==e?void 0:e.declaredClass)}async function N(e,t,r){const i=[],u=[],p={},c={},y=(0,a.en)(e),{path:d}=y;C(t.stops)&&(0,n.et)(t.stops.features,u,"stops.features",p),C(t.pointBarriers)&&(0,n.et)(t.pointBarriers.features,u,"pointBarriers.features",p),C(t.polylineBarriers)&&(0,n.et)(t.polylineBarriers.features,u,"polylineBarriers.features",p),C(t.polygonBarriers)&&(0,n.et)(t.polygonBarriers.features,u,"polygonBarriers.features",p);const f=await(0,l.aX)(u);for(const e in p){const t=p[e];i.push(e),c[e]=f.slice(t[0],t[1])}if((0,n.Wf)(c,i)){let e=null;try{e=await(0,n.bI)(d,t.apiKey,r)}catch{}e&&!e.hasZ&&(0,n.ef)(c,i)}for(const e in c)c[e].forEach(((r,s)=>{t.get(e)[s].geometry=r}));const m={...r,query:{...y.query,..._.toQueryParams(t),f:"json"}},g=d.endsWith("/solve")?d:`${d}/solve`,{data:b}=await(0,s.default)(g,m);return function(e){var t,r,s,i,l;const n=new Map,{directionLines:a,directionPoints:u,directions:p,routes:c,stops:y,barriers:d,polygonBarriers:f,polylineBarriers:m,messages:g}=e,b=null!=(t=null!=(r=null!=(s=null!=(i=null==c?void 0:c.spatialReference)?i:null==y?void 0:y.spatialReference)?s:null==d?void 0:d.spatialReference)?r:null==f?void 0:f.spatialReference)?t:null==m?void 0:m.spatialReference;null==c||c.features.forEach((e=>{const t=e.attributes.Name,r=e.attributes.ObjectID;n.has(t)?(n.get(t).route=e,n.get(t).routeId=r):n.set(t,{route:e,routeId:r,routeName:t}),(0,o.pC)(e.geometry)&&(e.geometry.spatialReference=b)})),null==p||p.forEach((e=>{const t=e.routeName;n.has(t)?n.get(t).directions=e:n.set(t,{routeName:t,directions:e})})),null==y||y.features.forEach((e=>{var t;const r=null!=(t=e.attributes.RouteName)?t:null;n.has(r)?n.get(r).stops?n.get(r).stops.push(e):n.get(r).stops=[e]:n.set(r,{stops:[e],routeName:r}),(0,o.pC)(e.geometry)&&(e.geometry.spatialReference=b)}));const h=null==(l=null==y?void 0:y.features.every((e=>null==e.attributes.RouteName)))||l;if((null==y?void 0:y.features.length)>0&&h){const e=Array.from(n.keys())[0];n.get(e).stops=n.get(null).stops,n.delete(null)}null==a||a.features.forEach((e=>{var t;const r=e.attributes.RouteID,s=null==(t=Array.from(n.values()).find((e=>e.routeId===r)))?void 0:t.routeName;if(s)if(n.has(s))if(n.get(s).directionLines)n.get(s).directionLines.features.push(e);else{const{fieldAliases:t,geometryType:r,spatialReference:o}=a;n.get(s).directionLines={features:[e],fieldAliases:t,geometryType:r,spatialReference:o}}else{const{fieldAliases:t,geometryType:r,spatialReference:o}=a;n.set(s,{routeName:s,directionLines:{features:[e],fieldAliases:t,geometryType:r,spatialReference:o}})}})),null==u||u.features.forEach((e=>{var t;const r=e.attributes.RouteID,s=null==(t=Array.from(n.values()).find((e=>e.routeId===r)))?void 0:t.routeName;if(s)if(n.has(s))if(n.get(s).directionPoints)n.get(s).directionPoints.features.push(e);else{const{fieldAliases:t,geometryType:r,spatialReference:o}=u;n.get(s).directionPoints={features:[e],fieldAliases:t,geometryType:r,spatialReference:o}}else{const{fieldAliases:t,geometryType:r,spatialReference:o}=u;n.set(s,{routeName:s,directionPoints:{features:[e],fieldAliases:t,geometryType:r,spatialReference:o}})}}));const v=Array.from(n.values());return B.fromJSON({routeResults:v,barriers:d,polygonBarriers:f,polylineBarriers:m,messages:g})}(b)}},89164:(e,t,r)=>{r.d(t,{Z:()=>d});var s=r(43697),o=r(22303),i=r(35454),l=r(96674),n=r(5600),a=(r(67676),r(80442),r(75215),r(71715)),u=r(52011);const p=new i.X({esriSMS:"simple-marker",esriPMS:"picture-marker",esriSLS:"simple-line",esriSFS:"simple-fill",esriPFS:"picture-fill",esriTS:"text",esriSHD:"shield-label-symbol",PointSymbol3D:"point-3d",LineSymbol3D:"line-3d",PolygonSymbol3D:"polygon-3d",WebStyleSymbol:"web-style",MeshSymbol3D:"mesh-3d",LabelSymbol3D:"label-3d",CIMSymbolReference:"cim"});let c=0,y=class extends l.wq{constructor(e){super(e),this.id="sym"+c++,this.type=null,this.color=new o.Z([0,0,0,1])}readColor(e){return e&&null!=e[0]?[e[0],e[1],e[2],e[3]/255]:e}async collectRequiredFields(e,t){}hash(){return JSON.stringify(this.toJSON())}clone(){}};(0,s._)([(0,n.Cb)({type:p.apiValues,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:p.write}}})],y.prototype,"type",void 0),(0,s._)([(0,n.Cb)({type:o.Z,json:{write:{allowNull:!0}}})],y.prototype,"color",void 0),(0,s._)([(0,a.r)("color")],y.prototype,"readColor",null),y=(0,s._)([(0,u.j)("esri.symbols.Symbol")],y);const d=y},8234:(e,t,r)=>{r.r(t),r.d(t,{default:()=>a});var s=r(43697),o=(r(92604),r(75215),r(67676),r(80442),r(37697),r(52011)),i=r(23334),l=r(59633);let n=class extends l.Z{constructor(e){super(e)}solve(e,t){return(0,i.F)(this.url,e,t)}};n=(0,s._)([(0,o.j)("esri.tasks.RouteTask")],n);const a=n},59633:(e,t,r)=>{r.d(t,{Z:()=>u});var s=r(43697),o=r(15923),i=r(17452),l=r(5600),n=(r(67676),r(80442),r(75215),r(52011));let a=class extends o.Z{constructor(...e){super(...e),this.requestOptions=null,this.url=null}normalizeCtorArgs(e,t){return"string"!=typeof e?e:{url:e,...t}}get parsedUrl(){return this._parseUrl(this.url)}_parseUrl(e){return e?(0,i.mN)(e):null}_encode(e,t,r){const s={};for(const o in e){if("declaredClass"===o)continue;const i=e[o];if(null!=i&&"function"!=typeof i)if(Array.isArray(i)){s[o]=[];for(let e=0;e<i.length;e++)s[o][e]=this._encode(i[e])}else if("object"==typeof i)if(i.toJSON){const e=i.toJSON(r&&r[o]);s[o]=t?e:JSON.stringify(e)}else s[o]=t?i:JSON.stringify(i);else s[o]=i}return s}};(0,s._)([(0,l.Cb)({readOnly:!0})],a.prototype,"parsedUrl",null),(0,s._)([(0,l.Cb)()],a.prototype,"requestOptions",void 0),(0,s._)([(0,l.Cb)({type:String})],a.prototype,"url",void 0),a=(0,s._)([(0,n.j)("esri.tasks.Task")],a);const u=a}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8536],{41993:e=>{function t(e){return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}t.keys=()=>[],t.resolve=t,t.id=41993,e.exports=t},99880:(e,t,r)=>{"use strict";r.d(t,{V:()=>l});var s=r(68773),n=(r(3172),r(20102)),i=r(92604),o=r(17452);const a=i.Z.getLogger("esri.assets");function l(e){if(!s.Z.assetsPath)throw a.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new n.Z("assets:path-not-set","config.assetsPath is not set");return(0,o.v_)(s.Z.assetsPath,e)}},80539:(e,t,r)=>{"use strict";r.d(t,{Z:()=>E});var s,n=r(43697),i=r(3894),o=r(32448),a=r(22974),l=r(70586),h=r(71143);!function(e){e[e.ADD=1]="ADD",e[e.REMOVE=2]="REMOVE",e[e.MOVE=4]="MOVE"}(s||(s={}));var c,u=r(1654),d=r(5600),p=r(75215),f=r(52421),m=r(52011),g=r(58971),_=r(39020);class v{constructor(){this._observers=[]}observe(e){return this._observers.includes(e)||this._observers.push(e),new _.X(this._observers,e)}notify(){const e=this._observers.slice();for(let t=0;t<e.length;++t){const r=e[t];r.onInvalidated(),r.onCommitted()}}}const y=new h.Z(class{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(e){this.defaultPrevented=!1,this.item=e}},void 0,(e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1})),w=()=>{};function b(e){return e?e instanceof U?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function S(e){if(e&&e.length)return e[0]}function I(e,t,r,s){const n=Math.min(e.length-r,t.length-s);let i=0;for(;i<n&&e[r+i]===t[s+i];)i++;return i}function A(e,t,r,s){t&&t.forEach(((t,n,i)=>{e.push(t),A(e,r.call(s,t,n,i),r,s)}))}const C=new Set,k=new Set,x=new Set,O=new Map;let T=0,U=c=class extends o.Z.EventedAccessor{constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._timer=null,this._observable=new v,this.length=0,this._items=[],Object.defineProperty(this,"uid",{value:T++})}static isCollection(e){return null!=e&&e instanceof c}normalizeCtorArgs(e){return e?Array.isArray(e)||e instanceof c?{items:e}:e:{}}destroy(){this.removeAll()}*[Symbol.iterator](){yield*this.items}get items(){return(0,g.it)(this._observable),this._items}set items(e){this._emitBeforeChanges(s.ADD)||(this._splice(0,this.length,b(e)),this._emitAfterChanges(s.ADD))}hasEventListener(e){return"change"===e?this._chgListeners.length>0:this._emitter.hasEventListener(e)}on(e,t){if("change"===e){const e=this._chgListeners,r={removed:!1,callback:t};return e.push(r),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),{remove(){this.remove=w,r.removed=!0,e.splice(e.indexOf(r),1)}}}return this._emitter.on(e,t)}once(e,t){const r=this.on(e,t);return{remove(){r.remove()}}}add(e,t){if((0,g.it)(this._observable),this._emitBeforeChanges(s.ADD))return this;const r=this.getNextIndex(null!=t?t:null);return this._splice(r,0,[e]),this._emitAfterChanges(s.ADD),this}addMany(e,t=this._items.length){if((0,g.it)(this._observable),!e||!e.length)return this;if(this._emitBeforeChanges(s.ADD))return this;const r=this.getNextIndex(t);return this._splice(r,0,b(e)),this._emitAfterChanges(s.ADD),this}removeAll(){if((0,g.it)(this._observable),!this.length||this._emitBeforeChanges(s.REMOVE))return[];const e=this._splice(0,this.length)||[];return this._emitAfterChanges(s.REMOVE),e}clone(){return(0,g.it)(this._observable),this._createNewInstance({items:this._items.map(a.d9)})}concat(...e){(0,g.it)(this._observable);const t=e.map(b);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,g.it)(this._observable),!this.length||this._emitBeforeChanges(s.REMOVE))return;const r=(0,l.j0)(this._splice(0,this.length)),n=r.length;for(let s=0;s<n;s++)e.call(t,r[s],s,r);this._emitAfterChanges(s.REMOVE)}every(e,t){return(0,g.it)(this._observable),this._items.every(e,t)}filter(e,t){let r;return(0,g.it)(this._observable),r=2===arguments.length?this._items.filter(e,t):this._items.filter(e),this._createNewInstance({items:r})}find(e,t){return(0,g.it)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,g.it)(this._observable),this._items.findIndex(e,t)}flatten(e,t){(0,g.it)(this._observable);const r=[];return A(r,this,e,t),new c(r)}forEach(e,t){return(0,g.it)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,g.it)(this._observable),this._items[e]}getNextIndex(e){(0,g.it)(this._observable);const t=this.length;return(e=null==e?t:e)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,g.it)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,g.it)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,g.it)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,g.it)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,g.it)(this._observable);const r=this._items.map(e,t);return new c({items:r})}reorder(e,t=this.length-1){(0,g.it)(this._observable);const r=this.indexOf(e);if(-1!==r){if(t<0?t=0:t>=this.length&&(t=this.length-1),r!==t){if(this._emitBeforeChanges(s.MOVE))return e;this._splice(r,1),this._splice(t,0,[e]),this._emitAfterChanges(s.MOVE)}return e}}pop(){if((0,g.it)(this._observable),!this.length||this._emitBeforeChanges(s.REMOVE))return;const e=S(this._splice(this.length-1,1));return this._emitAfterChanges(s.REMOVE),e}push(...e){return(0,g.it)(this._observable),this._emitBeforeChanges(s.ADD)||(this._splice(this.length,0,e),this._emitAfterChanges(s.ADD)),this.length}reduce(e,t){(0,g.it)(this._observable);const r=this._items;return 2===arguments.length?r.reduce(e,t):r.reduce(e)}reduceRight(e,t){(0,g.it)(this._observable);const r=this._items;return 2===arguments.length?r.reduceRight(e,t):r.reduceRight(e)}remove(e){return(0,g.it)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,g.it)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(s.REMOVE))return;const t=S(this._splice(e,1));return this._emitAfterChanges(s.REMOVE),t}removeMany(e){if((0,g.it)(this._observable),!e||!e.length||this._emitBeforeChanges(s.REMOVE))return[];const t=e instanceof c?e.toArray():e,r=this._items,n=[],i=t.length;for(let e=0;e<i;e++){const s=t[e],i=r.indexOf(s);if(i>-1){const s=1+I(t,r,e+1,i+1),o=this._splice(i,s);o&&o.length>0&&n.push.apply(n,o),e+=s-1}}return this._emitAfterChanges(s.REMOVE),n}reverse(){if((0,g.it)(this._observable),this._emitBeforeChanges(s.MOVE))return this;const e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(s.MOVE),this}shift(){if((0,g.it)(this._observable),!this.length||this._emitBeforeChanges(s.REMOVE))return;const e=S(this._splice(0,1));return this._emitAfterChanges(s.REMOVE),e}slice(e=0,t=this.length){return(0,g.it)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,g.it)(this._observable),this._items.some(e,t)}sort(e){if((0,g.it)(this._observable),!this.length||this._emitBeforeChanges(s.MOVE))return this;const t=(0,l.j0)(this._splice(0,this.length));return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(s.MOVE),this}splice(e,t,...r){(0,g.it)(this._observable);const n=(t?s.REMOVE:0)|(r.length?s.ADD:0);if(this._emitBeforeChanges(n))return[];const i=this._splice(e,t,r)||[];return this._emitAfterChanges(n),i}toArray(){return(0,g.it)(this._observable),this._items.slice()}toJSON(){return(0,g.it)(this._observable),this.toArray()}toLocaleString(){return(0,g.it)(this._observable),this._items.toLocaleString()}toString(){return(0,g.it)(this._observable),this._items.toString()}unshift(...e){return(0,g.it)(this._observable),!e.length||this._emitBeforeChanges(s.ADD)||(this._splice(0,0,e),this._emitAfterChanges(s.ADD)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,r){const s=this._items,n=this.itemType;let i,o;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._timer=(0,u.Os)((()=>this._dispatchChange()))),t){if(o=s.splice(e,t),this.hasEventListener("before-remove")){const t=y.acquire();t.target=this,t.cancellable=!0;for(let r=0,n=o.length;r<n;r++)i=o[r],t.reset(i),this.emit("before-remove",t),t.defaultPrevented&&(o.splice(r,1),s.splice(e,0,i),e+=1,r-=1,n-=1);y.release(t)}if(this.length=this._items.length,this.hasEventListener("after-remove")){const e=y.acquire();e.target=this,e.cancellable=!1;const t=o.length;for(let r=0;r<t;r++)e.reset(o[r]),this.emit("after-remove",e);y.release(e)}}if(r&&r.length){if(n){const e=[];for(const t of r){const r=n.ensureType(t);null==r&&null!=t||e.push(r)}r=e}const t=this.hasEventListener("before-add"),i=this.hasEventListener("after-add"),o=e===this.length;if(t||i){const n=y.acquire();n.target=this,n.cancellable=!0;const a=y.acquire();a.target=this,a.cancellable=!1;for(const l of r)t?(n.reset(l),this.emit("before-add",n),n.defaultPrevented||(o?s.push(l):s.splice(e++,0,l),this._set("length",s.length),i&&(a.reset(l),this.emit("after-add",a)))):(o?s.push(l):s.splice(e++,0,l),this._set("length",s.length),a.reset(l),this.emit("after-add",a));y.release(a),y.release(n)}else{if(o)for(const e of r)s.push(e);else s.splice(e,0,...r);this._set("length",s.length)}}return(r&&r.length||o&&o.length)&&this._notifyChangeEvent(r,o),o}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){const r=y.acquire();r.target=this,r.cancellable=!0,r.type=e,this.emit("before-changes",r),t=r.defaultPrevented,y.release(r)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){const t=y.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),y.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),!this._notifications)return;const e=this._notifications;this._notifications=null;for(const t of e){const e=t.changes;C.clear(),k.clear(),x.clear();for(const{added:t,removed:r}of e){if(t)if(0===x.size&&0===k.size)for(const e of t)C.add(e);else for(const e of t)k.has(e)?(x.add(e),k.delete(e)):x.has(e)||C.add(e);if(r)if(0===x.size&&0===C.size)for(const e of r)k.add(e);else for(const e of r)C.has(e)?C.delete(e):(x.delete(e),k.add(e))}const r=i.Z.acquire();C.forEach((e=>{r.push(e)}));const s=i.Z.acquire();k.forEach((e=>{s.push(e)}));const n=this._items,o=t.items,a=i.Z.acquire();if(x.forEach((e=>{o.indexOf(e)!==n.indexOf(e)&&a.push(e)})),t.listeners&&(r.length||s.length||a.length)){const e={target:this,added:r,removed:s,moved:a},n=t.listeners.length;for(let r=0;r<n;r++){const s=t.listeners[r];s.removed||s.callback.call(this,e)}}i.Z.release(r),i.Z.release(s),i.Z.release(a)}C.clear(),k.clear(),x.clear()}};U.ofType=e=>{if(!e)return c;if(O.has(e))return O.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(const r in e.typeMap){const s=e.typeMap[r].prototype.declaredClass;t?t+=` | ${s}`:t=s}let r=class extends c{};return(0,n._)([(0,f.c)({Type:e,ensureType:"function"==typeof e?(0,p.se)(e):(0,p.N7)(e)})],r.prototype,"itemType",void 0),r=(0,n._)([(0,m.j)(`esri.core.Collection<${t}>`)],r),O.set(e,r),r},(0,n._)([(0,d.Cb)()],U.prototype,"length",void 0),(0,n._)([(0,d.Cb)()],U.prototype,"items",null),U=c=(0,n._)([(0,m.j)("esri.core.Collection")],U);const E=U},32448:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var s=r(43697),n=r(15923),i=r(50758),o=r(52011);class a{constructor(){this._emitter=new a.EventEmitter(this)}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}}!function(e){class t{constructor(e=null){this.target=e,this._listenersMap=null}clear(){this._listenersMap&&this._listenersMap.clear(),this._listenersMap=null}emit(e,t){const r=this._listenersMap&&this._listenersMap.get(e);if(!r)return!1;const s=this.target||this;return[...r].forEach((e=>{e.call(s,t)})),r.length>0}on(e,t){if(Array.isArray(e)){const r=e.map((e=>this.on(e,t)));return(0,i.AL)(r)}if(e.indexOf(",")>-1)throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap||(this._listenersMap=new Map);const r=this._listenersMap.get(e)||[];return r.push(t),this._listenersMap.set(e,r),{remove:()=>{const r=this._listenersMap&&this._listenersMap.get(e)||[],s=r.indexOf(t);s>=0&&r.splice(s,1)}}}once(e,t){const r=this.on(e,(e=>{r.remove(),t.call(null,e)}));return r}hasEventListener(e){const t=this._listenersMap&&this._listenersMap.get(e);return null!=t&&t.length>0}}e.EventEmitter=t,e.EventedMixin=e=>{let r=class extends e{constructor(){super(...arguments),this._emitter=new t}destroy(){this._emitter.clear()}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}};return r=(0,s._)([(0,o.j)("esri.core.Evented")],r),r};let r=class extends n.Z{constructor(){super(...arguments),this._emitter=new a.EventEmitter(this)}destroy(){this._emitter.clear()}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}};r=(0,s._)([(0,o.j)("esri.core.Evented")],r),e.EventedAccessor=r}(a||(a={}));const l=a},61247:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var s=r(43697),n=r(15923),i=r(80539),o=r(70586),a=r(5600),l=r(52011);let h=class extends n.Z{constructor(e){super(e),this._groups=new Map}destroy(){this.removeAll()}get size(){let e=0;return this._groups.forEach((t=>{e+=t.length})),e}add(e,t){if(!this._isHandle(e)&&!Array.isArray(e)&&!i.Z.isCollection(e))return this;const r=this._getOrCreateGroup(t);return Array.isArray(e)||i.Z.isCollection(e)?e.forEach((e=>this._isHandle(e)&&r.push(e))):r.push(e),this.notifyChange("size"),this}forEach(e,t){if("function"==typeof e)this._groups.forEach((t=>t.forEach(e)));else{const r=this._getGroup(e);r&&t&&r.forEach(t)}}has(e){return this._groups.has(this._ensureGroupKey(e))}remove(e){if(Array.isArray(e)||i.Z.isCollection(e))return e.forEach(this.remove,this),this;if(!this.has(e))return this;const t=this._getGroup(e);for(let e=0;e<t.length;e++)t[e].remove();return this._deleteGroup(e),this.notifyChange("size"),this}removeAll(){return this._groups.forEach((e=>{for(let t=0;t<e.length;t++)e[t].remove()})),this._groups.clear(),this.notifyChange("size"),this}_isHandle(e){return e&&!!e.remove}_getOrCreateGroup(e){if(this.has(e))return this._getGroup(e);const t=[];return this._groups.set(this._ensureGroupKey(e),t),t}_getGroup(e){return(0,o.j0)(this._groups.get(this._ensureGroupKey(e)))}_deleteGroup(e){return this._groups.delete(this._ensureGroupKey(e))}_ensureGroupKey(e){return e||"_default_"}};(0,s._)([(0,a.Cb)({readOnly:!0})],h.prototype,"size",null),h=(0,s._)([(0,l.j)("esri.core.Handles")],h);const c=h},609:(e,t,r)=>{"use strict";r.d(t,{D:()=>d,v:()=>u});var s,n,i=r(43697),o=r(15923),a=r(70586),l=r(95330),h=r(52011);(n=s||(s={}))[n.PENDING=0]="PENDING",n[n.RESOLVED=1]="RESOLVED",n[n.REJECTED=2]="REJECTED";class c{constructor(e){this.instance=e,this._resolver=(0,l.dD)(),this._status=s.PENDING,this._resolvingPromises=[],this._resolver.promise.then((()=>{this._status=s.RESOLVED,this._cleanUp()}),(()=>{this._status=s.REJECTED,this._cleanUp()}))}addResolvingPromise(e){this._resolvingPromises.push(e),this._tryResolve()}isResolved(){return this._status===s.RESOLVED}isRejected(){return this._status===s.REJECTED}isFulfilled(){return this._status!==s.PENDING}abort(){this._resolver.reject((0,l.zE)())}when(e,t){return this._resolver.promise.then(e,t)}_cleanUp(){this._allPromise=this._resolvingPromises=this._allPromise=null}_tryResolve(){if(this.isFulfilled())return;const e=(0,l.dD)(),t=[...this._resolvingPromises,(0,a.j0)(e.promise)],r=this._allPromise=Promise.all(t);r.then((()=>{this.isFulfilled()||this._allPromise!==r||this._resolver.resolve(this.instance)}),(e=>{this.isFulfilled()||this._allPromise!==r||(0,l.D_)(e)||this._resolver.reject(e)})),e.resolve()}}const u=e=>{let t=class extends e{constructor(...e){super(...e),this._promiseProps=new c(this),this.addResolvingPromise(Promise.resolve())}isResolved(){return this._promiseProps.isResolved()}isRejected(){return this._promiseProps.isRejected()}isFulfilled(){return this._promiseProps.isFulfilled()}when(e,t){return new Promise(((e,t)=>{this._promiseProps.when(e,t)})).then(e,t)}catch(e){return this.when(null,e)}addResolvingPromise(e){e&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in e?e.when():e)}};return t=(0,i._)([(0,h.j)("esri.core.Promise")],t),t};let d=class extends(u(o.Z)){};d=(0,i._)([(0,h.j)("esri.core.Promise")],d)},52421:(e,t,r)=>{"use strict";function s(e){return(t,r)=>{t[r]=e}}r.d(t,{c:()=>s})},91460:(e,t,r)=>{"use strict";function s(e){return e&&("function"==typeof e.on||"function"==typeof e.addEventListener)}function n(e,t,r){if(!s(e))throw new TypeError("target is not a Evented or EventTarget object");if("on"in e)return e.on(t,r);if(Array.isArray(t)){const s=t.slice();for(const t of s)e.addEventListener(t,r);return{remove(){for(const t of s)e.removeEventListener(t,r)}}}return e.addEventListener(t,r),{remove(){e.removeEventListener(t,r)}}}function i(e,t,r){if(!s(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);const i=n(e,t,(t=>{i.remove(),r.call(e,t)}));return{remove(){i.remove()}}}r.d(t,{vT:()=>s,on:()=>n,IH:()=>i})},35454:(e,t,r)=>{"use strict";r.d(t,{X:()=>n,w:()=>i});var s=r(78286);class n{constructor(e,t={ignoreUnknown:!1,useNumericKeys:!1}){this.jsonToAPI=e,this.options=t,this.apiValues=[],this.jsonValues=[],this.apiToJSON=this._invertMap(e),this.apiValues=this._getKeysSorted(this.apiToJSON),this.jsonValues=this._getKeysSorted(this.jsonToAPI),this.read=e=>this.fromJSON(e),this.write=(e,t,r)=>{const n=this.toJSON(e);void 0!==n&&(0,s.RB)(r,n,t)},this.write.isJSONMapWriter=!0}toJSON(e){if(this.apiToJSON.hasOwnProperty(e)){const t=this.apiToJSON[e];return this.options.useNumericKeys?+t:t}return this.options.ignoreUnknown?void 0:e}fromJSON(e){return this.jsonToAPI.hasOwnProperty(e)?this.jsonToAPI[e]:this.options.ignoreUnknown?void 0:e}_invertMap(e){const t={};for(const r in e)t[e[r]]=r;return t}_getKeysSorted(e){const t=[];for(const r in e)t.push(r);return t.sort(),t}}function i(){return function(e,t){return new n(e,{ignoreUnknown:!0,...t})}}},95330:(e,t,r)=>{"use strict";r.d(t,{e4:()=>k,$6:()=>l,Ue:()=>h,zE:()=>c,dD:()=>b,hh:()=>U,vr:()=>E,Ds:()=>T,as:()=>S,WW:()=>I,R8:()=>w,D_:()=>y,Hc:()=>p,y8:()=>x,fu:()=>g,$F:()=>_,d1:()=>A,DB:()=>C,r9:()=>f,k_:()=>u,H9:()=>m,Yn:()=>R,gx:()=>O,Hl:()=>v});const s=(n=globalThis,{setTimeout:(e,t)=>{const r=n.setTimeout(e,t);return{remove:()=>n.clearTimeout(r)}}});var n,i=r(20102),o=r(91460),a=(r(92604),r(70586));function l(e){return Promise.all(e)}function h(e){return new Promise(((t,r)=>{try{e(t,r)}catch(e){Promise.resolve().then((()=>r(e)))}}))}function c(e="Aborted"){return new i.Z("AbortError",e)}function u(e,t="Aborted"){if(p(e))throw c(t)}function d(e){return(0,a.pC)(e)?"aborted"in e?e:e.signal:e}function p(e){const t=d(e);return(0,a.pC)(t)&&t.aborted}function f(e){if(y(e))throw e}function m(e){if(!y(e))throw e}function g(e,t){const r=d(e);if(!(0,a.Wi)(r)){if(!r.aborted)return(0,o.IH)(r,"abort",(()=>t()));t()}}function _(e,t){const r=d(e);if(!(0,a.Wi)(r))return u(r),(0,o.IH)(r,"abort",(()=>t(c())))}function v(e,t){const r=d(t);return(0,a.Wi)(r)?e:new Promise(((r,s)=>{let n=g(t,(()=>s(c())));const i=()=>n=(0,a.hw)(n);e.then(i,i),e.then(r,s)}))}function y(e){return e&&"AbortError"===e.name}function w(e){return e.catch((e=>{if(!y(e))throw e}))}function b(){let e=null;const t=new Promise(((t,r)=>{e={promise:void 0,resolve:t,reject:r}}));return e.promise=t,e}function S(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e);return S(t.map((t=>e[t]))).then((e=>{const r={};return t.forEach(((t,s)=>r[t]=e[s])),r}))}const t=e;return h((e=>{const r=[];let s=t.length;0===s&&e(r),t.forEach((t=>{const n={promise:t||Promise.resolve(t)};r.push(n),n.promise.then((e=>{n.value=e})).catch((e=>{n.error=e})).then((()=>{--s,0===s&&e(r)}))}))}))}function I(e){return S(e).then((e=>e.filter((e=>!!e.value)).map((e=>e.value))))}function A(e){return Promise.reject(e)}function C(e){return Promise.resolve(e)}function k(e,t,r){const s=new AbortController;return g(r,(()=>s.abort())),new Promise(((r,n)=>{let i=setTimeout((()=>{i=0,r(t)}),e);g(s,(()=>{i&&(clearTimeout(i),n(c()))}))}))}function x(e){return e&&"function"==typeof e.then}function O(e){return x(e)?e:Promise.resolve(e)}function T(e,t=-1){let r,s,n,i,o=null;const l=(...h)=>{if(r){s=h,i&&i.reject(c()),i=b();const e=(0,a.j0)(i.promise);if(o){const e=o;o=null,e.abort()}return e}if(n=i||b(),i=null,t>0){const s=new AbortController;r=O(e(...h,s.signal));const n=r;k(t).then((()=>{r===n&&(i?s.abort():o=s)}))}else r=1,r=O(e(...h));const u=()=>{const e=s;s=n=r=o=null,null!=e&&l(...e)},d=r,p=n;return d.then(u,u),d.then(p.resolve,p.reject),(0,a.j0)(p.promise)};return l}function U(){let e,t;const r=new Promise(((r,s)=>{e=r,t=s})),n=t=>{e(t)};return n.resolve=t=>e(t),n.reject=e=>t(e),n.timeout=(e,t)=>s.setTimeout((()=>n.reject(t)),e),n.promise=r,n}function E(e,t){let r,s=new AbortController;const n=e(s.signal);let i={promise:n,finished:!1,abort:()=>{s&&(s.abort(),s=null)}};const o=()=>{i&&(i.finished=!0,i=null),(0,a.pC)(r)&&(r.remove(),r=null),s=null};return n.then(o,o),r=g(t,(()=>{(0,a.pC)(i)&&i.abort()})),i}function R(e){return Promise.resolve().then((()=>{u(e)}))}},17452:(e,t,r)=>{"use strict";r.d(t,{R9:()=>v,qg:()=>T,tD:()=>P,ZN:()=>de,fl:()=>pe,Ie:()=>he,sJ:()=>K,AH:()=>G,io:()=>Q,L:()=>I,TI:()=>S,vt:()=>ae,oh:()=>L,P$:()=>V,Ml:()=>fe,ed:()=>D,b7:()=>O,D6:()=>M,tm:()=>N,YP:()=>z,jc:()=>J,HK:()=>W,$U:()=>re,oC:()=>ee,kl:()=>q,v_:()=>F,hF:()=>B,_l:()=>X,PF:()=>Z,Fv:()=>H,B7:()=>x,u0:()=>C,Yd:()=>oe,Hu:()=>ue,Qj:()=>le,hO:()=>se,mN:()=>A});var s=r(68773),n=r(20102),i=r(92604),o=r(70586);const a=i.Z.getLogger("esri.core.urlUtils"),l=s.Z.request,h="esri/config: esriConfig.request.proxyUrl is not set.",c=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,u=/^\s*http:/i,d=/^\s*https:/i,p=/^\s*file:/i,f=/:\d+$/,m=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,g=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),_=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");class v{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=(0,o.j0)(this.uri.match(g));this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=(0,o.j0)(this.authority.match(_)),this.user=t[3]||null,this.password=t[4]||null,this.host=t[6]||t[7],this.port=t[9]||null)}toString(){return this.uri}}const y={};let w=new v(s.Z.applicationUrl);let b=function(){const e=(0,o.j0)(w.path),t=e.substring(0,e.lastIndexOf(e.split("/")[e.split("/").length-1]));return`${w.scheme}://${w.host}${null!=w.port?`:${w.port}`:""}${t}`}();const S=()=>w,I=()=>b;function A(e){const t={path:null,query:null},r=new v(e),s=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.substring(0,s),t.query=C(r.query)),r.fragment&&(t.hash=r.fragment,null===r.query&&(t.path=t.path.substring(0,t.path.length-(r.fragment.length+1)))),t}function C(e){const t=e.split("&"),r={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let s,n;t<0?(s=decodeURIComponent(e),n=""):(s=decodeURIComponent(e.slice(0,t)),n=decodeURIComponent(e.slice(t+1)));let i=r[s];"string"==typeof i&&(i=r[s]=[i]),Array.isArray(i)?i.push(n):r[s]=n}return r}function k(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}function x(e,t){return e?t&&"function"==typeof t?Object.keys(e).map((r=>encodeURIComponent(r)+"="+encodeURIComponent(t(r,e[r])))).join("&"):Object.keys(e).map((r=>{const s=e[r];if(null==s)return"";const n=encodeURIComponent(r)+"=",i=t&&t[r];return i?n+encodeURIComponent(i(s)):Array.isArray(s)?s.map((e=>k(e)?n+encodeURIComponent(JSON.stringify(e)):n+encodeURIComponent(e))).join("&"):k(s)?n+encodeURIComponent(JSON.stringify(s)):n+encodeURIComponent(s)})).filter((e=>e)).join("&"):""}function O(e=!1){let t,r=l.proxyUrl;if("string"==typeof e){t=re(e);const s=D(e);s&&(r=s.proxyUrl)}else t=!!e;if(!r)throw a.warn(h),new n.Z("urlutils:proxy-not-set",h);return t&&ne()&&(r=se(r)),A(r)}function T(e){const t=D(e);let r,s;if(t){const e=E(t.proxyUrl);r=e.path,s=e.query?C(e.query):null}if(r){const t=A(e);e=r+"?"+t.path;const n=x({...s,...t.query});n&&(e=`${e}?${n}`)}return e}const U={path:"",query:""};function E(e){const t=e.indexOf("?");return-1!==t?(U.path=e.slice(0,t),U.query=e.slice(t+1)):(U.path=e,U.query=null),U}function R(e){return(e=ie(e=function(e){return e&&"/"===e[e.length-1]?e:`${e}/`}(e=E(e).path),!0)).toLowerCase()}function P(e){const t={proxyUrl:e.proxyUrl,urlPrefix:R(e.urlPrefix)},r=l.proxyRules,s=t.urlPrefix;let n=r.length;for(let e=0;e<r.length;e++){const t=r[e].urlPrefix;if(0===s.indexOf(t)){if(s.length===t.length)return-1;n=e;break}0===t.indexOf(s)&&(n=e+1)}return r.splice(n,0,t),n}function D(e){const t=l.proxyRules,r=R(e);for(let e=0;e<t.length;e++)if(0===r.indexOf(t[e].urlPrefix))return t[e]}function N(e,t){return e=j(e),t=j(t),ie(e)===ie(t)}function j(e){const t=(e=H(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function L(e){const t=t=>null==t||t instanceof RegExp&&t.test(e)||"string"==typeof t&&e.startsWith(t),r=l.interceptors;if(r)for(const e of r)if(Array.isArray(e.urls)){if(e.urls.some(t))return e}else if(t(e.urls))return e;return null}function M(e,t,r=!1){const s=ce(e),n=ce(t);return!(!r&&s.scheme!==n.scheme)&&null!=s.host&&null!=n.host&&s.host.toLowerCase()===n.host.toLowerCase()&&s.port===n.port}function q(e){if("string"==typeof e){if(!z(e))return!0;e=ce(e)}if(M(e,w))return!0;const t=l.trustedServers||[];for(let r=0;r<t.length;r++){const s=$(t[r]);for(let t=0;t<s.length;t++)if(M(e,s[t]))return!0}return!1}function $(e){return y[e]||(te(e)||ee(e)?y[e]=[new v(B(e))]:y[e]=[new v(`http://${e}`),new v(`https://${e}`)]),y[e]}function B(e,t=b,r){return ee(e)?r&&r.preserveProtocolRelative?e:"http"===w.scheme&&w.authority===V(e).slice(2)?`http:${e}`:`https:${e}`:te(e)?e:(0,o.j0)(F("/"===e[0]?function(e){const t=e.indexOf("//"),r=e.indexOf("/",t+2);return-1===r?e:e.slice(0,r)}(t):t,e))}function Z(e,t=b,r){if(!z(e))return e;const s=H(e),n=s.toLowerCase(),i=H(t).toLowerCase().replace(/\/+$/,""),o=r?H(r).toLowerCase().replace(/\/+$/,""):null;if(o&&0!==i.indexOf(o))return e;const a=(e,t,r)=>-1===(r=e.indexOf(t,r))?e.length:r;let l=a(n,"/",n.indexOf("//")+2),h=-1;for(;n.slice(0,l+1)===i.slice(0,l)+"/"&&(h=l+1,l!==n.length);)l=a(n,"/",l+1);if(-1===h)return e;if(o&&h<o.length)return e;e=s.slice(h);const c=i.slice(h-1).replace(/[^/]+/g,"").length;if(c>0)for(let t=0;t<c;t++)e=`../${e}`;else e=`./${e}`;return e}function H(e){return function(e){const t=l.httpsDomains;if(!function(e){return u.test(e)||"http"===w.scheme&&ee(e)}(e))return e;const r=e.indexOf("/",7);let s;if(s=-1===r?e:e.slice(0,r),s=s.toLowerCase().slice(7),f.test(s)){if(!s.endsWith(":80"))return e;s=s.slice(0,-3),e=e.replace(":80","")}return"http"===w.scheme&&s===w.authority&&!m.test(e)||(ne()&&s===w.authority||t&&t.some((e=>s===e||s.endsWith(`.${e}`)))||ne()&&!D(e))&&(e=se(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=E(e);e=(e=t.path.replace(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=B(e=e.trim()))))}function F(...e){const t=e.filter(o.pC);if(!t||!t.length)return;const r=[];if(z(t[0])){const e=t[0],s=e.indexOf("//");-1!==s&&(r.push(e.slice(0,s+1)),function(e){return p.test(e)}(t[0])&&(r[0]+="/"),t[0]=e.slice(s+2))}else"/"===t[0][0]&&r.push("");const s=t.reduce(((e,t)=>t?e.concat(t.split("/")):e),[]);for(let e=0;e<s.length;e++){const t=s[e];".."===t&&r.length>0&&".."!==r[r.length-1]?r.pop():(!t&&e===s.length-1||t&&("."!==t||0===r.length))&&r.push(t)}return r.join("/")}function V(e,t=!1){if(J(e)||W(e))return null;let r=e.indexOf("://");if(-1===r&&ee(e))r=2;else{if(-1===r)return null;r+=3}const s=e.indexOf("/",r);return-1!==s&&(e=e.slice(0,s)),t&&(e=ie(e,!0)),e}function z(e){return ee(e)||te(e)}function J(e){return null!=e&&"blob:"===e.slice(0,5)}function W(e){return"data:"===e.slice(0,5)}function G(e){const t=K(e);if(!t||!t.isBase64)return null;const r=atob(t.data),s=new Uint8Array(r.length);for(let e=0;e<r.length;e++)s[e]=r.charCodeAt(e);return s.buffer}const Y=/^data:(.*?)(;base64)?,(.*)$/;function K(e){const t=e.match(Y);if(!t)return null;const[,r,s,n]=t;return{mediaType:r,isBase64:!!s,data:n}}function X(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}function Q(e,t){(function(e,t){if(!e)return!1;const r=document.createElement("a");if(!("download"in r))return!1;const s=URL.createObjectURL(e);return r.download=t,r.href=s,r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(s),!0})(e,t)||function(e,t){!!window.navigator.msSaveOrOpenBlob&&window.navigator.msSaveOrOpenBlob(e,t)}(e,t)}function ee(e){return null!=e&&void 0!==e&&"/"===e[0]&&"/"===e[1]}function te(e){return c.test(e)}function re(e){return d.test(e)||"https"===w.scheme&&ee(e)}function se(e){return ee(e)?`https:${e}`:e.replace(u,"https:")}function ne(){return"https"===w.scheme}function ie(e,t=!1){return ee(e)?e.slice(2):(e=e.replace(c,""),t&&e.length>1&&"/"===e[0]&&"/"===e[1]&&(e=e.slice(2)),e)}function oe(e){let t=0;if(z(e)){const r=e.indexOf("//");-1!==r&&(t=r+2)}const r=e.lastIndexOf("/");return r<t?e:e.slice(0,r+1)}function ae(e,t){if(!e)return"";const r=A(e).path.replace(/\/+$/,""),s=r.substring(r.lastIndexOf("/")+1);if(null==t||!t.length)return s;const n=new RegExp(`.(${t.join("|")})$`,"ig");return s.replace(n,"")}function le(e){return e.replace(/\/+$/,"")}function he(e,t,r){if(!(t&&r&&e&&z(e)))return e;const s=e.indexOf("//"),n=e.indexOf("/",s+2),i=e.indexOf(":",s+2),o=Math.min(n<0?e.length:n,i<0?e.length:i);return e.slice(s+2,o).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,s+2)}${r}${e.slice(o)}`}function ce(e){return"string"==typeof e?new v(B(e)):(e.scheme||(e.scheme=w.scheme),e)}function ue(e,t){const r=A(e),s=Object.keys(r.query||{});return s.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${s.join(", ")}.`),r.path}function de(e,t,r){const s=A(e),n=s.query||{};return n[t]=String(r),`${s.path}?${x(n)}`}function pe(e,t){const r=A(e),s=r.query||{};for(const e in t)s[e]=t[e];const n=x(s);return n?`${r.path}?${n}`:r.path}function fe(e){if((0,o.Wi)(e))return null;const t=e.match(me);return t?t[1]:null}const me=/.*?\.([^\/]*)$/},41123:(e,t,r)=>{"use strict";function s(){const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16);return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}r.d(t,{D:()=>s})},43050:(e,t,r)=>{"use strict";r.d(t,{S1:()=>o,on:()=>u,OY:()=>c,cm:()=>l,N1:()=>a,LR:()=>h,tH:()=>d});var s=r(91460),n=(r(22974),r(95330));const i=/\?(\.|$)/g;function o(e,t,r,s){const n=Array.isArray(t)?t:t.indexOf(",")>-1?t.split(","):[t],o=function(e,t,r,s){return e.watch(t,r,s)}(e,t,r,s);for(const t of n){const s=t.trim().replace(i,"$1"),n=e.get(s);r.call(e,n,n,s,e)}return o}function a(e,t,r,s){return d(e,t,p,r,s)}function l(e,t,r,s){return d(e,t,f,r,s)}function h(e,t,r,s){return d(e,t,m,r,s)}function c(e,t,r,s){return d(e,t,g,r,s)}function u(e,t,r,n,i,a,l){const h={};function c(t){const s=h[t];s&&(a&&a(s.target,t,e,r),s.handle.remove(),delete h[t])}const u=o(e,t,((t,o,a)=>{c(a),(0,s.vT)(t)&&(h[a]={handle:(0,s.on)(t,r,n),target:t},i&&i(t,a,e,r))}),l);return{remove(){u.remove();for(const e in h)c(e)}}}function d(e,t,r,s,i){const o="function"==typeof s?s:null,a="object"==typeof s?s:null;"boolean"==typeof s&&(i=s);let l,h=!1;function c(){l&&(l.remove(),l=null)}const u=(0,n.dD)();(0,n.fu)(a,(()=>{c(),u.reject((0,n.zE)())}));const d={then:u.promise.then.bind(u.promise),catch:u.promise.catch.bind(u.promise),remove:c};return Object.freeze(d),l=function(e,t,r,s,n){const i=e.watch(t,((t,n,i,o)=>{r&&!r(t)||null==s||s.call(e,t,n,i,o)}),n);if(Array.isArray(t))for(const n of t){const i=e.get(n);r&&r(i)&&(null==s||s.call(e,i,i,t,e))}else{const n=e.get(t);r&&r(n)&&(null==s||s.call(e,n,n,t,e))}return i}(e,t,r,((t,r,s,n)=>{h=!0,c(),o&&o.call(e,t,r,s,n),u.resolve({value:t,oldValue:r,propertyName:s,target:n})}),i),h&&c(),d}function p(e){return!!e}function f(e){return!e}function m(e){return!0===e}function g(e){return!1===e}},85976:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>dt});var s=r(40330),n=r(43697),i=r(68773),o=r(3172),a=r(20102),l=r(32448),h=r(91460),c=r(22974),u=r(78286),d=r(95330),p=r(17452),f=r(5600),m=(r(75215),r(52011)),g=(r(67676),r(80442),r(940)),_=(r(2587),r(60235));(()=>{if("function"==typeof Element.prototype.closest)return(e,t)=>e.closest(t);Element.prototype.matches||Element.prototype.msMatchesSelector})();var v=r(61247),y=r(92604),w=r(70586),b=r(609),S=r(41123),I=r(43050),A=r(90578),C=r(58971),k=r(38805),x=r(8728),O=r(3894),T=r(50758);y.Z.getLogger("esri.widgets.support.widgetUtils");function U(e){const t=O.Z.acquire();for(let e=0;e<arguments.length;e++){const r=arguments[e],s=typeof r;if("string"===s)t.push(r);else if(Array.isArray(r))t.push.apply(t,r);else if("object"===s)for(const e in r)r[e]&&t.push(e)}const r=t.join(" ");return O.Z.release(t),r}function E(e){this[e.getAttribute("data-node-ref")]=e}(()=>{const e=new Map;new ResizeObserver((t=>{for(const r of t)e.get(r.target)(r)}))})();const R=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup","animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"].reduce(((e,t)=>(e[t]=[],e)),{}),P=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","class","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],D=new x.Z({whiteList:R,onTagAttr:(e,t,r)=>{const s=`${t}="${r}"`;if(P.includes(t))return s},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0),N="http://www.w3.org/",j=`${N}2000/svg`,L=`${N}1999/xlink`;let M,q=[],$=(e,t)=>{let r={};return Object.keys(e).forEach((t=>{r[t]=e[t]})),t&&Object.keys(t).forEach((e=>{r[e]=t[e]})),r},B=(e,t)=>e.vnodeSelector===t.vnodeSelector&&(e.properties&&t.properties?e.properties.key===t.properties.key&&e.properties.bind===t.properties.bind:!e.properties&&!t.properties),Z=e=>{if("string"!=typeof e)throw new Error("Style values must be strings")},H=(e,t,r)=>{if(""!==t.vnodeSelector)for(let s=r;s<e.length;s++)if(B(e[s],t))return s;return-1},F=(e,t,r,s)=>{let n=e[t];if(""===n.vnodeSelector)return;let i=n.properties;if(!(i?void 0===i.key?i.bind:i.key:void 0))for(let i=0;i<e.length;i++)if(i!==t){let t=e[i];if(B(t,n))throw new Error(`${r.vnodeSelector} had a ${n.vnodeSelector} child ${"added"===s?s:"removed"}, but there is now more than one. You must add unique key properties to make them distinguishable.`)}},V=e=>{if(e.properties){let t=e.properties.enterAnimation;t&&t(e.domNode,e.properties)}},z=[],J=!1,W=e=>{(e.children||[]).forEach(W),e.properties&&e.properties.afterRemoved&&e.properties.afterRemoved.apply(e.properties.bind||e.properties,[e.domNode])},G=()=>{J=!1,z.forEach(W),z.length=0},Y=e=>{z.push(e),J||(J=!0,"undefined"!=typeof window&&"requestIdleCallback"in window?window.requestIdleCallback(G,{timeout:16}):setTimeout(G,16))},K=e=>{let t=e.domNode;if(e.properties){let r=e.properties.exitAnimation;if(r){t.style.pointerEvents="none";let s=()=>{t.parentNode&&(t.parentNode.removeChild(t),Y(e))};return void r(t,s,e.properties)}}t.parentNode&&(t.parentNode.removeChild(t),Y(e))},X=(e,t,r)=>{if(!t)return;let s=r.eventHandlerInterceptor,n=Object.keys(t),i=n.length;for(let o=0;o<i;o++){let i=n[o],a=t[i];if("className"===i)throw new Error('Property "className" is not supported, use "class".');if("class"===i)te(e,a,!0);else if("classes"===i){let t=Object.keys(a),r=t.length;for(let s=0;s<r;s++){let r=t[s];a[r]&&e.classList.add(r)}}else if("styles"===i){let t=Object.keys(a),s=t.length;for(let n=0;n<s;n++){let s=t[n],i=a[s];i&&(Z(i),r.styleApplyer(e,s,i))}}else if("key"!==i&&null!=a){let n=typeof a;"function"===n?(0===i.lastIndexOf("on",0)&&(s&&(a=s(i,a,e,t)),"oninput"===i&&function(){let e=a;a=function(t){e.apply(this,[t]),t.target["oninput-value"]=t.target.value}}()),e[i]=a):r.namespace===j?"href"===i?e.setAttributeNS(L,i,a):e.setAttribute(i,a):"string"===n&&"value"!==i?"innerHTML"===i?e[i]=D.sanitize(a):e.setAttribute(i,a):e[i]=a}}},Q=(e,t,r)=>{((e,t,r)=>{if(t)for(let s of t)ee(s,e,void 0,r)})(e,t.children,r),t.text&&(e.textContent=t.text),X(e,t.properties,r),t.properties&&t.properties.afterCreate&&t.properties.afterCreate.apply(t.properties.bind||t.properties,[e,r,t.vnodeSelector,t.properties,t.children])},ee=(e,t,r,s)=>{let n,i=0,o=e.vnodeSelector,a=t.ownerDocument;if(""===o)n=e.domNode=a.createTextNode(e.text),void 0!==r?t.insertBefore(n,r):t.appendChild(n);else{for(let l=0;l<=o.length;++l){let h=o.charAt(l);if(l===o.length||"."===h||"#"===h){let h=o.charAt(i-1),c=o.slice(i,l);"."===h?n.classList.add(c):"#"===h?n.id=c:("svg"===c&&(s=$(s,{namespace:j})),void 0!==s.namespace?n=e.domNode=a.createElementNS(s.namespace,c):(n=e.domNode=e.domNode||a.createElement(c),"input"===c&&e.properties&&void 0!==e.properties.type&&n.setAttribute("type",e.properties.type)),void 0!==r?t.insertBefore(n,r):n.parentNode!==t&&t.appendChild(n)),i=l+1}}Q(n,e,s)}},te=(e,t,r)=>{t&&t.split(" ").forEach((t=>{t&&e.classList.toggle(t,r)}))};M=(e,t,r)=>{let s=e.domNode,n=!1;if(e===t)return!1;let i=!1;if(""===t.vnodeSelector){if(t.text!==e.text){let e=s.ownerDocument.createTextNode(t.text);return s.parentNode.replaceChild(e,s),t.domNode=e,n=!0,n}t.domNode=s}else 0===t.vnodeSelector.lastIndexOf("svg",0)&&(r=$(r,{namespace:j})),e.text!==t.text&&(i=!0,void 0===t.text?s.removeChild(s.firstChild):s.textContent=t.text),t.domNode=s,i=((e,t,r,s,n)=>{if(r===s)return!1;s=s||q;let i,o=(r=r||q).length,a=s.length,l=0,h=0,c=!1;for(;h<a;){let a=l<o?r[l]:void 0,u=s[h];if(void 0!==a&&B(a,u))c=M(a,u,n)||c,l++;else{let a=H(r,u,l+1);if(a>=0){for(i=l;i<a;i++)K(r[i]),F(r,i,e,"removed");c=M(r[a],u,n)||c,l=a+1}else ee(u,t,l<o?r[l].domNode:void 0,n),V(u),F(s,h,e,"added")}h++}if(o>l)for(i=l;i<o;i++)K(r[i]),F(r,i,e,"removed");return c})(t,s,e.children,t.children,r)||i,i=((e,t,r,s)=>{if(!r)return;let n=!1,i=Object.keys(r),o=i.length;for(let a=0;a<o;a++){let o=i[a],l=r[o],h=t[o];if("class"===o)h!==l&&(te(e,h,!1),te(e,l,!0));else if("classes"===o){let t=e.classList,r=Object.keys(l),s=r.length;for(let e=0;e<s;e++){let s=r[e],i=!!l[s];i!==!!h[s]&&(n=!0,i?t.add(s):t.remove(s))}}else if("styles"===o){let t=Object.keys(l),r=t.length;for(let i=0;i<r;i++){let r=t[i],o=l[r];o!==h[r]&&(n=!0,o?(Z(o),s.styleApplyer(e,r,o)):s.styleApplyer(e,r,""))}}else if(l||"string"!=typeof h||(l=""),"value"===o){let t=e[o];t!==l&&(e["oninput-value"]?t===e["oninput-value"]:l!==h)&&(e[o]=l,e["oninput-value"]=void 0),l!==h&&(n=!0)}else if(l!==h){let t=typeof l;"function"===t&&s.eventHandlerInterceptor||(s.namespace===j?"href"===o?e.setAttributeNS(L,o,l):e.setAttribute(o,l):"string"===t?"innerHTML"===o?e[o]=D.sanitize(l):"role"===o&&""===l?e.removeAttribute(o):e.setAttribute(o,l):e[o]!==l&&(e[o]=l),n=!0)}}return n})(s,e.properties,t.properties,r)||i,t.properties&&t.properties.afterUpdate&&t.properties.afterUpdate.apply(t.properties.bind||t.properties,[s,r,t.vnodeSelector,t.properties,t.children]);return i&&t.properties&&t.properties.updateAnimation&&t.properties.updateAnimation(s,t.properties,e.properties),n};let re=(e,t)=>({getLastRender:()=>e,update:r=>{if(e.vnodeSelector!==r.vnodeSelector)throw new Error("The selector for the root VNode may not be changed. (consider using dom.merge and add one extra level to the virtual DOM)");let s=e;e=r,M(s,r,t)},domNode:e.domNode});const se={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(e,t,r)=>{"-"===t.charAt(0)?e.style.setProperty(t,r):e.style[t]=r}};let ne,ie=e=>$(se,e),oe=(e,t,r)=>(r=ie(r),ee(t,e,void 0,r),re(t,r)),ae=(e,t,r)=>(r=ie(r),ee(t,e.parentNode,e,r),re(t,r)),le=(e,t,r)=>(r=ie(r),t.domNode=e,Q(e,t,r),re(t,r)),he=(e,t,r)=>(r=ie(r),ee(t,e.parentNode,e,r),e.parentNode.removeChild(e),re(t,r));ne=Array.prototype.find?(e,t)=>e.find(t):(e,t)=>e.filter(t)[0];const ce={handleInterceptedEvent:(e,t,r,s)=>(e.scheduleRender(),t.properties[`on${s.type}`].apply(t.properties.bind||r,[s]))},ue={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(e,t,r)=>{e.style[t]=r}},de=(e,t,r=!1)=>{let s=e;return t.forEach(((e,n)=>{var i;const o=null!=(i=s)&&i.children?((e,t)=>e.find(t))(s.children,(t=>t.domNode===e)):void 0;r&&!o&&n!==t.length-1||(s=o)})),s};var pe=r(77210),fe=r(99880);let me;me="components/assets";const ge=Symbol("widget"),_e=[],ve={},ye=new WeakMap;function we(e,t){let r=t.children;if(r&&r.length)for(let t=0;t<r.length;++t)r[t]=we(e,r[t]);else r=_e;const s=t.vnodeSelector;if(Ae(s)){const n=t.properties||ve,i=n.key||s;return{vnodeSelector:"div",properties:{key:i,afterCreate:be,afterUpdate:Se,afterRemoved:Ie,parentWidget:e,widgetConstructor:s,widgetProperties:{...n,key:i,children:r}},children:void 0,text:void 0,domNode:null}}return t}function be(e,t,r,{parentWidget:s,widgetConstructor:n,widgetProperties:i}){const o=new n(i);o.container=e,ye.set(e,o),null==o.afterCreate||o.afterCreate(o,e),s._internalHandles.add((0,T.kB)((()=>Ie(e))))}function Se(e,t,r,{widgetProperties:s}){const n=ye.get(e);n&&(n.set(s),null==n.afterUpdate||n.afterUpdate(n,e))}function Ie(e){const t=ye.get(e);t&&(t.destroy(),ye.delete(e))}function Ae(e){return"function"==typeof e&&e[ge]}var Ce=r(70171),ke=r(94443);const xe="esri.widgets.Widget",Oe=y.Z.getLogger(xe);let Te=0;const Ue=new Map;function Ee(e,t){for(const r in t)null!=e[r]&&("object"==typeof e[r]&&"object"==typeof t[r]?Ee(e[r],t[r]):e[r]=t[r]);return e}const Re=(e=>{let t;const r={...ce,...e},s=(i=r,{...ue,...i}),n=s.performanceLogger;var i;let o,a=!0,l=!1;const h=[],c=[],u=(e,i,o)=>{let a;s.eventHandlerInterceptor=(e,s,i,o)=>function(e){let s;n("domEvent",e);const i=((e,t)=>{const r=[];for(;e&&e!==t;)r.push(e),e=e.parentNode;return r})(e.currentTarget,a.domNode),o=i.some((e=>{var t;return customElements.get(null==e||null==(t=e.tagName)?void 0:t.toLowerCase())}));if(e.eventPhase!==Event.CAPTURING_PHASE&&o){const t=e.composedPath(),r=t.slice(t.indexOf(e.currentTarget),t.indexOf(a.domNode)).filter((e=>e.getRootNode()===e.ownerDocument)).reverse();s=de(a.getLastRender(),r,!0)}else i.reverse(),s=de(a.getLastRender(),i);let l;return s&&(l=r.handleInterceptedEvent(t,s,this,e)),n("domEventProcessed",e),l},null==r.postProcessProjectionOptions||r.postProcessProjectionOptions(s);const l=o();a=e(i,l,s),h.push(a),c.push(o),r.afterFirstVNodeRendered&&r.afterFirstVNodeRendered(a,l)};let d=()=>{if(o=void 0,a){a=!1,n("renderStart",void 0);for(let e=0;e<h.length;e++){const t=c[e]();n("rendered",void 0),h[e].update(t),n("patched",void 0)}n("renderDone",void 0),a=!0}};return r.modifyDoRenderImplementation&&(d=r.modifyDoRenderImplementation(d,h,c)),t={renderNow:d,scheduleRender:()=>{o||l||(o=requestAnimationFrame(d))},stop:()=>{o&&(cancelAnimationFrame(o),o=void 0),l=!0},resume:()=>{l=!1,a=!0,t.scheduleRender()},append:(e,t)=>{u(oe,e,t)},insertBefore:(e,t)=>{u(ae,e,t)},merge:(e,t)=>{u(le,e,t)},replace:(e,t)=>{u(he,e,t)},detach:e=>{for(let t=0;t<c.length;t++)if(c[t]===e)return c.splice(t,1),h.splice(t,1)[0];throw new Error("renderFunction was not found")}},t})({postProcessProjectionOptions(e){const t=e.eventHandlerInterceptor,r=/capture$/i;e.eventHandlerInterceptor=(e,s,n,i)=>{const o=t(e,s,n,i),a=r.test(e);if(!((e=e.replace(r,"")).toLowerCase()in n)||a){const t=e[2].toLowerCase()+e.slice(3),r=e=>o.call(n,e);n.addEventListener(t,r,a);const s=()=>n.removeEventListener(t,r,a),l=i.afterRemoved;i.afterRemoved=e=>{null==l||l(e),s()}}return o}},handleInterceptedEvent(e,t,r,s){const{eventPhase:n,type:i}=s,o=n===Event.CAPTURING_PHASE;let a=`on${i}${o?"capture":""}`;const l=t.properties;(a in l||(a=`on${i[0].toUpperCase()}${i.slice(1)}${o?"Capture":""}`,a in l))&&(Ue.clear(),e.scheduleRender(),l[a].call(l.bind||r,s))}});let Pe=!1,De=class extends((0,b.v)(l.Z.EventedAccessor)){constructor(e,t){super(e,t),this._attached=!1,this._internalHandles=new v.Z,this._projector=Re,this._readyForTrueRender=!1,this.domNode=null,this.iconClass="esri-icon-checkbox-unchecked",this.label=this.declaredClass.split(".").pop(),this.visible=!0,this.key=this,this._loadLocale=(0,d.Ds)((async()=>{if(this._messageBundleProps&&this._messageBundleProps.length){const e=await(0,d.as)(this._messageBundleProps.map((async({bundlePath:e,propertyName:t})=>{let r=await(0,ke.ME)(e);this.uiStrings&&Object.keys(this.uiStrings)&&(r=Ee((0,c.d9)(r),this.uiStrings)),this[t]=r})));for(const t of e)t.error&&Oe.error("widget-intl:locale-error",this.declaredClass,t.error)}await this.loadLocale()})),(0,pe.YY)((0,p.hF)((0,fe.V)("components/assets")));const r=getComputedStyle(document.body).getPropertyValue("--esri-calcite-theme-name").replace(/\s|'|"/g,"")||"light";["light","dark"].includes(r)||(0,_.x9)(Oe,"The following themes are deprecated: light-blue, dark-blue, light-green, dark-green, light-purple, dark-purple, light-red, and dark-red.",{version:"4.19",warnOnce:!0,see:"https://developers.arcgis.com/javascript/latest/styling/"});const s="esri-widget-uid-"+(0,S.D)(),n=this.render.bind(this);this._trackingTarget=new k.M((()=>this.scheduleRender()));const i=()=>{var e;if(!this._readyForTrueRender||this.destroyed)return null;if(!this.visible)return{vnodeSelector:"div",properties:{key:s,class:"",styles:{display:"none"}},domNode:void 0,children:void 0,text:void 0};const t=n();let{properties:r}=t;r||(t.properties=r={});let{key:i,styles:o}=r;i||(r.key=s),o||(r.styles=o={}),o.display||(o.display="");let a=0;return null==(e=t.children)||e.forEach((e=>{if(Ae(e.vnodeSelector))return;let{properties:t}=e;t||(e.properties=t={}),t.key||(t.key=`${this.id}--${a++}`)})),we(this,t)};this.render=()=>{if(Pe)return i();let e=Ue.get(this);if(e)return e;this._trackingTarget.clear(),Pe=!0;try{e=(0,C.LJ)(this._trackingTarget,i)}finally{Pe=!1}return Ue.set(this,e),e},this.addResolvingPromise(this._resourcesFetch=this.beforeFirstRender().then((()=>{this._readyForTrueRender=!0,this._postInitialize()})))}normalizeCtorArgs(e,t){const r={...e};return t&&(r.container=t),r}postInitialize(){}beforeFirstRender(){return Promise.all([this.loadDependencies(),this._loadLocale()]).then((()=>{})).catch(d.H9)}async loadDependencies(){}async loadLocale(){}destroy(){this.destroyed||(this._trackingTarget=(0,w.SC)(this._trackingTarget),this.viewModel=(0,w.SC)(this.viewModel),this._detach(this.container),this._set("container",null),this._internalHandles.destroy(),this._emitter.clear(),this.render=()=>null,this._projector=null,Ue.delete(this))}set container(e){this._get("container")||this._set("container",e)}castContainer(e){return function(e){return"string"==typeof e?document.getElementById(e):e}(e)}get id(){return this._get("id")||this.get("container.id")||Date.now().toString(16)+"-widget-"+Te++}set id(e){e&&this._set("id",e)}get renderable(){return this._resourcesFetch}get test(){return{projector:this._projector,handles:this._internalHandles}}render(){throw new Error("not implemented")}scheduleRender(){this.destroyed||(Ue.delete(this),this._projector.scheduleRender())}classes(...e){return U.apply(this,e)}own(e){arguments.length>1&&(e=Array.prototype.slice.call(arguments)),this._internalHandles.add(e)}renderNow(){Ue.delete(this),this._projector.renderNow()}_postInitialize(){var e;if(this.destroyed)return;this.scheduleRender(),null!=(e=this._delegatedEventNames)&&e.length&&this._internalHandles.add((0,I.S1)(this,"viewModel",((e,t)=>{t&&this._internalHandles.remove("delegated-events"),e&&this._internalHandles.add(this._delegatedEventNames.map((t=>e.on(t,(e=>{this.emit(t,e)})))),"delegated-events")}))),this.postInitialize();const t=async()=>{await this._loadLocale().catch(d.H9),this.scheduleRender()};this._internalHandles.add([(0,Ce.qe)(t),this.watch("uiStrings",t),(0,I.N1)(this,"container",(async e=>{this.destroyed||this._attach(e)}))])}_attach(e){e&&(this._projector.merge(e,this.render),this._attached=!0)}_detach(e){e&&this._attached&&(this._projector.detach(this.render),e.parentNode&&e.parentNode.removeChild(e),this._attached=!1)}};De[ge]=!0,(0,n._)([(0,f.Cb)()],De.prototype,"_readyForTrueRender",void 0),(0,n._)([(0,f.Cb)({value:null})],De.prototype,"container",null),(0,n._)([(0,A.p)("container")],De.prototype,"castContainer",null),(0,n._)([(0,f.Cb)({aliasOf:"container"})],De.prototype,"domNode",void 0),(0,n._)([(0,f.Cb)()],De.prototype,"iconClass",void 0),(0,n._)([(0,f.Cb)()],De.prototype,"id",null),(0,n._)([(0,f.Cb)()],De.prototype,"label",void 0),(0,n._)([(0,f.Cb)()],De.prototype,"renderable",null),(0,n._)([(0,f.Cb)()],De.prototype,"uiStrings",void 0),(0,n._)([(0,f.Cb)()],De.prototype,"viewModel",void 0),(0,n._)([(0,f.Cb)()],De.prototype,"visible",void 0),(0,n._)([(0,f.Cb)()],De.prototype,"key",void 0),(0,n._)([(0,f.Cb)()],De.prototype,"children",void 0),(0,n._)([(0,f.Cb)()],De.prototype,"afterCreate",void 0),(0,n._)([(0,f.Cb)()],De.prototype,"afterUpdate",void 0),(0,n._)([(0,f.Cb)()],De.prototype,"afterRemoved",void 0),De=(0,n._)([(0,m.j)(xe)],De);const Ne=De;function je(e){return function(t,r){t.hasOwnProperty("_messageBundleProps")||(t._messageBundleProps=t._messageBundleProps?t._messageBundleProps.slice():[]),t._messageBundleProps.push({bundlePath:e,propertyName:r})}}var Le=function(e){return{vnodeSelector:"",properties:void 0,children:void 0,text:e.toString(),domNode:null}},Me=function(e,t){for(var r=0,s=e.length;r<s;r++){var n=e[r];Array.isArray(n)?Me(n,t):null!=n&&!1!==n&&(n.hasOwnProperty("vnodeSelector")||(n=Le(n)),t.push(n))}};function qe(e,t,...r){return"function"!=typeof e||Ae(e)?function(e,t){for(var r=[],s=2;s<arguments.length;s++)r[s-2]=arguments[s];if(1===r.length&&"string"==typeof r[0])return{vnodeSelector:e,properties:t||void 0,children:void 0,text:r[0],domNode:null};var n=[];return Me(r,n),{vnodeSelector:e,properties:t||void 0,children:n,text:void 0,domNode:null}}(e,t,...r):e(t,...r)}const $e="esri-identity-form__group",Be="esri-identity-form__label",Ze="esri-input",He="esri-button";let Fe=class extends Ne{constructor(e,t){super(e,t),this._usernameInputNode=null,this._passwordInputNode=null,this.messages=null,this.signingIn=!1,this.server=null,this.resource=null,this.error=null,this.oAuthPrompt=!1}render(){const{error:e,server:t,resource:r,signingIn:s,oAuthPrompt:n,messages:i}=this,o=qe("div",{class:$e},(0,g.n)(n?i.oAuthInfo:i.info,{server:/\.arcgis\.com/i.test(t)?"ArcGIS Online":t,resource:`(${r||i.lblItem})`})),a=n?null:qe("div",{class:$e,key:"username"},qe("label",{class:Be},i.lblUser,qe("input",{value:"",required:!0,autocomplete:"off",spellcheck:!1,type:"text",bind:this,afterCreate:E,"data-node-ref":"_usernameInputNode",class:Ze}))),l=n?null:qe("div",{class:$e,key:"password"},qe("label",{class:Be},i.lblPwd,qe("input",{value:"",required:!0,type:"password",bind:this,afterCreate:E,"data-node-ref":"_passwordInputNode",class:Ze}))),h=qe("div",{class:this.classes($e,"esri-identity-form__footer")},qe("input",{type:"submit",disabled:!!s,value:s?i.lblSigning:i.lblOk,class:He}),qe("input",{type:"button",value:i.lblCancel,bind:this,onclick:this._cancel,class:this.classes(He,"esri-button--secondary")})),c=e?qe("div",null,e.details&&e.details.httpStatus?i.invalidUser:i.noAuthService):null;return qe("form",{class:"esri-identity-form",bind:this,onsubmit:this._submit},o,c,a,l,h)}_cancel(){this._set("signingIn",!1),this._usernameInputNode&&(this._usernameInputNode.value=""),this._passwordInputNode&&(this._passwordInputNode.value=""),this.emit("cancel")}_submit(e){e.preventDefault(),this._set("signingIn",!0);const t=this.oAuthPrompt?{}:{username:this._usernameInputNode&&this._usernameInputNode.value,password:this._passwordInputNode&&this._passwordInputNode.value};this.emit("submit",t)}};(0,n._)([(0,f.Cb)(),je("esri/identity/t9n/identity")],Fe.prototype,"messages",void 0),(0,n._)([(0,f.Cb)()],Fe.prototype,"signingIn",void 0),(0,n._)([(0,f.Cb)()],Fe.prototype,"server",void 0),(0,n._)([(0,f.Cb)()],Fe.prototype,"resource",void 0),(0,n._)([(0,f.Cb)()],Fe.prototype,"error",void 0),(0,n._)([(0,f.Cb)()],Fe.prototype,"oAuthPrompt",void 0),Fe=(0,n._)([(0,m.j)("esri.identity.IdentityForm")],Fe);const Ve=Fe;var ze=r(44291);const Je="esri-identity-modal__content";let We=class extends Ne{constructor(e,t){super(e,t),this.container=document.createElement("div"),this.content=null,this.open=!1,this._close=()=>{this.open=!1},document.body.appendChild(this.container),this.own(this.watch("open",(()=>this._toggleFocusTrap())))}destroy(){this._destroyFocusTrap()}render(){const e=this.id,{open:t,content:r,title:s,messages:n}=this,i=t&&!!r,o={"esri-identity-modal--open":i,"esri-identity-modal--closed":!i},a=qe("button",{class:"esri-identity-modal__close-button","aria-label":n.close,title:n.close,bind:this,onclick:this._close},qe("span",{"aria-hidden":"true",class:"esri-icon-close"})),l=`${e}_title`,h=`${e}_content`,c=s?qe("h1",{id:l,class:"esri-identity-modal__title"},s):null,u=i?qe("div",{bind:this,class:"esri-identity-modal__dialog",role:"dialog","aria-labelledby":l,"aria-describedby":h,afterCreate:this._createFocusTrap},a,c,this._renderContent(h)):null;return qe("div",{tabIndex:-1,class:this.classes("esri-identity-modal",o)},u)}_destroyFocusTrap(){var e;null==(e=this._focusTrap)||e.deactivate({onDeactivate:null}),this._focusTrap=null}_toggleFocusTrap(){const{_focusTrap:e,open:t}=this;e&&(t?e.activate():e.deactivate())}_createFocusTrap(e){this._destroyFocusTrap();const t=requestAnimationFrame((()=>{this._focusTrap=(0,ze.v)(e,{initialFocus:"input",onDeactivate:this._close}),this._toggleFocusTrap()}));this.own((0,T.kB)((()=>cancelAnimationFrame(t))))}_renderContent(e){const t=this.content;return"string"==typeof t?qe("div",{class:Je,id:e,innerHTML:t}):function(e){return e&&"function"==typeof e.render}(t)?qe("div",{class:Je,id:e},t.render()):t instanceof HTMLElement?qe("div",{class:Je,id:e,bind:t,afterCreate:this._attachToNode}):null}_attachToNode(e){e.appendChild(this)}};(0,n._)([(0,f.Cb)({readOnly:!0})],We.prototype,"container",void 0),(0,n._)([(0,f.Cb)()],We.prototype,"content",void 0),(0,n._)([(0,f.Cb)()],We.prototype,"open",void 0),(0,n._)([(0,f.Cb)(),je("esri/t9n/common")],We.prototype,"messages",void 0),(0,n._)([(0,f.Cb)({aliasOf:"messages.auth.signIn"})],We.prototype,"title",void 0),We=(0,n._)([(0,m.j)("esri.identity.IdentityModal")],We);const Ge=We,Ye="esriJSAPIOAuth";class Ke{constructor(e,t){this.oAuthInfo=null,this.storage=null,this.appId=null,this.expires=null,this.ssl=null,this.token=null,this.userId=null,this.oAuthInfo=e,this.storage=t,this._init()}isValid(){let e=!1;if(this.oAuthInfo&&this.token&&this.userId){const t=Date.now();this.expires>t&&(this.expires-t)/1e3>60*this.oAuthInfo.minTimeUntilExpiration&&(e=!0)}return e}save(){if(!this.storage)return;const e=this._load(),t=this.oAuthInfo;if(t&&t.authNamespace&&t.portalUrl){let r=e[t.authNamespace];r||(r=e[t.authNamespace]={}),r[t.portalUrl]={appId:this.appId=t.appId,expires:this.expires,ssl:this.ssl,token:this.token,userId:this.userId};try{this.storage.setItem(Ye,JSON.stringify(e))}catch(e){console.log(e)}}}destroy(){const e=this._load(),t=this.oAuthInfo;if(t&&t.appId&&t.portalUrl&&this.token&&this.expires>Date.now()){const e=t.portalUrl.replace(/^http:/i,"https:")+"/sharing/rest/oauth2/revokeToken",r=new FormData;if(r.append("f","json"),r.append("auth_token",this.token),r.append("client_id",t.appId),r.append("token_type_hint","access_token"),"function"==typeof navigator.sendBeacon)navigator.sendBeacon(e,r);else{const t=new XMLHttpRequest;t.open("POST",e),t.send(r)}}if(t&&t.authNamespace&&t.portalUrl&&this.storage){const r=e[t.authNamespace];if(r){delete r[t.portalUrl];try{this.storage.setItem(Ye,JSON.stringify(e))}catch(e){console.log(e)}}}t&&(t._oAuthCred=null,this.oAuthInfo=null)}_init(){const e=this._load(),t=this.oAuthInfo;if(t&&t.authNamespace&&t.portalUrl){let r=e[t.authNamespace];r&&(r=r[t.portalUrl],r&&(this.appId=r.appId,this.expires=r.expires,this.ssl=r.ssl,this.token=r.token,this.userId=r.userId))}}_load(){let e={};if(this.storage){const t=this.storage.getItem(Ye);if(t)try{e=JSON.parse(t)}catch(e){console.log(e)}}return e}}Ke.prototype.declaredClass="esri.identity.OAuthCredential";var Xe,Qe=r(96674);let et=Xe=class extends Qe.wq{constructor(e){super(e),this._oAuthCred=null,this.appId=null,this.authNamespace="/",this.expiration=20160,this.forceLogin=!1,this.forceUserId=!1,this.locale=null,this.minTimeUntilExpiration=30,this.popup=!1,this.popupCallbackUrl="oauth-callback.html",this.popupWindowFeatures="height=490,width=800,resizable,scrollbars,status",this.portalUrl="https://www.arcgis.com",this.preserveUrlHash=!1,this.userId=null}clone(){return Xe.fromJSON(this.toJSON())}};(0,n._)([(0,f.Cb)({json:{write:!0}})],et.prototype,"appId",void 0),(0,n._)([(0,f.Cb)({json:{write:!0}})],et.prototype,"authNamespace",void 0),(0,n._)([(0,f.Cb)({json:{write:!0}})],et.prototype,"expiration",void 0),(0,n._)([(0,f.Cb)({json:{write:!0}})],et.prototype,"forceLogin",void 0),(0,n._)([(0,f.Cb)({json:{write:!0}})],et.prototype,"forceUserId",void 0),(0,n._)([(0,f.Cb)({json:{write:!0}})],et.prototype,"locale",void 0),(0,n._)([(0,f.Cb)({json:{write:!0}})],et.prototype,"minTimeUntilExpiration",void 0),(0,n._)([(0,f.Cb)({json:{write:!0}})],et.prototype,"popup",void 0),(0,n._)([(0,f.Cb)({json:{write:!0}})],et.prototype,"popupCallbackUrl",void 0),(0,n._)([(0,f.Cb)({json:{write:!0}})],et.prototype,"popupWindowFeatures",void 0),(0,n._)([(0,f.Cb)({json:{write:!0}})],et.prototype,"portalUrl",void 0),(0,n._)([(0,f.Cb)({json:{write:!0}})],et.prototype,"preserveUrlHash",void 0),(0,n._)([(0,f.Cb)({json:{write:!0}})],et.prototype,"userId",void 0),et=Xe=(0,n._)([(0,m.j)("esri.identity.OAuthInfo")],et);const tt=et;let rt=class extends Qe.wq{constructor(e){super(e),this.adminTokenServiceUrl=null,this.currentVersion=null,this.hasPortal=null,this.hasServer=null,this.owningSystemUrl=null,this.owningTenant=null,this.server=null,this.shortLivedTokenValidity=null,this.tokenServiceUrl=null,this.webTierAuth=null}};(0,n._)([(0,f.Cb)({json:{write:!0}})],rt.prototype,"adminTokenServiceUrl",void 0),(0,n._)([(0,f.Cb)({json:{write:!0}})],rt.prototype,"currentVersion",void 0),(0,n._)([(0,f.Cb)({json:{write:!0}})],rt.prototype,"hasPortal",void 0),(0,n._)([(0,f.Cb)({json:{write:!0}})],rt.prototype,"hasServer",void 0),(0,n._)([(0,f.Cb)({json:{write:!0}})],rt.prototype,"owningSystemUrl",void 0),(0,n._)([(0,f.Cb)({json:{write:!0}})],rt.prototype,"owningTenant",void 0),(0,n._)([(0,f.Cb)({json:{write:!0}})],rt.prototype,"server",void 0),(0,n._)([(0,f.Cb)({json:{write:!0}})],rt.prototype,"shortLivedTokenValidity",void 0),(0,n._)([(0,f.Cb)({json:{write:!0}})],rt.prototype,"tokenServiceUrl",void 0),(0,n._)([(0,f.Cb)({json:{write:!0}})],rt.prototype,"webTierAuth",void 0),rt=(0,n._)([(0,m.j)("esri.identity.ServerInfo")],rt);const st=rt,nt={},it=e=>{const t=new p.R9(e.owningSystemUrl).host,r=new p.R9(e.server).host,s=/.+\.arcgis\.com$/i;return s.test(t)&&s.test(r)},ot=(e,t)=>!!(it(e)&&t&&t.some((t=>t.test(e.server))));let at=null,lt=null;try{at=window.localStorage,lt=window.sessionStorage}catch{}class ht extends l.Z{constructor(){super(),this._portalConfig=globalThis.esriGeowConfig,this.serverInfos=[],this.oAuthInfos=[],this.credentials=[],this._soReqs=[],this._xoReqs=[],this._portals=[],this.defaultOAuthInfo=null,this.defaultTokenValidity=60,this.dialog=null,this.formConstructor=Ve,this.tokenValidity=null,this.normalizeWebTierAuth=!1,this._appOrigin="null"!==window.origin?window.origin:window.location.origin,this._appUrlObj=(0,p.mN)(window.location.href),this._busy=null,this._rejectOnPersistedPageShow=!1,this._oAuthHash=null,this._gwTokenUrl="/sharing/rest/generateToken",this._agsRest="/rest/services",this._agsPortal=/\/sharing(\/|$)/i,this._agsAdmin=/(https?:\/\/[^\/]+\/[^\/]+)\/admin\/?(\/.*)?$/i,this._adminSvcs=/\/rest\/admin\/services(\/|$)/i,this._gwDomains=[{regex:/^https?:\/\/www\.arcgis\.com/i,customBaseUrl:"maps.arcgis.com",tokenServiceUrl:"https://www.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/(?:dev|[a-z\d-]+\.mapsdev)\.arcgis\.com/i,customBaseUrl:"mapsdev.arcgis.com",tokenServiceUrl:"https://dev.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/(?:devext|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,customBaseUrl:"mapsdevext.arcgis.com",tokenServiceUrl:"https://devext.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/(?:qaext|[a-z\d-]+\.mapsqa)\.arcgis\.com/i,customBaseUrl:"mapsqa.arcgis.com",tokenServiceUrl:"https://qaext.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/[a-z\d-]+\.maps\.arcgis\.com/i,customBaseUrl:"maps.arcgis.com",tokenServiceUrl:"https://www.arcgis.com/sharing/rest/generateToken"}],this._legacyFed=[],this._regexSDirUrl=/http.+\/rest\/services\/?/gi,this._regexServerType=/(\/(FeatureServer|GPServer|GeoDataServer|GeocodeServer|GeoenrichmentServer|GeometryServer|GlobeServer|ImageServer|MapServer|MobileServer|NAServer|NetworkDiagramServer|OGCFeatureServer|ParcelFabricServer|RelationalCatalogServer|SceneServer|StreamServer|UtilityNetworkServer|ValidationServer|VectorTileServer|VersionManagementServer)).*/gi,this._gwUser=/http.+\/users\/([^\/]+)\/?.*/i,this._gwItem=/http.+\/items\/([^\/]+)\/?.*/i,this._gwGroup=/http.+\/groups\/([^\/]+)\/?.*/i,this._rePortalTokenSvc=/\/sharing(\/rest)?\/generatetoken/i,this._createDefaultOAuthInfo=!0,this._hasTestedIfAppIsOnPortal=!1,this._getOAuthHash(),window.addEventListener("pageshow",(e=>{this._pageShowHandler(e)}))}registerServers(e){const t=this.serverInfos;t?(e=e.filter((e=>!this.findServerInfo(e.server))),this.serverInfos=t.concat(e)):this.serverInfos=e,e.forEach((e=>{e.owningSystemUrl&&this._portals.push(e.owningSystemUrl),e.hasPortal&&this._portals.push(e.server)}))}registerOAuthInfos(e){const t=this.oAuthInfos;if(t){for(const r of e){const e=this.findOAuthInfo(r.portalUrl);e&&t.splice(t.indexOf(e),1)}this.oAuthInfos=t.concat(e)}else this.oAuthInfos=e}registerToken(e){e={...e};const t=this._sanitizeUrl(e.server),r=this._isServerRsrc(t);let s,n=this.findServerInfo(t),i=!0;n||(n=new st,n.server=this._getServerInstanceRoot(t),r?n.hasServer=!0:(n.tokenServiceUrl=this._getTokenSvcUrl(t),n.hasPortal=!0),this.registerServers([n])),s=this._findCredential(t),s?(delete e.server,Object.assign(s,e),i=!1):(s=new ct({userId:e.userId,server:n.server,token:e.token,expires:e.expires,ssl:e.ssl,scope:r?"server":"portal"}),s.resources=[t],this.credentials.push(s)),s.emitTokenChange(!1),i||s.refreshServerTokens()}toJSON(){return(0,c.yd)({serverInfos:this.serverInfos.map((e=>e.toJSON())),oAuthInfos:this.oAuthInfos.map((e=>e.toJSON())),credentials:this.credentials.map((e=>e.toJSON()))})}initialize(e){if(!e)return;"string"==typeof e&&(e=JSON.parse(e));const t=e.serverInfos,r=e.oAuthInfos,s=e.credentials;if(t){const e=[];t.forEach((t=>{t.server&&t.tokenServiceUrl&&e.push(t.declaredClass?t:new st(t))})),e.length&&this.registerServers(e)}if(r){const e=[];r.forEach((t=>{t.appId&&e.push(t.declaredClass?t:new tt(t))})),e.length&&this.registerOAuthInfos(e)}s&&s.forEach((e=>{e.server&&e.token&&e.expires&&e.expires>Date.now()&&((e=e.declaredClass?e:new ct(e)).emitTokenChange(),this.credentials.push(e))}))}findServerInfo(e){let t;e=this._sanitizeUrl(e);for(const r of this.serverInfos)if(this._hasSameServerInstance(r.server,e)){t=r;break}return t}findOAuthInfo(e){let t;e=this._sanitizeUrl(e);for(const r of this.oAuthInfos)if(this._hasSameServerInstance(r.portalUrl,e)){t=r;break}return t}findCredential(e,t){let r;e=this._sanitizeUrl(e);const s=this._isServerRsrc(e)?"server":"portal";if(t){for(const n of this.credentials)if(this._hasSameServerInstance(n.server,e)&&t===n.userId&&n.scope===s){r=n;break}}else for(const t of this.credentials)if(this._hasSameServerInstance(t.server,e)&&-1!==this._getIdenticalSvcIdx(e,t)&&t.scope===s){r=t;break}return r}getCredential(e,t){let r,s,n=!0;t&&(r=!!t.token,s=t.error,n=!1!==t.prompt),t={...t},e=this._sanitizeUrl(e);const i=new AbortController,o=(0,d.hh)();if(t.signal&&(0,d.fu)(t.signal,(()=>{i.abort()})),(0,d.fu)(i,(()=>{o.reject(new a.Z("identity-manager:user-aborted","ABORTED"))})),(0,d.Hc)(i))return o.promise;t.signal=i.signal;const l=this._isAdminResource(e),h=r?this.findCredential(e):null;let c;if(h&&s&&s.details&&498===s.details.httpStatus)h.destroy();else if(h)return c=new a.Z("identity-manager:not-authorized","You are currently signed in as: '"+h.userId+"'. You do not have access to this resource: "+e,{error:s}),o.reject(c),o.promise;const u=this._findCredential(e,t);if(u)return o.resolve(u),o.promise;let f=this.findServerInfo(e);if(f)!f.hasServer&&this._isServerRsrc(e)&&(f._restInfoPms=this._getTokenSvcUrl(e),f.hasServer=!0);else{const t=this._getTokenSvcUrl(e);if(!t)return c=new a.Z("identity-manager:unknown-resource","Unknown resource - could not find token service endpoint."),o.reject(c),o.promise;f=new st,f.server=this._getServerInstanceRoot(e),"string"==typeof t?(f.tokenServiceUrl=t,f.hasPortal=!0):(f._restInfoPms=t,f.hasServer=!0),this.registerServers([f])}return f.hasPortal&&void 0===f._selfReq&&(n||(0,p.D6)(f.tokenServiceUrl,this._appOrigin)||this._gwDomains.some((e=>e.tokenServiceUrl===f.tokenServiceUrl)))&&(f._selfReq={owningTenant:t&&t.owningTenant,selfDfd:this._getPortalSelf(f.tokenServiceUrl.replace(this._rePortalTokenSvc,"/sharing/rest/portals/self"),e)}),this._enqueue(e,f,t,o,l)}getResourceName(e){return this._isRESTService(e)?e.replace(this._regexSDirUrl,"").replace(this._regexServerType,"")||"":this._gwUser.test(e)&&e.replace(this._gwUser,"$1")||this._gwItem.test(e)&&e.replace(this._gwItem,"$1")||this._gwGroup.test(e)&&e.replace(this._gwGroup,"$1")||""}generateToken(e,t,r){const s=this._rePortalTokenSvc.test(e.tokenServiceUrl),n=new p.R9(this._appOrigin),i=e.shortLivedTokenValidity;let l,h,c,u,d,f,m,g;t&&(g=this.tokenValidity||i||this.defaultTokenValidity,g>i&&i>0&&(g=i)),r&&(l=r.isAdmin,h=r.serverUrl,c=r.token,f=r.signal,m=r.ssl,e.customParameters=r.customParameters),l?u=e.adminTokenServiceUrl:(u=e.tokenServiceUrl,d=new p.R9(u.toLowerCase()),e.webTierAuth&&null!=r&&r.serverUrl&&!m&&"http"===n.scheme&&((0,p.D6)(n.uri,u,!0)||"https"===d.scheme&&n.host===d.host&&"7080"===n.port&&"7443"===d.port)&&(u=u.replace(/^https:/i,"http:").replace(/:7443/i,":7080")));const _={query:{request:"getToken",username:null==t?void 0:t.username,password:null==t?void 0:t.password,serverUrl:h,token:c,expiration:g,referer:l||s?this._appOrigin:null,client:l?"referer":null,f:"json",...e.customParameters},method:"post",authMode:"anonymous",useProxy:this._useProxy(e,r),signal:f,...null==r?void 0:r.ioArgs};return s||(_.withCredentials=!1),(0,o.default)(u,_).then((r=>{const s=r.data;if(!s||!s.token)return new a.Z("identity-manager:authentication-failed","Unable to generate token");const n=e.server;return nt[n]||(nt[n]={}),t&&(nt[n][t.username]=t.password),s.validity=g,s}))}isBusy(){return!!this._busy}checkSignInStatus(e){return this.checkAppAccess(e,"").then((e=>e.credential))}checkAppAccess(e,t,r){let s=!1;return this.getCredential(e,{prompt:!1}).then((n=>{let i;const l={f:"json"};if("portal"===n.scope)if(t&&(this._doPortalSignIn(e)||r&&r.force))i=n.server+"/sharing/rest/oauth2/validateAppAccess",l.client_id=t;else{if(!n.token)return{credential:n};i=n.server+"/sharing/rest"}else{if(!n.token)return{credential:n};i=n.server+"/rest/services"}return n.token&&(l.token=n.token),(0,o.default)(i,{query:l,authMode:"anonymous"}).then((e=>{if(!1===e.data.valid)throw new a.Z("identity-manager:not-authorized",`You are currently signed in as: '${n.userId}'.`,e.data);return s=!!e.data.viewOnlyUserTypeApp,{credential:n}})).catch((e=>{if("identity-manager:not-authorized"===e.name)throw e;const t=e.details&&e.details.httpStatus;if(498===t)throw n.destroy(),new a.Z("identity-manager:not-authenticated","User is not signed in.");if(400===t)throw new a.Z("identity-manager:invalid-request");return{credential:n}}))})).then((e=>({credential:e.credential,viewOnly:s})))}setOAuthResponseHash(e){var t;const r=this._oAuthDfd;if(this._oAuthDfd=null,!r||!e)return;clearInterval(this._oAuthIntervalId),null==(t=this._oAuthOnHashHandle)||t.remove(),"#"===e.charAt(0)&&(e=e.substring(1));const s=(0,p.u0)(e);if(s.error){const e="access_denied"===s.error,t=new a.Z(e?"identity-manager:user-aborted":"identity-manager:authentication-failed",e?"ABORTED":"OAuth: "+s.error+" - "+s.error_description);r.reject(t)}else{const e=r.sinfo_,t=r.oinfo_,n=t._oAuthCred,i=new ct({userId:s.username,server:e.server,token:s.access_token,expires:Date.now()+1e3*Number(s.expires_in),ssl:"true"===s.ssl,_oAuthCred:n});t.userId=i.userId,n.storage=s.persist?at:lt,n.token=i.token,n.expires=i.expires,n.userId=i.userId,n.ssl=i.ssl,n.save(),r.resolve(i)}}setOAuthRedirectionHandler(e){this._oAuthRedirectFunc=e}setProtocolErrorHandler(e){this._protocolFunc=e}signIn(e,t,r={}){const s=(0,d.hh)(),n=()=>{var e,t,r,s,n;null==(e=l)||e.remove(),null==(t=h)||t.remove(),null==(r=c)||r.remove(),null==(s=o)||s.destroy(),null==(n=this.dialog)||n.destroy(),this.dialog=o=l=h=c=null},i=()=>{n(),this._oAuthDfd=null,s.reject(new a.Z("identity-manager:user-aborted","ABORTED"))};r.signal&&(0,d.fu)(r.signal,(()=>{i()}));let o=new this.formConstructor;o.resource=this.getResourceName(e),o.server=t.server,this.dialog=new Ge,this.dialog.content=o,this.dialog.open=!0,this.emit("dialog-create");let l=o.on("cancel",i),h=this.dialog.watch("open",i),c=o.on("submit",(e=>{this.generateToken(t,e,{isAdmin:r.isAdmin,signal:r.signal}).then((i=>{n();const o=new ct({userId:e.username,server:t.server,token:i.token,expires:null!=i.expires?Number(i.expires):null,ssl:!!i.ssl,isAdmin:r.isAdmin,validity:i.validity});s.resolve(o)})).catch((e=>{o.error=e,o.signingIn=!1}))}));return s.promise}oAuthSignIn(e,t,r,s){this._oAuthDfd=(0,d.hh)();const n=this._oAuthDfd;null!=s&&s.signal&&(0,d.fu)(s.signal,(()=>{const e=this._oAuthDfd&&this._oAuthDfd.oAuthWin_;e&&!e.closed?e.close():this.dialog&&l()})),n.resUrl_=e,n.sinfo_=t,n.oinfo_=r;const i=!s||!1!==s.oAuthPopupConfirmation;if(!r.popup||!i)return this._doOAuthSignIn(e,t,r),n.promise;const o=new this.formConstructor;o.oAuthPrompt=!0,o.server=t.server,this.dialog=new Ge,this.dialog.content=o,this.dialog.open=!0,this.emit("dialog-create");const l=()=>{p(),this._oAuthDfd=null,n.reject(new a.Z("identity-manager:user-aborted","ABORTED"))},h=o.on("cancel",l),c=this.dialog.watch("open",l),u=o.on("submit",(()=>{p(),this._doOAuthSignIn(e,t,r)})),p=()=>{h.remove(),c.remove(),u.remove(),o.destroy(),this.dialog.destroy(),this.dialog=null};return n.promise}destroyCredentials(){this.credentials&&this.credentials.slice().forEach((e=>{e.destroy()})),this.emit("credentials-destroy")}enablePostMessageAuth(e="https://www.arcgis.com/sharing/rest"){this._postMessageAuthHandle&&this._postMessageAuthHandle.remove(),this._postMessageAuthHandle=(0,h.on)(window,"message",(t=>{var r;if((t.origin===this._appOrigin||t.origin.endsWith(".arcgis.com"))&&"arcgis:auth:requestCredential"===(null==(r=t.data)?void 0:r.type)){const r=t.source;this.getCredential(e).then((e=>{r.postMessage({type:"arcgis:auth:credential",credential:{expires:e.expires,server:e.server,ssl:e.ssl,token:e.token,userId:e.userId}},t.origin)})).catch((e=>{r.postMessage({type:"arcgis:auth:error",error:{name:e.name,message:e.message}},t.origin)}))}}))}disablePostMessageAuth(){this._postMessageAuthHandle&&(this._postMessageAuthHandle.remove(),this._postMessageAuthHandle=null)}_getOAuthHash(){let e=window.location.hash;if(e){"#"===e.charAt(0)&&(e=e.substring(1));const t=(0,p.u0)(e);let r=!1;if(t.access_token&&t.expires_in&&t.state&&t.hasOwnProperty("username"))try{t.state=JSON.parse(t.state),"object"==typeof t.state&&t.state.portalUrl&&(this._oAuthHash=t,r=!0)}catch{}else t.error&&t.error_description&&(console.log("IdentityManager OAuth Error: ",t.error," - ",t.error_description),"access_denied"===t.error&&(r=!0));r&&(window.location.hash="object"==typeof t.state&&t.state.hash||"")}}_pageShowHandler(e){if(e.persisted&&this.isBusy()&&this._rejectOnPersistedPageShow){const e=new a.Z("identity-manager:user-aborted","ABORTED");this._errbackFunc(e)}}_findCredential(e,t){let r,s,n,i,o=-1;const a=t&&t.token,l=t&&t.resource,h=this._isServerRsrc(e)?"server":"portal",c=this.credentials.filter((t=>this._hasSameServerInstance(t.server,e)&&t.scope===h));if(e=l||e,c.length)if(1===c.length){if(r=c[0],i=this.findServerInfo(r.server),s=i&&i.owningSystemUrl,n=s&&this.findCredential(s,r.userId),o=this._getIdenticalSvcIdx(e,r),!a)return-1===o&&r.resources.push(e),this._addResource(e,n),r;-1!==o&&(r.resources.splice(o,1),this._removeResource(e,n))}else{let t,r;if(c.some((a=>(r=this._getIdenticalSvcIdx(e,a),-1!==r&&(t=a,i=this.findServerInfo(t.server),s=i&&i.owningSystemUrl,n=s&&this.findCredential(s,t.userId),o=r,!0)))),a)t&&(t.resources.splice(o,1),this._removeResource(e,n));else if(t)return this._addResource(e,n),t}}_findOAuthInfo(e){let t=this.findOAuthInfo(e);if(!t)for(const r of this.oAuthInfos)if(this._isIdProvider(r.portalUrl,e)){t=r;break}return t}_addResource(e,t){t&&-1===this._getIdenticalSvcIdx(e,t)&&t.resources.push(e)}_removeResource(e,t){let r=-1;t&&(r=this._getIdenticalSvcIdx(e,t),r>-1&&t.resources.splice(r,1))}_useProxy(e,t){return t&&t.isAdmin&&!(0,p.D6)(e.adminTokenServiceUrl,this._appOrigin)||!this._isPortalDomain(e.tokenServiceUrl)&&"10.1"===String(e.currentVersion)&&!(0,p.D6)(e.tokenServiceUrl,this._appOrigin)}_getOrigin(e){const t=new p.R9(e);return t.scheme+"://"+t.host+(null!=t.port?":"+t.port:"")}_getServerInstanceRoot(e){const t=e.toLowerCase();let r=t.indexOf(this._agsRest);return-1===r&&this._isAdminResource(e)&&(r=this._agsAdmin.test(e)?e.replace(this._agsAdmin,"$1").length:e.search(this._adminSvcs)),-1===r&&(r=t.indexOf("/sharing")),-1===r&&"/"===t.substr(-1)&&(r=t.length-1),r>-1?e.substring(0,r):e}_hasSameServerInstance(e,t){return"/"===e.substr(-1)&&(e=e.slice(0,-1)),e=e.toLowerCase(),t=this._getServerInstanceRoot(t).toLowerCase(),e=this._normalizeAGOLorgDomain(e),t=this._normalizeAGOLorgDomain(t),(e=e.substr(e.indexOf(":")))===t.substr(t.indexOf(":"))}_normalizeAGOLorgDomain(e){const t=/^https?:\/\/(?:cdn|[a-z\d-]+\.maps)\.arcgis\.com/i,r=/^https?:\/\/(?:cdndev|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,s=/^https?:\/\/(?:cdnqa|[a-z\d-]+\.mapsqa)\.arcgis\.com/i;return t.test(e)?e=e.replace(t,"https://www.arcgis.com"):r.test(e)?e=e.replace(r,"https://devext.arcgis.com"):s.test(e)&&(e=e.replace(s,"https://qaext.arcgis.com")),e}_sanitizeUrl(e){const t=(i.Z.request.proxyUrl||"").toLowerCase(),r=t?e.toLowerCase().indexOf(t+"?"):-1;return-1!==r&&(e=e.substring(r+t.length+1)),e=(0,p.Fv)(e),(0,p.mN)(e).path}_isRESTService(e){return e.indexOf(this._agsRest)>-1}_isAdminResource(e){return this._agsAdmin.test(e)||this._adminSvcs.test(e)}_isServerRsrc(e){return this._isRESTService(e)||this._isAdminResource(e)}_isIdenticalService(e,t){let r;if(this._isRESTService(e)&&this._isRESTService(t)){const s=this._getSuffix(e).toLowerCase(),n=this._getSuffix(t).toLowerCase();if(r=s===n,!r){const e=/(.*)\/(MapServer|FeatureServer|UtilityNetworkServer).*/gi;r=s.replace(e,"$1")===n.replace(e,"$1")}}else this._isAdminResource(e)&&this._isAdminResource(t)?r=!0:this._isServerRsrc(e)||this._isServerRsrc(t)||!this._isPortalDomain(e)||(r=!0);return r}_isPortalDomain(e){const t=new p.R9(e.toLowerCase()),r=this._portalConfig;let s=this._gwDomains.some((e=>e.regex.test(t.uri)));return!s&&r&&(s=this._hasSameServerInstance(this._getServerInstanceRoot(r.restBaseUrl),t.uri)),s||i.Z.portalUrl&&(s=(0,p.D6)(t,i.Z.portalUrl,!0)),s||(s=this._portals.some((e=>this._hasSameServerInstance(e,t.uri)))),s=s||this._agsPortal.test(t.path),s}_isIdProvider(e,t){let r=-1,s=-1;this._gwDomains.forEach(((n,i)=>{-1===r&&n.regex.test(e)&&(r=i),-1===s&&n.regex.test(t)&&(s=i)}));let n=!1;if(r>-1&&s>-1&&(0===r||4===r?0!==s&&4!==s||(n=!0):1===r?1!==s&&2!==s||(n=!0):2===r?2===s&&(n=!0):3===r&&3===s&&(n=!0)),!n){const r=this.findServerInfo(t),s=r&&r.owningSystemUrl;s&&it(r)&&this._isPortalDomain(s)&&this._isIdProvider(e,s)&&(n=!0)}return n}_getIdenticalSvcIdx(e,t){let r=-1;for(let s=0;s<t.resources.length;s++){const n=t.resources[s];if(this._isIdenticalService(e,n)){r=s;break}}return r}_getSuffix(e){return e.replace(this._regexSDirUrl,"").replace(this._regexServerType,"$1")}_getTokenSvcUrl(e){let t,r,s;if(this._isRESTService(e)||this._isAdminResource(e)){const s=this._getServerInstanceRoot(e);return t=s+"/admin/generateToken",r=(0,o.default)(e=s+"/rest/info",{query:{f:"json"}}).then((e=>e.data)),{adminUrl:t,promise:r}}if(this._isPortalDomain(e)){let t="";if(this._gwDomains.some((r=>(r.regex.test(e)&&(t=r.tokenServiceUrl),!!t))),t||this._portals.some((r=>(this._hasSameServerInstance(r,e)&&(t=r+this._gwTokenUrl),!!t))),t||(s=e.toLowerCase().indexOf("/sharing"),-1!==s&&(t=e.substring(0,s)+this._gwTokenUrl)),t||(t=this._getOrigin(e)+this._gwTokenUrl),t){const r=new p.R9(e).port;/^http:\/\//i.test(e)&&"7080"===r&&(t=t.replace(/:7080/i,":7443")),t=t.replace(/http:/i,"https:")}return t}if(-1!==e.toLowerCase().indexOf("premium.arcgisonline.com"))return"https://premium.arcgisonline.com/server/tokens"}_exchangeToken(e,t,r){return(0,o.default)(`${e}/sharing/rest/oauth2/exchangeToken`,{authMode:"anonymous",method:"post",query:{f:"json",client_id:t,token:r}}).then((e=>e.data.token))}_getPlatformSelf(e,t){return e=e.replace(/^http:/i,"https:"),(0,o.default)(`${e}/sharing/rest/oauth2/platformSelf`,{authMode:"anonymous",headers:{"X-Esri-Auth-Client-Id":t,"X-Esri-Auth-Redirect-Uri":window.location.href.replace(/#.*$/,"")},method:"post",query:{f:"json"},withCredentials:!0}).then((e=>e.data))}_getPortalSelf(e,t){let r;return this._gwDomains.some((t=>(t.regex.test(e)&&(r=t.customBaseUrl),!!r))),r?Promise.resolve({allSSL:!0,currentVersion:"4.4",customBaseUrl:r,portalMode:"multitenant",supportsOAuth:!0}):(this._appOrigin.startsWith("https:")?e=e.replace(/^http:/i,"https:").replace(/:7080/i,":7443"):/^http:/i.test(t)&&(e=e.replace(/^https:/i,"http:").replace(/:7443/i,":7080")),(0,o.default)(e,{query:{f:"json"},authMode:"anonymous",withCredentials:!0}).then((e=>e.data)))}_doPortalSignIn(e){const t=this._portalConfig,r=window.location.href,s=this.findServerInfo(e);return!(!t&&!this._isPortalDomain(r)||!(s?s.hasPortal||s.owningSystemUrl&&this._isPortalDomain(s.owningSystemUrl):this._isPortalDomain(e))||!(this._isIdProvider(r,e)||t&&(this._hasSameServerInstance(this._getServerInstanceRoot(t.restBaseUrl),e)||this._isIdProvider(t.restBaseUrl,e))||(0,p.D6)(r,e,!0)))}_checkProtocol(e,t,r,s){let n=!0;const i=s?t.adminTokenServiceUrl:t.tokenServiceUrl;return i.trim().toLowerCase().startsWith("https:")&&!this._appOrigin.startsWith("https:")&&(0,p.ed)(i)&&(n=!!this._protocolFunc&&!!this._protocolFunc({resourceUrl:e,serverInfo:t}),!n)&&r(new a.Z("identity-manager:aborted","Aborted the Sign-In process to avoid sending password over insecure connection.")),n}_enqueue(e,t,r,s,n,i){return s||(s=(0,d.hh)()),s.resUrl_=e,s.sinfo_=t,s.options_=r,s.admin_=n,s.refresh_=i,this._busy?this._hasSameServerInstance(this._getServerInstanceRoot(e),this._busy.resUrl_)?(this._oAuthDfd&&this._oAuthDfd.oAuthWin_&&this._oAuthDfd.oAuthWin_.focus(),this._soReqs.push(s)):this._xoReqs.push(s):this._doSignIn(s),s.promise}_doSignIn(e){this._busy=e,this._rejectOnPersistedPageShow=!1;const t=t=>{const r=e.options_&&e.options_.resource,s=e.resUrl_,n=e.refresh_;let i=!1;-1===this.credentials.indexOf(t)&&(n&&-1!==this.credentials.indexOf(n)?(n.userId=t.userId,n.token=t.token,n.expires=t.expires,n.validity=t.validity,n.ssl=t.ssl,n.creationTime=t.creationTime,i=!0,t=n):this.credentials.push(t)),t.resources||(t.resources=[]),t.resources.push(r||s),t.scope=this._isServerRsrc(s)?"server":"portal",t.emitTokenChange();const o=this._soReqs,a={};this._soReqs=[],o.forEach((e=>{if(!this._isIdenticalService(s,e.resUrl_)){const r=this._getSuffix(e.resUrl_);a[r]||(a[r]=!0,t.resources.push(e.resUrl_))}})),e.resolve(t),o.forEach((e=>{this._hasSameServerInstance(this._getServerInstanceRoot(s),e.resUrl_)?e.resolve(t):this._soReqs.push(e)})),this._busy=e.resUrl_=e.sinfo_=e.refresh_=null,i||this.emit("credential-create",{credential:t}),this._soReqs.length?this._doSignIn(this._soReqs.shift()):this._xoReqs.length&&this._doSignIn(this._xoReqs.shift())},r=t=>{e.reject(t),this._busy=e.resUrl_=e.sinfo_=e.refresh_=null,this._soReqs.length?this._doSignIn(this._soReqs.shift()):this._xoReqs.length&&this._doSignIn(this._xoReqs.shift())},s=(s,n,i,o)=>{var l,c;const u=e.sinfo_,f=!e.options_||!1!==e.options_.prompt,m=u.hasPortal&&this._findOAuthInfo(e.resUrl_);let g,_;if(s)t(new ct({userId:s,server:u.server,token:i||null,expires:null!=o?Number(o):null,ssl:!!n}));else if(window!==window.parent&&null!=(l=this._appUrlObj.query)&&l["arcgis-auth-origin"]&&null!=(c=this._appUrlObj.query)&&c["arcgis-auth-portal"]&&this._hasSameServerInstance(this._getServerInstanceRoot(this._appUrlObj.query["arcgis-auth-portal"]),e.resUrl_)){var v;window.parent.postMessage({type:"arcgis:auth:requestCredential"},this._appUrlObj.query["arcgis-auth-origin"]);const s=(0,h.on)(window,"message",(e=>{e.source===window.parent&&e.data&&("arcgis:auth:credential"===e.data.type?(s.remove(),e.data.credential.expires<Date.now()?r(new a.Z("identity-manager:credential-request-failed","Parent application's token has expired.")):t(new ct(e.data.credential))):"arcgis:auth:error"===e.data.type&&(s.remove(),"tokenExpiredError"===e.data.error.name?r(new a.Z("identity-manager:credential-request-failed","Parent application's token has expired.")):r(a.Z.fromJSON(e.data.error))))}));(0,d.fu)(null==(v=e.options_)?void 0:v.signal,(()=>{s.remove()}))}else if(m){let s=m._oAuthCred;if(!s){const e=new Ke(m,at),t=new Ke(m,lt);e.isValid()&&t.isValid()?e.expires>t.expires?(s=e,t.destroy()):(s=t,e.destroy()):s=e.isValid()?e:t,m._oAuthCred=s}if(s.isValid())g=new ct({userId:s.userId,server:u.server,token:s.token,expires:s.expires,ssl:s.ssl,_oAuthCred:s}),m.appId!==s.appId&&this._doPortalSignIn(e.resUrl_)?e._pendingDfd=this._exchangeToken(g.server,m.appId,g.token).then((e=>{g.token=e,s.token=e,s.save(),t(g)})).catch((()=>{t(g)})):t(g);else if(this._oAuthHash&&this._hasSameServerInstance(m.portalUrl,this._oAuthHash.state.portalUrl)){const e=this._oAuthHash;g=new ct({userId:e.username,server:u.server,token:e.access_token,expires:Date.now()+1e3*Number(e.expires_in),ssl:"true"===e.ssl,oAuthState:e.state,_oAuthCred:s}),m.userId=g.userId,s.storage=e.persist?at:lt,s.token=g.token,s.expires=g.expires,s.userId=g.userId,s.ssl=g.ssl,s.save(),this._oAuthHash=null,t(g)}else{const s=()=>{f?e._pendingDfd=this.oAuthSignIn(e.resUrl_,u,m,e.options_).then(t,r):(_=new a.Z("identity-manager:not-authenticated","User is not signed in."),r(_))};this._doPortalSignIn(e.resUrl_)?e._pendingDfd=this._getPlatformSelf(u.server,m.appId).then((({portalUrl:e,token:r,username:n})=>{!e||(0,p.D6)(e,this._appOrigin,!0)?(g=new ct({server:u.server,userId:n,token:r}),t(g)):s()})).catch(s):s()}}else if(f){if(this._checkProtocol(e.resUrl_,u,r,e.admin_)){let s=e.options_;e.admin_&&(s=s||{},s.isAdmin=!0),e._pendingDfd=this.signIn(e.resUrl_,u,s).then(t,r)}}else _=new a.Z("identity-manager:not-authenticated","User is not signed in."),r(_)},n=()=>{const s=e.sinfo_,n=s.owningSystemUrl,i=e.options_;let o,a,l,h;if(i&&(o=i.token,a=i.error,l=i.prompt),h=this._findCredential(n,{token:o,resource:e.resUrl_}),!h)for(const e of this.credentials)if(this._isIdProvider(n,e.server)){h=e;break}if(h){const n=this.findCredential(e.resUrl_,h.userId);if(n)t(n);else if(ot(s,this._legacyFed)){const e=h.toJSON();e.server=s.server,e.resources=null,t(new ct(e))}else(e._pendingDfd=this.generateToken(this.findServerInfo(h.server),null,{serverUrl:e.resUrl_,token:h.token,signal:e.options_.signal,ssl:h.ssl})).then((r=>{t(new ct({userId:h.userId,server:s.server,token:r.token,expires:null!=r.expires?Number(r.expires):null,ssl:!!r.ssl,isAdmin:e.admin_,validity:r.validity}))}),r)}else this._busy=null,o&&(e.options_.token=null),(e._pendingDfd=this.getCredential(n.replace(/\/?$/,"/sharing"),{resource:e.resUrl_,owningTenant:s.owningTenant,signal:e.options_.signal,token:o,error:a,prompt:l})).then((()=>{this._enqueue(e.resUrl_,e.sinfo_,e.options_,e,e.admin_)}),(t=>{e.resUrl_=e.sinfo_=e.refresh_=null,e.reject(t)}))};this._errbackFunc=r;const i=e.sinfo_.owningSystemUrl,o=this._isServerRsrc(e.resUrl_),l=e.sinfo_._restInfoPms;l?l.promise.then((t=>{const r=e.sinfo_;if(r._restInfoPms){r.adminTokenServiceUrl=r._restInfoPms.adminUrl,r._restInfoPms=null,r.tokenServiceUrl=(0,u.hS)("authInfo.tokenServicesUrl",t)||(0,u.hS)("authInfo.tokenServiceUrl",t)||(0,u.hS)("tokenServiceUrl",t),r.shortLivedTokenValidity=(0,u.hS)("authInfo.shortLivedTokenValidity",t),r.currentVersion=t.currentVersion,r.owningTenant=t.owningTenant;const e=r.owningSystemUrl=t.owningSystemUrl;e&&this._portals.push(e)}o&&r.owningSystemUrl?n():s()}),(()=>{e.sinfo_._restInfoPms=null;const t=new a.Z("identity-manager:server-identification-failed","Unknown resource - could not find token service endpoint.");r(t)})):o&&i?n():e.sinfo_._selfReq?e.sinfo_._selfReq.selfDfd.then((t=>{const r={};let s,n,i,o;return t&&(s=t.user&&t.user.username,r.username=s,r.allSSL=t.allSSL,n=t.supportsOAuth,i=t.currentVersion,"multitenant"===t.portalMode&&(o=t.customBaseUrl)),e.sinfo_.webTierAuth=!!s,s&&this.normalizeWebTierAuth?this.generateToken(e.sinfo_,null,{ssl:r.allSSL}).catch((()=>null)).then((e=>(r.portalToken=e&&e.token,r.tokenExpiration=e&&e.expires,r))):!s&&n&&parseFloat(i)>=4.4&&!this._findOAuthInfo(e.resUrl_)?this._generateOAuthInfo({portalUrl:e.sinfo_.server,customBaseUrl:o,owningTenant:e.sinfo_._selfReq.owningTenant}).catch((()=>null)).then((()=>r)):r})).catch((()=>null)).then((t=>{e.sinfo_._selfReq=null,t?s(t.username,t.allSSL,t.portalToken,t.tokenExpiration):s()})):s()}_generateOAuthInfo(e){let t,r,s=e.portalUrl;const n=e.customBaseUrl,i=e.owningTenant,a=!this.defaultOAuthInfo&&this._createDefaultOAuthInfo&&!this._hasTestedIfAppIsOnPortal;if(a){r=window.location.href;let e=r.indexOf("?");e>-1&&(r=r.slice(0,e)),e=r.search(/\/(apps|home)\//),r=e>-1?r.slice(0,e):null}return a&&r?(this._hasTestedIfAppIsOnPortal=!0,t=(0,o.default)(r+"/sharing/rest",{query:{f:"json"}}).then((()=>{this.defaultOAuthInfo=new tt({appId:"arcgisonline",popupCallbackUrl:r+"/home/oauth-callback.html"})}))):t=Promise.resolve(),t.then((()=>{if(this.defaultOAuthInfo)return s=s.replace(/^http:/i,"https:"),(0,o.default)(s+"/sharing/rest/oauth2/validateRedirectUri",{query:{accountId:i,client_id:this.defaultOAuthInfo.appId,redirect_uri:(0,p.hF)(this.defaultOAuthInfo.popupCallbackUrl),f:"json"}}).then((e=>{if(e.data.valid){const t=this.defaultOAuthInfo.clone();e.data.urlKey&&n?t.portalUrl="https://"+e.data.urlKey.toLowerCase()+"."+n:t.portalUrl=s,t.popup=window!==window.top||!((0,p.D6)(s,this._appOrigin)||this._gwDomains.some((e=>e.regex.test(s)&&e.regex.test(this._appOrigin)))),this.oAuthInfos.push(t)}}))}))}_doOAuthSignIn(e,t,r){const s={portalUrl:r.portalUrl};!r.popup&&r.preserveUrlHash&&window.location.hash&&(s.hash=window.location.hash);const n={client_id:r.appId,response_type:"token",state:JSON.stringify(s),expiration:r.expiration,locale:r.locale,redirect_uri:r.popup?(0,p.hF)(r.popupCallbackUrl):window.location.href.replace(/#.*$/,"")};r.forceLogin&&(n.force_login=!0),r.forceUserId&&r.userId&&(n.prepopulatedusername=r.userId),!r.popup&&this._doPortalSignIn(e)&&(n.redirectToUserOrgUrl=!0);const i=r.portalUrl.replace(/^http:/i,"https:")+"/sharing/oauth2/authorize",o=i+"?"+(0,p.B7)(n);if(r.popup){const e=window.open(o,"esriJSAPIOAuth",r.popupWindowFeatures);if(e)e.focus(),this._oAuthDfd.oAuthWin_=e,this._oAuthIntervalId=setInterval((()=>{if(e.closed){clearInterval(this._oAuthIntervalId),this._oAuthOnHashHandle.remove();const e=this._oAuthDfd;if(e){const t=new a.Z("identity-manager:user-aborted","ABORTED");e.reject(t)}}}),500),this._oAuthOnHashHandle=(0,h.on)(window,"arcgis:auth:hash",(e=>{this.setOAuthResponseHash(e.detail)}));else{const e=new a.Z("identity-manager:popup-blocked","ABORTED");this._oAuthDfd.reject(e)}}else this._rejectOnPersistedPageShow=!0,this._oAuthRedirectFunc?this._oAuthRedirectFunc({authorizeParams:n,authorizeUrl:i,resourceUrl:e,serverInfo:t,oAuthInfo:r}):window.location.href=o}}ht.prototype.declaredClass="esri.identity.IdentityManagerBase";let ct=class extends l.Z.EventedAccessor{constructor(e){super(e),this._oAuthCred=null,this.tokenRefreshBuffer=2,e&&e._oAuthCred&&(this._oAuthCred=e._oAuthCred)}initialize(){this.resources=this.resources||[],null==this.creationTime&&(this.creationTime=Date.now())}refreshToken(){const e=s.id.findServerInfo(this.server),t=e&&e.owningSystemUrl,r=!!t&&"server"===this.scope,n=r&&ot(e,s.id._legacyFed),i=e.webTierAuth,o=i&&s.id.normalizeWebTierAuth,a=nt[this.server],l=a&&a[this.userId];let h,c=this.resources&&this.resources[0],u=r&&s.id.findServerInfo(t),d={username:this.userId,password:l};if(i&&!o)return;r&&!u&&s.id.serverInfos.some((e=>(s.id._isIdProvider(t,e.server)&&(u=e),!!u)));const p=u&&s.id.findCredential(u.server,this.userId);if(!r||p){if(!n){if(r)h={serverUrl:c,token:p&&p.token,ssl:p&&p.ssl};else if(o)d=null,h={ssl:this.ssl};else{if(!l){let t;return c&&(c=s.id._sanitizeUrl(c),this._enqueued=1,t=s.id._enqueue(c,e,null,null,this.isAdmin,this),t.then((()=>{this._enqueued=0,this.refreshServerTokens()})).catch((()=>{this._enqueued=0}))),t}this.isAdmin&&(h={isAdmin:!0})}return s.id.generateToken(r?u:e,r?null:d,h).then((e=>{this.token=e.token,this.expires=null!=e.expires?Number(e.expires):null,this.creationTime=Date.now(),this.validity=e.validity,this.emitTokenChange(),this.refreshServerTokens()})).catch((()=>{}))}p.refreshToken()}}refreshServerTokens(){"portal"===this.scope&&s.id.credentials.forEach((e=>{const t=s.id.findServerInfo(e.server),r=t&&t.owningSystemUrl;e!==this&&e.userId===this.userId&&r&&"server"===e.scope&&(s.id._hasSameServerInstance(this.server,r)||s.id._isIdProvider(r,this.server))&&(ot(t,s.id._legacyFed)?(e.token=this.token,e.expires=this.expires,e.creationTime=this.creationTime,e.validity=this.validity,e.emitTokenChange()):e.refreshToken())}))}emitTokenChange(e){clearTimeout(this._refreshTimer);const t=this.server&&s.id.findServerInfo(this.server),r=t&&t.owningSystemUrl,n=r&&s.id.findServerInfo(r);!1===e||r&&"portal"!==this.scope&&(!n||!n.webTierAuth||s.id.normalizeWebTierAuth)||null==this.expires&&null==this.validity||this._startRefreshTimer(),this.emit("token-change")}destroy(){this.userId=this.server=this.token=this.expires=this.validity=this.resources=this.creationTime=null,this._oAuthCred&&(this._oAuthCred.destroy(),this._oAuthCred=null);const e=s.id.credentials.indexOf(this);e>-1&&s.id.credentials.splice(e,1),this.emitTokenChange(),this.emit("destroy")}toJSON(){const e=(0,c.yd)({userId:this.userId,server:this.server,token:this.token,expires:this.expires,validity:this.validity,ssl:this.ssl,isAdmin:this.isAdmin,creationTime:this.creationTime,scope:this.scope}),t=this.resources;return t&&t.length>0&&(e.resources=t.slice()),e}_startRefreshTimer(){clearTimeout(this._refreshTimer);const e=6e4*this.tokenRefreshBuffer,t=2**31-1;let r=(this.validity?this.creationTime+6e4*this.validity:this.expires)-Date.now();r<0?r=0:r>t&&(r=t),this._refreshTimer=setTimeout(this.refreshToken.bind(this),r>e?r-e:r)}};(0,n._)([(0,f.Cb)()],ct.prototype,"creationTime",void 0),(0,n._)([(0,f.Cb)()],ct.prototype,"expires",void 0),(0,n._)([(0,f.Cb)()],ct.prototype,"isAdmin",void 0),(0,n._)([(0,f.Cb)()],ct.prototype,"oAuthState",void 0),(0,n._)([(0,f.Cb)()],ct.prototype,"resources",void 0),(0,n._)([(0,f.Cb)()],ct.prototype,"scope",void 0),(0,n._)([(0,f.Cb)()],ct.prototype,"server",void 0),(0,n._)([(0,f.Cb)()],ct.prototype,"ssl",void 0),(0,n._)([(0,f.Cb)()],ct.prototype,"token",void 0),(0,n._)([(0,f.Cb)()],ct.prototype,"tokenRefreshBuffer",void 0),(0,n._)([(0,f.Cb)()],ct.prototype,"userId",void 0),(0,n._)([(0,f.Cb)()],ct.prototype,"validity",void 0),ct=(0,n._)([(0,m.j)("esri.identity.Credential")],ct);class ut extends ht{}ut.prototype.declaredClass="esri.identity.IdentityManager";const dt=new ut;(0,s.qh)(dt)},2587:(e,t,r)=>{"use strict";r(90344),r(18848),r(940),r(70171);var s=r(94443),n=r(3172),i=r(20102),o=r(70586);async function a(e){if((0,o.pC)(h.fetchBundleAsset))return h.fetchBundleAsset(e);const t=await(0,n.default)(e,{responseType:"text"});return JSON.parse(t.data)}class l{constructor({base:e="",pattern:t,location:r=new URL(window.location.href)}){let s;s="string"==typeof r?e=>new URL(e,new URL(r,window.location.href)).href:r instanceof URL?e=>new URL(e,r).href:r,this.pattern="string"==typeof t?new RegExp(`^${t}`):t,this.getAssetUrl=s,e=e?e.endsWith("/")?e:e+"/":"",this.matcher=new RegExp(`^${e}(?:(.*)/)?(.*)$`)}fetchMessageBundle(e,t){return async function(e,t,r,n){const o=t.exec(r);if(!o)throw new i.Z("esri-intl:invalid-bundle",`Bundle id "${r}" is not compatible with the pattern "${t}"`);const l=o[1]?`${o[1]}/`:"",h=o[2],c=(0,s.Su)(n),u=`${l}${h}.json`,d=c?`${l}${h}_${c}.json`:u;let p;try{p=await a(e(d))}catch(t){if(d===u)throw new i.Z("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:t});try{p=await a(e(u))}catch(e){throw new i.Z("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:e})}}return p}(this.getAssetUrl,this.matcher,e,t)}}const h={};var c,u=r(99880);(0,s.tz)((c={pattern:"esri/",location:u.V},new l(c)))},90344:(e,t,r)=>{"use strict";r.d(t,{Ze:()=>g,p6:()=>_});var s=r(35454),n=r(70171);const i={year:"numeric",month:"numeric",day:"numeric"},o={year:"numeric",month:"long",day:"numeric"},a={year:"numeric",month:"short",day:"numeric"},l={year:"numeric",month:"long",weekday:"long",day:"numeric"},h={hour:"numeric",minute:"numeric"},c={...h,second:"numeric"},u={"short-date":i,"short-date-short-time":{...i,...h},"short-date-short-time-24":{...i,...h,hour12:!1},"short-date-long-time":{...i,...c},"short-date-long-time-24":{...i,...c,hour12:!1},"short-date-le":i,"short-date-le-short-time":{...i,...h},"short-date-le-short-time-24":{...i,...h,hour12:!1},"short-date-le-long-time":{...i,...c},"short-date-le-long-time-24":{...i,...c,hour12:!1},"long-month-day-year":o,"long-month-day-year-short-time":{...o,...h},"long-month-day-year-short-time-24":{...o,...h,hour12:!1},"long-month-day-year-long-time":{...o,...c},"long-month-day-year-long-time-24":{...o,...c,hour12:!1},"day-short-month-year":a,"day-short-month-year-short-time":{...a,...h},"day-short-month-year-short-time-24":{...a,...h,hour12:!1},"day-short-month-year-long-time":{...a,...c},"day-short-month-year-long-time-24":{...a,...c,hour12:!1},"long-date":l,"long-date-short-time":{...l,...h},"long-date-short-time-24":{...l,...h,hour12:!1},"long-date-long-time":{...l,...c},"long-date-long-time-24":{...l,...c,hour12:!1},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":h,"long-time":c},d=(0,s.w)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),p=(d.apiValues,d.toJSON.bind(d),d.fromJSON.bind(d),{ar:"ar-u-nu-latn-ca-gregory"});let f=new WeakMap,m=u["short-date-short-time"];function g(e){return u[e]||null}function _(e,t){return function(e){const t=e||m;if(!f.has(t)){const e=(0,n.Kd)(),r=p[(0,n.Kd)()]||e;f.set(t,new Intl.DateTimeFormat(r,t))}return f.get(t)}(t).format(e)}(0,n.Ze)((()=>{f=new WeakMap,m=u["short-date-short-time"]}))},70171:(e,t,r)=>{"use strict";var s,n,i;let o;r.d(t,{Ze:()=>p,Kd:()=>h,qe:()=>u});const a=null!=(s=null==(n=globalThis.esriConfig)?void 0:n.locale)?s:null==(i=globalThis.dojoConfig)?void 0:i.locale;function l(){var e,t;return null!=(e=null!=a?a:null==(t=globalThis.navigator)?void 0:t.language)?e:"en"}function h(){return void 0===o&&(o=l()),o}const c=[];function u(e){return c.push(e),{remove(){c.splice(c.indexOf(e),1)}}}const d=[];function p(e){return d.push(e),{remove(){c.splice(d.indexOf(e),1)}}}null==globalThis.addEventListener||globalThis.addEventListener("languagechange",(function(){const e=null!=undefined?undefined:l();o!==e&&(o=e,[...d].forEach((t=>{t.call(null,e)})),[...c].forEach((t=>{t.call(null,e)})))}))},94443:(e,t,r)=>{"use strict";r.d(t,{ME:()=>p,Su:()=>f,tz:()=>d});var s=r(20102),n=r(95330),i=r(70171);const o=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,a={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:!0,nl:!0,pl:!0,"pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,"zh-CN":!0,"zh-HK":!0,"zh-TW":!0};function l(e){var t;return null!=(t=a[e])&&t}const h=[],c=new Map;function u(e){for(const t of c.keys())m(e.pattern,t)&&c.delete(t)}function d(e){return h.includes(e)||(u(e),h.unshift(e)),{remove(){const t=h.indexOf(e);t>-1&&(h.splice(t,1),u(e))}}}async function p(e){const t=(0,i.Kd)();c.has(e)||c.set(e,async function(e,t){const r=[];for(const s of h)if(m(s.pattern,e))try{return await s.fetchMessageBundle(e,t)}catch(e){r.push(e)}if(r.length)throw new s.Z("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:r});throw new s.Z("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}(e,t));const r=c.get(e);return await g.add(r),r}function f(e){if(!o.test(e))return null;const[,t,r]=o.exec(e),s=t+(r?"-"+r.toUpperCase():"");return l(s)?s:l(t)?t:null}function m(e,t){return"string"==typeof e?t.startsWith(e):e.test(t)}(0,i.Ze)((()=>{c.clear()}));const g=new class{constructor(){this._numLoading=0}async waitForAll(){this._dfd&&await this._dfd.promise}add(e){return this._increase(),e.then((()=>this._decrease()),(()=>this._decrease())),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=(0,n.dD)())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},18848:(e,t,r)=>{"use strict";r.d(t,{sh:()=>l,uf:()=>h});var s=r(70586),n=r(70171);const i={ar:"ar-u-nu-latn"};let o=new WeakMap,a={};function l(e={}){const t={};return null!=e.digitSeparator&&(t.useGrouping=e.digitSeparator),null!=e.places&&(t.minimumFractionDigits=t.maximumFractionDigits=e.places),t}function h(e,t){return function(e){const t=e||a;if(!o.has(t)){const r=(0,n.Kd)(),s=i[(0,n.Kd)()]||r;o.set(t,new Intl.NumberFormat(s,e))}return(0,s.j0)(o.get(t))}(t).format(e)}(0,n.Ze)((()=>{o=new WeakMap,a={}}))},940:(e,t,r)=>{"use strict";r.d(t,{n:()=>h});var s=r(92604),n=r(78286),i=r(19153),o=r(90344),a=r(18848);const l=s.Z.getLogger("esri.intl");function h(e,t,r={}){const{format:s={}}=r;return(0,i.gx)(e,(e=>function(e,t,r){let s,i;const o=e.indexOf(":");if(-1===o?s=e.trim():(s=e.slice(0,o).trim(),i=e.slice(o+1).trim()),!s)return"";const a=(0,n.hS)(s,t);if(null==a)return"";const l=r[i]||r[s];return l?c(a,l):i?u(a,i):d(a)}(e,t,s)))}function c(e,t){switch(t.type){case"date":return(0,o.p6)(e,t.intlOptions);case"number":return(0,a.uf)(e,t.intlOptions);default:return l.warn("missing format descriptor for key {key}"),d(e)}}function u(e,t){switch(t.toLowerCase()){case"dateformat":return(0,o.p6)(e);case"numberformat":return(0,a.uf)(e);default:return l.warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?(0,o.p6)(e):/^numberformat/i.test(t)?(0,a.uf)(e):d(e)}}function d(e){switch(typeof e){case"string":return e;case"number":return(0,a.uf)(e);case"boolean":return""+e;default:return e instanceof Date?(0,o.p6)(e):""}}},40330:(e,t,r)=>{"use strict";r.d(t,{Dp:()=>h,id:()=>a,qh:()=>l,i8:()=>i,Nv:()=>o});var s=r(80442),n=r(17452);const i="4.23",o={async request(e,t){var s;const{default:i}=await r.e(3172).then(r.bind(r,3172)),o=e.options,a=o.responseType;o.signal=null==t?void 0:t.signal,o.responseType="native"===a||"native-request-init"===a?"native-request-init":["blob","json","text"].includes(a)&&null!=(s=(0,n.oh)(e.url))&&s.after?a:"array-buffer";const l=await i(e.url,o),h={data:l.data,ssl:l.ssl};switch(l.requestOptions.responseType){case"native-request-init":return delete h.data.signal,h;case"blob":h.data=await h.data.arrayBuffer();break;case"json":h.data=(new TextEncoder).encode(JSON.stringify(h.data)).buffer;break;case"text":h.data=(new TextEncoder).encode(h.data).buffer}return{result:h,transferList:[h.data]}}};let a;function l(e){a=e}function h(e){const t=a&&a.findCredential(e);return t&&t.token?(0,n.ZN)(e,"token",t.token):e}(0,s.Z)("host-webworker")||((0,s.Z)("edge")||(0,s.Z)("trident"))&&console.warn("Deprecated browser - see http://esriurl.com/oldbrowser")}}]);
|