@arcgis/core 4.31.0-next.20240518 → 4.31.0-next.20240521
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/applications/Components/drawUtils.d.ts +4 -0
- package/applications/Components/getContrastingBackgroundTheme.d.ts +4 -0
- package/applications/Components/gfxUtils.d.ts +4 -0
- package/applications/Components/gfxUtils.js +1 -1
- package/applications/Components/layerOriginUtils.d.ts +4 -0
- package/applications/Components/styleUtils.d.ts +4 -0
- package/applications/Components/svgUtils.d.ts +4 -0
- package/applications/Components/webStyleSymbolUtils.d.ts +4 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{9bf758be13aaa5ebba64.js → 1b4c91833fb7b99c6cfe.js} +1 -1
- package/assets/esri/core/workers/chunks/{1476f4b9ed8a7d3330ce.js → 2f8a51d6b8229a90c240.js} +1 -1
- package/assets/esri/core/workers/chunks/3ad5de35a52b16be8dd5.js +1 -0
- package/assets/esri/core/workers/chunks/ba988cd3a49987a0fb83.js +1 -0
- package/assets/esri/core/workers/chunks/bd0545bb100b3393fd85.js +1 -0
- package/assets/esri/core/workers/chunks/{17d52156928ff61a02bf.js → fe59b594d2d8c536e649.js} +1 -1
- package/assets/esri/themes/base/widgets/_FeatureTable.scss +1 -0
- package/assets/esri/themes/base/widgets/_Grid.scss +4 -0
- package/assets/esri/themes/base/widgets/_Widget.scss +1 -0
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_ar.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_bg.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_bs.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_ca.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_cs.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_da.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_de.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_el.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_es.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_et.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_fi.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_fr.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_he.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_hr.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_hu.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_id.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_it.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_ja.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_ko.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_lt.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_lv.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_nb.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_nl.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_pl.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_pt-BR.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_pt-PT.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_ro.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_ru.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_sk.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_sl.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_sr.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_sv.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_th.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_tr.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_uk.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_vi.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_zh-CN.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_zh-HK.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_zh-TW.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_ar.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_bg.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_bs.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_ca.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_cs.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_da.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_de.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_el.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_es.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_et.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_fi.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_fr.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_he.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_hr.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_hu.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_id.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_it.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_ja.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_ko.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_lt.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_lv.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_nb.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_nl.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_pl.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_pt-BR.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_pt-PT.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_ro.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_ru.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_sk.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_sl.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_sr.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_sv.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_th.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_tr.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_uk.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_vi.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_zh-CN.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_zh-HK.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_zh-TW.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ar.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_bg.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_bs.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ca.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_cs.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_da.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_de.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_el.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_es.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_et.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_fi.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_fr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_he.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_hr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_hu.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_id.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_it.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ja.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ko.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_lt.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_lv.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_nb.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_nl.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pl.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pt-BR.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pt-PT.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ro.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ru.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sk.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sl.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sv.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_th.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_tr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_uk.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_vi.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-CN.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-HK.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-TW.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_ar.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_bg.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_bs.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_ca.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_cs.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_da.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_de.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_el.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_es.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_et.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_fi.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_fr.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_he.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_hr.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_hu.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_id.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_it.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_ja.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_ko.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_lt.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_lv.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_nb.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_nl.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_pl.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_pt-BR.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_pt-PT.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_ro.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_ru.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_sk.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_sl.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_sr.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_sv.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_th.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_tr.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_uk.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_vi.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_zh-CN.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_zh-HK.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_zh-TW.json +1 -1
- package/core/Accessor.js +1 -1
- package/core/Collection.js +1 -1
- package/core/Handles.js +1 -1
- package/core/a11yUtils.js +1 -1
- package/interfaces.d.ts +145 -2
- package/layers/CatalogLayer.js +1 -1
- package/layers/MapImageLayer.js +1 -1
- package/layers/catalog/CatalogDynamicGroupLayer.js +1 -1
- package/layers/support/layerUtils.js +1 -1
- package/package.json +1 -1
- package/rest/support/RelationshipQuery.js +1 -1
- package/support/revision.js +1 -1
- package/views/2d/AnimationManager.js +1 -1
- package/views/2d/GoToManager.js +1 -1
- package/views/2d/engine/vectorTiles/decluttering/SymbolRepository.js +1 -1
- package/views/2d/layers/FeatureLayerView2D.js +1 -1
- package/views/2d/layers/features/RenderState.js +1 -1
- package/views/2d/navigation/actions/Pan.js +1 -1
- package/views/SelectionManager.js +1 -1
- package/views/navigation/Navigation.js +1 -1
- package/views/ui/UI.js +1 -1
- package/widgets/BasemapLayerList.js +1 -1
- package/widgets/Feature/FeatureRelationship/FeatureRelationshipViewModel.js +1 -1
- package/widgets/Feature/support/featureUtils.js +1 -1
- package/widgets/FeatureTable/Grid/Column.js +1 -1
- package/widgets/FeatureTable/support/FeatureStore.js +1 -1
- package/widgets/FeatureTable.js +1 -1
- package/widgets/Features/FeaturesRelatedRecords.js +1 -1
- package/widgets/LayerList/support/layerListUtils.js +1 -1
- package/widgets/LayerList.js +1 -1
- package/widgets/Print/PrintViewModel.js +1 -1
- package/widgets/Print.js +1 -1
- package/assets/esri/core/workers/chunks/47edce5f7ab667a0b8af.js +0 -1
- package/assets/esri/core/workers/chunks/92979bf325405d87c090.js +0 -1
- package/assets/esri/core/workers/chunks/ed24ad7c7fbb02c307aa.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[201],{83116:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Z});var s=r(90237),i=r(78888),a=r(5503),n=r(62885),o=r(25482),l=r(4718),c=r(92474),u=r(81583),p=r(53966),d=r(97768),y=r(74887),h=r(84952),m=r(10107),g=(r(44208),r(40608)),f=r(43937),b=r(16930),v=r(20655),M=r(80812),S=r(43281),w=r(69622),_=(r(87811),r(73444));const T=new Set(["ar","bs","ca","hr","cs","da","nl","en","et","fi","fr","de","el","he","hu","id","it","ja","ko","lv","lt","nb","pl","ro","ru","sr","es","sv","th","tr","uk","vi"]);let I=class extends w.A{constructor(e){super(e),this.id=null,this.language=null,this.places=null,this.serviceUrl="https://basemapstyles-api.arcgis.com/arcgis/rest/services/styles/v2/webmaps",this.worldview=null}getLanguageParamValue(){if(this.language)return this.language;const e=(0,_.JK)().toLowerCase();switch(e){case"pt-br":return"pt-BR";case"pt-pt":return"pt-PT";case"zh-cn":return"zh-CN";case"zh-hk":return"zh-HK";case"zh-tw":return"zh-TW"}const t=(0,_.Z0)(e);return"pt"===t?"pt-BR":t&&T.has(t)?t:"global"}};(0,s._)([(0,m.MZ)()],I.prototype,"id",void 0),(0,s._)([(0,m.MZ)()],I.prototype,"language",void 0),(0,s._)([(0,m.MZ)()],I.prototype,"places",void 0),(0,s._)([(0,m.MZ)()],I.prototype,"serviceUrl",void 0),(0,s._)([(0,m.MZ)()],I.prototype,"worldview",void 0),I=(0,s._)([(0,g.$)("esri.support.BasemapStyle")],I);const L=I;var O,A=r(751);let x=0,U=O=class extends((0,o.Te)(c.A)){constructor(e){super(e),this.id=null,this.portalItem=null,this.spatialReference=null,this.style=null,this.thumbnailUrl=null,this.title="Basemap",this.id=Date.now().toString(16)+"-basemap-"+x++,this.baseLayers=new a.A,this.referenceLayers=new a.A;const t=e=>{e.parent&&e.parent!==this&&"remove"in e.parent&&e.parent.remove(e),e.parent=this,"elevation"===e.type&&p.A.getLogger(this).error(`Layer '${e.title}, id:${e.id}' of type '${e.type}' is not supported as a basemap layer and will therefore be ignored.`)},r=e=>{e.parent=null};this.addHandles([this.baseLayers.on("after-add",(e=>t(e.item))),this.referenceLayers.on("after-add",(e=>t(e.item))),this.baseLayers.on("after-remove",(e=>r(e.item))),this.referenceLayers.on("after-remove",(e=>r(e.item)))])}initialize(){this.when().catch((e=>{p.A.getLogger(this).error("#load()",`Failed to load basemap (title: '${this.title}', id: '${this.id}')`,e)})),this.resourceInfo&&this.read(this.resourceInfo.data,this.resourceInfo.context)}destroy(){const e=this.baseLayers.toArray();for(const t of e)t.destroy();const t=this.referenceLayers.toArray();for(const e of t)e.destroy();this.baseLayers.destroy(),this.referenceLayers.destroy(),this.portalItem=(0,d.pR)(this.portalItem)}normalizeCtorArgs(e){return e&&"resourceInfo"in e&&(this._set("resourceInfo",e.resourceInfo),delete(e={...e}).resourceInfo),e}set baseLayers(e){this._set("baseLayers",(0,n.V)(e,this._get("baseLayers")))}_writeBaseLayers(e,t,r){const s=[];e?(r={...r,layerContainerType:"basemap"},this.baseLayers.forEach((e=>{const t=(0,A.CJ)(e,r.webmap?r.webmap.getLayerJSONFromResourceInfo(e):null,r);null!=t&&s.push(t)})),this.referenceLayers.forEach((e=>{const t=(0,A.CJ)(e,r.webmap?r.webmap.getLayerJSONFromResourceInfo(e):null,r);null!=t&&("scene"!==e.type&&(t.isReference=!0),s.push(t))})),t.baseMapLayers=s):t.baseMapLayers=s}set referenceLayers(e){this._set("referenceLayers",(0,n.V)(e,this._get("referenceLayers")))}writeTitle(e,t){t.title=e||"Basemap"}load(e){return this.addResolvingPromise(this._loadFromSource(e)),Promise.resolve(this)}loadAll(){return(0,u.g)(this,(e=>{e(this.baseLayers,this.referenceLayers)}))}clone(){const e={id:this.id,title:this.title,portalItem:this.portalItem,baseLayers:this.baseLayers.map((e=>(0,l.Nb)(e)?e.clone():e)),referenceLayers:this.referenceLayers.map((e=>(0,l.Nb)(e)?e.clone():e))};return this.loaded&&(e.loadStatus="loaded"),new O({resourceInfo:this.resourceInfo}).set(e)}read(e,t){this.resourceInfo||this._set("resourceInfo",{data:e,context:t}),super.read(e,t)}write(e,t){return e=e||{},t?.origin||(t={origin:"web-map",...t}),super.write(e,t),!this.loaded&&this.resourceInfo?.data.baseMapLayers&&(e.baseMapLayers=this.resourceInfo.data.baseMapLayers.map((e=>{const t=(0,l.o8)(e);return t.url&&(0,h.BQ)(t.url)&&(t.url=`https:${t.url}`),t.templateUrl&&(0,h.BQ)(t.templateUrl)&&(t.templateUrl=`https:${t.templateUrl}`),t}))),e}async _loadFromSource(e){const{resourceInfo:t,portalItem:r,style:s}=this;(0,y.Te)(e);const i=[];if(t){const r=t.context?t.context.url:null;if(i.push(this._loadLayersFromJSON(t.data,r,e)),t.data.id&&!t.data.title){const e=t.data.id;i.push((0,S.q)(e).then((e=>{e&&this.read({title:e},t.context)})))}}else r?i.push(this._loadFromItem(r,e)):s&&i.push(this._loadFromStylesService(s,e));await Promise.all(i)}async _loadLayersFromJSON(e,t,s){const i=this.resourceInfo?.context,a=this.portalItem?.portal||i?.portal||null,n=G[i?.origin||""]??"web-map",{populateOperationalLayers:o}=await Promise.all([r.e(7251),r.e(5356),r.e(7364)]).then(r.bind(r,75356)),l=[];if((0,y.Te)(s),e.baseMapLayers&&Array.isArray(e.baseMapLayers)){const r={context:{...i,origin:n,url:t,portal:a,layerContainerType:"basemap"},defaultLayerType:"DefaultTileLayer"},s=e=>"web-scene"===n&&"ArcGISSceneServiceLayer"===e.layerType||e.isReference,c=o(this.baseLayers,e.baseMapLayers.filter((e=>!s(e))),r);l.push(c);const u=o(this.referenceLayers,e.baseMapLayers.filter(s),r);l.push(u)}await Promise.allSettled(l)}async _loadFromItem(e,t){const r=await e.load(t),s=await r.fetchData("json",t),i=(0,h.An)(e.itemUrl??"");return this._set("resourceInfo",{data:s.baseMap??{},context:{origin:k[e.type||""]??"web-map",portal:e.portal||v.A.getDefault(),url:i}}),this.read(this.resourceInfo.data,this.resourceInfo.context),this.read({spatialReference:s.spatialReference},this.resourceInfo.context),this.read({title:e.title,thumbnailUrl:e.thumbnailUrl},{origin:"portal-item",portal:e.portal||v.A.getDefault(),url:i}),this._loadLayersFromJSON(this.resourceInfo.data,i,t)}async _loadFromStylesService(e,t){const r=`${e.serviceUrl}/${e.id}`,s=(await(0,i.A)(r,{query:{language:e.getLanguageParamValue(),places:e.places,worldview:e.worldview},signal:t?.signal})).data,a=(0,h.An)(r);return this._set("resourceInfo",{data:s.baseMap??{},context:{origin:"web-map",url:a}}),this.read(this.resourceInfo.data,this.resourceInfo.context),this.read({spatialReference:s.spatialReference},this.resourceInfo.context),this._loadLayersFromJSON(this.resourceInfo.data,a,t)}static fromId(e){const t=S.H[e];return t?t.itemId?new O({portalItem:{id:t.itemId,portal:{url:"https://www.arcgis.com"}}}):O.fromJSON(t,{origin:t.is3d?"web-scene":"web-map"}):null}};(0,s._)([(0,m.MZ)({json:{write:{ignoreOrigin:!0,target:"baseMapLayers",writer(e,t,r,s){this._writeBaseLayers(e,t,s)}},origins:{"web-scene":{write:{ignoreOrigin:!0,target:{baseMapLayers:{type:a.A}},writer(e,t,r,s){this._writeBaseLayers(e,t,s)}}}}}})],U.prototype,"baseLayers",null),(0,s._)([(0,m.MZ)({type:String,json:{origins:{"web-scene":{write:!0}}}})],U.prototype,"id",void 0),(0,s._)([(0,m.MZ)({type:M.default})],U.prototype,"portalItem",void 0),(0,s._)([(0,m.MZ)()],U.prototype,"referenceLayers",null),(0,s._)([(0,m.MZ)({readOnly:!0})],U.prototype,"resourceInfo",void 0),(0,s._)([(0,m.MZ)({type:b.A})],U.prototype,"spatialReference",void 0),(0,s._)([(0,m.MZ)({type:L})],U.prototype,"style",void 0),(0,s._)([(0,m.MZ)()],U.prototype,"thumbnailUrl",void 0),(0,s._)([(0,m.MZ)({type:String,json:{origins:{"web-scene":{write:{isRequired:!0}}}}})],U.prototype,"title",void 0),(0,s._)([(0,f.K)("title")],U.prototype,"writeTitle",null),U=O=(0,s._)([(0,g.$)("esri.Basemap")],U);const k={"Web Scene":"web-scene","Web Map":"web-map","Link Chart":"link-chart"},G={"web-scene":"web-scene","web-map":"web-map","link-chart":"link-chart"},Z=U},97159:(e,t,r)=>{r.d(t,{M:()=>f,a:()=>m,b:()=>v,e:()=>y,f:()=>a,i:()=>p,p:()=>d,r:()=>o,t:()=>n,w:()=>l});var s=r(70333),i=r(84952);function a(e,t){const r=t?.url?.path;if(e&&r&&(e=(0,i.s2)(e,r,{preserveProtocolRelative:!0}),t.portalItem&&t.readResourcePaths)){const r=(0,i.V1)(e,t.portalItem.itemUrl);null!=r&&u.test(r)&&t.readResourcePaths.push(t.portalItem.resourceFromPath(r).path)}return(e=h(e,t?.portal))&&c.test(e)?m(e):e}function n(e,t,r=f.YES){if(null==(e=e&&c.test(e)?g(e):e))return e;!(0,i.oP)(e)&&t?.blockedRelativeUrls&&t.blockedRelativeUrls.push(e);let s=(0,i.s2)(e);if(t){const r=t.verifyItemRelativeUrls?.rootPath||t.url?.path;if(r){const a=h(r,t.portal),n=h(s,t.portal);s=(0,i.V1)(n,a,a),null!=s&&s!==n&&s!==e&&t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.writtenUrls.push(s)}}return s=y(s,t?.portal),(0,i.oP)(s)&&(s=(0,i.S8)(s)),t?.resources&&t?.portalItem&&!(0,i.oP)(s)&&!(0,i.DB)(s)&&r===f.YES&&t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(s),compress:!1}),s}function o(e,t,r){return a(e,r)}function l(e,t,r,s){const i=n(e,s);void 0!==i&&(t[r]=i)}const c=/\/items\/([^/]+)\/resources\/(.*)/,u=/^\.\/resources\//;function p(e){const t=e?.match(c)??null;return t?.[1]??null}function d(e){const t=e?.match(c)??null;if(null==t)return null;const r=t[2],s=r.lastIndexOf("/");if(-1===s){const{path:e,extension:t}=(0,i.xw)(r);return{prefix:null,filename:e,extension:t}}const{path:a,extension:n}=(0,i.xw)(r.slice(s+1));return{prefix:r.slice(0,s),filename:a,extension:n}}function y(e,t){return t&&!t.isPortal&&t.urlKey&&t.customBaseUrl?(0,i.T1)(e,`${t.urlKey}.${t.customBaseUrl}`,t.portalHostname):e}function h(e,t){if(!t||t.isPortal||!t.urlKey||!t.customBaseUrl)return e;const r=`${t.urlKey}.${t.customBaseUrl}`,s=(0,i.Xq)();return(0,i.FX)(s,`${s.scheme}://${r}`)?(0,i.T1)(e,t.portalHostname,r):(0,i.T1)(e,r,t.portalHostname)}function m(e){if(!e)return e||null;let t=e;return t&&s.id&&!s.id.findCredential(t)&&(t=s.id._normalizeAGOLorgDomain(t),t=t.replace(/^https?:\/\/www\.arcgis\.com/,"https://cdn.arcgis.com"),t=t.replace(/^https?:\/\/devext\.arcgis\.com/,"https://cdndev.arcgis.com"),t=t.replace(/^https?:\/\/qaext\.arcgis\.com/,"https://cdnqa.arcgis.com")),t}function g(e){if(!e)return e||null;let t=e;return t=t.replace(/^https?:\/\/cdn\.arcgis\.com/,"https://www.arcgis.com"),t=t.replace(/^https?:\/\/cdndev\.arcgis\.com/,"https://devext.arcgis.com"),t=t.replace(/^https?:\/\/cdnqa\.arcgis\.com/,"https://qaext.arcgis.com"),t&&s.id&&!s.id.findCredential(t)&&(t=s.id._normalizeAGOLorgDomain(t)),t}var f,b;(b=f||(f={}))[b.YES=0]="YES",b[b.NO=1]="NO";const v=Object.freeze(Object.defineProperty({__proto__:null,get MarkKeep(){return f},ensureMainOnlineDomain:y,fromCDNUrl:g,fromJSON:a,itemIdFromResourceUrl:p,prefixAndFilenameFromResourceUrl:d,read:o,toCDNUrl:m,toJSON:n,write:l},Symbol.toStringTag,{value:"Module"}))},40876:(e,t,r)=>{r.d(t,{TS:()=>a,V6:()=>i,c4:()=>n,qh:()=>c,z$:()=>l});const s={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function i(e){return!!s[e]||!!s[e.toLowerCase()]}function a(e){return s[e]??s[e.toLowerCase()]}function n(e){return[...a(e)]}function o(e,t,r){r<0&&++r,r>1&&--r;const s=6*r;return s<1?e+(t-e)*s:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function l(e,t,r,s=1){const i=(e%360+360)%360/360,a=r<=.5?r*(t+1):r+t-r*t,n=2*r-a;return[Math.round(255*o(n,a,i+1/3)),Math.round(255*o(n,a,i)),Math.round(255*o(n,a,i-1/3)),s]}function c(e){const t=e.length>5,r=t?8:4,s=(1<<r)-1,i=t?1:17,a=t?9===e.length:5===e.length;let n=Number("0x"+e.substr(1));if(isNaN(n))return null;const o=[0,0,0,1];let l;return a&&(l=n&s,n>>=r,o[3]=i*l/255),l=n&s,n>>=r,o[2]=i*l,l=n&s,n>>=r,o[1]=i*l,l=n&s,n>>=r,o[0]=i*l,o}},92474:(e,t,r)=>{r.d(t,{A:()=>m});var s=r(90237),i=r(49186),a=r(97768),n=r(61893),o=r(74887),l=r(67076),c=r(10107),u=r(40608);const p="loaded",d=e=>{let t=class extends e{constructor(...e){super(...e),this._loadController=null,this.loadError=null,this.loadStatus="not-loaded",this._set("loadWarnings",[]),this.addResolvingPromise(new Promise((e=>{const t=this.load.bind(this);this.load=r=>{const s=new Promise(((e,t)=>{const s=(0,o.NY)(r,t);this.destroyed&&t(new i.A("load:instance-destroyed",`Instance of '${this.declaredClass||this.constructor.name}' is already destroyed`,{instance:this})),this.when(e,t).finally((()=>{s&&s.remove()}))}));if("not-loaded"===this.loadStatus){this._set("loadStatus","loading");const e=this._loadController=new AbortController;t({signal:e.signal})}return e(),s}}))),this.when((()=>{this._set("loadStatus",p),this._loadController=null}),(e=>{this._set("loadStatus","failed"),this._set("loadError",e),this._loadController=null}))}destroy(){this._loadController&&(this._loadController=(0,a.DC)(this._loadController),this._promiseProps.abort()),this._set("loadError",null),this._set("loadWarnings",[])}get loaded(){return this.loadStatus===p}get loadWarnings(){return this._get("loadWarnings")}load(){return null}cancelLoad(){return this.isFulfilled()||(this._set("loadError",new i.A("load:cancelled","Cancelled")),this._loadController?.abort(),this._promiseProps.abort()),this}};return(0,s._)([(0,c.MZ)({readOnly:!0})],t.prototype,"loaded",null),(0,s._)([(0,c.MZ)({readOnly:!0})],t.prototype,"loadError",void 0),(0,s._)([(0,c.MZ)({clonable:!1})],t.prototype,"loadStatus",void 0),(0,s._)([(0,c.MZ)({type:[l.A],readOnly:!0})],t.prototype,"loadWarnings",null),t=(0,s._)([(0,u.$)("esri.core.Loadable")],t),t};let y=class extends(d(n.Z)){};var h;y=(0,s._)([(0,u.$)("esri.core.Loadable")],y),(h=y||(y={})).LoadableMixin=d,h.isLoadable=function(e){return!(!e||!e.load)};const m=y},3483:(e,t,r)=>{function s(e,t){if(!t)return e;for(const r of t)null!=r&&e.add(r);return e}function i(e,t){return null!=t&&e.add(t),e}function a(e,t){const r=new Set;return s(r,e),s(r,t),r}function n(e,t){const r=new Set;for(const s of t)e.has(s)&&r.add(s);return r}function o(e,t){if(!e||!t)return!1;if(e===t)return!0;for(const r of e)if(!t.has(r))return!1;return!0}function l(e,t){if(null==e&&null==t)return!0;if(null==e||null==t||e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}function c(e,t){const r=new Set(e);for(const e of t)r.delete(e);return r}r.d(t,{E$:()=>n,FB:()=>s,KC:()=>a,Yy:()=>o,aI:()=>l,iv:()=>c,kb:()=>i})},62885:(e,t,r)=>{r.d(t,{H:()=>a,V:()=>i});var s=r(5503);function i(e,t,r=s.A){return t||(t=new r),t===e||(t.removeAll(),(i=e)&&(Array.isArray(i)||"items"in i&&Array.isArray(i.items))?t.addMany(e):e&&t.add(e)),t;var i}function a(e){return e}},91829:(e,t,r)=>{function s(){return[0,0,0,0]}function i(e,t,r,s){return[e,t,r,s]}function a(){return i(1,1,1,1)}function n(){return i(1,0,0,0)}function o(){return i(0,1,0,0)}function l(){return i(0,0,1,0)}function c(){return i(0,0,0,1)}r.d(t,{fA:()=>i,vt:()=>s});const u=a(),p=n(),d=o(),y=l(),h=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:u,UNIT_W:h,UNIT_X:p,UNIT_Y:d,UNIT_Z:y,ZEROS:[0,0,0,0],clone:function(e){return[e[0],e[1],e[2],e[3]]},create:s,createView:function(e,t){return new Float64Array(e,t,4)},fromArray:function(e,t=[0,0,0,0]){const r=Math.min(4,e.length);for(let s=0;s<r;++s)t[s]=e[s];return t},fromValues:i,ones:a,unitW:c,unitX:n,unitY:o,unitZ:l,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},81583:(e,t,r)=>{r.d(t,{L:()=>o,g:()=>n});var s=r(60999),i=r(5503),a=r(92474);async function n(e,t){return await e.load(),o(e,t)}async function o(e,t){const r=[],n=(...e)=>{for(const t of e)null!=t&&(Array.isArray(t)?n(...t):i.A.isCollection(t)?t.forEach((e=>n(e))):a.A.isLoadable(t)&&r.push(t))};t(n);let o=null;if(await(0,s.Tj)(r,(async e=>{const t=await(0,s.Ke)(function(e){return"loadAll"in e&&"function"==typeof e.loadAll}(e)?e.loadAll():e.load());!1!==t.ok||o||(o=t)})),o)throw o.error;return e}},90629:(e,t,r)=>{r.d(t,{Lz:()=>n,PN:()=>o,cr:()=>l,tc:()=>c});const s=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i,i="screenUtils.toPt: input not recognized!",a=96;function n(e){return e?e/72*a:0}function o(e){return e?72*e/a:0}function l(e){if("string"==typeof e){const t=e.match(s);if(t){const r=Number(t[1]),s=t[3]&&t[3].toLowerCase(),i="-"===e.charAt(0),a="px"===s?o(r):r;return i?-a:a}return console.warn(i),null}return e}function c(e=0,t=0){return{x:e,y:t}}},88930:(e,t,r)=>{r.d(t,{S1:()=>o,lL:()=>c,mi:()=>l,t:()=>u,vf:()=>n});var s=r(97770),i=r(56400),a=r(96285);const n={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8};function o(e,t,r,n=i.qU){const o=new a.oh((0,s.wj)(n)),l=a.c9.fromJSDate(e,{zone:o}),c="decades"===r||"centuries"===r?"year":p(r);return"decades"===r&&(t*=10),"centuries"===r&&(t*=100),l.plus({[c]:t}).toJSDate()}function l(e,t,r="milliseconds"){const s=e.getTime(),i=u(t,r,"milliseconds");return new Date(s+i)}function c(e,t,r=i.qU){const n=new a.oh((0,s.wj)(r)),o=a.c9.fromJSDate(e,{zone:n});if("decades"===t||"centuries"===t){const e=o.startOf("year"),{year:r}=e,s=r-r%("decades"===t?10:100);return e.set({year:s}).toJSDate()}const l=p(t);return o.startOf(l).toJSDate()}function u(e,t,r){return 0===e?0:e*n[t]/n[r]}function p(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}},59456:(e,t,r)=>{r.d(t,{yR:()=>u});var s=r(56507),i=r(5443),a=r(91075),n=r(48526),o=r(86738),l=r(39829),c=r(82799);r(16930),r(50498),r(65864);const u={base:a.A,key:"type",typeMap:{extent:i.A,multipoint:n.A,point:o.A,polyline:c.A,polygon:l.A}};(0,s.aq)(u)},65864:(e,t,r)=>{r.d(t,{$B:()=>m,Bi:()=>y,Rg:()=>d,U9:()=>u,ZC:()=>c,fT:()=>p,rS:()=>h,xD:()=>f});var s=r(5443),i=r(91075),a=r(48526),n=r(86738),o=r(39829),l=r(82799);function c(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function u(e){return void 0!==e.points}function p(e){return void 0!==e.x&&void 0!==e.y}function d(e){return void 0!==e.paths}function y(e){return void 0!==e.rings}function h(e){return null==e?null:e instanceof i.A?e:p(e)?n.A.fromJSON(e):d(e)?l.A.fromJSON(e):y(e)?o.A.fromJSON(e):u(e)?a.A.fromJSON(e):c(e)?s.A.fromJSON(e):null}function m(e){return e?p(e)?"esriGeometryPoint":d(e)?"esriGeometryPolyline":y(e)?"esriGeometryPolygon":c(e)?"esriGeometryEnvelope":u(e)?"esriGeometryMultipoint":null:null}const g={esriGeometryPoint:n.A,esriGeometryPolyline:l.A,esriGeometryPolygon:o.A,esriGeometryEnvelope:s.A,esriGeometryMultipoint:a.A};function f(e){return e&&g[e]||null}},62577:(e,t,r)=>{function s(e){return e?{originPosition:"upper-left"===e.originPosition?"upperLeft":"lower-left"===e.originPosition?"lowerLeft":e.originPosition,scale:e.tolerance?[e.tolerance,e.tolerance,1,1]:[1,1,1,1],translate:null!=e.extent?[e.extent.xmin,e.extent.ymax,e.extent.zmin??0,e.extent.mmin??0]:[0,0,0,0]}:null}function i(e){if(function(e){return"lowerLeft"===e.originPosition&&4===e.scale.length&&4===e.translate.length}(e))return e;const{originPosition:t,scale:r,translate:s}=e,i=r[0]??1,a=r[1]??1;return{originPosition:"lowerLeft",scale:[i,"lowerLeft"===t?a:-a,r[2]??1,r[3]??1],translate:[s[0]??0,s[1]??0,s[2]??0,s[3]??0]}}function a({scale:e,translate:t},r){return r*e[0]+t[0]}function n({scale:e,translate:t},r){return r*e[1]+t[1]}function o({scale:e,translate:t},r){return(r??0)*e[2]+t[2]}function l({scale:e,translate:t},r){return r?r*e[3]+t[3]:0}function c(e,t){return e&&t?y:e&&!t?p:!e&&t?d:u}r.d(t,{$X:()=>b,Gy:()=>m,P5:()=>v,SW:()=>g,Tr:()=>f,VV:()=>s}),r(65864);const u=(e,t)=>{const r=new Array(t.length);if(!t.length)return r;const s=t[0];let i=a(e,s[0]),o=n(e,s[1]);r[0]=[i,o];const{scale:l,originPosition:c}=e,u=l[0],p="lowerLeft"===c?l[1]:-l[1];for(let e=1;e<t.length;e++){const[s,a]=t[e];i+=u*s,o+=p*a,r[e]=[i,o]}return r},p=(e,t)=>{const r=new Array(t.length);if(!t.length)return r;const s=t[0];let i=a(e,s[0]),l=n(e,s[1]);r[0]=[i,l,o(e,s[2])];const{scale:c,originPosition:u}=e,p=c[0],d="lowerLeft"===u?c[1]:-c[1];for(let s=1;s<t.length;s++){const[a,n,c]=t[s];i+=p*a,l+=d*n,r[s]=[i,l,o(e,c)]}return r},d=(e,t)=>{const r=new Array(t.length);if(!t.length)return r;const s=t[0];let i=a(e,s[0]),o=n(e,s[1]);r[0]=[i,o,l(e,s[2])];const{scale:c,originPosition:u}=e,p=c[0],d="lowerLeft"===u?c[1]:-c[1];for(let s=1;s<t.length;s++){const[a,n,c]=t[s];i+=p*a,o+=d*n,r[s]=[i,o,l(e,c)]}return r},y=(e,t)=>{const r=new Array(t.length);if(!t.length)return r;const s=t[0];let i=a(e,s[0]),c=n(e,s[1]);r[0]=[i,c,o(e,s[2]),l(e,s[3])];const{scale:u,originPosition:p}=e,d=u[0],y="lowerLeft"===p?u[1]:-u[1];for(let s=1;s<t.length;s++){const[a,n,u,p]=t[s];i+=d*a,c+=y*n,r[s]=[i,c,o(e,u),l(e,p)]}return r};function h(e,t,r){const s=new Array(r.length);for(let i=0;i<r.length;i++)s[i]=t(e,r[i]);return s}function m(e,t,r){const s=i(e);return t.x=function({scale:e,translate:t},r){return Math.round((r-t[0])/e[0])}(s,r.x),t.y=function({scale:e,translate:t},r){return Math.round((r-t[1])/e[1])}(s,r.y),null!=r.z&&(t.z=function({scale:e,translate:t},r){return Math.round(((r??0)-t[2])/e[2])}(s,r.z)),null!=r.m&&(t.m=function({scale:e,translate:t},r){return r?Math.round((r-t[3])/e[3]):0}(s,r.m)),t}function g(e,t,r,s=r?.hasZ??!1,a=r?.hasM??!1){if(null!=r){const n=i(e);t.points=c(s,a)(n,r.points),t.hasZ=s,t.hasM=a}return t}function f(e,t,r,s=null!=r?.z,c=null!=r?.m){if(null==r)return t;const u=i(e);return t.x=a(u,r.x),t.y=n(u,r.y),s&&(t.z=o(u,r.z)),c&&(t.m=l(u,r.m)),t}function b(e,t,r,s=r?.hasZ??!1,a=r?.hasM??!1){if(null!=r){const n=i(e);t.rings=h(n,c(s,a),r.rings),t.hasZ=s,t.hasM=a}return t}function v(e,t,r,s=r?.hasZ??!1,a=r?.hasM??!1){if(null!=r){const n=i(e);t.paths=h(n,c(s,a),r.paths),t.hasZ=s,t.hasM=a}return t}},50498:(e,t,r)=>{r.d(t,{Y:()=>a,g:()=>i});var s=r(66552);const i=(0,s.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),a=(0,s.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},59247:(e,t,r)=>{r.d(t,{bv:()=>l,Fk:()=>c,yG:()=>u,$b:()=>p,Nd:()=>d,jm:()=>y,sK:()=>g});var s=r(40876),i=r(90629);function a(){const e=new Float32Array(16);return e[0]=1,e[5]=1,e[10]=1,e[15]=1,e}const n=a();Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:n,clone:function(e){const t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},create:a,createView:function(e,t){return new Float32Array(e,t,16)},fromValues:function(e,t,r,s,i,a,n,o,l,c,u,p,d,y,h,m){const g=new Float32Array(16);return g[0]=e,g[1]=t,g[2]=r,g[3]=s,g[4]=i,g[5]=a,g[6]=n,g[7]=o,g[8]=l,g[9]=c,g[10]=u,g[11]=p,g[12]=d,g[13]=y,g[14]=h,g[15]=m,g}},Symbol.toStringTag,{value:"Module"}));var o=r(58083);class l{constructor(e,t,r){this.strength=e,this.radius=t,this.threshold=r,this.type="bloom"}interpolate(e,t,r){this.strength=h(e.strength,t.strength,r),this.radius=h(e.radius,t.radius,r),this.threshold=h(e.threshold,t.threshold,r)}clone(){return new l(this.strength,this.radius,this.threshold)}toJSON(){return{type:"bloom",radius:m(this.radius),strength:this.strength,threshold:this.threshold}}}class c{constructor(e){this.radius=e,this.type="blur"}interpolate(e,t,r){this.radius=Math.round(h(e.radius,t.radius,r))}clone(){return new c(this.radius)}toJSON(){return{type:"blur",radius:m(this.radius)}}}class u{constructor(e,t){this.type=e,this.amount=t,"invert"!==this.type&&"grayscale"!==this.type&&"sepia"!==this.type||(this.amount=Math.min(this.amount,1))}get colorMatrix(){return this._colorMatrix||this._updateMatrix(),this._colorMatrix}interpolate(e,t,r){this.amount=h(e.amount,t.amount,r),this._updateMatrix()}clone(){return new u(this.type,this.amount)}toJSON(){return{type:this.type,amount:this.amount}}_updateMatrix(){const e=this._colorMatrix||a();switch(this.type){case"brightness":this._colorMatrix=((e,t)=>{const r=(0,o.hZ)(e,t,0,0,0,0,t,0,0,0,0,t,0,0,0,0,1);return(0,o.mg)(r,r)})(e,this.amount);break;case"contrast":this._colorMatrix=((e,t)=>{const r=(0,o.hZ)(e,t,0,0,.5-.5*t,0,t,0,.5-.5*t,0,0,t,.5-.5*t,0,0,0,1);return(0,o.mg)(r,r)})(e,this.amount);break;case"grayscale":this._colorMatrix=((e,t)=>{const r=1-this.amount,s=(0,o.hZ)(e,.2126+.7874*r,.7152-.7152*r,.0722-.0722*r,0,.2126-.2126*r,.7152+.2848*r,.0722-.0722*r,0,.2126-.2126*r,.7152-.7152*r,.0722+.9278*r,0,0,0,0,1);return(0,o.mg)(s,s)})(e);break;case"invert":this._colorMatrix=((e,t)=>{const r=1-2*t,s=(0,o.hZ)(e,r,0,0,t,0,r,0,t,0,0,r,t,0,0,0,1);return(0,o.mg)(s,s)})(e,this.amount);break;case"saturate":this._colorMatrix=((e,t)=>{const r=(0,o.hZ)(e,.213+.787*t,.715-.715*t,.072-.072*t,0,.213-.213*t,.715+.285*t,.072-.072*t,0,.213-.213*t,.715-.715*t,.072+.928*t,0,0,0,0,1);return(0,o.mg)(r,r)})(e,this.amount);break;case"sepia":this._colorMatrix=((e,t)=>{const r=1-this.amount,s=(0,o.hZ)(e,.393+.607*r,.769-.769*r,.189-.189*r,0,.349-.349*r,.686+.314*r,.168-.168*r,0,.272-.272*r,.534-.534*r,.131+.869*r,0,0,0,0,1);return(0,o.mg)(s,s)})(e)}}}class p{constructor(e,t,r,s){this.offsetX=e,this.offsetY=t,this.blurRadius=r,this.color=s,this.type="drop-shadow"}interpolate(e,t,r){this.offsetX=h(e.offsetX,t.offsetX,r),this.offsetY=h(e.offsetY,t.offsetY,r),this.blurRadius=h(e.blurRadius,t.blurRadius,r),this.color[0]=Math.round(h(e.color[0],t.color[0],r)),this.color[1]=Math.round(h(e.color[1],t.color[1],r)),this.color[2]=Math.round(h(e.color[2],t.color[2],r)),this.color[3]=h(e.color[3],t.color[3],r)}clone(){return new p(this.offsetX,this.offsetY,this.blurRadius,[...this.color])}toJSON(){const e=[...this.color];return e[3]*=255,{type:"drop-shadow",xoffset:m(this.offsetX),yoffset:m(this.offsetY),blurRadius:m(this.blurRadius),color:e}}}class d{constructor(e){this.angle=e,this.type="hue-rotate"}get colorMatrix(){return this._colorMatrix||this._updateMatrix(),this._colorMatrix}interpolate(e,t,r){this.angle=h(e.angle,t.angle,r),this._updateMatrix()}clone(){return new d(this.angle)}toJSON(){return{type:"hue-rotate",angle:this.angle}}_updateMatrix(){const e=this._colorMatrix||a();this._colorMatrix=((e,t)=>{const r=Math.sin(t*Math.PI/180),s=Math.cos(t*Math.PI/180),i=(0,o.hZ)(e,.213+.787*s-.213*r,.715-.715*s-.715*r,.072-.072*s+.928*r,0,.213-.213*s+.143*r,.715+.285*s+.14*r,.072-.072*s-.283*r,0,.213-.213*s-.787*r,.715-.715*s+.715*r,.072+.928*s+.072*r,0,0,0,0,1);return(0,o.mg)(i,i)})(e,this.angle)}}class y{constructor(e){this.amount=e,this.type="opacity",this.amount=Math.min(this.amount,1)}interpolate(e,t,r){this.amount=h(e.amount,t.amount,r)}clone(){return new y(this.amount)}toJSON(){return{type:"opacity",amount:this.amount}}}function h(e,t,r){return e+(t-e)*r}function m(e){return Math.round(1e3*(0,i.PN)(e))/1e3}function g(e){switch(e.type){case"grayscale":case"sepia":case"invert":return new u(e.type,0);case"saturate":case"brightness":case"contrast":return new u(e.type,1);case"opacity":return new y(1);case"hue-rotate":return new d(0);case"blur":return new c(0);case"drop-shadow":return new p(0,0,0,[...(0,s.TS)("transparent")]);case"bloom":return new l(0,0,1)}}},27865:(e,t,r)=>{r.d(t,{O9:()=>a,dw:()=>n,mj:()=>i});var s=r(59247);function i(e,t){const r=e.length>t.length?e:t;return(e.length>t.length?t:e).every(((e,t)=>e.type===r[t].type))}function a(e,t){const r=e.length>t.length?e:t,i=e.length>t.length?t:e;for(let e=i.length;e<r.length;e++)i.push((0,s.sK)(r[e]))}function n(e){const t=e[0];return!!t&&"type"in t}},56721:(e,t,r)=>{r.d(t,{Mh:()=>y,A5:()=>M,wb:()=>v}),r(47566),r(44208),r(49186),r(34727);var s=r(97768),i=(r(97770),r(56400),r(58769)),a=r(96285);r(73444),new Map([["hours",3600],["minutes",60],["seconds",1],["deciseconds",.1],["centiseconds",.01],["milliseconds",.001]]);const n="yyyy-MM-dd";var o,l;(l=o||(o={})).HM="HH:mm",l.HMS="HH:mm:ss",l.HMS_MS="HH:mm:ss.SSS";const c=[o.HMS_MS,o.HMS,o.HM,"TT"];function u(e){if(!e||!(0,i.K)(e))return null;const t=a.c9.fromFormat(e,n);return t.isValid?t:null}function p(e){return e&&(0,i.K)(e)?(0,s.Pb)(c,(t=>{const r=a.c9.fromFormat(e,t);return r.isValid?r:null}))??null:null}function d(e){if(!e||!(0,i.K)(e))return null;const t=a.c9.fromISO(e);return t.isValid?t:null}var y,h;new Set(["date-only","time-only","timestamp-offset"]),(h=y||(y={})).VALUE_OUT_OF_RANGE="domain-validation-error::value-out-of-range",h.INVALID_CODED_VALUE="domain-validation-error::invalid-coded-value";const m=new Set(["integer","small-integer","big-integer","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeBigInteger"]);function g(e){return null!=e&&("date-only"===e.type||"esriFieldTypeDateOnly"===e.type)}function f(e){return null!=e&&("timestamp-offset"===e.type||"esriFieldTypeTimestampOffset"===e.type)}function b(e){return null!=e&&("time-only"===e.type||"esriFieldTypeTimeOnly"===e.type)}function v(e,t,r){const s=r??e?.domain;if(!s)return null;switch(s.type){case"range":{const{min:s,max:i}=M(e,r);if(null!=s&&+t<s||null!=i&&+t>i)return y.VALUE_OUT_OF_RANGE;break}case"coded-value":case"codedValue":if(null==s.codedValues||s.codedValues.every((e=>null==e||e.code!==t)))return y.INVALID_CODED_VALUE}return null}function M(e,t){const r=t??e?.domain;if(!r||"range"!==r.type)return;const s="range"in r?r.range[0]:r.minValue,i="range"in r?r.range[1]:r.maxValue,a=function(e){return null!=e&&m.has(e.type)}(e);return g(e)||b(e)||f(e)?{...S(e,i,s),isInteger:a}:{min:null!=s&&"number"==typeof s?s:null,max:null!=i&&"number"==typeof i?i:null,rawMin:s,rawMax:i,isInteger:a}}function S(e,t,r){return g(e)?{min:u(r)?.toMillis(),max:u(t)?.toMillis(),rawMin:r,rawMax:t}:b(e)?{min:p(r)?.toMillis(),max:p(t)?.toMillis(),rawMin:r,rawMax:t}:f(e)?{min:d(r)?.toMillis(),max:d(t)?.toMillis(),rawMin:r,rawMax:t}:{max:null,min:null}}},30524:(e,t,r)=>{r.d(t,{Ah:()=>J,Bz:()=>U,CJ:()=>te,DB:()=>g,Dx:()=>M,JL:()=>ce,OG:()=>K,OH:()=>H,R$:()=>x,WA:()=>E,WX:()=>ee,Xz:()=>Q,_b:()=>G,_w:()=>f,eX:()=>_,hL:()=>v,lD:()=>k,mB:()=>S,nw:()=>ue,rS:()=>c,rq:()=>b,sv:()=>h,te:()=>W,uo:()=>le,vE:()=>j,yM:()=>$,yp:()=>d,zD:()=>z}),r(49186);var s=r(93637),i=r(3483),a=r(56721),n=r(71386);const o=/^([0-9_])/,l=/[^a-z0-9_\u0080-\uffff]+/gi;function c(e){return null==e?null:e.trim().replaceAll(l,"_").replace(o,"F$1")||null}const u=["field","field2","field3","normalizationField","rotationInfo.field","proportionalSymbolInfo.field","proportionalSymbolInfo.normalizationField","colorInfo.field","colorInfo.normalizationField"],p=["field","normalizationField"];function d(e,t){if(null!=e&&null!=t)for(const r of Array.isArray(e)?e:[e])if(y(u,r,t),"visualVariables"in r&&r.visualVariables)for(const e of r.visualVariables)y(p,e,t)}function y(e,t,r){if(e)for(const i of e){const e=(0,s.wc)(i,t),a=e&&"function"!=typeof e&&r.get(e);a&&(0,s.sM)(i,a.name,t)}}function h(e,t){if(null!=e&&t?.fields?.length)if("startField"in e){const r=t.get(e.startField),s=t.get(e.endField);e.startField=r?.name??null,e.endField=s?.name??null}else{const r=t.get(e.startTimeField),s=t.get(e.endTimeField);e.startTimeField=r?.name??null,e.endTimeField=s?.name??null}}const m=new Set;function g(e,t){return e&&t?(m.clear(),f(m,e,t),Array.from(m).sort()):[]}function f(e,t,r){if(r)if(t?.fields?.length)if(r.includes("*"))for(const{name:r}of t.fields)e.add(r);else for(const s of r)b(e,t,s);else{if(r.includes("*"))return e.clear(),void e.add("*");for(const t of r)null!=t&&e.add(t)}}function b(e,t,r){if("string"==typeof r)if(t){const s=t.get(r);s&&e.add(s.name)}else e.add(r)}function v(e,t){return null==t||null==e?[]:t.includes("*")?(e.fields??[]).map((e=>e.name)):t}async function M(e,t,r){if(!r)return;const{arcadeUtils:s}=await(0,n.lw)(),i=s.extractFieldNames(r,t?.fields?.map((e=>e.name)));for(const r of i)b(e,t,r)}function S({displayField:e,fields:t}){return e||(t?.length?w(t,"name-or-title")||w(t,"unique-identifier")||w(t,"type-or-category")||function(e){for(const t of e){if(!t?.name)continue;const e=t.name.toLowerCase();if(e.includes("name")||e.includes("title"))return t.name}return null}(t):null)}function w(e,t){for(const r of e)if(r?.valueType&&r.valueType===t)return r.name;return null}function _(e){return e?g(e.fieldsIndex,O(e)):[]}const T=new Set(["oid","global-id","guid"]),I=new Set(["oid","global-id"]),L=[/^fnode_$/i,/^tnode_$/i,/^lpoly_$/i,/^rpoly_$/i,/^poly_$/i,/^shape$/i,/^shape_$/i,/^subclass$/i,/^subclass_$/i,/^rings_ok$/i,/^rings_nok$/i,/perimeter/i,/objectid/i,/_i$/i];function O(e){if(!e)return[];const t="editFieldsInfo"in e&&e.editFieldsInfo;if(!t)return[];const{creationDateField:r,creatorField:s,editDateField:i,editorField:a}=t;return[r,s,i,a].filter(Boolean)}function A(e){return O(e).map((e=>e.toLowerCase()))}function x(e,t){return e.editable&&!T.has(e.type)&&!A(t).includes(e.name?.toLowerCase()??"")}function U(e,t){const r=e.name?.toLowerCase()??"";return!(null!=t?.objectIdField&&r===t.objectIdField.toLowerCase()||null!=t?.globalIdField&&r===t.globalIdField.toLowerCase()||function(e){const t=new Set;A(e).forEach((e=>t.add(e))),function(e){if(!e)return[];const t=e.geometryFieldsInfo;return t?g(e.fieldsIndex,[t.shapeAreaField,t.shapeLengthField]):[]}(e).forEach((e=>t.add(e.toLowerCase())));const r=e&&"infoFor3D"in e?e.infoFor3D:void 0;return r&&(Object.values(r.assetMapFieldRoles).forEach((e=>t.add(e.toLowerCase()))),Object.values(r.transformFieldRoles).forEach((e=>t.add(e.toLowerCase())))),Array.from(t)}(t).includes(r)||I.has(e.type)||L.some((e=>e.test(r))))}function k(e){const t=e.defaultValue;return void 0!==t&&C(e,t)?t:e.nullable?null:void 0}function G(e){const t="string"==typeof e?{type:e}:e;return $(t)?255:"esriFieldTypeDate"===t.type||"date"===t.type?8:void 0}function Z(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function D(e){return null===e||Z(e)}function F(e){return null===e||Number.isInteger(e)}function P(e){return null!=e&&"string"==typeof e}function N(e){return null===e||P(e)}function V(){return!0}function C(e,t){let r;switch(e.type){case"date":case"integer":case"long":case"small-integer":case"big-integer":case"esriFieldTypeDate":case"esriFieldTypeInteger":case"esriFieldTypeLong":case"esriFieldTypeSmallInteger":case"esriFieldTypeBigInteger":r=e.nullable?F:Number.isInteger;break;case"double":case"single":case"esriFieldTypeSingle":case"esriFieldTypeDouble":r=e.nullable?D:Z;break;case"string":case"esriFieldTypeString":r=e.nullable?N:P;break;default:r=V}return 1===arguments.length?r:r(t)}const R=new Set(["integer","small-integer","big-integer","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeBigInteger"]),q=new Set(["single","double","esriFieldTypeSingle","esriFieldTypeDouble"]),B=(0,i.KC)(R,q);function E(e){return null!=e&&B.has(e.type)}function $(e){return null!=e&&("string"===e.type||"esriFieldTypeString"===e.type)}function j(e){return null!=e&&("date"===e.type||"esriFieldTypeDate"===e.type)}function z(e){return null!=e&&("date-only"===e.type||"esriFieldTypeDateOnly"===e.type)}function J(e){return null!=e&&("timestamp-offset"===e.type||"esriFieldTypeTimestampOffset"===e.type)}function H(e){return null!=e&&("time-only"===e.type||"esriFieldTypeTimeOnly"===e.type)}function W(e){return null!=e&&("oid"===e.type||"esriFieldTypeOID"===e.type)}function Q(e){return null!=e&&("global-id"===e.type||"esriFieldTypeGlobalID"===e.type)}function K(e,t){return null===te(e,t)}var Y,X;function ee(e){return null==e||"number"==typeof e&&isNaN(e)?null:e}function te(e,t){return null==e||e.nullable&&null===t?null:E(e)&&!function(e,t){const r="string"==typeof e?re(e):e;if(!r)return!1;const s=r.min,i=r.max;return r.isInteger?Number.isInteger(t)&&t>=s&&t<=i:t>=s&&t<=i}(e.type,Number(t))?Y.OUT_OF_RANGE:C(e,t)?e.domain?(0,a.wb)(e,t):null:X.INVALID_TYPE}function re(e){switch(e){case"esriFieldTypeSmallInteger":case"small-integer":return se;case"esriFieldTypeInteger":case"integer":return ie;case"esriFieldTypeBigInteger":case"big-integer":return ae;case"esriFieldTypeSingle":case"single":return ne;case"esriFieldTypeDouble":case"double":return oe}}(Y||(Y={})).OUT_OF_RANGE="numeric-range-validation-error::out-of-range",function(e){e.INVALID_TYPE="type-validation-error::invalid-type"}(X||(X={}));const se={min:-32768,max:32767,isInteger:!0,rawMin:-32768,rawMax:32767},ie={min:-2147483648,max:2147483647,isInteger:!0,rawMin:-2147483648,rawMax:2147483647},ae={min:-Number.MAX_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,isInteger:!0,rawMin:-Number.MAX_SAFE_INTEGER,rawMax:Number.MAX_SAFE_INTEGER},ne={min:-34e37,max:12e37,isInteger:!1,rawMin:-34e37,rawMax:12e37},oe={min:-Number.MAX_VALUE,max:Number.MAX_VALUE,isInteger:!1,rawMin:-Number.MAX_VALUE,rawMax:Number.MAX_VALUE};function le(e,t,r){switch(e){case a.Mh.INVALID_CODED_VALUE:return`Value ${r} is not in the coded domain - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case a.Mh.VALUE_OUT_OF_RANGE:return`Value ${r} is out of the range of valid values - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case X.INVALID_TYPE:return`Value ${r} is not a valid value for the field type - field: ${t.name}, type: ${t.type}, nullable: ${t.nullable}`;case Y.OUT_OF_RANGE:{const{min:e,max:s}=re(t.type);return`Value ${r} is out of range for the number type - field: ${t.name}, type: ${t.type}, value range is ${e} to ${s}`}}}function ce(e){return!!e&&["raster.itempixelvalue","raster.servicepixelvalue"].some((t=>e.toLowerCase().startsWith(t)))}function ue(e){const t=e?.match(/{[^}]+}/g);return t?t.map((e=>e.slice(1,-1).split(":")[0].trim())):[]}},83531:(e,t,r)=>{r.d(t,{BR:()=>u,Ov:()=>o,TU:()=>n,W_:()=>l,XX:()=>a,tk:()=>p,wI:()=>c});var s=r(70333),i=r(78888);const a={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function n(e){const t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function o(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function l(e){return("feature"===e?.type||"subtype-group"===e?.type)&&"feature-layer"===e.source?.type}async function c(e,t){const r=s.id?.findServerInfo(e);if(null!=r?.currentVersion)return r.owningSystemUrl||null;const a=e.toLowerCase().indexOf("/rest/services");if(-1===a)return null;const n=`${e.substring(0,a)}/rest/info`,o=null!=t?t.signal:null,{data:l}=await(0,i.A)(n,{query:{f:"json"},responseType:"json",signal:o});return l?.owningSystemUrl||null}function u(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"catalog":case"catalog-footprint":case"csv":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function p(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}},20655:(e,t,r)=>{r.d(t,{A:()=>U});var s=r(90237),i=r(92602),a=r(70333),n=r(78888),o=r(49186),l=r(25482),c=r(92474),u=r(97768),p=r(74887),d=r(10107),y=r(56507),h=(r(87811),r(44208),r(36005)),m=r(40608),g=r(5443),f=r(73444);let b;var v=r(96360),M=r(16405),S=r(69622);r(53966);let w=class extends S.A{constructor(e){super(e),this.nextQueryParams=null,this.queryParams=null,this.results=null,this.total=null}};(0,s._)([(0,d.MZ)()],w.prototype,"nextQueryParams",void 0),(0,s._)([(0,d.MZ)()],w.prototype,"queryParams",void 0),(0,s._)([(0,d.MZ)()],w.prototype,"results",void 0),(0,s._)([(0,d.MZ)()],w.prototype,"total",void 0),w=(0,s._)([(0,m.$)("esri.portal.PortalQueryResult")],w);const _=w;var T,I=r(41318),L=r(926);let O;const A={PortalGroup:()=>Promise.resolve({default:v.A}),PortalItem:()=>Promise.resolve().then(r.bind(r,80812)),PortalUser:()=>Promise.resolve({default:I.A})};let x=T=class extends((0,l.Te)(c.A)){constructor(e){super(e),this._esriIdCredentialCreateHandle=null,this.access=null,this.allSSL=!1,this.authMode="auto",this.authorizedCrossOriginDomains=null,this.basemapGalleryGroupQuery=null,this.basemapGalleryGroupQuery3D=null,this.bingKey=null,this.canListApps=!1,this.canListData=!1,this.canListPreProvisionedItems=!1,this.canProvisionDirectPurchase=!1,this.canSearchPublic=!0,this.canShareBingPublic=!1,this.canSharePublic=!1,this.canSignInArcGIS=!1,this.canSignInIDP=!1,this.colorSetsGroupQuery=null,this.commentsEnabled=!1,this.created=null,this.culture=null,this.customBaseUrl=null,this.defaultBasemap=null,this.defaultDevBasemap=null,this.defaultExtent=null,this.defaultVectorBasemap=null,this.description=null,this.devBasemapGalleryGroupQuery=null,this.eueiEnabled=null,this.featuredGroups=null,this.featuredItemsGroupQuery=null,this.galleryTemplatesGroupQuery=null,this.layoutGroupQuery=null,this.livingAtlasGroupQuery=null,this.hasCategorySchema=!1,this.helperServices=null,this.homePageFeaturedContent=null,this.homePageFeaturedContentCount=null,this.httpPort=null,this.httpsPort=null,this.id=null,this.ipCntryCode=null,this.isPortal=!1,this.isReadOnly=!1,this.layerTemplatesGroupQuery=null,this.maxTokenExpirationMinutes=null,this.modified=null,this.name=null,this.portalHostname=null,this.portalMode=null,this.portalProperties=null,this.region=null,this.recycleBinEnabled=!1,this.rotatorPanels=null,this.showHomePageDescription=!1,this.sourceJSON=null,this.supportsHostedServices=!1,this.symbolSetsGroupQuery=null,this.templatesGroupQuery=null,this.units=null,this.url=i.A.portalUrl,this.urlKey=null,this.user=null,this.use3dBasemaps=!0,this.useStandardizedQuery=!1,this.useVectorBasemaps=!1,this.vectorBasemapGalleryGroupQuery=null}normalizeCtorArgs(e){return"string"==typeof e?{url:e}:e}destroy(){k.unregister(this),this.defaultBasemap=(0,u.pR)(this.defaultBasemap),this.defaultDevBasemap=(0,u.pR)(this.defaultDevBasemap),this.defaultVectorBasemap=(0,u.pR)(this.defaultVectorBasemap),this._esriIdCredentialCreateHandle=(0,u.xt)(this._esriIdCredentialCreateHandle)}readAuthorizedCrossOriginDomains(e){if(e)for(const t of e)i.A.request.trustedServers.includes(t)||i.A.request.trustedServers.push(t);return e}readDefaultBasemap(e){return this._readBasemap(e)}readDefaultDevBasemap(e){return this._readBasemap(e)}readDefaultVectorBasemap(e){return this._readBasemap(e)}get extraQuery(){const e=this.user?.orgId,t=!e||this.canSearchPublic;return this.id&&!t?` AND orgid:${this.id}`:null}get isOrganization(){return!!this.access}get itemPageUrl(){return this.url?`${this.url}/home/item.html`:null}get restUrl(){let e=this.url;if(e){const t=e.indexOf("/sharing");e=t>0?e.substring(0,t):this.url.replace(/\/+$/,""),e+="/sharing/rest"}return e}get thumbnailUrl(){const e=this.restUrl,t=this.thumbnail;return e&&t?this._normalizeSSL(e+"/portals/self/resources/"+t):null}readUrlKey(e){return e?e.toLowerCase():e}readUser(e){let t=null;return e&&(t=I.A.fromJSON(e),t.portal=this),t}load(e){const t=Promise.resolve().then(r.bind(r,83116)).then((({default:t})=>{(0,p.Te)(e),O=t})).then((()=>this.sourceJSON?this.sourceJSON:this.fetchSelf(this.authMode,!1,e))).then((e=>{if(a.id){const e=a.id;this.credential=e.findCredential(this.restUrl),this.credential||this.authMode!==T.AUTH_MODE_AUTO&&this.authMode!==T.AUTH_MODE_NO_PROMPT||(this._esriIdCredentialCreateHandle?.remove(),this._esriIdCredentialCreateHandle=e.on("credential-create",function(e){const t=a.id;return()=>{const r=e.deref();r&&t.findCredential(r.restUrl)&&r.signIn().catch((()=>{}))}}(new WeakRef(this))),k.register(this,this._esriIdCredentialCreateHandle,this))}this.sourceJSON=e,this.read(e)}));return this.addResolvingPromise(t),Promise.resolve(this)}async createElevationLayers(){await this.load();const e=this._getHelperService("defaultElevationLayers"),t=(await Promise.all([r.e(7251),r.e(9186),r.e(5204),r.e(4983)]).then(r.bind(r,5111))).default;return e?e.map((e=>new t({id:e.id,url:e.url}))):[]}async fetchBasemaps(e,t){const r=await this._fetchBasemaps(e,t);if(!0===t?.include3d&&!1!==this.use3dBasemaps){const s=await this._fetchBasemaps3D(e,t);r.unshift(...s)}return r}fetchCategorySchema(e){return this.hasCategorySchema?this.request(this.restUrl+"/portals/self/categorySchema",e).then((e=>e.categorySchema)):(0,p.G4)(e)?Promise.reject((0,p.NK)()):Promise.resolve([])}fetchFeaturedGroups(e){const t=this.featuredGroups,r=new M.A({num:100,sortField:"title"});if(t?.length){const s=[];for(const e of t)s.push(`(title:"${e.title}" AND owner:${e.owner})`);return r.query=s.join(" OR "),this.queryGroups(r,e).then((e=>e.results))}return(0,p.G4)(e)?Promise.reject((0,p.NK)()):Promise.resolve([])}fetchRegions(e){const t=this.user?.culture||this.culture||(0,f.JK)();return this.request(this.restUrl+"/portals/regions",{...e,query:{culture:t}})}fetchSettings(e){const t=this.user?.culture||this.culture||(0,f.JK)();return this.request(this.restUrl+"/portals/self/settings",{...e,query:{culture:t}})}static getDefault(){return b&&!b.destroyed||(b=new T),b}queryGroups(e,t){return this.queryPortal("/community/groups",e,"PortalGroup",t)}queryItems(e,t){return this.queryPortal("/search",e,"PortalItem",t)}queryUsers(e,t){return e.sortField||(e.sortField="username"),this.queryPortal("/community/users",e,"PortalUser",t)}fetchSelf(e=this.authMode,t=!1,r){const s=this.restUrl+"/portals/self",i={authMode:e,query:{culture:(0,f.JK)().toLowerCase()},withCredentials:!0,...r};return"auto"===i.authMode&&(i.authMode="no-prompt"),t&&(i.query.default=!0),this.request(s,i)}queryPortal(e,t,r,s){const i=(0,y.dp)(M.A,t),a=t=>this.request(this.restUrl+e,{...i.toRequestOptions(this),...s}).then((e=>{const r=i.clone();return r.start=e.nextStart,new _({nextQueryParams:r,queryParams:i,total:e.total,results:T._resultsToTypedArray(t,{portal:this},e,s)})})).then((e=>Promise.all(e.results.map((t=>"function"==typeof t.when?t.when():e))).then((()=>e),(t=>((0,p.QP)(t),e)))));return r&&A[r]?A[r]().then((({default:e})=>((0,p.Te)(s),a(e)))):a()}signIn(){if(this.authMode===T.AUTH_MODE_ANONYMOUS||this.authMode===T.AUTH_MODE_NO_PROMPT&&!a.id)return Promise.reject(new o.A("portal:invalid-auth-mode",`Current "authMode"' is "${this.authMode}"`));if("failed"===this.loadStatus)return Promise.reject(this.loadError);const e=e=>Promise.resolve().then((()=>"not-loaded"===this.loadStatus?(e||(this.authMode="immediate"),this.load().then((()=>null))):"loading"===this.loadStatus?this.load().then((()=>this.credential?null:(this.credential=e,this.fetchSelf("immediate")))):this.user&&this.credential===e?null:(this.credential=e,this.fetchSelf("immediate")))).then((e=>{e&&(this.sourceJSON=e,this.read(e))}));return a.id?a.id.getCredential(this.restUrl,{prompt:this.authMode!==T.AUTH_MODE_NO_PROMPT}).then((t=>e(t))):e(this.credential)}normalizeUrl(e){const t=this.credential?.token;return this._normalizeSSL(t?e+(e.includes("?")?"&":"?")+"token="+t:e)}requestToTypedArray(e,t,r){return this.request(e,t).then((e=>{const t=T._resultsToTypedArray(r,{portal:this},e);return Promise.all(t.map((t=>"function"==typeof t.when?t.when():e))).then((()=>t),(()=>t))}))}request(e,t={}){const r={f:"json",...t.query},{authMode:s=(this.authMode===T.AUTH_MODE_ANONYMOUS||this.authMode===T.AUTH_MODE_NO_PROMPT?this.authMode:"auto"),body:i=null,cacheBust:a=!1,method:o="auto",responseType:l="json",signal:c}=t,u={authMode:s,body:i,cacheBust:a,method:o,query:r,responseType:l,timeout:0,signal:c};return t.withCredentials&&(u.withCredentials=!0),(0,n.A)(this._normalizeSSL(e),u).then((e=>e.data))}toJSON(){throw new o.A("internal:not-yet-implemented","Portal.toJSON is not yet implemented")}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");return new T({sourceJSON:e})}_getHelperService(e){const t=this.helperServices&&this.helperServices[e];if(!t)throw new o.A("portal:service-not-found",`The \`helperServices\` do not include an entry named "${e}"`);return t}async _fetchBasemaps(e,t){const r=new M.A;r.query=e||(i.A.apiKey&&(0,L.Q)(this.url)?this.devBasemapGalleryGroupQuery:this.useVectorBasemaps?this.vectorBasemapGalleryGroupQuery:this.basemapGalleryGroupQuery),r.disableExtraQuery=!0;const s=await this.queryGroups(r,t);if(!s.total)return[];const a=s.results[0];r.num=100,r.query='type:"Web Map" -type:"Web Application"',r.sortField=a.sortField||"name",r.sortOrder=a.sortOrder||"desc";const n=await a.queryItems(r,t);return n.total?n.results.filter((e=>"Web Map"===e.type)).map((e=>new O({portalItem:e}))):[]}async _fetchBasemaps3D(e,t){const r=e||this.basemapGalleryGroupQuery3D;if(!r)return[];const s=new M.A({query:r,disableExtraQuery:!0}),i=await this.queryGroups(s,t);if(!i.total)return[];const a=i.results[0];s.num=100,s.query='type:"Web Scene"',s.sortField=a.sortField||"name",s.sortOrder=a.sortOrder||"desc";const n=await a.queryItems(s,t);return n.total?n.results.filter((e=>"Web Scene"===e.type)).map((e=>new O({portalItem:e}))):[]}_normalizeSSL(e){return e.replace(/^http:/i,"https:").replace(":7080",":7443")}_readBasemap(e){if(e){const t=O.fromJSON(e);return t.portalItem={portal:this},t}return null}static _resultsToTypedArray(e,t,r,s){let i;if(r){const a=null!=s?s.signal:null;i=r.listings||r.notifications||r.userInvitations||r.tags||r.items||r.groups||r.comments||r.provisions||r.results||r.relatedItems||r,(e||t)&&(i=i.map((r=>{const s=Object.assign(e?e.fromJSON(r):r,t);return"function"==typeof s.load&&s.load(a),s})))}else i=[];return i}};x.AUTH_MODE_ANONYMOUS="anonymous",x.AUTH_MODE_AUTO="auto",x.AUTH_MODE_IMMEDIATE="immediate",x.AUTH_MODE_NO_PROMPT="no-prompt",(0,s._)([(0,d.MZ)()],x.prototype,"access",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"allSSL",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"authMode",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"authorizedCrossOriginDomains",void 0),(0,s._)([(0,h.w)("authorizedCrossOriginDomains")],x.prototype,"readAuthorizedCrossOriginDomains",null),(0,s._)([(0,d.MZ)()],x.prototype,"basemapGalleryGroupQuery",void 0),(0,s._)([(0,d.MZ)({json:{name:"3DBasemapGalleryGroupQuery"}})],x.prototype,"basemapGalleryGroupQuery3D",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"bingKey",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"canListApps",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"canListData",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"canListPreProvisionedItems",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"canProvisionDirectPurchase",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"canSearchPublic",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"canShareBingPublic",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"canSharePublic",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"canSignInArcGIS",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"canSignInIDP",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"colorSetsGroupQuery",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"commentsEnabled",void 0),(0,s._)([(0,d.MZ)({type:Date})],x.prototype,"created",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"credential",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"culture",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"currentVersion",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"customBaseUrl",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"defaultBasemap",void 0),(0,s._)([(0,h.w)("defaultBasemap")],x.prototype,"readDefaultBasemap",null),(0,s._)([(0,d.MZ)()],x.prototype,"defaultDevBasemap",void 0),(0,s._)([(0,h.w)("defaultDevBasemap")],x.prototype,"readDefaultDevBasemap",null),(0,s._)([(0,d.MZ)({type:g.A})],x.prototype,"defaultExtent",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"defaultVectorBasemap",void 0),(0,s._)([(0,h.w)("defaultVectorBasemap")],x.prototype,"readDefaultVectorBasemap",null),(0,s._)([(0,d.MZ)()],x.prototype,"description",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"devBasemapGalleryGroupQuery",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"eueiEnabled",void 0),(0,s._)([(0,d.MZ)({readOnly:!0})],x.prototype,"extraQuery",null),(0,s._)([(0,d.MZ)()],x.prototype,"featuredGroups",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"featuredItemsGroupQuery",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"galleryTemplatesGroupQuery",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"layoutGroupQuery",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"livingAtlasGroupQuery",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"hasCategorySchema",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"helpBase",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"helperServices",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"helpMap",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"homePageFeaturedContent",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"homePageFeaturedContentCount",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"httpPort",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"httpsPort",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"id",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"ipCntryCode",void 0),(0,s._)([(0,d.MZ)({readOnly:!0})],x.prototype,"isOrganization",null),(0,s._)([(0,d.MZ)()],x.prototype,"isPortal",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"isReadOnly",void 0),(0,s._)([(0,d.MZ)({readOnly:!0})],x.prototype,"itemPageUrl",null),(0,s._)([(0,d.MZ)()],x.prototype,"layerTemplatesGroupQuery",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"maxTokenExpirationMinutes",void 0),(0,s._)([(0,d.MZ)({type:Date})],x.prototype,"modified",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"name",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"portalHostname",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"portalMode",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"portalProperties",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"region",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"recycleBinEnabled",void 0),(0,s._)([(0,d.MZ)({readOnly:!0})],x.prototype,"restUrl",null),(0,s._)([(0,d.MZ)()],x.prototype,"rotatorPanels",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"showHomePageDescription",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"sourceJSON",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"staticImagesUrl",void 0),(0,s._)([(0,d.MZ)({json:{name:"2DStylesGroupQuery"}})],x.prototype,"stylesGroupQuery2d",void 0),(0,s._)([(0,d.MZ)({json:{name:"stylesGroupQuery"}})],x.prototype,"stylesGroupQuery3d",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"supportsHostedServices",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"symbolSetsGroupQuery",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"templatesGroupQuery",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"thumbnail",void 0),(0,s._)([(0,d.MZ)({readOnly:!0})],x.prototype,"thumbnailUrl",null),(0,s._)([(0,d.MZ)()],x.prototype,"units",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"url",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"urlKey",void 0),(0,s._)([(0,h.w)("urlKey")],x.prototype,"readUrlKey",null),(0,s._)([(0,d.MZ)()],x.prototype,"user",void 0),(0,s._)([(0,h.w)("user")],x.prototype,"readUser",null),(0,s._)([(0,d.MZ)()],x.prototype,"use3dBasemaps",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"useStandardizedQuery",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"useVectorBasemaps",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"vectorBasemapGalleryGroupQuery",void 0),x=T=(0,s._)([(0,m.$)("esri.portal.Portal")],x);const U=x,k=new FinalizationRegistry((e=>{e.remove()}))},96360:(e,t,r)=>{r.d(t,{A:()=>d});var s,i=r(90237),a=r(49186),n=r(25482),o=r(10107),l=r(56507),c=(r(87811),r(44208),r(40608)),u=r(16405);let p=s=class extends n.oY{constructor(e){super(e),this.access=null,this.created=null,this.description=null,this.id=null,this.isInvitationOnly=!1,this.modified=null,this.owner=null,this.portal=null,this.snippet=null,this.sortField=null,this.sortOrder=null,this.sourceJSON=null,this.tags=null,this.title=null}get thumbnailUrl(){const e=this.url,t=this.thumbnail;return e&&t&&this.portal?this.portal?.normalizeUrl(`${e}/info/${t}?f=json`):null}get url(){const e=this.portal?.restUrl;return e?e+"/community/groups/"+this.id:null}fetchCategorySchema(e){return this.portal.request(this.url+"/categorySchema",e).then((t=>{const r=t.categorySchema||[];return r.some((e=>"contentCategorySetsGroupQuery.LivingAtlas"===e.source))?this._fetchCategorySchemaSet("LivingAtlas",e):r}))}fetchMembers(e){return this.portal.request(this.url+"/users",e)}getThumbnailUrl(e){let t=this.thumbnailUrl;return t&&e&&(t+=`&w=${e}`),t}toJSON(){throw new a.A("internal:not-yet-implemented","PortalGroup.toJSON is not yet implemented")}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");const t=new s({sourceJSON:e});return t.read(e),t}queryItems(e,t){let r=(0,l.dp)(u.A,e);const s=this.portal;return parseFloat(s.currentVersion)>5?(r=r||new u.A,s.queryPortal(`/content/groups/${this.id}/search`,r,"PortalItem",t)):(r=r?r.clone():new u.A,r.query="group:"+this.id+(r.query?" "+r.query:""),s.queryItems(r,t))}_fetchCategorySchemaSet(e,t){const r=this.portal;return r.fetchSelf(r.authMode,!0,t).then((e=>{const s=e.contentCategorySetsGroupQuery;if(s){const e=new u.A({disableExtraQuery:!0,num:1,query:s});return r.queryGroups(e,t)}throw new a.A("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery value not found")})).then((r=>{if(r.total){const s=r.results[0],i=new u.A({num:1,query:`typekeywords:"${e}"`});return s.queryItems(i,t)}throw new a.A("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery group not found")})).then((e=>e.total?e.results[0].fetchData("json",t).then((e=>{const t=e?.categorySchema;return t?.length?t:[]})):[]))}};(0,i._)([(0,o.MZ)()],p.prototype,"access",void 0),(0,i._)([(0,o.MZ)({type:Date})],p.prototype,"created",void 0),(0,i._)([(0,o.MZ)()],p.prototype,"description",void 0),(0,i._)([(0,o.MZ)()],p.prototype,"id",void 0),(0,i._)([(0,o.MZ)()],p.prototype,"isInvitationOnly",void 0),(0,i._)([(0,o.MZ)({type:Date})],p.prototype,"modified",void 0),(0,i._)([(0,o.MZ)()],p.prototype,"owner",void 0),(0,i._)([(0,o.MZ)()],p.prototype,"portal",void 0),(0,i._)([(0,o.MZ)()],p.prototype,"snippet",void 0),(0,i._)([(0,o.MZ)()],p.prototype,"sortField",void 0),(0,i._)([(0,o.MZ)()],p.prototype,"sortOrder",void 0),(0,i._)([(0,o.MZ)()],p.prototype,"sourceJSON",void 0),(0,i._)([(0,o.MZ)()],p.prototype,"tags",void 0),(0,i._)([(0,o.MZ)()],p.prototype,"thumbnail",void 0),(0,i._)([(0,o.MZ)({readOnly:!0})],p.prototype,"thumbnailUrl",null),(0,i._)([(0,o.MZ)()],p.prototype,"title",void 0),(0,i._)([(0,o.MZ)({readOnly:!0})],p.prototype,"url",null),p=s=(0,i._)([(0,c.$)("esri.portal.PortalGroup")],p);const d=p},80812:(e,t,r)=>{r.r(t),r.d(t,{default:()=>x});var s=r(90237),i=r(2741),a=r(49186),n=r(25482),o=r(4718),l=r(92474),c=r(84952),u=r(10107),p=r(56507),d=r(36005),y=r(40608),h=r(5443),m=r(20655),g=r(69622),f=r(53966),b=r(79901);r(87811),r(44208);let v=class extends g.A{constructor(e){super(e),this.portalItem=null}normalizeCtorArgs(e){return e?.portalItem&&e.path?{...e,path:M(e.path,e.portalItem)}:e}set path(e){null!=e&&(0,c.oP)(e)?f.A.getLogger(this).error("portalitemresource:invalid-path","A portal item resource path must be relative"):this._set("path",e)}_castPath(e){return M(e,this.portalItem)}get url(){return this.portalItem&&this.path?`${this.portalItem.itemUrl}/resources/${this.path}`:null}get cdnUrl(){return this.portalItem&&this.path?`${this.portalItem.itemCdnUrl}/resources/${this.path}`:null}get itemRelativeUrl(){return this.portalItem&&this.path?`./resources/${this.path}`:null}fetch(e="json",t){const r=this.cdnUrl;if(null==r)throw new a.A("portal-item-resource:fetch","Portal item resource does not refer to a valid item or path");return this.portalItem.portal.request(r,{responseType:e,query:{token:this.portalItem.apiKey},signal:t?.signal})}async update(e,t){const{addOrUpdateResources:s}=await r.e(5804).then(r.bind(r,15804));return await s(this.portalItem,[{resource:this,content:e,compress:t?.compress,access:t?.access}],"update",t),this}hasPath(){return null!=this.path}};function M(e,t){return null==e?e:(e=e.replace(/^\/+/,""),null!=t&&(0,c.oP)(e)&&(e=(0,c.V1)(e,t.itemUrl)),e?.replace(/^\/+/,"").replace(/^(\.\/)?resources\//,""))}(0,s._)([(0,u.MZ)()],v.prototype,"portalItem",void 0),(0,s._)([(0,u.MZ)({type:String,value:null})],v.prototype,"path",null),(0,s._)([(0,b.w)("path")],v.prototype,"_castPath",null),(0,s._)([(0,u.MZ)({type:String,readOnly:!0})],v.prototype,"url",null),(0,s._)([(0,u.MZ)({type:String,readOnly:!0})],v.prototype,"cdnUrl",null),(0,s._)([(0,u.MZ)({type:String,readOnly:!0})],v.prototype,"itemRelativeUrl",null),v=(0,s._)([(0,y.$)("esri.portal.PortalItemResource")],v);const S=v;let w=class extends g.A{constructor(e){super(e),this.created=null,this.rating=null}};(0,s._)([(0,u.MZ)()],w.prototype,"created",void 0),(0,s._)([(0,u.MZ)()],w.prototype,"rating",void 0),w=(0,s._)([(0,y.$)("esri.portal.PortalRating")],w);const _=w;var T,I=r(97159);const L=new Set(["3DTiles Service","CSV","Feature Collection","Feature Service","Feed","GeoJson","Group Layer","Image Service","KML","Map Service","Media Layer","Scene Service","Stream Service","Vector Tile Service","WFS","WMS","WMTS"]),O=new Set(["KML","GeoJson","CSV"]);let A=T=class extends((0,n.Te)(l.A)){static from(e){return(0,p.PZ)(T,e)}constructor(e){super(e),this.access=null,this.accessInformation=null,this.apiKey=null,this.applicationProxies=null,this.avgRating=null,this.categories=null,this.created=null,this.culture=null,this.description=null,this.extent=null,this.groupCategories=null,this.id=null,this.isOrgItem=!1,this.itemControl=null,this.licenseInfo=null,this.modified=null,this.name=null,this.numComments=null,this.numRatings=null,this.numViews=null,this.owner=null,this.ownerFolder=null,this.portal=null,this.screenshots=null,this.size=null,this.snippet=null,this.sourceJSON=null,this.sourceUrl=null,this.spatialReference=null,this.tags=null,this.title=null,this.type=null,this.typeKeywords=null,this.url=null}destroy(){this.portal=null}get displayName(){const e=this.type,t=this.typeKeywords||[];let r=e;return"Feature Service"===e||"Feature Collection"===e?r=t.includes("Table")?"Table":t.includes("Route Layer")?"Route Layer":t.includes("Markup")?"Markup":"Feature Layer":"Image Service"===e?r=t.includes("Elevation 3D Layer")?"Elevation Layer":t.includes("Tiled Imagery")?"Tiled Imagery Layer":"Imagery Layer":"Scene Service"===e?r="Scene Layer":"Video Service"===e?r="Video Layer":"Scene Package"===e?r="Scene Layer Package":"Stream Service"===e?r="Feature Layer":"Geoprocessing Service"===e?r=t.includes("Web Tool")?"Tool":"Geoprocessing Service":"Geoenrichment Service"===e?r="GeoEnrichment Service":"Geocoding Service"===e?r="Locator":"Microsoft Powerpoint"===e?r="Microsoft PowerPoint":"GeoJson"===e?r="GeoJSON":"Globe Service"===e?r="Globe Layer":"Vector Tile Service"===e?r="Tile Layer":"netCDF"===e?r="NetCDF":"Map Service"===e?r=t.includes("Spatiotemporal")||!t.includes("Hosted Service")&&!t.includes("Tiled")||t.includes("Relational")?"Map Image Layer":"Tile Layer":e?.toLowerCase().includes("add in")?r=e.replaceAll(/(add in)/gi,"Add-In"):"datastore catalog service"===e?r="Big Data File Share":"Compact Tile Package"===e?r="Tile Package (tpkx)":"Raster function template"===e?r="Raster Function Template":"OGCFeatureServer"===e?r="OGC Feature Layer":"web mapping application"===e&&t.includes("configurableApp")?r="Instant App":"Insights Page"===e?r="Insights Report":"Excalibur Imagery Project"===e?r="Excalibur Project":"3DTiles Service"===e?r="3D tiles layer":"3DTiles Package"===e&&(r="3D tiles package"),r}readExtent(e){return e&&e.length?new h.A(e[0][0],e[0][1],e[1][0],e[1][1]):null}get iconUrl(){const e=this.type?.toLowerCase()||"",t=this.typeKeywords||[];let r,s=!1,a=!1,n=!1,o=!1,l=!1,c=!1,u=!1,p=!1;return e.indexOf("service")>0||"feature collection"===e||"kml"===e||"wms"===e||"wmts"===e||"wfs"===e?(s=t.includes("Hosted Service"),"feature service"===e||"feature collection"===e||"kml"===e||"wfs"===e?(a=t.includes("Table"),n=t.includes("Route Layer"),o=t.includes("Markup"),l=t.includes("Spatiotemporal"),c=t.includes("UtilityNetwork"),r=l&&a?"spatiotemporaltable":a?"table":n?"routelayer":o?"markup":l?"spatiotemporal":c?"utilitynetwork":s?"featureshosted":"features"):"map service"===e||"wms"===e||"wmts"===e?(l=t.includes("Spatiotemporal"),u=t.includes("Relational"),r=l||u?"mapimages":s||t.includes("Tiled")||"wmts"===e?"maptiles":"mapimages"):r="scene service"===e?t.includes("Line")?"sceneweblayerline":t.includes("3DObject")?"sceneweblayermultipatch":t.includes("Point")?"sceneweblayerpoint":t.includes("IntegratedMesh")?"sceneweblayermesh":t.includes("PointCloud")?"sceneweblayerpointcloud":t.includes("Polygon")?"sceneweblayerpolygon":t.includes("Building")?"sceneweblayerbuilding":t.includes("Voxel")?"sceneweblayervoxel":"sceneweblayer":"image service"===e?t.includes("Elevation 3D Layer")?"elevationlayer":t.includes("Tiled Imagery")?"tiledimagerylayer":"imagery":"stream service"===e?"streamlayer":"vector tile service"===e?"vectortile":"datastore catalog service"===e?"datastorecollection":"geocoding service"===e?"geocodeservice":"video service"===e?t.includes("Live Stream")?"livestreamvideolayer":"videolayer":"geoprocessing service"===e?t.includes("Web Tool")?"tool":"layers":"geodata service"===e?"geodataservice":"3dtiles service"===e?t.includes("3DObject")?"3dobjecttileslayer":t.includes("IntegratedMesh")?"integratedmeshtileslayer":"3dtileslayer":"layers"):"web map"===e||"cityengine web scene"===e?r="maps":"web scene"===e?r=t.includes("ViewingMode-Local")?"webscenelocal":"websceneglobal":"web mapping application"===e&&t.includes("configurableApp")?r="instantapps":"web mapping application"===e||"mobile application"===e||"application"===e||"operation view"===e||"desktop application"===e?r="apps":"map document"===e||"map package"===e||"published map"===e||"scene document"===e||"globe document"===e||"basemap package"===e||"mobile basemap package"===e||"mobile map package"===e||"project package"===e||"project template"===e||"pro map"===e||"layout"===e||"layer"===e&&t.includes("ArcGIS Pro")||"explorer map"===e&&t.indexOf("Explorer Document")?r="mapsgray":"service definition"===e||"shapefile"===e||"cad drawing"===e||"geojson"===e||"netcdf"===e||"administrative report"===e?r="datafiles":"360 vr experience"===e?r="360vr":"explorer add in"===e||"desktop add in"===e||"windows viewer add in"===e||"windows viewer configuration"===e?r="appsgray":"arcgis pro add in"===e||"arcgis pro configuration"===e?r="addindesktop":"pdf"===e?r="pdf":"microsoft word"===e?r="word":"microsoft excel"===e?r="excel":"microsoft powerpoint"===e?r="ppt":"rule package"===e||"file geodatabase"===e||"sqlite geodatabase"===e||"csv collection"===e||"kml collection"===e||"windows mobile package"===e||"map template"===e||"desktop application template"===e||"gml"===e||"arcpad package"===e||"code sample"===e||"document link"===e||"earth configuration"===e||"operations dashboard add in"===e||"rules package"===e||"workflow manager package"===e||"explorer map"===e&&t.includes("Explorer Mapping Application")||t.includes("Document")?r="datafilesgray":"network analysis service"===e||"geoprocessing service"===e||"geodata service"===e||"geometry service"===e||"geoprocessing package"===e||"locator package"===e||"geoprocessing sample"===e||"workflow manager service"===e?r="toolsgray":"layer"===e||"layer package"===e||"explorer layer"===e?r="layersgray":"analysis model"===e?r="analysismodel":"scene package"===e?r="scenepackage":"3dtiles package"===e?r="3dtileslayerpackage":"3dtiles service"===e?r="3dtileslayer":"mobile scene package"===e?r="mobilescenepackage":"tile package"===e||"compact tile package"===e?r="tilepackage":"task file"===e?r="taskfile":"report template"===e?r="report-template":"statistical data collection"===e?r="statisticaldatacollection":"insights workbook"===e?r="workbook":"insights model"===e?r="insightsmodel":"insights page"===e?r="insightspage":"insights theme"===e?r="insightstheme":"hub initiative"===e?r="hubinitiative":"hub page"===e?r="hubpage":"hub site application"===e?r="hubsite":"hub event"===e?r="hubevent":"hub project"===e?r="hubproject":"relational database connection"===e?r="relationaldatabaseconnection":"big data file share"===e?r="datastorecollection":"image collection"===e?r="imagecollection":"desktop style"===e?r="desktopstyle":"style"===e?r=t.includes("Dictionary")?"dictionarystyle":"style":"dashboard"===e?r="dashboard":"raster function template"===e?r="rasterprocessingtemplate":"vector tile package"===e?r="vectortilepackage":"ortho mapping project"===e?r="orthomappingproject":"ortho mapping template"===e?r="orthomappingtemplate":"solution"===e?r="solutions":"geopackage"===e?r="geopackage":"deep learning package"===e?r="deeplearningpackage":"real time analytic"===e?r="realtimeanalytics":"big data analytic"===e?r="bigdataanalytics":"feed"===e?r="feed":"excalibur imagery project"===e?r="excaliburimageryproject":"notebook"===e?r="notebook":"storymap"===e?r="storymap":"survey123 add in"===e?r="survey123addin":"mission"===e?r="mission":"mission report"===e?r="missionreport":"mission template"===e?r="missiontemplate":"quickcapture project"===e?r="quickcaptureproject":"pro report"===e?r="proreport":"pro report template"===e?r="proreporttemplate":"urban model"===e?r="urbanmodel":"web experience"===e?r="experiencebuilder":"web experience template"===e?r="webexperiencetemplate":"experience builder widget"===e?r="experiencebuilderwidget":"experience builder widget package"===e?r="experiencebuilderwidgetpackage":"workflow"===e?r="workflow":"kernel gateway connection"===e?r="kernelgatewayconnection":"insights script"===e?r="insightsscript":"hub initiative template"===e?r="hubinitiativetemplate":"storymap theme"===e?r="storymaptheme":"knowledge graph"===e?r="knowledgegraph":"knowledge studio project"===e?r="knowledgestudio":"native application"===e?r="nativeapp":"native application installer"===e?r="nativeappinstaller":"web link chart"===e?r="linkchart":"knowledge graph web investigation"===e?r="investigation":"ogcfeatureserver"===e?r="features":"pro project"===e?r="proproject":"insights workbook package"===e?r="insightsworkbookpackage":"apache parquet"===e?r="apacheparquet":"notebook code snippet library"===e?r="notebookcodesnippets":"suitability model"===e?r="suitabilitymodel":"esri classifier definition"===e?r="classifierdefinition":"esri classification schema"===e?r="classificationschema":"insights data engineering workbook"===e?r="dataengineeringworkbook":"insights data engineering model"===e?r="dataengineeringmodel":"deep learning studio project"===e?r="deeplearningproject":"discussion"===e?r="discussion":"allsource project"===e?r="allsourceproject":"api key"===e?r="apikey":"data pipeline"===e?r="datapipelines":"group layer"===e?(p=t.includes("Map"),r=p?"layergroup2d":"layergroup"):r="media layer"===e?"onlinemedialayer":"form"===e?t.includes("Survey123")?"survey":"datafilesgray":"csv"===e?"csv":"image"===e?"image":"maps",r?(0,i.s)("esri/images/portal/"+r+"16.png"):null}get isLayer(){return null!=this.type&&L.has(this.type)}get itemCdnUrl(){return(0,I.a)(this.itemUrl)}get itemPageUrl(){const e=this.portal?.itemPageUrl;return e&&this.id?`${e}?id=${this.id}`:null}get itemUrl(){const e=this.portal?.restUrl;return e&&this.id?`${e}/content/items/${this.id}`:null}get thumbnailUrl(){const e=this.itemUrl,t=this.thumbnail;return e&&t?this.portal?.normalizeUrl(`${e}/info/${t}?f=json`)??null:null}get userItemUrl(){const e=this.portal?.restUrl;if(!e)return null;const t=this.owner||this.portal?.user?.username;return t?`${e}/content/users/${this.ownerFolder?`${t}/${this.ownerFolder}`:t}/items/${this.id}`:null}load(e){const t=this.portal??(this.portal=m.A.getDefault()),r=t.load(e).then((()=>this.sourceJSON?this.sourceJSON:this.id&&this.itemUrl?t.request(this.itemUrl,{signal:null!=e?e.signal:null,query:{token:this.apiKey}}):{})).then((e=>{this.sourceJSON=e,this.read(e)}));return this.addResolvingPromise(r),Promise.resolve(this)}async addRating(e){const t={method:"post",query:{}};return e instanceof _&&(e=e.rating),null==e||isNaN(e)||"number"!=typeof e||(t.query.rating=e),this.portal?(await this.portal.request(this.itemUrl+"/addRating",t),new _({rating:e,created:new Date})):null}clone(){const e={access:this.access,accessInformation:this.accessInformation,applicationProxies:(0,o.o8)(this.applicationProxies),avgRating:this.avgRating,categories:(0,o.o8)(this.categories),created:(0,o.o8)(this.created),culture:this.culture,description:this.description,extent:(0,o.o8)(this.extent),groupCategories:(0,o.o8)(this.groupCategories),id:this.id,itemControl:this.itemControl,licenseInfo:this.licenseInfo,modified:(0,o.o8)(this.modified),name:this.name,numComments:this.numComments,numRatings:this.numRatings,numViews:this.numViews,owner:this.owner,ownerFolder:this.ownerFolder,portal:this.portal,screenshots:(0,o.o8)(this.screenshots),size:this.size,snippet:this.snippet,sourceUrl:this.sourceUrl,spatialReference:this.spatialReference,tags:(0,o.o8)(this.tags),thumbnail:this.thumbnail,title:this.title,type:this.type,typeKeywords:(0,o.o8)(this.typeKeywords),url:this.url};this.loaded&&(e.loadStatus="loaded");const t=new T({sourceJSON:this.sourceJSON}).set(e);return t._set("isOrgItem",this.isOrgItem),t}createPostQuery(){const e=this.toJSON();for(const t of["tags","typeKeywords","categories"])e[t]=e[t]?.join(", ");const{extent:t}=e;return t&&(e.extent=JSON.stringify(t)),e}async deleteRating(){await this.portal.request(this.itemUrl+"/deleteRating",{method:"post"})}fetchData(e="json",t){return this.portal.request(this.itemUrl+"/data",{responseType:e,...t,query:{token:this.apiKey}})}async fetchRating(e){const t=await this.portal.request(this.itemUrl+"/rating",{query:{token:this.apiKey},...e});return null!=t.rating?(t.created=new Date(t.created),new _(t)):null}fetchRelatedItems(e,t){return this.portal.requestToTypedArray(this.itemUrl+"/relatedItems",{query:{...e,token:this.apiKey},...t},T)}getThumbnailUrl(e){let t=this.thumbnailUrl;return t&&e&&(t+=`&w=${e}`),t}reload(){return this.portal.request(this.itemUrl??"",{cacheBust:!0,query:{token:this.apiKey}}).then((e=>(this.sourceJSON=e,this.read(e),this)))}update(e){return this.id?this.load().then((()=>this.portal.signIn())).then((()=>{const t=e?.data,r={method:"post"};r.query=this.createPostQuery();for(const e in r.query)null===r.query[e]&&(r.query[e]="");return r.query.clearEmptyFields=!0,null!=t&&("string"==typeof t?r.query.text=t:"object"==typeof t&&(r.query.text=JSON.stringify(t))),this.portal.request(`${this.userItemUrl}/update`,r).then((()=>this.reload()))})):Promise.reject(new a.A("portal:item-does-not-exist","The item does not exist yet and cannot be updated"))}async copy(e){if(!this.id)throw new a.A("portal:item-does-not-exist","The item does not exist yet");await this.load();const{portal:t,itemUrl:r}=this;await t.signIn();const{copyResources:s,folder:i,tags:n,title:o}=e||{},l={method:"post",query:{copyPrivateResources:"all"===s,folder:"string"==typeof i?i:i?.id,includeResources:!!s,tags:n?.join(","),title:o}},{itemId:c}=await t.request(`${r}/copy`,l);return new T({id:c,portal:t})}updateThumbnail(e){return this.id?this.load().then((()=>this.portal.signIn())).then((()=>{const t=e.thumbnail,r=e.filename,s={method:"post"};if("string"==typeof t)(0,c.DB)(t)?s.query={data:t}:s.query={url:(0,c.s2)(t)},null!=r&&(s.query.filename=r);else{const e=new FormData;null!=r?e.append("file",t,r):e.append("file",t),s.body=e}return this.portal.request(`${this.userItemUrl}/updateThumbnail`,s).then((()=>this.reload()))})):Promise.reject(new a.A("portal:item-does-not-exist","The item does not exist yet and cannot be updated"))}async fetchResources(e={},t){const{fetchResources:s}=await r.e(5804).then(r.bind(r,15804));return s(this,e,t)}async addResource(e,t,s){const{addOrUpdateResources:i}=await r.e(5804).then(r.bind(r,15804));return e.portalItem=this,await i(this,[{resource:e,content:t,compress:s?.compress,access:s?.access}],"add",s),e}async removeResource(e,t){const{removeResource:s}=await r.e(5804).then(r.bind(r,15804));if(e.portalItem&&e.portalItem.itemUrl!==this.itemUrl)throw new a.A("removeresource:portal-item-mismatch","The portal item associated with the provided resource does not match the item");return s(this,e,t)}async removeAllResources(e){const{removeAllResources:t}=await r.e(5804).then(r.bind(r,15804));return t(this,e)}resourceFromPath(e){return new S({portalItem:this,path:e})}toJSON(){const e=this.extent,t={accessInformation:this.accessInformation,categories:(0,o.o8)(this.categories),created:this.created?.getTime(),description:this.description,extent:e&&[[e.xmin,e.ymin],[e.xmax,e.ymax]],id:this.id,isOrgItem:this.isOrgItem,licenseInfo:this.licenseInfo,modified:this.modified?.getTime(),name:this.name,owner:this.owner,ownerFolder:this.ownerFolder,snippet:this.snippet,sourceUrl:this.sourceUrl,spatialReference:this.spatialReference,tags:(0,o.o8)(this.tags),thumbnail:this.thumbnail,title:this.title,type:this.type,typeKeywords:(0,o.o8)(this.typeKeywords),url:this.url};return(0,o.oy)(t)}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");return new T({sourceJSON:e})}_getPostQuery(){const e=this.toJSON();for(const t in e)"tags"===t&&null!==e[t]&&(e[t]=e[t].join(", ")),"typeKeywords"===t&&null!==e[t]&&(e[t]=e[t].join(", ")),"extent"===t&&e[t]&&(e[t]=JSON.stringify(e[t]));return e}};(0,s._)([(0,u.MZ)({type:["private","shared","org","public"]})],A.prototype,"access",void 0),(0,s._)([(0,u.MZ)()],A.prototype,"accessInformation",void 0),(0,s._)([(0,u.MZ)({type:String})],A.prototype,"apiKey",void 0),(0,s._)([(0,u.MZ)({json:{read:{source:"appProxies"}}})],A.prototype,"applicationProxies",void 0),(0,s._)([(0,u.MZ)()],A.prototype,"avgRating",void 0),(0,s._)([(0,u.MZ)()],A.prototype,"categories",void 0),(0,s._)([(0,u.MZ)({type:Date})],A.prototype,"created",void 0),(0,s._)([(0,u.MZ)()],A.prototype,"culture",void 0),(0,s._)([(0,u.MZ)()],A.prototype,"description",void 0),(0,s._)([(0,u.MZ)({readOnly:!0})],A.prototype,"displayName",null),(0,s._)([(0,u.MZ)({type:h.A})],A.prototype,"extent",void 0),(0,s._)([(0,d.w)("extent")],A.prototype,"readExtent",null),(0,s._)([(0,u.MZ)()],A.prototype,"groupCategories",void 0),(0,s._)([(0,u.MZ)({readOnly:!0})],A.prototype,"iconUrl",null),(0,s._)([(0,u.MZ)()],A.prototype,"id",void 0),(0,s._)([(0,u.MZ)({readOnly:!0})],A.prototype,"isLayer",null),(0,s._)([(0,u.MZ)({type:Boolean,readOnly:!0})],A.prototype,"isOrgItem",void 0),(0,s._)([(0,u.MZ)()],A.prototype,"itemControl",void 0),(0,s._)([(0,u.MZ)({readOnly:!0})],A.prototype,"itemPageUrl",null),(0,s._)([(0,u.MZ)({readOnly:!0})],A.prototype,"itemUrl",null),(0,s._)([(0,u.MZ)()],A.prototype,"licenseInfo",void 0),(0,s._)([(0,u.MZ)({type:Date})],A.prototype,"modified",void 0),(0,s._)([(0,u.MZ)()],A.prototype,"name",void 0),(0,s._)([(0,u.MZ)()],A.prototype,"numComments",void 0),(0,s._)([(0,u.MZ)()],A.prototype,"numRatings",void 0),(0,s._)([(0,u.MZ)()],A.prototype,"numViews",void 0),(0,s._)([(0,u.MZ)()],A.prototype,"owner",void 0),(0,s._)([(0,u.MZ)()],A.prototype,"ownerFolder",void 0),(0,s._)([(0,u.MZ)({type:m.A})],A.prototype,"portal",void 0),(0,s._)([(0,u.MZ)()],A.prototype,"screenshots",void 0),(0,s._)([(0,u.MZ)()],A.prototype,"size",void 0),(0,s._)([(0,u.MZ)()],A.prototype,"snippet",void 0),(0,s._)([(0,u.MZ)()],A.prototype,"sourceJSON",void 0),(0,s._)([(0,u.MZ)({type:String})],A.prototype,"sourceUrl",void 0),(0,s._)([(0,u.MZ)({type:String})],A.prototype,"spatialReference",void 0),(0,s._)([(0,u.MZ)()],A.prototype,"tags",void 0),(0,s._)([(0,u.MZ)()],A.prototype,"thumbnail",void 0),(0,s._)([(0,u.MZ)({readOnly:!0})],A.prototype,"thumbnailUrl",null),(0,s._)([(0,u.MZ)()],A.prototype,"title",void 0),(0,s._)([(0,u.MZ)()],A.prototype,"type",void 0),(0,s._)([(0,u.MZ)()],A.prototype,"typeKeywords",void 0),(0,s._)([(0,u.MZ)({type:String,json:{read(e,t){if(O.has(t.type)){const t=this.portal?.restUrl;e||=t&&this.id?`${t}/content/items/${this.id}/data`:null}return e}}})],A.prototype,"url",void 0),(0,s._)([(0,u.MZ)({readOnly:!0})],A.prototype,"userItemUrl",null),A=T=(0,s._)([(0,y.$)("esri.portal.PortalItem")],A);const x=A},16405:(e,t,r)=>{r.d(t,{A:()=>m});var s,i=r(90237),a=r(69622),n=r(66552),o=r(4718),l=r(10107),c=(r(44208),r(53966),r(40608)),u=r(5443),p=r(16930),d=r(28735);const y=new n.J({avgRating:"avg-rating",numRatings:"num-ratings",numComments:"num-comments",numViews:"num-views"});let h=s=class extends a.A{constructor(e){super(e),this.categories=null,this.disableExtraQuery=!1,this.extent=null,this.filter=null,this.num=10,this.query=null,this.sortField=null,this.start=1}get sortOrder(){return this._get("sortOrder")||"asc"}set sortOrder(e){"asc"!==e&&"desc"!==e||this._set("sortOrder",e)}clone(){return new s({categories:this.categories?(0,o.o8)(this.categories):null,disableExtraQuery:this.disableExtraQuery,extent:this.extent?this.extent.clone():null,filter:this.filter,num:this.num,query:this.query,sortField:this.sortField,sortOrder:this.sortOrder,start:this.start})}toRequestOptions(e,t){let r=[];this.categories&&(r=this.categories.map((e=>Array.isArray(e)?JSON.stringify(e):e)));let s="";if(this.extent){const e=(0,d.Cv)(this.extent,p.A.WGS84);null!=e&&(s=`${e.xmin},${e.ymin},${e.xmax},${e.ymax}`)}let i=this.query;!this.disableExtraQuery&&e.extraQuery&&(i="("+i+")"+e.extraQuery);const a={categories:r,bbox:s,q:i,filter:this.filter,num:this.num,sortField:null,sortOrder:null,start:this.start};return this.sortField&&(a.sortField=this.sortField.split(",").map((e=>y.toJSON(e.trim()))).join(","),a.sortOrder=this.sortOrder),{query:{...t,...a}}}};(0,i._)([(0,l.MZ)()],h.prototype,"categories",void 0),(0,i._)([(0,l.MZ)()],h.prototype,"disableExtraQuery",void 0),(0,i._)([(0,l.MZ)({type:u.A})],h.prototype,"extent",void 0),(0,i._)([(0,l.MZ)()],h.prototype,"filter",void 0),(0,i._)([(0,l.MZ)()],h.prototype,"num",void 0),(0,i._)([(0,l.MZ)()],h.prototype,"query",void 0),(0,i._)([(0,l.MZ)()],h.prototype,"sortField",void 0),(0,i._)([(0,l.MZ)()],h.prototype,"sortOrder",null),(0,i._)([(0,l.MZ)()],h.prototype,"start",void 0),h=s=(0,i._)([(0,c.$)("esri.portal.PortalQueryParams")],h);const m=h},41318:(e,t,r)=>{r.d(t,{A:()=>y});var s=r(90237),i=r(49186),a=r(25482),n=r(10107),o=(r(44208),r(53966),r(87811),r(40608));let l=class extends a.oY{constructor(e){super(e),this.created=null,this.id=null,this.portal=null,this.title=null,this.username=null}get url(){const e=this.portal?.restUrl;return e?`${e}/content/users/${this.username}/${this.id}`:null}toJSON(){throw new i.A("internal:not-yet-implemented","PortalFolder.toJSON is not yet implemented")}};(0,s._)([(0,n.MZ)({type:Date})],l.prototype,"created",void 0),(0,s._)([(0,n.MZ)()],l.prototype,"id",void 0),(0,s._)([(0,n.MZ)()],l.prototype,"portal",void 0),(0,s._)([(0,n.MZ)()],l.prototype,"title",void 0),(0,s._)([(0,n.MZ)({readOnly:!0})],l.prototype,"url",null),(0,s._)([(0,n.MZ)()],l.prototype,"username",void 0),l=(0,s._)([(0,o.$)("esri.portal.PortalFolder")],l);const c=l;var u,p=r(96360);let d=u=class extends a.oY{constructor(e){super(e),this.access=null,this.created=null,this.culture=null,this.description=null,this.email=null,this.fullName=null,this.modified=null,this.orgId=null,this.portal=null,this.preferredView=null,this.privileges=null,this.region=null,this.role=null,this.roleId=null,this.sourceJSON=null,this.units=null,this.username=null,this.userType=null}get thumbnailUrl(){const e=this.url,t=this.thumbnail;return e&&t?this.portal.normalizeUrl(`${e}/info/${t}?f=json`):null}get userContentUrl(){const e=this.portal?.restUrl;return e?`${e}/content/users/${this.username}`:null}get url(){const e=this.portal?.restUrl;return e?`${e}/community/users/${this.username}`:null}addItem(e){const t=e&&e.item,r=e?.data,s=e?.folder,i={method:"post"};t&&(i.query=t.createPostQuery(),null!=r&&("string"==typeof r?i.query.text=r:"object"==typeof r&&(i.query.text=JSON.stringify(r))));let a=this.userContentUrl;return s&&(a+="/"+("string"==typeof s?s:s.id)),this.portal.request(a+"/addItem",i).then((e=>(t.id=e.id,t.portal=this.portal,t.loaded?t.reload():t.load())))}async deleteItem(e,t=!1){let r=this.userContentUrl;e.ownerFolder&&(r+="/"+e.ownerFolder);const s=t?{permanentDelete:!0}:{};await this.portal.request(r+`/items/${e.id}/delete`,{method:"post",query:s}),e.id=null,e.portal=null}async deleteItems(e,t=!1){e=e.concat();const r=this.userContentUrl+"/deleteItems",s=[],a=e.map((e=>e.id));if(a.length){const n={method:"post",query:{items:a.join(","),permanentDelete:t}},o=await this.portal.request(r,n);for(const t of o.results){const r=e.find((e=>t.itemId===e.id)),a=t.success;let n=null;a?(r.id=null,r.portal=null):t.error&&(n=new i.A("portal:delete-item-failed",t.error.message,t.error)),s.push({item:r,success:a,error:n})}}return s}fetchFolders(){return this.portal.request(this.userContentUrl??"",{query:{num:1}}).then((e=>{let t;return t=e&&e.folders?e.folders.map((e=>{const t=c.fromJSON(e);return t.portal=this.portal,t})):[],t}))}fetchGroups(){return this.portal.request(this.url??"").then((e=>{let t;return t=e&&e.groups?e.groups.map((e=>{const t=p.A.fromJSON(e);return t.portal=this.portal,t})):[],t}))}async fetchItems(e){e??={};let t=this.userContentUrl??"";e.folder&&(t+="/"+e.folder.id);const{default:s}=await Promise.resolve().then(r.bind(r,80812)),i={folders:!1,inRecycleBin:!!e.inRecycleBin||null,foldersContent:!(e.folder||!e.includeSubfolderItems)||null,num:e.num||10,start:e.start||1,sortField:e.sortField||"created",sortOrder:e.sortOrder||"asc"},a=await this.portal.request(t,{query:i});let n;return a?.items?(n=a.items.map((e=>{const t=s.fromJSON(e);return t.portal=this.portal,t})),await Promise.all(n.map((e=>e.load()))),{items:n,nextStart:a.nextStart,total:a.total}):{items:[],nextStart:-1,total:0}}fetchTags(){return this.portal.request(this.url+"/tags").then((e=>e.tags))}getThumbnailUrl(e){let t=this.thumbnailUrl;return t&&e&&(t+=`&w=${e}`),t}queryFavorites(e){return this.favGroupId?(this._favGroup||(this._favGroup=new p.A({id:this.favGroupId,portal:this.portal})),this._favGroup.queryItems(e)):Promise.reject(new i.A("internal:unknown","Unknown internal error",{internalError:"Unknown favGroupId"}))}async restoreItem(e,t){const r=this.userContentUrl,s=t?{folderID:"string"==typeof t?t:t.id}:null;await this.portal.request(r+`/items/${e.id}/restore`,{method:"post",query:s})}toJSON(){throw new i.A("internal:not-yet-implemented","PortalUser.toJSON is not yet implemented")}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");const t=new u({sourceJSON:e});return t.read(e),t}};(0,s._)([(0,n.MZ)()],d.prototype,"access",void 0),(0,s._)([(0,n.MZ)({type:Date})],d.prototype,"created",void 0),(0,s._)([(0,n.MZ)()],d.prototype,"culture",void 0),(0,s._)([(0,n.MZ)()],d.prototype,"description",void 0),(0,s._)([(0,n.MZ)()],d.prototype,"email",void 0),(0,s._)([(0,n.MZ)()],d.prototype,"favGroupId",void 0),(0,s._)([(0,n.MZ)()],d.prototype,"fullName",void 0),(0,s._)([(0,n.MZ)({type:Date})],d.prototype,"modified",void 0),(0,s._)([(0,n.MZ)()],d.prototype,"orgId",void 0),(0,s._)([(0,n.MZ)()],d.prototype,"portal",void 0),(0,s._)([(0,n.MZ)()],d.prototype,"preferredView",void 0),(0,s._)([(0,n.MZ)()],d.prototype,"privileges",void 0),(0,s._)([(0,n.MZ)()],d.prototype,"region",void 0),(0,s._)([(0,n.MZ)()],d.prototype,"role",void 0),(0,s._)([(0,n.MZ)()],d.prototype,"roleId",void 0),(0,s._)([(0,n.MZ)()],d.prototype,"sourceJSON",void 0),(0,s._)([(0,n.MZ)()],d.prototype,"thumbnail",void 0),(0,s._)([(0,n.MZ)({readOnly:!0})],d.prototype,"thumbnailUrl",null),(0,s._)([(0,n.MZ)()],d.prototype,"units",void 0),(0,s._)([(0,n.MZ)({readOnly:!0})],d.prototype,"userContentUrl",null),(0,s._)([(0,n.MZ)({readOnly:!0})],d.prototype,"url",null),(0,s._)([(0,n.MZ)()],d.prototype,"username",void 0),(0,s._)([(0,n.MZ)()],d.prototype,"userType",void 0),d=u=(0,s._)([(0,o.$)("esri.portal.PortalUser")],d);const y=d},61760:(e,t,r)=>{r.d(t,{PU:()=>n,YW:()=>l,ex:()=>i,hv:()=>o,zp:()=>a}),r(34727);var s=r(90629);r(87317),r(91829);const i=2.4;function a(e){return(0,s.PN)(e*i)}function n(e){return(0,s.Lz)(e)/i}function o(e,t,r){const s=Math.sqrt(e**2+t**2)/r;return s>1?0:3/(Math.PI*r**2)*(1-s**2)**2}function l(e){return"function"==typeof e?e:e?t=>+t[e]:()=>1}},9760:(e,t,r)=>{r.d(t,{A:()=>d});var s=r(90237),i=r(66552),a=r(25482),n=r(10107),o=(r(44208),r(53966),r(87811),r(93223)),l=r(40608);const c=new i.J({esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation",esriClassifyDefinedInterval:"defined-interval"}),u=new i.J({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:"percent-of-total",esriNormalizeByField:"field"});let p=class extends a.oY{constructor(e){super(e),this.type="class-breaks-definition",this.breakCount=null,this.classificationField=null,this.classificationMethod=null,this.normalizationField=null,this.normalizationType=null}set standardDeviationInterval(e){"standard-deviation"===this.classificationMethod&&this._set("standardDeviationInterval",e)}set definedInterval(e){"defined-interval"===this.classificationMethod&&this._set("definedInterval",e)}};(0,s._)([(0,o.e)({classBreaksDef:"class-breaks-definition"})],p.prototype,"type",void 0),(0,s._)([(0,n.MZ)({json:{write:!0}})],p.prototype,"breakCount",void 0),(0,s._)([(0,n.MZ)({json:{write:!0}})],p.prototype,"classificationField",void 0),(0,s._)([(0,n.MZ)({type:String,json:{read:c.read,write:c.write}})],p.prototype,"classificationMethod",void 0),(0,s._)([(0,n.MZ)({json:{write:!0}})],p.prototype,"normalizationField",void 0),(0,s._)([(0,n.MZ)({json:{read:u.read,write:u.write}})],p.prototype,"normalizationType",void 0),(0,s._)([(0,n.MZ)({value:null,json:{write:!0}})],p.prototype,"standardDeviationInterval",null),(0,s._)([(0,n.MZ)({value:null,json:{write:!0}})],p.prototype,"definedInterval",null),p=(0,s._)([(0,l.$)("esri.rest.support.ClassBreaksDefinition")],p);const d=p},84892:(e,t,r)=>{r.d(t,{t:()=>n});var s=r(53966);const i=()=>s.A.getLogger("esri.rest.support.generateRendererUtils");function a(e,t){return Number(e.toFixed(t))}function n(e){const{normalizationTotal:t}=e;return{classBreaks:o(e),normalizationTotal:t}}function o(e){const t=e.definition,{classificationMethod:r,normalizationType:s,definedInterval:i}=t,n=t.breakCount??1,o=[];let u=e.values;if(0===u.length)return[];u=u.sort(((e,t)=>e-t));const p=u[0],d=u[u.length-1];if("equal-interval"===r)if(u.length>=n){const e=(d-p)/n;let t=p;for(let r=1;r<n;r++){const i=a(p+r*e,6);o.push({minValue:t,maxValue:i,label:l(t,i,s)}),t=i}o.push({minValue:t,maxValue:d,label:l(t,d,s)})}else u.forEach((e=>{o.push({minValue:e,maxValue:e,label:l(e,e,s)})}));else if("natural-breaks"===r){const t=function(e){const t=[],r=[];let s=Number.MIN_VALUE,i=1,a=-1;for(let n=0;n<e.length;n++){const o=e[n];o===s?(i++,r[a]=i):null!==o&&(t.push(o),s=o,i=1,r.push(i),a++)}return{uniqueValues:t,valueFrequency:r}}(u),r=e.valueFrequency||t.valueFrequency,i=c(t.uniqueValues,r,n);let y=p;for(let e=1;e<n;e++)if(t.uniqueValues.length>e){const r=a(t.uniqueValues[i[e]],6);o.push({minValue:y,maxValue:r,label:l(y,r,s)}),y=r}o.push({minValue:y,maxValue:d,label:l(y,d,s)})}else if("quantile"===r)if(u.length>=n&&p!==d){let e=p,t=Math.ceil(u.length/n),r=0;for(let i=1;i<n;i++){let a=t+r-1;a>u.length&&(a=u.length-1),a<0&&(a=0),o.push({minValue:e,maxValue:u[a],label:l(e,u[a],s)}),e=u[a],r+=t,t=Math.ceil((u.length-r)/(n-i))}o.push({minValue:e,maxValue:d,label:l(e,d,s)})}else{let e=-1;for(let t=0;t<u.length;t++){const r=u[t];r!==e&&(e=r,o.push({minValue:e,maxValue:r,label:l(e,r,s)}),e=r)}}else if("standard-deviation"===r){const e=function(e){let t=0;for(let r=0;r<e.length;r++)t+=e[r];return t/=e.length,t}(u),t=function(e,t){let r=0;for(let s=0;s<e.length;s++){const i=e[s];r+=(i-t)*(i-t)}return r/=e.length,Math.sqrt(r)}(u,e);if(0===t)o.push({minValue:u[0],maxValue:u[0],label:l(u[0],u[0],s)});else{const r=function(e,t,r,s,i){let a=Math.max(s-e,t-s)/i/r;return a=a>=1?1:a>=.5?.5:.25,a}(p,d,n,e,t)*t;let i=0,c=p;for(let t=n;t>=1;t--){const n=a(e-(t-.5)*r,6);o.push({minValue:c,maxValue:n,label:l(c,n,s)}),c=n,i++}let u=a(e+.5*r,6);o.push({minValue:c,maxValue:u,label:l(c,u,s)}),c=u,i++;for(let t=1;t<=n;t++)u=i===2*n?d:a(e+(t+.5)*r,6),o.push({minValue:c,maxValue:u,label:l(c,u,s)}),c=u,i++}}else if("defined-interval"===r){if(!i)return o;const e=u[0],t=u[u.length-1],r=Math.ceil((t-e)/i);let n=e;for(let t=1;t<r;t++){const r=a(e+t*i,6);o.push({minValue:n,maxValue:r,label:l(n,r,s)}),n=r}o.push({minValue:n,maxValue:t,label:l(n,t,s)})}return o}function l(e,t,r){let s=null;return s=e===t?r&&"percent-of-total"===r?e+"%":e.toString():r&&"percent-of-total"===r?e+"% - "+t+"%":e+" - "+t,s}function c(e,t,r){const s=e.length,i=[];r>s&&(r=s);for(let e=0;e<r;e++)i.push(Math.round(e*s/r-1));i.push(s-1);let a=u(i,e,t,r);return function(e,t,r,s,i,a){let n=0,o=0,l=0,c=0,u=!0;for(let d=0;d<2&&u;d++){0===d&&(u=!1);for(let d=0;d<a-1;d++)for(;r[d+1]+1!==r[d+2];){r[d+1]=r[d+1]+1;const a=p(d,r,s,i);l=a.sbMean,n=a.sbSdcm;const y=p(d+1,r,s,i);if(c=y.sbMean,o=y.sbSdcm,!(n+o<t[d]+t[d+1])){r[d+1]=r[d+1]-1;break}t[d]=n,t[d+1]=o,e[d]=l,e[d+1]=c,u=!0}for(let d=a-1;d>0;d--)for(;r[d]!==r[d-1]+1;){r[d]=r[d]-1;const a=p(d-1,r,s,i);l=a.sbMean,n=a.sbSdcm;const y=p(d,r,s,i);if(c=y.sbMean,o=y.sbSdcm,!(n+o<t[d-1]+t[d])){r[d]=r[d]+1;break}t[d-1]=n,t[d]=o,e[d-1]=l,e[d]=c,u=!0}}return u}(a.mean,a.sdcm,i,e,t,r)&&(a=u(i,e,t,r)),i}function u(e,t,r,s){let i=[],a=[],n=[],o=0;const l=[],c=[];for(let i=0;i<s;i++){const s=p(i,e,t,r);l.push(s.sbMean),c.push(s.sbSdcm),o+=c[i]}let u,d=o,y=!0;for(;y||o<d;){y=!1,i=[];for(let t=0;t<s;t++)i.push(e[t]);for(let r=0;r<s;r++)for(let i=e[r]+1;i<=e[r+1];i++)if(u=t[i],r>0&&i!==e[r+1]&&Math.abs(u-l[r])>Math.abs(u-l[r-1]))e[r]=i;else if(r<s-1&&e[r]!==i-1&&Math.abs(u-l[r])>Math.abs(u-l[r+1])){e[r+1]=i-1;break}d=o,o=0,a=[],n=[];for(let i=0;i<s;i++){a.push(l[i]),n.push(c[i]);const s=p(i,e,t,r);l[i]=s.sbMean,c[i]=s.sbSdcm,o+=c[i]}}if(o>d){for(let t=0;t<s;t++)e[t]=i[t],l[t]=a[t],c[t]=n[t];o=d}return{mean:l,sdcm:c}}function p(e,t,r,s){let a=0,n=0;for(let i=t[e]+1;i<=t[e+1];i++){const e=s[i];a+=r[i]*e,n+=e}n<=0&&i().warn("Exception in Natural Breaks calculation");const o=a/n;let l=0;for(let i=t[e]+1;i<=t[e+1];i++)l+=s[i]*(r[i]-o)**2;return{sbMean:o,sbSdcm:l}}},50201:(e,t,r)=>{r.d(t,{gV:()=>g,Jc:()=>b,$r:()=>m,rb:()=>f}),r(59456),r(49186);var s=r(90629),i=r(88930),a=r(16930),n=r(62577),o=r(21325),l=r(30524),c=r(61760),u=(r(97770),r(71386));r(83116),r(92602),r(5503),r(53966),r(84952),r(56507),r(27865),r(43281),r(56400),new Set(["integer","small-integer"]);var p=r(1873),d=r(86738);let y=null;const h=/^(?<hh>([0-1][0-9])|([2][0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?([.](?<ms>\d+))?$/;function m(e,t,r,s){const i=(0,o.d9)(r)?(0,o.Vp)(r):null,a=i?Math.round((i.valid[1]-i.valid[0])/t.scale[0]):null;return e.map((e=>{const r=new d.A(e.geometry);return(0,n.Gy)(t,r,r),e.geometry=i?function(e,t,r){return e.x<0?e.x+=t:e.x>r&&(e.x-=t),e}(r,a??0,s[0]):r,e}))}function g(e,t=18,r,i,a){const n=new Float64Array(i*a);t=Math.round((0,s.Lz)(t));let o=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY;const u=(0,c.YW)(r);for(const{geometry:r,attributes:s}of e){const{x:e,y:p}=r,d=Math.max(0,e-t),y=Math.max(0,p-t),h=Math.min(a,p+t),m=Math.min(i,e+t),g=+u(s);for(let r=y;r<h;r++)for(let s=d;s<m;s++){const a=r*i+s,u=(0,c.hv)(s-e,r-p,t)*g,d=n[a]+=u;o=Math.min(o,d),l=Math.max(l,d)}}return{min:o,max:l}}function f(e){const t=h.exec(e);if(!t)return null;const{hh:r,mm:s,ss:a,ms:n}=t.groups;return Number(r)*i.vf.hours+Number(s)*i.vf.minutes+Number(a)*i.vf.seconds+Number(n||0)}async function b(e,t,r=!0){if(!t)return[];const{field:s,field2:i,field3:n,fieldDelimiter:o,fieldInfos:c,timeZone:d}=e,h=s&&c?.find((e=>e.name.toLowerCase()===s.toLowerCase())),m=!!h&&(0,l.OH)(h),g=!!h&&function(e){return(0,l.vE)(e)||(0,l.zD)(e)||(0,l.Ah)(e)}(h),b=e.valueExpression,v=e.normalizationType,M=e.normalizationField,S=e.normalizationTotal,w=[],_=e.viewInfoParams;let T=null,I=null;if(b){if(!y){const{arcadeUtils:e}=await(0,u.lw)();y=e}y.hasGeometryOperations(b)&&await y.enableGeometryOperations(),T=y.createFunction(b),I=_?y.getViewInfo({viewingMode:_.viewingMode,scale:_.scale,spatialReference:new a.A(_.spatialReference)}):null}const L=e.fieldInfos,O=t[0]&&"declaredClass"in t[0]&&"esri.Graphic"===t[0].declaredClass||!L?null:{fields:L};return t.forEach((e=>{const t=e.attributes;let a;if(b){const t=O?{...e,layer:O}:e,r=y.createExecContext(t,I,d);a=y.executeFunction(T,r)}else t&&(a=t[s],i?(a=`${(0,p.gJ)(a)}${o}${(0,p.gJ)(t[i])}`,n&&(a=`${a}${o}${(0,p.gJ)(t[n])}`)):"string"==typeof a&&r&&(g?a=a?new Date(a).getTime():null:m&&(a=a?f(a):null)));if(v&&"number"==typeof a&&isFinite(a)){const e=t&&parseFloat(t[M]);a=(0,p.zS)(a,v,e,S)}w.push(a)})),w}},1873:(e,t,r)=>{r.d(t,{$y:()=>C,FM:()=>v,G_:()=>f,Rw:()=>P,Vb:()=>m,b3:()=>G,gJ:()=>h,jM:()=>V,lv:()=>D,oZ:()=>k,qg:()=>b,z9:()=>g,zS:()=>F});var s=r(9760),i=r(84892);const a="<Null>",n="equal-interval",o=1,l=5,c=10,u=/\s*(\+|-)?((\d+(\.\d+)?)|(\.\d+))\s*/gi,p=new Set(["esriFieldTypeDate","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong","esriFieldTypeOID","esriFieldTypeBigInteger"]),d=new Set(["esriFieldTypeTimeOnly","esriFieldTypeDateOnly"]),y=["min","max","avg","stddev","count","sum","variance","nullcount","median"];function h(e){return null==e||"string"==typeof e&&!e?a:e}function m(e){const t=null!=e.normalizationField||null!=e.normalizationType,r=null!=e.minValue||null!=e.maxValue,s=!!e.sqlExpression&&e.supportsSQLExpression;return!t&&!r&&!s}function g(e){const t=e.returnDistinct?[...new Set(e.values)]:e.values,r=t.filter((e=>null!=e)).sort(),s=r.length,i={count:s,min:r[0],max:r[s-1]};return e.supportsNullCount&&(i.nullcount=t.length-s),e.percentileParams&&(i.median=b(t,e.percentileParams)),i}function f(e){const{values:t,useSampleStdDev:r,supportsNullCount:s}=e;let i=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY,n=null,o=null,l=null,c=null,u=0;const p=null==e.minValue?-1/0:e.minValue,d=null==e.maxValue?1/0:e.maxValue;for(const e of t)Number.isFinite(e)?e>=p&&e<=d&&(n=null===n?e:n+e,i=Math.min(i,e),a=Math.max(a,e),u++):"string"==typeof e&&u++;if(u&&null!=n){o=n/u;let e=0;for(const r of t)Number.isFinite(r)&&r>=p&&r<=d&&(e+=(r-o)**2);c=r?u>1?e/(u-1):0:u>0?e/u:0,l=Math.sqrt(c)}else i=null,a=null;const y={avg:o,count:u,max:a,min:i,stddev:l,sum:n,variance:c};return s&&(y.nullcount=t.length-u),e.percentileParams&&(y.median=b(t,e.percentileParams)),y}function b(e,t){const{fieldType:r,value:s,orderBy:i,isDiscrete:a}=t,n=v(r,"desc"===i);if(0===(e=[...e].filter((e=>null!=e)).sort(((e,t)=>n(e,t)))).length)return null;if(s<=0)return e[0];if(s>=1)return e[e.length-1];const o=(e.length-1)*s,l=Math.floor(o),c=l+1,u=o%1,p=e[l],d=e[c];return c>=e.length||a||"string"==typeof p||"string"==typeof d?p:p*(1-u)+d*u}function v(e,t){if(e){if(p.has(e))return x(t);if(d.has(e))return L(t,!1);if("esriFieldTypeTimestampOffset"===e)return function(e){return e?_:w}(t);const r=L(t,!0);if("esriFieldTypeString"===e)return r;if("esriFieldTypeGUID"===e||"esriFieldTypeGlobalID"===e)return(e,t)=>r(U(e),U(t))}const r=t?1:-1,s=x(t),i=L(t,!0);return(e,t)=>"number"==typeof e&&"number"==typeof t?s(e,t):"string"==typeof e&&"string"==typeof t?i(e,t):r}const M=(e,t)=>null==e?null==t?0:1:null==t?-1:null,S=(e,t)=>null==e?null==t?0:-1:null==t?1:null,w=(e,t)=>S(e,t)??(e===t?0:new Date(e).getTime()-new Date(t).getTime()),_=(e,t)=>M(e,t)??(e===t?0:new Date(t).getTime()-new Date(e).getTime()),T=(e,t)=>S(e,t)??(e===t?0:e<t?-1:1),I=(e,t)=>M(e,t)??(e===t?0:e<t?1:-1);function L(e,t){if(!t)return e?I:T;const r=function(e){return e?M:S}(e);return e?(e,t)=>{const s=r(e,t);return null!=s?s:(e=e.toUpperCase())>(t=t.toUpperCase())?-1:e<t?1:0}:(e,t)=>{const s=r(e,t);return null!=s?s:(e=e.toUpperCase())<(t=t.toUpperCase())?-1:e>t?1:0}}const O=(e,t)=>M(e,t)??t-e,A=(e,t)=>S(e,t)??e-t;function x(e){return e?O:A}function U(e){return e.substr(24,12)+e.substr(19,4)+e.substr(16,2)+e.substr(14,2)+e.substr(11,2)+e.substr(9,2)+e.substr(6,2)+e.substr(4,2)+e.substr(2,2)+e.substr(0,2)}function k(e,t){let r;for(r in e)y.includes(r)&&(Number.isFinite(e[r])||(e[r]=null));return t?(["avg","stddev","variance"].forEach((t=>{null!=e[t]&&(e[t]=Math.ceil(e[t]??0))})),e):e}function G(e){const t={};for(let r of e)(null==r||"string"==typeof r&&""===r.trim())&&(r=null),null==t[r]?t[r]={count:1,data:r}:t[r].count++;return{count:t}}function Z(e){return"coded-value"!==e?.type?[]:e.codedValues.map((e=>e.code))}function D(e,t,r,s){const i=e.count,a=[];if(r&&t){const e=[],r=Z(t[0]);for(const i of r)if(t[1]){const r=Z(t[1]);for(const a of r)if(t[2]){const r=Z(t[2]);for(const t of r)e.push(`${h(i)}${s}${h(a)}${s}${h(t)}`)}else e.push(`${h(i)}${s}${h(a)}`)}else e.push(i);for(const t of e)i.hasOwnProperty(t)||(i[t]={data:t,count:0})}for(const e in i){const t=i[e];a.push({value:t.data,count:t.count,label:t.label})}return{uniqueValueInfos:a}}function F(e,t,r,s){let i=null;switch(t){case"log":0!==e&&(i=Math.log(e)*Math.LOG10E);break;case"percent-of-total":Number.isFinite(s)&&0!==s&&(i=e/s*100);break;case"field":Number.isFinite(r)&&0!==r&&(i=e/r);break;case"natural-log":e>0&&(i=Math.log(e));break;case"square-root":e>0&&(i=e**.5)}return i}function P(e,t){const r=N({field:t.field,normalizationType:t.normalizationType,normalizationField:t.normalizationField,classificationMethod:t.classificationMethod,standardDeviationInterval:t.standardDeviationInterval,breakCount:t.numClasses||l});return e=function(e,t,r){const s=t??-1/0,i=r??1/0;return e.filter((e=>Number.isFinite(e)&&e>=s&&e<=i))}(e,t.minValue,t.maxValue),(0,i.t)({definition:r,values:e,normalizationTotal:t.normalizationTotal})}function N(e){const{breakCount:t,field:r,normalizationField:i,normalizationType:a}=e,l=e.classificationMethod||n,c="standard-deviation"===l?e.standardDeviationInterval||o:void 0;return new s.A({breakCount:t,classificationField:r,classificationMethod:l,normalizationField:"field"===a?i:void 0,normalizationType:a,standardDeviationInterval:c})}function V(e,t){let r=e.classBreaks;const s=r.length,i=r[0]?.minValue,a=r[s-1]?.maxValue,n="standard-deviation"===t,o=u;return r=r.map((e=>{const t=e.label,r={minValue:e.minValue,maxValue:e.maxValue,label:t};if(n&&t){const e=t.match(o),s=e?.map((e=>+e.trim()))??[];2===s.length?(r.minStdDev=s[0],r.maxStdDev=s[1],s[0]<0&&s[1]>0&&(r.hasAvg=!0)):1===s.length&&(t.includes("<")?(r.minStdDev=null,r.maxStdDev=s[0]):t.includes(">")&&(r.minStdDev=s[0],r.maxStdDev=null))}return r})),{minValue:i,maxValue:a,classBreakInfos:r,normalizationTotal:e.normalizationTotal}}function C(e,t){const r=R(e,t);if(null==r.min&&null==r.max)return{bins:[],minValue:r.min,maxValue:r.max,normalizationTotal:t.normalizationTotal};const s=r.intervals,i=r.min??0,a=r.max??0,n=s.map(((e,t)=>({minValue:s[t][0],maxValue:s[t][1],count:0})));for(const t of e)if(null!=t&&t>=i&&t<=a){const e=q(s,t);e>-1&&n[e].count++}return{bins:n,minValue:i,maxValue:a,normalizationTotal:t.normalizationTotal}}function R(e,t){const{field:r,classificationMethod:s,standardDeviationInterval:i,normalizationType:a,normalizationField:n,normalizationTotal:o,minValue:l,maxValue:u}=t,p=t.numBins||c;let d=null,y=null,h=null;if(s&&"equal-interval"!==s||a){const{classBreaks:t}=P(e,{field:r,normalizationType:a,normalizationField:n,normalizationTotal:o,classificationMethod:s,standardDeviationInterval:i,minValue:l,maxValue:u,numClasses:p});d=t[0].minValue,y=t[t.length-1].maxValue,h=t.map((e=>[e.minValue,e.maxValue]))}else{if(null!=l&&null!=u)d=l,y=u;else{const t=f({values:e,minValue:l,maxValue:u,useSampleStdDev:!a,supportsNullCount:m({normalizationType:a,normalizationField:n,minValue:l,maxValue:u})});d=t.min??null,y=t.max??null}h=function(e,t,r){const s=(t-e)/r,i=[];let a,n=e;for(let e=1;e<=r;e++)a=n+s,a=Number(a.toFixed(16)),i.push([n,e===r?t:a]),n=a;return i}(d??0,y??0,p)}return{min:d,max:y,intervals:h}}function q(e,t){let r=-1;for(let s=e.length-1;s>=0;s--)if(t>=e[s][0]){r=s;break}return r}},71386:(e,t,r)=>{r.d(t,{Ad:()=>l,lw:()=>o,xR:()=>c}),r(59456);var s=r(49186),i=r(53966),a=r(16930);let n;function o(){return n||(n=(async()=>{const e=await r.e(9564).then(r.bind(r,59564));return{arcade:e.arcade,arcadeUtils:e,Dictionary:e.Dictionary,Feature:e.arcadeFeature}})()),n}const l=(e,t,r)=>u.create(e,t,r,null,["$feature","$view"],[]),c=(e,t,r,s)=>u.create(e,t,r,s,["$feature","$view"],[]);class u{constructor(e,t,r,s,i,a,n){this.services=null,this.script=e,this.evaluate=s;const o=Array.isArray(a)?a:a?.fields;this.fields=o??[],this._syntaxTree=r,this._arcade=t,this._arcadeFeature=i,this._spatialReference=n,this._referencesGeometry=t.scriptTouchesGeometry(this._syntaxTree),this._referencesScale=this._arcade.referencesMember(this._syntaxTree,"scale")}static async create(e,t,r,n,l,c){const{arcade:p,Feature:d,Dictionary:y}=await o(),h=a.A.fromJSON(t);let m;try{m=p.parseScript(e,c)}catch(t){return i.A.getLogger("esri.support.arcadeOnDemand").error(new s.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})),null}const g=l.reduce(((e,t)=>({...e,[t]:null})),{});let f=null;null!=n&&(f=new y(n),f.immutable=!0,g.$config=null);const b=p.scriptUsesGeometryEngine(m),v=b&&p.enableGeometrySupport(),M=p.scriptUsesFeatureSet(m)&&p.enableFeatureSetSupport(),S=p.scriptIsAsync(m),w=S&&p.enableAsyncSupport(),_={vars:g,spatialReference:h,useAsync:!!w};await Promise.all([v,M,w]);const T=new Set;await p.loadDependentModules(T,m,null,S,b);const I=new y;I.immutable=!1,I.setField("scale",0);const L=p.compileScript(m,_);return new u(e,p,m,((e,t)=>{const r=e.$view?.timeZone;return"$view"in e&&e.$view&&(I.setField("scale","object"==typeof e.$view&&"scale"in e.$view?e.$view.scale:void 0),e.$view=I),f&&(e.$config=f),L({vars:e,spatialReference:h,services:t,timeZone:r})}),new d,r,h)}repurposeFeature(e){return e.geometry&&!e.geometry.spatialReference&&(e.geometry.spatialReference=this._spatialReference),this._arcadeFeature.repurposeFromGraphicLikeObject(e.geometry,e.attributes,{fields:this.fields}),this._arcadeFeature}referencesGeometry(){return this._referencesGeometry}referencesScale(){return this._referencesScale}}},43281:(e,t,r)=>{r.d(t,{H:()=>n,q:()=>a});var s=r(2741),i=r(10838);async function a(e){if(!e)return;const t=e.includes("-vector")?e.slice(0,e.indexOf("-vector")):e.includes("-3d")?e.slice(0,e.indexOf("-3d")):e,r=await(0,i.ud)("esri/t9n/basemaps");return r[e]||r[t]}const n={satellite:{id:"satellite",classic:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/satellite.jpg")},baseMapLayers:[{id:"satellite-base-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Imagery",showLegend:!1,visibility:!0,opacity:1}]},hybrid:{id:"hybrid",classic:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/hybrid.jpg")},baseMapLayers:[{id:"hybrid-base-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Imagery",showLegend:!1,visibility:!0,opacity:1},{id:"hybrid-reference-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/30d6b8271e1849cd9c3042060001f425/resources/styles/root.json",layerType:"VectorTileLayer",title:"Hybrid Reference Layer",isReference:!0,showLegend:!1,visibility:!0,opacity:1}]},terrain:{id:"terrain",classic:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/terrain.jpg")},baseMapLayers:[{id:"terrain-base-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/World_Terrain_Base/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Terrain Base",showLegend:!1,visibility:!0,opacity:1},{id:"terrain-reference-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/Reference/World_Reference_Overlay/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Reference Overlay",isReference:!0,showLegend:!1,visibility:!0,opacity:1}]},oceans:{id:"oceans",classic:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/oceans.jpg")},baseMapLayers:[{id:"oceans-base-layer",url:"//services.arcgisonline.com/arcgis/rest/services/Ocean/World_Ocean_Base/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Ocean Base",showLegend:!1,visibility:!0,opacity:1},{id:"oceans-reference-layer",url:"//services.arcgisonline.com/arcgis/rest/services/Ocean/World_Ocean_Reference/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Ocean Reference",isReference:!0,showLegend:!1,visibility:!0,opacity:1}]},osm:{id:"osm",classic:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/osm.jpg")},baseMapLayers:[{id:"osm-base-layer",layerType:"OpenStreetMap",title:"Open Street Map",showLegend:!1,visibility:!0,opacity:1}]},"dark-gray-vector":{id:"dark-gray-vector",classic:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/dark-gray-vector.jpg")},baseMapLayers:[{id:"dark-gray-base-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/5e9b3685f4c24d8781073dd928ebda50/resources/styles/root.json",layerType:"VectorTileLayer",title:"Dark Gray Base",visibility:!0,opacity:1},{id:"dark-gray-reference-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/747cb7a5329c478cbe6981076cc879c5/resources/styles/root.json",layerType:"VectorTileLayer",title:"Dark Gray Reference",isReference:!0,visibility:!0,opacity:1}]},get"dark-gray"(){return{...this["dark-gray-vector"],id:"dark-gray"}},"gray-vector":{id:"gray-vector",classic:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/gray-vector.jpg")},baseMapLayers:[{id:"gray-base-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/291da5eab3a0412593b66d384379f89f/resources/styles/root.json",layerType:"VectorTileLayer",title:"Light Gray Base",visibility:!0,opacity:1},{id:"gray-reference-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/1768e8369a214dfab4e2167d5c5f2454/resources/styles/root.json",layerType:"VectorTileLayer",title:"Light Gray Reference",isReference:!0,visibility:!0,opacity:1}]},get gray(){return{...this["gray-vector"],id:"gray"}},"streets-vector":{id:"streets-vector",classic:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/streets-vector.jpg")},baseMapLayers:[{id:"streets-vector-base-layer",styleUrl:"//cdn.arcgis.com/sharing/rest/content/items/de26a3cf4cc9451298ea173c4b324736/resources/styles/root.json",layerType:"VectorTileLayer",title:"World Streets",visibility:!0,opacity:1}]},get streets(){return{...this["streets-vector"],id:"streets"}},"topo-vector":{id:"topo-vector",classic:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/topo-vector.jpg")},baseMapLayers:[{id:"world-hillshade-layer",url:"//services.arcgisonline.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Hillshade",showLegend:!1,visibility:!0,opacity:1},{id:"topo-vector-base-layer",styleUrl:"//cdn.arcgis.com/sharing/rest/content/items/7dc6cea0b1764a1f9af2e679f642f0f5/resources/styles/root.json",layerType:"VectorTileLayer",title:"World Topo",visibility:!0,opacity:1}]},get topo(){return{...this["topo-vector"],id:"topo"}},"streets-night-vector":{id:"streets-night-vector",classic:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/streets-night.jpg")},baseMapLayers:[{id:"streets-night-vector-base-layer",styleUrl:"//cdn.arcgis.com/sharing/rest/content/items/86f556a2d1fd468181855a35e344567f/resources/styles/root.json",layerType:"VectorTileLayer",title:"World Streets Night",visibility:!0,opacity:1}]},"streets-relief-vector":{id:"streets-relief-vector",classic:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/streets-relief.jpg")},baseMapLayers:[{id:"world-hillshade-layer",url:"//services.arcgisonline.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Hillshade",showLegend:!1,visibility:!0,opacity:1},{id:"streets-relief-vector-base-layer",styleUrl:"//www.arcgis.com/sharing/rest/content/items/b266e6d17fc345b498345613930fbd76/resources/styles/root.json",title:"World Streets Relief",layerType:"VectorTileLayer",visibility:!0,opacity:1}]},"streets-navigation-vector":{id:"streets-navigation-vector",classic:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/streets-navigation.jpg")},baseMapLayers:[{id:"streets-navigation-vector-base-layer",styleUrl:"//cdn.arcgis.com/sharing/rest/content/items/63c47b7177f946b49902c24129b87252/resources/styles/root.json",layerType:"VectorTileLayer",title:"World Streets Navigation",visibility:!0,opacity:1}]},"topo-3d":{id:"topo-3d",is3d:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/topo-3d.png")},baseMapLayers:[{id:"topo-3d-base-layer",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/1e7d1784d1ef4b79ba6764d0bd6c3150/resources/styles/root.json",layerType:"VectorTileLayer",title:"Topographic",visibility:!0,opacity:1},{id:"topo-3d-trees",title:"Trees",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_Trees_Thematic_v1/SceneServer",itemId:"f75fef56b2d944fe92ef9f7737b4f953",layerType:"ArcGISSceneServiceLayer"},{id:"topo-3d-places-and-labels",title:"Places and Labels",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_DarkLabels_v1/SceneServer",itemId:"a84404ad39c64c328d0596e361ec459b",layerType:"ArcGISSceneServiceLayer"},{id:"topo-3d-buildings",title:"Buildings",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_Buildings_v1/SceneServer",itemId:"ca0470dbbddb4db28bad74ed39949e25",layerType:"ArcGISSceneServiceLayer"}]},"navigation-3d":{id:"navigation-3d",is3d:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/navigation-3d.jpg")},baseMapLayers:[{id:"navigation-3d-base-layer",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/ccc904ff872b4144b94934e55e32784b/resources/styles/root.json",layerType:"VectorTileLayer",title:"Navigation",visibility:!0,opacity:1},{id:"navigation-3d-places-and-labels",title:"Places and Labels",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_DarkLabels_v1/SceneServer",itemId:"a84404ad39c64c328d0596e361ec459b",layerType:"ArcGISSceneServiceLayer"},{id:"navigation-3d-buildings",title:"Buildings",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_Buildings_v1/SceneServer",itemId:"ca0470dbbddb4db28bad74ed39949e25",layerType:"ArcGISSceneServiceLayer"}]},"streets-3d":{id:"streets-3d",is3d:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/streets-3d.png")},baseMapLayers:[{id:"streets-3d-base-layer",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/198298c4c64c4cb19de5b46aa00c198d/resources/styles/root.json",layerType:"VectorTileLayer",title:"Streets",visibility:!0,opacity:1},{id:"streets-3d-places-and-labels",title:"Places and Labels",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_DarkLabels_v1/SceneServer",itemId:"a84404ad39c64c328d0596e361ec459b",layerType:"ArcGISSceneServiceLayer"},{id:"streets-3d-buildings",title:"Buildings",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_Buildings_v1/SceneServer",itemId:"ca0470dbbddb4db28bad74ed39949e25",layerType:"ArcGISSceneServiceLayer"}]},"osm-3d":{id:"osm-3d",is3d:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/osm-3d.png")},baseMapLayers:[{id:"osm-3d-base-layer",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/8628d259c9d14bdc848771c23c513940/resources/styles/root.json",layerType:"VectorTileLayer",title:"OpenStreetMap",visibility:!0,opacity:1},{id:"osm-3d-trees",title:"Trees",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_Trees_Thematic_v1/SceneServer",itemId:"f75fef56b2d944fe92ef9f7737b4f953",layerType:"ArcGISSceneServiceLayer"},{id:"osm-3d-places-and-labels",title:"Places and Labels",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_DarkLabels_v1/SceneServer",itemId:"a84404ad39c64c328d0596e361ec459b",layerType:"ArcGISSceneServiceLayer"},{id:"osm-3d-buildings",title:"Buildings",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_Buildings_v1/SceneServer",itemId:"ca0470dbbddb4db28bad74ed39949e25",layerType:"ArcGISSceneServiceLayer"}]},"gray-3d":{id:"gray-3d",is3d:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/gray-3d.png")},baseMapLayers:[{id:"gray-3d-base-layer",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/01a14b466345455ba4176d2e6390db92/resources/styles/root.json",layerType:"VectorTileLayer",title:"Streets",visibility:!0,opacity:1},{id:"gray-3d-places-and-labels",title:"Places and Labels",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_DarkLabels_v1/SceneServer",itemId:"a84404ad39c64c328d0596e361ec459b",layerType:"ArcGISSceneServiceLayer"},{id:"gray-3d-buildings",title:"Buildings",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_Buildings_v1/SceneServer",itemId:"ca0470dbbddb4db28bad74ed39949e25",layerType:"ArcGISSceneServiceLayer"}]},"navigation-dark-3d":{id:"navigation-dark-3d",itemId:"5a1365328b4943f09a54cf5fd1205707",is3d:!0,baseMapLayers:[{id:"navigation-dark-3d-base-layer",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/451a1777ab3f4bf095fae24a117439d9/resources/styles/root.json",layerType:"VectorTileLayer",title:"Navigation Dark"},{id:"navigation-dark-3d-places-and-labels",title:"Places and Labels",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_LightLabels_v1/SceneServer/layers/0",itemId:"f364b70b012a4da5a4b5921e193eac4a",layerType:"ArcGISSceneServiceLayer"},{id:"navigation-dark-3d-buildings",title:"Buildings",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_Buildings_v1/SceneServer",itemId:"ca0470dbbddb4db28bad74ed39949e25",layerType:"ArcGISSceneServiceLayer"}]},"streets-dark-3d":{id:"streets-dark-3d",itemId:"8a4efa2c20484ec9b4557895e65736ff",is3d:!0,baseMapLayers:[{id:"streets-dark-3d-base-layer",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/bc599b6d741a4ac084b7eea7bf8c5938/resources/styles/root.json",layerType:"VectorTileLayer",title:"OpenStreetMap Streets Night (for 3D)"},{id:"streets-dark-3d-places-and-labels",title:"Places and Labels",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_LightLabels_v1/SceneServer",itemId:"f364b70b012a4da5a4b5921e193eac4a",layerType:"ArcGISSceneServiceLayer"},{id:"streets-dark-3d-buildings",title:"Buildings",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_Buildings_v1/SceneServer",itemId:"ca0470dbbddb4db28bad74ed39949e25",layerType:"ArcGISSceneServiceLayer"}]},"dark-gray-3d":{id:"dark-gray-3d",itemId:"a8b7322a5fe94002bb0f5e0eeb0c5c18",is3d:!0,baseMapLayers:[{id:"dark-gray-3d-base-layer",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/4178f71acb934fb89f169e7d667c20c6/resources/styles/root.json",layerType:"VectorTileLayer",title:"OpenStreetMap Dark Gray Canvas (for 3D)"},{id:"dark-gray-3d-places-and-labels",title:"Places and Labels",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_LightLabels_v1/SceneServer/layers/0",itemId:"f364b70b012a4da5a4b5921e193eac4a",layerType:"ArcGISSceneServiceLayer"},{id:"dark-gray-3d-buildings",title:"Buildings",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_Buildings_v1/SceneServer",itemId:"ca0470dbbddb4db28bad74ed39949e25",layerType:"ArcGISSceneServiceLayer"}]},"arcgis-imagery":{get thumbnailUrl(){return(0,s.s)("esri/images/basemap/hybrid.jpg")},title:"Imagery Hybrid",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Imagery",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/World_Imagery/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Imagery:Labels",title:"Hybrid Reference Layer",isReference:!0}]},"arcgis-imagery-standard":{get thumbnailUrl(){return(0,s.s)("esri/images/basemap/satellite.jpg")},title:"Imagery",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Imagery",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/World_Imagery/MapServer"}]},"arcgis-imagery-labels":{title:"Hybrid [Reference]",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Imagery:Labels",title:"Hybrid Reference Layer",isReference:!0}]},"arcgis-light-gray":{get thumbnailUrl(){return(0,s.s)("esri/images/basemap/gray-vector.jpg")},title:"Light Gray Canvas",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:LightGray:Base",title:"Light Gray Canvas Base"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:LightGray:Labels",title:"Light Gray Canvas Labels",isReference:!0}]},"arcgis-dark-gray":{get thumbnailUrl(){return(0,s.s)("esri/images/basemap/dark-gray.jpg")},title:"Dark Gray Canvas",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:DarkGray:Base",title:"Dark Gray Canvas Base"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:DarkGray:Labels",title:"Dark Gray Canvas Labels",isReference:!0}]},"arcgis-navigation":{get thumbnailUrl(){return(0,s.s)("esri/images/basemap/streets-navigation.jpg")},title:"Navigation",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Navigation",title:"World Navigation Map"}]},"arcgis-navigation-night":{title:"Navigation (Dark Mode)",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:NavigationNight",title:"World Navigation Map (Dark Mode)"}]},"arcgis-streets":{get thumbnailUrl(){return(0,s.s)("esri/images/basemap/streets-vector.jpg")},title:"Streets",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Streets",title:"World Street Map"}]},"arcgis-streets-night":{get thumbnailUrl(){return(0,s.s)("esri/images/basemap/streets-night.jpg")},title:"Streets (Night)",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:StreetsNight",title:"World Street Map (Night)"}]},"arcgis-streets-relief":{get thumbnailUrl(){return(0,s.s)("esri/images/basemap/streets-relief.jpg")},title:"Streets (with Relief)",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:StreetsRelief:Base",title:"World Street Map (with Relief)"}]},"arcgis-topographic":{get thumbnailUrl(){return(0,s.s)("esri/images/basemap/topo.jpg")},title:"Topographic",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Topographic:Base",title:"World Topographic Map"}]},"arcgis-oceans":{get thumbnailUrl(){return(0,s.s)("esri/images/basemap/oceans.jpg")},title:"Oceans",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Ocean Base",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Ocean/World_Ocean_Base/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Oceans:Labels",title:"World Ocean Reference",isReference:!0}]},"osm-standard":{title:"OpenStreetMap",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:Standard",title:"OpenStreetMap"}]},"osm-standard-relief":{title:"OpenStreetMap (with relief)",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:StandardRelief:Base",layerType:"VectorTileLayer",title:"OpenStreetMap Relief Base"}]},"osm-streets":{title:"OpenStreetMap (Streets)",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:Streets",title:"OpenStreetMap (Streets)"}]},"osm-streets-relief":{title:"OpenStreetMap (Streets with relief)",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:StreetsRelief:Base",layerType:"VectorTileLayer",title:"OpenStreetMap Relief Base"}]},"osm-light-gray":{title:"OpenStreetMap (Light Gray Canvas)",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:LightGray:Base",title:"OSM (Light Gray Base)"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:LightGray:Labels",title:"OSM (Light Gray Reference)",isReference:!0}]},"osm-dark-gray":{title:"OpenStreetMap (Dark Gray Canvas)",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:DarkGray:Base",title:"OSM (Dark Gray Base)"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:DarkGray:Labels",title:"OSM (Dark Gray Reference)",isReference:!0}]},"arcgis-terrain":{title:"Terrain with Labels",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Terrain:Base",title:"World Terrain Base"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Terrain:Detail",title:"World Terrain Reference",isReference:!0}]},"arcgis-community":{title:"Community",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Community",title:"Community"}]},"arcgis-charted-territory":{title:"Charted Territory",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:ChartedTerritory:Base",title:"Charted Territory"}]},"arcgis-colored-pencil":{title:"Colored Pencil",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:ColoredPencil",title:"Colored Pencil"}]},"arcgis-nova":{title:"Nova",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Nova",title:"Nova"}]},"arcgis-modern-antique":{title:"Modern Antique",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:ModernAntique:Base",title:"Modern Antique"}]},"arcgis-midcentury":{title:"Mid-Century",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Midcentury",title:"Mid-Century"}]},"arcgis-newspaper":{title:"Newspaper",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Newspaper",title:"Newspaper"}]},"arcgis-hillshade-light":{title:"Hillshade",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"}]},"arcgis-hillshade-dark":{title:"Hillshade (Dark)",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade (Dark)",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade_Dark/MapServer"}]},"arcgis-human-geography":{title:"Human Geography",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:HumanGeography:Base",title:"Human Geography Base"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:HumanGeography:Detail",title:"Human Geography Detail",isReference:!0},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:HumanGeography:Label",title:"Human Geography Label",isReference:!0}]},"arcgis-human-geography-dark":{title:"Human Geography (Dark)",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:HumanGeographyDark:Base",title:"Human Geography Dark Base"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:HumanGeographyDark:Detail",title:"Human Geography Dark Detail",isReference:!0},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:HumanGeographyDark:Label",title:"Human Geography Dark Label",isReference:!0}]}}},751:(e,t,r)=>{r.d(t,{CJ:()=>d});var s=r(49186),i=r(4718),a=r(93637),n=r(67124),o=r(83531);const l=new Set(["bing-maps","imagery","imagery-tile","map-image","open-street-map","tile","unknown","unsupported","vector-tile","web-tile","wms","wmts"]),c=new Set(["catalog","csv","feature","geo-rss","geojson","group","imagery","imagery-tile","kml","knowledge-graph","map-image","map-notes","media","ogc-feature","oriented-imagery","route","stream","subtype-group","tile","unknown","unsupported","vector-tile","web-tile","wfs","wms","wmts"]);function u(e,t){if(t.restrictedWebMapWriting){const r=function(e){return"basemap"===e.layerContainerType?l:"operational-layers"===e.layerContainerType?c:null}(t);return null==r||r.has(e.type)&&!(0,o.Ov)(e)}return!0}function p(e,t){"maxScale"in e&&(t.maxScale=(0,n.B)(e.maxScale)??void 0),"minScale"in e&&(t.minScale=(0,n.B)(e.minScale)??void 0)}function d(e,t,r){if(!e.persistenceEnabled)return null;if(!("write"in e)||!e.write)return r?.messages&&r.messages.push(new s.A("layer:unsupported",`Layers (${e.title}, ${e.id}) of type '${e.declaredClass}' cannot be persisted`,{layer:e})),null;if((0,o.Ov)(e)&&!e.isTable)t=e.resourceInfo;else if(u(e,r)){const t={};return e.write(t,r)?t:null}return null!=t&&function(e,t){if(function(e,t){if(t)if((0,o.Ov)(e)){const r=(0,a.wc)("featureCollection.layers",t),s=r?.[0]?.layerDefinition;s&&p(e,s)}else"group"!==e.type&&p(e,t)}(e,t),t&&(t.id=e.id,"blendMode"in e&&(t.blendMode=e.blendMode,"normal"===t.blendMode&&delete t.blendMode),t.opacity=(0,n.B)(e.opacity)??void 0,t.title=e.title||"Layer",t.visibility=e.visible,"legendEnabled"in e&&"wmts"!==e.type))if((0,o.Ov)(e)){const r=t.featureCollection;r&&(r.showLegend=e.legendEnabled)}else t.showLegend=e.legendEnabled}(e,t=(0,i.o8)(t)),t}},58769:(e,t,r)=>{function s(e){return"number"==typeof e}function i(e){return"string"==typeof e||e instanceof String}r.d(t,{E:()=>s,K:()=>i})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8438],{5503:(e,t,i)=>{i.d(t,{A:()=>D});var r,n=i(90237),a=i(98291),s=i(65529),o=i(36563),h=i(4718),l=i(93687);!function(e){e[e.ADD=1]="ADD",e[e.REMOVE=2]="REMOVE",e[e.MOVE=4]="MOVE"}(r||(r={}));var c,d=i(11932),m=i(56507),u=i(62788),g=i(10107),f=i(7695),_=i(40608),T=i(95488);class p{constructor(e,t,i,r,n){this.target=e,this.added=t,this.removed=i,this.start=r,this.deleteCount=n}}const A=new l.A(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}));function v(e){return e?e instanceof P?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function S(e){if(e?.length)return e[0]}function y(e,t,i,r){const n=Math.min(e.length-i,t.length-r);let a=0;for(;a<n&&e[i+a]===t[r+a];)a++;return a}function E(e,t,i,r){t&&t.forEach(((t,n,a)=>{e.push(t),E(e,i.call(r,t,n,a),i,r)}))}const b=new Set,C=new Set,M=new Set,w=new Map;let k=0,P=c=class extends s.A.EventedAccessor{static isCollection(e){return null!=e&&e instanceof c}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new T.I,this.length=0,this._items=[],Object.defineProperty(this,"uid",{value:k++})}normalizeCtorArgs(e){return e?Array.isArray(e)||e instanceof c?{items:e}:e:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove()}*[Symbol.iterator](){yield*this.items}get items(){return(0,u.gc)(this._observable),this._items}set items(e){this._emitBeforeChanges(r.ADD)||(this._splice(0,this.length,v(e)),this._emitAfterChanges(r.ADD))}hasEventListener(e){return"change"===e?this._chgListeners.length>0:this._emitter.hasEventListener(e)}on(e,t){if("change"===e){const e=this._chgListeners,i={removed:!1,callback:t};return e.push(i),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),(0,o.hA)((()=>{i.removed=!0,e.splice(e.indexOf(i),1)}))}return this._emitter.on(e,t)}once(e,t){const i="deref"in t?()=>t.deref():()=>t,r=this.on(e,(e=>{i()?.call(null,e),r.remove()}));return r}add(e,t){if((0,u.gc)(this._observable),this._emitBeforeChanges(r.ADD))return this;const i=this.getNextIndex(t??null);return this._splice(i,0,[e]),this._emitAfterChanges(r.ADD),this}addMany(e,t=this._items.length){if((0,u.gc)(this._observable),!e?.length)return this;if(this._emitBeforeChanges(r.ADD))return this;const i=this.getNextIndex(t);return this._splice(i,0,v(e)),this._emitAfterChanges(r.ADD),this}at(e){if((0,u.gc)(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if((0,u.gc)(this._observable),!this.length||this._emitBeforeChanges(r.REMOVE))return[];const e=this._removeAllRaw();return this._emitAfterChanges(r.REMOVE),e}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,u.gc)(this._observable),this._createNewInstance({items:this._items.map(h.o8)})}concat(...e){(0,u.gc)(this._observable);const t=e.map(v);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,u.gc)(this._observable),!this.length||this._emitBeforeChanges(r.REMOVE))return;const i=this._splice(0,this.length),n=i.length;for(let r=0;r<n;r++)e.call(t,i[r],r,i);this._emitAfterChanges(r.REMOVE)}every(e,t){return(0,u.gc)(this._observable),this._items.every(e,t)}filter(e,t){let i;return(0,u.gc)(this._observable),i=2===arguments.length?this._items.filter(e,t):this._items.filter(e),this._createNewInstance({items:i})}find(e,t){return(0,u.gc)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,u.gc)(this._observable),this._items.findIndex(e,t)}flatten(e,t){(0,u.gc)(this._observable);const i=[];return E(i,this,e,t),new c(i)}forEach(e,t){return(0,u.gc)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,u.gc)(this._observable),this._items[e]}getNextIndex(e){(0,u.gc)(this._observable);const t=this.length;return(e=e??t)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,u.gc)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,u.gc)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,u.gc)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,u.gc)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,u.gc)(this._observable);const i=this._items.map(e,t);return new c({items:i})}reorder(e,t=this.length-1){(0,u.gc)(this._observable);const i=this.indexOf(e);if(-1!==i){if(t<0?t=0:t>=this.length&&(t=this.length-1),i!==t){if(this._emitBeforeChanges(r.MOVE))return e;this._splice(i,1),this._splice(t,0,[e]),this._emitAfterChanges(r.MOVE)}return e}}pop(){if((0,u.gc)(this._observable),!this.length||this._emitBeforeChanges(r.REMOVE))return;const e=S(this._splice(this.length-1,1));return this._emitAfterChanges(r.REMOVE),e}push(...e){return(0,u.gc)(this._observable),this._emitBeforeChanges(r.ADD)||(this._splice(this.length,0,e),this._emitAfterChanges(r.ADD)),this.length}reduce(e,t){(0,u.gc)(this._observable);const i=this._items;return 2===arguments.length?i.reduce(e,t):i.reduce(e)}reduceRight(e,t){(0,u.gc)(this._observable);const i=this._items;return 2===arguments.length?i.reduceRight(e,t):i.reduceRight(e)}remove(e){return(0,u.gc)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,u.gc)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(r.REMOVE))return;const t=S(this._splice(e,1));return this._emitAfterChanges(r.REMOVE),t}removeMany(e){if((0,u.gc)(this._observable),!e?.length||this._emitBeforeChanges(r.REMOVE))return[];const t=e instanceof c?e.toArray():e,i=this._items,n=[],a=t.length;for(let e=0;e<a;e++){const r=t[e],a=i.indexOf(r);if(a>-1){const r=1+y(t,i,e+1,a+1),s=this._splice(a,r);s&&s.length>0&&n.push.apply(n,s),e+=r-1}}return this._emitAfterChanges(r.REMOVE),n}reverse(){if((0,u.gc)(this._observable),this._emitBeforeChanges(r.MOVE))return this;const e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(r.MOVE),this}shift(){if((0,u.gc)(this._observable),!this.length||this._emitBeforeChanges(r.REMOVE))return;const e=S(this._splice(0,1));return this._emitAfterChanges(r.REMOVE),e}slice(e=0,t=this.length){return(0,u.gc)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,u.gc)(this._observable),this._items.some(e,t)}sort(e){if((0,u.gc)(this._observable),!this.length||this._emitBeforeChanges(r.MOVE))return this;const t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(r.MOVE),this}splice(e,t,...i){(0,u.gc)(this._observable);const n=(t?r.REMOVE:0)|(i.length?r.ADD:0);if(this._emitBeforeChanges(n))return[];const a=this._splice(e,t,i)||[];return this._emitAfterChanges(n),a}toArray(){return(0,u.gc)(this._observable),this._items.slice()}toJSON(){return(0,u.gc)(this._observable),this.toArray()}toLocaleString(){return(0,u.gc)(this._observable),this._items.toLocaleString()}toString(){return(0,u.gc)(this._observable),this._items.toString()}unshift(...e){return(0,u.gc)(this._observable),!e.length||this._emitBeforeChanges(r.ADD)||(this._splice(0,0,e),this._emitAfterChanges(r.ADD)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,i){const r=this._items,n=this.itemType;let a,s;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=(0,d._)((()=>this._dispatchChange()))),e<0&&(e+=this.length),t){if(s=r.splice(e,t),this.hasEventListener("before-remove")){const t=A.acquire();t.target=this,t.cancellable=!0;for(let i=0,n=s.length;i<n;i++)a=s[i],t.reset(a),this.emit("before-remove",t),t.defaultPrevented&&(s.splice(i,1),r.splice(e,0,a),e+=1,i-=1,n-=1);A.release(t)}if(this.length=this._items.length,this.hasEventListener("after-remove")){const e=A.acquire();e.target=this,e.cancellable=!1;const t=s.length;for(let i=0;i<t;i++)e.reset(s[i]),this.emit("after-remove",e);A.release(e)}}if(i?.length){if(n){const e=[];for(const t of i){const i=n.ensureType(t);null==i&&null!=t||e.push(i)}i=e}const t=this.hasEventListener("before-add"),a=this.hasEventListener("after-add"),s=e===this.length;if(t||a){const n=A.acquire();n.target=this,n.cancellable=!0;const o=A.acquire();o.target=this,o.cancellable=!1;for(const h of i)t?(n.reset(h),this.emit("before-add",n),n.defaultPrevented||(s?r.push(h):r.splice(e++,0,h),this._set("length",r.length),a&&(o.reset(h),this.emit("after-add",o)))):(s?r.push(h):r.splice(e++,0,h),this._set("length",r.length),o.reset(h),this.emit("after-add",o));A.release(o),A.release(n)}else{if(s)for(const e of i)r.push(e);else r.splice(e,0,...i);this._set("length",r.length)}}if((i?.length||s?.length)&&this._notifyChangeEvent(i,s),this.hasEventListener("after-splice")){const r=new p(this,i,s,e,t);this.emit("after-splice",r)}return s}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){const i=A.acquire();i.target=this,i.cancellable=!0,i.type=e,this.emit("before-changes",i),t=i.defaultPrevented,A.release(i)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){const t=A.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),A.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),this._updating=!1,!this._notifications)return;const e=this._notifications;this._notifications=null;for(const t of e){const e=t.changes;b.clear(),C.clear(),M.clear();for(const{added:t,removed:i}of e){if(t)if(0===M.size&&0===C.size)for(const e of t)b.add(e);else for(const e of t)C.has(e)?(M.add(e),C.delete(e)):M.has(e)||b.add(e);if(i)if(0===M.size&&0===b.size)for(const e of i)C.add(e);else for(const e of i)b.has(e)?b.delete(e):(M.delete(e),C.add(e))}const i=a.A.acquire();b.forEach((e=>{i.push(e)}));const r=a.A.acquire();C.forEach((e=>{r.push(e)}));const n=this._items,s=t.items,o=a.A.acquire();if(M.forEach((e=>{s.indexOf(e)!==n.indexOf(e)&&o.push(e)})),t.listeners&&(i.length||r.length||o.length)){const e={target:this,added:i,removed:r,moved:o},n=t.listeners.length;for(let i=0;i<n;i++){const r=t.listeners[i];r.removed||r.callback.call(this,e)}}a.A.release(i),a.A.release(r),a.A.release(o)}b.clear(),C.clear(),M.clear()}};P.ofType=e=>{if(!e)return c;if(w.has(e))return w.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 i in e.typeMap){const r=e.typeMap[i].prototype.declaredClass;t?t+=` | ${r}`:t=r}let i=class extends c{};return(0,n._)([(0,f.u)({Type:e,ensureType:"function"==typeof e?(0,m.dp)(e):(0,m.aq)(e)})],i.prototype,"itemType",void 0),i=(0,n._)([(0,_.$)(`esri.core.Collection<${t}>`)],i),w.set(e,i),i},(0,n._)([(0,g.MZ)()],P.prototype,"_updating",void 0),(0,n._)([(0,g.MZ)()],P.prototype,"length",void 0),(0,n._)([(0,g.MZ)()],P.prototype,"items",null),(0,n._)([(0,g.MZ)({readOnly:!0})],P.prototype,"updating",null),P=c=(0,n._)([(0,_.$)("esri.core.Collection")],P);const D=P},65529:(e,t,i)=>{i.d(t,{A:()=>h});var r=i(90237),n=i(69622),a=i(36563),s=i(40608);class o{constructor(){this._emitter=new o.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?.clear(),this._listenersMap=null}destroy(){this.clear()}emit(e,t){let i=this._listenersMap?.get(e);if(!i)return!1;const r=this._target||this;let n=!1;for(const e of i.slice()){const i="deref"in e?e.deref():e;i?i?.call(r,t):n=!0}return n&&(i=i.filter((e=>!("deref"in e)||null!=e.deref())),this._listenersMap.set(e,i)),i.length>0}on(e,t){if(Array.isArray(e)){const i=e.map((e=>this.on(e,t)));return(0,a.vE)(i)}if(e.includes(","))throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap??=new Map;const i=this._listenersMap.get(e)||[];return i.push(t),this._listenersMap.set(e,i),(0,a.hA)((()=>{const i=this._listenersMap?.get(e),r=i?.indexOf(t)??-1;r>=0&&i.splice(r,1)}))}once(e,t){const i=this.on(e,(e=>{i.remove();const r="deref"in t?t.deref():t;r?.call(null,e)}));return i}hasEventListener(e){const t=this._listenersMap?.get(e);return null!=t&&t.length>0}}e.EventEmitter=t,e.EventedMixin=e=>{let i=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 i=(0,r._)([(0,s.$)("esri.core.Evented")],i),i};let i=class extends n.A{constructor(){super(...arguments),this._emitter=new o.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)}};i=(0,r._)([(0,s.$)("esri.core.Evented.EventedAccessor")],i),e.EventedAccessor=i}(o||(o={}));const h=o},61893:(e,t,i)=>{i.d(t,{Z:()=>d,g:()=>c});var r,n,a=i(90237),s=i(69622),o=i(74887),h=i(40608);(n=r||(r={}))[n.PENDING=0]="PENDING",n[n.RESOLVED=1]="RESOLVED",n[n.REJECTED=2]="REJECTED";class l{constructor(){this._resolver=(0,o.Tw)(),this._status=r.PENDING,this._resolvingPromises=[],this._resolver.promise.then((()=>{this._status=r.RESOLVED,this._cleanUp()}),(()=>{this._status=r.REJECTED,this._cleanUp()})),this.promise=this._resolver.promise}destroy(){this._cleanUp()}addResolvingPromise(e){this._resolvingPromises.push(e),this._tryResolve()}isResolved(){return this._status===r.RESOLVED}isRejected(){return this._status===r.REJECTED}isFulfilled(){return this._status!==r.PENDING}abort(){this._resolver.reject((0,o.NK)())}_cleanUp(){this._allPromise=null,this._resolvingPromises=null}_tryResolve(){if(this.isFulfilled())return;const e=(0,o.Tw)(),t=[...this._resolvingPromises,e.promise],i=this._allPromise=Promise.all(t);i.then((()=>{this.isFulfilled()||this._allPromise!==i||this._resolver.resolve()}),(e=>{this.isFulfilled()||this._allPromise!==i||(0,o.zf)(e)||this._resolver.reject(e)})),e.resolve()}}const c=e=>{let t=class extends e{constructor(...e){super(...e),this._promiseProps=new l,this.addResolvingPromise(Promise.resolve())}destroy(){this._promiseProps.destroy()}isResolved(){return this._promiseProps.isResolved()}isRejected(){return this._promiseProps.isRejected()}isFulfilled(){return this._promiseProps.isFulfilled()}when(e,t){return this._promiseProps.promise.then((()=>this)).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,a._)([(0,h.$)("esri.core.Promise")],t),t};let d=class extends(c(s.A)){};d=(0,a._)([(0,h.$)("esri.core.Promise")],d)},7695:(e,t,i)=>{function r(e){return(t,i)=>{t[i]=e}}i.d(t,{u:()=>r})},95488:(e,t,i)=>{i.d(t,{I:()=>n});var r=i(11406);class n extends r.T{notify(){const e=this._observers;if(e&&e.length>0){const t=e.slice();for(const e of t)e.onInvalidated(),e.onCommitted()}}}},60999:(e,t,i)=>{i.d(t,{DZ:()=>g,Ke:()=>u,Tj:()=>c,UT:()=>f,jJ:()=>l});var r=i(90237),n=i(69622),a=i(97768),s=i(74887),o=i(10107),h=i(40608);function l(e,t,i){return(0,s.Lx)(e.map(((e,r)=>t.apply(i,[e,r]))))}async function c(e,t,i){return(await(0,s.Lx)(e.map(((e,r)=>t.apply(i,[e,r]))))).map((e=>e.value))}function d(e){return{ok:!0,value:e}}function m(e){return{ok:!1,error:e}}async function u(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return d(await e)}catch(e){return m(e)}}async function g(e){try{return d(await e)}catch(e){return(0,s.QP)(e),m(e)}}function f(e,t){return new _(e,t)}let _=class extends n.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,a.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:i}=this._abortController;this.promise=e(i),this.promise.then((e=>{this._result=d(e),this._cleanup()}),(e=>{this._result=m(e),this._cleanup()})),this._abortHandle=(0,s.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,a.xt)(this._abortHandle),this._abortController=null}};(0,r._)([(0,o.MZ)()],_.prototype,"value",null),(0,r._)([(0,o.MZ)()],_.prototype,"error",null),(0,r._)([(0,o.MZ)()],_.prototype,"finished",null),(0,r._)([(0,o.MZ)()],_.prototype,"promise",void 0),(0,r._)([(0,o.MZ)()],_.prototype,"_result",void 0),_=(0,r._)([(0,h.$)("esri.core.asyncUtils.ReactiveTask")],_)},47566:(e,t,i)=>{i(97770),i(18047),i(71754),i(73444);var r=i(10838),n=i(78888),a=i(49186);async function s(e){if(null!=o.fetchBundleAsset)return o.fetchBundleAsset(e);const t=await(0,n.A)(e,{responseType:"text"});return JSON.parse(t.data)}const o={};var h,l=i(2741);(0,r.ao)((h={pattern:"esri/",location:l.s},new class{constructor({base:e="",pattern:t,location:i=new URL(window.location.href)}){let r;r="string"==typeof i?e=>new URL(e,new URL(i,window.location.href)).href:i instanceof URL?e=>new URL(e,i).href:i,this.pattern="string"==typeof t?new RegExp(`^${t}`):t,this.getAssetUrl=r,e=e?e.endsWith("/")?e:e+"/":"",this.matcher=new RegExp(`^${e}(?:(.*)\\/)?(.*)$`)}fetchMessageBundle(e,t){return async function(e,t,i,n){const o=t.exec(i);if(!o)throw new a.A("esri-intl:invalid-bundle",`Bundle id "${i}" is not compatible with the pattern "${t}"`);const h=o[1]?`${o[1]}/`:"",l=o[2],c=(0,r.xO)(n),d=`${h}${l}.json`,m=c?`${h}${l}_${c}.json`:d;let u;try{u=await s(e(m))}catch(t){if(m===d)throw new a.A("intl:unknown-bundle",`Bundle "${i}" cannot be loaded`,{error:t});try{u=await s(e(d))}catch(e){throw new a.A("intl:unknown-bundle",`Bundle "${i}" cannot be loaded`,{error:e})}}return u}(this.getAssetUrl,this.matcher,e,t)}}(h)))},97770:(e,t,i)=>{i.d(t,{J2:()=>v,Yq:()=>S,_v:()=>_,wj:()=>y});var r=i(66552),n=i(73444),a=i(56400);i(96285),a.n$;const s={year:"numeric",month:"numeric",day:"numeric"},o={year:"numeric",month:"long",day:"numeric"},h={year:"numeric",month:"short",day:"numeric"},l={year:"numeric",month:"long",weekday:"long",day:"numeric"},c={hour:"numeric",minute:"numeric"},d={...c,second:"numeric"},m={hourCycle:"h23"},u={...c,...m},g={...d,...m},f={"short-date":s,"short-date-short-time":{...s,...c},"short-date-short-time-24":{...s,...u},"short-date-long-time":{...s,...d},"short-date-long-time-24":{...s,...g},"short-date-le":s,"short-date-le-short-time":{...s,...c},"short-date-le-short-time-24":{...s,...u},"short-date-le-long-time":{...s,...d},"short-date-le-long-time-24":{...s,...g},"long-month-day-year":o,"long-month-day-year-short-time":{...o,...c},"long-month-day-year-short-time-24":{...o,...u},"long-month-day-year-long-time":{...o,...d},"long-month-day-year-long-time-24":{...o,...g},"day-short-month-year":h,"day-short-month-year-short-time":{...h,...c},"day-short-month-year-short-time-24":{...h,...u},"day-short-month-year-long-time":{...h,...d},"day-short-month-year-long-time-24":{...h,...g},"long-date":l,"long-date-short-time":{...l,...c},"long-date-short-time-24":{...l,...u},"long-date-long-time":{...l,...d},"long-date-long-time-24":{...l,...g},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":c,"long-time":d},_=(0,r.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),T={ar:"ar-u-nu-latn-ca-gregory"};let p=new WeakMap;const A=f["short-date-short-time"];function v(e){return f[e]}function S(e,t=A){return function(e){let t=p.get(e);if(!t){const i=(0,n.JK)(),r=T[i]||i,s=y(e.timeZone??a.qU),o={...e,timeZone:s};t=new Intl.DateTimeFormat(r,o),p.set(e,t)}return t}(t).format(e)}function y(e){switch(e){case a.qU:return a.N5;case a.L5:return a.n$;default:return e}}(0,n.Ml)((()=>{p=new WeakMap}))},73444:(e,t,i)=>{i.d(t,{JK:()=>o,Ml:()=>m,Z0:()=>h,oQ:()=>c});var r=i(36563);let n;const a=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale;function s(){return a??globalThis.navigator?.language??"en"}function o(){return void 0===n&&(n=s()),n}function h(e=o()){const t=/^([a-zA-Z]{2,3})(?:[_-]\w+)*$/.exec(e);return t?.[1].toLowerCase()}const l=[];function c(e){return l.push(e),(0,r.hA)((()=>l.splice(l.indexOf(e),1)))}const d=[];function m(e){return d.push(e),(0,r.hA)((()=>d.splice(d.indexOf(e),1)))}globalThis.addEventListener?.("languagechange",(function(){const e=s();n!==e&&([...d].forEach((t=>t(e))),n=e,[...l].forEach((t=>t(e))))}))},10838:(e,t,i)=>{i.d(t,{ao:()=>u,ud:()=>g,xO:()=>f});var r=i(49186),n=i(36563),a=i(74887),s=i(73444);const o=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,h={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){return e in h}const c=[],d=new Map;function m(e){for(const t of d.keys())_(e.pattern,t)&&d.delete(t)}function u(e){return c.includes(e)||(m(e),c.unshift(e)),(0,n.hA)((()=>{const t=c.indexOf(e);t>-1&&(c.splice(t,1),m(e))}))}async function g(e){const t=(0,s.JK)();d.has(e)||d.set(e,async function(e,t){const i=[];for(const r of c)if(_(r.pattern,e))try{return await r.fetchMessageBundle(e,t)}catch(e){i.push(e)}if(i.length)throw new r.A("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:i});throw new r.A("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}(e,t));const i=d.get(e);return i&&await T.add(i),i}function f(e){if(!o.test(e))return null;const t=o.exec(e);if(null===t)return null;const[,i,r]=t,n=i+(r?"-"+r.toUpperCase():"");return l(n)?n:l(i)?i:null}function _(e,t){return"string"==typeof e?t.startsWith(e):e.test(t)}(0,s.Ml)((()=>{d.clear()}));const T=new class{constructor(){this._numLoading=0,this._dfd=null}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,a.Tw)())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},18047:(e,t,i)=>{i.d(t,{ZV:()=>o});var r=i(73444);const n={ar:"ar-u-nu-latn"};let a=new WeakMap,s={};function o(e,t){return Object.is(e,-0)&&(e=0),function(e){const t=e||s;if(!a.has(t)){const i=(0,r.JK)(),s=n[(0,r.JK)()]||i;a.set(t,new Intl.NumberFormat(s,e))}return a.get(t)}(t).format(e)}(0,r.Ml)((()=>{a=new WeakMap,s={}})),new Map},71754:(e,t,i)=>{i.d(t,{V:()=>l});var r=i(53966),n=i(93637),a=i(799),s=i(97770),o=i(18047);const h=()=>r.A.getLogger("esri.intl.substitute");function l(e,t,i={}){const{format:r={}}=i;return(0,a.HC)(e,(e=>function(e,t,i){let r,a;const s=e.indexOf(":");if(-1===s?r=e.trim():(r=e.slice(0,s).trim(),a=e.slice(s+1).trim()),!r)return"";const o=(0,n.wc)(r,t);if(null==o)return"";const h=(a?i?.[a]:null)??i?.[r];return h?c(o,h):a?d(o,a):m(o)}(e,t,r)))}function c(e,t){switch(t.type){case"date":return(0,s.Yq)(e,t.intlOptions);case"number":return(0,o.ZV)(e,t.intlOptions);default:return h().warn("missing format descriptor for key {key}"),m(e)}}function d(e,t){switch(t.toLowerCase()){case"dateformat":return(0,s.Yq)(e);case"numberformat":return(0,o.ZV)(e);default:return h().warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?(0,s.Yq)(e):/^numberformat/i.test(t)?(0,o.ZV)(e):m(e)}}function m(e){switch(typeof e){case"string":return e;case"number":return(0,o.ZV)(e);case"boolean":return""+e;default:return e instanceof Date?(0,s.Yq)(e):""}}},56400:(e,t,i)=>{i.d(t,{ZS:()=>c,qU:()=>a,N5:()=>h,P6:()=>l,L5:()=>s,n$:()=>o});const r=new Map([["AUS Central Standard Time","Australia/Darwin"],["AUS Eastern Standard Time","Australia/Sydney"],["Afghanistan Standard Time","Asia/Kabul"],["Alaskan Standard Time","America/Anchorage"],["Aleutian Standard Time","America/Adak"],["Altai Standard Time","Asia/Barnaul"],["Arab Standard Time","Asia/Riyadh"],["Arabian Standard Time","Asia/Dubai"],["Arabic Standard Time","Asia/Baghdad"],["Argentina Standard Time","America/Buenos_Aires"],["Astrakhan Standard Time","Europe/Astrakhan"],["Atlantic Standard Time","America/Halifax"],["Aus Central W. Standard Time","Australia/Eucla"],["Azerbaijan Standard Time","Asia/Baku"],["Azores Standard Time","Atlantic/Azores"],["Bahia Standard Time","America/Bahia"],["Bangladesh Standard Time","Asia/Dhaka"],["Belarus Standard Time","Europe/Minsk"],["Bougainville Standard Time","Pacific/Bougainville"],["Canada Central Standard Time","America/Regina"],["Cape Verde Standard Time","Atlantic/Cape_Verde"],["Caucasus Standard Time","Asia/Yerevan"],["Cen. Australia Standard Time","Australia/Adelaide"],["Central America Standard Time","America/Guatemala"],["Central Asia Standard Time","Asia/Bishkek"],["Central Brazilian Standard Time","America/Cuiaba"],["Central Europe Standard Time","Europe/Budapest"],["Central European Standard Time","Europe/Warsaw"],["Central Pacific Standard Time","Pacific/Guadalcanal"],["Central Standard Time","America/Chicago"],["Central Standard Time (Mexico)","America/Mexico_City"],["Chatham Islands Standard Time","Pacific/Chatham"],["China Standard Time","Asia/Shanghai"],["Cuba Standard Time","America/Havana"],["Dateline Standard Time","Etc/GMT+12"],["E. Africa Standard Time","Africa/Nairobi"],["E. Australia Standard Time","Australia/Brisbane"],["E. Europe Standard Time","Europe/Chisinau"],["E. South America Standard Time","America/Sao_Paulo"],["Easter Island Standard Time","Pacific/Easter"],["Eastern Standard Time","America/New_York"],["Eastern Standard Time (Mexico)","America/Cancun"],["Egypt Standard Time","Africa/Cairo"],["Ekaterinburg Standard Time","Asia/Yekaterinburg"],["FLE Standard Time","Europe/Kiev"],["Fiji Standard Time","Pacific/Fiji"],["GMT Standard Time","Europe/London"],["GTB Standard Time","Europe/Bucharest"],["Georgian Standard Time","Asia/Tbilisi"],["Greenland Standard Time","America/Godthab"],["Greenwich Standard Time","Atlantic/Reykjavik"],["Haiti Standard Time","America/Port-au-Prince"],["Hawaiian Standard Time","Pacific/Honolulu"],["India Standard Time","Asia/Calcutta"],["Iran Standard Time","Asia/Tehran"],["Israel Standard Time","Asia/Jerusalem"],["Jordan Standard Time","Asia/Amman"],["Kaliningrad Standard Time","Europe/Kaliningrad"],["Korea Standard Time","Asia/Seoul"],["Libya Standard Time","Africa/Tripoli"],["Line Islands Standard Time","Pacific/Kiritimati"],["Lord Howe Standard Time","Australia/Lord_Howe"],["Magadan Standard Time","Asia/Magadan"],["Magallanes Standard Time","America/Punta_Arenas"],["Marquesas Standard Time","Pacific/Marquesas"],["Mauritius Standard Time","Indian/Mauritius"],["Middle East Standard Time","Asia/Beirut"],["Montevideo Standard Time","America/Montevideo"],["Morocco Standard Time","Africa/Casablanca"],["Mountain Standard Time","America/Denver"],["Mountain Standard Time (Mexico)","America/Mazatlan"],["Myanmar Standard Time","Asia/Rangoon"],["N. Central Asia Standard Time","Asia/Novosibirsk"],["Namibia Standard Time","Africa/Windhoek"],["Nepal Standard Time","Asia/Katmandu"],["New Zealand Standard Time","Pacific/Auckland"],["Newfoundland Standard Time","America/St_Johns"],["Norfolk Standard Time","Pacific/Norfolk"],["North Asia East Standard Time","Asia/Irkutsk"],["North Asia Standard Time","Asia/Krasnoyarsk"],["North Korea Standard Time","Asia/Pyongyang"],["Omsk Standard Time","Asia/Omsk"],["Pacific SA Standard Time","America/Santiago"],["Pacific Standard Time","America/Los_Angeles"],["Pacific Standard Time (Mexico)","America/Tijuana"],["Pakistan Standard Time","Asia/Karachi"],["Paraguay Standard Time","America/Asuncion"],["Qyzylorda Standard Time","Asia/Qyzylorda"],["Romance Standard Time","Europe/Paris"],["Russia Time Zone 10","Asia/Srednekolymsk"],["Russia Time Zone 11","Asia/Kamchatka"],["Russia Time Zone 3","Europe/Samara"],["Russian Standard Time","Europe/Moscow"],["SA Eastern Standard Time","America/Cayenne"],["SA Pacific Standard Time","America/Bogota"],["SA Western Standard Time","America/La_Paz"],["SE Asia Standard Time","Asia/Bangkok"],["Saint Pierre Standard Time","America/Miquelon"],["Sakhalin Standard Time","Asia/Sakhalin"],["Samoa Standard Time","Pacific/Apia"],["Sao Tome Standard Time","Africa/Sao_Tome"],["Saratov Standard Time","Europe/Saratov"],["Singapore Standard Time","Asia/Singapore"],["South Africa Standard Time","Africa/Johannesburg"],["South Sudan Standard Time","Africa/Juba"],["Sri Lanka Standard Time","Asia/Colombo"],["Sudan Standard Time","Africa/Khartoum"],["Syria Standard Time","Asia/Damascus"],["Taipei Standard Time","Asia/Taipei"],["Tasmania Standard Time","Australia/Hobart"],["Tocantins Standard Time","America/Araguaina"],["Tokyo Standard Time","Asia/Tokyo"],["Tomsk Standard Time","Asia/Tomsk"],["Tonga Standard Time","Pacific/Tongatapu"],["Transbaikal Standard Time","Asia/Chita"],["Turkey Standard Time","Europe/Istanbul"],["Turks And Caicos Standard Time","America/Grand_Turk"],["US Eastern Standard Time","America/Indianapolis"],["US Mountain Standard Time","America/Phoenix"],["UTC","Etc/GMT"],["UTC+01","Etc/GMT-1"],["UTC+02","Etc/GMT-2"],["UTC+03","Etc/GMT-3"],["UTC+04","Etc/GMT-4"],["UTC+05","Etc/GMT-5"],["UTC+06","Etc/GMT-6"],["UTC+07","Etc/GMT-7"],["UTC+08","Etc/GMT-8"],["UTC+09","Etc/GMT-9"],["UTC+10","Etc/GMT-10"],["UTC+11","Etc/GMT-11"],["UTC+12","Etc/GMT-12"],["UTC+13","Etc/GMT-13"],["UTC+14","Etc/GMT-14"],["UTC-01","Etc/GMT+1"],["UTC-02","Etc/GMT+2"],["UTC-03","Etc/GMT+3"],["UTC-04","Etc/GMT+4"],["UTC-05","Etc/GMT+5"],["UTC-06","Etc/GMT+6"],["UTC-07","Etc/GMT+7"],["UTC-08","Etc/GMT+8"],["UTC-09","Etc/GMT+9"],["UTC-10","Etc/GMT+10"],["UTC-11","Etc/GMT+11"],["UTC-12","Etc/GMT+12"],["Ulaanbaatar Standard Time","Asia/Ulaanbaatar"],["Venezuela Standard Time","America/Caracas"],["Vladivostok Standard Time","Asia/Vladivostok"],["Volgograd Standard Time","Europe/Volgograd"],["W. Australia Standard Time","Australia/Perth"],["W. Central Africa Standard Time","Africa/Lagos"],["W. Europe Standard Time","Europe/Berlin"],["W. Mongolia Standard Time","Asia/Hovd"],["West Asia Standard Time","Asia/Tashkent"],["West Bank Standard Time","Asia/Hebron"],["West Pacific Standard Time","Pacific/Port_Moresby"],["Yakutsk Standard Time","Asia/Yakutsk"],["Yukon Standard Time","America/Whitehorse"]]);var n=i(96285);const a="system",s="unknown",o="UTC",h=Intl.DateTimeFormat().resolvedOptions().timeZone;function l(e,t=!1){return{json:{read:{source:e,reader:(t,i)=>i[e]?c(i[e]):null},write:!!t&&{allowNull:!0,writer(t,i){i[e]=t?function(e){return{timeZoneIANA:e}}(t):null}}}}}function c(e,t=a){return e?function(e){return"timeZoneIANA"in e}(e)?e.timeZoneIANA:function(e,t=a){if(!e||!r.has(e.timeZone))return t;const i=r.get(e.timeZone);return function(e){return e.startsWith("UTC")}(e.timeZone)||e.respectsDaylightSaving?i:function(e){const t=n.c9.local().setZone(e),i=Math.min(t.set({month:1,day:1}).offset,t.set({month:5}).offset);return 0===i?"Etc/UTC":`Etc/GMT${n.mQ.instance(-i).formatOffset(0,"narrow")}`}(i)}(e,t):t}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7656],{70668:(e,t,r)=>{r.d(t,{A:()=>y});var i=r(90237),s=r(69540),o=r(25482),a=r(88930),n=r(10107),l=(r(44208),r(53966),r(87811),r(93223)),d=r(40608),u=r(73133);let p=class extends((0,s.O)(o.oY)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,a.t)(this.value,this.unit,"milliseconds")}};(0,i._)([(0,l.e)(u.j,{nonNullable:!0})],p.prototype,"unit",void 0),(0,i._)([(0,n.MZ)({type:Number,json:{write:!0},nonNullable:!0})],p.prototype,"value",void 0),p=(0,i._)([(0,d.$)("esri.TimeInterval")],p);const y=p},83960:(e,t,r)=>{r.d(t,{X_:()=>a,zx:()=>n});var i=r(34727),s=r(83047);const o=96;function a(e,t){const r=t||e.extent,i=e.width,a=(0,s.GA)(r?.spatialReference);return r&&i?r.width/i*a*s.dy*o:0}function n(e,t,r){return function(e,t){return 0===t||(0,i.Sp)(e,t)||e<t}(e,t)&&function(e,t){return 0===t||(0,i.Sp)(e,t)||e>t}(e,r)}},7656:(e,t,r)=>{r.r(t),r.d(t,{default:()=>C});var i=r(90237),s=r(78888),o=r(60945),a=r(49186),n=r(81583),l=r(92071),d=r(74887),u=r(10107),p=r(56507),y=(r(87811),r(44208),r(36005)),m=r(40608),c=r(43937),h=r(35666),f=r(5443),v=r(83960),g=r(21325),b=r(4146),_=r(52136),x=r(98534),w=r(18768),I=r(63074),S=r(69208),M=r(16131),T=r(8303),Z=r(54310),O=r(25036),E=r(91921),A=r(82935),L=r(10873),P=r(69622),U=r(39516);function j(e,t){return"floorInfo"in t&&t.floorInfo?.floorField?function(e,t){if(!e?.length)return null;const r=e.filter((e=>""!==e)).map((e=>`'${e}'`));return r.push("''"),`${t} IN (${r.join(",")}) OR ${t} IS NULL`}(e,t.floorInfo.floorField):null}r(53966);var N=r(63389);const F={visible:"visibleSublayers",definitionExpression:"layerDefs",labelingInfo:"hasDynamicLayers",labelsVisible:"hasDynamicLayers",opacity:"hasDynamicLayers",minScale:"visibleSublayers",maxScale:"visibleSublayers",renderer:"hasDynamicLayers",source:"hasDynamicLayers"};let D=class extends P.A{constructor(e){super(e),this.floors=null,this.scale=0}destroy(){this.layer=null}get dynamicLayers(){if(!this.hasDynamicLayers)return null;const e=this.visibleSublayers.map((e=>{const t=j(this.floors,e);return e.toExportImageJSON(t)}));return e.length?JSON.stringify(e):null}get hasDynamicLayers(){return this.layer&&(0,N.Sk)(this.visibleSublayers,this.layer.serviceSublayers,this.layer.gdbVersion)}set layer(e){this._get("layer")!==e&&(this._set("layer",e),this.removeHandles("layer"),e&&this.addHandles([e.allSublayers.on("change",(()=>this.notifyChange("visibleSublayers"))),e.on("sublayer-update",(e=>this.notifyChange(F[e.propertyName])))],"layer"))}get layers(){const e=this.visibleSublayers;return e?e.length?"show:"+e.map((e=>e.id)).join(","):"show:-1":null}get layerDefs(){const e=!!this.floors?.length,t=this.visibleSublayers.filter((t=>null!=t.definitionExpression||e&&null!=t.floorInfo));return t.length?JSON.stringify(t.reduce(((e,t)=>{const r=j(this.floors,t),i=(0,U.m)(r,t.definitionExpression);return null!=i&&(e[t.id]=i),e}),{})):null}get version(){this.commitProperty("layers"),this.commitProperty("layerDefs"),this.commitProperty("dynamicLayers");const e=this.layer;return e&&(e.commitProperty("dpi"),e.commitProperty("imageFormat"),e.commitProperty("imageTransparency"),e.commitProperty("gdbVersion")),(this._get("version")||0)+1}get visibleSublayers(){const e=[];if(!this.layer)return e;const t=this.layer.sublayers,r=this.scale,i=t=>{t.visible&&(0===r||(0,v.zx)(r,t.minScale,t.maxScale))&&(t.sublayers?t.sublayers.forEach(i):e.unshift(t))};t&&t.forEach(i);const s=this._get("visibleSublayers");return!s||s.length!==e.length||s.some(((t,r)=>e[r]!==t))?e:s}toJSON(){const e=this.layer;let t={dpi:e.dpi,format:e.imageFormat,transparent:e.imageTransparency,gdbVersion:e.gdbVersion||null};return this.hasDynamicLayers&&this.dynamicLayers?t.dynamicLayers=this.dynamicLayers:t={...t,layers:this.layers,layerDefs:this.layerDefs},t}};(0,i._)([(0,u.MZ)({readOnly:!0})],D.prototype,"dynamicLayers",null),(0,i._)([(0,u.MZ)()],D.prototype,"floors",void 0),(0,i._)([(0,u.MZ)({readOnly:!0})],D.prototype,"hasDynamicLayers",null),(0,i._)([(0,u.MZ)()],D.prototype,"layer",null),(0,i._)([(0,u.MZ)({readOnly:!0})],D.prototype,"layers",null),(0,i._)([(0,u.MZ)({readOnly:!0})],D.prototype,"layerDefs",null),(0,i._)([(0,u.MZ)({type:Number})],D.prototype,"scale",void 0),(0,i._)([(0,u.MZ)({readOnly:!0})],D.prototype,"version",null),(0,i._)([(0,u.MZ)({readOnly:!0})],D.prototype,"visibleSublayers",null),D=(0,i._)([(0,m.$)("esri.layers.support.ExportImageParameters")],D);var R=r(33446),J=r(60410),k=r(91908),V=r(56400);let $=class extends((0,I.dM)((0,A.e)((0,O.j)((0,E.I)((0,x.V)((0,w.b)((0,M.q)((0,T.A)((0,l.P)((0,Z.J)((0,_.p)((0,S.d)(b.A))))))))))))){constructor(...e){super(...e),this._exportImageParameters=new D({layer:this}),this.dateFieldsTimeZone=null,this.datesInUnknownTimezone=!1,this.dpi=96,this.gdbVersion=null,this.imageFormat="png24",this.imageMaxHeight=2048,this.imageMaxWidth=2048,this.imageTransparency=!0,this.isReference=null,this.labelsVisible=!1,this.operationalLayerType="ArcGISMapServiceLayer",this.preferredTimeZone=null,this.sourceJSON=null,this.sublayers=null,this.type="map-image",this.url=null}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service"]},e).catch(d.QP).then((()=>this._fetchService(t)))),Promise.resolve(this)}destroy(){this._exportImageParameters.destroy()}readImageFormat(e,t){const r=t.supportedImageFormatTypes;return r&&r.includes("PNG32")?"png32":"png24"}writeSublayers(e,t,r,i){if(!this.loaded||!e)return;const s=e.slice().reverse().flatten((({sublayers:e})=>e&&e.toArray().reverse())).toArray();let o=!1;if(this.capabilities?.operations.supportsExportMap&&this.capabilities?.exportMap?.supportsDynamicLayers){const e=(0,h.aB)(i.origin);if(e===h.Gr.PORTAL_ITEM){const e=this.createSublayersForOrigin("service").sublayers;o=(0,N.Zx)(s,e,h.Gr.SERVICE)}else if(e>h.Gr.PORTAL_ITEM){const e=this.createSublayersForOrigin("portal-item");o=(0,N.Zx)(s,e.sublayers,(0,h.aB)(e.origin))}}const a=[],n={writeSublayerStructure:o,...i};let l=o;s.forEach((e=>{const t=e.write({},n);a.push(t),l=l||"user"===e.originOf("visible")})),a.some((e=>Object.keys(e).length>1))&&(t.layers=a),l&&(t.visibleLayers=s.filter((e=>e.visible)).map((e=>e.id)))}createExportImageParameters(e,t,r,i){const s=i?.pixelRatio||1;e&&this.version>=10&&(e=e.clone().shiftCentralMeridian()),this._exportImageParameters.floors=i?.floors??null,this._exportImageParameters.scale=(0,v.X_)({extent:e,width:t})*s;const o=this._exportImageParameters.toJSON(),a=!i?.rotation||this.version<10.3?{}:{rotation:-i.rotation},n=e?.spatialReference,l=(0,g.YX)(n);o.dpi*=s;const d={};if(i?.timeExtent){const{start:e,end:t}=i.timeExtent.toJSON();d.time=e&&t&&e===t?""+e:`${e??"null"},${t??"null"}`}else this.timeInfo&&!this.timeInfo.hasLiveData&&(d.time="null,null");return{bbox:e&&e.xmin+","+e.ymin+","+e.xmax+","+e.ymax,bboxSR:l,imageSR:l,size:t+","+r,...o,...a,...d}}async fetchImage(e,t,r,i){const{data:s}=await this._fetchImage("image",e,t,r,i);return s}async fetchImageBitmap(e,t,r,i){const{data:s,url:o}=await this._fetchImage("blob",e,t,r,i);return(0,R.m)(s,o,i?.signal)}async fetchRecomputedExtents(e={}){const t={...e,query:{returnUpdates:!0,f:"json",...this.customParameters,token:this.apiKey}},{data:r}=await(0,s.A)(this.url,t),{extent:i,fullExtent:a,timeExtent:n}=r,l=i||a;return{fullExtent:l&&f.A.fromJSON(l),timeExtent:n&&o.A.fromJSON({start:n[0],end:n[1]})}}loadAll(){return(0,n.g)(this,(e=>{e(this.allSublayers)}))}serviceSupportsSpatialReference(e){return(0,k.D)(this,e)}async _fetchImage(e,t,r,i,o){const n={responseType:e,signal:o?.signal??null,query:{...this.parsedUrl.query,...this.createExportImageParameters(t,r,i,o),f:"image",...this.refreshParameters,...this.customParameters,token:this.apiKey}},l=this.parsedUrl.path+"/export";if(null!=n.query?.dynamicLayers&&!this.capabilities?.exportMap?.supportsDynamicLayers)throw new a.A("mapimagelayer:dynamiclayer-not-supported",`service ${this.url} doesn't support dynamic layers, which is required to be able to change the sublayer's order, rendering, labeling or source.`,{query:n.query});try{const{data:e}=await(0,s.A)(l,n);return{data:e,url:l}}catch(e){if((0,d.zf)(e))throw e;throw new a.A("mapimagelayer:image-fetch-error",`Unable to load image: ${l}`,{error:e})}}async _fetchService(e){if(this.sourceJSON)return void this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl});const{data:t,ssl:r}=await(0,s.A)(this.parsedUrl.path,{query:{f:"json",...this.parsedUrl.query,...this.customParameters,token:this.apiKey},signal:e});r&&(this.url=this.url.replace(/^http:/i,"https:")),this.sourceJSON=t,this.read(t,{origin:"service",url:this.parsedUrl})}};(0,i._)([(0,u.MZ)((0,V.P6)("dateFieldsTimeReference"))],$.prototype,"dateFieldsTimeZone",void 0),(0,i._)([(0,u.MZ)({type:Boolean})],$.prototype,"datesInUnknownTimezone",void 0),(0,i._)([(0,u.MZ)()],$.prototype,"dpi",void 0),(0,i._)([(0,u.MZ)()],$.prototype,"gdbVersion",void 0),(0,i._)([(0,u.MZ)()],$.prototype,"imageFormat",void 0),(0,i._)([(0,y.w)("imageFormat",["supportedImageFormatTypes"])],$.prototype,"readImageFormat",null),(0,i._)([(0,u.MZ)({json:{origins:{service:{read:{source:"maxImageHeight"}}}}})],$.prototype,"imageMaxHeight",void 0),(0,i._)([(0,u.MZ)({json:{origins:{service:{read:{source:"maxImageWidth"}}}}})],$.prototype,"imageMaxWidth",void 0),(0,i._)([(0,u.MZ)()],$.prototype,"imageTransparency",void 0),(0,i._)([(0,u.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],$.prototype,"isReference",void 0),(0,i._)([(0,u.MZ)({json:{read:!1,write:!1}})],$.prototype,"labelsVisible",void 0),(0,i._)([(0,u.MZ)({type:["ArcGISMapServiceLayer"]})],$.prototype,"operationalLayerType",void 0),(0,i._)([(0,u.MZ)({json:{read:!1,write:!1}})],$.prototype,"popupEnabled",void 0),(0,i._)([(0,u.MZ)((0,V.P6)("preferredTimeReference"))],$.prototype,"preferredTimeZone",void 0),(0,i._)([(0,u.MZ)()],$.prototype,"sourceJSON",void 0),(0,i._)([(0,u.MZ)({json:{write:{ignoreOrigin:!0}}})],$.prototype,"sublayers",void 0),(0,i._)([(0,c.K)("sublayers",{layers:{type:[J.A]},visibleLayers:{type:[p.jz]}})],$.prototype,"writeSublayers",null),(0,i._)([(0,u.MZ)({type:["show","hide","hide-children"]})],$.prototype,"listMode",void 0),(0,i._)([(0,u.MZ)({json:{read:!1},readOnly:!0,value:"map-image"})],$.prototype,"type",void 0),(0,i._)([(0,u.MZ)(L.OZ)],$.prototype,"url",void 0),$=(0,i._)([(0,m.$)("esri.layers.MapImageLayer")],$);const C=$},82935:(e,t,r)=>{r.d(t,{B:()=>m,e:()=>c});var i=r(90237),s=r(60945),o=r(70668),a=r(10107),n=(r(44208),r(53966),r(87811),r(36005)),l=r(40608),d=r(89317),u=r(30524),p=r(96184),y=r(73133);const m={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:d.K}}},c=e=>{let t=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const i=r.timeOffset,s=y.j.fromJSON(r.timeOffsetUnits);return i&&s?new o.A({value:i,unit:s}):null}set timeInfo(e){(0,u.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i._)([(0,a.MZ)({type:s.A,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,i._)([(0,a.MZ)({type:o.A})],t.prototype,"timeOffset",void 0),(0,i._)([(0,n.w)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,i._)([(0,a.MZ)({value:null,type:p.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,i._)([(0,a.MZ)(m)],t.prototype,"useViewTime",void 0),t=(0,i._)([(0,l.$)("esri.layers.mixins.TemporalLayer")],t),t}},96184:(e,t,r)=>{r.d(t,{A:()=>h});var i=r(90237),s=r(60945),o=r(70668),a=r(69540),n=r(25482),l=r(10107),d=(r(44208),r(53966),r(87811),r(36005)),u=r(40608),p=r(43937),y=r(56400);function m(e,t){return o.A.fromJSON({value:e,unit:t})}let c=class extends((0,a.O)(n.oY)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?s.A.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?m(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?m(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,i._)([(0,l.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],c.prototype,"cumulative",void 0),(0,i._)([(0,l.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],c.prototype,"endField",void 0),(0,i._)([(0,l.MZ)({type:s.A,json:{write:{enabled:!0,allowNull:!0}}})],c.prototype,"fullTimeExtent",void 0),(0,i._)([(0,d.w)("fullTimeExtent",["timeExtent"])],c.prototype,"readFullTimeExtent",null),(0,i._)([(0,p.K)("fullTimeExtent")],c.prototype,"writeFullTimeExtent",null),(0,i._)([(0,l.MZ)({type:Boolean,json:{write:!0}})],c.prototype,"hasLiveData",void 0),(0,i._)([(0,l.MZ)({type:o.A,json:{write:{enabled:!0,allowNull:!0}}})],c.prototype,"interval",void 0),(0,i._)([(0,d.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],c.prototype,"readInterval",null),(0,i._)([(0,p.K)("interval")],c.prototype,"writeInterval",null),(0,i._)([(0,l.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],c.prototype,"startField",void 0),(0,i._)([(0,l.MZ)((0,y.P6)("timeReference",!0))],c.prototype,"timeZone",void 0),(0,i._)([(0,l.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],c.prototype,"trackIdField",void 0),(0,i._)([(0,l.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],c.prototype,"useTime",void 0),(0,i._)([(0,l.MZ)({type:[Date],json:{read:!1}})],c.prototype,"stops",void 0),c=(0,i._)([(0,u.$)("esri.layers.support.TimeInfo")],c);const h=c},91908:(e,t,r)=>{r.d(t,{D:()=>o});var i=r(60694);const s=[];function o(e,t){if((0,i.Wo)(e.url??""))return!0;const{wkid:r}=t;for(const t of s){if((e.version??0)>=t[0])return!0;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(r))return!1}return!0}s.push([10.91,()=>{const e=new Set([9709,9716,9741,9761,9766]);for(let t=9712;t<=9713;t++)e.add(t);for(let t=9748;t<=9749;t++)e.add(t);for(let t=20904;t<=20932;t++)e.add(t);for(let t=21004;t<=21032;t++)e.add(t);for(let t=21207;t<=21264;t++)e.add(t);for(let t=21307;t<=21364;t++)e.add(t);for(let t=23301;t<=23333;t++)e.add(t);for(let t=102759;t<=102760;t++)e.add(t);for(let t=102934;t<=102955;t++)e.add(t);return e}]),s.push([10.9,()=>{const e=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let t=9356;t<=9360;t++)e.add(t);for(let t=9404;t<=9407;t++)e.add(t);for(let t=9476;t<=9482;t++)e.add(t);for(let t=9487;t<=9494;t++)e.add(t);for(let t=9697;t<=9699;t++)e.add(t);return e}]),s.push([10.81,()=>{const e=new Set([9265,9333,103598,103699]);for(let t=9248;t<=9254;t++)e.add(t);for(let t=9271;t<=9273;t++)e.add(t);for(let t=9284;t<=9285;t++)e.add(t);for(let t=21453;t<=21463;t++)e.add(t);return e}]),s.push([10.8,()=>{const e=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let t=8035;t<=8036;t++)e.add(t);for(let t=8455;t<=8456;t++)e.add(t);for(let t=8518;t<=8529;t++)e.add(t);for(let t=8533;t<=8536;t++)e.add(t);for(let t=8538;t<=8540;t++)e.add(t);for(let t=8677;t<=8679;t++)e.add(t);for(let t=8902;t<=8903;t++)e.add(t);for(let t=8907;t<=8910;t++)e.add(t);for(let t=8949;t<=8951;t++)e.add(t);for(let t=8972;t<=8987;t++)e.add(t);for(let t=9039;t<=9040;t++)e.add(t);for(let t=9068;t<=9069;t++)e.add(t);for(let t=9140;t<=9141;t++)e.add(t);for(let t=9148;t<=9150;t++)e.add(t);for(let t=9153;t<=9159;t++)e.add(t);for(let t=9205;t<=9218;t++)e.add(t);for(let t=9221;t<=9222;t++)e.add(t);for(let t=54098;t<=54101;t++)e.add(t);return e}]),s.push([10.71,()=>{const e=new Set([6316]);for(let t=8351;t<=8353;t++)e.add(t);for(let t=9294;t<=9297;t++)e.add(t);for(let t=22619;t<=22621;t++)e.add(t);for(let t=103586;t<=103594;t++)e.add(t);return e}])},73133:(e,t,r)=>{r.d(t,{j:()=>i});const i=(0,r(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})}}]);
|